@atlaskit/editor-plugin-tasks-and-decisions 19.0.8 → 19.1.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 +17 -0
- package/dist/cjs/nodeviews/taskItemNodeSpec.js +3 -3
- package/dist/cjs/nodeviews/toDOM-fixes/decisionItem.js +2 -2
- package/dist/cjs/tasksAndDecisionsPlugin.js +2 -2
- package/dist/cjs/ui/Task/index.js +1 -1
- package/dist/cjs/ui/ToolbarDecision/index.js +1 -1
- package/dist/cjs/ui/ToolbarTask/index.js +1 -1
- package/dist/es2019/nodeviews/taskItemNodeSpec.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/decisionItem.js +1 -1
- package/dist/es2019/tasksAndDecisionsPlugin.js +1 -1
- package/dist/es2019/ui/Task/index.js +1 -1
- package/dist/es2019/ui/ToolbarDecision/index.js +1 -1
- package/dist/es2019/ui/ToolbarTask/index.js +1 -1
- package/dist/esm/nodeviews/taskItemNodeSpec.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/decisionItem.js +1 -1
- package/dist/esm/tasksAndDecisionsPlugin.js +1 -1
- package/dist/esm/ui/Task/index.js +1 -1
- package/dist/esm/ui/ToolbarDecision/index.js +1 -1
- package/dist/esm/ui/ToolbarTask/index.js +1 -1
- package/package.json +15 -15
- package/report.api.md +0 -125
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 19.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
|
|
8
|
+
Remove stale API report artifacts from published Platform packages.
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 19.0.9
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies
|
|
19
|
+
|
|
3
20
|
## 19.0.8
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -12,7 +12,7 @@ var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
14
14
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
|
-
var
|
|
15
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
16
16
|
var _utils = require("./utils");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -24,7 +24,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
24
24
|
* @example
|
|
25
25
|
*/
|
|
26
26
|
var taskItemNodeSpec = exports.taskItemNodeSpec = function taskItemNodeSpec() {
|
|
27
|
-
if ((0,
|
|
27
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
28
28
|
return _adfSchema.taskItem;
|
|
29
29
|
}
|
|
30
30
|
return _objectSpread(_objectSpread({}, _adfSchema.taskItem), {}, {
|
|
@@ -42,7 +42,7 @@ var taskItemNodeSpec = exports.taskItemNodeSpec = function taskItemNodeSpec() {
|
|
|
42
42
|
* @example
|
|
43
43
|
*/
|
|
44
44
|
var blockTaskItemNodeSpec = exports.blockTaskItemNodeSpec = function blockTaskItemNodeSpec() {
|
|
45
|
-
if ((0,
|
|
45
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
46
46
|
return _adfSchema.blockTaskItem;
|
|
47
47
|
}
|
|
48
48
|
return _objectSpread(_objectSpread({}, _adfSchema.blockTaskItem), {}, {
|
|
@@ -8,12 +8,12 @@ exports.decisionItemSpecWithFixedToDOM = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
|
-
var
|
|
11
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
12
12
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
13
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
// @nodeSpecException:toDOM patch
|
|
15
15
|
var decisionItemSpecWithFixedToDOM = exports.decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedToDOM() {
|
|
16
|
-
if ((0,
|
|
16
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
17
17
|
return _adfSchema.decisionItem;
|
|
18
18
|
}
|
|
19
19
|
return _objectSpread(_objectSpread({}, _adfSchema.decisionItem), {}, {
|
|
@@ -25,7 +25,7 @@ var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-
|
|
|
25
25
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
26
26
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
27
27
|
var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
|
|
28
|
-
var
|
|
28
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
29
29
|
var _taskItemNodeSpec = require("./nodeviews/taskItemNodeSpec");
|
|
30
30
|
var _decisionItem = require("./nodeviews/toDOM-fixes/decisionItem");
|
|
31
31
|
var _helpers = require("./pm-plugins/helpers");
|
|
@@ -137,7 +137,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
if ((0,
|
|
140
|
+
if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
|
|
141
141
|
var _api$blockMenu;
|
|
142
142
|
api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
|
|
143
143
|
type: 'block-menu-item',
|
|
@@ -83,6 +83,6 @@ var TaskItemWrapper = function TaskItemWrapper(props) {
|
|
|
83
83
|
}, props));
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
86
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
87
87
|
var _default_1 = (0, _reactIntl.injectIntl)(TaskItemWrapper);
|
|
88
88
|
var _default = exports.default = _default_1;
|
|
@@ -43,6 +43,6 @@ var ToolbarDecision = function ToolbarDecision(_ref) {
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
46
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
47
47
|
var _default_1 = (0, _reactIntl.injectIntl)(ToolbarDecision);
|
|
48
48
|
var _default = exports.default = _default_1;
|
|
@@ -42,6 +42,6 @@ var ToolbarTask = function ToolbarTask(_ref) {
|
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
45
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
46
46
|
var _default_1 = (0, _reactIntl.injectIntl)(ToolbarTask);
|
|
47
47
|
var _default = exports.default = _default_1;
|
|
@@ -3,7 +3,7 @@ import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
3
3
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
import { isContentEmpty } from './utils';
|
|
8
8
|
/**
|
|
9
9
|
* Wrapper for ADF taskItem node spec to augment toDOM implementation
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { decisionItem } from '@atlaskit/adf-schema';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
// @nodeSpecException:toDOM patch
|
|
5
5
|
export const decisionItemSpecWithFixedToDOM = () => {
|
|
6
6
|
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
@@ -13,7 +13,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
13
13
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
14
14
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
15
15
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
16
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
16
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
17
17
|
import { taskItemNodeSpec, blockTaskItemNodeSpec } from './nodeviews/taskItemNodeSpec';
|
|
18
18
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
19
19
|
import { closeRequestEditPopupAt, getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -61,6 +61,6 @@ const TaskItemWrapper = props => {
|
|
|
61
61
|
}, props));
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
65
65
|
const _default_1 = injectIntl(TaskItemWrapper);
|
|
66
66
|
export default _default_1;
|
|
@@ -6,7 +6,7 @@ import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
|
6
6
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
9
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
9
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
10
10
|
import { isContentEmpty } from './utils';
|
|
11
11
|
/**
|
|
12
12
|
* Wrapper for ADF taskItem node spec to augment toDOM implementation
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { decisionItem } from '@atlaskit/adf-schema';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
6
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
// @nodeSpecException:toDOM patch
|
|
8
8
|
export var decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedToDOM() {
|
|
9
9
|
if (editorExperiment('platform_editor_exp_lazy_node_views', false)) {
|
|
@@ -19,7 +19,7 @@ import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared
|
|
|
19
19
|
import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
|
|
20
20
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
21
21
|
import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
|
|
22
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
22
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
23
23
|
import { taskItemNodeSpec, blockTaskItemNodeSpec } from './nodeviews/taskItemNodeSpec';
|
|
24
24
|
import { decisionItemSpecWithFixedToDOM } from './nodeviews/toDOM-fixes/decisionItem';
|
|
25
25
|
import { closeRequestEditPopupAt, getCurrentIndentLevel, getTaskItemIndex, isInsideTask } from './pm-plugins/helpers';
|
|
@@ -74,6 +74,6 @@ var TaskItemWrapper = function TaskItemWrapper(props) {
|
|
|
74
74
|
}, props));
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
77
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
78
78
|
var _default_1 = injectIntl(TaskItemWrapper);
|
|
79
79
|
export default _default_1;
|
|
@@ -36,6 +36,6 @@ var ToolbarDecision = function ToolbarDecision(_ref) {
|
|
|
36
36
|
});
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
39
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
40
40
|
var _default_1 = injectIntl(ToolbarDecision);
|
|
41
41
|
export default _default_1;
|
|
@@ -35,6 +35,6 @@ var ToolbarTask = function ToolbarTask(_ref) {
|
|
|
35
35
|
});
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
// eslint-disable-next-line @typescript-eslint/
|
|
38
|
+
// eslint-disable-next-line @typescript-eslint/no-restricted-types
|
|
39
39
|
var _default_1 = injectIntl(ToolbarTask);
|
|
40
40
|
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": "19.0
|
|
3
|
+
"version": "19.1.0",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -22,34 +22,34 @@
|
|
|
22
22
|
"atlaskit:src": "src/index.ts",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^57.2.0",
|
|
25
|
-
"@atlaskit/analytics-namespaced-context": "^8.
|
|
25
|
+
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
26
26
|
"@atlaskit/css": "^1.1.0",
|
|
27
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
27
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-block-menu": "^15.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-context-identifier": "^16.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
31
|
-
"@atlaskit/editor-plugin-selection": "^16.
|
|
31
|
+
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
32
32
|
"@atlaskit/editor-plugin-toolbar": "^13.0.0",
|
|
33
|
-
"@atlaskit/editor-plugin-type-ahead": "^17.
|
|
33
|
+
"@atlaskit/editor-plugin-type-ahead": "^17.1.0",
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
35
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
35
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
36
36
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
37
37
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
38
|
-
"@atlaskit/heading": "^7.
|
|
39
|
-
"@atlaskit/icon": "^37.
|
|
38
|
+
"@atlaskit/heading": "^7.2.0",
|
|
39
|
+
"@atlaskit/icon": "^37.6.0",
|
|
40
40
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
41
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
42
|
-
"@atlaskit/primitives": "^22.
|
|
43
|
-
"@atlaskit/prosemirror-input-rules": "^4.
|
|
44
|
-
"@atlaskit/task-decision": "^21.
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^16.
|
|
41
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
42
|
+
"@atlaskit/primitives": "^22.5.0",
|
|
43
|
+
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
44
|
+
"@atlaskit/task-decision": "^21.9.0",
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^16.10.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^1.0.2",
|
|
49
49
|
"bind-event-listener": "^3.0.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@atlaskit/editor-common": "^120.
|
|
52
|
+
"@atlaskit/editor-common": "^120.9.0",
|
|
53
53
|
"react": "^18.2.0 || ^19.2.0",
|
|
54
54
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
55
55
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
package/report.api.md
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
<!-- API Report Version: 2.3 -->
|
|
2
|
-
|
|
3
|
-
## API Report File for "@atlaskit/editor-plugin-tasks-and-decisions"
|
|
4
|
-
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
6
|
-
> [API Extractor](https://api-extractor.com/).
|
|
7
|
-
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
8
|
-
|
|
9
|
-
### Table of contents
|
|
10
|
-
|
|
11
|
-
- [Main Entry Types](#main-entry-types)
|
|
12
|
-
- [Peer Dependencies](#peer-dependencies)
|
|
13
|
-
|
|
14
|
-
### Main Entry Types
|
|
15
|
-
|
|
16
|
-
<!--SECTION START: Main Entry Types-->
|
|
17
|
-
|
|
18
|
-
```ts
|
|
19
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
20
|
-
import type { Command } from '@atlaskit/editor-common/types';
|
|
21
|
-
import type { DecisionItemDefinition } from '@atlaskit/adf-schema';
|
|
22
|
-
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
23
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
24
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
25
|
-
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
|
26
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
27
|
-
import type { NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
28
|
-
import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
29
|
-
import type { TaskItemDefinition } from '@atlaskit/adf-schema';
|
|
30
|
-
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
31
|
-
import type { Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
32
|
-
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
33
|
-
|
|
34
|
-
// @public (undocumented)
|
|
35
|
-
type AddItemAttrs = Partial<DecisionItemDefinition['attrs']> | Partial<TaskItemDefinition['attrs']>;
|
|
36
|
-
|
|
37
|
-
// @public (undocumented)
|
|
38
|
-
type AddItemTransactionCreator = (opts: {
|
|
39
|
-
state: EditorState;
|
|
40
|
-
tr: Transaction;
|
|
41
|
-
list: NodeType;
|
|
42
|
-
item: NodeType;
|
|
43
|
-
listLocalId: string;
|
|
44
|
-
itemLocalId: string;
|
|
45
|
-
itemAttrs?: AddItemAttrs;
|
|
46
|
-
}) => Transaction | null;
|
|
47
|
-
|
|
48
|
-
// @public (undocumented)
|
|
49
|
-
const getIndentCommand: (
|
|
50
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
51
|
-
) => (inputMethod?: IndentationInputMethod) => Command;
|
|
52
|
-
|
|
53
|
-
// @public (undocumented)
|
|
54
|
-
const getUnindentCommand: (
|
|
55
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
56
|
-
) => (inputMethod?: IndentationInputMethod) => Command;
|
|
57
|
-
|
|
58
|
-
// @public (undocumented)
|
|
59
|
-
type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
60
|
-
|
|
61
|
-
// @public (undocumented)
|
|
62
|
-
const insertTaskDecisionCommand: (
|
|
63
|
-
editorAnalyticsAPI: EditorAnalyticsAPI | undefined,
|
|
64
|
-
) => (
|
|
65
|
-
listType: TaskDecisionListType,
|
|
66
|
-
inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE,
|
|
67
|
-
addItem?: AddItemTransactionCreator,
|
|
68
|
-
listLocalId?: string,
|
|
69
|
-
itemLocalId?: string,
|
|
70
|
-
) => Command;
|
|
71
|
-
|
|
72
|
-
// @public (undocumented)
|
|
73
|
-
type TaskAndDecisionsSharedState = {
|
|
74
|
-
focusedTaskItemLocalId: null | string;
|
|
75
|
-
indentDisabled: boolean;
|
|
76
|
-
outdentDisabled: boolean;
|
|
77
|
-
isInsideTask: boolean;
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
// @public (undocumented)
|
|
81
|
-
type TaskDecisionListType = 'decisionList' | 'taskList';
|
|
82
|
-
|
|
83
|
-
// @public (undocumented)
|
|
84
|
-
interface TaskDecisionPluginOptions extends LongPressSelectionPluginOptions {
|
|
85
|
-
// (undocumented)
|
|
86
|
-
allowNestedTasks?: boolean;
|
|
87
|
-
// (undocumented)
|
|
88
|
-
consumeTabs?: boolean;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// @public (undocumented)
|
|
92
|
-
export type TasksAndDecisionsPlugin = NextEditorPlugin<
|
|
93
|
-
'taskDecision',
|
|
94
|
-
{
|
|
95
|
-
pluginConfiguration: TaskDecisionPluginOptions | undefined;
|
|
96
|
-
sharedState: TaskAndDecisionsSharedState | undefined;
|
|
97
|
-
dependencies: [OptionalPlugin<TypeAheadPlugin>, OptionalPlugin<AnalyticsPlugin>];
|
|
98
|
-
actions: {
|
|
99
|
-
insertTaskDecision: ReturnType<typeof insertTaskDecisionCommand>;
|
|
100
|
-
indentTaskList: ReturnType<typeof getIndentCommand>;
|
|
101
|
-
outdentTaskList: ReturnType<typeof getUnindentCommand>;
|
|
102
|
-
};
|
|
103
|
-
}
|
|
104
|
-
>;
|
|
105
|
-
|
|
106
|
-
// @public (undocumented)
|
|
107
|
-
export const tasksAndDecisionsPlugin: TasksAndDecisionsPlugin;
|
|
108
|
-
|
|
109
|
-
// (No @packageDocumentation comment for this package)
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
<!--SECTION END: Main Entry Types-->
|
|
113
|
-
|
|
114
|
-
### Peer Dependencies
|
|
115
|
-
|
|
116
|
-
<!--SECTION START: Peer Dependencies-->
|
|
117
|
-
|
|
118
|
-
```json
|
|
119
|
-
{
|
|
120
|
-
"react": "^16.8.0",
|
|
121
|
-
"react-intl": "npm:react-intl@^5.18.1"
|
|
122
|
-
}
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
<!--SECTION END: Peer Dependencies-->
|