@volter/world-console 2.0.17 → 3.0.0
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/README.md +1 -11
- package/client/console.css +0 -1
- package/client/console.tsx +51 -41
- package/client/main.tsx +1 -1
- package/dist/client/console.bundle.js +13 -13
- package/dist/client/console.css +0 -1
- package/dist/client/console.tsx +51 -41
- package/dist/client/main.bundle.js +68 -68
- package/dist/client/main.tsx +1 -1
- package/dist/src/console.d.ts +1 -1
- package/dist/src/console.js +2 -2
- package/package.json +5 -8
- package/src/console.ts +3 -3
package/dist/client/main.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// The console's page, mounted: the host serves this entry (src/console.ts)
|
|
1
|
+
// The console's page, mounted: the host serves this entry (src/console.ts).
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { applyTheme } from './kit/kit.tsx';
|
package/dist/src/console.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const DASHBOARD_CSP = "script-src 'self'; object-src 'none'; base
|
|
|
6
6
|
export type ConsoleMount = {
|
|
7
7
|
/** `worlds`: the origin the Worlds are served at, when the console has an origin of its own; `names`: the
|
|
8
8
|
* Worlds (`<org>/<world>`) a World token may open there, for a host that does not list its Worlds (a hosted one);
|
|
9
|
-
* `worldOrigin`: this page is served on a World's own origin, beside its twins and
|
|
9
|
+
* `worldOrigin`: this page is served on a World's own origin, beside its twins and their screens, so it keeps no token
|
|
10
10
|
* script can read. */
|
|
11
11
|
handle: (request: Request, base: string, opts?: {
|
|
12
12
|
worlds?: string;
|
package/dist/src/console.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THE DASHBOARD (apps/console/README.md; docs/contributing/architecture.md, "The hosted product"): a World's pages, a
|
|
2
|
-
// PURE FRONTEND
|
|
2
|
+
// PURE FRONTEND — a React client bundled by `Bun.build` at serve time behind one app shell,
|
|
3
3
|
// with no data path of its own. Every read and every write it makes is a door of the host or of a world, called from
|
|
4
4
|
// the browser. The host mounts it at `/-/console/` (the same origin as the doors: one origin, no CORS). It is the same
|
|
5
5
|
// page on a laptop, a self-hosted host and Volter's cloud, and carries nothing of orgs or billing: the platform's pages
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// under `base` or returns null when the path is not the dashboard's.
|
|
8
8
|
import { readFileSync } from 'node:fs';
|
|
9
9
|
import { createRequire } from 'node:module';
|
|
10
|
-
import { brandTokensResponse, bundleClient } from '@volter/world-core';
|
|
10
|
+
import { brandTokensResponse, bundleClient } from '@volter/world-core/runtime';
|
|
11
11
|
/** A file URL's path as the filesystem names it: decoded, and without the leading slash before a Windows drive (`/C:/…`). */
|
|
12
12
|
const pathOf = (url) => decodeURIComponent(url.pathname).replace(/^\/([A-Za-z]:)/, '$1');
|
|
13
13
|
const CLIENT_ENTRY = () => pathOf(new URL('../client/main.tsx', import.meta.url)); // lazy: never a top-level import.meta.url URL (workerd)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-console",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "The dashboard of Volter World: a World's pages, the same on a laptop, a self-hosted host and the hosted cloud — mounted by the host at /-/console/. A pure frontend over the World's own doors; its kit (./kit) is the pieces the platform's pages share.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit",
|
|
16
16
|
"build": "bun ../../scripts/brand-tokens.ts client/brand && node ../../scripts/publish/build.mjs",
|
|
17
17
|
"prepack": "bun ../../scripts/brand-tokens.ts client/brand && node ../../scripts/publish/prepare-publish.mjs prepack",
|
|
18
|
-
"postpack": "node ../../scripts/publish/prepare-publish.mjs postpack"
|
|
19
|
-
"storybook": "storybook dev -p 6106 --no-open"
|
|
18
|
+
"postpack": "node ../../scripts/publish/prepare-publish.mjs postpack"
|
|
20
19
|
},
|
|
21
20
|
"dependencies": {
|
|
22
21
|
"@xyflow/react": "^12.12.0",
|
|
@@ -24,16 +23,14 @@
|
|
|
24
23
|
"react-dom": "^19.2.7"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
|
-
"@storybook/react-vite": "10.5.9",
|
|
28
26
|
"@types/bun": "^1.2.20",
|
|
29
27
|
"@types/node": "^24.0.0",
|
|
30
28
|
"@types/react": "^19.2.7",
|
|
31
29
|
"@types/react-dom": "^19.2.7",
|
|
32
|
-
"@volter/world-host": "
|
|
33
|
-
"@volter/world-runtime": "
|
|
30
|
+
"@volter/world-host": "3.0.0",
|
|
31
|
+
"@volter/world-runtime": "3.0.0",
|
|
34
32
|
"@volter/world-tooling": "0.1.0",
|
|
35
33
|
"playwright": "^1.61.0",
|
|
36
|
-
"storybook": "10.5.9",
|
|
37
34
|
"typescript": "^5.9.0"
|
|
38
35
|
},
|
|
39
36
|
"publishConfig": {
|
|
@@ -52,7 +49,7 @@
|
|
|
52
49
|
],
|
|
53
50
|
"repository": {
|
|
54
51
|
"type": "git",
|
|
55
|
-
"url": "git+https://github.com/volter-ai/twin.git",
|
|
52
|
+
"url": "git+https://github.com/volter-ai/twin-world.git",
|
|
56
53
|
"directory": "apps/console"
|
|
57
54
|
},
|
|
58
55
|
"homepage": "https://world.volter.ai/docs/README"
|
package/src/console.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// THE DASHBOARD (apps/console/README.md; docs/contributing/architecture.md, "The hosted product"): a World's pages, a
|
|
2
|
-
// PURE FRONTEND
|
|
2
|
+
// PURE FRONTEND — a React client bundled by `Bun.build` at serve time behind one app shell,
|
|
3
3
|
// with no data path of its own. Every read and every write it makes is a door of the host or of a world, called from
|
|
4
4
|
// the browser. The host mounts it at `/-/console/` (the same origin as the doors: one origin, no CORS). It is the same
|
|
5
5
|
// page on a laptop, a self-hosted host and Volter's cloud, and carries nothing of orgs or billing: the platform's pages
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
import { readFileSync } from 'node:fs';
|
|
10
10
|
import { createRequire } from 'node:module';
|
|
11
|
-
import { brandTokensResponse, bundleClient } from '@volter/world-core';
|
|
11
|
+
import { brandTokensResponse, bundleClient } from '@volter/world-core/runtime';
|
|
12
12
|
/** A file URL's path as the filesystem names it: decoded, and without the leading slash before a Windows drive (`/C:/…`). */
|
|
13
13
|
const pathOf = (url: URL): string => decodeURIComponent(url.pathname).replace(/^\/([A-Za-z]:)/, '$1');
|
|
14
14
|
const CLIENT_ENTRY = () => pathOf(new URL('../client/main.tsx', import.meta.url)); // lazy: never a top-level import.meta.url URL (workerd)
|
|
@@ -33,7 +33,7 @@ export const DASHBOARD_CSP = "script-src 'self'; object-src 'none'; base-uri 'no
|
|
|
33
33
|
export type ConsoleMount = {
|
|
34
34
|
/** `worlds`: the origin the Worlds are served at, when the console has an origin of its own; `names`: the
|
|
35
35
|
* Worlds (`<org>/<world>`) a World token may open there, for a host that does not list its Worlds (a hosted one);
|
|
36
|
-
* `worldOrigin`: this page is served on a World's own origin, beside its twins and
|
|
36
|
+
* `worldOrigin`: this page is served on a World's own origin, beside its twins and their screens, so it keeps no token
|
|
37
37
|
* script can read. */
|
|
38
38
|
handle: (request: Request, base: string, opts?: { worlds?: string; names?: string[]; worldOrigin?: boolean }) => Promise<Response | null>;
|
|
39
39
|
};
|