@standardbeagle/edit-db 0.4.581 → 0.4.590
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/editor.d.ts +11 -1
- package/dist/editor.es.js +1805 -1790
- package/dist/editor.umd.cjs +17 -17
- package/dist/hooks/useEditorConfig.d.ts +11 -0
- package/dist/hooks/usePath.d.ts +1 -1
- package/dist/hooks/useSaveFile.d.ts +7 -0
- package/package.json +1 -1
- package/dist/editor.stories.d.ts +0 -7
package/dist/editor.d.ts
CHANGED
|
@@ -38,6 +38,16 @@ interface EditorProps {
|
|
|
38
38
|
* table; what it does — open a query designer, copy DDL, … — is the host's.
|
|
39
39
|
*/
|
|
40
40
|
tableActions?: TableAction[];
|
|
41
|
+
/**
|
|
42
|
+
* Host-provided file saver for every editor download (grid + navigation
|
|
43
|
+
* exports). A desktop shell can route this to a native save dialog; omit it
|
|
44
|
+
* and downloads use the browser anchor mechanism.
|
|
45
|
+
*/
|
|
46
|
+
saveFile?: (file: {
|
|
47
|
+
filename: string;
|
|
48
|
+
content: string;
|
|
49
|
+
mime: string;
|
|
50
|
+
}) => Promise<void>;
|
|
41
51
|
}
|
|
42
52
|
/**
|
|
43
53
|
* Editor component - Root component for the database administration interface.
|
|
@@ -63,5 +73,5 @@ interface EditorProps {
|
|
|
63
73
|
* @param props - Editor configuration props
|
|
64
74
|
* @returns React element containing the full editor interface
|
|
65
75
|
*/
|
|
66
|
-
export declare function Editor({ uri, fetcher, uiPath, onLocate, showStats, tables, defaultColumns, trailingColumns, tableActions, }: EditorProps): import("react").JSX.Element;
|
|
76
|
+
export declare function Editor({ uri, fetcher, uiPath, onLocate, showStats, tables, defaultColumns, trailingColumns, tableActions, saveFile, }: EditorProps): import("react").JSX.Element;
|
|
67
77
|
export {};
|