@atlaskit/editor-plugin-tasks-and-decisions 6.2.1 → 6.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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-tasks-and-decisions
|
|
2
2
|
|
|
3
|
+
## 6.2.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#200845](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/200845)
|
|
8
|
+
[`4e3985a5a347d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4e3985a5a347d) -
|
|
9
|
+
EDITOR-1320 Ensure localID creation for blockTaskItem
|
|
10
|
+
|
|
3
11
|
## 6.2.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -261,7 +261,7 @@ function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api, getIntl
|
|
|
261
261
|
/*
|
|
262
262
|
* After each transaction, we search through the document for any decisionList/Item & taskList/Item nodes
|
|
263
263
|
* that do not have the localId attribute set and generate a random UUID to use. This is to replace a previous
|
|
264
|
-
* Prosemirror
|
|
264
|
+
* Prosemirror capability where node attributes could be generated dynamically.
|
|
265
265
|
* See https://discuss.prosemirror.net/t/release-0-23-0-possibly-to-be-1-0-0/959/17 for a discussion of this approach.
|
|
266
266
|
*
|
|
267
267
|
* Note: we currently do not handle the edge case where two nodes may have the same localId
|
|
@@ -280,8 +280,9 @@ function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api, getIntl
|
|
|
280
280
|
decisionList = _newState$schema$node.decisionList,
|
|
281
281
|
decisionItem = _newState$schema$node.decisionItem,
|
|
282
282
|
taskList = _newState$schema$node.taskList,
|
|
283
|
-
taskItem = _newState$schema$node.taskItem
|
|
284
|
-
|
|
283
|
+
taskItem = _newState$schema$node.taskItem,
|
|
284
|
+
blockTaskItem = _newState$schema$node.blockTaskItem;
|
|
285
|
+
if (!!node.type && (node.type === decisionList || node.type === decisionItem || node.type === taskList || node.type === taskItem || blockTaskItem && node.type === blockTaskItem)) {
|
|
285
286
|
var _node$attrs = node.attrs,
|
|
286
287
|
localId = _node$attrs.localId,
|
|
287
288
|
rest = (0, _objectWithoutProperties2.default)(_node$attrs, _excluded);
|
|
@@ -257,7 +257,7 @@ export function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api,
|
|
|
257
257
|
/*
|
|
258
258
|
* After each transaction, we search through the document for any decisionList/Item & taskList/Item nodes
|
|
259
259
|
* that do not have the localId attribute set and generate a random UUID to use. This is to replace a previous
|
|
260
|
-
* Prosemirror
|
|
260
|
+
* Prosemirror capability where node attributes could be generated dynamically.
|
|
261
261
|
* See https://discuss.prosemirror.net/t/release-0-23-0-possibly-to-be-1-0-0/959/17 for a discussion of this approach.
|
|
262
262
|
*
|
|
263
263
|
* Note: we currently do not handle the edge case where two nodes may have the same localId
|
|
@@ -276,9 +276,10 @@ export function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api,
|
|
|
276
276
|
decisionList,
|
|
277
277
|
decisionItem,
|
|
278
278
|
taskList,
|
|
279
|
-
taskItem
|
|
279
|
+
taskItem,
|
|
280
|
+
blockTaskItem
|
|
280
281
|
} = newState.schema.nodes;
|
|
281
|
-
if (!!node.type && (node.type === decisionList || node.type === decisionItem || node.type === taskList || node.type === taskItem)) {
|
|
282
|
+
if (!!node.type && (node.type === decisionList || node.type === decisionItem || node.type === taskList || node.type === taskItem || blockTaskItem && node.type === blockTaskItem)) {
|
|
282
283
|
const {
|
|
283
284
|
localId,
|
|
284
285
|
...rest
|
|
@@ -254,7 +254,7 @@ export function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api,
|
|
|
254
254
|
/*
|
|
255
255
|
* After each transaction, we search through the document for any decisionList/Item & taskList/Item nodes
|
|
256
256
|
* that do not have the localId attribute set and generate a random UUID to use. This is to replace a previous
|
|
257
|
-
* Prosemirror
|
|
257
|
+
* Prosemirror capability where node attributes could be generated dynamically.
|
|
258
258
|
* See https://discuss.prosemirror.net/t/release-0-23-0-possibly-to-be-1-0-0/959/17 for a discussion of this approach.
|
|
259
259
|
*
|
|
260
260
|
* Note: we currently do not handle the edge case where two nodes may have the same localId
|
|
@@ -273,8 +273,9 @@ export function createPlugin(portalProviderAPI, eventDispatcher, dispatch, api,
|
|
|
273
273
|
decisionList = _newState$schema$node.decisionList,
|
|
274
274
|
decisionItem = _newState$schema$node.decisionItem,
|
|
275
275
|
taskList = _newState$schema$node.taskList,
|
|
276
|
-
taskItem = _newState$schema$node.taskItem
|
|
277
|
-
|
|
276
|
+
taskItem = _newState$schema$node.taskItem,
|
|
277
|
+
blockTaskItem = _newState$schema$node.blockTaskItem;
|
|
278
|
+
if (!!node.type && (node.type === decisionList || node.type === decisionItem || node.type === taskList || node.type === taskItem || blockTaskItem && node.type === blockTaskItem)) {
|
|
278
279
|
var _node$attrs = node.attrs,
|
|
279
280
|
localId = _node$attrs.localId,
|
|
280
281
|
rest = _objectWithoutProperties(_node$attrs, _excluded);
|