blecsd 0.2.0 → 0.4.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/LICENSE +4 -2
- package/README.md +167 -65
- package/dist/3d/index.d.ts +2 -2
- package/dist/3d/index.js +1 -1
- package/dist/audio/index.d.ts +2 -2
- package/dist/{border-D_Jb4ZJV.d.ts → border-DGNDfT6T.d.ts} +20 -10
- package/dist/chunk-25OEBENM.js +3 -0
- package/dist/chunk-26STV7ZS.js +1 -0
- package/dist/chunk-2NMGUEFC.js +4 -0
- package/dist/{chunk-LYSK5S63.js → chunk-4PRDJTCM.js} +1 -1
- package/dist/chunk-5N3O25O7.js +1 -0
- package/dist/chunk-5VEKHA3B.js +5 -0
- package/dist/chunk-6KEM3OS2.js +11 -0
- package/dist/chunk-6PX5R326.js +1 -0
- package/dist/chunk-6XWY6GB7.js +1 -0
- package/dist/chunk-735KKTP3.js +1 -0
- package/dist/chunk-7SWJNDOL.js +26 -0
- package/dist/chunk-APKUNIMB.js +1 -0
- package/dist/{chunk-FGHEFXLK.js → chunk-CJCSZRV6.js} +1 -1
- package/dist/chunk-DMBMCCLN.js +1 -0
- package/dist/chunk-DQTVJITR.js +1 -0
- package/dist/chunk-DSKQ5J4R.js +1 -0
- package/dist/chunk-E4CJRSND.js +1 -0
- package/dist/{chunk-OB66FB4F.js → chunk-EF4DC6IN.js} +1 -1
- package/dist/chunk-EJAKECSN.js +1 -0
- package/dist/chunk-FNQRUMFD.js +1 -0
- package/dist/chunk-GJ3RS2VG.js +1 -0
- package/dist/{chunk-TYMY2TBR.js → chunk-JHCKPCUH.js} +3 -3
- package/dist/{chunk-2UBBZFE4.js → chunk-KTVEMB2I.js} +1 -1
- package/dist/chunk-KYAPE44E.js +8 -0
- package/dist/chunk-LI4Y7TBZ.js +1 -0
- package/dist/chunk-NHOL4BN6.js +1 -0
- package/dist/chunk-NPDPBAW6.js +4 -0
- package/dist/chunk-NPNUUSIB.js +1 -0
- package/dist/chunk-OFRWGW2G.js +1 -0
- package/dist/chunk-OMU5BSAS.js +2 -0
- package/dist/chunk-P3ZLIQJP.js +1 -0
- package/dist/chunk-PWI36BQJ.js +1 -0
- package/dist/{chunk-VNZ6CWJA.js → chunk-QQMUDJ32.js} +2 -2
- package/dist/chunk-R3ICZOE4.js +1 -0
- package/dist/chunk-RJULLVTH.js +1 -0
- package/dist/{chunk-3B7MIVW6.js → chunk-RZ7FGVI6.js} +1 -1
- package/dist/chunk-S6WS46FE.js +1 -0
- package/dist/{chunk-TWSWTBYL.js → chunk-TSARUU56.js} +1 -1
- package/dist/chunk-WJRVUAZR.js +33 -0
- package/dist/{chunk-JKVHO4LH.js → chunk-WY5EZOOL.js} +1 -1
- package/dist/chunk-YY6RZCZH.js +4 -0
- package/dist/chunk-ZPGJCHXH.js +1 -0
- package/dist/chunk-ZPL2J25N.js +1 -0
- package/dist/cli/init.d.ts +1 -1
- package/dist/{componentStorage-DTkj1Qyj.d.ts → componentStorage-CJTh-TPO.d.ts} +1 -1
- package/dist/components/index.d.ts +7137 -5587
- package/dist/components/index.js +1 -1
- package/dist/core/index.d.ts +4138 -3169
- package/dist/core/index.js +1 -1
- package/dist/debug/index.d.ts +491 -98
- package/dist/debug/index.js +1 -1
- package/dist/dirtyTracking-C4v8MmM9.d.ts +235 -0
- package/dist/errors/index.d.ts +12 -12
- package/dist/errors/index.js +1 -1
- package/dist/{events-BbbxkgvX.d.ts → events-9ForpTfM.d.ts} +75 -2
- package/dist/game/index.d.ts +8 -8
- package/dist/game/index.js +1 -1
- package/dist/{gameLoop-BIPW7-OY.d.ts → gameLoop-CSTb7e0L.d.ts} +2 -2
- package/dist/{index-zSGJ2eUk.d.ts → index-DBS5Uefn.d.ts} +2 -2
- package/dist/index.d.ts +1005 -26
- package/dist/index.js +3 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{inputActions-CefRUBuT.d.ts → inputActions-Fyw14_Gm.d.ts} +11 -722
- package/dist/{keyParser-Bwm8-l7v.d.ts → keyParser-m7fWto6g.d.ts} +18 -18
- package/dist/{mouseParser-Cfrbn3AX.d.ts → mouseParser-B7p5ow7K.d.ts} +1 -1
- package/dist/{packedStore-480t2X74.d.ts → packedStore-BgvnEdE7.d.ts} +1 -1
- package/dist/{renderable-jTMOA-GK.d.ts → renderable-CwqGwrEV.d.ts} +9 -9
- package/dist/scheduler-DeeZleia.d.ts +150 -0
- package/dist/systems/index.d.ts +473 -37
- package/dist/systems/index.js +1 -1
- package/dist/terminal/index.d.ts +2481 -2225
- package/dist/terminal/index.js +1 -1
- package/dist/{tilemap-j0twN9-y.d.ts → tilemap-BirMJdbu.d.ts} +2 -2
- package/dist/{types-BcsvoKzf.d.ts → types-CPB4CpbH.d.ts} +2 -2
- package/dist/utils/index.d.ts +28 -27
- package/dist/utils/index.js +1 -1
- package/dist/{virtualScrollback-DvZTRU8a.d.ts → virtualScrollback-D9uLFe8l.d.ts} +4 -4
- package/dist/{virtualViewport-Dx2iJliO.d.ts → virtualViewport-DTSN6jFk.d.ts} +370 -848
- package/dist/widgets/bigText.d.ts +1 -1
- package/dist/widgets/bigText.js +1 -1
- package/dist/widgets/index.d.ts +12079 -5902
- package/dist/widgets/index.js +1 -1
- package/package.json +102 -6
- package/dist/chunk-35I22JJO.js +0 -1
- package/dist/chunk-3APDF6RW.js +0 -1
- package/dist/chunk-3EGGGI5J.js +0 -3
- package/dist/chunk-4GISPPOH.js +0 -33
- package/dist/chunk-4X4N4HNQ.js +0 -2
- package/dist/chunk-6N6BRCEM.js +0 -4
- package/dist/chunk-AXZQAH4X.js +0 -1
- package/dist/chunk-BCADUCOZ.js +0 -1
- package/dist/chunk-CIK4AMUA.js +0 -1
- package/dist/chunk-EAY7B5GL.js +0 -1
- package/dist/chunk-EJ5WVDDZ.js +0 -6
- package/dist/chunk-FMFEOAML.js +0 -1
- package/dist/chunk-FYEBZAWN.js +0 -1
- package/dist/chunk-G7GIWWLE.js +0 -1
- package/dist/chunk-GYHI26UE.js +0 -1
- package/dist/chunk-H2YAOJDW.js +0 -1
- package/dist/chunk-JUWDTH25.js +0 -1
- package/dist/chunk-K2B2OXQ5.js +0 -5
- package/dist/chunk-K3SX2LY5.js +0 -1
- package/dist/chunk-KD55INV7.js +0 -1
- package/dist/chunk-KFAK4A3G.js +0 -1
- package/dist/chunk-LB3JA744.js +0 -19
- package/dist/chunk-LCN2ZITE.js +0 -1
- package/dist/chunk-P6CJO3BC.js +0 -1
- package/dist/chunk-PSXXMBVJ.js +0 -1
- package/dist/chunk-PXXGH3BV.js +0 -1
- package/dist/chunk-SHUC6JWA.js +0 -1
- package/dist/chunk-VCW7EOZ4.js +0 -12
- package/dist/chunk-W5OU7Z6J.js +0 -1
- package/dist/chunk-WHF27JF3.js +0 -4
- package/dist/chunk-WNG4A3K7.js +0 -4
- package/dist/chunk-WY3KY2TR.js +0 -1
- package/dist/chunk-XZA63ZPO.js +0 -1
- package/dist/scheduler-DcfoFuum.d.ts +0 -86
package/dist/terminal/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Wa as BAR_CURSOR_CHAR,J as BEL,Ua as BLOCK_CURSOR_CHAR,F as CSI,Da as CleanupManager,$ as ClipboardSelection,b as CursorPositionSchema,Y as CursorShape,H as DCS,S as DEC_SPECIAL_GRAPHICS,aa as DEFAULT_CLIPBOARD_MAX_SIZE,md as DEFAULT_INPUT_SANITIZE_OPTIONS,s as DEFAULT_QUERY_TIMEOUT,yd as DEFAULT_SANITIZE_OPTIONS,K as ESC,Dc as FocusEventSchema,Sb as GpmButton,Tb as GpmClientConfigSchema,Rb as GpmEventType,w as GraphicsProtocol,fb as HIDE_TERMINAL_CURSOR,M as HYPERLINK_ALLOWED_PROTOCOLS,Gc as InputHandlerConfigSchema,ld as InputSanitizeOptionsSchema,yc as KeyEventSchema,Ic as KittyFlags,v as KittyKeyboardLevel,ga as LocatorButton,fa as LocatorEvent,jb as LogLevel,u as MAX_QUERY_TIMEOUT,t as MIN_QUERY_TIMEOUT,P as MediaCopyMode,Cc as MouseEventSchema,da as MouseMode,bc as MouseTrackingMode,x as NegotiationTiming,y as NegotiatorConfigSchema,G as OSC,sa as PasteConfigSchema,ra as PasteEventSchema,bd as ProgramConfigSchema,a as ResponseType,W as SGR,gb as SHOW_TERMINAL_CURSOR,I as ST,xd as SanitizeOptionsSchema,Va as UNDERLINE_CURSOR_CHAR,T as UNICODE_TO_ASCII,Tc as activateProtocol,$a as addCursor,jc as areKeysEnabled,V as boxDrawing,_ as bracketedPaste,Zb as buildGpmConnectPacket,E as capabilityQuery,Ed as categorizeEscapeSequences,U as charset,Ia as chunkText,qb as clearLog,ba as clipboard,kb as configureDebugLogger,Ad as containsEscapeSequences,la as createAnsiBackend,Ka as createArtificialCursor,z as createCapabilityNegotiator,Ha as createClipboardManager,Ya as createCursorCell,Za as createCursorManager,nb as createDebugLogger,Lb as createFocusTracker,ac as createGpmClient,ec as createInputControl,Hc as createInputHandler,Qc as createKittyConfig,Rc as createKittyProtocolState,na as createKittyRenderBackend,za as createPasteState,cd as createProgram,oa as createRenderBackendByType,fd as createResizeHandler,Cd as createSafeStringBuilder,Fd as createSuspendManager,Id as createSynchronizedOutput,Od as createThrottledResize,Kd as createTput,X as cursor,Uc as deactivateProtocol,Qd as debounceResize,rb as debugLoggers,gc as destroyInputControl,pa as detectRenderBackend,_b as detectVirtualConsole,Ca as disableBracketedPaste,Nb as disableFocusTracking,qc as disableInput,ic as disableKeys,lc as disableMouse,hd as disableResizeHandling,xc as disableWorldInput,tc as disableWorldKeys,vc as disableWorldMouse,pb as dumpRaw,ob as dumpTerminalState,Ba as enableBracketedPaste,Mb as enableFocusTracking,pc as enableInput,hc as enableKeys,kc as enableMouse,gd as enableResizeHandling,wc as enableWorldInput,sc as enableWorldKeys,uc as enableWorldMouse,ma as encodeKittyImage,Yc as exec,Zc as execSync,Dd as extractEscapeSequences,ya as extractPasteContent,xa as findPasteEnd,Kc as generatePopSequence,Jc as generatePushSequence,Lc as generateQuerySequence,qa as getAvailableBackends,Bb as getColorDepth,eb as getCursorAt,_c as getDefaultEditor,A as getDefaultNegotiator,Ld as getDefaultTput,Nd as getDefaultXtermData,Ob as getFocusTracker,fc as getInputControl,cc as getInputControlEventBus,mb as getLogFile,nc as getMouseMode,_a as getPrimaryCursor,dd as getResizeEventBus,id as getResizeHandler,C as getTerminalCapabilities,Jb as getTerminalFocusEventBus,Ib as getTerminalInfo,Hb as getTerminalVersion,cb as getVisibleCursors,Vb as gpmButtonToMouseButton,Yb as gpmEventToMouseEvent,Wb as gpmTypeToMouseAction,D as hasCapability,vd as hasControlChars,wd as hasNullBytes,hb as hideTerminalCursor,O as hyperlink,yb as isAlacritty,Gb as isBracketedPasteSupported,o as isCharCellSize,Cb as isColorSupported,f as isCursorPosition,Ta as isCursorVisible,lb as isDebugLoggingEnabled,g as isDeviceStatus,$b as isGpmAvailable,N as isHyperlinkAllowed,xb as isITerm2,i as isIconLabel,rc as isInputEnabled,zb as isKitty,Oc as isKittyKeyEvent,Mc as isKittyResponse,Wc as isKittySupported,p as isLocatorPosition,Fc as isMouseBuffer,mc as isMouseEnabled,zc as isMouseSequence,Fb as isMouseSupported,va as isPasteStart,d as isPrimaryDA,Bd as isSafeForTerminal,tb as isScreen,n as isScreenSize,e as isSecondaryDA,Jd as isSyncOutputSupported,Pb as isTerminalFocused,m as isTextAreaSize,sb as isTmux,Db as isTrueColorSupported,Eb as isUnicodeSupported,q as isUnknown,ub as isVSCode,wb as isVTE,ud as isValidUtf8String,k as isWindowPosition,l as isWindowSizePixels,j as isWindowState,h as isWindowTitle,Ab as isWindowsTerminal,vb as isXterm,Vc as kittyKeyToName,ha as locator,Q as mediaCopy,wa as mightBePasteStart,ea as mouse,Ma as moveCursorBy,La as moveCursorTo,Ga as onExit,Ub as parseGpmEventBuffer,Xb as parseGpmModifiers,Bc as parseKeyBuffer,Ac as parseKeySequence,Pc as parseKittyKeyEvent,Nc as parseKittyQueryResponse,Ec as parseMouseSequence,c as parseResponse,Aa as processPasteBuffer,ad as processUtils,r as query,$c as readEditor,R as rectangle,Ea as registerForCleanup,ab as removeCursor,Xa as renderCursor,sd as replaceInvalidUtf16,Sa as resetCursorBlink,B as resetDefaultNegotiator,Md as resetDefaultTput,dc as resetInputControlEventBus,ed as resetResizeEventBus,Kb as resetTerminalFocusEventBus,td as restrictToAscii,zd as sanitizeForTerminal,ta as sanitizePastedText,nd as sanitizeTextInput,od as sanitizeTextInputDetailed,ja as screen,Pa as setCursorBlink,Qa as setCursorColors,Oa as setCursorShape,Na as setCursorVisible,oc as setMouseMode,kd as setupSigwinchHandler,ib as showTerminalCursor,Xc as spawn,Ja as streamPaste,rd as stripC1Controls,qd as stripControlChars,pd as stripNullBytes,ia as style,Hd as suspend,Gd as suspendSequences,Z as sync,Pd as throttleResize,ka as title,ca as tmux,Qb as triggerFocusEvent,jd as triggerResize,ua as truncatePaste,Fa as unregisterFromCleanup,db as updateAllCursorBlinks,Ra as updateCursorBlink,bb as updateCursorInManager,Sc as updateProtocolState,L as windowOps}from'../chunk-6KEM3OS2.js';import'../chunk-XQIGERNI.js';import'../chunk-NHOL4BN6.js';import'../chunk-OFRWGW2G.js';export{a as createDoubleBuffer}from'../chunk-4LWWONFK.js';import'../chunk-FNQRUMFD.js';import'../chunk-CJCSZRV6.js';export{c as AttributeSchema,b as ColorType,d as DEFAULT_ATTRIBUTE,a as TextStyle,h as applySgrCodes,j as attrCode,l as attrToSgrCodes,o as attributesEqual,f as cloneAttribute,k as codeAttr,e as createAttribute,g as extractSgrCodes,n as hasStyle,q as packRgb,i as parseSgrString,m as sgrReset,r as stripAnsi,p as unpackRgb,s as visibleLength}from'../chunk-AEJIX2MW.js';export{a as Attr,c as CELL_DEFAULT_BG,b as CELL_DEFAULT_FG,d as DEFAULT_CHAR,l as cellIndex,g as cellsEqual,q as clearBuffer,f as cloneCell,u as copyRegion,e as createCell,k as createScreenBuffer,v as diffBuffers,r as fillRect,n as getCell,h as hasAttr,m as isInBounds,s as resizeBuffer,o as setCell,p as setChar,i as withAttr,j as withoutAttr,t as writeString}from'../chunk-C5PCEQ6G.js';import'../chunk-DMBMCCLN.js';import'../chunk-LI4Y7TBZ.js';import'../chunk-DQTVJITR.js';import'../chunk-ZPGJCHXH.js';import'../chunk-APKUNIMB.js';import'../chunk-GJ3RS2VG.js';import'../chunk-Z4EZERNE.js';import'../chunk-P3ZLIQJP.js';import'../chunk-5PELJRUQ.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as Entity, W as World } from './types-
|
|
2
|
-
import {
|
|
1
|
+
import { E as Entity, W as World } from './types-CPB4CpbH.js';
|
|
2
|
+
import { P as PackedStore } from './packedStore-BgvnEdE7.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Collision component for entity collision detection.
|
|
@@ -55,8 +55,8 @@ declare enum LoopPhase {
|
|
|
55
55
|
UPDATE = 2,
|
|
56
56
|
/** Post-update logic */
|
|
57
57
|
LATE_UPDATE = 3,
|
|
58
|
-
/**
|
|
59
|
-
|
|
58
|
+
/** Animation, physics, tweens, and transitions */
|
|
59
|
+
ANIMATION = 4,
|
|
60
60
|
/** UI layout calculation */
|
|
61
61
|
LAYOUT = 5,
|
|
62
62
|
/** Render to screen buffer */
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BorderCharset } from '../border-DGNDfT6T.js';
|
|
2
2
|
export { c as colorToHex, h as hexToColor, p as packColor, a as parseColor, u as unpackColor } from '../color-B78w3zH-.js';
|
|
3
|
-
export { C as ComponentMemoryReport, a as ComponentStore, b as ComponentStoreConfig, S as SparseStorageConfig, c as SparseStore, T as TypedArrayPool, d as createComponentStore, e as createSparseStore, f as createTypedArrayPool, g as estimateMemoryUsage, h as getComponentMemoryReport, i as isWithinMemoryBounds } from '../componentStorage-
|
|
3
|
+
export { C as ComponentMemoryReport, a as ComponentStore, b as ComponentStoreConfig, S as SparseStorageConfig, c as SparseStore, T as TypedArrayPool, d as createComponentStore, e as createSparseStore, f as createTypedArrayPool, g as estimateMemoryUsage, h as getComponentMemoryReport, i as isWithinMemoryBounds } from '../componentStorage-CJTh-TPO.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { S as StyleData } from '../renderable-
|
|
5
|
+
import { S as StyleData } from '../renderable-CwqGwrEV.js';
|
|
6
6
|
export { C as CHUNKED_THRESHOLD, L as LineIndexSchema, a as LineRangeParamsSchema, b as LineStoreStats, T as TrimParamsSchema, c as VirtualizedLineInfo, d as VirtualizedLineRange, V as VirtualizedLineStore, e as VisibleLinesParamsSchema, f as appendLinesToStore, g as appendToStore, h as createEmptyLineStore, i as createLineStore, j as createLineStoreFromLines, k as exportContent, l as exportLineRange, m as getByteSize, n as getLineAtIndex, o as getLineForOffset, p as getLineInfo, q as getLineStoreLineCount, r as getLineStoreRange, s as getLineStoreVisibleLines, t as getOffsetForLine, u as getStoreStats, v as isStoreEmpty, w as trimLineStore } from '../virtualizedLineStore-DwPEvPkk.js';
|
|
7
|
-
export { C as COMPRESSION_RATIO, a as Chunk, D as DEFAULT_CHUNK_SIZE, b as DEFAULT_MAX_CACHED, c as DEFAULT_MAX_MEMORY, L as LineRange, S as ScrollbackBuffer, d as ScrollbackConfig, e as ScrollbackLine, f as ScrollbackStats, g as appendLine, h as appendLines, i as clearScrollback, j as compressOldChunks, k as createScrollbackBuffer, l as decompressAll, m as exportToText, n as getLineRange, o as getMemoryUsage, p as getScrollbackLine, q as getScrollbackStats, r as getVisibleLines, s as jumpToLine, t as loadFromText, v as scrollBy, w as scrollToBottom, x as scrollToTop, u as trimToLineCount } from '../virtualScrollback-
|
|
8
|
-
import '../types-
|
|
7
|
+
export { C as COMPRESSION_RATIO, a as Chunk, D as DEFAULT_CHUNK_SIZE, b as DEFAULT_MAX_CACHED, c as DEFAULT_MAX_MEMORY, L as LineRange, S as ScrollbackBuffer, d as ScrollbackConfig, e as ScrollbackLine, f as ScrollbackStats, g as appendLine, h as appendLines, i as clearScrollback, j as compressOldChunks, k as createScrollbackBuffer, l as decompressAll, m as exportToText, n as getLineRange, o as getMemoryUsage, p as getScrollbackLine, q as getScrollbackStats, r as getVisibleLines, s as jumpToLine, t as loadFromText, v as scrollBy, w as scrollToBottom, x as scrollToTop, u as trimToLineCount } from '../virtualScrollback-D9uLFe8l.js';
|
|
8
|
+
import '../types-CPB4CpbH.js';
|
|
9
9
|
import 'bitecs';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -752,9 +752,9 @@ interface DiffLine {
|
|
|
752
752
|
/** Line content */
|
|
753
753
|
readonly content: string;
|
|
754
754
|
/** Old line number (for remove/context) */
|
|
755
|
-
readonly oldLineNo?: number;
|
|
755
|
+
readonly oldLineNo?: number | undefined;
|
|
756
756
|
/** New line number (for add/context) */
|
|
757
|
-
readonly newLineNo?: number;
|
|
757
|
+
readonly newLineNo?: number | undefined;
|
|
758
758
|
}
|
|
759
759
|
/**
|
|
760
760
|
* A chunk/hunk in a diff.
|
|
@@ -807,9 +807,9 @@ interface SideBySideEntry<T extends SideBySideEntryType = SideBySideEntryType> {
|
|
|
807
807
|
*/
|
|
808
808
|
interface SideBySideLine {
|
|
809
809
|
/** Left (old) line */
|
|
810
|
-
readonly left?: SideBySideEntry<'remove' | 'context'
|
|
810
|
+
readonly left?: SideBySideEntry<'remove' | 'context'> | undefined;
|
|
811
811
|
/** Right (new) line */
|
|
812
|
-
readonly right?: SideBySideEntry<'add' | 'context'
|
|
812
|
+
readonly right?: SideBySideEntry<'add' | 'context'> | undefined;
|
|
813
813
|
}
|
|
814
814
|
/**
|
|
815
815
|
* Visible lines result for virtualized rendering.
|
|
@@ -1032,8 +1032,8 @@ type CodePage = z.infer<typeof CodePageSchema>;
|
|
|
1032
1032
|
*/
|
|
1033
1033
|
declare const UnmappableModeSchema: z.ZodEnum<{
|
|
1034
1034
|
error: "error";
|
|
1035
|
-
replace: "replace";
|
|
1036
1035
|
skip: "skip";
|
|
1036
|
+
replace: "replace";
|
|
1037
1037
|
}>;
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Unmappable character handling mode type.
|
|
@@ -1051,8 +1051,8 @@ declare const ConversionOptionsSchema: z.ZodObject<{
|
|
|
1051
1051
|
}>;
|
|
1052
1052
|
unmappable: z.ZodDefault<z.ZodEnum<{
|
|
1053
1053
|
error: "error";
|
|
1054
|
-
replace: "replace";
|
|
1055
1054
|
skip: "skip";
|
|
1055
|
+
replace: "replace";
|
|
1056
1056
|
}>>;
|
|
1057
1057
|
replacement: z.ZodDefault<z.ZodString>;
|
|
1058
1058
|
interpretControlChars: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1750,19 +1750,19 @@ declare function updateTotalLines(state: MutableFoldState, totalLines: number):
|
|
|
1750
1750
|
*/
|
|
1751
1751
|
interface FuzzyOptions {
|
|
1752
1752
|
/** Whether to ignore case (default: true) */
|
|
1753
|
-
readonly caseSensitive?: boolean;
|
|
1753
|
+
readonly caseSensitive?: boolean | undefined;
|
|
1754
1754
|
/** Minimum score threshold (0-1, default: 0) */
|
|
1755
|
-
readonly threshold?: number;
|
|
1755
|
+
readonly threshold?: number | undefined;
|
|
1756
1756
|
/** Maximum number of results to return (default: unlimited) */
|
|
1757
|
-
readonly limit?: number;
|
|
1757
|
+
readonly limit?: number | undefined;
|
|
1758
1758
|
/** Bonus for consecutive character matches (default: 0.3) */
|
|
1759
|
-
readonly consecutiveBonus?: number;
|
|
1759
|
+
readonly consecutiveBonus?: number | undefined;
|
|
1760
1760
|
/** Bonus for matches at word boundaries (default: 0.2) */
|
|
1761
|
-
readonly wordBoundaryBonus?: number;
|
|
1761
|
+
readonly wordBoundaryBonus?: number | undefined;
|
|
1762
1762
|
/** Bonus for exact prefix match (default: 0.5) */
|
|
1763
|
-
readonly prefixBonus?: number;
|
|
1763
|
+
readonly prefixBonus?: number | undefined;
|
|
1764
1764
|
/** Penalty per character distance between matches (default: 0.1) */
|
|
1765
|
-
readonly gapPenalty?: number;
|
|
1765
|
+
readonly gapPenalty?: number | undefined;
|
|
1766
1766
|
}
|
|
1767
1767
|
/**
|
|
1768
1768
|
* A single fuzzy match result.
|
|
@@ -1782,7 +1782,7 @@ interface FuzzyMatch<T = string> {
|
|
|
1782
1782
|
*/
|
|
1783
1783
|
interface FuzzySearchOptions<T> extends FuzzyOptions {
|
|
1784
1784
|
/** Function to extract searchable text from an item */
|
|
1785
|
-
readonly getText?: (item: T) => string;
|
|
1785
|
+
readonly getText?: ((item: T) => string) | undefined;
|
|
1786
1786
|
}
|
|
1787
1787
|
/**
|
|
1788
1788
|
* Zod schema for fuzzy options.
|
|
@@ -2825,14 +2825,14 @@ interface CodeData {
|
|
|
2825
2825
|
interface ListData {
|
|
2826
2826
|
readonly kind: 'list';
|
|
2827
2827
|
readonly ordered: boolean;
|
|
2828
|
-
readonly start?: number;
|
|
2828
|
+
readonly start?: number | undefined;
|
|
2829
2829
|
readonly items: readonly ListItem[];
|
|
2830
2830
|
}
|
|
2831
2831
|
interface ListItem {
|
|
2832
2832
|
readonly content: string;
|
|
2833
2833
|
readonly inline: readonly InlineElement[];
|
|
2834
2834
|
readonly indent: number;
|
|
2835
|
-
readonly checked?: boolean;
|
|
2835
|
+
readonly checked?: boolean | undefined;
|
|
2836
2836
|
}
|
|
2837
2837
|
interface TableData {
|
|
2838
2838
|
readonly kind: 'table';
|
|
@@ -2874,12 +2874,12 @@ interface RenderedLine {
|
|
|
2874
2874
|
* Line style information.
|
|
2875
2875
|
*/
|
|
2876
2876
|
interface LineStyle {
|
|
2877
|
-
readonly fg?: number;
|
|
2878
|
-
readonly bg?: number;
|
|
2879
|
-
readonly bold?: boolean;
|
|
2880
|
-
readonly italic?: boolean;
|
|
2881
|
-
readonly underline?: boolean;
|
|
2882
|
-
readonly dim?: boolean;
|
|
2877
|
+
readonly fg?: number | undefined;
|
|
2878
|
+
readonly bg?: number | undefined;
|
|
2879
|
+
readonly bold?: boolean | undefined;
|
|
2880
|
+
readonly italic?: boolean | undefined;
|
|
2881
|
+
readonly underline?: boolean | undefined;
|
|
2882
|
+
readonly dim?: boolean | undefined;
|
|
2883
2883
|
}
|
|
2884
2884
|
/**
|
|
2885
2885
|
* Markdown parse result.
|
|
@@ -4178,6 +4178,7 @@ declare function searchReverse(text: string, query: string, options?: SearchOpti
|
|
|
4178
4178
|
* Text wrapping utilities with Unicode and ANSI support.
|
|
4179
4179
|
* @module utils/textWrap
|
|
4180
4180
|
*/
|
|
4181
|
+
|
|
4181
4182
|
/**
|
|
4182
4183
|
* Text alignment options.
|
|
4183
4184
|
*/
|
package/dist/utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Ha as AMBIGUOUS_RANGES,
|
|
1
|
+
export{Ha as AMBIGUOUS_RANGES,le as AlignmentSchema,Qd as AttrFlags,f as BOX_ASCII,e as BOX_BOLD,g as BOX_DASHED,c as BOX_DOUBLE,d as BOX_ROUNDED,b as BOX_SINGLE,za as COMBINING_RANGES,Aa as COMBINING_SET,Ib as DEFAULT_BATCH_SIZE,P as DEFAULT_COLLAPSE_THRESHOLD,O as DEFAULT_CONTEXT,Kc as DEFAULT_HIGHLIGHT_BATCH,gd as DEFAULT_PARSE_BATCH,xe as DEFAULT_SEARCH_BATCH,we as DEFAULT_TIMEOUT,Ia as EMOJI_WIDE_RANGES,Lc as EMPTY_STATE,Fa as FULLWIDTH_RANGES,Tc as GRAMMARS,Pc as GRAMMAR_GO,Mc as GRAMMAR_JAVASCRIPT,Rc as GRAMMAR_JSON,Sc as GRAMMAR_PLAINTEXT,Nc as GRAMMAR_PYTHON,Oc as GRAMMAR_RUST,Qc as GRAMMAR_SHELL,fa as HIGH_SURROGATE_END,ea as HIGH_SURROGATE_START,sd as LEAF_MAX_SIZE,td as LEAF_MIN_SIZE,ha as LOW_SURROGATE_END,ga as LOW_SURROGATE_START,ud as MAX_DEPTH,Hb as MAX_PARAGRAPH_CHUNK,ve as ParsedContentSchema,vb as TerminalWidthProfileSchema,ue as TextSegmentSchema,Ea as WIDE_RANGES,ze as WORD_BOUNDARY_AFTER,ye as WORD_BOUNDARY_BEFORE,ub as WidthOverrideSchema,Ga as ZERO_WIDTH_RANGES,Wb as addFoldRegion,Kd as append,ne as attrToTag,Sd as attrsToStyle,re as attrsToTags,Ae as boyerMooreHorspool,n as bufferToString,w as buildLineIndex,x as buildLineIndexFromLengths,wb as buildTestCorpus,pb as centerByWidth,Bd as charAt,xa as charAtCodePoint,gb as charWidth,hb as charWidthAt,sa as characters,a as charsetToBoxChars,E as clampCursor,fe as cleanTags,S as clearDiffCache,Vc as clearHighlightCache,zc as clearLazyContent,kd as clearMarkdownCache,He as clearSearchCache,zb as clearWidthOverrides,Kb as clearWrapCache,oa as codePointAt,ta as codePointLength,na as codePointToSurrogatePair,fb as codePointWidth,qa as codePoints,V as collapseChunk,Y as collapseUnchanged,me as colorToTag,rb as columnAtIndex,Q as computeDiff,T as computeDiffCached,Dc as computeDigitWidth,Ec as computeGutterWidth,Hc as computeVisibleGutter,cd as continueHighlight,Ob as continueWrap,Cc as createArraySource,h as createCellBuffer,o as createCoalescer,A as createCursor,R as createDiffCache,wd as createEmptyRope,Vb as createFoldState,Fc as createGutterConfig,Uc as createHighlightCache,vc as createLazyContent,jd as createMarkdownCache,C as createNavConfig,vd as createRope,Ge as createSearchCache,he as createTaggedText,B as createViewport,Jb as createWrapCache,ce as decodeStyleAttr,t as deleteChange,Md as deleteRange,v as destroyCoalescer,dd as detectLanguage,ed as detectLanguageFromContent,Ya as dropUnicode,be as encodeStyleAttr,da as encoding,D as ensureCursorVisible,ge as escapeTags,yc as evictChunks,X as expandAll,U as expandChunk,l as fillRect,Eb as filterByCategory,qc as findAllFiles,pc as findFile,Ne as findNearestMatch,q as flushChanges,$b as foldAll,bc as foldAtDepth,Yb as foldRegion,Gc as formatLineNumber,Gb as formatTestReport,pa as fromCodePoint,pe as generateCloseTags,oe as generateTags,dc as getAllFoldRegions,Fb as getCategories,Ma as getCharWidth,r as getCoalescingState,Da as getCombiningCharCount,ca as getDiffStats,cc as getFoldAtLine,hc as getFoldStats,fd as getGrammarByName,Xc as getHighlightStats,xb as getKnownBadSequences,Ac as getLazyContentState,wc as getLazyLines,xd as getLength,Hd as getLine,zd as getLineCount,Gd as getLineEnd,Ed as getLineForIndex,Fd as getLineStart,Id as getLines,qd as getMarkdownLineCount,rd as getMarkdownStats,Me as getMatchAt,Pe as getMatchStatus,yd as getNewlineCount,Ke as getNextMatch,Ab as getOverrideCount,Bb as getOverrideWidth,Le as getPreviousMatch,$ as getSideBySideView,Od as getStats,Dd as getText,_ as getTotalLineCount,Z as getVisibleDiffLines,ec as getVisibleFoldLines,pd as getVisibleMarkdown,Oe as getVisibleMatches,Ub as getWrapCacheStats,L as goToEnd,H as goToLine,K as goToStart,Qa as graphemeAt,Na as graphemeClusters,Pa as graphemeCount,Sa as graphemeWidth,tc as groupBy,Ic as gutterWidthChanged,Wa as hasGraphemeSegmenter,ke as hasTags,sb as hasWideChars,tb as hasZeroWidthChars,bd as highlightVisibleFirst,ad as highlightWithCache,qb as indexAtColumn,Jd as insert,s as insertChange,yb as installWidthOverrides,Rb as invalidateAll,_c as invalidateAllLines,Zc as invalidateLine,Yc as invalidateLines,md as invalidateMarkdownLines,Qb as invalidateParagraph,Pb as invalidateRange,La as isAmbiguousChar,wa as isAstral,va as isBMP,Ba as isCombiningChar,Ca as isCombiningCharBinarySearch,Ad as isEmpty,ia as isHighSurrogate,ja as isLowSurrogate,Bc as isRangeLoaded,la as isSurrogate,ka as isSurrogateCode,ua as isValidCodePoint,Ja as isWideChar,Ka as isZeroWidthChar,y as lineForOffset,Sb as lineToPosition,Cb as measureWidthWithOverrides,jc as merge,ie as mergeSegments,G as moveCursorDown,M as moveCursorLeft,N as moveCursorRight,F as moveCursorUp,bb as normalizeNFC,cb as normalizeNFD,db as normalizeNFKC,eb as normalizeNFKD,z as offsetForLine,gc as originalToVisibleLine,nb as padEndByWidth,ob as padStartByWidth,J as pageDown,I as pageUp,hd as parseInline,id as parseMarkdown,ld as parseMarkdownCached,de as parseTags,ba as parseUnifiedDiff,te as parsedToTaggedText,uc as partition,Tb as positionToLine,Be as positionToLineColumn,xc as prefetchAround,Ld as prepend,p as queueChange,Xb as removeFoldRegion,nd as renderBlock,i as renderBox,Jc as renderGutterBlock,j as renderHLine,od as renderMarkdown,m as renderText,k as renderVLine,u as replaceChange,Nd as replaceRange,Lb as resizeWrapCache,Xa as reverseGraphemes,Db as runWidthTests,Td as sattr,Zd as sattrAddFlag,Wd as sattrCopy,ae as sattrEmpty,Vd as sattrEqual,Ud as sattrFromStyleData,Yd as sattrHasFlag,$d as sattrInvert,Xd as sattrMerge,_d as sattrRemoveFlag,Ee as search,Fe as searchBatch,Ce as searchLiteral,De as searchRegex,Qe as searchReverse,Je as searchWithCache,se as segmentToTaggedText,Wc as setGrammar,kc as shallowMerge,kb as sliceByWidth,Ua as sliceByWidthGrapheme,ya as sliceCodePoints,Ra as sliceGraphemes,oc as sortBy,mc as sortByIndex,lc as sortByName,nc as sortByPriority,jb as strWidth,ib as stringWidth,Ta as stringWidthGrapheme,$a as stripCombining,ab as stripControl,ee as stripTags,_a as stripZeroWidth,Rd as styleToAttrs,Cd as substring,ma as surrogatePairToCodePoint,je as taggedLength,Za as toAscii,ra as toCodePoints,Oa as toGraphemes,aa as toUnifiedDiff,W as toggleChunk,_b as toggleFold,$c as tokenizeLine,lb as truncateByWidth,mb as truncateWithEllipsis,Va as truncateWithEllipsisGrapheme,ac as unfoldAll,Zb as unfoldRegion,rc as unique,sc as uniqueBy,Ie as updateSearchQuery,ic as updateTotalLines,Pd as verify,fc as visibleToOriginalLine,Nb as wrapVisibleFirst,Mb as wrapWithCache,qe as wrapWithTags}from'../chunk-WJRVUAZR.js';export{a as FuzzyOptionsSchema,h as formatDate,f as fuzzyFilter,b as fuzzyMatch,c as fuzzySearch,d as fuzzySearchBy,g as fuzzyTest,e as highlightMatch,i as unixTimestamp,j as unixTimestampMs}from'../chunk-6PX5R326.js';export{d as COMPRESSION_RATIO,a as DEFAULT_CHUNK_SIZE,b as DEFAULT_MAX_CACHED,c as DEFAULT_MAX_MEMORY,g as appendLine,h as appendLines,f as clearScrollback,u as compressOldChunks,e as createScrollbackBuffer,v as decompressAll,s as exportToText,j as getLineRange,q as getMemoryUsage,i as getScrollbackLine,p as getScrollbackStats,k as getVisibleLines,l as jumpToLine,r as loadFromText,m as scrollBy,o as scrollToBottom,n as scrollToTop,t as trimToLineCount}from'../chunk-JHCKPCUH.js';export{e as CHUNKED_THRESHOLD,a as LineIndexSchema,b as LineRangeParamsSchema,d as TrimParamsSchema,c as VisibleLinesParamsSchema,n as appendLinesToStore,m as appendToStore,h as createEmptyLineStore,f as createLineStore,g as createLineStoreFromLines,u as exportContent,v as exportLineRange,p as getByteSize,i as getLineAtIndex,s as getLineForOffset,j as getLineInfo,o as getLineStoreLineCount,k as getLineStoreRange,l as getLineStoreVisibleLines,t as getOffsetForLine,r as getStoreStats,q as isStoreEmpty,w as trimLineStore}from'../chunk-VOCM5T2G.js';export{m as createComponentStore,n as createSparseStore,o as createTypedArrayPool,p as estimateMemoryUsage,q as getComponentMemoryReport,r as isWithinMemoryBounds}from'../chunk-RJULLVTH.js';import'../chunk-ZPGJCHXH.js';export{d as alignLine,b as getVisibleWidth,g as padHeight,a as stripAnsi,c as truncate,e as wordWrap,f as wrapText}from'../chunk-NPDPBAW6.js';export{r as colorToHex,q as hexToColor,o as packColor,s as parseColor,p as unpackColor}from'../chunk-P3ZLIQJP.js';import'../chunk-5PELJRUQ.js';
|
|
@@ -16,11 +16,11 @@ interface ScrollbackLine {
|
|
|
16
16
|
/** The text content of the line */
|
|
17
17
|
readonly text: string;
|
|
18
18
|
/** ANSI formatting preserved */
|
|
19
|
-
readonly ansi?: string;
|
|
19
|
+
readonly ansi?: string | undefined;
|
|
20
20
|
/** Timestamp when line was added */
|
|
21
|
-
readonly timestamp?: number;
|
|
21
|
+
readonly timestamp?: number | undefined;
|
|
22
22
|
/** Custom metadata */
|
|
23
|
-
readonly meta?: Record<string, unknown
|
|
23
|
+
readonly meta?: Record<string, unknown> | undefined;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* A chunk of lines.
|
|
@@ -37,7 +37,7 @@ interface Chunk {
|
|
|
37
37
|
/** Whether this chunk is compressed */
|
|
38
38
|
compressed: boolean;
|
|
39
39
|
/** Compressed data (when compressed=true) */
|
|
40
|
-
compressedData?: string;
|
|
40
|
+
compressedData?: string | undefined;
|
|
41
41
|
/** Approximate memory usage in bytes */
|
|
42
42
|
memorySize: number;
|
|
43
43
|
/** Last access time for LRU */
|