@wc-bindable/composite 0.8.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 +379 -0
- package/dist/createCompositeTarget.d.ts +16 -0
- package/dist/createCompositeTarget.d.ts.map +1 -0
- package/dist/createCompositeTarget.js +143 -0
- package/dist/createCompositeTarget.js.map +1 -0
- package/dist/declarative.d.ts +162 -0
- package/dist/declarative.d.ts.map +1 -0
- package/dist/declarative.js +491 -0
- package/dist/declarative.js.map +1 -0
- package/dist/engine.d.ts +118 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +447 -0
- package/dist/engine.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/lit.d.ts +138 -0
- package/dist/lit.d.ts.map +1 -0
- package/dist/lit.js +273 -0
- package/dist/lit.js.map +1 -0
- package/dist/logger.d.ts +29 -0
- package/dist/logger.d.ts.map +1 -0
- package/dist/logger.js +44 -0
- package/dist/logger.js.map +1 -0
- package/dist/reservedNames.d.ts +25 -0
- package/dist/reservedNames.d.ts.map +1 -0
- package/dist/reservedNames.js +77 -0
- package/dist/reservedNames.js.map +1 -0
- package/dist/types.d.ts +91 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +13 -0
- package/dist/types.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declarative.js","sourceRoot":"","sources":["../src/declarative.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAwB,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,aAAa,EAAe,MAAM,aAAa,CAAC;AACzD,OAAO,EACL,yBAAyB,EACzB,sBAAsB,GAKvB,MAAM,YAAY,CAAC;AAiDpB,MAAM,iBAAiB,GACrB,OAAO,cAAc,KAAK,WAAW,CAAC,CAAC,CAA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AAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,2EAA2E,CAAC,CAAC;IAC/F,CAAC;IAED,+EAA+E;IAC/E,2EAA2E;IAC3E,8DAA8D;IAC9D,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,gCAAgC,CAAC,CAAC,CAAC;IACxF,IACE,IAAI,YAAY,OAAO;QACvB,IAAI,CAAC,OAAO,CAAC,gCAAgC,CAAC;QAC9C,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,EAC3B,CAAC;QACD,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IACD,MAAM,OAAO,GAA2C,EAAE,CAAC;IAE3D,KAAK,MAAM,GAAG,IAAI,WAAW,EAAE,CAAC;QAC9B,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;QACpC,IAAI,CAAC,MAAM;YAAE,SAAS;QACtB,OAAO,CAAC,IAAI,CACV,eAAe,CAAC;YACd,OAAO,EAAE,GAAG,CAAC,SAAS;YACtB,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,WAAW,EAAE,OAAO,EAAE,WAAW;YACjC,gBAAgB,EAAE,OAAO,EAAE,gBAAgB;YAC3C,MAAM,EAAE,OAAO,EAAE,MAAM;SACxB,CAAC,CACH,CAAC;IACJ,CAAC;IAED,OAAO,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;AAC9B,CAAC"}
|
package/dist/engine.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type WcBindableDeclaration } from "@wc-bindable/core";
|
|
2
|
+
import { type Logger } from "./logger.js";
|
|
3
|
+
import type { ExposeConfig } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* Default shell-owned event-name namespace (COMPOSITE.md § 6). A composed shell
|
|
6
|
+
* MUST expose shell-owned event names rather than reusing source event names;
|
|
7
|
+
* `@wc-bindable/composite:<composedName>` is unique per composed name because
|
|
8
|
+
* composed names are unique (§ 4).
|
|
9
|
+
*/
|
|
10
|
+
export declare const SHELL_EVENT_PREFIX = "@wc-bindable/composite:";
|
|
11
|
+
/**
|
|
12
|
+
* Shell-owned event that carries the already-extracted value **out of band**.
|
|
13
|
+
*
|
|
14
|
+
* A plain `new CustomEvent(type, { detail: undefined })` would surface top-level
|
|
15
|
+
* `undefined` as `null` at the structured-clone / `detail` boundary, violating
|
|
16
|
+
* the § 7 undefined / null preservation MUST. Carrying the value as an ordinary
|
|
17
|
+
* own JS property (read by {@link readShellEventValue}) round-trips it faithfully.
|
|
18
|
+
*/
|
|
19
|
+
export declare class CompositeUpdateEvent extends Event {
|
|
20
|
+
readonly value: unknown;
|
|
21
|
+
constructor(type: string, value: unknown);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* An instance-independent resolved property. It records which source *id* and
|
|
25
|
+
* member back this composed property, plus the shell-owned event name — but not
|
|
26
|
+
* the source instance, so one plan can drive many shell instances (the shared
|
|
27
|
+
* static declaration of a declarative custom element, § 11).
|
|
28
|
+
*/
|
|
29
|
+
interface PlanProperty {
|
|
30
|
+
composedName: string;
|
|
31
|
+
sourceId: string;
|
|
32
|
+
sourceName: string;
|
|
33
|
+
sourceEvent: string;
|
|
34
|
+
sourceGetter?: (event: Event) => unknown;
|
|
35
|
+
shellEvent: string;
|
|
36
|
+
}
|
|
37
|
+
interface PlanInput {
|
|
38
|
+
composedName: string;
|
|
39
|
+
sourceId: string;
|
|
40
|
+
sourceName: string;
|
|
41
|
+
attribute?: string;
|
|
42
|
+
}
|
|
43
|
+
interface PlanCommand {
|
|
44
|
+
composedName: string;
|
|
45
|
+
sourceId: string;
|
|
46
|
+
sourceName: string;
|
|
47
|
+
async?: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface CompositionPlan {
|
|
50
|
+
properties: PlanProperty[];
|
|
51
|
+
inputs: PlanInput[];
|
|
52
|
+
commands: PlanCommand[];
|
|
53
|
+
/** The synthesized, frozen core declaration (§ 2, § 11). */
|
|
54
|
+
declaration: WcBindableDeclaration;
|
|
55
|
+
localFacade: boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Read and validate each source target's declaration, keyed by source id. Each
|
|
59
|
+
* source MUST be a valid wc-bindable target (§ Declarative precondition / § 1
|
|
60
|
+
* discovery). Throws on an invalid source.
|
|
61
|
+
*/
|
|
62
|
+
export declare function declarationsFromSources(sources: Record<string, EventTarget>): Map<string, WcBindableDeclaration>;
|
|
63
|
+
/**
|
|
64
|
+
* Plan a composition from per-source declarations and an expose configuration,
|
|
65
|
+
* applying every § 3 / § 4 validation rule and synthesizing the immutable core
|
|
66
|
+
* declaration. The result is instance-independent so it can be shared as the
|
|
67
|
+
* `static wcBindable` of a class whose instances each build their own engine.
|
|
68
|
+
* Throws on any invalid configuration (finalize-before-observe, § 11).
|
|
69
|
+
*/
|
|
70
|
+
export declare function planComposition(sourceDecls: Map<string, WcBindableDeclaration>, expose: ExposeConfig, options: {
|
|
71
|
+
localFacade: boolean;
|
|
72
|
+
}): CompositionPlan;
|
|
73
|
+
/**
|
|
74
|
+
* Runtime engine for one composed shell instance. Owns source-listener
|
|
75
|
+
* lifecycle, the readable value cache / presence set, the three-phase fan-out,
|
|
76
|
+
* and the T2 delegation surface. It dispatches shell events on an injected
|
|
77
|
+
* `dispatchTarget` so the same engine drives both the headless Proxy shell and
|
|
78
|
+
* a declarative custom element instance.
|
|
79
|
+
*/
|
|
80
|
+
export declare class CompositeEngine {
|
|
81
|
+
#private;
|
|
82
|
+
readonly plan: CompositionPlan;
|
|
83
|
+
/**
|
|
84
|
+
* @param plan instance-independent composition plan (from {@link planComposition}).
|
|
85
|
+
* @param sources source id -> the concrete source instance for this shell.
|
|
86
|
+
* @param dispatchTarget where shell events are dispatched and consumers listen.
|
|
87
|
+
*/
|
|
88
|
+
constructor(plan: CompositionPlan, sources: Map<string, EventTarget>, dispatchTarget: EventTarget, logger: Logger);
|
|
89
|
+
get declaration(): WcBindableDeclaration;
|
|
90
|
+
get localFacade(): boolean;
|
|
91
|
+
get disposed(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Install one listener per (source, event) occurrence. On any install-time
|
|
94
|
+
* throw (e.g. a hostile source's `addEventListener`), every listener already
|
|
95
|
+
* installed for this shell is torn down before the error propagates (§ 12
|
|
96
|
+
* source-listener install failure).
|
|
97
|
+
*/
|
|
98
|
+
install(): void;
|
|
99
|
+
/** § 5 presence: committed, or the source currently reports the member present. */
|
|
100
|
+
has(composedName: string): boolean;
|
|
101
|
+
/** § 5 value read: committed cache, else the source's current value, else undefined. */
|
|
102
|
+
getValue(composedName: string): unknown;
|
|
103
|
+
isProperty(name: string): boolean;
|
|
104
|
+
isInput(name: string): boolean;
|
|
105
|
+
isCommand(name: string): boolean;
|
|
106
|
+
/** T2 input assignment delegation: `shell[N] = v` -> `source[M] = v` (§ 8). */
|
|
107
|
+
setInput(composedName: string, value: unknown): void;
|
|
108
|
+
/** The stable delegating function for a composed command (T2 method call). */
|
|
109
|
+
getCommand(composedName: string): ((...args: unknown[]) => unknown) | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* § 10 terminal teardown: idempotent; removes every installed source listener.
|
|
112
|
+
* Does NOT dispose source targets (borrow semantics — sources frequently
|
|
113
|
+
* outlive a shell).
|
|
114
|
+
*/
|
|
115
|
+
dispose(): void;
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=engine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAmB,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAM3D,OAAO,KAAK,EAAE,YAAY,EAAa,MAAM,YAAY,CAAC;A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MAAM,EAAE,YAAY,EACpB,OAAO,EAAE;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,GAChC,eAAe,CA8LjB;AAMD;;;;;;GAMG;AACH,qBAAa,eAAe;;IAC1B,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAqB/B;;;;OAIG;gBAED,IAAI,EAAE,eAAe,EACrB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,EACjC,cAAc,EAAE,WAAW,EAC3B,MAAM,EAAE,MAAM;IA0DhB,IAAI,WAAW,IAAI,qBAAqB,CAEvC;IAED,IAAI,WAAW,IAAI,OAAO,CAEzB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;;;OAKG;IACH,OAAO,IAAI,IAAI;IAwDf,mFAAmF;IACnF,GAAG,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAWlC,wFAAwF;IACxF,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAcvC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAI9B,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIhC,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IAYpD,8EAA8E;IAC9E,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS;IAI/E;;;;OAIG;IACH,OAAO,IAAI,IAAI;CAYhB"}
|
package/dist/engine.js
ADDED
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
2
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
4
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
5
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
8
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
9
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
|
+
};
|
|
12
|
+
var _CompositeEngine_instances, _CompositeEngine_dispatchTarget, _CompositeEngine_logger, _CompositeEngine_cache, _CompositeEngine_present, _CompositeEngine_propByName, _CompositeEngine_inputByName, _CompositeEngine_commandFns, _CompositeEngine_groups, _CompositeEngine_cleanups, _CompositeEngine_installed, _CompositeEngine_disposed, _CompositeEngine_fanOut;
|
|
13
|
+
import { getWcBindableDeclaration, } from "@wc-bindable/core";
|
|
14
|
+
import { reportComposite } from "./logger.js";
|
|
15
|
+
import { isReservedComposedName, isReservedSourceId, reservedComposedNameReason, } from "./reservedNames.js";
|
|
16
|
+
/**
|
|
17
|
+
* Default shell-owned event-name namespace (COMPOSITE.md § 6). A composed shell
|
|
18
|
+
* MUST expose shell-owned event names rather than reusing source event names;
|
|
19
|
+
* `@wc-bindable/composite:<composedName>` is unique per composed name because
|
|
20
|
+
* composed names are unique (§ 4).
|
|
21
|
+
*/
|
|
22
|
+
export const SHELL_EVENT_PREFIX = "@wc-bindable/composite:";
|
|
23
|
+
/**
|
|
24
|
+
* Shell-owned event that carries the already-extracted value **out of band**.
|
|
25
|
+
*
|
|
26
|
+
* A plain `new CustomEvent(type, { detail: undefined })` would surface top-level
|
|
27
|
+
* `undefined` as `null` at the structured-clone / `detail` boundary, violating
|
|
28
|
+
* the § 7 undefined / null preservation MUST. Carrying the value as an ordinary
|
|
29
|
+
* own JS property (read by {@link readShellEventValue}) round-trips it faithfully.
|
|
30
|
+
*/
|
|
31
|
+
export class CompositeUpdateEvent extends Event {
|
|
32
|
+
constructor(type, value) {
|
|
33
|
+
super(type);
|
|
34
|
+
this.value = value;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/** Synthesized-descriptor getter that reads the out-of-band value (§ 7). */
|
|
38
|
+
function readShellEventValue(event) {
|
|
39
|
+
return event.value;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Read and validate each source target's declaration, keyed by source id. Each
|
|
43
|
+
* source MUST be a valid wc-bindable target (§ Declarative precondition / § 1
|
|
44
|
+
* discovery). Throws on an invalid source.
|
|
45
|
+
*/
|
|
46
|
+
export function declarationsFromSources(sources) {
|
|
47
|
+
const out = new Map();
|
|
48
|
+
for (const id of Object.keys(sources)) {
|
|
49
|
+
const decl = getWcBindableDeclaration(sources[id]);
|
|
50
|
+
if (!decl) {
|
|
51
|
+
throw new Error(`@wc-bindable/composite: source ${JSON.stringify(id)} is not a valid wc-bindable target`);
|
|
52
|
+
}
|
|
53
|
+
out.set(id, decl);
|
|
54
|
+
}
|
|
55
|
+
return out;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Plan a composition from per-source declarations and an expose configuration,
|
|
59
|
+
* applying every § 3 / § 4 validation rule and synthesizing the immutable core
|
|
60
|
+
* declaration. The result is instance-independent so it can be shared as the
|
|
61
|
+
* `static wcBindable` of a class whose instances each build their own engine.
|
|
62
|
+
* Throws on any invalid configuration (finalize-before-observe, § 11).
|
|
63
|
+
*/
|
|
64
|
+
export function planComposition(sourceDecls, expose, options) {
|
|
65
|
+
// § 3: source-id validation.
|
|
66
|
+
for (const id of sourceDecls.keys()) {
|
|
67
|
+
if (isReservedSourceId(id)) {
|
|
68
|
+
throw new Error(`@wc-bindable/composite: invalid source id ${JSON.stringify(id)} ` +
|
|
69
|
+
`(must be non-empty, contain no ".", and not be __proto__/constructor/prototype)`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
const findMember = (decl, kind, name) => {
|
|
73
|
+
const list = kind === "properties"
|
|
74
|
+
? decl.properties
|
|
75
|
+
: kind === "inputs"
|
|
76
|
+
? (decl.inputs ?? [])
|
|
77
|
+
: (decl.commands ?? []);
|
|
78
|
+
return list.find((entry) => entry.name === name);
|
|
79
|
+
};
|
|
80
|
+
const collectExplicit = (map, kind) => {
|
|
81
|
+
const out = [];
|
|
82
|
+
if (!map)
|
|
83
|
+
return out;
|
|
84
|
+
for (const composedName of Object.keys(map)) {
|
|
85
|
+
const ref = map[composedName];
|
|
86
|
+
const decl = sourceDecls.get(ref.source);
|
|
87
|
+
if (!decl) {
|
|
88
|
+
throw new Error(`@wc-bindable/composite: expose ${JSON.stringify(composedName)} references unknown source ${JSON.stringify(ref.source)}`);
|
|
89
|
+
}
|
|
90
|
+
if (!findMember(decl, kind, ref.name)) {
|
|
91
|
+
throw new Error(`@wc-bindable/composite: expose ${JSON.stringify(composedName)} references ${kind} member ` +
|
|
92
|
+
`${JSON.stringify(ref.name)} that does not exist on source ${JSON.stringify(ref.source)}`);
|
|
93
|
+
}
|
|
94
|
+
out.push({ composedName, sourceId: ref.source, sourceName: ref.name });
|
|
95
|
+
}
|
|
96
|
+
return out;
|
|
97
|
+
};
|
|
98
|
+
const collectAll = (kind) => {
|
|
99
|
+
const out = [];
|
|
100
|
+
for (const [id, decl] of sourceDecls) {
|
|
101
|
+
const list = kind === "properties" ? decl.properties : kind === "inputs" ? (decl.inputs ?? []) : (decl.commands ?? []);
|
|
102
|
+
for (const member of list) {
|
|
103
|
+
out.push({ composedName: `${id}.${member.name}`, sourceId: id, sourceName: member.name });
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return out;
|
|
107
|
+
};
|
|
108
|
+
let rawProperties;
|
|
109
|
+
let rawInputs;
|
|
110
|
+
let rawCommands;
|
|
111
|
+
if (expose === "all-prefixed") {
|
|
112
|
+
rawProperties = collectAll("properties");
|
|
113
|
+
rawInputs = collectAll("inputs");
|
|
114
|
+
rawCommands = collectAll("commands");
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
rawProperties = collectExplicit(expose.properties, "properties");
|
|
118
|
+
rawInputs = collectExplicit(expose.inputs, "inputs");
|
|
119
|
+
rawCommands = collectExplicit(expose.commands, "commands");
|
|
120
|
+
}
|
|
121
|
+
// § 4: reserved names, then per-list uniqueness.
|
|
122
|
+
const assertUnique = (raws, kind) => {
|
|
123
|
+
const seen = new Set();
|
|
124
|
+
for (const raw of raws) {
|
|
125
|
+
if (isReservedComposedName(raw.composedName)) {
|
|
126
|
+
throw new Error(`@wc-bindable/composite: composed name ${JSON.stringify(raw.composedName)} is reserved ` +
|
|
127
|
+
`(${reservedComposedNameReason(raw.composedName)})`);
|
|
128
|
+
}
|
|
129
|
+
if (seen.has(raw.composedName)) {
|
|
130
|
+
throw new Error(`@wc-bindable/composite: duplicate composed ${kind} name ${JSON.stringify(raw.composedName)}`);
|
|
131
|
+
}
|
|
132
|
+
seen.add(raw.composedName);
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
assertUnique(rawProperties, "properties");
|
|
136
|
+
assertUnique(rawInputs, "inputs");
|
|
137
|
+
assertUnique(rawCommands, "commands");
|
|
138
|
+
// § 4 cross-surface collisions (T2 only): a name that materializes as more
|
|
139
|
+
// than one member of the same object is ambiguous.
|
|
140
|
+
if (options.localFacade) {
|
|
141
|
+
const acrossSurfaces = new Map();
|
|
142
|
+
const checkAcross = (raws, kind) => {
|
|
143
|
+
for (const raw of raws) {
|
|
144
|
+
const prior = acrossSurfaces.get(raw.composedName);
|
|
145
|
+
if (prior !== undefined && prior !== kind) {
|
|
146
|
+
throw new Error(`@wc-bindable/composite: composed name ${JSON.stringify(raw.composedName)} collides across ` +
|
|
147
|
+
`${prior} and ${kind} (a local-facade member cannot be two things at once)`);
|
|
148
|
+
}
|
|
149
|
+
acrossSurfaces.set(raw.composedName, kind);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
checkAcross(rawProperties, "properties");
|
|
153
|
+
checkAcross(rawInputs, "inputs");
|
|
154
|
+
checkAcross(rawCommands, "commands");
|
|
155
|
+
}
|
|
156
|
+
const properties = rawProperties.map((raw) => {
|
|
157
|
+
const member = findMember(sourceDecls.get(raw.sourceId), "properties", raw.sourceName);
|
|
158
|
+
return {
|
|
159
|
+
composedName: raw.composedName,
|
|
160
|
+
sourceId: raw.sourceId,
|
|
161
|
+
sourceName: raw.sourceName,
|
|
162
|
+
sourceEvent: member.event,
|
|
163
|
+
sourceGetter: member.getter,
|
|
164
|
+
shellEvent: SHELL_EVENT_PREFIX + raw.composedName,
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
const inputs = rawInputs.map((raw) => {
|
|
168
|
+
const member = findMember(sourceDecls.get(raw.sourceId), "inputs", raw.sourceName);
|
|
169
|
+
return {
|
|
170
|
+
composedName: raw.composedName,
|
|
171
|
+
sourceId: raw.sourceId,
|
|
172
|
+
sourceName: raw.sourceName,
|
|
173
|
+
attribute: member.attribute,
|
|
174
|
+
};
|
|
175
|
+
});
|
|
176
|
+
const commands = rawCommands.map((raw) => {
|
|
177
|
+
const member = findMember(sourceDecls.get(raw.sourceId), "commands", raw.sourceName);
|
|
178
|
+
return {
|
|
179
|
+
composedName: raw.composedName,
|
|
180
|
+
sourceId: raw.sourceId,
|
|
181
|
+
sourceName: raw.sourceName,
|
|
182
|
+
// § 9: the async hint is copied straight from the source command
|
|
183
|
+
// descriptor — the shell never infers asynchrony.
|
|
184
|
+
async: member.async,
|
|
185
|
+
};
|
|
186
|
+
});
|
|
187
|
+
// § 2: build the synthesized core declaration. Property descriptors carry the
|
|
188
|
+
// out-of-band-value getter (§ 7); inputs / commands are declared metadata.
|
|
189
|
+
const declaration = {
|
|
190
|
+
protocol: "wc-bindable",
|
|
191
|
+
version: 1,
|
|
192
|
+
properties: properties.map((p) => ({
|
|
193
|
+
name: p.composedName,
|
|
194
|
+
event: p.shellEvent,
|
|
195
|
+
getter: readShellEventValue,
|
|
196
|
+
})),
|
|
197
|
+
};
|
|
198
|
+
if (inputs.length > 0) {
|
|
199
|
+
declaration.inputs = inputs.map((i) => i.attribute !== undefined ? { name: i.composedName, attribute: i.attribute } : { name: i.composedName });
|
|
200
|
+
}
|
|
201
|
+
if (commands.length > 0) {
|
|
202
|
+
declaration.commands = commands.map((c) => c.async !== undefined ? { name: c.composedName, async: c.async } : { name: c.composedName });
|
|
203
|
+
}
|
|
204
|
+
// § 11: freeze so the declaration cannot drift once observable.
|
|
205
|
+
declaration.properties.forEach((p) => Object.freeze(p));
|
|
206
|
+
declaration.inputs?.forEach((i) => Object.freeze(i));
|
|
207
|
+
declaration.commands?.forEach((c) => Object.freeze(c));
|
|
208
|
+
Object.freeze(declaration.properties);
|
|
209
|
+
if (declaration.inputs)
|
|
210
|
+
Object.freeze(declaration.inputs);
|
|
211
|
+
if (declaration.commands)
|
|
212
|
+
Object.freeze(declaration.commands);
|
|
213
|
+
Object.freeze(declaration);
|
|
214
|
+
return { properties, inputs, commands, declaration, localFacade: options.localFacade };
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Runtime engine for one composed shell instance. Owns source-listener
|
|
218
|
+
* lifecycle, the readable value cache / presence set, the three-phase fan-out,
|
|
219
|
+
* and the T2 delegation surface. It dispatches shell events on an injected
|
|
220
|
+
* `dispatchTarget` so the same engine drives both the headless Proxy shell and
|
|
221
|
+
* a declarative custom element instance.
|
|
222
|
+
*/
|
|
223
|
+
export class CompositeEngine {
|
|
224
|
+
/**
|
|
225
|
+
* @param plan instance-independent composition plan (from {@link planComposition}).
|
|
226
|
+
* @param sources source id -> the concrete source instance for this shell.
|
|
227
|
+
* @param dispatchTarget where shell events are dispatched and consumers listen.
|
|
228
|
+
*/
|
|
229
|
+
constructor(plan, sources, dispatchTarget, logger) {
|
|
230
|
+
_CompositeEngine_instances.add(this);
|
|
231
|
+
_CompositeEngine_dispatchTarget.set(this, void 0);
|
|
232
|
+
_CompositeEngine_logger.set(this, void 0);
|
|
233
|
+
/** composedName -> committed value (§ 6 commit phase). */
|
|
234
|
+
_CompositeEngine_cache.set(this, new Map());
|
|
235
|
+
/** composedName -> presence (§ 5 `in`). */
|
|
236
|
+
_CompositeEngine_present.set(this, new Set());
|
|
237
|
+
/** composedName -> resolved property (with bound source instance). */
|
|
238
|
+
_CompositeEngine_propByName.set(this, new Map());
|
|
239
|
+
/** composedName -> { source, sourceName } for input delegation. */
|
|
240
|
+
_CompositeEngine_inputByName.set(this, new Map());
|
|
241
|
+
/** composedName -> stable delegating command function (T2). */
|
|
242
|
+
_CompositeEngine_commandFns.set(this, new Map());
|
|
243
|
+
/** One fan-out group per (source target, source event) occurrence (§ 6). */
|
|
244
|
+
_CompositeEngine_groups.set(this, []);
|
|
245
|
+
_CompositeEngine_cleanups.set(this, []);
|
|
246
|
+
_CompositeEngine_installed.set(this, false);
|
|
247
|
+
_CompositeEngine_disposed.set(this, false);
|
|
248
|
+
this.plan = plan;
|
|
249
|
+
__classPrivateFieldSet(this, _CompositeEngine_dispatchTarget, dispatchTarget, "f");
|
|
250
|
+
__classPrivateFieldSet(this, _CompositeEngine_logger, logger, "f");
|
|
251
|
+
const sourceOf = (id) => {
|
|
252
|
+
const source = sources.get(id);
|
|
253
|
+
if (!source) {
|
|
254
|
+
throw new Error(`@wc-bindable/composite: no source instance provided for source id ${JSON.stringify(id)}`);
|
|
255
|
+
}
|
|
256
|
+
return source;
|
|
257
|
+
};
|
|
258
|
+
for (const prop of plan.properties) {
|
|
259
|
+
__classPrivateFieldGet(this, _CompositeEngine_propByName, "f").set(prop.composedName, { ...prop, source: sourceOf(prop.sourceId) });
|
|
260
|
+
}
|
|
261
|
+
for (const input of plan.inputs) {
|
|
262
|
+
__classPrivateFieldGet(this, _CompositeEngine_inputByName, "f").set(input.composedName, {
|
|
263
|
+
source: sourceOf(input.sourceId),
|
|
264
|
+
sourceName: input.sourceName,
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
for (const command of plan.commands) {
|
|
268
|
+
const source = sourceOf(command.sourceId);
|
|
269
|
+
const { sourceName, composedName } = command;
|
|
270
|
+
__classPrivateFieldGet(this, _CompositeEngine_commandFns, "f").set(composedName, (...args) => {
|
|
271
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_disposed, "f")) {
|
|
272
|
+
throw new Error(`@wc-bindable/composite: command ${composedName} called after dispose()`);
|
|
273
|
+
}
|
|
274
|
+
// Method-call form so `this` is the source; the source's completion
|
|
275
|
+
// shape (sync throw vs. rejected promise) is preserved verbatim (§ 9).
|
|
276
|
+
const fn = source[sourceName];
|
|
277
|
+
return fn.apply(source, args);
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
// Group properties by occurrence, preserving declaration order within each
|
|
281
|
+
// group so phase-3 dispatch is deterministic (§ 6).
|
|
282
|
+
const byOccurrence = new Map();
|
|
283
|
+
for (const prop of __classPrivateFieldGet(this, _CompositeEngine_propByName, "f").values()) {
|
|
284
|
+
let byEvent = byOccurrence.get(prop.source);
|
|
285
|
+
if (!byEvent) {
|
|
286
|
+
byEvent = new Map();
|
|
287
|
+
byOccurrence.set(prop.source, byEvent);
|
|
288
|
+
}
|
|
289
|
+
let regs = byEvent.get(prop.sourceEvent);
|
|
290
|
+
if (!regs) {
|
|
291
|
+
regs = [];
|
|
292
|
+
byEvent.set(prop.sourceEvent, regs);
|
|
293
|
+
}
|
|
294
|
+
regs.push(prop);
|
|
295
|
+
}
|
|
296
|
+
for (const [source, byEvent] of byOccurrence) {
|
|
297
|
+
for (const [event, regs] of byEvent)
|
|
298
|
+
__classPrivateFieldGet(this, _CompositeEngine_groups, "f").push({ source, event, regs });
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
get declaration() {
|
|
302
|
+
return this.plan.declaration;
|
|
303
|
+
}
|
|
304
|
+
get localFacade() {
|
|
305
|
+
return this.plan.localFacade;
|
|
306
|
+
}
|
|
307
|
+
get disposed() {
|
|
308
|
+
return __classPrivateFieldGet(this, _CompositeEngine_disposed, "f");
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Install one listener per (source, event) occurrence. On any install-time
|
|
312
|
+
* throw (e.g. a hostile source's `addEventListener`), every listener already
|
|
313
|
+
* installed for this shell is torn down before the error propagates (§ 12
|
|
314
|
+
* source-listener install failure).
|
|
315
|
+
*/
|
|
316
|
+
install() {
|
|
317
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_installed, "f") || __classPrivateFieldGet(this, _CompositeEngine_disposed, "f"))
|
|
318
|
+
return;
|
|
319
|
+
const cleanups = [];
|
|
320
|
+
try {
|
|
321
|
+
for (const group of __classPrivateFieldGet(this, _CompositeEngine_groups, "f")) {
|
|
322
|
+
const handler = (event) => __classPrivateFieldGet(this, _CompositeEngine_instances, "m", _CompositeEngine_fanOut).call(this, group.regs, event);
|
|
323
|
+
group.source.addEventListener(group.event, handler);
|
|
324
|
+
cleanups.push(() => group.source.removeEventListener(group.event, handler));
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
catch (err) {
|
|
328
|
+
for (const cleanup of cleanups) {
|
|
329
|
+
try {
|
|
330
|
+
cleanup();
|
|
331
|
+
}
|
|
332
|
+
catch {
|
|
333
|
+
/* swallow secondary teardown errors */
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
throw err;
|
|
337
|
+
}
|
|
338
|
+
__classPrivateFieldSet(this, _CompositeEngine_cleanups, cleanups, "f");
|
|
339
|
+
__classPrivateFieldSet(this, _CompositeEngine_installed, true, "f");
|
|
340
|
+
}
|
|
341
|
+
/** § 5 presence: committed, or the source currently reports the member present. */
|
|
342
|
+
has(composedName) {
|
|
343
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_present, "f").has(composedName))
|
|
344
|
+
return true;
|
|
345
|
+
const reg = __classPrivateFieldGet(this, _CompositeEngine_propByName, "f").get(composedName);
|
|
346
|
+
if (!reg)
|
|
347
|
+
return false;
|
|
348
|
+
try {
|
|
349
|
+
return reg.sourceName in reg.source;
|
|
350
|
+
}
|
|
351
|
+
catch {
|
|
352
|
+
return false;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
/** § 5 value read: committed cache, else the source's current value, else undefined. */
|
|
356
|
+
getValue(composedName) {
|
|
357
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_present, "f").has(composedName))
|
|
358
|
+
return __classPrivateFieldGet(this, _CompositeEngine_cache, "f").get(composedName);
|
|
359
|
+
const reg = __classPrivateFieldGet(this, _CompositeEngine_propByName, "f").get(composedName);
|
|
360
|
+
if (!reg)
|
|
361
|
+
return undefined;
|
|
362
|
+
try {
|
|
363
|
+
if (reg.sourceName in reg.source) {
|
|
364
|
+
return reg.source[reg.sourceName];
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
catch {
|
|
368
|
+
/* fall through to undefined on a hostile source accessor */
|
|
369
|
+
}
|
|
370
|
+
return undefined;
|
|
371
|
+
}
|
|
372
|
+
isProperty(name) {
|
|
373
|
+
return __classPrivateFieldGet(this, _CompositeEngine_propByName, "f").has(name);
|
|
374
|
+
}
|
|
375
|
+
isInput(name) {
|
|
376
|
+
return __classPrivateFieldGet(this, _CompositeEngine_inputByName, "f").has(name);
|
|
377
|
+
}
|
|
378
|
+
isCommand(name) {
|
|
379
|
+
return __classPrivateFieldGet(this, _CompositeEngine_commandFns, "f").has(name);
|
|
380
|
+
}
|
|
381
|
+
/** T2 input assignment delegation: `shell[N] = v` -> `source[M] = v` (§ 8). */
|
|
382
|
+
setInput(composedName, value) {
|
|
383
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_disposed, "f")) {
|
|
384
|
+
throw new Error(`@wc-bindable/composite: input ${composedName} assigned after dispose()`);
|
|
385
|
+
}
|
|
386
|
+
const reg = __classPrivateFieldGet(this, _CompositeEngine_inputByName, "f").get(composedName);
|
|
387
|
+
if (!reg) {
|
|
388
|
+
throw new Error(`@wc-bindable/composite: unknown composed input ${JSON.stringify(composedName)}`);
|
|
389
|
+
}
|
|
390
|
+
// A throwing source setter propagates synchronously (§ 12 / vector 16).
|
|
391
|
+
reg.source[reg.sourceName] = value;
|
|
392
|
+
}
|
|
393
|
+
/** The stable delegating function for a composed command (T2 method call). */
|
|
394
|
+
getCommand(composedName) {
|
|
395
|
+
return __classPrivateFieldGet(this, _CompositeEngine_commandFns, "f").get(composedName);
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* § 10 terminal teardown: idempotent; removes every installed source listener.
|
|
399
|
+
* Does NOT dispose source targets (borrow semantics — sources frequently
|
|
400
|
+
* outlive a shell).
|
|
401
|
+
*/
|
|
402
|
+
dispose() {
|
|
403
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_disposed, "f"))
|
|
404
|
+
return;
|
|
405
|
+
__classPrivateFieldSet(this, _CompositeEngine_disposed, true, "f");
|
|
406
|
+
for (const cleanup of __classPrivateFieldGet(this, _CompositeEngine_cleanups, "f")) {
|
|
407
|
+
try {
|
|
408
|
+
cleanup();
|
|
409
|
+
}
|
|
410
|
+
catch {
|
|
411
|
+
/* best-effort teardown */
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
__classPrivateFieldSet(this, _CompositeEngine_cleanups, [], "f");
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
_CompositeEngine_dispatchTarget = new WeakMap(), _CompositeEngine_logger = new WeakMap(), _CompositeEngine_cache = new WeakMap(), _CompositeEngine_present = new WeakMap(), _CompositeEngine_propByName = new WeakMap(), _CompositeEngine_inputByName = new WeakMap(), _CompositeEngine_commandFns = new WeakMap(), _CompositeEngine_groups = new WeakMap(), _CompositeEngine_cleanups = new WeakMap(), _CompositeEngine_installed = new WeakMap(), _CompositeEngine_disposed = new WeakMap(), _CompositeEngine_instances = new WeakSet(), _CompositeEngine_fanOut = function _CompositeEngine_fanOut(regs, event) {
|
|
418
|
+
if (__classPrivateFieldGet(this, _CompositeEngine_disposed, "f"))
|
|
419
|
+
return;
|
|
420
|
+
// Phase 1 — extract. Evaluate every mapped property's getter into a buffer;
|
|
421
|
+
// never touch the cache here so no getter observes a partial update. A
|
|
422
|
+
// getter that throws is reported and omitted; its siblings still run (§ 12).
|
|
423
|
+
const buffered = [];
|
|
424
|
+
for (const reg of regs) {
|
|
425
|
+
let value;
|
|
426
|
+
try {
|
|
427
|
+
value = reg.sourceGetter ? reg.sourceGetter(event) : event.detail;
|
|
428
|
+
}
|
|
429
|
+
catch (err) {
|
|
430
|
+
reportComposite(err, __classPrivateFieldGet(this, _CompositeEngine_logger, "f"));
|
|
431
|
+
continue;
|
|
432
|
+
}
|
|
433
|
+
buffered.push({ reg, value });
|
|
434
|
+
}
|
|
435
|
+
// Phase 2 — commit. Make every buffered value readable before any dispatch,
|
|
436
|
+
// so a listener reading a sibling sees the new value (§ 6 sibling snapshot).
|
|
437
|
+
for (const { reg, value } of buffered) {
|
|
438
|
+
__classPrivateFieldGet(this, _CompositeEngine_cache, "f").set(reg.composedName, value);
|
|
439
|
+
__classPrivateFieldGet(this, _CompositeEngine_present, "f").add(reg.composedName);
|
|
440
|
+
}
|
|
441
|
+
// Phase 3 — dispatch one shell event per committed property, in declaration
|
|
442
|
+
// order, synchronously and without batching (§ 6 re-dispatch timing).
|
|
443
|
+
for (const { reg, value } of buffered) {
|
|
444
|
+
__classPrivateFieldGet(this, _CompositeEngine_dispatchTarget, "f").dispatchEvent(new CompositeUpdateEvent(reg.shellEvent, value));
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
//# sourceMappingURL=engine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine.js","sourceRoot":"","sources":["../src/engine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EACL,wBAAwB,GAEzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,eAAe,EAAe,MAAM,aAAa,CAAC;AAC3D,OAAO,E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AAG,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;IAED,4EAA4E;IAC5E,sEAAsE;IACtE,KAAK,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,QAAQ,EAAE,CAAC;QACtC,uBAAA,IAAI,uCAAgB,CAAC,aAAa,CAAC,IAAI,oBAAoB,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC;IACtF,CAAC;AACH,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createCompositeTarget } from "./createCompositeTarget.js";
|
|
2
|
+
export { defineComposite, defineCompositeClass, registerCompositeDefinitions, type DefineCompositeOptions, type DefineCompositeClassOptions, type CompositeElementConstructor, type SourceSpec, } from "./declarative.js";
|
|
3
|
+
export { planComposition, declarationsFromSources, CompositeEngine, CompositeUpdateEvent, SHELL_EVENT_PREFIX, type CompositionPlan, } from "./engine.js";
|
|
4
|
+
export { isReservedComposedName, isReservedSourceId, reservedComposedNameReason, } from "./reservedNames.js";
|
|
5
|
+
export { consoleLogger, silentLogger, type Logger } from "./logger.js";
|
|
6
|
+
export { COMPOSITE_PROFILE_VERSION, COMPOSITE_TIERS_SYMBOL, type CompositeTierClaim, type CompositeShell, type CreateCompositeTargetConfig, type ExposeConfig, type ExposeMap, type SourceRef, } from "./types.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,OAAO,EACL,eAAe,EACf,oBAAoB,EACpB,4BAA4B,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,UAAU,GAChB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,eAAe,GACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAEvE,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,SAAS,GACf,MAAM,YAAY,CAAC"}
|