@atlaskit/editor-plugin-block-menu 14.0.2 → 14.1.0
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,40 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-menu
|
|
2
2
|
|
|
3
|
+
## 14.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d585dc37819b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d585dc37819b9) -
|
|
8
|
+
[ux] ui changes gated by cc-ce-maui-remix-menu-multivariant
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
14
|
+
## 14.0.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`76e9f6152bf16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/76e9f6152bf16) -
|
|
19
|
+
Enable launched synced block integrations and remove obsolete experiment scaffolding.
|
|
20
|
+
|
|
21
|
+
BREAKING: `@atlaskit/tmp-editor-statsig` no longer defines the `platform_synced_block` editor
|
|
22
|
+
experiment. Consumers that use `editorExperiment('platform_synced_block', ...)` to conditionally
|
|
23
|
+
enable synced-block integrations will no longer be able to look up that experiment; synced-block
|
|
24
|
+
integrations are now enabled by default. Remove each lookup and its conditional branch:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
// Before
|
|
28
|
+
if (editorExperiment('platform_synced_block', true)) {
|
|
29
|
+
enableSyncedBlocks();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// After
|
|
33
|
+
enableSyncedBlocks();
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- Updated dependencies
|
|
37
|
+
|
|
3
38
|
## 14.0.2
|
|
4
39
|
|
|
5
40
|
### 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,
|
|
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,
|
|
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,
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-menu",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.1.0",
|
|
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.
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
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.
|
|
47
|
+
"@atlaskit/editor-common": "^119.9.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
|
},
|