@atlaskit/editor-core 217.10.0 → 217.11.0

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 (42) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/create-editor/ReactEditorView.js +6 -6
  3. package/dist/cjs/create-editor/create-schema.js +1 -1
  4. package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +8 -2
  5. package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  6. package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
  7. package/dist/cjs/ui/EditorContentContainer/styles/layout.js +98 -11
  8. package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -5
  9. package/dist/cjs/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
  10. package/dist/cjs/ui/EditorContentContainer/styles/smartCardStyles.js +36 -14
  11. package/dist/cjs/version-wrapper.js +1 -1
  12. package/dist/es2019/create-editor/ReactEditorView.js +2 -2
  13. package/dist/es2019/create-editor/create-schema.js +1 -1
  14. package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +9 -3
  15. package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  16. package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
  17. package/dist/es2019/ui/EditorContentContainer/styles/layout.js +119 -0
  18. package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -5
  19. package/dist/es2019/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
  20. package/dist/es2019/ui/EditorContentContainer/styles/smartCardStyles.js +42 -12
  21. package/dist/es2019/version-wrapper.js +1 -1
  22. package/dist/esm/create-editor/ReactEditorView.js +6 -6
  23. package/dist/esm/create-editor/create-schema.js +1 -1
  24. package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +9 -3
  25. package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +2 -2
  26. package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +2 -2
  27. package/dist/esm/ui/EditorContentContainer/styles/layout.js +97 -10
  28. package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -5
  29. package/dist/esm/ui/EditorContentContainer/styles/resizerStyles.js +3 -0
  30. package/dist/esm/ui/EditorContentContainer/styles/smartCardStyles.js +36 -14
  31. package/dist/esm/version-wrapper.js +1 -1
  32. package/dist/types/create-editor/create-schema.d.ts +1 -1
  33. package/dist/types/create-editor/create-universal-preset.d.ts +6 -0
  34. package/dist/types/presets/universal.d.ts +7 -4
  35. package/dist/types/presets/useUniversalPreset.d.ts +6 -0
  36. package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +15 -0
  37. package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
  38. package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -0
  39. package/dist/types-ts4.5/presets/universal.d.ts +7 -4
  40. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -0
  41. package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +15 -0
  42. package/package.json +6 -6
@@ -26,12 +26,12 @@ export var editorControlsSmartCardStyles = css(_defineProperty({}, ".".concat(Sm
26
26
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
27
27
  export var smartCardDiffStyles = css(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty({}, "&[data-testid=\"show-diff-changed-decoration-node\"] .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
28
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
29
- boxShadow: "0 0 0 1px var(--diff-decoration-marker-color)",
29
+ boxShadow: "0 0 0 var(--diff-decoration-marker-ring-width, 1px) var(--diff-decoration-marker-color)",
30
30
  borderColor: 'transparent'
31
31
  })));
32
32
 
33
33
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
34
- export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
34
+ export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
35
35
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
36
36
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
37
37
  borderColor: 'transparent'
@@ -39,13 +39,17 @@ export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defi
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
40
40
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
41
41
  borderColor: 'transparent'
42
+ }), "&.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
44
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
45
+ borderColor: 'transparent'
42
46
  }), "&.show-diff-deleted-node-traditional.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
43
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
44
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
48
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
45
49
  borderColor: 'transparent'
46
50
  }), "&.show-diff-deleted-node.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
47
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
48
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
52
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
49
53
  borderColor: 'transparent'
50
54
  }), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
51
55
  opacity: 0.6
@@ -64,18 +68,25 @@ export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defi
64
68
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
65
69
  borderRadius: "var(--ds-radius-small, 4px)"
66
70
  }
71
+ }), '.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .media-card-wrapper', {
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
73
+ '& > div': {
74
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
75
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
76
+ borderRadius: "var(--ds-radius-small, 4px)"
77
+ }
67
78
  }), '.show-diff-deleted-node-traditional.show-diff-deleted-active .media-card-wrapper', {
68
79
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
69
80
  '& > div': {
70
81
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
71
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
82
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
72
83
  borderRadius: "var(--ds-radius-small, 4px)"
73
84
  }
74
85
  }), '.show-diff-deleted-node.show-diff-deleted-active .media-card-wrapper', {
75
86
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
76
87
  '& > div': {
77
88
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
78
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
89
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
79
90
  borderRadius: "var(--ds-radius-small, 4px)",
80
91
  opacity: 0.6
81
92
  }
@@ -90,21 +101,25 @@ export var showDiffDeletedNodeStyles = css(_defineProperty(_defineProperty(_defi
90
101
  }));
91
102
 
92
103
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
93
- export var showDiffDeletedNodeStylesNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
104
+ export var showDiffDeletedNodeStylesNew = css(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, ".".concat(SmartCardSharedCssClassName.EMBED_CARD_CONTAINER), _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
94
105
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
95
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
106
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
96
107
  borderColor: 'transparent'
97
108
  }), "&.show-diff-deleted-node-traditional .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
98
109
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
99
110
  boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
100
111
  borderColor: 'transparent'
112
+ }), "&.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
114
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
115
+ borderColor: 'transparent'
101
116
  }), "&.show-diff-deleted-node-traditional.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
102
117
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
103
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
118
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
104
119
  borderColor: 'transparent'
105
120
  }), "&.show-diff-deleted-node.show-diff-deleted-active .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER, " > div::after"), {
106
121
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
107
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
122
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
108
123
  borderColor: 'transparent'
109
124
  }), "&.show-diff-deleted-node .".concat(SmartCardSharedCssClassName.LOADER_WRAPPER), {
110
125
  opacity: 0.8
@@ -112,7 +127,7 @@ export var showDiffDeletedNodeStylesNew = css(_defineProperty(_defineProperty(_d
112
127
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
113
128
  '& > div': {
114
129
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
115
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-gray, #7D818A)"),
130
+ boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
116
131
  borderRadius: "var(--ds-radius-small, 4px)",
117
132
  opacity: 0.8
118
133
  }
@@ -120,21 +135,28 @@ export var showDiffDeletedNodeStylesNew = css(_defineProperty(_defineProperty(_d
120
135
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
121
136
  '& > div': {
122
137
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
123
- boxShadow: "0 0 0 1px ".concat("var(--ds-border-accent-red, #E2483D)"),
138
+ boxShadow: "0 0 0 var(--diff-decoration-marker-ring-width, 1px) ".concat("var(--ds-border-accent-red, #E2483D)"),
139
+ borderRadius: "var(--ds-radius-small, 4px)"
140
+ }
141
+ }), '.show-diff-deleted-node-traditional.show-diff-deleted-outline-new .media-card-wrapper', {
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
143
+ '& > div': {
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
145
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtlest, #FFECEB)"),
124
146
  borderRadius: "var(--ds-radius-small, 4px)"
125
147
  }
126
148
  }), '.show-diff-deleted-node-traditional.show-diff-deleted-active .media-card-wrapper', {
127
149
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
128
150
  '& > div': {
129
151
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
130
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
152
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
131
153
  borderRadius: "var(--ds-radius-small, 4px)"
132
154
  }
133
155
  }), '.show-diff-deleted-node.show-diff-deleted-active .media-card-wrapper', {
134
156
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
135
157
  '& > div': {
136
158
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values,@atlaskit/ui-styling-standard/no-unsafe-values
137
- boxShadow: "0 0 0 2px ".concat("var(--ds-border-accent-red, #E2483D)"),
159
+ boxShadow: "0 0 0 4px ".concat("var(--ds-background-accent-red-subtler-pressed, #FD9891)"),
138
160
  borderRadius: "var(--ds-radius-small, 4px)",
139
161
  opacity: 0.8
140
162
  }
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "217.9.3";
2
+ export var version = "0.0.0-development";
@@ -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.
@@ -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;
@@ -1,8 +1,23 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
+ /**
3
+ * Styles for the column resize divider widget DOM elements.
4
+ * Mirrors the pm-breakout-resize-handle-* pattern from resizerStyles.ts.
5
+ * Applied only when advanced_layouts experiment is on.
6
+ */
7
+ export declare const layoutColumnDividerStyles: SerializedStyles;
8
+ /**
9
+ * Override divider marginInline when platform_editor_nested_dnd_styles_changes is on,
10
+ * since the layout section/column spacing changes.
11
+ */
12
+ export declare const layoutColumnDividerStylesNestedDnD: SerializedStyles;
2
13
  /**
3
14
  * Layout columns styles when advanced layouts experiment is on
4
15
  */
5
16
  export declare const layoutColumnStylesAdvanced: SerializedStyles;
17
+ /**
18
+ * Layout column resize styles for the platform_editor_layout_column_resize_handle experiment
19
+ */
20
+ export declare const layoutColumnResizeStyles: SerializedStyles;
6
21
  /**
7
22
  * Layout columns styles when advanced layouts experiment is off
8
23
  */
@@ -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;
@@ -1,8 +1,23 @@
1
1
  import type { SerializedStyles } from '@emotion/react';
2
+ /**
3
+ * Styles for the column resize divider widget DOM elements.
4
+ * Mirrors the pm-breakout-resize-handle-* pattern from resizerStyles.ts.
5
+ * Applied only when advanced_layouts experiment is on.
6
+ */
7
+ export declare const layoutColumnDividerStyles: SerializedStyles;
8
+ /**
9
+ * Override divider marginInline when platform_editor_nested_dnd_styles_changes is on,
10
+ * since the layout section/column spacing changes.
11
+ */
12
+ export declare const layoutColumnDividerStylesNestedDnD: SerializedStyles;
2
13
  /**
3
14
  * Layout columns styles when advanced layouts experiment is on
4
15
  */
5
16
  export declare const layoutColumnStylesAdvanced: SerializedStyles;
17
+ /**
18
+ * Layout column resize styles for the platform_editor_layout_column_resize_handle experiment
19
+ */
20
+ export declare const layoutColumnResizeStyles: SerializedStyles;
6
21
  /**
7
22
  * Layout columns styles when advanced layouts experiment is off
8
23
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "217.10.0",
3
+ "version": "217.11.0",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -54,7 +54,7 @@
54
54
  "@atlaskit/editor-plugins": "^13.0.0",
55
55
  "@atlaskit/editor-prosemirror": "^7.3.0",
56
56
  "@atlaskit/editor-shared-styles": "^3.10.0",
57
- "@atlaskit/editor-ssr-renderer": "^3.1.0",
57
+ "@atlaskit/editor-ssr-renderer": "^3.2.0",
58
58
  "@atlaskit/editor-toolbar": "^0.20.0",
59
59
  "@atlaskit/editor-toolbar-model": "^0.4.0",
60
60
  "@atlaskit/emoji": "^69.10.0",
@@ -65,9 +65,9 @@
65
65
  "@atlaskit/mention": "^24.6.0",
66
66
  "@atlaskit/platform-feature-flags": "^1.1.0",
67
67
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
68
- "@atlaskit/react-ufo": "^5.10.0",
68
+ "@atlaskit/react-ufo": "^5.11.0",
69
69
  "@atlaskit/task-decision": "^19.3.0",
70
- "@atlaskit/tmp-editor-statsig": "^54.0.0",
70
+ "@atlaskit/tmp-editor-statsig": "^54.4.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.16.0",
87
+ "@atlaskit/editor-common": "^112.18.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",