fuzor 0.4.0 → 0.5.1
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/README.md +36 -88
- package/dist/boundaries.d.ts +5 -0
- package/dist/boundaries.d.ts.map +1 -0
- package/dist/boundaries.js +5 -0
- package/dist/boundaries.js.map +1 -0
- package/dist/browser.d.ts +4 -0
- package/dist/browser.d.ts.map +1 -0
- package/dist/browser.js +4 -0
- package/dist/browser.js.map +1 -0
- package/dist/build-output.d.ts +18 -0
- package/dist/build-output.d.ts.map +1 -0
- package/dist/build-output.js +91 -0
- package/dist/build-output.js.map +1 -0
- package/dist/cli.js +388 -34
- package/dist/cli.js.map +1 -1
- package/dist/compiler/api-routes.d.ts +14 -0
- package/dist/compiler/api-routes.d.ts.map +1 -0
- package/dist/compiler/api-routes.js +66 -0
- package/dist/compiler/api-routes.js.map +1 -0
- package/dist/compiler/base-links.d.ts +7 -0
- package/dist/compiler/base-links.d.ts.map +1 -0
- package/dist/compiler/base-links.js +40 -0
- package/dist/compiler/base-links.js.map +1 -0
- package/dist/compiler/data-document.d.ts +9 -0
- package/dist/compiler/data-document.d.ts.map +1 -0
- package/dist/compiler/data-document.js +21 -0
- package/dist/compiler/data-document.js.map +1 -0
- package/dist/compiler/docs.d.ts +6 -0
- package/dist/compiler/docs.d.ts.map +1 -0
- package/dist/compiler/docs.js +1131 -0
- package/dist/compiler/docs.js.map +1 -0
- package/dist/compiler/highlight.d.ts +13 -0
- package/dist/compiler/highlight.d.ts.map +1 -0
- package/dist/compiler/highlight.js +44 -0
- package/dist/compiler/highlight.js.map +1 -0
- package/dist/compiler/index.d.ts +132 -4
- package/dist/compiler/index.d.ts.map +1 -1
- package/dist/compiler/index.js +845 -48
- package/dist/compiler/index.js.map +1 -1
- package/dist/compiler/inline-assets.d.ts +6 -0
- package/dist/compiler/inline-assets.d.ts.map +1 -0
- package/dist/compiler/inline-assets.js +61 -0
- package/dist/compiler/inline-assets.js.map +1 -0
- package/dist/compiler/inline-modules.d.ts +7 -0
- package/dist/compiler/inline-modules.d.ts.map +1 -0
- package/dist/compiler/inline-modules.js +77 -0
- package/dist/compiler/inline-modules.js.map +1 -0
- package/dist/compiler/island-modules.d.ts +8 -0
- package/dist/compiler/island-modules.d.ts.map +1 -0
- package/dist/compiler/island-modules.js +42 -0
- package/dist/compiler/island-modules.js.map +1 -0
- package/dist/compiler/islands.d.ts +24 -3
- package/dist/compiler/islands.d.ts.map +1 -1
- package/dist/compiler/islands.js +50 -12
- package/dist/compiler/islands.js.map +1 -1
- package/dist/compiler/links.d.ts +37 -0
- package/dist/compiler/links.d.ts.map +1 -0
- package/dist/compiler/links.js +112 -0
- package/dist/compiler/links.js.map +1 -0
- package/dist/compiler/markdown.d.ts +17 -0
- package/dist/compiler/markdown.d.ts.map +1 -0
- package/dist/compiler/markdown.js +92 -0
- package/dist/compiler/markdown.js.map +1 -0
- package/dist/compiler/metadata.d.ts +37 -0
- package/dist/compiler/metadata.d.ts.map +1 -0
- package/dist/compiler/metadata.js +81 -0
- package/dist/compiler/metadata.js.map +1 -0
- package/dist/compiler/native-scripts.d.ts +13 -0
- package/dist/compiler/native-scripts.d.ts.map +1 -0
- package/dist/compiler/native-scripts.js +137 -0
- package/dist/compiler/native-scripts.js.map +1 -0
- package/dist/compiler/page-scripts.d.ts +36 -0
- package/dist/compiler/page-scripts.d.ts.map +1 -0
- package/dist/compiler/page-scripts.js +158 -0
- package/dist/compiler/page-scripts.js.map +1 -0
- package/dist/compiler/route-policy.d.ts +17 -0
- package/dist/compiler/route-policy.d.ts.map +1 -0
- package/dist/compiler/route-policy.js +68 -0
- package/dist/compiler/route-policy.js.map +1 -0
- package/dist/compiler/search.d.ts +13 -0
- package/dist/compiler/search.d.ts.map +1 -0
- package/dist/compiler/search.js +24 -0
- package/dist/compiler/search.js.map +1 -0
- package/dist/compiler/server-modules.d.ts +3 -0
- package/dist/compiler/server-modules.d.ts.map +1 -0
- package/dist/compiler/server-modules.js +31 -0
- package/dist/compiler/server-modules.js.map +1 -0
- package/dist/compiler/static-analysis.d.ts +20 -0
- package/dist/compiler/static-analysis.d.ts.map +1 -0
- package/dist/compiler/static-analysis.js +130 -0
- package/dist/compiler/static-analysis.js.map +1 -0
- package/dist/create-delegate.d.ts +17 -0
- package/dist/create-delegate.d.ts.map +1 -0
- package/dist/create-delegate.js +48 -0
- package/dist/create-delegate.js.map +1 -0
- package/dist/electron.d.ts +5 -0
- package/dist/electron.d.ts.map +1 -0
- package/dist/electron.js +32 -0
- package/dist/electron.js.map +1 -0
- package/dist/html-escape.d.ts +16 -0
- package/dist/html-escape.d.ts.map +1 -0
- package/dist/html-escape.js +26 -0
- package/dist/html-escape.js.map +1 -0
- package/dist/index.d.ts +6 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/islands/hydration.d.ts +7 -0
- package/dist/islands/hydration.d.ts.map +1 -0
- package/dist/islands/hydration.js +12 -0
- package/dist/islands/hydration.js.map +1 -0
- package/dist/islands/react.d.ts +9 -2
- package/dist/islands/react.d.ts.map +1 -1
- package/dist/islands/react.js +73 -14
- package/dist/islands/react.js.map +1 -1
- package/dist/islands/solid.d.ts.map +1 -1
- package/dist/islands/solid.js +10 -1
- package/dist/islands/solid.js.map +1 -1
- package/dist/islands/vue.d.ts.map +1 -1
- package/dist/islands/vue.js +15 -3
- package/dist/islands/vue.js.map +1 -1
- package/dist/module-specifiers.d.ts +5 -0
- package/dist/module-specifiers.d.ts.map +1 -0
- package/dist/module-specifiers.js +80 -0
- package/dist/module-specifiers.js.map +1 -0
- package/dist/route-path.d.ts +33 -0
- package/dist/route-path.d.ts.map +1 -0
- package/dist/route-path.js +81 -0
- package/dist/route-path.js.map +1 -0
- package/dist/route-patterns.d.ts +8 -0
- package/dist/route-patterns.d.ts.map +1 -0
- package/dist/route-patterns.js +84 -0
- package/dist/route-patterns.js.map +1 -0
- package/dist/runtime/activation.d.ts +29 -0
- package/dist/runtime/activation.d.ts.map +1 -0
- package/dist/runtime/activation.js +236 -0
- package/dist/runtime/activation.js.map +1 -0
- package/dist/runtime/browser-navigation.d.ts +20 -0
- package/dist/runtime/browser-navigation.d.ts.map +1 -0
- package/dist/runtime/browser-navigation.js +138 -0
- package/dist/runtime/browser-navigation.js.map +1 -0
- package/dist/runtime/browser-support.d.ts +20 -0
- package/dist/runtime/browser-support.d.ts.map +1 -0
- package/dist/runtime/browser-support.js +39 -0
- package/dist/runtime/browser-support.js.map +1 -0
- package/dist/runtime/capacitor.d.ts +43 -0
- package/dist/runtime/capacitor.d.ts.map +1 -0
- package/dist/runtime/capacitor.js +84 -0
- package/dist/runtime/capacitor.js.map +1 -0
- package/dist/runtime/client-routes.d.ts +4 -0
- package/dist/runtime/client-routes.d.ts.map +1 -0
- package/dist/runtime/client-routes.js +3 -0
- package/dist/runtime/client-routes.js.map +1 -0
- package/dist/runtime/coordinated-navigation.d.ts +7 -0
- package/dist/runtime/coordinated-navigation.d.ts.map +1 -0
- package/dist/runtime/coordinated-navigation.js +50 -0
- package/dist/runtime/coordinated-navigation.js.map +1 -0
- package/dist/runtime/coordinator.d.ts +32 -0
- package/dist/runtime/coordinator.d.ts.map +1 -0
- package/dist/runtime/coordinator.js +115 -0
- package/dist/runtime/coordinator.js.map +1 -0
- package/dist/runtime/data.d.ts +25 -0
- package/dist/runtime/data.d.ts.map +1 -0
- package/dist/runtime/data.js +115 -0
- package/dist/runtime/data.js.map +1 -0
- package/dist/runtime/docs-search.d.ts +13 -0
- package/dist/runtime/docs-search.d.ts.map +1 -0
- package/dist/runtime/docs-search.js +205 -0
- package/dist/runtime/docs-search.js.map +1 -0
- package/dist/runtime/docs-ui.d.ts +7 -0
- package/dist/runtime/docs-ui.d.ts.map +1 -0
- package/dist/runtime/docs-ui.js +85 -0
- package/dist/runtime/docs-ui.js.map +1 -0
- package/dist/runtime/document-navigation.d.ts +9 -0
- package/dist/runtime/document-navigation.d.ts.map +1 -0
- package/dist/runtime/document-navigation.js +27 -0
- package/dist/runtime/document-navigation.js.map +1 -0
- package/dist/runtime/dom-renderer.d.ts +36 -0
- package/dist/runtime/dom-renderer.d.ts.map +1 -0
- package/dist/runtime/dom-renderer.js +173 -0
- package/dist/runtime/dom-renderer.js.map +1 -0
- package/dist/runtime/hash-navigation.d.ts +12 -0
- package/dist/runtime/hash-navigation.d.ts.map +1 -0
- package/dist/runtime/hash-navigation.js +26 -0
- package/dist/runtime/hash-navigation.js.map +1 -0
- package/dist/runtime/history-navigation.d.ts +17 -0
- package/dist/runtime/history-navigation.d.ts.map +1 -0
- package/dist/runtime/history-navigation.js +172 -0
- package/dist/runtime/history-navigation.js.map +1 -0
- package/dist/runtime/href.d.ts +16 -0
- package/dist/runtime/href.d.ts.map +1 -0
- package/dist/runtime/href.js +38 -0
- package/dist/runtime/href.js.map +1 -0
- package/dist/runtime/index.d.ts +73 -26
- package/dist/runtime/index.d.ts.map +1 -1
- package/dist/runtime/index.js +33 -118
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/initial-route.d.ts +8 -0
- package/dist/runtime/initial-route.d.ts.map +1 -0
- package/dist/runtime/initial-route.js +72 -0
- package/dist/runtime/initial-route.js.map +1 -0
- package/dist/runtime/islands.d.ts +19 -5
- package/dist/runtime/islands.d.ts.map +1 -1
- package/dist/runtime/islands.js +15 -41
- package/dist/runtime/islands.js.map +1 -1
- package/dist/runtime/loading.d.ts +12 -0
- package/dist/runtime/loading.d.ts.map +1 -0
- package/dist/runtime/loading.js +43 -0
- package/dist/runtime/loading.js.map +1 -0
- package/dist/runtime/memory-navigation.d.ts +16 -0
- package/dist/runtime/memory-navigation.d.ts.map +1 -0
- package/dist/runtime/memory-navigation.js +98 -0
- package/dist/runtime/memory-navigation.js.map +1 -0
- package/dist/runtime/native.d.ts +108 -0
- package/dist/runtime/native.d.ts.map +1 -0
- package/dist/runtime/native.js +378 -0
- package/dist/runtime/native.js.map +1 -0
- package/dist/runtime/navigation-atom.d.ts +21 -0
- package/dist/runtime/navigation-atom.d.ts.map +1 -0
- package/dist/runtime/navigation-atom.js +76 -0
- package/dist/runtime/navigation-atom.js.map +1 -0
- package/dist/runtime/navigation.d.ts +61 -0
- package/dist/runtime/navigation.d.ts.map +1 -0
- package/dist/runtime/navigation.js +11 -0
- package/dist/runtime/navigation.js.map +1 -0
- package/dist/runtime/page-scripts.d.ts +54 -0
- package/dist/runtime/page-scripts.d.ts.map +1 -0
- package/dist/runtime/page-scripts.js +207 -0
- package/dist/runtime/page-scripts.js.map +1 -0
- package/dist/runtime/route-matches.d.ts +17 -0
- package/dist/runtime/route-matches.d.ts.map +1 -0
- package/dist/runtime/route-matches.js +50 -0
- package/dist/runtime/route-matches.js.map +1 -0
- package/dist/runtime/router-embedded.d.ts +28 -0
- package/dist/runtime/router-embedded.d.ts.map +1 -0
- package/dist/runtime/router-embedded.js +12 -0
- package/dist/runtime/router-embedded.js.map +1 -0
- package/dist/runtime/router-navigation-api.d.ts +28 -0
- package/dist/runtime/router-navigation-api.d.ts.map +1 -0
- package/dist/runtime/router-navigation-api.js +13 -0
- package/dist/runtime/router-navigation-api.js.map +1 -0
- package/dist/runtime/router.d.ts +137 -0
- package/dist/runtime/router.d.ts.map +1 -0
- package/dist/runtime/router.js +678 -0
- package/dist/runtime/router.js.map +1 -0
- package/dist/runtime/stale-deployment.d.ts +7 -0
- package/dist/runtime/stale-deployment.d.ts.map +1 -0
- package/dist/runtime/stale-deployment.js +30 -0
- package/dist/runtime/stale-deployment.js.map +1 -0
- package/dist/runtime/user-input.d.ts +25 -0
- package/dist/runtime/user-input.d.ts.map +1 -0
- package/dist/runtime/user-input.js +81 -0
- package/dist/runtime/user-input.js.map +1 -0
- package/dist/runtimes.d.ts +43 -0
- package/dist/runtimes.d.ts.map +1 -0
- package/dist/runtimes.js +152 -0
- package/dist/runtimes.js.map +1 -0
- package/dist/server/node.d.ts +47 -2
- package/dist/server/node.d.ts.map +1 -1
- package/dist/server/node.js +185 -23
- package/dist/server/node.js.map +1 -1
- package/dist/server/static.d.ts +11 -0
- package/dist/server/static.d.ts.map +1 -0
- package/dist/server/static.js +61 -0
- package/dist/server/static.js.map +1 -0
- package/dist/server-api.d.ts +73 -0
- package/dist/server-api.d.ts.map +1 -0
- package/dist/server-api.js +171 -0
- package/dist/server-api.js.map +1 -0
- package/dist/server-components/browser.d.ts +75 -0
- package/dist/server-components/browser.d.ts.map +1 -0
- package/dist/server-components/browser.js +558 -0
- package/dist/server-components/browser.js.map +1 -0
- package/dist/server-components/closures.d.ts +21 -0
- package/dist/server-components/closures.d.ts.map +1 -0
- package/dist/server-components/closures.js +192 -0
- package/dist/server-components/closures.js.map +1 -0
- package/dist/server-components/compiler.d.ts +6 -0
- package/dist/server-components/compiler.d.ts.map +1 -0
- package/dist/server-components/compiler.js +118 -0
- package/dist/server-components/compiler.js.map +1 -0
- package/dist/server-components/environment.d.ts +3 -0
- package/dist/server-components/environment.d.ts.map +1 -0
- package/dist/server-components/environment.js +11 -0
- package/dist/server-components/environment.js.map +1 -0
- package/dist/server-components/navigation.d.ts +10 -0
- package/dist/server-components/navigation.d.ts.map +1 -0
- package/dist/server-components/navigation.js +105 -0
- package/dist/server-components/navigation.js.map +1 -0
- package/dist/server-components/protocol.d.ts +77 -0
- package/dist/server-components/protocol.d.ts.map +1 -0
- package/dist/server-components/protocol.js +110 -0
- package/dist/server-components/protocol.js.map +1 -0
- package/dist/server-components/references.d.ts +22 -0
- package/dist/server-components/references.d.ts.map +1 -0
- package/dist/server-components/references.js +94 -0
- package/dist/server-components/references.js.map +1 -0
- package/dist/server-components/server.d.ts +78 -0
- package/dist/server-components/server.d.ts.map +1 -0
- package/dist/server-components/server.js +278 -0
- package/dist/server-components/server.js.map +1 -0
- package/dist/server-components/stream.d.ts +15 -0
- package/dist/server-components/stream.d.ts.map +1 -0
- package/dist/server-components/stream.js +72 -0
- package/dist/server-components/stream.js.map +1 -0
- package/dist/server-cookies.d.ts +41 -0
- package/dist/server-cookies.d.ts.map +1 -0
- package/dist/server-cookies.js +120 -0
- package/dist/server-cookies.js.map +1 -0
- package/dist/server-data.d.ts +51 -0
- package/dist/server-data.d.ts.map +1 -0
- package/dist/server-data.js +37 -0
- package/dist/server-data.js.map +1 -0
- package/dist/server.d.ts +57 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +244 -13
- package/dist/server.js.map +1 -1
- package/dist/ui/behaviors/accordion.d.ts +14 -0
- package/dist/ui/behaviors/accordion.d.ts.map +1 -0
- package/dist/ui/behaviors/accordion.js +149 -0
- package/dist/ui/behaviors/accordion.js.map +1 -0
- package/dist/ui/behaviors/catalogue.d.ts +63 -0
- package/dist/ui/behaviors/catalogue.d.ts.map +1 -0
- package/dist/ui/behaviors/catalogue.js +284 -0
- package/dist/ui/behaviors/catalogue.js.map +1 -0
- package/dist/ui/behaviors/collapsible.d.ts +26 -0
- package/dist/ui/behaviors/collapsible.d.ts.map +1 -0
- package/dist/ui/behaviors/collapsible.js +145 -0
- package/dist/ui/behaviors/collapsible.js.map +1 -0
- package/dist/ui/behaviors/dialog.d.ts +16 -0
- package/dist/ui/behaviors/dialog.d.ts.map +1 -0
- package/dist/ui/behaviors/dialog.js +225 -0
- package/dist/ui/behaviors/dialog.js.map +1 -0
- package/dist/ui/behaviors/lifecycle.d.ts +15 -0
- package/dist/ui/behaviors/lifecycle.d.ts.map +1 -0
- package/dist/ui/behaviors/lifecycle.js +51 -0
- package/dist/ui/behaviors/lifecycle.js.map +1 -0
- package/dist/ui/behaviors/menu.d.ts +15 -0
- package/dist/ui/behaviors/menu.d.ts.map +1 -0
- package/dist/ui/behaviors/menu.js +162 -0
- package/dist/ui/behaviors/menu.js.map +1 -0
- package/dist/ui/behaviors/ownership.d.ts +7 -0
- package/dist/ui/behaviors/ownership.d.ts.map +1 -0
- package/dist/ui/behaviors/ownership.js +16 -0
- package/dist/ui/behaviors/ownership.js.map +1 -0
- package/dist/ui/behaviors/popover.d.ts +16 -0
- package/dist/ui/behaviors/popover.d.ts.map +1 -0
- package/dist/ui/behaviors/popover.js +90 -0
- package/dist/ui/behaviors/popover.js.map +1 -0
- package/dist/ui/behaviors/select.d.ts +37 -0
- package/dist/ui/behaviors/select.d.ts.map +1 -0
- package/dist/ui/behaviors/select.js +261 -0
- package/dist/ui/behaviors/select.js.map +1 -0
- package/dist/ui/behaviors/switch.d.ts +43 -0
- package/dist/ui/behaviors/switch.d.ts.map +1 -0
- package/dist/ui/behaviors/switch.js +269 -0
- package/dist/ui/behaviors/switch.js.map +1 -0
- package/dist/ui/behaviors/tabs.d.ts +4 -0
- package/dist/ui/behaviors/tabs.d.ts.map +1 -0
- package/dist/ui/behaviors/tabs.js +121 -0
- package/dist/ui/behaviors/tabs.js.map +1 -0
- package/dist/ui/behaviors/toolbar.d.ts +4 -0
- package/dist/ui/behaviors/toolbar.d.ts.map +1 -0
- package/dist/ui/behaviors/toolbar.js +81 -0
- package/dist/ui/behaviors/toolbar.js.map +1 -0
- package/dist/ui/behaviors/tooltip.d.ts +16 -0
- package/dist/ui/behaviors/tooltip.d.ts.map +1 -0
- package/dist/ui/behaviors/tooltip.js +91 -0
- package/dist/ui/behaviors/tooltip.js.map +1 -0
- package/dist/ui/behaviors/types.d.ts +51 -0
- package/dist/ui/behaviors/types.d.ts.map +1 -0
- package/dist/ui/behaviors/types.js +2 -0
- package/dist/ui/behaviors/types.js.map +1 -0
- package/dist/ui/catalogue-loaders.d.ts +4 -0
- package/dist/ui/catalogue-loaders.d.ts.map +1 -0
- package/dist/ui/catalogue-loaders.js +45 -0
- package/dist/ui/catalogue-loaders.js.map +1 -0
- package/dist/ui/catalogue.d.ts +465 -0
- package/dist/ui/catalogue.d.ts.map +1 -0
- package/dist/ui/catalogue.js +1570 -0
- package/dist/ui/catalogue.js.map +1 -0
- package/dist/ui/checkpoints.d.ts +20 -0
- package/dist/ui/checkpoints.d.ts.map +1 -0
- package/dist/ui/checkpoints.js +118 -0
- package/dist/ui/checkpoints.js.map +1 -0
- package/dist/ui/components/accordion/accordion.d.ts +22 -0
- package/dist/ui/components/accordion/accordion.d.ts.map +1 -0
- package/dist/ui/components/accordion/accordion.js +47 -0
- package/dist/ui/components/accordion/accordion.js.map +1 -0
- package/dist/ui/components/accordion/index.d.ts +2 -0
- package/dist/ui/components/accordion/index.d.ts.map +1 -0
- package/dist/ui/components/accordion/index.js +2 -0
- package/dist/ui/components/accordion/index.js.map +1 -0
- package/dist/ui/components/angle-slider/index.d.ts +5 -0
- package/dist/ui/components/angle-slider/index.d.ts.map +1 -0
- package/dist/ui/components/angle-slider/index.js +7 -0
- package/dist/ui/components/angle-slider/index.js.map +1 -0
- package/dist/ui/components/async-list/index.d.ts +5 -0
- package/dist/ui/components/async-list/index.d.ts.map +1 -0
- package/dist/ui/components/async-list/index.js +7 -0
- package/dist/ui/components/async-list/index.js.map +1 -0
- package/dist/ui/components/avatar/index.d.ts +5 -0
- package/dist/ui/components/avatar/index.d.ts.map +1 -0
- package/dist/ui/components/avatar/index.js +7 -0
- package/dist/ui/components/avatar/index.js.map +1 -0
- package/dist/ui/components/badge/badge.d.ts +6 -0
- package/dist/ui/components/badge/badge.d.ts.map +1 -0
- package/dist/ui/components/badge/badge.js +11 -0
- package/dist/ui/components/badge/badge.js.map +1 -0
- package/dist/ui/components/badge/index.d.ts +2 -0
- package/dist/ui/components/badge/index.d.ts.map +1 -0
- package/dist/ui/components/badge/index.js +2 -0
- package/dist/ui/components/badge/index.js.map +1 -0
- package/dist/ui/components/button/button.d.ts +26 -0
- package/dist/ui/components/button/button.d.ts.map +1 -0
- package/dist/ui/components/button/button.js +116 -0
- package/dist/ui/components/button/button.js.map +1 -0
- package/dist/ui/components/button/index.d.ts +2 -0
- package/dist/ui/components/button/index.d.ts.map +1 -0
- package/dist/ui/components/button/index.js +2 -0
- package/dist/ui/components/button/index.js.map +1 -0
- package/dist/ui/components/card/card.d.ts +21 -0
- package/dist/ui/components/card/card.d.ts.map +1 -0
- package/dist/ui/components/card/card.js +41 -0
- package/dist/ui/components/card/card.js.map +1 -0
- package/dist/ui/components/card/index.d.ts +2 -0
- package/dist/ui/components/card/index.d.ts.map +1 -0
- package/dist/ui/components/card/index.js +2 -0
- package/dist/ui/components/card/index.js.map +1 -0
- package/dist/ui/components/carousel/index.d.ts +5 -0
- package/dist/ui/components/carousel/index.d.ts.map +1 -0
- package/dist/ui/components/carousel/index.js +7 -0
- package/dist/ui/components/carousel/index.js.map +1 -0
- package/dist/ui/components/cascade-select/index.d.ts +7 -0
- package/dist/ui/components/cascade-select/index.d.ts.map +1 -0
- package/dist/ui/components/cascade-select/index.js +8 -0
- package/dist/ui/components/cascade-select/index.js.map +1 -0
- package/dist/ui/components/checkbox/index.d.ts +5 -0
- package/dist/ui/components/checkbox/index.d.ts.map +1 -0
- package/dist/ui/components/checkbox/index.js +7 -0
- package/dist/ui/components/checkbox/index.js.map +1 -0
- package/dist/ui/components/clipboard/index.d.ts +5 -0
- package/dist/ui/components/clipboard/index.d.ts.map +1 -0
- package/dist/ui/components/clipboard/index.js +7 -0
- package/dist/ui/components/clipboard/index.js.map +1 -0
- package/dist/ui/components/collapsible/collapsible.d.ts +21 -0
- package/dist/ui/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/ui/components/collapsible/collapsible.js +39 -0
- package/dist/ui/components/collapsible/collapsible.js.map +1 -0
- package/dist/ui/components/collapsible/index.d.ts +2 -0
- package/dist/ui/components/collapsible/index.d.ts.map +1 -0
- package/dist/ui/components/collapsible/index.js +2 -0
- package/dist/ui/components/collapsible/index.js.map +1 -0
- package/dist/ui/components/color-picker/index.d.ts +7 -0
- package/dist/ui/components/color-picker/index.d.ts.map +1 -0
- package/dist/ui/components/color-picker/index.js +8 -0
- package/dist/ui/components/color-picker/index.js.map +1 -0
- package/dist/ui/components/combobox/index.d.ts +7 -0
- package/dist/ui/components/combobox/index.d.ts.map +1 -0
- package/dist/ui/components/combobox/index.js +8 -0
- package/dist/ui/components/combobox/index.js.map +1 -0
- package/dist/ui/components/date-input/index.d.ts +7 -0
- package/dist/ui/components/date-input/index.d.ts.map +1 -0
- package/dist/ui/components/date-input/index.js +8 -0
- package/dist/ui/components/date-input/index.js.map +1 -0
- package/dist/ui/components/date-picker/index.d.ts +7 -0
- package/dist/ui/components/date-picker/index.d.ts.map +1 -0
- package/dist/ui/components/date-picker/index.js +8 -0
- package/dist/ui/components/date-picker/index.js.map +1 -0
- package/dist/ui/components/dialog/dialog.d.ts +44 -0
- package/dist/ui/components/dialog/dialog.d.ts.map +1 -0
- package/dist/ui/components/dialog/dialog.js +105 -0
- package/dist/ui/components/dialog/dialog.js.map +1 -0
- package/dist/ui/components/dialog/index.d.ts +2 -0
- package/dist/ui/components/dialog/index.d.ts.map +1 -0
- package/dist/ui/components/dialog/index.js +2 -0
- package/dist/ui/components/dialog/index.js.map +1 -0
- package/dist/ui/components/drawer/index.d.ts +5 -0
- package/dist/ui/components/drawer/index.d.ts.map +1 -0
- package/dist/ui/components/drawer/index.js +7 -0
- package/dist/ui/components/drawer/index.js.map +1 -0
- package/dist/ui/components/editable/index.d.ts +5 -0
- package/dist/ui/components/editable/index.d.ts.map +1 -0
- package/dist/ui/components/editable/index.js +7 -0
- package/dist/ui/components/editable/index.js.map +1 -0
- package/dist/ui/components/file-upload/index.d.ts +5 -0
- package/dist/ui/components/file-upload/index.d.ts.map +1 -0
- package/dist/ui/components/file-upload/index.js +7 -0
- package/dist/ui/components/file-upload/index.js.map +1 -0
- package/dist/ui/components/floating-panel/index.d.ts +5 -0
- package/dist/ui/components/floating-panel/index.d.ts.map +1 -0
- package/dist/ui/components/floating-panel/index.js +7 -0
- package/dist/ui/components/floating-panel/index.js.map +1 -0
- package/dist/ui/components/hover-card/index.d.ts +5 -0
- package/dist/ui/components/hover-card/index.d.ts.map +1 -0
- package/dist/ui/components/hover-card/index.js +7 -0
- package/dist/ui/components/hover-card/index.js.map +1 -0
- package/dist/ui/components/image-cropper/index.d.ts +5 -0
- package/dist/ui/components/image-cropper/index.d.ts.map +1 -0
- package/dist/ui/components/image-cropper/index.js +7 -0
- package/dist/ui/components/image-cropper/index.js.map +1 -0
- package/dist/ui/components/index.d.ts +61 -0
- package/dist/ui/components/index.d.ts.map +1 -0
- package/dist/ui/components/index.js +186 -0
- package/dist/ui/components/index.js.map +1 -0
- package/dist/ui/components/layout/box.d.ts +11 -0
- package/dist/ui/components/layout/box.d.ts.map +1 -0
- package/dist/ui/components/layout/box.js +44 -0
- package/dist/ui/components/layout/box.js.map +1 -0
- package/dist/ui/components/layout/container.d.ts +9 -0
- package/dist/ui/components/layout/container.d.ts.map +1 -0
- package/dist/ui/components/layout/container.js +38 -0
- package/dist/ui/components/layout/container.js.map +1 -0
- package/dist/ui/components/layout/flex.d.ts +10 -0
- package/dist/ui/components/layout/flex.d.ts.map +1 -0
- package/dist/ui/components/layout/flex.js +53 -0
- package/dist/ui/components/layout/flex.js.map +1 -0
- package/dist/ui/components/layout/grid.d.ts +10 -0
- package/dist/ui/components/layout/grid.d.ts.map +1 -0
- package/dist/ui/components/layout/grid.js +47 -0
- package/dist/ui/components/layout/grid.js.map +1 -0
- package/dist/ui/components/layout/index.d.ts +6 -0
- package/dist/ui/components/layout/index.d.ts.map +1 -0
- package/dist/ui/components/layout/index.js +6 -0
- package/dist/ui/components/layout/index.js.map +1 -0
- package/dist/ui/components/layout/stack.d.ts +9 -0
- package/dist/ui/components/layout/stack.d.ts.map +1 -0
- package/dist/ui/components/layout/stack.js +37 -0
- package/dist/ui/components/layout/stack.js.map +1 -0
- package/dist/ui/components/listbox/index.d.ts +8 -0
- package/dist/ui/components/listbox/index.d.ts.map +1 -0
- package/dist/ui/components/listbox/index.js +9 -0
- package/dist/ui/components/listbox/index.js.map +1 -0
- package/dist/ui/components/marquee/index.d.ts +5 -0
- package/dist/ui/components/marquee/index.d.ts.map +1 -0
- package/dist/ui/components/marquee/index.js +7 -0
- package/dist/ui/components/marquee/index.js.map +1 -0
- package/dist/ui/components/menu/index.d.ts +2 -0
- package/dist/ui/components/menu/index.d.ts.map +1 -0
- package/dist/ui/components/menu/index.js +2 -0
- package/dist/ui/components/menu/index.js.map +1 -0
- package/dist/ui/components/menu/menu.d.ts +23 -0
- package/dist/ui/components/menu/menu.d.ts.map +1 -0
- package/dist/ui/components/menu/menu.js +45 -0
- package/dist/ui/components/menu/menu.js.map +1 -0
- package/dist/ui/components/navigation/breadcrumbs.d.ts +19 -0
- package/dist/ui/components/navigation/breadcrumbs.d.ts.map +1 -0
- package/dist/ui/components/navigation/breadcrumbs.js +90 -0
- package/dist/ui/components/navigation/breadcrumbs.js.map +1 -0
- package/dist/ui/components/navigation/index.d.ts +6 -0
- package/dist/ui/components/navigation/index.d.ts.map +1 -0
- package/dist/ui/components/navigation/index.js +6 -0
- package/dist/ui/components/navigation/index.js.map +1 -0
- package/dist/ui/components/navigation/prose.d.ts +6 -0
- package/dist/ui/components/navigation/prose.d.ts.map +1 -0
- package/dist/ui/components/navigation/prose.js +11 -0
- package/dist/ui/components/navigation/prose.js.map +1 -0
- package/dist/ui/components/navigation/sidebar.d.ts +10 -0
- package/dist/ui/components/navigation/sidebar.d.ts.map +1 -0
- package/dist/ui/components/navigation/sidebar.js +35 -0
- package/dist/ui/components/navigation/sidebar.js.map +1 -0
- package/dist/ui/components/navigation/toc.d.ts +11 -0
- package/dist/ui/components/navigation/toc.d.ts.map +1 -0
- package/dist/ui/components/navigation/toc.js +82 -0
- package/dist/ui/components/navigation/toc.js.map +1 -0
- package/dist/ui/components/navigation-menu/index.d.ts +5 -0
- package/dist/ui/components/navigation-menu/index.d.ts.map +1 -0
- package/dist/ui/components/navigation-menu/index.js +7 -0
- package/dist/ui/components/navigation-menu/index.js.map +1 -0
- package/dist/ui/components/number-input/index.d.ts +5 -0
- package/dist/ui/components/number-input/index.d.ts.map +1 -0
- package/dist/ui/components/number-input/index.js +7 -0
- package/dist/ui/components/number-input/index.js.map +1 -0
- package/dist/ui/components/pagination/index.d.ts +5 -0
- package/dist/ui/components/pagination/index.d.ts.map +1 -0
- package/dist/ui/components/pagination/index.js +7 -0
- package/dist/ui/components/pagination/index.js.map +1 -0
- package/dist/ui/components/password-input/index.d.ts +5 -0
- package/dist/ui/components/password-input/index.d.ts.map +1 -0
- package/dist/ui/components/password-input/index.js +7 -0
- package/dist/ui/components/password-input/index.js.map +1 -0
- package/dist/ui/components/pin-input/index.d.ts +5 -0
- package/dist/ui/components/pin-input/index.d.ts.map +1 -0
- package/dist/ui/components/pin-input/index.js +7 -0
- package/dist/ui/components/pin-input/index.js.map +1 -0
- package/dist/ui/components/popover/index.d.ts +2 -0
- package/dist/ui/components/popover/index.d.ts.map +1 -0
- package/dist/ui/components/popover/index.js +2 -0
- package/dist/ui/components/popover/index.js.map +1 -0
- package/dist/ui/components/popover/popover.d.ts +14 -0
- package/dist/ui/components/popover/popover.d.ts.map +1 -0
- package/dist/ui/components/popover/popover.js +22 -0
- package/dist/ui/components/popover/popover.js.map +1 -0
- package/dist/ui/components/presence/index.d.ts +5 -0
- package/dist/ui/components/presence/index.d.ts.map +1 -0
- package/dist/ui/components/presence/index.js +7 -0
- package/dist/ui/components/presence/index.js.map +1 -0
- package/dist/ui/components/progress/index.d.ts +5 -0
- package/dist/ui/components/progress/index.d.ts.map +1 -0
- package/dist/ui/components/progress/index.js +7 -0
- package/dist/ui/components/progress/index.js.map +1 -0
- package/dist/ui/components/qr-code/index.d.ts +5 -0
- package/dist/ui/components/qr-code/index.d.ts.map +1 -0
- package/dist/ui/components/qr-code/index.js +7 -0
- package/dist/ui/components/qr-code/index.js.map +1 -0
- package/dist/ui/components/radio-group/index.d.ts +5 -0
- package/dist/ui/components/radio-group/index.d.ts.map +1 -0
- package/dist/ui/components/radio-group/index.js +7 -0
- package/dist/ui/components/radio-group/index.js.map +1 -0
- package/dist/ui/components/rating-group/index.d.ts +5 -0
- package/dist/ui/components/rating-group/index.d.ts.map +1 -0
- package/dist/ui/components/rating-group/index.js +7 -0
- package/dist/ui/components/rating-group/index.js.map +1 -0
- package/dist/ui/components/resize-handle/index.d.ts +2 -0
- package/dist/ui/components/resize-handle/index.d.ts.map +1 -0
- package/dist/ui/components/resize-handle/index.js +2 -0
- package/dist/ui/components/resize-handle/index.js.map +1 -0
- package/dist/ui/components/resize-handle/resize-handle.d.ts +39 -0
- package/dist/ui/components/resize-handle/resize-handle.d.ts.map +1 -0
- package/dist/ui/components/resize-handle/resize-handle.js +170 -0
- package/dist/ui/components/resize-handle/resize-handle.js.map +1 -0
- package/dist/ui/components/scroll-area/index.d.ts +5 -0
- package/dist/ui/components/scroll-area/index.d.ts.map +1 -0
- package/dist/ui/components/scroll-area/index.js +7 -0
- package/dist/ui/components/scroll-area/index.js.map +1 -0
- package/dist/ui/components/select/index.d.ts +2 -0
- package/dist/ui/components/select/index.d.ts.map +1 -0
- package/dist/ui/components/select/index.js +2 -0
- package/dist/ui/components/select/index.js.map +1 -0
- package/dist/ui/components/select/select.d.ts +40 -0
- package/dist/ui/components/select/select.d.ts.map +1 -0
- package/dist/ui/components/select/select.js +57 -0
- package/dist/ui/components/select/select.js.map +1 -0
- package/dist/ui/components/separator/index.d.ts +2 -0
- package/dist/ui/components/separator/index.d.ts.map +1 -0
- package/dist/ui/components/separator/index.js +2 -0
- package/dist/ui/components/separator/index.js.map +1 -0
- package/dist/ui/components/separator/separator.d.ts +9 -0
- package/dist/ui/components/separator/separator.d.ts.map +1 -0
- package/dist/ui/components/separator/separator.js +27 -0
- package/dist/ui/components/separator/separator.js.map +1 -0
- package/dist/ui/components/signature-pad/index.d.ts +5 -0
- package/dist/ui/components/signature-pad/index.d.ts.map +1 -0
- package/dist/ui/components/signature-pad/index.js +7 -0
- package/dist/ui/components/signature-pad/index.js.map +1 -0
- package/dist/ui/components/slider/index.d.ts +5 -0
- package/dist/ui/components/slider/index.d.ts.map +1 -0
- package/dist/ui/components/slider/index.js +7 -0
- package/dist/ui/components/slider/index.js.map +1 -0
- package/dist/ui/components/splitter/index.d.ts +5 -0
- package/dist/ui/components/splitter/index.d.ts.map +1 -0
- package/dist/ui/components/splitter/index.js +7 -0
- package/dist/ui/components/splitter/index.js.map +1 -0
- package/dist/ui/components/steps/index.d.ts +5 -0
- package/dist/ui/components/steps/index.d.ts.map +1 -0
- package/dist/ui/components/steps/index.js +7 -0
- package/dist/ui/components/steps/index.js.map +1 -0
- package/dist/ui/components/switch/index.d.ts +2 -0
- package/dist/ui/components/switch/index.d.ts.map +1 -0
- package/dist/ui/components/switch/index.js +2 -0
- package/dist/ui/components/switch/index.js.map +1 -0
- package/dist/ui/components/switch/switch.d.ts +48 -0
- package/dist/ui/components/switch/switch.d.ts.map +1 -0
- package/dist/ui/components/switch/switch.js +64 -0
- package/dist/ui/components/switch/switch.js.map +1 -0
- package/dist/ui/components/tabs/index.d.ts +2 -0
- package/dist/ui/components/tabs/index.d.ts.map +1 -0
- package/dist/ui/components/tabs/index.js +2 -0
- package/dist/ui/components/tabs/index.js.map +1 -0
- package/dist/ui/components/tabs/tabs.d.ts +22 -0
- package/dist/ui/components/tabs/tabs.d.ts.map +1 -0
- package/dist/ui/components/tabs/tabs.js +89 -0
- package/dist/ui/components/tabs/tabs.js.map +1 -0
- package/dist/ui/components/tags-input/index.d.ts +5 -0
- package/dist/ui/components/tags-input/index.d.ts.map +1 -0
- package/dist/ui/components/tags-input/index.js +7 -0
- package/dist/ui/components/tags-input/index.js.map +1 -0
- package/dist/ui/components/timer/index.d.ts +7 -0
- package/dist/ui/components/timer/index.d.ts.map +1 -0
- package/dist/ui/components/timer/index.js +8 -0
- package/dist/ui/components/timer/index.js.map +1 -0
- package/dist/ui/components/toast/index.d.ts +7 -0
- package/dist/ui/components/toast/index.d.ts.map +1 -0
- package/dist/ui/components/toast/index.js +8 -0
- package/dist/ui/components/toast/index.js.map +1 -0
- package/dist/ui/components/toc/index.d.ts +5 -0
- package/dist/ui/components/toc/index.d.ts.map +1 -0
- package/dist/ui/components/toc/index.js +7 -0
- package/dist/ui/components/toc/index.js.map +1 -0
- package/dist/ui/components/toggle/index.d.ts +5 -0
- package/dist/ui/components/toggle/index.d.ts.map +1 -0
- package/dist/ui/components/toggle/index.js +7 -0
- package/dist/ui/components/toggle/index.js.map +1 -0
- package/dist/ui/components/toggle-group/index.d.ts +5 -0
- package/dist/ui/components/toggle-group/index.d.ts.map +1 -0
- package/dist/ui/components/toggle-group/index.js +7 -0
- package/dist/ui/components/toggle-group/index.js.map +1 -0
- package/dist/ui/components/toolbar/index.d.ts +11 -0
- package/dist/ui/components/toolbar/index.d.ts.map +1 -0
- package/dist/ui/components/toolbar/index.js +18 -0
- package/dist/ui/components/toolbar/index.js.map +1 -0
- package/dist/ui/components/tooltip/index.d.ts +2 -0
- package/dist/ui/components/tooltip/index.d.ts.map +1 -0
- package/dist/ui/components/tooltip/index.js +2 -0
- package/dist/ui/components/tooltip/index.js.map +1 -0
- package/dist/ui/components/tooltip/tooltip.d.ts +14 -0
- package/dist/ui/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/ui/components/tooltip/tooltip.js +22 -0
- package/dist/ui/components/tooltip/tooltip.js.map +1 -0
- package/dist/ui/components/tour/index.d.ts +5 -0
- package/dist/ui/components/tour/index.d.ts.map +1 -0
- package/dist/ui/components/tour/index.js +7 -0
- package/dist/ui/components/tour/index.js.map +1 -0
- package/dist/ui/components/tree-view/index.d.ts +7 -0
- package/dist/ui/components/tree-view/index.d.ts.map +1 -0
- package/dist/ui/components/tree-view/index.js +8 -0
- package/dist/ui/components/tree-view/index.js.map +1 -0
- package/dist/ui/core/button-behavior.d.ts +3 -0
- package/dist/ui/core/button-behavior.d.ts.map +1 -0
- package/dist/ui/core/button-behavior.js +50 -0
- package/dist/ui/core/button-behavior.js.map +1 -0
- package/dist/ui/core/catalogue-element.d.ts +6 -0
- package/dist/ui/core/catalogue-element.d.ts.map +1 -0
- package/dist/ui/core/catalogue-element.js +28 -0
- package/dist/ui/core/catalogue-element.js.map +1 -0
- package/dist/ui/core/component-styles.d.ts +2 -0
- package/dist/ui/core/component-styles.d.ts.map +1 -0
- package/dist/ui/core/component-styles.js +77 -0
- package/dist/ui/core/component-styles.js.map +1 -0
- package/dist/ui/core/element.d.ts +12 -0
- package/dist/ui/core/element.d.ts.map +1 -0
- package/dist/ui/core/element.js +57 -0
- package/dist/ui/core/element.js.map +1 -0
- package/dist/ui/core/events.d.ts +6 -0
- package/dist/ui/core/events.d.ts.map +1 -0
- package/dist/ui/core/events.js +13 -0
- package/dist/ui/core/events.js.map +1 -0
- package/dist/ui/core/form-control.d.ts +4 -0
- package/dist/ui/core/form-control.d.ts.map +1 -0
- package/dist/ui/core/form-control.js +25 -0
- package/dist/ui/core/form-control.js.map +1 -0
- package/dist/ui/core/index.d.ts +5 -0
- package/dist/ui/core/index.d.ts.map +1 -0
- package/dist/ui/core/index.js +5 -0
- package/dist/ui/core/index.js.map +1 -0
- package/dist/ui/core/layout-styles.d.ts +2 -0
- package/dist/ui/core/layout-styles.d.ts.map +1 -0
- package/dist/ui/core/layout-styles.js +58 -0
- package/dist/ui/core/layout-styles.js.map +1 -0
- package/dist/ui/core/machine-checkpoints.d.ts +6 -0
- package/dist/ui/core/machine-checkpoints.d.ts.map +1 -0
- package/dist/ui/core/machine-checkpoints.js +47 -0
- package/dist/ui/core/machine-checkpoints.js.map +1 -0
- package/dist/ui/core/machine-clock.d.ts +16 -0
- package/dist/ui/core/machine-clock.d.ts.map +1 -0
- package/dist/ui/core/machine-clock.js +89 -0
- package/dist/ui/core/machine-clock.js.map +1 -0
- package/dist/ui/core/machine-codec.d.ts +29 -0
- package/dist/ui/core/machine-codec.d.ts.map +1 -0
- package/dist/ui/core/machine-codec.js +217 -0
- package/dist/ui/core/machine-codec.js.map +1 -0
- package/dist/ui/core/machine-profiles.d.ts +437 -0
- package/dist/ui/core/machine-profiles.d.ts.map +1 -0
- package/dist/ui/core/machine-profiles.js +1175 -0
- package/dist/ui/core/machine-profiles.js.map +1 -0
- package/dist/ui/core/machine-resources.d.ts +6 -0
- package/dist/ui/core/machine-resources.d.ts.map +1 -0
- package/dist/ui/core/machine-resources.js +46 -0
- package/dist/ui/core/machine-resources.js.map +1 -0
- package/dist/ui/core/machine.d.ts +29 -0
- package/dist/ui/core/machine.d.ts.map +1 -0
- package/dist/ui/core/machine.js +111 -0
- package/dist/ui/core/machine.js.map +1 -0
- package/dist/ui/core/parts.d.ts +4 -0
- package/dist/ui/core/parts.d.ts.map +1 -0
- package/dist/ui/core/parts.js +33 -0
- package/dist/ui/core/parts.js.map +1 -0
- package/dist/ui/core/portal.d.ts +11 -0
- package/dist/ui/core/portal.d.ts.map +1 -0
- package/dist/ui/core/portal.js +71 -0
- package/dist/ui/core/portal.js.map +1 -0
- package/dist/ui/core/public-machine.d.ts +4 -0
- package/dist/ui/core/public-machine.d.ts.map +1 -0
- package/dist/ui/core/public-machine.js +26 -0
- package/dist/ui/core/public-machine.js.map +1 -0
- package/dist/ui/core/resumable-machine.d.ts +13 -0
- package/dist/ui/core/resumable-machine.d.ts.map +1 -0
- package/dist/ui/core/resumable-machine.js +336 -0
- package/dist/ui/core/resumable-machine.js.map +1 -0
- package/dist/ui/drivers/bulma.d.ts +3 -0
- package/dist/ui/drivers/bulma.d.ts.map +1 -0
- package/dist/ui/drivers/bulma.js +249 -0
- package/dist/ui/drivers/bulma.js.map +1 -0
- package/dist/ui/drivers/daisyui.d.ts +9 -0
- package/dist/ui/drivers/daisyui.d.ts.map +1 -0
- package/dist/ui/drivers/daisyui.js +107 -0
- package/dist/ui/drivers/daisyui.js.map +1 -0
- package/dist/ui/drivers/index.d.ts +7 -0
- package/dist/ui/drivers/index.d.ts.map +1 -0
- package/dist/ui/drivers/index.js +7 -0
- package/dist/ui/drivers/index.js.map +1 -0
- package/dist/ui/drivers/registry.d.ts +11 -0
- package/dist/ui/drivers/registry.d.ts.map +1 -0
- package/dist/ui/drivers/registry.js +109 -0
- package/dist/ui/drivers/registry.js.map +1 -0
- package/dist/ui/drivers/shadcn.d.ts +3 -0
- package/dist/ui/drivers/shadcn.d.ts.map +1 -0
- package/dist/ui/drivers/shadcn.js +288 -0
- package/dist/ui/drivers/shadcn.js.map +1 -0
- package/dist/ui/drivers/types.d.ts +43 -0
- package/dist/ui/drivers/types.d.ts.map +1 -0
- package/dist/ui/drivers/types.js +2 -0
- package/dist/ui/drivers/types.js.map +1 -0
- package/dist/ui/drivers/unstyled.d.ts +3 -0
- package/dist/ui/drivers/unstyled.d.ts.map +1 -0
- package/dist/ui/drivers/unstyled.js +226 -0
- package/dist/ui/drivers/unstyled.js.map +1 -0
- package/dist/ui/engine.d.ts +24 -0
- package/dist/ui/engine.d.ts.map +1 -0
- package/dist/ui/engine.js +22 -0
- package/dist/ui/engine.js.map +1 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +6 -0
- package/dist/ui/index.js.map +1 -0
- package/dist/ui/machine-state.d.ts +349 -0
- package/dist/ui/machine-state.d.ts.map +1 -0
- package/dist/ui/machine-state.js +105 -0
- package/dist/ui/machine-state.js.map +1 -0
- package/dist/ui/presentation.d.ts +7 -0
- package/dist/ui/presentation.d.ts.map +1 -0
- package/dist/ui/presentation.js +21 -0
- package/dist/ui/presentation.js.map +1 -0
- package/dist/ui/render.d.ts +18 -0
- package/dist/ui/render.d.ts.map +1 -0
- package/dist/ui/render.js +31 -0
- package/dist/ui/render.js.map +1 -0
- package/dist/ui/resume.d.ts +28 -0
- package/dist/ui/resume.d.ts.map +1 -0
- package/dist/ui/resume.js +417 -0
- package/dist/ui/resume.js.map +1 -0
- package/dist/ui/server.d.ts +9 -0
- package/dist/ui/server.d.ts.map +1 -0
- package/dist/ui/server.js +6 -0
- package/dist/ui/server.js.map +1 -0
- package/dist/ui/state.d.ts +24 -0
- package/dist/ui/state.d.ts.map +1 -0
- package/dist/ui/state.js +64 -0
- package/dist/ui/state.js.map +1 -0
- package/dist/ui-server.d.ts +2 -0
- package/dist/ui-server.d.ts.map +1 -0
- package/dist/ui-server.js +2 -0
- package/dist/ui-server.js.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +1 -0
- package/dist/vite-environments.d.ts +27 -0
- package/dist/vite-environments.d.ts.map +1 -0
- package/dist/vite-environments.js +63 -0
- package/dist/vite-environments.js.map +1 -0
- package/dist/vite.d.ts +120 -2
- package/dist/vite.d.ts.map +1 -1
- package/dist/vite.js +1292 -196
- package/dist/vite.js.map +1 -1
- package/dist/workflow/browser.d.ts +7 -0
- package/dist/workflow/browser.d.ts.map +1 -0
- package/dist/workflow/browser.js +60 -0
- package/dist/workflow/browser.js.map +1 -0
- package/dist/workflow/compiler.d.ts +8 -0
- package/dist/workflow/compiler.d.ts.map +1 -0
- package/dist/workflow/compiler.js +122 -0
- package/dist/workflow/compiler.js.map +1 -0
- package/dist/workflow/http.d.ts +20 -0
- package/dist/workflow/http.d.ts.map +1 -0
- package/dist/workflow/http.js +68 -0
- package/dist/workflow/http.js.map +1 -0
- package/dist/workflow/index.d.ts +46 -0
- package/dist/workflow/index.d.ts.map +1 -0
- package/dist/workflow/index.js +91 -0
- package/dist/workflow/index.js.map +1 -0
- package/dist/workflow/journal.d.ts +9 -0
- package/dist/workflow/journal.d.ts.map +1 -0
- package/dist/workflow/journal.js +18 -0
- package/dist/workflow/journal.js.map +1 -0
- package/dist/workflow/node.d.ts +6 -0
- package/dist/workflow/node.d.ts.map +1 -0
- package/dist/workflow/node.js +24 -0
- package/dist/workflow/node.js.map +1 -0
- package/dist/workflow/operation.d.ts +23 -0
- package/dist/workflow/operation.d.ts.map +1 -0
- package/dist/workflow/operation.js +65 -0
- package/dist/workflow/operation.js.map +1 -0
- package/dist/workflow/protocol.d.ts +36 -0
- package/dist/workflow/protocol.d.ts.map +1 -0
- package/dist/workflow/protocol.js +45 -0
- package/dist/workflow/protocol.js.map +1 -0
- package/package.json +158 -23
- package/dist/create.d.ts +0 -21
- package/dist/create.d.ts.map +0 -1
- package/dist/create.js +0 -111
- package/dist/create.js.map +0 -1
- package/dist/runtime/atom.d.ts +0 -10
- package/dist/runtime/atom.d.ts.map +0 -1
- package/dist/runtime/atom.js +0 -38
- package/dist/runtime/atom.js.map +0 -1
- package/templates/basic/README.md +0 -18
- package/templates/basic/_gitignore +0 -3
- package/templates/basic/components/app-badge.html +0 -1
- package/templates/basic/index.html +0 -12
- package/templates/basic/islands/counter.ts +0 -13
- package/templates/basic/package.json +0 -23
- package/templates/basic/pages/about/index.html +0 -5
- package/templates/basic/pages/docs/index.md +0 -9
- package/templates/basic/pages/index.html +0 -9
- package/templates/basic/pages/layout.html +0 -8
- package/templates/basic/pnpm-workspace.yaml +0 -5
- package/templates/basic/server.mjs +0 -11
- package/templates/basic/style.css +0 -1
- package/templates/basic/tsconfig.json +0 -13
- package/templates/basic/vite.config.ts +0 -4
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/** Browser-only direct DOM boundary. Orchestration and ownership remain in Effect. */
|
|
2
|
+
export function commitTemplate(outlet, template) {
|
|
3
|
+
outlet.replaceChildren(outlet.ownerDocument.importNode(template.content, true));
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* History-fallback scroll restoration. Positions are keyed by entry key, which the History adapter keeps in
|
|
7
|
+
* `history.state`, and saved to `sessionStorage` so they survive reloads and visits to other documents.
|
|
8
|
+
*/
|
|
9
|
+
export function makeScrollManager(outlet, window) {
|
|
10
|
+
const storageKey = "fuzor:scroll";
|
|
11
|
+
const storage = () => { try {
|
|
12
|
+
return window.sessionStorage;
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return undefined;
|
|
16
|
+
} };
|
|
17
|
+
const positions = new Map();
|
|
18
|
+
try {
|
|
19
|
+
const stored = JSON.parse(storage()?.getItem(storageKey) ?? "[]");
|
|
20
|
+
if (Array.isArray(stored))
|
|
21
|
+
for (const [key, x, y] of stored)
|
|
22
|
+
if (typeof key === "string" && Number.isFinite(x) && Number.isFinite(y))
|
|
23
|
+
positions.set(key, { x, y });
|
|
24
|
+
}
|
|
25
|
+
catch { }
|
|
26
|
+
const record = (key) => {
|
|
27
|
+
if (key === "foreign")
|
|
28
|
+
return;
|
|
29
|
+
positions.delete(key);
|
|
30
|
+
positions.set(key, { x: window.scrollX, y: window.scrollY });
|
|
31
|
+
if (positions.size > 100)
|
|
32
|
+
positions.delete(positions.keys().next().value);
|
|
33
|
+
try {
|
|
34
|
+
storage()?.setItem(storageKey, JSON.stringify([...positions].map(([entry, { x, y }]) => [entry, x, y])));
|
|
35
|
+
}
|
|
36
|
+
catch { }
|
|
37
|
+
};
|
|
38
|
+
const scroll = (x, y) => window.scrollTo({ left: x, top: y, behavior: "instant" });
|
|
39
|
+
const anchor = (hash) => {
|
|
40
|
+
if (!hash)
|
|
41
|
+
return false;
|
|
42
|
+
let id;
|
|
43
|
+
try {
|
|
44
|
+
id = decodeURIComponent(hash.slice(1));
|
|
45
|
+
}
|
|
46
|
+
catch {
|
|
47
|
+
id = hash.slice(1);
|
|
48
|
+
}
|
|
49
|
+
const document = outlet.ownerDocument;
|
|
50
|
+
const target = document.getElementById(id) ?? Array.from(document.getElementsByName(id)).find(node => node.tagName === "A");
|
|
51
|
+
if (!target)
|
|
52
|
+
return false;
|
|
53
|
+
target.scrollIntoView();
|
|
54
|
+
return true;
|
|
55
|
+
};
|
|
56
|
+
return {
|
|
57
|
+
save: (change) => record(change.from.key),
|
|
58
|
+
remember: record,
|
|
59
|
+
finish: (change, replaced, firstRender = false) => {
|
|
60
|
+
// Traversals return to the entry's position; so does reloading a page that was scrolled before.
|
|
61
|
+
if (change.kind === "traverse" || (change.kind === "reload" && firstRender)) {
|
|
62
|
+
const position = positions.get(change.destination.key);
|
|
63
|
+
if (position) {
|
|
64
|
+
scroll(position.x, position.y);
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (anchor(change.destination.hash))
|
|
69
|
+
return;
|
|
70
|
+
if (replaced && change.kind !== "reload")
|
|
71
|
+
scroll(0, 0);
|
|
72
|
+
},
|
|
73
|
+
focus: () => {
|
|
74
|
+
// Browsers blur an element whose tabindex is removed, so a temporary tabindex stays until focus leaves.
|
|
75
|
+
if (!outlet.hasAttribute("tabindex")) {
|
|
76
|
+
outlet.setAttribute("tabindex", "-1");
|
|
77
|
+
outlet.addEventListener("blur", () => { if (outlet.getAttribute("tabindex") === "-1")
|
|
78
|
+
outlet.removeAttribute("tabindex"); }, { once: true });
|
|
79
|
+
}
|
|
80
|
+
outlet.focus({ preventScroll: true });
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Screen readers do not announce SPA route changes. A polite live region reads the new document title
|
|
86
|
+
* (or first heading) after each client navigation; initial loads are announced natively by the browser.
|
|
87
|
+
*/
|
|
88
|
+
export function makeRouteAnnouncer(document, outlet) {
|
|
89
|
+
let region;
|
|
90
|
+
return {
|
|
91
|
+
announce: () => {
|
|
92
|
+
if (!region) {
|
|
93
|
+
region = document.createElement("div");
|
|
94
|
+
region.setAttribute("data-fuzor-announcer", "");
|
|
95
|
+
region.setAttribute("aria-live", "polite");
|
|
96
|
+
region.setAttribute("aria-atomic", "true");
|
|
97
|
+
region.setAttribute("style", "position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0");
|
|
98
|
+
document.body.append(region);
|
|
99
|
+
}
|
|
100
|
+
const heading = outlet.querySelector("h1")?.textContent?.trim();
|
|
101
|
+
const message = document.title.trim() || heading || document.location?.pathname || "Page changed";
|
|
102
|
+
// Clearing first makes repeated identical titles announce again.
|
|
103
|
+
region.textContent = "";
|
|
104
|
+
const target = region;
|
|
105
|
+
(document.defaultView?.setTimeout ?? setTimeout)(() => { target.textContent = message; }, 50);
|
|
106
|
+
},
|
|
107
|
+
dispose: () => { region?.remove(); region = undefined; }
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
export function makeHeadManager(document, shell) {
|
|
111
|
+
// The compiled shell defaults win over the current head, which already shows the first page's metadata.
|
|
112
|
+
const defaults = {
|
|
113
|
+
title: shell ? shell.title ?? "" : document.title,
|
|
114
|
+
description: shell ? shell.description : document.querySelector('meta[name="description"]')?.getAttribute("content"),
|
|
115
|
+
canonical: shell ? shell.canonical : document.querySelector('link[rel="canonical"]')?.getAttribute("href")
|
|
116
|
+
};
|
|
117
|
+
return (metadata) => {
|
|
118
|
+
document.title = metadata.title ?? defaults.title;
|
|
119
|
+
const update = (selector, tag, identifying, value, attribute) => {
|
|
120
|
+
let node = document.head.querySelector(selector);
|
|
121
|
+
if (value == null) {
|
|
122
|
+
node?.remove();
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
if (!node) {
|
|
126
|
+
node = document.createElement(tag);
|
|
127
|
+
node.setAttribute(tag === "meta" ? "name" : "rel", identifying);
|
|
128
|
+
document.head.append(node);
|
|
129
|
+
}
|
|
130
|
+
node.setAttribute(attribute, value);
|
|
131
|
+
};
|
|
132
|
+
update('meta[name="description"]', "meta", "description", metadata.description ?? defaults.description, "content");
|
|
133
|
+
update('link[rel="canonical"]', "link", "canonical", metadata.canonical ?? defaults.canonical, "href");
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
export function renderActivationError(host, retry) {
|
|
137
|
+
host.querySelector("[data-fuzor-island-error]")?.remove();
|
|
138
|
+
const errorAttribute = "data-fuzor-island-error";
|
|
139
|
+
const document = host.ownerDocument;
|
|
140
|
+
// Author boundary: <fuzor-island error="id"> clones <template id="id">; [data-fuzor-retry] retries.
|
|
141
|
+
const custom = host.getAttribute("error");
|
|
142
|
+
const template = custom ? document.getElementById(custom) : null;
|
|
143
|
+
if (template && template.localName === "template") {
|
|
144
|
+
const container = document.createElement("div");
|
|
145
|
+
container.setAttribute(errorAttribute, "");
|
|
146
|
+
container.append(document.importNode(template.content, true));
|
|
147
|
+
for (const button of container.querySelectorAll("[data-fuzor-retry]")) {
|
|
148
|
+
button.addEventListener("click", () => { void retry().catch(() => { }); });
|
|
149
|
+
}
|
|
150
|
+
host.append(container);
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
if (custom)
|
|
154
|
+
console.error(`Fuzor component error template #${custom} was not found; using the default error UI.`);
|
|
155
|
+
const message = document.createElement("p");
|
|
156
|
+
message.setAttribute("role", "alert");
|
|
157
|
+
message.setAttribute(errorAttribute, "");
|
|
158
|
+
message.textContent = "This component could not be loaded.";
|
|
159
|
+
const button = document.createElement("button");
|
|
160
|
+
button.type = "button";
|
|
161
|
+
button.textContent = "Try again";
|
|
162
|
+
button.addEventListener("click", () => { void retry().catch(() => { }); });
|
|
163
|
+
message.append(" ", button);
|
|
164
|
+
host.append(message);
|
|
165
|
+
}
|
|
166
|
+
/** Compatibility name for custom island recovery handlers. */
|
|
167
|
+
export const renderIslandError = renderActivationError;
|
|
168
|
+
/** Stable compiler template identity, including scoped boundaries. */
|
|
169
|
+
export function templateIdentity(template) {
|
|
170
|
+
return template.getAttribute("data-fuzor-route") ??
|
|
171
|
+
(template.hasAttribute("data-fuzor-not-found") ? `not-found:${template.getAttribute("data-fuzor-not-found")}` : `error:${template.getAttribute("data-fuzor-error")}`);
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=dom-renderer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-renderer.js","sourceRoot":"","sources":["../../src/runtime/dom-renderer.ts"],"names":[],"mappings":"AAEA,sFAAsF;AACtF,MAAM,UAAU,cAAc,CAAC,MAAmB,EAAE,QAA6B;IAC/E,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,aAAa,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AAClF,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAmB,EAAE,MAAc;IACnE,MAAM,UAAU,GAAG,cAAc,CAAC;IAClC,MAAM,OAAO,GAAG,GAAG,EAAE,GAAG,IAAI,CAAC;QAAC,OAAO,MAAM,CAAC,cAAc,CAAC;IAAC,CAAC;IAAC,MAAM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";
|
|
4
|
+
import { NavigationError } from "./navigation.js";
|
|
5
|
+
export type HashNavigationOptions = Pick<HistoryNavigationOptions, "transition" | "onError"> & {
|
|
6
|
+
readonly baseUrl?: string;
|
|
7
|
+
readonly initialPath?: string;
|
|
8
|
+
};
|
|
9
|
+
/** Logical routes live in a fragment while file/WebView transport paths stay intact. */
|
|
10
|
+
export declare function makeHashNavigation(window: Window, options?: HashNavigationOptions): Effect.Effect<import("./navigation.js").NavigationAdapter, NavigationError, import("effect/Scope").Scope>;
|
|
11
|
+
export declare const HashNavigationLive: (window: Window, options?: HashNavigationOptions) => Layer.Layer<import("./navigation.js").NavigationAdapter, NavigationError, never>;
|
|
12
|
+
//# sourceMappingURL=hash-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash-navigation.d.ts","sourceRoot":"","sources":["../../src/runtime/hash-navigation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAyB,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC/F,OAAO,EAAc,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE9D,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,wBAAwB,EAAE,YAAY,GAAG,SAAS,CAAC,GAAG;IAC7F,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,wFAAwF;AACxF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,6GAgBrF;AACD,eAAO,MAAM,kBAAkB,GAAI,QAAQ,MAAM,EAAE,UAAS,qBAA0B,qFAAkE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { hashRouteUrl } from "../route-path.js";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Layer from "effect/Layer";
|
|
4
|
+
import { makeHistoryNavigation } from "./history-navigation.js";
|
|
5
|
+
import { Navigation, NavigationError } from "./navigation.js";
|
|
6
|
+
/** Logical routes live in a fragment while file/WebView transport paths stay intact. */
|
|
7
|
+
export function makeHashNavigation(window, options = {}) {
|
|
8
|
+
return Effect.gen(function* () {
|
|
9
|
+
const base = yield* Effect.try({ try: () => {
|
|
10
|
+
const url = new URL(options.baseUrl ?? "http://fuzor.local/");
|
|
11
|
+
if (!["http:", "https:"].includes(url.protocol))
|
|
12
|
+
throw new Error("Hash routing needs an HTTP(S) logical origin");
|
|
13
|
+
return url;
|
|
14
|
+
}, catch: error => new NavigationError("InvalidUrl", String(error)) });
|
|
15
|
+
const transport = new URL(window.location.href);
|
|
16
|
+
transport.hash = "";
|
|
17
|
+
return yield* makeHistoryNavigation(window, {
|
|
18
|
+
...options,
|
|
19
|
+
toLogicalUrl: url => hashRouteUrl(url, base, options.initialPath ?? (transport.protocol === "file:" || transport.pathname.endsWith("/index.html") ? "/" : transport.pathname)),
|
|
20
|
+
toTransportUrl: url => { const result = new URL(transport.href); result.hash = `${url.pathname}${url.search}${url.hash}`; return result; },
|
|
21
|
+
acceptsUrl: url => url.origin === base.origin && ["http:", "https:"].includes(url.protocol)
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export const HashNavigationLive = (window, options = {}) => Layer.effect(Navigation, makeHashNavigation(window, options));
|
|
26
|
+
//# sourceMappingURL=hash-navigation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hash-navigation.js","sourceRoot":"","sources":["../../src/runtime/hash-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,qBAA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,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,CAAC;YAC1I,UAAU,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC;SAC5F,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AACD,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,MAAc,EAAE,UAAiC,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,kBAAkB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Layer from "effect/Layer";
|
|
3
|
+
import type * as Scope from "effect/Scope";
|
|
4
|
+
import { NavigationError, type NavigationAdapter, type NavigationChange } from "./navigation.js";
|
|
5
|
+
import type { NavigationLifecycleError } from "./coordinator.js";
|
|
6
|
+
export type HistoryNavigationOptions = {
|
|
7
|
+
readonly transition?: (change: NavigationChange) => Effect.Effect<void, NavigationLifecycleError>;
|
|
8
|
+
readonly onError?: (error: unknown) => void;
|
|
9
|
+
/** Platforms can explicitly supply a URL policy for local/custom protocols. */
|
|
10
|
+
readonly toLogicalUrl?: (transport: URL) => URL;
|
|
11
|
+
readonly toTransportUrl?: (logical: URL) => URL;
|
|
12
|
+
readonly acceptsUrl?: (url: URL) => boolean;
|
|
13
|
+
};
|
|
14
|
+
/** Fallback adapter. It cannot provide native precommit guards or enumerate the browser stack. */
|
|
15
|
+
export declare function makeHistoryNavigation(window: Window, options?: HistoryNavigationOptions): Effect.Effect<NavigationAdapter, NavigationError, Scope.Scope>;
|
|
16
|
+
export declare const HistoryNavigationLive: (window: Window, options?: HistoryNavigationOptions) => Layer.Layer<NavigationAdapter, NavigationError, never>;
|
|
17
|
+
//# sourceMappingURL=history-navigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"history-navigation.d.ts","sourceRoot":"","sources":["../../src/runtime/history-navigation.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAc,eAAe,EAAE,KAAK,iBAAiB,EAAE,KAAK,gBAAgB,EAA2B,MAAM,iBAAiB,CAAC;AACtI,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAGjE,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,wBAAwB,CAAC,CAAC;IAClG,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC5C,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;IAChD,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,GAAG,CAAC;IAChD,QAAQ,CAAC,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,OAAO,CAAC;CAC7C,CAAC;AAGF,kGAAkG;AAClG,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,wBAA6B,GAC1F,MAAM,CAAC,MAAM,CAAC,iBAAiB,EAAE,eAAe,EAAE,KAAK,CAAC,KAAK,CAAC,CA0I/D;AAED,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,EAAE,UAAS,wBAA6B,2DAC1B,CAAC"}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import * as Cause from "effect/Cause";
|
|
2
|
+
import * as Deferred from "effect/Deferred";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Exit from "effect/Exit";
|
|
5
|
+
import * as Layer from "effect/Layer";
|
|
6
|
+
import { Navigation, NavigationError } from "./navigation.js";
|
|
7
|
+
const metadataKey = "__fuzorNavigation";
|
|
8
|
+
/** Fallback adapter. It cannot provide native precommit guards or enumerate the browser stack. */
|
|
9
|
+
export function makeHistoryNavigation(window, options = {}) {
|
|
10
|
+
return Effect.gen(function* () {
|
|
11
|
+
const lifetime = new AbortController();
|
|
12
|
+
let nextKey = 0;
|
|
13
|
+
const key = () => `fuzor-${Date.now().toString(36)}-${nextKey++}`;
|
|
14
|
+
const readMetadata = () => {
|
|
15
|
+
const value = window.history.state?.[metadataKey];
|
|
16
|
+
if (typeof value !== "object" || value === null)
|
|
17
|
+
return;
|
|
18
|
+
const candidate = value;
|
|
19
|
+
if (typeof candidate.key !== "string" || !(candidate.index === null || Number.isInteger(candidate.index)))
|
|
20
|
+
return;
|
|
21
|
+
return candidate;
|
|
22
|
+
};
|
|
23
|
+
const foreignState = () => typeof window.history.state === "object" && window.history.state !== null
|
|
24
|
+
? window.history.state : {};
|
|
25
|
+
const read = () => {
|
|
26
|
+
const transport = new URL(window.location.href);
|
|
27
|
+
const url = options.toLogicalUrl?.(transport) ?? transport;
|
|
28
|
+
const metadata = readMetadata();
|
|
29
|
+
return Object.freeze({ url: url.href, pathname: url.pathname, search: url.search, hash: url.hash,
|
|
30
|
+
key: metadata?.key ?? "foreign", index: metadata?.index ?? null,
|
|
31
|
+
state: structuredClone(metadata ? metadata.state : window.history.state) });
|
|
32
|
+
};
|
|
33
|
+
yield* Effect.try({
|
|
34
|
+
try: () => {
|
|
35
|
+
if (!readMetadata())
|
|
36
|
+
window.history.replaceState({ ...foreignState(), [metadataKey]: { key: key(), index: 0, state: structuredClone(window.history.state) } }, "");
|
|
37
|
+
}, catch: error => new NavigationError("PlatformFailure", String(error))
|
|
38
|
+
});
|
|
39
|
+
let previous = read();
|
|
40
|
+
const listeners = new Set();
|
|
41
|
+
let pending;
|
|
42
|
+
const report = (error) => { try {
|
|
43
|
+
(options.onError ?? console.error)(error);
|
|
44
|
+
}
|
|
45
|
+
catch { } };
|
|
46
|
+
const complete = (change) => {
|
|
47
|
+
previous = change.destination;
|
|
48
|
+
for (const listener of listeners) {
|
|
49
|
+
try {
|
|
50
|
+
listener(change);
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
report(error);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const completion = options.transition
|
|
57
|
+
? Promise.resolve().then(() => Effect.runPromise(Effect.exit(options.transition(change)), { signal: lifetime.signal })).then(exit => Exit.isSuccess(exit) ? { ok: true } : { ok: false, error: Cause.squash(exit.cause), cancelled: Cause.hasInterruptsOnly(exit.cause) }, error => ({ ok: false, error, cancelled: lifetime.signal.aborted }))
|
|
58
|
+
: Promise.resolve({ ok: true });
|
|
59
|
+
return { change, committed: Effect.succeed(change.destination), finished: Effect.gen(function* () {
|
|
60
|
+
const result = yield* Effect.promise(() => completion);
|
|
61
|
+
if (!result.ok && result.cancelled)
|
|
62
|
+
return yield* Effect.interrupt;
|
|
63
|
+
if (!result.ok)
|
|
64
|
+
return yield* Effect.fail(new NavigationError("PlatformFailure", String(result.error)));
|
|
65
|
+
return change.destination;
|
|
66
|
+
}) };
|
|
67
|
+
};
|
|
68
|
+
let traversalTransition;
|
|
69
|
+
const onPop = () => {
|
|
70
|
+
const destination = read();
|
|
71
|
+
if (destination.url === previous.url && destination.key === previous.key && (!pending || destination.key !== "foreign"))
|
|
72
|
+
return;
|
|
73
|
+
const change = { kind: "traverse", from: previous, destination,
|
|
74
|
+
delta: previous.index === null || destination.index === null ? null : destination.index - previous.index };
|
|
75
|
+
const transition = complete(change);
|
|
76
|
+
if (pending) {
|
|
77
|
+
traversalTransition = transition;
|
|
78
|
+
const waiter = pending;
|
|
79
|
+
pending = undefined;
|
|
80
|
+
Effect.runSync(Deferred.succeed(waiter, change));
|
|
81
|
+
}
|
|
82
|
+
else
|
|
83
|
+
void Effect.runPromise(Effect.exit(transition.finished)).then(exit => { if (Exit.isFailure(exit) && !Cause.hasInterruptsOnly(exit.cause) && !lifetime.signal.aborted)
|
|
84
|
+
report(Cause.squash(exit.cause)); });
|
|
85
|
+
};
|
|
86
|
+
const onHash = () => { const destination = read(); if (destination.url !== previous.url || destination.key !== previous.key)
|
|
87
|
+
onPop(); };
|
|
88
|
+
yield* Effect.acquireRelease(Effect.sync(() => { window.addEventListener("popstate", onPop); window.addEventListener("hashchange", onHash); }), () => Effect.sync(() => {
|
|
89
|
+
lifetime.abort();
|
|
90
|
+
window.removeEventListener("popstate", onPop);
|
|
91
|
+
window.removeEventListener("hashchange", onHash);
|
|
92
|
+
listeners.clear();
|
|
93
|
+
if (pending)
|
|
94
|
+
Effect.runSync(Deferred.fail(pending, new NavigationError("PlatformFailure", "Navigation adapter disposed")));
|
|
95
|
+
}));
|
|
96
|
+
return {
|
|
97
|
+
capabilities: { interception: false, precommit: false, entries: false, documentNavigation: true, nativeScroll: false },
|
|
98
|
+
current: Effect.sync(read), entries: Effect.sync(() => [read()]),
|
|
99
|
+
navigate: intent => Effect.gen(function* () {
|
|
100
|
+
if (lifetime.signal.aborted)
|
|
101
|
+
return yield* Effect.fail(new NavigationError("PlatformFailure", "Navigation adapter disposed"));
|
|
102
|
+
const url = yield* Effect.try({
|
|
103
|
+
try: () => {
|
|
104
|
+
const url = new URL(intent.href, read().url);
|
|
105
|
+
const accepted = options.acceptsUrl?.(url) ?? (url.origin === new URL(read().url).origin && ["http:", "https:"].includes(url.protocol));
|
|
106
|
+
if (!accepted)
|
|
107
|
+
throw new Error("Destination is outside this app");
|
|
108
|
+
return url;
|
|
109
|
+
}, catch: error => new NavigationError("InvalidUrl", String(error))
|
|
110
|
+
});
|
|
111
|
+
const state = yield* Effect.try({ try: () => structuredClone(intent.state ?? null),
|
|
112
|
+
catch: error => new NavigationError("InvalidState", String(error)) });
|
|
113
|
+
const from = read();
|
|
114
|
+
const kind = intent.history === "auto" ? (url.href === from.url ? "replace" : "push") : intent.history ?? "push";
|
|
115
|
+
yield* Effect.try({
|
|
116
|
+
try: () => {
|
|
117
|
+
const index = from.index === null ? null : from.index + (kind === "push" ? 1 : 0);
|
|
118
|
+
// A new entry starts without the previous entry's app state; a replacement keeps unrelated keys other
|
|
119
|
+
// libraries stored on the current entry. Fuzor's own data lives under one namespaced key.
|
|
120
|
+
const stored = { ...(kind === "replace" ? foreignState() : {}), [metadataKey]: { key: key(), index, state } };
|
|
121
|
+
const transport = options.toTransportUrl?.(url) ?? url;
|
|
122
|
+
try {
|
|
123
|
+
if (kind === "push")
|
|
124
|
+
window.history.pushState(stored, "", transport.href);
|
|
125
|
+
else
|
|
126
|
+
window.history.replaceState(stored, "", transport.href);
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
const current = new URL(window.location.href);
|
|
130
|
+
const fragmentOnly = transport.hash !== current.hash && transport.href.split("#")[0] === current.href.split("#")[0];
|
|
131
|
+
// Some embedded engines reject the standards-supported file fragment rewrite.
|
|
132
|
+
// Restrict fallback to our explicit transport mapping and a fragment-only change.
|
|
133
|
+
if (!options.toTransportUrl || !fragmentOnly || error?.name !== "SecurityError")
|
|
134
|
+
throw error;
|
|
135
|
+
if (kind === "push")
|
|
136
|
+
window.location.hash = transport.hash;
|
|
137
|
+
else
|
|
138
|
+
window.location.replace(transport.href);
|
|
139
|
+
window.history.replaceState(stored, "");
|
|
140
|
+
}
|
|
141
|
+
}, catch: error => new NavigationError("PlatformFailure", String(error))
|
|
142
|
+
});
|
|
143
|
+
return complete({ kind, from, destination: read(), delta: kind === "push" ? 1 : 0 });
|
|
144
|
+
}),
|
|
145
|
+
traverse: delta => Effect.gen(function* () {
|
|
146
|
+
if (lifetime.signal.aborted)
|
|
147
|
+
return yield* Effect.fail(new NavigationError("PlatformFailure", "Navigation adapter disposed"));
|
|
148
|
+
if (!Number.isInteger(delta) || delta === 0 || pending)
|
|
149
|
+
return yield* Effect.fail(new NavigationError("TraversalUnavailable", "Invalid or concurrent traversal"));
|
|
150
|
+
const result = yield* Deferred.make();
|
|
151
|
+
pending = result;
|
|
152
|
+
yield* Effect.gen(function* () {
|
|
153
|
+
yield* Effect.try({ try: () => window.history.go(delta), catch: error => new NavigationError("PlatformFailure", String(error)) });
|
|
154
|
+
yield* Deferred.await(result).pipe(Effect.timeoutOrElse({ duration: 2000, orElse: () => Effect.fail(new NavigationError("TraversalUnavailable", "No browser traversal occurred")) }));
|
|
155
|
+
}).pipe(Effect.ensuring(Effect.sync(() => { if (pending === result)
|
|
156
|
+
pending = undefined; })));
|
|
157
|
+
return traversalTransition;
|
|
158
|
+
}),
|
|
159
|
+
// Entries before the first Fuzor entry and all forward entries are invisible to the History API.
|
|
160
|
+
canTraverse: delta => Effect.sync(() => {
|
|
161
|
+
const index = readMetadata()?.index ?? null;
|
|
162
|
+
if (!Number.isInteger(delta) || delta === 0)
|
|
163
|
+
return false;
|
|
164
|
+
return delta < 0 && index !== null && index + delta >= 0 ? true : null;
|
|
165
|
+
}),
|
|
166
|
+
reload: () => lifetime.signal.aborted ? Effect.fail(new NavigationError("PlatformFailure", "Navigation adapter disposed")) : Effect.sync(() => complete({ kind: "reload", from: read(), destination: read(), delta: 0 })),
|
|
167
|
+
subscribe: listener => Effect.acquireRelease(Effect.sync(() => { listeners.add(listener); }), () => Effect.sync(() => { listeners.delete(listener); }))
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
export const HistoryNavigationLive = (window, options = {}) => Layer.effect(Navigation, makeHistoryNavigation(window, options));
|
|
172
|
+
//# sourceMappingURL=history-nav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I,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;YACzE,CAAC,CAAC;YACF,MAAM,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,iBAAiB,EAAE,6BAA6B,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;YACzN,SAAS,EAAE,QAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,EAC1F,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAChC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,MAAc,EAAE,UAAoC,EAAE,EAAE,EAAE,CAC9F,KAAK,CAAC,MAAM,CAAC,UAAU,EAAE,qBAAqB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type HrefOptions = {
|
|
2
|
+
/** Deployment base path, for example `import.meta.env.BASE_URL`. */
|
|
3
|
+
readonly base?: string;
|
|
4
|
+
readonly search?: Record<string, string | number | boolean | undefined> | URLSearchParams;
|
|
5
|
+
readonly hash?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Fills `[name]` and `[...name]` segments of a route pattern with encoded values. */
|
|
8
|
+
export declare function buildHref(pattern: string, params?: Readonly<Record<string, string | number>>, options?: HrefOptions): string;
|
|
9
|
+
export type RouteTypeEntry = {
|
|
10
|
+
readonly pattern: string;
|
|
11
|
+
/** Module path relative to the declaration file, for patterns whose `paths` module exports a `params` Schema. */
|
|
12
|
+
readonly paramsModule?: string;
|
|
13
|
+
};
|
|
14
|
+
/** TypeScript declarations for the compiled routes and API endpoints, written to `.fuzor/routes.d.ts`. */
|
|
15
|
+
export declare function routeTypes(entries: ReadonlyArray<string | RouteTypeEntry>): string;
|
|
16
|
+
//# sourceMappingURL=href.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"href.d.ts","sourceRoot":"","sources":["../../src/runtime/href.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,oEAAoE;IACpE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG,eAAe,CAAC;IAC1F,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,sFAAsF;AACtF,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAM,EAAE,OAAO,GAAE,WAAgB,GAAG,MAAM,CAiBpI;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,iHAAiH;IACjH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,0GAA0G;AAC1G,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,MAAM,CAYlF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** Fills `[name]` and `[...name]` segments of a route pattern with encoded values. */
|
|
2
|
+
export function buildHref(pattern, params = {}, options = {}) {
|
|
3
|
+
const used = new Set();
|
|
4
|
+
const path = pattern.replace(/\[(\.\.\.)?([a-zA-Z_][a-zA-Z0-9_]*)\]/g, (_match, rest, name) => {
|
|
5
|
+
const value = params[name];
|
|
6
|
+
if (value === undefined || value === "")
|
|
7
|
+
throw new TypeError(`Missing route parameter "${name}" for ${pattern}`);
|
|
8
|
+
used.add(name);
|
|
9
|
+
const text = String(value);
|
|
10
|
+
return rest ? text.split("/").map(encodeURIComponent).join("/") : encodeURIComponent(text);
|
|
11
|
+
});
|
|
12
|
+
const extra = Object.keys(params).filter(name => !used.has(name));
|
|
13
|
+
if (extra.length)
|
|
14
|
+
throw new TypeError(`${pattern} has no parameter ${extra.map(name => `"${name}"`).join(", ")}`);
|
|
15
|
+
const base = options.base && options.base.startsWith("/") ? options.base.replace(/\/+$/, "") : "";
|
|
16
|
+
const search = options.search instanceof URLSearchParams ? options.search
|
|
17
|
+
: new URLSearchParams(Object.entries(options.search ?? {}).flatMap(([key, value]) => value === undefined ? [] : [[key, String(value)]]));
|
|
18
|
+
const query = search.toString();
|
|
19
|
+
const hash = options.hash ? `#${options.hash.replace(/^#/, "")}` : "";
|
|
20
|
+
return `${base}${path}${query ? `?${query}` : ""}${hash}`;
|
|
21
|
+
}
|
|
22
|
+
/** TypeScript declarations for the compiled routes and API endpoints, written to `.fuzor/routes.d.ts`. */
|
|
23
|
+
export function routeTypes(entries) {
|
|
24
|
+
const byPattern = new Map();
|
|
25
|
+
for (const entry of entries) {
|
|
26
|
+
const value = typeof entry === "string" ? { pattern: entry } : entry;
|
|
27
|
+
if (!byPattern.has(value.pattern) || value.paramsModule)
|
|
28
|
+
byPattern.set(value.pattern, value);
|
|
29
|
+
}
|
|
30
|
+
const lines = [...byPattern.values()].sort((a, b) => a.pattern < b.pattern ? -1 : a.pattern > b.pattern ? 1 : 0).map(({ pattern, paramsModule }) => {
|
|
31
|
+
if (paramsModule)
|
|
32
|
+
return ` ${JSON.stringify(pattern)}: import("fuzor/runtime").SchemaRouteParams<typeof import(${JSON.stringify(paramsModule)})>;`;
|
|
33
|
+
const names = [...pattern.matchAll(/\[(?:\.\.\.)?([a-zA-Z_][a-zA-Z0-9_]*)\]/g)].map(match => match[1]);
|
|
34
|
+
return ` ${JSON.stringify(pattern)}: { ${names.map(name => `${name}: string | number`).join("; ")}${names.length ? " " : ""}};`;
|
|
35
|
+
});
|
|
36
|
+
return `// Generated by Fuzor from pages/ and api/. Do not edit.\ndeclare module "fuzor/runtime" {\n interface FuzorRoutes {\n${lines.join("\n")}\n }\n}\nexport {};\n`;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=href.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"href.js","sourceRoot":"","sources":["../../src/runtime/href.ts"],"names":[],"mappings":"AAOA,sFAAsF;AACtF,MAAM,UAAU,SAAS,CAAC,OAAe,EAAE,SAAoD,EAAE,EAAE,UAAuB,EAAE;IAC1H,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,wCAAwC,EAAE,CAAC,MAAM,EAAE,IAAwB,EAAE,IAAY,EAAE,EAAE;QACxH,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QAC3B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE;YAAE,MAAM,IAAI,SAAS,CAAC,4BAA4B,IAAI,SAAS,OAAO,EAAE,CAAC,CAAC;QACjH,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACf,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,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