@atlaskit/adf-utils 19.13.0 → 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,22 @@
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
+
11
+ ## 19.13.1
12
+
13
+ ### Patch Changes
14
+
15
+ - [#166957](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/166957)
16
+ [`32cc3cebd2ed7`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32cc3cebd2ed7) -
17
+ ED-25632 Ensure table nesting transform errors are logged to analytics. This includes an upgrade
18
+ to core-plugin to allow it to receive an anaylytics callback.
19
+
3
20
  ## 19.13.0
4
21
 
5
22
  ### Minor Changes
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.NodeNestingTransformError = void 0;
8
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
9
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
10
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
11
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
12
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
13
+ var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
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
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
16
+ /** NodeNestingTransformError */
17
+ var NodeNestingTransformError = exports.NodeNestingTransformError = /*#__PURE__*/function (_Error) {
18
+ (0, _inherits2.default)(NodeNestingTransformError, _Error);
19
+ var _super = _createSuper(NodeNestingTransformError);
20
+ /**
21
+ * @param message - Error message - Do not use any UGC in this message
22
+ */
23
+ function NodeNestingTransformError(message) {
24
+ var _this;
25
+ (0, _classCallCheck2.default)(this, NodeNestingTransformError);
26
+ _this = _super.call(this, message);
27
+ _this.name = 'NodeNestingTransformError';
28
+ return _this;
29
+ }
30
+ return (0, _createClass2.default)(NodeNestingTransformError);
31
+ }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
@@ -8,6 +8,7 @@ exports.transformNestedTablesIncomingDocument = exports.transformNestedTableNode
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _traverse = require("../traverse/traverse");
10
10
  var _builders = require("../builders");
11
+ var _errors = require("./errors");
11
12
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
12
13
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
13
14
  var NESTED_TABLE_EXTENSION_TYPE = 'com.atlassian.nesting',
@@ -26,7 +27,7 @@ var transformNestedTableExtension = function transformNestedTableExtension(neste
26
27
  var _nestedTableExtension2;
27
28
  return JSON.parse((_nestedTableExtension2 = nestedTableExtension.attrs) === null || _nestedTableExtension2 === void 0 || (_nestedTableExtension2 = _nestedTableExtension2.parameters) === null || _nestedTableExtension2 === void 0 || (_nestedTableExtension2 = _nestedTableExtension2.macroParams) === null || _nestedTableExtension2 === void 0 ? void 0 : _nestedTableExtension2.nestedContent.value);
28
29
  } catch (e) {
29
- throw new Error('Failed to parse nested table content');
30
+ throw new _errors.NodeNestingTransformError('Failed to parse nested table content');
30
31
  }
31
32
  };
32
33
  var transformNestedTablesIncomingDocument = exports.transformNestedTablesIncomingDocument = function transformNestedTablesIncomingDocument(adf) {
@@ -45,24 +46,28 @@ var transformNestedTablesIncomingDocument = exports.transformNestedTablesIncomin
45
46
  };
46
47
  };
47
48
  var transformNestedTableNodeOutgoingDocument = exports.transformNestedTableNodeOutgoingDocument = function transformNestedTableNodeOutgoingDocument(tableCellNode) {
48
- var _tableCellNode$conten;
49
- return _objectSpread(_objectSpread({}, tableCellNode), {}, {
50
- content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(function (childNode) {
51
- // wrap nested table in an extension node
52
- if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
53
- return (0, _builders.extension)({
54
- extensionType: NESTED_TABLE_EXTENSION_TYPE,
55
- extensionKey: NESTED_TABLE_EXTENSION_KEY,
56
- parameters: {
57
- macroParams: {
58
- nestedContent: {
59
- value: JSON.stringify(childNode)
49
+ try {
50
+ var _tableCellNode$conten;
51
+ return _objectSpread(_objectSpread({}, tableCellNode), {}, {
52
+ content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(function (childNode) {
53
+ // wrap nested table in an extension node
54
+ if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
55
+ return (0, _builders.extension)({
56
+ extensionType: NESTED_TABLE_EXTENSION_TYPE,
57
+ extensionKey: NESTED_TABLE_EXTENSION_KEY,
58
+ parameters: {
59
+ macroParams: {
60
+ nestedContent: {
61
+ value: JSON.stringify(childNode)
62
+ }
60
63
  }
61
64
  }
62
- }
63
- });
64
- }
65
- return childNode;
66
- })
67
- });
65
+ });
66
+ }
67
+ return childNode;
68
+ })
69
+ });
70
+ } catch (e) {
71
+ throw new _errors.NodeNestingTransformError('Failed to encode nested table node');
72
+ }
68
73
  };
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "NodeNestingTransformError", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _errors.NodeNestingTransformError;
10
+ }
11
+ });
6
12
  Object.defineProperty(exports, "transformDedupeMarks", {
7
13
  enumerable: true,
8
14
  get: function get() {
@@ -57,4 +63,5 @@ var _dedupeMarksTransform = require("./transforms/dedupe-marks-transform");
57
63
  var _nodesMissingContentTransform = require("./transforms/nodes-missing-content-transform");
58
64
  var _indentationMarksTransform = require("./transforms/indentation-marks-transform");
59
65
  var _invalidMediaContentTransform = require("./transforms/invalid-media-content-transform");
60
- var _nestedTableTransform = require("./transforms/nested-table-transform");
66
+ var _nestedTableTransform = require("./transforms/nested-table-transform");
67
+ var _errors = require("./transforms/errors");
@@ -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() {
@@ -0,0 +1,10 @@
1
+ /** NodeNestingTransformError */
2
+ export class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
6
+ constructor(message) {
7
+ super(message);
8
+ this.name = 'NodeNestingTransformError';
9
+ }
10
+ }
@@ -1,5 +1,6 @@
1
1
  import { traverse } from '../traverse/traverse';
2
2
  import { extension } from '../builders';
3
+ import { NodeNestingTransformError } from './errors';
3
4
  const NESTED_TABLE_EXTENSION_TYPE = 'com.atlassian.nesting',
4
5
  NESTED_TABLE_EXTENSION_KEY = 'nested-table';
5
6
  const isNestedTableExtension = extensionNode => {
@@ -16,7 +17,7 @@ const transformNestedTableExtension = nestedTableExtension => {
16
17
  var _nestedTableExtension4, _nestedTableExtension5, _nestedTableExtension6;
17
18
  return JSON.parse((_nestedTableExtension4 = nestedTableExtension.attrs) === null || _nestedTableExtension4 === void 0 ? void 0 : (_nestedTableExtension5 = _nestedTableExtension4.parameters) === null || _nestedTableExtension5 === void 0 ? void 0 : (_nestedTableExtension6 = _nestedTableExtension5.macroParams) === null || _nestedTableExtension6 === void 0 ? void 0 : _nestedTableExtension6.nestedContent.value);
18
19
  } catch (e) {
19
- throw new Error('Failed to parse nested table content');
20
+ throw new NodeNestingTransformError('Failed to parse nested table content');
20
21
  }
21
22
  };
22
23
  export const transformNestedTablesIncomingDocument = adf => {
@@ -35,25 +36,29 @@ export const transformNestedTablesIncomingDocument = adf => {
35
36
  };
36
37
  };
37
38
  export const transformNestedTableNodeOutgoingDocument = tableCellNode => {
38
- var _tableCellNode$conten;
39
- return {
40
- ...tableCellNode,
41
- content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(childNode => {
42
- // wrap nested table in an extension node
43
- if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
44
- return extension({
45
- extensionType: NESTED_TABLE_EXTENSION_TYPE,
46
- extensionKey: NESTED_TABLE_EXTENSION_KEY,
47
- parameters: {
48
- macroParams: {
49
- nestedContent: {
50
- value: JSON.stringify(childNode)
39
+ try {
40
+ var _tableCellNode$conten;
41
+ return {
42
+ ...tableCellNode,
43
+ content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(childNode => {
44
+ // wrap nested table in an extension node
45
+ if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
46
+ return extension({
47
+ extensionType: NESTED_TABLE_EXTENSION_TYPE,
48
+ extensionKey: NESTED_TABLE_EXTENSION_KEY,
49
+ parameters: {
50
+ macroParams: {
51
+ nestedContent: {
52
+ value: JSON.stringify(childNode)
53
+ }
51
54
  }
52
55
  }
53
- }
54
- });
55
- }
56
- return childNode;
57
- })
58
- };
56
+ });
57
+ }
58
+ return childNode;
59
+ })
60
+ };
61
+ } catch (e) {
62
+ throw new NodeNestingTransformError('Failed to encode nested table node');
63
+ }
59
64
  };
@@ -8,4 +8,5 @@ export { transformNodesMissingContent } from './transforms/nodes-missing-content
8
8
  export { transformIndentationMarks } from './transforms/indentation-marks-transform';
9
9
  export { transformInvalidMediaContent } from './transforms/invalid-media-content-transform';
10
10
  export { transformNestedTablesIncomingDocument } from './transforms/nested-table-transform';
11
- export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
11
+ export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
12
+ export { NodeNestingTransformError } from './transforms/errors';
@@ -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';
@@ -0,0 +1,24 @@
1
+ import _createClass from "@babel/runtime/helpers/createClass";
2
+ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
+ import _inherits from "@babel/runtime/helpers/inherits";
4
+ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
5
+ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
+ import _wrapNativeSuper from "@babel/runtime/helpers/wrapNativeSuper";
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
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
9
+ /** NodeNestingTransformError */
10
+ export var NodeNestingTransformError = /*#__PURE__*/function (_Error) {
11
+ _inherits(NodeNestingTransformError, _Error);
12
+ var _super = _createSuper(NodeNestingTransformError);
13
+ /**
14
+ * @param message - Error message - Do not use any UGC in this message
15
+ */
16
+ function NodeNestingTransformError(message) {
17
+ var _this;
18
+ _classCallCheck(this, NodeNestingTransformError);
19
+ _this = _super.call(this, message);
20
+ _this.name = 'NodeNestingTransformError';
21
+ return _this;
22
+ }
23
+ return _createClass(NodeNestingTransformError);
24
+ }( /*#__PURE__*/_wrapNativeSuper(Error));
@@ -3,6 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import { traverse } from '../traverse/traverse';
5
5
  import { extension } from '../builders';
6
+ import { NodeNestingTransformError } from './errors';
6
7
  var NESTED_TABLE_EXTENSION_TYPE = 'com.atlassian.nesting',
7
8
  NESTED_TABLE_EXTENSION_KEY = 'nested-table';
8
9
  var isNestedTableExtension = function isNestedTableExtension(extensionNode) {
@@ -19,7 +20,7 @@ var transformNestedTableExtension = function transformNestedTableExtension(neste
19
20
  var _nestedTableExtension2;
20
21
  return JSON.parse((_nestedTableExtension2 = nestedTableExtension.attrs) === null || _nestedTableExtension2 === void 0 || (_nestedTableExtension2 = _nestedTableExtension2.parameters) === null || _nestedTableExtension2 === void 0 || (_nestedTableExtension2 = _nestedTableExtension2.macroParams) === null || _nestedTableExtension2 === void 0 ? void 0 : _nestedTableExtension2.nestedContent.value);
21
22
  } catch (e) {
22
- throw new Error('Failed to parse nested table content');
23
+ throw new NodeNestingTransformError('Failed to parse nested table content');
23
24
  }
24
25
  };
25
26
  export var transformNestedTablesIncomingDocument = function transformNestedTablesIncomingDocument(adf) {
@@ -38,24 +39,28 @@ export var transformNestedTablesIncomingDocument = function transformNestedTable
38
39
  };
39
40
  };
40
41
  export var transformNestedTableNodeOutgoingDocument = function transformNestedTableNodeOutgoingDocument(tableCellNode) {
41
- var _tableCellNode$conten;
42
- return _objectSpread(_objectSpread({}, tableCellNode), {}, {
43
- content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(function (childNode) {
44
- // wrap nested table in an extension node
45
- if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
46
- return extension({
47
- extensionType: NESTED_TABLE_EXTENSION_TYPE,
48
- extensionKey: NESTED_TABLE_EXTENSION_KEY,
49
- parameters: {
50
- macroParams: {
51
- nestedContent: {
52
- value: JSON.stringify(childNode)
42
+ try {
43
+ var _tableCellNode$conten;
44
+ return _objectSpread(_objectSpread({}, tableCellNode), {}, {
45
+ content: (_tableCellNode$conten = tableCellNode.content) === null || _tableCellNode$conten === void 0 ? void 0 : _tableCellNode$conten.map(function (childNode) {
46
+ // wrap nested table in an extension node
47
+ if ((childNode === null || childNode === void 0 ? void 0 : childNode.type) === 'table') {
48
+ return extension({
49
+ extensionType: NESTED_TABLE_EXTENSION_TYPE,
50
+ extensionKey: NESTED_TABLE_EXTENSION_KEY,
51
+ parameters: {
52
+ macroParams: {
53
+ nestedContent: {
54
+ value: JSON.stringify(childNode)
55
+ }
53
56
  }
54
57
  }
55
- }
56
- });
57
- }
58
- return childNode;
59
- })
60
- });
58
+ });
59
+ }
60
+ return childNode;
61
+ })
62
+ });
63
+ } catch (e) {
64
+ throw new NodeNestingTransformError('Failed to encode nested table node');
65
+ }
61
66
  };
@@ -8,4 +8,5 @@ export { transformNodesMissingContent } from './transforms/nodes-missing-content
8
8
  export { transformIndentationMarks } from './transforms/indentation-marks-transform';
9
9
  export { transformInvalidMediaContent } from './transforms/invalid-media-content-transform';
10
10
  export { transformNestedTablesIncomingDocument } from './transforms/nested-table-transform';
11
- export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
11
+ export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
12
+ export { NodeNestingTransformError } from './transforms/errors';
@@ -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';
@@ -0,0 +1,7 @@
1
+ /** NodeNestingTransformError */
2
+ export declare class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
6
+ constructor(message: string);
7
+ }
@@ -6,3 +6,4 @@ export { transformIndentationMarks } from './transforms/indentation-marks-transf
6
6
  export { transformInvalidMediaContent } from './transforms/invalid-media-content-transform';
7
7
  export { transformNestedTablesIncomingDocument } from './transforms/nested-table-transform';
8
8
  export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
9
+ export { NodeNestingTransformError } from './transforms/errors';
@@ -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';
@@ -0,0 +1,7 @@
1
+ /** NodeNestingTransformError */
2
+ export declare class NodeNestingTransformError extends Error {
3
+ /**
4
+ * @param message - Error message - Do not use any UGC in this message
5
+ */
6
+ constructor(message: string);
7
+ }
@@ -6,3 +6,4 @@ export { transformIndentationMarks } from './transforms/indentation-marks-transf
6
6
  export { transformInvalidMediaContent } from './transforms/invalid-media-content-transform';
7
7
  export { transformNestedTablesIncomingDocument } from './transforms/nested-table-transform';
8
8
  export { transformNestedTableNodeOutgoingDocument } from './transforms/nested-table-transform';
9
+ export { NodeNestingTransformError } from './transforms/errors';
@@ -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.0",
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
  },