@atlaskit/editor-plugin-expand 2.10.7 → 2.10.9

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 (40) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/legacyExpand/commands.js +3 -3
  3. package/dist/cjs/legacyExpand/nodeviews/index.js +1 -2
  4. package/dist/cjs/legacyExpand/plugin.js +0 -7
  5. package/dist/cjs/legacyExpand/pm-plugins/keymap.js +6 -6
  6. package/dist/cjs/legacyExpand/pm-plugins/main.js +4 -4
  7. package/dist/cjs/legacyExpand/ui/ExpandIconButton.js +5 -7
  8. package/dist/cjs/singlePlayerExpand/commands.js +4 -0
  9. package/dist/cjs/singlePlayerExpand/node-views/index.js +1 -2
  10. package/dist/cjs/singlePlayerExpand/pm-plugins/main.js +3 -6
  11. package/dist/cjs/singlePlayerExpand/utils.js +0 -31
  12. package/dist/es2019/index.js +3 -0
  13. package/dist/es2019/legacyExpand/commands.js +1 -1
  14. package/dist/es2019/legacyExpand/plugin.js +0 -1
  15. package/dist/es2019/legacyExpand/pm-plugins/keymap.js +1 -1
  16. package/dist/es2019/legacyExpand/pm-plugins/main.js +1 -1
  17. package/dist/es2019/singlePlayerExpand/commands.js +4 -0
  18. package/dist/es2019/singlePlayerExpand/pm-plugins/main.js +1 -4
  19. package/dist/es2019/singlePlayerExpand/utils.js +0 -1
  20. package/dist/esm/index.js +3 -0
  21. package/dist/esm/legacyExpand/commands.js +1 -1
  22. package/dist/esm/legacyExpand/nodeviews/index.js +1 -2
  23. package/dist/esm/legacyExpand/plugin.js +0 -1
  24. package/dist/esm/legacyExpand/pm-plugins/keymap.js +1 -1
  25. package/dist/esm/legacyExpand/pm-plugins/main.js +1 -1
  26. package/dist/esm/legacyExpand/ui/ExpandIconButton.js +5 -7
  27. package/dist/esm/singlePlayerExpand/commands.js +4 -0
  28. package/dist/esm/singlePlayerExpand/node-views/index.js +1 -2
  29. package/dist/esm/singlePlayerExpand/pm-plugins/main.js +1 -4
  30. package/dist/esm/singlePlayerExpand/utils.js +0 -1
  31. package/dist/types/legacyExpand/plugin.d.ts +0 -1
  32. package/dist/types/singlePlayerExpand/utils.d.ts +0 -1
  33. package/dist/types-ts4.5/legacyExpand/plugin.d.ts +0 -1
  34. package/dist/types-ts4.5/singlePlayerExpand/utils.d.ts +0 -1
  35. package/package.json +8 -7
  36. package/dist/cjs/legacyExpand/utils.js +0 -36
  37. package/dist/es2019/legacyExpand/utils.js +0 -1
  38. package/dist/esm/legacyExpand/utils.js +0 -1
  39. package/dist/types/legacyExpand/utils.d.ts +0 -1
  40. package/dist/types-ts4.5/legacyExpand/utils.d.ts +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 2.10.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#180080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180080)
8
+ [`2c21ba8914848`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/2c21ba8914848) -
9
+ [ux] ED-26013 fix expand on auto scoll for long node
10
+
11
+ ## 2.10.8
12
+
13
+ ### Patch Changes
14
+
15
+ - [#178005](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/178005)
16
+ [`3a71ff9cf31d4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3a71ff9cf31d4) -
17
+ ED-25723 removing feature flag and use exisiting implementation for handleScrollToSelection for
18
+ singlePlayerExapnd
19
+
3
20
  ## 2.10.7
4
21
 
5
22
  ### Patch Changes
@@ -10,6 +10,7 @@ var _steps = require("@atlaskit/adf-schema/steps");
10
10
  var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _selection = require("@atlaskit/editor-common/selection");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
+ var _transforms = require("@atlaskit/editor-common/transforms");
13
14
  var _utils = require("@atlaskit/editor-common/utils");
14
15
  var _state2 = require("@atlaskit/editor-prosemirror/state");
15
16
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
@@ -18,7 +19,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
19
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
20
  var _utils4 = require("../utils");
20
21
  var _pluginFactory = require("./pm-plugins/plugin-factory");
21
- var _utils5 = require("./utils");
22
22
  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; }
23
23
  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; }
24
24
  var setExpandRef = exports.setExpandRef = function setExpandRef(ref) {
@@ -65,7 +65,7 @@ var deleteExpandAtPos = exports.deleteExpandAtPos = function deleteExpandAtPos(e
65
65
  };
66
66
  var deleteExpand = exports.deleteExpand = function deleteExpand(editorAnalyticsAPI) {
67
67
  return function (state, dispatch) {
68
- var expandNode = (0, _utils5.findExpand)(state);
68
+ var expandNode = (0, _transforms.findExpand)(state);
69
69
  if (!expandNode) {
70
70
  return false;
71
71
  }
@@ -118,7 +118,7 @@ var toggleExpandExpanded = exports.toggleExpandExpanded = function toggleExpandE
118
118
  // If we're going to collapse the expand and our cursor is currently inside
119
119
  // Move to a right gap cursor, if the toolbar is interacted (or an API),
120
120
  // it will insert below rather than inside (which will be invisible).
121
- if (__livePage && (0, _platformFeatureFlags.fg)('platform.editor.live-pages-expand-divergence') ? isExpandedNext === true : isExpandedNext === false && (0, _utils5.findExpand)(state)) {
121
+ if (__livePage && (0, _platformFeatureFlags.fg)('platform.editor.live-pages-expand-divergence') ? isExpandedNext === true : isExpandedNext === false && (0, _transforms.findExpand)(state)) {
122
122
  tr.setSelection(new _selection.GapCursorSelection(tr.doc.resolve(pos + node.nodeSize), _selection.Side.RIGHT));
123
123
  }
124
124
 
@@ -430,7 +430,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
430
430
  this.renderIcon(this.intl);
431
431
  this.initHandlers();
432
432
  }
433
- (0, _createClass2.default)(ExpandNodeView, [{
433
+ return (0, _createClass2.default)(ExpandNodeView, [{
434
434
  key: "initHandlers",
435
435
  value: function initHandlers() {
436
436
  var _this$api6,
@@ -596,7 +596,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
596
596
  this.cleanUpEditorDisabledOnChange = undefined;
597
597
  }
598
598
  }]);
599
- return ExpandNodeView;
600
599
  }();
601
600
  function _default(_ref2) {
602
601
  var getIntl = _ref2.getIntl,
@@ -5,12 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.expandPlugin = void 0;
8
- Object.defineProperty(exports, "pluginKey", {
9
- enumerable: true,
10
- get: function get() {
11
- return _pluginFactory.pluginKey;
12
- }
13
- });
14
8
  var _react = _interopRequireDefault(require("react"));
15
9
  var _adfSchema = require("@atlaskit/adf-schema");
16
10
  var _analytics = require("@atlaskit/editor-common/analytics");
@@ -22,7 +16,6 @@ var _commands = require("./commands");
22
16
  var _keymap = require("./pm-plugins/keymap");
23
17
  var _main = require("./pm-plugins/main");
24
18
  var _toolbar = require("./toolbar");
25
- var _pluginFactory = require("./pm-plugins/plugin-factory");
26
19
  var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
27
20
  var _api$featureFlags, _api$analytics, _api$analytics2;
28
21
  var _ref$config = _ref.config,
@@ -6,13 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.expandKeymap = expandKeymap;
7
7
  var _keymaps = require("@atlaskit/editor-common/keymaps");
8
8
  var _selection = require("@atlaskit/editor-common/selection");
9
+ var _transforms = require("@atlaskit/editor-common/transforms");
9
10
  var _utils = require("@atlaskit/editor-common/utils");
10
11
  var _keymap = require("@atlaskit/editor-prosemirror/keymap");
11
12
  var _state = require("@atlaskit/editor-prosemirror/state");
12
13
  var _utils2 = require("@atlaskit/editor-tables/utils");
13
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _commands = require("../commands");
15
- var _utils3 = require("../utils");
16
16
  var isExpandNode = function isExpandNode(node) {
17
17
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
18
18
  };
@@ -62,7 +62,7 @@ function expandKeymap(api, options) {
62
62
 
63
63
  // if the text selection is inside an expand
64
64
  else if (state.selection instanceof _state.TextSelection && !(0, _utils2.isInTable)(state)) {
65
- var _expand = (0, _utils3.findExpand)(state);
65
+ var _expand = (0, _transforms.findExpand)(state);
66
66
  if (_expand) {
67
67
  var expandNode = editorView.nodeDOM(_expand.pos);
68
68
  if (expandNode) {
@@ -88,7 +88,7 @@ function expandKeymap(api, options) {
88
88
  }
89
89
  var $from = state.selection.$from;
90
90
  if (editorView.endOfTextblock('up')) {
91
- var expand = (0, _utils3.findExpand)(state);
91
+ var expand = (0, _transforms.findExpand)(state);
92
92
 
93
93
  // Moving UP in a table should move the cursor to the row above
94
94
  // however when an expand is in a table cell to the left of the
@@ -103,7 +103,7 @@ function expandKeymap(api, options) {
103
103
  return (0, _commands.focusTitle)(expand.start)(state, dispatch, editorView);
104
104
  }
105
105
  var sel = _state.Selection.findFrom(state.doc.resolve(prevCursorPos), -1);
106
- var expandBefore = (0, _utils3.findExpand)(state, sel);
106
+ var expandBefore = (0, _transforms.findExpand)(state, sel);
107
107
  if (sel && expandBefore) {
108
108
  // moving cursor from outside of an expand to the title when it is collapsed
109
109
  if (
@@ -156,11 +156,11 @@ function expandKeymap(api, options) {
156
156
  var _state$schema$nodes2 = state.schema.nodes,
157
157
  expand = _state$schema$nodes2.expand,
158
158
  nestedExpand = _state$schema$nodes2.nestedExpand;
159
- var expandNode = (0, _utils3.findExpand)(state);
159
+ var expandNode = (0, _transforms.findExpand)(state);
160
160
  if (!expandNode) {
161
161
  // @see ED-7977
162
162
  var sel = _state.Selection.findFrom(state.doc.resolve(Math.max(selection.$from.pos - 1, 0)), -1);
163
- var expandBefore = (0, _utils3.findExpand)(state, sel);
163
+ var expandBefore = (0, _transforms.findExpand)(state, sel);
164
164
  if (expandBefore && (expandBefore.node.type === expand || expandBefore.node.type === nestedExpand) && (
165
165
  // eslint-disable-next-line @atlaskit/platform/no-preconditioning
166
166
  (0, _platformFeatureFlags.fg)('platform.editor.live-pages-expand-divergence') && options.__livePage ? expandBefore.node.attrs.__expanded : !expandBefore.node.attrs.__expanded)) {
@@ -10,12 +10,12 @@ exports.handleExpandDrag = handleExpandDrag;
10
10
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
11
11
  var _selection = require("@atlaskit/editor-common/selection");
12
12
  var _styles = require("@atlaskit/editor-common/styles");
13
+ var _transforms = require("@atlaskit/editor-common/transforms");
13
14
  var _utils = require("@atlaskit/editor-prosemirror/utils");
14
15
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
17
  var _commands = require("../commands");
17
18
  var _nodeviews = _interopRequireDefault(require("../nodeviews"));
18
- var _utils2 = require("../utils");
19
19
  var _pluginFactory = require("./plugin-factory");
20
20
  function containsClass(element, className) {
21
21
  var _element$classList;
@@ -86,7 +86,7 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, getInt
86
86
  update: function update(view) {
87
87
  var state = view.state,
88
88
  dispatch = view.dispatch;
89
- var node = (0, _utils2.findExpand)(state);
89
+ var node = (0, _transforms.findExpand)(state);
90
90
  if (node) {
91
91
  var expandRef = (0, _utils.findDomRefAtPos)(node.pos, domAtPos);
92
92
  if ((0, _pluginFactory.getPluginState)(state).expandRef !== expandRef) {
@@ -145,9 +145,9 @@ function handleExpandDrag(view, event, slice) {
145
145
  }
146
146
  var updatedSlice = slice;
147
147
  if (sliceContainsExpand && isNodeAtDropPosInsideNodesWithNestedExpandSupport) {
148
- updatedSlice = (0, _utils2.transformSliceExpandToNestedExpand)(slice);
148
+ updatedSlice = (0, _transforms.transformSliceExpandToNestedExpand)(slice);
149
149
  } else if (sliceContainsNestedExpand && !isNodeAtDropPosInsideNodesWithNestedExpandSupport && !isNodeBeingDroppedInsideNestedExpand) {
150
- updatedSlice = (0, _utils2.transformSliceNestedExpandToExpand)(slice, state.schema);
150
+ updatedSlice = (0, _transforms.transformSliceNestedExpandToExpand)(slice, state.schema);
151
151
  }
152
152
  if (!updatedSlice || updatedSlice.eq(slice)) {
153
153
  return false;
@@ -11,9 +11,9 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
11
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
12
12
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
13
  var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
14
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
15
14
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
16
15
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
17
  var _react = _interopRequireWildcard(require("react"));
18
18
  var _react2 = require("@emotion/react");
19
19
  var _customThemeButton = _interopRequireDefault(require("@atlaskit/button/custom-theme-button"));
@@ -28,20 +28,19 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
28
28
  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; }
29
29
  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; }
30
30
  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; }
31
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = (0, _getPrototypeOf2.default)(t); if (r) { var s = (0, _getPrototypeOf2.default)(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return (0, _possibleConstructorReturn2.default)(this, e); }; }
31
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
32
32
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /**
33
33
  * @jsxRuntime classic
34
34
  * @jsx jsx
35
35
  */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
36
36
  var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
37
37
  return /*#__PURE__*/function (_React$Component) {
38
- (0, _inherits2.default)(WithSortableColumn, _React$Component);
39
- var _super = _createSuper(WithSortableColumn);
40
38
  function WithSortableColumn(props) {
41
39
  (0, _classCallCheck2.default)(this, WithSortableColumn);
42
- return _super.call(this, props);
40
+ return _callSuper(this, WithSortableColumn, [props]);
43
41
  }
44
- (0, _createClass2.default)(WithSortableColumn, [{
42
+ (0, _inherits2.default)(WithSortableColumn, _React$Component);
43
+ return (0, _createClass2.default)(WithSortableColumn, [{
45
44
  key: "render",
46
45
  value: function render() {
47
46
  var label = this.props.label;
@@ -52,7 +51,6 @@ var withTooltip = exports.withTooltip = function withTooltip(WrapperComponent) {
52
51
  }, (0, _react2.jsx)(WrapperComponent, this.props));
53
52
  }
54
53
  }]);
55
- return WithSortableColumn;
56
54
  }(_react.default.Component);
57
55
  };
58
56
  var CustomButton = exports.CustomButton = function CustomButton(props) {
@@ -16,6 +16,7 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _state2 = require("@atlaskit/editor-prosemirror/state");
17
17
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
18
18
  var _utils3 = require("@atlaskit/editor-tables/utils");
19
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
20
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
20
21
  var _utils4 = require("../utils");
21
22
  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; }
@@ -168,6 +169,9 @@ var toggleExpandExpanded = exports.toggleExpandExpanded = function toggleExpandE
168
169
  },
169
170
  eventType: _analytics.EVENT_TYPE.TRACK
170
171
  };
172
+ if ((0, _platformFeatureFlags.fg)('platform_editor_long_node_expand')) {
173
+ tr.setMeta('scrollIntoView', false);
174
+ }
171
175
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
172
176
  dispatch(tr);
173
177
  }
@@ -439,7 +439,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
439
439
  });
440
440
  }
441
441
  }
442
- (0, _createClass2.default)(ExpandNodeView, [{
442
+ return (0, _createClass2.default)(ExpandNodeView, [{
443
443
  key: "stopEvent",
444
444
  value: function stopEvent(event) {
445
445
  var target = event.target;
@@ -533,7 +533,6 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
533
533
  }
534
534
  }
535
535
  }]);
536
- return ExpandNodeView;
537
536
  }();
538
537
  function _default(_ref) {
539
538
  var getIntl = _ref.getIntl,
@@ -11,11 +11,11 @@ exports.pluginKey = void 0;
11
11
  var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
12
12
  var _selection = require("@atlaskit/editor-common/selection");
13
13
  var _styles = require("@atlaskit/editor-common/styles");
14
+ var _transforms = require("@atlaskit/editor-common/transforms");
14
15
  var _state = require("@atlaskit/editor-prosemirror/state");
15
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
18
  var _nodeViews = _interopRequireDefault(require("../node-views"));
18
- var _utils = require("../utils");
19
19
  var pluginKey = exports.pluginKey = new _state.PluginKey('expandPlugin');
20
20
  function containsClass(element, className) {
21
21
  var _element$classList;
@@ -57,9 +57,6 @@ var createPlugin = exports.createPlugin = function createPlugin(dispatch, getInt
57
57
  return containsClass(event.target, _styles.expandClassNames.titleContainer);
58
58
  },
59
59
  handleScrollToSelection: function handleScrollToSelection() {
60
- if ((0, _platformFeatureFlags.fg)('platform_editor_expand_auto_scroll')) {
61
- return true;
62
- }
63
60
  return containsClass(document.activeElement, _styles.expandClassNames.titleInput);
64
61
  },
65
62
  handleClickOn: (0, _selection.createSelectionClickHandler)(['expand', 'nestedExpand'], function (target) {
@@ -130,9 +127,9 @@ function handleExpandDrag(view, event, slice) {
130
127
  }
131
128
  var updatedSlice = slice;
132
129
  if (sliceContainsExpand && isNodeAtDropPosInsideNodesWithNestedExpandSupport) {
133
- updatedSlice = (0, _utils.transformSliceExpandToNestedExpand)(slice);
130
+ updatedSlice = (0, _transforms.transformSliceExpandToNestedExpand)(slice);
134
131
  } else if (sliceContainsNestedExpand && !isNodeAtDropPosInsideNodesWithNestedExpandSupport && !isNodeBeingDroppedInsideNestedExpand) {
135
- updatedSlice = (0, _utils.transformSliceNestedExpandToExpand)(slice, state.schema);
132
+ updatedSlice = (0, _transforms.transformSliceNestedExpandToExpand)(slice, state.schema);
136
133
  }
137
134
  if (!updatedSlice || updatedSlice.eq(slice)) {
138
135
  return false;
@@ -3,39 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "findExpand", {
7
- enumerable: true,
8
- get: function get() {
9
- return _transforms.findExpand;
10
- }
11
- });
12
6
  exports.findParentExpandNode = void 0;
13
- Object.defineProperty(exports, "transformSliceExpandToNestedExpand", {
14
- enumerable: true,
15
- get: function get() {
16
- return _transforms.transformSliceExpandToNestedExpand;
17
- }
18
- });
19
- Object.defineProperty(exports, "transformSliceNestedExpandToExpand", {
20
- enumerable: true,
21
- get: function get() {
22
- return _transforms.transformSliceNestedExpandToExpand;
23
- }
24
- });
25
- Object.defineProperty(exports, "transformSliceToRemoveOpenExpand", {
26
- enumerable: true,
27
- get: function get() {
28
- return _transforms.transformSliceToRemoveOpenExpand;
29
- }
30
- });
31
- Object.defineProperty(exports, "transformSliceToRemoveOpenNestedExpand", {
32
- enumerable: true,
33
- get: function get() {
34
- return _transforms.transformSliceToRemoveOpenNestedExpand;
35
- }
36
- });
37
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
38
- var _transforms = require("@atlaskit/editor-common/transforms");
39
8
  var findParentExpandNode = exports.findParentExpandNode = function findParentExpandNode(state) {
40
9
  return (0, _utils.findParentNodeOfType)(state.schema.nodes.nestedExpand)(state.selection) || (0, _utils.findParentNodeOfType)(state.schema.nodes.expand)(state.selection);
41
10
  };
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { expandPlugin } from './plugin';
@@ -2,6 +2,7 @@ import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
2
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
3
3
  import { GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
4
4
  import { expandClassNames } from '@atlaskit/editor-common/styles';
5
+ import { findExpand } from '@atlaskit/editor-common/transforms';
5
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
6
7
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
7
8
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
@@ -10,7 +11,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
12
  import { isNestedInExpand } from '../utils';
12
13
  import { createCommand } from './pm-plugins/plugin-factory';
13
- import { findExpand } from './utils';
14
14
  export const setExpandRef = ref => createCommand({
15
15
  type: 'SET_EXPAND_REF',
16
16
  data: {
@@ -9,7 +9,6 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './c
9
9
  import { expandKeymap } from './pm-plugins/keymap';
10
10
  import { createPlugin } from './pm-plugins/main';
11
11
  import { getToolbarConfig } from './toolbar';
12
- export { pluginKey } from './pm-plugins/plugin-factory';
13
12
  export const expandPlugin = ({
14
13
  config: options = {},
15
14
  api
@@ -1,12 +1,12 @@
1
1
  import { backspace, bindKeymapWithCommand, moveDown, moveLeft, moveRight, moveUp, tab } from '@atlaskit/editor-common/keymaps';
2
2
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
3
+ import { findExpand } from '@atlaskit/editor-common/transforms';
3
4
  import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
4
5
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
5
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
7
  import { isInTable } from '@atlaskit/editor-tables/utils';
7
8
  import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
9
- import { findExpand } from '../utils';
10
10
  const isExpandNode = node => {
11
11
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
12
12
  };
@@ -1,12 +1,12 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
3
3
  import { expandClassNames } from '@atlaskit/editor-common/styles';
4
+ import { findExpand, transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
4
5
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
5
6
  import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
8
  import { setExpandRef } from '../commands';
8
9
  import ExpandNodeView from '../nodeviews';
9
- import { findExpand, transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '../utils';
10
10
  import { createPluginState, getPluginState, pluginKey } from './plugin-factory';
11
11
  export function containsClass(element, className) {
12
12
  var _element$classList;
@@ -8,6 +8,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
9
9
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
10
10
  import { findTable } from '@atlaskit/editor-tables/utils';
11
+ import { fg } from '@atlaskit/platform-feature-flags';
11
12
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
12
13
  import { isNestedInExpand } from '../utils';
13
14
 
@@ -148,6 +149,9 @@ export const toggleExpandExpanded = ({
148
149
  },
149
150
  eventType: EVENT_TYPE.TRACK
150
151
  };
152
+ if (fg('platform_editor_long_node_expand')) {
153
+ tr.setMeta('scrollIntoView', false);
154
+ }
151
155
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
152
156
  dispatch(tr);
153
157
  }
@@ -1,11 +1,11 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
3
3
  import { expandClassNames } from '@atlaskit/editor-common/styles';
4
+ import { transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
4
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
6
  import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
8
  import ExpandNodeView from '../node-views';
8
- import { transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '../utils';
9
9
  export const pluginKey = new PluginKey('expandPlugin');
10
10
  export function containsClass(element, className) {
11
11
  var _element$classList;
@@ -41,9 +41,6 @@ export const createPlugin = (dispatch, getIntl, appearance = 'full-page', useLon
41
41
  return containsClass(event.target, expandClassNames.titleContainer);
42
42
  },
43
43
  handleScrollToSelection() {
44
- if (fg('platform_editor_expand_auto_scroll')) {
45
- return true;
46
- }
47
44
  return containsClass(document.activeElement, expandClassNames.titleInput);
48
45
  },
49
46
  handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], target => target.classList.contains(expandClassNames.prefix), {
@@ -1,5 +1,4 @@
1
1
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from '@atlaskit/editor-common/transforms';
3
2
  export const findParentExpandNode = state => {
4
3
  return findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection) || findParentNodeOfType(state.schema.nodes.expand)(state.selection);
5
4
  };
package/dist/esm/index.js CHANGED
@@ -1 +1,4 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
1
4
  export { expandPlugin } from './plugin';
@@ -5,6 +5,7 @@ import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
5
5
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
6
6
  import { GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
7
7
  import { expandClassNames } from '@atlaskit/editor-common/styles';
8
+ import { findExpand } from '@atlaskit/editor-common/transforms';
8
9
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
9
10
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
10
11
  import { safeInsert } from '@atlaskit/editor-prosemirror/utils';
@@ -13,7 +14,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
13
14
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
15
  import { isNestedInExpand } from '../utils';
15
16
  import { createCommand } from './pm-plugins/plugin-factory';
16
- import { findExpand } from './utils';
17
17
  export var setExpandRef = function setExpandRef(ref) {
18
18
  return createCommand({
19
19
  type: 'SET_EXPAND_REF',
@@ -422,7 +422,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
422
422
  this.renderIcon(this.intl);
423
423
  this.initHandlers();
424
424
  }
425
- _createClass(ExpandNodeView, [{
425
+ return _createClass(ExpandNodeView, [{
426
426
  key: "initHandlers",
427
427
  value: function initHandlers() {
428
428
  var _this$api6,
@@ -588,7 +588,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
588
588
  this.cleanUpEditorDisabledOnChange = undefined;
589
589
  }
590
590
  }]);
591
- return ExpandNodeView;
592
591
  }();
593
592
  export default function (_ref2) {
594
593
  var getIntl = _ref2.getIntl,
@@ -9,7 +9,6 @@ import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './c
9
9
  import { expandKeymap } from './pm-plugins/keymap';
10
10
  import { createPlugin } from './pm-plugins/main';
11
11
  import { getToolbarConfig } from './toolbar';
12
- export { pluginKey } from './pm-plugins/plugin-factory';
13
12
  export var expandPlugin = function expandPlugin(_ref) {
14
13
  var _api$featureFlags, _api$analytics, _api$analytics2;
15
14
  var _ref$config = _ref.config,
@@ -1,12 +1,12 @@
1
1
  import { backspace, bindKeymapWithCommand, moveDown, moveLeft, moveRight, moveUp, tab } from '@atlaskit/editor-common/keymaps';
2
2
  import { GapCursorSelection, RelativeSelectionPos, Side } from '@atlaskit/editor-common/selection';
3
+ import { findExpand } from '@atlaskit/editor-common/transforms';
3
4
  import { isEmptyNode, isPositionNearTableRow } from '@atlaskit/editor-common/utils';
4
5
  import { keymap } from '@atlaskit/editor-prosemirror/keymap';
5
6
  import { NodeSelection, Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
6
7
  import { isInTable } from '@atlaskit/editor-tables/utils';
7
8
  import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { deleteExpand, focusIcon, focusTitle } from '../commands';
9
- import { findExpand } from '../utils';
10
10
  var isExpandNode = function isExpandNode(node) {
11
11
  return (node === null || node === void 0 ? void 0 : node.type.name) === 'expand' || (node === null || node === void 0 ? void 0 : node.type.name) === 'nestedExpand';
12
12
  };
@@ -1,12 +1,12 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
3
3
  import { expandClassNames } from '@atlaskit/editor-common/styles';
4
+ import { findExpand, transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
4
5
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
5
6
  import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
8
  import { setExpandRef } from '../commands';
8
9
  import ExpandNodeView from '../nodeviews';
9
- import { findExpand, transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '../utils';
10
10
  import { createPluginState, getPluginState, pluginKey } from './plugin-factory';
11
11
  export function containsClass(element, className) {
12
12
  var _element$classList;
@@ -3,13 +3,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
4
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
5
5
  import _createClass from "@babel/runtime/helpers/createClass";
6
- import _inherits from "@babel/runtime/helpers/inherits";
7
6
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
8
7
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
8
+ import _inherits from "@babel/runtime/helpers/inherits";
9
9
  var _excluded = ["buttonStyles"];
10
10
  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; }
11
11
  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; }
12
- function _createSuper(t) { var r = _isNativeReflectConstruct(); return function () { var e, o = _getPrototypeOf(t); if (r) { var s = _getPrototypeOf(this).constructor; e = Reflect.construct(o, arguments, s); } else e = o.apply(this, arguments); return _possibleConstructorReturn(this, e); }; }
12
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
13
13
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
14
14
  /**
15
15
  * @jsxRuntime classic
@@ -28,13 +28,12 @@ import ChevronRightIcon from '@atlaskit/icon/utility/chevron-right';
28
28
  import Tooltip from '@atlaskit/tooltip';
29
29
  export var withTooltip = function withTooltip(WrapperComponent) {
30
30
  return /*#__PURE__*/function (_React$Component) {
31
- _inherits(WithSortableColumn, _React$Component);
32
- var _super = _createSuper(WithSortableColumn);
33
31
  function WithSortableColumn(props) {
34
32
  _classCallCheck(this, WithSortableColumn);
35
- return _super.call(this, props);
33
+ return _callSuper(this, WithSortableColumn, [props]);
36
34
  }
37
- _createClass(WithSortableColumn, [{
35
+ _inherits(WithSortableColumn, _React$Component);
36
+ return _createClass(WithSortableColumn, [{
38
37
  key: "render",
39
38
  value: function render() {
40
39
  var label = this.props.label;
@@ -45,7 +44,6 @@ export var withTooltip = function withTooltip(WrapperComponent) {
45
44
  }, jsx(WrapperComponent, this.props));
46
45
  }
47
46
  }]);
48
- return WithSortableColumn;
49
47
  }(React.Component);
50
48
  };
51
49
  export var CustomButton = function CustomButton(props) {
@@ -11,6 +11,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { Selection, TextSelection } from '@atlaskit/editor-prosemirror/state';
12
12
  import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/utils';
13
13
  import { findTable } from '@atlaskit/editor-tables/utils';
14
+ import { fg } from '@atlaskit/platform-feature-flags';
14
15
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
15
16
  import { isNestedInExpand } from '../utils';
16
17
 
@@ -162,6 +163,9 @@ export var toggleExpandExpanded = function toggleExpandExpanded(_ref) {
162
163
  },
163
164
  eventType: EVENT_TYPE.TRACK
164
165
  };
166
+ if (fg('platform_editor_long_node_expand')) {
167
+ tr.setMeta('scrollIntoView', false);
168
+ }
165
169
  editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
166
170
  dispatch(tr);
167
171
  }
@@ -431,7 +431,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
431
431
  });
432
432
  }
433
433
  }
434
- _createClass(ExpandNodeView, [{
434
+ return _createClass(ExpandNodeView, [{
435
435
  key: "stopEvent",
436
436
  value: function stopEvent(event) {
437
437
  var target = event.target;
@@ -525,7 +525,6 @@ export var ExpandNodeView = /*#__PURE__*/function () {
525
525
  }
526
526
  }
527
527
  }]);
528
- return ExpandNodeView;
529
528
  }();
530
529
  export default function (_ref) {
531
530
  var getIntl = _ref.getIntl,
@@ -1,11 +1,11 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { createSelectionClickHandler } from '@atlaskit/editor-common/selection';
3
3
  import { expandClassNames } from '@atlaskit/editor-common/styles';
4
+ import { transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '@atlaskit/editor-common/transforms';
4
5
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
6
  import { fg } from '@atlaskit/platform-feature-flags';
6
7
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
7
8
  import ExpandNodeView from '../node-views';
8
- import { transformSliceExpandToNestedExpand, transformSliceNestedExpandToExpand } from '../utils';
9
9
  export var pluginKey = new PluginKey('expandPlugin');
10
10
  export function containsClass(element, className) {
11
11
  var _element$classList;
@@ -47,9 +47,6 @@ export var createPlugin = function createPlugin(dispatch, getIntl) {
47
47
  return containsClass(event.target, expandClassNames.titleContainer);
48
48
  },
49
49
  handleScrollToSelection: function handleScrollToSelection() {
50
- if (fg('platform_editor_expand_auto_scroll')) {
51
- return true;
52
- }
53
50
  return containsClass(document.activeElement, expandClassNames.titleInput);
54
51
  },
55
52
  handleClickOn: createSelectionClickHandler(['expand', 'nestedExpand'], function (target) {
@@ -1,5 +1,4 @@
1
1
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
2
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from '@atlaskit/editor-common/transforms';
3
2
  export var findParentExpandNode = function findParentExpandNode(state) {
4
3
  return findParentNodeOfType(state.schema.nodes.nestedExpand)(state.selection) || findParentNodeOfType(state.schema.nodes.expand)(state.selection);
5
4
  };
@@ -1,3 +1,2 @@
1
1
  import type { ExpandPlugin } from '../types';
2
- export { pluginKey } from './pm-plugins/plugin-factory';
3
2
  export declare const expandPlugin: ExpandPlugin;
@@ -1,4 +1,3 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand, } from '@atlaskit/editor-common/transforms';
4
3
  export declare const findParentExpandNode: (state: EditorState) => ReturnType<ReturnType<typeof findParentNodeOfType>>;
@@ -1,3 +1,2 @@
1
1
  import type { ExpandPlugin } from '../types';
2
- export { pluginKey } from './pm-plugins/plugin-factory';
3
2
  export declare const expandPlugin: ExpandPlugin;
@@ -1,4 +1,3 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand, } from '@atlaskit/editor-common/transforms';
4
3
  export declare const findParentExpandNode: (state: EditorState) => ReturnType<ReturnType<typeof findParentNodeOfType>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "2.10.7",
3
+ "version": "2.10.9",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^46.1.0",
35
35
  "@atlaskit/button": "^20.3.0",
36
- "@atlaskit/editor-common": "^96.3.0",
36
+ "@atlaskit/editor-common": "^96.5.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
38
  "@atlaskit/editor-plugin-decorations": "^1.3.0",
39
39
  "@atlaskit/editor-plugin-editor-disabled": "^1.3.0",
@@ -44,8 +44,8 @@
44
44
  "@atlaskit/editor-tables": "^2.8.0",
45
45
  "@atlaskit/icon": "^23.1.0",
46
46
  "@atlaskit/platform-feature-flags": "^0.3.0",
47
- "@atlaskit/tmp-editor-statsig": "^2.25.0",
48
- "@atlaskit/tokens": "^2.4.0",
47
+ "@atlaskit/tmp-editor-statsig": "^2.27.0",
48
+ "@atlaskit/tokens": "^2.5.0",
49
49
  "@atlaskit/tooltip": "^19.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -118,14 +118,15 @@
118
118
  "platform_editor_nest_nested_expand_drag_fix": {
119
119
  "type": "boolean"
120
120
  },
121
- "platform_editor_expand_auto_scroll": {
122
- "type": "boolean"
123
- },
124
121
  "platform_editor_remove_copy_button_from_view_mode": {
125
122
  "type": "boolean"
126
123
  },
127
124
  "platform_editor_react18_plugin_portalprovider": {
128
125
  "type": "boolean"
126
+ },
127
+ "platform_editor_long_node_expand": {
128
+ "type": "boolean",
129
+ "referenceOnly": true
129
130
  }
130
131
  }
131
132
  }
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "findExpand", {
7
- enumerable: true,
8
- get: function get() {
9
- return _transforms.findExpand;
10
- }
11
- });
12
- Object.defineProperty(exports, "transformSliceExpandToNestedExpand", {
13
- enumerable: true,
14
- get: function get() {
15
- return _transforms.transformSliceExpandToNestedExpand;
16
- }
17
- });
18
- Object.defineProperty(exports, "transformSliceNestedExpandToExpand", {
19
- enumerable: true,
20
- get: function get() {
21
- return _transforms.transformSliceNestedExpandToExpand;
22
- }
23
- });
24
- Object.defineProperty(exports, "transformSliceToRemoveOpenExpand", {
25
- enumerable: true,
26
- get: function get() {
27
- return _transforms.transformSliceToRemoveOpenExpand;
28
- }
29
- });
30
- Object.defineProperty(exports, "transformSliceToRemoveOpenNestedExpand", {
31
- enumerable: true,
32
- get: function get() {
33
- return _transforms.transformSliceToRemoveOpenNestedExpand;
34
- }
35
- });
36
- var _transforms = require("@atlaskit/editor-common/transforms");
@@ -1 +0,0 @@
1
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from '@atlaskit/editor-common/transforms';
@@ -1 +0,0 @@
1
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from '@atlaskit/editor-common/transforms';
@@ -1 +0,0 @@
1
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand, } from '@atlaskit/editor-common/transforms';
@@ -1 +0,0 @@
1
- export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand, } from '@atlaskit/editor-common/transforms';