@brett_lamy/ui 0.0.1 → 1.1.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/README.md +131 -13
- package/dist/components/adaptive-pane.d.ts +15 -0
- package/dist/components/adaptive-pane.d.ts.map +1 -0
- package/dist/components/adaptive-pane.stories.d.ts +7 -0
- package/dist/components/adaptive-pane.stories.d.ts.map +1 -0
- package/dist/components/animated-height.d.ts +23 -0
- package/dist/components/animated-height.d.ts.map +1 -0
- package/dist/components/badge.d.ts +9 -0
- package/dist/components/badge.d.ts.map +1 -0
- package/dist/components/badge.stories.d.ts +9 -0
- package/dist/components/badge.stories.d.ts.map +1 -0
- package/dist/components/button.d.ts +12 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.stories.d.ts +9 -0
- package/dist/components/button.stories.d.ts.map +1 -0
- package/dist/components/card.d.ts +14 -0
- package/dist/components/card.d.ts.map +1 -0
- package/dist/components/card.stories.d.ts +9 -0
- package/dist/components/card.stories.d.ts.map +1 -0
- package/dist/components/celebrate.d.ts +14 -0
- package/dist/components/celebrate.d.ts.map +1 -0
- package/dist/components/chat/channel-list.d.ts +35 -0
- package/dist/components/chat/channel-list.d.ts.map +1 -0
- package/dist/components/chat/channel-list.stories.d.ts +13 -0
- package/dist/components/chat/channel-list.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-avatar.d.ts +13 -0
- package/dist/components/chat/chat-avatar.d.ts.map +1 -0
- package/dist/components/chat/chat-avatar.stories.d.ts +9 -0
- package/dist/components/chat/chat-avatar.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-column.d.ts +8 -0
- package/dist/components/chat/chat-column.d.ts.map +1 -0
- package/dist/components/chat/chat-column.stories.d.ts +7 -0
- package/dist/components/chat/chat-column.stories.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.d.ts +22 -0
- package/dist/components/chat/chat-composer.d.ts.map +1 -0
- package/dist/components/chat/chat-composer.stories.d.ts +16 -0
- package/dist/components/chat/chat-composer.stories.d.ts.map +1 -0
- package/dist/components/chat/chat.fixtures.d.ts +29 -0
- package/dist/components/chat/chat.fixtures.d.ts.map +1 -0
- package/dist/components/chat/floating-chat.d.ts +71 -0
- package/dist/components/chat/floating-chat.d.ts.map +1 -0
- package/dist/components/chat/floating-chat.stories.d.ts +17 -0
- package/dist/components/chat/floating-chat.stories.d.ts.map +1 -0
- package/dist/components/chat/floating-sheet.d.ts +83 -0
- package/dist/components/chat/floating-sheet.d.ts.map +1 -0
- package/dist/components/chat/floating-sheet.stories.d.ts +22 -0
- package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -0
- package/dist/components/chat/member-list.d.ts +21 -0
- package/dist/components/chat/member-list.d.ts.map +1 -0
- package/dist/components/chat/message-list.d.ts +34 -0
- package/dist/components/chat/message-list.d.ts.map +1 -0
- package/dist/components/chat/message.d.ts +47 -0
- package/dist/components/chat/message.d.ts.map +1 -0
- package/dist/components/chat/message.stories.d.ts +30 -0
- package/dist/components/chat/message.stories.d.ts.map +1 -0
- package/dist/components/chat/progress-stepper.d.ts +30 -0
- package/dist/components/chat/progress-stepper.d.ts.map +1 -0
- package/dist/components/chat/rich-text.d.ts +8 -0
- package/dist/components/chat/rich-text.d.ts.map +1 -0
- package/dist/components/chat/rich-text.stories.d.ts +9 -0
- package/dist/components/chat/rich-text.stories.d.ts.map +1 -0
- package/dist/components/chat/server-header.d.ts +10 -0
- package/dist/components/chat/server-header.d.ts.map +1 -0
- package/dist/components/chat/thread-preview.d.ts +25 -0
- package/dist/components/chat/thread-preview.d.ts.map +1 -0
- package/dist/components/chat/thread-preview.stories.d.ts +18 -0
- package/dist/components/chat/thread-preview.stories.d.ts.map +1 -0
- package/dist/components/chat/user-panel.d.ts +16 -0
- package/dist/components/chat/user-panel.d.ts.map +1 -0
- package/dist/components/chat/workspace-rail.d.ts +56 -0
- package/dist/components/chat/workspace-rail.d.ts.map +1 -0
- package/dist/components/chat/workspace-rail.stories.d.ts +12 -0
- package/dist/components/chat/workspace-rail.stories.d.ts.map +1 -0
- package/dist/components/checkbox.d.ts +13 -0
- package/dist/components/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox.stories.d.ts +11 -0
- package/dist/components/checkbox.stories.d.ts.map +1 -0
- package/dist/components/combobox.d.ts +20 -0
- package/dist/components/combobox.d.ts.map +1 -0
- package/dist/components/combobox.stories.d.ts +10 -0
- package/dist/components/combobox.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/dialog.d.ts +40 -0
- package/dist/components/dialog.d.ts.map +1 -0
- package/dist/components/dialog.stories.d.ts +12 -0
- package/dist/components/dialog.stories.d.ts.map +1 -0
- package/dist/components/disclosure.d.ts +23 -0
- package/dist/components/disclosure.d.ts.map +1 -0
- package/dist/components/disclosure.stories.d.ts +10 -0
- package/dist/components/disclosure.stories.d.ts.map +1 -0
- package/dist/components/dropdown-menu.d.ts +33 -0
- package/dist/components/dropdown-menu.d.ts.map +1 -0
- package/dist/components/dropdown-menu.stories.d.ts +11 -0
- package/dist/components/dropdown-menu.stories.d.ts.map +1 -0
- package/dist/components/edge-drawer.d.ts +17 -0
- package/dist/components/edge-drawer.d.ts.map +1 -0
- package/dist/components/edge-drawer.stories.d.ts +8 -0
- package/dist/components/edge-drawer.stories.d.ts.map +1 -0
- package/dist/components/edit-bar.d.ts.map +1 -1
- package/dist/components/form.d.ts +9 -0
- package/dist/components/form.d.ts.map +1 -0
- package/dist/components/form.stories.d.ts +9 -0
- package/dist/components/form.stories.d.ts.map +1 -0
- package/dist/components/haptic-indicator.d.ts +3 -1
- package/dist/components/haptic-indicator.d.ts.map +1 -1
- package/dist/components/icon-swap.d.ts +27 -0
- package/dist/components/icon-swap.d.ts.map +1 -0
- package/dist/components/index-bar.d.ts +14 -1
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.stories.d.ts +4 -0
- package/dist/components/index-bar.stories.d.ts.map +1 -1
- package/dist/components/input.d.ts +9 -0
- package/dist/components/input.d.ts.map +1 -0
- package/dist/components/input.stories.d.ts +10 -0
- package/dist/components/input.stories.d.ts.map +1 -0
- package/dist/components/kbd.d.ts +5 -0
- package/dist/components/kbd.d.ts.map +1 -0
- package/dist/components/kbd.stories.d.ts +9 -0
- package/dist/components/kbd.stories.d.ts.map +1 -0
- package/dist/components/label.d.ts +9 -0
- package/dist/components/label.d.ts.map +1 -0
- package/dist/components/label.stories.d.ts +8 -0
- package/dist/components/label.stories.d.ts.map +1 -0
- package/dist/components/list-box.d.ts +30 -0
- package/dist/components/list-box.d.ts.map +1 -0
- package/dist/components/list-box.stories.d.ts +9 -0
- package/dist/components/list-box.stories.d.ts.map +1 -0
- package/dist/components/list-row.stories.d.ts +9 -0
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +33 -2
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +5 -1
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +131 -0
- package/dist/components/markdown-editor.d.ts.map +1 -0
- package/dist/components/markdown-editor.stories.d.ts +17 -0
- package/dist/components/markdown-editor.stories.d.ts.map +1 -0
- package/dist/components/morph.d.ts +61 -0
- package/dist/components/morph.d.ts.map +1 -0
- package/dist/components/morph.stories.d.ts +14 -0
- package/dist/components/morph.stories.d.ts.map +1 -0
- package/dist/components/motion.stories.d.ts +15 -0
- package/dist/components/motion.stories.d.ts.map +1 -0
- package/dist/components/navigation-stack.d.ts +9 -3
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +11 -0
- package/dist/components/navigation-stack.stories.d.ts.map +1 -1
- package/dist/components/now-playing-bars.d.ts +21 -0
- package/dist/components/now-playing-bars.d.ts.map +1 -0
- package/dist/components/now-playing-bars.stories.d.ts +12 -0
- package/dist/components/now-playing-bars.stories.d.ts.map +1 -0
- package/dist/components/number-morph.d.ts +11 -0
- package/dist/components/number-morph.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts +24 -0
- package/dist/components/pencilkit/pencil-canvas.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +18 -0
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts +60 -0
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -0
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +10 -0
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +8 -0
- package/dist/components/pencilkit/pencilkit-annotator.d.ts.map +1 -0
- package/dist/components/pencilkit/pk-icon.d.ts +8 -0
- package/dist/components/pencilkit/pk-icon.d.ts.map +1 -0
- package/dist/components/pencilkit/stroke-path.d.ts +11 -0
- package/dist/components/pencilkit/stroke-path.d.ts.map +1 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts +15 -0
- package/dist/components/pencilkit/use-pencil-history.d.ts.map +1 -0
- package/dist/components/pill-button.d.ts +1 -1
- package/dist/components/pill-button.d.ts.map +1 -1
- package/dist/components/popover.d.ts +15 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.stories.d.ts +9 -0
- package/dist/components/popover.stories.d.ts.map +1 -0
- package/dist/components/progress-ring.d.ts +66 -0
- package/dist/components/progress-ring.d.ts.map +1 -0
- package/dist/components/progress-ring.stories.d.ts +15 -0
- package/dist/components/progress-ring.stories.d.ts.map +1 -0
- package/dist/components/progress.d.ts +16 -0
- package/dist/components/progress.d.ts.map +1 -0
- package/dist/components/progress.stories.d.ts +10 -0
- package/dist/components/progress.stories.d.ts.map +1 -0
- package/dist/components/qr-svg.d.ts +30 -3
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +8 -1
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +13 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group.stories.d.ts +10 -0
- package/dist/components/radio-group.stories.d.ts.map +1 -0
- package/dist/components/scroll-area.d.ts +9 -0
- package/dist/components/scroll-area.d.ts.map +1 -0
- package/dist/components/scroll-area.stories.d.ts +8 -0
- package/dist/components/scroll-area.stories.d.ts.map +1 -0
- package/dist/components/search-field.d.ts +12 -3
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +2 -0
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +5 -1
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/select.d.ts +26 -0
- package/dist/components/select.d.ts.map +1 -0
- package/dist/components/select.stories.d.ts +12 -0
- package/dist/components/select.stories.d.ts.map +1 -0
- package/dist/components/separator.d.ts +10 -0
- package/dist/components/separator.d.ts.map +1 -0
- package/dist/components/separator.stories.d.ts +9 -0
- package/dist/components/separator.stories.d.ts.map +1 -0
- package/dist/components/sheet.d.ts +29 -0
- package/dist/components/sheet.d.ts.map +1 -0
- package/dist/components/sheet.stories.d.ts +12 -0
- package/dist/components/sheet.stories.d.ts.map +1 -0
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/sidebar.d.ts +86 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.stories.d.ts +10 -0
- package/dist/components/sidebar.stories.d.ts.map +1 -0
- package/dist/components/skeleton.d.ts +27 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton.stories.d.ts +11 -0
- package/dist/components/skeleton.stories.d.ts.map +1 -0
- package/dist/components/slider.d.ts +26 -0
- package/dist/components/slider.d.ts.map +1 -0
- package/dist/components/slider.stories.d.ts +12 -0
- package/dist/components/slider.stories.d.ts.map +1 -0
- package/dist/components/spinner.d.ts +2 -0
- package/dist/components/spinner.d.ts.map +1 -1
- package/dist/components/split-view.d.ts +199 -8
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +45 -2
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +4 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.d.ts +102 -0
- package/dist/components/syntax-highlighting.d.ts.map +1 -0
- package/dist/components/syntax-highlighting.stories.d.ts +18 -0
- package/dist/components/syntax-highlighting.stories.d.ts.map +1 -0
- package/dist/components/tab-bar.d.ts +2 -0
- package/dist/components/tab-bar.d.ts.map +1 -1
- package/dist/components/tab-view.d.ts +93 -0
- package/dist/components/tab-view.d.ts.map +1 -0
- package/dist/components/tab-view.stories.d.ts +28 -0
- package/dist/components/tab-view.stories.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +26 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/tabs.stories.d.ts +9 -0
- package/dist/components/tabs.stories.d.ts.map +1 -0
- package/dist/components/text-field.d.ts +9 -0
- package/dist/components/text-field.d.ts.map +1 -0
- package/dist/components/text-field.stories.d.ts +9 -0
- package/dist/components/text-field.stories.d.ts.map +1 -0
- package/dist/components/text-morph.d.ts +8 -0
- package/dist/components/text-morph.d.ts.map +1 -0
- package/dist/components/textarea.d.ts +9 -0
- package/dist/components/textarea.d.ts.map +1 -0
- package/dist/components/toast.d.ts +104 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.stories.d.ts +13 -0
- package/dist/components/toast.stories.d.ts.map +1 -0
- package/dist/components/toggle-group.d.ts +15 -0
- package/dist/components/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group.stories.d.ts +10 -0
- package/dist/components/toggle-group.stories.d.ts.map +1 -0
- package/dist/components/toggle.d.ts +10 -0
- package/dist/components/toggle.d.ts.map +1 -0
- package/dist/components/toggle.stories.d.ts +9 -0
- package/dist/components/toggle.stories.d.ts.map +1 -0
- package/dist/components/tooltip.d.ts +10 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip.stories.d.ts +11 -0
- package/dist/components/tooltip.stories.d.ts.map +1 -0
- package/dist/components/workbench/annotator.d.ts +22 -0
- package/dist/components/workbench/annotator.d.ts.map +1 -0
- package/dist/components/workbench/chat.d.ts +99 -0
- package/dist/components/workbench/chat.d.ts.map +1 -0
- package/dist/components/workbench/chat.stories.d.ts +13 -0
- package/dist/components/workbench/chat.stories.d.ts.map +1 -0
- package/dist/components/workbench/composer-files.d.ts +36 -0
- package/dist/components/workbench/composer-files.d.ts.map +1 -0
- package/dist/components/workbench/composer.d.ts +441 -0
- package/dist/components/workbench/composer.d.ts.map +1 -0
- package/dist/components/workbench/composer.stories.d.ts +35 -0
- package/dist/components/workbench/composer.stories.d.ts.map +1 -0
- package/dist/components/workbench/fixtures.d.ts +38 -0
- package/dist/components/workbench/fixtures.d.ts.map +1 -0
- package/dist/components/workbench/markdown.d.ts +26 -0
- package/dist/components/workbench/markdown.d.ts.map +1 -0
- package/dist/components/workbench/message-scroller.d.ts +16 -0
- package/dist/components/workbench/message-scroller.d.ts.map +1 -0
- package/dist/components/workbench/message-scroller.stories.d.ts +9 -0
- package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -0
- package/dist/components/workbench/model-picker.d.ts +29 -0
- package/dist/components/workbench/model-picker.d.ts.map +1 -0
- package/dist/components/workbench/models.d.ts +32 -0
- package/dist/components/workbench/models.d.ts.map +1 -0
- package/dist/components/workbench/snap-sheet.d.ts +12 -0
- package/dist/components/workbench/snap-sheet.d.ts.map +1 -0
- package/dist/components/workbench/snap-sheet.stories.d.ts +8 -0
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -0
- package/dist/components/workbench/surfaces.d.ts +67 -0
- package/dist/components/workbench/surfaces.d.ts.map +1 -0
- package/dist/components/workbench/surfaces.stories.d.ts +15 -0
- package/dist/components/workbench/surfaces.stories.d.ts.map +1 -0
- package/dist/components/workbench/terminal.d.ts +43 -0
- package/dist/components/workbench/terminal.d.ts.map +1 -0
- package/dist/components/workbench/terminal.stories.d.ts +8 -0
- package/dist/components/workbench/terminal.stories.d.ts.map +1 -0
- package/dist/components/workbench/thread-sidebar.d.ts +100 -0
- package/dist/components/workbench/thread-sidebar.d.ts.map +1 -0
- package/dist/components/workbench/thread-sidebar.stories.d.ts +9 -0
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +1 -0
- package/dist/components/workbench/wb-popover.d.ts +11 -0
- package/dist/components/workbench/wb-popover.d.ts.map +1 -0
- package/dist/components/workbench/workbench-composer.d.ts +26 -0
- package/dist/components/workbench/workbench-composer.d.ts.map +1 -0
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +41 -0
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -0
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +13 -0
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts.map +1 -0
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/map-chat/geo.d.ts +46 -0
- package/dist/demos/map-chat/geo.d.ts.map +1 -0
- package/dist/demos/map-chat/map-agent.d.ts +48 -0
- package/dist/demos/map-chat/map-agent.d.ts.map +1 -0
- package/dist/demos/map-chat/map-chat-demo.d.ts +19 -0
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -0
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +16 -0
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts.map +1 -0
- package/dist/demos/map-chat/map-icons.d.ts +44 -0
- package/dist/demos/map-chat/map-icons.d.ts.map +1 -0
- package/dist/demos/map-chat/places.d.ts +29 -0
- package/dist/demos/map-chat/places.d.ts.map +1 -0
- package/dist/demos/map-chat/tile-map.d.ts +72 -0
- package/dist/demos/map-chat/tile-map.d.ts.map +1 -0
- package/dist/demos/pencilkit/demo-strokes.d.ts +4 -0
- package/dist/demos/pencilkit/demo-strokes.d.ts.map +1 -0
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +15 -0
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -0
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +11 -0
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts.map +1 -0
- package/dist/demos/sidebar-demo.d.ts +9 -0
- package/dist/demos/sidebar-demo.d.ts.map +1 -0
- package/dist/demos/split-view-demos.d.ts +50 -0
- package/dist/demos/split-view-demos.d.ts.map +1 -0
- package/dist/index.css +2 -1
- package/dist/index.d.ts +169 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19360 -14635
- package/dist/lib/chat/chat-icon.d.ts +24 -0
- package/dist/lib/chat/chat-icon.d.ts.map +1 -0
- package/dist/lib/chat/chat-shell-context.d.ts +19 -0
- package/dist/lib/chat/chat-shell-context.d.ts.map +1 -0
- package/dist/lib/chat/chat-tokens.d.ts +72 -0
- package/dist/lib/chat/chat-tokens.d.ts.map +1 -0
- package/dist/lib/chat/chat-users.d.ts +18 -0
- package/dist/lib/chat/chat-users.d.ts.map +1 -0
- package/dist/lib/chat/kvib.d.ts +3 -0
- package/dist/lib/chat/kvib.d.ts.map +1 -0
- package/dist/lib/chat/persistent-host.d.ts +29 -0
- package/dist/lib/chat/persistent-host.d.ts.map +1 -0
- package/dist/lib/chat/title-ref.d.ts +3 -0
- package/dist/lib/chat/title-ref.d.ts.map +1 -0
- package/dist/lib/container.d.ts +21 -0
- package/dist/lib/container.d.ts.map +1 -0
- package/dist/lib/haptics.d.ts +7 -7
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon.d.ts +1297 -6
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +7 -0
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/motion.d.ts +74 -0
- package/dist/lib/motion.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +33 -0
- package/dist/lib/pencilkit/constants.d.ts.map +1 -0
- package/dist/lib/primitives.d.ts +12 -0
- package/dist/lib/primitives.d.ts.map +1 -0
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +38 -0
- package/dist/lib/sheet-drag.d.ts.map +1 -0
- package/dist/lib/syntax.d.ts +55 -0
- package/dist/lib/syntax.d.ts.map +1 -0
- package/dist/lib/theme.d.ts +14 -4
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/dist/lib/workbench/haptics.d.ts +3 -0
- package/dist/lib/workbench/haptics.d.ts.map +1 -0
- package/dist/lib/workbench/icons.d.ts +29 -0
- package/dist/lib/workbench/icons.d.ts.map +1 -0
- package/dist/lib/workbench/motion.d.ts +83 -0
- package/dist/lib/workbench/motion.d.ts.map +1 -0
- package/dist/lib/workbench/press.d.ts +10 -0
- package/dist/lib/workbench/press.d.ts.map +1 -0
- package/dist/lib/workbench/theme.d.ts +16 -0
- package/dist/lib/workbench/theme.d.ts.map +1 -0
- package/dist/lib/workbench/util.d.ts +6 -0
- package/dist/lib/workbench/util.d.ts.map +1 -0
- package/dist/stories/primitive-frame.d.ts +20 -0
- package/dist/stories/primitive-frame.d.ts.map +1 -0
- package/dist/templates/artifact-chat-container.d.ts +63 -0
- package/dist/templates/artifact-chat-container.d.ts.map +1 -0
- package/dist/templates/artifact-chat-container.stories.d.ts +24 -0
- package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -0
- package/dist/templates/chat-shell.d.ts +86 -0
- package/dist/templates/chat-shell.d.ts.map +1 -0
- package/dist/templates/chat-shell.stories.d.ts +22 -0
- package/dist/templates/chat-shell.stories.d.ts.map +1 -0
- package/dist/templates/workbench-shell.d.ts +177 -0
- package/dist/templates/workbench-shell.d.ts.map +1 -0
- package/dist/templates/workbench-shell.stories.d.ts +17 -0
- package/dist/templates/workbench-shell.stories.d.ts.map +1 -0
- package/package.json +28 -8
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
export interface ChatIconProps {
|
|
3
|
+
d: string;
|
|
4
|
+
size?: number;
|
|
5
|
+
sw?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
export declare function ChatIcon({ d, size, sw, className, style }: ChatIconProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const chatIconPaths: {
|
|
11
|
+
readonly hash: "M9 4L7 20M17 4l-2 16M4 9h17M3 15h17";
|
|
12
|
+
readonly chev: "M9 6l6 6-6 6";
|
|
13
|
+
readonly x: "M6 6l12 12M18 6L6 18";
|
|
14
|
+
readonly send: "M12 19V5M6 11l6-6 6 6";
|
|
15
|
+
readonly thread: "M7 8h10M7 12h6M5 4h14v12H9l-4 4z";
|
|
16
|
+
readonly menu: "M4 6.5h16M4 12h16M4 17.5h16";
|
|
17
|
+
readonly bell: "M6 9a6 6 0 0112 0c0 5 2 6 2 6H4s2-1 2-6M10 20a2 2 0 004 0";
|
|
18
|
+
readonly plus: "M12 5v14M5 12h14";
|
|
19
|
+
readonly dm: "M12 4.5c4.7 0 8.5 3 8.5 6.8s-3.8 6.8-8.5 6.8c-1 0-1.9-.1-2.8-.4L5 19.5l1.1-3.4C4.5 14.9 3.5 13.2 3.5 11.3c0-3.8 3.8-6.8 8.5-6.8z";
|
|
20
|
+
readonly bolt: "M13 2L4 14h6l-1 8 9-12h-6z";
|
|
21
|
+
readonly spark: "M12 3l2.2 6.2L20 12l-5.8 2.8L12 21l-2.2-6.2L4 12l5.8-2.8z";
|
|
22
|
+
readonly people: "M9 11a3.5 3.5 0 100-7 3.5 3.5 0 000 7zM2.5 20c0-3.6 2.9-5.5 6.5-5.5s6.5 1.9 6.5 5.5M16 4.6a3.5 3.5 0 010 6.8M18 15c2.1.7 3.5 2.2 3.5 5";
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=chat-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-icon.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/chat-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAG3C,MAAM,WAAW,aAAa;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAED,wBAAgB,QAAQ,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,aAAa,2CAkBxE;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAchB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ChatShellContextValue {
|
|
2
|
+
/** measured width of the shell (the container, not the viewport) */
|
|
3
|
+
width: number;
|
|
4
|
+
/** `width < breakpoint`: the navigation lives in a drawer */
|
|
5
|
+
compact: boolean;
|
|
6
|
+
/** compact navigation drawer visibility */
|
|
7
|
+
navOpen: boolean;
|
|
8
|
+
setNavOpen: (open: boolean) => void;
|
|
9
|
+
/** a ChatShellNav is mounted (so ChatShellNavTrigger has something to open) */
|
|
10
|
+
hasNav: boolean;
|
|
11
|
+
/** called by ChatShellNav on mount; returns its unregister */
|
|
12
|
+
registerNav: () => () => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const ChatShellContext: import('react').Context<ChatShellContextValue | null>;
|
|
15
|
+
/** Shell state for anything rendered inside `<ChatShell>`. Throws outside one. */
|
|
16
|
+
export declare function useChatShell(): ChatShellContextValue;
|
|
17
|
+
/** The same, or null outside a shell — for parts that also render standalone (ServerHeader, ChannelItem…). */
|
|
18
|
+
export declare function useOptionalChatShell(): ChatShellContextValue | null;
|
|
19
|
+
//# sourceMappingURL=chat-shell-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-shell-context.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/chat-shell-context.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,qBAAqB;IACpC,oEAAoE;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,6DAA6D;IAC7D,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,+EAA+E;IAC/E,MAAM,EAAE,OAAO,CAAC;IAChB,8DAA8D;IAC9D,WAAW,EAAE,MAAM,MAAM,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,gBAAgB,uDAAoD,CAAC;AAElF,kFAAkF;AAClF,wBAAgB,YAAY,IAAI,qBAAqB,CAIpD;AAED,8GAA8G;AAC9G,wBAAgB,oBAAoB,IAAI,qBAAqB,GAAG,IAAI,CAEnE"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { Appearance } from '../theme';
|
|
3
|
+
export declare const KFONT = "-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',Roboto,'Helvetica Neue',sans-serif";
|
|
4
|
+
export declare const KMONO = "ui-monospace,'SF Mono',Menlo,Consolas,monospace";
|
|
5
|
+
export declare const KEASE = "cubic-bezier(.32,.72,0,1)";
|
|
6
|
+
/** The chat color token object (dark) — components use these exact literal values. */
|
|
7
|
+
export declare const chatTokens: {
|
|
8
|
+
bg: string;
|
|
9
|
+
rail: string;
|
|
10
|
+
side: string;
|
|
11
|
+
card: string;
|
|
12
|
+
fill: string;
|
|
13
|
+
fill2: string;
|
|
14
|
+
hover: string;
|
|
15
|
+
sep: string;
|
|
16
|
+
label: string;
|
|
17
|
+
mut: string;
|
|
18
|
+
mut3: string;
|
|
19
|
+
/** mention / own-reaction text */
|
|
20
|
+
link: string;
|
|
21
|
+
/** mention chip background */
|
|
22
|
+
mention: string;
|
|
23
|
+
/** own-reaction pill background */
|
|
24
|
+
mine: string;
|
|
25
|
+
/** text on a neutral fill tile (the rail's inactive workspaces) */
|
|
26
|
+
onFill: string;
|
|
27
|
+
green: string;
|
|
28
|
+
orange: string;
|
|
29
|
+
red: string;
|
|
30
|
+
scrim: string;
|
|
31
|
+
/** how much black is mixed into user role colors (pastels need deepening on a light background) */
|
|
32
|
+
inkShade: string;
|
|
33
|
+
};
|
|
34
|
+
export type ChatTokens = {
|
|
35
|
+
[K in keyof typeof chatTokens]: string;
|
|
36
|
+
};
|
|
37
|
+
/** The light counterpart of `chatTokens`. */
|
|
38
|
+
export declare const chatLightTokens: ChatTokens;
|
|
39
|
+
/** Internal alias matching the prototype's `K` object. */
|
|
40
|
+
export declare const K: {
|
|
41
|
+
bg: string;
|
|
42
|
+
rail: string;
|
|
43
|
+
side: string;
|
|
44
|
+
card: string;
|
|
45
|
+
fill: string;
|
|
46
|
+
fill2: string;
|
|
47
|
+
hover: string;
|
|
48
|
+
sep: string;
|
|
49
|
+
label: string;
|
|
50
|
+
mut: string;
|
|
51
|
+
mut3: string;
|
|
52
|
+
/** mention / own-reaction text */
|
|
53
|
+
link: string;
|
|
54
|
+
/** mention chip background */
|
|
55
|
+
mention: string;
|
|
56
|
+
/** own-reaction pill background */
|
|
57
|
+
mine: string;
|
|
58
|
+
/** text on a neutral fill tile (the rail's inactive workspaces) */
|
|
59
|
+
onFill: string;
|
|
60
|
+
green: string;
|
|
61
|
+
orange: string;
|
|
62
|
+
red: string;
|
|
63
|
+
scrim: string;
|
|
64
|
+
/** how much black is mixed into user role colors (pastels need deepening on a light background) */
|
|
65
|
+
inkShade: string;
|
|
66
|
+
};
|
|
67
|
+
/** The same tokens emitted as `--ck-*` CSS custom properties (applied on ChatShell's root). */
|
|
68
|
+
export declare const chatTokenVars: CSSProperties;
|
|
69
|
+
export declare const chatLightTokenVars: CSSProperties;
|
|
70
|
+
/** `--ck-*` vars for an appearance. */
|
|
71
|
+
export declare const chatVars: (appearance?: Appearance) => CSSProperties;
|
|
72
|
+
//# sourceMappingURL=chat-tokens.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-tokens.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/chat-tokens.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,KAAK,iGAC8E,CAAC;AACjG,eAAO,MAAM,KAAK,oDAAoD,CAAC;AACvE,eAAO,MAAM,KAAK,8BAA8B,CAAC;AAEjD,sFAAsF;AACtF,eAAO,MAAM,UAAU;;;;;;;;;;;;IAYrB,kCAAkC;;IAElC,8BAA8B;;IAE9B,mCAAmC;;IAEnC,mEAAmE;;;;;;IAMnE,mGAAmG;;CAEpG,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;KAAG,CAAC,IAAI,MAAM,OAAO,UAAU,GAAG,MAAM;CAAE,CAAC;AAEpE,6CAA6C;AAC7C,eAAO,MAAM,eAAe,EAAE,UAqB7B,CAAC;AAEF,0DAA0D;AAC1D,eAAO,MAAM,CAAC;;;;;;;;;;;;IA3CZ,kCAAkC;;IAElC,8BAA8B;;IAE9B,mCAAmC;;IAEnC,mEAAmE;;;;;;IAMnE,mGAAmG;;CA+B1E,CAAC;AAO5B,+FAA+F;AAC/F,eAAO,MAAM,aAAa,EAAE,aAAkC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,EAAE,aAAuC,CAAC;AAEzE,uCAAuC;AACvC,eAAO,MAAM,QAAQ,GAAI,aAAY,UAAmB,KAAG,aACE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/** A chat participant, as avatars, author names and @mentions render them. */
|
|
3
|
+
export interface ChatUser {
|
|
4
|
+
name: string;
|
|
5
|
+
/** avatar/base color */
|
|
6
|
+
c: string;
|
|
7
|
+
/** name label color */
|
|
8
|
+
role: string;
|
|
9
|
+
bot?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type ChatUsers = Record<string, ChatUser>;
|
|
12
|
+
export interface ChatUsersProviderProps {
|
|
13
|
+
users: ChatUsers;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function ChatUsersProvider({ users, children }: ChatUsersProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function useChatUsers(): ChatUsers;
|
|
18
|
+
//# sourceMappingURL=chat-users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chat-users.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/chat-users.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAE3D,8EAA8E;AAC9E,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,CAAC,EAAE,MAAM,CAAC;IACV,uBAAuB;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAKjD,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,sBAAsB,2CAE5E;AAED,wBAAgB,YAAY,IAAI,SAAS,CAExC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kvib.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/kvib.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,IAAI,GAAI,GAAG,MAAM,GAAG,MAAM,EAAE,SAMxC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ComposerOutletProps } from '../../components/workbench/composer';
|
|
3
|
+
/** A stable, detached element to portal into (display: contents, so it adds no box). */
|
|
4
|
+
export declare function usePersistentHost(slot: string): HTMLElement | null;
|
|
5
|
+
/** Moves `host` into `dock` whenever the dock changes. */
|
|
6
|
+
export declare function useAttachHost(host: HTMLElement | null, dock: HTMLElement | null): void;
|
|
7
|
+
export type OutletValue = Pick<ComposerOutletProps, 'parts' | 'renderCard' | 'className'> | null;
|
|
8
|
+
export interface OutletStore {
|
|
9
|
+
get: () => OutletValue;
|
|
10
|
+
set: (value: OutletValue) => void;
|
|
11
|
+
subscribe: (listener: () => void) => () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function createOutletStore(): OutletStore;
|
|
14
|
+
/** Provided by ArtifactChatContainer to its FloatingChat: dock the shared composer and transcript here. */
|
|
15
|
+
export interface ChatHostContextValue {
|
|
16
|
+
outlet: OutletStore;
|
|
17
|
+
/** Where the composer lives in this layout. */
|
|
18
|
+
composerDock: (el: HTMLElement | null) => void;
|
|
19
|
+
/** Where the transcript lives in this layout. */
|
|
20
|
+
chatDock: (el: HTMLElement | null) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const ChatHostContext: import('react').Context<ChatHostContextValue | null>;
|
|
23
|
+
/** Renders the composer once, into its host, wrapped in the outlet the current layout reported. */
|
|
24
|
+
export declare function ComposerPortal({ store, host, children }: {
|
|
25
|
+
store: OutletStore;
|
|
26
|
+
host: HTMLElement | null;
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}): import('react').ReactPortal | null;
|
|
29
|
+
//# sourceMappingURL=persistent-host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistent-host.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/persistent-host.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvG,OAAO,EAAkB,KAAK,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAS/F,wFAAwF;AACxF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CASlE;AAED,0DAA0D;AAC1D,wBAAgB,aAAa,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,EAAE,IAAI,EAAE,WAAW,GAAG,IAAI,QAK/E;AAGD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,YAAY,GAAG,WAAW,CAAC,GAAG,IAAI,CAAC;AAEjG,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,WAAW,CAAC;IACvB,GAAG,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,CAAC;IAClC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;CACjD;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAc/C;AAED,2GAA2G;AAC3G,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,WAAW,CAAC;IACpB,+CAA+C;IAC/C,YAAY,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/C,iDAAiD;IACjD,QAAQ,EAAE,CAAC,EAAE,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAC;CAC5C;AACD,eAAO,MAAM,eAAe,sDAAmD,CAAC;AAEhF,mGAAmG;AACnG,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;CAAE,sCAS/H"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"title-ref.d.ts","sourceRoot":"","sources":["../../../src/lib/chat/title-ref.ts"],"names":[],"mappings":"AAAA,4GAA4G;AAC5G,eAAO,MAAM,QAAQ,GAAI,OAAO,MAAM,MAAM,IAAI,WAAW,GAAG,IAAI,SAEjE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
/** Measures an element's width with a ResizeObserver. `initial` is used until the first measurement. */
|
|
3
|
+
export declare function useContainerWidth<T extends HTMLElement = HTMLDivElement>(initial?: number): [RefObject<T | null>, number];
|
|
4
|
+
export interface ContainerSize {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
/** Measures an element's width and height with a ResizeObserver (content box, like `useContainerWidth`).
|
|
9
|
+
* `initial` is used until the first measurement; a zero-sized first read (not laid out yet) is ignored. */
|
|
10
|
+
export declare function useContainerSize<T extends HTMLElement = HTMLDivElement>(initial?: ContainerSize): [RefObject<T | null>, ContainerSize];
|
|
11
|
+
export interface SlotProps {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/** A marker component: renders nothing itself; its parent reads the children with `collectSlots`. */
|
|
15
|
+
export type SlotComponent = ((props: SlotProps) => null) & {
|
|
16
|
+
__tkSlot: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function defineSlot(name: string): SlotComponent;
|
|
19
|
+
/** Maps each `defineSlot` child to its children by slot name. Other children are ignored. */
|
|
20
|
+
export declare function collectSlots(children: ReactNode): Record<string, ReactNode>;
|
|
21
|
+
//# sourceMappingURL=container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/lib/container.ts"],"names":[],"mappings":"AAAA,OAAO,EAA+D,KAAK,SAAS,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAKpH,wGAAwG;AACxG,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc,EAAE,OAAO,SAAO,GAAG,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,MAAM,CAAC,CAcvH;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AACD;4GAC4G;AAC5G,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,cAAc,EACrE,OAAO,GAAE,aAA4C,GACpD,CAAC,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,aAAa,CAAC,CAkBtC;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AACD,qGAAqG;AACrG,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhF,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAItD;AAED,6FAA6F;AAC7F,wBAAgB,YAAY,CAAC,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAQ3E"}
|
package/dist/lib/haptics.d.ts
CHANGED
|
@@ -9,17 +9,17 @@ export type HapticImpactStyle = 'light' | 'medium' | 'heavy';
|
|
|
9
9
|
export type HapticNotificationKind = 'success' | 'warning' | 'error';
|
|
10
10
|
export declare const PAT: Record<string, number[]>;
|
|
11
11
|
export declare const Haptics: {
|
|
12
|
-
enabled: boolean;
|
|
13
12
|
_subs: Set<(m: HapticEvent) => void>;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
/** Master switch, persisted in localStorage. Off means no output and no events. */
|
|
14
|
+
enabled: boolean;
|
|
15
|
+
/** The live output path, for indicators and settings screens. */
|
|
16
|
+
readonly engine: string;
|
|
17
|
+
readonly info: Record<string, unknown>;
|
|
18
|
+
/** Installs the gesture listeners. Called on first use; call it early (e.g. on mount) so the very first
|
|
19
|
+
press-time request finds its click. */
|
|
18
20
|
boot(): void;
|
|
19
|
-
_mkSw(): HTMLLabelElement;
|
|
20
21
|
_run(p: number[], meta: HapticEvent): void;
|
|
21
22
|
impact(s?: HapticImpactStyle): void;
|
|
22
|
-
_eager: unknown;
|
|
23
23
|
selection(): void;
|
|
24
24
|
notification(k?: HapticNotificationKind): void;
|
|
25
25
|
on(f: (m: HapticEvent) => void): () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"haptics.d.ts","sourceRoot":"","sources":["../../src/lib/haptics.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"haptics.d.ts","sourceRoot":"","sources":["../../src/lib/haptics.ts"],"names":[],"mappings":"AAyBA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,cAAc,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC7D,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAErE,eAAO,MAAM,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAGxC,CAAC;AAgLF,eAAO,MAAM,OAAO;mBACC,WAAW,KAAK,IAAI;IACvC,mFAAmF;aACpE,OAAO;IAQtB,iEAAiE;qBACnD,MAAM;mBAMR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IASnC;8CAC0C;;YAIlC,MAAM,EAAE,QAAQ,WAAW;eAaxB,iBAAiB;;qBAKX,sBAAsB;UAIjC,CAAC,CAAC,EAAE,WAAW,KAAK,IAAI;CAC/B,CAAC"}
|