Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Commit 16be64d

Browse files
committed
after npm install
1 parent 11ef509 commit 16be64d

10 files changed

+1345
-108
lines changed

Diff for: lib/metadata.json

+797-87
Large diffs are not rendered by default.

Diff for: scripts/data/attributes.json

+2
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@
420420
},
421421
"muted": {
422422
"elements": [
423+
"audio",
423424
"video"
424425
],
425426
"description": "Indicates whether the audio will be initially silenced on page load."
@@ -863,6 +864,7 @@
863864
"controls",
864865
"crossOrigin",
865866
"loop",
867+
"muted",
866868
"preload",
867869
"src"
868870
],

Diff for: scripts/data/elements.txt

+18-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
base
21
link
32
meta
43
title
@@ -7,11 +6,18 @@ article
76
aside
87
footer
98
header
9+
h1
10+
h2
11+
h3
12+
h4
13+
h5
14+
h6
1015
hgroup
1116
nav
1217
section
1318
blockquote
1419
dd
20+
dir
1521
div
1622
dl
1723
dt
@@ -38,6 +44,7 @@ em
3844
i
3945
kbd
4046
mark
47+
nobr
4148
q
4249
rp
4350
rt
@@ -51,6 +58,7 @@ strong
5158
sub
5259
sup
5360
time
61+
tt
5462
u
5563
var
5664
wbr
@@ -60,9 +68,12 @@ img
6068
map
6169
track
6270
video
71+
applet
6372
embed
73+
noembed
6474
object
6575
param
76+
picture
6677
source
6778
canvas
6879
noscript
@@ -105,6 +116,7 @@ template
105116
acronym
106117
applet
107118
basefont
119+
bgsound
108120
big
109121
blink
110122
center
@@ -115,13 +127,18 @@ element
115127
font
116128
frame
117129
frameset
130+
image
118131
isindex
119132
keygen
120133
listing
121134
marquee
135+
menu
136+
menuitem
122137
multicol
123138
nextid
139+
nobr
124140
noembed
141+
noframes
125142
plaintext
126143
shadow
127144
spacer

Diff for: src/components/Audio.react.js

+5
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ Audio.propTypes = {
7474
*/
7575
'loop': PropTypes.string,
7676

77+
/**
78+
* Indicates whether the audio will be initially silenced on page load.
79+
*/
80+
'muted': PropTypes.string,
81+
7782
/**
7883
* Indicates whether the whole resource, parts of it or nothing should be preloaded.
7984
*/

Diff for: src/components/Bgsound.react.js

+131
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
2+
import React, {PropTypes} from 'react';
3+
4+
const Bgsound = (props) => {
5+
if (props.fireEvent || props.setProps) {
6+
return (
7+
<bgsound
8+
onClick={() => {
9+
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
10+
if (props.fireEvent) props.fireEvent({event: 'click'});
11+
}}
12+
{...props}
13+
>
14+
{props.children}
15+
</bgsound>
16+
);
17+
} else {
18+
return (
19+
<bgsound {...props}>
20+
{props.children}
21+
</bgsound>
22+
);
23+
}
24+
};
25+
26+
Bgsound.defaultProps = {
27+
n_clicks: 0
28+
};
29+
30+
Bgsound.propTypes = {
31+
/**
32+
* The ID of this component, used to identify dash components
33+
* in callbacks. The ID needs to be unique across all of the
34+
* components in an app.
35+
*/
36+
'id': PropTypes.string,
37+
38+
/**
39+
* The children of this component
40+
*/
41+
'children': PropTypes.node,
42+
43+
/**
44+
* An integer that represents the number of times
45+
* that this element has been clicked on.
46+
*/
47+
'n_clicks': PropTypes.integer,
48+
49+
/**
50+
* A unique identifier for the component, used to improve
51+
* performance by React.js while rendering components
52+
* See https://reactjs.org/docs/lists-and-keys.html for more info
53+
*/
54+
'key': PropTypes.string,
55+
56+
57+
/**
58+
* Indicates whether the media should start playing from the start when it's finished.
59+
*/
60+
'loop': PropTypes.string,
61+
62+
/**
63+
* Defines a keyboard shortcut to activate or add focus to the element.
64+
*/
65+
'accessKey': PropTypes.string,
66+
67+
/**
68+
* Often used with CSS to style elements with common properties.
69+
*/
70+
'className': PropTypes.string,
71+
72+
/**
73+
* Indicates whether the element's content is editable.
74+
*/
75+
'contentEditable': PropTypes.string,
76+
77+
/**
78+
* Defines the ID of a <menu> element which will serve as the element's context menu.
79+
*/
80+
'contextMenu': PropTypes.string,
81+
82+
/**
83+
* Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
84+
*/
85+
'dir': PropTypes.string,
86+
87+
/**
88+
* Defines whether the element can be dragged.
89+
*/
90+
'draggable': PropTypes.string,
91+
92+
/**
93+
* Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
94+
*/
95+
'hidden': PropTypes.string,
96+
97+
/**
98+
* Defines the language used in the element.
99+
*/
100+
'lang': PropTypes.string,
101+
102+
/**
103+
* Indicates whether spell checking is allowed for the element.
104+
*/
105+
'spellCheck': PropTypes.string,
106+
107+
/**
108+
* Defines CSS styles which will override styles previously set.
109+
*/
110+
'style': PropTypes.object,
111+
112+
/**
113+
* Overrides the browser's default tab order and follows the one specified instead.
114+
*/
115+
'tabIndex': PropTypes.string,
116+
117+
/**
118+
* Text to be displayed in a tooltip when hovering over the element.
119+
*/
120+
'title': PropTypes.string,
121+
122+
/**
123+
* A callback for firing events to dash.
124+
*/
125+
'fireEvent': PropTypes.func,
126+
127+
'dashEvents': PropTypes.oneOf(['click'])
128+
129+
};
130+
131+
export default Bgsound;

Diff for: src/components/Base.react.js renamed to src/components/Image.react.js

+8-18
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11

22
import React, {PropTypes} from 'react';
33

4-
const Base = (props) => {
4+
const Image = (props) => {
55
if (props.fireEvent || props.setProps) {
66
return (
7-
<base
7+
<image
88
onClick={() => {
99
if (props.setProps) props.setProps({n_clicks: props.n_clicks + 1});
1010
if (props.fireEvent) props.fireEvent({event: 'click'});
1111
}}
1212
{...props}
1313
>
1414
{props.children}
15-
</base>
15+
</image>
1616
);
1717
} else {
1818
return (
19-
<base {...props}>
19+
<image {...props}>
2020
{props.children}
21-
</base>
21+
</image>
2222
);
2323
}
2424
};
2525

26-
Base.defaultProps = {
26+
Image.defaultProps = {
2727
n_clicks: 0
2828
};
2929

30-
Base.propTypes = {
30+
Image.propTypes = {
3131
/**
3232
* The ID of this component, used to identify dash components
3333
* in callbacks. The ID needs to be unique across all of the
@@ -54,16 +54,6 @@ Base.propTypes = {
5454
'key': PropTypes.string,
5555

5656

57-
/**
58-
* The URL of a linked resource.
59-
*/
60-
'href': PropTypes.string,
61-
62-
/**
63-
*
64-
*/
65-
'target': PropTypes.string,
66-
6757
/**
6858
* Defines a keyboard shortcut to activate or add focus to the element.
6959
*/
@@ -133,4 +123,4 @@ Base.propTypes = {
133123

134124
};
135125

136-
export default Base;
126+
export default Image;

0 commit comments

Comments
 (0)