@livestore/devtools-vite 0.4.0-dev.24 → 0.4.0-dev.26
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/README.md +4 -2
- package/dist/devtools-bundle/{data-grid-overlay-editor-B9SeOgSD.js → data-grid-overlay-editor-iuXixvOn.js} +1 -1
- package/dist/devtools-bundle/{devtools-react-bundle-CKWwCQfK.js → devtools-react-bundle-DdRG383z.js} +54541 -55894
- package/dist/devtools-bundle/devtools-vite.css +1 -1
- package/dist/devtools-bundle/{index-CS9sgctA.js → index-CZWcLjVM.js} +1 -1
- package/dist/devtools-bundle/index.js +1 -1
- package/dist/devtools-bundle/{mod-C9RzS96o.js → mod-2ScWT2NO.js} +24 -24
- package/dist/devtools-bundle/{number-overlay-editor-Dfha3F1D.js → number-overlay-editor-Bp5aNAyB.js} +165 -174
- package/dist/plugin.d.ts +41 -19
- package/dist/plugin.js +548 -535
- package/dist/release-metadata.json +22 -11
- package/package.json +12 -4
package/dist/plugin.d.ts
CHANGED
|
@@ -1,19 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { Schema } from '@livestore/utils/effect';
|
|
2
|
+
import { type Plugin } from 'vite';
|
|
3
|
+
export declare const PluginOptions: Schema.Struct<{
|
|
4
|
+
/**
|
|
5
|
+
* The path to the schema file. The schema file needs to export the schema as `export const schema`.
|
|
6
|
+
* Path needs to be relative to the Vite `root`.
|
|
7
|
+
*
|
|
8
|
+
* Example:
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { devtoolsVitePlugin } from '@livestore/devtools-vite'
|
|
11
|
+
*
|
|
12
|
+
* devtoolsVitePlugin({
|
|
13
|
+
* schemaPath: './src/db/schema/index.ts'
|
|
14
|
+
* // ...
|
|
15
|
+
* })
|
|
16
|
+
*
|
|
17
|
+
* If your app uses multiple schemas, you can provide an array of schema paths.
|
|
18
|
+
* ```ts
|
|
19
|
+
* devtoolsVitePlugin({
|
|
20
|
+
* schemaPath: ['./src/db/schema/index.ts', './src/db/schema2/index.ts']
|
|
21
|
+
* // ...
|
|
22
|
+
* })
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
schemaPath: Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>;
|
|
26
|
+
/**
|
|
27
|
+
* Where to serve the devtools UI.
|
|
28
|
+
*
|
|
29
|
+
* @default '/_livestore'
|
|
30
|
+
*/
|
|
31
|
+
mode: Schema.optional<Schema.Union<[Schema.TaggedStruct<"node", {
|
|
32
|
+
url: typeof Schema.String;
|
|
33
|
+
}>, Schema.TaggedStruct<"web", {}>, Schema.TaggedStruct<"browser-extension", {}>]>>;
|
|
34
|
+
path: Schema.optional<typeof Schema.String>;
|
|
35
|
+
experimental: Schema.optional<Schema.Struct<{
|
|
36
|
+
continueOnError: Schema.optional<typeof Schema.Boolean>;
|
|
37
|
+
}>>;
|
|
38
|
+
}>;
|
|
39
|
+
export type PluginOptions = typeof PluginOptions.Type;
|
|
40
|
+
export declare const livestoreDevtoolsPlugin: (options: PluginOptions) => Plugin;
|
|
41
|
+
//# sourceMappingURL=plugin.d.ts.map
|