@atlaskit/editor-plugin-list 17.0.14 → 17.0.15

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,15 @@
1
1
  # @atlaskit/editor-plugin-list
2
2
 
3
+ ## 17.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+ - Updated dependencies
12
+
3
13
  ## 17.0.14
4
14
 
5
15
  ### Patch Changes
@@ -12,7 +12,7 @@ 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 _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
16
16
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
17
  var _commands = require("./pm-plugins/commands");
18
18
  var _indentList = require("./pm-plugins/commands/indent-list");
@@ -74,17 +74,17 @@ var listPlugin = exports.listPlugin = function listPlugin(_ref) {
74
74
  },
75
75
  nodes: function nodes() {
76
76
  var getListItemNode = function getListItemNode() {
77
- if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
77
+ if ((0, _fg.fg)('platform_editor_adf_with_localid')) {
78
78
  return _adfSchema.listItemWithLocalId;
79
79
  }
80
80
  return _adfSchema.listItem;
81
81
  };
82
82
  return [{
83
83
  name: 'bulletList',
84
- node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.bulletListWithLocalId : _adfSchema.bulletList
84
+ node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _adfSchema.bulletListWithLocalId : _adfSchema.bulletList
85
85
  }, {
86
86
  name: 'orderedList',
87
- node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.orderedListWithOrderAndLocalId : _adfSchema.orderedListWithOrder
87
+ node: (0, _fg.fg)('platform_editor_adf_with_localid') ? _adfSchema.orderedListWithOrderAndLocalId : _adfSchema.orderedListWithOrder
88
88
  }, {
89
89
  name: 'listItem',
90
90
  node: getListItemNode()
@@ -10,7 +10,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
10
10
  var _lists = require("@atlaskit/editor-common/lists");
11
11
  var _preset = require("@atlaskit/editor-common/preset");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
13
- var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
13
+ var _closeHistory = require("@atlaskit/prosemirror-history/closeHistory");
14
14
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
15
  var _types = require("../../types");
16
16
  var _indentListItemsSelected = require("../actions/indent-list-items-selected");
@@ -58,7 +58,7 @@ var indentList = exports.indentList = function indentList(editorAnalyticsAPI) {
58
58
  }
59
59
 
60
60
  // Save the history, so it could undo/revert to the same state before the indent, see https://product-fabric.atlassian.net/browse/ED-14753
61
- (0, _prosemirrorHistory.closeHistory)(tr);
61
+ (0, _closeHistory.closeHistory)(tr);
62
62
 
63
63
  // Route to new or original implementation based on feature flag
64
64
  if ((0, _expValEquals.expValEquals)('platform_editor_flexible_list_indentation', 'isEnabled', true)) {
@@ -10,7 +10,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
10
10
  var _lists = require("@atlaskit/editor-common/lists");
11
11
  var _preset = require("@atlaskit/editor-common/preset");
12
12
  var _utils = require("@atlaskit/editor-common/utils");
13
- var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
13
+ var _closeHistory = require("@atlaskit/prosemirror-history/closeHistory");
14
14
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
15
15
  var _moveSelectedListItems = require("../actions/move-selected-list-items");
16
16
  var _outdentListItemsSelected = require("../actions/outdent-list-items-selected");
@@ -76,7 +76,7 @@ var outdentList = exports.outdentList = function outdentList(editorAnalyticsAPI)
76
76
  }
77
77
 
78
78
  // Save the history, so it could undo/revert to the same state before the outdent, see https://product-fabric.atlassian.net/browse/ED-14753
79
- (0, _prosemirrorHistory.closeHistory)(tr);
79
+ (0, _closeHistory.closeHistory)(tr);
80
80
 
81
81
  // Route to new or original implementation based on feature flag
82
82
  if ((0, _expValEquals.expValEquals)('platform_editor_flexible_list_indentation', 'isEnabled', true)) {
@@ -7,7 +7,7 @@ exports.buildReplacementFragment = buildReplacementFragment;
7
7
  exports.flattenList = flattenList;
8
8
  var _lists = require("@atlaskit/editor-common/lists");
9
9
  var _utils = require("@atlaskit/editor-common/utils");
10
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
11
11
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
12
12
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
@@ -129,7 +129,7 @@ function flattenListImpl(options) {
129
129
  };
130
130
  }
131
131
  function flattenList(options) {
132
- if ((0, _platformFeatureFlags.fg)('platform_editor_flexible_list_normalization_fix')) {
132
+ if ((0, _fg.fg)('platform_editor_flexible_list_normalization_fix')) {
133
133
  return flattenListImpl(options);
134
134
  }
135
135
  return (0, _lists.flattenList)(options, {
@@ -5,7 +5,7 @@ import { toggleBulletList, toggleOrderedList, tooltip } from '@atlaskit/editor-c
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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
11
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
2
2
  import { getCommonListAnalyticsAttributes, getListItemAttributes, hasValidListIndentationLevel } from '@atlaskit/editor-common/lists';
3
3
  import { PassiveTransaction } from '@atlaskit/editor-common/preset';
4
4
  import { isBulletList } from '@atlaskit/editor-common/utils';
5
- import { closeHistory } from '@atlaskit/prosemirror-history';
5
+ import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { MAX_NESTED_LIST_INDENTATION } from '../../types';
8
8
  import { indentListItemsSelected as indentListAction } from '../actions/indent-list-items-selected';
@@ -2,7 +2,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, OU
2
2
  import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
3
3
  import { PassiveTransaction } from '@atlaskit/editor-common/preset';
4
4
  import { isBulletList } from '@atlaskit/editor-common/utils';
5
- import { closeHistory } from '@atlaskit/prosemirror-history';
5
+ import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
6
6
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
7
  import { moveSelectedListItems } from '../actions/move-selected-list-items';
8
8
  import { outdentListItemsSelected as outdentListAction } from '../actions/outdent-list-items-selected';
@@ -1,6 +1,6 @@
1
1
  import { buildReplacementFragment as buildReplacementFragmentBase, flattenList as flattenListBase } from '@atlaskit/editor-common/lists';
2
2
  import { isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
3
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
4
4
 
5
5
  /**
6
6
  * Returns true if a listItem has at least one non-list child (paragraph, etc.).
@@ -5,7 +5,7 @@ import { toggleBulletList, toggleOrderedList, tooltip } from '@atlaskit/editor-c
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 { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
- import { fg } from '@atlaskit/platform-feature-flags';
8
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
  import { toggleBulletList as toggleBulletListCommand, toggleOrderedList as toggleOrderedListCommand } from './pm-plugins/commands';
11
11
  import { indentList } from './pm-plugins/commands/indent-list';
@@ -5,7 +5,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } f
5
5
  import { getCommonListAnalyticsAttributes, getListItemAttributes, hasValidListIndentationLevel } from '@atlaskit/editor-common/lists';
6
6
  import { PassiveTransaction } from '@atlaskit/editor-common/preset';
7
7
  import { isBulletList } from '@atlaskit/editor-common/utils';
8
- import { closeHistory } from '@atlaskit/prosemirror-history';
8
+ import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { MAX_NESTED_LIST_INDENTATION } from '../../types';
11
11
  import { indentListItemsSelected as indentListAction } from '../actions/indent-list-items-selected';
@@ -5,7 +5,7 @@ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD, OU
5
5
  import { getCommonListAnalyticsAttributes } from '@atlaskit/editor-common/lists';
6
6
  import { PassiveTransaction } from '@atlaskit/editor-common/preset';
7
7
  import { isBulletList } from '@atlaskit/editor-common/utils';
8
- import { closeHistory } from '@atlaskit/prosemirror-history';
8
+ import { closeHistory } from '@atlaskit/prosemirror-history/closeHistory';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
10
  import { moveSelectedListItems } from '../actions/move-selected-list-items';
11
11
  import { outdentListItemsSelected as outdentListAction } from '../actions/outdent-list-items-selected';
@@ -3,7 +3,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
3
3
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
4
  import { buildReplacementFragment as buildReplacementFragmentBase, flattenList as flattenListBase } from '@atlaskit/editor-common/lists';
5
5
  import { isListItemNode, isListNode } from '@atlaskit/editor-common/utils';
6
- import { fg } from '@atlaskit/platform-feature-flags';
6
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
7
7
 
8
8
  /**
9
9
  * Returns true if a listItem has at least one non-list child (paragraph, etc.).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-list",
3
- "version": "17.0.14",
3
+ "version": "17.0.15",
4
4
  "description": "List plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",