@atlaskit/adf-schema 37.1.38 → 37.1.39

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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 37.1.39
4
+
5
+ ### Patch Changes
6
+
7
+ - e2605b6: Align multi-bodied-extension node for validator spec in DSL.
8
+
3
9
  ## 37.1.38
4
10
 
5
11
  ### Patch Changes
@@ -14,6 +14,7 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
14
14
  selectable: true,
15
15
  group: _blockRootOnlyGroup.blockRootOnlyGroup,
16
16
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
17
+ hasEmptyMarks: true,
17
18
  attrs: {
18
19
  extensionKey: {
19
20
  type: 'string',
@@ -49,5 +50,13 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
49
50
  }
50
51
  },
51
52
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_extensionFrame.extensionFrame))],
52
- ignore: ['json-schema']
53
+ ignore: ['json-schema'],
54
+ DANGEROUS_MANUAL_OVERRIDE: {
55
+ 'validator-spec': {
56
+ 'props.content.minItems': {
57
+ remove: true,
58
+ reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
59
+ }
60
+ }
61
+ }
53
62
  });
@@ -8,6 +8,7 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
8
8
  selectable: true,
9
9
  group: blockRootOnlyGroup,
10
10
  marks: [unsupportedNodeAttribute, unsupportedMark],
11
+ hasEmptyMarks: true,
11
12
  attrs: {
12
13
  extensionKey: {
13
14
  type: 'string',
@@ -43,5 +44,13 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
43
44
  }
44
45
  },
45
46
  content: [$onePlus($or(extensionFrame))],
46
- ignore: ['json-schema']
47
+ ignore: ['json-schema'],
48
+ DANGEROUS_MANUAL_OVERRIDE: {
49
+ 'validator-spec': {
50
+ 'props.content.minItems': {
51
+ remove: true,
52
+ reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
53
+ }
54
+ }
55
+ }
47
56
  });
@@ -8,6 +8,7 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
8
8
  selectable: true,
9
9
  group: blockRootOnlyGroup,
10
10
  marks: [unsupportedNodeAttribute, unsupportedMark],
11
+ hasEmptyMarks: true,
11
12
  attrs: {
12
13
  extensionKey: {
13
14
  type: 'string',
@@ -43,5 +44,13 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
43
44
  }
44
45
  },
45
46
  content: [$onePlus($or(extensionFrame))],
46
- ignore: ['json-schema']
47
+ ignore: ['json-schema'],
48
+ DANGEROUS_MANUAL_OVERRIDE: {
49
+ 'validator-spec': {
50
+ 'props.content.minItems': {
51
+ remove: true,
52
+ reason: "@DSLCompatibilityException - The content expression and minItems don't match in the current validator schema."
53
+ }
54
+ }
55
+ }
47
56
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "37.1.38",
3
+ "version": "37.1.39",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -5,7 +5,6 @@ import adfNode from '../../../src/next-schema/full-schema.adf';
5
5
  const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
6
6
  const SKIP_LIST = [
7
7
  'layoutSection_with_single_column', // doesn't exist in the output
8
- 'multiBodiedExtension', // doesn't match existing spec
9
8
  'nestedExpand', // doesn't match existing spec
10
9
 
11
10
  'atomic_inline', // doesn't exist in the output, not even used anywhere...