@vmz/core 0.1.32 → 0.2.1
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/{client-nav.d.ts → browser/client-nav.d.ts} +4 -13
- package/dist/{client-nav.js → browser/client-nav.js} +16 -74
- package/dist/browser/direct-api.types.d.ts +141 -0
- package/dist/browser/direct-api.types.js +4 -0
- package/dist/browser/direct-host-box.d.ts +11 -0
- package/dist/{direct-host-box.js → browser/direct-host-box.js} +2 -18
- package/dist/{dom-core.d.ts → browser/dom-core.d.ts} +67 -220
- package/dist/browser/dom-core.js +2484 -0
- package/dist/browser/dom-core.types.d.ts +127 -0
- package/dist/browser/dom-core.types.js +4 -0
- package/dist/{position-context.js → browser/position-context.js} +1 -1
- package/dist/browser/unknown-component.d.ts +14 -0
- package/dist/{unknown-component.js → browser/unknown-component.js} +5 -30
- package/dist/{dom.browser.d.ts → faces/dom.browser.d.ts} +2 -2
- package/dist/{dom.browser.js → faces/dom.browser.js} +2 -3
- package/dist/faces/dom.client.d.ts +4 -0
- package/dist/faces/dom.client.js +4 -0
- package/dist/faces/dom.d.ts +6 -0
- package/dist/faces/dom.js +6 -0
- package/dist/faces/http.d.ts +6 -0
- package/dist/{http.js → faces/http.js} +0 -1
- package/dist/faces/server.d.ts +30 -0
- package/dist/{server.js → faces/server.js} +27 -149
- package/dist/{vmz-dom.d.ts → faces/vmz-dom.d.ts} +1 -1
- package/dist/{vmz-dom.js → faces/vmz-dom.js} +1 -2
- package/dist/{vmz-runtime.d.ts → faces/vmz-runtime.d.ts} +1 -1
- package/dist/{vmz-runtime.js → faces/vmz-runtime.js} +1 -2
- package/dist/host/deployment-registry.d.ts +16 -0
- package/dist/{deployment-registry.js → host/deployment-registry.js} +1 -68
- package/dist/host/list-client-components.d.ts +14 -0
- package/dist/{list-client-components.js → host/list-client-components.js} +0 -37
- package/dist/{localize-body-links.js → host/localize-body-links.js} +0 -1
- package/dist/host/native-addon.d.ts +6 -0
- package/dist/{native-addon.js → host/native-addon.js} +0 -20
- package/dist/host/render-host.d.ts +20 -0
- package/dist/{render-host.js → host/render-host.js} +1 -17
- package/dist/{serve-host.d.ts → host/serve-host.d.ts} +3 -3
- package/dist/{serve-host.mjs → host/serve-host.mjs} +45 -168
- package/dist/shared/dom-attr-normalize.d.ts +8 -0
- package/dist/shared/dom-attr-normalize.js +71 -0
- package/dist/shared/host.types.d.ts +113 -0
- package/dist/shared/host.types.js +4 -0
- package/dist/shared/server.types.d.ts +67 -0
- package/dist/shared/server.types.js +4 -0
- package/dist/{dom-ssr.d.ts → ssr/dom-ssr.d.ts} +8 -37
- package/dist/{dom-ssr.js → ssr/dom-ssr.js} +189 -217
- package/package.json +34 -34
- package/dist/deployment-registry.d.ts +0 -70
- package/dist/direct-host-box.d.ts +0 -26
- package/dist/dom-core.js +0 -4815
- package/dist/dom.client.d.ts +0 -4
- package/dist/dom.client.js +0 -5
- package/dist/dom.d.ts +0 -6
- package/dist/dom.js +0 -7
- package/dist/http.d.ts +0 -6
- package/dist/list-client-components.d.ts +0 -62
- package/dist/native-addon.d.ts +0 -12
- package/dist/render-host.d.ts +0 -32
- package/dist/server.d.ts +0 -46
- package/dist/unknown-component.d.ts +0 -40
- /package/dist/{position-context.d.ts → browser/position-context.d.ts} +0 -0
- /package/dist/{index.d.ts → faces/index.d.ts} +0 -0
- /package/dist/{index.js → faces/index.js} +0 -0
- /package/dist/{localize-body-links.d.ts → host/localize-body-links.d.ts} +0 -0
- /package/dist/{route-layout-chain.d.ts → host/route-layout-chain.d.ts} +0 -0
- /package/dist/{route-layout-chain.js → host/route-layout-chain.js} +0 -0
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vmz/core",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "VMZ production runtime core — DOM / SSR / HTTP / WriteBarrier (no compiler)",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"default": "./dist/server.js"
|
|
8
|
+
"types": "./dist/faces/index.d.ts",
|
|
9
|
+
"default": "./dist/faces/server.js"
|
|
10
10
|
},
|
|
11
11
|
"./dom": {
|
|
12
|
-
"types": "./dist/dom.d.ts",
|
|
13
|
-
"default": "./dist/dom.js"
|
|
12
|
+
"types": "./dist/faces/dom.d.ts",
|
|
13
|
+
"default": "./dist/faces/dom.js"
|
|
14
14
|
},
|
|
15
15
|
"./dom/client": {
|
|
16
|
-
"types": "./dist/dom.client.d.ts",
|
|
17
|
-
"default": "./dist/dom.client.js"
|
|
16
|
+
"types": "./dist/faces/dom.client.d.ts",
|
|
17
|
+
"default": "./dist/faces/dom.client.js"
|
|
18
18
|
},
|
|
19
19
|
"./dom/browser": {
|
|
20
|
-
"types": "./dist/dom.browser.d.ts",
|
|
21
|
-
"default": "./dist/dom.browser.js"
|
|
20
|
+
"types": "./dist/faces/dom.browser.d.ts",
|
|
21
|
+
"default": "./dist/faces/dom.browser.js"
|
|
22
22
|
},
|
|
23
23
|
"./server": {
|
|
24
|
-
"types": "./dist/server.d.ts",
|
|
25
|
-
"default": "./dist/server.js"
|
|
24
|
+
"types": "./dist/faces/server.d.ts",
|
|
25
|
+
"default": "./dist/faces/server.js"
|
|
26
26
|
},
|
|
27
27
|
"./http": {
|
|
28
|
-
"types": "./dist/http.d.ts",
|
|
29
|
-
"default": "./dist/http.js"
|
|
28
|
+
"types": "./dist/faces/http.d.ts",
|
|
29
|
+
"default": "./dist/faces/http.js"
|
|
30
30
|
},
|
|
31
31
|
"./client-nav": {
|
|
32
|
-
"types": "./dist/client-nav.d.ts",
|
|
33
|
-
"default": "./dist/client-nav.js"
|
|
32
|
+
"types": "./dist/browser/client-nav.d.ts",
|
|
33
|
+
"default": "./dist/browser/client-nav.js"
|
|
34
34
|
},
|
|
35
35
|
"./component-registry": {
|
|
36
|
-
"types": "./dist/list-client-components.d.ts",
|
|
37
|
-
"default": "./dist/list-client-components.js"
|
|
36
|
+
"types": "./dist/host/list-client-components.d.ts",
|
|
37
|
+
"default": "./dist/host/list-client-components.js"
|
|
38
38
|
},
|
|
39
39
|
"./render-host": {
|
|
40
|
-
"types": "./dist/render-host.d.ts",
|
|
41
|
-
"default": "./dist/render-host.js"
|
|
40
|
+
"types": "./dist/host/render-host.d.ts",
|
|
41
|
+
"default": "./dist/host/render-host.js"
|
|
42
42
|
},
|
|
43
43
|
"./route-layout-chain": {
|
|
44
|
-
"types": "./dist/route-layout-chain.d.ts",
|
|
45
|
-
"default": "./dist/route-layout-chain.js"
|
|
44
|
+
"types": "./dist/host/route-layout-chain.d.ts",
|
|
45
|
+
"default": "./dist/host/route-layout-chain.js"
|
|
46
46
|
},
|
|
47
47
|
"./localize-body-links": {
|
|
48
|
-
"types": "./dist/localize-body-links.d.ts",
|
|
49
|
-
"default": "./dist/localize-body-links.js"
|
|
48
|
+
"types": "./dist/host/localize-body-links.d.ts",
|
|
49
|
+
"default": "./dist/host/localize-body-links.js"
|
|
50
50
|
},
|
|
51
51
|
"./position-context": {
|
|
52
|
-
"types": "./dist/position-context.d.ts",
|
|
53
|
-
"default": "./dist/position-context.js"
|
|
52
|
+
"types": "./dist/browser/position-context.d.ts",
|
|
53
|
+
"default": "./dist/browser/position-context.js"
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"files": [
|
|
@@ -61,21 +61,21 @@
|
|
|
61
61
|
"vmz",
|
|
62
62
|
"runtime"
|
|
63
63
|
],
|
|
64
|
-
"main": "./dist/server.js",
|
|
65
|
-
"types": "./dist/index.d.ts",
|
|
64
|
+
"main": "./dist/faces/server.js",
|
|
65
|
+
"types": "./dist/faces/index.d.ts",
|
|
66
66
|
"scripts": {
|
|
67
|
-
"build": "tsc -p tsconfig.json && node ../../../scripts/build/copy-serve-host-mjs.mjs"
|
|
67
|
+
"build": "node ../../../scripts/build/clean-package-dist.mjs packages/runtimes/vmz-runtime/dist && tsc -p tsconfig.json && node ../../../scripts/build/copy-serve-host-mjs.mjs"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"linkedom": "^0.18.13"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"@vmz/vmz-win32-x64": "0.1
|
|
74
|
-
"@vmz/vmz-win32-arm64": "0.1
|
|
75
|
-
"@vmz/vmz-darwin-x64": "0.1
|
|
76
|
-
"@vmz/vmz-darwin-arm64": "0.1
|
|
77
|
-
"@vmz/vmz-linux-x64": "0.1
|
|
78
|
-
"@vmz/vmz-linux-arm64": "0.1
|
|
73
|
+
"@vmz/vmz-win32-x64": "0.2.1",
|
|
74
|
+
"@vmz/vmz-win32-arm64": "0.2.1",
|
|
75
|
+
"@vmz/vmz-darwin-x64": "0.2.1",
|
|
76
|
+
"@vmz/vmz-darwin-arm64": "0.2.1",
|
|
77
|
+
"@vmz/vmz-linux-x64": "0.2.1",
|
|
78
|
+
"@vmz/vmz-linux-arm64": "0.2.1"
|
|
79
79
|
},
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deployment graph → component registry bootstrap (shared by all SSR/DOM hosts).
|
|
3
|
-
* Parse/validate and graph queries delegate to Rust vmz-artifacts via N-API.
|
|
4
|
-
*/
|
|
5
|
-
export declare const DEPLOYMENT_SCHEMA = "vmz.deployment.v0";
|
|
6
|
-
/**
|
|
7
|
-
* @param {string} distDir
|
|
8
|
-
* @param {{ strict?: boolean }} [opts]
|
|
9
|
-
* @returns {any | null}
|
|
10
|
-
*/
|
|
11
|
-
export declare function readDeploymentDocument(distDir: any, opts?: {}): any;
|
|
12
|
-
/**
|
|
13
|
-
* @param {any} deployment
|
|
14
|
-
* @returns {Array<{ chunkId: string, name: string, entry: string, source: string }>}
|
|
15
|
-
*/
|
|
16
|
-
export declare function componentEntriesFromDeployment(deployment: any): any;
|
|
17
|
-
/**
|
|
18
|
-
* @param {any} deployment
|
|
19
|
-
* @param {string[]} rootChunkIds
|
|
20
|
-
* @returns {Set<string>}
|
|
21
|
-
*/
|
|
22
|
-
export declare function collectDependsOnClosure(deployment: any, rootChunkIds: any): Set<unknown>;
|
|
23
|
-
/**
|
|
24
|
-
* Resolve tag conflicts; strict mode throws, dev mode warns and keeps last chunkId.
|
|
25
|
-
* @param {Array<{ chunkId: string, name: string, entry: string, source?: string }>} entries
|
|
26
|
-
* @param {{ strict?: boolean }} [opts]
|
|
27
|
-
* @returns {Array<{ chunkId: string, name: string, entry: string, source?: string }>}
|
|
28
|
-
*/
|
|
29
|
-
export declare function dedupeComponentEntriesByTag(entries: any, opts?: {}): any[];
|
|
30
|
-
/**
|
|
31
|
-
* @param {Array<{ chunkId: string, name: string, entry: string, source?: string }>} entries
|
|
32
|
-
* @param {Record<string, string> | undefined} explicit name → chunkId (no .client.js)
|
|
33
|
-
* @returns {Array<{ chunkId: string, name: string, entry: string, source?: string }>}
|
|
34
|
-
*/
|
|
35
|
-
export declare function mergeExplicitComponentEntries(entries: any, explicit: any): unknown[];
|
|
36
|
-
/**
|
|
37
|
-
* @param {string} distDir
|
|
38
|
-
* @param {{
|
|
39
|
-
* strict?: boolean,
|
|
40
|
-
* closureRoots?: string[],
|
|
41
|
-
* explicit?: Record<string, string>,
|
|
42
|
-
* }} [opts]
|
|
43
|
-
* @returns {Promise<Array<{ chunkId: string, name: string, entry: string, source?: string }>>}
|
|
44
|
-
*/
|
|
45
|
-
export declare function loadComponentEntries(distDir: any, opts?: {}): Promise<any[]>;
|
|
46
|
-
/**
|
|
47
|
-
* @param {string} distDir
|
|
48
|
-
* @param {Array<{ chunkId: string, name: string, entry: string }>} entries
|
|
49
|
-
* @param {(map: Record<string, unknown>) => void} registerComponents
|
|
50
|
-
* @param {{
|
|
51
|
-
* cacheBust?: string | number,
|
|
52
|
-
* loaded?: Set<string>,
|
|
53
|
-
* }} [opts]
|
|
54
|
-
* @returns {Promise<Record<string, unknown>>}
|
|
55
|
-
*/
|
|
56
|
-
export declare function importAndRegisterComponentEntries(distDir: any, entries: any, registerComponents: any, opts?: {}): Promise<{}>;
|
|
57
|
-
/**
|
|
58
|
-
* Bootstrap component registry from deployment (all or closure — no directory fallback).
|
|
59
|
-
* @param {string} distDir
|
|
60
|
-
* @param {(map: Record<string, unknown>) => void} registerComponents
|
|
61
|
-
* @param {{
|
|
62
|
-
* strict?: boolean,
|
|
63
|
-
* closureRoots?: string[],
|
|
64
|
-
* explicit?: Record<string, string>,
|
|
65
|
-
* cacheBust?: string | number,
|
|
66
|
-
* loaded?: Set<string>,
|
|
67
|
-
* preload?: 'all' | 'closure' | 'none',
|
|
68
|
-
* }} [opts]
|
|
69
|
-
*/
|
|
70
|
-
export declare function bootstrapComponentRegistry(distDir: any, registerComponents: any, opts?: {}): Promise<{}>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct host box model (`ui-direct-host-box`).
|
|
3
|
-
* Chip hosts opt into `display: contents`; block surfaces keep a real layout box.
|
|
4
|
-
*/
|
|
5
|
-
/** @type {ReadonlySet<string>} */
|
|
6
|
-
export declare const INLINE_HOST_CONTENTS: Set<string>;
|
|
7
|
-
/**
|
|
8
|
-
* @param {string} name
|
|
9
|
-
* @param {{ __vmzHostBox?: string } | null | undefined} Ctor
|
|
10
|
-
* @returns {'contents' | 'block'}
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolveDirectHostBox(name: any, Ctor: any): any;
|
|
13
|
-
/**
|
|
14
|
-
* Apply host box to a live DOM element (create / hydrate / resume).
|
|
15
|
-
* @param {HTMLElement} host
|
|
16
|
-
* @param {string} name
|
|
17
|
-
* @param {{ __vmzHostBox?: string } | null | undefined} Ctor
|
|
18
|
-
*/
|
|
19
|
-
export declare function applyDirectHostBox(host: any, name: any, Ctor: any): void;
|
|
20
|
-
/**
|
|
21
|
-
* SSR attrs fragment for host box (only when contents).
|
|
22
|
-
* @param {string} name
|
|
23
|
-
* @param {{ __vmzHostBox?: string } | null | undefined} Ctor
|
|
24
|
-
* @returns {string | null}
|
|
25
|
-
*/
|
|
26
|
-
export declare function directHostBoxStyleAttr(name: any, Ctor: any): string;
|