@agimon-ai/doompi-web-components 0.0.1-alpha.6 → 0.0.1-alpha.9
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/components/AnsiText.d.cts +17 -0
- package/dist/components/AnsiText.d.cts.map +1 -0
- package/dist/components/HashlineLines.d.cts +8 -1
- package/dist/components/HashlineLines.d.cts.map +1 -1
- package/dist/components/MessageItem.d.cts +34 -2
- package/dist/components/MessageItem.d.cts.map +1 -1
- package/dist/components/SyntaxText.d.cts +51 -0
- package/dist/components/SyntaxText.d.cts.map +1 -0
- package/dist/components/ToolPathLink.d.cts +23 -0
- package/dist/components/ToolPathLink.d.cts.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.mts +9 -3
- package/dist/index.mjs +1 -1
- package/dist/lib/ansiSpans.d.cts +43 -0
- package/dist/lib/ansiSpans.d.cts.map +1 -0
- package/dist/lib/editorTheme.d.cts +77 -0
- package/dist/lib/editorTheme.d.cts.map +1 -0
- package/dist/lib/hashlineHighlight.d.cts +31 -0
- package/dist/lib/hashlineHighlight.d.cts.map +1 -0
- package/dist/lib/syntaxHighlight.d.cts +55 -0
- package/dist/lib/syntaxHighlight.d.cts.map +1 -0
- package/dist/src/components/AnsiText.cjs +4 -0
- package/dist/src/components/AnsiText.cjs.map +1 -0
- package/dist/src/components/AnsiText.d.mts +17 -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/Badge.d.mts +1 -1
- package/dist/src/components/Button.d.mts +1 -1
- package/dist/src/components/CodeEditorView.cjs +1 -1
- package/dist/src/components/CodeEditorView.mjs +1 -1
- package/dist/src/components/Dialog.d.mts +1 -1
- package/dist/src/components/Dot.d.mts +1 -1
- package/dist/src/components/DropdownMenu.d.mts +1 -1
- package/dist/src/components/HashlineLines.cjs +1 -1
- package/dist/src/components/HashlineLines.cjs.map +1 -1
- package/dist/src/components/HashlineLines.d.mts +8 -1
- package/dist/src/components/HashlineLines.d.mts.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.d.mts +1 -1
- package/dist/src/components/MessageItem.cjs +1 -1
- package/dist/src/components/MessageItem.cjs.map +1 -1
- package/dist/src/components/MessageItem.d.mts +35 -3
- 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/OptionList.cjs +1 -1
- package/dist/src/components/OptionList.d.mts +1 -1
- package/dist/src/components/OptionList.mjs +1 -1
- package/dist/src/components/StatusBadge.d.mts +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 +51 -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.d.mts +1 -1
- package/dist/src/components/Textarea.d.mts +1 -1
- package/dist/src/components/Toast.d.mts +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 +23 -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/lib/ansiSpans.cjs +2 -0
- package/dist/src/lib/ansiSpans.cjs.map +1 -0
- package/dist/src/lib/ansiSpans.d.mts +43 -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/editorTheme.d.mts +77 -0
- package/dist/src/lib/editorTheme.d.mts.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 +31 -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/syntaxHighlight.cjs +3 -0
- package/dist/src/lib/syntaxHighlight.cjs.map +1 -0
- package/dist/src/lib/syntaxHighlight.d.mts +55 -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/package.json +2 -2
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentProps } from "react";
|
|
2
|
+
//#region src/components/AnsiText.d.ts
|
|
3
|
+
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
|
+
declare function AnsiLine({ line, className, ...props }: AnsiLineProps): import("react").JSX.Element;
|
|
9
|
+
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
|
+
declare function AnsiText({ text, ...props }: AnsiTextProps): import("react").JSX.Element;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AnsiLine, AnsiLineProps, AnsiText, AnsiTextProps };
|
|
17
|
+
//# sourceMappingURL=AnsiText.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AnsiText.d.cts","names":[],"sources":["../../src/components/AnsiText.tsx"],"mappings":";;UAkDiB,sBAAsB,KAAK;;EAE1C;;;iBAIc,WAAW,MAAM,cAAc,SAAS,gCAAa,IAAA;UASpD,sBAAsB,KAAK;;EAE1C;;;iBAIc,WAAW,SAAS,SAAS,gCAAa,IAAA"}
|
|
@@ -5,13 +5,20 @@ import { ComponentProps } from "react";
|
|
|
5
5
|
* The anchored body shared by hashline results: a file heading per group, a
|
|
6
6
|
* right-aligned line-number gutter, and a `>>` marker on grep matches. The
|
|
7
7
|
* gutter width is a style, not a class, because it follows the widest number.
|
|
8
|
+
*
|
|
9
|
+
* The anchored lines are coloured with the editor's grammars when the body
|
|
10
|
+
* names a file, or when `path` names one for a result that does not. Colour
|
|
11
|
+
* arrives a frame or two late and never blocks the text: an unhighlighted body
|
|
12
|
+
* is the same body without the colours.
|
|
8
13
|
*/
|
|
9
14
|
interface HashlineLinesProps extends ComponentProps<'div'> {
|
|
10
15
|
lines: readonly PresentedLine[];
|
|
11
16
|
/** Width of the line-number column, in characters, from `hashlineBody`. */
|
|
12
17
|
gutter: number;
|
|
18
|
+
/** The file a body of bare anchored lines came from, for highlighting. */
|
|
19
|
+
path?: string | undefined;
|
|
13
20
|
}
|
|
14
|
-
declare function HashlineLines({ className, lines, gutter, ...props }: HashlineLinesProps): import("react").JSX.Element;
|
|
21
|
+
declare function HashlineLines({ className, lines, gutter, path, ...props }: HashlineLinesProps): import("react").JSX.Element;
|
|
15
22
|
//#endregion
|
|
16
23
|
export { HashlineLines, HashlineLinesProps };
|
|
17
24
|
//# sourceMappingURL=HashlineLines.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HashlineLines.d.cts","names":[],"sources":["../../src/components/HashlineLines.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"HashlineLines.d.cts","names":[],"sources":["../../src/components/HashlineLines.tsx"],"mappings":";;;;;;;;;;;;;UAiBiB,2BAA2B;EAC1C,gBAAgB;;EAEhB;;EAEA;;iBA4Cc,gBAAgB,WAAW,OAAO,QAAQ,SAAS,SAAS,qCAAkB,IAAA"}
|
|
@@ -23,6 +23,10 @@ declare function useMessageItem(): MessageItemState;
|
|
|
23
23
|
declare const messageItemVariants: (props?: ({
|
|
24
24
|
tone?: "accent" | "error" | "info" | "neutral" | "ok" | "running" | null | undefined;
|
|
25
25
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
|
+
/** The same tone as a row: no card, one coloured edge, and the group's separators between rows. */
|
|
27
|
+
declare const messageItemRowVariants: (props?: ({
|
|
28
|
+
tone?: "accent" | "error" | "info" | "neutral" | "ok" | "running" | null | undefined;
|
|
29
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
30
|
interface MessageItemProps extends Omit<ComponentProps<'div'>, 'children'>, VariantProps<typeof messageItemVariants> {
|
|
27
31
|
/** Whether the header offers the expand toggle. A toggle that reveals nothing reads as broken, so the card decides. */
|
|
28
32
|
expandable?: boolean;
|
|
@@ -34,6 +38,26 @@ interface MessageItemProps extends Omit<ComponentProps<'div'>, 'children'>, Vari
|
|
|
34
38
|
children?: ReactNode | ((state: MessageItemState) => ReactNode);
|
|
35
39
|
}
|
|
36
40
|
declare function MessageItem({ className, tone, expandable, defaultExpanded, expanded, onExpandedChange, children, ...props }: MessageItemProps): import("react").JSX.Element;
|
|
41
|
+
interface MessageItemGroupProps extends Omit<ComponentProps<'div'>, 'title'>, VariantProps<typeof messageItemVariants> {
|
|
42
|
+
/** The bold label at the left of the group header: the tool the run belongs to. */
|
|
43
|
+
title: ReactNode;
|
|
44
|
+
/** The line beside it, such as how many calls the group holds. */
|
|
45
|
+
summary?: ReactNode;
|
|
46
|
+
/** The badge text; defaults to the tone's label, null hides the badge. */
|
|
47
|
+
badge?: ReactNode | null;
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* One frame around a run of items that belong together.
|
|
52
|
+
*
|
|
53
|
+
* A transcript that calls the same tool five times in a row is five identical
|
|
54
|
+
* frames, five gutter labels and five gaps, and the repetition reads louder
|
|
55
|
+
* than the commands do. The group draws the frame once and each item inside it
|
|
56
|
+
* becomes a row: same header, same expand, no card of its own. The tone still
|
|
57
|
+
* belongs to the row, as an edge, so a failure in the middle of a run is not
|
|
58
|
+
* flattened into the group's own outcome.
|
|
59
|
+
*/
|
|
60
|
+
declare function MessageItemGroup({ className, tone, title, summary, badge, children, ...props }: MessageItemGroupProps): import("react").JSX.Element;
|
|
37
61
|
/** The tone a tool call's item wears: running while the tool runs, then its outcome. */
|
|
38
62
|
declare function toolTone(state: {
|
|
39
63
|
running: boolean;
|
|
@@ -49,7 +73,15 @@ interface MessageItemHeaderProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
|
49
73
|
/** The summary beside the title; it gets the remaining width. */
|
|
50
74
|
children?: ReactNode;
|
|
51
75
|
}
|
|
52
|
-
/**
|
|
76
|
+
/**
|
|
77
|
+
* The title row: label, summary, the tone's badge, and the expand toggle when
|
|
78
|
+
* the item is expandable.
|
|
79
|
+
*
|
|
80
|
+
* A row inside a group says less. The group's header has already named the
|
|
81
|
+
* tool and stated the run's outcome, so the row drops its title and speaks up
|
|
82
|
+
* only when something went wrong or is still going: five OK badges down a run
|
|
83
|
+
* of five are noise, and the one ERROR among them is the point.
|
|
84
|
+
*/
|
|
53
85
|
declare function MessageItemHeader({ className, title, badge, children, ...props }: MessageItemHeaderProps): import("react").JSX.Element;
|
|
54
86
|
/** The recessed body under the header. */
|
|
55
87
|
declare function MessageItemBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
@@ -67,5 +99,5 @@ interface MessageItemStatusProps extends ComponentProps<'span'>, VariantProps<ty
|
|
|
67
99
|
/** The one-line status under a body: `◐ running`, `✗ failed`, `✓ done`, or the hint that more is hidden. */
|
|
68
100
|
declare function MessageItemStatus({ className, tone, glyph, expands, children, ...props }: MessageItemStatusProps): import("react").JSX.Element;
|
|
69
101
|
//#endregion
|
|
70
|
-
export { MessageItem, MessageItemBody, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem };
|
|
102
|
+
export { MessageItem, MessageItemBody, MessageItemGroup, MessageItemGroupProps, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem };
|
|
71
103
|
//# sourceMappingURL=MessageItem.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageItem.d.cts","names":[],"sources":["../../src/components/MessageItem.tsx"],"mappings":";;;;;;;;;;;;UAgBiB;EACf,MAAM;;EAEN;EACA;EACA;;;iBAWc,kBAAkB;;
|
|
1
|
+
{"version":3,"file":"MessageItem.d.cts","names":[],"sources":["../../src/components/MessageItem.tsx"],"mappings":";;;;;;;;;;;;UAgBiB;EACf,MAAM;;EAEN;EACA;EACA;;;iBAWc,kBAAkB;;cAarB,sBAAmB;;6CAG9B;;cAGW,yBAAsB;;6CAGjC;UAEe,yBACP,KAAK,oCAAoC,oBAAoB;;EAErE;EACA;;EAEA;EACA,oBAAoB;;EAEpB,WAAW,cAAc,OAAO,qBAAqB;;iBAGvC,cACd,WACA,MACA,YACA,iBACA,UACA,kBACA,aACG,SACF,mCAAgB,IAAA;UA8BF,8BACP,KAAK,iCAAiC,oBAAoB;;EAElE,OAAO;;EAEP,UAAU;;EAEV,QAAQ;EACR,WAAW;;;;;;;;;;;;iBAaG,mBACd,WACA,MACA,OACA,SACA,OACA,aACG,SACF,wCAAqB,IAAA;;iBAiBR,SAAS;EAAS;EAAkB;IAAqB;;cAK5D,cAAc,SAAS,OAAO;UAS1B,+BAA+B,KAAK;;EAEnD,OAAO;;EAEP,QAAQ;;EAER,WAAW;;;;;;;;;;;iBAeG,oBAAoB,WAAW,OAAO,OAAO,aAAa,SAAS,yCAAsB,IAAA;;iBAsCzF,kBAAkB,cAAc,SAAS,wCAAqB,IAAA;;cAWjE,cAAc,SAAS,OAAO;cAS9B,4BAAyB;;6CAYpC;UAEe,+BAA+B,wBAAwB,oBAAoB;;EAE1F;;EAEA;;;iBAIc,oBACd,WACA,MACA,OACA,SACA,aACG,SACF,yCAAsB,IAAA"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { GrammarKey } from "../lib/editorLanguage.cjs";
|
|
2
|
+
import { SyntaxLines, SyntaxSpan } from "../lib/syntaxHighlight.cjs";
|
|
3
|
+
import { ComponentProps } from "react";
|
|
4
|
+
//#region src/components/SyntaxText.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Read-only code with the editor's colours.
|
|
7
|
+
*
|
|
8
|
+
* Two shapes over one hook, because the cards need both: `SyntaxText` for a
|
|
9
|
+
* block of code that owns its own element, and `SyntaxLine` for a card that
|
|
10
|
+
* already renders a line at a time next to a gutter. Highlighting is
|
|
11
|
+
* asynchronous, so both show the plain text first and swap in spans once the
|
|
12
|
+
* grammar has loaded; a result that never highlights simply stays plain.
|
|
13
|
+
*
|
|
14
|
+
* DESIGN PATTERNS:
|
|
15
|
+
* - Plain text is the fallback, never a spinner: colour is decoration.
|
|
16
|
+
* - The hook keys on the text, so a streaming result re-highlights as it grows.
|
|
17
|
+
*
|
|
18
|
+
* AVOID:
|
|
19
|
+
* - Highlighting one line at a time. A line is not a parse unit; pass the whole
|
|
20
|
+
* block to `useSyntaxLines` and render the line you want out of the result.
|
|
21
|
+
*/
|
|
22
|
+
interface SyntaxQuery {
|
|
23
|
+
/** The file the code came from, when the tool knows one. */
|
|
24
|
+
path?: string | undefined;
|
|
25
|
+
/** Skips detection when the caller already knows the grammar. */
|
|
26
|
+
grammar?: GrammarKey | undefined;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Colours `text`, or hands back undefined while that is still loading and for
|
|
30
|
+
* anything with no grammar. Rendering the result is the caller's business.
|
|
31
|
+
*
|
|
32
|
+
* The finished spans are stored with the text they belong to, so text that has
|
|
33
|
+
* changed since reads as plain during render rather than showing the previous
|
|
34
|
+
* result's colours over the new lines.
|
|
35
|
+
*/
|
|
36
|
+
declare function useSyntaxLines(text: string, query?: SyntaxQuery): SyntaxLines | undefined;
|
|
37
|
+
interface SyntaxLineProps extends Omit<ComponentProps<'span'>, 'children'> {
|
|
38
|
+
/** The line's spans from `useSyntaxLines`, or undefined to show `text` plain. */
|
|
39
|
+
spans?: readonly SyntaxSpan[] | undefined;
|
|
40
|
+
text: string;
|
|
41
|
+
}
|
|
42
|
+
/** One line: coloured when its spans are in, the plain text until then. */
|
|
43
|
+
declare function SyntaxLine({ spans, text, ...props }: SyntaxLineProps): import("react").JSX.Element;
|
|
44
|
+
interface SyntaxTextProps extends Omit<ComponentProps<'pre'>, 'children'>, SyntaxQuery {
|
|
45
|
+
text: string;
|
|
46
|
+
}
|
|
47
|
+
/** A block of code, wrapped rather than clipped, coloured when a grammar is known. */
|
|
48
|
+
declare function SyntaxText({ className, text, path, grammar, ...props }: SyntaxTextProps): import("react").JSX.Element;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { SyntaxLine, SyntaxLineProps, SyntaxQuery, SyntaxText, SyntaxTextProps, useSyntaxLines };
|
|
51
|
+
//# sourceMappingURL=SyntaxText.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SyntaxText.d.cts","names":[],"sources":["../../src/components/SyntaxText.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;UA6BiB;;EAEf;;EAEA,UAAU;;;;;;;;;;iBAWI,eAAe,cAAc,QAAO,cAAmB;UAyBtD,wBAAwB,KAAK;;EAE5C,iBAAiB;EACjB;;;iBAIc,aAAa,OAAO,SAAS,SAAS,kCAAe,IAAA;UAapD,wBAAwB,KAAK,oCAAoC;EAChF;;;iBAIc,aAAa,WAAW,MAAM,MAAM,YAAY,SAAS,kCAAe,IAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
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
|
+
declare function ToolPathLink({ path, onOpen, className, 'data-testid': testId, ...props }: ToolPathLinkProps): import("react").JSX.Element;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { ToolPathLink, ToolPathLinkProps };
|
|
23
|
+
//# sourceMappingURL=ToolPathLink.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ToolPathLink.d.cts","names":[],"sources":["../../src/components/ToolPathLink.tsx"],"mappings":";;;;;;;;;;;UAaiB;EACf;;EAEA;EACA;;EAEA;;iBAGc,eACd,MACA,QACA,0BACe,WACZ,SACF,oCAAiB,IAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./src/icons/icons.cjs");const e=require("./src/lib/cn.cjs"),t=require("./src/components/Accordion.cjs"),n=require("./src/components/Avatar.cjs"),r=require("./src/components/Badge.cjs"),i=require("./src/components/Tooltip.cjs"),a=require("./src/components/Breadcrumb.cjs"),o=require("./src/components/Spinner.cjs"),s=require("./src/components/Button.cjs"),c=require("./src/components/Dialog.cjs"),l=require("./src/components/Dot.cjs"),u=require("./src/components/DropdownMenu.cjs"),d=require("./src/components/Checkbox.cjs"),f=require("./src/components/Skeleton.cjs"),p=require("./src/components/CodeEditor.cjs"),m=require("./src/components/Collapsible.cjs"),h=require("./src/components/Input.cjs"),g=require("./src/lib/optionList.cjs"),_=require("./src/components/OptionList.cjs"),v=require("./src/components/Command.cjs"),y=require("./src/components/EmptyState.cjs"),b=require("./src/components/HashlineLines.cjs"),x=require("./src/components/Kbd.cjs"),S=require("./src/components/Label.cjs"),C=require("./src/components/Markdown.cjs"),w=require("./src/lib/media.cjs"),T=require("./src/components/MediaPreview.cjs"),E=require("./src/components/StatusBadge.cjs"),D=require("./src/components/MessageItem.cjs"),O=require("./src/components/MessageLines.cjs"),k=require("./src/components/Panel.cjs"),A=require("./src/components/Popover.cjs"),j=require("./src/components/Progress.cjs"),M=require("./src/components/RadioGroup.cjs"),N=require("./src/components/ScrollArea.cjs"),P=require("./src/components/SectionLabel.cjs"),F=require("./src/components/Select.cjs"),I=require("./src/components/Separator.cjs"),L=require("./src/components/Sheet.cjs"),R=require("./src/components/StreamCursor.cjs"),z=require("./src/components/Switch.cjs"),B=require("./src/components/Tabs.cjs"),V=require("./src/components/Textarea.cjs"),H=require("./src/components/Toast.cjs"),U=require("./src/lib/collapse.cjs"),W=require("./src/lib/editorLanguage.cjs"),G=require("./src/lib/hashlineView.cjs"),K=require("./src/lib/tone.cjs"),q=require("./src/types/editor.cjs"),J=require("./src/types/tone.cjs");let Y=require("lucide-react");exports.ACCENT_TONES=J.ACCENT_TONES,exports.Accordion=t.Accordion,exports.AccordionContent=t.AccordionContent,exports.AccordionItem=t.AccordionItem,exports.AccordionTrigger=t.AccordionTrigger,Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return Y.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return Y.CircleAlert}}),Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return Y.AudioLines}}),exports.Avatar=n.Avatar,exports.AvatarFallback=n.AvatarFallback,exports.AvatarImage=n.AvatarImage,exports.BREADCRUMB_ELLIPSIS=a.BREADCRUMB_ELLIPSIS,exports.Badge=r.Badge,Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return Y.GitBranch}}),exports.Breadcrumb=a.Breadcrumb,exports.Button=s.Button,exports.CHIP_TONES=J.CHIP_TONES,exports.CHIP_TO_STATUS=K.CHIP_TO_STATUS,Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return Y.Check}}),exports.Checkbox=d.Checkbox,Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return Y.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return Y.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return Y.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return Y.X}}),exports.CodeEditor=p.CodeEditor,exports.Collapsible=m.Collapsible,exports.CollapsibleContent=m.CollapsibleContent,exports.CollapsibleTrigger=m.CollapsibleTrigger,exports.CommandDialog=v.CommandDialog,exports.CommandEmpty=v.CommandEmpty,exports.CommandFooter=v.CommandFooter,exports.CommandGroup=v.CommandGroup,exports.CommandGroupLabel=v.CommandGroupLabel,exports.CommandHeader=v.CommandHeader,exports.CommandInput=v.CommandInput,exports.CommandItem=v.CommandItem,exports.CommandItemLabel=v.CommandItemLabel,exports.CommandList=v.CommandList,exports.DOT_TONES=J.DOT_TONES,exports.Dialog=c.Dialog,exports.DialogBody=c.DialogBody,exports.DialogClose=c.DialogClose,exports.DialogContent=c.DialogContent,exports.DialogDescription=c.DialogDescription,exports.DialogFooter=c.DialogFooter,exports.DialogHeader=c.DialogHeader,exports.DialogTitle=c.DialogTitle,exports.DialogTrigger=c.DialogTrigger,exports.Dot=l.Dot,exports.DropdownMenu=u.DropdownMenu,exports.DropdownMenuCheckboxItem=u.DropdownMenuCheckboxItem,exports.DropdownMenuContent=u.DropdownMenuContent,exports.DropdownMenuGroup=u.DropdownMenuGroup,exports.DropdownMenuItem=u.DropdownMenuItem,exports.DropdownMenuLabel=u.DropdownMenuLabel,exports.DropdownMenuRadioGroup=u.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=u.DropdownMenuRadioItem,exports.DropdownMenuSeparator=u.DropdownMenuSeparator,exports.DropdownMenuShortcut=u.DropdownMenuShortcut,exports.DropdownMenuSub=u.DropdownMenuSub,exports.DropdownMenuSubContent=u.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=u.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=u.DropdownMenuTrigger,Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return Y.Pencil}}),exports.EmptyState=y.EmptyState,Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return Y.CornerDownLeft}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return Y.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return Y.FileText}}),exports.GREP_COLLAPSED_LINES=G.GREP_COLLAPSED_LINES,Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return Y.Settings}}),exports.HashlineLines=b.HashlineLines,exports.Input=h.Input,exports.Kbd=x.Kbd,Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return Y.MoreVertical}}),exports.LINE_TONE_TO_STATUS=K.LINE_TONE_TO_STATUS,exports.Label=S.Label,Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return Y.Loader2}}),exports.MAX_DIGIT_SHORTCUT=g.MAX_DIGIT_SHORTCUT,exports.MEDIA_KINDS=q.MEDIA_KINDS,exports.MESSAGE_LINE_TONES=J.MESSAGE_LINE_TONES,exports.Markdown=C.Markdown,exports.MediaPreview=T.MediaPreview,Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return Y.MessageCircle}}),exports.MessageItem=D.MessageItem,exports.MessageItemBody=D.MessageItemBody,exports.MessageItemHeader=D.MessageItemHeader,exports.MessageItemStatus=D.MessageItemStatus,exports.MessageLines=O.MessageLines,Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return Y.Mic}}),exports.NavTab=B.NavTab,exports.NavTabBadge=B.NavTabBadge,exports.OptionLabel=_.OptionLabel,exports.OptionList=_.OptionList,exports.OptionRow=_.OptionRow,Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return Y.Palette}}),exports.Panel=k.Panel,exports.PanelBody=k.PanelBody,exports.PanelHeader=k.PanelHeader,Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return Y.Plus}}),exports.Popover=A.Popover,exports.PopoverAnchor=A.PopoverAnchor,exports.PopoverClose=A.PopoverClose,exports.PopoverContent=A.PopoverContent,exports.PopoverFooter=A.PopoverFooter,exports.PopoverHeader=A.PopoverHeader,exports.PopoverTrigger=A.PopoverTrigger,exports.Progress=j.Progress,exports.READ_COLLAPSED_LINES=G.READ_COLLAPSED_LINES,exports.RadioGroup=M.RadioGroup,exports.RadioGroupCard=M.RadioGroupCard,exports.RadioGroupItem=M.RadioGroupItem,Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return Y.RefreshCw}}),exports.STATUS_EDGE=E.STATUS_EDGE,exports.STATUS_GLYPH=D.STATUS_GLYPH,exports.STATUS_LABEL=D.STATUS_LABEL,exports.STATUS_TONES=J.STATUS_TONES,exports.STATUS_TO_CHIP=K.STATUS_TO_CHIP,exports.STATUS_TO_DOT=K.STATUS_TO_DOT,exports.ScrollArea=N.ScrollArea,exports.ScrollBar=N.ScrollBar,Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return Y.Search}}),exports.SectionLabel=P.SectionLabel,exports.Select=F.Select,exports.SelectContent=F.SelectContent,exports.SelectGroup=F.SelectGroup,exports.SelectItem=F.SelectItem,exports.SelectLabel=F.SelectLabel,exports.SelectSeparator=F.SelectSeparator,exports.SelectTrigger=F.SelectTrigger,exports.SelectValue=F.SelectValue,Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return Y.Send}}),exports.Separator=I.Separator,exports.Sheet=L.Sheet,exports.SheetBody=L.SheetBody,exports.SheetClose=L.SheetClose,exports.SheetContent=L.SheetContent,exports.SheetDescription=L.SheetDescription,exports.SheetFooter=L.SheetFooter,exports.SheetHeader=L.SheetHeader,exports.SheetOverlay=L.SheetOverlay,exports.SheetTitle=L.SheetTitle,exports.SheetTrigger=L.SheetTrigger,Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return Y.ShieldCheck}}),exports.Skeleton=f.Skeleton,exports.Spinner=o.Spinner,exports.StatusBadge=E.StatusBadge,Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return Y.Square}}),exports.StreamCursor=R.StreamCursor,exports.Switch=z.Switch,exports.Tabs=B.Tabs,exports.TabsContent=B.TabsContent,exports.TabsList=B.TabsList,exports.TabsTrigger=B.TabsTrigger,exports.Textarea=V.Textarea,exports.Toast=H.Toast,exports.ToastAction=H.ToastAction,exports.ToastClose=H.ToastClose,exports.ToastDescription=H.ToastDescription,exports.ToastProvider=H.ToastProvider,exports.ToastTitle=H.ToastTitle,exports.ToastViewport=H.ToastViewport,exports.Tooltip=i.Tooltip,exports.TooltipContent=i.TooltipContent,exports.TooltipProvider=i.TooltipProvider,exports.TooltipTrigger=i.TooltipTrigger,Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return Y.Trash2}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return Y.Volume2}}),exports.badgeVariants=r.badgeVariants,exports.breadcrumbSegments=a.breadcrumbSegments,exports.buttonVariants=s.buttonVariants,exports.cn=e.cn,exports.collapseLines=U.collapseLines,exports.compactDetails=G.compactDetails,exports.dialogFooterVariants=c.dialogFooterVariants,exports.dotVariants=l.dotVariants,exports.dropdownMenuItemVariants=u.dropdownMenuItemVariants,exports.fieldVariants=h.fieldVariants,exports.grammarKeyOf=W.grammarKeyOf,exports.handleOptionListKey=g.handleOptionListKey,exports.hashlineBody=G.hashlineBody,exports.mediaKindOf=w.mediaKindOf,exports.messageItemStatusVariants=D.messageItemStatusVariants,exports.messageItemVariants=D.messageItemVariants,exports.messageLineVariants=O.messageLineVariants,exports.optionListHint=g.optionListHint,exports.optionListVariants=_.optionListVariants,exports.optionMarker=g.optionMarker,exports.optionMarkerVariants=_.optionMarkerVariants,exports.optionRowVariants=_.optionRowVariants,exports.parseFileHeader=G.parseFileHeader,exports.parseTaggedLine=G.parseTaggedLine,exports.presentHashlineLines=G.presentHashlineLines,exports.resultTextLines=G.resultTextLines,exports.statusBadgeVariants=E.statusBadgeVariants,exports.tabBadgeVariants=B.tabBadgeVariants,exports.tabVariants=B.tabVariants,exports.takeTrailingNotice=G.takeTrailingNotice,exports.toastVariants=H.toastVariants,exports.toolTone=D.toolTone,exports.useMessageItem=D.useMessageItem;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("./src/icons/icons.cjs");const e=require("./src/lib/cn.cjs"),t=require("./src/components/Accordion.cjs"),n=require("./src/lib/ansiSpans.cjs"),r=require("./src/components/AnsiText.cjs"),i=require("./src/components/Avatar.cjs"),a=require("./src/components/Badge.cjs"),o=require("./src/components/Tooltip.cjs"),s=require("./src/components/Breadcrumb.cjs"),c=require("./src/components/Spinner.cjs"),l=require("./src/components/Button.cjs"),u=require("./src/components/Dialog.cjs"),d=require("./src/components/Dot.cjs"),f=require("./src/components/DropdownMenu.cjs"),p=require("./src/components/Checkbox.cjs"),ee=require("./src/components/Skeleton.cjs"),te=require("./src/components/CodeEditor.cjs"),m=require("./src/components/Collapsible.cjs"),h=require("./src/components/Input.cjs"),g=require("./src/lib/optionList.cjs"),_=require("./src/components/OptionList.cjs"),v=require("./src/components/Command.cjs"),y=require("./src/components/EmptyState.cjs"),b=require("./src/lib/hashlineHighlight.cjs"),x=require("./src/lib/editorLanguage.cjs"),S=require("./src/lib/syntaxHighlight.cjs"),C=require("./src/components/SyntaxText.cjs"),w=require("./src/components/HashlineLines.cjs"),T=require("./src/components/Kbd.cjs"),E=require("./src/components/Label.cjs"),D=require("./src/components/Markdown.cjs"),O=require("./src/lib/media.cjs"),k=require("./src/components/MediaPreview.cjs"),A=require("./src/components/StatusBadge.cjs"),j=require("./src/components/MessageItem.cjs"),M=require("./src/components/MessageLines.cjs"),N=require("./src/components/Panel.cjs"),P=require("./src/components/Popover.cjs"),F=require("./src/components/Progress.cjs"),I=require("./src/components/RadioGroup.cjs"),L=require("./src/components/ScrollArea.cjs"),R=require("./src/components/SectionLabel.cjs"),z=require("./src/components/Select.cjs"),B=require("./src/components/Separator.cjs"),V=require("./src/components/Sheet.cjs"),H=require("./src/components/StreamCursor.cjs"),U=require("./src/components/Switch.cjs"),W=require("./src/components/Tabs.cjs"),G=require("./src/components/Textarea.cjs"),K=require("./src/components/Toast.cjs"),q=require("./src/components/ToolPathLink.cjs"),J=require("./src/lib/collapse.cjs"),Y=require("./src/lib/hashlineView.cjs"),X=require("./src/lib/tone.cjs"),Z=require("./src/types/editor.cjs"),Q=require("./src/types/tone.cjs");let $=require("lucide-react");exports.ACCENT_TONES=Q.ACCENT_TONES,exports.Accordion=t.Accordion,exports.AccordionContent=t.AccordionContent,exports.AccordionItem=t.AccordionItem,exports.AccordionTrigger=t.AccordionTrigger,Object.defineProperty(exports,"ActivityIcon",{enumerable:!0,get:function(){return $.Activity}}),Object.defineProperty(exports,"AlertIcon",{enumerable:!0,get:function(){return $.CircleAlert}}),exports.AnsiLine=r.AnsiLine,exports.AnsiText=r.AnsiText,Object.defineProperty(exports,"AudioLinesIcon",{enumerable:!0,get:function(){return $.AudioLines}}),exports.Avatar=i.Avatar,exports.AvatarFallback=i.AvatarFallback,exports.AvatarImage=i.AvatarImage,exports.BREADCRUMB_ELLIPSIS=s.BREADCRUMB_ELLIPSIS,exports.Badge=a.Badge,Object.defineProperty(exports,"BranchIcon",{enumerable:!0,get:function(){return $.GitBranch}}),exports.Breadcrumb=s.Breadcrumb,exports.Button=l.Button,exports.CHIP_TONES=Q.CHIP_TONES,exports.CHIP_TO_STATUS=X.CHIP_TO_STATUS,Object.defineProperty(exports,"CheckIcon",{enumerable:!0,get:function(){return $.Check}}),exports.Checkbox=p.Checkbox,Object.defineProperty(exports,"ChevronDownIcon",{enumerable:!0,get:function(){return $.ChevronDown}}),Object.defineProperty(exports,"ChevronRightIcon",{enumerable:!0,get:function(){return $.ChevronRight}}),Object.defineProperty(exports,"ChevronUpIcon",{enumerable:!0,get:function(){return $.ChevronUp}}),Object.defineProperty(exports,"CloseIcon",{enumerable:!0,get:function(){return $.X}}),exports.CodeEditor=te.CodeEditor,exports.Collapsible=m.Collapsible,exports.CollapsibleContent=m.CollapsibleContent,exports.CollapsibleTrigger=m.CollapsibleTrigger,exports.CommandDialog=v.CommandDialog,exports.CommandEmpty=v.CommandEmpty,exports.CommandFooter=v.CommandFooter,exports.CommandGroup=v.CommandGroup,exports.CommandGroupLabel=v.CommandGroupLabel,exports.CommandHeader=v.CommandHeader,exports.CommandInput=v.CommandInput,exports.CommandItem=v.CommandItem,exports.CommandItemLabel=v.CommandItemLabel,exports.CommandList=v.CommandList,exports.DOT_TONES=Q.DOT_TONES,exports.Dialog=u.Dialog,exports.DialogBody=u.DialogBody,exports.DialogClose=u.DialogClose,exports.DialogContent=u.DialogContent,exports.DialogDescription=u.DialogDescription,exports.DialogFooter=u.DialogFooter,exports.DialogHeader=u.DialogHeader,exports.DialogTitle=u.DialogTitle,exports.DialogTrigger=u.DialogTrigger,exports.Dot=d.Dot,exports.DropdownMenu=f.DropdownMenu,exports.DropdownMenuCheckboxItem=f.DropdownMenuCheckboxItem,exports.DropdownMenuContent=f.DropdownMenuContent,exports.DropdownMenuGroup=f.DropdownMenuGroup,exports.DropdownMenuItem=f.DropdownMenuItem,exports.DropdownMenuLabel=f.DropdownMenuLabel,exports.DropdownMenuRadioGroup=f.DropdownMenuRadioGroup,exports.DropdownMenuRadioItem=f.DropdownMenuRadioItem,exports.DropdownMenuSeparator=f.DropdownMenuSeparator,exports.DropdownMenuShortcut=f.DropdownMenuShortcut,exports.DropdownMenuSub=f.DropdownMenuSub,exports.DropdownMenuSubContent=f.DropdownMenuSubContent,exports.DropdownMenuSubTrigger=f.DropdownMenuSubTrigger,exports.DropdownMenuTrigger=f.DropdownMenuTrigger,Object.defineProperty(exports,"EditIcon",{enumerable:!0,get:function(){return $.Pencil}}),exports.EmptyState=y.EmptyState,Object.defineProperty(exports,"EnterIcon",{enumerable:!0,get:function(){return $.CornerDownLeft}}),Object.defineProperty(exports,"ExternalLinkIcon",{enumerable:!0,get:function(){return $.ExternalLink}}),Object.defineProperty(exports,"FileIcon",{enumerable:!0,get:function(){return $.FileText}}),exports.GREP_COLLAPSED_LINES=Y.GREP_COLLAPSED_LINES,Object.defineProperty(exports,"GearIcon",{enumerable:!0,get:function(){return $.Settings}}),exports.HashlineLines=w.HashlineLines,exports.Input=h.Input,exports.Kbd=T.Kbd,Object.defineProperty(exports,"KebabIcon",{enumerable:!0,get:function(){return $.MoreVertical}}),exports.LINE_TONE_TO_STATUS=X.LINE_TONE_TO_STATUS,exports.Label=E.Label,Object.defineProperty(exports,"LoaderIcon",{enumerable:!0,get:function(){return $.Loader2}}),exports.MAX_DIGIT_SHORTCUT=g.MAX_DIGIT_SHORTCUT,exports.MEDIA_KINDS=Z.MEDIA_KINDS,exports.MESSAGE_LINE_TONES=Q.MESSAGE_LINE_TONES,exports.Markdown=D.Markdown,exports.MediaPreview=k.MediaPreview,Object.defineProperty(exports,"MessageIcon",{enumerable:!0,get:function(){return $.MessageCircle}}),exports.MessageItem=j.MessageItem,exports.MessageItemBody=j.MessageItemBody,exports.MessageItemGroup=j.MessageItemGroup,exports.MessageItemHeader=j.MessageItemHeader,exports.MessageItemStatus=j.MessageItemStatus,exports.MessageLines=M.MessageLines,Object.defineProperty(exports,"MicIcon",{enumerable:!0,get:function(){return $.Mic}}),exports.NavTab=W.NavTab,exports.NavTabBadge=W.NavTabBadge,exports.OptionLabel=_.OptionLabel,exports.OptionList=_.OptionList,exports.OptionRow=_.OptionRow,Object.defineProperty(exports,"PaletteIcon",{enumerable:!0,get:function(){return $.Palette}}),exports.Panel=N.Panel,exports.PanelBody=N.PanelBody,exports.PanelHeader=N.PanelHeader,Object.defineProperty(exports,"PlusIcon",{enumerable:!0,get:function(){return $.Plus}}),exports.Popover=P.Popover,exports.PopoverAnchor=P.PopoverAnchor,exports.PopoverClose=P.PopoverClose,exports.PopoverContent=P.PopoverContent,exports.PopoverFooter=P.PopoverFooter,exports.PopoverHeader=P.PopoverHeader,exports.PopoverTrigger=P.PopoverTrigger,exports.Progress=F.Progress,exports.READ_COLLAPSED_LINES=Y.READ_COLLAPSED_LINES,exports.RadioGroup=I.RadioGroup,exports.RadioGroupCard=I.RadioGroupCard,exports.RadioGroupItem=I.RadioGroupItem,Object.defineProperty(exports,"RefreshIcon",{enumerable:!0,get:function(){return $.RefreshCw}}),exports.STATUS_EDGE=A.STATUS_EDGE,exports.STATUS_GLYPH=j.STATUS_GLYPH,exports.STATUS_LABEL=j.STATUS_LABEL,exports.STATUS_TONES=Q.STATUS_TONES,exports.STATUS_TO_CHIP=X.STATUS_TO_CHIP,exports.STATUS_TO_DOT=X.STATUS_TO_DOT,exports.ScrollArea=L.ScrollArea,exports.ScrollBar=L.ScrollBar,Object.defineProperty(exports,"SearchIcon",{enumerable:!0,get:function(){return $.Search}}),exports.SectionLabel=R.SectionLabel,exports.Select=z.Select,exports.SelectContent=z.SelectContent,exports.SelectGroup=z.SelectGroup,exports.SelectItem=z.SelectItem,exports.SelectLabel=z.SelectLabel,exports.SelectSeparator=z.SelectSeparator,exports.SelectTrigger=z.SelectTrigger,exports.SelectValue=z.SelectValue,Object.defineProperty(exports,"SendIcon",{enumerable:!0,get:function(){return $.Send}}),exports.Separator=B.Separator,exports.Sheet=V.Sheet,exports.SheetBody=V.SheetBody,exports.SheetClose=V.SheetClose,exports.SheetContent=V.SheetContent,exports.SheetDescription=V.SheetDescription,exports.SheetFooter=V.SheetFooter,exports.SheetHeader=V.SheetHeader,exports.SheetOverlay=V.SheetOverlay,exports.SheetTitle=V.SheetTitle,exports.SheetTrigger=V.SheetTrigger,Object.defineProperty(exports,"ShieldIcon",{enumerable:!0,get:function(){return $.ShieldCheck}}),exports.Skeleton=ee.Skeleton,exports.Spinner=c.Spinner,exports.StatusBadge=A.StatusBadge,Object.defineProperty(exports,"StopIcon",{enumerable:!0,get:function(){return $.Square}}),exports.StreamCursor=H.StreamCursor,exports.Switch=U.Switch,exports.SyntaxLine=C.SyntaxLine,exports.SyntaxText=C.SyntaxText,exports.Tabs=W.Tabs,exports.TabsContent=W.TabsContent,exports.TabsList=W.TabsList,exports.TabsTrigger=W.TabsTrigger,exports.Textarea=G.Textarea,exports.Toast=K.Toast,exports.ToastAction=K.ToastAction,exports.ToastClose=K.ToastClose,exports.ToastDescription=K.ToastDescription,exports.ToastProvider=K.ToastProvider,exports.ToastTitle=K.ToastTitle,exports.ToastViewport=K.ToastViewport,exports.ToolPathLink=q.ToolPathLink,exports.Tooltip=o.Tooltip,exports.TooltipContent=o.TooltipContent,exports.TooltipProvider=o.TooltipProvider,exports.TooltipTrigger=o.TooltipTrigger,Object.defineProperty(exports,"TrashIcon",{enumerable:!0,get:function(){return $.Trash2}}),Object.defineProperty(exports,"VolumeIcon",{enumerable:!0,get:function(){return $.Volume2}}),exports.ansiSpans=n.ansiSpans,exports.badgeVariants=a.badgeVariants,exports.breadcrumbSegments=s.breadcrumbSegments,exports.buttonVariants=l.buttonVariants,exports.cn=e.cn,exports.collapseLines=J.collapseLines,exports.compactDetails=Y.compactDetails,exports.detectGrammar=S.detectGrammar,exports.dialogFooterVariants=u.dialogFooterVariants,exports.dotVariants=d.dotVariants,exports.dropdownMenuItemVariants=f.dropdownMenuItemVariants,exports.fieldVariants=h.fieldVariants,exports.grammarKeyOf=x.grammarKeyOf,exports.handleOptionListKey=g.handleOptionListKey,exports.hashlineBody=Y.hashlineBody,exports.hashlineGroups=b.hashlineGroups,exports.hashlineGroupsKey=b.hashlineGroupsKey,exports.highlightToLines=S.highlightToLines,exports.mediaKindOf=O.mediaKindOf,exports.messageItemRowVariants=j.messageItemRowVariants,exports.messageItemStatusVariants=j.messageItemStatusVariants,exports.messageItemVariants=j.messageItemVariants,exports.messageLineVariants=M.messageLineVariants,exports.optionListHint=g.optionListHint,exports.optionListVariants=_.optionListVariants,exports.optionMarker=g.optionMarker,exports.optionMarkerVariants=_.optionMarkerVariants,exports.optionRowVariants=_.optionRowVariants,exports.parseFileHeader=Y.parseFileHeader,exports.parseTaggedLine=Y.parseTaggedLine,exports.presentHashlineLines=Y.presentHashlineLines,exports.resultTextLines=Y.resultTextLines,exports.statusBadgeVariants=A.statusBadgeVariants,exports.syntaxStyleOf=S.syntaxStyleOf,exports.tabBadgeVariants=W.tabBadgeVariants,exports.tabVariants=W.tabVariants,exports.takeTrailingNotice=Y.takeTrailingNotice,exports.toastVariants=K.toastVariants,exports.toolTone=j.toolTone,exports.useMessageItem=j.useMessageItem,exports.useSyntaxLines=C.useSyntaxLines;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/Accordion.cjs";
|
|
2
|
+
import { AnsiLine, AnsiLineProps, AnsiText, AnsiTextProps } from "./components/AnsiText.cjs";
|
|
2
3
|
import { Avatar, AvatarFallback, AvatarImage } from "./components/Avatar.cjs";
|
|
3
4
|
import { ACCENT_TONES, AccentTone, CHIP_TONES, ChipTone, DOT_TONES, MESSAGE_LINE_TONES, STATUS_TONES } from "./types/tone.cjs";
|
|
4
5
|
import { Badge, BadgeProps, BadgeTone, badgeVariants } from "./components/Badge.cjs";
|
|
@@ -22,7 +23,7 @@ import { Label } from "./components/Label.cjs";
|
|
|
22
23
|
import { Markdown } from "./components/Markdown.cjs";
|
|
23
24
|
import { MediaPreview, MediaPreviewProps } from "./components/MediaPreview.cjs";
|
|
24
25
|
import { STATUS_EDGE, StatusBadge, StatusBadgeProps, StatusTone, statusBadgeVariants } from "./components/StatusBadge.cjs";
|
|
25
|
-
import { MessageItem, MessageItemBody, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./components/MessageItem.cjs";
|
|
26
|
+
import { MessageItem, MessageItemBody, MessageItemGroup, MessageItemGroupProps, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./components/MessageItem.cjs";
|
|
26
27
|
import { MessageLine, MessageLineTone, MessageLines, MessageLinesProps, messageLineVariants } from "./components/MessageLines.cjs";
|
|
27
28
|
import { Panel, PanelBody, PanelHeader, PanelProps } from "./components/Panel.cjs";
|
|
28
29
|
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger } from "./components/Popover.cjs";
|
|
@@ -37,15 +38,20 @@ import { Skeleton } from "./components/Skeleton.cjs";
|
|
|
37
38
|
import { Spinner, SpinnerProps } from "./components/Spinner.cjs";
|
|
38
39
|
import { StreamCursor } from "./components/StreamCursor.cjs";
|
|
39
40
|
import { Switch } from "./components/Switch.cjs";
|
|
41
|
+
import { GrammarKey, grammarKeyOf } from "./lib/editorLanguage.cjs";
|
|
42
|
+
import { GrammarQuery, SyntaxLines, SyntaxSpan, SyntaxToken, detectGrammar, highlightToLines, syntaxStyleOf } from "./lib/syntaxHighlight.cjs";
|
|
43
|
+
import { SyntaxLine, SyntaxLineProps, SyntaxQuery, SyntaxText, SyntaxTextProps, useSyntaxLines } from "./components/SyntaxText.cjs";
|
|
40
44
|
import { NavTab, NavTabBadge, NavTabProps, Tabs, TabsContent, TabsList, TabsTrigger, tabBadgeVariants, tabVariants } from "./components/Tabs.cjs";
|
|
41
45
|
import { Textarea, TextareaProps } from "./components/Textarea.cjs";
|
|
42
46
|
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./components/Toast.cjs";
|
|
47
|
+
import { ToolPathLink, ToolPathLinkProps } from "./components/ToolPathLink.cjs";
|
|
43
48
|
import { ActivityIcon, AlertIcon, AudioLinesIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, RefreshIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, VolumeIcon } from "./icons/icons.cjs";
|
|
49
|
+
import { AnsiSpan, ansiSpans } from "./lib/ansiSpans.cjs";
|
|
44
50
|
import { cn } from "./lib/cn.cjs";
|
|
45
51
|
import { CollapsedLines, collapseLines } from "./lib/collapse.cjs";
|
|
46
|
-
import {
|
|
52
|
+
import { HashlineGroup, hashlineGroups, hashlineGroupsKey } from "./lib/hashlineHighlight.cjs";
|
|
47
53
|
import { mediaKindOf } from "./lib/media.cjs";
|
|
48
54
|
import { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker } from "./lib/optionList.cjs";
|
|
49
55
|
import { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT } from "./lib/tone.cjs";
|
|
50
56
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/Tooltip.cjs";
|
|
51
|
-
export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AlertIcon, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Badge, type BadgeProps, type BadgeTone, 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 CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, 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 EditorSelectionRange, EmptyState, type EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, GREP_COLLAPSED_LINES, GearIcon, type GrammarKey, type HashlineBody, 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 MediaKind, MediaPreview, type MediaPreviewProps, MessageIcon, MessageItem, MessageItemBody, 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, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, 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, Tabs, TabsContent, TabsList, TabsTrigger, type TaggedLine, type TaggedLineMarker, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, VolumeIcon, badgeVariants, breadcrumbSegments, buttonVariants, cn, collapseLines, compactDetails, dialogFooterVariants, dotVariants, dropdownMenuItemVariants, fieldVariants, grammarKeyOf, handleOptionListKey, hashlineBody, mediaKindOf, messageItemStatusVariants, messageItemVariants, messageLineVariants, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseTaggedLine, presentHashlineLines, resultTextLines, statusBadgeVariants, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem };
|
|
57
|
+
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, 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 CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, 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 EditorSelectionRange, EmptyState, type EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, 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 MediaKind, MediaPreview, 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, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, 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, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, 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, resultTextLines, statusBadgeVariants, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem, useSyntaxLines };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./src/components/Accordion.mjs";
|
|
2
|
+
import { AnsiLine, AnsiLineProps, AnsiText, AnsiTextProps } from "./src/components/AnsiText.mjs";
|
|
2
3
|
import { Avatar, AvatarFallback, AvatarImage } from "./src/components/Avatar.mjs";
|
|
3
4
|
import { ACCENT_TONES, AccentTone, CHIP_TONES, ChipTone, DOT_TONES, MESSAGE_LINE_TONES, STATUS_TONES } from "./src/types/tone.mjs";
|
|
4
5
|
import { Badge, BadgeProps, BadgeTone, badgeVariants } from "./src/components/Badge.mjs";
|
|
@@ -22,7 +23,7 @@ import { Label } from "./src/components/Label.mjs";
|
|
|
22
23
|
import { Markdown } from "./src/components/Markdown.mjs";
|
|
23
24
|
import { MediaPreview, MediaPreviewProps } from "./src/components/MediaPreview.mjs";
|
|
24
25
|
import { STATUS_EDGE, StatusBadge, StatusBadgeProps, StatusTone, statusBadgeVariants } from "./src/components/StatusBadge.mjs";
|
|
25
|
-
import { MessageItem, MessageItemBody, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./src/components/MessageItem.mjs";
|
|
26
|
+
import { MessageItem, MessageItemBody, MessageItemGroup, MessageItemGroupProps, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./src/components/MessageItem.mjs";
|
|
26
27
|
import { MessageLine, MessageLineTone, MessageLines, MessageLinesProps, messageLineVariants } from "./src/components/MessageLines.mjs";
|
|
27
28
|
import { Panel, PanelBody, PanelHeader, PanelProps } from "./src/components/Panel.mjs";
|
|
28
29
|
import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger } from "./src/components/Popover.mjs";
|
|
@@ -37,15 +38,20 @@ import { Skeleton } from "./src/components/Skeleton.mjs";
|
|
|
37
38
|
import { Spinner, SpinnerProps } from "./src/components/Spinner.mjs";
|
|
38
39
|
import { StreamCursor } from "./src/components/StreamCursor.mjs";
|
|
39
40
|
import { Switch } from "./src/components/Switch.mjs";
|
|
41
|
+
import { GrammarKey, grammarKeyOf } from "./src/lib/editorLanguage.mjs";
|
|
42
|
+
import { GrammarQuery, SyntaxLines, SyntaxSpan, SyntaxToken, detectGrammar, highlightToLines, syntaxStyleOf } from "./src/lib/syntaxHighlight.mjs";
|
|
43
|
+
import { SyntaxLine, SyntaxLineProps, SyntaxQuery, SyntaxText, SyntaxTextProps, useSyntaxLines } from "./src/components/SyntaxText.mjs";
|
|
40
44
|
import { NavTab, NavTabBadge, NavTabProps, Tabs, TabsContent, TabsList, TabsTrigger, tabBadgeVariants, tabVariants } from "./src/components/Tabs.mjs";
|
|
41
45
|
import { Textarea, TextareaProps } from "./src/components/Textarea.mjs";
|
|
42
46
|
import { Toast, ToastAction, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./src/components/Toast.mjs";
|
|
47
|
+
import { ToolPathLink, ToolPathLinkProps } from "./src/components/ToolPathLink.mjs";
|
|
43
48
|
import { ActivityIcon, AlertIcon, AudioLinesIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, RefreshIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, VolumeIcon } from "./src/icons/icons.mjs";
|
|
49
|
+
import { AnsiSpan, ansiSpans } from "./src/lib/ansiSpans.mjs";
|
|
44
50
|
import { cn } from "./src/lib/cn.mjs";
|
|
45
51
|
import { CollapsedLines, collapseLines } from "./src/lib/collapse.mjs";
|
|
46
|
-
import {
|
|
52
|
+
import { HashlineGroup, hashlineGroups, hashlineGroupsKey } from "./src/lib/hashlineHighlight.mjs";
|
|
47
53
|
import { mediaKindOf } from "./src/lib/media.mjs";
|
|
48
54
|
import { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker } from "./src/lib/optionList.mjs";
|
|
49
55
|
import { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT } from "./src/lib/tone.mjs";
|
|
50
56
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./src/components/Tooltip.mjs";
|
|
51
|
-
export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AlertIcon, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Badge, type BadgeProps, type BadgeTone, 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 CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, 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 EditorSelectionRange, EmptyState, type EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, GREP_COLLAPSED_LINES, GearIcon, type GrammarKey, type HashlineBody, 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 MediaKind, MediaPreview, type MediaPreviewProps, MessageIcon, MessageItem, MessageItemBody, 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, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, 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, Tabs, TabsContent, TabsList, TabsTrigger, type TaggedLine, type TaggedLineMarker, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, VolumeIcon, badgeVariants, breadcrumbSegments, buttonVariants, cn, collapseLines, compactDetails, dialogFooterVariants, dotVariants, dropdownMenuItemVariants, fieldVariants, grammarKeyOf, handleOptionListKey, hashlineBody, mediaKindOf, messageItemStatusVariants, messageItemVariants, messageLineVariants, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseTaggedLine, presentHashlineLines, resultTextLines, statusBadgeVariants, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem };
|
|
57
|
+
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, 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 CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, 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 EditorSelectionRange, EmptyState, type EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, 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 MediaKind, MediaPreview, 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, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, 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, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, 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, resultTextLines, statusBadgeVariants, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem, useSyntaxLines };
|
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{HashlineLines as Ye}from"./src/components/HashlineLines.mjs";import{Kbd as Xe}from"./src/components/Kbd.mjs";import{Label as Ze}from"./src/components/Label.mjs";import{Markdown as Qe}from"./src/components/Markdown.mjs";import{mediaKindOf as $e}from"./src/lib/media.mjs";import{MediaPreview as et}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as tt,StatusBadge as nt,statusBadgeVariants as rt}from"./src/components/StatusBadge.mjs";import{MessageItem as it,MessageItemBody as at,MessageItemHeader as ot,MessageItemStatus as st,STATUS_GLYPH as ct,STATUS_LABEL as lt,messageItemStatusVariants as ut,messageItemVariants as dt,toolTone as ft,useMessageItem as pt}from"./src/components/MessageItem.mjs";import{MessageLines as mt,messageLineVariants as ht}from"./src/components/MessageLines.mjs";import{Panel as gt,PanelBody as _t,PanelHeader as vt}from"./src/components/Panel.mjs";import{Popover as yt,PopoverAnchor as bt,PopoverClose as xt,PopoverContent as St,PopoverFooter as Ct,PopoverHeader as wt,PopoverTrigger as Tt}from"./src/components/Popover.mjs";import{Progress as Et}from"./src/components/Progress.mjs";import{RadioGroup as Dt,RadioGroupCard as Ot,RadioGroupItem as kt}from"./src/components/RadioGroup.mjs";import{ScrollArea as At,ScrollBar as jt}from"./src/components/ScrollArea.mjs";import{SectionLabel as Mt}from"./src/components/SectionLabel.mjs";import{Select as Nt,SelectContent as Pt,SelectGroup as Ft,SelectItem as It,SelectLabel as Lt,SelectSeparator as Rt,SelectTrigger as zt,SelectValue as Bt}from"./src/components/Select.mjs";import{Separator as Vt}from"./src/components/Separator.mjs";import{Sheet as Ht,SheetBody as Ut,SheetClose as Wt,SheetContent as Gt,SheetDescription as Kt,SheetFooter as qt,SheetHeader as Jt,SheetOverlay as Yt,SheetTitle as Xt,SheetTrigger as Zt}from"./src/components/Sheet.mjs";import{StreamCursor as Qt}from"./src/components/StreamCursor.mjs";import{Switch as $t}from"./src/components/Switch.mjs";import{NavTab as en,NavTabBadge as tn,Tabs as nn,TabsContent as rn,TabsList as an,TabsTrigger as on,tabBadgeVariants as sn,tabVariants as cn}from"./src/components/Tabs.mjs";import{Textarea as ln}from"./src/components/Textarea.mjs";import{Toast as un,ToastAction as dn,ToastClose as fn,ToastDescription as pn,ToastProvider as mn,ToastTitle as hn,ToastViewport as gn,toastVariants as _n}from"./src/components/Toast.mjs";import{collapseLines as vn}from"./src/lib/collapse.mjs";import{grammarKeyOf as yn}from"./src/lib/editorLanguage.mjs";import{GREP_COLLAPSED_LINES as bn,READ_COLLAPSED_LINES as xn,compactDetails as Sn,hashlineBody as Cn,parseFileHeader as wn,parseTaggedLine as Tn,presentHashlineLines as En,resultTextLines as Dn,takeTrailingNotice as On}from"./src/lib/hashlineView.mjs";import{CHIP_TO_STATUS as kn,LINE_TONE_TO_STATUS as An,STATUS_TO_CHIP as jn,STATUS_TO_DOT as Mn}from"./src/lib/tone.mjs";import{MEDIA_KINDS as Nn}from"./src/types/editor.mjs";import{ACCENT_TONES as Pn,CHIP_TONES as Fn,DOT_TONES as In,MESSAGE_LINE_TONES as Ln,STATUS_TONES as Rn}from"./src/types/tone.mjs";export{Pn 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,Fn as CHIP_TONES,kn 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,In 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,bn as GREP_COLLAPSED_LINES,p as GearIcon,Ye as HashlineLines,Ee as Input,Xe as Kbd,m as KebabIcon,An as LINE_TONE_TO_STATUS,Ze as Label,h as LoaderIcon,Oe as MAX_DIGIT_SHORTCUT,Nn as MEDIA_KINDS,Ln as MESSAGE_LINE_TONES,Qe as Markdown,et as MediaPreview,g as MessageIcon,it as MessageItem,at as MessageItemBody,ot as MessageItemHeader,st as MessageItemStatus,mt as MessageLines,_ as MicIcon,en as NavTab,tn as NavTabBadge,Me as OptionLabel,Ne as OptionList,Pe as OptionRow,v as PaletteIcon,gt as Panel,_t as PanelBody,vt as PanelHeader,y as PlusIcon,yt as Popover,bt as PopoverAnchor,xt as PopoverClose,St as PopoverContent,Ct as PopoverFooter,wt as PopoverHeader,Tt as PopoverTrigger,Et as Progress,xn as READ_COLLAPSED_LINES,Dt as RadioGroup,Ot as RadioGroupCard,kt as RadioGroupItem,b as RefreshIcon,tt as STATUS_EDGE,ct as STATUS_GLYPH,lt as STATUS_LABEL,Rn as STATUS_TONES,jn as STATUS_TO_CHIP,Mn as STATUS_TO_DOT,At as ScrollArea,jt as ScrollBar,x as SearchIcon,Mt as SectionLabel,Nt as Select,Pt as SelectContent,Ft as SelectGroup,It as SelectItem,Lt as SelectLabel,Rt as SelectSeparator,zt as SelectTrigger,Bt as SelectValue,S as SendIcon,Vt as Separator,Ht as Sheet,Ut as SheetBody,Wt as SheetClose,Gt as SheetContent,Kt as SheetDescription,qt as SheetFooter,Jt as SheetHeader,Yt as SheetOverlay,Xt as SheetTitle,Zt as SheetTrigger,C as ShieldIcon,xe as Skeleton,W as Spinner,nt as StatusBadge,w as StopIcon,Qt as StreamCursor,$t as Switch,nn as Tabs,rn as TabsContent,an as TabsList,on as TabsTrigger,ln as Textarea,un as Toast,dn as ToastAction,fn as ToastClose,pn as ToastDescription,mn as ToastProvider,hn as ToastTitle,gn 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,vn as collapseLines,Sn as compactDetails,ne as dialogFooterVariants,ie as dotVariants,ye as dropdownMenuItemVariants,De as fieldVariants,yn as grammarKeyOf,ke as handleOptionListKey,Cn as hashlineBody,$e as mediaKindOf,ut as messageItemStatusVariants,dt as messageItemVariants,ht as messageLineVariants,Ae as optionListHint,Fe as optionListVariants,je as optionMarker,Ie as optionMarkerVariants,Le as optionRowVariants,wn as parseFileHeader,Tn as parseTaggedLine,En as presentHashlineLines,Dn as resultTextLines,rt as statusBadgeVariants,sn as tabBadgeVariants,cn as tabVariants,On as takeTrailingNotice,_n as toastVariants,ft as toolTone,pt as useMessageItem};
|
|
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{ansiSpans as M}from"./src/lib/ansiSpans.mjs";import{AnsiLine as N,AnsiText as P}from"./src/components/AnsiText.mjs";import{Avatar as F,AvatarFallback as I,AvatarImage as L}from"./src/components/Avatar.mjs";import{Badge as R,badgeVariants as z}from"./src/components/Badge.mjs";import{Tooltip as B,TooltipContent as V,TooltipProvider as H,TooltipTrigger as U}from"./src/components/Tooltip.mjs";import{BREADCRUMB_ELLIPSIS as W,Breadcrumb as G,breadcrumbSegments as K}from"./src/components/Breadcrumb.mjs";import{Spinner as q}from"./src/components/Spinner.mjs";import{Button as J,buttonVariants as Y}from"./src/components/Button.mjs";import{Dialog as X,DialogBody as Z,DialogClose as Q,DialogContent as $,DialogDescription as ee,DialogFooter as te,DialogHeader as ne,DialogTitle as re,DialogTrigger as ie,dialogFooterVariants as ae}from"./src/components/Dialog.mjs";import{Dot as oe,dotVariants as se}from"./src/components/Dot.mjs";import{DropdownMenu as ce,DropdownMenuCheckboxItem as le,DropdownMenuContent as ue,DropdownMenuGroup as de,DropdownMenuItem as fe,DropdownMenuLabel as pe,DropdownMenuRadioGroup as me,DropdownMenuRadioItem as he,DropdownMenuSeparator as ge,DropdownMenuShortcut as _e,DropdownMenuSub as ve,DropdownMenuSubContent as ye,DropdownMenuSubTrigger as be,DropdownMenuTrigger as xe,dropdownMenuItemVariants as Se}from"./src/components/DropdownMenu.mjs";import{Checkbox as Ce}from"./src/components/Checkbox.mjs";import{Skeleton as we}from"./src/components/Skeleton.mjs";import{CodeEditor as Te}from"./src/components/CodeEditor.mjs";import{Collapsible as Ee,CollapsibleContent as De,CollapsibleTrigger as Oe}from"./src/components/Collapsible.mjs";import{Input as ke,fieldVariants as Ae}from"./src/components/Input.mjs";import{MAX_DIGIT_SHORTCUT as je,handleOptionListKey as Me,optionListHint as Ne,optionMarker as Pe}from"./src/lib/optionList.mjs";import{OptionLabel as Fe,OptionList as Ie,OptionRow as Le,optionListVariants as Re,optionMarkerVariants as ze,optionRowVariants as Be}from"./src/components/OptionList.mjs";import{CommandDialog as Ve,CommandEmpty as He,CommandFooter as Ue,CommandGroup as We,CommandGroupLabel as Ge,CommandHeader as Ke,CommandInput as qe,CommandItem as Je,CommandItemLabel as Ye,CommandList as Xe}from"./src/components/Command.mjs";import{EmptyState as Ze}from"./src/components/EmptyState.mjs";import{hashlineGroups as Qe,hashlineGroupsKey as $e}from"./src/lib/hashlineHighlight.mjs";import{grammarKeyOf as et}from"./src/lib/editorLanguage.mjs";import{detectGrammar as tt,highlightToLines as nt,syntaxStyleOf as rt}from"./src/lib/syntaxHighlight.mjs";import{SyntaxLine as it,SyntaxText as at,useSyntaxLines as ot}from"./src/components/SyntaxText.mjs";import{HashlineLines as st}from"./src/components/HashlineLines.mjs";import{Kbd as ct}from"./src/components/Kbd.mjs";import{Label as lt}from"./src/components/Label.mjs";import{Markdown as ut}from"./src/components/Markdown.mjs";import{mediaKindOf as dt}from"./src/lib/media.mjs";import{MediaPreview as ft}from"./src/components/MediaPreview.mjs";import{STATUS_EDGE as pt,StatusBadge as mt,statusBadgeVariants as ht}from"./src/components/StatusBadge.mjs";import{MessageItem as gt,MessageItemBody as _t,MessageItemGroup as vt,MessageItemHeader as yt,MessageItemStatus as bt,STATUS_GLYPH as xt,STATUS_LABEL as St,messageItemRowVariants as Ct,messageItemStatusVariants as wt,messageItemVariants as Tt,toolTone as Et,useMessageItem as Dt}from"./src/components/MessageItem.mjs";import{MessageLines as Ot,messageLineVariants as kt}from"./src/components/MessageLines.mjs";import{Panel as At,PanelBody as jt,PanelHeader as Mt}from"./src/components/Panel.mjs";import{Popover as Nt,PopoverAnchor as Pt,PopoverClose as Ft,PopoverContent as It,PopoverFooter as Lt,PopoverHeader as Rt,PopoverTrigger as zt}from"./src/components/Popover.mjs";import{Progress as Bt}from"./src/components/Progress.mjs";import{RadioGroup as Vt,RadioGroupCard as Ht,RadioGroupItem as Ut}from"./src/components/RadioGroup.mjs";import{ScrollArea as Wt,ScrollBar as Gt}from"./src/components/ScrollArea.mjs";import{SectionLabel as Kt}from"./src/components/SectionLabel.mjs";import{Select as qt,SelectContent as Jt,SelectGroup as Yt,SelectItem as Xt,SelectLabel as Zt,SelectSeparator as Qt,SelectTrigger as $t,SelectValue as en}from"./src/components/Select.mjs";import{Separator as tn}from"./src/components/Separator.mjs";import{Sheet as nn,SheetBody as rn,SheetClose as an,SheetContent as on,SheetDescription as sn,SheetFooter as cn,SheetHeader as ln,SheetOverlay as un,SheetTitle as dn,SheetTrigger as fn}from"./src/components/Sheet.mjs";import{StreamCursor as pn}from"./src/components/StreamCursor.mjs";import{Switch as mn}from"./src/components/Switch.mjs";import{NavTab as hn,NavTabBadge as gn,Tabs as _n,TabsContent as vn,TabsList as yn,TabsTrigger as bn,tabBadgeVariants as xn,tabVariants as Sn}from"./src/components/Tabs.mjs";import{Textarea as Cn}from"./src/components/Textarea.mjs";import{Toast as wn,ToastAction as Tn,ToastClose as En,ToastDescription as Dn,ToastProvider as On,ToastTitle as kn,ToastViewport as An,toastVariants as jn}from"./src/components/Toast.mjs";import{ToolPathLink as Mn}from"./src/components/ToolPathLink.mjs";import{collapseLines as Nn}from"./src/lib/collapse.mjs";import{GREP_COLLAPSED_LINES as Pn,READ_COLLAPSED_LINES as Fn,compactDetails as In,hashlineBody as Ln,parseFileHeader as Rn,parseTaggedLine as zn,presentHashlineLines as Bn,resultTextLines as Vn,takeTrailingNotice as Hn}from"./src/lib/hashlineView.mjs";import{CHIP_TO_STATUS as Un,LINE_TONE_TO_STATUS as Wn,STATUS_TO_CHIP as Gn,STATUS_TO_DOT as Kn}from"./src/lib/tone.mjs";import{MEDIA_KINDS as qn}from"./src/types/editor.mjs";import{ACCENT_TONES as Jn,CHIP_TONES as Yn,DOT_TONES as Xn,MESSAGE_LINE_TONES as Zn,STATUS_TONES as Qn}from"./src/types/tone.mjs";export{Jn as ACCENT_TONES,O as Accordion,k as AccordionContent,A as AccordionItem,j as AccordionTrigger,e as ActivityIcon,t as AlertIcon,N as AnsiLine,P as AnsiText,n as AudioLinesIcon,F as Avatar,I as AvatarFallback,L as AvatarImage,W as BREADCRUMB_ELLIPSIS,R as Badge,r as BranchIcon,G as Breadcrumb,J as Button,Yn as CHIP_TONES,Un as CHIP_TO_STATUS,i as CheckIcon,Ce as Checkbox,a as ChevronDownIcon,o as ChevronRightIcon,s as ChevronUpIcon,c as CloseIcon,Te as CodeEditor,Ee as Collapsible,De as CollapsibleContent,Oe as CollapsibleTrigger,Ve as CommandDialog,He as CommandEmpty,Ue as CommandFooter,We as CommandGroup,Ge as CommandGroupLabel,Ke as CommandHeader,qe as CommandInput,Je as CommandItem,Ye as CommandItemLabel,Xe as CommandList,Xn as DOT_TONES,X as Dialog,Z as DialogBody,Q as DialogClose,$ as DialogContent,ee as DialogDescription,te as DialogFooter,ne as DialogHeader,re as DialogTitle,ie as DialogTrigger,oe as Dot,ce as DropdownMenu,le as DropdownMenuCheckboxItem,ue as DropdownMenuContent,de as DropdownMenuGroup,fe as DropdownMenuItem,pe as DropdownMenuLabel,me as DropdownMenuRadioGroup,he as DropdownMenuRadioItem,ge as DropdownMenuSeparator,_e as DropdownMenuShortcut,ve as DropdownMenuSub,ye as DropdownMenuSubContent,be as DropdownMenuSubTrigger,xe as DropdownMenuTrigger,l as EditIcon,Ze as EmptyState,u as EnterIcon,d as ExternalLinkIcon,f as FileIcon,Pn as GREP_COLLAPSED_LINES,p as GearIcon,st as HashlineLines,ke as Input,ct as Kbd,m as KebabIcon,Wn as LINE_TONE_TO_STATUS,lt as Label,h as LoaderIcon,je as MAX_DIGIT_SHORTCUT,qn as MEDIA_KINDS,Zn as MESSAGE_LINE_TONES,ut as Markdown,ft as MediaPreview,g as MessageIcon,gt as MessageItem,_t as MessageItemBody,vt as MessageItemGroup,yt as MessageItemHeader,bt as MessageItemStatus,Ot as MessageLines,_ as MicIcon,hn as NavTab,gn as NavTabBadge,Fe as OptionLabel,Ie as OptionList,Le as OptionRow,v as PaletteIcon,At as Panel,jt as PanelBody,Mt as PanelHeader,y as PlusIcon,Nt as Popover,Pt as PopoverAnchor,Ft as PopoverClose,It as PopoverContent,Lt as PopoverFooter,Rt as PopoverHeader,zt as PopoverTrigger,Bt as Progress,Fn as READ_COLLAPSED_LINES,Vt as RadioGroup,Ht as RadioGroupCard,Ut as RadioGroupItem,b as RefreshIcon,pt as STATUS_EDGE,xt as STATUS_GLYPH,St as STATUS_LABEL,Qn as STATUS_TONES,Gn as STATUS_TO_CHIP,Kn as STATUS_TO_DOT,Wt as ScrollArea,Gt as ScrollBar,x as SearchIcon,Kt as SectionLabel,qt as Select,Jt as SelectContent,Yt as SelectGroup,Xt as SelectItem,Zt as SelectLabel,Qt as SelectSeparator,$t as SelectTrigger,en as SelectValue,S as SendIcon,tn as Separator,nn as Sheet,rn as SheetBody,an as SheetClose,on as SheetContent,sn as SheetDescription,cn as SheetFooter,ln as SheetHeader,un as SheetOverlay,dn as SheetTitle,fn as SheetTrigger,C as ShieldIcon,we as Skeleton,q as Spinner,mt as StatusBadge,w as StopIcon,pn as StreamCursor,mn as Switch,it as SyntaxLine,at as SyntaxText,_n as Tabs,vn as TabsContent,yn as TabsList,bn as TabsTrigger,Cn as Textarea,wn as Toast,Tn as ToastAction,En as ToastClose,Dn as ToastDescription,On as ToastProvider,kn as ToastTitle,An as ToastViewport,Mn as ToolPathLink,B as Tooltip,V as TooltipContent,H as TooltipProvider,U as TooltipTrigger,T as TrashIcon,E as VolumeIcon,M as ansiSpans,z as badgeVariants,K as breadcrumbSegments,Y as buttonVariants,D as cn,Nn as collapseLines,In as compactDetails,tt as detectGrammar,ae as dialogFooterVariants,se as dotVariants,Se as dropdownMenuItemVariants,Ae as fieldVariants,et as grammarKeyOf,Me as handleOptionListKey,Ln as hashlineBody,Qe as hashlineGroups,$e as hashlineGroupsKey,nt as highlightToLines,dt as mediaKindOf,Ct as messageItemRowVariants,wt as messageItemStatusVariants,Tt as messageItemVariants,kt as messageLineVariants,Ne as optionListHint,Re as optionListVariants,Pe as optionMarker,ze as optionMarkerVariants,Be as optionRowVariants,Rn as parseFileHeader,zn as parseTaggedLine,Bn as presentHashlineLines,Vn as resultTextLines,ht as statusBadgeVariants,rt as syntaxStyleOf,xn as tabBadgeVariants,Sn as tabVariants,Hn as takeTrailingNotice,jn as toastVariants,Et as toolTone,Dt as useMessageItem,ot as useSyntaxLines};
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
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
|
+
declare function ansiSpans(line: string): AnsiSpan[];
|
|
41
|
+
//#endregion
|
|
42
|
+
export { AnsiSpan, ansiSpans };
|
|
43
|
+
//# sourceMappingURL=ansiSpans.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ansiSpans.d.cts","names":[],"sources":["../../src/lib/ansiSpans.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;UAyBiB;EACf;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;;;iBAqLc,UAAU,eAAe"}
|
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
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
|
+
export { DOOM_SYNTAX_STYLES };
|
|
77
|
+
//# sourceMappingURL=editorTheme.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editorTheme.d.cts","names":[],"sources":["../../src/lib/editorTheme.ts"],"mappings":";;;;;;cAqGa;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,31 @@
|
|
|
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
|
+
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
|
+
declare function hashlineGroups(lines: readonly PresentedLine[], fallbackPath: string | undefined): readonly HashlineGroup[];
|
|
27
|
+
/** One string that changes whenever the groups would highlight differently. */
|
|
28
|
+
declare function hashlineGroupsKey(groups: readonly HashlineGroup[]): string;
|
|
29
|
+
//#endregion
|
|
30
|
+
export { HashlineGroup, hashlineGroups, hashlineGroupsKey };
|
|
31
|
+
//# sourceMappingURL=hashlineHighlight.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hashlineHighlight.d.cts","names":[],"sources":["../../src/lib/hashlineHighlight.ts"],"mappings":";;;;;;;;;;;;UAaiB;;WAEN;;WAEA;;WAEA;;;;;;;iBAQK,eACd,gBAAgB,iBAChB,4CACU;;iBA2BI,kBAAkB,iBAAiB"}
|