@atlaskit/editor-plugin-tasks-and-decisions 13.1.8 → 13.1.10

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,29 @@
1
1
  # @atlaskit/editor-plugin-tasks-and-decisions
2
2
 
3
+ ## 13.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 13.1.9
10
+
11
+ ### Patch Changes
12
+
13
+ - [`9ea3b02135766`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ea3b02135766) -
14
+ EDITOR-5613: Remove flexible list variants and consolidate into base list types.
15
+
16
+ The `listItem` and `taskList` node specs now natively support the flexible content model (allowing
17
+ lists as first child of listItem, and nested taskLists without requiring taskItem first). The
18
+ separate `listItemWithFlexibleFirstChildStage0` and `taskListWithFlexibleFirstChildStage0`
19
+ variants have been removed from public exports — the flexible behavior is now the default for all
20
+ schema stages. Consumers importing these removed exports should switch to `listItem` / `taskList`.
21
+
22
+ This is a schema simplification: the flexible content spec is a strict superset of the old
23
+ restrictive spec, so all previously valid content remains valid.
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 13.1.8
4
28
 
5
29
  ### Patch Changes
@@ -173,7 +173,7 @@ var tasksAndDecisionsPlugin = exports.tasksAndDecisionsPlugin = function tasksAn
173
173
  node: (0, _decisionItem.decisionItemSpecWithFixedToDOM)()
174
174
  }, {
175
175
  name: 'taskList',
176
- node: (0, _expValEquals.expValEquals)('platform_editor_flexible_list_schema', 'isEnabled', true) ? _adfSchema.taskListWithFlexibleFirstChildStage0 : _adfSchema.taskList
176
+ node: _adfSchema.taskList
177
177
  }, {
178
178
  name: 'taskItem',
179
179
  node: (0, _taskItemNodeSpec.taskItemNodeSpec)()
@@ -2,7 +2,7 @@
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, taskList, taskListWithFlexibleFirstChildStage0 } from '@atlaskit/adf-schema';
5
+ import { decisionList, taskList } from '@atlaskit/adf-schema';
6
6
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  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';
8
8
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
@@ -161,7 +161,7 @@ export const tasksAndDecisionsPlugin = ({
161
161
  node: decisionItemSpecWithFixedToDOM()
162
162
  }, {
163
163
  name: 'taskList',
164
- node: expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true) ? taskListWithFlexibleFirstChildStage0 : taskList
164
+ node: taskList
165
165
  }, {
166
166
  name: 'taskItem',
167
167
  node: taskItemNodeSpec()
@@ -5,7 +5,7 @@ import "./tasksAndDecisionsPlugin.compiled.css";
5
5
  import * as React from 'react';
6
6
  import { ax, ix } from "@compiled/react/runtime";
7
7
  import _regeneratorRuntime from "@babel/runtime/regenerator";
8
- import { decisionList, taskList, taskListWithFlexibleFirstChildStage0 } from '@atlaskit/adf-schema';
8
+ import { decisionList, taskList } from '@atlaskit/adf-schema';
9
9
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
10
10
  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';
11
11
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
@@ -164,7 +164,7 @@ export var tasksAndDecisionsPlugin = function tasksAndDecisionsPlugin(_ref3) {
164
164
  node: decisionItemSpecWithFixedToDOM()
165
165
  }, {
166
166
  name: 'taskList',
167
- node: expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true) ? taskListWithFlexibleFirstChildStage0 : taskList
167
+ node: taskList
168
168
  }, {
169
169
  name: 'taskItem',
170
170
  node: taskItemNodeSpec()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "13.1.8",
3
+ "version": "13.1.10",
4
4
  "description": "Tasks and decisions plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^52.6.0",
32
+ "@atlaskit/adf-schema": "^52.7.0",
33
33
  "@atlaskit/analytics-namespaced-context": "^7.2.0",
34
34
  "@atlaskit/css": "^0.19.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^10.0.0",
@@ -49,14 +49,14 @@
49
49
  "@atlaskit/primitives": "^19.0.0",
50
50
  "@atlaskit/prosemirror-input-rules": "^3.6.0",
51
51
  "@atlaskit/task-decision": "^20.0.0",
52
- "@atlaskit/tmp-editor-statsig": "^73.0.0",
52
+ "@atlaskit/tmp-editor-statsig": "^74.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",
56
56
  "bind-event-listener": "^3.0.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^114.13.0",
59
+ "@atlaskit/editor-common": "^114.15.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"