@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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { NativeClassTable } from './class-table';
|
|
2
|
-
import type { NativeStylesheetRules } from './stylesheet-rules';
|
|
3
|
-
import type { NativeStylesheetTheme } from './stylesheet-theme';
|
|
1
|
+
import type { NativeClassTable } from './class-table.js';
|
|
2
|
+
import type { NativeStylesheetRules } from './stylesheet-rules.js';
|
|
3
|
+
import type { NativeStylesheetTheme } from './stylesheet-theme.js';
|
|
4
4
|
// ============================================================================
|
|
5
5
|
// Factory Functions
|
|
6
6
|
// ============================================================================
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nativePrimitivesDir } from '../primitives-dir';
|
|
2
|
-
import { type BindingManifest } from '../../binding-manifest';
|
|
3
|
-
import { type GeneratedSetupScript, type NativeClientScript } from './setup-script';
|
|
4
|
-
import type { STXDocument } from './ir';
|
|
5
|
-
import type { TranslationDiagnostic } from './html-to-ir';
|
|
1
|
+
import { nativePrimitivesDir } from '../primitives-dir.js';
|
|
2
|
+
import { type BindingManifest } from '../../binding-manifest.js';
|
|
3
|
+
import { type GeneratedSetupScript, type NativeClientScript } from './setup-script.js';
|
|
4
|
+
import type { STXDocument } from './ir.js';
|
|
5
|
+
import type { TranslationDiagnostic } from './html-to-ir.js';
|
|
6
6
|
/**
|
|
7
7
|
* Render a screen's source with stx and translate it to the native IR.
|
|
8
8
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeClientScript } from './setup-script';
|
|
1
|
+
import type { NativeClientScript } from './setup-script.js';
|
|
2
2
|
/**
|
|
3
3
|
* Pull the code more than one screen has out of every screen's scripts. What
|
|
4
4
|
* only one screen has stays in it: the runtime is read by every screen. A
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STXNode } from './ir';
|
|
1
|
+
import type { STXNode } from './ir.js';
|
|
2
2
|
/** `"0 0 320 180"` (or with commas) to four numbers, or null. */
|
|
3
3
|
export declare function parseViewBox(value: unknown): [number, number, number, number] | null;
|
|
4
4
|
/** Path data to absolute commands. Unknown or malformed parts end the path, as a browser does. */
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import type { STXStyle } from '../compiler/ir';
|
|
1
|
+
import type { STXStyle } from '../compiler/ir.js';
|
|
2
2
|
/** Maps STX component names to native implementations */
|
|
3
3
|
export declare const ComponentRegistry: {
|
|
4
|
-
View: 'View';
|
|
5
|
-
ScrollView: 'ScrollView';
|
|
6
|
-
SafeAreaView: 'SafeAreaView';
|
|
7
|
-
KeyboardAvoidingView: 'KeyboardAvoidingView';
|
|
8
|
-
Text: 'Text';
|
|
9
|
-
TextInput: 'TextInput';
|
|
10
|
-
Button: 'Button';
|
|
11
|
-
Link: 'Link';
|
|
12
|
-
TouchableOpacity: 'TouchableOpacity';
|
|
13
|
-
TouchableHighlight: 'TouchableHighlight';
|
|
14
|
-
Pressable: 'Pressable';
|
|
15
|
-
Switch: 'Switch';
|
|
16
|
-
Checkbox: 'Checkbox';
|
|
17
|
-
Slider: 'Slider';
|
|
18
|
-
Picker: 'Picker';
|
|
19
|
-
NativeSegmentedControl: 'SegmentedControl';
|
|
20
|
-
DatePicker: 'DatePicker';
|
|
21
|
-
Icon: 'Icon';
|
|
22
|
-
Image: 'Image';
|
|
23
|
-
ImageBackground: 'ImageBackground';
|
|
24
|
-
Video: 'Video';
|
|
25
|
-
Map: 'Map';
|
|
26
|
-
MapPolyline: 'MapPolyline';
|
|
27
|
-
MapPolygon: 'MapPolygon';
|
|
28
|
-
MapMarker: 'MapMarker';
|
|
29
|
-
FlatList: 'FlatList';
|
|
30
|
-
SectionList: 'SectionList';
|
|
31
|
-
Modal: 'Modal';
|
|
32
|
-
ActivityIndicator: 'ActivityIndicator';
|
|
33
|
-
StatusBar: 'StatusBar';
|
|
34
|
-
RefreshControl: 'RefreshControl'
|
|
4
|
+
readonly View: 'View';
|
|
5
|
+
readonly ScrollView: 'ScrollView';
|
|
6
|
+
readonly SafeAreaView: 'SafeAreaView';
|
|
7
|
+
readonly KeyboardAvoidingView: 'KeyboardAvoidingView';
|
|
8
|
+
readonly Text: 'Text';
|
|
9
|
+
readonly TextInput: 'TextInput';
|
|
10
|
+
readonly Button: 'Button';
|
|
11
|
+
readonly Link: 'Link';
|
|
12
|
+
readonly TouchableOpacity: 'TouchableOpacity';
|
|
13
|
+
readonly TouchableHighlight: 'TouchableHighlight';
|
|
14
|
+
readonly Pressable: 'Pressable';
|
|
15
|
+
readonly Switch: 'Switch';
|
|
16
|
+
readonly Checkbox: 'Checkbox';
|
|
17
|
+
readonly Slider: 'Slider';
|
|
18
|
+
readonly Picker: 'Picker';
|
|
19
|
+
readonly NativeSegmentedControl: 'SegmentedControl';
|
|
20
|
+
readonly DatePicker: 'DatePicker';
|
|
21
|
+
readonly Icon: 'Icon';
|
|
22
|
+
readonly Image: 'Image';
|
|
23
|
+
readonly ImageBackground: 'ImageBackground';
|
|
24
|
+
readonly Video: 'Video';
|
|
25
|
+
readonly Map: 'Map';
|
|
26
|
+
readonly MapPolyline: 'MapPolyline';
|
|
27
|
+
readonly MapPolygon: 'MapPolygon';
|
|
28
|
+
readonly MapMarker: 'MapMarker';
|
|
29
|
+
readonly FlatList: 'FlatList';
|
|
30
|
+
readonly SectionList: 'SectionList';
|
|
31
|
+
readonly Modal: 'Modal';
|
|
32
|
+
readonly ActivityIndicator: 'ActivityIndicator';
|
|
33
|
+
readonly StatusBar: 'StatusBar';
|
|
34
|
+
readonly RefreshControl: 'RefreshControl'
|
|
35
35
|
};
|
|
36
36
|
// ============================================================================
|
|
37
37
|
// Base Types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeAccessoryMenuItem, NativeTabAccessory } from './runtime/craft';
|
|
1
|
+
import type { NativeAccessoryMenuItem, NativeTabAccessory } from './runtime/craft.js';
|
|
2
2
|
/**
|
|
3
3
|
* The floating actions of a screen, or of the whole app, in the order they
|
|
4
4
|
* read: top to bottom in a vertical group, leading to trailing otherwise.
|
|
@@ -33,6 +33,7 @@ export declare interface NativeFloatingAction {
|
|
|
33
33
|
label: string
|
|
34
34
|
symbol: string
|
|
35
35
|
accessibilityLabel?: string
|
|
36
|
+
active?: boolean
|
|
36
37
|
badge?: string | number | null
|
|
37
38
|
menu?: NativeAccessoryMenuItem[]
|
|
38
39
|
}
|
|
@@ -35,6 +35,7 @@ export function floatingActions(actions, layout = "vertical") {
|
|
|
35
35
|
title: action.label,
|
|
36
36
|
symbol: action.symbol,
|
|
37
37
|
...action.accessibilityLabel ? { accessibilityLabel: action.accessibilityLabel } : {},
|
|
38
|
+
...action.active ? { selected: !0 } : {},
|
|
38
39
|
...action.menu?.length ? { menu: action.menu.map((choice) => ({ ...choice })) } : {}
|
|
39
40
|
};
|
|
40
41
|
});
|
|
@@ -43,6 +44,7 @@ export function floatingActions(actions, layout = "vertical") {
|
|
|
43
44
|
title: primary.label,
|
|
44
45
|
symbol: primary.symbol,
|
|
45
46
|
...primary.accessibilityLabel ? { accessibilityLabel: primary.accessibilityLabel } : {},
|
|
47
|
+
...primary.active ? { selected: !0 } : {},
|
|
46
48
|
badge: badgeText(primary.badge),
|
|
47
49
|
...layout === "separate" ? { iconOnly: !0 } : { layout },
|
|
48
50
|
companions
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STXDocument } from '../compiler/ir';
|
|
1
|
+
import type { STXDocument } from '../compiler/ir.js';
|
|
2
2
|
export type { HotReloadMessage, HotReloadState, HotReloadCallback, ErrorOverlayOptions };
|
|
3
3
|
/**
|
|
4
4
|
* Get or create the hot reload client
|
|
@@ -45,14 +45,39 @@ declare type HotReloadCallback = (document: STXDocument) => void;
|
|
|
45
45
|
// Hot Reload Client
|
|
46
46
|
// ============================================================================
|
|
47
47
|
declare class HotReloadClient {
|
|
48
|
+
private ws;
|
|
49
|
+
private serverUrl;
|
|
50
|
+
private reconnectAttempts;
|
|
51
|
+
private maxReconnectAttempts;
|
|
52
|
+
private reconnectDelay;
|
|
53
|
+
private callbacks;
|
|
54
|
+
private savedState;
|
|
55
|
+
private isConnected;
|
|
48
56
|
constructor(serverUrl?: string);
|
|
49
57
|
connect(): void;
|
|
50
58
|
disconnect(): void;
|
|
51
59
|
get connected(): boolean;
|
|
60
|
+
private attemptReconnect;
|
|
61
|
+
private handleMessage;
|
|
62
|
+
private handleHotReload;
|
|
63
|
+
private handleFullReload;
|
|
64
|
+
private handleError;
|
|
65
|
+
private saveState;
|
|
66
|
+
private restoreState;
|
|
67
|
+
private captureState;
|
|
68
|
+
private applyState;
|
|
69
|
+
private captureScrollPositions;
|
|
70
|
+
private applyScrollPositions;
|
|
71
|
+
private captureFocus;
|
|
72
|
+
private applyFocus;
|
|
73
|
+
private captureInputValues;
|
|
74
|
+
private applyInputValues;
|
|
75
|
+
private applyUpdate;
|
|
52
76
|
onReload(callback: HotReloadCallback): () => void;
|
|
53
77
|
send(type: string, payload: unknown): void;
|
|
54
78
|
}
|
|
55
79
|
declare class ErrorOverlay {
|
|
80
|
+
private visible;
|
|
56
81
|
show(options: ErrorOverlayOptions): void;
|
|
57
82
|
hide(): void;
|
|
58
83
|
}
|
package/dist/native/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type * from './runtime/craft';
|
|
1
|
+
export type * from './runtime/craft.js';
|
|
2
2
|
// Re-export types
|
|
3
3
|
export type {
|
|
4
4
|
STXNode,
|
|
@@ -6,7 +6,7 @@ export type {
|
|
|
6
6
|
STXDocument,
|
|
7
7
|
STXComponentType,
|
|
8
8
|
STXEventType,
|
|
9
|
-
} from './compiler/ir';
|
|
9
|
+
} from './compiler/ir.js';
|
|
10
10
|
export type {
|
|
11
11
|
ViewProps,
|
|
12
12
|
TextProps,
|
|
@@ -30,13 +30,13 @@ export type {
|
|
|
30
30
|
PickerProps,
|
|
31
31
|
NativeSegmentOption,
|
|
32
32
|
NativeSegmentedControlProps,
|
|
33
|
-
} from './components/primitives';
|
|
33
|
+
} from './components/primitives.js';
|
|
34
34
|
export type {
|
|
35
35
|
HotReloadMessage,
|
|
36
36
|
HotReloadState,
|
|
37
37
|
HotReloadCallback,
|
|
38
38
|
ErrorOverlayOptions,
|
|
39
|
-
} from './hot-reload/client';
|
|
39
|
+
} from './hot-reload/client.js';
|
|
40
40
|
/**
|
|
41
41
|
* `@stacksjs/stx/native`: stx templates as native iOS/Android screens.
|
|
42
42
|
*
|
|
@@ -59,22 +59,22 @@ export type {
|
|
|
59
59
|
* From the command line: `stx native compile --format bundle --output native-screen.js`.
|
|
60
60
|
*/
|
|
61
61
|
// Compiler exports
|
|
62
|
-
export * from './compiler/ir';
|
|
63
|
-
export * from './compiler/headwind-to-style';
|
|
64
|
-
export * from './compiler/html-to-ir';
|
|
65
|
-
export * from './compiler/client-script';
|
|
66
|
-
export * from './compiler/render-screen';
|
|
67
|
-
export * from './compiler/bundle';
|
|
68
|
-
export * from './compiler/browser';
|
|
69
|
-
export * from './compiler/icons';
|
|
70
|
-
export * from './cli';
|
|
71
|
-
export * from './runtime/shared-screen';
|
|
72
|
-
export * from './live-activity';
|
|
73
|
-
export * from './floating-actions';
|
|
62
|
+
export * from './compiler/ir.js';
|
|
63
|
+
export * from './compiler/headwind-to-style.js';
|
|
64
|
+
export * from './compiler/html-to-ir.js';
|
|
65
|
+
export * from './compiler/client-script.js';
|
|
66
|
+
export * from './compiler/render-screen.js';
|
|
67
|
+
export * from './compiler/bundle.js';
|
|
68
|
+
export * from './compiler/browser.js';
|
|
69
|
+
export * from './compiler/icons.js';
|
|
70
|
+
export * from './cli.js';
|
|
71
|
+
export * from './runtime/shared-screen.js';
|
|
72
|
+
export * from './live-activity.js';
|
|
73
|
+
export * from './floating-actions.js';
|
|
74
74
|
// Bridge exports
|
|
75
|
-
export * from './bridge/protocol';
|
|
75
|
+
export * from './bridge/protocol.js';
|
|
76
76
|
// Component exports
|
|
77
|
-
export * from './components/primitives';
|
|
77
|
+
export * from './components/primitives.js';
|
|
78
78
|
// Hot Reload exports
|
|
79
79
|
export {
|
|
80
80
|
getHotReloadClient,
|
|
@@ -82,4 +82,4 @@ export {
|
|
|
82
82
|
initHotReload,
|
|
83
83
|
HotReloadClient,
|
|
84
84
|
ErrorOverlay,
|
|
85
|
-
} from './hot-reload/client';
|
|
85
|
+
} from './hot-reload/client.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BindingManifest } from '../../binding-manifest';
|
|
2
|
-
import type { NativeHost, NativeNode } from './native-host';
|
|
3
|
-
import type { STXDocument } from '../compiler/ir';
|
|
1
|
+
import type { BindingManifest } from '../../binding-manifest.js';
|
|
2
|
+
import type { NativeHost, NativeNode } from './native-host.js';
|
|
3
|
+
import type { STXDocument } from '../compiler/ir.js';
|
|
4
4
|
/** Clone the DOM-shaped metadata while the host clones the native descriptor. */
|
|
5
5
|
export declare function cloneNativeBindingNode(source: NativeBindingNode, id: string, onClassChange?: (value: string) => void, Element?: BindingElementClass): NativeBindingNode;
|
|
6
6
|
/** The same, with the attributes a caller chose (a loop row's, less what it binds itself). */
|
|
@@ -55,8 +55,13 @@ export declare class BindingElement {
|
|
|
55
55
|
childNodes: NativeNode[];
|
|
56
56
|
children: NativeNode[];
|
|
57
57
|
__stxOwner: NativeNode | null;
|
|
58
|
+
/** @defaultValue '' */
|
|
58
59
|
namespaceURI: string;
|
|
60
|
+
/** @defaultValue true */
|
|
59
61
|
isConnected: boolean;
|
|
62
|
+
private byName;
|
|
63
|
+
private onClassChange;
|
|
64
|
+
private classTokens;
|
|
60
65
|
constructor(id: string, type: string, attributes: Array<{ name: string, value: string }>, onClassChange?: (value: string) => void);
|
|
61
66
|
get nextSibling(): NativeNode | null;
|
|
62
67
|
get nextElementSibling(): NativeBindingNode | null;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import type { NativeMutationPayload } from '../bridge/protocol';
|
|
2
|
-
import type { STXNode } from '../compiler/ir';
|
|
1
|
+
import type { NativeMutationPayload } from '../bridge/protocol.js';
|
|
2
|
+
import type { STXNode } from '../compiler/ir.js';
|
|
3
|
+
declare interface RecordNode {
|
|
4
|
+
element: HTMLElement | SVGElement
|
|
5
|
+
type: string
|
|
6
|
+
props: Record<string, unknown>
|
|
7
|
+
style: Record<string, unknown>
|
|
8
|
+
events: Record<string, string>
|
|
9
|
+
children: string[]
|
|
10
|
+
parent: string | null
|
|
11
|
+
dispose: Array<() => void>
|
|
12
|
+
layoutObserver?: ResizeObserver
|
|
13
|
+
layoutObservedParent?: Element
|
|
14
|
+
text?: string
|
|
15
|
+
}
|
|
3
16
|
export declare interface BrowserRendererOptions {
|
|
4
17
|
icons?: Record<string, { body: string, width?: number, height?: number }>
|
|
5
18
|
event: (handlerId: string, payload: Record<string, unknown>) => void
|
|
@@ -7,10 +20,27 @@ export declare interface BrowserRendererOptions {
|
|
|
7
20
|
}
|
|
8
21
|
/** Real browser controls for the same view descriptors and mutations as Craft. */
|
|
9
22
|
export declare class BrowserScreenRenderer {
|
|
10
|
-
readonly nodes:
|
|
23
|
+
readonly nodes: InstanceType<typeof Map<string, RecordNode>>;
|
|
24
|
+
private revision;
|
|
25
|
+
private root;
|
|
11
26
|
readonly container: HTMLElement;
|
|
27
|
+
private options;
|
|
12
28
|
constructor(container: HTMLElement, options: BrowserRendererOptions);
|
|
13
29
|
render(tree: STXNode): void;
|
|
14
30
|
mutate(batch: NativeMutationPayload): void;
|
|
31
|
+
private validate;
|
|
32
|
+
private tag;
|
|
33
|
+
private create;
|
|
34
|
+
private disabled;
|
|
35
|
+
private fire;
|
|
36
|
+
private events;
|
|
37
|
+
private buttonLabel;
|
|
38
|
+
private update;
|
|
39
|
+
private syncLayoutObserver;
|
|
40
|
+
private applySafeAreaPadding;
|
|
41
|
+
private icon;
|
|
42
|
+
private style;
|
|
43
|
+
private remove;
|
|
15
44
|
dispose(): void;
|
|
16
45
|
}
|
|
46
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type BrowserRendererOptions } from './browser-renderer';
|
|
2
|
-
import type { NativeBridgeInterface } from '../bridge/protocol';
|
|
1
|
+
import { type BrowserRendererOptions } from './browser-renderer.js';
|
|
2
|
+
import type { NativeBridgeInterface } from '../bridge/protocol.js';
|
|
3
3
|
/** The browser renderer is a peer host of UIKit and Android, on the same protocol. */
|
|
4
4
|
export declare function createBrowserScreenBridge(platform: BrowserPlatform, options: BrowserScreenOptions): NativeBridgeInterface & { dispose: () => void };
|
|
5
5
|
/** Fixed route segments win over parameters, consistently with the Craft hosts. */
|
|
@@ -152,7 +152,11 @@ export function createBrowserScreenBridge(platform, options) {
|
|
|
152
152
|
button.style.cssText = "position:relative;display:flex;align-items:center;justify-content:center;width:56px;height:56px;flex-shrink:0;border:0;border-radius:50%;background:#8882;color:inherit";
|
|
153
153
|
if (grouped) {
|
|
154
154
|
const vertical = primary?.layout === "vertical";
|
|
155
|
-
button.style.cssText = `position:relative;display:flex;align-items:center;justify-content:center;width:${vertical ? 48 :
|
|
155
|
+
button.style.cssText = `position:relative;display:flex;align-items:center;justify-content:center;width:${vertical ? 48 : 55}px;height:${vertical ? 55 : 48}px;flex-shrink:0;border:0;border-radius:24px;background:transparent;color:inherit;cursor:pointer`;
|
|
156
|
+
}
|
|
157
|
+
if (item.selected === !0) {
|
|
158
|
+
button.setAttribute("aria-pressed", "true");
|
|
159
|
+
button.style.color = "#007aff";
|
|
156
160
|
}
|
|
157
161
|
const holder = document.createElement("span");
|
|
158
162
|
button.append(holder);
|
|
@@ -179,6 +183,13 @@ export function createBrowserScreenBridge(platform, options) {
|
|
|
179
183
|
button.onclick = () => platform.navigate(item.path);
|
|
180
184
|
actionContainer.append(button);
|
|
181
185
|
}
|
|
186
|
+
if (grouped) {
|
|
187
|
+
const vertical = primary?.layout === "vertical", first = actionContainer.firstElementChild, last = actionContainer.lastElementChild;
|
|
188
|
+
if (first)
|
|
189
|
+
first.style[vertical ? "marginTop" : "marginInlineStart"] = "-3.5px";
|
|
190
|
+
if (last)
|
|
191
|
+
last.style[vertical ? "marginBottom" : "marginInlineEnd"] = "-3.5px";
|
|
192
|
+
}
|
|
182
193
|
}
|
|
183
194
|
const item = patch.tabItem, tab = item?.id ? tabIcons.get(item.id) : null;
|
|
184
195
|
if (tab && item) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BindingManifest, Binding } from '../../binding-manifest';
|
|
2
|
-
import type { STXDocument } from '../compiler/ir';
|
|
1
|
+
import type { BindingManifest, Binding } from '../../binding-manifest.js';
|
|
2
|
+
import type { STXDocument } from '../compiler/ir.js';
|
|
3
3
|
/** The kind a binding's name gives it, which a compact binding leaves out. */
|
|
4
4
|
export declare function kindOfBindingName(name: string): Binding['kind'];
|
|
5
5
|
/** The document without the fields every node has empty; null for one this form cannot hold. */
|
|
@@ -15,6 +15,4 @@ export declare function compactManifest(manifest: BindingManifest): unknown;
|
|
|
15
15
|
export declare function expandManifest(compact: unknown): BindingManifest;
|
|
16
16
|
declare type CompactBinding = [name: string, value: string, kind?: string];
|
|
17
17
|
declare type CompactEntry = [id: number, bindings: CompactBinding[], template?: 1];
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { STXBridge } from '../bridge/protocol';
|
|
2
|
-
import type { NativeBridgeInterface } from '../bridge/protocol';
|
|
3
|
-
import type { NativeLayoutChrome } from '../compiler/ir';
|
|
1
|
+
import { STXBridge } from '../bridge/protocol.js';
|
|
2
|
+
import type { NativeBridgeInterface } from '../bridge/protocol.js';
|
|
3
|
+
import type { NativeLayoutChrome } from '../compiler/ir.js';
|
|
4
4
|
/** Install the Craft capability surface on top of the shared typed bridge. */
|
|
5
5
|
export declare function installCraftBridge(protocol: STXBridge, nativeBridge: NativeBridgeInterface, target?: AnyRecord, options?: CraftBridgeOptions): AnyRecord;
|
|
6
6
|
export declare interface CraftBridgeOptions {
|
|
@@ -12,3 +12,4 @@ export declare interface CraftBridgeOptions {
|
|
|
12
12
|
source?: string
|
|
13
13
|
}
|
|
14
14
|
declare type AnyRecord = Record<string, any>;
|
|
15
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeLiveActivities } from '../live-activity';
|
|
1
|
+
import type { NativeLiveActivities } from '../live-activity.js';
|
|
2
2
|
/**
|
|
3
3
|
* The `craft` object a native screen's script sees, typed.
|
|
4
4
|
*
|
|
@@ -60,6 +60,7 @@ export declare interface NativeAccessoryCompanion {
|
|
|
60
60
|
title: string
|
|
61
61
|
symbol: string
|
|
62
62
|
accessibilityLabel?: string
|
|
63
|
+
selected?: boolean
|
|
63
64
|
menu?: NativeAccessoryMenuItem[]
|
|
64
65
|
}
|
|
65
66
|
/** Floating actions outside the tab stacks, in companion order followed by the primary action. */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { NativeMutationOperation } from '../bridge/protocol';
|
|
1
|
+
import type { NativeMutationOperation } from '../bridge/protocol.js';
|
|
2
2
|
/** Give newly created media its bound source, geometry and handlers immediately. */
|
|
3
3
|
export declare function prepareInitialMedia(operations: NativeMutationOperation[]): NativeMutationOperation[];
|
|
@@ -42,37 +42,6 @@ export declare interface NativeFile {
|
|
|
42
42
|
}
|
|
43
43
|
declare type AnyRecord = Record<string, any> // eslint-disable-line ts/no-explicit-any;
|
|
44
44
|
declare type FormValue = string | NativeFile;
|
|
45
|
-
declare class NativeEvent {
|
|
46
|
-
type: string;
|
|
47
|
-
detail: unknown;
|
|
48
|
-
target: unknown;
|
|
49
|
-
currentTarget: unknown;
|
|
50
|
-
bubbles: boolean;
|
|
51
|
-
cancelable: boolean;
|
|
52
|
-
defaultPrevented: boolean;
|
|
53
|
-
cancelBubble: boolean;
|
|
54
|
-
key: string;
|
|
55
|
-
ctrlKey: boolean;
|
|
56
|
-
altKey: boolean;
|
|
57
|
-
shiftKey: boolean;
|
|
58
|
-
metaKey: boolean;
|
|
59
|
-
constructor(type: string, options?: { detail?: unknown, bubbles?: boolean, cancelable?: boolean });
|
|
60
|
-
preventDefault(): void;
|
|
61
|
-
stopPropagation(): void;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* `TextEncoder` and `TextDecoder`, which JavaScriptCore does not have either:
|
|
65
|
-
* they are web APIs. UTF-8 only, which is all the web's TextEncoder speaks
|
|
66
|
-
* and what code shared with a page (hashing a nonce) hands them.
|
|
67
|
-
*/
|
|
68
|
-
declare class NativeTextEncoder {
|
|
69
|
-
readonly encoding: string;
|
|
70
|
-
encode(input?: string): Uint8Array;
|
|
71
|
-
}
|
|
72
|
-
declare class NativeTextDecoder {
|
|
73
|
-
readonly encoding: string;
|
|
74
|
-
decode(input?: ArrayBuffer | ArrayBufferView): string;
|
|
75
|
-
}
|
|
76
45
|
/**
|
|
77
46
|
* `URLSearchParams`, which JavaScriptCore does not have: it is a web API, not
|
|
78
47
|
* a language one. Helpers shared with web pages build query strings with it,
|
|
@@ -80,8 +49,13 @@ declare class NativeTextDecoder {
|
|
|
80
49
|
* spaces as `+`, everything else outside the unreserved set percent-encoded.
|
|
81
50
|
*/
|
|
82
51
|
declare class NativeURLSearchParams {
|
|
52
|
+
private list;
|
|
53
|
+
private owner;
|
|
83
54
|
static linked(query: string, owner: (query: string) => void): NativeURLSearchParams;
|
|
55
|
+
private changed;
|
|
84
56
|
constructor(init?: string | Record<string, unknown> | Iterable<[unknown, unknown]> | NativeURLSearchParams);
|
|
57
|
+
private static decode;
|
|
58
|
+
private static encode;
|
|
85
59
|
get size(): number;
|
|
86
60
|
append(name: string, value: unknown): void;
|
|
87
61
|
delete(name: string): void;
|
|
@@ -106,9 +80,17 @@ declare class NativeURLSearchParams {
|
|
|
106
80
|
* browser's. Hostnames are kept as given, lower-cased: no IDNA mapping.
|
|
107
81
|
*/
|
|
108
82
|
declare class NativeURL {
|
|
83
|
+
private parts;
|
|
84
|
+
private params;
|
|
109
85
|
constructor(input: string | { href: string }, base?: string | { href: string });
|
|
110
86
|
static canParse(input: string, base?: string): boolean;
|
|
111
87
|
static parse(input: string, base?: string): NativeURL | null;
|
|
88
|
+
private static parts;
|
|
89
|
+
private static absolute;
|
|
90
|
+
private static authority;
|
|
91
|
+
private static path;
|
|
92
|
+
private static finish;
|
|
93
|
+
private static relative;
|
|
112
94
|
get protocol(): string;
|
|
113
95
|
get username(): string;
|
|
114
96
|
set username(value: string);
|
|
@@ -141,6 +123,7 @@ declare class NativeURL {
|
|
|
141
123
|
* `fetch` reads it through `forEach`.
|
|
142
124
|
*/
|
|
143
125
|
export declare class NativeHeaders {
|
|
126
|
+
private map;
|
|
144
127
|
constructor(init?: Record<string, unknown> | Iterable<[unknown, unknown]> | { forEach: (callback: (value: string, name: string) => void) => void } | null);
|
|
145
128
|
append(name: string, value: unknown): void;
|
|
146
129
|
set(name: string, value: unknown): void;
|
|
@@ -162,6 +145,7 @@ export declare class NativeHeaders {
|
|
|
162
145
|
* services; sending multipart bodies remains gated by the files capability.
|
|
163
146
|
*/
|
|
164
147
|
export declare class NativeFormData {
|
|
148
|
+
private list;
|
|
165
149
|
constructor(form?: unknown);
|
|
166
150
|
append(name: string, value: unknown, filename?: string): void;
|
|
167
151
|
set(name: string, value: unknown, filename?: string): void;
|
|
@@ -182,9 +166,11 @@ export declare class NativeFormData {
|
|
|
182
166
|
* broadcast stream closing), and `fetch` on a native screen honours them.
|
|
183
167
|
*/
|
|
184
168
|
declare class NativeAbortSignal {
|
|
169
|
+
/** @defaultValue false */
|
|
185
170
|
aborted: boolean;
|
|
186
171
|
reason: unknown;
|
|
187
172
|
onabort: ((event: unknown) => void) | null;
|
|
173
|
+
private listeners;
|
|
188
174
|
static abort(reason?: unknown): NativeAbortSignal;
|
|
189
175
|
static timeout(milliseconds: number): NativeAbortSignal;
|
|
190
176
|
addEventListener(type: string, listener: (event: unknown) => void): void;
|
|
@@ -193,7 +179,7 @@ declare class NativeAbortSignal {
|
|
|
193
179
|
abortWith(reason?: unknown): void;
|
|
194
180
|
}
|
|
195
181
|
declare class NativeAbortController {
|
|
196
|
-
readonly signal:
|
|
182
|
+
readonly signal: NativeAbortSignal;
|
|
197
183
|
abort(reason?: unknown): void;
|
|
198
184
|
}
|
|
199
185
|
export { NativeURLSearchParams };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type BindingElementClass } from './binding-tree';
|
|
2
|
-
import { type NativeClassTable } from '../compiler/class-table';
|
|
3
|
-
import { type NativeFocusOptions, type NativeViewBounds, type NativeViewOperations } from './view-operations';
|
|
4
|
-
import { type NativeOverlayEntry } from './overlay-presenter';
|
|
5
|
-
import type { NativeMutationOperation } from '../bridge/protocol';
|
|
6
|
-
import type { NativeStylesheetRules } from '../compiler/stylesheet-rules';
|
|
7
|
-
import type { NativeStylesheetTheme } from '../compiler/stylesheet-theme';
|
|
8
|
-
import type { STXNode } from '../compiler/ir';
|
|
1
|
+
import { type BindingElementClass } from './binding-tree.js';
|
|
2
|
+
import { type NativeClassTable } from '../compiler/class-table.js';
|
|
3
|
+
import { type NativeFocusOptions, type NativeViewBounds, type NativeViewOperations } from './view-operations.js';
|
|
4
|
+
import { type NativeOverlayEntry } from './overlay-presenter.js';
|
|
5
|
+
import type { NativeMutationOperation } from '../bridge/protocol.js';
|
|
6
|
+
import type { NativeStylesheetRules } from '../compiler/stylesheet-rules.js';
|
|
7
|
+
import type { NativeStylesheetTheme } from '../compiler/stylesheet-theme.js';
|
|
8
|
+
import type { STXNode } from '../compiler/ir.js';
|
|
9
9
|
export declare function createNativeHost(options: NativeHostOptions): NativeHost;
|
|
10
10
|
/** Every method the DOM host in `signals.ts` defines. The contract, in one place. */
|
|
11
11
|
export declare const HOST_METHODS: readonly string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeChromeButton, NativeNavigationButton, NativeNavigationChrome, NativeTabItemOptions } from './craft';
|
|
1
|
+
import type { NativeChromeButton, NativeNavigationButton, NativeNavigationChrome, NativeTabItemOptions } from './craft.js';
|
|
2
2
|
/** `/m/calendar?week=2` and `https://app.test/m/calendar` are both `/m/calendar`. */
|
|
3
3
|
export declare function chromePath(value: string | undefined): string;
|
|
4
4
|
/** Whether a chrome button belongs on this screen. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { NativeFocusOptions } from './view-operations';
|
|
2
|
-
import type { NativeNode } from './native-host';
|
|
1
|
+
import type { NativeFocusOptions } from './view-operations.js';
|
|
2
|
+
import type { NativeNode } from './native-host.js';
|
|
3
3
|
export declare function createNativeOverlayPresenter(host: OverlayHost): NativeOverlayPresenter;
|
|
4
4
|
/** Overlay policy stays in the shared runtime; this adapter presents native Modal nodes. */
|
|
5
5
|
export declare interface NativeOverlayEntry {
|
|
@@ -29,3 +29,4 @@ export declare interface NativeOverlayPresenter {
|
|
|
29
29
|
dispose: () => void
|
|
30
30
|
}
|
|
31
31
|
declare type FocusTarget = NativeNode | (() => NativeNode | null) | null;
|
|
32
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type CraftBridgeOptions } from './craft-bridge';
|
|
2
|
-
import { type NativeHost } from './native-host';
|
|
3
|
-
import type { BindingManifest } from '../../binding-manifest';
|
|
4
|
-
import type { NativeBindingNode } from './binding-tree';
|
|
5
|
-
import type { NativeBridgeInterface } from '../bridge/protocol';
|
|
6
|
-
import type { STXDocument } from '../compiler/ir';
|
|
1
|
+
import { type CraftBridgeOptions } from './craft-bridge.js';
|
|
2
|
+
import { type NativeHost } from './native-host.js';
|
|
3
|
+
import type { BindingManifest } from '../../binding-manifest.js';
|
|
4
|
+
import type { NativeBindingNode } from './binding-tree.js';
|
|
5
|
+
import type { NativeBridgeInterface } from '../bridge/protocol.js';
|
|
6
|
+
import type { STXDocument } from '../compiler/ir.js';
|
|
7
7
|
/** Connect translated IR to the ordinary stx signals runtime and native bridge. */
|
|
8
8
|
export declare function prepareSharedNativeScreen(document: STXDocument, manifest: BindingManifest, bridge: NativeBridgeInterface, options?: CraftBridgeOptions): SharedNativeScreen;
|
|
9
9
|
export declare function prepareNativeApp(bridge: NativeBridgeInterface, options?: CraftBridgeOptions): SharedNativeApp;
|
|
@@ -36,3 +36,4 @@ export declare interface SharedNativeApp {
|
|
|
36
36
|
* shared with the page (`@stacksjs/mobile`) hears them unchanged.
|
|
37
37
|
*/
|
|
38
38
|
export type NativeAppMain = (craft: Record<string, any>) => void | (() => void) | Promise<void | (() => void)>;
|
|
39
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { STXBridge } from '../bridge/protocol';
|
|
1
|
+
import type { STXBridge } from '../bridge/protocol.js';
|
|
2
2
|
export declare function nativeViewError(code: string, message: string): Error & { code: string };
|
|
3
3
|
/** Craft #373: stable node ids and logical viewport coordinates, not DOM geometry. */
|
|
4
4
|
export declare function createNativeViewOperations(protocol: Pick<STXBridge, 'callNativeAPI'>, capabilities: readonly string[], beforeRequest: () => void): NativeViewOperations;
|
|
@@ -49,3 +49,4 @@ export declare interface NativeNavigationOptions {
|
|
|
49
49
|
declare type AnyRecord = Record<string, any> // eslint-disable-line ts/no-explicit-any;
|
|
50
50
|
/** Where an href goes: a path of the app, a URL for the system, or nowhere. */
|
|
51
51
|
export type NativeLinkTarget = { path: string } | { url: string } | null;
|
|
52
|
+
export {};
|
|
@@ -8,8 +8,8 @@ export declare function installNativeWebStorage(target: AnyRecord, craft: AnyRec
|
|
|
8
8
|
export declare function startNativeSessionRun(craft: AnyRecord): void;
|
|
9
9
|
/** Where each storage area keeps its values in the app's storage. */
|
|
10
10
|
export declare const NATIVE_WEB_STORAGE_PREFIX: {
|
|
11
|
-
local: 'stx.localStorage:';
|
|
12
|
-
session: 'stx.sessionStorage:'
|
|
11
|
+
readonly local: 'stx.localStorage:';
|
|
12
|
+
readonly session: 'stx.sessionStorage:'
|
|
13
13
|
};
|
|
14
14
|
/** The app's current run, which sessionStorage values belong to. */
|
|
15
15
|
export declare const NATIVE_SESSION_RUN_KEY: 'stx.sessionStorage.run';
|
|
@@ -82,6 +82,7 @@ export declare interface NativeSharedKeys {
|
|
|
82
82
|
declare type AnyRecord = Record<string, any> // eslint-disable-line ts/no-explicit-any;
|
|
83
83
|
/** A `Storage` (the web's interface) kept in `store()`, under `prefix`. */
|
|
84
84
|
export declare class NativeWebStorage {
|
|
85
|
+
#private;
|
|
85
86
|
constructor(store: () => NativeSyncStore | null, prefix: string, run?: (() => string) | null);
|
|
86
87
|
get [RAW](): RawArea;
|
|
87
88
|
set [RAW](hooks: SharedHooks | null);
|
|
@@ -93,3 +94,4 @@ export declare class NativeWebStorage {
|
|
|
93
94
|
clear(): void;
|
|
94
95
|
get [Symbol.toStringTag](): string;
|
|
95
96
|
}
|
|
97
|
+
export {};
|