@atlaskit/adf-schema 50.2.1 → 50.2.2

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
+ ## 50.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - ed9288b: [EDITOR-1353] Disallow most marks on blockTaskItem nodes
8
+
3
9
  ## 50.2.1
4
10
 
5
11
  ### 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
@@ -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
@@ -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
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.2",
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/"