@atlaskit/adf-schema 42.3.0 → 42.3.1

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
+ ## 42.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - dfa64c8: Add override for pm.spec to ensure unsupportedBlock is correct for layoutSection_single_column
8
+
3
9
  ## 42.3.0
4
10
 
5
11
  ### Minor Changes
@@ -563,7 +563,7 @@ var layoutSectionFull = exports.layoutSectionFull = (0, _createPMSpecFactory.cre
563
563
  isolating: true
564
564
  });
565
565
  var layoutSectionWithSingleColumnStage0 = exports.layoutSectionWithSingleColumnStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
566
- content: '(layoutColumn | unsupportedBlock){1,5}',
566
+ content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
567
567
  marks: 'unsupportedMark unsupportedNodeAttribute',
568
568
  attrs: {
569
569
  columnRuleStyle: {
@@ -41,6 +41,12 @@ var layoutSection = exports.layoutSection = (0, _adfSchemaGenerator.adfNode)('la
41
41
  }
42
42
  },
43
43
  DANGEROUS_MANUAL_OVERRIDE: {
44
+ 'pm-spec': {
45
+ content: {
46
+ value: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
47
+ reason: "The content expression is not correct or redundant around 'unsupportedBlock*'. This case is not supported by the DSL. Also in JSON schema there is no range for the items, so theres a mismatch between JSON and PM."
48
+ }
49
+ },
44
50
  'validator-spec': {
45
51
  'props.type': {
46
52
  value: {
@@ -557,7 +557,7 @@ export const layoutSectionFull = createPMNodeSpecFactory({
557
557
  isolating: true
558
558
  });
559
559
  export const layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
560
- content: '(layoutColumn | unsupportedBlock){1,5}',
560
+ content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
561
561
  marks: 'unsupportedMark unsupportedNodeAttribute',
562
562
  attrs: {
563
563
  columnRuleStyle: {
@@ -35,6 +35,12 @@ export const layoutSection = adfNode('layoutSection').define({
35
35
  }
36
36
  },
37
37
  DANGEROUS_MANUAL_OVERRIDE: {
38
+ 'pm-spec': {
39
+ content: {
40
+ value: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
41
+ reason: `The content expression is not correct or redundant around 'unsupportedBlock*'. This case is not supported by the DSL. Also in JSON schema there is no range for the items, so theres a mismatch between JSON and PM.`
42
+ }
43
+ },
38
44
  'validator-spec': {
39
45
  'props.type': {
40
46
  value: {
@@ -557,7 +557,7 @@ export var layoutSectionFull = createPMNodeSpecFactory({
557
557
  isolating: true
558
558
  });
559
559
  export var layoutSectionWithSingleColumnStage0 = createPMNodeSpecFactory({
560
- content: '(layoutColumn | unsupportedBlock){1,5}',
560
+ content: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
561
561
  marks: 'unsupportedMark unsupportedNodeAttribute',
562
562
  attrs: {
563
563
  columnRuleStyle: {
@@ -35,6 +35,12 @@ export var layoutSection = adfNode('layoutSection').define({
35
35
  }
36
36
  },
37
37
  DANGEROUS_MANUAL_OVERRIDE: {
38
+ 'pm-spec': {
39
+ content: {
40
+ value: '(layoutColumn | unsupportedBlock){1,5} unsupportedBlock*',
41
+ reason: "The content expression is not correct or redundant around 'unsupportedBlock*'. This case is not supported by the DSL. Also in JSON schema there is no range for the items, so theres a mismatch between JSON and PM."
42
+ }
43
+ },
38
44
  'validator-spec': {
39
45
  'props.type': {
40
46
  value: {
@@ -11,6 +11,12 @@ export declare const layoutSection: import("@atlaskit/adf-schema-generator/dist/
11
11
  };
12
12
  };
13
13
  DANGEROUS_MANUAL_OVERRIDE: {
14
+ 'pm-spec': {
15
+ content: {
16
+ value: string;
17
+ reason: string;
18
+ };
19
+ };
14
20
  'validator-spec': {
15
21
  'props.type': {
16
22
  value: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "42.3.0",
3
+ "version": "42.3.1",
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/"