@atlaskit/editor-plugin-tasks-and-decisions 11.0.0 → 11.0.1
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 +6 -0
- package/dist/cjs/ui/Task/index.js +4 -1
- package/dist/cjs/ui/ToolbarDecision/index.js +4 -1
- package/dist/cjs/ui/ToolbarTask/index.js +4 -1
- package/dist/es2019/ui/Task/index.js +4 -1
- package/dist/es2019/ui/ToolbarDecision/index.js +4 -1
- package/dist/es2019/ui/ToolbarTask/index.js +4 -1
- package/dist/esm/ui/Task/index.js +4 -1
- package/dist/esm/ui/ToolbarDecision/index.js +4 -1
- package/dist/esm/ui/ToolbarTask/index.js +4 -1
- package/dist/types/nodeviews/taskItemNodeSpec.d.ts +3 -3
- package/dist/types/nodeviews/toDOM-fixes/decisionItem.d.ts +2 -1
- package/dist/types/pm-plugins/helpers.d.ts +1 -1
- package/dist/types/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/ui/Task/index.d.ts +3 -3
- package/dist/types/ui/ToolbarDecision/index.d.ts +3 -3
- package/dist/types/ui/ToolbarTask/index.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/taskItemNodeSpec.d.ts +3 -3
- package/dist/types-ts4.5/nodeviews/toDOM-fixes/decisionItem.d.ts +2 -1
- package/dist/types-ts4.5/pm-plugins/helpers.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/ui/Task/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarDecision/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/ToolbarTask/index.d.ts +3 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -82,4 +82,7 @@ var TaskItemWrapper = function TaskItemWrapper(props) {
|
|
|
82
82
|
taskDecisionProvider: provider
|
|
83
83
|
}, props));
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
87
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(TaskItemWrapper);
|
|
88
|
+
var _default = exports.default = _default_1;
|
|
@@ -42,4 +42,7 @@ var ToolbarDecision = function ToolbarDecision(_ref) {
|
|
|
42
42
|
})
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
47
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarDecision);
|
|
48
|
+
var _default = exports.default = _default_1;
|
|
@@ -41,4 +41,7 @@ var ToolbarTask = function ToolbarTask(_ref) {
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
46
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(ToolbarTask);
|
|
47
|
+
var _default = exports.default = _default_1;
|
|
@@ -60,4 +60,7 @@ const TaskItemWrapper = props => {
|
|
|
60
60
|
taskDecisionProvider: provider
|
|
61
61
|
}, props));
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
65
|
+
const _default_1 = injectIntl(TaskItemWrapper);
|
|
66
|
+
export default _default_1;
|
|
@@ -73,4 +73,7 @@ var TaskItemWrapper = function TaskItemWrapper(props) {
|
|
|
73
73
|
taskDecisionProvider: provider
|
|
74
74
|
}, props));
|
|
75
75
|
};
|
|
76
|
-
|
|
76
|
+
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
78
|
+
var _default_1 = injectIntl(TaskItemWrapper);
|
|
79
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
|
-
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
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
|
|
5
5
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
@@ -7,7 +7,7 @@ import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror
|
|
|
7
7
|
* @returns
|
|
8
8
|
* @example
|
|
9
9
|
*/
|
|
10
|
-
export declare const taskItemNodeSpec: () =>
|
|
10
|
+
export declare const taskItemNodeSpec: () => NodeSpec;
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper for ADF blockTaskItem node spec to augment toDOM implementation
|
|
13
13
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
@@ -15,7 +15,7 @@ export declare const taskItemNodeSpec: () => import("prosemirror-model").NodeSpe
|
|
|
15
15
|
* @returns
|
|
16
16
|
* @example
|
|
17
17
|
*/
|
|
18
|
-
export declare const blockTaskItemNodeSpec: () =>
|
|
18
|
+
export declare const blockTaskItemNodeSpec: () => NodeSpec;
|
|
19
19
|
/**
|
|
20
20
|
* Converts a task item node to a DOM output specification.
|
|
21
21
|
* This is used for rendering the task item in the editor.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const decisionItemSpecWithFixedToDOM: () => NodeSpec;
|
|
@@ -12,7 +12,7 @@ export declare const isTable: (node?: Node | null) => boolean;
|
|
|
12
12
|
* Creates a NodeRange around the given taskItem and the following
|
|
13
13
|
* ("nested") taskList, if one exists.
|
|
14
14
|
*/
|
|
15
|
-
export declare const getBlockRange: ({ $from, $to }: {
|
|
15
|
+
export declare const getBlockRange: ({ $from, $to, }: {
|
|
16
16
|
$from: ResolvedPos;
|
|
17
17
|
$to: ResolvedPos;
|
|
18
18
|
}) => NodeRange | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const stateKey: PluginKey
|
|
2
|
+
export declare const stateKey: PluginKey;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, Ref } from 'react';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { ContentRef } from '@atlaskit/task-decision';
|
|
@@ -33,7 +33,7 @@ export declare class TaskItem extends PureComponent<TaskItemProps, Object> {
|
|
|
33
33
|
private renderWithProvider;
|
|
34
34
|
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
36
|
+
declare const _default_1: React.FC<WithIntlProps<TaskProps & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<TaskProps & WrappedComponentProps>;
|
|
38
38
|
};
|
|
39
|
-
export default
|
|
39
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
@@ -12,7 +12,7 @@ export interface Props {
|
|
|
12
12
|
export interface State {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
@@ -12,7 +12,7 @@ export interface Props {
|
|
|
12
12
|
export interface State {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IntlShape } from 'react-intl-next';
|
|
2
|
-
import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
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
|
|
5
5
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
@@ -7,7 +7,7 @@ import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror
|
|
|
7
7
|
* @returns
|
|
8
8
|
* @example
|
|
9
9
|
*/
|
|
10
|
-
export declare const taskItemNodeSpec: () =>
|
|
10
|
+
export declare const taskItemNodeSpec: () => NodeSpec;
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper for ADF blockTaskItem node spec to augment toDOM implementation
|
|
13
13
|
* with fallback UI for lazy node view rendering / window virtualization
|
|
@@ -15,7 +15,7 @@ export declare const taskItemNodeSpec: () => import("prosemirror-model").NodeSpe
|
|
|
15
15
|
* @returns
|
|
16
16
|
* @example
|
|
17
17
|
*/
|
|
18
|
-
export declare const blockTaskItemNodeSpec: () =>
|
|
18
|
+
export declare const blockTaskItemNodeSpec: () => NodeSpec;
|
|
19
19
|
/**
|
|
20
20
|
* Converts a task item node to a DOM output specification.
|
|
21
21
|
* This is used for rendering the task item in the editor.
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
2
|
+
export declare const decisionItemSpecWithFixedToDOM: () => NodeSpec;
|
|
@@ -12,7 +12,7 @@ export declare const isTable: (node?: Node | null) => boolean;
|
|
|
12
12
|
* Creates a NodeRange around the given taskItem and the following
|
|
13
13
|
* ("nested") taskList, if one exists.
|
|
14
14
|
*/
|
|
15
|
-
export declare const getBlockRange: ({ $from, $to }: {
|
|
15
|
+
export declare const getBlockRange: ({ $from, $to, }: {
|
|
16
16
|
$from: ResolvedPos;
|
|
17
17
|
$to: ResolvedPos;
|
|
18
18
|
}) => NodeRange | null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
export declare const stateKey: PluginKey
|
|
2
|
+
export declare const stateKey: PluginKey;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, Ref } from 'react';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
6
6
|
import type { ContentRef } from '@atlaskit/task-decision';
|
|
@@ -33,7 +33,7 @@ export declare class TaskItem extends PureComponent<TaskItemProps, Object> {
|
|
|
33
33
|
private renderWithProvider;
|
|
34
34
|
render(): React.JSX.Element;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
36
|
+
declare const _default_1: React.FC<WithIntlProps<TaskProps & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<TaskProps & WrappedComponentProps>;
|
|
38
38
|
};
|
|
39
|
-
export default
|
|
39
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
@@ -12,7 +12,7 @@ export interface Props {
|
|
|
12
12
|
export interface State {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
@@ -12,7 +12,7 @@ export interface Props {
|
|
|
12
12
|
export interface State {
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
}
|
|
15
|
-
declare const
|
|
15
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
16
16
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
17
17
|
};
|
|
18
|
-
export default
|
|
18
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@atlaskit/primitives": "^18.0.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
51
51
|
"@atlaskit/task-decision": "^19.3.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
53
53
|
"@atlaskit/tokens": "^11.1.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.20.0",
|