@atlaskit/editor-plugin-block-type 28.0.1 → 28.0.2

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,14 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 28.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3902a8eba8344`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3902a8eba8344) -
8
+ Clean up feature gate `platform_editor_return_focus_after_text_styles_2`. Size inline-rendered
9
+ toolbar dropdown menus to their content so Text styles items no longer wrap.
10
+ - Updated dependencies
11
+
3
12
  ## 28.0.1
4
13
 
5
14
  ### 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 _fg = require("@atlaskit/platform-feature-flags/fg");
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 selectPluginState = function selectPluginState(state) {
@@ -69,6 +68,6 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
69
68
  label: formatMessage(_messages.toolbarMessages.textStyles, {
70
69
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
71
70
  }),
72
- shouldRenderToParent: (0, _fg.fg)('platform_editor_return_focus_after_text_styles_2')
71
+ shouldRenderToParent: true
73
72
  }, children);
74
73
  };
@@ -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 { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { toolbarBlockTypesWithRank } from '../../block-types';
9
8
  const selectPluginState = state => {
10
9
  var _state$blockTypeState, _state$blockTypeState2;
@@ -61,6 +60,6 @@ export const TextStylesMenuButton = ({
61
60
  label: formatMessage(toolbarMessages.textStyles, {
62
61
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
63
62
  }),
64
- shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles_2')
63
+ shouldRenderToParent: true
65
64
  }, children);
66
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 { fg } from '@atlaskit/platform-feature-flags/fg';
8
7
  import { toolbarBlockTypesWithRank } from '../../block-types';
9
8
  var selectPluginState = function selectPluginState(state) {
10
9
  var _state$blockTypeState, _state$blockTypeState2;
@@ -61,6 +60,6 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
61
60
  label: formatMessage(toolbarMessages.textStyles, {
62
61
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
63
62
  }),
64
- shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles_2')
63
+ shouldRenderToParent: true
65
64
  }, children);
66
65
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "28.0.1",
3
+ "version": "28.0.2",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.3.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^221.0.0",
47
- "@atlaskit/tokens": "^20.1.0",
46
+ "@atlaskit/tmp-editor-statsig": "^222.0.0",
47
+ "@atlaskit/tokens": "^20.3.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^128.1.0",
53
+ "@atlaskit/editor-common": "^128.3.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -69,9 +69,6 @@
69
69
  },
70
70
  "platform_editor_adf_with_localid": {
71
71
  "type": "boolean"
72
- },
73
- "platform_editor_return_focus_after_text_styles_2": {
74
- "type": "boolean"
75
72
  }
76
73
  }
77
74
  }