@atlaskit/editor-plugin-tasks-and-decisions 0.2.10 → 0.2.12

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,17 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 0.2.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.2.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [#63286](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/63286) [`8391b2f13d16`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8391b2f13d16) - ED-21644 Add action item outside blockquote on trying to insert action in a list inside quote
14
+
3
15
  ## 0.2.10
4
16
 
5
17
  ### Patch Changes
@@ -177,8 +177,10 @@ var isSupportedSourceNode = exports.isSupportedSourceNode = function isSupported
177
177
  paragraph = _schema$nodes2.paragraph,
178
178
  blockquote = _schema$nodes2.blockquote,
179
179
  decisionList = _schema$nodes2.decisionList,
180
- taskList = _schema$nodes2.taskList;
181
- return (0, _utils2.hasParentNodeOfType)([blockquote, paragraph, decisionList, taskList])(selection);
180
+ taskList = _schema$nodes2.taskList,
181
+ bulletList = _schema$nodes2.bulletList,
182
+ numberedList = _schema$nodes2.numberedList;
183
+ return (0, _utils2.hasParentNodeOfType)([blockquote, paragraph, decisionList, taskList])(selection) && !(0, _utils2.hasParentNodeOfType)([bulletList, numberedList])(selection);
182
184
  };
183
185
  var changeInDepth = exports.changeInDepth = function changeInDepth(before, after) {
184
186
  return after.depth - before.depth;
@@ -165,9 +165,11 @@ export const isSupportedSourceNode = (schema, selection) => {
165
165
  paragraph,
166
166
  blockquote,
167
167
  decisionList,
168
- taskList
168
+ taskList,
169
+ bulletList,
170
+ numberedList
169
171
  } = schema.nodes;
170
- return hasParentNodeOfType([blockquote, paragraph, decisionList, taskList])(selection);
172
+ return hasParentNodeOfType([blockquote, paragraph, decisionList, taskList])(selection) && !hasParentNodeOfType([bulletList, numberedList])(selection);
171
173
  };
172
174
  export const changeInDepth = (before, after) => after.depth - before.depth;
173
175
  export const createListAtSelection = (tr, list, item, schema, state, listLocalId = uuid.generate(), itemLocalId = uuid.generate(), itemAttrs) => {
@@ -170,8 +170,10 @@ export var isSupportedSourceNode = function isSupportedSourceNode(schema, select
170
170
  paragraph = _schema$nodes2.paragraph,
171
171
  blockquote = _schema$nodes2.blockquote,
172
172
  decisionList = _schema$nodes2.decisionList,
173
- taskList = _schema$nodes2.taskList;
174
- return hasParentNodeOfType([blockquote, paragraph, decisionList, taskList])(selection);
173
+ taskList = _schema$nodes2.taskList,
174
+ bulletList = _schema$nodes2.bulletList,
175
+ numberedList = _schema$nodes2.numberedList;
176
+ return hasParentNodeOfType([blockquote, paragraph, decisionList, taskList])(selection) && !hasParentNodeOfType([bulletList, numberedList])(selection);
175
177
  };
176
178
  export var changeInDepth = function changeInDepth(before, after) {
177
179
  return after.depth - before.depth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -10,7 +10,8 @@
10
10
  "atlassian": {
11
11
  "team": "Editor: AI",
12
12
  "inPublicMirror": false,
13
- "releaseModel": "continuous"
13
+ "releaseModel": "continuous",
14
+ "runReact18": false
14
15
  },
15
16
  "repository": "https://bitbucket.org/atlassian/atlassian-frontend",
16
17
  "main": "dist/cjs/index.js",
@@ -34,9 +35,9 @@
34
35
  "@atlaskit/adf-schema": "^35.2.0",
35
36
  "@atlaskit/analytics-namespaced-context": "^6.7.0",
36
37
  "@atlaskit/analytics-next": "^9.1.0",
37
- "@atlaskit/editor-common": "^76.27.0",
38
+ "@atlaskit/editor-common": "^76.34.0",
38
39
  "@atlaskit/editor-plugin-analytics": "^0.4.0",
39
- "@atlaskit/editor-plugin-type-ahead": "^0.8.0",
40
+ "@atlaskit/editor-plugin-type-ahead": "^0.9.0",
40
41
  "@atlaskit/editor-prosemirror": "1.1.0",
41
42
  "@atlaskit/icon": "^22.0.0",
42
43
  "@atlaskit/prosemirror-input-rules": "^2.4.0",