@atlaskit/editor-plugin-tasks-and-decisions 12.0.0 → 13.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 +25 -0
- package/dist/cjs/nodeviews/DecisionItemNodeView.js +1 -1
- package/dist/cjs/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +2 -2
- package/dist/cjs/ui/Task/RequestToEditPopup.js +4 -4
- package/dist/cjs/ui/Task/index.js +2 -2
- package/dist/cjs/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +2 -2
- package/dist/cjs/ui/TaskListMenuItem/TaskListMenuItem.js +2 -2
- package/dist/cjs/ui/ToolbarDecision/index.js +2 -2
- package/dist/cjs/ui/ToolbarTask/index.js +2 -2
- package/dist/es2019/nodeviews/DecisionItemNodeView.js +1 -1
- package/dist/es2019/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +1 -1
- package/dist/es2019/ui/Task/RequestToEditPopup.js +1 -1
- package/dist/es2019/ui/Task/index.js +1 -1
- package/dist/es2019/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +1 -1
- package/dist/es2019/ui/TaskListMenuItem/TaskListMenuItem.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/DecisionItemNodeView.js +1 -1
- package/dist/esm/ui/DecisionListBlockMenuItem/DecisionListBlockMenuItem.js +1 -1
- package/dist/esm/ui/Task/RequestToEditPopup.js +1 -1
- package/dist/esm/ui/Task/index.js +1 -1
- package/dist/esm/ui/TaskListBlockMenuItem/TaskListBlockMenuItem.js +1 -1
- package/dist/esm/ui/TaskListMenuItem/TaskListMenuItem.js +1 -1
- package/dist/esm/ui/ToolbarDecision/index.js +1 -1
- package/dist/esm/ui/ToolbarTask/index.js +1 -1
- package/dist/types/nodeviews/DecisionItemNodeView.d.ts +2 -2
- package/dist/types/nodeviews/TaskItemNodeView.d.ts +1 -1
- package/dist/types/nodeviews/decisionItemNodeSpec.d.ts +1 -1
- 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/main.d.ts +1 -1
- package/dist/types/ui/Task/index.d.ts +1 -1
- package/dist/types/ui/ToolbarDecision/index.d.ts +1 -1
- package/dist/types/ui/ToolbarTask/index.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/DecisionItemNodeView.d.ts +2 -2
- package/dist/types-ts4.5/nodeviews/TaskItemNodeView.d.ts +1 -1
- package/dist/types-ts4.5/nodeviews/decisionItemNodeSpec.d.ts +1 -1
- 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/main.d.ts +1 -1
- package/dist/types-ts4.5/ui/Task/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarDecision/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarTask/index.d.ts +1 -1
- package/package.json +13 -12
- package/report.api.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 13.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- [`901c87a57486e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/901c87a57486e) -
|
|
14
|
+
Removed `react-intl-next` alias and replaced all usages with `react-intl` directly.
|
|
15
|
+
|
|
16
|
+
What changed: The `react-intl-next` npm alias (which resolved to `react-intl@^5`) has been
|
|
17
|
+
removed. All imports now reference `react-intl` directly, and `peerDependencies` have been updated
|
|
18
|
+
to `"^5.25.1 || ^6.0.0 || ^7.0.0"`.
|
|
19
|
+
|
|
20
|
+
How consumer should update their code: Ensure `react-intl` is installed at a version satisfying
|
|
21
|
+
`^5.25.1 || ^6.0.0 || ^7.0.0`. If your application was using `react-intl-next` as an npm alias, it
|
|
22
|
+
can be safely removed. Replace any remaining `react-intl-next` imports with `react-intl`.
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- Updated dependencies
|
|
27
|
+
|
|
3
28
|
## 12.0.0
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@ var DecisionItemNodeView = exports.DecisionItemNodeView = /*#__PURE__*/function
|
|
|
20
20
|
/**
|
|
21
21
|
* Creates a new DecisionItemNodeView.
|
|
22
22
|
* @import type {PMNode} from '@atlaskit/editor-prosemirror/model';
|
|
23
|
-
* @import type {IntlShape} from 'react-intl
|
|
23
|
+
* @import type {IntlShape} from 'react-intl';
|
|
24
24
|
* @param {PMNode} node - The ProseMirror node representing the decision item.
|
|
25
25
|
* @param {IntlShape} intl - The IntlShape for internationalization, used to format the placeholder text.
|
|
26
26
|
* @example
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.DecisionListBlockMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
@@ -14,7 +14,7 @@ var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
|
14
14
|
var NODE_NAME = 'decisionList';
|
|
15
15
|
var DecisionListBlockMenuItem = exports.DecisionListBlockMenuItem = function DecisionListBlockMenuItem(_ref) {
|
|
16
16
|
var api = _ref.api;
|
|
17
|
-
var _useIntl = (0,
|
|
17
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
18
18
|
formatMessage = _useIntl.formatMessage;
|
|
19
19
|
var onClick = function onClick(event) {
|
|
20
20
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
@@ -12,7 +12,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var React = _react;
|
|
13
13
|
var _runtime = require("@compiled/react/runtime");
|
|
14
14
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
var
|
|
15
|
+
var _reactIntl = require("react-intl");
|
|
16
16
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
17
17
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
18
18
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
@@ -46,7 +46,7 @@ var anaylyticsEventPayload = function anaylyticsEventPayload(action) {
|
|
|
46
46
|
};
|
|
47
47
|
};
|
|
48
48
|
var RequestedMessage = function RequestedMessage() {
|
|
49
|
-
var _useIntl = (0,
|
|
49
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
50
50
|
formatMessage = _useIntl.formatMessage;
|
|
51
51
|
return /*#__PURE__*/React.createElement(React.Fragment, null, formatMessage(_messages.tasksAndDecisionsMessages.requestToEdit), /*#__PURE__*/React.createElement(_checkMark.default, {
|
|
52
52
|
label: "requested-to-edit",
|
|
@@ -55,7 +55,7 @@ var RequestedMessage = function RequestedMessage() {
|
|
|
55
55
|
};
|
|
56
56
|
var RequestToEditButton = function RequestToEditButton(_ref) {
|
|
57
57
|
var onClick = _ref.onClick;
|
|
58
|
-
var _useIntl2 = (0,
|
|
58
|
+
var _useIntl2 = (0, _reactIntl.useIntl)(),
|
|
59
59
|
formatMessage = _useIntl2.formatMessage;
|
|
60
60
|
return /*#__PURE__*/React.createElement(_compiled.Box, null, /*#__PURE__*/React.createElement(_compiled.Pressable, {
|
|
61
61
|
onClick: onClick,
|
|
@@ -85,7 +85,7 @@ var RequestToEditPopup = exports.RequestToEditPopup = function RequestToEditPopu
|
|
|
85
85
|
_useState6 = (0, _slicedToArray2.default)(_useState5, 2),
|
|
86
86
|
tryingRequest = _useState6[0],
|
|
87
87
|
setTryingRequest = _useState6[1];
|
|
88
|
-
var _useIntl3 = (0,
|
|
88
|
+
var _useIntl3 = (0, _reactIntl.useIntl)(),
|
|
89
89
|
formatMessage = _useIntl3.formatMessage;
|
|
90
90
|
(0, _react.useEffect)(function () {
|
|
91
91
|
setRequested(hasRequestedEditPermission);
|
|
@@ -15,7 +15,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
15
15
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _react = _interopRequireWildcard(require("react"));
|
|
18
|
-
var
|
|
18
|
+
var _reactIntl = require("react-intl");
|
|
19
19
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
20
20
|
var _providerFactory2 = require("@atlaskit/editor-common/provider-factory");
|
|
21
21
|
var _useSharedPluginStateSelector = require("@atlaskit/editor-common/use-shared-plugin-state-selector");
|
|
@@ -84,5 +84,5 @@ var TaskItemWrapper = function TaskItemWrapper(props) {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
87
|
-
var _default_1 = (0,
|
|
87
|
+
var _default_1 = (0, _reactIntl.injectIntl)(TaskItemWrapper);
|
|
88
88
|
var _default = exports.default = _default_1;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TaskListBlockMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
@@ -14,7 +14,7 @@ var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
|
|
|
14
14
|
var NODE_NAME = 'taskList';
|
|
15
15
|
var TaskListBlockMenuItem = exports.TaskListBlockMenuItem = function TaskListBlockMenuItem(_ref) {
|
|
16
16
|
var api = _ref.api;
|
|
17
|
-
var _useIntl = (0,
|
|
17
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
18
18
|
formatMessage = _useIntl.formatMessage;
|
|
19
19
|
var onClick = function onClick(event) {
|
|
20
20
|
var triggeredFrom = event.nativeEvent instanceof KeyboardEvent || event.nativeEvent.detail === 0 ? _analytics.INPUT_METHOD.KEYBOARD : _analytics.INPUT_METHOD.MOUSE;
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.TaskListMenuItem = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _hooks = require("@atlaskit/editor-common/hooks");
|
|
11
11
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
12
12
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
13
13
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
14
14
|
var TaskListMenuItem = exports.TaskListMenuItem = function TaskListMenuItem(_ref) {
|
|
15
15
|
var api = _ref.api;
|
|
16
|
-
var _useIntl = (0,
|
|
16
|
+
var _useIntl = (0, _reactIntl.useIntl)(),
|
|
17
17
|
formatMessage = _useIntl.formatMessage;
|
|
18
18
|
var _useSharedPluginState = (0, _hooks.useSharedPluginStateWithSelector)(api, ['taskDecision'], function (states) {
|
|
19
19
|
var _states$taskDecisionS;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _decision = _interopRequireDefault(require("@atlaskit/icon/core/decision"));
|
|
@@ -44,5 +44,5 @@ var ToolbarDecision = function ToolbarDecision(_ref) {
|
|
|
44
44
|
};
|
|
45
45
|
|
|
46
46
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
47
|
-
var _default_1 = (0,
|
|
47
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ToolbarDecision);
|
|
48
48
|
var _default = exports.default = _default_1;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _reactIntl = require("react-intl");
|
|
10
10
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _checkboxChecked = _interopRequireDefault(require("@atlaskit/icon/core/checkbox-checked"));
|
|
@@ -43,5 +43,5 @@ var ToolbarTask = function ToolbarTask(_ref) {
|
|
|
43
43
|
};
|
|
44
44
|
|
|
45
45
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
46
|
-
var _default_1 = (0,
|
|
46
|
+
var _default_1 = (0, _reactIntl.injectIntl)(ToolbarTask);
|
|
47
47
|
var _default = exports.default = _default_1;
|
|
@@ -46,7 +46,7 @@ export class DecisionItemNodeView {
|
|
|
46
46
|
/**
|
|
47
47
|
* Creates a new DecisionItemNodeView.
|
|
48
48
|
* @import type {PMNode} from '@atlaskit/editor-prosemirror/model';
|
|
49
|
-
* @import type {IntlShape} from 'react-intl
|
|
49
|
+
* @import type {IntlShape} from 'react-intl';
|
|
50
50
|
* @param {PMNode} node - The ProseMirror node representing the decision item.
|
|
51
51
|
* @param {IntlShape} intl - The IntlShape for internationalization, used to format the placeholder text.
|
|
52
52
|
* @example
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
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';
|
|
@@ -4,7 +4,7 @@ import "./RequestToEditPopup.compiled.css";
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
|
-
import { useIntl } from 'react-intl
|
|
7
|
+
import { useIntl } from 'react-intl';
|
|
8
8
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
10
10
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
import React, { PureComponent } from 'react';
|
|
4
|
-
import { injectIntl } from 'react-intl
|
|
4
|
+
import { injectIntl } from 'react-intl';
|
|
5
5
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
6
6
|
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { formatShortcut, toggleTaskList } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import TaskIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
@@ -14,7 +14,7 @@ export var DecisionItemNodeView = /*#__PURE__*/function () {
|
|
|
14
14
|
/**
|
|
15
15
|
* Creates a new DecisionItemNodeView.
|
|
16
16
|
* @import type {PMNode} from '@atlaskit/editor-prosemirror/model';
|
|
17
|
-
* @import type {IntlShape} from 'react-intl
|
|
17
|
+
* @import type {IntlShape} from 'react-intl';
|
|
18
18
|
* @param {PMNode} node - The ProseMirror node representing the decision item.
|
|
19
19
|
* @param {IntlShape} intl - The IntlShape for internationalization, used to format the placeholder text.
|
|
20
20
|
* @example
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
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';
|
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import { ax, ix } from "@compiled/react/runtime";
|
|
6
6
|
// import Popup from '@atlaskit/popup';
|
|
7
7
|
import { useEffect, useState } from 'react';
|
|
8
|
-
import { useIntl } from 'react-intl
|
|
8
|
+
import { useIntl } from 'react-intl';
|
|
9
9
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, MODE, PLATFORMS } from '@atlaskit/editor-common/analytics';
|
|
10
10
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
11
11
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
@@ -10,7 +10,7 @@ var _excluded = ["providers", "intl", "taskDecisionProvider", "api", "placeholde
|
|
|
10
10
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
import React, { PureComponent } from 'react';
|
|
13
|
-
import { injectIntl } from 'react-intl
|
|
13
|
+
import { injectIntl } from 'react-intl';
|
|
14
14
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
15
15
|
import { ProviderFactory, WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
16
16
|
import { useSharedPluginStateSelector } from '@atlaskit/editor-common/use-shared-plugin-state-selector';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useIntl } from 'react-intl
|
|
2
|
+
import { useIntl } from 'react-intl';
|
|
3
3
|
import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks';
|
|
4
4
|
import { formatShortcut, toggleTaskList } from '@atlaskit/editor-common/keymaps';
|
|
5
5
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import DecisionIcon from '@atlaskit/icon/core/decision';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { injectIntl } from 'react-intl
|
|
2
|
+
import { injectIntl } from 'react-intl';
|
|
3
3
|
import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
|
|
4
4
|
import { TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
5
5
|
import TaskIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class DecisionItemNodeView implements NodeView {
|
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new DecisionItemNodeView.
|
|
24
24
|
* @import type {PMNode} from '@atlaskit/editor-prosemirror/model';
|
|
25
|
-
* @import type {IntlShape} from 'react-intl
|
|
25
|
+
* @import type {IntlShape} from 'react-intl';
|
|
26
26
|
* @param {PMNode} node - The ProseMirror node representing the decision item.
|
|
27
27
|
* @param {IntlShape} intl - The IntlShape for internationalization, used to format the placeholder text.
|
|
28
28
|
* @example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
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 type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, Ref } from 'react';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class DecisionItemNodeView implements NodeView {
|
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new DecisionItemNodeView.
|
|
24
24
|
* @import type {PMNode} from '@atlaskit/editor-prosemirror/model';
|
|
25
|
-
* @import type {IntlShape} from 'react-intl
|
|
25
|
+
* @import type {IntlShape} from 'react-intl';
|
|
26
26
|
* @param {PMNode} node - The ProseMirror node representing the decision item.
|
|
27
27
|
* @param {IntlShape} intl - The IntlShape for internationalization, used to format the placeholder text.
|
|
28
28
|
* @example
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { ExtractInjectionAPI, getPosHandlerNode } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
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 type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import type { IntlShape } from 'react-intl
|
|
1
|
+
import type { IntlShape } from 'react-intl';
|
|
2
2
|
import type { Dispatch, EventDispatcher } from '@atlaskit/editor-common/event-dispatcher';
|
|
3
3
|
import type { PortalProviderAPI } from '@atlaskit/editor-common/portal';
|
|
4
4
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, Ref } from 'react';
|
|
2
2
|
import React, { PureComponent } from 'react';
|
|
3
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
3
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { WithIntlProps, WrappedComponentProps } from 'react-intl
|
|
2
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl';
|
|
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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.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",
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
"@atlaskit/adf-schema": "^52.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": "^10.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-block-menu": "^9.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-context-identifier": "^10.0.0",
|
|
38
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^12.0.0",
|
|
39
|
+
"@atlaskit/editor-plugin-selection": "^10.0.0",
|
|
40
|
+
"@atlaskit/editor-plugin-toolbar": "^7.0.0",
|
|
41
|
+
"@atlaskit/editor-plugin-type-ahead": "^10.0.0",
|
|
42
42
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
43
43
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
44
|
-
"@atlaskit/editor-toolbar": "^0.
|
|
44
|
+
"@atlaskit/editor-toolbar": "^1.0.0",
|
|
45
45
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
46
46
|
"@atlaskit/heading": "^5.4.0",
|
|
47
47
|
"@atlaskit/icon": "^34.2.0",
|
|
@@ -49,20 +49,21 @@
|
|
|
49
49
|
"@atlaskit/primitives": "^19.0.0",
|
|
50
50
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
51
51
|
"@atlaskit/task-decision": "^20.0.0",
|
|
52
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
52
|
+
"@atlaskit/tmp-editor-statsig": "^63.0.0",
|
|
53
53
|
"@atlaskit/tokens": "^13.0.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": "^
|
|
59
|
+
"@atlaskit/editor-common": "^114.2.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
|
-
"react-intl
|
|
62
|
+
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
65
|
"@testing-library/react": "^16.3.0",
|
|
66
|
+
"react-intl": "^6.6.2",
|
|
66
67
|
"wait-for-expect": "^1.2.0"
|
|
67
68
|
},
|
|
68
69
|
"techstack": {
|