@atlaskit/adf-schema 20.1.3 → 22.0.1
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/CHANGELOG.md +77 -0
- package/dist/cjs/json-schema/index.js +23 -0
- package/dist/cjs/schema/nodes/bodied-extension.js +1 -1
- package/dist/cjs/schema/nodes/doc.js +1 -1
- package/dist/cjs/schema/nodes/emoji.js +5 -5
- package/dist/cjs/schema/nodes/expand.js +1 -1
- package/dist/cjs/schema/nodes/layout-column.js +1 -1
- package/dist/cjs/schema/nodes/list-item.js +1 -1
- package/dist/cjs/schema/nodes/media-group.js +1 -1
- package/dist/cjs/schema/nodes/nested-expand.js +1 -1
- package/dist/cjs/schema/nodes/panel.js +10 -0
- package/dist/cjs/schema/nodes/paragraph.js +24 -145
- package/dist/cjs/schema/nodes/tableNodes.js +2 -2
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/json-schema/index.js +2 -0
- package/dist/es2019/schema/marks/data-consumer.js +8 -1
- package/dist/es2019/schema/nodes/bodied-extension.js +1 -1
- package/dist/es2019/schema/nodes/doc.js +1 -1
- package/dist/es2019/schema/nodes/emoji.js +5 -5
- package/dist/es2019/schema/nodes/expand.js +1 -1
- package/dist/es2019/schema/nodes/layout-column.js +1 -1
- package/dist/es2019/schema/nodes/list-item.js +1 -1
- package/dist/es2019/schema/nodes/media-group.js +1 -1
- package/dist/es2019/schema/nodes/nested-expand.js +1 -1
- package/dist/es2019/schema/nodes/panel.js +10 -0
- package/dist/es2019/schema/nodes/paragraph.js +24 -142
- package/dist/es2019/schema/nodes/tableNodes.js +2 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/json-schema/index.js +2 -0
- package/dist/esm/schema/marks/data-consumer.js +8 -1
- package/dist/esm/schema/nodes/bodied-extension.js +1 -1
- package/dist/esm/schema/nodes/doc.js +1 -1
- package/dist/esm/schema/nodes/emoji.js +5 -5
- package/dist/esm/schema/nodes/expand.js +1 -1
- package/dist/esm/schema/nodes/layout-column.js +1 -1
- package/dist/esm/schema/nodes/list-item.js +1 -1
- package/dist/esm/schema/nodes/media-group.js +1 -1
- package/dist/esm/schema/nodes/nested-expand.js +1 -1
- package/dist/esm/schema/nodes/panel.js +10 -0
- package/dist/esm/schema/nodes/paragraph.js +24 -144
- package/dist/esm/schema/nodes/tableNodes.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/json-schema/package.json +7 -0
- package/dist/json-schema/v1/full.json +67 -3
- package/dist/json-schema/v1/stage-0.json +36 -81
- package/dist/types/index.d.ts +1 -1
- package/dist/types/json-schema/index.d.ts +2 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/marks/data-consumer.d.ts +8 -1
- package/dist/types/schema/marks/fragment.d.ts +0 -1
- package/dist/types/schema/nodes/bodied-extension.d.ts +1 -6
- package/dist/types/schema/nodes/extension.d.ts +1 -6
- package/dist/types/schema/nodes/index.d.ts +3 -3
- package/dist/types/schema/nodes/inline-extension.d.ts +1 -6
- package/dist/types/schema/nodes/panel.d.ts +2 -0
- package/dist/types/schema/nodes/tableNodes.d.ts +4 -2
- package/dist/types/schema/nodes/types/block-content.d.ts +3 -3
- package/dist/types/schema/nodes/types/inline-content.d.ts +3 -3
- package/dist/types/schema/nodes/types/non-nestable-block-content.d.ts +2 -2
- package/json-schema/package.json +7 -0
- package/json-schema/v1/full.json +67 -3
- package/json-schema/v1/stage-0.json +36 -81
- package/package.json +10 -3
- package/schema/package.json +7 -0
- package/url/package.json +7 -0
- package/test-helpers/html-helpers.ts +0 -40
- package/test-helpers/matches.ts +0 -8
- package/test-helpers/schema-builder.ts +0 -329
- package/test-helpers/schema.ts +0 -80
package/test-helpers/schema.ts
DELETED
@@ -1,80 +0,0 @@
|
|
1
|
-
import {
|
2
|
-
AttributeSpec,
|
3
|
-
MarkSpec,
|
4
|
-
Node,
|
5
|
-
NodeSpec,
|
6
|
-
ParseRule,
|
7
|
-
Schema,
|
8
|
-
} from 'prosemirror-model';
|
9
|
-
import { paragraph, createSchema } from '../src/schema';
|
10
|
-
|
11
|
-
export { Node, Schema };
|
12
|
-
export type { AttributeSpec, MarkSpec, NodeSpec, ParseRule };
|
13
|
-
export default createSchema({
|
14
|
-
nodes: [
|
15
|
-
'doc',
|
16
|
-
'paragraph',
|
17
|
-
'text',
|
18
|
-
'bulletList',
|
19
|
-
'orderedList',
|
20
|
-
'listItem',
|
21
|
-
'heading',
|
22
|
-
'blockquote',
|
23
|
-
'codeBlock',
|
24
|
-
'panel',
|
25
|
-
'rule',
|
26
|
-
'hardBreak',
|
27
|
-
'mention',
|
28
|
-
'emoji',
|
29
|
-
'image',
|
30
|
-
'caption',
|
31
|
-
'media',
|
32
|
-
'mediaGroup',
|
33
|
-
'mediaInline',
|
34
|
-
'confluenceUnsupportedBlock',
|
35
|
-
'confluenceUnsupportedInline',
|
36
|
-
'confluenceJiraIssue',
|
37
|
-
'mediaSingle',
|
38
|
-
'plain',
|
39
|
-
'table',
|
40
|
-
'tableCell',
|
41
|
-
'tableHeader',
|
42
|
-
'tableRow',
|
43
|
-
'decisionList',
|
44
|
-
'decisionItem',
|
45
|
-
'taskList',
|
46
|
-
'taskItem',
|
47
|
-
'extension',
|
48
|
-
'inlineExtension',
|
49
|
-
'bodiedExtension',
|
50
|
-
'date',
|
51
|
-
'status',
|
52
|
-
'unknownBlock',
|
53
|
-
'placeholder',
|
54
|
-
'inlineCard',
|
55
|
-
'blockCard',
|
56
|
-
'embedCard',
|
57
|
-
'expand',
|
58
|
-
'nestedExpand',
|
59
|
-
'unsupportedBlock',
|
60
|
-
'unsupportedInline',
|
61
|
-
],
|
62
|
-
marks: [
|
63
|
-
'em',
|
64
|
-
'strong',
|
65
|
-
'code',
|
66
|
-
'strike',
|
67
|
-
'underline',
|
68
|
-
'link',
|
69
|
-
'subsup',
|
70
|
-
'textColor',
|
71
|
-
'unsupportedMark',
|
72
|
-
'unsupportedNodeAttribute',
|
73
|
-
'annotation',
|
74
|
-
'dataConsumer',
|
75
|
-
'fragment',
|
76
|
-
],
|
77
|
-
customNodeSpecs: {
|
78
|
-
plain: { ...paragraph, content: 'text*', marks: '' },
|
79
|
-
},
|
80
|
-
});
|