@atlaskit/editor-plugin-expand 4.2.4 → 4.2.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-expand
2
2
 
3
+ ## 4.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 4.2.4
4
10
 
5
11
  ### Patch Changes
@@ -11,6 +11,7 @@ var _analytics = require("@atlaskit/editor-common/analytics");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
13
13
  var _utils = require("@atlaskit/editor-common/utils");
14
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
14
15
  var _commands = require("./commands");
15
16
  var _keymap = require("./pm-plugins/keymap");
16
17
  var _main = require("./pm-plugins/main");
@@ -27,10 +28,10 @@ var expandPlugin = exports.expandPlugin = function expandPlugin(_ref) {
27
28
  nodes: function nodes() {
28
29
  return [{
29
30
  name: 'expand',
30
- node: _adfSchema.expandWithNestedExpand
31
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.expandWithNestedExpandLocalId : _adfSchema.expandWithNestedExpand
31
32
  }, {
32
33
  name: 'nestedExpand',
33
- node: _adfSchema.nestedExpand
34
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.nestedExpandWithLocalId : _adfSchema.nestedExpand
34
35
  }];
35
36
  },
36
37
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expandWithNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } 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 { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -21,10 +22,10 @@ export let expandPlugin = ({
21
22
  nodes() {
22
23
  return [{
23
24
  name: 'expand',
24
- node: expandWithNestedExpand
25
+ node: fg('platform_editor_adf_with_localid') ? expandWithNestedExpandLocalId : expandWithNestedExpand
25
26
  }, {
26
27
  name: 'nestedExpand',
27
- node: nestedExpand
28
+ node: fg('platform_editor_adf_with_localid') ? nestedExpandWithLocalId : nestedExpand
28
29
  }];
29
30
  },
30
31
  actions: {
@@ -1,9 +1,10 @@
1
1
  import React from 'react';
2
- import { expandWithNestedExpand, nestedExpand } from '@atlaskit/adf-schema';
2
+ import { expandWithNestedExpand, expandWithNestedExpandLocalId, nestedExpand, nestedExpandWithLocalId } 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 { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { IconExpand } from '@atlaskit/editor-common/quick-insert';
6
6
  import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  import { createExpandNode, insertExpand, insertExpandWithInputMethod, toggleExpandWithMatch as _toggleExpandWithMatch } from './commands';
8
9
  import { expandKeymap } from './pm-plugins/keymap';
9
10
  import { createPlugin } from './pm-plugins/main';
@@ -21,10 +22,10 @@ export var expandPlugin = function expandPlugin(_ref) {
21
22
  nodes: function nodes() {
22
23
  return [{
23
24
  name: 'expand',
24
- node: expandWithNestedExpand
25
+ node: fg('platform_editor_adf_with_localid') ? expandWithNestedExpandLocalId : expandWithNestedExpand
25
26
  }, {
26
27
  name: 'nestedExpand',
27
- node: nestedExpand
28
+ node: fg('platform_editor_adf_with_localid') ? nestedExpandWithLocalId : nestedExpand
28
29
  }];
29
30
  },
30
31
  actions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-expand",
3
- "version": "4.2.4",
3
+ "version": "4.2.5",
4
4
  "description": "Expand plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/editor-tables": "^2.9.0",
46
46
  "@atlaskit/icon": "^27.12.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^10.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^11.0.0",
49
49
  "@atlaskit/tokens": "^6.0.0",
50
50
  "@atlaskit/tooltip": "^20.4.0",
51
51
  "@babel/runtime": "^7.0.0",
@@ -112,6 +112,9 @@
112
112
  },
113
113
  "platform_editor_breakout_resizing_hello_release": {
114
114
  "type": "boolean"
115
+ },
116
+ "platform_editor_adf_with_localid": {
117
+ "type": "boolean"
115
118
  }
116
119
  }
117
120
  }