@atlaskit/editor-core 217.10.0 → 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.
- package/CHANGELOG.md +9 -0
- package/dist/cjs/create-editor/ReactEditorView.js +6 -6
- package/dist/cjs/create-editor/create-schema.js +1 -1
- package/dist/cjs/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -2
- package/dist/es2019/create-editor/create-schema.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +6 -6
- package/dist/esm/create-editor/create-schema.js +1 -1
- package/dist/esm/ui/EditorContentContainer/styles/expandStyles.js +2 -2
- package/dist/esm/ui/EditorContentContainer/styles/list.js +12 -5
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-schema.d.ts +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types/presets/universal.d.ts +7 -4
- package/dist/types/presets/useUniversalPreset.d.ts +6 -0
- package/dist/types-ts4.5/create-editor/create-schema.d.ts +1 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +6 -0
- package/dist/types-ts4.5/presets/universal.d.ts +7 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 217.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`3e18e5bea1aa1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3e18e5bea1aa1) -
|
|
8
|
+
Fixed cursor placement when pressing Enter at the start of a nested task item. Fixed extra spacing
|
|
9
|
+
on nested task lists when flexible list indentation is enabled.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 217.10.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -885,12 +885,12 @@ function ReactEditorView(props) {
|
|
|
885
885
|
return viewRef.current;
|
|
886
886
|
},
|
|
887
887
|
popupsMountPoint: props.editorProps.popupsMountPoint
|
|
888
|
-
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
888
|
+
};
|
|
889
|
+
},
|
|
890
|
+
// viewRef is intentionally omitted from the deps array — it's a stable ref object; the getter reads
|
|
891
|
+
// .current lazily so there's no stale-closure risk.
|
|
892
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
893
|
+
[editorRef, props.editorProps.popupsMountPoint]);
|
|
894
894
|
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017
|
|
895
895
|
var reactEditorViewContext = (0, _expValEquals.expValEquals)('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedReactEditorViewContext : {
|
|
896
896
|
editorRef: editorRef,
|
|
@@ -19,7 +19,7 @@ var _createEditor = require("./create-editor");
|
|
|
19
19
|
* Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
|
|
20
20
|
* This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
|
|
21
21
|
*
|
|
22
|
-
* @param {
|
|
22
|
+
* @param {object} params - Parameters object.
|
|
23
23
|
* @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
|
|
24
24
|
* @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
|
|
25
25
|
* @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
|
|
@@ -94,8 +94,8 @@ var expandStylesBase = exports.expandStylesBase = (0, _react.css)({
|
|
|
94
94
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
95
95
|
display: 'flow-root',
|
|
96
96
|
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
98
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
99
99
|
'@supports not (display: flow-root)': {
|
|
100
100
|
width: '100%',
|
|
101
101
|
boxSizing: 'border-box'
|
|
@@ -227,12 +227,19 @@ var listItemHiddenMarkerStyles = exports.listItemHiddenMarkerStyles = (0, _react
|
|
|
227
227
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
228
228
|
marginTop: '0 !important'
|
|
229
229
|
},
|
|
230
|
-
//
|
|
231
|
-
//
|
|
232
|
-
//
|
|
233
|
-
|
|
230
|
+
// Remove top margin from nested taskLists not preceded by a sibling taskItem.
|
|
231
|
+
// The base rule (tasksAndDecisionsStyles) sets margin-top on all nested taskLists,
|
|
232
|
+
// but with flexible indentation a taskList can be the first child with no taskItem above.
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
234
|
+
'div[data-task-list-local-id] > div[data-task-list-local-id]': {
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
236
|
+
marginTop: '0 !important'
|
|
237
|
+
},
|
|
238
|
+
// Restore margin when a nested taskList follows a taskItem
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'div[data-task-local-id] + div[data-task-list-local-id]': {
|
|
234
241
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
235
|
-
|
|
242
|
+
marginTop: "var(--ds-space-050, 4px)".concat(" !important")
|
|
236
243
|
}
|
|
237
244
|
}
|
|
238
245
|
});
|
|
@@ -830,11 +830,11 @@ export function ReactEditorView(props) {
|
|
|
830
830
|
return viewRef.current;
|
|
831
831
|
},
|
|
832
832
|
popupsMountPoint: props.editorProps.popupsMountPoint
|
|
833
|
-
}
|
|
833
|
+
}),
|
|
834
834
|
// viewRef is intentionally omitted from the deps array — it's a stable ref object; the getter reads
|
|
835
835
|
// .current lazily so there's no stale-closure risk.
|
|
836
836
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
837
|
-
|
|
837
|
+
[editorRef, props.editorProps.popupsMountPoint]);
|
|
838
838
|
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017
|
|
839
839
|
const reactEditorViewContext = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedReactEditorViewContext : {
|
|
840
840
|
editorRef,
|
|
@@ -9,7 +9,7 @@ import { fixExcludes } from './create-editor';
|
|
|
9
9
|
* Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
|
|
10
10
|
* This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
|
|
11
11
|
*
|
|
12
|
-
* @param {
|
|
12
|
+
* @param {object} params - Parameters object.
|
|
13
13
|
* @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
|
|
14
14
|
* @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
|
|
15
15
|
* @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
|
|
@@ -87,8 +87,8 @@ export const expandStylesBase = css({
|
|
|
87
87
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
88
88
|
display: 'flow-root',
|
|
89
89
|
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
91
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
92
92
|
'@supports not (display: flow-root)': {
|
|
93
93
|
width: '100%',
|
|
94
94
|
boxSizing: 'border-box'
|
|
@@ -223,12 +223,19 @@ export const listItemHiddenMarkerStyles = css({
|
|
|
223
223
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
224
224
|
marginTop: '0 !important'
|
|
225
225
|
},
|
|
226
|
-
//
|
|
227
|
-
//
|
|
228
|
-
//
|
|
229
|
-
|
|
226
|
+
// Remove top margin from nested taskLists not preceded by a sibling taskItem.
|
|
227
|
+
// The base rule (tasksAndDecisionsStyles) sets margin-top on all nested taskLists,
|
|
228
|
+
// but with flexible indentation a taskList can be the first child with no taskItem above.
|
|
229
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
230
|
+
'div[data-task-list-local-id] > div[data-task-list-local-id]': {
|
|
231
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
232
|
+
marginTop: '0 !important'
|
|
233
|
+
},
|
|
234
|
+
// Restore margin when a nested taskList follows a taskItem
|
|
235
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
236
|
+
'div[data-task-local-id] + div[data-task-list-local-id]': {
|
|
230
237
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
231
|
-
|
|
238
|
+
marginTop: `${"var(--ds-space-050, 4px)"} !important`
|
|
232
239
|
}
|
|
233
240
|
}
|
|
234
241
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "
|
|
2
|
+
export const version = "0.0.0-development";
|
|
@@ -876,12 +876,12 @@ export function ReactEditorView(props) {
|
|
|
876
876
|
return viewRef.current;
|
|
877
877
|
},
|
|
878
878
|
popupsMountPoint: props.editorProps.popupsMountPoint
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
879
|
+
};
|
|
880
|
+
},
|
|
881
|
+
// viewRef is intentionally omitted from the deps array — it's a stable ref object; the getter reads
|
|
882
|
+
// .current lazily so there's no stale-closure risk.
|
|
883
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
884
|
+
[editorRef, props.editorProps.popupsMountPoint]);
|
|
885
885
|
// eslint-disable-next-line @atlassian/perf-linting/no-inline-context-value, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017
|
|
886
886
|
var reactEditorViewContext = expValEquals('platform_editor_perf_lint_cleanup', 'isEnabled', true) ? memoizedReactEditorViewContext : {
|
|
887
887
|
editorRef: editorRef,
|
|
@@ -10,7 +10,7 @@ import { fixExcludes } from './create-editor';
|
|
|
10
10
|
* Adds generic metadata attributes to a DOMOutputSpec array based on the provided node or mark.
|
|
11
11
|
* This function ensures that the DOMOutputSpec is annotated with ProseMirror-specific metadata.
|
|
12
12
|
*
|
|
13
|
-
* @param {
|
|
13
|
+
* @param {object} params - Parameters object.
|
|
14
14
|
* @param {PMNode | PMMark} params.nodeOrMark - The ProseMirror node or mark to extract metadata from.
|
|
15
15
|
* @param {DOMOutputSpec} params.domSpec - The DOMOutputSpec to which attributes will be added.
|
|
16
16
|
* @returns {DOMOutputSpec} The modified DOMOutputSpec with additional metadata.
|
|
@@ -87,8 +87,8 @@ export var expandStylesBase = css({
|
|
|
87
87
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
88
88
|
display: 'flow-root',
|
|
89
89
|
/* The follow rules inside @supports block are added as a part of ED-8893
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
The fix is targeting mobile bridge on iOS 12 or below,
|
|
91
|
+
We should consider remove this fix when we no longer support iOS 12 */
|
|
92
92
|
'@supports not (display: flow-root)': {
|
|
93
93
|
width: '100%',
|
|
94
94
|
boxSizing: 'border-box'
|
|
@@ -219,12 +219,19 @@ export var listItemHiddenMarkerStyles = css({
|
|
|
219
219
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
220
220
|
marginTop: '0 !important'
|
|
221
221
|
},
|
|
222
|
-
//
|
|
223
|
-
//
|
|
224
|
-
//
|
|
225
|
-
|
|
222
|
+
// Remove top margin from nested taskLists not preceded by a sibling taskItem.
|
|
223
|
+
// The base rule (tasksAndDecisionsStyles) sets margin-top on all nested taskLists,
|
|
224
|
+
// but with flexible indentation a taskList can be the first child with no taskItem above.
|
|
225
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
226
|
+
'div[data-task-list-local-id] > div[data-task-list-local-id]': {
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
228
|
+
marginTop: '0 !important'
|
|
229
|
+
},
|
|
230
|
+
// Restore margin when a nested taskList follows a taskItem
|
|
231
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
232
|
+
'div[data-task-local-id] + div[data-task-list-local-id]': {
|
|
226
233
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
227
|
-
|
|
234
|
+
marginTop: "var(--ds-space-050, 4px)".concat(" !important")
|
|
228
235
|
}
|
|
229
236
|
}
|
|
230
237
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export var name = "@atlaskit/editor-core";
|
|
2
|
-
export var version = "
|
|
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 {
|
|
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;
|
|
@@ -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 {
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "217.10.
|
|
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": "^54.
|
|
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",
|
|
@@ -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.
|
|
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",
|