@atlaskit/editor-plugin-block-type 11.2.3 → 11.2.5
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-block-type
|
|
2
2
|
|
|
3
|
+
## 11.2.5
|
|
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
|
+
## 11.2.4
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 11.2.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -11,6 +11,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
12
|
var _toolbar = require("@atlaskit/editor-common/toolbar");
|
|
13
13
|
var _editorToolbar = require("@atlaskit/editor-toolbar");
|
|
14
|
+
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
14
15
|
var _blockTypes = require("../../block-types");
|
|
15
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
16
17
|
var usePluginState = function usePluginState(api) {
|
|
@@ -55,6 +56,15 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
|
|
|
55
56
|
size: "small"
|
|
56
57
|
});
|
|
57
58
|
}, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
|
|
59
|
+
if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
60
|
+
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
61
|
+
isDisabled: blockTypesDisabled,
|
|
62
|
+
iconBefore: TriggerIcon,
|
|
63
|
+
tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
64
|
+
content: formatMessage(_messages.toolbarMessages.textStylesTooltip)
|
|
65
|
+
})
|
|
66
|
+
}, children);
|
|
67
|
+
}
|
|
58
68
|
return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
|
|
59
69
|
content: formatMessage(_messages.toolbarMessages.textStylesTooltip)
|
|
60
70
|
}, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
|
|
@@ -4,6 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { ToolbarDropdownMenu, ToolbarTooltip, TextIcon } from '@atlaskit/editor-toolbar';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
8
|
import { toolbarBlockTypesWithRank } from '../../block-types';
|
|
8
9
|
const usePluginState = api => {
|
|
9
10
|
return useSharedPluginStateWithSelector(api, ['blockType'], state => {
|
|
@@ -49,6 +50,15 @@ export const TextStylesMenuButton = ({
|
|
|
49
50
|
size: "small"
|
|
50
51
|
});
|
|
51
52
|
}, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
|
|
53
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
54
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
55
|
+
isDisabled: blockTypesDisabled,
|
|
56
|
+
iconBefore: TriggerIcon,
|
|
57
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
58
|
+
content: formatMessage(toolbarMessages.textStylesTooltip)
|
|
59
|
+
})
|
|
60
|
+
}, children);
|
|
61
|
+
}
|
|
52
62
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
53
63
|
content: formatMessage(toolbarMessages.textStylesTooltip)
|
|
54
64
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
@@ -4,6 +4,7 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
|
|
|
4
4
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
5
5
|
import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
|
|
6
6
|
import { ToolbarDropdownMenu, ToolbarTooltip, TextIcon } from '@atlaskit/editor-toolbar';
|
|
7
|
+
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
8
|
import { toolbarBlockTypesWithRank } from '../../block-types';
|
|
8
9
|
var usePluginState = function usePluginState(api) {
|
|
9
10
|
return useSharedPluginStateWithSelector(api, ['blockType'], function (state) {
|
|
@@ -47,6 +48,15 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
|
|
|
47
48
|
size: "small"
|
|
48
49
|
});
|
|
49
50
|
}, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
|
|
51
|
+
if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
|
|
52
|
+
return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
|
53
|
+
isDisabled: blockTypesDisabled,
|
|
54
|
+
iconBefore: TriggerIcon,
|
|
55
|
+
tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
56
|
+
content: formatMessage(toolbarMessages.textStylesTooltip)
|
|
57
|
+
})
|
|
58
|
+
}, children);
|
|
59
|
+
}
|
|
50
60
|
return /*#__PURE__*/React.createElement(ToolbarTooltip, {
|
|
51
61
|
content: formatMessage(toolbarMessages.textStylesTooltip)
|
|
52
62
|
}, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "11.2.
|
|
3
|
+
"version": "11.2.5",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/editor-plugin-selection": "^7.0.0",
|
|
39
39
|
"@atlaskit/editor-plugin-selection-toolbar": "^8.1.0",
|
|
40
40
|
"@atlaskit/editor-plugin-toolbar": "^4.1.0",
|
|
41
|
-
"@atlaskit/editor-prosemirror": "^7.
|
|
41
|
+
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
43
43
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
44
44
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
@@ -46,17 +46,17 @@
|
|
|
46
46
|
"@atlaskit/icon": "^30.0.0",
|
|
47
47
|
"@atlaskit/icon-lab": "^5.15.0",
|
|
48
48
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
49
|
-
"@atlaskit/primitives": "^
|
|
49
|
+
"@atlaskit/primitives": "^18.0.0",
|
|
50
50
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
51
51
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
52
52
|
"@atlaskit/theme": "^21.0.0",
|
|
53
|
-
"@atlaskit/tmp-editor-statsig": "^17.
|
|
54
|
-
"@atlaskit/tokens": "^
|
|
53
|
+
"@atlaskit/tmp-editor-statsig": "^17.13.0",
|
|
54
|
+
"@atlaskit/tokens": "^11.0.0",
|
|
55
55
|
"@babel/runtime": "^7.0.0",
|
|
56
56
|
"@emotion/react": "^11.7.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@atlaskit/editor-common": "^111.
|
|
59
|
+
"@atlaskit/editor-common": "^111.11.0",
|
|
60
60
|
"react": "^18.2.0",
|
|
61
61
|
"react-dom": "^18.2.0",
|
|
62
62
|
"react-intl-next": "npm:react-intl@^5.18.1"
|