@taggor/runtime 0.3.0 → 0.5.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.
Files changed (96) hide show
  1. package/README.md +1 -2
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/compat/before-compat.js +1 -1
  4. package/dist/compat/index.d.ts.map +1 -1
  5. package/dist/compat/index.js +4 -4
  6. package/dist/compat/scope.d.ts +2 -2
  7. package/dist/element/attributes.d.ts +8 -8
  8. package/dist/element/attributes.d.ts.map +1 -1
  9. package/dist/element/attributes.js +7 -7
  10. package/dist/element/component-controller.d.ts +14 -14
  11. package/dist/element/component-controller.d.ts.map +1 -1
  12. package/dist/element/component-controller.js +28 -28
  13. package/dist/element/component-controller.js.map +1 -1
  14. package/dist/element/contract-gate.d.ts +2 -2
  15. package/dist/element/contract-gate.js +2 -2
  16. package/dist/element/create-component-element.d.ts +12 -12
  17. package/dist/element/create-component-element.js +16 -16
  18. package/dist/element/create-component-element.js.map +1 -1
  19. package/dist/element/define-element.d.ts +4 -4
  20. package/dist/element/define-element.d.ts.map +1 -1
  21. package/dist/element/define-element.js +1 -1
  22. package/dist/element/define-element.js.map +1 -1
  23. package/dist/element/diagnostics.d.ts +2 -2
  24. package/dist/element/error-boundary.d.ts +2 -2
  25. package/dist/element/error-boundary.d.ts.map +1 -1
  26. package/dist/element/error-boundary.js +1 -1
  27. package/dist/element/error-report.d.ts +1 -1
  28. package/dist/element/error-report.js +3 -3
  29. package/dist/element/events.d.ts +5 -6
  30. package/dist/element/events.d.ts.map +1 -1
  31. package/dist/element/events.js +5 -6
  32. package/dist/element/events.js.map +1 -1
  33. package/dist/element/handler-guard.d.ts +3 -3
  34. package/dist/element/handler-guard.js +5 -5
  35. package/dist/element/handler-guard.js.map +1 -1
  36. package/dist/element/index.d.ts +1 -2
  37. package/dist/element/index.d.ts.map +1 -1
  38. package/dist/element/index.js +1 -2
  39. package/dist/element/index.js.map +1 -1
  40. package/dist/element/props-script.d.ts +1 -1
  41. package/dist/element/props-script.js +1 -1
  42. package/dist/element/styles.d.ts +5 -5
  43. package/dist/element/styles.d.ts.map +1 -1
  44. package/dist/element/styles.js +4 -4
  45. package/dist/element/types.d.ts +22 -22
  46. package/dist/element/types.d.ts.map +1 -1
  47. package/dist/host/api.d.ts +3 -3
  48. package/dist/host/api.d.ts.map +1 -1
  49. package/dist/host/api.js +9 -10
  50. package/dist/host/api.js.map +1 -1
  51. package/dist/host/barrier.d.ts +2 -2
  52. package/dist/host/barrier.js +3 -3
  53. package/dist/host/barrier.js.map +1 -1
  54. package/dist/host/index.d.ts +2 -2
  55. package/dist/host/index.js +2 -2
  56. package/dist/host/registry.d.ts +3 -3
  57. package/dist/host/registry.js +2 -2
  58. package/dist/host/registry.js.map +1 -1
  59. package/dist/host/types.d.ts +1 -1
  60. package/dist/host/types.js +1 -1
  61. package/dist/index.d.ts +3 -3
  62. package/dist/index.js +3 -3
  63. package/dist/loader/config.d.ts +8 -8
  64. package/dist/loader/config.d.ts.map +1 -1
  65. package/dist/loader/config.js +4 -4
  66. package/dist/loader/config.js.map +1 -1
  67. package/dist/loader/entry.js +3 -3
  68. package/dist/loader/entry.js.map +1 -1
  69. package/dist/loader/lazy-transport.d.ts +1 -1
  70. package/dist/loader/lazy-transport.js +1 -1
  71. package/dist/loader/loader-code.d.ts +1 -1
  72. package/dist/loader/loader-code.js +2 -2
  73. package/dist/loader/loading.d.ts +1 -1
  74. package/dist/loader/loading.js +1 -1
  75. package/dist/loader/page-state.d.ts +2 -2
  76. package/dist/loader/page-state.js +1 -1
  77. package/dist/loader/resilient-import.d.ts +2 -2
  78. package/dist/loader/resilient-import.d.ts.map +1 -1
  79. package/dist/loader/resilient-import.js +1 -1
  80. package/dist/loader/run.d.ts +4 -5
  81. package/dist/loader/run.d.ts.map +1 -1
  82. package/dist/loader/run.js +12 -13
  83. package/dist/loader/run.js.map +1 -1
  84. package/dist/loader/script-url.d.ts +5 -5
  85. package/dist/loader/script-url.js +6 -6
  86. package/dist/loader/script-url.js.map +1 -1
  87. package/dist/loader/script.d.ts +2 -2
  88. package/dist/loader/script.js +2 -2
  89. package/dist/server/render-fragment.d.ts +1 -1
  90. package/dist/server/render-fragment.d.ts.map +1 -1
  91. package/dist/server/render-fragment.js +1 -1
  92. package/dist/server/ssr-code.d.ts +1 -1
  93. package/dist/server/ssr-code.js +3 -3
  94. package/dist/server/worker.d.ts +2 -2
  95. package/dist/server/worker.js +1 -1
  96. package/package.json +2 -2
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Component events (TAG-305): the host's `emit(name, detail)`, which dispatches a declared event on
2
+ * Component events: the host's `emit(name, detail)`, which dispatches a declared event on
3
3
  * the host element as a `CustomEvent` named `<tag>:<event>`, so the page sees the host as `target`
4
4
  * and never a node of the shadow root.
5
5
  *
6
- * TAG-320: the `<tag>` prefix is given at dispatch time by the caller, never read from the
6
+ * The `<tag>` prefix is given at dispatch time by the caller, never read from the
7
7
  * manifest here: the controller passes the tag the element's class is really registered under
8
8
  * (its `localName`), so after a collision a component never dispatches events under the declared tag
9
9
  * that belongs to another script.
@@ -21,8 +21,8 @@
21
21
  * value is deep-frozen (the contract's `deepFreeze`), so every page listener sees the same data
22
22
  * and the component holds no reference to it. The value rule is the contract's, never
23
23
  * re-implemented here.
24
- * - without `structuredClone` (Chrome < 98, Firefox < 94, Safari < 15.4) nothing is dispatched
25
- * (TAG-223): the declarations could not be copied, and checking the live component object would
24
+ * - without `structuredClone` (Chrome < 98, Firefox < 94, Safari < 15.4) nothing is dispatched:
25
+ * the declarations could not be copied, and checking the live component object would
26
26
  * run its getters and Proxy traps again.
27
27
  *
28
28
  * A dropped `emit` comes back as a message for the debug log (`event-dropped`); it names the
@@ -53,8 +53,7 @@ export declare function readEventRoutes(events: unknown): EventRoutes;
53
53
  /**
54
54
  * Handles one `emit` call: dispatches the declared event `name` on `target`, or says why not.
55
55
  *
56
- * Inputs: the host element, the routes, the event tag (the tag the element is registered under,
57
- * TAG-320), the `name` and `detail` the component passed (any values) and whether
56
+ * Inputs: the host element, the routes, the event tag (the tag the element is registered under), the `name` and `detail` the component passed (any values) and whether
58
57
  * the component is mounted (connected and not failed). Output: `undefined` when a
59
58
  * `CustomEvent` was dispatched (type `<tag>:<name>`, the declared `bubbles`/`composed`, and a
60
59
  * `detail` that is a new, deep-frozen value holding only the declared data); otherwise the debug
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/element/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAErF,uDAAuD;AACvD,MAAM,WAAW,UAAU;IACzB,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,uEAAuE;AACvE,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,WAAW,CAkB5D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,OAAO,GACf,MAAM,GAAG,SAAS,CA6BpB"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/element/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAA0B,KAAK,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAErF,uDAAuD;AACvD,MAAM,WAAW,UAAU;IACzB,iEAAiE;IACjE,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;IAC7B,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;CAC5B;AAED,uEAAuE;AACvE,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE1D;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,WAAW,CAkB5D;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,WAAW,EACnB,MAAM,EAAE,WAAW,EACnB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,OAAO,GACf,MAAM,GAAG,SAAS,CA6BpB"}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * Component events (TAG-305): the host's `emit(name, detail)`, which dispatches a declared event on
2
+ * Component events: the host's `emit(name, detail)`, which dispatches a declared event on
3
3
  * the host element as a `CustomEvent` named `<tag>:<event>`, so the page sees the host as `target`
4
4
  * and never a node of the shadow root.
5
5
  *
6
- * TAG-320: the `<tag>` prefix is given at dispatch time by the caller, never read from the
6
+ * The `<tag>` prefix is given at dispatch time by the caller, never read from the
7
7
  * manifest here: the controller passes the tag the element's class is really registered under
8
8
  * (its `localName`), so after a collision a component never dispatches events under the declared tag
9
9
  * that belongs to another script.
@@ -21,8 +21,8 @@
21
21
  * value is deep-frozen (the contract's `deepFreeze`), so every page listener sees the same data
22
22
  * and the component holds no reference to it. The value rule is the contract's, never
23
23
  * re-implemented here.
24
- * - without `structuredClone` (Chrome < 98, Firefox < 94, Safari < 15.4) nothing is dispatched
25
- * (TAG-223): the declarations could not be copied, and checking the live component object would
24
+ * - without `structuredClone` (Chrome < 98, Firefox < 94, Safari < 15.4) nothing is dispatched:
25
+ * the declarations could not be copied, and checking the live component object would
26
26
  * run its getters and Proxy traps again.
27
27
  *
28
28
  * A dropped `emit` comes back as a message for the debug log (`event-dropped`); it names the
@@ -64,8 +64,7 @@ export function readEventRoutes(events) {
64
64
  /**
65
65
  * Handles one `emit` call: dispatches the declared event `name` on `target`, or says why not.
66
66
  *
67
- * Inputs: the host element, the routes, the event tag (the tag the element is registered under,
68
- * TAG-320), the `name` and `detail` the component passed (any values) and whether
67
+ * Inputs: the host element, the routes, the event tag (the tag the element is registered under), the `name` and `detail` the component passed (any values) and whether
69
68
  * the component is mounted (connected and not failed). Output: `undefined` when a
70
69
  * `CustomEvent` was dispatched (type `<tag>:<name>`, the declared `bubbles`/`composed`, and a
71
70
  * `detail` that is a new, deep-frozen value holding only the declared data); otherwise the debug
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/element/events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,OAAO,EAAE,UAAU,EAAE,UAAU,EAAoB,MAAM,2BAA2B,CAAC;AAcrF;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,MAAe;IAC7C,MAAM,MAAM,GAAG,IAAI,GAAG,EAAsB,CAAC;IAC7C,IAAI,CAAC;QACH,MAAM,IAAI,GAAY,eAAe,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,MAAM,CAAC;QACnC,KAAK,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACvD,2FAA2F;YAC3F,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;gBAAE,SAAS;YACzE,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE;gBACf,MAAM,EAAE,WAAW,CAAC,QAAQ,CAAgB;gBAC5C,OAAO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KAAK,KAAK,IAAI,CAAC;AACrD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Event handler guard (TAG-302): routes an exception thrown by a component's DOM event handler to
2
+ * Event handler guard: routes an exception thrown by a component's DOM event handler to
3
3
  * that component's error boundary instead of the page.
4
4
  *
5
5
  * Why: Preact's error boundaries catch render and effect errors, but an `onClick` that throws is
@@ -11,10 +11,10 @@
11
11
  *
12
12
  * The hook is installed on the first `createComponentElement`, never at import (golden rule 2), and
13
13
  * chains any `options.vnode` already set. It changes only the runtime's own copy of Preact, which
14
- * is why component bundles must share it rather than bring their own (docs/agentes/runtime.md).
14
+ * is why component bundles must share it rather than bring their own.
15
15
  * An error from a handler outside every registered component is rethrown unchanged.
16
16
  *
17
- * TAG-317: a wrapper is stamped with a private class field (`WrapperStamp`), not tracked in a
17
+ * A wrapper is stamped with a private class field (`WrapperStamp`), not tracked in a
18
18
  * WeakSet or cached in a WeakMap per handler. Handlers are new closures on every render, and those weak
19
19
  * tables grew the retained heap by about 14 bytes per mount even after the entries died
20
20
  * (measured in Chromium by e2e/lifecycle.e2e.ts); the only per-root state left is
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Event handler guard (TAG-302): routes an exception thrown by a component's DOM event handler to
2
+ * Event handler guard: routes an exception thrown by a component's DOM event handler to
3
3
  * that component's error boundary instead of the page.
4
4
  *
5
5
  * Why: Preact's error boundaries catch render and effect errors, but an `onClick` that throws is
@@ -11,10 +11,10 @@
11
11
  *
12
12
  * The hook is installed on the first `createComponentElement`, never at import (golden rule 2), and
13
13
  * chains any `options.vnode` already set. It changes only the runtime's own copy of Preact, which
14
- * is why component bundles must share it rather than bring their own (docs/agentes/runtime.md).
14
+ * is why component bundles must share it rather than bring their own.
15
15
  * An error from a handler outside every registered component is rethrown unchanged.
16
16
  *
17
- * TAG-317: a wrapper is stamped with a private class field (`WrapperStamp`), not tracked in a
17
+ * A wrapper is stamped with a private class field (`WrapperStamp`), not tracked in a
18
18
  * WeakSet or cached in a WeakMap per handler. Handlers are new closures on every render, and those weak
19
19
  * tables grew the retained heap by about 14 bytes per mount even after the entries died
20
20
  * (measured in Chromium by e2e/lifecycle.e2e.ts); the only per-root state left is
@@ -30,7 +30,7 @@ const guardedOptions = new WeakSet();
30
30
  * never forwards it to its target nor answers for it through a trap, and an object inheriting
31
31
  * from a wrapper does not have it. A symbol property, even compared with a private value, can be
32
32
  * copied from a real wrapper's descriptor and replayed by a Proxy trap, so a handler could skip
33
- * the guard and throw at the page (security review of TAG-317). No table, so nothing grows.
33
+ * the guard and throw at the page. No table, so nothing grows.
34
34
  */
35
35
  // Return override: `new WrapperStamp(fn)` adds the private field to `fn` itself, because this
36
36
  // base constructor returns the object it is given instead of a new one.
@@ -104,7 +104,7 @@ export function guarded(handler) {
104
104
  if (isWrapper(handler))
105
105
  return handler;
106
106
  const wrapper = function (...args) {
107
- // Resolve the owner before the handler runs: `currentTarget` is null once the dispatch is
107
+ // Resolve the host element before the handler runs: `currentTarget` is null once the dispatch is
108
108
  // over, and the component unregisters its root on disconnect, which may happen before an async
109
109
  // handler settles.
110
110
  const target = currentTargetOf(args[0]);
@@ -1 +1 @@
1
- {"version":3,"file":"handler-guard.js","sourceRoot":"","sources":["../../src/element/handler-guard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,OAAO,EAAc,MAAM,QAAQ,CAAC;AAO7C,MAAM,aAAa,GAAG,IAAI,OAAO,EAAwB,CAAC;AAC1D,MAAM,cAAc,GAAG,IAAI,OAAO,EAAU,CAAC;AAE7C;;;;;;;;GAQG;AACH,8FAA8F;AAC9F,wEAAwE;AACxE,MAAM,SAAS,GAAG,UAAU,MAAc;IACxC,OAAO,MAAM,CAAC;AAChB,CAA8C,CAAC;AAE/C,MAAM,YAAa,SAAQ,SAAS;IACzB,QAAQ,GAAG,IAAI,CAAC;IAEzB,uFAAuF;IACvF,MAAM,CAAC,OAAO,CAAC,KAAa;QAC1B,IAAI,CA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,CAAC,IAAI,CAAC;IAC9D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  /**
2
- * The Custom Element wrapper of the runtime (TAG-302): `createComponentElement` and its types. See
3
- * docs/agentes/runtime.md.
2
+ * The Custom Element wrapper of the runtime: `createComponentElement` and its types..
4
3
  */
5
4
  export { createComponentElement, type ComponentElementOptions, type ComponentElementRegistration, } from "./create-component-element.js";
6
5
  export { GENERIC_TAG, type ElementRegistry } from "./define-element.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/element/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/element/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,GAClC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAClG,OAAO,EACL,cAAc,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACnB,MAAM,YAAY,CAAC"}
@@ -1,6 +1,5 @@
1
1
  /**
2
- * The Custom Element wrapper of the runtime (TAG-302): `createComponentElement` and its types. See
3
- * docs/agentes/runtime.md.
2
+ * The Custom Element wrapper of the runtime: `createComponentElement` and its types..
4
3
  */
5
4
  export { createComponentElement, } from "./create-component-element.js";
6
5
  export { GENERIC_TAG } from "./define-element.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/element/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,sBAAsB,GAGvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAA2B,MAAM,kBAAkB,CAAC;AAClG,OAAO,EACL,cAAc,GAUf,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/element/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EACL,sBAAsB,GAGvB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAwB,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAA2B,MAAM,kBAAkB,CAAC;AAClG,OAAO,EACL,cAAc,GAUf,MAAM,YAAY,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Props from a `<script type="application/json" data-props>` child (TAG-304): how a CMS without
2
+ * Props from a `<script type="application/json" data-props>` child: how a CMS without
3
3
  * JavaScript gives a component its `array` and `object` props (any prop, in fact) as one JSON object.
4
4
  *
5
5
  * ```html
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Props from a `<script type="application/json" data-props>` child (TAG-304): how a CMS without
2
+ * Props from a `<script type="application/json" data-props>` child: how a CMS without
3
3
  * JavaScript gives a component its `array` and `object` props (any prop, in fact) as one JSON object.
4
4
  *
5
5
  * ```html
@@ -1,21 +1,21 @@
1
1
  /**
2
- * Component styles in the shadow root (TAG-302): the component's CSS is adopted by its own shadow root,
2
+ * Component styles in the shadow root: the component's CSS is adopted by its own shadow root,
3
3
  * never added to the page (the old prototype's global CSS defect).
4
4
  *
5
5
  * With constructable stylesheets (`new CSSStyleSheet()` + `adoptedStyleSheets`), one sheet per
6
6
  * CSS text is built once per component definition and shared by its instances. Without them (old
7
7
  * browsers), the error boundary renders `<style>` elements whose CSS is a text node, never parsed
8
8
  * as HTML. `replaceSync` ignores `@import`, so adopted CSS cannot load another stylesheet; the
9
- * `<style>` fallback does load it, subject to the page's `style-src` (TAG-308 review).
9
+ * `<style>` fallback does load it, subject to the page's `style-src`.
10
10
  *
11
- * TAG-308: every component starts with the runtime's minimal host reset (`HOST_RESET`), the first
11
+ * Every component starts with the runtime's minimal host reset (`HOST_RESET`), the first
12
12
  * sheet, so the component's own `:host` rules (later in the same shadow tree) and the page's rules on
13
13
  * the tag (the outer tree wins over `:host`) both override it. The `<style>` fallback carries the
14
14
  * page's CSP nonce when the loader passes one (`createComponentElement`'s `styleNonce`); adopted
15
15
  * sheets need none, because CSP's `style-src` does not govern constructed stylesheets.
16
16
  */
17
17
  /**
18
- * The runtime's reset of every component host (TAG-308): a block box that contains its layout,
18
+ * The runtime's reset of every component host: a block box that contains its layout,
19
19
  * paint and style (`contain: content`), and the `hidden` attribute still hiding it (an author
20
20
  * `display` beats the user agent's `[hidden]` rule). A component whose content leaves its box
21
21
  * (a fixed overlay, a dropdown) writes `:host { contain: none }`.
@@ -29,7 +29,7 @@ export interface ComponentStyles {
29
29
  readonly drop: (root: ShadowRoot) => void;
30
30
  /** The CSS texts, `HOST_RESET` first, for the `<style>` fallback. */
31
31
  readonly css: readonly string[];
32
- /** The CSP nonce of the `<style>` fallback, when the page gave one (TAG-308). */
32
+ /** The CSP nonce of the `<style>` fallback, when the page gave one. */
33
33
  readonly nonce: string | undefined;
34
34
  }
35
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/element/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,sEAAsE,CAAC;AAE9F,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC;IAC9C,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAUD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,SAAS,MAAM,EAAE,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAwBjB"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/element/styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,UAAU,sEAAsE,CAAC;AAE9F,sDAAsD;AACtD,MAAM,WAAW,eAAe;IAC9B,oFAAoF;IACpF,QAAQ,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC;IAC9C,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;IAC1C,qEAAqE;IACrE,QAAQ,CAAC,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,uEAAuE;IACvE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAUD;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,SAAS,MAAM,EAAE,EAC/B,KAAK,CAAC,EAAE,MAAM,GACb,eAAe,CAwBjB"}
@@ -1,21 +1,21 @@
1
1
  /**
2
- * Component styles in the shadow root (TAG-302): the component's CSS is adopted by its own shadow root,
2
+ * Component styles in the shadow root: the component's CSS is adopted by its own shadow root,
3
3
  * never added to the page (the old prototype's global CSS defect).
4
4
  *
5
5
  * With constructable stylesheets (`new CSSStyleSheet()` + `adoptedStyleSheets`), one sheet per
6
6
  * CSS text is built once per component definition and shared by its instances. Without them (old
7
7
  * browsers), the error boundary renders `<style>` elements whose CSS is a text node, never parsed
8
8
  * as HTML. `replaceSync` ignores `@import`, so adopted CSS cannot load another stylesheet; the
9
- * `<style>` fallback does load it, subject to the page's `style-src` (TAG-308 review).
9
+ * `<style>` fallback does load it, subject to the page's `style-src`.
10
10
  *
11
- * TAG-308: every component starts with the runtime's minimal host reset (`HOST_RESET`), the first
11
+ * Every component starts with the runtime's minimal host reset (`HOST_RESET`), the first
12
12
  * sheet, so the component's own `:host` rules (later in the same shadow tree) and the page's rules on
13
13
  * the tag (the outer tree wins over `:host`) both override it. The `<style>` fallback carries the
14
14
  * page's CSP nonce when the loader passes one (`createComponentElement`'s `styleNonce`); adopted
15
15
  * sheets need none, because CSP's `style-src` does not govern constructed stylesheets.
16
16
  */
17
17
  /**
18
- * The runtime's reset of every component host (TAG-308): a block box that contains its layout,
18
+ * The runtime's reset of every component host: a block box that contains its layout,
19
19
  * paint and style (`contain: content`), and the `hidden` attribute still hiding it (an author
20
20
  * `display` beats the user agent's `[hidden]` rule). A component whose content leaves its box
21
21
  * (a fixed overlay, a dropdown) writes `:host { contain: none }`.
@@ -1,14 +1,14 @@
1
1
  /**
2
- * Types of the Custom Element wrapper (TAG-302): what the runtime mounts (`MountableComponent`, the
2
+ * Types of the Custom Element wrapper: what the runtime mounts (`MountableComponent`, the
3
3
  * shape `defineTaggorComponent` of `@taggor/component` produces), what it gives the mounted component
4
4
  * (`ComponentHost`) and the diagnostics port it reports through (`RuntimeDiagnostics`).
5
5
  *
6
6
  * The runtime does not depend on `@taggor/component`: the SDK depends on the runtime for its test
7
- * helpers (`@taggor/component/testing`, TAG-209), so the definition is described here structurally. A `ComponentDefinition`
8
- * is assignable to `MountableComponent`. TAG-303 added `contractVersion` and the coercion warnings;
9
- * TAG-305 the `events` map and the `event-dropped` warning; TAG-304 the property and props script
10
- * warnings; TAG-314 the form field declarations (`formAssociated`, `delegatesFocus`) and the host's
11
- * `internals`. TAG-214 the `host-api` warning of `window.taggor`. TAG-709 the host's `transport`.
7
+ * helpers (`@taggor/component/testing`), so the definition is described here structurally. A `ComponentDefinition`
8
+ * is assignable to `MountableComponent`. It also carries `contractVersion` and the coercion
9
+ * warnings, the `events` map and the `event-dropped` warning, the property and props script
10
+ * warnings, the form field declarations (`formAssociated`, `delegatesFocus`) and the host's
11
+ * `internals`, the `host-api` warning of `window.taggor` and the host's `transport`.
12
12
  */
13
13
  import type { EventDeclaration } from "@taggor/contract";
14
14
  import type { PropDeclaration } from "@taggor/contract/zod-free";
@@ -19,15 +19,15 @@ export declare const COMPONENT_KIND = "taggor.component";
19
19
  *
20
20
  * - `element`: the custom element on the host page (its light DOM holds the slotted content).
21
21
  * - `shadowRoot`: the component's own open shadow root, where the component renders.
22
- * - `emit(name, detail)` (TAG-305): while the component is mounted, dispatches the declared event
22
+ * - `emit(name, detail)`: while the component is mounted, dispatches the declared event
23
23
  * `name` on `element` as a `CustomEvent` named `<tag>:<name>`, with a validated, frozen copy of
24
24
  * `detail` and the declared `bubbles`/`composed`. Anything else (an undeclared name, a detail
25
25
  * the event's schema refuses, a call after the unmount or after a failure) is dropped with an
26
26
  * `event-dropped` warning. Called as a plain function; never throws.
27
- * - `signal` (TAG-317): aborted when the component is really unmounted (removed, not moved); the
27
+ * - `signal`: aborted when the component is really unmounted (removed, not moved); the
28
28
  * SDK's data transport passes it to `fetch`. A new signal per mount; `undefined` only on a
29
29
  * page without `AbortController`.
30
- * - `internals` (TAG-314): the element's `ElementInternals` when the manifest declares
30
+ * - `internals`: the element's `ElementInternals` when the manifest declares
31
31
  * `formAssociated: true` (the SDK's `useFormField` sets the form value and validity through it);
32
32
  * `undefined` otherwise, and on a browser without form-associated custom elements.
33
33
  */
@@ -38,7 +38,7 @@ export interface ComponentHost {
38
38
  readonly signal?: AbortSignal | undefined;
39
39
  readonly internals?: ElementInternals | undefined;
40
40
  /**
41
- * The data transport of the component (TAG-709), opaque to the runtime: the loader gives components
41
+ * The data transport of the component, opaque to the runtime: the loader gives components
42
42
  * that declare `data` a lazy one (`loader/lazy-transport.ts`); the SDK's data hooks use it.
43
43
  */
44
44
  readonly transport?: unknown;
@@ -53,11 +53,11 @@ export interface MountableManifest {
53
53
  readonly tag: string;
54
54
  readonly contractVersion?: string | undefined;
55
55
  readonly props?: Readonly<Record<string, PropDeclaration>> | undefined;
56
- /** Declared events (TAG-305), read once when the element class is created. */
56
+ /** Declared events, read once when the element class is created. */
57
57
  readonly events?: Readonly<Record<string, EventDeclaration>> | undefined;
58
- /** A form field component (TAG-314, contract 1.4): the element is form-associated. */
58
+ /** A form field component (contract 1.4): the element is form-associated. */
59
59
  readonly formAssociated?: boolean | undefined;
60
- /** Whether the shadow root delegates focus (TAG-314); defaults to `formAssociated`. */
60
+ /** Whether the shadow root delegates focus; defaults to `formAssociated`. */
61
61
  readonly delegatesFocus?: boolean | undefined;
62
62
  }
63
63
  /**
@@ -99,36 +99,36 @@ export type WarningCode =
99
99
  /** The page has no Custom Elements (no `customElements` or `HTMLElement`). */
100
100
  | "unsupported"
101
101
  /**
102
- * The manifest's `contractVersion` (TAG-303): a newer minor (mounted, its additions ignored) or
102
+ * The manifest's `contractVersion`: a newer minor (mounted, its additions ignored) or
103
103
  * a version this runtime cannot mount (missing, malformed, newer major, unsupported major).
104
104
  */
105
105
  | "contract-version"
106
106
  /**
107
- * A prop declares a `type` this runtime does not know (a newer minor), or (TAG-304) is named
107
+ * A prop declares a `type` this runtime does not know (a newer minor), or is named
108
108
  * like a member the element already has (the live `HTMLElement.prototype` chain or a Custom
109
109
  * Element callback): the prop is absent, never installed as a property.
110
110
  */
111
111
  | "unknown-prop-type"
112
- /** An attribute's text was refused by its prop type; the prop got its default (TAG-303). */
112
+ /** An attribute's text was refused by its prop type; the prop got its default. */
113
113
  | "invalid-attribute"
114
- /** A value assigned to a prop's property was refused; the prop got its default (TAG-304). */
114
+ /** A value assigned to a prop's property was refused; the prop got its default. */
115
115
  | "invalid-property"
116
116
  /**
117
- * The `<script type="application/json" data-props>` child (TAG-304) was refused as a whole
117
+ * The `<script type="application/json" data-props>` child was refused as a whole
118
118
  * (prop `*`: too long, too deep, not JSON, not an object) or for one prop (its default).
119
119
  */
120
120
  | "invalid-props-script"
121
121
  /**
122
- * An `emit` was not dispatched (TAG-305): undeclared name, a detail its schema refuses, or the
122
+ * An `emit` was not dispatched: undeclared name, a detail its schema refuses, or the
123
123
  * component is not mounted. The message never carries the refused value.
124
124
  */
125
125
  | "event-dropped"
126
126
  /**
127
- * A method of the host page API (`window.taggor`, TAG-214) got an argument it cannot use and
127
+ * A method of the host page API (`window.taggor`) got an argument it cannot use and
128
128
  * returned `undefined`; `tag` is `"taggor"`.
129
129
  */
130
130
  | "host-api";
131
- /** A warning for debug mode (TAG-315); the message is plain text, never HTML. */
131
+ /** A warning for debug mode; the message is plain text, never HTML. */
132
132
  export interface RuntimeWarning {
133
133
  readonly code: WarningCode;
134
134
  readonly tag: string;
@@ -136,7 +136,7 @@ export interface RuntimeWarning {
136
136
  }
137
137
  /**
138
138
  * The diagnostics port of the runtime. Both functions are called inside a `try`, so a throwing
139
- * implementation never reaches the page. Debug mode (TAG-315) wires them to the console
139
+ * implementation never reaches the page. Debug mode wires them to the console
140
140
  * (`consoleDiagnostics`); production will send failures to telemetry.
141
141
  */
142
142
  export interface RuntimeDiagnostics {
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/element/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,qFAAqF;AACrF,eAAO,MAAM,cAAc,qBAAqB,CAAC;AAEjD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC1C,QAAQ,CAAC,SAAS,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAClD;;;OAGG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,GAAG,SAAS,CAAC;IACvE,8EAA8E;IAC9E,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC;IACzE,sFAAsF;IACtF,QAAQ,CAAC,cAA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mF;GACjF,kBAAkB;AACpB;;;GAGG;GACD,sBAAsB;AACxB;;;GAGG;GACD,eAAe;AACjB;;;GAGG;GACD,UAAU,CAAC;AAEf,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC3D;AAED,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,MAAM,CAAC"}
@@ -30,9 +30,9 @@ export declare function createHostApi(options: HostApiOptions): TaggorHostApi;
30
30
  *
31
31
  * Inputs: the API and the global object (default `globalThis`). Output: `true` when installed;
32
32
  * `false` when `taggor` already is an own property of the global (the page's own `var taggor`, or
33
- * another Taggor snippet, which TAG-309 will index by version) or the global refuses it. Errors:
34
- * none. Side effects: one writable, configurable, non-enumerable property. Not locked on purpose
35
- * (TAG-214 review, A1): a non-configurable global would make a later classic script of the page
33
+ * another Taggor snippet, which may be indexed by version) or the global refuses it. Errors:
34
+ * none. Side effects: one writable, configurable, non-enumerable property. Not locked on purpose:
35
+ * a non-configurable global would make a later classic script of the page
36
36
  * that declares `taggor` (`const`, `let`, `class`, `function`) fail with a SyntaxError, and a
37
37
  * strict-mode assignment throw, stopping the whole script. The API object itself is frozen.
38
38
  */
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/host/api.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAA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OAAO,EAAE,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACpD,kGAAkG;IAClG,QAAQ,CAAC,WAAW,CAAC,EAAE,kBAAkB,CAAC;IAC1C,qFAAqF;IACrF,QAAQ,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,GAAG,qBAAqB,CAAC,CAAC;CAChF;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CAgFpE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,aAAa,EAAE,MAAM,GAAE,MAAmB,GAAG,OAAO,CAavF"}
package/dist/host/api.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /**
2
- * The host page API (TAG-214, ADR 0023): `createHostApi` builds the frozen `window.taggor` object
2
+ * The host page API: `createHostApi` builds the frozen `window.taggor` object
3
3
  * (`version`, `ready`, `get`, `on`, `components`), and `installHostApi` puts it on the page, the only
4
4
  * global Taggor creates.
5
5
  *
6
- * Not part of the runtime bundle (`bundle.test.ts` fences it out): the loader (TAG-301) bundles
6
+ * Not part of the runtime bundle (`bundle.test.ts` fences it out): the loader bundles
7
7
  * it, so `window.taggor` exists from the snippet's first run, before the runtime is downloaded,
8
8
  * and the runtime only pays for its live component registry (`registry.ts`). The loader passes the
9
9
  * runtime's `liveComponents` once it imported the runtime (`undefined` before: no component yet) and
@@ -12,7 +12,7 @@
12
12
  * Every method is total (golden rule 2): it never throws at the page, whatever it is given (a
13
13
  * Proxy, a revoked Proxy, a throwing getter, a primitive, a lost `this`); an invalid argument
14
14
  * gives `undefined` and a `host-api` warning through the diagnostics port, which only debug mode
15
- * prints (TAG-315). Nothing here touches the page's DOM except the listeners `on` adds.
15
+ * prints. Nothing here touches the page's DOM except the listeners `on` adds.
16
16
  */
17
17
  import { CONTRACT_VERSION } from "@taggor/contract/zod-free";
18
18
  import { guardDiagnostics, silentDiagnostics } from "../element/diagnostics.js";
@@ -34,7 +34,7 @@ export function createHostApi(options) {
34
34
  message: `taggor.${call}: invalid argument, returned undefined`,
35
35
  });
36
36
  };
37
- /** The info of a live component element still in the document (TAG-214 review, A6). */
37
+ /** The info of a live component element still in the document. */
38
38
  const connected = (info) => info?.element.isConnected === true ? info : undefined;
39
39
  const read = (element) => {
40
40
  try {
@@ -62,8 +62,7 @@ export function createHostApi(options) {
62
62
  const target = options.document ?? document;
63
63
  const type = `${tag}:${event}`;
64
64
  // One listener per call, so each subscription stops on its own, even for the same handler.
65
- // Only events whose origin is a live component element reach the handler (TAG-214 review,
66
- // A4): page code can still dispatch a forged event on a component element, so the handler
65
+ // Only events whose origin is a live component element reach the handler: page code can still dispatch a forged event on a component element, so the handler
67
66
  // checks the `detail` it uses.
68
67
  const listener = (dispatched) => {
69
68
  let fromComponent = false;
@@ -96,7 +95,7 @@ export function createHostApi(options) {
96
95
  const infos = [];
97
96
  try {
98
97
  for (const reader of options.live()?.values() ?? []) {
99
- // One reader at a time: a bad entry never hides the others (TAG-214 review, A2).
98
+ // One reader at a time: a bad entry never hides the others.
100
99
  try {
101
100
  const info = connected(reader());
102
101
  if (info !== undefined)
@@ -119,9 +118,9 @@ export function createHostApi(options) {
119
118
  *
120
119
  * Inputs: the API and the global object (default `globalThis`). Output: `true` when installed;
121
120
  * `false` when `taggor` already is an own property of the global (the page's own `var taggor`, or
122
- * another Taggor snippet, which TAG-309 will index by version) or the global refuses it. Errors:
123
- * none. Side effects: one writable, configurable, non-enumerable property. Not locked on purpose
124
- * (TAG-214 review, A1): a non-configurable global would make a later classic script of the page
121
+ * another Taggor snippet, which may be indexed by version) or the global refuses it. Errors:
122
+ * none. Side effects: one writable, configurable, non-enumerable property. Not locked on purpose:
123
+ * a non-configurable global would make a later classic script of the page
125
124
  * that declares `taggor` (`const`, `let`, `class`, `function`) fail with a SyntaxError, and a
126
125
  * strict-mode assignment throw, stopping the whole script. The API object itself is frozen.
127
126
  */
@@ -1 +1 @@
1
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AAM,MAAM,IAAI,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC;oBACpD,4DAA4D;oBAC5D,IAAI,CAAC;wBACH,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,CAAC;wBACjC,IAAI,IAAI,KAAK,SAAS;4BAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBAC3C,CAAC;oBAAC,MAAM,CAAC;wBACP,mBAAmB;oBACrB,CAAC;gBACH,CAAC;YACH,CAAC;YAAC,MAAM,CAAC;gBACP,0EAA0E;YAC5E,CAAC;YACD,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC9B,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,cAAc,CAAC,GAAkB,EAAE,SAAiB,UAAU;IAC5E,IAAI,CAAC;QACH,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC;YAAE,OAAO,KAAK,CAAC;QAClD,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,QAAQ,EAAE;YACtC,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAI;YAClB,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -1,9 +1,9 @@
1
1
  /**
2
- * The initial-load barrier behind `window.taggor.ready()` (TAG-214).
2
+ * The initial-load barrier behind `window.taggor.ready()`.
3
3
  *
4
4
  * The loader announces the tags it found in the page at the initial load (`expect`) and settles
5
5
  * each one when `createComponentElement` returned for it (defined, collision, refused) or when it
6
- * gave up on the tag's bundle (network error, timeout, a bundle that throws; TAG-307). `ready()`
6
+ * gave up on the tag's bundle (network error, timeout, a bundle that throws). `ready()`
7
7
  * resolves once the announcement happened and nothing announced is pending; it never rejects, and
8
8
  * each call gets its own promise. A
9
9
  * tag settled before it is announced counts as settled, so the order of the loader's calls does
@@ -1,9 +1,9 @@
1
1
  /**
2
- * The initial-load barrier behind `window.taggor.ready()` (TAG-214).
2
+ * The initial-load barrier behind `window.taggor.ready()`.
3
3
  *
4
4
  * The loader announces the tags it found in the page at the initial load (`expect`) and settles
5
5
  * each one when `createComponentElement` returned for it (defined, collision, refused) or when it
6
- * gave up on the tag's bundle (network error, timeout, a bundle that throws; TAG-307). `ready()`
6
+ * gave up on the tag's bundle (network error, timeout, a bundle that throws). `ready()`
7
7
  * resolves once the announcement happened and nothing announced is pending; it never rejects, and
8
8
  * each call gets its own promise. A
9
9
  * tag settled before it is announced counts as settled, so the order of the loader's calls does
@@ -39,7 +39,7 @@ export function createInitialLoadBarrier() {
39
39
  pending?.delete(tag);
40
40
  check();
41
41
  },
42
- // A new promise per call (TAG-214 review, A3): the shared one never leaves this closure, so
42
+ // A new promise per call: the shared one never leaves this closure, so
43
43
  // no caller can poison its `then` for the others.
44
44
  ready: () => barrier.then(() => undefined),
45
45
  });
@@ -1 +1 @@
1
- {"version":3,"file":"barrier.js","sourceRoot":"","sources":["../../src/host/barrier.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAYH;;;;GAIG;AACH,MAAM,UAAU,wBAAwB;IACtC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAU,CAAC;IAClC,6DAA6D;IAC7D,IAAI,OAAgC,CAAC;IACrC,IAAI,IAAI,GAAe,GAAG,EAAE,CAAC,SAAS,CAAC;IACvC,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QAC5C,IAAI,GAAG,OAAO,CAAC;IACjB,CAAC,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,GAAG,EAAE;QACjB,IAAI,OAAO,EAAE,IAAI,KAAK,CAAC;YAAE,IAAI,EAAE,CAAC;IAClC,CAAC,CAAC;IACF,O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,GAAG,EAAE,CAAC;YACtB,KAAK,MAAM,GAAG,IAAI,IAAI;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;oBAAE,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAChE,KAAK,EAAE,CAAC;QACV,CAAC;QACD,MAAM,EAAE,CAAC,GAAW,EAAE,EAAE;YACtB,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACjB,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;YACrB,KAAK,EAAE,CAAC;QACV,CAAC;QACD,uEAAuE;QACvE,kDAAkD;QAClD,KAAK,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KAC3C,CAAC,CAAC;AACL,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The host page API (TAG-214, ADR 0023): `window.taggor` (`createHostApi`, `installHostApi`) and
2
+ * The host page API: `window.taggor` (`createHostApi`, `installHostApi`) and
3
3
  * the initial-load barrier behind its `ready()` (`createInitialLoadBarrier`). The loader bundles
4
4
  * this entry (`@taggor/runtime/host`); the runtime bundle only has the live component registry
5
- * (`liveComponents`, exported by the main entry). See docs/agentes/runtime.md §2.18.
5
+ * (`liveComponents`, exported by the main entry).
6
6
  */
7
7
  export { createHostApi, installHostApi, type HostApiOptions } from "./api.js";
8
8
  export { createInitialLoadBarrier, type InitialLoadBarrier } from "./barrier.js";
@@ -1,8 +1,8 @@
1
1
  /**
2
- * The host page API (TAG-214, ADR 0023): `window.taggor` (`createHostApi`, `installHostApi`) and
2
+ * The host page API: `window.taggor` (`createHostApi`, `installHostApi`) and
3
3
  * the initial-load barrier behind its `ready()` (`createInitialLoadBarrier`). The loader bundles
4
4
  * this entry (`@taggor/runtime/host`); the runtime bundle only has the live component registry
5
- * (`liveComponents`, exported by the main entry). See docs/agentes/runtime.md §2.18.
5
+ * (`liveComponents`, exported by the main entry).
6
6
  */
7
7
  export { createHostApi, installHostApi } from "./api.js";
8
8
  export { createInitialLoadBarrier } from "./barrier.js";
@@ -1,12 +1,12 @@
1
1
  /**
2
- * The live component registry (TAG-214): the connected component elements of the page's runtime copies,
2
+ * The live component registry: the connected component elements of the page's runtime copies,
3
3
  * each with the reader of its `ComponentInfo`. It is the only part of the host page API inside the
4
- * runtime bundle (ADR 0023): the Custom Element wrapper keeps it, and `window.taggor`
4
+ * runtime bundle: the Custom Element wrapper keeps it, and `window.taggor`
5
5
  * (`createHostApi`, which the loader bundles) reads it through the runtime module the loader
6
6
  * imported.
7
7
  *
8
8
  * Holds strong references only to connected elements: the controller deletes an element when it
9
- * really unmounts (TAG-317), so a removed element is not kept alive here; a move keeps it.
9
+ * really unmounts, so a removed element is not kept alive here; a move keeps it.
10
10
  */
11
11
  import type { ComponentInfo } from "./types.js";
12
12
  /** Reads the current info of one element; never throws (the controller catches). */