@atlaskit/editor-plugin-block-type 12.0.5 → 12.1.1

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,23 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 12.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 12.1.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`5a8d797e50210`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5a8d797e50210) -
14
+ [FFCLEANUP-91669] clean up platform_editor_hide_toolbar_tooltips_fix experiment to hide dropdown
15
+ menu item tooltips on hover of the dropdown menu button
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies
20
+
3
21
  ## 12.0.5
4
22
 
5
23
  ### Patch Changes
@@ -11,7 +11,6 @@ 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");
15
14
  var _blockTypes = require("../../block-types");
16
15
  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); }
17
16
  var usePluginState = function usePluginState(api) {
@@ -59,25 +58,14 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
59
58
  size: "small"
60
59
  });
61
60
  }, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
62
- if ((0, _expValEquals.expValEquals)('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
63
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
64
- isDisabled: blockTypesDisabled,
65
- iconBefore: TriggerIcon,
66
- tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
67
- content: formatMessage(_messages.toolbarMessages.textStylesTooltip)
68
- }),
69
- label: formatMessage(_messages.toolbarMessages.textStyles, {
70
- blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
71
- })
72
- }, children);
73
- }
74
- return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
75
- content: formatMessage(_messages.toolbarMessages.textStylesTooltip)
76
- }, /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
61
+ return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownMenu, {
77
62
  isDisabled: blockTypesDisabled,
78
63
  iconBefore: TriggerIcon,
64
+ tooltipComponent: /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarTooltip, {
65
+ content: formatMessage(_messages.toolbarMessages.textStylesTooltip)
66
+ }),
79
67
  label: formatMessage(_messages.toolbarMessages.textStyles, {
80
68
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
81
69
  })
82
- }, children));
70
+ }, children);
83
71
  };
@@ -4,7 +4,6 @@ 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';
8
7
  import { toolbarBlockTypesWithRank } from '../../block-types';
9
8
  const usePluginState = api => {
10
9
  return useSharedPluginStateWithSelector(api, ['blockType'], state => {
@@ -53,25 +52,14 @@ export const TextStylesMenuButton = ({
53
52
  size: "small"
54
53
  });
55
54
  }, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
56
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
57
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
58
- isDisabled: blockTypesDisabled,
59
- iconBefore: TriggerIcon,
60
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
61
- content: formatMessage(toolbarMessages.textStylesTooltip)
62
- }),
63
- label: formatMessage(toolbarMessages.textStyles, {
64
- blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
65
- })
66
- }, children);
67
- }
68
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
69
- content: formatMessage(toolbarMessages.textStylesTooltip)
70
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
55
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
71
56
  isDisabled: blockTypesDisabled,
72
57
  iconBefore: TriggerIcon,
58
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
59
+ content: formatMessage(toolbarMessages.textStylesTooltip)
60
+ }),
73
61
  label: formatMessage(toolbarMessages.textStyles, {
74
62
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
75
63
  })
76
- }, children));
64
+ }, children);
77
65
  };
@@ -4,7 +4,6 @@ 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';
8
7
  import { toolbarBlockTypesWithRank } from '../../block-types';
9
8
  var usePluginState = function usePluginState(api) {
10
9
  return useSharedPluginStateWithSelector(api, ['blockType'], function (state) {
@@ -51,25 +50,14 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
51
50
  size: "small"
52
51
  });
53
52
  }, [editorAppearance, currentBlockType, CurrentIcon, normalText, formatMessage]);
54
- if (expValEquals('platform_editor_hide_toolbar_tooltips_fix', 'isEnabled', true)) {
55
- return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
56
- isDisabled: blockTypesDisabled,
57
- iconBefore: TriggerIcon,
58
- tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
59
- content: formatMessage(toolbarMessages.textStylesTooltip)
60
- }),
61
- label: formatMessage(toolbarMessages.textStyles, {
62
- blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
63
- })
64
- }, children);
65
- }
66
- return /*#__PURE__*/React.createElement(ToolbarTooltip, {
67
- content: formatMessage(toolbarMessages.textStylesTooltip)
68
- }, /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
53
+ return /*#__PURE__*/React.createElement(ToolbarDropdownMenu, {
69
54
  isDisabled: blockTypesDisabled,
70
55
  iconBefore: TriggerIcon,
56
+ tooltipComponent: /*#__PURE__*/React.createElement(ToolbarTooltip, {
57
+ content: formatMessage(toolbarMessages.textStylesTooltip)
58
+ }),
71
59
  label: formatMessage(toolbarMessages.textStyles, {
72
60
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
73
61
  })
74
- }, children));
62
+ }, children);
75
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "12.0.5",
3
+ "version": "12.1.1",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,27 +37,27 @@
37
37
  "@atlaskit/editor-plugin-primary-toolbar": "^9.0.0",
38
38
  "@atlaskit/editor-plugin-selection": "^8.0.0",
39
39
  "@atlaskit/editor-plugin-selection-toolbar": "^9.0.0",
40
- "@atlaskit/editor-plugin-toolbar": "^5.0.0",
40
+ "@atlaskit/editor-plugin-toolbar": "^5.1.0",
41
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
- "@atlaskit/editor-toolbar": "^0.19.0",
44
+ "@atlaskit/editor-toolbar": "^0.20.0",
45
45
  "@atlaskit/editor-toolbar-model": "^0.4.0",
46
- "@atlaskit/icon": "^32.1.0",
47
- "@atlaskit/icon-lab": "^5.18.0",
46
+ "@atlaskit/icon": "^33.0.0",
47
+ "@atlaskit/icon-lab": "^6.0.0",
48
48
  "@atlaskit/platform-feature-flags": "^1.1.0",
49
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": "^22.0.0",
53
- "@atlaskit/tmp-editor-statsig": "^39.0.0",
53
+ "@atlaskit/tmp-editor-statsig": "^40.2.0",
54
54
  "@atlaskit/tokens": "^11.1.0",
55
55
  "@babel/runtime": "^7.0.0",
56
56
  "@compiled/react": "^0.20.0",
57
57
  "@emotion/react": "^11.7.1"
58
58
  },
59
59
  "peerDependencies": {
60
- "@atlaskit/editor-common": "^112.3.0",
60
+ "@atlaskit/editor-common": "^112.4.0",
61
61
  "react": "^18.2.0",
62
62
  "react-dom": "^18.2.0",
63
63
  "react-intl-next": "npm:react-intl@^5.18.1"