@atlaskit/editor-plugin-tasks-and-decisions 11.3.3 → 11.3.5
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 +14 -0
- package/dist/types/nodeviews/DecisionItemNodeView.d.ts +3 -3
- package/dist/types/nodeviews/TaskItemNodeView.d.ts +2 -2
- package/dist/types/nodeviews/decisionItemNodeSpec.d.ts +2 -2
- package/dist/types/nodeviews/task-node-view.d.ts +1 -1
- package/dist/types/nodeviews/taskItemNodeSpec.d.ts +1 -1
- package/dist/types/pm-plugins/commands.d.ts +1 -1
- package/dist/types/pm-plugins/helpers.d.ts +2 -1
- package/dist/types/pm-plugins/main.d.ts +2 -2
- package/dist/types/pm-plugins/task-list-indentation.d.ts +1 -1
- package/dist/types/pm-plugins/utils/paste.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/ui/Task/index.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/DecisionItemNodeView.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/TaskItemNodeView.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/decisionItemNodeSpec.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/task-node-view.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/taskItemNodeSpec.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/commands.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/helpers.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/task-list-indentation.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/utils/paste.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/dist/types-ts4.5/ui/Task/index.d.ts +2 -2
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 11.3.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.3.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`86fd5ef0f1d07`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/86fd5ef0f1d07) -
|
|
14
|
+
Mechanical type-import autofix for text formatting editor plugins.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 11.3.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
5
5
|
* NodeView for the DecisionItem node.
|
|
6
6
|
* It renders the decision item with its content and exposes the contentDOM to prosemirror.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const decisionItemToDOM: (node: PMNode, intl: IntlShape) => [string, {
|
|
4
4
|
class: string;
|
|
5
5
|
"data-decision-local-id": any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Wrapper for ADF taskItem node spec to augment toDOM implementation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const liftSelection: Command;
|
|
4
4
|
/**
|
|
5
5
|
* Wraps the current selection in a task list, respecting a maximum indentation depth of 6 levels.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { NodeRange
|
|
1
|
+
import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Node, NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { TaskItemData } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import {
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FlattenedItem, FlattenListOptions, FlattenListResult } from '@atlaskit/editor-common/lists';
|
|
2
2
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Flattens a taskList tree into an array of task items with computed depths.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
/**
|
|
4
4
|
* Transforms a paste slice to handle blockTaskItem nodes when pasting into task items.
|
|
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 {
|
|
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 | INPUT_METHOD.ELEMENT_BROWSER;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import {
|
|
8
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
10
10
|
interface Props {
|
|
11
11
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
@@ -2,10 +2,10 @@ import type { ReactElement, Ref } from 'react';
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import {
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { ContentRef } from '@atlaskit/task-decision';
|
|
7
7
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
8
|
-
import {
|
|
8
|
+
import type { TaskAndDecisionsSharedState } from '../../types';
|
|
9
9
|
export interface TaskProps {
|
|
10
10
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
11
11
|
children?: ReactElement<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
+
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
5
5
|
* NodeView for the DecisionItem node.
|
|
6
6
|
* It renders the decision item with its content and exposes the contentDOM to prosemirror.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
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 {
|
|
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
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
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
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { DOMOutputSpec, NodeSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Wrapper for ADF taskItem node spec to augment toDOM implementation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
2
|
-
import {
|
|
2
|
+
import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
export declare const liftSelection: Command;
|
|
4
4
|
/**
|
|
5
5
|
* Wraps the current selection in a task list, respecting a maximum indentation depth of 6 levels.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { NodeRange
|
|
1
|
+
import { NodeRange } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
import type { Node, NodeType, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
|
|
2
3
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
5
|
import type { TaskItemData } from './types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
2
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
|
-
import {
|
|
3
|
+
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
5
5
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { TasksAndDecisionsPlugin } from '../tasksAndDecisionsPluginType';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { FlattenedItem, FlattenListOptions, FlattenListResult } from '@atlaskit/editor-common/lists';
|
|
2
2
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
/**
|
|
4
4
|
* Flattens a taskList tree into an array of task items with computed depths.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
-
import {
|
|
2
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
/**
|
|
4
4
|
* Transforms a paste slice to handle blockTaskItem nodes when pasting into task items.
|
|
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 {
|
|
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 | INPUT_METHOD.ELEMENT_BROWSER;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
|
-
import {
|
|
8
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
9
9
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
10
10
|
interface Props {
|
|
11
11
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
@@ -2,10 +2,10 @@ import type { ReactElement, Ref } from 'react';
|
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
3
|
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
|
-
import {
|
|
5
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { ContentRef } from '@atlaskit/task-decision';
|
|
7
7
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
8
|
-
import {
|
|
8
|
+
import type { TaskAndDecisionsSharedState } from '../../types';
|
|
9
9
|
export interface TaskProps {
|
|
10
10
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
11
11
|
children?: ReactElement<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "11.3.
|
|
3
|
+
"version": "11.3.5",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,19 +44,19 @@
|
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.20.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
46
46
|
"@atlaskit/heading": "^5.3.0",
|
|
47
|
-
"@atlaskit/icon": "^33.
|
|
47
|
+
"@atlaskit/icon": "^33.1.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
49
|
"@atlaskit/primitives": "^18.1.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
51
51
|
"@atlaskit/task-decision": "^19.3.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
53
|
-
"@atlaskit/tokens": "^11.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^47.0.0",
|
|
53
|
+
"@atlaskit/tokens": "^11.3.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.20.0",
|
|
56
56
|
"bind-event-listener": "^3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^112.
|
|
59
|
+
"@atlaskit/editor-common": "^112.10.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"
|