@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/tools/stringify-typed.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "/**\n * Converts the given value to a JSON string representation or maintains the type based on the generic parameter.\n *\n * @param value - The value to be converted.\n * @returns The JSON string representation of the value or the value itself.\n * @template T - The type of the value.\n * @template R - The return type, defaults to T.\n *\n * @example\n * // For JSON string representation\n * <script type=\"application/json\" data-hydration>\n * {stringifyTyped<Partial<MyContext>, string>({ value: 'Hello World' })}\n * </script>\n *\n * // For maintaining the type\n * <my-app my-complex-attribute={stringifyTyped<MyType>(myData)}> // myData is of type MyType\n */\nexport function stringifyTyped<T, R = T>(value: T): R extends string ? string : T {\n return JSON.stringify(value) as unknown as R extends string ? string : T;\n}\n"
6
5
  ],
7
- "mappings": "AAiBO,SAAS,CAAwB,CAAC,EAAyC,CAChF,OAAO,KAAK,UAAU,CAAK",
8
- "debugId": "EC5CECAE80ACC8C364756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "3F8DDB103AAD885E64756E2164756E21",
9
8
  "names": []
10
9
  }
package/dist/types.d.ts CHANGED
@@ -17,13 +17,6 @@ export type Context = {
17
17
  };
18
18
  export type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;
19
19
  export type Method = (...args: any[]) => any;
20
- /**
21
- * @deprecated
22
- */
23
- export type StanderOrLegacyClassDecorator = {
24
- (target: Constructor): typeof target | void;
25
- (target: CustomElementConstructor, context: ClassDecoratorContext): void;
26
- };
27
20
  export type LegacyClassDecoratorArgs = {
28
21
  protoOrTarget: CustomElementConstructor;
29
22
  nameOrContext: string;
@@ -34,13 +27,6 @@ export type StandardClassDecoratorArgs = {
34
27
  nameOrContext: ClassDecoratorContext;
35
28
  };
36
29
  export type StandardOrLegacyClassDecoratorArgs = LegacyClassDecoratorArgs | StandardClassDecoratorArgs;
37
- /**
38
- * @deprecated
39
- */
40
- export type StandardOrLegacMethodDecorator = {
41
- (proto: Constructor<HTMLElement>): PropertyDescriptor;
42
- (target: Method, context: ClassMethodDecoratorContext): void;
43
- };
44
30
  export type LegacyMethodDecoratorArgs = {
45
31
  protoOrTarget: RadiantElement;
46
32
  nameOrContext: string;
@@ -52,13 +38,6 @@ export type StandardMethodDecoratorArgs = {
52
38
  descriptor: undefined;
53
39
  };
54
40
  export type StandardOrLegacyMethodDecoratorArgs = LegacyMethodDecoratorArgs | StandardMethodDecoratorArgs;
55
- /**
56
- * @deprecated
57
- */
58
- export type StandardOrLegacyClassFieldDecorator = {
59
- (proto: RadiantElement, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
60
- (target: undefined, context: ClassFieldDecoratorContext): void;
61
- };
62
41
  export type LegacyFieldDecoratorArgs = {
63
42
  protoOrTarget: RadiantElement;
64
43
  nameOrContext: string;
package/dist/types.js CHANGED
@@ -1,3 +1,3 @@
1
- var r={isStandard:{ClassDecorator:function(t){return typeof t[1]!=="undefined"},MethodDecorator:function(t){return typeof t[1]==="object"},FieldDecorator:function(t){return typeof t[1]==="object"}}};export{r as guards};
1
+ import"./chunk-vgtggzb6.js";var r={isStandard:{ClassDecorator:function(t){return typeof t[1]<"u"},MethodDecorator:function(t){return typeof t[1]==="object"},FieldDecorator:function(t){return typeof t[1]==="object"}}};export{r as guards};
2
2
 
3
- //# debugId=935C3594594917E764756E2164756E21
3
+ //# debugId=91D7439E7D31B5DD64756E2164756E21
package/dist/types.js.map CHANGED
@@ -2,9 +2,9 @@
2
2
  "version": 3,
3
3
  "sources": ["../src/types.ts"],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from './core/radiant-element';\n\nexport type Constructor<T = unknown> = { new (...args: any[]): NonNullable<T> };\n\nexport type ConstructorParams<T extends Constructor> = ConstructorParameters<T>;\n\nexport type Context = {\n kind: string;\n name: string | symbol;\n access: {\n get?(): unknown;\n set?(value: unknown): void;\n has?(value: unknown): boolean;\n };\n private?: boolean;\n static?: boolean;\n addInitializer?(initializer: () => void): void;\n};\n\nexport type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;\n\nexport type Method = (...args: any[]) => any;\n\n/**\n * @deprecated\n */\nexport type StanderOrLegacyClassDecorator = {\n (target: Constructor): typeof target | void;\n (target: CustomElementConstructor, context: ClassDecoratorContext): void;\n};\n\nexport type LegacyClassDecoratorArgs = {\n protoOrTarget: CustomElementConstructor;\n nameOrContext: string;\n descriptor: PropertyDescriptor;\n};\n\nexport type StandardClassDecoratorArgs = {\n protoOrTarget: CustomElementConstructor;\n nameOrContext: ClassDecoratorContext;\n};\n\nexport type StandardOrLegacyClassDecoratorArgs = LegacyClassDecoratorArgs | StandardClassDecoratorArgs;\n\n/**\n * @deprecated\n */\nexport type StandardOrLegacMethodDecorator = {\n (proto: Constructor<HTMLElement>): PropertyDescriptor;\n (target: Method, context: ClassMethodDecoratorContext): void;\n};\n\nexport type LegacyMethodDecoratorArgs = {\n protoOrTarget: RadiantElement;\n nameOrContext: string;\n descriptor: PropertyDescriptor;\n};\n\nexport type StandardMethodDecoratorArgs = {\n protoOrTarget: Method;\n nameOrContext: ClassMethodDecoratorContext;\n descriptor: undefined;\n};\n\nexport type StandardOrLegacyMethodDecoratorArgs = LegacyMethodDecoratorArgs | StandardMethodDecoratorArgs;\n\n/**\n * @deprecated\n */\nexport type StandardOrLegacyClassFieldDecorator = {\n (proto: RadiantElement, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;\n (target: undefined, context: ClassFieldDecoratorContext): void;\n};\n\nexport type LegacyFieldDecoratorArgs = {\n protoOrTarget: RadiantElement;\n nameOrContext: string;\n descriptor: PropertyDescriptor;\n};\n\nexport type StandardFieldDecoratorArgs<T = unknown, V = unknown> = {\n protoOrTarget: undefined;\n nameOrContext: ClassFieldDecoratorContext<T, V>;\n};\n\nexport type StandardOrLegacyFieldDecoratorArgs = LegacyFieldDecoratorArgs | StandardFieldDecoratorArgs;\n\nexport type CustomElementClass = Omit<typeof HTMLElement, 'new'>;\n\nexport const guards = {\n isStandard: {\n ClassDecorator: function (\n args: any,\n ): args is [CustomElementConstructor, ClassDecoratorContext<CustomElementConstructor>] {\n return typeof args[1] !== 'undefined';\n },\n MethodDecorator: function (args: any): args is [Method, ClassMethodDecoratorContext] {\n return typeof args[1] === 'object';\n },\n FieldDecorator: function (args: any): args is [undefined, ClassFieldDecoratorContext] {\n return typeof args[1] === 'object';\n },\n },\n};\n"
5
+ "import type { RadiantElement } from './core/radiant-element';\n\nexport type Constructor<T = unknown> = { new (...args: any[]): NonNullable<T> };\n\nexport type ConstructorParams<T extends Constructor> = ConstructorParameters<T>;\n\nexport type Context = {\n\tkind: string;\n\tname: string | symbol;\n\taccess: {\n\t\tget?(): unknown;\n\t\tset?(value: unknown): void;\n\t\thas?(value: unknown): boolean;\n\t};\n\tprivate?: boolean;\n\tstatic?: boolean;\n\taddInitializer?(initializer: () => void): void;\n};\n\nexport type ClassDecorator = <T extends Constructor>(target: T, context: Context) => T | void;\n\nexport type Method = (...args: any[]) => any;\n\nexport type LegacyClassDecoratorArgs = {\n\tprotoOrTarget: CustomElementConstructor;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardClassDecoratorArgs = {\n\tprotoOrTarget: CustomElementConstructor;\n\tnameOrContext: ClassDecoratorContext;\n};\n\nexport type StandardOrLegacyClassDecoratorArgs = LegacyClassDecoratorArgs | StandardClassDecoratorArgs;\n\nexport type LegacyMethodDecoratorArgs = {\n\tprotoOrTarget: RadiantElement;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardMethodDecoratorArgs = {\n\tprotoOrTarget: Method;\n\tnameOrContext: ClassMethodDecoratorContext;\n\tdescriptor: undefined;\n};\n\nexport type StandardOrLegacyMethodDecoratorArgs = LegacyMethodDecoratorArgs | StandardMethodDecoratorArgs;\n\nexport type LegacyFieldDecoratorArgs = {\n\tprotoOrTarget: RadiantElement;\n\tnameOrContext: string;\n\tdescriptor: PropertyDescriptor;\n};\n\nexport type StandardFieldDecoratorArgs<T = unknown, V = unknown> = {\n\tprotoOrTarget: undefined;\n\tnameOrContext: ClassFieldDecoratorContext<T, V>;\n};\n\nexport type StandardOrLegacyFieldDecoratorArgs = LegacyFieldDecoratorArgs | StandardFieldDecoratorArgs;\n\nexport type CustomElementClass = Omit<typeof HTMLElement, 'new'>;\n\nexport const guards = {\n\tisStandard: {\n\t\tClassDecorator: function (\n\t\t\targs: any,\n\t\t): args is [CustomElementConstructor, ClassDecoratorContext<CustomElementConstructor>] {\n\t\t\treturn typeof args[1] !== 'undefined';\n\t\t},\n\t\tMethodDecorator: function (args: any): args is [Method, ClassMethodDecoratorContext] {\n\t\t\treturn typeof args[1] === 'object';\n\t\t},\n\t\tFieldDecorator: function (args: any): args is [undefined, ClassFieldDecoratorContext] {\n\t\t\treturn typeof args[1] === 'object';\n\t\t},\n\t},\n};\n"
6
6
  ],
7
- "mappings": "AAyFO,IAAM,EAAS,CACpB,WAAY,CACV,uBAAyB,CACvB,EACqF,CACrF,cAAc,EAAK,KAAO,aAE5B,wBAA0B,CAAC,EAA0D,CACnF,cAAc,EAAK,KAAO,UAE5B,uBAAyB,CAAC,EAA4D,CACpF,cAAc,EAAK,KAAO,SAE9B,CACF",
8
- "debugId": "935C3594594917E764756E2164756E21",
7
+ "mappings": "4BAiEO,IAAM,EAAS,CACrB,WAAY,CACX,eAAgB,QAAS,CACxB,EACsF,CACtF,OAAO,OAAO,EAAK,GAAO,KAE3B,gBAAiB,QAAS,CAAC,EAA0D,CACpF,OAAO,OAAO,EAAK,KAAO,UAE3B,eAAgB,QAAS,CAAC,EAA4D,CACrF,OAAO,OAAO,EAAK,KAAO,SAE5B,CACD",
8
+ "debugId": "91D7439E7D31B5DD64756E2164756E21",
9
9
  "names": []
10
10
  }
@@ -1,4 +1,3 @@
1
- function L(q){switch(q){case Array:return"array";case Boolean:return"boolean";case Number:return"number";case Object:return"object";case String:return"string"}}function M(q){switch(typeof q){case"boolean":return"boolean";case"number":return"number";case"string":return"string"}if(Array.isArray(q))return"array";if(Object.prototype.toString.call(q)==="[object Object]")return"object"}function P(q){switch(q){case Number:return 0;case String:return"";case Boolean:return!1;default:return null}}function Q(q){try{return JSON.parse(q)}catch(x){throw new TypeError("Invalid JSON string")}}function I(q){return JSON.stringify(q)}function U(q){return`${q}`}function W(q,x){const z=L(x);if(!z)throw new TypeError(`[radiant-element] Unknown type "${x}"`);return R[z](q)}function B(q,x){const z=L(x);if(!z)throw new TypeError(`[radiant-element] Unknown type "${x}"`);return(H[z]||H.default)(q)}function X(q){return typeof q==="boolean"}function Y(q){return typeof q==="number"}function Z(q){return typeof q==="string"}function _(q){return Array.isArray(q)}function $(q){return typeof q==="object"&&!Array.isArray(q)&&q!==null}function D(q,x){switch(q){case Boolean:return X(x);case Number:return Y(x);case String:return Z(x);case Array:return _(x);case Object:return $(x);default:return!1}}var R={array(q){const x=Q(q);if(!Array.isArray(x))throw new TypeError(`Expected an array but got a value of type "${typeof x}"`);return x},boolean(q){return!(q==="0"||String(q).toLowerCase()==="false")},number(q){return Number(q.replace(/_/g,""))},object(q){const x=JSON.parse(q);if(x===null||typeof x!=="object"||Array.isArray(x))throw new TypeError(`expected value of type "object" but instead got value "${q}" of type "${M(x)}"`);return x},string(q){return q}},H={default:U,array:I,object:I},F=(q,x,z,E)=>{if(x===Boolean)return q.hasAttribute(z)||E;const G=q.getAttribute(z);return G!==null?W(G,x):E||P(x)};export{B as writeAttributeValue,W as readAttributeValue,M as parseAttributeTypeDefault,L as parseAttributeTypeConstant,D as isValueOfType,F as getInitialValue,P as defaultValueForType};
2
- export{L as G,M as H,P as I,W as J,B as K,D as L,F as M};
1
+ import{ab as a,bb as b,cb as c,db as d,eb as e,fb as f,gb as g}from"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{e as writeAttributeValue,d as readAttributeValue,b as parseAttributeTypeDefault,a as parseAttributeTypeConstant,f as isValueOfType,g as getInitialValue,c as defaultValueForType};
3
2
 
4
- //# debugId=30A184A74A9EDA1464756E2164756E21
3
+ //# debugId=C2F55D0EA13687F864756E2164756E21
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../src/utils/attribute-utils.ts"],
3
+ "sources": [],
4
4
  "sourcesContent": [
5
- "import type { RadiantElement } from '../core/radiant-element';\n\nexport type AttributeTypeConstant = typeof Array | typeof Boolean | typeof Number | typeof Object | typeof String;\n\nexport type AttributeTypeDefault = Array<unknown> | boolean | number | Record<string, unknown> | string;\n\n/**\n * Parses the given attribute type constant and returns its corresponding string representation.\n *\n * @param constant - The attribute type constant to parse.\n * @returns The string representation of the attribute type constant.\n */\nexport function parseAttributeTypeConstant(constant?: AttributeTypeConstant) {\n switch (constant) {\n case Array:\n return 'array';\n case Boolean:\n return 'boolean';\n case Number:\n return 'number';\n case Object:\n return 'object';\n case String:\n return 'string';\n }\n}\n\n/**\n * Parses the attribute type default value and returns its type as a string.\n *\n * @param defaultValue - The default value of the attribute type.\n * @returns The type of the default value as a string.\n */\nexport function parseAttributeTypeDefault(defaultValue?: AttributeTypeDefault) {\n switch (typeof defaultValue) {\n case 'boolean':\n return 'boolean';\n case 'number':\n return 'number';\n case 'string':\n return 'string';\n }\n\n if (Array.isArray(defaultValue)) return 'array';\n if (Object.prototype.toString.call(defaultValue) === '[object Object]') return 'object';\n}\n\n/**\n * Returns the default value for a given attribute type.\n *\n * @param type - The attribute type constant.\n * @returns The default value for the specified attribute type.\n */\nexport function defaultValueForType(type: AttributeTypeConstant): unknown {\n switch (type) {\n case Number:\n return 0;\n case String:\n return '';\n case Boolean:\n return false;\n default:\n return null;\n }\n}\n\ntype Reader = (value: string) => number | string | boolean | object | unknown[];\n\n/**\n * Utility function to parse a JSON string safely\n */\nfunction parseJSON<T>(value: string): T {\n try {\n return JSON.parse(value);\n } catch (error) {\n throw new TypeError('Invalid JSON string');\n }\n}\n\n/**\n * Object that maps attribute types to reader functions.\n * @type {Object.<string, Reader>}\n */\nconst readers: { [type: string]: Reader } = {\n array(value: string): unknown[] {\n const array = parseJSON<unknown[]>(value);\n if (!Array.isArray(array)) {\n throw new TypeError(`Expected an array but got a value of type \"${typeof array}\"`);\n }\n return array;\n },\n\n boolean(value: string): boolean {\n return !(value === '0' || String(value).toLowerCase() === 'false');\n },\n\n number(value: string): number {\n const number = Number(value.replace(/_/g, ''));\n return number;\n },\n\n object(value: string): object {\n const object = JSON.parse(value);\n if (object === null || typeof object !== 'object' || Array.isArray(object)) {\n throw new TypeError(\n `expected value of type \"object\" but instead got value \"${value}\" of type \"${parseAttributeTypeDefault(\n object,\n )}\"`,\n );\n }\n return object;\n },\n\n string(value: string): string {\n return value;\n },\n};\n\ntype Writer = (value: unknown) => string;\n\n/**\n * Object that maps attribute types to writer functions.\n * @type {Object.<string, Writer>}\n */\nconst writers: { [type: string]: Writer } = {\n default: writeString,\n array: writeJSON,\n object: writeJSON,\n};\n\nfunction writeJSON(value: unknown) {\n return JSON.stringify(value);\n}\n\nfunction writeString(value: unknown) {\n return `${value}`;\n}\n\n/**\n * Reads the attribute value based on the provided type.\n * @param value - The attribute value to be read.\n * @param type - The type of the attribute.\n * @returns The parsed attribute value.\n * @throws {TypeError} If the provided type is unknown.\n */\nexport function readAttributeValue(value: string, type: AttributeTypeConstant) {\n const readerType = parseAttributeTypeConstant(type);\n if (!readerType) throw new TypeError(`[radiant-element] Unknown type \"${type}\"`);\n return readers[readerType](value);\n}\n\nexport type ReadAttributeValueReturnType = ReturnType<typeof readAttributeValue>;\n\n/**\n * Writes the attribute value based on the provided type.\n *\n * @param value - The value to be written.\n * @param type - The type of the attribute.\n * @returns The written attribute value.\n * @throws {TypeError} If the provided type is unknown.\n */\nexport function writeAttributeValue(value: unknown, type: AttributeTypeConstant) {\n const writerType = parseAttributeTypeConstant(type);\n if (!writerType) throw new TypeError(`[radiant-element] Unknown type \"${type}\"`);\n return (writers[writerType] || writers.default)(value);\n}\n\nexport type WriteAttributeValueReturnType = ReturnType<typeof writeAttributeValue>;\n\n/*\n * Type guard functions for each type in AttributeTypeConstant\n */\nfunction isBoolean(value: unknown): value is boolean {\n return typeof value === 'boolean';\n}\n\nfunction isNumber(value: unknown): value is number {\n return typeof value === 'number';\n}\n\nfunction isString(value: unknown): value is string {\n return typeof value === 'string';\n}\n\nfunction isArray(value: unknown): value is Array<unknown> {\n return Array.isArray(value);\n}\n\nfunction isObject(value: unknown): value is object {\n return typeof value === 'object' && !Array.isArray(value) && value !== null;\n}\n\n/*\n * Check function to ensure defaultValue matches the type\n */\nexport function isValueOfType(type: AttributeTypeConstant, defaultValue: unknown): boolean {\n switch (type) {\n case Boolean:\n return isBoolean(defaultValue);\n case Number:\n return isNumber(defaultValue);\n case String:\n return isString(defaultValue);\n case Array:\n return isArray(defaultValue);\n case Object:\n return isObject(defaultValue);\n default:\n return false;\n }\n}\n\nexport const getInitialValue = (\n target: RadiantElement,\n type: AttributeTypeConstant,\n attributeKey: string,\n defaultValue: unknown,\n) => {\n if (type === Boolean) {\n const hasAttribute = target.hasAttribute(attributeKey);\n return hasAttribute || defaultValue;\n }\n\n const attributeValue = target.getAttribute(attributeKey);\n return attributeValue !== null\n ? readAttributeValue(attributeValue, type)\n : defaultValue || (defaultValueForType(type) as typeof defaultValue);\n};\n"
6
5
  ],
7
- "mappings": "AAYO,SAAS,CAA0B,CAAC,EAAkC,CAC3E,OAAQ,QACD,MACH,MAAO,aACJ,QACH,MAAO,eACJ,OACH,MAAO,cACJ,OACH,MAAO,cACJ,OACH,MAAO,UAUN,SAAS,CAAyB,CAAC,EAAqC,CAC7E,cAAe,OACR,UACH,MAAO,cACJ,SACH,MAAO,aACJ,SACH,MAAO,SAGX,GAAI,MAAM,QAAQ,CAAY,EAAG,MAAO,QACxC,GAAI,OAAO,UAAU,SAAS,KAAK,CAAY,IAAM,kBAAmB,MAAO,SAS1E,SAAS,CAAmB,CAAC,EAAsC,CACxE,OAAQ,QACD,OACH,MAAO,QACJ,OACH,MAAO,QACJ,QACH,MAAO,WAEP,OAAO,MASb,SAAS,CAAY,CAAC,EAAkB,CACtC,GAAI,CACF,OAAO,KAAK,MAAM,CAAK,QAChB,EAAP,CACA,MAAM,IAAI,UAAU,qBAAqB,GAuD7C,SAAS,CAAS,CAAC,EAAgB,CACjC,OAAO,KAAK,UAAU,CAAK,EAG7B,SAAS,CAAW,CAAC,EAAgB,CACnC,MAAO,GAAG,IAUL,SAAS,CAAkB,CAAC,EAAe,EAA6B,CAC7E,MAAM,EAAa,EAA2B,CAAI,EAClD,IAAK,EAAY,MAAM,IAAI,UAAU,mCAAmC,IAAO,EAC/E,OAAO,EAAQ,GAAY,CAAK,EAa3B,SAAS,CAAmB,CAAC,EAAgB,EAA6B,CAC/E,MAAM,EAAa,EAA2B,CAAI,EAClD,IAAK,EAAY,MAAM,IAAI,UAAU,mCAAmC,IAAO,EAC/E,OAAQ,EAAQ,IAAe,EAAQ,SAAS,CAAK,EAQvD,SAAS,CAAS,CAAC,EAAkC,CACnD,cAAc,IAAU,UAG1B,SAAS,CAAQ,CAAC,EAAiC,CACjD,cAAc,IAAU,SAG1B,SAAS,CAAQ,CAAC,EAAiC,CACjD,cAAc,IAAU,SAG1B,SAAS,CAAO,CAAC,EAAyC,CACxD,OAAO,MAAM,QAAQ,CAAK,EAG5B,SAAS,CAAQ,CAAC,EAAiC,CACjD,cAAc,IAAU,WAAa,MAAM,QAAQ,CAAK,GAAK,IAAU,KAMlE,SAAS,CAAa,CAAC,EAA6B,EAAgC,CACzF,OAAQ,QACD,QACH,OAAO,EAAU,CAAY,OAC1B,OACH,OAAO,EAAS,CAAY,OACzB,OACH,OAAO,EAAS,CAAY,OACzB,MACH,OAAO,EAAQ,CAAY,OACxB,OACH,OAAO,EAAS,CAAY,UAE5B,MAAO,IA7Hb,IAAM,EAAsC,CAC1C,KAAK,CAAC,EAA0B,CAC9B,MAAM,EAAQ,EAAqB,CAAK,EACxC,IAAK,MAAM,QAAQ,CAAK,EACtB,MAAM,IAAI,UAAU,qDAAqD,IAAQ,EAEnF,OAAO,GAGT,OAAO,CAAC,EAAwB,CAC9B,QAAS,IAAU,KAAO,OAAO,CAAK,EAAE,YAAY,IAAM,UAG5D,MAAM,CAAC,EAAuB,CAE5B,OADe,OAAO,EAAM,QAAQ,KAAM,EAAE,CAAC,GAI/C,MAAM,CAAC,EAAuB,CAC5B,MAAM,EAAS,KAAK,MAAM,CAAK,EAC/B,GAAI,IAAW,aAAe,IAAW,UAAY,MAAM,QAAQ,CAAM,EACvE,MAAM,IAAI,UACR,0DAA0D,eAAmB,EAC3E,CACF,IACF,EAEF,OAAO,GAGT,MAAM,CAAC,EAAuB,CAC5B,OAAO,EAEX,EAQM,EAAsC,CAC1C,QAAS,EACT,MAAO,EACP,OAAQ,CACV,EAoFa,EAAkB,CAC7B,EACA,EACA,EACA,IACG,CACH,GAAI,IAAS,QAEX,OADqB,EAAO,aAAa,CAAY,GAC9B,EAGzB,MAAM,EAAiB,EAAO,aAAa,CAAY,EACvD,OAAO,IAAmB,KACtB,EAAmB,EAAgB,CAAI,EACvC,GAAiB,EAAoB,CAAI",
8
- "debugId": "30A184A74A9EDA1464756E2164756E21",
6
+ "mappings": "",
7
+ "debugId": "C2F55D0EA13687F864756E2164756E21",
9
8
  "names": []
10
9
  }
@@ -1,3 +1,3 @@
1
- import{G as e,H as f,I as m,J as p,K as t,L as x,M as a}from"./attribute-utils.js";export{t as writeAttributeValue,p as readAttributeValue,f as parseAttributeTypeDefault,e as parseAttributeTypeConstant,x as isValueOfType,a as getInitialValue,m as defaultValueForType};
1
+ import{ab as e,bb as f,cb as m,db as p,eb as t,fb as x,gb as a}from"../chunk-66e6s792.js";import"../chunk-vgtggzb6.js";export{t as writeAttributeValue,p as readAttributeValue,f as parseAttributeTypeDefault,e as parseAttributeTypeConstant,x as isValueOfType,a as getInitialValue,m as defaultValueForType};
2
2
 
3
- //# debugId=AEC50E1BB3AFD41D64756E2164756E21
3
+ //# debugId=93B92726ADA25D5364756E2164756E21
@@ -4,6 +4,6 @@
4
4
  "sourcesContent": [
5
5
  ],
6
6
  "mappings": "",
7
- "debugId": "AEC50E1BB3AFD41D64756E2164756E21",
7
+ "debugId": "93B92726ADA25D5364756E2164756E21",
8
8
  "names": []
9
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecopages/radiant",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-alpha.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ecopages/radiant.git"
@@ -15,29 +15,42 @@
15
15
  "build:lib": "bun run clean && bun run build:files && bun run build:types",
16
16
  "build:files": "bun run ./build.ts",
17
17
  "build:types": "tsc -p tsconfig.build.json && tsc-alias",
18
- "watch:lib": "bun run ./build.ts --watch",
19
18
  "clean": "rm -rf ./dist",
19
+ "watch:lib": "bun run ./build.ts --watch",
20
+ "size:check": "bun run ./check-size.ts",
21
+ "size:report": "bun run ./check-size.ts --report-only",
20
22
  "test:standard": "vitest run",
21
23
  "test:legacy": "vitest run -- --legacy",
22
24
  "test:lib": "bun run test:standard && bun run test:legacy",
23
25
  "test:lib:coverage": "bun run test:standard -- --coverage && bun run vitest run --coverage -- --legacy"
24
26
  },
25
- "dependencies": {
26
- "@kitajs/html": "^4.1.0"
27
- },
27
+ "dependencies": {},
28
28
  "devDependencies": {
29
- "@happy-dom/global-registrator": "^15.7.4",
30
- "@kitajs/ts-html-plugin": "^4.0.1",
29
+ "@ecopages/jsx": "workspace:*",
30
+ "@ecopages/signals": "workspace:*",
31
31
  "@testing-library/dom": "^10.4.0",
32
32
  "@testing-library/user-event": "^14.5.2",
33
- "@vitest/coverage-istanbul": "^2.1.3",
33
+ "@vitest/browser": "^3.2.4",
34
+ "@vitest/coverage-istanbul": "^3.2.4",
34
35
  "bun-types": "latest",
35
36
  "tsc-alias": "1.8.10",
36
- "esbuild": "^0.23.0",
37
- "vitest": "^2.1.3"
37
+ "esbuild": "^0.25.0",
38
+ "playwright": "^1.52.0",
39
+ "vite": "^7.1.3",
40
+ "vitest": "^3.2.4"
38
41
  },
39
- "files": ["/dist/*"],
40
- "sideEffects": false,
42
+ "peerDependencies": {
43
+ "@ecopages/jsx": ">=0.3.0-alpha.0 <1.0.0",
44
+ "@ecopages/signals": ">=0.3.0-alpha.0 <1.0.0"
45
+ },
46
+ "files": [
47
+ "/dist/*",
48
+ "size-budget.json"
49
+ ],
50
+ "sideEffects": [
51
+ "./dist/client/install-hydrator.js",
52
+ "./dist/server/install-light-dom-shim.js"
53
+ ],
41
54
  "exports": {
42
55
  "./package.json": {
43
56
  "import": "./package.json"
@@ -70,10 +83,46 @@
70
83
  "types": "./dist/context/decorators/context-selector.d.ts",
71
84
  "import": "./dist/context/decorators/context-selector.js"
72
85
  },
86
+ "./context/on-context-update": {
87
+ "types": "./dist/context/decorators/on-context-update.d.ts",
88
+ "import": "./dist/context/decorators/on-context-update.js"
89
+ },
73
90
  "./core/radiant-element": {
74
91
  "types": "./dist/core/radiant-element.d.ts",
75
92
  "import": "./dist/core/radiant-element.js"
76
93
  },
94
+ "./core/radiant-component": {
95
+ "types": "./dist/core/radiant-component.d.ts",
96
+ "import": "./dist/core/radiant-component.js"
97
+ },
98
+ "./client/hydrator": {
99
+ "types": "./dist/client/hydrator.d.ts",
100
+ "import": "./dist/client/hydrator.js"
101
+ },
102
+ "./client/install-hydrator": {
103
+ "types": "./dist/client/install-hydrator.d.ts",
104
+ "import": "./dist/client/install-hydrator.js"
105
+ },
106
+ "./signals/host-resource": {
107
+ "types": "./dist/signals/host-resource.d.ts",
108
+ "import": "./dist/signals/host-resource.js"
109
+ },
110
+ "./server/light-dom-shim": {
111
+ "types": "./dist/server/light-dom-shim.d.ts",
112
+ "import": "./dist/server/light-dom-shim.js"
113
+ },
114
+ "./server/install-light-dom-shim": {
115
+ "types": "./dist/server/install-light-dom-shim.d.ts",
116
+ "import": "./dist/server/install-light-dom-shim.js"
117
+ },
118
+ "./server/render-component": {
119
+ "types": "./dist/server/render-component.d.ts",
120
+ "import": "./dist/server/render-component.js"
121
+ },
122
+ "./server/project-root": {
123
+ "types": "./dist/server/project-root.d.ts",
124
+ "import": "./dist/server/project-root.js"
125
+ },
77
126
  "./decorators/bound": {
78
127
  "types": "./dist/decorators/bound.d.ts",
79
128
  "import": "./dist/decorators/bound.js"
@@ -86,6 +135,26 @@
86
135
  "types": "./dist/decorators/debounce.d.ts",
87
136
  "import": "./dist/decorators/debounce.js"
88
137
  },
138
+ "./helpers/debounce": {
139
+ "types": "./dist/helpers/debounce.d.ts",
140
+ "import": "./dist/helpers/debounce.js"
141
+ },
142
+ "./helpers/create-query": {
143
+ "types": "./dist/helpers/create-query.d.ts",
144
+ "import": "./dist/helpers/create-query.js"
145
+ },
146
+ "./helpers/create-query-slot": {
147
+ "types": "./dist/helpers/create-query-slot.d.ts",
148
+ "import": "./dist/helpers/create-query-slot.js"
149
+ },
150
+ "./helpers/create-event": {
151
+ "types": "./dist/helpers/create-event.d.ts",
152
+ "import": "./dist/helpers/create-event.js"
153
+ },
154
+ "./helpers/create-event-listener": {
155
+ "types": "./dist/helpers/create-event-listener.d.ts",
156
+ "import": "./dist/helpers/create-event-listener.js"
157
+ },
89
158
  "./decorators/event": {
90
159
  "types": "./dist/decorators/event.d.ts",
91
160
  "import": "./dist/decorators/event.js"
@@ -98,26 +167,42 @@
98
167
  "types": "./dist/decorators/on-updated.d.ts",
99
168
  "import": "./dist/decorators/on-updated.js"
100
169
  },
170
+ "./decorators/prop": {
171
+ "types": "./dist/decorators/prop.d.ts",
172
+ "import": "./dist/decorators/prop.js"
173
+ },
101
174
  "./decorators/query": {
102
175
  "types": "./dist/decorators/query.d.ts",
103
176
  "import": "./dist/decorators/query.js"
104
177
  },
105
- "./decorators/reactive-field": {
106
- "types": "./dist/decorators/reactive-field.d.ts",
107
- "import": "./dist/decorators/reactive-field.js"
178
+ "./decorators/query-slot": {
179
+ "types": "./dist/decorators/query-slot.d.ts",
180
+ "import": "./dist/decorators/query-slot.js"
181
+ },
182
+ "./decorators/resource": {
183
+ "types": "./dist/decorators/resource.d.ts",
184
+ "import": "./dist/decorators/resource.js"
108
185
  },
109
- "./decorators/reactive-prop": {
110
- "types": "./dist/decorators/reactive-prop.d.ts",
111
- "import": "./dist/decorators/reactive-prop.js"
186
+ "./decorators/signal": {
187
+ "types": "./dist/decorators/signal.d.ts",
188
+ "import": "./dist/decorators/signal.js"
112
189
  },
113
- "./mixins/with-kita": {
114
- "types": "./dist/mixins/with-kita.d.ts",
115
- "import": "./dist/mixins/with-kita.js"
190
+ "./decorators/state": {
191
+ "types": "./dist/decorators/state.d.ts",
192
+ "import": "./dist/decorators/state.js"
116
193
  },
117
194
  "./tools/stringify-typed": {
118
195
  "types": "./dist/tools/stringify-typed.d.ts",
119
196
  "import": "./dist/tools/stringify-typed.js"
120
197
  },
198
+ "./tools/render-jsx-template": {
199
+ "types": "./dist/tools/render-jsx-template.d.ts",
200
+ "import": "./dist/tools/render-jsx-template.js"
201
+ },
202
+ "./tools/escape-script-json": {
203
+ "types": "./dist/tools/escape-script-json.d.ts",
204
+ "import": "./dist/tools/escape-script-json.js"
205
+ },
121
206
  "./tools/event-emitter": {
122
207
  "types": "./dist/tools/event-emitter.d.ts",
123
208
  "import": "./dist/tools/event-emitter.js"
@@ -0,0 +1,16 @@
1
+ {
2
+ "bundles": [
3
+ {
4
+ "label": "root-client-surface",
5
+ "entrypoint": "./src/index.ts",
6
+ "maxBytes": 46080,
7
+ "maxGzipBytes": 12288
8
+ },
9
+ {
10
+ "label": "server-render",
11
+ "entrypoint": "./src/server/render-component.ts",
12
+ "maxBytes": 15360,
13
+ "maxGzipBytes": 5120
14
+ }
15
+ ]
16
+ }
@@ -1,6 +0,0 @@
1
- import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
2
- /**
3
- * A decorator to define a reactive field.
4
- * Every time the field changes, the `notifyUpdate` method will be called.
5
- */
6
- export declare function reactiveField(protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'], nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext']): any;
@@ -1,4 +0,0 @@
1
- import{A as q}from"./legacy/reactive-field.js";import{B as u}from"./standard/reactive-field.js";function D(k,j){if(typeof j==="object")return u(k,j);return q(k,j)}export{D as reactiveField};
2
- export{D as z};
3
-
4
- //# debugId=00F5476E4FB6968164756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/reactive-field.ts"],
4
- "sourcesContent": [
5
- "import type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { reactiveField as legacyReactiveField } from './legacy/reactive-field';\nimport { reactiveField as standardReactiveField } from './standard/reactive-field';\n\n/**\n * A decorator to define a reactive field.\n * Every time the field changes, the `notifyUpdate` method will be called.\n */\nexport function reactiveField(\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n): any {\n if (typeof nameOrContext === 'object') {\n return standardReactiveField(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyReactiveField(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n}\n"
6
- ],
7
- "mappings": "6FAYO,YAAS,CAAa,CAC3B,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EACL,EACA,CACF,EAEF,OAAO,EACL,EACA,CACF",
8
- "debugId": "00F5476E4FB6968164756E2164756E21",
9
- "names": []
10
- }
@@ -1,8 +0,0 @@
1
- import type { ReactivePropertyOptions } from '../core/radiant-element';
2
- import type { StandardOrLegacyFieldDecoratorArgs } from '../types';
3
- /**
4
- * A decorator to define a reactive property.
5
- * Every time the property changes, the `updated` method will be called.
6
- * @param options {@link ReactivePropertyOptions} The options for the reactive property.
7
- */
8
- export declare function reactiveProp<T = unknown>(options: ReactivePropertyOptions<T>): (protoOrTarget: StandardOrLegacyFieldDecoratorArgs["protoOrTarget"], nameOrContext: StandardOrLegacyFieldDecoratorArgs["nameOrContext"]) => any;
@@ -1,4 +0,0 @@
1
- import{F as B}from"./legacy/reactive-prop.js";import"../utils/attribute-utils.js";import{N as D}from"./standard/reactive-prop.js";function H(q){return function(z,j){if(typeof j==="object")return D(q)(z,j);return B(q)(z,j)}}export{H as reactiveProp};
2
- export{H as E};
3
-
4
- //# debugId=9B2752CFBE31C96A64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/decorators/reactive-prop.ts"],
4
- "sourcesContent": [
5
- "import type { ReactivePropertyOptions } from '../core/radiant-element';\nimport type {\n LegacyFieldDecoratorArgs,\n StandardFieldDecoratorArgs,\n StandardOrLegacyFieldDecoratorArgs,\n} from '../types';\nimport { reactiveProp as legacyReactiveProp } from './legacy/reactive-prop';\nimport { reactiveProp as standardReactiveProp } from './standard/reactive-prop';\n\n/**\n * A decorator to define a reactive property.\n * Every time the property changes, the `updated` method will be called.\n * @param options {@link ReactivePropertyOptions} The options for the reactive property.\n */\nexport function reactiveProp<T = unknown>(options: ReactivePropertyOptions<T>) {\n return function (\n protoOrTarget: StandardOrLegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext: StandardOrLegacyFieldDecoratorArgs['nameOrContext'],\n ): any {\n if (typeof nameOrContext === 'object') {\n return standardReactiveProp(options)(\n protoOrTarget as StandardFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as StandardFieldDecoratorArgs['nameOrContext'],\n );\n }\n return legacyReactiveProp(options)(\n protoOrTarget as LegacyFieldDecoratorArgs['protoOrTarget'],\n nameOrContext as LegacyFieldDecoratorArgs['nameOrContext'],\n );\n };\n}\n"
6
- ],
7
- "mappings": "8HAcO,WAAS,GAAyB,CAAC,EAAqC,CAC7E,eAAgB,CACd,EACA,EACK,CACL,UAAW,IAAkB,SAC3B,OAAO,EAAqB,CAAO,EACjC,EACA,CACF,EAEF,OAAO,EAAmB,CAAO,EAC/B,EACA,CACF",
8
- "debugId": "9B2752CFBE31C96A64756E2164756E21",
9
- "names": []
10
- }
@@ -1 +0,0 @@
1
- export * from './with-kita';
@@ -1,3 +0,0 @@
1
- import{d as e}from"./with-kita.js";export{e as WithKita};
2
-
3
- //# debugId=E2A408E081E6A67164756E2164756E21
@@ -1,15 +0,0 @@
1
- import type { RadiantElement, RenderInsertPosition } from '../core/radiant-element';
2
- type Constructor<T> = new (...args: any[]) => T;
3
- type WithKitaRenderTemplateProps = {
4
- target: HTMLElement;
5
- template: JSX.Element | string;
6
- insert?: RenderInsertPosition;
7
- };
8
- interface WithKitaMixin {
9
- renderTemplate: (props: WithKitaRenderTemplateProps) => Promise<void>;
10
- }
11
- /**
12
- * A mixin that provides a method to render a JSX template into an HTMLElement.
13
- */
14
- export declare function WithKita<T extends Constructor<RadiantElement>>(Base: T): T & Constructor<WithKitaMixin>;
15
- export {};
@@ -1,4 +0,0 @@
1
- function u(k){return class extends k{async renderTemplate({target:b=this,template:c,insert:q="replace"}){const j=typeof c!=="string"?c.toString():c;switch(q){case"replace":b.innerHTML=j;break;case"beforeend":b.insertAdjacentHTML("beforeend",j);break;case"afterbegin":b.insertAdjacentHTML("afterbegin",j);break}}}}export{u as WithKita};
2
- export{u as d};
3
-
4
- //# debugId=22E283929C2A685B64756E2164756E21
@@ -1,10 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/mixins/with-kita.ts"],
4
- "sourcesContent": [
5
- "import type { RadiantElement, RenderInsertPosition } from '../core/radiant-element';\n\ntype Constructor<T> = new (...args: any[]) => T;\n\ntype WithKitaRenderTemplateProps = {\n target: HTMLElement;\n template: JSX.Element | string;\n insert?: RenderInsertPosition;\n};\n\ninterface WithKitaMixin {\n renderTemplate: (props: WithKitaRenderTemplateProps) => Promise<void>;\n}\n\n/**\n * A mixin that provides a method to render a JSX template into an HTMLElement.\n */\nexport function WithKita<T extends Constructor<RadiantElement>>(Base: T): T & Constructor<WithKitaMixin> {\n return class extends Base implements WithKitaMixin {\n override async renderTemplate({ target = this, template, insert = 'replace' }: WithKitaRenderTemplateProps) {\n const safeTemplate = typeof template !== 'string' ? template.toString() : template;\n switch (insert) {\n case 'replace':\n target.innerHTML = safeTemplate;\n break;\n case 'beforeend':\n target.insertAdjacentHTML('beforeend', safeTemplate);\n break;\n case 'afterbegin':\n target.insertAdjacentHTML('afterbegin', safeTemplate);\n break;\n }\n }\n } as T & Constructor<WithKitaMixin>;\n}\n"
6
- ],
7
- "mappings": "AAiBO,SAAS,CAA+C,CAAC,EAAyC,CACvG,OAAO,cAAc,CAA8B,MAClC,eAAc,EAAG,SAAS,KAAM,WAAU,SAAS,WAA0C,CAC1G,MAAM,SAAsB,IAAa,SAAW,EAAS,SAAS,EAAI,EAC1E,OAAQ,OACD,UACH,EAAO,UAAY,EACnB,UACG,YACH,EAAO,mBAAmB,YAAa,CAAY,EACnD,UACG,aACH,EAAO,mBAAmB,aAAc,CAAY,EACpD,OAGR",
8
- "debugId": "22E283929C2A685B64756E2164756E21",
9
- "names": []
10
- }