@atlaskit/editor-plugin-expand 17.0.8 → 17.0.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,11 @@
1
1
  # @atlaskit/editor-plugin-expand
2
2
 
3
+ ## 17.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 17.0.8
4
10
 
5
11
  ### Patch Changes
@@ -15,7 +15,7 @@ var _assets = require("@atlaskit/editor-common/assets");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
16
  var _utils = require("@atlaskit/editor-common/utils");
17
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
18
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
19
19
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
20
20
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
21
21
  var _getExpandQuickInsertComponents = require("../ui/quick-insert/getExpandQuickInsertComponents");
@@ -34,7 +34,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
34
  options = _ref$config === void 0 ? {} : _ref$config,
35
35
  api = _ref.api;
36
36
  var isRegisteredSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command');
37
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
37
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
38
38
  var _api$blockMenu;
39
39
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
40
40
  type: 'block-menu-item',
@@ -23,7 +23,7 @@ var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-ex
23
23
  var _redo = require("@atlaskit/prosemirror-history/redo");
24
24
  var _undo = require("@atlaskit/prosemirror-history/undo");
25
25
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
26
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
26
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
27
27
  var _renderExpandButton = require("../../ui/renderExpandButton");
28
28
  var _commands = require("../commands");
29
29
  var _ExpandButton = require("../ui/ExpandButton");
@@ -490,7 +490,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
490
490
  this.getPos = getPos;
491
491
  this.view = view;
492
492
  this.node = _node;
493
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
493
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
494
494
  exposure: true
495
495
  })) {
496
496
  var _expandedState$get;
@@ -634,7 +634,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
634
634
  };
635
635
  });
636
636
  var currentExpanded = (_expandedState$get2 = _expand.expandedState.get(node)) !== null && _expandedState$get2 !== void 0 ? _expandedState$get2 : false;
637
- var hasChanged = (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
637
+ var hasChanged = (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
638
638
  exposure: true
639
639
  }) ? this.isExpanded.expanded !== currentExpanded && this.isExpanded.localId === node.attrs.localId : this.isExpanded.expanded !== currentExpanded;
640
640
  if (hasChanged) {
@@ -665,7 +665,7 @@ var ExpandNodeView = exports.ExpandNodeView = /*#__PURE__*/function () {
665
665
  }
666
666
  }
667
667
  this.updateExpandBodyContentEditable();
668
- this.isExpanded = (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
668
+ this.isExpanded = (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true, {
669
669
  exposure: true
670
670
  }) ? {
671
671
  expanded: expanded !== null && expanded !== void 0 ? expanded : false,
@@ -16,7 +16,7 @@ var _utils = require("@atlaskit/editor-common/utils");
16
16
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
17
17
  var _fg = require("@atlaskit/platform-feature-flags/fg");
18
18
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
19
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
+ var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
20
20
  var _toggleExpandRange = require("../editor-commands/toggleExpandRange");
21
21
  var _ExpandBlockMenuItem = require("../ui/ExpandBlockMenuItem");
22
22
  var _getExpandQuickInsertComponents = require("../ui/quick-insert/getExpandQuickInsertComponents");
@@ -34,7 +34,7 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
34
34
  options = _ref$config === void 0 ? {} : _ref$config,
35
35
  api = _ref.api;
36
36
  var isRegisteredSlashCommandEnabled = (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_slash_command');
37
- if ((0, _experiments.editorExperiment)('platform_editor_block_menu', true)) {
37
+ if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
38
38
  var _api$blockMenu;
39
39
  api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents([{
40
40
  type: 'block-menu-item',
@@ -7,7 +7,7 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
7
7
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
8
8
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
9
9
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
10
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
11
11
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
12
12
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
13
13
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -14,7 +14,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
14
14
  import { redo } from '@atlaskit/prosemirror-history/redo';
15
15
  import { undo } from '@atlaskit/prosemirror-history/undo';
16
16
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
17
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
17
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
18
18
  import { renderExpandButton } from '../../ui/renderExpandButton';
19
19
  import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
20
20
  import { ExpandButton } from '../ui/ExpandButton';
@@ -8,7 +8,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
8
8
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
9
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
11
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
11
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
12
12
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
13
13
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
14
14
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -10,7 +10,7 @@ import { IconExpand } from '@atlaskit/editor-common/assets';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
11
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
13
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
14
14
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
15
15
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
16
16
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
@@ -16,7 +16,7 @@ import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-e
16
16
  import { redo } from '@atlaskit/prosemirror-history/redo';
17
17
  import { undo } from '@atlaskit/prosemirror-history/undo';
18
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
19
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
20
20
  import { renderExpandButton } from '../../ui/renderExpandButton';
21
21
  import { deleteExpand, setSelectionInsideExpand, toggleExpandExpanded, updateExpandTitle } from '../commands';
22
22
  import { ExpandButton } from '../ui/ExpandButton';
@@ -11,7 +11,7 @@ import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
11
11
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
12
12
  import { fg } from '@atlaskit/platform-feature-flags/fg';
13
13
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
14
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
15
15
  import { toggleExpandRange } from '../editor-commands/toggleExpandRange';
16
16
  import { createExpandBlockMenuItem } from '../ui/ExpandBlockMenuItem';
17
17
  import { getExpandQuickInsertComponents } from '../ui/quick-insert/getExpandQuickInsertComponents';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "17.0.8",
3
+ "version": "17.0.9",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,7 +43,7 @@
43
43
  "@atlaskit/platform-feature-experiments": "^0.3.0",
44
44
  "@atlaskit/platform-feature-flags": "^2.1.0",
45
45
  "@atlaskit/prosemirror-history": "^1.2.0",
46
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
47
47
  "@atlaskit/tokens": "^16.9.0",
48
48
  "@atlaskit/tooltip": "^24.2.0",
49
49
  "@babel/runtime": "^7.0.0",