@ecopages/radiant 0.2.0 → 0.3.0-alpha.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 (445) hide show
  1. package/README.md +293 -34
  2. package/dist/chunk-0bswvy25.js +4 -0
  3. package/dist/chunk-0bswvy25.js.map +10 -0
  4. package/dist/chunk-0btkzzyc.js +4 -0
  5. package/dist/chunk-0btkzzyc.js.map +10 -0
  6. package/dist/chunk-0g0j9re6.js +4 -0
  7. package/dist/chunk-0g0j9re6.js.map +10 -0
  8. package/dist/chunk-1x26p09c.js +4 -0
  9. package/dist/chunk-1x26p09c.js.map +10 -0
  10. package/dist/chunk-21a7jask.js +4 -0
  11. package/dist/chunk-21a7jask.js.map +10 -0
  12. package/dist/chunk-25zjh0kg.js +4 -0
  13. package/dist/chunk-25zjh0kg.js.map +10 -0
  14. package/dist/chunk-30x4hggg.js +4 -0
  15. package/dist/chunk-30x4hggg.js.map +10 -0
  16. package/dist/chunk-3ryr5wx2.js +4 -0
  17. package/dist/chunk-3ryr5wx2.js.map +10 -0
  18. package/dist/chunk-3xxvmd5c.js +4 -0
  19. package/dist/chunk-3xxvmd5c.js.map +10 -0
  20. package/dist/chunk-3ynk7e1e.js +4 -0
  21. package/dist/chunk-3ynk7e1e.js.map +10 -0
  22. package/dist/chunk-4e559cy5.js +4 -0
  23. package/dist/chunk-4e559cy5.js.map +10 -0
  24. package/dist/chunk-5b1en9vz.js +4 -0
  25. package/dist/chunk-5b1en9vz.js.map +10 -0
  26. package/dist/chunk-5bkat72n.js +4 -0
  27. package/dist/chunk-5bkat72n.js.map +10 -0
  28. package/dist/chunk-5qeaq3tj.js +4 -0
  29. package/dist/chunk-5qeaq3tj.js.map +10 -0
  30. package/dist/chunk-66e6s792.js +4 -0
  31. package/dist/chunk-66e6s792.js.map +10 -0
  32. package/dist/chunk-79jg8q67.js +4 -0
  33. package/dist/chunk-79jg8q67.js.map +10 -0
  34. package/dist/chunk-8d5ddvvf.js +4 -0
  35. package/dist/chunk-8d5ddvvf.js.map +10 -0
  36. package/dist/chunk-8e9fgtbn.js +4 -0
  37. package/dist/chunk-8e9fgtbn.js.map +10 -0
  38. package/dist/chunk-9mqtp3js.js +4 -0
  39. package/dist/chunk-9mqtp3js.js.map +10 -0
  40. package/dist/chunk-9rj2rwes.js +4 -0
  41. package/dist/chunk-9rj2rwes.js.map +10 -0
  42. package/dist/chunk-atms6yrh.js +4 -0
  43. package/dist/chunk-atms6yrh.js.map +10 -0
  44. package/dist/chunk-bk2nbmcd.js +4 -0
  45. package/dist/chunk-bk2nbmcd.js.map +10 -0
  46. package/dist/chunk-bk6qkvfp.js +4 -0
  47. package/dist/chunk-bk6qkvfp.js.map +10 -0
  48. package/dist/chunk-c0qyz98c.js +4 -0
  49. package/dist/chunk-c0qyz98c.js.map +10 -0
  50. package/dist/chunk-c52qhh0j.js +4 -0
  51. package/dist/chunk-c52qhh0j.js.map +10 -0
  52. package/dist/chunk-cnyxrh9r.js +4 -0
  53. package/dist/chunk-cnyxrh9r.js.map +10 -0
  54. package/dist/chunk-cvz9mrxa.js +4 -0
  55. package/dist/chunk-cvz9mrxa.js.map +10 -0
  56. package/dist/chunk-dabagjk6.js +4 -0
  57. package/dist/chunk-dabagjk6.js.map +10 -0
  58. package/dist/chunk-e0r6ca2g.js +4 -0
  59. package/dist/chunk-e0r6ca2g.js.map +10 -0
  60. package/dist/chunk-eevw1j2q.js +4 -0
  61. package/dist/chunk-eevw1j2q.js.map +10 -0
  62. package/dist/chunk-ek664x1c.js +4 -0
  63. package/dist/chunk-ek664x1c.js.map +10 -0
  64. package/dist/chunk-eyw14d6y.js +4 -0
  65. package/dist/chunk-eyw14d6y.js.map +10 -0
  66. package/dist/chunk-fs4j94bk.js +4 -0
  67. package/dist/chunk-fs4j94bk.js.map +10 -0
  68. package/dist/chunk-g2z3mm6b.js +4 -0
  69. package/dist/chunk-g2z3mm6b.js.map +10 -0
  70. package/dist/chunk-g5n3m11h.js +4 -0
  71. package/dist/chunk-g5n3m11h.js.map +10 -0
  72. package/dist/chunk-gdkte2vd.js +4 -0
  73. package/dist/chunk-gdkte2vd.js.map +10 -0
  74. package/dist/chunk-gg74gdpv.js +4 -0
  75. package/dist/chunk-gg74gdpv.js.map +10 -0
  76. package/dist/chunk-h9k7crjc.js +4 -0
  77. package/dist/chunk-h9k7crjc.js.map +10 -0
  78. package/dist/chunk-hpzgnxgq.js +4 -0
  79. package/dist/chunk-hpzgnxgq.js.map +10 -0
  80. package/dist/chunk-hrjc8b1y.js +4 -0
  81. package/dist/chunk-hrjc8b1y.js.map +10 -0
  82. package/dist/chunk-hvy4zvcc.js +4 -0
  83. package/dist/chunk-hvy4zvcc.js.map +10 -0
  84. package/dist/chunk-hztr86b4.js +4 -0
  85. package/dist/chunk-hztr86b4.js.map +10 -0
  86. package/dist/chunk-j3v7rca5.js +4 -0
  87. package/dist/chunk-j3v7rca5.js.map +10 -0
  88. package/dist/chunk-j864sv4w.js +4 -0
  89. package/dist/chunk-j864sv4w.js.map +10 -0
  90. package/dist/chunk-jkb2y7c8.js +4 -0
  91. package/dist/chunk-jkb2y7c8.js.map +10 -0
  92. package/dist/chunk-kakpjgzf.js +4 -0
  93. package/dist/chunk-kakpjgzf.js.map +10 -0
  94. package/dist/chunk-kmebacvv.js +4 -0
  95. package/dist/chunk-kmebacvv.js.map +10 -0
  96. package/dist/chunk-knqsm6v3.js +4 -0
  97. package/dist/chunk-knqsm6v3.js.map +10 -0
  98. package/dist/chunk-mp2vtrkg.js +4 -0
  99. package/dist/chunk-mp2vtrkg.js.map +10 -0
  100. package/dist/chunk-mpsj3cjs.js +4 -0
  101. package/dist/chunk-mpsj3cjs.js.map +10 -0
  102. package/dist/chunk-n4p2542b.js +4 -0
  103. package/dist/chunk-n4p2542b.js.map +10 -0
  104. package/dist/chunk-nctznxyz.js +4 -0
  105. package/dist/chunk-nctznxyz.js.map +10 -0
  106. package/dist/chunk-ndw3hc3v.js +4 -0
  107. package/dist/chunk-ndw3hc3v.js.map +10 -0
  108. package/dist/chunk-nnnb6pac.js +4 -0
  109. package/dist/chunk-nnnb6pac.js.map +10 -0
  110. package/dist/chunk-nssj2x13.js +4 -0
  111. package/dist/chunk-nssj2x13.js.map +10 -0
  112. package/dist/chunk-nvr37vma.js +4 -0
  113. package/dist/chunk-nvr37vma.js.map +10 -0
  114. package/dist/chunk-p8k4g99a.js +4 -0
  115. package/dist/chunk-p8k4g99a.js.map +10 -0
  116. package/dist/chunk-pkszgjqf.js +4 -0
  117. package/dist/chunk-pkszgjqf.js.map +10 -0
  118. package/dist/chunk-q9z6tnzw.js +4 -0
  119. package/dist/chunk-q9z6tnzw.js.map +10 -0
  120. package/dist/chunk-qdz5sncz.js +4 -0
  121. package/dist/chunk-qdz5sncz.js.map +10 -0
  122. package/dist/chunk-qe0eww1n.js +4 -0
  123. package/dist/chunk-qe0eww1n.js.map +10 -0
  124. package/dist/chunk-r33zvvda.js +4 -0
  125. package/dist/chunk-r33zvvda.js.map +10 -0
  126. package/dist/chunk-rkh1vkb9.js +4 -0
  127. package/dist/chunk-rkh1vkb9.js.map +10 -0
  128. package/dist/chunk-rrg759ht.js +4 -0
  129. package/dist/chunk-rrg759ht.js.map +10 -0
  130. package/dist/chunk-s09s5ayx.js +4 -0
  131. package/dist/chunk-s09s5ayx.js.map +10 -0
  132. package/dist/chunk-s5p5z3z4.js +4 -0
  133. package/dist/chunk-s5p5z3z4.js.map +10 -0
  134. package/dist/chunk-sf4a2gy5.js +4 -0
  135. package/dist/chunk-sf4a2gy5.js.map +10 -0
  136. package/dist/chunk-ssnnxzrj.js +4 -0
  137. package/dist/chunk-ssnnxzrj.js.map +10 -0
  138. package/dist/chunk-t8xtvgyg.js +4 -0
  139. package/dist/chunk-t8xtvgyg.js.map +10 -0
  140. package/dist/chunk-v3ta7hnv.js +4 -0
  141. package/dist/chunk-v3ta7hnv.js.map +10 -0
  142. package/dist/chunk-v92hp9g0.js +4 -0
  143. package/dist/chunk-v92hp9g0.js.map +10 -0
  144. package/dist/chunk-vgtggzb6.js +4 -0
  145. package/dist/chunk-vgtggzb6.js.map +9 -0
  146. package/dist/chunk-vk48hgm4.js +4 -0
  147. package/dist/chunk-vk48hgm4.js.map +10 -0
  148. package/dist/chunk-w8s5fnsq.js +4 -0
  149. package/dist/chunk-w8s5fnsq.js.map +10 -0
  150. package/dist/chunk-wd23rn4q.js +4 -0
  151. package/dist/chunk-wd23rn4q.js.map +10 -0
  152. package/dist/chunk-wds4href.js +4 -0
  153. package/dist/chunk-wds4href.js.map +10 -0
  154. package/dist/chunk-wvd1ffe4.js +4 -0
  155. package/dist/chunk-wvd1ffe4.js.map +10 -0
  156. package/dist/chunk-wwbjz9k4.js +4 -0
  157. package/dist/chunk-wwbjz9k4.js.map +10 -0
  158. package/dist/chunk-x2k0ngpz.js +4 -0
  159. package/dist/chunk-x2k0ngpz.js.map +10 -0
  160. package/dist/chunk-x457d0ap.js +4 -0
  161. package/dist/chunk-x457d0ap.js.map +10 -0
  162. package/dist/chunk-xbhtzkre.js +4 -0
  163. package/dist/chunk-xbhtzkre.js.map +10 -0
  164. package/dist/chunk-y139ycfm.js +4 -0
  165. package/dist/chunk-y139ycfm.js.map +10 -0
  166. package/dist/chunk-z9kxfckm.js +4 -0
  167. package/dist/chunk-z9kxfckm.js.map +10 -0
  168. package/dist/chunk-zx5txex8.js +4 -0
  169. package/dist/chunk-zx5txex8.js.map +10 -0
  170. package/dist/client/hydrator.d.ts +19 -0
  171. package/dist/client/hydrator.js +3 -0
  172. package/dist/client/hydrator.js.map +9 -0
  173. package/dist/client/install-hydrator.d.ts +1 -0
  174. package/dist/client/install-hydrator.js +3 -0
  175. package/dist/client/install-hydrator.js.map +10 -0
  176. package/dist/context/context-consumer-bootstrap.d.ts +41 -0
  177. package/dist/context/context-consumer-bootstrap.js +3 -0
  178. package/dist/context/context-consumer-bootstrap.js.map +9 -0
  179. package/dist/context/context-consumer-runtime.d.ts +34 -0
  180. package/dist/context/context-consumer-runtime.js +3 -0
  181. package/dist/context/context-consumer-runtime.js.map +9 -0
  182. package/dist/context/context-provider.d.ts +50 -2
  183. package/dist/context/context-provider.js +2 -3
  184. package/dist/context/context-provider.js.map +3 -4
  185. package/dist/context/context-ssr-bridge.d.ts +16 -0
  186. package/dist/context/context-ssr-bridge.js +3 -0
  187. package/dist/context/context-ssr-bridge.js.map +9 -0
  188. package/dist/context/create-context.js +2 -3
  189. package/dist/context/create-context.js.map +3 -4
  190. package/dist/context/decorators/consume-context.d.ts +8 -4
  191. package/dist/context/decorators/consume-context.js +2 -3
  192. package/dist/context/decorators/consume-context.js.map +3 -4
  193. package/dist/context/decorators/context-selection-delivery.d.ts +1 -0
  194. package/dist/context/decorators/context-selection-delivery.js +3 -0
  195. package/dist/context/decorators/context-selection-delivery.js.map +9 -0
  196. package/dist/context/decorators/context-selector.d.ts +26 -8
  197. package/dist/context/decorators/context-selector.js +2 -3
  198. package/dist/context/decorators/context-selector.js.map +3 -4
  199. package/dist/context/decorators/legacy/consume-context.d.ts +1 -1
  200. package/dist/context/decorators/legacy/consume-context.js +2 -3
  201. package/dist/context/decorators/legacy/consume-context.js.map +3 -4
  202. package/dist/context/decorators/legacy/context-selector-field.d.ts +8 -0
  203. package/dist/context/decorators/legacy/context-selector-field.js +3 -0
  204. package/dist/context/decorators/legacy/context-selector-field.js.map +9 -0
  205. package/dist/context/decorators/legacy/context-selector.d.ts +3 -3
  206. package/dist/context/decorators/legacy/context-selector.js +2 -3
  207. package/dist/context/decorators/legacy/context-selector.js.map +3 -4
  208. package/dist/context/decorators/legacy/provide-context.d.ts +1 -1
  209. package/dist/context/decorators/legacy/provide-context.js +2 -3
  210. package/dist/context/decorators/legacy/provide-context.js.map +3 -4
  211. package/dist/context/decorators/on-context-update.d.ts +31 -0
  212. package/dist/context/decorators/on-context-update.js +3 -0
  213. package/dist/context/decorators/on-context-update.js.map +9 -0
  214. package/dist/context/decorators/provide-context.d.ts +12 -0
  215. package/dist/context/decorators/provide-context.js +2 -3
  216. package/dist/context/decorators/provide-context.js.map +3 -4
  217. package/dist/context/decorators/standard/consume-context.d.ts +1 -1
  218. package/dist/context/decorators/standard/consume-context.js +2 -3
  219. package/dist/context/decorators/standard/consume-context.js.map +3 -4
  220. package/dist/context/decorators/standard/context-selector-field.d.ts +8 -0
  221. package/dist/context/decorators/standard/context-selector-field.js +3 -0
  222. package/dist/context/decorators/standard/context-selector-field.js.map +9 -0
  223. package/dist/context/decorators/standard/context-selector.d.ts +4 -3
  224. package/dist/context/decorators/standard/context-selector.js +2 -3
  225. package/dist/context/decorators/standard/context-selector.js.map +3 -4
  226. package/dist/context/decorators/standard/provide-context.d.ts +1 -1
  227. package/dist/context/decorators/standard/provide-context.js +2 -3
  228. package/dist/context/decorators/standard/provide-context.js.map +3 -4
  229. package/dist/context/events.js +2 -3
  230. package/dist/context/events.js.map +3 -4
  231. package/dist/context/hydration-script.d.ts +13 -0
  232. package/dist/context/hydration-script.js +3 -0
  233. package/dist/context/hydration-script.js.map +9 -0
  234. package/dist/core/custom-element-metadata.d.ts +3 -0
  235. package/dist/core/custom-element-metadata.js +3 -0
  236. package/dist/core/custom-element-metadata.js.map +9 -0
  237. package/dist/core/hydration-codec.d.ts +24 -0
  238. package/dist/core/hydration-codec.js +3 -0
  239. package/dist/core/hydration-codec.js.map +9 -0
  240. package/dist/core/radiant-component-ssr-registry.d.ts +54 -0
  241. package/dist/core/radiant-component-ssr-registry.js +3 -0
  242. package/dist/core/radiant-component-ssr-registry.js.map +9 -0
  243. package/dist/core/radiant-component-ssr.d.ts +29 -0
  244. package/dist/core/radiant-component-ssr.js +3 -0
  245. package/dist/core/radiant-component-ssr.js.map +9 -0
  246. package/dist/core/radiant-component.d.ts +113 -0
  247. package/dist/core/radiant-component.js +3 -0
  248. package/dist/core/radiant-component.js.map +9 -0
  249. package/dist/core/radiant-element.d.ts +217 -9
  250. package/dist/core/radiant-element.js +2 -3
  251. package/dist/core/radiant-element.js.map +3 -4
  252. package/dist/core/radiant-hydrator-state.d.ts +20 -0
  253. package/dist/core/radiant-hydrator-state.js +3 -0
  254. package/dist/core/radiant-hydrator-state.js.map +9 -0
  255. package/dist/core/reactive-jsx-value.d.ts +10 -0
  256. package/dist/core/reactive-jsx-value.js +3 -0
  257. package/dist/core/reactive-jsx-value.js.map +9 -0
  258. package/dist/core/reactive-prop-metadata.d.ts +7 -0
  259. package/dist/core/reactive-prop-metadata.js +3 -0
  260. package/dist/core/reactive-prop-metadata.js.map +9 -0
  261. package/dist/core/slot-projection-runtime.d.ts +14 -0
  262. package/dist/core/slot-projection-runtime.js +3 -0
  263. package/dist/core/slot-projection-runtime.js.map +9 -0
  264. package/dist/core/ssr-hydration-binding.d.ts +14 -0
  265. package/dist/core/ssr-hydration-binding.js +2 -0
  266. package/dist/core/ssr-hydration-binding.js.map +9 -0
  267. package/dist/core/ssr-preparation.d.ts +18 -0
  268. package/dist/core/ssr-preparation.js +3 -0
  269. package/dist/core/ssr-preparation.js.map +9 -0
  270. package/dist/decorators/bound.js +2 -2
  271. package/dist/decorators/bound.js.map +3 -4
  272. package/dist/decorators/bridge.d.ts +8 -0
  273. package/dist/decorators/bridge.js +3 -0
  274. package/dist/decorators/bridge.js.map +9 -0
  275. package/dist/decorators/custom-element.js +2 -3
  276. package/dist/decorators/custom-element.js.map +3 -4
  277. package/dist/decorators/debounce.js +2 -2
  278. package/dist/decorators/debounce.js.map +3 -4
  279. package/dist/decorators/event.js +2 -3
  280. package/dist/decorators/event.js.map +3 -4
  281. package/dist/decorators/legacy/bound.js +2 -3
  282. package/dist/decorators/legacy/bound.js.map +3 -4
  283. package/dist/decorators/legacy/custom-element.js +2 -3
  284. package/dist/decorators/legacy/custom-element.js.map +3 -4
  285. package/dist/decorators/legacy/debounce.js +2 -3
  286. package/dist/decorators/legacy/debounce.js.map +3 -4
  287. package/dist/decorators/legacy/event.d.ts +1 -1
  288. package/dist/decorators/legacy/event.js +2 -2
  289. package/dist/decorators/legacy/event.js.map +3 -4
  290. package/dist/decorators/legacy/instance-initializers.d.ts +17 -0
  291. package/dist/decorators/legacy/instance-initializers.js +3 -0
  292. package/dist/decorators/legacy/instance-initializers.js.map +9 -0
  293. package/dist/decorators/legacy/on-event.d.ts +2 -11
  294. package/dist/decorators/legacy/on-event.js +2 -3
  295. package/dist/decorators/legacy/on-event.js.map +3 -4
  296. package/dist/decorators/legacy/on-updated.js +2 -3
  297. package/dist/decorators/legacy/on-updated.js.map +3 -4
  298. package/dist/decorators/legacy/query-slot.d.ts +3 -0
  299. package/dist/decorators/legacy/query-slot.js +3 -0
  300. package/dist/decorators/legacy/query-slot.js.map +9 -0
  301. package/dist/decorators/legacy/query.js +2 -3
  302. package/dist/decorators/legacy/query.js.map +3 -4
  303. package/dist/decorators/legacy/reactive-field.js +2 -3
  304. package/dist/decorators/legacy/reactive-field.js.map +3 -4
  305. package/dist/decorators/legacy/reactive-prop.d.ts +2 -1
  306. package/dist/decorators/legacy/reactive-prop.js +2 -3
  307. package/dist/decorators/legacy/reactive-prop.js.map +3 -4
  308. package/dist/decorators/legacy/signal.d.ts +10 -0
  309. package/dist/decorators/legacy/signal.js +3 -0
  310. package/dist/decorators/legacy/signal.js.map +9 -0
  311. package/dist/decorators/on-event.d.ts +3 -11
  312. package/dist/decorators/on-event.js +2 -3
  313. package/dist/decorators/on-event.js.map +3 -4
  314. package/dist/decorators/on-updated.js +2 -3
  315. package/dist/decorators/on-updated.js.map +3 -4
  316. package/dist/decorators/prop.d.ts +14 -0
  317. package/dist/decorators/prop.js +3 -0
  318. package/dist/decorators/prop.js.map +9 -0
  319. package/dist/decorators/query-slot.d.ts +13 -0
  320. package/dist/decorators/query-slot.js +3 -0
  321. package/dist/decorators/query-slot.js.map +9 -0
  322. package/dist/decorators/query.d.ts +4 -13
  323. package/dist/decorators/query.js +2 -3
  324. package/dist/decorators/query.js.map +3 -4
  325. package/dist/decorators/signal.d.ts +23 -0
  326. package/dist/decorators/signal.js +3 -0
  327. package/dist/decorators/signal.js.map +9 -0
  328. package/dist/decorators/standard/bound.js +2 -3
  329. package/dist/decorators/standard/bound.js.map +3 -4
  330. package/dist/decorators/standard/custom-element.js +2 -3
  331. package/dist/decorators/standard/custom-element.js.map +3 -4
  332. package/dist/decorators/standard/debounce.js +2 -3
  333. package/dist/decorators/standard/debounce.js.map +3 -4
  334. package/dist/decorators/standard/event.d.ts +1 -1
  335. package/dist/decorators/standard/event.js +2 -3
  336. package/dist/decorators/standard/event.js.map +3 -4
  337. package/dist/decorators/standard/on-event.d.ts +1 -11
  338. package/dist/decorators/standard/on-event.js +2 -3
  339. package/dist/decorators/standard/on-event.js.map +3 -4
  340. package/dist/decorators/standard/on-updated.js +2 -3
  341. package/dist/decorators/standard/on-updated.js.map +3 -4
  342. package/dist/decorators/standard/query-slot.d.ts +8 -0
  343. package/dist/decorators/standard/query-slot.js +3 -0
  344. package/dist/decorators/standard/query-slot.js.map +9 -0
  345. package/dist/decorators/standard/query.js +2 -3
  346. package/dist/decorators/standard/query.js.map +3 -4
  347. package/dist/decorators/standard/reactive-field.js +2 -3
  348. package/dist/decorators/standard/reactive-field.js.map +3 -4
  349. package/dist/decorators/standard/reactive-prop.d.ts +1 -1
  350. package/dist/decorators/standard/reactive-prop.js +2 -3
  351. package/dist/decorators/standard/reactive-prop.js.map +3 -4
  352. package/dist/decorators/standard/signal.d.ts +33 -0
  353. package/dist/decorators/standard/signal.js +3 -0
  354. package/dist/decorators/standard/signal.js.map +9 -0
  355. package/dist/decorators/state.d.ts +11 -0
  356. package/dist/decorators/state.js +3 -0
  357. package/dist/decorators/state.js.map +9 -0
  358. package/dist/helpers/create-event-listener.d.ts +28 -0
  359. package/dist/helpers/create-event-listener.js +3 -0
  360. package/dist/helpers/create-event-listener.js.map +9 -0
  361. package/dist/helpers/create-event.d.ts +9 -0
  362. package/dist/helpers/create-event.js +3 -0
  363. package/dist/helpers/create-event.js.map +9 -0
  364. package/dist/helpers/create-query-slot.d.ts +20 -0
  365. package/dist/helpers/create-query-slot.js +3 -0
  366. package/dist/helpers/create-query-slot.js.map +9 -0
  367. package/dist/helpers/create-query.d.ts +27 -0
  368. package/dist/helpers/create-query.js +3 -0
  369. package/dist/helpers/create-query.js.map +9 -0
  370. package/dist/helpers/debounce.d.ts +39 -0
  371. package/dist/helpers/debounce.js +3 -0
  372. package/dist/helpers/debounce.js.map +9 -0
  373. package/dist/helpers/index.d.ts +5 -0
  374. package/dist/helpers/index.js +3 -0
  375. package/dist/{mixins → helpers}/index.js.map +1 -1
  376. package/dist/index.d.ts +13 -5
  377. package/dist/index.js +2 -2
  378. package/dist/index.js.map +1 -1
  379. package/dist/server/context-ssr.d.ts +27 -0
  380. package/dist/server/context-ssr.js +3 -0
  381. package/dist/server/context-ssr.js.map +9 -0
  382. package/dist/server/html-parser.d.ts +21 -0
  383. package/dist/server/html-parser.js +3 -0
  384. package/dist/server/html-parser.js.map +9 -0
  385. package/dist/server/install-light-dom-shim.d.ts +1 -0
  386. package/dist/server/install-light-dom-shim.js +3 -0
  387. package/dist/server/install-light-dom-shim.js.map +10 -0
  388. package/dist/server/light-dom-shim.d.ts +53 -0
  389. package/dist/server/light-dom-shim.js +3 -0
  390. package/dist/server/light-dom-shim.js.map +9 -0
  391. package/dist/server/project-root.d.ts +20 -0
  392. package/dist/server/project-root.js +3 -0
  393. package/dist/server/project-root.js.map +11 -0
  394. package/dist/server/radiant-component-ssr-runtime.d.ts +9 -0
  395. package/dist/server/radiant-component-ssr-runtime.js +3 -0
  396. package/dist/server/radiant-component-ssr-runtime.js.map +9 -0
  397. package/dist/server/render-component.d.ts +195 -0
  398. package/dist/server/render-component.js +3 -0
  399. package/dist/server/render-component.js.map +10 -0
  400. package/dist/server/slot-projection-html.d.ts +3 -0
  401. package/dist/server/slot-projection-html.js +3 -0
  402. package/dist/server/slot-projection-html.js.map +10 -0
  403. package/dist/signals/host-resource.d.ts +59 -0
  404. package/dist/signals/host-resource.js +3 -0
  405. package/dist/signals/host-resource.js.map +10 -0
  406. package/dist/signals/host-signal.d.ts +45 -0
  407. package/dist/signals/host-signal.js +3 -0
  408. package/dist/signals/host-signal.js.map +9 -0
  409. package/dist/signals/hydration-script.d.ts +7 -0
  410. package/dist/signals/hydration-script.js +3 -0
  411. package/dist/signals/hydration-script.js.map +9 -0
  412. package/dist/tools/escape-script-json.d.ts +5 -0
  413. package/dist/tools/escape-script-json.js +3 -0
  414. package/dist/tools/escape-script-json.js.map +9 -0
  415. package/dist/tools/event-emitter.js +2 -3
  416. package/dist/tools/event-emitter.js.map +3 -4
  417. package/dist/tools/index.d.ts +2 -0
  418. package/dist/tools/index.js +2 -2
  419. package/dist/tools/index.js.map +1 -1
  420. package/dist/tools/render-jsx-template.d.ts +5 -0
  421. package/dist/tools/render-jsx-template.js +3 -0
  422. package/dist/tools/render-jsx-template.js.map +9 -0
  423. package/dist/tools/stringify-typed.d.ts +4 -6
  424. package/dist/tools/stringify-typed.js +2 -3
  425. package/dist/tools/stringify-typed.js.map +3 -4
  426. package/dist/types.d.ts +0 -21
  427. package/dist/types.js +2 -2
  428. package/dist/types.js.map +3 -3
  429. package/dist/utils/attribute-utils.js +2 -3
  430. package/dist/utils/attribute-utils.js.map +3 -4
  431. package/dist/utils/index.js +2 -2
  432. package/dist/utils/index.js.map +1 -1
  433. package/package.json +106 -21
  434. package/size-budget.json +16 -0
  435. package/dist/decorators/reactive-field.d.ts +0 -6
  436. package/dist/decorators/reactive-field.js +0 -4
  437. package/dist/decorators/reactive-field.js.map +0 -10
  438. package/dist/decorators/reactive-prop.d.ts +0 -8
  439. package/dist/decorators/reactive-prop.js +0 -4
  440. package/dist/decorators/reactive-prop.js.map +0 -10
  441. package/dist/mixins/index.d.ts +0 -1
  442. package/dist/mixins/index.js +0 -3
  443. package/dist/mixins/with-kita.d.ts +0 -15
  444. package/dist/mixins/with-kita.js +0 -4
  445. package/dist/mixins/with-kita.js.map +0 -10
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/context-selector.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type {\n LegacyMethodDecoratorArgs,\n StandardMethodDecoratorArgs,\n StandardOrLegacyMethodDecoratorArgs,\n} from '../../types';\nimport type { Context, UnknownContext } from '../types';\nimport { contextSelector as legacyContextSelector } from './legacy/context-selector';\nimport { contextSelector as standardContextSelector } from './standard/context-selector';\n\nexport type SubscribeToContextOptions<T extends UnknownContext> = {\n context: T;\n select?: (context: T['__context__']) => unknown;\n subscribe?: boolean;\n};\n\n/**\n * A decorator to subscribe to a context selector.\n * @param option {@link SubscribeToContextOptions}\n * @returns\n */\nexport function contextSelector<T extends Context<unknown, unknown>>(options: SubscribeToContextOptions<T>) {\n return function (\n protoOrTarget: StandardOrLegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyMethodDecoratorArgs['nameOrContext'],\n descriptor?: StandardOrLegacyMethodDecoratorArgs['descriptor'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardContextSelector(options)(\n protoOrTarget as StandardMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardMethodDecoratorArgs['nameOrContext'],\n );\n }\n return legacyContextSelector(options)(\n protoOrTarget as LegacyMethodDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyMethodDecoratorArgs['nameOrContext'],\n descriptor as LegacyMethodDecoratorArgs['descriptor'],\n );\n };\n}\n"
6
5
  ],
7
- "mappings": "mIAoBO,YAAS,ZAAoD,CAAC,EAAuC,CAC1G,eAAgB,CACd,EACA,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAwB,CAAO,EACpC,EACA,CACF,EAEF,OAAO,EAAsB,CAAO,EAClC,EACA,EACA,CACF",
8
- "debugId": "0C0E19D0A850DDF264756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "DACE64961DE0094664756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,3 +1,3 @@
1
1
  import type { RadiantElement } from '../../../core/radiant-element';
2
2
  import type { UnknownContext } from '../../types';
3
- export declare function consumeContext(contextToProvide: UnknownContext): (proto: RadiantElement, propertyKey: string) => void;
3
+ export declare function consumeContext(context: UnknownContext): (proto: RadiantElement, propertyKey: string) => void;
@@ -1,4 +1,3 @@
1
- import{p as e}from"../../events.js";function l(t){return(n,a)=>{const o=n.connectedCallback;n.connectedCallback=function(){o.call(this),this.dispatchEvent(new e(t,(c)=>{this[a]=c,this.connectedContextCallback(t)}))}}}export{l as consumeContext};
2
- export{l as g};
1
+ import{u as a}from"../../../chunk-nctznxyz.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-cnyxrh9r.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as consumeContext};
3
2
 
4
- //# debugId=AA1F233D69B2F67764756E2164756E21
3
+ //# debugId=9B9AD8FB3D9B006D64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/legacy/consume-context.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { ContextRequestEvent } from '../../events';\nimport type { UnknownContext } from '../../types';\n\nexport function consumeContext(contextToProvide: UnknownContext) {\n return (proto: RadiantElement, propertyKey: string) => {\n const originalConnectedCallback = proto.connectedCallback;\n\n proto.connectedCallback = function (this: RadiantElement) {\n originalConnectedCallback.call(this);\n this.dispatchEvent(\n new ContextRequestEvent(contextToProvide, (context) => {\n (this as any)[propertyKey] = context;\n this.connectedContextCallback(contextToProvide);\n }),\n );\n };\n };\n}\n"
6
5
  ],
7
- "mappings": "oCAIO,SAAS,CAAc,CAAC,EAAkC,CAC/D,MAAO,CAAC,EAAuB,IAAwB,CACrD,MAAM,EAA4B,EAAM,kBAExC,EAAM,0BAA6B,EAAuB,CACxD,EAA0B,KAAK,IAAI,EACnC,KAAK,cACH,IAAI,EAAoB,EAAkB,CAAC,IAAY,CACrD,AAAC,KAAa,GAAe,EAC7B,KAAK,yBAAyB,CAAgB,EAC/C,CACH",
8
- "debugId": "AA1F233D69B2F67764756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "9B9AD8FB3D9B006D64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,8 @@
1
+ import type { RadiantElement } from '../../../core/radiant-element';
2
+ import type { Context, ContextType } from '../../types';
3
+ export type ContextSelectorFieldOptions<T extends Context<unknown, unknown>, Selected = ContextType<T>> = {
4
+ context: T;
5
+ select?: (context: ContextType<T>) => Selected;
6
+ subscribe?: boolean;
7
+ };
8
+ export declare function contextSelectorField<T extends Context<unknown, unknown>, Selected = ContextType<T>>(options: ContextSelectorFieldOptions<T, Selected>): (target: RadiantElement, propertyName: string) => void;
@@ -0,0 +1,3 @@
1
+ import{C as a}from"../../../chunk-s09s5ayx.js";import"../../../chunk-5bkat72n.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-cnyxrh9r.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as contextSelectorField};
2
+
3
+ //# debugId=54E81B6C02C1D00664756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "54E81B6C02C1D00664756E2164756E21",
8
+ "names": []
9
+ }
@@ -1,4 +1,4 @@
1
1
  import type { RadiantElement } from '../../../core/radiant-element';
2
- import type { Context } from '../../types';
3
- import type { SubscribeToContextOptions } from '../context-selector';
4
- export declare function contextSelector<T extends Context<unknown, unknown>>({ context, select, subscribe, }: SubscribeToContextOptions<T>): (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
2
+ import type { Context, ContextType } from '../../types';
3
+ import type { OnContextUpdateOptions } from '../on-context-update';
4
+ export declare function contextSelector<T extends Context<unknown, unknown>, Selected = ContextType<T>>({ context, select, subscribe, requestUpdate, }: OnContextUpdateOptions<T, Selected>): (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
@@ -1,4 +1,3 @@
1
- import{r as o}from"../../events.js";function x({context:r,select:i,subscribe:s=!0}){return(e,l,t)=>{const n=t.value,c=e.connectedCallback;return e.connectedCallback=function(){c.call(this),this.dispatchEvent(new o(r,n.bind(this),i,s))},t.value=function(...a){return n.apply(this,a)},t}}export{x as contextSelector};
2
- export{x as j};
1
+ import{F as a}from"../../../chunk-kakpjgzf.js";import"../../../chunk-5bkat72n.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-cnyxrh9r.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as contextSelector};
3
2
 
4
- //# debugId=FC57688C8413180A64756E2164756E21
3
+ //# debugId=B0284AA5CC1BCEEA64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/legacy/context-selector.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { ContextSubscriptionRequestEvent } from '../../events';\nimport type { Context, ContextType, UnknownContext } from '../../types';\nimport type { SubscribeToContextOptions } from '../context-selector';\n\ntype ArgsType<T extends UnknownContext> = SubscribeToContextOptions<T>['select'] extends (...args: any[]) => infer R\n ? R\n : ContextType<T>;\n\nexport function contextSelector<T extends Context<unknown, unknown>>({\n context,\n select,\n subscribe = true,\n}: SubscribeToContextOptions<T>) {\n return (proto: RadiantElement, _: string, descriptor: PropertyDescriptor) => {\n const originalMethod = descriptor.value;\n const originalConnectedCallback = proto.connectedCallback;\n\n proto.connectedCallback = function (this: RadiantElement) {\n originalConnectedCallback.call(this);\n this.dispatchEvent(new ContextSubscriptionRequestEvent(context, originalMethod.bind(this), select, subscribe));\n };\n\n descriptor.value = function (...args: ArgsType<T>[]) {\n const result = originalMethod.apply(this, args);\n return result;\n };\n\n return descriptor;\n };\n}\n"
6
5
  ],
7
- "mappings": "oCASO,SAAS,CAAoD,EAClE,UACA,SACA,YAAY,IACmB,CAC/B,MAAO,CAAC,EAAuB,EAAW,IAAmC,CAC3E,MAAM,EAAiB,EAAW,MAC5B,EAA4B,EAAM,kBAYxC,OAVA,EAAM,0BAA6B,EAAuB,CACxD,EAA0B,KAAK,IAAI,EACnC,KAAK,cAAc,IAAI,EAAgC,EAAS,EAAe,KAAK,IAAI,EAAG,EAAQ,CAAS,CAAC,GAG/G,EAAW,cAAiB,IAAI,EAAqB,CAEnD,OADe,EAAe,MAAM,KAAM,CAAI,GAIzC",
8
- "debugId": "FC57688C8413180A64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "B0284AA5CC1BCEEA64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,4 @@
1
1
  import type { UnknownContext } from '../../../context/types';
2
2
  import type { RadiantElement } from '../../../core/radiant-element';
3
3
  import type { ProvideContextOptions } from '../provide-context';
4
- export declare function provideContext<T extends UnknownContext>({ context, initialValue, hydrate }: ProvideContextOptions<T>): (proto: RadiantElement, propertyKey: string) => void;
4
+ export declare function provideContext<T extends UnknownContext>({ context, initialValue, hydrate, serialize, }: ProvideContextOptions<T>): (proto: RadiantElement, propertyKey: string) => void;
@@ -1,4 +1,3 @@
1
- import{n as m}from"../../context-provider.js";import"../../events.js";import"../../../utils/attribute-utils.js";function B({context:f,initialValue:q,hydrate:s}){return(j,w)=>{const z=j.connectedCallback;j.connectedCallback=function(){this[w]=new m(this,{context:f,initialValue:q,hydrate:s}),z.call(this),this.connectedContextCallback(f)}}}export{B as provideContext};
2
- export{B as m};
1
+ import{w as a}from"../../../chunk-r33zvvda.js";import"../../../chunk-21a7jask.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-c0qyz98c.js";import"../../../chunk-cnyxrh9r.js";import"../../../chunk-hpzgnxgq.js";import"../../../chunk-nssj2x13.js";import"../../../chunk-vgtggzb6.js";export{a as provideContext};
3
2
 
4
- //# debugId=9792C057CA5DDBEB64756E2164756E21
3
+ //# debugId=42621FE8B649CF7764756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/legacy/provide-context.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import { ContextProvider } from '../../../context/context-provider';\nimport type { UnknownContext } from '../../../context/types';\nimport type { RadiantElement } from '../../../core/radiant-element';\nimport type { ProvideContextOptions } from '../provide-context';\n\nexport function provideContext<T extends UnknownContext>({ context, initialValue, hydrate }: ProvideContextOptions<T>) {\n return (proto: RadiantElement, propertyKey: string) => {\n const originalConnectedCallback = proto.connectedCallback;\n\n proto.connectedCallback = function (this: RadiantElement) {\n (this as any)[propertyKey] = new ContextProvider<T>(this, { context, initialValue, hydrate });\n originalConnectedCallback.call(this);\n this.connectedContextCallback(context);\n };\n };\n}\n"
6
5
  ],
7
- "mappings": "kHAKO,DAAS,SAAwC,EAAG,UAAS,eAAc,WAAqC,CACrH,MAAO,CAAC,EAAuB,IAAwB,CACrD,MAAM,EAA4B,EAAM,kBAExC,EAAM,0BAA6B,EAAuB,CACxD,AAAC,KAAa,GAAe,IAAI,EAAmB,KAAM,CAAE,UAAS,eAAc,SAAQ,CAAC,EAC5F,EAA0B,KAAK,IAAI,EACnC,KAAK,yBAAyB,CAAO",
8
- "debugId": "9792C057CA5DDBEB64756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "42621FE8B649CF7764756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,31 @@
1
+ import type { RadiantElement } from '../../core/radiant-element';
2
+ import type { Context, ContextType, UnknownContext } from '../types';
3
+ type ContextUpdateMethod<Selected> = (value: Selected) => unknown;
4
+ type OnContextUpdateDecorator<Selected> = {
5
+ <Host extends RadiantElement, TMethod extends ContextUpdateMethod<Selected>>(protoOrTarget: TMethod, nameOrContext: ClassMethodDecoratorContext<Host, TMethod>): void;
6
+ (protoOrTarget: RadiantElement, nameOrContext: string, descriptor: TypedPropertyDescriptor<ContextUpdateMethod<Selected>>): TypedPropertyDescriptor<ContextUpdateMethod<Selected>> | void;
7
+ };
8
+ export type OnContextUpdateOptions<T extends UnknownContext, Selected = ContextType<T>> = {
9
+ /** Context token to resolve from ancestor providers. */
10
+ context: T;
11
+ /** Optional projection that narrows the resolved context before delivery. */
12
+ select?: (context: ContextType<T>) => Selected;
13
+ /** Whether client-side event-channel subscriptions should stay active after the first value. */
14
+ subscribe?: boolean;
15
+ /** Whether RadiantComponent hosts should schedule `requestUpdate()` after delivery. */
16
+ requestUpdate?: boolean;
17
+ };
18
+ /**
19
+ * Subscribes a method to the current value, or a selected slice, of a context.
20
+ *
21
+ * The decorated method is invoked during SSR when an ambient provider is
22
+ * available, and on the client it keeps receiving updates according to the
23
+ * `subscribe` option.
24
+ *
25
+ * On `RadiantComponent` hosts, each delivery also schedules `requestUpdate()`
26
+ * unless `requestUpdate: false` is set explicitly.
27
+ *
28
+ * @param options Context subscription configuration.
29
+ */
30
+ export declare function onContextUpdate<T extends Context<unknown, unknown>, Selected = ContextType<T>>(options: OnContextUpdateOptions<T, Selected>): OnContextUpdateDecorator<Selected>;
31
+ export {};
@@ -0,0 +1,3 @@
1
+ import{A as a}from"../../chunk-qe0eww1n.js";import"../../chunk-x2k0ngpz.js";import"../../chunk-kakpjgzf.js";import"../../chunk-5bkat72n.js";import"../../chunk-p8k4g99a.js";import"../../chunk-ek664x1c.js";import"../../chunk-kmebacvv.js";import"../../chunk-eyw14d6y.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-q9z6tnzw.js";import"../../chunk-t8xtvgyg.js";import"../../chunk-vgtggzb6.js";export{a as onContextUpdate};
2
+
3
+ //# debugId=985FF9B3951D73E364756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "985FF9B3951D73E364756E2164756E21",
8
+ "names": []
9
+ }
@@ -2,9 +2,21 @@ import type { StandardOrLegacyFieldDecoratorArgs } from '../../types';
2
2
  import type { AttributeTypeConstant } from '../../utils';
3
3
  import type { UnknownContext } from '../types';
4
4
  export type ProvideContextOptions<T extends UnknownContext> = {
5
+ /** Context token made available to descendant consumers. */
5
6
  context: T;
7
+ /** Client-side default value installed before any SSR hydration is merged. */
6
8
  initialValue?: T['__context__'];
9
+ /** Attribute type used to opt the provider into SSR hydration. */
7
10
  hydrate?: AttributeTypeConstant;
11
+ /**
12
+ * Projects the current provider value into an SSR-safe hydration payload.
13
+ *
14
+ * Use this when the live client context includes instances or other values
15
+ * that should stay client-only. When `hydrate: Object` is active, the parsed
16
+ * payload merges back into `initialValue`, so omitted members keep their
17
+ * client-side defaults.
18
+ */
19
+ serialize?: (value: T['__context__']) => unknown;
8
20
  };
9
21
  /**
10
22
  * A decorator to provide a context to the target element.
@@ -1,4 +1,3 @@
1
- import{l as w}from"./standard/provide-context.js";import{m as q}from"./legacy/provide-context.js";import"../context-provider.js";import"../events.js";import"../../utils/attribute-utils.js";function D(f){return function(j,b){if(typeof b==="object")return w(f)(j,b);return q(f)(j,b)}}export{D as provideContext};
2
- export{D as k};
1
+ import{v as a}from"../../chunk-wds4href.js";import"../../chunk-r33zvvda.js";import"../../chunk-5qeaq3tj.js";import"../../chunk-21a7jask.js";import"../../chunk-kmebacvv.js";import"../../chunk-c0qyz98c.js";import"../../chunk-cnyxrh9r.js";import"../../chunk-q9z6tnzw.js";import"../../chunk-hpzgnxgq.js";import"../../chunk-nssj2x13.js";import"../../chunk-vgtggzb6.js";export{a as provideContext};
3
2
 
4
- //# debugId=DAFE7A9740BFBCF864756E2164756E21
3
+ //# debugId=A93A96A0D175B10664756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/provide-context.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../../types';\nimport type { AttributeTypeConstant } from '../../utils';\nimport type { UnknownContext } from '../types';\nimport { provideContext as legacyProvideContext } from './legacy/provide-context';\nimport { provideContext as standardProvideContext } from './standard/provide-context';\n\nexport type ProvideContextOptions<T extends UnknownContext> = {\n context: T;\n initialValue?: T['__context__'];\n hydrate?: AttributeTypeConstant;\n};\n\n/**\n * A decorator to provide a context to the target element.\n * @param options {@link ProvideContextOptions}\n * @returns\n */\nexport function provideContext<T extends UnknownContext>(options: ProvideContextOptions<T>) {\n return function (\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardProvideContext(options)(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyProvideContext(options)(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
6
5
  ],
7
- "mappings": "sMAqBO,WAAS,FAAwC,ZAAC,OAAmC,CAC1F,eAAgB,CACd,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAuB,CAAO,EACnC,EACA,CACF,EAEF,OAAO,EAAqB,CAAO,EACjC,EACA,CACF",
8
- "debugId": "DAFE7A9740BFBCF864756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "A93A96A0D175B10664756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,3 +1,3 @@
1
1
  import type { RadiantElement } from '../../../core/radiant-element';
2
2
  import type { UnknownContext } from '../../types';
3
- export declare function consumeContext(contextToProvide: UnknownContext): <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => void;
3
+ export declare function consumeContext(consumedContext: UnknownContext): <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => void;
@@ -1,4 +1,3 @@
1
- import{p as i}from"../../events.js";function m(t){return(a,e)=>{const o=String(e.name);e.addInitializer(function(){this.dispatchEvent(new i(t,(n)=>{this[o]=n,this.connectedContextCallback(t),this.dispatchEvent(new CustomEvent("context-mounted",{detail:n}))}))})}}export{m as consumeContext};
2
- export{m as o};
1
+ import{x as a}from"../../../chunk-fs4j94bk.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as consumeContext};
3
2
 
4
- //# debugId=5EBC8BEA292801F164756E2164756E21
3
+ //# debugId=398BFFE041CCB3A464756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/standard/consume-context.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { ContextEventsTypes, ContextRequestEvent } from '../../events';\nimport type { UnknownContext } from '../../types';\n\nexport function consumeContext(contextToProvide: UnknownContext) {\n return <T extends RadiantElement, V>(_: undefined, context: ClassFieldDecoratorContext<T, V>) => {\n const contextName = String(context.name);\n context.addInitializer(function (this: T) {\n this.dispatchEvent(\n new ContextRequestEvent(contextToProvide, (context) => {\n (this as any)[contextName] = context;\n this.connectedContextCallback(contextToProvide);\n this.dispatchEvent(new CustomEvent(ContextEventsTypes.MOUNTED, { detail: context }));\n }),\n );\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "oCAIO,SAAS,CAAc,CAAC,EAAkC,CAC/D,MAAO,CAA8B,EAAc,IAA8C,CAC/F,MAAM,EAAc,OAAO,EAAQ,IAAI,EACvC,EAAQ,uBAAwB,EAAU,CACxC,KAAK,cACH,IAAI,EAAoB,EAAkB,CAAC,IAAY,CACrD,AAAC,KAAa,GAAe,EAC7B,KAAK,yBAAyB,CAAgB,EAC9C,KAAK,cAAc,IAAI,8BAAwC,CAAE,OAAQ,CAAQ,CAAC,CAAC,EACpF,CACH,EACD",
8
- "debugId": "5EBC8BEA292801F164756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "398BFFE041CCB3A464756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,8 @@
1
+ import type { RadiantElement } from '../../../core/radiant-element';
2
+ import type { Context, ContextType } from '../../types';
3
+ export type ContextSelectorFieldOptions<T extends Context<unknown, unknown>, Selected = ContextType<T>> = {
4
+ context: T;
5
+ select?: (context: ContextType<T>) => Selected;
6
+ subscribe?: boolean;
7
+ };
8
+ export declare function contextSelectorField<T extends Context<unknown, unknown>, Selected = ContextType<T>>(options: ContextSelectorFieldOptions<T, Selected>): <Host extends RadiantElement>(_: undefined, fieldContext: ClassFieldDecoratorContext<Host, Selected>) => (this: Host, initialValue: Selected) => Selected;
@@ -0,0 +1,3 @@
1
+ import{D as a}from"../../../chunk-g2z3mm6b.js";import"../../../chunk-5bkat72n.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as contextSelectorField};
2
+
3
+ //# debugId=28981E6A4741D49664756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "28981E6A4741D49664756E2164756E21",
8
+ "names": []
9
+ }
@@ -1,4 +1,5 @@
1
1
  import type { Method } from '../../../types';
2
- import type { Context } from '../../types';
3
- import type { SubscribeToContextOptions } from '../context-selector';
4
- export declare function contextSelector<T extends Context<unknown, unknown>>({ context, select, subscribe, }: SubscribeToContextOptions<T>): <T_1 extends Method>(originalMethod: T_1, targetContext: ClassMethodDecoratorContext<T_1, T_1>) => void;
2
+ import type { RadiantElement } from '../../../core/radiant-element';
3
+ import type { Context, ContextType } from '../../types';
4
+ import type { OnContextUpdateOptions } from '../on-context-update';
5
+ export declare function contextSelector<T extends Context<unknown, unknown>, Selected = ContextType<T>>({ context, select, subscribe, requestUpdate, }: OnContextUpdateOptions<T, Selected>): <Host extends RadiantElement, TMethod extends Method>(originalMethod: TMethod, targetContext: ClassMethodDecoratorContext<Host, TMethod>) => void;
@@ -1,4 +1,3 @@
1
- import{r as t}from"../../events.js";function p({context:e,select:o,subscribe:n=!0}){return function(i,r){r.addInitializer(function(){queueMicrotask(()=>{this.dispatchEvent(new t(e,i.bind(this),o,n))})})}}export{p as contextSelector};
2
- export{p as i};
1
+ import{E as a}from"../../../chunk-x2k0ngpz.js";import"../../../chunk-5bkat72n.js";import"../../../chunk-p8k4g99a.js";import"../../../chunk-ek664x1c.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-eyw14d6y.js";import"../../../chunk-t8xtvgyg.js";import"../../../chunk-vgtggzb6.js";export{a as contextSelector};
3
2
 
4
- //# debugId=63D2F9333044952264756E2164756E21
3
+ //# debugId=D78E4F19FE74240B64756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/standard/context-selector.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { Method } from '../../../types';\nimport { ContextSubscriptionRequestEvent } from '../../events';\nimport type { Context } from '../../types';\nimport type { SubscribeToContextOptions } from '../context-selector';\n\nexport function contextSelector<T extends Context<unknown, unknown>>({\n context,\n select,\n subscribe = true,\n}: SubscribeToContextOptions<T>) {\n return function <T extends Method>(originalMethod: T, targetContext: ClassMethodDecoratorContext<T, T>): void {\n targetContext.addInitializer(function (this: any) {\n queueMicrotask(() => {\n this.dispatchEvent(new ContextSubscriptionRequestEvent(context, originalMethod.bind(this), select, subscribe));\n });\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "oCAKO,SAAS,CAAoD,EAClE,UACA,SACA,YAAY,IACmB,CAC/B,eAAkC,CAAC,EAAmB,EAAwD,CAC5G,EAAc,uBAAwB,EAAY,CAChD,eAAe,IAAM,CACnB,KAAK,cAAc,IAAI,EAAgC,EAAS,EAAe,KAAK,IAAI,EAAG,EAAQ,CAAS,CAAC,EAC9G,EACF",
8
- "debugId": "63D2F9333044952264756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "D78E4F19FE74240B64756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,4 @@
1
1
  import type { RadiantElement } from '../../../core/radiant-element';
2
2
  import type { UnknownContext } from '../../types';
3
3
  import type { ProvideContextOptions } from '../provide-context';
4
- export declare function provideContext<T extends UnknownContext>({ context, initialValue, hydrate }: ProvideContextOptions<T>): <C extends RadiantElement, V>(_: undefined, targetContext: ClassFieldDecoratorContext<C, V>) => void;
4
+ export declare function provideContext<T extends UnknownContext>({ context, initialValue, hydrate, serialize, }: ProvideContextOptions<T>): <C extends RadiantElement, V>(_: undefined, targetContext: ClassFieldDecoratorContext<C, V>) => void;
@@ -1,4 +1,3 @@
1
- import{n}from"../../context-provider.js";import"../../events.js";import"../../../utils/attribute-utils.js";function m({context:t,initialValue:o,hydrate:i}){return(d,e)=>{const r=String(e.name);e.addInitializer(function(){this[r]=new n(this,{context:t,initialValue:o,hydrate:i}),this.connectedContextCallback(t)})}}export{m as provideContext};
2
- export{m as l};
1
+ import{y as a}from"../../../chunk-5qeaq3tj.js";import"../../../chunk-21a7jask.js";import"../../../chunk-kmebacvv.js";import"../../../chunk-c0qyz98c.js";import"../../../chunk-hpzgnxgq.js";import"../../../chunk-nssj2x13.js";import"../../../chunk-vgtggzb6.js";export{a as provideContext};
3
2
 
4
- //# debugId=C46D919C46727B7364756E2164756E21
3
+ //# debugId=5442E2BDB3C0B0F764756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/decorators/standard/provide-context.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../../../core/radiant-element';\nimport { ContextProvider } from '../../context-provider';\nimport type { UnknownContext } from '../../types';\nimport type { ProvideContextOptions } from '../provide-context';\n\nexport function provideContext<T extends UnknownContext>({ context, initialValue, hydrate }: ProvideContextOptions<T>) {\n return <C extends RadiantElement, V>(_: undefined, targetContext: ClassFieldDecoratorContext<C, V>) => {\n const contextName = String(targetContext.name);\n targetContext.addInitializer(function (this: C) {\n (this as any)[contextName] = new ContextProvider<T>(this, { context, initialValue, hydrate });\n this.connectedContextCallback(context);\n });\n };\n}\n"
6
5
  ],
7
- "mappings": "6GAKO,DAAS,SAAwC,EAAG,UAAS,eAAc,WAAqC,CACrH,MAAO,CAA8B,EAAc,IAAoD,CACrG,MAAM,EAAc,OAAO,EAAc,IAAI,EAC7C,EAAc,uBAAwB,EAAU,CAC9C,AAAC,KAAa,GAAe,IAAI,EAAmB,KAAM,CAAE,UAAS,eAAc,SAAQ,CAAC,EAC5F,KAAK,yBAAyB,CAAO,EACtC",
8
- "debugId": "C46D919C46727B7364756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "5442E2BDB3C0B0F764756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,4 +1,3 @@
1
- var z;((j)=>{j.SUBSCRIPTION_REQUEST="context-subscription-request";j.CONTEXT_REQUEST="context-request";j.ON_MOUNT="context-on-mount";j.MOUNTED="context-mounted"})(z||={});class B extends Event{k;q;w;constructor(k,q,w){super("context-request",{bubbles:!0,composed:!0});this.context=k;this.callback=q;this.subscribe=w}}class D extends CustomEvent{constructor(k){super("context-on-mount",{detail:{context:k},bubbles:!0,composed:!0})}}class F extends Event{k;q;w;G;constructor(k,q,w,G){super("context-subscription-request",{bubbles:!0,composed:!0});this.context=k;this.callback=q;this.select=w;this.subscribe=G}}export{F as ContextSubscriptionRequestEvent,B as ContextRequestEvent,D as ContextOnMountEvent,z as ContextEventsTypes};
2
- export{B as p,D as q,F as r};
1
+ import{S as a,T as b,U as c,V as d}from"../chunk-kmebacvv.js";import"../chunk-vgtggzb6.js";export{d as ContextSubscriptionRequestEvent,b as ContextRequestEvent,c as ContextOnMountEvent,a as ContextEventsTypes};
3
2
 
4
- //# debugId=CD57E830D3B70B5964756E2164756E21
3
+ //# debugId=762415F16C70E00764756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/context/events.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { Context, ContextCallback, ContextType, UnknownContext } from './types';\n\n/**\n * List of events which can be emitted by a context provider or requester.\n */\nexport enum ContextEventsTypes {\n SUBSCRIPTION_REQUEST = 'context-subscription-request',\n CONTEXT_REQUEST = 'context-request',\n ON_MOUNT = 'context-on-mount',\n MOUNTED = 'context-mounted',\n}\n\n/**\n * An event fired by a context requester to signal it desires a named context.\n *\n * A provider should inspect the `context` property of the event to determine if it has a value that can\n * satisfy the request, calling the `callback` with the requested value if so.\n *\n * If the requested context event contains a truthy `subscribe` value, then a provider can call the callback\n * multiple times if the value is changed, if this is the case the provider should pass an `unsubscribe`\n * function to the callback which requesters can invoke to indicate they no longer wish to receive these updates.\n */\nexport class ContextRequestEvent<T extends UnknownContext> extends Event {\n public constructor(\n public readonly context: T,\n public readonly callback: ContextCallback<ContextType<T>>,\n public readonly subscribe?: boolean,\n ) {\n super(ContextEventsTypes.CONTEXT_REQUEST, { bubbles: true, composed: true });\n }\n}\n\n/**\n * A type which represents a subscription to a context value.\n */\nexport type ContextSubscription<T extends UnknownContext> = {\n select?: (context: ContextType<T>) => unknown;\n callback: (value: unknown) => void;\n};\n\n/**\n * An event fired by a context provider to signal that a context value has been mounted and is available for consumption.\n */\nexport class ContextOnMountEvent extends CustomEvent<{ context: UnknownContext }> {\n public constructor(context: UnknownContext) {\n super(ContextEventsTypes.ON_MOUNT, {\n detail: { context },\n bubbles: true,\n composed: true,\n });\n }\n}\n\n/**\n * An event fired by a context requester to signal it desires a named context.\n *\n * A provider should inspect the `context` property of the event to determine if it has a value that can\n * satisfy the request, calling the `callback` with the requested value if so.\n *\n * If the requested context event contains a truthy `subscribe` value, then a provider can call the callback\n * multiple times if the value is changed, if this is the case the provider should pass an `unsubscribe`\n * function to the callback which requesters can invoke to indicate they no longer wish to receive these updates.\n *\n * It accepts a `selector` property which can be used to request a specific property of the context value.\n */\nexport class ContextSubscriptionRequestEvent<T extends UnknownContext> extends Event {\n public constructor(\n public readonly context: T,\n public readonly callback: (value: ContextType<T> | { [K in keyof ContextType<T>]: ContextType<T>[K] }) => void,\n public readonly select?: (context: ContextType<T>) => unknown,\n public readonly subscribe?: boolean,\n ) {\n super(ContextEventsTypes.SUBSCRIPTION_REQUEST, {\n bubbles: true,\n composed: true,\n });\n }\n}\n\ndeclare global {\n interface HTMLElementEventMap {\n /**\n * A 'context-request-subscription' event can be emitted by any element which desires\n * a context value to be injected by an external provider.\n */\n [ContextEventsTypes.SUBSCRIPTION_REQUEST]: ContextSubscriptionRequestEvent<UnknownContext>;\n /**\n * A context-request-provider event can be emitted by a context requester to signal\n * that it desires a context value to be provided by a context provider.\n */\n [ContextEventsTypes.CONTEXT_REQUEST]: ContextRequestEvent<Context<unknown, unknown>>;\n /**\n * A 'context-mount' event can be emitted by a context provider to signal\n * that a context value has been mounted and is available for consumption.\n */\n [ContextEventsTypes.ON_MOUNT]: ContextOnMountEvent;\n }\n}\n"
6
5
  ],
7
- "mappings": "AAKO,IAAK,EAAL,EAAK,IAAL,CACL,uBAAuB,+BACvB,kBAAkB,kBAClB,WAAW,mBACX,UAAU,oBAJA,QAiBL,MAAM,UAAsD,KAAM,CAErD,EACA,EACA,EAHX,WAAW,CACA,EACA,EACA,EAChB,CACA,MAAM,kBAAoC,CAAE,QAAS,GAAM,SAAU,EAAK,CAAC,EAJ3D,eACA,gBACA,iBAIpB,CAaO,MAAM,UAA4B,WAAyC,CACzE,WAAW,CAAC,EAAyB,CAC1C,MAAM,mBAA6B,CACjC,OAAQ,CAAE,SAAQ,EAClB,QAAS,GACT,SAAU,EACZ,CAAC,EAEL,CAcO,MAAM,UAAkE,KAAM,CAEjE,EACA,EACA,EACA,EAJX,WAAW,CACA,EACA,EACA,EACA,EAChB,CACA,MAAM,+BAAyC,CAC7C,QAAS,GACT,SAAU,EACZ,CAAC,EARe,eACA,gBACA,cACA,iBAOpB",
8
- "debugId": "CD57E830D3B70B5964756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "762415F16C70E00764756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Creates the raw `<script type="application/json">` tag used to hydrate a
3
+ * serialized context provider.
4
+ */
5
+ export declare function createContextHydrationScriptTag(options: {
6
+ hydrationKey?: string;
7
+ serializedValue: string;
8
+ }): string;
9
+ /**
10
+ * Escapes serialized JSON so it remains safe when embedded inside an HTML
11
+ * script tag.
12
+ */
13
+ export declare function escapeContextHydrationJson(value: string): string;
@@ -0,0 +1,3 @@
1
+ import{W as a,X as b}from"../chunk-c0qyz98c.js";import"../chunk-hpzgnxgq.js";import"../chunk-nssj2x13.js";import"../chunk-vgtggzb6.js";export{b as escapeContextHydrationJson,a as createContextHydrationScriptTag};
2
+
3
+ //# debugId=204037B251BD0C8664756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "204037B251BD0C8664756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,3 @@
1
+ export declare const CUSTOM_ELEMENT_TAG_NAME: unique symbol;
2
+ export declare function setCustomElementTagName(target: CustomElementConstructor, tagName: string): void;
3
+ export declare function getCustomElementTagName(target: CustomElementConstructor): string | undefined;
@@ -0,0 +1,3 @@
1
+ import{Va as a,Wa as b,Xa as c}from"../chunk-hztr86b4.js";import"../chunk-vgtggzb6.js";export{b as setCustomElementTagName,c as getCustomElementTagName,a as CUSTOM_ELEMENT_TAG_NAME};
2
+
3
+ //# debugId=A10222618D77E92E64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "A10222618D77E92E64756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,24 @@
1
+ /** Attribute marker used to identify hydration payloads inside a host. */
2
+ export declare const HYDRATION_ATTRIBUTE = "data-hydration";
3
+ /** Discriminator that scopes a hydration payload to a specific feature. */
4
+ export declare const HYDRATION_TYPE_ATTRIBUTE = "data-hydration-type";
5
+ /** Optional key that scopes a hydration payload to a specific decorated field. */
6
+ export declare const HYDRATION_KEY_ATTRIBUTE = "data-hydration-key";
7
+ export type HydrationPayloadType = 'signal' | 'context';
8
+ /** Creates a `<script type="application/json">` tag for a hydration payload. */
9
+ export declare function createHydrationScriptTag(options: {
10
+ type: HydrationPayloadType;
11
+ hydrationKey?: string;
12
+ serializedValue: string;
13
+ }): string;
14
+ /** Escapes serialized JSON so it remains safe inside an HTML script tag. */
15
+ export declare function escapeHydrationJson(value: string): string;
16
+ /** Parses JSON from a hydration script element, returning the fallback on failure. */
17
+ export declare function parseHydrationPayload<T>(element: Element, fallback: T): T;
18
+ /**
19
+ * Finds a hydration script element inside a host by type and optional key.
20
+ *
21
+ * When a key is provided, looks for an exact `data-hydration-key` match.
22
+ * Otherwise, returns the first unkeyed script matching the type.
23
+ */
24
+ export declare function findHydrationScript(host: Element, type: HydrationPayloadType, hydrationKey?: string): Element | null;
@@ -0,0 +1,3 @@
1
+ import{pb as a,qb as b,rb as c,sb as d,tb as e,ub as f,vb as g}from"../chunk-hpzgnxgq.js";import"../chunk-nssj2x13.js";import"../chunk-vgtggzb6.js";export{f as parseHydrationPayload,g as findHydrationScript,e as escapeHydrationJson,d as createHydrationScriptTag,b as HYDRATION_TYPE_ATTRIBUTE,c as HYDRATION_KEY_ATTRIBUTE,a as HYDRATION_ATTRIBUTE};
2
+
3
+ //# debugId=35B99D921CD92DC764756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "35B99D921CD92DC764756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,54 @@
1
+ import type { JsxRenderable } from '@ecopages/jsx';
2
+ import type { RenderToStringOptions } from '@ecopages/jsx/server';
3
+ /**
4
+ * Optional SSR hooks exposed by `RadiantComponent` instances to the shared
5
+ * server runtime.
6
+ *
7
+ * The bridge lets the runtime detect whether a component is still using the
8
+ * inherited host SSR implementation or has taken ownership of host rendering
9
+ * through explicit overrides.
10
+ */
11
+ export type RadiantComponentRenderBridge = {
12
+ renderHost?: () => JsxRenderable;
13
+ renderHostToString?: (options?: RenderToStringOptions) => string;
14
+ };
15
+ /**
16
+ * Runtime shape required by the shared Radiant SSR helpers.
17
+ *
18
+ * This is intentionally narrower than `RadiantComponent` itself so the server
19
+ * runtime can stay decoupled from the full client base-class implementation.
20
+ */
21
+ export type RadiantComponentSsrCapable = HTMLElement & {
22
+ resolveSsrRenderBridge?: () => RadiantComponentRenderBridge;
23
+ getHostSsrAttributes?: () => Record<string, string>;
24
+ renderToString(options?: RenderToStringOptions): string;
25
+ renderHost?(): JsxRenderable;
26
+ renderHostToString(options?: RenderToStringOptions): string;
27
+ };
28
+ /**
29
+ * Shared SSR runtime contract registered on `globalThis`.
30
+ *
31
+ * Server entrypoints install one implementation that both direct component SSR
32
+ * and nested JSX custom-element SSR can reuse without importing client-only
33
+ * internals into every call site.
34
+ */
35
+ export type RadiantComponentSsrRuntime = {
36
+ getHostAttributes(component: RadiantComponentSsrCapable): Record<string, string>;
37
+ renderHost(component: RadiantComponentSsrCapable): JsxRenderable;
38
+ renderHostToString(component: RadiantComponentSsrCapable, options?: RenderToStringOptions): string;
39
+ resolveRenderBridge(component: RadiantComponentSsrCapable): RadiantComponentRenderBridge | undefined;
40
+ renderView(component: RadiantComponentSsrCapable, options?: RenderToStringOptions): string;
41
+ };
42
+ /**
43
+ * Reads the currently registered Radiant SSR runtime from `globalThis`.
44
+ *
45
+ * Returns `undefined` when no server entrypoint has installed the runtime yet.
46
+ */
47
+ export declare function getRadiantComponentSsrRuntime(): RadiantComponentSsrRuntime | undefined;
48
+ /**
49
+ * Registers the shared Radiant SSR runtime on `globalThis`.
50
+ *
51
+ * The latest registration wins, which keeps server adapters free to install
52
+ * the runtime eagerly from their own explicit entrypoint.
53
+ */
54
+ export declare function registerRadiantComponentSsrRuntime(runtime: RadiantComponentSsrRuntime): void;
@@ -0,0 +1,3 @@
1
+ import{Ta as a,Ua as b}from"../chunk-e0r6ca2g.js";import"../chunk-vgtggzb6.js";export{b as registerRadiantComponentSsrRuntime,a as getRadiantComponentSsrRuntime};
2
+
3
+ //# debugId=0DE7ED0BDBAD0C8D64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "0DE7ED0BDBAD0C8D64756E2164756E21",
8
+ "names": []
9
+ }