@agimon-ai/doompi-web-components 0.0.1-alpha.38 → 0.0.1-alpha.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.d.mts +2 -1
  3. package/dist/index.mjs +1 -1
  4. package/dist/src/components/Drawer.cjs +2 -0
  5. package/dist/src/components/Drawer.cjs.map +1 -0
  6. package/dist/src/components/Drawer.d.mts +17 -0
  7. package/dist/src/components/Drawer.d.mts.map +1 -0
  8. package/dist/src/components/Drawer.mjs +2 -0
  9. package/dist/src/components/Drawer.mjs.map +1 -0
  10. package/package.json +3 -3
  11. package/dist/components/Accordion.d.cts +0 -11
  12. package/dist/components/Accordion.d.cts.map +0 -1
  13. package/dist/components/AnsiText.d.cts +0 -16
  14. package/dist/components/AnsiText.d.cts.map +0 -1
  15. package/dist/components/Avatar.d.cts +0 -10
  16. package/dist/components/Avatar.d.cts.map +0 -1
  17. package/dist/components/Badge.d.cts +0 -17
  18. package/dist/components/Badge.d.cts.map +0 -1
  19. package/dist/components/Breadcrumb.d.cts +0 -36
  20. package/dist/components/Breadcrumb.d.cts.map +0 -1
  21. package/dist/components/Button.d.cts +0 -24
  22. package/dist/components/Button.d.cts.map +0 -1
  23. package/dist/components/Checkbox.d.cts +0 -8
  24. package/dist/components/Checkbox.d.cts.map +0 -1
  25. package/dist/components/CodeEditor.d.cts +0 -5
  26. package/dist/components/CodeEditor.d.cts.map +0 -1
  27. package/dist/components/Collapsible.d.cts +0 -10
  28. package/dist/components/Collapsible.d.cts.map +0 -1
  29. package/dist/components/Command.d.cts +0 -41
  30. package/dist/components/Command.d.cts.map +0 -1
  31. package/dist/components/Dialog.d.cts +0 -39
  32. package/dist/components/Dialog.d.cts.map +0 -1
  33. package/dist/components/Dot.d.cts +0 -15
  34. package/dist/components/Dot.d.cts.map +0 -1
  35. package/dist/components/DropdownMenu.d.cts +0 -34
  36. package/dist/components/DropdownMenu.d.cts.map +0 -1
  37. package/dist/components/EmptyState.d.cts +0 -17
  38. package/dist/components/EmptyState.d.cts.map +0 -1
  39. package/dist/components/HashlineLines.d.cts +0 -23
  40. package/dist/components/HashlineLines.d.cts.map +0 -1
  41. package/dist/components/Input.d.cts +0 -19
  42. package/dist/components/Input.d.cts.map +0 -1
  43. package/dist/components/Kbd.d.cts +0 -6
  44. package/dist/components/Kbd.d.cts.map +0 -1
  45. package/dist/components/Label.d.cts +0 -8
  46. package/dist/components/Label.d.cts.map +0 -1
  47. package/dist/components/Markdown.d.cts +0 -17
  48. package/dist/components/Markdown.d.cts.map +0 -1
  49. package/dist/components/MediaPreview.d.cts +0 -61
  50. package/dist/components/MediaPreview.d.cts.map +0 -1
  51. package/dist/components/MessageItem.d.cts +0 -102
  52. package/dist/components/MessageItem.d.cts.map +0 -1
  53. package/dist/components/MessageLines.d.cts +0 -23
  54. package/dist/components/MessageLines.d.cts.map +0 -1
  55. package/dist/components/OptionList.d.cts +0 -49
  56. package/dist/components/OptionList.d.cts.map +0 -1
  57. package/dist/components/Panel.d.cts +0 -14
  58. package/dist/components/Panel.d.cts.map +0 -1
  59. package/dist/components/PdfPreview.d.cts +0 -52
  60. package/dist/components/PdfPreview.d.cts.map +0 -1
  61. package/dist/components/Popover.d.cts +0 -19
  62. package/dist/components/Popover.d.cts.map +0 -1
  63. package/dist/components/Progress.d.cts +0 -8
  64. package/dist/components/Progress.d.cts.map +0 -1
  65. package/dist/components/RadioGroup.d.cts +0 -15
  66. package/dist/components/RadioGroup.d.cts.map +0 -1
  67. package/dist/components/ScrollArea.d.cts +0 -13
  68. package/dist/components/ScrollArea.d.cts.map +0 -1
  69. package/dist/components/SectionLabel.d.cts +0 -6
  70. package/dist/components/SectionLabel.d.cts.map +0 -1
  71. package/dist/components/Select.d.cts +0 -19
  72. package/dist/components/Select.d.cts.map +0 -1
  73. package/dist/components/Separator.d.cts +0 -13
  74. package/dist/components/Separator.d.cts.map +0 -1
  75. package/dist/components/Sheet.d.cts +0 -35
  76. package/dist/components/Sheet.d.cts.map +0 -1
  77. package/dist/components/Skeleton.d.cts +0 -10
  78. package/dist/components/Skeleton.d.cts.map +0 -1
  79. package/dist/components/Spinner.d.cts +0 -14
  80. package/dist/components/Spinner.d.cts.map +0 -1
  81. package/dist/components/StatusBadge.d.cts +0 -23
  82. package/dist/components/StatusBadge.d.cts.map +0 -1
  83. package/dist/components/StreamCursor.d.cts +0 -6
  84. package/dist/components/StreamCursor.d.cts.map +0 -1
  85. package/dist/components/Switch.d.cts +0 -8
  86. package/dist/components/Switch.d.cts.map +0 -1
  87. package/dist/components/SyntaxText.d.cts +0 -50
  88. package/dist/components/SyntaxText.d.cts.map +0 -1
  89. package/dist/components/Tabs.d.cts +0 -36
  90. package/dist/components/Tabs.d.cts.map +0 -1
  91. package/dist/components/TerminalView.d.cts +0 -31
  92. package/dist/components/TerminalView.d.cts.map +0 -1
  93. package/dist/components/Textarea.d.cts +0 -9
  94. package/dist/components/Textarea.d.cts.map +0 -1
  95. package/dist/components/Toast.d.cts +0 -24
  96. package/dist/components/Toast.d.cts.map +0 -1
  97. package/dist/components/ToolPathLink.d.cts +0 -22
  98. package/dist/components/ToolPathLink.d.cts.map +0 -1
  99. package/dist/components/Tooltip.d.cts +0 -11
  100. package/dist/components/Tooltip.d.cts.map +0 -1
  101. package/dist/icons/icons.d.cts +0 -2
  102. package/dist/index.d.cts +0 -59
  103. package/dist/lib/ansiSpans.d.cts +0 -42
  104. package/dist/lib/ansiSpans.d.cts.map +0 -1
  105. package/dist/lib/cn.d.cts +0 -6
  106. package/dist/lib/cn.d.cts.map +0 -1
  107. package/dist/lib/collapse.d.cts +0 -14
  108. package/dist/lib/collapse.d.cts.map +0 -1
  109. package/dist/lib/editorLanguage.d.cts +0 -21
  110. package/dist/lib/editorLanguage.d.cts.map +0 -1
  111. package/dist/lib/editorTheme.d.cts +0 -76
  112. package/dist/lib/editorTheme.d.cts.map +0 -1
  113. package/dist/lib/hashlineHighlight.d.cts +0 -30
  114. package/dist/lib/hashlineHighlight.d.cts.map +0 -1
  115. package/dist/lib/hashlineView.d.cts +0 -60
  116. package/dist/lib/hashlineView.d.cts.map +0 -1
  117. package/dist/lib/media.d.cts +0 -11
  118. package/dist/lib/media.d.cts.map +0 -1
  119. package/dist/lib/optionList.d.cts +0 -21
  120. package/dist/lib/optionList.d.cts.map +0 -1
  121. package/dist/lib/syntaxHighlight.d.cts +0 -54
  122. package/dist/lib/syntaxHighlight.d.cts.map +0 -1
  123. package/dist/lib/tone.d.cts +0 -25
  124. package/dist/lib/tone.d.cts.map +0 -1
  125. package/dist/theme/apply.d.cts +0 -25
  126. package/dist/theme/apply.d.cts.map +0 -1
  127. package/dist/theme/builtinThemes.d.cts +0 -11
  128. package/dist/theme/builtinThemes.d.cts.map +0 -1
  129. package/dist/theme/derive.d.cts +0 -14
  130. package/dist/theme/derive.d.cts.map +0 -1
  131. package/dist/theme/parse.d.cts +0 -10
  132. package/dist/theme/parse.d.cts.map +0 -1
  133. package/dist/theme/piTheme.d.cts +0 -19
  134. package/dist/theme/piTheme.d.cts.map +0 -1
  135. package/dist/theme/preference.d.cts +0 -15
  136. package/dist/theme/preference.d.cts.map +0 -1
  137. package/dist/theme.d.cts +0 -8
  138. package/dist/types/editor.d.cts +0 -78
  139. package/dist/types/editor.d.cts.map +0 -1
  140. package/dist/types/theme.d.cts +0 -38
  141. package/dist/types/theme.d.cts.map +0 -1
  142. package/dist/types/tone.d.cts +0 -28
  143. package/dist/types/tone.d.cts.map +0 -1
@@ -1,10 +0,0 @@
1
- import { ComponentProps } from "react";
2
- //#region src/components/Skeleton.d.ts
3
- /**
4
- * The shape of content that has not arrived. It has no Radix counterpart; it
5
- * is a pulsing block, and it is aria-hidden because the live region that
6
- * announces the wait belongs to the surface, not to each placeholder.
7
- */
8
- export declare function Skeleton({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
9
- //#endregion
10
- //# sourceMappingURL=Skeleton.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Skeleton.d.cts","names":[],"sources":["../../src/components/Skeleton.tsx"],"mappings":";;;;;;;wBASgB,WAAW,cAAc,SAAS,wCAAqB,IAAA"}
@@ -1,14 +0,0 @@
1
- import { ComponentProps } from "react";
2
- //#region src/components/Spinner.d.ts
3
- export interface SpinnerProps extends ComponentProps<'svg'> {
4
- /**
5
- * What the wait is for. Given one, the spinner announces itself as a live
6
- * status instead of staying silent, which is the difference between a
7
- * screen reader saying "loading providers" and saying nothing at all.
8
- */
9
- label?: string;
10
- }
11
- /** A turning loader in the current text colour; decorative unless it is given a label. */
12
- export declare function Spinner({ className, label, ...props }: SpinnerProps): import("react").JSX.Element;
13
- //#endregion
14
- //# sourceMappingURL=Spinner.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Spinner.d.cts","names":[],"sources":["../../src/components/Spinner.tsx"],"mappings":";;iBAKiB,qBAAqB;;;;;;EAMpC;;;wBAIc,UAAU,WAAW,UAAU,SAAS,+BAAY,IAAA"}
@@ -1,23 +0,0 @@
1
- import { StatusTone as StatusTone$1 } from "../types/tone.cjs";
2
- import { ComponentProps } from "react";
3
- import { VariantProps } from "class-variance-authority";
4
- //#region src/components/StatusBadge.d.ts
5
- export declare const statusBadgeVariants: (props?: ({
6
- tone?: "accent" | "error" | "info" | "neutral" | "ok" | "running" | null | undefined;
7
- size?: "lg" | "md" | "sm" | "xs" | null | undefined;
8
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
- export type StatusTone = StatusTone$1;
10
- /**
11
- * The border a card wears for a status, the same tint family as the badge.
12
- * MessageItem builds its frame variants from this table, so a tone's edge is
13
- * named once and a card and its badge can never disagree about it.
14
- */
15
- export declare const STATUS_EDGE: Readonly<Record<StatusTone, string>>;
16
- export interface StatusBadgeProps extends ComponentProps<'span'>, VariantProps<typeof statusBadgeVariants> {
17
- /** Render the child element instead of a <span>, so a link can look like a pill. */
18
- asChild?: boolean;
19
- }
20
- /** The tinted outcome pill: RUNNING, OK, ERROR and their kin, as every run card draws it. */
21
- export declare function StatusBadge({ className, tone, size, asChild, ...props }: StatusBadgeProps): import("react").JSX.Element;
22
- //#endregion
23
- //# sourceMappingURL=StatusBadge.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StatusBadge.d.cts","names":[],"sources":["../../src/components/StatusBadge.tsx"],"mappings":";;;;qBAOa,sBAAmB;;;6CAqB/B;YAEW,aAAa;;;;;;qBAOZ,aAAa,SAAS,OAAO;iBASzB,yBAAyB,wBAAwB,oBAAoB;;EAEpF;;;wBAIc,cAAc,WAAW,MAAM,MAAM,YAAoB,SAAS,mCAAgB,IAAA"}
@@ -1,6 +0,0 @@
1
- import { ComponentProps } from "react";
2
- //#region src/components/StreamCursor.d.ts
3
- /** The blinking block that marks text still arriving. */
4
- export declare function StreamCursor({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
5
- //#endregion
6
- //# sourceMappingURL=StreamCursor.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"StreamCursor.d.cts","names":[],"sources":["../../src/components/StreamCursor.tsx"],"mappings":";;;wBAKgB,eAAe,cAAc,SAAS,yCAAsB,IAAA"}
@@ -1,8 +0,0 @@
1
- import { Switch } from "radix-ui";
2
- import { ComponentProps } from "react";
3
- //#region src/components/Switch.d.ts
4
- /** An on/off track; use it where the change takes effect immediately, a checkbox where it needs a save. */
5
- declare function Switch$1({ className, ...props }: ComponentProps<typeof Switch.Root>): import("react").JSX.Element;
6
- //#endregion
7
- export { Switch$1 as Switch };
8
- //# sourceMappingURL=Switch.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Switch.d.cts","names":[],"sources":["../../src/components/Switch.tsx"],"mappings":";;;;iBAMgB,WAAS,cAAc,SAAS,sBAAsB,OAAgB,wBAAK,IAAA"}
@@ -1,50 +0,0 @@
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
- export 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
- export declare function useSyntaxLines(text: string, query?: SyntaxQuery): SyntaxLines | undefined;
37
- export 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
- export declare function SyntaxLine({ spans, text, ...props }: SyntaxLineProps): import("react").JSX.Element;
44
- export 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
- export declare function SyntaxText({ className, text, path, grammar, ...props }: SyntaxTextProps): import("react").JSX.Element;
49
- //#endregion
50
- //# sourceMappingURL=SyntaxText.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SyntaxText.d.cts","names":[],"sources":["../../src/components/SyntaxText.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;iBA8BiB;;EAEf;;EAEA,UAAU;;;;;;;;;;wBAWI,eAAe,cAAc,QAAO,cAAmB;iBAyBtD,wBAAwB,KAAK;;EAE5C,iBAAiB;EACjB;;;wBAIc,aAAa,OAAO,SAAS,SAAS,kCAAe,IAAA;iBAapD,wBAAwB,KAAK,oCAAoC;EAChF;;;wBAIc,aAAa,WAAW,MAAM,MAAM,YAAY,SAAS,kCAAe,IAAA"}
@@ -1,36 +0,0 @@
1
- import { Tabs } from "radix-ui";
2
- import { ComponentProps } from "react";
3
- import { VariantProps } from "class-variance-authority";
4
- //#region src/components/Tabs.d.ts
5
- /**
6
- * The look a tab wears, whether Radix drives it or a router link does. It is
7
- * exported because the cockpit's own tabs navigate routes rather than swap
8
- * panels, and a link that looks like a tab must not be a second implementation.
9
- */
10
- export declare const tabVariants: (props?: ({
11
- active?: boolean | null | undefined;
12
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- /** The count a tab carries; it inverts on the active tab so it stays readable on the tint. */
14
- export declare const tabBadgeVariants: (props?: ({
15
- active?: boolean | null | undefined;
16
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
17
- export interface NavTabProps extends ComponentProps<'a'>, VariantProps<typeof tabVariants> {
18
- /** Render the child element instead of an <a>, so a router Link can be the tab. */
19
- asChild?: boolean;
20
- }
21
- /**
22
- * A tab that navigates. Radix Tabs owns panels and roving focus over content
23
- * it renders; a route-driven tab strip has neither, so it gets the styling and
24
- * leaves the semantics to the router.
25
- */
26
- export declare function NavTab({ className, active, asChild, ...props }: NavTabProps): import("react").JSX.Element;
27
- /** The count beside a tab's label. */
28
- export declare function NavTabBadge({ className, active, ...props }: ComponentProps<'span'> & VariantProps<typeof tabBadgeVariants>): import("react").JSX.Element;
29
- /** Radix Tabs, for a surface that swaps panels in place rather than navigating. */
30
- declare function Tabs$1(props: ComponentProps<typeof Tabs.Root>): import("react").JSX.Element;
31
- export declare function TabsList({ className, ...props }: ComponentProps<typeof Tabs.List>): import("react").JSX.Element;
32
- export declare function TabsTrigger({ className, ...props }: ComponentProps<typeof Tabs.Trigger>): import("react").JSX.Element;
33
- export declare function TabsContent({ className, ...props }: ComponentProps<typeof Tabs.Content>): import("react").JSX.Element;
34
- //#endregion
35
- export { Tabs$1 as Tabs };
36
- //# sourceMappingURL=Tabs.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tabs.d.cts","names":[],"sources":["../../src/components/Tabs.tsx"],"mappings":";;;;;;;;;qBAYa,cAAW;;6CAWvB;;qBAGY,mBAAgB;;6CAQ5B;iBAEgB,oBAAoB,qBAAqB,oBAAoB;;EAE5E;;;;;;;wBAQc,SAAS,WAAW,QAAQ,YAAoB,SAAS,8BAAW,IAAA;;wBAapE,cACd,WACA,WACG,SACF,yBAAyB,oBAAoB,oCAAiB,IAAA;;iBAKjD,OAAK,OAAO,sBAAsB,KAAc,wBAAK,IAAA;wBAIrD,WAAW,cAAc,SAAS,sBAAsB,KAAc,wBAAK,IAAA;wBAI3E,cAAc,cAAc,SAAS,sBAAsB,KAAc,2BAAQ,IAAA;wBAcjF,cAAc,cAAc,SAAS,sBAAsB,KAAc,2BAAQ,IAAA"}
@@ -1,31 +0,0 @@
1
- import { ComponentProps } from "react";
2
- //#region src/components/TerminalView.d.ts
3
- /**
4
- * A terminal emulator, for output that is a screen rather than a document.
5
- *
6
- * `AnsiText` beside it renders colour in text that happens to carry escapes.
7
- * This is the other thing: a full VT emulator that keeps a cursor, a grid and
8
- * an alternate screen, so a prompt, a progress bar or a full-screen program
9
- * behaves the way it would in a shell. Give it the bytes a pty produced and it
10
- * draws them; take its `onData` and you have what the reader typed.
11
- *
12
- * The emulator is loaded on mount rather than with the bundle. It is not a
13
- * small dependency, and most surfaces never show a terminal.
14
- */
15
- export interface TerminalHandle {
16
- /** Writes pane bytes, escapes and all. */
17
- write(data: Uint8Array | string): void;
18
- /** Clears the screen and scrollback, for a stream that restarted. */
19
- reset(): void;
20
- }
21
- export interface TerminalViewProps extends Omit<ComponentProps<'div'>, 'children' | 'onData' | 'ref'> {
22
- /** What the reader typed, already encoded the way a terminal sends it. */
23
- onData?: (text: string) => void;
24
- /** Called once the emulator is live, so a caller can start feeding it. */
25
- onReady?: () => void;
26
- ref?: React.Ref<TerminalHandle>;
27
- fontSize?: number;
28
- }
29
- export declare function TerminalView({ onData, onReady, ref, fontSize, className, ...props }: TerminalViewProps): import("react").JSX.Element;
30
- //#endregion
31
- //# sourceMappingURL=TerminalView.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TerminalView.d.cts","names":[],"sources":["../../src/components/TerminalView.tsx"],"mappings":";;;;;;;;;;;;;;iBAkBiB;;EAEf,MAAM,MAAM;;EAEZ;;iBAGe,0BAA0B,KAAK;;EAE9C,UAAU;;EAEV;EACA,MAAM,MAAM,IAAI;EAChB;;wBAWc,eACd,QACA,SACA,KACA,UACA,cACG,SACF,oCAAiB,IAAA"}
@@ -1,9 +0,0 @@
1
- import { fieldVariants } from "./Input.cjs";
2
- import { ComponentProps } from "react";
3
- import { VariantProps } from "class-variance-authority";
4
- //#region src/components/Textarea.d.ts
5
- export interface TextareaProps extends Omit<ComponentProps<'textarea'>, 'size'>, VariantProps<typeof fieldVariants> {}
6
- /** The multi-line field, styled as the Input; `bare` drops the well for a composer that draws its own. */
7
- export declare function Textarea({ className, variant, size, ...props }: TextareaProps): import("react").JSX.Element;
8
- //#endregion
9
- //# sourceMappingURL=Textarea.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Textarea.d.cts","names":[],"sources":["../../src/components/Textarea.tsx"],"mappings":";;;;iBAMiB,sBAAsB,KAAK,qCAAqC,oBAAoB;;wBAGrF,WAAW,WAAW,SAAS,SAAS,SAAS,gCAAa,IAAA"}
@@ -1,24 +0,0 @@
1
- import { Toast } from "radix-ui";
2
- import { ComponentProps } from "react";
3
- import { VariantProps } from "class-variance-authority";
4
- //#region src/components/Toast.d.ts
5
- /**
6
- * A transient notice. Radix owns the part that is easy to get wrong: it
7
- * announces through a live region, pauses its timer on hover and on window
8
- * blur, and restores focus when it leaves. Mount one ToastProvider and one
9
- * ToastViewport per page.
10
- */
11
- export declare function ToastProvider(props: ComponentProps<typeof Toast.Provider>): import("react").JSX.Element;
12
- export declare function ToastViewport({ className, ...props }: ComponentProps<typeof Toast.Viewport>): import("react").JSX.Element;
13
- export declare const toastVariants: (props?: ({
14
- tone?: "accent" | "error" | "info" | "neutral" | "ok" | "running" | null | undefined;
15
- } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
- export interface ToastProps extends ComponentProps<typeof Toast.Root>, VariantProps<typeof toastVariants> {}
17
- declare function Toast$1({ className, tone, ...props }: ToastProps): import("react").JSX.Element;
18
- export declare function ToastTitle({ className, ...props }: ComponentProps<typeof Toast.Title>): import("react").JSX.Element;
19
- export declare function ToastDescription({ className, ...props }: ComponentProps<typeof Toast.Description>): import("react").JSX.Element;
20
- export declare function ToastAction(props: ComponentProps<typeof Toast.Action>): import("react").JSX.Element;
21
- export declare function ToastClose({ className, ...props }: ComponentProps<typeof Toast.Close>): import("react").JSX.Element;
22
- //#endregion
23
- export { Toast$1 as Toast };
24
- //# sourceMappingURL=Toast.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Toast.d.cts","names":[],"sources":["../../src/components/Toast.tsx"],"mappings":";;;;;;;;;;wBAcgB,cAAc,OAAO,sBAAsB,MAAe,4BAAS,IAAA;wBAInE,gBAAgB,cAAc,SAAS,sBAAsB,MAAe,4BAAS,IAAA;qBAUxF,gBAAa;;6CAezB;iBAEgB,mBAAmB,sBAAsB,MAAe,OAAO,oBAAoB;iBAEpF,UAAQ,WAAW,SAAS,SAAS,6BAAU,IAAA;wBAI/C,aAAa,cAAc,SAAS,sBAAsB,MAAe,yBAAM,IAAA;wBAU/E,mBAAmB,cAAc,SAAS,sBAAsB,MAAe,+BAAY,IAAA;wBAU3F,YAAY,OAAO,sBAAsB,MAAe,0BAAO,IAAA;wBAI/D,aAAa,cAAc,SAAS,sBAAsB,MAAe,yBAAM,IAAA"}
@@ -1,22 +0,0 @@
1
- //#region src/components/ToolPathLink.d.ts
2
- /**
3
- * The file path in a tool call's header, as a link when something can open it.
4
- *
5
- * A read, a write and an edit all put a path in the same place, and a reader
6
- * who wants to see that file should not have to go looking for it in a file
7
- * list. Whether the path can be opened is not this component's business: the
8
- * host resolves it against whatever plugin owns files, and hands the answer
9
- * down as `onOpen`. Without one the path stays exactly what it was, plain
10
- * text, because a link that opens nothing is worse than no link.
11
- */
12
- export interface ToolPathLinkProps {
13
- path: string;
14
- /** Opens the file; omitted when nothing installed can show it. */
15
- onOpen?: () => void;
16
- className?: string;
17
- /** Defaults to `tool-path`, which is how a test finds the link inside a call header. */
18
- 'data-testid'?: string;
19
- }
20
- export declare function ToolPathLink({ path, onOpen, className, 'data-testid': testId, ...props }: ToolPathLinkProps): import("react").JSX.Element;
21
- //#endregion
22
- //# sourceMappingURL=ToolPathLink.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToolPathLink.d.cts","names":[],"sources":["../../src/components/ToolPathLink.tsx"],"mappings":";;;;;;;;;;;iBAaiB;EACf;;EAEA;EACA;;EAEA;;wBAGc,eACd,MACA,QACA,0BACe,WACZ,SACF,oCAAiB,IAAA"}
@@ -1,11 +0,0 @@
1
- import { Tooltip } from "radix-ui";
2
- import { ComponentProps } from "react";
3
- //#region src/components/Tooltip.d.ts
4
- /** Mount once near the root; every Tooltip below shares its delay. */
5
- export declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof Tooltip.Provider>): import("react").JSX.Element;
6
- declare function Tooltip$1(props: ComponentProps<typeof Tooltip.Root>): import("react").JSX.Element;
7
- export declare function TooltipTrigger(props: ComponentProps<typeof Tooltip.Trigger>): import("react").JSX.Element;
8
- export declare function TooltipContent({ className, sideOffset, children, ...props }: ComponentProps<typeof Tooltip.Content>): import("react").JSX.Element;
9
- //#endregion
10
- export { Tooltip$1 as Tooltip };
11
- //# sourceMappingURL=Tooltip.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Tooltip.d.cts","names":[],"sources":["../../src/components/Tooltip.tsx"],"mappings":";;;;wBAMgB,kBAAkB,kBAAwB,SAAS,sBAAsB,QAAiB,4BAAS,IAAA;iBAInG,UAAQ,OAAO,sBAAsB,QAAiB,wBAAK,IAAA;wBAI3D,eAAe,OAAO,sBAAsB,QAAiB,2BAAQ,IAAA;wBAIrE,iBACd,WACA,YACA,aACG,SACF,sBAAsB,QAAiB,2BAAQ,IAAA"}
@@ -1,2 +0,0 @@
1
- import { Activity as ActivityIcon, AudioLines as AudioLinesIcon, BookmarkPlus as BookmarkPlusIcon, Check as CheckIcon, ChevronDown as ChevronDownIcon, ChevronRight as ChevronRightIcon, ChevronUp as ChevronUpIcon, CircleAlert as AlertIcon, Copy as CopyIcon, CornerDownLeft as EnterIcon, ExternalLink as ExternalLinkIcon, FileText as FileIcon, GitBranch as BranchIcon, GitFork as ForkIcon, Loader2 as LoaderIcon, MessageCircle as MessageIcon, Mic as MicIcon, MoreVertical as KebabIcon, Palette as PaletteIcon, Pencil as EditIcon, Plus as PlusIcon, Quote as QuoteIcon, RefreshCw as RefreshIcon, Rewind as RewindIcon, Search as SearchIcon, Send as SendIcon, Settings as GearIcon, ShieldCheck as ShieldIcon, Square as StopIcon, Trash2 as TrashIcon, UserRound as UserIcon, Volume2 as VolumeIcon, X as CloseIcon } from "lucide-react";
2
- export { ActivityIcon, AlertIcon, AudioLinesIcon, BookmarkPlusIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, ForkIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, QuoteIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, UserIcon, VolumeIcon };
package/dist/index.d.cts DELETED
@@ -1,59 +0,0 @@
1
- import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./components/Accordion.cjs";
2
- import { AnsiLine, AnsiLineProps, AnsiText, AnsiTextProps } from "./components/AnsiText.cjs";
3
- import { Avatar, AvatarFallback, AvatarImage } from "./components/Avatar.cjs";
4
- import { ACCENT_TONES, AccentTone, CHIP_TONES, ChipTone, DOT_TONES, MESSAGE_LINE_TONES, STATUS_TONES } from "./types/tone.cjs";
5
- import { Badge, BadgeProps, BadgeTone, badgeVariants } from "./components/Badge.cjs";
6
- import { BREADCRUMB_ELLIPSIS, Breadcrumb, BreadcrumbProps, breadcrumbSegments } from "./components/Breadcrumb.cjs";
7
- import { Button, ButtonProps, ButtonSize, ButtonVariant, buttonVariants } from "./components/Button.cjs";
8
- import { Dialog, DialogBody, DialogClose, DialogContent, DialogContentProps, DialogDescription, DialogFooter, DialogFooterProps, DialogHeader, DialogHeaderProps, DialogTitle, DialogTrigger, dialogFooterVariants } from "./components/Dialog.cjs";
9
- import { Dot, DotProps, DotTone, dotVariants } from "./components/Dot.cjs";
10
- import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, dropdownMenuItemVariants } from "./components/DropdownMenu.cjs";
11
- import { Checkbox } from "./components/Checkbox.cjs";
12
- import { CodeEditorController, CodeEditorProps, EditorEdit, EditorMarkedRange, EditorSelectionRange, EditorTextRange, EditorViewportRectangle, MEDIA_KINDS, MediaKind } from "./types/editor.cjs";
13
- import { CodeEditor } from "./components/CodeEditor.cjs";
14
- import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "./components/Collapsible.cjs";
15
- import { FieldSize, FieldVariant, Input, InputProps, fieldVariants } from "./components/Input.cjs";
16
- import { OptionLabel, OptionList, OptionListProps, OptionRow, OptionRowProps, optionListVariants, optionMarkerVariants, optionRowVariants } from "./components/OptionList.cjs";
17
- import { CommandDialog, CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList } from "./components/Command.cjs";
18
- import { EmptyState, EmptyStateProps } from "./components/EmptyState.cjs";
19
- import { GREP_COLLAPSED_LINES, HashlineBody, HashlineResult, HashlineResultKind, PresentedLine, READ_COLLAPSED_LINES, TaggedLine, TaggedLineMarker, compactDetails, hashlineBody, parseFileHeader, parseTaggedLine, presentHashlineLines, resultTextLines, takeTrailingNotice } from "./lib/hashlineView.cjs";
20
- import { HashlineLines, HashlineLinesProps } from "./components/HashlineLines.cjs";
21
- import { Kbd } from "./components/Kbd.cjs";
22
- import { Label } from "./components/Label.cjs";
23
- import { Markdown } from "./components/Markdown.cjs";
24
- import { PdfNormalizedRectangle, PdfPageRegion, PdfPageState, PdfPreview, PdfPreviewController, PdfPreviewProps, resolvePdfViewportRegion } from "./components/PdfPreview.cjs";
25
- import { MediaFrameCapture, MediaFrameMetadata, MediaIntrinsicSize, MediaPlaybackState, MediaPreview, MediaPreviewController, MediaPreviewProps } from "./components/MediaPreview.cjs";
26
- import { STATUS_EDGE, StatusBadge, StatusBadgeProps, StatusTone, statusBadgeVariants } from "./components/StatusBadge.cjs";
27
- import { MessageItem, MessageItemBody, MessageItemGroup, MessageItemGroupProps, MessageItemHeader, MessageItemHeaderProps, MessageItemProps, MessageItemState, MessageItemStatus, MessageItemStatusProps, STATUS_GLYPH, STATUS_LABEL, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, toolTone, useMessageItem } from "./components/MessageItem.cjs";
28
- import { MessageLine, MessageLineTone, MessageLines, MessageLinesProps, messageLineVariants } from "./components/MessageLines.cjs";
29
- import { Panel, PanelBody, PanelHeader, PanelProps } from "./components/Panel.cjs";
30
- import { Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger } from "./components/Popover.cjs";
31
- import { Progress } from "./components/Progress.cjs";
32
- import { RadioGroup, RadioGroupCard, RadioGroupItem } from "./components/RadioGroup.cjs";
33
- import { ScrollArea, ScrollBar } from "./components/ScrollArea.cjs";
34
- import { SectionLabel } from "./components/SectionLabel.cjs";
35
- import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "./components/Select.cjs";
36
- import { Separator } from "./components/Separator.cjs";
37
- import { Sheet, SheetBody, SheetClose, SheetContent, SheetContentProps, SheetDescription, SheetFooter, SheetHeader, SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger } from "./components/Sheet.cjs";
38
- import { Skeleton } from "./components/Skeleton.cjs";
39
- import { Spinner, SpinnerProps } from "./components/Spinner.cjs";
40
- import { StreamCursor } from "./components/StreamCursor.cjs";
41
- import { Switch } from "./components/Switch.cjs";
42
- import { GrammarKey, grammarKeyOf } from "./lib/editorLanguage.cjs";
43
- import { GrammarQuery, SyntaxLines, SyntaxSpan, SyntaxToken, detectGrammar, highlightToLines, syntaxStyleOf } from "./lib/syntaxHighlight.cjs";
44
- import { SyntaxLine, SyntaxLineProps, SyntaxQuery, SyntaxText, SyntaxTextProps, useSyntaxLines } from "./components/SyntaxText.cjs";
45
- import { NavTab, NavTabBadge, NavTabProps, Tabs, TabsContent, TabsList, TabsTrigger, tabBadgeVariants, tabVariants } from "./components/Tabs.cjs";
46
- import { TerminalHandle, TerminalView, TerminalViewProps } from "./components/TerminalView.cjs";
47
- import { Textarea, TextareaProps } from "./components/Textarea.cjs";
48
- import { Toast, ToastAction, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, toastVariants } from "./components/Toast.cjs";
49
- import { ToolPathLink, ToolPathLinkProps } from "./components/ToolPathLink.cjs";
50
- import { ActivityIcon, AlertIcon, AudioLinesIcon, BookmarkPlusIcon, BranchIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, CloseIcon, CopyIcon, EditIcon, EnterIcon, ExternalLinkIcon, FileIcon, ForkIcon, GearIcon, KebabIcon, LoaderIcon, MessageIcon, MicIcon, PaletteIcon, PlusIcon, QuoteIcon, RefreshIcon, RewindIcon, SearchIcon, SendIcon, ShieldIcon, StopIcon, TrashIcon, UserIcon, VolumeIcon } from "./icons/icons.cjs";
51
- import { AnsiSpan, ansiSpans } from "./lib/ansiSpans.cjs";
52
- import { cn } from "./lib/cn.cjs";
53
- import { CollapsedLines, collapseLines } from "./lib/collapse.cjs";
54
- import { HashlineGroup, hashlineGroups, hashlineGroupsKey } from "./lib/hashlineHighlight.cjs";
55
- import { mediaKindOf } from "./lib/media.cjs";
56
- import { MAX_DIGIT_SHORTCUT, handleOptionListKey, optionListHint, optionMarker } from "./lib/optionList.cjs";
57
- import { CHIP_TO_STATUS, LINE_TONE_TO_STATUS, STATUS_TO_CHIP, STATUS_TO_DOT } from "./lib/tone.cjs";
58
- import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./components/Tooltip.cjs";
59
- export { ACCENT_TONES, type AccentTone, Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityIcon, AlertIcon, AnsiLine, type AnsiLineProps, type AnsiSpan, AnsiText, type AnsiTextProps, AudioLinesIcon, Avatar, AvatarFallback, AvatarImage, BREADCRUMB_ELLIPSIS, Badge, type BadgeProps, type BadgeTone, BookmarkPlusIcon, BranchIcon, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonSize, type ButtonVariant, CHIP_TONES, CHIP_TO_STATUS, CheckIcon, Checkbox, ChevronDownIcon, ChevronRightIcon, ChevronUpIcon, type ChipTone, CloseIcon, CodeEditor, type CodeEditorController, type CodeEditorProps, type CollapsedLines, Collapsible, CollapsibleContent, CollapsibleTrigger, CommandDialog, type CommandDialogProps, CommandEmpty, CommandFooter, CommandGroup, CommandGroupLabel, CommandHeader, CommandInput, CommandItem, CommandItemLabel, CommandList, CopyIcon, DOT_TONES, Dialog, DialogBody, DialogClose, DialogContent, type DialogContentProps, DialogDescription, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogTitle, DialogTrigger, Dot, type DotProps, type DotTone, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditIcon, type EditorEdit, type EditorMarkedRange, type EditorSelectionRange, type EditorTextRange, type EditorViewportRectangle, EmptyState, type EmptyStateProps, EnterIcon, ExternalLinkIcon, type FieldSize, type FieldVariant, FileIcon, ForkIcon, GREP_COLLAPSED_LINES, GearIcon, type GrammarKey, type GrammarQuery, type HashlineBody, type HashlineGroup, HashlineLines, type HashlineLinesProps, type HashlineResult, type HashlineResultKind, Input, type InputProps, Kbd, KebabIcon, LINE_TONE_TO_STATUS, Label, LoaderIcon, MAX_DIGIT_SHORTCUT, MEDIA_KINDS, MESSAGE_LINE_TONES, Markdown, type MediaFrameCapture, type MediaFrameMetadata, type MediaIntrinsicSize, type MediaKind, type MediaPlaybackState, MediaPreview, type MediaPreviewController, type MediaPreviewProps, MessageIcon, MessageItem, MessageItemBody, MessageItemGroup, type MessageItemGroupProps, MessageItemHeader, type MessageItemHeaderProps, type MessageItemProps, type MessageItemState, MessageItemStatus, type MessageItemStatusProps, type MessageLine, type MessageLineTone, MessageLines, type MessageLinesProps, MicIcon, NavTab, NavTabBadge, type NavTabProps, OptionLabel, OptionList, type OptionListProps, OptionRow, type OptionRowProps, PaletteIcon, Panel, PanelBody, PanelHeader, type PanelProps, type PdfNormalizedRectangle, type PdfPageRegion, type PdfPageState, PdfPreview, type PdfPreviewController, type PdfPreviewProps, PlusIcon, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverFooter, PopoverHeader, PopoverTrigger, type PresentedLine, Progress, QuoteIcon, READ_COLLAPSED_LINES, RadioGroup, RadioGroupCard, RadioGroupItem, RefreshIcon, RewindIcon, STATUS_EDGE, STATUS_GLYPH, STATUS_LABEL, STATUS_TONES, STATUS_TO_CHIP, STATUS_TO_DOT, ScrollArea, ScrollBar, SearchIcon, SectionLabel, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, SendIcon, Separator, Sheet, SheetBody, SheetClose, SheetContent, type SheetContentProps, SheetDescription, SheetFooter, SheetHeader, type SheetHeaderProps, SheetOverlay, SheetTitle, SheetTrigger, ShieldIcon, Skeleton, Spinner, type SpinnerProps, StatusBadge, type StatusBadgeProps, type StatusTone, StopIcon, StreamCursor, Switch, SyntaxLine, type SyntaxLineProps, type SyntaxLines, type SyntaxQuery, type SyntaxSpan, SyntaxText, type SyntaxTextProps, type SyntaxToken, Tabs, TabsContent, TabsList, TabsTrigger, type TaggedLine, type TaggedLineMarker, type TerminalHandle, TerminalView, type TerminalViewProps, Textarea, type TextareaProps, Toast, ToastAction, ToastClose, ToastDescription, type ToastProps, ToastProvider, ToastTitle, ToastViewport, ToolPathLink, type ToolPathLinkProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TrashIcon, UserIcon, VolumeIcon, ansiSpans, badgeVariants, breadcrumbSegments, buttonVariants, cn, collapseLines, compactDetails, detectGrammar, dialogFooterVariants, dotVariants, dropdownMenuItemVariants, fieldVariants, grammarKeyOf, handleOptionListKey, hashlineBody, hashlineGroups, hashlineGroupsKey, highlightToLines, mediaKindOf, messageItemRowVariants, messageItemStatusVariants, messageItemVariants, messageLineVariants, optionListHint, optionListVariants, optionMarker, optionMarkerVariants, optionRowVariants, parseFileHeader, parseTaggedLine, presentHashlineLines, resolvePdfViewportRegion, resultTextLines, statusBadgeVariants, syntaxStyleOf, tabBadgeVariants, tabVariants, takeTrailingNotice, toastVariants, toolTone, useMessageItem, useSyntaxLines };
@@ -1,42 +0,0 @@
1
- //#region src/lib/ansiSpans.d.ts
2
- /**
3
- * The escapes a captured terminal screen carries, turned into spans.
4
- *
5
- * WHY THIS EXISTS:
6
- * Two kinds of output reach the cockpit with a terminal's colour still in it.
7
- * A workflow captures a tmux pane with `-e`, and a runner's log file keeps the
8
- * palette on purpose, stripping only cursor moves and redraws. The browser has
9
- * no terminal, and the cockpit carries no terminal emulator, so the sequences
10
- * are read here and rendered as ordinary spans. It lives in the component
11
- * library because both readers need it and neither may import the other.
12
- *
13
- * WHAT IT UNDERSTANDS:
14
- * SGR (`ESC [ … m`) only: the eight base colours and their bright forms, 256
15
- * colour and truecolour, and bold, faint, italic, underline and inverse. Every
16
- * other sequence is dropped rather than printed, because a cursor move or a
17
- * clear that arrives as visible junk is worse than one that arrives as
18
- * nothing: the screen is a snapshot, and the next one repaints it anyway.
19
- *
20
- * The named colours become theme tokens rather than the child's own palette,
21
- * so a run's output sits in the cockpit's colours instead of fighting them.
22
- * Only 256-colour and truecolour, which name a colour no token can stand in
23
- * for, are rendered as themselves.
24
- */
25
- /** One run of text with the attributes in force when it was printed. */
26
- export interface AnsiSpan {
27
- text: string;
28
- /** Theme class for a named colour, absent when the colour is the default. */
29
- className?: string;
30
- /** An exact colour the child asked for, as `rgb(r g b)`; only 256/truecolour set this. */
31
- color?: string;
32
- bold?: boolean;
33
- faint?: boolean;
34
- italic?: boolean;
35
- underline?: boolean;
36
- /** Foreground and background swapped, which a TUI uses for selection and cursors. */
37
- inverse?: boolean;
38
- }
39
- /** One line of captured screen as spans, with every unreadable sequence dropped. */
40
- export declare function ansiSpans(line: string): AnsiSpan[];
41
- //#endregion
42
- //# sourceMappingURL=ansiSpans.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ansiSpans.d.cts","names":[],"sources":["../../src/lib/ansiSpans.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;iBAyBiB;EACf;;EAEA;;EAEA;EACA;EACA;EACA;EACA;;EAEA;;;wBAqLc,UAAU,eAAe"}
package/dist/lib/cn.d.cts DELETED
@@ -1,6 +0,0 @@
1
- import { ClassValue } from "clsx";
2
- //#region src/lib/cn.d.ts
3
- /** Merges class lists the shadcn way: conditional joins, then Tailwind conflict resolution. */
4
- export declare function cn(...inputs: ClassValue[]): string;
5
- //#endregion
6
- //# sourceMappingURL=cn.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cn.d.cts","names":[],"sources":["../../src/lib/cn.ts"],"mappings":";;;wBAIgB,MAAM,QAAQ"}
@@ -1,14 +0,0 @@
1
- //#region src/lib/collapse.d.ts
2
- export interface CollapsedLines<T> {
3
- shown: T[];
4
- /** How many lines the collapse holds back; 0 once expanded or when nothing was clipped. */
5
- hidden: number;
6
- }
7
- /**
8
- * The first `limit` lines until expanded. Head-only on purpose: a card that
9
- * shows the tail (a running command) keeps its own slice and reports the
10
- * count it hid.
11
- */
12
- export declare function collapseLines<T>(lines: readonly T[], limit: number, expanded: boolean): CollapsedLines<T>;
13
- //#endregion
14
- //# sourceMappingURL=collapse.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collapse.d.cts","names":[],"sources":["../../src/lib/collapse.ts"],"mappings":";iBAAiB,eAAe;EAC9B,OAAO;;EAEP;;;;;;;wBAQc,cAAc,GAAG,gBAAgB,KAAK,eAAe,oBAAoB,eAAe"}
@@ -1,21 +0,0 @@
1
- import "@codemirror/state";
2
- //#region src/lib/editorLanguage.d.ts
3
- /**
4
- * Which grammar a file gets, and how it arrives.
5
- *
6
- * The two halves are apart on purpose. Naming the grammar is a pure lookup a
7
- * caller can run before deciding anything, and loading it is a dynamic import
8
- * so a session that only ever opens Markdown never downloads the JavaScript
9
- * parser. Nothing here imports CodeMirror at runtime: every specifier below is
10
- * either a type, which erases, or inside an `import()` the bundler splits into
11
- * its own chunk.
12
- */
13
- export type GrammarKey = 'javascript' | 'jsx' | 'typescript' | 'tsx' | 'json' | 'markdown' | 'html' | 'css' | 'python' | 'yaml' | 'shell' | 'toml' | 'dockerfile';
14
- /**
15
- * The grammar for a path, or undefined for a file the editor shows as plain
16
- * text. A name is tried whole before it is tried as a suffix, so
17
- * `Dockerfile.dev` is a Dockerfile and not a file with a `dev` extension.
18
- */
19
- export declare function grammarKeyOf(filePath: string): GrammarKey | undefined;
20
- //#endregion
21
- //# sourceMappingURL=editorLanguage.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editorLanguage.d.cts","names":[],"sources":["../../src/lib/editorLanguage.ts"],"mappings":";;;;;;;;;;;;YAcY;;;;;;wBA6DI,aAAa,mBAAmB"}
@@ -1,76 +0,0 @@
1
- //#region src/lib/editorTheme.d.ts
2
- /**
3
- * The syntax colours, named by what they mark rather than by tag, so the
4
- * pairing with Lezer's tags stays next to the editor that imports them and
5
- * this table can be read as a palette.
6
- */
7
- export declare const DOOM_SYNTAX_STYLES: {
8
- readonly comment: {
9
- readonly color: 'var(--doom-faint)';
10
- readonly fontStyle: 'italic';
11
- };
12
- readonly keyword: {
13
- readonly color: 'var(--doom-magenta)';
14
- };
15
- readonly constant: {
16
- readonly color: 'var(--doom-violet)';
17
- };
18
- readonly literal: {
19
- readonly color: 'var(--doom-orange)';
20
- };
21
- readonly string: {
22
- readonly color: 'var(--doom-green)';
23
- };
24
- readonly regexp: {
25
- readonly color: 'var(--doom-teal)';
26
- };
27
- readonly operator: {
28
- readonly color: 'var(--doom-blue)';
29
- };
30
- readonly punctuation: {
31
- readonly color: 'var(--doom-dim)';
32
- };
33
- readonly variable: {
34
- readonly color: 'var(--doom-text)';
35
- };
36
- readonly property: {
37
- readonly color: 'var(--doom-cyan)';
38
- };
39
- readonly callable: {
40
- readonly color: 'var(--doom-blue)';
41
- };
42
- readonly type: {
43
- readonly color: 'var(--doom-yellow)';
44
- };
45
- readonly tag: {
46
- readonly color: 'var(--doom-red)';
47
- };
48
- readonly attribute: {
49
- readonly color: 'var(--doom-yellow)';
50
- };
51
- readonly meta: {
52
- readonly color: 'var(--doom-faint)';
53
- };
54
- readonly heading: {
55
- readonly color: 'var(--doom-hi)';
56
- readonly fontWeight: 'bold';
57
- };
58
- readonly link: {
59
- readonly color: 'var(--doom-cyan)';
60
- readonly textDecoration: 'underline';
61
- };
62
- readonly emphasis: {
63
- readonly fontStyle: 'italic';
64
- };
65
- readonly strong: {
66
- readonly fontWeight: 'bold';
67
- };
68
- readonly strikethrough: {
69
- readonly textDecoration: 'line-through';
70
- };
71
- readonly invalid: {
72
- readonly color: 'var(--doom-red)';
73
- };
74
- };
75
- //#endregion
76
- //# sourceMappingURL=editorTheme.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"editorTheme.d.cts","names":[],"sources":["../../src/lib/editorTheme.ts"],"mappings":";;;;;;qBA0Ga;WACX;aAAW;aAA4B;;WACvC;aAAW;;WACX;aAAY;;WACZ;aAAW;;WACX;aAAU;;WACV;aAAU;;WACV;aAAY;;WACZ;aAAe;;WACf;aAAY;;WACZ;aAAY;;WACZ;aAAY;;WACZ;aAAQ;;WACR;aAAO;;WACP;aAAa;;WACb;aAAQ;;WACR;aAAW;aAAyB;;WACpC;aAAQ;aAA2B;;WACnC;aAAY;;WACZ;aAAU;;WACV;aAAiB;;WACjB;aAAW"}
@@ -1,30 +0,0 @@
1
- import { PresentedLine } from "./hashlineView.cjs";
2
- //#region src/lib/hashlineHighlight.d.ts
3
- /**
4
- * Grouping for highlighted hashline bodies.
5
- *
6
- * A read result is one file and a grep result is many, so the lines a card
7
- * shows have to be cut into runs that belong to the same file before any of
8
- * them can be parsed. A run is parsed whole because a string or a comment
9
- * spans lines, and grep's gaps between context blocks are accepted: an excerpt
10
- * is not the file, and colouring it as if it were is close enough to be worth
11
- * far more than colouring nothing.
12
- */
13
- export interface HashlineGroup {
14
- /** The file the run came from, when the body named one. */
15
- readonly path: string | undefined;
16
- /** Indices into the presented lines, in order, that this run covers. */
17
- readonly indices: readonly number[];
18
- /** The run's content, newline-joined, ready to parse. */
19
- readonly text: string;
20
- }
21
- /**
22
- * Consecutive anchored lines, cut at every file heading and at anything that
23
- * is not code. `fallbackPath` names the file for a body that never states one,
24
- * which is how a read result arrives.
25
- */
26
- export declare function hashlineGroups(lines: readonly PresentedLine[], fallbackPath: string | undefined): readonly HashlineGroup[];
27
- /** One string that changes whenever the groups would highlight differently. */
28
- export declare function hashlineGroupsKey(groups: readonly HashlineGroup[]): string;
29
- //#endregion
30
- //# sourceMappingURL=hashlineHighlight.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"hashlineHighlight.d.cts","names":[],"sources":["../../src/lib/hashlineHighlight.ts"],"mappings":";;;;;;;;;;;;iBAaiB;;WAEN;;WAEA;;WAEA;;;;;;;wBAQK,eACd,gBAAgB,iBAChB,4CACU;;wBA2BI,kBAAkB,iBAAiB"}