@stacksjs/stx 0.2.852 → 0.2.853

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 (511) hide show
  1. package/dist/a11y.d.ts +1 -1
  2. package/dist/analytics.d.ts +1 -1
  3. package/dist/animation.d.ts +1 -44
  4. package/dist/api-client.d.ts +1 -0
  5. package/dist/app-shell.d.ts +2 -2
  6. package/dist/app.d.ts +1 -1
  7. package/dist/application-layers.d.ts +1 -1
  8. package/dist/assets.d.ts +1 -1
  9. package/dist/ast.d.ts +23 -1
  10. package/dist/broadcasting.d.ts +1 -1
  11. package/dist/browser-composables.d.ts +1 -0
  12. package/dist/build-externalize-repeated.d.ts +1 -1
  13. package/dist/build-id.d.ts +1 -0
  14. package/dist/build-views.d.ts +1 -1
  15. package/dist/build.d.ts +3 -3
  16. package/dist/builtins/attrs.d.ts +1 -1
  17. package/dist/builtins/drawer.d.ts +2 -2
  18. package/dist/builtins/icon.d.ts +2 -13
  19. package/dist/builtins/image-delivery.d.ts +1 -1
  20. package/dist/builtins/image-worker.d.ts +2 -2
  21. package/dist/builtins/index.d.ts +22 -22
  22. package/dist/builtins/modal.d.ts +2 -2
  23. package/dist/builtins/safe-image.d.ts +2 -2
  24. package/dist/builtins/stx-image.d.ts +2 -43
  25. package/dist/builtins/stx-link.d.ts +1 -10
  26. package/dist/builtins/stx-loading-indicator.d.ts +1 -13
  27. package/dist/builtins/suspense.d.ts +1 -8
  28. package/dist/builtins/toast.d.ts +2 -3
  29. package/dist/builtins/transition-group.d.ts +1 -2
  30. package/dist/bundle-analyzer/index.d.ts +6 -6
  31. package/dist/bundle-analyzer/report.d.ts +1 -1
  32. package/dist/bundle-analyzer/treemap.d.ts +1 -1
  33. package/dist/caching.d.ts +4 -4
  34. package/dist/chunk-05f4tjsq.js +2 -0
  35. package/dist/{chunk-422r7zkx.js → chunk-0hegjagg.js} +2 -2
  36. package/dist/{chunk-6tns3zet.js → chunk-0wxmmvj0.js} +3 -3
  37. package/dist/chunk-0xwmweqm.js +2 -0
  38. package/dist/chunk-0yc4p3y2.js +2 -0
  39. package/dist/chunk-161p0zcy.js +2 -0
  40. package/dist/chunk-28r4jyvj.js +2 -0
  41. package/dist/{chunk-gwdffrz6.js → chunk-2rxr5cj6.js} +3 -3
  42. package/dist/{chunk-s0pnyd2f.js → chunk-33ph9zb2.js} +4 -4
  43. package/dist/chunk-3b9950gz.js +2 -0
  44. package/dist/chunk-46mw2r3k.js +2 -0
  45. package/dist/chunk-48z6w533.js +3 -0
  46. package/dist/{chunk-88392kaj.js → chunk-4nhbbcr9.js} +5 -5
  47. package/dist/{chunk-f5n871gp.js → chunk-4wx7refk.js} +4 -4
  48. package/dist/chunk-4zkk63v3.js +2 -0
  49. package/dist/{chunk-kp2g6sj6.js → chunk-52szcd15.js} +1 -1
  50. package/dist/chunk-5758n8sm.js +2 -0
  51. package/dist/{chunk-fffjjgnt.js → chunk-5erremft.js} +2 -2
  52. package/dist/{chunk-r0k5jbvk.js → chunk-5fdpg861.js} +1 -1
  53. package/dist/{chunk-k47addf7.js → chunk-5g1jwxny.js} +9 -9
  54. package/dist/{chunk-fkrf2099.js → chunk-5pft38qa.js} +2 -2
  55. package/dist/chunk-5t8xpkwc.js +2 -0
  56. package/dist/{chunk-aas25pac.js → chunk-63rvsnt2.js} +3 -3
  57. package/dist/chunk-6bm19d4k.js +2 -0
  58. package/dist/chunk-6c45vx1e.js +2 -0
  59. package/dist/chunk-6vc1dwqt.js +2 -0
  60. package/dist/chunk-76b6m6n0.js +2 -0
  61. package/dist/{chunk-qev14f76.js → chunk-7kc9xwht.js} +3 -3
  62. package/dist/{chunk-42hj9jnj.js → chunk-7rtvravz.js} +7 -7
  63. package/dist/{chunk-hh9hnx1a.js → chunk-7wwq1btb.js} +1 -1
  64. package/dist/{chunk-pbq1gn94.js → chunk-83d468me.js} +4 -4
  65. package/dist/{chunk-r53tqxmq.js → chunk-8cg88x7m.js} +39 -39
  66. package/dist/chunk-8fprfzcn.js +2 -0
  67. package/dist/{chunk-tn9h4prj.js → chunk-8g0243g1.js} +3 -3
  68. package/dist/chunk-9h1w4py6.js +2 -0
  69. package/dist/{chunk-tt3jxdy5.js → chunk-9mzskb69.js} +3 -3
  70. package/dist/{chunk-8cvgm13s.js → chunk-9r999ees.js} +2 -2
  71. package/dist/{chunk-2d7e5g92.js → chunk-9z7fnv33.js} +1 -1
  72. package/dist/{chunk-818kkhb8.js → chunk-a0ahcd1g.js} +2 -2
  73. package/dist/chunk-aajezypd.js +2 -0
  74. package/dist/{chunk-714p8awg.js → chunk-agvm20mz.js} +3 -3
  75. package/dist/{chunk-3bp76dx5.js → chunk-baxrx1rz.js} +9 -9
  76. package/dist/{chunk-xndr2dx9.js → chunk-bkefg64w.js} +5 -5
  77. package/dist/{chunk-n2z4kyba.js → chunk-bqxrfagh.js} +1 -1
  78. package/dist/chunk-bz4bskx3.js +2 -0
  79. package/dist/chunk-bze3ksvb.js +2 -0
  80. package/dist/chunk-c2et7w0g.js +2 -0
  81. package/dist/{chunk-c1dkvqr5.js → chunk-c54bhqrg.js} +39 -39
  82. package/dist/{chunk-keeetray.js → chunk-c9k0yhyq.js} +2 -2
  83. package/dist/{chunk-g34tj6ny.js → chunk-cabdpgxg.js} +3 -3
  84. package/dist/{chunk-e0dgx3ev.js → chunk-cf7dk9ev.js} +10 -10
  85. package/dist/chunk-cfmjtyzm.js +2 -0
  86. package/dist/{chunk-h9gjt73q.js → chunk-csgfws3j.js} +2 -2
  87. package/dist/{chunk-scaawv2r.js → chunk-csksn1kg.js} +2 -2
  88. package/dist/{chunk-t23jn83r.js → chunk-ctb1bj28.js} +2 -2
  89. package/dist/chunk-cxf0rzv6.js +2 -0
  90. package/dist/{chunk-axga9ebe.js → chunk-d4gy4yz0.js} +2 -2
  91. package/dist/chunk-dee5mtdv.js +2 -0
  92. package/dist/chunk-dm10y06z.js +2 -0
  93. package/dist/chunk-dw9vnhc4.js +2 -0
  94. package/dist/chunk-e5vbwsty.js +2 -0
  95. package/dist/chunk-e64m5ayt.js +2 -0
  96. package/dist/{chunk-z33esms3.js → chunk-ehp792dy.js} +2 -2
  97. package/dist/{chunk-tm1ec751.js → chunk-f9thwm8c.js} +4 -4
  98. package/dist/chunk-faf3gh3j.js +2 -0
  99. package/dist/chunk-fbakngjt.js +2 -0
  100. package/dist/{chunk-amerebya.js → chunk-fhrvxfq9.js} +2 -2
  101. package/dist/{chunk-pkq96sqk.js → chunk-fj5jw2jd.js} +6 -6
  102. package/dist/chunk-fn2cjkp0.js +2 -0
  103. package/dist/{chunk-m05pqmcj.js → chunk-fphnst8a.js} +5 -5
  104. package/dist/chunk-fsg958xx.js +2 -0
  105. package/dist/{chunk-1pavg6q5.js → chunk-fxt9vwdw.js} +38 -38
  106. package/dist/chunk-g976n4r1.js +2 -0
  107. package/dist/chunk-gn1dmfdv.js +2 -0
  108. package/dist/chunk-gsn5vvw4.js +2 -0
  109. package/dist/chunk-hmys6w75.js +2 -0
  110. package/dist/chunk-hqtj4ngq.js +2 -0
  111. package/dist/chunk-hwq24mwt.js +2 -0
  112. package/dist/{chunk-0rszcb0m.js → chunk-j1yjbykm.js} +6 -6
  113. package/dist/{chunk-frhdk0p9.js → chunk-j2wcawmf.js} +2 -2
  114. package/dist/{chunk-k7dvn2r8.js → chunk-jr346anv.js} +2 -2
  115. package/dist/{chunk-d5m6xy9p.js → chunk-jtpqqxzb.js} +6 -6
  116. package/dist/chunk-jy5fezyr.js +2 -0
  117. package/dist/chunk-kfq4mwem.js +2 -0
  118. package/dist/chunk-kgrvvtcy.js +3 -0
  119. package/dist/chunk-kkk1dtq6.js +2 -0
  120. package/dist/chunk-knd3m4t4.js +2 -0
  121. package/dist/{chunk-jtccqpwa.js → chunk-kvafq9gy.js} +2 -2
  122. package/dist/chunk-m3kc2a3v.js +2 -0
  123. package/dist/{chunk-7x6aqvfe.js → chunk-m9n3ahsy.js} +2 -2
  124. package/dist/{chunk-1sedjgmj.js → chunk-mdsc3rz1.js} +2 -2
  125. package/dist/chunk-mjp2sp74.js +2 -0
  126. package/dist/{chunk-g046t3hb.js → chunk-mmdqdkbd.js} +1 -1
  127. package/dist/{chunk-caehra7e.js → chunk-mpmnbvy4.js} +5 -5
  128. package/dist/chunk-mx79sfyr.js +2 -0
  129. package/dist/chunk-n6w82yf2.js +2 -0
  130. package/dist/{chunk-qjc3qjyf.js → chunk-n77xrpv9.js} +2 -2
  131. package/dist/{chunk-2stgv8kd.js → chunk-n8qd1n8w.js} +3 -3
  132. package/dist/{chunk-agbkv9ab.js → chunk-ngnvyqk3.js} +2 -2
  133. package/dist/{chunk-9gzgfj19.js → chunk-nyqvtca1.js} +4 -4
  134. package/dist/{chunk-te090fxv.js → chunk-nz202f97.js} +4 -4
  135. package/dist/chunk-pd3wzh2x.js +2 -0
  136. package/dist/chunk-pj3xwwtg.js +2 -0
  137. package/dist/{chunk-gsrdjmw9.js → chunk-pm241ehv.js} +2 -2
  138. package/dist/{chunk-8vjr3atq.js → chunk-prfrqfae.js} +2 -2
  139. package/dist/chunk-q1z8edtn.js +2 -0
  140. package/dist/{chunk-3wkgd883.js → chunk-qkcn0exq.js} +6 -6
  141. package/dist/{chunk-m710wkr4.js → chunk-qnyh0m22.js} +1 -1
  142. package/dist/{chunk-e85wsz8y.js → chunk-r69en2jg.js} +1 -1
  143. package/dist/{chunk-833y1ndd.js → chunk-rbxbgvkf.js} +1 -1
  144. package/dist/{chunk-tgk6bst6.js → chunk-rmeey2xa.js} +4 -4
  145. package/dist/{chunk-0kaph5qq.js → chunk-rrppkyv0.js} +42 -42
  146. package/dist/{chunk-whdy7r35.js → chunk-rw7q2a3c.js} +9 -9
  147. package/dist/chunk-s4c1mq0r.js +2 -0
  148. package/dist/chunk-sx1prttb.js +2 -0
  149. package/dist/chunk-syww37qd.js +2 -0
  150. package/dist/{chunk-6p62jjzm.js → chunk-t3a3wbjk.js} +2 -2
  151. package/dist/{chunk-0dnetjh8.js → chunk-te82sjhy.js} +48 -48
  152. package/dist/{chunk-2rg9pqmh.js → chunk-tm8a2b69.js} +4 -4
  153. package/dist/{chunk-w7dks1ev.js → chunk-trxha300.js} +5 -5
  154. package/dist/{chunk-tbms7m44.js → chunk-txdxfjbj.js} +3 -3
  155. package/dist/{chunk-m150nmez.js → chunk-vpqgg04q.js} +1 -1
  156. package/dist/{chunk-02w7kaas.js → chunk-vtzkqsq1.js} +17 -17
  157. package/dist/chunk-vw9h1x2m.js +2 -0
  158. package/dist/{chunk-e105xsee.js → chunk-w7p34cr3.js} +1 -1
  159. package/dist/{chunk-sb8vn22f.js → chunk-x1w19y3w.js} +4 -4
  160. package/dist/chunk-x2vybq9n.js +2 -0
  161. package/dist/chunk-x8jsmwhg.js +2 -0
  162. package/dist/chunk-xa9mkdn7.js +2 -0
  163. package/dist/{chunk-gn6yqcz2.js → chunk-xzdjhjz4.js} +4 -4
  164. package/dist/{chunk-kd06c90f.js → chunk-ya6f7mt5.js} +4 -4
  165. package/dist/{chunk-0b7knfwk.js → chunk-zjfp64v7.js} +1 -1
  166. package/dist/{chunk-cm5kpn54.js → chunk-zqpjqcm8.js} +5 -5
  167. package/dist/chunk-zzzqnf9k.js +2 -0
  168. package/dist/cli.js +41 -41
  169. package/dist/client/directive.d.ts +1 -1
  170. package/dist/client/index.d.ts +1 -1
  171. package/dist/client-script-bundler.d.ts +1 -1
  172. package/dist/client-script.d.ts +5 -5
  173. package/dist/client.d.ts +1 -0
  174. package/dist/component-client-factories.d.ts +1 -0
  175. package/dist/component-contract-checks.d.ts +1 -1
  176. package/dist/component-hmr.d.ts +17 -0
  177. package/dist/component-library.d.ts +1 -1
  178. package/dist/component-model.d.ts +1 -1
  179. package/dist/component-processing.d.ts +4 -4
  180. package/dist/component-registry.d.ts +2 -2
  181. package/dist/component-renderer.d.ts +3 -3
  182. package/dist/components.d.ts +1 -1
  183. package/dist/composables/index.d.ts +47 -47
  184. package/dist/composables/use-ambient-sound.d.ts +38 -1
  185. package/dist/composables/use-broadcast-channel.d.ts +1 -0
  186. package/dist/composables/use-cached-query.d.ts +3 -3
  187. package/dist/composables/use-completion.d.ts +1 -1
  188. package/dist/composables/use-cookie.d.ts +1 -1
  189. package/dist/composables/use-eye-dropper.d.ts +1 -0
  190. package/dist/composables/use-fetch.d.ts +2 -2
  191. package/dist/composables/use-form.d.ts +2 -2
  192. package/dist/composables/use-intersection-observer.d.ts +1 -0
  193. package/dist/composables/use-keyboard.d.ts +21 -20
  194. package/dist/composables/use-media-query.d.ts +5 -5
  195. package/dist/composables/use-notification.d.ts +0 -9
  196. package/dist/composables/use-permissions.d.ts +0 -10
  197. package/dist/composables/use-scroll-lock.d.ts +2 -1
  198. package/dist/composables/use-share.d.ts +0 -4
  199. package/dist/composables/use-speech.d.ts +1 -0
  200. package/dist/composables/use-storage.d.ts +1 -1
  201. package/dist/composables/use-timer.d.ts +4 -4
  202. package/dist/composables/use-virtual-list.d.ts +1 -1
  203. package/dist/composables/use-websocket.d.ts +1 -0
  204. package/dist/composables.d.ts +3 -3
  205. package/dist/config.d.ts +18 -1
  206. package/dist/config.js +9 -2
  207. package/dist/craft-compiler.d.ts +1 -5
  208. package/dist/craft-components.d.ts +2 -6
  209. package/dist/craft-entry.d.ts +5 -5
  210. package/dist/craft-entry.js +2 -2
  211. package/dist/craft-ssr.d.ts +1 -1
  212. package/dist/craft.js +2 -2
  213. package/dist/csp.d.ts +1 -1
  214. package/dist/custom-directives.d.ts +1 -1
  215. package/dist/database.d.ts +21 -1
  216. package/dist/deploy/index.d.ts +6 -6
  217. package/dist/dev-server/index.d.ts +7 -7
  218. package/dist/dev-server/serve-app.d.ts +1 -1
  219. package/dist/dev-server/serve-file.d.ts +1 -1
  220. package/dist/dev-server/serve-markdown.d.ts +1 -1
  221. package/dist/dev-server/serve-multi.d.ts +1 -1
  222. package/dist/dev-server/terminal-colors.d.ts +25 -25
  223. package/dist/dev-server/ts-css.d.ts +1 -1
  224. package/dist/dev-server/types.d.ts +1 -1
  225. package/dist/dev-server.d.ts +5 -5
  226. package/dist/directive-api.d.ts +1 -1
  227. package/dist/directive-arguments.d.ts +1 -1
  228. package/dist/docs.d.ts +2 -2
  229. package/dist/document-shell.d.ts +2 -2
  230. package/dist/dynamic-components.d.ts +1 -1
  231. package/dist/edge-runtime.d.ts +1 -1
  232. package/dist/engine-bindings.d.ts +1 -1
  233. package/dist/error-handling.d.ts +1 -1
  234. package/dist/errors/codes.d.ts +28 -28
  235. package/dist/errors/formatter.d.ts +2 -2
  236. package/dist/errors/index.d.ts +5 -5
  237. package/dist/errors/logger.d.ts +14 -1
  238. package/dist/errors/sanitizer.d.ts +13 -2
  239. package/dist/errors/types.d.ts +1 -1
  240. package/dist/expressions.d.ts +3 -36
  241. package/dist/forms-validation.d.ts +5 -1
  242. package/dist/forms.d.ts +21 -21
  243. package/dist/fragment-container.d.ts +1 -0
  244. package/dist/heatmap.d.ts +2 -5
  245. package/dist/hot-reload.d.ts +3 -0
  246. package/dist/hydration.d.ts +28 -0
  247. package/dist/i18n.d.ts +2 -1
  248. package/dist/image-optimization/build-plugin.d.ts +2 -2
  249. package/dist/image-optimization/component.d.ts +1 -1
  250. package/dist/image-optimization/directive.d.ts +3 -3
  251. package/dist/image-optimization/index.d.ts +6 -6
  252. package/dist/image-optimization/processor.d.ts +1 -0
  253. package/dist/image-optimization/serve.d.ts +2 -1
  254. package/dist/includes.d.ts +2 -2
  255. package/dist/index.d.ts +171 -171
  256. package/dist/init.d.ts +1 -0
  257. package/dist/installed-entry.d.ts +1 -1
  258. package/dist/jsx-runtime.d.ts +2 -2
  259. package/dist/lazy-loader.d.ts +5 -0
  260. package/dist/loading-indicator.d.ts +0 -2
  261. package/dist/loops.d.ts +3 -3
  262. package/dist/manifest.d.ts +2 -2
  263. package/dist/media/client/index.d.ts +6 -6
  264. package/dist/media/image/component.d.ts +1 -1
  265. package/dist/media/image/directive.d.ts +2 -2
  266. package/dist/media/image/editing.d.ts +35 -35
  267. package/dist/media/image/index.d.ts +6 -6
  268. package/dist/media/image/placeholder.d.ts +1 -1
  269. package/dist/media/image/processor/cache.d.ts +3 -2
  270. package/dist/media/image/processor/index.d.ts +4 -4
  271. package/dist/media/image/processor/optimizer.d.ts +1 -1
  272. package/dist/media/image/processor/responsive.d.ts +1 -1
  273. package/dist/media/image/srcset.d.ts +6 -6
  274. package/dist/media/index.d.ts +13 -13
  275. package/dist/media/manager/embed.d.ts +1 -1
  276. package/dist/media/protected/component.d.ts +1 -1
  277. package/dist/media/protected/index.d.ts +2 -2
  278. package/dist/media/protected/signature.d.ts +1 -1
  279. package/dist/media/shared/index.d.ts +2 -2
  280. package/dist/media/upload/component.d.ts +1 -1
  281. package/dist/media/upload/index.d.ts +1 -1
  282. package/dist/media/video/directive.d.ts +2 -2
  283. package/dist/media/video/index.d.ts +2 -2
  284. package/dist/media/video/processor/cache.d.ts +3 -2
  285. package/dist/media/video/processor/index.d.ts +5 -5
  286. package/dist/media/video/processor/streaming.d.ts +1 -1
  287. package/dist/media/video/processor/thumbnail.d.ts +1 -1
  288. package/dist/media/video/processor/transcoder.d.ts +1 -1
  289. package/dist/meta-arguments.d.ts +1 -1
  290. package/dist/middleware.d.ts +1 -1
  291. package/dist/native/bridge/protocol.d.ts +15 -14
  292. package/dist/native/cli.d.ts +1 -1
  293. package/dist/native/compiler/browser.d.ts +1 -1
  294. package/dist/native/compiler/bundle.d.ts +3 -3
  295. package/dist/native/compiler/class-table.d.ts +4 -4
  296. package/dist/native/compiler/client-script.d.ts +1 -1
  297. package/dist/native/compiler/component-mapping.d.ts +1 -1
  298. package/dist/native/compiler/design-tokens.d.ts +1 -1
  299. package/dist/native/compiler/headwind-to-style.d.ts +3 -3
  300. package/dist/native/compiler/html-to-ir.d.ts +1 -1
  301. package/dist/native/compiler/inline-style.d.ts +2 -2
  302. package/dist/native/compiler/ir.d.ts +3 -3
  303. package/dist/native/compiler/layout-chrome.d.ts +1 -1
  304. package/dist/native/compiler/render-screen.d.ts +5 -5
  305. package/dist/native/compiler/shared-scripts.d.ts +1 -1
  306. package/dist/native/compiler/svg.d.ts +1 -1
  307. package/dist/native/components/primitives.d.ts +32 -32
  308. package/dist/native/floating-actions.d.ts +1 -1
  309. package/dist/native/hot-reload/client.d.ts +26 -1
  310. package/dist/native/index.d.ts +19 -19
  311. package/dist/native/runtime/binding-tree.d.ts +8 -3
  312. package/dist/native/runtime/browser-renderer.d.ts +33 -3
  313. package/dist/native/runtime/browser-screen.d.ts +2 -2
  314. package/dist/native/runtime/compact-document.d.ts +3 -5
  315. package/dist/native/runtime/craft-bridge.d.ts +4 -3
  316. package/dist/native/runtime/craft.d.ts +1 -1
  317. package/dist/native/runtime/event-stream.d.ts +1 -0
  318. package/dist/native/runtime/initial-media-mutations.d.ts +1 -1
  319. package/dist/native/runtime/jsc-globals.d.ts +18 -32
  320. package/dist/native/runtime/native-host.d.ts +8 -8
  321. package/dist/native/runtime/navigation-chrome.d.ts +1 -1
  322. package/dist/native/runtime/overlay-presenter.d.ts +3 -2
  323. package/dist/native/runtime/shared-screen.d.ts +7 -6
  324. package/dist/native/runtime/view-operations.d.ts +1 -1
  325. package/dist/native/runtime/web-navigation.d.ts +1 -0
  326. package/dist/native/runtime/web-storage.d.ts +4 -2
  327. package/dist/native/testing-mutations.d.ts +1 -1
  328. package/dist/native/testing.d.ts +4 -3
  329. package/dist/native/testing.js +21 -2
  330. package/dist/native/ui.d.ts +37 -36
  331. package/dist/native-build.d.ts +3 -3
  332. package/dist/offline/app-service-worker.d.ts +1 -0
  333. package/dist/offline/query-cache.d.ts +2 -2
  334. package/dist/page-action.d.ts +1 -1
  335. package/dist/parser/expression-parser.d.ts +1 -1
  336. package/dist/parser/index.d.ts +4 -4
  337. package/dist/parser/tokenizer.d.ts +16 -0
  338. package/dist/performance-utils.d.ts +136 -256
  339. package/dist/plugin-system.d.ts +7 -1
  340. package/dist/precompiler.d.ts +32 -1
  341. package/dist/process.d.ts +6 -6
  342. package/dist/production-build.d.ts +36 -0
  343. package/dist/production-builder.d.ts +3 -3
  344. package/dist/production-server.d.ts +1 -1
  345. package/dist/pwa/audit.d.ts +1 -1
  346. package/dist/pwa/directives.d.ts +1 -18
  347. package/dist/pwa/icons.d.ts +1 -1
  348. package/dist/pwa/index.d.ts +10 -10
  349. package/dist/pwa/inject.d.ts +1 -1
  350. package/dist/pwa/manifest.d.ts +1 -1
  351. package/dist/pwa/offline.d.ts +1 -1
  352. package/dist/pwa/precache.d.ts +1 -1
  353. package/dist/pwa/service-worker.d.ts +1 -1
  354. package/dist/pwa/workbox-strategies.d.ts +1 -1
  355. package/dist/pwa/workbox.d.ts +1 -1
  356. package/dist/pwa.d.ts +9 -9
  357. package/dist/pwa.js +3 -3
  358. package/dist/reactive-bindings.d.ts +1 -0
  359. package/dist/render-memo.d.ts +1 -1
  360. package/dist/render.d.ts +1 -1
  361. package/dist/route-response-cache.d.ts +5 -1
  362. package/dist/route-types.d.ts +1 -0
  363. package/dist/runtime-config-loader.d.ts +1 -1
  364. package/dist/runtime-config-server.d.ts +1 -4
  365. package/dist/runtime-config-types.d.ts +2 -2
  366. package/dist/runtime-injection.d.ts +1 -1
  367. package/dist/safe-evaluator.d.ts +38 -55
  368. package/dist/script-validation.d.ts +1 -1
  369. package/dist/seo.d.ts +1 -9
  370. package/dist/serve.d.ts +1 -1
  371. package/dist/server-api.d.ts +3 -2
  372. package/dist/server-components.d.ts +2 -1
  373. package/dist/server-data.d.ts +1 -0
  374. package/dist/signal-processing.d.ts +3 -3
  375. package/dist/signals.d.ts +2 -2
  376. package/dist/site-builder/build.d.ts +1 -1
  377. package/dist/site-builder/i18n.d.ts +1 -1
  378. package/dist/site-builder/index.d.ts +9 -9
  379. package/dist/site-builder/robots.d.ts +1 -1
  380. package/dist/site-builder/router.d.ts +1 -1
  381. package/dist/site-builder/seo.d.ts +1 -1
  382. package/dist/site-builder/sitemap.d.ts +1 -1
  383. package/dist/site-builder/theme.d.ts +1 -1
  384. package/dist/source-maps.d.ts +14 -0
  385. package/dist/ssg-static-paths.d.ts +1 -1
  386. package/dist/ssg.d.ts +3 -22
  387. package/dist/ssg.js +3 -3
  388. package/dist/ssr.d.ts +2 -1
  389. package/dist/state-management.d.ts +1 -0
  390. package/dist/story/addons.d.ts +1 -1
  391. package/dist/story/analytics.d.ts +7 -0
  392. package/dist/story/auto-stories.d.ts +1 -1
  393. package/dist/story/bookmarks.d.ts +4 -0
  394. package/dist/story/collect/analyzer.d.ts +1 -1
  395. package/dist/story/collect/index.d.ts +4 -4
  396. package/dist/story/collect/parser.d.ts +1 -1
  397. package/dist/story/collect/scanner.d.ts +1 -1
  398. package/dist/story/collect/tree.d.ts +1 -1
  399. package/dist/story/commands/index.d.ts +6 -6
  400. package/dist/story/compiled-output.d.ts +1 -1
  401. package/dist/story/composition.d.ts +1 -1
  402. package/dist/story/config-watcher.d.ts +1 -1
  403. package/dist/story/config.d.ts +1 -1
  404. package/dist/story/context.d.ts +1 -1
  405. package/dist/story/controls/index.d.ts +2 -1
  406. package/dist/story/desktop-preview.d.ts +1 -1
  407. package/dist/story/docs-generator.d.ts +1 -1
  408. package/dist/story/figma-export.d.ts +1 -1
  409. package/dist/story/generator.d.ts +1 -1
  410. package/dist/story/index.d.ts +41 -41
  411. package/dist/story/interactions.d.ts +1 -1
  412. package/dist/story/output.d.ts +1 -0
  413. package/dist/story/performance.d.ts +9 -0
  414. package/dist/story/presets.d.ts +5 -0
  415. package/dist/story/props-validation.d.ts +1 -1
  416. package/dist/story/renderer.d.ts +1 -1
  417. package/dist/story/search-index.d.ts +1 -1
  418. package/dist/story/search.d.ts +1 -1
  419. package/dist/story/server.d.ts +1 -1
  420. package/dist/story/setup.d.ts +1 -1
  421. package/dist/story/snapshots.d.ts +1 -1
  422. package/dist/story/testing.d.ts +1 -1
  423. package/dist/story/theme.d.ts +1 -1
  424. package/dist/story/ts-css.d.ts +1 -1
  425. package/dist/story/ui/code-panel.d.ts +1 -1
  426. package/dist/story/ui/controls-panel.d.ts +1 -1
  427. package/dist/story/ui/index.d.ts +4 -4
  428. package/dist/story/ui/preview.d.ts +1 -1
  429. package/dist/story/visual-testing.d.ts +1 -1
  430. package/dist/streaming.d.ts +1 -1
  431. package/dist/stx-module-imports.d.ts +2 -1
  432. package/dist/stx-virtual-ts.d.ts +3 -2
  433. package/dist/temp-dir.d.ts +1 -0
  434. package/dist/template-compiler.d.ts +1 -1
  435. package/dist/template-hydrator.d.ts +1 -1
  436. package/dist/testing.d.ts +35 -66
  437. package/dist/theme-tokens.d.ts +5 -1
  438. package/dist/ts-css-config.d.ts +1 -0
  439. package/dist/type-checker.d.ts +24 -0
  440. package/dist/typecheck.d.ts +4 -4
  441. package/dist/types/config-types.d.ts +17 -17
  442. package/dist/types/context-types.d.ts +1 -1
  443. package/dist/types/directive-types.d.ts +2 -1
  444. package/dist/types/index.d.ts +7 -7
  445. package/dist/types.d.ts +1 -1
  446. package/dist/utils.d.ts +5 -5
  447. package/dist/variable-extractor.d.ts +1 -1
  448. package/dist/visual-editor.d.ts +0 -4
  449. package/dist/web-components/index.d.ts +4 -4
  450. package/dist/web-components/reactive-generator.d.ts +1 -1
  451. package/dist/web-components.d.ts +1 -1
  452. package/package.json +11 -7
  453. package/stx.d.ts +6 -5
  454. package/dist/chunk-0dve54ne.js +0 -3
  455. package/dist/chunk-0g05v7m1.js +0 -2
  456. package/dist/chunk-14vv64pw.js +0 -2
  457. package/dist/chunk-1mqyt33c.js +0 -2
  458. package/dist/chunk-1qdhwjs4.js +0 -2
  459. package/dist/chunk-332qk8tm.js +0 -3
  460. package/dist/chunk-3gyq9rjx.js +0 -2
  461. package/dist/chunk-3w9xhs7k.js +0 -2
  462. package/dist/chunk-47z5w330.js +0 -2
  463. package/dist/chunk-4e5wynb4.js +0 -2
  464. package/dist/chunk-4e6wkjtx.js +0 -2
  465. package/dist/chunk-4hfh5ety.js +0 -2
  466. package/dist/chunk-67bn31a3.js +0 -2
  467. package/dist/chunk-6amqskpv.js +0 -2
  468. package/dist/chunk-6ra9dqs2.js +0 -2
  469. package/dist/chunk-7hnt9a2e.js +0 -2
  470. package/dist/chunk-80bb89fh.js +0 -2
  471. package/dist/chunk-8f5dy08a.js +0 -2
  472. package/dist/chunk-8k6cd1e0.js +0 -2
  473. package/dist/chunk-a69v31q8.js +0 -2
  474. package/dist/chunk-a7v1j7td.js +0 -2
  475. package/dist/chunk-acbx3jn5.js +0 -2
  476. package/dist/chunk-apq33h4w.js +0 -2
  477. package/dist/chunk-c90qz5w0.js +0 -2
  478. package/dist/chunk-dqrkteav.js +0 -2
  479. package/dist/chunk-dx31vsyf.js +0 -2
  480. package/dist/chunk-epqp6mmn.js +0 -2
  481. package/dist/chunk-et9fyzf6.js +0 -2
  482. package/dist/chunk-f4x21pqx.js +0 -2
  483. package/dist/chunk-fhd8e4mq.js +0 -2
  484. package/dist/chunk-frhh6jd3.js +0 -2
  485. package/dist/chunk-ft43rx62.js +0 -2
  486. package/dist/chunk-g1gqysb4.js +0 -2
  487. package/dist/chunk-h7rcb74n.js +0 -2
  488. package/dist/chunk-j3x3e353.js +0 -2
  489. package/dist/chunk-j415w6dm.js +0 -2
  490. package/dist/chunk-ja5ghh0f.js +0 -2
  491. package/dist/chunk-jmjz23rf.js +0 -2
  492. package/dist/chunk-k1pyzf9e.js +0 -2
  493. package/dist/chunk-m276y4f3.js +0 -2
  494. package/dist/chunk-p9sbpbhg.js +0 -2
  495. package/dist/chunk-pd0wdjqd.js +0 -2
  496. package/dist/chunk-ptppavv8.js +0 -2
  497. package/dist/chunk-q2d8x7p1.js +0 -2
  498. package/dist/chunk-s922rk4n.js +0 -2
  499. package/dist/chunk-tdtwqydq.js +0 -2
  500. package/dist/chunk-v4kqxe8a.js +0 -2
  501. package/dist/chunk-vffwkmt4.js +0 -2
  502. package/dist/chunk-vqr3hn16.js +0 -2
  503. package/dist/chunk-x1c1aggq.js +0 -2
  504. package/dist/chunk-xkvzg640.js +0 -2
  505. package/dist/chunk-xt7qsgk4.js +0 -2
  506. package/dist/chunk-ydjy26ch.js +0 -2
  507. package/dist/chunk-yq12dhnt.js +0 -2
  508. package/dist/chunk-yx37mvy7.js +0 -2
  509. package/dist/chunk-z278w3cb.js +0 -2
  510. package/dist/chunk-z5z6442j.js +0 -2
  511. package/dist/chunk-znfzh6fm.js +0 -2
@@ -40,34 +40,34 @@ export declare function getErrorCodeName(code: number): string | undefined;
40
40
  * - 1600-1699: Expression errors
41
41
  */
42
42
  export declare const ErrorCodes: {
43
- UNCLOSED_DIRECTIVE: 1001;
44
- UNCLOSED_EXPRESSION: 1002;
45
- INVALID_DIRECTIVE_SYNTAX: 1003;
46
- MALFORMED_EXPRESSION: 1004;
47
- UNEXPECTED_TOKEN: 1005;
48
- UNDEFINED_VARIABLE: 1101;
49
- TYPE_ERROR: 1102;
50
- EVALUATION_ERROR: 1103;
51
- INFINITE_LOOP: 1104;
52
- CIRCULAR_REFERENCE: 1105;
53
- UNSAFE_EXPRESSION: 1201;
54
- PATH_TRAVERSAL: 1202;
55
- XSS_ATTEMPT: 1203;
56
- CODE_INJECTION: 1204;
57
- DOM_API_VIOLATION: 1205;
58
- FILE_NOT_FOUND: 1301;
59
- FILE_READ_ERROR: 1302;
60
- INVALID_FILE_PATH: 1303;
61
- PERMISSION_DENIED: 1304;
62
- INVALID_CONFIG: 1401;
63
- MISSING_REQUIRED_CONFIG: 1402;
64
- DEPRECATED_CONFIG: 1403;
65
- COMPONENT_NOT_FOUND: 1501;
66
- INVALID_PROPS: 1502;
67
- COMPONENT_RENDER_ERROR: 1503;
68
- FILTER_NOT_FOUND: 1601;
69
- INVALID_FILTER_ARGS: 1602;
70
- EXPRESSION_TIMEOUT: 1603
43
+ readonly UNCLOSED_DIRECTIVE: 1001;
44
+ readonly UNCLOSED_EXPRESSION: 1002;
45
+ readonly INVALID_DIRECTIVE_SYNTAX: 1003;
46
+ readonly MALFORMED_EXPRESSION: 1004;
47
+ readonly UNEXPECTED_TOKEN: 1005;
48
+ readonly UNDEFINED_VARIABLE: 1101;
49
+ readonly TYPE_ERROR: 1102;
50
+ readonly EVALUATION_ERROR: 1103;
51
+ readonly INFINITE_LOOP: 1104;
52
+ readonly CIRCULAR_REFERENCE: 1105;
53
+ readonly UNSAFE_EXPRESSION: 1201;
54
+ readonly PATH_TRAVERSAL: 1202;
55
+ readonly XSS_ATTEMPT: 1203;
56
+ readonly CODE_INJECTION: 1204;
57
+ readonly DOM_API_VIOLATION: 1205;
58
+ readonly FILE_NOT_FOUND: 1301;
59
+ readonly FILE_READ_ERROR: 1302;
60
+ readonly INVALID_FILE_PATH: 1303;
61
+ readonly PERMISSION_DENIED: 1304;
62
+ readonly INVALID_CONFIG: 1401;
63
+ readonly MISSING_REQUIRED_CONFIG: 1402;
64
+ readonly DEPRECATED_CONFIG: 1403;
65
+ readonly COMPONENT_NOT_FOUND: 1501;
66
+ readonly INVALID_PROPS: 1502;
67
+ readonly COMPONENT_RENDER_ERROR: 1503;
68
+ readonly FILTER_NOT_FOUND: 1601;
69
+ readonly INVALID_FILTER_ARGS: 1602;
70
+ readonly EXPRESSION_TIMEOUT: 1603
71
71
  };
72
72
  /**
73
73
  * Error message template with placeholder support
@@ -1,5 +1,5 @@
1
- import type { ErrorCode } from './codes';
2
- import type { ErrorContext } from './types';
1
+ import type { ErrorCode } from './codes.js';
2
+ import type { ErrorContext } from './types.js';
3
3
  /**
4
4
  * Create a standardized error message in any format
5
5
  */
@@ -18,7 +18,7 @@ export {
18
18
  getErrorMessage,
19
19
  registerErrorMessages,
20
20
  setErrorLocale,
21
- } from './codes';
21
+ } from './codes.js';
22
22
  // Error formatting
23
23
  export {
24
24
  consoleError,
@@ -30,7 +30,7 @@ export {
30
30
  safeExecute,
31
31
  safeExecuteAsync,
32
32
  type StandardizedError,
33
- } from './formatter';
33
+ } from './formatter.js';
34
34
  // Logger and recovery
35
35
  export {
36
36
  devHelpers,
@@ -39,7 +39,7 @@ export {
39
39
  errorLogger,
40
40
  type ErrorLoggerOptions,
41
41
  errorRecovery,
42
- } from './logger';
42
+ } from './logger.js';
43
43
  // Sanitization
44
44
  export {
45
45
  sanitizeComponentProps,
@@ -50,7 +50,7 @@ export {
50
50
  sanitizeFilePath,
51
51
  type SanitizeOptions,
52
52
  validators,
53
- } from './sanitizer';
53
+ } from './sanitizer.js';
54
54
  // Error types and classes
55
55
  export {
56
56
  configureErrorHandling,
@@ -65,4 +65,4 @@ export {
65
65
  StxSecurityError,
66
66
  StxSyntaxError,
67
67
  StxValidationError,
68
- } from './types';
68
+ } from './types.js';
@@ -1,4 +1,4 @@
1
- import { isDevelopment } from '../env';
1
+ import { isDevelopment } from '../env.js';
2
2
  export declare const errorRecovery: ErrorRecovery;
3
3
  // Global error logger instance
4
4
  export declare const errorLogger: ErrorLogger;
@@ -47,9 +47,22 @@ export declare interface DevHelpers {
47
47
  * Error logging and monitoring with optional file persistence
48
48
  */
49
49
  export declare class ErrorLogger {
50
+ private errors;
51
+ private maxErrors;
52
+ private enableFileLogging;
53
+ private logFilePath;
54
+ private logFormat;
55
+ private maxFileSize;
56
+ private maxLogFiles;
57
+ private minLevel;
58
+ private writeQueue;
50
59
  constructor(options?: ErrorLoggerOptions);
51
60
  configure(options: ErrorLoggerOptions): void;
52
61
  log(error: Error, context?: unknown, level?: 'error' | 'warning' | 'info'): void;
62
+ private shouldLog;
63
+ private formatEntry;
64
+ private writeToFile;
65
+ private rotateIfNeeded;
53
66
  getRecentErrors(limit?: number): ErrorLogEntry[];
54
67
  getErrorsByType(errorType: string): ErrorLogEntry[];
55
68
  getErrorsByLevel(level: 'error' | 'warning' | 'info'): ErrorLogEntry[];
@@ -21,13 +21,24 @@ export declare function sanitizeDirectiveParams(params: string[], options?: Sani
21
21
  export declare function sanitizeComponentProps(props: Record<string, unknown>): Record<string, unknown>;
22
22
  /**
23
23
  * Validation utilities
24
- * @defaultValue `{ isValidFilePath: (filePath: string, allowedDir?: string) => boolean }`
25
24
  */
26
25
  export declare const validators: {
27
26
  /**
28
27
  * Validate file path is safe and doesn't escape the allowed directory
29
28
  */
30
- isValidFilePath: (filePath: string, allowedDir?: string) => boolean
29
+ isValidFilePath: (filePath: string, allowedDir?: string) => boolean;
30
+ /**
31
+ * Validate template variable name
32
+ */
33
+ isValidVariableName: (name: string) => boolean;
34
+ /**
35
+ * Validate directive name
36
+ */
37
+ isValidDirectiveName: (name: string) => boolean;
38
+ /**
39
+ * Check if string contains potentially malicious content
40
+ */
41
+ isSafeContent: (content: string) => boolean
31
42
  };
32
43
  /**
33
44
  * Options for parameter sanitization
@@ -1,4 +1,4 @@
1
- import type { ErrorCode } from './codes';
1
+ import type { ErrorCode } from './codes.js';
2
2
  /**
3
3
  * Configure error handling behavior
4
4
  */
@@ -1,5 +1,4 @@
1
- import { findMustacheEnd } from './mustache-span';
2
- declare function getTranslateRegex(key: string): RegExp;
1
+ import { findMustacheEnd } from './mustache-span.js';
3
2
  /**
4
3
  * Register a custom filter
5
4
  *
@@ -154,41 +153,9 @@ export declare function evaluateExpression(expression: string, context: Record<s
154
153
  * HTML unescape function to reverse escapeHtml
155
154
  */
156
155
  export declare function unescapeHtml(html: string): string;
157
- /**
158
- * =============================================================================
156
+ // =============================================================================
159
157
  // Built-in Filters
160
158
  // =============================================================================
161
- * @defaultValue
162
- * ```ts
163
- * {
164
- * uppercase: (value: any, _context: Record<string, any>) => unknown | string,
165
- * lowercase: (value: any, _context: Record<string, any>) => unknown | string,
166
- * capitalize: (value: any, _context: Record<string, any>) => unknown,
167
- * number: (value: any, _context: Record<string, any>, decimals?: number) => unknown,
168
- * fmt: (value: any, _context: Record<string, any>, locale?: string) => unknown,
169
- * join: (value: any, _context: Record<string, any>, separator?: string) => string | ReturnType<any.join>,
170
- * escape: (value: any, _context: Record<string, any>) => string | ReturnType<unknown>,
171
- * translate: (value: any, context: Record<string, any>, params?: Record<string, any>) => unknown,
172
- * t: (value: any, context: Record<string, any>, params?: Record<string, any>) => unknown,
173
- * truncate: (value: any, _context: Record<string, any>, length?: number, suffix?: string) => unknown,
174
- * date: (value: any, _context: Record<string, any>, format?: string, locale?: string) => unknown,
175
- * currency: (value: any, _context: Record<string, any>, currencyCode?: string, locale?: string) => unknown,
176
- * pluralize: (value: any, _context: Record<string, any>, singular: string, plural?: string) => unknown,
177
- * first: (value: any, _context: Record<string, any>) => unknown,
178
- * last: (value: any, _context: Record<string, any>) => unknown,
179
- * length: (value: any, _context: Record<string, any>) => unknown,
180
- * json: (value: any, _context: Record<string, any>, pretty?: boolean) => unknown,
181
- * default: (value: any, _context: Record<string, any>, defaultValue?: any) => any,
182
- * reverse: (value: any, _context: Record<string, any>) => unknown,
183
- * slice: (value: any, _context: Record<string, any>, start?: number, end?: number) => unknown,
184
- * replace: (value: any, _context: Record<string, any>, search: string, replacement?: string) => unknown,
185
- * stripTags: (value: any, _context: Record<string, any>) => unknown,
186
- * urlencode: (value: any, _context: Record<string, any>) => string | ReturnType<unknown>,
187
- * abs: (value: any, _context: Record<string, any>) => number | ReturnType<unknown.abs>,
188
- * round: (value: any, _context: Record<string, any>, decimals?: number) => unknown
189
- * }
190
- * ```
191
- */
192
159
  export declare const defaultFilters: Record<string, FilterFunction>;
193
160
  /**
194
161
  * Options for {@link interpolateScriptsInTemplate}.
@@ -234,4 +201,4 @@ export type FilterFunction = (value: any, context: Record<string, any>, ...args:
234
201
  * changes -- only where the sweep is allowed to pause.
235
202
  */
236
203
  declare type ChunkedPass<T> = Generator<void, T, void>;
237
- export { findMustacheEnd } from './mustache-span';
204
+ export { findMustacheEnd } from './mustache-span.js';
@@ -91,6 +91,9 @@ declare type AsyncValidatorFn = (value: unknown, formValues?: Record<string, unk
91
91
  // Validator Class
92
92
  // =============================================================================
93
93
  declare class Validator {
94
+ private rules;
95
+ private defaultValue;
96
+ private addRule;
94
97
  required(message?: string): Validator;
95
98
  email(message?: string): Validator;
96
99
  url(message?: string): Validator;
@@ -119,6 +122,7 @@ declare class Validator {
119
122
  before(date: Date | string, message?: string): Validator;
120
123
  after(date: Date | string, message?: string): Validator;
121
124
  custom(fn: ValidatorFn, message?: string): Validator;
125
+ async(fn: AsyncValidatorFn, message?: string): Validator;
122
126
  when(condition: (value: unknown, formValues: Record<string, unknown>) => boolean, thenValidator: Validator): Validator;
123
127
  getRules(): ValidatorRule[];
124
128
  getDefaultValue(): unknown;
@@ -134,7 +138,7 @@ declare class Validator {
134
138
  // so the framework-composables demand-bundler can ship them to a <script client>
135
139
  // block (#1846). Re-exported here because this module is the documented import
136
140
  // path (`import { useForm } from 'stx'` resolves through index.ts -> here).
137
- export { defineForm, useForm } from './composables/use-form';
141
+ export { defineForm, useForm } from './composables/use-form.js';
138
142
  // =============================================================================
139
143
  // Re-exports
140
144
  // =============================================================================
package/dist/forms.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { StxOptions } from './types';
1
+ import type { StxOptions } from './types.js';
2
2
  /**
3
3
  * Process all form-related directives.
4
4
  *
@@ -116,61 +116,61 @@ export declare const defaultFormClasses: FormClassConfig;
116
116
  * required: {
117
117
  * name: 'required',
118
118
  * validate: (value) => unknown,
119
- * toHtml5: () => string[],
119
+ * toHtml5: () => ['required'],
120
120
  * message: 'This field is required'
121
121
  * },
122
122
  * email: {
123
123
  * name: 'email',
124
- * validate: (value) => unknown,
125
- * toHtml5: () => string[],
124
+ * validate: (value) => number | {} | string,
125
+ * toHtml5: () => ['type="email"'],
126
126
  * message: 'Please enter a valid email address'
127
127
  * },
128
128
  * url: {
129
129
  * name: 'url',
130
130
  * validate: (value) => unknown,
131
- * toHtml5: () => string[],
131
+ * toHtml5: () => ['type="url"'],
132
132
  * message: 'Please enter a valid URL'
133
133
  * },
134
134
  * numeric: {
135
135
  * name: 'numeric',
136
136
  * validate: (value) => boolean,
137
- * toHtml5: () => string[],
137
+ * toHtml5: () => ['type="number"'],
138
138
  * message: 'Please enter a number'
139
139
  * },
140
140
  * integer: {
141
141
  * name: 'integer',
142
142
  * validate: (value) => unknown,
143
- * toHtml5: () => string[],
143
+ * toHtml5: () => ['type="number"', 'step="1"'],
144
144
  * message: 'Please enter a whole number'
145
145
  * },
146
146
  * alpha: {
147
147
  * name: 'alpha',
148
- * validate: (value) => unknown,
149
- * toHtml5: () => string[],
148
+ * validate: (value) => boolean | number | string,
149
+ * toHtml5: () => ['pattern="[a-zA-Z]+"'],
150
150
  * message: 'Please enter only letters'
151
151
  * },
152
152
  * alphanumeric: {
153
153
  * name: 'alphanumeric',
154
- * validate: (value) => unknown,
155
- * toHtml5: () => string[],
154
+ * validate: (value) => boolean | number | string,
155
+ * toHtml5: () => ['pattern="[a-zA-Z0-9]+"'],
156
156
  * message: 'Please enter only letters and numbers'
157
157
  * },
158
158
  * min: {
159
159
  * name: 'min',
160
160
  * validate: (value, params) => unknown,
161
- * toHtml5: (params) => string[],
161
+ * toHtml5: (params) => [`minlength="${params[0]}"`, `min="${params[0]}"`],
162
162
  * message: 'Must be at least {{param}} characters'
163
163
  * },
164
164
  * max: {
165
165
  * name: 'max',
166
166
  * validate: (value, params) => unknown,
167
- * toHtml5: (params) => string[],
167
+ * toHtml5: (params) => [`maxlength="${params[0]}"`, `max="${params[0]}"`],
168
168
  * message: 'Must be no more than {{param}} characters'
169
169
  * },
170
170
  * between: {
171
171
  * name: 'between',
172
172
  * validate: (value, params) => unknown,
173
- * toHtml5: (params) => string[],
173
+ * toHtml5: (params) => [`minlength="${params[0]}"`, `maxlength="${params[1]}"`],
174
174
  * message: 'Must be between {{min}} and {{max}}'
175
175
  * },
176
176
  * confirmed: {
@@ -180,7 +180,7 @@ export declare const defaultFormClasses: FormClassConfig;
180
180
  * },
181
181
  * in: {
182
182
  * name: 'in',
183
- * validate: (value, params) => unknown,
183
+ * validate: (value, params) => boolean | ([ReturnType<(unknown)["includes"]>] extends [object] ? ReturnType<(unknown)["includes"]> : [Exclude<ReturnType<(unknown)["includes"]>, object> & (false | 0 | 0n | '' | null | undefined)] extends [never] ? ReturnType<(unknown)["includes"]> : Exclude<NonNullable<ReturnType<(unknown)["includes"]>>, false | 0 | 0n | '' | null | undefined> | string),
184
184
  * message: 'Must be one of: {{values}}'
185
185
  * },
186
186
  * notIn: {
@@ -191,25 +191,25 @@ export declare const defaultFormClasses: FormClassConfig;
191
191
  * regex: {
192
192
  * name: 'regex',
193
193
  * validate: (value, params) => unknown,
194
- * toHtml5: (params) => string[],
194
+ * toHtml5: (params) => [`pattern="${params[0]}"`],
195
195
  * message: 'Invalid format'
196
196
  * },
197
197
  * date: {
198
198
  * name: 'date',
199
199
  * validate: (value) => unknown,
200
- * toHtml5: () => string[],
200
+ * toHtml5: () => ['type="date"'],
201
201
  * message: 'Please enter a valid date'
202
202
  * },
203
203
  * before: {
204
204
  * name: 'before',
205
205
  * validate: (value, params) => unknown,
206
- * toHtml5: (params) => string[],
206
+ * toHtml5: (params) => [`max="${params[0]}"`],
207
207
  * message: 'Must be before {{date}}'
208
208
  * },
209
209
  * after: {
210
210
  * name: 'after',
211
211
  * validate: (value, params) => unknown,
212
- * toHtml5: (params) => string[],
212
+ * toHtml5: (params) => [`min="${params[0]}"`],
213
213
  * message: 'Must be after {{date}}'
214
214
  * },
215
215
  * size: {
@@ -219,8 +219,8 @@ export declare const defaultFormClasses: FormClassConfig;
219
219
  * },
220
220
  * phone: {
221
221
  * name: 'phone',
222
- * validate: (value) => unknown,
223
- * toHtml5: () => string[],
222
+ * validate: (value) => number | {} | string,
223
+ * toHtml5: () => ['type="tel"', 'pattern="\\+?\\(?\\d{1,4}\\)?[-\\s./\\d]*"'],
224
224
  * message: 'Please enter a valid phone number'
225
225
  * }
226
226
  * }
@@ -55,3 +55,4 @@ declare interface ParsedSelector {
55
55
  id?: string
56
56
  className?: string
57
57
  }
58
+ export {};
package/dist/heatmap.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CustomDirective, StxOptions } from './types';
1
+ import type { CustomDirective, StxOptions } from './types.js';
2
2
  /**
3
3
  * Generate heatmap tracking script based on configuration
4
4
  */
@@ -8,10 +8,6 @@ export declare function generateHeatmapScript(options: StxOptions): string;
8
8
  * Scripts are injected just before </body> for optimal loading
9
9
  */
10
10
  export declare function injectHeatmap(html: string, options: StxOptions): string;
11
- /**
12
- * Parse inline heatmap configuration from directive parameters
13
- */
14
- declare function parseInlineConfig(paramsStr: string): Partial<HeatmapConfig>;
15
11
  /**
16
12
  * Create a heatmap aggregator instance
17
13
  */
@@ -116,6 +112,7 @@ export declare interface HeatmapSession {
116
112
  * For processing collected heatmap data into visualizations
117
113
  */
118
114
  export declare class HeatmapAggregator {
115
+ private sessions;
119
116
  addSession(data: HeatmapSession): void;
120
117
  getPageData(page: string): HeatmapDataPoint[];
121
118
  getClickData(page: string): HeatmapDataPoint[];
@@ -75,6 +75,9 @@ export declare interface HotReloadMessage {
75
75
  * Manages WebSocket connections and broadcasts reload messages to browsers.
76
76
  */
77
77
  export declare class HotReloadServer {
78
+ private clients;
79
+ private server;
80
+ private options;
78
81
  constructor(options?: HotReloadOptions);
79
82
  start(port?: number): number;
80
83
  stop(): void;
@@ -85,8 +85,36 @@ export declare interface ComponentHydrationConfig {
85
85
  * Main hydration class
86
86
  */
87
87
  export declare class HydrationRuntime {
88
+ private state;
89
+ private options;
90
+ private root;
91
+ private isHydrated;
92
+ private pendingComponents;
93
+ private hydratedComponents;
88
94
  constructor(options?: HydrationOptions);
89
95
  hydrate(): Promise<void>;
96
+ private runHydration;
97
+ private restoreGlobalState;
98
+ private hydrateComponents;
99
+ private hydrateComponent;
100
+ private restoreComponentState;
101
+ private setupVisibleHydration;
102
+ private setupIdleHydration;
103
+ private setupInteractionHydration;
104
+ private bindEventHandlers;
105
+ private bindElementEvents;
106
+ private bindDirectiveEvents;
107
+ private parseModifiers;
108
+ private bindSingleEvent;
109
+ private resolveHandler;
110
+ private bindComponentEvents;
111
+ private initializeComponentReactivity;
112
+ private initializeReactiveBindings;
113
+ private getTextNodesWithExpressions;
114
+ private setupTextNodeBinding;
115
+ private setupAttributeBinding;
116
+ private setupReactiveBinding;
117
+ private setupRouterIntegration;
90
118
  get hydrated(): boolean;
91
119
  getState(): HydrationState | null;
92
120
  hydrateById(componentId: string): Promise<void>;
package/dist/i18n.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { I18nConfig, StxOptions } from './types';
1
+ import type { I18nConfig, StxOptions } from './types.js';
2
2
  /**
3
3
  * Clear the translation cache
4
4
  * @param locale - Optional locale to clear. If not provided, clears all.
@@ -279,3 +279,4 @@ declare type LoadLocaleFn = (
279
279
  declare type LoadingState = 'idle' | 'loading' | 'loaded' | 'error';
280
280
  /** Text direction of a document or element. */
281
281
  export type TextDirection = 'ltr' | 'rtl';
282
+ export {};
@@ -1,5 +1,5 @@
1
- import { type ImageOptions, type ImageFormat, type ProcessedImage, type ImageVariant } from './processor';
2
- import type { BuildPlugin } from '../production-build';
1
+ import { type ImageOptions, type ImageFormat, type ProcessedImage, type ImageVariant } from './processor.js';
2
+ import type { BuildPlugin } from '../production-build.js';
3
3
  /**
4
4
  * Create the image optimization build plugin
5
5
  */
@@ -1,4 +1,4 @@
1
- import { type ImageFormat, type ImageVariant, type ProcessedImage } from './processor';
1
+ import { type ImageFormat, type ImageVariant, type ProcessedImage } from './processor.js';
2
2
  /**
3
3
  * Render an optimized <Image> component
4
4
  */
@@ -1,5 +1,5 @@
1
- import { type ImageFormat } from './processor';
2
- import type { CustomDirective } from '../types';
1
+ import { type ImageFormat } from './processor.js';
2
+ import type { CustomDirective } from '../types.js';
3
3
  /**
4
4
  * Clear the image cache
5
5
  */
@@ -11,7 +11,7 @@ export declare function createImageDirective(): CustomDirective;
11
11
  /**
12
12
  * The @image directive instance
13
13
  */
14
- export declare const imageDirective: unknown;
14
+ export declare const imageDirective: (typeof createImageDirective) extends (...args: never[]) => infer __dtsx_call_result ? __dtsx_call_result : never;
15
15
  // ============================================================================
16
16
  // Types
17
17
  // ============================================================================
@@ -95,14 +95,14 @@ export {
95
95
  type ProcessedImage,
96
96
  type ImageVariant,
97
97
  type ImageMetadata,
98
- } from './processor';
98
+ } from './processor.js';
99
99
  // ============================================================================
100
100
  // Auto-Sibling Discovery
101
101
  // ============================================================================
102
102
  export {
103
103
  rewriteImagesWithSiblings,
104
104
  type AutoSiblingOptions,
105
- } from './auto-sibling';
105
+ } from './auto-sibling.js';
106
106
  // ============================================================================
107
107
  // Runtime Transform Endpoint
108
108
  // ============================================================================
@@ -110,7 +110,7 @@ export {
110
110
  createImageHandler,
111
111
  handleImageRequest,
112
112
  type ImageServeOptions,
113
- } from './serve';
113
+ } from './serve.js';
114
114
  // ============================================================================
115
115
  // Component Exports
116
116
  // ============================================================================
@@ -124,7 +124,7 @@ export {
124
124
  type ImageComponentProps,
125
125
  type ImageRenderContext,
126
126
  type ImageRenderResult,
127
- } from './component';
127
+ } from './component.js';
128
128
  // ============================================================================
129
129
  // Directive Exports
130
130
  // ============================================================================
@@ -136,7 +136,7 @@ export {
136
136
 
137
137
  // Types
138
138
  type ImageDirectiveOptions,
139
- } from './directive';
139
+ } from './directive.js';
140
140
  // ============================================================================
141
141
  // Build Plugin Exports
142
142
  // ============================================================================
@@ -153,4 +153,4 @@ export {
153
153
  // Types
154
154
  type ImageBuildOptions,
155
155
  type ImageBuildContext,
156
- } from './build-plugin';
156
+ } from './build-plugin.js';
@@ -138,3 +138,4 @@ export declare class ImageProcessingError extends Error {
138
138
  code: string;
139
139
  constructor(message: string, code: string);
140
140
  }
141
+ export {};
@@ -1,4 +1,4 @@
1
- import { type ImageFormat } from './processor';
1
+ import { type ImageFormat } from './processor.js';
2
2
  /**
3
3
  * Probe the request URL and return a Response if it matches the image
4
4
  * route, or `null` if the caller should keep trying other handlers.
@@ -52,3 +52,4 @@ declare type ParseResult = | {
52
52
  fit: 'cover' | 'contain' | 'fill' | 'inside' | 'outside'
53
53
  }
54
54
  | { ok: false, error: string, status: number }
55
+ export {};
@@ -1,5 +1,5 @@
1
- import { LRUCache } from './performance-utils';
2
- import type { StxOptions } from './types';
1
+ import { LRUCache } from './performance-utils.js';
2
+ import type { StxOptions } from './types.js';
3
3
  /** Forget which partials were warned about, for tests. */
4
4
  export declare function resetUnscopedSignalWarnings(): void;
5
5
  /**