@volter/world-console 2.0.13 → 2.0.15
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 +16 -2
- package/client/brand/icons.ts +2 -0
- package/client/console.css +390 -0
- package/client/console.tsx +1498 -956
- package/client/kit/kit.css +4 -0
- package/client/kit/kit.tsx +2 -2
- package/client/main.tsx +8 -0
- package/dist/client/brand/icons.ts +2 -0
- package/dist/client/console.bundle.js +13 -224
- package/dist/client/console.css +390 -0
- package/dist/client/console.tsx +1498 -956
- package/dist/client/kit/kit.css +4 -0
- package/dist/client/kit/kit.tsx +2 -2
- package/dist/client/main.bundle.js +250 -0
- package/dist/client/main.tsx +8 -0
- package/dist/src/console.js +1 -1
- package/package.json +8 -5
- package/src/console.ts +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// The console's page, mounted: the host serves this entry (src/console.ts); a story renders ConsolePage itself.
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { createRoot } from 'react-dom/client';
|
|
4
|
+
import { applyTheme } from './kit/kit.tsx';
|
|
5
|
+
import { ConsolePage, ROOT } from './console.tsx';
|
|
6
|
+
|
|
7
|
+
applyTheme(); // the person's theme before the first paint
|
|
8
|
+
createRoot(ROOT).render(<ConsolePage />);
|
package/dist/src/console.js
CHANGED
|
@@ -10,7 +10,7 @@ import { createRequire } from 'node:module';
|
|
|
10
10
|
import { brandTokensResponse, bundleClient } from '@volter/world-core';
|
|
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
|
-
const CLIENT_ENTRY = () => pathOf(new URL('../client/
|
|
13
|
+
const CLIENT_ENTRY = () => pathOf(new URL('../client/main.tsx', import.meta.url)); // lazy: never a top-level import.meta.url URL (workerd)
|
|
14
14
|
const CLIENT_CSS = () => pathOf(new URL('../client/console.css', import.meta.url));
|
|
15
15
|
const KIT_CSS = () => pathOf(new URL('../client/kit/kit.css', import.meta.url));
|
|
16
16
|
/** The brand's tokens and faces (company decision 0018), fetched at build into client/brand/ (gitignored). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-console",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.15",
|
|
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,7 +15,8 @@
|
|
|
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"
|
|
18
|
+
"postpack": "node ../../scripts/publish/prepare-publish.mjs postpack",
|
|
19
|
+
"storybook": "storybook dev -p 6106 --no-open"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
22
|
"@xyflow/react": "^12.12.0",
|
|
@@ -23,14 +24,16 @@
|
|
|
23
24
|
"react-dom": "^19.2.7"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
|
-
"@
|
|
27
|
-
"@volter/world-runtime": "2.0.37",
|
|
28
|
-
"@volter/world-tooling": "0.1.0",
|
|
27
|
+
"@storybook/react-vite": "10.5.9",
|
|
29
28
|
"@types/bun": "^1.2.20",
|
|
30
29
|
"@types/node": "^24.0.0",
|
|
31
30
|
"@types/react": "^19.2.7",
|
|
32
31
|
"@types/react-dom": "^19.2.7",
|
|
32
|
+
"@volter/world-host": "2.0.51",
|
|
33
|
+
"@volter/world-runtime": "2.0.52",
|
|
34
|
+
"@volter/world-tooling": "0.1.0",
|
|
33
35
|
"playwright": "^1.61.0",
|
|
36
|
+
"storybook": "10.5.9",
|
|
34
37
|
"typescript": "^5.9.0"
|
|
35
38
|
},
|
|
36
39
|
"publishConfig": {
|
package/src/console.ts
CHANGED
|
@@ -11,7 +11,7 @@ import { createRequire } from 'node:module';
|
|
|
11
11
|
import { brandTokensResponse, bundleClient } from '@volter/world-core';
|
|
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
|
-
const CLIENT_ENTRY = () => pathOf(new URL('../client/
|
|
14
|
+
const CLIENT_ENTRY = () => pathOf(new URL('../client/main.tsx', import.meta.url)); // lazy: never a top-level import.meta.url URL (workerd)
|
|
15
15
|
const CLIENT_CSS = () => pathOf(new URL('../client/console.css', import.meta.url));
|
|
16
16
|
const KIT_CSS = () => pathOf(new URL('../client/kit/kit.css', import.meta.url));
|
|
17
17
|
/** The brand's tokens and faces (company decision 0018), fetched at build into client/brand/ (gitignored). */
|