@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,441 @@
|
|
|
1
|
+
import { GitbookEditorProps } from '@brett_lamy/docstream-editor/editor';
|
|
2
|
+
import { EditorAttachment } from '@brett_lamy/docstream-editor';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { MenuItemProps } from 'react-aria-components';
|
|
5
|
+
import { ButtonProps } from '../../lib/workbench/press';
|
|
6
|
+
import { WIconName } from '../../lib/workbench/icons';
|
|
7
|
+
import { ComposerAnnotator } from './annotator';
|
|
8
|
+
import { ComposerAttachmentKind } from './composer-files';
|
|
9
|
+
import { SpringSheetDragState } from '../../lib/workbench/motion';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
export type { ComposerAttachmentKind } from './composer-files';
|
|
12
|
+
/**
|
|
13
|
+
* A file in the draft. Images are data URLs (they chip into the editor and can be annotated); other files keep
|
|
14
|
+
* an object URL in `src` (revoked when removed, or when the Composer unmounts) and show as tiles.
|
|
15
|
+
*/
|
|
16
|
+
export interface ComposerAttachment extends EditorAttachment {
|
|
17
|
+
/** What it is, for its tile (derived from `type` / `name` when missing). */
|
|
18
|
+
kind?: ComposerAttachmentKind;
|
|
19
|
+
/** The picked, dropped or pasted file (for uploading it). */
|
|
20
|
+
file?: File;
|
|
21
|
+
/** A still for the tile: a video's first frame, a document's first page (an image URL). */
|
|
22
|
+
preview?: string;
|
|
23
|
+
/** The first lines of a text or code file, for its tile. */
|
|
24
|
+
excerpt?: string;
|
|
25
|
+
}
|
|
26
|
+
/** Where attached files came from. */
|
|
27
|
+
export type ComposerFileSource = 'picker' | 'drop' | 'paste' | 'api';
|
|
28
|
+
/** A file the Composer turned away, and why. */
|
|
29
|
+
export interface ComposerFileRejection {
|
|
30
|
+
file: File;
|
|
31
|
+
/** `type`: not in `acceptedFileTypes` · `size`: over `maxFileSize` · `count`: past `maxFiles`. */
|
|
32
|
+
reason: 'type' | 'size' | 'count';
|
|
33
|
+
}
|
|
34
|
+
export interface ComposerAttachOptions {
|
|
35
|
+
/** Where the files came from (passed to `onDropFiles`; default `api`). */
|
|
36
|
+
source?: ComposerFileSource;
|
|
37
|
+
/** A viewport point (e.g. a drop's) — image chips land there when it is over the editor, else at the caret. */
|
|
38
|
+
point?: {
|
|
39
|
+
x: number;
|
|
40
|
+
y: number;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
type ComposerEditor = NonNullable<Parameters<NonNullable<GitbookEditorProps['onEditorReady']>>[0]>;
|
|
44
|
+
export interface ComposerContextValue {
|
|
45
|
+
/** The draft as GitBook-flavored Markdown (attachment chips serialize as ``). */
|
|
46
|
+
value: string;
|
|
47
|
+
setValue: (markdown: string) => void;
|
|
48
|
+
attachments: ComposerAttachment[];
|
|
49
|
+
addAttachment: (attachment: ComposerAttachment) => void;
|
|
50
|
+
/** Drops an attachment and its chip in the editor. */
|
|
51
|
+
removeAttachment: (id: string) => void;
|
|
52
|
+
updateAttachment: (id: string, patch: Partial<ComposerAttachment>) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Adds files as attachments, after the `acceptedFileTypes` / `maxFileSize` / `maxFiles` checks and the
|
|
55
|
+
* `onDropFiles` hook. Images chip into the editor (at `point` when over it, else the caret); other files
|
|
56
|
+
* become tiles with a preview where one is cheap (a video's first frame, a text file's first lines).
|
|
57
|
+
*/
|
|
58
|
+
attachFiles: (files: File[], options?: ComposerAttachOptions) => void;
|
|
59
|
+
/** The Composer's `acceptedFileTypes` (the add button and the drop zone use it). */
|
|
60
|
+
acceptedFileTypes?: string[];
|
|
61
|
+
expanded: boolean;
|
|
62
|
+
setExpanded: (expanded: boolean) => void;
|
|
63
|
+
streaming: boolean;
|
|
64
|
+
/** Whether there is anything to send. */
|
|
65
|
+
canSend: boolean;
|
|
66
|
+
send: () => void;
|
|
67
|
+
stop: () => void;
|
|
68
|
+
/** Opens the annotator for an attachment (a plain preview when the annotator is opted out). */
|
|
69
|
+
annotate: (id: string) => void;
|
|
70
|
+
/** An annotator is in effect (PencilKit by default, the `annotator` prop, a ComposerAnnotatorProvider, or `annotateCanvas`). */
|
|
71
|
+
canAnnotate: boolean;
|
|
72
|
+
editor: ComposerEditor | null;
|
|
73
|
+
/** @internal ComposerInput registers its editor here. */
|
|
74
|
+
setEditor: (editor: ComposerEditor | null) => void;
|
|
75
|
+
/** The root element; bumps measure against it. */
|
|
76
|
+
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
77
|
+
/** @internal set by a ComposerOutlet above the root. */
|
|
78
|
+
renderCard?: (card: React.ReactNode) => React.ReactNode;
|
|
79
|
+
/** How far the composer is collapsed: the full card, a single-row pill, or a FAB. */
|
|
80
|
+
collapsed: ComposerCollapse;
|
|
81
|
+
setCollapsed: (collapsed: ComposerCollapse) => void;
|
|
82
|
+
/** @internal where ComposerOptions move to while compact. */
|
|
83
|
+
optionsOutlet: HTMLElement | null;
|
|
84
|
+
/** @internal */
|
|
85
|
+
setOptionsOutlet: (el: HTMLElement | null) => void;
|
|
86
|
+
/** @internal the FAB the card folds into, when this composer can fold. */
|
|
87
|
+
fab: {
|
|
88
|
+
icon?: React.ReactNode;
|
|
89
|
+
restore: () => void;
|
|
90
|
+
} | null;
|
|
91
|
+
}
|
|
92
|
+
/** `none`: the full card · `compact`: one row, options in the bottom bump · `fab`: a floating button. */
|
|
93
|
+
export type ComposerCollapse = 'none' | 'compact' | 'fab';
|
|
94
|
+
export declare function useComposer(): ComposerContextValue;
|
|
95
|
+
export interface ComposerOutletProps {
|
|
96
|
+
/** Parts added to the Composer below this outlet, as if they were its first children (e.g. a top bump). */
|
|
97
|
+
parts?: React.ReactNode;
|
|
98
|
+
/** Wraps (or replaces) the Composer's card, e.g. to swap it for a status while an agent works. */
|
|
99
|
+
renderCard?: (card: React.ReactNode) => React.ReactNode;
|
|
100
|
+
/** Classes merged into the Composer root. */
|
|
101
|
+
className?: string;
|
|
102
|
+
children?: React.ReactNode;
|
|
103
|
+
}
|
|
104
|
+
/** Lets an ancestor contribute parts to the nearest Composer inside it. The Composer consumes it, so
|
|
105
|
+
Composers nested in those parts are unaffected. */
|
|
106
|
+
export declare function ComposerOutlet({ parts, renderCard, className, children }: ComposerOutletProps): import("react/jsx-runtime").JSX.Element;
|
|
107
|
+
export interface ComposerProps {
|
|
108
|
+
/** Controlled draft Markdown. */
|
|
109
|
+
value?: string;
|
|
110
|
+
defaultValue?: string;
|
|
111
|
+
onValueChange?: (markdown: string) => void;
|
|
112
|
+
/** Controlled attachments (pasted, dropped, or picked files). */
|
|
113
|
+
attachments?: ComposerAttachment[];
|
|
114
|
+
defaultAttachments?: ComposerAttachment[];
|
|
115
|
+
onAttachmentsChange?: (attachments: ComposerAttachment[]) => void;
|
|
116
|
+
/** Tall drafting mode. */
|
|
117
|
+
expanded?: boolean;
|
|
118
|
+
defaultExpanded?: boolean;
|
|
119
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
120
|
+
/** An agent is replying: send is held and ComposerSend becomes a stop control. */
|
|
121
|
+
streaming?: boolean;
|
|
122
|
+
onStop?: () => void;
|
|
123
|
+
/** Called with the trimmed Markdown (attachment chips as `attachment:` refs) and the attachments. */
|
|
124
|
+
onSubmit?: (markdown: string, attachments: ComposerAttachment[]) => void;
|
|
125
|
+
/**
|
|
126
|
+
* The image annotator the AnnotateLightbox runs when an attachment is pressed. Defaults to the nearest
|
|
127
|
+
* ComposerAnnotatorProvider's, else `PencilKitAnnotator`; `null` opts out (pressing an attachment then opens a
|
|
128
|
+
* plain preview).
|
|
129
|
+
*/
|
|
130
|
+
annotator?: ComposerAnnotator | null;
|
|
131
|
+
/** A fixed drawing surface for the AnnotateLightbox instead of an `annotator` (its first <svg> is flattened). */
|
|
132
|
+
annotateCanvas?: React.ReactNode;
|
|
133
|
+
/**
|
|
134
|
+
* Files the composer takes — from the add button, a drop, or a paste — as MIME types, wildcards and
|
|
135
|
+
* extensions (`['image/*', 'application/pdf', '.md']`). Default: any file. Others are turned away with a toast.
|
|
136
|
+
*/
|
|
137
|
+
acceptedFileTypes?: string[];
|
|
138
|
+
/** The largest file (bytes) the composer takes; larger ones are turned away with a toast. */
|
|
139
|
+
maxFileSize?: number;
|
|
140
|
+
/** How many attachments a draft can hold; files past it are turned away with a toast. */
|
|
141
|
+
maxFiles?: number;
|
|
142
|
+
/**
|
|
143
|
+
* Sees every batch of files that passed the checks, before they attach (from `picker`, `drop`, `paste`, or
|
|
144
|
+
* `api`). Return `false` to take them yourself (nothing attaches), or an array to attach those instead.
|
|
145
|
+
*/
|
|
146
|
+
onDropFiles?: (files: File[], source: ComposerFileSource) => File[] | false | void;
|
|
147
|
+
/** Called with the files turned away. Providing it replaces the default warning toast. */
|
|
148
|
+
onFilesRejected?: (rejections: ComposerFileRejection[]) => void;
|
|
149
|
+
/** Collapse state: the full card, a single-row `compact` pill, or a `fab`. */
|
|
150
|
+
collapsed?: ComposerCollapse;
|
|
151
|
+
defaultCollapsed?: ComposerCollapse;
|
|
152
|
+
onCollapsedChange?: (collapsed: ComposerCollapse) => void;
|
|
153
|
+
/**
|
|
154
|
+
* A scroller beside the composer (a chat transcript). Scrolling away from its anchor (up, away from the
|
|
155
|
+
* newest message, by default) collapses the composer to `compact`; with `collapseTo="fab"` a flick or a long
|
|
156
|
+
* scroll away folds it into a FAB — the card morphing into the button as one shape. Scrolling back near the
|
|
157
|
+
* anchor, or tapping the FAB, restores it. Never collapses while the composer has focus, an attachment, or the
|
|
158
|
+
* annotator open, and never folds a draft or a reply into the FAB.
|
|
159
|
+
*/
|
|
160
|
+
collapseOnScroll?: React.RefObject<HTMLElement | null>;
|
|
161
|
+
/** How far scrolling collapses the composer (default `compact`). */
|
|
162
|
+
collapseTo?: 'compact' | 'fab';
|
|
163
|
+
/**
|
|
164
|
+
* Which end of the scroller is "home". `bottom` (default, chats): the transcript rests at its newest
|
|
165
|
+
* message, scrolling up collapses and scrolling back down restores. `top` (documents): the reverse.
|
|
166
|
+
*/
|
|
167
|
+
collapseAnchor?: 'bottom' | 'top';
|
|
168
|
+
/** Where the FAB sits in the composer's box. */
|
|
169
|
+
fabPosition?: 'start' | 'center' | 'end';
|
|
170
|
+
/** The FAB's icon (defaults to a compose glyph). */
|
|
171
|
+
fabIcon?: React.ReactNode;
|
|
172
|
+
children?: React.ReactNode;
|
|
173
|
+
className?: string;
|
|
174
|
+
style?: React.CSSProperties;
|
|
175
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
176
|
+
}
|
|
177
|
+
export declare function Composer({ value: valueProp, defaultValue, onValueChange, attachments: attachmentsProp, defaultAttachments, onAttachmentsChange, expanded: expandedProp, defaultExpanded, onExpandedChange, streaming, onStop, onSubmit, annotator: annotatorProp, annotateCanvas, acceptedFileTypes, maxFileSize, maxFiles, onDropFiles, onFilesRejected, collapsed: collapsedProp, defaultCollapsed, onCollapsedChange, collapseOnScroll, collapseTo, collapseAnchor, fabPosition, fabIcon, children, className, style, ref, }: ComposerProps): import("react/jsx-runtime").JSX.Element;
|
|
178
|
+
export declare const composerFabVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
179
|
+
export interface ComposerFabProps extends Omit<ButtonProps, 'children'> {
|
|
180
|
+
className?: string;
|
|
181
|
+
style?: React.CSSProperties;
|
|
182
|
+
children?: React.ReactNode;
|
|
183
|
+
}
|
|
184
|
+
/** The folded composer: a round button (a Composer in `fab` mode renders one; FloatingChat reuses it). */
|
|
185
|
+
export declare function ComposerFab({ className, children, 'aria-label': ariaLabel, ...props }: ComposerFabProps): import("react/jsx-runtime").JSX.Element;
|
|
186
|
+
/**
|
|
187
|
+
* The option pills (model, effort, access…). They render in place — the footer — and, while the composer is
|
|
188
|
+
* `compact`, move into the `ComposerOptionsOutlet` (e.g. in the bottom bump). The same elements move (a stable
|
|
189
|
+
* portal host is re-attached), so menus keep their state.
|
|
190
|
+
*/
|
|
191
|
+
export declare function ComposerOptions({ children }: {
|
|
192
|
+
children?: React.ReactNode;
|
|
193
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
194
|
+
/** Where ComposerOptions go while the composer is compact (typically in the bottom bump), after a separator. */
|
|
195
|
+
export declare function ComposerOptionsOutlet({ className }: {
|
|
196
|
+
className?: string;
|
|
197
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
198
|
+
export declare const composerCardVariants: (props?: ({
|
|
199
|
+
size?: "default" | "lg" | null | undefined;
|
|
200
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
201
|
+
export interface ComposerCardProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof composerCardVariants> {
|
|
202
|
+
/**
|
|
203
|
+
* The card is a react-aria drop zone for files (default): drag files from the OS onto it and they attach; a
|
|
204
|
+
* drop overlay springs in while they hover. Keyboard users reach a hidden drop target after the card's
|
|
205
|
+
* controls, where react-aria's keyboard drag and drop and ⌘V paste work. `false` opts out.
|
|
206
|
+
*/
|
|
207
|
+
dropZone?: boolean;
|
|
208
|
+
/** The overlay's title while files hover (default "Drop to attach"). */
|
|
209
|
+
dropLabel?: React.ReactNode;
|
|
210
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
211
|
+
}
|
|
212
|
+
/** The bordered surface. Holds the input and its addons, takes dropped files; an outlet may wrap it. */
|
|
213
|
+
export declare function ComposerCard({ size, dropZone, dropLabel, className, ref, children, ...props }: ComposerCardProps): import("react/jsx-runtime").JSX.Element;
|
|
214
|
+
export declare const composerAddonVariants: (props?: ({
|
|
215
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
216
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
217
|
+
export interface ComposerAddonProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof composerAddonVariants> {
|
|
218
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
219
|
+
}
|
|
220
|
+
/** A row above/below the input (`block-*`) or a column beside it (`inline-*`), like InputGroupAddon. */
|
|
221
|
+
export declare function ComposerAddon({ align, className, ref, ...props }: ComposerAddonProps): import("react/jsx-runtime").JSX.Element;
|
|
222
|
+
/** The footer row: `ComposerAddon align="block-end"` that wraps its controls. While the composer is compact it
|
|
223
|
+
becomes the inline-end column of the single row (its ComposerOptions move to the bump). */
|
|
224
|
+
export declare function ComposerFooter({ className, ...props }: Omit<ComposerAddonProps, 'align'>): import("react/jsx-runtime").JSX.Element;
|
|
225
|
+
/** Pushes the controls after it to the end of a row. */
|
|
226
|
+
export declare function ComposerSpacer({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
227
|
+
/** A thin vertical rule between footer pills. */
|
|
228
|
+
export declare function ComposerSeparator({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
229
|
+
/** Muted inline text with an optional leading icon (a bump's "Local checkout", a footer hint). */
|
|
230
|
+
export declare function ComposerText({ icon, className, children, ...props }: React.HTMLAttributes<HTMLSpanElement> & {
|
|
231
|
+
icon?: WIconName;
|
|
232
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
233
|
+
export declare const composerButtonVariants: (props?: ({
|
|
234
|
+
variant?: "primary" | "destructive" | "ghost" | "pill" | null | undefined;
|
|
235
|
+
size?: "round" | "icon" | "pill" | null | undefined;
|
|
236
|
+
tint?: boolean | null | undefined;
|
|
237
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
238
|
+
export interface ComposerButtonProps extends ButtonProps, VariantProps<typeof composerButtonVariants> {
|
|
239
|
+
className?: string;
|
|
240
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
241
|
+
}
|
|
242
|
+
/** A react-aria Button in the composer's styles: `ghost` icon button, option `pill`, `primary` / `destructive` circles. */
|
|
243
|
+
export declare function ComposerButton({ variant, size, tint, className, ...props }: ComposerButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
244
|
+
/** The pill face: optional icon, label, chevron. */
|
|
245
|
+
export declare function ComposerPillLabel({ icon, children }: {
|
|
246
|
+
icon?: React.ReactNode;
|
|
247
|
+
children?: React.ReactNode;
|
|
248
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
249
|
+
export interface ComposerSelectOption {
|
|
250
|
+
id: string;
|
|
251
|
+
label: string;
|
|
252
|
+
/** Text shown on the pill when selected (defaults to `label`). */
|
|
253
|
+
short?: string;
|
|
254
|
+
description?: string;
|
|
255
|
+
}
|
|
256
|
+
export interface ComposerSelectProps {
|
|
257
|
+
'aria-label': string;
|
|
258
|
+
options: ComposerSelectOption[];
|
|
259
|
+
value?: string;
|
|
260
|
+
defaultValue?: string;
|
|
261
|
+
onChange?: (id: string) => void;
|
|
262
|
+
/** Leading icon (WIcon name or node). */
|
|
263
|
+
icon?: WIconName | React.ReactNode;
|
|
264
|
+
tint?: boolean;
|
|
265
|
+
className?: string;
|
|
266
|
+
/** Popover min width. */
|
|
267
|
+
menuClassName?: string;
|
|
268
|
+
}
|
|
269
|
+
export declare const composerMenuItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
|
|
270
|
+
export declare function ComposerMenuItem({ className, children, ...props }: MenuItemProps & {
|
|
271
|
+
className?: string;
|
|
272
|
+
children?: React.ReactNode;
|
|
273
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
274
|
+
/** An option pill that opens a react-aria Menu of choices (effort, access, …). Ticks on selection. */
|
|
275
|
+
export declare function ComposerSelect({ 'aria-label': ariaLabel, options, value: valueProp, defaultValue, onChange, icon, tint, className, menuClassName, }: ComposerSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
276
|
+
export interface ComposerStopProps extends Omit<ComposerButtonProps, 'variant'> {
|
|
277
|
+
/** `ring`: a spinning progress ring with a stop square (Workbench); `solid`: a red circle (T3 Code). */
|
|
278
|
+
variant?: 'ring' | 'solid';
|
|
279
|
+
/** Render even when not streaming. */
|
|
280
|
+
forceMount?: boolean;
|
|
281
|
+
}
|
|
282
|
+
/** Stops the reply. Renders only while streaming; pops in and out beside its neighbours. */
|
|
283
|
+
export declare function ComposerStop({ variant, forceMount, className, ...props }: ComposerStopProps): import("react/jsx-runtime").JSX.Element;
|
|
284
|
+
export interface ComposerSendProps extends Omit<ComposerButtonProps, 'variant'> {
|
|
285
|
+
/** While streaming, become the stop control (default). `false` keeps the send circle (pair it with ComposerStop). */
|
|
286
|
+
morph?: boolean;
|
|
287
|
+
/** The stop control's look when morphing. */
|
|
288
|
+
stopVariant?: ComposerStopProps['variant'];
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* The send circle; disabled while there is nothing to send. While streaming it morphs into the stop control —
|
|
292
|
+
* the same button: the fill drains (ring) or turns red (solid) and the arrow turns into the stop square.
|
|
293
|
+
*/
|
|
294
|
+
export declare function ComposerSend({ morph, stopVariant, className, ...props }: ComposerSendProps): import("react/jsx-runtime").JSX.Element;
|
|
295
|
+
export interface ComposerAddProps extends Omit<ComposerButtonProps, 'variant' | 'children'> {
|
|
296
|
+
/** Files the picker offers (MIME types, wildcards, extensions). Defaults to the Composer's `acceptedFileTypes`. */
|
|
297
|
+
acceptedFileTypes?: string[];
|
|
298
|
+
/** Pick several files at once (default `true`). */
|
|
299
|
+
allowsMultiple?: boolean;
|
|
300
|
+
/** Pick a whole directory instead of files. */
|
|
301
|
+
acceptDirectory?: boolean;
|
|
302
|
+
/** On mobile, open the camera (`user` / `environment`) rather than the library. */
|
|
303
|
+
defaultCamera?: 'user' | 'environment';
|
|
304
|
+
/** The glyph (a WIcon name or a node; default `plus`). */
|
|
305
|
+
icon?: WIconName | React.ReactNode;
|
|
306
|
+
/** Accessible name and tooltip (default "Add files"). */
|
|
307
|
+
label?: string;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* The "+" button: a react-aria `FileTrigger` that opens the file picker and attaches what you pick — images
|
|
311
|
+
* as chips at the caret, other files as tiles. Pair it with `ComposerAttachments`.
|
|
312
|
+
*/
|
|
313
|
+
export declare function ComposerAdd({ acceptedFileTypes, allowsMultiple, acceptDirectory, defaultCamera, icon, label, className, onPress, ...props }: ComposerAddProps): import("react/jsx-runtime").JSX.Element;
|
|
314
|
+
export interface ComposerAttachProps extends ComposerAddProps {
|
|
315
|
+
/** @deprecated use `acceptedFileTypes` — an `<input accept>` string (e.g. `"image/*,.pdf"`). */
|
|
316
|
+
accept?: string;
|
|
317
|
+
}
|
|
318
|
+
/** The paperclip: `ComposerAdd` with a clip glyph (kept for existing compositions). */
|
|
319
|
+
export declare function ComposerAttach({ accept, acceptedFileTypes, label, ...props }: ComposerAttachProps): import("react/jsx-runtime").JSX.Element;
|
|
320
|
+
/** Toggles the tall drafting mode. Sits in the card's top-right corner unless restyled. */
|
|
321
|
+
export declare function ComposerExpand({ className }: {
|
|
322
|
+
className?: string;
|
|
323
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
324
|
+
/**
|
|
325
|
+
* The attachments as tiles: images as thumbnails (click to annotate), videos as their first frame, text and
|
|
326
|
+
* code as their first lines, other files as a glyph with name and size (click to open). ✕ — or Backspace /
|
|
327
|
+
* Delete on a focused tile — removes one (an image's chip goes too). A block-start addon. The strip opens and
|
|
328
|
+
* closes as a height morph, and tiles pop in and out while their neighbours slide.
|
|
329
|
+
*/
|
|
330
|
+
export declare function ComposerAttachments({ className, ...props }: Omit<ComposerAddonProps, 'align'>): import("react/jsx-runtime").JSX.Element;
|
|
331
|
+
export interface ComposerInputProps {
|
|
332
|
+
placeholder?: string;
|
|
333
|
+
autoFocus?: boolean;
|
|
334
|
+
/** How pasted/dropped images enter: attachment chips (default) or inline image blocks. */
|
|
335
|
+
imagePaste?: 'chip' | 'inline';
|
|
336
|
+
slashMenu?: boolean;
|
|
337
|
+
references?: GitbookEditorProps['references'];
|
|
338
|
+
className?: string;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* The Docstream WYSIWYG editor. Enter sends from a plain paragraph (lists, quotes, code keep their own Enter),
|
|
342
|
+
* ⌘/Ctrl+Enter always sends, Shift+Enter breaks the line; pasted Markdown becomes structure; pasted or dropped
|
|
343
|
+
* images become attachment chips (hover previews, click annotates).
|
|
344
|
+
*/
|
|
345
|
+
export declare function ComposerInput({ placeholder, autoFocus, imagePaste, slashMenu, references, className, }: ComposerInputProps): import("react/jsx-runtime").JSX.Element;
|
|
346
|
+
export declare const composerBumpVariants: (props?: ({
|
|
347
|
+
side?: "bottom" | "top" | null | undefined;
|
|
348
|
+
variant?: "attached" | "detached" | "flush" | null | undefined;
|
|
349
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
350
|
+
export interface ComposerBumpContextValue {
|
|
351
|
+
side: 'top' | 'bottom';
|
|
352
|
+
draggable: boolean;
|
|
353
|
+
open: boolean;
|
|
354
|
+
setOpen: (open: boolean) => void;
|
|
355
|
+
/** Current revealed body height (px). */
|
|
356
|
+
reveal: number;
|
|
357
|
+
/** 0 at rest (peek), 1 fully open. */
|
|
358
|
+
progress: number;
|
|
359
|
+
peek: number;
|
|
360
|
+
maxReveal: number;
|
|
361
|
+
dragging: boolean;
|
|
362
|
+
/** @internal */
|
|
363
|
+
handleProps: SpringSheetDragState['handlers'] | null;
|
|
364
|
+
/** @internal */
|
|
365
|
+
toggle: () => void;
|
|
366
|
+
/** @internal */
|
|
367
|
+
windowRef: React.RefObject<HTMLDivElement | null>;
|
|
368
|
+
contentId: string;
|
|
369
|
+
}
|
|
370
|
+
export declare function useComposerBump(): ComposerBumpContextValue;
|
|
371
|
+
export interface ComposerBumpProgress {
|
|
372
|
+
/** 0 at rest, 1 fully open. */
|
|
373
|
+
progress: number;
|
|
374
|
+
/** Revealed body height (px). */
|
|
375
|
+
reveal: number;
|
|
376
|
+
/** 0–1 fold towards a FAB while dragging below rest (minimizable bumps). */
|
|
377
|
+
minimize: number;
|
|
378
|
+
dragging: boolean;
|
|
379
|
+
/** The spring is carrying the bump to rest (hosts driving CSS from progress should not transition then). */
|
|
380
|
+
settling: boolean;
|
|
381
|
+
}
|
|
382
|
+
export interface ComposerBumpProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onDrag'>, VariantProps<typeof composerBumpVariants> {
|
|
383
|
+
side?: 'top' | 'bottom';
|
|
384
|
+
/** Horizontal inset from the card edges for `attached` bumps (px). */
|
|
385
|
+
inset?: number;
|
|
386
|
+
/** A top bump whose `ComposerBumpHandle` drags its `ComposerBumpContent` open, like a sheet. */
|
|
387
|
+
draggable?: boolean;
|
|
388
|
+
open?: boolean;
|
|
389
|
+
defaultOpen?: boolean;
|
|
390
|
+
onOpenChange?: (open: boolean) => void;
|
|
391
|
+
/** Body height kept visible while closed. */
|
|
392
|
+
peek?: number;
|
|
393
|
+
/** Body height when open, when there are no `bounds` to fill. */
|
|
394
|
+
maxReveal?: number;
|
|
395
|
+
/** Grow until the bump reaches this element's top edge (minus `boundsInset`). */
|
|
396
|
+
bounds?: React.RefObject<HTMLElement | null>;
|
|
397
|
+
boundsInset?: number;
|
|
398
|
+
/** Dragging below rest folds the host's surface into a FAB (reported through onProgressChange / onMinimizedChange). */
|
|
399
|
+
minimizable?: boolean;
|
|
400
|
+
minimized?: boolean;
|
|
401
|
+
onMinimizedChange?: (minimized: boolean) => void;
|
|
402
|
+
/** Fires as the bump moves, so a host can drive a scrim, a width, a FAB. */
|
|
403
|
+
onProgressChange?: (progress: ComposerBumpProgress) => void;
|
|
404
|
+
/** Escape closes an open draggable bump (default). */
|
|
405
|
+
closeOnEscape?: boolean;
|
|
406
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
407
|
+
}
|
|
408
|
+
/**
|
|
409
|
+
* A strip attached above (`side="top"`) or below the card. Bumps order themselves by side, so they can be
|
|
410
|
+
* placed anywhere among the Composer's children. With `draggable`, a top bump is a sheet: its handle pulls
|
|
411
|
+
* the content open one-to-one with the pointer and releases snap open or closed with a tick.
|
|
412
|
+
*/
|
|
413
|
+
export declare function ComposerBump({ side, variant, inset, draggable, open: openProp, defaultOpen, onOpenChange, peek: requestedPeek, maxReveal: maxRevealProp, bounds, boundsInset, minimizable, minimized, onMinimizedChange, onProgressChange, closeOnEscape, className, style, children, ref, ...props }: ComposerBumpProps): import("react/jsx-runtime").JSX.Element;
|
|
414
|
+
export interface ComposerBumpHandleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
415
|
+
/** Show the grip bar above the row (draggable bumps; default true). */
|
|
416
|
+
grip?: boolean;
|
|
417
|
+
/** Accessible name of the open/close control. */
|
|
418
|
+
label?: string;
|
|
419
|
+
}
|
|
420
|
+
/** The bump's row. In a draggable bump it is the drag handle: pull up to open, tap the grip to toggle. */
|
|
421
|
+
export declare function ComposerBumpHandle({ grip, label, className, children, ...props }: ComposerBumpHandleProps): import("react/jsx-runtime").JSX.Element;
|
|
422
|
+
export interface ComposerBumpContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
423
|
+
/** Accessible name of the revealed region. */
|
|
424
|
+
label?: string;
|
|
425
|
+
}
|
|
426
|
+
/** The body a draggable bump reveals above its handle. Laid out at its full open height and pinned to the
|
|
427
|
+
handle, so it slides out without reflowing mid-drag. */
|
|
428
|
+
export declare function ComposerBumpContent({ label, className, children, ...props }: ComposerBumpContentProps): import("react/jsx-runtime").JSX.Element;
|
|
429
|
+
export interface AnnotateLightboxProps {
|
|
430
|
+
src: string;
|
|
431
|
+
onClose: () => void;
|
|
432
|
+
onSave: (dataUrl: string) => void;
|
|
433
|
+
/** A fixed drawing surface (its first <svg> is flattened), instead of an annotator. */
|
|
434
|
+
canvas?: React.ReactNode;
|
|
435
|
+
/** The annotator to run; defaults to the nearest ComposerAnnotatorProvider's, else PencilKit. `null` forces the preview. */
|
|
436
|
+
annotator?: ComposerAnnotator | null;
|
|
437
|
+
/** The element the image zooms out of on open and back into on close (a thumbnail); else it scales in. */
|
|
438
|
+
origin?: () => HTMLElement | null;
|
|
439
|
+
}
|
|
440
|
+
export declare function AnnotateLightbox({ src, onClose, onSave, canvas, annotator: annotatorProp, origin }: AnnotateLightboxProps): import("react/jsx-runtime").JSX.Element;
|
|
441
|
+
//# sourceMappingURL=composer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/composer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAi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AAC;CAChB;AAED;2DAC2D;AAC3D,wBAAgB,mBAAmB,CAAC,EAAE,KAAiB,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,2CA2BjH;AAMD,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,uFAAuF;IACvF,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,4HAA4H;IAC5H,SAAS,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACrC,0GAA0G;IAC1G,MAAM,CAAC,EAAE,MAAM,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,qBAAqB,2CAgMzH"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Streaming: Story;
|
|
7
|
+
export declare const Light: Story;
|
|
8
|
+
export declare const Interactive: Story;
|
|
9
|
+
export declare const T3Composition: Story;
|
|
10
|
+
export declare const T3CompositionLight: Story;
|
|
11
|
+
export declare const DraggableBumpOpen: Story;
|
|
12
|
+
export declare const Compact: Story;
|
|
13
|
+
export declare const CompactLight: Story;
|
|
14
|
+
export declare const Fab: Story;
|
|
15
|
+
export declare const ScrollLinked: Story;
|
|
16
|
+
export declare const CardOnly: Story;
|
|
17
|
+
/** Addons align like InputGroupAddon: block-start / block-end rows, inline-start / inline-end columns. */
|
|
18
|
+
export declare const Addons: Story;
|
|
19
|
+
export declare const Buttons: Story;
|
|
20
|
+
export declare const Bumps: Story;
|
|
21
|
+
/** A pasted image: an inline chip in the text and a thumbnail in the strip (seeded). Hover the chip for the
|
|
22
|
+
full image; click either to annotate. */
|
|
23
|
+
export declare const ImageChip: Story;
|
|
24
|
+
export declare const SelectOpen: Story;
|
|
25
|
+
export declare const ModelPickerOpen: Story;
|
|
26
|
+
export declare const ModelPickerOpenLight: Story;
|
|
27
|
+
export declare const Annotate: Story;
|
|
28
|
+
/** The "+" button (react-aria FileTrigger): pick any files; images chip into the text, others become tiles. */
|
|
29
|
+
export declare const AddButton: Story;
|
|
30
|
+
export declare const DropOverlay: Story;
|
|
31
|
+
export declare const DropOverlayLight: Story;
|
|
32
|
+
/** Every kind of file: an image thumbnail, code's first lines, a video's first frame, and glyph tiles. */
|
|
33
|
+
export declare const MixedAttachments: Story;
|
|
34
|
+
export declare const MixedAttachmentsLight: Story;
|
|
35
|
+
//# sourceMappingURL=composer.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer.stories.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/composer.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAkC5D,OAAO,kBAAkB,CAAC;AAa1B,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAoCtB,eAAO,MAAM,OAAO,EAAE,KAA8D,CAAC;AACrF,eAAO,MAAM,SAAS,EAAE,KAA0F,CAAC;AACnH,eAAO,MAAM,KAAK,EAAE,KAAiF,CAAC;AAyBtG,eAAO,MAAM,WAAW,EAAE,KAAqD,CAAC;AA2EhF,eAAO,MAAM,aAAa,EAAE,KAAwG,CAAC;AACrI,eAAO,MAAM,kBAAkB,EAAE,KAAmI,CAAC;AACrK,eAAO,MAAM,iBAAiB,EAAE,KAAkI,CAAC;AAGnK,eAAO,MAAM,OAAO,EAAE,KAAwI,CAAC;AAC/J,eAAO,MAAM,YAAY,EAAE,KAA2J,CAAC;AACvL,eAAO,MAAM,GAAG,EAAE,KAAsJ,CAAC;AAkEzK,eAAO,MAAM,YAAY,EAAE,KAAwC,CAAC;AAGpE,eAAO,MAAM,QAAQ,EAAE,KActB,CAAC;AAEF,0GAA0G;AAC1G,eAAO,MAAM,MAAM,EAAE,KAsBpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAiBrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAoBnB,CAAC;AAEF;4CAC4C;AAC5C,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAmBxB,CAAC;AAgBF,eAAO,MAAM,eAAe,EAAE,KAA6E,CAAC;AAC5G,eAAO,MAAM,oBAAoB,EAAE,KAA8E,CAAC;AAGlH,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AA6CF,+GAA+G;AAC/G,eAAO,MAAM,SAAS,EAAE,KAA0D,CAAC;AAgBnF,eAAO,MAAM,WAAW,EAAE,KAA+E,CAAC;AAC1G,eAAO,MAAM,gBAAgB,EAAE,KAAkG,CAAC;AAElI,0GAA0G;AAC1G,eAAO,MAAM,gBAAgB,EAAE,KAM9B,CAAC;AACF,eAAO,MAAM,qBAAqB,EAAE,KAMnC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SurfaceAgent, SurfaceDiffFile } from './surfaces';
|
|
2
|
+
import { TermLine } from './terminal';
|
|
3
|
+
export interface Step {
|
|
4
|
+
title: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
code?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface Message {
|
|
9
|
+
id: string;
|
|
10
|
+
role: 'user' | 'assistant';
|
|
11
|
+
text: string;
|
|
12
|
+
images?: string[];
|
|
13
|
+
/** still streaming */
|
|
14
|
+
live?: boolean;
|
|
15
|
+
/** "Worked for 42s" */
|
|
16
|
+
summary?: string;
|
|
17
|
+
steps?: Step[];
|
|
18
|
+
}
|
|
19
|
+
export interface Thread {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
age: string;
|
|
23
|
+
settled: boolean;
|
|
24
|
+
messages: Message[];
|
|
25
|
+
}
|
|
26
|
+
export declare const PROJECT = "cookbook";
|
|
27
|
+
/** Canned replies the fake agent streams, in turn. */
|
|
28
|
+
export declare const REPLIES: string[];
|
|
29
|
+
export declare const SUGGESTIONS: string[];
|
|
30
|
+
export declare const THREADS: Thread[];
|
|
31
|
+
export declare const TERMINAL_SEED: TermLine[];
|
|
32
|
+
export declare const FILES: string[];
|
|
33
|
+
export declare const DIFF: {
|
|
34
|
+
before: SurfaceDiffFile;
|
|
35
|
+
after: SurfaceDiffFile;
|
|
36
|
+
};
|
|
37
|
+
export declare const AGENTS: SurfaceAgent[];
|
|
38
|
+
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAI3C,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,sBAAsB;IACtB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uBAAuB;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;CAChB;AACD,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAC;CACrB;AAED,eAAO,MAAM,OAAO,aAAa,CAAC;AAgDlC,sDAAsD;AACtD,eAAO,MAAM,OAAO,UAAiD,CAAC;AAEtE,eAAO,MAAM,WAAW,UAAwF,CAAC;AAIjH,eAAO,MAAM,OAAO,EAAE,MAAM,EAqE3B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,EASnC,CAAC;AAEF,eAAO,MAAM,KAAK,UAUjB,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE;IAAE,MAAM,EAAE,eAAe,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAgBnE,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,YAAY,EAKhC,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DocstreamRefContext, DocstreamRefContextValue } from '@brett_lamy/docstream/reference';
|
|
2
|
+
import { ReferenceNode } from '@brett_lamy/docstream/gitbook';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
export { DocstreamRefContext };
|
|
5
|
+
export type { DocstreamRefContextValue, ReferenceNode };
|
|
6
|
+
export declare function hlTokens(src: string): React.ReactNode[];
|
|
7
|
+
export declare function HlPre({ code, lang }: {
|
|
8
|
+
code: string;
|
|
9
|
+
lang?: string;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function FbMd({ md }: {
|
|
12
|
+
md?: string;
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface MarkdownViewProps {
|
|
15
|
+
markdown?: string;
|
|
16
|
+
/** Passes streaming state through to Docstream for accessible streaming markup. */
|
|
17
|
+
streaming?: boolean;
|
|
18
|
+
/** Called when an @mention / #tag / citation chip is clicked. */
|
|
19
|
+
onReferenceClick?: (ref: ReferenceNode) => void;
|
|
20
|
+
/** Override chip rendering; return null to fall back to the default chips. */
|
|
21
|
+
renderReference?: (ref: ReferenceNode) => React.ReactNode | null;
|
|
22
|
+
className?: string;
|
|
23
|
+
style?: React.CSSProperties;
|
|
24
|
+
}
|
|
25
|
+
export declare function MarkdownView({ markdown, streaming, onReferenceClick, renderReference, className, style }: MarkdownViewProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,mBAAmB,EAAE,KAAK,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACrG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,kCAAkC,CAAC;AAI1C,OAAO,EAAE,mBAAmB,EAAE,CAAC;AAC/B,YAAY,EAAE,wBAAwB,EAAE,aAAa,EAAE,CAAC;AA8CxD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,CAiCvD;AAED,wBAAgB,KAAK,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,2CAOpE;AAED,wBAAgB,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,2CAoF3C;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mFAAmF;IACnF,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,IAAI,CAAC;IAChD,8EAA8E;IAC9E,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,aAAa,KAAK,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,iBAAiB,2CAe3H"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface MessageScrollerItem {
|
|
3
|
+
id: string;
|
|
4
|
+
anchor?: boolean;
|
|
5
|
+
node: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface MessageScrollerProps {
|
|
8
|
+
items: MessageScrollerItem[];
|
|
9
|
+
streaming?: boolean;
|
|
10
|
+
threadKey?: string | null;
|
|
11
|
+
peek?: number;
|
|
12
|
+
className?: string;
|
|
13
|
+
style?: React.CSSProperties;
|
|
14
|
+
}
|
|
15
|
+
export declare function MessageScroller({ items, streaming, threadKey, peek: peekProp, className, style }: MessageScrollerProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=message-scroller.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/message-scroller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB;AACD,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,oBAAoB,2CA+NtH"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { MessageScroller } from './message-scroller';
|
|
3
|
+
declare const meta: Meta<typeof MessageScroller>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MessageScroller>;
|
|
6
|
+
export declare const Interactive: Story;
|
|
7
|
+
export declare const Streaming: Story;
|
|
8
|
+
export declare const OpensAtLastAnchor: Story;
|
|
9
|
+
//# sourceMappingURL=message-scroller.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-scroller.stories.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/message-scroller.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD,OAAO,kBAAkB,CAAC;AAE1B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAWtC,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AA6D9C,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AA2CF,eAAO,MAAM,SAAS,EAAE,KAA2C,CAAC;AAsBpE,eAAO,MAAM,iBAAiB,EAAE,KAA4C,CAAC"}
|