@devframes/vite 0.9.5 → 0.9.7

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,6 @@
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
  //#region src/hub-client.d.ts
3
- interface MountDevframeHubClientOptions extends DevframeClientHostOptions$1 {
3
+ interface MountDevframeHubClientOptions extends DevframeClientRuntimeOptions$1 {
4
4
  /**
5
5
  * Hub mount base to connect to. Forwarded as `connect.baseURL` when no
6
6
  * `rpc` / `connect.baseURL` is supplied.
@@ -15,12 +15,12 @@ interface MountDevframeHubClientOptions extends DevframeClientHostOptions$1 {
15
15
  * (defaulting `base` to `/__devframes/`), assembles the shared
16
16
  * `DevframeClientContext`, and imports each dock's client script into the
17
17
  * page. A thin default-applying wrapper over `@devframes/hub/client`'s
18
- * `createDevframeClientHost`.
18
+ * `createDevframeClientRuntime`.
19
19
  *
20
20
  * Only needed when you render your own dock UI (or override the hub's `ui`).
21
21
  * With the default `@devframes/hub-ui`, its injected `embedded.js` boots the
22
22
  * client for you, so the host page needs no client code.
23
23
  */
24
- declare function mountDevframeHubClient(options?: MountDevframeHubClientOptions): Promise<DevframeClientHost$1>;
24
+ declare function mountDevframeHubClient(options?: MountDevframeHubClientOptions): Promise<DevframeClientRuntime$1>;
25
25
  //#endregion
26
- export { type DevframeClientHost, type DevframeClientHostOptions, MountDevframeHubClientOptions, mountDevframeHubClient };
26
+ export { type DevframeClientHost, type DevframeClientHostOptions, type DevframeClientRuntime, type DevframeClientRuntimeOptions, MountDevframeHubClientOptions, mountDevframeHubClient };
@@ -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
  //#region src/hub-client.ts
4
4
  /**
@@ -7,7 +7,7 @@ import { DEVFRAMES_HUB_BASE } from "@devframes/hub/constants";
7
7
  * (defaulting `base` to `/__devframes/`), assembles the shared
8
8
  * `DevframeClientContext`, and imports each dock's client script into the
9
9
  * page. A thin default-applying wrapper over `@devframes/hub/client`'s
10
- * `createDevframeClientHost`.
10
+ * `createDevframeClientRuntime`.
11
11
  *
12
12
  * Only needed when you render your own dock UI (or override the hub's `ui`).
13
13
  * With the default `@devframes/hub-ui`, its injected `embedded.js` boots the
@@ -15,7 +15,7 @@ import { DEVFRAMES_HUB_BASE } from "@devframes/hub/constants";
15
15
  */
16
16
  function mountDevframeHubClient(options = {}) {
17
17
  const { base = DEVFRAMES_HUB_BASE, connect, ...rest } = options;
18
- return createDevframeClientHost({
18
+ return createDevframeClientRuntime({
19
19
  ...rest,
20
20
  ...rest.rpc ? {} : { connect: {
21
21
  baseURL: base,
package/dist/hub.d.mts CHANGED
@@ -48,7 +48,7 @@ interface ViteDevframeHubOptions {
48
48
  * The hub's UI slot. Defaults to `@devframes/hub-ui`'s `createUi()` (the
49
49
  * reference floating dock + standalone viewer) when omitted — install
50
50
  * `@devframes/hub-ui` for that default. Pass your own {@link DevframeHubUi}
51
- * to swap the viewer, or `false` for a headless hub (serve your own UI
51
+ * to swap the hub UI provider, or `false` for a headless hub (serve your own UI
52
52
  * against `@devframes/hub/client`).
53
53
  */
54
54
  ui?: DevframeHubUi | false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/vite",
3
3
  "type": "module",
4
- "version": "0.9.5",
4
+ "version": "0.9.7",
5
5
  "description": "Vite plugin for mounting a devframe inside any Vite-based host (Astro, SolidStart, Nuxt, plain Vite apps).",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -31,9 +31,9 @@
31
31
  ],
32
32
  "peerDependencies": {
33
33
  "vite": "^7.0.0 || ^8.0.0",
34
- "@devframes/hub": "0.9.5",
35
- "devframe": "0.9.5",
36
- "@devframes/hub-ui": "0.9.5"
34
+ "@devframes/hub": "0.9.7",
35
+ "devframe": "0.9.7",
36
+ "@devframes/hub-ui": "0.9.7"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@devframes/hub": {
@@ -56,9 +56,9 @@
56
56
  "tsdown": "^0.22.14",
57
57
  "vite": "^8.2.1",
58
58
  "vitest": "^4.1.10",
59
- "@devframes/hub": "0.9.5",
60
- "@devframes/hub-ui": "0.9.5",
61
- "devframe": "0.9.5"
59
+ "devframe": "0.9.7",
60
+ "@devframes/hub-ui": "0.9.7",
61
+ "@devframes/hub": "0.9.7"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "tsdown",