@agimon-ai/po-web-components 0.0.0-alpha.196 → 0.0.0-alpha.198
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/dist/index.cjs +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.mjs +1 -1
- package/dist/po-runtime-identity.json +1 -1
- package/dist/src/components/EmptyState.cjs +1 -1
- package/dist/src/components/EmptyState.cjs.map +1 -1
- package/dist/src/components/EmptyState.mjs +1 -1
- package/dist/src/components/EmptyState.mjs.map +1 -1
- package/dist/src/components/FilePreview.cjs +1 -1
- package/dist/src/components/FilePreview.cjs.map +1 -1
- package/dist/src/components/FilePreview.d.mts +3 -1
- package/dist/src/components/FilePreview.d.mts.map +1 -1
- package/dist/src/components/FilePreview.mjs +1 -1
- package/dist/src/components/FilePreview.mjs.map +1 -1
- package/dist/src/components/Markdown.cjs +2 -2
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/Markdown.d.mts.map +1 -1
- package/dist/src/components/Markdown.mjs +2 -2
- package/dist/src/components/Markdown.mjs.map +1 -1
- package/dist/src/components/ReferenceChip.cjs +2 -0
- package/dist/src/components/ReferenceChip.cjs.map +1 -0
- package/dist/src/components/ReferenceChip.d.mts +17 -0
- package/dist/src/components/ReferenceChip.d.mts.map +1 -0
- package/dist/src/components/ReferenceChip.mjs +2 -0
- package/dist/src/components/ReferenceChip.mjs.map +1 -0
- package/dist/src/icons/icons.cjs +1 -1
- package/dist/src/icons/icons.d.mts +2 -2
- package/dist/src/icons/icons.mjs +1 -1
- package/dist/src/lib/markdownReferences.cjs +1 -1
- package/dist/src/lib/markdownReferences.cjs.map +1 -1
- package/dist/src/lib/markdownReferences.mjs +1 -1
- package/dist/src/lib/markdownReferences.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./src/icons/icons.cjs");const ee=require("./src/lib/cn.cjs"),e=require("./src/components/Accordion.cjs"),t=require("./src/lib/ansiSpans.cjs"),n=require("./src/components/AnsiText.cjs"),r=require("./src/components/Avatar.cjs"),i=require("./src/components/Dot.cjs"),a=require("./src/components/AgentAvatar.cjs"),o=require("./src/components/Badge.cjs"),s=require("./src/components/Tooltip.cjs"),c=require("./src/components/Breadcrumb.cjs"),te=require("./src/components/Spinner.cjs"),l=require("./src/components/Button.cjs"),u=require("./src/components/Dialog.cjs"),d=require("./src/lib/review.cjs"),f=require("./src/components/DiffView.cjs"),ne=require("./src/components/Drawer.cjs"),p=require("./src/components/DropdownMenu.cjs"),re=require("./src/components/Checkbox.cjs"),ie=require("./src/lib/editorLanguage.cjs"),m=require("./src/lib/markdownMediaSlot.cjs"),h=require("./src/lib/markdownMedia.cjs"),g=require("./src/lib/syntaxHighlight.cjs"),_=require("./src/components/SyntaxText.cjs"),ae=require("./src/components/CodeBlock.cjs"),oe=require("./src/components/Skeleton.cjs"),se=require("./src/components/CodeEditor.cjs"),v=require("./src/components/Collapsible.cjs"),y=require("./src/components/Input.cjs"),b=require("./src/lib/optionList.cjs"),x=require("./src/components/OptionList.cjs"),S=require("./src/components/Command.cjs"),C=require("./src/components/Panel.cjs"),w=require("./src/components/CtaCard.cjs"),ce=require("./src/components/EmptyState.cjs"),le=require("./src/components/LoadingState.cjs"),T=require("./src/lib/files.cjs"),E=require("./src/components/Tabs.cjs"),D=require("./src/components/FileBrowser.cjs"),O=require("./src/components/MediaViewerDialog.cjs"),ue=require("./src/components/Markdown.cjs"),de=require("./src/components/FilePreview.cjs"),k=require("./src/lib/fileDownload.cjs"),fe=require("./src/components/FlowGraph.cjs"),A=require("./src/lib/hashlineHighlight.cjs"),pe=require("./src/components/HashlineLines.cjs"),me=require("./src/components/Kbd.cjs"),j=require("./src/components/McpToolWidget.cjs"),he=require("./src/components/Label.cjs"),ge=require("./src/components/ViewableImage.cjs"),_e=require("./src/lib/media.cjs"),M=require("./src/components/PdfPreview.cjs"),N=require("./src/components/MediaPreview.cjs"),P=require("./src/components/StatusBadge.cjs"),F=require("./src/components/MessageItem.cjs"),I=require("./src/components/MessageLines.cjs"),L=require("./src/components/Popover.cjs"),R=require("./src/components/Picker.cjs"),z=require("./src/lib/profilePicker.cjs"),B=require("./src/components/ProfilePicker.cjs"),V=require("./src/lib/runDuration.cjs"),ve=require("./src/components/LiveDuration.cjs"),ye=require("./src/components/Progress.cjs"),be=require("./src/lib/qrMatrix.cjs"),xe=require("./src/components/QrCode.cjs"),H=require("./src/components/RadioGroup.cjs"),Se=require("./src/components/Textarea.cjs"),Ce=require("./src/components/ReviewCommentDraft.cjs"),U=require("./src/components/ScrollArea.cjs"),we=require("./src/components/SectionLabel.cjs"),W=require("./src/components/Select.cjs"),Te=require("./src/components/Separator.cjs"),G=require("./src/components/Settings.cjs"),Ee=require("./src/components/SetupRow.cjs"),K=require("./src/components/Sheet.cjs"),q=require("./src/components/StreamCursor.cjs"),De=require("./src/components/Switch.cjs"),Oe=require("./src/components/TerminalView.cjs"),J=require("./src/components/Toast.cjs"),ke=require("./src/components/PathText.cjs"),Ae=require("./src/components/ToolPathLink.cjs"),je=require("./src/lib/collapse.cjs"),Y=require("./src/lib/hashlineView.cjs"),X=require("./src/lib/pathGroups.cjs"),Z=require("./src/lib/tone.cjs"),Me=require("./src/types/editor.cjs"),Q=require("./src/types/tone.cjs");let $=require("lucide-react");exports.ACCENT_TONES=Q.ACCENT_TONES,exports.Accordion=e.Accordion,exports.AccordionContent=e.AccordionContent,exports.AccordionItem=e.AccordionItem,exports.AccordionTrigger=e.AccordionTrigger,Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return $.Activity}}),exports.AgentAvatar=a.AgentAvatar,Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return $.CircleAlert}}),exports.AnsiLine=n.AnsiLine,exports.AnsiText=n.AnsiText,Object.defineProperty(exports,"AppWindowIcon",{enumerable:!0,get:function(){return $.AppWindow}}),Object.defineProperty(exports,"ArrowLeftIcon",{enumerable:!0,get:function(){return $.ArrowLeft}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return $.ArrowRight}}),Object.defineProperty(exports,"ArrowUpRightIcon",{enumerable:!0,get:function(){return $.ArrowUpRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return $.AudioLines}}),exports.Avatar=r.Avatar,exports.AvatarFallback=r.AvatarFallback,exports.AvatarImage=r.AvatarImage,exports.BREADCRUMB_ELLIPSIS=c.BREADCRUMB_ELLIPSIS,Object.defineProperty(exports,"Back10Icon",{enumerable:!0,get:function(){return $.RotateCcw}}),exports.Badge=o.Badge,Object.defineProperty(exports,"BellIcon",{enumerable:!0,get:function(){return $.Bell}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return $.BookmarkPlus}}),Object.defineProperty(exports,"BoxIcon",{enumerable:!0,get:function(){return $.Square}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return $.GitBranch}}),exports.Breadcrumb=c.Breadcrumb,exports.Button=l.Button,exports.CHIP_TONES=Q.CHIP_TONES,exports.CHIP_TO_STATUS=Z.CHIP_TO_STATUS,Object.defineProperty(exports,"CalendarIcon",{enumerable:!0,get:function(){return $.Calendar}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return $.Check}}),exports.Checkbox=re.Checkbox,Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return $.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return $.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return $.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return $.X}}),exports.CodeBlock=ae.CodeBlock,exports.CodeEditor=se.CodeEditor,exports.Collapsible=v.Collapsible,exports.CollapsibleContent=v.CollapsibleContent,exports.CollapsibleTrigger=v.CollapsibleTrigger,exports.CommandDialog=S.CommandDialog,exports.CommandEmpty=S.CommandEmpty,exports.CommandFooter=S.CommandFooter,exports.CommandGroup=S.CommandGroup,exports.CommandGroupLabel=S.CommandGroupLabel,exports.CommandHeader=S.CommandHeader,exports.CommandInput=S.CommandInput,exports.CommandItem=S.CommandItem,exports.CommandItemLabel=S.CommandItemLabel,exports.CommandList=S.CommandList,Object.defineProperty(exports,"ConnectorIcon",{enumerable:!0,get:function(){return $.Spline}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return $.Copy}}),exports.CtaCard=w.CtaCard,exports.DEFAULT_FILE_BROWSER_FILTERS=D.DEFAULT_FILE_BROWSER_FILTERS,exports.DOT_TONES=Q.DOT_TONES,exports.Dialog=u.Dialog,exports.DialogBody=u.DialogBody,exports.DialogClose=u.DialogClose,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.DiffView=f.DiffView,exports.Dot=i.Dot,Object.defineProperty(exports,"DownloadIcon",{enumerable:!0,get:function(){return $.Download}}),exports.Drawer=ne.Drawer,exports.DropdownMenu=p.DropdownMenu,exports.DropdownMenuCheckboxItem=p.DropdownMenuCheckboxItem,exports.DropdownMenuContent=p.DropdownMenuContent,exports.DropdownMenuGroup=p.DropdownMenuGroup,exports.DropdownMenuItem=p.DropdownMenuItem,exports.DropdownMenuLabel=p.DropdownMenuLabel,exports.DropdownMenuRadioGroup=p.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=p.DropdownMenuRadioItem,exports.DropdownMenuSeparator=p.DropdownMenuSeparator,exports.DropdownMenuShortcut=p.DropdownMenuShortcut,exports.DropdownMenuSub=p.DropdownMenuSub,exports.DropdownMenuSubContent=p.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=p.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=p.DropdownMenuTrigger,Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return $.Pencil}}),exports.EmptyState=ce.EmptyState,Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return $.CornerDownLeft}}),Object.defineProperty(exports,"EraserIcon",{enumerable:!0,get:function(){return $.Eraser}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return $.ExternalLink}}),exports.FileAge=D.FileAge,exports.FileBrowser=D.FileBrowser,Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return $.FileText}}),exports.FilePreview=de.FilePreview,Object.defineProperty(exports,"FitIcon",{enumerable:!0,get:function(){return $.Scan}}),exports.FlowGraph=fe.FlowGraph,Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return $.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return $.GitFork}}),Object.defineProperty(exports,"Forward10Icon",{enumerable:!0,get:function(){return $.RotateCw}}),exports.GREP_COLLAPSED_LINES=Y.GREP_COLLAPSED_LINES,Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return $.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return $.Globe}}),Object.defineProperty(exports,"GridIcon",{enumerable:!0,get:function(){return $.LayoutGrid}}),Object.defineProperty(exports,"HandIcon",{enumerable:!0,get:function(){return $.Hand}}),exports.HashlineLines=pe.HashlineLines,Object.defineProperty(exports,"HelpIcon",{enumerable:!0,get:function(){return $.CircleHelp}}),Object.defineProperty(exports,"HighlighterIcon",{enumerable:!0,get:function(){return $.Highlighter}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return $.House}}),Object.defineProperty(exports,"IdCardIcon",{enumerable:!0,get:function(){return $.IdCard}}),Object.defineProperty(exports,"ImageIcon",{enumerable:!0,get:function(){return $.Image}}),exports.Input=y.Input,exports.Kbd=me.Kbd,Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return $.MoreVertical}}),exports.LINE_TONE_TO_STATUS=Z.LINE_TONE_TO_STATUS,exports.Label=he.Label,Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return $.Lightbulb}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return $.List}}),exports.LiveDuration=ve.LiveDuration,Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return $.Loader2}}),exports.LoadingState=le.LoadingState,Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return $.Lock}}),exports.MAX_DIGIT_SHORTCUT=b.MAX_DIGIT_SHORTCUT,exports.MEDIA_KINDS=Me.MEDIA_KINDS,exports.MESSAGE_LINE_TONES=Q.MESSAGE_LINE_TONES,exports.Markdown=ue.Markdown,exports.McpToolFields=j.McpToolFields,exports.McpToolFrame=j.McpToolFrame,exports.McpToolOutput=j.McpToolOutput,exports.MediaPreview=N.MediaPreview,exports.MediaViewerDialog=O.MediaViewerDialog,Object.defineProperty(exports,"MenuIcon",{enumerable:!0,get:function(){return $.Menu}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return $.MessageCircle}}),exports.MessageItem=F.MessageItem,exports.MessageItemBody=F.MessageItemBody,exports.MessageItemGroup=F.MessageItemGroup,exports.MessageItemHeader=F.MessageItemHeader,exports.MessageItemHeaderAccessoryContext=F.MessageItemHeaderAccessoryContext,exports.MessageItemStatus=F.MessageItemStatus,exports.MessageLines=I.MessageLines,Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return $.Mic}}),Object.defineProperty(exports,"MinusIcon",{enumerable:!0,get:function(){return $.Minus}}),Object.defineProperty(exports,"MonitorIcon",{enumerable:!0,get:function(){return $.Monitor}}),exports.NavTab=E.NavTab,exports.NavTabBadge=E.NavTabBadge,Object.defineProperty(exports,"NoteIcon",{enumerable:!0,get:function(){return $.StickyNote}}),exports.OptionLabel=x.OptionLabel,exports.OptionList=x.OptionList,exports.OptionRow=x.OptionRow,Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return $.Palette}}),exports.PanZoom=O.PanZoom,exports.Panel=C.Panel,exports.PanelBody=C.PanelBody,exports.PanelHeader=C.PanelHeader,Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return $.Paperclip}}),exports.PathText=ke.PathText,Object.defineProperty(exports,"PauseIcon",{enumerable:!0,get:function(){return $.Pause}}),exports.PdfPreview=M.PdfPreview,exports.PickerContent=R.PickerContent,exports.PickerList=R.PickerList,Object.defineProperty(exports,"PinIcon",{enumerable:!0,get:function(){return $.MapPin}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return $.CirclePlay}}),Object.defineProperty(exports,"PlayIcon",{enumerable:!0,get:function(){return $.Play}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return $.Plus}}),Object.defineProperty(exports,"PointerIcon",{enumerable:!0,get:function(){return $.MousePointer2}}),exports.Popover=L.Popover,exports.PopoverAnchor=L.PopoverAnchor,exports.PopoverClose=L.PopoverClose,exports.PopoverContent=L.PopoverContent,exports.PopoverFooter=L.PopoverFooter,exports.PopoverHeader=L.PopoverHeader,exports.PopoverTrigger=L.PopoverTrigger,exports.ProfilePicker=B.ProfilePicker,exports.Progress=ye.Progress,Object.defineProperty(exports,"PuzzleIcon",{enumerable:!0,get:function(){return $.Puzzle}}),exports.QrCode=xe.QrCode,Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return $.Quote}}),exports.READ_COLLAPSED_LINES=Y.READ_COLLAPSED_LINES,exports.RadioGroup=H.RadioGroup,exports.RadioGroupCard=H.RadioGroupCard,exports.RadioGroupItem=H.RadioGroupItem,Object.defineProperty(exports,"RedoIcon",{enumerable:!0,get:function(){return $.Redo2}}),Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return $.RefreshCw}}),exports.ReviewCommentDraft=Ce.ReviewCommentDraft,Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return $.Rewind}}),exports.STATUS_EDGE=P.STATUS_EDGE,exports.STATUS_GLYPH=F.STATUS_GLYPH,exports.STATUS_LABEL=F.STATUS_LABEL,exports.STATUS_TONES=Q.STATUS_TONES,exports.STATUS_TO_CHIP=Z.STATUS_TO_CHIP,exports.STATUS_TO_DOT=Z.STATUS_TO_DOT,exports.ScrollArea=U.ScrollArea,exports.ScrollBar=U.ScrollBar,Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return $.Search}}),exports.SectionLabel=we.SectionLabel,exports.Select=W.Select,exports.SelectContent=W.SelectContent,exports.SelectGroup=W.SelectGroup,exports.SelectItem=W.SelectItem,exports.SelectLabel=W.SelectLabel,exports.SelectSeparator=W.SelectSeparator,exports.SelectTrigger=W.SelectTrigger,exports.SelectValue=W.SelectValue,Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return $.Send}}),exports.Separator=Te.Separator,Object.defineProperty(exports,"ServerIcon",{enumerable:!0,get:function(){return $.Server}}),exports.SettingsActions=G.SettingsActions,exports.SettingsCard=G.SettingsCard,exports.SettingsDescription=G.SettingsDescription,exports.SettingsField=G.SettingsField,exports.SettingsHeader=G.SettingsHeader,exports.SettingsNote=G.SettingsNote,exports.SettingsPage=G.SettingsPage,exports.SettingsRow=G.SettingsRow,exports.SettingsRowDescription=G.SettingsRowDescription,exports.SettingsRowText=G.SettingsRowText,exports.SettingsRowTitle=G.SettingsRowTitle,exports.SettingsSection=G.SettingsSection,exports.SettingsSectionDescription=G.SettingsSectionDescription,exports.SettingsSectionHeader=G.SettingsSectionHeader,exports.SettingsSectionTitle=G.SettingsSectionTitle,exports.SettingsTitle=G.SettingsTitle,exports.SetupRow=Ee.SetupRow,exports.Sheet=K.Sheet,exports.SheetBody=K.SheetBody,exports.SheetClose=K.SheetClose,exports.SheetContent=K.SheetContent,exports.SheetDescription=K.SheetDescription,exports.SheetFooter=K.SheetFooter,exports.SheetHeader=K.SheetHeader,exports.SheetOverlay=K.SheetOverlay,exports.SheetTitle=K.SheetTitle,exports.SheetTrigger=K.SheetTrigger,Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return $.ShieldCheck}}),Object.defineProperty(exports,"ShrinkIcon",{enumerable:!0,get:function(){return $.Shrink}}),Object.defineProperty(exports,"SidebarIcon",{enumerable:!0,get:function(){return $.PanelLeft}}),exports.Skeleton=oe.Skeleton,Object.defineProperty(exports,"SlidersIcon",{enumerable:!0,get:function(){return $.SlidersHorizontal}}),Object.defineProperty(exports,"SmartphoneIcon",{enumerable:!0,get:function(){return $.Smartphone}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return $.Sparkles}}),exports.Spinner=te.Spinner,exports.StatusBadge=P.StatusBadge,Object.defineProperty(exports,"StepBackIcon",{enumerable:!0,get:function(){return $.StepBack}}),Object.defineProperty(exports,"StepForwardIcon",{enumerable:!0,get:function(){return $.StepForward}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return $.Square}}),exports.StreamCursor=q.StreamCursor,exports.Switch=De.Switch,exports.SyntaxLine=_.SyntaxLine,exports.SyntaxText=_.SyntaxText,exports.Tabs=E.Tabs,exports.TabsContent=E.TabsContent,exports.TabsList=E.TabsList,exports.TabsTrigger=E.TabsTrigger,Object.defineProperty(exports,"TargetIcon",{enumerable:!0,get:function(){return $.Target}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return $.SquareCheckBig}}),Object.defineProperty(exports,"TerminalIcon",{enumerable:!0,get:function(){return $.SquareTerminal}}),exports.TerminalView=Oe.TerminalView,exports.Textarea=Se.Textarea,exports.Toast=J.Toast,exports.ToastAction=J.ToastAction,exports.ToastClose=J.ToastClose,exports.ToastDescription=J.ToastDescription,exports.ToastProvider=J.ToastProvider,exports.ToastTitle=J.ToastTitle,exports.ToastViewport=J.ToastViewport,exports.ToolPathLink=Ae.ToolPathLink,exports.Tooltip=s.Tooltip,exports.TooltipContent=s.TooltipContent,exports.TooltipProvider=s.TooltipProvider,exports.TooltipTrigger=s.TooltipTrigger,Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return $.Trash2}}),Object.defineProperty(exports,"UndoIcon",{enumerable:!0,get:function(){return $.Undo2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return $.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return $.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return $.Users}}),exports.ViewableImage=ge.ViewableImage,Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return $.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return $.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return $.Wrench}}),exports.ageLabel=T.ageLabel,exports.agentInitials=a.agentInitials,exports.ansiSpans=t.ansiSpans,exports.badgeVariants=o.badgeVariants,exports.boundedFileSource=k.boundedFileSource,exports.breadcrumbSegments=c.breadcrumbSegments,exports.buildReviewPrompt=d.buildReviewPrompt,exports.buttonVariants=l.buttonVariants,exports.clockRefreshMs=V.clockRefreshMs,exports.clockText=V.clockText,exports.cn=ee.cn,exports.collapseLines=je.collapseLines,exports.compactDetails=Y.compactDetails,exports.defaultReviewHeading=d.defaultReviewHeading,exports.detectGrammar=g.detectGrammar,exports.dialogFooterVariants=u.dialogFooterVariants,exports.diffGutterWidth=d.diffGutterWidth,exports.diffRangeOf=d.diffRangeOf,exports.dotVariants=i.dotVariants,exports.drawableImageUrl=h.drawableImageUrl,exports.dropdownMenuItemVariants=p.dropdownMenuItemVariants,exports.fieldVariants=y.fieldVariants,exports.fileAssetPath=T.fileAssetPath,exports.fileKind=T.fileKind,exports.filePreviewMode=T.filePreviewMode,exports.fileTree=T.fileTree,exports.filterFiles=T.filterFiles,exports.formatRunDuration=V.formatRunDuration,exports.grammarKeyOf=ie.grammarKeyOf,exports.groupByDirectory=X.groupByDirectory,exports.groupRowLabel=X.groupRowLabel,exports.handleOptionListKey=b.handleOptionListKey,exports.hashlineBody=Y.hashlineBody,exports.hashlineGroups=A.hashlineGroups,exports.hashlineGroupsKey=A.hashlineGroupsKey,exports.highlightToLines=g.highlightToLines,exports.inlineProfileIcon=z.inlineProfileIcon,exports.isFileLayout=T.isFileLayout,exports.markdownMediaReview=h.markdownMediaReview,exports.markdownMediaReviewSlot=m.markdownMediaReviewSlot,exports.mediaKindOf=_e.mediaKindOf,exports.messageItemRowVariants=F.messageItemRowVariants,exports.messageItemStatusVariants=F.messageItemStatusVariants,exports.messageItemVariants=F.messageItemVariants,exports.messageLineVariants=I.messageLineVariants,exports.modifiedLabel=T.modifiedLabel,exports.newestFiles=T.newestFiles,exports.optionListHint=b.optionListHint,exports.optionListVariants=x.optionListVariants,exports.optionMarker=b.optionMarker,exports.optionMarkerVariants=x.optionMarkerVariants,exports.optionRowVariants=x.optionRowVariants,exports.parseFileHeader=Y.parseFileHeader,exports.parseProfileCatalog=z.parseProfileCatalog,exports.parseTaggedLine=Y.parseTaggedLine,exports.presentHashlineLines=Y.presentHashlineLines,exports.qrMatrix=be.qrMatrix,exports.rangedFileBlob=k.rangedFileBlob,exports.readMediaBytes=k.readMediaBytes,exports.resolvePdfViewportRegion=M.resolvePdfViewportRegion,exports.resultTextLines=Y.resultTextLines,exports.reviewCommentAnchor=d.reviewCommentAnchor,exports.sizeLabel=T.sizeLabel,exports.sortFiles=T.sortFiles,exports.statusBadgeVariants=P.statusBadgeVariants,exports.svgImageUrl=h.svgImageUrl,exports.syntaxStyleOf=g.syntaxStyleOf,exports.tabBadgeVariants=E.tabBadgeVariants,exports.tabVariants=E.tabVariants,exports.takeTrailingNotice=Y.takeTrailingNotice,exports.toastVariants=J.toastVariants,exports.toolTone=F.toolTone,exports.trimSnippet=d.trimSnippet,exports.useMessageItem=F.useMessageItem,exports.useProfileCatalog=B.useProfileCatalog,exports.useSyntaxLines=_.useSyntaxLines;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./src/icons/icons.cjs");const ee=require("./src/lib/cn.cjs"),e=require("./src/components/Accordion.cjs"),t=require("./src/lib/ansiSpans.cjs"),n=require("./src/components/AnsiText.cjs"),r=require("./src/components/Avatar.cjs"),i=require("./src/components/Dot.cjs"),a=require("./src/components/AgentAvatar.cjs"),o=require("./src/components/Badge.cjs"),s=require("./src/components/Tooltip.cjs"),c=require("./src/components/Breadcrumb.cjs"),te=require("./src/components/Spinner.cjs"),l=require("./src/components/Button.cjs"),u=require("./src/components/Dialog.cjs"),d=require("./src/lib/review.cjs"),f=require("./src/components/DiffView.cjs"),ne=require("./src/components/Drawer.cjs"),p=require("./src/components/DropdownMenu.cjs"),re=require("./src/components/Checkbox.cjs"),ie=require("./src/lib/editorLanguage.cjs"),m=require("./src/lib/markdownMediaSlot.cjs"),h=require("./src/lib/markdownMedia.cjs"),g=require("./src/lib/syntaxHighlight.cjs"),_=require("./src/components/SyntaxText.cjs"),ae=require("./src/components/CodeBlock.cjs"),oe=require("./src/components/Skeleton.cjs"),se=require("./src/components/CodeEditor.cjs"),v=require("./src/components/Collapsible.cjs"),y=require("./src/components/Input.cjs"),b=require("./src/lib/optionList.cjs"),x=require("./src/components/OptionList.cjs"),S=require("./src/components/Command.cjs"),C=require("./src/components/Panel.cjs"),w=require("./src/components/CtaCard.cjs"),ce=require("./src/components/EmptyState.cjs"),le=require("./src/components/LoadingState.cjs"),T=require("./src/lib/files.cjs"),E=require("./src/components/Tabs.cjs"),D=require("./src/components/FileBrowser.cjs"),O=require("./src/components/MediaViewerDialog.cjs"),ue=require("./src/components/Markdown.cjs"),de=require("./src/components/FilePreview.cjs"),k=require("./src/lib/fileDownload.cjs"),fe=require("./src/components/FlowGraph.cjs"),A=require("./src/lib/hashlineHighlight.cjs"),pe=require("./src/components/HashlineLines.cjs"),me=require("./src/components/Kbd.cjs"),j=require("./src/components/McpToolWidget.cjs"),he=require("./src/components/Label.cjs"),ge=require("./src/components/ViewableImage.cjs"),_e=require("./src/lib/media.cjs"),M=require("./src/components/PdfPreview.cjs"),N=require("./src/components/MediaPreview.cjs"),P=require("./src/components/StatusBadge.cjs"),F=require("./src/components/MessageItem.cjs"),I=require("./src/components/MessageLines.cjs"),L=require("./src/components/Popover.cjs"),R=require("./src/components/Picker.cjs"),z=require("./src/lib/profilePicker.cjs"),B=require("./src/components/ProfilePicker.cjs"),V=require("./src/lib/runDuration.cjs"),ve=require("./src/components/LiveDuration.cjs"),ye=require("./src/components/Progress.cjs"),be=require("./src/lib/qrMatrix.cjs"),xe=require("./src/components/QrCode.cjs"),H=require("./src/components/RadioGroup.cjs"),Se=require("./src/components/ReferenceChip.cjs"),Ce=require("./src/components/Textarea.cjs"),we=require("./src/components/ReviewCommentDraft.cjs"),U=require("./src/components/ScrollArea.cjs"),Te=require("./src/components/SectionLabel.cjs"),W=require("./src/components/Select.cjs"),Ee=require("./src/components/Separator.cjs"),G=require("./src/components/Settings.cjs"),De=require("./src/components/SetupRow.cjs"),K=require("./src/components/Sheet.cjs"),Oe=require("./src/components/StreamCursor.cjs"),ke=require("./src/components/Switch.cjs"),Ae=require("./src/components/TerminalView.cjs"),q=require("./src/components/Toast.cjs"),je=require("./src/components/PathText.cjs"),Me=require("./src/components/ToolPathLink.cjs"),J=require("./src/lib/collapse.cjs"),Y=require("./src/lib/hashlineView.cjs"),X=require("./src/lib/pathGroups.cjs"),Z=require("./src/lib/tone.cjs"),Ne=require("./src/types/editor.cjs"),Q=require("./src/types/tone.cjs");let $=require("lucide-react");exports.ACCENT_TONES=Q.ACCENT_TONES,exports.Accordion=e.Accordion,exports.AccordionContent=e.AccordionContent,exports.AccordionItem=e.AccordionItem,exports.AccordionTrigger=e.AccordionTrigger,Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return $.Activity}}),exports.AgentAvatar=a.AgentAvatar,Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return $.CircleAlert}}),exports.AnsiLine=n.AnsiLine,exports.AnsiText=n.AnsiText,Object.defineProperty(exports,"AppWindowIcon",{enumerable:!0,get:function(){return $.AppWindow}}),Object.defineProperty(exports,"ArrowLeftIcon",{enumerable:!0,get:function(){return $.ArrowLeft}}),Object.defineProperty(exports,"ArrowRightIcon",{enumerable:!0,get:function(){return $.ArrowRight}}),Object.defineProperty(exports,"ArrowUpRightIcon",{enumerable:!0,get:function(){return $.ArrowUpRight}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return $.AudioLines}}),exports.Avatar=r.Avatar,exports.AvatarFallback=r.AvatarFallback,exports.AvatarImage=r.AvatarImage,exports.BREADCRUMB_ELLIPSIS=c.BREADCRUMB_ELLIPSIS,Object.defineProperty(exports,"Back10Icon",{enumerable:!0,get:function(){return $.RotateCcw}}),exports.Badge=o.Badge,Object.defineProperty(exports,"BellIcon",{enumerable:!0,get:function(){return $.Bell}}),Object.defineProperty(exports,"BookmarkPlusIcon",{enumerable:!0,get:function(){return $.BookmarkPlus}}),Object.defineProperty(exports,"BoxIcon",{enumerable:!0,get:function(){return $.Square}}),Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return $.GitBranch}}),exports.Breadcrumb=c.Breadcrumb,exports.Button=l.Button,exports.CHIP_TONES=Q.CHIP_TONES,exports.CHIP_TO_STATUS=Z.CHIP_TO_STATUS,Object.defineProperty(exports,"CalendarIcon",{enumerable:!0,get:function(){return $.Calendar}}),Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return $.Check}}),exports.Checkbox=re.Checkbox,Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return $.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return $.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return $.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return $.X}}),exports.CodeBlock=ae.CodeBlock,exports.CodeEditor=se.CodeEditor,exports.Collapsible=v.Collapsible,exports.CollapsibleContent=v.CollapsibleContent,exports.CollapsibleTrigger=v.CollapsibleTrigger,exports.CommandDialog=S.CommandDialog,exports.CommandEmpty=S.CommandEmpty,exports.CommandFooter=S.CommandFooter,exports.CommandGroup=S.CommandGroup,exports.CommandGroupLabel=S.CommandGroupLabel,exports.CommandHeader=S.CommandHeader,exports.CommandInput=S.CommandInput,exports.CommandItem=S.CommandItem,exports.CommandItemLabel=S.CommandItemLabel,exports.CommandList=S.CommandList,Object.defineProperty(exports,"ConnectorIcon",{enumerable:!0,get:function(){return $.Spline}}),Object.defineProperty(exports,"CopyIcon",{enumerable:!0,get:function(){return $.Copy}}),exports.CtaCard=w.CtaCard,exports.DEFAULT_FILE_BROWSER_FILTERS=D.DEFAULT_FILE_BROWSER_FILTERS,exports.DOT_TONES=Q.DOT_TONES,exports.Dialog=u.Dialog,exports.DialogBody=u.DialogBody,exports.DialogClose=u.DialogClose,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.DiffView=f.DiffView,exports.Dot=i.Dot,Object.defineProperty(exports,"DownloadIcon",{enumerable:!0,get:function(){return $.Download}}),exports.Drawer=ne.Drawer,exports.DropdownMenu=p.DropdownMenu,exports.DropdownMenuCheckboxItem=p.DropdownMenuCheckboxItem,exports.DropdownMenuContent=p.DropdownMenuContent,exports.DropdownMenuGroup=p.DropdownMenuGroup,exports.DropdownMenuItem=p.DropdownMenuItem,exports.DropdownMenuLabel=p.DropdownMenuLabel,exports.DropdownMenuRadioGroup=p.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=p.DropdownMenuRadioItem,exports.DropdownMenuSeparator=p.DropdownMenuSeparator,exports.DropdownMenuShortcut=p.DropdownMenuShortcut,exports.DropdownMenuSub=p.DropdownMenuSub,exports.DropdownMenuSubContent=p.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=p.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=p.DropdownMenuTrigger,Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return $.Pencil}}),exports.EmptyState=ce.EmptyState,Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return $.CornerDownLeft}}),Object.defineProperty(exports,"EraserIcon",{enumerable:!0,get:function(){return $.Eraser}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return $.ExternalLink}}),exports.FileAge=D.FileAge,exports.FileBrowser=D.FileBrowser,Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return $.FileText}}),exports.FilePreview=de.FilePreview,Object.defineProperty(exports,"FitIcon",{enumerable:!0,get:function(){return $.Scan}}),exports.FlowGraph=fe.FlowGraph,Object.defineProperty(exports,"FolderIcon",{enumerable:!0,get:function(){return $.Folder}}),Object.defineProperty(exports,"ForkIcon",{enumerable:!0,get:function(){return $.GitFork}}),Object.defineProperty(exports,"Forward10Icon",{enumerable:!0,get:function(){return $.RotateCw}}),exports.GREP_COLLAPSED_LINES=Y.GREP_COLLAPSED_LINES,Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return $.Settings}}),Object.defineProperty(exports,"GlobeIcon",{enumerable:!0,get:function(){return $.Globe}}),Object.defineProperty(exports,"GridIcon",{enumerable:!0,get:function(){return $.LayoutGrid}}),Object.defineProperty(exports,"HandIcon",{enumerable:!0,get:function(){return $.Hand}}),exports.HashlineLines=pe.HashlineLines,Object.defineProperty(exports,"HelpIcon",{enumerable:!0,get:function(){return $.CircleHelp}}),Object.defineProperty(exports,"HighlighterIcon",{enumerable:!0,get:function(){return $.Highlighter}}),Object.defineProperty(exports,"HomeIcon",{enumerable:!0,get:function(){return $.House}}),Object.defineProperty(exports,"IdCardIcon",{enumerable:!0,get:function(){return $.IdCard}}),Object.defineProperty(exports,"ImageIcon",{enumerable:!0,get:function(){return $.Image}}),exports.Input=y.Input,exports.Kbd=me.Kbd,Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return $.MoreVertical}}),exports.LINE_TONE_TO_STATUS=Z.LINE_TONE_TO_STATUS,exports.Label=he.Label,Object.defineProperty(exports,"LanguagesIcon",{enumerable:!0,get:function(){return $.Languages}}),Object.defineProperty(exports,"LightbulbIcon",{enumerable:!0,get:function(){return $.Lightbulb}}),Object.defineProperty(exports,"ListIcon",{enumerable:!0,get:function(){return $.List}}),exports.LiveDuration=ve.LiveDuration,Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return $.Loader2}}),exports.LoadingState=le.LoadingState,Object.defineProperty(exports,"LockIcon",{enumerable:!0,get:function(){return $.Lock}}),exports.MAX_DIGIT_SHORTCUT=b.MAX_DIGIT_SHORTCUT,exports.MEDIA_KINDS=Ne.MEDIA_KINDS,exports.MESSAGE_LINE_TONES=Q.MESSAGE_LINE_TONES,exports.Markdown=ue.Markdown,exports.McpToolFields=j.McpToolFields,exports.McpToolFrame=j.McpToolFrame,exports.McpToolOutput=j.McpToolOutput,exports.MediaPreview=N.MediaPreview,exports.MediaViewerDialog=O.MediaViewerDialog,Object.defineProperty(exports,"MenuIcon",{enumerable:!0,get:function(){return $.Menu}}),Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return $.MessageCircle}}),exports.MessageItem=F.MessageItem,exports.MessageItemBody=F.MessageItemBody,exports.MessageItemGroup=F.MessageItemGroup,exports.MessageItemHeader=F.MessageItemHeader,exports.MessageItemHeaderAccessoryContext=F.MessageItemHeaderAccessoryContext,exports.MessageItemStatus=F.MessageItemStatus,exports.MessageLines=I.MessageLines,Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return $.Mic}}),Object.defineProperty(exports,"MinusIcon",{enumerable:!0,get:function(){return $.Minus}}),Object.defineProperty(exports,"MonitorIcon",{enumerable:!0,get:function(){return $.Monitor}}),exports.NavTab=E.NavTab,exports.NavTabBadge=E.NavTabBadge,Object.defineProperty(exports,"NoteIcon",{enumerable:!0,get:function(){return $.StickyNote}}),exports.OptionLabel=x.OptionLabel,exports.OptionList=x.OptionList,exports.OptionRow=x.OptionRow,Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return $.Palette}}),exports.PanZoom=O.PanZoom,exports.Panel=C.Panel,exports.PanelBody=C.PanelBody,exports.PanelHeader=C.PanelHeader,Object.defineProperty(exports,"PaperclipIcon",{enumerable:!0,get:function(){return $.Paperclip}}),exports.PathText=je.PathText,Object.defineProperty(exports,"PauseIcon",{enumerable:!0,get:function(){return $.Pause}}),exports.PdfPreview=M.PdfPreview,exports.PickerContent=R.PickerContent,exports.PickerList=R.PickerList,Object.defineProperty(exports,"PinIcon",{enumerable:!0,get:function(){return $.MapPin}}),Object.defineProperty(exports,"PlayCircleIcon",{enumerable:!0,get:function(){return $.CirclePlay}}),Object.defineProperty(exports,"PlayIcon",{enumerable:!0,get:function(){return $.Play}}),Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return $.Plus}}),Object.defineProperty(exports,"PointerIcon",{enumerable:!0,get:function(){return $.MousePointer2}}),exports.Popover=L.Popover,exports.PopoverAnchor=L.PopoverAnchor,exports.PopoverClose=L.PopoverClose,exports.PopoverContent=L.PopoverContent,exports.PopoverFooter=L.PopoverFooter,exports.PopoverHeader=L.PopoverHeader,exports.PopoverTrigger=L.PopoverTrigger,exports.ProfilePicker=B.ProfilePicker,exports.Progress=ye.Progress,Object.defineProperty(exports,"PuzzleIcon",{enumerable:!0,get:function(){return $.Puzzle}}),exports.QrCode=xe.QrCode,Object.defineProperty(exports,"QuoteIcon",{enumerable:!0,get:function(){return $.Quote}}),exports.READ_COLLAPSED_LINES=Y.READ_COLLAPSED_LINES,exports.RadioGroup=H.RadioGroup,exports.RadioGroupCard=H.RadioGroupCard,exports.RadioGroupItem=H.RadioGroupItem,Object.defineProperty(exports,"RedoIcon",{enumerable:!0,get:function(){return $.Redo2}}),exports.ReferenceChip=Se.ReferenceChip,Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return $.RefreshCw}}),exports.ReviewCommentDraft=we.ReviewCommentDraft,Object.defineProperty(exports,"RewindIcon",{enumerable:!0,get:function(){return $.Rewind}}),exports.STATUS_EDGE=P.STATUS_EDGE,exports.STATUS_GLYPH=F.STATUS_GLYPH,exports.STATUS_LABEL=F.STATUS_LABEL,exports.STATUS_TONES=Q.STATUS_TONES,exports.STATUS_TO_CHIP=Z.STATUS_TO_CHIP,exports.STATUS_TO_DOT=Z.STATUS_TO_DOT,exports.ScrollArea=U.ScrollArea,exports.ScrollBar=U.ScrollBar,Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return $.Search}}),exports.SectionLabel=Te.SectionLabel,exports.Select=W.Select,exports.SelectContent=W.SelectContent,exports.SelectGroup=W.SelectGroup,exports.SelectItem=W.SelectItem,exports.SelectLabel=W.SelectLabel,exports.SelectSeparator=W.SelectSeparator,exports.SelectTrigger=W.SelectTrigger,exports.SelectValue=W.SelectValue,Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return $.Send}}),exports.Separator=Ee.Separator,Object.defineProperty(exports,"ServerIcon",{enumerable:!0,get:function(){return $.Server}}),exports.SettingsActions=G.SettingsActions,exports.SettingsCard=G.SettingsCard,exports.SettingsDescription=G.SettingsDescription,exports.SettingsField=G.SettingsField,exports.SettingsHeader=G.SettingsHeader,exports.SettingsNote=G.SettingsNote,exports.SettingsPage=G.SettingsPage,exports.SettingsRow=G.SettingsRow,exports.SettingsRowDescription=G.SettingsRowDescription,exports.SettingsRowText=G.SettingsRowText,exports.SettingsRowTitle=G.SettingsRowTitle,exports.SettingsSection=G.SettingsSection,exports.SettingsSectionDescription=G.SettingsSectionDescription,exports.SettingsSectionHeader=G.SettingsSectionHeader,exports.SettingsSectionTitle=G.SettingsSectionTitle,exports.SettingsTitle=G.SettingsTitle,exports.SetupRow=De.SetupRow,exports.Sheet=K.Sheet,exports.SheetBody=K.SheetBody,exports.SheetClose=K.SheetClose,exports.SheetContent=K.SheetContent,exports.SheetDescription=K.SheetDescription,exports.SheetFooter=K.SheetFooter,exports.SheetHeader=K.SheetHeader,exports.SheetOverlay=K.SheetOverlay,exports.SheetTitle=K.SheetTitle,exports.SheetTrigger=K.SheetTrigger,Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return $.ShieldCheck}}),Object.defineProperty(exports,"ShrinkIcon",{enumerable:!0,get:function(){return $.Shrink}}),Object.defineProperty(exports,"SidebarIcon",{enumerable:!0,get:function(){return $.PanelLeft}}),exports.Skeleton=oe.Skeleton,Object.defineProperty(exports,"SlidersIcon",{enumerable:!0,get:function(){return $.SlidersHorizontal}}),Object.defineProperty(exports,"SmartphoneIcon",{enumerable:!0,get:function(){return $.Smartphone}}),Object.defineProperty(exports,"SparklesIcon",{enumerable:!0,get:function(){return $.Sparkles}}),exports.Spinner=te.Spinner,exports.StatusBadge=P.StatusBadge,Object.defineProperty(exports,"StepBackIcon",{enumerable:!0,get:function(){return $.StepBack}}),Object.defineProperty(exports,"StepForwardIcon",{enumerable:!0,get:function(){return $.StepForward}}),Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return $.Square}}),exports.StreamCursor=Oe.StreamCursor,exports.Switch=ke.Switch,exports.SyntaxLine=_.SyntaxLine,exports.SyntaxText=_.SyntaxText,exports.Tabs=E.Tabs,exports.TabsContent=E.TabsContent,exports.TabsList=E.TabsList,exports.TabsTrigger=E.TabsTrigger,Object.defineProperty(exports,"TargetIcon",{enumerable:!0,get:function(){return $.Target}}),Object.defineProperty(exports,"TaskIcon",{enumerable:!0,get:function(){return $.SquareCheckBig}}),Object.defineProperty(exports,"TerminalIcon",{enumerable:!0,get:function(){return $.SquareTerminal}}),exports.TerminalView=Ae.TerminalView,exports.Textarea=Ce.Textarea,exports.Toast=q.Toast,exports.ToastAction=q.ToastAction,exports.ToastClose=q.ToastClose,exports.ToastDescription=q.ToastDescription,exports.ToastProvider=q.ToastProvider,exports.ToastTitle=q.ToastTitle,exports.ToastViewport=q.ToastViewport,exports.ToolPathLink=Me.ToolPathLink,exports.Tooltip=s.Tooltip,exports.TooltipContent=s.TooltipContent,exports.TooltipProvider=s.TooltipProvider,exports.TooltipTrigger=s.TooltipTrigger,Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return $.Trash2}}),Object.defineProperty(exports,"UndoIcon",{enumerable:!0,get:function(){return $.Undo2}}),Object.defineProperty(exports,"UnlockIcon",{enumerable:!0,get:function(){return $.LockOpen}}),Object.defineProperty(exports,"UserIcon",{enumerable:!0,get:function(){return $.UserRound}}),Object.defineProperty(exports,"UsersIcon",{enumerable:!0,get:function(){return $.Users}}),exports.ViewableImage=ge.ViewableImage,Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return $.Volume2}}),Object.defineProperty(exports,"WorkflowIcon",{enumerable:!0,get:function(){return $.Workflow}}),Object.defineProperty(exports,"WrenchIcon",{enumerable:!0,get:function(){return $.Wrench}}),exports.ageLabel=T.ageLabel,exports.agentInitials=a.agentInitials,exports.ansiSpans=t.ansiSpans,exports.badgeVariants=o.badgeVariants,exports.boundedFileSource=k.boundedFileSource,exports.breadcrumbSegments=c.breadcrumbSegments,exports.buildReviewPrompt=d.buildReviewPrompt,exports.buttonVariants=l.buttonVariants,exports.clockRefreshMs=V.clockRefreshMs,exports.clockText=V.clockText,exports.cn=ee.cn,exports.collapseLines=J.collapseLines,exports.compactDetails=Y.compactDetails,exports.defaultReviewHeading=d.defaultReviewHeading,exports.detectGrammar=g.detectGrammar,exports.dialogFooterVariants=u.dialogFooterVariants,exports.diffGutterWidth=d.diffGutterWidth,exports.diffRangeOf=d.diffRangeOf,exports.dotVariants=i.dotVariants,exports.drawableImageUrl=h.drawableImageUrl,exports.dropdownMenuItemVariants=p.dropdownMenuItemVariants,exports.fieldVariants=y.fieldVariants,exports.fileAssetPath=T.fileAssetPath,exports.fileKind=T.fileKind,exports.filePreviewMode=T.filePreviewMode,exports.fileTree=T.fileTree,exports.filterFiles=T.filterFiles,exports.formatRunDuration=V.formatRunDuration,exports.grammarKeyOf=ie.grammarKeyOf,exports.groupByDirectory=X.groupByDirectory,exports.groupRowLabel=X.groupRowLabel,exports.handleOptionListKey=b.handleOptionListKey,exports.hashlineBody=Y.hashlineBody,exports.hashlineGroups=A.hashlineGroups,exports.hashlineGroupsKey=A.hashlineGroupsKey,exports.highlightToLines=g.highlightToLines,exports.inlineProfileIcon=z.inlineProfileIcon,exports.isFileLayout=T.isFileLayout,exports.markdownMediaReview=h.markdownMediaReview,exports.markdownMediaReviewSlot=m.markdownMediaReviewSlot,exports.mediaKindOf=_e.mediaKindOf,exports.messageItemRowVariants=F.messageItemRowVariants,exports.messageItemStatusVariants=F.messageItemStatusVariants,exports.messageItemVariants=F.messageItemVariants,exports.messageLineVariants=I.messageLineVariants,exports.modifiedLabel=T.modifiedLabel,exports.newestFiles=T.newestFiles,exports.optionListHint=b.optionListHint,exports.optionListVariants=x.optionListVariants,exports.optionMarker=b.optionMarker,exports.optionMarkerVariants=x.optionMarkerVariants,exports.optionRowVariants=x.optionRowVariants,exports.parseFileHeader=Y.parseFileHeader,exports.parseProfileCatalog=z.parseProfileCatalog,exports.parseTaggedLine=Y.parseTaggedLine,exports.presentHashlineLines=Y.presentHashlineLines,exports.qrMatrix=be.qrMatrix,exports.rangedFileBlob=k.rangedFileBlob,exports.readMediaBytes=k.readMediaBytes,exports.resolvePdfViewportRegion=M.resolvePdfViewportRegion,exports.resultTextLines=Y.resultTextLines,exports.reviewCommentAnchor=d.reviewCommentAnchor,exports.sizeLabel=T.sizeLabel,exports.sortFiles=T.sortFiles,exports.statusBadgeVariants=P.statusBadgeVariants,exports.svgImageUrl=h.svgImageUrl,exports.syntaxStyleOf=g.syntaxStyleOf,exports.tabBadgeVariants=E.tabBadgeVariants,exports.tabVariants=E.tabVariants,exports.takeTrailingNotice=Y.takeTrailingNotice,exports.toastVariants=q.toastVariants,exports.toolTone=F.toolTone,exports.trimSnippet=d.trimSnippet,exports.useMessageItem=F.useMessageItem,exports.useProfileCatalog=B.useProfileCatalog,exports.useSyntaxLines=_.useSyntaxLines;
|
package/dist/index.d.mts
CHANGED
|
@@ -52,6 +52,7 @@ import { LiveDuration, LiveDurationProps } from "./src/components/LiveDuration.m
|
|
|
52
52
|
import { Progress } from "./src/components/Progress.mjs";
|
|
53
53
|
import { QrCode, QrCodeProps } from "./src/components/QrCode.mjs";
|
|
54
54
|
import { RadioGroup, RadioGroupCard, RadioGroupItem } from "./src/components/RadioGroup.mjs";
|
|
55
|
+
import { ReferenceChip } from "./src/components/ReferenceChip.mjs";
|
|
55
56
|
import { ReviewCommentDraft, ReviewCommentDraftProps } from "./src/components/ReviewCommentDraft.mjs";
|
|
56
57
|
import { ScrollArea, ScrollBar } from "./src/components/ScrollArea.mjs";
|
|
57
58
|
import { SectionLabel } from "./src/components/SectionLabel.mjs";
|
|
@@ -73,7 +74,7 @@ import { Textarea, TextareaProps } from "./src/components/Textarea.mjs";
|
|
|
73
74
|
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./src/components/Toast.mjs";
|
|
74
75
|
import { PathText, PathTextProps } from "./src/components/PathText.mjs";
|
|
75
76
|
import { ToolPathLink, ToolPathLinkProps } from "./src/components/ToolPathLink.mjs";
|
|
76
|
-
import { ActivityIcon, AlertIcon, AppWindowIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Back10Icon, BellIcon, BookmarkPlusIcon, BoxIcon, BranchIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, ConnectorIcon, CopyIcon, DownloadIcon, EditIcon, EnterIcon, EraserIcon, ExternalLinkIcon, FileIcon, FitIcon, FolderIcon, ForkIcon, Forward10Icon, GearIcon, GlobeIcon, GridIcon, HandIcon, HelpIcon, HighlighterIcon, HomeIcon, IdCardIcon, ImageIcon, KebabIcon, LightbulbIcon, ListIcon, LoaderIcon, LockIcon, MenuIcon, MessageIcon, MicIcon, MinusIcon, MonitorIcon, NoteIcon, PaletteIcon, PaperclipIcon, PauseIcon, PinIcon, PlayCircleIcon, PlayIcon, PlusIcon, PointerIcon, PuzzleIcon, QuoteIcon, RedoIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ServerIcon, ShieldIcon, ShrinkIcon, SidebarIcon, SlidersIcon, SmartphoneIcon, SparklesIcon, StepBackIcon, StepForwardIcon, StopIcon, TargetIcon, TaskIcon, TerminalIcon, TrashIcon, UndoIcon, UnlockIcon, UserIcon, UsersIcon, VolumeIcon, WorkflowIcon, WrenchIcon } from "./src/icons/icons.mjs";
|
|
77
|
+
import { ActivityIcon, AlertIcon, AppWindowIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Back10Icon, BellIcon, BookmarkPlusIcon, BoxIcon, BranchIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, ConnectorIcon, CopyIcon, DownloadIcon, EditIcon, EnterIcon, EraserIcon, ExternalLinkIcon, FileIcon, FitIcon, FolderIcon, ForkIcon, Forward10Icon, GearIcon, GlobeIcon, GridIcon, HandIcon, HelpIcon, HighlighterIcon, HomeIcon, IdCardIcon, ImageIcon, KebabIcon, LanguagesIcon, LightbulbIcon, ListIcon, LoaderIcon, LockIcon, MenuIcon, MessageIcon, MicIcon, MinusIcon, MonitorIcon, NoteIcon, PaletteIcon, PaperclipIcon, PauseIcon, PinIcon, PlayCircleIcon, PlayIcon, PlusIcon, PointerIcon, PuzzleIcon, QuoteIcon, RedoIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ServerIcon, ShieldIcon, ShrinkIcon, SidebarIcon, SlidersIcon, SmartphoneIcon, SparklesIcon, StepBackIcon, StepForwardIcon, StopIcon, TargetIcon, TaskIcon, TerminalIcon, TrashIcon, UndoIcon, UnlockIcon, UserIcon, UsersIcon, VolumeIcon, WorkflowIcon, WrenchIcon } from "./src/icons/icons.mjs";
|
|
77
78
|
import { AnsiSpan, ansiSpans } from "./src/lib/ansiSpans.mjs";
|
|
78
79
|
import { cn } from "./src/lib/cn.mjs";
|
|
79
80
|
import { CollapsedLines, collapseLines } from "./src/lib/collapse.mjs";
|
|
@@ -86,4 +87,4 @@ import { buildReviewPrompt, defaultReviewHeading, diffGutterWidth, diffRangeOf,
|
|
|
86
87
|
import { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker } from "./src/lib/optionList.mjs";
|
|
87
88
|
import { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT } from "./src/lib/tone.mjs";
|
|
88
89
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./src/components/Tooltip.mjs";
|
|
89
|
-
export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AgentAvatar, type AgentState, AlertIcon, AnsiLine, type AnsiLineProps, type AnsiSpan, AnsiText, type AnsiTextProps, AppWindowIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Back10Icon, Badge, type BadgeProps, type BadgeTone, BellIcon, BookmarkPlusIcon, type BoundedFileSource, BoxIcon, BranchIcon, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHIP_TONES, CHIP_TO_STATUS, CalendarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, type ChipTone, CloseIcon, CodeBlock, type CodeBlockProps, CodeEditor, type CodeEditorController, type CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, ConnectorIcon, CopyIcon, CtaCard, type CtaCardProps, DEFAULT_FILE_BROWSER_FILTERS, DOT_TONES, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogTitle, DialogTrigger, type DiffHunk, type DiffMarker, type DiffRow, type DiffSelection, type DiffSide, DiffView, type DiffViewProps, Dot, type DotProps, type DotTone, DownloadIcon, Drawer, type DrawerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditIcon, type EditorEdit, type EditorMarkedRange, type EditorSelectionRange, type EditorTextRange, type EditorViewportRectangle, EmptyState, type EmptyStateAction, type EmptyStateProps, type EmptyStateSize, EnterIcon, EraserIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileAge, FileBrowser, type FileBrowserFilters, type FileBrowserLayout, type FileBrowserProps, type FileFilters, FileIcon, type FileItem, type FileKind, type FileLayout, type FileModified, FilePreview, type FilePreviewProps, type FileRangeLoader, type FileSort, type FileSortDirection, type FileStatus, type FileStatusFilter, type FileTextPreview, type FileTreeRow, FitIcon, FlowGraph, type FlowGraphEdge, type FlowGraphEdgeShape, type FlowGraphEdgeTone, type FlowGraphEditable, type FlowGraphNode, type FlowGraphNodeResize, type FlowGraphOverlayView, type FlowGraphPlaceTarget, type FlowGraphProps, type FlowGraphSide, FolderIcon, ForkIcon, Forward10Icon, GREP_COLLAPSED_LINES, GearIcon, GlobeIcon, type GrammarKey, type GrammarQuery, GridIcon, HandIcon, type HashlineBody, type HashlineGroup, HashlineLines, type HashlineLinesProps, type HashlineResult, type HashlineResultKind, HelpIcon, HighlighterIcon, HomeIcon, IdCardIcon, ImageIcon, Input, type InputProps, Kbd, KebabIcon, LINE_TONE_TO_STATUS, Label, LightbulbIcon, ListIcon, LiveDuration, type LiveDurationProps, LoaderIcon, LoadingState, type LoadingStateProps, type LoadingStateSize, LockIcon, MAX_DIGIT_SHORTCUT, MEDIA_KINDS, MESSAGE_LINE_TONES, Markdown, type MarkdownMedia, type MarkdownMediaReview, type MarkdownMediaReviewContribution, type MarkdownMediaReviewPanelProps, McpToolFields, McpToolFrame, McpToolOutput, type MediaFrameCapture, type MediaFrameMetadata, type MediaIntrinsicSize, type MediaKind, type MediaPlaybackState, MediaPreview, type MediaPreviewController, type MediaPreviewProps, MediaViewerDialog, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, MessageItemHeaderAccessoryContext, type MessageItemHeaderProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, type MessageLine, type MessageLineTone, MessageLines, type MessageLinesProps, MicIcon, MinusIcon, MonitorIcon, NavTab, NavTabBadge, type NavTabProps, NoteIcon, OptionLabel, OptionList, type OptionListProps, OptionRow, type OptionRowProps, PaletteIcon, PanZoom, Panel, PanelBody, PanelHeader, type PanelProps, PaperclipIcon, type PathGroup, PathText, type PathTextProps, PauseIcon, type PdfNormalizedRectangle, type PdfPageRegion, type PdfPageState, PdfPreview, type PdfPreviewController, type PdfPreviewProps, PickerContent, type PickerContentProps, type PickerItem, PickerList, type PickerListProps, PinIcon, PlayCircleIcon, PlayIcon, PlusIcon, PointerIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, type ProfileChoice, ProfilePicker, type ProfilePickerCatalog, type ProfilePickerProfile, type ProfilePickerProps, type ProfilePickerState, type ProfilePickerStatus, Progress, PuzzleIcon, QrCode, type QrCodeProps, QuoteIcon, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RedoIcon, type ReferenceRenderer, RefreshIcon, type ReviewComment, ReviewCommentDraft, type ReviewCommentDraftProps, RewindIcon, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, STATUS_TONES, STATUS_TO_CHIP, STATUS_TO_DOT, ScrollArea, ScrollBar, SearchIcon, SectionLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SendIcon, Separator, ServerIcon, SettingsActions, SettingsCard, SettingsDescription, SettingsField, SettingsHeader, SettingsNote, SettingsPage, SettingsRow, SettingsRowDescription, SettingsRowText, SettingsRowTitle, SettingsSection, SettingsSectionDescription, SettingsSectionHeader, SettingsSectionTitle, SettingsTitle, SetupRow, type SetupRowProps, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger, ShieldIcon, ShrinkIcon, SidebarIcon, Skeleton, SlidersIcon, SmartphoneIcon, SparklesIcon, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusTone, StepBackIcon, StepForwardIcon, StopIcon, StreamCursor, Switch, SyntaxLine, type SyntaxLineProps, type SyntaxLines, type SyntaxQuery, type SyntaxSpan, SyntaxText, type SyntaxTextProps, type SyntaxToken, Tabs, TabsContent, TabsList, TabsTrigger, type TaggedLine, type TaggedLineMarker, TargetIcon, TaskIcon, type TerminalHandle, TerminalIcon, TerminalView, type TerminalViewProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, UndoIcon, UnlockIcon, UserIcon, UsersIcon, ViewableImage, type ViewableImageProps, VolumeIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, badgeVariants, boundedFileSource, breadcrumbSegments, buildReviewPrompt, buttonVariants, clockRefreshMs, clockText, cn, collapseLines, compactDetails, defaultReviewHeading, detectGrammar, dialogFooterVariants, diffGutterWidth, diffRangeOf, dotVariants, drawableImageUrl, dropdownMenuItemVariants, fieldVariants, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, formatRunDuration, grammarKeyOf, groupByDirectory, groupRowLabel, handleOptionListKey, hashlineBody, hashlineGroups, hashlineGroupsKey, highlightToLines, inlineProfileIcon, isFileLayout, markdownMediaReview, markdownMediaReviewSlot, mediaKindOf, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, messageLineVariants, modifiedLabel, newestFiles, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseProfileCatalog, parseTaggedLine, presentHashlineLines, qrMatrix, rangedFileBlob, readMediaBytes, resolvePdfViewportRegion, resultTextLines, reviewCommentAnchor, sizeLabel, sortFiles, statusBadgeVariants, svgImageUrl, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, trimSnippet, useMessageItem, useProfileCatalog, useSyntaxLines };
|
|
90
|
+
export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AgentAvatar, type AgentState, AlertIcon, AnsiLine, type AnsiLineProps, type AnsiSpan, AnsiText, type AnsiTextProps, AppWindowIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpRightIcon, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Back10Icon, Badge, type BadgeProps, type BadgeTone, BellIcon, BookmarkPlusIcon, type BoundedFileSource, BoxIcon, BranchIcon, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHIP_TONES, CHIP_TO_STATUS, CalendarIcon, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, type ChipTone, CloseIcon, CodeBlock, type CodeBlockProps, CodeEditor, type CodeEditorController, type CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, ConnectorIcon, CopyIcon, CtaCard, type CtaCardProps, DEFAULT_FILE_BROWSER_FILTERS, DOT_TONES, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogTitle, DialogTrigger, type DiffHunk, type DiffMarker, type DiffRow, type DiffSelection, type DiffSide, DiffView, type DiffViewProps, Dot, type DotProps, type DotTone, DownloadIcon, Drawer, type DrawerProps, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditIcon, type EditorEdit, type EditorMarkedRange, type EditorSelectionRange, type EditorTextRange, type EditorViewportRectangle, EmptyState, type EmptyStateAction, type EmptyStateProps, type EmptyStateSize, EnterIcon, EraserIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileAge, FileBrowser, type FileBrowserFilters, type FileBrowserLayout, type FileBrowserProps, type FileFilters, FileIcon, type FileItem, type FileKind, type FileLayout, type FileModified, FilePreview, type FilePreviewProps, type FileRangeLoader, type FileSort, type FileSortDirection, type FileStatus, type FileStatusFilter, type FileTextPreview, type FileTreeRow, FitIcon, FlowGraph, type FlowGraphEdge, type FlowGraphEdgeShape, type FlowGraphEdgeTone, type FlowGraphEditable, type FlowGraphNode, type FlowGraphNodeResize, type FlowGraphOverlayView, type FlowGraphPlaceTarget, type FlowGraphProps, type FlowGraphSide, FolderIcon, ForkIcon, Forward10Icon, GREP_COLLAPSED_LINES, GearIcon, GlobeIcon, type GrammarKey, type GrammarQuery, GridIcon, HandIcon, type HashlineBody, type HashlineGroup, HashlineLines, type HashlineLinesProps, type HashlineResult, type HashlineResultKind, HelpIcon, HighlighterIcon, HomeIcon, IdCardIcon, ImageIcon, Input, type InputProps, Kbd, KebabIcon, LINE_TONE_TO_STATUS, Label, LanguagesIcon, LightbulbIcon, ListIcon, LiveDuration, type LiveDurationProps, LoaderIcon, LoadingState, type LoadingStateProps, type LoadingStateSize, LockIcon, MAX_DIGIT_SHORTCUT, MEDIA_KINDS, MESSAGE_LINE_TONES, Markdown, type MarkdownMedia, type MarkdownMediaReview, type MarkdownMediaReviewContribution, type MarkdownMediaReviewPanelProps, McpToolFields, McpToolFrame, McpToolOutput, type MediaFrameCapture, type MediaFrameMetadata, type MediaIntrinsicSize, type MediaKind, type MediaPlaybackState, MediaPreview, type MediaPreviewController, type MediaPreviewProps, MediaViewerDialog, MenuIcon, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, MessageItemHeaderAccessoryContext, type MessageItemHeaderProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, type MessageLine, type MessageLineTone, MessageLines, type MessageLinesProps, MicIcon, MinusIcon, MonitorIcon, NavTab, NavTabBadge, type NavTabProps, NoteIcon, OptionLabel, OptionList, type OptionListProps, OptionRow, type OptionRowProps, PaletteIcon, PanZoom, Panel, PanelBody, PanelHeader, type PanelProps, PaperclipIcon, type PathGroup, PathText, type PathTextProps, PauseIcon, type PdfNormalizedRectangle, type PdfPageRegion, type PdfPageState, PdfPreview, type PdfPreviewController, type PdfPreviewProps, PickerContent, type PickerContentProps, type PickerItem, PickerList, type PickerListProps, PinIcon, PlayCircleIcon, PlayIcon, PlusIcon, PointerIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, type ProfileChoice, ProfilePicker, type ProfilePickerCatalog, type ProfilePickerProfile, type ProfilePickerProps, type ProfilePickerState, type ProfilePickerStatus, Progress, PuzzleIcon, QrCode, type QrCodeProps, QuoteIcon, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RedoIcon, ReferenceChip, type ReferenceRenderer, RefreshIcon, type ReviewComment, ReviewCommentDraft, type ReviewCommentDraftProps, RewindIcon, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, STATUS_TONES, STATUS_TO_CHIP, STATUS_TO_DOT, ScrollArea, ScrollBar, SearchIcon, SectionLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SendIcon, Separator, ServerIcon, SettingsActions, SettingsCard, SettingsDescription, SettingsField, SettingsHeader, SettingsNote, SettingsPage, SettingsRow, SettingsRowDescription, SettingsRowText, SettingsRowTitle, SettingsSection, SettingsSectionDescription, SettingsSectionHeader, SettingsSectionTitle, SettingsTitle, SetupRow, type SetupRowProps, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger, ShieldIcon, ShrinkIcon, SidebarIcon, Skeleton, SlidersIcon, SmartphoneIcon, SparklesIcon, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusTone, StepBackIcon, StepForwardIcon, StopIcon, StreamCursor, Switch, SyntaxLine, type SyntaxLineProps, type SyntaxLines, type SyntaxQuery, type SyntaxSpan, SyntaxText, type SyntaxTextProps, type SyntaxToken, Tabs, TabsContent, TabsList, TabsTrigger, type TaggedLine, type TaggedLineMarker, TargetIcon, TaskIcon, type TerminalHandle, TerminalIcon, TerminalView, type TerminalViewProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, UndoIcon, UnlockIcon, UserIcon, UsersIcon, ViewableImage, type ViewableImageProps, VolumeIcon, WorkflowIcon, WrenchIcon, ageLabel, agentInitials, ansiSpans, badgeVariants, boundedFileSource, breadcrumbSegments, buildReviewPrompt, buttonVariants, clockRefreshMs, clockText, cn, collapseLines, compactDetails, defaultReviewHeading, detectGrammar, dialogFooterVariants, diffGutterWidth, diffRangeOf, dotVariants, drawableImageUrl, dropdownMenuItemVariants, fieldVariants, fileAssetPath, fileKind, filePreviewMode, fileTree, filterFiles, formatRunDuration, grammarKeyOf, groupByDirectory, groupRowLabel, handleOptionListKey, hashlineBody, hashlineGroups, hashlineGroupsKey, highlightToLines, inlineProfileIcon, isFileLayout, markdownMediaReview, markdownMediaReviewSlot, mediaKindOf, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, messageLineVariants, modifiedLabel, newestFiles, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseProfileCatalog, parseTaggedLine, presentHashlineLines, qrMatrix, rangedFileBlob, readMediaBytes, resolvePdfViewportRegion, resultTextLines, reviewCommentAnchor, sizeLabel, sortFiles, statusBadgeVariants, svgImageUrl, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, trimSnippet, useMessageItem, useProfileCatalog, useSyntaxLines };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActivityIcon as e,AlertIcon as t,AppWindowIcon as n,ArrowLeftIcon as r,ArrowRightIcon as i,ArrowUpRightIcon as a,AudioLinesIcon as o,Back10Icon as s,BellIcon as c,BookmarkPlusIcon as l,BoxIcon as u,BranchIcon as d,CalendarIcon as f,CheckIcon as p,ChevronDownIcon as m,ChevronRightIcon as h,ChevronUpIcon as g,CloseIcon as _,ConnectorIcon as v,CopyIcon as y,DownloadIcon as b,EditIcon as x,EnterIcon as S,EraserIcon as C,ExternalLinkIcon as w,FileIcon as T,FitIcon as E,FolderIcon as D,ForkIcon as O,Forward10Icon as k,GearIcon as A,GlobeIcon as j,GridIcon as M,HandIcon as N,HelpIcon as P,HighlighterIcon as F,HomeIcon as I,IdCardIcon as L,ImageIcon as R,KebabIcon as z,LightbulbIcon as B,ListIcon as V,LoaderIcon as H,LockIcon as U,MenuIcon as W,MessageIcon as G,MicIcon as K,MinusIcon as q,MonitorIcon as J,NoteIcon as Y,PaletteIcon as X,PaperclipIcon as Z,PauseIcon as Q,PinIcon as $,PlayCircleIcon as ee,PlayIcon as te,PlusIcon as ne,PointerIcon as re,PuzzleIcon as ie,QuoteIcon as ae,RedoIcon as oe,RefreshIcon as se,RewindIcon as ce,SearchIcon as le,SendIcon as ue,ServerIcon as de,ShieldIcon as fe,ShrinkIcon as pe,SidebarIcon as me,SlidersIcon as he,SmartphoneIcon as ge,SparklesIcon as _e,StepBackIcon as ve,StepForwardIcon as ye,StopIcon as be,TargetIcon as xe,TaskIcon as Se,TerminalIcon as Ce,TrashIcon as we,UndoIcon as Te,UnlockIcon as Ee,UserIcon as De,UsersIcon as Oe,VolumeIcon as ke,WorkflowIcon as Ae,WrenchIcon as je}from"./src/icons/icons.mjs";import{cn as Me}from"./src/lib/cn.mjs";import{Accordion as Ne,AccordionContent as Pe,AccordionItem as Fe,AccordionTrigger as Ie}from"./src/components/Accordion.mjs";import{ansiSpans as Le}from"./src/lib/ansiSpans.mjs";import{AnsiLine as Re,AnsiText as ze}from"./src/components/AnsiText.mjs";import{Avatar as Be,AvatarFallback as Ve,AvatarImage as He}from"./src/components/Avatar.mjs";import{Dot as Ue,dotVariants as We}from"./src/components/Dot.mjs";import{AgentAvatar as Ge,agentInitials as Ke}from"./src/components/AgentAvatar.mjs";import{Badge as qe,badgeVariants as Je}from"./src/components/Badge.mjs";import{Tooltip as Ye,TooltipContent as Xe,TooltipProvider as Ze,TooltipTrigger as Qe}from"./src/components/Tooltip.mjs";import{BREADCRUMB_ELLIPSIS as $e,Breadcrumb as et,breadcrumbSegments as tt}from"./src/components/Breadcrumb.mjs";import{Spinner as nt}from"./src/components/Spinner.mjs";import{Button as rt,buttonVariants as it}from"./src/components/Button.mjs";import{Dialog as at,DialogBody as ot,DialogClose as st,DialogContent as ct,DialogDescription as lt,DialogFooter as ut,DialogHeader as dt,DialogTitle as ft,DialogTrigger as pt,dialogFooterVariants as mt}from"./src/components/Dialog.mjs";import{buildReviewPrompt as ht,defaultReviewHeading as gt,diffGutterWidth as _t,diffRangeOf as vt,reviewCommentAnchor as yt,trimSnippet as bt}from"./src/lib/review.mjs";import{DiffView as xt}from"./src/components/DiffView.mjs";import{Drawer as St}from"./src/components/Drawer.mjs";import{DropdownMenu as Ct,DropdownMenuCheckboxItem as wt,DropdownMenuContent as Tt,DropdownMenuGroup as Et,DropdownMenuItem as Dt,DropdownMenuLabel as Ot,DropdownMenuRadioGroup as kt,DropdownMenuRadioItem as At,DropdownMenuSeparator as jt,DropdownMenuShortcut as Mt,DropdownMenuSub as Nt,DropdownMenuSubContent as Pt,DropdownMenuSubTrigger as Ft,DropdownMenuTrigger as It,dropdownMenuItemVariants as Lt}from"./src/components/DropdownMenu.mjs";import{Checkbox as Rt}from"./src/components/Checkbox.mjs";import{grammarKeyOf as zt}from"./src/lib/editorLanguage.mjs";import{markdownMediaReviewSlot as Bt}from"./src/lib/markdownMediaSlot.mjs";import{drawableImageUrl as Vt,markdownMediaReview as Ht,svgImageUrl as Ut}from"./src/lib/markdownMedia.mjs";import{detectGrammar as Wt,highlightToLines as Gt,syntaxStyleOf as Kt}from"./src/lib/syntaxHighlight.mjs";import{SyntaxLine as qt,SyntaxText as Jt,useSyntaxLines as Yt}from"./src/components/SyntaxText.mjs";import{CodeBlock as Xt}from"./src/components/CodeBlock.mjs";import{Skeleton as Zt}from"./src/components/Skeleton.mjs";import{CodeEditor as Qt}from"./src/components/CodeEditor.mjs";import{Collapsible as $t,CollapsibleContent as en,CollapsibleTrigger as tn}from"./src/components/Collapsible.mjs";import{Input as nn,fieldVariants as rn}from"./src/components/Input.mjs";import{MAX_DIGIT_SHORTCUT as an,handleOptionListKey as on,optionListHint as sn,optionMarker as cn}from"./src/lib/optionList.mjs";import{OptionLabel as ln,OptionList as un,OptionRow as dn,optionListVariants as fn,optionMarkerVariants as pn,optionRowVariants as mn}from"./src/components/OptionList.mjs";import{CommandDialog as hn,CommandEmpty as gn,CommandFooter as _n,CommandGroup as vn,CommandGroupLabel as yn,CommandHeader as bn,CommandInput as xn,CommandItem as Sn,CommandItemLabel as Cn,CommandList as wn}from"./src/components/Command.mjs";import{Panel as Tn,PanelBody as En,PanelHeader as Dn}from"./src/components/Panel.mjs";import{CtaCard as On}from"./src/components/CtaCard.mjs";import{EmptyState as kn}from"./src/components/EmptyState.mjs";import{LoadingState as An}from"./src/components/LoadingState.mjs";import{ageLabel as jn,fileAssetPath as Mn,fileKind as Nn,filePreviewMode as Pn,fileTree as Fn,filterFiles as In,isFileLayout as Ln,modifiedLabel as Rn,newestFiles as zn,sizeLabel as Bn,sortFiles as Vn}from"./src/lib/files.mjs";import{NavTab as Hn,NavTabBadge as Un,Tabs as Wn,TabsContent as Gn,TabsList as Kn,TabsTrigger as qn,tabBadgeVariants as Jn,tabVariants as Yn}from"./src/components/Tabs.mjs";import{DEFAULT_FILE_BROWSER_FILTERS as Xn,FileAge as Zn,FileBrowser as Qn}from"./src/components/FileBrowser.mjs";import{MediaViewerDialog as $n,PanZoom as er}from"./src/components/MediaViewerDialog.mjs";import{Markdown as tr}from"./src/components/Markdown.mjs";import{FilePreview as nr}from"./src/components/FilePreview.mjs";import{boundedFileSource as rr,rangedFileBlob as ir,readMediaBytes as ar}from"./src/lib/fileDownload.mjs";import{FlowGraph as or}from"./src/components/FlowGraph.mjs";import{hashlineGroups as sr,hashlineGroupsKey as cr}from"./src/lib/hashlineHighlight.mjs";import{HashlineLines as lr}from"./src/components/HashlineLines.mjs";import{Kbd as ur}from"./src/components/Kbd.mjs";import{McpToolFields as dr,McpToolFrame as fr,McpToolOutput as pr}from"./src/components/McpToolWidget.mjs";import{Label as mr}from"./src/components/Label.mjs";import{ViewableImage as hr}from"./src/components/ViewableImage.mjs";import{mediaKindOf as gr}from"./src/lib/media.mjs";import{PdfPreview as _r,resolvePdfViewportRegion as vr}from"./src/components/PdfPreview.mjs";import{MediaPreview as yr}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as br,StatusBadge as xr,statusBadgeVariants as Sr}from"./src/components/StatusBadge.mjs";import{MessageItem as Cr,MessageItemBody as wr,MessageItemGroup as Tr,MessageItemHeader as Er,MessageItemHeaderAccessoryContext as Dr,MessageItemStatus as Or,STATUS_GLYPH as kr,STATUS_LABEL as Ar,messageItemRowVariants as jr,messageItemStatusVariants as Mr,messageItemVariants as Nr,toolTone as Pr,useMessageItem as Fr}from"./src/components/MessageItem.mjs";import{MessageLines as Ir,messageLineVariants as Lr}from"./src/components/MessageLines.mjs";import{Popover as Rr,PopoverAnchor as zr,PopoverClose as Br,PopoverContent as Vr,PopoverFooter as Hr,PopoverHeader as Ur,PopoverTrigger as Wr}from"./src/components/Popover.mjs";import{PickerContent as Gr,PickerList as Kr}from"./src/components/Picker.mjs";import{inlineProfileIcon as qr,parseProfileCatalog as Jr}from"./src/lib/profilePicker.mjs";import{ProfilePicker as Yr,useProfileCatalog as Xr}from"./src/components/ProfilePicker.mjs";import{clockRefreshMs as Zr,clockText as Qr,formatRunDuration as $r}from"./src/lib/runDuration.mjs";import{LiveDuration as ei}from"./src/components/LiveDuration.mjs";import{Progress as ti}from"./src/components/Progress.mjs";import{qrMatrix as ni}from"./src/lib/qrMatrix.mjs";import{QrCode as ri}from"./src/components/QrCode.mjs";import{RadioGroup as ii,RadioGroupCard as ai,RadioGroupItem as oi}from"./src/components/RadioGroup.mjs";import{Textarea as si}from"./src/components/Textarea.mjs";import{ReviewCommentDraft as ci}from"./src/components/ReviewCommentDraft.mjs";import{ScrollArea as li,ScrollBar as ui}from"./src/components/ScrollArea.mjs";import{SectionLabel as di}from"./src/components/SectionLabel.mjs";import{Select as fi,SelectContent as pi,SelectGroup as mi,SelectItem as hi,SelectLabel as gi,SelectSeparator as _i,SelectTrigger as vi,SelectValue as yi}from"./src/components/Select.mjs";import{Separator as bi}from"./src/components/Separator.mjs";import{SettingsActions as xi,SettingsCard as Si,SettingsDescription as Ci,SettingsField as wi,SettingsHeader as Ti,SettingsNote as Ei,SettingsPage as Di,SettingsRow as Oi,SettingsRowDescription as ki,SettingsRowText as Ai,SettingsRowTitle as ji,SettingsSection as Mi,SettingsSectionDescription as Ni,SettingsSectionHeader as Pi,SettingsSectionTitle as Fi,SettingsTitle as Ii}from"./src/components/Settings.mjs";import{SetupRow as Li}from"./src/components/SetupRow.mjs";import{Sheet as Ri,SheetBody as zi,SheetClose as Bi,SheetContent as Vi,SheetDescription as Hi,SheetFooter as Ui,SheetHeader as Wi,SheetOverlay as Gi,SheetTitle as Ki,SheetTrigger as qi}from"./src/components/Sheet.mjs";import{StreamCursor as Ji}from"./src/components/StreamCursor.mjs";import{Switch as Yi}from"./src/components/Switch.mjs";import{TerminalView as Xi}from"./src/components/TerminalView.mjs";import{Toast as Zi,ToastAction as Qi,ToastClose as $i,ToastDescription as ea,ToastProvider as ta,ToastTitle as na,ToastViewport as ra,toastVariants as ia}from"./src/components/Toast.mjs";import{PathText as aa}from"./src/components/PathText.mjs";import{ToolPathLink as oa}from"./src/components/ToolPathLink.mjs";import{collapseLines as sa}from"./src/lib/collapse.mjs";import{GREP_COLLAPSED_LINES as ca,READ_COLLAPSED_LINES as la,compactDetails as ua,hashlineBody as da,parseFileHeader as fa,parseTaggedLine as pa,presentHashlineLines as ma,resultTextLines as ha,takeTrailingNotice as ga}from"./src/lib/hashlineView.mjs";import{groupByDirectory as _a,groupRowLabel as va}from"./src/lib/pathGroups.mjs";import{CHIP_TO_STATUS as ya,LINE_TONE_TO_STATUS as ba,STATUS_TO_CHIP as xa,STATUS_TO_DOT as Sa}from"./src/lib/tone.mjs";import{MEDIA_KINDS as Ca}from"./src/types/editor.mjs";import{ACCENT_TONES as wa,CHIP_TONES as Ta,DOT_TONES as Ea,MESSAGE_LINE_TONES as Da,STATUS_TONES as Oa}from"./src/types/tone.mjs";export{wa as ACCENT_TONES,Ne as Accordion,Pe as AccordionContent,Fe as AccordionItem,Ie as AccordionTrigger,e as ActivityIcon,Ge as AgentAvatar,t as AlertIcon,Re as AnsiLine,ze as AnsiText,n as AppWindowIcon,r as ArrowLeftIcon,i as ArrowRightIcon,a as ArrowUpRightIcon,o as AudioLinesIcon,Be as Avatar,Ve as AvatarFallback,He as AvatarImage,$e as BREADCRUMB_ELLIPSIS,s as Back10Icon,qe as Badge,c as BellIcon,l as BookmarkPlusIcon,u as BoxIcon,d as BranchIcon,et as Breadcrumb,rt as Button,Ta as CHIP_TONES,ya as CHIP_TO_STATUS,f as CalendarIcon,p as CheckIcon,Rt as Checkbox,m as ChevronDownIcon,h as ChevronRightIcon,g as ChevronUpIcon,_ as CloseIcon,Xt as CodeBlock,Qt as CodeEditor,$t as Collapsible,en as CollapsibleContent,tn as CollapsibleTrigger,hn as CommandDialog,gn as CommandEmpty,_n as CommandFooter,vn as CommandGroup,yn as CommandGroupLabel,bn as CommandHeader,xn as CommandInput,Sn as CommandItem,Cn as CommandItemLabel,wn as CommandList,v as ConnectorIcon,y as CopyIcon,On as CtaCard,Xn as DEFAULT_FILE_BROWSER_FILTERS,Ea as DOT_TONES,at as Dialog,ot as DialogBody,st as DialogClose,ct as DialogContent,lt as DialogDescription,ut as DialogFooter,dt as DialogHeader,ft as DialogTitle,pt as DialogTrigger,xt as DiffView,Ue as Dot,b as DownloadIcon,St as Drawer,Ct as DropdownMenu,wt as DropdownMenuCheckboxItem,Tt as DropdownMenuContent,Et as DropdownMenuGroup,Dt as DropdownMenuItem,Ot as DropdownMenuLabel,kt as DropdownMenuRadioGroup,At as DropdownMenuRadioItem,jt as DropdownMenuSeparator,Mt as DropdownMenuShortcut,Nt as DropdownMenuSub,Pt as DropdownMenuSubContent,Ft as DropdownMenuSubTrigger,It as DropdownMenuTrigger,x as EditIcon,kn as EmptyState,S as EnterIcon,C as EraserIcon,w as ExternalLinkIcon,Zn as FileAge,Qn as FileBrowser,T as FileIcon,nr as FilePreview,E as FitIcon,or as FlowGraph,D as FolderIcon,O as ForkIcon,k as Forward10Icon,ca as GREP_COLLAPSED_LINES,A as GearIcon,j as GlobeIcon,M as GridIcon,N as HandIcon,lr as HashlineLines,P as HelpIcon,F as HighlighterIcon,I as HomeIcon,L as IdCardIcon,R as ImageIcon,nn as Input,ur as Kbd,z as KebabIcon,ba as LINE_TONE_TO_STATUS,mr as Label,B as LightbulbIcon,V as ListIcon,ei as LiveDuration,H as LoaderIcon,An as LoadingState,U as LockIcon,an as MAX_DIGIT_SHORTCUT,Ca as MEDIA_KINDS,Da as MESSAGE_LINE_TONES,tr as Markdown,dr as McpToolFields,fr as McpToolFrame,pr as McpToolOutput,yr as MediaPreview,$n as MediaViewerDialog,W as MenuIcon,G as MessageIcon,Cr as MessageItem,wr as MessageItemBody,Tr as MessageItemGroup,Er as MessageItemHeader,Dr as MessageItemHeaderAccessoryContext,Or as MessageItemStatus,Ir as MessageLines,K as MicIcon,q as MinusIcon,J as MonitorIcon,Hn as NavTab,Un as NavTabBadge,Y as NoteIcon,ln as OptionLabel,un as OptionList,dn as OptionRow,X as PaletteIcon,er as PanZoom,Tn as Panel,En as PanelBody,Dn as PanelHeader,Z as PaperclipIcon,aa as PathText,Q as PauseIcon,_r as PdfPreview,Gr as PickerContent,Kr as PickerList,$ as PinIcon,ee as PlayCircleIcon,te as PlayIcon,ne as PlusIcon,re as PointerIcon,Rr as Popover,zr as PopoverAnchor,Br as PopoverClose,Vr as PopoverContent,Hr as PopoverFooter,Ur as PopoverHeader,Wr as PopoverTrigger,Yr as ProfilePicker,ti as Progress,ie as PuzzleIcon,ri as QrCode,ae as QuoteIcon,la as READ_COLLAPSED_LINES,ii as RadioGroup,ai as RadioGroupCard,oi as RadioGroupItem,oe as RedoIcon,se as RefreshIcon,ci as ReviewCommentDraft,ce as RewindIcon,br as STATUS_EDGE,kr as STATUS_GLYPH,Ar as STATUS_LABEL,Oa as STATUS_TONES,xa as STATUS_TO_CHIP,Sa as STATUS_TO_DOT,li as ScrollArea,ui as ScrollBar,le as SearchIcon,di as SectionLabel,fi as Select,pi as SelectContent,mi as SelectGroup,hi as SelectItem,gi as SelectLabel,_i as SelectSeparator,vi as SelectTrigger,yi as SelectValue,ue as SendIcon,bi as Separator,de as ServerIcon,xi as SettingsActions,Si as SettingsCard,Ci as SettingsDescription,wi as SettingsField,Ti as SettingsHeader,Ei as SettingsNote,Di as SettingsPage,Oi as SettingsRow,ki as SettingsRowDescription,Ai as SettingsRowText,ji as SettingsRowTitle,Mi as SettingsSection,Ni as SettingsSectionDescription,Pi as SettingsSectionHeader,Fi as SettingsSectionTitle,Ii as SettingsTitle,Li as SetupRow,Ri as Sheet,zi as SheetBody,Bi as SheetClose,Vi as SheetContent,Hi as SheetDescription,Ui as SheetFooter,Wi as SheetHeader,Gi as SheetOverlay,Ki as SheetTitle,qi as SheetTrigger,fe as ShieldIcon,pe as ShrinkIcon,me as SidebarIcon,Zt as Skeleton,he as SlidersIcon,ge as SmartphoneIcon,_e as SparklesIcon,nt as Spinner,xr as StatusBadge,ve as StepBackIcon,ye as StepForwardIcon,be as StopIcon,Ji as StreamCursor,Yi as Switch,qt as SyntaxLine,Jt as SyntaxText,Wn as Tabs,Gn as TabsContent,Kn as TabsList,qn as TabsTrigger,xe as TargetIcon,Se as TaskIcon,Ce as TerminalIcon,Xi as TerminalView,si as Textarea,Zi as Toast,Qi as ToastAction,$i as ToastClose,ea as ToastDescription,ta as ToastProvider,na as ToastTitle,ra as ToastViewport,oa as ToolPathLink,Ye as Tooltip,Xe as TooltipContent,Ze as TooltipProvider,Qe as TooltipTrigger,we as TrashIcon,Te as UndoIcon,Ee as UnlockIcon,De as UserIcon,Oe as UsersIcon,hr as ViewableImage,ke as VolumeIcon,Ae as WorkflowIcon,je as WrenchIcon,jn as ageLabel,Ke as agentInitials,Le as ansiSpans,Je as badgeVariants,rr as boundedFileSource,tt as breadcrumbSegments,ht as buildReviewPrompt,it as buttonVariants,Zr as clockRefreshMs,Qr as clockText,Me as cn,sa as collapseLines,ua as compactDetails,gt as defaultReviewHeading,Wt as detectGrammar,mt as dialogFooterVariants,_t as diffGutterWidth,vt as diffRangeOf,We as dotVariants,Vt as drawableImageUrl,Lt as dropdownMenuItemVariants,rn as fieldVariants,Mn as fileAssetPath,Nn as fileKind,Pn as filePreviewMode,Fn as fileTree,In as filterFiles,$r as formatRunDuration,zt as grammarKeyOf,_a as groupByDirectory,va as groupRowLabel,on as handleOptionListKey,da as hashlineBody,sr as hashlineGroups,cr as hashlineGroupsKey,Gt as highlightToLines,qr as inlineProfileIcon,Ln as isFileLayout,Ht as markdownMediaReview,Bt as markdownMediaReviewSlot,gr as mediaKindOf,jr as messageItemRowVariants,Mr as messageItemStatusVariants,Nr as messageItemVariants,Lr as messageLineVariants,Rn as modifiedLabel,zn as newestFiles,sn as optionListHint,fn as optionListVariants,cn as optionMarker,pn as optionMarkerVariants,mn as optionRowVariants,fa as parseFileHeader,Jr as parseProfileCatalog,pa as parseTaggedLine,ma as presentHashlineLines,ni as qrMatrix,ir as rangedFileBlob,ar as readMediaBytes,vr as resolvePdfViewportRegion,ha as resultTextLines,yt as reviewCommentAnchor,Bn as sizeLabel,Vn as sortFiles,Sr as statusBadgeVariants,Ut as svgImageUrl,Kt as syntaxStyleOf,Jn as tabBadgeVariants,Yn as tabVariants,ga as takeTrailingNotice,ia as toastVariants,Pr as toolTone,bt as trimSnippet,Fr as useMessageItem,Xr as useProfileCatalog,Yt as useSyntaxLines};
|
|
1
|
+
import{ActivityIcon as e,AlertIcon as t,AppWindowIcon as n,ArrowLeftIcon as r,ArrowRightIcon as i,ArrowUpRightIcon as a,AudioLinesIcon as o,Back10Icon as s,BellIcon as c,BookmarkPlusIcon as l,BoxIcon as u,BranchIcon as d,CalendarIcon as f,CheckIcon as p,ChevronDownIcon as m,ChevronRightIcon as h,ChevronUpIcon as g,CloseIcon as _,ConnectorIcon as v,CopyIcon as y,DownloadIcon as b,EditIcon as x,EnterIcon as S,EraserIcon as C,ExternalLinkIcon as w,FileIcon as T,FitIcon as E,FolderIcon as D,ForkIcon as O,Forward10Icon as k,GearIcon as A,GlobeIcon as j,GridIcon as M,HandIcon as N,HelpIcon as P,HighlighterIcon as F,HomeIcon as I,IdCardIcon as L,ImageIcon as R,KebabIcon as z,LanguagesIcon as B,LightbulbIcon as V,ListIcon as H,LoaderIcon as U,LockIcon as W,MenuIcon as G,MessageIcon as K,MicIcon as q,MinusIcon as J,MonitorIcon as Y,NoteIcon as X,PaletteIcon as Z,PaperclipIcon as Q,PauseIcon as $,PinIcon as ee,PlayCircleIcon as te,PlayIcon as ne,PlusIcon as re,PointerIcon as ie,PuzzleIcon as ae,QuoteIcon as oe,RedoIcon as se,RefreshIcon as ce,RewindIcon as le,SearchIcon as ue,SendIcon as de,ServerIcon as fe,ShieldIcon as pe,ShrinkIcon as me,SidebarIcon as he,SlidersIcon as ge,SmartphoneIcon as _e,SparklesIcon as ve,StepBackIcon as ye,StepForwardIcon as be,StopIcon as xe,TargetIcon as Se,TaskIcon as Ce,TerminalIcon as we,TrashIcon as Te,UndoIcon as Ee,UnlockIcon as De,UserIcon as Oe,UsersIcon as ke,VolumeIcon as Ae,WorkflowIcon as je,WrenchIcon as Me}from"./src/icons/icons.mjs";import{cn as Ne}from"./src/lib/cn.mjs";import{Accordion as Pe,AccordionContent as Fe,AccordionItem as Ie,AccordionTrigger as Le}from"./src/components/Accordion.mjs";import{ansiSpans as Re}from"./src/lib/ansiSpans.mjs";import{AnsiLine as ze,AnsiText as Be}from"./src/components/AnsiText.mjs";import{Avatar as Ve,AvatarFallback as He,AvatarImage as Ue}from"./src/components/Avatar.mjs";import{Dot as We,dotVariants as Ge}from"./src/components/Dot.mjs";import{AgentAvatar as Ke,agentInitials as qe}from"./src/components/AgentAvatar.mjs";import{Badge as Je,badgeVariants as Ye}from"./src/components/Badge.mjs";import{Tooltip as Xe,TooltipContent as Ze,TooltipProvider as Qe,TooltipTrigger as $e}from"./src/components/Tooltip.mjs";import{BREADCRUMB_ELLIPSIS as et,Breadcrumb as tt,breadcrumbSegments as nt}from"./src/components/Breadcrumb.mjs";import{Spinner as rt}from"./src/components/Spinner.mjs";import{Button as it,buttonVariants as at}from"./src/components/Button.mjs";import{Dialog as ot,DialogBody as st,DialogClose as ct,DialogContent as lt,DialogDescription as ut,DialogFooter as dt,DialogHeader as ft,DialogTitle as pt,DialogTrigger as mt,dialogFooterVariants as ht}from"./src/components/Dialog.mjs";import{buildReviewPrompt as gt,defaultReviewHeading as _t,diffGutterWidth as vt,diffRangeOf as yt,reviewCommentAnchor as bt,trimSnippet as xt}from"./src/lib/review.mjs";import{DiffView as St}from"./src/components/DiffView.mjs";import{Drawer as Ct}from"./src/components/Drawer.mjs";import{DropdownMenu as wt,DropdownMenuCheckboxItem as Tt,DropdownMenuContent as Et,DropdownMenuGroup as Dt,DropdownMenuItem as Ot,DropdownMenuLabel as kt,DropdownMenuRadioGroup as At,DropdownMenuRadioItem as jt,DropdownMenuSeparator as Mt,DropdownMenuShortcut as Nt,DropdownMenuSub as Pt,DropdownMenuSubContent as Ft,DropdownMenuSubTrigger as It,DropdownMenuTrigger as Lt,dropdownMenuItemVariants as Rt}from"./src/components/DropdownMenu.mjs";import{Checkbox as zt}from"./src/components/Checkbox.mjs";import{grammarKeyOf as Bt}from"./src/lib/editorLanguage.mjs";import{markdownMediaReviewSlot as Vt}from"./src/lib/markdownMediaSlot.mjs";import{drawableImageUrl as Ht,markdownMediaReview as Ut,svgImageUrl as Wt}from"./src/lib/markdownMedia.mjs";import{detectGrammar as Gt,highlightToLines as Kt,syntaxStyleOf as qt}from"./src/lib/syntaxHighlight.mjs";import{SyntaxLine as Jt,SyntaxText as Yt,useSyntaxLines as Xt}from"./src/components/SyntaxText.mjs";import{CodeBlock as Zt}from"./src/components/CodeBlock.mjs";import{Skeleton as Qt}from"./src/components/Skeleton.mjs";import{CodeEditor as $t}from"./src/components/CodeEditor.mjs";import{Collapsible as en,CollapsibleContent as tn,CollapsibleTrigger as nn}from"./src/components/Collapsible.mjs";import{Input as rn,fieldVariants as an}from"./src/components/Input.mjs";import{MAX_DIGIT_SHORTCUT as on,handleOptionListKey as sn,optionListHint as cn,optionMarker as ln}from"./src/lib/optionList.mjs";import{OptionLabel as un,OptionList as dn,OptionRow as fn,optionListVariants as pn,optionMarkerVariants as mn,optionRowVariants as hn}from"./src/components/OptionList.mjs";import{CommandDialog as gn,CommandEmpty as _n,CommandFooter as vn,CommandGroup as yn,CommandGroupLabel as bn,CommandHeader as xn,CommandInput as Sn,CommandItem as Cn,CommandItemLabel as wn,CommandList as Tn}from"./src/components/Command.mjs";import{Panel as En,PanelBody as Dn,PanelHeader as On}from"./src/components/Panel.mjs";import{CtaCard as kn}from"./src/components/CtaCard.mjs";import{EmptyState as An}from"./src/components/EmptyState.mjs";import{LoadingState as jn}from"./src/components/LoadingState.mjs";import{ageLabel as Mn,fileAssetPath as Nn,fileKind as Pn,filePreviewMode as Fn,fileTree as In,filterFiles as Ln,isFileLayout as Rn,modifiedLabel as zn,newestFiles as Bn,sizeLabel as Vn,sortFiles as Hn}from"./src/lib/files.mjs";import{NavTab as Un,NavTabBadge as Wn,Tabs as Gn,TabsContent as Kn,TabsList as qn,TabsTrigger as Jn,tabBadgeVariants as Yn,tabVariants as Xn}from"./src/components/Tabs.mjs";import{DEFAULT_FILE_BROWSER_FILTERS as Zn,FileAge as Qn,FileBrowser as $n}from"./src/components/FileBrowser.mjs";import{MediaViewerDialog as er,PanZoom as tr}from"./src/components/MediaViewerDialog.mjs";import{Markdown as nr}from"./src/components/Markdown.mjs";import{FilePreview as rr}from"./src/components/FilePreview.mjs";import{boundedFileSource as ir,rangedFileBlob as ar,readMediaBytes as or}from"./src/lib/fileDownload.mjs";import{FlowGraph as sr}from"./src/components/FlowGraph.mjs";import{hashlineGroups as cr,hashlineGroupsKey as lr}from"./src/lib/hashlineHighlight.mjs";import{HashlineLines as ur}from"./src/components/HashlineLines.mjs";import{Kbd as dr}from"./src/components/Kbd.mjs";import{McpToolFields as fr,McpToolFrame as pr,McpToolOutput as mr}from"./src/components/McpToolWidget.mjs";import{Label as hr}from"./src/components/Label.mjs";import{ViewableImage as gr}from"./src/components/ViewableImage.mjs";import{mediaKindOf as _r}from"./src/lib/media.mjs";import{PdfPreview as vr,resolvePdfViewportRegion as yr}from"./src/components/PdfPreview.mjs";import{MediaPreview as br}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as xr,StatusBadge as Sr,statusBadgeVariants as Cr}from"./src/components/StatusBadge.mjs";import{MessageItem as wr,MessageItemBody as Tr,MessageItemGroup as Er,MessageItemHeader as Dr,MessageItemHeaderAccessoryContext as Or,MessageItemStatus as kr,STATUS_GLYPH as Ar,STATUS_LABEL as jr,messageItemRowVariants as Mr,messageItemStatusVariants as Nr,messageItemVariants as Pr,toolTone as Fr,useMessageItem as Ir}from"./src/components/MessageItem.mjs";import{MessageLines as Lr,messageLineVariants as Rr}from"./src/components/MessageLines.mjs";import{Popover as zr,PopoverAnchor as Br,PopoverClose as Vr,PopoverContent as Hr,PopoverFooter as Ur,PopoverHeader as Wr,PopoverTrigger as Gr}from"./src/components/Popover.mjs";import{PickerContent as Kr,PickerList as qr}from"./src/components/Picker.mjs";import{inlineProfileIcon as Jr,parseProfileCatalog as Yr}from"./src/lib/profilePicker.mjs";import{ProfilePicker as Xr,useProfileCatalog as Zr}from"./src/components/ProfilePicker.mjs";import{clockRefreshMs as Qr,clockText as $r,formatRunDuration as ei}from"./src/lib/runDuration.mjs";import{LiveDuration as ti}from"./src/components/LiveDuration.mjs";import{Progress as ni}from"./src/components/Progress.mjs";import{qrMatrix as ri}from"./src/lib/qrMatrix.mjs";import{QrCode as ii}from"./src/components/QrCode.mjs";import{RadioGroup as ai,RadioGroupCard as oi,RadioGroupItem as si}from"./src/components/RadioGroup.mjs";import{ReferenceChip as ci}from"./src/components/ReferenceChip.mjs";import{Textarea as li}from"./src/components/Textarea.mjs";import{ReviewCommentDraft as ui}from"./src/components/ReviewCommentDraft.mjs";import{ScrollArea as di,ScrollBar as fi}from"./src/components/ScrollArea.mjs";import{SectionLabel as pi}from"./src/components/SectionLabel.mjs";import{Select as mi,SelectContent as hi,SelectGroup as gi,SelectItem as _i,SelectLabel as vi,SelectSeparator as yi,SelectTrigger as bi,SelectValue as xi}from"./src/components/Select.mjs";import{Separator as Si}from"./src/components/Separator.mjs";import{SettingsActions as Ci,SettingsCard as wi,SettingsDescription as Ti,SettingsField as Ei,SettingsHeader as Di,SettingsNote as Oi,SettingsPage as ki,SettingsRow as Ai,SettingsRowDescription as ji,SettingsRowText as Mi,SettingsRowTitle as Ni,SettingsSection as Pi,SettingsSectionDescription as Fi,SettingsSectionHeader as Ii,SettingsSectionTitle as Li,SettingsTitle as Ri}from"./src/components/Settings.mjs";import{SetupRow as zi}from"./src/components/SetupRow.mjs";import{Sheet as Bi,SheetBody as Vi,SheetClose as Hi,SheetContent as Ui,SheetDescription as Wi,SheetFooter as Gi,SheetHeader as Ki,SheetOverlay as qi,SheetTitle as Ji,SheetTrigger as Yi}from"./src/components/Sheet.mjs";import{StreamCursor as Xi}from"./src/components/StreamCursor.mjs";import{Switch as Zi}from"./src/components/Switch.mjs";import{TerminalView as Qi}from"./src/components/TerminalView.mjs";import{Toast as $i,ToastAction as ea,ToastClose as ta,ToastDescription as na,ToastProvider as ra,ToastTitle as ia,ToastViewport as aa,toastVariants as oa}from"./src/components/Toast.mjs";import{PathText as sa}from"./src/components/PathText.mjs";import{ToolPathLink as ca}from"./src/components/ToolPathLink.mjs";import{collapseLines as la}from"./src/lib/collapse.mjs";import{GREP_COLLAPSED_LINES as ua,READ_COLLAPSED_LINES as da,compactDetails as fa,hashlineBody as pa,parseFileHeader as ma,parseTaggedLine as ha,presentHashlineLines as ga,resultTextLines as _a,takeTrailingNotice as va}from"./src/lib/hashlineView.mjs";import{groupByDirectory as ya,groupRowLabel as ba}from"./src/lib/pathGroups.mjs";import{CHIP_TO_STATUS as xa,LINE_TONE_TO_STATUS as Sa,STATUS_TO_CHIP as Ca,STATUS_TO_DOT as wa}from"./src/lib/tone.mjs";import{MEDIA_KINDS as Ta}from"./src/types/editor.mjs";import{ACCENT_TONES as Ea,CHIP_TONES as Da,DOT_TONES as Oa,MESSAGE_LINE_TONES as ka,STATUS_TONES as Aa}from"./src/types/tone.mjs";export{Ea as ACCENT_TONES,Pe as Accordion,Fe as AccordionContent,Ie as AccordionItem,Le as AccordionTrigger,e as ActivityIcon,Ke as AgentAvatar,t as AlertIcon,ze as AnsiLine,Be as AnsiText,n as AppWindowIcon,r as ArrowLeftIcon,i as ArrowRightIcon,a as ArrowUpRightIcon,o as AudioLinesIcon,Ve as Avatar,He as AvatarFallback,Ue as AvatarImage,et as BREADCRUMB_ELLIPSIS,s as Back10Icon,Je as Badge,c as BellIcon,l as BookmarkPlusIcon,u as BoxIcon,d as BranchIcon,tt as Breadcrumb,it as Button,Da as CHIP_TONES,xa as CHIP_TO_STATUS,f as CalendarIcon,p as CheckIcon,zt as Checkbox,m as ChevronDownIcon,h as ChevronRightIcon,g as ChevronUpIcon,_ as CloseIcon,Zt as CodeBlock,$t as CodeEditor,en as Collapsible,tn as CollapsibleContent,nn as CollapsibleTrigger,gn as CommandDialog,_n as CommandEmpty,vn as CommandFooter,yn as CommandGroup,bn as CommandGroupLabel,xn as CommandHeader,Sn as CommandInput,Cn as CommandItem,wn as CommandItemLabel,Tn as CommandList,v as ConnectorIcon,y as CopyIcon,kn as CtaCard,Zn as DEFAULT_FILE_BROWSER_FILTERS,Oa as DOT_TONES,ot as Dialog,st as DialogBody,ct as DialogClose,lt as DialogContent,ut as DialogDescription,dt as DialogFooter,ft as DialogHeader,pt as DialogTitle,mt as DialogTrigger,St as DiffView,We as Dot,b as DownloadIcon,Ct as Drawer,wt as DropdownMenu,Tt as DropdownMenuCheckboxItem,Et as DropdownMenuContent,Dt as DropdownMenuGroup,Ot as DropdownMenuItem,kt as DropdownMenuLabel,At as DropdownMenuRadioGroup,jt as DropdownMenuRadioItem,Mt as DropdownMenuSeparator,Nt as DropdownMenuShortcut,Pt as DropdownMenuSub,Ft as DropdownMenuSubContent,It as DropdownMenuSubTrigger,Lt as DropdownMenuTrigger,x as EditIcon,An as EmptyState,S as EnterIcon,C as EraserIcon,w as ExternalLinkIcon,Qn as FileAge,$n as FileBrowser,T as FileIcon,rr as FilePreview,E as FitIcon,sr as FlowGraph,D as FolderIcon,O as ForkIcon,k as Forward10Icon,ua as GREP_COLLAPSED_LINES,A as GearIcon,j as GlobeIcon,M as GridIcon,N as HandIcon,ur as HashlineLines,P as HelpIcon,F as HighlighterIcon,I as HomeIcon,L as IdCardIcon,R as ImageIcon,rn as Input,dr as Kbd,z as KebabIcon,Sa as LINE_TONE_TO_STATUS,hr as Label,B as LanguagesIcon,V as LightbulbIcon,H as ListIcon,ti as LiveDuration,U as LoaderIcon,jn as LoadingState,W as LockIcon,on as MAX_DIGIT_SHORTCUT,Ta as MEDIA_KINDS,ka as MESSAGE_LINE_TONES,nr as Markdown,fr as McpToolFields,pr as McpToolFrame,mr as McpToolOutput,br as MediaPreview,er as MediaViewerDialog,G as MenuIcon,K as MessageIcon,wr as MessageItem,Tr as MessageItemBody,Er as MessageItemGroup,Dr as MessageItemHeader,Or as MessageItemHeaderAccessoryContext,kr as MessageItemStatus,Lr as MessageLines,q as MicIcon,J as MinusIcon,Y as MonitorIcon,Un as NavTab,Wn as NavTabBadge,X as NoteIcon,un as OptionLabel,dn as OptionList,fn as OptionRow,Z as PaletteIcon,tr as PanZoom,En as Panel,Dn as PanelBody,On as PanelHeader,Q as PaperclipIcon,sa as PathText,$ as PauseIcon,vr as PdfPreview,Kr as PickerContent,qr as PickerList,ee as PinIcon,te as PlayCircleIcon,ne as PlayIcon,re as PlusIcon,ie as PointerIcon,zr as Popover,Br as PopoverAnchor,Vr as PopoverClose,Hr as PopoverContent,Ur as PopoverFooter,Wr as PopoverHeader,Gr as PopoverTrigger,Xr as ProfilePicker,ni as Progress,ae as PuzzleIcon,ii as QrCode,oe as QuoteIcon,da as READ_COLLAPSED_LINES,ai as RadioGroup,oi as RadioGroupCard,si as RadioGroupItem,se as RedoIcon,ci as ReferenceChip,ce as RefreshIcon,ui as ReviewCommentDraft,le as RewindIcon,xr as STATUS_EDGE,Ar as STATUS_GLYPH,jr as STATUS_LABEL,Aa as STATUS_TONES,Ca as STATUS_TO_CHIP,wa as STATUS_TO_DOT,di as ScrollArea,fi as ScrollBar,ue as SearchIcon,pi as SectionLabel,mi as Select,hi as SelectContent,gi as SelectGroup,_i as SelectItem,vi as SelectLabel,yi as SelectSeparator,bi as SelectTrigger,xi as SelectValue,de as SendIcon,Si as Separator,fe as ServerIcon,Ci as SettingsActions,wi as SettingsCard,Ti as SettingsDescription,Ei as SettingsField,Di as SettingsHeader,Oi as SettingsNote,ki as SettingsPage,Ai as SettingsRow,ji as SettingsRowDescription,Mi as SettingsRowText,Ni as SettingsRowTitle,Pi as SettingsSection,Fi as SettingsSectionDescription,Ii as SettingsSectionHeader,Li as SettingsSectionTitle,Ri as SettingsTitle,zi as SetupRow,Bi as Sheet,Vi as SheetBody,Hi as SheetClose,Ui as SheetContent,Wi as SheetDescription,Gi as SheetFooter,Ki as SheetHeader,qi as SheetOverlay,Ji as SheetTitle,Yi as SheetTrigger,pe as ShieldIcon,me as ShrinkIcon,he as SidebarIcon,Qt as Skeleton,ge as SlidersIcon,_e as SmartphoneIcon,ve as SparklesIcon,rt as Spinner,Sr as StatusBadge,ye as StepBackIcon,be as StepForwardIcon,xe as StopIcon,Xi as StreamCursor,Zi as Switch,Jt as SyntaxLine,Yt as SyntaxText,Gn as Tabs,Kn as TabsContent,qn as TabsList,Jn as TabsTrigger,Se as TargetIcon,Ce as TaskIcon,we as TerminalIcon,Qi as TerminalView,li as Textarea,$i as Toast,ea as ToastAction,ta as ToastClose,na as ToastDescription,ra as ToastProvider,ia as ToastTitle,aa as ToastViewport,ca as ToolPathLink,Xe as Tooltip,Ze as TooltipContent,Qe as TooltipProvider,$e as TooltipTrigger,Te as TrashIcon,Ee as UndoIcon,De as UnlockIcon,Oe as UserIcon,ke as UsersIcon,gr as ViewableImage,Ae as VolumeIcon,je as WorkflowIcon,Me as WrenchIcon,Mn as ageLabel,qe as agentInitials,Re as ansiSpans,Ye as badgeVariants,ir as boundedFileSource,nt as breadcrumbSegments,gt as buildReviewPrompt,at as buttonVariants,Qr as clockRefreshMs,$r as clockText,Ne as cn,la as collapseLines,fa as compactDetails,_t as defaultReviewHeading,Gt as detectGrammar,ht as dialogFooterVariants,vt as diffGutterWidth,yt as diffRangeOf,Ge as dotVariants,Ht as drawableImageUrl,Rt as dropdownMenuItemVariants,an as fieldVariants,Nn as fileAssetPath,Pn as fileKind,Fn as filePreviewMode,In as fileTree,Ln as filterFiles,ei as formatRunDuration,Bt as grammarKeyOf,ya as groupByDirectory,ba as groupRowLabel,sn as handleOptionListKey,pa as hashlineBody,cr as hashlineGroups,lr as hashlineGroupsKey,Kt as highlightToLines,Jr as inlineProfileIcon,Rn as isFileLayout,Ut as markdownMediaReview,Vt as markdownMediaReviewSlot,_r as mediaKindOf,Mr as messageItemRowVariants,Nr as messageItemStatusVariants,Pr as messageItemVariants,Rr as messageLineVariants,zn as modifiedLabel,Bn as newestFiles,cn as optionListHint,pn as optionListVariants,ln as optionMarker,mn as optionMarkerVariants,hn as optionRowVariants,ma as parseFileHeader,Yr as parseProfileCatalog,ha as parseTaggedLine,ga as presentHashlineLines,ri as qrMatrix,ar as rangedFileBlob,or as readMediaBytes,yr as resolvePdfViewportRegion,_a as resultTextLines,bt as reviewCommentAnchor,Vn as sizeLabel,Hn as sortFiles,Cr as statusBadgeVariants,Wt as svgImageUrl,qt as syntaxStyleOf,Yn as tabBadgeVariants,Xn as tabVariants,va as takeTrailingNotice,oa as toastVariants,Fr as toolTone,xt as trimSnippet,Ir as useMessageItem,Zr as useProfileCatalog,Xt as useSyntaxLines};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","NOTICE","README.md","llms.txt","package.json","src/components/Accordion.stories.tsx","src/components/Accordion.tsx","src/components/AgentAvatar.stories.tsx","src/components/AgentAvatar.tsx","src/components/AnsiText.stories.tsx","src/components/AnsiText.tsx","src/components/Avatar.stories.tsx","src/components/Avatar.tsx","src/components/Badge.stories.tsx","src/components/Badge.tsx","src/components/BrandPalette.stories.tsx","src/components/Breadcrumb.stories.tsx","src/components/Breadcrumb.tsx","src/components/Button.stories.tsx","src/components/Button.tsx","src/components/Checkbox.stories.tsx","src/components/Checkbox.tsx","src/components/CodeBlock.stories.tsx","src/components/CodeBlock.tsx","src/components/CodeEditor.stories.tsx","src/components/CodeEditor.tsx","src/components/CodeEditorView.stories.tsx","src/components/CodeEditorView.tsx","src/components/Collapsible.stories.tsx","src/components/Collapsible.tsx","src/components/Command.stories.tsx","src/components/Command.tsx","src/components/CopyButton.stories.tsx","src/components/CopyButton.tsx","src/components/CtaCard.stories.tsx","src/components/CtaCard.tsx","src/components/Dialog.stories.tsx","src/components/Dialog.tsx","src/components/DiffView.stories.tsx","src/components/DiffView.tsx","src/components/Dot.stories.tsx","src/components/Dot.tsx","src/components/Drawer.stories.tsx","src/components/Drawer.tsx","src/components/DropdownMenu.stories.tsx","src/components/DropdownMenu.tsx","src/components/EmptyState.stories.tsx","src/components/EmptyState.tsx","src/components/FileBrowser.stories.tsx","src/components/FileBrowser.tsx","src/components/FilePreview.stories.tsx","src/components/FilePreview.tsx","src/components/FlowGraph.stories.tsx","src/components/FlowGraph.tsx","src/components/HashlineLines.stories.tsx","src/components/HashlineLines.tsx","src/components/Input.stories.tsx","src/components/Input.tsx","src/components/Kbd.stories.tsx","src/components/Kbd.tsx","src/components/Label.stories.tsx","src/components/Label.tsx","src/components/LiveDuration.tsx","src/components/LoadingState.stories.tsx","src/components/LoadingState.tsx","src/components/Markdown.stories.tsx","src/components/Markdown.tsx","src/components/McpApp.tsx","src/components/McpToolWidget.stories.tsx","src/components/McpToolWidget.tsx","src/components/MediaPreview.stories.tsx","src/components/MediaPreview.tsx","src/components/MediaViewerDialog.stories.tsx","src/components/MediaViewerDialog.tsx","src/components/MermaidDiagram.stories.tsx","src/components/MermaidDiagram.tsx","src/components/MessageItem.stories.tsx","src/components/MessageItem.tsx","src/components/MessageLines.stories.tsx","src/components/MessageLines.tsx","src/components/OptionList.stories.tsx","src/components/OptionList.tsx","src/components/Panel.stories.tsx","src/components/Panel.tsx","src/components/PathText.stories.tsx","src/components/PathText.tsx","src/components/PdfPreview.stories.tsx","src/components/PdfPreview.tsx","src/components/Picker.stories.tsx","src/components/Picker.tsx","src/components/Popover.stories.tsx","src/components/Popover.tsx","src/components/ProfilePicker.stories.tsx","src/components/ProfilePicker.tsx","src/components/Progress.stories.tsx","src/components/Progress.tsx","src/components/QrCode.stories.tsx","src/components/QrCode.tsx","src/components/RadioGroup.stories.tsx","src/components/RadioGroup.tsx","src/components/ReviewCommentDraft.stories.tsx","src/components/ReviewCommentDraft.tsx","src/components/ScrollArea.stories.tsx","src/components/ScrollArea.tsx","src/components/SectionLabel.stories.tsx","src/components/SectionLabel.tsx","src/components/Select.stories.tsx","src/components/Select.tsx","src/components/Separator.stories.tsx","src/components/Separator.tsx","src/components/Settings.tsx","src/components/SetupRow.stories.tsx","src/components/SetupRow.tsx","src/components/Sheet.stories.tsx","src/components/Sheet.tsx","src/components/Skeleton.stories.tsx","src/components/Skeleton.tsx","src/components/Spinner.stories.tsx","src/components/Spinner.tsx","src/components/StatusBadge.stories.tsx","src/components/StatusBadge.tsx","src/components/StreamCursor.stories.tsx","src/components/StreamCursor.tsx","src/components/Switch.stories.tsx","src/components/Switch.tsx","src/components/SyntaxText.stories.tsx","src/components/SyntaxText.tsx","src/components/Tabs.stories.tsx","src/components/Tabs.tsx","src/components/TerminalView.stories.tsx","src/components/TerminalView.tsx","src/components/Textarea.stories.tsx","src/components/Textarea.tsx","src/components/Toast.stories.tsx","src/components/Toast.tsx","src/components/ToolPathLink.stories.tsx","src/components/ToolPathLink.tsx","src/components/Tooltip.stories.tsx","src/components/Tooltip.tsx","src/components/ViewableImage.stories.tsx","src/components/ViewableImage.tsx","src/exports/index.ts","src/exports/markdownMediaSlot.ts","src/exports/mcpAppHost.ts","src/exports/mcpWidget.ts","src/exports/nativeTheme.ts","src/exports/text.ts","src/exports/theme.ts","src/icons/icons.ts","src/lib/ansiSpans.ts","src/lib/cn.ts","src/lib/collapse.ts","src/lib/editorController.ts","src/lib/editorLanguage.ts","src/lib/editorTheme.ts","src/lib/fenceGrammar.ts","src/lib/fileDownload.ts","src/lib/files.ts","src/lib/hashlineHighlight.ts","src/lib/hashlineView.ts","src/lib/markdownMedia.ts","src/lib/markdownMediaSlot.ts","src/lib/markdownReferences.ts","src/lib/mcpAppFrame.ts","src/lib/mcpAppSandbox.ts","src/lib/mcpOpenAiBootstrap.ts","src/lib/media.ts","src/lib/mediaPlayback.ts","src/lib/mermaidDiagram.ts","src/lib/optionList.ts","src/lib/pathGroups.ts","src/lib/picker.ts","src/lib/profilePicker.ts","src/lib/qrMatrix.ts","src/lib/review.ts","src/lib/runDuration.ts","src/lib/syntaxHighlight.ts","src/lib/tone.ts","src/theme/apply.ts","src/theme/builtinThemes.ts","src/theme/derive.ts","src/theme/nativeTheme.ts","src/theme/parse.ts","src/theme/piTheme.ts","src/theme/preference.ts","src/types/diff.ts","src/types/editor.ts","src/types/theme.ts","src/types/tone.ts","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json","tsdown.config.ts"],"sourceRevision":"63379ad09fdadadfe0b76221b20652e9","manifestRevision":"95dd1d0bbdb2d7caf7b6d118bfab45a3","outputFiles":["LICENSE","NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/index.cjs","dist/index.mjs","dist/markdownMediaSlot.cjs","dist/markdownMediaSlot.mjs","dist/mcpAppHost.cjs","dist/mcpAppHost.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/nativeTheme.cjs","dist/nativeTheme.mjs","dist/src/components/Accordion.cjs","dist/src/components/Accordion.mjs","dist/src/components/AgentAvatar.cjs","dist/src/components/AgentAvatar.mjs","dist/src/components/AnsiText.cjs","dist/src/components/AnsiText.mjs","dist/src/components/Avatar.cjs","dist/src/components/Avatar.mjs","dist/src/components/Badge.cjs","dist/src/components/Badge.mjs","dist/src/components/Breadcrumb.cjs","dist/src/components/Breadcrumb.mjs","dist/src/components/Button.cjs","dist/src/components/Button.mjs","dist/src/components/Checkbox.cjs","dist/src/components/Checkbox.mjs","dist/src/components/CodeBlock.cjs","dist/src/components/CodeBlock.mjs","dist/src/components/CodeEditor.cjs","dist/src/components/CodeEditor.mjs","dist/src/components/CodeEditorView.cjs","dist/src/components/CodeEditorView.mjs","dist/src/components/Collapsible.cjs","dist/src/components/Collapsible.mjs","dist/src/components/Command.cjs","dist/src/components/Command.mjs","dist/src/components/CopyButton.cjs","dist/src/components/CopyButton.mjs","dist/src/components/CtaCard.cjs","dist/src/components/CtaCard.mjs","dist/src/components/Dialog.cjs","dist/src/components/Dialog.mjs","dist/src/components/DiffView.cjs","dist/src/components/DiffView.mjs","dist/src/components/Dot.cjs","dist/src/components/Dot.mjs","dist/src/components/Drawer.cjs","dist/src/components/Drawer.mjs","dist/src/components/DropdownMenu.cjs","dist/src/components/DropdownMenu.mjs","dist/src/components/EmptyState.cjs","dist/src/components/EmptyState.mjs","dist/src/components/FileBrowser.cjs","dist/src/components/FileBrowser.mjs","dist/src/components/FilePreview.cjs","dist/src/components/FilePreview.mjs","dist/src/components/FlowGraph.cjs","dist/src/components/FlowGraph.mjs","dist/src/components/HashlineLines.cjs","dist/src/components/HashlineLines.mjs","dist/src/components/Input.cjs","dist/src/components/Input.mjs","dist/src/components/Kbd.cjs","dist/src/components/Kbd.mjs","dist/src/components/Label.cjs","dist/src/components/Label.mjs","dist/src/components/LiveDuration.cjs","dist/src/components/LiveDuration.mjs","dist/src/components/LoadingState.cjs","dist/src/components/LoadingState.mjs","dist/src/components/Markdown.cjs","dist/src/components/Markdown.mjs","dist/src/components/McpApp.cjs","dist/src/components/McpApp.mjs","dist/src/components/McpToolWidget.cjs","dist/src/components/McpToolWidget.mjs","dist/src/components/MediaPreview.cjs","dist/src/components/MediaPreview.mjs","dist/src/components/MediaViewerDialog.cjs","dist/src/components/MediaViewerDialog.mjs","dist/src/components/MermaidDiagram.cjs","dist/src/components/MermaidDiagram.mjs","dist/src/components/MessageItem.cjs","dist/src/components/MessageItem.mjs","dist/src/components/MessageLines.cjs","dist/src/components/MessageLines.mjs","dist/src/components/OptionList.cjs","dist/src/components/OptionList.mjs","dist/src/components/Panel.cjs","dist/src/components/Panel.mjs","dist/src/components/PathText.cjs","dist/src/components/PathText.mjs","dist/src/components/PdfPreview.cjs","dist/src/components/PdfPreview.mjs","dist/src/components/Picker.cjs","dist/src/components/Picker.mjs","dist/src/components/Popover.cjs","dist/src/components/Popover.mjs","dist/src/components/ProfilePicker.cjs","dist/src/components/ProfilePicker.mjs","dist/src/components/Progress.cjs","dist/src/components/Progress.mjs","dist/src/components/QrCode.cjs","dist/src/components/QrCode.mjs","dist/src/components/RadioGroup.cjs","dist/src/components/RadioGroup.mjs","dist/src/components/ReviewCommentDraft.cjs","dist/src/components/ReviewCommentDraft.mjs","dist/src/components/ScrollArea.cjs","dist/src/components/ScrollArea.mjs","dist/src/components/SectionLabel.cjs","dist/src/components/SectionLabel.mjs","dist/src/components/Select.cjs","dist/src/components/Select.mjs","dist/src/components/Separator.cjs","dist/src/components/Separator.mjs","dist/src/components/Settings.cjs","dist/src/components/Settings.mjs","dist/src/components/SetupRow.cjs","dist/src/components/SetupRow.mjs","dist/src/components/Sheet.cjs","dist/src/components/Sheet.mjs","dist/src/components/Skeleton.cjs","dist/src/components/Skeleton.mjs","dist/src/components/Spinner.cjs","dist/src/components/Spinner.mjs","dist/src/components/StatusBadge.cjs","dist/src/components/StatusBadge.mjs","dist/src/components/StreamCursor.cjs","dist/src/components/StreamCursor.mjs","dist/src/components/Switch.cjs","dist/src/components/Switch.mjs","dist/src/components/SyntaxText.cjs","dist/src/components/SyntaxText.mjs","dist/src/components/Tabs.cjs","dist/src/components/Tabs.mjs","dist/src/components/TerminalView.cjs","dist/src/components/TerminalView.mjs","dist/src/components/Textarea.cjs","dist/src/components/Textarea.mjs","dist/src/components/Toast.cjs","dist/src/components/Toast.mjs","dist/src/components/ToolPathLink.cjs","dist/src/components/ToolPathLink.mjs","dist/src/components/Tooltip.cjs","dist/src/components/Tooltip.mjs","dist/src/components/ViewableImage.cjs","dist/src/components/ViewableImage.mjs","dist/src/icons/icons.cjs","dist/src/icons/icons.mjs","dist/src/lib/ansiSpans.cjs","dist/src/lib/ansiSpans.mjs","dist/src/lib/cn.cjs","dist/src/lib/cn.mjs","dist/src/lib/collapse.cjs","dist/src/lib/collapse.mjs","dist/src/lib/editorController.cjs","dist/src/lib/editorController.mjs","dist/src/lib/editorLanguage.cjs","dist/src/lib/editorLanguage.mjs","dist/src/lib/editorTheme.cjs","dist/src/lib/editorTheme.mjs","dist/src/lib/fenceGrammar.cjs","dist/src/lib/fenceGrammar.mjs","dist/src/lib/fileDownload.cjs","dist/src/lib/fileDownload.mjs","dist/src/lib/files.cjs","dist/src/lib/files.mjs","dist/src/lib/hashlineHighlight.cjs","dist/src/lib/hashlineHighlight.mjs","dist/src/lib/hashlineView.cjs","dist/src/lib/hashlineView.mjs","dist/src/lib/markdownMedia.cjs","dist/src/lib/markdownMedia.mjs","dist/src/lib/markdownMediaSlot.cjs","dist/src/lib/markdownMediaSlot.mjs","dist/src/lib/markdownReferences.cjs","dist/src/lib/markdownReferences.mjs","dist/src/lib/mcpAppFrame.cjs","dist/src/lib/mcpAppFrame.mjs","dist/src/lib/mcpAppSandbox.cjs","dist/src/lib/mcpAppSandbox.mjs","dist/src/lib/mcpOpenAiBootstrap.cjs","dist/src/lib/mcpOpenAiBootstrap.mjs","dist/src/lib/media.cjs","dist/src/lib/media.mjs","dist/src/lib/mediaPlayback.cjs","dist/src/lib/mediaPlayback.mjs","dist/src/lib/mermaidDiagram.cjs","dist/src/lib/mermaidDiagram.mjs","dist/src/lib/optionList.cjs","dist/src/lib/optionList.mjs","dist/src/lib/pathGroups.cjs","dist/src/lib/pathGroups.mjs","dist/src/lib/picker.cjs","dist/src/lib/picker.mjs","dist/src/lib/profilePicker.cjs","dist/src/lib/profilePicker.mjs","dist/src/lib/qrMatrix.cjs","dist/src/lib/qrMatrix.mjs","dist/src/lib/review.cjs","dist/src/lib/review.mjs","dist/src/lib/runDuration.cjs","dist/src/lib/runDuration.mjs","dist/src/lib/syntaxHighlight.cjs","dist/src/lib/syntaxHighlight.mjs","dist/src/lib/tone.cjs","dist/src/lib/tone.mjs","dist/src/theme/apply.cjs","dist/src/theme/apply.mjs","dist/src/theme/builtinThemes.cjs","dist/src/theme/builtinThemes.mjs","dist/src/theme/derive.cjs","dist/src/theme/derive.mjs","dist/src/theme/nativeTheme.cjs","dist/src/theme/nativeTheme.mjs","dist/src/theme/parse.cjs","dist/src/theme/parse.mjs","dist/src/theme/piTheme.cjs","dist/src/theme/piTheme.mjs","dist/src/theme/preference.cjs","dist/src/theme/preference.mjs","dist/src/types/editor.cjs","dist/src/types/editor.mjs","dist/src/types/theme.cjs","dist/src/types/theme.mjs","dist/src/types/tone.cjs","dist/src/types/tone.mjs","dist/text.cjs","dist/text.mjs","dist/theme.cjs","dist/theme.mjs","dist/themes/po-nord-dark.cjs","dist/themes/po-nord-dark.mjs","dist/themes/po-one-light.cjs","dist/themes/po-one-light.mjs","llms.txt","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json"],"outputRevision":"3b5c5d987bc451db260eda9eddfa08da"}
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["LICENSE","NOTICE","README.md","llms.txt","package.json","src/components/Accordion.stories.tsx","src/components/Accordion.tsx","src/components/AgentAvatar.stories.tsx","src/components/AgentAvatar.tsx","src/components/AnsiText.stories.tsx","src/components/AnsiText.tsx","src/components/Avatar.stories.tsx","src/components/Avatar.tsx","src/components/Badge.stories.tsx","src/components/Badge.tsx","src/components/BrandPalette.stories.tsx","src/components/Breadcrumb.stories.tsx","src/components/Breadcrumb.tsx","src/components/Button.stories.tsx","src/components/Button.tsx","src/components/Checkbox.stories.tsx","src/components/Checkbox.tsx","src/components/CodeBlock.stories.tsx","src/components/CodeBlock.tsx","src/components/CodeEditor.stories.tsx","src/components/CodeEditor.tsx","src/components/CodeEditorView.stories.tsx","src/components/CodeEditorView.tsx","src/components/Collapsible.stories.tsx","src/components/Collapsible.tsx","src/components/Command.stories.tsx","src/components/Command.tsx","src/components/CopyButton.stories.tsx","src/components/CopyButton.tsx","src/components/CtaCard.stories.tsx","src/components/CtaCard.tsx","src/components/Dialog.stories.tsx","src/components/Dialog.tsx","src/components/DiffView.stories.tsx","src/components/DiffView.tsx","src/components/Dot.stories.tsx","src/components/Dot.tsx","src/components/Drawer.stories.tsx","src/components/Drawer.tsx","src/components/DropdownMenu.stories.tsx","src/components/DropdownMenu.tsx","src/components/EmptyState.stories.tsx","src/components/EmptyState.tsx","src/components/FileBrowser.stories.tsx","src/components/FileBrowser.tsx","src/components/FilePreview.stories.tsx","src/components/FilePreview.tsx","src/components/FlowGraph.stories.tsx","src/components/FlowGraph.tsx","src/components/HashlineLines.stories.tsx","src/components/HashlineLines.tsx","src/components/Input.stories.tsx","src/components/Input.tsx","src/components/Kbd.stories.tsx","src/components/Kbd.tsx","src/components/Label.stories.tsx","src/components/Label.tsx","src/components/LiveDuration.tsx","src/components/LoadingState.stories.tsx","src/components/LoadingState.tsx","src/components/Markdown.stories.tsx","src/components/Markdown.tsx","src/components/McpApp.tsx","src/components/McpToolWidget.stories.tsx","src/components/McpToolWidget.tsx","src/components/MediaPreview.stories.tsx","src/components/MediaPreview.tsx","src/components/MediaViewerDialog.stories.tsx","src/components/MediaViewerDialog.tsx","src/components/MermaidDiagram.stories.tsx","src/components/MermaidDiagram.tsx","src/components/MessageItem.stories.tsx","src/components/MessageItem.tsx","src/components/MessageLines.stories.tsx","src/components/MessageLines.tsx","src/components/OptionList.stories.tsx","src/components/OptionList.tsx","src/components/Panel.stories.tsx","src/components/Panel.tsx","src/components/PathText.stories.tsx","src/components/PathText.tsx","src/components/PdfPreview.stories.tsx","src/components/PdfPreview.tsx","src/components/Picker.stories.tsx","src/components/Picker.tsx","src/components/Popover.stories.tsx","src/components/Popover.tsx","src/components/ProfilePicker.stories.tsx","src/components/ProfilePicker.tsx","src/components/Progress.stories.tsx","src/components/Progress.tsx","src/components/QrCode.stories.tsx","src/components/QrCode.tsx","src/components/RadioGroup.stories.tsx","src/components/RadioGroup.tsx","src/components/ReferenceChip.stories.tsx","src/components/ReferenceChip.tsx","src/components/ReviewCommentDraft.stories.tsx","src/components/ReviewCommentDraft.tsx","src/components/ScrollArea.stories.tsx","src/components/ScrollArea.tsx","src/components/SectionLabel.stories.tsx","src/components/SectionLabel.tsx","src/components/Select.stories.tsx","src/components/Select.tsx","src/components/Separator.stories.tsx","src/components/Separator.tsx","src/components/Settings.tsx","src/components/SetupRow.stories.tsx","src/components/SetupRow.tsx","src/components/Sheet.stories.tsx","src/components/Sheet.tsx","src/components/Skeleton.stories.tsx","src/components/Skeleton.tsx","src/components/Spinner.stories.tsx","src/components/Spinner.tsx","src/components/StatusBadge.stories.tsx","src/components/StatusBadge.tsx","src/components/StreamCursor.stories.tsx","src/components/StreamCursor.tsx","src/components/Switch.stories.tsx","src/components/Switch.tsx","src/components/SyntaxText.stories.tsx","src/components/SyntaxText.tsx","src/components/Tabs.stories.tsx","src/components/Tabs.tsx","src/components/TerminalView.stories.tsx","src/components/TerminalView.tsx","src/components/Textarea.stories.tsx","src/components/Textarea.tsx","src/components/Toast.stories.tsx","src/components/Toast.tsx","src/components/ToolPathLink.stories.tsx","src/components/ToolPathLink.tsx","src/components/Tooltip.stories.tsx","src/components/Tooltip.tsx","src/components/ViewableImage.stories.tsx","src/components/ViewableImage.tsx","src/exports/index.ts","src/exports/markdownMediaSlot.ts","src/exports/mcpAppHost.ts","src/exports/mcpWidget.ts","src/exports/nativeTheme.ts","src/exports/text.ts","src/exports/theme.ts","src/icons/icons.ts","src/lib/ansiSpans.ts","src/lib/cn.ts","src/lib/collapse.ts","src/lib/editorController.ts","src/lib/editorLanguage.ts","src/lib/editorTheme.ts","src/lib/fenceGrammar.ts","src/lib/fileDownload.ts","src/lib/files.ts","src/lib/hashlineHighlight.ts","src/lib/hashlineView.ts","src/lib/markdownMedia.ts","src/lib/markdownMediaSlot.ts","src/lib/markdownReferences.ts","src/lib/mcpAppFrame.ts","src/lib/mcpAppSandbox.ts","src/lib/mcpOpenAiBootstrap.ts","src/lib/media.ts","src/lib/mediaPlayback.ts","src/lib/mermaidDiagram.ts","src/lib/optionList.ts","src/lib/pathGroups.ts","src/lib/picker.ts","src/lib/profilePicker.ts","src/lib/qrMatrix.ts","src/lib/review.ts","src/lib/runDuration.ts","src/lib/syntaxHighlight.ts","src/lib/tone.ts","src/theme/apply.ts","src/theme/builtinThemes.ts","src/theme/derive.ts","src/theme/nativeTheme.ts","src/theme/parse.ts","src/theme/piTheme.ts","src/theme/preference.ts","src/types/diff.ts","src/types/editor.ts","src/types/theme.ts","src/types/tone.ts","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json","tsdown.config.ts"],"sourceRevision":"cbbe7ae7820bdd6c064ce745c8c64c83","manifestRevision":"6c7519f80e760a4db110b4d2fa5161cc","outputFiles":["LICENSE","NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/index.cjs","dist/index.mjs","dist/markdownMediaSlot.cjs","dist/markdownMediaSlot.mjs","dist/mcpAppHost.cjs","dist/mcpAppHost.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/nativeTheme.cjs","dist/nativeTheme.mjs","dist/src/components/Accordion.cjs","dist/src/components/Accordion.mjs","dist/src/components/AgentAvatar.cjs","dist/src/components/AgentAvatar.mjs","dist/src/components/AnsiText.cjs","dist/src/components/AnsiText.mjs","dist/src/components/Avatar.cjs","dist/src/components/Avatar.mjs","dist/src/components/Badge.cjs","dist/src/components/Badge.mjs","dist/src/components/Breadcrumb.cjs","dist/src/components/Breadcrumb.mjs","dist/src/components/Button.cjs","dist/src/components/Button.mjs","dist/src/components/Checkbox.cjs","dist/src/components/Checkbox.mjs","dist/src/components/CodeBlock.cjs","dist/src/components/CodeBlock.mjs","dist/src/components/CodeEditor.cjs","dist/src/components/CodeEditor.mjs","dist/src/components/CodeEditorView.cjs","dist/src/components/CodeEditorView.mjs","dist/src/components/Collapsible.cjs","dist/src/components/Collapsible.mjs","dist/src/components/Command.cjs","dist/src/components/Command.mjs","dist/src/components/CopyButton.cjs","dist/src/components/CopyButton.mjs","dist/src/components/CtaCard.cjs","dist/src/components/CtaCard.mjs","dist/src/components/Dialog.cjs","dist/src/components/Dialog.mjs","dist/src/components/DiffView.cjs","dist/src/components/DiffView.mjs","dist/src/components/Dot.cjs","dist/src/components/Dot.mjs","dist/src/components/Drawer.cjs","dist/src/components/Drawer.mjs","dist/src/components/DropdownMenu.cjs","dist/src/components/DropdownMenu.mjs","dist/src/components/EmptyState.cjs","dist/src/components/EmptyState.mjs","dist/src/components/FileBrowser.cjs","dist/src/components/FileBrowser.mjs","dist/src/components/FilePreview.cjs","dist/src/components/FilePreview.mjs","dist/src/components/FlowGraph.cjs","dist/src/components/FlowGraph.mjs","dist/src/components/HashlineLines.cjs","dist/src/components/HashlineLines.mjs","dist/src/components/Input.cjs","dist/src/components/Input.mjs","dist/src/components/Kbd.cjs","dist/src/components/Kbd.mjs","dist/src/components/Label.cjs","dist/src/components/Label.mjs","dist/src/components/LiveDuration.cjs","dist/src/components/LiveDuration.mjs","dist/src/components/LoadingState.cjs","dist/src/components/LoadingState.mjs","dist/src/components/Markdown.cjs","dist/src/components/Markdown.mjs","dist/src/components/McpApp.cjs","dist/src/components/McpApp.mjs","dist/src/components/McpToolWidget.cjs","dist/src/components/McpToolWidget.mjs","dist/src/components/MediaPreview.cjs","dist/src/components/MediaPreview.mjs","dist/src/components/MediaViewerDialog.cjs","dist/src/components/MediaViewerDialog.mjs","dist/src/components/MermaidDiagram.cjs","dist/src/components/MermaidDiagram.mjs","dist/src/components/MessageItem.cjs","dist/src/components/MessageItem.mjs","dist/src/components/MessageLines.cjs","dist/src/components/MessageLines.mjs","dist/src/components/OptionList.cjs","dist/src/components/OptionList.mjs","dist/src/components/Panel.cjs","dist/src/components/Panel.mjs","dist/src/components/PathText.cjs","dist/src/components/PathText.mjs","dist/src/components/PdfPreview.cjs","dist/src/components/PdfPreview.mjs","dist/src/components/Picker.cjs","dist/src/components/Picker.mjs","dist/src/components/Popover.cjs","dist/src/components/Popover.mjs","dist/src/components/ProfilePicker.cjs","dist/src/components/ProfilePicker.mjs","dist/src/components/Progress.cjs","dist/src/components/Progress.mjs","dist/src/components/QrCode.cjs","dist/src/components/QrCode.mjs","dist/src/components/RadioGroup.cjs","dist/src/components/RadioGroup.mjs","dist/src/components/ReferenceChip.cjs","dist/src/components/ReferenceChip.mjs","dist/src/components/ReviewCommentDraft.cjs","dist/src/components/ReviewCommentDraft.mjs","dist/src/components/ScrollArea.cjs","dist/src/components/ScrollArea.mjs","dist/src/components/SectionLabel.cjs","dist/src/components/SectionLabel.mjs","dist/src/components/Select.cjs","dist/src/components/Select.mjs","dist/src/components/Separator.cjs","dist/src/components/Separator.mjs","dist/src/components/Settings.cjs","dist/src/components/Settings.mjs","dist/src/components/SetupRow.cjs","dist/src/components/SetupRow.mjs","dist/src/components/Sheet.cjs","dist/src/components/Sheet.mjs","dist/src/components/Skeleton.cjs","dist/src/components/Skeleton.mjs","dist/src/components/Spinner.cjs","dist/src/components/Spinner.mjs","dist/src/components/StatusBadge.cjs","dist/src/components/StatusBadge.mjs","dist/src/components/StreamCursor.cjs","dist/src/components/StreamCursor.mjs","dist/src/components/Switch.cjs","dist/src/components/Switch.mjs","dist/src/components/SyntaxText.cjs","dist/src/components/SyntaxText.mjs","dist/src/components/Tabs.cjs","dist/src/components/Tabs.mjs","dist/src/components/TerminalView.cjs","dist/src/components/TerminalView.mjs","dist/src/components/Textarea.cjs","dist/src/components/Textarea.mjs","dist/src/components/Toast.cjs","dist/src/components/Toast.mjs","dist/src/components/ToolPathLink.cjs","dist/src/components/ToolPathLink.mjs","dist/src/components/Tooltip.cjs","dist/src/components/Tooltip.mjs","dist/src/components/ViewableImage.cjs","dist/src/components/ViewableImage.mjs","dist/src/icons/icons.cjs","dist/src/icons/icons.mjs","dist/src/lib/ansiSpans.cjs","dist/src/lib/ansiSpans.mjs","dist/src/lib/cn.cjs","dist/src/lib/cn.mjs","dist/src/lib/collapse.cjs","dist/src/lib/collapse.mjs","dist/src/lib/editorController.cjs","dist/src/lib/editorController.mjs","dist/src/lib/editorLanguage.cjs","dist/src/lib/editorLanguage.mjs","dist/src/lib/editorTheme.cjs","dist/src/lib/editorTheme.mjs","dist/src/lib/fenceGrammar.cjs","dist/src/lib/fenceGrammar.mjs","dist/src/lib/fileDownload.cjs","dist/src/lib/fileDownload.mjs","dist/src/lib/files.cjs","dist/src/lib/files.mjs","dist/src/lib/hashlineHighlight.cjs","dist/src/lib/hashlineHighlight.mjs","dist/src/lib/hashlineView.cjs","dist/src/lib/hashlineView.mjs","dist/src/lib/markdownMedia.cjs","dist/src/lib/markdownMedia.mjs","dist/src/lib/markdownMediaSlot.cjs","dist/src/lib/markdownMediaSlot.mjs","dist/src/lib/markdownReferences.cjs","dist/src/lib/markdownReferences.mjs","dist/src/lib/mcpAppFrame.cjs","dist/src/lib/mcpAppFrame.mjs","dist/src/lib/mcpAppSandbox.cjs","dist/src/lib/mcpAppSandbox.mjs","dist/src/lib/mcpOpenAiBootstrap.cjs","dist/src/lib/mcpOpenAiBootstrap.mjs","dist/src/lib/media.cjs","dist/src/lib/media.mjs","dist/src/lib/mediaPlayback.cjs","dist/src/lib/mediaPlayback.mjs","dist/src/lib/mermaidDiagram.cjs","dist/src/lib/mermaidDiagram.mjs","dist/src/lib/optionList.cjs","dist/src/lib/optionList.mjs","dist/src/lib/pathGroups.cjs","dist/src/lib/pathGroups.mjs","dist/src/lib/picker.cjs","dist/src/lib/picker.mjs","dist/src/lib/profilePicker.cjs","dist/src/lib/profilePicker.mjs","dist/src/lib/qrMatrix.cjs","dist/src/lib/qrMatrix.mjs","dist/src/lib/review.cjs","dist/src/lib/review.mjs","dist/src/lib/runDuration.cjs","dist/src/lib/runDuration.mjs","dist/src/lib/syntaxHighlight.cjs","dist/src/lib/syntaxHighlight.mjs","dist/src/lib/tone.cjs","dist/src/lib/tone.mjs","dist/src/theme/apply.cjs","dist/src/theme/apply.mjs","dist/src/theme/builtinThemes.cjs","dist/src/theme/builtinThemes.mjs","dist/src/theme/derive.cjs","dist/src/theme/derive.mjs","dist/src/theme/nativeTheme.cjs","dist/src/theme/nativeTheme.mjs","dist/src/theme/parse.cjs","dist/src/theme/parse.mjs","dist/src/theme/piTheme.cjs","dist/src/theme/piTheme.mjs","dist/src/theme/preference.cjs","dist/src/theme/preference.mjs","dist/src/types/editor.cjs","dist/src/types/editor.mjs","dist/src/types/theme.cjs","dist/src/types/theme.mjs","dist/src/types/tone.cjs","dist/src/types/tone.mjs","dist/text.cjs","dist/text.mjs","dist/theme.cjs","dist/theme.mjs","dist/themes/po-nord-dark.cjs","dist/themes/po-nord-dark.mjs","dist/themes/po-one-light.cjs","dist/themes/po-one-light.mjs","llms.txt","styles/mcp.css","styles/preview.css","styles/theme.css","styles/tokens.css","themes/po-nord-dark.json","themes/po-one-light.json"],"outputRevision":"8d847e4f2107cc2d1db02f83ad488154"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs");let n=require("react/jsx-runtime"),r=require("lucide-react");const i={page:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6`,panel:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4`,compact:`flex w-full min-w-0`},a={page:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8`,panel:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center`,compact:`w-full items-start gap-2.5 p-3 text-left`},o={page:`size-12 rounded-full border bg-po-deep [&_svg]:size-6`,panel:`size-10 rounded-full border bg-po-deep [&_svg]:size-5`,compact:`size-5 [&_svg]:size-4`},s={page:`text-balance text-xl font-semibold text-po-hi`,panel:`text-balance text-lg font-semibold text-po-hi`,compact:`text-base font-semibold text-po-hi`},c={page:`lg`,panel:`md`,compact:`sm`};function l({title:l,description:u,icon:d,action:f,secondaryAction:p,size:m=`panel`,surface:h=`card`,tone:g=`neutral`,children:_,className:v,as:y=`div`,...b}){let x=m===`compact`,S=g===`error`;if(m===`inline`)return/* @__PURE__ */ (0,n.jsxs)(y,{"data-slot":`empty-state`,"data-size":m,role:S?`alert`:void 0,className:e.cn(`flex min-w-0 flex-col items-start gap-2`,v),...b,children:[/* @__PURE__ */ (0,n.jsxs)(`p`,{className
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs"),t=require("./Button.cjs");let n=require("react/jsx-runtime"),r=require("lucide-react");const i={page:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6`,panel:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4`,compact:`flex w-full min-w-0`},a={page:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8`,panel:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center`,compact:`w-full items-start gap-2.5 p-3 text-left`},o={page:`size-12 rounded-full border bg-po-deep [&_svg]:size-6`,panel:`size-10 rounded-full border bg-po-deep [&_svg]:size-5`,compact:`size-5 [&_svg]:size-4`},s={page:`text-balance text-xl font-semibold text-po-hi`,panel:`text-balance text-lg font-semibold text-po-hi`,compact:`text-base font-semibold text-po-hi`},c={page:`lg`,panel:`md`,compact:`sm`};function l({title:l,description:u,icon:d,action:f,secondaryAction:p,size:m=`panel`,surface:h=`card`,tone:g=`neutral`,children:_,className:v,as:y=`div`,...b}){let x=m===`compact`,S=g===`error`;if(m===`inline`)return/* @__PURE__ */ (0,n.jsxs)(y,{"data-slot":`empty-state`,"data-size":m,role:S?`alert`:void 0,className:e.cn(`flex min-w-0 flex-col items-start gap-2`,v),...b,children:[/* @__PURE__ */ (0,n.jsxs)(`p`,{className:`text-sm text-po-dim`,children:[S?/* @__PURE__ */ (0,n.jsx)(r.CircleAlert,{"aria-hidden":`true`,className:`mr-1 inline size-3.5 align-[-2px] text-po-red`}):null,/* @__PURE__ */ (0,n.jsx)(`span`,{className:`font-medium`,children:l}),u?/* @__PURE__ */ (0,n.jsxs)(n.Fragment,{children:[` · `,u]}):null]}),f||p?/* @__PURE__ */ (0,n.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[f?/* @__PURE__ */ (0,n.jsx)(t.Button,{variant:`outline`,size:`sm`,loading:f.loading,disabled:f.disabled,"data-testid":f.testId,onClick:f.onAction,children:f.label}):null,p?/* @__PURE__ */ (0,n.jsx)(t.Button,{variant:`ghost`,size:`sm`,loading:p.loading,disabled:p.disabled,"data-testid":p.testId,onClick:p.onAction,children:p.label}):null]}):null,_]});let C=d??(S?/* @__PURE__ */ (0,n.jsx)(r.CircleAlert,{}):null);return/* @__PURE__ */ (0,n.jsx)(y,{"data-slot":`empty-state`,"data-size":m,role:S?`alert`:void 0,className:e.cn(i[m],v),...b,children:/* @__PURE__ */ (0,n.jsxs)(`div`,{"data-slot":`empty-state-card`,className:e.cn(`flex min-w-0`,a[m],h===`card`&&`rounded-md border border-dashed border-po-border`),children:[C?/* @__PURE__ */ (0,n.jsx)(`span`,{"aria-hidden":`true`,className:e.cn(`flex shrink-0 items-center justify-center`,o[m],S?`border-po-edge-red text-po-red`:`border-po-border-soft text-po-dim`),children:C}):null,/* @__PURE__ */ (0,n.jsxs)(`div`,{className:e.cn(`flex min-w-0 flex-col`,x?`flex-1 items-start gap-2`:`items-center gap-4`),children:[/* @__PURE__ */ (0,n.jsxs)(`div`,{className:e.cn(`flex min-w-0 flex-col`,x?`gap-0.5`:`items-center gap-1.5`),children:[/* @__PURE__ */ (0,n.jsx)(`p`,{role:`heading`,"aria-level":m===`page`?2:3,className:s[m],children:l}),u?/* @__PURE__ */ (0,n.jsx)(`p`,{className:e.cn(`text-po-dim`,x?`text-sm`:`max-w-[38ch] text-balance text-base leading-relaxed`),children:u}):null]}),f||p?/* @__PURE__ */ (0,n.jsxs)(`div`,{className:e.cn(`flex flex-wrap items-center gap-2`,x?`justify-start`:`justify-center`),children:[f?/* @__PURE__ */ (0,n.jsx)(t.Button,{variant:x?`outline`:`primary`,size:c[m],loading:f.loading,disabled:f.disabled,"data-testid":f.testId,onClick:f.onAction,children:f.label}):null,p?/* @__PURE__ */ (0,n.jsx)(t.Button,{variant:x?`ghost`:`outline`,size:c[m],loading:p.loading,disabled:p.disabled,"data-testid":p.testId,onClick:p.onAction,children:p.label}):null]}):null,_]})]})})}exports.EmptyState=l;
|
|
2
2
|
//# sourceMappingURL=EmptyState.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.cjs","names":["cn","Button","AlertIcon","require_cn","require_Button","react_jsx_runtime","lucide_react","FRAME","CARD","ICON","TITLE","BUTTON_SIZE","EmptyState","Frame","props","compact","size","error","tone","className","title","description","action","secondaryAction","children","glyph","icon","surface"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react';\n\nimport { AlertIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/** One button an empty state offers: the next step that fills the surface. */\nexport interface EmptyStateAction {\n label: string;\n onAction: () => void;\n loading?: boolean;\n disabled?: boolean;\n testId?: string;\n}\n\nexport type EmptyStateSize = 'page' | 'panel' | 'compact' | 'inline';\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {\n title: ReactNode;\n /** Guidance: why the surface is empty and what fills it. */\n description?: ReactNode;\n /** A glyph from the icon set, drawn in a quiet badge above the title (beside it when compact). Defaults to an alert glyph when `tone` is `error`. */\n icon?: ReactNode;\n /** The one primary step. Filled jade on page and panel, outline when compact. */\n action?: EmptyStateAction;\n /** A quieter second step, such as clearing a filter or retrying. */\n secondaryAction?: EmptyStateAction;\n /**\n * page: a whole screen (welcome, workspace). panel: a dock or tab (the default).\n * compact: a rail line or list row; left-aligned and never stretches.\n * inline: one quiet line under a header that already names the surface, such as an activity card.\n * Drops the icon and frame; `surface` does not apply.\n */\n size?: EmptyStateSize;\n /** `card` is a quiet dashed outline with no fill; `plain` drops it when the empty state already sits inside a card. */\n surface?: 'card' | 'plain';\n /** `error` announces the state as an alert and tints only the icon red. */\n tone?: 'neutral' | 'error';\n /** Anything under the actions: a keyboard hint, a status line, starter prompts. */\n children?: ReactNode;\n /** Render the frame as an <li> so an empty row inside a list keeps the list's semantics. */\n as?: 'div' | 'li';\n}\n\ntype CardSize = Exclude<EmptyStateSize, 'inline'>;\n\nconst FRAME: Record<CardSize, string> = {\n page: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6',\n panel: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4',\n compact: 'flex w-full min-w-0',\n};\n\nconst CARD: Record<CardSize, string> = {\n page: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8',\n panel: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center',\n compact: 'w-full items-start gap-2.5 p-3 text-left',\n};\n\nconst ICON: Record<CardSize, string> = {\n page: 'size-12 rounded-full border bg-po-deep [&_svg]:size-6',\n panel: 'size-10 rounded-full border bg-po-deep [&_svg]:size-5',\n compact: 'size-5 [&_svg]:size-4',\n};\n\nconst TITLE: Record<CardSize, string> = {\n page: 'text-balance text-xl font-semibold text-po-hi',\n panel: 'text-balance text-lg font-semibold text-po-hi',\n compact: 'text-base font-semibold text-po-hi',\n};\n\nconst BUTTON_SIZE = { page: 'lg', panel: 'md', compact: 'sm' } as const;\n\n/** The card every empty surface shares: icon, title, guidance and, when the person can act, the next step. */\nexport function EmptyState({\n title,\n description,\n icon,\n action,\n secondaryAction,\n size = 'panel',\n surface = 'card',\n tone = 'neutral',\n children,\n className,\n as: Frame = 'div',\n ...props\n}: EmptyStateProps) {\n const compact = size === 'compact';\n const error = tone === 'error';\n if (size === 'inline') {\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn('flex min-w-0 flex-col items-start gap-2', className)}\n {...props}\n >\n <p className={cn('text-sm', error ? 'text-po-red' : 'text-po-dim')}>\n <span className=\"font-medium\">{title}</span>\n {description ? <> · {description}</> : null}\n </p>\n {action || secondaryAction ? (\n <div className=\"flex flex-wrap items-center gap-2\">\n {action ? (\n <Button\n variant=\"outline\"\n size=\"sm\"\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </Frame>\n );\n }\n const glyph = icon ?? (error ? <AlertIcon /> : null);\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn(FRAME[size], className)}\n {...props}\n >\n <div\n data-slot=\"empty-state-card\"\n className={cn(\n 'flex min-w-0',\n CARD[size],\n surface === 'card' && 'rounded-md border border-dashed border-po-border',\n )}\n >\n {glyph ? (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'flex shrink-0 items-center justify-center',\n ICON[size],\n error ? 'border-po-edge-red text-po-red' : 'border-po-border-soft text-po-dim',\n )}\n >\n {glyph}\n </span>\n ) : null}\n <div className={cn('flex min-w-0 flex-col', compact ? 'flex-1 items-start gap-2' : 'items-center gap-4')}>\n <div className={cn('flex min-w-0 flex-col', compact ? 'gap-0.5' : 'items-center gap-1.5')}>\n <p role=\"heading\" aria-level={size === 'page' ? 2 : 3} className={TITLE[size]}>\n {title}\n </p>\n {description ? (\n <p\n className={cn(\n 'text-po-dim',\n compact ? 'text-sm' : 'max-w-[38ch] text-balance text-base leading-relaxed',\n )}\n >\n {description}\n </p>\n ) : null}\n </div>\n {action || secondaryAction ? (\n <div className={cn('flex flex-wrap items-center gap-2', compact ? 'justify-start' : 'justify-center')}>\n {action ? (\n <Button\n variant={compact ? 'outline' : 'primary'}\n size={BUTTON_SIZE[size]}\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant={compact ? 'ghost' : 'outline'}\n size={BUTTON_SIZE[size]}\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </Frame>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"EmptyState.cjs","names":["cn","AlertIcon","Button","require_cn","require_Button","react_jsx_runtime","lucide_react","FRAME","CARD","ICON","TITLE","BUTTON_SIZE","EmptyState","Frame","props","compact","size","error","tone","className","title","description","action","secondaryAction","children","glyph","icon","surface"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react';\n\nimport { AlertIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/** One button an empty state offers: the next step that fills the surface. */\nexport interface EmptyStateAction {\n label: string;\n onAction: () => void;\n loading?: boolean;\n disabled?: boolean;\n testId?: string;\n}\n\nexport type EmptyStateSize = 'page' | 'panel' | 'compact' | 'inline';\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {\n title: ReactNode;\n /** Guidance: why the surface is empty and what fills it. */\n description?: ReactNode;\n /** A glyph from the icon set, drawn in a quiet badge above the title (beside it when compact). Defaults to an alert glyph when `tone` is `error`. */\n icon?: ReactNode;\n /** The one primary step. Filled jade on page and panel, outline when compact. */\n action?: EmptyStateAction;\n /** A quieter second step, such as clearing a filter or retrying. */\n secondaryAction?: EmptyStateAction;\n /**\n * page: a whole screen (welcome, workspace). panel: a dock or tab (the default).\n * compact: a rail line or list row; left-aligned and never stretches.\n * inline: one quiet line under a header that already names the surface, such as an activity card.\n * Drops the icon and frame; `surface` does not apply.\n */\n size?: EmptyStateSize;\n /** `card` is a quiet dashed outline with no fill; `plain` drops it when the empty state already sits inside a card. */\n surface?: 'card' | 'plain';\n /** `error` announces the state as an alert and tints only the icon red. */\n tone?: 'neutral' | 'error';\n /** Anything under the actions: a keyboard hint, a status line, starter prompts. */\n children?: ReactNode;\n /** Render the frame as an <li> so an empty row inside a list keeps the list's semantics. */\n as?: 'div' | 'li';\n}\n\ntype CardSize = Exclude<EmptyStateSize, 'inline'>;\n\nconst FRAME: Record<CardSize, string> = {\n page: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6',\n panel: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4',\n compact: 'flex w-full min-w-0',\n};\n\nconst CARD: Record<CardSize, string> = {\n page: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8',\n panel: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center',\n compact: 'w-full items-start gap-2.5 p-3 text-left',\n};\n\nconst ICON: Record<CardSize, string> = {\n page: 'size-12 rounded-full border bg-po-deep [&_svg]:size-6',\n panel: 'size-10 rounded-full border bg-po-deep [&_svg]:size-5',\n compact: 'size-5 [&_svg]:size-4',\n};\n\nconst TITLE: Record<CardSize, string> = {\n page: 'text-balance text-xl font-semibold text-po-hi',\n panel: 'text-balance text-lg font-semibold text-po-hi',\n compact: 'text-base font-semibold text-po-hi',\n};\n\nconst BUTTON_SIZE = { page: 'lg', panel: 'md', compact: 'sm' } as const;\n\n/** The card every empty surface shares: icon, title, guidance and, when the person can act, the next step. */\nexport function EmptyState({\n title,\n description,\n icon,\n action,\n secondaryAction,\n size = 'panel',\n surface = 'card',\n tone = 'neutral',\n children,\n className,\n as: Frame = 'div',\n ...props\n}: EmptyStateProps) {\n const compact = size === 'compact';\n const error = tone === 'error';\n if (size === 'inline') {\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn('flex min-w-0 flex-col items-start gap-2', className)}\n {...props}\n >\n <p className=\"text-sm text-po-dim\">\n {/* As at every other size, only the icon is red; the words stay readable. */}\n {error ? <AlertIcon aria-hidden=\"true\" className=\"mr-1 inline size-3.5 align-[-2px] text-po-red\" /> : null}\n <span className=\"font-medium\">{title}</span>\n {description ? <> · {description}</> : null}\n </p>\n {action || secondaryAction ? (\n <div className=\"flex flex-wrap items-center gap-2\">\n {action ? (\n <Button\n variant=\"outline\"\n size=\"sm\"\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </Frame>\n );\n }\n const glyph = icon ?? (error ? <AlertIcon /> : null);\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn(FRAME[size], className)}\n {...props}\n >\n <div\n data-slot=\"empty-state-card\"\n className={cn(\n 'flex min-w-0',\n CARD[size],\n surface === 'card' && 'rounded-md border border-dashed border-po-border',\n )}\n >\n {glyph ? (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'flex shrink-0 items-center justify-center',\n ICON[size],\n error ? 'border-po-edge-red text-po-red' : 'border-po-border-soft text-po-dim',\n )}\n >\n {glyph}\n </span>\n ) : null}\n <div className={cn('flex min-w-0 flex-col', compact ? 'flex-1 items-start gap-2' : 'items-center gap-4')}>\n <div className={cn('flex min-w-0 flex-col', compact ? 'gap-0.5' : 'items-center gap-1.5')}>\n <p role=\"heading\" aria-level={size === 'page' ? 2 : 3} className={TITLE[size]}>\n {title}\n </p>\n {description ? (\n <p\n className={cn(\n 'text-po-dim',\n compact ? 'text-sm' : 'max-w-[38ch] text-balance text-base leading-relaxed',\n )}\n >\n {description}\n </p>\n ) : null}\n </div>\n {action || secondaryAction ? (\n <div className={cn('flex flex-wrap items-center gap-2', compact ? 'justify-start' : 'justify-center')}>\n {action ? (\n <Button\n variant={compact ? 'outline' : 'primary'}\n size={BUTTON_SIZE[size]}\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant={compact ? 'ghost' : 'outline'}\n size={BUTTON_SIZE[size]}\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </Frame>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{AlertIcon as e}from"../icons/icons.mjs";import{cn as t}from"../lib/cn.mjs";import{Button as n}from"./Button.mjs";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";const o={page:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6`,panel:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4`,compact:`flex w-full min-w-0`},s={page:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8`,panel:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center`,compact:`w-full items-start gap-2.5 p-3 text-left`},c={page:`size-12 rounded-full border bg-po-deep [&_svg]:size-6`,panel:`size-10 rounded-full border bg-po-deep [&_svg]:size-5`,compact:`size-5 [&_svg]:size-4`},l={page:`text-balance text-xl font-semibold text-po-hi`,panel:`text-balance text-lg font-semibold text-po-hi`,compact:`text-base font-semibold text-po-hi`},u={page:`lg`,panel:`md`,compact:`sm`};function d({title:d,description:f,icon:p,action:m,secondaryAction:h,size:g=`panel`,surface:_=`card`,tone:v=`neutral`,children:y,className:b,as:x=`div`,...S}){let C=g===`compact`,w=v===`error`;if(g===`inline`)return/* @__PURE__ */ a(x,{"data-slot":`empty-state`,"data-size":g,role:w?`alert`:void 0,className:t(`flex min-w-0 flex-col items-start gap-2`,b),...S,children:[/* @__PURE__ */ a(`p`,{className
|
|
1
|
+
import{AlertIcon as e}from"../icons/icons.mjs";import{cn as t}from"../lib/cn.mjs";import{Button as n}from"./Button.mjs";import{Fragment as r,jsx as i,jsxs as a}from"react/jsx-runtime";const o={page:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6`,panel:`flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4`,compact:`flex w-full min-w-0`},s={page:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8`,panel:`w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center`,compact:`w-full items-start gap-2.5 p-3 text-left`},c={page:`size-12 rounded-full border bg-po-deep [&_svg]:size-6`,panel:`size-10 rounded-full border bg-po-deep [&_svg]:size-5`,compact:`size-5 [&_svg]:size-4`},l={page:`text-balance text-xl font-semibold text-po-hi`,panel:`text-balance text-lg font-semibold text-po-hi`,compact:`text-base font-semibold text-po-hi`},u={page:`lg`,panel:`md`,compact:`sm`};function d({title:d,description:f,icon:p,action:m,secondaryAction:h,size:g=`panel`,surface:_=`card`,tone:v=`neutral`,children:y,className:b,as:x=`div`,...S}){let C=g===`compact`,w=v===`error`;if(g===`inline`)return/* @__PURE__ */ a(x,{"data-slot":`empty-state`,"data-size":g,role:w?`alert`:void 0,className:t(`flex min-w-0 flex-col items-start gap-2`,b),...S,children:[/* @__PURE__ */ a(`p`,{className:`text-sm text-po-dim`,children:[w?/* @__PURE__ */ i(e,{"aria-hidden":`true`,className:`mr-1 inline size-3.5 align-[-2px] text-po-red`}):null,/* @__PURE__ */ i(`span`,{className:`font-medium`,children:d}),f?/* @__PURE__ */ a(r,{children:[` · `,f]}):null]}),m||h?/* @__PURE__ */ a(`div`,{className:`flex flex-wrap items-center gap-2`,children:[m?/* @__PURE__ */ i(n,{variant:`outline`,size:`sm`,loading:m.loading,disabled:m.disabled,"data-testid":m.testId,onClick:m.onAction,children:m.label}):null,h?/* @__PURE__ */ i(n,{variant:`ghost`,size:`sm`,loading:h.loading,disabled:h.disabled,"data-testid":h.testId,onClick:h.onAction,children:h.label}):null]}):null,y]});let T=p??(w?/* @__PURE__ */ i(e,{}):null);return/* @__PURE__ */ i(x,{"data-slot":`empty-state`,"data-size":g,role:w?`alert`:void 0,className:t(o[g],b),...S,children:/* @__PURE__ */ a(`div`,{"data-slot":`empty-state-card`,className:t(`flex min-w-0`,s[g],_===`card`&&`rounded-md border border-dashed border-po-border`),children:[T?/* @__PURE__ */ i(`span`,{"aria-hidden":`true`,className:t(`flex shrink-0 items-center justify-center`,c[g],w?`border-po-edge-red text-po-red`:`border-po-border-soft text-po-dim`),children:T}):null,/* @__PURE__ */ a(`div`,{className:t(`flex min-w-0 flex-col`,C?`flex-1 items-start gap-2`:`items-center gap-4`),children:[/* @__PURE__ */ a(`div`,{className:t(`flex min-w-0 flex-col`,C?`gap-0.5`:`items-center gap-1.5`),children:[/* @__PURE__ */ i(`p`,{role:`heading`,"aria-level":g===`page`?2:3,className:l[g],children:d}),f?/* @__PURE__ */ i(`p`,{className:t(`text-po-dim`,C?`text-sm`:`max-w-[38ch] text-balance text-base leading-relaxed`),children:f}):null]}),m||h?/* @__PURE__ */ a(`div`,{className:t(`flex flex-wrap items-center gap-2`,C?`justify-start`:`justify-center`),children:[m?/* @__PURE__ */ i(n,{variant:C?`outline`:`primary`,size:u[g],loading:m.loading,disabled:m.disabled,"data-testid":m.testId,onClick:m.onAction,children:m.label}):null,h?/* @__PURE__ */ i(n,{variant:C?`ghost`:`outline`,size:u[g],loading:h.loading,disabled:h.disabled,"data-testid":h.testId,onClick:h.onAction,children:h.label}):null]}):null,y]})]})})}export{d as EmptyState};
|
|
2
2
|
//# sourceMappingURL=EmptyState.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmptyState.mjs","names":["FRAME","CARD","ICON","TITLE","BUTTON_SIZE","EmptyState","Frame","props","compact","size","error","tone","cn","className","title","description","Fragment","action","secondaryAction","Button","children","glyph","icon","AlertIcon","surface"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react';\n\nimport { AlertIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/** One button an empty state offers: the next step that fills the surface. */\nexport interface EmptyStateAction {\n label: string;\n onAction: () => void;\n loading?: boolean;\n disabled?: boolean;\n testId?: string;\n}\n\nexport type EmptyStateSize = 'page' | 'panel' | 'compact' | 'inline';\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {\n title: ReactNode;\n /** Guidance: why the surface is empty and what fills it. */\n description?: ReactNode;\n /** A glyph from the icon set, drawn in a quiet badge above the title (beside it when compact). Defaults to an alert glyph when `tone` is `error`. */\n icon?: ReactNode;\n /** The one primary step. Filled jade on page and panel, outline when compact. */\n action?: EmptyStateAction;\n /** A quieter second step, such as clearing a filter or retrying. */\n secondaryAction?: EmptyStateAction;\n /**\n * page: a whole screen (welcome, workspace). panel: a dock or tab (the default).\n * compact: a rail line or list row; left-aligned and never stretches.\n * inline: one quiet line under a header that already names the surface, such as an activity card.\n * Drops the icon and frame; `surface` does not apply.\n */\n size?: EmptyStateSize;\n /** `card` is a quiet dashed outline with no fill; `plain` drops it when the empty state already sits inside a card. */\n surface?: 'card' | 'plain';\n /** `error` announces the state as an alert and tints only the icon red. */\n tone?: 'neutral' | 'error';\n /** Anything under the actions: a keyboard hint, a status line, starter prompts. */\n children?: ReactNode;\n /** Render the frame as an <li> so an empty row inside a list keeps the list's semantics. */\n as?: 'div' | 'li';\n}\n\ntype CardSize = Exclude<EmptyStateSize, 'inline'>;\n\nconst FRAME: Record<CardSize, string> = {\n page: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6',\n panel: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4',\n compact: 'flex w-full min-w-0',\n};\n\nconst CARD: Record<CardSize, string> = {\n page: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8',\n panel: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center',\n compact: 'w-full items-start gap-2.5 p-3 text-left',\n};\n\nconst ICON: Record<CardSize, string> = {\n page: 'size-12 rounded-full border bg-po-deep [&_svg]:size-6',\n panel: 'size-10 rounded-full border bg-po-deep [&_svg]:size-5',\n compact: 'size-5 [&_svg]:size-4',\n};\n\nconst TITLE: Record<CardSize, string> = {\n page: 'text-balance text-xl font-semibold text-po-hi',\n panel: 'text-balance text-lg font-semibold text-po-hi',\n compact: 'text-base font-semibold text-po-hi',\n};\n\nconst BUTTON_SIZE = { page: 'lg', panel: 'md', compact: 'sm' } as const;\n\n/** The card every empty surface shares: icon, title, guidance and, when the person can act, the next step. */\nexport function EmptyState({\n title,\n description,\n icon,\n action,\n secondaryAction,\n size = 'panel',\n surface = 'card',\n tone = 'neutral',\n children,\n className,\n as: Frame = 'div',\n ...props\n}: EmptyStateProps) {\n const compact = size === 'compact';\n const error = tone === 'error';\n if (size === 'inline') {\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn('flex min-w-0 flex-col items-start gap-2', className)}\n {...props}\n >\n <p className={cn('text-sm', error ? 'text-po-red' : 'text-po-dim')}>\n <span className=\"font-medium\">{title}</span>\n {description ? <> · {description}</> : null}\n </p>\n {action || secondaryAction ? (\n <div className=\"flex flex-wrap items-center gap-2\">\n {action ? (\n <Button\n variant=\"outline\"\n size=\"sm\"\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </Frame>\n );\n }\n const glyph = icon ?? (error ? <AlertIcon /> : null);\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn(FRAME[size], className)}\n {...props}\n >\n <div\n data-slot=\"empty-state-card\"\n className={cn(\n 'flex min-w-0',\n CARD[size],\n surface === 'card' && 'rounded-md border border-dashed border-po-border',\n )}\n >\n {glyph ? (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'flex shrink-0 items-center justify-center',\n ICON[size],\n error ? 'border-po-edge-red text-po-red' : 'border-po-border-soft text-po-dim',\n )}\n >\n {glyph}\n </span>\n ) : null}\n <div className={cn('flex min-w-0 flex-col', compact ? 'flex-1 items-start gap-2' : 'items-center gap-4')}>\n <div className={cn('flex min-w-0 flex-col', compact ? 'gap-0.5' : 'items-center gap-1.5')}>\n <p role=\"heading\" aria-level={size === 'page' ? 2 : 3} className={TITLE[size]}>\n {title}\n </p>\n {description ? (\n <p\n className={cn(\n 'text-po-dim',\n compact ? 'text-sm' : 'max-w-[38ch] text-balance text-base leading-relaxed',\n )}\n >\n {description}\n </p>\n ) : null}\n </div>\n {action || secondaryAction ? (\n <div className={cn('flex flex-wrap items-center gap-2', compact ? 'justify-start' : 'justify-center')}>\n {action ? (\n <Button\n variant={compact ? 'outline' : 'primary'}\n size={BUTTON_SIZE[size]}\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant={compact ? 'ghost' : 'outline'}\n size={BUTTON_SIZE[size]}\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </Frame>\n );\n}\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"EmptyState.mjs","names":["FRAME","CARD","ICON","TITLE","BUTTON_SIZE","EmptyState","Frame","props","compact","size","error","tone","cn","className","AlertIcon","title","description","Fragment","action","secondaryAction","Button","children","glyph","icon","surface"],"sources":["../../../src/components/EmptyState.tsx"],"sourcesContent":["import type { HTMLAttributes, ReactNode } from 'react';\n\nimport { AlertIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\nimport { Button } from './Button';\n\n/** One button an empty state offers: the next step that fills the surface. */\nexport interface EmptyStateAction {\n label: string;\n onAction: () => void;\n loading?: boolean;\n disabled?: boolean;\n testId?: string;\n}\n\nexport type EmptyStateSize = 'page' | 'panel' | 'compact' | 'inline';\n\nexport interface EmptyStateProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {\n title: ReactNode;\n /** Guidance: why the surface is empty and what fills it. */\n description?: ReactNode;\n /** A glyph from the icon set, drawn in a quiet badge above the title (beside it when compact). Defaults to an alert glyph when `tone` is `error`. */\n icon?: ReactNode;\n /** The one primary step. Filled jade on page and panel, outline when compact. */\n action?: EmptyStateAction;\n /** A quieter second step, such as clearing a filter or retrying. */\n secondaryAction?: EmptyStateAction;\n /**\n * page: a whole screen (welcome, workspace). panel: a dock or tab (the default).\n * compact: a rail line or list row; left-aligned and never stretches.\n * inline: one quiet line under a header that already names the surface, such as an activity card.\n * Drops the icon and frame; `surface` does not apply.\n */\n size?: EmptyStateSize;\n /** `card` is a quiet dashed outline with no fill; `plain` drops it when the empty state already sits inside a card. */\n surface?: 'card' | 'plain';\n /** `error` announces the state as an alert and tints only the icon red. */\n tone?: 'neutral' | 'error';\n /** Anything under the actions: a keyboard hint, a status line, starter prompts. */\n children?: ReactNode;\n /** Render the frame as an <li> so an empty row inside a list keeps the list's semantics. */\n as?: 'div' | 'li';\n}\n\ntype CardSize = Exclude<EmptyStateSize, 'inline'>;\n\nconst FRAME: Record<CardSize, string> = {\n page: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-6 sm:px-6',\n panel: 'flex w-full min-w-0 flex-1 items-center justify-center px-3 py-4 sm:px-4',\n compact: 'flex w-full min-w-0',\n};\n\nconst CARD: Record<CardSize, string> = {\n page: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center sm:p-8',\n panel: 'w-full max-w-[520px] flex-col items-center gap-3 p-5 text-center',\n compact: 'w-full items-start gap-2.5 p-3 text-left',\n};\n\nconst ICON: Record<CardSize, string> = {\n page: 'size-12 rounded-full border bg-po-deep [&_svg]:size-6',\n panel: 'size-10 rounded-full border bg-po-deep [&_svg]:size-5',\n compact: 'size-5 [&_svg]:size-4',\n};\n\nconst TITLE: Record<CardSize, string> = {\n page: 'text-balance text-xl font-semibold text-po-hi',\n panel: 'text-balance text-lg font-semibold text-po-hi',\n compact: 'text-base font-semibold text-po-hi',\n};\n\nconst BUTTON_SIZE = { page: 'lg', panel: 'md', compact: 'sm' } as const;\n\n/** The card every empty surface shares: icon, title, guidance and, when the person can act, the next step. */\nexport function EmptyState({\n title,\n description,\n icon,\n action,\n secondaryAction,\n size = 'panel',\n surface = 'card',\n tone = 'neutral',\n children,\n className,\n as: Frame = 'div',\n ...props\n}: EmptyStateProps) {\n const compact = size === 'compact';\n const error = tone === 'error';\n if (size === 'inline') {\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn('flex min-w-0 flex-col items-start gap-2', className)}\n {...props}\n >\n <p className=\"text-sm text-po-dim\">\n {/* As at every other size, only the icon is red; the words stay readable. */}\n {error ? <AlertIcon aria-hidden=\"true\" className=\"mr-1 inline size-3.5 align-[-2px] text-po-red\" /> : null}\n <span className=\"font-medium\">{title}</span>\n {description ? <> · {description}</> : null}\n </p>\n {action || secondaryAction ? (\n <div className=\"flex flex-wrap items-center gap-2\">\n {action ? (\n <Button\n variant=\"outline\"\n size=\"sm\"\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant=\"ghost\"\n size=\"sm\"\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </Frame>\n );\n }\n const glyph = icon ?? (error ? <AlertIcon /> : null);\n return (\n <Frame\n data-slot=\"empty-state\"\n data-size={size}\n role={error ? 'alert' : undefined}\n className={cn(FRAME[size], className)}\n {...props}\n >\n <div\n data-slot=\"empty-state-card\"\n className={cn(\n 'flex min-w-0',\n CARD[size],\n surface === 'card' && 'rounded-md border border-dashed border-po-border',\n )}\n >\n {glyph ? (\n <span\n aria-hidden=\"true\"\n className={cn(\n 'flex shrink-0 items-center justify-center',\n ICON[size],\n error ? 'border-po-edge-red text-po-red' : 'border-po-border-soft text-po-dim',\n )}\n >\n {glyph}\n </span>\n ) : null}\n <div className={cn('flex min-w-0 flex-col', compact ? 'flex-1 items-start gap-2' : 'items-center gap-4')}>\n <div className={cn('flex min-w-0 flex-col', compact ? 'gap-0.5' : 'items-center gap-1.5')}>\n <p role=\"heading\" aria-level={size === 'page' ? 2 : 3} className={TITLE[size]}>\n {title}\n </p>\n {description ? (\n <p\n className={cn(\n 'text-po-dim',\n compact ? 'text-sm' : 'max-w-[38ch] text-balance text-base leading-relaxed',\n )}\n >\n {description}\n </p>\n ) : null}\n </div>\n {action || secondaryAction ? (\n <div className={cn('flex flex-wrap items-center gap-2', compact ? 'justify-start' : 'justify-center')}>\n {action ? (\n <Button\n variant={compact ? 'outline' : 'primary'}\n size={BUTTON_SIZE[size]}\n loading={action.loading}\n disabled={action.disabled}\n data-testid={action.testId}\n onClick={action.onAction}\n >\n {action.label}\n </Button>\n ) : null}\n {secondaryAction ? (\n <Button\n variant={compact ? 'ghost' : 'outline'}\n size={BUTTON_SIZE[size]}\n loading={secondaryAction.loading}\n disabled={secondaryAction.disabled}\n data-testid={secondaryAction.testId}\n onClick={secondaryAction.onAction}\n >\n {secondaryAction.label}\n </Button>\n ) : null}\n </div>\n ) : null}\n {children}\n </div>\n </div>\n </Frame>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const e=require("./Breadcrumb.cjs"),t=require("./CodeEditor.cjs"),n=require("../lib/files.cjs"),r=require("./Markdown.cjs");let i=require("react/jsx-runtime"),a=require("@agimon-ai/po-core/web");function o({path:o,source:s,preview:c,error:l,
|
|
1
|
+
const e=require("./Breadcrumb.cjs"),t=require("./CodeEditor.cjs"),n=require("../lib/files.cjs"),r=require("./Markdown.cjs");let i=require("react/jsx-runtime"),a=require("@agimon-ai/po-core/web");function o({path:o,source:s,preview:c,error:l,status:u,media:d,actions:f,loadImage:p,documentPath:m,renderMediaReview:h}){let g=(0,a.useT)(),_=n.filePreviewMode(o);return/* @__PURE__ */ (0,i.jsxs)(`div`,{"data-testid":`file-preview`,"data-file-path":o,className:`flex min-h-0 flex-1 flex-col bg-po-bg text-po-text`,children:[/* @__PURE__ */ (0,i.jsxs)(`header`,{className:`flex shrink-0 flex-wrap items-center gap-2 border-b border-po-border px-4 py-3`,children:[/* @__PURE__ */ (0,i.jsx)(e.Breadcrumb,{path:o,className:`min-w-0 flex-1`}),f,/* @__PURE__ */ (0,i.jsx)(`span`,{className:`text-sm text-po-dim`,children:s})]}),/* @__PURE__ */ (0,i.jsx)(`div`,{className:`min-h-0 flex-1 overflow-auto p-4`,children:u||(l?/* @__PURE__ */ (0,i.jsx)(`p`,{role:`alert`,className:`text-sm text-po-red`,children:l}):c?_===`media`?d:c.unavailable?/* @__PURE__ */ (0,i.jsx)(`p`,{className:`text-sm text-po-dim`,children:c.reason??g(`webComponents.filePreview.unavailable`,`This file cannot be previewed.`)}):_===`markdown`?/* @__PURE__ */ (0,i.jsx)(r.Markdown,{text:c.content,loadImage:p,documentPath:m,renderMediaReview:h}):_===`html`?/* @__PURE__ */ (0,i.jsx)(`iframe`,{title:o,sandbox:``,srcDoc:c.content,className:`h-96 w-full rounded-md border border-po-border bg-po-deep`}):_===`code`?/* @__PURE__ */ (0,i.jsx)(t.CodeEditor,{value:c.content,path:o,readOnly:!0,className:`min-h-64 rounded-md border border-po-border`}):/* @__PURE__ */ (0,i.jsx)(`pre`,{className:`whitespace-pre-wrap break-words font-mono text-sm text-po-text`,children:c.content}):/* @__PURE__ */ (0,i.jsx)(`output`,{className:`text-sm text-po-dim`,children:g(`webComponents.filePreview.reading`,`Reading this file...`)}))})]})}exports.FilePreview=o;
|
|
2
2
|
//# sourceMappingURL=FilePreview.cjs.map
|