@atlaskit/adf-schema 37.1.29 → 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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 37.1.31
4
+
5
+ ### Patch Changes
6
+
7
+ - 79fd420: ED-23030: overrides caption for validator spec
8
+ - 2d1185b: ED-23030: overrides validator-spec for expand node
9
+
10
+ ## 37.1.30
11
+
12
+ ### Patch Changes
13
+
14
+ - 90da950: ED-23030: overrides caption DSL for validator spec
15
+
3
16
  ## 37.1.29
4
17
 
5
18
  ### Patch Changes
@@ -21,5 +21,17 @@ var caption = exports.caption = (0, _adfSchemaGenerator.adfNode)('caption').defi
21
21
  selectable: false,
22
22
  marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
23
23
  allowAnyChildMark: true,
24
- content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
24
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))],
25
+ DANGEROUS_MANUAL_OVERRIDE: {
26
+ 'validator-spec': {
27
+ 'props.content.optional': {
28
+ reason: '@DSLCompatibilityException - mismatch for caption',
29
+ remove: true
30
+ },
31
+ 'props.content.minItems': {
32
+ reason: '@DSLCompatibilityException - mismatch for caption',
33
+ value: 0
34
+ }
35
+ }
36
+ }
25
37
  });
@@ -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
  });
@@ -15,5 +15,17 @@ export const caption = adfNode('caption').define({
15
15
  selectable: false,
16
16
  marks: [unsupportedNodeAttribute, unsupportedMark],
17
17
  allowAnyChildMark: true,
18
- content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
18
+ content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))],
19
+ DANGEROUS_MANUAL_OVERRIDE: {
20
+ 'validator-spec': {
21
+ 'props.content.optional': {
22
+ reason: '@DSLCompatibilityException - mismatch for caption',
23
+ remove: true
24
+ },
25
+ 'props.content.minItems': {
26
+ reason: '@DSLCompatibilityException - mismatch for caption',
27
+ value: 0
28
+ }
29
+ }
30
+ }
19
31
  });
@@ -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
  });
@@ -15,5 +15,17 @@ export var caption = adfNode('caption').define({
15
15
  selectable: false,
16
16
  marks: [unsupportedNodeAttribute, unsupportedMark],
17
17
  allowAnyChildMark: true,
18
- content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))]
18
+ content: [$zeroPlus($or(hardBreak, mention, emoji, date, placeholder, inlineCard, status, text.use('formatted'), text.use('code_inline'), unsupportedInline))],
19
+ DANGEROUS_MANUAL_OVERRIDE: {
20
+ 'validator-spec': {
21
+ 'props.content.optional': {
22
+ reason: '@DSLCompatibilityException - mismatch for caption',
23
+ remove: true
24
+ },
25
+ 'props.content.minItems': {
26
+ reason: '@DSLCompatibilityException - mismatch for caption',
27
+ value: 0
28
+ }
29
+ }
30
+ }
19
31
  });
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "37.1.29",
3
+ "version": "37.1.31",
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/"
@@ -4,10 +4,8 @@ import adfNode from '../../../src/next-schema/full-schema.adf';
4
4
 
5
5
  const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
6
6
  const SKIP_LIST = [
7
- 'caption', // doesn't match existing spec
8
7
  'codeBlock', // doesn't match existing spec
9
8
  'doc', // doesn't match existing spec, need to flatten groups
10
- 'expand', // doesn't match existing spec
11
9
  'extensionFrame', // doesn't match existing spec
12
10
  'inline_comment_marker', // doesn't exist in the output
13
11
  'layoutSection_full', // doesn't match existing spec, allowUnsupportedBlock, extra marks
@@ -18,7 +16,6 @@ const SKIP_LIST = [
18
16
  'nestedExpand', // doesn't match existing spec
19
17
  'tableCell', // doesn't match existing spec
20
18
  'tableHeader', // doesn't match existing spec
21
- 'tableRow', // doesn't match existing spec, extra minItems
22
19
 
23
20
  'atomic_inline', // doesn't exist in the output, not even used anywhere...
24
21
  'nestedExpand_content', // doesn't exist in the output, completely different format from other groups