@atlaskit/editor-plugin-tasks-and-decisions 9.1.26 → 10.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 +14 -0
- package/dist/cjs/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +3 -3
- package/dist/cjs/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +3 -3
- package/dist/es2019/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +3 -3
- package/dist/es2019/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +3 -3
- package/dist/esm/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +3 -3
- package/dist/esm/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +3 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 9.1.27
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9cb0ce7857313`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9cb0ce7857313) -
|
|
14
|
+
Fix const name.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.1.26
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
14
|
-
var
|
|
14
|
+
var NODE_NAME = 'decisionList';
|
|
15
15
|
var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
16
16
|
var _api$blockMenu2;
|
|
17
17
|
var api = _ref.api;
|
|
@@ -26,14 +26,14 @@ var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function Dec
|
|
|
26
26
|
var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
|
|
27
27
|
inputMethod: inputMethod,
|
|
28
28
|
triggeredFrom: triggeredFrom,
|
|
29
|
-
targetTypeName:
|
|
29
|
+
targetTypeName: NODE_NAME
|
|
30
30
|
});
|
|
31
31
|
return command ? command({
|
|
32
32
|
tr: tr
|
|
33
33
|
}) : null;
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
36
|
+
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
37
37
|
if (isTransfromToPanelDisabled) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
@@ -11,7 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
13
13
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
14
|
-
var
|
|
14
|
+
var NODE_NAME = 'taskList';
|
|
15
15
|
var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
16
16
|
var _api$blockMenu2;
|
|
17
17
|
var api = _ref.api;
|
|
@@ -26,14 +26,14 @@ var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlo
|
|
|
26
26
|
var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
|
|
27
27
|
inputMethod: inputMethod,
|
|
28
28
|
triggeredFrom: triggeredFrom,
|
|
29
|
-
targetTypeName:
|
|
29
|
+
targetTypeName: NODE_NAME
|
|
30
30
|
});
|
|
31
31
|
return command ? command({
|
|
32
32
|
tr: tr
|
|
33
33
|
}) : null;
|
|
34
34
|
});
|
|
35
35
|
};
|
|
36
|
-
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
36
|
+
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
37
37
|
if (isTransfromToPanelDisabled) {
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
-
const
|
|
7
|
+
const NODE_NAME = 'decisionList';
|
|
8
8
|
export const DecisionListBlockMenuItem = ({
|
|
9
9
|
api
|
|
10
10
|
}) => {
|
|
@@ -22,14 +22,14 @@ export const DecisionListBlockMenuItem = ({
|
|
|
22
22
|
const command = api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
|
|
23
23
|
inputMethod,
|
|
24
24
|
triggeredFrom,
|
|
25
|
-
targetTypeName:
|
|
25
|
+
targetTypeName: NODE_NAME
|
|
26
26
|
});
|
|
27
27
|
return command ? command({
|
|
28
28
|
tr
|
|
29
29
|
}) : null;
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
32
|
+
const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
33
33
|
if (isTransfromToPanelDisabled) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
-
const
|
|
7
|
+
const NODE_NAME = 'taskList';
|
|
8
8
|
export const TaskListBlockMenuItem = ({
|
|
9
9
|
api
|
|
10
10
|
}) => {
|
|
@@ -22,14 +22,14 @@ export const TaskListBlockMenuItem = ({
|
|
|
22
22
|
const command = api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
|
|
23
23
|
inputMethod,
|
|
24
24
|
triggeredFrom,
|
|
25
|
-
targetTypeName:
|
|
25
|
+
targetTypeName: NODE_NAME
|
|
26
26
|
});
|
|
27
27
|
return command ? command({
|
|
28
28
|
tr
|
|
29
29
|
}) : null;
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
32
|
+
const isTransfromToPanelDisabled = api === null || api === void 0 ? void 0 : (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
33
33
|
if (isTransfromToPanelDisabled) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
-
var
|
|
7
|
+
var NODE_NAME = 'decisionList';
|
|
8
8
|
export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
9
9
|
var _api$blockMenu2;
|
|
10
10
|
var api = _ref.api;
|
|
@@ -19,14 +19,14 @@ export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref)
|
|
|
19
19
|
var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.decisionList, {
|
|
20
20
|
inputMethod: inputMethod,
|
|
21
21
|
triggeredFrom: triggeredFrom,
|
|
22
|
-
targetTypeName:
|
|
22
|
+
targetTypeName: NODE_NAME
|
|
23
23
|
});
|
|
24
24
|
return command ? command({
|
|
25
25
|
tr: tr
|
|
26
26
|
}) : null;
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
29
|
+
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
30
30
|
if (isTransfromToPanelDisabled) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
|
@@ -4,7 +4,7 @@ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
6
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
-
var
|
|
7
|
+
var NODE_NAME = 'taskList';
|
|
8
8
|
export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
9
9
|
var _api$blockMenu2;
|
|
10
10
|
var api = _ref.api;
|
|
@@ -19,14 +19,14 @@ export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
|
19
19
|
var command = api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.commands.transformNode(tr.doc.type.schema.nodes.taskList, {
|
|
20
20
|
inputMethod: inputMethod,
|
|
21
21
|
triggeredFrom: triggeredFrom,
|
|
22
|
-
targetTypeName:
|
|
22
|
+
targetTypeName: NODE_NAME
|
|
23
23
|
});
|
|
24
24
|
return command ? command({
|
|
25
25
|
tr: tr
|
|
26
26
|
}) : null;
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(
|
|
29
|
+
var isTransfromToPanelDisabled = api === null || api === void 0 || (_api$blockMenu2 = api.blockMenu) === null || _api$blockMenu2 === void 0 ? void 0 : _api$blockMenu2.actions.isTransformOptionDisabled(NODE_NAME);
|
|
30
30
|
if (isTransfromToPanelDisabled) {
|
|
31
31
|
return null;
|
|
32
32
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.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",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/analytics-namespaced-context": "^7.2.0",
|
|
34
34
|
"@atlaskit/css": "^0.19.0",
|
|
35
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
36
|
-
"@atlaskit/editor-plugin-block-menu": "^
|
|
37
|
-
"@atlaskit/editor-plugin-context-identifier": "^
|
|
38
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
39
|
-
"@atlaskit/editor-plugin-selection": "^
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^
|
|
41
|
-
"@atlaskit/editor-plugin-type-ahead": "^
|
|
35
|
+
"@atlaskit/editor-plugin-analytics": "^7.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-block-menu": "^6.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-context-identifier": "^7.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^9.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^4.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^7.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
@@ -49,14 +49,14 @@
|
|
|
49
49
|
"@atlaskit/primitives": "^17.0.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
51
51
|
"@atlaskit/task-decision": "^19.2.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^16.
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^16.3.0",
|
|
53
53
|
"@atlaskit/tokens": "^9.0.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
55
55
|
"@compiled/react": "^0.18.6",
|
|
56
56
|
"bind-event-listener": "^3.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^
|
|
59
|
+
"@atlaskit/editor-common": "^111.0.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"
|