@agimon-ai/doompi-web-components 0.0.1-alpha.3 → 0.0.1-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist/components/Accordion.d.cts +5 -5
- package/dist/components/Accordion.d.cts.map +1 -1
- package/dist/components/AnsiText.d.cts +16 -0
- package/dist/components/AnsiText.d.cts.map +1 -0
- package/dist/components/Avatar.d.cts +4 -4
- package/dist/components/Avatar.d.cts.map +1 -1
- package/dist/components/Badge.d.cts +4 -5
- package/dist/components/Badge.d.cts.map +1 -1
- package/dist/components/Breadcrumb.d.cts +4 -5
- package/dist/components/Breadcrumb.d.cts.map +1 -1
- package/dist/components/Button.d.cts +5 -6
- package/dist/components/Button.d.cts.map +1 -1
- package/dist/components/Checkbox.d.cts +1 -1
- package/dist/components/Checkbox.d.cts.map +1 -1
- package/dist/components/CodeEditor.d.cts +1 -2
- package/dist/components/CodeEditor.d.cts.map +1 -1
- package/dist/components/Collapsible.d.cts +4 -4
- package/dist/components/Collapsible.d.cts.map +1 -1
- package/dist/components/Command.d.cts +11 -12
- package/dist/components/Command.d.cts.map +1 -1
- package/dist/components/Dialog.d.cts +14 -14
- package/dist/components/Dialog.d.cts.map +1 -1
- package/dist/components/Dot.d.cts +4 -5
- package/dist/components/Dot.d.cts.map +1 -1
- package/dist/components/DropdownMenu.d.cts +19 -19
- package/dist/components/DropdownMenu.d.cts.map +1 -1
- package/dist/components/EmptyState.d.cts +2 -3
- package/dist/components/EmptyState.d.cts.map +1 -1
- package/dist/components/HashlineLines.d.cts +23 -0
- package/dist/components/HashlineLines.d.cts.map +1 -0
- package/dist/components/Input.d.cts +5 -6
- package/dist/components/Input.d.cts.map +1 -1
- package/dist/components/Kbd.d.cts +1 -2
- package/dist/components/Kbd.d.cts.map +1 -1
- package/dist/components/Label.d.cts +1 -1
- package/dist/components/Label.d.cts.map +1 -1
- package/dist/components/Markdown.d.cts +12 -3
- package/dist/components/Markdown.d.cts.map +1 -1
- package/dist/components/MediaPreview.d.cts +39 -3
- package/dist/components/MediaPreview.d.cts.map +1 -1
- package/dist/components/MessageItem.d.cts +47 -16
- package/dist/components/MessageItem.d.cts.map +1 -1
- package/dist/components/MessageLines.d.cts +5 -6
- package/dist/components/MessageLines.d.cts.map +1 -1
- package/dist/components/OptionList.d.cts +8 -9
- package/dist/components/OptionList.d.cts.map +1 -1
- package/dist/components/Panel.d.cts +4 -5
- package/dist/components/Panel.d.cts.map +1 -1
- package/dist/components/PdfPreview.d.cts +52 -0
- package/dist/components/PdfPreview.d.cts.map +1 -0
- package/dist/components/Popover.d.cts +8 -8
- package/dist/components/Popover.d.cts.map +1 -1
- package/dist/components/Progress.d.cts +1 -1
- package/dist/components/Progress.d.cts.map +1 -1
- package/dist/components/RadioGroup.d.cts +4 -4
- package/dist/components/RadioGroup.d.cts.map +1 -1
- package/dist/components/ScrollArea.d.cts +3 -3
- package/dist/components/ScrollArea.d.cts.map +1 -1
- package/dist/components/SectionLabel.d.cts +1 -2
- package/dist/components/SectionLabel.d.cts.map +1 -1
- package/dist/components/Select.d.cts +9 -9
- package/dist/components/Select.d.cts.map +1 -1
- package/dist/components/Separator.d.cts +1 -1
- package/dist/components/Separator.d.cts.map +1 -1
- package/dist/components/Sheet.d.cts +35 -0
- package/dist/components/Sheet.d.cts.map +1 -0
- package/dist/components/Skeleton.d.cts +1 -2
- package/dist/components/Skeleton.d.cts.map +1 -1
- package/dist/components/Spinner.d.cts +2 -3
- package/dist/components/Spinner.d.cts.map +1 -1
- package/dist/components/StatusBadge.d.cts +5 -6
- package/dist/components/StatusBadge.d.cts.map +1 -1
- package/dist/components/StreamCursor.d.cts +1 -2
- package/dist/components/StreamCursor.d.cts.map +1 -1
- package/dist/components/Switch.d.cts +1 -1
- package/dist/components/Switch.d.cts.map +1 -1
- package/dist/components/SyntaxText.d.cts +50 -0
- package/dist/components/SyntaxText.d.cts.map +1 -0
- package/dist/components/Tabs.d.cts +10 -10
- package/dist/components/Tabs.d.cts.map +1 -1
- package/dist/components/TerminalView.d.cts +31 -0
- package/dist/components/TerminalView.d.cts.map +1 -0
- package/dist/components/Textarea.d.cts +2 -3
- package/dist/components/Textarea.d.cts.map +1 -1
- package/dist/components/Toast.d.cts +10 -10
- package/dist/components/Toast.d.cts.map +1 -1
- package/dist/components/ToolPathLink.d.cts +22 -0
- package/dist/components/ToolPathLink.d.cts.map +1 -0
- package/dist/components/Tooltip.d.cts +5 -5
- package/dist/components/Tooltip.d.cts.map +1 -1
- package/dist/icons/icons.d.cts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +17 -6
- package/dist/index.d.mts +17 -6
- package/dist/index.mjs +1 -1
- package/dist/lib/ansiSpans.d.cts +42 -0
- package/dist/lib/ansiSpans.d.cts.map +1 -0
- package/dist/lib/cn.d.cts +1 -2
- package/dist/lib/cn.d.cts.map +1 -1
- package/dist/lib/collapse.d.cts +2 -3
- package/dist/lib/collapse.d.cts.map +1 -1
- package/dist/lib/editorLanguage.d.cts +2 -3
- package/dist/lib/editorLanguage.d.cts.map +1 -1
- package/dist/lib/editorTheme.d.cts +76 -0
- package/dist/lib/editorTheme.d.cts.map +1 -0
- package/dist/lib/hashlineHighlight.d.cts +30 -0
- package/dist/lib/hashlineHighlight.d.cts.map +1 -0
- package/dist/lib/hashlineView.d.cts +60 -0
- package/dist/lib/hashlineView.d.cts.map +1 -0
- package/dist/lib/media.d.cts +1 -2
- package/dist/lib/media.d.cts.map +1 -1
- package/dist/lib/optionList.d.cts +4 -5
- package/dist/lib/optionList.d.cts.map +1 -1
- package/dist/lib/syntaxHighlight.d.cts +54 -0
- package/dist/lib/syntaxHighlight.d.cts.map +1 -0
- package/dist/lib/tone.d.cts +4 -5
- package/dist/lib/tone.d.cts.map +1 -1
- package/dist/src/components/Accordion.cjs +1 -1
- package/dist/src/components/Accordion.cjs.map +1 -1
- package/dist/src/components/Accordion.d.mts +5 -5
- package/dist/src/components/Accordion.d.mts.map +1 -1
- package/dist/src/components/Accordion.mjs +1 -1
- package/dist/src/components/Accordion.mjs.map +1 -1
- package/dist/src/components/AnsiText.cjs +4 -0
- package/dist/src/components/AnsiText.cjs.map +1 -0
- package/dist/src/components/AnsiText.d.mts +16 -0
- package/dist/src/components/AnsiText.d.mts.map +1 -0
- package/dist/src/components/AnsiText.mjs +4 -0
- package/dist/src/components/AnsiText.mjs.map +1 -0
- package/dist/src/components/Avatar.cjs +1 -1
- package/dist/src/components/Avatar.cjs.map +1 -1
- package/dist/src/components/Avatar.d.mts +4 -4
- package/dist/src/components/Avatar.d.mts.map +1 -1
- package/dist/src/components/Avatar.mjs +1 -1
- package/dist/src/components/Avatar.mjs.map +1 -1
- package/dist/src/components/Badge.cjs +1 -1
- package/dist/src/components/Badge.cjs.map +1 -1
- package/dist/src/components/Badge.d.mts +5 -6
- package/dist/src/components/Badge.d.mts.map +1 -1
- package/dist/src/components/Badge.mjs +1 -1
- package/dist/src/components/Badge.mjs.map +1 -1
- package/dist/src/components/Breadcrumb.cjs +1 -1
- package/dist/src/components/Breadcrumb.cjs.map +1 -1
- package/dist/src/components/Breadcrumb.d.mts +4 -5
- package/dist/src/components/Breadcrumb.d.mts.map +1 -1
- package/dist/src/components/Breadcrumb.mjs +1 -1
- package/dist/src/components/Breadcrumb.mjs.map +1 -1
- package/dist/src/components/Button.cjs +1 -1
- package/dist/src/components/Button.cjs.map +1 -1
- package/dist/src/components/Button.d.mts +6 -7
- package/dist/src/components/Button.d.mts.map +1 -1
- package/dist/src/components/Button.mjs +1 -1
- package/dist/src/components/Button.mjs.map +1 -1
- package/dist/src/components/Checkbox.cjs +1 -1
- package/dist/src/components/Checkbox.cjs.map +1 -1
- package/dist/src/components/Checkbox.d.mts +1 -1
- package/dist/src/components/Checkbox.d.mts.map +1 -1
- package/dist/src/components/Checkbox.mjs +1 -1
- package/dist/src/components/Checkbox.mjs.map +1 -1
- package/dist/src/components/CodeBlock.cjs +2 -0
- package/dist/src/components/CodeBlock.cjs.map +1 -0
- package/dist/src/components/CodeBlock.mjs +2 -0
- package/dist/src/components/CodeBlock.mjs.map +1 -0
- package/dist/src/components/CodeEditor.cjs.map +1 -1
- package/dist/src/components/CodeEditor.d.mts +1 -2
- package/dist/src/components/CodeEditor.d.mts.map +1 -1
- package/dist/src/components/CodeEditor.mjs.map +1 -1
- package/dist/src/components/CodeEditorView.cjs +1 -1
- package/dist/src/components/CodeEditorView.cjs.map +1 -1
- package/dist/src/components/CodeEditorView.mjs +1 -1
- package/dist/src/components/CodeEditorView.mjs.map +1 -1
- package/dist/src/components/Collapsible.cjs.map +1 -1
- package/dist/src/components/Collapsible.d.mts +4 -4
- package/dist/src/components/Collapsible.d.mts.map +1 -1
- package/dist/src/components/Collapsible.mjs.map +1 -1
- package/dist/src/components/Command.cjs +1 -1
- package/dist/src/components/Command.cjs.map +1 -1
- package/dist/src/components/Command.d.mts +11 -12
- package/dist/src/components/Command.d.mts.map +1 -1
- package/dist/src/components/Command.mjs +1 -1
- package/dist/src/components/Command.mjs.map +1 -1
- package/dist/src/components/CopyButton.cjs +2 -0
- package/dist/src/components/CopyButton.cjs.map +1 -0
- package/dist/src/components/CopyButton.mjs +2 -0
- package/dist/src/components/CopyButton.mjs.map +1 -0
- package/dist/src/components/Dialog.cjs +1 -1
- package/dist/src/components/Dialog.cjs.map +1 -1
- package/dist/src/components/Dialog.d.mts +15 -15
- package/dist/src/components/Dialog.d.mts.map +1 -1
- package/dist/src/components/Dialog.mjs +1 -1
- package/dist/src/components/Dialog.mjs.map +1 -1
- package/dist/src/components/Dot.cjs.map +1 -1
- package/dist/src/components/Dot.d.mts +5 -6
- package/dist/src/components/Dot.d.mts.map +1 -1
- package/dist/src/components/Dot.mjs.map +1 -1
- package/dist/src/components/DropdownMenu.cjs +1 -1
- package/dist/src/components/DropdownMenu.cjs.map +1 -1
- package/dist/src/components/DropdownMenu.d.mts +20 -20
- package/dist/src/components/DropdownMenu.d.mts.map +1 -1
- package/dist/src/components/DropdownMenu.mjs +1 -1
- package/dist/src/components/DropdownMenu.mjs.map +1 -1
- package/dist/src/components/EmptyState.cjs +1 -1
- package/dist/src/components/EmptyState.cjs.map +1 -1
- package/dist/src/components/EmptyState.d.mts +2 -3
- package/dist/src/components/EmptyState.d.mts.map +1 -1
- package/dist/src/components/EmptyState.mjs +1 -1
- package/dist/src/components/EmptyState.mjs.map +1 -1
- package/dist/src/components/HashlineLines.cjs +2 -0
- package/dist/src/components/HashlineLines.cjs.map +1 -0
- package/dist/src/components/HashlineLines.d.mts +23 -0
- package/dist/src/components/HashlineLines.d.mts.map +1 -0
- package/dist/src/components/HashlineLines.mjs +2 -0
- package/dist/src/components/HashlineLines.mjs.map +1 -0
- package/dist/src/components/Input.cjs +1 -1
- package/dist/src/components/Input.cjs.map +1 -1
- package/dist/src/components/Input.d.mts +6 -7
- package/dist/src/components/Input.d.mts.map +1 -1
- package/dist/src/components/Input.mjs +1 -1
- package/dist/src/components/Input.mjs.map +1 -1
- package/dist/src/components/Kbd.cjs +1 -1
- package/dist/src/components/Kbd.cjs.map +1 -1
- package/dist/src/components/Kbd.d.mts +1 -2
- package/dist/src/components/Kbd.d.mts.map +1 -1
- package/dist/src/components/Kbd.mjs +1 -1
- package/dist/src/components/Kbd.mjs.map +1 -1
- package/dist/src/components/Label.cjs +1 -1
- package/dist/src/components/Label.cjs.map +1 -1
- package/dist/src/components/Label.d.mts +1 -1
- package/dist/src/components/Label.d.mts.map +1 -1
- package/dist/src/components/Label.mjs +1 -1
- package/dist/src/components/Label.mjs.map +1 -1
- package/dist/src/components/Markdown.cjs +2 -1
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/Markdown.d.mts +12 -3
- package/dist/src/components/Markdown.d.mts.map +1 -1
- package/dist/src/components/Markdown.mjs +2 -1
- package/dist/src/components/Markdown.mjs.map +1 -1
- package/dist/src/components/MediaPreview.cjs +1 -1
- package/dist/src/components/MediaPreview.cjs.map +1 -1
- package/dist/src/components/MediaPreview.d.mts +39 -3
- package/dist/src/components/MediaPreview.d.mts.map +1 -1
- package/dist/src/components/MediaPreview.mjs +1 -1
- package/dist/src/components/MediaPreview.mjs.map +1 -1
- package/dist/src/components/MermaidDiagram.cjs +2 -0
- package/dist/src/components/MermaidDiagram.cjs.map +1 -0
- package/dist/src/components/MermaidDiagram.mjs +2 -0
- package/dist/src/components/MermaidDiagram.mjs.map +1 -0
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.map +1 -1
- package/dist/src/components/MessageItem.d.mts +48 -17
- package/dist/src/components/MessageItem.d.mts.map +1 -1
- package/dist/src/components/MessageItem.mjs +1 -1
- package/dist/src/components/MessageItem.mjs.map +1 -1
- package/dist/src/components/MessageLines.cjs.map +1 -1
- package/dist/src/components/MessageLines.d.mts +5 -6
- package/dist/src/components/MessageLines.d.mts.map +1 -1
- package/dist/src/components/MessageLines.mjs.map +1 -1
- package/dist/src/components/OptionList.cjs +1 -1
- package/dist/src/components/OptionList.cjs.map +1 -1
- package/dist/src/components/OptionList.d.mts +9 -10
- package/dist/src/components/OptionList.d.mts.map +1 -1
- package/dist/src/components/OptionList.mjs +1 -1
- package/dist/src/components/OptionList.mjs.map +1 -1
- package/dist/src/components/Panel.cjs +1 -1
- package/dist/src/components/Panel.cjs.map +1 -1
- package/dist/src/components/Panel.d.mts +4 -5
- package/dist/src/components/Panel.d.mts.map +1 -1
- package/dist/src/components/Panel.mjs +1 -1
- package/dist/src/components/Panel.mjs.map +1 -1
- package/dist/src/components/PdfPreview.cjs +2 -0
- package/dist/src/components/PdfPreview.cjs.map +1 -0
- package/dist/src/components/PdfPreview.d.mts +52 -0
- package/dist/src/components/PdfPreview.d.mts.map +1 -0
- package/dist/src/components/PdfPreview.mjs +2 -0
- package/dist/src/components/PdfPreview.mjs.map +1 -0
- package/dist/src/components/Popover.cjs +1 -1
- package/dist/src/components/Popover.cjs.map +1 -1
- package/dist/src/components/Popover.d.mts +8 -8
- package/dist/src/components/Popover.d.mts.map +1 -1
- package/dist/src/components/Popover.mjs +1 -1
- package/dist/src/components/Popover.mjs.map +1 -1
- package/dist/src/components/Progress.cjs.map +1 -1
- package/dist/src/components/Progress.d.mts +1 -1
- package/dist/src/components/Progress.d.mts.map +1 -1
- package/dist/src/components/Progress.mjs.map +1 -1
- package/dist/src/components/RadioGroup.cjs.map +1 -1
- package/dist/src/components/RadioGroup.d.mts +4 -4
- package/dist/src/components/RadioGroup.d.mts.map +1 -1
- package/dist/src/components/RadioGroup.mjs.map +1 -1
- package/dist/src/components/ScrollArea.cjs.map +1 -1
- package/dist/src/components/ScrollArea.d.mts +3 -3
- package/dist/src/components/ScrollArea.d.mts.map +1 -1
- package/dist/src/components/ScrollArea.mjs.map +1 -1
- package/dist/src/components/SectionLabel.cjs +1 -1
- package/dist/src/components/SectionLabel.cjs.map +1 -1
- package/dist/src/components/SectionLabel.d.mts +1 -2
- package/dist/src/components/SectionLabel.d.mts.map +1 -1
- package/dist/src/components/SectionLabel.mjs +1 -1
- package/dist/src/components/SectionLabel.mjs.map +1 -1
- package/dist/src/components/Select.cjs +1 -1
- package/dist/src/components/Select.cjs.map +1 -1
- package/dist/src/components/Select.d.mts +9 -9
- package/dist/src/components/Select.d.mts.map +1 -1
- package/dist/src/components/Select.mjs +1 -1
- package/dist/src/components/Select.mjs.map +1 -1
- package/dist/src/components/Separator.cjs.map +1 -1
- package/dist/src/components/Separator.d.mts +1 -1
- package/dist/src/components/Separator.d.mts.map +1 -1
- package/dist/src/components/Separator.mjs.map +1 -1
- package/dist/src/components/Sheet.cjs +2 -0
- package/dist/src/components/Sheet.cjs.map +1 -0
- package/dist/src/components/Sheet.d.mts +35 -0
- package/dist/src/components/Sheet.d.mts.map +1 -0
- package/dist/src/components/Sheet.mjs +2 -0
- package/dist/src/components/Sheet.mjs.map +1 -0
- package/dist/src/components/Skeleton.cjs.map +1 -1
- package/dist/src/components/Skeleton.d.mts +1 -2
- package/dist/src/components/Skeleton.d.mts.map +1 -1
- package/dist/src/components/Skeleton.mjs.map +1 -1
- package/dist/src/components/Spinner.cjs +1 -1
- package/dist/src/components/Spinner.cjs.map +1 -1
- package/dist/src/components/Spinner.d.mts +2 -3
- package/dist/src/components/Spinner.d.mts.map +1 -1
- package/dist/src/components/Spinner.mjs +1 -1
- package/dist/src/components/Spinner.mjs.map +1 -1
- package/dist/src/components/StatusBadge.cjs +1 -1
- package/dist/src/components/StatusBadge.cjs.map +1 -1
- package/dist/src/components/StatusBadge.d.mts +6 -7
- package/dist/src/components/StatusBadge.d.mts.map +1 -1
- package/dist/src/components/StatusBadge.mjs +1 -1
- package/dist/src/components/StatusBadge.mjs.map +1 -1
- package/dist/src/components/StreamCursor.cjs.map +1 -1
- package/dist/src/components/StreamCursor.d.mts +1 -2
- package/dist/src/components/StreamCursor.d.mts.map +1 -1
- package/dist/src/components/StreamCursor.mjs.map +1 -1
- package/dist/src/components/Switch.cjs.map +1 -1
- package/dist/src/components/Switch.d.mts +1 -1
- package/dist/src/components/Switch.d.mts.map +1 -1
- package/dist/src/components/Switch.mjs.map +1 -1
- package/dist/src/components/SyntaxText.cjs +4 -0
- package/dist/src/components/SyntaxText.cjs.map +1 -0
- package/dist/src/components/SyntaxText.d.mts +50 -0
- package/dist/src/components/SyntaxText.d.mts.map +1 -0
- package/dist/src/components/SyntaxText.mjs +4 -0
- package/dist/src/components/SyntaxText.mjs.map +1 -0
- package/dist/src/components/Tabs.cjs +1 -1
- package/dist/src/components/Tabs.cjs.map +1 -1
- package/dist/src/components/Tabs.d.mts +11 -11
- package/dist/src/components/Tabs.d.mts.map +1 -1
- package/dist/src/components/Tabs.mjs +1 -1
- package/dist/src/components/Tabs.mjs.map +1 -1
- package/dist/src/components/TerminalView.cjs +2 -0
- package/dist/src/components/TerminalView.cjs.map +1 -0
- package/dist/src/components/TerminalView.d.mts +31 -0
- package/dist/src/components/TerminalView.d.mts.map +1 -0
- package/dist/src/components/TerminalView.mjs +2 -0
- package/dist/src/components/TerminalView.mjs.map +1 -0
- package/dist/src/components/Textarea.cjs.map +1 -1
- package/dist/src/components/Textarea.d.mts +3 -4
- package/dist/src/components/Textarea.d.mts.map +1 -1
- package/dist/src/components/Textarea.mjs.map +1 -1
- package/dist/src/components/Toast.cjs +1 -1
- package/dist/src/components/Toast.cjs.map +1 -1
- package/dist/src/components/Toast.d.mts +11 -11
- package/dist/src/components/Toast.d.mts.map +1 -1
- package/dist/src/components/Toast.mjs +1 -1
- package/dist/src/components/Toast.mjs.map +1 -1
- package/dist/src/components/ToolPathLink.cjs +2 -0
- package/dist/src/components/ToolPathLink.cjs.map +1 -0
- package/dist/src/components/ToolPathLink.d.mts +22 -0
- package/dist/src/components/ToolPathLink.d.mts.map +1 -0
- package/dist/src/components/ToolPathLink.mjs +2 -0
- package/dist/src/components/ToolPathLink.mjs.map +1 -0
- package/dist/src/components/Tooltip.cjs +1 -1
- package/dist/src/components/Tooltip.cjs.map +1 -1
- package/dist/src/components/Tooltip.d.mts +5 -5
- package/dist/src/components/Tooltip.d.mts.map +1 -1
- package/dist/src/components/Tooltip.mjs +1 -1
- package/dist/src/components/Tooltip.mjs.map +1 -1
- 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/ansiSpans.cjs +2 -0
- package/dist/src/lib/ansiSpans.cjs.map +1 -0
- package/dist/src/lib/ansiSpans.d.mts +42 -0
- package/dist/src/lib/ansiSpans.d.mts.map +1 -0
- package/dist/src/lib/ansiSpans.mjs +2 -0
- package/dist/src/lib/ansiSpans.mjs.map +1 -0
- package/dist/src/lib/cn.d.mts +1 -2
- package/dist/src/lib/cn.d.mts.map +1 -1
- package/dist/src/lib/collapse.d.mts +2 -3
- package/dist/src/lib/collapse.d.mts.map +1 -1
- package/dist/src/lib/editorController.cjs +2 -0
- package/dist/src/lib/editorController.cjs.map +1 -0
- package/dist/src/lib/editorController.mjs +2 -0
- package/dist/src/lib/editorController.mjs.map +1 -0
- package/dist/src/lib/editorLanguage.d.mts +2 -3
- package/dist/src/lib/editorLanguage.d.mts.map +1 -1
- package/dist/src/lib/editorTheme.cjs +1 -1
- package/dist/src/lib/editorTheme.cjs.map +1 -1
- package/dist/src/lib/editorTheme.d.mts +76 -0
- package/dist/src/lib/editorTheme.d.mts.map +1 -0
- package/dist/src/lib/editorTheme.mjs +1 -1
- package/dist/src/lib/editorTheme.mjs.map +1 -1
- package/dist/src/lib/fenceGrammar.cjs +2 -0
- package/dist/src/lib/fenceGrammar.cjs.map +1 -0
- package/dist/src/lib/fenceGrammar.mjs +2 -0
- package/dist/src/lib/fenceGrammar.mjs.map +1 -0
- package/dist/src/lib/hashlineHighlight.cjs +3 -0
- package/dist/src/lib/hashlineHighlight.cjs.map +1 -0
- package/dist/src/lib/hashlineHighlight.d.mts +30 -0
- package/dist/src/lib/hashlineHighlight.d.mts.map +1 -0
- package/dist/src/lib/hashlineHighlight.mjs +3 -0
- package/dist/src/lib/hashlineHighlight.mjs.map +1 -0
- package/dist/src/lib/hashlineView.cjs +6 -0
- package/dist/src/lib/hashlineView.cjs.map +1 -0
- package/dist/src/lib/hashlineView.d.mts +60 -0
- package/dist/src/lib/hashlineView.d.mts.map +1 -0
- package/dist/src/lib/hashlineView.mjs +6 -0
- package/dist/src/lib/hashlineView.mjs.map +1 -0
- package/dist/src/lib/media.cjs.map +1 -1
- package/dist/src/lib/media.d.mts +1 -2
- package/dist/src/lib/media.d.mts.map +1 -1
- package/dist/src/lib/media.mjs.map +1 -1
- package/dist/src/lib/mediaPlayback.cjs +2 -0
- package/dist/src/lib/mediaPlayback.cjs.map +1 -0
- package/dist/src/lib/mediaPlayback.mjs +2 -0
- package/dist/src/lib/mediaPlayback.mjs.map +1 -0
- package/dist/src/lib/mermaidDiagram.cjs +2 -0
- package/dist/src/lib/mermaidDiagram.cjs.map +1 -0
- package/dist/src/lib/mermaidDiagram.mjs +2 -0
- package/dist/src/lib/mermaidDiagram.mjs.map +1 -0
- package/dist/src/lib/optionList.d.mts +4 -5
- package/dist/src/lib/optionList.d.mts.map +1 -1
- package/dist/src/lib/syntaxHighlight.cjs +3 -0
- package/dist/src/lib/syntaxHighlight.cjs.map +1 -0
- package/dist/src/lib/syntaxHighlight.d.mts +54 -0
- package/dist/src/lib/syntaxHighlight.d.mts.map +1 -0
- package/dist/src/lib/syntaxHighlight.mjs +3 -0
- package/dist/src/lib/syntaxHighlight.mjs.map +1 -0
- package/dist/src/lib/tone.cjs.map +1 -1
- package/dist/src/lib/tone.d.mts +4 -5
- package/dist/src/lib/tone.d.mts.map +1 -1
- package/dist/src/lib/tone.mjs.map +1 -1
- package/dist/src/theme/apply.cjs.map +1 -1
- package/dist/src/theme/apply.d.mts +5 -6
- package/dist/src/theme/apply.d.mts.map +1 -1
- package/dist/src/theme/apply.mjs.map +1 -1
- package/dist/src/theme/builtinThemes.cjs.map +1 -1
- package/dist/src/theme/builtinThemes.d.mts +4 -5
- package/dist/src/theme/builtinThemes.d.mts.map +1 -1
- package/dist/src/theme/builtinThemes.mjs.map +1 -1
- package/dist/src/theme/derive.cjs.map +1 -1
- package/dist/src/theme/derive.d.mts +4 -5
- package/dist/src/theme/derive.d.mts.map +1 -1
- package/dist/src/theme/derive.mjs.map +1 -1
- package/dist/src/theme/parse.cjs.map +1 -1
- package/dist/src/theme/parse.d.mts +1 -2
- package/dist/src/theme/parse.d.mts.map +1 -1
- package/dist/src/theme/parse.mjs.map +1 -1
- package/dist/src/theme/piTheme.cjs.map +1 -1
- package/dist/src/theme/piTheme.d.mts +2 -3
- package/dist/src/theme/piTheme.d.mts.map +1 -1
- package/dist/src/theme/piTheme.mjs.map +1 -1
- package/dist/src/theme/preference.d.mts +4 -5
- package/dist/src/theme/preference.d.mts.map +1 -1
- package/dist/src/types/editor.cjs.map +1 -1
- package/dist/src/types/editor.d.mts +39 -5
- package/dist/src/types/editor.d.mts.map +1 -1
- package/dist/src/types/editor.mjs.map +1 -1
- package/dist/src/types/theme.d.mts +11 -12
- package/dist/src/types/theme.d.mts.map +1 -1
- package/dist/src/types/tone.d.mts +10 -11
- package/dist/src/types/tone.d.mts.map +1 -1
- package/dist/theme/apply.d.cts +5 -6
- package/dist/theme/apply.d.cts.map +1 -1
- package/dist/theme/builtinThemes.d.cts +4 -5
- package/dist/theme/builtinThemes.d.cts.map +1 -1
- package/dist/theme/derive.d.cts +4 -5
- package/dist/theme/derive.d.cts.map +1 -1
- package/dist/theme/parse.d.cts +1 -2
- package/dist/theme/parse.d.cts.map +1 -1
- package/dist/theme/piTheme.d.cts +2 -3
- package/dist/theme/piTheme.d.cts.map +1 -1
- package/dist/theme/preference.d.cts +4 -5
- package/dist/theme/preference.d.cts.map +1 -1
- package/dist/types/editor.d.cts +39 -5
- package/dist/types/editor.d.cts.map +1 -1
- package/dist/types/theme.d.cts +11 -12
- package/dist/types/theme.d.cts.map +1 -1
- package/dist/types/tone.d.cts +10 -11
- package/dist/types/tone.d.cts.map +1 -1
- package/package.json +19 -15
- package/styles/preview.css +17 -0
- package/styles/tokens.css +72 -0
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActivityIcon as e,AlertIcon as t,AudioLinesIcon as n,BranchIcon as r,CheckIcon as i,ChevronDownIcon as a,ChevronRightIcon as o,ChevronUpIcon as s,CloseIcon as c,EditIcon as l,EnterIcon as u,ExternalLinkIcon as d,FileIcon as f,GearIcon as p,KebabIcon as m,LoaderIcon as h,MessageIcon as g,MicIcon as _,PaletteIcon as v,PlusIcon as y,RefreshIcon as b,SearchIcon as x,SendIcon as S,ShieldIcon as C,StopIcon as w,TrashIcon as T,VolumeIcon as E}from"./src/icons/icons.mjs";import{cn as D}from"./src/lib/cn.mjs";import{Accordion as O,AccordionContent as k,AccordionItem as A,AccordionTrigger as j}from"./src/components/Accordion.mjs";import{Avatar as M,AvatarFallback as N,AvatarImage as P}from"./src/components/Avatar.mjs";import{Badge as F,badgeVariants as I}from"./src/components/Badge.mjs";import{Tooltip as L,TooltipContent as R,TooltipProvider as z,TooltipTrigger as B}from"./src/components/Tooltip.mjs";import{BREADCRUMB_ELLIPSIS as V,Breadcrumb as H,breadcrumbSegments as U}from"./src/components/Breadcrumb.mjs";import{Spinner as W}from"./src/components/Spinner.mjs";import{Button as G,buttonVariants as K}from"./src/components/Button.mjs";import{Dialog as q,DialogBody as J,DialogClose as Y,DialogContent as X,DialogDescription as Z,DialogFooter as Q,DialogHeader as $,DialogTitle as ee,DialogTrigger as te,dialogFooterVariants as ne}from"./src/components/Dialog.mjs";import{Dot as re,dotVariants as ie}from"./src/components/Dot.mjs";import{DropdownMenu as ae,DropdownMenuCheckboxItem as oe,DropdownMenuContent as se,DropdownMenuGroup as ce,DropdownMenuItem as le,DropdownMenuLabel as ue,DropdownMenuRadioGroup as de,DropdownMenuRadioItem as fe,DropdownMenuSeparator as pe,DropdownMenuShortcut as me,DropdownMenuSub as he,DropdownMenuSubContent as ge,DropdownMenuSubTrigger as _e,DropdownMenuTrigger as ve,dropdownMenuItemVariants as ye}from"./src/components/DropdownMenu.mjs";import{Checkbox as be}from"./src/components/Checkbox.mjs";import{Skeleton as xe}from"./src/components/Skeleton.mjs";import{CodeEditor as Se}from"./src/components/CodeEditor.mjs";import{Collapsible as Ce,CollapsibleContent as we,CollapsibleTrigger as Te}from"./src/components/Collapsible.mjs";import{Input as Ee,fieldVariants as De}from"./src/components/Input.mjs";import{MAX_DIGIT_SHORTCUT as Oe,handleOptionListKey as ke,optionListHint as Ae,optionMarker as je}from"./src/lib/optionList.mjs";import{OptionLabel as Me,OptionList as Ne,OptionRow as Pe,optionListVariants as Fe,optionMarkerVariants as Ie,optionRowVariants as Le}from"./src/components/OptionList.mjs";import{CommandDialog as Re,CommandEmpty as ze,CommandFooter as Be,CommandGroup as Ve,CommandGroupLabel as He,CommandHeader as Ue,CommandInput as We,CommandItem as Ge,CommandItemLabel as Ke,CommandList as qe}from"./src/components/Command.mjs";import{EmptyState as Je}from"./src/components/EmptyState.mjs";import{Kbd as Ye}from"./src/components/Kbd.mjs";import{Label as Xe}from"./src/components/Label.mjs";import{Markdown as Ze}from"./src/components/Markdown.mjs";import{mediaKindOf as Qe}from"./src/lib/media.mjs";import{MediaPreview as $e}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as et,StatusBadge as tt,statusBadgeVariants as nt}from"./src/components/StatusBadge.mjs";import{MessageItem as rt,MessageItemBody as it,MessageItemHeader as at,MessageItemStatus as ot,STATUS_GLYPH as st,STATUS_LABEL as ct,messageItemStatusVariants as lt,messageItemVariants as ut,toolTone as dt,useMessageItem as ft}from"./src/components/MessageItem.mjs";import{MessageLines as pt,messageLineVariants as mt}from"./src/components/MessageLines.mjs";import{Panel as ht,PanelBody as gt,PanelHeader as _t}from"./src/components/Panel.mjs";import{Popover as vt,PopoverAnchor as yt,PopoverClose as bt,PopoverContent as xt,PopoverFooter as St,PopoverHeader as Ct,PopoverTrigger as wt}from"./src/components/Popover.mjs";import{Progress as Tt}from"./src/components/Progress.mjs";import{RadioGroup as Et,RadioGroupCard as Dt,RadioGroupItem as Ot}from"./src/components/RadioGroup.mjs";import{ScrollArea as kt,ScrollBar as At}from"./src/components/ScrollArea.mjs";import{SectionLabel as jt}from"./src/components/SectionLabel.mjs";import{Select as Mt,SelectContent as Nt,SelectGroup as Pt,SelectItem as Ft,SelectLabel as It,SelectSeparator as Lt,SelectTrigger as Rt,SelectValue as zt}from"./src/components/Select.mjs";import{Separator as Bt}from"./src/components/Separator.mjs";import{StreamCursor as Vt}from"./src/components/StreamCursor.mjs";import{Switch as Ht}from"./src/components/Switch.mjs";import{NavTab as Ut,NavTabBadge as Wt,Tabs as Gt,TabsContent as Kt,TabsList as qt,TabsTrigger as Jt,tabBadgeVariants as Yt,tabVariants as Xt}from"./src/components/Tabs.mjs";import{Textarea as Zt}from"./src/components/Textarea.mjs";import{Toast as Qt,ToastAction as $t,ToastClose as en,ToastDescription as tn,ToastProvider as nn,ToastTitle as rn,ToastViewport as an,toastVariants as on}from"./src/components/Toast.mjs";import{collapseLines as sn}from"./src/lib/collapse.mjs";import{grammarKeyOf as cn}from"./src/lib/editorLanguage.mjs";import{CHIP_TO_STATUS as ln,LINE_TONE_TO_STATUS as un,STATUS_TO_CHIP as dn,STATUS_TO_DOT as fn}from"./src/lib/tone.mjs";import{MEDIA_KINDS as pn}from"./src/types/editor.mjs";import{ACCENT_TONES as mn,CHIP_TONES as hn,DOT_TONES as gn,MESSAGE_LINE_TONES as _n,STATUS_TONES as vn}from"./src/types/tone.mjs";export{mn as ACCENT_TONES,O as Accordion,k as AccordionContent,A as AccordionItem,j as AccordionTrigger,e as ActivityIcon,t as AlertIcon,n as AudioLinesIcon,M as Avatar,N as AvatarFallback,P as AvatarImage,V as BREADCRUMB_ELLIPSIS,F as Badge,r as BranchIcon,H as Breadcrumb,G as Button,hn as CHIP_TONES,ln as CHIP_TO_STATUS,i as CheckIcon,be as Checkbox,a as ChevronDownIcon,o as ChevronRightIcon,s as ChevronUpIcon,c as CloseIcon,Se as CodeEditor,Ce as Collapsible,we as CollapsibleContent,Te as CollapsibleTrigger,Re as CommandDialog,ze as CommandEmpty,Be as CommandFooter,Ve as CommandGroup,He as CommandGroupLabel,Ue as CommandHeader,We as CommandInput,Ge as CommandItem,Ke as CommandItemLabel,qe as CommandList,gn as DOT_TONES,q as Dialog,J as DialogBody,Y as DialogClose,X as DialogContent,Z as DialogDescription,Q as DialogFooter,$ as DialogHeader,ee as DialogTitle,te as DialogTrigger,re as Dot,ae as DropdownMenu,oe as DropdownMenuCheckboxItem,se as DropdownMenuContent,ce as DropdownMenuGroup,le as DropdownMenuItem,ue as DropdownMenuLabel,de as DropdownMenuRadioGroup,fe as DropdownMenuRadioItem,pe as DropdownMenuSeparator,me as DropdownMenuShortcut,he as DropdownMenuSub,ge as DropdownMenuSubContent,_e as DropdownMenuSubTrigger,ve as DropdownMenuTrigger,l as EditIcon,Je as EmptyState,u as EnterIcon,d as ExternalLinkIcon,f as FileIcon,p as GearIcon,Ee as Input,Ye as Kbd,m as KebabIcon,un as LINE_TONE_TO_STATUS,Xe as Label,h as LoaderIcon,Oe as MAX_DIGIT_SHORTCUT,pn as MEDIA_KINDS,_n as MESSAGE_LINE_TONES,Ze as Markdown,$e as MediaPreview,g as MessageIcon,rt as MessageItem,it as MessageItemBody,at as MessageItemHeader,ot as MessageItemStatus,pt as MessageLines,_ as MicIcon,Ut as NavTab,Wt as NavTabBadge,Me as OptionLabel,Ne as OptionList,Pe as OptionRow,v as PaletteIcon,ht as Panel,gt as PanelBody,_t as PanelHeader,y as PlusIcon,vt as Popover,yt as PopoverAnchor,bt as PopoverClose,xt as PopoverContent,St as PopoverFooter,Ct as PopoverHeader,wt as PopoverTrigger,Tt as Progress,Et as RadioGroup,Dt as RadioGroupCard,Ot as RadioGroupItem,b as RefreshIcon,et as STATUS_EDGE,st as STATUS_GLYPH,ct as STATUS_LABEL,vn as STATUS_TONES,dn as STATUS_TO_CHIP,fn as STATUS_TO_DOT,kt as ScrollArea,At as ScrollBar,x as SearchIcon,jt as SectionLabel,Mt as Select,Nt as SelectContent,Pt as SelectGroup,Ft as SelectItem,It as SelectLabel,Lt as SelectSeparator,Rt as SelectTrigger,zt as SelectValue,S as SendIcon,Bt as Separator,C as ShieldIcon,xe as Skeleton,W as Spinner,tt as StatusBadge,w as StopIcon,Vt as StreamCursor,Ht as Switch,Gt as Tabs,Kt as TabsContent,qt as TabsList,Jt as TabsTrigger,Zt as Textarea,Qt as Toast,$t as ToastAction,en as ToastClose,tn as ToastDescription,nn as ToastProvider,rn as ToastTitle,an as ToastViewport,L as Tooltip,R as TooltipContent,z as TooltipProvider,B as TooltipTrigger,T as TrashIcon,E as VolumeIcon,I as badgeVariants,U as breadcrumbSegments,K as buttonVariants,D as cn,sn as collapseLines,ne as dialogFooterVariants,ie as dotVariants,ye as dropdownMenuItemVariants,De as fieldVariants,cn as grammarKeyOf,ke as handleOptionListKey,Qe as mediaKindOf,lt as messageItemStatusVariants,ut as messageItemVariants,mt as messageLineVariants,Ae as optionListHint,Fe as optionListVariants,je as optionMarker,Ie as optionMarkerVariants,Le as optionRowVariants,nt as statusBadgeVariants,Yt as tabBadgeVariants,Xt as tabVariants,on as toastVariants,dt as toolTone,ft as useMessageItem};
|
|
1
|
+
import{ActivityIcon as e,AlertIcon as t,AudioLinesIcon as n,BookmarkPlusIcon as r,BranchIcon as i,CheckIcon as a,ChevronDownIcon as o,ChevronRightIcon as s,ChevronUpIcon as c,CloseIcon as l,CopyIcon as u,EditIcon as d,EnterIcon as f,ExternalLinkIcon as p,FileIcon as m,ForkIcon as h,GearIcon as g,KebabIcon as _,LoaderIcon as v,MessageIcon as y,MicIcon as b,PaletteIcon as x,PlusIcon as S,QuoteIcon as C,RefreshIcon as w,RewindIcon as T,SearchIcon as E,SendIcon as D,ShieldIcon as O,StopIcon as k,TrashIcon as A,UserIcon as j,VolumeIcon as M}from"./src/icons/icons.mjs";import{cn as N}from"./src/lib/cn.mjs";import{Accordion as P,AccordionContent as F,AccordionItem as I,AccordionTrigger as L}from"./src/components/Accordion.mjs";import{ansiSpans as R}from"./src/lib/ansiSpans.mjs";import{AnsiLine as z,AnsiText as B}from"./src/components/AnsiText.mjs";import{Avatar as V,AvatarFallback as H,AvatarImage as U}from"./src/components/Avatar.mjs";import{Badge as W,badgeVariants as G}from"./src/components/Badge.mjs";import{Tooltip as K,TooltipContent as q,TooltipProvider as J,TooltipTrigger as Y}from"./src/components/Tooltip.mjs";import{BREADCRUMB_ELLIPSIS as X,Breadcrumb as Z,breadcrumbSegments as Q}from"./src/components/Breadcrumb.mjs";import{Spinner as $}from"./src/components/Spinner.mjs";import{Button as ee,buttonVariants as te}from"./src/components/Button.mjs";import{Dialog as ne,DialogBody as re,DialogClose as ie,DialogContent as ae,DialogDescription as oe,DialogFooter as se,DialogHeader as ce,DialogTitle as le,DialogTrigger as ue,dialogFooterVariants as de}from"./src/components/Dialog.mjs";import{Dot as fe,dotVariants as pe}from"./src/components/Dot.mjs";import{DropdownMenu as me,DropdownMenuCheckboxItem as he,DropdownMenuContent as ge,DropdownMenuGroup as _e,DropdownMenuItem as ve,DropdownMenuLabel as ye,DropdownMenuRadioGroup as be,DropdownMenuRadioItem as xe,DropdownMenuSeparator as Se,DropdownMenuShortcut as Ce,DropdownMenuSub as we,DropdownMenuSubContent as Te,DropdownMenuSubTrigger as Ee,DropdownMenuTrigger as De,dropdownMenuItemVariants as Oe}from"./src/components/DropdownMenu.mjs";import{Checkbox as ke}from"./src/components/Checkbox.mjs";import{Skeleton as Ae}from"./src/components/Skeleton.mjs";import{CodeEditor as je}from"./src/components/CodeEditor.mjs";import{Collapsible as Me,CollapsibleContent as Ne,CollapsibleTrigger as Pe}from"./src/components/Collapsible.mjs";import{Input as Fe,fieldVariants as Ie}from"./src/components/Input.mjs";import{MAX_DIGIT_SHORTCUT as Le,handleOptionListKey as Re,optionListHint as ze,optionMarker as Be}from"./src/lib/optionList.mjs";import{OptionLabel as Ve,OptionList as He,OptionRow as Ue,optionListVariants as We,optionMarkerVariants as Ge,optionRowVariants as Ke}from"./src/components/OptionList.mjs";import{CommandDialog as qe,CommandEmpty as Je,CommandFooter as Ye,CommandGroup as Xe,CommandGroupLabel as Ze,CommandHeader as Qe,CommandInput as $e,CommandItem as et,CommandItemLabel as tt,CommandList as nt}from"./src/components/Command.mjs";import{EmptyState as rt}from"./src/components/EmptyState.mjs";import{hashlineGroups as it,hashlineGroupsKey as at}from"./src/lib/hashlineHighlight.mjs";import{grammarKeyOf as ot}from"./src/lib/editorLanguage.mjs";import{detectGrammar as st,highlightToLines as ct,syntaxStyleOf as lt}from"./src/lib/syntaxHighlight.mjs";import{SyntaxLine as ut,SyntaxText as dt,useSyntaxLines as ft}from"./src/components/SyntaxText.mjs";import{HashlineLines as pt}from"./src/components/HashlineLines.mjs";import{Kbd as mt}from"./src/components/Kbd.mjs";import{Label as ht}from"./src/components/Label.mjs";import{Markdown as gt}from"./src/components/Markdown.mjs";import{mediaKindOf as _t}from"./src/lib/media.mjs";import{PdfPreview as vt,resolvePdfViewportRegion as yt}from"./src/components/PdfPreview.mjs";import{MediaPreview as bt}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as xt,StatusBadge as St,statusBadgeVariants as Ct}from"./src/components/StatusBadge.mjs";import{MessageItem as wt,MessageItemBody as Tt,MessageItemGroup as Et,MessageItemHeader as Dt,MessageItemStatus as Ot,STATUS_GLYPH as kt,STATUS_LABEL as At,messageItemRowVariants as jt,messageItemStatusVariants as Mt,messageItemVariants as Nt,toolTone as Pt,useMessageItem as Ft}from"./src/components/MessageItem.mjs";import{MessageLines as It,messageLineVariants as Lt}from"./src/components/MessageLines.mjs";import{Panel as Rt,PanelBody as zt,PanelHeader as Bt}from"./src/components/Panel.mjs";import{Popover as Vt,PopoverAnchor as Ht,PopoverClose as Ut,PopoverContent as Wt,PopoverFooter as Gt,PopoverHeader as Kt,PopoverTrigger as qt}from"./src/components/Popover.mjs";import{Progress as Jt}from"./src/components/Progress.mjs";import{RadioGroup as Yt,RadioGroupCard as Xt,RadioGroupItem as Zt}from"./src/components/RadioGroup.mjs";import{ScrollArea as Qt,ScrollBar as $t}from"./src/components/ScrollArea.mjs";import{SectionLabel as en}from"./src/components/SectionLabel.mjs";import{Select as tn,SelectContent as nn,SelectGroup as rn,SelectItem as an,SelectLabel as on,SelectSeparator as sn,SelectTrigger as cn,SelectValue as ln}from"./src/components/Select.mjs";import{Separator as un}from"./src/components/Separator.mjs";import{Sheet as dn,SheetBody as fn,SheetClose as pn,SheetContent as mn,SheetDescription as hn,SheetFooter as gn,SheetHeader as _n,SheetOverlay as vn,SheetTitle as yn,SheetTrigger as bn}from"./src/components/Sheet.mjs";import{StreamCursor as xn}from"./src/components/StreamCursor.mjs";import{Switch as Sn}from"./src/components/Switch.mjs";import{NavTab as Cn,NavTabBadge as wn,Tabs as Tn,TabsContent as En,TabsList as Dn,TabsTrigger as On,tabBadgeVariants as kn,tabVariants as An}from"./src/components/Tabs.mjs";import{TerminalView as jn}from"./src/components/TerminalView.mjs";import{Textarea as Mn}from"./src/components/Textarea.mjs";import{Toast as Nn,ToastAction as Pn,ToastClose as Fn,ToastDescription as In,ToastProvider as Ln,ToastTitle as Rn,ToastViewport as zn,toastVariants as Bn}from"./src/components/Toast.mjs";import{ToolPathLink as Vn}from"./src/components/ToolPathLink.mjs";import{collapseLines as Hn}from"./src/lib/collapse.mjs";import{GREP_COLLAPSED_LINES as Un,READ_COLLAPSED_LINES as Wn,compactDetails as Gn,hashlineBody as Kn,parseFileHeader as qn,parseTaggedLine as Jn,presentHashlineLines as Yn,resultTextLines as Xn,takeTrailingNotice as Zn}from"./src/lib/hashlineView.mjs";import{CHIP_TO_STATUS as Qn,LINE_TONE_TO_STATUS as $n,STATUS_TO_CHIP as er,STATUS_TO_DOT as tr}from"./src/lib/tone.mjs";import{MEDIA_KINDS as nr}from"./src/types/editor.mjs";import{ACCENT_TONES as rr,CHIP_TONES as ir,DOT_TONES as ar,MESSAGE_LINE_TONES as or,STATUS_TONES as sr}from"./src/types/tone.mjs";export{rr as ACCENT_TONES,P as Accordion,F as AccordionContent,I as AccordionItem,L as AccordionTrigger,e as ActivityIcon,t as AlertIcon,z as AnsiLine,B as AnsiText,n as AudioLinesIcon,V as Avatar,H as AvatarFallback,U as AvatarImage,X as BREADCRUMB_ELLIPSIS,W as Badge,r as BookmarkPlusIcon,i as BranchIcon,Z as Breadcrumb,ee as Button,ir as CHIP_TONES,Qn as CHIP_TO_STATUS,a as CheckIcon,ke as Checkbox,o as ChevronDownIcon,s as ChevronRightIcon,c as ChevronUpIcon,l as CloseIcon,je as CodeEditor,Me as Collapsible,Ne as CollapsibleContent,Pe as CollapsibleTrigger,qe as CommandDialog,Je as CommandEmpty,Ye as CommandFooter,Xe as CommandGroup,Ze as CommandGroupLabel,Qe as CommandHeader,$e as CommandInput,et as CommandItem,tt as CommandItemLabel,nt as CommandList,u as CopyIcon,ar as DOT_TONES,ne as Dialog,re as DialogBody,ie as DialogClose,ae as DialogContent,oe as DialogDescription,se as DialogFooter,ce as DialogHeader,le as DialogTitle,ue as DialogTrigger,fe as Dot,me as DropdownMenu,he as DropdownMenuCheckboxItem,ge as DropdownMenuContent,_e as DropdownMenuGroup,ve as DropdownMenuItem,ye as DropdownMenuLabel,be as DropdownMenuRadioGroup,xe as DropdownMenuRadioItem,Se as DropdownMenuSeparator,Ce as DropdownMenuShortcut,we as DropdownMenuSub,Te as DropdownMenuSubContent,Ee as DropdownMenuSubTrigger,De as DropdownMenuTrigger,d as EditIcon,rt as EmptyState,f as EnterIcon,p as ExternalLinkIcon,m as FileIcon,h as ForkIcon,Un as GREP_COLLAPSED_LINES,g as GearIcon,pt as HashlineLines,Fe as Input,mt as Kbd,_ as KebabIcon,$n as LINE_TONE_TO_STATUS,ht as Label,v as LoaderIcon,Le as MAX_DIGIT_SHORTCUT,nr as MEDIA_KINDS,or as MESSAGE_LINE_TONES,gt as Markdown,bt as MediaPreview,y as MessageIcon,wt as MessageItem,Tt as MessageItemBody,Et as MessageItemGroup,Dt as MessageItemHeader,Ot as MessageItemStatus,It as MessageLines,b as MicIcon,Cn as NavTab,wn as NavTabBadge,Ve as OptionLabel,He as OptionList,Ue as OptionRow,x as PaletteIcon,Rt as Panel,zt as PanelBody,Bt as PanelHeader,vt as PdfPreview,S as PlusIcon,Vt as Popover,Ht as PopoverAnchor,Ut as PopoverClose,Wt as PopoverContent,Gt as PopoverFooter,Kt as PopoverHeader,qt as PopoverTrigger,Jt as Progress,C as QuoteIcon,Wn as READ_COLLAPSED_LINES,Yt as RadioGroup,Xt as RadioGroupCard,Zt as RadioGroupItem,w as RefreshIcon,T as RewindIcon,xt as STATUS_EDGE,kt as STATUS_GLYPH,At as STATUS_LABEL,sr as STATUS_TONES,er as STATUS_TO_CHIP,tr as STATUS_TO_DOT,Qt as ScrollArea,$t as ScrollBar,E as SearchIcon,en as SectionLabel,tn as Select,nn as SelectContent,rn as SelectGroup,an as SelectItem,on as SelectLabel,sn as SelectSeparator,cn as SelectTrigger,ln as SelectValue,D as SendIcon,un as Separator,dn as Sheet,fn as SheetBody,pn as SheetClose,mn as SheetContent,hn as SheetDescription,gn as SheetFooter,_n as SheetHeader,vn as SheetOverlay,yn as SheetTitle,bn as SheetTrigger,O as ShieldIcon,Ae as Skeleton,$ as Spinner,St as StatusBadge,k as StopIcon,xn as StreamCursor,Sn as Switch,ut as SyntaxLine,dt as SyntaxText,Tn as Tabs,En as TabsContent,Dn as TabsList,On as TabsTrigger,jn as TerminalView,Mn as Textarea,Nn as Toast,Pn as ToastAction,Fn as ToastClose,In as ToastDescription,Ln as ToastProvider,Rn as ToastTitle,zn as ToastViewport,Vn as ToolPathLink,K as Tooltip,q as TooltipContent,J as TooltipProvider,Y as TooltipTrigger,A as TrashIcon,j as UserIcon,M as VolumeIcon,R as ansiSpans,G as badgeVariants,Q as breadcrumbSegments,te as buttonVariants,N as cn,Hn as collapseLines,Gn as compactDetails,st as detectGrammar,de as dialogFooterVariants,pe as dotVariants,Oe as dropdownMenuItemVariants,Ie as fieldVariants,ot as grammarKeyOf,Re as handleOptionListKey,Kn as hashlineBody,it as hashlineGroups,at as hashlineGroupsKey,ct as highlightToLines,_t as mediaKindOf,jt as messageItemRowVariants,Mt as messageItemStatusVariants,Nt as messageItemVariants,Lt as messageLineVariants,ze as optionListHint,We as optionListVariants,Be as optionMarker,Ge as optionMarkerVariants,Ke as optionRowVariants,qn as parseFileHeader,Jn as parseTaggedLine,Yn as presentHashlineLines,yt as resolvePdfViewportRegion,Xn as resultTextLines,Ct as statusBadgeVariants,lt as syntaxStyleOf,kn as tabBadgeVariants,An as tabVariants,Zn as takeTrailingNotice,Bn as toastVariants,Pt as toolTone,Ft as useMessageItem,ft as useSyntaxLines};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region src/lib/ansiSpans.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The escapes a captured terminal screen carries, turned into spans.
|
|
4
|
+
*
|
|
5
|
+
* WHY THIS EXISTS:
|
|
6
|
+
* Two kinds of output reach the cockpit with a terminal's colour still in it.
|
|
7
|
+
* A workflow captures a tmux pane with `-e`, and a runner's log file keeps the
|
|
8
|
+
* palette on purpose, stripping only cursor moves and redraws. The browser has
|
|
9
|
+
* no terminal, and the cockpit carries no terminal emulator, so the sequences
|
|
10
|
+
* are read here and rendered as ordinary spans. It lives in the component
|
|
11
|
+
* library because both readers need it and neither may import the other.
|
|
12
|
+
*
|
|
13
|
+
* WHAT IT UNDERSTANDS:
|
|
14
|
+
* SGR (`ESC [ … m`) only: the eight base colours and their bright forms, 256
|
|
15
|
+
* colour and truecolour, and bold, faint, italic, underline and inverse. Every
|
|
16
|
+
* other sequence is dropped rather than printed, because a cursor move or a
|
|
17
|
+
* clear that arrives as visible junk is worse than one that arrives as
|
|
18
|
+
* nothing: the screen is a snapshot, and the next one repaints it anyway.
|
|
19
|
+
*
|
|
20
|
+
* The named colours become theme tokens rather than the child's own palette,
|
|
21
|
+
* so a run's output sits in the cockpit's colours instead of fighting them.
|
|
22
|
+
* Only 256-colour and truecolour, which name a colour no token can stand in
|
|
23
|
+
* for, are rendered as themselves.
|
|
24
|
+
*/
|
|
25
|
+
/** One run of text with the attributes in force when it was printed. */
|
|
26
|
+
export interface AnsiSpan {
|
|
27
|
+
text: string;
|
|
28
|
+
/** Theme class for a named colour, absent when the colour is the default. */
|
|
29
|
+
className?: string;
|
|
30
|
+
/** An exact colour the child asked for, as `rgb(r g b)`; only 256/truecolour set this. */
|
|
31
|
+
color?: string;
|
|
32
|
+
bold?: boolean;
|
|
33
|
+
faint?: boolean;
|
|
34
|
+
italic?: boolean;
|
|
35
|
+
underline?: boolean;
|
|
36
|
+
/** Foreground and background swapped, which a TUI uses for selection and cursors. */
|
|
37
|
+
inverse?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/** One line of captured screen as spans, with every unreadable sequence dropped. */
|
|
40
|
+
export declare function ansiSpans(line: string): AnsiSpan[];
|
|
41
|
+
//#endregion
|
|
42
|
+
//# sourceMappingURL=ansiSpans.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansiSpans.d.cts","names":[],"sources":["../../src/lib/ansiSpans.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;iBAyBiB;EACf;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;;;wBAqLc,UAAU,eAAe"}
|
package/dist/lib/cn.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from "clsx";
|
|
2
2
|
//#region src/lib/cn.d.ts
|
|
3
3
|
/** Merges class lists the shadcn way: conditional joins, then Tailwind conflict resolution. */
|
|
4
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
4
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
5
5
|
//#endregion
|
|
6
|
-
export { cn };
|
|
7
6
|
//# sourceMappingURL=cn.d.cts.map
|
package/dist/lib/cn.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cn.d.cts","names":[],"sources":["../../src/lib/cn.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"cn.d.cts","names":[],"sources":["../../src/lib/cn.ts"],"mappings":";;;wBAIgB,MAAM,QAAQ"}
|
package/dist/lib/collapse.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/lib/collapse.d.ts
|
|
2
|
-
interface CollapsedLines<T> {
|
|
2
|
+
export interface CollapsedLines<T> {
|
|
3
3
|
shown: T[];
|
|
4
4
|
/** How many lines the collapse holds back; 0 once expanded or when nothing was clipped. */
|
|
5
5
|
hidden: number;
|
|
@@ -9,7 +9,6 @@ interface CollapsedLines<T> {
|
|
|
9
9
|
* shows the tail (a running command) keeps its own slice and reports the
|
|
10
10
|
* count it hid.
|
|
11
11
|
*/
|
|
12
|
-
declare function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T>;
|
|
12
|
+
export declare function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T>;
|
|
13
13
|
//#endregion
|
|
14
|
-
export { CollapsedLines, collapseLines };
|
|
15
14
|
//# sourceMappingURL=collapse.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapse.d.cts","names":[],"sources":["../../src/lib/collapse.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"collapse.d.cts","names":[],"sources":["../../src/lib/collapse.ts"],"mappings":";iBAAiB,eAAe;EAC9B,OAAO;;EAEP;;;;;;;wBAQc,cAAc,GAAG,gBAAgB,KAAK,eAAe,oBAAoB,eAAe"}
|
|
@@ -10,13 +10,12 @@ import "@codemirror/state";
|
|
|
10
10
|
* either a type, which erases, or inside an `import()` the bundler splits into
|
|
11
11
|
* its own chunk.
|
|
12
12
|
*/
|
|
13
|
-
type GrammarKey = 'javascript' | 'jsx' | 'typescript' | 'tsx' | 'json' | 'markdown' | 'html' | 'css' | 'python' | 'yaml' | 'shell' | 'toml' | 'dockerfile';
|
|
13
|
+
export type GrammarKey = 'javascript' | 'jsx' | 'typescript' | 'tsx' | 'json' | 'markdown' | 'html' | 'css' | 'python' | 'yaml' | 'shell' | 'toml' | 'dockerfile';
|
|
14
14
|
/**
|
|
15
15
|
* The grammar for a path, or undefined for a file the editor shows as plain
|
|
16
16
|
* text. A name is tried whole before it is tried as a suffix, so
|
|
17
17
|
* `Dockerfile.dev` is a Dockerfile and not a file with a `dev` extension.
|
|
18
18
|
*/
|
|
19
|
-
declare function grammarKeyOf(filePath: string): GrammarKey | undefined;
|
|
19
|
+
export declare function grammarKeyOf(filePath: string): GrammarKey | undefined;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { GrammarKey, grammarKeyOf };
|
|
22
21
|
//# sourceMappingURL=editorLanguage.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editorLanguage.d.cts","names":[],"sources":["../../src/lib/editorLanguage.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"editorLanguage.d.cts","names":[],"sources":["../../src/lib/editorLanguage.ts"],"mappings":";;;;;;;;;;;;YAcY;;;;;;wBA6DI,aAAa,mBAAmB"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//#region src/lib/editorTheme.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The syntax colours, named by what they mark rather than by tag, so the
|
|
4
|
+
* pairing with Lezer's tags stays next to the editor that imports them and
|
|
5
|
+
* this table can be read as a palette.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DOOM_SYNTAX_STYLES: {
|
|
8
|
+
readonly comment: {
|
|
9
|
+
readonly color: 'var(--doom-faint)';
|
|
10
|
+
readonly fontStyle: 'italic';
|
|
11
|
+
};
|
|
12
|
+
readonly keyword: {
|
|
13
|
+
readonly color: 'var(--doom-magenta)';
|
|
14
|
+
};
|
|
15
|
+
readonly constant: {
|
|
16
|
+
readonly color: 'var(--doom-violet)';
|
|
17
|
+
};
|
|
18
|
+
readonly literal: {
|
|
19
|
+
readonly color: 'var(--doom-orange)';
|
|
20
|
+
};
|
|
21
|
+
readonly string: {
|
|
22
|
+
readonly color: 'var(--doom-green)';
|
|
23
|
+
};
|
|
24
|
+
readonly regexp: {
|
|
25
|
+
readonly color: 'var(--doom-teal)';
|
|
26
|
+
};
|
|
27
|
+
readonly operator: {
|
|
28
|
+
readonly color: 'var(--doom-blue)';
|
|
29
|
+
};
|
|
30
|
+
readonly punctuation: {
|
|
31
|
+
readonly color: 'var(--doom-dim)';
|
|
32
|
+
};
|
|
33
|
+
readonly variable: {
|
|
34
|
+
readonly color: 'var(--doom-text)';
|
|
35
|
+
};
|
|
36
|
+
readonly property: {
|
|
37
|
+
readonly color: 'var(--doom-cyan)';
|
|
38
|
+
};
|
|
39
|
+
readonly callable: {
|
|
40
|
+
readonly color: 'var(--doom-blue)';
|
|
41
|
+
};
|
|
42
|
+
readonly type: {
|
|
43
|
+
readonly color: 'var(--doom-yellow)';
|
|
44
|
+
};
|
|
45
|
+
readonly tag: {
|
|
46
|
+
readonly color: 'var(--doom-red)';
|
|
47
|
+
};
|
|
48
|
+
readonly attribute: {
|
|
49
|
+
readonly color: 'var(--doom-yellow)';
|
|
50
|
+
};
|
|
51
|
+
readonly meta: {
|
|
52
|
+
readonly color: 'var(--doom-faint)';
|
|
53
|
+
};
|
|
54
|
+
readonly heading: {
|
|
55
|
+
readonly color: 'var(--doom-hi)';
|
|
56
|
+
readonly fontWeight: 'bold';
|
|
57
|
+
};
|
|
58
|
+
readonly link: {
|
|
59
|
+
readonly color: 'var(--doom-cyan)';
|
|
60
|
+
readonly textDecoration: 'underline';
|
|
61
|
+
};
|
|
62
|
+
readonly emphasis: {
|
|
63
|
+
readonly fontStyle: 'italic';
|
|
64
|
+
};
|
|
65
|
+
readonly strong: {
|
|
66
|
+
readonly fontWeight: 'bold';
|
|
67
|
+
};
|
|
68
|
+
readonly strikethrough: {
|
|
69
|
+
readonly textDecoration: 'line-through';
|
|
70
|
+
};
|
|
71
|
+
readonly invalid: {
|
|
72
|
+
readonly color: 'var(--doom-red)';
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
//# sourceMappingURL=editorTheme.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorTheme.d.cts","names":[],"sources":["../../src/lib/editorTheme.ts"],"mappings":";;;;;;qBA0Ga;WACX;aAAW;aAA4B;;WACvC;aAAW;;WACX;aAAY;;WACZ;aAAW;;WACX;aAAU;;WACV;aAAU;;WACV;aAAY;;WACZ;aAAe;;WACf;aAAY;;WACZ;aAAY;;WACZ;aAAY;;WACZ;aAAQ;;WACR;aAAO;;WACP;aAAa;;WACb;aAAQ;;WACR;aAAW;aAAyB;;WACpC;aAAQ;aAA2B;;WACnC;aAAY;;WACZ;aAAU;;WACV;aAAiB;;WACjB;aAAW"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PresentedLine } from "./hashlineView.cjs";
|
|
2
|
+
//#region src/lib/hashlineHighlight.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Grouping for highlighted hashline bodies.
|
|
5
|
+
*
|
|
6
|
+
* A read result is one file and a grep result is many, so the lines a card
|
|
7
|
+
* shows have to be cut into runs that belong to the same file before any of
|
|
8
|
+
* them can be parsed. A run is parsed whole because a string or a comment
|
|
9
|
+
* spans lines, and grep's gaps between context blocks are accepted: an excerpt
|
|
10
|
+
* is not the file, and colouring it as if it were is close enough to be worth
|
|
11
|
+
* far more than colouring nothing.
|
|
12
|
+
*/
|
|
13
|
+
export interface HashlineGroup {
|
|
14
|
+
/** The file the run came from, when the body named one. */
|
|
15
|
+
readonly path: string | undefined;
|
|
16
|
+
/** Indices into the presented lines, in order, that this run covers. */
|
|
17
|
+
readonly indices: readonly number[];
|
|
18
|
+
/** The run's content, newline-joined, ready to parse. */
|
|
19
|
+
readonly text: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Consecutive anchored lines, cut at every file heading and at anything that
|
|
23
|
+
* is not code. `fallbackPath` names the file for a body that never states one,
|
|
24
|
+
* which is how a read result arrives.
|
|
25
|
+
*/
|
|
26
|
+
export declare function hashlineGroups(lines: readonly PresentedLine[], fallbackPath: string | undefined): readonly HashlineGroup[];
|
|
27
|
+
/** One string that changes whenever the groups would highlight differently. */
|
|
28
|
+
export declare function hashlineGroupsKey(groups: readonly HashlineGroup[]): string;
|
|
29
|
+
//#endregion
|
|
30
|
+
//# sourceMappingURL=hashlineHighlight.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hashlineHighlight.d.cts","names":[],"sources":["../../src/lib/hashlineHighlight.ts"],"mappings":";;;;;;;;;;;;iBAaiB;;WAEN;;WAEA;;WAEA;;;;;;;wBAQK,eACd,gBAAgB,iBAChB,4CACU;;wBA2BI,kBAAkB,iBAAiB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
//#region src/lib/hashlineView.d.ts
|
|
2
|
+
export declare const READ_COLLAPSED_LINES = 10;
|
|
3
|
+
export declare const GREP_COLLAPSED_LINES = 15;
|
|
4
|
+
export type HashlineResultKind = 'read' | 'grep';
|
|
5
|
+
export type TaggedLineMarker = 'match' | 'context';
|
|
6
|
+
/**
|
|
7
|
+
* The part of a tool result this parser reads.
|
|
8
|
+
*
|
|
9
|
+
* Named structurally rather than imported: the component library sits below
|
|
10
|
+
* the web contract and must not depend on it, so it states the shape it needs
|
|
11
|
+
* and any `ToolResultView` satisfies it.
|
|
12
|
+
*/
|
|
13
|
+
export interface HashlineResult {
|
|
14
|
+
readonly content: readonly unknown[];
|
|
15
|
+
}
|
|
16
|
+
export interface TaggedLine {
|
|
17
|
+
readonly line: number;
|
|
18
|
+
readonly content: string;
|
|
19
|
+
readonly marker: TaggedLineMarker | undefined;
|
|
20
|
+
}
|
|
21
|
+
export type PresentedLine = {
|
|
22
|
+
readonly type: 'file';
|
|
23
|
+
readonly path: string;
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: 'tagged';
|
|
26
|
+
readonly value: TaggedLine;
|
|
27
|
+
} | {
|
|
28
|
+
readonly type: 'plain';
|
|
29
|
+
readonly text: string;
|
|
30
|
+
};
|
|
31
|
+
export interface HashlineBody {
|
|
32
|
+
readonly shown: readonly PresentedLine[];
|
|
33
|
+
/** Lines the collapsed view holds back; zero once expanded. */
|
|
34
|
+
readonly hidden: number;
|
|
35
|
+
/** The bracketed pagination or compaction note the tool appends after its lines. */
|
|
36
|
+
readonly notice: string | undefined;
|
|
37
|
+
/** Widest line number among the shown anchored lines, in characters. */
|
|
38
|
+
readonly gutter: number;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The result's text as lines: tabs widened, CRLF folded, trailing blanks
|
|
42
|
+
* dropped. A result with no text but an image block reads as the TUI's
|
|
43
|
+
* placeholder. The joined `output` stands in when no result view exists.
|
|
44
|
+
*/
|
|
45
|
+
export declare function resultTextLines(result: HashlineResult | null, output: string): string[];
|
|
46
|
+
/** Detaches the tool's trailing `[...]` note so the body numbers file content only. */
|
|
47
|
+
export declare function takeTrailingNotice(lines: string[]): string | undefined;
|
|
48
|
+
export declare function parseTaggedLine(value: string): TaggedLine | undefined;
|
|
49
|
+
export declare function parseFileHeader(value: string): string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Lines as the card presents them. A read shows one file, so its header is
|
|
52
|
+
* dropped; a grep groups anchored matches under each file's path.
|
|
53
|
+
*/
|
|
54
|
+
export declare function presentHashlineLines(lines: readonly string[], kind: HashlineResultKind): PresentedLine[];
|
|
55
|
+
/** The body a card shows for one result, collapsed to the kind's line budget unless expanded. */
|
|
56
|
+
export declare function hashlineBody(result: HashlineResult | null, output: string, kind: HashlineResultKind, expanded: boolean): HashlineBody;
|
|
57
|
+
/** The `key · key` detail list beside a call's primary argument, with absent values dropped. */
|
|
58
|
+
export declare function compactDetails(values: ReadonlyArray<string | undefined>): string[];
|
|
59
|
+
//#endregion
|
|
60
|
+
//# sourceMappingURL=hashlineView.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hashlineView.d.cts","names":[],"sources":["../../src/lib/hashlineView.ts"],"mappings":";qBAoBa;qBACA;YAED;YACA;;;;;;;;iBASK;WACN;;iBAGM;WACN;WACA;WACA,QAAQ;;YAGP;WACG;WAAuB;;WACvB;WAAyB,OAAO;;WAChC;WAAwB;;iBAEtB;WACN,gBAAgB;;WAEhB;;WAEA;;WAEA;;;;;;;wBAiBK,gBAAgB,QAAQ,uBAAuB;;wBAa/C,mBAAmB;wBAQnB,gBAAgB,gBAAgB;wBAYhC,gBAAgB;;;;;wBAQhB,qBAAqB,0BAA0B,MAAM,qBAAqB;;wBAmB1E,aACd,QAAQ,uBACR,gBACA,MAAM,oBACN,oBACC;;wBAca,eAAe,QAAQ"}
|
package/dist/lib/media.d.cts
CHANGED
|
@@ -6,7 +6,6 @@ import { MediaKind } from "../types/editor.cjs";
|
|
|
6
6
|
* render it, and pretending otherwise costs a converter that loses the
|
|
7
7
|
* formatting it converted.
|
|
8
8
|
*/
|
|
9
|
-
declare function mediaKindOf(filePath: string): MediaKind;
|
|
9
|
+
export declare function mediaKindOf(filePath: string): MediaKind;
|
|
10
10
|
//#endregion
|
|
11
|
-
export { mediaKindOf };
|
|
12
11
|
//# sourceMappingURL=media.d.cts.map
|
package/dist/lib/media.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.cts","names":[],"sources":["../../src/lib/media.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"media.d.cts","names":[],"sources":["../../src/lib/media.ts"],"mappings":";;;;;;;;wBAyCgB,YAAY,mBAAmB"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { KeyboardEvent } from "react";
|
|
2
2
|
//#region src/lib/optionList.d.ts
|
|
3
3
|
/** Digits are a shortcut, not the only way in: only the first nine can have one. */
|
|
4
|
-
declare const MAX_DIGIT_SHORTCUT = 9;
|
|
4
|
+
export declare const MAX_DIGIT_SHORTCUT = 9;
|
|
5
5
|
/**
|
|
6
6
|
* The keyboard an option list answers to, handled on whichever element the
|
|
7
7
|
* surrounding overlay focuses. Every key it claims is consumed, so a digit
|
|
8
8
|
* that answers the agent never also reaches the rail's session shortcuts.
|
|
9
9
|
*/
|
|
10
|
-
declare function handleOptionListKey(event: KeyboardEvent, input: {
|
|
10
|
+
export declare function handleOptionListKey(event: KeyboardEvent, input: {
|
|
11
11
|
options: readonly string[];
|
|
12
12
|
cursor: number;
|
|
13
13
|
onCursorChange: (cursor: number) => void;
|
|
14
14
|
onSelect: (option: string) => void;
|
|
15
15
|
}): void;
|
|
16
16
|
/** What the footer should promise, given how many options there are. */
|
|
17
|
-
declare function optionListHint(count: number): string;
|
|
17
|
+
export declare function optionListHint(count: number): string;
|
|
18
18
|
/** The digit a row answers to, or the bullet that says it has none. */
|
|
19
|
-
declare function optionMarker(index: number): string;
|
|
19
|
+
export declare function optionMarker(index: number): string;
|
|
20
20
|
//#endregion
|
|
21
|
-
export { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker };
|
|
22
21
|
//# sourceMappingURL=optionList.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionList.d.cts","names":[],"sources":["../../src/lib/optionList.ts"],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"optionList.d.cts","names":[],"sources":["../../src/lib/optionList.ts"],"mappings":";;;qBAGa;;;;;;wBAOG,oBACd,OAAO,eACP;EACE;EACA;EACA,iBAAiB;EACjB,WAAW;;;wBA8BC,eAAe;;wBAKf,aAAa"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { GrammarKey } from "./editorLanguage.cjs";
|
|
2
|
+
import { DOOM_SYNTAX_STYLES } from "./editorTheme.cjs";
|
|
3
|
+
import { CSSProperties } from "react";
|
|
4
|
+
//#region src/lib/syntaxHighlight.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Static syntax highlighting for read-only code, the timeline's half of the
|
|
7
|
+
* editor's `syntaxHighlighting`.
|
|
8
|
+
*
|
|
9
|
+
* A tool card shows code it cannot edit, so it needs the colours without the
|
|
10
|
+
* editor: the same grammars `editorLanguage.ts` loads and the same token
|
|
11
|
+
* palette `editorTheme.ts` names, run once over a string and handed back as
|
|
12
|
+
* spans. Everything CodeMirror-shaped is behind a dynamic import, so a session
|
|
13
|
+
* that never opens a code result never downloads a parser, and the caller
|
|
14
|
+
* always has plain text to show first.
|
|
15
|
+
*/
|
|
16
|
+
/** The palette keys a token can land on; the styles themselves are the editor's. */
|
|
17
|
+
export type SyntaxToken = keyof typeof DOOM_SYNTAX_STYLES;
|
|
18
|
+
/** One run of same-styled text inside a line. `token` absent means unstyled. */
|
|
19
|
+
export interface SyntaxSpan {
|
|
20
|
+
text: string;
|
|
21
|
+
token?: SyntaxToken;
|
|
22
|
+
}
|
|
23
|
+
/** Lines of spans, one array per source line, so a gutter can pair with them. */
|
|
24
|
+
export type SyntaxLines = readonly (readonly SyntaxSpan[])[];
|
|
25
|
+
export interface GrammarQuery {
|
|
26
|
+
/** The file the text came from, when the tool knows one. */
|
|
27
|
+
path?: string | undefined;
|
|
28
|
+
/** The text itself, used only when the path settles nothing. */
|
|
29
|
+
text?: string | undefined;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Which grammar to colour a result with.
|
|
33
|
+
*
|
|
34
|
+
* The path decides whenever it can, because a name is evidence and a body is a
|
|
35
|
+
* guess. Sniffing only answers for text that arrived without a usable name: a
|
|
36
|
+
* shebang says what runs the script, and a document that opens and closes with
|
|
37
|
+
* brackets is treated as JSON. Anything else stays plain rather than being
|
|
38
|
+
* coloured as the wrong language.
|
|
39
|
+
*/
|
|
40
|
+
export declare function detectGrammar(query: GrammarQuery): GrammarKey | undefined;
|
|
41
|
+
/** The inline style a token wears. Colours come from the editor palette, which names theme tokens. */
|
|
42
|
+
export declare function syntaxStyleOf(token: SyntaxToken | undefined): CSSProperties | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Colours `text` as `grammar`, as lines of spans.
|
|
45
|
+
*
|
|
46
|
+
* The whole text is parsed at once even though the caller may render it line
|
|
47
|
+
* by line, because a template literal or a block comment only makes sense with
|
|
48
|
+
* its neighbours. Text past the size cap, and a grammar whose extension turns
|
|
49
|
+
* out to carry no parser, come back unhighlighted rather than throwing: colour
|
|
50
|
+
* is decoration, and the caller already has the plain text on screen.
|
|
51
|
+
*/
|
|
52
|
+
export declare function highlightToLines(text: string, grammar: GrammarKey): Promise<SyntaxLines | undefined>;
|
|
53
|
+
//#endregion
|
|
54
|
+
//# sourceMappingURL=syntaxHighlight.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"syntaxHighlight.d.cts","names":[],"sources":["../../src/lib/syntaxHighlight.ts"],"mappings":";;;;;;;;;;;;;;;;YAkBY,2BAA2B;;iBAGtB;EACf;EACA,QAAQ;;;YAIE,iCAAiC;iBAqB5B;;EAEf;;EAEA;;;;;;;;;;;wBAYc,cAAc,OAAO,eAAe;;wBAkBpC,cAAc,OAAO,0BAA0B;;;;;;;;;;wBA4DzC,iBAAiB,cAAc,SAAS,aAAa,QAAQ"}
|
package/dist/lib/tone.d.cts
CHANGED
|
@@ -10,17 +10,16 @@ import { ChipTone, DotTone, MessageLineTone, StatusTone } from "../types/tone.cj
|
|
|
10
10
|
* asks here what colour that reads as.
|
|
11
11
|
*/
|
|
12
12
|
/** The colour a status reads as, for the chip and border families. */
|
|
13
|
-
declare const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>>;
|
|
13
|
+
export declare const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>>;
|
|
14
14
|
/** The dot a status reads as; a neutral status is present but not live. */
|
|
15
|
-
declare const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>>;
|
|
15
|
+
export declare const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>>;
|
|
16
16
|
/**
|
|
17
17
|
* The status a colour stands for, for a caller that has only a chip tone.
|
|
18
18
|
* Lossy on purpose: the palette has more colours than there are outcomes, and
|
|
19
19
|
* a colour with no outcome of its own reads as neutral.
|
|
20
20
|
*/
|
|
21
|
-
declare const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>>;
|
|
21
|
+
export declare const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>>;
|
|
22
22
|
/** The status a body line's role corresponds to, for a card that badges its worst line. */
|
|
23
|
-
declare const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>>;
|
|
23
|
+
export declare const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>>;
|
|
24
24
|
//#endregion
|
|
25
|
-
export { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT };
|
|
26
25
|
//# sourceMappingURL=tone.d.cts.map
|
package/dist/lib/tone.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tone.d.cts","names":[],"sources":["../../src/lib/tone.ts"],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"tone.d.cts","names":[],"sources":["../../src/lib/tone.ts"],"mappings":";;;;;;;;;;;;qBAaa,gBAAgB,SAAS,OAAO,YAAY;;qBAU5C,eAAe,SAAS,OAAO,YAAY;;;;;;qBAc3C,gBAAgB,SAAS,OAAO,UAAU;;qBAc1C,qBAAqB,SAAS,OAAO,iBAAiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
require("../icons/icons.cjs");const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("lucide-react");function i(e){return(0,n.jsx)(t.Accordion.Root,{"data-slot":`accordion`,...e})}function a({className:r,...i}){return(0,n.jsx)(t.Accordion.Item,{"data-slot":`accordion-item`,className:e.cn(`border-b border-doom-border-soft last:border-b-0`,r),...i})}function o({className:i,children:a,...o}){return(0,n.jsx)(t.Accordion.Header,{className:`flex`,children:(0,n.jsxs)(t.Accordion.Trigger,{"data-slot":`accordion-trigger`,className:e.cn(`flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-
|
|
1
|
+
require("../icons/icons.cjs");const e=require("../lib/cn.cjs");let t=require("radix-ui"),n=require("react/jsx-runtime"),r=require("lucide-react");function i(e){return(0,n.jsx)(t.Accordion.Root,{"data-slot":`accordion`,...e})}function a({className:r,...i}){return(0,n.jsx)(t.Accordion.Item,{"data-slot":`accordion-item`,className:e.cn(`border-b border-doom-border-soft last:border-b-0`,r),...i})}function o({className:i,children:a,...o}){return(0,n.jsx)(t.Accordion.Header,{className:`flex`,children:(0,n.jsxs)(t.Accordion.Trigger,{"data-slot":`accordion-trigger`,className:e.cn(`flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-sm text-doom-hi outline-none transition-colors hover:text-doom-blue focus-visible:text-doom-blue [&[data-state=open]>svg]:rotate-180`,i),...o,children:[a,(0,n.jsx)(r.ChevronDown,{className:`h-3 w-3 shrink-0 text-doom-faint transition-transform`})]})})}function s({className:r,...i}){return(0,n.jsx)(t.Accordion.Content,{"data-slot":`accordion-content`,className:e.cn(`overflow-hidden pb-2 text-sm text-doom-dim`,r),...i})}exports.Accordion=i,exports.AccordionContent=s,exports.AccordionItem=a,exports.AccordionTrigger=o;
|
|
2
2
|
//# sourceMappingURL=Accordion.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.cjs","names":["AccordionPrimitive","cn","ChevronDownIcon"],"sources":["../../../src/components/Accordion.tsx"],"sourcesContent":["import { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\nimport { ChevronDownIcon } from '../icons/icons
|
|
1
|
+
{"version":3,"file":"Accordion.cjs","names":["AccordionPrimitive","cn","ChevronDownIcon"],"sources":["../../../src/components/Accordion.tsx"],"sourcesContent":["import { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/** Several collapsibles that know about each other; pass type=\"single\" for one open at a time. */\nexport function Accordion(props: ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />;\n}\n\nexport function AccordionItem({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Item>) {\n return (\n <AccordionPrimitive.Item\n data-slot=\"accordion-item\"\n className={cn('border-b border-doom-border-soft last:border-b-0', className)}\n {...props}\n />\n );\n}\n\nexport function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n 'flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-sm text-doom-hi outline-none transition-colors hover:text-doom-blue focus-visible:text-doom-blue [&[data-state=open]>svg]:rotate-180',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"h-3 w-3 shrink-0 text-doom-faint transition-transform\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n );\n}\n\nexport function AccordionContent({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className={cn('overflow-hidden pb-2 text-sm text-doom-dim', className)}\n {...props}\n />\n );\n}\n"],"mappings":"kJAOA,SAAgB,EAAU,EAAuD,CAC/E,OAAO,EAAA,EAAA,IAAA,CAACA,EAAAA,UAAmB,KAApB,CAAyB,YAAU,YAAY,GAAI,CAAQ,CAAA,CACpE,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAyD,CACrG,OACE,EAAA,EAAA,IAAA,CAACA,EAAAA,UAAmB,KAApB,CACE,YAAU,iBACV,UAAWC,EAAAA,GAAG,mDAAoD,CAAS,EAC3E,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAiB,CAAE,YAAW,WAAU,GAAG,GAA4D,CACrH,OACE,EAAA,EAAA,IAAA,CAACD,EAAAA,UAAmB,OAApB,CAA2B,UAAU,OACnC,UAAA,EAAA,EAAA,KAAA,CAACA,EAAAA,UAAmB,QAApB,CACE,YAAU,oBACV,UAAWC,EAAAA,GACT,yNACA,CACF,EACA,GAAI,EANN,SAAA,CAQG,GACD,EAAA,EAAA,IAAA,CAACC,EAAAA,YAAD,CAAiB,UAAU,uDAAyD,CAAA,CAC1D,GACH,CAAA,CAE/B,CAEA,SAAgB,EAAiB,CAAE,YAAW,GAAG,GAA4D,CAC3G,OACE,EAAA,EAAA,IAAA,CAACF,EAAAA,UAAmB,QAApB,CACE,YAAU,oBACV,UAAWC,EAAAA,GAAG,6CAA8C,CAAS,EACrE,GAAI,CACL,CAAA,CAEL"}
|
|
@@ -2,10 +2,10 @@ import { Accordion } from "radix-ui";
|
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
//#region src/components/Accordion.d.ts
|
|
4
4
|
/** Several collapsibles that know about each other; pass type="single" for one open at a time. */
|
|
5
|
-
declare function Accordion$1(props: ComponentProps<typeof Accordion.Root>): import("react
|
|
6
|
-
declare function AccordionItem({ className, ...props }: ComponentProps<typeof Accordion.Item>): import("react
|
|
7
|
-
declare function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof Accordion.Trigger>): import("react
|
|
8
|
-
declare function AccordionContent({ className, ...props }: ComponentProps<typeof Accordion.Content>): import("react
|
|
5
|
+
declare function Accordion$1(props: ComponentProps<typeof Accordion.Root>): import("react").JSX.Element;
|
|
6
|
+
export declare function AccordionItem({ className, ...props }: ComponentProps<typeof Accordion.Item>): import("react").JSX.Element;
|
|
7
|
+
export declare function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof Accordion.Trigger>): import("react").JSX.Element;
|
|
8
|
+
export declare function AccordionContent({ className, ...props }: ComponentProps<typeof Accordion.Content>): import("react").JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
|
-
export { Accordion$1 as Accordion
|
|
10
|
+
export { Accordion$1 as Accordion };
|
|
11
11
|
//# sourceMappingURL=Accordion.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.d.mts","names":[],"sources":["../../../src/components/Accordion.tsx"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"Accordion.d.mts","names":[],"sources":["../../../src/components/Accordion.tsx"],"mappings":";;;;iBAOgB,YAAU,OAAO,sBAAsB,UAAmB,wBAAK,IAAA;wBAI/D,gBAAgB,cAAc,SAAS,sBAAsB,UAAmB,wBAAK,IAAA;wBAUrF,mBAAmB,WAAW,aAAa,SAAS,sBAAsB,UAAmB,2BAAQ,IAAA;wBAkBrG,mBAAmB,cAAc,SAAS,sBAAsB,UAAmB,2BAAQ,IAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ChevronDownIcon as e}from"../icons/icons.mjs";import{cn as t}from"../lib/cn.mjs";import{Accordion as n}from"radix-ui";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a(e){return r(n.Root,{"data-slot":`accordion`,...e})}function o({className:e,...i}){return r(n.Item,{"data-slot":`accordion-item`,className:t(`border-b border-doom-border-soft last:border-b-0`,e),...i})}function s({className:a,children:o,...s}){return r(n.Header,{className:`flex`,children:i(n.Trigger,{"data-slot":`accordion-trigger`,className:t(`flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-
|
|
1
|
+
import{ChevronDownIcon as e}from"../icons/icons.mjs";import{cn as t}from"../lib/cn.mjs";import{Accordion as n}from"radix-ui";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a(e){return r(n.Root,{"data-slot":`accordion`,...e})}function o({className:e,...i}){return r(n.Item,{"data-slot":`accordion-item`,className:t(`border-b border-doom-border-soft last:border-b-0`,e),...i})}function s({className:a,children:o,...s}){return r(n.Header,{className:`flex`,children:i(n.Trigger,{"data-slot":`accordion-trigger`,className:t(`flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-sm text-doom-hi outline-none transition-colors hover:text-doom-blue focus-visible:text-doom-blue [&[data-state=open]>svg]:rotate-180`,a),...s,children:[o,r(e,{className:`h-3 w-3 shrink-0 text-doom-faint transition-transform`})]})})}function c({className:e,...i}){return r(n.Content,{"data-slot":`accordion-content`,className:t(`overflow-hidden pb-2 text-sm text-doom-dim`,e),...i})}export{a as Accordion,c as AccordionContent,o as AccordionItem,s as AccordionTrigger};
|
|
2
2
|
//# sourceMappingURL=Accordion.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.mjs","names":["Accordion","AccordionPrimitive"],"sources":["../../../src/components/Accordion.tsx"],"sourcesContent":["import { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\nimport { ChevronDownIcon } from '../icons/icons
|
|
1
|
+
{"version":3,"file":"Accordion.mjs","names":["Accordion","AccordionPrimitive"],"sources":["../../../src/components/Accordion.tsx"],"sourcesContent":["import { Accordion as AccordionPrimitive } from 'radix-ui';\nimport type { ComponentProps } from 'react';\n\nimport { ChevronDownIcon } from '../icons/icons';\nimport { cn } from '../lib/cn';\n\n/** Several collapsibles that know about each other; pass type=\"single\" for one open at a time. */\nexport function Accordion(props: ComponentProps<typeof AccordionPrimitive.Root>) {\n return <AccordionPrimitive.Root data-slot=\"accordion\" {...props} />;\n}\n\nexport function AccordionItem({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Item>) {\n return (\n <AccordionPrimitive.Item\n data-slot=\"accordion-item\"\n className={cn('border-b border-doom-border-soft last:border-b-0', className)}\n {...props}\n />\n );\n}\n\nexport function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof AccordionPrimitive.Trigger>) {\n return (\n <AccordionPrimitive.Header className=\"flex\">\n <AccordionPrimitive.Trigger\n data-slot=\"accordion-trigger\"\n className={cn(\n 'flex flex-1 cursor-pointer items-center justify-between gap-2 py-2 text-left text-sm text-doom-hi outline-none transition-colors hover:text-doom-blue focus-visible:text-doom-blue [&[data-state=open]>svg]:rotate-180',\n className,\n )}\n {...props}\n >\n {children}\n <ChevronDownIcon className=\"h-3 w-3 shrink-0 text-doom-faint transition-transform\" />\n </AccordionPrimitive.Trigger>\n </AccordionPrimitive.Header>\n );\n}\n\nexport function AccordionContent({ className, ...props }: ComponentProps<typeof AccordionPrimitive.Content>) {\n return (\n <AccordionPrimitive.Content\n data-slot=\"accordion-content\"\n className={cn('overflow-hidden pb-2 text-sm text-doom-dim', className)}\n {...props}\n />\n );\n}\n"],"mappings":"+KAOA,SAAgBA,EAAU,EAAuD,CAC/E,OAAO,EAACC,EAAmB,KAApB,CAAyB,YAAU,YAAY,GAAI,CAAQ,CAAA,CACpE,CAEA,SAAgB,EAAc,CAAE,YAAW,GAAG,GAAyD,CACrG,OACE,EAACA,EAAmB,KAApB,CACE,YAAU,iBACV,UAAW,EAAG,mDAAoD,CAAS,EAC3E,GAAI,CACL,CAAA,CAEL,CAEA,SAAgB,EAAiB,CAAE,YAAW,WAAU,GAAG,GAA4D,CACrH,OACE,EAACA,EAAmB,OAApB,CAA2B,UAAU,OACnC,SAAA,EAACA,EAAmB,QAApB,CACE,YAAU,oBACV,UAAW,EACT,yNACA,CACF,EACA,GAAI,EANN,SAAA,CAQG,EACD,EAAC,EAAD,CAAiB,UAAU,uDAAyD,CAAA,CAC1D,GACH,CAAA,CAE/B,CAEA,SAAgB,EAAiB,CAAE,YAAW,GAAG,GAA4D,CAC3G,OACE,EAACA,EAAmB,QAApB,CACE,YAAU,oBACV,UAAW,EAAG,6CAA8C,CAAS,EACrE,GAAI,CACL,CAAA,CAEL"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const e=require("../lib/cn.cjs"),t=require("../lib/ansiSpans.cjs");let n=require("react/jsx-runtime"),r=require("react");function i(t){return e.cn(t.className,t.bold===!0&&`font-bold`,t.faint===!0&&`opacity-60`,t.italic===!0&&`italic`,t.underline===!0&&`underline`,t.inverse===!0&&`bg-doom-text text-doom-deep`)}function a({spans:e}){return(0,n.jsx)(n.Fragment,{children:e.map((e,t)=>(0,n.jsx)(`span`,{className:i(e),style:e.color===void 0?void 0:{color:e.color},children:e.text},t))})}function o({line:e,className:i,...o}){let s=(0,r.useMemo)(()=>t.ansiSpans(e),[e]);return(0,n.jsx)(`span`,{"data-slot":`ansi-line`,className:i,...o,children:(0,n.jsx)(a,{spans:s})})}function s({text:e,...i}){let o=(0,r.useMemo)(()=>e.split(`
|
|
2
|
+
`).map(e=>t.ansiSpans(e)),[e]);return(0,n.jsx)(`pre`,{"data-slot":`ansi-text`,...i,children:o.map((e,t)=>(0,n.jsxs)(r.Fragment,{children:[t>0?`
|
|
3
|
+
`:null,(0,n.jsx)(a,{spans:e})]},t))})}exports.AnsiLine=o,exports.AnsiText=s;
|
|
4
|
+
//# sourceMappingURL=AnsiText.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnsiText.cjs","names":["cn","useMemo","ansiSpans","Fragment"],"sources":["../../../src/components/AnsiText.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, useMemo } from 'react';\n\nimport { type AnsiSpan, ansiSpans } from '../lib/ansiSpans';\nimport { cn } from '../lib/cn';\n\n/**\n * Terminal output with the colours it was written in.\n *\n * Both readers of terminal text render it the same way, so the mapping from a\n * span's attributes to classes lives here rather than in each of them: a\n * captured workflow screen is a line at a time, and a runner log is a block.\n * Parsing is synchronous and cheap; text with no escapes in it takes a path\n * that allocates nothing.\n *\n * DESIGN PATTERNS:\n * - Named colours arrive as theme classes from `ansiSpans`; only 256-colour\n * and truecolour, which no token stands for, come through as a style.\n * - One element per line, so wrapping and selection behave as they do in a pre.\n *\n * AVOID:\n * - Carrying attributes across lines. A captured screen and a bounded log tail\n * both start mid-stream.\n */\n\nfunction spanClassName(span: AnsiSpan): string {\n return cn(\n span.className,\n span.bold === true && 'font-bold',\n span.faint === true && 'opacity-60',\n span.italic === true && 'italic',\n span.underline === true && 'underline',\n span.inverse === true && 'bg-doom-text text-doom-deep',\n );\n}\n\nfunction AnsiSpans({ spans }: { spans: readonly AnsiSpan[] }) {\n return (\n <>\n {spans.map((span, index) => (\n <span\n key={index}\n className={spanClassName(span)}\n style={span.color === undefined ? undefined : { color: span.color }}\n >\n {span.text}\n </span>\n ))}\n </>\n );\n}\n\nexport interface AnsiLineProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** One line of terminal output, escapes and all. */\n line: string;\n}\n\n/** One line, for a caller that already lays out a screen row by row. */\nexport function AnsiLine({ line, className, ...props }: AnsiLineProps) {\n const spans = useMemo(() => ansiSpans(line), [line]);\n return (\n <span data-slot=\"ansi-line\" className={className} {...props}>\n <AnsiSpans spans={spans} />\n </span>\n );\n}\n\nexport interface AnsiTextProps extends Omit<ComponentProps<'pre'>, 'children'> {\n /** Terminal output, newline separated, escapes and all. */\n text: string;\n}\n\n/** A block of terminal output: a log tail, or anything else that arrives whole. */\nexport function AnsiText({ text, ...props }: AnsiTextProps) {\n const lines = useMemo(() => text.split('\\n').map((line) => ansiSpans(line)), [text]);\n return (\n <pre data-slot=\"ansi-text\" {...props}>\n {lines.map((spans, index) => (\n <Fragment key={index}>\n {index > 0 ? '\\n' : null}\n <AnsiSpans spans={spans} />\n </Fragment>\n ))}\n </pre>\n );\n}\n"],"mappings":"yHAwBA,SAAS,EAAc,EAAwB,CAC7C,OAAOA,EAAAA,GACL,EAAK,UACL,EAAK,OAAS,IAAQ,YACtB,EAAK,QAAU,IAAQ,aACvB,EAAK,SAAW,IAAQ,SACxB,EAAK,YAAc,IAAQ,YAC3B,EAAK,UAAY,IAAQ,6BAC3B,CACF,CAEA,SAAS,EAAU,CAAE,SAAyC,CAC5D,OACE,EAAA,EAAA,IAAA,CAAA,EAAA,SAAA,CAAA,SACG,EAAM,KAAK,EAAM,KAChB,EAAA,EAAA,IAAA,CAAC,OAAD,CAEE,UAAW,EAAc,CAAI,EAC7B,MAAO,EAAK,QAAU,IAAA,GAAY,IAAA,GAAY,CAAE,MAAO,EAAK,KAAM,EAEjE,SAAA,EAAK,IACF,EALC,CAKD,CACP,CACD,CAAA,CAEN,CAQA,SAAgB,EAAS,CAAE,OAAM,YAAW,GAAG,GAAwB,CACrE,IAAM,GAAA,EAAQC,EAAAA,QAAAA,KAAcC,EAAAA,UAAU,CAAI,EAAG,CAAC,CAAI,CAAC,EACnD,OACE,EAAA,EAAA,IAAA,CAAC,OAAD,CAAM,YAAU,YAAuB,YAAW,GAAI,EACpD,UAAA,EAAA,EAAA,IAAA,CAAC,EAAD,CAAkB,OAAQ,CAAA,CACtB,CAAA,CAEV,CAQA,SAAgB,EAAS,CAAE,OAAM,GAAG,GAAwB,CAC1D,IAAM,GAAA,EAAQD,EAAAA,QAAAA,KAAc,EAAK,MAAM;CAAI,CAAC,CAAC,IAAK,GAASC,EAAAA,UAAU,CAAI,CAAC,EAAG,CAAC,CAAI,CAAC,EACnF,OACE,EAAA,EAAA,IAAA,CAAC,MAAD,CAAK,YAAU,YAAY,GAAI,EAC5B,SAAA,EAAM,KAAK,EAAO,KACjB,EAAA,EAAA,KAAA,CAACC,EAAAA,SAAD,CAAA,SAAA,CACG,EAAQ,EAAI;EAAO,MACpB,EAAA,EAAA,IAAA,CAAC,EAAD,CAAkB,OAAQ,CAAA,CAClB,CAAA,EAHK,CAGL,CACX,CACE,CAAA,CAET"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
//#region src/components/AnsiText.d.ts
|
|
3
|
+
export interface AnsiLineProps extends Omit<ComponentProps<'span'>, 'children'> {
|
|
4
|
+
/** One line of terminal output, escapes and all. */
|
|
5
|
+
line: string;
|
|
6
|
+
}
|
|
7
|
+
/** One line, for a caller that already lays out a screen row by row. */
|
|
8
|
+
export declare function AnsiLine({ line, className, ...props }: AnsiLineProps): import("react").JSX.Element;
|
|
9
|
+
export interface AnsiTextProps extends Omit<ComponentProps<'pre'>, 'children'> {
|
|
10
|
+
/** Terminal output, newline separated, escapes and all. */
|
|
11
|
+
text: string;
|
|
12
|
+
}
|
|
13
|
+
/** A block of terminal output: a log tail, or anything else that arrives whole. */
|
|
14
|
+
export declare function AnsiText({ text, ...props }: AnsiTextProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
//# sourceMappingURL=AnsiText.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnsiText.d.mts","names":[],"sources":["../../../src/components/AnsiText.tsx"],"mappings":";;iBAmDiB,sBAAsB,KAAK;;EAE1C;;;wBAIc,WAAW,MAAM,cAAc,SAAS,gCAAa,IAAA;iBASpD,sBAAsB,KAAK;;EAE1C;;;wBAIc,WAAW,SAAS,SAAS,gCAAa,IAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import{cn as e}from"../lib/cn.mjs";import{ansiSpans as t}from"../lib/ansiSpans.mjs";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import{Fragment as a,useMemo as o}from"react";function s(t){return e(t.className,t.bold===!0&&`font-bold`,t.faint===!0&&`opacity-60`,t.italic===!0&&`italic`,t.underline===!0&&`underline`,t.inverse===!0&&`bg-doom-text text-doom-deep`)}function c({spans:e}){return r(n,{children:e.map((e,t)=>r(`span`,{className:s(e),style:e.color===void 0?void 0:{color:e.color},children:e.text},t))})}function l({line:e,className:n,...i}){let a=o(()=>t(e),[e]);return r(`span`,{"data-slot":`ansi-line`,className:n,...i,children:r(c,{spans:a})})}function u({text:e,...n}){let s=o(()=>e.split(`
|
|
2
|
+
`).map(e=>t(e)),[e]);return r(`pre`,{"data-slot":`ansi-text`,...n,children:s.map((e,t)=>i(a,{children:[t>0?`
|
|
3
|
+
`:null,r(c,{spans:e})]},t))})}export{l as AnsiLine,u as AnsiText};
|
|
4
|
+
//# sourceMappingURL=AnsiText.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnsiText.mjs","names":["Fragment"],"sources":["../../../src/components/AnsiText.tsx"],"sourcesContent":["import { type ComponentProps, Fragment, useMemo } from 'react';\n\nimport { type AnsiSpan, ansiSpans } from '../lib/ansiSpans';\nimport { cn } from '../lib/cn';\n\n/**\n * Terminal output with the colours it was written in.\n *\n * Both readers of terminal text render it the same way, so the mapping from a\n * span's attributes to classes lives here rather than in each of them: a\n * captured workflow screen is a line at a time, and a runner log is a block.\n * Parsing is synchronous and cheap; text with no escapes in it takes a path\n * that allocates nothing.\n *\n * DESIGN PATTERNS:\n * - Named colours arrive as theme classes from `ansiSpans`; only 256-colour\n * and truecolour, which no token stands for, come through as a style.\n * - One element per line, so wrapping and selection behave as they do in a pre.\n *\n * AVOID:\n * - Carrying attributes across lines. A captured screen and a bounded log tail\n * both start mid-stream.\n */\n\nfunction spanClassName(span: AnsiSpan): string {\n return cn(\n span.className,\n span.bold === true && 'font-bold',\n span.faint === true && 'opacity-60',\n span.italic === true && 'italic',\n span.underline === true && 'underline',\n span.inverse === true && 'bg-doom-text text-doom-deep',\n );\n}\n\nfunction AnsiSpans({ spans }: { spans: readonly AnsiSpan[] }) {\n return (\n <>\n {spans.map((span, index) => (\n <span\n key={index}\n className={spanClassName(span)}\n style={span.color === undefined ? undefined : { color: span.color }}\n >\n {span.text}\n </span>\n ))}\n </>\n );\n}\n\nexport interface AnsiLineProps extends Omit<ComponentProps<'span'>, 'children'> {\n /** One line of terminal output, escapes and all. */\n line: string;\n}\n\n/** One line, for a caller that already lays out a screen row by row. */\nexport function AnsiLine({ line, className, ...props }: AnsiLineProps) {\n const spans = useMemo(() => ansiSpans(line), [line]);\n return (\n <span data-slot=\"ansi-line\" className={className} {...props}>\n <AnsiSpans spans={spans} />\n </span>\n );\n}\n\nexport interface AnsiTextProps extends Omit<ComponentProps<'pre'>, 'children'> {\n /** Terminal output, newline separated, escapes and all. */\n text: string;\n}\n\n/** A block of terminal output: a log tail, or anything else that arrives whole. */\nexport function AnsiText({ text, ...props }: AnsiTextProps) {\n const lines = useMemo(() => text.split('\\n').map((line) => ansiSpans(line)), [text]);\n return (\n <pre data-slot=\"ansi-text\" {...props}>\n {lines.map((spans, index) => (\n <Fragment key={index}>\n {index > 0 ? '\\n' : null}\n <AnsiSpans spans={spans} />\n </Fragment>\n ))}\n </pre>\n );\n}\n"],"mappings":"kMAwBA,SAAS,EAAc,EAAwB,CAC7C,OAAO,EACL,EAAK,UACL,EAAK,OAAS,IAAQ,YACtB,EAAK,QAAU,IAAQ,aACvB,EAAK,SAAW,IAAQ,SACxB,EAAK,YAAc,IAAQ,YAC3B,EAAK,UAAY,IAAQ,6BAC3B,CACF,CAEA,SAAS,EAAU,CAAE,SAAyC,CAC5D,OACE,EAAA,EAAA,CAAA,SACG,EAAM,KAAK,EAAM,IAChB,EAAC,OAAD,CAEE,UAAW,EAAc,CAAI,EAC7B,MAAO,EAAK,QAAU,IAAA,GAAY,IAAA,GAAY,CAAE,MAAO,EAAK,KAAM,EAEjE,SAAA,EAAK,IACF,EALC,CAKD,CACP,CACD,CAAA,CAEN,CAQA,SAAgB,EAAS,CAAE,OAAM,YAAW,GAAG,GAAwB,CACrE,IAAM,EAAQ,MAAc,EAAU,CAAI,EAAG,CAAC,CAAI,CAAC,EACnD,OACE,EAAC,OAAD,CAAM,YAAU,YAAuB,YAAW,GAAI,EACpD,SAAA,EAAC,EAAD,CAAkB,OAAQ,CAAA,CACtB,CAAA,CAEV,CAQA,SAAgB,EAAS,CAAE,OAAM,GAAG,GAAwB,CAC1D,IAAM,EAAQ,MAAc,EAAK,MAAM;CAAI,CAAC,CAAC,IAAK,GAAS,EAAU,CAAI,CAAC,EAAG,CAAC,CAAI,CAAC,EACnF,OACE,EAAC,MAAD,CAAK,YAAU,YAAY,GAAI,EAC5B,SAAA,EAAM,KAAK,EAAO,IACjB,EAACA,EAAD,CAAA,SAAA,CACG,EAAQ,EAAI;EAAO,KACpB,EAAC,EAAD,CAAkB,OAAQ,CAAA,CAClB,CAAA,EAHK,CAGL,CACX,CACE,CAAA,CAET"}
|