@atlaskit/editor-plugin-tasks-and-decisions 19.0.7 → 19.0.9
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 +12 -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 +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -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.0.9",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"@atlaskit/primitives": "^22.4.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
44
44
|
"@atlaskit/task-decision": "^21.8.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^16.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
46
|
+
"@atlaskit/tokens": "^16.9.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.7.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"
|