@atlaskit/editor-core 209.6.1 → 209.6.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-core
2
2
 
3
+ ## 209.6.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`b601133ff4b93`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b601133ff4b93) -
8
+ [ux] Adds margin top for embeds on narrow screens.
9
+
10
+ ## 209.6.2
11
+
12
+ ### Patch Changes
13
+
14
+ - [`b396b0bd2ed68`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b396b0bd2ed68) -
15
+ Cleanup code for ensuring the viewmode value is as expected.
16
+
3
17
  ## 209.6.1
4
18
 
5
19
  ### Patch Changes
@@ -434,6 +434,12 @@ function ReactEditorView(props) {
434
434
  };
435
435
  }, [_dispatchTransaction, disabled, getCurrentEditorState]);
436
436
  var createEditorView = (0, _react.useCallback)(function (node) {
437
+ // Creates the editor-view from this.editorState. If an editor has been mounted
438
+ // previously, this will contain the previous state of the editor.
439
+ var view = new _view.EditorView({
440
+ mount: node
441
+ }, getDirectEditorProps());
442
+ viewRef.current = view;
437
443
  (0, _measureRender.measureRender)(_measureEnum.default.PROSEMIRROR_RENDERED, function (_ref3) {
438
444
  var duration = _ref3.duration,
439
445
  startTime = _ref3.startTime,
@@ -460,13 +466,6 @@ function ReactEditorView(props) {
460
466
  });
461
467
  }
462
468
  });
463
-
464
- // Creates the editor-view from this.editorState. If an editor has been mounted
465
- // previously, this will contain the previous state of the editor.
466
- var view = new _view.EditorView({
467
- mount: node
468
- }, getDirectEditorProps());
469
- viewRef.current = view;
470
469
  pluginInjectionAPI.current.onEditorViewUpdated({
471
470
  newEditorState: viewRef.current.state,
472
471
  oldEditorState: undefined
@@ -230,7 +230,9 @@ _selectionStyles.boxShadowSelectionStyles]), '&.danger', {
230
230
  }));
231
231
 
232
232
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
233
- var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), (0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
233
+ var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = exports.smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = (0, _react.css)((0, _defineProperty2.default)({}, "@container editor-area (max-width: ".concat(_editorSharedStyles.akEditorFullPageNarrowBreakout, "px)"), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), {
234
+ marginTop: "var(--ds-space-150, 0.75rem)"
235
+ }), ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
234
236
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
235
237
  [
236
238
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -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 = "209.6.0";
8
+ var version = exports.version = "209.6.2";
@@ -403,6 +403,12 @@ export function ReactEditorView(props) {
403
403
  };
404
404
  }, [dispatchTransaction, disabled, getCurrentEditorState]);
405
405
  const createEditorView = useCallback(node => {
406
+ // Creates the editor-view from this.editorState. If an editor has been mounted
407
+ // previously, this will contain the previous state of the editor.
408
+ const view = new EditorView({
409
+ mount: node
410
+ }, getDirectEditorProps());
411
+ viewRef.current = view;
406
412
  measureRender(measurements.PROSEMIRROR_RENDERED, ({
407
413
  duration,
408
414
  startTime,
@@ -430,13 +436,6 @@ export function ReactEditorView(props) {
430
436
  });
431
437
  }
432
438
  });
433
-
434
- // Creates the editor-view from this.editorState. If an editor has been mounted
435
- // previously, this will contain the previous state of the editor.
436
- const view = new EditorView({
437
- mount: node
438
- }, getDirectEditorProps());
439
- viewRef.current = view;
440
439
  pluginInjectionAPI.current.onEditorViewUpdated({
441
440
  newEditorState: viewRef.current.state,
442
441
  oldEditorState: undefined
@@ -327,6 +327,10 @@ export const smartCardStylesWithSearchMatch = css({
327
327
  export const smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css({
328
328
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-container-queries, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
329
329
  [`@container editor-area (max-width: ${akEditorFullPageNarrowBreakout}px)`]: {
330
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-nested-selectors
331
+ [`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}`]: {
332
+ marginTop: "var(--ds-space-150, 0.75rem)"
333
+ },
330
334
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
331
335
  [`.${SmartCardSharedCssClassName.EMBED_CARD_CONTAINER}.ak-editor-selected-node .${SmartCardSharedCssClassName.LOADER_WRAPPER} > div`]:
332
336
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "209.6.0";
2
+ export const version = "209.6.2";
@@ -424,6 +424,12 @@ export function ReactEditorView(props) {
424
424
  };
425
425
  }, [_dispatchTransaction, disabled, getCurrentEditorState]);
426
426
  var createEditorView = useCallback(function (node) {
427
+ // Creates the editor-view from this.editorState. If an editor has been mounted
428
+ // previously, this will contain the previous state of the editor.
429
+ var view = new EditorView({
430
+ mount: node
431
+ }, getDirectEditorProps());
432
+ viewRef.current = view;
427
433
  measureRender(measurements.PROSEMIRROR_RENDERED, function (_ref3) {
428
434
  var duration = _ref3.duration,
429
435
  startTime = _ref3.startTime,
@@ -450,13 +456,6 @@ export function ReactEditorView(props) {
450
456
  });
451
457
  }
452
458
  });
453
-
454
- // Creates the editor-view from this.editorState. If an editor has been mounted
455
- // previously, this will contain the previous state of the editor.
456
- var view = new EditorView({
457
- mount: node
458
- }, getDirectEditorProps());
459
- viewRef.current = view;
460
459
  pluginInjectionAPI.current.onEditorViewUpdated({
461
460
  newEditorState: viewRef.current.state,
462
461
  oldEditorState: undefined
@@ -222,7 +222,9 @@ boxShadowSelectionStyles]), '&.danger', {
222
222
  }));
223
223
 
224
224
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
225
- export var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), _defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
225
+ export var smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness = css(_defineProperty({}, "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)"), _defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), {
226
+ marginTop: "var(--ds-space-150, 0.75rem)"
227
+ }), ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, ".ak-editor-selected-node .").concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div"),
226
228
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
227
229
  [
228
230
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "209.6.0";
2
+ export var version = "209.6.2";
@@ -120,7 +120,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
120
120
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
121
121
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
122
122
  actions: {
123
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
123
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
124
124
  };
125
125
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
126
126
  sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
@@ -844,7 +844,35 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
844
844
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
845
845
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
846
846
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
847
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>];
847
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
848
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
849
+ sharedState: {
850
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
851
+ } | undefined;
852
+ commands: {
853
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
854
+ };
855
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
856
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
857
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
858
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
859
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
860
+ commands: {
861
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
862
+ };
863
+ }, undefined>>];
864
+ commands: {
865
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
866
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
867
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
868
+ };
869
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
870
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
871
+ actions: {
872
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
873
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
874
+ };
875
+ }, undefined>>];
848
876
  commands: {
849
877
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
850
878
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -171,7 +171,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
171
171
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
172
172
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
173
173
  actions: {
174
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
174
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
175
175
  };
176
176
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
177
177
  sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
@@ -895,7 +895,35 @@ export default function createUniversalPresetInternal({ appearance, props, featu
895
895
  }, FeatureFlags>>];
896
896
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
897
897
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
898
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>];
898
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
899
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
900
+ sharedState: {
901
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
902
+ } | undefined;
903
+ commands: {
904
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
905
+ };
906
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
907
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
908
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
909
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
910
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
911
+ commands: {
912
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
913
+ };
914
+ }, undefined>>];
915
+ commands: {
916
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
917
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
918
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
919
+ };
920
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
921
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
922
+ actions: {
923
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
924
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
925
+ };
926
+ }, undefined>>];
899
927
  commands: {
900
928
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
901
929
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -120,7 +120,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
120
120
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
121
121
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
122
122
  actions: {
123
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
123
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
124
124
  };
125
125
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
126
126
  sharedState: import("@atlaskit/editor-plugins/max-content-size").MaxContentSizePluginState | undefined;
@@ -844,7 +844,35 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
844
844
  }, import("@atlaskit/editor-common/types").FeatureFlags>>];
845
845
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
846
846
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>];
847
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>];
847
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
848
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
849
+ sharedState: {
850
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
851
+ } | undefined;
852
+ commands: {
853
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
854
+ };
855
+ }, undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
856
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
857
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
858
+ dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
859
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
860
+ commands: {
861
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
862
+ };
863
+ }, undefined>>];
864
+ commands: {
865
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
866
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
867
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
868
+ };
869
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
870
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>];
871
+ actions: {
872
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
873
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
874
+ };
875
+ }, undefined>>];
848
876
  commands: {
849
877
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
850
878
  toggleSubscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -223,7 +223,7 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
223
223
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
224
224
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
225
225
  actions: {
226
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
226
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
227
227
  };
228
228
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
229
229
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
@@ -1091,7 +1091,41 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
1091
1091
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1092
1092
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
1093
1093
  ];
1094
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>
1094
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
1095
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
1096
+ dependencies: [
1097
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
1098
+ sharedState: {
1099
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
1100
+ } | undefined;
1101
+ commands: {
1102
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
1103
+ };
1104
+ }, undefined>>,
1105
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1106
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
1107
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
1108
+ dependencies: [
1109
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1110
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1111
+ commands: {
1112
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1113
+ };
1114
+ }, undefined>>
1115
+ ];
1116
+ commands: {
1117
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1118
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
1119
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
1120
+ };
1121
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1122
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
1123
+ ];
1124
+ actions: {
1125
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
1126
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
1127
+ };
1128
+ }, undefined>>
1095
1129
  ];
1096
1130
  commands: {
1097
1131
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -274,7 +274,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
274
274
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
275
275
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
276
276
  actions: {
277
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
277
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
278
278
  };
279
279
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
280
280
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
@@ -1142,7 +1142,41 @@ export default function createUniversalPresetInternal({ appearance, props, featu
1142
1142
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1143
1143
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
1144
1144
  ];
1145
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>
1145
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
1146
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
1147
+ dependencies: [
1148
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
1149
+ sharedState: {
1150
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
1151
+ } | undefined;
1152
+ commands: {
1153
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
1154
+ };
1155
+ }, undefined>>,
1156
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1157
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
1158
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
1159
+ dependencies: [
1160
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1161
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1162
+ commands: {
1163
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1164
+ };
1165
+ }, undefined>>
1166
+ ];
1167
+ commands: {
1168
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1169
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
1170
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
1171
+ };
1172
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1173
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
1174
+ ];
1175
+ actions: {
1176
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
1177
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
1178
+ };
1179
+ }, undefined>>
1146
1180
  ];
1147
1181
  commands: {
1148
1182
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
@@ -223,7 +223,7 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
223
223
  pluginConfiguration: import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined;
224
224
  dependencies: import("@atlaskit/editor-plugins/panel").PanelPluginDependencies;
225
225
  actions: {
226
- insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD) => import("@atlaskit/editor-common/types").Command;
226
+ insertPanel: (inputMethod: import("@atlaskit/editor-common/analytics").INPUT_METHOD.INSERT_MENU | import("@atlaskit/editor-common/analytics").INPUT_METHOD.QUICK_INSERT | import("@atlaskit/editor-common/analytics").INPUT_METHOD.TOOLBAR) => import("@atlaskit/editor-common/types").Command;
227
227
  };
228
228
  }, import("@atlaskit/editor-plugins/panel").PanelPluginOptions | undefined> | undefined,
229
229
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"maxContentSize", {
@@ -1091,7 +1091,41 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
1091
1091
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
1092
1092
  }, import("@atlaskit/editor-plugins/analytics").AnalyticsPluginOptions>>
1093
1093
  ];
1094
- }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>
1094
+ }, import("@atlaskit/editor-plugin-user-preferences").UserPreferencesPluginOptions>>,
1095
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"toolbar", {
1096
+ dependencies: [
1097
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"userIntent", {
1098
+ sharedState: {
1099
+ currentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent;
1100
+ } | undefined;
1101
+ commands: {
1102
+ setCurrentUserIntent: (newCurrentUserIntent: import("@atlaskit/editor-plugins/user-intent").UserIntent) => import("@atlaskit/editor-common/types").EditorCommand;
1103
+ };
1104
+ }, undefined>>,
1105
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
1106
+ pluginConfiguration: import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined;
1107
+ actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
1108
+ dependencies: [
1109
+ import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"interaction", {
1110
+ sharedState: import("@atlaskit/editor-plugins/interaction").SharedInteractionState;
1111
+ commands: {
1112
+ handleInteraction: import("@atlaskit/editor-common/types").EditorCommand;
1113
+ };
1114
+ }, undefined>>
1115
+ ];
1116
+ commands: {
1117
+ displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
1118
+ clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
1119
+ setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
1120
+ };
1121
+ sharedState: import("@atlaskit/editor-common/selection").SelectionSharedState;
1122
+ }, import("@atlaskit/editor-plugins/selection").SelectionPluginOptions | undefined>>
1123
+ ];
1124
+ actions: {
1125
+ registerComponents: (toolbarComponents: import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[]) => void;
1126
+ getComponents: () => import("packages/editor/editor-toolbar-model/dist/types").RegisterComponent[];
1127
+ };
1128
+ }, undefined>>
1095
1129
  ];
1096
1130
  commands: {
1097
1131
  toggleSuperscript: import("@atlaskit/editor-plugins/text-formatting").ToggleMarkEditorCommand;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "209.6.1",
3
+ "version": "209.6.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -53,15 +53,15 @@
53
53
  "@atlaskit/editor-prosemirror": "7.0.0",
54
54
  "@atlaskit/editor-shared-styles": "^3.5.0",
55
55
  "@atlaskit/emoji": "^69.3.0",
56
- "@atlaskit/icon": "^27.9.0",
56
+ "@atlaskit/icon": "^27.10.0",
57
57
  "@atlaskit/link": "^3.2.0",
58
- "@atlaskit/media-card": "^79.4.0",
58
+ "@atlaskit/media-card": "^79.5.0",
59
59
  "@atlaskit/mention": "^24.2.0",
60
60
  "@atlaskit/platform-feature-flags": "^1.1.0",
61
61
  "@atlaskit/platform-feature-flags-react": "^0.2.0",
62
- "@atlaskit/react-ufo": "^4.1.0",
62
+ "@atlaskit/react-ufo": "^4.2.0",
63
63
  "@atlaskit/task-decision": "^19.2.0",
64
- "@atlaskit/tmp-editor-statsig": "^9.24.0",
64
+ "@atlaskit/tmp-editor-statsig": "^9.25.0",
65
65
  "@atlaskit/tokens": "^6.0.0",
66
66
  "@atlaskit/tooltip": "^20.4.0",
67
67
  "@atlaskit/width-detector": "^5.0.0",
@@ -78,7 +78,7 @@
78
78
  "uuid": "^3.1.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "@atlaskit/editor-common": "^107.17.0",
81
+ "@atlaskit/editor-common": "^107.18.0",
82
82
  "@atlaskit/link-provider": "^3.4.0",
83
83
  "@atlaskit/media-core": "^37.0.0",
84
84
  "react": "^18.2.0",
@@ -90,8 +90,8 @@
90
90
  "@af/visual-regression": "workspace:^",
91
91
  "@atlaskit/adf-utils": "^19.20.0",
92
92
  "@atlaskit/analytics-listeners": "^9.0.0",
93
- "@atlaskit/collab-provider": "^11.1.0",
94
- "@atlaskit/editor-plugin-annotation": "^3.1.0",
93
+ "@atlaskit/collab-provider": "^11.2.0",
94
+ "@atlaskit/editor-plugin-annotation": "^3.2.0",
95
95
  "@atlaskit/editor-plugin-card": "^7.2.0",
96
96
  "@atlaskit/editor-plugin-list": "^5.1.0",
97
97
  "@atlaskit/editor-plugin-paste": "^4.1.0",
@@ -126,7 +126,6 @@
126
126
  "raf-stub": "^2.0.1",
127
127
  "react": "^18.2.0",
128
128
  "react-intl-next": "npm:react-intl@^5.18.1",
129
- "typescript": "~5.4.2",
130
129
  "url-search-params": "^0.10.0"
131
130
  },
132
131
  "techstack": {