@atlaskit/editor-plugin-tasks-and-decisions 8.4.8 → 8.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,25 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 8.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`687c1b8fa7801`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/687c1b8fa7801) -
|
|
8
|
+
EDITOR-1566 bump adf-schema + update validator
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 8.4.9
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`b878645133984`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b878645133984) -
|
|
19
|
+
[ux] Adds revised ranks to use in Turn into menu. It will group the headings together at the top
|
|
20
|
+
of the menu.
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 8.4.8
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -21,6 +21,7 @@ var _messages = require("@atlaskit/editor-common/messages");
|
|
|
21
21
|
var _quickInsert = require("@atlaskit/editor-common/quick-insert");
|
|
22
22
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
23
23
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
24
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
25
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
26
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
26
27
|
var _taskItemNodeSpec = require("./nodeviews/taskItemNodeSpec");
|
|
@@ -124,7 +125,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
124
125
|
parent: {
|
|
125
126
|
type: 'block-menu-section',
|
|
126
127
|
key: _blockMenu.NESTED_FORMAT_MENU_SECTION.key,
|
|
127
|
-
rank: _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
128
|
+
rank: (0, _platformFeatureFlags.fg)('platform_editor_block_menu_format_rank_revised') ? _blockMenu.FORMAT_NESTED_MENU_RANK_REVISED[_blockMenu.FORMAT_TASK_LIST_MENU_ITEM.key] : _blockMenu.FORMAT_NESTED_MENU_RANK[_blockMenu.FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
128
129
|
},
|
|
129
130
|
component: function component() {
|
|
130
131
|
return /*#__PURE__*/React.createElement(_TaskListBlockMenuItem.TaskListBlockMenuItem, {
|
|
@@ -4,12 +4,13 @@ import * as React from 'react';
|
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
5
|
import { decisionList, taskList } from '@atlaskit/adf-schema';
|
|
6
6
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import { FORMAT_TASK_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, NESTED_FORMAT_MENU_SECTION } from '@atlaskit/editor-common/block-menu';
|
|
7
|
+
import { FORMAT_TASK_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, NESTED_FORMAT_MENU_SECTION } from '@atlaskit/editor-common/block-menu';
|
|
8
8
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
9
9
|
import { toolbarInsertBlockMessages as insertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { IconAction, IconDecision } from '@atlaskit/editor-common/quick-insert';
|
|
11
11
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
12
12
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
13
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
14
15
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
15
16
|
import { taskItemNodeSpec, blockTaskItemNodeSpec } from './nodeviews/taskItemNodeSpec';
|
|
@@ -112,7 +113,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
112
113
|
parent: {
|
|
113
114
|
type: 'block-menu-section',
|
|
114
115
|
key: NESTED_FORMAT_MENU_SECTION.key,
|
|
115
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
116
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_TASK_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
116
117
|
},
|
|
117
118
|
component: () => /*#__PURE__*/React.createElement(TaskListBlockMenuItem, {
|
|
118
119
|
api: api
|
|
@@ -7,12 +7,13 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
7
7
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
8
8
|
import { decisionList, taskList } from '@atlaskit/adf-schema';
|
|
9
9
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
10
|
-
import { FORMAT_TASK_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, NESTED_FORMAT_MENU_SECTION } from '@atlaskit/editor-common/block-menu';
|
|
10
|
+
import { FORMAT_TASK_LIST_MENU_ITEM, FORMAT_NESTED_MENU_RANK, FORMAT_NESTED_MENU_RANK_REVISED, NESTED_FORMAT_MENU_SECTION } from '@atlaskit/editor-common/block-menu';
|
|
11
11
|
import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
|
|
12
12
|
import { toolbarInsertBlockMessages as insertBlockMessages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { IconAction, IconDecision } from '@atlaskit/editor-common/quick-insert';
|
|
14
14
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
15
15
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
16
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
16
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
18
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
18
19
|
import { taskItemNodeSpec, blockTaskItemNodeSpec } from './nodeviews/taskItemNodeSpec';
|
|
@@ -115,7 +116,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
|
|
|
115
116
|
parent: {
|
|
116
117
|
type: 'block-menu-section',
|
|
117
118
|
key: NESTED_FORMAT_MENU_SECTION.key,
|
|
118
|
-
rank: FORMAT_NESTED_MENU_RANK[FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
119
|
+
rank: fg('platform_editor_block_menu_format_rank_revised') ? FORMAT_NESTED_MENU_RANK_REVISED[FORMAT_TASK_LIST_MENU_ITEM.key] : FORMAT_NESTED_MENU_RANK[FORMAT_TASK_LIST_MENU_ITEM.key]
|
|
119
120
|
},
|
|
120
121
|
component: function component() {
|
|
121
122
|
return /*#__PURE__*/React.createElement(TaskListBlockMenuItem, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,34 +29,34 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.2.0",
|
|
33
33
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
34
34
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
35
35
|
"@atlaskit/css": "^0.14.0",
|
|
36
|
-
"@atlaskit/editor-plugin-analytics": "^5.
|
|
36
|
+
"@atlaskit/editor-plugin-analytics": "^5.3.0",
|
|
37
37
|
"@atlaskit/editor-plugin-block-menu": "^3.2.0",
|
|
38
38
|
"@atlaskit/editor-plugin-context-identifier": "^5.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-editor-viewmode": "^7.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-selection": "^5.0.0",
|
|
41
|
-
"@atlaskit/editor-plugin-type-ahead": "^5.
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^5.3.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.9.0",
|
|
45
45
|
"@atlaskit/heading": "^5.2.0",
|
|
46
|
-
"@atlaskit/icon": "^28.
|
|
46
|
+
"@atlaskit/icon": "^28.3.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/popup": "^4.4.0",
|
|
49
49
|
"@atlaskit/primitives": "^14.15.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.4.0",
|
|
51
51
|
"@atlaskit/task-decision": "^19.2.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^12.30.0",
|
|
53
53
|
"@atlaskit/tokens": "^6.3.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.3",
|
|
56
56
|
"bind-event-listener": "^3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^109.
|
|
59
|
+
"@atlaskit/editor-common": "^109.16.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@af/integration-testing": "workspace:^",
|
|
66
66
|
"@af/visual-regression": "workspace:^",
|
|
67
67
|
"@atlaskit/ssr": "workspace:^",
|
|
68
|
-
"@atlaskit/util-data-test": "^18.
|
|
68
|
+
"@atlaskit/util-data-test": "^18.3.0",
|
|
69
69
|
"@testing-library/react": "^13.4.0",
|
|
70
70
|
"wait-for-expect": "^1.2.0"
|
|
71
71
|
},
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
},
|
|
111
111
|
"platform_editor_blocktaskitem_patch_2": {
|
|
112
112
|
"type": "boolean"
|
|
113
|
+
},
|
|
114
|
+
"platform_editor_block_menu_format_rank_revised": {
|
|
115
|
+
"type": "boolean"
|
|
113
116
|
}
|
|
114
117
|
}
|
|
115
118
|
}
|