@atlaskit/editor-core 216.2.0 → 216.2.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,27 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 216.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`0bf8d0bd8bf2c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0bf8d0bd8bf2c) -
8
+ [ux] EDITOR-4276 Apply block selection visual style only from drag handle
9
+ - Updated dependencies
10
+
11
+ ## 216.2.2
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 216.2.1
18
+
19
+ ### Patch Changes
20
+
21
+ - [`60a80e1f0e1ab`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/60a80e1f0e1ab) -
22
+ [EDITOR-4213] Fix SSR renderer toolbar initial state
23
+ - Updated dependencies
24
+
3
25
  ## 216.2.0
4
26
 
5
27
  ### Minor Changes
@@ -809,6 +809,11 @@ function ReactEditorView(props) {
809
809
  "data-editor-id": editorId.current,
810
810
  onEditorStateChanged: function onEditorStateChanged(state) {
811
811
  ssrEditorStateRef.current = state;
812
+ // Notify listeners about the initial SSR state
813
+ pluginInjectionAPI.current.onEditorViewUpdated({
814
+ newEditorState: state,
815
+ oldEditorState: undefined
816
+ });
812
817
  }
813
818
  });
814
819
  }, [ssrDeps, props.intl, props.portalProviderAPI, assistiveLabel, assistiveDescribedBy]);
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.textSelectedNodeStyles = exports.listSelectedNodeStyles = exports.blocktypeStyles_without_fg_platform_editor_typography_ugc = exports.blocktypeStyles_fg_platform_editor_typography_ugc = exports.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = exports.blocktypeStyles = exports.blockquoteZeroPadding = exports.blockquoteSelectedNodeStyles = exports.blockquoteDangerStyles = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _react = require("@emotion/react");
10
+ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
11
12
 
12
13
  // This style is needed to avoid Confluence's batch.css overrides that expand blockquote with extra padding after SSR.
@@ -336,12 +337,8 @@ var blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = exports.block
336
337
  });
337
338
 
338
339
  // This class applies when the node is selected directly or is included in the selected range
339
- var isSelectedNode = '.ak-editor-selected-node';
340
+ var isSelectedNode = ".".concat(_editorSharedStyles.akEditorSelectedNodeClassName);
340
341
  var isOuterMostSelectedNode = "".concat(isSelectedNode, ":not(").concat(isSelectedNode, " *)");
341
-
342
- // This class applies when there is a node selection on this node directly
343
- var isOnlySelectedNode = '.ProseMirror-selectednode';
344
- var isOuterMostOnlySelectedNode = "".concat(isOnlySelectedNode, ":not(").concat(isOnlySelectedNode, " *)");
345
342
  var isList = ':is(ul, ol, div[data-node-type="actionList"])';
346
343
  var isOuterMostList = "".concat(isList, ":not(").concat(isList, " *)");
347
344
 
@@ -362,7 +359,7 @@ var isText = ":is(p, h1, h2, h3, h4, h5, h6)";
362
359
  var isRootText = "".concat(isText, ":not(").concat(isList, " ").concat(isText, ")");
363
360
 
364
361
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
365
- var textSelectedNodeStyles = exports.textSelectedNodeStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror ".concat(isRootText).concat(isOuterMostOnlySelectedNode), {
362
+ var textSelectedNodeStyles = exports.textSelectedNodeStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror ".concat(isRootText).concat(isOuterMostSelectedNode), {
366
363
  background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
367
364
  WebkitUserSelect: 'text',
368
365
  boxShadow: "0 -4px 0 ".concat("var(--ds-background-accent-blue-subtler, #CFE1FD)", ", 0 4px 0 ", "var(--ds-background-accent-blue-subtler, #CFE1FD)"),
@@ -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 = "0.0.0-development";
8
+ var version = exports.version = "216.2.2";
@@ -760,6 +760,11 @@ export function ReactEditorView(props) {
760
760
  "data-editor-id": editorId.current,
761
761
  onEditorStateChanged: state => {
762
762
  ssrEditorStateRef.current = state;
763
+ // Notify listeners about the initial SSR state
764
+ pluginInjectionAPI.current.onEditorViewUpdated({
765
+ newEditorState: state,
766
+ oldEditorState: undefined
767
+ });
763
768
  }
764
769
  });
765
770
  }, [ssrDeps, props.intl, props.portalProviderAPI, assistiveLabel, assistiveDescribedBy]);
@@ -1,5 +1,6 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
2
2
  import { css } from '@emotion/react';
3
+ import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
3
4
  // This style is needed to avoid Confluence's batch.css overrides that expand blockquote with extra padding after SSR.
4
5
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
5
6
  export const blockquoteZeroPadding = css({
@@ -327,12 +328,8 @@ export const blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = css(
327
328
  });
328
329
 
329
330
  // This class applies when the node is selected directly or is included in the selected range
330
- const isSelectedNode = '.ak-editor-selected-node';
331
+ const isSelectedNode = `.${akEditorSelectedNodeClassName}`;
331
332
  const isOuterMostSelectedNode = `${isSelectedNode}:not(${isSelectedNode} *)`;
332
-
333
- // This class applies when there is a node selection on this node directly
334
- const isOnlySelectedNode = '.ProseMirror-selectednode';
335
- const isOuterMostOnlySelectedNode = `${isOnlySelectedNode}:not(${isOnlySelectedNode} *)`;
336
333
  const isList = ':is(ul, ol, div[data-node-type="actionList"])';
337
334
  const isOuterMostList = `${isList}:not(${isList} *)`;
338
335
 
@@ -359,7 +356,7 @@ const isRootText = `${isText}:not(${isList} ${isText})`;
359
356
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
360
357
  export const textSelectedNodeStyles = css({
361
358
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values
362
- [`.ProseMirror ${isRootText}${isOuterMostOnlySelectedNode}`]: {
359
+ [`.ProseMirror ${isRootText}${isOuterMostSelectedNode}`]: {
363
360
  background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
364
361
  WebkitUserSelect: 'text',
365
362
  boxShadow: `0 -4px 0 ${"var(--ds-background-accent-blue-subtler, #CFE1FD)"}, 0 4px 0 ${"var(--ds-background-accent-blue-subtler, #CFE1FD)"}`,
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "0.0.0-development";
2
+ export const version = "216.2.2";
@@ -800,6 +800,11 @@ export function ReactEditorView(props) {
800
800
  "data-editor-id": editorId.current,
801
801
  onEditorStateChanged: function onEditorStateChanged(state) {
802
802
  ssrEditorStateRef.current = state;
803
+ // Notify listeners about the initial SSR state
804
+ pluginInjectionAPI.current.onEditorViewUpdated({
805
+ newEditorState: state,
806
+ oldEditorState: undefined
807
+ });
803
808
  }
804
809
  });
805
810
  }, [ssrDeps, props.intl, props.portalProviderAPI, assistiveLabel, assistiveDescribedBy]);
@@ -1,6 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
3
3
  import { css } from '@emotion/react';
4
+ import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
4
5
  // This style is needed to avoid Confluence's batch.css overrides that expand blockquote with extra padding after SSR.
5
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
6
7
  export var blockquoteZeroPadding = css({
@@ -328,12 +329,8 @@ export var blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes = css({
328
329
  });
329
330
 
330
331
  // This class applies when the node is selected directly or is included in the selected range
331
- var isSelectedNode = '.ak-editor-selected-node';
332
+ var isSelectedNode = ".".concat(akEditorSelectedNodeClassName);
332
333
  var isOuterMostSelectedNode = "".concat(isSelectedNode, ":not(").concat(isSelectedNode, " *)");
333
-
334
- // This class applies when there is a node selection on this node directly
335
- var isOnlySelectedNode = '.ProseMirror-selectednode';
336
- var isOuterMostOnlySelectedNode = "".concat(isOnlySelectedNode, ":not(").concat(isOnlySelectedNode, " *)");
337
334
  var isList = ':is(ul, ol, div[data-node-type="actionList"])';
338
335
  var isOuterMostList = "".concat(isList, ":not(").concat(isList, " *)");
339
336
 
@@ -354,7 +351,7 @@ var isText = ":is(p, h1, h2, h3, h4, h5, h6)";
354
351
  var isRootText = "".concat(isText, ":not(").concat(isList, " ").concat(isText, ")");
355
352
 
356
353
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
357
- export var textSelectedNodeStyles = css(_defineProperty({}, ".ProseMirror ".concat(isRootText).concat(isOuterMostOnlySelectedNode), {
354
+ export var textSelectedNodeStyles = css(_defineProperty({}, ".ProseMirror ".concat(isRootText).concat(isOuterMostSelectedNode), {
358
355
  background: "var(--ds-background-accent-blue-subtler, #CFE1FD)",
359
356
  WebkitUserSelect: 'text',
360
357
  boxShadow: "0 -4px 0 ".concat("var(--ds-background-accent-blue-subtler, #CFE1FD)", ", 0 4px 0 ", "var(--ds-background-accent-blue-subtler, #CFE1FD)"),
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "0.0.0-development";
2
+ export var version = "216.2.2";
@@ -410,9 +410,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
410
410
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
411
411
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
412
412
  commands: {
413
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
413
414
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
414
415
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
415
416
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
417
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
416
418
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
417
419
  };
418
420
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -436,9 +438,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
436
438
  }, import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
437
439
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
438
440
  commands: {
441
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
439
442
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
440
443
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
441
444
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
445
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
442
446
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
443
447
  };
444
448
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -483,9 +483,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
483
483
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
484
484
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
485
485
  commands: {
486
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
486
487
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
487
488
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
488
489
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
490
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
489
491
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
490
492
  };
491
493
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -509,9 +511,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
509
511
  }, import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
510
512
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
511
513
  commands: {
514
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
512
515
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
513
516
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
514
517
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
518
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
515
519
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
516
520
  };
517
521
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -410,9 +410,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
410
410
  }, import("@atlaskit/editor-plugins/block-menu").BlockMenuPluginOptions | undefined>>, import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
411
411
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
412
412
  commands: {
413
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
413
414
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
414
415
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
415
416
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
417
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
416
418
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
417
419
  };
418
420
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -436,9 +438,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
436
438
  }, import("@atlaskit/editor-plugins/code-block").CodeBlockPluginOptions | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
437
439
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
438
440
  commands: {
441
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
439
442
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
440
443
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
441
444
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
445
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
442
446
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
443
447
  };
444
448
  dependencies: [import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-plugins/interaction").InteractionPlugin>];
@@ -582,9 +582,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
582
582
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
583
583
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
584
584
  commands: {
585
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
585
586
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
586
587
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
587
588
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
589
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
588
590
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
589
591
  };
590
592
  dependencies: [
@@ -620,9 +622,11 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
620
622
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
621
623
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
622
624
  commands: {
625
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
623
626
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
624
627
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
625
628
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
629
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
626
630
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
627
631
  };
628
632
  dependencies: [
@@ -655,9 +655,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
655
655
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
656
656
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
657
657
  commands: {
658
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
658
659
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
659
660
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
660
661
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
662
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
661
663
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
662
664
  };
663
665
  dependencies: [
@@ -693,9 +695,11 @@ export default function createUniversalPresetInternal({ appearance, props, featu
693
695
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
694
696
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
695
697
  commands: {
698
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
696
699
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
697
700
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
698
701
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
702
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
699
703
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
700
704
  };
701
705
  dependencies: [
@@ -582,9 +582,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
582
582
  import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
583
583
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
584
584
  commands: {
585
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
585
586
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
586
587
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
587
588
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
589
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
588
590
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
589
591
  };
590
592
  dependencies: [
@@ -620,9 +622,11 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
620
622
  import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"selection", {
621
623
  actions: import("@atlaskit/editor-plugins/selection").EditorSelectionAPI;
622
624
  commands: {
625
+ clearBlockSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
623
626
  clearManualSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
624
627
  displayGapCursor: (toggle: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
625
628
  hideCursor: (hide: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
629
+ setBlockSelection: (selection: import("prosemirror-state").Selection) => import("@atlaskit/editor-common/types").EditorCommand;
626
630
  setManualSelection: (anchor: number, head: number) => import("@atlaskit/editor-common/types").EditorCommand;
627
631
  };
628
632
  dependencies: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "216.2.0",
3
+ "version": "216.2.3",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,18 +55,18 @@
55
55
  "@atlaskit/editor-prosemirror": "^7.2.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.10.0",
57
57
  "@atlaskit/editor-ssr-renderer": "^2.0.0",
58
- "@atlaskit/editor-toolbar": "^0.18.0",
58
+ "@atlaskit/editor-toolbar": "^0.19.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.2.0",
60
- "@atlaskit/emoji": "^69.9.0",
60
+ "@atlaskit/emoji": "^69.10.0",
61
61
  "@atlaskit/icon": "^29.4.0",
62
62
  "@atlaskit/link": "^3.3.0",
63
- "@atlaskit/media-card": "^79.12.0",
63
+ "@atlaskit/media-card": "^79.13.0",
64
64
  "@atlaskit/mention": "^24.4.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
67
67
  "@atlaskit/react-ufo": "^4.16.0",
68
68
  "@atlaskit/task-decision": "^19.2.0",
69
- "@atlaskit/tmp-editor-statsig": "^16.8.0",
69
+ "@atlaskit/tmp-editor-statsig": "^16.11.0",
70
70
  "@atlaskit/tokens": "^9.1.0",
71
71
  "@atlaskit/tooltip": "^20.12.0",
72
72
  "@atlaskit/width-detector": "^5.0.0",
@@ -83,7 +83,7 @@
83
83
  "uuid": "^3.1.0"
84
84
  },
85
85
  "peerDependencies": {
86
- "@atlaskit/editor-common": "^111.6.0",
86
+ "@atlaskit/editor-common": "^111.7.0",
87
87
  "@atlaskit/link-provider": "^4.1.0",
88
88
  "@atlaskit/media-core": "^37.0.0",
89
89
  "react": "^18.2.0",
@@ -108,10 +108,10 @@
108
108
  "@atlaskit/media-test-helpers": "^39.0.0",
109
109
  "@atlaskit/modal-dialog": "^14.9.0",
110
110
  "@atlaskit/renderer": "^125.2.0",
111
- "@atlaskit/section-message": "^8.11.0",
111
+ "@atlaskit/section-message": "^8.12.0",
112
112
  "@atlaskit/synchrony-test-helpers": "workspace:^",
113
113
  "@atlaskit/toggle": "^15.2.0",
114
- "@atlaskit/util-data-test": "^18.3.0",
114
+ "@atlaskit/util-data-test": "^18.4.0",
115
115
  "@atlassian/adf-schema-json": "^1.33.0",
116
116
  "@atlassian/feature-flags-test-utils": "^1.0.0",
117
117
  "@atlassian/search-provider": "^8.0.0",