@atlaskit/editor-plugin-tasks-and-decisions 2.14.7 → 2.14.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 2.14.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.14.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#115686](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/115686)
|
|
14
|
+
[`3bc33ee6062f6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3bc33ee6062f6) -
|
|
15
|
+
Removes unused categories and iconModern and maps items to new IA
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.14.7
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -17,8 +17,6 @@ var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
19
19
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
20
|
-
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
21
|
-
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
22
20
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
23
21
|
var _decisionItem = require("./nodeviews/toDOM-fixes/decisionItem");
|
|
24
22
|
var _helpers = require("./pm-plugins/helpers");
|
|
@@ -291,7 +289,6 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
291
289
|
return [{
|
|
292
290
|
id: 'action',
|
|
293
291
|
title: formatMessage(_messages.toolbarInsertBlockMessages.action),
|
|
294
|
-
categories: !(0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
295
292
|
description: quickInsertActionDescription !== undefined && (0, _experiments.editorExperiment)('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(_messages.toolbarInsertBlockMessages.actionDescription),
|
|
296
293
|
priority: 100,
|
|
297
294
|
keywords: ['checkbox', 'task', 'todo'],
|
|
@@ -299,11 +296,6 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
299
296
|
icon: function icon() {
|
|
300
297
|
return (0, _react.jsx)(_quickInsert.IconAction, null);
|
|
301
298
|
},
|
|
302
|
-
iconModern: function iconModern() {
|
|
303
|
-
return (0, _react.jsx)(_task.default, {
|
|
304
|
-
label: formatMessage(_messages.toolbarInsertBlockMessages.action)
|
|
305
|
-
});
|
|
306
|
-
},
|
|
307
299
|
action: function action(insert, state) {
|
|
308
300
|
var _api$analytics5;
|
|
309
301
|
return (0, _insertCommands.insertTaskDecisionAction)(api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions, getIdentifierProvider)(state, 'taskList', _analytics.INPUT_METHOD.QUICK_INSERT, addItem(insert, 'taskList', state.schema));
|
|
@@ -312,17 +304,11 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
312
304
|
id: 'decision',
|
|
313
305
|
title: formatMessage(_messages.toolbarInsertBlockMessages.decision),
|
|
314
306
|
description: formatMessage(_messages.toolbarInsertBlockMessages.decisionDescription),
|
|
315
|
-
categories: !(0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
316
307
|
priority: 900,
|
|
317
308
|
keyshortcut: '<>',
|
|
318
309
|
icon: function icon() {
|
|
319
310
|
return (0, _react.jsx)(_quickInsert.IconDecision, null);
|
|
320
311
|
},
|
|
321
|
-
iconModern: function iconModern() {
|
|
322
|
-
return (0, _react.jsx)(_decision.default, {
|
|
323
|
-
label: formatMessage(_messages.toolbarInsertBlockMessages.decision)
|
|
324
|
-
});
|
|
325
|
-
},
|
|
326
312
|
action: function action(insert, state) {
|
|
327
313
|
var _api$analytics6;
|
|
328
314
|
return (0, _insertCommands.insertTaskDecisionAction)(api === null || api === void 0 || (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions, getIdentifierProvider)(state, 'decisionList', _analytics.INPUT_METHOD.QUICK_INSERT, addItem(insert, 'decisionList', state.schema));
|
|
@@ -11,8 +11,6 @@ import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
11
11
|
import { toolbarInsertBlockMessages as insertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { IconAction, IconDecision } from '@atlaskit/editor-common/quick-insert';
|
|
13
13
|
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
14
|
-
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
15
|
-
import TaskIcon from '@atlaskit/icon/core/task';
|
|
16
14
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
15
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
18
16
|
import { getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -254,15 +252,11 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
254
252
|
}) => [{
|
|
255
253
|
id: 'action',
|
|
256
254
|
title: formatMessage(insertBlockMessages.action),
|
|
257
|
-
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
258
255
|
description: quickInsertActionDescription !== undefined && editorExperiment('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(insertBlockMessages.actionDescription),
|
|
259
256
|
priority: 100,
|
|
260
257
|
keywords: ['checkbox', 'task', 'todo'],
|
|
261
258
|
keyshortcut: '[]',
|
|
262
259
|
icon: () => jsx(IconAction, null),
|
|
263
|
-
iconModern: () => jsx(TaskIcon, {
|
|
264
|
-
label: formatMessage(insertBlockMessages.action)
|
|
265
|
-
}),
|
|
266
260
|
action(insert, state) {
|
|
267
261
|
var _api$analytics5;
|
|
268
262
|
return insertTaskDecisionAction(api === null || api === void 0 ? void 0 : (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions, getIdentifierProvider)(state, 'taskList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'taskList', state.schema));
|
|
@@ -271,13 +265,9 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
271
265
|
id: 'decision',
|
|
272
266
|
title: formatMessage(insertBlockMessages.decision),
|
|
273
267
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
274
|
-
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
275
268
|
priority: 900,
|
|
276
269
|
keyshortcut: '<>',
|
|
277
270
|
icon: () => jsx(IconDecision, null),
|
|
278
|
-
iconModern: () => jsx(DecisionIcon, {
|
|
279
|
-
label: formatMessage(insertBlockMessages.decision)
|
|
280
|
-
}),
|
|
281
271
|
action(insert, state) {
|
|
282
272
|
var _api$analytics6;
|
|
283
273
|
return insertTaskDecisionAction(api === null || api === void 0 ? void 0 : (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions, getIdentifierProvider)(state, 'decisionList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'decisionList', state.schema));
|
|
@@ -16,8 +16,6 @@ import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
16
16
|
import { toolbarInsertBlockMessages as insertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
17
17
|
import { IconAction, IconDecision } from '@atlaskit/editor-common/quick-insert';
|
|
18
18
|
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
19
|
-
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
20
|
-
import TaskIcon from '@atlaskit/icon/core/task';
|
|
21
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
22
20
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
23
21
|
import { getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -283,7 +281,6 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
283
281
|
return [{
|
|
284
282
|
id: 'action',
|
|
285
283
|
title: formatMessage(insertBlockMessages.action),
|
|
286
|
-
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
287
284
|
description: quickInsertActionDescription !== undefined && editorExperiment('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(insertBlockMessages.actionDescription),
|
|
288
285
|
priority: 100,
|
|
289
286
|
keywords: ['checkbox', 'task', 'todo'],
|
|
@@ -291,11 +288,6 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
291
288
|
icon: function icon() {
|
|
292
289
|
return jsx(IconAction, null);
|
|
293
290
|
},
|
|
294
|
-
iconModern: function iconModern() {
|
|
295
|
-
return jsx(TaskIcon, {
|
|
296
|
-
label: formatMessage(insertBlockMessages.action)
|
|
297
|
-
});
|
|
298
|
-
},
|
|
299
291
|
action: function action(insert, state) {
|
|
300
292
|
var _api$analytics5;
|
|
301
293
|
return insertTaskDecisionAction(api === null || api === void 0 || (_api$analytics5 = api.analytics) === null || _api$analytics5 === void 0 ? void 0 : _api$analytics5.actions, getIdentifierProvider)(state, 'taskList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'taskList', state.schema));
|
|
@@ -304,17 +296,11 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
304
296
|
id: 'decision',
|
|
305
297
|
title: formatMessage(insertBlockMessages.decision),
|
|
306
298
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
307
|
-
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
308
299
|
priority: 900,
|
|
309
300
|
keyshortcut: '<>',
|
|
310
301
|
icon: function icon() {
|
|
311
302
|
return jsx(IconDecision, null);
|
|
312
303
|
},
|
|
313
|
-
iconModern: function iconModern() {
|
|
314
|
-
return jsx(DecisionIcon, {
|
|
315
|
-
label: formatMessage(insertBlockMessages.decision)
|
|
316
|
-
});
|
|
317
|
-
},
|
|
318
304
|
action: function action(insert, state) {
|
|
319
305
|
var _api$analytics6;
|
|
320
306
|
return insertTaskDecisionAction(api === null || api === void 0 || (_api$analytics6 = api.analytics) === null || _api$analytics6 === void 0 ? void 0 : _api$analytics6.actions, getIdentifierProvider)(state, 'decisionList', INPUT_METHOD.QUICK_INSERT, addItem(insert, 'decisionList', state.schema));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.9",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "2.2.0",
|
|
41
41
|
"@atlaskit/editor-plugin-type-ahead": "^1.13.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
|
-
"@atlaskit/heading": "4.
|
|
43
|
+
"@atlaskit/heading": "4.2.0",
|
|
44
44
|
"@atlaskit/icon": "23.9.1",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
46
46
|
"@atlaskit/popup": "1.31.3",
|
|
47
47
|
"@atlaskit/primitives": "13.5.1",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
49
49
|
"@atlaskit/task-decision": "^17.12.0",
|
|
50
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
50
|
+
"@atlaskit/tmp-editor-statsig": "^2.47.0",
|
|
51
51
|
"@atlaskit/tokens": "3.3.2",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|