@ecopages/radiant 0.2.0 → 0.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (413) hide show
  1. package/README.md +289 -34
  2. package/dist/chunk-0y78f8hj.js +4 -0
  3. package/dist/chunk-0y78f8hj.js.map +10 -0
  4. package/dist/chunk-0zq7e1ne.js +4 -0
  5. package/dist/chunk-0zq7e1ne.js.map +10 -0
  6. package/dist/chunk-13ydx769.js +4 -0
  7. package/dist/chunk-13ydx769.js.map +10 -0
  8. package/dist/chunk-147yvtsn.js +4 -0
  9. package/dist/chunk-147yvtsn.js.map +10 -0
  10. package/dist/chunk-17earqbr.js +4 -0
  11. package/dist/chunk-17earqbr.js.map +10 -0
  12. package/dist/chunk-1w1dm68j.js +4 -0
  13. package/dist/chunk-1w1dm68j.js.map +10 -0
  14. package/dist/chunk-2tgrfv09.js +4 -0
  15. package/dist/chunk-2tgrfv09.js.map +10 -0
  16. package/dist/chunk-3b033cgq.js +4 -0
  17. package/dist/chunk-3b033cgq.js.map +10 -0
  18. package/dist/chunk-42tyhfvh.js +4 -0
  19. package/dist/chunk-42tyhfvh.js.map +10 -0
  20. package/dist/chunk-4cc2syf5.js +4 -0
  21. package/dist/chunk-4cc2syf5.js.map +10 -0
  22. package/dist/chunk-4fqkmpra.js +4 -0
  23. package/dist/chunk-4fqkmpra.js.map +10 -0
  24. package/dist/chunk-4srpf0y5.js +4 -0
  25. package/dist/chunk-4srpf0y5.js.map +10 -0
  26. package/dist/chunk-57w3vmme.js +4 -0
  27. package/dist/chunk-57w3vmme.js.map +10 -0
  28. package/dist/chunk-5a2xez36.js +4 -0
  29. package/dist/chunk-5a2xez36.js.map +10 -0
  30. package/dist/chunk-5bym7y1d.js +4 -0
  31. package/dist/chunk-5bym7y1d.js.map +10 -0
  32. package/dist/chunk-5td6v9k3.js +4 -0
  33. package/dist/chunk-5td6v9k3.js.map +10 -0
  34. package/dist/chunk-60015zxq.js +4 -0
  35. package/dist/chunk-60015zxq.js.map +10 -0
  36. package/dist/chunk-60q4y3k5.js +4 -0
  37. package/dist/chunk-60q4y3k5.js.map +10 -0
  38. package/dist/chunk-6kdxrppw.js +4 -0
  39. package/dist/chunk-6kdxrppw.js.map +10 -0
  40. package/dist/chunk-6z34stya.js +4 -0
  41. package/dist/chunk-6z34stya.js.map +10 -0
  42. package/dist/chunk-73x7jpdd.js +4 -0
  43. package/dist/chunk-73x7jpdd.js.map +10 -0
  44. package/dist/chunk-84fc8cz9.js +4 -0
  45. package/dist/chunk-84fc8cz9.js.map +10 -0
  46. package/dist/chunk-8dexhy6c.js +4 -0
  47. package/dist/chunk-8dexhy6c.js.map +10 -0
  48. package/dist/chunk-8n2dhx28.js +4 -0
  49. package/dist/chunk-8n2dhx28.js.map +10 -0
  50. package/dist/chunk-8tvt04cm.js +4 -0
  51. package/dist/chunk-8tvt04cm.js.map +10 -0
  52. package/dist/chunk-8vak8w5w.js +4 -0
  53. package/dist/chunk-8vak8w5w.js.map +10 -0
  54. package/dist/chunk-8xy18qmz.js +4 -0
  55. package/dist/chunk-8xy18qmz.js.map +9 -0
  56. package/dist/chunk-9554n9t4.js +4 -0
  57. package/dist/chunk-9554n9t4.js.map +10 -0
  58. package/dist/chunk-9ascmjk3.js +4 -0
  59. package/dist/chunk-9ascmjk3.js.map +10 -0
  60. package/dist/chunk-9gjmqxp2.js +4 -0
  61. package/dist/chunk-9gjmqxp2.js.map +10 -0
  62. package/dist/chunk-a7hzs37s.js +4 -0
  63. package/dist/chunk-a7hzs37s.js.map +10 -0
  64. package/dist/chunk-aajhkdmn.js +4 -0
  65. package/dist/chunk-aajhkdmn.js.map +10 -0
  66. package/dist/chunk-agjb2a3r.js +4 -0
  67. package/dist/chunk-agjb2a3r.js.map +10 -0
  68. package/dist/chunk-ak97hp4w.js +4 -0
  69. package/dist/chunk-ak97hp4w.js.map +10 -0
  70. package/dist/chunk-bmhn4nbp.js +4 -0
  71. package/dist/chunk-bmhn4nbp.js.map +10 -0
  72. package/dist/chunk-c8vqg7r1.js +4 -0
  73. package/dist/chunk-c8vqg7r1.js.map +10 -0
  74. package/dist/chunk-cbvd18v1.js +4 -0
  75. package/dist/chunk-cbvd18v1.js.map +10 -0
  76. package/dist/chunk-chyn72n9.js +4 -0
  77. package/dist/chunk-chyn72n9.js.map +10 -0
  78. package/dist/chunk-cvz9mrxa.js +4 -0
  79. package/dist/chunk-cvz9mrxa.js.map +10 -0
  80. package/dist/chunk-d0n7njdy.js +4 -0
  81. package/dist/chunk-d0n7njdy.js.map +10 -0
  82. package/dist/chunk-d4v5qpxa.js +4 -0
  83. package/dist/chunk-d4v5qpxa.js.map +10 -0
  84. package/dist/chunk-d7hh3ze6.js +4 -0
  85. package/dist/chunk-d7hh3ze6.js.map +10 -0
  86. package/dist/chunk-d98q3myg.js +4 -0
  87. package/dist/chunk-d98q3myg.js.map +10 -0
  88. package/dist/chunk-dscj0sk9.js +4 -0
  89. package/dist/chunk-dscj0sk9.js.map +10 -0
  90. package/dist/chunk-dx1wqc00.js +4 -0
  91. package/dist/chunk-dx1wqc00.js.map +10 -0
  92. package/dist/chunk-g0gz7ypq.js +4 -0
  93. package/dist/chunk-g0gz7ypq.js.map +10 -0
  94. package/dist/chunk-hkmm3dj9.js +4 -0
  95. package/dist/chunk-hkmm3dj9.js.map +10 -0
  96. package/dist/chunk-hn4j8rt5.js +4 -0
  97. package/dist/chunk-hn4j8rt5.js.map +10 -0
  98. package/dist/chunk-jce9gqqw.js +4 -0
  99. package/dist/chunk-jce9gqqw.js.map +10 -0
  100. package/dist/chunk-jg20mzg8.js +4 -0
  101. package/dist/chunk-jg20mzg8.js.map +10 -0
  102. package/dist/chunk-jkb2y7c8.js +4 -0
  103. package/dist/chunk-jkb2y7c8.js.map +10 -0
  104. package/dist/chunk-k5hr781q.js +4 -0
  105. package/dist/chunk-k5hr781q.js.map +10 -0
  106. package/dist/chunk-ksv01cey.js +4 -0
  107. package/dist/chunk-ksv01cey.js.map +10 -0
  108. package/dist/chunk-mpjnqmbq.js +4 -0
  109. package/dist/chunk-mpjnqmbq.js.map +10 -0
  110. package/dist/chunk-mqxmfvyp.js +4 -0
  111. package/dist/chunk-mqxmfvyp.js.map +10 -0
  112. package/dist/chunk-ms6a9zdt.js +4 -0
  113. package/dist/chunk-ms6a9zdt.js.map +10 -0
  114. package/dist/chunk-nerd6fmg.js +4 -0
  115. package/dist/chunk-nerd6fmg.js.map +10 -0
  116. package/dist/chunk-nw171z6m.js +4 -0
  117. package/dist/chunk-nw171z6m.js.map +10 -0
  118. package/dist/chunk-p6pxdvkk.js +4 -0
  119. package/dist/chunk-p6pxdvkk.js.map +10 -0
  120. package/dist/chunk-paehjz94.js +4 -0
  121. package/dist/chunk-paehjz94.js.map +10 -0
  122. package/dist/chunk-par0t822.js +4 -0
  123. package/dist/chunk-par0t822.js.map +10 -0
  124. package/dist/chunk-qaagk55a.js +4 -0
  125. package/dist/chunk-qaagk55a.js.map +10 -0
  126. package/dist/chunk-qbnedp0y.js +4 -0
  127. package/dist/chunk-qbnedp0y.js.map +10 -0
  128. package/dist/chunk-qd28hvdx.js +4 -0
  129. package/dist/chunk-qd28hvdx.js.map +10 -0
  130. package/dist/chunk-qdj6r8jn.js +4 -0
  131. package/dist/chunk-qdj6r8jn.js.map +10 -0
  132. package/dist/chunk-qe6sjr27.js +4 -0
  133. package/dist/chunk-qe6sjr27.js.map +10 -0
  134. package/dist/chunk-r1cvaz1t.js +4 -0
  135. package/dist/chunk-r1cvaz1t.js.map +10 -0
  136. package/dist/chunk-r75y7ydb.js +4 -0
  137. package/dist/chunk-r75y7ydb.js.map +10 -0
  138. package/dist/chunk-s4qgct1z.js +4 -0
  139. package/dist/chunk-s4qgct1z.js.map +10 -0
  140. package/dist/chunk-scfk041e.js +4 -0
  141. package/dist/chunk-scfk041e.js.map +10 -0
  142. package/dist/chunk-t6x9e177.js +4 -0
  143. package/dist/chunk-t6x9e177.js.map +10 -0
  144. package/dist/chunk-t7a1bbxq.js +4 -0
  145. package/dist/chunk-t7a1bbxq.js.map +10 -0
  146. package/dist/chunk-tyysm4gk.js +4 -0
  147. package/dist/chunk-tyysm4gk.js.map +10 -0
  148. package/dist/chunk-vpfm9yw8.js +4 -0
  149. package/dist/chunk-vpfm9yw8.js.map +10 -0
  150. package/dist/chunk-w50v38rv.js +4 -0
  151. package/dist/chunk-w50v38rv.js.map +10 -0
  152. package/dist/chunk-x0522ksh.js +4 -0
  153. package/dist/chunk-x0522ksh.js.map +10 -0
  154. package/dist/chunk-xd1xn3vy.js +4 -0
  155. package/dist/chunk-xd1xn3vy.js.map +10 -0
  156. package/dist/chunk-zb7wh7w4.js +4 -0
  157. package/dist/chunk-zb7wh7w4.js.map +10 -0
  158. package/dist/chunk-zj9ez73m.js +4 -0
  159. package/dist/chunk-zj9ez73m.js.map +10 -0
  160. package/dist/context/context-consumer-bootstrap.d.ts +41 -0
  161. package/dist/context/context-consumer-bootstrap.js +3 -0
  162. package/dist/context/context-consumer-bootstrap.js.map +9 -0
  163. package/dist/context/context-consumer-runtime.d.ts +34 -0
  164. package/dist/context/context-consumer-runtime.js +3 -0
  165. package/dist/context/context-consumer-runtime.js.map +9 -0
  166. package/dist/context/context-provider.d.ts +50 -2
  167. package/dist/context/context-provider.js +2 -3
  168. package/dist/context/context-provider.js.map +3 -4
  169. package/dist/context/context-ssr-bridge.d.ts +16 -0
  170. package/dist/context/context-ssr-bridge.js +3 -0
  171. package/dist/context/context-ssr-bridge.js.map +9 -0
  172. package/dist/context/create-context.js +2 -3
  173. package/dist/context/create-context.js.map +3 -4
  174. package/dist/context/decorators/consume-context.d.ts +8 -4
  175. package/dist/context/decorators/consume-context.js +2 -3
  176. package/dist/context/decorators/consume-context.js.map +3 -4
  177. package/dist/context/decorators/context-selection-delivery.d.ts +1 -0
  178. package/dist/context/decorators/context-selection-delivery.js +3 -0
  179. package/dist/context/decorators/context-selection-delivery.js.map +9 -0
  180. package/dist/context/decorators/context-selector.d.ts +31 -8
  181. package/dist/context/decorators/context-selector.js +2 -3
  182. package/dist/context/decorators/context-selector.js.map +3 -4
  183. package/dist/context/decorators/legacy/consume-context.d.ts +1 -1
  184. package/dist/context/decorators/legacy/consume-context.js +2 -3
  185. package/dist/context/decorators/legacy/consume-context.js.map +3 -4
  186. package/dist/context/decorators/legacy/context-selector-field.d.ts +8 -0
  187. package/dist/context/decorators/legacy/context-selector-field.js +3 -0
  188. package/dist/context/decorators/legacy/context-selector-field.js.map +9 -0
  189. package/dist/context/decorators/legacy/context-selector.d.ts +3 -3
  190. package/dist/context/decorators/legacy/context-selector.js +2 -3
  191. package/dist/context/decorators/legacy/context-selector.js.map +3 -4
  192. package/dist/context/decorators/legacy/provide-context.d.ts +1 -1
  193. package/dist/context/decorators/legacy/provide-context.js +2 -3
  194. package/dist/context/decorators/legacy/provide-context.js.map +3 -4
  195. package/dist/context/decorators/on-context-update.d.ts +31 -0
  196. package/dist/context/decorators/on-context-update.js +3 -0
  197. package/dist/context/decorators/on-context-update.js.map +9 -0
  198. package/dist/context/decorators/provide-context.d.ts +12 -0
  199. package/dist/context/decorators/provide-context.js +2 -3
  200. package/dist/context/decorators/provide-context.js.map +3 -4
  201. package/dist/context/decorators/standard/consume-context.d.ts +1 -1
  202. package/dist/context/decorators/standard/consume-context.js +2 -3
  203. package/dist/context/decorators/standard/consume-context.js.map +3 -4
  204. package/dist/context/decorators/standard/context-selector-field.d.ts +8 -0
  205. package/dist/context/decorators/standard/context-selector-field.js +3 -0
  206. package/dist/context/decorators/standard/context-selector-field.js.map +9 -0
  207. package/dist/context/decorators/standard/context-selector.d.ts +4 -3
  208. package/dist/context/decorators/standard/context-selector.js +2 -3
  209. package/dist/context/decorators/standard/context-selector.js.map +3 -4
  210. package/dist/context/decorators/standard/provide-context.d.ts +1 -1
  211. package/dist/context/decorators/standard/provide-context.js +2 -3
  212. package/dist/context/decorators/standard/provide-context.js.map +3 -4
  213. package/dist/context/events.js +2 -3
  214. package/dist/context/events.js.map +3 -4
  215. package/dist/context/hydration-script.d.ts +17 -0
  216. package/dist/context/hydration-script.js +3 -0
  217. package/dist/context/hydration-script.js.map +9 -0
  218. package/dist/core/custom-element-metadata.d.ts +3 -0
  219. package/dist/core/custom-element-metadata.js +3 -0
  220. package/dist/core/custom-element-metadata.js.map +9 -0
  221. package/dist/core/hydration-codec.d.ts +24 -0
  222. package/dist/core/hydration-codec.js +3 -0
  223. package/dist/core/hydration-codec.js.map +9 -0
  224. package/dist/core/radiant-component-ssr.d.ts +29 -0
  225. package/dist/core/radiant-component-ssr.js +3 -0
  226. package/dist/core/radiant-component-ssr.js.map +9 -0
  227. package/dist/core/radiant-component.d.ts +106 -0
  228. package/dist/core/radiant-component.js +3 -0
  229. package/dist/core/radiant-component.js.map +9 -0
  230. package/dist/core/radiant-element.d.ts +217 -9
  231. package/dist/core/radiant-element.js +2 -3
  232. package/dist/core/radiant-element.js.map +3 -4
  233. package/dist/core/reactive-jsx-value.d.ts +10 -0
  234. package/dist/core/reactive-jsx-value.js +3 -0
  235. package/dist/core/reactive-jsx-value.js.map +9 -0
  236. package/dist/core/reactive-prop-metadata.d.ts +7 -0
  237. package/dist/core/reactive-prop-metadata.js +3 -0
  238. package/dist/core/reactive-prop-metadata.js.map +9 -0
  239. package/dist/core/slot-projection.d.ts +34 -0
  240. package/dist/core/slot-projection.js +3 -0
  241. package/dist/core/slot-projection.js.map +9 -0
  242. package/dist/core/ssr-hydration-binding.d.ts +14 -0
  243. package/dist/core/ssr-hydration-binding.js +2 -0
  244. package/dist/core/ssr-hydration-binding.js.map +9 -0
  245. package/dist/core/ssr-preparation.d.ts +18 -0
  246. package/dist/core/ssr-preparation.js +3 -0
  247. package/dist/core/ssr-preparation.js.map +9 -0
  248. package/dist/decorators/bound.js +2 -2
  249. package/dist/decorators/bound.js.map +3 -4
  250. package/dist/decorators/bridge.d.ts +8 -0
  251. package/dist/decorators/bridge.js +3 -0
  252. package/dist/decorators/bridge.js.map +9 -0
  253. package/dist/decorators/custom-element.js +2 -3
  254. package/dist/decorators/custom-element.js.map +3 -4
  255. package/dist/decorators/debounce.js +2 -2
  256. package/dist/decorators/debounce.js.map +3 -4
  257. package/dist/decorators/event.js +2 -3
  258. package/dist/decorators/event.js.map +3 -4
  259. package/dist/decorators/legacy/bound.js +2 -3
  260. package/dist/decorators/legacy/bound.js.map +3 -4
  261. package/dist/decorators/legacy/custom-element.js +2 -3
  262. package/dist/decorators/legacy/custom-element.js.map +3 -4
  263. package/dist/decorators/legacy/debounce.js +2 -3
  264. package/dist/decorators/legacy/debounce.js.map +3 -4
  265. package/dist/decorators/legacy/event.d.ts +1 -1
  266. package/dist/decorators/legacy/event.js +2 -2
  267. package/dist/decorators/legacy/event.js.map +3 -4
  268. package/dist/decorators/legacy/instance-initializers.d.ts +17 -0
  269. package/dist/decorators/legacy/instance-initializers.js +3 -0
  270. package/dist/decorators/legacy/instance-initializers.js.map +9 -0
  271. package/dist/decorators/legacy/on-event.d.ts +2 -11
  272. package/dist/decorators/legacy/on-event.js +2 -3
  273. package/dist/decorators/legacy/on-event.js.map +3 -4
  274. package/dist/decorators/legacy/on-updated.js +2 -3
  275. package/dist/decorators/legacy/on-updated.js.map +3 -4
  276. package/dist/decorators/legacy/query-slot.d.ts +3 -0
  277. package/dist/decorators/legacy/query-slot.js +3 -0
  278. package/dist/decorators/legacy/query-slot.js.map +9 -0
  279. package/dist/decorators/legacy/query.js +2 -3
  280. package/dist/decorators/legacy/query.js.map +3 -4
  281. package/dist/decorators/legacy/reactive-field.js +2 -3
  282. package/dist/decorators/legacy/reactive-field.js.map +3 -4
  283. package/dist/decorators/legacy/reactive-prop.d.ts +2 -1
  284. package/dist/decorators/legacy/reactive-prop.js +2 -3
  285. package/dist/decorators/legacy/reactive-prop.js.map +3 -4
  286. package/dist/decorators/legacy/signal.d.ts +10 -0
  287. package/dist/decorators/legacy/signal.js +3 -0
  288. package/dist/decorators/legacy/signal.js.map +9 -0
  289. package/dist/decorators/on-event.d.ts +3 -11
  290. package/dist/decorators/on-event.js +2 -3
  291. package/dist/decorators/on-event.js.map +3 -4
  292. package/dist/decorators/on-updated.js +2 -3
  293. package/dist/decorators/on-updated.js.map +3 -4
  294. package/dist/decorators/prop.d.ts +14 -0
  295. package/dist/decorators/prop.js +3 -0
  296. package/dist/decorators/prop.js.map +9 -0
  297. package/dist/decorators/query-slot.d.ts +13 -0
  298. package/dist/decorators/query-slot.js +3 -0
  299. package/dist/decorators/query-slot.js.map +9 -0
  300. package/dist/decorators/query.d.ts +4 -13
  301. package/dist/decorators/query.js +2 -3
  302. package/dist/decorators/query.js.map +3 -4
  303. package/dist/decorators/signal.d.ts +23 -0
  304. package/dist/decorators/signal.js +3 -0
  305. package/dist/decorators/signal.js.map +9 -0
  306. package/dist/decorators/standard/bound.js +2 -3
  307. package/dist/decorators/standard/bound.js.map +3 -4
  308. package/dist/decorators/standard/custom-element.js +2 -3
  309. package/dist/decorators/standard/custom-element.js.map +3 -4
  310. package/dist/decorators/standard/debounce.js +2 -3
  311. package/dist/decorators/standard/debounce.js.map +3 -4
  312. package/dist/decorators/standard/event.d.ts +1 -1
  313. package/dist/decorators/standard/event.js +2 -3
  314. package/dist/decorators/standard/event.js.map +3 -4
  315. package/dist/decorators/standard/on-event.d.ts +1 -11
  316. package/dist/decorators/standard/on-event.js +2 -3
  317. package/dist/decorators/standard/on-event.js.map +3 -4
  318. package/dist/decorators/standard/on-updated.js +2 -3
  319. package/dist/decorators/standard/on-updated.js.map +3 -4
  320. package/dist/decorators/standard/query-slot.d.ts +8 -0
  321. package/dist/decorators/standard/query-slot.js +3 -0
  322. package/dist/decorators/standard/query-slot.js.map +9 -0
  323. package/dist/decorators/standard/query.js +2 -3
  324. package/dist/decorators/standard/query.js.map +3 -4
  325. package/dist/decorators/standard/reactive-field.js +2 -3
  326. package/dist/decorators/standard/reactive-field.js.map +3 -4
  327. package/dist/decorators/standard/reactive-prop.d.ts +1 -1
  328. package/dist/decorators/standard/reactive-prop.js +2 -3
  329. package/dist/decorators/standard/reactive-prop.js.map +3 -4
  330. package/dist/decorators/standard/signal.d.ts +33 -0
  331. package/dist/decorators/standard/signal.js +3 -0
  332. package/dist/decorators/standard/signal.js.map +9 -0
  333. package/dist/decorators/state.d.ts +11 -0
  334. package/dist/decorators/state.js +3 -0
  335. package/dist/decorators/state.js.map +9 -0
  336. package/dist/helpers/create-event-listener.d.ts +28 -0
  337. package/dist/helpers/create-event-listener.js +3 -0
  338. package/dist/helpers/create-event-listener.js.map +9 -0
  339. package/dist/helpers/create-event.d.ts +9 -0
  340. package/dist/helpers/create-event.js +3 -0
  341. package/dist/helpers/create-event.js.map +9 -0
  342. package/dist/helpers/create-query-slot.d.ts +20 -0
  343. package/dist/helpers/create-query-slot.js +3 -0
  344. package/dist/helpers/create-query-slot.js.map +9 -0
  345. package/dist/helpers/create-query.d.ts +27 -0
  346. package/dist/helpers/create-query.js +3 -0
  347. package/dist/helpers/create-query.js.map +9 -0
  348. package/dist/helpers/debounce.d.ts +39 -0
  349. package/dist/helpers/debounce.js +3 -0
  350. package/dist/helpers/debounce.js.map +9 -0
  351. package/dist/helpers/index.d.ts +5 -0
  352. package/dist/helpers/index.js +3 -0
  353. package/dist/{mixins → helpers}/index.js.map +1 -1
  354. package/dist/index.d.ts +13 -5
  355. package/dist/index.js +2 -2
  356. package/dist/index.js.map +1 -1
  357. package/dist/server/context-ssr.d.ts +27 -0
  358. package/dist/server/context-ssr.js +3 -0
  359. package/dist/server/context-ssr.js.map +9 -0
  360. package/dist/server/install-light-dom-shim.d.ts +1 -0
  361. package/dist/server/install-light-dom-shim.js +3 -0
  362. package/dist/server/install-light-dom-shim.js.map +10 -0
  363. package/dist/server/light-dom-shim.d.ts +53 -0
  364. package/dist/server/light-dom-shim.js +3 -0
  365. package/dist/server/light-dom-shim.js.map +9 -0
  366. package/dist/server/project-root.d.ts +20 -0
  367. package/dist/server/project-root.js +3 -0
  368. package/dist/server/project-root.js.map +11 -0
  369. package/dist/server/render-component.d.ts +195 -0
  370. package/dist/server/render-component.js +3 -0
  371. package/dist/server/render-component.js.map +10 -0
  372. package/dist/signals/host-resource.d.ts +59 -0
  373. package/dist/signals/host-resource.js +3 -0
  374. package/dist/signals/host-resource.js.map +10 -0
  375. package/dist/signals/host-signal.d.ts +45 -0
  376. package/dist/signals/host-signal.js +3 -0
  377. package/dist/signals/host-signal.js.map +9 -0
  378. package/dist/signals/hydration-script.d.ts +11 -0
  379. package/dist/signals/hydration-script.js +3 -0
  380. package/dist/signals/hydration-script.js.map +9 -0
  381. package/dist/tools/escape-script-json.d.ts +5 -0
  382. package/dist/tools/escape-script-json.js +3 -0
  383. package/dist/tools/escape-script-json.js.map +9 -0
  384. package/dist/tools/event-emitter.js +2 -3
  385. package/dist/tools/event-emitter.js.map +3 -4
  386. package/dist/tools/index.d.ts +2 -0
  387. package/dist/tools/index.js +2 -2
  388. package/dist/tools/index.js.map +1 -1
  389. package/dist/tools/render-jsx-template.d.ts +5 -0
  390. package/dist/tools/render-jsx-template.js +3 -0
  391. package/dist/tools/render-jsx-template.js.map +9 -0
  392. package/dist/tools/stringify-typed.d.ts +4 -6
  393. package/dist/tools/stringify-typed.js +2 -3
  394. package/dist/tools/stringify-typed.js.map +3 -4
  395. package/dist/types.js +2 -2
  396. package/dist/types.js.map +3 -3
  397. package/dist/utils/attribute-utils.js +2 -3
  398. package/dist/utils/attribute-utils.js.map +3 -4
  399. package/dist/utils/index.js +2 -2
  400. package/dist/utils/index.js.map +1 -1
  401. package/package.json +97 -21
  402. package/size-budget.json +22 -0
  403. package/dist/decorators/reactive-field.d.ts +0 -6
  404. package/dist/decorators/reactive-field.js +0 -4
  405. package/dist/decorators/reactive-field.js.map +0 -10
  406. package/dist/decorators/reactive-prop.d.ts +0 -8
  407. package/dist/decorators/reactive-prop.js +0 -4
  408. package/dist/decorators/reactive-prop.js.map +0 -10
  409. package/dist/mixins/index.d.ts +0 -1
  410. package/dist/mixins/index.js +0 -3
  411. package/dist/mixins/with-kita.d.ts +0 -15
  412. package/dist/mixins/with-kita.js +0 -4
  413. package/dist/mixins/with-kita.js.map +0 -10
@@ -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{q as a}from"../../chunk-ak97hp4w.js";import"../../chunk-d98q3myg.js";import"../../chunk-qaagk55a.js";import"../../chunk-5td6v9k3.js";import"../../chunk-vpfm9yw8.js";import"../../chunk-s4qgct1z.js";import"../../chunk-1w1dm68j.js";import"../../chunk-9gjmqxp2.js";import"../../chunk-8tvt04cm.js";import"../../chunk-nerd6fmg.js";import"../../chunk-4cc2syf5.js";import"../../chunk-8xy18qmz.js";export{a as onContextUpdate};
2
+
3
+ //# debugId=C4EDA5C49D35311E64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "C4EDA5C49D35311E64756E2164756E21",
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{j as a}from"../../chunk-147yvtsn.js";import"../../chunk-d0n7njdy.js";import"../../chunk-4srpf0y5.js";import"../../chunk-jg20mzg8.js";import"../../chunk-1w1dm68j.js";import"../../chunk-6kdxrppw.js";import"../../chunk-8tvt04cm.js";import"../../chunk-nerd6fmg.js";import"../../chunk-ksv01cey.js";import"../../chunk-8n2dhx28.js";import"../../chunk-8xy18qmz.js";export{a as provideContext};
3
2
 
4
- //# debugId=DAFE7A9740BFBCF864756E2164756E21
3
+ //# debugId=8ED9BF853618769A64756E2164756E21
@@ -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": "8ED9BF853618769A64756E2164756E21",
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{l as a}from"../../../chunk-hkmm3dj9.js";import"../../../chunk-vpfm9yw8.js";import"../../../chunk-s4qgct1z.js";import"../../../chunk-1w1dm68j.js";import"../../../chunk-9gjmqxp2.js";import"../../../chunk-4cc2syf5.js";import"../../../chunk-8xy18qmz.js";export{a as consumeContext};
3
2
 
4
- //# debugId=5EBC8BEA292801F164756E2164756E21
3
+ //# debugId=08F0647FF1FC718B64756E2164756E21
@@ -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": "08F0647FF1FC718B64756E2164756E21",
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{m as a}from"../../../chunk-chyn72n9.js";import"../../../chunk-5td6v9k3.js";import"../../../chunk-vpfm9yw8.js";import"../../../chunk-s4qgct1z.js";import"../../../chunk-1w1dm68j.js";import"../../../chunk-9gjmqxp2.js";import"../../../chunk-4cc2syf5.js";import"../../../chunk-8xy18qmz.js";export{a as contextSelectorField};
2
+
3
+ //# debugId=E814C6039CFD693C64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "E814C6039CFD693C64756E2164756E21",
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{s as a}from"../../../chunk-qaagk55a.js";import"../../../chunk-5td6v9k3.js";import"../../../chunk-vpfm9yw8.js";import"../../../chunk-s4qgct1z.js";import"../../../chunk-1w1dm68j.js";import"../../../chunk-9gjmqxp2.js";import"../../../chunk-4cc2syf5.js";import"../../../chunk-8xy18qmz.js";export{a as contextSelector};
3
2
 
4
- //# debugId=63D2F9333044952264756E2164756E21
3
+ //# debugId=BA0B5A74478EA67E64756E2164756E21
@@ -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": "BA0B5A74478EA67E64756E2164756E21",
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{n as a}from"../../../chunk-4srpf0y5.js";import"../../../chunk-jg20mzg8.js";import"../../../chunk-1w1dm68j.js";import"../../../chunk-6kdxrppw.js";import"../../../chunk-ksv01cey.js";import"../../../chunk-8n2dhx28.js";import"../../../chunk-8xy18qmz.js";export{a as provideContext};
3
2
 
4
- //# debugId=C46D919C46727B7364756E2164756E21
3
+ //# debugId=C51D0E8422BFEA3264756E2164756E21
@@ -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": "C51D0E8422BFEA3264756E2164756E21",
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{C as a,D as b,E as c,F as d}from"../chunk-1w1dm68j.js";import"../chunk-8xy18qmz.js";export{d as ContextSubscriptionRequestEvent,b as ContextRequestEvent,c as ContextOnMountEvent,a as ContextEventsTypes};
3
2
 
4
- //# debugId=CD57E830D3B70B5964756E2164756E21
3
+ //# debugId=56C1E59567ECA83164756E2164756E21
@@ -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": "56C1E59567ECA83164756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -0,0 +1,17 @@
1
+ /** @deprecated Use `HYDRATION_ATTRIBUTE` from `hydration-codec` instead. */
2
+ export declare const CONTEXT_HYDRATION_ATTRIBUTE = "data-hydration";
3
+ /** @deprecated Use `HYDRATION_KEY_ATTRIBUTE` from `hydration-codec` instead. */
4
+ export declare const CONTEXT_HYDRATION_KEY_ATTRIBUTE = "data-hydration-key";
5
+ /**
6
+ * Creates the raw `<script type="application/json">` tag used to hydrate a
7
+ * serialized context provider.
8
+ */
9
+ export declare function createContextHydrationScriptTag(options: {
10
+ hydrationKey?: string;
11
+ serializedValue: string;
12
+ }): string;
13
+ /**
14
+ * Escapes serialized JSON so it remains safe when embedded inside an HTML
15
+ * script tag.
16
+ */
17
+ export declare function escapeContextHydrationJson(value: string): string;
@@ -0,0 +1,3 @@
1
+ import{T as a,U as b,V as c,W as d}from"../chunk-6kdxrppw.js";import"../chunk-ksv01cey.js";import"../chunk-8n2dhx28.js";import"../chunk-8xy18qmz.js";export{d as escapeContextHydrationJson,c as createContextHydrationScriptTag,b as CONTEXT_HYDRATION_KEY_ATTRIBUTE,a as CONTEXT_HYDRATION_ATTRIBUTE};
2
+
3
+ //# debugId=5CA2574D57006D2964756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "5CA2574D57006D2964756E2164756E21",
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{Wa as a,Xa as b,Ya as c}from"../chunk-ms6a9zdt.js";import"../chunk-8xy18qmz.js";export{b as setCustomElementTagName,c as getCustomElementTagName,a as CUSTOM_ELEMENT_TAG_NAME};
2
+
3
+ //# debugId=1802C65B35438D8C64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "1802C65B35438D8C64756E2164756E21",
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{gb as a,hb as b,ib as c,jb as d,kb as e,lb as f,mb as g}from"../chunk-ksv01cey.js";import"../chunk-8n2dhx28.js";import"../chunk-8xy18qmz.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=75E5841D1A59F47064756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "75E5841D1A59F47064756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,29 @@
1
+ import type { JsxRenderable } from '@ecopages/jsx';
2
+ import type { RenderToStringOptions } from '@ecopages/jsx/server';
3
+ import type { SsrSerializableContextProvider } from '../context/context-provider';
4
+ import type { ReactiveProperty } from './radiant-element';
5
+ import type { ReactivePropDefinition } from './reactive-prop-metadata';
6
+ import type { SsrSerializableHydrationBinding } from './ssr-hydration-binding';
7
+ type RadiantComponentSsrHost = {
8
+ constructor: CustomElementConstructor;
9
+ getAuthoredHydrationScriptMarkup?: () => string | undefined;
10
+ getContextProviders: () => SsrSerializableContextProvider[];
11
+ getHydrationBindings: () => SsrSerializableHydrationBinding[];
12
+ getSlotProjectionScriptTag?: () => string | undefined;
13
+ renderToString: (options?: RenderToStringOptions) => string;
14
+ getReactiveProperties: () => ReactiveProperty[];
15
+ getReactivePropDefinitions: () => ReactivePropDefinition[];
16
+ getPropertyValue: (name: string) => unknown;
17
+ listAttributeNames: () => string[];
18
+ getAttributeValue: (name: string) => string | null;
19
+ };
20
+ export declare class RadiantComponentSsrService {
21
+ private readonly host;
22
+ constructor(host: RadiantComponentSsrHost);
23
+ renderHost(): JsxRenderable;
24
+ renderHostToString(options?: RenderToStringOptions, attributes?: Record<string, string>): string;
25
+ private renderHostContent;
26
+ getHostAttributes(): Record<string, string>;
27
+ private getTagName;
28
+ }
29
+ export {};
@@ -0,0 +1,3 @@
1
+ import{X as a}from"../chunk-9554n9t4.js";import"../chunk-73x7jpdd.js";import"../chunk-ms6a9zdt.js";import"../chunk-dx1wqc00.js";import"../chunk-4cc2syf5.js";import"../chunk-8xy18qmz.js";export{a as RadiantComponentSsrService};
2
+
3
+ //# debugId=96387B8B5ABCCFB864756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "96387B8B5ABCCFB864756E2164756E21",
8
+ "names": []
9
+ }
@@ -0,0 +1,106 @@
1
+ import { type JsxRenderable } from '@ecopages/jsx';
2
+ import { type RenderToStringOptions } from '@ecopages/jsx/server';
3
+ import { RadiantElement } from './radiant-element';
4
+ /**
5
+ * A structured JSX-first Radiant base class.
6
+ * @typeParam Bindings - Explicit internal bindable shape. Include only the
7
+ * prop/state keys that JSX bindings should accept.
8
+ *
9
+ * Treat this as the component's internal reactive/bindable surface, not as the
10
+ * default public custom-element attribute contract. When a component exposes a
11
+ * narrower external API than its internal state, declare a separate public
12
+ * props type for the JSX intrinsic element and keep internal-only state out of
13
+ * that contract.
14
+ *
15
+ * Reusing the same type for both is fine only when the public props and the
16
+ * bindable reactive members are intentionally the same surface.
17
+ *
18
+ * - `render()` describes the view.
19
+ * - `update()` commits the current view into the host.
20
+ * - first render happens automatically on connect.
21
+ * - plain `@prop`, `@state`, and `@signal` reads performed during `render()`
22
+ * participate in tracked rerender invalidation.
23
+ * - `update()` and `requestUpdate()` remain available when a rerender should be
24
+ * scheduled from imperative work outside those tracked reads.
25
+ */
26
+ export declare class RadiantComponent<Bindings extends object = {}> extends RadiantElement<Bindings> {
27
+ private isRendering;
28
+ private isFirstConnectPending;
29
+ private isRenderScheduled;
30
+ private needsRender;
31
+ private projectedSlotContent;
32
+ private renderSignal?;
33
+ private readonly renderWatcher;
34
+ private slotProjectionObserver?;
35
+ private slotProjectionVersion;
36
+ private readonly ssr;
37
+ connectedCallback(): void;
38
+ /**
39
+ * Returns the current component view.
40
+ *
41
+ * The base implementation behaves like `<slot />`, so authored host children
42
+ * pass through unchanged when a subclass does not override `render()`.
43
+ */
44
+ render(): JsxRenderable;
45
+ /**
46
+ * Serializes the current component view into HTML.
47
+ */
48
+ renderToString(options?: RenderToStringOptions): string;
49
+ /**
50
+ * Returns the component host and current view as a JSX element.
51
+ */
52
+ renderHost(): JsxRenderable;
53
+ /**
54
+ * Serializes the component host and current view into HTML.
55
+ */
56
+ renderHostToString(options?: RenderToStringOptions): string;
57
+ /**
58
+ * Hydrates an SSR-rendered component view in place.
59
+ */
60
+ hydrate(): void;
61
+ /**
62
+ * Queues a component rerender and coalesces repeated requests into the same
63
+ * microtask.
64
+ *
65
+ * Use this when reactive state may change multiple times in the same turn and
66
+ * the current view should refresh once with the final values.
67
+ */
68
+ requestUpdate(): void;
69
+ /**
70
+ * Explicitly rerenders the component into its host.
71
+ */
72
+ update(): void;
73
+ disconnectedCallback(): void;
74
+ /**
75
+ * Returns the first projected element assigned to the default or named slot.
76
+ *
77
+ * Use this when component logic needs direct access to authored light-DOM
78
+ * content after projection.
79
+ *
80
+ * @param name Optional slot name. Omit for the default slot.
81
+ */
82
+ getSlotElement<T extends Element = Element>(name?: string): T | null;
83
+ /**
84
+ * Returns all projected elements assigned to the default or named slot.
85
+ *
86
+ * Text nodes are intentionally excluded so the result matches the element-
87
+ * oriented query semantics used by Radiant decorators.
88
+ *
89
+ * @param name Optional slot name. Omit for the default slot.
90
+ */
91
+ getSlotElements<T extends Element = Element>(name?: string): T[];
92
+ protected shouldAutoBindReactiveMembers(): boolean;
93
+ protected getHostSsrAttributes(): Record<string, string>;
94
+ private ensureSlotProjectionState;
95
+ private getHostChildNodeCount;
96
+ private getSlotProjectionScriptTag;
97
+ private getAuthoredHydrationScriptMarkup;
98
+ private handleSlotProjectionMutations;
99
+ private addProjectedSlotNode;
100
+ private removeProjectedSlotNode;
101
+ private observeSlotProjection;
102
+ private disconnectSlotProjectionObserver;
103
+ private disconnectRenderWatcher;
104
+ private resolveTrackedRenderOutput;
105
+ private resolveRenderOutput;
106
+ }
@@ -0,0 +1,3 @@
1
+ import{G as a}from"../chunk-17earqbr.js";import"../chunk-84fc8cz9.js";import"../chunk-9ascmjk3.js";import"../chunk-9554n9t4.js";import"../chunk-9gjmqxp2.js";import"../chunk-8dexhy6c.js";import"../chunk-8tvt04cm.js";import"../chunk-73x7jpdd.js";import"../chunk-ms6a9zdt.js";import"../chunk-dx1wqc00.js";import"../chunk-4cc2syf5.js";import"../chunk-ksv01cey.js";import"../chunk-8n2dhx28.js";import"../chunk-8xy18qmz.js";export{a as RadiantComponent};
2
+
3
+ //# debugId=591CEE5AF32145BA64756E2164756E21
@@ -0,0 +1,9 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [
5
+ ],
6
+ "mappings": "",
7
+ "debugId": "591CEE5AF32145BA64756E2164756E21",
8
+ "names": []
9
+ }