@atlaskit/adf-schema 50.2.1 → 50.2.3

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,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 50.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - cdf64a5: NO-ISSUE Fix layoutSectionWithLocalId export to use stage0 schema builder.
8
+
9
+ ## 50.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - ed9288b: [EDITOR-1353] Disallow most marks on blockTaskItem nodes
14
+
3
15
  ## 50.2.1
4
16
 
5
17
  ### Patch Changes
@@ -62,7 +62,7 @@ var blockquoteLegacy = exports.blockquoteLegacy = (0, _createPMSpecFactory.creat
62
62
  });
63
63
  var blockTaskItemStage0 = exports.blockTaskItemStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
64
64
  content: '(paragraph | extension) (paragraph | extension)*',
65
- marks: '_',
65
+ marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
66
66
  attrs: {
67
67
  localId: {
68
68
  default: ''
@@ -40,6 +40,9 @@ taskItem.define(_objectSpread(_objectSpread({}, commonTaskItemProps), {}, {
40
40
  content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
41
41
  }));
42
42
  blockTaskItem.define(_objectSpread(_objectSpread({}, commonTaskItemProps), {}, {
43
+ marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
44
+ allowAnyChildMark: false,
45
+ // Override the commonTaskItemProps setting
43
46
  contentMinItems: 1,
44
47
  content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _extension.extension.use('with_marks')), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _extension.extension.use('with_marks')))],
45
48
  stage0: true
@@ -78,7 +78,7 @@ var layoutSectionWithSingleColumn = exports.layoutSectionWithSingleColumn = (0,
78
78
  return ['div', attrs, 0];
79
79
  }
80
80
  });
81
- var layoutSectionWithLocalId = exports.layoutSectionWithLocalId = (0, _nodeTypes.layoutSectionFull)({
81
+ var layoutSectionWithLocalId = exports.layoutSectionWithLocalId = (0, _nodeTypes.layoutSection)({
82
82
  parseDOM: [{
83
83
  context: 'layoutSection//|layoutColumn//',
84
84
  tag: 'div[data-layout-section]',
@@ -56,7 +56,7 @@ export const blockquoteLegacy = createPMNodeSpecFactory({
56
56
  });
57
57
  export const blockTaskItemStage0 = createPMNodeSpecFactory({
58
58
  content: '(paragraph | extension) (paragraph | extension)*',
59
- marks: '_',
59
+ marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
60
60
  attrs: {
61
61
  localId: {
62
62
  default: ''
@@ -32,6 +32,9 @@ taskItem.define({
32
32
  });
33
33
  blockTaskItem.define({
34
34
  ...commonTaskItemProps,
35
+ marks: [unsupportedMark, unsupportedNodeAttribute],
36
+ allowAnyChildMark: false,
37
+ // Override the commonTaskItemProps setting
35
38
  contentMinItems: 1,
36
39
  content: [$or(paragraph.use('with_no_marks'), extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), extension.use('with_marks')))],
37
40
  stage0: true
@@ -76,7 +76,7 @@ export const layoutSectionWithSingleColumn = layoutSectionWithSingleColumnStage0
76
76
  return ['div', attrs, 0];
77
77
  }
78
78
  });
79
- export const layoutSectionWithLocalId = layoutSectionFullFactory({
79
+ export const layoutSectionWithLocalId = layoutSectionFactory({
80
80
  parseDOM: [{
81
81
  context: 'layoutSection//|layoutColumn//',
82
82
  tag: 'div[data-layout-section]',
@@ -56,7 +56,7 @@ export var blockquoteLegacy = createPMNodeSpecFactory({
56
56
  });
57
57
  export var blockTaskItemStage0 = createPMNodeSpecFactory({
58
58
  content: '(paragraph | extension) (paragraph | extension)*',
59
- marks: '_',
59
+ marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
60
60
  attrs: {
61
61
  localId: {
62
62
  default: ''
@@ -33,6 +33,9 @@ taskItem.define(_objectSpread(_objectSpread({}, commonTaskItemProps), {}, {
33
33
  content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
34
34
  }));
35
35
  blockTaskItem.define(_objectSpread(_objectSpread({}, commonTaskItemProps), {}, {
36
+ marks: [unsupportedMark, unsupportedNodeAttribute],
37
+ allowAnyChildMark: false,
38
+ // Override the commonTaskItemProps setting
36
39
  contentMinItems: 1,
37
40
  content: [$or(paragraph.use('with_no_marks'), extension.use('with_marks')), $zeroPlus($or(paragraph.use('with_no_marks'), extension.use('with_marks')))],
38
41
  stage0: true
@@ -74,7 +74,7 @@ export var layoutSectionWithSingleColumn = layoutSectionWithSingleColumnStage0Fa
74
74
  return ['div', attrs, 0];
75
75
  }
76
76
  });
77
- export var layoutSectionWithLocalId = layoutSectionFullFactory({
77
+ export var layoutSectionWithLocalId = layoutSectionFactory({
78
78
  parseDOM: [{
79
79
  context: 'layoutSection//|layoutColumn//',
80
80
  tag: 'div[data-layout-section]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "50.2.1",
3
+ "version": "50.2.3",
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/"