@atlaskit/editor-plugin-list 12.0.12 → 12.0.13

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,23 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 12.0.13
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
+
3
21
  ## 12.0.12
4
22
 
5
23
  ### Patch Changes
@@ -12,7 +12,6 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
12
12
  var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
14
14
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
16
15
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
16
  var _commands = require("./pm-plugins/commands");
18
17
  var _indentList = require("./pm-plugins/commands/indent-list");
@@ -66,9 +65,7 @@ var listPlugin = exports.listPlugin = function listPlugin(_ref) {
66
65
  },
67
66
  nodes: function nodes() {
68
67
  var getListItemNode = function getListItemNode() {
69
- if ((0, _expValEquals.expValEquals)('platform_editor_flexible_list_schema', 'isEnabled', true)) {
70
- return _adfSchema.listItemWithFlexibleFirstChildStage0;
71
- } else if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
68
+ if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
72
69
  return _adfSchema.listItemWithLocalId;
73
70
  }
74
71
  return _adfSchema.listItem;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { bulletList, bulletListWithLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId } from '@atlaskit/adf-schema';
2
+ import { bulletList, bulletListWithLocalId, listItem, listItemWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toggleBulletList, toggleOrderedList, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { listMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconList, IconListNumber } from '@atlaskit/editor-common/quick-insert';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
10
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -58,9 +57,7 @@ export const listPlugin = ({
58
57
  },
59
58
  nodes() {
60
59
  const getListItemNode = () => {
61
- if (expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true)) {
62
- return listItemWithFlexibleFirstChildStage0;
63
- } else if (fg('platform_editor_adf_with_localid')) {
60
+ if (fg('platform_editor_adf_with_localid')) {
64
61
  return listItemWithLocalId;
65
62
  }
66
63
  return listItem;
@@ -1,11 +1,10 @@
1
1
  import React from 'react';
2
- import { bulletList, bulletListWithLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId } from '@atlaskit/adf-schema';
2
+ import { bulletList, bulletListWithLocalId, listItem, listItemWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { toggleBulletList, toggleOrderedList, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { listMessages as messages } from '@atlaskit/editor-common/messages';
6
6
  import { IconList, IconListNumber } from '@atlaskit/editor-common/quick-insert';
7
7
  import { fg } from '@atlaskit/platform-feature-flags';
8
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
10
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -59,9 +58,7 @@ export var listPlugin = function listPlugin(_ref) {
59
58
  },
60
59
  nodes: function nodes() {
61
60
  var getListItemNode = function getListItemNode() {
62
- if (expValEquals('platform_editor_flexible_list_schema', 'isEnabled', true)) {
63
- return listItemWithFlexibleFirstChildStage0;
64
- } else if (fg('platform_editor_adf_with_localid')) {
61
+ if (fg('platform_editor_adf_with_localid')) {
65
62
  return listItemWithLocalId;
66
63
  }
67
64
  return listItem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "12.0.12",
3
+ "version": "12.0.13",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -27,7 +27,7 @@
27
27
  "sideEffects": false,
28
28
  "atlaskit:src": "src/index.ts",
29
29
  "dependencies": {
30
- "@atlaskit/adf-schema": "^52.6.0",
30
+ "@atlaskit/adf-schema": "^52.7.0",
31
31
  "@atlaskit/editor-plugin-analytics": "^10.0.0",
32
32
  "@atlaskit/editor-plugin-block-menu": "^9.0.0",
33
33
  "@atlaskit/editor-plugin-feature-flags": "^9.0.0",