@ecopages/radiant 0.3.0-alpha.9 → 0.3.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (564) hide show
  1. package/README.md +5 -5
  2. package/client/app-bootstrap.d.ts +19 -0
  3. package/client/app-bootstrap.js +3 -0
  4. package/client/app-bootstrap.js.map +10 -0
  5. package/client/hydrator.js +3 -0
  6. package/{dist/client → client}/hydrator.js.map +2 -2
  7. package/client/install-hydrator.js +3 -0
  8. package/{dist/client → client}/install-hydrator.js.map +2 -2
  9. package/context/context-consumer-bootstrap.js +3 -0
  10. package/{dist/context → context}/context-consumer-bootstrap.js.map +4 -4
  11. package/context/context-consumer-runtime.js +3 -0
  12. package/context/context-consumer-runtime.js.map +12 -0
  13. package/context/context-host.js +3 -0
  14. package/{dist/context → context}/context-host.js.map +2 -2
  15. package/context/context-provider.js +3 -0
  16. package/{dist/context → context}/context-provider.js.map +3 -3
  17. package/context/context-ssr-bridge.js +3 -0
  18. package/{dist/context → context}/context-ssr-bridge.js.map +2 -2
  19. package/context/create-context.js +3 -0
  20. package/{dist/context → context}/create-context.js.map +2 -2
  21. package/context/decorators/consume-context.js +3 -0
  22. package/context/decorators/consume-context.js.map +19 -0
  23. package/context/decorators/context-selection-delivery.js +3 -0
  24. package/{dist/context → context}/decorators/context-selection-delivery.js.map +2 -2
  25. package/context/decorators/context-selector.js +3 -0
  26. package/context/decorators/context-selector.js.map +22 -0
  27. package/context/decorators/legacy/consume-context.js +3 -0
  28. package/context/decorators/legacy/consume-context.js.map +16 -0
  29. package/context/decorators/legacy/context-selector-field.js +3 -0
  30. package/context/decorators/legacy/context-selector-field.js.map +17 -0
  31. package/context/decorators/legacy/context-selector.js +3 -0
  32. package/context/decorators/legacy/context-selector.js.map +17 -0
  33. package/context/decorators/legacy/provide-context.js +3 -0
  34. package/{dist/context → context}/decorators/legacy/provide-context.js.map +5 -5
  35. package/context/decorators/on-context-update.js +3 -0
  36. package/{dist/context → context}/decorators/on-context-update.js.map +6 -6
  37. package/context/decorators/provide-context.js +3 -0
  38. package/{dist/context → context}/decorators/provide-context.js.map +5 -5
  39. package/context/decorators/standard/consume-context.js +3 -0
  40. package/{dist/context → context}/decorators/standard/consume-context.js.map +4 -4
  41. package/context/decorators/standard/context-selector-field.js +3 -0
  42. package/{dist/context → context}/decorators/standard/context-selector-field.js.map +4 -4
  43. package/context/decorators/standard/context-selector.js +3 -0
  44. package/{dist/context → context}/decorators/standard/context-selector.js.map +4 -4
  45. package/context/decorators/standard/provide-context.js +3 -0
  46. package/{dist/context → context}/decorators/standard/provide-context.js.map +3 -3
  47. package/context/decorators/standard-legacy-dispatch.d.ts +6 -0
  48. package/context/decorators/standard-legacy-dispatch.js +3 -0
  49. package/context/decorators/standard-legacy-dispatch.js.map +10 -0
  50. package/context/events.js +3 -0
  51. package/context/events.js.map +10 -0
  52. package/context/hydration-script.js +3 -0
  53. package/{dist/context → context}/hydration-script.js.map +2 -2
  54. package/context/index.js +3 -0
  55. package/{dist/context → context}/index.js.map +13 -12
  56. package/controller-registry.js +3 -0
  57. package/{dist/controller-registry.js.map → controller-registry.js.map} +2 -2
  58. package/core/controller-metadata.js +3 -0
  59. package/{dist/core → core}/controller-metadata.js.map +2 -2
  60. package/core/custom-element-metadata.js +3 -0
  61. package/{dist/core → core}/custom-element-metadata.js.map +2 -2
  62. package/core/event-subscription-registry.d.ts +16 -0
  63. package/core/event-subscription-registry.js +3 -0
  64. package/core/event-subscription-registry.js.map +10 -0
  65. package/core/host-ssr-registry.d.ts +13 -0
  66. package/core/host-ssr-registry.js +3 -0
  67. package/core/host-ssr-registry.js.map +10 -0
  68. package/core/hydration-capable-host.d.ts +8 -0
  69. package/core/hydration-capable-host.js +3 -0
  70. package/core/hydration-capable-host.js.map +10 -0
  71. package/core/hydration-codec.js +3 -0
  72. package/{dist/core → core}/hydration-codec.js.map +2 -2
  73. package/{dist/core → core}/radiant-controller.d.ts +42 -20
  74. package/core/radiant-controller.js +3 -0
  75. package/core/radiant-controller.js.map +21 -0
  76. package/{dist/core/radiant-component-ssr.d.ts → core/radiant-element-ssr-host.d.ts} +16 -16
  77. package/core/radiant-element-ssr-host.js +3 -0
  78. package/core/radiant-element-ssr-host.js.map +10 -0
  79. package/core/radiant-element-ssr-registry.d.ts +20 -0
  80. package/core/radiant-element-ssr-registry.js +3 -0
  81. package/core/radiant-element-ssr-registry.js.map +10 -0
  82. package/{dist/core → core}/radiant-element.d.ts +44 -155
  83. package/core/radiant-element.js +3 -0
  84. package/core/radiant-element.js.map +31 -0
  85. package/core/radiant-hydrator-state.js +3 -0
  86. package/{dist/core → core}/radiant-hydrator-state.js.map +2 -2
  87. package/core/reactive-binding-adapter.d.ts +10 -0
  88. package/core/reactive-binding-adapter.js +3 -0
  89. package/core/reactive-binding-adapter.js.map +10 -0
  90. package/core/reactive-host.d.ts +138 -0
  91. package/core/reactive-host.js +3 -0
  92. package/core/reactive-host.js.map +13 -0
  93. package/{dist/core → core}/reactive-jsx-value.d.ts +4 -3
  94. package/core/reactive-jsx-value.js +3 -0
  95. package/core/reactive-jsx-value.js.map +10 -0
  96. package/core/reactive-prop-core.d.ts +39 -0
  97. package/core/reactive-prop-core.js +3 -0
  98. package/{dist/decorators/standard/reactive-prop.js.map → core/reactive-prop-core.js.map} +4 -5
  99. package/{dist/core → core}/reactive-prop-metadata.d.ts +1 -1
  100. package/core/reactive-prop-metadata.js +3 -0
  101. package/core/reactive-prop-metadata.js.map +10 -0
  102. package/core/reactive-property-state.d.ts +20 -0
  103. package/core/reactive-property-state.js +3 -0
  104. package/core/reactive-property-state.js.map +12 -0
  105. package/core/reactivity-adapter.d.ts +8 -0
  106. package/core/reactivity-adapter.js +3 -0
  107. package/core/reactivity-adapter.js.map +12 -0
  108. package/core/reactivity-contract.d.ts +53 -0
  109. package/core/reactivity-contract.js +2 -0
  110. package/core/reactivity-contract.js.map +9 -0
  111. package/core/reactivity-runtime.d.ts +18 -0
  112. package/core/reactivity-runtime.js +3 -0
  113. package/core/reactivity-runtime.js.map +11 -0
  114. package/core/reactivity-signals.d.ts +10 -0
  115. package/core/reactivity-signals.js +3 -0
  116. package/core/reactivity-signals.js.map +10 -0
  117. package/core/render-runtime.d.ts +28 -0
  118. package/core/render-runtime.js +3 -0
  119. package/core/render-runtime.js.map +16 -0
  120. package/core/render-scheduler.d.ts +22 -0
  121. package/core/render-scheduler.js +3 -0
  122. package/core/render-scheduler.js.map +10 -0
  123. package/core/slot-projection-runtime.js +3 -0
  124. package/core/slot-projection-runtime.js.map +12 -0
  125. package/core/ssr-preparation.js +3 -0
  126. package/{dist/core → core}/ssr-preparation.js.map +2 -2
  127. package/decorators/attr.js +3 -0
  128. package/decorators/attr.js.map +18 -0
  129. package/decorators/bound.js +3 -0
  130. package/{dist/decorators → decorators}/bound.js.map +2 -2
  131. package/decorators/bridge.js +3 -0
  132. package/{dist/decorators → decorators}/bridge.js.map +2 -2
  133. package/decorators/controller.js +3 -0
  134. package/{dist/decorators → decorators}/controller.js.map +2 -2
  135. package/decorators/custom-element.js +3 -0
  136. package/{dist/decorators → decorators}/custom-element.js.map +2 -2
  137. package/decorators/debounce.js +3 -0
  138. package/{dist/decorators → decorators}/debounce.js.map +2 -2
  139. package/decorators/event.js +3 -0
  140. package/{dist/decorators → decorators}/event.js.map +3 -3
  141. package/decorators/legacy/attr.js +3 -0
  142. package/decorators/legacy/attr.js.map +15 -0
  143. package/decorators/legacy/bound.js +3 -0
  144. package/{dist/decorators → decorators}/legacy/bound.js.map +2 -2
  145. package/decorators/legacy/custom-element.js +3 -0
  146. package/{dist/decorators → decorators}/legacy/custom-element.js.map +2 -2
  147. package/decorators/legacy/debounce.js +3 -0
  148. package/{dist/decorators → decorators}/legacy/debounce.js.map +2 -2
  149. package/decorators/legacy/event.js +3 -0
  150. package/decorators/legacy/event.js.map +13 -0
  151. package/decorators/legacy/host-readiness.d.ts +8 -0
  152. package/decorators/legacy/host-readiness.js +3 -0
  153. package/decorators/legacy/host-readiness.js.map +11 -0
  154. package/decorators/legacy/instance-initializers.d.ts +34 -0
  155. package/decorators/legacy/instance-initializers.js +3 -0
  156. package/decorators/legacy/instance-initializers.js.map +10 -0
  157. package/decorators/legacy/member-bootstrap.d.ts +10 -0
  158. package/decorators/legacy/member-bootstrap.js +3 -0
  159. package/decorators/legacy/member-bootstrap.js.map +10 -0
  160. package/decorators/legacy/on-event.js +3 -0
  161. package/decorators/legacy/on-event.js.map +13 -0
  162. package/{dist/decorators → decorators}/legacy/on-updated.d.ts +1 -1
  163. package/decorators/legacy/on-updated.js +3 -0
  164. package/decorators/legacy/on-updated.js.map +11 -0
  165. package/decorators/legacy/query-slot.js +3 -0
  166. package/decorators/legacy/query-slot.js.map +13 -0
  167. package/decorators/legacy/query.js +3 -0
  168. package/decorators/legacy/query.js.map +12 -0
  169. package/decorators/legacy/reactive-field.js +3 -0
  170. package/decorators/legacy/reactive-field.js.map +13 -0
  171. package/{dist/decorators → decorators}/legacy/reactive-prop.d.ts +1 -2
  172. package/decorators/legacy/reactive-prop.js +3 -0
  173. package/decorators/legacy/reactive-prop.js.map +15 -0
  174. package/{dist/decorators → decorators}/legacy/signal.d.ts +1 -1
  175. package/decorators/legacy/signal.js +3 -0
  176. package/decorators/legacy/signal.js.map +17 -0
  177. package/decorators/on-event.js +3 -0
  178. package/{dist/decorators → decorators}/on-event.js.map +4 -4
  179. package/decorators/on-updated.js +3 -0
  180. package/decorators/on-updated.js.map +14 -0
  181. package/{dist/decorators → decorators}/prop.d.ts +5 -6
  182. package/decorators/prop.js +3 -0
  183. package/decorators/prop.js.map +18 -0
  184. package/decorators/query-slot.js +3 -0
  185. package/decorators/query-slot.js.map +16 -0
  186. package/decorators/query.js +3 -0
  187. package/{dist/decorators → decorators}/query.js.map +3 -3
  188. package/decorators/shared/auto-bind.d.ts +7 -0
  189. package/decorators/shared/auto-bind.js +3 -0
  190. package/decorators/shared/auto-bind.js.map +10 -0
  191. package/{dist/decorators → decorators}/shared/reactive-attr.d.ts +1 -1
  192. package/decorators/shared/reactive-attr.js +3 -0
  193. package/decorators/shared/reactive-attr.js.map +13 -0
  194. package/decorators/signal.js +3 -0
  195. package/decorators/signal.js.map +19 -0
  196. package/decorators/standard/attr.js +3 -0
  197. package/decorators/standard/attr.js.map +14 -0
  198. package/decorators/standard/bound.js +3 -0
  199. package/{dist/decorators → decorators}/standard/bound.js.map +2 -2
  200. package/decorators/standard/custom-element.js +3 -0
  201. package/{dist/decorators → decorators}/standard/custom-element.js.map +2 -2
  202. package/decorators/standard/debounce.js +3 -0
  203. package/{dist/decorators → decorators}/standard/debounce.js.map +2 -2
  204. package/decorators/standard/event.js +3 -0
  205. package/{dist/decorators → decorators}/standard/event.js.map +2 -2
  206. package/decorators/standard/on-event.js +3 -0
  207. package/{dist/decorators → decorators}/standard/on-event.js.map +3 -3
  208. package/decorators/standard/on-updated.js +3 -0
  209. package/{dist/decorators → decorators}/standard/on-updated.js.map +2 -2
  210. package/{dist/decorators → decorators}/standard/query-slot.d.ts +0 -1
  211. package/decorators/standard/query-slot.js +3 -0
  212. package/decorators/standard/query-slot.js.map +11 -0
  213. package/decorators/standard/query.js +3 -0
  214. package/{dist/decorators → decorators}/standard/query.js.map +2 -2
  215. package/decorators/standard/reactive-field.js +3 -0
  216. package/decorators/standard/reactive-field.js.map +11 -0
  217. package/{dist/decorators → decorators}/standard/reactive-prop.d.ts +1 -1
  218. package/decorators/standard/reactive-prop.js +3 -0
  219. package/decorators/standard/reactive-prop.js.map +13 -0
  220. package/{dist/decorators → decorators}/standard/signal.d.ts +1 -1
  221. package/decorators/standard/signal.js +3 -0
  222. package/decorators/standard/signal.js.map +16 -0
  223. package/{dist/decorators → decorators}/state.d.ts +3 -2
  224. package/decorators/state.js +3 -0
  225. package/decorators/state.js.map +16 -0
  226. package/helpers/create-event-listener.js +3 -0
  227. package/{dist/helpers → helpers}/create-event-listener.js.map +3 -3
  228. package/helpers/create-event.js +3 -0
  229. package/{dist/helpers → helpers}/create-event.js.map +2 -2
  230. package/{dist/helpers → helpers}/create-query-slot.d.ts +0 -1
  231. package/helpers/create-query-slot.js +3 -0
  232. package/helpers/create-query-slot.js.map +10 -0
  233. package/helpers/create-query.js +3 -0
  234. package/{dist/helpers → helpers}/create-query.js.map +2 -2
  235. package/helpers/debounce.js +3 -0
  236. package/{dist/helpers → helpers}/debounce.js.map +2 -2
  237. package/helpers/index.js +3 -0
  238. package/{dist/helpers → helpers}/index.js.map +4 -4
  239. package/index.js +3 -0
  240. package/index.js.map +86 -0
  241. package/package.json +102 -125
  242. package/server/context-ssr.js +3 -0
  243. package/{dist/server → server}/context-ssr.js.map +2 -2
  244. package/server/host-attribute-serialization.d.ts +46 -0
  245. package/server/host-attribute-serialization.js +3 -0
  246. package/server/host-attribute-serialization.js.map +12 -0
  247. package/server/host-script-composition.d.ts +42 -0
  248. package/server/host-script-composition.js +3 -0
  249. package/server/host-script-composition.js.map +10 -0
  250. package/server/html-parser.js +3 -0
  251. package/{dist/server → server}/html-parser.js.map +2 -2
  252. package/server/install-light-dom-shim.js +3 -0
  253. package/server/install-light-dom-shim.js.map +17 -0
  254. package/server/internal-radiant-host.d.ts +2 -0
  255. package/server/internal-radiant-host.js +3 -0
  256. package/server/internal-radiant-host.js.map +9 -0
  257. package/server/light-dom-shim.d.ts +2 -0
  258. package/server/light-dom-shim.js +3 -0
  259. package/server/light-dom-shim.js.map +16 -0
  260. package/server/minimal-dom/document.d.ts +17 -0
  261. package/server/minimal-dom/document.js +3 -0
  262. package/server/minimal-dom/document.js.map +14 -0
  263. package/server/minimal-dom/html.d.ts +7 -0
  264. package/server/minimal-dom/html.js +3 -0
  265. package/server/minimal-dom/html.js.map +13 -0
  266. package/{dist/server/light-dom-shim.d.ts → server/minimal-dom/install.d.ts} +1 -4
  267. package/server/minimal-dom/install.js +3 -0
  268. package/server/minimal-dom/install.js.map +16 -0
  269. package/server/minimal-dom/nodes.d.ts +78 -0
  270. package/server/project-root.js +3 -0
  271. package/{dist/server → server}/project-root.js.map +2 -2
  272. package/server/radiant-element-ssr-bridge.d.ts +21 -0
  273. package/server/radiant-element-ssr-bridge.js +3 -0
  274. package/server/radiant-element-ssr-bridge.js.map +24 -0
  275. package/server/radiant-element-ssr-extractor.d.ts +2 -0
  276. package/server/radiant-element-ssr-extractor.js +3 -0
  277. package/server/radiant-element-ssr-extractor.js.map +12 -0
  278. package/server/radiant-element-ssr-service.d.ts +13 -0
  279. package/server/radiant-element-ssr-service.js +3 -0
  280. package/server/radiant-element-ssr-service.js.map +22 -0
  281. package/server/radiant-element-ssr.d.ts +1 -0
  282. package/server/radiant-element-ssr.js +3 -0
  283. package/server/radiant-element-ssr.js.map +24 -0
  284. package/{dist/server → server}/render-component.d.ts +3 -9
  285. package/server/render-component.js +3 -0
  286. package/server/render-component.js.map +32 -0
  287. package/server/render-controller.js +3 -0
  288. package/server/render-controller.js.map +35 -0
  289. package/server/render-fragment.d.ts +7 -0
  290. package/server/render-fragment.js +3 -0
  291. package/server/render-fragment.js.map +10 -0
  292. package/server/slot-projection-html.js +3 -0
  293. package/{dist/server → server}/slot-projection-html.js.map +5 -5
  294. package/signals/host-resource.js +3 -0
  295. package/{dist/signals → signals}/host-resource.js.map +2 -2
  296. package/{dist/signals → signals}/host-signal.d.ts +2 -1
  297. package/signals/host-signal.js +3 -0
  298. package/signals/host-signal.js.map +13 -0
  299. package/signals/hydration-script.js +3 -0
  300. package/{dist/signals → signals}/hydration-script.js.map +2 -2
  301. package/tools/escape-css-identifier.js +3 -0
  302. package/tools/escape-css-identifier.js.map +10 -0
  303. package/tools/escape-script-json.js +3 -0
  304. package/{dist/tools → tools}/escape-script-json.js.map +2 -2
  305. package/tools/event-emitter.js +3 -0
  306. package/{dist/tools → tools}/event-emitter.js.map +2 -2
  307. package/tools/index.js +3 -0
  308. package/{dist/tools → tools}/index.js.map +3 -3
  309. package/tools/render-jsx-template.js +3 -0
  310. package/{dist/tools → tools}/render-jsx-template.js.map +2 -2
  311. package/types.js +3 -0
  312. package/{dist/types.js.map → types.js.map} +2 -2
  313. package/utils/attribute-utils.js +3 -0
  314. package/{dist/utils → utils}/attribute-utils.js.map +2 -2
  315. package/utils/escape-html-attribute.d.ts +2 -0
  316. package/utils/escape-html-attribute.js +3 -0
  317. package/utils/escape-html-attribute.js.map +10 -0
  318. package/utils/index.js +3 -0
  319. package/{dist/utils → utils}/index.js.map +2 -2
  320. package/dist/LICENSE +0 -21
  321. package/dist/client/hydrator.js +0 -3
  322. package/dist/client/install-hydrator.js +0 -3
  323. package/dist/context/context-consumer-bootstrap.js +0 -3
  324. package/dist/context/context-consumer-runtime.js +0 -3
  325. package/dist/context/context-consumer-runtime.js.map +0 -12
  326. package/dist/context/context-host.js +0 -3
  327. package/dist/context/context-provider.js +0 -3
  328. package/dist/context/context-ssr-bridge.js +0 -3
  329. package/dist/context/create-context.js +0 -3
  330. package/dist/context/decorators/consume-context.js +0 -3
  331. package/dist/context/decorators/consume-context.js.map +0 -19
  332. package/dist/context/decorators/context-selection-delivery.js +0 -3
  333. package/dist/context/decorators/context-selector.js +0 -3
  334. package/dist/context/decorators/context-selector.js.map +0 -21
  335. package/dist/context/decorators/legacy/consume-context.js +0 -3
  336. package/dist/context/decorators/legacy/consume-context.js.map +0 -16
  337. package/dist/context/decorators/legacy/context-selector-field.js +0 -3
  338. package/dist/context/decorators/legacy/context-selector-field.js.map +0 -17
  339. package/dist/context/decorators/legacy/context-selector.js +0 -3
  340. package/dist/context/decorators/legacy/context-selector.js.map +0 -17
  341. package/dist/context/decorators/legacy/provide-context.js +0 -3
  342. package/dist/context/decorators/on-context-update.js +0 -3
  343. package/dist/context/decorators/provide-context.js +0 -3
  344. package/dist/context/decorators/standard/consume-context.js +0 -3
  345. package/dist/context/decorators/standard/context-selector-field.js +0 -3
  346. package/dist/context/decorators/standard/context-selector.js +0 -3
  347. package/dist/context/decorators/standard/provide-context.js +0 -3
  348. package/dist/context/events.js +0 -3
  349. package/dist/context/events.js.map +0 -10
  350. package/dist/context/hydration-script.js +0 -3
  351. package/dist/context/index.js +0 -3
  352. package/dist/controller-registry.js +0 -3
  353. package/dist/core/controller-metadata.js +0 -3
  354. package/dist/core/custom-element-metadata.js +0 -3
  355. package/dist/core/hydration-codec.js +0 -3
  356. package/dist/core/radiant-component-ssr-registry.d.ts +0 -54
  357. package/dist/core/radiant-component-ssr-registry.js +0 -3
  358. package/dist/core/radiant-component-ssr-registry.js.map +0 -10
  359. package/dist/core/radiant-component-ssr.js +0 -3
  360. package/dist/core/radiant-component-ssr.js.map +0 -14
  361. package/dist/core/radiant-controller.js +0 -3
  362. package/dist/core/radiant-controller.js.map +0 -13
  363. package/dist/core/radiant-element.js +0 -3
  364. package/dist/core/radiant-element.js.map +0 -19
  365. package/dist/core/radiant-hydrator-state.js +0 -3
  366. package/dist/core/reactive-host.d.ts +0 -137
  367. package/dist/core/reactive-host.js +0 -3
  368. package/dist/core/reactive-host.js.map +0 -10
  369. package/dist/core/reactive-jsx-value.js +0 -3
  370. package/dist/core/reactive-jsx-value.js.map +0 -10
  371. package/dist/core/reactive-prop-metadata.js +0 -3
  372. package/dist/core/reactive-prop-metadata.js.map +0 -10
  373. package/dist/core/slot-projection-runtime.js +0 -3
  374. package/dist/core/slot-projection-runtime.js.map +0 -12
  375. package/dist/core/ssr-preparation.js +0 -3
  376. package/dist/decorators/attr.js +0 -3
  377. package/dist/decorators/attr.js.map +0 -16
  378. package/dist/decorators/bound.js +0 -3
  379. package/dist/decorators/bridge.js +0 -3
  380. package/dist/decorators/controller.js +0 -3
  381. package/dist/decorators/custom-element.js +0 -3
  382. package/dist/decorators/debounce.js +0 -3
  383. package/dist/decorators/event.js +0 -3
  384. package/dist/decorators/legacy/attr.js +0 -3
  385. package/dist/decorators/legacy/attr.js.map +0 -13
  386. package/dist/decorators/legacy/bound.js +0 -3
  387. package/dist/decorators/legacy/custom-element.js +0 -3
  388. package/dist/decorators/legacy/debounce.js +0 -3
  389. package/dist/decorators/legacy/event.js +0 -3
  390. package/dist/decorators/legacy/event.js.map +0 -13
  391. package/dist/decorators/legacy/instance-initializers.d.ts +0 -16
  392. package/dist/decorators/legacy/instance-initializers.js +0 -3
  393. package/dist/decorators/legacy/instance-initializers.js.map +0 -10
  394. package/dist/decorators/legacy/on-event.js +0 -3
  395. package/dist/decorators/legacy/on-event.js.map +0 -13
  396. package/dist/decorators/legacy/on-updated.js +0 -3
  397. package/dist/decorators/legacy/on-updated.js.map +0 -11
  398. package/dist/decorators/legacy/query-slot.js +0 -3
  399. package/dist/decorators/legacy/query-slot.js.map +0 -13
  400. package/dist/decorators/legacy/query.js +0 -3
  401. package/dist/decorators/legacy/query.js.map +0 -12
  402. package/dist/decorators/legacy/reactive-field.js +0 -3
  403. package/dist/decorators/legacy/reactive-field.js.map +0 -11
  404. package/dist/decorators/legacy/reactive-prop.js +0 -3
  405. package/dist/decorators/legacy/reactive-prop.js.map +0 -13
  406. package/dist/decorators/legacy/signal.js +0 -3
  407. package/dist/decorators/legacy/signal.js.map +0 -15
  408. package/dist/decorators/on-event.js +0 -3
  409. package/dist/decorators/on-updated.js +0 -3
  410. package/dist/decorators/on-updated.js.map +0 -14
  411. package/dist/decorators/prop.js +0 -3
  412. package/dist/decorators/prop.js.map +0 -16
  413. package/dist/decorators/query-slot.js +0 -3
  414. package/dist/decorators/query-slot.js.map +0 -16
  415. package/dist/decorators/query.js +0 -3
  416. package/dist/decorators/shared/reactive-attr.js +0 -3
  417. package/dist/decorators/shared/reactive-attr.js.map +0 -11
  418. package/dist/decorators/signal.js +0 -3
  419. package/dist/decorators/signal.js.map +0 -17
  420. package/dist/decorators/standard/attr.js +0 -3
  421. package/dist/decorators/standard/attr.js.map +0 -12
  422. package/dist/decorators/standard/bound.js +0 -3
  423. package/dist/decorators/standard/custom-element.js +0 -3
  424. package/dist/decorators/standard/debounce.js +0 -3
  425. package/dist/decorators/standard/event.js +0 -3
  426. package/dist/decorators/standard/on-event.js +0 -3
  427. package/dist/decorators/standard/on-updated.js +0 -3
  428. package/dist/decorators/standard/query-slot.js +0 -3
  429. package/dist/decorators/standard/query-slot.js.map +0 -11
  430. package/dist/decorators/standard/query.js +0 -3
  431. package/dist/decorators/standard/reactive-field.js +0 -3
  432. package/dist/decorators/standard/reactive-field.js.map +0 -10
  433. package/dist/decorators/standard/reactive-prop.js +0 -3
  434. package/dist/decorators/standard/signal.js +0 -3
  435. package/dist/decorators/standard/signal.js.map +0 -14
  436. package/dist/decorators/state.js +0 -3
  437. package/dist/decorators/state.js.map +0 -14
  438. package/dist/helpers/create-event-listener.js +0 -3
  439. package/dist/helpers/create-event.js +0 -3
  440. package/dist/helpers/create-query-slot.js +0 -3
  441. package/dist/helpers/create-query-slot.js.map +0 -10
  442. package/dist/helpers/create-query.js +0 -3
  443. package/dist/helpers/debounce.js +0 -3
  444. package/dist/helpers/index.js +0 -3
  445. package/dist/index.js +0 -3
  446. package/dist/index.js.map +0 -72
  447. package/dist/server/context-ssr.js +0 -3
  448. package/dist/server/html-parser.js +0 -3
  449. package/dist/server/install-light-dom-shim.js +0 -3
  450. package/dist/server/install-light-dom-shim.js.map +0 -12
  451. package/dist/server/light-dom-shim.js +0 -3
  452. package/dist/server/light-dom-shim.js.map +0 -11
  453. package/dist/server/project-root.js +0 -3
  454. package/dist/server/radiant-component-ssr-runtime.d.ts +0 -9
  455. package/dist/server/radiant-component-ssr-runtime.js +0 -3
  456. package/dist/server/radiant-component-ssr-runtime.js.map +0 -17
  457. package/dist/server/render-component.js +0 -3
  458. package/dist/server/render-component.js.map +0 -20
  459. package/dist/server/render-controller.js +0 -3
  460. package/dist/server/render-controller.js.map +0 -23
  461. package/dist/server/slot-projection-html.js +0 -3
  462. package/dist/signals/host-resource.js +0 -3
  463. package/dist/signals/host-signal.js +0 -3
  464. package/dist/signals/host-signal.js.map +0 -13
  465. package/dist/signals/hydration-script.js +0 -3
  466. package/dist/tools/escape-css-identifier.js +0 -3
  467. package/dist/tools/escape-css-identifier.js.map +0 -10
  468. package/dist/tools/escape-script-json.js +0 -3
  469. package/dist/tools/event-emitter.js +0 -3
  470. package/dist/tools/index.js +0 -3
  471. package/dist/tools/render-jsx-template.js +0 -3
  472. package/dist/types.js +0 -3
  473. package/dist/utils/attribute-utils.js +0 -3
  474. package/dist/utils/index.js +0 -3
  475. package/size-budget.json +0 -25
  476. /package/{dist/client → client}/hydrator.d.ts +0 -0
  477. /package/{dist/client → client}/install-hydrator.d.ts +0 -0
  478. /package/{dist/context → context}/context-consumer-bootstrap.d.ts +0 -0
  479. /package/{dist/context → context}/context-consumer-runtime.d.ts +0 -0
  480. /package/{dist/context → context}/context-host.d.ts +0 -0
  481. /package/{dist/context → context}/context-provider.d.ts +0 -0
  482. /package/{dist/context → context}/context-ssr-bridge.d.ts +0 -0
  483. /package/{dist/context → context}/create-context.d.ts +0 -0
  484. /package/{dist/context → context}/decorators/consume-context.d.ts +0 -0
  485. /package/{dist/context → context}/decorators/context-selection-delivery.d.ts +0 -0
  486. /package/{dist/context → context}/decorators/context-selector.d.ts +0 -0
  487. /package/{dist/context → context}/decorators/legacy/consume-context.d.ts +0 -0
  488. /package/{dist/context → context}/decorators/legacy/context-selector-field.d.ts +0 -0
  489. /package/{dist/context → context}/decorators/legacy/context-selector.d.ts +0 -0
  490. /package/{dist/context → context}/decorators/legacy/provide-context.d.ts +0 -0
  491. /package/{dist/context → context}/decorators/on-context-update.d.ts +0 -0
  492. /package/{dist/context → context}/decorators/provide-context.d.ts +0 -0
  493. /package/{dist/context → context}/decorators/standard/consume-context.d.ts +0 -0
  494. /package/{dist/context → context}/decorators/standard/context-selector-field.d.ts +0 -0
  495. /package/{dist/context → context}/decorators/standard/context-selector.d.ts +0 -0
  496. /package/{dist/context → context}/decorators/standard/provide-context.d.ts +0 -0
  497. /package/{dist/context → context}/events.d.ts +0 -0
  498. /package/{dist/context → context}/hydration-script.d.ts +0 -0
  499. /package/{dist/context → context}/index.d.ts +0 -0
  500. /package/{dist/context → context}/types.d.ts +0 -0
  501. /package/{dist/context → context}/types.js +0 -0
  502. /package/{dist/context → context}/types.js.map +0 -0
  503. /package/{dist/controller-registry.d.ts → controller-registry.d.ts} +0 -0
  504. /package/{dist/core → core}/controller-metadata.d.ts +0 -0
  505. /package/{dist/core → core}/custom-element-metadata.d.ts +0 -0
  506. /package/{dist/core → core}/hydration-codec.d.ts +0 -0
  507. /package/{dist/core → core}/radiant-hydrator-state.d.ts +0 -0
  508. /package/{dist/core → core}/slot-projection-runtime.d.ts +0 -0
  509. /package/{dist/core → core}/ssr-hydration-binding.d.ts +0 -0
  510. /package/{dist/core → core}/ssr-hydration-binding.js +0 -0
  511. /package/{dist/core → core}/ssr-hydration-binding.js.map +0 -0
  512. /package/{dist/core → core}/ssr-preparation.d.ts +0 -0
  513. /package/{dist/decorators → decorators}/attr.d.ts +0 -0
  514. /package/{dist/decorators → decorators}/bound.d.ts +0 -0
  515. /package/{dist/decorators → decorators}/bridge.d.ts +0 -0
  516. /package/{dist/decorators → decorators}/controller.d.ts +0 -0
  517. /package/{dist/decorators → decorators}/custom-element.d.ts +0 -0
  518. /package/{dist/decorators → decorators}/debounce.d.ts +0 -0
  519. /package/{dist/decorators → decorators}/event.d.ts +0 -0
  520. /package/{dist/decorators → decorators}/legacy/attr.d.ts +0 -0
  521. /package/{dist/decorators → decorators}/legacy/bound.d.ts +0 -0
  522. /package/{dist/decorators → decorators}/legacy/custom-element.d.ts +0 -0
  523. /package/{dist/decorators → decorators}/legacy/debounce.d.ts +0 -0
  524. /package/{dist/decorators → decorators}/legacy/event.d.ts +0 -0
  525. /package/{dist/decorators → decorators}/legacy/on-event.d.ts +0 -0
  526. /package/{dist/decorators → decorators}/legacy/query-slot.d.ts +0 -0
  527. /package/{dist/decorators → decorators}/legacy/query.d.ts +0 -0
  528. /package/{dist/decorators → decorators}/legacy/reactive-field.d.ts +0 -0
  529. /package/{dist/decorators → decorators}/on-event.d.ts +0 -0
  530. /package/{dist/decorators → decorators}/on-updated.d.ts +0 -0
  531. /package/{dist/decorators → decorators}/query-slot.d.ts +0 -0
  532. /package/{dist/decorators → decorators}/query.d.ts +0 -0
  533. /package/{dist/decorators → decorators}/signal.d.ts +0 -0
  534. /package/{dist/decorators → decorators}/standard/attr.d.ts +0 -0
  535. /package/{dist/decorators → decorators}/standard/bound.d.ts +0 -0
  536. /package/{dist/decorators → decorators}/standard/custom-element.d.ts +0 -0
  537. /package/{dist/decorators → decorators}/standard/debounce.d.ts +0 -0
  538. /package/{dist/decorators → decorators}/standard/event.d.ts +0 -0
  539. /package/{dist/decorators → decorators}/standard/on-event.d.ts +0 -0
  540. /package/{dist/decorators → decorators}/standard/on-updated.d.ts +0 -0
  541. /package/{dist/decorators → decorators}/standard/query.d.ts +0 -0
  542. /package/{dist/decorators → decorators}/standard/reactive-field.d.ts +0 -0
  543. /package/{dist/helpers → helpers}/create-event-listener.d.ts +0 -0
  544. /package/{dist/helpers → helpers}/create-event.d.ts +0 -0
  545. /package/{dist/helpers → helpers}/create-query.d.ts +0 -0
  546. /package/{dist/helpers → helpers}/debounce.d.ts +0 -0
  547. /package/{dist/helpers → helpers}/index.d.ts +0 -0
  548. /package/{dist/index.d.ts → index.d.ts} +0 -0
  549. /package/{dist/server → server}/context-ssr.d.ts +0 -0
  550. /package/{dist/server → server}/html-parser.d.ts +0 -0
  551. /package/{dist/server → server}/install-light-dom-shim.d.ts +0 -0
  552. /package/{dist/server → server}/project-root.d.ts +0 -0
  553. /package/{dist/server → server}/render-controller.d.ts +0 -0
  554. /package/{dist/server → server}/slot-projection-html.d.ts +0 -0
  555. /package/{dist/signals → signals}/host-resource.d.ts +0 -0
  556. /package/{dist/signals → signals}/hydration-script.d.ts +0 -0
  557. /package/{dist/tools → tools}/escape-css-identifier.d.ts +0 -0
  558. /package/{dist/tools → tools}/escape-script-json.d.ts +0 -0
  559. /package/{dist/tools → tools}/event-emitter.d.ts +0 -0
  560. /package/{dist/tools → tools}/index.d.ts +0 -0
  561. /package/{dist/tools → tools}/render-jsx-template.d.ts +0 -0
  562. /package/{dist/types.d.ts → types.d.ts} +0 -0
  563. /package/{dist/utils → utils}/attribute-utils.d.ts +0 -0
  564. /package/{dist/utils → utils}/index.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/radiant",
3
- "version": "0.3.0-alpha.9",
3
+ "version": "0.3.0-beta.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ecopages/radiant.git"
@@ -8,224 +8,201 @@
8
8
  "author": "Andrea Zanenghi",
9
9
  "license": "MIT",
10
10
  "type": "module",
11
- "main": "dist/index.js",
12
- "module": "dist/index.js",
13
- "types": "dist/index.d.ts",
14
- "scripts": {
15
- "build:lib": "bun run clean && bun run build:files && bun run build:types",
16
- "build:files": "bun run ./build.ts",
17
- "build:types": "tsc -p tsconfig.build.json && tsc-alias",
18
- "clean": "rm -rf ./dist",
19
- "watch:lib": "bun run ./build.ts --watch",
20
- "size:check": "bun run ./check-size.ts",
21
- "size:report": "bun run ./check-size.ts --report-only",
22
- "test:standard": "vitest run",
23
- "test:legacy": "vitest run -- --legacy",
24
- "test:lib": "bun run test:standard && bun run test:legacy",
25
- "test:lib:coverage": "bun run test:standard -- --coverage && bun run vitest run --coverage -- --legacy"
26
- },
27
- "dependencies": {},
28
- "devDependencies": {
29
- "@ecopages/jsx": "workspace:*",
30
- "@ecopages/signals": "workspace:*",
31
- "@testing-library/dom": "^10.4.0",
32
- "@testing-library/user-event": "^14.5.2",
33
- "@vitest/browser": "^3.2.4",
34
- "@vitest/coverage-istanbul": "^3.2.4",
35
- "bun-types": "latest",
36
- "tsc-alias": "1.8.10",
37
- "esbuild": "^0.25.0",
38
- "playwright": "^1.52.0",
39
- "vite": "^7.1.3",
40
- "vitest": "^3.2.4"
41
- },
42
- "peerDependencies": {
43
- "@ecopages/jsx": ">=0.3.0-alpha.0 <1.0.0",
44
- "@ecopages/signals": ">=0.3.0-alpha.0 <1.0.0"
11
+ "publishConfig": {
12
+ "access": "public"
45
13
  },
14
+ "main": "./index.js",
15
+ "module": "./index.js",
16
+ "types": "./index.d.ts",
46
17
  "files": [
47
- "/dist/*",
48
- "size-budget.json"
18
+ "**/*"
49
19
  ],
50
20
  "sideEffects": [
51
- "./dist/client/install-hydrator.js",
52
- "./dist/server/install-light-dom-shim.js"
21
+ "./client/install-hydrator.js",
22
+ "./server/install-light-dom-shim.js"
53
23
  ],
54
24
  "exports": {
55
25
  "./package.json": {
56
26
  "import": "./package.json"
57
27
  },
58
28
  ".": {
59
- "types": "./dist/index.d.ts",
60
- "import": "./dist/index.js"
29
+ "types": "./index.d.ts",
30
+ "import": "./index.js"
61
31
  },
62
32
  "./context": {
63
- "types": "./dist/context/index.d.ts",
64
- "import": "./dist/context/index.js"
33
+ "types": "./context/index.d.ts",
34
+ "import": "./context/index.js"
65
35
  },
66
36
  "./context/create-context": {
67
- "types": "./dist/context/create-context.d.ts",
68
- "import": "./dist/context/create-context.js"
37
+ "types": "./context/create-context.d.ts",
38
+ "import": "./context/create-context.js"
69
39
  },
70
40
  "./context/context-provider": {
71
- "types": "./dist/context/context-provider.d.ts",
72
- "import": "./dist/context/context-provider.js"
41
+ "types": "./context/context-provider.d.ts",
42
+ "import": "./context/context-provider.js"
73
43
  },
74
44
  "./context/consume-context": {
75
- "types": "./dist/context/decorators/consume-context.d.ts",
76
- "import": "./dist/context/decorators/consume-context.js"
45
+ "types": "./context/decorators/consume-context.d.ts",
46
+ "import": "./context/decorators/consume-context.js"
77
47
  },
78
48
  "./context/provide-context": {
79
- "types": "./dist/context/decorators/provide-context.d.ts",
80
- "import": "./dist/context/decorators/provide-context.js"
49
+ "types": "./context/decorators/provide-context.d.ts",
50
+ "import": "./context/decorators/provide-context.js"
81
51
  },
82
52
  "./context/context-selector": {
83
- "types": "./dist/context/decorators/context-selector.d.ts",
84
- "import": "./dist/context/decorators/context-selector.js"
53
+ "types": "./context/decorators/context-selector.d.ts",
54
+ "import": "./context/decorators/context-selector.js"
85
55
  },
86
56
  "./context/on-context-update": {
87
- "types": "./dist/context/decorators/on-context-update.d.ts",
88
- "import": "./dist/context/decorators/on-context-update.js"
57
+ "types": "./context/decorators/on-context-update.d.ts",
58
+ "import": "./context/decorators/on-context-update.js"
89
59
  },
90
60
  "./context/events": {
91
- "types": "./dist/context/events.d.ts",
92
- "import": "./dist/context/events.js"
61
+ "types": "./context/events.d.ts",
62
+ "import": "./context/events.js"
93
63
  },
94
64
  "./controller-registry": {
95
- "types": "./dist/controller-registry.d.ts",
96
- "import": "./dist/controller-registry.js"
65
+ "types": "./controller-registry.d.ts",
66
+ "import": "./controller-registry.js"
97
67
  },
98
68
  "./core/radiant-element": {
99
- "types": "./dist/core/radiant-element.d.ts",
100
- "import": "./dist/core/radiant-element.js"
69
+ "types": "./core/radiant-element.d.ts",
70
+ "import": "./core/radiant-element.js"
101
71
  },
102
72
  "./core/radiant-controller": {
103
- "types": "./dist/core/radiant-controller.d.ts",
104
- "import": "./dist/core/radiant-controller.js"
73
+ "types": "./core/radiant-controller.d.ts",
74
+ "import": "./core/radiant-controller.js"
105
75
  },
106
76
  "./core/reactive-jsx-value": {
107
- "types": "./dist/core/reactive-jsx-value.d.ts",
108
- "import": "./dist/core/reactive-jsx-value.js"
77
+ "types": "./core/reactive-jsx-value.d.ts",
78
+ "import": "./core/reactive-jsx-value.js"
109
79
  },
110
80
  "./client/hydrator": {
111
- "types": "./dist/client/hydrator.d.ts",
112
- "import": "./dist/client/hydrator.js"
81
+ "types": "./client/hydrator.d.ts",
82
+ "import": "./client/hydrator.js"
83
+ },
84
+ "./client/app-bootstrap": {
85
+ "types": "./client/app-bootstrap.d.ts",
86
+ "import": "./client/app-bootstrap.js"
113
87
  },
114
88
  "./client/install-hydrator": {
115
- "types": "./dist/client/install-hydrator.d.ts",
116
- "import": "./dist/client/install-hydrator.js"
89
+ "types": "./client/install-hydrator.d.ts",
90
+ "import": "./client/install-hydrator.js"
117
91
  },
118
92
  "./signals/host-resource": {
119
- "types": "./dist/signals/host-resource.d.ts",
120
- "import": "./dist/signals/host-resource.js"
93
+ "types": "./signals/host-resource.d.ts",
94
+ "import": "./signals/host-resource.js"
121
95
  },
122
96
  "./server/light-dom-shim": {
123
- "types": "./dist/server/light-dom-shim.d.ts",
124
- "import": "./dist/server/light-dom-shim.js"
97
+ "types": "./server/light-dom-shim.d.ts",
98
+ "import": "./server/light-dom-shim.js"
125
99
  },
126
100
  "./server/install-light-dom-shim": {
127
- "types": "./dist/server/install-light-dom-shim.d.ts",
128
- "import": "./dist/server/install-light-dom-shim.js"
101
+ "types": "./server/install-light-dom-shim.d.ts",
102
+ "import": "./server/install-light-dom-shim.js"
129
103
  },
130
104
  "./server/render-component": {
131
- "types": "./dist/server/render-component.d.ts",
132
- "import": "./dist/server/render-component.js"
105
+ "types": "./server/render-component.d.ts",
106
+ "import": "./server/render-component.js"
133
107
  },
134
108
  "./server/render-controller": {
135
- "types": "./dist/server/render-controller.d.ts",
136
- "import": "./dist/server/render-controller.js"
109
+ "types": "./server/render-controller.d.ts",
110
+ "import": "./server/render-controller.js"
137
111
  },
138
112
  "./server/project-root": {
139
- "types": "./dist/server/project-root.d.ts",
140
- "import": "./dist/server/project-root.js"
113
+ "types": "./server/project-root.d.ts",
114
+ "import": "./server/project-root.js"
141
115
  },
142
116
  "./decorators/bound": {
143
- "types": "./dist/decorators/bound.d.ts",
144
- "import": "./dist/decorators/bound.js"
117
+ "types": "./decorators/bound.d.ts",
118
+ "import": "./decorators/bound.js"
145
119
  },
146
120
  "./decorators/attr": {
147
- "types": "./dist/decorators/attr.d.ts",
148
- "import": "./dist/decorators/attr.js"
121
+ "types": "./decorators/attr.d.ts",
122
+ "import": "./decorators/attr.js"
149
123
  },
150
124
  "./decorators/controller": {
151
- "types": "./dist/decorators/controller.d.ts",
152
- "import": "./dist/decorators/controller.js"
125
+ "types": "./decorators/controller.d.ts",
126
+ "import": "./decorators/controller.js"
153
127
  },
154
128
  "./decorators/custom-element": {
155
- "types": "./dist/decorators/custom-element.d.ts",
156
- "import": "./dist/decorators/custom-element.js"
129
+ "types": "./decorators/custom-element.d.ts",
130
+ "import": "./decorators/custom-element.js"
157
131
  },
158
132
  "./decorators/debounce": {
159
- "types": "./dist/decorators/debounce.d.ts",
160
- "import": "./dist/decorators/debounce.js"
133
+ "types": "./decorators/debounce.d.ts",
134
+ "import": "./decorators/debounce.js"
161
135
  },
162
136
  "./helpers/debounce": {
163
- "types": "./dist/helpers/debounce.d.ts",
164
- "import": "./dist/helpers/debounce.js"
137
+ "types": "./helpers/debounce.d.ts",
138
+ "import": "./helpers/debounce.js"
165
139
  },
166
140
  "./helpers/create-query": {
167
- "types": "./dist/helpers/create-query.d.ts",
168
- "import": "./dist/helpers/create-query.js"
141
+ "types": "./helpers/create-query.d.ts",
142
+ "import": "./helpers/create-query.js"
169
143
  },
170
144
  "./helpers/create-query-slot": {
171
- "types": "./dist/helpers/create-query-slot.d.ts",
172
- "import": "./dist/helpers/create-query-slot.js"
145
+ "types": "./helpers/create-query-slot.d.ts",
146
+ "import": "./helpers/create-query-slot.js"
173
147
  },
174
148
  "./helpers/create-event": {
175
- "types": "./dist/helpers/create-event.d.ts",
176
- "import": "./dist/helpers/create-event.js"
149
+ "types": "./helpers/create-event.d.ts",
150
+ "import": "./helpers/create-event.js"
177
151
  },
178
152
  "./helpers/create-event-listener": {
179
- "types": "./dist/helpers/create-event-listener.d.ts",
180
- "import": "./dist/helpers/create-event-listener.js"
153
+ "types": "./helpers/create-event-listener.d.ts",
154
+ "import": "./helpers/create-event-listener.js"
181
155
  },
182
156
  "./decorators/event": {
183
- "types": "./dist/decorators/event.d.ts",
184
- "import": "./dist/decorators/event.js"
157
+ "types": "./decorators/event.d.ts",
158
+ "import": "./decorators/event.js"
185
159
  },
186
160
  "./decorators/on-event": {
187
- "types": "./dist/decorators/on-event.d.ts",
188
- "import": "./dist/decorators/on-event.js"
161
+ "types": "./decorators/on-event.d.ts",
162
+ "import": "./decorators/on-event.js"
189
163
  },
190
164
  "./decorators/on-updated": {
191
- "types": "./dist/decorators/on-updated.d.ts",
192
- "import": "./dist/decorators/on-updated.js"
165
+ "types": "./decorators/on-updated.d.ts",
166
+ "import": "./decorators/on-updated.js"
193
167
  },
194
168
  "./decorators/prop": {
195
- "types": "./dist/decorators/prop.d.ts",
196
- "import": "./dist/decorators/prop.js"
169
+ "types": "./decorators/prop.d.ts",
170
+ "import": "./decorators/prop.js"
197
171
  },
198
172
  "./decorators/query": {
199
- "types": "./dist/decorators/query.d.ts",
200
- "import": "./dist/decorators/query.js"
173
+ "types": "./decorators/query.d.ts",
174
+ "import": "./decorators/query.js"
201
175
  },
202
176
  "./decorators/query-slot": {
203
- "types": "./dist/decorators/query-slot.d.ts",
204
- "import": "./dist/decorators/query-slot.js"
177
+ "types": "./decorators/query-slot.d.ts",
178
+ "import": "./decorators/query-slot.js"
205
179
  },
206
180
  "./decorators/resource": {
207
- "types": "./dist/decorators/resource.d.ts",
208
- "import": "./dist/decorators/resource.js"
181
+ "types": "./decorators/resource.d.ts",
182
+ "import": "./decorators/resource.js"
209
183
  },
210
184
  "./decorators/signal": {
211
- "types": "./dist/decorators/signal.d.ts",
212
- "import": "./dist/decorators/signal.js"
185
+ "types": "./decorators/signal.d.ts",
186
+ "import": "./decorators/signal.js"
213
187
  },
214
188
  "./decorators/state": {
215
- "types": "./dist/decorators/state.d.ts",
216
- "import": "./dist/decorators/state.js"
189
+ "types": "./decorators/state.d.ts",
190
+ "import": "./decorators/state.js"
217
191
  },
218
192
  "./tools/render-jsx-template": {
219
- "types": "./dist/tools/render-jsx-template.d.ts",
220
- "import": "./dist/tools/render-jsx-template.js"
193
+ "types": "./tools/render-jsx-template.d.ts",
194
+ "import": "./tools/render-jsx-template.js"
221
195
  },
222
196
  "./tools/escape-script-json": {
223
- "types": "./dist/tools/escape-script-json.d.ts",
224
- "import": "./dist/tools/escape-script-json.js"
197
+ "types": "./tools/escape-script-json.d.ts",
198
+ "import": "./tools/escape-script-json.js"
225
199
  },
226
200
  "./tools/event-emitter": {
227
- "types": "./dist/tools/event-emitter.d.ts",
228
- "import": "./dist/tools/event-emitter.js"
201
+ "types": "./tools/event-emitter.d.ts",
202
+ "import": "./tools/event-emitter.js"
229
203
  }
204
+ },
205
+ "peerDependencies": {
206
+ "@ecopages/jsx": ">=0.3.0-beta.1 <1.0.0"
230
207
  }
231
208
  }
@@ -0,0 +1,3 @@
1
+ var{defineProperty:H,getOwnPropertyNames:F,getOwnPropertyDescriptor:G}=Object,I=Object.prototype.hasOwnProperty;function P(j){return this[j]}var K=(j)=>{var q=(J??=new WeakMap).get(j),u;if(q)return q;if(q=H({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var w of F(j))if(!I.call(q,w))H(q,w,{get:P.bind(j,w),enumerable:!(u=G(j,w))||u.enumerable})}return J.set(j,q),q},J;var f=(j)=>j;function g(j,q){this[j]=f.bind(null,q)}var M=(j,q)=>{for(var u in q)H(j,u,{get:q[u],enumerable:!0,configurable:!0,set:g.bind(q,u)})};var N=(j,q)=>()=>(j&&(q=j(j=0)),q);var m=((j)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(j,{get:(q,u)=>(typeof require<"u"?require:q)[u]}):j)(function(j){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+j+'" is not supported')});var Q=Symbol.for("@ecopages/radiant.ssr-context-provider-resolver");function U(){return globalThis}function W(j){U()[Q]=j}function X(j){return U()[Q]?.(j)}var z;function $(){if(z!==void 0)return z;try{let{AsyncLocalStorage:j}=(()=>{throw new Error("Cannot require module "+"node:async_hooks");})();return z=new j,z}catch{return z=null,null}}var Z=Symbol.for("@ecopages/radiant.ssr-context-fallback-stack");function h(){let j=globalThis;return j[Z]??=[],j[Z]}function B(j){if(j.length===0)return()=>{return};let q=new Map;for(let y of j)q.set(y.getContextKey(),y);let u=$();if(u){let y=u.getStore()??[],D=[...y,q];return u.enterWith(D),()=>{u.enterWith(y)}}let w=h();return w.push(q),()=>{let y=w.lastIndexOf(q);if(y>=0)w.splice(y,1)}}function b(j){let q=$()?.getStore()??h();for(let u=q.length-1;u>=0;u-=1){let w=q[u]?.get(j);if(w)return w}return}function A(j){let q=b(j);if(!q)return;return q.getContext()}W((j)=>b(j));export{B as withSsrContextProviders,A as resolveSsrContextValue,b as resolveSsrContextProvider};
2
+
3
+ //# debugId=0730EF1B0BEA738164756E2164756E21
@@ -5,7 +5,7 @@
5
5
  "import type { SsrSerializableContextProvider } from './context-provider';\nimport type { UnknownContext } from './types';\n\ntype SsrContextProviderResolver = (context: UnknownContext) => SsrSerializableContextProvider | undefined;\n\nconst SSR_CONTEXT_PROVIDER_RESOLVER_SYMBOL = Symbol.for('@ecopages/radiant.ssr-context-provider-resolver');\n\ntype GlobalResolverScope = typeof globalThis & {\n\t[SSR_CONTEXT_PROVIDER_RESOLVER_SYMBOL]?: SsrContextProviderResolver;\n};\n\nfunction getGlobalResolverScope(): GlobalResolverScope {\n\treturn globalThis as GlobalResolverScope;\n}\n\n/**\n * Installs the ambient SSR provider resolver used by shared context runtime helpers.\n *\n * Server-side rendering infrastructure owns the actual provider stack storage and\n * publishes a lookup function here so client/runtime code does not need to import\n * server-oriented modules.\n */\nexport function installSsrContextProviderResolver(resolver: SsrContextProviderResolver): void {\n\tgetGlobalResolverScope()[SSR_CONTEXT_PROVIDER_RESOLVER_SYMBOL] = resolver;\n}\n\n/**\n * Resolves an ambient SSR provider when a server render has published one.\n */\nexport function resolveAmbientSsrContextProvider(context: UnknownContext): SsrSerializableContextProvider | undefined {\n\treturn getGlobalResolverScope()[SSR_CONTEXT_PROVIDER_RESOLVER_SYMBOL]?.(context);\n}\n",
6
6
  "import type { AsyncLocalStorage } from 'node:async_hooks';\nimport type { SsrSerializableContextProvider } from '../context/context-provider';\nimport { installSsrContextProviderResolver } from '../context/context-ssr-bridge';\nimport type { ContextType, UnknownContext } from '../context/types';\n\ntype ProviderFrame = Map<UnknownContext, SsrSerializableContextProvider>;\ntype ProviderStack = ProviderFrame[];\n\nlet resolvedAsyncLocalStorage: AsyncLocalStorage<ProviderStack> | null | undefined;\n\n/**\n * Lazily resolves `AsyncLocalStorage` from `node:async_hooks`.\n *\n * The dynamic `require` is necessary because browser-based SSR tests import\n * this server-oriented module directly. A top-level static import would break\n * those browser bundles even though normal application SSR runs on the server.\n *\n * On the server (Node.js, Bun, Cloudflare Workers) the import always succeeds.\n * In browser test environments where SSR rendering is exercised without a real\n * server, the fallback global stack is used instead.\n */\nfunction getAsyncLocalStorage(): AsyncLocalStorage<ProviderStack> | null {\n\tif (resolvedAsyncLocalStorage !== undefined) {\n\t\treturn resolvedAsyncLocalStorage;\n\t}\n\n\ttry {\n\t\tconst { AsyncLocalStorage: ALS } = require('node:async_hooks') as typeof import('node:async_hooks');\n\t\tresolvedAsyncLocalStorage = new ALS<ProviderStack>();\n\t\treturn resolvedAsyncLocalStorage;\n\t} catch {\n\t\tresolvedAsyncLocalStorage = null;\n\t\treturn null;\n\t}\n}\n\nconst SSR_CONTEXT_FALLBACK_STACK_SYMBOL = Symbol.for('@ecopages/radiant.ssr-context-fallback-stack');\n\nfunction getFallbackStack(): ProviderStack {\n\tconst g = globalThis as typeof globalThis & { [SSR_CONTEXT_FALLBACK_STACK_SYMBOL]?: ProviderStack };\n\tg[SSR_CONTEXT_FALLBACK_STACK_SYMBOL] ??= [];\n\treturn g[SSR_CONTEXT_FALLBACK_STACK_SYMBOL];\n}\n\n/**\n * Pushes a temporary provider frame onto the SSR context stack.\n *\n * On the server, each call creates an isolated `AsyncLocalStorage` context so\n * concurrent renders cannot corrupt each other.\n *\n * In browser test environments where `AsyncLocalStorage` is unavailable, a\n * synchronous global stack is used as a fallback.\n */\nexport function withSsrContextProviders(providers: readonly SsrSerializableContextProvider[]): () => void {\n\tif (providers.length === 0) {\n\t\treturn () => undefined;\n\t}\n\n\tconst frame = new Map<UnknownContext, SsrSerializableContextProvider>();\n\n\tfor (const provider of providers) {\n\t\tframe.set(provider.getContextKey(), provider);\n\t}\n\n\tconst als = getAsyncLocalStorage();\n\n\tif (als) {\n\t\tconst parentStack = als.getStore() ?? [];\n\t\tconst childStack = [...parentStack, frame];\n\t\tals.enterWith(childStack);\n\n\t\treturn () => {\n\t\t\tals.enterWith(parentStack);\n\t\t};\n\t}\n\n\tconst stack = getFallbackStack();\n\tstack.push(frame);\n\n\treturn () => {\n\t\tconst index = stack.lastIndexOf(frame);\n\t\tif (index >= 0) stack.splice(index, 1);\n\t};\n}\n\n/**\n * Resolves the nearest SSR-visible provider for a given context token.\n *\n * Lookup walks the provider frames from innermost to outermost so nested host\n * serialization behaves the same way as runtime context resolution in the DOM.\n */\nexport function resolveSsrContextProvider<T extends UnknownContext>(\n\tcontext: T,\n): SsrSerializableContextProvider | undefined {\n\tconst store = getAsyncLocalStorage()?.getStore() ?? getFallbackStack();\n\n\tfor (let index = store.length - 1; index >= 0; index -= 1) {\n\t\tconst provider = store[index]?.get(context);\n\n\t\tif (provider) {\n\t\t\treturn provider;\n\t\t}\n\t}\n\n\treturn undefined;\n}\n\n/**\n * Resolves the current SSR-visible value for a given context token.\n *\n * This is the ergonomic helper consumed by SSR-aware decorators and component\n * render paths when they only need the context payload instead of the full\n * provider instance.\n */\nexport function resolveSsrContextValue<T extends UnknownContext>(context: T): ContextType<T> | undefined {\n\tconst provider = resolveSsrContextProvider(context);\n\n\tif (!provider) {\n\t\treturn undefined;\n\t}\n\n\treturn provider.getContext() as ContextType<T>;\n}\n\ninstallSsrContextProviderResolver((context) => resolveSsrContextProvider(context));\n"
7
7
  ],
8
- "mappings": "2PAKA,IAAM,EAAuC,OAAO,IAAI,iDAAiD,EAMzG,SAAS,CAAsB,EAAwB,CACtD,OAAO,WAUD,SAAS,CAAiC,CAAC,EAA4C,CAC7F,EAAuB,EAAE,GAAwC,EAM3D,SAAS,CAAgC,CAAC,EAAqE,CACrH,OAAO,EAAuB,EAAE,KAAwC,CAAO,ECtBhF,IAAI,EAaJ,SAAS,CAAoB,EAA4C,CACxE,GAAI,IAA8B,OACjC,OAAO,EAGR,GAAI,CACH,IAAQ,kBAAmB,2EAE3B,OADA,EA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GD,OAAO,EAAS,WAAW,EAG5B,EAAkC,CAAC,IAAY,EAA0B,CAAO,CAAC",
9
+ "debugId": "0730EF1B0BEA738164756E2164756E21",
10
10
  "names": []
11
11
  }
@@ -0,0 +1,46 @@
1
+ import type { ReactiveProperty } from '../core/reactive-prop-core';
2
+ import type { ReactivePropDefinition } from '../core/reactive-prop-metadata';
3
+ /**
4
+ * Minimal host shape needed by the attribute serialization policy.
5
+ *
6
+ * This interface defines the narrow contract that the serialization module
7
+ * consumes, keeping it independent of the full {@link RadiantElementSsrHost}.
8
+ */
9
+ export type HostAttributeSource = {
10
+ getReactiveProperties: () => ReactiveProperty[];
11
+ getReactivePropDefinitions: () => ReactivePropDefinition[];
12
+ getPropertyValue: (name: string) => unknown;
13
+ getAttributeNames: () => string[];
14
+ getAttribute: (name: string) => string | null;
15
+ };
16
+ /**
17
+ * Resolves the final set of SSR host attributes from a Radiant Element Host.
18
+ *
19
+ * ## Source precedence (highest to lowest)
20
+ *
21
+ * 1. **Reactive properties** — legacy attribute reflection via `property.converter`.
22
+ * These are already-registered reactive properties with established converters.
23
+ * Falsy values (`undefined`, `null`, `false`) are omitted.
24
+ *
25
+ * 2. **Reactive prop definitions** — decorator-based definitions. Skipped when the
26
+ * target attribute name was already emitted by source 1 (dedup via `seenAttributes`).
27
+ * Uses `writeAttributeValue` for type-aware conversion.
28
+ *
29
+ * 3. **Authored attributes** — raw host-level attributes from the original markup.
30
+ * These always win if present, regardless of whether sources 1 or 2 already
31
+ * set the same name. This preserves explicit author intent in templates.
32
+ *
33
+ * @param host Host shape providing reactive state and attribute accessors.
34
+ * @returns Flat record of attribute name → serialized value.
35
+ */
36
+ export declare function resolveHostAttributes(host: HostAttributeSource): Record<string, string>;
37
+ /**
38
+ * Serializes a flat attribute record into an HTML attribute string.
39
+ *
40
+ * Each entry becomes ` name="escaped-value"` with the leading space included.
41
+ * The combined string is safe for direct interpolation into an opening tag.
42
+ *
43
+ * @param attributes Flat attribute record to serialize.
44
+ * @returns HTML attribute string.
45
+ */
46
+ export declare function stringifyHostAttributes(attributes: Record<string, string>): string;
@@ -0,0 +1,3 @@
1
+ var{defineProperty:M,getOwnPropertyNames:Z,getOwnPropertyDescriptor:_}=Object,$=Object.prototype.hasOwnProperty;function k(q){return this[q]}var c=(q)=>{var g=(z??=new WeakMap).get(q),x;if(g)return g;if(g=M({},"__esModule",{value:!0}),q&&typeof q==="object"||typeof q==="function"){for(var E of Z(q))if(!$.call(g,E))M(g,E,{get:k.bind(q,E),enumerable:!(x=_(q,E))||x.enumerable})}return z.set(q,g),g},z;var B=(q)=>q;function F(q,g){this[q]=B.bind(null,g)}var A=(q,g)=>{for(var x in g)M(q,x,{get:g[x],enumerable:!0,configurable:!0,set:F.bind(g,x)})};var h=(q,g)=>()=>(q&&(g=q(q=0)),g);var f=((q)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(q,{get:(g,x)=>(typeof require<"u"?require:g)[x]}):q)(function(q){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+q+'" is not supported')});function Y(q){return q.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function U(q){switch(q){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function P(q){switch(typeof q){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(q))return"array";if(Object.prototype.toString.call(q)==="[object Object]")return"object"}function R(q){switch(q){case Number:return 0;case String:return"";case Boolean:return!1;default:return null}}function D(q){try{return JSON.parse(q)}catch{throw TypeError("Invalid JSON string")}}var C={array(q){let g=D(q);if(!Array.isArray(g))throw TypeError(`Expected an array but got a value of type "${typeof g}"`);return g},boolean(q){return!(q==="0"||String(q).toLowerCase()==="false")},number(q){return Number(q.replace(/_/g,""))},object(q){let g=JSON.parse(q);if(g===null||typeof g!=="object"||Array.isArray(g))throw TypeError(`expected value of type "object" but instead got value "${q}" of type "${P(g)}"`);return g},string(q){return q}},G={default:W,array:I,object:I};function I(q){return JSON.stringify(q)}function W(q){return`${q}`}function Q(q,g){let x=U(g);if(!x)throw TypeError(`[radiant-element] Unknown type "${g}"`);return C[x](q)}function X(q,g){let x=U(g);if(!x)throw TypeError(`[radiant-element] Unknown type "${g}"`);return(G[x]??G.default??W)(q)}function J(q){return typeof q==="boolean"}function K(q){return typeof q==="number"}function O(q){return typeof q==="string"}function j(q){return Array.isArray(q)}function S(q){return typeof q==="object"&&!Array.isArray(q)&&q!==null}function o(q,g){switch(q){case Boolean:return J(g);case Number:return K(g);case String:return O(g);case Array:return j(g);case Object:return S(g);default:return!1}}var n=(q,g,x,E)=>{if(g===Boolean){let L=q.getAttribute(x);if(L===null)return E;return L===""?!0:Q(L,g)}let H=q.getAttribute(x);return H!==null?Q(H,g):E??R(g)};function b(q){let g={},x=new Set;return m(q,g,x),w(q,g,x),N(q,g),g}function s(q){return Object.entries(q).map(([g,x])=>` ${g}="${Y(x)}"`).join("")}function m(q,g,x){for(let E of q.getReactiveProperties()){let H=q.getPropertyValue(E.name);if(H===void 0||H===null||H===!1)continue;g[E.attribute]=String(E.converter.toAttribute(H)),x.add(E.attribute)}}function w(q,g,x){for(let E of q.getReactivePropDefinitions()){let H=E.options.attribute??E.name;if(x.has(H))continue;let L=q.getPropertyValue(E.name);if(L===void 0||L===null||L===!1)continue;g[H]=String(X(L,E.options.type)),x.add(H)}}function N(q,g){for(let x of q.getAttributeNames()){let E=q.getAttribute(x);if(E!==null)g[x]=E}}export{s as stringifyHostAttributes,b as resolveHostAttributes};
2
+
3
+ //# debugId=2F1E135C72BF6A6B64756E2164756E21
@@ -0,0 +1,12 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/utils/escape-html-attribute.ts", "../src/utils/attribute-utils.ts", "../src/server/host-attribute-serialization.ts"],
4
+ "sourcesContent": [
5
+ "/** Escapes a string for safe interpolation inside a double-quoted HTML attribute value. */\nexport function escapeHtmlAttribute(value: string): string {\n\treturn value.replace(/&/g, '&amp;').replace(/\"/g, '&quot;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n}\n",
6
+ "import type { RadiantElement } from '../core/radiant-element';\n\nexport type AttributeTypeConstant = typeof Array | typeof Boolean | typeof Number | typeof Object | typeof String;\n\nexport type AttributeTypeDefault = Array<unknown> | boolean | number | Record<string, unknown> | string;\n\n/**\n * Parses the given attribute type constant and returns its corresponding string representation.\n *\n * @param constant - The attribute type constant to parse.\n * @returns The string representation of the attribute type constant.\n */\nexport function parseAttributeTypeConstant(constant?: AttributeTypeConstant) {\n\tswitch (constant) {\n\t\tcase Array:\n\t\t\treturn 'array';\n\t\tcase Boolean:\n\t\t\treturn 'boolean';\n\t\tcase Number:\n\t\t\treturn 'number';\n\t\tcase Object:\n\t\t\treturn 'object';\n\t\tcase String:\n\t\t\treturn 'string';\n\t}\n}\n\n/**\n * Parses the attribute type default value and returns its type as a string.\n *\n * @param defaultValue - The default value of the attribute type.\n * @returns The type of the default value as a string.\n */\nexport function parseAttributeTypeDefault(defaultValue?: AttributeTypeDefault) {\n\tswitch (typeof defaultValue) {\n\t\tcase 'boolean':\n\t\t\treturn 'boolean';\n\t\tcase 'number':\n\t\t\treturn 'number';\n\t\tcase 'string':\n\t\t\treturn 'string';\n\t}\n\n\tif (Array.isArray(defaultValue)) return 'array';\n\tif (Object.prototype.toString.call(defaultValue) === '[object Object]') return 'object';\n}\n\n/**\n * Returns the default value for a given attribute type.\n *\n * @param type - The attribute type constant.\n * @returns The default value for the specified attribute type.\n */\nexport function defaultValueForType(type: AttributeTypeConstant): unknown {\n\tswitch (type) {\n\t\tcase Number:\n\t\t\treturn 0;\n\t\tcase String:\n\t\t\treturn '';\n\t\tcase Boolean:\n\t\t\treturn false;\n\t\tdefault:\n\t\t\treturn null;\n\t}\n}\n\ntype Reader = (value: string) => number | string | boolean | object | unknown[];\n\n/**\n * Utility function to parse a JSON string safely\n */\nfunction parseJSON<T>(value: string): T {\n\ttry {\n\t\treturn JSON.parse(value);\n\t} catch {\n\t\tthrow new TypeError('Invalid JSON string');\n\t}\n}\n\n/**\n * Object that maps attribute types to reader functions.\n * @type {Object.<string, Reader>}\n */\nconst readers: { [type: string]: Reader } = {\n\tarray(value: string): unknown[] {\n\t\tconst array = parseJSON<unknown[]>(value);\n\t\tif (!Array.isArray(array)) {\n\t\t\tthrow new TypeError(`Expected an array but got a value of type \"${typeof array}\"`);\n\t\t}\n\t\treturn array;\n\t},\n\n\tboolean(value: string): boolean {\n\t\treturn !(value === '0' || String(value).toLowerCase() === 'false');\n\t},\n\n\tnumber(value: string): number {\n\t\tconst number = Number(value.replace(/_/g, ''));\n\t\treturn number;\n\t},\n\n\tobject(value: string): object {\n\t\tconst object = JSON.parse(value);\n\t\tif (object === null || typeof object !== 'object' || Array.isArray(object)) {\n\t\t\tthrow new TypeError(\n\t\t\t\t`expected value of type \"object\" but instead got value \"${value}\" of type \"${parseAttributeTypeDefault(\n\t\t\t\t\tobject,\n\t\t\t\t)}\"`,\n\t\t\t);\n\t\t}\n\t\treturn object;\n\t},\n\n\tstring(value: string): string {\n\t\treturn value;\n\t},\n};\n\ntype Writer = (value: unknown) => string;\n\n/**\n * Object that maps attribute types to writer functions.\n * @type {Object.<string, Writer>}\n */\nconst writers: { [type: string]: Writer } = {\n\tdefault: writeString,\n\tarray: writeJSON,\n\tobject: writeJSON,\n};\n\nfunction writeJSON(value: unknown) {\n\treturn JSON.stringify(value);\n}\n\nfunction writeString(value: unknown) {\n\treturn `${value}`;\n}\n\n/**\n * Reads the attribute value based on the provided type.\n * @param value - The attribute value to be read.\n * @param type - The type of the attribute.\n * @returns The parsed attribute value.\n * @throws {TypeError} If the provided type is unknown.\n */\nexport function readAttributeValue(value: string, type: AttributeTypeConstant) {\n\tconst readerType = parseAttributeTypeConstant(type);\n\tif (!readerType) throw new TypeError(`[radiant-element] Unknown type \"${type}\"`);\n\treturn readers[readerType]!(value);\n}\n\nexport type ReadAttributeValueReturnType = ReturnType<typeof readAttributeValue>;\n\n/**\n * Writes the attribute value based on the provided type.\n *\n * @param value - The value to be written.\n * @param type - The type of the attribute.\n * @returns The written attribute value.\n * @throws {TypeError} If the provided type is unknown.\n */\nexport function writeAttributeValue(value: unknown, type: AttributeTypeConstant) {\n\tconst writerType = parseAttributeTypeConstant(type);\n\tif (!writerType) throw new TypeError(`[radiant-element] Unknown type \"${type}\"`);\n\tconst writer: Writer = writers[writerType] ?? writers.default ?? writeString;\n\treturn writer(value);\n}\n\nexport type WriteAttributeValueReturnType = ReturnType<typeof writeAttributeValue>;\n\n/*\n * Type guard functions for each type in AttributeTypeConstant\n */\nfunction isBoolean(value: unknown): value is boolean {\n\treturn typeof value === 'boolean';\n}\n\nfunction isNumber(value: unknown): value is number {\n\treturn typeof value === 'number';\n}\n\nfunction isString(value: unknown): value is string {\n\treturn typeof value === 'string';\n}\n\nfunction isArray(value: unknown): value is Array<unknown> {\n\treturn Array.isArray(value);\n}\n\nfunction isObject(value: unknown): value is object {\n\treturn typeof value === 'object' && !Array.isArray(value) && value !== null;\n}\n\n/*\n * Check function to ensure defaultValue matches the type\n */\nexport function isValueOfType(type: AttributeTypeConstant, defaultValue: unknown): boolean {\n\tswitch (type) {\n\t\tcase Boolean:\n\t\t\treturn isBoolean(defaultValue);\n\t\tcase Number:\n\t\t\treturn isNumber(defaultValue);\n\t\tcase String:\n\t\t\treturn isString(defaultValue);\n\t\tcase Array:\n\t\t\treturn isArray(defaultValue);\n\t\tcase Object:\n\t\t\treturn isObject(defaultValue);\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\nexport const getInitialValue = (\n\ttarget: RadiantElement,\n\ttype: AttributeTypeConstant,\n\tattributeKey: string,\n\tdefaultValue: unknown,\n) => {\n\tif (type === Boolean) {\n\t\tconst attributeValue = target.getAttribute(attributeKey);\n\t\tif (attributeValue === null) {\n\t\t\treturn defaultValue;\n\t\t}\n\n\t\treturn attributeValue === '' ? true : readAttributeValue(attributeValue, type);\n\t}\n\n\tconst attributeValue = target.getAttribute(attributeKey);\n\treturn attributeValue !== null\n\t\t? readAttributeValue(attributeValue, type)\n\t\t: (defaultValue ?? (defaultValueForType(type) as typeof defaultValue));\n};\n",
7
+ "import type { ReactiveProperty } from '../core/reactive-prop-core';\nimport type { ReactivePropDefinition } from '../core/reactive-prop-metadata';\nimport { writeAttributeValue } from '../utils/attribute-utils';\nimport { escapeHtmlAttribute } from '../utils/escape-html-attribute';\n\n/**\n * Minimal host shape needed by the attribute serialization policy.\n *\n * This interface defines the narrow contract that the serialization module\n * consumes, keeping it independent of the full {@link RadiantElementSsrHost}.\n */\nexport type HostAttributeSource = {\n\tgetReactiveProperties: () => ReactiveProperty[];\n\tgetReactivePropDefinitions: () => ReactivePropDefinition[];\n\tgetPropertyValue: (name: string) => unknown;\n\tgetAttributeNames: () => string[];\n\tgetAttribute: (name: string) => string | null;\n};\n\n/**\n * Resolves the final set of SSR host attributes from a Radiant Element Host.\n *\n * ## Source precedence (highest to lowest)\n *\n * 1. **Reactive properties** — legacy attribute reflection via `property.converter`.\n * These are already-registered reactive properties with established converters.\n * Falsy values (`undefined`, `null`, `false`) are omitted.\n *\n * 2. **Reactive prop definitions** — decorator-based definitions. Skipped when the\n * target attribute name was already emitted by source 1 (dedup via `seenAttributes`).\n * Uses `writeAttributeValue` for type-aware conversion.\n *\n * 3. **Authored attributes** — raw host-level attributes from the original markup.\n * These always win if present, regardless of whether sources 1 or 2 already\n * set the same name. This preserves explicit author intent in templates.\n *\n * @param host Host shape providing reactive state and attribute accessors.\n * @returns Flat record of attribute name → serialized value.\n */\nexport function resolveHostAttributes(host: HostAttributeSource): Record<string, string> {\n\tconst attributes: Record<string, string> = {};\n\tconst seenAttributes = new Set<string>();\n\n\tappendReactivePropertyAttributes(host, attributes, seenAttributes);\n\tappendReactivePropDefinitionAttributes(host, attributes, seenAttributes);\n\tappendAuthoredAttributes(host, attributes);\n\n\treturn attributes;\n}\n\n/**\n * Serializes a flat attribute record into an HTML attribute string.\n *\n * Each entry becomes ` name=\"escaped-value\"` with the leading space included.\n * The combined string is safe for direct interpolation into an opening tag.\n *\n * @param attributes Flat attribute record to serialize.\n * @returns HTML attribute string.\n */\nexport function stringifyHostAttributes(attributes: Record<string, string>): string {\n\treturn Object.entries(attributes)\n\t\t.map(([name, value]) => ` ${name}=\"${escapeHtmlAttribute(value)}\"`)\n\t\t.join('');\n}\n\n/**\n * Source 1: Reactive properties with established converters.\n *\n * Falsy runtime values are omitted — they should not appear as attributes\n * in SSR output.\n */\nfunction appendReactivePropertyAttributes(\n\thost: HostAttributeSource,\n\tattributes: Record<string, string>,\n\tseenAttributes: Set<string>,\n): void {\n\tfor (const property of host.getReactiveProperties()) {\n\t\tconst currentValue = host.getPropertyValue(property.name);\n\t\tif (currentValue === undefined || currentValue === null || currentValue === false) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tattributes[property.attribute] = String(property.converter.toAttribute(currentValue));\n\t\tseenAttributes.add(property.attribute);\n\t}\n}\n\n/**\n * Source 2: Decorator-based reactive prop definitions.\n *\n * Skipped when the attribute name was already emitted by source 1, preventing\n * duplicate or conflicting attribute values.\n */\nfunction appendReactivePropDefinitionAttributes(\n\thost: HostAttributeSource,\n\tattributes: Record<string, string>,\n\tseenAttributes: Set<string>,\n): void {\n\tfor (const definition of host.getReactivePropDefinitions()) {\n\t\tconst attributeName = definition.options.attribute ?? definition.name;\n\n\t\tif (seenAttributes.has(attributeName)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst currentValue = host.getPropertyValue(definition.name);\n\n\t\tif (currentValue === undefined || currentValue === null || currentValue === false) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tattributes[attributeName] = String(writeAttributeValue(currentValue, definition.options.type));\n\t\tseenAttributes.add(attributeName);\n\t}\n}\n\n/**\n * Source 3: Authored attributes from the original markup.\n *\n * These always overwrite — when an author explicitly sets an attribute in\n * markup, that intent takes precedence over reactive property reflection.\n */\nfunction appendAuthoredAttributes(host: HostAttributeSource, attributes: Record<string, string>): void {\n\tfor (const attributeName of host.getAttribute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AUlC,SAAS,CAAwB,CAAC,EAA2B,EAA0C,CACtG,QAAW,KAAiB,EAAK,kBAAkB,EAAG,CACrD,IAAM,EAAiB,EAAK,aAAa,CAAa,EACtD,GAAI,IAAmB,KACtB,EAAW,GAAiB",
10
+ "debugId": "2F1E135C72BF6A6B64756E2164756E21",
11
+ "names": []
12
+ }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Host script composition for Radiant SSR.
3
+ *
4
+ * This module owns the mode-sensitive ordering and inclusion rules for the
5
+ * script payloads that appear inside a server-rendered Element Host.
6
+ *
7
+ * ## Composition rules
8
+ *
9
+ * | Mode | Order |
10
+ * |-----------|-----------------------------------------------------------------|
11
+ * | `plain` | view content → authored hydration markup → slot projection |
12
+ * | `hydrate` | view content → slot projection → hydration binding scripts |
13
+ *
14
+ * In **plain** mode, authored hydration markup (script tags pre-authored on the
15
+ * host) is preserved because the component may rely on them for standalone
16
+ * behavior. Hydration binding scripts are omitted because there is no client
17
+ * hydrator to consume them.
18
+ *
19
+ * In **hydrate** mode, authored hydration markup is superseded by the formal
20
+ * hydration binding scripts. Slot projection comes before hydration scripts so
21
+ * the client can reconstruct projected content before binding recovery.
22
+ */
23
+ /** Individual content parts that make up a server-rendered host's inner HTML. */
24
+ export type HostContentParts = {
25
+ /** The rendered view HTML from `renderViewToString`. */
26
+ hostContent: string;
27
+ /** Authored hydration script markup pre-existing on the host, if any. */
28
+ authoredHydrationMarkup: string;
29
+ /** Slot projection JSON payload script tag, if any. */
30
+ slotProjectionScript: string;
31
+ /** Hydration binding script tags for client-side recovery, if any. */
32
+ hydrationScripts: string;
33
+ };
34
+ /**
35
+ * Assembles the inner HTML of a server-rendered Element Host from its
36
+ * individual content parts, respecting the mode-sensitive ordering rules.
37
+ *
38
+ * @param parts Individual content parts to compose.
39
+ * @param hydrate Whether the output targets client-side hydration.
40
+ * @returns Assembled inner HTML string.
41
+ */
42
+ export declare function composeHostContent(parts: HostContentParts, hydrate: boolean): string;
@@ -0,0 +1,3 @@
1
+ var{defineProperty:x,getOwnPropertyNames:B,getOwnPropertyDescriptor:C}=Object,D=Object.prototype.hasOwnProperty;function F(j){return this[j]}var K=(j)=>{var k=(z??=new WeakMap).get(j),q;if(k)return k;if(k=x({},"__esModule",{value:!0}),j&&typeof j==="object"||typeof j==="function"){for(var w of B(j))if(!D.call(k,w))x(k,w,{get:F.bind(j,w),enumerable:!(q=C(j,w))||q.enumerable})}return z.set(j,k),k},z;var G=(j)=>j;function J(j,k){this[j]=G.bind(null,k)}var N=(j,k)=>{for(var q in k)x(j,q,{get:k[q],enumerable:!0,configurable:!0,set:J.bind(k,q)})};var O=(j,k)=>()=>(j&&(k=j(j=0)),k);var P=((j)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(j,{get:(k,q)=>(typeof require<"u"?require:k)[q]}):j)(function(j){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+j+'" is not supported')});function R(j,k){if(!k)return`${j.hostContent}${j.authoredHydrationMarkup}${j.slotProjectionScript}`;return`${j.hostContent}${j.slotProjectionScript}${j.hydrationScripts}`}export{R as composeHostContent};
2
+
3
+ //# debugId=B2161565713629FB64756E2164756E21
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/server/host-script-composition.ts"],
4
+ "sourcesContent": [
5
+ "/**\n * Host script composition for Radiant SSR.\n *\n * This module owns the mode-sensitive ordering and inclusion rules for the\n * script payloads that appear inside a server-rendered Element Host.\n *\n * ## Composition rules\n *\n * | Mode | Order |\n * |-----------|-----------------------------------------------------------------|\n * | `plain` | view content → authored hydration markup → slot projection |\n * | `hydrate` | view content → slot projection → hydration binding scripts |\n *\n * In **plain** mode, authored hydration markup (script tags pre-authored on the\n * host) is preserved because the component may rely on them for standalone\n * behavior. Hydration binding scripts are omitted because there is no client\n * hydrator to consume them.\n *\n * In **hydrate** mode, authored hydration markup is superseded by the formal\n * hydration binding scripts. Slot projection comes before hydration scripts so\n * the client can reconstruct projected content before binding recovery.\n */\n\n/** Individual content parts that make up a server-rendered host's inner HTML. */\nexport type HostContentParts = {\n\t/** The rendered view HTML from `renderViewToString`. */\n\thostContent: string;\n\t/** Authored hydration script markup pre-existing on the host, if any. */\n\tauthoredHydrationMarkup: string;\n\t/** Slot projection JSON payload script tag, if any. */\n\tslotProjectionScript: string;\n\t/** Hydration binding script tags for client-side recovery, if any. */\n\thydrationScripts: string;\n};\n\n/**\n * Assembles the inner HTML of a server-rendered Element Host from its\n * individual content parts, respecting the mode-sensitive ordering rules.\n *\n * @param parts Individual content parts to compose.\n * @param hydrate Whether the output targets client-side hydration.\n * @returns Assembled inner HTML string.\n */\nexport function composeHostContent(parts: HostContentParts, hydrate: boolean): string {\n\tif (!hydrate) {\n\t\treturn `${parts.hostContent}${parts.authoredHydrationMarkup}${parts.slotProjectionScript}`;\n\t}\n\n\treturn `${parts.hostContent}${parts.slotProjectionScript}${parts.hydrationScripts}`;\n}\n"
6
+ ],
7
+ "mappings": "i0BA2CO,SAAS,CAAkB,CAAC,EAAyB,EAA0B,CACrF,GAAI,CAAC,EACJ,MAAO,GAAG,EAAM,cAAc,EAAM,0BAA0B,EAAM,uBAGrE,MAAO,GAAG,EAAM,cAAc,EAAM,uBAAuB,EAAM",
8
+ "debugId": "B2161565713629FB64756E2164756E21",
9
+ "names": []
10
+ }
@@ -0,0 +1,3 @@
1
+ var{defineProperty:u,getOwnPropertyNames:b,getOwnPropertyDescriptor:x}=Object,m=Object.prototype.hasOwnProperty;function y(e){return this[e]}var P=(e)=>{var t=(l??=new WeakMap).get(e),n;if(t)return t;if(t=u({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var i of b(e))if(!m.call(t,i))u(t,i,{get:y.bind(e,i),enumerable:!(n=x(e,i))||n.enumerable})}return l.set(e,t),t},l;var T=(e)=>e;function k(e,t){this[e]=T.bind(null,t)}var W=(e,t)=>{for(var n in t)u(e,n,{get:t[n],enumerable:!0,configurable:!0,set:k.bind(t,n)})};var H=(e,t)=>()=>(e&&(t=e(e=0)),t);var A=((e)=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,n)=>(typeof require<"u"?require:t)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});function L(e){let t=[],n=0;while(n<e.length){let i=n;if(e.startsWith("<!--",n)){let s=e.indexOf("-->",n+4);n=s===-1?e.length:s+3,t.push(e.slice(i,n));continue}if(e[n]!=="<"){let s=e.indexOf("<",n);n=s===-1?e.length:s,t.push(e.slice(i,n));continue}let r=f(e,n);if(!r){t.push(e.slice(i));break}if(r.type!=="open"||r.selfClosing||a.has(r.tagName)){n=r.end,t.push(e.slice(i,n));continue}n=r.end;let c=1;while(n<e.length&&c>0){let s=e.indexOf("<",n);if(s===-1){n=e.length;break}let o=f(e,s);if(!o){n=e.length;break}if(n=o.end,o.type==="comment"||o.type==="declaration")continue;if(o.type==="open"&&!o.selfClosing&&!a.has(o.tagName)){c+=1;continue}if(o.type==="close")c-=1}t.push(e.slice(i,n))}return t.filter((i)=>i!=="")}function w(e,t){let n;for(let i=t+1;i<e.length;i+=1){let r=e[i];if(n){if(r===n)n=void 0;continue}if(r==='"'||r==="'"){n=r;continue}if(r===">")return i+1}return e.length}function C(e){let t={},n=/([:^@A-Za-z0-9_.-]+)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'>/]+)))?/g;for(let i of e.matchAll(n)){let[,r,c,s,o]=i;if(!r)continue;t[r]=c??s??o??""}return t}function f(e,t){if(e.startsWith("<!--",t)){let d=e.indexOf("-->",t+4);return{end:d===-1?e.length:d+3,type:"comment"}}let n=w(e,t),i=e.slice(t+1,n-1).trim();if(i==="")return;if(i.startsWith("!")||i.startsWith("?"))return{end:n,type:"declaration"};if(i.startsWith("/"))return{end:n,type:"close"};let r=/\/\s*$/.test(i),c=r?i.replace(/\/\s*$/,"").trim():i,s=c.split(/[\s/>]/,1)[0]?.toLowerCase()??"",o=s.length,g=c.slice(o).trim(),p=r||a.has(s)?"":N(e,t,n,s);return{attributes:C(g),end:n,innerHtml:p,selfClosing:r,tagName:s,type:"open"}}function N(e,t,n,i){let r=n,c=1;while(r<e.length&&c>0){let s=e.indexOf("<",r);if(s===-1)return e.slice(n);let o=f(e,s);if(!o)return e.slice(n);if(o.type==="open"&&o.tagName===i&&!o.selfClosing&&!a.has(i))c+=1;if(o.type==="close"){if(e.slice(s+2,o.end-1).trim().toLowerCase()===i){if(c-=1,c===0)return e.slice(n,s)}}r=o.end}return e.slice(n)}var a;var O=H(()=>{a=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"])});O();export{a as voidElementNames,f as parseHtmlTagToken,C as parseAttributes,w as findHtmlTagEnd,N as extractInnerHtmlFragment,L as collectTopLevelHtmlFragments};
2
+
3
+ //# debugId=28325EA44B8AA6B264756E2164756E21
@@ -4,7 +4,7 @@
4
4
  "sourcesContent": [
5
5
  "export type ParsedHtmlTag = {\n\tattributes: Record<string, string>;\n\tend: number;\n\tinnerHtml: string;\n\tselfClosing: boolean;\n\ttagName: string;\n\ttype: 'open';\n};\n\nexport type ParsedHtmlToken =\n\t| ParsedHtmlTag\n\t| {\n\t\t\tend: number;\n\t\t\ttype: 'close';\n\t }\n\t| {\n\t\t\tend: number;\n\t\t\ttype: 'comment' | 'declaration';\n\t };\n\nexport const voidElementNames = new Set([\n\t'area',\n\t'base',\n\t'br',\n\t'col',\n\t'embed',\n\t'hr',\n\t'img',\n\t'input',\n\t'link',\n\t'meta',\n\t'param',\n\t'source',\n\t'track',\n\t'wbr',\n]);\n\nexport function collectTopLevelHtmlFragments(html: string): string[] {\n\tconst fragments: string[] = [];\n\tlet index = 0;\n\n\twhile (index < html.length) {\n\t\tconst fragmentStart = index;\n\n\t\tif (html.startsWith('<!--', index)) {\n\t\t\tconst commentEnd = html.indexOf('-->', index + 4);\n\t\t\tindex = commentEnd === -1 ? html.length : commentEnd + 3;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (html[index] !== '<') {\n\t\t\tconst nextTagIndex = html.indexOf('<', index);\n\t\t\tindex = nextTagIndex === -1 ? html.length : nextTagIndex;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst token = parseHtmlTagToken(html, index);\n\n\t\tif (!token) {\n\t\t\tfragments.push(html.slice(fragmentStart));\n\t\t\tbreak;\n\t\t}\n\n\t\tif (token.type !== 'open' || token.selfClosing || voidElementNames.has(token.tagName)) {\n\t\t\tindex = token.end;\n\t\t\tfragments.push(html.slice(fragmentStart, index));\n\t\t\tcontinue;\n\t\t}\n\n\t\tindex = token.end;\n\t\tlet depth = 1;\n\n\t\twhile (index < html.length && depth > 0) {\n\t\t\tconst nextTagIndex = html.indexOf('<', index);\n\n\t\t\tif (nextTagIndex === -1) {\n\t\t\t\tindex = html.length;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst nestedToken = parseHtmlTagToken(html, nextTagIndex);\n\n\t\t\tif (!nestedToken) {\n\t\t\t\tindex = html.length;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tindex = nestedToken.end;\n\n\t\t\tif (nestedToken.type === 'comment' || nestedToken.type === 'declaration') {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (nestedToken.type === 'open' && !nestedToken.selfClosing && !voidElementNames.has(nestedToken.tagName)) {\n\t\t\t\tdepth += 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (nestedToken.type === 'close') {\n\t\t\t\tdepth -= 1;\n\t\t\t}\n\t\t}\n\n\t\tfragments.push(html.slice(fragmentStart, index));\n\t}\n\n\treturn fragments.filter((fragment) => fragment !== '');\n}\n\nexport function findHtmlTagEnd(html: string, startIndex: number): number {\n\tlet quote: '\"' | \"'\" | undefined;\n\n\tfor (let index = startIndex + 1; index < html.length; index += 1) {\n\t\tconst character = html[index];\n\n\t\tif (quote) {\n\t\t\tif (character === quote) {\n\t\t\t\tquote = undefined;\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (character === '\"' || character === \"'\") {\n\t\t\tquote = character;\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (character === '>') {\n\t\t\treturn index + 1;\n\t\t}\n\t}\n\n\treturn html.length;\n}\n\nexport function parseAttributes(rawAttributes: string): Record<string, string> {\n\tconst attributes: Record<string, string> = {};\n\tconst attributePattern = /([:^@A-Za-z0-9_.-]+)(?:\\s*=\\s*(?:\"([^\"]*)\"|'([^']*)'|([^\\s\"'>/]+)))?/g;\n\n\tfor (const match of rawAttributes.matchAll(attributePattern)) {\n\t\tconst [, name, doubleQuoted, singleQuoted, bareValue] = match;\n\n\t\tif (!name) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tattributes[name] = doubleQuoted ?? singleQuoted ?? bareValue ?? '';\n\t}\n\n\treturn attributes;\n}\n\nexport function parseHtmlTagToken(html: string, startIndex: number): ParsedHtmlToken | undefined {\n\tif (html.startsWith('<!--', startIndex)) {\n\t\tconst endIndex = html.indexOf('-->', startIndex + 4);\n\t\treturn {\n\t\t\tend: endIndex === -1 ? html.length : endIndex + 3,\n\t\t\ttype: 'comment',\n\t\t};\n\t}\n\n\tconst endIndex = findHtmlTagEnd(html, startIndex);\n\tconst rawToken = html.slice(startIndex + 1, endIndex - 1).trim();\n\n\tif (rawToken === '') {\n\t\treturn undefined;\n\t}\n\n\tif (rawToken.startsWith('!') || rawToken.startsWith('?')) {\n\t\treturn {\n\t\t\tend: endIndex,\n\t\t\ttype: 'declaration',\n\t\t};\n\t}\n\n\tif (rawToken.startsWith('/')) {\n\t\treturn {\n\t\t\tend: endIndex,\n\t\t\ttype: 'close',\n\t\t};\n\t}\n\n\tconst selfClosing = /\\/\\s*$/.test(rawToken);\n\tconst tagBody = selfClosing ? rawToken.replace(/\\/\\s*$/, '').trim() : rawToken;\n\tconst tagName = tagBody.split(/[\\s/>]/, 1)[0]?.toLowerCase() ?? '';\n\tconst attributesStart = tagName.length;\n\tconst rawAttributes = tagBody.slice(attributesStart).trim();\n\tconst innerHtml =\n\t\tselfClosing || voidElementNames.has(tagName)\n\t\t\t? ''\n\t\t\t: extractInnerHtmlFragment(html, startIndex, endIndex, tagName);\n\n\treturn {\n\t\tattributes: parseAttributes(rawAttributes),\n\t\tend: endIndex,\n\t\tinnerHtml,\n\t\tselfClosing,\n\t\ttagName,\n\t\ttype: 'open',\n\t};\n}\n\nexport function extractInnerHtmlFragment(\n\thtml: string,\n\tstartIndex: number,\n\ttagEndIndex: number,\n\ttagName: string,\n): string {\n\tlet index = tagEndIndex;\n\tlet depth = 1;\n\n\twhile (index < html.length && depth > 0) {\n\t\tconst nextTagIndex = html.indexOf('<', index);\n\n\t\tif (nextTagIndex === -1) {\n\t\t\treturn html.slice(tagEndIndex);\n\t\t}\n\n\t\tconst nextTag = parseHtmlTagToken(html, nextTagIndex);\n\n\t\tif (!nextTag) {\n\t\t\treturn html.slice(tagEndIndex);\n\t\t}\n\n\t\tif (\n\t\t\tnextTag.type === 'open' &&\n\t\t\tnextTag.tagName === tagName &&\n\t\t\t!nextTag.selfClosing &&\n\t\t\t!voidElementNames.has(tagName)\n\t\t) {\n\t\t\tdepth += 1;\n\t\t}\n\n\t\tif (nextTag.type === 'close') {\n\t\t\tconst closingName = html\n\t\t\t\t.slice(nextTagIndex + 2, nextTag.end - 1)\n\t\t\t\t.trim()\n\t\t\t\t.toLowerCase();\n\n\t\t\tif (closingName === tagName) {\n\t\t\t\tdepth -= 1;\n\n\t\t\t\tif (depth === 0) {\n\t\t\t\t\treturn html.slice(tagEndIndex, nextTagIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tindex = nextTag.end;\n\t}\n\n\treturn html.slice(tagEndIndex);\n}\n"
6
6
  ],
7
- "mappings": "2PAoBO,IAAM,EAAmB,IAAI,IAAI,CACvC,OACA,OACA,KACA,MACA,QACA,KACA,MACA,QACA,OACA,OACA,QACA,SACA,QACA,KACD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