@qilin-agent/client-ui-primitives 0.0.0-stage → 3.1.4
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/LICENSE +21 -0
- package/README.i18n.yaml +61 -0
- package/README.md +187 -2
- package/README.zh.md +188 -0
- package/lib/Button.module.css +79 -0
- package/lib/Checkbox.module.css +28 -0
- package/lib/CommandText.module.css +12 -0
- package/lib/ConnectionIndicator.module.css +123 -0
- package/lib/DiffBlock.module.css +109 -0
- package/lib/DisclosureRow.module.css +84 -0
- package/lib/FileTypeIcon.module.css +50 -0
- package/lib/HoverCard.module.css +70 -0
- package/lib/ImageLightbox.module.css +48 -0
- package/lib/ImagePreview.module.css +24 -0
- package/lib/Input.module.css +38 -0
- package/lib/JsonTree.module.css +345 -0
- package/lib/Menu.module.css +274 -0
- package/lib/MenuGroup.module.css +37 -0
- package/lib/MenuSurface.module.css +49 -0
- package/lib/Modal.module.css +103 -0
- package/lib/OnboardingSurface.module.css +29 -0
- package/lib/PathLabel.module.css +28 -0
- package/lib/Pill.module.css +27 -0
- package/lib/ReadBlock.module.css +111 -0
- package/lib/RiskConfirmation.module.css +73 -0
- package/lib/SearchBlock.module.css +112 -0
- package/lib/SegmentedControl.module.css +76 -0
- package/lib/ShortcutKeys.module.css +33 -0
- package/lib/StateDot.module.css +73 -0
- package/lib/Switch.module.css +50 -0
- package/lib/Tag.module.css +57 -0
- package/lib/TerminalBlock.module.css +205 -0
- package/lib/TextShimmer.module.css +88 -0
- package/lib/Toast.module.css +76 -0
- package/lib/Tooltip.module.css +52 -0
- package/lib/WebBlock.module.css +141 -0
- package/lib/index.js +10647 -0
- package/lib/markdown/CodeBlock.module.css +130 -0
- package/lib/markdown/JsonBlock.module.css +32 -0
- package/lib/markdown/MarkdownText.module.css +485 -0
- package/lib/markdown/mermaid.module.css +49 -0
- package/lib/settings-form/SettingsForm.module.css +53 -0
- package/lib/settings-form/fields.module.css +145 -0
- package/lib/types/Button.d.ts +18 -0
- package/lib/types/Checkbox.d.ts +20 -0
- package/lib/types/CodeFileIcon.d.ts +12 -0
- package/lib/types/CommandText.d.ts +16 -0
- package/lib/types/ConnectionIndicator.d.ts +26 -0
- package/lib/types/DiffBlock.d.ts +52 -0
- package/lib/types/DisclosureRow.d.ts +36 -0
- package/lib/types/FileTypeIcon.d.ts +43 -0
- package/lib/types/FoldToggle.d.ts +20 -0
- package/lib/types/HoverCard.d.ts +32 -0
- package/lib/types/ImageLightbox.d.ts +27 -0
- package/lib/types/ImagePreview.d.ts +12 -0
- package/lib/types/Input.d.ts +12 -0
- package/lib/types/JsonTree.d.ts +59 -0
- package/lib/types/LinkIcon.d.ts +49 -0
- package/lib/types/Menu.d.ts +133 -0
- package/lib/types/MenuGroup.d.ts +22 -0
- package/lib/types/MenuSurface.d.ts +16 -0
- package/lib/types/Modal.d.ts +44 -0
- package/lib/types/OnboardingSurface.d.ts +11 -0
- package/lib/types/PathLabel.d.ts +13 -0
- package/lib/types/Pill.d.ts +13 -0
- package/lib/types/QilinSeal.d.ts +18 -0
- package/lib/types/ReadBlock.d.ts +47 -0
- package/lib/types/ReferenceIcon.d.ts +16 -0
- package/lib/types/RiskConfirmation.d.ts +20 -0
- package/lib/types/SearchBlock.d.ts +72 -0
- package/lib/types/SegmentedControl.d.ts +35 -0
- package/lib/types/ShortcutKeys.d.ts +11 -0
- package/lib/types/SiteGlyph.d.ts +25 -0
- package/lib/types/StateDot.d.ts +18 -0
- package/lib/types/Switch.d.ts +20 -0
- package/lib/types/Tag.d.ts +32 -0
- package/lib/types/TerminalBlock.d.ts +68 -0
- package/lib/types/TextShimmer.d.ts +22 -0
- package/lib/types/Toast.d.ts +36 -0
- package/lib/types/Tooltip.d.ts +45 -0
- package/lib/types/WebBlock.d.ts +61 -0
- package/lib/types/ansi.d.ts +17 -0
- package/lib/types/clipboard.d.ts +9 -0
- package/lib/types/code-file-icon-artwork.d.ts +54 -0
- package/lib/types/code-file-types.d.ts +30 -0
- package/lib/types/darwin-desktop.d.ts +18 -0
- package/lib/types/file-size.d.ts +17 -0
- package/lib/types/focus.d.ts +9 -0
- package/lib/types/head-tail-cap.d.ts +23 -0
- package/lib/types/icons/index.d.ts +211 -0
- package/lib/types/icons/props.d.ts +9 -0
- package/lib/types/index.d.ts +92 -0
- package/lib/types/input-modality.d.ts +19 -0
- package/lib/types/keyboard-composition.d.ts +11 -0
- package/lib/types/markdown/CodeBlock.d.ts +30 -0
- package/lib/types/markdown/JsonBlock.d.ts +8 -0
- package/lib/types/markdown/MarkdownDelegate.d.ts +46 -0
- package/lib/types/markdown/MarkdownText.d.ts +54 -0
- package/lib/types/markdown/cjkFriendlyStrong.d.ts +9 -0
- package/lib/types/markdown/file-link.d.ts +13 -0
- package/lib/types/markdown/highlight.d.ts +142 -0
- package/lib/types/markdown/incremental.d.ts +80 -0
- package/lib/types/markdown/katex.d.ts +27 -0
- package/lib/types/markdown/local-image-syntax.d.ts +10 -0
- package/lib/types/markdown/mathCompatibility.d.ts +11 -0
- package/lib/types/markdown/mermaid.d.ts +39 -0
- package/lib/types/markdown/parse.d.ts +25 -0
- package/lib/types/markdown/plain-text.d.ts +22 -0
- package/lib/types/markdown/render.d.ts +158 -0
- package/lib/types/markdown/useViewportHighlighting.d.ts +11 -0
- package/lib/types/overlay-top-margin.d.ts +8 -0
- package/lib/types/pointer-grace.d.ts +22 -0
- package/lib/types/rank-by-name.d.ts +22 -0
- package/lib/types/relative-time.d.ts +23 -0
- package/lib/types/seal-geometry.d.ts +27 -0
- package/lib/types/seal-glyphs.d.ts +9 -0
- package/lib/types/settings-form/SettingsForm.d.ts +46 -0
- package/lib/types/settings-form/fields.d.ts +70 -0
- package/lib/types/settings-form/form-model.d.ts +214 -0
- package/lib/types/use-copy-feedback.d.ts +14 -0
- package/lib/types/useAnchoredMaxHeight.d.ts +11 -0
- package/lib/types/useAnchoredPosition.d.ts +34 -0
- package/lib/types/useDismissOnOutsidePointer.d.ts +11 -0
- package/lib/types/useModalLayer.d.ts +27 -0
- package/lib/types/user-text.d.ts +37 -0
- package/lib/user-text.module.css +43 -0
- package/package.json +63 -3
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ic_ds_* icon set for the qilin web UI. All glyphs render fill="currentColor"
|
|
3
|
+
* and take {size, className}. Batch A mirrors the deepsuite icon library
|
|
4
|
+
* (same figma source); batch B glyphs are harness-only figma extracts.
|
|
5
|
+
*/
|
|
6
|
+
import type { IconProps } from './props.ts';
|
|
7
|
+
export type { IconProps } from './props.ts';
|
|
8
|
+
/** ic_ds_new_chat_outline_16 */
|
|
9
|
+
export declare const IconNewChatOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
10
|
+
/** ic_ds_search_outline_16 */
|
|
11
|
+
export declare const IconSearchOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
12
|
+
/** ic_ds_globe_outline_14 — meridian globe (harness-only figma extract). */
|
|
13
|
+
export declare const IconGlobeOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
14
|
+
/** ic_ds_settings_outline_14 */
|
|
15
|
+
export declare const IconSettingsOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
16
|
+
/** ic_ds_settings_outline_16 */
|
|
17
|
+
export declare const IconSettingsOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
18
|
+
/** ic_ds_panel_left_outline_16 */
|
|
19
|
+
export declare const IconPanelLeftOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
20
|
+
/** ic_ds_ellipsis_outline_16 */
|
|
21
|
+
export declare const IconEllipsisOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
22
|
+
/** ic_ds_plus_outline_16 */
|
|
23
|
+
export declare const IconPlusOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
24
|
+
/** ic_ds_check_outline_16 */
|
|
25
|
+
export declare const IconCheckOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
26
|
+
/** ic_ds_check_outline_14 */
|
|
27
|
+
export declare const IconCheckOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
28
|
+
/** ic_ds_branch_outline_16 */
|
|
29
|
+
export declare const IconBranchOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
30
|
+
/** ic_ds_chevron_down_outline_14 */
|
|
31
|
+
export declare const IconChevronDownOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
32
|
+
/** ic_ds_chevron_left_outline_14 */
|
|
33
|
+
export declare const IconChevronLeftOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
34
|
+
/** ic_ds_chevron_right_outline_14 */
|
|
35
|
+
export declare const IconChevronRightOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
36
|
+
/** ic_ds_triangle_right_fill_14 — tree expand arrow; points right, consumers rotate it 90° for the open state. */
|
|
37
|
+
export declare const IconTriangleRightFill14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
38
|
+
/** ic_ds_chevron_up_outline_14 */
|
|
39
|
+
export declare const IconChevronUpOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
40
|
+
/** ic_ds_close_outline_16 */
|
|
41
|
+
export declare const IconCloseOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
42
|
+
/** ic_ds_close_fill_14 */
|
|
43
|
+
export declare const IconCloseFill14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
44
|
+
/** ic_ds_copy_outline_16 */
|
|
45
|
+
export declare const IconCopyOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
46
|
+
/** ic_ds_refresh_outline_16, inset 10%: the exported glyph fills its box edge
|
|
47
|
+
* to edge, one visual size above the neighbouring 16px glyphs. */
|
|
48
|
+
export declare const IconRefreshOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
49
|
+
/** ic_ds_refresh_outline_14 */
|
|
50
|
+
export declare const IconRefreshOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
51
|
+
/** ic_ds_like_outline_16 */
|
|
52
|
+
export declare const IconLikeOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
53
|
+
/** ic_ds_like_fill_16 */
|
|
54
|
+
export declare const IconLikeFill16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
55
|
+
/** ic_ds_dislike_outline_16 */
|
|
56
|
+
export declare const IconDislikeOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
57
|
+
/** ic_ds_dislike_fill_16 */
|
|
58
|
+
export declare const IconDislikeFill16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
59
|
+
/** ic_ds_share_outline_16 */
|
|
60
|
+
export declare const IconShareOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
61
|
+
/** ic_ds_edit_outline_16 */
|
|
62
|
+
export declare const IconEditOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
63
|
+
/** ic_ds_think_outline_14 */
|
|
64
|
+
export declare const IconThinkOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
65
|
+
/** ic_ds_think_outline_16 */
|
|
66
|
+
export declare const IconThinkOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
67
|
+
/** ic_ds_agent_preset_outline_16 (figma extract): node interiors knock out to transparency via mask, so the glyph sits on any fill. */
|
|
68
|
+
export declare const IconAgentPresetOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
69
|
+
/** ic_ds_browse_outline_16 */
|
|
70
|
+
export declare const IconBrowseOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
71
|
+
/** ic_ds_context_injection_outline_16 (figma extract): browse document frame with an open top and an arrow dropping in. */
|
|
72
|
+
export declare const IconContextInjectionOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
73
|
+
/** ic_ds_link_outline_14 */
|
|
74
|
+
export declare const IconLinkOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
75
|
+
/** ic_ds_link_outline_16 */
|
|
76
|
+
export declare const IconLinkOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
77
|
+
/** ic_ds_right_up_outline_14 */
|
|
78
|
+
export declare const IconRightUpOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
79
|
+
/** ic_ds_right_up_outline_16 */
|
|
80
|
+
export declare const IconRightUpOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
81
|
+
/** ic_ds_enhance_outline_16 */
|
|
82
|
+
export declare const IconEnhanceOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
83
|
+
/** ic_ds_trash_outline_16 */
|
|
84
|
+
export declare const IconTrashOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
85
|
+
/** ic_ds_warning_outline_16 */
|
|
86
|
+
export declare const IconWarningOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
87
|
+
/** ic_ds_user_outline_16 */
|
|
88
|
+
export declare const IconUserOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
89
|
+
/** ic_ds_send_outline_16 */
|
|
90
|
+
export declare const IconSendOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
91
|
+
/** ic_ds_stop_fill_16 */
|
|
92
|
+
export declare const IconStopFill16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
93
|
+
/** ic_ds_paperclip_outline_16 */
|
|
94
|
+
export declare const IconPaperclipOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
95
|
+
/** ic_ds_loading_outline_16 */
|
|
96
|
+
export declare const IconLoadingOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
97
|
+
/** ic_ds_download_outline_16 */
|
|
98
|
+
export declare const IconDownloadOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
99
|
+
/** ic_ds_play_outline_16 */
|
|
100
|
+
export declare const IconPlayOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
101
|
+
/** ic_ds_pause_outline_16 */
|
|
102
|
+
export declare const IconPauseOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
103
|
+
/** ic_ds_fullscreen_outline_16 */
|
|
104
|
+
export declare const IconFullscreenOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
105
|
+
/** ic_ds_code_outline_16 */
|
|
106
|
+
export declare const IconCodeOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
107
|
+
/** ic_ds_cordis_plugin_outline_14 */
|
|
108
|
+
export declare const IconCordisPluginOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
109
|
+
/** ic_ds_api_outline (figma extract) */
|
|
110
|
+
export declare const IconApiOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
111
|
+
/** ic_ds_personalization_outline_16 (figma extract) */
|
|
112
|
+
export declare const IconPersonalizationOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
113
|
+
/** ic_ds_project_add_outline_16 (figma extract) */
|
|
114
|
+
export declare const IconProjectAddOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
115
|
+
/**
|
|
116
|
+
* folder_open_16, outline layer only: the duotone original above reads a rung
|
|
117
|
+
* heavier than the …Outline16 family, so an icon-button row mixing them looks
|
|
118
|
+
* mismatched — this is the same geometry without the 20%-opacity inner fill.
|
|
119
|
+
*/
|
|
120
|
+
export declare const IconFolderOpenOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
121
|
+
/** folder_open_16 (figma extract): outline at full ink + 20%-opacity inner fill riding the same currentColor. */
|
|
122
|
+
export declare const IconFolderOpen16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
123
|
+
/** folder_close_16 (figma extract) */
|
|
124
|
+
export declare const IconFolderClose16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
125
|
+
/** tree_corner_8x10 (figma extract; session-tree "L" connector, stroke geometry pre-expanded) */
|
|
126
|
+
export declare const IconTreeCorner8x10: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
127
|
+
/** ic_ds_light_outline_16 */
|
|
128
|
+
export declare const IconLightOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
129
|
+
/** ic_ds_dark_outline_16 */
|
|
130
|
+
export declare const IconDarkOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
131
|
+
/** ic_ds_followsystem_outline_16 */
|
|
132
|
+
export declare const IconFollowsystemOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
133
|
+
/** ic_ds_data_outline_16 */
|
|
134
|
+
export declare const IconDataOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
135
|
+
/** IconDataOutline16 without its gear: a three-tier database cylinder. */
|
|
136
|
+
export declare const IconDatabaseOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
137
|
+
/** Thin-stroke clock: outlined dial with square-cut hour and minute hands. */
|
|
138
|
+
export declare const IconClockOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
139
|
+
/** Thin-stroke gauge: dial arc open at the bottom, filled hub, square-cut needle to the upper right.
|
|
140
|
+
* The dial center sits at y=8.75, not 8: the bottom opening leaves the glyph top-heavy, and the
|
|
141
|
+
* 0.75 drop optically centers the drawn extent in the 16 box. */
|
|
142
|
+
export declare const IconGaugeOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
143
|
+
/** ic_send_outline_14 (figma extract): thin-stroke upward send arrow. */
|
|
144
|
+
export declare const IconSendOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
145
|
+
/** ic_queue_outline_14 (figma extract): open chat bubble with two queued lines. */
|
|
146
|
+
export declare const IconQueueOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
147
|
+
/** ic_checklist_outline_14 (figma extract): two rings + two list bars. */
|
|
148
|
+
export declare const IconChecklistOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
149
|
+
/** ic_ds_List_Pen_outline_16 */
|
|
150
|
+
export declare const IconListPenOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
151
|
+
/** ic_ds_goal_outline_16 (goal strip leading glyph: dartboard with a landed arrow) */
|
|
152
|
+
export declare const IconGoalOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
153
|
+
/** sparkle_16 (Others tool-row leading glyph; hand-authored three-star
|
|
154
|
+
* approximation — the figma 43:31850 glyph is an SF Symbols "sparkles" text glyph,
|
|
155
|
+
* not extractable as vector data) */
|
|
156
|
+
export declare const IconSparkle16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
157
|
+
/** inspect_outline_12 (shared tool-row trajectory affordance glyph) */
|
|
158
|
+
export declare const IconInspectOutline12: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
159
|
+
/** skill_outline_16 (skill tool-row glyph; document instructions + sparkle) */
|
|
160
|
+
export declare const IconSkillOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
161
|
+
/** ic_ds_question_outline_14 (figma extract): ring + question glyph. */
|
|
162
|
+
export declare const IconQuestionOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
163
|
+
/** Info companion to the question outline: the same ring with an "i" glyph. */
|
|
164
|
+
export declare const IconInfoOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
165
|
+
/** Alarm clock outline for active scheduled-task indicators. */
|
|
166
|
+
export declare const IconAlarmClockOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
167
|
+
/** ic_ds_archive_outline_20 (figma extract): lidded box + label slot. The export's
|
|
168
|
+
* 0.11px stroke ring around the box contour is dropped — it restates the same
|
|
169
|
+
* contour in the same ink, which currentColor already carries. */
|
|
170
|
+
export declare const IconArchiveOutline20: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
171
|
+
/** Sign out: the door leaf left behind and an arrow leaving it. */
|
|
172
|
+
export declare const IconLogoutOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
173
|
+
/** Command prompt window with a caret and a trailing line (harness-only glyph). */
|
|
174
|
+
export declare const IconTerminalOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
175
|
+
/** Line-wrapping toggle glyph. */
|
|
176
|
+
export declare const IconWrapLinesOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
177
|
+
/**
|
|
178
|
+
* Compact row glyph of the composer menu: the composer's context-usage ring
|
|
179
|
+
* (ContextMeter) frozen at its resting look — a quiet track with one filled
|
|
180
|
+
* quarter arc. A restyle of the live ring revisits this copy.
|
|
181
|
+
*/
|
|
182
|
+
export declare const IconCompactOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
183
|
+
/** ic_ds_paper_plane_outline_14 */
|
|
184
|
+
export declare const IconPaperPlaneOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
185
|
+
/**
|
|
186
|
+
* Plan row glyph of the composer menu (#3567): a document with three ruled
|
|
187
|
+
* lines and a pencil over its corner. Drawn on a 14 grid whose content spans
|
|
188
|
+
* 0.5..13.5, so at the menu's 16px render it fills the same extent as the
|
|
189
|
+
* 16-grid glyphs beside it.
|
|
190
|
+
*/
|
|
191
|
+
export declare const IconPlanOutline14: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
192
|
+
/**
|
|
193
|
+
* The permission shield contour on the 16 grid (design set 1556), stroked at
|
|
194
|
+
* {@link SHIELD_OUTLINE_STROKE}. The composer's permission selector composes
|
|
195
|
+
* its mode marks (check, pencil, exclamation) over this same path inside one
|
|
196
|
+
* svg, so the geometry lives here once.
|
|
197
|
+
*/
|
|
198
|
+
export declare const SHIELD_OUTLINE_PATH = "M8.20554 0.899994L14.7901 3.36857V7.01026C14.7901 12 11.0466 14.2103 8.20554 15.3C5.36446 14.2103 1.62012 12 1.62012 7.01026V3.36857L8.20554 0.899994Z";
|
|
199
|
+
/** Stroke width of {@link SHIELD_OUTLINE_PATH}. */
|
|
200
|
+
export declare const SHIELD_OUTLINE_STROKE = "1.31831";
|
|
201
|
+
/** Permission row glyph of the composer menu: the shield contour alone, without a mode mark. */
|
|
202
|
+
export declare const IconShieldOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
203
|
+
/** Plugin pinwheel (design handoff for the plugin manager): four interleaved arcs on the 16 grid. */
|
|
204
|
+
export declare const IconPluginPinwheelOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
205
|
+
/** Microphone with uniform one-pixel strokes; speech-input record control. */
|
|
206
|
+
export declare const IconMicrophoneOutline16: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
207
|
+
/** ic_ds_pin_outline_16: a push-pin seen at an angle, one-pixel outline. */
|
|
208
|
+
export declare const IconPinOutlineRegular: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
209
|
+
/** Filled twin of {@link IconPinOutlineRegular}: the pinned-row marker. */
|
|
210
|
+
export declare const IconPinFillRegular: ({ size, className }: IconProps) => import("react").JSX.Element;
|
|
211
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Shared props for every ic_ds_* icon component. */
|
|
2
|
+
export interface IconProps {
|
|
3
|
+
/** Square edge in px; defaults to the glyph's own drawn size. */
|
|
4
|
+
size?: number | undefined;
|
|
5
|
+
/** Extra class for layout placement; color rides currentColor.
|
|
6
|
+
* (`| undefined` for exactOptionalPropertyTypes: callers forward their own optional prop.) */
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=props.d.ts.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cordis-free React primitives styled only through `--qilin-*` tokens.
|
|
3
|
+
*/
|
|
4
|
+
export { SettingsForm } from './settings-form/SettingsForm.tsx';
|
|
5
|
+
export type { SettingsFormLabels, SettingsFormProps } from './settings-form/SettingsForm.tsx';
|
|
6
|
+
export { SettingsSecretField, SettingsValueField } from './settings-form/fields.tsx';
|
|
7
|
+
export type { SettingsFieldProps } from './settings-form/fields.tsx';
|
|
8
|
+
export { SettingsFormModel, settingsNumberField, settingsTextField } from './settings-form/form-model.ts';
|
|
9
|
+
export type { SettingsFieldSpec, SettingsFieldState, SettingsFieldWrite, SettingsFormActions, SettingsFormPathOp, SettingsFormScope, SettingsFormScopeSnapshot, SettingsFormShell, SettingsSecretSpec, } from './settings-form/form-model.ts';
|
|
10
|
+
export { CommandText } from './CommandText.tsx';
|
|
11
|
+
export type { CommandTextProps } from './CommandText.tsx';
|
|
12
|
+
export { StateDot } from './StateDot.tsx';
|
|
13
|
+
export type { StateDotState } from './StateDot.tsx';
|
|
14
|
+
export { DisclosureRow } from './DisclosureRow.tsx';
|
|
15
|
+
export type { DisclosureRowProps } from './DisclosureRow.tsx';
|
|
16
|
+
export { Button } from './Button.tsx';
|
|
17
|
+
export type { ButtonVariant } from './Button.tsx';
|
|
18
|
+
export { Pill } from './Pill.tsx';
|
|
19
|
+
export { SegmentedControl } from './SegmentedControl.tsx';
|
|
20
|
+
export type { SegmentedControlOption } from './SegmentedControl.tsx';
|
|
21
|
+
export { Tag } from './Tag.tsx';
|
|
22
|
+
export type { TagTone } from './Tag.tsx';
|
|
23
|
+
export { Switch } from './Switch.tsx';
|
|
24
|
+
export { Checkbox } from './Checkbox.tsx';
|
|
25
|
+
export { Input } from './Input.tsx';
|
|
26
|
+
export { Menu, MenuItemButton } from './Menu.tsx';
|
|
27
|
+
export type { MenuItemButtonProps, MenuEntry, MenuItem, MenuSeparator, MenuLabel } from './Menu.tsx';
|
|
28
|
+
export { ShortcutKeys } from './ShortcutKeys.tsx';
|
|
29
|
+
export { useAnchoredMaxHeight } from './useAnchoredMaxHeight.ts';
|
|
30
|
+
export { overlayTopMargin } from './overlay-top-margin.ts';
|
|
31
|
+
export { TextShimmer } from './TextShimmer.tsx';
|
|
32
|
+
export type { TextShimmerProps } from './TextShimmer.tsx';
|
|
33
|
+
export { useAnchoredPosition } from './useAnchoredPosition.ts';
|
|
34
|
+
export type { AnchoredPositionOptions } from './useAnchoredPosition.ts';
|
|
35
|
+
export { useDismissOnOutsidePointer } from './useDismissOnOutsidePointer.ts';
|
|
36
|
+
export { HoverCard } from './HoverCard.tsx';
|
|
37
|
+
export { Modal } from './Modal.tsx';
|
|
38
|
+
export { OnboardingSurface } from './OnboardingSurface.tsx';
|
|
39
|
+
export { RiskConfirmation } from './RiskConfirmation.tsx';
|
|
40
|
+
export type { RiskConfirmationProps } from './RiskConfirmation.tsx';
|
|
41
|
+
export { ConnectionIndicator } from './ConnectionIndicator.tsx';
|
|
42
|
+
export type { ConnectionIndicatorState } from './ConnectionIndicator.tsx';
|
|
43
|
+
export { QilinSeal } from './QilinSeal.tsx';
|
|
44
|
+
export { ReferenceIcon } from './ReferenceIcon.tsx';
|
|
45
|
+
export type { ReferenceIconKind, ReferenceIconProps } from './ReferenceIcon.tsx';
|
|
46
|
+
export { LinkIcon, classifyLinkPath } from './LinkIcon.tsx';
|
|
47
|
+
export type { LinkIconKind, LinkIconProps } from './LinkIcon.tsx';
|
|
48
|
+
export { FileTypeIcon, classifyFileType, fileExtension } from './FileTypeIcon.tsx';
|
|
49
|
+
export type { CodeFileType, FileType, FileTypeIconProps, FileTypeKind, FileTypeProjectContext, } from './FileTypeIcon.tsx';
|
|
50
|
+
export { PathLabel } from './PathLabel.tsx';
|
|
51
|
+
export { projectUserText, type UserTextReferences } from './user-text.tsx';
|
|
52
|
+
export { Tooltip } from './Tooltip.tsx';
|
|
53
|
+
export type { TooltipSide } from './Tooltip.tsx';
|
|
54
|
+
export { focusWithoutRing } from './focus.ts';
|
|
55
|
+
export { observeComposition } from './keyboard-composition.ts';
|
|
56
|
+
export { closeTopModal, isBehindModal, modalSelector, useModalLayer } from './useModalLayer.ts';
|
|
57
|
+
export { Toast } from './Toast.tsx';
|
|
58
|
+
export { fileSizeText, fileSizeRoundedText } from './file-size.ts';
|
|
59
|
+
export { writeClipboard } from './clipboard.ts';
|
|
60
|
+
export { useCopyFeedback } from './use-copy-feedback.ts';
|
|
61
|
+
export type { CopyFeedback } from './use-copy-feedback.ts';
|
|
62
|
+
export { relativeTime } from './relative-time.ts';
|
|
63
|
+
export { rankByName } from './rank-by-name.ts';
|
|
64
|
+
export { isDarwinDesktop, watchDarwinDesktop } from './darwin-desktop.ts';
|
|
65
|
+
export type { RelativeTime, RelativeTimeUnit } from './relative-time.ts';
|
|
66
|
+
export { JsonTree } from './JsonTree.tsx';
|
|
67
|
+
export type { JsonTreeProps, JsonTreeLabels } from './JsonTree.tsx';
|
|
68
|
+
export { TerminalBlock, DEFAULT_TERMINAL_MAX_LINES } from './TerminalBlock.tsx';
|
|
69
|
+
export type { TerminalBlockProps, TerminalBlockLabels } from './TerminalBlock.tsx';
|
|
70
|
+
export { ReadBlock, DEFAULT_READ_MAX_LINES } from './ReadBlock.tsx';
|
|
71
|
+
export type { ReadBlockProps, ReadBlockLine, ReadBlockLabels } from './ReadBlock.tsx';
|
|
72
|
+
export { DiffBlock, DEFAULT_DIFF_MAX_LINES, diffTotals } from './DiffBlock.tsx';
|
|
73
|
+
export type { DiffBlockProps, DiffHunk, DiffBlockLabels } from './DiffBlock.tsx';
|
|
74
|
+
export { SearchBlock, DEFAULT_SEARCH_MAX_LINES } from './SearchBlock.tsx';
|
|
75
|
+
export type { SearchBlockProps, SearchMatchesBlockProps, SearchPathsBlockProps, SearchFileGroup, SearchBlockLineMatch, SearchBlockLabels, } from './SearchBlock.tsx';
|
|
76
|
+
export { WebBlock } from './WebBlock.tsx';
|
|
77
|
+
export type { WebBlockProps, WebSearchBlockProps, WebFetchBlockProps, WebSourceView, WebBlockLabels, } from './WebBlock.tsx';
|
|
78
|
+
export { CodeBlock } from './markdown/CodeBlock.tsx';
|
|
79
|
+
export type { CodeBlockProps } from './markdown/CodeBlock.tsx';
|
|
80
|
+
export { JsonBlock } from './markdown/JsonBlock.tsx';
|
|
81
|
+
export { MarkdownDelegateProvider } from './markdown/MarkdownDelegate.tsx';
|
|
82
|
+
export type { MarkdownDelegate, MarkdownDelegateProviderProps, MarkdownExternalLinkHandler } from './markdown/MarkdownDelegate.tsx';
|
|
83
|
+
export { MarkdownText } from './markdown/MarkdownText.tsx';
|
|
84
|
+
export type { MarkdownCodeLabels, MarkdownFileMentions, MarkdownLabels, MarkdownPathImages } from './markdown/MarkdownText.tsx';
|
|
85
|
+
export { extractMarkdownPlainText } from './markdown/plain-text.ts';
|
|
86
|
+
export type { MarkdownPlainTextMode, MarkdownPlainTextOptions } from './markdown/plain-text.ts';
|
|
87
|
+
export * from './icons/index.tsx';
|
|
88
|
+
export { ImageLightbox } from './ImageLightbox.tsx';
|
|
89
|
+
export type { ImageLightboxLabels } from './ImageLightbox.tsx';
|
|
90
|
+
export { MenuGroup, observeStickyMenuGroups } from './MenuGroup.tsx';
|
|
91
|
+
export { MenuSurface } from './MenuSurface.tsx';
|
|
92
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Document-wide input tracking shared by tooltips and focus-ring styles.
|
|
3
|
+
* Tooltips follow the last input; rings follow navigation or a key followed by
|
|
4
|
+
* focus on a different control. Modifiers and refocusing alone keep rings silent.
|
|
5
|
+
* Module-level listeners live for the document lifetime; Node imports are inert.
|
|
6
|
+
*/
|
|
7
|
+
/** Modality values published on the document element. */
|
|
8
|
+
export declare const INPUT_MODALITY: {
|
|
9
|
+
readonly pointer: "pointer";
|
|
10
|
+
readonly keyboard: "keyboard";
|
|
11
|
+
};
|
|
12
|
+
/** Attribute carrying whether focus navigation last owned focus. */
|
|
13
|
+
export declare const INPUT_MODALITY_ATTRIBUTE = "data-input-modality";
|
|
14
|
+
/**
|
|
15
|
+
* Whether the last input came from a pointer, independently of ring visibility.
|
|
16
|
+
* @returns True after pointer input; false after any key.
|
|
17
|
+
*/
|
|
18
|
+
export declare function pointerModality(): boolean;
|
|
19
|
+
//# sourceMappingURL=input-modality.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Composition lifetime for local keyboard handlers, including a late closing keydown. */
|
|
2
|
+
/**
|
|
3
|
+
* Observe composition until its closing key is released or consumed.
|
|
4
|
+
* @param document - document whose input events belong to the caller.
|
|
5
|
+
* @returns an event guard and a disposer for all listeners.
|
|
6
|
+
*/
|
|
7
|
+
export declare function observeComposition(document: Document): {
|
|
8
|
+
guards(event: KeyboardEvent): boolean;
|
|
9
|
+
dispose(): void;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=keyboard-composition.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Ref } from 'react';
|
|
2
|
+
export interface CodeBlockProps {
|
|
3
|
+
/** The source text, rendered verbatim (trailing newline trimmed for display). */
|
|
4
|
+
code: string;
|
|
5
|
+
/** Grammar hint (markdown fence info string or a fixed caller id); unknown = plain. */
|
|
6
|
+
lang?: string | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* The code is still growing (a streaming markdown fence): highlight through
|
|
9
|
+
* a per-instance {@link StreamingHighlightSession}, which re-tokenizes only
|
|
10
|
+
* appended text and keeps completed line groups (and DOM) untouched. The
|
|
11
|
+
* caller must keep the component instance stable across growth (a
|
|
12
|
+
* stream-stable React key); an unchanged streamed fence also retains that
|
|
13
|
+
* tree when it settles. Cold settled callers get shiki's HTML.
|
|
14
|
+
*/
|
|
15
|
+
streaming?: boolean | undefined;
|
|
16
|
+
/** Extra class merged onto the wrapper (callers position; this component draws). */
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
/** Ref for the stable source-content wrapper, for owners that use it as a scrollport. */
|
|
19
|
+
contentRef?: Ref<HTMLDivElement> | undefined;
|
|
20
|
+
/** Show a numbered gutter without adding numbers to copied source. Defaults to false. */
|
|
21
|
+
lineNumbers?: boolean | undefined;
|
|
22
|
+
/** Show the language and copy header; false when the caller supplies a toolbar. Defaults to true. */
|
|
23
|
+
showHeader?: boolean | undefined;
|
|
24
|
+
/** Copy-button idle label; the owner passes localized copy (this package is cordis-free, so copy arrives via props). */
|
|
25
|
+
copyLabel: string;
|
|
26
|
+
/** Copy-button label during the post-copy confirmation window. */
|
|
27
|
+
copiedLabel: string;
|
|
28
|
+
}
|
|
29
|
+
export declare function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers, showHeader, copyLabel, copiedLabel, }: CodeBlockProps): import("react").JSX.Element;
|
|
30
|
+
//# sourceMappingURL=CodeBlock.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function JsonBlock({ label, payload, defaultOpen, truncatedLabel }: {
|
|
2
|
+
label: string;
|
|
3
|
+
payload: unknown;
|
|
4
|
+
defaultOpen?: boolean;
|
|
5
|
+
/** Footer appended when the body exceeds the char cap, given the full length (this package is cordis-free, so copy arrives via props). */
|
|
6
|
+
truncatedLabel: (total: number) => string;
|
|
7
|
+
}): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=JsonBlock.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ImageLightboxLabels } from '../ImageLightbox.tsx';
|
|
3
|
+
/**
|
|
4
|
+
* Handle one sanitized absolute HTTP(S) URL selected from Markdown.
|
|
5
|
+
* @param href - destination URL.
|
|
6
|
+
*/
|
|
7
|
+
export type MarkdownExternalLinkHandler = (href: string) => void;
|
|
8
|
+
/** Navigation capabilities supplied by the nearest Markdown owner. */
|
|
9
|
+
export interface MarkdownDelegate {
|
|
10
|
+
/** Image previews for decoded local paths in this owner's workspace. */
|
|
11
|
+
readonly fileImages?: {
|
|
12
|
+
resolve: (path: string) => string | undefined;
|
|
13
|
+
labels: ImageLightboxLabels & {
|
|
14
|
+
open: string;
|
|
15
|
+
loading: string;
|
|
16
|
+
failed: string;
|
|
17
|
+
};
|
|
18
|
+
} | undefined;
|
|
19
|
+
/** Ordinary HTTP(S) activation; absent handlers retain native anchor behavior. */
|
|
20
|
+
readonly openExternalLink?: MarkdownExternalLinkHandler | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Open a decoded local destination from settled Markdown; absent handlers leave plain text.
|
|
23
|
+
* @param path - Absolute or workspace-relative file path.
|
|
24
|
+
* @param options - First line to reveal when the destination specifies a line or range.
|
|
25
|
+
*/
|
|
26
|
+
readonly openFile?: ((path: string, options?: {
|
|
27
|
+
line?: number;
|
|
28
|
+
}) => void) | undefined;
|
|
29
|
+
}
|
|
30
|
+
/** Props for one Markdown navigation scope. */
|
|
31
|
+
export interface MarkdownDelegateProviderProps extends MarkdownDelegate {
|
|
32
|
+
readonly children: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Scope Markdown navigation without threading callbacks through renderers.
|
|
36
|
+
* Nested providers replace the enclosing capabilities. Handler changes reach cached links.
|
|
37
|
+
* @param props - Child tree and its file and HTTP(S) link handlers.
|
|
38
|
+
* @returns the scoped child tree.
|
|
39
|
+
*/
|
|
40
|
+
export declare function MarkdownDelegateProvider({ children, openExternalLink, openFile, fileImages, }: MarkdownDelegateProviderProps): ReactNode;
|
|
41
|
+
/**
|
|
42
|
+
* Read the nearest Markdown navigation capabilities.
|
|
43
|
+
* @returns Owner callbacks, or an empty delegate outside a provider.
|
|
44
|
+
*/
|
|
45
|
+
export declare function useMarkdownDelegate(): MarkdownDelegate;
|
|
46
|
+
//# sourceMappingURL=MarkdownDelegate.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Untrusted assistant-Markdown renderer over the direct mdast pipeline:
|
|
3
|
+
* `parse.ts` grammars, the incremental streaming parser, and `render.tsx`.
|
|
4
|
+
* While a message streams, all but the trailing two blocks freeze as cached
|
|
5
|
+
* React elements and only the source tail behind them re-parses per chunk,
|
|
6
|
+
* so per-chunk work tracks the tail size instead of the whole reply. Frozen
|
|
7
|
+
* blocks keep their source-offset keys when they cross the freeze boundary,
|
|
8
|
+
* so React reconciles instead of remounting. Known deviation while
|
|
9
|
+
* streaming: a reference-style link or footnote whose definition sits on the
|
|
10
|
+
* other side of the freeze boundary renders literally until the settled
|
|
11
|
+
* full parse self-heals it.
|
|
12
|
+
*/
|
|
13
|
+
import type { MarkdownFileMentions, MarkdownHtmlRenderer, MarkdownLabels, MarkdownPathImages } from './render.tsx';
|
|
14
|
+
import 'katex/dist/katex.min.css';
|
|
15
|
+
export type { MarkdownCodeLabels, MarkdownFileMentions, MarkdownHtmlRenderer, MarkdownLabels, MarkdownPathImages } from './render.tsx';
|
|
16
|
+
/**
|
|
17
|
+
* Render untrusted assistant-authored Markdown as semantic React elements.
|
|
18
|
+
* @param props - Markdown source text preserved by the session projection;
|
|
19
|
+
* `streaming` parses incrementally across chunks and highlights fences as
|
|
20
|
+
* they grow (each fence re-tokenizes only appended text; TeX stays literal
|
|
21
|
+
* until the finalize swap so incomplete formulae never flash errors);
|
|
22
|
+
* `labels` forwards localized fence and footnote chrome — pass a
|
|
23
|
+
* reference-stable object (memoized per locale revision), because a new
|
|
24
|
+
* identity discards the streaming render cache mid-message. `fileMentions`
|
|
25
|
+
* links inline-code tokens its resolver recognizes as real files, and
|
|
26
|
+
* `pathImages` rewrites image destinations that are local file paths into
|
|
27
|
+
* displayable URLs its resolver vouches for. Those two vocabularies are the
|
|
28
|
+
* single streaming gate — they apply to settled renders only, because a
|
|
29
|
+
* streaming message's vocabulary is not final and frozen cached elements
|
|
30
|
+
* must not bake in handlers that could go stale. `html` renders authored raw
|
|
31
|
+
* HTML through the owner's own sanitizer; without it the runs stay literal
|
|
32
|
+
* text, and it joins `labels` in the streaming cache identity because frozen
|
|
33
|
+
* elements bake it in. A surrounding
|
|
34
|
+
* `MarkdownDelegateProvider` can delegate ordinary HTTP(S) activation while
|
|
35
|
+
* modified clicks retain native behavior. `variant="compact"` uses secondary
|
|
36
|
+
* text sizing, uniform bold headings, and tight block spacing; the default
|
|
37
|
+
* `body` variant uses the full document typography.
|
|
38
|
+
* The provider's `openFile` enables local Markdown links in settled messages,
|
|
39
|
+
* including `#L24` and `#L24-L30` destinations (ranges open at their first line).
|
|
40
|
+
* @returns A GFM document with TeX math rendered through KaTeX; raw HTML
|
|
41
|
+
* stays literal unless `html` supplies a renderer, and unsafe protocols are
|
|
42
|
+
* disabled. Local links without an opener remain text; absolute HTTP(S)
|
|
43
|
+
* images render directly.
|
|
44
|
+
*/
|
|
45
|
+
export declare const MarkdownText: import("react").MemoExoticComponent<({ text, streaming, labels, fileMentions, pathImages, html, variant, }: {
|
|
46
|
+
text: string;
|
|
47
|
+
streaming?: boolean;
|
|
48
|
+
labels: MarkdownLabels;
|
|
49
|
+
fileMentions?: MarkdownFileMentions | undefined;
|
|
50
|
+
pathImages?: MarkdownPathImages | undefined;
|
|
51
|
+
html?: MarkdownHtmlRenderer | undefined;
|
|
52
|
+
variant?: "body" | "compact";
|
|
53
|
+
}) => import("react").JSX.Element>;
|
|
54
|
+
//# sourceMappingURL=MarkdownText.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Let asterisk strong emphasis close after punctuation when CJK prose continues without whitespace. */
|
|
2
|
+
import type { Extension } from 'micromark-util-types';
|
|
3
|
+
/**
|
|
4
|
+
* Extend CommonMark asterisk strong emphasis for punctuation-delimited CJK
|
|
5
|
+
* prose, as a micromark syntax extension for `fromMarkdown`.
|
|
6
|
+
* @returns The micromark syntax extension.
|
|
7
|
+
*/
|
|
8
|
+
export declare function cjkFriendlyStrong(): Extension;
|
|
9
|
+
//# sourceMappingURL=cjkFriendlyStrong.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Local Markdown destinations accepted by the file-preview callback. */
|
|
2
|
+
/**
|
|
3
|
+
* Decode a file destination and its optional GitHub-style line fragment.
|
|
4
|
+
* Literal `?` and `#` in filenames must be percent-encoded.
|
|
5
|
+
* @param value - Parsed Markdown link destination.
|
|
6
|
+
* @returns A local path and optional first line, or undefined for URLs,
|
|
7
|
+
* fragment-only links, queries, malformed escapes, or invalid line ranges.
|
|
8
|
+
*/
|
|
9
|
+
export declare function parseFileLink(value: string): {
|
|
10
|
+
path: string;
|
|
11
|
+
line?: number;
|
|
12
|
+
} | undefined;
|
|
13
|
+
//# sourceMappingURL=file-link.d.ts.map
|