@devframes/nuxt 0.9.4 → 0.9.6

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,7 +1,7 @@
1
- import { DevframeClientHost, DevframeClientHost as DevframeClientHost$1, DevframeClientHostOptions, DevframeClientHostOptions as DevframeClientHostOptions$1 } from "@devframes/hub/client";
1
+ import { DevframeClientHost, DevframeClientHostOptions, DevframeClientRuntime, DevframeClientRuntime as DevframeClientRuntime$1, DevframeClientRuntimeOptions, DevframeClientRuntimeOptions as DevframeClientRuntimeOptions$1 } from "@devframes/hub/client";
2
2
  import { Ref } from "vue";
3
3
  //#region src/hub-client.d.ts
4
- interface UseDevframeHubClientOptions extends DevframeClientHostOptions$1 {
4
+ interface UseDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
5
5
  /**
6
6
  * Hub mount base to connect to. Forwarded as `connect.baseURL` when no
7
7
  * `rpc` / `connect.baseURL` is supplied.
@@ -16,13 +16,13 @@ interface UseDevframeHubClientOptions extends DevframeClientHostOptions$1 {
16
16
  * hub (defaulting `base` to `/__devframes/`), assembles the shared
17
17
  * `DevframeClientContext`, imports each dock's client script into the page,
18
18
  * and disposes when the current effect scope is torn down. Returns a ref that
19
- * resolves to the {@link DevframeClientHost} (`null` while connecting).
19
+ * resolves to the {@link DevframeClientRuntime} (`null` while connecting).
20
20
  *
21
21
  * Client-only: call it inside `<script setup>` on a client-rendered component
22
22
  * (e.g. under `<ClientOnly>`), never during SSR. Only needed when you render
23
23
  * your own dock UI (or override the hub's `ui`); with the default
24
24
  * `@devframes/hub-ui` the injected `embedded.js` boots the client for you.
25
25
  */
26
- declare function useDevframeHubClient(options?: UseDevframeHubClientOptions): Ref<DevframeClientHost$1 | null>;
26
+ declare function useDevframeHubClient(options?: UseDevframeHubClientOptions): Ref<DevframeClientRuntime$1 | null>;
27
27
  //#endregion
28
- export { type DevframeClientHost, type DevframeClientHostOptions, UseDevframeHubClientOptions, useDevframeHubClient };
28
+ export { type DevframeClientHost, type DevframeClientHostOptions, type DevframeClientRuntime, type DevframeClientRuntimeOptions, UseDevframeHubClientOptions, useDevframeHubClient };
@@ -1,4 +1,4 @@
1
- import { createDevframeClientHost } from "@devframes/hub/client";
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
4
  //#region src/hub-client.ts
@@ -8,7 +8,7 @@ import { onScopeDispose, shallowRef } from "vue";
8
8
  * hub (defaulting `base` to `/__devframes/`), assembles the shared
9
9
  * `DevframeClientContext`, imports each dock's client script into the page,
10
10
  * and disposes when the current effect scope is torn down. Returns a ref that
11
- * resolves to the {@link DevframeClientHost} (`null` while connecting).
11
+ * resolves to the {@link DevframeClientRuntime} (`null` while connecting).
12
12
  *
13
13
  * Client-only: call it inside `<script setup>` on a client-rendered component
14
14
  * (e.g. under `<ClientOnly>`), never during SSR. Only needed when you render
@@ -19,7 +19,7 @@ function useDevframeHubClient(options = {}) {
19
19
  const { base = DEVFRAMES_HUB_BASE, connect, ...rest } = options;
20
20
  const host = shallowRef(null);
21
21
  let disposed = false;
22
- createDevframeClientHost({
22
+ createDevframeClientRuntime({
23
23
  ...rest,
24
24
  ...rest.rpc ? {} : { connect: {
25
25
  baseURL: base,
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/nuxt/single",
3
3
  "configKey": "devframe",
4
- "version": "0.9.4",
4
+ "version": "0.9.6",
5
5
  "builder": {
6
6
  "tsdown": "0.22.14"
7
7
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/nuxt",
3
3
  "type": "module",
4
- "version": "0.9.4",
4
+ "version": "0.9.6",
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",
@@ -44,8 +44,8 @@
44
44
  "peerDependencies": {
45
45
  "@nuxt/kit": "^3.0.0 || ^4.0.0 || ^5.0.0-0",
46
46
  "vue": "^3.0.0",
47
- "devframe": "0.9.4",
48
- "@devframes/hub": "0.9.4"
47
+ "@devframes/hub": "0.9.6",
48
+ "devframe": "0.9.6"
49
49
  },
50
50
  "peerDependenciesMeta": {
51
51
  "@devframes/hub": {
@@ -56,7 +56,7 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@devframes/vite": "0.9.4"
59
+ "@devframes/vite": "0.9.6"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@nuxt/kit": "^4.5.2",
@@ -64,8 +64,8 @@
64
64
  "nuxt": "^4.5.2",
65
65
  "tsdown": "^0.22.14",
66
66
  "vue": "^3.5.41",
67
- "@devframes/hub": "0.9.4",
68
- "devframe": "0.9.4"
67
+ "devframe": "0.9.6",
68
+ "@devframes/hub": "0.9.6"
69
69
  },
70
70
  "scripts": {
71
71
  "build": "tsdown",