@import-ai/omnibox-editor 0.0.5 → 0.0.7
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/dist/components/tiptap-node/table-node/extensions/table-handle/table-handle-plugin.d.ts +1 -0
- package/dist/components/tiptap-node/table-node/lib/tiptap-table-utils.d.ts +3 -0
- package/dist/components/tiptap-node/table-node/ui/table-selection-overlay/table-selection-overlay.d.ts +0 -3
- package/dist/omnibox-editor.css +1 -1
- package/dist/omnibox-editor.js +3270 -3215
- package/dist/omnibox-editor.umd.cjs +9 -9
- package/package.json +1 -1
|
@@ -89,6 +89,9 @@ export declare function isSelectionInCell(state: EditorState): boolean;
|
|
|
89
89
|
* with cells outside the rectangle.
|
|
90
90
|
*/
|
|
91
91
|
export declare function cellsOverlapRectangle({ width, height, map }: TableMap, rect: Rect): boolean;
|
|
92
|
+
export declare function getTableMoveIndexes(tableMap: Pick<TableMap, "width" | "height" | "map">, index: number, orientation: Orientation): number[];
|
|
93
|
+
export declare function getTableMoveTargetIndex(tableMap: Pick<TableMap, "width" | "height" | "map">, index: number, orientation: Orientation, direction: "previous" | "next"): number | null;
|
|
94
|
+
export declare function getTableDropTargetIndex(tableMap: Pick<TableMap, "width" | "height">, index: number | undefined, orientation: Orientation, edge: "end" | "none"): number | null;
|
|
92
95
|
/**
|
|
93
96
|
* Runs a function while preserving the editor's selection.
|
|
94
97
|
* @param editor The Tiptap editor instance
|
|
@@ -4,12 +4,9 @@ export interface TableSelectionOverlayProps {
|
|
|
4
4
|
cellMenu?: React.ComponentType<{
|
|
5
5
|
onOpenChange?: (isOpen: boolean) => void;
|
|
6
6
|
editor?: Editor | null;
|
|
7
|
-
onResizeStart?: (handle: ResizeHandle) => (event: React.MouseEvent) => void;
|
|
8
7
|
}>;
|
|
9
8
|
showResizeHandles?: boolean;
|
|
10
9
|
onMenuOpenChange?: (isOpen: boolean) => void;
|
|
11
10
|
}
|
|
12
|
-
type ResizeHandle = "tl" | "tr" | "bl" | "br" | null;
|
|
13
11
|
export declare function shouldShowTableSelectionOverlay(editor: Pick<Editor, "isEditable"> | null | undefined): boolean;
|
|
14
12
|
export declare const TableSelectionOverlay: React.FC<TableSelectionOverlayProps>;
|
|
15
|
-
export {};
|