@atlaskit/editor-plugin-tasks-and-decisions 8.4.0 → 8.4.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,20 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 8.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 8.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`89232995f69a4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/89232995f69a4) -
14
+ [ux] EDITOR-1583 Ensure blockTaskItem schema node exists before performing further assertions on
15
+ it in tasks and decisions backspace handler
16
+ - Updated dependencies
17
+
3
18
  ## 8.4.0
4
19
 
5
20
  ### Minor Changes
@@ -161,7 +161,7 @@ var backspaceFrom = function backspaceFrom(editorAnalyticsAPI) {
161
161
 
162
162
  // Check if the node before is an empty task item
163
163
  var isEmptyActionOrDecisionItem = nodeBefore && (0, _helpers.isActionOrDecisionItem)(nodeBefore) && nodeBefore.content.size === 0;
164
- var isEmptyBlockTaskItem = (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && ((_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && ((_nodeBefore$firstChil2 = nodeBefore.firstChild.content) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : _nodeBefore$firstChil2.size) === 0;
164
+ var isEmptyBlockTaskItem = blockTaskItem && (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && (nodeBefore === null || nodeBefore === void 0 || (_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && (nodeBefore === null || nodeBefore === void 0 || (_nodeBefore$firstChil2 = nodeBefore.firstChild) === null || _nodeBefore$firstChil2 === void 0 || (_nodeBefore$firstChil2 = _nodeBefore$firstChil2.content) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : _nodeBefore$firstChil2.size) === 0;
165
165
 
166
166
  // previous was empty, just delete backwards
167
167
  if (isEmptyActionOrDecisionItem || isEmptyBlockTaskItem) {
@@ -1,4 +1,4 @@
1
- /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -1,4 +1,4 @@
1
- /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -126,7 +126,7 @@ const backspaceFrom = editorAnalyticsAPI => $from => (state, dispatch) => {
126
126
  paragraph
127
127
  } = state.schema.nodes;
128
128
  if (expValEquals('editor_refactor_backspace_task_and_decisions', 'isEnabled', true)) {
129
- var _nodeBefore$firstChil, _nodeBefore$firstChil2;
129
+ var _nodeBefore$firstChil, _nodeBefore$firstChil2, _nodeBefore$firstChil3;
130
130
  // Check if selection is inside a blockTaskItem paragraph
131
131
  const resultOfFindBlockTaskItem = findBlockTaskItem($from);
132
132
  const isInBlockTaskItemParagraph = resultOfFindBlockTaskItem && (resultOfFindBlockTaskItem === null || resultOfFindBlockTaskItem === void 0 ? void 0 : resultOfFindBlockTaskItem.hasParagraph);
@@ -137,7 +137,7 @@ const backspaceFrom = editorAnalyticsAPI => $from => (state, dispatch) => {
137
137
 
138
138
  // Check if the node before is an empty task item
139
139
  const isEmptyActionOrDecisionItem = nodeBefore && isActionOrDecisionItem(nodeBefore) && nodeBefore.content.size === 0;
140
- const isEmptyBlockTaskItem = (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && ((_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && ((_nodeBefore$firstChil2 = nodeBefore.firstChild.content) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : _nodeBefore$firstChil2.size) === 0;
140
+ const isEmptyBlockTaskItem = blockTaskItem && (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && (nodeBefore === null || nodeBefore === void 0 ? void 0 : (_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && (nodeBefore === null || nodeBefore === void 0 ? void 0 : (_nodeBefore$firstChil2 = nodeBefore.firstChild) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : (_nodeBefore$firstChil3 = _nodeBefore$firstChil2.content) === null || _nodeBefore$firstChil3 === void 0 ? void 0 : _nodeBefore$firstChil3.size) === 0;
141
141
 
142
142
  // previous was empty, just delete backwards
143
143
  if (isEmptyActionOrDecisionItem || isEmptyBlockTaskItem) {
@@ -1,4 +1,4 @@
1
- /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import "./tasksAndDecisionsPlugin.compiled.css";
3
3
  import * as React from 'react';
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -1,4 +1,4 @@
1
- /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  // import Popup from '@atlaskit/popup';
3
3
  import "./RequestToEditPopup.compiled.css";
4
4
  import * as React from 'react';
@@ -153,7 +153,7 @@ var backspaceFrom = function backspaceFrom(editorAnalyticsAPI) {
153
153
 
154
154
  // Check if the node before is an empty task item
155
155
  var isEmptyActionOrDecisionItem = nodeBefore && isActionOrDecisionItem(nodeBefore) && nodeBefore.content.size === 0;
156
- var isEmptyBlockTaskItem = (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && ((_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && ((_nodeBefore$firstChil2 = nodeBefore.firstChild.content) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : _nodeBefore$firstChil2.size) === 0;
156
+ var isEmptyBlockTaskItem = blockTaskItem && (nodeBefore === null || nodeBefore === void 0 ? void 0 : nodeBefore.type) === blockTaskItem && (nodeBefore === null || nodeBefore === void 0 || (_nodeBefore$firstChil = nodeBefore.firstChild) === null || _nodeBefore$firstChil === void 0 ? void 0 : _nodeBefore$firstChil.type) === paragraph && (nodeBefore === null || nodeBefore === void 0 || (_nodeBefore$firstChil2 = nodeBefore.firstChild) === null || _nodeBefore$firstChil2 === void 0 || (_nodeBefore$firstChil2 = _nodeBefore$firstChil2.content) === null || _nodeBefore$firstChil2 === void 0 ? void 0 : _nodeBefore$firstChil2.size) === 0;
157
157
 
158
158
  // previous was empty, just delete backwards
159
159
  if (isEmptyActionOrDecisionItem || isEmptyBlockTaskItem) {
@@ -1,4 +1,4 @@
1
- /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* tasksAndDecisionsPlugin.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
3
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
4
  import "./tasksAndDecisionsPlugin.compiled.css";
@@ -1,4 +1,4 @@
1
- /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.38.1 */
1
+ /* RequestToEditPopup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import "./RequestToEditPopup.compiled.css";
4
4
  import * as React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "8.4.0",
3
+ "version": "8.4.2",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/editor-plugin-type-ahead": "^5.2.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^3.6.0",
44
- "@atlaskit/editor-toolbar": "^0.8.0",
44
+ "@atlaskit/editor-toolbar": "^0.9.0",
45
45
  "@atlaskit/heading": "^5.2.0",
46
46
  "@atlaskit/icon": "^28.1.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
@@ -49,14 +49,14 @@
49
49
  "@atlaskit/primitives": "^14.14.0",
50
50
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
51
51
  "@atlaskit/task-decision": "^19.2.0",
52
- "@atlaskit/tmp-editor-statsig": "^12.18.0",
52
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
53
53
  "@atlaskit/tokens": "^6.3.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.18.3",
56
56
  "bind-event-listener": "^3.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^109.5.0",
59
+ "@atlaskit/editor-common": "^109.6.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl-next": "npm:react-intl@^5.18.1"