@vmz/core 0.1.32 → 0.2.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/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 +58 -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} +64 -220
- package/dist/browser/dom-core.js +2453 -0
- package/dist/browser/dom-core.types.d.ts +138 -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} +4 -28
- 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/{http.d.ts → faces/http.d.ts} +1 -1
- package/dist/{http.js → faces/http.js} +1 -2
- package/dist/{server.d.ts → faces/server.d.ts} +8 -25
- package/dist/{server.js → faces/server.js} +25 -155
- 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} +0 -16
- 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/host.types.d.ts +67 -0
- package/dist/shared/host.types.js +4 -0
- package/dist/shared/server.types.d.ts +39 -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} +159 -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/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/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/dist/dom.client.d.ts
DELETED
package/dist/dom.client.js
DELETED
package/dist/dom.d.ts
DELETED
package/dist/dom.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Discover compiled client component modules from Deployment Plan only.
|
|
3
|
-
* Shared by serve-host SSR, static emit, and test hosts (plan-only host).
|
|
4
|
-
*/
|
|
5
|
-
export { DEPLOYMENT_SCHEMA, readDeploymentDocument, componentEntriesFromDeployment, collectDependsOnClosure, dedupeComponentEntriesByTag, mergeExplicitComponentEntries, loadComponentEntries, importAndRegisterComponentEntries, bootstrapComponentRegistry, } from './deployment-registry.js';
|
|
6
|
-
export { createRenderHost } from './render-host.js';
|
|
7
|
-
/**
|
|
8
|
-
* @param {string} dir
|
|
9
|
-
* @param {{ strict?: boolean }} [opts]
|
|
10
|
-
* @returns {Promise<Array<{ name: string, entry: string, chunkId?: string }>>}
|
|
11
|
-
*/
|
|
12
|
-
export declare function listClientComponents(dir: any, opts?: {}): Promise<{
|
|
13
|
-
name: any;
|
|
14
|
-
entry: any;
|
|
15
|
-
chunkId: any;
|
|
16
|
-
}[]>;
|
|
17
|
-
/**
|
|
18
|
-
* Sync variant for callers that already use fs sync (legacy static-emit helpers).
|
|
19
|
-
* @param {string} dir
|
|
20
|
-
* @param {{ strict?: boolean }} [opts]
|
|
21
|
-
* @returns {Array<{ name: string, entry: string, chunkId?: string }>}
|
|
22
|
-
*/
|
|
23
|
-
export declare function listClientComponentsSync(dir: any, opts?: {}): {
|
|
24
|
-
name: any;
|
|
25
|
-
entry: any;
|
|
26
|
-
chunkId: any;
|
|
27
|
-
}[];
|
|
28
|
-
/**
|
|
29
|
-
* @param {Array<{ name: string, entry: string, chunkId?: string }>} entries
|
|
30
|
-
* @param {Record<string, string> | undefined} explicit
|
|
31
|
-
* @returns {Array<{ name: string, entry: string, chunkId?: string }>}
|
|
32
|
-
*/
|
|
33
|
-
export declare function mergeComponentEntries(entries: any, explicit: any): {
|
|
34
|
-
name: any;
|
|
35
|
-
entry: any;
|
|
36
|
-
chunkId: any;
|
|
37
|
-
}[];
|
|
38
|
-
/**
|
|
39
|
-
* @param {string} distDir
|
|
40
|
-
* @param {Record<string, string> | undefined} [explicit]
|
|
41
|
-
* @param {{ strict?: boolean, closureRoots?: string[] }} [opts]
|
|
42
|
-
* @returns {Promise<Array<{ name: string, entry: string, chunkId?: string }>>}
|
|
43
|
-
*/
|
|
44
|
-
export declare function resolveComponentEntries(distDir: any, explicit: any, opts?: {}): Promise<{
|
|
45
|
-
name: any;
|
|
46
|
-
entry: any;
|
|
47
|
-
chunkId: any;
|
|
48
|
-
}[]>;
|
|
49
|
-
/**
|
|
50
|
-
* Import all (or filtered) client components and register for SSR / static emit / test hosts.
|
|
51
|
-
* @param {string} distDir
|
|
52
|
-
* @param {(map: Record<string, unknown>) => void} registerComponents
|
|
53
|
-
* @param {{
|
|
54
|
-
* cacheBust?: string | number,
|
|
55
|
-
* include?: (entry: { name: string, entry: string, chunkId?: string }) => boolean,
|
|
56
|
-
* explicit?: Record<string, string>,
|
|
57
|
-
* strict?: boolean,
|
|
58
|
-
* closureRoots?: string[],
|
|
59
|
-
* preload?: 'all' | 'closure' | 'none',
|
|
60
|
-
* }} [opts]
|
|
61
|
-
*/
|
|
62
|
-
export declare function preloadComponentRegistry(distDir: any, registerComponents: any, opts?: {}): Promise<{}>;
|
package/dist/native-addon.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Discover and load the vmz N-API addon (same contract as `@vmz/vmz` loadNative).
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @returns {any}
|
|
6
|
-
*/
|
|
7
|
-
export declare function loadNativeAddon(): any;
|
|
8
|
-
/**
|
|
9
|
-
* @param {string} fnName
|
|
10
|
-
* @returns {any}
|
|
11
|
-
*/
|
|
12
|
-
export declare function requireNativeFn(fnName: any): any;
|
package/dist/render-host.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unified SSR/DOM render host — explicit deployment bootstrap before renderToString/stream/mount.
|
|
3
|
-
* Hosts must not call renderToString until ensureComponents() has run for the active closure.
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @param {string} distDir
|
|
7
|
-
* @param {{
|
|
8
|
-
* strictDeployment?: boolean,
|
|
9
|
-
* strict?: boolean,
|
|
10
|
-
* explicit?: Record<string, string>,
|
|
11
|
-
* cacheBust?: string | number,
|
|
12
|
-
* preload?: 'all' | 'closure' | 'none',
|
|
13
|
-
* closureRoots?: string[],
|
|
14
|
-
* }} [opts]
|
|
15
|
-
*/
|
|
16
|
-
export declare function createRenderHost(distDir: any, opts?: {}): Promise<{
|
|
17
|
-
distDir: any;
|
|
18
|
-
deployment: any;
|
|
19
|
-
dom: any;
|
|
20
|
-
loadedChunkIds: Set<unknown>;
|
|
21
|
-
ensureComponents: (rootChunkIds: any) => Promise<{}>;
|
|
22
|
-
closureChunkIds: (rootChunkIds: any) => Set<unknown>;
|
|
23
|
-
renderToString: any;
|
|
24
|
-
renderToStream: any;
|
|
25
|
-
mount: any;
|
|
26
|
-
hydrate: any;
|
|
27
|
-
resume: any;
|
|
28
|
-
destroy: any;
|
|
29
|
-
flushPending: any;
|
|
30
|
-
/** @deprecated Prefer ensureComponents via createRenderHost; low-level escape hatch. */
|
|
31
|
-
registerComponents: any;
|
|
32
|
-
}>;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unknown Direct component resilience (`ssr-unknown-component-error-node`).
|
|
3
|
-
* Leaf failure → subtree error node; do not throw out of document SSR.
|
|
4
|
-
*/
|
|
5
|
-
/** @type {string} */
|
|
6
|
-
export declare const UNKNOWN_COMPONENT_ERROR = "unknown-component";
|
|
7
|
-
/**
|
|
8
|
-
* Append a leaf diagnostic for tooling (does not replace the error node).
|
|
9
|
-
* @param {string} name
|
|
10
|
-
* @param {string} [via]
|
|
11
|
-
*/
|
|
12
|
-
export declare function noteUnknownComponent(name: any, via?: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* SSR serialize-tree error node (keeps document HTTP 200).
|
|
15
|
-
* @param {string} name
|
|
16
|
-
*/
|
|
17
|
-
export declare function serializeUnknownComponentNode(name: any): {
|
|
18
|
-
__kind: string;
|
|
19
|
-
tag: string;
|
|
20
|
-
attrs: {
|
|
21
|
-
'data-vmz-error': string;
|
|
22
|
-
'data-vmz-component': string;
|
|
23
|
-
};
|
|
24
|
-
children: any[];
|
|
25
|
-
appendChild(c: any): void;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Live DOM error host (client create / schedule).
|
|
29
|
-
* @param {string} name
|
|
30
|
-
* @param {string} [via]
|
|
31
|
-
* @returns {HTMLElement}
|
|
32
|
-
*/
|
|
33
|
-
export declare function createUnknownComponentElement(name: any, via?: string): HTMLDivElement;
|
|
34
|
-
/**
|
|
35
|
-
* Mark an existing island host as unknown (resume / EventEntry).
|
|
36
|
-
* @param {HTMLElement} el
|
|
37
|
-
* @param {string} name
|
|
38
|
-
* @param {string} [via]
|
|
39
|
-
*/
|
|
40
|
-
export declare function markUnknownComponentHost(el: any, name: any, via?: string): void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|