@devframes/nuxt 1.3.1 → 1.3.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.
@@ -1,6 +1,5 @@
1
1
  import { DevframeClientRuntime, DevframeClientRuntime as DevframeClientRuntime$1, DevframeClientRuntimeOptions, DevframeClientRuntimeOptions as DevframeClientRuntimeOptions$1 } from "@devframes/hub/client";
2
2
  import { Ref } from "vue";
3
- //#region src/hub-client.d.ts
4
3
  export interface UseDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
5
4
  /**
6
5
  * Hub mount base to connect to. Forwarded as `connect.baseURL` when no
@@ -24,5 +23,4 @@ export interface UseDevframeHubClientOptions extends DevframeClientRuntimeOption
24
23
  * `@devframes/hub-ui` the injected `embedded.js` boots the client for you.
25
24
  */
26
25
  export declare function useDevframeHubClient(options?: UseDevframeHubClientOptions): Ref<DevframeClientRuntime$1 | null>;
27
- //#endregion
28
26
  export type { DevframeClientRuntime, DevframeClientRuntimeOptions };
@@ -1,7 +1,7 @@
1
1
  import { createDevframeClientRuntime } from "@devframes/hub/client";
2
2
  import { DEVFRAMES_HUB_BASE } from "@devframes/hub/constants";
3
3
  import { onScopeDispose, shallowRef } from "vue";
4
- //#region src/hub-client.ts
4
+ // src/hub-client.ts
5
5
  /**
6
6
  * Boot the devframes-hub **client runtime** inside a Nuxt (Vue) client
7
7
  * component: the browser half of `@devframes/nuxt/hub`. Connects RPC to the
@@ -39,5 +39,4 @@ function useDevframeHubClient(options = {}) {
39
39
  });
40
40
  return host;
41
41
  }
42
- //#endregion
43
42
  export { useDevframeHubClient };
package/dist/hub.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ViteDevframeHubOptions } from "@devframes/vite/hub";
2
- //#region src/hub.d.ts
3
2
  export interface DevframeNuxtHubOptions extends Omit<ViteDevframeHubOptions, 'quiet'> {
4
3
  /**
5
4
  * Inject `@devframes/hub-ui`'s floating-dock bootstrap (`<base>embedded.js`)
@@ -36,5 +35,4 @@ export type ModuleOptions = DevframeNuxtHubOptions;
36
35
  * ```
37
36
  */
38
37
  declare const _default: import("@nuxt/schema").NuxtModule<DevframeNuxtHubOptions, DevframeNuxtHubOptions, false>;
39
- //#endregion
40
38
  export { _default as default };
package/dist/hub.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { addVitePlugin, defineNuxtModule } from "@nuxt/kit";
2
2
  import { DEVFRAMES_HUB_BASE, normalizeHubBase } from "@devframes/hub/constants";
3
3
  import { viteDevframeHub } from "@devframes/vite/hub";
4
- //#region src/hub.ts
4
+ // src/hub.ts
5
5
  let recommendedNuxtDevtools = false;
6
6
  function recommendNuxtDevtools() {
7
7
  if (recommendedNuxtDevtools) return;
@@ -55,5 +55,4 @@ var hub_default = defineNuxtModule({
55
55
  }
56
56
  }
57
57
  });
58
- //#endregion
59
58
  export { hub_default as default };
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- //#region src/index.ts
1
+ // src/index.ts
2
2
  throw new Error("[@devframes/nuxt] has no root export. Use a scoped subpath instead:\n • modules: [\"@devframes/nuxt/single\"]: Nuxt app as one devframe client\n • modules: [\"@devframes/nuxt/hub\"]: mount a devframes-hub with nuxt dev\n");
3
- //#endregion
4
3
  export {};
package/dist/module.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@devframes/nuxt/single",
3
3
  "configKey": "devframe",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "builder": {
6
- "tsdown": "0.23.0"
6
+ "tsdown": "0.23.4"
7
7
  }
8
8
  }
@@ -1,6 +1,6 @@
1
1
  import { connectDevframe } from "devframe/client";
2
2
  import { defineNuxtPlugin, useRuntimeConfig } from "#imports";
3
- //#region src/runtime/plugin.client.ts
3
+ // src/runtime/plugin.client.ts
4
4
  /**
5
5
  * Nuxt client plugin that calls `connectDevframe()` once on the client
6
6
  * and provides the RPC client as `$rpc` / `useNuxtApp().$rpc`.
@@ -9,5 +9,4 @@ var plugin_client_default = defineNuxtPlugin({ async setup() {
9
9
  const baseURL = useRuntimeConfig().public.devframe.baseURL ?? "./";
10
10
  return { provide: { rpc: await connectDevframe({ baseURL }) } };
11
11
  } });
12
- //#endregion
13
12
  export { plugin_client_default as default };
package/dist/single.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DevframeDefinition } from "devframe";
2
- //#region src/single.d.ts
3
2
  export interface DevframeNuxtModuleOptions {
4
3
  /**
5
4
  * Base URL, relative to the deployed page, where the devframe
@@ -79,5 +78,4 @@ export type ModuleOptions = DevframeNuxtModuleOptions;
79
78
  * ```
80
79
  */
81
80
  declare const _default: import("@nuxt/schema").NuxtModule<DevframeNuxtModuleOptions, DevframeNuxtModuleOptions, false>;
82
- //#endregion
83
81
  export { _default as default };
package/dist/single.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { devframeViteBridge } from "@devframes/vite/single";
2
2
  import { addPlugin, addVitePlugin, createResolver, defineNuxtModule } from "@nuxt/kit";
3
- //#region src/single.ts
3
+ // src/single.ts
4
4
  /**
5
5
  * Nuxt module that wires a Nuxt-built SPA up as a devframe client, and
6
6
  * (optionally) serves the dev-time RPC bridge alongside `nuxt dev`.
@@ -77,5 +77,4 @@ var single_default = defineNuxtModule({
77
77
  }
78
78
  }
79
79
  });
80
- //#endregion
81
80
  export { single_default as default };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/nuxt",
3
3
  "type": "module",
4
- "version": "1.3.1",
4
+ "version": "1.3.2",
5
5
  "description": "Nuxt module that exposes a Nuxt app as a devframe client.",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -42,10 +42,10 @@
42
42
  "dist"
43
43
  ],
44
44
  "peerDependencies": {
45
- "@devframes/hub": "1.3.1",
45
+ "@devframes/hub": "1.3.2",
46
46
  "@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
47
47
  "@nuxt/schema": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
48
- "devframe": "1.3.1",
48
+ "devframe": "1.3.2",
49
49
  "vue": "^3.0.0"
50
50
  },
51
51
  "peerDependenciesMeta": {
@@ -57,16 +57,16 @@
57
57
  }
58
58
  },
59
59
  "dependencies": {
60
- "@devframes/vite": "1.3.1"
60
+ "@devframes/vite": "1.3.2"
61
61
  },
62
62
  "devDependencies": {
63
- "@devframes/hub": "1.3.1",
64
- "@nuxt/kit": "^4.6.2",
65
- "@nuxt/schema": "^4.6.2",
66
- "@types/node": "^26.6.5",
67
- "devframe": "1.3.1",
68
- "nuxt": "^4.6.2",
69
- "tsdown": "0.23.0",
63
+ "@devframes/hub": "1.3.2",
64
+ "@nuxt/kit": "^4.6.3",
65
+ "@nuxt/schema": "^4.6.3",
66
+ "@types/node": "^26.6.6",
67
+ "devframe": "1.3.2",
68
+ "nuxt": "^4.6.3",
69
+ "tsdown": "^0.23.4",
70
70
  "vue": "^3.5.44"
71
71
  },
72
72
  "scripts": {