@atlaskit/editor-plugin-tasks-and-decisions 9.1.25 → 9.1.27
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 +16 -0
- package/dist/cjs/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -13
- package/dist/cjs/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -13
- package/dist/es2019/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -11
- package/dist/es2019/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -11
- package/dist/esm/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +8 -11
- package/dist/esm/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +8 -11
- package/dist/types/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.d.ts +1 -1
- package/dist/types/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.d.ts +1 -1
- package/dist/types-ts4.5/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.d.ts +1 -1
- package/dist/types-ts4.5/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.d.ts +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 9.1.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9cb0ce7857313`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9cb0ce7857313) -
|
|
8
|
+
Fix const name.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.1.26
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`b5d004bf834f8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b5d004bf834f8) -
|
|
16
|
+
[ux] Adds block menu action to check if 'Turn into' item should be rendered or not.
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 9.1.25
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.DecisionListBlockMenuItem = void 0;
|
|
9
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _reactIntlNext = require("react-intl-next");
|
|
11
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
|
-
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
13
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
15
13
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
16
|
-
|
|
14
|
+
var NODE_NAME = 'decisionList';
|
|
17
15
|
var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
16
|
+
var _api$blockMenu2;
|
|
18
17
|
var api = _ref.api;
|
|
19
18
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
20
19
|
formatMessage = _useIntl.formatMessage;
|
|
21
|
-
var selection = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection'], function (states) {
|
|
22
|
-
var _states$selectionStat;
|
|
23
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
24
|
-
});
|
|
25
|
-
var isSelected = (0, _react.useMemo)(function () {
|
|
26
|
-
return selection && selection.$from.parent.type.name === 'decisionItem';
|
|
27
|
-
}, [selection]);
|
|
28
20
|
var onClick = function onClick(event) {
|
|
29
21
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
30
22
|
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
@@ -34,15 +26,18 @@ var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function Dec
|
|
|
34
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, {
|
|
35
27
|
inputMethod: inputMethod,
|
|
36
28
|
triggeredFrom: triggeredFrom,
|
|
37
|
-
targetTypeName:
|
|
29
|
+
targetTypeName: NODE_NAME
|
|
38
30
|
});
|
|
39
31
|
return command ? command({
|
|
40
32
|
tr: tr
|
|
41
33
|
}) : null;
|
|
42
34
|
});
|
|
43
35
|
};
|
|
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
|
+
if (isTransfromToPanelDisabled) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
44
40
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
45
|
-
isSelected: isSelected,
|
|
46
41
|
onClick: onClick,
|
|
47
42
|
elemBefore: /*#__PURE__*/_react.default.createElement(_decision.default, {
|
|
48
43
|
label: ""
|
|
@@ -1,30 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.TaskListBlockMenuItem = void 0;
|
|
9
|
-
var _react =
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
9
|
var _reactIntlNext = require("react-intl-next");
|
|
11
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
12
|
-
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
13
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
15
13
|
var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
16
|
-
|
|
14
|
+
var NODE_NAME = 'taskList';
|
|
17
15
|
var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
16
|
+
var _api$blockMenu2;
|
|
18
17
|
var api = _ref.api;
|
|
19
18
|
var _useIntl = (0, _reactIntlNext.useIntl)(),
|
|
20
19
|
formatMessage = _useIntl.formatMessage;
|
|
21
|
-
var selection = (0, _hooks.useSharedPluginStateWithSelector)(api, ['selection'], function (states) {
|
|
22
|
-
var _states$selectionStat;
|
|
23
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
24
|
-
});
|
|
25
|
-
var isSelected = (0, _react.useMemo)(function () {
|
|
26
|
-
return selection && selection.$from.parent.type.name === 'taskItem';
|
|
27
|
-
}, [selection]);
|
|
28
20
|
var onClick = function onClick(event) {
|
|
29
21
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
30
22
|
var inputMethod = _analytics.INPUT_METHOD.BLOCK_MENU;
|
|
@@ -34,15 +26,18 @@ var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlo
|
|
|
34
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, {
|
|
35
27
|
inputMethod: inputMethod,
|
|
36
28
|
triggeredFrom: triggeredFrom,
|
|
37
|
-
targetTypeName:
|
|
29
|
+
targetTypeName: NODE_NAME
|
|
38
30
|
});
|
|
39
31
|
return command ? command({
|
|
40
32
|
tr: tr
|
|
41
33
|
}) : null;
|
|
42
34
|
});
|
|
43
35
|
};
|
|
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
|
+
if (isTransfromToPanelDisabled) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
44
40
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
|
|
45
|
-
isSelected: isSelected,
|
|
46
41
|
onClick: onClick,
|
|
47
42
|
elemBefore: /*#__PURE__*/_react.default.createElement(_task.default, {
|
|
48
43
|
label: ""
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
+
const NODE_NAME = 'decisionList';
|
|
8
8
|
export const DecisionListBlockMenuItem = ({
|
|
9
9
|
api
|
|
10
10
|
}) => {
|
|
11
|
+
var _api$blockMenu2;
|
|
11
12
|
const {
|
|
12
13
|
formatMessage
|
|
13
14
|
} = useIntl();
|
|
14
|
-
const selection = useSharedPluginStateWithSelector(api, ['selection'], states => {
|
|
15
|
-
var _states$selectionStat;
|
|
16
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
17
|
-
});
|
|
18
|
-
const isSelected = useMemo(() => {
|
|
19
|
-
return selection && selection.$from.parent.type.name === 'decisionItem';
|
|
20
|
-
}, [selection]);
|
|
21
15
|
const onClick = event => {
|
|
22
16
|
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
23
17
|
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
@@ -28,15 +22,18 @@ export const DecisionListBlockMenuItem = ({
|
|
|
28
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, {
|
|
29
23
|
inputMethod,
|
|
30
24
|
triggeredFrom,
|
|
31
|
-
targetTypeName:
|
|
25
|
+
targetTypeName: NODE_NAME
|
|
32
26
|
});
|
|
33
27
|
return command ? command({
|
|
34
28
|
tr
|
|
35
29
|
}) : null;
|
|
36
30
|
});
|
|
37
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(NODE_NAME);
|
|
33
|
+
if (isTransfromToPanelDisabled) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
38
36
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
39
|
-
isSelected: isSelected,
|
|
40
37
|
onClick: onClick,
|
|
41
38
|
elemBefore: /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
42
39
|
label: ""
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
+
const NODE_NAME = 'taskList';
|
|
8
8
|
export const TaskListBlockMenuItem = ({
|
|
9
9
|
api
|
|
10
10
|
}) => {
|
|
11
|
+
var _api$blockMenu2;
|
|
11
12
|
const {
|
|
12
13
|
formatMessage
|
|
13
14
|
} = useIntl();
|
|
14
|
-
const selection = useSharedPluginStateWithSelector(api, ['selection'], states => {
|
|
15
|
-
var _states$selectionStat;
|
|
16
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
17
|
-
});
|
|
18
|
-
const isSelected = useMemo(() => {
|
|
19
|
-
return selection && selection.$from.parent.type.name === 'taskItem';
|
|
20
|
-
}, [selection]);
|
|
21
15
|
const onClick = event => {
|
|
22
16
|
const triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
23
17
|
const inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
@@ -28,15 +22,18 @@ export const TaskListBlockMenuItem = ({
|
|
|
28
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, {
|
|
29
23
|
inputMethod,
|
|
30
24
|
triggeredFrom,
|
|
31
|
-
targetTypeName:
|
|
25
|
+
targetTypeName: NODE_NAME
|
|
32
26
|
});
|
|
33
27
|
return command ? command({
|
|
34
28
|
tr
|
|
35
29
|
}) : null;
|
|
36
30
|
});
|
|
37
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(NODE_NAME);
|
|
33
|
+
if (isTransfromToPanelDisabled) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
38
36
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
39
|
-
isSelected: isSelected,
|
|
40
37
|
onClick: onClick,
|
|
41
38
|
elemBefore: /*#__PURE__*/React.createElement(TaskIcon, {
|
|
42
39
|
label: ""
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { blockMenuMessages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
6
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
7
|
+
var NODE_NAME = 'decisionList';
|
|
8
8
|
export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
9
|
+
var _api$blockMenu2;
|
|
9
10
|
var api = _ref.api;
|
|
10
11
|
var _useIntl = useIntl(),
|
|
11
12
|
formatMessage = _useIntl.formatMessage;
|
|
12
|
-
var selection = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
13
|
-
var _states$selectionStat;
|
|
14
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
15
|
-
});
|
|
16
|
-
var isSelected = useMemo(function () {
|
|
17
|
-
return selection && selection.$from.parent.type.name === 'decisionItem';
|
|
18
|
-
}, [selection]);
|
|
19
13
|
var onClick = function onClick(event) {
|
|
20
14
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
21
15
|
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
@@ -25,15 +19,18 @@ export var DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref)
|
|
|
25
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, {
|
|
26
20
|
inputMethod: inputMethod,
|
|
27
21
|
triggeredFrom: triggeredFrom,
|
|
28
|
-
targetTypeName:
|
|
22
|
+
targetTypeName: NODE_NAME
|
|
29
23
|
});
|
|
30
24
|
return command ? command({
|
|
31
25
|
tr: tr
|
|
32
26
|
}) : null;
|
|
33
27
|
});
|
|
34
28
|
};
|
|
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
|
+
if (isTransfromToPanelDisabled) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
35
33
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
36
|
-
isSelected: isSelected,
|
|
37
34
|
onClick: onClick,
|
|
38
35
|
elemBefore: /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
39
36
|
label: ""
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { useIntl } from 'react-intl-next';
|
|
3
3
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
5
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
6
5
|
import { ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
|
|
7
6
|
import TaskIcon from '@atlaskit/icon/core/task';
|
|
7
|
+
var NODE_NAME = 'taskList';
|
|
8
8
|
export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
9
|
+
var _api$blockMenu2;
|
|
9
10
|
var api = _ref.api;
|
|
10
11
|
var _useIntl = useIntl(),
|
|
11
12
|
formatMessage = _useIntl.formatMessage;
|
|
12
|
-
var selection = useSharedPluginStateWithSelector(api, ['selection'], function (states) {
|
|
13
|
-
var _states$selectionStat;
|
|
14
|
-
return (_states$selectionStat = states.selectionState) === null || _states$selectionStat === void 0 ? void 0 : _states$selectionStat.selection;
|
|
15
|
-
});
|
|
16
|
-
var isSelected = useMemo(function () {
|
|
17
|
-
return selection && selection.$from.parent.type.name === 'taskItem';
|
|
18
|
-
}, [selection]);
|
|
19
13
|
var onClick = function onClick(event) {
|
|
20
14
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? INPUT_METHOD.KEYBOARD : INPUT_METHOD.MOUSE;
|
|
21
15
|
var inputMethod = INPUT_METHOD.BLOCK_MENU;
|
|
@@ -25,15 +19,18 @@ export var TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
|
25
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, {
|
|
26
20
|
inputMethod: inputMethod,
|
|
27
21
|
triggeredFrom: triggeredFrom,
|
|
28
|
-
targetTypeName:
|
|
22
|
+
targetTypeName: NODE_NAME
|
|
29
23
|
});
|
|
30
24
|
return command ? command({
|
|
31
25
|
tr: tr
|
|
32
26
|
}) : null;
|
|
33
27
|
});
|
|
34
28
|
};
|
|
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
|
+
if (isTransfromToPanelDisabled) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
35
33
|
return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
|
|
36
|
-
isSelected: isSelected,
|
|
37
34
|
onClick: onClick,
|
|
38
35
|
elemBefore: /*#__PURE__*/React.createElement(TaskIcon, {
|
|
39
36
|
label: ""
|
|
@@ -3,4 +3,4 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
4
4
|
export declare const DecisionListBlockMenuItem: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
6
|
-
}) => React.JSX.Element;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
@@ -3,4 +3,4 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
4
4
|
export declare const TaskListBlockMenuItem: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
6
|
-
}) => React.JSX.Element;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
@@ -3,4 +3,4 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
4
4
|
export declare const DecisionListBlockMenuItem: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
6
|
-
}) => React.JSX.Element;
|
|
6
|
+
}) => React.JSX.Element | null;
|
|
@@ -3,4 +3,4 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
3
3
|
import type { TasksAndDecisionsPlugin } from '../../tasksAndDecisionsPluginType';
|
|
4
4
|
export declare const TaskListBlockMenuItem: ({ api, }: {
|
|
5
5
|
api: ExtractInjectionAPI<TasksAndDecisionsPlugin> | undefined;
|
|
6
|
-
}) => React.JSX.Element;
|
|
6
|
+
}) => React.JSX.Element | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.27",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@atlaskit/editor-plugin-context-identifier": "^6.0.0",
|
|
38
38
|
"@atlaskit/editor-plugin-editor-viewmode": "^8.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection": "^6.1.0",
|
|
40
|
-
"@atlaskit/editor-plugin-toolbar": "^3.
|
|
41
|
-
"@atlaskit/editor-plugin-type-ahead": "^6.
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^3.5.0",
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^6.6.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.2.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": "^110.
|
|
59
|
+
"@atlaskit/editor-common": "^110.49.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"
|