@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 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 layoutSection'
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', {