blecsd 0.4.0 → 0.6.2

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.
Files changed (156) hide show
  1. package/README.md +169 -147
  2. package/dist/blend-BZDmQFAm.d.ts +1215 -0
  3. package/dist/{border-DGNDfT6T.d.ts → border-Br-Jc027.d.ts} +2 -2
  4. package/dist/{cell-DwIu2ryP.d.ts → cell-5Ty_3yMs.d.ts} +1 -1
  5. package/dist/cellRenderer-D0-DJXWl.d.ts +374 -0
  6. package/dist/chunk-3PGACJB6.js +1 -0
  7. package/dist/{chunk-DNRXW56C.js → chunk-4EV3YS7F.js} +1 -1
  8. package/dist/chunk-4XW4WIPH.js +1 -0
  9. package/dist/chunk-7CLV3LTZ.js +4 -0
  10. package/dist/chunk-7ZFQO3OQ.js +1 -0
  11. package/dist/chunk-AM6IDSXI.js +1 -0
  12. package/dist/chunk-APPZ3YHO.js +0 -0
  13. package/dist/chunk-EHYOVHRL.js +2 -0
  14. package/dist/chunk-EKE2BXPS.js +1 -0
  15. package/dist/chunk-EOFT3PNU.js +1 -0
  16. package/dist/chunk-ESMSDY3P.js +1 -0
  17. package/dist/chunk-FJLSHFCF.js +1 -0
  18. package/dist/chunk-FUW7OD3H.js +1 -0
  19. package/dist/chunk-GIMWA5WA.js +1 -0
  20. package/dist/chunk-GRMSEMU7.js +1 -0
  21. package/dist/chunk-I7AUKTXE.js +1 -0
  22. package/dist/chunk-IXUFU6TE.js +3 -0
  23. package/dist/chunk-JB5KFQPD.js +1 -0
  24. package/dist/chunk-JCLNGU3K.js +1 -0
  25. package/dist/chunk-JN2OGNK3.js +1 -0
  26. package/dist/chunk-JRRJCATR.js +1 -0
  27. package/dist/chunk-JWIVZCKW.js +1 -0
  28. package/dist/chunk-K5UMVDQX.js +1 -0
  29. package/dist/chunk-KYNS3GBJ.js +2 -0
  30. package/dist/chunk-L4FIDOS6.js +1 -0
  31. package/dist/chunk-LIVVHEOU.js +1 -0
  32. package/dist/chunk-LNEISTXM.js +1 -0
  33. package/dist/chunk-M5FXA5FL.js +1 -0
  34. package/dist/chunk-MEJJLDEQ.js +1 -0
  35. package/dist/chunk-NYIMY4UV.js +1 -0
  36. package/dist/chunk-PQZTNWLA.js +1 -0
  37. package/dist/chunk-QS5QXZNJ.js +1 -0
  38. package/dist/chunk-SXOBHRXF.js +2 -0
  39. package/dist/chunk-T2EQLWMN.js +1 -0
  40. package/dist/chunk-T62UPG63.js +4 -0
  41. package/dist/chunk-TPBILYDM.js +10 -0
  42. package/dist/chunk-UWS6FIU5.js +1 -0
  43. package/dist/chunk-W64J7C25.js +4 -0
  44. package/dist/chunk-W6RELN6A.js +1 -0
  45. package/dist/chunk-XYMPBCYW.js +1 -0
  46. package/dist/chunk-ZAJI53SZ.js +1 -0
  47. package/dist/cli/init.js +1 -1
  48. package/dist/{componentStorage-CJTh-TPO.d.ts → componentStorage-CXJvx4Lt.d.ts} +2 -2
  49. package/dist/components/index.d.ts +7762 -7682
  50. package/dist/components/index.js +5 -1
  51. package/dist/core/index.d.ts +4851 -4261
  52. package/dist/core/index.js +1 -1
  53. package/dist/debug/index.d.ts +310 -84
  54. package/dist/debug/index.js +8 -1
  55. package/dist/{dirtyTracking-C4v8MmM9.d.ts → dirtyTracking-D0SQrEeo.d.ts} +2 -2
  56. package/dist/{doubleBuffer-CKQFmlPN.d.ts → doubleBuffer-d9yVNtj1.d.ts} +22 -2
  57. package/dist/errors/index.js +1 -1
  58. package/dist/{events-9ForpTfM.d.ts → events-CGqK6LGt.d.ts} +2 -2
  59. package/dist/{inputActions-Fyw14_Gm.d.ts → factories-vW7bn_He.d.ts} +21 -786
  60. package/dist/{gameLoop-CSTb7e0L.d.ts → gameLoop-C1AyRWyP.d.ts} +3 -3
  61. package/dist/index.d.ts +25 -1217
  62. package/dist/index.js +1 -3
  63. package/dist/input/index.d.ts +1 -1
  64. package/dist/input/index.js +1 -1
  65. package/dist/inputStream-BoFAEJ7g.d.ts +1385 -0
  66. package/dist/interactiveSystem-Dtv3xERg.d.ts +2292 -0
  67. package/dist/{keyParser-m7fWto6g.d.ts → keyParser-DReXe2j-.d.ts} +28 -28
  68. package/dist/{mouseParser-B7p5ow7K.d.ts → mouseParser-CTNGolIA.d.ts} +1 -1
  69. package/dist/{packedStore-BgvnEdE7.d.ts → packedStore-480t2X74.d.ts} +1 -1
  70. package/dist/panelMovement-DSLYdNOL.d.ts +1909 -0
  71. package/dist/{parser-iMHmQuUh.d.ts → parser-Q1YLXYpF.d.ts} +1 -1
  72. package/dist/positioning-DiUivJXa.d.ts +917 -0
  73. package/dist/{renderable-CwqGwrEV.d.ts → renderable-IbSJao5y.d.ts} +2 -2
  74. package/dist/{scheduler-DeeZleia.d.ts → scheduler-NbHT3-D2.d.ts} +1 -1
  75. package/dist/schemas/index.d.ts +6 -6
  76. package/dist/schemas/index.js +1 -1
  77. package/dist/style/index.d.ts +851 -0
  78. package/dist/style/index.js +1 -0
  79. package/dist/styleInheritance-CuRb5Dmp.d.ts +251 -0
  80. package/dist/systems/index.d.ts +786 -1882
  81. package/dist/systems/index.js +1 -1
  82. package/dist/terminal/index.d.ts +5542 -2460
  83. package/dist/terminal/index.js +1 -1
  84. package/dist/terminalBuffer-BbUz27qM.d.ts +691 -0
  85. package/dist/{terminus-14-bold-HWSPRLJD.js → terminus-14-bold-ZS4IH465.js} +1 -1
  86. package/dist/{terminus-14-normal-T3SWMH4D.js → terminus-14-normal-HD5N7F5W.js} +1 -1
  87. package/dist/testing/index.d.ts +923 -0
  88. package/dist/testing/index.js +7 -0
  89. package/dist/text/index.d.ts +263 -0
  90. package/dist/text/index.js +3 -0
  91. package/dist/textWrap-sY-PZzE7.d.ts +761 -0
  92. package/dist/{tilemap-BirMJdbu.d.ts → tilemap-ByvTsepD.d.ts} +5 -5
  93. package/dist/{types-CPB4CpbH.d.ts → types-B8LmNkzG.d.ts} +1 -1
  94. package/dist/utils/index.d.ts +829 -782
  95. package/dist/utils/index.js +32 -1
  96. package/dist/{virtualScrollback-D9uLFe8l.d.ts → virtualScrollback-CiooIebp.d.ts} +4 -4
  97. package/dist/virtualViewport-fIlbIGPt.d.ts +657 -0
  98. package/dist/{virtualizedLineStore-DwPEvPkk.d.ts → virtualizedLineStore-DfyhojPZ.d.ts} +1 -1
  99. package/dist/widgets/bigText.d.ts +13 -13
  100. package/dist/widgets/bigText.js +1 -1
  101. package/dist/widgets/fonts/index.d.ts +1 -1
  102. package/dist/widgets/fonts/index.js +1 -1
  103. package/dist/widgets/index.d.ts +1620 -910
  104. package/dist/widgets/index.js +24 -1
  105. package/package.json +23 -22
  106. package/dist/3d/index.d.ts +0 -5
  107. package/dist/3d/index.js +0 -1
  108. package/dist/audio/index.d.ts +0 -177
  109. package/dist/audio/index.js +0 -1
  110. package/dist/chunk-25OEBENM.js +0 -3
  111. package/dist/chunk-26STV7ZS.js +0 -1
  112. package/dist/chunk-2NMGUEFC.js +0 -4
  113. package/dist/chunk-35LCBY6P.js +0 -1
  114. package/dist/chunk-4PRDJTCM.js +0 -1
  115. package/dist/chunk-5PELJRUQ.js +0 -1
  116. package/dist/chunk-5VEKHA3B.js +0 -5
  117. package/dist/chunk-6KEM3OS2.js +0 -11
  118. package/dist/chunk-6XWY6GB7.js +0 -1
  119. package/dist/chunk-735KKTP3.js +0 -1
  120. package/dist/chunk-7SWJNDOL.js +0 -26
  121. package/dist/chunk-APKUNIMB.js +0 -1
  122. package/dist/chunk-CJCSZRV6.js +0 -1
  123. package/dist/chunk-DMBMCCLN.js +0 -1
  124. package/dist/chunk-DQTVJITR.js +0 -1
  125. package/dist/chunk-DSKQ5J4R.js +0 -1
  126. package/dist/chunk-E4CJRSND.js +0 -1
  127. package/dist/chunk-EF4DC6IN.js +0 -1
  128. package/dist/chunk-EJAKECSN.js +0 -1
  129. package/dist/chunk-FNQRUMFD.js +0 -1
  130. package/dist/chunk-GJ3RS2VG.js +0 -1
  131. package/dist/chunk-KTVEMB2I.js +0 -1
  132. package/dist/chunk-KYAPE44E.js +0 -8
  133. package/dist/chunk-LI4Y7TBZ.js +0 -1
  134. package/dist/chunk-NHOL4BN6.js +0 -1
  135. package/dist/chunk-NPNUUSIB.js +0 -1
  136. package/dist/chunk-NZ55KBM6.js +0 -1
  137. package/dist/chunk-OFRWGW2G.js +0 -1
  138. package/dist/chunk-OMMJ7B5P.js +0 -1
  139. package/dist/chunk-OMU5BSAS.js +0 -2
  140. package/dist/chunk-P3ZLIQJP.js +0 -1
  141. package/dist/chunk-PWI36BQJ.js +0 -1
  142. package/dist/chunk-QQMUDJ32.js +0 -2
  143. package/dist/chunk-R3ICZOE4.js +0 -1
  144. package/dist/chunk-RZ7FGVI6.js +0 -1
  145. package/dist/chunk-S6WS46FE.js +0 -1
  146. package/dist/chunk-TSARUU56.js +0 -1
  147. package/dist/chunk-WJRVUAZR.js +0 -33
  148. package/dist/chunk-WY5EZOOL.js +0 -1
  149. package/dist/chunk-YY6RZCZH.js +0 -4
  150. package/dist/chunk-ZPGJCHXH.js +0 -1
  151. package/dist/chunk-ZPL2J25N.js +0 -1
  152. package/dist/game/index.d.ts +0 -486
  153. package/dist/game/index.js +0 -1
  154. package/dist/index-DBS5Uefn.d.ts +0 -3156
  155. package/dist/viewport3d-xI33-_wq.d.ts +0 -182
  156. package/dist/virtualViewport-DTSN6jFk.d.ts +0 -1856
package/dist/index.d.ts CHANGED
@@ -1,1227 +1,35 @@
1
- export { i as three } from './index-DBS5Uefn.js';
2
- export { AudioAdapter, AudioChannel, AudioChannelValue, AudioManager, AudioState, PlayOptions, SoundTrigger, createAudioManager } from './audio/index.js';
3
- export { AllocationTracker, ComponentInfo, ConsoleLogLevel, DebugConsole, DebugConsoleConfig, DebugConsoleConfigSchema, DebugOverlay, DebugOverlayConfig, EntityInspection, FrameRateGraph, KNOWN_COMPONENTS, LeakWarning, LogEntry, MemoryDiff, MemoryProfiler, MemoryProfilerConfig, MemorySnapshot, MiniProfiler, PerformanceStats, WorldInspection, createDebugConsole, createDebugOverlay, createFrameRateGraph, createInputLogger, createMemoryProfiler, createMiniProfiler, debugLog, dumpEntity, dumpWorld, enableDebugBounds, enableSystemTiming, findEntitiesWithComponent, findEntitiesWithComponents, formatEntityInspection, formatWorldInspection, getComponentField, getDebugBoundsConfig, getDebugBoundsEntities, getEntitySummary, getPerformanceStats, getSystemTimings, inspectEntity, inspectWorld, isDebugBoundsEnabled, isEntityActive, isSystemTimingEnabled, listEntities, listEntityComponents, logEntity, logWorld, recordSystemTime, resetPerformanceStatsCache, resetSystemTimings, timedSystem } from './debug/index.js';
4
- export { BLECSD_ERROR_SYMBOL, BlECSdError, BlECSdErrorBase, BlECSdErrorCode, BlECSdErrorCodeType, BlECSdErrorKind, ComponentError, ComponentErrorCode, ComponentErrorCodeType, ConfigError, ConfigErrorCode, ConfigErrorCodeType, EntityError, EntityErrorCode, EntityErrorCodeType, ErrorContext, ErrorOptions, InputError, InputErrorCode, InputErrorCodeType, InternalError, InternalErrorCode, InternalErrorCodeType, NativeBlECSdError, RenderError, RenderErrorCode, RenderErrorCodeType, Result, ResultErr, ResultOk, SystemError, SystemErrorCode, SystemErrorCodeType, TerminalError, TerminalErrorCode, TerminalErrorCodeType, ValidationError, ValidationErrorCode, ValidationErrorCodeType, ValidationErrorOptions, createComponentError, createConfigError, createEntityError, createInputError, createInternalError, createRenderError, createSystemError, createTerminalError, createValidationError, err, flatMap, fromNativeError, hasBlECSdErrorShape, hasCause, hasContext, hasErrorCode, hasZodIssues, isBlECSdError, isComponentError, isConfigError, isEntityError, isErr, isErrorKind, isInputError, isInternalError, isOk, isRenderError, isSystemError, isTerminalError, isValidationError, map, mapError, ok, toNativeError, unwrap, unwrapOr, unwrapOrElse, wrapError } from './errors/index.js';
5
- export { FixedUpdateCallback, Game, GameConfig, GameConfigSchema, RenderCallback, ResolvedGameConfig, UpdateCallback, createGame } from './game/index.js';
6
- export { ViAction, ViModeConfig, ViModeState, ViState, createViConfig, createViState, isViKey, processViKey, resolveJumpTarget, resolvePageAmount } from './input/index.js';
7
- export { AnimationFrameSchema, AnimationOptionsSchema, BufferEncodingSchema, ColorString, ColorStringSchema, ComputedLayoutSchema, Dimension, DimensionConstraintsSchema, DimensionSchema, DimensionValueSchema, DragConstraintsSchema, EditorOptionsSchema, EntityBoundsSchema, ExecOptionsSchema, FilePathSchema, FixedTimestepConfigSchema, FocusEventTypeSchema, GameLoopOptionsSchema, IntervalSchema, ListBehaviorOptionsSchema, ListItemSchema, LoopStatsSchema, NonNegativeInt, NonNegativeIntSchema, OpacitySchema, OutputStateSchema, PackedColorSchema, PaddingOptionsSchema, PaddingValueSchema, Percentage, PercentageSchema, PositiveInt, PositiveIntSchema, QueuedInputEventSchema, QueuedKeyEventSchema, QueuedMouseEventSchema, ScrollableOptionsSchema, SetDimensionsSchema, SetPositionSchema, SliderPercentageSchema, SliderRangeSchema, SliderStepSchema, SnapToGridSchema, SpawnOptionsSchema, SpeedMultiplierSchema, StyleColorSchema, StyleOptionsSchema, TextAlignSchema, TreePathSchema, VAlignSchema, WidgetBorderSchema, WidgetColorSchema, WidgetDimensionSchema, WidgetPaddingSchema, WidgetPositionSchema, ZIndexSchema } from './schemas/index.js';
8
- import { z } from 'zod';
9
- export { Acceleration, AccelerationData, Accessible, AccessibleRole, Animation, AnimationData, AnimationDefinition, AnimationDirection, AnimationFrame, AnimationOptions, BACKGROUND_COPY_CHUNK_SIZE, BLOCK_SPINNER_CHARS, BRAILLE_SPINNER_CHARS, BUTTON_STATE_MACHINE_CONFIG, Behavior, BehaviorData, BehaviorDirection, BehaviorOptions, BehaviorState, BehaviorStateValue, BehaviorType, BehaviorTypeValue, ButtonEvent, ButtonState, ButtonStore, CHECKBOX_STATE_MACHINE_CONFIG, Camera, CameraBounds, CameraData, CameraOptions, CheckboxDisplay, CheckboxDisplayOptions, CheckboxEvent, CheckboxState, CheckboxStore, Content, ContentData, ContentOptions, CopyProgress, CursorConfig, CursorConfigOptions, CursorMode, CursorModeType, CursorShapeValue, CustomBehaviorCallback, DEFAULT_CENSOR_CHAR, DEFAULT_CHECKED_CHAR, DEFAULT_CLOSED_INDICATOR, DEFAULT_CURSOR_BLINK_MS, DEFAULT_CURSOR_BLOCK_CHAR, DEFAULT_CURSOR_LINE_CHAR, DEFAULT_DISABLED_FG, DEFAULT_EMPTY_CHAR, DEFAULT_EMPTY_CHAR_VERTICAL, DEFAULT_FILL_CHAR, DEFAULT_FILL_CHAR_VERTICAL, DEFAULT_FOCUS_BG, DEFAULT_FOCUS_FG, DEFAULT_HOVER_BG, DEFAULT_HOVER_FG, DEFAULT_ITEM_BG, DEFAULT_ITEM_FG, DEFAULT_OPEN_INDICATOR, DEFAULT_PLACEHOLDER, DEFAULT_RADIO_SELECTED_CHAR, DEFAULT_RADIO_UNSELECTED_CHAR, DEFAULT_SCROLLBAR_THUMB_CHAR, DEFAULT_SCROLLBAR_TRACK_CHAR, DEFAULT_SELECTED_BG, DEFAULT_SELECTED_FG, DEFAULT_SELECTED_MARK, DEFAULT_SELECTED_PREFIX, DEFAULT_SEPARATOR, DEFAULT_SHADOW_CHAR, DEFAULT_SHADOW_COLOR, DEFAULT_SHADOW_OFFSET_X, DEFAULT_SHADOW_OFFSET_Y, DEFAULT_SHADOW_OPACITY, DEFAULT_SLIDER_FILL_BG, DEFAULT_SLIDER_FILL_CHAR, DEFAULT_SLIDER_FILL_CHAR_VERTICAL, DEFAULT_SLIDER_FILL_FG, DEFAULT_SPINNER_CHARS, DEFAULT_SPINNER_INTERVAL, DEFAULT_THUMB_BG, DEFAULT_THUMB_CHAR, DEFAULT_THUMB_COLOR, DEFAULT_THUMB_FG, DEFAULT_TRACK_BG, DEFAULT_TRACK_CHAR, DEFAULT_TRACK_CHAR_H, DEFAULT_TRACK_CHAR_VERTICAL, DEFAULT_TRACK_COLOR, DEFAULT_TRACK_FG, DEFAULT_UNCHECKED_CHAR, DEFAULT_UNSELECTED_PREFIX, DEFAULT_VIEWPORT_HEIGHT, DEFAULT_VIEWPORT_WIDTH, DOTS_SPINNER_CHARS, Focusable, FocusableData, FocusableOptions, FormFieldValue, FormResetCallback, FormStore, FormSubmitCallback, FormValues, Health, HealthData, HealthOptions, Hierarchy, HierarchyData, InputBuffer, InputBufferData, Interactive, InteractiveData, InteractiveOptions, KeyboardInput, KeyboardInputData, KeyboardInputOptions, LIST_STATE_MACHINE_CONFIG, Label, LabelData, LabelOptions, LabelPosition, LineSelectionInfo, ModifierFlags, MouseButtons, MouseInput, MouseInputData, MouseInputOptions, NULL_ENTITY, Padding, PaddingData, PaddingOptions, PatrolRoute, PlayAnimationOptions, Point2D, Position, PositionData, PositionKeyword, ProgressBarDisplay, ProgressBarDisplayOptions, ProgressBarStore, ProgressChangeCallback, ProgressCompleteCallback, ProgressOrientation, RADIO_BUTTON_STATE_MACHINE_CONFIG, RadioButtonDisplay, RadioButtonDisplayOptions, RadioButtonEvent, RadioButtonState, RadioButtonStore, RadioSelectCallback, RadioSetStore, SELECT_STATE_MACHINE_CONFIG, SHADOW_CHAR_DARK, SHADOW_CHAR_LIGHT, SHADOW_CHAR_MEDIUM, SLIDER_STATE_MACHINE_CONFIG, SYNC_COPY_LINE_LIMIT, Screen, ScreenCursor, ScreenData, ScreenOptions, Scrollbar, ScrollbarData, ScrollbarOptions, ScrollbarRenderCell, SelectAction, SelectCallback, SelectDisplay, SelectDisplayOptions, SelectEvent, SelectOption, SelectState, SelectStore, SelectionMode, SelectionModeSchema, SelectionPosition, SelectionPositionSchema, SelectionRange, Shadow, ShadowData, ShadowOptions, ShadowPosition, SliderAction, SliderChangeCallback, SliderDisplay, SliderDisplayOptions, SliderEvent, SliderOrientation, SliderOrientationType, SliderState, SliderStore, Spinner, SpinnerData, SpinnerOptions, Sprite, SpriteCell, SpriteData, SpriteFrame, SpriteSheetData, SpriteSheetOptions, StateMachineStore, TEXT_INPUT_STATE_MACHINE_CONFIG, TIMER_INFINITE, TextAlign, TextInputAction, TextInputConfig, TextInputConfigOptions, TextInputEvent, TextInputState, TextInputStore, TextSelectionState, TextVAlign, Timer, TimerCallback, TimerCompleteCallback, TimerData, TimerOptions, TraversalCallback, UserData, UserDataObject, Velocity, VelocityData, VelocityOptions, activateSelected, addItem, addSpinner, addVelocity, advanceSpinnerFrame, animationStore, announce, appendChild, appendContent, appendItems, appendToSearchQuery, applyAccelerationToEntity, applyFrictionToEntity, applyVelocityToEntity, attachButtonBehavior, attachCheckboxBehavior, attachFormBehavior, attachListBehavior, attachProgressBarBehavior, attachRadioButtonBehavior, attachRadioSetBehavior, attachSelectBehavior, attachSliderBehavior, attachStateMachine, attachTextInputBehavior, autoRegisterFields, backspaceSearchQuery, blendShadowColor, blur, blurList, blurSlider, blurTextInput, bringToFront, buttonStore, calculateHorizontalScrollbar, calculateShadowPositions, calculateVerticalScrollbar, canSendEvent, centerCameraOn, checkCheckbox, checkNeedsLoad, checkboxStore, clampSpeedForEntity, clearAcceleration, clearAccessibilityLabels, clearAllUserData, clearButtonCallbacks, clearCameraBounds, clearCheckboxCallbacks, clearCheckboxDisplay, clearContent, clearFormCallbacks, clearInputBufferSelection, clearInteractionState, clearInvulnerable, clearItems, clearKeyboardInput, clearLazyLoadCallback, clearListCallbacks, clearListDisplay, clearListFilter, clearListSelection, clearMouseInput, clearProgressBarCallbacks, clearProgressBarDisplay, clearRadioButtonDisplay, clearRadioSetCallbacks, clearSearchQuery, clearSelectCallbacks, clearSelectDisplay, clearSelectSelection, clearSelection, clearSliderCallbacks, clearSliderDisplay, clearTextInputCallbacks, clearTextInputError, clearTextSelection, clearTimerCallbacks, closeSelect, completeProgress, computeChaseDirection, computeFleeDirection, computePatrolDirection, contentStore, createBackgroundCopy, createSelectionState, damage, decrementProgress, decrementSlider, deselectAllItems, deselectRadioButton, destroyScreen, detach, detachStateMachine, disable, disableButton, disableCheckbox, disableList, disableRadioButton, disableScrollbar, disableSelect, disableShadow, disableSlider, disableTextInput, emitCancel, emitSubmit, emitValueChange, enable, enableButton, enableCheckbox, enableList, enableRadioButton, enableScrollbar, enableSelect, enableShadow, enableSlider, enableTextInput, endEditingTextInput, endListSearch, ensureVisible, executeCustomBehavior, findAndSelectByText, findNextMatch, focus, focusList, focusNext, focusNextField, focusPrev, focusPrevField, focusSlider, focusTextInput, forAncestors, forDescendants, formStore, getAcceleration, getAccessibleLabel, getAccessibleRole, getAncestors, getAnimation, getAnimationByName, getAnimationData, getAnimationIdByName, getBehavior, getBehaviorState, getBehaviorTarget, getBehaviorType, getButtonState, getCamera, getCameraPosition, getCameraTarget, getCensorChar, getCheckboxChar, getCheckboxDisplay, getCheckboxState, getChildAt, getChildIndex, getChildren, getCommonAncestor, getContent, getContentData, getContentHash, getContentLength, getCurrentFrame, getCurrentPatrolPoint, getCursorChar, getCursorConfig, getCursorDisplayText, getCursorMode, getCursorPos, getDepth, getDescendants, getEntityAnimation, getEntitySpriteSheet, getFieldName, getFieldValue, getFilteredItems, getFirstChild, getFirstVisible, getFocusEffect, getFocusable, getFocusedEntity, getFormFields, getFormTabOrder, getFormValues, getHealth, getHealthPercent, getHierarchy, getHighlightedIndex, getHorizontalPadding, getInputBuffer, getInputBufferText, getInteractive, getItem, getItemCount, getItems, getKeyboardInput, getLabel, getLabelPosition, getLabelText, getLastChild, getLazyLoadCallback, getLineSelectionInfo, getListDisplay, getListSearchQuery, getListSelectedIndex, getListState, getLoadingPlaceholder, getMaxLength, getMouseInput, getMultiSelected, getNextSibling, getNormalizedRange, getNormalizedSelection, getOptionAt, getOptionCount, getOrCreateUserData, getPadding, getParent, getPatrolRoute, getPlaceholder, getPosition, getPrevSibling, getPreviousState, getProgress, getProgressBarDisplay, getProgressEmptyChar, getProgressFillChar, getProgressMax, getProgressMin, getProgressOrientation, getProgressPercentage, getRadioButtonChar, getRadioButtonDisplay, getRadioButtonState, getRadioButtonsInSet, getRadioSet, getRadioValue, getRoot, getScreen, getScreenCursor, getScreenData, getScreenFocus, getScreenHover, getScreenSize, getScrollInfo, getScrollbar, getSelectDisplay, getSelectIndicator, getSelectOptions, getSelectState, getSelectValue, getSelectedButton, getSelectedIndex, getSelectedItem, getSelectedLabel, getSelectedLinesInViewport, getSelectedOption, getSelectedText, getSelectedValue, getSelection, getSelectionDirtyRanges, getSelectionLineCount, getSelectionState, getShadow, getShadowChar, getShadowColor, getShadowOffset, getShadowOpacity, getSiblings, getSliderDisplay, getSliderMax, getSliderMin, getSliderOrientation, getSliderPercentage, getSliderState, getSliderStep, getSliderValue, getSpeed, getSpinnerChar, getSpinnerData, getSprite, getSpriteIdByName, getSpriteSheet, getSpriteSheetByName, getState, getStateAge, getTabIndex, getTabOrder, getText, getTextInputConfig, getTextInputState, getTimer, getTimerProgress, getTotalCount, getUserData, getUserDataCount, getVelocity, getVerticalPadding, getVisibleCount, getVisibleItems, handleButtonKeyPress, handleCheckboxKeyPress, handleFormKeyPress, handleListKeyPress, handleRadioButtonKeyPress, handleSelectKeyPress, handleSliderKeyPress, handleTextInputKeyPress, hasAcceleration, hasActiveSelection, hasAncestor, hasAnimation, hasBehavior, hasCamera, hasContent, hasDescendant, hasFocusable, hasHealth, hasHierarchy, hasInputBuffer, hasInputEnabled, hasInteractive, hasKeyboardInput, hasKeysEnabled, hasLabel, hasLabelText, hasMouseEnabled, hasMouseInput, hasPadding, hasPaddingValue, hasPosition, hasScreen, hasScreenSingleton, hasScrollbar, hasSelection, hasSelectionState, hasShadow, hasSpinner, hasSprite, hasStateMachine, hasTimer, hasUserData, hasVelocity, heal, highlightNext, highlightPrev, incrementProgress, incrementSlider, initScreenComponent, inputBufferStore, insertAfter, insertAt, insertBefore, isAbsolute, isAnimationPlaying, isAreaInView, isAutoPadding, isBehaviorActive, isBehaviorCompleted, isBehaviorWaiting, isButton, isButtonDisabled, isButtonFocused, isButtonHovered, isButtonInState, isButtonPressed, isCameraBounded, isCheckbox, isCheckboxDisabled, isCheckboxInState, isChecked, isClickable, isCursorBlinkEnabled, isDead, isDraggable, isEnabled, isFocusable, isFocused, isFollowingTarget, isForm, isFormKeysEnabled, isFormSubmitOnEnter, isFullUnicode, isHoverable, isHovered, isInState, isInTabOrder, isInView, isInvulnerable, isItemMultiSelected, isKeyable, isLeaf, isLineSelected, isList, isListDisabled, isListFocused, isListInState, isListInteractive, isListKeysEnabled, isListLoading, isListMouseEnabled, isListMultiSelect, isListSearchEnabled, isListSearching, isMultiline, isParsingTags, isPressed, isProgressBar, isProgressComplete, isRadioButton, isRadioButtonDisabled, isRadioButtonInState, isRadioSelected, isRadioSet, isRoot, isScrollbarEnabled, isSecretMode, isSelect, isSelectDisabled, isSelectInState, isSelectOpen, isShadowBlending, isShadowEnabled, isShowingPercentage, isShowingSliderValue, isSlider, isSliderDisabled, isSliderDragging, isSliderFocused, isSliderHorizontal, isSliderInState, isSliderVertical, isTextInput, isTextInputDisabled, isTextInputEditing, isTextInputError, isTextInputFocused, isTextInputInState, isTextWrapped, isTimerComplete, isTimerRunning, isUnchecked, labelStore, listStore, loadItems, makeFocusable, maskValue, moveBackward, moveBy, moveCameraBy, moveCursor, moveForward, nextFrame, onButtonPress, onCheckboxChange, onFormReset, onFormSubmit, onListActivate, onListCancel, onListScroll, onListSearchChange, onListSelect, onProgressChange, onProgressComplete, onRadioSelect, onSelectChange, onSelectClose, onSelectOpen, onSliderChange, onSliderDragEnd, onSliderDragStart, onTextInputCancel, onTextInputChange, onTextInputSubmit, onTimerComplete, onTimerFire, openSelect, packModifiers, pauseAnimation, pauseTimer, playAnimation, playAnimationByName, prepend, pressButton, prevFrame, progressBarStore, radioButtonStore, radioSetStore, recordClick, registerAnimation, registerBuiltinComponentNames, registerFormField, registerScreenSingleton, registerSelectionState, registerSprite, removeAcceleration, removeAnimation, removeBehavior, removeCamera, removeChild, removeHealth, removeInputBuffer, removeItem, removeKeyboardInput, removeLabel, removeMouseInput, removeSelectionState, removeShadow, removeSpinner, removeSprite, removeTimer, removeUserData, removeVelocity, renderListItems, renderProgressString, renderSliderString, resetAnimationStore, resetBehaviorStore, resetButtonStore, resetCheckboxStore, resetContentStore, resetFocusState, resetForm, resetFormStore, resetLabelStore, resetListStore, resetProgress, resetProgressBarStore, resetRadioButtonStore, resetScreenSingleton, resetSelectStore, resetSelectionStore, resetSliderStore, resetSpinner, resetSpinnerStore, resetSpriteStore, resetTextInputStore, resetTimer, resetTimerStore, resizeScreen, resumeAnimation, resumeTimer, screenToWorld, scrollPage, selectAll, selectAllItems, selectByValue, selectFirst, selectHighlighted, selectLast, selectLine, selectLineRange, selectNext, selectOptionByIndex, selectOptionByValue, selectPrev, selectRadioButton, selectRadioByValue, selectStore, sendButtonEvent, sendCheckboxEvent, sendEvent, sendListEvent, sendRadioButtonEvent, sendSelectEvent, sendSliderEvent, sendTextInputEvent, sendToBack, setAbsolute, setAcceleration, setAccessibleLabel, setAccessibleRole, setAnimationDirection, setAnimationLoop, setAnimationSpeed, setAutoPadding, setBehavior, setBehaviorSpeed, setBehaviorTarget, setCamera, setCameraBounds, setCameraDeadZone, setCameraPosition, setCameraTarget, setChase, setCheckboxDisplay, setChecked, setClickable, setContent, setCurrentHealth, setCursorBlinkEnabled, setCursorConfig, setCursorMode, setCursorPos, setCustomBehavior, setDetectionRange, setDraggable, setFieldValue, setFirstVisible, setFlee, setFocusEffect, setFocusable, setFocusedState, setFrame, setFriction, setFullUnicode, setHealth, setHighlightedIndex, setHoverable, setHovered, setIdle, setInputBuffer, setInputBufferSelection, setInputBufferText, setInteractive, setInvulnerable, setItems, setKeyable, setKeyboardInput, setLabel, setLabelOffset, setLabelPosition, setLazyLoadCallback, setListDisplay, setListFilter, setListInteractive, setListKeys, setListLoading, setListMouse, setListMultiSelect, setListSearchEnabled, setListSearchQuery, setListSelectedIndex, setLoadingPlaceholder, setMaxHealth, setMaxSpeed, setMouseInput, setPadding, setPaddingAll, setPaddingHV, setParent, setParseTags, setPatrol, setPosition, setPositionKeyword, setPositionPercent, setPressed, setProgress, setProgressBarDisplay, setProgressOrientation, setProgressRange, setRadioButtonDisplay, setRadioSet, setRadioValue, setRegen, setScreenCursor, setScreenCursorShape, setScreenCursorVisible, setScreenFocus, setScreenHover, setScrollbar, setScrollbarChars, setScrollbarColors, setSelectDisplay, setSelectOptions, setSelection, setSelectionMode, setShadow, setShadowBlend, setShadowChar, setShadowColor, setShadowOffset, setShadowOpacity, setShowPercentage, setShowSliderValue, setSliderDisplay, setSliderFromPercentage, setSliderOrientation, setSliderRange, setSliderStep, setSliderToMax, setSliderToMin, setSliderValue, setSpinnerFrames, setSpinnerInterval, setSprite, setSpriteByName, setTabIndex, setText, setTextAlign, setTextInputConfig, setTextInputError, setTextVAlign, setTextWrap, setTimer, setTotalCount, setUserData, setVelocity, setVelocityOptions, setVisibleCount, shouldShowHorizontalScrollbar, shouldShowVerticalScrollbar, sliderStore, snapshotSelection, spriteStore, startDragging, startEditingTextInput, startListSearch, startSelection, startTimer, stopAnimation, stopDragging, stopEntity, stopTimer, submitForm, swapZIndex, textInputStore, toggleCheckbox, toggleCursorMode, toggleMultiSelect, toggleSelect, toggleShadow, triggerListCancel, uncheckCheckbox, unpackModifiers, unregisterAnimation, unregisterFormField, unregisterSprite, updateAnimationEntity, updateBehaviorTimer, updateCameraFollow, updateEntityMovement, updateHealth, updateItem, updateSelection, updateSpinner, updateStateAge, updateTimers, worldToScreen } from './components/index.js';
10
- export { a as BORDER_ASCII, b as BORDER_BOLD, c as BORDER_DASHED, d as BORDER_DASHED_HEAVY, e as BORDER_DOUBLE, f as BORDER_ROUNDED, g as BORDER_SINGLE, h as Border, B as BorderCharset, i as BorderData, j as BorderOptions, k as BorderType, D as DEFAULT_BORDER_BG, l as DEFAULT_BORDER_FG, m as disableAllBorders, n as enableAllBorders, o as getBorder, p as getBorderChar, q as hasBorder, r as hasBorderVisible, s as setBorder, t as setBorderChars } from './border-DGNDfT6T.js';
11
- export { A as AABB, C as Collider, a as ColliderData, b as ColliderOptions, c as ColliderType, d as CollisionPair, D as DEFAULT_LAYER, e as DEFAULT_MASK, E as EMPTY_TILE, f as EmitterAppearance, g as EmitterData, h as EmitterOptions, P as Particle, i as ParticleData, j as ParticleEmitter, k as ParticleOptions, R as RenderedTileCell, T as TileDefinition, l as TileMap, m as TileMapComponentData, n as TileMapData, o as TileMapLayer, p as TileMapOptions, q as TilesetData, r as TilesetOptions, s as TrackedParticle, t as activateEmitter, u as addLayer, v as canLayersCollide, w as collisionPairKey, x as createCollisionPair, y as createTileData, z as fillTileRect, B as fillTiles, F as getCollider, G as getColliderAABB, H as getEmitter, I as getEmitterAppearance, J as getEmitterParticles, K as getLayerCount, L as getParticle, M as getParticleColor, N as getParticleProgress, O as getParticleTrackingStore, Q as getTile, S as getTileData, U as getTileMap, V as getTileMapDataId, W as getTileset, X as getTilesetByName, Y as hasCollider, Z as hasEmitter, _ as hasParticle, $ as hasTileMap, a0 as interpolateColor, a1 as isEmitterActive, a2 as isLayerVisible, a3 as isParticleDead, a4 as isTrigger, a5 as pauseEmitter, a6 as registerTileset, a7 as removeCollider, a8 as removeEmitter, a9 as removeParticle, aa as removeTileData, ab as removeTileMap, ac as renderTileMapArea, ad as resetParticleStore, ae as resetTileMapStore, af as resetTilesetStore, ag as setCollider, ah as setCollisionLayer, ai as setCollisionMask, aj as setEmitter, ak as setEmitterAppearance, al as setEmitterGravity, am as setEmitterRate, an as setEmitterSpeed, ao as setLayerVisible, ap as setParticle, aq as setTile, ar as setTileMap, as as setTrigger, at as testAABBOverlap, au as testCircleAABBOverlap, av as testCircleOverlap, aw as testCollision, ax as tileMapStore, ay as tilesetStore, az as trackParticle, aA as unregisterTileset, aB as untrackParticle } from './tilemap-BirMJdbu.js';
12
- export { A as AUTO_DIMENSION, C as CellAlign, D as DEFAULT_CELL_BG, a as DEFAULT_CELL_FG, b as DEFAULT_HEADER_BG, c as DEFAULT_HEADER_FG, d as DEFAULT_SCROLLBACK_LINES, e as DEFAULT_TABLE_BORDER_BG, f as DEFAULT_TABLE_BORDER_FG, g as DEFAULT_TERMINAL_HEIGHT, h as DEFAULT_TERMINAL_WIDTH, i as DimensionConstraints, j as DimensionValue, k as Dimensions, l as DimensionsData, L as ListAction, m as ListDisplay, n as ListDisplayOptions, o as ListEvent, p as ListItem, q as ListLazyLoadCallback, r as ListScrollCallback, s as ListScrollInfo, t as ListSelectCallback, u as ListState, v as ListStore, S as ScrollInfoSchema, w as ScrollPercentage, x as ScrollPosition, y as Scrollable, z as ScrollableData, B as ScrollableOptions, E as ScrollbarVisibility, T as Table, F as TableCell, G as TableColumn, H as TableData, I as TableDisplay, J as TableDisplayOptions, K as TableRow, M as TableStore, N as TerminalBuffer, O as TerminalBufferConfig, P as TerminalBufferConfigSchema, Q as TerminalCursorShape, R as TerminalState, V as VirtualViewport, U as VirtualViewportData, W as VirtualViewportOptions, X as VirtualViewportOptionsSchema, Y as VirtualViewportScrollInfo, Z as VisibleRange, _ as VisibleRangeSchema, $ as appendRow, a0 as attachTableBehavior, a1 as calculateColumnWidths, a2 as canScroll, a3 as clearData, a4 as clearTableDisplay, a5 as clearTerminal, a6 as clearViewportDirty, a7 as decodePercentage, a8 as detachTableBehavior, a9 as encodePercentage, aa as ensureCursorVisible, ab as getCellPadding, ac as getCellValue, ad as getColCount, ae as getColumn, af as getColumns, ag as getCursorLine, ah as getData, ai as getDataAsStrings, aj as getDataRows, ak as getDimensions, al as getHeaderRowCount, am as getHeaderRows, an as getResolvedHeight, ao as getResolvedWidth, ap as getRow, aq as getRowCount, ar as getScroll, as as getScrollPercentage, at as getScrollable, au as getSelectedLine, av as getTableDisplay, aw as getTerminalBuffer, ax as getTerminalCells, ay as getTerminalState, az as getVirtualScrollInfo, aA as getVirtualViewport, aB as getVisibleRange, aC as hasCellBorders, aD as hasDimensions, aE as hasScrollable, aF as hasTerminalBuffer, aG as hasVirtualViewport, aH as insertRow, aI as invalidateViewport, aJ as isAtBottom, aK as isAtTop, aL as isLineInRenderRange, aM as isLineVisible, aN as isPercentage, aO as isTable, aP as isViewportDirty, aQ as moveViewportCursor, aR as removeRow, aS as removeTerminalBuffer, aT as renderTableLines, aU as renderTerminalToAnsi, aV as resetTableStore, aW as resetTerminal, aX as resetTerminalBufferStore, aY as resizeTerminalBuffer, aZ as scrollBy, a_ as scrollByLines, a$ as scrollByPages, b0 as scrollTerminalDown, b1 as scrollTerminalToBottom, b2 as scrollTerminalToTop, b3 as scrollTerminalUp, b4 as scrollTo, b5 as scrollToBottom, b6 as scrollToLine, b7 as scrollToTop, b8 as scrollViewportToBottom, b9 as scrollViewportToTop, ba as setCellBorders, bb as setCellPadding, bc as setConstraints, bd as setCursorLine, be as setCursorPosition, bf as setData, bg as setDimensions, bh as setHeaderRowCount, bi as setHeaders, bj as setOverscan, bk as setScroll, bl as setScrollSize, bm as setScrollable, bn as setScrollbarVisibility, bo as setSelectedLine, bp as setShrink, bq as setTableDisplay, br as setTerminalBuffer, bs as setTotalLineCount, bt as setViewportStart, bu as setVirtualViewport, bv as setVisibleLineCount, bw as shouldShrink, bx as tableStore, by as writeChar, bz as writeToTerminal } from './virtualViewport-DTSN6jFk.js';
13
- export { D as DEFAULT_BG, a as DEFAULT_FG, R as Renderable, b as RenderableData, S as StyleData, c as StyleOptions, g as getRenderable, d as getStyle, h as hasRenderable, e as hide, i as isDetached, f as isDirty, j as isEffectivelyVisible, k as isVisible, m as markClean, l as markDirty, s as setStyle, n as setVisible, o as show, t as toggle } from './renderable-CwqGwrEV.js';
14
- export { AbsolutePosition, AdoptEvent, ArchetypeDefinition, ArchetypePoolConfig, ArchetypePoolStats, AttachEvent, AutoPaddingData, BUILTIN_PHASE_NAMES, BindingMatch, BorderDockingContext, BorderDockingOptions, BorderEdge, BorderStyleType, BubbleResult, BubbleableEvent, BubbleableEventOptions, CachedPosition, CleanupCallback, ClickableCache, ClipRect, ClipStack, Clipping, ClippingData, ClippingOptions, ComponentDescriptor, ComponentResetFn, ComputedPositionData, ConditionContext, ConnectionFlags, DEFAULT_NAV_BINDINGS, DEFAULT_TEXT_BINDINGS, DEFAULT_WORLD_ADAPTER, DEFAULT_Z_INDEX, DataValue, DeprecatedAPIMetadata, DeprecatedAPIMetadataSchema, DeserializeOptions, DeserializeResult, DestroyEvent, DestroyOptions, DetachEvent, DirtyStats, DirtyTrackerData, DockingBuffer, DockingCell, DynamicValue, EffectConfig, EffectivePaddingData, EffectsConfig, EmitDescendantsOptions, EmitDescendantsOptionsSchema, EmitDescendantsResult, EmitDescendantsResultSchema, EntityDataMap, EntityHandle, EntityPool, HitTestOptions, HitTestResult, INHERITING_PROPERTIES, InitPriority, InitPriorityLevel, InnerDimensions, InnerPosition, JUNCTION_ASCII, JUNCTION_BOLD, JUNCTION_DOUBLE, JUNCTION_SINGLE, Junction, JunctionCharset, KeyBinding, KeyBindingRegistry, KeyBindingSchema, KeyBindingsArraySchema, KeyLockFilter, KeyLockOptions, KeyLockState, LazyInitFn, LazyValue, LegacyDirtyRect, LifecycleEvent, LifecycleEventMap, LifecycleEventName, MAX_Z_INDEX, MIN_Z_INDEX, NON_INHERITING_PROPERTIES, Overflow, OverflowValue, PackedQueryAdapter, PackedQueryAdapterConfig, PackedQueryAdapterConfigSchema, PackedQueryRegistration, PackedQueryRegistrationSchema, ParsedKey, PerformanceIssueMetadata, PerformanceIssueMetadataSchema, PhaseId, PhaseManager, Plugin, PluginComponent, PluginComponentSchema, PluginInfo, PluginRegistrationResult, PluginRegistry, PluginSchema, PluginSystem, PluginSystemSchema, PositionValue, PositionValueSchema, RecyclingSystemStats, RelativePosition, RemoveEvent, ReparentEvent, ResolvedEffect, SERIALIZATION_VERSION, Scene, SceneManager, SceneTransition, SerializeOptions, SerializedComponentData, SerializedEntity, SerializedWorld, SetPositionCacheOptions, ShrinkBox, StartupReport, SubsystemEntry, TerminalTooSmallMetadata, TerminalTooSmallMetadataSchema, TotalPadding, TransitionState, UnsupportedCapabilityMetadata, UnsupportedCapabilityMetadataSchema, WarningEmitter, WarningEvent, WarningEventMap, WarningEventSchema, WarningMetadata, WarningType, WarningTypeValue, WorldAdapter, WorldAdapterType, ZOrder, acquireEntity, addComponent, addEntity, addIgnoredKeys, allocateEntity, applyCustomEffect, applyDisabledEffect, applyFocusEffect, applyHoverEffect, applyJunctions, applyKeyLockOptions, applyPressEffect, applyShrink, areAllKeysLocked, assertEntityAlive, bubbleEvent, calculateShrinkSize, centerPosition, clampPosition, clampToClipRect, clearAllArchetypePools, clearAllEffectConfigs, clearAllEntityData, clearAllPositionCaches, clearAllStoredStyles, clearArchetypePool, clearCapabilityCache, clearCleanupCallbacks, clearDestroyQueue, clearDockingContext, clearEffectState, clearEffects, clearEntityData, clearIgnoredKeys, clearLifecycleEventBuses, clearPlugins, clearSerializableRegistry, clearStoredStyle, clearStyleCache, clearWorldAdapter, cloneSnapshot, computeInheritedStyle, createBorderDockingContext, createBoxEntity, createBubbleableEvent, createButtonEntity, createCheckboxEntity, createClickableCache, createClipRect, createClipStack, createDefaultPackedQueryAdapter, createEntityPool, createEntityValidationError, createFadeTransition, createFormEntity, createInfiniteClipRect, createInputEntity, createKeyBindingRegistry, createKeyLockScope, createKeyLockState, createListEntity, createPackedQueryAdapter, createPhaseManager, createPluginRegistry, createProgressBarEntity, createRadioButtonEntity, createRadioSetEntity, createSceneManager, createSceneSystem, createScreenEntity, createSelectEntity, createSlideTransition, createSliderEntity, createTextEntity, createTextareaEntity, createTextboxEntity, createWarningEmitter, createWorld, createWorldAdapter, deallocateEntity, defaultPhaseManager, deleteEntityData, deserializeWorld, deserializeWorldFromJSON, destroyAllChildren, destroyEntity, destroyWorld, detectAllJunctions, detectBorderStyle, detectCapabilities, detectJunctions, doesPropertyInherit, emitAdopt, emitAttach, emitDeprecatedAPIWarning, emitDescendants, emitDestroy, emitDetach, emitPerformanceWarning, emitRemove, emitReparent, emitTerminalTooSmallWarning, emitUnsupportedCapabilityWarning, entityExists, evaluateCondition, filterClickable, filterDirty, filterFocusable, filterVisible, filterVisibleDirty, findPropertySource, flushDestroyQueue, forceFullRedrawFlag, formatKey, formatKeyEvent, formatStartupReport, getAbsoluteEdges, getAbsolutePosition, getAllClickablesAt, getAllEntities, getAllEntityData, getAllHoverablesAt, getArchetypePoolStats, getAutoPadding, getBindingForAction, getBindingsForKey, getCacheGeneration, getCachedInnerHeight, getCachedInnerWidth, getChildEntities, getChildrenByZIndex, getClickableAt, getClickableCount, getClickableEntities, getClipRect, getClipRectHeight, getClipRectToAncestor, getClipRectWidth, getClipping, getComputedEffectStyle, getComputedPosition, getComputedStyles, getConnectionFlags, getCurrentClip, getDefaultStyle, getDescendantEntities, getDestroyQueueSize, getDirtyEntities, getDirtyRegionsInViewport, getDirtyStats, getEdgeCount, getEdgesAt, getEffectState, getEffectivePadding, getEffects, getEntityCount, getEntityData, getEntityDataCount, getEntityDataKeys, getEntityPoolCapacity, getGrabbedKeys, getHoverableAt, getIgnoredKeys, getInheritedProperty, getInnerDimensions, getInnerPosition, getJunctionChar, getJunctionCharset, getJunctionRenderData, getKeyLockFilter, getKeyLockState, getLifecycleEventBus, getLocalStyle, getLocalZ, getOriginalStyle, getOverflow, getPluginCount, getPlugins, getPositionCache, getRecyclingStats, getRegisteredComponents, getRelativePosition, getRootEntities, getSerializable, getShrinkBox, getShrinkHeight, getShrinkWidth, getStartupReport, getStoredStyle, getTotalEffectivePadding, getTotalPadding, getWorldAdapter, getZIndex, grabKeys, hasAnyEffectApplied, hasAnyEntityData, hasAutoPadding, hasClickableAt, hasClipping, hasComponent, hasDirtyEntities, hasDisabledEffectApplied, hasEntityAutoPadding, hasEntityData, hasFocusEffectApplied, hasHoverEffectApplied, hasHoverableAt, hasPlugin, hasPressEffectApplied, hasStoredStyle, hasValidPositionCache, hasValidStyleCache, hasZOrder, hitTest, hitTestAll, hitTestDetailed, initSubsystem, initSubsystemsUpTo, intersectClipRects, invalidateAllStyleCaches, invalidateClickableCache, invalidatePositionCache, invalidatePositionCacheTree, invalidateStyleCache, isBorderChar, isBuiltinPhase, isCacheDirty, isClipRectEmpty, isDefaultColor, isEntityAlive, isEntityDirty, isEntityValid, isEntityValidationError, isJunctionChar, isKeyGrabbed, isKeyIgnored, isKeyLocked, isKeywordPosition, isMarkedForDestruction, isPackedQueryAdapter, isPercentagePosition, isPointInCachedBounds, isPointInEntity, isPointInInnerBounds, isPointVisible, isRectVisible, lazy, legacyClearDirtyTracking, legacyCreateDirtyTracker, legacyGetDirtyRegions, legacyIsCellDirty, legacyMarkCellDirty, legacyMarkEntityDirty, legacyMarkRegionDirty, legacyRemoveEntityFromTracking, listBindings, lockAllKeys, markAllEntitiesDirty, matchEvent, matchesKey, mergeStyles, moveDown, moveUp, needsFullRedraw, normalizeZIndices, onAdopt, onAttach, onDestroy, onDetach, onRemove, onReparent, parseKeyString, parsePosition, parsePositionWithNegative, percentOffsetPosition, percentPosition, popClipRect, preallocateEntities, precomputeStyles, pushClipRect, query, queryBorder, queryContent, queryFocusable, queryHierarchy, queryInteractive, queryPadding, queryRenderable, queryScrollable, regionIntersectsDirty, registerArchetype, registerBinding, registerBindings, registerCleanupCallback, registerComponent, registerComponentName, registerEdge, registerPlugin, registerRectBorder, registerSerializable, registerSubsystem, releaseAllGrabbedKeys, releaseEntity, releaseKeys, removeAllEffects, removeComponent, removeDisabledEffect, removeEntity, removeFocusEffect, removeHoverEffect, removeIgnoredKeys, removeLifecycleEventBus, removePressEffect, resetDisposalState, resetEntityPool, resetKeyLockState, resetSubsystems, resetWorld, resetZOrder, resizeDirtyTracker, resizeDockingContext, resolveEffectConfig, resolvePosition, resolvePositionClamped, resolveStyle, serializeWorld, serializeWorldToJSON, setAbsoluteBottom, setAbsoluteEdges, setAbsoluteLeft, setAbsolutePosition, setAbsoluteRight, setAbsoluteTop, setBack, setEffects, setEntityData, setEntityDataBulk, setFront, setIgnoredKeys, setKeyLockFilter, setLocalZ, setOverflow, setPositionCache, setRelativePosition, setWorldAdapter, setZIndex, shouldBlockKeyEvent, shouldClipContent, sortByDepth, sortByTabIndex, sortByZIndex, syncEffects, syncWorldAdapter, unlockAllKeys, unregisterArchetype, unregisterBinding, unregisterPlugin, unregisterSerializable, updateCachedScrollBase, updateClickableCache, updateEntityBounds, updateEntityData, validateEntity, withStore } from './core/index.js';
15
- export { D as DirtyTracker, c as clearDirtyTracking, a as createDirtyTracker, f as forceFullRedraw, g as getDirtyRegions, b as getDirtyTrackingStats, h as hasDirtyRegions, i as isCellDirty, m as markCellDirty, d as markEntityDirty, e as markRegionDirty, r as removeEntityFromTracking } from './dirtyTracking-C4v8MmM9.js';
16
- export { A as ActionBinding, h as ActionBindingSchema, i as ActionCallback, j as ActionPresets, k as ActionState, B as BoxConfig, l as BoxConfigSchema, b as ButtonConfig, m as ButtonConfigSchema, C as CheckboxConfig, n as CheckboxConfigSchema, F as FormConfig, o as FormConfigSchema, p as InputActionManager, q as InputBufferStats, c as InputConfig, r as InputConfigSchema, I as InputEventBufferData, s as InputEventBufferOptions, t as InputLatencyStats, a as InputState, u as InputStateConfig, v as InputStateStats, K as KeyState, L as ListConfig, w as ListConfigSchema, M as MouseButtonState, x as MouseState, P as ProgressBarConfig, y as ProgressBarConfigSchema, R as RadioButtonConfig, z as RadioButtonConfigSchema, f as RadioSetConfig, D as RadioSetConfigSchema, E as ScreenConfig, G as ScreenConfigSchema, S as SelectConfig, H as SelectConfigSchema, J as SerializedBindings, N as SerializedBindingsSchema, g as SliderConfig, O as SliderConfigSchema, T as TextConfig, Q as TextConfigSchema, d as TextareaConfig, U as TextareaConfigSchema, e as TextboxConfig, V as TextboxConfigSchema, W as TimestampedInputEvent, X as TimestampedKeyEvent, Y as TimestampedMouseEvent, Z as beginFrame, _ as createInputActionManager, $ as createInputEventBuffer, a0 as createInputState, a1 as drainAllEvents, a2 as drainKeys, a3 as drainMouse, a4 as endFrame, a5 as getLatencyStats, a6 as getMovementDirection, a7 as getPendingCount, a8 as getPendingKeyCount, a9 as getPendingMouseCount, aa as globalInputBuffer, ab as hasPendingEvents, ac as isAllKeysDown, ad as isAnyKeyDown, ae as isAnyKeyPressed, af as isLatencyAcceptable, ag as isProcessingTimeAcceptable, ah as peekEvents, ai as peekKeys, aj as peekMouse, ak as pushKeyEvent, al as pushMouseEvent, am as recordLatency, an as recordLatencyBatch, ao as resetLatencyStats, ap as resetStats } from './inputActions-Fyw14_Gm.js';
17
- export { E as EntityEventBusStore, a as EventBus, b as EventHandler, c as EventMap, G as GetEntityEventBus, S as ScreenEventMap, U as UIEventMap, d as createEntityEventBusStore, e as createEventBus } from './events-9ForpTfM.js';
18
- export { F as FixedTimestepConfig, a as FixedUpdateHook, G as GameLoop, b as GameLoopHooks, c as GameLoopOptions, I as InterpolateHook, d as LoopHook, e as LoopState, L as LoopStats, f as createGameLoop, i as isLoopPaused, g as isLoopRunning } from './gameLoop-CSTb7e0L.js';
19
- export { A as AdaptiveFrameBudgetConfig, a as AdaptiveFrameBudgetStatus, F as FrameTelemetry, P as PhaseTimingData, S as Scheduler, T as TelemetryConfig, c as createScheduler, g as getDeltaTime } from './scheduler-DeeZleia.js';
20
- export { a as PackedHandle, P as PackedStore, b as addToStore, c as clearStore, d as createPackedStore, f as forEachInStore, g as getFromStore, e as getStoreCapacity, h as getStoreData, i as getStoreSize, j as isValidHandle, m as mapStore, r as removeFromStore, s as setInStore } from './packedStore-BgvnEdE7.js';
21
- import { W as World, E as Entity } from './types-CPB4CpbH.js';
22
- export { L as LoopPhase, S as System, U as Unsubscribe } from './types-CPB4CpbH.js';
23
- export { ActivePairsView, BehaviorSystemConfig, BudgetAlert, CachedBounds, CellCoord, CollisionEventData, CollisionEventMap, CollisionSystemState, ComputedLayout, ComputedLayoutData, Constraint, CullingResult, DEFAULT_CELL_SIZE, DirtyRect, DragConstraints, DragEndEvent, DragEventMap, DragMoveEvent, DragStartEvent, DragState, DragVerifyCallback, DropEvent, EntityProvider, FocusEventData, FocusEventMap, FocusEventType, FrameBudgetConfig, FrameBudgetManager, FrameStats, InputEventType, InputSystemState, LineRenderConfig, LineRenderConfigSchema, MoveResult, MovementApplier, OutputState, PanelConstraints, PanelMoveConfig, PanelMoveState, ParticleSystemConfig, PoolStats, PoolTask, PositionCache, PositionResolver, PrevBounds, QueuedInputEvent, QueuedKeyEvent, QueuedMouseEvent, Rect, RenderContext, ResizeHandle, ScrollAnimationState, ScrollEvent, ScrollPhysicsConfig, SpatialHashConfig, SpatialHashGrid, SpatialHashStats, SpatialHashSystemState, Spring, SpringConfig, SyncHandler, SystemTiming, TaskPriority, TaskResult, TileMapBuffer, TileMapCamera, TileMapRendererConfig, Viewport, VirtualizedRenderContext, WorkerPoolConfig, WorkerPoolState, ageParticle, animationSystem, applyScrollImpulse, areColliding, beginMove, beginResize, blurAll, burstParticles, cameraSystem, cancelAllOfType, cancelMoveOrResize, cancelTask, captureMouseTo, cleanup, cleanupEntityResources, cleanupVirtualizedRenderSystem, clearAllScrollStates, clearDragConstraints, clearEntityInput, clearEventQueue, clearFocusStack, clearLineRenderConfig, clearOutputBuffer, clearOutputStream, clearPositionCache, clearRenderBuffer, clearScreen, clearSpatialHash, clearTileMapRenderBuffer, clearVirtualizedRenderBuffer, collisionSystem, computeLayoutNow, createAnimationSystem, createBehaviorSystem, createCameraSystem, createCollisionSystem, createDragSystem, createEmptyBuffer, createFocusSystem, createFrameBudgetManager, createIncrementalSpatialSystem, createInputSystem, createLayoutSystem, createMovementSystem, createOutputState, createOutputSystem, createPanelConstraints, createPanelMoveConfig, createPanelMoveState, createParticleSystem, createPositionCache, createRenderSystem, createSmoothScrollSystem, createSpatialHash, createSpatialHashSystem, createSpatialHashSystemState, createSpring, createStateMachineSystem, createTilemapRenderSystem, createVirtualizedRenderSystem, createVisibilityCullingSystem, createWorkerPool, cursorHome, destroyFrameBudgetManager, destroyWorkerPool, detectCollisions, detectResizeHandle, endMoveOrResize, endUserScroll, enterAlternateScreen, exportFrameBudgetMetrics, fixed, focusEntity, focusFirst, focusLast, focusOffset, focusPop, focusPush, focusSystem, generateOutput, getActiveCollisionCount, getActiveCollisions, getActiveTriggerCount, getActiveTriggers, getCollidingEntities, getCollisionEventBus, getComputedBounds, getComputedLayout, getDragConstraints, getDragVerifyCallback, getEntitiesAtPoint, getEntitiesInCell, getEventQueue, getFocusEventBus, getFocusStackDepth, getFocusableEntities, getFocused, getFrameBudgetStats, getInputEventBus, getInteractiveEntityAt, getLineRenderConfig, getLineStore, getMouseCaptureEntity, getNearbyEntities, getOutputBuffer, getOutputState, getOutputStream, getRenderBuffer, getScrollPosition, getScrollState, getSpatialDirtyCount, getSpatialHashGrid, getSpatialHashStats, getSpatialHashSystemState, getSpringTarget, getStateAgeStore, getSystemStateAge, getTileMapRenderBuffer, getTileMapRendererConfig, getTriggerZones, getViewportBounds, getVirtualizedRenderBuffer, getWorkerPoolState, hasAnimationSystem, hasComputedLayout, hasMovementSystem, hideCursor, incrementalSpatialUpdate, inputState, inputSystem, insertEntity, invalidateAllLayouts, invalidateLayout, isColliding, isInTrigger, isMouseCaptured, isOcclusionCullingEnabled, isScrolling, isSpringActive, keyboardMove, keyboardResize, killParticle, layoutHorizontal, layoutSystem, layoutVertical, leaveAlternateScreen, markAllDirty, markSpatialDirty, max, mergeDirtyRects, min, moveParticle, movementSystem, onBudgetAlert, outputSystem, peekFocusStack, percentage, performCulling, pointInEntity, profiledSystem, queryAnimation, queryArea, queryCameras, queryColliders, queryInputReceivers, queryMovement, queryStateMachine, queryVisibleEntities, queueKeyEvent, queueMouseEvent, ratio, rebuildSpatialHash, recordFrameBudgetSystemTime, recordFrameTime, recordPhaseTime, registerAnimationSystem, registerCameraSystem, registerCollisionSystem, registerInputSystem, registerLineStore, registerMovementSystem, registerStateMachineSystem, registerTaskHandler, releaseMouse, removeEntityFromGrid, removeFromCache, removeScrollState, renderAllTileMaps, renderBackground, renderBorder, renderContent, renderRect, renderScrollbar, renderSystem, renderTileMapToBuffer, resetAttributes, resetCollisionState, resetDragStores, resetFocusEventBus, resetFrameBudget, resetInputState, resetOutputState, resetSpatialHashState, resetStateAge, resetTileMapRenderer, restoreFocus, rewindFocus, saveFocus, setDragConstraints, setDragVerifyCallback, setLineRenderConfig, setOcclusionCulling, setOutputBuffer, setOutputStream, setRenderBuffer, setScrollImmediate, setSpatialDirtyThreshold, setSpatialHashGrid, setSpringTarget, setTileMapRendererConfig, setViewportBounds, setVirtualizedRenderBuffer, showCursor, smoothScrollTo, spatialHashSystem, spawnParticle, springBouncy, springSmooth, springSnappy, springSystem, startUserScroll, stateMachineSystem, submitTask, tilemapRenderSystem, unregisterLineStore, updateAnimations, updateCameras, updateEntityIfMoved, updateLineStore, updateMove, updateMovements, updateResize, updateScrollPhysics, updateStateAges, virtualizedRenderSystem, worldToCell, writeRaw } from './systems/index.js';
24
- export { AnsiBackendConfig, ArtificialCursor, ArtificialCursorOptions, ArtificialCursorShapeType, BAR_CURSOR_CHAR, BEL, BLOCK_CURSOR_CHAR, BasicColor, BooleanCapability, BoxDrawingSet, CSI, CapabilityNegotiator, CharCellSizeResponse, CharacterSetId, CharacterSetRegister, CleanupHandler, CleanupManager, ClipboardManager, ClipboardManagerConfig, ClipboardProgress, ClipboardResult, ClipboardSelection, ClipboardSelectionType, Color, Color256, ColorSupport, CursorManager, CursorPosition, CursorPositionResponse, CursorPositionSchema, CursorShape, CursorShapeType, DCS, DEC_SPECIAL_GRAPHICS, DEFAULT_CLIPBOARD_MAX_SIZE, DEFAULT_INPUT_SANITIZE_OPTIONS, DEFAULT_QUERY_TIMEOUT, DEFAULT_SANITIZE_OPTIONS, DebugLogger, DebugLoggerConfig, DeviceStatusResponse, ESC, EditorOptions, ExecOptions, ExecResult, ExitHandler, ExitInfo, ExitReason, FocusHandler, FocusTrackerState, FocusTrackingEventMap, GpmButton, GpmClient, GpmClientConfig, GpmClientConfigSchema, GpmClientState, GpmEventType, GpmRawEvent, GraphicsProtocol, GraphicsProtocolValue, HIDE_TERMINAL_CURSOR, HYPERLINK_ALLOWED_PROTOCOLS, HyperlinkOptions, HyperlinkProtocol, IconLabelResponse, InputControlEventData, InputControlEventMap, InputControlOptions, InputControlState, InputHandler, InputHandlerConfig, InputHandlerConfigSchema, InputSanitizeOptions, InputSanitizeOptionsSchema, KeyHandler, KittyBackendConfig, KittyConfig, KittyEventType, KittyFlags, KittyKeyEvent, KittyKeyboardLevel, KittyKeyboardLevelValue, KittyModifiers, KittyProtocolLevel, KittyProtocolState, LocatorButton, LocatorButtonValue, LocatorEvent, LocatorEventValue, LocatorPositionResponse, LogLevel, LogLevelName, LogLevelValue, MAX_QUERY_TIMEOUT, MIN_QUERY_TIMEOUT, MediaCopyMode, MediaCopyModeValue, MouseHandler, MouseMode, MouseModeValue, MouseTrackingMode, NegotiationTiming, NegotiationTimingValue, NegotiatorConfig, NegotiatorConfigSchema, NumberCapability, OSC, OutputBuffer, OutputBufferOptions, ParsedResponse, PasteConfig, PasteConfigSchema, PasteEvent, PasteEventSchema, PasteHandler, PasteParseResult, PasteProcessResult, PasteState, PrimaryDAResponse, RGBColor, RenderBackend, RenderBackendCapabilities, RenderBackendPreference, RenderBackendType, RenderCell, RenderedCursor, ResizeCallback, ResizeEventData, ResizeEventMap, ResizeHandler, ResizeHandlerState, ResponseType, ResponseTypeValue, SGR, SHOW_TERMINAL_CURSOR, ST, SafeStringBuilder, SanitizeOptions, SanitizeOptionsSchema, SanitizeResult, ScreenBuffer, ScreenSizeResponse, SecondaryDAResponse, SpawnOptions, StringCapability, SuspendManager, SuspendManagerOptions, SuspendState, SyncOutputOptions, SynchronizedOutput, TerminalCapabilities, TerminalInfo, TerminalResponse, TerminalStateDump, TerminfoData, TextAreaSizeResponse, ThrottledResizeConfig, ThrottledResizeState, Tput, TputConfig, UNDERLINE_CURSOR_CHAR, UNICODE_TO_ASCII, UnknownResponse, WindowPositionResponse, WindowSizePixelsResponse, WindowStateResponse, WindowTitleResponse, activateProtocol, addCursor, areKeysEnabled, boxDrawing, bracketedPaste, buildGpmConnectPacket, capabilityQuery, categorizeEscapeSequences, charset, chunkText, clearLog, clipboard, configureDebugLogger, containsEscapeSequences, createAnsiBackend, createArtificialCursor, createCapabilityNegotiator, createClipboardManager, createCursorCell, createCursorManager, createDebugLogger, createFocusTracker, createGpmClient, createInputControl, createInputHandler, createKittyConfig, createKittyProtocolState, createKittyRenderBackend, createPasteState, createRenderBackendByType, createResizeHandler, createSafeStringBuilder, createSuspendManager, createSynchronizedOutput, createThrottledResize, createTput, cursor, deactivateProtocol, debounceResize, debugLoggers, destroyInputControl, detectRenderBackend, detectVirtualConsole, disableBracketedPaste, disableFocusTracking, disableInput, disableKeys, disableMouse, disableResizeHandling, disableWorldInput, disableWorldKeys, disableWorldMouse, dumpRaw, dumpTerminalState, enableBracketedPaste, enableFocusTracking, enableInput, enableKeys, enableMouse, enableResizeHandling, enableWorldInput, enableWorldKeys, enableWorldMouse, encodeKittyImage, exec, execSync, extractEscapeSequences, extractPasteContent, findPasteEnd, generatePopSequence, generatePushSequence, generateQuerySequence, getAvailableBackends, getColorDepth, getCursorAt, getDefaultEditor, getDefaultNegotiator, getDefaultTput, getDefaultXtermData, getFocusTracker, getInputControl, getInputControlEventBus, getLogFile, getMouseMode, getPrimaryCursor, getResizeEventBus, getResizeHandler, getTerminalCapabilities, getTerminalFocusEventBus, getTerminalInfo, getTerminalVersion, getVisibleCursors, gpmButtonToMouseButton, gpmEventToMouseEvent, gpmTypeToMouseAction, hasCapability, hasControlChars, hasNullBytes, hideTerminalCursor, hyperlink, isAlacritty, isBracketedPasteSupported, isCharCellSize, isColorSupported, isCursorPosition, isCursorVisible, isDebugLoggingEnabled, isDeviceStatus, isGpmAvailable, isHyperlinkAllowed, isITerm2, isIconLabel, isInputEnabled, isKitty, isKittyKeyEvent, isKittyResponse, isKittySupported, isLocatorPosition, isMouseEnabled, isMouseSupported, isPasteStart, isPrimaryDA, isSafeForTerminal, isScreen, isScreenSize, isSecondaryDA, isSyncOutputSupported, isTerminalFocused, isTextAreaSize, isTmux, isTrueColorSupported, isUnicodeSupported, isUnknown, isVSCode, isVTE, isValidUtf8String, isWindowPosition, isWindowSizePixels, isWindowState, isWindowTitle, isWindowsTerminal, isXterm, kittyKeyToName, locator, mediaCopy, mightBePasteStart, mouse, moveCursorBy, moveCursorTo, onExit, parseGpmEventBuffer, parseGpmModifiers, parseKittyKeyEvent, parseKittyQueryResponse, parseResponse, processPasteBuffer, processUtils, readEditor, rectangle, registerForCleanup, removeCursor, renderCursor, replaceInvalidUtf16, resetCursorBlink, resetDefaultNegotiator, resetDefaultTput, resetInputControlEventBus, resetResizeEventBus, resetTerminalFocusEventBus, restrictToAscii, sanitizeForTerminal, sanitizePastedText, sanitizeTextInput, sanitizeTextInputDetailed, screen, setCursorBlink, setCursorColors, setCursorShape, setCursorVisible, setMouseMode, setupSigwinchHandler, showTerminalCursor, spawn, streamPaste, stripC1Controls, stripControlChars, stripNullBytes, style, suspend, suspendSequences, sync, throttleResize, title, tmux, triggerFocusEvent, triggerResize, truncatePaste, unregisterFromCleanup, updateAllCursorBlinks, updateCursorBlink, updateCursorInManager, updateProtocolState, windowOps } from './terminal/index.js';
25
- export { A as Attribute, a as AttributeSchema, C as CodeAttrOptions, b as ColorType, D as DEFAULT_ATTRIBUTE, I as InternalColor, O as OutputColorDepth, T as TextStyle, c as applySgrCodes, d as attrCode, e as attrToSgrCodes, f as attributesEqual, g as cloneAttribute, h as codeAttr, i as createAttribute, j as extractSgrCodes, k as hasStyle, p as packRgb, l as parseSgrString, s as sgrReset, m as stripAnsi, u as unpackRgb, v as visibleLength } from './parser-iMHmQuUh.js';
26
- export { b as KeyEventSchema, K as KeyName, a as ParsedKeyEvent, i as isMouseSequence, p as parseKeyBuffer, c as parseKeySequence } from './keyParser-m7fWto6g.js';
27
- export { F as FocusEvent, b as FocusEventSchema, c as MouseAction, a as MouseButton, d as MouseEventSchema, e as MouseProtocol, P as ParseMouseResult, M as ParsedMouseEvent, i as isMouseBuffer, p as parseMouseSequence } from './mouseParser-B7p5ow7K.js';
28
- export { K as KeyEvent, M as MouseEvent, P as Program, a as ProgramConfig, b as ProgramConfigSchema, R as ResizeEvent, c as createProgram } from './program-BZaKqDKH.js';
29
- export { A as Attr, a as AttrFlags, D as CELL_DEFAULT_BG, b as CELL_DEFAULT_FG, C as Cell, c as CellChange, d as DEFAULT_CHAR, S as ScreenBufferData, e as cellIndex, f as cellsEqual, g as clearBuffer, h as cloneCell, i as copyRegion, j as createCell, k as createScreenBuffer, l as diffBuffers, m as fillRect, n as getCell, o as hasAttr, p as isInBounds, r as resizeBuffer, s as setCell, q as setChar, w as withAttr, t as withoutAttr, u as writeString } from './cell-DwIu2ryP.js';
30
- export { D as DoubleBufferData, c as createDoubleBuffer } from './doubleBuffer-CKQFmlPN.js';
31
- export { AMBIGUOUS_RANGES, Alignment, AlignmentSchema, BOX_ASCII, BOX_BOLD, BOX_DASHED, BOX_DOUBLE, BOX_ROUNDED, BOX_SINGLE, BlockData, BlockType, BlockquoteData, BoxChars, COMBINING_RANGES, COMBINING_SET, CellBuffer, CoalescingConfig, CoalescingState, CodeData, CodePointRange, ContentChunk, ContentSource, CursorNavConfig, DEFAULT_BATCH_SIZE, DEFAULT_COLLAPSE_THRESHOLD, DEFAULT_CONTEXT, DEFAULT_HIGHLIGHT_BATCH, DEFAULT_PARSE_BATCH, DEFAULT_SEARCH_BATCH, DEFAULT_TIMEOUT, DiffCache, DiffChunk, DiffConfig, DiffLine, DiffResult, DiffType, DirtyRegion, DropUnicodeOptions, EMOJI_WIDE_RANGES, EMPTY_STATE, FULLWIDTH_RANGES, FastWrapOptions, FlushResult, FoldConfig, FoldRegion, FoldStats, FuzzyMatch, FuzzyOptions, FuzzyOptionsSchema, FuzzySearchOptions, GRAMMARS, GRAMMAR_GO, GRAMMAR_JAVASCRIPT, GRAMMAR_JSON, GRAMMAR_PLAINTEXT, GRAMMAR_PYTHON, GRAMMAR_RUST, GRAMMAR_SHELL, Grammar, GraphemeSliceResult, GutterConfig, GutterLine, GutterResult, HIGH_SURROGATE_END, HIGH_SURROGATE_START, HeadingData, HighlightCache, HighlightResult, HighlightStats, HrData, HtmlData, InlineElement, InlineType, KnownBadSequence, LEAF_MAX_SIZE, LEAF_MIN_SIZE, LOW_SURROGATE_END, LOW_SURROGATE_START, LazyContentConfig, LazyContentState, LineEntry, LineIndex, LineInfo, LineNumberMode, LinePosition, LineState, LineStyle, ListData, MAX_DEPTH, MAX_PARAGRAPH_CHUNK, MarkdownBlock, MarkdownCache, MarkdownParseResult, MarkdownStats, NavigationResult, ParagraphData, ParsedContent, ParsedContentSchema, ProgressiveSearchResult, ProgressiveWrapResult, RenderBoxOptions, RenderedLine, Rope, RopeLeaf, RopeNode, RopeStats, SearchCache, SearchMatch, SearchOptions, SearchResult, SideBySideLine, SliceResult, StyleAttr, StyleInput, TerminalWidthProfile, TerminalWidthProfileSchema, TextChange, TextSegment, TextSegmentSchema, Token, TokenType, ViewportState, VisibleDiff, VisibleLine, VisibleMarkdown, WIDE_RANGES, WORD_BOUNDARY_AFTER, WORD_BOUNDARY_BEFORE, WidthOptions, WidthOverride, WidthOverrideSchema, WidthTestCase, WidthTestCategory, WidthTestFailure, WidthTestResult, WrapCache, WrapCacheStats, WrapEntry, WrapOptions, ZERO_WIDTH_RANGES, addFoldRegion, alignLine, append, attrToTag, attrsToStyle, attrsToTags, boyerMooreHorspool, bufferToString, buildLineIndex, buildLineIndexFromLengths, buildTestCorpus, centerByWidth, charAt, charAtCodePoint, charWidth, charWidthAt, characters, charsetToBoxChars, clampCursor, cleanTags, clearDiffCache, clearHighlightCache, clearLazyContent, clearMarkdownCache, clearSearchCache, clearWidthOverrides, clearWrapCache, codePointAt, codePointLength, codePointToSurrogatePair, codePointWidth, codePoints, collapseChunk, collapseUnchanged, colorToTag, columnAtIndex, computeDiff, computeDiffCached, computeDigitWidth, computeGutterWidth, computeVisibleGutter, continueHighlight, continueWrap, createArraySource, createCellBuffer, createCoalescer, createCursor, createDiffCache, createEmptyRope, createFoldState, createGutterConfig, createHighlightCache, createLazyContent, createMarkdownCache, createNavConfig, createRope, createSearchCache, createTaggedText, createViewport, createWrapCache, decodeStyleAttr, deleteChange, deleteRange, destroyCoalescer, detectLanguage, detectLanguageFromContent, dropUnicode, encodeStyleAttr, encoding, escapeTags, evictChunks, expandAll, expandChunk, filterByCategory, findAllFiles, findFile, findNearestMatch, flushChanges, foldAll, foldAtDepth, foldRegion, formatDate, formatLineNumber, formatTestReport, fromCodePoint, fuzzyFilter, fuzzyMatch, fuzzySearch, fuzzySearchBy, fuzzyTest, generateCloseTags, generateTags, getAllFoldRegions, getCategories, getCharWidth, getCoalescingState, getCombiningCharCount, getDiffStats, getFoldAtLine, getFoldStats, getGrammarByName, getHighlightStats, getKnownBadSequences, getLazyContentState, getLazyLines, getLength, getLine, getLineCount, getLineEnd, getLineForIndex, getLineStart, getLines, getMarkdownLineCount, getMarkdownStats, getMatchAt, getMatchStatus, getNewlineCount, getNextMatch, getOverrideCount, getOverrideWidth, getPreviousMatch, getSideBySideView, getStats, getTotalLineCount, getVisibleDiffLines, getVisibleFoldLines, getVisibleMarkdown, getVisibleMatches, getVisibleWidth, getWrapCacheStats, goToEnd, goToLine, goToStart, graphemeAt, graphemeClusters, graphemeCount, graphemeWidth, groupBy, gutterWidthChanged, hasGraphemeSegmenter, hasTags, hasWideChars, hasZeroWidthChars, highlightMatch, highlightVisibleFirst, highlightWithCache, indexAtColumn, insert, insertChange, installWidthOverrides, invalidateAll, invalidateAllLines, invalidateLine, invalidateLines, invalidateMarkdownLines, invalidateParagraph, invalidateRange, isAmbiguousChar, isAstral, isBMP, isCombiningChar, isCombiningCharBinarySearch, isEmpty, isHighSurrogate, isLowSurrogate, isRangeLoaded, isSurrogate, isSurrogateCode, isValidCodePoint, isWideChar, isZeroWidthChar, lineForOffset, lineToPosition, measureWidthWithOverrides, merge, mergeSegments, moveCursorDown, moveCursorLeft, moveCursorRight, moveCursorUp, normalizeNFC, normalizeNFD, normalizeNFKC, normalizeNFKD, offsetForLine, originalToVisibleLine, padEndByWidth, padHeight, padStartByWidth, pageDown, pageUp, parseInline, parseMarkdown, parseMarkdownCached, parseTags, parseUnifiedDiff, parsedToTaggedText, partition, positionToLine, positionToLineColumn, prefetchAround, queueChange, removeFoldRegion, renderBlock, renderBox, renderGutterBlock, renderHLine, renderMarkdown, renderText, renderVLine, replaceChange, replaceRange, resizeWrapCache, reverseGraphemes, runWidthTests, sattr, sattrAddFlag, sattrCopy, sattrEmpty, sattrEqual, sattrFromStyleData, sattrHasFlag, sattrInvert, sattrMerge, sattrRemoveFlag, search, searchBatch, searchLiteral, searchRegex, searchReverse, searchWithCache, segmentToTaggedText, setGrammar, shallowMerge, sliceByWidth, sliceByWidthGrapheme, sliceCodePoints, sliceGraphemes, sortBy, sortByIndex, sortByName, sortByPriority, strWidth, stringWidth, stringWidthGrapheme, stripCombining, stripControl, stripTags, stripZeroWidth, styleToAttrs, substring, surrogatePairToCodePoint, taggedLength, toAscii, toCodePoints, toGraphemes, toUnifiedDiff, toggleChunk, toggleFold, tokenizeLine, truncate, truncateByWidth, truncateWithEllipsis, truncateWithEllipsisGrapheme, unfoldAll, unfoldRegion, unique, uniqueBy, unixTimestamp, unixTimestampMs, updateSearchQuery, updateTotalLines, verify, visibleToOriginalLine, wordWrap, wrapText, wrapVisibleFirst, wrapWithCache, wrapWithTags } from './utils/index.js';
32
- export { c as colorToHex, h as hexToColor, p as packColor, a as parseColor, u as unpackColor } from './color-B78w3zH-.js';
33
- 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';
34
- 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';
35
- 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, u as trimToLineCount } from './virtualScrollback-D9uLFe8l.js';
36
- export { Accordion, AccordionConfig, AccordionConfigSchema, AccordionSection, AccordionWidget, Align, AlignItems, Autocomplete, AutocompleteConfig, AutocompleteConfigSchema, AutocompleteWidget, BRAILLE_BASE, BRAILLE_DOTS, BarChart, BarChartConfig, BarChartConfigSchema, BarChartWidget, BarMode, BarOrientation, BarSeries, BorderConfig, BorderConfigSchema, Box, BoxWidget, ButtonWidget, ButtonWidgetComponent, ButtonWidgetConfig, ButtonWidgetConfigSchema, CHART_COLORS, CLOSE_BUTTON_CHAR, COLLAPSE_CHAR, Calendar, CalendarConfig, CalendarConfigSchema, CalendarTheme, CalendarWidget, Canvas, CanvasConfig, CanvasConfigSchema, CanvasWidget, CellSize, CheckboxWidget, CheckboxWidgetComponent, CheckboxWidgetConfig, CheckboxWidgetConfigSchema, ChildLayoutData, CollapsibleConfig, CollapsibleConfigSchema, CollapsibleWidget, Command, CommandPalette, CommandPaletteConfig, CommandPaletteConfigSchema, CommandPaletteTheme, CommandPaletteWidget, ContextMenuConfig, ContextMenuItem, DEFAULT_CURSOR_OFFSET_X, DEFAULT_CURSOR_OFFSET_Y, DEFAULT_HIDE_DELAY, DEFAULT_HORIZONTAL_CHAR, DEFAULT_HOVER_DELAY, DEFAULT_LINE_LENGTH, DEFAULT_LOADING_BG, DEFAULT_LOADING_FG, DEFAULT_MESSAGE_PADDING, DEFAULT_MESSAGE_STYLES, DEFAULT_MESSAGE_TIMEOUT, DEFAULT_PANEL_TITLE, DEFAULT_PROMPT_BG, DEFAULT_PROMPT_FG, DEFAULT_PROMPT_HEIGHT, DEFAULT_PROMPT_WIDTH, DEFAULT_QUESTION_BG, DEFAULT_QUESTION_FG, DEFAULT_QUESTION_HEIGHT, DEFAULT_QUESTION_WIDTH, DEFAULT_TAB_POSITION, DEFAULT_TOAST_PADDING, DEFAULT_TOAST_STYLES, DEFAULT_TOAST_TIMEOUT, DEFAULT_TOOLTIP_BG, DEFAULT_TOOLTIP_BORDER, DEFAULT_TOOLTIP_FG, DEFAULT_VERTICAL_CHAR, DevTools, DevToolsComponentInfo, DevToolsConfig, DevToolsConfigSchema, DevToolsPosition, DevToolsTab, DevToolsTheme, DevToolsWidget, DividerState, EXPAND_CHAR, EntityInfo, EventLogEntry, FileEntry, FileManager, FileManagerBorderConfig, FileManagerConfig, FileManagerConfigSchema, FileManagerPaddingConfig, FileManagerWidget, FlattenedNode, FlexAlignItems, FlexChildOptions, FlexContainer, FlexContainerConfig, FlexContainerConfigSchema, FlexContainerWidget, FlexDirection, FlexJustifyContent, FlexWrap, FlexboxDirection, Footer, FooterAlign, FooterConfig, FooterConfigSchema, FooterWidget, FormComponent, FormField, FormValidator, FormWidget, FormWidgetConfig, FormWidgetConfigSchema, Gauge, GaugeConfig, GaugeConfigSchema, GaugeThreshold, GaugeWidget, Grid, GridCell, GridConfig, GridConfigSchema, GridWidget, HORIZONTAL_BLOCKS, Header, HeaderAlign, HeaderConfig, HeaderConfigSchema, HeaderWidget, HoverTextConfig, HoverTextManager, HoverTextManagerConfig, Image, ImageConfig, ImageConfigSchema, ImageType, ImageWidget, JustifyContent, Layout, LayoutConfig, LayoutConfigSchema, LayoutMode, LayoutPosition, LayoutWidget, Line, LineChart, LineChartConfig, LineChartConfigSchema, LineChartWidget, LineConfig, LineConfigSchema, LineOrientation, LineSeries, LineWidget, ListStyleConfig, ListTableStyleConfig, ListTableWidget, ListTableWidgetConfig, ListTableWidgetConfigSchema, ListWidget, ListWidgetConfig, ListWidgetConfigSchema, ListbarAction, ListbarItem, ListbarSelectCallback, ListbarState, ListbarStyleConfig, ListbarWidget, ListbarWidgetConfig, ListbarWidgetConfigSchema, LoadingConfig, LoadingConfigSchema, LoadingStyleConfig, LoadingStyleConfigSchema, LoadingWidget, Log, LogBorderConfig, LogConfig, LogConfigSchema, LogDimensionValue, LogPaddingConfig, LogPositionValue, LogScrollbarConfig, LogScrollbarMode, LogWidget, MPLAYER_SEARCH_PATHS, MPV_SEARCH_PATHS, Message, MessageBorderConfig, MessageConfig, MessageConfigSchema, MessagePositionValue, MessageStyleConfig, MessageType, MessageWidget, Modal, ModalBorderConfig, ModalConfig, ModalConfigSchema, ModalPaddingConfig, ModalWidget, MultiSelect, MultiSelectConfig, MultiSelectConfigSchema, MultiSelectItem, MultiSelectWidget, PaddingConfig, PaneScrollState, PaneState, PaneViewport, Panel, PanelAction, PanelBorderConfig, PanelConfig, PanelConfigSchema, PanelContentStyle, PanelStyleConfig, PanelTitleStyle, PanelWidget, ProgressBarComponent, ProgressBarWidget, ProgressBarWidgetConfig, ProgressBarWidgetConfigSchema, Prompt, PromptBorderConfig, PromptBorderConfigSchema, PromptConfig, PromptConfigSchema, PromptPaddingConfig, PromptPaddingConfigSchema, PromptValidator, PromptWidget, PtyOptions, PtyOptionsSchema, Question, QuestionBorderConfig, QuestionConfig, QuestionConfigSchema, QuestionPaddingConfig, QuestionWidget, RadioButtonWidget, RadioButtonWidgetComponent, RadioButtonWidgetConfig, RadioButtonWidgetConfigSchema, RadioGroupWidget, RadioGroupWidgetComponent, RadioGroupWidgetConfig, RadioGroupWidgetConfigSchema, ScrollableBox, ScrollableBoxConfig, ScrollableBoxConfigSchema, ScrollableBoxWidget, ScrollableTextConfig, ScrollableTextWidget, ScrollbarConfig, ScrollbarMode, SearchMode, SearchOverlay, SearchOverlayConfig, SearchOverlayConfigSchema, SearchOverlayMatch, SearchOverlayMatchCallback, SearchOverlayWidget, SearchableContent, SearchableList, SearchableListCallback, SearchableListConfig, SearchableListConfigSchema, SearchableListItem, SearchableListWidget, SelectionChangeCallback, SharedTextBuffer, Sparkline, SparklineConfig, SparklineConfigSchema, SparklineWidget, SplitDirection, SplitPane, SplitPaneConfig, SplitPaneConfigSchema, SplitPaneDimensionValue, SplitPanePositionValue, SplitPaneWidget, SplitResizeEvent, StopwatchComponent, StopwatchConfig, StopwatchConfigSchema, StopwatchState, StopwatchWidget, StreamDirtyRegion, StreamProgress, StreamingTextConfig, StreamingTextConfigSchema, StreamingTextState, StreamingTextWidget, Switch, SwitchConfig, SwitchConfigSchema, SwitchWidget, SystemInfo, TAB_CLOSE_CHAR, TAB_SEPARATOR, TOAST_STACK_SPACING, TabConfig, TabData, TabPosition, TabStyleConfig, TableStyleConfig, TableWidget, TableWidgetConfig, TableWidgetConfigSchema, Tabs, TabsAction, TabsBorderConfig, TabsConfig, TabsConfigSchema, TabsContentStyleConfig, TabsStyleConfig, TabsWidget, Terminal, TerminalBorderConfig, TerminalConfig, TerminalConfigSchema, TerminalStyle, TerminalWidget, Text, TextWidget, TimeFormat, TimerComponent, TimerConfig, TimerConfigSchema, TimerState, TimerWidget, TitleAlign, Toast, ToastBorderConfig, ToastConfig, ToastConfigSchema, ToastPosition, ToastStyleConfig, ToastType, ToastWidget, TooltipPosition, TooltipRenderData, TooltipState, TooltipStyle, TreeNode, TreeStyleConfig, TreeWidget, TreeWidgetConfig, TreeWidgetConfigSchema, VAlign, VERTICAL_BLOCKS, Video, VideoConfig, VideoConfigSchema, VideoOutputDriver, VideoPlaybackState, VideoPlayer, VideoProcessHandle, VideoProcessSpawner, VideoWidget, Viewport3DTag, Viewport3DWidget, VirtualizedList, VirtualizedListConfig, VirtualizedListConfigSchema, VirtualizedListStyle, VirtualizedListStyleSchema, WidgetFactory, WidgetRegistration, WidgetRegistry, addFlexChild, addToGrid, appendToState, ask, attachSearchOverlay, brailleChar, buildMplayerArgs, buildMpvArgs, buildPlayerArgs, calculateFlexLayout, calculateGridLayout, calculateInlineLayout, calculateTickInterval, clearAllHoverText, clearCanvas, clearHoverText, clearLines, clearState, closeAllModals, closeModal, collapseAllSections, combineBrailleDots, confirm, createAccordion, createAutocomplete, createBarChart, createBox, createButton, createCalendar, createCanvas, createCheckbox, createCollapsible, createCommandPalette, createContextMenu, createDevTools, createFileManager, createFlexContainer, createFooter, createForm, createGauge, createGrid, createHeader, createHoverTextManager, createImage, createLayout, createLine, createLineChart, createList, createListTable, createListbar, createLoading, createLog, createMessage, createModal, createMultiSelect, createPanel, createProgressBar, createPrompt, createQuestion, createRadioButton, createRadioGroup, createScrollableBox, createScrollableText, createSearchOverlay, createSearchableList, createSharedTextBuffer, createSparkline, createSplitPane, createStopwatch, createStreamingState, createStreamingText, createSwitch, createTable, createTabs, createTerminal, createText, createTimer, createToast, createTree, createVideo, createViewport3D, createVirtualizedList, createWidgetRegistry, defaultRegistry, deleteBottom, deleteLine, deleteTop, detectVideoPlayer, drawCircle, drawLine, drawRect, drawText, expandAllSections, expandSection, fileManagerStateMap, formatNumber, formatPercentage, generateTicks, getActiveTabIndex, getBaseLine, getBoxContent, getCanvasContent, getChartColor, getContextMenuSelectedIndex, getDividerRenderInfo, getExpandedSections, getHoverText, getHoverTextCount, getImageBitmap, getImageCellMap, getLayoutMode, getLineChar, getLineOrientation, getModalStack, getPanelTitle, getPanelTitleAlign, getScrollback, getSearchOverlayColors, getSearchOverlayTarget, getSearchableFilteredItems, getSelectedItems, getSharedTextBuffer, getSplitDirection, getStreamVisibleLines, getTabCount, getTabPosition, getTextContent, getVideoPlaybackState, getVideoPlayer, getWidgetTypes, getWidgetsByTag, handleContextMenuKey, handleFileManagerKey, handleMessageClick, handleMessageKey, handleModalBackdropClick, handleModalEscape, handlePromptKey, handleQuestionKey, handleSwitchClick, handleSwitchKey, handleTerminalKey, handleVirtualizedListKey, handleVirtualizedListWheel, hasHoverText, hideLoading, hitTestDivider, insertBottom, insertLine, insertTop, interpolateChartColor, isAccordion, isAutocomplete, isBarChart, isBox, isButtonWidget, isCalendar, isCanvas, isCheckboxWidget, isCollapsible, isCommandPalette, isDevTools, isDismissOnClick, isDismissOnKey, isFileManager, isFlexContainer, isFormWidget, isGauge, isGrid, isImage, isKeysScrollEnabled, isLayout, isLine, isLineChart, isListTableWidget, isListWidget, isListbarWidget, isLoadingWidget, isLog, isLogKeysScrollEnabled, isLogMouseScrollEnabled, isMessage, isModal, isModalOpen, isMouseScrollEnabled, isMultiSelect, isPanel, isPanelCollapsed, isProgressBarWidget, isPrompt, isQuestion, isRadioButtonWidget, isRadioGroupWidget, isScrollableBox, isScrollableBox as isScrollableText, isSearchOverlay, isSearchableList, isSparkline, isSplitPane, isStopwatch, isSwitch, isTableWidget, isTabs, isTerminal, isTerminalKeysEnabled, isTerminalMouseEnabled, isText, isTimer, isToast, isTreeWidget, isVideo, isViewport3DWidget, isVirtualizedList, isWidgetType, onSelectionChange, openModal, popLine, prompt, promptStateMap, pushLine, questionStateMap, registerBuiltinWidgets, renderPanelTitleBar, renderTabBar, renderXAxisLabel, renderYAxisLabel, replaceLines, resetAccordionStore, resetAutocompleteStore, resetBarChartStore, resetBoxStore, resetButtonWidgetStore, resetCalendarStore, resetCanvasStore, resetCheckboxWidgetStore, resetCommandPaletteStore, resetDevToolsStore, resetFileManagerStore, resetFlexContainerStore, resetFormWidgetStore, resetGaugeStore, resetGridStore, resetHoverTextStore, resetImageStore, resetLayoutStore, resetLineChartStore, resetLineStore, resetListbarStore, resetLoadingStore, resetLogStore, resetMessageStore, resetModalStore, resetMultiSelectStore, resetPanelStore, resetProgressBarWidgetStore, resetPromptStore, resetQuestionStore, resetRadioWidgetStore, resetScrollableBoxStore, resetSearchOverlayStore, resetSearchableListStore, resetSparklineStore, resetSplitPaneStore, resetStopwatchWidgetStore, resetSwitchStore, resetTabsStore, resetTerminalStore, resetTextStore, resetTimerWidgetStore, resetToastStore, resetTreeStore, resetVideoStore, scaleValue, sendPauseCommand, sendSeekCommand, setBaseLine, setBoxContent, setHoverText, setLine, setLineChar, setLines, setLoadingMessage, setPanelTitle, setPixel, setReadDirFn, setSearchableFilter, setTextContent, shiftLine, showError, showErrorToast, showInfo, showInfoToast, showLoading, showSuccess, showSuccessToast, showWarning, showWarningToast, spliceLines, stripAnsiSequences, toggleCollapsible, toggleSection, unshiftLine, updateLoadingAnimation, updateTimeWidgets, wrapLine } from './widgets/index.js';
37
- export { BigText, BigTextConfig, BigTextConfigSchema, BigTextWidget, FontDefinition, createBigText, isBigText, resetBigTextStore } from './widgets/bigText.js';
38
- export { BitmapFont, BitmapFontSchema, CharBitmap, CharBitmapSchema, FontName, FontNotFoundError, RenderCharOptions, createFontNotFoundError, getCharBitmap, loadFont, renderChar } from './widgets/fonts/index.js';
39
- export { ComponentRef, QueryResult, QueryTerm } from 'bitecs';
40
- import './viewport3d-xI33-_wq.js';
1
+ export { C as CleanupCallback, H as HitTestResult, P as PositionValue, a as PositionValueSchema, b as addComponent, c as addEntity, d as createWorld, e as destroyWorld, h as hasComponent, f as hitTest, r as removeEntity } from './positioning-DiUivJXa.js';
2
+ export { E as Entity, S as System, U as Unsubscribe, W as World } from './types-B8LmNkzG.js';
3
+ export { B as BoxConfig, a as BoxConfigSchema, T as TextConfig, b as TextConfigSchema, c as createBoxEntity, d as createButtonEntity, e as createCheckboxEntity, f as createInputEntity, g as createListEntity, h as createScreenEntity, i as createSelectEntity, j as createTextEntity } from './factories-vW7bn_He.js';
4
+ export { D as DirtyRect, a as animationSystem, c as cleanup, b as clearScreen, d as cursorHome, e as enterAlternateScreen, f as focusSystem, h as hideCursor, i as inputSystem, l as layoutSystem, g as leaveAlternateScreen, o as outputSystem, r as renderSystem, s as setOutputBuffer, j as setOutputStream, k as setRenderBuffer, m as showCursor, w as writeRaw } from './panelMovement-DSLYdNOL.js';
5
+ export { P as Position, T as TextAlign, V as Velocity, d as disableInput, a as disableKeys, b as disableMouse, e as enableInput, c as enableKeys, f as enableMouse, g as focusNext, h as focusPrev, i as getPosition, j as getText, k as getVelocity, l as getZIndex, n as normalizeZIndices, p as prepend, s as setPosition, m as setText, o as setVelocity, q as setZIndex } from './interactiveSystem-Dtv3xERg.js';
6
+ export { D as DimensionValue, e as ensureCursorVisible, g as getDimensions, s as scrollByLines, a as scrollToBottom, b as scrollToLine, c as scrollToTop, d as setDimensions } from './virtualViewport-fIlbIGPt.js';
7
+ export { t as toggle } from './renderable-IbSJao5y.js';
8
+ export { c as createDirtyTracker } from './dirtyTracking-D0SQrEeo.js';
9
+ export { s as stripAnsi } from './parser-Q1YLXYpF.js';
10
+ export { C as CursorShape, K as KeyHandler, L as LogLevel, M as MouseHandler, T as TerminalCapabilities } from './inputStream-BoFAEJ7g.js';
11
+ export { K as KeyEvent, p as parseKeyBuffer } from './keyParser-DReXe2j-.js';
12
+ export { i as isMouseBuffer, p as parseMouseSequence } from './mouseParser-CTNGolIA.js';
13
+ export { C as Cell, c as clearBuffer, f as fillRect, g as getCell, s as setCell } from './cell-5Ty_3yMs.js';
14
+ export { c as createDoubleBuffer, g as getBackBuffer } from './doubleBuffer-d9yVNtj1.js';
15
+ export { C as CellBuffer, c as createCellBuffer, g as getLine, a as getLines, b as getStats, r as renderText, w as wrapText } from './textWrap-sY-PZzE7.js';
16
+ import 'bitecs';
17
+ import 'zod';
18
+ import './border-Br-Jc027.js';
19
+ import './scheduler-NbHT3-D2.js';
20
+ import './events-CGqK6LGt.js';
41
21
  import 'node:stream';
42
- import 'node:child_process';
43
-
44
- /**
45
- * Text markup parser for inline styling tags
46
- *
47
- * Supports tags like {bold}text{/bold}, {red-fg}text{/red-fg}, etc.
48
- * for inline text styling in terminal applications.
49
- *
50
- * @module text/markup
51
- *
52
- * @example
53
- * ```typescript
54
- * import { parseMarkup, renderMarkup, stripMarkup } from 'blecsd';
55
- *
56
- * // Parse markup into styled segments
57
- * const segments = parseMarkup('{bold}{red-fg}Error{/red-fg}{/bold}');
58
- *
59
- * // Strip all tags
60
- * const plain = stripMarkup('{bold}text{/bold}'); // 'text'
61
- *
62
- * // Get visible length
63
- * const len = markupLength('{bold}hello{/bold}'); // 5
64
- *
65
- * // Render to ANSI escape sequences
66
- * const ansi = renderMarkup(segments);
67
- * ```
68
- */
69
-
70
- /**
71
- * Text style attributes that can be applied to text segments.
72
- */
73
- interface MarkupStyle {
74
- readonly bold?: boolean;
75
- readonly underline?: boolean;
76
- readonly italic?: boolean;
77
- readonly dim?: boolean;
78
- readonly blink?: boolean;
79
- readonly inverse?: boolean;
80
- readonly fg?: number;
81
- readonly bg?: number;
82
- readonly align?: 'left' | 'center' | 'right';
83
- }
84
- /**
85
- * Zod schema for validating MarkupStyle objects.
86
- */
87
- declare const MarkupStyleSchema: z.ZodObject<{
88
- bold: z.ZodOptional<z.ZodBoolean>;
89
- underline: z.ZodOptional<z.ZodBoolean>;
90
- italic: z.ZodOptional<z.ZodBoolean>;
91
- dim: z.ZodOptional<z.ZodBoolean>;
92
- blink: z.ZodOptional<z.ZodBoolean>;
93
- inverse: z.ZodOptional<z.ZodBoolean>;
94
- fg: z.ZodOptional<z.ZodNumber>;
95
- bg: z.ZodOptional<z.ZodNumber>;
96
- align: z.ZodOptional<z.ZodEnum<{
97
- left: "left";
98
- right: "right";
99
- center: "center";
100
- }>>;
101
- }, z.core.$strip>;
102
- /**
103
- * A segment of text with associated style information.
104
- */
105
- interface StyledSegment {
106
- readonly text: string;
107
- readonly style: MarkupStyle;
108
- }
109
- /**
110
- * Parses markup string into styled segments.
111
- *
112
- * @param input - String containing markup tags
113
- * @returns Array of styled text segments
114
- *
115
- * @example
116
- * ```typescript
117
- * import { parseMarkup } from 'blecsd';
118
- *
119
- * const segments = parseMarkup('{bold}hello{/bold}');
120
- * // [{ text: 'hello', style: { bold: true } }]
121
- *
122
- * const nested = parseMarkup('{bold}{red-fg}text{/red-fg}{/bold}');
123
- * // [{ text: 'text', style: { bold: true, fg: 0xff0000 } }]
124
- * ```
125
- */
126
- declare function parseMarkup(input: string): StyledSegment[];
127
- /**
128
- * Strips all markup tags from a string, returning only visible text.
129
- *
130
- * @param input - String containing markup tags
131
- * @returns Plain text without tags
132
- *
133
- * @example
134
- * ```typescript
135
- * import { stripMarkup } from 'blecsd';
136
- *
137
- * stripMarkup('{bold}hello{/bold}'); // 'hello'
138
- * stripMarkup('{red-fg}test{/red-fg}'); // 'test'
139
- * ```
140
- */
141
- declare function stripMarkup(input: string): string;
142
- /**
143
- * Calculates the visible text length, excluding markup tags.
144
- *
145
- * @param input - String containing markup tags
146
- * @returns Length of visible text
147
- *
148
- * @example
149
- * ```typescript
150
- * import { markupLength } from 'blecsd';
151
- *
152
- * markupLength('hello'); // 5
153
- * markupLength('{bold}hello{/bold}'); // 5
154
- * markupLength('{red-fg}hello{/red-fg} world'); // 11
155
- * ```
156
- */
157
- declare function markupLength(input: string): number;
158
- /**
159
- * Converts styled segments back to ANSI escape sequences.
160
- *
161
- * @param segments - Array of styled text segments
162
- * @returns String with ANSI escape codes
163
- *
164
- * @example
165
- * ```typescript
166
- * import { parseMarkup, renderMarkup } from 'blecsd';
167
- *
168
- * const segments = parseMarkup('{bold}hello{/bold}');
169
- * const ansi = renderMarkup(segments);
170
- * // '\x1b[1mhello\x1b[0m'
171
- * ```
172
- */
173
- declare function renderMarkup(segments: StyledSegment[]): string;
174
-
175
- /**
176
- * Syntax highlighting for terminal code display
177
- *
178
- * Provides basic syntax highlighting using ANSI color codes for common languages.
179
- * Supports JavaScript/TypeScript, JSON, and Bash.
180
- *
181
- * @module text/syntaxHighlight
182
- */
183
-
184
- /**
185
- * Supported programming languages for syntax highlighting.
186
- */
187
- type SupportedLanguage = 'javascript' | 'typescript' | 'json' | 'bash' | 'shell' | 'sh';
188
- /**
189
- * Color configuration for syntax highlighting.
190
- */
191
- interface HighlightColors {
192
- /** Color for keywords (if, const, function, etc.) */
193
- readonly keyword: string;
194
- /** Color for string literals */
195
- readonly string: string;
196
- /** Color for numeric literals */
197
- readonly number: string;
198
- /** Color for comments */
199
- readonly comment: string;
200
- /** Color for operators (+, -, *, etc.) */
201
- readonly operator: string;
202
- /** Color for punctuation ({}, [], (), etc.) */
203
- readonly punctuation: string;
204
- /** Color for identifiers */
205
- readonly identifier: string;
206
- /** Color for function names */
207
- readonly function: string;
208
- /** Color for constants (true, false, null, etc.) */
209
- readonly constant: string;
210
- /** Color for object properties */
211
- readonly property: string;
212
- /** Color for variables */
213
- readonly variable: string;
214
- }
215
- /**
216
- * Syntax highlighting configuration.
217
- */
218
- interface HighlightConfig {
219
- /** Color scheme for token types */
220
- readonly colors?: Partial<HighlightColors>;
221
- /** Whether to enable syntax highlighting (default: true) */
222
- readonly enabled?: boolean;
223
- }
224
- /**
225
- * Zod schema for highlight configuration.
226
- */
227
- declare const HighlightConfigSchema: z.ZodObject<{
228
- colors: z.ZodOptional<z.ZodObject<{
229
- keyword: z.ZodOptional<z.ZodString>;
230
- string: z.ZodOptional<z.ZodString>;
231
- number: z.ZodOptional<z.ZodString>;
232
- comment: z.ZodOptional<z.ZodString>;
233
- operator: z.ZodOptional<z.ZodString>;
234
- punctuation: z.ZodOptional<z.ZodString>;
235
- identifier: z.ZodOptional<z.ZodString>;
236
- function: z.ZodOptional<z.ZodString>;
237
- constant: z.ZodOptional<z.ZodString>;
238
- property: z.ZodOptional<z.ZodString>;
239
- variable: z.ZodOptional<z.ZodString>;
240
- }, z.core.$strip>>;
241
- enabled: z.ZodOptional<z.ZodBoolean>;
242
- }, z.core.$strip>;
243
- /**
244
- * Default color scheme (inspired by popular themes).
245
- * Uses ANSI 256-color codes for better terminal compatibility.
246
- */
247
- declare const DEFAULT_COLORS: HighlightColors;
248
- /**
249
- * Highlights code with syntax coloring for terminal display.
250
- *
251
- * @param code - The source code to highlight
252
- * @param language - The programming language (javascript, typescript, json, bash, shell, sh)
253
- * @param config - Optional configuration for colors and settings
254
- * @returns The highlighted code with ANSI color codes
255
- *
256
- * @example
257
- * ```typescript
258
- * import { highlightCode } from 'blecsd';
259
- *
260
- * // Highlight JavaScript code
261
- * const jsCode = `
262
- * function greet(name) {
263
- * return \`Hello, \${name}!\`;
264
- * }
265
- * `;
266
- * const highlighted = highlightCode(jsCode, 'javascript');
267
- * console.log(highlighted);
268
- *
269
- * // Highlight with custom colors
270
- * const customHighlighted = highlightCode(jsCode, 'javascript', {
271
- * colors: {
272
- * keyword: '\x1b[31m', // Red keywords
273
- * string: '\x1b[32m', // Green strings
274
- * }
275
- * });
276
- *
277
- * // Highlight JSON
278
- * const jsonCode = '{"name": "blECSd", "version": "0.2.0"}';
279
- * const jsonHighlighted = highlightCode(jsonCode, 'json');
280
- *
281
- * // Highlight Bash
282
- * const bashCode = 'echo "Hello, $USER!"';
283
- * const bashHighlighted = highlightCode(bashCode, 'bash');
284
- * ```
285
- */
286
- declare function highlightCode(code: string, language: SupportedLanguage, config?: HighlightConfig): string;
287
- /**
288
- * Strips ANSI color codes from highlighted code.
289
- *
290
- * @param code - The code with ANSI color codes
291
- * @returns The code without color codes
292
- *
293
- * @example
294
- * ```typescript
295
- * import { highlightCode, stripHighlight } from 'blecsd';
296
- *
297
- * const highlighted = highlightCode('const x = 1;', 'javascript');
298
- * const plain = stripHighlight(highlighted);
299
- * console.log(plain); // 'const x = 1;'
300
- * ```
301
- */
302
- declare function stripHighlight(code: string): string;
303
-
304
- /**
305
- * TypeScript type exports for blECSd
306
- *
307
- * This module provides all public types for library consumers.
308
- * Types are organized by category for easy discovery.
309
- *
310
- * @module types
311
- */
312
-
313
- /**
314
- * Makes all properties in T and nested objects optional.
315
- *
316
- * @example
317
- * ```typescript
318
- * import type { DeepPartial } from 'blecsd';
319
- *
320
- * interface Config {
321
- * display: { width: number; height: number };
322
- * input: { keys: boolean; mouse: boolean };
323
- * }
324
- *
325
- * // All properties are optional, including nested
326
- * const partial: DeepPartial<Config> = {
327
- * display: { width: 80 }
328
- * };
329
- * ```
330
- */
331
- type DeepPartial<T> = T extends object ? {
332
- [P in keyof T]?: DeepPartial<T[P]>;
333
- } : T;
334
- /**
335
- * Makes all properties in T and nested objects readonly.
336
- *
337
- * @example
338
- * ```typescript
339
- * import type { DeepReadonly } from 'blecsd';
340
- *
341
- * interface State {
342
- * position: { x: number; y: number };
343
- * velocity: { x: number; y: number };
344
- * }
345
- *
346
- * const frozen: DeepReadonly<State> = {
347
- * position: { x: 10, y: 20 },
348
- * velocity: { x: 0, y: 0 }
349
- * };
350
- *
351
- * // frozen.position.x = 5; // Error: Cannot assign to 'x' because it is a read-only property
352
- * ```
353
- */
354
- type DeepReadonly<T> = T extends object ? {
355
- readonly [P in keyof T]: DeepReadonly<T[P]>;
356
- } : T;
357
- /**
358
- * Infers the TypeScript type from a Zod schema.
359
- *
360
- * @example
361
- * ```typescript
362
- * import { z } from 'zod';
363
- * import type { InferSchema } from 'blecsd';
364
- *
365
- * const PersonSchema = z.object({
366
- * name: z.string(),
367
- * age: z.number()
368
- * });
369
- *
370
- * type Person = InferSchema<typeof PersonSchema>;
371
- * // { name: string; age: number }
372
- * ```
373
- */
374
- type InferSchema<T extends z.ZodType> = z.infer<T>;
375
- /**
376
- * Extracts the input type from a Zod schema.
377
- * Useful when schema has transforms.
378
- *
379
- * @example
380
- * ```typescript
381
- * import { z } from 'zod';
382
- * import type { InferInput } from 'blecsd';
383
- *
384
- * const DateSchema = z.string().transform(s => new Date(s));
385
- *
386
- * type DateInput = InferInput<typeof DateSchema>;
387
- * // string (what you pass in)
388
- *
389
- * type DateOutput = InferSchema<typeof DateSchema>;
390
- * // Date (what you get out)
391
- * ```
392
- */
393
- type InferInput<T extends z.ZodType> = z.input<T>;
394
- /**
395
- * Makes specific keys of T required while keeping others optional.
396
- *
397
- * @example
398
- * ```typescript
399
- * import type { RequiredKeys } from 'blecsd';
400
- *
401
- * interface Config {
402
- * width?: number;
403
- * height?: number;
404
- * title?: string;
405
- * }
406
- *
407
- * // width and height are required, title stays optional
408
- * type RequiredDimensions = RequiredKeys<Config, 'width' | 'height'>;
409
- * ```
410
- */
411
- type RequiredKeys<T, K extends keyof T> = T & Required<Pick<T, K>>;
412
- /**
413
- * Makes specific keys of T optional while keeping others required.
414
- *
415
- * @example
416
- * ```typescript
417
- * import type { OptionalKeys } from 'blecsd';
418
- *
419
- * interface Component {
420
- * x: number;
421
- * y: number;
422
- * z: number;
423
- * }
424
- *
425
- * // z is optional, x and y stay required
426
- * type Component2D = OptionalKeys<Component, 'z'>;
427
- * ```
428
- */
429
- type OptionalKeys<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
430
- /**
431
- * Extracts keys of T that have values assignable to V.
432
- *
433
- * @example
434
- * ```typescript
435
- * import type { KeysOfType } from 'blecsd';
436
- *
437
- * interface Component {
438
- * x: number;
439
- * y: number;
440
- * name: string;
441
- * active: boolean;
442
- * }
443
- *
444
- * type NumericKeys = KeysOfType<Component, number>;
445
- * // 'x' | 'y'
446
- * ```
447
- */
448
- type KeysOfType<T, V> = {
449
- [K in keyof T]: T[K] extends V ? K : never;
450
- }[keyof T];
451
- /**
452
- * A value that can be either T or a function that returns T.
453
- * Useful for lazy or dynamic values.
454
- *
455
- * @example
456
- * ```typescript
457
- * import type { MaybeThunk } from 'blecsd';
458
- *
459
- * type DynamicColor = MaybeThunk<number>;
460
- *
461
- * const staticColor: DynamicColor = 0xff0000ff;
462
- * const dynamicColor: DynamicColor = () => Math.random() > 0.5 ? 0xff0000ff : 0x00ff00ff;
463
- * ```
464
- */
465
- type MaybeThunk<T> = T | (() => T);
466
- /**
467
- * Represents a 32-bit packed RGBA color value.
468
- * Format: 0xAARRGGBB (alpha, red, green, blue)
469
- *
470
- * @example
471
- * ```typescript
472
- * import type { PackedColor } from 'blecsd';
473
- *
474
- * const red: PackedColor = 0xff0000ff; // ARGB: 255, 255, 0, 0
475
- * const green: PackedColor = 0x00ff00ff; // ARGB: 255, 0, 255, 0
476
- * const transparent: PackedColor = 0xff000080; // 50% alpha
477
- * ```
478
- */
479
- type PackedColor = number;
480
- /**
481
- * A callback that can be unsubscribed.
482
- * Returns a function that removes the subscription.
483
- *
484
- * @example
485
- * ```typescript
486
- * import type { Subscription } from 'blecsd';
487
- *
488
- * function subscribe(callback: () => void): Subscription {
489
- * // Register callback...
490
- * return () => {
491
- * // Remove callback...
492
- * };
493
- * }
494
- *
495
- * const unsub = subscribe(() => console.log('event'));
496
- * unsub(); // Removes the subscription
497
- * ```
498
- */
499
- type Subscription = () => void;
500
-
501
- /**
502
- * CSS-like Stylesheet System
503
- *
504
- * Provides a declarative styling system with selectors, cascading specificity,
505
- * and style rule application. Supports selectors by widget tag (type), user-assigned
506
- * class tags (stored in UserData), and entity ID.
507
- *
508
- * Specificity cascade: tag < class < id (matching CSS specificity model).
509
- *
510
- * @module style/stylesheet
511
- *
512
- * @example
513
- * ```typescript
514
- * import { createStylesheet, addRule, applyStylesheet, createWorld, addEntity } from 'blecsd';
515
- *
516
- * const world = createWorld();
517
- * const sheet = createStylesheet('main');
518
- *
519
- * // Add rules with different specificity
520
- * addRule(sheet, { selector: { tag: 'button' }, style: { fg: '#ffffff', bg: '#0066cc' } });
521
- * addRule(sheet, { selector: { className: 'danger' }, style: { bg: '#cc0000' } });
522
- * addRule(sheet, { selector: { entityId: 42 }, style: { bold: true } });
523
- *
524
- * applyStylesheet(world, sheet);
525
- * ```
526
- */
527
-
528
- /**
529
- * Style properties that can be set by stylesheet rules.
530
- * Maps directly to Renderable component properties.
531
- */
532
- interface StyleProperties {
533
- /** Foreground color (hex string or packed number) */
534
- readonly fg?: string | number | undefined;
535
- /** Background color (hex string or packed number) */
536
- readonly bg?: string | number | undefined;
537
- /** Bold text */
538
- readonly bold?: boolean | undefined;
539
- /** Underlined text */
540
- readonly underline?: boolean | undefined;
541
- /** Blinking text */
542
- readonly blink?: boolean | undefined;
543
- /** Inverse colors */
544
- readonly inverse?: boolean | undefined;
545
- /** Transparent background */
546
- readonly transparent?: boolean | undefined;
547
- /** Opacity (0-1) */
548
- readonly opacity?: number | undefined;
549
- }
550
- /**
551
- * Selector for matching entities.
552
- * Multiple fields combine with AND logic (all must match).
553
- */
554
- interface StyleSelector {
555
- /** Match by widget tag/type name (lowest specificity) */
556
- readonly tag?: string | undefined;
557
- /** Match by user-assigned class name (medium specificity) */
558
- readonly className?: string | undefined;
559
- /** Match by exact entity ID (highest specificity) */
560
- readonly entityId?: number | undefined;
561
- }
562
- /**
563
- * A single style rule combining a selector and style properties.
564
- */
565
- interface StyleRule {
566
- /** Selector for matching entities */
567
- readonly selector: StyleSelector;
568
- /** Style properties to apply to matched entities */
569
- readonly style: StyleProperties;
570
- /** Optional priority override (higher wins when specificity ties, default: 0) */
571
- readonly priority?: number | undefined;
572
- }
573
- /**
574
- * A stylesheet containing named rules.
575
- */
576
- interface Stylesheet {
577
- /** Stylesheet name */
578
- readonly name: string;
579
- /** Ordered list of style rules */
580
- readonly rules: StyleRule[];
581
- }
582
- /**
583
- * Result of applying a stylesheet to a world.
584
- */
585
- interface ApplyResult {
586
- /** Number of entities that had styles applied */
587
- readonly entitiesStyled: number;
588
- /** Number of rules that matched at least one entity */
589
- readonly rulesMatched: number;
590
- }
591
- /**
592
- * Zod schema for StyleProperties.
593
- *
594
- * @example
595
- * ```typescript
596
- * import { StylePropertiesSchema } from 'blecsd';
597
- *
598
- * const style = StylePropertiesSchema.parse({
599
- * fg: '#ff0000',
600
- * bold: true,
601
- * });
602
- * ```
603
- */
604
- declare const StylePropertiesSchema: z.ZodObject<{
605
- fg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
606
- bg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
607
- bold: z.ZodOptional<z.ZodBoolean>;
608
- underline: z.ZodOptional<z.ZodBoolean>;
609
- blink: z.ZodOptional<z.ZodBoolean>;
610
- inverse: z.ZodOptional<z.ZodBoolean>;
611
- transparent: z.ZodOptional<z.ZodBoolean>;
612
- opacity: z.ZodOptional<z.ZodNumber>;
613
- }, z.core.$strip>;
614
- /**
615
- * Zod schema for StyleSelector.
616
- *
617
- * @example
618
- * ```typescript
619
- * import { StyleSelectorSchema } from 'blecsd';
620
- *
621
- * const selector = StyleSelectorSchema.parse({
622
- * tag: 'button',
623
- * className: 'primary',
624
- * });
625
- * ```
626
- */
627
- declare const StyleSelectorSchema: z.ZodObject<{
628
- tag: z.ZodOptional<z.ZodString>;
629
- className: z.ZodOptional<z.ZodString>;
630
- entityId: z.ZodOptional<z.ZodNumber>;
631
- }, z.core.$strip>;
632
- /**
633
- * Zod schema for StyleRule.
634
- *
635
- * @example
636
- * ```typescript
637
- * import { StyleRuleSchema } from 'blecsd';
638
- *
639
- * const rule = StyleRuleSchema.parse({
640
- * selector: { tag: 'box' },
641
- * style: { bg: '#333333' },
642
- * });
643
- * ```
644
- */
645
- declare const StyleRuleSchema: z.ZodObject<{
646
- selector: z.ZodObject<{
647
- tag: z.ZodOptional<z.ZodString>;
648
- className: z.ZodOptional<z.ZodString>;
649
- entityId: z.ZodOptional<z.ZodNumber>;
650
- }, z.core.$strip>;
651
- style: z.ZodObject<{
652
- fg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
653
- bg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
654
- bold: z.ZodOptional<z.ZodBoolean>;
655
- underline: z.ZodOptional<z.ZodBoolean>;
656
- blink: z.ZodOptional<z.ZodBoolean>;
657
- inverse: z.ZodOptional<z.ZodBoolean>;
658
- transparent: z.ZodOptional<z.ZodBoolean>;
659
- opacity: z.ZodOptional<z.ZodNumber>;
660
- }, z.core.$strip>;
661
- priority: z.ZodOptional<z.ZodNumber>;
662
- }, z.core.$strip>;
663
- /**
664
- * Zod schema for Stylesheet.
665
- *
666
- * @example
667
- * ```typescript
668
- * import { StylesheetSchema } from 'blecsd';
669
- *
670
- * const sheet = StylesheetSchema.parse({
671
- * name: 'main',
672
- * rules: [{ selector: { tag: 'box' }, style: { bg: '#111' } }],
673
- * });
674
- * ```
675
- */
676
- declare const StylesheetSchema: z.ZodObject<{
677
- name: z.ZodString;
678
- rules: z.ZodArray<z.ZodObject<{
679
- selector: z.ZodObject<{
680
- tag: z.ZodOptional<z.ZodString>;
681
- className: z.ZodOptional<z.ZodString>;
682
- entityId: z.ZodOptional<z.ZodNumber>;
683
- }, z.core.$strip>;
684
- style: z.ZodObject<{
685
- fg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
686
- bg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
687
- bold: z.ZodOptional<z.ZodBoolean>;
688
- underline: z.ZodOptional<z.ZodBoolean>;
689
- blink: z.ZodOptional<z.ZodBoolean>;
690
- inverse: z.ZodOptional<z.ZodBoolean>;
691
- transparent: z.ZodOptional<z.ZodBoolean>;
692
- opacity: z.ZodOptional<z.ZodNumber>;
693
- }, z.core.$strip>;
694
- priority: z.ZodOptional<z.ZodNumber>;
695
- }, z.core.$strip>>;
696
- }, z.core.$strip>;
697
- /**
698
- * Calculates the specificity score for a selector.
699
- * Higher scores take priority in cascading.
700
- *
701
- * @param selector - The style selector
702
- * @returns Specificity score
703
- *
704
- * @example
705
- * ```typescript
706
- * import { calculateSpecificity } from 'blecsd';
707
- *
708
- * calculateSpecificity({ tag: 'box' }); // 1
709
- * calculateSpecificity({ className: 'primary' }); // 10
710
- * calculateSpecificity({ entityId: 42 }); // 100
711
- * calculateSpecificity({ tag: 'box', className: 'primary' }); // 11
712
- * ```
713
- */
714
- declare function calculateSpecificity(selector: StyleSelector): number;
715
- /**
716
- * Checks if an entity matches a selector.
717
- *
718
- * @param world - The ECS world
719
- * @param eid - The entity ID
720
- * @param selector - The selector to match against
721
- * @returns true if the entity matches all selector criteria
722
- *
723
- * @example
724
- * ```typescript
725
- * import { matchesSelector, createWorld, addEntity } from 'blecsd';
726
- *
727
- * const world = createWorld();
728
- * const eid = addEntity(world);
729
- * // After setting entity tag and classes...
730
- * const matches = matchesSelector(world, eid, { tag: 'button' });
731
- * ```
732
- */
733
- declare function matchesSelector(world: World, eid: Entity, selector: StyleSelector): boolean;
734
- /**
735
- * Creates a new empty stylesheet.
736
- *
737
- * @param name - Stylesheet name
738
- * @returns A new Stylesheet
739
- *
740
- * @example
741
- * ```typescript
742
- * import { createStylesheet } from 'blecsd';
743
- *
744
- * const sheet = createStylesheet('theme');
745
- * ```
746
- */
747
- declare function createStylesheet(name: string): Stylesheet;
748
- /**
749
- * Adds a rule to a stylesheet. Returns a new stylesheet with the rule added.
750
- *
751
- * @param sheet - The stylesheet to add to
752
- * @param rule - The rule to add
753
- * @returns A new stylesheet with the rule added
754
- *
755
- * @example
756
- * ```typescript
757
- * import { createStylesheet, addRule } from 'blecsd';
758
- *
759
- * let sheet = createStylesheet('main');
760
- * sheet = addRule(sheet, {
761
- * selector: { tag: 'button' },
762
- * style: { fg: '#ffffff', bg: '#0066cc' },
763
- * });
764
- * ```
765
- */
766
- declare function addRule(sheet: Stylesheet, rule: StyleRule): Stylesheet;
767
- /**
768
- * Removes all rules matching a predicate. Returns a new stylesheet.
769
- *
770
- * @param sheet - The stylesheet to filter
771
- * @param predicate - Function returning true for rules to remove
772
- * @returns A new stylesheet with matching rules removed
773
- *
774
- * @example
775
- * ```typescript
776
- * import { createStylesheet, addRule, removeRules } from 'blecsd';
777
- *
778
- * let sheet = createStylesheet('main');
779
- * sheet = addRule(sheet, { selector: { tag: 'box' }, style: { bg: '#111' } });
780
- * sheet = removeRules(sheet, (rule) => rule.selector.tag === 'box');
781
- * ```
782
- */
783
- declare function removeRules(sheet: Stylesheet, predicate: (rule: StyleRule) => boolean): Stylesheet;
784
- /**
785
- * Clears all rules from a stylesheet. Returns a new empty stylesheet.
786
- *
787
- * @param sheet - The stylesheet to clear
788
- * @returns A new stylesheet with no rules
789
- *
790
- * @example
791
- * ```typescript
792
- * import { clearRules } from 'blecsd';
793
- *
794
- * const emptySheet = clearRules(sheet);
795
- * ```
796
- */
797
- declare function clearRules(sheet: Stylesheet): Stylesheet;
798
- /**
799
- * Applies a stylesheet to all entities in the world.
800
- * For each entity with a Renderable component, evaluates all rules,
801
- * cascades by specificity, and applies the merged style.
802
- *
803
- * @param world - The ECS world
804
- * @param sheet - The stylesheet to apply
805
- * @returns Result with counts of entities styled and rules matched
806
- *
807
- * @example
808
- * ```typescript
809
- * import { createWorld, addEntity, createStylesheet, addRule, applyStylesheet } from 'blecsd';
810
- *
811
- * const world = createWorld();
812
- * let sheet = createStylesheet('main');
813
- * sheet = addRule(sheet, { selector: { tag: 'box' }, style: { bg: '#111' } });
814
- *
815
- * const result = applyStylesheet(world, sheet);
816
- * console.log(`Styled ${result.entitiesStyled} entities`);
817
- * ```
818
- */
819
- declare function applyStylesheet(world: World, sheet: Stylesheet): ApplyResult;
820
- /**
821
- * Applies a stylesheet to a single entity.
822
- * Useful when a new entity is created and needs styling.
823
- *
824
- * @param world - The ECS world
825
- * @param eid - The entity to style
826
- * @param sheet - The stylesheet to apply
827
- * @returns true if any rules matched and styles were applied
828
- *
829
- * @example
830
- * ```typescript
831
- * import { applyStylesheetToEntity, createStylesheet, addRule } from 'blecsd';
832
- *
833
- * const styled = applyStylesheetToEntity(world, newEntity, sheet);
834
- * ```
835
- */
836
- declare function applyStylesheetToEntity(world: World, eid: Entity, sheet: Stylesheet): boolean;
837
- /**
838
- * Gets all matching rules for an entity without applying them.
839
- * Useful for debugging or inspecting which rules would apply.
840
- *
841
- * @param world - The ECS world
842
- * @param eid - The entity to check
843
- * @param sheet - The stylesheet to evaluate
844
- * @returns Array of matching rules with their specificity scores
845
- *
846
- * @example
847
- * ```typescript
848
- * import { getMatchingRules } from 'blecsd';
849
- *
850
- * const matches = getMatchingRules(world, entity, sheet);
851
- * for (const { rule, specificity } of matches) {
852
- * console.log(`Rule matches with specificity ${specificity}`);
853
- * }
854
- * ```
855
- */
856
- declare function getMatchingRules(world: World, eid: Entity, sheet: Stylesheet): ReadonlyArray<{
857
- readonly rule: StyleRule;
858
- readonly specificity: number;
859
- }>;
860
-
861
- /**
862
- * Theme System
863
- *
864
- * Centralized theme management for consistent styling across all widgets.
865
- * Provides built-in themes (default, dark, light, high-contrast) and supports
866
- * custom theme creation and runtime theme switching.
867
- *
868
- * @module style/theme
869
- *
870
- * @example
871
- * ```typescript
872
- * import { createWorld } from '../core/ecs';
873
- * import {
874
- * registerTheme,
875
- * createDarkTheme,
876
- * setActiveTheme,
877
- * applyThemeToAll,
878
- * } from 'blecsd/style';
879
- *
880
- * const world = createWorld();
881
- *
882
- * // Register and activate dark theme
883
- * registerTheme(createDarkTheme());
884
- * setActiveTheme(world, 'dark');
885
- * applyThemeToAll(world);
886
- * ```
887
- */
888
-
889
- /**
890
- * Theme color palette.
891
- */
892
- interface ThemeColors {
893
- /** Primary brand color */
894
- readonly primary: number;
895
- /** Secondary brand color */
896
- readonly secondary: number;
897
- /** Accent color for highlights */
898
- readonly accent: number;
899
- /** Default background color */
900
- readonly background: number;
901
- /** Default foreground/text color */
902
- readonly foreground: number;
903
- /** Error state color */
904
- readonly error: number;
905
- /** Warning state color */
906
- readonly warning: number;
907
- /** Success state color */
908
- readonly success: number;
909
- /** Info state color */
910
- readonly info: number;
911
- /** Muted/disabled color */
912
- readonly muted: number;
913
- /** Border color */
914
- readonly border: number;
915
- }
916
- /**
917
- * Theme border configuration.
918
- */
919
- interface ThemeBorders {
920
- /** Border style */
921
- readonly style: 'single' | 'double' | 'rounded' | 'heavy' | 'none';
922
- /** Border foreground color */
923
- readonly fg: number;
924
- /** Border background color */
925
- readonly bg: number;
926
- }
927
- /**
928
- * Theme focus styling.
929
- */
930
- interface ThemeFocus {
931
- /** Focus foreground color */
932
- readonly fg: number;
933
- /** Focus background color */
934
- readonly bg: number;
935
- /** Focus border foreground color */
936
- readonly borderFg: number;
937
- }
938
- /**
939
- * Widget-specific theme styles.
940
- */
941
- interface ThemeWidgetStyles {
942
- readonly button: {
943
- readonly fg: number;
944
- readonly bg: number;
945
- readonly activeFg: number;
946
- readonly activeBg: number;
947
- };
948
- readonly input: {
949
- readonly fg: number;
950
- readonly bg: number;
951
- readonly placeholderFg: number;
952
- readonly cursorFg: number;
953
- };
954
- readonly list: {
955
- readonly fg: number;
956
- readonly bg: number;
957
- readonly selectedFg: number;
958
- readonly selectedBg: number;
959
- };
960
- readonly panel: {
961
- readonly fg: number;
962
- readonly bg: number;
963
- readonly headerFg: number;
964
- readonly headerBg: number;
965
- };
966
- }
967
- /**
968
- * Complete theme definition.
969
- */
970
- interface Theme {
971
- /** Theme name (unique identifier) */
972
- readonly name: string;
973
- /** Color palette */
974
- readonly colors: ThemeColors;
975
- /** Border configuration */
976
- readonly borders: ThemeBorders;
977
- /** Focus styling */
978
- readonly focus: ThemeFocus;
979
- /** Widget-specific styles */
980
- readonly widgets: ThemeWidgetStyles;
981
- }
982
- /**
983
- * Zod schema for complete theme.
984
- */
985
- declare const ThemeSchema: z.ZodObject<{
986
- name: z.ZodString;
987
- colors: z.ZodObject<{
988
- primary: z.ZodNumber;
989
- secondary: z.ZodNumber;
990
- accent: z.ZodNumber;
991
- background: z.ZodNumber;
992
- foreground: z.ZodNumber;
993
- error: z.ZodNumber;
994
- warning: z.ZodNumber;
995
- success: z.ZodNumber;
996
- info: z.ZodNumber;
997
- muted: z.ZodNumber;
998
- border: z.ZodNumber;
999
- }, z.core.$strip>;
1000
- borders: z.ZodObject<{
1001
- style: z.ZodEnum<{
1002
- none: "none";
1003
- single: "single";
1004
- double: "double";
1005
- rounded: "rounded";
1006
- heavy: "heavy";
1007
- }>;
1008
- fg: z.ZodNumber;
1009
- bg: z.ZodNumber;
1010
- }, z.core.$strip>;
1011
- focus: z.ZodObject<{
1012
- fg: z.ZodNumber;
1013
- bg: z.ZodNumber;
1014
- borderFg: z.ZodNumber;
1015
- }, z.core.$strip>;
1016
- widgets: z.ZodObject<{
1017
- button: z.ZodObject<{
1018
- fg: z.ZodNumber;
1019
- bg: z.ZodNumber;
1020
- activeFg: z.ZodNumber;
1021
- activeBg: z.ZodNumber;
1022
- }, z.core.$strip>;
1023
- input: z.ZodObject<{
1024
- fg: z.ZodNumber;
1025
- bg: z.ZodNumber;
1026
- placeholderFg: z.ZodNumber;
1027
- cursorFg: z.ZodNumber;
1028
- }, z.core.$strip>;
1029
- list: z.ZodObject<{
1030
- fg: z.ZodNumber;
1031
- bg: z.ZodNumber;
1032
- selectedFg: z.ZodNumber;
1033
- selectedBg: z.ZodNumber;
1034
- }, z.core.$strip>;
1035
- panel: z.ZodObject<{
1036
- fg: z.ZodNumber;
1037
- bg: z.ZodNumber;
1038
- headerFg: z.ZodNumber;
1039
- headerBg: z.ZodNumber;
1040
- }, z.core.$strip>;
1041
- }, z.core.$strip>;
1042
- }, z.core.$strip>;
1043
- /**
1044
- * Registers a theme in the global registry.
1045
- *
1046
- * @param theme - Theme to register
1047
- *
1048
- * @example
1049
- * ```typescript
1050
- * const customTheme = createTheme('custom', {
1051
- * colors: { primary: packColor(255, 0, 0) },
1052
- * });
1053
- * registerTheme(customTheme);
1054
- * ```
1055
- */
1056
- declare function registerTheme(theme: Theme): void;
1057
- /**
1058
- * Retrieves a theme from the registry by name.
1059
- *
1060
- * @param name - Theme name
1061
- * @returns Theme or undefined if not found
1062
- *
1063
- * @example
1064
- * ```typescript
1065
- * const theme = getTheme('dark');
1066
- * if (theme) {
1067
- * console.log(`Primary color: ${theme.colors.primary}`);
1068
- * }
1069
- * ```
1070
- */
1071
- declare function getTheme(name: string): Theme | undefined;
1072
- /**
1073
- * Sets the active theme for a world.
1074
- *
1075
- * @param world - The ECS world
1076
- * @param name - Theme name
1077
- * @throws Error if theme is not registered
1078
- *
1079
- * @example
1080
- * ```typescript
1081
- * setActiveTheme(world, 'dark');
1082
- * ```
1083
- */
1084
- declare function setActiveTheme(world: World, name: string): void;
1085
- /**
1086
- * Gets the active theme for a world.
1087
- * Defaults to 'default' theme if no theme is set.
1088
- *
1089
- * @param world - The ECS world
1090
- * @returns The active theme
1091
- * @throws Error if no themes are registered
1092
- *
1093
- * @example
1094
- * ```typescript
1095
- * const theme = getActiveTheme(world);
1096
- * console.log(`Active theme: ${theme.name}`);
1097
- * ```
1098
- */
1099
- declare function getActiveTheme(world: World): Theme;
1100
- /**
1101
- * Resets the theme registry (useful for testing).
1102
- *
1103
- * @example
1104
- * ```typescript
1105
- * resetThemeRegistry();
1106
- * ```
1107
- */
1108
- declare function resetThemeRegistry(): void;
1109
- /**
1110
- * Creates the default theme with neutral colors.
1111
- *
1112
- * @returns Default theme
1113
- *
1114
- * @example
1115
- * ```typescript
1116
- * const theme = createDefaultTheme();
1117
- * registerTheme(theme);
1118
- * ```
1119
- */
1120
- declare function createDefaultTheme(): Theme;
1121
- /**
1122
- * Creates a dark theme optimized for low-light environments.
1123
- *
1124
- * @returns Dark theme
1125
- *
1126
- * @example
1127
- * ```typescript
1128
- * const theme = createDarkTheme();
1129
- * registerTheme(theme);
1130
- * ```
1131
- */
1132
- declare function createDarkTheme(): Theme;
1133
- /**
1134
- * Creates a light theme optimized for bright environments.
1135
- *
1136
- * @returns Light theme
1137
- *
1138
- * @example
1139
- * ```typescript
1140
- * const theme = createLightTheme();
1141
- * registerTheme(theme);
1142
- * ```
1143
- */
1144
- declare function createLightTheme(): Theme;
1145
- /**
1146
- * Creates a high-contrast theme for maximum accessibility.
1147
- *
1148
- * @returns High-contrast theme
1149
- *
1150
- * @example
1151
- * ```typescript
1152
- * const theme = createHighContrastTheme();
1153
- * registerTheme(theme);
1154
- * ```
1155
- */
1156
- declare function createHighContrastTheme(): Theme;
1157
- /**
1158
- * Creates a custom theme with partial overrides.
1159
- * Missing values are filled from the default theme.
1160
- *
1161
- * @param name - Theme name
1162
- * @param overrides - Partial theme overrides
1163
- * @returns Complete theme
1164
- *
1165
- * @example
1166
- * ```typescript
1167
- * const custom = createTheme('custom', {
1168
- * colors: {
1169
- * primary: packColor(255, 0, 0),
1170
- * },
1171
- * });
1172
- * ```
1173
- */
1174
- declare function createTheme(name: string, overrides: Partial<Omit<Theme, 'name'>>): Theme;
1175
- /**
1176
- * Merges a base theme with partial overrides.
1177
- *
1178
- * @param base - Base theme
1179
- * @param overrides - Partial overrides
1180
- * @returns Merged theme
1181
- *
1182
- * @example
1183
- * ```typescript
1184
- * const custom = mergeThemes(createDefaultTheme(), {
1185
- * colors: { primary: packColor(255, 0, 0) } as Partial<ThemeColors>,
1186
- * });
1187
- * ```
1188
- */
1189
- declare function mergeThemes(base: Theme, overrides: Partial<Omit<Theme, 'name'>>): Theme;
1190
- /**
1191
- * Applies the active theme to an entity.
1192
- * Adds Renderable component if not present.
1193
- *
1194
- * @param world - The ECS world
1195
- * @param eid - Entity to apply theme to
1196
- *
1197
- * @example
1198
- * ```typescript
1199
- * const entity = addEntity(world);
1200
- * applyTheme(world, entity);
1201
- * ```
1202
- */
1203
- declare function applyTheme(world: World, eid: Entity): void;
1204
- /**
1205
- * Applies the active theme to all entities with Renderable components.
1206
- * Useful when switching themes at runtime.
1207
- *
1208
- * @param world - The ECS world
1209
- *
1210
- * @example
1211
- * ```typescript
1212
- * setActiveTheme(world, 'dark');
1213
- * applyThemeToAll(world);
1214
- * ```
1215
- */
1216
- declare function applyThemeToAll(world: World): void;
1217
22
 
1218
23
  /**
1219
24
  * blECSd Terminal UI Library
1220
25
  *
1221
26
  * A modern terminal UI library built on TypeScript and ECS architecture.
1222
27
  *
28
+ * This is the curated top-level API (Tier 1). For full module access, use
29
+ * subpath imports: `blecsd/components`, `blecsd/terminal`, `blecsd/systems`, etc.
30
+ *
1223
31
  * @packageDocumentation
1224
32
  */
1225
- declare const VERSION = "0.4.0";
33
+ declare const VERSION = "0.6.1";
1226
34
 
1227
- export { type ApplyResult, DEFAULT_COLORS, type DeepPartial, type DeepReadonly, Entity, type HighlightColors, type HighlightConfig, HighlightConfigSchema, type InferInput, type InferSchema, type KeysOfType, type MarkupStyle, MarkupStyleSchema, type MaybeThunk, type OptionalKeys, type PackedColor, type RequiredKeys, type StyleProperties, StylePropertiesSchema, type StyleRule, StyleRuleSchema, type StyleSelector, StyleSelectorSchema, type StyledSegment, type Stylesheet, StylesheetSchema, type Subscription, type SupportedLanguage, type Theme, type ThemeBorders, type ThemeColors, type ThemeFocus, ThemeSchema, type ThemeWidgetStyles, VERSION, World, addRule, applyStylesheet, applyStylesheetToEntity, applyTheme, applyThemeToAll, calculateSpecificity, clearRules, createDarkTheme, createDefaultTheme, createHighContrastTheme, createLightTheme, createStylesheet, createTheme, getActiveTheme, getMatchingRules, getTheme, highlightCode, markupLength, matchesSelector, mergeThemes, parseMarkup, registerTheme, removeRules, renderMarkup, resetThemeRegistry, setActiveTheme, stripHighlight, stripMarkup };
35
+ export { VERSION };