@atlaskit/editor-plugin-tasks-and-decisions 2.14.0 → 2.14.2
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.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 2.14.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#112096](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112096)
|
|
14
|
+
[`5d95afdd358ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5d95afdd358ac) -
|
|
15
|
+
[ux] Creates a package for new QuickInsert and Right Rail UI and adds it under a FF
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 2.14.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -17,6 +17,8 @@ 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"));
|
|
20
22
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
21
23
|
var _decisionItem = require("./nodeviews/toDOM-fixes/decisionItem");
|
|
22
24
|
var _helpers = require("./pm-plugins/helpers");
|
|
@@ -289,6 +291,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
289
291
|
return [{
|
|
290
292
|
id: 'action',
|
|
291
293
|
title: formatMessage(_messages.toolbarInsertBlockMessages.action),
|
|
294
|
+
categories: !(0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
292
295
|
description: quickInsertActionDescription !== undefined && (0, _experiments.editorExperiment)('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(_messages.toolbarInsertBlockMessages.actionDescription),
|
|
293
296
|
priority: 100,
|
|
294
297
|
keywords: ['checkbox', 'task', 'todo'],
|
|
@@ -296,6 +299,11 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
296
299
|
icon: function icon() {
|
|
297
300
|
return (0, _react.jsx)(_quickInsert.IconAction, null);
|
|
298
301
|
},
|
|
302
|
+
iconModern: function iconModern() {
|
|
303
|
+
return (0, _react.jsx)(_task.default, {
|
|
304
|
+
label: formatMessage(_messages.toolbarInsertBlockMessages.action)
|
|
305
|
+
});
|
|
306
|
+
},
|
|
299
307
|
action: function action(insert, state) {
|
|
300
308
|
var _api$analytics5;
|
|
301
309
|
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));
|
|
@@ -304,11 +312,17 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
304
312
|
id: 'decision',
|
|
305
313
|
title: formatMessage(_messages.toolbarInsertBlockMessages.decision),
|
|
306
314
|
description: formatMessage(_messages.toolbarInsertBlockMessages.decisionDescription),
|
|
315
|
+
categories: !(0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
307
316
|
priority: 900,
|
|
308
317
|
keyshortcut: '<>',
|
|
309
318
|
icon: function icon() {
|
|
310
319
|
return (0, _react.jsx)(_quickInsert.IconDecision, null);
|
|
311
320
|
},
|
|
321
|
+
iconModern: function iconModern() {
|
|
322
|
+
return (0, _react.jsx)(_decision.default, {
|
|
323
|
+
label: formatMessage(_messages.toolbarInsertBlockMessages.decision)
|
|
324
|
+
});
|
|
325
|
+
},
|
|
312
326
|
action: function action(insert, state) {
|
|
313
327
|
var _api$analytics6;
|
|
314
328
|
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,6 +11,8 @@ 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';
|
|
14
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
17
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
16
18
|
import { getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -252,11 +254,15 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
252
254
|
}) => [{
|
|
253
255
|
id: 'action',
|
|
254
256
|
title: formatMessage(insertBlockMessages.action),
|
|
257
|
+
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
255
258
|
description: quickInsertActionDescription !== undefined && editorExperiment('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(insertBlockMessages.actionDescription),
|
|
256
259
|
priority: 100,
|
|
257
260
|
keywords: ['checkbox', 'task', 'todo'],
|
|
258
261
|
keyshortcut: '[]',
|
|
259
262
|
icon: () => jsx(IconAction, null),
|
|
263
|
+
iconModern: () => jsx(TaskIcon, {
|
|
264
|
+
label: formatMessage(insertBlockMessages.action)
|
|
265
|
+
}),
|
|
260
266
|
action(insert, state) {
|
|
261
267
|
var _api$analytics5;
|
|
262
268
|
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));
|
|
@@ -265,9 +271,13 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
265
271
|
id: 'decision',
|
|
266
272
|
title: formatMessage(insertBlockMessages.decision),
|
|
267
273
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
274
|
+
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
268
275
|
priority: 900,
|
|
269
276
|
keyshortcut: '<>',
|
|
270
277
|
icon: () => jsx(IconDecision, null),
|
|
278
|
+
iconModern: () => jsx(DecisionIcon, {
|
|
279
|
+
label: formatMessage(insertBlockMessages.decision)
|
|
280
|
+
}),
|
|
271
281
|
action(insert, state) {
|
|
272
282
|
var _api$analytics6;
|
|
273
283
|
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,6 +16,8 @@ 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';
|
|
19
21
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
20
22
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
21
23
|
import { getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -281,6 +283,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
281
283
|
return [{
|
|
282
284
|
id: 'action',
|
|
283
285
|
title: formatMessage(insertBlockMessages.action),
|
|
286
|
+
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
284
287
|
description: quickInsertActionDescription !== undefined && editorExperiment('issue_view_action_items', true) ? quickInsertActionDescription : formatMessage(insertBlockMessages.actionDescription),
|
|
285
288
|
priority: 100,
|
|
286
289
|
keywords: ['checkbox', 'task', 'todo'],
|
|
@@ -288,6 +291,11 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
288
291
|
icon: function icon() {
|
|
289
292
|
return jsx(IconAction, null);
|
|
290
293
|
},
|
|
294
|
+
iconModern: function iconModern() {
|
|
295
|
+
return jsx(TaskIcon, {
|
|
296
|
+
label: formatMessage(insertBlockMessages.action)
|
|
297
|
+
});
|
|
298
|
+
},
|
|
291
299
|
action: function action(insert, state) {
|
|
292
300
|
var _api$analytics5;
|
|
293
301
|
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));
|
|
@@ -296,11 +304,17 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
296
304
|
id: 'decision',
|
|
297
305
|
title: formatMessage(insertBlockMessages.decision),
|
|
298
306
|
description: formatMessage(insertBlockMessages.decisionDescription),
|
|
307
|
+
categories: !editorExperiment('platform_editor_controls', 'control') ? ['recommended'] : undefined,
|
|
299
308
|
priority: 900,
|
|
300
309
|
keyshortcut: '<>',
|
|
301
310
|
icon: function icon() {
|
|
302
311
|
return jsx(IconDecision, null);
|
|
303
312
|
},
|
|
313
|
+
iconModern: function iconModern() {
|
|
314
|
+
return jsx(DecisionIcon, {
|
|
315
|
+
label: formatMessage(insertBlockMessages.decision)
|
|
316
|
+
});
|
|
317
|
+
},
|
|
304
318
|
action: function action(insert, state) {
|
|
305
319
|
var _api$analytics6;
|
|
306
320
|
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.2",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"@atlaskit/adf-schema": "^46.1.0",
|
|
35
35
|
"@atlaskit/analytics-namespaced-context": "^6.13.0",
|
|
36
36
|
"@atlaskit/analytics-next": "^10.3.0",
|
|
37
|
-
"@atlaskit/editor-common": "^99.
|
|
37
|
+
"@atlaskit/editor-common": "^99.13.0",
|
|
38
38
|
"@atlaskit/editor-plugin-analytics": "^1.12.0",
|
|
39
39
|
"@atlaskit/editor-plugin-context-identifier": "^1.4.0",
|
|
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
43
|
"@atlaskit/heading": "4.1.0",
|
|
44
|
-
"@atlaskit/icon": "23.
|
|
44
|
+
"@atlaskit/icon": "23.8.1",
|
|
45
45
|
"@atlaskit/platform-feature-flags": "^1.0.0",
|
|
46
46
|
"@atlaskit/popup": "1.31.2",
|
|
47
47
|
"@atlaskit/primitives": "13.5.0",
|
|
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.45.0",
|
|
51
51
|
"@atlaskit/tokens": "3.3.1",
|
|
52
52
|
"@babel/runtime": "^7.0.0",
|
|
53
53
|
"@emotion/react": "^11.7.1"
|