@atlaskit/editor-plugin-floating-toolbar 26.0.3 → 27.0.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 +14 -0
- package/dist/cjs/ui/Toolbar.js +1 -2
- package/dist/es2019/ui/Toolbar.js +1 -2
- package/dist/esm/ui/Toolbar.js +1 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-floating-toolbar
|
|
2
2
|
|
|
3
|
+
## 27.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 26.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`042fa402a6460`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/042fa402a6460) -
|
|
14
|
+
Clean up experiment `platform_editor_august_a11y`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 26.0.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/cjs/ui/Toolbar.js
CHANGED
|
@@ -27,7 +27,6 @@ var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
|
27
27
|
var _editorPalette = require("@atlaskit/editor-palette");
|
|
28
28
|
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
29
29
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
30
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
31
30
|
var _forceFocus = require("../pm-plugins/force-focus");
|
|
32
31
|
var _commands = require("../pm-plugins/toolbar-data/commands");
|
|
33
32
|
var _Dropdown = _interopRequireDefault(require("./Dropdown"));
|
|
@@ -57,7 +56,7 @@ function groupItems(items, areAnyNewToolbarFlagsEnabled) {
|
|
|
57
56
|
var shouldBeRadioButton = notLastItem && nextItemIsButton || wasPreviousButton;
|
|
58
57
|
|
|
59
58
|
// Only group as radio button if not explicitly set to false
|
|
60
|
-
var isRadioButton =
|
|
59
|
+
var isRadioButton = shouldBeRadioButton && item.isRadioButton !== false;
|
|
61
60
|
if (isRadioButton) {
|
|
62
61
|
item.isRadioButton = true;
|
|
63
62
|
buttonGroup.push(item);
|
|
@@ -21,7 +21,6 @@ import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/
|
|
|
21
21
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
22
22
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
23
23
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
24
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
25
24
|
import { checkShouldForceFocusAndApply, forceFocusSelector } from '../pm-plugins/force-focus';
|
|
26
25
|
import { showConfirmDialog } from '../pm-plugins/toolbar-data/commands';
|
|
27
26
|
import Dropdown from './Dropdown';
|
|
@@ -45,7 +44,7 @@ export function groupItems(items, areAnyNewToolbarFlagsEnabled) {
|
|
|
45
44
|
const shouldBeRadioButton = notLastItem && nextItemIsButton || wasPreviousButton;
|
|
46
45
|
|
|
47
46
|
// Only group as radio button if not explicitly set to false
|
|
48
|
-
const isRadioButton =
|
|
47
|
+
const isRadioButton = shouldBeRadioButton && item.isRadioButton !== false;
|
|
49
48
|
if (isRadioButton) {
|
|
50
49
|
item.isRadioButton = true;
|
|
51
50
|
buttonGroup.push(item);
|
package/dist/esm/ui/Toolbar.js
CHANGED
|
@@ -30,7 +30,6 @@ import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/
|
|
|
30
30
|
import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
31
31
|
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
32
32
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
33
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
34
33
|
import { checkShouldForceFocusAndApply, forceFocusSelector } from '../pm-plugins/force-focus';
|
|
35
34
|
import { showConfirmDialog } from '../pm-plugins/toolbar-data/commands';
|
|
36
35
|
import Dropdown from './Dropdown';
|
|
@@ -52,7 +51,7 @@ export function groupItems(items, areAnyNewToolbarFlagsEnabled) {
|
|
|
52
51
|
var shouldBeRadioButton = notLastItem && nextItemIsButton || wasPreviousButton;
|
|
53
52
|
|
|
54
53
|
// Only group as radio button if not explicitly set to false
|
|
55
|
-
var isRadioButton =
|
|
54
|
+
var isRadioButton = shouldBeRadioButton && item.isRadioButton !== false;
|
|
56
55
|
if (isRadioButton) {
|
|
57
56
|
item.isRadioButton = true;
|
|
58
57
|
buttonGroup.push(item);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-floating-toolbar",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "27.0.0",
|
|
4
4
|
"description": "Floating toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"@atlaskit/button": "^25.4.0",
|
|
26
26
|
"@atlaskit/checkbox": "^19.3.0",
|
|
27
27
|
"@atlaskit/editor-palette": "^3.5.0",
|
|
28
|
-
"@atlaskit/editor-plugin-analytics": "^
|
|
29
|
-
"@atlaskit/editor-plugin-context-panel": "^
|
|
30
|
-
"@atlaskit/editor-plugin-copy-button": "^
|
|
31
|
-
"@atlaskit/editor-plugin-decorations": "^
|
|
32
|
-
"@atlaskit/editor-plugin-editor-disabled": "^
|
|
33
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^
|
|
34
|
-
"@atlaskit/editor-plugin-emoji": "^
|
|
35
|
-
"@atlaskit/editor-plugin-extension": "^
|
|
36
|
-
"@atlaskit/editor-plugin-interaction": "^
|
|
37
|
-
"@atlaskit/editor-plugin-user-intent": "^
|
|
28
|
+
"@atlaskit/editor-plugin-analytics": "^25.0.0",
|
|
29
|
+
"@atlaskit/editor-plugin-context-panel": "^27.0.0",
|
|
30
|
+
"@atlaskit/editor-plugin-copy-button": "^25.0.0",
|
|
31
|
+
"@atlaskit/editor-plugin-decorations": "^25.0.0",
|
|
32
|
+
"@atlaskit/editor-plugin-editor-disabled": "^25.0.0",
|
|
33
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^27.0.0",
|
|
34
|
+
"@atlaskit/editor-plugin-emoji": "^26.0.0",
|
|
35
|
+
"@atlaskit/editor-plugin-extension": "^28.0.0",
|
|
36
|
+
"@atlaskit/editor-plugin-interaction": "^39.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-user-intent": "^23.0.0",
|
|
38
38
|
"@atlaskit/editor-prosemirror": "^9.0.0",
|
|
39
39
|
"@atlaskit/emoji": "^72.5.0",
|
|
40
40
|
"@atlaskit/icon": "^38.0.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
45
45
|
"@atlaskit/primitives": "^22.5.0",
|
|
46
46
|
"@atlaskit/select": "^23.1.0",
|
|
47
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
+
"@atlaskit/tmp-editor-statsig": "^224.0.0",
|
|
48
48
|
"@atlaskit/tokens": "^20.3.0",
|
|
49
49
|
"@atlaskit/tooltip": "^24.4.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"react-loosely-lazy": "^1.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^
|
|
59
|
+
"@atlaskit/editor-common": "^129.0.0",
|
|
60
60
|
"react": "^18.2.0 || ^19.2.0",
|
|
61
61
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
62
62
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|