@webmusic/kernel 0.1.0 → 0.4.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 (197) hide show
  1. package/LICENSE +202 -21
  2. package/NOTICE +2 -0
  3. package/README.md +138 -101
  4. package/dist/audio-context.cjs.map +1 -1
  5. package/dist/build-receipt.json +3 -3
  6. package/dist/chunk-27LH6QLZ.cjs +277 -0
  7. package/dist/chunk-27LH6QLZ.cjs.map +1 -0
  8. package/dist/chunk-3INDOVUC.cjs.map +1 -1
  9. package/dist/chunk-3RR2VIKA.js +393 -0
  10. package/dist/chunk-3RR2VIKA.js.map +1 -0
  11. package/dist/chunk-3YTKIKKX.cjs +378 -0
  12. package/dist/chunk-3YTKIKKX.cjs.map +1 -0
  13. package/dist/chunk-4RG4WQKC.js +360 -0
  14. package/dist/chunk-4RG4WQKC.js.map +1 -0
  15. package/dist/chunk-5AHVQXTF.cjs +620 -0
  16. package/dist/chunk-5AHVQXTF.cjs.map +1 -0
  17. package/dist/chunk-624KWJWZ.js +170 -0
  18. package/dist/chunk-624KWJWZ.js.map +1 -0
  19. package/dist/chunk-6HGFEKD3.cjs +851 -0
  20. package/dist/chunk-6HGFEKD3.cjs.map +1 -0
  21. package/dist/chunk-7ZTZZ5PN.cjs.map +1 -1
  22. package/dist/chunk-ALWV4P7D.js +726 -0
  23. package/dist/chunk-ALWV4P7D.js.map +1 -0
  24. package/dist/chunk-BADJJ6DV.cjs +143 -0
  25. package/dist/chunk-BADJJ6DV.cjs.map +1 -0
  26. package/dist/chunk-C3LMS36L.cjs +393 -0
  27. package/dist/chunk-C3LMS36L.cjs.map +1 -0
  28. package/dist/chunk-C3YWUZW3.cjs.map +1 -1
  29. package/dist/chunk-CR6OUWBJ.cjs +726 -0
  30. package/dist/chunk-CR6OUWBJ.cjs.map +1 -0
  31. package/dist/chunk-CYWDZLWC.js +2141 -0
  32. package/dist/chunk-CYWDZLWC.js.map +1 -0
  33. package/dist/chunk-DDOGX2D5.js +378 -0
  34. package/dist/chunk-DDOGX2D5.js.map +1 -0
  35. package/dist/chunk-DVN6E5U3.js +620 -0
  36. package/dist/chunk-DVN6E5U3.js.map +1 -0
  37. package/dist/chunk-EURMRU2S.js +208 -0
  38. package/dist/chunk-EURMRU2S.js.map +1 -0
  39. package/dist/chunk-EXDCK2VL.cjs +20 -0
  40. package/dist/chunk-EXDCK2VL.cjs.map +1 -0
  41. package/dist/chunk-G5EIUP52.js +114 -0
  42. package/dist/chunk-G5EIUP52.js.map +1 -0
  43. package/dist/chunk-GB4DGKLZ.js +143 -0
  44. package/dist/chunk-GB4DGKLZ.js.map +1 -0
  45. package/dist/chunk-GPOEAYOW.js +2147 -0
  46. package/dist/chunk-GPOEAYOW.js.map +1 -0
  47. package/dist/chunk-I4YMA5VM.cjs +120 -0
  48. package/dist/chunk-I4YMA5VM.cjs.map +1 -0
  49. package/dist/chunk-IVWHMDCB.cjs +4383 -0
  50. package/dist/chunk-IVWHMDCB.cjs.map +1 -0
  51. package/dist/chunk-JFCBJMA7.cjs +2147 -0
  52. package/dist/chunk-JFCBJMA7.cjs.map +1 -0
  53. package/dist/chunk-JLVSAZ3K.cjs +813 -0
  54. package/dist/chunk-JLVSAZ3K.cjs.map +1 -0
  55. package/dist/chunk-K7FYH6UG.cjs +208 -0
  56. package/dist/chunk-K7FYH6UG.cjs.map +1 -0
  57. package/dist/chunk-L4MYCETM.cjs +970 -0
  58. package/dist/chunk-L4MYCETM.cjs.map +1 -0
  59. package/dist/chunk-MNCMYNYL.js +970 -0
  60. package/dist/chunk-MNCMYNYL.js.map +1 -0
  61. package/dist/chunk-NT2BZ3QM.js +120 -0
  62. package/dist/chunk-NT2BZ3QM.js.map +1 -0
  63. package/dist/chunk-O7SA5GLC.js +277 -0
  64. package/dist/chunk-O7SA5GLC.js.map +1 -0
  65. package/dist/chunk-OCKAHITL.cjs +548 -0
  66. package/dist/chunk-OCKAHITL.cjs.map +1 -0
  67. package/dist/{chunk-HOKRTYPV.js → chunk-OPBHDUZK.js} +39 -1
  68. package/dist/chunk-OPBHDUZK.js.map +1 -0
  69. package/dist/chunk-OTXYWCLA.js +206 -0
  70. package/dist/chunk-OTXYWCLA.js.map +1 -0
  71. package/dist/chunk-P6ZA63J7.js +548 -0
  72. package/dist/chunk-P6ZA63J7.js.map +1 -0
  73. package/dist/chunk-QLF3BOST.js +20 -0
  74. package/dist/chunk-QLF3BOST.js.map +1 -0
  75. package/dist/chunk-RCWFRZDR.js +4383 -0
  76. package/dist/chunk-RCWFRZDR.js.map +1 -0
  77. package/dist/chunk-RZBLPM3L.cjs +206 -0
  78. package/dist/chunk-RZBLPM3L.cjs.map +1 -0
  79. package/dist/chunk-TA3TNJZU.cjs +360 -0
  80. package/dist/chunk-TA3TNJZU.cjs.map +1 -0
  81. package/dist/chunk-TZSRPTQL.cjs +2141 -0
  82. package/dist/chunk-TZSRPTQL.cjs.map +1 -0
  83. package/dist/chunk-UMTPJ76S.cjs.map +1 -1
  84. package/dist/chunk-UY77FXDW.js +813 -0
  85. package/dist/chunk-UY77FXDW.js.map +1 -0
  86. package/dist/chunk-VFU3S7OC.js +851 -0
  87. package/dist/chunk-VFU3S7OC.js.map +1 -0
  88. package/dist/chunk-VY6WWZSW.cjs.map +1 -1
  89. package/dist/chunk-WN5DZOVT.cjs +170 -0
  90. package/dist/chunk-WN5DZOVT.cjs.map +1 -0
  91. package/dist/{chunk-HZQX4J2J.cjs → chunk-WOPW6WLR.cjs} +40 -2
  92. package/dist/chunk-WOPW6WLR.cjs.map +1 -0
  93. package/dist/chunk-XBSIYUHM.cjs +114 -0
  94. package/dist/chunk-XBSIYUHM.cjs.map +1 -0
  95. package/dist/chunk-ZMU72HJS.cjs.map +1 -1
  96. package/dist/context-DSa0ymyN.d.cts +664 -0
  97. package/dist/context-DaxfAg3b.d.ts +664 -0
  98. package/dist/effect-chain-Cu03O5Y0.d.ts +91 -0
  99. package/dist/effect-chain-Do75T7uK.d.cts +91 -0
  100. package/dist/effect.cjs +16 -1
  101. package/dist/effect.cjs.map +1 -1
  102. package/dist/effect.d.cts +56 -14
  103. package/dist/effect.d.ts +56 -14
  104. package/dist/effect.js +16 -1
  105. package/dist/elements.cjs +37 -2
  106. package/dist/elements.cjs.map +1 -1
  107. package/dist/elements.d.cts +197 -8
  108. package/dist/elements.d.ts +197 -8
  109. package/dist/elements.js +36 -1
  110. package/dist/events.cjs.map +1 -1
  111. package/dist/index.cjs +556 -9
  112. package/dist/index.cjs.map +1 -1
  113. package/dist/index.d.cts +17 -5
  114. package/dist/index.d.ts +17 -5
  115. package/dist/index.js +567 -20
  116. package/dist/message.cjs +104 -0
  117. package/dist/message.cjs.map +1 -0
  118. package/dist/message.d.cts +738 -0
  119. package/dist/message.d.ts +738 -0
  120. package/dist/message.js +104 -0
  121. package/dist/meter.cjs +2 -2
  122. package/dist/meter.cjs.map +1 -1
  123. package/dist/meter.d.cts +9 -1
  124. package/dist/meter.d.ts +9 -1
  125. package/dist/meter.js +1 -1
  126. package/dist/module-control-C25BMtH7.d.ts +61 -0
  127. package/dist/module-control-yH6nTJM9.d.cts +61 -0
  128. package/dist/module-plugin-BnPmq1VP.d.ts +198 -0
  129. package/dist/module-plugin-CHb-5W0Y.d.cts +198 -0
  130. package/dist/module.cjs +263 -0
  131. package/dist/module.cjs.map +1 -0
  132. package/dist/module.d.cts +1112 -0
  133. package/dist/module.d.ts +1112 -0
  134. package/dist/module.js +263 -0
  135. package/dist/parameter-DwQzFmBR.d.cts +172 -0
  136. package/dist/parameter-DwQzFmBR.d.ts +172 -0
  137. package/dist/player.cjs.map +1 -1
  138. package/dist/processor-worklet.cjs +18 -0
  139. package/dist/processor-worklet.cjs.map +1 -0
  140. package/dist/processor-worklet.d.cts +166 -0
  141. package/dist/processor-worklet.d.ts +166 -0
  142. package/dist/processor-worklet.js +18 -0
  143. package/dist/processor-worklet.js.map +1 -0
  144. package/dist/processor.cjs +51 -0
  145. package/dist/processor.cjs.map +1 -0
  146. package/dist/processor.d.cts +397 -0
  147. package/dist/processor.d.ts +397 -0
  148. package/dist/processor.js +51 -0
  149. package/dist/processor.js.map +1 -0
  150. package/dist/project-types-BU4awMnL.d.ts +323 -0
  151. package/dist/project-types-DufCV8Ma.d.cts +323 -0
  152. package/dist/ring-C-i9N90a.d.cts +139 -0
  153. package/dist/ring-DkcMt2Eg.d.ts +139 -0
  154. package/dist/sequence.cjs +68 -0
  155. package/dist/sequence.cjs.map +1 -0
  156. package/dist/sequence.d.cts +303 -0
  157. package/dist/sequence.d.ts +303 -0
  158. package/dist/sequence.js +68 -0
  159. package/dist/sequence.js.map +1 -0
  160. package/dist/session.cjs +16 -0
  161. package/dist/session.cjs.map +1 -0
  162. package/dist/session.d.cts +407 -0
  163. package/dist/session.d.ts +407 -0
  164. package/dist/session.js +16 -0
  165. package/dist/session.js.map +1 -0
  166. package/dist/tick.cjs.map +1 -1
  167. package/dist/transport.cjs +50 -2
  168. package/dist/transport.cjs.map +1 -1
  169. package/dist/transport.d.cts +145 -1
  170. package/dist/transport.d.ts +145 -1
  171. package/dist/transport.js +51 -3
  172. package/dist/worker.cjs.map +1 -1
  173. package/package.json +62 -11
  174. package/dist/chunk-53YD73OY.js +0 -162
  175. package/dist/chunk-53YD73OY.js.map +0 -1
  176. package/dist/chunk-BR63OD53.cjs +0 -1
  177. package/dist/chunk-BR63OD53.cjs.map +0 -1
  178. package/dist/chunk-HOKRTYPV.js.map +0 -1
  179. package/dist/chunk-HZQX4J2J.cjs.map +0 -1
  180. package/dist/chunk-JNXB74G3.cjs +0 -987
  181. package/dist/chunk-JNXB74G3.cjs.map +0 -1
  182. package/dist/chunk-SM5YPDDI.cjs +0 -162
  183. package/dist/chunk-SM5YPDDI.cjs.map +0 -1
  184. package/dist/chunk-TEM2I2NN.js +0 -1
  185. package/dist/chunk-VVZX7DQ6.cjs +0 -254
  186. package/dist/chunk-VVZX7DQ6.cjs.map +0 -1
  187. package/dist/chunk-WNFGDB7B.js +0 -254
  188. package/dist/chunk-WNFGDB7B.js.map +0 -1
  189. package/dist/chunk-XBJBY4J5.js +0 -987
  190. package/dist/chunk-XBJBY4J5.js.map +0 -1
  191. package/dist/sync.cjs +0 -12
  192. package/dist/sync.cjs.map +0 -1
  193. package/dist/sync.d.cts +0 -304
  194. package/dist/sync.d.ts +0 -304
  195. package/dist/sync.js +0 -12
  196. /package/dist/{chunk-TEM2I2NN.js.map → message.js.map} +0 -0
  197. /package/dist/{sync.js.map → module.js.map} +0 -0
@@ -1,4 +1,178 @@
1
+ import { w as ModuleHandle, V as SourcePort, Q as PortFamily, z as ModulePortMap, C as CapabilityKey, O as PortDirection, u as ModuleContext } from './context-DaxfAg3b.js';
2
+ import './tick.js';
3
+ import './session.js';
4
+ import './parameter-DwQzFmBR.js';
5
+ import './transport.js';
6
+ import './effect-chain-Cu03O5Y0.js';
7
+
8
+ type ElementTargetState = 'ready' | 'missing' | 'invalid' | 'ambiguous';
9
+ /**
10
+ * Observe one unique selector match in the host's own Document/ShadowRoot.
11
+ * The callback runs immediately and after target replacement or late upgrade.
12
+ * The caller owns the returned cleanup for the host's connected lifetime.
13
+ * A custom target replacing a non-reflected object property can dispatch
14
+ * `webmusic:sourcechange` to request a fresh connection to the same element.
15
+ */
16
+ declare function observeElementTarget(host: Element, selector: string, listener: (target: Element | undefined, state: ElementTargetState) => void): () => void;
17
+
18
+ type ModuleContextState = 'ready' | 'pending' | 'missing';
19
+ /** Provide a pending boundary until read() returns a context. Disposal revokes only this provider. */
20
+ declare function provideModuleContext(host: Element, read: () => ModuleContext | undefined): () => void;
21
+ declare function requestModuleContext(host: Element): ModuleContext | undefined;
22
+ declare function getModuleContextState(host: Element): ModuleContextState;
23
+ declare function hasModuleContextBoundary(host: Element): boolean;
24
+ declare function notifyModuleContext(host: Element): void;
25
+ declare function notifyModuleChange(host: Element): void;
26
+ /**
27
+ * The Element that exposes `module` (DEC-094), through any source relays it
28
+ * stands behind: the one that announced it with `notifyModuleChange`, as long
29
+ * as that Element still exposes it. Undefined for a module no Element owns.
30
+ */
31
+ declare function moduleOwner(module: ModuleHandle | undefined): Element | undefined;
32
+ /**
33
+ * Follow the `module` an Element exposes (DEC-094): `callback` runs with the
34
+ * current module now, then each time the Element's `module` is another one.
35
+ * An Element announces a new module with `webmusic:modulechange`, or a new
36
+ * scope that makes one with `webmusic:contextchange`; this hears both, from
37
+ * the Element and what it holds, and reports only a change of identity, so a
38
+ * host binds to it without listening for either itself. Returns the release
39
+ * function.
40
+ */
41
+ declare function observeElementModule(element: Element, callback: (module: ModuleHandle | undefined) => void): () => void;
42
+ /** Discovery is synchronous; observations re-evaluate after provider changes, upgrades and layout moves. */
43
+ declare function observeModuleContext(host: Element, callback: (context: ModuleContext | undefined, state: ModuleContextState) => void): () => void;
44
+ /** Observe an explicit same-root selector's .module and its public capability invalidations. */
45
+ declare function observeModuleTarget(host: Element, selector: string, callback: (target: ModuleHandle | undefined) => void): () => void;
46
+ /** What an input-observing Element currently borrows. */
47
+ interface ModuleInputState<F extends PortFamily> {
48
+ readonly module?: ModuleHandle;
49
+ readonly port?: ModulePortMap[F];
50
+ readonly error?: unknown;
51
+ }
52
+ interface ObserveModuleInputOptions<F extends PortFamily> {
53
+ family: F;
54
+ direction?: PortDirection;
55
+ /** Port name when the host has no `port` attribute. */
56
+ port: string;
57
+ /** Explicit object binding: a module binds it, null unbinds, undefined discovers. */
58
+ assigned?: ModuleHandle | null;
59
+ /** Host-level generation guard; a false result stops the observation. */
60
+ isCurrent?: () => boolean;
61
+ }
62
+ /**
63
+ * Resolve the module an Element consumes — explicit object, then the `input`
64
+ * selector, then the nearest provider's target — and the named port of one
65
+ * family on it. `update` runs when the module or the port identity changes,
66
+ * including when a port detaches. The caller owns whatever it builds on the
67
+ * port (a tap, a subscription); this observation owns only its discovery.
68
+ */
69
+ declare function observeModuleInput<F extends PortFamily>(host: Element, options: ObserveModuleInputOptions<F>, update: (state: ModuleInputState<F>) => void): () => void;
70
+ /** What a companion (a view or analysis that borrows a player) currently follows. */
71
+ interface CompanionInput {
72
+ /** Owner element: the `input` selector's target, or the owner a provider lends by containment. */
73
+ readonly element?: Element;
74
+ /** Module whose named source port is followed (explicit object or a `port` attribute). */
75
+ readonly module?: ModuleHandle;
76
+ /** The resolved source port, once its module publishes it. */
77
+ readonly port?: SourcePort<unknown>;
78
+ /** `pending`: a module was found but has not published the port yet. */
79
+ readonly state: ElementTargetState | 'pending';
80
+ readonly error?: unknown;
81
+ }
82
+ interface ObserveCompanionInputOptions {
83
+ /** Capability a provider scope lends to companions found by containment. */
84
+ readonly capability: CapabilityKey<unknown>;
85
+ /** Explicit object binding: a module binds its source port, null unbinds, undefined discovers. */
86
+ readonly assigned?: ModuleHandle | null;
87
+ /** Schema the followed source port must publish. */
88
+ readonly schemaId?: string;
89
+ /** Source port name when the host has no `port` attribute. */
90
+ readonly port?: string;
91
+ /** False when the host's `port` attribute names another family (an audio tap), so it never selects the source path. */
92
+ readonly portAttribute?: boolean;
93
+ readonly isCurrent?: () => boolean;
94
+ }
95
+ /**
96
+ * Resolve what a companion follows, in the DEC-068 order: an explicit module
97
+ * (its named source port), then the `input` selector, then the owner the
98
+ * nearest provider lends. A `port` attribute selects the module path for a
99
+ * selector or containment too: the companion follows that module's source
100
+ * port instead of the owner element. Only discovery is owned here.
101
+ */
102
+ declare function observeCompanionInput(host: Element, options: ObserveCompanionInputOptions, update: (input: CompanionInput) => void): () => void;
103
+
104
+ /**
105
+ * Give an Element's tag a default style the page can override (DEC-094): one
106
+ * rule per `key` in the root the Element is in — prepended to the document's
107
+ * head, or to the shadow root — written with the tag as a `:where()`
108
+ * selector so it has no specificity. This is what an inline style cannot
109
+ * be: a page's rule, the `hidden` attribute and a host's own inline style
110
+ * all still win. `rule` receives the escaped tag name and returns the CSS.
111
+ * A rule a page removed is added again. Returns whether this call added it.
112
+ */
113
+ declare function adoptHostRule(element: Element, key: string, rule: (selector: string) => string): boolean;
114
+
115
+ /**
116
+ * How an Element is made as tall as the box a host gives it (DEC-094). An
117
+ * Element that draws on a surface whose height it chooses declares one as
118
+ * the static `hostFit` of its class; a host applies it with
119
+ * {@link fitElementHeight} and needs to know nothing else about the Element.
120
+ */
121
+ type ElementHeightFit =
122
+ /** A height token on the Element sizes `surface`, measured inside `content`: both are selectors in its shadow root, or in the Element. */
123
+ {
124
+ readonly kind: 'token';
125
+ readonly property: string;
126
+ readonly content: string;
127
+ readonly surface: string;
128
+ readonly least: number;
129
+ }
130
+ /** The Element's `height` attribute, in CSS pixels; `content`, when given, is measured to find what its tools take. */
131
+ | {
132
+ readonly kind: 'attribute';
133
+ readonly least: number;
134
+ readonly content?: string;
135
+ };
136
+ interface ElementFitOptions {
137
+ /** The fit to apply instead of the one the Element's class declares. */
138
+ readonly fit?: ElementHeightFit;
139
+ /**
140
+ * What the Element's height goes back to when the fit is released: the
141
+ * `height` attribute's value, or the token's, and `null` to remove it.
142
+ * `initial` is what it was when fitting began, which is the default.
143
+ */
144
+ readonly restore?: (initial: string | null) => string | null;
145
+ /**
146
+ * Show all of the Element in a box too small for it (DEC-099). When the
147
+ * Element cannot be laid out as small as its box — its drawing is at its
148
+ * least height, it declares no fit and is taller than the box, or what it
149
+ * holds is wider than the box — it is laid out as large as it needs, in the
150
+ * box's proportions, and scaled down to the box, so nothing is cut off and
151
+ * nothing has to be scrolled into view. The fit then owns the Element's
152
+ * inline `width`, `height`, `transform` and `transform-origin` as well, and
153
+ * gives them back when released. With it, an Element that declares no fit
154
+ * is fitted too. Default false: the Element is left to its box's overflow.
155
+ */
156
+ readonly contain?: boolean;
157
+ }
158
+ /** The fit an Element's class declares as its static `hostFit`, if it is a well-formed one. */
159
+ declare function elementFitOf(element: Element): ElementHeightFit | undefined;
160
+ /**
161
+ * Make an Element as tall as its box (DEC-094): the part that draws takes
162
+ * the height its tools and readouts leave, and follows the box when it is
163
+ * resized. The Element must already be inside `box`, by default its parent,
164
+ * which sets its width and has a height of its own. An Element that declares
165
+ * no fit, and is given none, keeps its own height. With `contain`, an
166
+ * Element that cannot be as small as its box is scaled down to it (DEC-099).
167
+ * Returns the release function, which gives the Element its own height back.
168
+ *
169
+ * The caller owns the release; the fit owns the Element's `height` attribute
170
+ * or height token until then, so nothing else should write it meanwhile.
171
+ */
172
+ declare function fitElementHeight(element: HTMLElement, box?: HTMLElement | null, options?: ElementFitOptions): () => void;
173
+
1
174
  declare const HTMLElementBase: typeof HTMLElement;
175
+
2
176
  /** Cleanup owned by one connected lifetime of a {@link WebMusicElement}. */
3
177
  type ElementCleanup = () => void;
4
178
  /**
@@ -63,14 +237,29 @@ declare function boolAttr(el: Element, name: string, fallback?: boolean): boolea
63
237
  declare function cssSizeAttr(el: Element, name: string): string | undefined;
64
238
  /** Register `ctor` at `tag` once; a no-op outside the browser or if taken. */
65
239
  declare function defineOnce(tag: string, ctor: CustomElementConstructor): void;
66
- type ElementTargetState = 'ready' | 'missing' | 'invalid' | 'ambiguous';
240
+
241
+ /** A selected element may exist before its non-reflected source is available. */
242
+ type ElementSourceState = ElementTargetState | 'unavailable';
243
+ interface ElementSourceOptions<T> {
244
+ /** An explicit value takes precedence. Only undefined enables selector lookup. */
245
+ readonly source?: unknown;
246
+ readonly selector?: string;
247
+ readonly property: string;
248
+ /** Domain validation belongs to the consumer; Kernel has no domain types. */
249
+ readonly accepts: (value: unknown) => value is T;
250
+ }
251
+ interface ElementSourceResolution<T> {
252
+ readonly state: ElementSourceState;
253
+ readonly source?: T;
254
+ readonly target?: Element;
255
+ readonly error?: unknown;
256
+ }
67
257
  /**
68
- * Observe one unique selector match in the host's own Document/ShadowRoot.
69
- * The callback runs immediately and after target replacement or late upgrade.
70
- * The caller owns the returned cleanup for the host's connected lifetime.
71
- * A custom target replacing a non-reflected object property can dispatch
72
- * `webmusic:sourcechange` to request a fresh connection to the same element.
258
+ * Resolve an explicit source or a selected element's public object property.
259
+ * Captures one configuration; dispose and rebind when that configuration changes.
260
+ * Does not subscribe to, own, or dispose the borrowed domain source. Source
261
+ * changes on the same target use the existing webmusic:sourcechange protocol.
73
262
  */
74
- declare function observeElementTarget(host: Element, selector: string, listener: (target: Element | undefined, state: ElementTargetState) => void): () => void;
263
+ declare function observeElementSource<T>(host: Element, options: ElementSourceOptions<T>, listener: (resolution: ElementSourceResolution<T>) => void): () => void;
75
264
 
76
- export { type ElementCleanup, type ElementTargetState, HTMLElementBase, WebMusicElement, boolAttr, cssSizeAttr, defineOnce, numAttr, observeElementTarget, upgradeProperties, upgradeProperty };
265
+ export { type CompanionInput, type ElementCleanup, type ElementFitOptions, type ElementHeightFit, type ElementSourceOptions, type ElementSourceResolution, type ElementSourceState, type ElementTargetState, HTMLElementBase, type ModuleContextState, type ModuleInputState, type ObserveCompanionInputOptions, type ObserveModuleInputOptions, WebMusicElement, adoptHostRule, boolAttr, cssSizeAttr, defineOnce, elementFitOf, fitElementHeight, getModuleContextState, hasModuleContextBoundary, moduleOwner, notifyModuleChange, notifyModuleContext, numAttr, observeCompanionInput, observeElementModule, observeElementSource, observeElementTarget, observeModuleContext, observeModuleInput, observeModuleTarget, provideModuleContext, requestModuleContext, upgradeProperties, upgradeProperty };
package/dist/elements.js CHANGED
@@ -1,23 +1,58 @@
1
1
  import {
2
2
  HTMLElementBase,
3
3
  WebMusicElement,
4
+ adoptHostRule,
4
5
  boolAttr,
5
6
  cssSizeAttr,
6
7
  defineOnce,
8
+ elementFitOf,
9
+ fitElementHeight,
10
+ getModuleContextState,
11
+ hasModuleContextBoundary,
12
+ moduleOwner,
13
+ notifyModuleChange,
14
+ notifyModuleContext,
7
15
  numAttr,
16
+ observeCompanionInput,
17
+ observeElementModule,
18
+ observeElementSource,
8
19
  observeElementTarget,
20
+ observeModuleContext,
21
+ observeModuleInput,
22
+ observeModuleTarget,
23
+ provideModuleContext,
24
+ requestModuleContext,
9
25
  upgradeProperties,
10
26
  upgradeProperty
11
- } from "./chunk-WNFGDB7B.js";
27
+ } from "./chunk-MNCMYNYL.js";
28
+ import "./chunk-G5EIUP52.js";
29
+ import "./chunk-GB4DGKLZ.js";
30
+ import "./chunk-QLF3BOST.js";
12
31
  import "./chunk-PXG64RU4.js";
13
32
  export {
14
33
  HTMLElementBase,
15
34
  WebMusicElement,
35
+ adoptHostRule,
16
36
  boolAttr,
17
37
  cssSizeAttr,
18
38
  defineOnce,
39
+ elementFitOf,
40
+ fitElementHeight,
41
+ getModuleContextState,
42
+ hasModuleContextBoundary,
43
+ moduleOwner,
44
+ notifyModuleChange,
45
+ notifyModuleContext,
19
46
  numAttr,
47
+ observeCompanionInput,
48
+ observeElementModule,
49
+ observeElementSource,
20
50
  observeElementTarget,
51
+ observeModuleContext,
52
+ observeModuleInput,
53
+ observeModuleTarget,
54
+ provideModuleContext,
55
+ requestModuleContext,
21
56
  upgradeProperties,
22
57
  upgradeProperty
23
58
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["/Users/mamingchen/GitHub/public/WebMusic/platform/kernel/dist/events.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,sDAAC","file":"/Users/mamingchen/GitHub/public/WebMusic/platform/kernel/dist/events.cjs"}
1
+ {"version":3,"sources":["/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/events.cjs"],"names":[],"mappings":"AAAA;AACE;AACF,wDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,sDAAC","file":"/private/tmp/claude-501/-Users-mamingchen-GitHub-public-WebMusic/77eac0d8-82c0-45c6-aba8-0cd73cfd2b1b/scratchpad/release-0.4.0/platform/kernel/dist/events.cjs"}