@atlaskit/editor-core 217.9.3 → 217.10.1

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/cjs/composable-editor/editor-internal.js +5 -5
  3. package/dist/cjs/create-editor/ReactEditorView.js +32 -8
  4. package/dist/cjs/create-editor/create-schema.js +1 -1
  5. package/dist/cjs/ui/Appearance/Chromeless.js +9 -6
  6. package/dist/cjs/ui/Appearance/Comment/Comment.js +26 -14
  7. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +10 -7
  8. package/dist/cjs/ui/ContextPanel/index.js +9 -6
  9. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  10. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  11. package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -5
  12. package/dist/cjs/ui/Toolbar/Toolbar.js +26 -17
  13. package/dist/cjs/version-wrapper.js +1 -1
  14. package/dist/es2019/composable-editor/editor-internal.js +5 -5
  15. package/dist/es2019/create-editor/ReactEditorView.js +30 -8
  16. package/dist/es2019/create-editor/create-schema.js +1 -1
  17. package/dist/es2019/ui/Appearance/Chromeless.js +7 -4
  18. package/dist/es2019/ui/Appearance/Comment/Comment.js +24 -14
  19. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +1 -3
  20. package/dist/es2019/ui/ContextPanel/index.js +7 -4
  21. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  22. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  23. package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -5
  24. package/dist/es2019/ui/Toolbar/Toolbar.js +21 -16
  25. package/dist/es2019/version-wrapper.js +1 -1
  26. package/dist/esm/composable-editor/editor-internal.js +5 -5
  27. package/dist/esm/create-editor/ReactEditorView.js +32 -8
  28. package/dist/esm/create-editor/create-schema.js +1 -1
  29. package/dist/esm/ui/Appearance/Chromeless.js +9 -6
  30. package/dist/esm/ui/Appearance/Comment/Comment.js +26 -14
  31. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +3 -6
  32. package/dist/esm/ui/ContextPanel/index.js +9 -6
  33. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +1 -1
  34. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  35. package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -5
  36. package/dist/esm/ui/Toolbar/Toolbar.js +23 -16
  37. package/dist/esm/version-wrapper.js +1 -1
  38. package/dist/types/create-editor/create-schema.d.ts +1 -1
  39. package/dist/types/create-editor/create-universal-preset.d.ts +6 -0
  40. package/dist/types/presets/universal.d.ts +7 -4
  41. package/dist/types/presets/useUniversalPreset.d.ts +6 -0
  42. package/dist/types/ui/Appearance/Chromeless.d.ts +1 -0
  43. package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
  44. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -0
  45. package/dist/types-ts4.5/presets/universal.d.ts +7 -4
  46. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -0
  47. package/dist/types-ts4.5/ui/Appearance/Chromeless.d.ts +1 -0
  48. package/package.json +4 -7
@@ -361,6 +361,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
361
361
  unregisterNodeDecoration: (type: string) => void;
362
362
  };
363
363
  commands: {
364
+ expandAndUpdateSelection: (options: {
365
+ isShiftPressed: boolean;
366
+ nodeType: string;
367
+ selection: import("prosemirror-state").Selection;
368
+ startPos: number;
369
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
364
370
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
365
371
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
366
372
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -445,6 +445,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
445
445
  unregisterNodeDecoration: (type: string) => void;
446
446
  };
447
447
  commands: {
448
+ expandAndUpdateSelection: (options: {
449
+ isShiftPressed: boolean;
450
+ nodeType: string;
451
+ selection: import("prosemirror-state").Selection;
452
+ startPos: number;
453
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
448
454
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
449
455
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
450
456
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -457,10 +463,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
457
463
  setMultiSelectPositions: (anchor?: number, head?: number) => import("@atlaskit/editor-common/types").EditorCommand;
458
464
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
459
465
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
460
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number, rootAnchorName?: string, rootNodeType? /**
461
- * Allows configuring plugins as the universal preset blocks direct access
462
- * to configuring plugins.
463
- */: string) => import("@atlaskit/editor-common/types").EditorCommand;
466
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number, rootAnchorName?: string, rootNodeType?: string) => import("@atlaskit/editor-common/types").EditorCommand;
464
467
  startPreservingSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
465
468
  stopPreservingSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
466
469
  toggleBlockMenu: (options?: {
@@ -361,6 +361,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
361
361
  unregisterNodeDecoration: (type: string) => void;
362
362
  };
363
363
  commands: {
364
+ expandAndUpdateSelection: (options: {
365
+ isShiftPressed: boolean;
366
+ nodeType: string;
367
+ selection: import("prosemirror-state").Selection;
368
+ startPos: number;
369
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
364
370
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
365
371
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
366
372
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -20,6 +20,7 @@ export default class Editor extends React.Component<AppearanceProps> {
20
20
  static displayName: string;
21
21
  private appearance;
22
22
  private containerElement;
23
+ private setContainerElement;
23
24
  private renderChrome;
24
25
  render(): jsx.JSX.Element;
25
26
  }
@@ -8,7 +8,7 @@ type toDOMType = (node: PMNode | PMMark) => DOMOutputSpec;
8
8
  * Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
9
9
  * This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
10
10
  *
11
- * @param {Object} params - Parameters object.
11
+ * @param {object} params - Parameters object.
12
12
  * @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
13
13
  * @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
14
14
  * @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
@@ -521,6 +521,12 @@ export declare function createUniversalPreset({ props, prevProps, initialPluginC
521
521
  unregisterNodeDecoration: (type: string) => void;
522
522
  };
523
523
  commands: {
524
+ expandAndUpdateSelection: (options: {
525
+ isShiftPressed: boolean;
526
+ nodeType: string;
527
+ selection: import("prosemirror-state").Selection;
528
+ startPos: number;
529
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
524
530
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
525
531
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
526
532
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -605,6 +605,12 @@ export default function createUniversalPresetInternal({ appearance, props, featu
605
605
  unregisterNodeDecoration: (type: string) => void;
606
606
  };
607
607
  commands: {
608
+ expandAndUpdateSelection: (options: {
609
+ isShiftPressed: boolean;
610
+ nodeType: string;
611
+ selection: import("prosemirror-state").Selection;
612
+ startPos: number;
613
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
608
614
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
609
615
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
610
616
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -617,10 +623,7 @@ export default function createUniversalPresetInternal({ appearance, props, featu
617
623
  setMultiSelectPositions: (anchor?: number, head?: number) => import("@atlaskit/editor-common/types").EditorCommand;
618
624
  setNodeDragged: (getPos: () => number | undefined, anchorName: string, nodeType: string) => import("@atlaskit/editor-common/types").EditorCommand;
619
625
  setSelectedViaDragHandle: (isSelectedViaDragHandle?: boolean) => import("@atlaskit/editor-common/types").EditorCommand;
620
- showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number, rootAnchorName?: string, rootNodeType? /**
621
- * Allows configuring plugins as the universal preset blocks direct access
622
- * to configuring plugins.
623
- */: string) => import("@atlaskit/editor-common/types").EditorCommand;
626
+ showDragHandleAt: (pos: number, anchorName: string, nodeType: string, handleOptions?: import("@atlaskit/editor-plugins/block-controls").HandleOptions, rootPos?: number, rootAnchorName?: string, rootNodeType?: string) => import("@atlaskit/editor-common/types").EditorCommand;
624
627
  startPreservingSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
625
628
  stopPreservingSelection: () => import("@atlaskit/editor-common/types").EditorCommand;
626
629
  toggleBlockMenu: (options?: {
@@ -521,6 +521,12 @@ export default function useUniversalPreset({ props, initialPluginConfiguration }
521
521
  unregisterNodeDecoration: (type: string) => void;
522
522
  };
523
523
  commands: {
524
+ expandAndUpdateSelection: (options: {
525
+ isShiftPressed: boolean;
526
+ nodeType: string;
527
+ selection: import("prosemirror-state").Selection;
528
+ startPos: number;
529
+ }) => import("@atlaskit/editor-common/types").EditorCommand;
524
530
  handleKeyDownWithPreservedSelection: (event: KeyboardEvent) => import("@atlaskit/editor-common/types").EditorCommand;
525
531
  mapPreservedSelection: (mapping: import("prosemirror-transform").Mapping) => import("@atlaskit/editor-common/types").EditorCommand;
526
532
  moveNode: import("@atlaskit/editor-plugins/block-controls").MoveNode;
@@ -20,6 +20,7 @@ export default class Editor extends React.Component<AppearanceProps> {
20
20
  static displayName: string;
21
21
  private appearance;
22
22
  private containerElement;
23
+ private setContainerElement;
23
24
  private renderChrome;
24
25
  render(): jsx.JSX.Element;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.9.3",
3
+ "version": "217.10.1",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -67,7 +67,7 @@
67
67
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
68
68
  "@atlaskit/react-ufo": "^5.10.0",
69
69
  "@atlaskit/task-decision": "^19.3.0",
70
- "@atlaskit/tmp-editor-statsig": "^53.0.0",
70
+ "@atlaskit/tmp-editor-statsig": "^54.1.0",
71
71
  "@atlaskit/tokens": "^11.4.0",
72
72
  "@atlaskit/tooltip": "^21.1.0",
73
73
  "@atlaskit/width-detector": "^5.0.0",
@@ -84,7 +84,7 @@
84
84
  "uuid": "^3.1.0"
85
85
  },
86
86
  "peerDependencies": {
87
- "@atlaskit/editor-common": "^112.15.0",
87
+ "@atlaskit/editor-common": "^112.16.0",
88
88
  "@atlaskit/link-provider": "^4.3.0",
89
89
  "@atlaskit/media-core": "^37.0.0",
90
90
  "react": "^18.2.0",
@@ -108,7 +108,7 @@
108
108
  "@atlaskit/media-integration-test-helpers": "workspace:^",
109
109
  "@atlaskit/media-test-helpers": "^40.0.0",
110
110
  "@atlaskit/modal-dialog": "^14.14.0",
111
- "@atlaskit/renderer": "^128.7.0",
111
+ "@atlaskit/renderer": "^128.9.0",
112
112
  "@atlaskit/section-message": "^8.12.0",
113
113
  "@atlaskit/synchrony-test-helpers": "workspace:^",
114
114
  "@atlaskit/toggle": "^15.2.0",
@@ -304,9 +304,6 @@
304
304
  "platform_editor_a11y_9262": {
305
305
  "type": "boolean"
306
306
  },
307
- "platform_editor_max_width_mode_resize_fix": {
308
- "type": "boolean"
309
- },
310
307
  "platform_editor_breakout_in_universal_preset": {
311
308
  "type": "boolean"
312
309
  },