@atlaskit/editor-plugin-tasks-and-decisions 15.0.5 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 15.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`b483e293da76f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b483e293da76f) -
8
+ Add a gated `isSuggested` attribute to block menu element transformed analytics events so
9
+ suggested and non-suggested transform selections can be distinguished. The event attribute is
10
+ gated behind the `platform_editor_blocks_patch_2` feature gate.
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+
16
+ ## 15.0.6
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 15.0.5
4
23
 
5
24
  ### Patch Changes
@@ -136,8 +136,11 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
136
136
  rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM.key]
137
137
  },
138
138
  component: function component() {
139
+ var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
140
+ isSuggested = _ref5.isSuggested;
139
141
  return /*#__PURE__*/React.createElement(_TaskListBlockMenuItem.TaskListBlockMenuItem, {
140
- api: api
142
+ api: api,
143
+ isSuggested: isSuggested
141
144
  });
142
145
  },
143
146
  isHidden: function isHidden() {
@@ -153,8 +156,11 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
153
156
  rank: _blockMenu.TRANSFORM_STRUCTURE_MENU_SECTION_RANK[_blockMenu.TRANSFORM_STRUCTURE_DECISION_MENU_ITEM.key]
154
157
  },
155
158
  component: function component() {
159
+ var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
160
+ isSuggested = _ref6.isSuggested;
156
161
  return /*#__PURE__*/React.createElement(_DecisionListBlockMenuItem.DecisionListBlockMenuItem, {
157
- api: api
162
+ api: api,
163
+ isSuggested: isSuggested
158
164
  });
159
165
  },
160
166
  isHidden: function isHidden() {
@@ -211,16 +217,16 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
211
217
  return (0, _toggleTasklistCommands.toggleTaskList)(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(targetType);
212
218
  },
213
219
  updateEditPermission: function updateEditPermission(hasEditPermission) {
214
- return function (_ref5) {
215
- var tr = _ref5.tr;
220
+ return function (_ref7) {
221
+ var tr = _ref7.tr;
216
222
  return tr.setMeta(_pluginKey.stateKey, {
217
223
  hasEditPermission: hasEditPermission
218
224
  });
219
225
  };
220
226
  },
221
227
  updateHasRequestedEditPermission: function updateHasRequestedEditPermission(hasRequestedEditPermission) {
222
- return function (_ref6) {
223
- var tr = _ref6.tr;
228
+ return function (_ref8) {
229
+ var tr = _ref8.tr;
224
230
  return tr.setMeta(_pluginKey.stateKey, {
225
231
  hasRequestedEditPermission: hasRequestedEditPermission
226
232
  });
@@ -249,8 +255,8 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
249
255
  return _context.abrupt("return", false);
250
256
  case 2:
251
257
  previousTaskAndDecisionProvider = provider;
252
- return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref7) {
253
- var tr = _ref7.tr;
258
+ return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref9) {
259
+ var tr = _ref9.tr;
254
260
  return (0, _insertCommands.setProvider)(provider)(tr);
255
261
  })) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false);
256
262
  case 3:
@@ -268,33 +274,33 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
268
274
  pmPlugins: function pmPlugins() {
269
275
  return [{
270
276
  name: 'tasksAndDecisions',
271
- plugin: function plugin(_ref8) {
272
- var portalProviderAPI = _ref8.portalProviderAPI,
273
- eventDispatcher = _ref8.eventDispatcher,
274
- dispatch = _ref8.dispatch,
275
- getIntl = _ref8.getIntl;
277
+ plugin: function plugin(_ref0) {
278
+ var portalProviderAPI = _ref0.portalProviderAPI,
279
+ eventDispatcher = _ref0.eventDispatcher,
280
+ dispatch = _ref0.dispatch,
281
+ getIntl = _ref0.getIntl;
276
282
  return (0, _main.createPlugin)(portalProviderAPI, eventDispatcher, dispatch, api, getIntl, useLongPressSelection, hasEditPermission, hasRequestedEditPermission, requestToEditContent, taskPlaceholder);
277
283
  }
278
284
  }, {
279
285
  name: 'tasksAndDecisionsInputRule',
280
- plugin: function plugin(_ref9) {
286
+ plugin: function plugin(_ref1) {
281
287
  var _api$analytics5;
282
- var schema = _ref9.schema,
283
- featureFlags = _ref9.featureFlags;
288
+ var schema = _ref1.schema,
289
+ featureFlags = _ref1.featureFlags;
284
290
  return (0, _inputRules.default)(api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions, getIdentifierProvider)(schema, featureFlags);
285
291
  }
286
292
  }, {
287
293
  name: 'tasksAndDecisionsKeyMap',
288
- plugin: function plugin(_ref0) {
289
- var schema = _ref0.schema;
294
+ plugin: function plugin(_ref10) {
295
+ var schema = _ref10.schema;
290
296
  return (0, _keymaps.default)(schema, api, allowNestedTasks, consumeTabs);
291
297
  }
292
298
  } // Needs to be after "save-on-enter"
293
299
  ];
294
300
  },
295
- secondaryToolbarComponent: function secondaryToolbarComponent(_ref1) {
296
- var editorView = _ref1.editorView,
297
- disabled = _ref1.disabled;
301
+ secondaryToolbarComponent: function secondaryToolbarComponent(_ref11) {
302
+ var editorView = _ref11.editorView,
303
+ disabled = _ref11.disabled;
298
304
  return /*#__PURE__*/React.createElement("div", {
299
305
  className: (0, _runtime.ax)(["_1e0c1txw"])
300
306
  }, /*#__PURE__*/React.createElement(_ToolbarDecision.default, {
@@ -309,12 +315,12 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
309
315
  editorAPI: api
310
316
  }));
311
317
  },
312
- contentComponent: function contentComponent(_ref10) {
313
- var editorView = _ref10.editorView,
314
- dispatchAnalyticsEvent = _ref10.dispatchAnalyticsEvent,
315
- popupsMountPoint = _ref10.popupsMountPoint,
316
- popupsBoundariesElement = _ref10.popupsBoundariesElement,
317
- popupsScrollableElement = _ref10.popupsScrollableElement;
318
+ contentComponent: function contentComponent(_ref12) {
319
+ var editorView = _ref12.editorView,
320
+ dispatchAnalyticsEvent = _ref12.dispatchAnalyticsEvent,
321
+ popupsMountPoint = _ref12.popupsMountPoint,
322
+ popupsBoundariesElement = _ref12.popupsBoundariesElement,
323
+ popupsScrollableElement = _ref12.popupsScrollableElement;
318
324
  if (!editorView) {
319
325
  return null;
320
326
  }
@@ -328,8 +334,8 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
328
334
  });
329
335
  },
330
336
  pluginsOptions: {
331
- quickInsert: function quickInsert(_ref11) {
332
- var formatMessage = _ref11.formatMessage;
337
+ quickInsert: function quickInsert(_ref13) {
338
+ var formatMessage = _ref13.formatMessage;
333
339
  return [{
334
340
  id: 'action',
335
341
  title: formatMessage(_messages.toolbarInsertBlockMessages.action),
@@ -13,7 +13,8 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
13
13
  var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
14
14
  var NODE_NAME = 'decisionList';
15
15
  var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
16
- var api = _ref.api;
16
+ var api = _ref.api,
17
+ isSuggested = _ref.isSuggested;
17
18
  var _useIntl = (0, _reactIntl.useIntl)(),
18
19
  formatMessage = _useIntl.formatMessage;
19
20
  var onClick = function onClick(event) {
@@ -24,6 +25,7 @@ var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function Dec
24
25
  var tr = _ref2.tr;
25
26
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
26
27
  inputMethod: inputMethod,
28
+ isSuggested: isSuggested,
27
29
  triggeredFrom: triggeredFrom,
28
30
  targetTypeName: NODE_NAME
29
31
  });
@@ -13,7 +13,8 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
13
13
  var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
14
14
  var NODE_NAME = 'taskList';
15
15
  var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
16
- var api = _ref.api;
16
+ var api = _ref.api,
17
+ isSuggested = _ref.isSuggested;
17
18
  var _useIntl = (0, _reactIntl.useIntl)(),
18
19
  formatMessage = _useIntl.formatMessage;
19
20
  var onClick = function onClick(event) {
@@ -24,6 +25,7 @@ var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlo
24
25
  var tr = _ref2.tr;
25
26
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
26
27
  inputMethod: inputMethod,
28
+ isSuggested: isSuggested,
27
29
  triggeredFrom: triggeredFrom,
28
30
  targetTypeName: NODE_NAME
29
31
  });
@@ -123,9 +123,12 @@ export const tasksAndDecisionsPlugin = ({
123
123
  key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
124
124
  rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM.key]
125
125
  },
126
- component: () => {
126
+ component: ({
127
+ isSuggested
128
+ } = {}) => {
127
129
  return /*#__PURE__*/React.createElement(TaskListBlockMenuItem, {
128
- api: api
130
+ api: api,
131
+ isSuggested: isSuggested
129
132
  });
130
133
  },
131
134
  isHidden: () => {
@@ -140,9 +143,12 @@ export const tasksAndDecisionsPlugin = ({
140
143
  key: TRANSFORM_STRUCTURE_MENU_SECTION.key,
141
144
  rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_DECISION_MENU_ITEM.key]
142
145
  },
143
- component: () => {
146
+ component: ({
147
+ isSuggested
148
+ } = {}) => {
144
149
  return /*#__PURE__*/React.createElement(DecisionListBlockMenuItem, {
145
- api: api
150
+ api: api,
151
+ isSuggested: isSuggested
146
152
  });
147
153
  },
148
154
  isHidden: () => {
@@ -6,7 +6,8 @@ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import DecisionIcon from '@atlaskit/icon/core/decision';
7
7
  const NODE_NAME = 'decisionList';
8
8
  export const DecisionListBlockMenuItem = ({
9
- api
9
+ api,
10
+ isSuggested
10
11
  }) => {
11
12
  const {
12
13
  formatMessage
@@ -20,6 +21,7 @@ export const DecisionListBlockMenuItem = ({
20
21
  var _api$blockMenu;
21
22
  const command = api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
22
23
  inputMethod,
24
+ isSuggested,
23
25
  triggeredFrom,
24
26
  targetTypeName: NODE_NAME
25
27
  });
@@ -6,7 +6,8 @@ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import TaskIcon from '@atlaskit/icon/core/task';
7
7
  const NODE_NAME = 'taskList';
8
8
  export const TaskListBlockMenuItem = ({
9
- api
9
+ api,
10
+ isSuggested
10
11
  }) => {
11
12
  const {
12
13
  formatMessage
@@ -20,6 +21,7 @@ export const TaskListBlockMenuItem = ({
20
21
  var _api$blockMenu;
21
22
  const command = api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
22
23
  inputMethod,
24
+ isSuggested,
23
25
  triggeredFrom,
24
26
  targetTypeName: NODE_NAME
25
27
  });
@@ -127,8 +127,11 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
127
127
  rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM.key]
128
128
  },
129
129
  component: function component() {
130
+ var _ref5 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
131
+ isSuggested = _ref5.isSuggested;
130
132
  return /*#__PURE__*/React.createElement(TaskListBlockMenuItem, {
131
- api: api
133
+ api: api,
134
+ isSuggested: isSuggested
132
135
  });
133
136
  },
134
137
  isHidden: function isHidden() {
@@ -144,8 +147,11 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
144
147
  rank: TRANSFORM_STRUCTURE_MENU_SECTION_RANK[TRANSFORM_STRUCTURE_DECISION_MENU_ITEM.key]
145
148
  },
146
149
  component: function component() {
150
+ var _ref6 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
151
+ isSuggested = _ref6.isSuggested;
147
152
  return /*#__PURE__*/React.createElement(DecisionListBlockMenuItem, {
148
- api: api
153
+ api: api,
154
+ isSuggested: isSuggested
149
155
  });
150
156
  },
151
157
  isHidden: function isHidden() {
@@ -202,16 +208,16 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
202
208
  return _toggleTaskList(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(targetType);
203
209
  },
204
210
  updateEditPermission: function updateEditPermission(hasEditPermission) {
205
- return function (_ref5) {
206
- var tr = _ref5.tr;
211
+ return function (_ref7) {
212
+ var tr = _ref7.tr;
207
213
  return tr.setMeta(taskPluginKey, {
208
214
  hasEditPermission: hasEditPermission
209
215
  });
210
216
  };
211
217
  },
212
218
  updateHasRequestedEditPermission: function updateHasRequestedEditPermission(hasRequestedEditPermission) {
213
- return function (_ref6) {
214
- var tr = _ref6.tr;
219
+ return function (_ref8) {
220
+ var tr = _ref8.tr;
215
221
  return tr.setMeta(taskPluginKey, {
216
222
  hasRequestedEditPermission: hasRequestedEditPermission
217
223
  });
@@ -240,8 +246,8 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
240
246
  return _context.abrupt("return", false);
241
247
  case 2:
242
248
  previousTaskAndDecisionProvider = provider;
243
- return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref7) {
244
- var tr = _ref7.tr;
249
+ return _context.abrupt("return", (_api$core$actions$exe = api === null || api === void 0 ? void 0 : api.core.actions.execute(function (_ref9) {
250
+ var tr = _ref9.tr;
245
251
  return _setProvider(provider)(tr);
246
252
  })) !== null && _api$core$actions$exe !== void 0 ? _api$core$actions$exe : false);
247
253
  case 3:
@@ -259,33 +265,33 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
259
265
  pmPlugins: function pmPlugins() {
260
266
  return [{
261
267
  name: 'tasksAndDecisions',
262
- plugin: function plugin(_ref8) {
263
- var portalProviderAPI = _ref8.portalProviderAPI,
264
- eventDispatcher = _ref8.eventDispatcher,
265
- dispatch = _ref8.dispatch,
266
- getIntl = _ref8.getIntl;
268
+ plugin: function plugin(_ref0) {
269
+ var portalProviderAPI = _ref0.portalProviderAPI,
270
+ eventDispatcher = _ref0.eventDispatcher,
271
+ dispatch = _ref0.dispatch,
272
+ getIntl = _ref0.getIntl;
267
273
  return createPlugin(portalProviderAPI, eventDispatcher, dispatch, api, getIntl, useLongPressSelection, hasEditPermission, hasRequestedEditPermission, requestToEditContent, taskPlaceholder);
268
274
  }
269
275
  }, {
270
276
  name: 'tasksAndDecisionsInputRule',
271
- plugin: function plugin(_ref9) {
277
+ plugin: function plugin(_ref1) {
272
278
  var _api$analytics5;
273
- var schema = _ref9.schema,
274
- featureFlags = _ref9.featureFlags;
279
+ var schema = _ref1.schema,
280
+ featureFlags = _ref1.featureFlags;
275
281
  return inputRulePlugin(api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions, getIdentifierProvider)(schema, featureFlags);
276
282
  }
277
283
  }, {
278
284
  name: 'tasksAndDecisionsKeyMap',
279
- plugin: function plugin(_ref0) {
280
- var schema = _ref0.schema;
285
+ plugin: function plugin(_ref10) {
286
+ var schema = _ref10.schema;
281
287
  return keymap(schema, api, allowNestedTasks, consumeTabs);
282
288
  }
283
289
  } // Needs to be after "save-on-enter"
284
290
  ];
285
291
  },
286
- secondaryToolbarComponent: function secondaryToolbarComponent(_ref1) {
287
- var editorView = _ref1.editorView,
288
- disabled = _ref1.disabled;
292
+ secondaryToolbarComponent: function secondaryToolbarComponent(_ref11) {
293
+ var editorView = _ref11.editorView,
294
+ disabled = _ref11.disabled;
289
295
  return /*#__PURE__*/React.createElement("div", {
290
296
  className: ax(["_1e0c1txw"])
291
297
  }, /*#__PURE__*/React.createElement(ToolbarDecision, {
@@ -300,12 +306,12 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
300
306
  editorAPI: api
301
307
  }));
302
308
  },
303
- contentComponent: function contentComponent(_ref10) {
304
- var editorView = _ref10.editorView,
305
- dispatchAnalyticsEvent = _ref10.dispatchAnalyticsEvent,
306
- popupsMountPoint = _ref10.popupsMountPoint,
307
- popupsBoundariesElement = _ref10.popupsBoundariesElement,
308
- popupsScrollableElement = _ref10.popupsScrollableElement;
309
+ contentComponent: function contentComponent(_ref12) {
310
+ var editorView = _ref12.editorView,
311
+ dispatchAnalyticsEvent = _ref12.dispatchAnalyticsEvent,
312
+ popupsMountPoint = _ref12.popupsMountPoint,
313
+ popupsBoundariesElement = _ref12.popupsBoundariesElement,
314
+ popupsScrollableElement = _ref12.popupsScrollableElement;
309
315
  if (!editorView) {
310
316
  return null;
311
317
  }
@@ -319,8 +325,8 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
319
325
  });
320
326
  },
321
327
  pluginsOptions: {
322
- quickInsert: function quickInsert(_ref11) {
323
- var formatMessage = _ref11.formatMessage;
328
+ quickInsert: function quickInsert(_ref13) {
329
+ var formatMessage = _ref13.formatMessage;
324
330
  return [{
325
331
  id: 'action',
326
332
  title: formatMessage(insertBlockMessages.action),
@@ -6,7 +6,8 @@ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import DecisionIcon from '@atlaskit/icon/core/decision';
7
7
  var NODE_NAME = 'decisionList';
8
8
  export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
9
- var api = _ref.api;
9
+ var api = _ref.api,
10
+ isSuggested = _ref.isSuggested;
10
11
  var _useIntl = useIntl(),
11
12
  formatMessage = _useIntl.formatMessage;
12
13
  var onClick = function onClick(event) {
@@ -17,6 +18,7 @@ export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref)
17
18
  var tr = _ref2.tr;
18
19
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
19
20
  inputMethod: inputMethod,
21
+ isSuggested: isSuggested,
20
22
  triggeredFrom: triggeredFrom,
21
23
  targetTypeName: NODE_NAME
22
24
  });
@@ -6,7 +6,8 @@ import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
6
6
  import TaskIcon from '@atlaskit/icon/core/task';
7
7
  var NODE_NAME = 'taskList';
8
8
  export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
9
- var api = _ref.api;
9
+ var api = _ref.api,
10
+ isSuggested = _ref.isSuggested;
10
11
  var _useIntl = useIntl(),
11
12
  formatMessage = _useIntl.formatMessage;
12
13
  var onClick = function onClick(event) {
@@ -17,6 +18,7 @@ export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
17
18
  var tr = _ref2.tr;
18
19
  var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
19
20
  inputMethod: inputMethod,
21
+ isSuggested: isSuggested,
20
22
  triggeredFrom: triggeredFrom,
21
23
  targetTypeName: NODE_NAME
22
24
  });
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
4
- export declare const DecisionListBlockMenuItem: ({ api, }: {
4
+ export declare const DecisionListBlockMenuItem: ({ api, isSuggested, }: {
5
5
  api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
6
+ isSuggested?: boolean;
6
7
  }) => React.JSX.Element | null;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
3
  import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
4
- export declare const TaskListBlockMenuItem: ({ api, }: {
4
+ export declare const TaskListBlockMenuItem: ({ api, isSuggested, }: {
5
5
  api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
6
+ isSuggested?: boolean;
6
7
  }) => React.JSX.Element | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "15.0.5",
3
+ "version": "15.1.0",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,12 +25,12 @@
25
25
  "@atlaskit/analytics-namespaced-context": "^8.0.0",
26
26
  "@atlaskit/css": "^1.0.0",
27
27
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
28
- "@atlaskit/editor-plugin-block-menu": "^11.0.0",
28
+ "@atlaskit/editor-plugin-block-menu": "^11.1.0",
29
29
  "@atlaskit/editor-plugin-context-identifier": "^12.0.0",
30
30
  "@atlaskit/editor-plugin-editor-viewmode": "^14.0.0",
31
31
  "@atlaskit/editor-plugin-selection": "^12.0.0",
32
32
  "@atlaskit/editor-plugin-toolbar": "^9.0.0",
33
- "@atlaskit/editor-plugin-type-ahead": "^12.0.0",
33
+ "@atlaskit/editor-plugin-type-ahead": "^12.1.0",
34
34
  "@atlaskit/editor-prosemirror": "^8.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.0.0",
36
36
  "@atlaskit/editor-toolbar": "^2.0.0",
@@ -40,15 +40,15 @@
40
40
  "@atlaskit/platform-feature-flags": "^2.0.0",
41
41
  "@atlaskit/primitives": "^20.0.0",
42
42
  "@atlaskit/prosemirror-input-rules": "^4.0.0",
43
- "@atlaskit/task-decision": "^21.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^108.3.0",
45
- "@atlaskit/tokens": "^14.0.0",
43
+ "@atlaskit/task-decision": "^21.2.0",
44
+ "@atlaskit/tmp-editor-statsig": "^110.0.0",
45
+ "@atlaskit/tokens": "^15.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@compiled/react": "^0.20.0",
48
48
  "bind-event-listener": "^3.0.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^116.4.0",
51
+ "@atlaskit/editor-common": "^116.11.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -58,7 +58,7 @@
58
58
  "@testing-library/react": "^16.3.0",
59
59
  "react": "^18.2.0",
60
60
  "react-dom": "^18.2.0",
61
- "react-intl": "^6.6.2",
61
+ "react-intl": "^7.0.0",
62
62
  "wait-for-expect": "^1.2.0"
63
63
  },
64
64
  "techstack": {