@atlaskit/editor-plugin-toolbar 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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 15.0.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`9f67d7a39831c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f67d7a39831c) -
|
|
8
|
+
Clean up experiment `editor_a11y__primary-toolbar-aria-label_fy27`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 15.0.9
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -8,7 +8,6 @@ exports.PrimaryToolbar = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
10
10
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
11
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
12
11
|
var isFullPage = function isFullPage(editorAppearance) {
|
|
13
12
|
return editorAppearance === 'full-page' || editorAppearance === 'full-width';
|
|
14
13
|
};
|
|
@@ -24,8 +23,7 @@ var PrimaryToolbar = exports.PrimaryToolbar = function PrimaryToolbar(_ref) {
|
|
|
24
23
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
25
24
|
editorAppearance = _useEditorToolbar.editorAppearance;
|
|
26
25
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.PrimaryToolbar, {
|
|
27
|
-
testId:
|
|
28
|
-
label: (0, _expValEquals.expValEquals)('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
|
|
26
|
+
testId: "editor-primary-toolbar",
|
|
29
27
|
breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
|
|
30
28
|
}, children);
|
|
31
29
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
const isFullPage = editorAppearance => {
|
|
6
5
|
return editorAppearance === 'full-page' || editorAppearance === 'full-width';
|
|
7
6
|
};
|
|
@@ -19,8 +18,7 @@ export const PrimaryToolbar = ({
|
|
|
19
18
|
editorAppearance
|
|
20
19
|
} = useEditorToolbar();
|
|
21
20
|
return /*#__PURE__*/React.createElement(PrimaryToolbarBase, {
|
|
22
|
-
testId:
|
|
23
|
-
label: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
|
|
21
|
+
testId: "editor-primary-toolbar",
|
|
24
22
|
breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
|
|
25
23
|
}, children);
|
|
26
24
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { PrimaryToolbar as PrimaryToolbarBase } from '@atlaskit/editor-toolbar';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
var isFullPage = function isFullPage(editorAppearance) {
|
|
6
5
|
return editorAppearance === 'full-page' || editorAppearance === 'full-width';
|
|
7
6
|
};
|
|
@@ -17,8 +16,7 @@ export var PrimaryToolbar = function PrimaryToolbar(_ref) {
|
|
|
17
16
|
var _useEditorToolbar = useEditorToolbar(),
|
|
18
17
|
editorAppearance = _useEditorToolbar.editorAppearance;
|
|
19
18
|
return /*#__PURE__*/React.createElement(PrimaryToolbarBase, {
|
|
20
|
-
testId:
|
|
21
|
-
label: expValEquals('editor_a11y__primary-toolbar-aria-label_fy27', 'isEnabled', true) ? undefined : 'Primary Toolbar',
|
|
19
|
+
testId: "editor-primary-toolbar",
|
|
22
20
|
breakpointPreset: getBreakpointPreset(breakpointPreset, editorAppearance)
|
|
23
21
|
}, children);
|
|
24
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.10",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
34
34
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
35
35
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^198.0.0",
|
|
37
37
|
"@babel/runtime": "^7.0.0",
|
|
38
38
|
"bind-event-listener": "^3.0.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@atlaskit/editor-common": "^122.
|
|
41
|
+
"@atlaskit/editor-common": "^122.10.0",
|
|
42
42
|
"react": "^18.2.0 || ^19.2.0",
|
|
43
43
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
44
44
|
},
|