@stacksjs/stx 0.2.852 → 0.2.853
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-6tns3zet.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-kp2g6sj6.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-fkrf2099.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-42hj9jnj.js → chunk-7rtvravz.js} +7 -7
- package/dist/{chunk-hh9hnx1a.js → chunk-7wwq1btb.js} +1 -1
- package/dist/{chunk-pbq1gn94.js → chunk-83d468me.js} +4 -4
- package/dist/{chunk-r53tqxmq.js → chunk-8cg88x7m.js} +39 -39
- package/dist/chunk-8fprfzcn.js +2 -0
- package/dist/{chunk-tn9h4prj.js → chunk-8g0243g1.js} +3 -3
- package/dist/chunk-9h1w4py6.js +2 -0
- package/dist/{chunk-tt3jxdy5.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-818kkhb8.js → chunk-a0ahcd1g.js} +2 -2
- package/dist/chunk-aajezypd.js +2 -0
- package/dist/{chunk-714p8awg.js → chunk-agvm20mz.js} +3 -3
- package/dist/{chunk-3bp76dx5.js → chunk-baxrx1rz.js} +9 -9
- package/dist/{chunk-xndr2dx9.js → chunk-bkefg64w.js} +5 -5
- package/dist/{chunk-n2z4kyba.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-c1dkvqr5.js → chunk-c54bhqrg.js} +39 -39
- package/dist/{chunk-keeetray.js → chunk-c9k0yhyq.js} +2 -2
- package/dist/{chunk-g34tj6ny.js → chunk-cabdpgxg.js} +3 -3
- package/dist/{chunk-e0dgx3ev.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-1pavg6q5.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-d5m6xy9p.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-7x6aqvfe.js → chunk-m9n3ahsy.js} +2 -2
- package/dist/{chunk-1sedjgmj.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-2stgv8kd.js → chunk-n8qd1n8w.js} +3 -3
- package/dist/{chunk-agbkv9ab.js → chunk-ngnvyqk3.js} +2 -2
- package/dist/{chunk-9gzgfj19.js → chunk-nyqvtca1.js} +4 -4
- package/dist/{chunk-te090fxv.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-tgk6bst6.js → chunk-rmeey2xa.js} +4 -4
- package/dist/{chunk-0kaph5qq.js → chunk-rrppkyv0.js} +42 -42
- package/dist/{chunk-whdy7r35.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-w7dks1ev.js → chunk-trxha300.js} +5 -5
- package/dist/{chunk-tbms7m44.js → chunk-txdxfjbj.js} +3 -3
- package/dist/{chunk-m150nmez.js → chunk-vpqgg04q.js} +1 -1
- package/dist/{chunk-02w7kaas.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-sb8vn22f.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-gn6yqcz2.js → chunk-xzdjhjz4.js} +4 -4
- package/dist/{chunk-kd06c90f.js → chunk-ya6f7mt5.js} +4 -4
- package/dist/{chunk-0b7knfwk.js → chunk-zjfp64v7.js} +1 -1
- package/dist/{chunk-cm5kpn54.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 +1 -1
- 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/compact-document.d.ts +3 -5
- package/dist/native/runtime/craft-bridge.d.ts +4 -3
- package/dist/native/runtime/craft.d.ts +1 -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-0dve54ne.js +0 -3
- package/dist/chunk-0g05v7m1.js +0 -2
- package/dist/chunk-14vv64pw.js +0 -2
- package/dist/chunk-1mqyt33c.js +0 -2
- package/dist/chunk-1qdhwjs4.js +0 -2
- package/dist/chunk-332qk8tm.js +0 -3
- package/dist/chunk-3gyq9rjx.js +0 -2
- package/dist/chunk-3w9xhs7k.js +0 -2
- package/dist/chunk-47z5w330.js +0 -2
- package/dist/chunk-4e5wynb4.js +0 -2
- package/dist/chunk-4e6wkjtx.js +0 -2
- package/dist/chunk-4hfh5ety.js +0 -2
- package/dist/chunk-67bn31a3.js +0 -2
- package/dist/chunk-6amqskpv.js +0 -2
- package/dist/chunk-6ra9dqs2.js +0 -2
- package/dist/chunk-7hnt9a2e.js +0 -2
- package/dist/chunk-80bb89fh.js +0 -2
- package/dist/chunk-8f5dy08a.js +0 -2
- package/dist/chunk-8k6cd1e0.js +0 -2
- package/dist/chunk-a69v31q8.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-dqrkteav.js +0 -2
- package/dist/chunk-dx31vsyf.js +0 -2
- package/dist/chunk-epqp6mmn.js +0 -2
- package/dist/chunk-et9fyzf6.js +0 -2
- package/dist/chunk-f4x21pqx.js +0 -2
- package/dist/chunk-fhd8e4mq.js +0 -2
- package/dist/chunk-frhh6jd3.js +0 -2
- package/dist/chunk-ft43rx62.js +0 -2
- package/dist/chunk-g1gqysb4.js +0 -2
- package/dist/chunk-h7rcb74n.js +0 -2
- package/dist/chunk-j3x3e353.js +0 -2
- package/dist/chunk-j415w6dm.js +0 -2
- package/dist/chunk-ja5ghh0f.js +0 -2
- package/dist/chunk-jmjz23rf.js +0 -2
- package/dist/chunk-k1pyzf9e.js +0 -2
- package/dist/chunk-m276y4f3.js +0 -2
- package/dist/chunk-p9sbpbhg.js +0 -2
- package/dist/chunk-pd0wdjqd.js +0 -2
- package/dist/chunk-ptppavv8.js +0 -2
- package/dist/chunk-q2d8x7p1.js +0 -2
- package/dist/chunk-s922rk4n.js +0 -2
- package/dist/chunk-tdtwqydq.js +0 -2
- package/dist/chunk-v4kqxe8a.js +0 -2
- package/dist/chunk-vffwkmt4.js +0 -2
- package/dist/chunk-vqr3hn16.js +0 -2
- package/dist/chunk-x1c1aggq.js +0 -2
- package/dist/chunk-xkvzg640.js +0 -2
- package/dist/chunk-xt7qsgk4.js +0 -2
- package/dist/chunk-ydjy26ch.js +0 -2
- package/dist/chunk-yq12dhnt.js +0 -2
- package/dist/chunk-yx37mvy7.js +0 -2
- package/dist/chunk-z278w3cb.js +0 -2
- package/dist/chunk-z5z6442j.js +0 -2
- package/dist/chunk-znfzh6fm.js +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ImageCrop, ImageFit, ImageFormat, ImageParams } from '../types';
|
|
1
|
+
import type { ImageCrop, ImageFit, ImageFormat, ImageParams } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Build an image URL with transformation parameters
|
|
4
4
|
*
|
|
@@ -169,44 +169,44 @@ export declare function sanitizeParams(params: ImageParams): ImageParams;
|
|
|
169
169
|
*/
|
|
170
170
|
export declare const PRESETS: {
|
|
171
171
|
/** Optimized for web display */
|
|
172
|
-
web: {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
};
|
|
172
|
+
readonly web: {
|
|
173
|
+
readonly fm: unknown;
|
|
174
|
+
readonly q: 80;
|
|
175
|
+
readonly auto: readonly ['format', 'compress']
|
|
176
|
+
};
|
|
177
177
|
/** High quality for print/download */
|
|
178
|
-
highQuality: {
|
|
179
|
-
|
|
180
|
-
};
|
|
178
|
+
readonly highQuality: {
|
|
179
|
+
readonly q: 95
|
|
180
|
+
};
|
|
181
181
|
/** Optimized for thumbnails */
|
|
182
|
-
thumb: {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
};
|
|
182
|
+
readonly thumb: {
|
|
183
|
+
readonly w: 150;
|
|
184
|
+
readonly h: 150;
|
|
185
|
+
readonly fit: unknown;
|
|
186
|
+
readonly crop: unknown
|
|
187
|
+
};
|
|
188
188
|
/** Avatar image */
|
|
189
|
-
avatar: {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
};
|
|
189
|
+
readonly avatar: {
|
|
190
|
+
readonly w: 200;
|
|
191
|
+
readonly h: 200;
|
|
192
|
+
readonly fit: unknown;
|
|
193
|
+
readonly crop: unknown
|
|
194
|
+
};
|
|
195
195
|
/** Social media share image */
|
|
196
|
-
social: {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
};
|
|
196
|
+
readonly social: {
|
|
197
|
+
readonly w: 1200;
|
|
198
|
+
readonly h: 630;
|
|
199
|
+
readonly fit: unknown
|
|
200
|
+
};
|
|
201
201
|
/** Small preview */
|
|
202
|
-
preview: {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
};
|
|
202
|
+
readonly preview: {
|
|
203
|
+
readonly w: 400;
|
|
204
|
+
readonly q: 70
|
|
205
|
+
};
|
|
206
206
|
/** Blur placeholder */
|
|
207
|
-
placeholder: {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
}
|
|
207
|
+
readonly placeholder: {
|
|
208
|
+
readonly w: 20;
|
|
209
|
+
readonly blur: 200;
|
|
210
|
+
readonly q: 20
|
|
211
|
+
}
|
|
212
212
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Export types separately
|
|
2
|
-
export type { ExtendedImageRenderContext } from './component';
|
|
2
|
+
export type { ExtendedImageRenderContext } from './component.js';
|
|
3
3
|
/**
|
|
4
4
|
* STX Media - Image Module
|
|
5
5
|
*
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
// Template parser
|
|
18
18
|
parseImgComponent,
|
|
19
19
|
processImgComponents,
|
|
20
|
-
} from './component';
|
|
20
|
+
} from './component.js';
|
|
21
21
|
// =============================================================================
|
|
22
22
|
// Directive Exports
|
|
23
23
|
// =============================================================================
|
|
@@ -26,7 +26,7 @@ export {
|
|
|
26
26
|
createImgDirective,
|
|
27
27
|
// Directive instance
|
|
28
28
|
imgDirective,
|
|
29
|
-
} from './directive';
|
|
29
|
+
} from './directive.js';
|
|
30
30
|
// =============================================================================
|
|
31
31
|
// Srcset Exports
|
|
32
32
|
// =============================================================================
|
|
@@ -67,7 +67,7 @@ export {
|
|
|
67
67
|
getMimeType,
|
|
68
68
|
getFormatExtension,
|
|
69
69
|
detectFormat,
|
|
70
|
-
} from './srcset';
|
|
70
|
+
} from './srcset.js';
|
|
71
71
|
// =============================================================================
|
|
72
72
|
// Placeholder Exports
|
|
73
73
|
// =============================================================================
|
|
@@ -94,7 +94,7 @@ export {
|
|
|
94
94
|
getCachedPlaceholder,
|
|
95
95
|
clearPlaceholderCache,
|
|
96
96
|
getPlaceholderCacheStats,
|
|
97
|
-
} from './placeholder';
|
|
97
|
+
} from './placeholder.js';
|
|
98
98
|
// =============================================================================
|
|
99
99
|
// Editing API Exports
|
|
100
100
|
// =============================================================================
|
|
@@ -139,4 +139,4 @@ export {
|
|
|
139
139
|
// Validation
|
|
140
140
|
validateParams,
|
|
141
141
|
sanitizeParams,
|
|
142
|
-
} from './editing';
|
|
142
|
+
} from './editing.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CacheConfig } from '../../shared/cache';
|
|
2
|
-
import type { EnhancedImgProps, ProcessedImageResult, TsImagesConfig } from '../../types';
|
|
1
|
+
import { type CacheConfig } from '../../shared/cache.js';
|
|
2
|
+
import type { EnhancedImgProps, ProcessedImageResult, TsImagesConfig } from '../../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get cached image processing result
|
|
5
5
|
*/
|
|
@@ -23,6 +23,7 @@ export declare interface ImageCacheConfig extends CacheConfig {
|
|
|
23
23
|
* Image processor cache class
|
|
24
24
|
*/
|
|
25
25
|
export declare class ImageProcessorCache {
|
|
26
|
+
private config;
|
|
26
27
|
constructor(config?: Partial<ImageCacheConfig>);
|
|
27
28
|
get(src: string, options: Partial<EnhancedImgProps>): Promise<ProcessedImageResult | null>;
|
|
28
29
|
set(src: string, options: Partial<EnhancedImgProps>, result: ProcessedImageResult): Promise<void>;
|
|
@@ -7,7 +7,7 @@ export type {
|
|
|
7
7
|
ImageOptimizationPreset,
|
|
8
8
|
ImageTransformationConfig,
|
|
9
9
|
FormatQualitySettings,
|
|
10
|
-
} from '../../types';
|
|
10
|
+
} from '../../types.js';
|
|
11
11
|
/**
|
|
12
12
|
* STX Media - Image Processor
|
|
13
13
|
*
|
|
@@ -15,6 +15,6 @@ export type {
|
|
|
15
15
|
*
|
|
16
16
|
* @module media/image/processor
|
|
17
17
|
*/
|
|
18
|
-
export { processImage, optimizeImage, applyTransformations } from './optimizer';
|
|
19
|
-
export { generateResponsiveVariants, generateSrcset } from './responsive';
|
|
20
|
-
export { getCachedImageResult, setCachedImageResult, clearImageCache, ImageProcessorCache } from './cache';
|
|
18
|
+
export { processImage, optimizeImage, applyTransformations } from './optimizer.js';
|
|
19
|
+
export { generateResponsiveVariants, generateSrcset } from './responsive.js';
|
|
20
|
+
export { getCachedImageResult, setCachedImageResult, clearImageCache, ImageProcessorCache } from './cache.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnhancedImgProps, ProcessedImageResult, TsImagesConfig, ImageFormat, ImageTransformationConfig } from '../../types';
|
|
1
|
+
import type { EnhancedImgProps, ProcessedImageResult, TsImagesConfig, ImageFormat, ImageTransformationConfig } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Process a single image with ts-images
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EnhancedImgProps, ResponsiveVariantSet, TsImagesConfig, ProcessedImageResult } from '../../types';
|
|
1
|
+
import type { EnhancedImgProps, ResponsiveVariantSet, TsImagesConfig, ProcessedImageResult } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Generate responsive image variants using ts-images
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Breakpoint, ImageFormat, ImageParams, ImageVariant, SrcsetData, SrcsetOptions } from '../types';
|
|
1
|
+
import type { Breakpoint, ImageFormat, ImageParams, ImageVariant, SrcsetData, SrcsetOptions } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Generate a width-based srcset string
|
|
4
4
|
*
|
|
@@ -147,13 +147,13 @@ export declare const FORMAT_EXTENSIONS: Record<ImageFormat, string>;
|
|
|
147
147
|
*/
|
|
148
148
|
export declare const COMMON_SIZES: {
|
|
149
149
|
/** Full width on all screens */
|
|
150
|
-
fullWidth: '100vw';
|
|
150
|
+
readonly fullWidth: '100vw';
|
|
151
151
|
/** Half width on desktop, full on mobile */
|
|
152
|
-
halfDesktop: '(max-width: 768px) 100vw, 50vw';
|
|
152
|
+
readonly halfDesktop: '(max-width: 768px) 100vw, 50vw';
|
|
153
153
|
/** Third width on desktop, full on mobile */
|
|
154
|
-
thirdDesktop: '(max-width: 768px) 100vw, 33.33vw';
|
|
154
|
+
readonly thirdDesktop: '(max-width: 768px) 100vw, 33.33vw';
|
|
155
155
|
/** Quarter width on desktop, half on tablet, full on mobile */
|
|
156
|
-
quarterDesktop: '(max-width: 480px) 100vw, (max-width: 768px) 50vw, 25vw';
|
|
156
|
+
readonly quarterDesktop: '(max-width: 480px) 100vw, (max-width: 768px) 50vw, 25vw';
|
|
157
157
|
/** Content width (centered with max-width) */
|
|
158
|
-
contentWidth: '(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 960px'
|
|
158
|
+
readonly contentWidth: '(max-width: 768px) 100vw, (max-width: 1200px) 80vw, 960px'
|
|
159
159
|
};
|
package/dist/media/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { MediaConfig } from './types';
|
|
1
|
+
import type { MediaConfig } from './types.js';
|
|
2
2
|
/*"
|
|
3
3
|
* preview
|
|
4
4
|
* />
|
|
@@ -103,10 +103,10 @@ export type {
|
|
|
103
103
|
Breakpoint,
|
|
104
104
|
SrcsetOptions,
|
|
105
105
|
SrcsetData,
|
|
106
|
-
} from './types';
|
|
106
|
+
} from './types.js';
|
|
107
107
|
// Export types separately
|
|
108
|
-
export type { ExtendedVideoRenderContext } from './video/index';
|
|
109
|
-
export type { CacheConfig, CacheEntry } from './shared/index';
|
|
108
|
+
export type { ExtendedVideoRenderContext } from './video/index.js';
|
|
109
|
+
export type { CacheConfig, CacheEntry } from './shared/index.js';
|
|
110
110
|
/**
|
|
111
111
|
* Default media configuration
|
|
112
112
|
*/
|
|
@@ -193,7 +193,7 @@ export {
|
|
|
193
193
|
dprUrls,
|
|
194
194
|
validateParams,
|
|
195
195
|
sanitizeParams,
|
|
196
|
-
} from './image/index';
|
|
196
|
+
} from './image/index.js';
|
|
197
197
|
// =============================================================================
|
|
198
198
|
// Image Processor Module (ts-images integration)
|
|
199
199
|
// =============================================================================
|
|
@@ -207,7 +207,7 @@ export {
|
|
|
207
207
|
setCachedImageResult,
|
|
208
208
|
clearImageCache,
|
|
209
209
|
ImageProcessorCache,
|
|
210
|
-
} from './image/processor/index';
|
|
210
|
+
} from './image/processor/index.js';
|
|
211
211
|
// =============================================================================
|
|
212
212
|
// Video Module
|
|
213
213
|
// =============================================================================
|
|
@@ -217,7 +217,7 @@ export {
|
|
|
217
217
|
// Directive
|
|
218
218
|
createVideoDirective,
|
|
219
219
|
videoDirective,
|
|
220
|
-
} from './video/index';
|
|
220
|
+
} from './video/index.js';
|
|
221
221
|
// =============================================================================
|
|
222
222
|
// Video Processor Module (ts-videos integration)
|
|
223
223
|
// =============================================================================
|
|
@@ -233,11 +233,11 @@ export {
|
|
|
233
233
|
setCachedVideoResult,
|
|
234
234
|
clearVideoCache,
|
|
235
235
|
VideoProcessorCache,
|
|
236
|
-
} from './video/processor/index';
|
|
236
|
+
} from './video/processor/index.js';
|
|
237
237
|
// =============================================================================
|
|
238
238
|
// Upload Module
|
|
239
239
|
// =============================================================================
|
|
240
|
-
export { renderMediaUpload } from './upload/index';
|
|
240
|
+
export { renderMediaUpload } from './upload/index.js';
|
|
241
241
|
// =============================================================================
|
|
242
242
|
// Protected Media Module
|
|
243
243
|
// =============================================================================
|
|
@@ -269,11 +269,11 @@ export {
|
|
|
269
269
|
|
|
270
270
|
// Runtime
|
|
271
271
|
generateSignatureRuntime,
|
|
272
|
-
} from './protected/index';
|
|
272
|
+
} from './protected/index.js';
|
|
273
273
|
// =============================================================================
|
|
274
274
|
// Media Manager Module
|
|
275
275
|
// =============================================================================
|
|
276
|
-
export { generateMediaManagerEmbed, generateSimpleMediaPicker } from './manager/embed';
|
|
276
|
+
export { generateMediaManagerEmbed, generateSimpleMediaPicker } from './manager/embed.js';
|
|
277
277
|
// =============================================================================
|
|
278
278
|
// Client Runtime Module
|
|
279
279
|
// =============================================================================
|
|
@@ -312,7 +312,7 @@ export {
|
|
|
312
312
|
// Combined runtime
|
|
313
313
|
generateMediaRuntime,
|
|
314
314
|
generateMinifiedMediaRuntime,
|
|
315
|
-
} from './client/index';
|
|
315
|
+
} from './client/index.js';
|
|
316
316
|
// =============================================================================
|
|
317
317
|
// Shared Utilities
|
|
318
318
|
// =============================================================================
|
|
@@ -328,4 +328,4 @@ export {
|
|
|
328
328
|
clearCache,
|
|
329
329
|
getCacheStats,
|
|
330
330
|
pruneCache,
|
|
331
|
-
} from './shared/index';
|
|
331
|
+
} from './shared/index.js';
|
|
@@ -30,7 +30,7 @@ export {
|
|
|
30
30
|
|
|
31
31
|
// Runtime
|
|
32
32
|
generateSignatureRuntime,
|
|
33
|
-
} from './signature';
|
|
33
|
+
} from './signature.js';
|
|
34
34
|
// =============================================================================
|
|
35
35
|
// Component Exports
|
|
36
36
|
// =============================================================================
|
|
@@ -44,4 +44,4 @@ export {
|
|
|
44
44
|
|
|
45
45
|
// Directive helpers
|
|
46
46
|
parseProtectedArgs,
|
|
47
|
-
} from './component';
|
|
47
|
+
} from './component.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { CustomDirective } from '../../types';
|
|
1
|
+
import type { CustomDirective } from '../../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Create the @video directive
|
|
4
4
|
*/
|
|
@@ -6,4 +6,4 @@ export declare function createVideoDirective(): CustomDirective;
|
|
|
6
6
|
/**
|
|
7
7
|
* The @video directive instance
|
|
8
8
|
*/
|
|
9
|
-
export declare const videoDirective:
|
|
9
|
+
export declare const videoDirective: (typeof createVideoDirective) extends (...args: never[]) => infer __dtsx_call_result ? __dtsx_call_result : never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VideoProps, VideoRenderResult, EnhancedVideoProps, TsVideosConfig, ProcessedVideoResult } from '../types';
|
|
1
|
+
import type { VideoProps, VideoRenderResult, EnhancedVideoProps, TsVideosConfig, ProcessedVideoResult } from '../types.js';
|
|
2
2
|
/**
|
|
3
3
|
* Render a video component
|
|
4
4
|
*
|
|
@@ -51,4 +51,4 @@ export declare interface ExtendedVideoRenderContext {
|
|
|
51
51
|
// =============================================================================
|
|
52
52
|
// Directive Exports
|
|
53
53
|
// =============================================================================
|
|
54
|
-
export { createVideoDirective, videoDirective } from './directive';
|
|
54
|
+
export { createVideoDirective, videoDirective } from './directive.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type CacheConfig } from '../../shared/cache';
|
|
2
|
-
import type { EnhancedVideoProps, ProcessedVideoResult, TsVideosConfig } from '../../types';
|
|
1
|
+
import { type CacheConfig } from '../../shared/cache.js';
|
|
2
|
+
import type { EnhancedVideoProps, ProcessedVideoResult, TsVideosConfig } from '../../types.js';
|
|
3
3
|
/**
|
|
4
4
|
* Get cached video processing result
|
|
5
5
|
*/
|
|
@@ -24,6 +24,7 @@ export declare interface VideoCacheConfig extends CacheConfig {
|
|
|
24
24
|
* Video processor cache class
|
|
25
25
|
*/
|
|
26
26
|
export declare class VideoProcessorCache {
|
|
27
|
+
private config;
|
|
27
28
|
constructor(config?: Partial<VideoCacheConfig>);
|
|
28
29
|
get(src: string, options: Partial<EnhancedVideoProps>): Promise<ProcessedVideoResult | null>;
|
|
29
30
|
set(src: string, options: Partial<EnhancedVideoProps>, result: ProcessedVideoResult): Promise<void>;
|
|
@@ -15,7 +15,7 @@ export type {
|
|
|
15
15
|
PosterGenerationConfig,
|
|
16
16
|
SpriteSheetConfig,
|
|
17
17
|
WaveformConfig,
|
|
18
|
-
} from '../../types';
|
|
18
|
+
} from '../../types.js';
|
|
19
19
|
/**
|
|
20
20
|
* STX Media - Video Processor
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ export type {
|
|
|
23
23
|
*
|
|
24
24
|
* @module media/video/processor
|
|
25
25
|
*/
|
|
26
|
-
export { processVideo, analyzeVideo } from './transcoder';
|
|
27
|
-
export { generatePoster, generateThumbnails, generateSpriteSheet } from './thumbnail';
|
|
28
|
-
export { generateHLSManifest, generateDASHManifest } from './streaming';
|
|
29
|
-
export { getCachedVideoResult, setCachedVideoResult, clearVideoCache, VideoProcessorCache } from './cache';
|
|
26
|
+
export { processVideo, analyzeVideo } from './transcoder.js';
|
|
27
|
+
export { generatePoster, generateThumbnails, generateSpriteSheet } from './thumbnail.js';
|
|
28
|
+
export { generateHLSManifest, generateDASHManifest } from './streaming.js';
|
|
29
|
+
export { getCachedVideoResult, setCachedVideoResult, clearVideoCache, VideoProcessorCache } from './cache.js';
|
package/dist/meta-arguments.d.ts
CHANGED
package/dist/middleware.d.ts
CHANGED
|
@@ -20,14 +20,6 @@ export declare function registerHandler(name: string, handler: (...args: unknown
|
|
|
20
20
|
export declare function callHandler(name: string, ...args: unknown[]): unknown;
|
|
21
21
|
/**
|
|
22
22
|
* Platform-specific native bridge implementations
|
|
23
|
-
* @defaultValue
|
|
24
|
-
* ```ts
|
|
25
|
-
* {
|
|
26
|
-
* ios: () => NativeBridgeInterface | null,
|
|
27
|
-
* android: () => NativeBridgeInterface | null,
|
|
28
|
-
* web: () => NativeBridgeInterface | null
|
|
29
|
-
* }
|
|
30
|
-
* ```
|
|
31
23
|
*/
|
|
32
24
|
export declare const NativeBridges: {
|
|
33
25
|
/**
|
|
@@ -58,7 +50,7 @@ export declare interface BridgeMessage<T = unknown> {
|
|
|
58
50
|
* RENDER message payload
|
|
59
51
|
*/
|
|
60
52
|
export declare interface RenderPayload {
|
|
61
|
-
document: import('../compiler/ir').STXDocument | import('../compiler/ir').STXNode
|
|
53
|
+
document: import('../compiler/ir.js').STXDocument | import('../compiler/ir.js').STXNode
|
|
62
54
|
containerId?: string
|
|
63
55
|
mode: 'replace' | 'append' | 'prepend'
|
|
64
56
|
}
|
|
@@ -66,7 +58,7 @@ export declare interface NativeMutationNode {
|
|
|
66
58
|
type: string
|
|
67
59
|
key?: string
|
|
68
60
|
props?: Record<string, unknown>
|
|
69
|
-
style?: Partial<import('../compiler/ir').STXStyle>
|
|
61
|
+
style?: Partial<import('../compiler/ir.js').STXStyle>
|
|
70
62
|
events?: Record<string, string>
|
|
71
63
|
children?: string[]
|
|
72
64
|
}
|
|
@@ -96,8 +88,8 @@ export declare interface UpdatePayload {
|
|
|
96
88
|
updates: Array<{
|
|
97
89
|
key: string
|
|
98
90
|
props?: Record<string, unknown>
|
|
99
|
-
style?: Partial<import('../compiler/ir').STXStyle>
|
|
100
|
-
children?: (import('../compiler/ir').STXNode | string)[]
|
|
91
|
+
style?: Partial<import('../compiler/ir.js').STXStyle>
|
|
92
|
+
children?: (import('../compiler/ir.js').STXNode | string)[]
|
|
101
93
|
}>
|
|
102
94
|
}
|
|
103
95
|
/**
|
|
@@ -226,7 +218,7 @@ export declare interface ApiErrorPayload {
|
|
|
226
218
|
*/
|
|
227
219
|
export declare interface HotReloadPayload {
|
|
228
220
|
changedFiles: string[]
|
|
229
|
-
document?: import('../compiler/ir').STXDocument
|
|
221
|
+
document?: import('../compiler/ir.js').STXDocument
|
|
230
222
|
preserveState: boolean
|
|
231
223
|
}
|
|
232
224
|
/**
|
|
@@ -341,13 +333,18 @@ export declare class NativeCapabilityError extends Error {
|
|
|
341
333
|
* Bridge class for JS side
|
|
342
334
|
*/
|
|
343
335
|
export declare class STXBridge {
|
|
336
|
+
private messageId;
|
|
337
|
+
private handlers;
|
|
338
|
+
private pendingRequests;
|
|
339
|
+
private nativeBridge;
|
|
340
|
+
private defaultTimeout;
|
|
344
341
|
initialize(nativeBridge: NativeBridgeInterface): void;
|
|
345
342
|
send<T>(type: BridgeMessageType, payload: T): string;
|
|
346
343
|
request<T, R>(type: BridgeMessageType, payload: T, timeout?: number | null, signal?: AbortSignal): Promise<R>;
|
|
347
344
|
on<T>(type: BridgeMessageType, handler: MessageHandler<T>): () => void;
|
|
348
345
|
once<T>(type: BridgeMessageType, handler: MessageHandler<T>): () => void;
|
|
349
346
|
dispose(reason?: ApiCancelPayload['reason']): void;
|
|
350
|
-
render(document: import('../compiler/ir').STXDocument | import('../compiler/ir').STXNode, options?: { containerId?: string, mode?: 'replace' | 'append' | 'prepend' }): string;
|
|
347
|
+
render(document: import('../compiler/ir.js').STXDocument | import('../compiler/ir.js').STXNode, options?: { containerId?: string, mode?: 'replace' | 'append' | 'prepend' }): string;
|
|
351
348
|
mutate(payload: NativeMutationPayload): string;
|
|
352
349
|
update(updates: UpdatePayload['updates']): string;
|
|
353
350
|
remove(keys: string[]): string;
|
|
@@ -357,4 +354,8 @@ export declare class STXBridge {
|
|
|
357
354
|
callNativeAPI<T>(module: string, method: string, ...args: unknown[]): Promise<T>;
|
|
358
355
|
callPersonFacingAPI<T>(module: string, method: string, ...args: unknown[]): Promise<T>;
|
|
359
356
|
log(level: 'info' | 'warn' | 'error', message: string, data?: unknown): void;
|
|
357
|
+
private createMessage;
|
|
358
|
+
private postToNative;
|
|
359
|
+
private handleIncomingMessage;
|
|
360
360
|
}
|
|
361
|
+
export {};
|
package/dist/native/cli.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeDiagnostic } from './compiler/bundle';
|
|
1
|
+
import type { NativeDiagnostic } from './compiler/bundle.js';
|
|
2
2
|
/** The screens config for a project, or null when it has none. */
|
|
3
3
|
export declare function loadNativeScreensConfig(cwd?: string, configFile?: string): NativeScreensConfig | null;
|
|
4
4
|
/** What `stx native compile` does, without the process around it. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CompileNativeBundleOptions, type NativeBundleResult } from './bundle';
|
|
1
|
+
import { type CompileNativeBundleOptions, type NativeBundleResult } from './bundle.js';
|
|
2
2
|
/** Compile a shared stx screen using the browser peer of the native renderers. */
|
|
3
3
|
export declare function compileBrowserScreen(options: CompileBrowserScreenOptions): Promise<NativeBundleResult>;
|
|
4
4
|
/** Framework-owned embedding; applications supply source and platform configuration only. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type NativeStyleConfig } from './style-config';
|
|
2
|
-
import type { BrowserScreenOptions } from '../runtime/browser-screen';
|
|
3
|
-
import type { NativeLayoutChrome } from './ir';
|
|
1
|
+
import { type NativeStyleConfig } from './style-config.js';
|
|
2
|
+
import type { BrowserScreenOptions } from '../runtime/browser-screen.js';
|
|
3
|
+
import type { NativeLayoutChrome } from './ir.js';
|
|
4
4
|
/** The project's CSS config, as native styles read it; empty without one. */
|
|
5
5
|
export declare function projectStyleConfig(root: string): Promise<NativeStyleConfig>;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ClassStyles } from './headwind-to-style';
|
|
2
|
-
import type { NativeStylesheetRules } from './stylesheet-rules';
|
|
3
|
-
import type { NativeStyleVariables } from './style-variables';
|
|
4
|
-
import type { STXNode } from './ir';
|
|
1
|
+
import type { ClassStyles } from './headwind-to-style.js';
|
|
2
|
+
import type { NativeStylesheetRules } from './stylesheet-rules.js';
|
|
3
|
+
import type { NativeStyleVariables } from './style-variables.js';
|
|
4
|
+
import type { STXNode } from './ir.js';
|
|
5
5
|
export declare function buildClassTable(root: STXNode): NativeClassTable | undefined;
|
|
6
6
|
/** Seed the class cache from a shipped table: the plain lists, and `scheme`'s against `variables`. */
|
|
7
7
|
export declare function seedClassTable(table: NativeClassTable, scheme: 'light' | 'dark', variables: NativeStyleVariables, rules: NativeStylesheetRules | undefined, plain?: boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STXComponentType, STXNode } from './ir';
|
|
1
|
+
import type { STXComponentType, STXNode } from './ir.js';
|
|
2
2
|
/** Map rendered HTML and primitive tags to the native IR vocabulary. */
|
|
3
3
|
export declare function mapToNativeComponent(tag: string): STXComponentType | string;
|
|
4
4
|
/** Transform a node tree to use native component types. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeStyleVariables } from './style-variables';
|
|
1
|
+
import type { NativeStyleVariables } from './style-variables.js';
|
|
2
2
|
export declare function nativeShapeRadius(name: string, variables?: NativeStyleVariables): number | undefined;
|
|
3
3
|
export declare function nativeDensitySpacing(name: string, variables?: NativeStyleVariables): number | undefined;
|
|
4
4
|
export declare function nativeDensityType(name: string, variables?: NativeStyleVariables): { fontSize: number, lineHeight: number } | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NativeStylesheetRules } from './stylesheet-rules';
|
|
2
|
-
import type { NativeStyleVariables } from './style-variables';
|
|
3
|
-
import type { STXStyle } from './ir';
|
|
1
|
+
import type { NativeStylesheetRules } from './stylesheet-rules.js';
|
|
2
|
+
import type { NativeStyleVariables } from './style-variables.js';
|
|
3
|
+
import type { STXStyle } from './ir.js';
|
|
4
4
|
/**
|
|
5
5
|
* A palette reference (`emerald-600`, `white`) or a bracketed colour as the
|
|
6
6
|
* hex a native host reads, or undefined. The web palette is oklch, which
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type NativeStyleVariables } from './style-variables';
|
|
2
|
-
import type { STXStyle } from './ir';
|
|
1
|
+
import { type NativeStyleVariables } from './style-variables.js';
|
|
2
|
+
import type { STXStyle } from './ir.js';
|
|
3
3
|
/**
|
|
4
4
|
* CSS flex containers default to row; native stacks default to column.
|
|
5
5
|
* Apply only after all authored style layers have been combined: adding a
|