@atlaskit/editor-plugin-tasks-and-decisions 1.3.3 → 1.3.4

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,15 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 1.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#110390](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110390)
8
+ [`bead123202369`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bead123202369) -
9
+ [ux] [ED-23642] Reordering the typeahead so that date, status, code block & info panel are above
10
+ the fold (in the top 5 results)
11
+ - Updated dependencies
12
+
3
13
  ## 1.3.3
4
14
 
5
15
  ### Patch Changes
@@ -48,6 +48,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
48
48
  allowNestedTasks = _ref2$config2.allowNestedTasks,
49
49
  consumeTabs = _ref2$config2.consumeTabs,
50
50
  useLongPressSelection = _ref2$config2.useLongPressSelection,
51
+ getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
51
52
  api = _ref2.api;
52
53
  var getIdentifierProvider = function getIdentifierProvider() {
53
54
  var _api$contextIdentifie;
@@ -140,7 +141,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
140
141
  id: 'action',
141
142
  title: formatMessage(_messages.toolbarInsertBlockMessages.action),
142
143
  description: formatMessage(_messages.toolbarInsertBlockMessages.actionDescription),
143
- priority: 100,
144
+ priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
144
145
  keywords: ['checkbox', 'task', 'todo'],
145
146
  keyshortcut: '[]',
146
147
  icon: function icon() {
@@ -34,7 +34,8 @@ export const tasksAndDecisionsPlugin = ({
34
34
  config: {
35
35
  allowNestedTasks,
36
36
  consumeTabs,
37
- useLongPressSelection
37
+ useLongPressSelection,
38
+ getEditorFeatureFlags
38
39
  } = {},
39
40
  api
40
41
  }) => {
@@ -132,7 +133,7 @@ export const tasksAndDecisionsPlugin = ({
132
133
  id: 'action',
133
134
  title: formatMessage(insertBlockMessages.action),
134
135
  description: formatMessage(insertBlockMessages.actionDescription),
135
- priority: 100,
136
+ priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
136
137
  keywords: ['checkbox', 'task', 'todo'],
137
138
  keyshortcut: '[]',
138
139
  icon: () => jsx(IconAction, null),
@@ -37,6 +37,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
37
37
  allowNestedTasks = _ref2$config2.allowNestedTasks,
38
38
  consumeTabs = _ref2$config2.consumeTabs,
39
39
  useLongPressSelection = _ref2$config2.useLongPressSelection,
40
+ getEditorFeatureFlags = _ref2$config2.getEditorFeatureFlags,
40
41
  api = _ref2.api;
41
42
  var getIdentifierProvider = function getIdentifierProvider() {
42
43
  var _api$contextIdentifie;
@@ -129,7 +130,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref2) {
129
130
  id: 'action',
130
131
  title: formatMessage(insertBlockMessages.action),
131
132
  description: formatMessage(insertBlockMessages.actionDescription),
132
- priority: 100,
133
+ priority: getEditorFeatureFlags !== null && getEditorFeatureFlags !== void 0 && getEditorFeatureFlags().platformEditorTypeaheadImprovedRelevancy ? 800 : 100,
133
134
  keywords: ['checkbox', 'task', 'todo'],
134
135
  keyshortcut: '[]',
135
136
  icon: function icon() {
@@ -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,80 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "1.3.3",
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": "^36.10.7",
37
- "@atlaskit/analytics-namespaced-context": "^6.9.0",
38
- "@atlaskit/analytics-next": "^9.3.0",
39
- "@atlaskit/editor-common": "^82.0.0",
40
- "@atlaskit/editor-plugin-analytics": "^1.2.0",
41
- "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
42
- "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
43
- "@atlaskit/editor-prosemirror": "4.0.1",
44
- "@atlaskit/icon": "^22.3.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
- }
2
+ "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
+ "version": "1.3.4",
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
+ "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
25
+ }
26
+ },
27
+ "sideEffects": false,
28
+ "atlaskit:src": "src/index.ts",
29
+ "af:exports": {
30
+ ".": "./src/index.ts"
31
+ },
32
+ "dependencies": {
33
+ "@atlaskit/adf-schema": "^36.10.7",
34
+ "@atlaskit/analytics-namespaced-context": "^6.10.0",
35
+ "@atlaskit/analytics-next": "^9.3.0",
36
+ "@atlaskit/editor-common": "^82.6.0",
37
+ "@atlaskit/editor-plugin-analytics": "^1.2.0",
38
+ "@atlaskit/editor-plugin-context-identifier": "^1.1.0",
39
+ "@atlaskit/editor-plugin-type-ahead": "^1.2.0",
40
+ "@atlaskit/editor-prosemirror": "4.0.1",
41
+ "@atlaskit/icon": "^22.3.0",
42
+ "@atlaskit/prosemirror-input-rules": "^3.1.0",
43
+ "@atlaskit/task-decision": "^17.10.0",
44
+ "@babel/runtime": "^7.0.0",
45
+ "@emotion/react": "^11.7.1"
46
+ },
47
+ "peerDependencies": {
48
+ "react": "^16.8.0",
49
+ "react-intl-next": "npm:react-intl@^5.18.1"
50
+ },
51
+ "devDependencies": {
52
+ "@af/integration-testing": "*",
53
+ "@af/visual-regression": "*",
54
+ "@atlaskit/platform-feature-flags": "^0.2.5",
55
+ "@atlaskit/ssr": "*",
56
+ "@atlaskit/util-data-test": "^17.9.0",
57
+ "@atlaskit/visual-regression": "*",
58
+ "@atlassian/feature-flags-test-utils": "^0.2.0",
59
+ "@testing-library/react": "^12.1.5",
60
+ "react-dom": "^16.8.0",
61
+ "typescript": "~5.4.2",
62
+ "wait-for-expect": "^1.2.0"
63
+ },
64
+ "techstack": {
65
+ "@atlassian/frontend": {
66
+ "import-structure": ["atlassian-conventions"],
67
+ "circular-dependencies": ["file-and-folder-level"]
68
+ },
69
+ "@repo/internal": {
70
+ "dom-events": "use-bind-event-listener",
71
+ "analytics": ["analytics-next"],
72
+ "design-tokens": ["color"],
73
+ "theming": ["react-context"],
74
+ "ui-components": ["lite-mode"],
75
+ "deprecation": "no-deprecated-imports",
76
+ "styling": ["emotion", "emotion"],
77
+ "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
78
+ }
79
+ }
80
+ }