@atlaskit/editor-common 96.0.1 → 96.1.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 (58) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/commands/index.js +1 -0
  3. package/dist/cjs/lazy-node-view/index.js +1 -0
  4. package/dist/cjs/messages/insert-block.js +5 -0
  5. package/dist/cjs/messages/layout.js +13 -3
  6. package/dist/cjs/monitoring/error.js +1 -1
  7. package/dist/cjs/nesting/utilities.js +11 -11
  8. package/dist/cjs/preset/builder.js +1 -0
  9. package/dist/cjs/rank.js +3 -0
  10. package/dist/cjs/types/index.js +2 -1
  11. package/dist/cjs/types/toolbar.js +2 -2
  12. package/dist/cjs/ui/DropList/index.js +1 -1
  13. package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +3 -1
  14. package/dist/cjs/utils/dom.js +1 -0
  15. package/dist/cjs/utils/index.js +1 -0
  16. package/dist/cjs/utils/performance/measure.js +3 -0
  17. package/dist/cjs/utils/scroll-gutter.js +1 -0
  18. package/dist/es2019/commands/index.js +1 -0
  19. package/dist/es2019/lazy-node-view/index.js +1 -0
  20. package/dist/es2019/messages/insert-block.js +5 -0
  21. package/dist/es2019/messages/layout.js +13 -3
  22. package/dist/es2019/monitoring/error.js +1 -1
  23. package/dist/es2019/nesting/utilities.js +11 -11
  24. package/dist/es2019/preset/builder.js +1 -0
  25. package/dist/es2019/rank.js +3 -0
  26. package/dist/es2019/types/index.js +2 -0
  27. package/dist/es2019/types/toolbar.js +2 -0
  28. package/dist/es2019/ui/DropList/index.js +1 -1
  29. package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +3 -1
  30. package/dist/es2019/utils/dom.js +1 -0
  31. package/dist/es2019/utils/index.js +1 -0
  32. package/dist/es2019/utils/performance/measure.js +3 -0
  33. package/dist/es2019/utils/scroll-gutter.js +1 -0
  34. package/dist/esm/commands/index.js +1 -0
  35. package/dist/esm/lazy-node-view/index.js +1 -0
  36. package/dist/esm/messages/insert-block.js +5 -0
  37. package/dist/esm/messages/layout.js +13 -3
  38. package/dist/esm/monitoring/error.js +1 -1
  39. package/dist/esm/nesting/utilities.js +11 -11
  40. package/dist/esm/preset/builder.js +1 -0
  41. package/dist/esm/rank.js +3 -0
  42. package/dist/esm/types/index.js +2 -0
  43. package/dist/esm/types/toolbar.js +2 -0
  44. package/dist/esm/ui/DropList/index.js +1 -1
  45. package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +3 -1
  46. package/dist/esm/utils/dom.js +1 -0
  47. package/dist/esm/utils/index.js +1 -0
  48. package/dist/esm/utils/performance/measure.js +3 -0
  49. package/dist/esm/utils/scroll-gutter.js +1 -0
  50. package/dist/types/messages/insert-block.d.ts +5 -0
  51. package/dist/types/messages/layout.d.ts +10 -0
  52. package/dist/types/nesting/utilities.d.ts +2 -2
  53. package/dist/types/types/selection-toolbar.d.ts +1 -0
  54. package/dist/types-ts4.5/messages/insert-block.d.ts +5 -0
  55. package/dist/types-ts4.5/messages/layout.d.ts +10 -0
  56. package/dist/types-ts4.5/nesting/utilities.d.ts +2 -2
  57. package/dist/types-ts4.5/types/selection-toolbar.d.ts +1 -0
  58. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 96.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#172933](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/172933)
8
+ [`8323af2381d00`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8323af2381d00) -
9
+ Adds optional pluginName to the Selection group
10
+
11
+ ### Patch Changes
12
+
13
+ - [#171783](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171783)
14
+ [`ec56ec65d9dae`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ec56ec65d9dae) -
15
+ [ux] ED-25929: Layout option quick insert improvements
16
+
17
+ ## 96.0.2
18
+
19
+ ### Patch Changes
20
+
21
+ - [#172333](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/172333)
22
+ [`e5c206f3f7783`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e5c206f3f7783) -
23
+ [ux] ED-25533 Set default size of nested tables to 2x2
24
+
3
25
  ## 96.0.1
4
26
 
5
27
  ### Patch Changes
@@ -179,6 +179,7 @@ function findCutBefore($pos) {
179
179
  return null;
180
180
  }
181
181
 
182
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
182
183
  /**
183
184
  * @deprecated
184
185
  *
@@ -68,6 +68,7 @@ var resolvedNodesPerEditorView = new WeakMap();
68
68
  */
69
69
  var debounceToEditorViewMap = new WeakMap();
70
70
  var testOnlyIgnoreLazyNodeViewSet = new WeakSet();
71
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
71
72
  /**
72
73
  * 🧱 Internal: Editor FE Platform
73
74
  *
@@ -176,6 +176,11 @@ var toolbarInsertBlockMessages = exports.toolbarInsertBlockMessages = (0, _react
176
176
  defaultMessage: 'Structure your page using sections',
177
177
  description: 'Create a multi column section or layout'
178
178
  },
179
+ columnsDescriptionAdvancedLayout: {
180
+ id: 'fabric.editor.columns.advanced.layout.description',
181
+ defaultMessage: 'Insert {numberOfColumns} equal columns',
182
+ description: 'Create a multi column section or layout'
183
+ },
179
184
  status: {
180
185
  id: 'fabric.editor.status',
181
186
  defaultMessage: 'Status',
@@ -16,19 +16,29 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
16
16
  defaultMessage: 'Two columns layout',
17
17
  description: 'Layout with two columns of equal width'
18
18
  },
19
+ twoColumnsAdvancedLayout: {
20
+ id: 'fabric.editor.twoColumns',
21
+ defaultMessage: '2 Column layout',
22
+ description: 'Layout with two columns of equal width'
23
+ },
19
24
  threeColumns: {
20
25
  id: 'fabric.editor.threeColumns',
21
26
  defaultMessage: 'Three columns layout',
22
27
  description: 'Layout with three columns of equal width'
23
28
  },
29
+ threeColumnsAdvancedLayout: {
30
+ id: 'fabric.editor.threeColumns',
31
+ defaultMessage: '3 Column layout',
32
+ description: 'Layout with three columns of equal width'
33
+ },
24
34
  fourColumns: {
25
35
  id: 'fabric.editor.fourColumns',
26
- defaultMessage: 'Four columns layout',
36
+ defaultMessage: '4 Column layout',
27
37
  description: 'Layout with four columns of equal width'
28
38
  },
29
39
  fiveColumns: {
30
40
  id: 'fabric.editor.fiveColumns',
31
- defaultMessage: 'Five columns layout',
41
+ defaultMessage: '5 Column layout',
32
42
  description: 'Layout with five columns of equal width'
33
43
  },
34
44
  rightSidebar: {
@@ -68,7 +78,7 @@ var toolbarMessages = exports.toolbarMessages = (0, _reactIntlNext.defineMessage
68
78
  },
69
79
  columnOption: {
70
80
  id: 'fabric.editor.layout.columnOption',
71
- defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
81
+ defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
72
82
  description: 'column option text for layout'
73
83
  }
74
84
  });
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
17
17
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
18
18
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
19
19
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
20
- var packageVersion = "96.0.1";
20
+ var packageVersion = "96.1.0";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // TODO: Sanitise the URL instead of just removing it
@@ -5,19 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getPositionAfterTopParentNodeOfType = exports.getParentOfTypeCount = void 0;
7
7
  /*
8
- * Returns the level of nesting of a given `nodeType` in the current selection.
8
+ * Returns the level of nesting of a given `nodeType` in the current position.
9
9
  * eg. table > table is nested 1 level, table > table > table is nested 2 levels.
10
10
  *
11
11
  * ```typescript
12
- * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(selection);
12
+ * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(position);
13
13
  * ```
14
14
  */
15
15
  var getParentOfTypeCount = exports.getParentOfTypeCount = function getParentOfTypeCount(nodeType) {
16
- return function ($from) {
16
+ return function ($pos) {
17
17
  var count = 0;
18
18
  // Loop through parent nodes from bottom to top
19
- for (var depth = $from.depth; depth > 0; depth--) {
20
- var node = $from.node(depth);
19
+ for (var depth = $pos.depth; depth > 0; depth--) {
20
+ var node = $pos.node(depth);
21
21
  // Count the table nodes
22
22
  if (node.type === nodeType) {
23
23
  count++;
@@ -28,20 +28,20 @@ var getParentOfTypeCount = exports.getParentOfTypeCount = function getParentOfTy
28
28
  };
29
29
 
30
30
  /*
31
- * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current selection.
31
+ * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current position.
32
32
  *
33
33
  * ```typescript
34
- * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(selection);
34
+ * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(position);
35
35
  * ```
36
36
  */
37
37
  var getPositionAfterTopParentNodeOfType = exports.getPositionAfterTopParentNodeOfType = function getPositionAfterTopParentNodeOfType(nodeType) {
38
- return function ($from) {
38
+ return function ($pos) {
39
39
  // Loop through parent nodes from top to bottom
40
- for (var depth = 1; depth <= $from.depth; depth++) {
41
- var node = $from.node(depth);
40
+ for (var depth = 1; depth <= $pos.depth; depth++) {
41
+ var node = $pos.node(depth);
42
42
  // Count the table nodes
43
43
  if (node.type === nodeType) {
44
- return $from.after(depth);
44
+ return $pos.after(depth);
45
45
  }
46
46
  }
47
47
  };
@@ -504,6 +504,7 @@ var EditorPresetBuilder = exports.EditorPresetBuilder = /*#__PURE__*/function ()
504
504
  function EditorPresetBuilder() {
505
505
  var _this = this;
506
506
  (0, _classCallCheck2.default)(this, EditorPresetBuilder);
507
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
507
508
  /**
508
509
  * @deprecated Use `apiResolver` instead
509
510
  */
package/dist/cjs/rank.js CHANGED
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.rankEditorPlugins = void 0;
7
7
  exports.sortByOrder = sortByOrder;
8
8
  exports.sortByOrderWithTypeName = sortByOrderWithTypeName;
9
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
9
10
  // @deprecated
10
11
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
11
12
  var rankEditorPlugins = exports.rankEditorPlugins = {
@@ -36,6 +37,7 @@ var rankEditorPlugins = exports.rankEditorPlugins = {
36
37
  'unsupportedMark', 'unsupportedNodeAttribute']
37
38
  };
38
39
 
40
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
39
41
  // @deprecated
40
42
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
41
43
  function sortByOrder(item) {
@@ -49,6 +51,7 @@ function sortByOrder(item) {
49
51
  // function avoided that whole mess. If someone can think of a better way to implement
50
52
  // the above and below into a single function please do so
51
53
 
54
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
52
55
  // @deprecated
53
56
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
54
57
  function sortByOrderWithTypeName(item) {
@@ -55,10 +55,11 @@ var SortOrder = exports.SortOrder = /*#__PURE__*/function (SortOrder) {
55
55
  SortOrder["DESC"] = "desc";
56
56
  SortOrder["NO_ORDER"] = "no_order";
57
57
  return SortOrder;
58
- }({});
58
+ }({}); // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
59
59
  /**
60
60
  * @deprecated
61
61
  */
62
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
62
63
  /**
63
64
  * @deprecated
64
65
  *
@@ -12,7 +12,7 @@ var ToolbarSize = exports.ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
12
12
  ToolbarSize[ToolbarSize["S"] = 2] = "S";
13
13
  ToolbarSize[ToolbarSize["XXXS"] = 1] = "XXXS";
14
14
  return ToolbarSize;
15
- }({});
15
+ }({}); // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
16
16
  /** @deprecated
17
17
  * To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
18
18
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -32,7 +32,7 @@ var ToolbarWidthsNext = exports.ToolbarWidthsNext = /*#__PURE__*/function (Toolb
32
32
  ToolbarWidthsNext[ToolbarWidthsNext["M"] = 450] = "M";
33
33
  ToolbarWidthsNext[ToolbarWidthsNext["S"] = 410] = "S";
34
34
  return ToolbarWidthsNext;
35
- }({});
35
+ }({}); // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
36
36
  /** @deprecated
37
37
  * To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
38
38
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
24
24
  * @jsx jsx
25
25
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
26
26
  var packageName = "@atlaskit/editor-common";
27
- var packageVersion = "96.0.1";
27
+ var packageVersion = "96.1.0";
28
28
  var halfFocusRing = 1;
29
29
  var dropOffset = '0, 8';
30
30
  var DropList = /*#__PURE__*/function (_Component) {
@@ -45,7 +45,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
45
45
  if (!_this.props.isActiveComponent || !_this.props.handleClickOutside) {
46
46
  return;
47
47
  }
48
- var domNode = (0, _platformFeatureFlags.fg)('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() : _reactDom.default.findDOMNode((0, _assertThisInitialized2.default)(_this));
48
+ var domNode = (0, _platformFeatureFlags.fg)('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() :
49
+ // eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
50
+ _reactDom.default.findDOMNode((0, _assertThisInitialized2.default)(_this));
49
51
  if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
50
52
  var _this$props$editorVie;
51
53
  _this.props.handleClickOutside(evt);
@@ -86,6 +86,7 @@ function closest(node, s) {
86
86
  return null;
87
87
  }
88
88
 
89
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
89
90
  /*
90
91
  * @deprecated - Use HTMLElement.protoype.closest instead
91
92
  */
@@ -1234,6 +1234,7 @@ var _withFeatureFlaggedComponent = require("./withFeatureFlaggedComponent");
1234
1234
  * Private API - should not be used. Use `@atlaskit/editor-common/performance/navigation` if required.
1235
1235
  */
1236
1236
 
1237
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
1237
1238
  /**
1238
1239
  * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
1239
1240
  */
@@ -9,6 +9,7 @@ exports.stopMeasure = stopMeasure;
9
9
  var _isPerformanceApiAvailable = require("./is-performance-api-available");
10
10
  var measureMap = new Map();
11
11
 
12
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
12
13
  /**
13
14
  * @deprecated use 'startMeasure' from '@atlaskit/editor-common/performance-measures'
14
15
  */
@@ -20,6 +21,7 @@ function startMeasure(measureName) {
20
21
  measureMap.set(measureName, performance.now());
21
22
  }
22
23
 
24
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
23
25
  /**
24
26
  * @deprecated use 'stopMeasure' from '@atlaskit/editor-common/performance-measures'
25
27
  */
@@ -44,6 +46,7 @@ function stopMeasure(measureName, onMeasureComplete) {
44
46
  }
45
47
  }
46
48
 
49
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
47
50
  /**
48
51
  * @deprecated use 'clearMeasure' from '@atlaskit/editor-common/performance-measures'
49
52
  */
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.GUTTER_SIZE_MOBILE_IN_PX = exports.GUTTER_SIZE_IN_PX = exports.GUTTER_SELECTOR = void 0;
7
7
  var GUTTER_SIZE_IN_PX = exports.GUTTER_SIZE_IN_PX = 120; // Default gutter size
8
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
8
9
  /**
9
10
  * @deprecated - [ED-23844] only used in Editor Core
10
11
  */
@@ -155,6 +155,7 @@ export function findCutBefore($pos) {
155
155
  return null;
156
156
  }
157
157
 
158
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
158
159
  /**
159
160
  * @deprecated
160
161
  *
@@ -52,6 +52,7 @@ const resolvedNodesPerEditorView = new WeakMap();
52
52
  */
53
53
  const debounceToEditorViewMap = new WeakMap();
54
54
  const testOnlyIgnoreLazyNodeViewSet = new WeakSet();
55
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
55
56
  /**
56
57
  * 🧱 Internal: Editor FE Platform
57
58
  *
@@ -170,6 +170,11 @@ export const toolbarInsertBlockMessages = defineMessages({
170
170
  defaultMessage: 'Structure your page using sections',
171
171
  description: 'Create a multi column section or layout'
172
172
  },
173
+ columnsDescriptionAdvancedLayout: {
174
+ id: 'fabric.editor.columns.advanced.layout.description',
175
+ defaultMessage: 'Insert {numberOfColumns} equal columns',
176
+ description: 'Create a multi column section or layout'
177
+ },
173
178
  status: {
174
179
  id: 'fabric.editor.status',
175
180
  defaultMessage: 'Status',
@@ -10,19 +10,29 @@ export const toolbarMessages = defineMessages({
10
10
  defaultMessage: 'Two columns layout',
11
11
  description: 'Layout with two columns of equal width'
12
12
  },
13
+ twoColumnsAdvancedLayout: {
14
+ id: 'fabric.editor.twoColumns',
15
+ defaultMessage: '2 Column layout',
16
+ description: 'Layout with two columns of equal width'
17
+ },
13
18
  threeColumns: {
14
19
  id: 'fabric.editor.threeColumns',
15
20
  defaultMessage: 'Three columns layout',
16
21
  description: 'Layout with three columns of equal width'
17
22
  },
23
+ threeColumnsAdvancedLayout: {
24
+ id: 'fabric.editor.threeColumns',
25
+ defaultMessage: '3 Column layout',
26
+ description: 'Layout with three columns of equal width'
27
+ },
18
28
  fourColumns: {
19
29
  id: 'fabric.editor.fourColumns',
20
- defaultMessage: 'Four columns layout',
30
+ defaultMessage: '4 Column layout',
21
31
  description: 'Layout with four columns of equal width'
22
32
  },
23
33
  fiveColumns: {
24
34
  id: 'fabric.editor.fiveColumns',
25
- defaultMessage: 'Five columns layout',
35
+ defaultMessage: '5 Column layout',
26
36
  description: 'Layout with five columns of equal width'
27
37
  },
28
38
  rightSidebar: {
@@ -62,7 +72,7 @@ export const toolbarMessages = defineMessages({
62
72
  },
63
73
  columnOption: {
64
74
  id: 'fabric.editor.layout.columnOption',
65
- defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
75
+ defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
66
76
  description: 'column option text for layout'
67
77
  }
68
78
  });
@@ -1,7 +1,7 @@
1
1
  import { isFedRamp } from './environment';
2
2
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
3
3
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
4
- const packageVersion = "96.0.1";
4
+ const packageVersion = "96.1.0";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // TODO: Sanitise the URL instead of just removing it
@@ -1,16 +1,16 @@
1
1
  /*
2
- * Returns the level of nesting of a given `nodeType` in the current selection.
2
+ * Returns the level of nesting of a given `nodeType` in the current position.
3
3
  * eg. table > table is nested 1 level, table > table > table is nested 2 levels.
4
4
  *
5
5
  * ```typescript
6
- * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(selection);
6
+ * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(position);
7
7
  * ```
8
8
  */
9
- export const getParentOfTypeCount = nodeType => $from => {
9
+ export const getParentOfTypeCount = nodeType => $pos => {
10
10
  let count = 0;
11
11
  // Loop through parent nodes from bottom to top
12
- for (let depth = $from.depth; depth > 0; depth--) {
13
- const node = $from.node(depth);
12
+ for (let depth = $pos.depth; depth > 0; depth--) {
13
+ const node = $pos.node(depth);
14
14
  // Count the table nodes
15
15
  if (node.type === nodeType) {
16
16
  count++;
@@ -20,19 +20,19 @@ export const getParentOfTypeCount = nodeType => $from => {
20
20
  };
21
21
 
22
22
  /*
23
- * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current selection.
23
+ * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current position.
24
24
  *
25
25
  * ```typescript
26
- * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(selection);
26
+ * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(position);
27
27
  * ```
28
28
  */
29
- export const getPositionAfterTopParentNodeOfType = nodeType => $from => {
29
+ export const getPositionAfterTopParentNodeOfType = nodeType => $pos => {
30
30
  // Loop through parent nodes from top to bottom
31
- for (let depth = 1; depth <= $from.depth; depth++) {
32
- const node = $from.node(depth);
31
+ for (let depth = 1; depth <= $pos.depth; depth++) {
32
+ const node = $pos.node(depth);
33
33
  // Count the table nodes
34
34
  if (node.type === nodeType) {
35
- return $from.after(depth);
35
+ return $pos.after(depth);
36
36
  }
37
37
  }
38
38
  };
@@ -528,6 +528,7 @@ import { EventDispatcher } from '../event-dispatcher';
528
528
  */
529
529
  export class EditorPresetBuilder {
530
530
  constructor(...more) {
531
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
531
532
  /**
532
533
  * @deprecated Use `apiResolver` instead
533
534
  */
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
1
2
  // @deprecated
2
3
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
3
4
  export const rankEditorPlugins = {
@@ -28,6 +29,7 @@ export const rankEditorPlugins = {
28
29
  'unsupportedMark', 'unsupportedNodeAttribute']
29
30
  };
30
31
 
32
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
31
33
  // @deprecated
32
34
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
33
35
  export function sortByOrder(item) {
@@ -41,6 +43,7 @@ export function sortByOrder(item) {
41
43
  // function avoided that whole mess. If someone can think of a better way to implement
42
44
  // the above and below into a single function please do so
43
45
 
46
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
44
47
  // @deprecated
45
48
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
46
49
  export function sortByOrderWithTypeName(item) {
@@ -10,10 +10,12 @@ export let SortOrder = /*#__PURE__*/function (SortOrder) {
10
10
  export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emitter';
11
11
  export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
12
12
 
13
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
13
14
  /**
14
15
  * @deprecated
15
16
  */
16
17
 
18
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
17
19
  /**
18
20
  * @deprecated
19
21
  *
@@ -8,6 +8,7 @@ export let ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
8
8
  return ToolbarSize;
9
9
  }({});
10
10
 
11
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
11
12
  /** @deprecated
12
13
  * To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
13
14
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -29,6 +30,7 @@ export let ToolbarWidthsNext = /*#__PURE__*/function (ToolbarWidthsNext) {
29
30
  return ToolbarWidthsNext;
30
31
  }({});
31
32
 
33
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
32
34
  /** @deprecated
33
35
  * To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
34
36
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
13
13
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
14
14
  import Layer from '../Layer';
15
15
  const packageName = "@atlaskit/editor-common";
16
- const packageVersion = "96.0.1";
16
+ const packageVersion = "96.1.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  class DropList extends Component {
@@ -17,7 +17,9 @@ class WithOutsideClick extends PureComponent {
17
17
  if (!this.props.isActiveComponent || !this.props.handleClickOutside) {
18
18
  return;
19
19
  }
20
- const domNode = fg('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() : ReactDOM.findDOMNode(this);
20
+ const domNode = fg('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() :
21
+ // eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
22
+ ReactDOM.findDOMNode(this);
21
23
  if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
22
24
  var _this$props$editorVie;
23
25
  this.props.handleClickOutside(evt);
@@ -72,6 +72,7 @@ export function closest(node, s) {
72
72
  return null;
73
73
  }
74
74
 
75
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
75
76
  /*
76
77
  * @deprecated - Use HTMLElement.protoype.closest instead
77
78
  */
@@ -126,6 +126,7 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
126
126
  export { createCompareNodes } from './compareNodes';
127
127
  export { compose } from './compose';
128
128
  export { isTextInput } from './is-text-input';
129
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
129
130
  /**
130
131
  * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
131
132
  */
@@ -1,6 +1,7 @@
1
1
  import { isPerformanceAPIAvailable } from './is-performance-api-available';
2
2
  const measureMap = new Map();
3
3
 
4
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
4
5
  /**
5
6
  * @deprecated use 'startMeasure' from '@atlaskit/editor-common/performance-measures'
6
7
  */
@@ -12,6 +13,7 @@ export function startMeasure(measureName) {
12
13
  measureMap.set(measureName, performance.now());
13
14
  }
14
15
 
16
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
15
17
  /**
16
18
  * @deprecated use 'stopMeasure' from '@atlaskit/editor-common/performance-measures'
17
19
  */
@@ -36,6 +38,7 @@ export function stopMeasure(measureName, onMeasureComplete) {
36
38
  }
37
39
  }
38
40
 
41
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
39
42
  /**
40
43
  * @deprecated use 'clearMeasure' from '@atlaskit/editor-common/performance-measures'
41
44
  */
@@ -1,4 +1,5 @@
1
1
  export const GUTTER_SIZE_IN_PX = 120; // Default gutter size
2
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
2
3
  /**
3
4
  * @deprecated - [ED-23844] only used in Editor Core
4
5
  */
@@ -159,6 +159,7 @@ export function findCutBefore($pos) {
159
159
  return null;
160
160
  }
161
161
 
162
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
162
163
  /**
163
164
  * @deprecated
164
165
  *
@@ -53,6 +53,7 @@ var resolvedNodesPerEditorView = new WeakMap();
53
53
  */
54
54
  var debounceToEditorViewMap = new WeakMap();
55
55
  var testOnlyIgnoreLazyNodeViewSet = new WeakSet();
56
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
56
57
  /**
57
58
  * 🧱 Internal: Editor FE Platform
58
59
  *
@@ -170,6 +170,11 @@ export var toolbarInsertBlockMessages = defineMessages({
170
170
  defaultMessage: 'Structure your page using sections',
171
171
  description: 'Create a multi column section or layout'
172
172
  },
173
+ columnsDescriptionAdvancedLayout: {
174
+ id: 'fabric.editor.columns.advanced.layout.description',
175
+ defaultMessage: 'Insert {numberOfColumns} equal columns',
176
+ description: 'Create a multi column section or layout'
177
+ },
173
178
  status: {
174
179
  id: 'fabric.editor.status',
175
180
  defaultMessage: 'Status',
@@ -10,19 +10,29 @@ export var toolbarMessages = defineMessages({
10
10
  defaultMessage: 'Two columns layout',
11
11
  description: 'Layout with two columns of equal width'
12
12
  },
13
+ twoColumnsAdvancedLayout: {
14
+ id: 'fabric.editor.twoColumns',
15
+ defaultMessage: '2 Column layout',
16
+ description: 'Layout with two columns of equal width'
17
+ },
13
18
  threeColumns: {
14
19
  id: 'fabric.editor.threeColumns',
15
20
  defaultMessage: 'Three columns layout',
16
21
  description: 'Layout with three columns of equal width'
17
22
  },
23
+ threeColumnsAdvancedLayout: {
24
+ id: 'fabric.editor.threeColumns',
25
+ defaultMessage: '3 Column layout',
26
+ description: 'Layout with three columns of equal width'
27
+ },
18
28
  fourColumns: {
19
29
  id: 'fabric.editor.fourColumns',
20
- defaultMessage: 'Four columns layout',
30
+ defaultMessage: '4 Column layout',
21
31
  description: 'Layout with four columns of equal width'
22
32
  },
23
33
  fiveColumns: {
24
34
  id: 'fabric.editor.fiveColumns',
25
- defaultMessage: 'Five columns layout',
35
+ defaultMessage: '5 Column layout',
26
36
  description: 'Layout with five columns of equal width'
27
37
  },
28
38
  rightSidebar: {
@@ -62,7 +72,7 @@ export var toolbarMessages = defineMessages({
62
72
  },
63
73
  columnOption: {
64
74
  id: 'fabric.editor.layout.columnOption',
65
- defaultMessage: '{count, plural, one {-column} other {{count}-columns}}',
75
+ defaultMessage: '{count, plural, one { Column} other {{count} Columns}}',
66
76
  description: 'column option text for layout'
67
77
  }
68
78
  });
@@ -7,7 +7,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { isFedRamp } from './environment';
8
8
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
9
9
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
10
- var packageVersion = "96.0.1";
10
+ var packageVersion = "96.1.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -1,17 +1,17 @@
1
1
  /*
2
- * Returns the level of nesting of a given `nodeType` in the current selection.
2
+ * Returns the level of nesting of a given `nodeType` in the current position.
3
3
  * eg. table > table is nested 1 level, table > table > table is nested 2 levels.
4
4
  *
5
5
  * ```typescript
6
- * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(selection);
6
+ * const nestingLevel = getParentOfTypeCount(schema.nodes.table)(position);
7
7
  * ```
8
8
  */
9
9
  export var getParentOfTypeCount = function getParentOfTypeCount(nodeType) {
10
- return function ($from) {
10
+ return function ($pos) {
11
11
  var count = 0;
12
12
  // Loop through parent nodes from bottom to top
13
- for (var depth = $from.depth; depth > 0; depth--) {
14
- var node = $from.node(depth);
13
+ for (var depth = $pos.depth; depth > 0; depth--) {
14
+ var node = $pos.node(depth);
15
15
  // Count the table nodes
16
16
  if (node.type === nodeType) {
17
17
  count++;
@@ -22,20 +22,20 @@ export var getParentOfTypeCount = function getParentOfTypeCount(nodeType) {
22
22
  };
23
23
 
24
24
  /*
25
- * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current selection.
25
+ * Returns the (absolute) position directly after the top parent node of a given `nodeType` in the current position.
26
26
  *
27
27
  * ```typescript
28
- * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(selection);
28
+ * const nestingLevel = getEndTopParentNodeOfType(schema.nodes.table)(position);
29
29
  * ```
30
30
  */
31
31
  export var getPositionAfterTopParentNodeOfType = function getPositionAfterTopParentNodeOfType(nodeType) {
32
- return function ($from) {
32
+ return function ($pos) {
33
33
  // Loop through parent nodes from top to bottom
34
- for (var depth = 1; depth <= $from.depth; depth++) {
35
- var node = $from.node(depth);
34
+ for (var depth = 1; depth <= $pos.depth; depth++) {
35
+ var node = $pos.node(depth);
36
36
  // Count the table nodes
37
37
  if (node.type === nodeType) {
38
- return $from.after(depth);
38
+ return $pos.after(depth);
39
39
  }
40
40
  }
41
41
  };
@@ -535,6 +535,7 @@ export var EditorPresetBuilder = /*#__PURE__*/function () {
535
535
  function EditorPresetBuilder() {
536
536
  var _this = this;
537
537
  _classCallCheck(this, EditorPresetBuilder);
538
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
538
539
  /**
539
540
  * @deprecated Use `apiResolver` instead
540
541
  */
package/dist/esm/rank.js CHANGED
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
1
2
  // @deprecated
2
3
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
3
4
  export var rankEditorPlugins = {
@@ -28,6 +29,7 @@ export var rankEditorPlugins = {
28
29
  'unsupportedMark', 'unsupportedNodeAttribute']
29
30
  };
30
31
 
32
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
31
33
  // @deprecated
32
34
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
33
35
  export function sortByOrder(item) {
@@ -41,6 +43,7 @@ export function sortByOrder(item) {
41
43
  // function avoided that whole mess. If someone can think of a better way to implement
42
44
  // the above and below into a single function please do so
43
45
 
46
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
44
47
  // @deprecated
45
48
  // @private This rank is not stable and should not be trusted. If you need to change this file, please let the Editor lego team know about it
46
49
  export function sortByOrderWithTypeName(item) {
@@ -10,10 +10,12 @@ export var SortOrder = /*#__PURE__*/function (SortOrder) {
10
10
  export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation/emitter';
11
11
  export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
12
12
 
13
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
13
14
  /**
14
15
  * @deprecated
15
16
  */
16
17
 
18
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
17
19
  /**
18
20
  * @deprecated
19
21
  *
@@ -8,6 +8,7 @@ export var ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
8
8
  return ToolbarSize;
9
9
  }({});
10
10
 
11
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
11
12
  /** @deprecated
12
13
  * To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
13
14
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -29,6 +30,7 @@ export var ToolbarWidthsNext = /*#__PURE__*/function (ToolbarWidthsNext) {
29
30
  return ToolbarWidthsNext;
30
31
  }({});
31
32
 
33
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
32
34
  /** @deprecated
33
35
  * To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
34
36
  * to platform_editor_toolbar_responsive_fixes feature gate
@@ -21,7 +21,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
21
21
  import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
22
22
  import Layer from '../Layer';
23
23
  var packageName = "@atlaskit/editor-common";
24
- var packageVersion = "96.0.1";
24
+ var packageVersion = "96.1.0";
25
25
  var halfFocusRing = 1;
26
26
  var dropOffset = '0, 8';
27
27
  var DropList = /*#__PURE__*/function (_Component) {
@@ -34,7 +34,9 @@ var WithOutsideClick = /*#__PURE__*/function (_PureComponent) {
34
34
  if (!_this.props.isActiveComponent || !_this.props.handleClickOutside) {
35
35
  return;
36
36
  }
37
- var domNode = fg('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() : ReactDOM.findDOMNode(_assertThisInitialized(_this));
37
+ var domNode = fg('platform_editor_replace_finddomnode_in_common') ? (_this$props$outsideCl = _this.props.outsideClickTargetRef.current) === null || _this$props$outsideCl === void 0 ? void 0 : _this$props$outsideCl.deref() :
38
+ // eslint-disable-next-line react/no-find-dom-node -- Ignored via go/ED-25883
39
+ ReactDOM.findDOMNode(_assertThisInitialized(_this));
38
40
  if (!domNode || evt.target instanceof Node && !domNode.contains(evt.target)) {
39
41
  var _this$props$editorVie;
40
42
  _this.props.handleClickOutside(evt);
@@ -72,6 +72,7 @@ export function closest(node, s) {
72
72
  return null;
73
73
  }
74
74
 
75
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
75
76
  /*
76
77
  * @deprecated - Use HTMLElement.protoype.closest instead
77
78
  */
@@ -126,6 +126,7 @@ export { hasMergedCell, calcTableColumnWidths, convertProsemirrorTableNodeToArra
126
126
  export { createCompareNodes } from './compareNodes';
127
127
  export { compose } from './compose';
128
128
  export { isTextInput } from './is-text-input';
129
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
129
130
  /**
130
131
  * @deprecated - [ED-23844] moving to own entry point @atlaskit/editor-common/whitespace
131
132
  */
@@ -1,6 +1,7 @@
1
1
  import { isPerformanceAPIAvailable } from './is-performance-api-available';
2
2
  var measureMap = new Map();
3
3
 
4
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
4
5
  /**
5
6
  * @deprecated use 'startMeasure' from '@atlaskit/editor-common/performance-measures'
6
7
  */
@@ -12,6 +13,7 @@ export function startMeasure(measureName) {
12
13
  measureMap.set(measureName, performance.now());
13
14
  }
14
15
 
16
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
15
17
  /**
16
18
  * @deprecated use 'stopMeasure' from '@atlaskit/editor-common/performance-measures'
17
19
  */
@@ -36,6 +38,7 @@ export function stopMeasure(measureName, onMeasureComplete) {
36
38
  }
37
39
  }
38
40
 
41
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
39
42
  /**
40
43
  * @deprecated use 'clearMeasure' from '@atlaskit/editor-common/performance-measures'
41
44
  */
@@ -1,4 +1,5 @@
1
1
  export var GUTTER_SIZE_IN_PX = 120; // Default gutter size
2
+ // eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required -- Ignored via go/ED-25883
2
3
  /**
3
4
  * @deprecated - [ED-23844] only used in Editor Core
4
5
  */
@@ -169,6 +169,11 @@ export declare const toolbarInsertBlockMessages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ columnsDescriptionAdvancedLayout: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
172
177
  status: {
173
178
  id: string;
174
179
  defaultMessage: string;
@@ -9,11 +9,21 @@ export declare const toolbarMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
+ twoColumnsAdvancedLayout: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
12
17
  threeColumns: {
13
18
  id: string;
14
19
  defaultMessage: string;
15
20
  description: string;
16
21
  };
22
+ threeColumnsAdvancedLayout: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  fourColumns: {
18
28
  id: string;
19
29
  defaultMessage: string;
@@ -1,3 +1,3 @@
1
1
  import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- export declare const getParentOfTypeCount: (nodeType: NodeType) => ($from: ResolvedPos) => number;
3
- export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($from: ResolvedPos) => number | undefined;
2
+ export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
3
+ export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
@@ -10,6 +10,7 @@ export type SelectionToolbarGroup = {
10
10
  */
11
11
  rank?: number;
12
12
  items: Array<FloatingToolbarItem<Command>>;
13
+ pluginName?: string;
13
14
  };
14
15
  /**
15
16
  * The selection toolbar is a floating toolbar that is displayed for
@@ -169,6 +169,11 @@ export declare const toolbarInsertBlockMessages: {
169
169
  defaultMessage: string;
170
170
  description: string;
171
171
  };
172
+ columnsDescriptionAdvancedLayout: {
173
+ id: string;
174
+ defaultMessage: string;
175
+ description: string;
176
+ };
172
177
  status: {
173
178
  id: string;
174
179
  defaultMessage: string;
@@ -9,11 +9,21 @@ export declare const toolbarMessages: {
9
9
  defaultMessage: string;
10
10
  description: string;
11
11
  };
12
+ twoColumnsAdvancedLayout: {
13
+ id: string;
14
+ defaultMessage: string;
15
+ description: string;
16
+ };
12
17
  threeColumns: {
13
18
  id: string;
14
19
  defaultMessage: string;
15
20
  description: string;
16
21
  };
22
+ threeColumnsAdvancedLayout: {
23
+ id: string;
24
+ defaultMessage: string;
25
+ description: string;
26
+ };
17
27
  fourColumns: {
18
28
  id: string;
19
29
  defaultMessage: string;
@@ -1,3 +1,3 @@
1
1
  import type { NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
- export declare const getParentOfTypeCount: (nodeType: NodeType) => ($from: ResolvedPos) => number;
3
- export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($from: ResolvedPos) => number | undefined;
2
+ export declare const getParentOfTypeCount: (nodeType: NodeType) => ($pos: ResolvedPos) => number;
3
+ export declare const getPositionAfterTopParentNodeOfType: (nodeType: NodeType) => ($pos: ResolvedPos) => number | undefined;
@@ -10,6 +10,7 @@ export type SelectionToolbarGroup = {
10
10
  */
11
11
  rank?: number;
12
12
  items: Array<FloatingToolbarItem<Command>>;
13
+ pluginName?: string;
13
14
  };
14
15
  /**
15
16
  * The selection toolbar is a floating toolbar that is displayed for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "96.0.1",
3
+ "version": "96.1.0",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -191,7 +191,7 @@
191
191
  "devDependencies": {
192
192
  "@af/visual-regression": "*",
193
193
  "@atlaskit/media-core": "^34.3.0",
194
- "@atlaskit/media-test-helpers": "^34.6.0",
194
+ "@atlaskit/media-test-helpers": "^34.7.0",
195
195
  "@atlaskit/util-data-test": "^17.13.0",
196
196
  "@atlaskit/visual-regression": "*",
197
197
  "@testing-library/dom": "^10.1.0",