@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,3 @@
|
|
|
1
|
+
import { Pointer, Pointers } from "./motion-pointers.js";
|
|
2
|
+
import { Direction, Directions, GestureEnd, GestureOptions, GestureProvider, GestureState, GestureZone, GestureZoneProps, useGesture } from "./zone.js";
|
|
3
|
+
export { type Direction, type Directions, type GestureEnd, type GestureOptions, GestureProvider, type GestureState, GestureZone, type GestureZoneProps, type Pointer, type Pointers, useGesture };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Target } from "../touch-input/touch-input.js";
|
|
2
|
+
import "../touch-input/index.js";
|
|
3
|
+
import { MotionValue } from "motion/react";
|
|
4
|
+
import { Pointer as Pointer$1, Pointers as Pointers$1 } from "@kestack/use-gesture";
|
|
5
|
+
//#region src/input/gesture/zones/zone/motion-pointers.d.ts
|
|
6
|
+
type Sample = Pointer$1<Target>['start'];
|
|
7
|
+
/**
|
|
8
|
+
* One finger of a Gesture, from landing until the Gesture ends. `target` is
|
|
9
|
+
* the element it landed on. `x` and `y` are where it is now, in viewport px;
|
|
10
|
+
* `dx` and `dy` how far it is from where it landed. They follow it while it
|
|
11
|
+
* is down and keep where it lifted after. `end` is set once it lifts.
|
|
12
|
+
*/
|
|
13
|
+
export type Pointer = {
|
|
14
|
+
readonly id: number;
|
|
15
|
+
readonly target: Target;
|
|
16
|
+
readonly start: Sample;
|
|
17
|
+
readonly x: MotionValue<number>;
|
|
18
|
+
readonly y: MotionValue<number>;
|
|
19
|
+
readonly dx: MotionValue<number>;
|
|
20
|
+
readonly dy: MotionValue<number>;
|
|
21
|
+
readonly end?: Sample;
|
|
22
|
+
};
|
|
23
|
+
/** Every finger of a Gesture, by id, in the order they landed. */
|
|
24
|
+
export type Pointers = ReadonlyMap<number, Pointer>;
|
|
25
|
+
/**
|
|
26
|
+
* The core's Pointers as motion values, for one Gesture Provider: each
|
|
27
|
+
* finger keeps its own motion values for its Gesture, set as the core's
|
|
28
|
+
* Pointer changes, so movement never re-renders React. The map changes only
|
|
29
|
+
* as a finger lands or lifts, as the core's does on those.
|
|
30
|
+
*/
|
|
31
|
+
export declare const createMotionPointers: () => (next: Pointers$1<Target>) => Pointers;
|
|
32
|
+
//#endregion
|
|
33
|
+
//# sourceMappingURL=motion-pointers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion-pointers.d.ts","names":["CorePointer","CorePointers"],"sources":["../../../../../src/input/gesture/zones/zone/motion-pointers.ts"],"mappings":";;;;;KAOK,SAASA,UAAY;;;;;;;YAQd;WACD;WACA,QAAQ;WACR,OAAO;WACP,GAAG;WACH,GAAG;WACH,IAAI;WACJ,IAAI;WACJ,MAAM;;;YAIL,WAAW,oBAAoB;;;;;;;qBAQ9B,6BAAoB,MAIjBC,WAAa,YAAU"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { motionValue } from "motion/react";
|
|
2
|
+
//#region src/input/gesture/zones/zone/motion-pointers.ts
|
|
3
|
+
/**
|
|
4
|
+
* The core's Pointers as motion values, for one Gesture Provider: each
|
|
5
|
+
* finger keeps its own motion values for its Gesture, set as the core's
|
|
6
|
+
* Pointer changes, so movement never re-renders React. The map changes only
|
|
7
|
+
* as a finger lands or lifts, as the core's does on those.
|
|
8
|
+
*/
|
|
9
|
+
const createMotionPointers = () => {
|
|
10
|
+
let source;
|
|
11
|
+
let mirrored = /* @__PURE__ */ new Map();
|
|
12
|
+
return (next) => {
|
|
13
|
+
if (next === source) return mirrored;
|
|
14
|
+
source = next;
|
|
15
|
+
let changed = next.size !== mirrored.size;
|
|
16
|
+
const pointers = /* @__PURE__ */ new Map();
|
|
17
|
+
for (const [id, pointer] of next) {
|
|
18
|
+
let own = mirrored.get(id);
|
|
19
|
+
if (own === void 0 || own.start !== pointer.start) {
|
|
20
|
+
own = {
|
|
21
|
+
id,
|
|
22
|
+
target: pointer.target,
|
|
23
|
+
start: pointer.start,
|
|
24
|
+
x: motionValue(pointer.x),
|
|
25
|
+
y: motionValue(pointer.y),
|
|
26
|
+
dx: motionValue(pointer.dx),
|
|
27
|
+
dy: motionValue(pointer.dy)
|
|
28
|
+
};
|
|
29
|
+
changed = true;
|
|
30
|
+
} else {
|
|
31
|
+
own.x.set(pointer.x);
|
|
32
|
+
own.y.set(pointer.y);
|
|
33
|
+
own.dx.set(pointer.dx);
|
|
34
|
+
own.dy.set(pointer.dy);
|
|
35
|
+
}
|
|
36
|
+
if (pointer.end !== void 0 && own.end === void 0) {
|
|
37
|
+
own = {
|
|
38
|
+
...own,
|
|
39
|
+
end: pointer.end
|
|
40
|
+
};
|
|
41
|
+
changed = true;
|
|
42
|
+
}
|
|
43
|
+
pointers.set(id, own);
|
|
44
|
+
}
|
|
45
|
+
if (changed) mirrored = pointers;
|
|
46
|
+
return mirrored;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { createMotionPointers };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=motion-pointers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"motion-pointers.js","names":[],"sources":["../../../../../src/input/gesture/zones/zone/motion-pointers.ts"],"sourcesContent":["import { type MotionValue, motionValue } from 'motion/react';\nimport type {\n Pointer as CorePointer,\n Pointers as CorePointers,\n} from '@kestack/use-gesture';\nimport type { Target } from '../touch-input/index.ts';\n\ntype Sample = CorePointer<Target>['start'];\n\n/**\n * One finger of a Gesture, from landing until the Gesture ends. `target` is\n * the element it landed on. `x` and `y` are where it is now, in viewport px;\n * `dx` and `dy` how far it is from where it landed. They follow it while it\n * is down and keep where it lifted after. `end` is set once it lifts.\n */\nexport type Pointer = {\n readonly id: number;\n readonly target: Target;\n readonly start: Sample;\n readonly x: MotionValue<number>;\n readonly y: MotionValue<number>;\n readonly dx: MotionValue<number>;\n readonly dy: MotionValue<number>;\n readonly end?: Sample;\n};\n\n/** Every finger of a Gesture, by id, in the order they landed. */\nexport type Pointers = ReadonlyMap<number, Pointer>;\n\n/**\n * The core's Pointers as motion values, for one Gesture Provider: each\n * finger keeps its own motion values for its Gesture, set as the core's\n * Pointer changes, so movement never re-renders React. The map changes only\n * as a finger lands or lifts, as the core's does on those.\n */\nexport const createMotionPointers = () => {\n let source: CorePointers<Target> | undefined;\n let mirrored: Pointers = new Map();\n\n return (next: CorePointers<Target>): Pointers => {\n if (next === source) return mirrored;\n source = next;\n let changed = next.size !== mirrored.size;\n const pointers = new Map<number, Pointer>();\n for (const [id, pointer] of next) {\n let own = mirrored.get(id);\n // The same finger keeps its `start` for the whole Gesture.\n if (own === undefined || own.start !== pointer.start) {\n own = {\n id,\n target: pointer.target,\n start: pointer.start,\n x: motionValue(pointer.x),\n y: motionValue(pointer.y),\n dx: motionValue(pointer.dx),\n dy: motionValue(pointer.dy),\n };\n changed = true;\n } else {\n own.x.set(pointer.x);\n own.y.set(pointer.y);\n own.dx.set(pointer.dx);\n own.dy.set(pointer.dy);\n }\n if (pointer.end !== undefined && own.end === undefined) {\n own = { ...own, end: pointer.end };\n changed = true;\n }\n pointers.set(id, own);\n }\n if (changed) mirrored = pointers;\n return mirrored;\n };\n};\n"],"mappings":";;;;;;;;AAmCA,MAAa,6BAA6B;CACxC,IAAI;CACJ,IAAI,2BAAqB,IAAI,IAAI;CAEjC,QAAQ,SAAyC;EAC/C,IAAI,SAAS,QAAQ,OAAO;EAC5B,SAAS;EACT,IAAI,UAAU,KAAK,SAAS,SAAS;EACrC,MAAM,2BAAW,IAAI,IAAqB;EAC1C,KAAK,MAAM,CAAC,IAAI,YAAY,MAAM;GAChC,IAAI,MAAM,SAAS,IAAI,EAAE;GAEzB,IAAI,QAAQ,KAAA,KAAa,IAAI,UAAU,QAAQ,OAAO;IACpD,MAAM;KACJ;KACA,QAAQ,QAAQ;KAChB,OAAO,QAAQ;KACf,GAAG,YAAY,QAAQ,CAAC;KACxB,GAAG,YAAY,QAAQ,CAAC;KACxB,IAAI,YAAY,QAAQ,EAAE;KAC1B,IAAI,YAAY,QAAQ,EAAE;IAC5B;IACA,UAAU;GACZ,OAAO;IACL,IAAI,EAAE,IAAI,QAAQ,CAAC;IACnB,IAAI,EAAE,IAAI,QAAQ,CAAC;IACnB,IAAI,GAAG,IAAI,QAAQ,EAAE;IACrB,IAAI,GAAG,IAAI,QAAQ,EAAE;GACvB;GACA,IAAI,QAAQ,QAAQ,KAAA,KAAa,IAAI,QAAQ,KAAA,GAAW;IACtD,MAAM;KAAE,GAAG;KAAK,KAAK,QAAQ;IAAI;IACjC,UAAU;GACZ;GACA,SAAS,IAAI,IAAI,GAAG;EACtB;EACA,IAAI,SAAS,WAAW;EACxB,OAAO;CACT;AACF"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Pointer, Pointers } from "./motion-pointers.js";
|
|
2
|
+
import { ComponentProps, ReactNode } from "react";
|
|
3
|
+
import { MotionValue } from "motion/react";
|
|
4
|
+
import { Direction, Direction as Direction$1, Directions, Directions as Directions$1, GestureEnd, GestureEnd as GestureEnd$1 } from "@kestack/use-gesture";
|
|
5
|
+
//#region src/input/gesture/zones/zone/zone.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Tracks every Gesture in the Gesture Zones inside it: the one place its
|
|
8
|
+
* fingers are followed. Put one at the app's root; separate sections may
|
|
9
|
+
* each have their own, and each then runs its own Gesture. One inside
|
|
10
|
+
* another does nothing: its zones join the outer one, so nested screens
|
|
11
|
+
* share one Gesture.
|
|
12
|
+
*/
|
|
13
|
+
export declare function GestureProvider(props: {
|
|
14
|
+
readonly children?: ReactNode;
|
|
15
|
+
}): 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;
|
|
16
|
+
export type GestureZoneProps = ComponentProps<'div'> & {
|
|
17
|
+
/**
|
|
18
|
+
* Whether Gestures that start in it stay in it, rather than also reaching
|
|
19
|
+
* the zones around it. It never keeps a touch from the browser. False by
|
|
20
|
+
* default. Read as a Gesture starts.
|
|
21
|
+
*/
|
|
22
|
+
readonly trapped?: boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* An area where the app can own touch, read with `useGesture` by any
|
|
26
|
+
* component inside it, shown or hidden. A Gesture starting in it is heard
|
|
27
|
+
* here and by each zone around it up to the first trapped one; sibling
|
|
28
|
+
* zones never hear each other. At the first movement one of them takes it,
|
|
29
|
+
* if a listener wants it; otherwise the browser scrolls. Zones nest, and
|
|
30
|
+
* must be inside a GestureProvider.
|
|
31
|
+
*/
|
|
32
|
+
export declare function GestureZone({ ref, style, children, trapped, ...props }: GestureZoneProps): import("react").JSX.Element;
|
|
33
|
+
export type GestureOptions = {
|
|
34
|
+
/** Whether it takes the next Gesture: true by default. Read as its first finger lands. */
|
|
35
|
+
readonly enabled?: boolean;
|
|
36
|
+
/** The first finger landed. */
|
|
37
|
+
readonly onStart?: (pointers: Pointers) => void;
|
|
38
|
+
/** A finger landed or lifted; `pointer` is that finger. */
|
|
39
|
+
readonly onPointer?: (pointer: Pointer, pointers: Pointers) => void;
|
|
40
|
+
/**
|
|
41
|
+
* The last finger lifted: every finger of the Gesture, lifted ones
|
|
42
|
+
* included. Also when the browser or another zone took it, `interrupted`.
|
|
43
|
+
*/
|
|
44
|
+
readonly onEnd?: (pointers: Pointers, end: GestureEnd$1) => void;
|
|
45
|
+
/**
|
|
46
|
+
* The Directions it takes touches in: `['left', 'right']`, or `'all'`. An
|
|
47
|
+
* element under the finger that can still scroll that way keeps it
|
|
48
|
+
* instead. Read at the touch's first movement. Without `directions` or
|
|
49
|
+
* `captures` it only watches, and never keeps a touch from the browser,
|
|
50
|
+
* apart from the edge it `guardsEdge`.
|
|
51
|
+
*/
|
|
52
|
+
readonly directions?: Directions$1;
|
|
53
|
+
/** The Gesture first moved in `direction`: read once, for every listener. */
|
|
54
|
+
readonly onDirection?: (direction: Direction$1) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Whether it captures a touch whose first finger landed at `point`, in
|
|
57
|
+
* viewport px, whichever way it moves, even over an element that could
|
|
58
|
+
* scroll it. Read at the touch's first movement; taps are never affected.
|
|
59
|
+
*/
|
|
60
|
+
readonly captures?: (point: {
|
|
61
|
+
readonly x: number;
|
|
62
|
+
readonly y: number;
|
|
63
|
+
}) => boolean;
|
|
64
|
+
/**
|
|
65
|
+
* A side edge it keeps from the browser's edge swipe (back and forward on
|
|
66
|
+
* iOS) while it is enabled, even when it would not take a touch there. It
|
|
67
|
+
* neither captures nor wants anything, so it never changes who takes a
|
|
68
|
+
* Gesture. Read as a touch lands.
|
|
69
|
+
*/
|
|
70
|
+
readonly guardsEdge?: 'left' | 'right';
|
|
71
|
+
};
|
|
72
|
+
export type GestureState = {
|
|
73
|
+
/**
|
|
74
|
+
* Every finger of the Gesture under way, by id, lifted ones included;
|
|
75
|
+
* empty between Gestures. It changes as a finger lands or lifts; each
|
|
76
|
+
* finger's own motion values follow it as it moves.
|
|
77
|
+
*/
|
|
78
|
+
readonly pointers: MotionValue<Pointers>;
|
|
79
|
+
/** True from the first finger landing until the last one lifts. */
|
|
80
|
+
readonly active: boolean;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Reads every Gesture its nearest Gesture Zone hears: each that starts in
|
|
84
|
+
* it, or in a zone inside it that is not trapped, until another zone takes
|
|
85
|
+
* it, unless it only watches. It reports each finger
|
|
86
|
+
* that lands between the first landing and the last lifting, with where,
|
|
87
|
+
* when and on what it landed and motion values that follow it. It never
|
|
88
|
+
* classifies anything; what a Gesture means is up to the caller.
|
|
89
|
+
*/
|
|
90
|
+
export declare function useGesture(options?: GestureOptions): GestureState;
|
|
91
|
+
//#endregion
|
|
92
|
+
export type { Direction, Directions, GestureEnd, Pointer, Pointers };
|
|
93
|
+
//# sourceMappingURL=zone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zone.d.ts","names":["GestureEnd","Directions","Direction"],"sources":["../../../../../src/input/gesture/zones/zone/zone.tsx"],"mappings":";;;;;;;;;;;;wBAkEgB,gBAAgB;WAAkB,WAAW;yDAAW,IAAA,UAAA,SAAA,aAAA,6CAAA,SAAA,6BAAA,+CAAA,8CAAA;YAgC5D,mBAAmB;;;;;;WAMpB;;;;;;;;;;wBAmBK,cACd,KACA,OACA,UACA,YACG,SACF,mCAAgB,IAAA;YA6DP;;WAED;;WAEA,WAAW,UAAU;;WAErB,aAAa,SAAS,SAAS,UAAU;;;;;WAKzC,SAAS,UAAU,UAAU,KAAKA;;;;;;;;WAQlC,aAAaC;;WAEb,eAAe,WAAWC;;;;;;WAM1B,YAAY;aACV;aACA;;;;;;;;WAQF;;YAGC;;;;;;WAMD,UAAU,YAAY;;WAEtB;;;;;;;;;;wBAWK,WAAW,UAAS,iBAAsB"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { DOM_ZONES, createTouchInput } from "../touch-input/touch-input.js";
|
|
2
|
+
import { createMotionPointers } from "./motion-pointers.js";
|
|
3
|
+
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useRef, useState } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { useMotionValue } from "motion/react";
|
|
6
|
+
import { createGestureProvider } from "@kestack/use-gesture";
|
|
7
|
+
//#region src/input/gesture/zones/zone/zone.tsx
|
|
8
|
+
const ProviderContext = createContext(void 0);
|
|
9
|
+
const ZoneContext = createContext(void 0);
|
|
10
|
+
const assignRef = (ref, value) => {
|
|
11
|
+
if (typeof ref === "function") ref(value);
|
|
12
|
+
else if (ref !== null && ref !== void 0) ref.current = value;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Tracks every Gesture in the Gesture Zones inside it: the one place its
|
|
16
|
+
* fingers are followed. Put one at the app's root; separate sections may
|
|
17
|
+
* each have their own, and each then runs its own Gesture. One inside
|
|
18
|
+
* another does nothing: its zones join the outer one, so nested screens
|
|
19
|
+
* share one Gesture.
|
|
20
|
+
*/
|
|
21
|
+
function GestureProvider(props) {
|
|
22
|
+
return useContext(ProviderContext) === void 0 ? /* @__PURE__ */ jsx(Provider, { children: props.children }) : props.children;
|
|
23
|
+
}
|
|
24
|
+
function Provider(props) {
|
|
25
|
+
const [provided] = useState(() => {
|
|
26
|
+
const tracker = createGestureProvider(DOM_ZONES);
|
|
27
|
+
const input = typeof window === "undefined" ? void 0 : createTouchInput(window, tracker.sink);
|
|
28
|
+
return {
|
|
29
|
+
tracker,
|
|
30
|
+
motion: createMotionPointers(),
|
|
31
|
+
input,
|
|
32
|
+
bindZone: (element) => input?.bindZone(element) ?? (() => {})
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
provided.input?.start();
|
|
37
|
+
return () => provided.input?.stop();
|
|
38
|
+
}, [provided]);
|
|
39
|
+
return /* @__PURE__ */ jsx(ProviderContext, {
|
|
40
|
+
value: provided,
|
|
41
|
+
children: props.children
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
const ZONE_STYLE = {
|
|
45
|
+
userSelect: "none",
|
|
46
|
+
WebkitUserSelect: "none",
|
|
47
|
+
WebkitTouchCallout: "none"
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* An area where the app can own touch, read with `useGesture` by any
|
|
51
|
+
* component inside it, shown or hidden. A Gesture starting in it is heard
|
|
52
|
+
* here and by each zone around it up to the first trapped one; sibling
|
|
53
|
+
* zones never hear each other. At the first movement one of them takes it,
|
|
54
|
+
* if a listener wants it; otherwise the browser scrolls. Zones nest, and
|
|
55
|
+
* must be inside a GestureProvider.
|
|
56
|
+
*/
|
|
57
|
+
function GestureZone({ ref, style, children, trapped = false, ...props }) {
|
|
58
|
+
const provided = useContext(ProviderContext);
|
|
59
|
+
if (provided === void 0) throw new Error("GestureZone must be used inside a GestureProvider");
|
|
60
|
+
const { tracker, motion, bindZone } = provided;
|
|
61
|
+
const [element, setElement] = useState(null);
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
if (element === null) return;
|
|
64
|
+
const removeZone = tracker.addZone(element);
|
|
65
|
+
const unbind = bindZone(element);
|
|
66
|
+
return () => {
|
|
67
|
+
unbind();
|
|
68
|
+
removeZone();
|
|
69
|
+
};
|
|
70
|
+
}, [
|
|
71
|
+
tracker,
|
|
72
|
+
bindZone,
|
|
73
|
+
element
|
|
74
|
+
]);
|
|
75
|
+
const attach = useCallback((next) => {
|
|
76
|
+
setElement(next);
|
|
77
|
+
assignRef(ref, next);
|
|
78
|
+
}, [ref]);
|
|
79
|
+
return /* @__PURE__ */ jsx(ZoneContext, {
|
|
80
|
+
value: {
|
|
81
|
+
tracker,
|
|
82
|
+
motion,
|
|
83
|
+
element
|
|
84
|
+
},
|
|
85
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
86
|
+
ref: attach,
|
|
87
|
+
"data-slot": "gesture-zone",
|
|
88
|
+
"data-trapped": trapped ? "" : void 0,
|
|
89
|
+
style: {
|
|
90
|
+
...ZONE_STYLE,
|
|
91
|
+
...style
|
|
92
|
+
},
|
|
93
|
+
...props,
|
|
94
|
+
children
|
|
95
|
+
})
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
const useZone = (user) => {
|
|
99
|
+
const zone = useContext(ZoneContext);
|
|
100
|
+
if (zone === void 0) throw new Error(`${user} must be used inside a GestureZone`);
|
|
101
|
+
return zone;
|
|
102
|
+
};
|
|
103
|
+
const useLatest = (value) => {
|
|
104
|
+
const ref = useRef(value);
|
|
105
|
+
useLayoutEffect(() => {
|
|
106
|
+
ref.current = value;
|
|
107
|
+
});
|
|
108
|
+
return ref;
|
|
109
|
+
};
|
|
110
|
+
const NONE = /* @__PURE__ */ new Map();
|
|
111
|
+
/**
|
|
112
|
+
* Reads every Gesture its nearest Gesture Zone hears: each that starts in
|
|
113
|
+
* it, or in a zone inside it that is not trapped, until another zone takes
|
|
114
|
+
* it, unless it only watches. It reports each finger
|
|
115
|
+
* that lands between the first landing and the last lifting, with where,
|
|
116
|
+
* when and on what it landed and motion values that follow it. It never
|
|
117
|
+
* classifies anything; what a Gesture means is up to the caller.
|
|
118
|
+
*/
|
|
119
|
+
function useGesture(options = {}) {
|
|
120
|
+
const { tracker, motion, element } = useZone("useGesture");
|
|
121
|
+
const latest = useLatest(options);
|
|
122
|
+
const pointers = useMotionValue(NONE);
|
|
123
|
+
const [active, setActive] = useState(false);
|
|
124
|
+
useEffect(() => {
|
|
125
|
+
if (element === null) return;
|
|
126
|
+
return tracker.addGesture(element, {
|
|
127
|
+
enabled: () => latest.current.enabled !== false,
|
|
128
|
+
start: (core) => {
|
|
129
|
+
const next = motion(core);
|
|
130
|
+
pointers.set(next);
|
|
131
|
+
setActive(true);
|
|
132
|
+
latest.current.onStart?.(next);
|
|
133
|
+
},
|
|
134
|
+
pointer: (pointer, core) => {
|
|
135
|
+
const next = motion(core);
|
|
136
|
+
const own = next.get(pointer.id);
|
|
137
|
+
pointers.set(next);
|
|
138
|
+
if (own !== void 0) latest.current.onPointer?.(own, next);
|
|
139
|
+
},
|
|
140
|
+
move: (_pointer, core) => {
|
|
141
|
+
motion(core);
|
|
142
|
+
},
|
|
143
|
+
captures: (point) => latest.current.captures?.(point) === true,
|
|
144
|
+
directions: () => latest.current.directions,
|
|
145
|
+
guardsEdge: () => latest.current.guardsEdge,
|
|
146
|
+
acts: () => latest.current.captures !== void 0 || latest.current.directions !== void 0,
|
|
147
|
+
direction: (direction) => latest.current.onDirection?.(direction),
|
|
148
|
+
end: (last, end) => {
|
|
149
|
+
latest.current.onEnd?.(motion(last), end);
|
|
150
|
+
pointers.set(NONE);
|
|
151
|
+
setActive(false);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}, [
|
|
155
|
+
tracker,
|
|
156
|
+
motion,
|
|
157
|
+
element,
|
|
158
|
+
latest,
|
|
159
|
+
pointers
|
|
160
|
+
]);
|
|
161
|
+
return {
|
|
162
|
+
pointers,
|
|
163
|
+
active
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
export { GestureProvider, GestureZone, useGesture };
|
|
168
|
+
|
|
169
|
+
//# sourceMappingURL=zone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zone.js","names":[],"sources":["../../../../../src/input/gesture/zones/zone/zone.tsx"],"sourcesContent":["import { type MotionValue, useMotionValue } from 'motion/react';\nimport {\n type ComponentProps,\n type CSSProperties,\n createContext,\n type ReactNode,\n type Ref,\n useCallback,\n useContext,\n useEffect,\n useLayoutEffect,\n useRef,\n useState,\n} from 'react';\nimport {\n createGestureProvider,\n type Direction,\n type Directions,\n type GestureEnd,\n type GestureProvider as CoreProvider,\n} from '@kestack/use-gesture';\nimport {\n createTouchInput,\n DOM_ZONES,\n type Target,\n} from '../touch-input/index.ts';\nimport {\n createMotionPointers,\n type Pointer,\n type Pointers,\n} from './motion-pointers.ts';\n\nexport type { Direction, Directions, GestureEnd } from '@kestack/use-gesture';\nexport type { Pointer, Pointers } from './motion-pointers.ts';\n\ntype Tracker = CoreProvider<Element, Target>;\n\ntype Provided = {\n readonly tracker: Tracker;\n /** The core's Pointers as this provider's motion values. */\n readonly motion: ReturnType<typeof createMotionPointers>;\n readonly bindZone: (element: Element) => () => void;\n};\n\nconst ProviderContext = createContext<Provided | undefined>(undefined);\n\ntype Zone = {\n readonly tracker: Tracker;\n readonly motion: Provided['motion'];\n readonly element: Element | null;\n};\n\nconst ZoneContext = createContext<Zone | undefined>(undefined);\n\nconst assignRef = <T,>(ref: Ref<T> | undefined, value: T | null) => {\n if (typeof ref === 'function') ref(value);\n else if (ref !== null && ref !== undefined) ref.current = value;\n};\n\n/**\n * Tracks every Gesture in the Gesture Zones inside it: the one place its\n * fingers are followed. Put one at the app's root; separate sections may\n * each have their own, and each then runs its own Gesture. One inside\n * another does nothing: its zones join the outer one, so nested screens\n * share one Gesture.\n */\nexport function GestureProvider(props: { readonly children?: ReactNode }) {\n const outer = useContext(ProviderContext);\n return outer === undefined ? (\n <Provider>{props.children}</Provider>\n ) : (\n props.children\n );\n}\n\nfunction Provider(props: { readonly children?: ReactNode }) {\n const [provided] = useState(() => {\n const tracker = createGestureProvider(DOM_ZONES);\n const input =\n typeof window === 'undefined'\n ? undefined\n : createTouchInput(window, tracker.sink);\n return {\n tracker,\n motion: createMotionPointers(),\n input,\n bindZone: (element: Element) => input?.bindZone(element) ?? (() => {}),\n };\n });\n\n useEffect(() => {\n provided.input?.start();\n return () => provided.input?.stop();\n }, [provided]);\n\n return <ProviderContext value={provided}>{props.children}</ProviderContext>;\n}\n\nexport type GestureZoneProps = ComponentProps<'div'> & {\n /**\n * Whether Gestures that start in it stay in it, rather than also reaching\n * the zones around it. It never keeps a touch from the browser. False by\n * default. Read as a Gesture starts.\n */\n readonly trapped?: boolean;\n};\n\n// Touch defaults for the zone's own element, as inline style so they need no\n// stylesheet; `style` on the zone overrides any of them.\nconst ZONE_STYLE: CSSProperties = {\n userSelect: 'none',\n WebkitUserSelect: 'none',\n WebkitTouchCallout: 'none',\n};\n\n/**\n * An area where the app can own touch, read with `useGesture` by any\n * component inside it, shown or hidden. A Gesture starting in it is heard\n * here and by each zone around it up to the first trapped one; sibling\n * zones never hear each other. At the first movement one of them takes it,\n * if a listener wants it; otherwise the browser scrolls. Zones nest, and\n * must be inside a GestureProvider.\n */\nexport function GestureZone({\n ref,\n style,\n children,\n trapped = false,\n ...props\n}: GestureZoneProps) {\n const provided = useContext(ProviderContext);\n if (provided === undefined) {\n throw new Error('GestureZone must be used inside a GestureProvider');\n }\n const { tracker, motion, bindZone } = provided;\n const [element, setElement] = useState<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (element === null) return;\n const removeZone = tracker.addZone(element);\n const unbind = bindZone(element);\n return () => {\n unbind();\n removeZone();\n };\n }, [tracker, bindZone, element]);\n\n const attach = useCallback(\n (next: HTMLDivElement | null) => {\n setElement(next);\n assignRef(ref, next);\n },\n [ref],\n );\n\n return (\n <ZoneContext value={{ tracker, motion, element }}>\n <div\n ref={attach}\n data-slot=\"gesture-zone\"\n data-trapped={trapped ? '' : undefined}\n style={{ ...ZONE_STYLE, ...style }}\n {...props}\n >\n {children}\n </div>\n </ZoneContext>\n );\n}\n\n// The nearest Gesture Zone; hooks throw a clear error outside one.\nconst useZone = (user: string): Zone => {\n const zone = useContext(ZoneContext);\n if (zone === undefined) {\n throw new Error(`${user} must be used inside a GestureZone`);\n }\n return zone;\n};\n\n// The latest options, read by the zone mid-Gesture without re-registering.\nconst useLatest = <T,>(value: T) => {\n const ref = useRef(value);\n useLayoutEffect(() => {\n ref.current = value;\n });\n return ref;\n};\n\nconst NONE: Pointers = new Map();\n\nexport type GestureOptions = {\n /** Whether it takes the next Gesture: true by default. Read as its first finger lands. */\n readonly enabled?: boolean;\n /** The first finger landed. */\n readonly onStart?: (pointers: Pointers) => void;\n /** A finger landed or lifted; `pointer` is that finger. */\n readonly onPointer?: (pointer: Pointer, pointers: Pointers) => void;\n /**\n * The last finger lifted: every finger of the Gesture, lifted ones\n * included. Also when the browser or another zone took it, `interrupted`.\n */\n readonly onEnd?: (pointers: Pointers, end: GestureEnd) => void;\n /**\n * The Directions it takes touches in: `['left', 'right']`, or `'all'`. An\n * element under the finger that can still scroll that way keeps it\n * instead. Read at the touch's first movement. Without `directions` or\n * `captures` it only watches, and never keeps a touch from the browser,\n * apart from the edge it `guardsEdge`.\n */\n readonly directions?: Directions;\n /** The Gesture first moved in `direction`: read once, for every listener. */\n readonly onDirection?: (direction: Direction) => void;\n /**\n * Whether it captures a touch whose first finger landed at `point`, in\n * viewport px, whichever way it moves, even over an element that could\n * scroll it. Read at the touch's first movement; taps are never affected.\n */\n readonly captures?: (point: {\n readonly x: number;\n readonly y: number;\n }) => boolean;\n /**\n * A side edge it keeps from the browser's edge swipe (back and forward on\n * iOS) while it is enabled, even when it would not take a touch there. It\n * neither captures nor wants anything, so it never changes who takes a\n * Gesture. Read as a touch lands.\n */\n readonly guardsEdge?: 'left' | 'right';\n};\n\nexport type GestureState = {\n /**\n * Every finger of the Gesture under way, by id, lifted ones included;\n * empty between Gestures. It changes as a finger lands or lifts; each\n * finger's own motion values follow it as it moves.\n */\n readonly pointers: MotionValue<Pointers>;\n /** True from the first finger landing until the last one lifts. */\n readonly active: boolean;\n};\n\n/**\n * Reads every Gesture its nearest Gesture Zone hears: each that starts in\n * it, or in a zone inside it that is not trapped, until another zone takes\n * it, unless it only watches. It reports each finger\n * that lands between the first landing and the last lifting, with where,\n * when and on what it landed and motion values that follow it. It never\n * classifies anything; what a Gesture means is up to the caller.\n */\nexport function useGesture(options: GestureOptions = {}): GestureState {\n const { tracker, motion, element } = useZone('useGesture');\n const latest = useLatest(options);\n const pointers = useMotionValue(NONE);\n const [active, setActive] = useState(false);\n\n useEffect(() => {\n if (element === null) return;\n return tracker.addGesture(element, {\n enabled: () => latest.current.enabled !== false,\n start: (core) => {\n const next = motion(core);\n pointers.set(next);\n setActive(true);\n latest.current.onStart?.(next);\n },\n pointer: (pointer, core) => {\n const next = motion(core);\n const own = next.get(pointer.id);\n pointers.set(next);\n if (own !== undefined) latest.current.onPointer?.(own, next);\n },\n move: (_pointer, core) => {\n motion(core);\n },\n captures: (point) => latest.current.captures?.(point) === true,\n directions: () => latest.current.directions,\n guardsEdge: () => latest.current.guardsEdge,\n acts: () =>\n latest.current.captures !== undefined ||\n latest.current.directions !== undefined,\n direction: (direction) => latest.current.onDirection?.(direction),\n end: (last, end) => {\n latest.current.onEnd?.(motion(last), end);\n pointers.set(NONE);\n setActive(false);\n },\n });\n }, [tracker, motion, element, latest, pointers]);\n\n return { pointers, active };\n}\n"],"mappings":";;;;;;;AA4CA,MAAM,kBAAkB,cAAoC,KAAA,CAAS;AAQrE,MAAM,cAAc,cAAgC,KAAA,CAAS;AAE7D,MAAM,aAAiB,KAAyB,UAAoB;CAClE,IAAI,OAAO,QAAQ,YAAY,IAAI,KAAK;MACnC,IAAI,QAAQ,QAAQ,QAAQ,KAAA,GAAW,IAAI,UAAU;AAC5D;;;;;;;;AASA,SAAgB,gBAAgB,OAA0C;CAExE,OADc,WAAW,eACd,MAAM,KAAA,IACf,oBAAC,UAAD,EAAA,UAAW,MAAM,SAAmB,CAAA,IAEpC,MAAM;AAEV;AAEA,SAAS,SAAS,OAA0C;CAC1D,MAAM,CAAC,YAAY,eAAe;EAChC,MAAM,UAAU,sBAAsB,SAAS;EAC/C,MAAM,QACJ,OAAO,WAAW,cACd,KAAA,IACA,iBAAiB,QAAQ,QAAQ,IAAI;EAC3C,OAAO;GACL;GACA,QAAQ,qBAAqB;GAC7B;GACA,WAAW,YAAqB,OAAO,SAAS,OAAO,YAAY,CAAC;EACtE;CACF,CAAC;CAED,gBAAgB;EACd,SAAS,OAAO,MAAM;EACtB,aAAa,SAAS,OAAO,KAAK;CACpC,GAAG,CAAC,QAAQ,CAAC;CAEb,OAAO,oBAAC,iBAAD;EAAiB,OAAO;EAAW,UAAA,MAAM;CAA0B,CAAA;AAC5E;AAaA,MAAM,aAA4B;CAChC,YAAY;CACZ,kBAAkB;CAClB,oBAAoB;AACtB;;;;;;;;;AAUA,SAAgB,YAAY,EAC1B,KACA,OACA,UACA,UAAU,OACV,GAAG,SACgB;CACnB,MAAM,WAAW,WAAW,eAAe;CAC3C,IAAI,aAAa,KAAA,GACf,MAAM,IAAI,MAAM,mDAAmD;CAErE,MAAM,EAAE,SAAS,QAAQ,aAAa;CACtC,MAAM,CAAC,SAAS,cAAc,SAAgC,IAAI;CAElE,gBAAgB;EACd,IAAI,YAAY,MAAM;EACtB,MAAM,aAAa,QAAQ,QAAQ,OAAO;EAC1C,MAAM,SAAS,SAAS,OAAO;EAC/B,aAAa;GACX,OAAO;GACP,WAAW;EACb;CACF,GAAG;EAAC;EAAS;EAAU;CAAO,CAAC;CAE/B,MAAM,SAAS,aACZ,SAAgC;EAC/B,WAAW,IAAI;EACf,UAAU,KAAK,IAAI;CACrB,GACA,CAAC,GAAG,CACN;CAEA,OACE,oBAAC,aAAD;EAAa,OAAO;GAAE;GAAS;GAAQ;EAAQ;EAC7C,UAAA,oBAAC,OAAD;GACE,KAAK;GACL,aAAU;GACV,gBAAc,UAAU,KAAK,KAAA;GAC7B,OAAO;IAAE,GAAG;IAAY,GAAG;GAAM;GACjC,GAAI;GAEH;EACE,CAAA;CACM,CAAA;AAEjB;AAGA,MAAM,WAAW,SAAuB;CACtC,MAAM,OAAO,WAAW,WAAW;CACnC,IAAI,SAAS,KAAA,GACX,MAAM,IAAI,MAAM,GAAG,KAAK,mCAAmC;CAE7D,OAAO;AACT;AAGA,MAAM,aAAiB,UAAa;CAClC,MAAM,MAAM,OAAO,KAAK;CACxB,sBAAsB;EACpB,IAAI,UAAU;CAChB,CAAC;CACD,OAAO;AACT;AAEA,MAAM,uBAAiB,IAAI,IAAI;;;;;;;;;AA6D/B,SAAgB,WAAW,UAA0B,CAAC,GAAiB;CACrE,MAAM,EAAE,SAAS,QAAQ,YAAY,QAAQ,YAAY;CACzD,MAAM,SAAS,UAAU,OAAO;CAChC,MAAM,WAAW,eAAe,IAAI;CACpC,MAAM,CAAC,QAAQ,aAAa,SAAS,KAAK;CAE1C,gBAAgB;EACd,IAAI,YAAY,MAAM;EACtB,OAAO,QAAQ,WAAW,SAAS;GACjC,eAAe,OAAO,QAAQ,YAAY;GAC1C,QAAQ,SAAS;IACf,MAAM,OAAO,OAAO,IAAI;IACxB,SAAS,IAAI,IAAI;IACjB,UAAU,IAAI;IACd,OAAO,QAAQ,UAAU,IAAI;GAC/B;GACA,UAAU,SAAS,SAAS;IAC1B,MAAM,OAAO,OAAO,IAAI;IACxB,MAAM,MAAM,KAAK,IAAI,QAAQ,EAAE;IAC/B,SAAS,IAAI,IAAI;IACjB,IAAI,QAAQ,KAAA,GAAW,OAAO,QAAQ,YAAY,KAAK,IAAI;GAC7D;GACA,OAAO,UAAU,SAAS;IACxB,OAAO,IAAI;GACb;GACA,WAAW,UAAU,OAAO,QAAQ,WAAW,KAAK,MAAM;GAC1D,kBAAkB,OAAO,QAAQ;GACjC,kBAAkB,OAAO,QAAQ;GACjC,YACE,OAAO,QAAQ,aAAa,KAAA,KAC5B,OAAO,QAAQ,eAAe,KAAA;GAChC,YAAY,cAAc,OAAO,QAAQ,cAAc,SAAS;GAChE,MAAM,MAAM,QAAQ;IAClB,OAAO,QAAQ,QAAQ,OAAO,IAAI,GAAG,GAAG;IACxC,SAAS,IAAI,IAAI;IACjB,UAAU,KAAK;GACjB;EACF,CAAC;CACH,GAAG;EAAC;EAAS;EAAQ;EAAS;EAAQ;CAAQ,CAAC;CAE/C,OAAO;EAAE;EAAU;CAAO;AAC5B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DEVICE_SCRIPT, Device, useDevice } from "./device/device.js";
|
|
2
|
+
import { Pointer, Pointers } from "./gesture/zones/zone/motion-pointers.js";
|
|
3
|
+
import { Directions, GestureEnd, GestureOptions, GestureProvider, GestureState, GestureZone, GestureZoneProps, useGesture } from "./gesture/zones/zone/zone.js";
|
|
4
|
+
import { CommitRule, Direction, Edge, Fingers, Swipe, SwipeCancel, SwipeOptions, SwipeRelease, SwipeState, useSwipe } from "./gesture/recognizers/swipe/use-swipe.js";
|
|
5
|
+
import { PullState, usePullToRefresh } from "./gesture/patterns/pull-to-refresh/use-pull-to-refresh.js";
|
|
6
|
+
import { useSidebar } from "./gesture/patterns/sidebar/use-sidebar.js";
|
|
7
|
+
import "./gesture/index.js";
|
|
8
|
+
export { type CommitRule, DEVICE_SCRIPT, type Device, type Direction, type Directions, type Edge, type Fingers, type GestureEnd, type GestureOptions, GestureProvider, type GestureState, GestureZone, type GestureZoneProps, type Pointer, type Pointers, type PullState, type Swipe, type SwipeCancel, type SwipeOptions, type SwipeRelease, type SwipeState, useDevice, useGesture, usePullToRefresh, useSidebar, useSwipe };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DEVICE_SCRIPT, useDevice } from "./device/device.js";
|
|
2
|
+
import { GestureProvider, GestureZone, useGesture } from "./gesture/zones/zone/zone.js";
|
|
3
|
+
import { useSwipe } from "./gesture/recognizers/swipe/use-swipe.js";
|
|
4
|
+
import { usePullToRefresh } from "./gesture/patterns/pull-to-refresh/use-pull-to-refresh.js";
|
|
5
|
+
import { useSidebar } from "./gesture/patterns/sidebar/use-sidebar.js";
|
|
6
|
+
export { DEVICE_SCRIPT, GestureProvider, GestureZone, useDevice, useGesture, usePullToRefresh, useSidebar, useSwipe };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
import * as Scope from "effect/Scope";
|
|
3
|
+
//#region src/pwa/browser/dom-events.d.ts
|
|
4
|
+
/** Adds `listener` for the life of the current scope. */
|
|
5
|
+
export declare const listen: (target: EventTarget, type: string, listener: (event: Event) => void) => Effect.Effect<void, never, Scope.Scope>;
|
|
6
|
+
/** False during SSR and in workers. */
|
|
7
|
+
export declare const isBrowser: () => boolean;
|
|
8
|
+
//#endregion
|
|
9
|
+
//# sourceMappingURL=dom-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-events.d.ts","names":[],"sources":["../../../src/pwa/browser/dom-events.ts"],"mappings":";;;;qBAIa,SAAM,QACT,aAAW,cACP,WACD,OAAO,mBACjB,OAAO,oBAAoB,MAAM;;qBAOvB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as Effect from "effect/Effect";
|
|
2
|
+
//#region src/pwa/browser/dom-events.ts
|
|
3
|
+
/** Adds `listener` for the life of the current scope. */
|
|
4
|
+
const listen = (target, type, listener) => Effect.acquireRelease(Effect.sync(() => target.addEventListener(type, listener)), () => Effect.sync(() => target.removeEventListener(type, listener)));
|
|
5
|
+
/** False during SSR and in workers. */
|
|
6
|
+
const isBrowser = () => typeof window !== "undefined" && typeof document !== "undefined";
|
|
7
|
+
//#endregion
|
|
8
|
+
export { isBrowser, listen };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=dom-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dom-events.js","names":[],"sources":["../../../src/pwa/browser/dom-events.ts"],"sourcesContent":["import * as Effect from 'effect/Effect';\nimport type * as Scope from 'effect/Scope';\n\n/** Adds `listener` for the life of the current scope. */\nexport const listen = (\n target: EventTarget,\n type: string,\n listener: (event: Event) => void,\n): Effect.Effect<void, never, Scope.Scope> =>\n Effect.acquireRelease(\n Effect.sync(() => target.addEventListener(type, listener)),\n () => Effect.sync(() => target.removeEventListener(type, listener)),\n );\n\n/** False during SSR and in workers. */\nexport const isBrowser = (): boolean =>\n typeof window !== 'undefined' && typeof document !== 'undefined';\n"],"mappings":";;;AAIA,MAAa,UACX,QACA,MACA,aAEA,OAAO,eACL,OAAO,WAAW,OAAO,iBAAiB,MAAM,QAAQ,CAAC,SACnD,OAAO,WAAW,OAAO,oBAAoB,MAAM,QAAQ,CAAC,CACpE;;AAGF,MAAa,kBACX,OAAO,WAAW,eAAe,OAAO,aAAa"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as SubscriptionRef from "effect/SubscriptionRef";
|
|
2
|
+
//#region src/pwa/browser/subscription-ref.d.ts
|
|
3
|
+
/** The ref's current value, re-rendering on change; `fallback` during SSR, hydration and before the ref exists. */
|
|
4
|
+
export declare const useSubscriptionRef: <A>(ref: SubscriptionRef.SubscriptionRef<A> | undefined, fallback: A) => A;
|
|
5
|
+
//#endregion
|
|
6
|
+
//# sourceMappingURL=subscription-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-ref.d.ts","names":[],"sources":["../../../src/pwa/browser/subscription-ref.ts"],"mappings":";;;qBAOa,qBAAsB,GAAC,KAC7B,gBAAgB,gBAAgB,gBAAc,UACzC,MACT"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useCallback, useSyncExternalStore } from "react";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Fiber from "effect/Fiber";
|
|
4
|
+
import * as Stream from "effect/Stream";
|
|
5
|
+
import * as SubscriptionRef from "effect/SubscriptionRef";
|
|
6
|
+
//#region src/pwa/browser/subscription-ref.ts
|
|
7
|
+
/** The ref's current value, re-rendering on change; `fallback` during SSR, hydration and before the ref exists. */
|
|
8
|
+
const useSubscriptionRef = (ref, fallback) => {
|
|
9
|
+
const subscribe = useCallback((onChange) => {
|
|
10
|
+
if (ref === void 0) return () => {};
|
|
11
|
+
const fiber = Effect.runFork(Stream.runForEach(SubscriptionRef.changes(ref), () => Effect.sync(onChange)));
|
|
12
|
+
return () => void Effect.runFork(Fiber.interrupt(fiber));
|
|
13
|
+
}, [ref]);
|
|
14
|
+
return useSyncExternalStore(subscribe, () => ref === void 0 ? fallback : SubscriptionRef.getUnsafe(ref), () => fallback);
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { useSubscriptionRef };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=subscription-ref.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subscription-ref.js","names":[],"sources":["../../../src/pwa/browser/subscription-ref.ts"],"sourcesContent":["import * as Effect from 'effect/Effect';\nimport * as Fiber from 'effect/Fiber';\nimport * as Stream from 'effect/Stream';\nimport * as SubscriptionRef from 'effect/SubscriptionRef';\nimport { useCallback, useSyncExternalStore } from 'react';\n\n/** The ref's current value, re-rendering on change; `fallback` during SSR, hydration and before the ref exists. */\nexport const useSubscriptionRef = <A>(\n ref: SubscriptionRef.SubscriptionRef<A> | undefined,\n fallback: A,\n): A => {\n const subscribe = useCallback(\n (onChange: () => void) => {\n if (ref === undefined) return () => {};\n const fiber = Effect.runFork(\n Stream.runForEach(SubscriptionRef.changes(ref), () =>\n Effect.sync(onChange),\n ),\n );\n return () => void Effect.runFork(Fiber.interrupt(fiber));\n },\n [ref],\n );\n return useSyncExternalStore(\n subscribe,\n () => (ref === undefined ? fallback : SubscriptionRef.getUnsafe(ref)),\n () => fallback,\n );\n};\n"],"mappings":";;;;;;;AAOA,MAAa,sBACX,KACA,aACM;CACN,MAAM,YAAY,aACf,aAAyB;EACxB,IAAI,QAAQ,KAAA,GAAW,aAAa,CAAC;EACrC,MAAM,QAAQ,OAAO,QACnB,OAAO,WAAW,gBAAgB,QAAQ,GAAG,SAC3C,OAAO,KAAK,QAAQ,CACtB,CACF;EACA,aAAa,KAAK,OAAO,QAAQ,MAAM,UAAU,KAAK,CAAC;CACzD,GACA,CAAC,GAAG,CACN;CACA,OAAO,qBACL,iBACO,QAAQ,KAAA,IAAY,WAAW,gBAAgB,UAAU,GAAG,SAC7D,QACR;AACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ClientBuildInfo } from "../shared/config/config.js";
|
|
2
|
+
import "../shared/config/index.js";
|
|
3
|
+
import { PwaStatus, StatusService } from "./status/status.js";
|
|
4
|
+
import "./status/index.js";
|
|
5
|
+
import * as Context from "effect/Context";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Layer from "effect/Layer";
|
|
8
|
+
//#region src/pwa/client/client.d.ts
|
|
9
|
+
declare const Pwa_base: Context.ServiceClass<Pwa, "@kestack/web-platform/pwa/Pwa", StatusService & {
|
|
10
|
+
/** Deletes every Runtime Cache (use on sign-out); the Precache stays. */
|
|
11
|
+
readonly clearRuntimeCache: Effect.Effect<void>;
|
|
12
|
+
}>;
|
|
13
|
+
/**
|
|
14
|
+
* The PWA as the page sees it: one `status` stream, and the two things the
|
|
15
|
+
* page can do about updates. Never reloads unasked; `applyUpdate` activates
|
|
16
|
+
* the waiting build and every open page reloads into it.
|
|
17
|
+
*/
|
|
18
|
+
export declare class Pwa extends Pwa_base {
|
|
19
|
+
/**
|
|
20
|
+
* Registers the worker and watches it. Browser only: build it after
|
|
21
|
+
* hydration, never during SSR (there it is `Unsupported`).
|
|
22
|
+
*/
|
|
23
|
+
static layer(info: ClientBuildInfo): Layer.Layer<Pwa>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Deletes every Runtime Cache straight from CacheStorage, which the page
|
|
27
|
+
* shares with the worker, so it needs no registration or `Pwa` service.
|
|
28
|
+
*/
|
|
29
|
+
export declare const clearRuntimeCache: Effect.Effect<void>;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { PwaStatus };
|
|
32
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/pwa/client/client.ts"],"mappings":";;;;;;;;;;WAmBgC,mBAAA,OAAO;;;;;;;qBAJ1B,YAAY;;;;;SAWhB,MAAM,MAAM,kBAAkB,MAAM,MAAM;;;;;;qBAgBtC,mBAAmB,OAAO"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { register } from "./registration.js";
|
|
2
|
+
import { clearRuntimeCaches } from "./runtime-cache.js";
|
|
3
|
+
import { PwaStatus, makeStatus } from "./status/status.js";
|
|
4
|
+
import * as Context from "effect/Context";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import * as Layer from "effect/Layer";
|
|
7
|
+
//#region src/pwa/client/client.ts
|
|
8
|
+
/**
|
|
9
|
+
* The PWA as the page sees it: one `status` stream, and the two things the
|
|
10
|
+
* page can do about updates. Never reloads unasked; `applyUpdate` activates
|
|
11
|
+
* the waiting build and every open page reloads into it.
|
|
12
|
+
*/
|
|
13
|
+
var Pwa = class extends Context.Service()("@kestack/web-platform/pwa/Pwa") {
|
|
14
|
+
/**
|
|
15
|
+
* Registers the worker and watches it. Browser only: build it after
|
|
16
|
+
* hydration, never during SSR (there it is `Unsupported`).
|
|
17
|
+
*/
|
|
18
|
+
static layer(info) {
|
|
19
|
+
return Layer.effect(this, Effect.gen(function* () {
|
|
20
|
+
const registration = yield* register(info);
|
|
21
|
+
return {
|
|
22
|
+
...yield* makeStatus(info.update, registration),
|
|
23
|
+
clearRuntimeCache: clearRuntimeCaches
|
|
24
|
+
};
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Deletes every Runtime Cache straight from CacheStorage, which the page
|
|
30
|
+
* shares with the worker, so it needs no registration or `Pwa` service.
|
|
31
|
+
*/
|
|
32
|
+
const clearRuntimeCache = clearRuntimeCaches;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { Pwa, PwaStatus, clearRuntimeCache };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":[],"sources":["../../../src/pwa/client/client.ts"],"sourcesContent":["import * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport type { ClientBuildInfo } from '../shared/config/index.js';\nimport { register } from './registration.js';\nimport { clearRuntimeCaches } from './runtime-cache.js';\nimport { makeStatus, type StatusService } from './status/index.js';\n\nexport { PwaStatus } from './status/index.js';\n\n/**\n * The PWA as the page sees it: one `status` stream, and the two things the\n * page can do about updates. Never reloads unasked; `applyUpdate` activates\n * the waiting build and every open page reloads into it.\n */\nexport class Pwa extends Context.Service<\n Pwa,\n StatusService & {\n /** Deletes every Runtime Cache (use on sign-out); the Precache stays. */\n readonly clearRuntimeCache: Effect.Effect<void>;\n }\n>()('@kestack/web-platform/pwa/Pwa') {\n /**\n * Registers the worker and watches it. Browser only: build it after\n * hydration, never during SSR (there it is `Unsupported`).\n */\n static layer(info: ClientBuildInfo): Layer.Layer<Pwa> {\n return Layer.effect(\n this,\n Effect.gen(function* () {\n const registration = yield* register(info);\n const status = yield* makeStatus(info.update, registration);\n return { ...status, clearRuntimeCache: clearRuntimeCaches };\n }),\n );\n }\n}\n\n/**\n * Deletes every Runtime Cache straight from CacheStorage, which the page\n * shares with the worker, so it needs no registration or `Pwa` service.\n */\nexport const clearRuntimeCache: Effect.Effect<void> = clearRuntimeCaches;\n"],"mappings":";;;;;;;;;;;;AAeA,IAAa,MAAb,cAAyB,QAAQ,QAM/B,CAAC,CAAC,+BAA+B,CAAC,CAAC;;;;;CAKnC,OAAO,MAAM,MAAyC;EACpD,OAAO,MAAM,OACX,MACA,OAAO,IAAI,aAAa;GACtB,MAAM,eAAe,OAAO,SAAS,IAAI;GAEzC,OAAO;IAAE,GAAG,OADU,WAAW,KAAK,QAAQ,YAAY;IACtC,mBAAmB;GAAmB;EAC5D,CAAC,CACH;CACF;AACF;;;;;AAMA,MAAa,oBAAyC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommandReply, CommandType } from "../../shared/commands/commands.js";
|
|
2
|
+
import "../../shared/commands/index.js";
|
|
3
|
+
import * as Effect from "effect/Effect";
|
|
4
|
+
import * as Option from "effect/Option";
|
|
5
|
+
//#region src/pwa/client/commands/commands.d.ts
|
|
6
|
+
/** Sends one command to `worker`; none on timeout or an unreadable reply. */
|
|
7
|
+
export declare const sendCommand: (worker: ServiceWorker, type: CommandType) => Effect.Effect<Option.Option<CommandReply>>;
|
|
8
|
+
//#endregion
|
|
9
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","names":[],"sources":["../../../../src/pwa/client/commands/commands.ts"],"mappings":";;;;;;qBAaa,cAAW,QACd,eAAa,MACf,gBACL,OAAO,OAAO,OAAO,OAAO"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { makeCommand, matchCommandReply } from "../../shared/commands/commands.js";
|
|
2
|
+
import * as Effect from "effect/Effect";
|
|
3
|
+
import * as Option from "effect/Option";
|
|
4
|
+
//#region src/pwa/client/commands/commands.ts
|
|
5
|
+
/** A worker that does not know `type` never replies, so every request times out. */
|
|
6
|
+
const REPLY_TIMEOUT = "3 seconds";
|
|
7
|
+
/** Sends one command to `worker`; none on timeout or an unreadable reply. */
|
|
8
|
+
const sendCommand = (worker, type) => Effect.callback((resume) => {
|
|
9
|
+
const channel = new MessageChannel();
|
|
10
|
+
channel.port1.onmessage = (event) => resume(Effect.succeed(matchCommandReply(event.data)));
|
|
11
|
+
try {
|
|
12
|
+
worker.postMessage(makeCommand(type), [channel.port2]);
|
|
13
|
+
} catch {
|
|
14
|
+
resume(Effect.succeed(Option.none()));
|
|
15
|
+
}
|
|
16
|
+
return Effect.sync(() => channel.port1.close());
|
|
17
|
+
}).pipe(Effect.timeoutOption(REPLY_TIMEOUT), Effect.map(Option.flatten));
|
|
18
|
+
//#endregion
|
|
19
|
+
export { sendCommand };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","names":[],"sources":["../../../../src/pwa/client/commands/commands.ts"],"sourcesContent":["import * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\nimport {\n type CommandReply,\n type CommandType,\n makeCommand,\n matchCommandReply,\n} from '../../shared/commands/index.js';\n\n/** A worker that does not know `type` never replies, so every request times out. */\nconst REPLY_TIMEOUT = '3 seconds';\n\n/** Sends one command to `worker`; none on timeout or an unreadable reply. */\nexport const sendCommand = (\n worker: ServiceWorker,\n type: CommandType,\n): Effect.Effect<Option.Option<CommandReply>> =>\n Effect.callback<Option.Option<CommandReply>>((resume) => {\n const channel = new MessageChannel();\n channel.port1.onmessage = (event: MessageEvent) =>\n resume(Effect.succeed(matchCommandReply(event.data)));\n try {\n worker.postMessage(makeCommand(type), [channel.port2]);\n } catch {\n resume(Effect.succeed(Option.none()));\n }\n return Effect.sync(() => channel.port1.close());\n }).pipe(Effect.timeoutOption(REPLY_TIMEOUT), Effect.map(Option.flatten));\n"],"mappings":";;;;;AAUA,MAAM,gBAAgB;;AAGtB,MAAa,eACX,QACA,SAEA,OAAO,UAAuC,WAAW;CACvD,MAAM,UAAU,IAAI,eAAe;CACnC,QAAQ,MAAM,aAAa,UACzB,OAAO,OAAO,QAAQ,kBAAkB,MAAM,IAAI,CAAC,CAAC;CACtD,IAAI;EACF,OAAO,YAAY,YAAY,IAAI,GAAG,CAAC,QAAQ,KAAK,CAAC;CACvD,QAAQ;EACN,OAAO,OAAO,QAAQ,OAAO,KAAK,CAAC,CAAC;CACtC;CACA,OAAO,OAAO,WAAW,QAAQ,MAAM,MAAM,CAAC;AAChD,CAAC,CAAC,CAAC,KAAK,OAAO,cAAc,aAAa,GAAG,OAAO,IAAI,OAAO,OAAO,CAAC"}
|