@atlaskit/editor-plugin-block-type 22.0.10 → 22.0.12

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.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 22.0.11
10
+
11
+ ### Patch Changes
12
+
13
+ - [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
14
+ Clean up feature gate `platform_editor_use_preferences_plugin`
15
+ - Updated dependencies
16
+
3
17
  ## 22.0.10
4
18
 
5
19
  ### Patch Changes
@@ -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
  })) {
@@ -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
  })) {
@@ -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
  })) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "22.0.10",
3
+ "version": "22.0.12",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -25,7 +25,7 @@
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",
28
- "@atlaskit/editor-plugin-interaction": "^30.0.0",
28
+ "@atlaskit/editor-plugin-interaction": "^31.0.0",
29
29
  "@atlaskit/editor-plugin-list": "^20.0.0",
30
30
  "@atlaskit/editor-plugin-primary-toolbar": "^19.0.0",
31
31
  "@atlaskit/editor-plugin-selection": "^18.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": "^198.0.0",
47
- "@atlaskit/tokens": "^17.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^199.0.0",
47
+ "@atlaskit/tokens": "^18.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.10.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,9 +70,6 @@
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
  },