@simon_he/vue-tui 0.0.8 → 1.0.0
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 +142 -30
- package/dist/TSelect-BwJJbuTt.js +6089 -0
- package/dist/TTree-DK_DQBYm.js +6480 -0
- package/dist/agent.cjs +39416 -0
- package/dist/agent.d.cts +44 -0
- package/dist/agent.d.ts +44 -0
- package/dist/agent.js +828 -0
- package/dist/ansi-palette-CNXqFciC.js +57 -0
- package/dist/ansi-styles.d.ts +200 -0
- package/dist/block-source-CKUOnkgT.js +1663 -0
- package/dist/cli/headless-renderer.d.ts +29 -0
- package/dist/cli/input.d.ts +49 -0
- package/dist/cli/node-file-writers.d.ts +13 -0
- package/dist/cli/node-module.d.ts +2 -0
- package/dist/cli/parse-kitty.d.ts +2 -0
- package/dist/cli/parse-mouse.d.ts +2 -0
- package/dist/cli/parse-utils.d.ts +14 -0
- package/dist/cli/parse-xterm.d.ts +2 -0
- package/dist/cli/path-provider-types.d.ts +1 -0
- package/dist/cli/path-provider.d.ts +4 -0
- package/dist/cli/path-suggest-core.d.ts +1 -0
- package/dist/cli/path-suggest.d.ts +15 -0
- package/dist/cli/recording.d.ts +4 -0
- package/dist/cli/stdin-buffer.d.ts +33 -0
- package/dist/cli.cjs +11061 -0
- package/dist/cli.d.cts +23 -0
- package/dist/cli.d.ts +23 -0
- package/dist/cli.js +9875 -0
- package/dist/core/ansi/capability.d.ts +20 -0
- package/dist/core/ansi/colors.d.ts +41 -0
- package/dist/core/ansi/sgr.d.ts +7 -0
- package/dist/core/ansi/theme.d.ts +6 -0
- package/dist/core/ansi-palette.d.ts +14 -0
- package/dist/core/buffer/buffer.d.ts +54 -0
- package/dist/core/buffer/width.d.ts +4 -0
- package/dist/core/debug-logger.d.ts +18 -0
- package/dist/core/hyperlink.d.ts +9 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/path-provider-types.d.ts +24 -0
- package/dist/core/path-suggest.d.ts +35 -0
- package/dist/core/render-plane.d.ts +3 -0
- package/dist/core/terminal/create-terminal.d.ts +8 -0
- package/dist/core/terminal/emitter.d.ts +7 -0
- package/dist/core/types.d.ts +107 -0
- package/dist/core.cjs +3153 -0
- package/dist/core.d.cts +14 -0
- package/dist/core.d.ts +14 -0
- package/dist/core.js +424 -0
- package/dist/create-terminal-C2oiWFJU.js +1434 -0
- package/dist/create-terminal-app.d.ts +36 -0
- package/dist/dom-renderer-BqGijQID.js +1173 -0
- package/dist/env-Cl8qmNFN.js +19 -0
- package/dist/events/index.d.ts +6 -0
- package/dist/events/manager/cli-event-manager.d.ts +22 -0
- package/dist/events/manager/event-manager.d.ts +30 -0
- package/dist/events/manager/selection-suppression.d.ts +3 -0
- package/dist/events/manager/types.d.ts +108 -0
- package/dist/events/recording.d.ts +44 -0
- package/dist/experimental.cjs +4412 -1641
- package/dist/experimental.d.cts +42 -0
- package/dist/experimental.d.ts +42 -825
- package/dist/experimental.js +31 -7392
- package/dist/frame-perf-C6Xfg85O.js +24 -0
- package/dist/hyperlink-Bn02UXJb.js +419 -0
- package/dist/index.cjs +14765 -17582
- package/dist/index.d.cts +35 -0
- package/dist/index.d.ts +35 -1528
- package/dist/index.js +17 -20026
- package/dist/linkify-D_gzn9Xq.js +562 -0
- package/dist/markdown.cjs +9321 -7623
- package/dist/markdown.d.cts +11 -0
- package/dist/markdown.d.ts +11 -112
- package/dist/markdown.js +36 -1427
- package/dist/observability/cli-latency-node.d.ts +3 -0
- package/dist/observability/cli-latency-types.d.ts +41 -0
- package/dist/observability/cli-latency.d.ts +3 -0
- package/dist/observability/frame-perf-store.d.ts +18 -0
- package/dist/observability/frame-perf.d.ts +40 -0
- package/dist/observability/perf-sink.d.ts +56 -0
- package/dist/observability/trace.d.ts +40 -0
- package/dist/observability/tui-profiler.d.ts +33 -0
- package/dist/observability.cjs +221 -0
- package/dist/observability.d.cts +8 -0
- package/dist/observability.d.ts +8 -0
- package/dist/observability.js +4 -0
- package/dist/path-mnSgEpCm.js +81 -0
- package/dist/path-suggest-BNqcuE3-.js +274 -0
- package/dist/path-suggest-Dk9TRLh5.js +3 -0
- package/dist/{path-suggest-DmrmeueH.js → path-suggest-bvR9SY6Q.js} +86 -18
- package/dist/renderer/capabilities.d.ts +13 -0
- package/dist/renderer/cli/index.d.ts +2 -0
- package/dist/renderer/cli/stdout-metrics.d.ts +18 -0
- package/dist/renderer/cli/stdout-renderer.d.ts +48 -0
- package/dist/renderer/dom/dom-renderer.d.ts +157 -0
- package/dist/renderer/dom/index.d.ts +2 -0
- package/dist/renderer/index.d.ts +2 -0
- package/dist/renderer-dom.cjs +1505 -0
- package/dist/renderer-dom.d.cts +4 -0
- package/dist/renderer-dom.d.ts +4 -0
- package/dist/renderer-dom.js +7 -0
- package/dist/runtime/index.d.ts +36 -0
- package/dist/runtime/osc52.d.ts +9 -0
- package/dist/runtime-rfcZCyJq.js +1197 -0
- package/dist/runtime.cjs +1698 -0
- package/dist/runtime.d.cts +9 -0
- package/dist/runtime.d.ts +9 -0
- package/dist/runtime.js +4 -0
- package/dist/selection/terminal-selection.d.ts +123 -0
- package/dist/sgr-BmzxEjAO.js +304 -0
- package/dist/terminal-selection-DBinO6p5.js +330 -0
- package/dist/tlog-theme-qPBt5rge.js +9254 -0
- package/dist/trace-CjzYeIxN.js +182 -0
- package/dist/utils/env.d.ts +3 -0
- package/dist/utils/grapheme.d.ts +5 -0
- package/dist/utils/newlines.d.ts +1 -0
- package/dist/utils/path.d.ts +7 -0
- package/dist/utils/url-safety.d.ts +2 -0
- package/dist/vue/agent/view-models.d.ts +98 -0
- package/dist/vue/components/TAnchor.d.ts +108 -0
- package/dist/vue/components/TBox.d.ts +144 -0
- package/dist/vue/components/TCommandPalette.d.ts +587 -0
- package/dist/vue/components/TDataTable.d.ts +367 -0
- package/dist/vue/components/TDebugOverlay.d.ts +43 -0
- package/dist/vue/components/TDialog.d.ts +255 -0
- package/dist/vue/components/TFeedback.d.ts +635 -0
- package/dist/vue/components/TFlow.d.ts +85 -0
- package/dist/vue/components/TForm.d.ts +1230 -0
- package/dist/vue/components/TInput.d.ts +545 -0
- package/dist/vue/components/TInputBox.d.ts +158 -0
- package/dist/vue/components/TJsonEditor.d.ts +165 -0
- package/dist/vue/components/TLink.d.ts +239 -0
- package/dist/vue/components/TLinkifyText.d.ts +141 -0
- package/dist/vue/components/TList.d.ts +119 -0
- package/dist/vue/components/TLogLinksPanel.d.ts +238 -0
- package/dist/vue/components/TLogMinimap.d.ts +263 -0
- package/dist/vue/components/TLogScrollbar.d.ts +236 -0
- package/dist/vue/components/TLogSearchBar.d.ts +267 -0
- package/dist/vue/components/TLogSearchPager.d.ts +162 -0
- package/dist/vue/components/TLogSearchResults.d.ts +200 -0
- package/dist/vue/components/TLogView.d.ts +536 -0
- package/dist/vue/components/TLogVirtualLinksPanel.d.ts +141 -0
- package/dist/vue/components/TLogVirtualSearchResults.d.ts +146 -0
- package/dist/vue/components/TMarkdownText.d.ts +134 -0
- package/dist/vue/components/TMultilineModal.d.ts +62 -0
- package/dist/vue/components/TNavigation.d.ts +324 -0
- package/dist/vue/components/TOverlay.d.ts +366 -0
- package/dist/vue/components/TPanels.d.ts +244 -0
- package/dist/vue/components/TPathPicker.d.ts +213 -0
- package/dist/vue/components/TRenderLayer.d.ts +16 -0
- package/dist/vue/components/TRenderPlane.d.ts +17 -0
- package/dist/vue/components/TSelect.d.ts +335 -0
- package/dist/vue/components/TTable.d.ts +317 -0
- package/dist/vue/components/TText.d.ts +116 -0
- package/dist/vue/components/TThinkingView.d.ts +233 -0
- package/dist/vue/components/TToolCallView.d.ts +384 -0
- package/dist/vue/components/TTranscriptView.d.ts +221 -0
- package/dist/vue/components/TTransition.d.ts +83 -0
- package/dist/vue/components/TTree.d.ts +200 -0
- package/dist/vue/components/TUserMessageView.d.ts +344 -0
- package/dist/vue/components/TView.d.ts +127 -0
- package/dist/vue/components/TVirtualList.d.ts +182 -0
- package/dist/vue/components/TVirtualMarkdown.d.ts +168 -0
- package/dist/vue/components/TVirtualRows.d.ts +247 -0
- package/dist/vue/components/TerminalProvider.d.ts +218 -0
- package/dist/vue/components/input/host.d.ts +17 -0
- package/dist/vue/components/input/plugins/hostPlugin.d.ts +7 -0
- package/dist/vue/components/input/plugins/hostPlugin.node.d.ts +15 -0
- package/dist/vue/components/input/plugins/mentionUtils.d.ts +17 -0
- package/dist/vue/components/input/plugins/nodeMentionPathProvider.d.ts +2 -0
- package/dist/vue/components/input/plugins/promptMentionPlugin.d.ts +8 -0
- package/dist/vue/components/input/plugins/promptMentionState.d.ts +98 -0
- package/dist/vue/components/input/plugins/restrictText.d.ts +27 -0
- package/dist/vue/components/input/plugins/types.d.ts +90 -0
- package/dist/vue/components/input/utils/inlineText.d.ts +57 -0
- package/dist/vue/components/input/utils/inlineTextTokens.d.ts +34 -0
- package/dist/vue/components/input/utils/primitives.d.ts +3 -0
- package/dist/vue/components/input/utils/wordNavigation.d.ts +6 -0
- package/dist/vue/components/link/host.d.ts +15 -0
- package/dist/vue/components/list/list-geometry.d.ts +16 -0
- package/dist/vue/components/list/list-paint.d.ts +1 -0
- package/dist/vue/components/list/scroll-state.d.ts +25 -0
- package/dist/vue/components/list/selection-state.d.ts +6 -0
- package/dist/vue/components/simple-utils.d.ts +5 -0
- package/dist/vue/components/terminal-provider/copy-toast.d.ts +6 -0
- package/dist/vue/components/terminal-provider/portals.d.ts +17 -0
- package/dist/vue/components/terminal-provider/scheduler.d.ts +29 -0
- package/dist/vue/components/terminal-provider/selection-config.d.ts +15 -0
- package/dist/vue/components/terminal-provider/utils.d.ts +5 -0
- package/dist/vue/composables/use-layout.d.ts +2 -0
- package/dist/vue/composables/use-render-node.d.ts +19 -0
- package/dist/vue/composables/use-render-stack.d.ts +3 -0
- package/dist/vue/composables/use-runtime.d.ts +5 -0
- package/dist/vue/composables/use-terminal-node.d.ts +14 -0
- package/dist/vue/composables/use-terminal.d.ts +2 -0
- package/dist/vue/composables/use-visibility.d.ts +12 -0
- package/dist/vue/context.d.ts +153 -0
- package/dist/vue/index.d.ts +69 -0
- package/dist/vue/injection-key.d.ts +2 -0
- package/dist/vue/linkify.d.ts +11 -0
- package/dist/vue/log/append-only-log-store.d.ts +2 -0
- package/dist/vue/log/tlog-keymap.d.ts +28 -0
- package/dist/vue/log/tlog-plugins.d.ts +144 -0
- package/dist/vue/log/tlog-session.d.ts +81 -0
- package/dist/vue/log/tlog-theme.d.ts +68 -0
- package/dist/vue/log/types.d.ts +43 -0
- package/dist/vue/log/use-tlog-link-controller.d.ts +31 -0
- package/dist/vue/log/use-tlog-retained-index.d.ts +26 -0
- package/dist/vue/log/use-tlog-search-controller.d.ts +51 -0
- package/dist/vue/log/use-tlog-search-results-page.d.ts +31 -0
- package/dist/vue/log/use-tlog-virtual-search-results.d.ts +22 -0
- package/dist/vue/markdown/ast.d.ts +3 -0
- package/dist/vue/markdown/block-source.d.ts +22 -0
- package/dist/vue/markdown/document.d.ts +20 -0
- package/dist/vue/markdown/layout.d.ts +21 -0
- package/dist/vue/markdown/parser.d.ts +11 -0
- package/dist/vue/markdown/render.d.ts +10 -0
- package/dist/vue/markdown/theme.d.ts +186 -0
- package/dist/vue/markdown/types.d.ts +59 -0
- package/dist/vue/overlay.d.ts +27 -0
- package/dist/vue/render/context.d.ts +3 -0
- package/dist/vue/render/render-manager.d.ts +94 -0
- package/dist/vue/router/RouterView.d.ts +25 -0
- package/dist/vue/router/composables.d.ts +4 -0
- package/dist/vue/router/context.d.ts +4 -0
- package/dist/vue/router/router.d.ts +7 -0
- package/dist/vue/router/types.d.ts +29 -0
- package/dist/vue/scheduler/frame-mailbox.d.ts +55 -0
- package/dist/vue/scheduler/frame-scheduler.d.ts +51 -0
- package/dist/vue/theme.d.ts +48 -0
- package/dist/vue/transcript/hit-regions.d.ts +2 -0
- package/dist/vue/transcript/layout.d.ts +20 -0
- package/dist/vue/transcript/plain-text.d.ts +2 -0
- package/dist/vue/transcript/types.d.ts +122 -0
- package/dist/vue/utils/frame-task.d.ts +6 -0
- package/dist/vue/utils/rect.d.ts +4 -0
- package/dist/vue/utils/row-scroll.d.ts +25 -0
- package/dist/vue/utils/style-cache.d.ts +3 -0
- package/dist/vue/utils/text.d.ts +27 -0
- package/dist/vue/utils/wheel-scroll.d.ts +18 -0
- package/dist/vue.cjs +23668 -0
- package/dist/vue.d.cts +1 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +3957 -0
- package/dist/{wheel-scroll-CiNsasLf.js → wheel-scroll-vBRaQ7p-.js} +404 -405
- package/package.json +185 -35
- package/dist/path-suggest-BeV6n7m-.js +0 -3
- package/dist/sgr-Tko2EQ0U.js +0 -484
- package/dist/theme-Bsm65g8k.d.ts +0 -32
- package/dist/types-ClIV2h1o.d.ts +0 -103
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogViewHandle } from "../components/TLogView.js";
|
|
3
|
+
import type { TLogSavedSearch } from "./use-tlog-search-controller.js";
|
|
4
|
+
export type StorageLike = Readonly<{
|
|
5
|
+
getItem: (key: string) => string | null;
|
|
6
|
+
setItem: (key: string, value: string) => void;
|
|
7
|
+
removeItem: (key: string) => void;
|
|
8
|
+
}>;
|
|
9
|
+
export type TLogViewSessionState = Readonly<{
|
|
10
|
+
scrollTop: number;
|
|
11
|
+
firstLineIndex: number;
|
|
12
|
+
visualIndexMode: "estimated" | "exact";
|
|
13
|
+
search?: Readonly<{
|
|
14
|
+
query: string;
|
|
15
|
+
mode: "text" | "regex";
|
|
16
|
+
caseSensitive: boolean;
|
|
17
|
+
wholeWord: boolean;
|
|
18
|
+
regexFlags?: string;
|
|
19
|
+
currentMatchIndex: number;
|
|
20
|
+
history?: readonly string[];
|
|
21
|
+
savedSearches?: readonly TLogSavedSearch[];
|
|
22
|
+
}>;
|
|
23
|
+
ui?: Readonly<{
|
|
24
|
+
resultsPage?: number;
|
|
25
|
+
linksPanelActiveIndex?: number;
|
|
26
|
+
wrap?: boolean;
|
|
27
|
+
ansi?: boolean;
|
|
28
|
+
links?: boolean;
|
|
29
|
+
keyboardLinks?: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
export type TLogViewSessionBindings = Readonly<{
|
|
33
|
+
logView: Ref<TLogViewHandle | null>;
|
|
34
|
+
visualIndexMode?: Ref<"estimated" | "exact">;
|
|
35
|
+
wrap?: Ref<boolean>;
|
|
36
|
+
ansi?: Ref<boolean>;
|
|
37
|
+
links?: Ref<boolean>;
|
|
38
|
+
keyboardLinks?: Ref<boolean>;
|
|
39
|
+
search?: Readonly<{
|
|
40
|
+
query: Ref<string>;
|
|
41
|
+
mode: Ref<"text" | "regex">;
|
|
42
|
+
caseSensitive: Ref<boolean>;
|
|
43
|
+
wholeWord: Ref<boolean>;
|
|
44
|
+
regexFlags: Ref<string>;
|
|
45
|
+
searchHistory?: Ref<readonly string[]>;
|
|
46
|
+
savedSearches?: Ref<readonly TLogSavedSearch[]>;
|
|
47
|
+
updateQuery: (value: string) => void;
|
|
48
|
+
updateMode: (value: "text" | "regex") => void;
|
|
49
|
+
updateCaseSensitive: (value: boolean) => void;
|
|
50
|
+
updateWholeWord: (value: boolean) => void;
|
|
51
|
+
updateRegexFlags: (value: string) => void;
|
|
52
|
+
setSearchHistory?: (value: readonly string[]) => void;
|
|
53
|
+
setSavedSearches?: (value: readonly TLogSavedSearch[]) => void;
|
|
54
|
+
clearSearch: () => void;
|
|
55
|
+
selectMatch: (matchIndex: number) => boolean;
|
|
56
|
+
resultsPage?: Readonly<{
|
|
57
|
+
state: Ref<Readonly<{
|
|
58
|
+
page: number;
|
|
59
|
+
}>>;
|
|
60
|
+
setPage: (page: number) => void;
|
|
61
|
+
}>;
|
|
62
|
+
}>;
|
|
63
|
+
linkController?: Readonly<{
|
|
64
|
+
activeIndex: Ref<number>;
|
|
65
|
+
focusVisibleLink: (visibleIndex: number) => boolean;
|
|
66
|
+
clearFocus: () => void;
|
|
67
|
+
}>;
|
|
68
|
+
}>;
|
|
69
|
+
export declare function serializeTLogViewSessionState(state: TLogViewSessionState): string;
|
|
70
|
+
export declare function deserializeTLogViewSessionState(value: string | null | undefined): TLogViewSessionState | null;
|
|
71
|
+
export declare function createTLogViewSessionStore(options?: {
|
|
72
|
+
storageKey?: string;
|
|
73
|
+
storage?: StorageLike | null;
|
|
74
|
+
}): {
|
|
75
|
+
state: Ref<TLogViewSessionState | null>;
|
|
76
|
+
load: () => TLogViewSessionState | null;
|
|
77
|
+
save: (state: TLogViewSessionState) => void;
|
|
78
|
+
clear: () => void;
|
|
79
|
+
};
|
|
80
|
+
export declare function captureTLogViewSessionState(bindings: TLogViewSessionBindings): TLogViewSessionState | null;
|
|
81
|
+
export declare function restoreTLogViewSessionState(bindings: TLogViewSessionBindings, state: TLogViewSessionState | null): boolean;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { Style } from "../../core/types.js";
|
|
2
|
+
import type { TLogSearchBar } from "../components/TLogSearchBar.js";
|
|
3
|
+
import type { TLogSearchPager } from "../components/TLogSearchPager.js";
|
|
4
|
+
import type { TLogVirtualLinksPanel } from "../components/TLogVirtualLinksPanel.js";
|
|
5
|
+
import type { TLogVirtualSearchResults } from "../components/TLogVirtualSearchResults.js";
|
|
6
|
+
import type { TLogMinimap } from "../components/TLogMinimap.js";
|
|
7
|
+
import type { TLogScrollbar } from "../components/TLogScrollbar.js";
|
|
8
|
+
import type { TLogView } from "../components/TLogView.js";
|
|
9
|
+
import type { TLogKeymap } from "./tlog-keymap.js";
|
|
10
|
+
export type TLogTheme = Readonly<{
|
|
11
|
+
base?: Style;
|
|
12
|
+
error?: Style;
|
|
13
|
+
warning?: Style;
|
|
14
|
+
info?: Style;
|
|
15
|
+
search?: Readonly<{
|
|
16
|
+
match?: Style;
|
|
17
|
+
currentMatch?: Style;
|
|
18
|
+
input?: Style;
|
|
19
|
+
error?: Style;
|
|
20
|
+
active?: Style;
|
|
21
|
+
disabled?: Style;
|
|
22
|
+
}>;
|
|
23
|
+
links?: Readonly<{
|
|
24
|
+
link?: Style;
|
|
25
|
+
focused?: Style;
|
|
26
|
+
active?: Style;
|
|
27
|
+
disabled?: Style;
|
|
28
|
+
}>;
|
|
29
|
+
scrollbar?: Readonly<{
|
|
30
|
+
track?: Style;
|
|
31
|
+
thumb?: Style;
|
|
32
|
+
measuring?: Style;
|
|
33
|
+
marker?: Style;
|
|
34
|
+
currentMarker?: Style;
|
|
35
|
+
}>;
|
|
36
|
+
minimap?: Readonly<{
|
|
37
|
+
density?: Style;
|
|
38
|
+
viewport?: Style;
|
|
39
|
+
marker?: Style;
|
|
40
|
+
currentMarker?: Style;
|
|
41
|
+
estimated?: Style;
|
|
42
|
+
}>;
|
|
43
|
+
}>;
|
|
44
|
+
export type TLogUiPreset = Readonly<{
|
|
45
|
+
theme: TLogTheme;
|
|
46
|
+
keymap: TLogKeymap;
|
|
47
|
+
}>;
|
|
48
|
+
type SearchBarThemeProps = Partial<InstanceType<typeof TLogSearchBar>["$props"]>;
|
|
49
|
+
type SearchResultsThemeProps = Partial<InstanceType<typeof TLogVirtualSearchResults>["$props"]>;
|
|
50
|
+
type SearchPagerThemeProps = Partial<InstanceType<typeof TLogSearchPager>["$props"]>;
|
|
51
|
+
type LinksPanelThemeProps = Partial<InstanceType<typeof TLogVirtualLinksPanel>["$props"]>;
|
|
52
|
+
type ScrollbarThemeProps = Partial<InstanceType<typeof TLogScrollbar>["$props"]>;
|
|
53
|
+
type MinimapThemeProps = Partial<InstanceType<typeof TLogMinimap>["$props"]>;
|
|
54
|
+
type LogViewThemeProps = Partial<InstanceType<typeof TLogView>["$props"]>;
|
|
55
|
+
export declare const tlogDefaultTheme: TLogTheme;
|
|
56
|
+
export declare const tlogDarkTheme: TLogTheme;
|
|
57
|
+
export declare const tlogHighContrastTheme: TLogTheme;
|
|
58
|
+
export declare const tlogDefaultPreset: TLogUiPreset;
|
|
59
|
+
export declare const tlogDarkPreset: TLogUiPreset;
|
|
60
|
+
export declare const tlogHighContrastPreset: TLogUiPreset;
|
|
61
|
+
export declare function resolveTLogViewTheme(theme: TLogTheme): LogViewThemeProps;
|
|
62
|
+
export declare function resolveTLogSearchBarTheme(theme: TLogTheme): SearchBarThemeProps;
|
|
63
|
+
export declare function resolveTLogSearchResultsTheme(theme: TLogTheme): SearchResultsThemeProps;
|
|
64
|
+
export declare function resolveTLogSearchPagerTheme(theme: TLogTheme): SearchPagerThemeProps;
|
|
65
|
+
export declare function resolveTLogLinksPanelTheme(theme: TLogTheme): LinksPanelThemeProps;
|
|
66
|
+
export declare function resolveTLogScrollbarTheme(theme: TLogTheme): ScrollbarThemeProps;
|
|
67
|
+
export declare function resolveTLogMinimapTheme(theme: TLogTheme): MinimapThemeProps;
|
|
68
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
export interface TLogDataSource {
|
|
3
|
+
lineCount(): number;
|
|
4
|
+
getLine(index: number): string;
|
|
5
|
+
getLineKey?: (index: number) => string | number;
|
|
6
|
+
firstLineIndex?: () => number;
|
|
7
|
+
}
|
|
8
|
+
export type CreateAppendOnlyLogStoreOptions = Readonly<{
|
|
9
|
+
maxLines?: number;
|
|
10
|
+
}>;
|
|
11
|
+
export type AppendOnlyLogStore = Readonly<{
|
|
12
|
+
source: TLogDataSource;
|
|
13
|
+
version: Ref<number>;
|
|
14
|
+
appendLine: (line: string) => void;
|
|
15
|
+
appendLines: (lines: readonly string[]) => void;
|
|
16
|
+
appendChunk: (chunk: string) => void;
|
|
17
|
+
replaceTail: (text: string) => void;
|
|
18
|
+
clear: () => void;
|
|
19
|
+
}>;
|
|
20
|
+
export type TLogViewVisualIndexStatus = "estimated" | "measuring" | "exact";
|
|
21
|
+
export type TLogViewVisualIndexOptions = Readonly<{
|
|
22
|
+
/**
|
|
23
|
+
* Max time spent measuring wrapped visual rows in one scheduler frame.
|
|
24
|
+
* Default: 4ms.
|
|
25
|
+
*/
|
|
26
|
+
measureBudgetMs?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Optional retained-window cap for exact visual index work.
|
|
29
|
+
* Undefined means measure the whole retained source window.
|
|
30
|
+
*/
|
|
31
|
+
maxMeasuredLines?: number;
|
|
32
|
+
}>;
|
|
33
|
+
export type TLogViewScrollPayload = Readonly<{
|
|
34
|
+
scrollTop: number;
|
|
35
|
+
atBottom: boolean;
|
|
36
|
+
lineCount: number;
|
|
37
|
+
estimatedVisualRowCount: number;
|
|
38
|
+
visualRowCount: number;
|
|
39
|
+
measuredVisualRowCount: number;
|
|
40
|
+
measuredLineCount: number;
|
|
41
|
+
visualIndexStatus: TLogViewVisualIndexStatus;
|
|
42
|
+
firstLineIndex?: number;
|
|
43
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogViewHandle, TLogViewLinkActivatePayload, TLogViewLinkClickPayload } from "../components/TLogView.js";
|
|
3
|
+
import type { TLogLinkPanelItem } from "../components/TLogLinksPanel.js";
|
|
4
|
+
import type { TLogViewPlugin } from "./tlog-plugins.js";
|
|
5
|
+
export type TLogLinkActionSource = "click" | "keyboard" | "programmatic" | "panel";
|
|
6
|
+
export type TLogLinkAction = Readonly<{
|
|
7
|
+
href: string;
|
|
8
|
+
text: string;
|
|
9
|
+
source: TLogLinkActionSource;
|
|
10
|
+
absoluteLineIndex: number;
|
|
11
|
+
index: number;
|
|
12
|
+
startCell: number;
|
|
13
|
+
endCell: number;
|
|
14
|
+
}>;
|
|
15
|
+
export type UseTLogLinkControllerOptions = Readonly<{
|
|
16
|
+
onAction?: (action: TLogLinkAction) => void;
|
|
17
|
+
plugins?: readonly TLogViewPlugin[];
|
|
18
|
+
}>;
|
|
19
|
+
export declare function useTLogLinkController(logView: Ref<TLogViewHandle | null>, options?: UseTLogLinkControllerOptions): {
|
|
20
|
+
visibleLinks: Ref<readonly TLogLinkPanelItem[]>;
|
|
21
|
+
activeIndex: Ref<number>;
|
|
22
|
+
refresh: () => void;
|
|
23
|
+
focusVisibleLink: (visibleIndex: number) => boolean;
|
|
24
|
+
focusNextLink: () => boolean;
|
|
25
|
+
focusPreviousLink: () => boolean;
|
|
26
|
+
clearFocus: () => void;
|
|
27
|
+
activateVisibleLink: (visibleIndex: number) => boolean;
|
|
28
|
+
activateFocusedLink: () => boolean;
|
|
29
|
+
handleLinkClick: (payload: TLogViewLinkClickPayload) => void;
|
|
30
|
+
handleLinkActivate: (payload: TLogViewLinkActivatePayload) => void;
|
|
31
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogMinimapDensityBucket } from "../components/TLogMinimap.js";
|
|
3
|
+
import type { TLogViewHandle } from "../components/TLogView.js";
|
|
4
|
+
import type { TLogDataSource } from "./types.js";
|
|
5
|
+
import type { TLogViewExternalLink, TLogViewExternalMarker, TLogViewPlugin } from "./tlog-plugins.js";
|
|
6
|
+
export type TLogIndexStatus = "idle" | "indexing" | "done" | "error";
|
|
7
|
+
export type TLogDiagnosticMarker = TLogViewExternalMarker;
|
|
8
|
+
export type TLogIndexedLink = TLogViewExternalLink;
|
|
9
|
+
export type TLogRetainedIndexOptions = Readonly<{
|
|
10
|
+
links?: boolean;
|
|
11
|
+
levels?: boolean;
|
|
12
|
+
urls?: boolean;
|
|
13
|
+
budgetMs?: number;
|
|
14
|
+
maxItems?: number;
|
|
15
|
+
bucketCount?: number;
|
|
16
|
+
allowFileUrls?: boolean;
|
|
17
|
+
plugins?: readonly TLogViewPlugin[];
|
|
18
|
+
}>;
|
|
19
|
+
export declare function useTLogRetainedIndex(logView: Ref<TLogViewHandle | null>, source: Ref<TLogDataSource>, version: Ref<number>, options?: TLogRetainedIndexOptions): {
|
|
20
|
+
status: Ref<TLogIndexStatus>;
|
|
21
|
+
links: Ref<readonly TLogIndexedLink[]>;
|
|
22
|
+
diagnostics: Ref<readonly TLogDiagnosticMarker[]>;
|
|
23
|
+
density: Ref<readonly TLogMinimapDensityBucket[]>;
|
|
24
|
+
refresh: () => void;
|
|
25
|
+
cancel: () => void;
|
|
26
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogSearchBarMode, TLogSearchBarState } from "../components/TLogSearchBar.js";
|
|
3
|
+
import type { TLogViewHandle, TLogViewScrollMetrics, TLogViewSearchMarker, TLogViewSearchState } from "../components/TLogView.js";
|
|
4
|
+
import type { UseTLogSearchResultsPageOptions } from "./use-tlog-search-results-page.js";
|
|
5
|
+
import { useTLogSearchResultsPage } from "./use-tlog-search-results-page.js";
|
|
6
|
+
export type TLogSavedSearch = Readonly<{
|
|
7
|
+
id: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
query: string;
|
|
10
|
+
mode: TLogSearchBarMode;
|
|
11
|
+
caseSensitive?: boolean;
|
|
12
|
+
wholeWord?: boolean;
|
|
13
|
+
regexFlags?: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type UseTLogSearchControllerOptions = Readonly<UseTLogSearchResultsPageOptions & {
|
|
16
|
+
initialQuery?: string;
|
|
17
|
+
initialMode?: TLogSearchBarMode;
|
|
18
|
+
initialCaseSensitive?: boolean;
|
|
19
|
+
initialWholeWord?: boolean;
|
|
20
|
+
initialRegexFlags?: string;
|
|
21
|
+
maxHistory?: number;
|
|
22
|
+
initialSavedSearches?: readonly TLogSavedSearch[];
|
|
23
|
+
}>;
|
|
24
|
+
export declare function useTLogSearchController(logView: Ref<TLogViewHandle | null>, options?: UseTLogSearchControllerOptions): {
|
|
25
|
+
query: Ref<string>;
|
|
26
|
+
mode: Ref<TLogSearchBarMode>;
|
|
27
|
+
caseSensitive: Ref<boolean>;
|
|
28
|
+
wholeWord: Ref<boolean>;
|
|
29
|
+
regexFlags: Ref<string>;
|
|
30
|
+
searchState: Ref<TLogViewSearchState>;
|
|
31
|
+
searchBarState: Ref<TLogSearchBarState>;
|
|
32
|
+
resultsPage: ReturnType<typeof useTLogSearchResultsPage>;
|
|
33
|
+
markers: Ref<readonly TLogViewSearchMarker[]>;
|
|
34
|
+
metrics: Ref<TLogViewScrollMetrics | null>;
|
|
35
|
+
searchHistory: Ref<readonly string[]>;
|
|
36
|
+
savedSearches: Ref<readonly TLogSavedSearch[]>;
|
|
37
|
+
updateQuery: (value: string) => void;
|
|
38
|
+
updateMode: (value: TLogSearchBarMode) => void;
|
|
39
|
+
updateCaseSensitive: (value: boolean) => void;
|
|
40
|
+
updateWholeWord: (value: boolean) => void;
|
|
41
|
+
updateRegexFlags: (value: string) => void;
|
|
42
|
+
nextMatch: () => void;
|
|
43
|
+
previousMatch: () => void;
|
|
44
|
+
clearSearch: () => void;
|
|
45
|
+
selectMatch: (matchIndex: number) => boolean;
|
|
46
|
+
refresh: () => void;
|
|
47
|
+
saveCurrentSearch: (label?: string) => TLogSavedSearch | null;
|
|
48
|
+
applySavedSearch: (id: string) => boolean;
|
|
49
|
+
setSearchHistory: (value: readonly string[]) => void;
|
|
50
|
+
setSavedSearches: (value: readonly TLogSavedSearch[]) => void;
|
|
51
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogSearchResultItem } from "../components/TLogSearchResults.js";
|
|
3
|
+
import type { TLogViewHandle, TLogViewSearchError, TLogViewSearchState } from "../components/TLogView.js";
|
|
4
|
+
export type UseTLogSearchResultsPageOptions = Readonly<{
|
|
5
|
+
pageSize?: number;
|
|
6
|
+
includePreview?: boolean;
|
|
7
|
+
previewWidth?: number;
|
|
8
|
+
contextCells?: number;
|
|
9
|
+
}>;
|
|
10
|
+
export type TLogSearchResultsPageState = Readonly<{
|
|
11
|
+
page: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
pageCount: number;
|
|
14
|
+
matchCount: number;
|
|
15
|
+
offset: number;
|
|
16
|
+
activeIndex: number;
|
|
17
|
+
currentMatchIndex: number;
|
|
18
|
+
status: TLogViewSearchState["status"];
|
|
19
|
+
error: TLogViewSearchError | null;
|
|
20
|
+
results: readonly TLogSearchResultItem[];
|
|
21
|
+
}>;
|
|
22
|
+
export declare function useTLogSearchResultsPage(logView: Ref<TLogViewHandle | null>, options?: UseTLogSearchResultsPageOptions): {
|
|
23
|
+
state: Ref<TLogSearchResultsPageState>;
|
|
24
|
+
refresh: () => void;
|
|
25
|
+
clear: (status?: TLogViewSearchState["status"], error?: TLogViewSearchError | null) => void;
|
|
26
|
+
setPage: (page: number) => void;
|
|
27
|
+
nextPage: () => void;
|
|
28
|
+
previousPage: () => void;
|
|
29
|
+
syncPageToCurrentMatch: () => void;
|
|
30
|
+
selectResult: (matchIndex: number) => boolean;
|
|
31
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
|
+
import type { TLogSearchResultItem } from "../components/TLogSearchResults.js";
|
|
3
|
+
import type { TLogViewHandle, TLogViewSearchError, TLogViewSearchState } from "../components/TLogView.js";
|
|
4
|
+
export type UseTLogVirtualSearchResultsOptions = Readonly<{
|
|
5
|
+
includePreview?: boolean;
|
|
6
|
+
previewWidth?: number;
|
|
7
|
+
contextCells?: number;
|
|
8
|
+
}>;
|
|
9
|
+
export type TLogVirtualSearchResultsState = Readonly<{
|
|
10
|
+
itemCount: number;
|
|
11
|
+
itemVersion: number;
|
|
12
|
+
activeIndex: number;
|
|
13
|
+
currentMatchIndex: number;
|
|
14
|
+
status: TLogViewSearchState["status"];
|
|
15
|
+
error: TLogViewSearchError | null;
|
|
16
|
+
}>;
|
|
17
|
+
export declare function useTLogVirtualSearchResults(logView: Ref<TLogViewHandle | null>, options?: UseTLogVirtualSearchResultsOptions): {
|
|
18
|
+
state: Ref<TLogVirtualSearchResultsState>;
|
|
19
|
+
refresh: () => void;
|
|
20
|
+
getItem: (index: number) => TLogSearchResultItem | null;
|
|
21
|
+
select: (matchIndex: number) => boolean;
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type TuiMarkdownParser } from "./parser.js";
|
|
2
|
+
import type { TuiMarkdownThemeOverrides } from "./theme.js";
|
|
3
|
+
import type { TuiMarkdownBlock } from "./types.js";
|
|
4
|
+
export type TuiMarkdownBlockSourceSnapshot = Readonly<{
|
|
5
|
+
version: number;
|
|
6
|
+
blocks: readonly TuiMarkdownBlock[];
|
|
7
|
+
}>;
|
|
8
|
+
export type TuiMarkdownBlockSource = Readonly<{
|
|
9
|
+
version: number;
|
|
10
|
+
blocks: readonly TuiMarkdownBlock[];
|
|
11
|
+
appendDelta: (text: string) => void;
|
|
12
|
+
replaceTailBlock: (text: string) => void;
|
|
13
|
+
finalizeBlock: () => void;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
snapshot: () => TuiMarkdownBlockSourceSnapshot;
|
|
16
|
+
}>;
|
|
17
|
+
export type TuiMarkdownBlockSourceOptions = Readonly<{
|
|
18
|
+
parser?: TuiMarkdownParser;
|
|
19
|
+
customHtmlTags?: readonly string[];
|
|
20
|
+
theme?: TuiMarkdownThemeOverrides;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function createMarkdownBlockSource(options?: TuiMarkdownBlockSourceOptions): TuiMarkdownBlockSource;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type TuiMarkdownParser } from "./parser.js";
|
|
2
|
+
import { type TuiMarkdownThemeOverrides } from "./theme.js";
|
|
3
|
+
import type { TuiMarkdownBlock, TuiMarkdownNode, TuiMarkdownVisualRow } from "./types.js";
|
|
4
|
+
import type { WidthProvider } from "../../core/buffer/width.js";
|
|
5
|
+
/**
|
|
6
|
+
* This helper always builds visual rows from the full source string. Components
|
|
7
|
+
* that need streaming reuse can call buildMarkdownBlocks and cache block layout.
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildMarkdownBlocks(content: string, parser: TuiMarkdownParser, options?: Readonly<{
|
|
10
|
+
final?: boolean;
|
|
11
|
+
theme?: TuiMarkdownThemeOverrides;
|
|
12
|
+
}>): Readonly<{
|
|
13
|
+
nodes: readonly TuiMarkdownNode[];
|
|
14
|
+
blocks: readonly TuiMarkdownBlock[];
|
|
15
|
+
}>;
|
|
16
|
+
export declare function buildMarkdownVisualRows(content: string, width: number, parser: TuiMarkdownParser, options?: Readonly<{
|
|
17
|
+
final?: boolean;
|
|
18
|
+
theme?: TuiMarkdownThemeOverrides;
|
|
19
|
+
widthProvider?: WidthProvider;
|
|
20
|
+
}>): readonly TuiMarkdownVisualRow[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { WidthProvider } from "../../core/buffer/width.js";
|
|
2
|
+
import type { TuiMarkdownBlock, TuiMarkdownVisualRow } from "./types.js";
|
|
3
|
+
export type TuiMarkdownLayoutCache = Readonly<{
|
|
4
|
+
width: number;
|
|
5
|
+
widthProvider?: WidthProvider;
|
|
6
|
+
entries: ReadonlyMap<string, TuiMarkdownLayoutCacheEntry>;
|
|
7
|
+
}>;
|
|
8
|
+
export type TuiMarkdownLayoutOptions = Readonly<{
|
|
9
|
+
widthProvider?: WidthProvider;
|
|
10
|
+
}>;
|
|
11
|
+
type TuiMarkdownLayoutCacheEntry = Readonly<{
|
|
12
|
+
signature: string;
|
|
13
|
+
rows: readonly TuiMarkdownVisualRow[];
|
|
14
|
+
}>;
|
|
15
|
+
export declare function layoutMarkdownBlock(block: TuiMarkdownBlock, width: number): readonly TuiMarkdownVisualRow[];
|
|
16
|
+
export declare function layoutMarkdownBlocksCached(blocks: readonly TuiMarkdownBlock[], width: number, previous?: TuiMarkdownLayoutCache): Readonly<{
|
|
17
|
+
rows: readonly TuiMarkdownVisualRow[];
|
|
18
|
+
cache: TuiMarkdownLayoutCache;
|
|
19
|
+
}>;
|
|
20
|
+
export declare function layoutMarkdownBlocks(blocks: readonly TuiMarkdownBlock[], width: number, options?: TuiMarkdownLayoutOptions): readonly TuiMarkdownVisualRow[];
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TuiMarkdownNode } from "./types.js";
|
|
2
|
+
export interface TuiMarkdownParseConfig {
|
|
3
|
+
streaming?: boolean;
|
|
4
|
+
customHtmlTags?: readonly string[];
|
|
5
|
+
}
|
|
6
|
+
export interface TuiMarkdownParser {
|
|
7
|
+
parse: (content: string, final: boolean) => TuiMarkdownNode[];
|
|
8
|
+
}
|
|
9
|
+
export declare function sanitizeMarkdownLink(url: string): string | null;
|
|
10
|
+
export declare function isSafeMarkdownLink(url: string): boolean;
|
|
11
|
+
export declare function createTuiMarkdownParser(config?: TuiMarkdownParseConfig): TuiMarkdownParser;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Style, Terminal } from "../../core/types.js";
|
|
2
|
+
import type { TuiMarkdownVisualRow } from "./types.js";
|
|
3
|
+
export declare function paintMarkdownVisualRow(terminal: Terminal, row: TuiMarkdownVisualRow | undefined, options: Readonly<{
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
w: number;
|
|
7
|
+
clipStart?: number;
|
|
8
|
+
baseStyle: Style;
|
|
9
|
+
clear?: boolean;
|
|
10
|
+
}>): void;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { Style } from "../../core/types.js";
|
|
2
|
+
export type TuiMarkdownTheme = Readonly<{
|
|
3
|
+
heading: readonly [Style, Style, Style, Style, Style, Style];
|
|
4
|
+
strong: Style;
|
|
5
|
+
emphasis: Style;
|
|
6
|
+
strikethrough: Style;
|
|
7
|
+
inlineCode: Style;
|
|
8
|
+
link: Style;
|
|
9
|
+
blockquote: Style;
|
|
10
|
+
listMarker: Style;
|
|
11
|
+
codeBlock: Style;
|
|
12
|
+
thematicBreak: Style;
|
|
13
|
+
html: Style;
|
|
14
|
+
}>;
|
|
15
|
+
export type TuiMarkdownThemeOverrides = Readonly<Partial<{
|
|
16
|
+
heading: readonly Partial<Style>[];
|
|
17
|
+
strong: Partial<Style>;
|
|
18
|
+
emphasis: Partial<Style>;
|
|
19
|
+
strikethrough: Partial<Style>;
|
|
20
|
+
inlineCode: Partial<Style>;
|
|
21
|
+
link: Partial<Style>;
|
|
22
|
+
blockquote: Partial<Style>;
|
|
23
|
+
listMarker: Partial<Style>;
|
|
24
|
+
codeBlock: Partial<Style>;
|
|
25
|
+
thematicBreak: Partial<Style>;
|
|
26
|
+
html: Partial<Style>;
|
|
27
|
+
}>>;
|
|
28
|
+
export declare const DEFAULT_TUI_MARKDOWN_THEME: Readonly<{
|
|
29
|
+
heading: readonly [Readonly<{
|
|
30
|
+
fg?: string;
|
|
31
|
+
bg?: string;
|
|
32
|
+
bold?: boolean;
|
|
33
|
+
dim?: boolean;
|
|
34
|
+
italic?: boolean;
|
|
35
|
+
underline?: boolean;
|
|
36
|
+
inverse?: boolean;
|
|
37
|
+
href?: string;
|
|
38
|
+
}>, Readonly<{
|
|
39
|
+
fg?: string;
|
|
40
|
+
bg?: string;
|
|
41
|
+
bold?: boolean;
|
|
42
|
+
dim?: boolean;
|
|
43
|
+
italic?: boolean;
|
|
44
|
+
underline?: boolean;
|
|
45
|
+
inverse?: boolean;
|
|
46
|
+
href?: string;
|
|
47
|
+
}>, Readonly<{
|
|
48
|
+
fg?: string;
|
|
49
|
+
bg?: string;
|
|
50
|
+
bold?: boolean;
|
|
51
|
+
dim?: boolean;
|
|
52
|
+
italic?: boolean;
|
|
53
|
+
underline?: boolean;
|
|
54
|
+
inverse?: boolean;
|
|
55
|
+
href?: string;
|
|
56
|
+
}>, Readonly<{
|
|
57
|
+
fg?: string;
|
|
58
|
+
bg?: string;
|
|
59
|
+
bold?: boolean;
|
|
60
|
+
dim?: boolean;
|
|
61
|
+
italic?: boolean;
|
|
62
|
+
underline?: boolean;
|
|
63
|
+
inverse?: boolean;
|
|
64
|
+
href?: string;
|
|
65
|
+
}>, Readonly<{
|
|
66
|
+
fg?: string;
|
|
67
|
+
bg?: string;
|
|
68
|
+
bold?: boolean;
|
|
69
|
+
dim?: boolean;
|
|
70
|
+
italic?: boolean;
|
|
71
|
+
underline?: boolean;
|
|
72
|
+
inverse?: boolean;
|
|
73
|
+
href?: string;
|
|
74
|
+
}>, Readonly<{
|
|
75
|
+
fg?: string;
|
|
76
|
+
bg?: string;
|
|
77
|
+
bold?: boolean;
|
|
78
|
+
dim?: boolean;
|
|
79
|
+
italic?: boolean;
|
|
80
|
+
underline?: boolean;
|
|
81
|
+
inverse?: boolean;
|
|
82
|
+
href?: string;
|
|
83
|
+
}>];
|
|
84
|
+
strong: Readonly<{
|
|
85
|
+
fg?: string;
|
|
86
|
+
bg?: string;
|
|
87
|
+
bold?: boolean;
|
|
88
|
+
dim?: boolean;
|
|
89
|
+
italic?: boolean;
|
|
90
|
+
underline?: boolean;
|
|
91
|
+
inverse?: boolean;
|
|
92
|
+
href?: string;
|
|
93
|
+
}>;
|
|
94
|
+
emphasis: Readonly<{
|
|
95
|
+
fg?: string;
|
|
96
|
+
bg?: string;
|
|
97
|
+
bold?: boolean;
|
|
98
|
+
dim?: boolean;
|
|
99
|
+
italic?: boolean;
|
|
100
|
+
underline?: boolean;
|
|
101
|
+
inverse?: boolean;
|
|
102
|
+
href?: string;
|
|
103
|
+
}>;
|
|
104
|
+
strikethrough: Readonly<{
|
|
105
|
+
fg?: string;
|
|
106
|
+
bg?: string;
|
|
107
|
+
bold?: boolean;
|
|
108
|
+
dim?: boolean;
|
|
109
|
+
italic?: boolean;
|
|
110
|
+
underline?: boolean;
|
|
111
|
+
inverse?: boolean;
|
|
112
|
+
href?: string;
|
|
113
|
+
}>;
|
|
114
|
+
inlineCode: Readonly<{
|
|
115
|
+
fg?: string;
|
|
116
|
+
bg?: string;
|
|
117
|
+
bold?: boolean;
|
|
118
|
+
dim?: boolean;
|
|
119
|
+
italic?: boolean;
|
|
120
|
+
underline?: boolean;
|
|
121
|
+
inverse?: boolean;
|
|
122
|
+
href?: string;
|
|
123
|
+
}>;
|
|
124
|
+
link: Readonly<{
|
|
125
|
+
fg?: string;
|
|
126
|
+
bg?: string;
|
|
127
|
+
bold?: boolean;
|
|
128
|
+
dim?: boolean;
|
|
129
|
+
italic?: boolean;
|
|
130
|
+
underline?: boolean;
|
|
131
|
+
inverse?: boolean;
|
|
132
|
+
href?: string;
|
|
133
|
+
}>;
|
|
134
|
+
blockquote: Readonly<{
|
|
135
|
+
fg?: string;
|
|
136
|
+
bg?: string;
|
|
137
|
+
bold?: boolean;
|
|
138
|
+
dim?: boolean;
|
|
139
|
+
italic?: boolean;
|
|
140
|
+
underline?: boolean;
|
|
141
|
+
inverse?: boolean;
|
|
142
|
+
href?: string;
|
|
143
|
+
}>;
|
|
144
|
+
listMarker: Readonly<{
|
|
145
|
+
fg?: string;
|
|
146
|
+
bg?: string;
|
|
147
|
+
bold?: boolean;
|
|
148
|
+
dim?: boolean;
|
|
149
|
+
italic?: boolean;
|
|
150
|
+
underline?: boolean;
|
|
151
|
+
inverse?: boolean;
|
|
152
|
+
href?: string;
|
|
153
|
+
}>;
|
|
154
|
+
codeBlock: Readonly<{
|
|
155
|
+
fg?: string;
|
|
156
|
+
bg?: string;
|
|
157
|
+
bold?: boolean;
|
|
158
|
+
dim?: boolean;
|
|
159
|
+
italic?: boolean;
|
|
160
|
+
underline?: boolean;
|
|
161
|
+
inverse?: boolean;
|
|
162
|
+
href?: string;
|
|
163
|
+
}>;
|
|
164
|
+
thematicBreak: Readonly<{
|
|
165
|
+
fg?: string;
|
|
166
|
+
bg?: string;
|
|
167
|
+
bold?: boolean;
|
|
168
|
+
dim?: boolean;
|
|
169
|
+
italic?: boolean;
|
|
170
|
+
underline?: boolean;
|
|
171
|
+
inverse?: boolean;
|
|
172
|
+
href?: string;
|
|
173
|
+
}>;
|
|
174
|
+
html: Readonly<{
|
|
175
|
+
fg?: string;
|
|
176
|
+
bg?: string;
|
|
177
|
+
bold?: boolean;
|
|
178
|
+
dim?: boolean;
|
|
179
|
+
italic?: boolean;
|
|
180
|
+
underline?: boolean;
|
|
181
|
+
inverse?: boolean;
|
|
182
|
+
href?: string;
|
|
183
|
+
}>;
|
|
184
|
+
}>;
|
|
185
|
+
export declare function markdownThemeSignature(overrides?: TuiMarkdownThemeOverrides): string;
|
|
186
|
+
export declare function resolveTuiMarkdownTheme(overrides?: TuiMarkdownThemeOverrides): TuiMarkdownTheme;
|