@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.
@@ -1,4 +1,4 @@
1
- import { g as N } from "./devtools-react-bundle-BD5WohSC.js";
1
+ import { g as N } from "./devtools-react-bundle-CKWwCQfK.js";
2
2
  function R(g, E) {
3
3
  for (var Q = 0; Q < E.length; Q++) {
4
4
  const A = E[Q];
@@ -1,4 +1,4 @@
1
- import { d as a } from "./devtools-react-bundle-BD5WohSC.js";
1
+ import { d as a } from "./devtools-react-bundle-CKWwCQfK.js";
2
2
  export {
3
3
  a as run
4
4
  };
@@ -1,4 +1,4 @@
1
- import { s as Be, R as Y, r as O } from "./devtools-react-bundle-BD5WohSC.js";
1
+ import { s as Be, R as Y, r as O } from "./devtools-react-bundle-CKWwCQfK.js";
2
2
  const Fe = /* @__PURE__ */ Be("div")({
3
3
  name: "NumberOverlayEditorStyle",
4
4
  class: "gdg-n15fjm3e",
package/dist/plugin.d.ts CHANGED
@@ -1,41 +1,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
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