@atlaskit/editor-core 203.16.0 → 203.16.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,20 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 203.16.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 203.16.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#112757](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/112757)
14
+ [`16ea3fd7c7417`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/16ea3fd7c7417) -
15
+ Added account and browser locale attributes to the editor started event
16
+ - Updated dependencies
17
+
3
18
  ## 203.16.0
4
19
 
5
20
  ### Minor Changes
@@ -252,6 +252,7 @@ function ReactEditorView(props) {
252
252
  // Initialise phase
253
253
  // Using constructor hook so we setup and dispatch analytics before anything else
254
254
  (0, _hooks.useConstructor)(function () {
255
+ var _props$intl;
255
256
  // This needs to be before initialising editorState because
256
257
  // we dispatch analytics events in plugin initialisation
257
258
  eventDispatcher.on(_analytics2.analyticsEventKey, handleAnalyticsEvent);
@@ -261,7 +262,9 @@ function ReactEditorView(props) {
261
262
  actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
262
263
  attributes: {
263
264
  platform: _analytics.PLATFORMS.WEB,
264
- featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : []
265
+ featureFlags: featureFlags ? (0, _normalizeFeatureFlags.getEnabledFeatureFlagKeys)(featureFlags) : [],
266
+ accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
267
+ browserLocale: window.navigator.language
265
268
  },
266
269
  eventType: _analytics.EVENT_TYPE.UI
267
270
  });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "203.16.0";
8
+ var version = exports.version = "203.16.2";
@@ -226,6 +226,7 @@ export function ReactEditorView(props) {
226
226
  // Initialise phase
227
227
  // Using constructor hook so we setup and dispatch analytics before anything else
228
228
  useConstructor(() => {
229
+ var _props$intl;
229
230
  // This needs to be before initialising editorState because
230
231
  // we dispatch analytics events in plugin initialisation
231
232
  eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
@@ -235,7 +236,9 @@ export function ReactEditorView(props) {
235
236
  actionSubject: ACTION_SUBJECT.EDITOR,
236
237
  attributes: {
237
238
  platform: PLATFORMS.WEB,
238
- featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
239
+ featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : [],
240
+ accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
241
+ browserLocale: window.navigator.language
239
242
  },
240
243
  eventType: EVENT_TYPE.UI
241
244
  });
@@ -0,0 +1 @@
1
+ export {};
@@ -31,6 +31,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
31
31
  import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
32
32
  import { widthPlugin } from '@atlaskit/editor-plugins/width';
33
33
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
34
+
34
35
  // #endregion
35
36
 
36
37
  /**
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "203.16.0";
2
+ export const version = "203.16.2";
@@ -241,6 +241,7 @@ export function ReactEditorView(props) {
241
241
  // Initialise phase
242
242
  // Using constructor hook so we setup and dispatch analytics before anything else
243
243
  useConstructor(function () {
244
+ var _props$intl;
244
245
  // This needs to be before initialising editorState because
245
246
  // we dispatch analytics events in plugin initialisation
246
247
  eventDispatcher.on(analyticsEventKey, handleAnalyticsEvent);
@@ -250,7 +251,9 @@ export function ReactEditorView(props) {
250
251
  actionSubject: ACTION_SUBJECT.EDITOR,
251
252
  attributes: {
252
253
  platform: PLATFORMS.WEB,
253
- featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : []
254
+ featureFlags: featureFlags ? getEnabledFeatureFlagKeys(featureFlags) : [],
255
+ accountLocale: (_props$intl = props.intl) === null || _props$intl === void 0 ? void 0 : _props$intl.locale,
256
+ browserLocale: window.navigator.language
254
257
  },
255
258
  eventType: EVENT_TYPE.UI
256
259
  });
@@ -0,0 +1 @@
1
+ export {};
@@ -34,6 +34,7 @@ import { undoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
34
34
  import { unsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
35
35
  import { widthPlugin } from '@atlaskit/editor-plugins/width';
36
36
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
37
+
37
38
  // #endregion
38
39
 
39
40
  /**
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "203.16.0";
2
+ export var version = "203.16.2";
@@ -5,7 +5,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
5
5
  props: EditorProps;
6
6
  prevProps?: EditorProps;
7
7
  initialPluginConfiguration?: InitialPluginConfiguration;
8
- }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", import("@atlaskit/editor-common/preset").MaybePluginName<"undoRedoPlugin">, "primaryToolbar", import("@atlaskit/editor-common/preset").MaybePluginName<"history">, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", import("@atlaskit/editor-common/preset").MaybePluginName<"analytics">, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
8
+ }): import("@atlaskit/editor-common/preset").EditorPresetBuilder<["codeBidiWarning", "pasteOptionsToolbarPlugin", import("@atlaskit/editor-common/preset").MaybePluginName<"fragmentPlugin">, import("@atlaskit/editor-common/preset").MaybePluginName<"border">, import("@atlaskit/editor-common/preset").MaybePluginName<"findReplace">, "avatarGroup", import("@atlaskit/editor-common/preset").MaybePluginName<"beforePrimaryToolbar">, "insertBlock", "toolbarListsIndentation", import("@atlaskit/editor-common/preset").MaybePluginName<"scrollIntoView">, import("@atlaskit/editor-common/preset").MaybePluginName<"indentation">, import("@atlaskit/editor-common/preset").MaybePluginName<"status">, import("@atlaskit/editor-common/preset").MaybePluginName<"customAutoformat">, import("@atlaskit/editor-common/preset").MaybePluginName<"card">, import("@atlaskit/editor-common/preset").MaybePluginName<"layout">, import("@atlaskit/editor-common/preset").MaybePluginName<"placeholderText">, import("@atlaskit/editor-common/preset").MaybePluginName<"date">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"extension">, import("@atlaskit/editor-common/preset").MaybePluginName<"contextPanel">, import("@atlaskit/editor-common/preset").MaybePluginName<"panel">, import("@atlaskit/editor-common/preset").MaybePluginName<"maxContentSize">, import("@atlaskit/editor-common/preset").MaybePluginName<"collabEdit">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"imageUpload">, import("@atlaskit/editor-common/preset").MaybePluginName<"saveOnEnter">, import("@atlaskit/editor-common/preset").MaybePluginName<"helpDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"feedbackDialog">, import("@atlaskit/editor-common/preset").MaybePluginName<"taskDecision">, import("@atlaskit/editor-common/preset").MaybePluginName<"table">, import("@atlaskit/editor-common/preset").MaybePluginName<"emoji">, import("@atlaskit/editor-common/preset").MaybePluginName<"mention">, import("@atlaskit/editor-common/preset").MaybePluginName<"caption">, import("@atlaskit/editor-common/preset").MaybePluginName<"mediaInsert">, import("@atlaskit/editor-common/preset").MaybePluginName<"media">, import("@atlaskit/editor-common/preset").MaybePluginName<"annotation">, import("@atlaskit/editor-common/preset").MaybePluginName<"grid">, import("@atlaskit/editor-common/preset").MaybePluginName<"guideline">, import("@atlaskit/editor-common/preset").MaybePluginName<"expand">, import("@atlaskit/editor-common/preset").MaybePluginName<"rule">, "list", import("@atlaskit/editor-common/preset").MaybePluginName<"textColor">, import("@atlaskit/editor-common/preset").MaybePluginName<"alignment">, import("@atlaskit/editor-common/preset").MaybePluginName<"breakout">, "batchAttributeUpdates", "contentInsertion", "accessibilityUtils", "dataConsumer", "ufo", "codeBlock", "selection", "floatingToolbar", "copyButton", "submitEditor", "editorDisabled", "unsupportedContent", "placeholder", "quickInsert", "width", "textFormatting", "hyperlink", "selectionToolbar", "clearMarksOnEmptyDoc", "blockType", string, "primaryToolbar", string, "typeAhead", "decorations", "base", "contextIdentifier", "composition", "focus", "clipboard", "paste", "betterTypeHistory", string, "featureFlags"], [import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"codeBidiWarning", {
9
9
  pluginConfiguration: {
10
10
  appearance?: import("@atlaskit/editor-common/types").EditorAppearance | undefined;
11
11
  } | undefined;
@@ -376,6 +376,8 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
376
376
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
377
377
  commands: {
378
378
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
379
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
380
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
379
381
  };
380
382
  sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
381
383
  }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"floatingToolbar", {
@@ -433,8 +435,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
433
435
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
434
436
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
435
437
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
436
- sharedState: {
437
- mode: "offline" | "online";
438
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
439
+ commands: {
440
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
438
441
  };
439
442
  }, undefined>>];
440
443
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
@@ -485,8 +488,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
485
488
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
486
489
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
487
490
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
488
- sharedState: {
489
- mode: "offline" | "online";
491
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
492
+ commands: {
493
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
490
494
  };
491
495
  }, undefined>>];
492
496
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
@@ -517,8 +521,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
517
521
  }) => (tr: import("prosemirror-state").Transaction) => boolean;
518
522
  };
519
523
  }, import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginOptions | undefined>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
520
- sharedState: {
521
- mode: "offline" | "online";
524
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
525
+ commands: {
526
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
522
527
  };
523
528
  }, undefined>>];
524
529
  sharedState: import("@atlaskit/editor-plugin-quick-insert").QuickInsertSharedState | null;
@@ -664,8 +669,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
664
669
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
665
670
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
666
671
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
667
- sharedState: {
668
- mode: "offline" | "online";
672
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
673
+ commands: {
674
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
669
675
  };
670
676
  }, undefined>>];
671
677
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
@@ -734,8 +740,9 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
734
740
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
735
741
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
736
742
  }, import("@atlaskit/editor-common/types").FeatureFlags>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"connectivity", {
737
- sharedState: {
738
- mode: "offline" | "online";
743
+ sharedState: import("packages/editor/editor-plugin-connectivity/dist/types/connectivityPluginType").PublicPluginState;
744
+ commands: {
745
+ setMode: (mode: import("@atlaskit/editor-plugins/connectivity").Mode | null) => import("@atlaskit/editor-common/types").EditorCommand;
739
746
  };
740
747
  }, undefined>>];
741
748
  sharedState: import("@atlaskit/editor-plugins/type-ahead").TypeAheadPluginSharedState;
@@ -0,0 +1,67 @@
1
+ import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
2
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
3
+ import type { AnalyticsPlugin } from '@atlaskit/editor-plugins/analytics';
4
+ import type { BasePlugin } from '@atlaskit/editor-plugins/base';
5
+ import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugins/better-type-history';
6
+ import type { BlockTypePlugin } from '@atlaskit/editor-plugins/block-type';
7
+ import type { ClearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugins/clear-marks-on-empty-doc';
8
+ import type { ClipboardPlugin } from '@atlaskit/editor-plugins/clipboard';
9
+ import type { CodeBlockPlugin } from '@atlaskit/editor-plugins/code-block';
10
+ import type { CompositionPlugin } from '@atlaskit/editor-plugins/composition';
11
+ import type { ContextIdentifierPlugin } from '@atlaskit/editor-plugins/context-identifier';
12
+ import type { CopyButtonPlugin } from '@atlaskit/editor-plugins/copy-button';
13
+ import type { DecorationsPlugin } from '@atlaskit/editor-plugins/decorations';
14
+ import type { EditorDisabledPlugin } from '@atlaskit/editor-plugins/editor-disabled';
15
+ import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugins/feature-flags';
16
+ import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugins/floating-toolbar';
17
+ import type { FocusPlugin } from '@atlaskit/editor-plugins/focus';
18
+ import type { HistoryPlugin } from '@atlaskit/editor-plugins/history';
19
+ import type { HyperlinkPlugin } from '@atlaskit/editor-plugins/hyperlink';
20
+ import type { PastePlugin } from '@atlaskit/editor-plugins/paste';
21
+ import type { PlaceholderPlugin } from '@atlaskit/editor-plugins/placeholder';
22
+ import type { PrimaryToolbarPlugin } from '@atlaskit/editor-plugins/primary-toolbar';
23
+ import type { QuickInsertPlugin } from '@atlaskit/editor-plugins/quick-insert';
24
+ import type { SelectionPlugin } from '@atlaskit/editor-plugins/selection';
25
+ import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugins/selection-toolbar';
26
+ import type { SubmitEditorPlugin } from '@atlaskit/editor-plugins/submit-editor';
27
+ import type { TextFormattingPlugin } from '@atlaskit/editor-plugins/text-formatting';
28
+ import type { TypeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
29
+ import type { UndoRedoPlugin } from '@atlaskit/editor-plugins/undo-redo';
30
+ import type { UnsupportedContentPlugin } from '@atlaskit/editor-plugins/unsupported-content';
31
+ import type { WidthPlugin } from '@atlaskit/editor-plugins/width';
32
+ type ExtractPluginName<Plugin> = Plugin extends NextEditorPlugin<infer PluginName, any> | undefined ? PluginName : never;
33
+ export type DefaultPresetPlugins = [
34
+ CodeBlockPlugin,
35
+ SelectionPlugin,
36
+ FloatingToolbarPlugin,
37
+ CopyButtonPlugin,
38
+ SubmitEditorPlugin,
39
+ EditorDisabledPlugin,
40
+ UnsupportedContentPlugin,
41
+ PlaceholderPlugin,
42
+ QuickInsertPlugin,
43
+ WidthPlugin,
44
+ TextFormattingPlugin,
45
+ HyperlinkPlugin,
46
+ SelectionToolbarPlugin,
47
+ ClearMarksOnEmptyDocPlugin,
48
+ BlockTypePlugin,
49
+ UndoRedoPlugin | undefined,
50
+ PrimaryToolbarPlugin,
51
+ HistoryPlugin | undefined,
52
+ TypeAheadPlugin,
53
+ DecorationsPlugin,
54
+ BasePlugin,
55
+ ContextIdentifierPlugin,
56
+ CompositionPlugin,
57
+ FocusPlugin,
58
+ ClipboardPlugin,
59
+ PastePlugin,
60
+ BetterTypeHistoryPlugin,
61
+ AnalyticsPlugin | undefined,
62
+ FeatureFlagsPlugin
63
+ ];
64
+ type ExtractPluginNames<PluginList extends (NextEditorPlugin<any, any> | undefined)[]> = PluginList extends [infer Head, ...infer Tail] ? Tail extends (NextEditorPlugin<any, any> | undefined)[] ? [ExtractPluginName<Head>, ...ExtractPluginNames<Tail>] : [] : [];
65
+ type DefaultPresetPluginNames = ExtractPluginNames<DefaultPresetPlugins>;
66
+ export type DefaultPresetBuilder = EditorPresetBuilder<DefaultPresetPluginNames, DefaultPresetPlugins>;
67
+ export {};