@atlaskit/editor-plugin-selection-extension 10.3.1 → 10.3.3
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 10.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`38dee2c85c456`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/38dee2c85c456) -
|
|
8
|
+
[ux] [EDITOR-4486] render tooltips for ToolbarDropdownMenu using new TooltipComponent prop behind
|
|
9
|
+
platform_editor_hide_toolbar_tooltips_fix
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.3.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 10.3.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -8,6 +8,7 @@ exports.ToolbarMenu = 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");
|
|
11
12
|
var usePluginState = function usePluginState(_api) {
|
|
12
13
|
var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
|
|
13
14
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
@@ -26,6 +27,18 @@ var ToolbarMenu = exports.ToolbarMenu = function ToolbarMenu(_ref) {
|
|
|
26
27
|
return null;
|
|
27
28
|
}
|
|
28
29
|
var Icon = config.icon;
|
|
30
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
31
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
32
|
+
iconBefore: /*#__PURE__*/_react.default.createElement(Icon, {
|
|
33
|
+
label: ""
|
|
34
|
+
}),
|
|
35
|
+
isDisabled: config.isDisabled,
|
|
36
|
+
onClick: config.onClick,
|
|
37
|
+
tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
38
|
+
content: config.tooltip
|
|
39
|
+
})
|
|
40
|
+
}, children);
|
|
41
|
+
}
|
|
29
42
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
30
43
|
content: config.tooltip
|
|
31
44
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
const usePluginState = _api => {
|
|
5
6
|
const {
|
|
6
7
|
editorToolbarDockingPreference
|
|
@@ -22,6 +23,18 @@ export const ToolbarMenu = ({
|
|
|
22
23
|
return null;
|
|
23
24
|
}
|
|
24
25
|
const Icon = config.icon;
|
|
26
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
27
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
28
|
+
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
29
|
+
label: ""
|
|
30
|
+
}),
|
|
31
|
+
isDisabled: config.isDisabled,
|
|
32
|
+
onClick: config.onClick,
|
|
33
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
34
|
+
content: config.tooltip
|
|
35
|
+
})
|
|
36
|
+
}, children);
|
|
37
|
+
}
|
|
25
38
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
26
39
|
content: config.tooltip
|
|
27
40
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
3
3
|
import { ToolbarTooltip, ToolbarDropdownMenu } from '@atlaskit/editor-toolbar';
|
|
4
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
4
5
|
var usePluginState = function usePluginState(_api) {
|
|
5
6
|
var _useEditorToolbar = useEditorToolbar(),
|
|
6
7
|
editorToolbarDockingPreference = _useEditorToolbar.editorToolbarDockingPreference;
|
|
@@ -19,6 +20,18 @@ export var ToolbarMenu = function ToolbarMenu(_ref) {
|
|
|
19
20
|
return null;
|
|
20
21
|
}
|
|
21
22
|
var Icon = config.icon;
|
|
23
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
25
|
+
iconBefore: /*#__PURE__*/React.createElement(Icon, {
|
|
26
|
+
label: ""
|
|
27
|
+
}),
|
|
28
|
+
isDisabled: config.isDisabled,
|
|
29
|
+
onClick: config.onClick,
|
|
30
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
31
|
+
content: config.tooltip
|
|
32
|
+
})
|
|
33
|
+
}, children);
|
|
34
|
+
}
|
|
22
35
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
23
36
|
content: config.tooltip
|
|
24
37
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "10.3.
|
|
3
|
+
"version": "10.3.3",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -44,23 +44,23 @@
|
|
|
44
44
|
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
45
45
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
46
46
|
"@atlaskit/editor-plugin-user-preferences": "^5.0.0",
|
|
47
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
47
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
48
48
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
49
49
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
50
50
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
51
51
|
"@atlaskit/icon": "^30.0.0",
|
|
52
|
-
"@atlaskit/lozenge": "^13.
|
|
52
|
+
"@atlaskit/lozenge": "^13.4.0",
|
|
53
53
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
54
|
-
"@atlaskit/primitives": "^
|
|
55
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
56
|
-
"@atlaskit/tokens": "^
|
|
54
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
55
|
+
"@atlaskit/tmp-editor-statsig": "^17.13.0",
|
|
56
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
57
57
|
"@babel/runtime": "^7.0.0",
|
|
58
58
|
"lodash": "^4.17.21",
|
|
59
59
|
"react-intl-next": "npm:react-intl@^5.18.1",
|
|
60
60
|
"uuid": "^3.1.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@atlaskit/editor-common": "^111.
|
|
63
|
+
"@atlaskit/editor-common": "^111.11.0",
|
|
64
64
|
"react": "^18.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|