@atlaskit/adf-schema 37.1.30 → 37.1.31
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 +7 -0
- package/dist/cjs/next-schema/nodes/expand.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/tableRow.js +9 -1
- package/dist/esm/next-schema/nodes/expand.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 -2
package/CHANGELOG.md
CHANGED
@@ -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: [],
|
@@ -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: [],
|
@@ -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: [],
|
@@ -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,7 +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
9
|
'extensionFrame', // doesn't match existing spec
|
11
10
|
'inline_comment_marker', // doesn't exist in the output
|
12
11
|
'layoutSection_full', // doesn't match existing spec, allowUnsupportedBlock, extra marks
|
@@ -17,7 +16,6 @@ const SKIP_LIST = [
|
|
17
16
|
'nestedExpand', // doesn't match existing spec
|
18
17
|
'tableCell', // doesn't match existing spec
|
19
18
|
'tableHeader', // doesn't match existing spec
|
20
|
-
'tableRow', // doesn't match existing spec, extra minItems
|
21
19
|
|
22
20
|
'atomic_inline', // doesn't exist in the output, not even used anywhere...
|
23
21
|
'nestedExpand_content', // doesn't exist in the output, completely different format from other groups
|