@atlaskit/editor-plugin-tasks-and-decisions 1.3.3 → 1.4.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 +22 -0
- package/dist/cjs/plugin.js +3 -1
- package/dist/es2019/plugin.js +4 -2
- package/dist/esm/plugin.js +3 -1
- package/dist/types/types.d.ts +2 -1
- package/dist/types-ts4.5/types.d.ts +2 -1
- package/package.json +99 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
|
8
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
|
9
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.3.4
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
|
|
20
|
+
[`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
|
|
21
|
+
[ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
|
|
22
|
+
the fold (in the top 5 results)
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 1.3.3
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -23,6 +23,7 @@ var _ToolbarTask = _interopRequireDefault(require("./ui/ToolbarTask"));
|
|
|
23
23
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
24
24
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
25
25
|
/** @jsx jsx */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
27
|
|
|
27
28
|
var taskDecisionToolbarGroupStyles = (0, _react.css)({
|
|
28
29
|
display: 'flex'
|
|
@@ -48,6 +49,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
48
49
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
49
50
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
50
51
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
52
|
+
getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
|
|
51
53
|
api = _ref2.api;
|
|
52
54
|
var getIdentifierProvider = function getIdentifierProvider() {
|
|
53
55
|
var _api$contextIdentifie;
|
|
@@ -140,7 +142,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
140
142
|
id: 'action',
|
|
141
143
|
title: formatMessage(_messages.toolbarInsertBlockMessages.action),
|
|
142
144
|
description: formatMessage(_messages.toolbarInsertBlockMessages.actionDescription),
|
|
143
|
-
priority: 100,
|
|
145
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
144
146
|
keywords: ['checkbox', 'task', 'todo'],
|
|
145
147
|
keyshortcut: '[]',
|
|
146
148
|
icon: function icon() {
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
4
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -34,7 +35,8 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
34
35
|
config: {
|
|
35
36
|
allowNestedTasks,
|
|
36
37
|
consumeTabs,
|
|
37
|
-
useLongPressSelection
|
|
38
|
+
useLongPressSelection,
|
|
39
|
+
getEditorFeatureFlags
|
|
38
40
|
} = {},
|
|
39
41
|
api
|
|
40
42
|
}) => {
|
|
@@ -132,7 +134,7 @@ export const tasksAndDecisionsPlugin = ({
|
|
|
132
134
|
id: 'action',
|
|
133
135
|
title: formatMessage(insertBlockMessages.action),
|
|
134
136
|
description: formatMessage(insertBlockMessages.actionDescription),
|
|
135
|
-
priority: 100,
|
|
137
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
136
138
|
keywords: ['checkbox', 'task', 'todo'],
|
|
137
139
|
keyshortcut: '[]',
|
|
138
140
|
icon: () => jsx(IconAction, null),
|
package/dist/esm/plugin.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { css, jsx } from '@emotion/react';
|
|
3
4
|
import { decisionItem, decisionList, taskItem, taskList } from '@atlaskit/adf-schema';
|
|
4
5
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
@@ -37,6 +38,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
37
38
|
allowNestedTasks = _ref2$config2.allowNestedTasks,
|
|
38
39
|
consumeTabs = _ref2$config2.consumeTabs,
|
|
39
40
|
useLongPressSelection = _ref2$config2.useLongPressSelection,
|
|
41
|
+
getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
|
|
40
42
|
api = _ref2.api;
|
|
41
43
|
var getIdentifierProvider = function getIdentifierProvider() {
|
|
42
44
|
var _api$contextIdentifie;
|
|
@@ -129,7 +131,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
|
|
|
129
131
|
id: 'action',
|
|
130
132
|
title: formatMessage(insertBlockMessages.action),
|
|
131
133
|
description: formatMessage(insertBlockMessages.actionDescription),
|
|
132
|
-
priority: 100,
|
|
134
|
+
priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
|
|
133
135
|
keywords: ['checkbox', 'task', 'todo'],
|
|
134
136
|
keyshortcut: '[]',
|
|
135
137
|
icon: function icon() {
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
|
|
7
7
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -29,6 +29,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
29
29
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
30
30
|
allowNestedTasks?: boolean;
|
|
31
31
|
consumeTabs?: boolean;
|
|
32
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
32
33
|
}
|
|
33
34
|
export type TaskAndDecisionsSharedState = {
|
|
34
35
|
focusedTaskItemLocalId: string | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DecisionItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { GetEditorFeatureFlags, LongPressSelectionPluginOptions, NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugin-context-identifier';
|
|
7
7
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
@@ -29,6 +29,7 @@ export type AddItemTransactionCreator = (opts: {
|
|
|
29
29
|
export interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
30
30
|
allowNestedTasks?: boolean;
|
|
31
31
|
consumeTabs?: boolean;
|
|
32
|
+
getEditorFeatureFlags?: GetEditorFeatureFlags;
|
|
32
33
|
}
|
|
33
34
|
export type TaskAndDecisionsSharedState = {
|
|
34
35
|
focusedTaskItemLocalId: string | null;
|
package/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
+
"version": "1.4.0",
|
|
4
|
+
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
|
+
"author": "Atlassian Pty Ltd",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
|
+
},
|
|
10
|
+
"atlassian": {
|
|
11
|
+
"team": "Editor: AI",
|
|
12
|
+
"singleton": true,
|
|
13
|
+
"inPublicMirror": false,
|
|
14
|
+
"releaseModel": "continuous",
|
|
15
|
+
"runReact18": false
|
|
16
|
+
},
|
|
17
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
18
|
+
"main": "dist/cjs/index.js",
|
|
19
|
+
"module": "dist/esm/index.js",
|
|
20
|
+
"module:es2019": "dist/es2019/index.js",
|
|
21
|
+
"types": "dist/types/index.d.ts",
|
|
22
|
+
"typesVersions": {
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
|
+
"*": [
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"atlaskit:src": "src/index.ts",
|
|
32
|
+
"af:exports": {
|
|
33
|
+
".": "./src/index.ts"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
37
|
+
"@atlaskit/analytics-namespaced-context": "^6.10.0",
|
|
38
|
+
"@atlaskit/analytics-next": "^9.3.0",
|
|
39
|
+
"@atlaskit/editor-common": "^82.12.0",
|
|
40
|
+
"@atlaskit/editor-plugin-analytics": "^1.3.0",
|
|
41
|
+
"@atlaskit/editor-plugin-context-identifier": "^1.1.0",
|
|
42
|
+
"@atlaskit/editor-plugin-type-ahead": "^1.3.0",
|
|
43
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
44
|
+
"@atlaskit/icon": "^22.4.0",
|
|
45
|
+
"@atlaskit/prosemirror-input-rules": "^3.1.0",
|
|
46
|
+
"@atlaskit/task-decision": "^17.10.0",
|
|
47
|
+
"@babel/runtime": "^7.0.0",
|
|
48
|
+
"@emotion/react": "^11.7.1"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^16.8.0",
|
|
52
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@af/integration-testing": "*",
|
|
56
|
+
"@af/visual-regression": "*",
|
|
57
|
+
"@atlaskit/platform-feature-flags": "^0.2.5",
|
|
58
|
+
"@atlaskit/ssr": "*",
|
|
59
|
+
"@atlaskit/util-data-test": "^17.9.0",
|
|
60
|
+
"@atlaskit/visual-regression": "*",
|
|
61
|
+
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
62
|
+
"@testing-library/react": "^12.1.5",
|
|
63
|
+
"react-dom": "^16.8.0",
|
|
64
|
+
"typescript": "~5.4.2",
|
|
65
|
+
"wait-for-expect": "^1.2.0"
|
|
66
|
+
},
|
|
67
|
+
"techstack": {
|
|
68
|
+
"@atlassian/frontend": {
|
|
69
|
+
"import-structure": [
|
|
70
|
+
"atlassian-conventions"
|
|
71
|
+
],
|
|
72
|
+
"circular-dependencies": [
|
|
73
|
+
"file-and-folder-level"
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"@repo/internal": {
|
|
77
|
+
"dom-events": "use-bind-event-listener",
|
|
78
|
+
"analytics": [
|
|
79
|
+
"analytics-next"
|
|
80
|
+
],
|
|
81
|
+
"design-tokens": [
|
|
82
|
+
"color"
|
|
83
|
+
],
|
|
84
|
+
"theming": [
|
|
85
|
+
"react-context"
|
|
86
|
+
],
|
|
87
|
+
"ui-components": [
|
|
88
|
+
"lite-mode"
|
|
89
|
+
],
|
|
90
|
+
"deprecation": "no-deprecated-imports",
|
|
91
|
+
"styling": [
|
|
92
|
+
"emotion",
|
|
93
|
+
"emotion"
|
|
94
|
+
],
|
|
95
|
+
"imports": [
|
|
96
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
97
|
+
]
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|