@stacksjs/stx 0.2.571 → 0.2.573

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 (382) hide show
  1. package/dist/a11y.d.ts +51 -111
  2. package/dist/animation.d.ts +131 -74
  3. package/dist/api-client.d.ts +11 -21
  4. package/dist/api-handler.d.ts +4 -4
  5. package/dist/appearance-bootstrap.d.ts +16 -77
  6. package/dist/application-layers.d.ts +11 -20
  7. package/dist/asset-roots.d.ts +7 -27
  8. package/dist/assets.d.ts +7 -9
  9. package/dist/async-components.d.ts +56 -78
  10. package/dist/auth.d.ts +0 -3
  11. package/dist/browser-core-imports.d.ts +2 -2
  12. package/dist/build-externalize-repeated.d.ts +0 -25
  13. package/dist/build-externalize.d.ts +18 -53
  14. package/dist/build-id.d.ts +40 -28
  15. package/dist/build-message.d.ts +20 -44
  16. package/dist/builtins/attrs.d.ts +0 -14
  17. package/dist/builtins/drawer.d.ts +3 -22
  18. package/dist/builtins/icon.d.ts +17 -19
  19. package/dist/builtins/image-alpha.d.ts +8 -8
  20. package/dist/builtins/image-delivery.d.ts +38 -40
  21. package/dist/builtins/image-placeholder.d.ts +12 -50
  22. package/dist/builtins/image-warmup-worker.d.ts +1 -1
  23. package/dist/builtins/image-worker.d.ts +6 -32
  24. package/dist/builtins/index.d.ts +16 -6
  25. package/dist/builtins/modal.d.ts +13 -23
  26. package/dist/builtins/safe-image.d.ts +2 -42
  27. package/dist/builtins/stx-image.d.ts +44 -24
  28. package/dist/builtins/stx-link.d.ts +5 -8
  29. package/dist/builtins/stx-loading-indicator.d.ts +11 -10
  30. package/dist/builtins/suspense.d.ts +6 -27
  31. package/dist/builtins/toast.d.ts +15 -16
  32. package/dist/builtins/transition-group.d.ts +1 -25
  33. package/dist/caching.d.ts +24 -21
  34. package/dist/{chunk-f4jh9vrj.js → chunk-0s647d0b.js} +53 -53
  35. package/dist/{chunk-09gtbb1w.js → chunk-1bsafdnt.js} +1 -1
  36. package/dist/{chunk-m6mxqepz.js → chunk-1btr5tme.js} +1 -1
  37. package/dist/{chunk-01mxer9s.js → chunk-2g6wcnna.js} +1 -1
  38. package/dist/{chunk-rrj5m9xv.js → chunk-2hg2bqtj.js} +1 -1
  39. package/dist/{chunk-xckzvbvn.js → chunk-4f0fh2a9.js} +1 -1
  40. package/dist/chunk-557wtdps.js +2 -0
  41. package/dist/{chunk-vr36s2en.js → chunk-58vrf6kh.js} +1 -1
  42. package/dist/{chunk-qzbzn1yf.js → chunk-6tsnz28m.js} +1 -1
  43. package/dist/{chunk-cvswrbzw.js → chunk-6x8cwscv.js} +1 -1
  44. package/dist/{chunk-1n64749x.js → chunk-74ew8ajw.js} +1 -1
  45. package/dist/{chunk-jqefcghh.js → chunk-78d6yyxz.js} +2 -2
  46. package/dist/{chunk-83fdt4yj.js → chunk-824cnbac.js} +1 -1
  47. package/dist/{chunk-ntgy4e1q.js → chunk-864xm0jy.js} +1 -1
  48. package/dist/{chunk-nn174xjh.js → chunk-9fbkdrm8.js} +1 -1
  49. package/dist/{chunk-kzjrgh0b.js → chunk-a3gvw1q2.js} +1 -1
  50. package/dist/{chunk-pqcvh9pp.js → chunk-amtrg7pn.js} +1 -1
  51. package/dist/{chunk-pw9verqx.js → chunk-b5fpsp5n.js} +1 -1
  52. package/dist/{chunk-5afw7z6v.js → chunk-bcjr3fw7.js} +1 -1
  53. package/dist/{chunk-n6qp05t9.js → chunk-bkj0j5se.js} +1 -1
  54. package/dist/{chunk-mzqyv7s5.js → chunk-cf97xdqa.js} +1 -1
  55. package/dist/{chunk-cgwyd9aq.js → chunk-cr67dpx4.js} +1 -1
  56. package/dist/{chunk-f1apaqfk.js → chunk-dpqvacd1.js} +1 -1
  57. package/dist/{chunk-ghy82tsc.js → chunk-et8726at.js} +1 -1
  58. package/dist/{chunk-4bgfpkwx.js → chunk-ev8t5cxk.js} +1 -1
  59. package/dist/{chunk-4ssg5xpq.js → chunk-fynh3bkq.js} +12 -2
  60. package/dist/{chunk-gzgc8zk5.js → chunk-g8757f97.js} +2 -2
  61. package/dist/{chunk-3gft8zng.js → chunk-hm4j4d8q.js} +1 -1
  62. package/dist/{chunk-0bt0fbs1.js → chunk-j9qy9t3t.js} +5 -5
  63. package/dist/{chunk-2a1q5y6r.js → chunk-jhc47xzj.js} +1 -1
  64. package/dist/{chunk-79vdkvhf.js → chunk-kns5m52j.js} +1 -1
  65. package/dist/{chunk-2cqbyb8w.js → chunk-mjpewk4r.js} +1 -1
  66. package/dist/{chunk-2jjff8kv.js → chunk-nj488tj2.js} +2 -2
  67. package/dist/{chunk-dcpf6kas.js → chunk-q9chv68c.js} +1 -1
  68. package/dist/{chunk-xq2ck69k.js → chunk-qm280dp3.js} +1 -1
  69. package/dist/{chunk-ymawe0y5.js → chunk-sjcstv33.js} +1 -1
  70. package/dist/{chunk-tc5r2vmw.js → chunk-t0zdz8kd.js} +1 -1
  71. package/dist/{chunk-jwvzvapp.js → chunk-t3dnak1j.js} +1 -1
  72. package/dist/{chunk-2jsnrfc8.js → chunk-t64nnmmj.js} +1 -1
  73. package/dist/{chunk-m2a1fxpb.js → chunk-tvb8p7c0.js} +1 -1
  74. package/dist/{chunk-6f4qrd0s.js → chunk-tyhgq6rw.js} +1 -1
  75. package/dist/{chunk-4wfr074d.js → chunk-vn7tc8hm.js} +1 -1
  76. package/dist/{chunk-y4ajd836.js → chunk-xy6g8zb9.js} +1 -1
  77. package/dist/{chunk-zddzjd60.js → chunk-ya7xks9t.js} +1 -1
  78. package/dist/chunk-zpz6q2fh.js +2 -0
  79. package/dist/chunk-zxt94g45.js +2 -0
  80. package/dist/{chunk-cyg9w31a.js → chunk-zz7tw07b.js} +1 -1
  81. package/dist/{chunk-ta8bhz27.js → chunk-zzcxacjf.js} +1 -1
  82. package/dist/cli.js +7 -7
  83. package/dist/client/directive.d.ts +0 -7
  84. package/dist/client/index.d.ts +1 -0
  85. package/dist/client/signals-appearance-runtime.d.ts +1 -1
  86. package/dist/client/signals-binding-utils-runtime.d.ts +1 -1
  87. package/dist/client/signals-bootstrap-runtime.d.ts +2 -2
  88. package/dist/client/signals-class-runtime.d.ts +1 -1
  89. package/dist/client/signals-component-api-runtime.d.ts +1 -1
  90. package/dist/client/signals-component-hydration-runtime.d.ts +1 -1
  91. package/dist/client/signals-component-props-runtime.d.ts +1 -1
  92. package/dist/client/signals-conditional-chain-runtime.d.ts +1 -1
  93. package/dist/client/signals-conditional-component-runtime.d.ts +1 -1
  94. package/dist/client/signals-container-cleanup-runtime.d.ts +1 -1
  95. package/dist/client/signals-context-runtime.d.ts +1 -1
  96. package/dist/client/signals-cookie-runtime.d.ts +1 -1
  97. package/dist/client/signals-devtools-runtime.d.ts +1 -1
  98. package/dist/client/signals-dialog-runtime.d.ts +1 -1
  99. package/dist/client/signals-dom-ready-runtime.d.ts +1 -1
  100. package/dist/client/signals-drawer-runtime.d.ts +1 -1
  101. package/dist/client/signals-effect-runtime.d.ts +1 -1
  102. package/dist/client/signals-event-shorthand-runtime.d.ts +1 -1
  103. package/dist/client/signals-expression-compiler-runtime.d.ts +1 -1
  104. package/dist/client/signals-expression-runtime.d.ts +1 -1
  105. package/dist/client/signals-fetch-transport-runtime.d.ts +1 -1
  106. package/dist/client/signals-for-runtime.d.ts +1 -1
  107. package/dist/client/signals-globals-runtime.d.ts +1 -1
  108. package/dist/client/signals-handler-runtime.d.ts +1 -1
  109. package/dist/client/signals-head-runtime.d.ts +1 -1
  110. package/dist/client/signals-helpers-runtime.d.ts +1 -1
  111. package/dist/client/signals-host-runtime.d.ts +1 -1
  112. package/dist/client/signals-hydration-audit-runtime.d.ts +1 -1
  113. package/dist/client/signals-hydration-runtime.d.ts +1 -1
  114. package/dist/client/signals-if-chain-runtime.d.ts +1 -1
  115. package/dist/client/signals-if-runtime.d.ts +1 -1
  116. package/dist/client/signals-lazy-hydration-runtime.d.ts +1 -1
  117. package/dist/client/signals-lifecycle-runtime.d.ts +1 -1
  118. package/dist/client/signals-loop-component-remap-runtime.d.ts +1 -1
  119. package/dist/client/signals-loop-conditional-runtime.d.ts +1 -1
  120. package/dist/client/signals-loop-row-runtime.d.ts +1 -1
  121. package/dist/client/signals-manifest-hydration-runtime.d.ts +1 -1
  122. package/dist/client/signals-model-runtime.d.ts +1 -1
  123. package/dist/client/signals-mount-runtime.d.ts +1 -1
  124. package/dist/client/signals-navigation-runtime.d.ts +1 -1
  125. package/dist/client/signals-notify-runtime.d.ts +1 -1
  126. package/dist/client/signals-optimistic-runtime.d.ts +1 -1
  127. package/dist/client/signals-overlay-runtime.d.ts +1 -1
  128. package/dist/client/signals-pipe-runtime.d.ts +1 -1
  129. package/dist/client/signals-proxy-runtime.d.ts +1 -1
  130. package/dist/client/signals-query-runtime.d.ts +1 -1
  131. package/dist/client/signals-reactive-runtime.d.ts +1 -1
  132. package/dist/client/signals-ref-runtime.d.ts +1 -1
  133. package/dist/client/signals-scope-disposal-runtime.d.ts +1 -1
  134. package/dist/client/signals-scope-traversal-runtime.d.ts +1 -1
  135. package/dist/client/signals-show-runtime.d.ts +1 -1
  136. package/dist/client/signals-spa-load-control-runtime.d.ts +1 -1
  137. package/dist/client/signals-spa-load-runtime.d.ts +1 -1
  138. package/dist/client/signals-state-runtime.d.ts +1 -1
  139. package/dist/client/signals-storage-runtime.d.ts +1 -1
  140. package/dist/client/signals-store-registry-runtime.d.ts +1 -1
  141. package/dist/client/signals-style-runtime.d.ts +1 -1
  142. package/dist/client/signals-suspense-runtime.d.ts +1 -1
  143. package/dist/client/signals-timer-runtime.d.ts +1 -1
  144. package/dist/client/signals-toast-runtime.d.ts +1 -1
  145. package/dist/client/signals-tooltip-runtime.d.ts +1 -1
  146. package/dist/client/signals-transition-group-runtime.d.ts +1 -1
  147. package/dist/client/signals-websocket-runtime.d.ts +1 -1
  148. package/dist/client-helpers.d.ts +1 -312
  149. package/dist/client-module-registry.d.ts +4 -27
  150. package/dist/client-parameter-bindings.d.ts +1 -4
  151. package/dist/client-script-bundler.d.ts +55 -103
  152. package/dist/client-script.d.ts +69 -127
  153. package/dist/color-mode-boot.d.ts +21 -58
  154. package/dist/component-client-factories.d.ts +8 -9
  155. package/dist/component-contract-checks.d.ts +15 -18
  156. package/dist/component-contract.d.ts +6 -6
  157. package/dist/component-hmr.d.ts +8 -7
  158. package/dist/component-model.d.ts +14 -20
  159. package/dist/component-processing.d.ts +51 -59
  160. package/dist/component-registry.d.ts +28 -99
  161. package/dist/component-renderer.d.ts +19 -16
  162. package/dist/component-resolution.d.ts +8 -8
  163. package/dist/component-tags.d.ts +1 -1
  164. package/dist/composable-loader.d.ts +6 -41
  165. package/dist/composables/use-fetch.d.ts +45 -114
  166. package/dist/composables/use-form.d.ts +2 -56
  167. package/dist/composables/use-intersection-observer.d.ts +1 -1
  168. package/dist/composables.d.ts +75 -74
  169. package/dist/composition-api.d.ts +19 -43
  170. package/dist/computed.d.ts +93 -86
  171. package/dist/conditionals.d.ts +0 -24
  172. package/dist/config.d.ts +30 -24
  173. package/dist/config.js +3 -0
  174. package/dist/craft-bridge.d.ts +1 -467
  175. package/dist/craft-components.d.ts +234 -680
  176. package/dist/craft-entry.js +1 -1
  177. package/dist/craft.js +1 -1
  178. package/dist/csp.d.ts +41 -107
  179. package/dist/database.d.ts +1 -1
  180. package/dist/defer.d.ts +0 -24
  181. package/dist/dev-server/terminal-colors.d.ts +32 -32
  182. package/dist/dev-server/ts-css.d.ts +26 -35
  183. package/dist/dev-server/types.d.ts +33 -29
  184. package/dist/directive-api.d.ts +42 -85
  185. package/dist/directive-arguments.d.ts +14 -39
  186. package/dist/document-shell.d.ts +49 -81
  187. package/dist/dynamic-components.d.ts +0 -9
  188. package/dist/engine-bindings.d.ts +1 -1
  189. package/dist/env.d.ts +26 -0
  190. package/dist/error-boundaries.d.ts +36 -43
  191. package/dist/error-handling.d.ts +1 -1
  192. package/dist/errors/codes.d.ts +43 -51
  193. package/dist/errors/formatter.d.ts +38 -58
  194. package/dist/errors/index.d.ts +61 -5
  195. package/dist/errors/logger.d.ts +40 -114
  196. package/dist/errors/sanitizer.d.ts +28 -53
  197. package/dist/errors/types.d.ts +31 -44
  198. package/dist/events.d.ts +32 -94
  199. package/dist/expressions.d.ts +57 -62
  200. package/dist/find-body-tag.d.ts +5 -34
  201. package/dist/first-script-tag.d.ts +0 -23
  202. package/dist/forms-validation.d.ts +117 -149
  203. package/dist/forms.d.ts +161 -120
  204. package/dist/framework-composables.d.ts +0 -32
  205. package/dist/head-injection.d.ts +30 -32
  206. package/dist/head-keys.d.ts +12 -15
  207. package/dist/head.d.ts +110 -139
  208. package/dist/heatmap.d.ts +76 -152
  209. package/dist/html-masking.d.ts +38 -62
  210. package/dist/hydration-runtime.d.ts +24 -20
  211. package/dist/hydration.d.ts +11 -10
  212. package/dist/i18n.d.ts +34 -95
  213. package/dist/image-optimization/auto-sibling.d.ts +4 -32
  214. package/dist/imported-signals.d.ts +0 -36
  215. package/dist/includes.d.ts +6 -69
  216. package/dist/index.d.ts +2 -1
  217. package/dist/init.d.ts +12 -20
  218. package/dist/internal-markdown.d.ts +8 -12
  219. package/dist/interpolation-context.d.ts +15 -15
  220. package/dist/island-chunking.d.ts +13 -30
  221. package/dist/keep-alive.d.ts +52 -72
  222. package/dist/layout-types.d.ts +2 -27
  223. package/dist/lazy-module.d.ts +0 -10
  224. package/dist/loading-indicator.d.ts +8 -5
  225. package/dist/loop-binding.d.ts +4 -7
  226. package/dist/loops.d.ts +25 -67
  227. package/dist/markdown.d.ts +1 -0
  228. package/dist/media/image/component.d.ts +9 -25
  229. package/dist/media/image/directive.d.ts +1 -15
  230. package/dist/media/image/placeholder.d.ts +9 -20
  231. package/dist/media/image/processor/cache.d.ts +18 -40
  232. package/dist/media/image/processor/index.d.ts +10 -1
  233. package/dist/media/image/processor/optimizer.d.ts +1 -12
  234. package/dist/media/image/processor/responsive.d.ts +6 -16
  235. package/dist/media/image/srcset.d.ts +49 -47
  236. package/dist/media/shared/cache.d.ts +31 -51
  237. package/dist/media/shared/hash.d.ts +0 -7
  238. package/dist/media/types.d.ts +754 -1235
  239. package/dist/media/video/directive.d.ts +1 -15
  240. package/dist/media/video/index.d.ts +17 -39
  241. package/dist/media/video/processor/cache.d.ts +19 -42
  242. package/dist/media/video/processor/index.d.ts +18 -1
  243. package/dist/media/video/processor/streaming.d.ts +10 -17
  244. package/dist/media/video/processor/thumbnail.d.ts +15 -21
  245. package/dist/media/video/processor/transcoder.d.ts +1 -11
  246. package/dist/meta-arguments.d.ts +14 -39
  247. package/dist/method-spoofing.d.ts +0 -7
  248. package/dist/middleware.d.ts +0 -60
  249. package/dist/native/bridge/protocol.d.ts +2 -1
  250. package/dist/native/compiler/bundle.js +11 -1
  251. package/dist/native/compiler/headwind-to-style.d.ts +383 -359
  252. package/dist/native/compiler/icons.d.ts +249 -243
  253. package/dist/native/compiler/svg.d.ts +35 -24
  254. package/dist/native/runtime/jsc-globals.d.ts +1 -1
  255. package/dist/native/runtime/native-host.d.ts +1 -1
  256. package/dist/native/runtime/native-host.js +3 -0
  257. package/dist/offline/app-service-worker.d.ts +50 -114
  258. package/dist/offline/kept-store.d.ts +23 -37
  259. package/dist/offline/query-cache.d.ts +55 -126
  260. package/dist/owned-routes.d.ts +0 -31
  261. package/dist/page-response.d.ts +8 -39
  262. package/dist/parser/directive-parser.d.ts +45 -57
  263. package/dist/parser/expression-parser.d.ts +35 -33
  264. package/dist/parser/index.d.ts +39 -4
  265. package/dist/parser/tokenizer.d.ts +49 -61
  266. package/dist/partial-hydration.d.ts +51 -82
  267. package/dist/performance-utils.d.ts +115 -255
  268. package/dist/placeholder.d.ts +9 -18
  269. package/dist/plugin-system.d.ts +115 -264
  270. package/dist/process.d.ts +4 -9
  271. package/dist/process.js +6 -4
  272. package/dist/prop-sentinels.d.ts +11 -11
  273. package/dist/public-env.d.ts +0 -14
  274. package/dist/pwa/directives.d.ts +20 -12
  275. package/dist/pwa/inject.d.ts +0 -10
  276. package/dist/pwa/precache.d.ts +16 -22
  277. package/dist/pwa/service-worker.d.ts +0 -12
  278. package/dist/pwa.js +1 -1
  279. package/dist/reactive-bindings.d.ts +11 -34
  280. package/dist/reactive-tracking.d.ts +0 -36
  281. package/dist/reactive.d.ts +41 -58
  282. package/dist/render-memo.d.ts +5 -23
  283. package/dist/resolve-stx-targets.d.ts +6 -44
  284. package/dist/route-middleware.d.ts +35 -2
  285. package/dist/route-rules.d.ts +10 -13
  286. package/dist/router.d.ts +9 -8
  287. package/dist/routes.d.ts +3 -1
  288. package/dist/runtime-config-server.d.ts +14 -17
  289. package/dist/runtime-config.d.ts +2 -3
  290. package/dist/runtime-globals.d.ts +90 -122
  291. package/dist/runtime-injection.d.ts +0 -8
  292. package/dist/scaffolding.d.ts +30 -26
  293. package/dist/script-emit.d.ts +0 -30
  294. package/dist/script-validation.d.ts +6 -12
  295. package/dist/seo.d.ts +75 -153
  296. package/dist/server-api.d.ts +9 -12
  297. package/dist/server-bindings.d.ts +1 -26
  298. package/dist/server-data.d.ts +4 -5
  299. package/dist/sfc-template.d.ts +8 -8
  300. package/dist/signal-processing.d.ts +37 -53
  301. package/dist/signals-api.d.ts +58 -135
  302. package/dist/signals.d.ts +18 -24
  303. package/dist/site-url.d.ts +31 -28
  304. package/dist/slots.d.ts +20 -86
  305. package/dist/source-signature.d.ts +5 -28
  306. package/dist/ssg.d.ts +158 -337
  307. package/dist/ssg.js +2 -2
  308. package/dist/state-dir.d.ts +4 -4
  309. package/dist/store-loader.d.ts +0 -10
  310. package/dist/story/analytics.d.ts +60 -138
  311. package/dist/story/bookmarks.d.ts +34 -87
  312. package/dist/story/cli.d.ts +69 -123
  313. package/dist/story/collect/scanner.d.ts +0 -4
  314. package/dist/story/collect/tree.d.ts +1 -8
  315. package/dist/story/commands/build.d.ts +6 -11
  316. package/dist/story/commands/dev.d.ts +8 -15
  317. package/dist/story/commands/preview.d.ts +7 -13
  318. package/dist/story/config-watcher.d.ts +13 -20
  319. package/dist/story/config.d.ts +8 -11
  320. package/dist/story/context.d.ts +8 -14
  321. package/dist/story/hmr.d.ts +26 -24
  322. package/dist/story/hot-swap.d.ts +23 -34
  323. package/dist/story/keyboard-shortcuts.d.ts +18 -23
  324. package/dist/story/output.d.ts +44 -46
  325. package/dist/story/performance.d.ts +45 -107
  326. package/dist/story/presets.d.ts +41 -107
  327. package/dist/story/renderer.d.ts +27 -41
  328. package/dist/story/search.d.ts +12 -23
  329. package/dist/story/server.d.ts +11 -21
  330. package/dist/story/setup.d.ts +15 -23
  331. package/dist/story/testing.d.ts +40 -65
  332. package/dist/story/types.d.ts +160 -262
  333. package/dist/streaming.d.ts +57 -119
  334. package/dist/strip-literals.d.ts +1 -25
  335. package/dist/stx-module-imports.d.ts +7 -0
  336. package/dist/stx-virtual-ts.d.ts +102 -253
  337. package/dist/style-scoping.d.ts +8 -21
  338. package/dist/suspense.d.ts +52 -67
  339. package/dist/teleport.d.ts +0 -22
  340. package/dist/template-syntax-escape.d.ts +8 -8
  341. package/dist/template-tag-balance.d.ts +6 -22
  342. package/dist/testing.d.ts +26 -11
  343. package/dist/theme-tokens.d.ts +388 -134
  344. package/dist/transitions.d.ts +55 -66
  345. package/dist/ts-css-config.d.ts +12 -70
  346. package/dist/types/component-types.d.ts +122 -187
  347. package/dist/types/config-types.d.ts +341 -956
  348. package/dist/types/context-types.d.ts +24 -46
  349. package/dist/types/csp-types.d.ts +66 -70
  350. package/dist/types/directive-types.d.ts +156 -223
  351. package/dist/types/index.d.ts +110 -6
  352. package/dist/types/pwa-types.d.ts +148 -273
  353. package/dist/types.d.ts +1 -0
  354. package/dist/unresolved-identifiers.d.ts +22 -24
  355. package/dist/url-safety.d.ts +32 -32
  356. package/dist/utils.d.ts +21 -36
  357. package/dist/validator.d.ts +26 -28
  358. package/dist/variable-extractor.d.ts +19 -49
  359. package/dist/view-composers.d.ts +81 -80
  360. package/dist/virtual-scrolling.d.ts +82 -101
  361. package/dist/visual-testing.d.ts +10 -9
  362. package/dist/vue-template.d.ts +0 -23
  363. package/dist/web-components/css-scoping.d.ts +11 -21
  364. package/dist/web-components.d.ts +58 -81
  365. package/dist/x-element.d.ts +1 -0
  366. package/package.json +6 -6
  367. package/stx.d.ts +2 -2
  368. package/dist/app-service-worker.d.ts +0 -165
  369. package/dist/chunk-49gwmcrn.js +0 -2
  370. package/dist/chunk-6va5pe2m.js +0 -2
  371. package/dist/chunk-bm2q1srp.js +0 -2
  372. package/dist/signals-context-runtime.d.ts +0 -2
  373. package/dist/signals-drawer-runtime.d.ts +0 -2
  374. package/dist/signals-host-runtime.d.ts +0 -9
  375. package/dist/signals-loop-conditional-runtime.d.ts +0 -2
  376. package/dist/signals-manifest-hydration-runtime.d.ts +0 -2
  377. package/dist/signals-notify-runtime.d.ts +0 -2
  378. package/dist/signals-optimistic-runtime.d.ts +0 -2
  379. package/dist/signals-overlay-runtime.d.ts +0 -2
  380. package/dist/signals-scope-disposal-runtime.d.ts +0 -2
  381. package/dist/signals-spa-load-control-runtime.d.ts +0 -2
  382. package/dist/signals-storage-runtime.d.ts +0 -2
@@ -1,46 +1,6 @@
1
- /**
2
- * Client Script Processor
3
- *
4
- * Transforms <script client> blocks in SFC (.stx) components:
5
- * 1. Auto-imports from 'stx' and '@stacksjs/browser' (no import statements needed)
6
- * 2. Resolves `import { store } from '@stores'` to runtime store access
7
- * 3. Transpiles TypeScript to JavaScript (strips type annotations, interfaces, import type)
8
- * 4. Injects event binding code (from @click, @input, etc.) into the script scope
9
- * 5. Auto-wraps in a scoped IIFE for isolation
10
- *
11
- * This enables clean component authoring:
12
- * ```stx
13
- * <template>
14
- * <button @click="handleClick()">Count: {{ count() }}</button>
15
- * </template>
16
- *
17
- * <script>
18
- * // No imports needed! state, onMount, Trail, etc. are auto-imported
19
- * const count = state(0)
20
- *
21
- * onMount(async () => {
22
- * const trails = await Trail.all()
23
- * console.log(trails)
24
- * })
25
- *
26
- * function handleClick() {
27
- * count.set(count() + 1)
28
- * }
29
- * </script>
30
- * ```
31
- *
32
- * @module client-script
33
- */
1
+ import { BROWSER_CORE_IMPORTS } from './browser-core-imports';
2
+ import { findInterpolationEnd, stripCommentsAndLiterals } from './strip-literals';
34
3
  import type { ParsedEvent } from './events';
35
- export { findInterpolationEnd, stripCommentsAndLiterals } from './strip-literals';
36
- export interface VendorCssImport {
37
- /** The original specifier as written in the import — kept verbatim for the data attribute. */
38
- source: string;
39
- /** The resolved absolute filesystem path — used for dedupe and reads. */
40
- resolvedPath: string;
41
- /** The CSS file contents at build time. */
42
- contents: string;
43
- }
44
4
  /**
45
5
  * Strip side-effect `.css` imports from a `<script client>` body and read
46
6
  * their contents off disk.
@@ -63,14 +23,7 @@ export interface VendorCssImport {
63
23
  * call. Cross-component dedupe still relies on the caller's HTML response
64
24
  * (CSS rules collapse harmlessly at the browser level either way).
65
25
  */
66
- export declare function extractAndStripCssImports(code: string, options: {
67
- filePath?: string;
68
- projectRoot?: string;
69
- }): {
70
- code: string;
71
- styles: VendorCssImport[];
72
- unresolved: string[];
73
- };
26
+ export declare function extractAndStripCssImports(code: string, options: { filePath?: string, projectRoot?: string }): { code: string, styles: VendorCssImport[], unresolved: string[] };
74
27
  /**
75
28
  * Render collected vendor CSS as one `<style>` tag per resolved source,
76
29
  * each wrapped in `@layer vendor { … }` so the styles can never out-specificity
@@ -82,84 +35,7 @@ export declare function extractAndStripCssImports(code: string, options: {
82
35
  * below un-layered rules, so vendor styles default to lowest precedence.
83
36
  */
84
37
  export declare function renderVendorStyleTags(styles: VendorCssImport[]): string;
85
- /**
86
- * Exports from 'stx' auto-imported into classic `<script>` / `<script client>`
87
- * blocks.
88
- *
89
- * Derived from {@link STX_RUNTIME_GLOBALS} rather than hand-maintained (#1804).
90
- * This was a separate 82-name literal, and it had drifted: 16 of those names
91
- * were not on `window.stx` at all. Because the generated prologue destructures
92
- * (`var { … } = window.stx`), a missing name is not an error — it binds
93
- * `undefined`, and the author sees "undefined is not a function" at the call
94
- * site with nothing naming the identifier or saying why. `provide` worked and
95
- * `inject` did not; `onMounted` worked and `onUpdated` did not.
96
- *
97
- * Five of the 16 (`isDerived`, `inject`, `useSlots`, `watchMultiple`,
98
- * `onBeforeMount`) are now implemented in the runtime and live in the shared
99
- * list. The remaining 11 are server- or compile-time only — `h` and `Fragment`
100
- * belong to the JSX runtime, `useMeta`/`getCurrentInstance`/`useAttrs`/
101
- * `onErrorCaptured`/`onBeforeUpdate`/`onUpdated`/`createStore`/`createSelector`
102
- * are module exports with no client counterpart, and `action` has no
103
- * implementation anywhere — so they are no longer offered. A `ReferenceError`
104
- * naming the identifier beats a silent `undefined`.
105
- */
106
- export declare const STX_AUTO_IMPORTS: readonly string[];
107
- /**
108
- * Core exports from '@stacksjs/browser' that are auto-imported.
109
- * App-specific models are detected dynamically (PascalCase identifiers
110
- * used with query methods like .all(), .find(), .where(), etc.)
111
- */
112
- export { BROWSER_CORE_IMPORTS } from './browser-core-imports';
113
- export interface BrowserCoreAutoImportResult {
114
- code: string;
115
- imports: string[];
116
- models: string[];
117
- }
118
38
  export declare function injectBrowserCoreAutoImports(code: string): BrowserCoreAutoImportResult;
119
- export interface ClientScriptOptions {
120
- /** Event bindings collected from template @event attributes */
121
- eventBindings?: ParsedEvent[];
122
- /** Whether to enable auto-imports (default: true) */
123
- autoImports?: boolean;
124
- /** Original script tag attributes (e.g., 'type="module"') */
125
- attrs?: string;
126
- /** Whether the component template contains : prefix directives */
127
- hasColonDirectives?: boolean;
128
- /** Template HTML content for auto-binding analysis (Phase 2: auto-detect which scripts need stx.mount()) */
129
- templateContent?: string;
130
- /** File path of the template (for relative import resolution in bundler) */
131
- filePath?: string;
132
- /** Project root directory (for @/ path resolution in bundler) */
133
- projectRoot?: string;
134
- /** Whether this is a production build (enables minification in bundler) */
135
- production?: boolean;
136
- /**
137
- * Server → client data bridge. Top-level `<script server>` variables (and
138
- * other template-context values) made available to `<script client>` code:
139
- * any JSON-serializable value referenced — but not redeclared — by the client
140
- * script is serialized into the client bundle, so reactive state can be seeded
141
- * from build-time data (e.g. `const items = state(serverItems)`) without a
142
- * round-trip fetch. Functions/non-serializable values are skipped.
143
- */
144
- serverData?: Record<string, unknown>;
145
- /**
146
- * The component instance this script sets up, stamped on the emitted tag as
147
- * data-stx-instance (#1958). Passed only by the component renderer, for a
148
- * component with no scope root: a component with one names it in
149
- * data-stx-owner instead. A page's own script runs on every navigation, so
150
- * it is never stamped.
151
- *
152
- * Outside the router's container the stamp marks the script as part of the
153
- * layout's chrome, whose instance a same-layout navigation leaves running:
154
- * fragments leave it out, and the router's full-document path skips it.
155
- */
156
- instanceId?: string;
157
- }
158
- interface AutoImportResult {
159
- code: string;
160
- stxImports: string[];
161
- browserImports: string[];
162
- }
163
39
  export declare function transformAutoImports(code: string): AutoImportResult;
164
40
  /**
165
41
  * Whether `name` is used as a binding in `code`: not a property of something
@@ -216,3 +92,69 @@ export declare function generateServerDataBridge(code: string, serverData?: Reco
216
92
  * @returns A complete `<script>...</script>` tag ready for browser injection
217
93
  */
218
94
  export declare function processClientScript(scriptContent: string, options?: ClientScriptOptions): Promise<string>;
95
+ /**
96
+ * Exports from 'stx' auto-imported into classic `<script>` / `<script client>`
97
+ * blocks.
98
+ *
99
+ * Derived from {@link STX_RUNTIME_GLOBALS} rather than hand-maintained (#1804).
100
+ * This was a separate 82-name literal, and it had drifted: 16 of those names
101
+ * were not on `window.stx` at all. Because the generated prologue destructures
102
+ * (`var { … } = window.stx`), a missing name is not an error — it binds
103
+ * `undefined`, and the author sees "undefined is not a function" at the call
104
+ * site with nothing naming the identifier or saying why. `provide` worked and
105
+ * `inject` did not; `onMounted` worked and `onUpdated` did not.
106
+ *
107
+ * Five of the 16 (`isDerived`, `inject`, `useSlots`, `watchMultiple`,
108
+ * `onBeforeMount`) are now implemented in the runtime and live in the shared
109
+ * list. The remaining 11 are server- or compile-time only — `h` and `Fragment`
110
+ * belong to the JSX runtime, `useMeta`/`getCurrentInstance`/`useAttrs`/
111
+ * `onErrorCaptured`/`onBeforeUpdate`/`onUpdated`/`createStore`/`createSelector`
112
+ * are module exports with no client counterpart, and `action` has no
113
+ * implementation anywhere — so they are no longer offered. A `ReferenceError`
114
+ * naming the identifier beats a silent `undefined`.
115
+ */
116
+ export declare const STX_AUTO_IMPORTS: readonly string[];
117
+ export declare interface VendorCssImport {
118
+ source: string
119
+ resolvedPath: string
120
+ contents: string
121
+ }
122
+ export declare interface BrowserCoreAutoImportResult {
123
+ code: string
124
+ imports: string[]
125
+ models: string[]
126
+ }
127
+ // =============================================================================
128
+ // Types
129
+ // =============================================================================
130
+ export declare interface ClientScriptOptions {
131
+ eventBindings?: ParsedEvent[]
132
+ autoImports?: boolean
133
+ attrs?: string
134
+ hasColonDirectives?: boolean
135
+ templateContent?: string
136
+ filePath?: string
137
+ projectRoot?: string
138
+ production?: boolean
139
+ serverData?: Record<string, unknown>
140
+ instanceId?: string
141
+ }
142
+ // =============================================================================
143
+ // Auto-Import Transformation
144
+ // =============================================================================
145
+ declare interface AutoImportResult {
146
+ code: string
147
+ stxImports: string[]
148
+ browserImports: string[]
149
+ }
150
+ // Re-exported from its old home. It moved to `strip-literals.ts` so the
151
+ // editor-facing extractor could share it without pulling the bundler in behind
152
+ // it, and the runtime bridge and `stx typecheck` MUST agree on what counts as a
153
+ // reference (#1868 ask 4). Anything importing it from here keeps working.
154
+ export { findInterpolationEnd, stripCommentsAndLiterals } from './strip-literals';
155
+ /**
156
+ * Core exports from '@stacksjs/browser' that are auto-imported.
157
+ * App-specific models are detected dynamically (PascalCase identifiers
158
+ * used with query methods like .all(), .find(), .where(), etc.)
159
+ */
160
+ export { BROWSER_CORE_IMPORTS } from './browser-core-imports';
@@ -1,61 +1,3 @@
1
- /** Marker attribute — makes injection idempotent and findable by tests. */
2
- export declare const COLOR_MODE_BOOT_MARKER = "data-stx-color-mode-boot";
3
- /** The global the boot script publishes its resolved config on. */
4
- export declare const COLOR_MODE_BOOT_GLOBAL = "__STX_COLOR_MODE__";
5
- export type ColorModeBootMode = 'light' | 'dark' | 'auto' | 'system';
6
- /** Spelling written to storage for "follow the system". */
7
- export type ColorModeBootAutoValue = 'auto' | 'system';
8
- /**
9
- * Pre-paint options. A strict subset of `ColorModeOptions` — only the fields
10
- * that affect what lands on the root element before paint. `disableTransitions`
11
- * is deliberately absent: nothing has painted yet, so there is no transition to
12
- * suppress, and forcing a reflow in the critical path would only cost time.
13
- */
14
- export interface ColorModeBootConfig {
15
- /** localStorage key holding the preference. @default 'stx-color-mode' */
16
- storageKey?: string;
17
- /**
18
- * Mode used when nothing valid is stored. @default 'auto'
19
- * `'system'` is accepted as an alias for `'auto'`.
20
- */
21
- initialMode?: ColorModeBootMode;
22
- /**
23
- * Class applied to `<html>` when dark. @default 'dark'
24
- * Pass `null` to opt out — the attribute alone then carries the mode.
25
- */
26
- darkClass?: string | null;
27
- /**
28
- * Attribute set to the resolved mode on `<html>`, e.g. `'data-theme'`.
29
- * Applied *alongside* `darkClass`, mirroring `useColorMode` (#1788).
30
- */
31
- attribute?: string | null;
32
- /**
33
- * Spelling `useColorMode` writes back for "follow the system". Published to
34
- * the client so the composable doesn't convert an app's existing `'system'`
35
- * key to `'auto'`. @default whatever is stored, else 'auto'
36
- */
37
- autoValue?: ColorModeBootAutoValue;
38
- /**
39
- * Leave `attribute` alone when it already carries a concrete mode, and
40
- * render that instead of the visitor's stored preference. @default false
41
- *
42
- * For a page whose theme is not the visitor's to choose: a public status
43
- * page whose owner forces light or dark for everyone, stamped server-side
44
- * during render. Without this the boot script computes from storage and
45
- * stamps unconditionally, so a visitor who had browsed in dark saw the
46
- * forced-light page in dark (stacksjs/stx#2050).
47
- *
48
- * Only `'light'` and `'dark'` count as concrete. `'auto'` and `'system'`
49
- * are instructions to resolve, not answers, so they are ignored here and
50
- * the stored preference wins as usual.
51
- *
52
- * The adopted value is published as `forced` on the boot global, because
53
- * once this script has stamped the attribute nothing downstream can tell a
54
- * forced value from a computed one by looking at the DOM. `useColorMode`
55
- * reads it and renders it over its own resolution.
56
- */
57
- respectExisting?: boolean;
58
- }
59
1
  /**
60
2
  * Build the synchronous pre-paint `<script>`.
61
3
  *
@@ -110,3 +52,24 @@ export declare function normalizeCriticalHeadOrder(html: string): string;
110
52
  * A no-op when the document has no boot script or it is already in place.
111
53
  */
112
54
  export declare function hoistColorModeBootScript(html: string): string;
55
+ /** Marker attribute — makes injection idempotent and findable by tests. */
56
+ export declare const COLOR_MODE_BOOT_MARKER: 'data-stx-color-mode-boot';
57
+ /** The global the boot script publishes its resolved config on. */
58
+ export declare const COLOR_MODE_BOOT_GLOBAL: '__STX_COLOR_MODE__';
59
+ /**
60
+ * Pre-paint options. A strict subset of `ColorModeOptions` — only the fields
61
+ * that affect what lands on the root element before paint. `disableTransitions`
62
+ * is deliberately absent: nothing has painted yet, so there is no transition to
63
+ * suppress, and forcing a reflow in the critical path would only cost time.
64
+ */
65
+ export declare interface ColorModeBootConfig {
66
+ storageKey?: string
67
+ initialMode?: ColorModeBootMode
68
+ darkClass?: string | null
69
+ attribute?: string | null
70
+ autoValue?: ColorModeBootAutoValue
71
+ respectExisting?: boolean
72
+ }
73
+ export type ColorModeBootMode = 'light' | 'dark' | 'auto' | 'system';
74
+ /** Spelling written to storage for "follow the system". */
75
+ export type ColorModeBootAutoValue = 'auto' | 'system';
@@ -1,4 +1,3 @@
1
- export declare const COMPONENT_CLIENT_FACTORIES_CONTEXT_KEY = "__stx_component_client_factories";
2
1
  export declare function initializeComponentClientFactories(context: Record<string, unknown>): void;
3
2
  export declare function registerComponentClientFactory(context: Record<string, unknown>, factoryBody: string): string | null;
4
3
  export declare function injectComponentClientFactories(html: string, context: Record<string, unknown>): string;
@@ -22,12 +21,12 @@ export declare function injectComponentClientFactories(html: string, context: Re
22
21
  */
23
22
  export declare function snapshotComponentClientFactoryCounts(context: Record<string, unknown>): Map<string, number>;
24
23
  /** The factories registered since `before`, with how many instances each gained. */
25
- export declare function componentClientFactoriesRegisteredSince(context: Record<string, unknown>, before: Map<string, number>): Array<{
26
- body: string;
27
- count: number;
28
- }>;
24
+ export declare function componentClientFactoriesRegisteredSince(context: Record<string, unknown>, before: Map<string, number>): Array<{ body: string, count: number }>;
29
25
  /** Re-register what a cached render registered, so the instance counts match. */
30
- export declare function replayComponentClientFactories(context: Record<string, unknown>, registered: Array<{
31
- body: string;
32
- count: number;
33
- }>): void;
26
+ export declare function replayComponentClientFactories(context: Record<string, unknown>, registered: Array<{ body: string, count: number }>): void;
27
+ export declare const COMPONENT_CLIENT_FACTORIES_CONTEXT_KEY: '__stx_component_client_factories';
28
+ declare interface ComponentClientFactory {
29
+ body: string
30
+ instances: number
31
+ }
32
+ declare type ComponentClientFactoryRegistry = Map<string, ComponentClientFactory>;
@@ -1,22 +1,19 @@
1
1
  import type { TemplateExpression } from './stx-virtual-ts';
2
- export interface ContractCheck {
3
- expression: TemplateExpression;
4
- statement: {
5
- text: string;
6
- prefixLength: number;
7
- };
8
- }
9
- export interface ContractCheckOptions {
10
- filePath: string;
11
- componentsDir?: string;
12
- projectRoot?: string;
13
- readComponent?: (file: string) => string | undefined;
14
- scriptCode: (source: string, file: string) => string;
15
- }
16
2
  /** Parent call-site checks; shared unchanged by CLI and editor virtual buffers. */
17
3
  export declare function componentContractChecks(source: string, masked: string, options: ContractCheckOptions): {
18
- declarations: string;
19
- checks: ContractCheck[];
20
- events: Map<number, string>;
21
- dependencies: Map<string, string>;
4
+ declarations: string
5
+ checks: ContractCheck[]
6
+ events: Map<number, string>
7
+ dependencies: Map<string, string>
22
8
  };
9
+ export declare interface ContractCheck {
10
+ expression: TemplateExpression
11
+ statement: { text: string, prefixLength: number }
12
+ }
13
+ export declare interface ContractCheckOptions {
14
+ filePath: string
15
+ componentsDir?: string
16
+ projectRoot?: string
17
+ readComponent?: (file: string) => string | undefined
18
+ scriptCode: (source: string, file: string) => string
19
+ }
@@ -1,12 +1,12 @@
1
- export interface ComponentContract {
2
- declarations: string;
3
- props: string | null;
4
- events: string | null;
5
- }
6
- export declare const COMPONENT_CONTRACT_HELPERS = "\ntype __StxCtor<T> = T extends StringConstructor ? string : T extends NumberConstructor ? number : T extends BooleanConstructor ? boolean : T extends ArrayConstructor ? unknown[] : T extends ObjectConstructor ? object : T extends readonly unknown[] ? __StxCtor<T[number]> : T extends abstract new (...args: any[]) => infer V ? V : unknown;\ntype __StxWiden<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T;\ntype __StxOption<T> = T extends { type: infer C } ? __StxCtor<C> : T extends { default: infer D } ? D extends (...args: any[]) => infer V ? V : __StxWiden<D> : __StxCtor<T>;\ntype __StxRequired<O> = { [K in keyof O]-?: O[K] extends { required: true } ? K : never }[keyof O];\ntype __StxDefaulted<O> = { [K in keyof O]-?: O[K] extends { default: unknown } ? K : never }[keyof O];\ntype __StxOptions<O> = { [K in Exclude<__StxRequired<O>, __StxDefaulted<O>>]: __StxOption<O[K]> } & { [K in Exclude<keyof O, Exclude<__StxRequired<O>, __StxDefaulted<O>>>]?: __StxOption<O[K]> };\ntype __StxDefaults<P, K> = Omit<P, Extract<keyof P, K>> & Partial<Pick<P, Extract<keyof P, K>>>;\n";
7
1
  /**
8
2
  * Project a child's declared contract into its parent's virtual TS module.
9
3
  * TypeScript, not this scanner, resolves aliases, imports and assignability.
10
4
  * Original script bodies stay isolated inside a namespace; they are never run.
11
5
  */
12
6
  export declare function componentContract(code: string, namespace: string): ComponentContract;
7
+ export declare const COMPONENT_CONTRACT_HELPERS: string;
8
+ export declare interface ComponentContract {
9
+ declarations: string
10
+ props: string | null
11
+ events: string | null
12
+ }
@@ -14,6 +14,13 @@ export declare function getHMRHandler(config?: ComponentHMRConfig): ComponentHMR
14
14
  * Reset global HMR handler
15
15
  */
16
16
  export declare function resetHMRHandler(): void;
17
+ declare const __dtsx_default_export__: {
18
+ ComponentHMRHandler: typeof ComponentHMRHandler;
19
+ getHMRHandler: typeof getHMRHandler;
20
+ resetHMRHandler: typeof resetHMRHandler;
21
+ generateHMRClientScript: typeof generateHMRClientScript;
22
+ wrapComponentForHMR: typeof wrapComponentForHMR
23
+ };
17
24
  /* eslint-disable prefer-const, style/max-statements-per-line, no-super-linear-backtracking, regexp/no-unused-capturing-group */
18
25
  /**
19
26
  * Component HMR (Hot Module Replacement)
@@ -98,10 +105,4 @@ export declare class ComponentHMRHandler {
98
105
  // =============================================================================
99
106
  // Exports
100
107
  // =============================================================================
101
- export default {
102
- ComponentHMRHandler,
103
- getHMRHandler,
104
- resetHMRHandler,
105
- generateHMRClientScript,
106
- wrapComponentForHMR,
107
- };
108
+ export default __dtsx_default_export__;
@@ -1,29 +1,23 @@
1
1
  import type { Signal } from './signals-api';
2
- export type ModelModifiers = Readonly<Record<string, boolean>>;
3
- export interface ModelOptions<T> {
4
- default?: T;
5
- parse?: (value: string) => T;
6
- get?: (value: T) => T;
7
- set?: (value: T, modifiers: ModelModifiers) => T;
8
- }
9
- export interface ModelSignal<T> extends Signal<T> {
10
- readonly modifiers: ModelModifiers;
11
- /** Input-event write; deferred when the parent supplied .lazy. */
12
- input(value: T): void;
13
- /** Change-event write; used only when the parent supplied .lazy. */
14
- change(value: T): void;
15
- }
16
2
  /**
17
3
  * Shared by module imports and the generated browser runtime. Keep this
18
4
  * function closure-free: the runtime embeds its JavaScript source, with all
19
5
  * reactive and lifecycle dependencies supplied explicitly.
20
6
  */
21
7
  export declare function createModelSignal<T>(source: Signal<T>, modifiers: () => ModelModifiers, emit: (value: T) => void, options: ModelOptions<T>, cleanup: (fn: () => void) => void): ModelSignal<T>;
22
- export declare function useModel<T>(options: ModelOptions<T> & {
23
- default: T;
24
- }): ModelSignal<T>;
25
- export declare function useModel<T>(name: string, options: ModelOptions<T> & {
26
- default: T;
27
- }): ModelSignal<T>;
8
+ export declare function useModel<T>(options: ModelOptions<T> & { default: T }): ModelSignal<T>;
9
+ export declare function useModel<T>(name: string, options: ModelOptions<T> & { default: T }): ModelSignal<T>;
28
10
  export declare function useModel<T = unknown>(name?: string, options?: ModelOptions<T>): ModelSignal<T | undefined>;
29
11
  export declare function useModel<T = unknown>(options?: ModelOptions<T>): ModelSignal<T | undefined>;
12
+ export declare interface ModelOptions<T> {
13
+ default?: T
14
+ parse?: (value: string) => T
15
+ get?: (value: T) => T
16
+ set?: (value: T, modifiers: ModelModifiers) => T
17
+ }
18
+ export declare interface ModelSignal<T> extends Signal<T> {
19
+ readonly modifiers: ModelModifiers
20
+ input(value: T): void
21
+ change(value: T): void
22
+ }
23
+ export type ModelModifiers = Readonly<Record<string, boolean>>;
@@ -1,60 +1,6 @@
1
- /**
2
- * Component processing functions extracted from process.ts.
3
- *
4
- * Handles component tag parsing, attribute parsing, built-in STX components,
5
- * @import directives, @component directives, and custom element resolution
6
- * (kebab-case and PascalCase).
7
- */
8
- import type { StxOptions } from './types';
9
- export { pascalToKebab } from './component-resolution';
1
+ import { pascalToKebab } from './component-resolution';
10
2
  import { restoreStashedScripts, stashScriptElements } from './html-masking';
11
- export { restoreStashedScripts, stashScriptElements };
12
- /**
13
- * Parse HTML/JSX-like attributes from a string.
14
- *
15
- * Properly handles:
16
- * - Simple attributes: `name="value"`
17
- * - Boolean attributes: `disabled`
18
- * - Dynamic values: `prop="{{ expr }}"` (evaluated at SSR)
19
- * - Attributes with `=` in values: `url="https://example.com?a=1&b=2"`
20
- * - Single and double quoted values
21
- * - Escaped quotes within values
22
- *
23
- * ## Dynamic Data Syntax
24
- *
25
- * Use `{{ }}` for all dynamic data interpolation:
26
- * ```html
27
- * <Component title="{{ pageTitle }}" count="{{ items.length }}" />
28
- * <div class="{{ isActive ? 'active' : '' }}">{{ content }}</div>
29
- * ```
30
- *
31
- * ## Event Syntax (Alpine-style)
32
- *
33
- * ```html
34
- * <button @click="handleClick()">Click me</button>
35
- * <form @submit.prevent="handleSubmit()">...</form>
36
- * <input @keydown.enter="send()" @keydown.escape="cancel()">
37
- * ```
38
- *
39
- * @param attributesStr - The attributes portion of a tag (between tag name and closing)
40
- * @returns Array of parsed attributes with name and value
41
- */
42
- export interface ParsedAttribute {
43
- name: string;
44
- value: string | true;
45
- }
46
- /**
47
- * Component tag match result
48
- */
49
- export interface ComponentTagMatch {
50
- fullMatch: string;
51
- tagName: string;
52
- attributes: string;
53
- content: string;
54
- startIndex: number;
55
- endIndex: number;
56
- isSelfClosing: boolean;
57
- }
3
+ import type { StxOptions } from './types';
58
4
  /**
59
5
  * Skip predicate for the PascalCase pass: an HTML element SHOUTED in caps.
60
6
  *
@@ -131,9 +77,7 @@ export declare function findComponentTags(html: string, tagPattern: RegExp, skip
131
77
  * live markup.
132
78
  */
133
79
  export declare function decodeAttributeEntities(value: string): string;
134
- export declare function decodeStxProp(attrValue: string, options?: {
135
- debug?: boolean;
136
- }): unknown;
80
+ export declare function decodeStxProp(attrValue: string, options?: { debug?: boolean }): unknown;
137
81
  /**
138
82
  * Parse multiline attributes from a component tag
139
83
  * Handles HTML content inside attribute values correctly
@@ -181,3 +125,51 @@ export declare function processComponentDirectives(template: string, context: Re
181
125
  * Uses a proper parser that handles HTML content inside attribute values
182
126
  */
183
127
  export declare function processCustomElements(template: string, context: Record<string, any>, filePath: string, componentsDir: string, options: StxOptions, dependencies: Set<string>): Promise<string>;
128
+ /**
129
+ * Parse HTML/JSX-like attributes from a string.
130
+ *
131
+ * Properly handles:
132
+ * - Simple attributes: `name="value"`
133
+ * - Boolean attributes: `disabled`
134
+ * - Dynamic values: `prop="{{ expr }}"` (evaluated at SSR)
135
+ * - Attributes with `=` in values: `url="https://example.com?a=1&b=2"`
136
+ * - Single and double quoted values
137
+ * - Escaped quotes within values
138
+ *
139
+ * ## Dynamic Data Syntax
140
+ *
141
+ * Use `{{ }}` for all dynamic data interpolation:
142
+ * ```html
143
+ * <Component title="{{ pageTitle }}" count="{{ items.length }}" />
144
+ * <div class="{{ isActive ? 'active' : '' }}">{{ content }}</div>
145
+ * ```
146
+ *
147
+ * ## Event Syntax (Alpine-style)
148
+ *
149
+ * ```html
150
+ * <button @click="handleClick()">Click me</button>
151
+ * <form @submit.prevent="handleSubmit()">...</form>
152
+ * <input @keydown.enter="send()" @keydown.escape="cancel()">
153
+ * ```
154
+ *
155
+ * @param attributesStr - The attributes portion of a tag (between tag name and closing)
156
+ * @returns Array of parsed attributes with name and value
157
+ */
158
+ export declare interface ParsedAttribute {
159
+ name: string
160
+ value: string | true
161
+ }
162
+ /**
163
+ * Component tag match result
164
+ */
165
+ export declare interface ComponentTagMatch {
166
+ fullMatch: string
167
+ tagName: string
168
+ attributes: string
169
+ content: string
170
+ startIndex: number
171
+ endIndex: number
172
+ isSelfClosing: boolean
173
+ }
174
+ export { pascalToKebab } from './component-resolution';
175
+ export { restoreStashedScripts, stashScriptElements };