@ohos-ports/stacksjs-stx 0.2.287-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +21 -0
- package/README.md +1042 -0
- package/dist/a11y.d.ts +256 -0
- package/dist/a11y.js +671 -0
- package/dist/analytics.d.ts +40 -0
- package/dist/analytics.js +159 -0
- package/dist/analyzer.d.ts +68 -0
- package/dist/analyzer.js +240 -0
- package/dist/animation.d.ts +123 -0
- package/dist/animation.js +688 -0
- package/dist/app-shell.d.ts +76 -0
- package/dist/app-shell.js +209 -0
- package/dist/app.d.ts +65 -0
- package/dist/app.js +79 -0
- package/dist/appearance-bootstrap.d.ts +54 -0
- package/dist/appearance-bootstrap.js +92 -0
- package/dist/asset-roots.d.ts +32 -0
- package/dist/asset-roots.js +7 -0
- package/dist/assets.d.ts +21 -0
- package/dist/assets.js +155 -0
- package/dist/ast.d.ts +265 -0
- package/dist/ast.js +630 -0
- package/dist/async-components.d.ts +123 -0
- package/dist/async-components.js +428 -0
- package/dist/auth.d.ts +13 -0
- package/dist/auth.js +12 -0
- package/dist/broadcasting.d.ts +77 -0
- package/dist/broadcasting.js +103 -0
- package/dist/browser-composables.d.ts +348 -0
- package/dist/browser-composables.js +606 -0
- package/dist/browser-core-imports.d.ts +12 -0
- package/dist/browser-core-imports.js +28 -0
- package/dist/build-assets.d.ts +32 -0
- package/dist/build-assets.js +29 -0
- package/dist/build-externalize-repeated.d.ts +34 -0
- package/dist/build-externalize-repeated.js +101 -0
- package/dist/build-externalize.d.ts +73 -0
- package/dist/build-externalize.js +80 -0
- package/dist/build-id.d.ts +57 -0
- package/dist/build-id.js +25 -0
- package/dist/build-message.d.ts +81 -0
- package/dist/build-message.js +65 -0
- package/dist/build-mode-detector.d.ts +26 -0
- package/dist/build-mode-detector.js +50 -0
- package/dist/build-optimizer.d.ts +101 -0
- package/dist/build-optimizer.js +433 -0
- package/dist/build-views.d.ts +56 -0
- package/dist/build-views.js +180 -0
- package/dist/build.d.ts +31 -0
- package/dist/build.js +34 -0
- package/dist/builtins/attrs.d.ts +49 -0
- package/dist/builtins/attrs.js +39 -0
- package/dist/builtins/drawer.d.ts +24 -0
- package/dist/builtins/drawer.js +37 -0
- package/dist/builtins/escape.d.ts +12 -0
- package/dist/builtins/escape.js +3 -0
- package/dist/builtins/icon.d.ts +45 -0
- package/dist/builtins/icon.js +100 -0
- package/dist/builtins/image-delivery.d.ts +16 -0
- package/dist/builtins/image-delivery.js +115 -0
- package/dist/builtins/image-placeholder.d.ts +78 -0
- package/dist/builtins/image-placeholder.js +137 -0
- package/dist/builtins/index.d.ts +26 -0
- package/dist/builtins/index.js +34 -0
- package/dist/builtins/modal.d.ts +26 -0
- package/dist/builtins/modal.js +38 -0
- package/dist/builtins/safe-image.d.ts +44 -0
- package/dist/builtins/safe-image.js +45 -0
- package/dist/builtins/stx-image.d.ts +29 -0
- package/dist/builtins/stx-image.js +222 -0
- package/dist/builtins/stx-link.d.ts +11 -0
- package/dist/builtins/stx-link.js +35 -0
- package/dist/builtins/stx-loading-indicator.d.ts +13 -0
- package/dist/builtins/stx-loading-indicator.js +35 -0
- package/dist/builtins/suspense.d.ts +30 -0
- package/dist/builtins/suspense.js +24 -0
- package/dist/builtins/toast.d.ts +19 -0
- package/dist/builtins/toast.js +42 -0
- package/dist/builtins/tooltip.d.ts +18 -0
- package/dist/builtins/tooltip.js +106 -0
- package/dist/builtins/transition-group.d.ts +27 -0
- package/dist/builtins/transition-group.js +22 -0
- package/dist/bun-shim.js +496 -0
- package/dist/bundle-analyzer/collector.d.ts +66 -0
- package/dist/bundle-analyzer/collector.js +233 -0
- package/dist/bundle-analyzer/index.d.ts +98 -0
- package/dist/bundle-analyzer/index.js +82 -0
- package/dist/bundle-analyzer/report.d.ts +39 -0
- package/dist/bundle-analyzer/report.js +318 -0
- package/dist/bundle-analyzer/treemap.d.ts +19 -0
- package/dist/bundle-analyzer/treemap.js +594 -0
- package/dist/bundle-analyzer.js +499 -0
- package/dist/caching.d.ts +69 -0
- package/dist/caching.js +135 -0
- package/dist/chunk-0y46fbkx.js +3 -0
- package/dist/chunk-122tyfre.js +2 -0
- package/dist/chunk-19nfvxfw.js +43 -0
- package/dist/chunk-1kah92n2.js +3 -0
- package/dist/chunk-1kms3b9d.js +2 -0
- package/dist/chunk-1q4y74mh.js +1194 -0
- package/dist/chunk-248e84r1.js +4 -0
- package/dist/chunk-24ps8kft.js +2 -0
- package/dist/chunk-2et5hxfv.js +2 -0
- package/dist/chunk-2r1rd8f0.js +2 -0
- package/dist/chunk-2tk1zkrz.js +2 -0
- package/dist/chunk-38ejahd9.js +3 -0
- package/dist/chunk-3zv4wz87.js +2 -0
- package/dist/chunk-4122k1bh.js +2 -0
- package/dist/chunk-45az9zht.js +2 -0
- package/dist/chunk-4qr85f07.js +2 -0
- package/dist/chunk-4ww3znrr.js +15 -0
- package/dist/chunk-54st8g2j.js +397 -0
- package/dist/chunk-58f0mthg.js +3 -0
- package/dist/chunk-5a19dhx5.js +2 -0
- package/dist/chunk-5kk8gsj2.js +3 -0
- package/dist/chunk-5w1e3yxs.js +499 -0
- package/dist/chunk-6gdycmxr.js +2 -0
- package/dist/chunk-6hmnaza7.js +4473 -0
- package/dist/chunk-71t0yan0.js +5 -0
- package/dist/chunk-74cv4ta1.js +3 -0
- package/dist/chunk-74v15e8z.js +2 -0
- package/dist/chunk-7b329e5v.js +3 -0
- package/dist/chunk-7q9mwh4v.js +84 -0
- package/dist/chunk-866y9d8b.js +8169 -0
- package/dist/chunk-8fwerspy.js +2 -0
- package/dist/chunk-8mjdpr94.js +147 -0
- package/dist/chunk-92mj1t26.js +60 -0
- package/dist/chunk-9b22663r.js +2 -0
- package/dist/chunk-9hjdgm4d.js +2 -0
- package/dist/chunk-9n0gvfrg.js +4 -0
- package/dist/chunk-9wr7zcad.js +18 -0
- package/dist/chunk-9y0g8kzt.js +358 -0
- package/dist/chunk-a0nfbmeh.js +3 -0
- package/dist/chunk-acn1b56m.js +1280 -0
- package/dist/chunk-awkq3xfx.js +2 -0
- package/dist/chunk-b6ej2fdf.js +1814 -0
- package/dist/chunk-b8rrnqry.js +2 -0
- package/dist/chunk-bfqfs07m.js +3022 -0
- package/dist/chunk-bs6kapy7.js +2 -0
- package/dist/chunk-btav940g.js +2 -0
- package/dist/chunk-bz820epz.js +3 -0
- package/dist/chunk-ccspd3mc.js +2 -0
- package/dist/chunk-csbgwaa5.js +2 -0
- package/dist/chunk-d8t4sjsp.js +2 -0
- package/dist/chunk-dap191q2.js +2 -0
- package/dist/chunk-de7fye10.js +4 -0
- package/dist/chunk-dgrt76d2.js +2 -0
- package/dist/chunk-dhh5q7qt.js +3 -0
- package/dist/chunk-dsffsqnt.js +2 -0
- package/dist/chunk-dtq7y5ym.js +2 -0
- package/dist/chunk-fed3xsp9.js +3 -0
- package/dist/chunk-ferav3bw.js +19 -0
- package/dist/chunk-fvhm8psm.js +3 -0
- package/dist/chunk-g4vpzv6b.js +2 -0
- package/dist/chunk-g9csmj0s.js +2 -0
- package/dist/chunk-gtcrpmz1.js +2 -0
- package/dist/chunk-h4xh8cms.js +4 -0
- package/dist/chunk-h8yqsz9m.js +2 -0
- package/dist/chunk-hcq5dw7a.js +2 -0
- package/dist/chunk-hm0xha6c.js +12 -0
- package/dist/chunk-hpybjwwf.js +8 -0
- package/dist/chunk-jegt35zh.js +2 -0
- package/dist/chunk-jr3jp3ev.js +8 -0
- package/dist/chunk-k56rjjc0.js +24 -0
- package/dist/chunk-kdh37tp8.js +194 -0
- package/dist/chunk-kxzb4et3.js +29 -0
- package/dist/chunk-mf4n3x1j.js +14 -0
- package/dist/chunk-mkd9kjgb.js +3 -0
- package/dist/chunk-mxfh1nxg.js +2 -0
- package/dist/chunk-n3ggrhb3.js +3 -0
- package/dist/chunk-nkb3scg6.js +8 -0
- package/dist/chunk-nnd4wq8j.js +231 -0
- package/dist/chunk-nsp1cw38.js +11 -0
- package/dist/chunk-nx5qkm8k.js +30 -0
- package/dist/chunk-p3242nck.js +2 -0
- package/dist/chunk-p98kfh94.js +2 -0
- package/dist/chunk-pkaabd8h.js +3 -0
- package/dist/chunk-pzm13sdc.js +3 -0
- package/dist/chunk-q4p5k2p3.js +2 -0
- package/dist/chunk-q9n5swx7.js +3 -0
- package/dist/chunk-qc1f74ek.js +3 -0
- package/dist/chunk-qpyjak7z.js +2 -0
- package/dist/chunk-qr82je1m.js +22 -0
- package/dist/chunk-qy73j6m4.js +288 -0
- package/dist/chunk-qzkhpsam.js +505 -0
- package/dist/chunk-r3ayvdz3.js +2 -0
- package/dist/chunk-r7r66978.js +2 -0
- package/dist/chunk-rbb7dvja.js +30 -0
- package/dist/chunk-refwkt87.js +71 -0
- package/dist/chunk-rj4kajww.js +2 -0
- package/dist/chunk-rp4rjjmf.js +2 -0
- package/dist/chunk-se0p17c2.js +898 -0
- package/dist/chunk-sj9pmene.js +2 -0
- package/dist/chunk-sscwkffs.js +2 -0
- package/dist/chunk-svpqxn2c.js +2 -0
- package/dist/chunk-t6nseeb9.js +351 -0
- package/dist/chunk-t8y1ggdy.js +2 -0
- package/dist/chunk-tndhnk9e.js +2 -0
- package/dist/chunk-v5e1gxwm.js +3 -0
- package/dist/chunk-vqxmxgaj.js +4 -0
- package/dist/chunk-vrrax298.js +2 -0
- package/dist/chunk-w3ycm4na.js +3 -0
- package/dist/chunk-wcm80anz.js +321 -0
- package/dist/chunk-wrzwgkbx.js +22 -0
- package/dist/chunk-x650vjcp.js +302 -0
- package/dist/chunk-xgnc1wy6.js +116 -0
- package/dist/chunk-xpp135ad.js +11 -0
- package/dist/chunk-xttsqmkm.js +216 -0
- package/dist/chunk-y11cxbxd.js +3757 -0
- package/dist/chunk-y7m2dpd3.js +341 -0
- package/dist/chunk-y98jsjqq.js +2 -0
- package/dist/chunk-ya386h70.js +2 -0
- package/dist/chunk-ydrz60kr.js +2 -0
- package/dist/chunk-ypmqf7tm.js +4 -0
- package/dist/chunk-z4jhj5e5.js +28 -0
- package/dist/chunk-zg75gjns.js +2 -0
- package/dist/chunk-zqqx1qaj.js +2 -0
- package/dist/cli-flags.d.ts +34 -0
- package/dist/cli-flags.js +20 -0
- package/dist/cli.js +174 -0
- package/dist/client/directive.d.ts +17 -0
- package/dist/client/directive.js +14 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.js +2 -0
- package/dist/client-helpers.d.ts +317 -0
- package/dist/client-helpers.js +312 -0
- package/dist/client-script-bundler.d.ts +103 -0
- package/dist/client-script-bundler.js +390 -0
- package/dist/client-script.d.ts +215 -0
- package/dist/client-script.js +865 -0
- package/dist/client.d.ts +21 -0
- package/dist/client.js +73 -0
- package/dist/codemod.d.ts +33 -0
- package/dist/codemod.js +244 -0
- package/dist/color-mode-boot.d.ts +92 -0
- package/dist/color-mode-boot.js +72 -0
- package/dist/component-client-factories.d.ts +33 -0
- package/dist/component-client-factories.js +77 -0
- package/dist/component-hmr.d.ts +107 -0
- package/dist/component-hmr.js +585 -0
- package/dist/component-library.d.ts +38 -0
- package/dist/component-library.js +994 -0
- package/dist/component-processing.d.ts +198 -0
- package/dist/component-processing.js +677 -0
- package/dist/component-registry.d.ts +127 -0
- package/dist/component-registry.js +90 -0
- package/dist/component-renderer.d.ts +52 -0
- package/dist/component-renderer.js +790 -0
- package/dist/components/StxImage.stx +12 -0
- package/dist/components/StxLink.stx +18 -0
- package/dist/components.d.ts +28 -0
- package/dist/components.js +213 -0
- package/dist/composable-loader.d.ts +62 -0
- package/dist/composable-loader.js +190 -0
- package/dist/composables/index.d.ts +417 -0
- package/dist/composables/index.js +222 -0
- package/dist/composables/use-battery.d.ts +46 -0
- package/dist/composables/use-battery.js +101 -0
- package/dist/composables/use-broadcast-channel.d.ts +59 -0
- package/dist/composables/use-broadcast-channel.js +80 -0
- package/dist/composables/use-channel.d.ts +67 -0
- package/dist/composables/use-channel.js +124 -0
- package/dist/composables/use-clipboard.d.ts +30 -0
- package/dist/composables/use-clipboard.js +90 -0
- package/dist/composables/use-color-mode.d.ts +67 -0
- package/dist/composables/use-color-mode.js +152 -0
- package/dist/composables/use-cookie.d.ts +59 -0
- package/dist/composables/use-cookie.js +86 -0
- package/dist/composables/use-device-orientation.d.ts +116 -0
- package/dist/composables/use-device-orientation.js +181 -0
- package/dist/composables/use-event-listener.d.ts +35 -0
- package/dist/composables/use-event-listener.js +27 -0
- package/dist/composables/use-event-source.d.ts +90 -0
- package/dist/composables/use-event-source.js +166 -0
- package/dist/composables/use-eye-dropper.d.ts +117 -0
- package/dist/composables/use-eye-dropper.js +142 -0
- package/dist/composables/use-fetch.d.ts +59 -0
- package/dist/composables/use-fetch.js +273 -0
- package/dist/composables/use-form.d.ts +91 -0
- package/dist/composables/use-form.js +112 -0
- package/dist/composables/use-fullscreen.d.ts +47 -0
- package/dist/composables/use-fullscreen.js +110 -0
- package/dist/composables/use-geolocation.d.ts +62 -0
- package/dist/composables/use-geolocation.js +101 -0
- package/dist/composables/use-idle.d.ts +102 -0
- package/dist/composables/use-idle.js +182 -0
- package/dist/composables/use-intersection-observer.d.ts +83 -0
- package/dist/composables/use-intersection-observer.js +168 -0
- package/dist/composables/use-keyboard.d.ts +100 -0
- package/dist/composables/use-keyboard.js +224 -0
- package/dist/composables/use-media-query.d.ts +56 -0
- package/dist/composables/use-media-query.js +62 -0
- package/dist/composables/use-meta.d.ts +35 -0
- package/dist/composables/use-meta.js +48 -0
- package/dist/composables/use-mouse.d.ts +65 -0
- package/dist/composables/use-mouse.js +286 -0
- package/dist/composables/use-mutation-observer.d.ts +101 -0
- package/dist/composables/use-mutation-observer.js +129 -0
- package/dist/composables/use-network.d.ts +40 -0
- package/dist/composables/use-network.js +85 -0
- package/dist/composables/use-notification.d.ts +98 -0
- package/dist/composables/use-notification.js +94 -0
- package/dist/composables/use-permissions.d.ts +119 -0
- package/dist/composables/use-permissions.js +132 -0
- package/dist/composables/use-query.d.ts +48 -0
- package/dist/composables/use-query.js +0 -0
- package/dist/composables/use-resize-observer.d.ts +60 -0
- package/dist/composables/use-resize-observer.js +157 -0
- package/dist/composables/use-router.d.ts +80 -0
- package/dist/composables/use-router.js +105 -0
- package/dist/composables/use-scroll-lock.d.ts +13 -0
- package/dist/composables/use-scroll-lock.js +55 -0
- package/dist/composables/use-share.d.ts +74 -0
- package/dist/composables/use-share.js +104 -0
- package/dist/composables/use-speech.d.ts +117 -0
- package/dist/composables/use-speech.js +294 -0
- package/dist/composables/use-storage.d.ts +69 -0
- package/dist/composables/use-storage.js +196 -0
- package/dist/composables/use-text-selection.d.ts +121 -0
- package/dist/composables/use-text-selection.js +205 -0
- package/dist/composables/use-timer.d.ts +92 -0
- package/dist/composables/use-timer.js +193 -0
- package/dist/composables/use-utilities.d.ts +103 -0
- package/dist/composables/use-utilities.js +176 -0
- package/dist/composables/use-wake-lock.d.ts +85 -0
- package/dist/composables/use-wake-lock.js +122 -0
- package/dist/composables/use-websocket.d.ts +70 -0
- package/dist/composables/use-websocket.js +165 -0
- package/dist/composables/use-window.d.ts +84 -0
- package/dist/composables/use-window.js +163 -0
- package/dist/composables.d.ts +287 -0
- package/dist/composables.js +562 -0
- package/dist/composition-api.d.ts +197 -0
- package/dist/composition-api.js +199 -0
- package/dist/compression.d.ts +30 -0
- package/dist/compression.js +107 -0
- package/dist/computed.d.ts +138 -0
- package/dist/computed.js +382 -0
- package/dist/conditionals.d.ts +48 -0
- package/dist/conditionals.js +626 -0
- package/dist/config.d.ts +77 -0
- package/dist/config.js +828 -0
- package/dist/cookie-serialize.d.ts +40 -0
- package/dist/cookie-serialize.js +18 -0
- package/dist/craft-bridge.d.ts +525 -0
- package/dist/craft-bridge.js +511 -0
- package/dist/craft-compiler.d.ts +245 -0
- package/dist/craft-compiler.js +810 -0
- package/dist/craft-components.d.ts +739 -0
- package/dist/craft-components.js +1074 -0
- package/dist/craft-entry.d.ts +6 -0
- package/dist/craft-entry.js +9 -0
- package/dist/craft-ssr.d.ts +147 -0
- package/dist/craft-ssr.js +559 -0
- package/dist/craft.js +9 -0
- package/dist/csp.d.ts +295 -0
- package/dist/csp.js +220 -0
- package/dist/csrf.d.ts +38 -0
- package/dist/csrf.js +38 -0
- package/dist/custom-directives.d.ts +5 -0
- package/dist/custom-directives.js +136 -0
- package/dist/database.d.ts +391 -0
- package/dist/database.js +5 -0
- package/dist/defer.d.ts +28 -0
- package/dist/defer.js +156 -0
- package/dist/deploy/config-generators.d.ts +75 -0
- package/dist/deploy/config-generators.js +214 -0
- package/dist/deploy/index.d.ts +88 -0
- package/dist/deploy/index.js +203 -0
- package/dist/deploy/netlify.d.ts +109 -0
- package/dist/deploy/netlify.js +167 -0
- package/dist/desktop.d.ts +16 -0
- package/dist/desktop.js +1 -0
- package/dist/dev-server/index.d.ts +22 -0
- package/dist/dev-server/index.js +7 -0
- package/dist/dev-server/keyboard-shortcuts.d.ts +34 -0
- package/dist/dev-server/keyboard-shortcuts.js +81 -0
- package/dist/dev-server/native-window.d.ts +59 -0
- package/dist/dev-server/native-window.js +91 -0
- package/dist/dev-server/port-utils.d.ts +27 -0
- package/dist/dev-server/port-utils.js +40 -0
- package/dist/dev-server/serve-app.d.ts +15 -0
- package/dist/dev-server/serve-app.js +727 -0
- package/dist/dev-server/serve-file.d.ts +3 -0
- package/dist/dev-server/serve-file.js +443 -0
- package/dist/dev-server/serve-markdown.d.ts +3 -0
- package/dist/dev-server/serve-markdown.js +284 -0
- package/dist/dev-server/serve-multi.d.ts +5 -0
- package/dist/dev-server/serve-multi.js +596 -0
- package/dist/dev-server/terminal-colors.d.ts +56 -0
- package/dist/dev-server/terminal-colors.js +45 -0
- package/dist/dev-server/theme-selector.d.ts +32 -0
- package/dist/dev-server/theme-selector.js +111 -0
- package/dist/dev-server/ts-css.d.ts +108 -0
- package/dist/dev-server/ts-css.js +438 -0
- package/dist/dev-server/types.d.ts +99 -0
- package/dist/dev-server/types.js +43 -0
- package/dist/dev-server.d.ts +6 -0
- package/dist/dev-server.js +4 -0
- package/dist/devtools.d.ts +182 -0
- package/dist/devtools.js +593 -0
- package/dist/directive-api.d.ts +154 -0
- package/dist/directive-api.js +355 -0
- package/dist/docs.d.ts +56 -0
- package/dist/docs.js +567 -0
- package/dist/doctor.d.ts +29 -0
- package/dist/doctor.js +123 -0
- package/dist/document-shell.d.ts +218 -0
- package/dist/document-shell.js +338 -0
- package/dist/dynamic-components.d.ts +23 -0
- package/dist/dynamic-components.js +197 -0
- package/dist/edge-runtime.d.ts +193 -0
- package/dist/edge-runtime.js +525 -0
- package/dist/env.d.ts +3 -0
- package/dist/env.js +9 -0
- package/dist/error-boundaries.d.ts +78 -0
- package/dist/error-boundaries.js +281 -0
- package/dist/error-handling.d.ts +14 -0
- package/dist/error-handling.js +1 -0
- package/dist/errors/codes.d.ts +92 -0
- package/dist/errors/codes.js +97 -0
- package/dist/errors/formatter.d.ts +84 -0
- package/dist/errors/formatter.js +196 -0
- package/dist/errors/index.d.ts +12 -0
- package/dist/errors/index.js +44 -0
- package/dist/errors/logger.d.ts +135 -0
- package/dist/errors/logger.js +250 -0
- package/dist/errors/sanitizer.d.ts +73 -0
- package/dist/errors/sanitizer.js +181 -0
- package/dist/errors/types.d.ts +92 -0
- package/dist/errors/types.js +86 -0
- package/dist/events.d.ts +145 -0
- package/dist/events.js +396 -0
- package/dist/expressions.d.ts +180 -0
- package/dist/expressions.js +719 -0
- package/dist/find-body-tag.d.ts +50 -0
- package/dist/find-body-tag.js +57 -0
- package/dist/formatter.d.ts +19 -0
- package/dist/formatter.js +265 -0
- package/dist/forms-validation.d.ts +189 -0
- package/dist/forms-validation.js +421 -0
- package/dist/forms.d.ts +224 -0
- package/dist/forms.js +729 -0
- package/dist/fragment-container.d.ts +57 -0
- package/dist/fragment-container.js +123 -0
- package/dist/framework-composables.d.ts +73 -0
- package/dist/framework-composables.js +126 -0
- package/dist/head-injection.d.ts +61 -0
- package/dist/head-injection.js +28 -0
- package/dist/head.d.ts +282 -0
- package/dist/head.js +231 -0
- package/dist/heatmap.d.ts +206 -0
- package/dist/heatmap.js +566 -0
- package/dist/hot-reload.d.ts +87 -0
- package/dist/hot-reload.js +373 -0
- package/dist/html-masking.d.ts +125 -0
- package/dist/html-masking.js +196 -0
- package/dist/hydration-runtime.d.ts +44 -0
- package/dist/hydration-runtime.js +195 -0
- package/dist/hydration.d.ts +135 -0
- package/dist/hydration.js +654 -0
- package/dist/i18n.d.ts +342 -0
- package/dist/i18n.js +678 -0
- package/dist/image-optimization/auto-sibling.d.ts +42 -0
- package/dist/image-optimization/auto-sibling.js +88 -0
- package/dist/image-optimization/build-plugin.d.ts +54 -0
- package/dist/image-optimization/build-plugin.js +241 -0
- package/dist/image-optimization/component.d.ts +46 -0
- package/dist/image-optimization/component.js +244 -0
- package/dist/image-optimization/directive.d.ts +30 -0
- package/dist/image-optimization/directive.js +203 -0
- package/dist/image-optimization/index.d.ts +156 -0
- package/dist/image-optimization/index.js +54 -0
- package/dist/image-optimization/processor.d.ts +140 -0
- package/dist/image-optimization/processor.js +262 -0
- package/dist/image-optimization/serve.d.ts +54 -0
- package/dist/image-optimization/serve.js +102 -0
- package/dist/import-rebase.d.ts +16 -0
- package/dist/import-rebase.js +16 -0
- package/dist/imported-signals.d.ts +43 -0
- package/dist/imported-signals.js +35 -0
- package/dist/includes.d.ts +171 -0
- package/dist/includes.js +764 -0
- package/dist/index.d.ts +365 -0
- package/dist/index.js +202 -0
- package/dist/init.d.ts +39 -0
- package/dist/init.js +505 -0
- package/dist/inline-assets.d.ts +28 -0
- package/dist/inline-assets.js +82 -0
- package/dist/interactive.d.ts +14 -0
- package/dist/interactive.js +383 -0
- package/dist/internal-markdown.d.ts +22 -0
- package/dist/internal-markdown.js +141 -0
- package/dist/island-chunking.d.ts +48 -0
- package/dist/island-chunking.js +52 -0
- package/dist/isolated-build.d.ts +12 -0
- package/dist/isolated-build.js +18 -0
- package/dist/js-ts.d.ts +10 -0
- package/dist/js-ts.js +60 -0
- package/dist/jsx-runtime.d.ts +92 -0
- package/dist/jsx-runtime.js +289 -0
- package/dist/keep-alive.d.ts +108 -0
- package/dist/keep-alive.js +421 -0
- package/dist/layout-types.d.ts +45 -0
- package/dist/layout-types.js +56 -0
- package/dist/lazy-loader.d.ts +90 -0
- package/dist/lazy-loader.js +245 -0
- package/dist/lazy-module.d.ts +11 -0
- package/dist/lazy-module.js +18 -0
- package/dist/loading-indicator.d.ts +50 -0
- package/dist/loading-indicator.js +322 -0
- package/dist/loops.d.ts +91 -0
- package/dist/loops.js +690 -0
- package/dist/manifest.d.ts +41 -0
- package/dist/manifest.js +31 -0
- package/dist/markdown-view.d.ts +25 -0
- package/dist/markdown-view.js +39 -0
- package/dist/markdown.d.ts +10 -0
- package/dist/markdown.js +68 -0
- package/dist/media/client/blur-up.d.ts +66 -0
- package/dist/media/client/blur-up.js +217 -0
- package/dist/media/client/index.d.ts +93 -0
- package/dist/media/client/index.js +53 -0
- package/dist/media/client/lazy-load.d.ts +74 -0
- package/dist/media/client/lazy-load.js +283 -0
- package/dist/media/client/upload-handler.d.ts +80 -0
- package/dist/media/client/upload-handler.js +354 -0
- package/dist/media/image/component.d.ts +60 -0
- package/dist/media/image/component.js +574 -0
- package/dist/media/image/directive.d.ts +23 -0
- package/dist/media/image/directive.js +160 -0
- package/dist/media/image/editing.d.ts +212 -0
- package/dist/media/image/editing.js +193 -0
- package/dist/media/image/index.d.ts +142 -0
- package/dist/media/image/index.js +80 -0
- package/dist/media/image/placeholder.d.ts +89 -0
- package/dist/media/image/placeholder.js +188 -0
- package/dist/media/image/processor/cache.d.ts +53 -0
- package/dist/media/image/processor/cache.js +51 -0
- package/dist/media/image/processor/index.d.ts +11 -0
- package/dist/media/image/processor/index.js +3 -0
- package/dist/media/image/processor/optimizer.d.ts +24 -0
- package/dist/media/image/processor/optimizer.js +202 -0
- package/dist/media/image/processor/responsive.d.ts +28 -0
- package/dist/media/image/processor/responsive.js +162 -0
- package/dist/media/image/srcset.d.ts +157 -0
- package/dist/media/image/srcset.js +194 -0
- package/dist/media/index.d.ts +331 -0
- package/dist/media/index.js +198 -0
- package/dist/media/manager/embed.d.ts +25 -0
- package/dist/media/manager/embed.js +253 -0
- package/dist/media/protected/component.d.ts +33 -0
- package/dist/media/protected/component.js +235 -0
- package/dist/media/protected/index.d.ts +47 -0
- package/dist/media/protected/index.js +20 -0
- package/dist/media/protected/signature.d.ts +72 -0
- package/dist/media/protected/signature.js +205 -0
- package/dist/media/shared/cache.d.ts +76 -0
- package/dist/media/shared/cache.js +132 -0
- package/dist/media/shared/hash.d.ts +31 -0
- package/dist/media/shared/hash.js +35 -0
- package/dist/media/shared/index.d.ts +7 -0
- package/dist/media/shared/index.js +2 -0
- package/dist/media/types.d.ts +1477 -0
- package/dist/media/types.js +0 -0
- package/dist/media/upload/component.d.ts +9 -0
- package/dist/media/upload/component.js +320 -0
- package/dist/media/upload/index.d.ts +8 -0
- package/dist/media/upload/index.js +1 -0
- package/dist/media/video/directive.d.ts +23 -0
- package/dist/media/video/directive.js +142 -0
- package/dist/media/video/index.d.ts +76 -0
- package/dist/media/video/index.js +583 -0
- package/dist/media/video/processor/cache.d.ts +55 -0
- package/dist/media/video/processor/cache.js +52 -0
- package/dist/media/video/processor/index.d.ts +12 -0
- package/dist/media/video/processor/index.js +4 -0
- package/dist/media/video/processor/streaming.d.ts +26 -0
- package/dist/media/video/processor/streaming.js +197 -0
- package/dist/media/video/processor/thumbnail.d.ts +35 -0
- package/dist/media/video/processor/thumbnail.js +134 -0
- package/dist/media/video/processor/transcoder.d.ts +19 -0
- package/dist/media/video/processor/transcoder.js +283 -0
- package/dist/menubar.d.ts +65 -0
- package/dist/menubar.js +99 -0
- package/dist/method-spoofing.d.ts +20 -0
- package/dist/method-spoofing.js +17 -0
- package/dist/middleware.d.ts +112 -0
- package/dist/middleware.js +40 -0
- package/dist/misc-directives.d.ts +55 -0
- package/dist/misc-directives.js +328 -0
- package/dist/native-build.d.ts +88 -0
- package/dist/native-build.js +575 -0
- package/dist/owned-routes.d.ts +42 -0
- package/dist/owned-routes.js +26 -0
- package/dist/page-action.d.ts +73 -0
- package/dist/page-action.js +91 -0
- package/dist/page-meta.d.ts +38 -0
- package/dist/page-meta.js +16 -0
- package/dist/page-response.d.ts +120 -0
- package/dist/page-response.js +117 -0
- package/dist/parser/directive-parser.d.ts +119 -0
- package/dist/parser/directive-parser.js +249 -0
- package/dist/parser/expression-parser.d.ts +58 -0
- package/dist/parser/expression-parser.js +358 -0
- package/dist/parser/index.d.ts +13 -0
- package/dist/parser/index.js +23 -0
- package/dist/parser/tokenizer.d.ts +77 -0
- package/dist/parser/tokenizer.js +534 -0
- package/dist/partial-hydration.d.ts +123 -0
- package/dist/partial-hydration.js +427 -0
- package/dist/performance-utils.d.ts +318 -0
- package/dist/performance-utils.js +466 -0
- package/dist/placeholder.d.ts +54 -0
- package/dist/placeholder.js +35 -0
- package/dist/plugin-system.d.ts +301 -0
- package/dist/plugin-system.js +214 -0
- package/dist/plugin.d.ts +3 -0
- package/dist/plugin.js +174 -0
- package/dist/precompiler.d.ts +43 -0
- package/dist/precompiler.js +670 -0
- package/dist/process.d.ts +16 -0
- package/dist/process.js +879 -0
- package/dist/production-build.d.ts +163 -0
- package/dist/production-build.js +596 -0
- package/dist/production-builder.d.ts +42 -0
- package/dist/production-builder.js +146 -0
- package/dist/production-server.d.ts +19 -0
- package/dist/production-server.js +208 -0
- package/dist/prop-sentinels.d.ts +31 -0
- package/dist/prop-sentinels.js +7 -0
- package/dist/props.d.ts +216 -0
- package/dist/props.js +224 -0
- package/dist/public-env.d.ts +29 -0
- package/dist/public-env.js +19 -0
- package/dist/pwa/audit.d.ts +42 -0
- package/dist/pwa/audit.js +255 -0
- package/dist/pwa/directives.d.ts +38 -0
- package/dist/pwa/directives.js +332 -0
- package/dist/pwa/icons.d.ts +42 -0
- package/dist/pwa/icons.js +109 -0
- package/dist/pwa/index.d.ts +104 -0
- package/dist/pwa/index.js +47 -0
- package/dist/pwa/inject.d.ts +32 -0
- package/dist/pwa/inject.js +102 -0
- package/dist/pwa/manifest.d.ts +104 -0
- package/dist/pwa/manifest.js +186 -0
- package/dist/pwa/offline.d.ts +8 -0
- package/dist/pwa/offline.js +259 -0
- package/dist/pwa/precache.d.ts +35 -0
- package/dist/pwa/precache.js +116 -0
- package/dist/pwa/service-worker.d.ts +33 -0
- package/dist/pwa/service-worker.js +860 -0
- package/dist/pwa/workbox-strategies.d.ts +100 -0
- package/dist/pwa/workbox-strategies.js +167 -0
- package/dist/pwa/workbox.d.ts +51 -0
- package/dist/pwa/workbox.js +382 -0
- package/dist/pwa.d.ts +52 -0
- package/dist/pwa.js +236 -0
- package/dist/reactive-bindings.d.ts +47 -0
- package/dist/reactive-bindings.js +268 -0
- package/dist/reactive-tracking.d.ts +81 -0
- package/dist/reactive-tracking.js +49 -0
- package/dist/reactive.d.ts +117 -0
- package/dist/reactive.js +593 -0
- package/dist/reactivity.d.ts +206 -0
- package/dist/reactivity.js +574 -0
- package/dist/release.d.ts +1 -0
- package/dist/release.js +1 -0
- package/dist/render-memo.d.ts +40 -0
- package/dist/render-memo.js +33 -0
- package/dist/render.d.ts +54 -0
- package/dist/render.js +153 -0
- package/dist/resolve-stx-targets.d.ts +49 -0
- package/dist/resolve-stx-targets.js +38 -0
- package/dist/route-middleware.d.ts +2 -0
- package/dist/route-middleware.js +17 -0
- package/dist/route-types.d.ts +134 -0
- package/dist/route-types.js +24 -0
- package/dist/router.d.ts +9 -0
- package/dist/router.js +9 -0
- package/dist/routes.d.ts +6 -0
- package/dist/routes.js +14 -0
- package/dist/runtime-globals.d.ts +236 -0
- package/dist/runtime-globals.js +230 -0
- package/dist/runtime-injection.d.ts +113 -0
- package/dist/runtime-injection.js +156 -0
- package/dist/runtime.d.ts +140 -0
- package/dist/runtime.js +94 -0
- package/dist/safe-evaluator.d.ts +165 -0
- package/dist/safe-evaluator.js +461 -0
- package/dist/scaffolding.d.ts +113 -0
- package/dist/scaffolding.js +897 -0
- package/dist/screenshot.d.ts +22 -0
- package/dist/screenshot.js +100 -0
- package/dist/script-classifier.d.ts +41 -0
- package/dist/script-classifier.js +51 -0
- package/dist/script-emit.d.ts +50 -0
- package/dist/script-emit.js +11 -0
- package/dist/script-json.d.ts +36 -0
- package/dist/script-json.js +6 -0
- package/dist/script-validation.d.ts +26 -0
- package/dist/script-validation.js +179 -0
- package/dist/seo.d.ts +225 -0
- package/dist/seo.js +486 -0
- package/dist/serve.d.ts +44 -0
- package/dist/serve.js +233 -0
- package/dist/server-bindings.d.ts +39 -0
- package/dist/server-bindings.js +171 -0
- package/dist/server-components.d.ts +138 -0
- package/dist/server-components.js +427 -0
- package/dist/sfc-template.d.ts +17 -0
- package/dist/sfc-template.js +32 -0
- package/dist/signal-processing.d.ts +222 -0
- package/dist/signal-processing.js +1081 -0
- package/dist/signals-api.d.ts +459 -0
- package/dist/signals-api.js +172 -0
- package/dist/signals.d.ts +41 -0
- package/dist/signals.js +8233 -0
- package/dist/site-builder/build.d.ts +18 -0
- package/dist/site-builder/build.js +252 -0
- package/dist/site-builder/i18n.d.ts +104 -0
- package/dist/site-builder/i18n.js +150 -0
- package/dist/site-builder/index.d.ts +27 -0
- package/dist/site-builder/index.js +16 -0
- package/dist/site-builder/robots.d.ts +2 -0
- package/dist/site-builder/robots.js +26 -0
- package/dist/site-builder/router.d.ts +10 -0
- package/dist/site-builder/router.js +27 -0
- package/dist/site-builder/seo.d.ts +8 -0
- package/dist/site-builder/seo.js +67 -0
- package/dist/site-builder/sitemap.d.ts +10 -0
- package/dist/site-builder/sitemap.js +26 -0
- package/dist/site-builder/theme.d.ts +12 -0
- package/dist/site-builder/theme.js +38 -0
- package/dist/site-builder/types.d.ts +74 -0
- package/dist/site-builder/types.js +0 -0
- package/dist/site-url.d.ts +46 -0
- package/dist/site-url.js +70 -0
- package/dist/slots.d.ts +129 -0
- package/dist/slots.js +286 -0
- package/dist/source-maps.d.ts +98 -0
- package/dist/source-maps.js +350 -0
- package/dist/source-signature.d.ts +45 -0
- package/dist/source-signature.js +20 -0
- package/dist/spa-nav.d.ts +49 -0
- package/dist/spa-nav.js +12 -0
- package/dist/spa-shell.d.ts +21 -0
- package/dist/spa-shell.js +34 -0
- package/dist/ssg.d.ts +357 -0
- package/dist/ssg.js +94 -0
- package/dist/ssr.d.ts +116 -0
- package/dist/ssr.js +339 -0
- package/dist/state-dir.d.ts +36 -0
- package/dist/state-dir.js +22 -0
- package/dist/state-management.d.ts +299 -0
- package/dist/state-management.js +519 -0
- package/dist/store-imports.d.ts +47 -0
- package/dist/store-imports.js +16 -0
- package/dist/store-loader.d.ts +15 -0
- package/dist/store-loader.js +111 -0
- package/dist/stores-client.d.ts +70 -0
- package/dist/stores-client.js +132 -0
- package/dist/story/addons.d.ts +123 -0
- package/dist/story/addons.js +261 -0
- package/dist/story/analytics.d.ts +163 -0
- package/dist/story/analytics.js +235 -0
- package/dist/story/auto-stories.d.ts +38 -0
- package/dist/story/auto-stories.js +158 -0
- package/dist/story/bookmarks.d.ts +102 -0
- package/dist/story/bookmarks.js +277 -0
- package/dist/story/bun-test.d.ts +45 -0
- package/dist/story/bun-test.js +102 -0
- package/dist/story/cli.d.ts +132 -0
- package/dist/story/cli.js +155 -0
- package/dist/story/collect/analyzer.d.ts +33 -0
- package/dist/story/collect/analyzer.js +305 -0
- package/dist/story/collect/index.d.ts +31 -0
- package/dist/story/collect/index.js +27 -0
- package/dist/story/collect/parser.d.ts +17 -0
- package/dist/story/collect/parser.js +129 -0
- package/dist/story/collect/scanner.d.ts +17 -0
- package/dist/story/collect/scanner.js +101 -0
- package/dist/story/collect/tree.d.ts +24 -0
- package/dist/story/collect/tree.js +110 -0
- package/dist/story/commands/build.d.ts +19 -0
- package/dist/story/commands/build.js +172 -0
- package/dist/story/commands/dev.d.ts +23 -0
- package/dist/story/commands/dev.js +78 -0
- package/dist/story/commands/index.d.ts +9 -0
- package/dist/story/commands/index.js +3 -0
- package/dist/story/commands/preview.d.ts +21 -0
- package/dist/story/commands/preview.js +56 -0
- package/dist/story/compiled-output.d.ts +27 -0
- package/dist/story/compiled-output.js +151 -0
- package/dist/story/composition.d.ts +47 -0
- package/dist/story/composition.js +261 -0
- package/dist/story/config-watcher.d.ts +33 -0
- package/dist/story/config-watcher.js +67 -0
- package/dist/story/config.d.ts +29 -0
- package/dist/story/config.js +64 -0
- package/dist/story/context.d.ts +27 -0
- package/dist/story/context.js +27 -0
- package/dist/story/controls/index.d.ts +54 -0
- package/dist/story/controls/index.js +320 -0
- package/dist/story/desktop-preview.d.ts +34 -0
- package/dist/story/desktop-preview.js +105 -0
- package/dist/story/docs-generator.d.ts +30 -0
- package/dist/story/docs-generator.js +187 -0
- package/dist/story/errors.d.ts +47 -0
- package/dist/story/errors.js +239 -0
- package/dist/story/figma-export.d.ts +169 -0
- package/dist/story/figma-export.js +224 -0
- package/dist/story/generator.d.ts +21 -0
- package/dist/story/generator.js +165 -0
- package/dist/story/hmr.d.ts +62 -0
- package/dist/story/hmr.js +131 -0
- package/dist/story/hot-swap.d.ts +46 -0
- package/dist/story/hot-swap.js +207 -0
- package/dist/story/index.d.ts +99 -0
- package/dist/story/index.js +49 -0
- package/dist/story/interactions.d.ts +53 -0
- package/dist/story/interactions.js +225 -0
- package/dist/story/keyboard-shortcuts.d.ts +39 -0
- package/dist/story/keyboard-shortcuts.js +345 -0
- package/dist/story/output.d.ts +115 -0
- package/dist/story/output.js +153 -0
- package/dist/story/performance.d.ts +129 -0
- package/dist/story/performance.js +252 -0
- package/dist/story/presets.d.ts +123 -0
- package/dist/story/presets.js +289 -0
- package/dist/story/props-validation.d.ts +45 -0
- package/dist/story/props-validation.js +215 -0
- package/dist/story/renderer.d.ts +69 -0
- package/dist/story/renderer.js +209 -0
- package/dist/story/search-index.d.ts +47 -0
- package/dist/story/search-index.js +106 -0
- package/dist/story/search.d.ts +56 -0
- package/dist/story/search.js +140 -0
- package/dist/story/server.d.ts +31 -0
- package/dist/story/server.js +965 -0
- package/dist/story/setup.d.ts +56 -0
- package/dist/story/setup.js +78 -0
- package/dist/story/snapshots.d.ts +65 -0
- package/dist/story/snapshots.js +171 -0
- package/dist/story/testing.d.ts +83 -0
- package/dist/story/testing.js +164 -0
- package/dist/story/theme.d.ts +68 -0
- package/dist/story/theme.js +170 -0
- package/dist/story/ts-css.d.ts +29 -0
- package/dist/story/ts-css.js +189 -0
- package/dist/story/types.d.ts +342 -0
- package/dist/story/types.js +0 -0
- package/dist/story/ui/code-panel.d.ts +43 -0
- package/dist/story/ui/code-panel.js +175 -0
- package/dist/story/ui/controls-panel.d.ts +25 -0
- package/dist/story/ui/controls-panel.js +168 -0
- package/dist/story/ui/index.d.ts +8 -0
- package/dist/story/ui/index.js +4 -0
- package/dist/story/ui/navigation.d.ts +55 -0
- package/dist/story/ui/navigation.js +250 -0
- package/dist/story/ui/preview.d.ts +46 -0
- package/dist/story/ui/preview.js +251 -0
- package/dist/story/visual-testing.d.ts +45 -0
- package/dist/story/visual-testing.js +248 -0
- package/dist/streaming.d.ts +238 -0
- package/dist/streaming.js +537 -0
- package/dist/strict-lint.d.ts +52 -0
- package/dist/strict-lint.js +269 -0
- package/dist/strip-literals.d.ts +40 -0
- package/dist/strip-literals.js +149 -0
- package/dist/stx-virtual-ts.d.ts +358 -0
- package/dist/stx-virtual-ts.js +670 -0
- package/dist/stx.d.ts +924 -0
- package/dist/style-scoping.d.ts +42 -0
- package/dist/style-scoping.js +82 -0
- package/dist/suspense.d.ts +98 -0
- package/dist/suspense.js +398 -0
- package/dist/teleport.d.ts +31 -0
- package/dist/teleport.js +109 -0
- package/dist/template-compiler.d.ts +33 -0
- package/dist/template-compiler.js +68 -0
- package/dist/template-hydrator.d.ts +28 -0
- package/dist/template-hydrator.js +95 -0
- package/dist/template-tag-balance.d.ts +32 -0
- package/dist/template-tag-balance.js +93 -0
- package/dist/testing.d.ts +330 -0
- package/dist/testing.js +588 -0
- package/dist/theme-tokens.d.ts +88 -0
- package/dist/theme-tokens.js +71 -0
- package/dist/transitions.d.ts +99 -0
- package/dist/transitions.js +443 -0
- package/dist/ts-css-config.d.ts +71 -0
- package/dist/ts-css-config.js +44 -0
- package/dist/type-checker.d.ts +85 -0
- package/dist/type-checker.js +581 -0
- package/dist/typecheck.d.ts +70 -0
- package/dist/typecheck.js +365 -0
- package/dist/types/component-types.d.ts +248 -0
- package/dist/types/component-types.js +0 -0
- package/dist/types/config-types.d.ts +938 -0
- package/dist/types/config-types.js +0 -0
- package/dist/types/context-types.d.ts +122 -0
- package/dist/types/context-types.js +0 -0
- package/dist/types/csp-types.d.ts +83 -0
- package/dist/types/csp-types.js +0 -0
- package/dist/types/directive-types.d.ts +315 -0
- package/dist/types/directive-types.js +3 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/index.js +1 -0
- package/dist/types/pwa-types.d.ts +338 -0
- package/dist/types/pwa-types.js +0 -0
- package/dist/types.d.ts +27 -0
- package/dist/types.js +1 -0
- package/dist/typescript-templates.d.ts +156 -0
- package/dist/typescript-templates.js +386 -0
- package/dist/unresolved-identifiers.d.ts +52 -0
- package/dist/unresolved-identifiers.js +148 -0
- package/dist/utils.d.ts +112 -0
- package/dist/utils.js +1170 -0
- package/dist/validator.d.ts +80 -0
- package/dist/validator.js +171 -0
- package/dist/variable-extractor.d.ts +142 -0
- package/dist/variable-extractor.js +1306 -0
- package/dist/view-composers.d.ts +171 -0
- package/dist/view-composers.js +29 -0
- package/dist/virtual-scrolling.d.ts +127 -0
- package/dist/virtual-scrolling.js +454 -0
- package/dist/visual-editor.d.ts +185 -0
- package/dist/visual-editor.js +735 -0
- package/dist/visual-testing.d.ts +135 -0
- package/dist/visual-testing.js +126 -0
- package/dist/vue-template.d.ts +39 -0
- package/dist/vue-template.js +476 -0
- package/dist/web-components/css-scoping.d.ts +64 -0
- package/dist/web-components/css-scoping.js +210 -0
- package/dist/web-components/index.d.ts +29 -0
- package/dist/web-components/index.js +13 -0
- package/dist/web-components/reactive-generator.d.ts +72 -0
- package/dist/web-components/reactive-generator.js +484 -0
- package/dist/web-components.d.ts +253 -0
- package/dist/web-components.js +1466 -0
- package/dist/x-element.d.ts +42 -0
- package/dist/x-element.js +301 -0
- package/package.json +107 -0
- package/stx.d.ts +924 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Aj as _}from"./chunk-fed3xsp9.js";function Y(q,z){let B={};for(let C of q)B[C]=_(z(C));return new Proxy({},{get:(C,G)=>B[G]?.(),set:(C,G,L)=>{if(B[G])B[G].set(L);else B[G]=_(L);return!0},has:(C,G)=>(G in B),deleteProperty:(C,G)=>{return delete B[G],!0},ownKeys:()=>Reflect.ownKeys(B),getOwnPropertyDescriptor:(C,G)=>(G in B)?{enumerable:!0,configurable:!0,writable:!0,value:B[G]()}:void 0})}function T(q,z){let B={};for(let C of z)B[C]=q[C];return B}function $(q,z){let B=Object.keys(q),C=Y(B,(I)=>z?.[I]??q[I].getDefaultValue()),G=Y(B,()=>[]),L=Y(B,()=>!1),W=Y(B,()=>!1),X=Y(B,()=>!1),J=_(!1);async function M(I){X[I]=!0;let Q=await q[I].validate(C[I],C);return G[I]=Q,X[I]=!1,Q.length===0}async function O(){J.set(!0);let I=await Promise.all(B.map(M));return J.set(!1),I.every(Boolean)}function j(){for(let I of B)C[I]=z?.[I]??q[I].getDefaultValue(),G[I]=[],L[I]=!1,W[I]=!1}function A(I){for(let Q of B)if(Q in I)C[Q]=I[Q],W[Q]=!0}function H(I,Q){C[I]=Q,W[I]=!0}function K(I,Q=!0){if(L[I]=Q,Q)M(I)}function U(I){return{value:C[I],errors:G[I],touched:L[I],dirty:W[I],valid:G[I].length===0,validating:X[I]}}function k(I){return async(Q)=>{Q?.preventDefault?.();for(let N of B)L[N]=!0;if(await O())await I(T(C,B))}}return{values:C,errors:G,touched:L,dirty:W,get isValid(){return B.every((I)=>G[I].length===0)},get isValidating(){return J()||B.some((I)=>X[I])},get isDirty(){return B.some((I)=>W[I])},validate:O,validateField:M,reset:j,setValues:A,setFieldValue:H,setFieldTouched:K,getFieldState:U,handleSubmit:k}}var E=$;class Z{rules=[];defaultValue="";addRule(q){let z=new Z;return z.rules=[...this.rules,q],z.defaultValue=this.defaultValue,z}required(q="This field is required"){return this.addRule({name:"required",message:q,validate:(z)=>{if(z===null||z===void 0)return q;if(typeof z==="string"&&z.trim()==="")return q;if(Array.isArray(z)&&z.length===0)return q;return!0}})}email(q="Please enter a valid email"){return this.addRule({name:"email",message:q,validate:(z)=>{if(!z)return!0;return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(z))||q}})}url(q="Please enter a valid URL"){return this.addRule({name:"url",message:q,validate:(z)=>{if(!z)return!0;try{return new URL(String(z)),!0}catch{return q}}})}min(q,z){let B=z||`Must be at least ${q} characters`;return this.addRule({name:"min",message:B,validate:(C)=>{if(!C)return!0;return String(C).length>=q||B}})}max(q,z){let B=z||`Must be no more than ${q} characters`;return this.addRule({name:"max",message:B,validate:(C)=>{if(!C)return!0;return String(C).length<=q||B}})}length(q,z,B){let C=B||`Must be between ${q} and ${z} characters`;return this.addRule({name:"length",message:C,validate:(G)=>{if(!G)return!0;let L=String(G).length;return L>=q&&L<=z||C}})}pattern(q,z="Invalid format"){return this.addRule({name:"pattern",message:z,validate:(B)=>{if(!B)return!0;return q.test(String(B))||z}})}hasUppercase(q="Must contain an uppercase letter"){return this.pattern(/[A-Z]/,q)}hasLowercase(q="Must contain a lowercase letter"){return this.pattern(/[a-z]/,q)}hasNumber(q="Must contain a number"){return this.pattern(/\d/,q)}hasSpecial(q="Must contain a special character"){return this.pattern(/[!@#$%^&*(),.?":{}|<>]/,q)}alphanumeric(q="Only letters and numbers allowed"){return this.pattern(/^[a-zA-Z0-9]+$/,q)}startsWithLetter(q="Must start with a letter"){return this.pattern(/^[a-zA-Z]/,q)}noSpaces(q="Spaces are not allowed"){return this.addRule({name:"noSpaces",message:q,validate:(z)=>{if(!z)return!0;return!String(z).includes(" ")||q}})}number(q="Must be a number"){let z=this.addRule({name:"number",message:q,validate:(B)=>{if(!B&&B!==0)return!0;return!Number.isNaN(Number(B))||q}});return z.defaultValue=0,z}integer(q="Must be a whole number"){return this.addRule({name:"integer",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number.isInteger(Number(z))||q}})}positive(q="Must be a positive number"){return this.addRule({name:"positive",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)>0||q}})}negative(q="Must be a negative number"){return this.addRule({name:"negative",message:q,validate:(z)=>{if(!z&&z!==0)return!0;return Number(z)<0||q}})}minValue(q,z){let B=z||`Must be at least ${q}`;return this.addRule({name:"minValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)>=q||B}})}maxValue(q,z){let B=z||`Must be no more than ${q}`;return this.addRule({name:"maxValue",message:B,validate:(C)=>{if(!C&&C!==0)return!0;return Number(C)<=q||B}})}between(q,z,B){let C=B||`Must be between ${q} and ${z}`;return this.addRule({name:"between",message:C,validate:(G)=>{if(!G&&G!==0)return!0;let L=Number(G);return L>=q&&L<=z||C}})}matches(q,z){let B=z||`Must match ${q}`;return this.addRule({name:"matches",message:B,validate:(C,G)=>{if(!G)return!0;return C===G[q]||B}})}oneOf(q,z){let B=z||`Must be one of: ${q.join(", ")}`;return this.addRule({name:"oneOf",message:B,validate:(C)=>{if(!C)return!0;return q.includes(C)||B}})}notOneOf(q,z){let B=z||`Cannot be one of: ${q.join(", ")}`;return this.addRule({name:"notOneOf",message:B,validate:(C)=>{if(!C)return!0;return!q.includes(C)||B}})}date(q="Must be a valid date"){return this.addRule({name:"date",message:q,validate:(z)=>{if(!z)return!0;let B=new Date(String(z));return!Number.isNaN(B.getTime())||q}})}before(q,z){let B=new Date(q),C=z||`Must be before ${B.toLocaleDateString()}`;return this.addRule({name:"before",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))<B||C}})}after(q,z){let B=new Date(q),C=z||`Must be after ${B.toLocaleDateString()}`;return this.addRule({name:"after",message:C,validate:(G)=>{if(!G)return!0;return new Date(String(G))>B||C}})}custom(q,z="Invalid value"){return this.addRule({name:"custom",message:z,validate:q})}async(q,z="Invalid value"){return this.addRule({name:"async",message:z,async:!0,validate:q})}when(q,z){let B=new Z;B.rules=[...this.rules],B.defaultValue=this.defaultValue;for(let C of z.getRules())B.rules.push({...C,validate:(G,L)=>{if(!q(G,L||{}))return!0;return C.validate(G,L)}});return B}getRules(){return this.rules}getDefaultValue(){return this.defaultValue}default(q){let z=new Z;return z.rules=[...this.rules],z.defaultValue=q,z}async validate(q,z){let B=[];for(let C of this.rules){let G=await C.validate(q,z);if(G!==!0)B.push(G)}return B}validateSync(q,z){let B=[];for(let C of this.rules){if(C.async)continue;let G=C.validate(q,z);if(G!==!0)B.push(G)}return B}}var y=new Z;function w(q,z,B){let C=/@error\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderror/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>{return W.replace(/\{\{\s*message\s*\}\}/g,O)}).join(`
|
|
3
|
+
`)}catch{return""}})}function D(q,z,B){let C=/@errors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@enderrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return M.map((O)=>W.replace(/\{\{\s*message\s*\}\}/g,O)).join(`
|
|
4
|
+
`)}catch{return""}})}function S(q,z,B){let C=/@hasErrors\s*\(\s*([^)]+)\s*\)([\s\S]*?)@endhasErrors/g;return q.replace(C,(G,L,W)=>{try{let X=L.trim().split("."),J=z;for(let O of X)if(J&&typeof J==="object"&&O in J)J=J[O];else return"";let M=J;if(!M||!Array.isArray(M)||M.length===0)return"";return W}catch{return""}})}function V(q,z,B){let C=q;return C=w(C,z,B),C=D(C,z,B),C=S(C,z,B),C}export{$ as vh,E as wh,Z as xh,y as yh,w as zh,D as Ah,S as Bh,V as Ch};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Tg as a}from"./chunk-h4xh8cms.js";import"./chunk-qr82je1m.js";import"./chunk-rbb7dvja.js";import"./chunk-866y9d8b.js";import"./chunk-fed3xsp9.js";import"./chunk-58f0mthg.js";import"./chunk-y11cxbxd.js";import"./chunk-92mj1t26.js";import"./chunk-8mjdpr94.js";import"./chunk-pkaabd8h.js";import"./chunk-xpp135ad.js";import"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-38ejahd9.js";import"./chunk-ypmqf7tm.js";import"./chunk-de7fye10.js";import"./chunk-v5e1gxwm.js";import"./chunk-b6ej2fdf.js";import"./chunk-x650vjcp.js";import"./chunk-qc1f74ek.js";export{a as buildForProduction};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{it as a,jt as b,kt as c,lt as d,mt as e,nt as f,ot as g,pt as h,qt as i,rt as j,st as k,tt as l}from"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-qc1f74ek.js";export{e as resolveUserCssConfig,c as resetCssCache,h as rebuildCss,d as loadCssEngineConfig,b as loadCssEngine,l as injectCss,a as getCssServeAsset,i as getCachedCSS,k as generateCss,f as fingerprintConfig,j as extractClassNames,g as buildCss};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{createHash as Y}from"crypto";import W from"fs";import Q from"path";import{generateThumbHash as A}from"ts-images";import{createImageDeliveryCatalog as x}from"ts-images/delivery";var w=new Set([".avif",".jpeg",".jpg",".png",".webp"]),N=[320,640,960,1280,1920],O="/_stx/images",$=new Map;function U(j){return`/${j.split(Q.sep).map(encodeURIComponent).join("/")}`}function _(j){let q=Q.extname(j),K=j.slice(0,-q.length).replace(/[^a-zA-Z0-9_-]+/g,"-").replace(/^-+|-+$/g,""),G=Y("sha256").update(j).digest("hex").slice(0,8);return`${K||"image"}-${G}`}async function X(j,q=j){let K=await W.promises.readdir(q,{withFileTypes:!0});K.sort((B,J)=>B.name.localeCompare(J.name));let G=[];for(let B of K){let J=Q.join(q,B.name);if(B.isDirectory()){G.push(...await X(j,J));continue}if(!B.isFile()||!w.has(Q.extname(B.name).toLowerCase()))continue;G.push({absolutePath:J,relativePath:Q.relative(j,J)})}return G}function V(j){return j.map((q)=>({key:U(q.relativePath),input:q.absolutePath,name:_(q.relativePath)}))}async function k(j){let q=[],K=8;for(let G=0;G<j.length;G+=8){let B=j.slice(G,G+8),J=await Promise.all(B.map(async(M)=>{try{return await A(M.absolutePath),M}catch{return console.warn(`[stx-images] Skipping unreadable raster: ${M.relativePath}`),null}}));q.push(...J.filter((M)=>M!==null))}return q}function H(j){if(!j||j.startsWith("data:")||j.startsWith("blob:")||/^https?:\/\//i.test(j)||j.startsWith("//"))return;let q=j.split(/[?#]/,1)[0];if(!q)return;try{return`/${q.replace(/^\/+/,"").split("/").map(decodeURIComponent).map(encodeURIComponent).join("/")}`}catch{return}}function F(j){let q=H(j);return q?$.get(q):void 0}function Z(){$=new Map}async function C(j,q){if(!j||!W.existsSync(j))return Z(),{count:0,fingerprint:""};let K=await X(j);if(K.length===0)return Z(),{count:0,fingerprint:""};let G={outDir:Q.join(q,"_stx","images"),baseUrl:O,widths:N,formats:["avif","webp"],quality:{avif:70,webp:78,jpeg:82,png:100},includeOriginal:!1,placeholder:!0,batchConcurrency:4,concurrency:4},B=K,J;try{J=await x({...G,entries:V(K)})}catch(M){if(B=await k(K),B.length===K.length)throw M;if(B.length===0)return Z(),{count:0,fingerprint:""};J=await x({...G,entries:V(B)})}return $=new Map(Object.entries(J.entries)),{count:B.length,fingerprint:J.fingerprint}}
|
|
3
|
+
export{F as At,Z as Bt,C as Ct};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{mk as a,nk as b,ok as c,pk as d}from"./chunk-bfqfs07m.js";import"./chunk-9wr7zcad.js";import"./chunk-y11cxbxd.js";import"./chunk-92mj1t26.js";import"./chunk-8mjdpr94.js";import"./chunk-pkaabd8h.js";import"./chunk-xpp135ad.js";import"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-38ejahd9.js";import"./chunk-ypmqf7tm.js";import"./chunk-de7fye10.js";import"./chunk-v5e1gxwm.js";import"./chunk-b6ej2fdf.js";import"./chunk-x650vjcp.js";import"./chunk-qc1f74ek.js";export{b as getAvailableTargets,c as getAvailableFormats,d as default,a as buildNative};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$k as a,al as b,bl as c,cl as d,dl as e,el as f,fl as g,gl as h,hl as i,il as j}from"./chunk-4ww3znrr.js";import"./chunk-y11cxbxd.js";import"./chunk-92mj1t26.js";import"./chunk-8mjdpr94.js";import"./chunk-pkaabd8h.js";import"./chunk-xpp135ad.js";import"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-38ejahd9.js";import"./chunk-ypmqf7tm.js";import"./chunk-de7fye10.js";import"./chunk-v5e1gxwm.js";import"./chunk-b6ej2fdf.js";import"./chunk-x650vjcp.js";import"./chunk-qc1f74ek.js";export{b as shouldLogBundlerDiagnostics,f as setBundlerFallbackMode,g as resolveBundlerFallback,c as recordBundleFailure,i as queueClientBundleBuild,h as hasUserImports,d as getBundleFailures,a as clientBundleDependencies,e as clearBundleFailures,j as bundleClientScript};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ah as f,Bh as g,Ch as h,vh as a,wh as b,xh as c,yh as d,zh as e}from"./chunk-248e84r1.js";import"./chunk-fed3xsp9.js";import"./chunk-qc1f74ek.js";export{d as v,a as useForm,g as processHasErrorsDirective,h as processFormValidationDirectives,f as processErrorsDirective,e as processErrorDirective,b as defineForm,c as Validator};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import"./bun-shim.js";// @bun
|
|
2
|
+
import{Rl as l,er as t}from"./chunk-y11cxbxd.js";import{at as r,et as P}from"./chunk-wrzwgkbx.js";import{yt as b}from"./chunk-5kk8gsj2.js";import X from"path";import V from"fs";function Jz(z){if(!z||typeof z!=="object")return!1;let G=z;return typeof G.message==="string"&&(G.name==="BuildMessage"||G.name==="ResolveMessage"||("position"in G))}function Kz(z){if(z&&typeof z==="object"&&Array.isArray(z.errors))return z.errors;return[z]}function v(z,G){let J=[];for(let $ of Kz(z)){if(Jz($)){let Q=$.position||void 0;J.push({file:G||Q?.file,line:Q?.line,column:Q?.column,message:$.message??"",lineText:Q?.lineText});continue}J.push({file:G,message:$ instanceof Error?$.message:String($)})}return J}function p(z,G){return v(z,G).map((J)=>{let $=J.file?`${J.file}${J.line?`:${J.line}${J.column?`:${J.column}`:""}`:""}`:"",Q=J.lineText?`
|
|
3
|
+
${J.lineText.trim()}`:"";return $?`${$}: ${J.message}${Q}`:`${J.message}${Q}`}).join(`
|
|
4
|
+
`)}var Zz=5,s=1,i=new Map,B=600,$z=100,E=new Map;async function Wz(z){let G=E.get(z)??0;if(G>0&&G<$z){E.set(z,G+1);return}E.set(z,1);try{let J=(await V.promises.readdir(z)).filter((W)=>W.endsWith(".js"));if(J.length<=B)return;let Q=(await Promise.all(J.map(async(W)=>{try{return{name:W,at:(await V.promises.stat(X.join(z,W))).mtimeMs}}catch{return null}}))).filter((W)=>W!==null);Q.sort((W,Z)=>Z.at-W.at);for(let W of Q.slice(B)){let Z=W.name.slice(0,-3);await V.promises.rm(X.join(z,`${Z}.js`),{force:!0}),await V.promises.rm(X.join(z,`${Z}.deps.json`),{force:!0})}w("pruned bundle cache to",B,"entries")}catch{}}function Cz(z){return i.get(z)??[]}function g(z,G){if(z)i.set(z,G)}function Qz(z=process.env){return z.STX_DEBUG==="true"||z.STX_DEBUG==="1"}function w(...z){if(Qz())console.log("[stx:bundler]",...z)}var m=[];function h(z,G,J){m.push({filePath:z||"<inline>",message:G,details:J})}function Mz(){return m.slice()}function Az(){m.length=0}var f;function Iz(z){f=z}function c(){if(f)return f;try{let z=t.strict;return typeof z==="object"&&z!==null?z.bundlerFallback??"warn":"warn"}catch{return"warn"}}var o=[/^stx$/,/^@stacksjs\/stx$/,/^@stores$/,/^stx\/stores$/,/^@composables$/];function yz(z){let G=/^[ \t]*import[ \t]+(?!type(?:[ \t]|{))[\s\S]*?\s+from\s+['"]([^'"]+)['"][ \t]*;?/gm,J;while((J=G.exec(z))!==null){let Q=J[1];if(!o.some((Z)=>Z.test(Q)))return w("detected user import:",Q),!0}let $=/^[ \t]*import[ \t]+['"]([^'"]+)['"]/gm;while((J=$.exec(z))!==null){let Q=J[1];if(/\.css(?:\?.*)?$/.test(Q))continue;if(!o.some((Z)=>Z.test(Q)))return w("detected side-effect import:",Q),!0}return!1}function d(z){let G=[z,`${z}.ts`,`${z}.tsx`,`${z}.js`,`${z}.mjs`,`${z}.jsx`,X.join(z,"index.ts"),X.join(z,"index.tsx"),X.join(z,"index.js"),X.join(z,"index.mjs")];for(let J of G)try{if(V.existsSync(J)&&V.statSync(J,{throwIfNoEntry:!1})?.isFile())return J}catch{}return}function Xz(z,G,J,$){let Q=(W,Z)=>{let K=W===J?G:X.dirname(W),j=X.resolve(K,Z);return d(j)??j};return{name:"stx-client-bundle",setup(W){W.onResolve({filter:/^(stx|@stacksjs\/stx)$/},(Z)=>({path:Z.path,external:!0})),W.onResolve({filter:/^(@stores|@composables|stx\/stores)$/},(Z)=>({path:Z.path,external:!0})),W.onResolve({filter:/^\//},(Z)=>{let K=d(Z.path);if(K){if(K!==J)$.add(K);return{path:K}}return{path:Z.path,external:!0}}),W.onResolve({filter:/^\.\.?\//},(Z)=>{let K=Q(Z.importer,Z.path);return $.add(K),{path:K}}),W.onResolve({filter:/^[@~]\//},(Z)=>{let K=X.resolve(z,Z.path.slice(2)),j=[K,`${K}.ts`,`${K}.tsx`,`${K}.js`,`${K}.mjs`,`${K}.jsx`,X.join(K,"index.ts"),X.join(K,"index.tsx"),X.join(K,"index.js"),X.join(K,"index.mjs")];for(let O of j)if(V.existsSync(O)&&V.statSync(O,{throwIfNoEntry:!1})?.isFile())return w(`resolved ${Z.path[0]}/ import:`,Z.path,"\u2192",O),$.add(O),{path:O};return console.warn(`[stx:bundler] could not resolve ${Z.path[0]}/ import:`,Z.path),{path:K}}),W.onLoad({filter:/\.(?:[cm]?[jt]sx?|json)$/},(Z)=>{let K=X.extname(Z.path).toLowerCase(),j=K===".json"?"json":K===".tsx"?"tsx":K===".jsx"?"jsx":K===".ts"||K===".mts"||K===".cts"?"ts":"js";if(Z.path!==J)$.add(Z.path);return{contents:V.readFileSync(Z.path,"utf8"),loader:j}})}}}var D=new Map,_=r(64),n=Symbol.for("stx.client-bundle-build-queue");function Yz(z){let G=globalThis,$=(G[n]??Promise.resolve()).then(z,z);return G[n]=$.then(()=>{return},()=>{return}),$}async function Tz(z,G,J={}){let $=J.projectRoot||process.cwd(),Q=J.minify??!1,W=J.cacheDir||b($,"bundle-cache"),Z=new Bun.CryptoHasher("md5");Z.update(`${Zz}\x00${z}\x00${G}`);let K=Z.digest("hex").slice(0,12),j=X.join(W,`${K}.js`),O=_.get(j);if(O){if(P(O.files)){w("memo hit:",K);let S=O.files.map((k)=>k.path);return g(G,S),J.collectInputs?.push(...S),O.code}_.delete(j),w("memo invalidated by dep change:",K)}let I=X.join(W,`${K}.deps.json`),T=Bun.file(j);if(await T.exists()){let S=Bun.file(I),k=!0,q=null;if(await S.exists())try{let M=JSON.parse(await S.text());if(M.metadataVersion!==s||!Array.isArray(M.files))k=!1;else q=M.files;if(q&&!P(q))k=!1}catch{k=!1}if(k){if(w("cache hit:",K),q)g(G,q.map((R)=>R.path)),J.collectInputs?.push(...q.map((R)=>R.path));let M=await T.text();if(q)_.set(j,{code:M,files:q});return M}w("cache invalidated by dep change:",K)}let N=D.get(K);if(N){let S=await N;if(J.collectInputs)J.collectInputs.push(...(_.get(j)?.files??[]).map((k)=>k.path));return S}let L=Yz(()=>qz(z,G,{projectRoot:$,minify:Q,cacheDir:W,hash:K,cachePath:j,depsPath:I,collectInputs:J.collectInputs}));D.set(K,L);try{return await L}finally{D.delete(K)}}async function qz(z,G,J){let{projectRoot:$,minify:Q,cacheDir:W,hash:Z,cachePath:K,depsPath:j}=J,O=b($,"bundle-tmp"),I=X.join(O,`${Z}.ts`),T=X.join(O,"out",Z);V.mkdirSync(O,{recursive:!0}),V.mkdirSync(T,{recursive:!0});let N=X.dirname(G),L=new Set,S=/^[ \t]*(export\s+)?(?:const|let|var)\s+(?:\{([^}]+)\}|(\w+))/gm,k=/^[ \t]*(export\s+)?(?:async\s+)?function\s+(\w+)/gm,q;while((q=S.exec(z))!==null){if(q[1])continue;if(q[2])q[2].split(",").forEach((U)=>{let H=Hz(U);if(H)L.add(H)});else if(q[3])L.add(q[3])}while((q=k.exec(z))!==null){if(q[1])continue;L.add(q[2])}let M=L.size>0?`
|
|
5
|
+
export { ${[...L].join(", ")} }`:"";await Bun.write(I,z+M),w("bundling:",Z,"from:",X.basename(G));let R=new Set;try{let U=await Bun.build({entrypoints:[I],outdir:T,target:"browser",format:"esm",minify:Q,plugins:[Xz($,N,I,R)],define:{"process.env.NODE_ENV":Q?'"production"':'"development"',...l()},root:$});if(!U.success){let A=U.logs.filter((y)=>y.level==="error").map((y)=>y.message).join(", ")||`Unable to bundle ${X.basename(G)}`,x=v(U.logs,G||void 0);if(console.warn("[stx:bundler] build failed:",A),h(G||"",A,x),c()==="error")throw Error(A);return z}let H="";for(let Y of U.outputs){H=await Y.text();break}let C=[];for(let Y of H.matchAll(/^\s*export\s*\{([^}]*)\}\s*;?\s*$/gm))for(let A of Y[1].split(",")){let x=A.trim().match(/^([A-Za-z_$][\w$]*)\s+as\s+([A-Za-z_$][\w$]*)$/);if(x){C.push([x[2],x[1]]);continue}let y=A.trim();if(/^[A-Za-z_$][\w$]*$/.test(y))C.push([y,y])}let a=H.match(/^\s*import\s+[^;]+;?\s*$/gm)||[];H=H.replace(/^\s*import\s+[^;]+;?\s*$/gm,"").replace(/^\s*export\s*\{[^}]*\}\s*;?\s*$/gm,"").replace(/^\s*export\s+default\s+.*$/gm,"").trim();let u=`__stxBundle_${Z}`,e=C.map(([Y,A])=>`${JSON.stringify(Y)}: ${A}`).join(", "),zz=C.map(([Y])=>`var ${Y} = undefined;`).join(`
|
|
6
|
+
`),Gz=C.map(([Y])=>`${Y} = ${u}[${JSON.stringify(Y)}];`).join(`
|
|
7
|
+
`);if(H=`${a.join(`
|
|
8
|
+
`)}
|
|
9
|
+
${zz}
|
|
10
|
+
var ${u} = (function() {
|
|
11
|
+
${H}
|
|
12
|
+
return { ${e} };
|
|
13
|
+
})();
|
|
14
|
+
${Gz}`.trim(),w("bundled:",Z,"output:",H.length,"bytes"),L.size>0&&C.length===0)return console.warn(`[stx:bundler] dropped every binding for ${X.basename(G)} (${Z}); serving the unbundled source and not caching this result`),z;V.mkdirSync(W,{recursive:!0}),await Bun.write(K,H);let F=Array.from(R).map((Y)=>{try{return{path:Y,mtimeMs:V.statSync(Y).mtimeMs}}catch{return null}}).filter((Y)=>Y!==null);return await Bun.write(j,JSON.stringify({metadataVersion:s,files:F})),g(G,F.map((Y)=>Y.path)),J.collectInputs?.push(...F.map((Y)=>Y.path)),_.set(K,{code:H,files:F}),await Wz(W),H}catch(U){let H=v(U,G||void 0),C=p(U,G||void 0);if(console.warn(`[stx:bundler] error: ${C}`),h(G||"",C,H),c()==="error")throw U;return z}finally{try{V.rmSync(I,{force:!0}),V.rmSync(T,{recursive:!0,force:!0})}catch{}}}function Hz(z){let G=z.trim();if(!G)return null;let J=G.indexOf("=");if(J!==-1)G=G.slice(0,J).trim();let $=G.indexOf(":");if($!==-1)G=G.slice($+1).trim();if(G.startsWith("..."))G=G.slice(3).trim();return/^[A-Za-z_$][\w$]*$/.test(G)?G:null}
|
|
15
|
+
export{p as _k,Cz as $k,Qz as al,h as bl,Mz as cl,Az as dl,Iz as el,c as fl,yz as gl,Yz as hl,Tz as il};
|
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
function B(){return`<script data-stx-hydration-runtime>
|
|
3
|
+
(function() {
|
|
4
|
+
'use strict';
|
|
5
|
+
|
|
6
|
+
var stxIslands = window.__stxIslands = window.__stxIslands || {
|
|
7
|
+
_registry: {},
|
|
8
|
+
_hydrated: new Set(),
|
|
9
|
+
|
|
10
|
+
register: function(name, loader) {
|
|
11
|
+
this._registry[name] = loader;
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
hydrateIsland: function(el) {
|
|
15
|
+
var id = el.getAttribute('data-island');
|
|
16
|
+
if (!id || this._hydrated.has(id)) return Promise.resolve();
|
|
17
|
+
this._hydrated.add(id);
|
|
18
|
+
|
|
19
|
+
var componentName = el.getAttribute('data-component');
|
|
20
|
+
var propsScript = el.querySelector('script[data-island-props="' + id + '"]');
|
|
21
|
+
var props = {};
|
|
22
|
+
if (propsScript) {
|
|
23
|
+
try { props = JSON.parse(propsScript.textContent || '{}'); }
|
|
24
|
+
catch (e) {}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
var loader = componentName ? this._registry[componentName] : null;
|
|
28
|
+
|
|
29
|
+
if (loader) {
|
|
30
|
+
return Promise.resolve(typeof loader === 'function' ? loader() : loader)
|
|
31
|
+
.then(function(mod) {
|
|
32
|
+
var comp = mod && mod.default ? mod.default : mod;
|
|
33
|
+
if (comp && comp.hydrate) {
|
|
34
|
+
return comp.hydrate(el, props);
|
|
35
|
+
}
|
|
36
|
+
else if (comp && comp.mount) {
|
|
37
|
+
return comp.mount(el, props);
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
.then(function() {
|
|
41
|
+
el.classList.add('hydrated');
|
|
42
|
+
el.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
43
|
+
})
|
|
44
|
+
.catch(function(err) {
|
|
45
|
+
console.error('[stx] Hydration failed for island:', id, err);
|
|
46
|
+
el.classList.add('hydrated');
|
|
47
|
+
el.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// No loader registered \u2014 just mark as hydrated (CSS-only island)
|
|
52
|
+
el.classList.add('hydrated');
|
|
53
|
+
el.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
54
|
+
return Promise.resolve();
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
_setupStrategy: function(el) {
|
|
58
|
+
var self = this;
|
|
59
|
+
var strategy = el.getAttribute('data-strategy') || 'load';
|
|
60
|
+
|
|
61
|
+
switch (strategy) {
|
|
62
|
+
case 'load':
|
|
63
|
+
self.hydrateIsland(el);
|
|
64
|
+
break;
|
|
65
|
+
|
|
66
|
+
case 'idle':
|
|
67
|
+
if ('requestIdleCallback' in window) {
|
|
68
|
+
requestIdleCallback(function() { self.hydrateIsland(el); }, { timeout: 2000 });
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
setTimeout(function() { self.hydrateIsland(el); }, 200);
|
|
72
|
+
}
|
|
73
|
+
break;
|
|
74
|
+
|
|
75
|
+
case 'visible':
|
|
76
|
+
if ('IntersectionObserver' in window) {
|
|
77
|
+
var rootMargin = el.getAttribute('data-root-margin') || '0px';
|
|
78
|
+
var threshold = parseFloat(el.getAttribute('data-threshold') || '0') || 0;
|
|
79
|
+
var obs = new IntersectionObserver(function(entries) {
|
|
80
|
+
entries.forEach(function(entry) {
|
|
81
|
+
if (entry.isIntersecting) {
|
|
82
|
+
obs.disconnect();
|
|
83
|
+
self.hydrateIsland(el);
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}, { rootMargin: rootMargin, threshold: threshold });
|
|
87
|
+
obs.observe(el);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
self.hydrateIsland(el);
|
|
91
|
+
}
|
|
92
|
+
break;
|
|
93
|
+
|
|
94
|
+
case 'media':
|
|
95
|
+
var mediaQuery = el.getAttribute('data-media') || '(min-width: 768px)';
|
|
96
|
+
var mq = window.matchMedia(mediaQuery);
|
|
97
|
+
if (mq.matches) {
|
|
98
|
+
self.hydrateIsland(el);
|
|
99
|
+
}
|
|
100
|
+
else {
|
|
101
|
+
var handler = function(e) {
|
|
102
|
+
if (e.matches) {
|
|
103
|
+
mq.removeEventListener('change', handler);
|
|
104
|
+
self.hydrateIsland(el);
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
mq.addEventListener('change', handler);
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
|
|
111
|
+
case 'hover':
|
|
112
|
+
var events = ['mouseenter', 'focusin', 'touchstart'];
|
|
113
|
+
var hoverHandler = function() {
|
|
114
|
+
events.forEach(function(e) { el.removeEventListener(e, hoverHandler); });
|
|
115
|
+
self.hydrateIsland(el);
|
|
116
|
+
};
|
|
117
|
+
events.forEach(function(e) {
|
|
118
|
+
el.addEventListener(e, hoverHandler, { once: true, passive: true });
|
|
119
|
+
});
|
|
120
|
+
break;
|
|
121
|
+
|
|
122
|
+
case 'event':
|
|
123
|
+
var eventName = el.getAttribute('data-event') || 'stx:activate';
|
|
124
|
+
window.addEventListener(eventName, function evtHandler(e) {
|
|
125
|
+
if (!e.detail || e.detail.id === el.getAttribute('data-island') || e.detail.id === '*') {
|
|
126
|
+
window.removeEventListener(eventName, evtHandler);
|
|
127
|
+
self.hydrateIsland(el);
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
break;
|
|
131
|
+
|
|
132
|
+
case 'only':
|
|
133
|
+
var tmpl = el.querySelector('template[data-client-content]');
|
|
134
|
+
if (tmpl) {
|
|
135
|
+
el.innerHTML = tmpl.innerHTML;
|
|
136
|
+
}
|
|
137
|
+
el.classList.add('hydrated');
|
|
138
|
+
break;
|
|
139
|
+
|
|
140
|
+
default:
|
|
141
|
+
self.hydrateIsland(el);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
|
|
145
|
+
initIslands: function() {
|
|
146
|
+
var self = this;
|
|
147
|
+
var islands = document.querySelectorAll('.stx-island:not(.hydrated)');
|
|
148
|
+
islands.forEach(function(el) {
|
|
149
|
+
self._setupStrategy(el);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// Auto-init on DOMContentLoaded
|
|
155
|
+
if (document.readyState === 'loading') {
|
|
156
|
+
document.addEventListener('DOMContentLoaded', function() { stxIslands.initIslands(); });
|
|
157
|
+
}
|
|
158
|
+
else {
|
|
159
|
+
stxIslands.initIslands();
|
|
160
|
+
}
|
|
161
|
+
})();
|
|
162
|
+
</script>`}function I(q){if(q.size===0)return"";return`<script data-stx-island-manifest>
|
|
163
|
+
(function() {
|
|
164
|
+
if (!window.__stxIslands) return;
|
|
165
|
+
${Array.from(q.entries()).map(([w,z])=>` window.__stxIslands.register('${w}', function() { return import('${z}'); });`).join(`
|
|
166
|
+
`)}
|
|
167
|
+
})();
|
|
168
|
+
</script>`}function E(q){let j=q.match(/<([A-Z][a-zA-Z0-9]+)[\s/>]/);if(j)return j[1];let w=q.match(/<([a-z][a-z0-9]*-[a-z0-9-]+)[\s/>]/);if(w)return w[1];return null}function V(q,j){let w={},z=/:([a-zA-Z_][\w-]*)\s*=\s*"([^"]+)"/g,G;while((G=z.exec(q))!==null){let K=G[1],Q=G[2];if(Q in j)w[K]=j[Q];else w[K]=Q}return w}function f(){let q=new Map;return{islands:q,register(j){q.set(j.id,j)},get(j){return q.get(j)},async hydrate(j){let w=q.get(j);if(!w||w.hydrated)return;if(w.hydrated=!0,typeof window<"u"&&typeof window.dispatchEvent==="function")window.dispatchEvent(new CustomEvent("stx:hydrate",{detail:{id:j,component:w.component}}))},async hydrateAll(){let j=Array.from(q.values()).filter((w)=>!w.hydrated).map((w)=>this.hydrate(w.id));await Promise.all(j)}}}function k(q){return`
|
|
169
|
+
<script data-hydrate="${q}">
|
|
170
|
+
(function() {
|
|
171
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
172
|
+
if (!island) return;
|
|
173
|
+
|
|
174
|
+
// Immediately hydrate
|
|
175
|
+
island.classList.add('hydrated');
|
|
176
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
177
|
+
})();
|
|
178
|
+
</script>
|
|
179
|
+
`}function A(q,j){let w=j.timeout||2000,z=j.priority||"low";return`
|
|
180
|
+
<script data-hydrate="${q}">
|
|
181
|
+
(function() {
|
|
182
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
183
|
+
if (!island) return;
|
|
184
|
+
|
|
185
|
+
function hydrate() {
|
|
186
|
+
if (island.classList.contains('hydrated')) return;
|
|
187
|
+
island.classList.add('hydrated');
|
|
188
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if ('requestIdleCallback' in window) {
|
|
192
|
+
const idleOptions = { timeout: ${w} };
|
|
193
|
+
${z==="high"?"requestIdleCallback(hydrate, idleOptions);":`
|
|
194
|
+
// Low priority: wait for multiple idle periods
|
|
195
|
+
let idleCount = 0;
|
|
196
|
+
function waitForIdle() {
|
|
197
|
+
requestIdleCallback((deadline) => {
|
|
198
|
+
if (deadline.didTimeout || ++idleCount >= 2) {
|
|
199
|
+
hydrate();
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
waitForIdle();
|
|
203
|
+
}
|
|
204
|
+
}, idleOptions);
|
|
205
|
+
}
|
|
206
|
+
waitForIdle();
|
|
207
|
+
`}
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
// Fallback for browsers without requestIdleCallback
|
|
211
|
+
setTimeout(hydrate, ${w});
|
|
212
|
+
}
|
|
213
|
+
})();
|
|
214
|
+
</script>
|
|
215
|
+
`}function M(q,j){let w=j.rootMargin||"0px",z=j.threshold||0;return`
|
|
216
|
+
<script data-hydrate="${q}">
|
|
217
|
+
(function() {
|
|
218
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
219
|
+
if (!island) return;
|
|
220
|
+
|
|
221
|
+
function hydrate() {
|
|
222
|
+
if (island.classList.contains('hydrated')) return;
|
|
223
|
+
island.classList.add('hydrated');
|
|
224
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if ('IntersectionObserver' in window) {
|
|
228
|
+
const observer = new IntersectionObserver((entries) => {
|
|
229
|
+
entries.forEach((entry) => {
|
|
230
|
+
if (entry.isIntersecting) {
|
|
231
|
+
observer.disconnect();
|
|
232
|
+
hydrate();
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}, {
|
|
236
|
+
rootMargin: '${w}',
|
|
237
|
+
threshold: ${JSON.stringify(z)}
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
observer.observe(island);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
// Fallback: hydrate on load
|
|
244
|
+
hydrate();
|
|
245
|
+
}
|
|
246
|
+
})();
|
|
247
|
+
</script>
|
|
248
|
+
`}function N(q,j){let w=j.media||"(min-width: 768px)";return`
|
|
249
|
+
<script data-hydrate="${q}">
|
|
250
|
+
(function() {
|
|
251
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
252
|
+
if (!island) return;
|
|
253
|
+
|
|
254
|
+
function hydrate() {
|
|
255
|
+
if (island.classList.contains('hydrated')) return;
|
|
256
|
+
island.classList.add('hydrated');
|
|
257
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const mediaQuery = window.matchMedia('${w}');
|
|
261
|
+
|
|
262
|
+
function handleMediaChange(e) {
|
|
263
|
+
if (e.matches) {
|
|
264
|
+
mediaQuery.removeEventListener('change', handleMediaChange);
|
|
265
|
+
hydrate();
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
if (mediaQuery.matches) {
|
|
270
|
+
hydrate();
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
mediaQuery.addEventListener('change', handleMediaChange);
|
|
274
|
+
}
|
|
275
|
+
})();
|
|
276
|
+
</script>
|
|
277
|
+
`}function D(q){return`
|
|
278
|
+
<script data-hydrate="${q}">
|
|
279
|
+
(function() {
|
|
280
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
281
|
+
if (!island) return;
|
|
282
|
+
|
|
283
|
+
function hydrate() {
|
|
284
|
+
if (island.classList.contains('hydrated')) return;
|
|
285
|
+
island.classList.add('hydrated');
|
|
286
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// Hydrate on first interaction
|
|
290
|
+
const events = ['mouseenter', 'focusin', 'touchstart'];
|
|
291
|
+
const handler = () => {
|
|
292
|
+
events.forEach(e => island.removeEventListener(e, handler));
|
|
293
|
+
hydrate();
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
events.forEach(e => island.addEventListener(e, handler, { once: true, passive: true }));
|
|
297
|
+
})();
|
|
298
|
+
</script>
|
|
299
|
+
`}function P(q,j){let w=j.event||"stx:activate";return`
|
|
300
|
+
<script data-hydrate="${q}">
|
|
301
|
+
(function() {
|
|
302
|
+
const island = document.querySelector('[data-island="${q}"]');
|
|
303
|
+
if (!island) return;
|
|
304
|
+
|
|
305
|
+
function hydrate() {
|
|
306
|
+
if (island.classList.contains('hydrated')) return;
|
|
307
|
+
island.classList.add('hydrated');
|
|
308
|
+
island.dispatchEvent(new CustomEvent('stx:hydrated', { bubbles: true }));
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
// Listen for custom event
|
|
312
|
+
window.addEventListener('${w}', function handler(e) {
|
|
313
|
+
if (!e.detail || e.detail.id === '${q}' || e.detail.id === '*') {
|
|
314
|
+
window.removeEventListener('${w}', handler);
|
|
315
|
+
hydrate();
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
})();
|
|
319
|
+
</script>
|
|
320
|
+
`}function b(q,j={},w){let z=q,G=!1,K=/@client:(load|idle|visible|media|only|hover|event)/i.test(q);if(z=W(z,"load",j),z=W(z,"idle",j),z=W(z,"visible",j),z=W(z,"media",j),z=C(z),z=W(z,"hover",j),z=W(z,"event",j),G=K&&z!==q,G)z+=`
|
|
321
|
+
`+B();return z}function W(q,j,w){let z=new RegExp(`@client:${j}(?:\\s*\\(([^)]*)\\))?\\s*([\\s\\S]*?)@endclient`,"gi");return q.replace(z,(G,K,Q)=>{let F={strategy:j};if(K)try{let R=K.split(",").map((X)=>X.trim());for(let X of R){let[L,O]=X.split(":").map((Y)=>Y.trim());if(L&&O){let Y=O.replace(/^['"]|['"]$/g,"");F[L]=Y}}}catch{}let J=`island-${Math.random().toString(36).substring(2,9)}`,Z=E(Q.trim()),$=V(Q.trim(),w),U=[];if(F.rootMargin)U.push(`data-root-margin="${F.rootMargin}"`);if(F.threshold!==void 0)U.push(`data-threshold="${F.threshold}"`);if(F.media)U.push(`data-media="${F.media}"`);if(F.event)U.push(`data-event="${F.event}"`);if(Z)U.push(`data-component="${Z}"`);let _=Object.keys($).length>0?`
|
|
322
|
+
<script type="application/json" data-island-props="${J}">${JSON.stringify($)}</script>`:"",T="";switch(j){case"load":T=k(J);break;case"idle":T=A(J,F);break;case"visible":T=M(J,F);break;case"media":T=N(J,F);break;case"hover":T=D(J);break;case"event":T=P(J,F);break}return`
|
|
323
|
+
<div data-island="${J}"
|
|
324
|
+
data-strategy="${j}"
|
|
325
|
+
${U.join(`
|
|
326
|
+
`)}
|
|
327
|
+
class="stx-island"
|
|
328
|
+
style="contents;">
|
|
329
|
+
${Q.trim()}${_}
|
|
330
|
+
</div>
|
|
331
|
+
${T}
|
|
332
|
+
`})}function C(q){let j=/@client:only\s*([\s\S]*?)@endclient/gi;return q.replace(j,(w,z)=>{let G=`island-only-${Math.random().toString(36).substring(2,9)}`;return`
|
|
333
|
+
<div data-island="${G}"
|
|
334
|
+
data-strategy="only"
|
|
335
|
+
class="stx-island stx-client-only">
|
|
336
|
+
<!-- Client-only content will be rendered here -->
|
|
337
|
+
<template data-client-content>${z.trim()}</template>
|
|
338
|
+
</div>
|
|
339
|
+
<script data-hydrate="${G}">
|
|
340
|
+
(function() {
|
|
341
|
+
const island = document.querySelector('[data-island="${G}"]');
|
|
342
|
+
if (!island) return;
|
|
343
|
+
|
|
344
|
+
const template = island.querySelector('template[data-client-content]');
|
|
345
|
+
if (template) {
|
|
346
|
+
island.innerHTML = template.innerHTML;
|
|
347
|
+
island.classList.add('hydrated');
|
|
348
|
+
}
|
|
349
|
+
})();
|
|
350
|
+
</script>
|
|
351
|
+
`})}function H(){return`
|
|
352
|
+
/* Island base styles */
|
|
353
|
+
.stx-island {
|
|
354
|
+
display: contents;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/* Pre-hydration state */
|
|
358
|
+
.stx-island:not(.hydrated) {
|
|
359
|
+
/* Optional: add loading indicator */
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Hydrated state */
|
|
363
|
+
.stx-island.hydrated {
|
|
364
|
+
/* Island is now interactive */
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/* Client-only placeholder */
|
|
368
|
+
.stx-client-only:not(.hydrated) {
|
|
369
|
+
min-height: 50px;
|
|
370
|
+
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
|
371
|
+
background-size: 200% 100%;
|
|
372
|
+
animation: island-shimmer 1.5s infinite;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@keyframes island-shimmer {
|
|
376
|
+
0% { background-position: 200% 0; }
|
|
377
|
+
100% { background-position: -200% 0; }
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
/* Hydration transition */
|
|
381
|
+
.stx-island {
|
|
382
|
+
transition: opacity 0.2s ease-out;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.stx-island:not(.hydrated) {
|
|
386
|
+
opacity: 0.7;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.stx-island.hydrated {
|
|
390
|
+
opacity: 1;
|
|
391
|
+
}
|
|
392
|
+
`}function S(q){if(typeof window>"u")return;let j=document.querySelector(`[data-island="${q}"]`);if(!j||j.classList.contains("hydrated"))return;j.classList.add("hydrated"),j.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))}function h(q){if(typeof window>"u")return;document.querySelectorAll(`[data-strategy="${q}"]:not(.hydrated)`).forEach((w)=>{w.classList.add("hydrated"),w.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function g(){if(typeof window>"u")return;document.querySelectorAll(".stx-island:not(.hydrated)").forEach((j)=>{j.classList.add("hydrated"),j.dispatchEvent(new CustomEvent("stx:hydrated",{bubbles:!0}))})}function v(q){if(typeof window>"u")return!1;return document.querySelector(`[data-island="${q}"]`)?.classList.contains("hydrated")??!1}function u(q){return new Promise((j)=>{if(typeof window>"u"){j();return}let w=document.querySelector(`[data-island="${q}"]`);if(!w){j();return}if(w.classList.contains("hydrated")){j();return}w.addEventListener("stx:hydrated",()=>j(),{once:!0})})}function x(q){return q.replace(/@static\s*([\s\S]*?)@endstatic/gi,(j,w)=>{return`<div class="stx-static">${w.trim()}</div>`})}function y(q){let j=q.map((w)=>({id:w.id,component:w.component,strategy:w.options.strategy,props:w.props}));return`
|
|
393
|
+
<script type="application/json" id="stx-island-manifest">
|
|
394
|
+
${JSON.stringify(j)}
|
|
395
|
+
</script>
|
|
396
|
+
`}var r={processPartialHydrationDirectives:b,processStaticDirectives:x,generatePartialHydrationCSS:H,generateIslandManifest:y,createIslandRegistry:f,hydrateIsland:S,hydrateByStrategy:h,hydrateAll:g,isHydrated:v,onHydrated:u};
|
|
397
|
+
export{B as Gi,I as Hi,E as Ii,V as Ji,f as Ki,b as Li,H as Mi,S as Ni,h as Oi,g as Pi,v as Qi,u as Ri,x as Si,y as Ti,r as Ui};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Eh as a,Fh as b,Gh as c,Hh as d,Ih as e,Jh as f}from"./chunk-1kah92n2.js";import"./chunk-y11cxbxd.js";import"./chunk-92mj1t26.js";import"./chunk-8mjdpr94.js";import"./chunk-pkaabd8h.js";import"./chunk-xpp135ad.js";import"./chunk-wrzwgkbx.js";import"./chunk-5kk8gsj2.js";import"./chunk-38ejahd9.js";import"./chunk-ypmqf7tm.js";import"./chunk-de7fye10.js";import"./chunk-v5e1gxwm.js";import"./chunk-b6ej2fdf.js";import"./chunk-x650vjcp.js";import"./chunk-qc1f74ek.js";export{c as renderSlot,d as processSlots,a as parseSlots,b as parseSlotElement,e as extractSlotContent,f as applySlots};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import C from"path";var G=".stx",K="STX_DIR",J=null;function O(j){J=j?.trim()||null}function H(){return process.env[K]?.trim()||J||G}function Q(j=process.cwd(),...q){let B=H();return C.isAbsolute(B)?C.join(B,...q):C.join(j,B,...q)}function W(j){if(!j||C.isAbsolute(j))return j;let q=j.replace(/\\/g,"/");if(q!==G&&!q.startsWith(`${G}/`))return j;let B=q.slice(G.length+1);return B?C.join(H(),B):H()}
|
|
3
|
+
export{G as ut,K as vt,O as wt,H as xt,Q as yt,W as zt};
|