@atlaskit/editor-plugin-toolbar 13.0.7 → 13.0.9
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
|
@@ -22,7 +22,7 @@ var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
|
22
22
|
var _editorToolbarModel = require("@atlaskit/editor-toolbar-model");
|
|
23
23
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
24
24
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
25
|
-
var
|
|
25
|
+
var _editorExperiment = require("@atlaskit/tmp-editor-statsig/editor-experiment");
|
|
26
26
|
var _consts = require("../consts");
|
|
27
27
|
var _keyboardConfig = require("./keyboard-config");
|
|
28
28
|
var _utils2 = require("./utils");
|
|
@@ -99,7 +99,7 @@ var SelectionToolbar = exports.SelectionToolbar = function SelectionToolbar(_ref
|
|
|
99
99
|
if (selectionToolbarConfigEnabled && disableSelectionToolbarWhenPinned || !components || !toolbar) {
|
|
100
100
|
return null;
|
|
101
101
|
}
|
|
102
|
-
if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0,
|
|
102
|
+
if (!(isTextSelection || isCellSelection || isAllSelection) || currentUserIntent === 'dragging' || !shouldShowToolbar || currentUserIntent === 'blockMenuOpen' && (0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true) ||
|
|
103
103
|
// hide toolbar when user intent is not default, except when it's dragHandleSelected without cell selection
|
|
104
104
|
(0, _visibility.isSelectionToolbarSuppressedByUserIntent)(currentUserIntent, isCellSelection) || (0, _coreUtils.isSSR)()) {
|
|
105
105
|
return null;
|
|
@@ -15,7 +15,7 @@ import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useTool
|
|
|
15
15
|
import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
|
|
16
16
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import { SELECTION_TOOLBAR_LABEL } from '../consts';
|
|
20
20
|
import { getKeyboardNavigationConfig } from './keyboard-config';
|
|
21
21
|
import { getDomRefFromSelection } from './utils';
|
|
@@ -15,7 +15,7 @@ import { ToolbarSection, ToolbarButtonGroup, ToolbarDropdownItemSection, useTool
|
|
|
15
15
|
import { ToolbarModelRenderer } from '@atlaskit/editor-toolbar-model';
|
|
16
16
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
17
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
18
|
-
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/
|
|
18
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/editor-experiment';
|
|
19
19
|
import { SELECTION_TOOLBAR_LABEL } from '../consts';
|
|
20
20
|
import { getKeyboardNavigationConfig } from './keyboard-config';
|
|
21
21
|
import { getDomRefFromSelection } from './utils';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.9",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -21,24 +21,24 @@
|
|
|
21
21
|
"atlaskit:src": "src/index.ts",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@atlaskit/browser-apis": "^1.2.0",
|
|
24
|
-
"@atlaskit/editor-plugin-analytics": "^16.
|
|
24
|
+
"@atlaskit/editor-plugin-analytics": "^16.1.0",
|
|
25
25
|
"@atlaskit/editor-plugin-connectivity": "^16.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-editor-viewmode": "^18.0.0",
|
|
27
|
-
"@atlaskit/editor-plugin-selection": "^16.
|
|
27
|
+
"@atlaskit/editor-plugin-selection": "^16.1.0",
|
|
28
28
|
"@atlaskit/editor-plugin-user-intent": "^14.0.0",
|
|
29
29
|
"@atlaskit/editor-plugin-user-preferences": "^14.0.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
31
|
-
"@atlaskit/editor-shared-styles": "^4.
|
|
31
|
+
"@atlaskit/editor-shared-styles": "^4.1.0",
|
|
32
32
|
"@atlaskit/editor-toolbar": "^2.6.0",
|
|
33
33
|
"@atlaskit/editor-toolbar-model": "^1.2.0",
|
|
34
34
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
35
|
-
"@atlaskit/platform-feature-flags": "^2.
|
|
36
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
36
|
+
"@atlaskit/tmp-editor-statsig": "^169.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": "^120.
|
|
41
|
+
"@atlaskit/editor-common": "^120.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
|
},
|