@electric-sql/pglite-repl 0.2.0 → 0.2.2
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/Repl.d.ts +3 -3
- package/dist/Repl.js +8 -3
- package/dist/Repl.js.map +1 -1
- package/dist/Repl.umd.cjs +9 -5
- package/dist/Repl.umd.cjs.map +1 -1
- package/dist-webcomponent/Repl.js +1070 -954
- package/dist-webcomponent/Repl.js.map +1 -1
- package/dist-webcomponent/src/Repl.d.ts +3 -3
- package/package.json +5 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Extension } from '@uiw/react-codemirror';
|
|
2
2
|
import { CreateThemeOptions } from '@uiw/codemirror-themes';
|
|
3
|
-
import {
|
|
3
|
+
import { PGliteInterface } from '@electric-sql/pglite';
|
|
4
4
|
export type ReplTheme = 'light' | 'dark' | 'auto';
|
|
5
5
|
type ThemeInit = (options?: Partial<CreateThemeOptions>) => Extension;
|
|
6
6
|
export declare const defaultLightThemeInit: ThemeInit;
|
|
@@ -8,7 +8,7 @@ export declare const defaultLightTheme: Extension;
|
|
|
8
8
|
export declare const defaultDarkThemeInit: ThemeInit;
|
|
9
9
|
export declare const defaultDarkTheme: Extension;
|
|
10
10
|
export interface ReplProps {
|
|
11
|
-
pg
|
|
11
|
+
pg?: PGliteInterface;
|
|
12
12
|
border?: boolean;
|
|
13
13
|
lightTheme?: Extension;
|
|
14
14
|
darkTheme?: Extension;
|
|
@@ -16,5 +16,5 @@ export interface ReplProps {
|
|
|
16
16
|
showTime?: boolean;
|
|
17
17
|
disableUpdateSchema?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export declare function Repl({ pg, border, lightTheme, darkTheme, theme, showTime, disableUpdateSchema, }: ReplProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function Repl({ pg: pgProp, border, lightTheme, darkTheme, theme, showTime, disableUpdateSchema, }: ReplProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@electric-sql/pglite-repl",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"author": "Electric DB Limited",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"private": false,
|
|
@@ -33,10 +33,11 @@
|
|
|
33
33
|
"@uiw/react-codemirror": "^4.22.2",
|
|
34
34
|
"psql-describe": "^0.1.5",
|
|
35
35
|
"react": "^18.2.0",
|
|
36
|
-
"react-dom": "^18.2.0"
|
|
36
|
+
"react-dom": "^18.2.0",
|
|
37
|
+
"@electric-sql/pglite-react": "^0.2.2"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"@electric-sql/pglite": "^0.2.
|
|
40
|
+
"@electric-sql/pglite": "^0.2.2"
|
|
40
41
|
},
|
|
41
42
|
"peerDependenciesMeta": {
|
|
42
43
|
"@electric-sql/pglite": {
|
|
@@ -55,7 +56,7 @@
|
|
|
55
56
|
"vite": "^5.2.0",
|
|
56
57
|
"vite-plugin-dts": "^4.0.1",
|
|
57
58
|
"vite-plugin-libcss": "^1.1.1",
|
|
58
|
-
"@electric-sql/pglite": "^0.2.
|
|
59
|
+
"@electric-sql/pglite": "^0.2.2"
|
|
59
60
|
},
|
|
60
61
|
"scripts": {
|
|
61
62
|
"dev": "vite",
|