@simon_he/vue-tui 1.1.12 → 1.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TAgentTerminalGraphic-B8-YZfuP.js → TAgentTerminalGraphic-BKDAoGoE.js} +1 -1
- package/dist/{TMermaidText-C1akgJPU.js → TMermaidText-DJmYNqhh.js} +1 -1
- package/dist/{TSelect-C-WzsLAD.js → TSelect-CnBJET_C.js} +3 -3
- package/dist/{TTree-1JP-PZ2T.js → TTree-DqyzDB0h.js} +16 -16
- package/dist/{TVideo-D9AOiyq2.js → TVideo-C3gnTlFD.js} +3 -3
- package/dist/agent.cjs +573 -263
- package/dist/agent.js +8 -8
- package/dist/{block-source-BhvdZomx.js → block-source-BGTRldY7.js} +2 -2
- package/dist/cli.cjs +18 -16
- package/dist/cli.js +18 -22
- package/dist/experimental/browser.js +4 -4
- package/dist/experimental.cjs +18 -5
- package/dist/experimental.js +6 -6
- package/dist/{frame-mailbox-DaTrfyaF.js → frame-mailbox-6XHw-P8Q.js} +1 -1
- package/dist/index.cjs +9 -7
- package/dist/index.js +5 -5
- package/dist/{linkify-CklfA1vp.js → linkify-DF96jKWy.js} +1 -1
- package/dist/markdown.cjs +568 -258
- package/dist/markdown.js +2 -2
- package/dist/{mermaid-D0ov4_A1.js → mermaid-qhG4TDdu.js} +2 -2
- package/dist/mermaid.js +3 -3
- package/dist/{rect-JzWMJxxc.js → rect-Dfevd15m.js} +30 -1
- package/dist/{tlog-theme-BnILsD3n.js → tlog-theme-DKq1YOQF.js} +8 -8
- package/dist/vue/utils/text.d.ts +13 -0
- package/dist/vue.cjs +9 -7
- package/dist/vue.js +6 -6
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TerminalGraphicsActivityKey, intersectRect, nowTerminalGraphicTraceTime, padEndByCells$1 as padEndByCells, recordTerminalGraphicTrace, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, translateRect, useLayout, useRenderNode, useTerminal, useVisibility, withTextWidthProvider } from "./rect-
|
|
1
|
+
import { TerminalGraphicsActivityKey, intersectRect, nowTerminalGraphicTraceTime, padEndByCells$1 as padEndByCells, recordTerminalGraphicTrace, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, translateRect, useLayout, useRenderNode, useTerminal, useVisibility, withTextWidthProvider } from "./rect-Dfevd15m.js";
|
|
2
2
|
import { canDrawTerminalGraphicRect, createKittyDeleteGraphicsSequence, createKittyPlacementSequence, getTerminalGraphicsOutput, getTerminalGraphicsOutputVersion, isSafeTerminalGraphicsSequence, isTerminalGraphicsProtocol, normalizeTerminalGraphicSize, sanitizeTerminalFallbackText, stableTerminalGraphicNumericId, subscribeTerminalGraphicsOutput } from "./terminal-graphics-DpSL29OQ.js";
|
|
3
3
|
import { computed, defineComponent, getCurrentInstance, h, inject, markRaw, onBeforeUnmount, shallowRef, watch } from "vue";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventZIndexContextKey, intersectRect, padEndByCells$1 as padEndByCells, repeatChar, sanitizeInlineText, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useTerminal, useTerminalNode, useVisibility, withTextWidthProvider } from "./rect-
|
|
1
|
+
import { EventZIndexContextKey, intersectRect, padEndByCells$1 as padEndByCells, repeatChar, sanitizeInlineText, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useTerminal, useTerminalNode, useVisibility, withTextWidthProvider } from "./rect-Dfevd15m.js";
|
|
2
2
|
import { computed, defineComponent, getCurrentInstance, h, inject, markRaw, onBeforeUnmount, shallowRef, watch } from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/vue/components/TMermaidText.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { charCellWidth, getPlaneTerminal } from "./create-terminal-Db_-UGVQ.js";
|
|
2
2
|
import { hasEncodedControl } from "./hyperlink-clbb_ha_.js";
|
|
3
|
-
import { DialogContextKey, EventZIndexContextKey, ImeAnchorContextKey, LayoutContextKey, RenderPlaneContextKey, RenderStackKey, TInputPluginsContextKey, TerminalContextKey, forEachTextCellSegment, graphemeRangeAt, hasTextWidthAsciiFastPath, intersectRect, repeatChar, sanitizeInlineText, sanitizeTextBlock, sliceByCells, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useRenderStack, useTerminal, useTerminalNode, useVisibility, withTextWidthProvider } from "./rect-
|
|
4
|
-
import { mergeStyle } from "./linkify-
|
|
5
|
-
import { TText, TView } from "./frame-mailbox-
|
|
3
|
+
import { DialogContextKey, EventZIndexContextKey, ImeAnchorContextKey, LayoutContextKey, RenderPlaneContextKey, RenderStackKey, TInputPluginsContextKey, TerminalContextKey, forEachTextCellSegment, graphemeRangeAt, hasTextWidthAsciiFastPath, intersectRect, repeatChar, sanitizeInlineText, sanitizeTextBlock, sliceByCells, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useRenderStack, useTerminal, useTerminalNode, useVisibility, withTextWidthProvider } from "./rect-Dfevd15m.js";
|
|
4
|
+
import { mergeStyle } from "./linkify-DF96jKWy.js";
|
|
5
|
+
import { TText, TView } from "./frame-mailbox-6XHw-P8Q.js";
|
|
6
6
|
import { isAbsolutePath, normalizeNewlines, normalizePath, resolvePath } from "./path-BI9W15Zt.js";
|
|
7
7
|
import { computed, defineComponent, h, inject, nextTick, onBeforeUnmount, onMounted, provide, ref, shallowReactive, shallowRef, watch, watchEffect } from "vue";
|
|
8
8
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TERMINAL_RENDER_PLANES, createTerminal, getPlaneTerminal, resetPlaneRowsForRender, scrollPlaneRows } from "./create-terminal-Db_-UGVQ.js";
|
|
2
2
|
import { sanitizeDomHref } from "./hyperlink-clbb_ha_.js";
|
|
3
3
|
import { DOM_RENDERER_CAPABILITIES, createDomRenderer } from "./dom-renderer-BfwAEQMf.js";
|
|
4
|
-
import { EventZIndexContextKey, ImeAnchorContextKey, LayoutContextKey, RenderStackKey, TInputPluginsContextKey, TPathPickerProviderContextKey, TerminalContextKey, VisibilityContextKey, clearTextCaches, forEachTextCellSegment, formatInlineCellLine, injectionKey, intersectRect, normalizeCellRect, padEndByCells$1 as padEndByCells, sanitizeInlineText, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useTerminal, useTerminalNode, useVisibility, withTextRenderPass } from "./rect-
|
|
5
|
-
import { TuiThemeContextKey, clamp, createTheme, defaultActiveStyle, defaultDimStyle, fitCellText, linkifyTextSegments, mergeStyle, repeatToCells, tuiDefaultTheme } from "./linkify-
|
|
4
|
+
import { EventZIndexContextKey, ImeAnchorContextKey, LayoutContextKey, RenderStackKey, TInputPluginsContextKey, TPathPickerProviderContextKey, TerminalContextKey, VisibilityContextKey, clearTextCaches, forEachTextCellSegment, formatInlineCellLine, injectionKey, intersectRect, normalizeCellRect, padEndByCells$1 as padEndByCells, sanitizeInlineText, sanitizeTextBlock, sliceByCells, sliceByCellsRange, spaces, textCellWidth$1 as textCellWidth, translateRect, useLayout, useRenderNode, useTerminal, useTerminalNode, useVisibility, withTextRenderPass } from "./rect-Dfevd15m.js";
|
|
5
|
+
import { TuiThemeContextKey, clamp, createTheme, defaultActiveStyle, defaultDimStyle, fitCellText, linkifyTextSegments, mergeStyle, repeatToCells, tuiDefaultTheme } from "./linkify-DF96jKWy.js";
|
|
6
6
|
import { SUPPRESS_TERMINAL_POINTER_DOWN, SUPPRESS_TERMINAL_POINTER_MOVE, SUPPRESS_TERMINAL_POINTER_UP, createEventManager, createRuntime } from "./runtime-Byf8XXOT.js";
|
|
7
7
|
import { framePerfNow, mergeFramePerfReason } from "./frame-perf-CHpWhbC4.js";
|
|
8
8
|
import { createFramePerfStore, createTraceStore } from "./trace-Bh8WnoMo.js";
|
|
9
9
|
import { envFlag, envString, firstNonEmptyEnv } from "./env-Cl8qmNFN.js";
|
|
10
10
|
import { createTerminalSelectionController } from "./terminal-selection-4W1SJj4c.js";
|
|
11
11
|
import { createDebugLogger, isDebugEnabled } from "./debug-logger-CmsGI4of.js";
|
|
12
|
-
import { TBox, TInput, TRenderPlane, resolveOverlayPlacement } from "./TSelect-
|
|
13
|
-
import { TText, TView, createFrameMailbox } from "./frame-mailbox-
|
|
12
|
+
import { TBox, TInput, TRenderPlane, resolveOverlayPlacement } from "./TSelect-CnBJET_C.js";
|
|
13
|
+
import { TText, TView, createFrameMailbox } from "./frame-mailbox-6XHw-P8Q.js";
|
|
14
14
|
import { applyWheelScroll, createWheelScrollState, resetWheelScrollState } from "./wheel-scroll-CQ22Hcyj.js";
|
|
15
15
|
import { computed, defineComponent, effectScope, getCurrentInstance, h, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, ref, shallowReactive, shallowRef, toRef, watch, watchEffect } from "vue";
|
|
16
16
|
|
|
@@ -402,7 +402,7 @@ function createRenderManager(terminal, options = {}) {
|
|
|
402
402
|
largeNodeIdsByPlane.clear();
|
|
403
403
|
for (const node of nodes.values()) addToRowBuckets(node);
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function shouldScanFullPlane(dirtyRows, planeNodes) {
|
|
406
406
|
return planeNodes > 1 && dirtyRows >= ROW_BUCKET_DIRTY_RATIO_MIN_ROWS && terminalRows > 0 && dirtyRows / terminalRows >= ROW_BUCKET_DIRTY_RATIO_FALLBACK && dirtyRows >= planeNodes * ROW_BUCKET_DIRTY_RATIO_FALLBACK;
|
|
407
407
|
}
|
|
408
408
|
function ensureRenderedRowsScratch() {
|
|
@@ -768,18 +768,8 @@ function createRenderManager(terminal, options = {}) {
|
|
|
768
768
|
const state = planeDirtyStates.get(plane);
|
|
769
769
|
if (!state || !state.allRowsDirty && state.dirtyRowCount === 0) continue;
|
|
770
770
|
const planeNodes = sortedNodesByPlane.get(plane) ?? [];
|
|
771
|
-
|
|
771
|
+
const isFullPlaneRepaint = state.allRowsDirty;
|
|
772
772
|
let rows = allRows;
|
|
773
|
-
if (!isFullPlaneRepaint && shouldPromoteToFullPlaneDirty(state.dirtyRowCount, planeNodes.length)) {
|
|
774
|
-
isFullPlaneRepaint = true;
|
|
775
|
-
state.allRowsDirty = true;
|
|
776
|
-
rowBucketFallbacks.push({
|
|
777
|
-
plane,
|
|
778
|
-
reason: "dirty-ratio",
|
|
779
|
-
dirtyRows: state.dirtyRowCount,
|
|
780
|
-
planeNodes: planeNodes.length
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
773
|
if (!isFullPlaneRepaint) {
|
|
784
774
|
dirtyRowsScratch.length = 0;
|
|
785
775
|
rows = dirtyRowsScratch;
|
|
@@ -795,6 +785,16 @@ function createRenderManager(terminal, options = {}) {
|
|
|
795
785
|
const paintRows = isFullPlaneRepaint ? void 0 : rows;
|
|
796
786
|
let needsIntersectFilter = false;
|
|
797
787
|
const candidateNodes = isFullPlaneRepaint ? planeNodes : (() => {
|
|
788
|
+
if (shouldScanFullPlane(rows.length, planeNodes.length)) {
|
|
789
|
+
needsIntersectFilter = true;
|
|
790
|
+
rowBucketFallbacks.push({
|
|
791
|
+
plane,
|
|
792
|
+
reason: "dirty-ratio",
|
|
793
|
+
dirtyRows: rows.length,
|
|
794
|
+
planeNodes: planeNodes.length
|
|
795
|
+
});
|
|
796
|
+
return planeNodes;
|
|
797
|
+
}
|
|
798
798
|
const marks = beginCandidateCollection(planeNodes);
|
|
799
799
|
const buckets = rowBuckets.get(plane);
|
|
800
800
|
for (const y of rows) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TerminalGraphicsActivityKey, intersectRect, textCellWidth$1 as textCellWidth, translateRect, useLayout, useTerminal, useVisibility } from "./rect-
|
|
2
|
-
import { TText, TView, createFrameMailbox } from "./frame-mailbox-
|
|
1
|
+
import { TerminalGraphicsActivityKey, intersectRect, textCellWidth$1 as textCellWidth, translateRect, useLayout, useTerminal, useVisibility } from "./rect-Dfevd15m.js";
|
|
2
|
+
import { TText, TView, createFrameMailbox } from "./frame-mailbox-6XHw-P8Q.js";
|
|
3
3
|
import { createTerminalGraphicPngSequence, getTerminalGraphicsOutput, getTerminalGraphicsOutputVersion, subscribeTerminalGraphicsOutput } from "./terminal-graphics-DpSL29OQ.js";
|
|
4
|
-
import { TAgentTerminalGraphic } from "./TAgentTerminalGraphic-
|
|
4
|
+
import { TAgentTerminalGraphic } from "./TAgentTerminalGraphic-BKDAoGoE.js";
|
|
5
5
|
import { computed, defineComponent, getCurrentInstance, h, inject, markRaw, onBeforeUnmount, shallowRef, watch } from "vue";
|
|
6
6
|
|
|
7
7
|
//#region src/vue/components/TVideo.ts
|