@stacksjs/stx 0.2.851 → 0.2.853
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/a11y.d.ts +1 -1
- package/dist/analytics.d.ts +1 -1
- package/dist/animation.d.ts +1 -44
- package/dist/api-client.d.ts +1 -0
- package/dist/app-shell.d.ts +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/application-layers.d.ts +1 -1
- package/dist/assets.d.ts +1 -1
- package/dist/ast.d.ts +23 -1
- package/dist/broadcasting.d.ts +1 -1
- package/dist/browser-composables.d.ts +1 -0
- package/dist/build-externalize-repeated.d.ts +1 -1
- package/dist/build-id.d.ts +1 -0
- package/dist/build-views.d.ts +1 -1
- package/dist/build.d.ts +3 -3
- package/dist/builtins/attrs.d.ts +1 -1
- package/dist/builtins/drawer.d.ts +2 -2
- package/dist/builtins/icon.d.ts +2 -13
- package/dist/builtins/image-delivery.d.ts +1 -1
- package/dist/builtins/image-worker.d.ts +2 -2
- package/dist/builtins/index.d.ts +22 -22
- package/dist/builtins/modal.d.ts +2 -2
- package/dist/builtins/safe-image.d.ts +2 -2
- package/dist/builtins/stx-image.d.ts +2 -43
- package/dist/builtins/stx-link.d.ts +1 -10
- package/dist/builtins/stx-loading-indicator.d.ts +1 -13
- package/dist/builtins/suspense.d.ts +1 -8
- package/dist/builtins/toast.d.ts +2 -3
- package/dist/builtins/transition-group.d.ts +1 -2
- package/dist/bundle-analyzer/index.d.ts +6 -6
- package/dist/bundle-analyzer/report.d.ts +1 -1
- package/dist/bundle-analyzer/treemap.d.ts +1 -1
- package/dist/caching.d.ts +4 -4
- package/dist/chunk-05f4tjsq.js +2 -0
- package/dist/{chunk-422r7zkx.js → chunk-0hegjagg.js} +2 -2
- package/dist/{chunk-yvfzvygh.js → chunk-0wxmmvj0.js} +3 -3
- package/dist/chunk-0xwmweqm.js +2 -0
- package/dist/chunk-0yc4p3y2.js +2 -0
- package/dist/chunk-161p0zcy.js +2 -0
- package/dist/chunk-28r4jyvj.js +2 -0
- package/dist/{chunk-gwdffrz6.js → chunk-2rxr5cj6.js} +3 -3
- package/dist/{chunk-s0pnyd2f.js → chunk-33ph9zb2.js} +4 -4
- package/dist/chunk-3b9950gz.js +2 -0
- package/dist/chunk-46mw2r3k.js +2 -0
- package/dist/chunk-48z6w533.js +3 -0
- package/dist/{chunk-88392kaj.js → chunk-4nhbbcr9.js} +5 -5
- package/dist/{chunk-f5n871gp.js → chunk-4wx7refk.js} +4 -4
- package/dist/chunk-4zkk63v3.js +2 -0
- package/dist/{chunk-422eg7vs.js → chunk-52szcd15.js} +1 -1
- package/dist/chunk-5758n8sm.js +2 -0
- package/dist/{chunk-fffjjgnt.js → chunk-5erremft.js} +2 -2
- package/dist/{chunk-r0k5jbvk.js → chunk-5fdpg861.js} +1 -1
- package/dist/{chunk-k47addf7.js → chunk-5g1jwxny.js} +9 -9
- package/dist/{chunk-m9kkd9f2.js → chunk-5pft38qa.js} +2 -2
- package/dist/chunk-5t8xpkwc.js +2 -0
- package/dist/{chunk-aas25pac.js → chunk-63rvsnt2.js} +3 -3
- package/dist/chunk-6bm19d4k.js +2 -0
- package/dist/chunk-6c45vx1e.js +2 -0
- package/dist/chunk-6vc1dwqt.js +2 -0
- package/dist/chunk-76b6m6n0.js +2 -0
- package/dist/{chunk-qev14f76.js → chunk-7kc9xwht.js} +3 -3
- package/dist/{chunk-45yytzyd.js → chunk-7rtvravz.js} +7 -7
- package/dist/{chunk-x9a2agqk.js → chunk-7wwq1btb.js} +1 -1
- package/dist/{chunk-xj5jdy7n.js → chunk-83d468me.js} +4 -4
- package/dist/{chunk-p4ytnee6.js → chunk-8cg88x7m.js} +39 -39
- package/dist/chunk-8fprfzcn.js +2 -0
- package/dist/{chunk-j5pgwqwp.js → chunk-8g0243g1.js} +3 -3
- package/dist/chunk-9h1w4py6.js +2 -0
- package/dist/{chunk-q5rw0d2m.js → chunk-9mzskb69.js} +3 -3
- package/dist/{chunk-8cvgm13s.js → chunk-9r999ees.js} +2 -2
- package/dist/{chunk-2d7e5g92.js → chunk-9z7fnv33.js} +1 -1
- package/dist/{chunk-ark6w80h.js → chunk-a0ahcd1g.js} +2 -2
- package/dist/chunk-aajezypd.js +2 -0
- package/dist/{chunk-nqv66ehx.js → chunk-agvm20mz.js} +3 -3
- package/dist/{chunk-hdep0xcy.js → chunk-baxrx1rz.js} +9 -9
- package/dist/{chunk-xndr2dx9.js → chunk-bkefg64w.js} +5 -5
- package/dist/{chunk-ezzskm4a.js → chunk-bqxrfagh.js} +1 -1
- package/dist/chunk-bz4bskx3.js +2 -0
- package/dist/chunk-bze3ksvb.js +2 -0
- package/dist/chunk-c2et7w0g.js +2 -0
- package/dist/{chunk-eyp7rr70.js → chunk-c54bhqrg.js} +39 -39
- package/dist/{chunk-e9qgyvz5.js → chunk-c9k0yhyq.js} +2 -2
- package/dist/{chunk-ngdye54z.js → chunk-cabdpgxg.js} +3 -3
- package/dist/{chunk-cct2fzth.js → chunk-cf7dk9ev.js} +10 -10
- package/dist/chunk-cfmjtyzm.js +2 -0
- package/dist/{chunk-h9gjt73q.js → chunk-csgfws3j.js} +2 -2
- package/dist/{chunk-scaawv2r.js → chunk-csksn1kg.js} +2 -2
- package/dist/{chunk-t23jn83r.js → chunk-ctb1bj28.js} +2 -2
- package/dist/chunk-cxf0rzv6.js +2 -0
- package/dist/{chunk-axga9ebe.js → chunk-d4gy4yz0.js} +2 -2
- package/dist/chunk-dee5mtdv.js +2 -0
- package/dist/chunk-dm10y06z.js +2 -0
- package/dist/chunk-dw9vnhc4.js +2 -0
- package/dist/chunk-e5vbwsty.js +2 -0
- package/dist/chunk-e64m5ayt.js +2 -0
- package/dist/{chunk-z33esms3.js → chunk-ehp792dy.js} +2 -2
- package/dist/{chunk-tm1ec751.js → chunk-f9thwm8c.js} +4 -4
- package/dist/chunk-faf3gh3j.js +2 -0
- package/dist/chunk-fbakngjt.js +2 -0
- package/dist/{chunk-amerebya.js → chunk-fhrvxfq9.js} +2 -2
- package/dist/{chunk-pkq96sqk.js → chunk-fj5jw2jd.js} +6 -6
- package/dist/chunk-fn2cjkp0.js +2 -0
- package/dist/{chunk-m05pqmcj.js → chunk-fphnst8a.js} +5 -5
- package/dist/chunk-fsg958xx.js +2 -0
- package/dist/{chunk-4jf18yed.js → chunk-fxt9vwdw.js} +38 -38
- package/dist/chunk-g976n4r1.js +2 -0
- package/dist/chunk-gn1dmfdv.js +2 -0
- package/dist/chunk-gsn5vvw4.js +2 -0
- package/dist/chunk-hmys6w75.js +2 -0
- package/dist/chunk-hqtj4ngq.js +2 -0
- package/dist/chunk-hwq24mwt.js +2 -0
- package/dist/{chunk-0rszcb0m.js → chunk-j1yjbykm.js} +6 -6
- package/dist/{chunk-frhdk0p9.js → chunk-j2wcawmf.js} +2 -2
- package/dist/{chunk-k7dvn2r8.js → chunk-jr346anv.js} +2 -2
- package/dist/{chunk-tr5r70yr.js → chunk-jtpqqxzb.js} +6 -6
- package/dist/chunk-jy5fezyr.js +2 -0
- package/dist/chunk-kfq4mwem.js +2 -0
- package/dist/chunk-kgrvvtcy.js +3 -0
- package/dist/chunk-kkk1dtq6.js +2 -0
- package/dist/chunk-knd3m4t4.js +2 -0
- package/dist/{chunk-jtccqpwa.js → chunk-kvafq9gy.js} +2 -2
- package/dist/chunk-m3kc2a3v.js +2 -0
- package/dist/{chunk-kf5fsz9b.js → chunk-m9n3ahsy.js} +2 -2
- package/dist/{chunk-taf784yy.js → chunk-mdsc3rz1.js} +2 -2
- package/dist/chunk-mjp2sp74.js +2 -0
- package/dist/{chunk-g046t3hb.js → chunk-mmdqdkbd.js} +1 -1
- package/dist/{chunk-caehra7e.js → chunk-mpmnbvy4.js} +5 -5
- package/dist/chunk-mx79sfyr.js +2 -0
- package/dist/chunk-n6w82yf2.js +2 -0
- package/dist/{chunk-qjc3qjyf.js → chunk-n77xrpv9.js} +2 -2
- package/dist/{chunk-7hv190bd.js → chunk-n8qd1n8w.js} +3 -3
- package/dist/{chunk-agbkv9ab.js → chunk-ngnvyqk3.js} +2 -2
- package/dist/{chunk-zjm67zx2.js → chunk-nyqvtca1.js} +4 -4
- package/dist/{chunk-dy31f39m.js → chunk-nz202f97.js} +4 -4
- package/dist/chunk-pd3wzh2x.js +2 -0
- package/dist/chunk-pj3xwwtg.js +2 -0
- package/dist/{chunk-gsrdjmw9.js → chunk-pm241ehv.js} +2 -2
- package/dist/{chunk-8vjr3atq.js → chunk-prfrqfae.js} +2 -2
- package/dist/chunk-q1z8edtn.js +2 -0
- package/dist/{chunk-3wkgd883.js → chunk-qkcn0exq.js} +6 -6
- package/dist/{chunk-m710wkr4.js → chunk-qnyh0m22.js} +1 -1
- package/dist/{chunk-e85wsz8y.js → chunk-r69en2jg.js} +1 -1
- package/dist/{chunk-833y1ndd.js → chunk-rbxbgvkf.js} +1 -1
- package/dist/{chunk-wn8qkcaw.js → chunk-rmeey2xa.js} +4 -4
- package/dist/{chunk-xz4yq7gh.js → chunk-rrppkyv0.js} +42 -42
- package/dist/{chunk-yza0mj53.js → chunk-rw7q2a3c.js} +9 -9
- package/dist/chunk-s4c1mq0r.js +2 -0
- package/dist/chunk-sx1prttb.js +2 -0
- package/dist/chunk-syww37qd.js +2 -0
- package/dist/{chunk-6p62jjzm.js → chunk-t3a3wbjk.js} +2 -2
- package/dist/{chunk-0dnetjh8.js → chunk-te82sjhy.js} +48 -48
- package/dist/{chunk-2rg9pqmh.js → chunk-tm8a2b69.js} +4 -4
- package/dist/{chunk-6dqafrq5.js → chunk-trxha300.js} +5 -5
- package/dist/{chunk-5gfg2tqg.js → chunk-txdxfjbj.js} +3 -3
- package/dist/{chunk-j8f4tb4p.js → chunk-vpqgg04q.js} +1 -1
- package/dist/{chunk-qk2herh9.js → chunk-vtzkqsq1.js} +17 -17
- package/dist/chunk-vw9h1x2m.js +2 -0
- package/dist/{chunk-e105xsee.js → chunk-w7p34cr3.js} +1 -1
- package/dist/{chunk-69nhstnz.js → chunk-x1w19y3w.js} +4 -4
- package/dist/chunk-x2vybq9n.js +2 -0
- package/dist/chunk-x8jsmwhg.js +2 -0
- package/dist/chunk-xa9mkdn7.js +2 -0
- package/dist/{chunk-wtahqbxe.js → chunk-xzdjhjz4.js} +4 -4
- package/dist/{chunk-kd06c90f.js → chunk-ya6f7mt5.js} +4 -4
- package/dist/{chunk-69kbw21c.js → chunk-zjfp64v7.js} +1 -1
- package/dist/{chunk-e6qam3x3.js → chunk-zqpjqcm8.js} +5 -5
- package/dist/chunk-zzzqnf9k.js +2 -0
- package/dist/cli.js +41 -41
- package/dist/client/directive.d.ts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client-script-bundler.d.ts +1 -1
- package/dist/client-script.d.ts +5 -5
- package/dist/client.d.ts +1 -0
- package/dist/component-client-factories.d.ts +1 -0
- package/dist/component-contract-checks.d.ts +1 -1
- package/dist/component-hmr.d.ts +17 -0
- package/dist/component-library.d.ts +1 -1
- package/dist/component-model.d.ts +1 -1
- package/dist/component-processing.d.ts +4 -4
- package/dist/component-registry.d.ts +2 -2
- package/dist/component-renderer.d.ts +3 -3
- package/dist/components.d.ts +1 -1
- package/dist/composables/index.d.ts +47 -47
- package/dist/composables/use-ambient-sound.d.ts +38 -1
- package/dist/composables/use-broadcast-channel.d.ts +1 -0
- package/dist/composables/use-cached-query.d.ts +3 -3
- package/dist/composables/use-completion.d.ts +1 -1
- package/dist/composables/use-cookie.d.ts +1 -1
- package/dist/composables/use-eye-dropper.d.ts +1 -0
- package/dist/composables/use-fetch.d.ts +2 -2
- package/dist/composables/use-form.d.ts +2 -2
- package/dist/composables/use-intersection-observer.d.ts +1 -0
- package/dist/composables/use-keyboard.d.ts +21 -20
- package/dist/composables/use-media-query.d.ts +5 -5
- package/dist/composables/use-notification.d.ts +0 -9
- package/dist/composables/use-permissions.d.ts +0 -10
- package/dist/composables/use-scroll-lock.d.ts +2 -1
- package/dist/composables/use-share.d.ts +0 -4
- package/dist/composables/use-speech.d.ts +1 -0
- package/dist/composables/use-storage.d.ts +1 -1
- package/dist/composables/use-timer.d.ts +4 -4
- package/dist/composables/use-virtual-list.d.ts +1 -1
- package/dist/composables/use-websocket.d.ts +1 -0
- package/dist/composables.d.ts +3 -3
- package/dist/config.d.ts +18 -1
- package/dist/config.js +9 -2
- package/dist/craft-compiler.d.ts +1 -5
- package/dist/craft-components.d.ts +2 -6
- package/dist/craft-entry.d.ts +5 -5
- package/dist/craft-entry.js +2 -2
- package/dist/craft-ssr.d.ts +1 -1
- package/dist/craft.js +2 -2
- package/dist/csp.d.ts +1 -1
- package/dist/custom-directives.d.ts +1 -1
- package/dist/database.d.ts +21 -1
- package/dist/deploy/index.d.ts +6 -6
- package/dist/dev-server/index.d.ts +7 -7
- package/dist/dev-server/serve-app.d.ts +1 -1
- package/dist/dev-server/serve-file.d.ts +1 -1
- package/dist/dev-server/serve-markdown.d.ts +1 -1
- package/dist/dev-server/serve-multi.d.ts +1 -1
- package/dist/dev-server/terminal-colors.d.ts +25 -25
- package/dist/dev-server/ts-css.d.ts +1 -1
- package/dist/dev-server/types.d.ts +1 -1
- package/dist/dev-server.d.ts +5 -5
- package/dist/directive-api.d.ts +1 -1
- package/dist/directive-arguments.d.ts +1 -1
- package/dist/docs.d.ts +2 -2
- package/dist/document-shell.d.ts +2 -2
- package/dist/dynamic-components.d.ts +1 -1
- package/dist/edge-runtime.d.ts +1 -1
- package/dist/engine-bindings.d.ts +1 -1
- package/dist/error-handling.d.ts +1 -1
- package/dist/errors/codes.d.ts +28 -28
- package/dist/errors/formatter.d.ts +2 -2
- package/dist/errors/index.d.ts +5 -5
- package/dist/errors/logger.d.ts +14 -1
- package/dist/errors/sanitizer.d.ts +13 -2
- package/dist/errors/types.d.ts +1 -1
- package/dist/expressions.d.ts +3 -36
- package/dist/forms-validation.d.ts +5 -1
- package/dist/forms.d.ts +21 -21
- package/dist/fragment-container.d.ts +1 -0
- package/dist/heatmap.d.ts +2 -5
- package/dist/hot-reload.d.ts +3 -0
- package/dist/hydration.d.ts +28 -0
- package/dist/i18n.d.ts +2 -1
- package/dist/image-optimization/build-plugin.d.ts +2 -2
- package/dist/image-optimization/component.d.ts +1 -1
- package/dist/image-optimization/directive.d.ts +3 -3
- package/dist/image-optimization/index.d.ts +6 -6
- package/dist/image-optimization/processor.d.ts +1 -0
- package/dist/image-optimization/serve.d.ts +2 -1
- package/dist/includes.d.ts +2 -2
- package/dist/index.d.ts +171 -171
- package/dist/init.d.ts +1 -0
- package/dist/installed-entry.d.ts +1 -1
- package/dist/jsx-runtime.d.ts +2 -2
- package/dist/lazy-loader.d.ts +5 -0
- package/dist/loading-indicator.d.ts +0 -2
- package/dist/loops.d.ts +3 -3
- package/dist/manifest.d.ts +2 -2
- package/dist/media/client/index.d.ts +6 -6
- package/dist/media/image/component.d.ts +1 -1
- package/dist/media/image/directive.d.ts +2 -2
- package/dist/media/image/editing.d.ts +35 -35
- package/dist/media/image/index.d.ts +6 -6
- package/dist/media/image/placeholder.d.ts +1 -1
- package/dist/media/image/processor/cache.d.ts +3 -2
- package/dist/media/image/processor/index.d.ts +4 -4
- package/dist/media/image/processor/optimizer.d.ts +1 -1
- package/dist/media/image/processor/responsive.d.ts +1 -1
- package/dist/media/image/srcset.d.ts +6 -6
- package/dist/media/index.d.ts +13 -13
- package/dist/media/manager/embed.d.ts +1 -1
- package/dist/media/protected/component.d.ts +1 -1
- package/dist/media/protected/index.d.ts +2 -2
- package/dist/media/protected/signature.d.ts +1 -1
- package/dist/media/shared/index.d.ts +2 -2
- package/dist/media/upload/component.d.ts +1 -1
- package/dist/media/upload/index.d.ts +1 -1
- package/dist/media/video/directive.d.ts +2 -2
- package/dist/media/video/index.d.ts +2 -2
- package/dist/media/video/processor/cache.d.ts +3 -2
- package/dist/media/video/processor/index.d.ts +5 -5
- package/dist/media/video/processor/streaming.d.ts +1 -1
- package/dist/media/video/processor/thumbnail.d.ts +1 -1
- package/dist/media/video/processor/transcoder.d.ts +1 -1
- package/dist/meta-arguments.d.ts +1 -1
- package/dist/middleware.d.ts +1 -1
- package/dist/native/bridge/protocol.d.ts +15 -14
- package/dist/native/cli.d.ts +1 -1
- package/dist/native/compiler/browser.d.ts +1 -1
- package/dist/native/compiler/bundle.d.ts +3 -3
- package/dist/native/compiler/class-table.d.ts +4 -4
- package/dist/native/compiler/client-script.d.ts +1 -1
- package/dist/native/compiler/component-mapping.d.ts +1 -1
- package/dist/native/compiler/design-tokens.d.ts +1 -1
- package/dist/native/compiler/headwind-to-style.d.ts +3 -3
- package/dist/native/compiler/html-to-ir.d.ts +1 -1
- package/dist/native/compiler/inline-style.d.ts +2 -2
- package/dist/native/compiler/ir.d.ts +3 -3
- package/dist/native/compiler/layout-chrome.d.ts +1 -1
- package/dist/native/compiler/render-screen.d.ts +5 -5
- package/dist/native/compiler/shared-scripts.d.ts +1 -1
- package/dist/native/compiler/svg.d.ts +1 -1
- package/dist/native/components/primitives.d.ts +32 -32
- package/dist/native/floating-actions.d.ts +2 -1
- package/dist/native/floating-actions.js +2 -0
- package/dist/native/hot-reload/client.d.ts +26 -1
- package/dist/native/index.d.ts +19 -19
- package/dist/native/runtime/binding-tree.d.ts +8 -3
- package/dist/native/runtime/browser-renderer.d.ts +33 -3
- package/dist/native/runtime/browser-screen.d.ts +2 -2
- package/dist/native/runtime/browser-screen.js +12 -1
- package/dist/native/runtime/compact-document.d.ts +3 -5
- package/dist/native/runtime/craft-bridge.d.ts +4 -3
- package/dist/native/runtime/craft.d.ts +2 -1
- package/dist/native/runtime/event-stream.d.ts +1 -0
- package/dist/native/runtime/initial-media-mutations.d.ts +1 -1
- package/dist/native/runtime/jsc-globals.d.ts +18 -32
- package/dist/native/runtime/native-host.d.ts +8 -8
- package/dist/native/runtime/navigation-chrome.d.ts +1 -1
- package/dist/native/runtime/overlay-presenter.d.ts +3 -2
- package/dist/native/runtime/shared-screen.d.ts +7 -6
- package/dist/native/runtime/view-operations.d.ts +1 -1
- package/dist/native/runtime/web-navigation.d.ts +1 -0
- package/dist/native/runtime/web-storage.d.ts +4 -2
- package/dist/native/testing-mutations.d.ts +1 -1
- package/dist/native/testing.d.ts +4 -3
- package/dist/native/testing.js +21 -2
- package/dist/native/ui.d.ts +37 -36
- package/dist/native-build.d.ts +3 -3
- package/dist/offline/app-service-worker.d.ts +1 -0
- package/dist/offline/query-cache.d.ts +2 -2
- package/dist/page-action.d.ts +1 -1
- package/dist/parser/expression-parser.d.ts +1 -1
- package/dist/parser/index.d.ts +4 -4
- package/dist/parser/tokenizer.d.ts +16 -0
- package/dist/performance-utils.d.ts +136 -256
- package/dist/plugin-system.d.ts +7 -1
- package/dist/precompiler.d.ts +32 -1
- package/dist/process.d.ts +6 -6
- package/dist/production-build.d.ts +36 -0
- package/dist/production-builder.d.ts +3 -3
- package/dist/production-server.d.ts +1 -1
- package/dist/pwa/audit.d.ts +1 -1
- package/dist/pwa/directives.d.ts +1 -18
- package/dist/pwa/icons.d.ts +1 -1
- package/dist/pwa/index.d.ts +10 -10
- package/dist/pwa/inject.d.ts +1 -1
- package/dist/pwa/manifest.d.ts +1 -1
- package/dist/pwa/offline.d.ts +1 -1
- package/dist/pwa/precache.d.ts +1 -1
- package/dist/pwa/service-worker.d.ts +1 -1
- package/dist/pwa/workbox-strategies.d.ts +1 -1
- package/dist/pwa/workbox.d.ts +1 -1
- package/dist/pwa.d.ts +9 -9
- package/dist/pwa.js +3 -3
- package/dist/reactive-bindings.d.ts +1 -0
- package/dist/render-memo.d.ts +1 -1
- package/dist/render.d.ts +1 -1
- package/dist/route-response-cache.d.ts +5 -1
- package/dist/route-types.d.ts +1 -0
- package/dist/runtime-config-loader.d.ts +1 -1
- package/dist/runtime-config-server.d.ts +1 -4
- package/dist/runtime-config-types.d.ts +2 -2
- package/dist/runtime-injection.d.ts +1 -1
- package/dist/safe-evaluator.d.ts +38 -55
- package/dist/script-validation.d.ts +1 -1
- package/dist/seo.d.ts +1 -9
- package/dist/serve.d.ts +1 -1
- package/dist/server-api.d.ts +3 -2
- package/dist/server-components.d.ts +2 -1
- package/dist/server-data.d.ts +1 -0
- package/dist/signal-processing.d.ts +3 -3
- package/dist/signals.d.ts +2 -2
- package/dist/site-builder/build.d.ts +1 -1
- package/dist/site-builder/i18n.d.ts +1 -1
- package/dist/site-builder/index.d.ts +9 -9
- package/dist/site-builder/robots.d.ts +1 -1
- package/dist/site-builder/router.d.ts +1 -1
- package/dist/site-builder/seo.d.ts +1 -1
- package/dist/site-builder/sitemap.d.ts +1 -1
- package/dist/site-builder/theme.d.ts +1 -1
- package/dist/source-maps.d.ts +14 -0
- package/dist/ssg-static-paths.d.ts +1 -1
- package/dist/ssg.d.ts +3 -22
- package/dist/ssg.js +3 -3
- package/dist/ssr.d.ts +2 -1
- package/dist/state-management.d.ts +1 -0
- package/dist/story/addons.d.ts +1 -1
- package/dist/story/analytics.d.ts +7 -0
- package/dist/story/auto-stories.d.ts +1 -1
- package/dist/story/bookmarks.d.ts +4 -0
- package/dist/story/collect/analyzer.d.ts +1 -1
- package/dist/story/collect/index.d.ts +4 -4
- package/dist/story/collect/parser.d.ts +1 -1
- package/dist/story/collect/scanner.d.ts +1 -1
- package/dist/story/collect/tree.d.ts +1 -1
- package/dist/story/commands/index.d.ts +6 -6
- package/dist/story/compiled-output.d.ts +1 -1
- package/dist/story/composition.d.ts +1 -1
- package/dist/story/config-watcher.d.ts +1 -1
- package/dist/story/config.d.ts +1 -1
- package/dist/story/context.d.ts +1 -1
- package/dist/story/controls/index.d.ts +2 -1
- package/dist/story/desktop-preview.d.ts +1 -1
- package/dist/story/docs-generator.d.ts +1 -1
- package/dist/story/figma-export.d.ts +1 -1
- package/dist/story/generator.d.ts +1 -1
- package/dist/story/index.d.ts +41 -41
- package/dist/story/interactions.d.ts +1 -1
- package/dist/story/output.d.ts +1 -0
- package/dist/story/performance.d.ts +9 -0
- package/dist/story/presets.d.ts +5 -0
- package/dist/story/props-validation.d.ts +1 -1
- package/dist/story/renderer.d.ts +1 -1
- package/dist/story/search-index.d.ts +1 -1
- package/dist/story/search.d.ts +1 -1
- package/dist/story/server.d.ts +1 -1
- package/dist/story/setup.d.ts +1 -1
- package/dist/story/snapshots.d.ts +1 -1
- package/dist/story/testing.d.ts +1 -1
- package/dist/story/theme.d.ts +1 -1
- package/dist/story/ts-css.d.ts +1 -1
- package/dist/story/ui/code-panel.d.ts +1 -1
- package/dist/story/ui/controls-panel.d.ts +1 -1
- package/dist/story/ui/index.d.ts +4 -4
- package/dist/story/ui/preview.d.ts +1 -1
- package/dist/story/visual-testing.d.ts +1 -1
- package/dist/streaming.d.ts +1 -1
- package/dist/stx-module-imports.d.ts +2 -1
- package/dist/stx-virtual-ts.d.ts +3 -2
- package/dist/temp-dir.d.ts +1 -0
- package/dist/template-compiler.d.ts +1 -1
- package/dist/template-hydrator.d.ts +1 -1
- package/dist/testing.d.ts +35 -66
- package/dist/theme-tokens.d.ts +5 -1
- package/dist/ts-css-config.d.ts +1 -0
- package/dist/type-checker.d.ts +24 -0
- package/dist/typecheck.d.ts +4 -4
- package/dist/types/config-types.d.ts +17 -17
- package/dist/types/context-types.d.ts +1 -1
- package/dist/types/directive-types.d.ts +2 -1
- package/dist/types/index.d.ts +7 -7
- package/dist/types.d.ts +1 -1
- package/dist/utils.d.ts +5 -5
- package/dist/variable-extractor.d.ts +1 -1
- package/dist/visual-editor.d.ts +0 -4
- package/dist/web-components/index.d.ts +4 -4
- package/dist/web-components/reactive-generator.d.ts +1 -1
- package/dist/web-components.d.ts +1 -1
- package/package.json +11 -7
- package/stx.d.ts +6 -5
- package/dist/chunk-036pnz1y.js +0 -2
- package/dist/chunk-0dve54ne.js +0 -3
- package/dist/chunk-0g05v7m1.js +0 -2
- package/dist/chunk-1qdhwjs4.js +0 -2
- package/dist/chunk-2vfhzn8m.js +0 -2
- package/dist/chunk-30y1dbcf.js +0 -2
- package/dist/chunk-3gyq9rjx.js +0 -2
- package/dist/chunk-3m3jny87.js +0 -2
- package/dist/chunk-3w9xhs7k.js +0 -2
- package/dist/chunk-4e6wkjtx.js +0 -2
- package/dist/chunk-5bbwdv4y.js +0 -3
- package/dist/chunk-5yy40vxk.js +0 -2
- package/dist/chunk-67bn31a3.js +0 -2
- package/dist/chunk-6ekgf3b3.js +0 -2
- package/dist/chunk-6rk18x14.js +0 -2
- package/dist/chunk-7hnt9a2e.js +0 -2
- package/dist/chunk-80bb89fh.js +0 -2
- package/dist/chunk-8k6cd1e0.js +0 -2
- package/dist/chunk-8qqrrbap.js +0 -2
- package/dist/chunk-8spe7avc.js +0 -2
- package/dist/chunk-8wnkh2ss.js +0 -2
- package/dist/chunk-93kdj0t4.js +0 -2
- package/dist/chunk-9frv1kpd.js +0 -2
- package/dist/chunk-9pzbesp6.js +0 -2
- package/dist/chunk-a7v1j7td.js +0 -2
- package/dist/chunk-acbx3jn5.js +0 -2
- package/dist/chunk-apq33h4w.js +0 -2
- package/dist/chunk-c90qz5w0.js +0 -2
- package/dist/chunk-dx31vsyf.js +0 -2
- package/dist/chunk-evyspfm5.js +0 -2
- package/dist/chunk-f4x21pqx.js +0 -2
- package/dist/chunk-fj18grh2.js +0 -2
- package/dist/chunk-frhh6jd3.js +0 -2
- package/dist/chunk-g1gqysb4.js +0 -2
- package/dist/chunk-h7rcb74n.js +0 -2
- package/dist/chunk-htsqfx9m.js +0 -2
- package/dist/chunk-j3x3e353.js +0 -2
- package/dist/chunk-j882bpqq.js +0 -2
- package/dist/chunk-jxzcwjx4.js +0 -2
- package/dist/chunk-k1pyzf9e.js +0 -2
- package/dist/chunk-knapnbwv.js +0 -2
- package/dist/chunk-m276y4f3.js +0 -2
- package/dist/chunk-p2gsezmj.js +0 -2
- package/dist/chunk-p9sbpbhg.js +0 -2
- package/dist/chunk-pg2dxnry.js +0 -2
- package/dist/chunk-q2d8x7p1.js +0 -2
- package/dist/chunk-tdtwqydq.js +0 -2
- package/dist/chunk-ty915d4h.js +0 -2
- package/dist/chunk-vk9zpckc.js +0 -2
- package/dist/chunk-vvr19nq7.js +0 -2
- package/dist/chunk-wjf69hmc.js +0 -2
- package/dist/chunk-xsavnbkv.js +0 -2
- package/dist/chunk-ydjy26ch.js +0 -2
- package/dist/chunk-yx37mvy7.js +0 -2
- package/dist/chunk-z278w3cb.js +0 -2
- package/dist/chunk-znfzh6fm.js +0 -2
- package/dist/chunk-zwy89pzx.js +0 -2
- package/dist/chunk-zz1n2ake.js +0 -2
package/dist/story/ui/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* STX Story - UI Components
|
|
3
3
|
* All UI-related exports
|
|
4
4
|
*/
|
|
5
|
-
export * from './code-panel';
|
|
6
|
-
export * from './controls-panel';
|
|
7
|
-
export * from './navigation';
|
|
8
|
-
export * from './preview';
|
|
5
|
+
export * from './code-panel.js';
|
|
6
|
+
export * from './controls-panel.js';
|
|
7
|
+
export * from './navigation.js';
|
|
8
|
+
export * from './preview.js';
|
package/dist/streaming.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ScriptBlock, ScriptKind } from './stx-virtual-ts';
|
|
1
|
+
import type { ScriptBlock, ScriptKind } from './stx-virtual-ts.js';
|
|
2
2
|
/**
|
|
3
3
|
* Names imported from `stx` into a block kind that does not receive them.
|
|
4
4
|
*
|
|
@@ -29,3 +29,4 @@ export declare interface StxImportDiagnostic {
|
|
|
29
29
|
kind: ScriptKind
|
|
30
30
|
message: string
|
|
31
31
|
}
|
|
32
|
+
export {};
|
package/dist/stx-virtual-ts.d.ts
CHANGED
|
@@ -426,7 +426,7 @@ export declare const UNWRAP_HELPER: '__StxTemplateValue';
|
|
|
426
426
|
* Mirrors what `serve.ts` puts in scope. Declaring these is what lets the
|
|
427
427
|
* checker report a genuine typo instead of suppressing every unresolved name.
|
|
428
428
|
*/
|
|
429
|
-
export declare const STX_SERVER_CONTEXT: readonly ['params', 'query', 'cookies', 'host', 'ip', 'setResponseStatus', 'setResponseHeader', 'notFound', 'request', 'url', 'definePageMeta',
|
|
429
|
+
export declare const STX_SERVER_CONTEXT: readonly ['params', 'query', 'cookies', 'host', 'ip', 'setResponseStatus', 'setResponseHeader', 'notFound', 'request', 'url', 'definePageMeta', 'defineClientPayload', 'defineStore', 'props', '$props'];
|
|
430
430
|
/** Marker comment so a generated preamble is recognisable in a dumped buffer. */
|
|
431
431
|
export declare const PAYLOAD_COMMENT: 'stx: types for the declared client payload (#1868)';
|
|
432
432
|
/** The same, for a page still relying on the name-scraping bridge. */
|
|
@@ -439,7 +439,7 @@ export declare const SCRAPED_COMMENT: 'stx: untyped bridge names — declare a d
|
|
|
439
439
|
* also dropped genuine typos; giving the names a declaration means an
|
|
440
440
|
* unrecognised one is still an error (#1852 ask 3).
|
|
441
441
|
*/
|
|
442
|
-
export declare const STX_TEMPLATE_GLOBALS: readonly ['$env', '$user', '$slot', '$slots', '$attrs', '$props', '$page', '$route', '$loop',
|
|
442
|
+
export declare const STX_TEMPLATE_GLOBALS: readonly ['$env', '$user', '$slot', '$slots', '$attrs', '$props', '$page', '$route', '$loop', 'loop', '$errors', '$csrf', '$native', 'props', 'slot'];
|
|
443
443
|
export declare interface ScriptBlock {
|
|
444
444
|
kind: ScriptKind
|
|
445
445
|
code: string
|
|
@@ -519,3 +519,4 @@ export declare interface ResolvedPosition {
|
|
|
519
519
|
inGuard?: boolean
|
|
520
520
|
}
|
|
521
521
|
export type ScriptKind = 'server' | 'client' | 'plain';
|
|
522
|
+
export {};
|
package/dist/temp-dir.d.ts
CHANGED
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StxOptions } from './types';
|
|
1
|
+
import type { StxOptions } from './types.js';
|
|
2
2
|
/** Define the standard Node.nodeType constants happy-dom omits. Idempotent. */
|
|
3
3
|
export declare function installNodeConstants(): void;
|
|
4
4
|
/**
|
|
@@ -93,10 +93,6 @@ export declare function createMockFn<T extends (...args: unknown[]) => unknown>(
|
|
|
93
93
|
* ```
|
|
94
94
|
*/
|
|
95
95
|
export declare function createMockStore<T extends Record<string, unknown>>(initialState: T): MockStore<T>;
|
|
96
|
-
// =============================================================================
|
|
97
|
-
// Helper Functions
|
|
98
|
-
// =============================================================================
|
|
99
|
-
declare function getElement(target: HTMLElement | ElementWrapper | ComponentWrapper | null): HTMLElement | null;
|
|
100
96
|
/**
|
|
101
97
|
* Create a test context with common setup.
|
|
102
98
|
*/
|
|
@@ -115,108 +111,81 @@ export declare function createTestContext(options?: {
|
|
|
115
111
|
export declare function cleanup(): void;
|
|
116
112
|
/**
|
|
117
113
|
* Fire events on elements.
|
|
118
|
-
* @defaultValue
|
|
119
|
-
* ```ts
|
|
120
|
-
* {
|
|
121
|
-
* click: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, options?: MouseEventInit, ) => Promise<void>,
|
|
122
|
-
* dblClick: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, options?: MouseEventInit, ) => Promise<void>,
|
|
123
|
-
* input: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, value: string, ) => Promise<void>,
|
|
124
|
-
* change: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, value?: string, ) => Promise<void>,
|
|
125
|
-
* submit: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, ) => Promise<void>,
|
|
126
|
-
* focus: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, ) => Promise<void>,
|
|
127
|
-
* blur: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, ) => Promise<void>,
|
|
128
|
-
* keyDown: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, key: string, options?: KeyboardEventInit, ) => Promise<void>,
|
|
129
|
-
* keyUp: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, key: string, options?: KeyboardEventInit, ) => Promise<void>,
|
|
130
|
-
* custom: ( target: HTMLElement | ElementWrapper | ComponentWrapper | null, eventName: string, options?: FireEventOptions, ) => Promise<void>
|
|
131
|
-
* }
|
|
132
|
-
* ```
|
|
133
114
|
*/
|
|
134
115
|
export declare const fireEvent: {
|
|
135
116
|
/**
|
|
136
117
|
* Fire a click event.
|
|
137
118
|
*/
|
|
138
119
|
click: (
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
120
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
121
|
+
options?: MouseEventInit,
|
|
122
|
+
) => Promise<void>;
|
|
142
123
|
/**
|
|
143
124
|
* Fire a double click event.
|
|
144
125
|
*/
|
|
145
126
|
dblClick: (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
127
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
128
|
+
options?: MouseEventInit,
|
|
129
|
+
) => Promise<void>;
|
|
149
130
|
/**
|
|
150
131
|
* Fire an input event.
|
|
151
132
|
*/
|
|
152
133
|
input: (
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
134
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
135
|
+
value: string,
|
|
136
|
+
) => Promise<void>;
|
|
156
137
|
/**
|
|
157
138
|
* Fire a change event.
|
|
158
139
|
*/
|
|
159
140
|
change: (
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
141
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
142
|
+
value?: string,
|
|
143
|
+
) => Promise<void>;
|
|
163
144
|
/**
|
|
164
145
|
* Fire a submit event.
|
|
165
146
|
*/
|
|
166
147
|
submit: (
|
|
167
|
-
|
|
168
|
-
|
|
148
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
149
|
+
) => Promise<void>;
|
|
169
150
|
/**
|
|
170
151
|
* Fire a focus event.
|
|
171
152
|
*/
|
|
172
153
|
focus: (
|
|
173
|
-
|
|
174
|
-
|
|
154
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
155
|
+
) => Promise<void>;
|
|
175
156
|
/**
|
|
176
157
|
* Fire a blur event.
|
|
177
158
|
*/
|
|
178
159
|
blur: (
|
|
179
|
-
|
|
180
|
-
|
|
160
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
161
|
+
) => Promise<void>;
|
|
181
162
|
/**
|
|
182
163
|
* Fire a keydown event.
|
|
183
164
|
*/
|
|
184
165
|
keyDown: (
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
166
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
167
|
+
key: string,
|
|
168
|
+
options?: KeyboardEventInit,
|
|
169
|
+
) => Promise<void>;
|
|
189
170
|
/**
|
|
190
171
|
* Fire a keyup event.
|
|
191
172
|
*/
|
|
192
173
|
keyUp: (
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
174
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
175
|
+
key: string,
|
|
176
|
+
options?: KeyboardEventInit,
|
|
177
|
+
) => Promise<void>;
|
|
197
178
|
/**
|
|
198
179
|
* Fire a custom event.
|
|
199
180
|
*/
|
|
200
181
|
custom: (
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
182
|
+
target: HTMLElement | ElementWrapper | ComponentWrapper | null,
|
|
183
|
+
eventName: string,
|
|
184
|
+
options?: FireEventOptions,
|
|
185
|
+
) => Promise<void>
|
|
205
186
|
};
|
|
206
187
|
/**
|
|
207
188
|
* Create custom matchers for testing.
|
|
208
|
-
* @defaultValue
|
|
209
|
-
* ```ts
|
|
210
|
-
* {
|
|
211
|
-
* toContainText: (wrapper: ComponentWrapper | ElementWrapper, text: string) => boolean,
|
|
212
|
-
* toHaveClass: (wrapper: ComponentWrapper | ElementWrapper, className: string) => boolean,
|
|
213
|
-
* toHaveAttribute: ( wrapper: ComponentWrapper | ElementWrapper, name: string, value?: string, ) => boolean,
|
|
214
|
-
* toBeVisible: (wrapper: ComponentWrapper | ElementWrapper) => boolean,
|
|
215
|
-
* toExist: (wrapper: ComponentWrapper | ElementWrapper | null) => boolean,
|
|
216
|
-
* toHaveEmitted: (wrapper: ComponentWrapper, event: string, times?: number) => boolean,
|
|
217
|
-
* toHaveEmittedWith: (wrapper: ComponentWrapper, event: string, payload: unknown) => boolean
|
|
218
|
-
* }
|
|
219
|
-
* ```
|
|
220
189
|
*/
|
|
221
190
|
export declare const matchers: {
|
|
222
191
|
/**
|
|
@@ -231,10 +200,10 @@ export declare const matchers: {
|
|
|
231
200
|
* Check if wrapper has attribute.
|
|
232
201
|
*/
|
|
233
202
|
toHaveAttribute: (
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
203
|
+
wrapper: ComponentWrapper | ElementWrapper,
|
|
204
|
+
name: string,
|
|
205
|
+
value?: string,
|
|
206
|
+
) => boolean;
|
|
238
207
|
/**
|
|
239
208
|
* Check if wrapper is visible.
|
|
240
209
|
*/
|
package/dist/theme-tokens.d.ts
CHANGED
|
@@ -373,7 +373,10 @@ export declare const SHAPE_TOKENS: Record<string, { value: string, description:
|
|
|
373
373
|
* 'control-px': { value: '1rem', description: 'Inline padding of a md text control — px-4' },
|
|
374
374
|
* 'control-py': { value: '0.5rem', description: 'Block padding of a md text control — py-2' },
|
|
375
375
|
* 'control-text': { value: '1rem', description: 'Font size of a md text control — text-base' },
|
|
376
|
-
* 'control-leading': {
|
|
376
|
+
* 'control-leading': {
|
|
377
|
+
* value: '1.5rem',
|
|
378
|
+
* description: 'Line height of a md text control — text-base'
|
|
379
|
+
* },
|
|
377
380
|
* 'cell-px': {
|
|
378
381
|
* value: '1.5rem',
|
|
379
382
|
* description: 'Inline padding of every table cell, header or body — px-6'
|
|
@@ -517,3 +520,4 @@ declare type Palette = Record<string, unknown>;
|
|
|
517
520
|
* modes; a `{ light }` with no `dark` keeps the role's stock dark value.
|
|
518
521
|
*/
|
|
519
522
|
export type RoleColor = string | { light?: string, dark?: string }
|
|
523
|
+
export {};
|
package/dist/ts-css-config.d.ts
CHANGED
|
@@ -33,3 +33,4 @@ export declare interface MergedCssConfig {
|
|
|
33
33
|
declare type Dict = Record<string, any>;
|
|
34
34
|
/** The engine's generator, as far as rendering font rules needs it. */
|
|
35
35
|
declare type FontRenderer = new (config: any) => { toCSS: (includePreflight: boolean, minify: boolean) => string }
|
|
36
|
+
export {};
|
package/dist/type-checker.d.ts
CHANGED
|
@@ -77,9 +77,33 @@ export type PrimitiveType = | 'string'
|
|
|
77
77
|
* Template Type Checker class
|
|
78
78
|
*/
|
|
79
79
|
export declare class TemplateTypeChecker {
|
|
80
|
+
private options;
|
|
81
|
+
private variables;
|
|
82
|
+
private errors;
|
|
83
|
+
private warnings;
|
|
84
|
+
private currentFile;
|
|
80
85
|
constructor(options?: TypeCheckerOptions);
|
|
81
86
|
checkFile(filePath: string): TypeCheckResult;
|
|
82
87
|
checkTemplate(template: string, filePath?: string): TypeCheckResult;
|
|
88
|
+
private analyzeScript;
|
|
89
|
+
private extractTypedVariables;
|
|
90
|
+
private extractInterfaces;
|
|
91
|
+
private extractTypeAliases;
|
|
92
|
+
private parseTypeAnnotation;
|
|
93
|
+
private inferType;
|
|
94
|
+
private parseParams;
|
|
95
|
+
private checkExpressions;
|
|
96
|
+
private checkExpression;
|
|
97
|
+
private checkDirectives;
|
|
98
|
+
private resolvePropertyAccess;
|
|
99
|
+
private isLiteral;
|
|
100
|
+
private extractObjectLiteral;
|
|
101
|
+
private splitByComma;
|
|
102
|
+
private getLineNumber;
|
|
103
|
+
private getColumn;
|
|
104
|
+
private addError;
|
|
105
|
+
private addWarning;
|
|
106
|
+
private getResult;
|
|
83
107
|
addVariable(name: string, type: TypeDefinition): void;
|
|
84
108
|
reset(): void;
|
|
85
109
|
}
|
package/dist/typecheck.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { extractScriptBlocks } from './stx-virtual-ts';
|
|
2
|
-
import type { ScriptBlock, ScriptKind, VirtualFile } from './stx-virtual-ts';
|
|
3
|
-
export type { ScriptBlock, ScriptKind } from './stx-virtual-ts';
|
|
1
|
+
import { extractScriptBlocks } from './stx-virtual-ts.js';
|
|
2
|
+
import type { ScriptBlock, ScriptKind, VirtualFile } from './stx-virtual-ts.js';
|
|
3
|
+
export type { ScriptBlock, ScriptKind } from './stx-virtual-ts.js';
|
|
4
4
|
/**
|
|
5
5
|
* Build the virtual TypeScript source for one block.
|
|
6
6
|
*
|
|
@@ -83,4 +83,4 @@ export {
|
|
|
83
83
|
extractScriptBlocks,
|
|
84
84
|
extractTemplateExpressions,
|
|
85
85
|
type TemplateExpression,
|
|
86
|
-
} from './stx-virtual-ts';
|
|
86
|
+
} from './stx-virtual-ts.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { ColorModeBootConfig } from '../color-mode-boot';
|
|
2
|
-
import type { ComponentConfig, DocGeneratorConfig, WebComponentConfig } from './component-types';
|
|
3
|
-
import type { CspConfig } from './csp-types';
|
|
4
|
-
import type { CustomDirective, Middleware } from './directive-types';
|
|
5
|
-
import type { HeatmapConfig } from '../heatmap';
|
|
6
|
-
import type { MediaConfig } from '../media/types';
|
|
7
|
-
import type { PwaConfig } from './pwa-types';
|
|
8
|
-
import type { RouteRules } from '../route-rules';
|
|
9
|
-
import type { ServerApiOptions } from '../server-api';
|
|
1
|
+
import type { ColorModeBootConfig } from '../color-mode-boot.js';
|
|
2
|
+
import type { ComponentConfig, DocGeneratorConfig, WebComponentConfig } from './component-types.js';
|
|
3
|
+
import type { CspConfig } from './csp-types.js';
|
|
4
|
+
import type { CustomDirective, Middleware } from './directive-types.js';
|
|
5
|
+
import type { HeatmapConfig } from '../heatmap.js';
|
|
6
|
+
import type { MediaConfig } from '../media/types.js';
|
|
7
|
+
import type { PwaConfig } from './pwa-types.js';
|
|
8
|
+
import type { RouteRules } from '../route-rules.js';
|
|
9
|
+
import type { ServerApiOptions } from '../server-api.js';
|
|
10
10
|
/**
|
|
11
11
|
* Internationalization (i18n) configuration
|
|
12
12
|
*/
|
|
@@ -344,11 +344,11 @@ export declare interface StxConfig {
|
|
|
344
344
|
loops?: Partial<LoopConfig>
|
|
345
345
|
forms?: Partial<FormConfig>
|
|
346
346
|
csp?: Partial<CspConfig>
|
|
347
|
-
story?: Partial<import('../story/types').StoryConfig>
|
|
347
|
+
story?: Partial<import('../story/types.js').StoryConfig>
|
|
348
348
|
pwa?: Partial<PwaConfig>
|
|
349
|
-
offline?: import('../offline/app-service-worker').OfflineAppConfig
|
|
350
|
-
messages?: import('../message-catalogs').PageMessagesOptions
|
|
351
|
-
webModules?: import('../web-modules').WebModulesOption
|
|
349
|
+
offline?: import('../offline/app-service-worker.js').OfflineAppConfig
|
|
350
|
+
messages?: import('../message-catalogs.js').PageMessagesOptions
|
|
351
|
+
webModules?: import('../web-modules.js').WebModulesOption
|
|
352
352
|
components?: Partial<ComponentConfig>
|
|
353
353
|
routeMiddleware?: Partial<RouteMiddlewareConfig>
|
|
354
354
|
heatmap?: Partial<HeatmapConfig>
|
|
@@ -364,9 +364,9 @@ export declare interface StxConfig {
|
|
|
364
364
|
apiRoutes?: Record<string, (request: Request) => Response | Promise<Response>>
|
|
365
365
|
routeRules?: RouteRules
|
|
366
366
|
serverApi?: boolean | ServerApiOptions
|
|
367
|
-
runtimeConfig?: import('../runtime-config-server').RuntimeConfigDefaults
|
|
367
|
+
runtimeConfig?: import('../runtime-config-server.js').RuntimeConfigDefaults
|
|
368
368
|
extends?: string[]
|
|
369
|
-
_layerGraph?: import('../application-layers').ApplicationLayerGraph
|
|
369
|
+
_layerGraph?: import('../application-layers.js').ApplicationLayerGraph
|
|
370
370
|
_layerPageDirs?: string[]
|
|
371
371
|
_layerComponentDirs?: string[]
|
|
372
372
|
_layerLayoutDirs?: string[]
|
|
@@ -407,8 +407,8 @@ export declare interface BuildConfig {
|
|
|
407
407
|
domain?: string
|
|
408
408
|
sitemap: boolean
|
|
409
409
|
sitemapExclude?: (string | RegExp)[]
|
|
410
|
-
robots?: boolean | import('../ssg').RobotsConfig
|
|
411
|
-
rss?: boolean | import('../ssg').RSSConfig
|
|
410
|
+
robots?: boolean | import('../ssg.js').RobotsConfig
|
|
411
|
+
rss?: boolean | import('../ssg.js').RSSConfig
|
|
412
412
|
minify: boolean
|
|
413
413
|
cache: boolean
|
|
414
414
|
cacheDir: string
|
|
@@ -256,5 +256,6 @@ export type MiddlewareHandler = (
|
|
|
256
256
|
template: string,
|
|
257
257
|
context: Record<string, unknown>,
|
|
258
258
|
filePath: string,
|
|
259
|
-
options: import('./config-types').StxOptions
|
|
259
|
+
options: import('./config-types.js').StxOptions
|
|
260
260
|
) => string | Promise<string>;
|
|
261
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export type {
|
|
|
22
22
|
TemplateContext,
|
|
23
23
|
TranslationContext,
|
|
24
24
|
TypedContext,
|
|
25
|
-
} from './context-types';
|
|
25
|
+
} from './context-types.js';
|
|
26
26
|
// Directive types
|
|
27
27
|
export type {
|
|
28
28
|
A11yDirective,
|
|
@@ -47,7 +47,7 @@ export type {
|
|
|
47
47
|
StackDirective,
|
|
48
48
|
SwitchDirective,
|
|
49
49
|
UserCustomDirective,
|
|
50
|
-
} from './directive-types';
|
|
50
|
+
} from './directive-types.js';
|
|
51
51
|
// Component types
|
|
52
52
|
export type {
|
|
53
53
|
ComponentLibraryBuildResult,
|
|
@@ -68,7 +68,7 @@ export type {
|
|
|
68
68
|
TemplateDoc,
|
|
69
69
|
WebComponent,
|
|
70
70
|
WebComponentConfig,
|
|
71
|
-
} from './component-types';
|
|
71
|
+
} from './component-types.js';
|
|
72
72
|
// Config types
|
|
73
73
|
export type {
|
|
74
74
|
A11yConfig,
|
|
@@ -93,7 +93,7 @@ export type {
|
|
|
93
93
|
SyntaxHighlightingConfig,
|
|
94
94
|
SyntaxHighlightTheme,
|
|
95
95
|
TwitterConfig,
|
|
96
|
-
} from './config-types';
|
|
96
|
+
} from './config-types.js';
|
|
97
97
|
// PWA types
|
|
98
98
|
export type {
|
|
99
99
|
PwaBackgroundSyncConfig,
|
|
@@ -113,12 +113,12 @@ export type {
|
|
|
113
113
|
PwaShareTargetConfig,
|
|
114
114
|
PwaShortcut,
|
|
115
115
|
PwaUpdateConfig,
|
|
116
|
-
} from './pwa-types';
|
|
116
|
+
} from './pwa-types.js';
|
|
117
117
|
// CSP types
|
|
118
118
|
export type {
|
|
119
119
|
CspConfig,
|
|
120
120
|
CspDirectives,
|
|
121
121
|
CspPreset,
|
|
122
122
|
CspSourceValue,
|
|
123
|
-
} from './csp-types';
|
|
124
|
-
export { isDirectiveKind } from './directive-types';
|
|
123
|
+
} from './csp-types.js';
|
|
124
|
+
export { isDirectiveKind } from './directive-types.js';
|
package/dist/types.d.ts
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { StxOptions } from './types';
|
|
1
|
+
import type { StxOptions } from './types.js';
|
|
2
2
|
export type {
|
|
3
3
|
TemplateValidationError,
|
|
4
4
|
TemplateValidationResult,
|
|
5
|
-
} from './validator';
|
|
5
|
+
} from './validator.js';
|
|
6
6
|
/**
|
|
7
7
|
* The scope-id suffix for a render of `file`, the same in every copy of the
|
|
8
8
|
* project. Scope ids are written into a page's client scripts, and those
|
|
@@ -58,7 +58,7 @@ export declare function isHydrateTrigger(trigger: string): boolean;
|
|
|
58
58
|
*/
|
|
59
59
|
export declare function slotContentHasExpressions(slotContent: string): boolean;
|
|
60
60
|
export declare function componentClientSignalNames(scripts: string[]): string[];
|
|
61
|
-
export declare function renderComponentWithSlot(componentPath: string, props: Record<string, unknown>, slotContent: string, componentsDir: string, parentContext: Record<string, unknown>, parentFilePath: string, options: StxOptions, processedComponents
|
|
61
|
+
export declare function renderComponentWithSlot(componentPath: string, props: Record<string, unknown>, slotContent: string, componentsDir: string, parentContext: Record<string, unknown>, parentFilePath: string, options: StxOptions, processedComponents: (Set<string> | undefined) | undefined, dependencies: Set<string>, clientLoopNames?: readonly string[], renderMetadata?: { declaredProps: Set<string>, consumedProps?: Set<string>, reactiveProps?: string[], events?: string[] }, lookupName?: string): Promise<string>;
|
|
62
62
|
/**
|
|
63
63
|
* Check if a file exists
|
|
64
64
|
*/
|
|
@@ -104,10 +104,10 @@ export {
|
|
|
104
104
|
hasDirectives,
|
|
105
105
|
validateDirective,
|
|
106
106
|
validateTemplate,
|
|
107
|
-
} from './validator';
|
|
107
|
+
} from './validator.js';
|
|
108
108
|
export {
|
|
109
109
|
convertToCommonJS,
|
|
110
110
|
extractScriptFromTemplate,
|
|
111
111
|
extractVariables,
|
|
112
112
|
hasVariables,
|
|
113
|
-
} from './variable-extractor';
|
|
113
|
+
} from './variable-extractor.js';
|
package/dist/visual-editor.d.ts
CHANGED
|
@@ -26,10 +26,6 @@ export declare function getDefaultPalette(): PaletteItem[];
|
|
|
26
26
|
* Generate insert result for a palette item.
|
|
27
27
|
*/
|
|
28
28
|
export declare function insertPaletteItem(item: PaletteItem, position: EditorPosition, indentation?: string): InsertResult;
|
|
29
|
-
// =============================================================================
|
|
30
|
-
// Helper Functions
|
|
31
|
-
// =============================================================================
|
|
32
|
-
declare function hasEndTag(directiveName: string): boolean;
|
|
33
29
|
/** Template outline node */
|
|
34
30
|
export declare interface OutlineNode {
|
|
35
31
|
type: OutlineNodeType
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type { CssScopingOptions } from './css-scoping';
|
|
1
|
+
export type { CssScopingOptions } from './css-scoping.js';
|
|
2
2
|
export type {
|
|
3
3
|
ComputedProperty,
|
|
4
4
|
ReactiveComponentOptions,
|
|
5
5
|
ReactiveProperty,
|
|
6
6
|
WatchDefinition,
|
|
7
|
-
} from './reactive-generator';
|
|
7
|
+
} from './reactive-generator.js';
|
|
8
8
|
/**
|
|
9
9
|
* Web Components Module
|
|
10
10
|
*
|
|
@@ -20,10 +20,10 @@ export {
|
|
|
20
20
|
generateShadowDomCss,
|
|
21
21
|
injectScopedCss,
|
|
22
22
|
scopeCss,
|
|
23
|
-
} from './css-scoping';
|
|
23
|
+
} from './css-scoping.js';
|
|
24
24
|
export {
|
|
25
25
|
generateReactiveComponentJS,
|
|
26
26
|
generateReactiveComponentTS,
|
|
27
27
|
generateReactiveMixin,
|
|
28
28
|
generateReactiveRuntime,
|
|
29
|
-
} from './reactive-generator';
|
|
29
|
+
} from './reactive-generator.js';
|
package/dist/web-components.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.853",
|
|
5
5
|
"description": "A performant UI Framework. Powered by Bun.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -126,16 +126,20 @@
|
|
|
126
126
|
"typecheck": "bun tsc -p tsconfig.src.json --noEmit"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
|
+
"@stacksjs/clapp": "^0.2.17",
|
|
130
|
+
"@stacksjs/desktop": "0.2.853",
|
|
131
|
+
"@stacksjs/sanitizer": "0.2.853",
|
|
129
132
|
"@stacksjs/ts-css": "^0.3.21",
|
|
130
|
-
"@stacksjs/clapp": "^0.2.16",
|
|
131
|
-
"@stacksjs/desktop": "0.2.851",
|
|
132
|
-
"@stacksjs/sanitizer": "0.2.851",
|
|
133
133
|
"@stacksjs/ts-i18n": "^0.1.11",
|
|
134
|
-
"
|
|
134
|
+
"@types/dom-speech-recognition": "^0.0.12",
|
|
135
|
+
"bun-plugin-stx": "0.2.853",
|
|
135
136
|
"bunfig": "^0.15.21",
|
|
136
|
-
"stx-router": "0.2.
|
|
137
|
-
"ts-broadcasting": "^0.0.
|
|
137
|
+
"stx-router": "0.2.853",
|
|
138
|
+
"ts-broadcasting": "^0.0.13",
|
|
138
139
|
"ts-images": "^0.2.22",
|
|
139
140
|
"ts-syntax-highlighter": "^0.2.1"
|
|
141
|
+
},
|
|
142
|
+
"devDependencies": {
|
|
143
|
+
"@dtsx/bun": "^0.11.48"
|
|
140
144
|
}
|
|
141
145
|
}
|
package/stx.d.ts
CHANGED
|
@@ -422,11 +422,12 @@ declare function useFocus(_target: HTMLElement | StxRef<HTMLElement | null> | st
|
|
|
422
422
|
// ============================================================================
|
|
423
423
|
|
|
424
424
|
declare function useDebounce<T extends (..._args: any[]) => any>(_fn: T, _delay: number): T
|
|
425
|
-
|
|
425
|
+
// Runtime aliases are properties of the browser global, including in typeof globalThis.
|
|
426
|
+
declare var useDebounceFn: typeof useDebounce
|
|
426
427
|
declare function useDebouncedValue<T>(_value: StxSignal<T>, _delay: number): StxSignal<T>
|
|
427
|
-
declare
|
|
428
|
+
declare var refDebounced: typeof useDebouncedValue
|
|
428
429
|
declare function useThrottle<T extends (..._args: any[]) => any>(_fn: T, _delay: number): T
|
|
429
|
-
declare
|
|
430
|
+
declare var useThrottleFn: typeof useThrottle
|
|
430
431
|
interface StxIntervalOptions {
|
|
431
432
|
/** Tick once on start/resume instead of waiting out the first interval. */
|
|
432
433
|
immediate?: boolean
|
|
@@ -468,8 +469,8 @@ declare function useTimeout(_fn: () => void, _ms?: number): {
|
|
|
468
469
|
stop: () => void
|
|
469
470
|
subscribe: (_fn: (_pending: boolean) => void) => () => void
|
|
470
471
|
}
|
|
471
|
-
declare
|
|
472
|
-
declare
|
|
472
|
+
declare var useTimeoutFn: typeof useTimeout
|
|
473
|
+
declare var useBroadcastStream: typeof import('@stacksjs/stx').useBroadcastStream
|
|
473
474
|
declare function nextTick(_fn?: () => void): Promise<void>
|
|
474
475
|
|
|
475
476
|
// ============================================================================
|
package/dist/chunk-036pnz1y.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hs,zf,Uo,Hf}from"./chunk-j5pgwqwp.js";import"./chunk-m710wkr4.js";import"./chunk-6dqafrq5.js";import"./chunk-dy31f39m.js";import"./chunk-833y1ndd.js";import"./chunk-eyp7rr70.js";import"./chunk-q5rw0d2m.js";import"./chunk-jtccqpwa.js";import"./chunk-2rg9pqmh.js";import"./chunk-0rszcb0m.js";import"./chunk-8cvgm13s.js";import{Nt}from"./chunk-p4ytnee6.js";import"./chunk-ezzskm4a.js";import"./chunk-v4bqmzj9.js";import"./chunk-k47addf7.js";import"./chunk-xppm4cs4.js";import"./chunk-agbkv9ab.js";export{Hf as declareBareLoopHead,Nt as parseLoopBinding,zf as processLoops,Uo as processLoopsAsync,hs as reportDeferredLoopWarnings};
|
package/dist/chunk-0dve54ne.js
DELETED