@atlaskit/editor-core 194.3.10 → 194.3.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,13 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 194.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#122063](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/122063)
8
+ [`c136e556d086d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c136e556d086d) -
9
+ [ux] Apply live page and check for live view in card and hyperlink plugin
10
+
3
11
  ## 194.3.10
4
12
 
5
13
  ### Patch Changes
@@ -59,15 +59,18 @@ function createDefaultPreset(options) {
59
59
  })]).add(_clipboard.clipboardPlugin).add(_focus.focusPlugin).add(_composition.compositionPlugin).add([_contextIdentifier.contextIdentifierPlugin, {
60
60
  contextIdentifierProvider: options.contextIdentifierProvider
61
61
  }]).add([_base.basePlugin, options.base]).add(_decorations.decorationsPlugin).add([_typeAhead.typeAheadPlugin, options.typeAhead]).maybeAdd(_history.historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(_primaryToolbar.primaryToolbarPlugin, function () {
62
- return !!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.primary-toolbar-ordering');
62
+ return !!(0, _platformFeatureFlags.fg)('platform.editor.primary-toolbar-ordering');
63
63
  }).maybeAdd(_undoRedo.undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([_blockType.blockTypePlugin, options.blockType]).add(_clearMarksOnEmptyDoc.clearMarksOnEmptyDocPlugin).maybeAdd([_selectionToolbar.selectionToolbarPlugin, {
64
64
  preferenceToolbarAboveSelection: false
65
65
  }], function () {
66
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.enable-selection-toolbar_ucdwd')) {
66
+ if ((0, _platformFeatureFlags.fg)('platform.editor.enable-selection-toolbar_ucdwd')) {
67
67
  return true;
68
68
  }
69
69
  return false;
70
- }).add([_hyperlink.hyperlinkPlugin, options.hyperlinkOptions]).add([_textFormatting.textFormattingPlugin, options.textFormatting]).add(_width.widthPlugin).add([_quickInsert.quickInsertPlugin, options.quickInsert]).add([_placeholder.placeholderPlugin, options.placeholder]).add(_unsupportedContent.unsupportedContentPlugin).add(_editorDisabled.editorDisabledPlugin).add([_submitEditor.submitEditorPlugin, options.submitEditor]).add(_copyButton.copyButtonPlugin).add(_floatingToolbar.floatingToolbarPlugin).add([_selection.selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
70
+ }).add([_hyperlink.hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
71
+ // @ts-ignore Temporary solution to check for Live Page editor.
72
+ __livePage: options.__livePage
73
+ })]).add([_textFormatting.textFormattingPlugin, options.textFormatting]).add(_width.widthPlugin).add([_quickInsert.quickInsertPlugin, options.quickInsert]).add([_placeholder.placeholderPlugin, options.placeholder]).add(_unsupportedContent.unsupportedContentPlugin).add(_editorDisabled.editorDisabledPlugin).add([_submitEditor.submitEditorPlugin, options.submitEditor]).add(_copyButton.copyButtonPlugin).add(_floatingToolbar.floatingToolbarPlugin).add([_selection.selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
71
74
  __livePage: options.__livePage
72
75
  })]).add([_codeBlock.codeBlockPlugin, options.codeBlock]);
73
76
  return preset;
@@ -189,7 +189,9 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
189
189
  fullWidthMode: appearance === 'full-width',
190
190
  linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
191
191
  lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
192
- editorAppearance: appearance
192
+ editorAppearance: appearance,
193
+ // @ts-ignore Temporary solution to check for Live Page editor.
194
+ __livePage: props.__livePage
193
195
  })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(_customAutoformat.customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([_status.statusPlugin, {
194
196
  menuDisabled: statusMenuDisabled,
195
197
  allowZeroWidthSpaceAfter: !isMobile
@@ -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 = "194.3.10";
8
+ var version = exports.version = "194.3.11";
@@ -30,7 +30,7 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
30
30
  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
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
33
+ import { fg } from '@atlaskit/platform-feature-flags';
34
34
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
35
35
  // #endregion
36
36
 
@@ -50,14 +50,18 @@ export function createDefaultPreset(options) {
50
50
  isFullPage
51
51
  }]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
52
52
  contextIdentifierProvider: options.contextIdentifierProvider
53
- }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!getBooleanFF('platform.editor.primary-toolbar-ordering')).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
53
+ }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, () => !!fg('platform.editor.primary-toolbar-ordering')).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
54
54
  preferenceToolbarAboveSelection: false
55
55
  }], () => {
56
- if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
56
+ if (fg('platform.editor.enable-selection-toolbar_ucdwd')) {
57
57
  return true;
58
58
  }
59
59
  return false;
60
- }).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
60
+ }).add([hyperlinkPlugin, {
61
+ ...options.hyperlinkOptions,
62
+ // @ts-ignore Temporary solution to check for Live Page editor.
63
+ __livePage: options.__livePage
64
+ }]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
61
65
  ...options.selection,
62
66
  __livePage: options.__livePage
63
67
  }]).add([codeBlockPlugin, options.codeBlock]);
@@ -184,7 +184,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
184
184
  fullWidthMode: appearance === 'full-width',
185
185
  linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
186
186
  lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
187
- editorAppearance: appearance
187
+ editorAppearance: appearance,
188
+ // @ts-ignore Temporary solution to check for Live Page editor.
189
+ __livePage: props.__livePage
188
190
  }], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
189
191
  menuDisabled: statusMenuDisabled,
190
192
  allowZeroWidthSpaceAfter: !isMobile
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "194.3.10";
2
+ export const version = "194.3.11";
@@ -33,7 +33,7 @@ import { typeAheadPlugin } from '@atlaskit/editor-plugins/type-ahead';
33
33
  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
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
36
+ import { fg } from '@atlaskit/platform-feature-flags';
37
37
  import { isFullPage as fullPageCheck } from '../utils/is-full-page';
38
38
  // #endregion
39
39
 
@@ -53,15 +53,18 @@ export function createDefaultPreset(options) {
53
53
  })]).add(clipboardPlugin).add(focusPlugin).add(compositionPlugin).add([contextIdentifierPlugin, {
54
54
  contextIdentifierProvider: options.contextIdentifierProvider
55
55
  }]).add([basePlugin, options.base]).add(decorationsPlugin).add([typeAheadPlugin, options.typeAhead]).maybeAdd(historyPlugin, Boolean(isMobile || options.allowUndoRedoButtons)).maybeAdd(primaryToolbarPlugin, function () {
56
- return !!getBooleanFF('platform.editor.primary-toolbar-ordering');
56
+ return !!fg('platform.editor.primary-toolbar-ordering');
57
57
  }).maybeAdd(undoRedoPlugin, Boolean((_options$featureFlags = (_options$featureFlags2 = options.featureFlags) === null || _options$featureFlags2 === void 0 ? void 0 : _options$featureFlags2.undoRedoButtons) !== null && _options$featureFlags !== void 0 ? _options$featureFlags : options.allowUndoRedoButtons)).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd([selectionToolbarPlugin, {
58
58
  preferenceToolbarAboveSelection: false
59
59
  }], function () {
60
- if (getBooleanFF('platform.editor.enable-selection-toolbar_ucdwd')) {
60
+ if (fg('platform.editor.enable-selection-toolbar_ucdwd')) {
61
61
  return true;
62
62
  }
63
63
  return false;
64
- }).add([hyperlinkPlugin, options.hyperlinkOptions]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
64
+ }).add([hyperlinkPlugin, _objectSpread(_objectSpread({}, options.hyperlinkOptions), {}, {
65
+ // @ts-ignore Temporary solution to check for Live Page editor.
66
+ __livePage: options.__livePage
67
+ })]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, _objectSpread(_objectSpread({}, options.selection), {}, {
65
68
  __livePage: options.__livePage
66
69
  })]).add([codeBlockPlugin, options.codeBlock]);
67
70
  return preset;
@@ -181,7 +181,9 @@ export default function createUniversalPreset(appearance, props, featureFlags, p
181
181
  fullWidthMode: appearance === 'full-width',
182
182
  linkPicker: (_props$linking2 = props.linking) === null || _props$linking2 === void 0 ? void 0 : _props$linking2.linkPicker,
183
183
  lpLinkPicker: (_featureFlags$lpLinkP2 = featureFlags.lpLinkPicker) !== null && _featureFlags$lpLinkP2 !== void 0 ? _featureFlags$lpLinkP2 : false,
184
- editorAppearance: appearance
184
+ editorAppearance: appearance,
185
+ // @ts-ignore Temporary solution to check for Live Page editor.
186
+ __livePage: props.__livePage
185
187
  })], Boolean(((_props$linking3 = props.linking) === null || _props$linking3 === void 0 ? void 0 : _props$linking3.smartLinks) || props.smartLinks || props.UNSAFE_cards)).maybeAdd(customAutoformatPlugin, Boolean(props.autoformattingProvider)).maybeAdd([statusPlugin, {
186
188
  menuDisabled: statusMenuDisabled,
187
189
  allowZeroWidthSpaceAfter: !isMobile
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "194.3.10";
2
+ export var version = "194.3.11";
@@ -3618,7 +3618,18 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
3618
3618
  }, undefined>>];
3619
3619
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3620
3620
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3621
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
3621
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3622
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3623
+ dependencies: [];
3624
+ pluginConfiguration?: {
3625
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3626
+ } | undefined;
3627
+ commands: {
3628
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3629
+ };
3630
+ }, {
3631
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3632
+ } | undefined>>];
3622
3633
  actions: {
3623
3634
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
3624
3635
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
@@ -854,7 +854,18 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
854
854
  }, undefined>>];
855
855
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
856
856
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
857
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
857
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
858
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
859
+ dependencies: [];
860
+ pluginConfiguration?: {
861
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
862
+ } | undefined;
863
+ commands: {
864
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
865
+ };
866
+ }, {
867
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
868
+ } | undefined>>];
858
869
  actions: {
859
870
  hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
860
871
  insertLink: import("@atlaskit/editor-plugins/hyperlink").InsertLink;
@@ -2539,7 +2550,18 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
2539
2550
  }, undefined>>];
2540
2551
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
2541
2552
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
2542
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
2553
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
2554
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
2555
+ dependencies: [];
2556
+ pluginConfiguration?: {
2557
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2558
+ } | undefined;
2559
+ commands: {
2560
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
2561
+ };
2562
+ }, {
2563
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
2564
+ } | undefined>>];
2543
2565
  actions: {
2544
2566
  hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
2545
2567
  insertLink: import("@atlaskit/editor-plugins/hyperlink").InsertLink;
@@ -3635,7 +3635,18 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
3635
3635
  }, undefined>>];
3636
3636
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
3637
3637
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3638
- }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>];
3638
+ }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3639
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3640
+ dependencies: [];
3641
+ pluginConfiguration?: {
3642
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3643
+ } | undefined;
3644
+ commands: {
3645
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3646
+ };
3647
+ }, {
3648
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3649
+ } | undefined>>];
3639
3650
  actions: {
3640
3651
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
3641
3652
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
@@ -3621,7 +3621,18 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
3621
3621
  }, undefined>>];
3622
3622
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3623
3623
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3624
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>];
3624
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
3625
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3626
+ dependencies: [];
3627
+ pluginConfiguration?: {
3628
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3629
+ } | undefined;
3630
+ commands: {
3631
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3632
+ };
3633
+ }, {
3634
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3635
+ } | undefined>>];
3625
3636
  actions: {
3626
3637
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
3627
3638
  insertLink: import("@atlaskit/editor-plugin-hyperlink").InsertLink;
@@ -4510,7 +4510,20 @@ export declare function createPreset(props: EditorProps, prevProps?: EditorProps
4510
4510
  ];
4511
4511
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4512
4512
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
4513
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>
4513
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
4514
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
4515
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
4516
+ dependencies: [
4517
+ ];
4518
+ pluginConfiguration?: {
4519
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4520
+ } | undefined;
4521
+ commands: {
4522
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
4523
+ };
4524
+ }, {
4525
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4526
+ } | undefined>>
4514
4527
  ];
4515
4528
  actions: {
4516
4529
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
@@ -1073,7 +1073,20 @@ export declare function createDefaultPreset(options: DefaultPresetPluginOptions)
1073
1073
  ];
1074
1074
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
1075
1075
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
1076
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>
1076
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
1077
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
1078
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
1079
+ dependencies: [
1080
+ ];
1081
+ pluginConfiguration?: {
1082
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1083
+ } | undefined;
1084
+ commands: {
1085
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
1086
+ };
1087
+ }, {
1088
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
1089
+ } | undefined>>
1077
1090
  ];
1078
1091
  actions: {
1079
1092
  hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
@@ -3174,7 +3187,20 @@ export declare function useDefaultPreset(props: DefaultPresetPluginOptions): Edi
3174
3187
  ];
3175
3188
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
3176
3189
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
3177
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>
3190
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
3191
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
3192
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
3193
+ dependencies: [
3194
+ ];
3195
+ pluginConfiguration?: {
3196
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3197
+ } | undefined;
3198
+ commands: {
3199
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
3200
+ };
3201
+ }, {
3202
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
3203
+ } | undefined>>
3178
3204
  ];
3179
3205
  actions: {
3180
3206
  hideLinkToolbar: import("@atlaskit/editor-plugins/hyperlink").HideLinkToolbar;
@@ -4527,7 +4527,20 @@ export default function createUniversalPreset(appearance: EditorAppearance | und
4527
4527
  ];
4528
4528
  sharedState: import("@atlaskit/editor-plugins/card").CardPluginState | null;
4529
4529
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
4530
- }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>
4530
+ }, import("@atlaskit/editor-plugins/card").CardPluginOptions>>,
4531
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorViewMode", {
4532
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
4533
+ dependencies: [
4534
+ ];
4535
+ pluginConfiguration?: {
4536
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4537
+ } | undefined;
4538
+ commands: {
4539
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
4540
+ };
4541
+ }, {
4542
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4543
+ } | undefined>>
4531
4544
  ];
4532
4545
  actions: {
4533
4546
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
@@ -4513,7 +4513,20 @@ export default function useUniversalPreset({ props }: PresetProps): import("@atl
4513
4513
  ];
4514
4514
  sharedState: import("@atlaskit/editor-plugin-card").CardPluginState | null;
4515
4515
  actions: import("@atlaskit/editor-common/card").CardPluginActions;
4516
- }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>
4516
+ }, import("@atlaskit/editor-plugin-card").CardPluginOptions>>,
4517
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugin-clear-marks-on-empty-doc").ClearMarksOnEmptyDocPlugin<"editorViewMode", {
4518
+ sharedState: import("@atlaskit/editor-plugin-editor-viewmode").EditorViewModePluginState | null;
4519
+ dependencies: [
4520
+ ];
4521
+ pluginConfiguration?: {
4522
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4523
+ } | undefined;
4524
+ commands: {
4525
+ updateViewMode: (mode: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode) => import("@atlaskit/editor-common/types").EditorCommand;
4526
+ };
4527
+ }, {
4528
+ mode?: import("@atlaskit/editor-plugin-editor-viewmode").ViewMode | undefined;
4529
+ } | undefined>>
4517
4530
  ];
4518
4531
  actions: {
4519
4532
  hideLinkToolbar: import("@atlaskit/editor-plugin-hyperlink").HideLinkToolbar;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "194.3.10",
3
+ "version": "194.3.11",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"