@atlaskit/editor-plugin-tasks-and-decisions 13.1.7 → 13.1.9

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.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9ea3b02135766`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9ea3b02135766) -
8
+ EDITOR-5613: Remove flexible list variants and consolidate into base list types.
9
+
10
+ The `listItem` and `taskList` node specs now natively support the flexible content model (allowing
11
+ lists as first child of listItem, and nested taskLists without requiring taskItem first). The
12
+ separate `listItemWithFlexibleFirstChildStage0` and `taskListWithFlexibleFirstChildStage0`
13
+ variants have been removed from public exports — the flexible behavior is now the default for all
14
+ schema stages. Consumers importing these removed exports should switch to `listItem` / `taskList`.
15
+
16
+ This is a schema simplification: the flexible content spec is a strict superset of the old
17
+ restrictive spec, so all previously valid content remains valid.
18
+
19
+ - Updated dependencies
20
+
21
+ ## 13.1.8
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies
26
+
3
27
  ## 13.1.7
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()
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Testing structured MCP docs for review — ignore this file.
3
+ * Contact #dst-structured-content in Slack with questions.
4
+ */
5
+
6
+ import path from 'path';
7
+
8
+
9
+ import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
10
+
11
+ import packageJson from './package.json';
12
+
13
+ const packagePath = path.resolve(__dirname);
14
+
15
+ const documentation: ComponentStructuredContentSource[] = [
16
+ {
17
+ name: 'Editor Plugin Tasks And Decisions',
18
+ description: 'Tasks and decisions plugin for @atlaskit/editor-core',
19
+ status: 'general-availability',
20
+ import: {
21
+ name: 'Editor Plugin Tasks And Decisions',
22
+ package: '@atlaskit/editor-plugin-tasks-and-decisions',
23
+ type: 'default',
24
+ packagePath,
25
+ packageJson,
26
+ },
27
+ usageGuidelines: [],
28
+ contentGuidelines: [],
29
+ accessibilityGuidelines: [],
30
+ keywords: ['editor', 'editor-plugin-tasks-and-decisions', 'atlaskit'],
31
+ categories: ['editor'],
32
+ examples: [
33
+ { name: 'Composable editor tasks and decisions', description: 'Tasks and decisions plugin in composable editor.', source: path.resolve(packagePath, './examples/1-composable-editor-tasks-and-decisions.tsx') },
34
+ ],
35
+ },
36
+ ];
37
+
38
+ export default documentation;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-tasks-and-decisions",
3
- "version": "13.1.7",
3
+ "version": "13.1.9",
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,7 +49,7 @@
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": "^72.0.0",
52
+ "@atlaskit/tmp-editor-statsig": "^73.0.0",
53
53
  "@atlaskit/tokens": "^13.0.0",
54
54
  "@babel/runtime": "^7.0.0",
55
55
  "@compiled/react": "^0.20.0",
@@ -62,6 +62,7 @@
62
62
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
63
63
  },
64
64
  "devDependencies": {
65
+ "@atlassian/structured-docs-types": "workspace:^",
65
66
  "@testing-library/react": "^16.3.0",
66
67
  "react-intl": "^6.6.2",
67
68
  "wait-for-expect": "^1.2.0"