@atlaskit/adf-schema 37.1.28 → 37.1.30
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 +13 -0
- package/dist/cjs/next-schema/nodes/caption.js +13 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +1 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +9 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +9 -1
- package/dist/es2019/next-schema/nodes/caption.js +13 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +1 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +9 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +9 -1
- package/dist/esm/next-schema/nodes/caption.js +13 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +1 -1
- package/dist/esm/next-schema/nodes/tableCell.js +9 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +9 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +1 -1
- package/package.json +1 -1
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +0 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.30
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 90da950: ED-23030: overrides caption DSL for validator spec
|
8
|
+
|
9
|
+
## 37.1.29
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- f6c953f: align extensionFrame to match ADF
|
14
|
+
- 362c287: ED-23030: adds overrides for required for table nodes
|
15
|
+
|
3
16
|
## 37.1.28
|
4
17
|
|
5
18
|
### Patch Changes
|
@@ -21,5 +21,17 @@ var caption = exports.caption = (0, _adfSchemaGenerator.adfNode)('caption').defi
|
|
21
21
|
selectable: false,
|
22
22
|
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
23
23
|
allowAnyChildMark: true,
|
24
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
|
24
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))],
|
25
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
26
|
+
'validator-spec': {
|
27
|
+
'props.content.optional': {
|
28
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
29
|
+
remove: true
|
30
|
+
},
|
31
|
+
'props.content.minItems': {
|
32
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
33
|
+
value: 0
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
25
37
|
});
|
@@ -33,5 +33,5 @@ var extensionFrame = exports.extensionFrame = (0, _adfSchemaGenerator.adfNode)('
|
|
33
33
|
selectable: false,
|
34
34
|
marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
35
35
|
attrs: {},
|
36
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_bodiedExtension.bodiedExtension, _panel.panel, _paragraph.paragraph, _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading, _codeBlock.codeBlock, _mediaGroup.mediaGroup, _mediaSingle.mediaSingle, _decisionList.decisionList, _task.taskList, _table.table, _extension.extension, _blockCard.blockCard, _embedCard.embedCard, _unsupportedBlock.unsupportedBlock))]
|
36
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_bodiedExtension.bodiedExtension.use('with_marks'), _panel.panel, _paragraph.paragraph.use('with_no_marks'), _blockquote.blockquote, _list.orderedList, _list.bulletList, _rule.rule, _heading.heading.use('with_no_marks'), _codeBlock.codeBlock.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('caption'), _decisionList.decisionList, _task.taskList, _table.table, _extension.extension.use('with_marks'), _blockCard.blockCard, _embedCard.embedCard, _unsupportedBlock.unsupportedBlock))]
|
37
37
|
});
|
@@ -38,5 +38,13 @@ var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell'
|
|
38
38
|
optional: true
|
39
39
|
}
|
40
40
|
},
|
41
|
-
content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup]
|
41
|
+
content: [_tableCellContentPseudoGroup.tableCellContentPseudoGroup],
|
42
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
43
|
+
'validator-spec': {
|
44
|
+
required: {
|
45
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
46
|
+
value: ['content']
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
42
50
|
});
|
@@ -38,5 +38,13 @@ var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableH
|
|
38
38
|
optional: true
|
39
39
|
}
|
40
40
|
},
|
41
|
-
content: [_tableCellContentPseudoGroup.tableHeaderContentPseudoGroup]
|
41
|
+
content: [_tableCellContentPseudoGroup.tableHeaderContentPseudoGroup],
|
42
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
43
|
+
'validator-spec': {
|
44
|
+
required: {
|
45
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
46
|
+
value: ['content']
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
42
50
|
});
|
@@ -15,5 +15,17 @@ export const caption = adfNode('caption').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
17
17
|
allowAnyChildMark: true,
|
18
|
-
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
18
|
+
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))],
|
19
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
+
'validator-spec': {
|
21
|
+
'props.content.optional': {
|
22
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
23
|
+
remove: true
|
24
|
+
},
|
25
|
+
'props.content.minItems': {
|
26
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
27
|
+
value: 0
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
19
31
|
});
|
@@ -27,5 +27,5 @@ export const extensionFrame = adfNode('extensionFrame').define({
|
|
27
27
|
selectable: false,
|
28
28
|
marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark],
|
29
29
|
attrs: {},
|
30
|
-
content: [$onePlus($or(bodiedExtension, panel, paragraph, blockquote, orderedList, bulletList, rule, heading, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, table, extension, blockCard, embedCard, unsupportedBlock))]
|
30
|
+
content: [$onePlus($or(bodiedExtension.use('with_marks'), panel, paragraph.use('with_no_marks'), blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table, extension.use('with_marks'), blockCard, embedCard, unsupportedBlock))]
|
31
31
|
});
|
@@ -32,5 +32,13 @@ export const tableCell = adfNode('tableCell').define({
|
|
32
32
|
optional: true
|
33
33
|
}
|
34
34
|
},
|
35
|
-
content: [tableCellContentPseudoGroup]
|
35
|
+
content: [tableCellContentPseudoGroup],
|
36
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
+
'validator-spec': {
|
38
|
+
required: {
|
39
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
+
value: ['content']
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
36
44
|
});
|
@@ -32,5 +32,13 @@ export const tableHeader = adfNode('tableHeader').define({
|
|
32
32
|
optional: true
|
33
33
|
}
|
34
34
|
},
|
35
|
-
content: [tableHeaderContentPseudoGroup]
|
35
|
+
content: [tableHeaderContentPseudoGroup],
|
36
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
+
'validator-spec': {
|
38
|
+
required: {
|
39
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
+
value: ['content']
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
36
44
|
});
|
@@ -15,5 +15,17 @@ export var caption = adfNode('caption').define({
|
|
15
15
|
selectable: false,
|
16
16
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
17
17
|
allowAnyChildMark: true,
|
18
|
-
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
|
18
|
+
content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))],
|
19
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
20
|
+
'validator-spec': {
|
21
|
+
'props.content.optional': {
|
22
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
23
|
+
remove: true
|
24
|
+
},
|
25
|
+
'props.content.minItems': {
|
26
|
+
reason: '@DSLCompatibilityException - mismatch for caption',
|
27
|
+
value: 0
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
19
31
|
});
|
@@ -27,5 +27,5 @@ export var extensionFrame = adfNode('extensionFrame').define({
|
|
27
27
|
selectable: false,
|
28
28
|
marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark],
|
29
29
|
attrs: {},
|
30
|
-
content: [$onePlus($or(bodiedExtension, panel, paragraph, blockquote, orderedList, bulletList, rule, heading, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, table, extension, blockCard, embedCard, unsupportedBlock))]
|
30
|
+
content: [$onePlus($or(bodiedExtension.use('with_marks'), panel, paragraph.use('with_no_marks'), blockquote, orderedList, bulletList, rule, heading.use('with_no_marks'), codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('full'), mediaSingle.use('caption'), decisionList, taskList, table, extension.use('with_marks'), blockCard, embedCard, unsupportedBlock))]
|
31
31
|
});
|
@@ -32,5 +32,13 @@ export var tableCell = adfNode('tableCell').define({
|
|
32
32
|
optional: true
|
33
33
|
}
|
34
34
|
},
|
35
|
-
content: [tableCellContentPseudoGroup]
|
35
|
+
content: [tableCellContentPseudoGroup],
|
36
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
+
'validator-spec': {
|
38
|
+
required: {
|
39
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
+
value: ['content']
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
36
44
|
});
|
@@ -32,5 +32,13 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
32
32
|
optional: true
|
33
33
|
}
|
34
34
|
},
|
35
|
-
content: [tableHeaderContentPseudoGroup]
|
35
|
+
content: [tableHeaderContentPseudoGroup],
|
36
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
37
|
+
'validator-spec': {
|
38
|
+
required: {
|
39
|
+
reason: '@DSLCompatibilityException - required for tableHeader validator spec',
|
40
|
+
value: ['content']
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
36
44
|
});
|
@@ -240,7 +240,7 @@ export type ExtensionWithMarksNode = PMNode & ExtensionWithMarksDefinition;
|
|
240
240
|
export declare const extensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<ExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
|
241
241
|
export interface ExtensionFrameDefinition {
|
242
242
|
type: 'extensionFrame';
|
243
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition |
|
243
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedExtensionWithMarksDefinition | BulletListDefinition | CodeBlockWithNoMarksDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
244
244
|
marks: Array<DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
245
245
|
}
|
246
246
|
export type ExtensionFrameNode = PMNode & ExtensionFrameDefinition;
|
package/package.json
CHANGED
@@ -4,7 +4,6 @@ import adfNode from '../../../src/next-schema/full-schema.adf';
|
|
4
4
|
|
5
5
|
const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
|
6
6
|
const SKIP_LIST = [
|
7
|
-
'caption', // doesn't match existing spec
|
8
7
|
'codeBlock', // doesn't match existing spec
|
9
8
|
'doc', // doesn't match existing spec, need to flatten groups
|
10
9
|
'expand', // doesn't match existing spec
|