@atlaskit/editor-plugin-block-menu 15.0.9 → 15.0.10

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,18 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 15.0.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [`08bf773f7599a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/08bf773f7599a) -
8
+ Migrate experiments to use the new platform experiment API. This major release removes the
9
+ migrated experiment entries from `@atlaskit/tmp-editor-statsig`'s `editorExperimentsConfig` and
10
+ test overrides. Consumers must replace legacy `expVal`/`expValEquals` calls with
11
+ `@atlaskit/platform-feature-experiments` APIs, using `isExperimentEnabled` for boolean `isEnabled`
12
+ experiments and `expVal` for parameterized experiments; use `mockExpEnabled`/`mockExpDisabled` in
13
+ tests.
14
+ - Updated dependencies
15
+
3
16
  ## 15.0.9
4
17
 
5
18
  ### Patch Changes
@@ -8,7 +8,7 @@ exports.blockMenuPlugin = void 0;
8
8
  var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
11
- var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
11
+ var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
12
12
  var _editorActions = require("./editor-actions");
13
13
  var _isTransformToTargetDisabled = require("./editor-actions/isTransformToTargetDisabled");
14
14
  var _transformSourceRegistry = require("./editor-actions/transformSourceRegistry");
@@ -44,7 +44,7 @@ var blockMenuPlugin = exports.blockMenuPlugin = function blockMenuPlugin(_ref) {
44
44
  plugin: function plugin() {
45
45
  return (0, _keymap.keymapPlugin)(api, config);
46
46
  }
47
- }].concat((0, _toConsumableArray2.default)((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_experience_tracking_observer', 'isEnabled', true) ? [{
47
+ }].concat((0, _toConsumableArray2.default)((0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
48
48
  name: 'blockMenuExperiences',
49
49
  plugin: function plugin() {
50
50
  return (0, _blockMenuExperiences.getBlockMenuExperiencesPlugin)({
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
3
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
3
+ import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
4
4
  import { createBlockMenuRegistry } from './editor-actions';
5
5
  import { isTransformToTargetDisabled } from './editor-actions/isTransformToTargetDisabled';
6
6
  import { createBlockMenuTransformSourceRegistry } from './editor-actions/transformSourceRegistry';
@@ -33,7 +33,7 @@ export const blockMenuPlugin = ({
33
33
  }, {
34
34
  name: 'blockMenuKeymap',
35
35
  plugin: () => keymapPlugin(api, config)
36
- }, ...(expValEqualsNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', true) ? [{
36
+ }, ...(UNSAFE_expValNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
37
37
  name: 'blockMenuExperiences',
38
38
  plugin: () => getBlockMenuExperiencesPlugin({
39
39
  refs,
@@ -1,7 +1,7 @@
1
1
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import React from 'react';
3
3
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
4
- import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
4
+ import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
5
5
  import { createBlockMenuRegistry } from './editor-actions';
6
6
  import { isTransformToTargetDisabled } from './editor-actions/isTransformToTargetDisabled';
7
7
  import { createBlockMenuTransformSourceRegistry } from './editor-actions/transformSourceRegistry';
@@ -37,7 +37,7 @@ export var blockMenuPlugin = function blockMenuPlugin(_ref) {
37
37
  plugin: function plugin() {
38
38
  return keymapPlugin(api, config);
39
39
  }
40
- }].concat(_toConsumableArray(expValEqualsNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', true) ? [{
40
+ }].concat(_toConsumableArray(UNSAFE_expValNoExposure('platform_editor_experience_tracking_observer', 'isEnabled', false) ? [{
41
41
  name: 'blockMenuExperiences',
42
42
  plugin: function plugin() {
43
43
  return getBlockMenuExperiencesPlugin({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "15.0.9",
3
+ "version": "15.0.10",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,29 +22,29 @@
22
22
  "dependencies": {
23
23
  "@atlaskit/browser-apis": "^1.2.0",
24
24
  "@atlaskit/css": "^1.1.0",
25
- "@atlaskit/editor-plugin-analytics": "^16.0.0",
26
- "@atlaskit/editor-plugin-block-controls": "^17.2.0",
27
- "@atlaskit/editor-plugin-decorations": "^16.0.0",
28
- "@atlaskit/editor-plugin-selection": "^16.0.0",
25
+ "@atlaskit/editor-plugin-analytics": "^16.1.0",
26
+ "@atlaskit/editor-plugin-block-controls": "^17.3.0",
27
+ "@atlaskit/editor-plugin-decorations": "^16.1.0",
28
+ "@atlaskit/editor-plugin-selection": "^16.1.0",
29
29
  "@atlaskit/editor-plugin-user-intent": "^14.0.0",
30
30
  "@atlaskit/editor-prosemirror": "^8.0.0",
31
- "@atlaskit/editor-shared-styles": "^4.0.0",
32
- "@atlaskit/editor-tables": "^3.0.0",
31
+ "@atlaskit/editor-shared-styles": "^4.1.0",
32
+ "@atlaskit/editor-tables": "^3.1.0",
33
33
  "@atlaskit/editor-toolbar": "^2.6.0",
34
- "@atlaskit/flag": "^18.4.0",
35
- "@atlaskit/icon": "^37.5.0",
34
+ "@atlaskit/flag": "^18.5.0",
35
+ "@atlaskit/icon": "^37.6.0",
36
36
  "@atlaskit/platform-feature-experiments": "^0.3.0",
37
- "@atlaskit/platform-feature-flags": "^2.1.0",
38
- "@atlaskit/primitives": "^22.4.0",
37
+ "@atlaskit/platform-feature-flags": "^2.2.0",
38
+ "@atlaskit/primitives": "^22.5.0",
39
39
  "@atlaskit/prosemirror-history": "^1.2.0",
40
- "@atlaskit/tmp-editor-statsig": "^168.0.0",
41
- "@atlaskit/tokens": "^16.9.0",
40
+ "@atlaskit/tmp-editor-statsig": "^169.0.0",
41
+ "@atlaskit/tokens": "^16.10.0",
42
42
  "@babel/runtime": "^7.0.0",
43
43
  "bind-event-listener": "^3.0.0",
44
44
  "memoize-one": "^6.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "@atlaskit/editor-common": "^120.7.0",
47
+ "@atlaskit/editor-common": "^120.10.0",
48
48
  "react": "^18.2.0 || ^19.2.0",
49
49
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
50
50
  },