@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,4 +1,4 @@
|
|
|
1
|
-
import type { NativeNode, NativeOperation } from './testing';
|
|
1
|
+
import type { NativeNode, NativeOperation } from './testing.js';
|
|
2
2
|
/** Preflight topology on a copy: a rejected batch must never partially alter the test phone. */
|
|
3
3
|
export declare function validateTestMutations(source: Map<string, NativeNode>, operations: NativeOperation[]): TestMutationError | null;
|
|
4
4
|
export declare interface TestMutationError { code: string, message: string, operationIndex: number }
|
package/dist/native/testing.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type TestMutationError } from './testing-mutations';
|
|
1
|
+
import { type TestMutationError } from './testing-mutations.js';
|
|
2
2
|
import path from 'node:path';
|
|
3
3
|
import vm from 'node:vm';
|
|
4
4
|
/** Wait for `check` to hold, polling every 5ms; throws after `timeoutMs`. */
|
|
5
5
|
export declare function waitFor(check: () => boolean, description: string, timeoutMs?: number): Promise<void>;
|
|
6
6
|
/**
|
|
7
7
|
* Compile one screen from its source, as the single-screen native compiler
|
|
8
|
-
* does: for a test that writes the template inline.
|
|
8
|
+
* does: for a test that writes the template inline. The screen may use the
|
|
9
|
+
* packages installed in `project` (default: where the test process runs).
|
|
9
10
|
*/
|
|
10
|
-
export declare function compileNativeScreen(source: string, options?: { name?: string, minify?: boolean }): Promise<{ code: string, diagnostics: Array<{ message: string }> }>;
|
|
11
|
+
export declare function compileNativeScreen(source: string, options?: { name?: string, minify?: boolean, project?: string }): Promise<{ code: string, diagnostics: Array<{ message: string }> }>;
|
|
11
12
|
/** End every screen still running. Registered after each test when run under `bun test`. */
|
|
12
13
|
export declare function unmountAllNativeScreens(): void;
|
|
13
14
|
export declare function mountNativeScreen(code: string, screen: string, options?: NativeScreenOptions): NativeScreen;
|
package/dist/native/testing.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
var {require}=import.meta;import
|
|
1
|
+
var {require}=import.meta;import { existsSync, symlinkSync } from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
2
3
|
import vm from "node:vm";
|
|
3
4
|
import { compileSharedScreenBundle } from "./compiler/bundle.js";
|
|
4
5
|
import { NativeFormData } from "./runtime/jsc-globals.js";
|
|
@@ -35,8 +36,26 @@ export async function waitFor(check, description, timeoutMs = 5000) {
|
|
|
35
36
|
await Bun.sleep(5);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
39
|
+
function linkProjectPackages(root, project) {
|
|
40
|
+
let dir = path.resolve(project);
|
|
41
|
+
for (;; ) {
|
|
42
|
+
const modules = path.join(dir, "node_modules");
|
|
43
|
+
if (existsSync(modules)) {
|
|
44
|
+
try {
|
|
45
|
+
symlinkSync(modules, path.join(root, "node_modules"), "dir");
|
|
46
|
+
} catch {}
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const parent = path.dirname(dir);
|
|
50
|
+
if (parent === dir)
|
|
51
|
+
return;
|
|
52
|
+
dir = parent;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
38
55
|
export async function compileNativeScreen(source, options = {}) {
|
|
39
|
-
const root = createTempDir("stx-native-testing-")
|
|
56
|
+
const root = createTempDir("stx-native-testing-");
|
|
57
|
+
linkProjectPackages(root, options.project ?? process.cwd());
|
|
58
|
+
const file = path.join(root, `${options.name || "Screen"}.stx`);
|
|
40
59
|
await Bun.write(file, source);
|
|
41
60
|
const result = await compileSharedScreenBundle(file, { root, minify: options.minify });
|
|
42
61
|
return { code: result.code, diagnostics: result.diagnostics };
|
package/dist/native/ui.d.ts
CHANGED
|
@@ -35,74 +35,74 @@ export declare function nativeTextStyle<T extends NativeTextMetrics>(style: T, t
|
|
|
35
35
|
*/
|
|
36
36
|
export declare const nativeUi: {
|
|
37
37
|
/** The whole screen: the grouped page behind every group. */
|
|
38
|
-
screen: 'flex-1 bg-page';
|
|
38
|
+
readonly screen: 'flex-1 bg-page';
|
|
39
39
|
/** A section's header, above a group. */
|
|
40
|
-
header: 'mx-8 mt-7 mb-1.5 text-[13px] uppercase text-fg-soft';
|
|
40
|
+
readonly header: 'mx-8 mt-7 mb-1.5 text-[13px] uppercase text-fg-soft';
|
|
41
41
|
/** A note under a group. */
|
|
42
|
-
footer: 'mx-8 mt-1.5 text-[13px] text-fg-soft';
|
|
42
|
+
readonly footer: 'mx-8 mt-1.5 text-[13px] text-fg-soft';
|
|
43
43
|
/** An inset grouped section holding rows. */
|
|
44
|
-
group: 'mx-4 overflow-hidden rounded-panel bg-panel';
|
|
44
|
+
readonly group: 'mx-4 overflow-hidden rounded-panel bg-panel';
|
|
45
45
|
/** A group holding a drawing or a block of content rather than rows. */
|
|
46
|
-
card: 'mx-4 p-4 rounded-panel bg-panel';
|
|
46
|
+
readonly card: 'mx-4 p-4 rounded-panel bg-panel';
|
|
47
47
|
/** A row in a group. */
|
|
48
|
-
row: 'flex-row items-center gap-3 px-4 py-2.5 min-h-[44px]';
|
|
48
|
+
readonly row: 'flex-row items-center gap-3 px-4 py-2.5 min-h-[44px]';
|
|
49
49
|
/** The hairline between rows, inset to where their text starts. */
|
|
50
|
-
separator: 'ml-4 h-[0.5px] bg-line';
|
|
50
|
+
readonly separator: 'ml-4 h-[0.5px] bg-line';
|
|
51
51
|
/** The same, past a 29pt icon tile. */
|
|
52
|
-
separatorIcon: 'ml-[57px] h-[0.5px] bg-line';
|
|
52
|
+
readonly separatorIcon: 'ml-[57px] h-[0.5px] bg-line';
|
|
53
53
|
/** A screen's own heading, where the navigation bar does not carry one. */
|
|
54
|
-
heading: 'text-[30px] font-bold text-fg';
|
|
54
|
+
readonly heading: 'text-[30px] font-bold text-fg';
|
|
55
55
|
/** A row's main words. */
|
|
56
|
-
title: 'text-[17px] text-fg';
|
|
56
|
+
readonly title: 'text-[17px] text-fg';
|
|
57
57
|
/** A row's main words, emphasised. */
|
|
58
|
-
titleStrong: 'text-[17px] font-semibold text-fg';
|
|
58
|
+
readonly titleStrong: 'text-[17px] font-semibold text-fg';
|
|
59
59
|
/** Running text. */
|
|
60
|
-
body: 'text-[17px] text-fg-strong';
|
|
60
|
+
readonly body: 'text-[17px] text-fg-strong';
|
|
61
61
|
/** A line under a title. */
|
|
62
|
-
subtitle: 'text-[15px] text-fg-soft';
|
|
62
|
+
readonly subtitle: 'text-[15px] text-fg-soft';
|
|
63
63
|
/** Small print: a caption, a date, a unit. */
|
|
64
|
-
caption: 'text-[13px] text-fg-soft';
|
|
64
|
+
readonly caption: 'text-[13px] text-fg-soft';
|
|
65
65
|
/** A value at a row's end. */
|
|
66
|
-
value: 'text-[17px] text-fg-soft';
|
|
66
|
+
readonly value: 'text-[17px] text-fg-soft';
|
|
67
67
|
/** A big number in a stat. */
|
|
68
|
-
figure: 'text-[22px] font-semibold text-fg';
|
|
68
|
+
readonly figure: 'text-[22px] font-semibold text-fg';
|
|
69
69
|
/** The disclosure chevron: it says the row opens something, so it stays legible. */
|
|
70
|
-
chevron: 'h-3.5 w-3.5 text-fg-soft';
|
|
70
|
+
readonly chevron: 'h-3.5 w-3.5 text-fg-soft';
|
|
71
71
|
/** Something to tap, as words. */
|
|
72
|
-
tint: 'text-accent';
|
|
72
|
+
readonly tint: 'text-accent';
|
|
73
73
|
/** Something that cannot be undone, as words. */
|
|
74
|
-
destructive: 'text-danger';
|
|
74
|
+
readonly destructive: 'text-danger';
|
|
75
75
|
/** A status that needs attention but is not an error. */
|
|
76
|
-
warning: 'text-warning';
|
|
76
|
+
readonly warning: 'text-warning';
|
|
77
77
|
/** A form field. */
|
|
78
|
-
input: 'min-h-[44px] px-3 rounded-control bg-surface-sunken text-[17px] text-fg';
|
|
78
|
+
readonly input: 'min-h-[44px] px-3 rounded-control bg-surface-sunken text-[17px] text-fg';
|
|
79
79
|
/**
|
|
80
80
|
* A field of several lines. Panel corners, not the control's: an app whose
|
|
81
81
|
* controls are pills would otherwise round a paragraph into a capsule and
|
|
82
82
|
* clip its first and last letters at the ends.
|
|
83
83
|
*/
|
|
84
|
-
textarea: 'min-h-[96px] px-3 py-2.5 rounded-panel bg-surface-sunken text-[17px] text-fg';
|
|
84
|
+
readonly textarea: 'min-h-[96px] px-3 py-2.5 rounded-panel bg-surface-sunken text-[17px] text-fg';
|
|
85
85
|
/** The search field at the top of a list. */
|
|
86
|
-
search: 'flex-row items-center gap-2 mx-4 px-2.5 h-9 rounded-control bg-surface-sunken';
|
|
86
|
+
readonly search: 'flex-row items-center gap-2 mx-4 px-2.5 h-9 rounded-control bg-surface-sunken';
|
|
87
87
|
/** The filled button at the end of a flow, and its words. */
|
|
88
|
-
primaryButton: 'items-center justify-center min-h-[50px] px-4 rounded-control bg-accent-solid';
|
|
89
|
-
primaryButtonText: 'text-[17px] font-semibold text-accent-ink';
|
|
88
|
+
readonly primaryButton: 'items-center justify-center min-h-[50px] px-4 rounded-control bg-accent-solid';
|
|
89
|
+
readonly primaryButtonText: 'text-[17px] font-semibold text-accent-ink';
|
|
90
90
|
/** A quieter button beside it, and its words. */
|
|
91
|
-
secondaryButton: 'items-center justify-center min-h-[44px] px-3 rounded-control bg-surface-sunken';
|
|
92
|
-
secondaryButtonText: 'text-[15px] font-semibold text-fg-strong';
|
|
91
|
+
readonly secondaryButton: 'items-center justify-center min-h-[44px] px-3 rounded-control bg-surface-sunken';
|
|
92
|
+
readonly secondaryButtonText: 'text-[15px] font-semibold text-fg-strong';
|
|
93
93
|
/** A button floating over a map or a photograph. */
|
|
94
|
-
floatingButton: 'items-center justify-center min-h-[44px] px-3 rounded-pill bg-panel shadow-md';
|
|
94
|
+
readonly floatingButton: 'items-center justify-center min-h-[44px] px-3 rounded-pill bg-panel shadow-md';
|
|
95
95
|
/** A filled destructive button, and its words. */
|
|
96
|
-
destructiveButton: 'items-center justify-center min-h-[50px] px-4 rounded-control bg-danger-solid';
|
|
97
|
-
destructiveButtonText: 'text-[17px] font-semibold text-danger-ink';
|
|
96
|
+
readonly destructiveButton: 'items-center justify-center min-h-[50px] px-4 rounded-control bg-danger-solid';
|
|
97
|
+
readonly destructiveButtonText: 'text-[17px] font-semibold text-danger-ink';
|
|
98
98
|
/** A rounded-square icon tile leading a row; its glyph is white. */
|
|
99
|
-
iconTile: 'items-center justify-center h-[29px] w-[29px] rounded-[7px] bg-accent-solid';
|
|
100
|
-
iconGlyph: 'h-[18px] w-[18px] text-white';
|
|
99
|
+
readonly iconTile: 'items-center justify-center h-[29px] w-[29px] rounded-[7px] bg-accent-solid';
|
|
100
|
+
readonly iconGlyph: 'h-[18px] w-[18px] text-white';
|
|
101
101
|
/** A tinted note: a notice, a threat, a status that is good news. */
|
|
102
|
-
noticeAccent: 'p-3 rounded-panel bg-accent-soft';
|
|
103
|
-
noticeAccentText: 'text-[15px] text-accent-soft-ink';
|
|
104
|
-
noticeDanger: 'p-3 rounded-panel bg-danger-soft';
|
|
105
|
-
noticeDangerText: 'text-[15px] text-danger-soft-ink'
|
|
102
|
+
readonly noticeAccent: 'p-3 rounded-panel bg-accent-soft';
|
|
103
|
+
readonly noticeAccentText: 'text-[15px] text-accent-soft-ink';
|
|
104
|
+
readonly noticeDanger: 'p-3 rounded-panel bg-danger-soft';
|
|
105
|
+
readonly noticeDangerText: 'text-[15px] text-danger-soft-ink'
|
|
106
106
|
};
|
|
107
107
|
/** Typography authored in native points, shared with an ordinary browser view. */
|
|
108
108
|
export declare interface NativeTextMetrics {
|
|
@@ -118,3 +118,4 @@ declare type WebTextMetric<Value> = Value extends number ? string : Value;
|
|
|
118
118
|
export type WebTextStyle<T> = {
|
|
119
119
|
[K in keyof T]: K extends 'fontSize' | 'lineHeight' | 'letterSpacing' ? WebTextMetric<T[K]> : T[K]
|
|
120
120
|
}
|
|
121
|
+
export {};
|
package/dist/native-build.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type MacOSSigningOptions } from './native-signing';
|
|
2
|
-
import { type PlistValue } from './info-plist';
|
|
3
|
-
export type { PlistValue } from './info-plist';
|
|
1
|
+
import { type MacOSSigningOptions } from './native-signing.js';
|
|
2
|
+
import { type PlistValue } from './info-plist.js';
|
|
3
|
+
export type { PlistValue } from './info-plist.js';
|
|
4
4
|
/**
|
|
5
5
|
* Build an stx template into a native application
|
|
6
6
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { KeptStore } from './kept-store';
|
|
2
|
-
import type { SharedRequest, SharedRequestOptions } from '../shared-request';
|
|
1
|
+
import type { KeptStore } from './kept-store.js';
|
|
2
|
+
import type { SharedRequest, SharedRequestOptions } from '../shared-request.js';
|
|
3
3
|
/**
|
|
4
4
|
* Whether an outbox entry's `affects` item, or a URL the worker refreshed,
|
|
5
5
|
* names this query: its key, or its URL (an item without a query string
|
package/dist/page-action.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extractBalancedExpression, findMatchingDelimiter, splitByPipe, Tokenizer } from './tokenizer';
|
|
1
|
+
import { extractBalancedExpression, findMatchingDelimiter, splitByPipe, Tokenizer } from './tokenizer.js';
|
|
2
2
|
/**
|
|
3
3
|
* Find all template expressions in source ({{ }} and {!! !!})
|
|
4
4
|
*/
|
package/dist/parser/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export {
|
|
|
20
20
|
type ParsedSwitch,
|
|
21
21
|
parseSwitchBlock,
|
|
22
22
|
type SwitchCase,
|
|
23
|
-
} from './directive-parser';
|
|
23
|
+
} from './directive-parser.js';
|
|
24
24
|
// Expression parser
|
|
25
25
|
export {
|
|
26
26
|
type ExpressionMatch,
|
|
@@ -32,17 +32,17 @@ export {
|
|
|
32
32
|
parseExpressionWithFilters,
|
|
33
33
|
parseScriptDeclarations,
|
|
34
34
|
type ScriptDeclaration,
|
|
35
|
-
} from './expression-parser';
|
|
35
|
+
} from './expression-parser.js';
|
|
36
36
|
// Tokenizer
|
|
37
37
|
export {
|
|
38
38
|
type Token,
|
|
39
39
|
Tokenizer,
|
|
40
40
|
type TokenizerState,
|
|
41
41
|
type TokenType,
|
|
42
|
-
} from './tokenizer';
|
|
42
|
+
} from './tokenizer.js';
|
|
43
43
|
// Expression parsing utilities
|
|
44
44
|
export {
|
|
45
45
|
extractBalancedExpression,
|
|
46
46
|
findMatchingDelimiter,
|
|
47
47
|
splitByPipe,
|
|
48
|
-
} from './tokenizer';
|
|
48
|
+
} from './tokenizer.js';
|
|
@@ -58,8 +58,24 @@ export type TokenType = | 'STRING' // 'string' or "string"
|
|
|
58
58
|
* Tokenizer for template expressions
|
|
59
59
|
*/
|
|
60
60
|
export declare class Tokenizer {
|
|
61
|
+
private source;
|
|
62
|
+
private pos;
|
|
63
|
+
private line;
|
|
64
|
+
private column;
|
|
65
|
+
private tokens;
|
|
61
66
|
constructor(source: string);
|
|
62
67
|
tokenize(): Token[];
|
|
68
|
+
private nextToken;
|
|
69
|
+
private readWhitespace;
|
|
70
|
+
private readLineComment;
|
|
71
|
+
private readBlockComment;
|
|
72
|
+
private readString;
|
|
73
|
+
private readTemplateString;
|
|
74
|
+
private readNumber;
|
|
75
|
+
private readIdentifier;
|
|
76
|
+
private readDirective;
|
|
77
|
+
private advance;
|
|
78
|
+
private peek;
|
|
63
79
|
saveState(): TokenizerState;
|
|
64
80
|
restoreState(state: TokenizerState): void;
|
|
65
81
|
}
|