@atlaskit/editor-plugin-expand 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 2.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#130725](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/130725)
8
+ [`87a6f9ef9fecf`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/87a6f9ef9fecf) -
9
+ [ED-24279] Add Jira feature flag for the nesting nestedExpand in Expand change
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 2.4.0
4
16
 
5
17
  ### Minor Changes
@@ -10,7 +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 _utils = require("@atlaskit/editor-common/utils");
13
- var _state = require("@atlaskit/editor-prosemirror/state");
13
+ var _state2 = require("@atlaskit/editor-prosemirror/state");
14
14
  var _utils2 = require("@atlaskit/editor-prosemirror/utils");
15
15
  var _utils3 = require("@atlaskit/editor-tables/utils");
16
16
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
@@ -135,19 +135,19 @@ var toggleExpandExpanded = exports.toggleExpandExpanded = function toggleExpandE
135
135
  };
136
136
 
137
137
  // Creates either an expand or a nestedExpand node based on the current selection
138
- var createExpandNode = exports.createExpandNode = function createExpandNode(state, featureFlags) {
138
+ var createExpandNode = exports.createExpandNode = function createExpandNode(state, isNestingExpandsSupported) {
139
139
  var _state$schema$nodes = state.schema.nodes,
140
140
  expand = _state$schema$nodes.expand,
141
141
  nestedExpand = _state$schema$nodes.nestedExpand;
142
142
  var isSelectionInTable = !!(0, _utils3.findTable)(state.selection);
143
- var isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!(0, _utils4.findExpand)(state, state.selection);
143
+ var isSelectionInExpand = isNestingExpandsSupported && !!(0, _utils4.findExpand)(state, state.selection);
144
144
  var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
145
145
  return expandType.createAndFill({});
146
146
  };
147
- var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags) {
147
+ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported) {
148
148
  return function (inputMethod) {
149
149
  return function (state, dispatch) {
150
- var expandNode = createExpandNode(state, featureFlags);
150
+ var expandNode = createExpandNode(state, isNestingExpandsSupported);
151
151
  if (!expandNode) {
152
152
  return false;
153
153
  }
@@ -172,9 +172,9 @@ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function
172
172
  };
173
173
  };
174
174
  };
175
- var insertExpand = exports.insertExpand = function insertExpand(editorAnalyticsAPI, featureFlags) {
175
+ var insertExpand = exports.insertExpand = function insertExpand(editorAnalyticsAPI, isNestingExpandsSupported) {
176
176
  return function (state, dispatch) {
177
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(_analytics.INPUT_METHOD.INSERT_MENU)(state, dispatch);
177
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(_analytics.INPUT_METHOD.INSERT_MENU)(state, dispatch);
178
178
  };
179
179
  };
180
180
  var focusTitle = exports.focusTitle = function focusTitle(pos) {
@@ -197,12 +197,12 @@ var focusTitle = exports.focusTitle = function focusTitle(pos) {
197
197
 
198
198
  // Used to clear any node or cell selection when expand title is focused
199
199
  var setSelectionInsideExpand = exports.setSelectionInsideExpand = function setSelectionInsideExpand(expandPos) {
200
- return function (state, dispatch, editorView) {
200
+ return function (_state, dispatch, editorView) {
201
201
  if (editorView) {
202
202
  if (!editorView.hasFocus()) {
203
203
  editorView.focus();
204
204
  }
205
- var sel = _state.Selection.findFrom(editorView.state.doc.resolve(expandPos), 1, true);
205
+ var sel = _state2.Selection.findFrom(editorView.state.doc.resolve(expandPos), 1, true);
206
206
  if (sel && dispatch) {
207
207
  dispatch(editorView.state.tr.setSelection(sel));
208
208
  }
@@ -17,6 +17,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
17
17
  var _messages = require("@atlaskit/editor-common/messages");
18
18
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
19
19
  var _utils = require("@atlaskit/editor-common/utils");
20
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
21
  var _commands = require("./commands");
21
22
  var _keymap = require("./pm-plugins/keymap");
22
23
  var _main = require("./pm-plugins/main");
@@ -27,21 +28,23 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
27
28
  var _ref$config = _ref.config,
28
29
  options = _ref$config === void 0 ? {} : _ref$config,
29
30
  api = _ref.api;
30
- var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
31
+ // Confluence is injecting the FF through editor props, from an experiment
32
+ // Jira is pulling it in through platform feature flags, from a feature gate
33
+ var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
31
34
  return {
32
35
  name: 'expand',
33
36
  nodes: function nodes() {
34
37
  return [{
35
38
  name: 'expand',
36
- node: featureFlags.nestedExpandInExpandEx ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
39
+ node: isNestingExpandsSupported ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
37
40
  }, {
38
41
  name: 'nestedExpand',
39
42
  node: _adfSchema.nestedExpand
40
43
  }];
41
44
  },
42
45
  actions: {
43
- insertExpand: (0, _commands.insertExpand)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
44
- insertExpandWithInputMethod: (0, _commands.insertExpandWithInputMethod)(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
46
+ insertExpand: (0, _commands.insertExpand)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
47
+ insertExpandWithInputMethod: (0, _commands.insertExpandWithInputMethod)(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
45
48
  },
46
49
  pmPlugins: function pmPlugins() {
47
50
  return [{
@@ -79,7 +82,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
79
82
  },
80
83
  action: function action(insert, state) {
81
84
  var _api$analytics3;
82
- var node = (0, _commands.createExpandNode)(state, featureFlags);
85
+ var node = (0, _commands.createExpandNode)(state, isNestingExpandsSupported);
83
86
  if (!node) {
84
87
  return false;
85
88
  }
@@ -21,12 +21,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
21
21
  // Creates either an expand or a nestedExpand node based on the current selection
22
22
  var createExpandNode = exports.createExpandNode = function createExpandNode(state) {
23
23
  var setExpandedState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
24
- var featureFlags = arguments.length > 2 ? arguments[2] : undefined;
24
+ var isNestingExpandsSupported = arguments.length > 2 ? arguments[2] : undefined;
25
25
  var _state$schema$nodes = state.schema.nodes,
26
26
  expand = _state$schema$nodes.expand,
27
27
  nestedExpand = _state$schema$nodes.nestedExpand;
28
28
  var isSelectionInTable = !!(0, _utils3.findTable)(state.selection);
29
- var isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!(0, _transforms.findExpand)(state, state.selection);
29
+ var isSelectionInExpand = isNestingExpandsSupported && !!(0, _transforms.findExpand)(state, state.selection);
30
30
  var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
31
31
  var expandNode = expandType.createAndFill({});
32
32
  if (setExpandedState) {
@@ -34,10 +34,10 @@ var createExpandNode = exports.createExpandNode = function createExpandNode(stat
34
34
  }
35
35
  return expandNode;
36
36
  };
37
- var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags) {
37
+ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported) {
38
38
  return function (inputMethod) {
39
39
  return function (state, dispatch) {
40
- var expandNode = (0, _platformFeatureFlags.fg)('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, featureFlags) : createExpandNode(state, undefined, featureFlags);
40
+ var expandNode = (0, _platformFeatureFlags.fg)('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, isNestingExpandsSupported) : createExpandNode(state, undefined, isNestingExpandsSupported);
41
41
  if (!expandNode) {
42
42
  return false;
43
43
  }
@@ -79,9 +79,9 @@ var insertExpandWithInputMethod = exports.insertExpandWithInputMethod = function
79
79
  };
80
80
  };
81
81
  };
82
- var insertExpand = exports.insertExpand = function insertExpand(editorAnalyticsAPI, featureFlags) {
82
+ var insertExpand = exports.insertExpand = function insertExpand(editorAnalyticsAPI, isNestingExpandsSupported) {
83
83
  return function (state, dispatch) {
84
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(_analytics.INPUT_METHOD.INSERT_MENU)(state, dispatch);
84
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(_analytics.INPUT_METHOD.INSERT_MENU)(state, dispatch);
85
85
  };
86
86
  };
87
87
  var deleteExpand = exports.deleteExpand = function deleteExpand(editorAnalyticsAPI) {
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _commands = require("./commands");
15
16
  var _keymap = require("./pm-plugins/keymap");
16
17
  var _main = require("./pm-plugins/main");
@@ -20,21 +21,23 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
20
21
  var _ref$config = _ref.config,
21
22
  options = _ref$config === void 0 ? {} : _ref$config,
22
23
  api = _ref.api;
23
- var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
24
+ // Confluence is injecting the FF through editor props, from an experiment
25
+ // Jira is pulling it in through platform feature flags, from a feature gate
26
+ var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || (0, _platformFeatureFlags.fg)('platform_editor_nest_nested_expand_in_expand_jira');
24
27
  return {
25
28
  name: 'expand',
26
29
  nodes: function nodes() {
27
30
  return [{
28
31
  name: 'expand',
29
- node: featureFlags.nestedExpandInExpandEx ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
32
+ node: isNestingExpandsSupported ? _adfSchema.expandWithNestedExpand : _adfSchema.expand
30
33
  }, {
31
34
  name: 'nestedExpand',
32
35
  node: _adfSchema.nestedExpand
33
36
  }];
34
37
  },
35
38
  actions: {
36
- insertExpand: (0, _commands.insertExpand)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
37
- insertExpandWithInputMethod: (0, _commands.insertExpandWithInputMethod)(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
39
+ insertExpand: (0, _commands.insertExpand)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
40
+ insertExpandWithInputMethod: (0, _commands.insertExpandWithInputMethod)(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
38
41
  },
39
42
  pmPlugins: function pmPlugins() {
40
43
  return [{
@@ -72,7 +75,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
72
75
  },
73
76
  action: function action(insert, state) {
74
77
  var _api$analytics3;
75
- var node = (0, _commands.createExpandNode)(state, undefined, featureFlags);
78
+ var node = (0, _commands.createExpandNode)(state, undefined, isNestingExpandsSupported);
76
79
  if (!node) {
77
80
  return false;
78
81
  }
@@ -123,18 +123,18 @@ export const toggleExpandExpanded = ({
123
123
  };
124
124
 
125
125
  // Creates either an expand or a nestedExpand node based on the current selection
126
- export const createExpandNode = (state, featureFlags) => {
126
+ export const createExpandNode = (state, isNestingExpandsSupported) => {
127
127
  const {
128
128
  expand,
129
129
  nestedExpand
130
130
  } = state.schema.nodes;
131
131
  const isSelectionInTable = !!findTable(state.selection);
132
- const isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!findExpand(state, state.selection);
132
+ const isSelectionInExpand = isNestingExpandsSupported && !!findExpand(state, state.selection);
133
133
  const expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
134
134
  return expandType.createAndFill({});
135
135
  };
136
- export const insertExpandWithInputMethod = (editorAnalyticsAPI, featureFlags) => inputMethod => (state, dispatch) => {
137
- const expandNode = createExpandNode(state, featureFlags);
136
+ export const insertExpandWithInputMethod = (editorAnalyticsAPI, isNestingExpandsSupported) => inputMethod => (state, dispatch) => {
137
+ const expandNode = createExpandNode(state, isNestingExpandsSupported);
138
138
  if (!expandNode) {
139
139
  return false;
140
140
  }
@@ -157,8 +157,8 @@ export const insertExpandWithInputMethod = (editorAnalyticsAPI, featureFlags) =>
157
157
  }
158
158
  return true;
159
159
  };
160
- export const insertExpand = (editorAnalyticsAPI, featureFlags) => (state, dispatch) => {
161
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
160
+ export const insertExpand = (editorAnalyticsAPI, isNestingExpandsSupported) => (state, dispatch) => {
161
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
162
162
  };
163
163
  export const focusTitle = pos => (state, dispatch, editorView) => {
164
164
  if (editorView) {
@@ -177,7 +177,7 @@ export const focusTitle = pos => (state, dispatch, editorView) => {
177
177
  };
178
178
 
179
179
  // Used to clear any node or cell selection when expand title is focused
180
- export const setSelectionInsideExpand = expandPos => (state, dispatch, editorView) => {
180
+ export const setSelectionInsideExpand = expandPos => (_state, dispatch, editorView) => {
181
181
  if (editorView) {
182
182
  if (!editorView.hasFocus()) {
183
183
  editorView.focus();
@@ -4,6 +4,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -13,22 +14,24 @@ export const expandPlugin = ({
13
14
  config: options = {},
14
15
  api
15
16
  }) => {
16
- var _api$featureFlags, _api$analytics, _api$analytics2;
17
- const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
17
+ var _api$featureFlags, _api$featureFlags$sha, _api$analytics, _api$analytics2;
18
+ // Confluence is injecting the FF through editor props, from an experiment
19
+ // Jira is pulling it in through platform feature flags, from a feature gate
20
+ const isNestingExpandsSupported = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : (_api$featureFlags$sha = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags$sha === void 0 ? void 0 : _api$featureFlags$sha.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
18
21
  return {
19
22
  name: 'expand',
20
23
  nodes() {
21
24
  return [{
22
25
  name: 'expand',
23
- node: featureFlags.nestedExpandInExpandEx ? expandWithNestedExpand : expand
26
+ node: isNestingExpandsSupported ? expandWithNestedExpand : expand
24
27
  }, {
25
28
  name: 'nestedExpand',
26
29
  node: nestedExpand
27
30
  }];
28
31
  },
29
32
  actions: {
30
- insertExpand: insertExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
31
- insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
33
+ insertExpand: insertExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
34
+ insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
32
35
  },
33
36
  pmPlugins() {
34
37
  return [{
@@ -64,7 +67,7 @@ export const expandPlugin = ({
64
67
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
65
68
  action(insert, state) {
66
69
  var _api$analytics3;
67
- const node = createExpandNode(state, featureFlags);
70
+ const node = createExpandNode(state, isNestingExpandsSupported);
68
71
  if (!node) {
69
72
  return false;
70
73
  }
@@ -9,13 +9,13 @@ import { findParentNodeOfType, safeInsert } from '@atlaskit/editor-prosemirror/u
9
9
  import { findTable } from '@atlaskit/editor-tables/utils';
10
10
  import { fg } from '@atlaskit/platform-feature-flags';
11
11
  // Creates either an expand or a nestedExpand node based on the current selection
12
- export const createExpandNode = (state, setExpandedState = true, featureFlags) => {
12
+ export const createExpandNode = (state, setExpandedState = true, isNestingExpandsSupported) => {
13
13
  const {
14
14
  expand,
15
15
  nestedExpand
16
16
  } = state.schema.nodes;
17
17
  const isSelectionInTable = !!findTable(state.selection);
18
- const isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!findExpand(state, state.selection);
18
+ const isSelectionInExpand = isNestingExpandsSupported && !!findExpand(state, state.selection);
19
19
  const expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
20
20
  const expandNode = expandType.createAndFill({});
21
21
  if (setExpandedState) {
@@ -23,8 +23,8 @@ export const createExpandNode = (state, setExpandedState = true, featureFlags) =
23
23
  }
24
24
  return expandNode;
25
25
  };
26
- export const insertExpandWithInputMethod = (editorAnalyticsAPI, featureFlags) => inputMethod => (state, dispatch) => {
27
- const expandNode = fg('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, featureFlags) : createExpandNode(state, undefined, featureFlags);
26
+ export const insertExpandWithInputMethod = (editorAnalyticsAPI, isNestingExpandsSupported) => inputMethod => (state, dispatch) => {
27
+ const expandNode = fg('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, isNestingExpandsSupported) : createExpandNode(state, undefined, isNestingExpandsSupported);
28
28
  if (!expandNode) {
29
29
  return false;
30
30
  }
@@ -64,8 +64,8 @@ export const insertExpandWithInputMethod = (editorAnalyticsAPI, featureFlags) =>
64
64
  }
65
65
  return true;
66
66
  };
67
- export const insertExpand = (editorAnalyticsAPI, featureFlags) => (state, dispatch) => {
68
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
67
+ export const insertExpand = (editorAnalyticsAPI, isNestingExpandsSupported) => (state, dispatch) => {
68
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
69
69
  };
70
70
  export const deleteExpand = editorAnalyticsAPI => (state, dispatch) => {
71
71
  const expandNode = findExpand(state);
@@ -4,6 +4,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -12,22 +13,24 @@ export const expandPlugin = ({
12
13
  config: options = {},
13
14
  api
14
15
  }) => {
15
- var _api$featureFlags, _api$analytics, _api$analytics2;
16
- const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
16
+ var _api$featureFlags, _api$featureFlags$sha, _api$analytics, _api$analytics2;
17
+ // Confluence is injecting the FF through editor props, from an experiment
18
+ // Jira is pulling it in through platform feature flags, from a feature gate
19
+ const isNestingExpandsSupported = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : (_api$featureFlags$sha = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags$sha === void 0 ? void 0 : _api$featureFlags$sha.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
17
20
  return {
18
21
  name: 'expand',
19
22
  nodes() {
20
23
  return [{
21
24
  name: 'expand',
22
- node: featureFlags.nestedExpandInExpandEx ? expandWithNestedExpand : expand
25
+ node: isNestingExpandsSupported ? expandWithNestedExpand : expand
23
26
  }, {
24
27
  name: 'nestedExpand',
25
28
  node: nestedExpand
26
29
  }];
27
30
  },
28
31
  actions: {
29
- insertExpand: insertExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
30
- insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
32
+ insertExpand: insertExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
33
+ insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
31
34
  },
32
35
  pmPlugins() {
33
36
  return [{
@@ -63,7 +66,7 @@ export const expandPlugin = ({
63
66
  icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
64
67
  action(insert, state) {
65
68
  var _api$analytics3;
66
- const node = createExpandNode(state, undefined, featureFlags);
69
+ const node = createExpandNode(state, undefined, isNestingExpandsSupported);
67
70
  if (!node) {
68
71
  return false;
69
72
  }
@@ -128,19 +128,19 @@ export var toggleExpandExpanded = function toggleExpandExpanded(_ref2) {
128
128
  };
129
129
 
130
130
  // Creates either an expand or a nestedExpand node based on the current selection
131
- export var createExpandNode = function createExpandNode(state, featureFlags) {
131
+ export var createExpandNode = function createExpandNode(state, isNestingExpandsSupported) {
132
132
  var _state$schema$nodes = state.schema.nodes,
133
133
  expand = _state$schema$nodes.expand,
134
134
  nestedExpand = _state$schema$nodes.nestedExpand;
135
135
  var isSelectionInTable = !!findTable(state.selection);
136
- var isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!findExpand(state, state.selection);
136
+ var isSelectionInExpand = isNestingExpandsSupported && !!findExpand(state, state.selection);
137
137
  var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
138
138
  return expandType.createAndFill({});
139
139
  };
140
- export var insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags) {
140
+ export var insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported) {
141
141
  return function (inputMethod) {
142
142
  return function (state, dispatch) {
143
- var expandNode = createExpandNode(state, featureFlags);
143
+ var expandNode = createExpandNode(state, isNestingExpandsSupported);
144
144
  if (!expandNode) {
145
145
  return false;
146
146
  }
@@ -165,9 +165,9 @@ export var insertExpandWithInputMethod = function insertExpandWithInputMethod(ed
165
165
  };
166
166
  };
167
167
  };
168
- export var insertExpand = function insertExpand(editorAnalyticsAPI, featureFlags) {
168
+ export var insertExpand = function insertExpand(editorAnalyticsAPI, isNestingExpandsSupported) {
169
169
  return function (state, dispatch) {
170
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
170
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
171
171
  };
172
172
  };
173
173
  export var focusTitle = function focusTitle(pos) {
@@ -190,7 +190,7 @@ export var focusTitle = function focusTitle(pos) {
190
190
 
191
191
  // Used to clear any node or cell selection when expand title is focused
192
192
  export var setSelectionInsideExpand = function setSelectionInsideExpand(expandPos) {
193
- return function (state, dispatch, editorView) {
193
+ return function (_state, dispatch, editorView) {
194
194
  if (editorView) {
195
195
  if (!editorView.hasFocus()) {
196
196
  editorView.focus();
@@ -4,6 +4,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -14,21 +15,23 @@ export var expandPlugin = function expandPlugin(_ref) {
14
15
  var _ref$config = _ref.config,
15
16
  options = _ref$config === void 0 ? {} : _ref$config,
16
17
  api = _ref.api;
17
- var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
18
+ // Confluence is injecting the FF through editor props, from an experiment
19
+ // Jira is pulling it in through platform feature flags, from a feature gate
20
+ var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
18
21
  return {
19
22
  name: 'expand',
20
23
  nodes: function nodes() {
21
24
  return [{
22
25
  name: 'expand',
23
- node: featureFlags.nestedExpandInExpandEx ? expandWithNestedExpand : expand
26
+ node: isNestingExpandsSupported ? expandWithNestedExpand : expand
24
27
  }, {
25
28
  name: 'nestedExpand',
26
29
  node: nestedExpand
27
30
  }];
28
31
  },
29
32
  actions: {
30
- insertExpand: insertExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
31
- insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
33
+ insertExpand: insertExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
34
+ insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
32
35
  },
33
36
  pmPlugins: function pmPlugins() {
34
37
  return [{
@@ -66,7 +69,7 @@ export var expandPlugin = function expandPlugin(_ref) {
66
69
  },
67
70
  action: function action(insert, state) {
68
71
  var _api$analytics3;
69
- var node = createExpandNode(state, featureFlags);
72
+ var node = createExpandNode(state, isNestingExpandsSupported);
70
73
  if (!node) {
71
74
  return false;
72
75
  }
@@ -14,12 +14,12 @@ import { fg } from '@atlaskit/platform-feature-flags';
14
14
  // Creates either an expand or a nestedExpand node based on the current selection
15
15
  export var createExpandNode = function createExpandNode(state) {
16
16
  var setExpandedState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
17
- var featureFlags = arguments.length > 2 ? arguments[2] : undefined;
17
+ var isNestingExpandsSupported = arguments.length > 2 ? arguments[2] : undefined;
18
18
  var _state$schema$nodes = state.schema.nodes,
19
19
  expand = _state$schema$nodes.expand,
20
20
  nestedExpand = _state$schema$nodes.nestedExpand;
21
21
  var isSelectionInTable = !!findTable(state.selection);
22
- var isSelectionInExpand = (featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.nestedExpandInExpandEx) && !!findExpand(state, state.selection);
22
+ var isSelectionInExpand = isNestingExpandsSupported && !!findExpand(state, state.selection);
23
23
  var expandType = isSelectionInTable || isSelectionInExpand ? nestedExpand : expand;
24
24
  var expandNode = expandType.createAndFill({});
25
25
  if (setExpandedState) {
@@ -27,10 +27,10 @@ export var createExpandNode = function createExpandNode(state) {
27
27
  }
28
28
  return expandNode;
29
29
  };
30
- export var insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags) {
30
+ export var insertExpandWithInputMethod = function insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported) {
31
31
  return function (inputMethod) {
32
32
  return function (state, dispatch) {
33
- var expandNode = fg('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, featureFlags) : createExpandNode(state, undefined, featureFlags);
33
+ var expandNode = fg('platform_editor_single_player_expand_ed_24536') ? createExpandNode(state, false, isNestingExpandsSupported) : createExpandNode(state, undefined, isNestingExpandsSupported);
34
34
  if (!expandNode) {
35
35
  return false;
36
36
  }
@@ -72,9 +72,9 @@ export var insertExpandWithInputMethod = function insertExpandWithInputMethod(ed
72
72
  };
73
73
  };
74
74
  };
75
- export var insertExpand = function insertExpand(editorAnalyticsAPI, featureFlags) {
75
+ export var insertExpand = function insertExpand(editorAnalyticsAPI, isNestingExpandsSupported) {
76
76
  return function (state, dispatch) {
77
- return insertExpandWithInputMethod(editorAnalyticsAPI, featureFlags)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
77
+ return insertExpandWithInputMethod(editorAnalyticsAPI, isNestingExpandsSupported)(INPUT_METHOD.INSERT_MENU)(state, dispatch);
78
78
  };
79
79
  };
80
80
  export var deleteExpand = function deleteExpand(editorAnalyticsAPI) {
@@ -4,6 +4,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -13,21 +14,23 @@ export var expandPlugin = function expandPlugin(_ref) {
13
14
  var _ref$config = _ref.config,
14
15
  options = _ref$config === void 0 ? {} : _ref$config,
15
16
  api = _ref.api;
16
- var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
17
+ // Confluence is injecting the FF through editor props, from an experiment
18
+ // Jira is pulling it in through platform feature flags, from a feature gate
19
+ var isNestingExpandsSupported = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 || (_api$featureFlags = _api$featureFlags.sharedState.currentState()) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.nestedExpandInExpandEx) || fg('platform_editor_nest_nested_expand_in_expand_jira');
17
20
  return {
18
21
  name: 'expand',
19
22
  nodes: function nodes() {
20
23
  return [{
21
24
  name: 'expand',
22
- node: featureFlags.nestedExpandInExpandEx ? expandWithNestedExpand : expand
25
+ node: isNestingExpandsSupported ? expandWithNestedExpand : expand
23
26
  }, {
24
27
  name: 'nestedExpand',
25
28
  node: nestedExpand
26
29
  }];
27
30
  },
28
31
  actions: {
29
- insertExpand: insertExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, featureFlags),
30
- insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, featureFlags)
32
+ insertExpand: insertExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions, isNestingExpandsSupported),
33
+ insertExpandWithInputMethod: insertExpandWithInputMethod(api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions, isNestingExpandsSupported)
31
34
  },
32
35
  pmPlugins: function pmPlugins() {
33
36
  return [{
@@ -65,7 +68,7 @@ export var expandPlugin = function expandPlugin(_ref) {
65
68
  },
66
69
  action: function action(insert, state) {
67
70
  var _api$analytics3;
68
- var node = createExpandNode(state, undefined, featureFlags);
71
+ var node = createExpandNode(state, undefined, isNestingExpandsSupported);
69
72
  if (!node) {
70
73
  return false;
71
74
  }
@@ -1,5 +1,5 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, FeatureFlags } from '@atlaskit/editor-common/types';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
3
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type InsertMethod } from '../types';
@@ -18,8 +18,8 @@ export declare const toggleExpandExpanded: ({ editorAnalyticsAPI, pos, nodeType,
18
18
  nodeType: NodeType;
19
19
  __livePage: boolean;
20
20
  }) => Command;
21
- export declare const createExpandNode: (state: EditorState, featureFlags?: FeatureFlags) => PMNode | null;
22
- export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => (inputMethod: InsertMethod) => Command;
23
- export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => Command;
21
+ export declare const createExpandNode: (state: EditorState, isNestingExpandsSupported?: boolean) => PMNode | null;
22
+ export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => (inputMethod: InsertMethod) => Command;
23
+ export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => Command;
24
24
  export declare const focusTitle: (pos: number) => Command;
25
25
  export declare const setSelectionInsideExpand: (expandPos: number) => Command;
@@ -1,11 +1,11 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, FeatureFlags } from '@atlaskit/editor-common/types';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
3
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type InsertMethod } from '../types';
6
- export declare const createExpandNode: (state: EditorState, setExpandedState?: boolean, featureFlags?: FeatureFlags) => PMNode | null;
7
- export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => (inputMethod: InsertMethod) => Command;
8
- export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => Command;
6
+ export declare const createExpandNode: (state: EditorState, setExpandedState?: boolean, isNestingExpandsSupported?: boolean) => PMNode | null;
7
+ export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => (inputMethod: InsertMethod) => Command;
8
+ export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => Command;
9
9
  export declare const deleteExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
10
10
  export declare const deleteExpandAtPos: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (expandNodePos: number, expandNode: PMNode) => Command;
11
11
  export declare const setSelectionInsideExpand: (expandPos: number) => Command;
@@ -1,5 +1,5 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, FeatureFlags } from '@atlaskit/editor-common/types';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
3
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type InsertMethod } from '../types';
@@ -18,8 +18,8 @@ export declare const toggleExpandExpanded: ({ editorAnalyticsAPI, pos, nodeType,
18
18
  nodeType: NodeType;
19
19
  __livePage: boolean;
20
20
  }) => Command;
21
- export declare const createExpandNode: (state: EditorState, featureFlags?: FeatureFlags) => PMNode | null;
22
- export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => (inputMethod: InsertMethod) => Command;
23
- export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => Command;
21
+ export declare const createExpandNode: (state: EditorState, isNestingExpandsSupported?: boolean) => PMNode | null;
22
+ export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => (inputMethod: InsertMethod) => Command;
23
+ export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => Command;
24
24
  export declare const focusTitle: (pos: number) => Command;
25
25
  export declare const setSelectionInsideExpand: (expandPos: number) => Command;
@@ -1,11 +1,11 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import type { Command, FeatureFlags } from '@atlaskit/editor-common/types';
2
+ import type { Command } from '@atlaskit/editor-common/types';
3
3
  import type { NodeType, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
5
5
  import { type InsertMethod } from '../types';
6
- export declare const createExpandNode: (state: EditorState, setExpandedState?: boolean, featureFlags?: FeatureFlags) => PMNode | null;
7
- export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => (inputMethod: InsertMethod) => Command;
8
- export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, featureFlags?: FeatureFlags) => Command;
6
+ export declare const createExpandNode: (state: EditorState, setExpandedState?: boolean, isNestingExpandsSupported?: boolean) => PMNode | null;
7
+ export declare const insertExpandWithInputMethod: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => (inputMethod: InsertMethod) => Command;
8
+ export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, isNestingExpandsSupported?: boolean) => Command;
9
9
  export declare const deleteExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
10
10
  export declare const deleteExpandAtPos: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (expandNodePos: number, expandNode: PMNode) => Command;
11
11
  export declare const setSelectionInsideExpand: (expandPos: number) => Command;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "2.4.0",
3
+ "version": "2.5.0",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^40.8.1",
37
37
  "@atlaskit/button": "^20.0.0",
38
- "@atlaskit/editor-common": "^87.10.0",
38
+ "@atlaskit/editor-common": "^87.12.0",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.7.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.2.0",
41
41
  "@atlaskit/editor-plugin-editor-disabled": "^1.2.0",
@@ -113,6 +113,9 @@
113
113
  },
114
114
  "platform_editor_single_player_expand_ed_24536": {
115
115
  "type": "boolean"
116
+ },
117
+ "platform_editor_nest_nested_expand_in_expand_jira": {
118
+ "type": "boolean"
116
119
  }
117
120
  }
118
121
  }