@atlaskit/editor-plugin-tasks-and-decisions 5.1.21 → 6.0.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 +40 -0
- package/dist/types/nodeviews/TaskItemNodeView.d.ts +1 -1
- package/dist/types/nodeviews/decisionItemNodeSpec.d.ts +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Task/RequestToEditPopup.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/TaskItemNodeView.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/decisionItemNodeSpec.d.ts +1 -1
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/Task/RequestToEditPopup.d.ts +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 6.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [#181024](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/181024)
|
|
8
|
+
[`8e80c487ca307`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8e80c487ca307) - ##
|
|
9
|
+
Make `@atlaskit/editor-common` a peer dependency
|
|
10
|
+
|
|
11
|
+
**WHAT:** `@atlaskit/editor-common` has been moved from `dependencies` to `peerDependencies` in
|
|
12
|
+
all editor plugin packages.
|
|
13
|
+
|
|
14
|
+
**WHY:** This change ensures that only a single version of `@atlaskit/editor-common` is used in
|
|
15
|
+
consuming applications, preventing issues caused by multiple versions of singleton libraries (such
|
|
16
|
+
as context mismatches or duplicated state). This is especially important for packages that rely on
|
|
17
|
+
shared context or singletons.
|
|
18
|
+
|
|
19
|
+
**HOW TO ADJUST:**
|
|
20
|
+
|
|
21
|
+
- Consumers must now explicitly install `@atlaskit/editor-common` in their own project if they use
|
|
22
|
+
any of these editor plugins.
|
|
23
|
+
- Ensure the version you install matches the version required by the plugins.
|
|
24
|
+
- You can use the
|
|
25
|
+
[`check-peer-dependencies`](https://www.npmjs.com/package/check-peer-dependencies) package to
|
|
26
|
+
verify that all required peer dependencies are installed and compatible.
|
|
27
|
+
- Example install command:
|
|
28
|
+
```
|
|
29
|
+
npm install @atlaskit/editor-common
|
|
30
|
+
```
|
|
31
|
+
or
|
|
32
|
+
```
|
|
33
|
+
yarn add @atlaskit/editor-common
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
**Note:** This is a breaking change. If `@atlaskit/editor-common` is not installed at the
|
|
37
|
+
application level, you may see errors or unexpected behavior.
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies
|
|
42
|
+
|
|
3
43
|
## 5.1.21
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
|
|
7
7
|
interface TaskItemNodeViewOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [string, {
|
|
4
4
|
'data-decision-local-id': any;
|
|
5
5
|
'data-decision-state': any;
|
|
@@ -4,7 +4,7 @@ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider
|
|
|
4
4
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import { type DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
9
9
|
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
10
10
|
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/// <reference types="react" />
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
11
11
|
interface Props {
|
|
12
12
|
element: HTMLElement;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
6
6
|
import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
|
|
7
7
|
interface TaskItemNodeViewOptions {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
|
-
import { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import { type Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [
|
|
4
4
|
string,
|
|
5
5
|
{
|
|
@@ -4,7 +4,7 @@ import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider
|
|
|
4
4
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
7
|
-
import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
7
|
+
import { type DecorationSet } from '@atlaskit/editor-prosemirror/view';
|
|
8
8
|
import type { TaskDecisionProvider } from '@atlaskit/task-decision/types';
|
|
9
9
|
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
10
10
|
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
9
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
|
+
import { type EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
10
10
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
11
11
|
interface Props {
|
|
12
12
|
element: HTMLElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,10 @@
|
|
|
36
36
|
"@atlaskit/analytics-namespaced-context": "^7.0.0",
|
|
37
37
|
"@atlaskit/analytics-next": "^11.1.0",
|
|
38
38
|
"@atlaskit/css": "^0.12.0",
|
|
39
|
-
"@atlaskit/editor-
|
|
40
|
-
"@atlaskit/editor-plugin-
|
|
41
|
-
"@atlaskit/editor-plugin-
|
|
42
|
-
"@atlaskit/editor-plugin-
|
|
43
|
-
"@atlaskit/editor-plugin-type-ahead": "^2.7.0",
|
|
39
|
+
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-context-identifier": "^3.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^5.0.0",
|
|
42
|
+
"@atlaskit/editor-plugin-type-ahead": "^3.0.0",
|
|
44
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
44
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
46
45
|
"@atlaskit/heading": "^5.2.0",
|
|
@@ -50,13 +49,14 @@
|
|
|
50
49
|
"@atlaskit/primitives": "^14.10.0",
|
|
51
50
|
"@atlaskit/prosemirror-input-rules": "^3.3.0",
|
|
52
51
|
"@atlaskit/task-decision": "^19.2.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^8.7.0",
|
|
54
53
|
"@atlaskit/tokens": "^5.4.0",
|
|
55
54
|
"@babel/runtime": "^7.0.0",
|
|
56
55
|
"@compiled/react": "^0.18.3",
|
|
57
56
|
"bind-event-listener": "^3.0.0"
|
|
58
57
|
},
|
|
59
58
|
"peerDependencies": {
|
|
59
|
+
"@atlaskit/editor-common": "^107.6.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"
|