@atlaskit/editor-plugin-floating-toolbar 4.1.1 → 4.1.2
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 +8 -0
- package/dist/cjs/ui/Dropdown.js +2 -1
- package/dist/es2019/ui/Dropdown.js +2 -1
- package/dist/esm/ui/Dropdown.js +2 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 4.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#151316](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151316)
|
|
8
|
+
[`a690cef2c18f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a690cef2c18f0) -
|
|
9
|
+
[ux] Uses aria-expanded for floating toolbar dropdowns with where trigger button has an icon.
|
|
10
|
+
|
|
3
11
|
## 4.1.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/Dropdown.js
CHANGED
|
@@ -19,6 +19,7 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
19
19
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
20
20
|
var _chevronDown2 = _interopRequireDefault(require("@atlaskit/icon/utility/chevron-down"));
|
|
21
21
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
22
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
22
23
|
var _Divider = require("./Divider");
|
|
23
24
|
var _DropdownMenu = _interopRequireWildcard(require("./DropdownMenu"));
|
|
24
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
@@ -172,7 +173,7 @@ var Dropdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
172
173
|
selected: isOpen,
|
|
173
174
|
disabled: disabled,
|
|
174
175
|
tooltipContent: tooltip,
|
|
175
|
-
ariaHasPopup: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? true : undefined,
|
|
176
|
+
ariaHasPopup: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_8') ? true : undefined,
|
|
176
177
|
onMount: onMount,
|
|
177
178
|
pulse: pulse,
|
|
178
179
|
spotlightConfig: spotlightConfig
|
|
@@ -14,6 +14,7 @@ import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlask
|
|
|
14
14
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
15
15
|
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
16
16
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
17
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
17
18
|
import { Divider } from './Divider';
|
|
18
19
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
19
20
|
|
|
@@ -153,7 +154,7 @@ export default class Dropdown extends Component {
|
|
|
153
154
|
selected: isOpen,
|
|
154
155
|
disabled: disabled,
|
|
155
156
|
tooltipContent: tooltip,
|
|
156
|
-
ariaHasPopup: fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
157
|
+
ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
157
158
|
onMount: onMount,
|
|
158
159
|
pulse: pulse,
|
|
159
160
|
spotlightConfig: spotlightConfig
|
package/dist/esm/ui/Dropdown.js
CHANGED
|
@@ -23,6 +23,7 @@ import { ArrowKeyNavigationType, DropdownContainer as UiDropdown } from '@atlask
|
|
|
23
23
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
24
24
|
import ChevronDownIcon from '@atlaskit/icon/utility/chevron-down';
|
|
25
25
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
26
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
26
27
|
import { Divider } from './Divider';
|
|
27
28
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
28
29
|
|
|
@@ -167,7 +168,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
167
168
|
selected: isOpen,
|
|
168
169
|
disabled: disabled,
|
|
169
170
|
tooltipContent: tooltip,
|
|
170
|
-
ariaHasPopup: fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
171
|
+
ariaHasPopup: editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_8') ? true : undefined,
|
|
171
172
|
onMount: onMount,
|
|
172
173
|
pulse: pulse,
|
|
173
174
|
spotlightConfig: spotlightConfig
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@atlaskit/adf-utils": "^19.19.0",
|
|
29
29
|
"@atlaskit/button": "^23.0.0",
|
|
30
30
|
"@atlaskit/checkbox": "^17.1.0",
|
|
31
|
-
"@atlaskit/editor-common": "^104.
|
|
31
|
+
"@atlaskit/editor-common": "^104.1.0",
|
|
32
32
|
"@atlaskit/editor-palette": "^2.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-context-panel": "^4.1.0",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"@atlaskit/editor-plugin-user-intent": "^0.1.0",
|
|
44
44
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
45
45
|
"@atlaskit/emoji": "^69.1.0",
|
|
46
|
-
"@atlaskit/icon": "^25.
|
|
46
|
+
"@atlaskit/icon": "^25.7.0",
|
|
47
47
|
"@atlaskit/menu": "^5.0.0",
|
|
48
48
|
"@atlaskit/modal-dialog": "^14.1.0",
|
|
49
49
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
50
50
|
"@atlaskit/primitives": "^14.7.0",
|
|
51
51
|
"@atlaskit/select": "^20.4.0",
|
|
52
52
|
"@atlaskit/theme": "^18.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^4.
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^4.17.0",
|
|
54
54
|
"@atlaskit/tokens": "^4.8.0",
|
|
55
55
|
"@atlaskit/tooltip": "^20.0.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|