@livestore/devtools-vite 0.4.0-dev.23 → 0.4.0-dev.25
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/devtools-bundle/{data-grid-overlay-editor-DmznnAsC.js → data-grid-overlay-editor-B9SeOgSD.js} +1 -1
- package/dist/devtools-bundle/{devtools-react-bundle-BD5WohSC.js → devtools-react-bundle-CKWwCQfK.js} +2813 -2813
- package/dist/devtools-bundle/{index-Ce4akueY.js → index-CS9sgctA.js} +1 -1
- package/dist/devtools-bundle/index.js +1 -1
- package/dist/devtools-bundle/{number-overlay-editor-F3cErcvT.js → number-overlay-editor-Dfha3F1D.js} +1 -1
- package/dist/plugin.d.ts +19 -41
- package/dist/plugin.js +572 -640
- package/dist/release-metadata.json +11 -5
- package/package.json +3 -3
package/dist/plugin.d.ts
CHANGED
|
@@ -1,41 +1,19 @@
|
|
|
1
|
-
import { Schema } from '@livestore/utils/effect'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
|
1
|
+
import type { Schema } from '@livestore/utils/effect'
|
|
2
|
+
import type { Plugin } from 'vite'
|
|
3
|
+
|
|
4
|
+
export type DevtoolsMode =
|
|
5
|
+
| { readonly _tag: 'node'; readonly url: string }
|
|
6
|
+
| { readonly _tag: 'web' }
|
|
7
|
+
| { readonly _tag: 'browser-extension' }
|
|
8
|
+
|
|
9
|
+
export interface PluginOptions {
|
|
10
|
+
readonly schemaPath: string | ReadonlyArray<string>
|
|
11
|
+
readonly mode?: DevtoolsMode
|
|
12
|
+
readonly path?: string
|
|
13
|
+
readonly experimental?: {
|
|
14
|
+
readonly continueOnError?: boolean
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export declare const PluginOptions: Schema.Schema<PluginOptions>
|
|
19
|
+
export declare const livestoreDevtoolsPlugin: (options: PluginOptions) => Plugin
|