@atlaskit/editor-presets 6.1.1 → 6.1.3

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-presets
2
2
 
3
+ ## 6.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4bc741a70d678`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4bc741a70d678) -
14
+ Add the first registry-backed Quick Insert slice with Table
15
+ - Updated dependencies
16
+
3
17
  ## 6.1.1
4
18
 
5
19
  ### Patch Changes
@@ -300,6 +300,9 @@
300
300
  {
301
301
  "path": "../../editor-plugin-width/afm-cc/tsconfig.json"
302
302
  },
303
+ {
304
+ "path": "../../../platform/feature-experiments/afm-cc/tsconfig.json"
305
+ },
303
306
  {
304
307
  "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
305
308
  },
@@ -98,6 +98,7 @@ var _editorPluginUnsupportedContent = require("@atlaskit/editor-plugin-unsupport
98
98
  var _editorPluginUserIntent = require("@atlaskit/editor-plugin-user-intent");
99
99
  var _editorPluginUserPreferences = require("@atlaskit/editor-plugin-user-preferences");
100
100
  var _editorPluginWidth = require("@atlaskit/editor-plugin-width");
101
+ var _unsafeExpValNoExposure = require("@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure");
101
102
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
102
103
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
103
104
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
@@ -204,7 +205,7 @@ function confluenceFullPageBasePreset(props) {
204
205
  options: pluginOptions.typeAhead
205
206
  })]).add(_editorPluginHistory.historyPlugin).add([_editorPluginPrimaryToolbar.primaryToolbarPlugin, (0, _primaryToolbarPluginOptions.primaryToolbarPluginOptions)({
206
207
  options: pluginOptions.primaryToolbar
207
- })]).maybeAdd(_editorPluginUiControlRegistry.uiControlRegistryPlugin, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_table_menu_updates', 'isEnabled', true) || (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([_editorPluginToolbar.toolbarPlugin, (0, _toolbarPluginOptions.toolbarPluginOptions)({
208
+ })]).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)({
208
209
  options: pluginOptions.toolbar
209
210
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([_editorPluginBlockMenu.blockMenuPlugin, (0, _blockMenuPluginOptions.blockMenuPluginOptions)({
210
211
  options: pluginOptions.blockMenu
@@ -280,8 +281,8 @@ function confluenceFullPageBasePreset(props) {
280
281
  options: pluginOptions.layout
281
282
  })]).maybeAdd(
282
283
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
283
- // @ts-expect-error - Preserve paste registry order; mutually exclusive with layout insertion.
284
- _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))).add([_editorPluginCard.cardPlugin, (0, _cardPluginOptions.cardPluginOptions)({
284
+ // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
285
+ _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)({
285
286
  options: pluginOptions.card,
286
287
  providers: providers
287
288
  })]).add([_editorPluginCustomAutoformat.customAutoformatPlugin, (0, _customAutoformatPluginOptions.customAutoformatPluginOptions)({
@@ -92,6 +92,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
92
92
  import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
93
93
  import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
94
94
  import { widthPlugin } from '@atlaskit/editor-plugin-width';
95
+ import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
95
96
  import { fg } from '@atlaskit/platform-feature-flags';
96
97
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
97
98
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -200,7 +201,7 @@ export function confluenceFullPageBasePreset(props) {
200
201
  options: pluginOptions.typeAhead
201
202
  })]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
202
203
  options: pluginOptions.primaryToolbar
203
- })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
204
+ })]).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({
204
205
  options: pluginOptions.toolbar
205
206
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
206
207
  options: pluginOptions.blockMenu
@@ -276,8 +277,8 @@ export function confluenceFullPageBasePreset(props) {
276
277
  options: pluginOptions.layout
277
278
  })]).maybeAdd(
278
279
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
279
- // @ts-expect-error - Preserve paste registry order; mutually exclusive with layout insertion.
280
- 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))).add([cardPlugin, cardPluginOptions({
280
+ // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
281
+ 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({
281
282
  options: pluginOptions.card,
282
283
  providers
283
284
  })]).add([customAutoformatPlugin, customAutoformatPluginOptions({
@@ -92,6 +92,7 @@ import { unsupportedContentPlugin } from '@atlaskit/editor-plugin-unsupported-co
92
92
  import { userIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
93
93
  import { userPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
94
94
  import { widthPlugin } from '@atlaskit/editor-plugin-width';
95
+ import { UNSAFE_expValNoExposure } from '@atlaskit/platform-feature-experiments/unsafe-exp-val-no-exposure';
95
96
  import { fg } from '@atlaskit/platform-feature-flags';
96
97
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
97
98
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -198,7 +199,7 @@ export function confluenceFullPageBasePreset(props) {
198
199
  options: pluginOptions.typeAhead
199
200
  })]).add(historyPlugin).add([primaryToolbarPlugin, primaryToolbarPluginOptions({
200
201
  options: pluginOptions.primaryToolbar
201
- })]).maybeAdd(uiControlRegistryPlugin, expValEqualsNoExposure('platform_editor_table_menu_updates', 'isEnabled', true) || expValEqualsNoExposure('platform_editor_layout_column_menu', 'isEnabled', true)).maybeAdd([toolbarPlugin, toolbarPluginOptions({
202
+ })]).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({
202
203
  options: pluginOptions.toolbar
203
204
  })], Boolean(enabledOptionalPlugins.toolbar)).maybeAdd([blockMenuPlugin, blockMenuPluginOptions({
204
205
  options: pluginOptions.blockMenu
@@ -274,8 +275,8 @@ export function confluenceFullPageBasePreset(props) {
274
275
  options: pluginOptions.layout
275
276
  })]).maybeAdd(
276
277
  // Register uiControlRegistry before cardPlugin so card can register paste menu components at init.
277
- // @ts-expect-error - Preserve paste registry order; mutually exclusive with layout 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))).add([cardPlugin, cardPluginOptions({
278
+ // @ts-expect-error - Preserve paste registry order; mutually exclusive with earlier insertion.
279
+ 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({
279
280
  options: pluginOptions.card,
280
281
  providers: providers
281
282
  })]).add([customAutoformatPlugin, customAutoformatPluginOptions({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-presets",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
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": {
@@ -20,7 +20,7 @@
20
20
  "sideEffects": false,
21
21
  "atlaskit:src": "src/index.ts",
22
22
  "dependencies": {
23
- "@atlaskit/adf-schema": "^56.4.0",
23
+ "@atlaskit/adf-schema": "^56.5.0",
24
24
  "@atlaskit/editor-plugin-accessibility-utils": "^12.1.0",
25
25
  "@atlaskit/editor-plugin-alignment": "^13.1.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^12.1.0",
@@ -35,13 +35,13 @@
35
35
  "@atlaskit/editor-plugin-border": "^12.1.0",
36
36
  "@atlaskit/editor-plugin-breakout": "^12.4.0",
37
37
  "@atlaskit/editor-plugin-caption": "^12.1.0",
38
- "@atlaskit/editor-plugin-card": "^18.3.0",
38
+ "@atlaskit/editor-plugin-card": "^18.4.0",
39
39
  "@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^12.1.0",
40
40
  "@atlaskit/editor-plugin-clipboard": "^12.1.0",
41
41
  "@atlaskit/editor-plugin-code-bidi-warning": "^12.1.0",
42
42
  "@atlaskit/editor-plugin-code-block": "^14.3.0",
43
43
  "@atlaskit/editor-plugin-code-block-advanced": "^12.2.0",
44
- "@atlaskit/editor-plugin-collab-edit": "^13.3.0",
44
+ "@atlaskit/editor-plugin-collab-edit": "^13.4.0",
45
45
  "@atlaskit/editor-plugin-composition": "^11.0.0",
46
46
  "@atlaskit/editor-plugin-connectivity": "^12.1.0",
47
47
  "@atlaskit/editor-plugin-content-format": "^6.1.0",
@@ -99,7 +99,7 @@
99
99
  "@atlaskit/editor-plugin-status": "^13.2.0",
100
100
  "@atlaskit/editor-plugin-submit-editor": "^12.1.0",
101
101
  "@atlaskit/editor-plugin-synced-block": "^10.8.0",
102
- "@atlaskit/editor-plugin-table": "^24.5.0",
102
+ "@atlaskit/editor-plugin-table": "^24.6.0",
103
103
  "@atlaskit/editor-plugin-tasks-and-decisions": "^15.3.0",
104
104
  "@atlaskit/editor-plugin-text-color": "^12.4.0",
105
105
  "@atlaskit/editor-plugin-text-formatting": "^12.1.0",
@@ -114,14 +114,15 @@
114
114
  "@atlaskit/editor-plugin-user-intent": "^10.2.0",
115
115
  "@atlaskit/editor-plugin-user-preferences": "^10.1.0",
116
116
  "@atlaskit/editor-plugin-width": "^13.1.0",
117
+ "@atlaskit/platform-feature-experiments": "^0.3.0",
117
118
  "@atlaskit/platform-feature-flags": "^2.1.0",
118
- "@atlaskit/tmp-editor-statsig": "^136.0.0",
119
+ "@atlaskit/tmp-editor-statsig": "^137.0.0",
119
120
  "@atlassian/ari": "^2.596.0",
120
121
  "@atlassian/editor-plugin-agent-managed-extension": "^2.13.0",
121
122
  "@babel/runtime": "^7.0.0"
122
123
  },
123
124
  "peerDependencies": {
124
- "@atlaskit/editor-common": "^116.48.0",
125
+ "@atlaskit/editor-common": "^116.51.0",
125
126
  "react": "^18.2.0 || ^19.2.0",
126
127
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
127
128
  },