@atlaskit/adf-utils 18.0.1 → 18.0.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.
Files changed (143) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/builders/marks/alignment.js +0 -3
  3. package/dist/cjs/builders/marks/annotation.js +0 -3
  4. package/dist/cjs/builders/marks/breakout.js +0 -3
  5. package/dist/cjs/builders/marks/code.js +0 -3
  6. package/dist/cjs/builders/marks/data-consumer.js +0 -3
  7. package/dist/cjs/builders/marks/em.js +0 -3
  8. package/dist/cjs/builders/marks/fragment.js +0 -3
  9. package/dist/cjs/builders/marks/indentation.js +0 -3
  10. package/dist/cjs/builders/marks/link.js +0 -3
  11. package/dist/cjs/builders/marks/strike.js +0 -3
  12. package/dist/cjs/builders/marks/strong.js +0 -3
  13. package/dist/cjs/builders/marks/subsup.js +0 -3
  14. package/dist/cjs/builders/marks/text-color.js +0 -3
  15. package/dist/cjs/builders/marks/underline.js +0 -3
  16. package/dist/cjs/builders/nodes/block-card.js +0 -2
  17. package/dist/cjs/builders/nodes/blockquote.js +0 -3
  18. package/dist/cjs/builders/nodes/bodied-extension.js +0 -3
  19. package/dist/cjs/builders/nodes/bullet-list.js +0 -3
  20. package/dist/cjs/builders/nodes/caption.js +0 -3
  21. package/dist/cjs/builders/nodes/code-block.js +0 -3
  22. package/dist/cjs/builders/nodes/date.js +0 -2
  23. package/dist/cjs/builders/nodes/decision-item.js +0 -3
  24. package/dist/cjs/builders/nodes/decision-list.js +0 -3
  25. package/dist/cjs/builders/nodes/doc.js +0 -3
  26. package/dist/cjs/builders/nodes/embed-card.js +0 -2
  27. package/dist/cjs/builders/nodes/emoji.js +0 -2
  28. package/dist/cjs/builders/nodes/expand.js +0 -3
  29. package/dist/cjs/builders/nodes/extension.js +0 -2
  30. package/dist/cjs/builders/nodes/hard-break.js +0 -2
  31. package/dist/cjs/builders/nodes/heading.js +0 -3
  32. package/dist/cjs/builders/nodes/inline-card.js +0 -2
  33. package/dist/cjs/builders/nodes/inline-extension.js +0 -2
  34. package/dist/cjs/builders/nodes/layout-column.js +0 -2
  35. package/dist/cjs/builders/nodes/layout-section.js +0 -2
  36. package/dist/cjs/builders/nodes/list-item.js +0 -2
  37. package/dist/cjs/builders/nodes/media-group.js +0 -3
  38. package/dist/cjs/builders/nodes/media-inline.js +0 -2
  39. package/dist/cjs/builders/nodes/media-single.js +0 -2
  40. package/dist/cjs/builders/nodes/media.js +0 -2
  41. package/dist/cjs/builders/nodes/mention.js +0 -6
  42. package/dist/cjs/builders/nodes/nested-expand.js +0 -3
  43. package/dist/cjs/builders/nodes/ordered-list.js +0 -3
  44. package/dist/cjs/builders/nodes/panel.js +0 -3
  45. package/dist/cjs/builders/nodes/paragraph.js +0 -4
  46. package/dist/cjs/builders/nodes/placeholder.js +0 -2
  47. package/dist/cjs/builders/nodes/rule.js +0 -2
  48. package/dist/cjs/builders/nodes/status.js +0 -2
  49. package/dist/cjs/builders/nodes/table-cell.js +0 -3
  50. package/dist/cjs/builders/nodes/table-header.js +0 -3
  51. package/dist/cjs/builders/nodes/table-row.js +0 -2
  52. package/dist/cjs/builders/nodes/table.js +0 -3
  53. package/dist/cjs/builders/nodes/task-item.js +0 -3
  54. package/dist/cjs/builders/nodes/task-list.js +0 -3
  55. package/dist/cjs/builders/nodes/text.js +0 -2
  56. package/dist/cjs/builders/utils/apply-mark.js +0 -5
  57. package/dist/cjs/builders/utils/create-text-nodes.js +0 -3
  58. package/dist/cjs/builders/utils/is-duplicate-mark.js +0 -3
  59. package/dist/cjs/builders.js +0 -51
  60. package/dist/cjs/empty-adf.js +0 -2
  61. package/dist/cjs/scrub/default-node-replacements.js +0 -11
  62. package/dist/cjs/scrub/default-value-replacements.js +0 -2
  63. package/dist/cjs/scrub/hash.js +0 -4
  64. package/dist/cjs/scrub/scrub-adf.js +2 -25
  65. package/dist/cjs/scrub/scrub-content.js +7 -37
  66. package/dist/cjs/scrub.js +0 -2
  67. package/dist/cjs/transforms/dedupe-marks-transform.js +6 -24
  68. package/dist/cjs/transforms/helpers.js +0 -3
  69. package/dist/cjs/transforms/indentation-marks-transform.js +6 -14
  70. package/dist/cjs/transforms/invalid-media-content-transform.js +3 -22
  71. package/dist/cjs/transforms/media-link-transform.js +2 -12
  72. package/dist/cjs/transforms/nodes-missing-content-transform.js +0 -44
  73. package/dist/cjs/transforms/text-link-code-transform.js +3 -13
  74. package/dist/cjs/transforms.js +0 -6
  75. package/dist/cjs/traverse/filter.js +0 -2
  76. package/dist/cjs/traverse/map.js +0 -2
  77. package/dist/cjs/traverse/reduce.js +0 -2
  78. package/dist/cjs/traverse/traverse.js +1 -18
  79. package/dist/cjs/traverse.js +0 -4
  80. package/dist/cjs/validator/rules.js +0 -2
  81. package/dist/cjs/validator/specs/index.js +0 -83
  82. package/dist/cjs/validator/utils.js +4 -20
  83. package/dist/cjs/validator/validator.js +67 -218
  84. package/dist/cjs/validator.js +0 -1
  85. package/dist/cjs/version.json +1 -1
  86. package/dist/es2019/builders/utils/apply-mark.js +0 -2
  87. package/dist/es2019/builders/utils/is-duplicate-mark.js +0 -1
  88. package/dist/es2019/builders.js +4 -1
  89. package/dist/es2019/scrub/default-node-replacements.js +2 -7
  90. package/dist/es2019/scrub/hash.js +0 -2
  91. package/dist/es2019/scrub/scrub-adf.js +4 -10
  92. package/dist/es2019/scrub/scrub-content.js +7 -20
  93. package/dist/es2019/transforms/dedupe-marks-transform.js +7 -18
  94. package/dist/es2019/transforms/helpers.js +0 -1
  95. package/dist/es2019/transforms/indentation-marks-transform.js +10 -10
  96. package/dist/es2019/transforms/invalid-media-content-transform.js +5 -15
  97. package/dist/es2019/transforms/media-link-transform.js +2 -9
  98. package/dist/es2019/transforms/nodes-missing-content-transform.js +6 -38
  99. package/dist/es2019/transforms/text-link-code-transform.js +5 -8
  100. package/dist/es2019/traverse/traverse.js +5 -13
  101. package/dist/es2019/validator/utils.js +4 -2
  102. package/dist/es2019/validator/validator.js +60 -174
  103. package/dist/es2019/version.json +1 -1
  104. package/dist/esm/builders/nodes/blockquote.js +0 -1
  105. package/dist/esm/builders/nodes/bodied-extension.js +0 -1
  106. package/dist/esm/builders/nodes/bullet-list.js +0 -1
  107. package/dist/esm/builders/nodes/caption.js +0 -1
  108. package/dist/esm/builders/nodes/code-block.js +0 -1
  109. package/dist/esm/builders/nodes/decision-item.js +0 -1
  110. package/dist/esm/builders/nodes/decision-list.js +0 -1
  111. package/dist/esm/builders/nodes/doc.js +0 -1
  112. package/dist/esm/builders/nodes/expand.js +0 -1
  113. package/dist/esm/builders/nodes/heading.js +0 -1
  114. package/dist/esm/builders/nodes/media-group.js +0 -1
  115. package/dist/esm/builders/nodes/mention.js +0 -3
  116. package/dist/esm/builders/nodes/nested-expand.js +0 -1
  117. package/dist/esm/builders/nodes/ordered-list.js +0 -1
  118. package/dist/esm/builders/nodes/panel.js +0 -1
  119. package/dist/esm/builders/nodes/paragraph.js +0 -1
  120. package/dist/esm/builders/nodes/table-cell.js +0 -1
  121. package/dist/esm/builders/nodes/table-header.js +0 -1
  122. package/dist/esm/builders/nodes/table.js +0 -1
  123. package/dist/esm/builders/nodes/task-item.js +0 -1
  124. package/dist/esm/builders/nodes/task-list.js +0 -1
  125. package/dist/esm/builders/utils/apply-mark.js +0 -2
  126. package/dist/esm/builders/utils/is-duplicate-mark.js +0 -1
  127. package/dist/esm/builders.js +4 -1
  128. package/dist/esm/scrub/default-node-replacements.js +0 -9
  129. package/dist/esm/scrub/hash.js +0 -2
  130. package/dist/esm/scrub/scrub-adf.js +2 -17
  131. package/dist/esm/scrub/scrub-content.js +7 -28
  132. package/dist/esm/transforms/dedupe-marks-transform.js +6 -20
  133. package/dist/esm/transforms/helpers.js +0 -1
  134. package/dist/esm/transforms/indentation-marks-transform.js +6 -11
  135. package/dist/esm/transforms/invalid-media-content-transform.js +3 -18
  136. package/dist/esm/transforms/media-link-transform.js +2 -9
  137. package/dist/esm/transforms/nodes-missing-content-transform.js +0 -38
  138. package/dist/esm/transforms/text-link-code-transform.js +3 -10
  139. package/dist/esm/traverse/traverse.js +1 -15
  140. package/dist/esm/validator/utils.js +4 -2
  141. package/dist/esm/validator/validator.js +67 -209
  142. package/dist/esm/version.json +1 -1
  143. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/adf-utils
2
2
 
3
+ ## 18.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`eab04c03dbc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eab04c03dbc) - ED-15641 Update transfromIndentationMarks() to remove heading indention from tableHeaders.
8
+ - Updated dependencies
9
+
10
+ ## 18.0.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [`15e6a59ab9b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/15e6a59ab9b) - Dummy changeset to trigger product integrator to use latest adf-utils from develop.
15
+
3
16
  ## 18.0.1
4
17
 
5
18
  ### Patch Changes
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.alignment = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var alignment = function alignment(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var alignment = function alignment(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.alignment = alignment;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.annotation = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var annotation = function annotation(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var annotation = function annotation(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.annotation = annotation;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.breakout = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var breakout = function breakout(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var breakout = function breakout(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.breakout = breakout;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.code = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var code = function code(maybeNode) {
11
9
  return (0, _applyMark.applyMark)({
12
10
  type: 'code'
13
11
  }, maybeNode);
14
12
  };
15
-
16
13
  exports.code = code;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.dataConsumer = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var dataConsumer = function dataConsumer(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var dataConsumer = function dataConsumer(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.dataConsumer = dataConsumer;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.em = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var em = function em(maybeNode) {
11
9
  return (0, _applyMark.applyMark)({
12
10
  type: 'em'
13
11
  }, maybeNode);
14
12
  };
15
-
16
13
  exports.em = em;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.fragment = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var fragment = function fragment(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var fragment = function fragment(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.fragment = fragment;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.indentation = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var indentation = function indentation(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var indentation = function indentation(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.indentation = indentation;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.link = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var link = function link(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var link = function link(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.link = link;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.strike = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var strike = function strike(maybeNode) {
11
9
  return (0, _applyMark.applyMark)({
12
10
  type: 'strike'
13
11
  }, maybeNode);
14
12
  };
15
-
16
13
  exports.strike = strike;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.strong = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var strong = function strong(maybeNode) {
11
9
  return (0, _applyMark.applyMark)({
12
10
  type: 'strong'
13
11
  }, maybeNode);
14
12
  };
15
-
16
13
  exports.strong = strong;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.subsup = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var subsup = function subsup(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var subsup = function subsup(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.subsup = subsup;
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.textColor = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var textColor = function textColor(attrs) {
11
9
  return function (maybeNode) {
12
10
  return (0, _applyMark.applyMark)({
@@ -15,5 +13,4 @@ var textColor = function textColor(attrs) {
15
13
  }, maybeNode);
16
14
  };
17
15
  };
18
-
19
16
  exports.textColor = textColor;
@@ -4,13 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.underline = void 0;
7
-
8
7
  var _applyMark = require("../utils/apply-mark");
9
-
10
8
  var underline = function underline(maybeNode) {
11
9
  return (0, _applyMark.applyMark)({
12
10
  type: 'underline'
13
11
  }, maybeNode);
14
12
  };
15
-
16
13
  exports.underline = underline;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.blockCard = void 0;
7
-
8
7
  var blockCard = function blockCard(attrs) {
9
8
  return {
10
9
  type: 'blockCard',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.blockCard = blockCard;
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.blockQuote = void 0;
7
-
8
7
  var blockQuote = function blockQuote() {
9
8
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  content[_key] = arguments[_key];
11
10
  }
12
-
13
11
  return {
14
12
  type: 'blockquote',
15
13
  content: content
16
14
  };
17
15
  };
18
-
19
16
  exports.blockQuote = blockQuote;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.bodiedExtension = void 0;
7
-
8
7
  var bodiedExtension = function bodiedExtension(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'bodiedExtension',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var bodiedExtension = function bodiedExtension(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.bodiedExtension = bodiedExtension;
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.bulletList = void 0;
7
-
8
7
  var bulletList = function bulletList() {
9
8
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  content[_key] = arguments[_key];
11
10
  }
12
-
13
11
  return {
14
12
  type: 'bulletList',
15
13
  content: content
16
14
  };
17
15
  };
18
-
19
16
  exports.bulletList = bulletList;
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.caption = void 0;
7
-
8
7
  var caption = function caption() {
9
8
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  content[_key] = arguments[_key];
11
10
  }
12
-
13
11
  return {
14
12
  type: 'caption',
15
13
  content: content
16
14
  };
17
15
  };
18
-
19
16
  exports.caption = caption;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.codeBlock = void 0;
7
-
8
7
  var codeBlock = function codeBlock(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'codeBlock',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var codeBlock = function codeBlock(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.codeBlock = codeBlock;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.date = void 0;
7
-
8
7
  var date = function date() {
9
8
  var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
10
9
  timestamp: ''
@@ -14,5 +13,4 @@ var date = function date() {
14
13
  attrs: attrs
15
14
  };
16
15
  };
17
-
18
16
  exports.date = date;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.decisionItem = void 0;
7
-
8
7
  var decisionItem = function decisionItem(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'decisionItem',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var decisionItem = function decisionItem(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.decisionItem = decisionItem;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.decisionList = void 0;
7
-
8
7
  var decisionList = function decisionList(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'decisionList',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var decisionList = function decisionList(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.decisionList = decisionList;
@@ -4,17 +4,14 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.doc = void 0;
7
-
8
7
  var doc = function doc() {
9
8
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  content[_key] = arguments[_key];
11
10
  }
12
-
13
11
  return {
14
12
  type: 'doc',
15
13
  version: 1,
16
14
  content: content
17
15
  };
18
16
  };
19
-
20
17
  exports.doc = doc;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.embedCard = void 0;
7
-
8
7
  var embedCard = function embedCard(attrs) {
9
8
  return {
10
9
  type: 'embedCard',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.embedCard = embedCard;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.emoji = void 0;
7
-
8
7
  var emoji = function emoji(attrs) {
9
8
  return {
10
9
  type: 'emoji',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.emoji = emoji;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.expand = void 0;
7
-
8
7
  var expand = function expand(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'expand',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var expand = function expand(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.expand = expand;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.extension = void 0;
7
-
8
7
  var extension = function extension(attrs) {
9
8
  return {
10
9
  type: 'extension',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.extension = extension;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.hardBreak = void 0;
7
-
8
7
  var hardBreak = function hardBreak(attrs) {
9
8
  return {
10
9
  type: 'hardBreak',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.hardBreak = hardBreak;
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.heading = void 0;
7
-
8
7
  var heading = function heading(attrs) {
9
8
  return function () {
10
9
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
11
10
  content[_key] = arguments[_key];
12
11
  }
13
-
14
12
  return {
15
13
  type: 'heading',
16
14
  attrs: attrs,
@@ -18,5 +16,4 @@ var heading = function heading(attrs) {
18
16
  };
19
17
  };
20
18
  };
21
-
22
19
  exports.heading = heading;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.inlineCard = void 0;
7
-
8
7
  var inlineCard = function inlineCard(attrs) {
9
8
  return {
10
9
  type: 'inlineCard',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.inlineCard = inlineCard;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.inlineExtension = void 0;
7
-
8
7
  var inlineExtension = function inlineExtension(attrs) {
9
8
  return function () {
10
9
  return {
@@ -13,5 +12,4 @@ var inlineExtension = function inlineExtension(attrs) {
13
12
  };
14
13
  };
15
14
  };
16
-
17
15
  exports.inlineExtension = inlineExtension;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.layoutColumn = void 0;
7
-
8
7
  var layoutColumn = function layoutColumn(attrs) {
9
8
  return function (content) {
10
9
  return {
@@ -14,5 +13,4 @@ var layoutColumn = function layoutColumn(attrs) {
14
13
  };
15
14
  };
16
15
  };
17
-
18
16
  exports.layoutColumn = layoutColumn;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.layoutSection = void 0;
7
-
8
7
  var layoutSection = function layoutSection() {
9
8
  return function (content) {
10
9
  return {
@@ -13,5 +12,4 @@ var layoutSection = function layoutSection() {
13
12
  };
14
13
  };
15
14
  };
16
-
17
15
  exports.layoutSection = layoutSection;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.listItem = void 0;
7
-
8
7
  var listItem = function listItem(content) {
9
8
  return {
10
9
  type: 'listItem',
11
10
  content: content
12
11
  };
13
12
  };
14
-
15
13
  exports.listItem = listItem;
@@ -4,16 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.mediaGroup = void 0;
7
-
8
7
  var mediaGroup = function mediaGroup() {
9
8
  for (var _len = arguments.length, content = new Array(_len), _key = 0; _key < _len; _key++) {
10
9
  content[_key] = arguments[_key];
11
10
  }
12
-
13
11
  return {
14
12
  type: 'mediaGroup',
15
13
  content: content
16
14
  };
17
15
  };
18
-
19
16
  exports.mediaGroup = mediaGroup;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.mediaInline = void 0;
7
-
8
7
  var mediaInline = function mediaInline(attrs) {
9
8
  return {
10
9
  type: 'mediaInline',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.mediaInline = mediaInline;
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.mediaSingle = void 0;
7
-
8
7
  var mediaSingle = function mediaSingle(attrs) {
9
8
  return function (content) {
10
9
  return {
@@ -14,5 +13,4 @@ var mediaSingle = function mediaSingle(attrs) {
14
13
  };
15
14
  };
16
15
  };
17
-
18
16
  exports.mediaSingle = mediaSingle;
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.media = void 0;
7
-
8
7
  var media = function media(attrs) {
9
8
  return {
10
9
  type: 'media',
11
10
  attrs: attrs
12
11
  };
13
12
  };
14
-
15
13
  exports.media = media;