@atlaskit/editor-plugin-list 5.1.4 → 5.1.5

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,11 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 5.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 5.1.4
4
10
 
5
11
  ### Patch Changes
@@ -12,6 +12,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
12
12
  var _keymaps = require("@atlaskit/editor-common/keymaps");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
15
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
16
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
16
17
  var _commands = require("./pm-plugins/commands");
17
18
  var _indentList = require("./pm-plugins/commands/indent-list");
@@ -62,13 +63,13 @@ var listPlugin = exports.listPlugin = function listPlugin(_ref) {
62
63
  nodes: function nodes() {
63
64
  return [{
64
65
  name: 'bulletList',
65
- node: _adfSchema.bulletList
66
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.bulletListWithLocalId : _adfSchema.bulletList
66
67
  }, {
67
68
  name: 'orderedList',
68
- node: _adfSchema.orderedListWithOrder
69
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.orderedListWithOrderAndLocalId : _adfSchema.orderedListWithOrder
69
70
  }, {
70
71
  name: 'listItem',
71
- node: _adfSchema.listItem
72
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.listItemWithLocalId : _adfSchema.listItem
72
73
  }];
73
74
  },
74
75
  pmPlugins: function pmPlugins() {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { bulletList, listItem, orderedListWithOrder } 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
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
8
9
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
9
10
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -53,13 +54,13 @@ export const listPlugin = ({
53
54
  nodes() {
54
55
  return [{
55
56
  name: 'bulletList',
56
- node: bulletList
57
+ node: fg('platform_editor_adf_with_localid') ? bulletListWithLocalId : bulletList
57
58
  }, {
58
59
  name: 'orderedList',
59
- node: orderedListWithOrder
60
+ node: fg('platform_editor_adf_with_localid') ? orderedListWithOrderAndLocalId : orderedListWithOrder
60
61
  }, {
61
62
  name: 'listItem',
62
- node: listItem
63
+ node: fg('platform_editor_adf_with_localid') ? listItemWithLocalId : listItem
63
64
  }];
64
65
  },
65
66
  pmPlugins() {
@@ -2,11 +2,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  import React from 'react';
5
- import { bulletList, listItem, orderedListWithOrder } from '@atlaskit/adf-schema';
5
+ import { bulletList, bulletListWithLocalId, listItem, listItemWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId } from '@atlaskit/adf-schema';
6
6
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
7
7
  import { toggleBulletList, toggleOrderedList, tooltip } from '@atlaskit/editor-common/keymaps';
8
8
  import { listMessages as messages } from '@atlaskit/editor-common/messages';
9
9
  import { IconList, IconListNumber } from '@atlaskit/editor-common/quick-insert';
10
+ import { fg } from '@atlaskit/platform-feature-flags';
10
11
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
12
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
12
13
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -57,13 +58,13 @@ export var listPlugin = function listPlugin(_ref) {
57
58
  nodes: function nodes() {
58
59
  return [{
59
60
  name: 'bulletList',
60
- node: bulletList
61
+ node: fg('platform_editor_adf_with_localid') ? bulletListWithLocalId : bulletList
61
62
  }, {
62
63
  name: 'orderedList',
63
- node: orderedListWithOrder
64
+ node: fg('platform_editor_adf_with_localid') ? orderedListWithOrderAndLocalId : orderedListWithOrder
64
65
  }, {
65
66
  name: 'listItem',
66
- node: listItem
67
+ node: fg('platform_editor_adf_with_localid') ? listItemWithLocalId : listItem
67
68
  }];
68
69
  },
69
70
  pmPlugins: function pmPlugins() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/editor-prosemirror": "7.0.0",
37
37
  "@atlaskit/platform-feature-flags": "^1.1.0",
38
38
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
39
- "@atlaskit/tmp-editor-statsig": "^10.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^11.0.0",
40
40
  "@babel/runtime": "^7.0.0"
41
41
  },
42
42
  "peerDependencies": {
@@ -82,6 +82,9 @@
82
82
  "platform-feature-flags": {
83
83
  "platform_editor_split_list_item_for_gap_cursor": {
84
84
  "type": "boolean"
85
+ },
86
+ "platform_editor_adf_with_localid": {
87
+ "type": "boolean"
85
88
  }
86
89
  },
87
90
  "stricter": {