@atlaskit/editor-plugin-tasks-and-decisions 19.2.0 → 19.2.2
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/nodeviews/TaskItemNodeView.js +2 -2
- package/dist/cjs/nodeviews/taskItemNodeSpec.js +5 -5
- package/dist/cjs/nodeviews/toDOM-fixes/decisionItem.js +3 -3
- package/dist/cjs/pm-plugins/insert-commands.js +7 -7
- package/dist/cjs/pm-plugins/keymaps.js +4 -4
- package/dist/cjs/pm-plugins/main.js +4 -4
- package/dist/cjs/pm-plugins/task-list-indentation.js +5 -5
- package/dist/cjs/pm-plugins/toggle-tasklist-commands.js +5 -5
- package/dist/cjs/pm-plugins/utils/paste.js +2 -2
- package/dist/cjs/tasksAndDecisionsPlugin.js +4 -3
- package/dist/cjs/ui/Task/RequestToEditPopup.compiled.css +2 -2
- package/dist/cjs/ui/Task/RequestToEditPopup.js +2 -2
- package/dist/es2019/nodeviews/TaskItemNodeView.js +1 -1
- package/dist/es2019/nodeviews/taskItemNodeSpec.js +1 -1
- package/dist/es2019/nodeviews/toDOM-fixes/decisionItem.js +1 -1
- package/dist/es2019/pm-plugins/insert-commands.js +1 -1
- package/dist/es2019/pm-plugins/keymaps.js +2 -2
- package/dist/es2019/pm-plugins/main.js +2 -2
- package/dist/es2019/pm-plugins/task-list-indentation.js +1 -1
- package/dist/es2019/pm-plugins/toggle-tasklist-commands.js +1 -1
- package/dist/es2019/pm-plugins/utils/paste.js +1 -1
- package/dist/es2019/tasksAndDecisionsPlugin.js +2 -1
- package/dist/es2019/ui/Task/RequestToEditPopup.compiled.css +2 -2
- package/dist/es2019/ui/Task/RequestToEditPopup.js +2 -2
- package/dist/esm/nodeviews/TaskItemNodeView.js +1 -1
- package/dist/esm/nodeviews/taskItemNodeSpec.js +1 -1
- package/dist/esm/nodeviews/toDOM-fixes/decisionItem.js +1 -1
- package/dist/esm/pm-plugins/insert-commands.js +1 -1
- package/dist/esm/pm-plugins/keymaps.js +2 -2
- package/dist/esm/pm-plugins/main.js +2 -2
- package/dist/esm/pm-plugins/task-list-indentation.js +1 -1
- package/dist/esm/pm-plugins/toggle-tasklist-commands.js +1 -1
- package/dist/esm/pm-plugins/utils/paste.js +1 -1
- package/dist/esm/tasksAndDecisionsPlugin.js +2 -1
- package/dist/esm/ui/Task/RequestToEditPopup.compiled.css +2 -2
- package/dist/esm/ui/Task/RequestToEditPopup.js +2 -2
- package/dist/types/pm-plugins/utils/paste.d.ts +1 -1
- package/dist/types/types/index.d.ts +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 19.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 19.2.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`bcfe498b206d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bcfe498b206d5) -
|
|
14
|
+
Adopt button and list-item motion tokens behind the use-pressable-motion rollout.
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 19.2.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _bindEventListener = require("bind-event-listener");
|
|
12
|
-
var
|
|
12
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
15
15
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
@@ -60,7 +60,7 @@ var TaskItemNodeView = exports.TaskItemNodeView = /*#__PURE__*/function () {
|
|
|
60
60
|
|
|
61
61
|
// SetAttrsStep should be used to prevent task updates from being dropped when mapping task ticks
|
|
62
62
|
// from a previous version of the document, such as a published page.
|
|
63
|
-
tr.step(new
|
|
63
|
+
tr.step(new _setAttrs.SetAttrsStep(nodePos, {
|
|
64
64
|
state: nextState,
|
|
65
65
|
localId: localId
|
|
66
66
|
}));
|
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.taskItemNodeSpec = exports.lazyTaskItemToDom = exports.blockTaskItemNodeSpec = void 0;
|
|
8
8
|
exports.taskItemToDom = taskItemToDom;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var
|
|
10
|
+
var _taskItem = require("@atlaskit/adf-schema/task-item");
|
|
11
11
|
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");
|
|
@@ -25,9 +25,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
25
25
|
*/
|
|
26
26
|
var taskItemNodeSpec = exports.taskItemNodeSpec = function taskItemNodeSpec() {
|
|
27
27
|
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
28
|
-
return
|
|
28
|
+
return _taskItem.taskItem;
|
|
29
29
|
}
|
|
30
|
-
return _objectSpread(_objectSpread({},
|
|
30
|
+
return _objectSpread(_objectSpread({}, _taskItem.taskItem), {}, {
|
|
31
31
|
toDOM: function toDOM(node) {
|
|
32
32
|
return lazyTaskItemToDom(node);
|
|
33
33
|
}
|
|
@@ -43,9 +43,9 @@ var taskItemNodeSpec = exports.taskItemNodeSpec = function taskItemNodeSpec() {
|
|
|
43
43
|
*/
|
|
44
44
|
var blockTaskItemNodeSpec = exports.blockTaskItemNodeSpec = function blockTaskItemNodeSpec() {
|
|
45
45
|
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
46
|
-
return
|
|
46
|
+
return _taskItem.blockTaskItem;
|
|
47
47
|
}
|
|
48
|
-
return _objectSpread(_objectSpread({},
|
|
48
|
+
return _objectSpread(_objectSpread({}, _taskItem.blockTaskItem), {}, {
|
|
49
49
|
toDOM: function toDOM(node) {
|
|
50
50
|
return lazyTaskItemToDom(node);
|
|
51
51
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.decisionItemSpecWithFixedToDOM = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _decisionItem = require("@atlaskit/adf-schema/decision-item");
|
|
10
10
|
var _lazyNodeView = require("@atlaskit/editor-common/lazy-node-view");
|
|
11
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; }
|
|
@@ -14,9 +14,9 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
14
14
|
// @nodeSpecException:toDOM patch
|
|
15
15
|
var decisionItemSpecWithFixedToDOM = exports.decisionItemSpecWithFixedToDOM = function decisionItemSpecWithFixedToDOM() {
|
|
16
16
|
if ((0, _editorExperiment.editorExperiment)('platform_editor_exp_lazy_node_views', false)) {
|
|
17
|
-
return
|
|
17
|
+
return _decisionItem.decisionItem;
|
|
18
18
|
}
|
|
19
|
-
return _objectSpread(_objectSpread({},
|
|
19
|
+
return _objectSpread(_objectSpread({}, _decisionItem.decisionItem), {}, {
|
|
20
20
|
toDOM: function toDOM(node) {
|
|
21
21
|
var _node$attrs = node.attrs,
|
|
22
22
|
localId = _node$attrs.localId,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.setProvider = exports.isSupportedSourceNode = exports.insertTaskDecisionWithAnalytics = exports.insertTaskDecisionCommand = exports.insertTaskDecisionAction = exports.getListTypes = exports.createListAtSelection = exports.changeInDepth = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
12
12
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -155,8 +155,8 @@ var insertTaskDecisionWithAnalytics = exports.insertTaskDecisionWithAnalytics =
|
|
|
155
155
|
itemIdx = listItemNode ? state.doc.resolve(listItemNode.pos).index() + 1 : 0;
|
|
156
156
|
insertTrCreator = addToList ? addToList : addAndCreateList;
|
|
157
157
|
}
|
|
158
|
-
listLocalId = listLocalId ||
|
|
159
|
-
itemLocalId = itemLocalId ||
|
|
158
|
+
listLocalId = listLocalId || _uuid.uuid.generate();
|
|
159
|
+
itemLocalId = itemLocalId || _uuid.uuid.generate();
|
|
160
160
|
if (insertTrCreator) {
|
|
161
161
|
var insertTr = insertTrCreator({
|
|
162
162
|
state: state,
|
|
@@ -189,8 +189,8 @@ var changeInDepth = exports.changeInDepth = function changeInDepth(before, after
|
|
|
189
189
|
return after.depth - before.depth;
|
|
190
190
|
};
|
|
191
191
|
var createListAtSelection = exports.createListAtSelection = function createListAtSelection(tr, list, item, schema, state) {
|
|
192
|
-
var listLocalId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] :
|
|
193
|
-
var itemLocalId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] :
|
|
192
|
+
var listLocalId = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : _uuid.uuid.generate();
|
|
193
|
+
var itemLocalId = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : _uuid.uuid.generate();
|
|
194
194
|
var itemAttrs = arguments.length > 7 ? arguments[7] : undefined;
|
|
195
195
|
var selection = state.selection;
|
|
196
196
|
var $from = selection.$from,
|
|
@@ -227,9 +227,9 @@ var createListAtSelection = exports.createListAtSelection = function createListA
|
|
|
227
227
|
nodeType = _selection$$from$node.type,
|
|
228
228
|
childCount = _selection$$from$node.childCount;
|
|
229
229
|
var newListNode = list.create({
|
|
230
|
-
localId:
|
|
230
|
+
localId: _uuid.uuid.generate()
|
|
231
231
|
}, [item.create({
|
|
232
|
-
localId:
|
|
232
|
+
localId: _uuid.uuid.generate()
|
|
233
233
|
}, $from.node($from.depth).content)]);
|
|
234
234
|
var hasBlockquoteParent = (0, _utils2.findParentNodeOfType)(blockquote)(selection);
|
|
235
235
|
if (hasBlockquoteParent) {
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.getUnindentCommand = exports.getIndentCommand = exports.default = void 0;
|
|
8
8
|
exports.keymapPlugin = keymapPlugin;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
11
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
12
12
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
13
|
var _editorAnalytics = require("@atlaskit/editor-common/editor-analytics");
|
|
14
14
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
@@ -444,7 +444,7 @@ var splitListItemWith = function splitListItemWith(tr, content, $from, setSelect
|
|
|
444
444
|
tr = tr.split($from.pos, hasBlockTaskItem ? 0 : 1, [{
|
|
445
445
|
type: $from.parent.type,
|
|
446
446
|
attrs: {
|
|
447
|
-
localId:
|
|
447
|
+
localId: _uuid.uuid.generate()
|
|
448
448
|
}
|
|
449
449
|
}]);
|
|
450
450
|
}
|
|
@@ -685,7 +685,7 @@ var cmdOptEnter = (0, _utils.filterCommand)(_helpers.isInsideTaskOrDecisionItem,
|
|
|
685
685
|
var nodePos = $from.before($from.depth);
|
|
686
686
|
if (nodeType === taskItem) {
|
|
687
687
|
var tr = state.tr;
|
|
688
|
-
tr.step(new
|
|
688
|
+
tr.step(new _setAttrs.SetAttrsStep(nodePos, {
|
|
689
689
|
state: node.attrs.state === 'TODO' ? 'DONE' : 'TODO',
|
|
690
690
|
localId: node.attrs.localId
|
|
691
691
|
}));
|
|
@@ -7,8 +7,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.createPlugin = createPlugin;
|
|
8
8
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var
|
|
11
|
-
var
|
|
10
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
11
|
+
var _setAttrs = require("@atlaskit/adf-schema/steps/set-attrs");
|
|
12
12
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
13
13
|
var _selection = require("@atlaskit/editor-common/selection");
|
|
14
14
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
@@ -310,8 +310,8 @@ function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api, getIntl
|
|
|
310
310
|
localId = _node$attrs.localId,
|
|
311
311
|
rest = (0, _objectWithoutProperties2.default)(_node$attrs, _excluded);
|
|
312
312
|
if (localId === undefined || localId === null || localId === '') {
|
|
313
|
-
tr.step(new
|
|
314
|
-
localId:
|
|
313
|
+
tr.step(new _setAttrs.SetAttrsStep(pos, _objectSpread({
|
|
314
|
+
localId: _uuid.uuid.generate()
|
|
315
315
|
}, rest)));
|
|
316
316
|
modified = true;
|
|
317
317
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.flattenTaskList = flattenTaskList;
|
|
7
7
|
exports.rebuildTaskList = rebuildTaskList;
|
|
8
|
-
var
|
|
8
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
9
9
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
10
10
|
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
@@ -160,7 +160,7 @@ function rebuildTaskList(items, schema) {
|
|
|
160
160
|
break;
|
|
161
161
|
}
|
|
162
162
|
var _attrs = (_popped$listAttrs2 = _popped.listAttrs) !== null && _popped$listAttrs2 !== void 0 ? _popped$listAttrs2 : {
|
|
163
|
-
localId:
|
|
163
|
+
localId: _uuid.uuid.generate()
|
|
164
164
|
};
|
|
165
165
|
var _wrappedList = taskList.create(_attrs, _popped.children);
|
|
166
166
|
stack[stack.length - 1].children.push(_wrappedList);
|
|
@@ -184,7 +184,7 @@ function rebuildTaskList(items, schema) {
|
|
|
184
184
|
break;
|
|
185
185
|
}
|
|
186
186
|
var _attrs2 = (_popped2$listAttrs = _popped2.listAttrs) !== null && _popped2$listAttrs !== void 0 ? _popped2$listAttrs : {
|
|
187
|
-
localId:
|
|
187
|
+
localId: _uuid.uuid.generate()
|
|
188
188
|
};
|
|
189
189
|
var _wrappedList2 = taskList.create(_attrs2, _popped2.children);
|
|
190
190
|
stack[stack.length - 1].children.push(_wrappedList2);
|
|
@@ -244,7 +244,7 @@ function rebuildTaskList(items, schema) {
|
|
|
244
244
|
break;
|
|
245
245
|
}
|
|
246
246
|
var attrs = (_popped$listAttrs = popped.listAttrs) !== null && _popped$listAttrs !== void 0 ? _popped$listAttrs : {
|
|
247
|
-
localId:
|
|
247
|
+
localId: _uuid.uuid.generate()
|
|
248
248
|
};
|
|
249
249
|
var wrappedList = taskList.create(attrs, popped.children);
|
|
250
250
|
stack[stack.length - 1].children.push(wrappedList);
|
|
@@ -254,7 +254,7 @@ function rebuildTaskList(items, schema) {
|
|
|
254
254
|
// Preserve the root's original attrs when available.
|
|
255
255
|
var rootChildren = stack[0].children;
|
|
256
256
|
var rootAttrs = (_stack$0$listAttrs = stack[0].listAttrs) !== null && _stack$0$listAttrs !== void 0 ? _stack$0$listAttrs : {
|
|
257
|
-
localId:
|
|
257
|
+
localId: _uuid.uuid.generate()
|
|
258
258
|
};
|
|
259
259
|
var rootList = taskList.create(rootAttrs, rootChildren);
|
|
260
260
|
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.toggleTaskList = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var
|
|
9
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
10
10
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
11
11
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
12
12
|
var _transforms = require("@atlaskit/editor-common/transforms");
|
|
@@ -28,8 +28,8 @@ var toggleTaskList = exports.toggleTaskList = function toggleTaskList(editorAnal
|
|
|
28
28
|
var isEmpty = $from.parent.content.size === 0;
|
|
29
29
|
if (isEmpty && nodes.taskList && nodes.taskItem) {
|
|
30
30
|
// Create an empty task list with one empty task item
|
|
31
|
-
var listLocalId =
|
|
32
|
-
var itemLocalId =
|
|
31
|
+
var listLocalId = _uuid.uuid.generate();
|
|
32
|
+
var itemLocalId = _uuid.uuid.generate();
|
|
33
33
|
var emptyList = nodes.taskList.create({
|
|
34
34
|
localId: listLocalId
|
|
35
35
|
}, [nodes.taskItem.create({
|
|
@@ -124,9 +124,9 @@ var toggleTaskList = exports.toggleTaskList = function toggleTaskList(editorAnal
|
|
|
124
124
|
if (_resultTr2 && _resultTr2.docChanged) {
|
|
125
125
|
var _listNode$attrs$local, _listNode$attrs, _listNode$childCount, _listNode$firstChild$, _listNode$firstChild;
|
|
126
126
|
var listNode = _resultTr2.doc.nodeAt(range.start);
|
|
127
|
-
var listLocalIdFromNode = (_listNode$attrs$local = listNode === null || listNode === void 0 || (_listNode$attrs = listNode.attrs) === null || _listNode$attrs === void 0 ? void 0 : _listNode$attrs.localId) !== null && _listNode$attrs$local !== void 0 ? _listNode$attrs$local :
|
|
127
|
+
var listLocalIdFromNode = (_listNode$attrs$local = listNode === null || listNode === void 0 || (_listNode$attrs = listNode.attrs) === null || _listNode$attrs === void 0 ? void 0 : _listNode$attrs.localId) !== null && _listNode$attrs$local !== void 0 ? _listNode$attrs$local : _uuid.uuid.generate();
|
|
128
128
|
var listSizeFromNode = (_listNode$childCount = listNode === null || listNode === void 0 ? void 0 : listNode.childCount) !== null && _listNode$childCount !== void 0 ? _listNode$childCount : 0;
|
|
129
|
-
var localIdFromNode = (_listNode$firstChild$ = listNode === null || listNode === void 0 || (_listNode$firstChild = listNode.firstChild) === null || _listNode$firstChild === void 0 || (_listNode$firstChild = _listNode$firstChild.attrs) === null || _listNode$firstChild === void 0 ? void 0 : _listNode$firstChild.localId) !== null && _listNode$firstChild$ !== void 0 ? _listNode$firstChild$ :
|
|
129
|
+
var localIdFromNode = (_listNode$firstChild$ = listNode === null || listNode === void 0 || (_listNode$firstChild = listNode.firstChild) === null || _listNode$firstChild === void 0 || (_listNode$firstChild = _listNode$firstChild.attrs) === null || _listNode$firstChild === void 0 ? void 0 : _listNode$firstChild.localId) !== null && _listNode$firstChild$ !== void 0 ? _listNode$firstChild$ : _uuid.uuid.generate();
|
|
130
130
|
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
131
131
|
action: _analytics.ACTION.INSERTED,
|
|
132
132
|
actionSubject: _analytics.ACTION_SUBJECT.DOCUMENT,
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.tempTransformSliceToRemoveBlockTaskItem = exports.normalizeNodeForTaskTextSize = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
-
var
|
|
9
|
+
var _uuid = require("@atlaskit/adf-schema/uuid");
|
|
10
10
|
var _lists = require("@atlaskit/editor-common/lists");
|
|
11
11
|
var _transforms = require("@atlaskit/editor-common/transforms");
|
|
12
12
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
@@ -114,7 +114,7 @@ var normalizeBlockTaskItemToTaskItems = function normalizeBlockTaskItemToTaskIte
|
|
|
114
114
|
var transformedContent = [];
|
|
115
115
|
node.content.forEach(function (paragraphNode) {
|
|
116
116
|
transformedContent.push(taskItem.create({
|
|
117
|
-
localId:
|
|
117
|
+
localId: _uuid.uuid.generate(),
|
|
118
118
|
state: node.attrs.state || 'TODO'
|
|
119
119
|
}, paragraphNode.content));
|
|
120
120
|
});
|
|
@@ -14,7 +14,8 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
16
16
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
17
|
-
var
|
|
17
|
+
var _decisionList = require("@atlaskit/adf-schema/decision-list");
|
|
18
|
+
var _taskList = require("@atlaskit/adf-schema/task-list");
|
|
18
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
19
20
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
20
21
|
var _blockMenu = require("@atlaskit/editor-common/block-menu");
|
|
@@ -186,13 +187,13 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
|
|
|
186
187
|
nodes: function nodes() {
|
|
187
188
|
return [{
|
|
188
189
|
name: 'decisionList',
|
|
189
|
-
node:
|
|
190
|
+
node: _decisionList.decisionList
|
|
190
191
|
}, {
|
|
191
192
|
name: 'decisionItem',
|
|
192
193
|
node: (0, _decisionItem.decisionItemSpecWithFixedToDOM)()
|
|
193
194
|
}, {
|
|
194
195
|
name: 'taskList',
|
|
195
|
-
node:
|
|
196
|
+
node: _taskList.taskList
|
|
196
197
|
}, {
|
|
197
198
|
name: 'taskItem',
|
|
198
199
|
node: (0, _taskItemNodeSpec.taskItemNodeSpec)()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
|
-
.
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
4
|
._zulp1b66{gap:var(--ds-space-050,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
6
6
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
._1bnx8stv:hover{text-decoration-line:underline}
|
|
35
35
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
36
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
37
|
-
.
|
|
37
|
+
._1ggl5xtf:active{transition:var(--ds-button-pressed,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
38
38
|
._9h8h12zz:active{color:var(--ds-link-pressed,#1558bc)}
|
|
@@ -34,8 +34,8 @@ var wrapperBoxStyles = null;
|
|
|
34
34
|
var dotStyles = null;
|
|
35
35
|
var dotStylesUnbounded = null;
|
|
36
36
|
var pressableStyles = {
|
|
37
|
-
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _9h8h12zz",
|
|
38
|
-
pressableMotion: "
|
|
37
|
+
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz",
|
|
38
|
+
pressableMotion: "_v564k6bl _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz"
|
|
39
39
|
};
|
|
40
40
|
var anaylyticsEventPayload = function anaylyticsEventPayload(action) {
|
|
41
41
|
return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import { bindAll } from 'bind-event-listener';
|
|
3
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
3
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
4
4
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { taskItem, blockTaskItem } from '@atlaskit/adf-schema';
|
|
1
|
+
import { taskItem, blockTaskItem } from '@atlaskit/adf-schema/task-item';
|
|
2
2
|
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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { decisionItem } from '@atlaskit/adf-schema';
|
|
1
|
+
import { decisionItem } from '@atlaskit/adf-schema/decision-item';
|
|
2
2
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
3
3
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
4
4
|
// @nodeSpecException:toDOM patch
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
4
4
|
import { autoJoinTr } from '@atlaskit/editor-common/utils';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
3
3
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
5
5
|
import { toggleTaskItemCheckbox, toggleTaskList as toggleTaskListKeymap } from '@atlaskit/editor-common/keymaps';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { createSelectionClickHandler, GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
5
5
|
import { getStepRange } from '@atlaskit/editor-common/utils';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
2
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
|
|
4
4
|
import { transformBetweenListTypes, transformToTaskList, transformTaskListToBlockNodes, isBulletOrOrderedList, isTaskList, getFormattedNode } from '@atlaskit/editor-common/transforms';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
1
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
2
2
|
import { getBlockMarkAttrs, getFirstParagraphBlockMarkAttrs } from '@atlaskit/editor-common/lists';
|
|
3
3
|
import { createBlockTaskItem, isTaskList } from '@atlaskit/editor-common/transforms';
|
|
4
4
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import "./tasksAndDecisionsPlugin.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import { decisionList
|
|
5
|
+
import { decisionList } from '@atlaskit/adf-schema/decision-list';
|
|
6
|
+
import { taskList } from '@atlaskit/adf-schema/task-list';
|
|
6
7
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
8
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
9
|
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
|
-
.
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
4
|
._zulp1b66{gap:var(--ds-space-050,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
6
6
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
._1bnx8stv:hover{text-decoration-line:underline}
|
|
35
35
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
36
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
37
|
-
.
|
|
37
|
+
._1ggl5xtf:active{transition:var(--ds-button-pressed,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
38
38
|
._9h8h12zz:active{color:var(--ds-link-pressed,#1558bc)}
|
|
@@ -25,8 +25,8 @@ const wrapperBoxStyles = null;
|
|
|
25
25
|
const dotStyles = null;
|
|
26
26
|
const dotStylesUnbounded = null;
|
|
27
27
|
const pressableStyles = {
|
|
28
|
-
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _9h8h12zz",
|
|
29
|
-
pressableMotion: "
|
|
28
|
+
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz",
|
|
29
|
+
pressableMotion: "_v564k6bl _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz"
|
|
30
30
|
};
|
|
31
31
|
const anaylyticsEventPayload = action => {
|
|
32
32
|
return {
|
|
@@ -2,7 +2,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
4
|
import { bindAll } from 'bind-event-listener';
|
|
5
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
5
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
6
6
|
import { tasksAndDecisionsMessages } from '@atlaskit/editor-common/messages';
|
|
7
7
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
8
8
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { taskItem, blockTaskItem } from '@atlaskit/adf-schema';
|
|
4
|
+
import { taskItem, blockTaskItem } from '@atlaskit/adf-schema/task-item';
|
|
5
5
|
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';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { decisionItem } from '@atlaskit/adf-schema';
|
|
4
|
+
import { decisionItem } from '@atlaskit/adf-schema/decision-item';
|
|
5
5
|
import { convertToInlineCss } from '@atlaskit/editor-common/lazy-node-view';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
7
7
|
// @nodeSpecException:toDOM patch
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
4
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
7
7
|
import { autoJoinTr } from '@atlaskit/editor-common/utils';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
5
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
4
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
6
6
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INDENT_DIRECTION, INDENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { withAnalytics } from '@atlaskit/editor-common/editor-analytics';
|
|
8
8
|
import { toggleTaskItemCheckbox, toggleTaskList as toggleTaskListKeymap } from '@atlaskit/editor-common/keymaps';
|
|
@@ -3,8 +3,8 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
var _excluded = ["localId"];
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|
|
6
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
7
|
-
import { SetAttrsStep } from '@atlaskit/adf-schema/steps';
|
|
6
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
7
|
+
import { SetAttrsStep } from '@atlaskit/adf-schema/steps/set-attrs';
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { createSelectionClickHandler, GapCursorSelection } from '@atlaskit/editor-common/selection';
|
|
10
10
|
import { getStepRange } from '@atlaskit/editor-common/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
2
2
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
3
3
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
4
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
4
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
5
|
import { flattenList as flattenListBase } from '@atlaskit/editor-common/lists';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
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; }
|
|
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
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
4
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
5
5
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
|
|
7
7
|
import { transformBetweenListTypes, transformToTaskList, transformTaskListToBlockNodes, isBulletOrOrderedList, isTaskList, getFormattedNode } from '@atlaskit/editor-common/transforms';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
|
-
import { uuid } from '@atlaskit/adf-schema';
|
|
2
|
+
import { uuid } from '@atlaskit/adf-schema/uuid';
|
|
3
3
|
import { getBlockMarkAttrs, getFirstParagraphBlockMarkAttrs } from '@atlaskit/editor-common/lists';
|
|
4
4
|
import { createBlockTaskItem, isTaskList } from '@atlaskit/editor-common/transforms';
|
|
5
5
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
@@ -8,7 +8,8 @@ import { ax, ix } from "@compiled/react/runtime";
|
|
|
8
8
|
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; }
|
|
9
9
|
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; }
|
|
10
10
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
11
|
-
import { decisionList
|
|
11
|
+
import { decisionList } from '@atlaskit/adf-schema/decision-list';
|
|
12
|
+
import { taskList } from '@atlaskit/adf-schema/task-list';
|
|
12
13
|
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
13
14
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
14
15
|
import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_TASK_LIST_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION_RANK, TRANSFORM_STRUCTURE_DECISION_MENU_ITEM } from '@atlaskit/editor-common/block-menu';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
._2rko1rr0{border-radius:var(--ds-radius-full,9999px)}
|
|
2
2
|
._2rkofajl{border-radius:var(--ds-radius-small,3px)}
|
|
3
|
-
.
|
|
3
|
+
._v564k6bl{transition:var(--ds-button-hovered,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
4
4
|
._zulp1b66{gap:var(--ds-space-050,4px)}._16qs130s{box-shadow:var(--ds-shadow-overlay,0 8px 9pt #1e1f2126,0 0 1px #1e1f214f)}
|
|
5
5
|
._18u0u2gc{margin-left:var(--ds-space-100,8px)}
|
|
6
6
|
._19bv1ejb{padding-left:var(--ds-space-300,24px)}
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
._1bnx8stv:hover{text-decoration-line:underline}
|
|
35
35
|
._9oik1r31:hover{text-decoration-color:currentColor}
|
|
36
36
|
._jf4cnqa1:hover{text-decoration-style:solid}
|
|
37
|
-
.
|
|
37
|
+
._1ggl5xtf:active{transition:var(--ds-button-pressed,background-color border-color .15s cubic-bezier(.4,1,.6,1))}
|
|
38
38
|
._9h8h12zz:active{color:var(--ds-link-pressed,#1558bc)}
|
|
@@ -26,8 +26,8 @@ var wrapperBoxStyles = null;
|
|
|
26
26
|
var dotStyles = null;
|
|
27
27
|
var dotStylesUnbounded = null;
|
|
28
28
|
var pressableStyles = {
|
|
29
|
-
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _9h8h12zz",
|
|
30
|
-
pressableMotion: "
|
|
29
|
+
pressable: "_ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz",
|
|
30
|
+
pressableMotion: "_v564k6bl _ca0qze3t _n3tdze3t _19bvze3t _u5f3ze3t _1wybdlk8 _syaz1oa5 _bfhksm61 _9oik1r31 _1bnx8stv _jf4cnqa1 _1ggl5xtf _9h8h12zz"
|
|
31
31
|
};
|
|
32
32
|
var anaylyticsEventPayload = function anaylyticsEventPayload(action) {
|
|
33
33
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { FontSizeMarkAttrs } from '@atlaskit/adf-schema/font-size';
|
|
2
2
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { BlockTaskItemDefinition,
|
|
1
|
+
import type { BlockTaskItemDefinition, TaskItemDefinition } from '@atlaskit/adf-schema/task-item';
|
|
2
|
+
import type { DecisionItemDefinition } from '@atlaskit/adf-schema/decision-item';
|
|
2
3
|
import type { INPUT_METHOD, USER_CONTEXT } from '@atlaskit/editor-common/analytics';
|
|
3
4
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
5
|
import type { LongPressSelectionPluginOptions } from '@atlaskit/editor-common/types';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-tasks-and-decisions",
|
|
3
|
-
"version": "19.2.
|
|
3
|
+
"version": "19.2.2",
|
|
4
4
|
"description": "Tasks and decisions plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@atlaskit/analytics-namespaced-context": "^8.2.0",
|
|
26
26
|
"@atlaskit/css": "^1.1.0",
|
|
27
27
|
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
28
|
-
"@atlaskit/editor-plugin-block-menu": "^15.
|
|
28
|
+
"@atlaskit/editor-plugin-block-menu": "^15.1.0",
|
|
29
29
|
"@atlaskit/editor-plugin-context-identifier": "^16.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@atlaskit/primitives": "^22.5.0",
|
|
43
43
|
"@atlaskit/prosemirror-input-rules": "^4.1.0",
|
|
44
44
|
"@atlaskit/task-decision": "^21.9.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^173.0.0",
|
|
46
46
|
"@atlaskit/tokens": "^16.11.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^1.0.2",
|