@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 @@
|
|
|
1
|
+
{"version":3,"file":"outline.js","names":[],"sources":["../../../../../src/recipes/kabuki-devtools/scene/layout/outline.ts"],"sourcesContent":["import { curve } from './shapes.ts';\nimport type { Box, Branch, Label, Laid, Line } from './shapes.ts';\n\n/*\n * An outline, top to bottom, like a tree of files: one box under another,\n * each child indented under its parent, the root's top-left at 0, 0.\n *\n * 1. Rows each box on its own row, in order.\n * 2. Groups children led to by the same thing sit under one label row,\n * indented once more; the rest straight under their parent.\n * 3. Lines down a spine from each box, then across to each child or label.\n */\n\nconst INDENT = 28;\nconst GAP = 10;\nconst LABEL = 20;\n/** Where on a box its line arrives: level with its name. */\nconst ARRIVE = 21;\n\nexport const outline = (root: Branch): Laid => {\n const boxes = new Map<string, Box>();\n const lines: Line[] = [];\n const labels: Label[] = [];\n let y = 0;\n\n const visit = (branch: Branch, x: number, depth: number, parent?: string) => {\n // 1. Rows\n boxes.set(branch.id, {\n x,\n y,\n width: branch.width,\n height: branch.height,\n depth,\n ...(parent ? { parent } : {}),\n });\n const spine = { x: x + 14, y: y + branch.height };\n y += branch.height + GAP;\n\n // 2. Groups\n let group:\n | { readonly via: string; readonly spine: { x: number; y: number } }\n | undefined;\n for (const { via, branch: child } of branch.children) {\n if (via && via !== group?.via) {\n const labelX = x + INDENT;\n labels.push({\n id: `${branch.id}:${via}`,\n owner: branch.id,\n text: via,\n x: labelX,\n y: y + LABEL / 2,\n align: 'start',\n });\n lines.push({\n id: `${branch.id}->${via}`,\n from: branch.id,\n to: branch.id,\n via,\n d: curve(spine, { x: labelX - 4, y: y + LABEL / 2 }, 'across'),\n });\n group = { via, spine: { x: labelX + 6, y: y + LABEL } };\n y += LABEL + GAP / 2;\n }\n if (!via) group = undefined;\n const from = group && via ? group.spine : spine;\n const childX = from.x + INDENT - 14;\n // 3. Lines\n lines.push({\n id: `${branch.id}->${child.id}`,\n from: branch.id,\n to: child.id,\n ...(via ? { via } : {}),\n d: curve(from, { x: childX, y: y + ARRIVE }, 'across'),\n });\n visit(child, childX, depth + 1, branch.id);\n }\n };\n visit(root, 0, 0);\n return { boxes, lines, labels };\n};\n"],"mappings":";;AAaA,MAAM,SAAS;AACf,MAAM,MAAM;AACZ,MAAM,QAAQ;;AAEd,MAAM,SAAS;AAEf,MAAa,WAAW,SAAuB;CAC7C,MAAM,wBAAQ,IAAI,IAAiB;CACnC,MAAM,QAAgB,CAAC;CACvB,MAAM,SAAkB,CAAC;CACzB,IAAI,IAAI;CAER,MAAM,SAAS,QAAgB,GAAW,OAAe,WAAoB;EAE3E,MAAM,IAAI,OAAO,IAAI;GACnB;GACA;GACA,OAAO,OAAO;GACd,QAAQ,OAAO;GACf;GACA,GAAI,SAAS,EAAE,OAAO,IAAI,CAAC;EAC7B,CAAC;EACD,MAAM,QAAQ;GAAE,GAAG,IAAI;GAAI,GAAG,IAAI,OAAO;EAAO;EAChD,KAAK,OAAO,SAAS;EAGrB,IAAI;EAGJ,KAAK,MAAM,EAAE,KAAK,QAAQ,WAAW,OAAO,UAAU;GACpD,IAAI,OAAO,QAAQ,OAAO,KAAK;IAC7B,MAAM,SAAS,IAAI;IACnB,OAAO,KAAK;KACV,IAAI,GAAG,OAAO,GAAG,GAAG;KACpB,OAAO,OAAO;KACd,MAAM;KACN,GAAG;KACH,GAAG,IAAI,QAAQ;KACf,OAAO;IACT,CAAC;IACD,MAAM,KAAK;KACT,IAAI,GAAG,OAAO,GAAG,IAAI;KACrB,MAAM,OAAO;KACb,IAAI,OAAO;KACX;KACA,GAAG,MAAM,OAAO;MAAE,GAAG,SAAS;MAAG,GAAG,IAAI,QAAQ;KAAE,GAAG,QAAQ;IAC/D,CAAC;IACD,QAAQ;KAAE;KAAK,OAAO;MAAE,GAAG,SAAS;MAAG,GAAG,IAAI;KAAM;IAAE;IACtD,KAAK;GACP;GACA,IAAI,CAAC,KAAK,QAAQ,KAAA;GAClB,MAAM,OAAO,SAAS,MAAM,MAAM,QAAQ;GAC1C,MAAM,SAAS,KAAK,IAAI,SAAS;GAEjC,MAAM,KAAK;IACT,IAAI,GAAG,OAAO,GAAG,IAAI,MAAM;IAC3B,MAAM,OAAO;IACb,IAAI,MAAM;IACV,GAAI,MAAM,EAAE,IAAI,IAAI,CAAC;IACrB,GAAG,MAAM,MAAM;KAAE,GAAG;KAAQ,GAAG,IAAI;IAAO,GAAG,QAAQ;GACvD,CAAC;GACD,MAAM,OAAO,QAAQ,QAAQ,GAAG,OAAO,EAAE;EAC3C;CACF;CACA,MAAM,MAAM,GAAG,CAAC;CAChB,OAAO;EAAE;EAAO;EAAO;CAAO;AAChC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/recipes/kabuki-devtools/scene/layout/shapes.d.ts
|
|
2
|
+
/** One box to lay out, and what hangs below it, each marked with what led there, if anything did. */
|
|
3
|
+
export interface Branch {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
readonly width: number;
|
|
6
|
+
readonly height: number;
|
|
7
|
+
readonly children: ReadonlyArray<{
|
|
8
|
+
readonly via?: string;
|
|
9
|
+
readonly branch: Branch;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
/** A box's place: its top-left corner. */
|
|
13
|
+
export interface Box {
|
|
14
|
+
readonly x: number;
|
|
15
|
+
readonly y: number;
|
|
16
|
+
readonly width: number;
|
|
17
|
+
readonly height: number;
|
|
18
|
+
readonly depth: number;
|
|
19
|
+
readonly parent?: string;
|
|
20
|
+
}
|
|
21
|
+
/** A line from one box to one below it, as SVG path data. */
|
|
22
|
+
export interface Line {
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly from: string;
|
|
25
|
+
readonly to: string;
|
|
26
|
+
readonly via?: string;
|
|
27
|
+
readonly d: string;
|
|
28
|
+
}
|
|
29
|
+
/** What led from a box to some below it, written on their lines. */
|
|
30
|
+
export interface Label {
|
|
31
|
+
readonly id: string;
|
|
32
|
+
readonly owner: string;
|
|
33
|
+
readonly text: string;
|
|
34
|
+
readonly x: number;
|
|
35
|
+
readonly y: number;
|
|
36
|
+
/** Centred on its point, or starting from it. */
|
|
37
|
+
readonly align: 'middle' | 'start';
|
|
38
|
+
}
|
|
39
|
+
export interface Laid {
|
|
40
|
+
readonly boxes: ReadonlyMap<string, Box>;
|
|
41
|
+
readonly lines: ReadonlyArray<Line>;
|
|
42
|
+
readonly labels: ReadonlyArray<Label>;
|
|
43
|
+
}
|
|
44
|
+
type Point = {
|
|
45
|
+
readonly x: number;
|
|
46
|
+
readonly y: number;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A smooth curve from one point to another, as one cubic Bézier: leaving
|
|
50
|
+
* straight down and arriving straight down, or down a spine then across.
|
|
51
|
+
* Every line is the same four points, so one can turn into another.
|
|
52
|
+
*/
|
|
53
|
+
export declare const curve: (from: Point, to: Point, first?: 'down' | 'across') => string;
|
|
54
|
+
/** The point a share `t` of the way along a curve, to write on it. */
|
|
55
|
+
export declare const along: (from: Point, to: Point, t: number, first?: 'down' | 'across') => Point;
|
|
56
|
+
//#endregion
|
|
57
|
+
//# sourceMappingURL=shapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.d.ts","names":[],"sources":["../../../../../src/recipes/kabuki-devtools/scene/layout/shapes.ts"],"mappings":";;iBAMiB;WACN;WACA;WACA;WACA,UAAU;aACR;aACA,QAAQ;;;;iBAKJ;WACN;WACA;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;;;iBAIM;WACN;WACA;WACA;WACA;WACA;;WAEA;;iBAGM;WACN,OAAO,oBAAoB;WAC3B,OAAO,cAAc;WACrB,QAAQ,cAAc;;KAG5B;WAAmB;WAAoB;;;;;;;qBAmB/B,QAAK,MACV,OAAK,IACP,OAAK;;qBAQE,QAAK,MACV,OAAK,IACP,OAAK,WACA,8BAER"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
//#region src/recipes/kabuki-devtools/scene/layout/shapes.ts
|
|
2
|
+
/** How far down a curve leaves and arrives straight: half the drop. */
|
|
3
|
+
const controls = (from, to, first) => first === "down" ? [{
|
|
4
|
+
x: from.x,
|
|
5
|
+
y: from.y + (to.y - from.y) / 2
|
|
6
|
+
}, {
|
|
7
|
+
x: to.x,
|
|
8
|
+
y: to.y - (to.y - from.y) / 2
|
|
9
|
+
}] : [{
|
|
10
|
+
x: from.x,
|
|
11
|
+
y: to.y
|
|
12
|
+
}, {
|
|
13
|
+
x: from.x + (to.x - from.x) / 3,
|
|
14
|
+
y: to.y
|
|
15
|
+
}];
|
|
16
|
+
/**
|
|
17
|
+
* A smooth curve from one point to another, as one cubic Bézier: leaving
|
|
18
|
+
* straight down and arriving straight down, or down a spine then across.
|
|
19
|
+
* Every line is the same four points, so one can turn into another.
|
|
20
|
+
*/
|
|
21
|
+
const curve = (from, to, first = "down") => {
|
|
22
|
+
const [a, b] = controls(from, to, first);
|
|
23
|
+
return `M ${from.x} ${from.y} C ${a.x} ${a.y} ${b.x} ${b.y} ${to.x} ${to.y}`;
|
|
24
|
+
};
|
|
25
|
+
/** The point a share `t` of the way along a curve, to write on it. */
|
|
26
|
+
const along = (from, to, t, first = "down") => {
|
|
27
|
+
const [a, b] = controls(from, to, first);
|
|
28
|
+
const u = 1 - t;
|
|
29
|
+
const at = (p, q, r, s) => u * u * u * p + 3 * u * u * t * q + 3 * u * t * t * r + t * t * t * s;
|
|
30
|
+
return {
|
|
31
|
+
x: at(from.x, a.x, b.x, to.x),
|
|
32
|
+
y: at(from.y, a.y, b.y, to.y)
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { along, curve };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=shapes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapes.js","names":[],"sources":["../../../../../src/recipes/kabuki-devtools/scene/layout/shapes.ts"],"sourcesContent":["/*\n * What both layouts take and give: boxes in, placed boxes, lines and their\n * labels out. Pure, and knows nothing of what the boxes stand for.\n */\n\n/** One box to lay out, and what hangs below it, each marked with what led there, if anything did. */\nexport interface Branch {\n readonly id: string;\n readonly width: number;\n readonly height: number;\n readonly children: ReadonlyArray<{\n readonly via?: string;\n readonly branch: Branch;\n }>;\n}\n\n/** A box's place: its top-left corner. */\nexport interface Box {\n readonly x: number;\n readonly y: number;\n readonly width: number;\n readonly height: number;\n readonly depth: number;\n readonly parent?: string;\n}\n\n/** A line from one box to one below it, as SVG path data. */\nexport interface Line {\n readonly id: string;\n readonly from: string;\n readonly to: string;\n readonly via?: string;\n readonly d: string;\n}\n\n/** What led from a box to some below it, written on their lines. */\nexport interface Label {\n readonly id: string;\n readonly owner: string;\n readonly text: string;\n readonly x: number;\n readonly y: number;\n /** Centred on its point, or starting from it. */\n readonly align: 'middle' | 'start';\n}\n\nexport interface Laid {\n readonly boxes: ReadonlyMap<string, Box>;\n readonly lines: ReadonlyArray<Line>;\n readonly labels: ReadonlyArray<Label>;\n}\n\ntype Point = { readonly x: number; readonly y: number };\n\n/** How far down a curve leaves and arrives straight: half the drop. */\nconst controls = (from: Point, to: Point, first: 'down' | 'across') =>\n first === 'down'\n ? ([\n { x: from.x, y: from.y + (to.y - from.y) / 2 },\n { x: to.x, y: to.y - (to.y - from.y) / 2 },\n ] as const)\n : ([\n { x: from.x, y: to.y },\n { x: from.x + (to.x - from.x) / 3, y: to.y },\n ] as const);\n\n/**\n * A smooth curve from one point to another, as one cubic Bézier: leaving\n * straight down and arriving straight down, or down a spine then across.\n * Every line is the same four points, so one can turn into another.\n */\nexport const curve = (\n from: Point,\n to: Point,\n first: 'down' | 'across' = 'down',\n) => {\n const [a, b] = controls(from, to, first);\n return `M ${from.x} ${from.y} C ${a.x} ${a.y} ${b.x} ${b.y} ${to.x} ${to.y}`;\n};\n\n/** The point a share `t` of the way along a curve, to write on it. */\nexport const along = (\n from: Point,\n to: Point,\n t: number,\n first: 'down' | 'across' = 'down',\n): Point => {\n const [a, b] = controls(from, to, first);\n const u = 1 - t;\n const at = (p: number, q: number, r: number, s: number) =>\n u * u * u * p + 3 * u * u * t * q + 3 * u * t * t * r + t * t * t * s;\n return { x: at(from.x, a.x, b.x, to.x), y: at(from.y, a.y, b.y, to.y) };\n};\n"],"mappings":";;AAuDA,MAAM,YAAY,MAAa,IAAW,UACxC,UAAU,SACL,CACC;CAAE,GAAG,KAAK;CAAG,GAAG,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK;AAAE,GAC7C;CAAE,GAAG,GAAG;CAAG,GAAG,GAAG,KAAK,GAAG,IAAI,KAAK,KAAK;AAAE,CAC3C,IACC,CACC;CAAE,GAAG,KAAK;CAAG,GAAG,GAAG;AAAE,GACrB;CAAE,GAAG,KAAK,KAAK,GAAG,IAAI,KAAK,KAAK;CAAG,GAAG,GAAG;AAAE,CAC7C;;;;;;AAON,MAAa,SACX,MACA,IACA,QAA2B,WACxB;CACH,MAAM,CAAC,GAAG,KAAK,SAAS,MAAM,IAAI,KAAK;CACvC,OAAO,KAAK,KAAK,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,GAAG;AAC3E;;AAGA,MAAa,SACX,MACA,IACA,GACA,QAA2B,WACjB;CACV,MAAM,CAAC,GAAG,KAAK,SAAS,MAAM,IAAI,KAAK;CACvC,MAAM,IAAI,IAAI;CACd,MAAM,MAAM,GAAW,GAAW,GAAW,MAC3C,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI;CACtE,OAAO;EAAE,GAAG,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;EAAG,GAAG,GAAG,KAAK,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;CAAE;AACxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.d.ts","names":[],"sources":["../../../../../src/recipes/kabuki-devtools/scene/layout/tree.ts"],"mappings":";;qBAuCa,aAAU,MAAU,WAAS"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { along, curve } from "./shapes.js";
|
|
2
|
+
//#region src/recipes/kabuki-devtools/scene/layout/tree.ts
|
|
3
|
+
const GAP = 36;
|
|
4
|
+
const DROP = 64;
|
|
5
|
+
/** More leaves than this stack in a column. */
|
|
6
|
+
const LEAVES = 4;
|
|
7
|
+
const STACK_GAP = 32;
|
|
8
|
+
const INDENT = 22;
|
|
9
|
+
/** Deep enough that a stack keeps its column clear all the way down. */
|
|
10
|
+
const DEEP = 64;
|
|
11
|
+
const isStack = (branch) => branch.children.length > LEAVES && branch.children.every(({ branch: child }) => child.children.length === 0);
|
|
12
|
+
const packedTree = (root) => {
|
|
13
|
+
const tallest = [];
|
|
14
|
+
const measure = (branch, depth, stacked) => {
|
|
15
|
+
if (!stacked) tallest[depth] = Math.max(tallest[depth] ?? 0, branch.height);
|
|
16
|
+
const stack = isStack(branch);
|
|
17
|
+
for (const { branch: child } of branch.children) measure(child, depth + 1, stack);
|
|
18
|
+
};
|
|
19
|
+
measure(root, 0, false);
|
|
20
|
+
const top = [0];
|
|
21
|
+
for (let depth = 1; depth <= tallest.length; depth++) top[depth] = top[depth - 1] + tallest[depth - 1] + DROP;
|
|
22
|
+
const shapes = /* @__PURE__ */ new Map();
|
|
23
|
+
const shape = (branch) => {
|
|
24
|
+
const half = branch.width / 2;
|
|
25
|
+
if (isStack(branch)) {
|
|
26
|
+
for (const { branch: child } of branch.children) shape(child);
|
|
27
|
+
const column = Math.max(...branch.children.map(({ branch: child }) => child.width));
|
|
28
|
+
const start = -half + INDENT;
|
|
29
|
+
const made = {
|
|
30
|
+
left: [-half, ...Array(DEEP).fill(start - INDENT)],
|
|
31
|
+
right: [half, ...Array(DEEP).fill(Math.max(half, start + column))],
|
|
32
|
+
offsets: branch.children.map(() => start),
|
|
33
|
+
stacked: true
|
|
34
|
+
};
|
|
35
|
+
shapes.set(branch.id, made);
|
|
36
|
+
return made;
|
|
37
|
+
}
|
|
38
|
+
const children = branch.children.map(({ branch: child }) => shape(child));
|
|
39
|
+
const offsets = [];
|
|
40
|
+
const left = [];
|
|
41
|
+
const right = [];
|
|
42
|
+
children.forEach((child, index) => {
|
|
43
|
+
let at = 0;
|
|
44
|
+
if (index > 0) {
|
|
45
|
+
for (let depth = 0; depth < child.left.length; depth++) if (right[depth] !== void 0) at = Math.max(at, right[depth] - child.left[depth] + GAP);
|
|
46
|
+
}
|
|
47
|
+
offsets.push(at);
|
|
48
|
+
child.left.forEach((edge, depth) => {
|
|
49
|
+
left[depth] = Math.min(left[depth] ?? Infinity, edge + at);
|
|
50
|
+
right[depth] = Math.max(right[depth] ?? -Infinity, child.right[depth] + at);
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
const centre = children.length ? (offsets[0] + offsets.at(-1)) / 2 : 0;
|
|
54
|
+
const made = {
|
|
55
|
+
left: [-half, ...left.map((edge) => edge - centre)],
|
|
56
|
+
right: [half, ...right.map((edge) => edge - centre)],
|
|
57
|
+
offsets: offsets.map((offset) => offset - centre),
|
|
58
|
+
stacked: false
|
|
59
|
+
};
|
|
60
|
+
shapes.set(branch.id, made);
|
|
61
|
+
return made;
|
|
62
|
+
};
|
|
63
|
+
shape(root);
|
|
64
|
+
const boxes = /* @__PURE__ */ new Map();
|
|
65
|
+
const lines = [];
|
|
66
|
+
const labels = [];
|
|
67
|
+
const place = (branch, centre, y, depth, parent) => {
|
|
68
|
+
const box = {
|
|
69
|
+
x: centre - branch.width / 2,
|
|
70
|
+
y,
|
|
71
|
+
width: branch.width,
|
|
72
|
+
height: branch.height,
|
|
73
|
+
depth,
|
|
74
|
+
...parent ? { parent } : {}
|
|
75
|
+
};
|
|
76
|
+
boxes.set(branch.id, box);
|
|
77
|
+
const { offsets, stacked } = shapes.get(branch.id);
|
|
78
|
+
const bottom = {
|
|
79
|
+
x: centre,
|
|
80
|
+
y: y + branch.height
|
|
81
|
+
};
|
|
82
|
+
let below = top[depth + 1] ?? y + branch.height + DROP;
|
|
83
|
+
branch.children.forEach(({ via, branch: child }, index) => {
|
|
84
|
+
if (stacked) {
|
|
85
|
+
const left = centre + offsets[index];
|
|
86
|
+
const spine = left - INDENT / 2;
|
|
87
|
+
place(child, left + child.width / 2, below, depth + 1, branch.id);
|
|
88
|
+
lines.push({
|
|
89
|
+
id: `${branch.id}->${child.id}`,
|
|
90
|
+
from: branch.id,
|
|
91
|
+
to: child.id,
|
|
92
|
+
...via ? { via } : {},
|
|
93
|
+
d: curve({
|
|
94
|
+
x: spine,
|
|
95
|
+
y: bottom.y
|
|
96
|
+
}, {
|
|
97
|
+
x: left,
|
|
98
|
+
y: below + 16
|
|
99
|
+
}, "across")
|
|
100
|
+
});
|
|
101
|
+
if (via) labels.push({
|
|
102
|
+
id: `${branch.id}->${child.id}:via`,
|
|
103
|
+
owner: branch.id,
|
|
104
|
+
text: via,
|
|
105
|
+
x: left,
|
|
106
|
+
y: below - 9,
|
|
107
|
+
align: "start"
|
|
108
|
+
});
|
|
109
|
+
below += child.height + STACK_GAP;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const at = centre + offsets[index];
|
|
113
|
+
place(child, at, below, depth + 1, branch.id);
|
|
114
|
+
lines.push({
|
|
115
|
+
id: `${branch.id}->${child.id}`,
|
|
116
|
+
from: branch.id,
|
|
117
|
+
to: child.id,
|
|
118
|
+
...via ? { via } : {},
|
|
119
|
+
d: curve(bottom, {
|
|
120
|
+
x: at,
|
|
121
|
+
y: below
|
|
122
|
+
})
|
|
123
|
+
});
|
|
124
|
+
if (via) labels.push({
|
|
125
|
+
id: `${branch.id}->${child.id}:via`,
|
|
126
|
+
owner: branch.id,
|
|
127
|
+
text: via,
|
|
128
|
+
...along(bottom, {
|
|
129
|
+
x: at,
|
|
130
|
+
y: below
|
|
131
|
+
}, .78),
|
|
132
|
+
align: "middle"
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
place(root, 0, 0, 0);
|
|
137
|
+
return {
|
|
138
|
+
boxes,
|
|
139
|
+
lines,
|
|
140
|
+
labels
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
//#endregion
|
|
144
|
+
export { packedTree };
|
|
145
|
+
|
|
146
|
+
//# sourceMappingURL=tree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.js","names":[],"sources":["../../../../../src/recipes/kabuki-devtools/scene/layout/tree.ts"],"sourcesContent":["import { along, curve } from './shapes.ts';\nimport type { Box, Branch, Label, Laid, Line } from './shapes.ts';\n\n/*\n * A packed tree, top-down: every row of boxes at one height, the root's top\n * centre at 0, 0.\n *\n * 1. Rows each depth as tall as its tallest box.\n * 2. Pack each subtree slides left until, at some depth, it would touch\n * the one before it: so a subtree tucks under its neighbour's\n * empty space, and a parent sits centred over its children.\n * 3. Stack more than a few boxes with nothing below them hang in one\n * column, down a spine, instead of one long row.\n * 4. Lines a smooth curve down from each box to each below it, the label of\n * what led there on the last stretch.\n */\n\nconst GAP = 36;\nconst DROP = 64;\n/** More leaves than this stack in a column. */\nconst LEAVES = 4;\nconst STACK_GAP = 32;\nconst INDENT = 22;\n/** Deep enough that a stack keeps its column clear all the way down. */\nconst DEEP = 64;\n\ninterface Shape {\n /** The left and right edge at each depth below and including this box, from its centre. */\n readonly left: number[];\n readonly right: number[];\n /** Each child's centre from this box's centre, or its left edge in a stack. */\n readonly offsets: number[];\n readonly stacked: boolean;\n}\n\nconst isStack = (branch: Branch) =>\n branch.children.length > LEAVES &&\n branch.children.every(({ branch: child }) => child.children.length === 0);\n\nexport const packedTree = (root: Branch): Laid => {\n // 1. Rows\n const tallest: number[] = [];\n const measure = (branch: Branch, depth: number, stacked: boolean) => {\n if (!stacked) tallest[depth] = Math.max(tallest[depth] ?? 0, branch.height);\n const stack = isStack(branch);\n for (const { branch: child } of branch.children)\n measure(child, depth + 1, stack);\n };\n measure(root, 0, false);\n const top: number[] = [0];\n for (let depth = 1; depth <= tallest.length; depth++)\n top[depth] = top[depth - 1]! + tallest[depth - 1]! + DROP;\n\n // 2. Pack, and 3. Stack\n const shapes = new Map<string, Shape>();\n const shape = (branch: Branch): Shape => {\n const half = branch.width / 2;\n if (isStack(branch)) {\n // A stacked leaf is placed like any box, so it needs a shape too.\n for (const { branch: child } of branch.children) shape(child);\n const column = Math.max(\n ...branch.children.map(({ branch: child }) => child.width),\n );\n const start = -half + INDENT;\n const made: Shape = {\n left: [-half, ...Array<number>(DEEP).fill(start - INDENT)],\n right: [\n half,\n ...Array<number>(DEEP).fill(Math.max(half, start + column)),\n ],\n offsets: branch.children.map(() => start),\n stacked: true,\n };\n shapes.set(branch.id, made);\n return made;\n }\n const children = branch.children.map(({ branch: child }) => shape(child));\n const offsets: number[] = [];\n const left: number[] = [];\n const right: number[] = [];\n children.forEach((child, index) => {\n let at = 0;\n if (index > 0)\n for (let depth = 0; depth < child.left.length; depth++)\n if (right[depth] !== undefined)\n at = Math.max(at, right[depth]! - child.left[depth]! + GAP);\n offsets.push(at);\n child.left.forEach((edge, depth) => {\n left[depth] = Math.min(left[depth] ?? Infinity, edge + at);\n right[depth] = Math.max(\n right[depth] ?? -Infinity,\n child.right[depth]! + at,\n );\n });\n });\n const centre = children.length ? (offsets[0]! + offsets.at(-1)!) / 2 : 0;\n const made: Shape = {\n left: [-half, ...left.map((edge) => edge - centre)],\n right: [half, ...right.map((edge) => edge - centre)],\n offsets: offsets.map((offset) => offset - centre),\n stacked: false,\n };\n shapes.set(branch.id, made);\n return made;\n };\n shape(root);\n\n // 4. Lines\n const boxes = new Map<string, Box>();\n const lines: Line[] = [];\n const labels: Label[] = [];\n const place = (\n branch: Branch,\n centre: number,\n y: number,\n depth: number,\n parent?: string,\n ) => {\n const box: Box = {\n x: centre - branch.width / 2,\n y,\n width: branch.width,\n height: branch.height,\n depth,\n ...(parent ? { parent } : {}),\n };\n boxes.set(branch.id, box);\n const { offsets, stacked } = shapes.get(branch.id)!;\n const bottom = { x: centre, y: y + branch.height };\n let below = top[depth + 1] ?? y + branch.height + DROP;\n branch.children.forEach(({ via, branch: child }, index) => {\n if (stacked) {\n const left = centre + offsets[index]!;\n const spine = left - INDENT / 2;\n place(child, left + child.width / 2, below, depth + 1, branch.id);\n lines.push({\n id: `${branch.id}->${child.id}`,\n from: branch.id,\n to: child.id,\n ...(via ? { via } : {}),\n d: curve(\n { x: spine, y: bottom.y },\n { x: left, y: below + 16 },\n 'across',\n ),\n });\n if (via)\n labels.push({\n id: `${branch.id}->${child.id}:via`,\n owner: branch.id,\n text: via,\n x: left,\n y: below - 9,\n align: 'start',\n });\n below += child.height + STACK_GAP;\n return;\n }\n const at = centre + offsets[index]!;\n place(child, at, below, depth + 1, branch.id);\n lines.push({\n id: `${branch.id}->${child.id}`,\n from: branch.id,\n to: child.id,\n ...(via ? { via } : {}),\n d: curve(bottom, { x: at, y: below }),\n });\n if (via)\n labels.push({\n id: `${branch.id}->${child.id}:via`,\n owner: branch.id,\n text: via,\n // On the curve, most of the way down, where it runs nearly straight.\n ...along(bottom, { x: at, y: below }, 0.78),\n align: 'middle',\n });\n });\n };\n place(root, 0, 0, 0);\n return { boxes, lines, labels };\n};\n"],"mappings":";;AAiBA,MAAM,MAAM;AACZ,MAAM,OAAO;;AAEb,MAAM,SAAS;AACf,MAAM,YAAY;AAClB,MAAM,SAAS;;AAEf,MAAM,OAAO;AAWb,MAAM,WAAW,WACf,OAAO,SAAS,SAAS,UACzB,OAAO,SAAS,OAAO,EAAE,QAAQ,YAAY,MAAM,SAAS,WAAW,CAAC;AAE1E,MAAa,cAAc,SAAuB;CAEhD,MAAM,UAAoB,CAAC;CAC3B,MAAM,WAAW,QAAgB,OAAe,YAAqB;EACnE,IAAI,CAAC,SAAS,QAAQ,SAAS,KAAK,IAAI,QAAQ,UAAU,GAAG,OAAO,MAAM;EAC1E,MAAM,QAAQ,QAAQ,MAAM;EAC5B,KAAK,MAAM,EAAE,QAAQ,WAAW,OAAO,UACrC,QAAQ,OAAO,QAAQ,GAAG,KAAK;CACnC;CACA,QAAQ,MAAM,GAAG,KAAK;CACtB,MAAM,MAAgB,CAAC,CAAC;CACxB,KAAK,IAAI,QAAQ,GAAG,SAAS,QAAQ,QAAQ,SAC3C,IAAI,SAAS,IAAI,QAAQ,KAAM,QAAQ,QAAQ,KAAM;CAGvD,MAAM,yBAAS,IAAI,IAAmB;CACtC,MAAM,SAAS,WAA0B;EACvC,MAAM,OAAO,OAAO,QAAQ;EAC5B,IAAI,QAAQ,MAAM,GAAG;GAEnB,KAAK,MAAM,EAAE,QAAQ,WAAW,OAAO,UAAU,MAAM,KAAK;GAC5D,MAAM,SAAS,KAAK,IAClB,GAAG,OAAO,SAAS,KAAK,EAAE,QAAQ,YAAY,MAAM,KAAK,CAC3D;GACA,MAAM,QAAQ,CAAC,OAAO;GACtB,MAAM,OAAc;IAClB,MAAM,CAAC,CAAC,MAAM,GAAG,MAAc,IAAI,CAAC,CAAC,KAAK,QAAQ,MAAM,CAAC;IACzD,OAAO,CACL,MACA,GAAG,MAAc,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,MAAM,QAAQ,MAAM,CAAC,CAC5D;IACA,SAAS,OAAO,SAAS,UAAU,KAAK;IACxC,SAAS;GACX;GACA,OAAO,IAAI,OAAO,IAAI,IAAI;GAC1B,OAAO;EACT;EACA,MAAM,WAAW,OAAO,SAAS,KAAK,EAAE,QAAQ,YAAY,MAAM,KAAK,CAAC;EACxE,MAAM,UAAoB,CAAC;EAC3B,MAAM,OAAiB,CAAC;EACxB,MAAM,QAAkB,CAAC;EACzB,SAAS,SAAS,OAAO,UAAU;GACjC,IAAI,KAAK;GACT,IAAI,QAAQ,GACL;SAAA,IAAI,QAAQ,GAAG,QAAQ,MAAM,KAAK,QAAQ,SAC7C,IAAI,MAAM,WAAW,KAAA,GACnB,KAAK,KAAK,IAAI,IAAI,MAAM,SAAU,MAAM,KAAK,SAAU,GAAG;GAAA;GAChE,QAAQ,KAAK,EAAE;GACf,MAAM,KAAK,SAAS,MAAM,UAAU;IAClC,KAAK,SAAS,KAAK,IAAI,KAAK,UAAU,UAAU,OAAO,EAAE;IACzD,MAAM,SAAS,KAAK,IAClB,MAAM,UAAU,WAChB,MAAM,MAAM,SAAU,EACxB;GACF,CAAC;EACH,CAAC;EACD,MAAM,SAAS,SAAS,UAAU,QAAQ,KAAM,QAAQ,GAAG,EAAE,KAAM,IAAI;EACvE,MAAM,OAAc;GAClB,MAAM,CAAC,CAAC,MAAM,GAAG,KAAK,KAAK,SAAS,OAAO,MAAM,CAAC;GAClD,OAAO,CAAC,MAAM,GAAG,MAAM,KAAK,SAAS,OAAO,MAAM,CAAC;GACnD,SAAS,QAAQ,KAAK,WAAW,SAAS,MAAM;GAChD,SAAS;EACX;EACA,OAAO,IAAI,OAAO,IAAI,IAAI;EAC1B,OAAO;CACT;CACA,MAAM,IAAI;CAGV,MAAM,wBAAQ,IAAI,IAAiB;CACnC,MAAM,QAAgB,CAAC;CACvB,MAAM,SAAkB,CAAC;CACzB,MAAM,SACJ,QACA,QACA,GACA,OACA,WACG;EACH,MAAM,MAAW;GACf,GAAG,SAAS,OAAO,QAAQ;GAC3B;GACA,OAAO,OAAO;GACd,QAAQ,OAAO;GACf;GACA,GAAI,SAAS,EAAE,OAAO,IAAI,CAAC;EAC7B;EACA,MAAM,IAAI,OAAO,IAAI,GAAG;EACxB,MAAM,EAAE,SAAS,YAAY,OAAO,IAAI,OAAO,EAAE;EACjD,MAAM,SAAS;GAAE,GAAG;GAAQ,GAAG,IAAI,OAAO;EAAO;EACjD,IAAI,QAAQ,IAAI,QAAQ,MAAM,IAAI,OAAO,SAAS;EAClD,OAAO,SAAS,SAAS,EAAE,KAAK,QAAQ,SAAS,UAAU;GACzD,IAAI,SAAS;IACX,MAAM,OAAO,SAAS,QAAQ;IAC9B,MAAM,QAAQ,OAAO,SAAS;IAC9B,MAAM,OAAO,OAAO,MAAM,QAAQ,GAAG,OAAO,QAAQ,GAAG,OAAO,EAAE;IAChE,MAAM,KAAK;KACT,IAAI,GAAG,OAAO,GAAG,IAAI,MAAM;KAC3B,MAAM,OAAO;KACb,IAAI,MAAM;KACV,GAAI,MAAM,EAAE,IAAI,IAAI,CAAC;KACrB,GAAG,MACD;MAAE,GAAG;MAAO,GAAG,OAAO;KAAE,GACxB;MAAE,GAAG;MAAM,GAAG,QAAQ;KAAG,GACzB,QACF;IACF,CAAC;IACD,IAAI,KACF,OAAO,KAAK;KACV,IAAI,GAAG,OAAO,GAAG,IAAI,MAAM,GAAG;KAC9B,OAAO,OAAO;KACd,MAAM;KACN,GAAG;KACH,GAAG,QAAQ;KACX,OAAO;IACT,CAAC;IACH,SAAS,MAAM,SAAS;IACxB;GACF;GACA,MAAM,KAAK,SAAS,QAAQ;GAC5B,MAAM,OAAO,IAAI,OAAO,QAAQ,GAAG,OAAO,EAAE;GAC5C,MAAM,KAAK;IACT,IAAI,GAAG,OAAO,GAAG,IAAI,MAAM;IAC3B,MAAM,OAAO;IACb,IAAI,MAAM;IACV,GAAI,MAAM,EAAE,IAAI,IAAI,CAAC;IACrB,GAAG,MAAM,QAAQ;KAAE,GAAG;KAAI,GAAG;IAAM,CAAC;GACtC,CAAC;GACD,IAAI,KACF,OAAO,KAAK;IACV,IAAI,GAAG,OAAO,GAAG,IAAI,MAAM,GAAG;IAC9B,OAAO,OAAO;IACd,MAAM;IAEN,GAAG,MAAM,QAAQ;KAAE,GAAG;KAAI,GAAG;IAAM,GAAG,GAAI;IAC1C,OAAO;GACT,CAAC;EACL,CAAC;CACH;CACA,MAAM,MAAM,GAAG,GAAG,CAAC;CACnB,OAAO;EAAE;EAAO;EAAO;CAAO;AAChC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Instance } from "@kestack/kabuki";
|
|
2
|
+
//#region src/recipes/kabuki-devtools/scene/nodes.d.ts
|
|
3
|
+
/** Whether a Worker key is running, finished or failed; `on` away from the live app, where only its Condition is known. */
|
|
4
|
+
export type WorkerStatus = 'running' | 'finished' | 'failed' | 'on';
|
|
5
|
+
/** One Worker key a Condition names now. */
|
|
6
|
+
export interface WorkerKey {
|
|
7
|
+
/** Unique on the Map. */
|
|
8
|
+
readonly id: string;
|
|
9
|
+
/** `''` for the one Worker of a kind other than `each`. */
|
|
10
|
+
readonly key: string;
|
|
11
|
+
readonly instance: Instance;
|
|
12
|
+
readonly status: WorkerStatus;
|
|
13
|
+
}
|
|
14
|
+
/** One Worker an Actor has, written at its top or in one State, and the keys it runs now. */
|
|
15
|
+
export interface WorkerRow {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
/** The State it is written in; none at the top. */
|
|
18
|
+
readonly state?: string;
|
|
19
|
+
readonly keys: ReadonlyArray<WorkerKey>;
|
|
20
|
+
}
|
|
21
|
+
/** One State an Actor can be in, and how many of its Instances are in it. */
|
|
22
|
+
export interface StateOption {
|
|
23
|
+
readonly tag: string;
|
|
24
|
+
readonly count: number;
|
|
25
|
+
}
|
|
26
|
+
export interface ActorNode {
|
|
27
|
+
readonly id: string;
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/** A slot of keyed Children: one card for many Instances, showing one at a time. */
|
|
30
|
+
readonly many: boolean;
|
|
31
|
+
/** Every Instance at this place, under the Instances chosen above it. */
|
|
32
|
+
readonly instances: ReadonlyArray<Instance>;
|
|
33
|
+
/** The Instance a place of many shows: its State, its Workers, and what hangs below it. */
|
|
34
|
+
readonly chosen?: Instance;
|
|
35
|
+
/** Its States, in lines as the card draws them; none for an Actor without States. */
|
|
36
|
+
readonly states?: ReadonlyArray<ReadonlyArray<StateOption>>;
|
|
37
|
+
readonly workers: ReadonlyArray<WorkerRow>;
|
|
38
|
+
/** Its size, from the Actor alone. */
|
|
39
|
+
readonly width: number;
|
|
40
|
+
readonly height: number;
|
|
41
|
+
}
|
|
42
|
+
/** A Node with what hangs below it, each by the State that Invokes it, if one does. */
|
|
43
|
+
export interface Item {
|
|
44
|
+
readonly node: ActorNode;
|
|
45
|
+
readonly children: ReadonlyArray<{
|
|
46
|
+
readonly via?: string;
|
|
47
|
+
readonly item: Item;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
/** The card's measures, shared by the layout and the drawing so they always agree. */
|
|
51
|
+
export declare const CARD: {
|
|
52
|
+
readonly pad: 10;
|
|
53
|
+
readonly header: 22;
|
|
54
|
+
readonly line: 22;
|
|
55
|
+
readonly row: 22;
|
|
56
|
+
readonly gap: 6;
|
|
57
|
+
readonly min: 168;
|
|
58
|
+
readonly max: 264;
|
|
59
|
+
};
|
|
60
|
+
/** A card's size and the lines its States fall into, from its Actor alone. */
|
|
61
|
+
export declare const measure: (name: string, many: boolean, states: ReadonlyArray<string> | undefined, workers: ReadonlyArray<string>) => {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
lines: string[][];
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
//# sourceMappingURL=nodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","names":[],"sources":["../../../../src/recipes/kabuki-devtools/scene/nodes.ts"],"mappings":";;;YAcY;;iBAGK;;WAEN;;WAEA;WACA,UAAU;WACV,QAAQ;;;iBAIF;WACN;;WAEA;WACA,MAAM,cAAc;;;iBAId;WACN;WACA;;iBAGM;WACN;WACA;;WAEA;;WAEA,WAAW,cAAc;;WAEzB,SAAS;;WAET,SAAS,cAAc,cAAc;WACrC,SAAS,cAAc;;WAEvB;WACA;;;iBAIM;WACN,MAAM;WACN,UAAU;aACR;aACA,MAAM;;;;qBAKN;WACX;WACA;WACA;WACA;WACA;WACA;WACA;;;qBAOW,UAAO,cACN,eACC,QACL,mCAAiC,SAChC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/recipes/kabuki-devtools/scene/nodes.ts
|
|
2
|
+
/** The card's measures, shared by the layout and the drawing so they always agree. */
|
|
3
|
+
const CARD = {
|
|
4
|
+
pad: 10,
|
|
5
|
+
header: 22,
|
|
6
|
+
line: 22,
|
|
7
|
+
row: 22,
|
|
8
|
+
gap: 6,
|
|
9
|
+
min: 168,
|
|
10
|
+
max: 264
|
|
11
|
+
};
|
|
12
|
+
const optionWidth = (tag, many) => 16 + tag.length * 6.6 + (many ? 22 : 0) + 12;
|
|
13
|
+
/** A card's size and the lines its States fall into, from its Actor alone. */
|
|
14
|
+
const measure = (name, many, states, workers) => {
|
|
15
|
+
const header = 24 + name.length * 7.4 + (many ? 92 : 0);
|
|
16
|
+
const rows = workers.reduce((widest, worker) => Math.max(widest, 16 + worker.length * 6.8 + 72), 0);
|
|
17
|
+
const inner = Math.min(CARD.max - CARD.pad * 2, Math.max(CARD.min - CARD.pad * 2, header, rows));
|
|
18
|
+
const lines = [];
|
|
19
|
+
let used = Infinity;
|
|
20
|
+
for (const tag of states ?? []) {
|
|
21
|
+
const width = optionWidth(tag, many);
|
|
22
|
+
if (used + width > inner) {
|
|
23
|
+
lines.push([]);
|
|
24
|
+
used = 0;
|
|
25
|
+
}
|
|
26
|
+
lines.at(-1).push(tag);
|
|
27
|
+
used += width;
|
|
28
|
+
}
|
|
29
|
+
const height = CARD.pad * 2 + CARD.header + (lines.length ? CARD.gap + lines.length * CARD.line : 0) + (workers.length ? CARD.gap + workers.length * CARD.row : 0);
|
|
30
|
+
return {
|
|
31
|
+
width: inner + CARD.pad * 2,
|
|
32
|
+
height,
|
|
33
|
+
lines
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { CARD, measure };
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.js","names":[],"sources":["../../../../src/recipes/kabuki-devtools/scene/nodes.ts"],"sourcesContent":["import type { Instance } from '@kestack/kabuki';\n\n/*\n * What the Map is made of, before it is laid out: one Node per place an\n * Actor can run, standing for every Instance there now.\n *\n * A Node is a card: its Actor's name, the States it can be in, as options,\n * and the Workers written in it, as rows. All three come from the Actor,\n * never the data, so a card's size never changes and the Map never moves:\n * the Snapshot only says how many Instances run there, which State each is\n * in, and which Worker keys run now.\n */\n\n/** Whether a Worker key is running, finished or failed; `on` away from the live app, where only its Condition is known. */\nexport type WorkerStatus = 'running' | 'finished' | 'failed' | 'on';\n\n/** One Worker key a Condition names now. */\nexport interface WorkerKey {\n /** Unique on the Map. */\n readonly id: string;\n /** `''` for the one Worker of a kind other than `each`. */\n readonly key: string;\n readonly instance: Instance;\n readonly status: WorkerStatus;\n}\n\n/** One Worker an Actor has, written at its top or in one State, and the keys it runs now. */\nexport interface WorkerRow {\n readonly name: string;\n /** The State it is written in; none at the top. */\n readonly state?: string;\n readonly keys: ReadonlyArray<WorkerKey>;\n}\n\n/** One State an Actor can be in, and how many of its Instances are in it. */\nexport interface StateOption {\n readonly tag: string;\n readonly count: number;\n}\n\nexport interface ActorNode {\n readonly id: string;\n readonly name: string;\n /** A slot of keyed Children: one card for many Instances, showing one at a time. */\n readonly many: boolean;\n /** Every Instance at this place, under the Instances chosen above it. */\n readonly instances: ReadonlyArray<Instance>;\n /** The Instance a place of many shows: its State, its Workers, and what hangs below it. */\n readonly chosen?: Instance;\n /** Its States, in lines as the card draws them; none for an Actor without States. */\n readonly states?: ReadonlyArray<ReadonlyArray<StateOption>>;\n readonly workers: ReadonlyArray<WorkerRow>;\n /** Its size, from the Actor alone. */\n readonly width: number;\n readonly height: number;\n}\n\n/** A Node with what hangs below it, each by the State that Invokes it, if one does. */\nexport interface Item {\n readonly node: ActorNode;\n readonly children: ReadonlyArray<{\n readonly via?: string;\n readonly item: Item;\n }>;\n}\n\n/** The card's measures, shared by the layout and the drawing so they always agree. */\nexport const CARD = {\n pad: 10,\n header: 22,\n line: 22,\n row: 22,\n gap: 6,\n min: 168,\n max: 264,\n} as const;\n\nconst optionWidth = (tag: string, many: boolean) =>\n 10 + 6 + tag.length * 6.6 + (many ? 22 : 0) + 12;\n\n/** A card's size and the lines its States fall into, from its Actor alone. */\nexport const measure = (\n name: string,\n many: boolean,\n states: ReadonlyArray<string> | undefined,\n workers: ReadonlyArray<string>,\n) => {\n // A place of many has a switcher in its header.\n const header = 16 + 8 + name.length * 7.4 + (many ? 92 : 0);\n const rows = workers.reduce(\n (widest, worker) => Math.max(widest, 16 + worker.length * 6.8 + 72),\n 0,\n );\n const inner = Math.min(\n CARD.max - CARD.pad * 2,\n Math.max(CARD.min - CARD.pad * 2, header, rows),\n );\n // States wrap into as many lines as they need inside the card's width.\n const lines: string[][] = [];\n let used = Infinity;\n for (const tag of states ?? []) {\n const width = optionWidth(tag, many);\n if (used + width > inner) {\n lines.push([]);\n used = 0;\n }\n lines.at(-1)!.push(tag);\n used += width;\n }\n const height =\n CARD.pad * 2 +\n CARD.header +\n (lines.length ? CARD.gap + lines.length * CARD.line : 0) +\n (workers.length ? CARD.gap + workers.length * CARD.row : 0);\n return { width: inner + CARD.pad * 2, height, lines };\n};\n"],"mappings":";;AAmEA,MAAa,OAAO;CAClB,KAAK;CACL,QAAQ;CACR,MAAM;CACN,KAAK;CACL,KAAK;CACL,KAAK;CACL,KAAK;AACP;AAEA,MAAM,eAAe,KAAa,SAChC,KAAS,IAAI,SAAS,OAAO,OAAO,KAAK,KAAK;;AAGhD,MAAa,WACX,MACA,MACA,QACA,YACG;CAEH,MAAM,SAAS,KAAS,KAAK,SAAS,OAAO,OAAO,KAAK;CACzD,MAAM,OAAO,QAAQ,QAClB,QAAQ,WAAW,KAAK,IAAI,QAAQ,KAAK,OAAO,SAAS,MAAM,EAAE,GAClE,CACF;CACA,MAAM,QAAQ,KAAK,IACjB,KAAK,MAAM,KAAK,MAAM,GACtB,KAAK,IAAI,KAAK,MAAM,KAAK,MAAM,GAAG,QAAQ,IAAI,CAChD;CAEA,MAAM,QAAoB,CAAC;CAC3B,IAAI,OAAO;CACX,KAAK,MAAM,OAAO,UAAU,CAAC,GAAG;EAC9B,MAAM,QAAQ,YAAY,KAAK,IAAI;EACnC,IAAI,OAAO,QAAQ,OAAO;GACxB,MAAM,KAAK,CAAC,CAAC;GACb,OAAO;EACT;EACA,MAAM,GAAG,EAAE,CAAC,CAAE,KAAK,GAAG;EACtB,QAAQ;CACV;CACA,MAAM,SACJ,KAAK,MAAM,IACX,KAAK,UACJ,MAAM,SAAS,KAAK,MAAM,MAAM,SAAS,KAAK,OAAO,MACrD,QAAQ,SAAS,KAAK,MAAM,QAAQ,SAAS,KAAK,MAAM;CAC3D,OAAO;EAAE,OAAO,QAAQ,KAAK,MAAM;EAAG;EAAQ;CAAM;AACtD"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { ActorNode } from "./nodes.js";
|
|
2
|
+
import { Beats, Said } from "./beats.js";
|
|
3
|
+
import { Box } from "./layout/shapes.js";
|
|
4
|
+
import { Kind } from "./layout/layout.js";
|
|
5
|
+
import { Statuses } from "./tree.js";
|
|
6
|
+
import { ActorDefinition, Snapshot } from "@kestack/kabuki";
|
|
7
|
+
//#region src/recipes/kabuki-devtools/scene/scene.d.ts
|
|
8
|
+
export type Placed = ActorNode & Box & {
|
|
9
|
+
readonly lit: boolean;
|
|
10
|
+
/** Folded: what hangs right below it, by name, and how many places hide below in all. */
|
|
11
|
+
readonly folded?: {
|
|
12
|
+
readonly names: ReadonlyArray<string>;
|
|
13
|
+
readonly hidden: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/** The room a folded card's names take under it. */
|
|
17
|
+
export declare const FOLD = 30;
|
|
18
|
+
/** A State node: one State of a card that starts something. */
|
|
19
|
+
export interface PlacedState extends Box {
|
|
20
|
+
readonly id: string;
|
|
21
|
+
/** The card it belongs to. */
|
|
22
|
+
readonly owner: string;
|
|
23
|
+
readonly tag: string;
|
|
24
|
+
/** The card's Instance is in it, so what it starts runs. */
|
|
25
|
+
readonly active: boolean;
|
|
26
|
+
readonly lit: boolean;
|
|
27
|
+
/** Not the one it is in: what it would start, by name, under it. */
|
|
28
|
+
readonly names?: ReadonlyArray<string>;
|
|
29
|
+
}
|
|
30
|
+
/** A State node's height, and its room for names when it is not the one. */
|
|
31
|
+
export declare const STATE: {
|
|
32
|
+
readonly height: 26;
|
|
33
|
+
readonly names: 22;
|
|
34
|
+
};
|
|
35
|
+
/** The ID of a card's State node. */
|
|
36
|
+
export declare const stateId: (owner: string, tag: string) => string;
|
|
37
|
+
export interface Scene {
|
|
38
|
+
readonly nodes: ReadonlyArray<Placed>;
|
|
39
|
+
readonly lines: ReadonlyArray<{
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly from: string;
|
|
42
|
+
readonly to: string;
|
|
43
|
+
readonly d: string;
|
|
44
|
+
readonly lit: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
readonly labels: ReadonlyArray<{
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly owner: string;
|
|
49
|
+
readonly text: string;
|
|
50
|
+
readonly x: number;
|
|
51
|
+
readonly y: number;
|
|
52
|
+
readonly align: 'middle' | 'start';
|
|
53
|
+
readonly lit: boolean;
|
|
54
|
+
}>;
|
|
55
|
+
/** The State nodes. */
|
|
56
|
+
readonly states: ReadonlyArray<PlacedState>;
|
|
57
|
+
readonly beats: Beats | undefined;
|
|
58
|
+
/** Where every Node sits, by ID. */
|
|
59
|
+
readonly at: ReadonlyMap<string, Placed>;
|
|
60
|
+
/** The live app's Workers are laid over it. */
|
|
61
|
+
readonly live: boolean;
|
|
62
|
+
}
|
|
63
|
+
export interface Shown {
|
|
64
|
+
readonly definition: ActorDefinition;
|
|
65
|
+
readonly snapshot: Snapshot;
|
|
66
|
+
/** The Step's Message; none for init. */
|
|
67
|
+
readonly said?: Said;
|
|
68
|
+
/** What the live app says of each Instance's Workers; none away from it. */
|
|
69
|
+
readonly statuses?: Statuses;
|
|
70
|
+
readonly layout?: Kind;
|
|
71
|
+
/** The Instance chosen at each place of many, by the place's ID. */
|
|
72
|
+
readonly chosen?: ReadonlyMap<string, string>;
|
|
73
|
+
/** The cards folded, by ID. */
|
|
74
|
+
readonly folded?: ReadonlySet<string>;
|
|
75
|
+
}
|
|
76
|
+
export declare const sceneOf: ({ definition, snapshot, said, statuses, layout: kind, chosen, folded }: Shown) => Scene;
|
|
77
|
+
//#endregion
|
|
78
|
+
//# sourceMappingURL=scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.d.ts","names":[],"sources":["../../../../src/recipes/kabuki-devtools/scene/scene.ts"],"mappings":";;;;;;;YAwBY,SAAS,YACnB;WACW;;WAEA;aACE,OAAO;aACP;;;;qBAKF;;iBAGI,oBAAoB;WAC1B;;WAEA;WACA;;WAEA;WACA;;WAEA,QAAQ;;;qBAIN;WAAU;WAAY;;;qBAKtB,UAAO,eAAiB;iBAMpB;WACN,OAAO,cAAc;WACrB,OAAO;aACL;aACA;aACA;aACA;aACA;;WAEF,QAAQ;aACN;aACA;aACA;aACA;aACA;aACA;aACA;;;WAGF,QAAQ,cAAc;WACtB,OAAO;;WAEP,IAAI,oBAAoB;;WAExB;;iBAGM;WACN,YAAY;WACZ,UAAU;;WAEV,OAAO;;WAEP,WAAW;WACX,SAAS;;WAET,SAAS;;WAET,SAAS;;qBAyDP,YAAO,YAAA,UAAA,MAAA,UAAA,QAAA,MAAA,QAAA,UAQjB,UAAQ"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { beatsOf } from "./beats.js";
|
|
2
|
+
import { layout } from "./layout/layout.js";
|
|
3
|
+
import { treeOf } from "./tree.js";
|
|
4
|
+
//#region src/recipes/kabuki-devtools/scene/scene.ts
|
|
5
|
+
/** The room a folded card's names take under it. */
|
|
6
|
+
const FOLD = 30;
|
|
7
|
+
/** A State node's height, and its room for names when it is not the one. */
|
|
8
|
+
const STATE = {
|
|
9
|
+
height: 26,
|
|
10
|
+
names: 22
|
|
11
|
+
};
|
|
12
|
+
const stateWidth = (tag) => Math.max(72, 34 + tag.length * 7);
|
|
13
|
+
/** The ID of a card's State node. */
|
|
14
|
+
const stateId = (owner, tag) => `${owner}~${tag}`;
|
|
15
|
+
/** The State a card's shown Instance is in. */
|
|
16
|
+
const currentOf = (node) => (node.many ? node.chosen : node.instances[0])?.state._tag;
|
|
17
|
+
const NOT_LIVE = () => void 0;
|
|
18
|
+
const branchOf = ({ node, children }, folded) => {
|
|
19
|
+
if (folded.has(node.id) && children.length) return {
|
|
20
|
+
id: node.id,
|
|
21
|
+
width: node.width,
|
|
22
|
+
height: node.height + 30,
|
|
23
|
+
children: []
|
|
24
|
+
};
|
|
25
|
+
const current = currentOf(node);
|
|
26
|
+
const byState = /* @__PURE__ */ new Map();
|
|
27
|
+
for (const { via, item } of children) if (via) byState.set(via, [...byState.get(via) ?? [], item]);
|
|
28
|
+
const states = [...byState].map(([tag, items]) => ({ branch: tag === current ? {
|
|
29
|
+
id: stateId(node.id, tag),
|
|
30
|
+
width: stateWidth(tag),
|
|
31
|
+
height: STATE.height,
|
|
32
|
+
children: items.map((item) => ({ branch: branchOf(item, folded) }))
|
|
33
|
+
} : {
|
|
34
|
+
id: stateId(node.id, tag),
|
|
35
|
+
width: stateWidth(tag),
|
|
36
|
+
height: STATE.height + STATE.names,
|
|
37
|
+
children: []
|
|
38
|
+
} }));
|
|
39
|
+
return {
|
|
40
|
+
id: node.id,
|
|
41
|
+
width: node.width,
|
|
42
|
+
height: node.height,
|
|
43
|
+
children: [...states, ...children.filter(({ via }) => !via).map(({ item }) => ({ branch: branchOf(item, folded) }))]
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
/** How many places hang below an Item, at any depth. */
|
|
47
|
+
const countBelow = (item) => item.children.reduce((sum, { item: child }) => sum + 1 + countBelow(child), 0);
|
|
48
|
+
const sceneOf = ({ definition, snapshot, said, statuses, layout: kind = "tree", chosen, folded = /* @__PURE__ */ new Set() }) => {
|
|
49
|
+
const toward = said ? [said.envelope.destination, ..."instance" in said.envelope.source ? [said.envelope.source.instance] : []] : [];
|
|
50
|
+
const { tree, find } = treeOf(definition, snapshot, statuses ?? NOT_LIVE, chosen, toward);
|
|
51
|
+
const nodes = /* @__PURE__ */ new Map();
|
|
52
|
+
const items = /* @__PURE__ */ new Map();
|
|
53
|
+
const parents = /* @__PURE__ */ new Map();
|
|
54
|
+
const collect = (item) => {
|
|
55
|
+
nodes.set(item.node.id, item.node);
|
|
56
|
+
items.set(item.node.id, item);
|
|
57
|
+
for (const { item: child } of item.children) {
|
|
58
|
+
parents.set(child.node.id, item.node.id);
|
|
59
|
+
collect(child);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
collect(tree);
|
|
63
|
+
const laid = layout(branchOf(tree, folded), kind);
|
|
64
|
+
const states = [];
|
|
65
|
+
for (const [id, box] of laid.boxes) {
|
|
66
|
+
if (nodes.has(id)) continue;
|
|
67
|
+
const owner = box.parent;
|
|
68
|
+
const node = nodes.get(owner);
|
|
69
|
+
const tag = id.slice(owner.length + 1);
|
|
70
|
+
const active = currentOf(node) === tag;
|
|
71
|
+
states.push({
|
|
72
|
+
...box,
|
|
73
|
+
id,
|
|
74
|
+
owner,
|
|
75
|
+
tag,
|
|
76
|
+
active,
|
|
77
|
+
lit: active && node.instances.length > 0,
|
|
78
|
+
...active ? {} : {
|
|
79
|
+
height: STATE.height,
|
|
80
|
+
names: items.get(owner).children.filter(({ via }) => via === tag).map(({ item }) => item.node.name)
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
const placed = [...laid.boxes].flatMap(([id, box]) => {
|
|
85
|
+
if (!nodes.has(id)) return [];
|
|
86
|
+
const node = nodes.get(id);
|
|
87
|
+
const item = items.get(id);
|
|
88
|
+
const fold = folded.has(id) && item.children.length ? {
|
|
89
|
+
folded: {
|
|
90
|
+
names: item.children.map(({ item: child }) => child.node.name),
|
|
91
|
+
hidden: countBelow(item)
|
|
92
|
+
},
|
|
93
|
+
height: box.height - 30
|
|
94
|
+
} : {};
|
|
95
|
+
return [{
|
|
96
|
+
...node,
|
|
97
|
+
...box,
|
|
98
|
+
lit: node.instances.length > 0,
|
|
99
|
+
...fold
|
|
100
|
+
}];
|
|
101
|
+
});
|
|
102
|
+
const at = new Map(placed.map((node) => [node.id, node]));
|
|
103
|
+
const stateAt = new Map(states.map((state) => [state.id, state]));
|
|
104
|
+
const lit = (id) => (at.get(id) ?? stateAt.get(id)).lit;
|
|
105
|
+
return {
|
|
106
|
+
nodes: placed,
|
|
107
|
+
states,
|
|
108
|
+
lines: laid.lines.map((line) => ({
|
|
109
|
+
id: line.id,
|
|
110
|
+
from: line.from,
|
|
111
|
+
to: line.to,
|
|
112
|
+
d: line.d,
|
|
113
|
+
lit: lit(line.from) && lit(line.to)
|
|
114
|
+
})),
|
|
115
|
+
labels: [],
|
|
116
|
+
beats: said && beatsOf(said, (id) => {
|
|
117
|
+
let place = find(id);
|
|
118
|
+
while (place && !at.has(place)) place = parents.get(place);
|
|
119
|
+
return place;
|
|
120
|
+
}),
|
|
121
|
+
at,
|
|
122
|
+
live: statuses !== void 0
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
//#endregion
|
|
126
|
+
export { FOLD, STATE, sceneOf, stateId };
|
|
127
|
+
|
|
128
|
+
//# sourceMappingURL=scene.js.map
|