@atlaskit/adf-schema 37.1.29 → 37.1.30

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.30
4
+
5
+ ### Patch Changes
6
+
7
+ - 90da950: ED-23030: overrides caption DSL for validator spec
8
+
3
9
  ## 37.1.29
4
10
 
5
11
  ### 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
  });
@@ -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
  });
@@ -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
  });
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.30",
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,7 +4,6 @@ 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
9
  'expand', // doesn't match existing spec