@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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # @markuplint/react-spec
2
2
 
3
3
  [![npm version](https://badge.fury.io/js/%40markuplint%2Freact-spec.svg)](https://www.npmjs.com/package/@markuplint/react-spec)
4
- [![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=master)](https://travis-ci.org/markuplint/markuplint)
5
- [![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=master)](https://coveralls.io/github/markuplint/markuplint?branch=master)
4
+ [![Build Status](https://travis-ci.org/markuplint/markuplint.svg?branch=main)](https://travis-ci.org/markuplint/markuplint)
5
+ [![Coverage Status](https://coveralls.io/repos/github/markuplint/markuplint/badge.svg?branch=main)](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 master
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
@@ -1,3 +1,3 @@
1
- import { ExtendedSpec } from '@markuplint/ml-spec';
1
+ import type { ExtendedSpec } from '@markuplint/ml-spec';
2
2
  declare const spec: ExtendedSpec;
3
3
  export default spec;
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
- name: 'key',
9
- type: 'String',
10
- description: 'A special attribute for list rendering',
11
- },
12
- {
13
- name: 'ref',
14
- type: 'String',
15
- description: 'A special attribute for accessing child component instances and child elements',
16
- },
17
- {
18
- name: 'dangerouslySetInnerHTML',
19
- type: 'String',
20
- description: 'React’s replacement for using innerHTML in the browser DOM',
21
- },
22
- {
23
- name: 'suppressContentEditableWarning',
24
- type: 'Boolean',
25
- 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.',
26
- },
27
- {
28
- name: 'suppressHydrationWarning',
29
- type: 'Boolean',
30
- description: 'If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element.',
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": "0.1.0-beta.0",
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": "^1.5.0"
19
+ "@markuplint/ml-spec": "^2.0.0-dev.26+6a10aede"
20
20
  },
21
- "gitHead": "361f6e18dbeb369e769e3b1ae8c97a006452938d"
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
- name: 'key',
9
- type: 'String',
10
- description: 'A special attribute for list rendering',
11
- },
12
- {
13
- name: 'ref',
14
- type: 'String',
15
- description: 'A special attribute for accessing child component instances and child elements',
16
- },
17
- {
18
- name: 'dangerouslySetInnerHTML',
19
- type: 'String',
20
- description: 'React’s replacement for using innerHTML in the browser DOM',
21
- },
22
- {
23
- name: 'suppressContentEditableWarning',
24
- type: 'Boolean',
25
- description:
26
- '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:
32
- 'If you set suppressHydrationWarning to true, React will not warn you about mismatches in the attributes and the content of that element.',
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
  {
@@ -1,13 +1,3 @@
1
1
  {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "composite": true
5
- },
6
- "references": [
7
- {
8
- "path": "../ml-spec"
9
- }
10
- ],
11
- "include": ["./src/**/*"],
12
- "exclude": ["node_modules"]
2
+ "extends": "../../../tsconfig.json"
13
3
  }