@atlaskit/editor-presets 10.0.4 → 10.0.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,15 @@
1
1
  # @atlaskit/editor-presets
2
2
 
3
+ ## 10.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0841b102bfe4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0841b102bfe4a) -
8
+ Add a PM-state-backed multi-location left block-controls surface and register the display-only
9
+ heading collapse button behind `platform_editor_block_control_migration` and
10
+ `platform_editor_collapsible_headings`.
11
+ - Updated dependencies
12
+
3
13
  ## 10.0.4
4
14
 
5
15
  ### Patch Changes
@@ -202,7 +202,7 @@ function confluenceFullPageBasePreset(props) {
202
202
  options: pluginOptions.typeAhead
203
203
  })]).add(_editorPluginHistory.historyPlugin).add([_editorPluginPrimaryToolbar.primaryToolbarPlugin, (0, _primaryToolbarPluginOptions.primaryToolbarPluginOptions)({
204
204
  options: pluginOptions.primaryToolbar
205
- })]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
205
+ })]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration')).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
206
206
  options: pluginOptions.toolbar
207
207
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([_editorPluginBlockMenu.blockMenuPlugin, (0, _blockMenuPluginOptions.blockMenuPluginOptions)({
208
208
  options: pluginOptions.blockMenu
@@ -279,7 +279,7 @@ function confluenceFullPageBasePreset(props) {
279
279
  })]).maybeAdd(
280
280
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
281
281
  // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
282
- _editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true) && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false))).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
282
+ _editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_paste_actions_menu', 'isEnabled', true) && !((0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _unsafeExpValNoExposure.UNSAFE_expValNoExposure)('platform_editor_slash_command', 'isEnabled', false) || (0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_block_control_migration'))).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
283
283
  options: pluginOptions.card,
284
284
  providers: providers
285
285
  })]).add([_editorPluginCustomAutoformat.customAutoformatPlugin, (0, _customAutoformatPluginOptions.customAutoformatPluginOptions)({
@@ -198,7 +198,7 @@ export function confluenceFullPageBasePreset(props) {
198
198
  options: pluginOptions.typeAhead
199
199
  })]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
200
200
  options: pluginOptions.primaryToolbar
201
- })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
201
+ })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false) || isExperimentEnabled('platform_editor_block_control_migration')).maybeAdd([toolbarPlugin, toolbarPluginOptions({
202
202
  options: pluginOptions.toolbar
203
203
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
204
204
  options: pluginOptions.blockMenu
@@ -275,7 +275,7 @@ export function confluenceFullPageBasePreset(props) {
275
275
  })]).maybeAdd(
276
276
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
277
277
  // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
278
- uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false))).add([cardPlugin, cardPluginOptions({
278
+ uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false) || isExperimentEnabled('platform_editor_block_control_migration'))).add([cardPlugin, cardPluginOptions({
279
279
  options: pluginOptions.card,
280
280
  providers
281
281
  })]).add([customAutoformatPlugin, customAutoformatPluginOptions({
@@ -196,7 +196,7 @@ export function confluenceFullPageBasePreset(props) {
196
196
  options: pluginOptions.typeAhead
197
197
  })]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
198
198
  options: pluginOptions.primaryToolbar
199
- })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
199
+ })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false) || isExperimentEnabled('platform_editor_block_control_migration')).maybeAdd([toolbarPlugin, toolbarPluginOptions({
200
200
  options: pluginOptions.toolbar
201
201
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
202
202
  options: pluginOptions.blockMenu
@@ -273,7 +273,7 @@ export function confluenceFullPageBasePreset(props) {
273
273
  })]).maybeAdd(
274
274
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
275
275
  // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
276
- uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false))).add([cardPlugin, cardPluginOptions({
276
+ uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_paste_actions_menu', 'isEnabled', true) && !(expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || UNSAFE_expValNoExposure('platform_editor_slash_command', 'isEnabled', false) || isExperimentEnabled('platform_editor_block_control_migration'))).add([cardPlugin, cardPluginOptions({
277
277
  options: pluginOptions.card,
278
278
  providers: providers
279
279
  })]).add([customAutoformatPlugin, customAutoformatPluginOptions({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "10.0.4",
3
+ "version": "10.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
6
6
  "publishConfig": {
@@ -122,7 +122,7 @@
122
122
  "@babel/runtime": "^7.0.0"
123
123
  },
124
124
  "peerDependencies": {
125
- "@atlaskit/editor-common": "^120.3.0",
125
+ "@atlaskit/editor-common": "^120.5.0",
126
126
  "react": "^18.2.0 || ^19.2.0",
127
127
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
128
128
  },