@kumix/ui 0.3.9 → 0.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -14
- package/dist/components/motion/animated-sidebar.d.ts.map +1 -1
- package/dist/components/motion/animated-sidebar.js.map +1 -1
- package/dist/components/motion/availability-scheduler/copy-menu.js +1 -1
- package/dist/components/motion/availability-scheduler/day-row.d.ts.map +1 -1
- package/dist/components/motion/availability-scheduler/day-row.js +15 -7
- package/dist/components/motion/availability-scheduler/day-row.js.map +1 -1
- package/dist/components/motion/availability-scheduler/index.js +1 -1
- package/dist/components/motion/button/index.d.ts +2 -1
- package/dist/components/motion/button/index.js +2 -1
- package/dist/components/motion/button/metallic.d.ts +10 -0
- package/dist/components/motion/button/metallic.d.ts.map +1 -0
- package/dist/components/motion/button/metallic.js +71 -0
- package/dist/components/motion/button/metallic.js.map +1 -0
- package/dist/components/motion/expandable-control.d.ts +28 -0
- package/dist/components/motion/expandable-control.d.ts.map +1 -0
- package/dist/components/motion/expandable-control.js +149 -0
- package/dist/components/motion/expandable-control.js.map +1 -0
- package/dist/components/motion/expanding-arrow-button.d.ts +12 -0
- package/dist/components/motion/expanding-arrow-button.d.ts.map +1 -0
- package/dist/components/motion/expanding-arrow-button.js +142 -0
- package/dist/components/motion/expanding-arrow-button.js.map +1 -0
- package/dist/components/motion/file-tree.d.ts +42 -0
- package/dist/components/motion/file-tree.d.ts.map +1 -0
- package/dist/components/motion/file-tree.js +272 -0
- package/dist/components/motion/file-tree.js.map +1 -0
- package/dist/components/reui/alert.d.ts +1 -1
- package/dist/components/reui/badge.d.ts +1 -1
- package/dist/components/reui/code-block/code-block-highlight.d.ts +216 -0
- package/dist/components/reui/code-block/code-block-highlight.d.ts.map +1 -0
- package/dist/components/reui/code-block/code-block-highlight.js +792 -0
- package/dist/components/reui/code-block/code-block-highlight.js.map +1 -0
- package/dist/components/reui/code-block/code-block.d.ts +197 -0
- package/dist/components/reui/code-block/code-block.d.ts.map +1 -0
- package/dist/components/reui/code-block/code-block.js +1150 -0
- package/dist/components/reui/code-block/code-block.js.map +1 -0
- package/dist/components/reui/frame.d.ts +1 -1
- package/dist/components/reui/gantt/gantt-bar.js +42 -12
- package/dist/components/reui/gantt/gantt-bar.js.map +1 -1
- package/dist/components/reui/gantt/gantt-dnd.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-dnd.js +22 -7
- package/dist/components/reui/gantt/gantt-dnd.js.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.d.ts +8 -0
- package/dist/components/reui/gantt/gantt-i18n.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-i18n.js +6 -1
- package/dist/components/reui/gantt/gantt-i18n.js.map +1 -1
- package/dist/components/reui/gantt/gantt-lib.d.ts +59 -2
- package/dist/components/reui/gantt/gantt-lib.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-lib.js +67 -2
- package/dist/components/reui/gantt/gantt-lib.js.map +1 -1
- package/dist/components/reui/gantt/gantt-recurrence.js +3 -3
- package/dist/components/reui/gantt/gantt-recurrence.js.map +1 -1
- package/dist/components/reui/gantt/gantt-types.d.ts +32 -1
- package/dist/components/reui/gantt/gantt-types.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-view.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt-view.js +324 -35
- package/dist/components/reui/gantt/gantt-view.js.map +1 -1
- package/dist/components/reui/gantt/gantt.d.ts +71 -2
- package/dist/components/reui/gantt/gantt.d.ts.map +1 -1
- package/dist/components/reui/gantt/gantt.js +8 -0
- package/dist/components/reui/gantt/gantt.js.map +1 -1
- package/dist/components/ui/attachment.d.ts +1 -1
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/bubble.d.ts +1 -1
- package/dist/components/ui/button-group.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/field.d.ts +1 -1
- package/dist/components/ui/item.d.ts +2 -2
- package/dist/components/ui/marker.d.ts +1 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/components/ui/toggle.d.ts +1 -1
- package/dist/{copy-menu-1FKoMc9o.js → copy-menu-C5GaT4Z-.js} +67 -2
- package/dist/copy-menu-C5GaT4Z-.js.map +1 -0
- package/dist/types-smkWN_7x.d.ts.map +1 -1
- package/package.json +5 -11
- package/dist/copy-menu-1FKoMc9o.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file-tree.js","names":[],"sources":["../../../src/components/motion/file-tree.tsx"],"sourcesContent":["\"use client\";\n\nimport {\n Children,\n Fragment,\n isValidElement,\n type KeyboardEvent,\n type ReactNode,\n useCallback,\n useMemo,\n useRef,\n useState,\n} from \"react\";\nimport { ChevronRight, File, Folder, FolderOpen } from \"lucide-react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\n\nimport { cn } from \"@kumix/utils\";\nimport { EASE_OUT, SPRING_LAYOUT, SPRING_SWAP } from \"../../lib/ease\";\nimport { SharedLayoutBg } from \"./shared-layout-bg\";\n\ntype FileTreeItem = {\n value: string;\n name: string;\n type: \"file\" | \"folder\";\n children?: FileTreeItem[];\n icon?: ReactNode;\n disabled?: boolean;\n className?: string;\n};\n\nexport interface FileTreeFolderProps {\n value: string;\n name: string;\n icon?: ReactNode;\n disabled?: boolean;\n children?: ReactNode;\n className?: string;\n}\n\nexport interface FileTreeFileProps {\n value: string;\n name: string;\n icon?: ReactNode;\n disabled?: boolean;\n className?: string;\n}\n\nexport type FileTreeClassNames = {\n tree?: string;\n item?: string;\n icon?: string;\n label?: string;\n};\n\nexport interface FileTreeProps {\n children: ReactNode;\n value?: string | null;\n defaultValue?: string | null;\n onValueChange?: (value: string) => void;\n expandedIds?: string[];\n defaultExpandedIds?: string[];\n onExpandedChange?: (expandedIds: string[]) => void;\n ariaLabel?: string;\n indent?: number;\n className?: string;\n classNames?: FileTreeClassNames;\n}\n\ntype FlatFileTreeItem = {\n item: FileTreeItem;\n depth: number;\n parentId: string | null;\n position: number;\n setSize: number;\n};\n\n// These declarative parts are read by FileTree and turned into one flattened,\n// keyboard-navigable collection. They intentionally render nothing alone.\nexport function FileTreeFolder(_props: FileTreeFolderProps) {\n return null;\n}\n\nexport function FileTreeFile(_props: FileTreeFileProps) {\n return null;\n}\n\nconst ROW_ENTER = { duration: 0.22, ease: EASE_OUT } as const;\nconst BRANCH_DRAW = { duration: 0.3, ease: EASE_OUT } as const;\n\nfunction flattenItems(\n items: FileTreeItem[],\n expanded: ReadonlySet<string>,\n depth = 0,\n parentId: string | null = null,\n): FlatFileTreeItem[] {\n return items.flatMap((item, index) => {\n const row = {\n item,\n depth,\n parentId,\n position: index + 1,\n setSize: items.length,\n };\n\n if (item.type !== \"folder\" || !expanded.has(item.value) || !item.children?.length) {\n return [row];\n }\n\n return [row, ...flattenItems(item.children, expanded, depth + 1, item.value)];\n });\n}\n\nfunction itemsFromChildren(children: ReactNode): FileTreeItem[] {\n const items: FileTreeItem[] = [];\n\n Children.forEach(children, (child) => {\n if (!isValidElement(child)) return;\n\n if (child.type === Fragment) {\n const props = child.props as { children?: ReactNode };\n items.push(...itemsFromChildren(props.children));\n return;\n }\n\n if (child.type === FileTreeFolder) {\n const props = child.props as FileTreeFolderProps;\n items.push({\n value: props.value,\n name: props.name,\n type: \"folder\",\n icon: props.icon,\n disabled: props.disabled,\n className: props.className,\n children: itemsFromChildren(props.children),\n });\n return;\n }\n\n if (child.type === FileTreeFile) {\n const props = child.props as FileTreeFileProps;\n items.push({\n value: props.value,\n name: props.name,\n type: \"file\",\n icon: props.icon,\n disabled: props.disabled,\n className: props.className,\n });\n }\n });\n\n return items;\n}\n\nfunction DefaultIcon({\n item,\n open,\n reduce,\n}: {\n item: FileTreeItem;\n open: boolean;\n reduce: boolean;\n}) {\n if (item.type === \"file\") return <File className=\"size-4\" />;\n if (reduce) {\n return open ? <FolderOpen className=\"size-4\" /> : <Folder className=\"size-4\" />;\n }\n\n return (\n <AnimatePresence initial={false} mode=\"popLayout\">\n <motion.span\n key={open ? \"open\" : \"closed\"}\n initial={{ opacity: 0, scale: 0.75, rotate: open ? -8 : 8 }}\n animate={{ opacity: 1, scale: 1, rotate: 0 }}\n exit={{ opacity: 0, scale: 0.75, rotate: open ? 8 : -8 }}\n transition={SPRING_SWAP}\n className=\"absolute inset-0 grid place-items-center\"\n >\n {open ? <FolderOpen className=\"size-4\" /> : <Folder className=\"size-4\" />}\n </motion.span>\n </AnimatePresence>\n );\n}\n\nexport function FileTree({\n children,\n value,\n defaultValue = null,\n onValueChange,\n expandedIds,\n defaultExpandedIds = [],\n onExpandedChange,\n ariaLabel = \"Files\",\n indent = 18,\n className,\n classNames,\n}: FileTreeProps) {\n const reduce = useReducedMotion() ?? false;\n const [internalValue, setInternalValue] = useState(defaultValue);\n const [internalExpandedIds, setInternalExpandedIds] = useState(defaultExpandedIds);\n const [focusedId, setFocusedId] = useState<string | null>(value ?? defaultValue);\n const rowRefs = useRef(new Map<string, HTMLButtonElement>());\n const selectedId = value === undefined ? internalValue : value;\n const currentExpandedIds = expandedIds ?? internalExpandedIds;\n const expanded = useMemo(() => new Set(currentExpandedIds), [currentExpandedIds]);\n const items = useMemo(() => itemsFromChildren(children), [children]);\n const rows = useMemo(() => flattenItems(items, expanded), [expanded, items]);\n\n // Keep a real row tabbable in the first commit and immediately after a\n // collapse removes the previously focused descendant.\n const focusedRow =\n focusedId !== null && rows.some(({ item }) => item.value === focusedId)\n ? focusedId\n : (rows[0]?.item.value ?? null);\n if (focusedId !== focusedRow) setFocusedId(focusedRow);\n\n const focusRow = useCallback((id: string) => {\n setFocusedId(id);\n const row = rowRefs.current.get(id);\n if (row) row.focus();\n else requestAnimationFrame(() => rowRefs.current.get(id)?.focus());\n }, []);\n\n const selectItem = useCallback(\n (item: FileTreeItem) => {\n if (item.disabled) return;\n if (value === undefined) setInternalValue(item.value);\n onValueChange?.(item.value);\n },\n [onValueChange, value],\n );\n\n const setExpanded = useCallback(\n (next: string[]) => {\n if (expandedIds === undefined) setInternalExpandedIds(next);\n onExpandedChange?.(next);\n },\n [expandedIds, onExpandedChange],\n );\n\n const toggleFolder = useCallback(\n (id: string) => {\n const next = new Set(currentExpandedIds);\n if (next.has(id)) next.delete(id);\n else next.add(id);\n setExpanded(Array.from(next));\n },\n [currentExpandedIds, setExpanded],\n );\n\n const handleKeyDown = useCallback(\n (event: KeyboardEvent<HTMLButtonElement>, row: FlatFileTreeItem) => {\n const index = rows.findIndex(({ item }) => item.value === row.item.value);\n const previous = rows[index - 1];\n const next = rows[index + 1];\n const isFolder = row.item.type === \"folder\";\n const isOpen = expanded.has(row.item.value);\n\n if (event.key === \"ArrowDown\" && next) {\n event.preventDefault();\n focusRow(next.item.value);\n } else if (event.key === \"ArrowUp\" && previous) {\n event.preventDefault();\n focusRow(previous.item.value);\n } else if (event.key === \"Home\" && rows[0]) {\n event.preventDefault();\n focusRow(rows[0].item.value);\n } else if (event.key === \"End\" && rows.at(-1)) {\n event.preventDefault();\n focusRow(rows.at(-1)?.item.value ?? row.item.value);\n } else if (event.key === \"ArrowRight\" && isFolder) {\n event.preventDefault();\n if (!isOpen && !row.item.disabled) toggleFolder(row.item.value);\n else if (next?.parentId === row.item.value) focusRow(next.item.value);\n } else if (event.key === \"ArrowLeft\") {\n event.preventDefault();\n if (isFolder && isOpen && !row.item.disabled) toggleFolder(row.item.value);\n else if (row.parentId) focusRow(row.parentId);\n } else if (event.key === \"Enter\" || event.key === \" \") {\n event.preventDefault();\n if (row.item.disabled) return;\n selectItem(row.item);\n if (isFolder) toggleFolder(row.item.value);\n }\n },\n [expanded, focusRow, rows, selectItem, toggleFolder],\n );\n\n return (\n <SharedLayoutBg\n role=\"tree\"\n aria-label={ariaLabel}\n aria-multiselectable=\"false\"\n inset={0}\n pillClassName=\"rounded-xl bg-muted\"\n pillContainerClassName=\"inset-y-auto top-0 h-9\"\n className={cn(\"min-w-0\", className, classNames?.tree)}\n >\n {rows.map((row) => {\n const isFolder = row.item.type === \"folder\";\n const isOpen = isFolder && expanded.has(row.item.value);\n const isSelected = selectedId === row.item.value;\n\n return (\n <motion.div\n layout={reduce ? false : \"position\"}\n key={row.item.value}\n initial={reduce ? false : { opacity: 0, y: -6 }}\n animate={{\n opacity: row.item.disabled ? 0.42 : 1,\n y: 0,\n transition: reduce\n ? { duration: 0 }\n : {\n ...ROW_ENTER,\n delay: Math.min(row.position * 0.025, 0.1),\n },\n }}\n transition={reduce ? { duration: 0 } : SPRING_LAYOUT}\n >\n <button\n ref={(node) => {\n if (node) rowRefs.current.set(row.item.value, node);\n else rowRefs.current.delete(row.item.value);\n }}\n type=\"button\"\n role=\"treeitem\"\n aria-level={row.depth + 1}\n aria-posinset={row.position}\n aria-setsize={row.setSize}\n aria-selected={isSelected}\n aria-expanded={isFolder ? isOpen : undefined}\n aria-disabled={row.item.disabled || undefined}\n tabIndex={focusedRow === row.item.value ? 0 : -1}\n onFocus={() => setFocusedId(row.item.value)}\n onKeyDown={(event) => handleKeyDown(event, row)}\n onClick={() => {\n if (row.item.disabled) return;\n selectItem(row.item);\n if (isFolder) toggleFolder(row.item.value);\n }}\n className={cn(\n \"group/file-tree relative flex h-9 w-full items-center gap-2 overflow-hidden rounded-lg pr-2 text-left text-muted-foreground text-sm outline-none\",\n \"transition-colors hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset\",\n \"aria-disabled:cursor-not-allowed\",\n isSelected && \"bg-muted font-medium text-foreground\",\n classNames?.item,\n row.item.className,\n )}\n style={{ paddingLeft: 8 + row.depth * indent }}\n >\n {row.depth > 0 ? (\n <motion.span\n aria-hidden=\"true\"\n initial={reduce ? false : { opacity: 0, scaleY: 0 }}\n animate={{ opacity: 1, scaleY: 1 }}\n exit={{ opacity: 0, scaleY: 0 }}\n transition={reduce ? { duration: 0 } : BRANCH_DRAW}\n className=\"absolute top-0 bottom-0 w-px origin-top bg-border/70\"\n style={{ left: 16 + (row.depth - 1) * indent }}\n />\n ) : null}\n\n <motion.span\n aria-hidden=\"true\"\n animate={{ rotate: isOpen ? 90 : 0 }}\n transition={reduce ? { duration: 0 } : SPRING_SWAP}\n className={cn(\n \"relative z-10 grid size-4 shrink-0 place-items-center\",\n !isFolder && \"opacity-0\",\n )}\n >\n <ChevronRight className=\"size-3.5\" />\n </motion.span>\n\n <span\n aria-hidden=\"true\"\n className={cn(\n \"relative z-10 grid size-4 shrink-0 place-items-center text-muted-foreground transition-colors group-hover/file-tree:text-foreground\",\n isFolder && isOpen && \"text-foreground\",\n classNames?.icon,\n )}\n >\n {row.item.icon ?? <DefaultIcon item={row.item} open={isOpen} reduce={reduce} />}\n </span>\n\n <span className={cn(\"relative z-10 min-w-0 flex-1 truncate\", classNames?.label)}>\n {row.item.name}\n </span>\n </button>\n </motion.div>\n );\n })}\n </SharedLayoutBg>\n );\n}\n"],"mappings":";;;;;;;;;AA8EA,SAAgB,eAAe,QAA6B;CAC1D,OAAO;AACT;AAEA,SAAgB,aAAa,QAA2B;CACtD,OAAO;AACT;AAEA,MAAM,YAAY;CAAE,UAAU;CAAM,MAAM;AAAS;AACnD,MAAM,cAAc;CAAE,UAAU;CAAK,MAAM;AAAS;AAEpD,SAAS,aACP,OACA,UACA,QAAQ,GACR,WAA0B,MACN;CACpB,OAAO,MAAM,SAAS,MAAM,UAAU;EACpC,MAAM,MAAM;GACV;GACA;GACA;GACA,UAAU,QAAQ;GAClB,SAAS,MAAM;EACjB;EAEA,IAAI,KAAK,SAAS,YAAY,CAAC,SAAS,IAAI,KAAK,KAAK,KAAK,CAAC,KAAK,UAAU,QACzE,OAAO,CAAC,GAAG;EAGb,OAAO,CAAC,KAAK,GAAG,aAAa,KAAK,UAAU,UAAU,QAAQ,GAAG,KAAK,KAAK,CAAC;CAC9E,CAAC;AACH;AAEA,SAAS,kBAAkB,UAAqC;CAC9D,MAAM,QAAwB,CAAC;CAE/B,SAAS,QAAQ,WAAW,UAAU;EACpC,IAAI,CAAC,eAAe,KAAK,GAA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,yCAAyC,YAAY,KAAK;OAC3E,UAAA,IAAI,KAAK;MACN,CAAA;KACA;;GACE,GApFL,IAAI,KAAK,KAoFJ;EAEhB,CAAC;CACa,CAAA;AAEpB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
//#region src/components/reui/alert.d.ts
|
|
3
3
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | "invert" | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react").JSX.Element;
|
|
7
7
|
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { useRender } from "@base-ui/react/use-render";
|
|
3
3
|
//#region src/components/reui/badge.d.ts
|
|
4
4
|
declare const badgeVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "default" | "outline" | "secondary" | "info" | "success" | "warning" | "destructive" | "focus" | "invert" | "primary-light" | "warning-light" | "success-light" | "info-light" | "destructive-light" | "invert-light" | "focus-light" | "primary-outline" | "warning-outline" | "success-outline" | "info-outline" | "destructive-outline" | "invert-outline" | "focus-outline" | null | undefined;
|
|
6
6
|
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
7
7
|
radius?: "default" | "full" | null | undefined;
|
|
8
8
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ShikiTransformer } from "shiki";
|
|
3
|
+
//#region src/components/reui/code-block/code-block-highlight.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* One themed slice of a line. `color`/`colorDark` emit as `--cb-c`/`--cb-cd`
|
|
6
|
+
* custom properties, so one rule pair on the `<pre>` theme-switches the whole
|
|
7
|
+
* block. An uncoloured token keeps both undefined and renders as a bare text
|
|
8
|
+
* node with no wrapper.
|
|
9
|
+
*/
|
|
10
|
+
type CodeBlockToken = {
|
|
11
|
+
content: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
colorDark?: string;
|
|
14
|
+
fontStyle?: CodeBlockFontStyle;
|
|
15
|
+
word?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type CodeBlockFontStyle = "italic" | "bold" | "underline";
|
|
18
|
+
type CodeBlockDiffKind = "add" | "remove";
|
|
19
|
+
type CodeBlockLevel = "error" | "warning" | "info";
|
|
20
|
+
/**
|
|
21
|
+
* Per-line presentation state, resolved once at highlight time.
|
|
22
|
+
*
|
|
23
|
+
* Two sources merge here: the props on the root, and the classes a shiki
|
|
24
|
+
* transformer put on the line, so `@shikijs/transformers` notation such as
|
|
25
|
+
* `[!code ++]` reaches the same place without the renderer knowing shiki
|
|
26
|
+
* exists. Props win on conflict, because notation lives in the source string,
|
|
27
|
+
* which a consumer often does not control.
|
|
28
|
+
*/
|
|
29
|
+
type CodeBlockLineState = {
|
|
30
|
+
highlighted?: boolean;
|
|
31
|
+
diff?: CodeBlockDiffKind;
|
|
32
|
+
focused?: boolean;
|
|
33
|
+
level?: CodeBlockLevel;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* A rendered line. `number` is the DISPLAYED number (offset by `startLine`);
|
|
37
|
+
* line specs address source lines, so changing `startLine` never invalidates
|
|
38
|
+
* them. Instances are reused across passes when unchanged, which is what lets
|
|
39
|
+
* the row be a plain `React.memo` and a streamed chunk cost one re-render.
|
|
40
|
+
*/
|
|
41
|
+
type CodeBlockLine = {
|
|
42
|
+
tokens: CodeBlockToken[];
|
|
43
|
+
number: number;
|
|
44
|
+
text: string;
|
|
45
|
+
state?: CodeBlockLineState;
|
|
46
|
+
/**
|
|
47
|
+
* Replaces the counter-driven gutter number for this row - a unified patch
|
|
48
|
+
* shows "old new" pairs, a hunk header shows dots. Rendered verbatim.
|
|
49
|
+
*/
|
|
50
|
+
gutter?: string;
|
|
51
|
+
};
|
|
52
|
+
/** Source lines, as `[2, 3, 4]` or as a range string such as `"2-4,7"`. */
|
|
53
|
+
type CodeBlockLineSpec = number[] | string;
|
|
54
|
+
type CodeBlockDiffSpec = {
|
|
55
|
+
added?: CodeBlockLineSpec;
|
|
56
|
+
removed?: CodeBlockLineSpec;
|
|
57
|
+
};
|
|
58
|
+
type CodeBlockLevelSpec = Partial<Record<CodeBlockLevel, CodeBlockLineSpec>>;
|
|
59
|
+
/** A word to mark, optionally restricted to some source lines. */
|
|
60
|
+
type CodeBlockWordSpec = string | {
|
|
61
|
+
word: string;
|
|
62
|
+
lines?: CodeBlockLineSpec;
|
|
63
|
+
};
|
|
64
|
+
type CodeBlockThemes = {
|
|
65
|
+
light: string;
|
|
66
|
+
dark: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* shiki's own transformer type, imported type-only so it erases at compile
|
|
70
|
+
* time and costs the bundle nothing. The previous structural stand-in
|
|
71
|
+
* (`Record<string, unknown>`) rejected every real `ShikiTransformer`: an
|
|
72
|
+
* interface without an index signature is not assignable to it.
|
|
73
|
+
*/
|
|
74
|
+
type CodeBlockTransformer = ShikiTransformer;
|
|
75
|
+
type CodeBlockHighlightOptions = {
|
|
76
|
+
language?: string;
|
|
77
|
+
themes?: CodeBlockThemes;
|
|
78
|
+
transformers?: CodeBlockTransformer[];
|
|
79
|
+
startLine?: number;
|
|
80
|
+
/**
|
|
81
|
+
* Distinguishes same-signature blocks in the line-reuse cache. Without it,
|
|
82
|
+
* two identically-configured streams evict each other's previous document.
|
|
83
|
+
* The root passes its own instance id.
|
|
84
|
+
*/
|
|
85
|
+
instanceKey?: string;
|
|
86
|
+
highlightedLines?: CodeBlockLineSpec;
|
|
87
|
+
highlightedWords?: CodeBlockWordSpec[];
|
|
88
|
+
focusedLines?: CodeBlockLineSpec;
|
|
89
|
+
diff?: CodeBlockDiffSpec;
|
|
90
|
+
lineLevels?: CodeBlockLevelSpec;
|
|
91
|
+
};
|
|
92
|
+
/** What a `CodeBlockLineActions` render prop receives. */
|
|
93
|
+
type CodeBlockLineActionContext = {
|
|
94
|
+
line: number;
|
|
95
|
+
text: string;
|
|
96
|
+
state?: CodeBlockLineState;
|
|
97
|
+
};
|
|
98
|
+
type CodeBlockLineActionsRender = (context: CodeBlockLineActionContext) => ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* A STATIC map, never ``import(`shiki/langs/${lang}.mjs`)``: a template import
|
|
101
|
+
* makes bundlers bundle all ~200 grammars. Written out, each entry is its own
|
|
102
|
+
* lazy chunk. To add a language, add a line: that is the intended extension
|
|
103
|
+
* point of this file.
|
|
104
|
+
*/
|
|
105
|
+
declare const codeBlockLanguages: Record<string, () => Promise<unknown>>;
|
|
106
|
+
declare const codeBlockThemes: Record<string, () => Promise<unknown>>;
|
|
107
|
+
declare const DEFAULT_CODE_BLOCK_THEMES: CodeBlockThemes;
|
|
108
|
+
/** Resolves an alias and reports whether the grammar is actually available. */
|
|
109
|
+
declare function resolveCodeBlockLanguage(language?: string): string | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Turns `[2, 3]` or `"2-4,7"` into a set of source line numbers.
|
|
112
|
+
*
|
|
113
|
+
* Deliberately total: a reversed range, a negative bound or outright garbage
|
|
114
|
+
* yields an empty set rather than throwing. These values often come from user
|
|
115
|
+
* content or from a model, and a code viewer that crashes on a bad range is
|
|
116
|
+
* worse than one that shows no highlight.
|
|
117
|
+
*/
|
|
118
|
+
declare function parseLineSpec(spec?: CodeBlockLineSpec): Set<number>;
|
|
119
|
+
/** Normalises line endings so every downstream offset is LF-based. */
|
|
120
|
+
declare function normalizeCode(code: string): string;
|
|
121
|
+
/**
|
|
122
|
+
* Character ranges for `highlightedWords`, as shiki `decorations`.
|
|
123
|
+
*
|
|
124
|
+
* shiki rejects overlapping decorations, so a later match that would overlap an
|
|
125
|
+
* earlier one is dropped rather than passed through to throw.
|
|
126
|
+
*/
|
|
127
|
+
declare function buildWordDecorations(code: string, words?: CodeBlockWordSpec[]): {
|
|
128
|
+
start: number;
|
|
129
|
+
end: number;
|
|
130
|
+
properties: {
|
|
131
|
+
class: string;
|
|
132
|
+
};
|
|
133
|
+
}[];
|
|
134
|
+
/**
|
|
135
|
+
* Strips `[!code ...]` notation from a copy payload: the transformer already
|
|
136
|
+
* drops it from RENDERED output, but the raw `code` string would paste the
|
|
137
|
+
* comment into someone's editor.
|
|
138
|
+
*/
|
|
139
|
+
declare function stripNotationComments(code: string): string;
|
|
140
|
+
/**
|
|
141
|
+
* Plain, unhighlighted lines. One token per line, no colour.
|
|
142
|
+
*
|
|
143
|
+
* This is both the `highlight={false}` renderer and the first paint of a
|
|
144
|
+
* streaming block, so the tail of a stream is readable before its grammar pass
|
|
145
|
+
* lands and no frame is ever blank.
|
|
146
|
+
*/
|
|
147
|
+
declare function toPlainLines(code: string, startLine?: number): CodeBlockLine[];
|
|
148
|
+
/**
|
|
149
|
+
* Pulls `code` and `language` out of the props react-markdown gives a `pre`:
|
|
150
|
+
* the glue every AI chat app writes by hand, shipped here instead. Tolerant by
|
|
151
|
+
* construction, because a still-streaming fence has no closing delimiter and
|
|
152
|
+
* often no language yet, and must render as plain text rather than throw.
|
|
153
|
+
*/
|
|
154
|
+
declare function markdownCodeProps(props: {
|
|
155
|
+
children?: ReactNode;
|
|
156
|
+
className?: string;
|
|
157
|
+
}): {
|
|
158
|
+
code: string;
|
|
159
|
+
language?: string;
|
|
160
|
+
};
|
|
161
|
+
/** One segment of a markdown string: prose, or a fenced code block. */
|
|
162
|
+
type CodeBlockMarkdownPart = {
|
|
163
|
+
type: "text" | "code";
|
|
164
|
+
content: string;
|
|
165
|
+
language?: string;
|
|
166
|
+
/** True for a fence whose closing delimiter has not arrived yet. */
|
|
167
|
+
open: boolean;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Splits markdown into prose and fenced code, for transcripts that render a
|
|
171
|
+
* raw assistant message without a markdown dependency. The unterminated
|
|
172
|
+
* trailing fence is the point: mid-stream it comes back as a code part flagged
|
|
173
|
+
* `open`, instead of being dropped or read as prose.
|
|
174
|
+
*/
|
|
175
|
+
declare function markdownFences(markdown: string): CodeBlockMarkdownPart[];
|
|
176
|
+
/**
|
|
177
|
+
* Highlights `code` into the renderer's line shape. Built on `codeToHast` so
|
|
178
|
+
* consumer transformers run and their line classes land in `line.state`,
|
|
179
|
+
* making prop state and `[!code ++]` notation one feature, not two code
|
|
180
|
+
* paths. Safe in a server component: the result is plain JSON.
|
|
181
|
+
*/
|
|
182
|
+
declare function highlightCode(code: string, options?: CodeBlockHighlightOptions): Promise<CodeBlockLine[]>;
|
|
183
|
+
/** Test seam: drops the singleton and every cached document. */
|
|
184
|
+
declare function resetCodeBlockHighlighter(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Terminal output with SGR colour codes, as renderable lines: feed the result
|
|
187
|
+
* to the `lines` prop. Covers what agent stdout actually uses - 30-37 / 90-97
|
|
188
|
+
* foregrounds, 38;5;n and 38;2;r;g;b, bold, italic, underline and resets.
|
|
189
|
+
* Backgrounds and cursor movements are STRIPPED rather than rendered: a code
|
|
190
|
+
* surface has its own background, and a partial screen-drawing stream is
|
|
191
|
+
* better read as text than half-drawn.
|
|
192
|
+
*/
|
|
193
|
+
declare function ansiToLines(text: string, startLine?: number): CodeBlockLine[];
|
|
194
|
+
type CodeBlockPatchFile = {
|
|
195
|
+
/** New-side path, or the old one for a deletion. */
|
|
196
|
+
file: string;
|
|
197
|
+
/** Unified view: context, removed and added lines with dual gutter labels. */
|
|
198
|
+
lines: CodeBlockLine[];
|
|
199
|
+
added: number;
|
|
200
|
+
removed: number;
|
|
201
|
+
hunks: {
|
|
202
|
+
header: string;
|
|
203
|
+
at: number;
|
|
204
|
+
}[];
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* A `git diff` / unified patch, as renderable per-file line sets: feed each
|
|
208
|
+
* file's `lines` to the `lines` prop and the diff tints, `+`/`-` glyphs and
|
|
209
|
+
* dual old/new gutter numbers all come from the parse - no `diff` prop
|
|
210
|
+
* arithmetic against a hand-concatenated string. Tokens are plain; patches
|
|
211
|
+
* read by tint, not grammar.
|
|
212
|
+
*/
|
|
213
|
+
declare function parseUnifiedDiff(patch: string): CodeBlockPatchFile[];
|
|
214
|
+
//#endregion
|
|
215
|
+
export { CodeBlockDiffKind, CodeBlockDiffSpec, CodeBlockFontStyle, CodeBlockHighlightOptions, CodeBlockLevel, CodeBlockLevelSpec, CodeBlockLine, CodeBlockLineActionContext, CodeBlockLineActionsRender, CodeBlockLineSpec, CodeBlockLineState, CodeBlockMarkdownPart, CodeBlockPatchFile, CodeBlockThemes, CodeBlockToken, CodeBlockTransformer, CodeBlockWordSpec, DEFAULT_CODE_BLOCK_THEMES, ansiToLines, buildWordDecorations, codeBlockLanguages, codeBlockThemes, highlightCode, markdownCodeProps, markdownFences, normalizeCode, parseLineSpec, parseUnifiedDiff, resetCodeBlockHighlighter, resolveCodeBlockLanguage, stripNotationComments, toPlainLines };
|
|
216
|
+
//# sourceMappingURL=code-block-highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-block-highlight.d.ts","names":[],"sources":["../../../../src/components/reui/code-block/code-block-highlight.tsx"],"mappings":";;;;;;;;;KAWY;EACV;EACA;EACA;EACA,YAAY;EACZ;;KAGU;KAEA;KAEA;;;;;;;;;;KAWA;EACV;EACA,OAAO;EACP;EACA,QAAQ;;;;;;;;KASE;EACV,QAAQ;EACR;EACA;EACA,QAAQ;;;;;EAKR;;;KAIU;KAEA;EACV,QAAQ;EACR,UAAU;;KAGA,qBAAqB,QAAQ,OAAO,gBAAgB;;KAGpD;EAA+B;EAAc,QAAQ;;KAErD;EAAoB;EAAe;;;;;;;;KAQnC,uBAAuB;KAEvB;EACV;EACA,SAAS;EACT,eAAe;EACf;;;;;;EAMA;EACA,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,OAAO;EACP,aAAa;;;KAIH;EACV;EACA;EACA,QAAQ;;KAGE,8BAA8B,SAAS,+BAA+B;;;;;;;cAYrE,oBAAoB,qBAAqB;cAqDzC,iBAAiB,qBAAqB;cAqBtC,2BAA2B;;iBAMxB,yBAAyB;;;;;;;;;iBAmBzB,cAAc,OAAO,oBAAoB;;iBAmCzC,cAAc;;;;;;;iBAUd,qBACd,cACA,QAAQ;EACL;EAAe;EAAa;IAAc;;;;;;;;iBAiD/B,sBAAsB;;;;;;;;iBAgBtB,aAAa,cAAc,qBAAgB;;;;;;;iBAgB3C,kBAAkB;EAAS,WAAW;EAAW;;EAC/D;EACA;;;KAwCU;EACV;EACA;EACA;;EAEA;;;;;;;;iBASc,eAAe,mBAAmB;;;;;;;iBAiW5B,cACpB,cACA,UAAS,4BACR,QAAQ;;iBAmEK;;;;;;;;;iBAkHA,YAAY,cAAc,qBAAgB;KAkF9C;;EAEV;;EAEA,OAAO;EACP;EACA;EACA;IAAS;IAAgB;;;;;;;;;;iBAUX,iBAAiB,gBAAgB"}
|