@atlaskit/adf-utils 19.13.1 → 19.13.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,13 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 19.13.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#165765](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/165765)
8
+ [`3f441f30e6507`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3f441f30e6507) -
9
+ Bump adf-schema to 46.0.0
10
+
3
11
  ## 19.13.1
4
12
 
5
13
  ### Patch Changes
@@ -13,9 +13,13 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
13
13
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
14
14
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
15
15
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
+ /** NodeNestingTransformError */
16
17
  var NodeNestingTransformError = exports.NodeNestingTransformError = /*#__PURE__*/function (_Error) {
17
18
  (0, _inherits2.default)(NodeNestingTransformError, _Error);
18
19
  var _super = _createSuper(NodeNestingTransformError);
20
+ /**
21
+ * @param message - Error message - Do not use any UGC in this message
22
+ */
19
23
  function NodeNestingTransformError(message) {
20
24
  var _this;
21
25
  (0, _classCallCheck2.default)(this, NodeNestingTransformError);
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "blockCard", {
27
27
  return _schemaValidator.blockCard;
28
28
  }
29
29
  });
30
+ Object.defineProperty(exports, "blockRootOnly", {
31
+ enumerable: true,
32
+ get: function get() {
33
+ return _schemaValidator.blockRootOnly;
34
+ }
35
+ });
30
36
  Object.defineProperty(exports, "block_content", {
31
37
  enumerable: true,
32
38
  get: function get() {
@@ -87,16 +93,10 @@ Object.defineProperty(exports, "codeBlock", {
87
93
  return _schemaValidator.codeBlock;
88
94
  }
89
95
  });
90
- Object.defineProperty(exports, "codeBlock_with_marks", {
91
- enumerable: true,
92
- get: function get() {
93
- return _schemaValidator.codeBlock_with_marks;
94
- }
95
- });
96
- Object.defineProperty(exports, "codeBlock_with_no_marks", {
96
+ Object.defineProperty(exports, "codeBlock_root_only", {
97
97
  enumerable: true,
98
98
  get: function get() {
99
- return _schemaValidator.codeBlock_with_no_marks;
99
+ return _schemaValidator.codeBlock_root_only;
100
100
  }
101
101
  });
102
102
  Object.defineProperty(exports, "confluenceInlineComment", {
@@ -159,16 +159,10 @@ Object.defineProperty(exports, "expand", {
159
159
  return _schemaValidator.expand;
160
160
  }
161
161
  });
162
- Object.defineProperty(exports, "expand_with_breakout_mark", {
162
+ Object.defineProperty(exports, "expand_root_only", {
163
163
  enumerable: true,
164
164
  get: function get() {
165
- return _schemaValidator.expand_with_breakout_mark;
166
- }
167
- });
168
- Object.defineProperty(exports, "expand_with_no_mark", {
169
- enumerable: true,
170
- get: function get() {
171
- return _schemaValidator.expand_with_no_mark;
165
+ return _schemaValidator.expand_root_only;
172
166
  }
173
167
  });
174
168
  Object.defineProperty(exports, "extension", {
@@ -507,6 +501,12 @@ Object.defineProperty(exports, "text_link_inline", {
507
501
  return _schemaValidator.text_link_inline;
508
502
  }
509
503
  });
504
+ Object.defineProperty(exports, "text_with_no_marks", {
505
+ enumerable: true,
506
+ get: function get() {
507
+ return _schemaValidator.text_with_no_marks;
508
+ }
509
+ });
510
510
  Object.defineProperty(exports, "underline", {
511
511
  enumerable: true,
512
512
  get: function get() {
@@ -1,4 +1,8 @@
1
+ /** NodeNestingTransformError */
1
2
  export class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
2
6
  constructor(message) {
3
7
  super(message);
4
8
  this.name = 'NodeNestingTransformError';
@@ -1,4 +1,4 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
2
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
3
3
  // Stage-0
4
4
  paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline } from '@atlaskit/adf-schema/schema-validator';
@@ -6,9 +6,13 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
7
7
  function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
8
8
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
+ /** NodeNestingTransformError */
9
10
  export var NodeNestingTransformError = /*#__PURE__*/function (_Error) {
10
11
  _inherits(NodeNestingTransformError, _Error);
11
12
  var _super = _createSuper(NodeNestingTransformError);
13
+ /**
14
+ * @param message - Error message - Do not use any UGC in this message
15
+ */
12
16
  function NodeNestingTransformError(message) {
13
17
  var _this;
14
18
  _classCallCheck(this, NodeNestingTransformError);
@@ -1,4 +1,4 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
2
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote,
3
3
  // Stage-0
4
4
  paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline } from '@atlaskit/adf-schema/schema-validator';
@@ -1,3 +1,7 @@
1
+ /** NodeNestingTransformError */
1
2
  export declare class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
2
6
  constructor(message: string);
3
7
  }
@@ -1,2 +1,2 @@
1
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
1
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
2
2
  paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, } from '@atlaskit/adf-schema/schema-validator';
@@ -1,3 +1,7 @@
1
+ /** NodeNestingTransformError */
1
2
  export declare class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
2
6
  constructor(message: string);
3
7
  }
@@ -1,2 +1,2 @@
1
- export { alignment, annotation, backgroundColor, blockCard, block_content, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_with_marks, codeBlock_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_with_breakout_mark, expand_with_no_mark, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
1
+ export { alignment, annotation, backgroundColor, blockCard, block_content, blockRootOnly, blockquote, bodiedExtension, bodiedExtension_with_marks, border, breakout, bulletList, caption, code, codeBlock, codeBlock_root_only, text_with_no_marks, confluenceInlineComment, dataConsumer, date, decisionItem, decisionList, doc, em, embedCard, emoji, expand, expand_root_only, extension, extensionFrame, extension_with_marks, fragment, hardBreak, heading, heading_with_alignment, heading_with_indentation, heading_with_no_marks, indentation, inlineCard, inlineExtension, inlineExtension_with_marks, inline_content, layoutColumn, layoutSection, layoutSection_full, layoutSection_with_single_column, link, listItem, media, mediaGroup, mediaInline, mediaSingle, mediaSingle_caption, mediaSingle_full, mention, multiBodiedExtension, nestedExpand, nestedExpand_content, nestedExpand_with_no_marks, non_nestable_block_content, orderedList, panel, panel_with_nested_blockquote, // Stage-0
2
2
  paragraph, paragraph_with_alignment, paragraph_with_indentation, paragraph_with_no_marks, placeholder, rule, status, strike, strong, subsup, table, tableCell, tableHeader, tableRow, taskItem, taskList, text, textColor, text_code_inline, text_formatted, text_link_inline, underline, } from '@atlaskit/adf-schema/schema-validator';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-utils",
3
- "version": "19.13.1",
3
+ "version": "19.13.2",
4
4
  "description": "Set of utilities to traverse, modify and create ADF documents.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -36,7 +36,7 @@
36
36
  "./validatorTypes": "./src/types/validatorTypes.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/adf-schema": "^44.2.0",
39
+ "@atlaskit/adf-schema": "^46.1.0",
40
40
  "@atlaskit/codemod-utils": "^4.2.0",
41
41
  "@babel/runtime": "^7.0.0"
42
42
  },