@kestack/web-platform 0.0.0-stage → 0.0.0
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/LICENSE +21 -0
- package/README.md +523 -2
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/app/apis/apis.d.ts +55 -0
- package/dist/app/apis/apis.d.ts.map +1 -0
- package/dist/app/apis/apis.js +43 -0
- package/dist/app/apis/apis.js.map +1 -0
- package/dist/app/apis/index.d.ts +2 -0
- package/dist/app/apis/index.js +2 -0
- package/dist/app/app.d.ts +77 -0
- package/dist/app/app.d.ts.map +1 -0
- package/dist/app/app.js +118 -0
- package/dist/app/app.js.map +1 -0
- package/dist/app/assemble/assemble.d.ts +167 -0
- package/dist/app/assemble/assemble.d.ts.map +1 -0
- package/dist/app/assemble/assemble.js +186 -0
- package/dist/app/assemble/assemble.js.map +1 -0
- package/dist/app/assemble/index.d.ts +2 -0
- package/dist/app/assemble/index.js +2 -0
- package/dist/app/assemble/public.d.ts +18 -0
- package/dist/app/assemble/public.d.ts.map +1 -0
- package/dist/app/assemble/public.js +41 -0
- package/dist/app/assemble/public.js.map +1 -0
- package/dist/app/gate/domain/check.d.ts +33 -0
- package/dist/app/gate/domain/check.d.ts.map +1 -0
- package/dist/app/gate/domain/check.js +50 -0
- package/dist/app/gate/domain/check.js.map +1 -0
- package/dist/app/gate/domain/index.d.ts +4 -0
- package/dist/app/gate/domain/index.js +3 -0
- package/dist/app/gate/domain/machine.d.ts +180 -0
- package/dist/app/gate/domain/machine.d.ts.map +1 -0
- package/dist/app/gate/domain/machine.js +383 -0
- package/dist/app/gate/domain/machine.js.map +1 -0
- package/dist/app/gate/domain/services.d.ts +37 -0
- package/dist/app/gate/domain/services.d.ts.map +1 -0
- package/dist/app/gate/domain/services.js +13 -0
- package/dist/app/gate/domain/services.js.map +1 -0
- package/dist/app/gate/domain/types.d.ts +44 -0
- package/dist/app/gate/domain/types.d.ts.map +1 -0
- package/dist/app/gate/domain/types.js +0 -0
- package/dist/app/gate/gate.d.ts +86 -0
- package/dist/app/gate/gate.d.ts.map +1 -0
- package/dist/app/gate/gate.js +351 -0
- package/dist/app/gate/gate.js.map +1 -0
- package/dist/app/gate/index.d.ts +5 -0
- package/dist/app/gate/index.js +3 -0
- package/dist/app/gate/memory.d.ts +97 -0
- package/dist/app/gate/memory.d.ts.map +1 -0
- package/dist/app/gate/memory.js +48 -0
- package/dist/app/gate/memory.js.map +1 -0
- package/dist/app/gate/react.d.ts +74 -0
- package/dist/app/gate/react.d.ts.map +1 -0
- package/dist/app/gate/react.js +107 -0
- package/dist/app/gate/react.js.map +1 -0
- package/dist/app/host/host.d.ts +90 -0
- package/dist/app/host/host.d.ts.map +1 -0
- package/dist/app/host/host.js +75 -0
- package/dist/app/host/host.js.map +1 -0
- package/dist/app/host/index.d.ts +2 -0
- package/dist/app/host/index.js +2 -0
- package/dist/app/index.d.ts +4 -0
- package/dist/app/index.js +2 -0
- package/dist/app/session/define.d.ts +60 -0
- package/dist/app/session/define.d.ts.map +1 -0
- package/dist/app/session/define.js +31 -0
- package/dist/app/session/define.js.map +1 -0
- package/dist/app/session/index.d.ts +6 -0
- package/dist/app/session/index.js +6 -0
- package/dist/app/session/keeper.d.ts +17 -0
- package/dist/app/session/keeper.d.ts.map +1 -0
- package/dist/app/session/keeper.js +21 -0
- package/dist/app/session/keeper.js.map +1 -0
- package/dist/app/session/open.d.ts +44 -0
- package/dist/app/session/open.d.ts.map +1 -0
- package/dist/app/session/open.js +70 -0
- package/dist/app/session/open.js.map +1 -0
- package/dist/app/session/react.d.ts +17 -0
- package/dist/app/session/react.d.ts.map +1 -0
- package/dist/app/session/react.js +28 -0
- package/dist/app/session/react.js.map +1 -0
- package/dist/app/session/status.d.ts +24 -0
- package/dist/app/session/status.d.ts.map +1 -0
- package/dist/app/session/status.js +25 -0
- package/dist/app/session/status.js.map +1 -0
- package/dist/app/web-host.d.ts +16 -0
- package/dist/app/web-host.d.ts.map +1 -0
- package/dist/app/web-host.js +85 -0
- package/dist/app/web-host.js.map +1 -0
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +2 -0
- package/dist/client/root/index.d.ts +2 -0
- package/dist/client/root/index.js +2 -0
- package/dist/client/root/root.d.ts +62 -0
- package/dist/client/root/root.d.ts.map +1 -0
- package/dist/client/root/root.js +92 -0
- package/dist/client/root/root.js.map +1 -0
- package/dist/client/server.d.ts +2 -0
- package/dist/client/server.js +2 -0
- package/dist/client/theme/index.d.ts +2 -0
- package/dist/client/theme/index.js +2 -0
- package/dist/client/theme/tanstack-start.d.ts +5 -0
- package/dist/client/theme/tanstack-start.d.ts.map +1 -0
- package/dist/client/theme/tanstack-start.js +9 -0
- package/dist/client/theme/tanstack-start.js.map +1 -0
- package/dist/components/hooks/use-element-width.d.ts +9 -0
- package/dist/components/hooks/use-element-width.d.ts.map +1 -0
- package/dist/components/hooks/use-element-width.js +26 -0
- package/dist/components/hooks/use-element-width.js.map +1 -0
- package/dist/components/hooks/use-mobile.d.ts +6 -0
- package/dist/components/hooks/use-mobile.d.ts.map +1 -0
- package/dist/components/hooks/use-mobile.js +16 -0
- package/dist/components/hooks/use-mobile.js.map +1 -0
- package/dist/components/hooks/use-scroll.d.ts +12 -0
- package/dist/components/hooks/use-scroll.d.ts.map +1 -0
- package/dist/components/hooks/use-scroll.js +198 -0
- package/dist/components/hooks/use-scroll.js.map +1 -0
- package/dist/components/lib/lucide.d.ts +1 -0
- package/dist/components/lib/lucide.js +10 -0
- package/dist/components/lib/lucide.js.map +1 -0
- package/dist/components/lib/motion.d.ts +1 -0
- package/dist/components/lib/motion.js +1 -0
- package/dist/components/lib/scrollStyles.d.ts +13 -0
- package/dist/components/lib/scrollStyles.d.ts.map +1 -0
- package/dist/components/lib/scrollStyles.js +19 -0
- package/dist/components/lib/scrollStyles.js.map +1 -0
- package/dist/components/lib/shadow-dom.d.ts +17 -0
- package/dist/components/lib/shadow-dom.d.ts.map +1 -0
- package/dist/components/lib/shadow-dom.js +50 -0
- package/dist/components/lib/shadow-dom.js.map +1 -0
- package/dist/components/lib/utils.d.ts +5 -0
- package/dist/components/lib/utils.d.ts.map +1 -0
- package/dist/components/lib/utils.js +10 -0
- package/dist/components/lib/utils.js.map +1 -0
- package/dist/components/ui/accordion.d.ts +9 -0
- package/dist/components/ui/accordion.d.ts.map +1 -0
- package/dist/components/ui/accordion.js +55 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/alert-dialog.d.ts +21 -0
- package/dist/components/ui/alert-dialog.d.ts.map +1 -0
- package/dist/components/ui/alert-dialog.js +96 -0
- package/dist/components/ui/alert-dialog.js.map +1 -0
- package/dist/components/ui/alert.d.ts +13 -0
- package/dist/components/ui/alert.d.ts.map +1 -0
- package/dist/components/ui/alert.js +45 -0
- package/dist/components/ui/alert.js.map +1 -0
- package/dist/components/ui/aspect-ratio.d.ts +7 -0
- package/dist/components/ui/aspect-ratio.d.ts.map +1 -0
- package/dist/components/ui/aspect-ratio.js +15 -0
- package/dist/components/ui/aspect-ratio.js.map +1 -0
- package/dist/components/ui/attachment.d.ts +26 -0
- package/dist/components/ui/attachment.d.ts.map +1 -0
- package/dist/components/ui/attachment.js +106 -0
- package/dist/components/ui/attachment.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +14 -0
- package/dist/components/ui/avatar.d.ts.map +1 -0
- package/dist/components/ui/avatar.js +52 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +10 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/badge.js +31 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/breadcrumb.d.ts +13 -0
- package/dist/components/ui/breadcrumb.d.ts.map +1 -0
- package/dist/components/ui/breadcrumb.js +74 -0
- package/dist/components/ui/breadcrumb.js.map +1 -0
- package/dist/components/ui/bubble.d.ts +19 -0
- package/dist/components/ui/bubble.d.ts.map +1 -0
- package/dist/components/ui/bubble.js +75 -0
- package/dist/components/ui/bubble.js.map +1 -0
- package/dist/components/ui/button-group.d.ts +13 -0
- package/dist/components/ui/button-group.d.ts.map +1 -0
- package/dist/components/ui/button-group.js +43 -0
- package/dist/components/ui/button-group.js.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/button.js +46 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +13 -0
- package/dist/components/ui/calendar.d.ts.map +1 -0
- package/dist/components/ui/calendar.js +110 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +14 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/card.js +58 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/carousel.d.ts +31 -0
- package/dist/components/ui/carousel.d.ts.map +1 -0
- package/dist/components/ui/carousel.js +133 -0
- package/dist/components/ui/carousel.js.map +1 -0
- package/dist/components/ui/chart.d.ts +47 -0
- package/dist/components/ui/chart.d.ts.map +1 -0
- package/dist/components/ui/chart.js +150 -0
- package/dist/components/ui/chart.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/checkbox.d.ts.map +1 -0
- package/dist/components/ui/checkbox.js +22 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/collapsible.d.ts +8 -0
- package/dist/components/ui/collapsible.d.ts.map +1 -0
- package/dist/components/ui/collapsible.js +25 -0
- package/dist/components/ui/collapsible.js.map +1 -0
- package/dist/components/ui/combobox.d.ts +27 -0
- package/dist/components/ui/combobox.d.ts.map +1 -0
- package/dist/components/ui/combobox.js +163 -0
- package/dist/components/ui/combobox.js.map +1 -0
- package/dist/components/ui/command.d.ts +22 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/command.js +90 -0
- package/dist/components/ui/command.js.map +1 -0
- package/dist/components/ui/context-menu.d.ts +32 -0
- package/dist/components/ui/context-menu.d.ts.map +1 -0
- package/dist/components/ui/context-menu.js +135 -0
- package/dist/components/ui/context-menu.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +20 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +94 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/direction.d.ts +2 -0
- package/dist/components/ui/direction.js +2 -0
- package/dist/components/ui/drawer.d.ts +19 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +125 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +35 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +141 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/components/ui/empty.d.ts +14 -0
- package/dist/components/ui/empty.d.ts.map +1 -0
- package/dist/components/ui/empty.js +61 -0
- package/dist/components/ui/empty.js.map +1 -0
- package/dist/components/ui/field.d.ts +27 -0
- package/dist/components/ui/field.d.ts.map +1 -0
- package/dist/components/ui/field.js +111 -0
- package/dist/components/ui/field.js.map +1 -0
- package/dist/components/ui/file-tree.d.ts +62 -0
- package/dist/components/ui/file-tree.d.ts.map +1 -0
- package/dist/components/ui/file-tree.js +300 -0
- package/dist/components/ui/file-tree.js.map +1 -0
- package/dist/components/ui/google-button.d.ts +9 -0
- package/dist/components/ui/google-button.d.ts.map +1 -0
- package/dist/components/ui/google-button.js +183 -0
- package/dist/components/ui/google-button.js.map +1 -0
- package/dist/components/ui/hover-card.d.ts +8 -0
- package/dist/components/ui/hover-card.d.ts.map +1 -0
- package/dist/components/ui/hover-card.js +38 -0
- package/dist/components/ui/hover-card.js.map +1 -0
- package/dist/components/ui/input-group.d.ts +21 -0
- package/dist/components/ui/input-group.d.ts.map +1 -0
- package/dist/components/ui/input-group.js +81 -0
- package/dist/components/ui/input-group.js.map +1 -0
- package/dist/components/ui/input-otp.d.ts +14 -0
- package/dist/components/ui/input-otp.d.ts.map +1 -0
- package/dist/components/ui/input-otp.js +48 -0
- package/dist/components/ui/input-otp.js.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/item.d.ts +25 -0
- package/dist/components/ui/item.d.ts.map +1 -0
- package/dist/components/ui/item.js +123 -0
- package/dist/components/ui/item.js.map +1 -0
- package/dist/components/ui/kbd.d.ts +6 -0
- package/dist/components/ui/kbd.d.ts.map +1 -0
- package/dist/components/ui/kbd.js +21 -0
- package/dist/components/ui/kbd.js.map +1 -0
- package/dist/components/ui/label.d.ts +6 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/label.js +16 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/marker.d.ts +13 -0
- package/dist/components/ui/marker.d.ts.map +1 -0
- package/dist/components/ui/marker.js +45 -0
- package/dist/components/ui/marker.js.map +1 -0
- package/dist/components/ui/menubar.d.ts +32 -0
- package/dist/components/ui/menubar.d.ts.map +1 -0
- package/dist/components/ui/menubar.js +138 -0
- package/dist/components/ui/menubar.js.map +1 -0
- package/dist/components/ui/message-scroller.d.ts +13 -0
- package/dist/components/ui/message-scroller.d.ts.map +1 -0
- package/dist/components/ui/message-scroller.js +62 -0
- package/dist/components/ui/message-scroller.js.map +1 -0
- package/dist/components/ui/message.d.ts +13 -0
- package/dist/components/ui/message.d.ts.map +1 -0
- package/dist/components/ui/message.js +51 -0
- package/dist/components/ui/message.js.map +1 -0
- package/dist/components/ui/native-select.d.ts +11 -0
- package/dist/components/ui/native-select.d.ts.map +1 -0
- package/dist/components/ui/native-select.js +40 -0
- package/dist/components/ui/native-select.js.map +1 -0
- package/dist/components/ui/navigation-menu.d.ts +14 -0
- package/dist/components/ui/navigation-menu.d.ts.map +1 -0
- package/dist/components/ui/navigation-menu.js +84 -0
- package/dist/components/ui/navigation-menu.js.map +1 -0
- package/dist/components/ui/pagination.d.ts +20 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/pagination.js +82 -0
- package/dist/components/ui/pagination.js.map +1 -0
- package/dist/components/ui/popover.d.ts +12 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/popover.js +56 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/progress.d.ts +10 -0
- package/dist/components/ui/progress.d.ts.map +1 -0
- package/dist/components/ui/progress.js +46 -0
- package/dist/components/ui/progress.js.map +1 -0
- package/dist/components/ui/questionnaire.d.ts +22 -0
- package/dist/components/ui/questionnaire.d.ts.map +1 -0
- package/dist/components/ui/questionnaire.js +172 -0
- package/dist/components/ui/questionnaire.js.map +1 -0
- package/dist/components/ui/radio-group.d.ts +8 -0
- package/dist/components/ui/radio-group.d.ts.map +1 -0
- package/dist/components/ui/radio-group.js +28 -0
- package/dist/components/ui/radio-group.js.map +1 -0
- package/dist/components/ui/resizable.d.ts +10 -0
- package/dist/components/ui/resizable.d.ts.map +1 -0
- package/dist/components/ui/resizable.js +30 -0
- package/dist/components/ui/resizable.js.map +1 -0
- package/dist/components/ui/scroll-area.d.ts +10 -0
- package/dist/components/ui/scroll-area.d.ts.map +1 -0
- package/dist/components/ui/scroll-area.js +38 -0
- package/dist/components/ui/scroll-area.js.map +1 -0
- package/dist/components/ui/select.d.ts +18 -0
- package/dist/components/ui/select.d.ts.map +1 -0
- package/dist/components/ui/select.js +100 -0
- package/dist/components/ui/select.js.map +1 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/separator.js +16 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/sheet.d.ts +17 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sheet.js +90 -0
- package/dist/components/ui/sheet.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +5 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/skeleton.js +14 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/slider.d.ts +6 -0
- package/dist/components/ui/slider.d.ts.map +1 -0
- package/dist/components/ui/slider.js +35 -0
- package/dist/components/ui/slider.js.map +1 -0
- package/dist/components/ui/sonner.d.ts +6 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/sonner.js +28 -0
- package/dist/components/ui/sonner.js.map +1 -0
- package/dist/components/ui/spinner.d.ts +5 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/spinner.js +17 -0
- package/dist/components/ui/spinner.js.map +1 -0
- package/dist/components/ui/switch.d.ts +8 -0
- package/dist/components/ui/switch.d.ts.map +1 -0
- package/dist/components/ui/switch.js +21 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +13 -0
- package/dist/components/ui/table.d.ts.map +1 -0
- package/dist/components/ui/table.js +68 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/tabs.d.ts +13 -0
- package/dist/components/ui/tabs.d.ts.map +1 -0
- package/dist/components/ui/tabs.js +47 -0
- package/dist/components/ui/tabs.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/textarea.js +15 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/toast.d.ts +19 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/components/ui/toast.js +125 -0
- package/dist/components/ui/toast.js.map +1 -0
- package/dist/components/ui/toggle-group.d.ts +14 -0
- package/dist/components/ui/toggle-group.d.ts.map +1 -0
- package/dist/components/ui/toggle-group.js +53 -0
- package/dist/components/ui/toggle-group.js.map +1 -0
- package/dist/components/ui/toggle.d.ts +11 -0
- package/dist/components/ui/toggle.d.ts.map +1 -0
- package/dist/components/ui/toggle.js +37 -0
- package/dist/components/ui/toggle.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/ui/tooltip.js +43 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/components/viewers/diff-viewer/align.d.ts +23 -0
- package/dist/components/viewers/diff-viewer/align.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/align.js +68 -0
- package/dist/components/viewers/diff-viewer/align.js.map +1 -0
- package/dist/components/viewers/diff-viewer/collapse.d.ts +20 -0
- package/dist/components/viewers/diff-viewer/collapse.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/collapse.js +84 -0
- package/dist/components/viewers/diff-viewer/collapse.js.map +1 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.d.ts +34 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.js +373 -0
- package/dist/components/viewers/diff-viewer/diff-viewer.js.map +1 -0
- package/dist/components/viewers/diff-viewer/index.d.ts +2 -0
- package/dist/components/viewers/diff-viewer/index.js +2 -0
- package/dist/components/viewers/diff-viewer/render-model.d.ts +27 -0
- package/dist/components/viewers/diff-viewer/render-model.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/render-model.js +83 -0
- package/dist/components/viewers/diff-viewer/render-model.js.map +1 -0
- package/dist/components/viewers/diff-viewer/sync-rows.d.ts +8 -0
- package/dist/components/viewers/diff-viewer/sync-rows.d.ts.map +1 -0
- package/dist/components/viewers/diff-viewer/sync-rows.js +32 -0
- package/dist/components/viewers/diff-viewer/sync-rows.js.map +1 -0
- package/dist/components/viewers/file-tree/expand.d.ts +7 -0
- package/dist/components/viewers/file-tree/expand.d.ts.map +1 -0
- package/dist/components/viewers/file-tree/expand.js +37 -0
- package/dist/components/viewers/file-tree/expand.js.map +1 -0
- package/dist/components/viewers/file-tree/file-tree.d.ts +20 -0
- package/dist/components/viewers/file-tree/file-tree.d.ts.map +1 -0
- package/dist/components/viewers/file-tree/file-tree.js +116 -0
- package/dist/components/viewers/file-tree/file-tree.js.map +1 -0
- package/dist/components/viewers/file-tree/index.d.ts +3 -0
- package/dist/components/viewers/file-tree/index.js +3 -0
- package/dist/components/viewers/git-changes/git-changes.d.ts +40 -0
- package/dist/components/viewers/git-changes/git-changes.d.ts.map +1 -0
- package/dist/components/viewers/git-changes/git-changes.js +170 -0
- package/dist/components/viewers/git-changes/git-changes.js.map +1 -0
- package/dist/components/viewers/git-changes/index.d.ts +2 -0
- package/dist/components/viewers/git-changes/index.js +2 -0
- package/dist/components/viewers/json/index.d.ts +4 -0
- package/dist/components/viewers/json/index.js +4 -0
- package/dist/components/viewers/json/json-editor.d.ts +14 -0
- package/dist/components/viewers/json/json-editor.d.ts.map +1 -0
- package/dist/components/viewers/json/json-editor.js +84 -0
- package/dist/components/viewers/json/json-editor.js.map +1 -0
- package/dist/components/viewers/json/json-tree.d.ts +11 -0
- package/dist/components/viewers/json/json-tree.d.ts.map +1 -0
- package/dist/components/viewers/json/json-tree.js +88 -0
- package/dist/components/viewers/json/json-tree.js.map +1 -0
- package/dist/components/viewers/json/json-viewer.d.ts +10 -0
- package/dist/components/viewers/json/json-viewer.d.ts.map +1 -0
- package/dist/components/viewers/json/json-viewer.js +48 -0
- package/dist/components/viewers/json/json-viewer.js.map +1 -0
- package/dist/components/viewers/markdown-viewer/index.d.ts +2 -0
- package/dist/components/viewers/markdown-viewer/index.js +2 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.d.ts +8 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.d.ts.map +1 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.js +65 -0
- package/dist/components/viewers/markdown-viewer/markdown-viewer.js.map +1 -0
- package/dist/components/viewers/source-explorer/index.d.ts +2 -0
- package/dist/components/viewers/source-explorer/index.js +2 -0
- package/dist/components/viewers/source-explorer/initial-selection.d.ts +6 -0
- package/dist/components/viewers/source-explorer/initial-selection.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/initial-selection.js +13 -0
- package/dist/components/viewers/source-explorer/initial-selection.js.map +1 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.d.ts +11 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.js +21 -0
- package/dist/components/viewers/source-explorer/snapshot-tree.js.map +1 -0
- package/dist/components/viewers/source-explorer/source-explorer.d.ts +49 -0
- package/dist/components/viewers/source-explorer/source-explorer.d.ts.map +1 -0
- package/dist/components/viewers/source-explorer/source-explorer.js +364 -0
- package/dist/components/viewers/source-explorer/source-explorer.js.map +1 -0
- package/dist/components/viewers/source-viewer/index.d.ts +2 -0
- package/dist/components/viewers/source-viewer/index.js +2 -0
- package/dist/components/viewers/source-viewer/source-viewer.d.ts +33 -0
- package/dist/components/viewers/source-viewer/source-viewer.d.ts.map +1 -0
- package/dist/components/viewers/source-viewer/source-viewer.js +224 -0
- package/dist/components/viewers/source-viewer/source-viewer.js.map +1 -0
- package/dist/define/index.d.ts +10 -0
- package/dist/define/index.js +4 -0
- package/dist/feedback/index.d.ts +2 -0
- package/dist/feedback/index.js +2 -0
- package/dist/feedback/sound.d.ts +28 -0
- package/dist/feedback/sound.d.ts.map +1 -0
- package/dist/feedback/sound.js +150 -0
- package/dist/feedback/sound.js.map +1 -0
- package/dist/form/components/submit-button.d.ts +11 -0
- package/dist/form/components/submit-button.d.ts.map +1 -0
- package/dist/form/components/submit-button.js +26 -0
- package/dist/form/components/submit-button.js.map +1 -0
- package/dist/form/context.d.ts +8 -0
- package/dist/form/context.d.ts.map +1 -0
- package/dist/form/context.js +11 -0
- package/dist/form/context.js.map +1 -0
- package/dist/form/create-form-hook.d.ts +62 -0
- package/dist/form/create-form-hook.d.ts.map +1 -0
- package/dist/form/create-form-hook.js +51 -0
- package/dist/form/create-form-hook.js.map +1 -0
- package/dist/form/fields/date-picker-field.d.ts +9 -0
- package/dist/form/fields/date-picker-field.d.ts.map +1 -0
- package/dist/form/fields/date-picker-field.js +84 -0
- package/dist/form/fields/date-picker-field.js.map +1 -0
- package/dist/form/fields/select-field.d.ts +15 -0
- package/dist/form/fields/select-field.d.ts.map +1 -0
- package/dist/form/fields/select-field.js +65 -0
- package/dist/form/fields/select-field.js.map +1 -0
- package/dist/form/fields/switch-field.d.ts +9 -0
- package/dist/form/fields/switch-field.d.ts.map +1 -0
- package/dist/form/fields/switch-field.js +56 -0
- package/dist/form/fields/switch-field.js.map +1 -0
- package/dist/form/fields/text-field.d.ts +10 -0
- package/dist/form/fields/text-field.d.ts.map +1 -0
- package/dist/form/fields/text-field.js +58 -0
- package/dist/form/fields/text-field.js.map +1 -0
- package/dist/form/fields/textarea-field.d.ts +10 -0
- package/dist/form/fields/textarea-field.d.ts.map +1 -0
- package/dist/form/fields/textarea-field.js +58 -0
- package/dist/form/fields/textarea-field.js.map +1 -0
- package/dist/form/index.d.ts +10 -0
- package/dist/form/index.js +3 -0
- package/dist/form/types.d.ts +51 -0
- package/dist/form/types.d.ts.map +1 -0
- package/dist/form/types.js +23 -0
- package/dist/form/types.js.map +1 -0
- package/dist/input/device/device.d.ts +21 -0
- package/dist/input/device/device.d.ts.map +1 -0
- package/dist/input/device/device.js +61 -0
- package/dist/input/device/device.js.map +1 -0
- package/dist/input/device/index.d.ts +2 -0
- package/dist/input/device/index.js +2 -0
- package/dist/input/gesture/index.d.ts +9 -0
- package/dist/input/gesture/index.js +5 -0
- package/dist/input/gesture/patterns/index.d.ts +5 -0
- package/dist/input/gesture/patterns/index.js +3 -0
- package/dist/input/gesture/patterns/pull-to-refresh/index.d.ts +2 -0
- package/dist/input/gesture/patterns/pull-to-refresh/index.js +2 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.d.ts +32 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.d.ts.map +1 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.js +75 -0
- package/dist/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.js.map +1 -0
- package/dist/input/gesture/patterns/sidebar/index.d.ts +2 -0
- package/dist/input/gesture/patterns/sidebar/index.js +2 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.d.ts +41 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.d.ts.map +1 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.js +131 -0
- package/dist/input/gesture/patterns/sidebar/use-sidebar.js.map +1 -0
- package/dist/input/gesture/recognizers/index.d.ts +3 -0
- package/dist/input/gesture/recognizers/index.js +2 -0
- package/dist/input/gesture/recognizers/swipe/index.d.ts +2 -0
- package/dist/input/gesture/recognizers/swipe/index.js +2 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.d.ts +56 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.d.ts.map +1 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.js +150 -0
- package/dist/input/gesture/recognizers/swipe/use-swipe.js.map +1 -0
- package/dist/input/gesture/zones/index.d.ts +4 -0
- package/dist/input/gesture/zones/index.js +2 -0
- package/dist/input/gesture/zones/touch-input/index.d.ts +3 -0
- package/dist/input/gesture/zones/touch-input/index.js +3 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.d.ts +28 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.d.ts.map +1 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.js +61 -0
- package/dist/input/gesture/zones/touch-input/native-scroll.js.map +1 -0
- package/dist/input/gesture/zones/touch-input/touch-input.d.ts +54 -0
- package/dist/input/gesture/zones/touch-input/touch-input.d.ts.map +1 -0
- package/dist/input/gesture/zones/touch-input/touch-input.js +243 -0
- package/dist/input/gesture/zones/touch-input/touch-input.js.map +1 -0
- package/dist/input/gesture/zones/zone/index.d.ts +3 -0
- package/dist/input/gesture/zones/zone/index.js +2 -0
- package/dist/input/gesture/zones/zone/motion-pointers.d.ts +33 -0
- package/dist/input/gesture/zones/zone/motion-pointers.d.ts.map +1 -0
- package/dist/input/gesture/zones/zone/motion-pointers.js +52 -0
- package/dist/input/gesture/zones/zone/motion-pointers.js.map +1 -0
- package/dist/input/gesture/zones/zone/zone.d.ts +93 -0
- package/dist/input/gesture/zones/zone/zone.d.ts.map +1 -0
- package/dist/input/gesture/zones/zone/zone.js +169 -0
- package/dist/input/gesture/zones/zone/zone.js.map +1 -0
- package/dist/input/index.d.ts +8 -0
- package/dist/input/index.js +6 -0
- package/dist/pwa/browser/dom-events.d.ts +9 -0
- package/dist/pwa/browser/dom-events.d.ts.map +1 -0
- package/dist/pwa/browser/dom-events.js +10 -0
- package/dist/pwa/browser/dom-events.js.map +1 -0
- package/dist/pwa/browser/subscription-ref.d.ts +6 -0
- package/dist/pwa/browser/subscription-ref.d.ts.map +1 -0
- package/dist/pwa/browser/subscription-ref.js +19 -0
- package/dist/pwa/browser/subscription-ref.js.map +1 -0
- package/dist/pwa/client/client.d.ts +32 -0
- package/dist/pwa/client/client.d.ts.map +1 -0
- package/dist/pwa/client/client.js +36 -0
- package/dist/pwa/client/client.js.map +1 -0
- package/dist/pwa/client/commands/commands.d.ts +9 -0
- package/dist/pwa/client/commands/commands.d.ts.map +1 -0
- package/dist/pwa/client/commands/commands.js +21 -0
- package/dist/pwa/client/commands/commands.js.map +1 -0
- package/dist/pwa/client/commands/index.d.ts +2 -0
- package/dist/pwa/client/commands/index.js +2 -0
- package/dist/pwa/client/index.d.ts +3 -0
- package/dist/pwa/client/index.js +3 -0
- package/dist/pwa/client/registration.d.ts +14 -0
- package/dist/pwa/client/registration.d.ts.map +1 -0
- package/dist/pwa/client/registration.js +36 -0
- package/dist/pwa/client/registration.js.map +1 -0
- package/dist/pwa/client/runtime-cache.d.ts +9 -0
- package/dist/pwa/client/runtime-cache.d.ts.map +1 -0
- package/dist/pwa/client/runtime-cache.js +15 -0
- package/dist/pwa/client/runtime-cache.js.map +1 -0
- package/dist/pwa/client/status/index.d.ts +2 -0
- package/dist/pwa/client/status/index.js +2 -0
- package/dist/pwa/client/status/status.d.ts +136 -0
- package/dist/pwa/client/status/status.d.ts.map +1 -0
- package/dist/pwa/client/status/status.js +83 -0
- package/dist/pwa/client/status/status.js.map +1 -0
- package/dist/pwa/extras/display-mode/display-mode.d.ts +18 -0
- package/dist/pwa/extras/display-mode/display-mode.d.ts.map +1 -0
- package/dist/pwa/extras/display-mode/display-mode.js +42 -0
- package/dist/pwa/extras/display-mode/display-mode.js.map +1 -0
- package/dist/pwa/extras/display-mode/index.d.ts +2 -0
- package/dist/pwa/extras/display-mode/index.js +2 -0
- package/dist/pwa/extras/index.d.ts +13 -0
- package/dist/pwa/extras/index.js +9 -0
- package/dist/pwa/extras/install/index.d.ts +5 -0
- package/dist/pwa/extras/install/index.js +5 -0
- package/dist/pwa/extras/install/install-content.d.ts +12 -0
- package/dist/pwa/extras/install/install-content.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-content.js +57 -0
- package/dist/pwa/extras/install/install-content.js.map +1 -0
- package/dist/pwa/extras/install/install-dismissal.d.ts +5 -0
- package/dist/pwa/extras/install/install-dismissal.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-dismissal.js +20 -0
- package/dist/pwa/extras/install/install-dismissal.js.map +1 -0
- package/dist/pwa/extras/install/install-prompt.d.ts +12 -0
- package/dist/pwa/extras/install/install-prompt.d.ts.map +1 -0
- package/dist/pwa/extras/install/install-prompt.js +66 -0
- package/dist/pwa/extras/install/install-prompt.js.map +1 -0
- package/dist/pwa/extras/install/install.d.ts +125 -0
- package/dist/pwa/extras/install/install.d.ts.map +1 -0
- package/dist/pwa/extras/install/install.js +80 -0
- package/dist/pwa/extras/install/install.js.map +1 -0
- package/dist/pwa/extras/install/ios.d.ts +8 -0
- package/dist/pwa/extras/install/ios.d.ts.map +1 -0
- package/dist/pwa/extras/install/ios.js +10 -0
- package/dist/pwa/extras/install/ios.js.map +1 -0
- package/dist/pwa/extras/install/media-query.d.ts +5 -0
- package/dist/pwa/extras/install/media-query.d.ts.map +1 -0
- package/dist/pwa/extras/install/media-query.js +15 -0
- package/dist/pwa/extras/install/media-query.js.map +1 -0
- package/dist/pwa/extras/lazy-service/index.d.ts +2 -0
- package/dist/pwa/extras/lazy-service/index.js +2 -0
- package/dist/pwa/extras/lazy-service/lazy-service.d.ts +11 -0
- package/dist/pwa/extras/lazy-service/lazy-service.d.ts.map +1 -0
- package/dist/pwa/extras/lazy-service/lazy-service.js +30 -0
- package/dist/pwa/extras/lazy-service/lazy-service.js.map +1 -0
- package/dist/pwa/extras/online/index.d.ts +3 -0
- package/dist/pwa/extras/online/index.js +3 -0
- package/dist/pwa/extras/online/offline-indicator.d.ts +11 -0
- package/dist/pwa/extras/online/offline-indicator.d.ts.map +1 -0
- package/dist/pwa/extras/online/offline-indicator.js +26 -0
- package/dist/pwa/extras/online/offline-indicator.js.map +1 -0
- package/dist/pwa/extras/online/online.d.ts +15 -0
- package/dist/pwa/extras/online/online.d.ts.map +1 -0
- package/dist/pwa/extras/online/online.js +27 -0
- package/dist/pwa/extras/online/online.js.map +1 -0
- package/dist/pwa/extras/storage/index.d.ts +2 -0
- package/dist/pwa/extras/storage/index.js +2 -0
- package/dist/pwa/extras/storage/storage.d.ts +28 -0
- package/dist/pwa/extras/storage/storage.d.ts.map +1 -0
- package/dist/pwa/extras/storage/storage.js +51 -0
- package/dist/pwa/extras/storage/storage.js.map +1 -0
- package/dist/pwa/index.d.ts +8 -0
- package/dist/pwa/index.js +5 -0
- package/dist/pwa/react/head.d.ts +33 -0
- package/dist/pwa/react/head.d.ts.map +1 -0
- package/dist/pwa/react/head.js +43 -0
- package/dist/pwa/react/head.js.map +1 -0
- package/dist/pwa/react/index.d.ts +4 -0
- package/dist/pwa/react/index.js +3 -0
- package/dist/pwa/react/react.d.ts +33 -0
- package/dist/pwa/react/react.d.ts.map +1 -0
- package/dist/pwa/react/react.js +67 -0
- package/dist/pwa/react/react.js.map +1 -0
- package/dist/pwa/react/update-prompt.d.ts +12 -0
- package/dist/pwa/react/update-prompt.d.ts.map +1 -0
- package/dist/pwa/react/update-prompt.js +23 -0
- package/dist/pwa/react/update-prompt.js.map +1 -0
- package/dist/pwa/react/update-toast.d.ts +15 -0
- package/dist/pwa/react/update-toast.d.ts.map +1 -0
- package/dist/pwa/react/update-toast.js +52 -0
- package/dist/pwa/react/update-toast.js.map +1 -0
- package/dist/pwa/root/index.d.ts +2 -0
- package/dist/pwa/root/index.js +2 -0
- package/dist/pwa/root/root.d.ts +14 -0
- package/dist/pwa/root/root.d.ts.map +1 -0
- package/dist/pwa/root/root.js +35 -0
- package/dist/pwa/root/root.js.map +1 -0
- package/dist/pwa/rpc/client/client.d.ts +49 -0
- package/dist/pwa/rpc/client/client.d.ts.map +1 -0
- package/dist/pwa/rpc/client/client.js +55 -0
- package/dist/pwa/rpc/client/client.js.map +1 -0
- package/dist/pwa/rpc/client/index.d.ts +3 -0
- package/dist/pwa/rpc/client/index.js +3 -0
- package/dist/pwa/rpc/client/page-environment.d.ts +25 -0
- package/dist/pwa/rpc/client/page-environment.d.ts.map +1 -0
- package/dist/pwa/rpc/client/page-environment.js +46 -0
- package/dist/pwa/rpc/client/page-environment.js.map +1 -0
- package/dist/pwa/rpc/client/platform.d.ts +26 -0
- package/dist/pwa/rpc/client/platform.d.ts.map +1 -0
- package/dist/pwa/rpc/client/platform.js +144 -0
- package/dist/pwa/rpc/client/platform.js.map +1 -0
- package/dist/pwa/rpc/client/version-skew.d.ts +24 -0
- package/dist/pwa/rpc/client/version-skew.d.ts.map +1 -0
- package/dist/pwa/rpc/client/version-skew.js +63 -0
- package/dist/pwa/rpc/client/version-skew.js.map +1 -0
- package/dist/pwa/rpc/handshake/handshake.d.ts +74 -0
- package/dist/pwa/rpc/handshake/handshake.d.ts.map +1 -0
- package/dist/pwa/rpc/handshake/handshake.js +104 -0
- package/dist/pwa/rpc/handshake/handshake.js.map +1 -0
- package/dist/pwa/rpc/handshake/index.d.ts +2 -0
- package/dist/pwa/rpc/handshake/index.js +2 -0
- package/dist/pwa/rpc/worker/connections.d.ts +31 -0
- package/dist/pwa/rpc/worker/connections.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/connections.js +48 -0
- package/dist/pwa/rpc/worker/connections.js.map +1 -0
- package/dist/pwa/rpc/worker/index.d.ts +2 -0
- package/dist/pwa/rpc/worker/index.js +2 -0
- package/dist/pwa/rpc/worker/keep-alive.d.ts +11 -0
- package/dist/pwa/rpc/worker/keep-alive.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/keep-alive.js +30 -0
- package/dist/pwa/rpc/worker/keep-alive.js.map +1 -0
- package/dist/pwa/rpc/worker/runner-platform.d.ts +18 -0
- package/dist/pwa/rpc/worker/runner-platform.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/runner-platform.js +113 -0
- package/dist/pwa/rpc/worker/runner-platform.js.map +1 -0
- package/dist/pwa/rpc/worker/worker.d.ts +22 -0
- package/dist/pwa/rpc/worker/worker.d.ts.map +1 -0
- package/dist/pwa/rpc/worker/worker.js +23 -0
- package/dist/pwa/rpc/worker/worker.js.map +1 -0
- package/dist/pwa/shared/build/build.d.ts +55 -0
- package/dist/pwa/shared/build/build.d.ts.map +1 -0
- package/dist/pwa/shared/build/build.js +55 -0
- package/dist/pwa/shared/build/build.js.map +1 -0
- package/dist/pwa/shared/build/canonical-json.d.ts +5 -0
- package/dist/pwa/shared/build/canonical-json.d.ts.map +1 -0
- package/dist/pwa/shared/build/canonical-json.js +7 -0
- package/dist/pwa/shared/build/canonical-json.js.map +1 -0
- package/dist/pwa/shared/build/fnv1a.d.ts +5 -0
- package/dist/pwa/shared/build/fnv1a.d.ts.map +1 -0
- package/dist/pwa/shared/build/fnv1a.js +17 -0
- package/dist/pwa/shared/build/fnv1a.js.map +1 -0
- package/dist/pwa/shared/build/index.d.ts +2 -0
- package/dist/pwa/shared/build/index.js +2 -0
- package/dist/pwa/shared/commands/commands.d.ts +39 -0
- package/dist/pwa/shared/commands/commands.d.ts.map +1 -0
- package/dist/pwa/shared/commands/commands.js +51 -0
- package/dist/pwa/shared/commands/commands.js.map +1 -0
- package/dist/pwa/shared/commands/index.d.ts +2 -0
- package/dist/pwa/shared/commands/index.js +2 -0
- package/dist/pwa/shared/config/config.d.ts +231 -0
- package/dist/pwa/shared/config/config.d.ts.map +1 -0
- package/dist/pwa/shared/config/config.js +136 -0
- package/dist/pwa/shared/config/config.js.map +1 -0
- package/dist/pwa/shared/config/index.d.ts +2 -0
- package/dist/pwa/shared/config/index.js +2 -0
- package/dist/pwa/shared/config/presets.d.ts +19 -0
- package/dist/pwa/shared/config/presets.d.ts.map +1 -0
- package/dist/pwa/shared/config/presets.js +45 -0
- package/dist/pwa/shared/config/presets.js.map +1 -0
- package/dist/pwa/shared/manifest/index.d.ts +2 -0
- package/dist/pwa/shared/manifest/index.js +2 -0
- package/dist/pwa/shared/manifest/manifest.d.ts +53 -0
- package/dist/pwa/shared/manifest/manifest.d.ts.map +1 -0
- package/dist/pwa/shared/manifest/manifest.js +87 -0
- package/dist/pwa/shared/manifest/manifest.js.map +1 -0
- package/dist/pwa/shared/strategy/index.d.ts +2 -0
- package/dist/pwa/shared/strategy/index.js +2 -0
- package/dist/pwa/shared/strategy/pattern.d.ts +6 -0
- package/dist/pwa/shared/strategy/pattern.d.ts.map +1 -0
- package/dist/pwa/shared/strategy/pattern.js +23 -0
- package/dist/pwa/shared/strategy/pattern.js.map +1 -0
- package/dist/pwa/shared/strategy/strategy.d.ts +41 -0
- package/dist/pwa/shared/strategy/strategy.d.ts.map +1 -0
- package/dist/pwa/shared/strategy/strategy.js +60 -0
- package/dist/pwa/shared/strategy/strategy.js.map +1 -0
- package/dist/pwa/shared/worker-host/index.d.ts +2 -0
- package/dist/pwa/shared/worker-host/index.js +2 -0
- package/dist/pwa/shared/worker-host/worker-host.d.ts +22 -0
- package/dist/pwa/shared/worker-host/worker-host.d.ts.map +1 -0
- package/dist/pwa/shared/worker-host/worker-host.js +11 -0
- package/dist/pwa/shared/worker-host/worker-host.js.map +1 -0
- package/dist/pwa/splash/devices.d.ts +85 -0
- package/dist/pwa/splash/devices.d.ts.map +1 -0
- package/dist/pwa/splash/devices.js +109 -0
- package/dist/pwa/splash/devices.js.map +1 -0
- package/dist/pwa/splash/index.d.ts +2 -0
- package/dist/pwa/splash/index.js +2 -0
- package/dist/pwa/splash/splash.d.ts +29 -0
- package/dist/pwa/splash/splash.d.ts.map +1 -0
- package/dist/pwa/splash/splash.js +38 -0
- package/dist/pwa/splash/splash.js.map +1 -0
- package/dist/pwa/vite/build/build-plugin.d.ts +15 -0
- package/dist/pwa/vite/build/build-plugin.d.ts.map +1 -0
- package/dist/pwa/vite/build/build-plugin.js +105 -0
- package/dist/pwa/vite/build/build-plugin.js.map +1 -0
- package/dist/pwa/vite/build/build-state.d.ts +17 -0
- package/dist/pwa/vite/build/build-state.d.ts.map +1 -0
- package/dist/pwa/vite/build/build-state.js +9 -0
- package/dist/pwa/vite/build/build-state.js.map +1 -0
- package/dist/pwa/vite/build/headers.d.ts +10 -0
- package/dist/pwa/vite/build/headers.d.ts.map +1 -0
- package/dist/pwa/vite/build/headers.js +26 -0
- package/dist/pwa/vite/build/headers.js.map +1 -0
- package/dist/pwa/vite/build/index.d.ts +3 -0
- package/dist/pwa/vite/build/index.js +3 -0
- package/dist/pwa/vite/build/output-files.d.ts +12 -0
- package/dist/pwa/vite/build/output-files.d.ts.map +1 -0
- package/dist/pwa/vite/build/output-files.js +35 -0
- package/dist/pwa/vite/build/output-files.js.map +1 -0
- package/dist/pwa/vite/build/start-setup.d.ts +19 -0
- package/dist/pwa/vite/build/start-setup.d.ts.map +1 -0
- package/dist/pwa/vite/build/start-setup.js +27 -0
- package/dist/pwa/vite/build/start-setup.js.map +1 -0
- package/dist/pwa/vite/client-module/build-version.d.ts +15 -0
- package/dist/pwa/vite/client-module/build-version.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/build-version.js +45 -0
- package/dist/pwa/vite/client-module/build-version.js.map +1 -0
- package/dist/pwa/vite/client-module/client-info.d.ts +22 -0
- package/dist/pwa/vite/client-module/client-info.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/client-info.js +38 -0
- package/dist/pwa/vite/client-module/client-info.js.map +1 -0
- package/dist/pwa/vite/client-module/client-module.d.ts +16 -0
- package/dist/pwa/vite/client-module/client-module.d.ts.map +1 -0
- package/dist/pwa/vite/client-module/client-module.js +47 -0
- package/dist/pwa/vite/client-module/client-module.js.map +1 -0
- package/dist/pwa/vite/client-module/index.d.ts +2 -0
- package/dist/pwa/vite/client-module/index.js +2 -0
- package/dist/pwa/vite/dev/dev-plugin.d.ts +13 -0
- package/dist/pwa/vite/dev/dev-plugin.d.ts.map +1 -0
- package/dist/pwa/vite/dev/dev-plugin.js +61 -0
- package/dist/pwa/vite/dev/dev-plugin.js.map +1 -0
- package/dist/pwa/vite/dev/index.d.ts +2 -0
- package/dist/pwa/vite/dev/index.js +2 -0
- package/dist/pwa/vite/index.d.ts +2 -0
- package/dist/pwa/vite/index.js +2 -0
- package/dist/pwa/vite/precache/asset-kind.d.ts +7 -0
- package/dist/pwa/vite/precache/asset-kind.d.ts.map +1 -0
- package/dist/pwa/vite/precache/asset-kind.js +24 -0
- package/dist/pwa/vite/precache/asset-kind.js.map +1 -0
- package/dist/pwa/vite/precache/index.d.ts +2 -0
- package/dist/pwa/vite/precache/index.js +2 -0
- package/dist/pwa/vite/precache/precache.d.ts +39 -0
- package/dist/pwa/vite/precache/precache.d.ts.map +1 -0
- package/dist/pwa/vite/precache/precache.js +60 -0
- package/dist/pwa/vite/precache/precache.js.map +1 -0
- package/dist/pwa/vite/precache/revision.d.ts +5 -0
- package/dist/pwa/vite/precache/revision.d.ts.map +1 -0
- package/dist/pwa/vite/precache/revision.js +8 -0
- package/dist/pwa/vite/precache/revision.js.map +1 -0
- package/dist/pwa/vite/precache/url-path.d.ts +12 -0
- package/dist/pwa/vite/precache/url-path.d.ts.map +1 -0
- package/dist/pwa/vite/precache/url-path.js +23 -0
- package/dist/pwa/vite/precache/url-path.js.map +1 -0
- package/dist/pwa/vite/vite.d.ts +14 -0
- package/dist/pwa/vite/vite.d.ts.map +1 -0
- package/dist/pwa/vite/vite.js +27 -0
- package/dist/pwa/vite/vite.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/build-module.d.ts +11 -0
- package/dist/pwa/vite/worker-bundle/build-module.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/build-module.js +23 -0
- package/dist/pwa/vite/worker-bundle/build-module.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/entry.d.ts +10 -0
- package/dist/pwa/vite/worker-bundle/entry.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/entry.js +25 -0
- package/dist/pwa/vite/worker-bundle/entry.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/index.d.ts +2 -0
- package/dist/pwa/vite/worker-bundle/index.js +2 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.d.ts +9 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.js +27 -0
- package/dist/pwa/vite/worker-bundle/kill-switch.js.map +1 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.d.ts +25 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.d.ts.map +1 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.js +49 -0
- package/dist/pwa/vite/worker-bundle/worker-bundle.js.map +1 -0
- package/dist/pwa/worker/commands/commands.d.ts +13 -0
- package/dist/pwa/worker/commands/commands.d.ts.map +1 -0
- package/dist/pwa/worker/commands/commands.js +23 -0
- package/dist/pwa/worker/commands/commands.js.map +1 -0
- package/dist/pwa/worker/commands/index.d.ts +2 -0
- package/dist/pwa/worker/commands/index.js +2 -0
- package/dist/pwa/worker/global-scope/global-scope.d.ts +35 -0
- package/dist/pwa/worker/global-scope/global-scope.d.ts.map +1 -0
- package/dist/pwa/worker/global-scope/global-scope.js +45 -0
- package/dist/pwa/worker/global-scope/global-scope.js.map +1 -0
- package/dist/pwa/worker/global-scope/index.d.ts +2 -0
- package/dist/pwa/worker/global-scope/index.js +2 -0
- package/dist/pwa/worker/index.d.ts +3 -0
- package/dist/pwa/worker/index.js +3 -0
- package/dist/pwa/worker/lifecycle/index.d.ts +2 -0
- package/dist/pwa/worker/lifecycle/index.js +2 -0
- package/dist/pwa/worker/lifecycle/lifecycle.d.ts +19 -0
- package/dist/pwa/worker/lifecycle/lifecycle.d.ts.map +1 -0
- package/dist/pwa/worker/lifecycle/lifecycle.js +32 -0
- package/dist/pwa/worker/lifecycle/lifecycle.js.map +1 -0
- package/dist/pwa/worker/messages/index.d.ts +2 -0
- package/dist/pwa/worker/messages/index.js +2 -0
- package/dist/pwa/worker/messages/messages.d.ts +16 -0
- package/dist/pwa/worker/messages/messages.d.ts.map +1 -0
- package/dist/pwa/worker/messages/messages.js +59 -0
- package/dist/pwa/worker/messages/messages.js.map +1 -0
- package/dist/pwa/worker/precache/download.d.ts +11 -0
- package/dist/pwa/worker/precache/download.d.ts.map +1 -0
- package/dist/pwa/worker/precache/download.js +26 -0
- package/dist/pwa/worker/precache/download.js.map +1 -0
- package/dist/pwa/worker/precache/index.d.ts +2 -0
- package/dist/pwa/worker/precache/index.js +2 -0
- package/dist/pwa/worker/precache/precache.d.ts +21 -0
- package/dist/pwa/worker/precache/precache.d.ts.map +1 -0
- package/dist/pwa/worker/precache/precache.js +35 -0
- package/dist/pwa/worker/precache/precache.js.map +1 -0
- package/dist/pwa/worker/requests/index.d.ts +2 -0
- package/dist/pwa/worker/requests/index.js +2 -0
- package/dist/pwa/worker/requests/pages/index.d.ts +2 -0
- package/dist/pwa/worker/requests/pages/index.js +2 -0
- package/dist/pwa/worker/requests/pages/pages.d.ts +25 -0
- package/dist/pwa/worker/requests/pages/pages.d.ts.map +1 -0
- package/dist/pwa/worker/requests/pages/pages.js +74 -0
- package/dist/pwa/worker/requests/pages/pages.js.map +1 -0
- package/dist/pwa/worker/requests/requests.d.ts +17 -0
- package/dist/pwa/worker/requests/requests.d.ts.map +1 -0
- package/dist/pwa/worker/requests/requests.js +28 -0
- package/dist/pwa/worker/requests/requests.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/cache-store.d.ts +19 -0
- package/dist/pwa/worker/requests/strategies/cache-store.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/cache-store.js +50 -0
- package/dist/pwa/worker/requests/strategies/cache-store.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/index.d.ts +3 -0
- package/dist/pwa/worker/requests/strategies/index.js +3 -0
- package/dist/pwa/worker/requests/strategies/kinds.d.ts +11 -0
- package/dist/pwa/worker/requests/strategies/kinds.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/kinds.js +35 -0
- package/dist/pwa/worker/requests/strategies/kinds.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/network-first.d.ts +18 -0
- package/dist/pwa/worker/requests/strategies/network-first.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/network-first.js +30 -0
- package/dist/pwa/worker/requests/strategies/network-first.js.map +1 -0
- package/dist/pwa/worker/requests/strategies/strategies.d.ts +16 -0
- package/dist/pwa/worker/requests/strategies/strategies.d.ts.map +1 -0
- package/dist/pwa/worker/requests/strategies/strategies.js +22 -0
- package/dist/pwa/worker/requests/strategies/strategies.js.map +1 -0
- package/dist/pwa/worker/worker.d.ts +23 -0
- package/dist/pwa/worker/worker.d.ts.map +1 -0
- package/dist/pwa/worker/worker.js +53 -0
- package/dist/pwa/worker/worker.js.map +1 -0
- package/dist/recipes/account-lost/account-lost.d.ts +24 -0
- package/dist/recipes/account-lost/account-lost.d.ts.map +1 -0
- package/dist/recipes/account-lost/account-lost.js +35 -0
- package/dist/recipes/account-lost/account-lost.js.map +1 -0
- package/dist/recipes/account-lost/index.d.ts +2 -0
- package/dist/recipes/account-lost/index.js +2 -0
- package/dist/recipes/account-switcher/account-switcher.d.ts +25 -0
- package/dist/recipes/account-switcher/account-switcher.d.ts.map +1 -0
- package/dist/recipes/account-switcher/account-switcher.js +124 -0
- package/dist/recipes/account-switcher/account-switcher.js.map +1 -0
- package/dist/recipes/account-switcher/index.d.ts +2 -0
- package/dist/recipes/account-switcher/index.js +2 -0
- package/dist/recipes/frame/app-shell.d.ts +37 -0
- package/dist/recipes/frame/app-shell.d.ts.map +1 -0
- package/dist/recipes/frame/app-shell.js +46 -0
- package/dist/recipes/frame/app-shell.js.map +1 -0
- package/dist/recipes/frame/frame/frame.d.ts +32 -0
- package/dist/recipes/frame/frame/frame.d.ts.map +1 -0
- package/dist/recipes/frame/frame/frame.js +135 -0
- package/dist/recipes/frame/frame/frame.js.map +1 -0
- package/dist/recipes/frame/frame/geometry.d.ts +22 -0
- package/dist/recipes/frame/frame/geometry.d.ts.map +1 -0
- package/dist/recipes/frame/frame/geometry.js +36 -0
- package/dist/recipes/frame/frame/geometry.js.map +1 -0
- package/dist/recipes/frame/frame/index.d.ts +2 -0
- package/dist/recipes/frame/frame/index.js +2 -0
- package/dist/recipes/frame/frame/motion.d.ts +20 -0
- package/dist/recipes/frame/frame/motion.d.ts.map +1 -0
- package/dist/recipes/frame/frame/motion.js +58 -0
- package/dist/recipes/frame/frame/motion.js.map +1 -0
- package/dist/recipes/frame/frame/state.d.ts +17 -0
- package/dist/recipes/frame/frame/state.d.ts.map +1 -0
- package/dist/recipes/frame/frame/state.js +27 -0
- package/dist/recipes/frame/frame/state.js.map +1 -0
- package/dist/recipes/frame/header.d.ts +18 -0
- package/dist/recipes/frame/header.d.ts.map +1 -0
- package/dist/recipes/frame/header.js +43 -0
- package/dist/recipes/frame/header.js.map +1 -0
- package/dist/recipes/frame/index.d.ts +4 -0
- package/dist/recipes/frame/index.js +4 -0
- package/dist/recipes/frame/sidebar/blocks.d.ts +31 -0
- package/dist/recipes/frame/sidebar/blocks.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/blocks.js +126 -0
- package/dist/recipes/frame/sidebar/blocks.js.map +1 -0
- package/dist/recipes/frame/sidebar/index.d.ts +4 -0
- package/dist/recipes/frame/sidebar/index.js +4 -0
- package/dist/recipes/frame/sidebar/nav.d.ts +22 -0
- package/dist/recipes/frame/sidebar/nav.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/nav.js +14 -0
- package/dist/recipes/frame/sidebar/nav.js.map +1 -0
- package/dist/recipes/frame/sidebar/resize-handle.d.ts +12 -0
- package/dist/recipes/frame/sidebar/resize-handle.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/resize-handle.js +90 -0
- package/dist/recipes/frame/sidebar/resize-handle.js.map +1 -0
- package/dist/recipes/frame/sidebar/sidebar.d.ts +24 -0
- package/dist/recipes/frame/sidebar/sidebar.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/sidebar.js +30 -0
- package/dist/recipes/frame/sidebar/sidebar.js.map +1 -0
- package/dist/recipes/frame/sidebar/width.d.ts +9 -0
- package/dist/recipes/frame/sidebar/width.d.ts.map +1 -0
- package/dist/recipes/frame/sidebar/width.js +22 -0
- package/dist/recipes/frame/sidebar/width.js.map +1 -0
- package/dist/recipes/gate-screens/gate-screens.d.ts +52 -0
- package/dist/recipes/gate-screens/gate-screens.d.ts.map +1 -0
- package/dist/recipes/gate-screens/gate-screens.js +192 -0
- package/dist/recipes/gate-screens/gate-screens.js.map +1 -0
- package/dist/recipes/gate-screens/index.d.ts +2 -0
- package/dist/recipes/gate-screens/index.js +2 -0
- package/dist/recipes/kabuki-devtools/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/index.js +2 -0
- package/dist/recipes/kabuki-devtools/ink/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/ink/index.js +2 -0
- package/dist/recipes/kabuki-devtools/ink/ink.d.ts +37 -0
- package/dist/recipes/kabuki-devtools/ink/ink.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/ink/ink.js +37 -0
- package/dist/recipes/kabuki-devtools/ink/ink.js.map +1 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.d.ts +40 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.js +279 -0
- package/dist/recipes/kabuki-devtools/kabuki-devtools.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.d.ts +13 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.js +223 -0
- package/dist/recipes/kabuki-devtools/map/beat/beat.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/beat/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/beat/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.d.ts +29 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.js +221 -0
- package/dist/recipes/kabuki-devtools/map/canvas/canvas.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/canvas/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/canvas/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/link/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/link/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/link/link.d.ts +22 -0
- package/dist/recipes/kabuki-devtools/map/link/link.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/link/link.js +72 -0
- package/dist/recipes/kabuki-devtools/map/link/link.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/map.d.ts +26 -0
- package/dist/recipes/kabuki-devtools/map/map.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/map.js +362 -0
- package/dist/recipes/kabuki-devtools/map/map.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/node/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/node/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/node/node.d.ts +25 -0
- package/dist/recipes/kabuki-devtools/map/node/node.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/node/node.js +251 -0
- package/dist/recipes/kabuki-devtools/map/node/node.js.map +1 -0
- package/dist/recipes/kabuki-devtools/map/popup/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/map/popup/index.js +2 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.d.ts +12 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.js +72 -0
- package/dist/recipes/kabuki-devtools/map/popup/popup.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/beats.d.ts +36 -0
- package/dist/recipes/kabuki-devtools/scene/beats.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/beats.js +46 -0
- package/dist/recipes/kabuki-devtools/scene/beats.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/index.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/index.js +3 -0
- package/dist/recipes/kabuki-devtools/scene/layout/index.d.ts +3 -0
- package/dist/recipes/kabuki-devtools/scene/layout/index.js +2 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.d.ts +6 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.js +8 -0
- package/dist/recipes/kabuki-devtools/scene/layout/layout.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.js +84 -0
- package/dist/recipes/kabuki-devtools/scene/layout/outline.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.d.ts +57 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.js +38 -0
- package/dist/recipes/kabuki-devtools/scene/layout/shapes.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.d.ts +5 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.js +146 -0
- package/dist/recipes/kabuki-devtools/scene/layout/tree.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.d.ts +67 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.js +39 -0
- package/dist/recipes/kabuki-devtools/scene/nodes.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/scene.d.ts +78 -0
- package/dist/recipes/kabuki-devtools/scene/scene.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/scene.js +128 -0
- package/dist/recipes/kabuki-devtools/scene/scene.js.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/tree.d.ts +20 -0
- package/dist/recipes/kabuki-devtools/scene/tree.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/scene/tree.js +85 -0
- package/dist/recipes/kabuki-devtools/scene/tree.js.map +1 -0
- package/dist/recipes/kabuki-devtools/sheet/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/sheet/index.js +2 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.d.ts +33 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.js +129 -0
- package/dist/recipes/kabuki-devtools/sheet/sheet.js.map +1 -0
- package/dist/recipes/kabuki-devtools/timeline/index.d.ts +2 -0
- package/dist/recipes/kabuki-devtools/timeline/index.js +2 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.d.ts +25 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.d.ts.map +1 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.js +122 -0
- package/dist/recipes/kabuki-devtools/timeline/timeline.js.map +1 -0
- package/dist/recipes/key-bindings/index.d.ts +2 -0
- package/dist/recipes/key-bindings/index.js +2 -0
- package/dist/recipes/key-bindings/key-bindings.d.ts +19 -0
- package/dist/recipes/key-bindings/key-bindings.d.ts.map +1 -0
- package/dist/recipes/key-bindings/key-bindings.js +61 -0
- package/dist/recipes/key-bindings/key-bindings.js.map +1 -0
- package/dist/recipes/local-sign-in/index.d.ts +2 -0
- package/dist/recipes/local-sign-in/index.js +2 -0
- package/dist/recipes/local-sign-in/local-sign-in.d.ts +18 -0
- package/dist/recipes/local-sign-in/local-sign-in.d.ts.map +1 -0
- package/dist/recipes/local-sign-in/local-sign-in.js +109 -0
- package/dist/recipes/local-sign-in/local-sign-in.js.map +1 -0
- package/dist/recipes/parts/email-privacy/email-privacy.d.ts +24 -0
- package/dist/recipes/parts/email-privacy/email-privacy.d.ts.map +1 -0
- package/dist/recipes/parts/email-privacy/email-privacy.js +35 -0
- package/dist/recipes/parts/email-privacy/email-privacy.js.map +1 -0
- package/dist/recipes/parts/email-privacy/index.d.ts +2 -0
- package/dist/recipes/parts/email-privacy/index.js +2 -0
- package/dist/recipes/swipe-row/index.d.ts +2 -0
- package/dist/recipes/swipe-row/index.js +2 -0
- package/dist/recipes/swipe-row/swipe-row.d.ts +16 -0
- package/dist/recipes/swipe-row/swipe-row.d.ts.map +1 -0
- package/dist/recipes/swipe-row/swipe-row.js +96 -0
- package/dist/recipes/swipe-row/swipe-row.js.map +1 -0
- package/dist/recipes/thumb-picker/choice.d.ts +18 -0
- package/dist/recipes/thumb-picker/choice.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/choice.js +0 -0
- package/dist/recipes/thumb-picker/index.d.ts +3 -0
- package/dist/recipes/thumb-picker/index.js +2 -0
- package/dist/recipes/thumb-picker/list.d.ts +18 -0
- package/dist/recipes/thumb-picker/list.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/list.js +48 -0
- package/dist/recipes/thumb-picker/list.js.map +1 -0
- package/dist/recipes/thumb-picker/lock.d.ts +18 -0
- package/dist/recipes/thumb-picker/lock.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/lock.js +71 -0
- package/dist/recipes/thumb-picker/lock.js.map +1 -0
- package/dist/recipes/thumb-picker/menu.d.ts +19 -0
- package/dist/recipes/thumb-picker/menu.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/menu.js +127 -0
- package/dist/recipes/thumb-picker/menu.js.map +1 -0
- package/dist/recipes/thumb-picker/thumb-picker.d.ts +31 -0
- package/dist/recipes/thumb-picker/thumb-picker.d.ts.map +1 -0
- package/dist/recipes/thumb-picker/thumb-picker.js +65 -0
- package/dist/recipes/thumb-picker/thumb-picker.js.map +1 -0
- package/dist/server/index.d.ts +7 -0
- package/dist/server/index.js +5 -0
- package/dist/server/live/index.d.ts +2 -0
- package/dist/server/live/index.js +2 -0
- package/dist/server/live/live.d.ts +56 -0
- package/dist/server/live/live.d.ts.map +1 -0
- package/dist/server/live/live.js +98 -0
- package/dist/server/live/live.js.map +1 -0
- package/dist/server/serve/index.d.ts +2 -0
- package/dist/server/serve/index.js +2 -0
- package/dist/server/serve/serve.d.ts +48 -0
- package/dist/server/serve/serve.d.ts.map +1 -0
- package/dist/server/serve/serve.js +47 -0
- package/dist/server/serve/serve.js.map +1 -0
- package/dist/server/stage/index.d.ts +2 -0
- package/dist/server/stage/index.js +2 -0
- package/dist/server/stage/stage.d.ts +14 -0
- package/dist/server/stage/stage.d.ts.map +1 -0
- package/dist/server/stage/stage.js +28 -0
- package/dist/server/stage/stage.js.map +1 -0
- package/dist/server/worker/index.d.ts +2 -0
- package/dist/server/worker/index.js +2 -0
- package/dist/server/worker/worker.d.ts +19 -0
- package/dist/server/worker/worker.d.ts.map +1 -0
- package/dist/server/worker/worker.js +18 -0
- package/dist/server/worker/worker.js.map +1 -0
- package/dist/theme/cookie.d.ts +6 -0
- package/dist/theme/cookie.d.ts.map +1 -0
- package/dist/theme/cookie.js +21 -0
- package/dist/theme/cookie.js.map +1 -0
- package/dist/theme/css/font-inter.css +2 -0
- package/dist/theme/css/global.css +62 -0
- package/dist/theme/css/shiki.css +71 -0
- package/dist/theme/css/sources.css +6 -0
- package/dist/theme/css/theme.css +170 -0
- package/dist/theme/css/typography.css +1 -0
- package/dist/theme/document.d.ts +6 -0
- package/dist/theme/document.d.ts.map +1 -0
- package/dist/theme/document.js +26 -0
- package/dist/theme/document.js.map +1 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.js +4 -0
- package/dist/theme/model.d.ts +9 -0
- package/dist/theme/model.d.ts.map +1 -0
- package/dist/theme/model.js +13 -0
- package/dist/theme/model.js.map +1 -0
- package/dist/theme/status-bar.d.ts +10 -0
- package/dist/theme/status-bar.d.ts.map +1 -0
- package/dist/theme/status-bar.js +19 -0
- package/dist/theme/status-bar.js.map +1 -0
- package/dist/theme/store.d.ts +6 -0
- package/dist/theme/store.d.ts.map +1 -0
- package/dist/theme/store.js +45 -0
- package/dist/theme/store.js.map +1 -0
- package/dist/theme/theme.d.ts +22 -0
- package/dist/theme/theme.d.ts.map +1 -0
- package/dist/theme/theme.js +37 -0
- package/dist/theme/theme.js.map +1 -0
- package/package.json +255 -3
- package/src/app/apis/apis.ts +109 -0
- package/src/app/apis/index.ts +13 -0
- package/src/app/app.tsx +232 -0
- package/src/app/assemble/assemble.tsx +339 -0
- package/src/app/assemble/index.ts +7 -0
- package/src/app/assemble/public.ts +98 -0
- package/src/app/gate/domain/check.ts +76 -0
- package/src/app/gate/domain/index.ts +3 -0
- package/src/app/gate/domain/machine.ts +439 -0
- package/src/app/gate/domain/services.ts +46 -0
- package/src/app/gate/domain/types.ts +36 -0
- package/src/app/gate/gate.ts +501 -0
- package/src/app/gate/index.ts +3 -0
- package/src/app/gate/memory.ts +56 -0
- package/src/app/gate/react.tsx +139 -0
- package/src/app/host/host.ts +166 -0
- package/src/app/host/index.ts +10 -0
- package/src/app/index.ts +10 -0
- package/src/app/session/define.ts +75 -0
- package/src/app/session/index.ts +17 -0
- package/src/app/session/keeper.ts +34 -0
- package/src/app/session/open.ts +207 -0
- package/src/app/session/react.tsx +38 -0
- package/src/app/session/status.ts +46 -0
- package/src/app/web-host.ts +104 -0
- package/src/client/index.ts +9 -0
- package/src/client/root/index.ts +7 -0
- package/src/client/root/root.tsx +149 -0
- package/src/client/server.ts +3 -0
- package/src/client/theme/index.ts +1 -0
- package/src/client/theme/tanstack-start.ts +5 -0
- package/src/components/hooks/use-element-width.ts +24 -0
- package/src/components/hooks/use-mobile.ts +21 -0
- package/src/components/hooks/use-scroll.ts +292 -0
- package/src/components/lib/lucide.ts +1 -0
- package/src/components/lib/motion.ts +1 -0
- package/src/components/lib/scrollStyles.ts +44 -0
- package/src/components/lib/shadow-dom.tsx +86 -0
- package/src/components/lib/utils.ts +6 -0
- package/src/components/ui/accordion.tsx +71 -0
- package/src/components/ui/alert-dialog.tsx +185 -0
- package/src/components/ui/alert.tsx +75 -0
- package/src/components/ui/aspect-ratio.tsx +22 -0
- package/src/components/ui/attachment.tsx +207 -0
- package/src/components/ui/avatar.tsx +106 -0
- package/src/components/ui/badge.tsx +51 -0
- package/src/components/ui/breadcrumb.tsx +124 -0
- package/src/components/ui/bubble.tsx +127 -0
- package/src/components/ui/button-group.tsx +87 -0
- package/src/components/ui/button.tsx +57 -0
- package/src/components/ui/calendar.tsx +221 -0
- package/src/components/ui/card.tsx +102 -0
- package/src/components/ui/carousel.tsx +240 -0
- package/src/components/ui/chart.tsx +370 -0
- package/src/components/ui/checkbox.tsx +28 -0
- package/src/components/ui/collapsible.tsx +19 -0
- package/src/components/ui/combobox.tsx +295 -0
- package/src/components/ui/command.tsx +196 -0
- package/src/components/ui/context-menu.tsx +270 -0
- package/src/components/ui/dialog.tsx +157 -0
- package/src/components/ui/direction.tsx +4 -0
- package/src/components/ui/drawer.tsx +224 -0
- package/src/components/ui/dropdown-menu.tsx +275 -0
- package/src/components/ui/empty.tsx +103 -0
- package/src/components/ui/field.tsx +236 -0
- package/src/components/ui/file-tree.tsx +619 -0
- package/src/components/ui/google-button.tsx +194 -0
- package/src/components/ui/hover-card.tsx +50 -0
- package/src/components/ui/input-group.tsx +158 -0
- package/src/components/ui/input-otp.tsx +84 -0
- package/src/components/ui/input.tsx +19 -0
- package/src/components/ui/item.tsx +201 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/label.tsx +19 -0
- package/src/components/ui/marker.tsx +70 -0
- package/src/components/ui/menubar.tsx +280 -0
- package/src/components/ui/message-scroller.tsx +129 -0
- package/src/components/ui/message.tsx +91 -0
- package/src/components/ui/native-select.tsx +60 -0
- package/src/components/ui/navigation-menu.tsx +167 -0
- package/src/components/ui/pagination.tsx +130 -0
- package/src/components/ui/popover.tsx +87 -0
- package/src/components/ui/progress.tsx +82 -0
- package/src/components/ui/questionnaire.tsx +324 -0
- package/src/components/ui/radio-group.tsx +35 -0
- package/src/components/ui/resizable.tsx +49 -0
- package/src/components/ui/scroll-area.tsx +60 -0
- package/src/components/ui/select.tsx +200 -0
- package/src/components/ui/separator.tsx +22 -0
- package/src/components/ui/sheet.tsx +133 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/slider.tsx +51 -0
- package/src/components/ui/sonner.tsx +43 -0
- package/src/components/ui/spinner.tsx +10 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +113 -0
- package/src/components/ui/tabs.tsx +81 -0
- package/src/components/ui/textarea.tsx +17 -0
- package/src/components/ui/toast.tsx +234 -0
- package/src/components/ui/toggle-group.tsx +87 -0
- package/src/components/ui/toggle.tsx +42 -0
- package/src/components/ui/tooltip.tsx +65 -0
- package/src/components/viewers/diff-viewer/align.ts +83 -0
- package/src/components/viewers/diff-viewer/collapse.ts +102 -0
- package/src/components/viewers/diff-viewer/diff-viewer.tsx +605 -0
- package/src/components/viewers/diff-viewer/index.ts +8 -0
- package/src/components/viewers/diff-viewer/render-model.ts +123 -0
- package/src/components/viewers/diff-viewer/sync-rows.ts +41 -0
- package/src/components/viewers/file-tree/expand.ts +58 -0
- package/src/components/viewers/file-tree/file-tree.tsx +199 -0
- package/src/components/viewers/file-tree/index.ts +2 -0
- package/src/components/viewers/git-changes/git-changes.tsx +287 -0
- package/src/components/viewers/git-changes/index.ts +11 -0
- package/src/components/viewers/json/index.ts +3 -0
- package/src/components/viewers/json/json-editor.tsx +94 -0
- package/src/components/viewers/json/json-tree.tsx +110 -0
- package/src/components/viewers/json/json-viewer.tsx +61 -0
- package/src/components/viewers/markdown-viewer/index.ts +1 -0
- package/src/components/viewers/markdown-viewer/markdown-viewer.tsx +83 -0
- package/src/components/viewers/source-explorer/index.ts +11 -0
- package/src/components/viewers/source-explorer/initial-selection.ts +21 -0
- package/src/components/viewers/source-explorer/snapshot-tree.ts +39 -0
- package/src/components/viewers/source-explorer/source-explorer.tsx +598 -0
- package/src/components/viewers/source-viewer/index.ts +7 -0
- package/src/components/viewers/source-viewer/source-viewer.tsx +437 -0
- package/src/cosmos.decorator.tsx +38 -0
- package/src/css.d.ts +1 -0
- package/src/define/index.ts +26 -0
- package/src/feedback/index.ts +1 -0
- package/src/feedback/sound.ts +167 -0
- package/src/form/components/submit-button.tsx +52 -0
- package/src/form/context.ts +8 -0
- package/src/form/create-form-hook.ts +50 -0
- package/src/form/fields/date-picker-field.tsx +125 -0
- package/src/form/fields/select-field.tsx +110 -0
- package/src/form/fields/switch-field.tsx +72 -0
- package/src/form/fields/text-field.tsx +82 -0
- package/src/form/fields/textarea-field.tsx +82 -0
- package/src/form/index.ts +56 -0
- package/src/form/types.ts +76 -0
- package/src/input/device/device.ts +83 -0
- package/src/input/device/index.ts +1 -0
- package/src/input/gesture/index.ts +26 -0
- package/src/input/gesture/patterns/index.ts +3 -0
- package/src/input/gesture/patterns/pull-to-refresh/index.ts +6 -0
- package/src/input/gesture/patterns/pull-to-refresh/use-pull-to-refresh.ts +101 -0
- package/src/input/gesture/patterns/sidebar/index.ts +2 -0
- package/src/input/gesture/patterns/sidebar/use-sidebar.ts +201 -0
- package/src/input/gesture/recognizers/index.ts +12 -0
- package/src/input/gesture/recognizers/swipe/index.ts +12 -0
- package/src/input/gesture/recognizers/swipe/use-swipe.ts +224 -0
- package/src/input/gesture/zones/index.ts +11 -0
- package/src/input/gesture/zones/touch-input/index.ts +10 -0
- package/src/input/gesture/zones/touch-input/native-scroll.ts +74 -0
- package/src/input/gesture/zones/touch-input/touch-input.ts +322 -0
- package/src/input/gesture/zones/zone/index.ts +11 -0
- package/src/input/gesture/zones/zone/motion-pointers.ts +74 -0
- package/src/input/gesture/zones/zone/zone.tsx +291 -0
- package/src/input/index.ts +4 -0
- package/src/pwa/browser/dom-events.ts +17 -0
- package/src/pwa/browser/subscription-ref.ts +29 -0
- package/src/pwa/client/client.ts +43 -0
- package/src/pwa/client/commands/commands.ts +28 -0
- package/src/pwa/client/commands/index.ts +1 -0
- package/src/pwa/client/index.ts +1 -0
- package/src/pwa/client/registration.ts +63 -0
- package/src/pwa/client/runtime-cache.ts +24 -0
- package/src/pwa/client/status/index.ts +1 -0
- package/src/pwa/client/status/status.ts +155 -0
- package/src/pwa/extras/display-mode/display-mode.ts +64 -0
- package/src/pwa/extras/display-mode/index.ts +6 -0
- package/src/pwa/extras/index.ts +15 -0
- package/src/pwa/extras/install/index.ts +4 -0
- package/src/pwa/extras/install/install-content.tsx +45 -0
- package/src/pwa/extras/install/install-dismissal.ts +20 -0
- package/src/pwa/extras/install/install-prompt.tsx +93 -0
- package/src/pwa/extras/install/install.ts +134 -0
- package/src/pwa/extras/install/ios.ts +13 -0
- package/src/pwa/extras/install/media-query.ts +18 -0
- package/src/pwa/extras/lazy-service/index.ts +1 -0
- package/src/pwa/extras/lazy-service/lazy-service.ts +38 -0
- package/src/pwa/extras/online/index.ts +2 -0
- package/src/pwa/extras/online/offline-indicator.tsx +26 -0
- package/src/pwa/extras/online/online.ts +35 -0
- package/src/pwa/extras/storage/index.ts +1 -0
- package/src/pwa/extras/storage/storage.ts +101 -0
- package/src/pwa/index.ts +5 -0
- package/src/pwa/react/head.ts +69 -0
- package/src/pwa/react/index.ts +3 -0
- package/src/pwa/react/react.tsx +98 -0
- package/src/pwa/react/update-prompt.tsx +26 -0
- package/src/pwa/react/update-toast.ts +57 -0
- package/src/pwa/root/index.ts +1 -0
- package/src/pwa/root/root.tsx +39 -0
- package/src/pwa/rpc/client/client.ts +105 -0
- package/src/pwa/rpc/client/index.ts +1 -0
- package/src/pwa/rpc/client/page-environment.ts +88 -0
- package/src/pwa/rpc/client/platform.ts +213 -0
- package/src/pwa/rpc/client/version-skew.ts +71 -0
- package/src/pwa/rpc/handshake/handshake.ts +125 -0
- package/src/pwa/rpc/handshake/index.ts +11 -0
- package/src/pwa/rpc/worker/connections.ts +62 -0
- package/src/pwa/rpc/worker/index.ts +1 -0
- package/src/pwa/rpc/worker/keep-alive.ts +26 -0
- package/src/pwa/rpc/worker/runner-platform.ts +200 -0
- package/src/pwa/rpc/worker/worker.ts +44 -0
- package/src/pwa/shared/build/build.ts +78 -0
- package/src/pwa/shared/build/canonical-json.ts +11 -0
- package/src/pwa/shared/build/fnv1a.ts +13 -0
- package/src/pwa/shared/build/index.ts +19 -0
- package/src/pwa/shared/commands/commands.ts +60 -0
- package/src/pwa/shared/commands/index.ts +11 -0
- package/src/pwa/shared/config/config.ts +185 -0
- package/src/pwa/shared/config/index.ts +11 -0
- package/src/pwa/shared/config/presets.ts +45 -0
- package/src/pwa/shared/manifest/index.ts +5 -0
- package/src/pwa/shared/manifest/manifest.ts +102 -0
- package/src/pwa/shared/strategy/index.ts +8 -0
- package/src/pwa/shared/strategy/pattern.ts +20 -0
- package/src/pwa/shared/strategy/strategy.ts +107 -0
- package/src/pwa/shared/worker-host/index.ts +1 -0
- package/src/pwa/shared/worker-host/worker-host.ts +22 -0
- package/src/pwa/splash/devices.ts +28 -0
- package/src/pwa/splash/index.ts +1 -0
- package/src/pwa/splash/splash.ts +44 -0
- package/src/pwa/virtual.d.ts +13 -0
- package/src/pwa/vite/build/build-plugin.ts +153 -0
- package/src/pwa/vite/build/build-state.ts +17 -0
- package/src/pwa/vite/build/headers.ts +34 -0
- package/src/pwa/vite/build/index.ts +2 -0
- package/src/pwa/vite/build/output-files.ts +49 -0
- package/src/pwa/vite/build/start-setup.ts +50 -0
- package/src/pwa/vite/client-module/build-version.ts +43 -0
- package/src/pwa/vite/client-module/client-info.ts +58 -0
- package/src/pwa/vite/client-module/client-module.ts +67 -0
- package/src/pwa/vite/client-module/index.ts +1 -0
- package/src/pwa/vite/dev/dev-plugin.ts +72 -0
- package/src/pwa/vite/dev/index.ts +1 -0
- package/src/pwa/vite/index.ts +1 -0
- package/src/pwa/vite/precache/asset-kind.ts +25 -0
- package/src/pwa/vite/precache/index.ts +6 -0
- package/src/pwa/vite/precache/precache.ts +97 -0
- package/src/pwa/vite/precache/revision.ts +5 -0
- package/src/pwa/vite/precache/url-path.ts +21 -0
- package/src/pwa/vite/vite.ts +25 -0
- package/src/pwa/vite/worker-bundle/build-module.ts +28 -0
- package/src/pwa/vite/worker-bundle/entry.ts +29 -0
- package/src/pwa/vite/worker-bundle/index.ts +1 -0
- package/src/pwa/vite/worker-bundle/kill-switch.ts +23 -0
- package/src/pwa/vite/worker-bundle/worker-bundle.ts +71 -0
- package/src/pwa/worker/commands/commands.ts +31 -0
- package/src/pwa/worker/commands/index.ts +1 -0
- package/src/pwa/worker/global-scope/global-scope.ts +99 -0
- package/src/pwa/worker/global-scope/index.ts +9 -0
- package/src/pwa/worker/index.ts +1 -0
- package/src/pwa/worker/lifecycle/index.ts +1 -0
- package/src/pwa/worker/lifecycle/lifecycle.ts +52 -0
- package/src/pwa/worker/messages/index.ts +1 -0
- package/src/pwa/worker/messages/messages.ts +67 -0
- package/src/pwa/worker/precache/download.ts +38 -0
- package/src/pwa/worker/precache/index.ts +7 -0
- package/src/pwa/worker/precache/precache.ts +72 -0
- package/src/pwa/worker/requests/index.ts +1 -0
- package/src/pwa/worker/requests/pages/index.ts +1 -0
- package/src/pwa/worker/requests/pages/pages.ts +116 -0
- package/src/pwa/worker/requests/requests.ts +39 -0
- package/src/pwa/worker/requests/strategies/cache-store.ts +82 -0
- package/src/pwa/worker/requests/strategies/index.ts +2 -0
- package/src/pwa/worker/requests/strategies/kinds.ts +63 -0
- package/src/pwa/worker/requests/strategies/network-first.ts +40 -0
- package/src/pwa/worker/requests/strategies/strategies.ts +40 -0
- package/src/pwa/worker/worker.ts +99 -0
- package/src/recipes/account-lost/account-lost.tsx +66 -0
- package/src/recipes/account-lost/index.ts +5 -0
- package/src/recipes/account-switcher/account-switcher.tsx +199 -0
- package/src/recipes/account-switcher/index.ts +5 -0
- package/src/recipes/frame/app-shell.tsx +74 -0
- package/src/recipes/frame/frame/frame.tsx +204 -0
- package/src/recipes/frame/frame/geometry.ts +60 -0
- package/src/recipes/frame/frame/index.ts +1 -0
- package/src/recipes/frame/frame/motion.ts +85 -0
- package/src/recipes/frame/frame/state.ts +29 -0
- package/src/recipes/frame/header.tsx +54 -0
- package/src/recipes/frame/index.ts +16 -0
- package/src/recipes/frame/sidebar/blocks.tsx +214 -0
- package/src/recipes/frame/sidebar/index.ts +15 -0
- package/src/recipes/frame/sidebar/nav.tsx +46 -0
- package/src/recipes/frame/sidebar/resize-handle.tsx +94 -0
- package/src/recipes/frame/sidebar/sidebar.tsx +44 -0
- package/src/recipes/frame/sidebar/width.ts +23 -0
- package/src/recipes/gate-screens/gate-screens.tsx +213 -0
- package/src/recipes/gate-screens/index.ts +5 -0
- package/src/recipes/kabuki-devtools/index.ts +1 -0
- package/src/recipes/kabuki-devtools/ink/index.ts +2 -0
- package/src/recipes/kabuki-devtools/ink/ink.ts +53 -0
- package/src/recipes/kabuki-devtools/kabuki-devtools.tsx +419 -0
- package/src/recipes/kabuki-devtools/map/beat/beat.tsx +243 -0
- package/src/recipes/kabuki-devtools/map/beat/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/canvas/canvas.tsx +320 -0
- package/src/recipes/kabuki-devtools/map/canvas/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/link/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/link/link.tsx +107 -0
- package/src/recipes/kabuki-devtools/map/map.tsx +474 -0
- package/src/recipes/kabuki-devtools/map/node/index.ts +2 -0
- package/src/recipes/kabuki-devtools/map/node/node.tsx +437 -0
- package/src/recipes/kabuki-devtools/map/popup/index.ts +1 -0
- package/src/recipes/kabuki-devtools/map/popup/popup.tsx +73 -0
- package/src/recipes/kabuki-devtools/scene/beats.ts +110 -0
- package/src/recipes/kabuki-devtools/scene/index.ts +11 -0
- package/src/recipes/kabuki-devtools/scene/layout/index.ts +3 -0
- package/src/recipes/kabuki-devtools/scene/layout/layout.ts +14 -0
- package/src/recipes/kabuki-devtools/scene/layout/outline.ts +80 -0
- package/src/recipes/kabuki-devtools/scene/layout/shapes.ts +93 -0
- package/src/recipes/kabuki-devtools/scene/layout/tree.ts +181 -0
- package/src/recipes/kabuki-devtools/scene/nodes.ts +116 -0
- package/src/recipes/kabuki-devtools/scene/scene.ts +268 -0
- package/src/recipes/kabuki-devtools/scene/tree.ts +191 -0
- package/src/recipes/kabuki-devtools/sheet/index.ts +1 -0
- package/src/recipes/kabuki-devtools/sheet/sheet.tsx +193 -0
- package/src/recipes/kabuki-devtools/timeline/index.ts +2 -0
- package/src/recipes/kabuki-devtools/timeline/timeline.tsx +206 -0
- package/src/recipes/key-bindings/index.ts +1 -0
- package/src/recipes/key-bindings/key-bindings.tsx +80 -0
- package/src/recipes/local-sign-in/index.ts +5 -0
- package/src/recipes/local-sign-in/local-sign-in.tsx +148 -0
- package/src/recipes/parts/email-privacy/email-privacy.tsx +52 -0
- package/src/recipes/parts/email-privacy/index.ts +1 -0
- package/src/recipes/swipe-row/index.ts +1 -0
- package/src/recipes/swipe-row/swipe-row.tsx +97 -0
- package/src/recipes/thumb-picker/choice.ts +14 -0
- package/src/recipes/thumb-picker/index.ts +1 -0
- package/src/recipes/thumb-picker/list.tsx +73 -0
- package/src/recipes/thumb-picker/lock.ts +86 -0
- package/src/recipes/thumb-picker/menu.tsx +105 -0
- package/src/recipes/thumb-picker/thumb-picker.tsx +84 -0
- package/src/server/index.ts +21 -0
- package/src/server/live/index.ts +9 -0
- package/src/server/live/live.ts +219 -0
- package/src/server/serve/index.ts +6 -0
- package/src/server/serve/serve.ts +115 -0
- package/src/server/stage/index.ts +6 -0
- package/src/server/stage/stage.ts +43 -0
- package/src/server/worker/index.ts +1 -0
- package/src/server/worker/worker.ts +26 -0
- package/src/theme/cookie.ts +22 -0
- package/src/theme/css/font-inter.css +2 -0
- package/src/theme/css/global.css +62 -0
- package/src/theme/css/shiki.css +71 -0
- package/src/theme/css/sources.css +6 -0
- package/src/theme/css/theme.css +170 -0
- package/src/theme/css/typography.css +1 -0
- package/src/theme/document.ts +37 -0
- package/src/theme/index.ts +3 -0
- package/src/theme/model.ts +12 -0
- package/src/theme/status-bar.ts +28 -0
- package/src/theme/store.ts +66 -0
- package/src/theme/theme.ts +45 -0
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import { backendNamed } from "../host/host.js";
|
|
2
|
+
import { makeStatus } from "../session/status.js";
|
|
3
|
+
import { Device, Sessions, Switching } from "./domain/services.js";
|
|
4
|
+
import { gateMachine } from "./domain/machine.js";
|
|
5
|
+
import { gateMemory, gateTable } from "./memory.js";
|
|
6
|
+
import { Context, Effect, Exit, Layer, ManagedRuntime, Scope } from "effect";
|
|
7
|
+
import { SignIn, namedChooser } from "@kestack/auth-toolkit/client";
|
|
8
|
+
import { createEffectActor } from "@xstate/effect";
|
|
9
|
+
//#region src/app/gate/gate.ts
|
|
10
|
+
const CHECKING = { kind: "checking" };
|
|
11
|
+
const userOf = ({ id, name, email, image }) => ({
|
|
12
|
+
id,
|
|
13
|
+
name,
|
|
14
|
+
email,
|
|
15
|
+
image
|
|
16
|
+
});
|
|
17
|
+
const accountOf = ({ user, token }) => ({
|
|
18
|
+
user,
|
|
19
|
+
token
|
|
20
|
+
});
|
|
21
|
+
const viewOf = (snapshot) => {
|
|
22
|
+
const { context } = snapshot;
|
|
23
|
+
if (snapshot.matches("signingOut")) return { kind: "signingOut" };
|
|
24
|
+
if (snapshot.matches("signedOut")) return {
|
|
25
|
+
kind: "signedOut",
|
|
26
|
+
unreachable: context.unreachable
|
|
27
|
+
};
|
|
28
|
+
if (snapshot.matches("unopenable") && context.account !== null) return {
|
|
29
|
+
kind: "unopenable",
|
|
30
|
+
account: accountOf(context.account)
|
|
31
|
+
};
|
|
32
|
+
if (snapshot.matches("accountLost") && context.lost !== null) return {
|
|
33
|
+
kind: "accountLost",
|
|
34
|
+
account: {
|
|
35
|
+
user: context.lost,
|
|
36
|
+
token: null
|
|
37
|
+
},
|
|
38
|
+
accounts: context.accounts.map(accountOf)
|
|
39
|
+
};
|
|
40
|
+
if (!snapshot.matches("open") || context.account === null) return CHECKING;
|
|
41
|
+
if (context.session === null) return {
|
|
42
|
+
kind: "opening",
|
|
43
|
+
account: accountOf(context.account)
|
|
44
|
+
};
|
|
45
|
+
return {
|
|
46
|
+
kind: "open",
|
|
47
|
+
session: context.session,
|
|
48
|
+
account: accountOf(context.account),
|
|
49
|
+
accounts: context.accounts.map(accountOf)
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
const stop = async (current) => {
|
|
53
|
+
await current.runtime.runPromise(Scope.close(current.scope, Exit.void));
|
|
54
|
+
await current.runtime.dispose();
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The Gate: runs sign-in on one device for one app. It keeps the app on the
|
|
58
|
+
* Backend chosen, and the active Account's Session open while that Account
|
|
59
|
+
* stays active. Nothing runs until something first asks. Make one per app.
|
|
60
|
+
*/
|
|
61
|
+
const createGate = (config) => {
|
|
62
|
+
let made;
|
|
63
|
+
const host = () => made ??= config.host();
|
|
64
|
+
let remembering;
|
|
65
|
+
const memory = () => remembering ??= gateMemory(host().storage.table(gateTable, "gate"));
|
|
66
|
+
const remember = (change) => Effect.runPromise(memory().update(change));
|
|
67
|
+
const quiet = /* @__PURE__ */ new Set();
|
|
68
|
+
const chooser = namedChooser();
|
|
69
|
+
const loadDevice = config.device;
|
|
70
|
+
const offered = (backend) => backend === "device" && loadDevice === void 0 ? "cloud" : backend;
|
|
71
|
+
const tokens = /* @__PURE__ */ new Map();
|
|
72
|
+
const waiting = /* @__PURE__ */ new Map();
|
|
73
|
+
const setToken = (id, token) => {
|
|
74
|
+
tokens.set(id, token);
|
|
75
|
+
if (token === null) return;
|
|
76
|
+
const waiters = waiting.get(id);
|
|
77
|
+
waiting.delete(id);
|
|
78
|
+
waiters?.forEach((resume) => resume(token));
|
|
79
|
+
};
|
|
80
|
+
let verifiedAt = null;
|
|
81
|
+
const statuses = /* @__PURE__ */ new Map();
|
|
82
|
+
const statusOf = (id) => (tokens.get(id) ?? null) === null ? {
|
|
83
|
+
state: "verifying",
|
|
84
|
+
lastVerifiedAt: null
|
|
85
|
+
} : {
|
|
86
|
+
state: "verified",
|
|
87
|
+
lastVerifiedAt: verifiedAt
|
|
88
|
+
};
|
|
89
|
+
const publishStatuses = () => {
|
|
90
|
+
for (const [id, cell] of statuses) cell.set(statusOf(id));
|
|
91
|
+
};
|
|
92
|
+
const waitForToken = (id) => Effect.callback((resume) => {
|
|
93
|
+
const now = tokens.get(id) ?? null;
|
|
94
|
+
if (now !== null) return resume(Effect.succeed(now));
|
|
95
|
+
const waiter = (token) => resume(Effect.succeed(token));
|
|
96
|
+
const waiters = waiting.get(id) ?? /* @__PURE__ */ new Set();
|
|
97
|
+
waiters.add(waiter);
|
|
98
|
+
waiting.set(id, waiters);
|
|
99
|
+
return Effect.sync(() => void waiting.get(id)?.delete(waiter));
|
|
100
|
+
});
|
|
101
|
+
const layerOf = async (backend) => {
|
|
102
|
+
const lifetime = backend === "device" && loadDevice !== void 0 ? await loadDevice(chooser.choose) : config.cloud();
|
|
103
|
+
const device = Layer.effect(Device, Effect.gen(function* () {
|
|
104
|
+
const services = yield* Effect.context();
|
|
105
|
+
return Device.of({
|
|
106
|
+
remembered: memory().read.pipe(Effect.map((all) => ({
|
|
107
|
+
accounts: all[backend].accounts.map(({ user, active }) => ({
|
|
108
|
+
user,
|
|
109
|
+
token: null,
|
|
110
|
+
active
|
|
111
|
+
})),
|
|
112
|
+
lost: all[backend].lost
|
|
113
|
+
}))),
|
|
114
|
+
remember: ({ accounts, lost }) => Effect.andThen(Effect.sync(() => {
|
|
115
|
+
verifiedAt = /* @__PURE__ */ new Date();
|
|
116
|
+
}), memory().update((all) => ({
|
|
117
|
+
...all,
|
|
118
|
+
[backend]: {
|
|
119
|
+
accounts: accounts.map(({ user, active }) => ({
|
|
120
|
+
user: userOf(user),
|
|
121
|
+
active
|
|
122
|
+
})),
|
|
123
|
+
lost: lost === null ? null : userOf(lost)
|
|
124
|
+
}
|
|
125
|
+
}))),
|
|
126
|
+
signedOutHere: (userId) => Effect.sync(() => quiet.delete(userId)),
|
|
127
|
+
keep: (userIds) => config.keep === void 0 ? Effect.void : config.keep(userIds).pipe(Effect.provideContext(services))
|
|
128
|
+
});
|
|
129
|
+
}));
|
|
130
|
+
const sessions = Layer.effect(Sessions, Effect.gen(function* () {
|
|
131
|
+
const services = yield* Effect.context();
|
|
132
|
+
return Sessions.of({ open: (account) => Effect.gen(function* () {
|
|
133
|
+
const id = account.user.id;
|
|
134
|
+
setToken(id, account.token);
|
|
135
|
+
const status = yield* makeStatus(statusOf(id));
|
|
136
|
+
statuses.set(id, status);
|
|
137
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
138
|
+
if (statuses.get(id) === status) statuses.delete(id);
|
|
139
|
+
}));
|
|
140
|
+
const scope = yield* Effect.context();
|
|
141
|
+
return yield* config.session(accountOf(account), waitForToken(id), status).pipe(Effect.provideContext(Context.merge(services, scope)));
|
|
142
|
+
}) });
|
|
143
|
+
}));
|
|
144
|
+
const switching = Layer.effect(Switching, Effect.gen(function* () {
|
|
145
|
+
const signIn = yield* SignIn;
|
|
146
|
+
let chain = Promise.resolve();
|
|
147
|
+
let latest = null;
|
|
148
|
+
return Switching.of({
|
|
149
|
+
switchTo: (token) => Effect.tryPromise({
|
|
150
|
+
try: () => {
|
|
151
|
+
latest = token;
|
|
152
|
+
const run = chain.then(() => latest === token ? Effect.runPromise(signIn.switchTo(token)) : void 0);
|
|
153
|
+
chain = run.catch(() => {});
|
|
154
|
+
return run;
|
|
155
|
+
},
|
|
156
|
+
catch: (error) => error
|
|
157
|
+
}),
|
|
158
|
+
announce: (quiet = []) => Effect.sync(() => host().tabs?.announce({ quiet }))
|
|
159
|
+
});
|
|
160
|
+
}));
|
|
161
|
+
return Layer.mergeAll(device, sessions, switching).pipe(Layer.provideMerge(lifetime));
|
|
162
|
+
};
|
|
163
|
+
let running = null;
|
|
164
|
+
let view = CHECKING;
|
|
165
|
+
let queue = Promise.resolve();
|
|
166
|
+
let booted = false;
|
|
167
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
168
|
+
const notify = () => listeners.forEach((listener) => listener());
|
|
169
|
+
const notices = [];
|
|
170
|
+
const push = (notice) => {
|
|
171
|
+
notices.push(notice);
|
|
172
|
+
notify();
|
|
173
|
+
};
|
|
174
|
+
const observe = (snapshot) => {
|
|
175
|
+
const { context } = snapshot;
|
|
176
|
+
for (const account of context.accounts) if (account.token !== null) setToken(account.user.id, account.token);
|
|
177
|
+
publishStatuses();
|
|
178
|
+
view = viewOf(snapshot);
|
|
179
|
+
};
|
|
180
|
+
const start = async (backend) => {
|
|
181
|
+
const runtime = ManagedRuntime.make(await layerOf(backend));
|
|
182
|
+
const scope = runtime.runSync(Scope.make());
|
|
183
|
+
const actor = runtime.runSync(createEffectActor(gateMachine).pipe(Scope.provide(scope)));
|
|
184
|
+
const next = {
|
|
185
|
+
backend,
|
|
186
|
+
runtime,
|
|
187
|
+
scope,
|
|
188
|
+
actor
|
|
189
|
+
};
|
|
190
|
+
actor.subscribe((snapshot) => {
|
|
191
|
+
if (running !== next) return;
|
|
192
|
+
observe(snapshot);
|
|
193
|
+
notify();
|
|
194
|
+
});
|
|
195
|
+
runtime.runPromise(Effect.gen(function* () {
|
|
196
|
+
return yield* (yield* SignIn).takeLoginError;
|
|
197
|
+
})).then((error) => {
|
|
198
|
+
if (error !== null) push({
|
|
199
|
+
kind: "loginError",
|
|
200
|
+
error
|
|
201
|
+
});
|
|
202
|
+
}, report);
|
|
203
|
+
return next;
|
|
204
|
+
};
|
|
205
|
+
/** Runs on `backend`, ending whatever ran before. */
|
|
206
|
+
const runOn = (backend) => {
|
|
207
|
+
const change = queue.then(async () => {
|
|
208
|
+
if (running?.backend === backend) return;
|
|
209
|
+
const previous = running;
|
|
210
|
+
running = null;
|
|
211
|
+
view = CHECKING;
|
|
212
|
+
notify();
|
|
213
|
+
if (previous !== null) await stop(previous);
|
|
214
|
+
const next = await start(backend);
|
|
215
|
+
running = next;
|
|
216
|
+
observe(next.actor.getSnapshot());
|
|
217
|
+
notify();
|
|
218
|
+
});
|
|
219
|
+
queue = change.catch(() => {});
|
|
220
|
+
return change;
|
|
221
|
+
};
|
|
222
|
+
const report = (failed) => Effect.runFork(Effect.logError("The Gate could not go on", failed));
|
|
223
|
+
const chosenBackend = async () => offered(backendNamed((await Effect.runPromise(memory().read)).backend)) ?? "cloud";
|
|
224
|
+
const settledBackend = async () => {
|
|
225
|
+
const asked = offered(host().lifecycle.launchBackend());
|
|
226
|
+
if (asked === null) return chosenBackend();
|
|
227
|
+
await remember((all) => ({
|
|
228
|
+
...all,
|
|
229
|
+
backend: asked
|
|
230
|
+
}));
|
|
231
|
+
return asked;
|
|
232
|
+
};
|
|
233
|
+
const send = (event) => running?.actor.send(event);
|
|
234
|
+
const checkAgain = () => send({ type: "CHECK" });
|
|
235
|
+
const follow = () => chosenBackend().then((backend) => running === null || running.backend === backend ? checkAgain() : runOn(backend)).catch(report);
|
|
236
|
+
/** Starts on the Backend chosen, once, and looks again whenever the app
|
|
237
|
+
* comes back into view, the network comes back, or another tab changes
|
|
238
|
+
* something. */
|
|
239
|
+
const boot = () => {
|
|
240
|
+
if (booted) return;
|
|
241
|
+
booted = true;
|
|
242
|
+
const { lifecycle, tabs } = host();
|
|
243
|
+
settledBackend().then(runOn).catch(report);
|
|
244
|
+
lifecycle.onOnlineChange(() => {
|
|
245
|
+
if (lifecycle.online()) checkAgain();
|
|
246
|
+
});
|
|
247
|
+
lifecycle.onForeground(follow);
|
|
248
|
+
tabs?.listen((message) => {
|
|
249
|
+
for (const id of message.quiet) quiet.add(id);
|
|
250
|
+
follow();
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
const subscribe = (changed) => {
|
|
254
|
+
boot();
|
|
255
|
+
listeners.add(changed);
|
|
256
|
+
return () => void listeners.delete(changed);
|
|
257
|
+
};
|
|
258
|
+
const online = () => host().lifecycle.online();
|
|
259
|
+
/** Whether a sign-out can happen now: only the Backend can end a sign-in,
|
|
260
|
+
* so the cloud Backend has to be reachable. */
|
|
261
|
+
const canSignOut = () => running?.backend === "device" || online();
|
|
262
|
+
return {
|
|
263
|
+
subscribe,
|
|
264
|
+
/** What every screen shows: checking until the Gate runs, and while the
|
|
265
|
+
* Backend changes. */
|
|
266
|
+
view: () => view,
|
|
267
|
+
/** The Backend running; null until it has started. */
|
|
268
|
+
backend: () => running?.backend ?? null,
|
|
269
|
+
/** Whether the device is online. */
|
|
270
|
+
online,
|
|
271
|
+
onOnlineChange: (changed) => host().lifecycle.onOnlineChange(changed),
|
|
272
|
+
canSignOut,
|
|
273
|
+
/** Chooses `backend` and runs on it at once. Each Backend keeps its own
|
|
274
|
+
* Signed-in Accounts. */
|
|
275
|
+
setBackend: async (asked) => {
|
|
276
|
+
const backend = offered(asked) ?? "cloud";
|
|
277
|
+
await remember((all) => ({
|
|
278
|
+
...all,
|
|
279
|
+
backend
|
|
280
|
+
}));
|
|
281
|
+
await runOn(backend);
|
|
282
|
+
host().tabs?.announce({ quiet: [] });
|
|
283
|
+
},
|
|
284
|
+
/** An Account Switch: the account opens at once from what the device
|
|
285
|
+
* keeps; the Backend hears of it behind. From an Account Lost, the lost
|
|
286
|
+
* account's Copy is deleted. */
|
|
287
|
+
switchTo: (userId) => send({
|
|
288
|
+
type: "SWITCH",
|
|
289
|
+
userId
|
|
290
|
+
}),
|
|
291
|
+
/** Signs one more account in, who becomes the Active Account. On the
|
|
292
|
+
* cloud Backend the page leaves for the sign-in service; on the device
|
|
293
|
+
* Backend the Named Sign-In asks who. */
|
|
294
|
+
addAccount: async () => {
|
|
295
|
+
const current = running;
|
|
296
|
+
if (current === null) return;
|
|
297
|
+
const error = await current.runtime.runPromise(Effect.gen(function* () {
|
|
298
|
+
const signIn = yield* SignIn;
|
|
299
|
+
yield* signIn.signIn();
|
|
300
|
+
return yield* signIn.takeLoginError;
|
|
301
|
+
}));
|
|
302
|
+
if (error !== null) push({
|
|
303
|
+
kind: "loginError",
|
|
304
|
+
error
|
|
305
|
+
});
|
|
306
|
+
checkAgain();
|
|
307
|
+
},
|
|
308
|
+
/** Signs the Active Account out of this device; whoever is left opens.
|
|
309
|
+
* From an Account Lost, forgets the lost account and deletes its Copy.
|
|
310
|
+
* False, and nothing happens, when the Backend can't be reached. */
|
|
311
|
+
signOut: () => {
|
|
312
|
+
if (view.kind === "accountLost") {
|
|
313
|
+
send({ type: "SIGN_OUT" });
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
if (!canSignOut()) return false;
|
|
317
|
+
send({ type: "SIGN_OUT" });
|
|
318
|
+
return true;
|
|
319
|
+
},
|
|
320
|
+
/** Signs every account out of this device. False, and nothing happens,
|
|
321
|
+
* when the Backend can't be reached. */
|
|
322
|
+
signOutEveryone: () => {
|
|
323
|
+
if (!canSignOut()) return false;
|
|
324
|
+
send({ type: "SIGN_OUT_EVERYONE" });
|
|
325
|
+
return true;
|
|
326
|
+
},
|
|
327
|
+
/** Asks the Backend again who is signed in. */
|
|
328
|
+
checkAgain,
|
|
329
|
+
/** Tries again to open an account that would not open. */
|
|
330
|
+
retry: () => send({ type: "RETRY" }),
|
|
331
|
+
/** The oldest Gate Notice not yet taken, once; null when none. */
|
|
332
|
+
takeNotice: () => {
|
|
333
|
+
const notice = notices.shift() ?? null;
|
|
334
|
+
if (notice !== null) notify();
|
|
335
|
+
return notice;
|
|
336
|
+
},
|
|
337
|
+
/** The oldest Gate Notice not yet taken, without taking it. */
|
|
338
|
+
notice: () => notices[0] ?? null,
|
|
339
|
+
/** Whether the device Backend is asking who signs in, and how to answer:
|
|
340
|
+
* a choice, or null to sign nobody in. */
|
|
341
|
+
namedSignIn: {
|
|
342
|
+
subscribe: chooser.subscribe,
|
|
343
|
+
isAsking: chooser.isAsking,
|
|
344
|
+
answer: (choice) => chooser.answer(choice)
|
|
345
|
+
}
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
//#endregion
|
|
349
|
+
export { createGate };
|
|
350
|
+
|
|
351
|
+
//# sourceMappingURL=gate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gate.js","names":[],"sources":["../../../src/app/gate/gate.ts"],"sourcesContent":["import { Context, Effect, Exit, Layer, ManagedRuntime, Scope } from 'effect';\nimport { createEffectActor, type EffectActor } from '@xstate/effect';\nimport type { SnapshotFrom } from 'xstate';\nimport {\n type Account,\n type NamedChoice,\n namedChooser,\n SignIn,\n} from '@kestack/auth-toolkit/client';\nimport { type Backend, backendNamed, type Host } from '../host/index.ts';\nimport { makeStatus, type StatusCell } from '../session/index.ts';\nimport {\n Device,\n gateMachine,\n type GateNotice,\n type GateView,\n type Held,\n Sessions,\n Switching,\n type User,\n} from './domain/index.ts';\nimport { gateMemory, gateTable } from './memory.ts';\n\n/** What an app gives the Gate. `B` is what the app keeps for as long as it\n * runs on one Backend; `S` is what one Account's Session opens to. */\nexport interface GateConfig<S, B> {\n /** The Host, made the first time the Gate is asked anything, so the Gate\n * can be made where the Host is not there yet, as on a server. The Gate\n * keeps what it remembers in its own `gate` database there. */\n readonly host: () => Host;\n /** What runs while the app is on the cloud Backend: its Sign-in and\n * whatever else the app keeps there. */\n readonly cloud: () => Layer.Layer<SignIn | B>;\n /** The same for the device Backend, loaded the first time it is chosen.\n * `choose` asks who signs in; the Named Sign-In answers it. Without it,\n * the app has only the cloud Backend. */\n readonly device?: (\n choose: Effect.Effect<NamedChoice | null>,\n ) => Promise<Layer.Layer<SignIn | B>>;\n /** Opens one Account's Session, with what runs on the Backend; everything\n * it acquires ends with the scope. `token` is the Account's token at each\n * call, waited for while the Gate holds none, as when the Account opened\n * before the Backend answered. `status` says whether it has been\n * confirmed since; the Gate keeps it. */\n readonly session: (\n account: Account,\n token: Effect.Effect<string>,\n status: StatusCell,\n ) => Effect.Effect<S, never, Scope.Scope | B>;\n /** Deletes what the device keeps for every account but these. */\n readonly keep?: (\n userIds: ReadonlyArray<string>,\n ) => Effect.Effect<void, never, B>;\n}\n\ntype Snapshot = SnapshotFrom<typeof gateMachine>;\ntype Services = SignIn | Device | Sessions | Switching;\n\n/** One Backend at work: what runs on it, and the Gate's machine on it.\n * Closing its scope stops the machine, and with it the Session. */\ntype Running = {\n readonly backend: Backend;\n readonly runtime: ManagedRuntime.ManagedRuntime<Services, never>;\n readonly scope: Scope.Closeable;\n readonly actor: EffectActor<typeof gateMachine>;\n};\n\nconst CHECKING = { kind: 'checking' } as const;\n\n// Only what the Gate remembers of a User, whatever else the Backend sent.\nconst userOf = ({ id, name, email, image }: User): User => ({\n id,\n name,\n email,\n image,\n});\n\n// An Account, without what else the Gate holds of it.\nconst accountOf = ({ user, token }: Held): Account => ({ user, token });\n\nconst viewOf = <S>(snapshot: Snapshot): GateView<S> => {\n const { context } = snapshot;\n if (snapshot.matches('signingOut')) return { kind: 'signingOut' };\n if (snapshot.matches('signedOut'))\n return { kind: 'signedOut', unreachable: context.unreachable };\n if (snapshot.matches('unopenable') && context.account !== null)\n return { kind: 'unopenable', account: accountOf(context.account) };\n if (snapshot.matches('accountLost') && context.lost !== null)\n return {\n kind: 'accountLost',\n account: { user: context.lost, token: null },\n accounts: context.accounts.map(accountOf),\n };\n if (!snapshot.matches('open') || context.account === null) return CHECKING;\n if (context.session === null)\n return { kind: 'opening', account: accountOf(context.account) };\n return {\n kind: 'open',\n session: context.session as S,\n account: accountOf(context.account),\n accounts: context.accounts.map(accountOf),\n };\n};\n\nconst stop = async (current: Running) => {\n await current.runtime.runPromise(Scope.close(current.scope, Exit.void));\n await current.runtime.dispose();\n};\n\n/**\n * The Gate: runs sign-in on one device for one app. It keeps the app on the\n * Backend chosen, and the active Account's Session open while that Account\n * stays active. Nothing runs until something first asks. Make one per app.\n */\nexport const createGate = <S, B>(config: GateConfig<S, B>) => {\n let made: Host | undefined;\n const host = () => (made ??= config.host());\n let remembering: ReturnType<typeof gateMemory> | undefined;\n const memory = () =>\n (remembering ??= gateMemory(host().storage.table(gateTable, 'gate')));\n const remember = (\n change: Parameters<ReturnType<typeof memory>['update']>[0],\n ) => Effect.runPromise(memory().update(change));\n\n // Accounts this device signed out itself, in this tab or another: their\n // going is no Account Lost.\n const quiet = new Set<string>();\n\n // Asks who signs in on the device Backend; the Named Sign-In answers.\n const chooser = namedChooser();\n const loadDevice = config.device;\n\n // A Backend this app does not have stands for the cloud.\n const offered = (backend: Backend | null): Backend | null =>\n backend === 'device' && loadDevice === undefined ? 'cloud' : backend;\n\n // The token each account's calls carry, refreshed whenever it is checked,\n // and the calls waiting for an account's first one.\n const tokens = new Map<string, string | null>();\n const waiting = new Map<string, Set<(token: string) => void>>();\n const setToken = (id: string, token: string | null) => {\n tokens.set(id, token);\n if (token === null) return;\n const waiters = waiting.get(id);\n waiting.delete(id);\n waiters?.forEach((resume) => resume(token));\n };\n // When the Backend last answered who is signed in, and the status of\n // each Session open now: verified once its Account's token is known.\n let verifiedAt: Date | null = null;\n const statuses = new Map<string, StatusCell>();\n const statusOf = (id: string) =>\n (tokens.get(id) ?? null) === null\n ? { state: 'verifying' as const, lastVerifiedAt: null }\n : { state: 'verified' as const, lastVerifiedAt: verifiedAt };\n const publishStatuses = () => {\n for (const [id, cell] of statuses) cell.set(statusOf(id));\n };\n\n const waitForToken = (id: string): Effect.Effect<string> =>\n Effect.callback<string>((resume) => {\n const now = tokens.get(id) ?? null;\n if (now !== null) return resume(Effect.succeed(now));\n const waiter = (token: string) => resume(Effect.succeed(token));\n const waiters = waiting.get(id) ?? new Set();\n waiters.add(waiter);\n waiting.set(id, waiters);\n return Effect.sync(() => void waiting.get(id)?.delete(waiter));\n });\n\n const layerOf = async (backend: Backend): Promise<Layer.Layer<Services>> => {\n const lifetime =\n backend === 'device' && loadDevice !== undefined\n ? await loadDevice(chooser.choose)\n : config.cloud();\n const device = Layer.effect(\n Device,\n Effect.gen(function* () {\n const services = yield* Effect.context<B>();\n return Device.of({\n remembered: memory().read.pipe(\n Effect.map((all) => ({\n accounts: all[backend].accounts.map(({ user, active }) => ({\n user,\n token: null,\n active,\n })),\n lost: all[backend].lost,\n })),\n ),\n remember: ({ accounts, lost }) =>\n Effect.andThen(\n Effect.sync(() => {\n // Only an answer from the Backend is remembered.\n verifiedAt = new Date();\n }),\n memory().update((all) => ({\n ...all,\n [backend]: {\n accounts: accounts.map(({ user, active }) => ({\n user: userOf(user),\n active,\n })),\n lost: lost === null ? null : userOf(lost),\n },\n })),\n ),\n signedOutHere: (userId) => Effect.sync(() => quiet.delete(userId)),\n keep: (userIds) =>\n config.keep === undefined\n ? Effect.void\n : config.keep(userIds).pipe(Effect.provideContext(services)),\n });\n }),\n );\n\n const sessions = Layer.effect(\n Sessions,\n Effect.gen(function* () {\n const services = yield* Effect.context<B>();\n return Sessions.of({\n open: (account: Held) =>\n Effect.gen(function* () {\n const id = account.user.id;\n setToken(id, account.token);\n const status = yield* makeStatus(statusOf(id));\n statuses.set(id, status);\n yield* Effect.addFinalizer(() =>\n Effect.sync(() => {\n if (statuses.get(id) === status) statuses.delete(id);\n }),\n );\n // The Session's own scope, not the one the Backend's services\n // were built in.\n const scope = yield* Effect.context<Scope.Scope>();\n return yield* config\n .session(accountOf(account), waitForToken(id), status)\n .pipe(Effect.provideContext(Context.merge(services, scope)));\n }),\n });\n }),\n );\n\n const switching = Layer.effect(\n Switching,\n Effect.gen(function* () {\n const signIn = yield* SignIn;\n // One browser-wide Account Switch at a time; one asked for while\n // another runs waits, and only the last one waiting runs.\n let chain: Promise<void> = Promise.resolve();\n let latest: string | null = null;\n return Switching.of({\n switchTo: (token) =>\n Effect.tryPromise({\n try: () => {\n latest = token;\n const run = chain.then(() =>\n latest === token\n ? Effect.runPromise(signIn.switchTo(token))\n : undefined,\n );\n chain = run.catch(() => {});\n return run;\n },\n catch: (error) => error,\n }),\n announce: (quiet = []) =>\n Effect.sync(() => host().tabs?.announce({ quiet })),\n });\n }),\n );\n\n return Layer.mergeAll(device, sessions, switching).pipe(\n Layer.provideMerge(lifetime),\n ) as Layer.Layer<Services>;\n };\n\n let running: Running | null = null;\n let view: GateView<S> = CHECKING;\n // Every change of Backend waits for the one before it.\n let queue: Promise<void> = Promise.resolve();\n let booted = false;\n const listeners = new Set<() => void>();\n const notify = () => listeners.forEach((listener) => listener());\n\n const notices: GateNotice[] = [];\n\n const push = (notice: GateNotice) => {\n notices.push(notice);\n notify();\n };\n\n const observe = (snapshot: Snapshot) => {\n const { context } = snapshot;\n for (const account of context.accounts)\n if (account.token !== null) setToken(account.user.id, account.token);\n publishStatuses();\n view = viewOf<S>(snapshot);\n };\n\n const start = async (backend: Backend): Promise<Running> => {\n const runtime = ManagedRuntime.make(await layerOf(backend));\n const scope = runtime.runSync(Scope.make());\n const actor = runtime.runSync(\n createEffectActor(gateMachine).pipe(Scope.provide(scope)),\n );\n const next: Running = { backend, runtime, scope, actor };\n actor.subscribe((snapshot) => {\n if (running !== next) return;\n observe(snapshot);\n notify();\n });\n void runtime\n .runPromise(\n Effect.gen(function* () {\n return yield* (yield* SignIn).takeLoginError;\n }),\n )\n .then((error) => {\n if (error !== null) push({ kind: 'loginError', error });\n }, report);\n return next;\n };\n\n /** Runs on `backend`, ending whatever ran before. */\n const runOn = (backend: Backend) => {\n const change = queue.then(async () => {\n if (running?.backend === backend) return;\n const previous = running;\n running = null;\n view = CHECKING;\n notify();\n if (previous !== null) await stop(previous);\n const next = await start(backend);\n running = next;\n observe(next.actor.getSnapshot());\n notify();\n });\n // A change that failed must not stop the ones after it.\n queue = change.catch(() => {});\n return change;\n };\n\n // Nobody awaits what the Gate does by itself, so a failure is logged\n // rather than lost.\n const report = (failed: unknown) =>\n Effect.runFork(Effect.logError('The Gate could not go on', failed));\n\n const chosenBackend = async (): Promise<Backend> =>\n offered(backendNamed((await Effect.runPromise(memory().read)).backend)) ??\n 'cloud';\n\n // A Backend the launch asked for is chosen as if by hand.\n const settledBackend = async (): Promise<Backend> => {\n const asked = offered(host().lifecycle.launchBackend());\n if (asked === null) return chosenBackend();\n await remember((all) => ({ ...all, backend: asked }));\n return asked;\n };\n\n const send = (\n event: Parameters<EffectActor<typeof gateMachine>['send']>[0],\n ) => running?.actor.send(event);\n\n const checkAgain = () => send({ type: 'CHECK' });\n\n // Follows a Backend chosen elsewhere on this device, or else asks again.\n const follow = () =>\n chosenBackend()\n .then((backend) =>\n running === null || running.backend === backend\n ? checkAgain()\n : runOn(backend),\n )\n .catch(report);\n\n /** Starts on the Backend chosen, once, and looks again whenever the app\n * comes back into view, the network comes back, or another tab changes\n * something. */\n const boot = () => {\n if (booted) return;\n booted = true;\n const { lifecycle, tabs } = host();\n settledBackend().then(runOn).catch(report);\n lifecycle.onOnlineChange(() => {\n if (lifecycle.online()) checkAgain();\n });\n lifecycle.onForeground(follow);\n tabs?.listen((message) => {\n for (const id of message.quiet) quiet.add(id);\n follow();\n });\n };\n\n const subscribe = (changed: () => void) => {\n boot();\n listeners.add(changed);\n return () => void listeners.delete(changed);\n };\n\n const online = () => host().lifecycle.online();\n\n /** Whether a sign-out can happen now: only the Backend can end a sign-in,\n * so the cloud Backend has to be reachable. */\n const canSignOut = () => running?.backend === 'device' || online();\n\n return {\n subscribe,\n /** What every screen shows: checking until the Gate runs, and while the\n * Backend changes. */\n view: (): GateView<S> => view,\n /** The Backend running; null until it has started. */\n backend: (): Backend | null => running?.backend ?? null,\n /** Whether the device is online. */\n online,\n onOnlineChange: (changed: () => void) =>\n host().lifecycle.onOnlineChange(changed),\n canSignOut,\n\n /** Chooses `backend` and runs on it at once. Each Backend keeps its own\n * Signed-in Accounts. */\n setBackend: async (asked: Backend) => {\n const backend = offered(asked) ?? 'cloud';\n await remember((all) => ({ ...all, backend }));\n await runOn(backend);\n host().tabs?.announce({ quiet: [] });\n },\n\n /** An Account Switch: the account opens at once from what the device\n * keeps; the Backend hears of it behind. From an Account Lost, the lost\n * account's Copy is deleted. */\n switchTo: (userId: string) => send({ type: 'SWITCH', userId }),\n\n /** Signs one more account in, who becomes the Active Account. On the\n * cloud Backend the page leaves for the sign-in service; on the device\n * Backend the Named Sign-In asks who. */\n addAccount: async () => {\n const current = running;\n if (current === null) return;\n const error = await current.runtime.runPromise(\n Effect.gen(function* () {\n const signIn = yield* SignIn;\n yield* signIn.signIn();\n return yield* signIn.takeLoginError;\n }),\n );\n // A sign-in that comes back to the app, as on a phone, says here why\n // it signed nobody in.\n if (error !== null) push({ kind: 'loginError', error });\n checkAgain();\n },\n\n /** Signs the Active Account out of this device; whoever is left opens.\n * From an Account Lost, forgets the lost account and deletes its Copy.\n * False, and nothing happens, when the Backend can't be reached. */\n signOut: (): boolean => {\n // Forgetting a lost account needs no Backend.\n if (view.kind === 'accountLost') {\n send({ type: 'SIGN_OUT' });\n return true;\n }\n if (!canSignOut()) return false;\n send({ type: 'SIGN_OUT' });\n return true;\n },\n\n /** Signs every account out of this device. False, and nothing happens,\n * when the Backend can't be reached. */\n signOutEveryone: (): boolean => {\n if (!canSignOut()) return false;\n send({ type: 'SIGN_OUT_EVERYONE' });\n return true;\n },\n\n /** Asks the Backend again who is signed in. */\n checkAgain,\n\n /** Tries again to open an account that would not open. */\n retry: () => send({ type: 'RETRY' }),\n\n /** The oldest Gate Notice not yet taken, once; null when none. */\n takeNotice: (): GateNotice | null => {\n const notice = notices.shift() ?? null;\n if (notice !== null) notify();\n return notice;\n },\n /** The oldest Gate Notice not yet taken, without taking it. */\n notice: (): GateNotice | null => notices[0] ?? null,\n\n /** Whether the device Backend is asking who signs in, and how to answer:\n * a choice, or null to sign nobody in. */\n namedSignIn: {\n subscribe: chooser.subscribe,\n isAsking: chooser.isAsking,\n answer: (choice: NamedChoice | null) => chooser.answer(choice),\n },\n };\n};\n\n/** A Gate, as `createGate` makes it. */\nexport type Gate<S> = ReturnType<typeof createGate<S, never>>;\n"],"mappings":";;;;;;;;;AAmEA,MAAM,WAAW,EAAE,MAAM,WAAW;AAGpC,MAAM,UAAU,EAAE,IAAI,MAAM,OAAO,aAAyB;CAC1D;CACA;CACA;CACA;AACF;AAGA,MAAM,aAAa,EAAE,MAAM,aAA4B;CAAE;CAAM;AAAM;AAErE,MAAM,UAAa,aAAoC;CACrD,MAAM,EAAE,YAAY;CACpB,IAAI,SAAS,QAAQ,YAAY,GAAG,OAAO,EAAE,MAAM,aAAa;CAChE,IAAI,SAAS,QAAQ,WAAW,GAC9B,OAAO;EAAE,MAAM;EAAa,aAAa,QAAQ;CAAY;CAC/D,IAAI,SAAS,QAAQ,YAAY,KAAK,QAAQ,YAAY,MACxD,OAAO;EAAE,MAAM;EAAc,SAAS,UAAU,QAAQ,OAAO;CAAE;CACnE,IAAI,SAAS,QAAQ,aAAa,KAAK,QAAQ,SAAS,MACtD,OAAO;EACL,MAAM;EACN,SAAS;GAAE,MAAM,QAAQ;GAAM,OAAO;EAAK;EAC3C,UAAU,QAAQ,SAAS,IAAI,SAAS;CAC1C;CACF,IAAI,CAAC,SAAS,QAAQ,MAAM,KAAK,QAAQ,YAAY,MAAM,OAAO;CAClE,IAAI,QAAQ,YAAY,MACtB,OAAO;EAAE,MAAM;EAAW,SAAS,UAAU,QAAQ,OAAO;CAAE;CAChE,OAAO;EACL,MAAM;EACN,SAAS,QAAQ;EACjB,SAAS,UAAU,QAAQ,OAAO;EAClC,UAAU,QAAQ,SAAS,IAAI,SAAS;CAC1C;AACF;AAEA,MAAM,OAAO,OAAO,YAAqB;CACvC,MAAM,QAAQ,QAAQ,WAAW,MAAM,MAAM,QAAQ,OAAO,KAAK,IAAI,CAAC;CACtE,MAAM,QAAQ,QAAQ,QAAQ;AAChC;;;;;;AAOA,MAAa,cAAoB,WAA6B;CAC5D,IAAI;CACJ,MAAM,aAAc,SAAS,OAAO,KAAK;CACzC,IAAI;CACJ,MAAM,eACH,gBAAgB,WAAW,KAAK,CAAC,CAAC,QAAQ,MAAM,WAAW,MAAM,CAAC;CACrE,MAAM,YACJ,WACG,OAAO,WAAW,OAAO,CAAC,CAAC,OAAO,MAAM,CAAC;CAI9C,MAAM,wBAAQ,IAAI,IAAY;CAG9B,MAAM,UAAU,aAAa;CAC7B,MAAM,aAAa,OAAO;CAG1B,MAAM,WAAW,YACf,YAAY,YAAY,eAAe,KAAA,IAAY,UAAU;CAI/D,MAAM,yBAAS,IAAI,IAA2B;CAC9C,MAAM,0BAAU,IAAI,IAA0C;CAC9D,MAAM,YAAY,IAAY,UAAyB;EACrD,OAAO,IAAI,IAAI,KAAK;EACpB,IAAI,UAAU,MAAM;EACpB,MAAM,UAAU,QAAQ,IAAI,EAAE;EAC9B,QAAQ,OAAO,EAAE;EACjB,SAAS,SAAS,WAAW,OAAO,KAAK,CAAC;CAC5C;CAGA,IAAI,aAA0B;CAC9B,MAAM,2BAAW,IAAI,IAAwB;CAC7C,MAAM,YAAY,QACf,OAAO,IAAI,EAAE,KAAK,UAAU,OACzB;EAAE,OAAO;EAAsB,gBAAgB;CAAK,IACpD;EAAE,OAAO;EAAqB,gBAAgB;CAAW;CAC/D,MAAM,wBAAwB;EAC5B,KAAK,MAAM,CAAC,IAAI,SAAS,UAAU,KAAK,IAAI,SAAS,EAAE,CAAC;CAC1D;CAEA,MAAM,gBAAgB,OACpB,OAAO,UAAkB,WAAW;EAClC,MAAM,MAAM,OAAO,IAAI,EAAE,KAAK;EAC9B,IAAI,QAAQ,MAAM,OAAO,OAAO,OAAO,QAAQ,GAAG,CAAC;EACnD,MAAM,UAAU,UAAkB,OAAO,OAAO,QAAQ,KAAK,CAAC;EAC9D,MAAM,UAAU,QAAQ,IAAI,EAAE,qBAAK,IAAI,IAAI;EAC3C,QAAQ,IAAI,MAAM;EAClB,QAAQ,IAAI,IAAI,OAAO;EACvB,OAAO,OAAO,WAAW,KAAK,QAAQ,IAAI,EAAE,CAAC,EAAE,OAAO,MAAM,CAAC;CAC/D,CAAC;CAEH,MAAM,UAAU,OAAO,YAAqD;EAC1E,MAAM,WACJ,YAAY,YAAY,eAAe,KAAA,IACnC,MAAM,WAAW,QAAQ,MAAM,IAC/B,OAAO,MAAM;EACnB,MAAM,SAAS,MAAM,OACnB,QACA,OAAO,IAAI,aAAa;GACtB,MAAM,WAAW,OAAO,OAAO,QAAW;GAC1C,OAAO,OAAO,GAAG;IACf,YAAY,OAAO,CAAC,CAAC,KAAK,KACxB,OAAO,KAAK,SAAS;KACnB,UAAU,IAAI,QAAQ,CAAC,SAAS,KAAK,EAAE,MAAM,cAAc;MACzD;MACA,OAAO;MACP;KACF,EAAE;KACF,MAAM,IAAI,QAAQ,CAAC;IACrB,EAAE,CACJ;IACA,WAAW,EAAE,UAAU,WACrB,OAAO,QACL,OAAO,WAAW;KAEhB,6BAAa,IAAI,KAAK;IACxB,CAAC,GACD,OAAO,CAAC,CAAC,QAAQ,SAAS;KACxB,GAAG;MACF,UAAU;MACT,UAAU,SAAS,KAAK,EAAE,MAAM,cAAc;OAC5C,MAAM,OAAO,IAAI;OACjB;MACF,EAAE;MACF,MAAM,SAAS,OAAO,OAAO,OAAO,IAAI;KAC1C;IACF,EAAE,CACJ;IACF,gBAAgB,WAAW,OAAO,WAAW,MAAM,OAAO,MAAM,CAAC;IACjE,OAAO,YACL,OAAO,SAAS,KAAA,IACZ,OAAO,OACP,OAAO,KAAK,OAAO,CAAC,CAAC,KAAK,OAAO,eAAe,QAAQ,CAAC;GACjE,CAAC;EACH,CAAC,CACH;EAEA,MAAM,WAAW,MAAM,OACrB,UACA,OAAO,IAAI,aAAa;GACtB,MAAM,WAAW,OAAO,OAAO,QAAW;GAC1C,OAAO,SAAS,GAAG,EACjB,OAAO,YACL,OAAO,IAAI,aAAa;IACtB,MAAM,KAAK,QAAQ,KAAK;IACxB,SAAS,IAAI,QAAQ,KAAK;IAC1B,MAAM,SAAS,OAAO,WAAW,SAAS,EAAE,CAAC;IAC7C,SAAS,IAAI,IAAI,MAAM;IACvB,OAAO,OAAO,mBACZ,OAAO,WAAW;KAChB,IAAI,SAAS,IAAI,EAAE,MAAM,QAAQ,SAAS,OAAO,EAAE;IACrD,CAAC,CACH;IAGA,MAAM,QAAQ,OAAO,OAAO,QAAqB;IACjD,OAAO,OAAO,OACX,QAAQ,UAAU,OAAO,GAAG,aAAa,EAAE,GAAG,MAAM,CAAC,CACrD,KAAK,OAAO,eAAe,QAAQ,MAAM,UAAU,KAAK,CAAC,CAAC;GAC/D,CAAC,EACL,CAAC;EACH,CAAC,CACH;EAEA,MAAM,YAAY,MAAM,OACtB,WACA,OAAO,IAAI,aAAa;GACtB,MAAM,SAAS,OAAO;GAGtB,IAAI,QAAuB,QAAQ,QAAQ;GAC3C,IAAI,SAAwB;GAC5B,OAAO,UAAU,GAAG;IAClB,WAAW,UACT,OAAO,WAAW;KAChB,WAAW;MACT,SAAS;MACT,MAAM,MAAM,MAAM,WAChB,WAAW,QACP,OAAO,WAAW,OAAO,SAAS,KAAK,CAAC,IACxC,KAAA,CACN;MACA,QAAQ,IAAI,YAAY,CAAC,CAAC;MAC1B,OAAO;KACT;KACA,QAAQ,UAAU;IACpB,CAAC;IACH,WAAW,QAAQ,CAAC,MAClB,OAAO,WAAW,KAAK,CAAC,CAAC,MAAM,SAAS,EAAE,MAAM,CAAC,CAAC;GACtD,CAAC;EACH,CAAC,CACH;EAEA,OAAO,MAAM,SAAS,QAAQ,UAAU,SAAS,CAAC,CAAC,KACjD,MAAM,aAAa,QAAQ,CAC7B;CACF;CAEA,IAAI,UAA0B;CAC9B,IAAI,OAAoB;CAExB,IAAI,QAAuB,QAAQ,QAAQ;CAC3C,IAAI,SAAS;CACb,MAAM,4BAAY,IAAI,IAAgB;CACtC,MAAM,eAAe,UAAU,SAAS,aAAa,SAAS,CAAC;CAE/D,MAAM,UAAwB,CAAC;CAE/B,MAAM,QAAQ,WAAuB;EACnC,QAAQ,KAAK,MAAM;EACnB,OAAO;CACT;CAEA,MAAM,WAAW,aAAuB;EACtC,MAAM,EAAE,YAAY;EACpB,KAAK,MAAM,WAAW,QAAQ,UAC5B,IAAI,QAAQ,UAAU,MAAM,SAAS,QAAQ,KAAK,IAAI,QAAQ,KAAK;EACrE,gBAAgB;EAChB,OAAO,OAAU,QAAQ;CAC3B;CAEA,MAAM,QAAQ,OAAO,YAAuC;EAC1D,MAAM,UAAU,eAAe,KAAK,MAAM,QAAQ,OAAO,CAAC;EAC1D,MAAM,QAAQ,QAAQ,QAAQ,MAAM,KAAK,CAAC;EAC1C,MAAM,QAAQ,QAAQ,QACpB,kBAAkB,WAAW,CAAC,CAAC,KAAK,MAAM,QAAQ,KAAK,CAAC,CAC1D;EACA,MAAM,OAAgB;GAAE;GAAS;GAAS;GAAO;EAAM;EACvD,MAAM,WAAW,aAAa;GAC5B,IAAI,YAAY,MAAM;GACtB,QAAQ,QAAQ;GAChB,OAAO;EACT,CAAC;EACD,QACG,WACC,OAAO,IAAI,aAAa;GACtB,OAAO,QAAQ,OAAO,OAAA,CAAQ;EAChC,CAAC,CACH,CAAC,CACA,MAAM,UAAU;GACf,IAAI,UAAU,MAAM,KAAK;IAAE,MAAM;IAAc;GAAM,CAAC;EACxD,GAAG,MAAM;EACX,OAAO;CACT;;CAGA,MAAM,SAAS,YAAqB;EAClC,MAAM,SAAS,MAAM,KAAK,YAAY;GACpC,IAAI,SAAS,YAAY,SAAS;GAClC,MAAM,WAAW;GACjB,UAAU;GACV,OAAO;GACP,OAAO;GACP,IAAI,aAAa,MAAM,MAAM,KAAK,QAAQ;GAC1C,MAAM,OAAO,MAAM,MAAM,OAAO;GAChC,UAAU;GACV,QAAQ,KAAK,MAAM,YAAY,CAAC;GAChC,OAAO;EACT,CAAC;EAED,QAAQ,OAAO,YAAY,CAAC,CAAC;EAC7B,OAAO;CACT;CAIA,MAAM,UAAU,WACd,OAAO,QAAQ,OAAO,SAAS,4BAA4B,MAAM,CAAC;CAEpE,MAAM,gBAAgB,YACpB,QAAQ,cAAc,MAAM,OAAO,WAAW,OAAO,CAAC,CAAC,IAAI,EAAA,CAAG,OAAO,CAAC,KACtE;CAGF,MAAM,iBAAiB,YAA8B;EACnD,MAAM,QAAQ,QAAQ,KAAK,CAAC,CAAC,UAAU,cAAc,CAAC;EACtD,IAAI,UAAU,MAAM,OAAO,cAAc;EACzC,MAAM,UAAU,SAAS;GAAE,GAAG;GAAK,SAAS;EAAM,EAAE;EACpD,OAAO;CACT;CAEA,MAAM,QACJ,UACG,SAAS,MAAM,KAAK,KAAK;CAE9B,MAAM,mBAAmB,KAAK,EAAE,MAAM,QAAQ,CAAC;CAG/C,MAAM,eACJ,cAAc,CAAC,CACZ,MAAM,YACL,YAAY,QAAQ,QAAQ,YAAY,UACpC,WAAW,IACX,MAAM,OAAO,CACnB,CAAC,CACA,MAAM,MAAM;;;;CAKjB,MAAM,aAAa;EACjB,IAAI,QAAQ;EACZ,SAAS;EACT,MAAM,EAAE,WAAW,SAAS,KAAK;EACjC,eAAe,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,MAAM,MAAM;EACzC,UAAU,qBAAqB;GAC7B,IAAI,UAAU,OAAO,GAAG,WAAW;EACrC,CAAC;EACD,UAAU,aAAa,MAAM;EAC7B,MAAM,QAAQ,YAAY;GACxB,KAAK,MAAM,MAAM,QAAQ,OAAO,MAAM,IAAI,EAAE;GAC5C,OAAO;EACT,CAAC;CACH;CAEA,MAAM,aAAa,YAAwB;EACzC,KAAK;EACL,UAAU,IAAI,OAAO;EACrB,aAAa,KAAK,UAAU,OAAO,OAAO;CAC5C;CAEA,MAAM,eAAe,KAAK,CAAC,CAAC,UAAU,OAAO;;;CAI7C,MAAM,mBAAmB,SAAS,YAAY,YAAY,OAAO;CAEjE,OAAO;EACL;;;EAGA,YAAyB;;EAEzB,eAA+B,SAAS,WAAW;;EAEnD;EACA,iBAAiB,YACf,KAAK,CAAC,CAAC,UAAU,eAAe,OAAO;EACzC;;;EAIA,YAAY,OAAO,UAAmB;GACpC,MAAM,UAAU,QAAQ,KAAK,KAAK;GAClC,MAAM,UAAU,SAAS;IAAE,GAAG;IAAK;GAAQ,EAAE;GAC7C,MAAM,MAAM,OAAO;GACnB,KAAK,CAAC,CAAC,MAAM,SAAS,EAAE,OAAO,CAAC,EAAE,CAAC;EACrC;;;;EAKA,WAAW,WAAmB,KAAK;GAAE,MAAM;GAAU;EAAO,CAAC;;;;EAK7D,YAAY,YAAY;GACtB,MAAM,UAAU;GAChB,IAAI,YAAY,MAAM;GACtB,MAAM,QAAQ,MAAM,QAAQ,QAAQ,WAClC,OAAO,IAAI,aAAa;IACtB,MAAM,SAAS,OAAO;IACtB,OAAO,OAAO,OAAO;IACrB,OAAO,OAAO,OAAO;GACvB,CAAC,CACH;GAGA,IAAI,UAAU,MAAM,KAAK;IAAE,MAAM;IAAc;GAAM,CAAC;GACtD,WAAW;EACb;;;;EAKA,eAAwB;GAEtB,IAAI,KAAK,SAAS,eAAe;IAC/B,KAAK,EAAE,MAAM,WAAW,CAAC;IACzB,OAAO;GACT;GACA,IAAI,CAAC,WAAW,GAAG,OAAO;GAC1B,KAAK,EAAE,MAAM,WAAW,CAAC;GACzB,OAAO;EACT;;;EAIA,uBAAgC;GAC9B,IAAI,CAAC,WAAW,GAAG,OAAO;GAC1B,KAAK,EAAE,MAAM,oBAAoB,CAAC;GAClC,OAAO;EACT;;EAGA;;EAGA,aAAa,KAAK,EAAE,MAAM,QAAQ,CAAC;;EAGnC,kBAAqC;GACnC,MAAM,SAAS,QAAQ,MAAM,KAAK;GAClC,IAAI,WAAW,MAAM,OAAO;GAC5B,OAAO;EACT;;EAEA,cAAiC,QAAQ,MAAM;;;EAI/C,aAAa;GACX,WAAW,QAAQ;GACnB,UAAU,QAAQ;GAClB,SAAS,WAA+B,QAAQ,OAAO,MAAM;EAC/D;CACF;AACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GateNotice, GateView } from "./domain/types.js";
|
|
2
|
+
import "./domain/index.js";
|
|
3
|
+
import { Gate, GateConfig, createGate } from "./gate.js";
|
|
4
|
+
import { GateReact, gateReact } from "./react.js";
|
|
5
|
+
export { type Gate, type GateConfig, type GateNotice, type GateReact, type GateView, createGate, gateReact };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { Effect, Layer, Schema } from "effect";
|
|
2
|
+
import { StdTable, StdTableService } from "@kestack/std-toolkit/db";
|
|
3
|
+
import { ESchema } from "@kestack/std-toolkit/eschema";
|
|
4
|
+
//#region src/app/gate/memory.d.ts
|
|
5
|
+
declare const GateMemory: ESchema<"v1", {
|
|
6
|
+
/** The Backend chosen; null until one is. */
|
|
7
|
+
backend: Schema.NullOr<Schema.Literals<readonly ["cloud", "device"]>>;
|
|
8
|
+
cloud: Schema.Struct<{
|
|
9
|
+
/** The Remembered Accounts, as the Backend last named them. */
|
|
10
|
+
readonly accounts: Schema.$Array<Schema.Struct<{
|
|
11
|
+
readonly user: Schema.Struct<{
|
|
12
|
+
readonly id: Schema.String;
|
|
13
|
+
readonly name: Schema.String;
|
|
14
|
+
readonly email: Schema.String;
|
|
15
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
16
|
+
}>;
|
|
17
|
+
readonly active: Schema.Boolean;
|
|
18
|
+
}>>;
|
|
19
|
+
/** The account found lost, until the User signs in to it again or opens
|
|
20
|
+
* another. */
|
|
21
|
+
readonly lost: Schema.NullOr<Schema.Struct<{
|
|
22
|
+
readonly id: Schema.String;
|
|
23
|
+
readonly name: Schema.String;
|
|
24
|
+
readonly email: Schema.String;
|
|
25
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
26
|
+
}>>;
|
|
27
|
+
}>;
|
|
28
|
+
device: Schema.Struct<{
|
|
29
|
+
/** The Remembered Accounts, as the Backend last named them. */
|
|
30
|
+
readonly accounts: Schema.$Array<Schema.Struct<{
|
|
31
|
+
readonly user: Schema.Struct<{
|
|
32
|
+
readonly id: Schema.String;
|
|
33
|
+
readonly name: Schema.String;
|
|
34
|
+
readonly email: Schema.String;
|
|
35
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
36
|
+
}>;
|
|
37
|
+
readonly active: Schema.Boolean;
|
|
38
|
+
}>>;
|
|
39
|
+
/** The account found lost, until the User signs in to it again or opens
|
|
40
|
+
* another. */
|
|
41
|
+
readonly lost: Schema.NullOr<Schema.Struct<{
|
|
42
|
+
readonly id: Schema.String;
|
|
43
|
+
readonly name: Schema.String;
|
|
44
|
+
readonly email: Schema.String;
|
|
45
|
+
readonly image: Schema.NullOr<Schema.String>;
|
|
46
|
+
}>>;
|
|
47
|
+
}>;
|
|
48
|
+
}, "GateMemory">;
|
|
49
|
+
type GateMemory = typeof GateMemory.Type;
|
|
50
|
+
/** Where the Gate keeps what it remembers on this device. Realize it on any
|
|
51
|
+
* StdTable adapter: Memory, IDB in a browser, SQLite on a phone. */
|
|
52
|
+
export declare const gateTable: StdTable<"auth-gate", import("@kestack/std-toolkit/db").PrimaryIndex<"pk", "sk">, {}, {}>;
|
|
53
|
+
/** A place to keep `gateTable`. */
|
|
54
|
+
export type GateTable = Layer.Layer<StdTableService<typeof gateTable.logicalName>>;
|
|
55
|
+
/** Reads and changes what the Gate remembers, kept in `table`. */
|
|
56
|
+
export declare const gateMemory: (table: GateTable) => {
|
|
57
|
+
read: Effect.Effect<{
|
|
58
|
+
readonly backend: "cloud" | "device" | null;
|
|
59
|
+
readonly cloud: {
|
|
60
|
+
readonly accounts: readonly {
|
|
61
|
+
readonly user: {
|
|
62
|
+
readonly id: string;
|
|
63
|
+
readonly name: string;
|
|
64
|
+
readonly email: string;
|
|
65
|
+
readonly image: string | null;
|
|
66
|
+
};
|
|
67
|
+
readonly active: boolean;
|
|
68
|
+
}[];
|
|
69
|
+
readonly lost: {
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly email: string;
|
|
73
|
+
readonly image: string | null;
|
|
74
|
+
} | null;
|
|
75
|
+
};
|
|
76
|
+
readonly device: {
|
|
77
|
+
readonly accounts: readonly {
|
|
78
|
+
readonly user: {
|
|
79
|
+
readonly id: string;
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly email: string;
|
|
82
|
+
readonly image: string | null;
|
|
83
|
+
};
|
|
84
|
+
readonly active: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
readonly lost: {
|
|
87
|
+
readonly id: string;
|
|
88
|
+
readonly name: string;
|
|
89
|
+
readonly email: string;
|
|
90
|
+
readonly image: string | null;
|
|
91
|
+
} | null;
|
|
92
|
+
};
|
|
93
|
+
}, never, never>;
|
|
94
|
+
update: (change: (current: GateMemory) => GateMemory) => Effect.Effect<void, never, never>;
|
|
95
|
+
};
|
|
96
|
+
//#endregion
|
|
97
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","names":[],"sources":["../../../src/app/gate/memory.ts"],"mappings":";;;;cAoBM,YAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAOX,oBAAoB,WAAW;;;qBAMvB,WAAS,wDAAA;;YAGV,YAAY,MAAM,MAC5B,uBAAuB,UAAU;;qBAQtB,aAAU,OAAW;EAChC,MAAI,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKJ,SAAM,SAAY,SAAS,eAAe,eAAU,OAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Backend } from "../host/host.js";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
|
+
import { StdTable } from "@kestack/std-toolkit/db";
|
|
4
|
+
import { ESchema } from "@kestack/std-toolkit/eschema";
|
|
5
|
+
//#region src/app/gate/memory.ts
|
|
6
|
+
const User = Schema.Struct({
|
|
7
|
+
id: Schema.String,
|
|
8
|
+
name: Schema.String,
|
|
9
|
+
email: Schema.String,
|
|
10
|
+
image: Schema.NullOr(Schema.String)
|
|
11
|
+
});
|
|
12
|
+
const Remembered = Schema.Struct({
|
|
13
|
+
/** The Remembered Accounts, as the Backend last named them. */
|
|
14
|
+
accounts: Schema.Array(Schema.Struct({
|
|
15
|
+
user: User,
|
|
16
|
+
active: Schema.Boolean
|
|
17
|
+
})),
|
|
18
|
+
/** The account found lost, until the User signs in to it again or opens
|
|
19
|
+
* another. */
|
|
20
|
+
lost: Schema.NullOr(User)
|
|
21
|
+
});
|
|
22
|
+
const GateMemory = ESchema.make("GateMemory", {
|
|
23
|
+
/** The Backend chosen; null until one is. */
|
|
24
|
+
backend: Schema.NullOr(Backend),
|
|
25
|
+
cloud: Remembered,
|
|
26
|
+
device: Remembered
|
|
27
|
+
}).build();
|
|
28
|
+
const NOBODY = {
|
|
29
|
+
accounts: [],
|
|
30
|
+
lost: null
|
|
31
|
+
};
|
|
32
|
+
/** Where the Gate keeps what it remembers on this device. Realize it on any
|
|
33
|
+
* StdTable adapter: Memory, IDB in a browser, SQLite on a phone. */
|
|
34
|
+
const gateTable = StdTable.make("auth-gate").primary("pk", "sk").build();
|
|
35
|
+
const memory = gateTable.singleEntity(GateMemory).default({
|
|
36
|
+
backend: null,
|
|
37
|
+
cloud: NOBODY,
|
|
38
|
+
device: NOBODY
|
|
39
|
+
});
|
|
40
|
+
/** Reads and changes what the Gate remembers, kept in `table`. */
|
|
41
|
+
const gateMemory = (table) => ({
|
|
42
|
+
read: memory.get().pipe(Effect.map(({ value }) => value), Effect.provide(table), Effect.orDie),
|
|
43
|
+
update: (change) => memory.getAndUpdate(change).pipe(Effect.provide(table), Effect.orDie, Effect.asVoid)
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { gateMemory, gateTable };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","names":[],"sources":["../../../src/app/gate/memory.ts"],"sourcesContent":["import { Effect, type Layer, Schema } from 'effect';\nimport { StdTable, type StdTableService } from '@kestack/std-toolkit/db';\nimport { ESchema } from '@kestack/std-toolkit/eschema';\nimport { Backend } from '../host/index.ts';\n\nconst User = Schema.Struct({\n id: Schema.String,\n name: Schema.String,\n email: Schema.String,\n image: Schema.NullOr(Schema.String),\n});\n\nconst Remembered = Schema.Struct({\n /** The Remembered Accounts, as the Backend last named them. */\n accounts: Schema.Array(Schema.Struct({ user: User, active: Schema.Boolean })),\n /** The account found lost, until the User signs in to it again or opens\n * another. */\n lost: Schema.NullOr(User),\n});\n\nconst GateMemory = ESchema.make('GateMemory', {\n /** The Backend chosen; null until one is. */\n backend: Schema.NullOr(Backend),\n cloud: Remembered,\n device: Remembered,\n}).build();\n\ntype GateMemory = typeof GateMemory.Type;\n\nconst NOBODY: typeof Remembered.Type = { accounts: [], lost: null };\n\n/** Where the Gate keeps what it remembers on this device. Realize it on any\n * StdTable adapter: Memory, IDB in a browser, SQLite on a phone. */\nexport const gateTable = StdTable.make('auth-gate').primary('pk', 'sk').build();\n\n/** A place to keep `gateTable`. */\nexport type GateTable = Layer.Layer<\n StdTableService<typeof gateTable.logicalName>\n>;\n\nconst memory = gateTable\n .singleEntity(GateMemory)\n .default({ backend: null, cloud: NOBODY, device: NOBODY });\n\n/** Reads and changes what the Gate remembers, kept in `table`. */\nexport const gateMemory = (table: GateTable) => ({\n read: memory.get().pipe(\n Effect.map(({ value }): GateMemory => value),\n Effect.provide(table),\n Effect.orDie,\n ),\n update: (change: (current: GateMemory) => GateMemory) =>\n memory\n .getAndUpdate(change)\n .pipe(Effect.provide(table), Effect.orDie, Effect.asVoid),\n});\n"],"mappings":";;;;;AAKA,MAAM,OAAO,OAAO,OAAO;CACzB,IAAI,OAAO;CACX,MAAM,OAAO;CACb,OAAO,OAAO;CACd,OAAO,OAAO,OAAO,OAAO,MAAM;AACpC,CAAC;AAED,MAAM,aAAa,OAAO,OAAO;;CAE/B,UAAU,OAAO,MAAM,OAAO,OAAO;EAAE,MAAM;EAAM,QAAQ,OAAO;CAAQ,CAAC,CAAC;;;CAG5E,MAAM,OAAO,OAAO,IAAI;AAC1B,CAAC;AAED,MAAM,aAAa,QAAQ,KAAK,cAAc;;CAE5C,SAAS,OAAO,OAAO,OAAO;CAC9B,OAAO;CACP,QAAQ;AACV,CAAC,CAAC,CAAC,MAAM;AAIT,MAAM,SAAiC;CAAE,UAAU,CAAC;CAAG,MAAM;AAAK;;;AAIlE,MAAa,YAAY,SAAS,KAAK,WAAW,CAAC,CAAC,QAAQ,MAAM,IAAI,CAAC,CAAC,MAAM;AAO9E,MAAM,SAAS,UACZ,aAAa,UAAU,CAAC,CACxB,QAAQ;CAAE,SAAS;CAAM,OAAO;CAAQ,QAAQ;AAAO,CAAC;;AAG3D,MAAa,cAAc,WAAsB;CAC/C,MAAM,OAAO,IAAI,CAAC,CAAC,KACjB,OAAO,KAAK,EAAE,YAAwB,KAAK,GAC3C,OAAO,QAAQ,KAAK,GACpB,OAAO,KACT;CACA,SAAS,WACP,OACG,aAAa,MAAM,CAAC,CACpB,KAAK,OAAO,QAAQ,KAAK,GAAG,OAAO,OAAO,OAAO,MAAM;AAC9D"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Backend } from "../host/host.js";
|
|
2
|
+
import { GateNotice, GateView } from "./domain/types.js";
|
|
3
|
+
import "./domain/index.js";
|
|
4
|
+
import { Gate } from "./gate.js";
|
|
5
|
+
import "./index.js";
|
|
6
|
+
import { ReactNode } from "react";
|
|
7
|
+
import { NamedChoice } from "@kestack/auth-toolkit/client";
|
|
8
|
+
//#region src/app/gate/react.d.ts
|
|
9
|
+
type NotOpen<S> = Exclude<GateView<S>, {
|
|
10
|
+
kind: 'open';
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* A Gate as React sees it, on any platform: `SignedIn` and `SignedOut`
|
|
14
|
+
* around any part of the app, from the whole of it to one button;
|
|
15
|
+
* `useGate` anywhere; `useAccounts` and `useSession` inside `SignedIn`. Nothing runs until one of them first renders.
|
|
16
|
+
*/
|
|
17
|
+
export declare const gateReact: <S>(gate: Gate<S>) => {
|
|
18
|
+
SignedIn: (props: {
|
|
19
|
+
readonly children: ReactNode;
|
|
20
|
+
readonly fallback?: ReactNode | ((view: NotOpen<S>) => ReactNode);
|
|
21
|
+
}) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
22
|
+
SignedOut: (props: {
|
|
23
|
+
readonly children: ReactNode;
|
|
24
|
+
}) => ReactNode;
|
|
25
|
+
useGate: () => {
|
|
26
|
+
view: GateView<S>;
|
|
27
|
+
/** The Backend running; null until it has started. */
|
|
28
|
+
backend: "cloud" | "device" | null;
|
|
29
|
+
/** Chooses a Backend and runs on it at once. */
|
|
30
|
+
setBackend: (asked: Backend) => Promise<void>;
|
|
31
|
+
/** Whether the device is online. */
|
|
32
|
+
online: boolean;
|
|
33
|
+
/** The oldest Gate Notice not yet dismissed. */
|
|
34
|
+
notice: GateNotice | null;
|
|
35
|
+
dismissNotice: () => undefined;
|
|
36
|
+
/** Asks the Backend again who is signed in. */
|
|
37
|
+
checkAgain: () => void | undefined;
|
|
38
|
+
/** Tries again to open an account that would not open. */
|
|
39
|
+
retry: () => void | undefined;
|
|
40
|
+
/** Signs an account in, the first or one more. */
|
|
41
|
+
signIn: () => Promise<void>;
|
|
42
|
+
/** An Account Switch, as from an Account Lost, where nobody is open. */
|
|
43
|
+
switchTo: (userId: string) => void | undefined;
|
|
44
|
+
/** Signs the Active Account out, or forgets a lost one; false when the
|
|
45
|
+
* Backend can't be reached. */
|
|
46
|
+
signOut: () => boolean;
|
|
47
|
+
/** Whether the device Backend is asking who signs in, and the answer: a
|
|
48
|
+
* choice, or null to sign nobody in. */
|
|
49
|
+
namedSignIn: {
|
|
50
|
+
asking: boolean;
|
|
51
|
+
answer: (choice: NamedChoice | null) => void;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
useAccounts: () => {
|
|
55
|
+
/** The open account. */
|
|
56
|
+
current: import("@kestack/auth-toolkit/client").Account;
|
|
57
|
+
/** Every Signed-in Account. */
|
|
58
|
+
all: readonly import("@kestack/auth-toolkit/client").Account[];
|
|
59
|
+
/** Signs one more account in, who becomes the Active Account. */
|
|
60
|
+
add: () => Promise<void>;
|
|
61
|
+
/** An Account Switch, at once. */
|
|
62
|
+
switchTo: (userId: string) => void | undefined;
|
|
63
|
+
/** False when the Backend can't be reached. */
|
|
64
|
+
signOut: () => boolean;
|
|
65
|
+
/** False when the Backend can't be reached. */
|
|
66
|
+
signOutEveryone: () => boolean;
|
|
67
|
+
};
|
|
68
|
+
/** The open Account's Session; only inside `SignedIn`. */
|
|
69
|
+
useSession: () => S;
|
|
70
|
+
};
|
|
71
|
+
/** A Gate's React side, as `gateReact` makes it. */
|
|
72
|
+
export type GateReact<S> = ReturnType<typeof gateReact<S>>;
|
|
73
|
+
//#endregion
|
|
74
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","names":["_$___host_host_ts0.Backend","_$__index_ts0.GateNotice"],"sources":["../../../src/app/gate/react.tsx"],"mappings":";;;;;;;;KAWK,QAAQ,KAAK,QAAQ,SAAS;EAAM;;;;;;;qBAS5B,YAAa,GAAC,MAAS,KAAK;EAmBd,WAAA;aACd,UAAU;aACV,WAAW,cAAc,MAAM,QAAQ,OAAO;6DACxD,IAAA,UAAA,SAAA,aAAA,6CAAA,SAAA,6BAAA,+CAAA,8CAAA;EAgByB,YAAA;aAAW,UAAU;QAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKlC,SAAA,QAAA;;;;;IAkDpB,gDAAO;;IAEP,qDAAG;;IAEH,WAAG;;IAEH,WAAQ;;IAER;;IAEA;;;EAUc,kBAAA;;;YAKR,UAAU,KAAK,kBAAkB,UAAU"}
|