@atlaskit/editor-plugin-block-menu 11.1.19 → 11.1.21

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,22 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 11.1.21
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a3bbfab896310`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a3bbfab896310) -
8
+ Replace feature gate `confluence_frontend_native_tabs_extension` with experiment
9
+ `confluence_native_tabs_experiment` using `expValEquals` from
10
+ `@atlaskit/tmp-editor-statsig/exp-val-equals`. Usage:
11
+ `expValEquals('confluence_native_tabs_experiment', 'isEnabled', true)`.
12
+ - Updated dependencies
13
+
14
+ ## 11.1.20
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 11.1.19
4
21
 
5
22
  ### Patch Changes
@@ -8,9 +8,9 @@ exports.checkIsFormatMenuHidden = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _memoizeOne = _interopRequireDefault(require("memoize-one"));
10
10
  var _utils = require("@atlaskit/editor-prosemirror/utils");
11
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
+ var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
12
  var getDisabledNodeTypes = (0, _memoizeOne.default)(function (nodes) {
13
- return [nodes.rule].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('confluence_frontend_native_tabs_extension') ? [nodes.multiBodiedExtension] : []));
13
+ return [nodes.rule].concat((0, _toConsumableArray2.default)((0, _expValEquals.expValEquals)('confluence_native_tabs_experiment', 'isEnabled', true) ? [nodes.multiBodiedExtension] : []));
14
14
  });
15
15
  var getIsFormatMenuHidden = function getIsFormatMenuHidden(selection, schema) {
16
16
  var nodes = schema.nodes;
@@ -1,7 +1,7 @@
1
1
  import memoizeOne from 'memoize-one';
2
2
  import { findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
- const getDisabledNodeTypes = memoizeOne(nodes => [nodes.rule, ...(fg('confluence_frontend_native_tabs_extension') ? [nodes.multiBodiedExtension] : [])]);
3
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
4
+ const getDisabledNodeTypes = memoizeOne(nodes => [nodes.rule, ...(expValEquals('confluence_native_tabs_experiment', 'isEnabled', true) ? [nodes.multiBodiedExtension] : [])]);
5
5
  const getIsFormatMenuHidden = (selection, schema) => {
6
6
  const nodes = schema.nodes;
7
7
  if (!nodes) {
@@ -1,9 +1,9 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import memoizeOne from 'memoize-one';
3
3
  import { findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
4
- import { fg } from '@atlaskit/platform-feature-flags';
4
+ import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
5
  var getDisabledNodeTypes = memoizeOne(function (nodes) {
6
- return [nodes.rule].concat(_toConsumableArray(fg('confluence_frontend_native_tabs_extension') ? [nodes.multiBodiedExtension] : []));
6
+ return [nodes.rule].concat(_toConsumableArray(expValEquals('confluence_native_tabs_experiment', 'isEnabled', true) ? [nodes.multiBodiedExtension] : []));
7
7
  });
8
8
  var getIsFormatMenuHidden = function getIsFormatMenuHidden(selection, schema) {
9
9
  var nodes = schema.nodes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "11.1.19",
3
+ "version": "11.1.21",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,12 +31,12 @@
31
31
  "@atlaskit/editor-shared-styles": "^4.0.0",
32
32
  "@atlaskit/editor-tables": "^3.0.0",
33
33
  "@atlaskit/editor-toolbar": "^2.2.0",
34
- "@atlaskit/flag": "^18.1.0",
34
+ "@atlaskit/flag": "^18.2.0",
35
35
  "@atlaskit/icon": "^37.0.0",
36
36
  "@atlaskit/platform-feature-flags": "^2.0.0",
37
- "@atlaskit/primitives": "^20.6.0",
37
+ "@atlaskit/primitives": "^21.0.0",
38
38
  "@atlaskit/prosemirror-history": "^1.0.0",
39
- "@atlaskit/tmp-editor-statsig": "^124.9.0",
39
+ "@atlaskit/tmp-editor-statsig": "^125.2.0",
40
40
  "@atlaskit/tokens": "^15.8.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "bind-event-listener": "^3.0.0",
@@ -98,9 +98,6 @@
98
98
  },
99
99
  "cc-maui-phase-3": {
100
100
  "type": "boolean"
101
- },
102
- "confluence_frontend_native_tabs_extension": {
103
- "type": "boolean"
104
101
  }
105
102
  },
106
103
  "devDependencies": {