@agimon-ai/doompi-web-components 0.0.1-alpha.37 → 0.0.1-alpha.39
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 +2 -1
- package/dist/index.mjs +1 -1
- package/dist/src/components/Accordion.cjs +1 -1
- package/dist/src/components/Accordion.cjs.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 +3 -3
- package/dist/src/components/AnsiText.cjs.map +1 -1
- package/dist/src/components/AnsiText.mjs +3 -3
- package/dist/src/components/AnsiText.mjs.map +1 -1
- package/dist/src/components/Avatar.cjs +1 -1
- package/dist/src/components/Avatar.cjs.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.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.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.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.mjs +1 -1
- package/dist/src/components/Checkbox.mjs.map +1 -1
- package/dist/src/components/CodeBlock.cjs +1 -1
- package/dist/src/components/CodeBlock.cjs.map +1 -1
- package/dist/src/components/CodeBlock.mjs +1 -1
- package/dist/src/components/CodeBlock.mjs.map +1 -1
- package/dist/src/components/CodeEditor.cjs +1 -1
- package/dist/src/components/CodeEditor.cjs.map +1 -1
- package/dist/src/components/CodeEditor.mjs +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 +1 -1
- package/dist/src/components/Collapsible.cjs.map +1 -1
- package/dist/src/components/Collapsible.mjs +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.mjs +1 -1
- package/dist/src/components/Command.mjs.map +1 -1
- package/dist/src/components/CopyButton.cjs +1 -1
- package/dist/src/components/CopyButton.cjs.map +1 -1
- package/dist/src/components/CopyButton.mjs +1 -1
- package/dist/src/components/CopyButton.mjs.map +1 -1
- package/dist/src/components/Dialog.cjs +1 -1
- package/dist/src/components/Dialog.cjs.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 +1 -1
- package/dist/src/components/Dot.cjs.map +1 -1
- package/dist/src/components/Dot.mjs +1 -1
- package/dist/src/components/Dot.mjs.map +1 -1
- package/dist/src/components/Drawer.cjs +2 -0
- package/dist/src/components/Drawer.cjs.map +1 -0
- package/dist/src/components/Drawer.d.mts +17 -0
- package/dist/src/components/Drawer.d.mts.map +1 -0
- package/dist/src/components/Drawer.mjs +2 -0
- package/dist/src/components/Drawer.mjs.map +1 -0
- package/dist/src/components/DropdownMenu.cjs +1 -1
- package/dist/src/components/DropdownMenu.cjs.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.mjs +1 -1
- package/dist/src/components/EmptyState.mjs.map +1 -1
- package/dist/src/components/HashlineLines.cjs +1 -1
- package/dist/src/components/HashlineLines.cjs.map +1 -1
- package/dist/src/components/HashlineLines.mjs +1 -1
- package/dist/src/components/HashlineLines.mjs.map +1 -1
- package/dist/src/components/Input.cjs +1 -1
- package/dist/src/components/Input.cjs.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.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.mjs +1 -1
- package/dist/src/components/Label.mjs.map +1 -1
- package/dist/src/components/Markdown.cjs +1 -1
- package/dist/src/components/Markdown.cjs.map +1 -1
- package/dist/src/components/Markdown.mjs +1 -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.mjs +1 -1
- package/dist/src/components/MediaPreview.mjs.map +1 -1
- package/dist/src/components/MermaidDiagram.cjs +1 -1
- package/dist/src/components/MermaidDiagram.cjs.map +1 -1
- package/dist/src/components/MermaidDiagram.mjs +1 -1
- package/dist/src/components/MermaidDiagram.mjs.map +1 -1
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.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 +1 -1
- package/dist/src/components/MessageLines.cjs.map +1 -1
- package/dist/src/components/MessageLines.mjs +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.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.mjs +1 -1
- package/dist/src/components/Panel.mjs.map +1 -1
- package/dist/src/components/PdfPreview.cjs +1 -1
- package/dist/src/components/PdfPreview.cjs.map +1 -1
- package/dist/src/components/PdfPreview.mjs +1 -1
- package/dist/src/components/PdfPreview.mjs.map +1 -1
- package/dist/src/components/Popover.cjs +1 -1
- package/dist/src/components/Popover.cjs.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 +1 -1
- package/dist/src/components/Progress.cjs.map +1 -1
- package/dist/src/components/Progress.mjs +1 -1
- package/dist/src/components/Progress.mjs.map +1 -1
- package/dist/src/components/RadioGroup.cjs +1 -1
- package/dist/src/components/RadioGroup.cjs.map +1 -1
- package/dist/src/components/RadioGroup.mjs +1 -1
- package/dist/src/components/RadioGroup.mjs.map +1 -1
- package/dist/src/components/ScrollArea.cjs +1 -1
- package/dist/src/components/ScrollArea.cjs.map +1 -1
- package/dist/src/components/ScrollArea.mjs +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.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.mjs +1 -1
- package/dist/src/components/Select.mjs.map +1 -1
- package/dist/src/components/Separator.cjs +1 -1
- package/dist/src/components/Separator.cjs.map +1 -1
- package/dist/src/components/Separator.mjs +1 -1
- package/dist/src/components/Separator.mjs.map +1 -1
- package/dist/src/components/Sheet.cjs +1 -1
- package/dist/src/components/Sheet.cjs.map +1 -1
- package/dist/src/components/Sheet.mjs +1 -1
- package/dist/src/components/Sheet.mjs.map +1 -1
- package/dist/src/components/Skeleton.cjs +1 -1
- package/dist/src/components/Skeleton.cjs.map +1 -1
- package/dist/src/components/Skeleton.mjs +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.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.mjs +1 -1
- package/dist/src/components/StatusBadge.mjs.map +1 -1
- package/dist/src/components/StreamCursor.cjs +1 -1
- package/dist/src/components/StreamCursor.cjs.map +1 -1
- package/dist/src/components/StreamCursor.mjs +1 -1
- package/dist/src/components/StreamCursor.mjs.map +1 -1
- package/dist/src/components/Switch.cjs +1 -1
- package/dist/src/components/Switch.cjs.map +1 -1
- package/dist/src/components/Switch.mjs +1 -1
- package/dist/src/components/Switch.mjs.map +1 -1
- package/dist/src/components/SyntaxText.cjs +3 -3
- package/dist/src/components/SyntaxText.cjs.map +1 -1
- package/dist/src/components/SyntaxText.mjs +3 -3
- package/dist/src/components/SyntaxText.mjs.map +1 -1
- package/dist/src/components/Tabs.cjs +1 -1
- package/dist/src/components/Tabs.cjs.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 +1 -1
- package/dist/src/components/TerminalView.cjs.map +1 -1
- package/dist/src/components/TerminalView.mjs +1 -1
- package/dist/src/components/TerminalView.mjs.map +1 -1
- package/dist/src/components/Textarea.cjs +1 -1
- package/dist/src/components/Textarea.cjs.map +1 -1
- package/dist/src/components/Textarea.mjs +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.mjs +1 -1
- package/dist/src/components/Toast.mjs.map +1 -1
- package/dist/src/components/ToolPathLink.cjs +1 -1
- package/dist/src/components/ToolPathLink.cjs.map +1 -1
- package/dist/src/components/ToolPathLink.mjs +1 -1
- package/dist/src/components/ToolPathLink.mjs.map +1 -1
- package/dist/src/components/Tooltip.cjs +1 -1
- package/dist/src/components/Tooltip.cjs.map +1 -1
- package/dist/src/components/Tooltip.mjs +1 -1
- package/dist/src/components/Tooltip.mjs.map +1 -1
- package/package.json +11 -11
- package/dist/components/Accordion.d.cts +0 -11
- package/dist/components/Accordion.d.cts.map +0 -1
- package/dist/components/AnsiText.d.cts +0 -16
- package/dist/components/AnsiText.d.cts.map +0 -1
- package/dist/components/Avatar.d.cts +0 -10
- package/dist/components/Avatar.d.cts.map +0 -1
- package/dist/components/Badge.d.cts +0 -17
- package/dist/components/Badge.d.cts.map +0 -1
- package/dist/components/Breadcrumb.d.cts +0 -36
- package/dist/components/Breadcrumb.d.cts.map +0 -1
- package/dist/components/Button.d.cts +0 -24
- package/dist/components/Button.d.cts.map +0 -1
- package/dist/components/Checkbox.d.cts +0 -8
- package/dist/components/Checkbox.d.cts.map +0 -1
- package/dist/components/CodeEditor.d.cts +0 -5
- package/dist/components/CodeEditor.d.cts.map +0 -1
- package/dist/components/Collapsible.d.cts +0 -10
- package/dist/components/Collapsible.d.cts.map +0 -1
- package/dist/components/Command.d.cts +0 -41
- package/dist/components/Command.d.cts.map +0 -1
- package/dist/components/Dialog.d.cts +0 -39
- package/dist/components/Dialog.d.cts.map +0 -1
- package/dist/components/Dot.d.cts +0 -15
- package/dist/components/Dot.d.cts.map +0 -1
- package/dist/components/DropdownMenu.d.cts +0 -34
- package/dist/components/DropdownMenu.d.cts.map +0 -1
- package/dist/components/EmptyState.d.cts +0 -17
- package/dist/components/EmptyState.d.cts.map +0 -1
- package/dist/components/HashlineLines.d.cts +0 -23
- package/dist/components/HashlineLines.d.cts.map +0 -1
- package/dist/components/Input.d.cts +0 -19
- package/dist/components/Input.d.cts.map +0 -1
- package/dist/components/Kbd.d.cts +0 -6
- package/dist/components/Kbd.d.cts.map +0 -1
- package/dist/components/Label.d.cts +0 -8
- package/dist/components/Label.d.cts.map +0 -1
- package/dist/components/Markdown.d.cts +0 -17
- package/dist/components/Markdown.d.cts.map +0 -1
- package/dist/components/MediaPreview.d.cts +0 -61
- package/dist/components/MediaPreview.d.cts.map +0 -1
- package/dist/components/MessageItem.d.cts +0 -102
- package/dist/components/MessageItem.d.cts.map +0 -1
- package/dist/components/MessageLines.d.cts +0 -23
- package/dist/components/MessageLines.d.cts.map +0 -1
- package/dist/components/OptionList.d.cts +0 -49
- package/dist/components/OptionList.d.cts.map +0 -1
- package/dist/components/Panel.d.cts +0 -14
- package/dist/components/Panel.d.cts.map +0 -1
- package/dist/components/PdfPreview.d.cts +0 -52
- package/dist/components/PdfPreview.d.cts.map +0 -1
- package/dist/components/Popover.d.cts +0 -19
- package/dist/components/Popover.d.cts.map +0 -1
- package/dist/components/Progress.d.cts +0 -8
- package/dist/components/Progress.d.cts.map +0 -1
- package/dist/components/RadioGroup.d.cts +0 -15
- package/dist/components/RadioGroup.d.cts.map +0 -1
- package/dist/components/ScrollArea.d.cts +0 -13
- package/dist/components/ScrollArea.d.cts.map +0 -1
- package/dist/components/SectionLabel.d.cts +0 -6
- package/dist/components/SectionLabel.d.cts.map +0 -1
- package/dist/components/Select.d.cts +0 -19
- package/dist/components/Select.d.cts.map +0 -1
- package/dist/components/Separator.d.cts +0 -13
- package/dist/components/Separator.d.cts.map +0 -1
- package/dist/components/Sheet.d.cts +0 -35
- package/dist/components/Sheet.d.cts.map +0 -1
- package/dist/components/Skeleton.d.cts +0 -10
- package/dist/components/Skeleton.d.cts.map +0 -1
- package/dist/components/Spinner.d.cts +0 -14
- package/dist/components/Spinner.d.cts.map +0 -1
- package/dist/components/StatusBadge.d.cts +0 -23
- package/dist/components/StatusBadge.d.cts.map +0 -1
- package/dist/components/StreamCursor.d.cts +0 -6
- package/dist/components/StreamCursor.d.cts.map +0 -1
- package/dist/components/Switch.d.cts +0 -8
- package/dist/components/Switch.d.cts.map +0 -1
- package/dist/components/SyntaxText.d.cts +0 -50
- package/dist/components/SyntaxText.d.cts.map +0 -1
- package/dist/components/Tabs.d.cts +0 -36
- package/dist/components/Tabs.d.cts.map +0 -1
- package/dist/components/TerminalView.d.cts +0 -31
- package/dist/components/TerminalView.d.cts.map +0 -1
- package/dist/components/Textarea.d.cts +0 -9
- package/dist/components/Textarea.d.cts.map +0 -1
- package/dist/components/Toast.d.cts +0 -24
- package/dist/components/Toast.d.cts.map +0 -1
- package/dist/components/ToolPathLink.d.cts +0 -22
- package/dist/components/ToolPathLink.d.cts.map +0 -1
- package/dist/components/Tooltip.d.cts +0 -11
- package/dist/components/Tooltip.d.cts.map +0 -1
- package/dist/icons/icons.d.cts +0 -2
- package/dist/index.d.cts +0 -59
- package/dist/lib/ansiSpans.d.cts +0 -42
- package/dist/lib/ansiSpans.d.cts.map +0 -1
- package/dist/lib/cn.d.cts +0 -6
- package/dist/lib/cn.d.cts.map +0 -1
- package/dist/lib/collapse.d.cts +0 -14
- package/dist/lib/collapse.d.cts.map +0 -1
- package/dist/lib/editorLanguage.d.cts +0 -21
- package/dist/lib/editorLanguage.d.cts.map +0 -1
- package/dist/lib/editorTheme.d.cts +0 -76
- package/dist/lib/editorTheme.d.cts.map +0 -1
- package/dist/lib/hashlineHighlight.d.cts +0 -30
- package/dist/lib/hashlineHighlight.d.cts.map +0 -1
- package/dist/lib/hashlineView.d.cts +0 -60
- package/dist/lib/hashlineView.d.cts.map +0 -1
- package/dist/lib/media.d.cts +0 -11
- package/dist/lib/media.d.cts.map +0 -1
- package/dist/lib/optionList.d.cts +0 -21
- package/dist/lib/optionList.d.cts.map +0 -1
- package/dist/lib/syntaxHighlight.d.cts +0 -54
- package/dist/lib/syntaxHighlight.d.cts.map +0 -1
- package/dist/lib/tone.d.cts +0 -25
- package/dist/lib/tone.d.cts.map +0 -1
- package/dist/theme/apply.d.cts +0 -25
- package/dist/theme/apply.d.cts.map +0 -1
- package/dist/theme/builtinThemes.d.cts +0 -11
- package/dist/theme/builtinThemes.d.cts.map +0 -1
- package/dist/theme/derive.d.cts +0 -14
- package/dist/theme/derive.d.cts.map +0 -1
- package/dist/theme/parse.d.cts +0 -10
- package/dist/theme/parse.d.cts.map +0 -1
- package/dist/theme/piTheme.d.cts +0 -19
- package/dist/theme/piTheme.d.cts.map +0 -1
- package/dist/theme/preference.d.cts +0 -15
- package/dist/theme/preference.d.cts.map +0 -1
- package/dist/theme.d.cts +0 -8
- package/dist/types/editor.d.cts +0 -78
- package/dist/types/editor.d.cts.map +0 -1
- package/dist/types/theme.d.cts +0 -38
- package/dist/types/theme.d.cts.map +0 -1
- package/dist/types/tone.d.cts +0 -28
- package/dist/types/tone.d.cts.map +0 -1
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from "react";
|
|
2
|
-
//#region src/components/TerminalView.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* A terminal emulator, for output that is a screen rather than a document.
|
|
5
|
-
*
|
|
6
|
-
* `AnsiText` beside it renders colour in text that happens to carry escapes.
|
|
7
|
-
* This is the other thing: a full VT emulator that keeps a cursor, a grid and
|
|
8
|
-
* an alternate screen, so a prompt, a progress bar or a full-screen program
|
|
9
|
-
* behaves the way it would in a shell. Give it the bytes a pty produced and it
|
|
10
|
-
* draws them; take its `onData` and you have what the reader typed.
|
|
11
|
-
*
|
|
12
|
-
* The emulator is loaded on mount rather than with the bundle. It is not a
|
|
13
|
-
* small dependency, and most surfaces never show a terminal.
|
|
14
|
-
*/
|
|
15
|
-
export interface TerminalHandle {
|
|
16
|
-
/** Writes pane bytes, escapes and all. */
|
|
17
|
-
write(data: Uint8Array | string): void;
|
|
18
|
-
/** Clears the screen and scrollback, for a stream that restarted. */
|
|
19
|
-
reset(): void;
|
|
20
|
-
}
|
|
21
|
-
export interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {
|
|
22
|
-
/** What the reader typed, already encoded the way a terminal sends it. */
|
|
23
|
-
onData?: (text: string) => void;
|
|
24
|
-
/** Called once the emulator is live, so a caller can start feeding it. */
|
|
25
|
-
onReady?: () => void;
|
|
26
|
-
ref?: React.Ref<TerminalHandle>;
|
|
27
|
-
fontSize?: number;
|
|
28
|
-
}
|
|
29
|
-
export declare function TerminalView({ onData, onReady, ref, fontSize, className, ...props }: TerminalViewProps): import("react").JSX.Element;
|
|
30
|
-
//#endregion
|
|
31
|
-
//# sourceMappingURL=TerminalView.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TerminalView.d.cts","names":[],"sources":["../../src/components/TerminalView.tsx"],"mappings":";;;;;;;;;;;;;;iBAkBiB;;EAEf,MAAM,MAAM;;EAEZ;;iBAGe,0BAA0B,KAAK;;EAE9C,UAAU;;EAEV;EACA,MAAM,MAAM,IAAI;EAChB;;wBAWc,eACd,QACA,SACA,KACA,UACA,cACG,SACF,oCAAiB,IAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { fieldVariants } from "./Input.cjs";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
|
-
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
//#region src/components/Textarea.d.ts
|
|
5
|
-
export interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}
|
|
6
|
-
/** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */
|
|
7
|
-
export declare function Textarea({ className, variant, size, ...props }: TextareaProps): import("react").JSX.Element;
|
|
8
|
-
//#endregion
|
|
9
|
-
//# sourceMappingURL=Textarea.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.d.cts","names":[],"sources":["../../src/components/Textarea.tsx"],"mappings":";;;;iBAMiB,sBAAsB,KAAK,qCAAqC,oBAAoB;;wBAGrF,WAAW,WAAW,SAAS,SAAS,SAAS,gCAAa,IAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Toast } from "radix-ui";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
|
-
import { VariantProps } from "class-variance-authority";
|
|
4
|
-
//#region src/components/Toast.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* A transient notice. Radix owns the part that is easy to get wrong: it
|
|
7
|
-
* announces through a live region, pauses its timer on hover and on window
|
|
8
|
-
* blur, and restores focus when it leaves. Mount one ToastProvider and one
|
|
9
|
-
* ToastViewport per page.
|
|
10
|
-
*/
|
|
11
|
-
export declare function ToastProvider(props: ComponentProps<typeof Toast.Provider>): import("react").JSX.Element;
|
|
12
|
-
export declare function ToastViewport({ className, ...props }: ComponentProps<typeof Toast.Viewport>): import("react").JSX.Element;
|
|
13
|
-
export declare const toastVariants: (props?: ({
|
|
14
|
-
tone?: "accent" | "error" | "info" | "neutral" | "ok" | "running" | null | undefined;
|
|
15
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
-
export interface ToastProps extends ComponentProps<typeof Toast.Root>, VariantProps<typeof toastVariants> {}
|
|
17
|
-
declare function Toast$1({ className, tone, ...props }: ToastProps): import("react").JSX.Element;
|
|
18
|
-
export declare function ToastTitle({ className, ...props }: ComponentProps<typeof Toast.Title>): import("react").JSX.Element;
|
|
19
|
-
export declare function ToastDescription({ className, ...props }: ComponentProps<typeof Toast.Description>): import("react").JSX.Element;
|
|
20
|
-
export declare function ToastAction(props: ComponentProps<typeof Toast.Action>): import("react").JSX.Element;
|
|
21
|
-
export declare function ToastClose({ className, ...props }: ComponentProps<typeof Toast.Close>): import("react").JSX.Element;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Toast$1 as Toast };
|
|
24
|
-
//# sourceMappingURL=Toast.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.d.cts","names":[],"sources":["../../src/components/Toast.tsx"],"mappings":";;;;;;;;;;wBAcgB,cAAc,OAAO,sBAAsB,MAAe,4BAAS,IAAA;wBAInE,gBAAgB,cAAc,SAAS,sBAAsB,MAAe,4BAAS,IAAA;qBAUxF,gBAAa;;6CAezB;iBAEgB,mBAAmB,sBAAsB,MAAe,OAAO,oBAAoB;iBAEpF,UAAQ,WAAW,SAAS,SAAS,6BAAU,IAAA;wBAI/C,aAAa,cAAc,SAAS,sBAAsB,MAAe,yBAAM,IAAA;wBAU/E,mBAAmB,cAAc,SAAS,sBAAsB,MAAe,+BAAY,IAAA;wBAU3F,YAAY,OAAO,sBAAsB,MAAe,0BAAO,IAAA;wBAI/D,aAAa,cAAc,SAAS,sBAAsB,MAAe,yBAAM,IAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region src/components/ToolPathLink.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* The file path in a tool call's header, as a link when something can open it.
|
|
4
|
-
*
|
|
5
|
-
* A read, a write and an edit all put a path in the same place, and a reader
|
|
6
|
-
* who wants to see that file should not have to go looking for it in a file
|
|
7
|
-
* list. Whether the path can be opened is not this component's business: the
|
|
8
|
-
* host resolves it against whatever plugin owns files, and hands the answer
|
|
9
|
-
* down as `onOpen`. Without one the path stays exactly what it was, plain
|
|
10
|
-
* text, because a link that opens nothing is worse than no link.
|
|
11
|
-
*/
|
|
12
|
-
export interface ToolPathLinkProps {
|
|
13
|
-
path: string;
|
|
14
|
-
/** Opens the file; omitted when nothing installed can show it. */
|
|
15
|
-
onOpen?: () => void;
|
|
16
|
-
className?: string;
|
|
17
|
-
/** Defaults to `tool-path`, which is how a test finds the link inside a call header. */
|
|
18
|
-
'data-testid'?: string;
|
|
19
|
-
}
|
|
20
|
-
export declare function ToolPathLink({ path, onOpen, className, 'data-testid': testId, ...props }: ToolPathLinkProps): import("react").JSX.Element;
|
|
21
|
-
//#endregion
|
|
22
|
-
//# sourceMappingURL=ToolPathLink.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToolPathLink.d.cts","names":[],"sources":["../../src/components/ToolPathLink.tsx"],"mappings":";;;;;;;;;;;iBAaiB;EACf;;EAEA;EACA;;EAEA;;wBAGc,eACd,MACA,QACA,0BACe,WACZ,SACF,oCAAiB,IAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Tooltip } from "radix-ui";
|
|
2
|
-
import { ComponentProps } from "react";
|
|
3
|
-
//#region src/components/Tooltip.d.ts
|
|
4
|
-
/** Mount once near the root; every Tooltip below shares its delay. */
|
|
5
|
-
export declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip.Provider>): import("react").JSX.Element;
|
|
6
|
-
declare function Tooltip$1(props: ComponentProps<typeof Tooltip.Root>): import("react").JSX.Element;
|
|
7
|
-
export declare function TooltipTrigger(props: ComponentProps<typeof Tooltip.Trigger>): import("react").JSX.Element;
|
|
8
|
-
export declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip.Content>): import("react").JSX.Element;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Tooltip$1 as Tooltip };
|
|
11
|
-
//# sourceMappingURL=Tooltip.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip.d.cts","names":[],"sources":["../../src/components/Tooltip.tsx"],"mappings":";;;;wBAMgB,kBAAkB,kBAAwB,SAAS,sBAAsB,QAAiB,4BAAS,IAAA;iBAInG,UAAQ,OAAO,sBAAsB,QAAiB,wBAAK,IAAA;wBAI3D,eAAe,OAAO,sBAAsB,QAAiB,2BAAQ,IAAA;wBAIrE,iBACd,WACA,YACA,aACG,SACF,sBAAsB,QAAiB,2BAAQ,IAAA"}
|
package/dist/icons/icons.d.cts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { Activity as ActivityIcon, AudioLines as AudioLinesIcon, BookmarkPlus as BookmarkPlusIcon, Check as CheckIcon, ChevronDown as ChevronDownIcon, ChevronRight as ChevronRightIcon, ChevronUp as ChevronUpIcon, CircleAlert as AlertIcon, Copy as CopyIcon, CornerDownLeft as EnterIcon, ExternalLink as ExternalLinkIcon, FileText as FileIcon, GitBranch as BranchIcon, GitFork as ForkIcon, Loader2 as LoaderIcon, MessageCircle as MessageIcon, Mic as MicIcon, MoreVertical as KebabIcon, Palette as PaletteIcon, Pencil as EditIcon, Plus as PlusIcon, Quote as QuoteIcon, RefreshCw as RefreshIcon, Rewind as RewindIcon, Search as SearchIcon, Send as SendIcon, Settings as GearIcon, ShieldCheck as ShieldIcon, Square as StopIcon, Trash2 as TrashIcon, UserRound as UserIcon, Volume2 as VolumeIcon, X as CloseIcon } from "lucide-react";
|
|
2
|
-
export { ActivityIcon, AlertIcon, AudioLinesIcon, BookmarkPlusIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, ForkIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, QuoteIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, UserIcon, VolumeIcon };
|
package/dist/index.d.cts
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/Accordion.cjs";
|
|
2
|
-
import { AnsiLine, AnsiLineProps, AnsiText, AnsiTextProps } from "./components/AnsiText.cjs";
|
|
3
|
-
import { Avatar, AvatarFallback, AvatarImage } from "./components/Avatar.cjs";
|
|
4
|
-
import { ACCENT_TONES, AccentTone, CHIP_TONES, ChipTone, DOT_TONES, MESSAGE_LINE_TONES, STATUS_TONES } from "./types/tone.cjs";
|
|
5
|
-
import { Badge, BadgeProps, BadgeTone, badgeVariants } from "./components/Badge.cjs";
|
|
6
|
-
import { BREADCRUMB_ELLIPSIS, Breadcrumb, BreadcrumbProps, breadcrumbSegments } from "./components/Breadcrumb.cjs";
|
|
7
|
-
import { Button, ButtonProps, ButtonSize, ButtonVariant, buttonVariants } from "./components/Button.cjs";
|
|
8
|
-
import { Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogTitle, DialogTrigger, dialogFooterVariants } from "./components/Dialog.cjs";
|
|
9
|
-
import { Dot, DotProps, DotTone, dotVariants } from "./components/Dot.cjs";
|
|
10
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, dropdownMenuItemVariants } from "./components/DropdownMenu.cjs";
|
|
11
|
-
import { Checkbox } from "./components/Checkbox.cjs";
|
|
12
|
-
import { CodeEditorController, CodeEditorProps, EditorEdit, EditorMarkedRange, EditorSelectionRange, EditorTextRange, EditorViewportRectangle, MEDIA_KINDS, MediaKind } from "./types/editor.cjs";
|
|
13
|
-
import { CodeEditor } from "./components/CodeEditor.cjs";
|
|
14
|
-
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./components/Collapsible.cjs";
|
|
15
|
-
import { FieldSize, FieldVariant, Input, InputProps, fieldVariants } from "./components/Input.cjs";
|
|
16
|
-
import { OptionLabel, OptionList, OptionListProps, OptionRow, OptionRowProps, optionListVariants, optionMarkerVariants, optionRowVariants } from "./components/OptionList.cjs";
|
|
17
|
-
import { CommandDialog, CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList } from "./components/Command.cjs";
|
|
18
|
-
import { EmptyState, EmptyStateProps } from "./components/EmptyState.cjs";
|
|
19
|
-
import { GREP_COLLAPSED_LINES, HashlineBody, HashlineResult, HashlineResultKind, PresentedLine, READ_COLLAPSED_LINES, TaggedLine, TaggedLineMarker, compactDetails, hashlineBody, parseFileHeader, parseTaggedLine, presentHashlineLines, resultTextLines, takeTrailingNotice } from "./lib/hashlineView.cjs";
|
|
20
|
-
import { HashlineLines, HashlineLinesProps } from "./components/HashlineLines.cjs";
|
|
21
|
-
import { Kbd } from "./components/Kbd.cjs";
|
|
22
|
-
import { Label } from "./components/Label.cjs";
|
|
23
|
-
import { Markdown } from "./components/Markdown.cjs";
|
|
24
|
-
import { PdfNormalizedRectangle, PdfPageRegion, PdfPageState, PdfPreview, PdfPreviewController, PdfPreviewProps, resolvePdfViewportRegion } from "./components/PdfPreview.cjs";
|
|
25
|
-
import { MediaFrameCapture, MediaFrameMetadata, MediaIntrinsicSize, MediaPlaybackState, MediaPreview, MediaPreviewController, MediaPreviewProps } from "./components/MediaPreview.cjs";
|
|
26
|
-
import { STATUS_EDGE, StatusBadge, StatusBadgeProps, StatusTone, statusBadgeVariants } from "./components/StatusBadge.cjs";
|
|
27
|
-
import { MessageItem, MessageItemBody, MessageItemGroup, MessageItemGroupProps, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./components/MessageItem.cjs";
|
|
28
|
-
import { MessageLine, MessageLineTone, MessageLines, MessageLinesProps, messageLineVariants } from "./components/MessageLines.cjs";
|
|
29
|
-
import { Panel, PanelBody, PanelHeader, PanelProps } from "./components/Panel.cjs";
|
|
30
|
-
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger } from "./components/Popover.cjs";
|
|
31
|
-
import { Progress } from "./components/Progress.cjs";
|
|
32
|
-
import { RadioGroup, RadioGroupCard, RadioGroupItem } from "./components/RadioGroup.cjs";
|
|
33
|
-
import { ScrollArea, ScrollBar } from "./components/ScrollArea.cjs";
|
|
34
|
-
import { SectionLabel } from "./components/SectionLabel.cjs";
|
|
35
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "./components/Select.cjs";
|
|
36
|
-
import { Separator } from "./components/Separator.cjs";
|
|
37
|
-
import { Sheet, SheetBody, SheetClose, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger } from "./components/Sheet.cjs";
|
|
38
|
-
import { Skeleton } from "./components/Skeleton.cjs";
|
|
39
|
-
import { Spinner, SpinnerProps } from "./components/Spinner.cjs";
|
|
40
|
-
import { StreamCursor } from "./components/StreamCursor.cjs";
|
|
41
|
-
import { Switch } from "./components/Switch.cjs";
|
|
42
|
-
import { GrammarKey, grammarKeyOf } from "./lib/editorLanguage.cjs";
|
|
43
|
-
import { GrammarQuery, SyntaxLines, SyntaxSpan, SyntaxToken, detectGrammar, highlightToLines, syntaxStyleOf } from "./lib/syntaxHighlight.cjs";
|
|
44
|
-
import { SyntaxLine, SyntaxLineProps, SyntaxQuery, SyntaxText, SyntaxTextProps, useSyntaxLines } from "./components/SyntaxText.cjs";
|
|
45
|
-
import { NavTab, NavTabBadge, NavTabProps, Tabs, TabsContent, TabsList, TabsTrigger, tabBadgeVariants, tabVariants } from "./components/Tabs.cjs";
|
|
46
|
-
import { TerminalHandle, TerminalView, TerminalViewProps } from "./components/TerminalView.cjs";
|
|
47
|
-
import { Textarea, TextareaProps } from "./components/Textarea.cjs";
|
|
48
|
-
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./components/Toast.cjs";
|
|
49
|
-
import { ToolPathLink, ToolPathLinkProps } from "./components/ToolPathLink.cjs";
|
|
50
|
-
import { ActivityIcon, AlertIcon, AudioLinesIcon, BookmarkPlusIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, ForkIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, QuoteIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, UserIcon, VolumeIcon } from "./icons/icons.cjs";
|
|
51
|
-
import { AnsiSpan, ansiSpans } from "./lib/ansiSpans.cjs";
|
|
52
|
-
import { cn } from "./lib/cn.cjs";
|
|
53
|
-
import { CollapsedLines, collapseLines } from "./lib/collapse.cjs";
|
|
54
|
-
import { HashlineGroup, hashlineGroups, hashlineGroupsKey } from "./lib/hashlineHighlight.cjs";
|
|
55
|
-
import { mediaKindOf } from "./lib/media.cjs";
|
|
56
|
-
import { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker } from "./lib/optionList.cjs";
|
|
57
|
-
import { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT } from "./lib/tone.cjs";
|
|
58
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/Tooltip.cjs";
|
|
59
|
-
export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AlertIcon, AnsiLine, type AnsiLineProps, type AnsiSpan, AnsiText, type AnsiTextProps, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Badge, type BadgeProps, type BadgeTone, BookmarkPlusIcon, BranchIcon, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHIP_TONES, CHIP_TO_STATUS, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, type ChipTone, CloseIcon, CodeEditor, type CodeEditorController, type CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, CopyIcon, DOT_TONES, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogTitle, DialogTrigger, Dot, type DotProps, type DotTone, 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 EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, ForkIcon, GREP_COLLAPSED_LINES, GearIcon, type GrammarKey, type GrammarQuery, type HashlineBody, type HashlineGroup, HashlineLines, type HashlineLinesProps, type HashlineResult, type HashlineResultKind, Input, type InputProps, Kbd, KebabIcon, LINE_TONE_TO_STATUS, Label, LoaderIcon, MAX_DIGIT_SHORTCUT, MEDIA_KINDS, MESSAGE_LINE_TONES, Markdown, type MediaFrameCapture, type MediaFrameMetadata, type MediaIntrinsicSize, type MediaKind, type MediaPlaybackState, MediaPreview, type MediaPreviewController, type MediaPreviewProps, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, type MessageItemHeaderProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, type MessageLine, type MessageLineTone, MessageLines, type MessageLinesProps, MicIcon, NavTab, NavTabBadge, type NavTabProps, OptionLabel, OptionList, type OptionListProps, OptionRow, type OptionRowProps, PaletteIcon, Panel, PanelBody, PanelHeader, type PanelProps, type PdfNormalizedRectangle, type PdfPageRegion, type PdfPageState, PdfPreview, type PdfPreviewController, type PdfPreviewProps, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, QuoteIcon, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, 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, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger, ShieldIcon, Skeleton, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusTone, 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, type TerminalHandle, TerminalView, type TerminalViewProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, UserIcon, VolumeIcon, ansiSpans, badgeVariants, breadcrumbSegments, buttonVariants, cn, collapseLines, compactDetails, detectGrammar, dialogFooterVariants, dotVariants, dropdownMenuItemVariants, fieldVariants, grammarKeyOf, handleOptionListKey, hashlineBody, hashlineGroups, hashlineGroupsKey, highlightToLines, mediaKindOf, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, messageLineVariants, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseTaggedLine, presentHashlineLines, resolvePdfViewportRegion, resultTextLines, statusBadgeVariants, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem, useSyntaxLines };
|
package/dist/lib/ansiSpans.d.cts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ClassValue } from "clsx";
|
|
2
|
-
//#region src/lib/cn.d.ts
|
|
3
|
-
/** Merges class lists the shadcn way: conditional joins, then Tailwind conflict resolution. */
|
|
4
|
-
export declare function cn(...inputs: ClassValue[]): string;
|
|
5
|
-
//#endregion
|
|
6
|
-
//# sourceMappingURL=cn.d.cts.map
|
package/dist/lib/cn.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cn.d.cts","names":[],"sources":["../../src/lib/cn.ts"],"mappings":";;;wBAIgB,MAAM,QAAQ"}
|
package/dist/lib/collapse.d.cts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/lib/collapse.d.ts
|
|
2
|
-
export interface CollapsedLines<T> {
|
|
3
|
-
shown: T[];
|
|
4
|
-
/** How many lines the collapse holds back; 0 once expanded or when nothing was clipped. */
|
|
5
|
-
hidden: number;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* The first `limit` lines until expanded. Head-only on purpose: a card that
|
|
9
|
-
* shows the tail (a running command) keeps its own slice and reports the
|
|
10
|
-
* count it hid.
|
|
11
|
-
*/
|
|
12
|
-
export declare function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T>;
|
|
13
|
-
//#endregion
|
|
14
|
-
//# sourceMappingURL=collapse.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "@codemirror/state";
|
|
2
|
-
//#region src/lib/editorLanguage.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Which grammar a file gets, and how it arrives.
|
|
5
|
-
*
|
|
6
|
-
* The two halves are apart on purpose. Naming the grammar is a pure lookup a
|
|
7
|
-
* caller can run before deciding anything, and loading it is a dynamic import
|
|
8
|
-
* so a session that only ever opens Markdown never downloads the JavaScript
|
|
9
|
-
* parser. Nothing here imports CodeMirror at runtime: every specifier below is
|
|
10
|
-
* either a type, which erases, or inside an `import()` the bundler splits into
|
|
11
|
-
* its own chunk.
|
|
12
|
-
*/
|
|
13
|
-
export type GrammarKey = 'javascript' | 'jsx' | 'typescript' | 'tsx' | 'json' | 'markdown' | 'html' | 'css' | 'python' | 'yaml' | 'shell' | 'toml' | 'dockerfile';
|
|
14
|
-
/**
|
|
15
|
-
* The grammar for a path, or undefined for a file the editor shows as plain
|
|
16
|
-
* text. A name is tried whole before it is tried as a suffix, so
|
|
17
|
-
* `Dockerfile.dev` is a Dockerfile and not a file with a `dev` extension.
|
|
18
|
-
*/
|
|
19
|
-
export declare function grammarKeyOf(filePath: string): GrammarKey | undefined;
|
|
20
|
-
//#endregion
|
|
21
|
-
//# sourceMappingURL=editorLanguage.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editorLanguage.d.cts","names":[],"sources":["../../src/lib/editorLanguage.ts"],"mappings":";;;;;;;;;;;;YAcY;;;;;;wBA6DI,aAAa,mBAAmB"}
|
|
@@ -1,76 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,60 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { MediaKind } from "../types/editor.cjs";
|
|
2
|
-
//#region src/lib/media.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* How to show the file at this path. Anything unrecognised is a download,
|
|
5
|
-
* which is the honest answer for a `.docx` or a `.zip`: a browser cannot
|
|
6
|
-
* render it, and pretending otherwise costs a converter that loses the
|
|
7
|
-
* formatting it converted.
|
|
8
|
-
*/
|
|
9
|
-
export declare function mediaKindOf(filePath: string): MediaKind;
|
|
10
|
-
//#endregion
|
|
11
|
-
//# sourceMappingURL=media.d.cts.map
|
package/dist/lib/media.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.cts","names":[],"sources":["../../src/lib/media.ts"],"mappings":";;;;;;;;wBAyCgB,YAAY,mBAAmB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { KeyboardEvent } from "react";
|
|
2
|
-
//#region src/lib/optionList.d.ts
|
|
3
|
-
/** Digits are a shortcut, not the only way in: only the first nine can have one. */
|
|
4
|
-
export declare const MAX_DIGIT_SHORTCUT = 9;
|
|
5
|
-
/**
|
|
6
|
-
* The keyboard an option list answers to, handled on whichever element the
|
|
7
|
-
* surrounding overlay focuses. Every key it claims is consumed, so a digit
|
|
8
|
-
* that answers the agent never also reaches the rail's session shortcuts.
|
|
9
|
-
*/
|
|
10
|
-
export declare function handleOptionListKey(event: KeyboardEvent, input: {
|
|
11
|
-
options: readonly string[];
|
|
12
|
-
cursor: number;
|
|
13
|
-
onCursorChange: (cursor: number) => void;
|
|
14
|
-
onSelect: (option: string) => void;
|
|
15
|
-
}): void;
|
|
16
|
-
/** What the footer should promise, given how many options there are. */
|
|
17
|
-
export declare function optionListHint(count: number): string;
|
|
18
|
-
/** The digit a row answers to, or the bullet that says it has none. */
|
|
19
|
-
export declare function optionMarker(index: number): string;
|
|
20
|
-
//#endregion
|
|
21
|
-
//# sourceMappingURL=optionList.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ChipTone, DotTone, MessageLineTone, StatusTone } from "../types/tone.cjs";
|
|
2
|
-
//#region src/lib/tone.d.ts
|
|
3
|
-
/**
|
|
4
|
-
* Translations between the tone vocabularies.
|
|
5
|
-
*
|
|
6
|
-
* Every surface that shows an outcome used to carry its own
|
|
7
|
-
* `Record<Tone, string>` table mapping a state onto a colour class. Those
|
|
8
|
-
* tables disagreed as often as they agreed. These maps are the one place the
|
|
9
|
-
* translation lives, so a card picks a status tone from its own domain and
|
|
10
|
-
* asks here what colour that reads as.
|
|
11
|
-
*/
|
|
12
|
-
/** The colour a status reads as, for the chip and border families. */
|
|
13
|
-
export declare const STATUS_TO_CHIP: Readonly<Record<StatusTone, ChipTone>>;
|
|
14
|
-
/** The dot a status reads as; a neutral status is present but not live. */
|
|
15
|
-
export declare const STATUS_TO_DOT: Readonly<Record<StatusTone, DotTone>>;
|
|
16
|
-
/**
|
|
17
|
-
* The status a colour stands for, for a caller that has only a chip tone.
|
|
18
|
-
* Lossy on purpose: the palette has more colours than there are outcomes, and
|
|
19
|
-
* a colour with no outcome of its own reads as neutral.
|
|
20
|
-
*/
|
|
21
|
-
export declare const CHIP_TO_STATUS: Readonly<Record<ChipTone, StatusTone>>;
|
|
22
|
-
/** The status a body line's role corresponds to, for a card that badges its worst line. */
|
|
23
|
-
export declare const LINE_TONE_TO_STATUS: Readonly<Record<MessageLineTone, StatusTone>>;
|
|
24
|
-
//#endregion
|
|
25
|
-
//# sourceMappingURL=tone.d.cts.map
|
package/dist/lib/tone.d.cts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
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"}
|