@atlaskit/adf-utils 14.4.1 → 15.0.0

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/validator/specs/block_content.js +1 -1
  3. package/dist/cjs/validator/specs/bodiedExtension_with_marks.js +1 -1
  4. package/dist/cjs/validator/specs/doc.js +1 -1
  5. package/dist/cjs/validator/specs/extension_with_marks.js +1 -1
  6. package/dist/cjs/validator/specs/index.js +0 -24
  7. package/dist/cjs/validator/specs/inline.js +1 -1
  8. package/dist/cjs/validator/specs/inlineExtension_with_marks.js +1 -1
  9. package/dist/cjs/validator/specs/non_nestable_block_content.js +1 -1
  10. package/dist/cjs/validator/specs/panel.js +8 -0
  11. package/dist/cjs/validator/specs/table.js +5 -0
  12. package/dist/cjs/validator/specs/tableCell_content.js +1 -1
  13. package/dist/cjs/version.json +1 -1
  14. package/dist/es2019/validator/specs/block_content.js +1 -1
  15. package/dist/es2019/validator/specs/bodiedExtension_with_marks.js +1 -1
  16. package/dist/es2019/validator/specs/doc.js +1 -1
  17. package/dist/es2019/validator/specs/extension_with_marks.js +1 -1
  18. package/dist/es2019/validator/specs/index.js +0 -3
  19. package/dist/es2019/validator/specs/inline.js +1 -1
  20. package/dist/es2019/validator/specs/inlineExtension_with_marks.js +1 -1
  21. package/dist/es2019/validator/specs/non_nestable_block_content.js +1 -1
  22. package/dist/es2019/validator/specs/panel.js +8 -0
  23. package/dist/es2019/validator/specs/table.js +5 -0
  24. package/dist/es2019/validator/specs/tableCell_content.js +1 -1
  25. package/dist/es2019/version.json +1 -1
  26. package/dist/esm/validator/specs/block_content.js +1 -1
  27. package/dist/esm/validator/specs/bodiedExtension_with_marks.js +1 -1
  28. package/dist/esm/validator/specs/doc.js +1 -1
  29. package/dist/esm/validator/specs/extension_with_marks.js +1 -1
  30. package/dist/esm/validator/specs/index.js +0 -3
  31. package/dist/esm/validator/specs/inline.js +1 -1
  32. package/dist/esm/validator/specs/inlineExtension_with_marks.js +1 -1
  33. package/dist/esm/validator/specs/non_nestable_block_content.js +1 -1
  34. package/dist/esm/validator/specs/panel.js +8 -0
  35. package/dist/esm/validator/specs/table.js +5 -0
  36. package/dist/esm/validator/specs/tableCell_content.js +1 -1
  37. package/dist/esm/version.json +1 -1
  38. package/dist/types/validator/specs/bodiedExtension_with_marks.d.ts +1 -1
  39. package/dist/types/validator/specs/extension_with_marks.d.ts +1 -1
  40. package/dist/types/validator/specs/index.d.ts +0 -3
  41. package/dist/types/validator/specs/inlineExtension_with_marks.d.ts +1 -1
  42. package/dist/types/validator/specs/panel.d.ts +8 -0
  43. package/dist/types/validator/specs/table.d.ts +5 -0
  44. package/package.json +2 -2
  45. package/dist/cjs/validator/specs/bodiedExtension_with_experimental_marks.js +0 -16
  46. package/dist/cjs/validator/specs/extension_with_experimental_marks.js +0 -16
  47. package/dist/cjs/validator/specs/inlineExtension_with_experimental_marks.js +0 -16
  48. package/dist/es2019/validator/specs/bodiedExtension_with_experimental_marks.js +0 -9
  49. package/dist/es2019/validator/specs/extension_with_experimental_marks.js +0 -9
  50. package/dist/es2019/validator/specs/inlineExtension_with_experimental_marks.js +0 -9
  51. package/dist/esm/validator/specs/bodiedExtension_with_experimental_marks.js +0 -9
  52. package/dist/esm/validator/specs/extension_with_experimental_marks.js +0 -9
  53. package/dist/esm/validator/specs/inlineExtension_with_experimental_marks.js +0 -9
  54. package/dist/types/validator/specs/bodiedExtension_with_experimental_marks.d.ts +0 -10
  55. package/dist/types/validator/specs/extension_with_experimental_marks.d.ts +0 -10
  56. package/dist/types/validator/specs/inlineExtension_with_experimental_marks.d.ts +0 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`5af69bfe9be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5af69bfe9be) - CETI-241 - Added additional panel ADF attributes (panelIconId, panelIconText) to uniquely identify custom panel emojis. The change has been categorised as major since it is a change to the full-schema ADF. However, the custom panel feature is behind a feature flag, has not yet been released to production, and is only currently planned for release to Confluence. See ADF change #61 for further details.
8
+
9
+ ### Minor Changes
10
+
11
+ - [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - - Allow `table` nodes to have `fragment` marks
12
+ - Promote `fragment` mark to "full" ADF schema
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 14.4.1
4
19
 
5
20
  ### Patch Changes
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks'];
7
+ var _default = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
8
8
  exports.default = _default;
@@ -8,7 +8,7 @@ var _default = ['bodiedExtension', {
8
8
  props: {
9
9
  marks: {
10
10
  type: 'array',
11
- items: ['dataConsumer'],
11
+ items: [['dataConsumer', 'fragment']],
12
12
  optional: true
13
13
  }
14
14
  }
@@ -16,7 +16,7 @@ var _default = {
16
16
  },
17
17
  content: {
18
18
  type: 'array',
19
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
19
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
20
20
  allowUnsupportedBlock: true
21
21
  }
22
22
  }
@@ -8,7 +8,7 @@ var _default = ['extension', {
8
8
  props: {
9
9
  marks: {
10
10
  type: 'array',
11
- items: ['dataConsumer'],
11
+ items: [['dataConsumer', 'fragment']],
12
12
  optional: true
13
13
  }
14
14
  }
@@ -47,12 +47,6 @@ Object.defineProperty(exports, "bodiedExtension", {
47
47
  return _bodiedExtension.default;
48
48
  }
49
49
  });
50
- Object.defineProperty(exports, "bodiedExtension_with_experimental_marks", {
51
- enumerable: true,
52
- get: function get() {
53
- return _bodiedExtension_with_experimental_marks.default;
54
- }
55
- });
56
50
  Object.defineProperty(exports, "bodiedExtension_with_marks", {
57
51
  enumerable: true,
58
52
  get: function get() {
@@ -179,12 +173,6 @@ Object.defineProperty(exports, "extension", {
179
173
  return _extension.default;
180
174
  }
181
175
  });
182
- Object.defineProperty(exports, "extension_with_experimental_marks", {
183
- enumerable: true,
184
- get: function get() {
185
- return _extension_with_experimental_marks.default;
186
- }
187
- });
188
176
  Object.defineProperty(exports, "extension_with_marks", {
189
177
  enumerable: true,
190
178
  get: function get() {
@@ -257,12 +245,6 @@ Object.defineProperty(exports, "inlineExtension", {
257
245
  return _inlineExtension.default;
258
246
  }
259
247
  });
260
- Object.defineProperty(exports, "inlineExtension_with_experimental_marks", {
261
- enumerable: true,
262
- get: function get() {
263
- return _inlineExtension_with_experimental_marks.default;
264
- }
265
- });
266
248
  Object.defineProperty(exports, "inlineExtension_with_marks", {
267
249
  enumerable: true,
268
250
  get: function get() {
@@ -556,8 +538,6 @@ var _inlineExtension = _interopRequireDefault(require("./inlineExtension"));
556
538
 
557
539
  var _inlineExtension_with_marks = _interopRequireDefault(require("./inlineExtension_with_marks"));
558
540
 
559
- var _inlineExtension_with_experimental_marks = _interopRequireDefault(require("./inlineExtension_with_experimental_marks"));
560
-
561
541
  var _date = _interopRequireDefault(require("./date"));
562
542
 
563
543
  var _placeholder = _interopRequireDefault(require("./placeholder"));
@@ -640,8 +620,6 @@ var _extension = _interopRequireDefault(require("./extension"));
640
620
 
641
621
  var _extension_with_marks = _interopRequireDefault(require("./extension_with_marks"));
642
622
 
643
- var _extension_with_experimental_marks = _interopRequireDefault(require("./extension_with_experimental_marks"));
644
-
645
623
  var _embedCard = _interopRequireDefault(require("./embedCard"));
646
624
 
647
625
  var _nestedExpand_content = _interopRequireDefault(require("./nestedExpand_content"));
@@ -672,8 +650,6 @@ var _bodiedExtension = _interopRequireDefault(require("./bodiedExtension"));
672
650
 
673
651
  var _bodiedExtension_with_marks = _interopRequireDefault(require("./bodiedExtension_with_marks"));
674
652
 
675
- var _bodiedExtension_with_experimental_marks = _interopRequireDefault(require("./bodiedExtension_with_experimental_marks"));
676
-
677
653
  var _block_content = _interopRequireDefault(require("./block_content"));
678
654
 
679
655
  var _layoutColumn = _interopRequireDefault(require("./layoutColumn"));
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'inlineExtension_with_experimental_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
7
+ var _default = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
8
8
  exports.default = _default;
@@ -8,7 +8,7 @@ var _default = ['inlineExtension', {
8
8
  props: {
9
9
  marks: {
10
10
  type: 'array',
11
- items: ['dataConsumer'],
11
+ items: [['dataConsumer', 'fragment']],
12
12
  optional: true
13
13
  }
14
14
  }
@@ -4,5 +4,5 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- var _default = ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table'];
7
+ var _default = ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table'];
8
8
  exports.default = _default;
@@ -23,6 +23,14 @@ var _default = {
23
23
  panelColor: {
24
24
  type: 'string',
25
25
  optional: true
26
+ },
27
+ panelIconId: {
28
+ type: 'string',
29
+ optional: true
30
+ },
31
+ panelIconText: {
32
+ type: 'string',
33
+ optional: true
26
34
  }
27
35
  }
28
36
  },
@@ -33,6 +33,11 @@ var _default = {
33
33
  type: 'array',
34
34
  items: ['tableRow'],
35
35
  minItems: 1
36
+ },
37
+ marks: {
38
+ type: 'array',
39
+ items: ['fragment'],
40
+ optional: true
36
41
  }
37
42
  }
38
43
  };
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _default = {
8
8
  type: 'array',
9
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'nestedExpand_with_no_marks']],
9
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'nestedExpand_with_no_marks']],
10
10
  minItems: 1,
11
11
  allowUnsupportedBlock: true
12
12
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "14.4.1",
3
+ "version": "15.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1 @@
1
- export default ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks'];
1
+ export default ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
@@ -2,7 +2,7 @@ export default ['bodiedExtension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -10,7 +10,7 @@ export default {
10
10
  },
11
11
  content: {
12
12
  type: 'array',
13
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
13
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
14
14
  allowUnsupportedBlock: true
15
15
  }
16
16
  }
@@ -2,7 +2,7 @@ export default ['extension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -19,7 +19,6 @@ export { default as mention } from './mention';
19
19
  export { default as emoji } from './emoji';
20
20
  export { default as inlineExtension } from './inlineExtension';
21
21
  export { default as inlineExtension_with_marks } from './inlineExtension_with_marks';
22
- export { default as inlineExtension_with_experimental_marks } from './inlineExtension_with_experimental_marks';
23
22
  export { default as date } from './date';
24
23
  export { default as placeholder } from './placeholder';
25
24
  export { default as blockCard } from './blockCard';
@@ -61,7 +60,6 @@ export { default as taskItem } from './taskItem';
61
60
  export { default as taskList } from './taskList';
62
61
  export { default as extension } from './extension';
63
62
  export { default as extension_with_marks } from './extension_with_marks';
64
- export { default as extension_with_experimental_marks } from './extension_with_experimental_marks';
65
63
  export { default as embedCard } from './embedCard';
66
64
  export { default as nestedExpand_content } from './nestedExpand_content';
67
65
  export { default as nestedExpand } from './nestedExpand';
@@ -77,7 +75,6 @@ export { default as expand_with_no_mark } from './expand_with_no_mark';
77
75
  export { default as expand_with_breakout_mark } from './expand_with_breakout_mark';
78
76
  export { default as bodiedExtension } from './bodiedExtension';
79
77
  export { default as bodiedExtension_with_marks } from './bodiedExtension_with_marks';
80
- export { default as bodiedExtension_with_experimental_marks } from './bodiedExtension_with_experimental_marks';
81
78
  export { default as block_content } from './block_content';
82
79
  export { default as layoutColumn } from './layoutColumn';
83
80
  export { default as layoutSection } from './layoutSection';
@@ -1 +1 @@
1
- export default ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'inlineExtension_with_experimental_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
1
+ export default ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
@@ -2,7 +2,7 @@ export default ['inlineExtension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -1 +1 @@
1
- export default ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table'];
1
+ export default ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table'];
@@ -17,6 +17,14 @@ export default {
17
17
  panelColor: {
18
18
  type: 'string',
19
19
  optional: true
20
+ },
21
+ panelIconId: {
22
+ type: 'string',
23
+ optional: true
24
+ },
25
+ panelIconText: {
26
+ type: 'string',
27
+ optional: true
20
28
  }
21
29
  }
22
30
  },
@@ -27,6 +27,11 @@ export default {
27
27
  type: 'array',
28
28
  items: ['tableRow'],
29
29
  minItems: 1
30
+ },
31
+ marks: {
32
+ type: 'array',
33
+ items: ['fragment'],
34
+ optional: true
30
35
  }
31
36
  }
32
37
  };
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  type: 'array',
3
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'nestedExpand_with_no_marks']],
3
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'nestedExpand_with_no_marks']],
4
4
  minItems: 1,
5
5
  allowUnsupportedBlock: true
6
6
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "14.4.1",
3
+ "version": "15.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -1 +1 @@
1
- export default ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks'];
1
+ export default ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
@@ -2,7 +2,7 @@ export default ['bodiedExtension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -10,7 +10,7 @@ export default {
10
10
  },
11
11
  content: {
12
12
  type: 'array',
13
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'bodiedExtension_with_experimental_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
13
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'codeBlock_with_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'expand_with_breakout_mark', 'bodiedExtension_with_marks', 'layoutSection_full', 'layoutSection_with_single_column']],
14
14
  allowUnsupportedBlock: true
15
15
  }
16
16
  }
@@ -2,7 +2,7 @@ export default ['extension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -19,7 +19,6 @@ export { default as mention } from './mention';
19
19
  export { default as emoji } from './emoji';
20
20
  export { default as inlineExtension } from './inlineExtension';
21
21
  export { default as inlineExtension_with_marks } from './inlineExtension_with_marks';
22
- export { default as inlineExtension_with_experimental_marks } from './inlineExtension_with_experimental_marks';
23
22
  export { default as date } from './date';
24
23
  export { default as placeholder } from './placeholder';
25
24
  export { default as blockCard } from './blockCard';
@@ -61,7 +60,6 @@ export { default as taskItem } from './taskItem';
61
60
  export { default as taskList } from './taskList';
62
61
  export { default as extension } from './extension';
63
62
  export { default as extension_with_marks } from './extension_with_marks';
64
- export { default as extension_with_experimental_marks } from './extension_with_experimental_marks';
65
63
  export { default as embedCard } from './embedCard';
66
64
  export { default as nestedExpand_content } from './nestedExpand_content';
67
65
  export { default as nestedExpand } from './nestedExpand';
@@ -77,7 +75,6 @@ export { default as expand_with_no_mark } from './expand_with_no_mark';
77
75
  export { default as expand_with_breakout_mark } from './expand_with_breakout_mark';
78
76
  export { default as bodiedExtension } from './bodiedExtension';
79
77
  export { default as bodiedExtension_with_marks } from './bodiedExtension_with_marks';
80
- export { default as bodiedExtension_with_experimental_marks } from './bodiedExtension_with_experimental_marks';
81
78
  export { default as block_content } from './block_content';
82
79
  export { default as layoutColumn } from './layoutColumn';
83
80
  export { default as layoutSection } from './layoutSection';
@@ -1 +1 @@
1
- export default ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'inlineExtension_with_experimental_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
1
+ export default ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline', 'formatted_text_inline', 'code_inline'];
@@ -2,7 +2,7 @@ export default ['inlineExtension', {
2
2
  props: {
3
3
  marks: {
4
4
  type: 'array',
5
- items: ['dataConsumer'],
5
+ items: [['dataConsumer', 'fragment']],
6
6
  optional: true
7
7
  }
8
8
  }
@@ -1 +1 @@
1
- export default ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'table'];
1
+ export default ['blockCard', 'paragraph_with_no_marks', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'table'];
@@ -17,6 +17,14 @@ export default {
17
17
  panelColor: {
18
18
  type: 'string',
19
19
  optional: true
20
+ },
21
+ panelIconId: {
22
+ type: 'string',
23
+ optional: true
24
+ },
25
+ panelIconText: {
26
+ type: 'string',
27
+ optional: true
20
28
  }
21
29
  }
22
30
  },
@@ -27,6 +27,11 @@ export default {
27
27
  type: 'array',
28
28
  items: ['tableRow'],
29
29
  minItems: 1
30
+ },
31
+ marks: {
32
+ type: 'array',
33
+ items: ['fragment'],
34
+ optional: true
30
35
  }
31
36
  }
32
37
  };
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  type: 'array',
3
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'extension_with_experimental_marks', 'embedCard', 'nestedExpand_with_no_marks']],
3
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'bulletList', 'mediaSingle_full', 'mediaSingle_caption', 'codeBlock_with_no_marks', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'panel', 'blockquote', 'rule', 'mediaGroup', 'decisionList', 'taskList', 'extension_with_marks', 'embedCard', 'nestedExpand_with_no_marks']],
4
4
  minItems: 1,
5
5
  allowUnsupportedBlock: true
6
6
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "14.4.1",
3
+ "version": "15.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -2,7 +2,7 @@ declare const _default: (string | {
2
2
  props: {
3
3
  marks: {
4
4
  type: string;
5
- items: string[];
5
+ items: string[][];
6
6
  optional: boolean;
7
7
  };
8
8
  };
@@ -2,7 +2,7 @@ declare const _default: (string | {
2
2
  props: {
3
3
  marks: {
4
4
  type: string;
5
- items: string[];
5
+ items: string[][];
6
6
  optional: boolean;
7
7
  };
8
8
  };
@@ -18,7 +18,6 @@ export { default as mention } from './mention';
18
18
  export { default as emoji } from './emoji';
19
19
  export { default as inlineExtension } from './inlineExtension';
20
20
  export { default as inlineExtension_with_marks } from './inlineExtension_with_marks';
21
- export { default as inlineExtension_with_experimental_marks } from './inlineExtension_with_experimental_marks';
22
21
  export { default as date } from './date';
23
22
  export { default as placeholder } from './placeholder';
24
23
  export { default as blockCard } from './blockCard';
@@ -60,7 +59,6 @@ export { default as taskItem } from './taskItem';
60
59
  export { default as taskList } from './taskList';
61
60
  export { default as extension } from './extension';
62
61
  export { default as extension_with_marks } from './extension_with_marks';
63
- export { default as extension_with_experimental_marks } from './extension_with_experimental_marks';
64
62
  export { default as embedCard } from './embedCard';
65
63
  export { default as nestedExpand_content } from './nestedExpand_content';
66
64
  export { default as nestedExpand } from './nestedExpand';
@@ -76,7 +74,6 @@ export { default as expand_with_no_mark } from './expand_with_no_mark';
76
74
  export { default as expand_with_breakout_mark } from './expand_with_breakout_mark';
77
75
  export { default as bodiedExtension } from './bodiedExtension';
78
76
  export { default as bodiedExtension_with_marks } from './bodiedExtension_with_marks';
79
- export { default as bodiedExtension_with_experimental_marks } from './bodiedExtension_with_experimental_marks';
80
77
  export { default as block_content } from './block_content';
81
78
  export { default as layoutColumn } from './layoutColumn';
82
79
  export { default as layoutSection } from './layoutSection';
@@ -2,7 +2,7 @@ declare const _default: (string | {
2
2
  props: {
3
3
  marks: {
4
4
  type: string;
5
- items: string[];
5
+ items: string[][];
6
6
  optional: boolean;
7
7
  };
8
8
  };
@@ -18,6 +18,14 @@ declare const _default: {
18
18
  type: string;
19
19
  optional: boolean;
20
20
  };
21
+ panelIconId: {
22
+ type: string;
23
+ optional: boolean;
24
+ };
25
+ panelIconText: {
26
+ type: string;
27
+ optional: boolean;
28
+ };
21
29
  };
22
30
  };
23
31
  content: {
@@ -28,6 +28,11 @@ declare const _default: {
28
28
  items: string[];
29
29
  minItems: number;
30
30
  };
31
+ marks: {
32
+ type: string;
33
+ items: string[];
34
+ optional: boolean;
35
+ };
31
36
  };
32
37
  };
33
38
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "14.4.1",
3
+ "version": "15.0.0",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,7 +24,7 @@
24
24
  "generate:spec": "rm -rf ./src/validator/specs/ && ../json-schema-generator/bin.js --outDir=./src/validator/specs/ --mode=Spec --stage=0 ./src/validator/entry.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-schema": "^20.1.0",
27
+ "@atlaskit/adf-schema": "^21.0.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
30
30
  "devDependencies": {
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = ['bodiedExtension', {
8
- props: {
9
- marks: {
10
- type: 'array',
11
- items: ['fragment'],
12
- optional: true
13
- }
14
- }
15
- }];
16
- exports.default = _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = ['extension', {
8
- props: {
9
- marks: {
10
- type: 'array',
11
- items: ['fragment'],
12
- optional: true
13
- }
14
- }
15
- }];
16
- exports.default = _default;
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _default = ['inlineExtension', {
8
- props: {
9
- marks: {
10
- type: 'array',
11
- items: ['fragment'],
12
- optional: true
13
- }
14
- }
15
- }];
16
- exports.default = _default;
@@ -1,9 +0,0 @@
1
- export default ['bodiedExtension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,9 +0,0 @@
1
- export default ['extension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,9 +0,0 @@
1
- export default ['inlineExtension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,9 +0,0 @@
1
- export default ['bodiedExtension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,9 +0,0 @@
1
- export default ['extension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,9 +0,0 @@
1
- export default ['inlineExtension', {
2
- props: {
3
- marks: {
4
- type: 'array',
5
- items: ['fragment'],
6
- optional: true
7
- }
8
- }
9
- }];
@@ -1,10 +0,0 @@
1
- declare const _default: (string | {
2
- props: {
3
- marks: {
4
- type: string;
5
- items: string[];
6
- optional: boolean;
7
- };
8
- };
9
- })[];
10
- export default _default;
@@ -1,10 +0,0 @@
1
- declare const _default: (string | {
2
- props: {
3
- marks: {
4
- type: string;
5
- items: string[];
6
- optional: boolean;
7
- };
8
- };
9
- })[];
10
- export default _default;
@@ -1,10 +0,0 @@
1
- declare const _default: (string | {
2
- props: {
3
- marks: {
4
- type: string;
5
- items: string[];
6
- optional: boolean;
7
- };
8
- };
9
- })[];
10
- export default _default;