@atlaskit/editor-plugin-block-type 22.0.9 → 22.0.11

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,19 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 22.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
8
+ Clean up feature gate `platform_editor_use_preferences_plugin`
9
+ - Updated dependencies
10
+
11
+ ## 22.0.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 22.0.9
4
18
 
5
19
  ### Patch Changes
@@ -149,7 +163,7 @@
149
163
  ### Patch Changes
150
164
 
151
165
  - [`2b9ae0b463256`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2b9ae0b463256) -
152
- Clean up feature gate `platform_editor_return_focus_after_text_styles`
166
+ Clean up feature gate `platform_editor_return_focus_after_text_styles_2`
153
167
  - Updated dependencies
154
168
 
155
169
  ## 21.0.0
@@ -378,7 +392,7 @@
378
392
  The Text styles dropdown now renders inline via `shouldRenderToParent`, which stops the popup
379
393
  focus-trap from returning focus to the trigger on close. `ToolbarDropdownMenu` gains an opt-in
380
394
  `shouldRenderToParent` prop so only the Text styles menu is affected. Gated behind the
381
- `platform_editor_return_focus_after_text_styles` feature flag.
395
+ `platform_editor_return_focus_after_text_styles_2` feature flag.
382
396
  - Updated dependencies
383
397
 
384
398
  ## 19.0.7
@@ -244,8 +244,8 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
244
244
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
245
245
  pluginsOptions: _objectSpread(_objectSpread({}, !isToolbarAIFCEnabled && {
246
246
  selectionToolbar: function selectionToolbar() {
247
- var _api$userPreferences, _api$selectionToolbar;
248
- var toolbarDocking = (0, _fg.fg)('platform_editor_use_preferences_plugin') ? api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition : api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking;
247
+ var _api$userPreferences;
248
+ var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
249
249
  if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
250
250
  exposure: true
251
251
  })) {
@@ -1,4 +1,4 @@
1
- /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -107,6 +107,6 @@ var TextStylesMenuButton = exports.TextStylesMenuButton = function TextStylesMen
107
107
  label: formatMessage(_messages.toolbarMessages.textStyles, {
108
108
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
109
109
  }),
110
- shouldRenderToParent: (0, _fg.fg)('platform_editor_return_focus_after_text_styles')
110
+ shouldRenderToParent: (0, _fg.fg)('platform_editor_return_focus_after_text_styles_2')
111
111
  }, children);
112
112
  };
@@ -1,4 +1,4 @@
1
- /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  "use strict";
3
3
 
4
4
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
@@ -234,8 +234,8 @@ const blockTypePlugin = ({
234
234
  pluginsOptions: {
235
235
  ...(!isToolbarAIFCEnabled && {
236
236
  selectionToolbar: () => {
237
- var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2, _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
238
- const toolbarDocking = fg('platform_editor_use_preferences_plugin') ? api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition : api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking;
237
+ var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
238
+ const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
239
239
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
240
240
  exposure: true
241
241
  })) {
@@ -1,4 +1,4 @@
1
- /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  var _editorUGCToken;
3
3
  import "./HeadingButton.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -93,6 +93,6 @@ export const TextStylesMenuButton = ({
93
93
  label: formatMessage(toolbarMessages.textStyles, {
94
94
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
95
95
  }),
96
- shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
96
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles_2')
97
97
  }, children);
98
98
  };
@@ -1,4 +1,4 @@
1
- /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./QuoteBlockMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
@@ -237,8 +237,8 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
237
237
  primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
238
238
  pluginsOptions: _objectSpread(_objectSpread({}, !isToolbarAIFCEnabled && {
239
239
  selectionToolbar: function selectionToolbar() {
240
- var _api$userPreferences, _api$selectionToolbar;
241
- var toolbarDocking = fg('platform_editor_use_preferences_plugin') ? api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition : api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking;
240
+ var _api$userPreferences;
241
+ var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
242
242
  if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
243
243
  exposure: true
244
244
  })) {
@@ -1,4 +1,4 @@
1
- /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* HeadingButton.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  var _editorUGCToken;
3
3
  import "./HeadingButton.compiled.css";
4
4
  import { ax, ix } from "@compiled/react/runtime";
@@ -99,6 +99,6 @@ export var TextStylesMenuButton = function TextStylesMenuButton(_ref) {
99
99
  label: formatMessage(toolbarMessages.textStyles, {
100
100
  blockTypeName: currentBlockType === null || currentBlockType === void 0 ? void 0 : currentBlockType.name
101
101
  }),
102
- shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles')
102
+ shouldRenderToParent: fg('platform_editor_return_focus_after_text_styles_2')
103
103
  }, children);
104
104
  };
@@ -1,4 +1,4 @@
1
- /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.1 */
1
+ /* QuoteBlockMenuItem.tsx generated by @compiled/babel-plugin v3.0.2 */
2
2
  import "./QuoteBlockMenuItem.compiled.css";
3
3
  import { ax, ix } from "@compiled/react/runtime";
4
4
  import React from 'react';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "22.0.9",
3
+ "version": "22.0.11",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
23
  "dependencies": {
24
- "@atlaskit/adf-schema": "^57.4.0",
24
+ "@atlaskit/adf-schema": "^57.5.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^18.0.0",
27
27
  "@atlaskit/editor-plugin-block-menu": "^17.0.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.2.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^197.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^198.0.0",
47
47
  "@atlaskit/tokens": "^17.0.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": "^122.8.0",
53
+ "@atlaskit/editor-common": "^122.11.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"
@@ -70,16 +70,13 @@
70
70
  "platform_editor_toolbar_responsive_fixes": {
71
71
  "type": "boolean"
72
72
  },
73
- "platform_editor_use_preferences_plugin": {
74
- "type": "boolean"
75
- },
76
73
  "platform_editor_markdown_compatible_toolbar": {
77
74
  "type": "boolean"
78
75
  },
79
76
  "platform_editor_adf_with_localid": {
80
77
  "type": "boolean"
81
78
  },
82
- "platform_editor_return_focus_after_text_styles": {
79
+ "platform_editor_return_focus_after_text_styles_2": {
83
80
  "type": "boolean"
84
81
  }
85
82
  }