@atlaskit/editor-plugin-selection 26.0.4 → 26.0.5

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 (35) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/pm-plugins/commands.js +47 -44
  3. package/dist/cjs/pm-plugins/gap-cursor/actions.js +19 -17
  4. package/dist/cjs/pm-plugins/gap-cursor/utils.js +4 -3
  5. package/dist/cjs/pm-plugins/gap-cursor-keymap.js +1 -1
  6. package/dist/cjs/pm-plugins/gap-cursor-main.js +13 -11
  7. package/dist/cjs/pm-plugins/plugin-factory.js +5 -5
  8. package/dist/cjs/pm-plugins/utils.js +9 -8
  9. package/dist/cjs/types/index.js +2 -2
  10. package/dist/es2019/pm-plugins/commands.js +4 -1
  11. package/dist/es2019/pm-plugins/gap-cursor/actions.js +4 -2
  12. package/dist/es2019/pm-plugins/gap-cursor/utils.js +3 -2
  13. package/dist/es2019/pm-plugins/gap-cursor-keymap.js +1 -1
  14. package/dist/es2019/pm-plugins/gap-cursor-main.js +3 -1
  15. package/dist/es2019/pm-plugins/plugin-factory.js +1 -1
  16. package/dist/es2019/pm-plugins/utils.js +3 -2
  17. package/dist/es2019/types/index.js +1 -1
  18. package/dist/esm/pm-plugins/commands.js +4 -1
  19. package/dist/esm/pm-plugins/gap-cursor/actions.js +4 -2
  20. package/dist/esm/pm-plugins/gap-cursor/utils.js +3 -2
  21. package/dist/esm/pm-plugins/gap-cursor-keymap.js +1 -1
  22. package/dist/esm/pm-plugins/gap-cursor-main.js +3 -1
  23. package/dist/esm/pm-plugins/plugin-factory.js +1 -1
  24. package/dist/esm/pm-plugins/utils.js +3 -2
  25. package/dist/esm/types/index.js +1 -1
  26. package/dist/types/editor-actions/index.d.ts +1 -1
  27. package/dist/types/pm-plugins/actions.d.ts +1 -1
  28. package/dist/types/pm-plugins/commands.d.ts +3 -2
  29. package/dist/types/pm-plugins/gap-cursor/actions.d.ts +1 -1
  30. package/dist/types/pm-plugins/plugin-factory.d.ts +2 -2
  31. package/dist/types/pm-plugins/reducer.d.ts +1 -1
  32. package/dist/types/pm-plugins/selection-main.d.ts +3 -3
  33. package/dist/types/selectionPluginType.d.ts +4 -3
  34. package/dist/types/types/index.d.ts +2 -2
  35. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/editor-plugin-selection
2
2
 
3
+ ## 26.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 26.0.4
4
10
 
5
11
  ### Patch Changes
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.setSelectionRelativeToNode = exports.setSelectionInsideAtNodeEnd = exports.selectNearNode = exports.arrowRight = exports.arrowLeft = void 0;
7
7
  var _selection = require("@atlaskit/editor-common/selection");
8
+ var _selection2 = require("@atlaskit/editor-common/selection/gap-cursor/selection");
9
+ var _isIgnored = require("@atlaskit/editor-common/selection/is-ignored");
10
+ var _types = require("@atlaskit/editor-common/selection/types");
8
11
  var _utils = require("@atlaskit/editor-common/utils");
9
12
  var _state = require("@atlaskit/editor-prosemirror/state");
10
- var _types = require("../types");
13
+ var _types2 = require("../types");
11
14
  var _actions = require("./actions");
12
15
  var _pluginFactory = require("./plugin-factory");
13
16
  var _utils2 = require("./utils");
@@ -16,7 +19,7 @@ var _utils2 = require("./utils");
16
19
  var selectNearNode = exports.selectNearNode = function selectNearNode(selectionRelativeToNode, selection) {
17
20
  return function (_ref) {
18
21
  var tr = _ref.tr;
19
- tr.setMeta(_types.selectionPluginKey, {
22
+ tr.setMeta(_types2.selectionPluginKey, {
20
23
  type: _actions.SelectionActionTypes.SET_RELATIVE_SELECTION,
21
24
  selectionRelativeToNode: selectionRelativeToNode
22
25
  });
@@ -38,7 +41,7 @@ var setSelectionRelativeToNode = exports.setSelectionRelativeToNode = function s
38
41
  };
39
42
  var arrowRight = exports.arrowRight = function arrowRight(state, dispatch) {
40
43
  var selection = state.selection;
41
- if (selection instanceof _selection.GapCursorSelection) {
44
+ if (selection instanceof _selection2.GapCursorSelection) {
42
45
  return arrowRightFromGapCursor(selection)(state, dispatch);
43
46
  } else if (selection instanceof _state.NodeSelection) {
44
47
  return arrowRightFromNode(selection)(state, dispatch);
@@ -49,7 +52,7 @@ var arrowRight = exports.arrowRight = function arrowRight(state, dispatch) {
49
52
  };
50
53
  var arrowLeft = exports.arrowLeft = function arrowLeft(state, dispatch) {
51
54
  var selection = state.selection;
52
- if (selection instanceof _selection.GapCursorSelection) {
55
+ if (selection instanceof _selection2.GapCursorSelection) {
53
56
  return arrowLeftFromGapCursor(selection)(state, dispatch);
54
57
  } else if (selection instanceof _state.NodeSelection) {
55
58
  return arrowLeftFromNode(selection)(state, dispatch);
@@ -66,12 +69,12 @@ var arrowRightFromGapCursor = function arrowRightFromGapCursor(selection) {
66
69
  if (side === _selection.Side.LEFT) {
67
70
  var selectableNode = (0, _utils2.findSelectableContainerAfter)($to, state.doc);
68
71
  if (selectableNode) {
69
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
72
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
70
73
  }
71
74
  } else if (side === _selection.Side.RIGHT && (0, _utils2.isSelectionAtEndOfParentNode)($from, selection)) {
72
75
  var _selectableNode = (0, _utils2.findSelectableContainerParent)(selection);
73
76
  if (_selectableNode) {
74
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, _selectableNode.pos))(state, dispatch);
77
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, _selectableNode.pos))(state, dispatch);
75
78
  }
76
79
  }
77
80
  return false;
@@ -86,16 +89,16 @@ var arrowLeftFromGapCursor = function arrowLeftFromGapCursor(selection) {
86
89
  if (side === _selection.Side.RIGHT) {
87
90
  var selectableNode = (0, _utils2.findSelectableContainerBefore)($from, state.doc);
88
91
  if (selectableNode) {
89
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
92
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
90
93
  }
91
94
  } else if (side === _selection.Side.LEFT && (0, _utils2.isSelectionAtStartOfParentNode)($from, selection)) {
92
- if (selectionRelativeToNode === _selection.RelativeSelectionPos.Before) {
95
+ if (selectionRelativeToNode === _types.RelativeSelectionPos.Before) {
93
96
  var $parent = state.doc.resolve(selection.$from.before(selection.$from.depth));
94
97
  if ($parent) {
95
98
  var _selectableNode2 = (0, _utils2.findSelectableContainerBefore)($parent, state.doc);
96
- if (_selectableNode2 && (0, _selection.isIgnored)(_selectableNode2.node)) {
99
+ if (_selectableNode2 && (0, _isIgnored.isIgnored)(_selectableNode2.node)) {
97
100
  // selection is inside node without gap cursor preceeded by another node without gap cursor - set node selection for previous node
98
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, _selectableNode2.pos))(state, dispatch);
101
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, _selectableNode2.pos))(state, dispatch);
99
102
  }
100
103
  }
101
104
  // we don't return this as we want to reset the relative pos, but not block other plugins
@@ -104,7 +107,7 @@ var arrowLeftFromGapCursor = function arrowLeftFromGapCursor(selection) {
104
107
  } else {
105
108
  var _selectableNode3 = (0, _utils2.findSelectableContainerParent)(selection);
106
109
  if (_selectableNode3) {
107
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, _selectableNode3.pos))(state, dispatch);
110
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, _selectableNode3.pos))(state, dispatch);
108
111
  }
109
112
  }
110
113
  }
@@ -119,19 +122,19 @@ var arrowRightFromNode = function arrowRightFromNode(selection) {
119
122
  var _getPluginState2 = (0, _pluginFactory.getPluginState)(state),
120
123
  selectionRelativeToNode = _getPluginState2.selectionRelativeToNode;
121
124
  if (node.isAtom) {
122
- if ((0, _utils2.isSelectionAtEndOfParentNode)($to, selection) && (node.isInline || (0, _selection.isIgnored)(node))) {
125
+ if ((0, _utils2.isSelectionAtEndOfParentNode)($to, selection) && (node.isInline || (0, _isIgnored.isIgnored)(node))) {
123
126
  // selection is for inline node or atom node which is ignored by gap-cursor and that is the last child of its parent node - set text selection after it
124
- return findAndSetTextSelection(_selection.RelativeSelectionPos.End, state.doc.resolve(from + 1), _types.SelectionDirection.After)(state, dispatch);
127
+ return findAndSetTextSelection(_types.RelativeSelectionPos.End, state.doc.resolve(from + 1), _types2.SelectionDirection.After)(state, dispatch);
125
128
  }
126
129
  return false;
127
- } else if (selectionRelativeToNode === _selection.RelativeSelectionPos.Start) {
130
+ } else if (selectionRelativeToNode === _types.RelativeSelectionPos.Start) {
128
131
  // selection is for container node - set selection inside it at the start
129
- return setSelectionInsideAtNodeStart(_selection.RelativeSelectionPos.Inside, node, from)(state, dispatch);
130
- } else if ((0, _selection.isIgnored)(node) && (!selectionRelativeToNode || selectionRelativeToNode === _selection.RelativeSelectionPos.End)) {
132
+ return setSelectionInsideAtNodeStart(_types.RelativeSelectionPos.Inside, node, from)(state, dispatch);
133
+ } else if ((0, _isIgnored.isIgnored)(node) && (!selectionRelativeToNode || selectionRelativeToNode === _types.RelativeSelectionPos.End)) {
131
134
  var selectableNode = (0, _utils2.findSelectableContainerAfter)($to, state.doc);
132
- if (selectableNode && (0, _selection.isIgnored)(selectableNode.node)) {
135
+ if (selectableNode && (0, _isIgnored.isIgnored)(selectableNode.node)) {
133
136
  // selection is for node without gap cursor followed by another node without gap cursor - set node selection for next node
134
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
137
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
135
138
  }
136
139
  }
137
140
  return false;
@@ -146,23 +149,23 @@ var arrowLeftFromNode = function arrowLeftFromNode(selection) {
146
149
  var _getPluginState3 = (0, _pluginFactory.getPluginState)(state),
147
150
  selectionRelativeToNode = _getPluginState3.selectionRelativeToNode;
148
151
  if (node.isAtom) {
149
- if ((0, _utils2.isSelectionAtStartOfParentNode)($from, selection) && (node.isInline || (0, _selection.isIgnored)(node))) {
152
+ if ((0, _utils2.isSelectionAtStartOfParentNode)($from, selection) && (node.isInline || (0, _isIgnored.isIgnored)(node))) {
150
153
  // selection is for inline node or atom node which is ignored by gap-cursor and that is the first child of its parent node - set text selection before it
151
- return findAndSetTextSelection(_selection.RelativeSelectionPos.Start, state.doc.resolve(from), _types.SelectionDirection.Before)(state, dispatch);
154
+ return findAndSetTextSelection(_types.RelativeSelectionPos.Start, state.doc.resolve(from), _types2.SelectionDirection.Before)(state, dispatch);
152
155
  }
153
156
  return false;
154
- } else if (selectionRelativeToNode === _selection.RelativeSelectionPos.End) {
157
+ } else if (selectionRelativeToNode === _types.RelativeSelectionPos.End) {
155
158
  // selection is for container node - set selection inside it at the end
156
- return setSelectionInsideAtNodeEnd(_selection.RelativeSelectionPos.Inside, node, from, to)(state, dispatch);
157
- } else if (!selectionRelativeToNode || selectionRelativeToNode === _selection.RelativeSelectionPos.Inside) {
159
+ return setSelectionInsideAtNodeEnd(_types.RelativeSelectionPos.Inside, node, from, to)(state, dispatch);
160
+ } else if (!selectionRelativeToNode || selectionRelativeToNode === _types.RelativeSelectionPos.Inside) {
158
161
  // selection is for container node - set selection inside it at the start
159
162
  // (this is a special case when the user selects by clicking node)
160
- return setSelectionInsideAtNodeStart(_selection.RelativeSelectionPos.Before, node, from)(state, dispatch);
161
- } else if ((0, _selection.isIgnored)(node) && selectionRelativeToNode === _selection.RelativeSelectionPos.Start) {
163
+ return setSelectionInsideAtNodeStart(_types.RelativeSelectionPos.Before, node, from)(state, dispatch);
164
+ } else if ((0, _isIgnored.isIgnored)(node) && selectionRelativeToNode === _types.RelativeSelectionPos.Start) {
162
165
  // selection is for node without gap cursor preceeded by another node without gap cursor - set node selection for previous node
163
166
  var selectableNode = (0, _utils2.findSelectableContainerBefore)($from, state.doc);
164
- if (selectableNode && (0, _selection.isIgnored)(selectableNode.node)) {
165
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
167
+ if (selectableNode && (0, _isIgnored.isIgnored)(selectableNode.node)) {
168
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
166
169
  }
167
170
  }
168
171
  return false;
@@ -173,7 +176,7 @@ var arrowRightFromText = function arrowRightFromText(selection) {
173
176
  if ((0, _utils2.isSelectionAtEndOfParentNode)(selection.$to, selection)) {
174
177
  var selectableNode = (0, _utils2.findSelectableContainerParent)(selection);
175
178
  if (selectableNode) {
176
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
179
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
177
180
  }
178
181
  }
179
182
  return false;
@@ -183,11 +186,11 @@ var arrowLeftFromText = function arrowLeftFromText(selection) {
183
186
  return function (state, dispatch) {
184
187
  var _getPluginState4 = (0, _pluginFactory.getPluginState)(state),
185
188
  selectionRelativeToNode = _getPluginState4.selectionRelativeToNode;
186
- if (selectionRelativeToNode === _selection.RelativeSelectionPos.Before) {
189
+ if (selectionRelativeToNode === _types.RelativeSelectionPos.Before) {
187
190
  var selectableNode = (0, _utils2.findSelectableContainerBefore)(selection.$from, state.doc);
188
- if (selectableNode && (0, _selection.isIgnored)(selectableNode.node)) {
191
+ if (selectableNode && (0, _isIgnored.isIgnored)(selectableNode.node)) {
189
192
  // selection is inside node without gap cursor preceeded by another node without gap cursor - set node selection for previous node
190
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
193
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.End, _state.NodeSelection.create(state.doc, selectableNode.pos))(state, dispatch);
191
194
  }
192
195
  // we don't return this as we want to reset the relative pos, but not block other plugins
193
196
  // from responding to arrow left key
@@ -195,7 +198,7 @@ var arrowLeftFromText = function arrowLeftFromText(selection) {
195
198
  } else if ((0, _utils2.isSelectionAtStartOfParentNode)(selection.$from, selection)) {
196
199
  var _selectableNode4 = (0, _utils2.findSelectableContainerParent)(selection);
197
200
  if (_selectableNode4) {
198
- return setSelectionRelativeToNode(_selection.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, _selectableNode4.pos))(state, dispatch);
201
+ return setSelectionRelativeToNode(_types.RelativeSelectionPos.Start, _state.NodeSelection.create(state.doc, _selectableNode4.pos))(state, dispatch);
199
202
  }
200
203
  }
201
204
  return false;
@@ -213,20 +216,20 @@ var findAndSetTextSelection = function findAndSetTextSelection(selectionRelative
213
216
  var setSelectionInsideAtNodeStart = function setSelectionInsideAtNodeStart(selectionRelativeToNode, node, pos) {
214
217
  return function (state, dispatch) {
215
218
  if ((0, _utils.isNodeEmpty)(node)) {
216
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(pos), _types.SelectionDirection.After)(state, dispatch);
219
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(pos), _types2.SelectionDirection.After)(state, dispatch);
217
220
  }
218
221
  var selectableNode = (0, _utils2.findFirstChildNodeToSelect)(node);
219
222
  if (selectableNode) {
220
223
  var childNode = selectableNode.node,
221
224
  childPos = selectableNode.pos;
222
225
  var selectionPos = pos + childPos + 1;
223
- if (childNode.isText || childNode.isAtom && (0, _selection.isIgnored)(childNode) || childNode.isInline) {
226
+ if (childNode.isText || childNode.isAtom && (0, _isIgnored.isIgnored)(childNode) || childNode.isInline) {
224
227
  //selection is for text node, inline node or atom node which is ignored by gap-cursor. set selection before it.
225
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos), _types.SelectionDirection.Before)(state, dispatch);
228
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos), _types2.SelectionDirection.Before)(state, dispatch);
226
229
  } else if ((0, _utils.isEmptyParagraph)(childNode)) {
227
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos + 1), _types.SelectionDirection.Before)(state, dispatch);
228
- } else if (!(0, _selection.isIgnored)(node)) {
229
- return setSelectionRelativeToNode(selectionRelativeToNode, new _selection.GapCursorSelection(state.doc.resolve(selectionPos), _selection.Side.LEFT))(state, dispatch);
230
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos + 1), _types2.SelectionDirection.Before)(state, dispatch);
231
+ } else if (!(0, _isIgnored.isIgnored)(node)) {
232
+ return setSelectionRelativeToNode(selectionRelativeToNode, new _selection2.GapCursorSelection(state.doc.resolve(selectionPos), _selection.Side.LEFT))(state, dispatch);
230
233
  } else if ((0, _utils2.isSelectableContainerNode)(node)) {
231
234
  return setSelectionRelativeToNode(selectionRelativeToNode, _state.NodeSelection.create(state.doc, selectionPos))(state, dispatch);
232
235
  }
@@ -237,20 +240,20 @@ var setSelectionInsideAtNodeStart = function setSelectionInsideAtNodeStart(selec
237
240
  var setSelectionInsideAtNodeEnd = exports.setSelectionInsideAtNodeEnd = function setSelectionInsideAtNodeEnd(selectionRelativeToNode, node, from, to) {
238
241
  return function (state, dispatch) {
239
242
  if ((0, _utils.isNodeEmpty)(node)) {
240
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(to), _types.SelectionDirection.Before)(state, dispatch);
243
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(to), _types2.SelectionDirection.Before)(state, dispatch);
241
244
  }
242
245
  var selectableNode = (0, _utils2.findLastChildNodeToSelect)(node);
243
246
  if (selectableNode) {
244
247
  var childNode = selectableNode.node,
245
248
  childPos = selectableNode.pos;
246
249
  var selectionPos = from + childPos + childNode.nodeSize;
247
- if (childNode.isText || childNode.isAtom && (0, _selection.isIgnored)(childNode) || childNode.isInline) {
250
+ if (childNode.isText || childNode.isAtom && (0, _isIgnored.isIgnored)(childNode) || childNode.isInline) {
248
251
  //selection is for text node, inline node or atom node which is ignored by gap-cursor. set selection after it.
249
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos + 1), _types.SelectionDirection.After)(state, dispatch);
252
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos + 1), _types2.SelectionDirection.After)(state, dispatch);
250
253
  } else if ((0, _utils.isEmptyParagraph)(childNode)) {
251
- return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos), _types.SelectionDirection.After)(state, dispatch);
252
- } else if (!(0, _selection.isIgnored)(node)) {
253
- return setSelectionRelativeToNode(selectionRelativeToNode, new _selection.GapCursorSelection(state.doc.resolve(selectionPos + 1), _selection.Side.RIGHT))(state, dispatch);
254
+ return findAndSetTextSelection(selectionRelativeToNode, state.doc.resolve(selectionPos), _types2.SelectionDirection.After)(state, dispatch);
255
+ } else if (!(0, _isIgnored.isIgnored)(node)) {
256
+ return setSelectionRelativeToNode(selectionRelativeToNode, new _selection2.GapCursorSelection(state.doc.resolve(selectionPos + 1), _selection.Side.RIGHT))(state, dispatch);
254
257
  } else if ((0, _utils2.isSelectableContainerNode)(node)) {
255
258
  return setSelectionRelativeToNode(selectionRelativeToNode, _state.NodeSelection.create(state.doc, selectionPos))(state, dispatch);
256
259
  }
@@ -5,8 +5,10 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.shouldSkipGapCursor = exports.setSelectionTopLevelBlocks = exports.setCursorForTopLevelBlocks = exports.hasGapCursorPlugin = exports.deleteNode = exports.arrow = void 0;
7
7
  var _selection = require("@atlaskit/editor-common/selection");
8
+ var _selection2 = require("@atlaskit/editor-common/selection/gap-cursor/selection");
9
+ var _isValidTargetNode = require("@atlaskit/editor-common/selection/is-valid-target-node");
8
10
  var _utils = require("@atlaskit/editor-common/utils");
9
- var _whitespace = require("@atlaskit/editor-common/whitespace");
11
+ var _whitespace = require("@atlaskit/editor-common/whitespace/whitespace");
10
12
  var _state = require("@atlaskit/editor-prosemirror/state");
11
13
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
12
14
  var _gapCursorPluginKey = require("../gap-cursor-plugin-key");
@@ -36,8 +38,8 @@ var shouldSkipGapCursor = exports.shouldSkipGapCursor = function shouldSkipGapCu
36
38
  function shouldHandleMediaGapCursor(dir, state) {
37
39
  var _selection$$from$node;
38
40
  var selection = state.selection;
39
- var upArrowFromGapCursorIntoMedia = selection instanceof _selection.GapCursorSelection && dir === _direction.Direction.UP && selection.$from.nodeBefore && (0, _utils.isMediaNode)(selection.$from.nodeBefore);
40
- var downArrowFromGapCursorIntoMediaGroup = selection instanceof _selection.GapCursorSelection && dir === _direction.Direction.DOWN && ((_selection$$from$node = selection.$from.nodeAfter) === null || _selection$$from$node === void 0 ? void 0 : _selection$$from$node.type.name) === 'mediaGroup';
41
+ var upArrowFromGapCursorIntoMedia = selection instanceof _selection2.GapCursorSelection && dir === _direction.Direction.UP && selection.$from.nodeBefore && (0, _utils.isMediaNode)(selection.$from.nodeBefore);
42
+ var downArrowFromGapCursorIntoMediaGroup = selection instanceof _selection2.GapCursorSelection && dir === _direction.Direction.DOWN && ((_selection$$from$node = selection.$from.nodeAfter) === null || _selection$$from$node === void 0 ? void 0 : _selection$$from$node.type.name) === 'mediaGroup';
41
43
  return upArrowFromGapCursorIntoMedia || downArrowFromGapCursorIntoMediaGroup;
42
44
  }
43
45
 
@@ -53,13 +55,13 @@ function handleMediaGapCursor(dir, state) {
53
55
  if (nodeBeforePos && selection.side === 'right' && ((_tr$doc$nodeAt = tr.doc.nodeAt(nodeBeforePos)) === null || _tr$doc$nodeAt === void 0 ? void 0 : _tr$doc$nodeAt.type.name) === 'mediaSingle') {
54
56
  tr.setSelection(new _state.NodeSelection(tr.doc.resolve(nodeBeforePos))).scrollIntoView();
55
57
  } else if (nodeBeforePos || nodeBeforePos === 0) {
56
- tr.setSelection(new _selection.GapCursorSelection(tr.doc.resolve(nodeBeforePos), _selection.Side.LEFT)).scrollIntoView();
58
+ tr.setSelection(new _selection2.GapCursorSelection(tr.doc.resolve(nodeBeforePos), _selection.Side.LEFT)).scrollIntoView();
57
59
  }
58
60
  }
59
61
  if (dir === _direction.Direction.DOWN && selection.$from.nodeAfter) {
60
62
  var nodeAfterPos = selection.side === 'right' ? $pos.pos : $pos.pos + selection.$from.nodeAfter.nodeSize;
61
63
  if (nodeAfterPos) {
62
- tr.setSelection(new _selection.GapCursorSelection(tr.doc.resolve(nodeAfterPos), _selection.Side.LEFT)).scrollIntoView();
64
+ tr.setSelection(new _selection2.GapCursorSelection(tr.doc.resolve(nodeAfterPos), _selection.Side.LEFT)).scrollIntoView();
63
65
  }
64
66
  }
65
67
  return tr;
@@ -110,14 +112,14 @@ var arrow = exports.arrow = function arrow(dir, endOfTextblock) {
110
112
  }
111
113
 
112
114
  // when jumping between block nodes at the same depth, we need to reverse cursor without changing ProseMirror position
113
- if (selection instanceof _selection.GapCursorSelection &&
115
+ if (selection instanceof _selection2.GapCursorSelection &&
114
116
  // next node allow gap cursor position
115
- (0, _selection.isValidTargetNode)((0, _direction.isBackward)(dir) ? $pos.nodeBefore : $pos.nodeAfter) && (
117
+ (0, _isValidTargetNode.isValidTargetNode)((0, _direction.isBackward)(dir) ? $pos.nodeBefore : $pos.nodeAfter) && (
116
118
  // gap cursor changes block node
117
119
  (0, _direction.isBackward)(dir) && selection.side === _selection.Side.LEFT || (0, _direction.isForward)(dir) && selection.side === _selection.Side.RIGHT)) {
118
120
  // reverse cursor position
119
121
  if (dispatch) {
120
- dispatch(tr.setSelection(new _selection.GapCursorSelection($pos, selection.side === _selection.Side.RIGHT ? _selection.Side.LEFT : _selection.Side.RIGHT)).scrollIntoView());
122
+ dispatch(tr.setSelection(new _selection2.GapCursorSelection($pos, selection.side === _selection.Side.RIGHT ? _selection.Side.LEFT : _selection.Side.RIGHT)).scrollIntoView());
121
123
  }
122
124
  return true;
123
125
  }
@@ -130,14 +132,14 @@ var arrow = exports.arrow = function arrow(dir, endOfTextblock) {
130
132
  return false;
131
133
  }
132
134
  }
133
- var nextSelection = _selection.GapCursorSelection.findFrom($pos, (0, _direction.isBackward)(dir) ? -1 : 1, mustMove);
135
+ var nextSelection = _selection2.GapCursorSelection.findFrom($pos, (0, _direction.isBackward)(dir) ? -1 : 1, mustMove);
134
136
  if (!nextSelection) {
135
137
  return false;
136
138
  }
137
- if (!(0, _selection.isValidTargetNode)((0, _direction.isForward)(dir) ? nextSelection.$from.nodeBefore : nextSelection.$from.nodeAfter)) {
139
+ if (!(0, _isValidTargetNode.isValidTargetNode)((0, _direction.isForward)(dir) ? nextSelection.$from.nodeBefore : nextSelection.$from.nodeAfter)) {
138
140
  // reverse cursor position
139
141
  if (dispatch) {
140
- dispatch(tr.setSelection(new _selection.GapCursorSelection(nextSelection.$from, (0, _direction.isForward)(dir) ? _selection.Side.LEFT : _selection.Side.RIGHT)).scrollIntoView());
142
+ dispatch(tr.setSelection(new _selection2.GapCursorSelection(nextSelection.$from, (0, _direction.isForward)(dir) ? _selection.Side.LEFT : _selection.Side.RIGHT)).scrollIntoView());
141
143
  }
142
144
  return true;
143
145
  }
@@ -149,14 +151,14 @@ var arrow = exports.arrow = function arrow(dir, endOfTextblock) {
149
151
  };
150
152
  var deleteNode = exports.deleteNode = function deleteNode(dir) {
151
153
  return function (state, dispatch) {
152
- if (state.selection instanceof _selection.GapCursorSelection) {
154
+ if (state.selection instanceof _selection2.GapCursorSelection) {
153
155
  var _state$selection = state.selection,
154
156
  $from = _state$selection.$from,
155
157
  $anchor = _state$selection.$anchor;
156
158
  var tr = state.tr;
157
159
  if ((0, _direction.isBackward)(dir)) {
158
160
  if (state.selection.side === 'left') {
159
- tr.setSelection(new _selection.GapCursorSelection($anchor, _selection.Side.RIGHT));
161
+ tr.setSelection(new _selection2.GapCursorSelection($anchor, _selection.Side.RIGHT));
160
162
  if (dispatch) {
161
163
  dispatch(tr);
162
164
  }
@@ -226,13 +228,13 @@ var setSelectionTopLevelBlocks = exports.setSelectionTopLevelBlocks = function s
226
228
  if ($pos === null) {
227
229
  return;
228
230
  }
229
- var isGapCursorAllowed = cursorCoords.side === _selection.Side.LEFT ? (0, _selection.isValidTargetNode)($pos.nodeAfter) : (0, _selection.isValidTargetNode)($pos.nodeBefore);
230
- if (isGapCursorAllowed && _selection.GapCursorSelection.valid($pos)) {
231
+ var isGapCursorAllowed = cursorCoords.side === _selection.Side.LEFT ? (0, _isValidTargetNode.isValidTargetNode)($pos.nodeAfter) : (0, _isValidTargetNode.isValidTargetNode)($pos.nodeBefore);
232
+ if (isGapCursorAllowed && _selection2.GapCursorSelection.valid($pos)) {
231
233
  // this forces PM to re-render the decoration node if we change the side of the gap cursor, it doesn't do it by default
232
- if (tr.selection instanceof _selection.GapCursorSelection) {
234
+ if (tr.selection instanceof _selection2.GapCursorSelection) {
233
235
  tr.setSelection(_state.Selection.near($pos));
234
236
  } else {
235
- tr.setSelection(new _selection.GapCursorSelection($pos, cursorCoords.side));
237
+ tr.setSelection(new _selection2.GapCursorSelection($pos, cursorCoords.side));
236
238
  }
237
239
  }
238
240
  // try to set text selection if the editor isnt focused
@@ -7,9 +7,10 @@ exports.getComputedStyleForLayoutMode = void 0;
7
7
  exports.getLayoutModeFromTargetNode = getLayoutModeFromTargetNode;
8
8
  exports.getMediaNearPos = getMediaNearPos;
9
9
  exports.isTextBlockNearPos = exports.isLeftCursor = exports.isIgnoredClick = void 0;
10
- var _mediaSingle = require("@atlaskit/editor-common/media-single");
10
+ var _constants = require("@atlaskit/editor-common/media-single/constants");
11
11
  var _selection = require("@atlaskit/editor-common/selection");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
+ var _unsupportedContent = require("@atlaskit/editor-common/styles/unsupported-content");
13
14
  var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
14
15
  var isLeftCursor = exports.isLeftCursor = function isLeftCursor(side) {
15
16
  return side === _selection.Side.LEFT;
@@ -95,7 +96,7 @@ var isIgnoredClick = exports.isIgnoredClick = function isIgnoredClick(elem) {
95
96
  }
96
97
 
97
98
  // check if we're clicking an image caption placeholder
98
- if (elem !== null && elem !== void 0 && elem.closest("[data-id=\"".concat(_mediaSingle.CAPTION_PLACEHOLDER_ID, "\"]"))) {
99
+ if (elem !== null && elem !== void 0 && elem.closest("[data-id=\"".concat(_constants.CAPTION_PLACEHOLDER_ID, "\"]"))) {
99
100
  return true;
100
101
  }
101
102
 
@@ -119,7 +120,7 @@ var isIgnoredClick = exports.isIgnoredClick = function isIgnoredClick(elem) {
119
120
 
120
121
  // Check if unsupported node selection
121
122
  // (without this, selection requires double clicking in FF due to posAtCoords differences)
122
- if (elem !== null && elem !== void 0 && elem.closest(".".concat(_styles.UnsupportedSharedCssClassName.BLOCK_CONTAINER))) {
123
+ if (elem !== null && elem !== void 0 && elem.closest(".".concat(_unsupportedContent.UnsupportedSharedCssClassName.BLOCK_CONTAINER))) {
123
124
  return true;
124
125
  }
125
126
  return false;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = keymapPlugin;
7
7
  var _keymaps = require("@atlaskit/editor-common/keymaps");
8
- var _selection = require("@atlaskit/editor-common/selection");
8
+ var _selection = require("@atlaskit/editor-common/selection/gap-cursor/selection");
9
9
  var _commands = require("@atlaskit/editor-prosemirror/commands");
10
10
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
11
11
  var _actions = require("./gap-cursor/actions");
@@ -6,13 +6,15 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
8
  var _selection = require("@atlaskit/editor-common/selection");
9
+ var _actions = require("@atlaskit/editor-common/selection/actions");
10
+ var _selection2 = require("@atlaskit/editor-common/selection/gap-cursor/selection");
9
11
  var _state = require("@atlaskit/editor-prosemirror/state");
10
12
  var _utils = require("@atlaskit/editor-prosemirror/utils");
11
13
  var _view2 = require("@atlaskit/editor-prosemirror/view");
12
14
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
15
  var _types = require("../types");
14
16
  var _gapCursorPluginKey = require("./gap-cursor-plugin-key");
15
- var _actions = require("./gap-cursor/actions");
17
+ var _actions2 = require("./gap-cursor/actions");
16
18
  var _direction = require("./gap-cursor/direction");
17
19
  var _utils2 = require("./gap-cursor/utils");
18
20
  var _placeGapCursor = require("./gap-cursor/utils/place-gap-cursor");
@@ -30,7 +32,7 @@ var plugin = new _safePlugin.SafePlugin({
30
32
  var _meta$displayGapCurso, _selectionMeta$hideCu;
31
33
  var meta = tr.getMeta(_gapCursorPluginKey.gapCursorPluginKey);
32
34
  var selectionMeta = tr.getMeta(_types.selectionPluginKey);
33
- var selectionIsGapCursor = newState.selection instanceof _selection.GapCursorSelection;
35
+ var selectionIsGapCursor = newState.selection instanceof _selection2.GapCursorSelection;
34
36
  return {
35
37
  selectionIsGapCursor: selectionIsGapCursor,
36
38
  // only attempt to hide gap cursor if selection is gap cursor
@@ -49,7 +51,7 @@ var plugin = new _safePlugin.SafePlugin({
49
51
  if (_view.state.selection.anchor === 0 && _view.state.selection instanceof _state.NodeSelection) {
50
52
  // This is required otherwise the dispatch doesn't trigger in the correct place
51
53
  window.requestAnimationFrame(function () {
52
- _view.dispatch(_view.state.tr.setSelection(new _selection.GapCursorSelection(_view.state.doc.resolve(0), _selection.Side.LEFT)));
54
+ _view.dispatch(_view.state.tr.setSelection(new _selection2.GapCursorSelection(_view.state.doc.resolve(0), _selection.Side.LEFT)));
53
55
  });
54
56
  }
55
57
  return {};
@@ -61,7 +63,7 @@ var plugin = new _safePlugin.SafePlugin({
61
63
  var _gapCursorPluginKey$g = _gapCursorPluginKey.gapCursorPluginKey.getState(editorState),
62
64
  displayGapCursor = _gapCursorPluginKey$g.displayGapCursor,
63
65
  hideCursor = _gapCursorPluginKey$g.hideCursor;
64
- if (selection instanceof _selection.GapCursorSelection && displayGapCursor && !hideCursor) {
66
+ if (selection instanceof _selection2.GapCursorSelection && displayGapCursor && !hideCursor) {
65
67
  var $from = selection.$from,
66
68
  side = selection.side;
67
69
 
@@ -78,7 +80,7 @@ var plugin = new _safePlugin.SafePlugin({
78
80
  var node = isRightCursor ? $from.nodeBefore : $from.nodeAfter;
79
81
  var layoutMode = node && (0, _utils2.getLayoutModeFromTargetNode)(node);
80
82
  return _view2.DecorationSet.create(doc, [_view2.Decoration.widget(position, _placeGapCursor.toDOM, {
81
- key: "".concat(_selection.JSON_ID, "-").concat(side, "-").concat(layoutMode),
83
+ key: "".concat(_selection2.JSON_ID, "-").concat(side, "-").concat(layoutMode),
82
84
  // position === 0: if gap cursor at start of document, render it on the left side of the selection to enable pasting (otherwise Chrome doesn't pick up the paste event)
83
85
  side: layoutMode || position === 0 ? -1 : 0
84
86
  })]);
@@ -91,8 +93,8 @@ var plugin = new _safePlugin.SafePlugin({
91
93
  // Do not show GapCursor when there is a CellSection happening
92
94
  return null;
93
95
  }
94
- if ($anchor.pos === $head.pos && _selection.GapCursorSelection.valid($head)) {
95
- return new _selection.GapCursorSelection($head);
96
+ if ($anchor.pos === $head.pos && _selection2.GapCursorSelection.valid($head)) {
97
+ return new _selection2.GapCursorSelection($head);
96
98
  }
97
99
  return null;
98
100
  },
@@ -120,14 +122,14 @@ var plugin = new _safePlugin.SafePlugin({
120
122
  return false;
121
123
  }
122
124
  var mediaGapCursor = !$pos.nodeBefore ? $pos.before() : $pos.after();
123
- return (0, _selection.setGapCursorAtPos)(mediaGapCursor, side)(view.state, view.dispatch);
125
+ return (0, _actions.setGapCursorAtPos)(mediaGapCursor, side)(view.state, view.dispatch);
124
126
  }
125
127
  var docSize = view.state.doc.content.size;
126
128
  var nodeInside = posAtCoords.inside < 0 || posAtCoords.inside > docSize ? null : view.state.doc.nodeAt(posAtCoords.inside);
127
129
  if (nodeInside !== null && nodeInside !== void 0 && nodeInside.isAtom) {
128
130
  return false;
129
131
  }
130
- return (0, _selection.setGapCursorAtPos)(nodePos, side)(view.state, view.dispatch);
132
+ return (0, _actions.setGapCursorAtPos)(nodePos, side)(view.state, view.dispatch);
131
133
  },
132
134
  handleDOMEvents: {
133
135
  /**
@@ -139,9 +141,9 @@ var plugin = new _safePlugin.SafePlugin({
139
141
  // Ignored via go/ees005
140
142
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
141
143
  beforeinput: function beforeinput(view, event) {
142
- if (event.inputType === 'deleteContentBackward' && view.state.selection instanceof _selection.GapCursorSelection) {
144
+ if (event.inputType === 'deleteContentBackward' && view.state.selection instanceof _selection2.GapCursorSelection) {
143
145
  event.preventDefault();
144
- return (0, _actions.deleteNode)(_direction.Direction.BACKWARD)(view.state, view.dispatch);
146
+ return (0, _actions2.deleteNode)(_direction.Direction.BACKWARD)(view.state, view.dispatch);
145
147
  }
146
148
  return false;
147
149
  }
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.getPluginState = exports.createPluginState = exports.createCommand = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _utils = require("@atlaskit/editor-common/utils");
9
+ var _pluginStateFactory = require("@atlaskit/editor-common/utils/plugin-state-factory");
10
10
  var _state = require("@atlaskit/editor-prosemirror/state");
11
11
  var _view = require("@atlaskit/editor-prosemirror/view");
12
12
  var _cellSelection = require("@atlaskit/editor-tables/cell-selection");
13
13
  var _types = require("../types");
14
14
  var _reducer = require("./reducer");
15
- var _utils2 = require("./utils");
15
+ var _utils = require("./utils");
16
16
  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; }
17
17
  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; }
18
18
  var handleDocChanged = function handleDocChanged(tr, pluginState) {
19
19
  // in some collab edge cases mapping decorations could throw an error
20
20
  try {
21
- if (pluginState.decorationSet.find().length === 0 && (!tr.selectionSet || (0, _utils2.getDecorations)(tr).find().length === 0)) {
21
+ if (pluginState.decorationSet.find().length === 0 && (!tr.selectionSet || (0, _utils.getDecorations)(tr).find().length === 0)) {
22
22
  return pluginState;
23
23
  }
24
24
  var decorationSet = pluginState.decorationSet.map(tr.mapping, tr.doc);
@@ -33,14 +33,14 @@ var handleDocChanged = function handleDocChanged(tr, pluginState) {
33
33
  };
34
34
  var handleSelectionChanged = function handleSelectionChanged(tr, pluginState) {
35
35
  // Reset relative selection pos when user clicks to select a node
36
- if ((tr.selection instanceof _state.NodeSelection && (0, _utils2.isSelectableContainerNode)(tr.selection.node) || tr.selection instanceof _cellSelection.CellSelection) && !tr.getMeta(_types.selectionPluginKey)) {
36
+ if ((tr.selection instanceof _state.NodeSelection && (0, _utils.isSelectableContainerNode)(tr.selection.node) || tr.selection instanceof _cellSelection.CellSelection) && !tr.getMeta(_types.selectionPluginKey)) {
37
37
  return _objectSpread(_objectSpread({}, pluginState), {}, {
38
38
  selectionRelativeToNode: undefined
39
39
  });
40
40
  }
41
41
  return pluginState;
42
42
  };
43
- var dest = (0, _utils.pluginFactory)(_types.selectionPluginKey, _reducer.reducer, {
43
+ var dest = (0, _pluginStateFactory.pluginFactory)(_types.selectionPluginKey, _reducer.reducer, {
44
44
  onDocChanged: handleDocChanged,
45
45
  onSelectionChanged: handleSelectionChanged
46
46
  });
@@ -8,12 +8,13 @@ exports.isSelectionAtStartOfParentNode = exports.isSelectionAtEndOfParentNode =
8
8
  exports.shouldRecalcDecorations = shouldRecalcDecorations;
9
9
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
10
10
  var _selection = require("@atlaskit/editor-common/selection");
11
+ var _isIgnored = require("@atlaskit/editor-common/selection/is-ignored");
11
12
  var _utils = require("@atlaskit/editor-common/utils");
12
13
  var _nodeTypeUtils = require("@atlaskit/editor-common/utils/node-type-utils");
13
14
  var _state = require("@atlaskit/editor-prosemirror/state");
14
15
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
15
16
  var _view = require("@atlaskit/editor-prosemirror/view");
16
- var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
17
+ var _constants = require("@atlaskit/editor-shared-styles/constants");
17
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
19
  var _types = require("../types");
19
20
  var _hideCursorDecoration = require("./cursor/ui/hide-cursor-decoration");
@@ -25,7 +26,7 @@ var getDecorations = exports.getDecorations = function getDecorations(tr, manual
25
26
  }
26
27
  if (selection instanceof _state.NodeSelection) {
27
28
  decorations.push(_view.Decoration.node(selection.from, selection.to, {
28
- class: _editorSharedStyles.akEditorSelectedNodeClassName
29
+ class: _constants.akEditorSelectedNodeClassName
29
30
  }));
30
31
  return _view.DecorationSet.create(tr.doc, decorations);
31
32
  }
@@ -41,7 +42,7 @@ var getDecorations = exports.getDecorations = function getDecorations(tr, manual
41
42
  var node = _ref.node,
42
43
  pos = _ref.pos;
43
44
  return _view.Decoration.node(pos, pos + node.nodeSize, {
44
- class: _editorSharedStyles.akEditorSelectedNodeClassName
45
+ class: _constants.akEditorSelectedNodeClassName
45
46
  });
46
47
  });
47
48
  decorations.push.apply(decorations, (0, _toConsumableArray2.default)(selectionDecorations));
@@ -154,7 +155,7 @@ var findSelectableContainerParent = exports.findSelectableContainerParent = func
154
155
  var foundNodeThatSupportsGapCursor = false;
155
156
  var selectableNode = (0, _utils2.findParentNode)(function (node) {
156
157
  var isSelectable = isSelectableContainerNode(node);
157
- if (!isSelectable && !(0, _selection.isIgnored)(node)) {
158
+ if (!isSelectable && !(0, _isIgnored.isIgnored)(node)) {
158
159
  foundNodeThatSupportsGapCursor = true;
159
160
  }
160
161
  return isSelectable;
@@ -188,7 +189,7 @@ var findSelectableContainerBefore = exports.findSelectableContainerBefore = func
188
189
  pos: $selectionBefore.start(i) - 1
189
190
  };
190
191
  }
191
- if (i > $pos.depth + 1 && !(0, _selection.isIgnored)(node)) {
192
+ if (i > $pos.depth + 1 && !(0, _isIgnored.isIgnored)(node)) {
192
193
  return;
193
194
  }
194
195
  }
@@ -224,7 +225,7 @@ var findSelectableContainerAfter = exports.findSelectableContainerAfter = functi
224
225
  pos: $selectionAfter.start(i) - 1
225
226
  };
226
227
  }
227
- if (i > $pos.depth + 1 && !(0, _selection.isIgnored)(node)) {
228
+ if (i > $pos.depth + 1 && !(0, _isIgnored.isIgnored)(node)) {
228
229
  return;
229
230
  }
230
231
  }
@@ -237,7 +238,7 @@ var findSelectableContainerAfter = exports.findSelectableContainerAfter = functi
237
238
  */
238
239
  var findFirstChildNodeToSelect = exports.findFirstChildNodeToSelect = function findFirstChildNodeToSelect(parent) {
239
240
  return (0, _utils2.flatten)(parent).find(function (child) {
240
- return isSelectableChildNode(child.node) || !(0, _selection.isIgnored)(child.node);
241
+ return isSelectableChildNode(child.node) || !(0, _isIgnored.isIgnored)(child.node);
241
242
  });
242
243
  };
243
244
 
@@ -248,7 +249,7 @@ var findFirstChildNodeToSelect = exports.findFirstChildNodeToSelect = function f
248
249
  var findLastChildNodeToSelect = exports.findLastChildNodeToSelect = function findLastChildNodeToSelect(parent) {
249
250
  var child;
250
251
  parent.descendants(function (node, pos) {
251
- if (isSelectableChildNode(node) || !(0, _selection.isIgnored)(node)) {
252
+ if (isSelectableChildNode(node) || !(0, _isIgnored.isIgnored)(node)) {
252
253
  child = {
253
254
  node: node,
254
255
  pos: pos
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "RelativeSelectionPos", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _selection.RelativeSelectionPos;
9
+ return _types.RelativeSelectionPos;
10
10
  }
11
11
  });
12
12
  exports.selectionPluginKey = exports.SelectionDirection = void 0;
13
- var _selection = require("@atlaskit/editor-common/selection");
13
+ var _types = require("@atlaskit/editor-common/selection/types");
14
14
  var _state = require("@atlaskit/editor-prosemirror/state");
15
15
  /* eslint-disable @atlaskit/editor/no-re-export */
16
16
  // Entry file in package.json
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
2
 
3
- import { isIgnored as isIgnoredByGapCursor, RelativeSelectionPos, GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
3
+ import { Side } from '@atlaskit/editor-common/selection';
4
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
5
+ import { isIgnored as isIgnoredByGapCursor } from '@atlaskit/editor-common/selection/is-ignored';
6
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
4
7
  import { isEmptyParagraph, isNodeEmpty } from '@atlaskit/editor-common/utils';
5
8
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
9
  import { SelectionDirection, selectionPluginKey } from '../types';
@@ -1,6 +1,8 @@
1
- import { atTheBeginningOfDoc, atTheEndOfDoc, GapCursorSelection, Side, isValidTargetNode } from '@atlaskit/editor-common/selection';
1
+ import { atTheBeginningOfDoc, atTheEndOfDoc, Side } from '@atlaskit/editor-common/selection';
2
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
+ import { isValidTargetNode } from '@atlaskit/editor-common/selection/is-valid-target-node';
2
4
  import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
3
- import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
5
+ import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
4
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
7
  import { findDomRefAtPos, findPositionOfNodeBefore, removeNodeBefore } from '@atlaskit/editor-prosemirror/utils';
6
8
  import { gapCursorPluginKey } from '../gap-cursor-plugin-key';
@@ -1,6 +1,7 @@
1
- import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
1
+ import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single/constants';
2
2
  import { Side } from '@atlaskit/editor-common/selection';
3
- import { TableSharedCssClassName, UnsupportedSharedCssClassName } from '@atlaskit/editor-common/styles';
3
+ import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
4
+ import { UnsupportedSharedCssClassName } from '@atlaskit/editor-common/styles/unsupported-content';
4
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
5
6
  export const isLeftCursor = side => side === Side.LEFT;
6
7
  export function getMediaNearPos(doc, $pos, schema, dir = -1) {
@@ -1,5 +1,5 @@
1
1
  import { backspace, bindKeymapWithCommand, deleteKey, insertNewLine, moveDown, moveLeft, moveRight, moveUp } from '@atlaskit/editor-common/keymaps';
2
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
2
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
3
  import { createParagraphNear } from '@atlaskit/editor-prosemirror/commands';
4
4
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
5
5
  import { arrow, deleteNode } from './gap-cursor/actions';
@@ -1,5 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { GapCursorSelection, Side as GapCursorSide, JSON_ID, setGapCursorAtPos, Side } from '@atlaskit/editor-common/selection';
2
+ import { Side as GapCursorSide, Side } from '@atlaskit/editor-common/selection';
3
+ import { setGapCursorAtPos } from '@atlaskit/editor-common/selection/actions';
4
+ import { GapCursorSelection, JSON_ID } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
5
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
6
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
@@ -1,4 +1,4 @@
1
- import { pluginFactory } from '@atlaskit/editor-common/utils';
1
+ import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
2
2
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
3
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
@@ -1,10 +1,11 @@
1
- import { isIgnored as isIgnoredByGapCursor, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
1
+ import { isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
2
+ import { isIgnored as isIgnoredByGapCursor } from '@atlaskit/editor-common/selection/is-ignored';
2
3
  import { isEmptyParagraph, isListItemNode } from '@atlaskit/editor-common/utils';
3
4
  import { getBaseNodeTypeName } from '@atlaskit/editor-common/utils/node-type-utils';
4
5
  import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
6
  import { findParentNode, findParentNodeClosestToPos, flatten, hasParentNode } from '@atlaskit/editor-prosemirror/utils';
6
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
- import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
8
+ import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
8
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
10
  import { selectionPluginKey } from '../types';
10
11
  import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  // Entry file in package.json
3
3
 
4
- import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
4
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  export const selectionPluginKey = new PluginKey('selection');
7
7
  export { RelativeSelectionPos };
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
2
 
3
- import { isIgnored as isIgnoredByGapCursor, RelativeSelectionPos, GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
3
+ import { Side } from '@atlaskit/editor-common/selection';
4
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
5
+ import { isIgnored as isIgnoredByGapCursor } from '@atlaskit/editor-common/selection/is-ignored';
6
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
4
7
  import { isEmptyParagraph, isNodeEmpty } from '@atlaskit/editor-common/utils';
5
8
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
9
  import { SelectionDirection, selectionPluginKey } from '../types';
@@ -1,6 +1,8 @@
1
- import { atTheBeginningOfDoc, atTheEndOfDoc, GapCursorSelection, Side, isValidTargetNode } from '@atlaskit/editor-common/selection';
1
+ import { atTheBeginningOfDoc, atTheEndOfDoc, Side } from '@atlaskit/editor-common/selection';
2
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
+ import { isValidTargetNode } from '@atlaskit/editor-common/selection/is-valid-target-node';
2
4
  import { isMediaNode, isNodeBeforeMediaNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
3
- import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace';
5
+ import { ZERO_WIDTH_SPACE } from '@atlaskit/editor-common/whitespace/whitespace';
4
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
7
  import { findDomRefAtPos, findPositionOfNodeBefore, removeNodeBefore } from '@atlaskit/editor-prosemirror/utils';
6
8
  import { gapCursorPluginKey } from '../gap-cursor-plugin-key';
@@ -1,6 +1,7 @@
1
- import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single';
1
+ import { CAPTION_PLACEHOLDER_ID } from '@atlaskit/editor-common/media-single/constants';
2
2
  import { Side } from '@atlaskit/editor-common/selection';
3
- import { TableSharedCssClassName, UnsupportedSharedCssClassName } from '@atlaskit/editor-common/styles';
3
+ import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
4
+ import { UnsupportedSharedCssClassName } from '@atlaskit/editor-common/styles/unsupported-content';
4
5
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
5
6
  export var isLeftCursor = function isLeftCursor(side) {
6
7
  return side === Side.LEFT;
@@ -1,5 +1,5 @@
1
1
  import { backspace, bindKeymapWithCommand, deleteKey, insertNewLine, moveDown, moveLeft, moveRight, moveUp } from '@atlaskit/editor-common/keymaps';
2
- import { GapCursorSelection } from '@atlaskit/editor-common/selection';
2
+ import { GapCursorSelection } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
3
  import { createParagraphNear } from '@atlaskit/editor-prosemirror/commands';
4
4
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
5
5
  import { arrow, deleteNode } from './gap-cursor/actions';
@@ -1,5 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { GapCursorSelection, Side as GapCursorSide, JSON_ID, setGapCursorAtPos, Side } from '@atlaskit/editor-common/selection';
2
+ import { Side as GapCursorSide, Side } from '@atlaskit/editor-common/selection';
3
+ import { setGapCursorAtPos } from '@atlaskit/editor-common/selection/actions';
4
+ import { GapCursorSelection, JSON_ID } from '@atlaskit/editor-common/selection/gap-cursor/selection';
3
5
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
4
6
  import { findPositionOfNodeBefore } from '@atlaskit/editor-prosemirror/utils';
5
7
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
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
- import { pluginFactory } from '@atlaskit/editor-common/utils';
4
+ import { pluginFactory } from '@atlaskit/editor-common/utils/plugin-state-factory';
5
5
  import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
6
6
  import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
7
  import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
@@ -1,11 +1,12 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
- import { isIgnored as isIgnoredByGapCursor, isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
2
+ import { isSelectionAtStartOfNode } from '@atlaskit/editor-common/selection';
3
+ import { isIgnored as isIgnoredByGapCursor } from '@atlaskit/editor-common/selection/is-ignored';
3
4
  import { isEmptyParagraph, isListItemNode } from '@atlaskit/editor-common/utils';
4
5
  import { getBaseNodeTypeName } from '@atlaskit/editor-common/utils/node-type-utils';
5
6
  import { AllSelection, NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
7
  import { findParentNode, findParentNodeClosestToPos, flatten, hasParentNode } from '@atlaskit/editor-prosemirror/utils';
7
8
  import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
8
- import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
9
+ import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles/constants';
9
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
11
  import { selectionPluginKey } from '../types';
11
12
  import { createHideCursorDecoration } from './cursor/ui/hide-cursor-decoration';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
2
  // Entry file in package.json
3
3
 
4
- import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
4
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  export var selectionPluginKey = new PluginKey('selection');
7
7
  export { RelativeSelectionPos };
@@ -1,4 +1,4 @@
1
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
1
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
2
2
  import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
3
3
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { SelectionPlugin } from '../selectionPluginType';
@@ -1,4 +1,4 @@
1
- import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
1
+ import type { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
2
2
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { DecorationSet } from '@atlaskit/editor-prosemirror/view';
4
4
  export declare enum SelectionActionTypes {
@@ -1,5 +1,6 @@
1
- import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
2
- import type { Command, EditorCommandWithMetadata } from '@atlaskit/editor-common/types';
1
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
2
+ import type { Command } from '@atlaskit/editor-common/types/command';
3
+ import type { EditorCommandWithMetadata } from '@atlaskit/editor-common/types/editor-command';
3
4
  import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
4
5
  import { Selection } from '@atlaskit/editor-prosemirror/state';
5
6
  export declare const selectNearNode: EditorCommandWithMetadata;
@@ -1,4 +1,4 @@
1
- import type { Command } from '@atlaskit/editor-common/types';
1
+ import type { Command } from '@atlaskit/editor-common/types/command';
2
2
  import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
4
4
  import { Direction } from './direction';
@@ -1,6 +1,6 @@
1
1
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
2
- import type { SelectionPluginState } from '@atlaskit/editor-common/selection';
3
- import type { Command } from '@atlaskit/editor-common/types';
2
+ import type { SelectionPluginState } from '@atlaskit/editor-common/selection/types';
3
+ import type { Command } from '@atlaskit/editor-common/types/command';
4
4
  import type { EditorState, SafeStateField, Transaction } from '@atlaskit/editor-prosemirror/state';
5
5
  import type { SelectionAction } from './actions';
6
6
  export declare const createCommand: <A = SelectionAction>(action: A | ((state: Readonly<EditorState>) => false | A), transform?: (tr: Transaction, state: EditorState) => Transaction) => Command;
@@ -1,3 +1,3 @@
1
- import type { SelectionPluginState } from '@atlaskit/editor-common/selection';
1
+ import type { SelectionPluginState } from '@atlaskit/editor-common/selection/types';
2
2
  import type { SelectionAction } from './actions';
3
3
  export declare function reducer(pluginState: SelectionPluginState, action: SelectionAction): SelectionPluginState;
@@ -1,8 +1,8 @@
1
- import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
1
+ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics/types/dispatch-analytics-event';
2
2
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
4
- import type { SelectionPluginState } from '@atlaskit/editor-common/selection';
5
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
+ import type { SelectionPluginState } from '@atlaskit/editor-common/selection/types';
5
+ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types/next-editor-plugin';
6
6
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { SelectionPlugin } from '../selectionPluginType';
8
8
  import type { SelectionPluginOptions } from '../types';
@@ -1,6 +1,7 @@
1
- import type { SelectionSharedState } from '@atlaskit/editor-common/selection';
2
- import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction';
1
+ import type { SelectionSharedState } from '@atlaskit/editor-common/selection/types';
2
+ import type { EditorCommand } from '@atlaskit/editor-common/types/editor-command';
3
+ import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types/next-editor-plugin';
4
+ import type { InteractionPlugin } from '@atlaskit/editor-plugin-interaction/interaction-plugin-type';
4
5
  import type { Selection } from '@atlaskit/editor-prosemirror/state';
5
6
  import type { EditorSelectionAPI, SelectionPluginOptions } from './types';
6
7
  export type SelectionPlugin = NextEditorPlugin<'selection', {
@@ -1,6 +1,6 @@
1
- import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
1
+ import { RelativeSelectionPos } from '@atlaskit/editor-common/selection/types';
2
2
  export type { SelectionPluginState } from '@atlaskit/editor-common/selection';
3
- import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
3
+ import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types/selection';
4
4
  import type { JSONNode } from '@atlaskit/editor-json-transformer/types';
5
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection",
3
- "version": "26.0.4",
3
+ "version": "26.0.5",
4
4
  "description": "Selection plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -24,7 +24,7 @@
24
24
  "@atlaskit/editor-prosemirror": "^9.0.0",
25
25
  "@atlaskit/editor-shared-styles": "^4.4.0",
26
26
  "@atlaskit/editor-tables": "^3.2.0",
27
- "@atlaskit/tmp-editor-statsig": "^231.0.0",
27
+ "@atlaskit/tmp-editor-statsig": "^232.0.0",
28
28
  "@atlaskit/tokens": "^20.4.0",
29
29
  "@babel/runtime": "^7.0.0"
30
30
  },