@atlaskit/editor-plugin-block-menu 14.0.1 → 14.0.3

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,35 @@
1
1
  # @atlaskit/editor-plugin-block-menu
2
2
 
3
+ ## 14.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
8
+ Enable launched synced block integrations and remove obsolete experiment scaffolding.
9
+
10
+ BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
11
+ experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
12
+ enable synced-block integrations will no longer be able to look up that experiment; synced-block
13
+ integrations are now enabled by default. Remove each lookup and its conditional branch:
14
+
15
+ ```ts
16
+ // Before
17
+ if (editorExperiment('platform_synced_block', true)) {
18
+ enableSyncedBlocks();
19
+ }
20
+
21
+ // After
22
+ enableSyncedBlocks();
23
+ ```
24
+
25
+ - Updated dependencies
26
+
27
+ ## 14.0.2
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies
32
+
3
33
  ## 14.0.1
4
34
 
5
35
  ### Patch Changes
@@ -27,7 +27,6 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
27
27
  var _compiled = require("@atlaskit/primitives/compiled");
28
28
  var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
29
29
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
30
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
31
30
  var _blockMenuProvider = require("./block-menu-provider");
32
31
  var _BlockMenuRenderer = require("./block-menu-renderer/BlockMenuRenderer");
33
32
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
@@ -160,7 +159,7 @@ var BlockMenuContent = function BlockMenuContent(_ref4) {
160
159
  testId: _blockMenu.BLOCK_MENU_TEST_ID,
161
160
  role: (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
162
161
  ref: ref,
163
- xcss: (0, _css.cx)(styles.base, styles.maxWidthStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && styles.emptyMenuSectionStyles)
162
+ xcss: (0, _css.cx)(styles.base, styles.maxWidthStyles, styles.emptyMenuSectionStyles)
164
163
  }, /*#__PURE__*/_react.default.createElement(_uiMenu.ArrowKeyNavigationProvider, {
165
164
  type: _uiMenu.ArrowKeyNavigationType.MENU
166
165
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
@@ -18,7 +18,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
18
18
  import { Box } from '@atlaskit/primitives/compiled';
19
19
  import { redo, undo } from '@atlaskit/prosemirror-history';
20
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
22
21
  import { useBlockMenu } from './block-menu-provider';
23
22
  import { BlockMenuRenderer } from './block-menu-renderer/BlockMenuRenderer';
24
23
  const styles = {
@@ -149,7 +148,7 @@ const BlockMenuContent = ({
149
148
  testId: BLOCK_MENU_TEST_ID,
150
149
  role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
151
150
  ref: ref,
152
- xcss: cx(styles.base, styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
151
+ xcss: cx(styles.base, styles.maxWidthStyles, styles.emptyMenuSectionStyles)
153
152
  }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
154
153
  type: ArrowKeyNavigationType.MENU
155
154
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
@@ -19,7 +19,6 @@ import { fg } from '@atlaskit/platform-feature-flags';
19
19
  import { Box } from '@atlaskit/primitives/compiled';
20
20
  import { redo, undo } from '@atlaskit/prosemirror-history';
21
21
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
22
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
23
22
  import { useBlockMenu } from './block-menu-provider';
24
23
  import { BlockMenuRenderer } from './block-menu-renderer/BlockMenuRenderer';
25
24
  var styles = {
@@ -151,7 +150,7 @@ var BlockMenuContent = function BlockMenuContent(_ref4) {
151
150
  testId: BLOCK_MENU_TEST_ID,
152
151
  role: expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? 'menu' : undefined,
153
152
  ref: ref,
154
- xcss: cx(styles.base, styles.maxWidthStyles, editorExperiment('platform_synced_block', true) && styles.emptyMenuSectionStyles)
153
+ xcss: cx(styles.base, styles.maxWidthStyles, styles.emptyMenuSectionStyles)
155
154
  }, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
156
155
  type: ArrowKeyNavigationType.MENU
157
156
  // eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
package/docs/0-intro.tsx CHANGED
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
 
3
3
  import { AtlassianInternalWarning, code, md } from '@atlaskit/docs';
4
- // eslint-disable-next-line @atlassian/tangerine/import/entry-points
5
4
  import { createEditorUseOnlyNotice } from '@atlaskit/editor-common/doc-utils';
6
5
  import { token } from '@atlaskit/tokens';
7
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "14.0.1",
3
+ "version": "14.0.3",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,15 +36,15 @@
36
36
  "@atlaskit/platform-feature-experiments": "^0.3.0",
37
37
  "@atlaskit/platform-feature-flags": "^2.1.0",
38
38
  "@atlaskit/primitives": "^22.2.0",
39
- "@atlaskit/prosemirror-history": "^1.1.0",
40
- "@atlaskit/tmp-editor-statsig": "^147.1.0",
39
+ "@atlaskit/prosemirror-history": "^1.2.0",
40
+ "@atlaskit/tmp-editor-statsig": "^149.0.0",
41
41
  "@atlaskit/tokens": "^16.7.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": "^119.2.0",
47
+ "@atlaskit/editor-common": "^119.7.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
  },