@brett_lamy/ui 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -22
- package/dist/components/adaptive-pane.d.ts +2 -2
- package/dist/components/adaptive-pane.stories.d.ts +1 -1
- package/dist/components/animated-height.d.ts +2 -2
- package/dist/components/avatar.d.ts +1 -1
- package/dist/components/avatar.stories.d.ts +1 -1
- package/dist/components/badge.d.ts +3 -3
- package/dist/components/badge.stories.d.ts +1 -1
- package/dist/components/button.d.ts +3 -3
- package/dist/components/button.stories.d.ts +3 -1
- package/dist/components/button.stories.d.ts.map +1 -1
- package/dist/components/card.d.ts +3 -3
- package/dist/components/card.stories.d.ts +1 -1
- package/dist/components/celebrate.d.ts +1 -1
- package/dist/components/chat/chat-column.d.ts +1 -1
- package/dist/components/chat/chat-column.stories.d.ts +3 -2
- package/dist/components/chat/chat-column.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.d.ts +21 -2
- package/dist/components/chat/floating-chat.d.ts.map +1 -1
- package/dist/components/chat/floating-chat.stories.d.ts +2 -3
- package/dist/components/chat/floating-chat.stories.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.d.ts +22 -2
- package/dist/components/chat/floating-sheet.d.ts.map +1 -1
- package/dist/components/chat/floating-sheet.stories.d.ts +2 -3
- package/dist/components/chat/floating-sheet.stories.d.ts.map +1 -1
- package/dist/components/chat/progress-stepper.d.ts +2 -2
- package/dist/components/checkbox.d.ts +3 -3
- package/dist/components/checkbox.stories.d.ts +1 -1
- package/dist/components/combobox.d.ts +3 -3
- package/dist/components/combobox.stories.d.ts +1 -1
- package/dist/components/command-menu.d.ts +210 -0
- package/dist/components/command-menu.d.ts.map +1 -0
- package/dist/components/command-menu.stories.d.ts +17 -0
- package/dist/components/command-menu.stories.d.ts.map +1 -0
- package/dist/components/credenza.d.ts +8 -3
- package/dist/components/credenza.d.ts.map +1 -1
- package/dist/components/credenza.stories.d.ts +1 -1
- package/dist/components/dialog.d.ts +5 -5
- package/dist/components/dialog.stories.d.ts +1 -1
- package/dist/components/disclosure.d.ts +4 -4
- package/dist/components/disclosure.stories.d.ts +1 -1
- package/dist/components/dropdown-menu.d.ts +5 -5
- package/dist/components/dropdown-menu.stories.d.ts +1 -1
- package/dist/components/edge-drawer.d.ts +15 -3
- package/dist/components/edge-drawer.d.ts.map +1 -1
- package/dist/components/edge-drawer.stories.d.ts +1 -1
- package/dist/components/edit-bar.d.ts +1 -1
- package/dist/components/edit-bar.stories.d.ts +1 -1
- package/dist/components/form.d.ts +2 -2
- package/dist/components/form.stories.d.ts +1 -1
- package/dist/components/haptic-indicator.d.ts +1 -1
- package/dist/components/haptic-indicator.stories.d.ts +1 -1
- package/dist/components/icon-swap.d.ts +1 -1
- package/dist/components/index-bar.d.ts +6 -3
- package/dist/components/index-bar.d.ts.map +1 -1
- package/dist/components/index-bar.stories.d.ts +1 -1
- package/dist/components/input.d.ts +3 -3
- package/dist/components/input.stories.d.ts +1 -1
- package/dist/components/kbd.d.ts +1 -1
- package/dist/components/kbd.stories.d.ts +1 -1
- package/dist/components/label.d.ts +3 -3
- package/dist/components/label.stories.d.ts +1 -1
- package/dist/components/list-box.d.ts +5 -5
- package/dist/components/list-box.stories.d.ts +1 -1
- package/dist/components/list-row.stories.d.ts +13 -1
- package/dist/components/list-row.stories.d.ts.map +1 -1
- package/dist/components/list.d.ts +49 -4
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.stories.d.ts +6 -2
- package/dist/components/list.stories.d.ts.map +1 -1
- package/dist/components/markdown-editor.d.ts +39 -5
- package/dist/components/markdown-editor.d.ts.map +1 -1
- package/dist/components/markdown-editor.stories.d.ts +4 -1
- package/dist/components/markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/measure-h.d.ts +1 -1
- package/dist/components/morph.d.ts +64 -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 +1 -1
- package/dist/components/navigation-stack.d.ts +22 -5
- package/dist/components/navigation-stack.d.ts.map +1 -1
- package/dist/components/navigation-stack.stories.d.ts +12 -1
- 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 +1 -1
- package/dist/components/pencilkit/pencil-canvas.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-canvas.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.d.ts +13 -8
- package/dist/components/pencilkit/pencil-toolbar.d.ts.map +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts +1 -1
- package/dist/components/pencilkit/pencil-toolbar.stories.d.ts.map +1 -1
- package/dist/components/pencilkit/pencilkit-annotator.d.ts +2 -2
- package/dist/components/pencilkit/stroke-path.d.ts +1 -1
- package/dist/components/pencilkit/use-pencil-history.d.ts +2 -2
- package/dist/components/popover.d.ts +1 -1
- package/dist/components/popover.stories.d.ts +1 -1
- package/dist/components/progress-ring.d.ts +85 -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 +5 -5
- package/dist/components/progress.stories.d.ts +1 -1
- package/dist/components/qr-svg.d.ts +31 -4
- package/dist/components/qr-svg.d.ts.map +1 -1
- package/dist/components/qr-svg.stories.d.ts +9 -2
- package/dist/components/qr-svg.stories.d.ts.map +1 -1
- package/dist/components/radio-group.d.ts +4 -4
- package/dist/components/radio-group.stories.d.ts +1 -1
- package/dist/components/scroll-area.d.ts +3 -3
- package/dist/components/scroll-area.stories.d.ts +1 -1
- package/dist/components/search-field.d.ts +13 -5
- package/dist/components/search-field.d.ts.map +1 -1
- package/dist/components/search-field.stories.d.ts +3 -1
- package/dist/components/search-field.stories.d.ts.map +1 -1
- package/dist/components/segmented.d.ts +2 -2
- package/dist/components/segmented.d.ts.map +1 -1
- package/dist/components/segmented.stories.d.ts +1 -1
- package/dist/components/select.d.ts +5 -5
- package/dist/components/select.stories.d.ts +1 -1
- package/dist/components/separator.d.ts +3 -3
- package/dist/components/separator.stories.d.ts +1 -1
- package/dist/components/sheet.d.ts +4 -4
- package/dist/components/sheet.stories.d.ts +1 -1
- package/dist/components/side-drawer.d.ts +7 -2
- package/dist/components/side-drawer.d.ts.map +1 -1
- package/dist/components/side-drawer.stories.d.ts +1 -1
- package/dist/components/sidebar.d.ts +1 -1
- package/dist/components/sidebar.d.ts.map +1 -1
- package/dist/components/sidebar.stories.d.ts +1 -1
- package/dist/components/skeleton.d.ts +23 -5
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.stories.d.ts +3 -1
- package/dist/components/skeleton.stories.d.ts.map +1 -1
- package/dist/components/slider.d.ts +23 -4
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.stories.d.ts +4 -1
- package/dist/components/slider.stories.d.ts.map +1 -1
- package/dist/components/spinner.d.ts +1 -1
- package/dist/components/spinner.stories.d.ts +1 -1
- package/dist/components/split-view.d.ts +112 -12
- package/dist/components/split-view.d.ts.map +1 -1
- package/dist/components/split-view.stories.d.ts +35 -1
- package/dist/components/split-view.stories.d.ts.map +1 -1
- package/dist/components/switch.d.ts +3 -1
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.stories.d.ts +1 -1
- package/dist/components/syntax-highlighting.d.ts +14 -11
- package/dist/components/syntax-highlighting.d.ts.map +1 -1
- package/dist/components/syntax-highlighting.stories.d.ts +1 -1
- package/dist/components/tab-bar.d.ts +1 -1
- package/dist/components/tab-bar.stories.d.ts +1 -1
- package/dist/components/tab-view.d.ts +15 -14
- package/dist/components/tab-view.d.ts.map +1 -1
- package/dist/components/tab-view.stories.d.ts +18 -2
- package/dist/components/tab-view.stories.d.ts.map +1 -1
- package/dist/components/tabs.d.ts +5 -5
- package/dist/components/tabs.stories.d.ts +1 -1
- package/dist/components/text-field.d.ts +1 -1
- package/dist/components/text-field.stories.d.ts +1 -1
- package/dist/components/text-morph.d.ts +1 -1
- package/dist/components/textarea.d.ts +3 -3
- package/dist/components/toast.d.ts +112 -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 +3 -3
- package/dist/components/toggle-group.stories.d.ts +1 -1
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/toggle.stories.d.ts +1 -1
- package/dist/components/tooltip.d.ts +2 -2
- package/dist/components/tooltip.stories.d.ts +1 -1
- package/dist/components/workbench/chat.d.ts +2 -2
- package/dist/components/workbench/chat.d.ts.map +1 -1
- package/dist/components/workbench/chat.stories.d.ts +1 -2
- 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 +115 -32
- package/dist/components/workbench/composer.d.ts.map +1 -1
- package/dist/components/workbench/composer.stories.d.ts +8 -2
- package/dist/components/workbench/composer.stories.d.ts.map +1 -1
- package/dist/components/workbench/fixtures.d.ts +2 -2
- package/dist/components/workbench/fixtures.d.ts.map +1 -1
- package/dist/components/workbench/markdown.d.ts +2 -3
- package/dist/components/workbench/markdown.d.ts.map +1 -1
- package/dist/components/workbench/message-scroller.stories.d.ts +1 -2
- package/dist/components/workbench/message-scroller.stories.d.ts.map +1 -1
- package/dist/components/workbench/model-picker.d.ts +3 -3
- package/dist/components/workbench/model-picker.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.d.ts +3 -2
- package/dist/components/workbench/snap-sheet.d.ts.map +1 -1
- package/dist/components/workbench/snap-sheet.stories.d.ts +1 -2
- package/dist/components/workbench/snap-sheet.stories.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.d.ts +2 -2
- package/dist/components/workbench/surfaces.d.ts.map +1 -1
- package/dist/components/workbench/surfaces.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.d.ts +10 -2
- package/dist/components/workbench/terminal.d.ts.map +1 -1
- package/dist/components/workbench/terminal.stories.d.ts +1 -2
- package/dist/components/workbench/terminal.stories.d.ts.map +1 -1
- package/dist/components/workbench/wb-popover.d.ts +3 -5
- package/dist/components/workbench/wb-popover.d.ts.map +1 -1
- package/dist/components/workbench/workbench-composer.d.ts +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.d.ts +4 -3
- package/dist/demos/delivery/delivery-tracking-demo.d.ts.map +1 -1
- package/dist/demos/delivery/delivery-tracking-demo.stories.d.ts +2 -3
- package/dist/demos/haptics-playground.d.ts +4 -1
- package/dist/demos/haptics-playground.d.ts.map +1 -1
- package/dist/demos/haptics-playground.stories.d.ts +1 -1
- package/dist/demos/map-chat/map-agent.d.ts +2 -2
- package/dist/demos/map-chat/map-chat-demo.d.ts +3 -3
- package/dist/demos/map-chat/map-chat-demo.d.ts.map +1 -1
- package/dist/demos/map-chat/map-chat-demo.stories.d.ts +2 -3
- package/dist/demos/map-chat/places.d.ts +2 -2
- package/dist/demos/map-chat/tile-map.d.ts +39 -3
- package/dist/demos/map-chat/tile-map.d.ts.map +1 -1
- package/dist/demos/pencilkit/demo-strokes.d.ts +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.d.ts +4 -2
- package/dist/demos/pencilkit/pencilkit-demo.d.ts.map +1 -1
- package/dist/demos/pencilkit/pencilkit-demo.stories.d.ts +1 -1
- package/dist/demos/sidebar-demo.d.ts +1 -4
- package/dist/demos/sidebar-demo.d.ts.map +1 -1
- package/dist/demos/split-view-demos.d.ts +15 -2
- package/dist/demos/split-view-demos.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +46 -57
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15267 -11038
- package/dist/lib/chat/chat-shell-context.d.ts +3 -2
- package/dist/lib/chat/chat-shell-context.d.ts.map +1 -1
- package/dist/lib/chat/persistent-host.d.ts +4 -4
- package/dist/lib/container.d.ts +8 -1
- package/dist/lib/container.d.ts.map +1 -1
- package/dist/lib/haptics.d.ts +7 -5
- package/dist/lib/haptics.d.ts.map +1 -1
- package/dist/lib/icon-shapes/chat.d.ts +32 -0
- package/dist/lib/icon-shapes/chat.d.ts.map +1 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts +49 -0
- package/dist/lib/icon-shapes/pencilkit.d.ts.map +1 -0
- package/dist/lib/icon-shapes/workbench.d.ts +199 -0
- package/dist/lib/icon-shapes/workbench.d.ts.map +1 -0
- package/dist/lib/icon.d.ts +1649 -7
- package/dist/lib/icon.d.ts.map +1 -1
- package/dist/lib/icon.stories.d.ts +8 -1
- package/dist/lib/icon.stories.d.ts.map +1 -1
- package/dist/lib/pencilkit/constants.d.ts +9 -9
- package/dist/lib/pencilkit/constants.d.ts.map +1 -1
- package/dist/lib/primitives.d.ts +1 -1
- package/dist/lib/primitives.d.ts.map +1 -1
- package/dist/lib/qr.d.ts +28 -0
- package/dist/lib/qr.d.ts.map +1 -0
- package/dist/lib/row-label.d.ts +9 -0
- package/dist/lib/row-label.d.ts.map +1 -0
- package/dist/lib/sheet-drag.d.ts +23 -8
- package/dist/lib/sheet-drag.d.ts.map +1 -1
- package/dist/lib/syntax.d.ts +27 -10
- package/dist/lib/syntax.d.ts.map +1 -1
- package/dist/lib/theme.d.ts +39 -8
- package/dist/lib/theme.d.ts.map +1 -1
- package/dist/lib/utils.d.ts +1 -1
- package/dist/lib/workbench/icons.d.ts +6 -16
- package/dist/lib/workbench/icons.d.ts.map +1 -1
- package/dist/lib/workbench/motion.d.ts +1 -65
- package/dist/lib/workbench/motion.d.ts.map +1 -1
- package/dist/lib/workbench/press.d.ts +1 -1
- package/dist/lib/workbench/press.d.ts.map +1 -1
- package/dist/lib/workbench/theme.d.ts +3 -4
- package/dist/lib/workbench/theme.d.ts.map +1 -1
- package/dist/lib/workbench/util.d.ts +5 -3
- package/dist/lib/workbench/util.d.ts.map +1 -1
- package/dist/stories/frame.d.ts +1 -1
- package/dist/stories/primitive-frame.d.ts +1 -1
- package/dist/templates/artifact-chat-container.d.ts +8 -3
- package/dist/templates/artifact-chat-container.d.ts.map +1 -1
- package/dist/templates/artifact-chat-container.stories.d.ts +2 -3
- package/dist/templates/artifact-chat-container.stories.d.ts.map +1 -1
- package/dist/templates/chat-shell.d.ts +10 -9
- package/dist/templates/chat-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.d.ts +8 -8
- package/dist/templates/workbench-shell.d.ts.map +1 -1
- package/dist/templates/workbench-shell.stories.d.ts +1 -2
- package/dist/templates/workbench-shell.stories.d.ts.map +1 -1
- package/dist/theme.css +325 -0
- package/package.json +7 -4
- package/dist/components/chat/channel-list.d.ts +0 -35
- package/dist/components/chat/channel-list.d.ts.map +0 -1
- package/dist/components/chat/channel-list.stories.d.ts +0 -14
- package/dist/components/chat/channel-list.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.d.ts +0 -13
- package/dist/components/chat/chat-avatar.d.ts.map +0 -1
- package/dist/components/chat/chat-avatar.stories.d.ts +0 -10
- package/dist/components/chat/chat-avatar.stories.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.d.ts +0 -22
- package/dist/components/chat/chat-composer.d.ts.map +0 -1
- package/dist/components/chat/chat-composer.stories.d.ts +0 -17
- package/dist/components/chat/chat-composer.stories.d.ts.map +0 -1
- package/dist/components/chat/chat.fixtures.d.ts +0 -29
- package/dist/components/chat/chat.fixtures.d.ts.map +0 -1
- package/dist/components/chat/member-list.d.ts +0 -21
- package/dist/components/chat/member-list.d.ts.map +0 -1
- package/dist/components/chat/message-list.d.ts +0 -34
- package/dist/components/chat/message-list.d.ts.map +0 -1
- package/dist/components/chat/message.d.ts +0 -47
- package/dist/components/chat/message.d.ts.map +0 -1
- package/dist/components/chat/message.stories.d.ts +0 -31
- package/dist/components/chat/message.stories.d.ts.map +0 -1
- package/dist/components/chat/rich-text.d.ts +0 -8
- package/dist/components/chat/rich-text.d.ts.map +0 -1
- package/dist/components/chat/rich-text.stories.d.ts +0 -10
- package/dist/components/chat/rich-text.stories.d.ts.map +0 -1
- package/dist/components/chat/server-header.d.ts +0 -10
- package/dist/components/chat/server-header.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.d.ts +0 -25
- package/dist/components/chat/thread-preview.d.ts.map +0 -1
- package/dist/components/chat/thread-preview.stories.d.ts +0 -19
- package/dist/components/chat/thread-preview.stories.d.ts.map +0 -1
- package/dist/components/chat/user-panel.d.ts +0 -16
- package/dist/components/chat/user-panel.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.d.ts +0 -56
- package/dist/components/chat/workspace-rail.d.ts.map +0 -1
- package/dist/components/chat/workspace-rail.stories.d.ts +0 -13
- package/dist/components/chat/workspace-rail.stories.d.ts.map +0 -1
- package/dist/components/pencilkit/pk-icon.d.ts +0 -8
- package/dist/components/pencilkit/pk-icon.d.ts.map +0 -1
- package/dist/components/pill-button.d.ts +0 -11
- package/dist/components/pill-button.d.ts.map +0 -1
- package/dist/components/pill-button.stories.d.ts +0 -9
- package/dist/components/pill-button.stories.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.d.ts +0 -100
- package/dist/components/workbench/thread-sidebar.d.ts.map +0 -1
- package/dist/components/workbench/thread-sidebar.stories.d.ts +0 -10
- package/dist/components/workbench/thread-sidebar.stories.d.ts.map +0 -1
- package/dist/lib/chat/chat-icon.d.ts +0 -24
- package/dist/lib/chat/chat-icon.d.ts.map +0 -1
- package/dist/lib/chat/chat-tokens.d.ts +0 -72
- package/dist/lib/chat/chat-tokens.d.ts.map +0 -1
- package/dist/lib/chat/chat-users.d.ts +0 -18
- package/dist/lib/chat/chat-users.d.ts.map +0 -1
- package/dist/lib/chat/kvib.d.ts +0 -3
- package/dist/lib/chat/kvib.d.ts.map +0 -1
- package/dist/lib/chat/title-ref.d.ts +0 -3
- package/dist/lib/chat/title-ref.d.ts.map +0 -1
- package/dist/templates/chat-shell.stories.d.ts +0 -23
- package/dist/templates/chat-shell.stories.d.ts.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { TabViewPlacement } from './tab-view';
|
|
3
3
|
interface Args {
|
|
4
4
|
placement?: TabViewPlacement;
|
|
5
5
|
dark?: boolean;
|
|
@@ -18,4 +18,20 @@ export declare const DiscordRail: Story;
|
|
|
18
18
|
/** `placement="top"` with a plain bar and fully custom tabs: the render prop hands each tab its state
|
|
19
19
|
(isSelected, isHovered, isFocusVisible…), and `TabViewIndicator` slides the underline between them. */
|
|
20
20
|
export declare const CustomTabs: Story;
|
|
21
|
+
/** Order-independent: the panels are written before the bar. TabView moves a direct-child bar ahead of the
|
|
22
|
+
panels (so react-aria has minted its tab ids, and `placement` still puts the bar at the bottom) — this
|
|
23
|
+
renders exactly like `Bottom`, with no "There is no tab id" error. */
|
|
24
|
+
export declare const PanelsFirst: Story;
|
|
25
|
+
/** Panels first with the bar nested in a wrapper: TabViewPanels waits one layout pass (before paint) for the
|
|
26
|
+
tablist, so this works too. Here the wrapper is laid out by hand (the panels fill, the bar pins to the top). */
|
|
27
|
+
export declare const PanelsFirstNested: Story;
|
|
28
|
+
/** The workspace switcher (replaces 1.x's `WorkspaceRail`): a vertical TabView with `TabViewBar
|
|
29
|
+
variant="workspace"` in the chat scope. Home is the first tab over a separator; tiles are custom tab content
|
|
30
|
+
with the leading-edge `pill` indicator (a nub for unread, taller on hover, full when selected) and mention
|
|
31
|
+
badges; "Add workspace" is a `TabViewAction` in the footer, which follows the list — the list scrolls once
|
|
32
|
+
the tiles outgrow the rail. Up/Down move between tiles; the separator and the action are skipped. */
|
|
33
|
+
export declare const WorkspaceRail: Story;
|
|
34
|
+
export declare const WorkspaceRailLight: Story;
|
|
35
|
+
/** More tiles than room: the list scrolls between the header and the footer. */
|
|
36
|
+
export declare const WorkspaceRailScrolling: Story;
|
|
21
37
|
//# sourceMappingURL=tab-view.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/tab-view.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAEwC,KAAK,gBAAgB,EACnE,MAAM,YAAY,CAAC;AAMpB,UAAU,IAAI;IAAG,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;AAC/D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAAkC,CAAC;AACxD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AA2B5B,yGAAyG;AACzG,eAAO,MAAM,MAAM,EAAE,KAepB,CAAC;AAEF;oFACoF;AACpF,eAAO,MAAM,YAAY,EAAE,KAmC1B,CAAC;AA0DF;+GAC+G;AAC/G,eAAO,MAAM,WAAW,EAAE,KAGzB,CAAC;AAUF;0GAC0G;AAC1G,eAAO,MAAM,UAAU,EAAE,KAuCxB,CAAC"}
|
|
1
|
+
{"version":3,"file":"tab-view.stories.d.ts","sourceRoot":"","sources":["../../src/components/tab-view.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAEwC,KAAK,gBAAgB,EACnE,MAAM,YAAY,CAAC;AAMpB,UAAU,IAAI;IAAG,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE;AAC/D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,IAAI,CAAkC,CAAC;AACxD,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;AA2B5B,yGAAyG;AACzG,eAAO,MAAM,MAAM,EAAE,KAepB,CAAC;AAEF;oFACoF;AACpF,eAAO,MAAM,YAAY,EAAE,KAmC1B,CAAC;AA0DF;+GAC+G;AAC/G,eAAO,MAAM,WAAW,EAAE,KAGzB,CAAC;AAUF;0GAC0G;AAC1G,eAAO,MAAM,UAAU,EAAE,KAuCxB,CAAC;AAEF;;yEAEyE;AACzE,eAAO,MAAM,WAAW,EAAE,KAezB,CAAC;AAEF;mHACmH;AACnH,eAAO,MAAM,iBAAiB,EAAE,KAuB/B,CAAC;AAmDF;;;;wGAIwG;AACxG,eAAO,MAAM,aAAa,EAAE,KAO3B,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAmD,CAAC;AAErF,gFAAgF;AAChF,eAAO,MAAM,sBAAsB,EAAE,KAqBpC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { TabProps as AriaTabProps, TabListProps as AriaTabListProps, TabPanelProps as AriaTabPanelProps, TabsProps as AriaTabsProps } from 'react-aria-components';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
export declare const tabsListVariants: (props?: ({
|
|
5
5
|
variant?: "underline" | "segmented" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export declare const tabVariants: (props?: ({
|
|
8
8
|
variant?: "underline" | "segmented" | null | undefined;
|
|
9
|
-
} & import(
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
10
|
/** Inside a react-aria Tabs: provides the direction of the latest selection change (by collection order). */
|
|
11
11
|
export declare function TabDirection({ children }: {
|
|
12
12
|
children?: ReactNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FieldErrorProps as AriaFieldErrorProps, TextProps, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
|
|
2
2
|
export interface TextFieldProps extends AriaTextFieldProps {
|
|
3
3
|
}
|
|
4
4
|
export declare function TextField({ className, ...props }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TextAreaProps as AriaTextAreaProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const textareaVariants: (props?: ({
|
|
4
4
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5
|
-
} & import(
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface TextareaProps extends AriaTextAreaProps, VariantProps<typeof textareaVariants> {
|
|
7
7
|
}
|
|
8
8
|
export declare function Textarea({ className, size, ...props }: TextareaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { UNSTABLE_ToastQueue as AriaToastQueue } from 'react-aria-components';
|
|
3
|
+
export type ToastVariant = 'hud' | 'banner';
|
|
4
|
+
export type ToastTone = 'default' | 'success' | 'warning' | 'destructive';
|
|
5
|
+
export interface ToastData {
|
|
6
|
+
/** Stable identity: showing a toast with the id of a visible one updates that toast in place. */
|
|
7
|
+
id?: string;
|
|
8
|
+
variant?: ToastVariant;
|
|
9
|
+
title: string;
|
|
10
|
+
description?: ReactNode;
|
|
11
|
+
/** An `Icon` name or any node. HUDs default to a check for `success`. */
|
|
12
|
+
icon?: string | ReactNode;
|
|
13
|
+
tone?: ToastTone;
|
|
14
|
+
/** A spinner in place of the icon, and no timeout until updated. */
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
/** One action button (banners). Pressing it closes the toast unless the handler returns false. */
|
|
17
|
+
action?: {
|
|
18
|
+
label: string;
|
|
19
|
+
onAction: () => void | boolean;
|
|
20
|
+
};
|
|
21
|
+
/** Show the close button (banners; default true). */
|
|
22
|
+
dismissible?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ToastOptions {
|
|
25
|
+
/** Milliseconds before it closes (default 1600 for a HUD, 5000 for a banner; 0 = until closed). */
|
|
26
|
+
timeout?: number;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
/** Haptic on show: `success` / `warning` / `error` notification, or none (default: from the tone). */
|
|
29
|
+
haptic?: 'success' | 'warning' | 'error' | 'none';
|
|
30
|
+
}
|
|
31
|
+
interface Entry {
|
|
32
|
+
data: ToastData & {
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
35
|
+
rev: number;
|
|
36
|
+
}
|
|
37
|
+
/** A toast queue: react-aria's queue (visibility, timers, pause on hover) plus in-place updates by id. */
|
|
38
|
+
export declare class ToastQueue {
|
|
39
|
+
/** The react-aria queue the region renders. */
|
|
40
|
+
readonly aria: AriaToastQueue<Entry>;
|
|
41
|
+
private listeners;
|
|
42
|
+
constructor(options?: {
|
|
43
|
+
maxVisibleToasts?: number;
|
|
44
|
+
});
|
|
45
|
+
private find;
|
|
46
|
+
private emit;
|
|
47
|
+
/** Subscribe to in-place updates (membership changes come from the react-aria queue). */
|
|
48
|
+
subscribe(fn: () => void): () => void;
|
|
49
|
+
/** Show a toast (or update the visible one with the same id). Returns its id. */
|
|
50
|
+
show(input: ToastData, options?: ToastOptions): string;
|
|
51
|
+
/** Patch a visible toast in place (title, tone, loading …). Restarts its timer. */
|
|
52
|
+
update(id: string, patch: Partial<ToastData>, options?: ToastOptions): void;
|
|
53
|
+
/** Close one toast by id, or all of them. */
|
|
54
|
+
dismiss(id?: string): void;
|
|
55
|
+
}
|
|
56
|
+
/** The page's default queue (used by `toast()` and a `<Toaster>` without a `queue`). */
|
|
57
|
+
export declare const defaultToastQueue: ToastQueue;
|
|
58
|
+
export declare function createToastQueue(options?: {
|
|
59
|
+
maxVisibleToasts?: number;
|
|
60
|
+
}): ToastQueue;
|
|
61
|
+
export interface ToastApi {
|
|
62
|
+
(title: string, options?: Omit<ToastData, 'title'> & ToastOptions): string;
|
|
63
|
+
/** The dark pill ("Copied"). */
|
|
64
|
+
hud: (title: string, options?: Omit<ToastData, 'title' | 'variant'> & ToastOptions) => string;
|
|
65
|
+
success: (title: string, options?: Omit<ToastData, 'title' | 'tone'> & ToastOptions) => string;
|
|
66
|
+
warning: (title: string, options?: Omit<ToastData, 'title' | 'tone'> & ToastOptions) => string;
|
|
67
|
+
error: (title: string, options?: Omit<ToastData, 'title' | 'tone'> & ToastOptions) => string;
|
|
68
|
+
/** A spinner that stays until you `update` it. */
|
|
69
|
+
loading: (title: string, options?: Omit<ToastData, 'title' | 'loading'> & ToastOptions) => string;
|
|
70
|
+
update: (id: string, patch: Partial<ToastData>, options?: ToastOptions) => void;
|
|
71
|
+
dismiss: (id?: string) => void;
|
|
72
|
+
queue: ToastQueue;
|
|
73
|
+
}
|
|
74
|
+
/** Bind the toast API to a queue. */
|
|
75
|
+
export declare function toastApi(queue: ToastQueue): ToastApi;
|
|
76
|
+
/** Show a toast on the default queue: `toast('Saved')`, `toast.hud('Copied')`, `toast.update(id, …)`. */
|
|
77
|
+
export declare const toast: ToastApi;
|
|
78
|
+
/** The toast API for the nearest `<Toaster>`'s queue (the default queue outside one). */
|
|
79
|
+
export declare function useToast(): ToastApi;
|
|
80
|
+
/** Provide a queue to `useToast()` below (a `<Toaster queue>` does this for its children too). */
|
|
81
|
+
export declare function ToastProvider({ queue, children }: {
|
|
82
|
+
queue: ToastQueue;
|
|
83
|
+
children?: ReactNode;
|
|
84
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
export type ToasterPlacement = 'top' | 'bottom' | 'center' | 'top-end' | 'bottom-end';
|
|
86
|
+
export interface ToasterProps {
|
|
87
|
+
/** Default: the page's default queue (`toast()`). */
|
|
88
|
+
queue?: ToastQueue;
|
|
89
|
+
/** Where the stack sits (default `bottom`; HUDs look best `bottom` or `center`). */
|
|
90
|
+
placement?: ToasterPlacement;
|
|
91
|
+
/** Render in place, absolutely positioned in the nearest positioned ancestor, instead of fixed over the
|
|
92
|
+
viewport (portaled to <body>). For a toast area that belongs to one component or block. */
|
|
93
|
+
inline?: boolean;
|
|
94
|
+
/** Distance from the edge in px (default 24). */
|
|
95
|
+
offset?: number;
|
|
96
|
+
'aria-label'?: string;
|
|
97
|
+
className?: string;
|
|
98
|
+
style?: CSSProperties;
|
|
99
|
+
children?: ReactNode;
|
|
100
|
+
}
|
|
101
|
+
/** The toast region. Mount once per queue. Children (optional) get `useToast()` bound to this queue. */
|
|
102
|
+
export declare function Toaster({ queue, placement, inline, offset, className, style, children, ...props }: ToasterProps): import("react/jsx-runtime").JSX.Element;
|
|
103
|
+
/** A toast's surface: the dark HUD pill (a fixed material, the same in light and dark, as on iOS) or the banner card. */
|
|
104
|
+
export declare const toastVariants: (props?: ({
|
|
105
|
+
variant?: "banner" | "hud" | null | undefined;
|
|
106
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
107
|
+
/** The icon's color per tone. */
|
|
108
|
+
export declare const toastIconVariants: (props?: ({
|
|
109
|
+
tone?: "destructive" | "success" | "warning" | "default" | null | undefined;
|
|
110
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
111
|
+
export {};
|
|
112
|
+
//# sourceMappingURL=toast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/components/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,EACyE,KAAK,aAAa,EAAE,KAAK,SAAS,EACjH,MAAM,OAAO,CAAC;AAGf,OAAO,EAAwB,mBAAmB,IAAI,cAAc,EAAqC,MAAM,u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,SAAS,CAAC;CACtB;AAUD,wGAAwG;AACxG,wBAAgB,OAAO,CAAC,EAAE,KAAyB,EAAE,SAAoB,EAAE,MAAM,EAAE,MAAW,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAkBnJ;AA8BD,yHAAyH;AACzH,eAAO,MAAM,aAAa;;8EAWzB,CAAC;AAEF,iCAAiC;AACjC,eAAO,MAAM,iBAAiB;;8EAK5B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Toaster } from './toast';
|
|
3
|
+
declare const meta: Meta<typeof Toaster>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Toaster>;
|
|
6
|
+
/** The "Copied" pill. */
|
|
7
|
+
export declare const Hud: Story;
|
|
8
|
+
/** Banners stack newest-first nearest the edge; each can carry a description and one action. */
|
|
9
|
+
export declare const Banners: Story;
|
|
10
|
+
export declare const Dark: Story;
|
|
11
|
+
/** Press the buttons. */
|
|
12
|
+
export declare const Playground: Story;
|
|
13
|
+
//# sourceMappingURL=toast.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toast.stories.d.ts","sourceRoot":"","sources":["../../src/components/toast.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAsE,MAAM,SAAS,CAAC;AAItG,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,OAAO,CAG9B,CAAC;AACF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC;AAmBtC,yBAAyB;AACzB,eAAO,MAAM,GAAG,EAAE,KAAkD,CAAC;AAQrE,gGAAgG;AAChG,eAAO,MAAM,OAAO,EAAE,KAA6E,CAAC;AAEpG,eAAO,MAAM,IAAI,EAAE,KAOlB,CAAC;AAsBF,yBAAyB;AACzB,eAAO,MAAM,UAAU,EAAE,KAAwE,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ToggleButtonGroupProps, ToggleButtonProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { toggleVariants } from './toggle';
|
|
4
4
|
export declare const toggleGroupVariants: (props?: ({
|
|
5
5
|
variant?: "outline" | "default" | "filled" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
type ToggleGroupStyle = VariantProps<typeof toggleVariants>;
|
|
8
8
|
export interface ToggleGroupProps extends ToggleButtonGroupProps, ToggleGroupStyle {
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ToggleButtonProps } from 'react-aria-components';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
3
|
export declare const toggleVariants: (props?: ({
|
|
4
4
|
variant?: "outline" | "default" | "filled" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6
|
-
} & import(
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export interface ToggleProps extends ToggleButtonProps, VariantProps<typeof toggleVariants> {
|
|
8
8
|
}
|
|
9
9
|
export declare function Toggle({ className, variant, size, onChange, ...props }: ToggleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { TooltipProps as AriaTooltipProps, TooltipTriggerComponentProps } from 'react-aria-components';
|
|
3
3
|
export declare function TooltipTrigger({ delay, closeDelay, ...props }: TooltipTriggerComponentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export interface TooltipProps extends Omit<AriaTooltipProps, 'children'> {
|
|
5
5
|
children?: ReactNode;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { IconName } from '../../lib/icon';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
import { type WIconName } from '../../lib/workbench/icons';
|
|
3
3
|
type Div = {
|
|
4
4
|
className?: string;
|
|
5
5
|
style?: React.CSSProperties;
|
|
@@ -74,7 +74,7 @@ export interface WorkLogProps {
|
|
|
74
74
|
/** "Worked for Ns" — expands (on a spring) into the tool calls behind the reply. */
|
|
75
75
|
export declare function WorkLog({ summary, defaultOpen, children, className }: WorkLogProps): import("react/jsx-runtime").JSX.Element;
|
|
76
76
|
export interface ToolCallProps {
|
|
77
|
-
icon?:
|
|
77
|
+
icon?: IconName | (string & {});
|
|
78
78
|
/** what the agent did */
|
|
79
79
|
title: React.ReactNode;
|
|
80
80
|
/** secondary text: a URL, a path, a count */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/chat.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAQ,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAoBrD,KAAK,GAAG,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;AAI3F,MAAM,WAAW,iBAAkB,SAAQ,GAAG;IAC5C,0CAA0C;IAC1C,KAAK,CAAC,EAAE,OA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M,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;IAChC,yBAAyB;IACzB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,6CAA6C;IAC7C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,6BAA6B;AAC7B,wBAAgB,QAAQ,CAAC,EAAE,IAAkB,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAe,EAAE,SAAS,EAAE,EAAE,aAAa,2CAiB9G;AAGD,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AACD,8FAA8F;AAC9F,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,KAAgC,EAChC,WAAyE,EACzE,SAAS,EACT,KAAK,GACN,EAAE,kBAAkB,2CAuBpB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Conversation } from './chat';
|
|
3
|
-
import '../../styles.css';
|
|
4
3
|
declare const meta: Meta<typeof Conversation>;
|
|
5
4
|
export default meta;
|
|
6
5
|
type Story = StoryObj<typeof Conversation>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** What an attachment is, for its tile: an image thumbnail, a video poster, a text excerpt, or an icon. */
|
|
2
|
+
export type ComposerAttachmentKind = 'image' | 'video' | 'audio' | 'pdf' | 'text' | 'archive' | 'other';
|
|
3
|
+
/** The lower-case extension of a file name, without the dot ("" when there is none). */
|
|
4
|
+
export declare function fileExtension(name: string | undefined): string;
|
|
5
|
+
/** The kind of a file from its MIME type, falling back to its extension (browsers leave many types blank). */
|
|
6
|
+
export declare function attachmentKind(type: string | undefined, name?: string): ComposerAttachmentKind;
|
|
7
|
+
/**
|
|
8
|
+
* Whether a file passes an `acceptedFileTypes` list: MIME types (`application/pdf`), wildcards (`image/*`) and
|
|
9
|
+
* extensions (`.md`), as in an `<input accept>`. No list (or an empty one) accepts everything.
|
|
10
|
+
*/
|
|
11
|
+
export declare function acceptsFile(file: {
|
|
12
|
+
name?: string;
|
|
13
|
+
type?: string;
|
|
14
|
+
}, accepted: readonly string[] | undefined): boolean;
|
|
15
|
+
/** A short, human description of an accept list: "Images, PDFs and .md files". */
|
|
16
|
+
export declare function describeAccepted(accepted: readonly string[] | undefined): string;
|
|
17
|
+
/** "84 KB", "1.3 MB". */
|
|
18
|
+
export declare function formatFileSize(bytes: number | undefined): string;
|
|
19
|
+
/** A name that is safe in `` and `alt="…"`. */
|
|
20
|
+
export declare function attachmentFileName(file: File, fallback?: string): string;
|
|
21
|
+
export declare function readFileAsDataURL(file: Blob): Promise<string>;
|
|
22
|
+
/** The first lines of a text file (tabs expanded, long lines clipped); `undefined` for binary-looking data. */
|
|
23
|
+
export declare function textExcerpt(file: Blob, { lines, columns, bytes }?: {
|
|
24
|
+
lines?: number | undefined;
|
|
25
|
+
columns?: number | undefined;
|
|
26
|
+
bytes?: number | undefined;
|
|
27
|
+
}): Promise<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* A poster for a video: its first frame (a little in, to skip a black lead-in), drawn to a small canvas.
|
|
30
|
+
* Resolves `undefined` when the browser can't decode it in time.
|
|
31
|
+
*/
|
|
32
|
+
export declare function videoPoster(url: string, { width, timeout }?: {
|
|
33
|
+
width?: number | undefined;
|
|
34
|
+
timeout?: number | undefined;
|
|
35
|
+
}): Promise<string | undefined>;
|
|
36
|
+
//# sourceMappingURL=composer-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer-files.d.ts","sourceRoot":"","sources":["../../../src/components/workbench/composer-files.ts"],"names":[],"mappings":"AAKA,2GAA2G;AAC3G,MAAM,MAAM,sBAAsB,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAaxG,wFAAwF;AACxF,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAK9D;AAED,8GAA8G;AAC9G,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,sBAAsB,CAiB9F;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,OAAO,CAWpH;AAED,kFAAkF;AAClF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,MAAM,CAYhF;AAED,yBAAyB;AACzB,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAMhE;AAED,qEAAqE;AACrE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,SAAS,GAAG,MAAM,CAGxE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAO7D;AAED,+GAA+G;AAC/G,wBAAsB,WAAW,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,KAAS,EAAE,OAAY,EAAE,KAAY,EAAE;;;;CAAK,GAAG,O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