@markuplint/react-spec 0.1.0-beta.0 → 1.0.0-dev.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/lib/index.d.ts +1 -1
- package/lib/index.js +29 -27
- package/package.json +3 -3
- package/src/index.ts +32 -30
- package/tsconfig.test.json +1 -11
- package/tsconfig.tsbuildinfo +1 -2825
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# @markuplint/react-spec
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@markuplint/react-spec)
|
|
4
|
-
[](https://travis-ci.org/markuplint/markuplint)
|
|
5
|
+
[](https://coveralls.io/github/markuplint/markuplint?branch=main)
|
|
6
6
|
|
|
7
7
|
## Install
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ $ yarn add @markuplint/react-spec
|
|
|
17
17
|
## Contributing
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
$ git clone git@github.com:markuplint/markuplint.git -b
|
|
20
|
+
$ git clone git@github.com:markuplint/markuplint.git -b main
|
|
21
21
|
$ yarn
|
|
22
22
|
$ yarn build
|
|
23
23
|
$ yarn test
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -3,33 +3,35 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const spec = {
|
|
4
4
|
cites: ['https://reactjs.org/docs/dom-elements.html'],
|
|
5
5
|
def: {
|
|
6
|
-
'#globalAttrs':
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
6
|
+
'#globalAttrs': {
|
|
7
|
+
'#extends': [
|
|
8
|
+
{
|
|
9
|
+
name: 'key',
|
|
10
|
+
type: 'String',
|
|
11
|
+
description: 'A special attribute for list rendering',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'ref',
|
|
15
|
+
type: 'String',
|
|
16
|
+
description: 'A special attribute for accessing child component instances and child elements',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'dangerouslySetInnerHTML',
|
|
20
|
+
type: 'String',
|
|
21
|
+
description: 'React’s replacement for using innerHTML in the browser DOM',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'suppressContentEditableWarning',
|
|
25
|
+
type: 'Boolean',
|
|
26
|
+
description: 'Normally, there is a warning when an element with children is also marked as contentEditable, because it won’t work. This attribute suppresses that warning.',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
name: 'suppressHydrationWarning',
|
|
30
|
+
type: 'Boolean',
|
|
31
|
+
description: 'If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element.',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
33
35
|
},
|
|
34
36
|
specs: [
|
|
35
37
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/react-spec",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.0.0-dev.26+6a10aede",
|
|
4
4
|
"description": "Extended specification for tags and attributes in React",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"clean": "tsc --build --clean"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@markuplint/ml-spec": "^
|
|
19
|
+
"@markuplint/ml-spec": "^2.0.0-dev.26+6a10aede"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "6a10aede7385e2e97d0ba2c272a2e8c08e5429fd"
|
|
22
22
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
import { ExtendedSpec } from '@markuplint/ml-spec';
|
|
1
|
+
import type { ExtendedSpec } from '@markuplint/ml-spec';
|
|
2
2
|
|
|
3
3
|
const spec: ExtendedSpec = {
|
|
4
4
|
cites: ['https://reactjs.org/docs/dom-elements.html'],
|
|
5
5
|
def: {
|
|
6
|
-
'#globalAttrs':
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
6
|
+
'#globalAttrs': {
|
|
7
|
+
'#extends': [
|
|
8
|
+
{
|
|
9
|
+
name: 'key',
|
|
10
|
+
type: 'String',
|
|
11
|
+
description: 'A special attribute for list rendering',
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
name: 'ref',
|
|
15
|
+
type: 'String',
|
|
16
|
+
description: 'A special attribute for accessing child component instances and child elements',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: 'dangerouslySetInnerHTML',
|
|
20
|
+
type: 'String',
|
|
21
|
+
description: 'React’s replacement for using innerHTML in the browser DOM',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'suppressContentEditableWarning',
|
|
25
|
+
type: 'Boolean',
|
|
26
|
+
description:
|
|
27
|
+
'Normally, there is a warning when an element with children is also marked as contentEditable, because it won’t work. This attribute suppresses that warning.',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'suppressHydrationWarning',
|
|
31
|
+
type: 'Boolean',
|
|
32
|
+
description:
|
|
33
|
+
'If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element.',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
35
37
|
},
|
|
36
38
|
specs: [
|
|
37
39
|
{
|
package/tsconfig.test.json
CHANGED