@atlaskit/adf-schema 37.1.30 → 37.1.32
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 +14 -0
- package/dist/cjs/next-schema/nodes/expand.js +9 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +9 -1
- package/dist/cjs/next-schema/nodes/tableRow.js +9 -1
- package/dist/es2019/next-schema/nodes/expand.js +9 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +9 -1
- package/dist/es2019/next-schema/nodes/tableRow.js +9 -1
- package/dist/esm/next-schema/nodes/expand.js +9 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +9 -1
- package/dist/esm/next-schema/nodes/tableRow.js +9 -1
- package/package.json +1 -1
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +0 -3
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.32
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 64d5ec6: Aligned extensionFrame with current validator spec implementation with exception override.
|
8
|
+
- 497d3c4: fix unit test description for node spec check
|
9
|
+
|
10
|
+
## 37.1.31
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- 79fd420: ED-23030: overrides caption for validator spec
|
15
|
+
- 2d1185b: ED-23030: overrides validator-spec for expand node
|
16
|
+
|
3
17
|
## 37.1.30
|
4
18
|
|
5
19
|
### Patch Changes
|
@@ -26,7 +26,15 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
26
26
|
optional: true
|
27
27
|
}
|
28
28
|
},
|
29
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))]
|
29
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
30
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
31
|
+
'validator-spec': {
|
32
|
+
'props.attrs.optional': {
|
33
|
+
reason: '@DSLCompatibilityException - required for expand validator spec',
|
34
|
+
remove: true
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
30
38
|
}).variant('with_breakout_mark', {
|
31
39
|
marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
32
40
|
content: [],
|
@@ -33,5 +33,13 @@ 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.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))]
|
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
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
38
|
+
'validator-spec': {
|
39
|
+
'props.content.allowUnsupportedBlock': {
|
40
|
+
remove: true,
|
41
|
+
reason: '@DSLCompatibilityException - mismatch for extensionFrame'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
37
45
|
});
|
@@ -14,5 +14,13 @@ var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').d
|
|
14
14
|
selectable: false,
|
15
15
|
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
16
16
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader, _tableCellContent.tableCellContent))],
|
17
|
-
tableRole: 'row'
|
17
|
+
tableRole: 'row',
|
18
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
19
|
+
'validator-spec': {
|
20
|
+
'props.content.minItems': {
|
21
|
+
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
22
|
+
remove: true
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
18
26
|
});
|
@@ -20,7 +20,15 @@ export const expand = adfNode('expand').define({
|
|
20
20
|
optional: true
|
21
21
|
}
|
22
22
|
},
|
23
|
-
content: [$onePlus($or(nonNestableBlockContentGroup))]
|
23
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
24
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
+
'validator-spec': {
|
26
|
+
'props.attrs.optional': {
|
27
|
+
reason: '@DSLCompatibilityException - required for expand validator spec',
|
28
|
+
remove: true
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
24
32
|
}).variant('with_breakout_mark', {
|
25
33
|
marks: [breakout, unsupportedNodeAttribute, unsupportedMark],
|
26
34
|
content: [],
|
@@ -27,5 +27,13 @@ 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.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))]
|
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
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
32
|
+
'validator-spec': {
|
33
|
+
'props.content.allowUnsupportedBlock': {
|
34
|
+
remove: true,
|
35
|
+
reason: '@DSLCompatibilityException - mismatch for extensionFrame'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
31
39
|
});
|
@@ -8,5 +8,13 @@ export const tableRow = adfNode('tableRow').define({
|
|
8
8
|
selectable: false,
|
9
9
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
10
10
|
content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
|
11
|
-
tableRole: 'row'
|
11
|
+
tableRole: 'row',
|
12
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
13
|
+
'validator-spec': {
|
14
|
+
'props.content.minItems': {
|
15
|
+
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
16
|
+
remove: true
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
12
20
|
});
|
@@ -20,7 +20,15 @@ export var expand = adfNode('expand').define({
|
|
20
20
|
optional: true
|
21
21
|
}
|
22
22
|
},
|
23
|
-
content: [$onePlus($or(nonNestableBlockContentGroup))]
|
23
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
24
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
+
'validator-spec': {
|
26
|
+
'props.attrs.optional': {
|
27
|
+
reason: '@DSLCompatibilityException - required for expand validator spec',
|
28
|
+
remove: true
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
24
32
|
}).variant('with_breakout_mark', {
|
25
33
|
marks: [breakout, unsupportedNodeAttribute, unsupportedMark],
|
26
34
|
content: [],
|
@@ -27,5 +27,13 @@ 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.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))]
|
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
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
32
|
+
'validator-spec': {
|
33
|
+
'props.content.allowUnsupportedBlock': {
|
34
|
+
remove: true,
|
35
|
+
reason: '@DSLCompatibilityException - mismatch for extensionFrame'
|
36
|
+
}
|
37
|
+
}
|
38
|
+
}
|
31
39
|
});
|
@@ -8,5 +8,13 @@ export var tableRow = adfNode('tableRow').define({
|
|
8
8
|
selectable: false,
|
9
9
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
10
10
|
content: [$onePlus($or(tableCell, tableHeader, tableCellContent))],
|
11
|
-
tableRole: 'row'
|
11
|
+
tableRole: 'row',
|
12
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
13
|
+
'validator-spec': {
|
14
|
+
'props.content.minItems': {
|
15
|
+
reason: '@DSLCompatibilityException - required for tableRow validator spec',
|
16
|
+
remove: true
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
12
20
|
});
|
package/package.json
CHANGED
@@ -6,8 +6,6 @@ const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
|
|
6
6
|
const SKIP_LIST = [
|
7
7
|
'codeBlock', // doesn't match existing spec
|
8
8
|
'doc', // doesn't match existing spec, need to flatten groups
|
9
|
-
'expand', // doesn't match existing spec
|
10
|
-
'extensionFrame', // doesn't match existing spec
|
11
9
|
'inline_comment_marker', // doesn't exist in the output
|
12
10
|
'layoutSection_full', // doesn't match existing spec, allowUnsupportedBlock, extra marks
|
13
11
|
'layoutSection_with_single_column', // doesn't exist in the output
|
@@ -17,7 +15,6 @@ const SKIP_LIST = [
|
|
17
15
|
'nestedExpand', // doesn't match existing spec
|
18
16
|
'tableCell', // doesn't match existing spec
|
19
17
|
'tableHeader', // doesn't match existing spec
|
20
|
-
'tableRow', // doesn't match existing spec, extra minItems
|
21
18
|
|
22
19
|
'atomic_inline', // doesn't exist in the output, not even used anywhere...
|
23
20
|
'nestedExpand_content', // doesn't exist in the output, completely different format from other groups
|