@devframes/nuxt 0.9.5 → 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.
- package/dist/hub-client.d.mts +5 -5
- package/dist/hub-client.mjs +3 -3
- package/dist/module.json +1 -1
- package/package.json +6 -6
package/dist/hub-client.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DevframeClientHost,
|
|
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
|
|
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
|
|
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<
|
|
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 };
|
package/dist/hub-client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
-
|
|
22
|
+
createDevframeClientRuntime({
|
|
23
23
|
...rest,
|
|
24
24
|
...rest.rpc ? {} : { connect: {
|
|
25
25
|
baseURL: base,
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
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
|
-
"@devframes/hub": "0.9.
|
|
48
|
-
"devframe": "0.9.
|
|
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.
|
|
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
|
-
"devframe": "0.9.
|
|
68
|
-
"@devframes/hub": "0.9.
|
|
67
|
+
"devframe": "0.9.6",
|
|
68
|
+
"@devframes/hub": "0.9.6"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|