@atlaskit/adf-schema 37.1.39 → 37.1.41
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/layoutSection.js +21 -2
- package/dist/cjs/next-schema/nodes/nestedExpand.js +17 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +1879 -0
- package/dist/cjs/validator-schema/utils/sortNestedArrays.js +33 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +21 -2
- package/dist/es2019/next-schema/nodes/nestedExpand.js +17 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +1873 -0
- package/dist/es2019/validator-schema/utils/sortNestedArrays.js +24 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +21 -2
- package/dist/esm/next-schema/nodes/nestedExpand.js +17 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +1873 -0
- package/dist/esm/validator-schema/utils/sortNestedArrays.js +26 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +19 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1892 -0
- package/dist/types/validator-schema/utils/sortNestedArrays.d.ts +1 -0
- package/package.json +3 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +1 -38
- package/schema-generators/validator-full-schema.ts +22 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.41
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- a6b9c1d: Create script to generate validator spec and commit the generated file.
|
8
|
+
|
9
|
+
## 37.1.40
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- f78fc78: enable validator spec support for layoutSection_with_single_column
|
14
|
+
- d131854: Align nested expand node with validator spec
|
15
|
+
|
3
16
|
## 37.1.39
|
4
17
|
|
5
18
|
### Patch Changes
|
@@ -30,7 +30,26 @@ var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('la
|
|
30
30
|
}
|
31
31
|
}).variant('with_single_column', {
|
32
32
|
content: [(0, _adfSchemaGenerator.$range)(1, 3, (0, _adfSchemaGenerator.$or)(_layoutColumn.layoutColumn, _unsupportedBlock.unsupportedBlock))],
|
33
|
-
ignore: ['json-schema']
|
33
|
+
ignore: ['json-schema'],
|
34
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
35
|
+
'validator-spec': {
|
36
|
+
'props.type': {
|
37
|
+
value: {
|
38
|
+
type: 'enum',
|
39
|
+
values: ['layoutSection']
|
40
|
+
},
|
41
|
+
reason: '@DSLCompatibilityException - mismatch for layoutSection_with_single_column'
|
42
|
+
},
|
43
|
+
'props.marks': {
|
44
|
+
value: {
|
45
|
+
items: ['breakout'],
|
46
|
+
optional: true,
|
47
|
+
type: 'array'
|
48
|
+
},
|
49
|
+
reason: '@DSLCompatibilityException - mismatch for layoutSection_with_single_column'
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
34
53
|
}).variant('full', {
|
35
54
|
marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
36
55
|
content: [(0, _adfSchemaGenerator.$range)(2, 3, (0, _adfSchemaGenerator.$or)(_layoutColumn.layoutColumn, _unsupportedBlock.unsupportedBlock))],
|
@@ -42,7 +61,7 @@ var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('la
|
|
42
61
|
type: 'enum',
|
43
62
|
values: ['layoutSection']
|
44
63
|
},
|
45
|
-
reason: '@DSLCompatibilityException - mismatch for
|
64
|
+
reason: '@DSLCompatibilityException - mismatch for layoutSection_full'
|
46
65
|
}
|
47
66
|
}
|
48
67
|
}
|
@@ -35,7 +35,23 @@ var nestedExpand = exports.nestedExpand = (0, _adfSchemaGenerator.adfNode)('nest
|
|
35
35
|
optional: true
|
36
36
|
}
|
37
37
|
},
|
38
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _unsupportedBlock.unsupportedBlock))]
|
38
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _unsupportedBlock.unsupportedBlock))],
|
39
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
40
|
+
'validator-spec': {
|
41
|
+
'props.attrs.optional': {
|
42
|
+
remove: true,
|
43
|
+
reason: '@DSLCompatibilityException - mismatch with DSL'
|
44
|
+
},
|
45
|
+
'props.content': {
|
46
|
+
value: 'nestedExpand_content',
|
47
|
+
reason: '@DSLCompatibilityException - mismatch with DSL'
|
48
|
+
},
|
49
|
+
required: {
|
50
|
+
reason: '@DSLCompatibilityException - required for nestedExpand validator spec',
|
51
|
+
value: ['content']
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
39
55
|
}).variant('content', {
|
40
56
|
ignore: ['pm-spec', 'validator-spec']
|
41
57
|
}).variant('with_no_marks', {
|