@atlaskit/editor-toolbar 2.4.13 → 2.4.14
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,29 @@
|
|
|
1
1
|
# @atlaskit/editor-toolbar
|
|
2
2
|
|
|
3
|
+
## 2.4.14
|
|
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
|
+
|
|
3
27
|
## 2.4.13
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -18,7 +18,6 @@ var _dropdownMenu = require("@atlaskit/dropdown-menu");
|
|
|
18
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
19
19
|
var _compiled = require("@atlaskit/primitives/compiled");
|
|
20
20
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
21
|
-
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
21
|
var _ToolbarDropdownMenuContext = require("./ToolbarDropdownMenuContext");
|
|
23
22
|
var _excluded = ["children", "data-testid", "aria-haspopup", "aria-disabled", "aria-pressed", "aria-keyshortcuts", "onClick", "onBlur", "onFocus", "onMouseEnter", "onMouseLeave", "tabIndex", "href", "target", "rel", "title", "itemRole"],
|
|
24
23
|
_excluded2 = ["onClick", "onBlur", "onFocus", "onMouseEnter", "onMouseLeave", "elemBefore", "elemAfter", "elemAfterText", "isSelected", "children", "isDisabled", "hasNestedDropdownMenu", "triggerRef", "title", "shouldTitleWrap", "testId", "ariaKeyshortcuts", "href", "target", "rel", "role"];
|
|
@@ -67,7 +66,7 @@ var CustomDropdownMenuItemButton = /*#__PURE__*/(0, _react.forwardRef)(function
|
|
|
67
66
|
"aria-pressed": (0, _expValEquals.expValEquals)('platform_editor_layout_column_menu', 'isEnabled', true) ? undefined : (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? undefined : ariaPressed,
|
|
68
67
|
"aria-disabled": ariaDisabled,
|
|
69
68
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
70
|
-
"data-toolbar-component":
|
|
69
|
+
"data-toolbar-component": "menu-item",
|
|
71
70
|
ref: ref,
|
|
72
71
|
title: (0, _expValEquals.expValEquals)('platform_editor_renderer_toolbar_updates', 'isEnabled', true) ? title : undefined,
|
|
73
72
|
"data-extension-item-key": (0, _platformFeatureFlags.fg)('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
|
@@ -8,7 +8,6 @@ import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { Anchor, Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
10
10
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
13
12
|
const styles = {
|
|
14
13
|
toolbarDropdownItem: "_11c8fhey _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
|
|
@@ -52,7 +51,7 @@ const CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(({
|
|
|
52
51
|
"aria-pressed": expValEquals('platform_editor_layout_column_menu', 'isEnabled', true) ? undefined : expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? undefined : ariaPressed,
|
|
53
52
|
"aria-disabled": ariaDisabled,
|
|
54
53
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
55
|
-
"data-toolbar-component":
|
|
54
|
+
"data-toolbar-component": "menu-item",
|
|
56
55
|
ref: ref,
|
|
57
56
|
title: expValEquals('platform_editor_renderer_toolbar_updates', 'isEnabled', true) ? title : undefined,
|
|
58
57
|
"data-extension-item-key": fg('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
|
@@ -14,7 +14,6 @@ import { DropdownItem } from '@atlaskit/dropdown-menu';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import { Anchor, Box, Pressable } from '@atlaskit/primitives/compiled';
|
|
16
16
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { useToolbarDropdownMenu } from './ToolbarDropdownMenuContext';
|
|
19
18
|
var styles = {
|
|
20
19
|
toolbarDropdownItem: "_11c8fhey _18zrutpp _1rjc1b66 _1e0c1txw _kqswh2mm _bfhksm61 _1bsb1osq _1tkezwfg _1ul9eoa3 _syazazsu _1bas12b0 _1ah31i6y",
|
|
@@ -58,7 +57,7 @@ var CustomDropdownMenuItemButton = /*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
58
57
|
"aria-pressed": expValEquals('platform_editor_layout_column_menu', 'isEnabled', true) ? undefined : expValEquals('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? undefined : ariaPressed,
|
|
59
58
|
"aria-disabled": ariaDisabled,
|
|
60
59
|
"aria-keyshortcuts": ariaKeyshortcuts,
|
|
61
|
-
"data-toolbar-component":
|
|
60
|
+
"data-toolbar-component": "menu-item",
|
|
62
61
|
ref: ref,
|
|
63
62
|
title: expValEquals('platform_editor_renderer_toolbar_updates', 'isEnabled', true) ? title : undefined,
|
|
64
63
|
"data-extension-item-key": fg('cc_blocks_changeboarding') ? dataExtensionItemKey : undefined
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org/"
|
|
5
5
|
},
|
|
6
|
-
"version": "2.4.
|
|
6
|
+
"version": "2.4.14",
|
|
7
7
|
"description": "Common UI for Toolbars across the platform",
|
|
8
8
|
"atlassian": {
|
|
9
9
|
"react-compiler": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/popup": "^6.0.0",
|
|
40
40
|
"@atlaskit/primitives": "^22.2.0",
|
|
41
41
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
42
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^149.0.0",
|
|
43
43
|
"@atlaskit/tokens": "^16.7.0",
|
|
44
44
|
"@atlaskit/tooltip": "^24.0.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|