blecsd 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +4 -2
- package/README.md +167 -65
- package/dist/3d/index.d.ts +2 -2
- package/dist/3d/index.js +1 -1
- package/dist/audio/index.d.ts +2 -2
- package/dist/{border-D_Jb4ZJV.d.ts → border-DGNDfT6T.d.ts} +20 -10
- package/dist/chunk-25OEBENM.js +3 -0
- package/dist/chunk-26STV7ZS.js +1 -0
- package/dist/chunk-2NMGUEFC.js +4 -0
- package/dist/{chunk-LYSK5S63.js → chunk-4PRDJTCM.js} +1 -1
- package/dist/chunk-5N3O25O7.js +1 -0
- package/dist/chunk-5VEKHA3B.js +5 -0
- package/dist/chunk-6KEM3OS2.js +11 -0
- package/dist/chunk-6PX5R326.js +1 -0
- package/dist/chunk-6XWY6GB7.js +1 -0
- package/dist/chunk-735KKTP3.js +1 -0
- package/dist/chunk-7SWJNDOL.js +26 -0
- package/dist/chunk-APKUNIMB.js +1 -0
- package/dist/{chunk-FGHEFXLK.js → chunk-CJCSZRV6.js} +1 -1
- package/dist/chunk-DMBMCCLN.js +1 -0
- package/dist/chunk-DQTVJITR.js +1 -0
- package/dist/chunk-DSKQ5J4R.js +1 -0
- package/dist/chunk-E4CJRSND.js +1 -0
- package/dist/{chunk-OB66FB4F.js → chunk-EF4DC6IN.js} +1 -1
- package/dist/chunk-EJAKECSN.js +1 -0
- package/dist/chunk-FNQRUMFD.js +1 -0
- package/dist/chunk-GJ3RS2VG.js +1 -0
- package/dist/{chunk-TYMY2TBR.js → chunk-JHCKPCUH.js} +3 -3
- package/dist/{chunk-2UBBZFE4.js → chunk-KTVEMB2I.js} +1 -1
- package/dist/chunk-KYAPE44E.js +8 -0
- package/dist/chunk-LI4Y7TBZ.js +1 -0
- package/dist/chunk-NHOL4BN6.js +1 -0
- package/dist/chunk-NPDPBAW6.js +4 -0
- package/dist/chunk-NPNUUSIB.js +1 -0
- package/dist/chunk-OFRWGW2G.js +1 -0
- package/dist/chunk-OMU5BSAS.js +2 -0
- package/dist/chunk-P3ZLIQJP.js +1 -0
- package/dist/chunk-PWI36BQJ.js +1 -0
- package/dist/{chunk-VNZ6CWJA.js → chunk-QQMUDJ32.js} +2 -2
- package/dist/chunk-R3ICZOE4.js +1 -0
- package/dist/chunk-RJULLVTH.js +1 -0
- package/dist/{chunk-3B7MIVW6.js → chunk-RZ7FGVI6.js} +1 -1
- package/dist/chunk-S6WS46FE.js +1 -0
- package/dist/{chunk-TWSWTBYL.js → chunk-TSARUU56.js} +1 -1
- package/dist/chunk-WJRVUAZR.js +33 -0
- package/dist/{chunk-JKVHO4LH.js → chunk-WY5EZOOL.js} +1 -1
- package/dist/chunk-YY6RZCZH.js +4 -0
- package/dist/chunk-ZPGJCHXH.js +1 -0
- package/dist/chunk-ZPL2J25N.js +1 -0
- package/dist/cli/init.d.ts +1 -1
- package/dist/{componentStorage-DTkj1Qyj.d.ts → componentStorage-CJTh-TPO.d.ts} +1 -1
- package/dist/components/index.d.ts +7137 -5587
- package/dist/components/index.js +1 -1
- package/dist/core/index.d.ts +4138 -3169
- package/dist/core/index.js +1 -1
- package/dist/debug/index.d.ts +491 -98
- package/dist/debug/index.js +1 -1
- package/dist/dirtyTracking-C4v8MmM9.d.ts +235 -0
- package/dist/errors/index.d.ts +12 -12
- package/dist/errors/index.js +1 -1
- package/dist/{events-BbbxkgvX.d.ts → events-9ForpTfM.d.ts} +75 -2
- package/dist/game/index.d.ts +8 -8
- package/dist/game/index.js +1 -1
- package/dist/{gameLoop-BIPW7-OY.d.ts → gameLoop-CSTb7e0L.d.ts} +2 -2
- package/dist/{index-zSGJ2eUk.d.ts → index-DBS5Uefn.d.ts} +2 -2
- package/dist/index.d.ts +1005 -26
- package/dist/index.js +3 -1
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +1 -1
- package/dist/{inputActions-CefRUBuT.d.ts → inputActions-Fyw14_Gm.d.ts} +11 -722
- package/dist/{keyParser-Bwm8-l7v.d.ts → keyParser-m7fWto6g.d.ts} +18 -18
- package/dist/{mouseParser-Cfrbn3AX.d.ts → mouseParser-B7p5ow7K.d.ts} +1 -1
- package/dist/{packedStore-480t2X74.d.ts → packedStore-BgvnEdE7.d.ts} +1 -1
- package/dist/{renderable-jTMOA-GK.d.ts → renderable-CwqGwrEV.d.ts} +9 -9
- package/dist/scheduler-DeeZleia.d.ts +150 -0
- package/dist/systems/index.d.ts +473 -37
- package/dist/systems/index.js +1 -1
- package/dist/terminal/index.d.ts +2481 -2225
- package/dist/terminal/index.js +1 -1
- package/dist/{tilemap-j0twN9-y.d.ts → tilemap-BirMJdbu.d.ts} +2 -2
- package/dist/{types-BcsvoKzf.d.ts → types-CPB4CpbH.d.ts} +2 -2
- package/dist/utils/index.d.ts +28 -27
- package/dist/utils/index.js +1 -1
- package/dist/{virtualScrollback-DvZTRU8a.d.ts → virtualScrollback-D9uLFe8l.d.ts} +4 -4
- package/dist/{virtualViewport-Dx2iJliO.d.ts → virtualViewport-DTSN6jFk.d.ts} +370 -848
- package/dist/widgets/bigText.d.ts +1 -1
- package/dist/widgets/bigText.js +1 -1
- package/dist/widgets/index.d.ts +12079 -5902
- package/dist/widgets/index.js +1 -1
- package/package.json +102 -6
- package/dist/chunk-35I22JJO.js +0 -1
- package/dist/chunk-3APDF6RW.js +0 -1
- package/dist/chunk-3EGGGI5J.js +0 -3
- package/dist/chunk-4GISPPOH.js +0 -33
- package/dist/chunk-4X4N4HNQ.js +0 -2
- package/dist/chunk-6N6BRCEM.js +0 -4
- package/dist/chunk-AXZQAH4X.js +0 -1
- package/dist/chunk-BCADUCOZ.js +0 -1
- package/dist/chunk-CIK4AMUA.js +0 -1
- package/dist/chunk-EAY7B5GL.js +0 -1
- package/dist/chunk-EJ5WVDDZ.js +0 -6
- package/dist/chunk-FMFEOAML.js +0 -1
- package/dist/chunk-FYEBZAWN.js +0 -1
- package/dist/chunk-G7GIWWLE.js +0 -1
- package/dist/chunk-GYHI26UE.js +0 -1
- package/dist/chunk-H2YAOJDW.js +0 -1
- package/dist/chunk-JUWDTH25.js +0 -1
- package/dist/chunk-K2B2OXQ5.js +0 -5
- package/dist/chunk-K3SX2LY5.js +0 -1
- package/dist/chunk-KD55INV7.js +0 -1
- package/dist/chunk-KFAK4A3G.js +0 -1
- package/dist/chunk-LB3JA744.js +0 -19
- package/dist/chunk-LCN2ZITE.js +0 -1
- package/dist/chunk-P6CJO3BC.js +0 -1
- package/dist/chunk-PSXXMBVJ.js +0 -1
- package/dist/chunk-PXXGH3BV.js +0 -1
- package/dist/chunk-SHUC6JWA.js +0 -1
- package/dist/chunk-VCW7EOZ4.js +0 -12
- package/dist/chunk-W5OU7Z6J.js +0 -1
- package/dist/chunk-WHF27JF3.js +0 -4
- package/dist/chunk-WNG4A3K7.js +0 -4
- package/dist/chunk-WY3KY2TR.js +0 -1
- package/dist/chunk-XZA63ZPO.js +0 -1
- package/dist/scheduler-DcfoFuum.d.ts +0 -86
package/dist/index.d.ts
CHANGED
|
@@ -1,44 +1,306 @@
|
|
|
1
|
-
export { i as three } from './index-
|
|
1
|
+
export { i as three } from './index-DBS5Uefn.js';
|
|
2
2
|
export { AudioAdapter, AudioChannel, AudioChannelValue, AudioManager, AudioState, PlayOptions, SoundTrigger, createAudioManager } from './audio/index.js';
|
|
3
|
-
export { AUTO_DIMENSION, Acceleration, AccelerationData, 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_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_OPEN_INDICATOR, DEFAULT_PLACEHOLDER, DEFAULT_RADIO_SELECTED_CHAR, DEFAULT_RADIO_UNSELECTED_CHAR, DEFAULT_SELECTED_MARK, 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_FG, DEFAULT_TRACK_BG, DEFAULT_TRACK_CHAR, DEFAULT_TRACK_CHAR_VERTICAL, DEFAULT_TRACK_FG, DEFAULT_UNCHECKED_CHAR, DEFAULT_VIEWPORT_HEIGHT, DEFAULT_VIEWPORT_WIDTH, DOTS_SPINNER_CHARS, DimensionConstraints, DimensionValue, Dimensions, DimensionsData, Focusable, FocusableData, FocusableOptions, FormFieldValue, FormResetCallback, FormStore, FormSubmitCallback, FormValues, Health, HealthData, HealthOptions, Hierarchy, HierarchyData, InputBuffer, InputBufferData, Interactive, InteractiveData, InteractiveOptions, KeyboardInput, KeyboardInputData, KeyboardInputOptions, Label, LabelData, LabelOptions, LabelPosition, LineSelectionInfo, ModifierFlags, MouseButtons, MouseInput, MouseInputData, MouseInputOptions, NULL_ENTITY, Padding, PaddingData, PaddingOptions, PatrolRoute, PlayAnimationOptions, Point2D, Position, PositionData, 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, 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, Velocity, VelocityData, VelocityOptions, addSpinner, addVelocity, advanceSpinnerFrame, animationStore, appendChild, appendContent, applyAccelerationToEntity, applyFrictionToEntity, applyVelocityToEntity, attachButtonBehavior, attachCheckboxBehavior, attachFormBehavior, attachProgressBarBehavior, attachRadioButtonBehavior, attachRadioSetBehavior, attachSelectBehavior, attachSliderBehavior, attachStateMachine, attachTextInputBehavior, autoRegisterFields, blendShadowColor, blur, blurSlider, blurTextInput, bringToFront, buttonStore, calculateShadowPositions, canSendEvent, centerCameraOn, checkCheckbox, checkboxStore, clampSpeedForEntity, clearAcceleration, clearButtonCallbacks, clearCameraBounds, clearCheckboxCallbacks, clearCheckboxDisplay, clearContent, clearFormCallbacks, clearInputBufferSelection, clearInteractionState, clearInvulnerable, clearKeyboardInput, clearMouseInput, clearProgressBarCallbacks, clearProgressBarDisplay, clearRadioButtonDisplay, clearRadioSetCallbacks, clearSelectCallbacks, clearSelectDisplay, clearSelectSelection, clearSelection, clearSliderCallbacks, clearSliderDisplay, clearTextInputCallbacks, clearTextInputError, clearTextSelection, clearTimerCallbacks, closeSelect, completeProgress, computeChaseDirection, computeFleeDirection, computePatrolDirection, contentStore, createBackgroundCopy, createSelectionState, damage, decodePercentage, decrementProgress, decrementSlider, deselectRadioButton, destroyScreen, detach, detachStateMachine, disableButton, disableCheckbox, disableRadioButton, disableSelect, disableShadow, disableSlider, disableTextInput, emitCancel, emitSubmit, emitValueChange, enableButton, enableCheckbox, enableRadioButton, enableSelect, enableShadow, enableSlider, enableTextInput, encodePercentage, endEditingTextInput, executeCustomBehavior, focus, focusNext, focusNextField, focusPrev, focusPrevField, focusSlider, focusTextInput, forAncestors, forDescendants, formStore, getAcceleration, 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, getDimensions, getEntityAnimation, getEntitySpriteSheet, getFieldName, getFieldValue, getFirstChild, getFocusEffect, getFocusable, getFocusedEntity, getFormFields, getFormTabOrder, getFormValues, getHealth, getHealthPercent, getHierarchy, getHighlightedIndex, getHorizontalPadding, getInputBuffer, getInputBufferText, getInteractive, getKeyboardInput, getLabel, getLabelPosition, getLabelText, getLastChild, getLineSelectionInfo, getMaxLength, getMouseInput, getNextSibling, getNormalizedRange, getNormalizedSelection, getOptionAt, getOptionCount, getPadding, getParent, getPatrolRoute, getPlaceholder, getPosition, getPrevSibling, getPreviousState, getProgress, getProgressBarDisplay, getProgressEmptyChar, getProgressFillChar, getProgressMax, getProgressMin, getProgressOrientation, getProgressPercentage, getRadioButtonChar, getRadioButtonDisplay, getRadioButtonState, getRadioButtonsInSet, getRadioSet, getRadioValue, getResolvedHeight, getResolvedWidth, getRoot, getScreen, getScreenCursor, getScreenData, getScreenFocus, getScreenHover, getScreenSize, getSelectDisplay, getSelectIndicator, getSelectOptions, getSelectState, getSelectValue, getSelectedButton, getSelectedIndex, 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, getVelocity, getVerticalPadding, handleButtonKeyPress, handleCheckboxKeyPress, handleFormKeyPress, handleRadioButtonKeyPress, handleSelectKeyPress, handleSliderKeyPress, handleTextInputKeyPress, hasAcceleration, hasActiveSelection, hasAncestor, hasAnimation, hasBehavior, hasCamera, hasContent, hasDescendant, hasDimensions, hasFocusable, hasHealth, hasHierarchy, hasInputBuffer, hasInputEnabled, hasInteractive, hasKeyboardInput, hasKeysEnabled, hasLabel, hasLabelText, hasMouseEnabled, hasMouseInput, hasPadding, hasPaddingValue, hasPosition, hasScreen, hasScreenSingleton, hasSelection, hasSelectionState, hasShadow, hasSpinner, hasSprite, hasStateMachine, hasTimer, 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, isFocusable, isFocused, isFollowingTarget, isForm, isFormKeysEnabled, isFormSubmitOnEnter, isFullUnicode, isHoverable, isHovered, isInState, isInTabOrder, isInView, isInvulnerable, isKeyable, isLeaf, isLineSelected, isMultiline, isParsingTags, isPercentage, isPressed, isProgressBar, isProgressComplete, isRadioButton, isRadioButtonDisabled, isRadioButtonInState, isRadioSelected, isRadioSet, isRoot, 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, makeFocusable, maskValue, moveBackward, moveBy, moveCameraBy, moveForward, nextFrame, onButtonPress, onCheckboxChange, onFormReset, onFormSubmit, 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, registerFormField, registerScreenSingleton, registerSelectionState, registerSprite, removeAcceleration, removeAnimation, removeBehavior, removeCamera, removeChild, removeHealth, removeInputBuffer, removeKeyboardInput, removeLabel, removeMouseInput, removeSelectionState, removeShadow, removeSpinner, removeSprite, removeTimer, removeVelocity, renderProgressString, renderSliderString, resetAnimationStore, resetBehaviorStore, resetButtonStore, resetCheckboxStore, resetContentStore, resetFocusState, resetForm, resetFormStore, resetLabelStore, resetProgress, resetProgressBarStore, resetRadioButtonStore, resetScreenSingleton, resetSelectStore, resetSelectionStore, resetSliderStore, resetSpinner, resetSpinnerStore, resetSpriteStore, resetTextInputStore, resetTimer, resetTimerStore, resizeScreen, resumeAnimation, resumeTimer, screenToWorld, selectAll, selectHighlighted, selectLine, selectLineRange, selectOptionByIndex, selectOptionByValue, selectRadioButton, selectRadioByValue, selectStore, sendButtonEvent, sendCheckboxEvent, sendEvent, sendRadioButtonEvent, sendSelectEvent, sendSliderEvent, sendTextInputEvent, sendToBack, setAbsolute, setAcceleration, setAnimationDirection, setAnimationLoop, setAnimationSpeed, setAutoPadding, setBehavior, setBehaviorSpeed, setBehaviorTarget, setCamera, setCameraBounds, setCameraDeadZone, setCameraPosition, setCameraTarget, setChase, setCheckboxDisplay, setChecked, setClickable, setConstraints, setContent, setCurrentHealth, setCursorBlinkEnabled, setCursorConfig, setCursorMode, setCursorPos, setCustomBehavior, setDetectionRange, setDimensions, setDraggable, setFieldValue, setFlee, setFocusEffect, setFocusable, setFocusedState, setFrame, setFriction, setFullUnicode, setHealth, setHighlightedIndex, setHoverable, setHovered, setIdle, setInputBuffer, setInputBufferSelection, setInputBufferText, setInteractive, setInvulnerable, setKeyable, setKeyboardInput, setLabel, setLabelOffset, setLabelPosition, setMaxHealth, setMaxSpeed, setMouseInput, setPadding, setPaddingAll, setPaddingHV, setParent, setParseTags, setPatrol, setPosition, setPressed, setProgress, setProgressBarDisplay, setProgressOrientation, setProgressRange, setRadioButtonDisplay, setRadioSet, setRadioValue, setRegen, setScreenCursor, setScreenCursorShape, setScreenCursorVisible, setScreenFocus, setScreenHover, setSelectDisplay, setSelectOptions, setSelection, setSelectionMode, setShadow, setShadowBlend, setShadowChar, setShadowColor, setShadowOffset, setShadowOpacity, setShowPercentage, setShowSliderValue, setShrink, setSliderDisplay, setSliderFromPercentage, setSliderOrientation, setSliderRange, setSliderStep, setSliderToMax, setSliderToMin, setSliderValue, setSpinnerFrames, setSpinnerInterval, setSprite, setSpriteByName, setTabIndex, setText, setTextAlign, setTextInputConfig, setTextInputError, setTextVAlign, setTextWrap, setTimer, setVelocity, setVelocityOptions, shouldShrink, sliderStore, snapshotSelection, spriteStore, startDragging, startEditingTextInput, startSelection, startTimer, stopAnimation, stopDragging, stopEntity, stopTimer, submitForm, swapZIndex, textInputStore, toggleCheckbox, toggleCursorMode, toggleSelect, toggleShadow, uncheckCheckbox, unpackModifiers, unregisterAnimation, unregisterFormField, unregisterSprite, updateAnimationEntity, updateBehaviorTimer, updateCameraFollow, updateEntityMovement, updateHealth, updateSelection, updateSpinner, updateStateAge, updateTimers, worldToScreen } from './components/index.js';
|
|
4
|
-
export { B as BORDER_ASCII, a as BORDER_BOLD, b as BORDER_DOUBLE, c as BORDER_ROUNDED, d as BORDER_SINGLE, e as Border, f as BorderCharset, g as BorderData, h as BorderOptions, i as BorderType, D as DEFAULT_BORDER_BG, j as DEFAULT_BORDER_FG, k as disableAllBorders, l as enableAllBorders, m as getBorder, n as getBorderChar, o as hasBorder, p as hasBorderVisible, s as setBorder, q as setBorderChars } from './border-D_Jb4ZJV.js';
|
|
5
|
-
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-j0twN9-y.js';
|
|
6
|
-
export { C as CellAlign, D as DEFAULT_CELL_BG, a as DEFAULT_CELL_FG, b as DEFAULT_DISABLED_FG, c as DEFAULT_HEADER_BG, d as DEFAULT_HEADER_FG, e as DEFAULT_ITEM_BG, f as DEFAULT_ITEM_FG, g as DEFAULT_SCROLLBACK_LINES, h as DEFAULT_SELECTED_BG, i as DEFAULT_SELECTED_FG, j as DEFAULT_SELECTED_PREFIX, k as DEFAULT_TABLE_BORDER_BG, l as DEFAULT_TABLE_BORDER_FG, m as DEFAULT_TERMINAL_HEIGHT, n as DEFAULT_TERMINAL_WIDTH, o as DEFAULT_UNSELECTED_PREFIX, L as LIST_STATE_MACHINE_CONFIG, p as ListAction, q as ListDisplay, r as ListDisplayOptions, s as ListEvent, t as ListItem, u as ListLazyLoadCallback, v as ListScrollCallback, w as ListScrollInfo, x as ListSelectCallback, y as ListState, z as ListStore, S as ScrollInfoSchema, A as ScrollPercentage, B as ScrollPosition, E as Scrollable, F as ScrollableData, G as ScrollableOptions, H as ScrollbarVisibility, T as Table, I as TableCell, J as TableColumn, K as TableData, M as TableDisplay, N as TableDisplayOptions, O as TableRow, P as TableStore, Q as TerminalBuffer, R as TerminalBufferConfig, U as TerminalBufferConfigSchema, V as TerminalCursorShape, W as TerminalState, X as VirtualViewport, Y as VirtualViewportData, Z as VirtualViewportOptions, _ as VirtualViewportOptionsSchema, $ as VirtualViewportScrollInfo, a0 as VisibleRange, a1 as VisibleRangeSchema, a2 as activateSelected, a3 as addItem, a4 as appendItems, a5 as appendRow, a6 as appendToSearchQuery, a7 as attachListBehavior, a8 as attachTableBehavior, a9 as backspaceSearchQuery, aa as blurList, ab as calculateColumnWidths, ac as canScroll, ad as checkNeedsLoad, ae as clearData, af as clearItems, ag as clearLazyLoadCallback, ah as clearListCallbacks, ai as clearListDisplay, aj as clearListSelection, ak as clearSearchQuery, al as clearTableDisplay, am as clearTerminal, an as clearViewportDirty, ao as detachTableBehavior, ap as disableList, aq as enableList, ar as endListSearch, as as ensureCursorVisible, at as ensureVisible, au as findAndSelectByText, av as findNextMatch, aw as focusList, ax as getCellPadding, ay as getCellValue, az as getColCount, aA as getColumn, aB as getColumns, aC as getCursorLine, aD as getData, aE as getDataAsStrings, aF as getDataRows, aG as getFirstVisible, aH as getHeaderRowCount, aI as getHeaderRows, aJ as getItem, aK as getItemCount, aL as getItems, aM as getLazyLoadCallback, aN as getListDisplay, aO as getListSearchQuery, aP as getListSelectedIndex, aQ as getListState, aR as getLoadingPlaceholder, aS as getRow, aT as getRowCount, aU as getScroll, aV as getScrollInfo, aW as getScrollPercentage, aX as getScrollable, aY as getSelectedItem, aZ as getSelectedLine, a_ as getTableDisplay, a$ as getTerminalBuffer, b0 as getTerminalCells, b1 as getTerminalState, b2 as getTotalCount, b3 as getVirtualScrollInfo, b4 as getVirtualViewport, b5 as getVisibleCount, b6 as getVisibleItems, b7 as getVisibleRange, b8 as handleListKeyPress, b9 as hasCellBorders, ba as hasScrollable, bb as hasTerminalBuffer, bc as hasVirtualViewport, bd as insertRow, be as invalidateViewport, bf as isAtBottom, bg as isAtTop, bh as isLineInRenderRange, bi as isLineVisible, bj as isList, bk as isListDisabled, bl as isListFocused, bm as isListInState, bn as isListInteractive, bo as isListKeysEnabled, bp as isListLoading, bq as isListMouseEnabled, br as isListSearchEnabled, bs as isListSearching, bt as isTable, bu as isViewportDirty, bv as listStore, bw as loadItems, bx as moveViewportCursor, by as onListActivate, bz as onListScroll, bA as onListSearchChange, bB as onListSelect, bC as removeItem, bD as removeRow, bE as removeTerminalBuffer, bF as renderListItems, bG as renderTableLines, bH as renderTerminalToAnsi, bI as resetListStore, bJ as resetTableStore, bK as resetTerminal, bL as resetTerminalBufferStore, bM as resizeTerminalBuffer, bN as scrollBy, bO as scrollByLines, bP as scrollByPages, bQ as scrollPage, bR as scrollTerminalDown, bS as scrollTerminalToBottom, bT as scrollTerminalToTop, bU as scrollTerminalUp, bV as scrollTo, bW as scrollToBottom, bX as scrollToLine, bY as scrollToTop, bZ as scrollViewportToBottom, b_ as scrollViewportToTop, b$ as selectByValue, c0 as selectFirst, c1 as selectLast, c2 as selectNext, c3 as selectPrev, c4 as sendListEvent, c5 as setCellBorders, c6 as setCellPadding, c7 as setCursorLine, c8 as setCursorPosition, c9 as setData, ca as setFirstVisible, cb as setHeaderRowCount, cc as setHeaders, cd as setItems, ce as setLazyLoadCallback, cf as setListDisplay, cg as setListInteractive, ch as setListKeys, ci as setListLoading, cj as setListMouse, ck as setListSearchEnabled, cl as setListSearchQuery, cm as setListSelectedIndex, cn as setLoadingPlaceholder, co as setOverscan, cp as setScroll, cq as setScrollSize, cr as setScrollable, cs as setScrollbarVisibility, ct as setSelectedLine, cu as setTableDisplay, cv as setTerminalBuffer, cw as setTotalCount, cx as setTotalLineCount, cy as setViewportStart, cz as setVirtualViewport, cA as setVisibleCount, cB as setVisibleLineCount, cC as startListSearch, cD as tableStore, cE as updateItem, cF as writeToTerminal } from './virtualViewport-Dx2iJliO.js';
|
|
7
|
-
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-jTMOA-GK.js';
|
|
8
|
-
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, DeserializeOptions, DeserializeResult, DestroyEvent, DestroyOptions, DetachEvent, DirtyStats, DirtyTrackerData, DockingBuffer, DockingCell, DynamicValue, EffectConfig, EffectivePaddingData, EffectsConfig, EntityDataMap, EntityHandle, EntityPool, GetEntityEventBus, 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, LifecycleEvent, LifecycleEventMap, LifecycleEventName, MAX_Z_INDEX, MIN_Z_INDEX, NON_INHERITING_PROPERTIES, Overflow, OverflowValue, PackedQueryAdapter, PackedQueryAdapterConfig, PackedQueryAdapterConfigSchema, PackedQueryRegistration, PackedQueryRegistrationSchema, ParsedKey, PhaseId, PhaseManager, PositionValue, PositionValueSchema, RecyclingSystemStats, RelativePosition, RemoveEvent, ReparentEvent, ResolvedEffect, SERIALIZATION_VERSION, Scene, SceneManager, SceneTransition, SerializeOptions, SerializedComponentData, SerializedEntity, SerializedWorld, SetPositionCacheOptions, ShrinkBox, StartupReport, SubsystemEntry, TotalPadding, TransitionState, 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, clearDirtyTracking, clearDockingContext, clearEffectState, clearEffects, clearEntityData, clearIgnoredKeys, clearLifecycleEventBuses, clearSerializableRegistry, clearStoredStyle, clearStyleCache, clearWorldAdapter, cloneSnapshot, computeInheritedStyle, createBorderDockingContext, createBubbleableEvent, createClickableCache, createClipRect, createClipStack, createDirtyTracker, createEntityEventBusStore, createEntityPool, createFadeTransition, createInfiniteClipRect, createKeyBindingRegistry, createKeyLockScope, createKeyLockState, createPackedQueryAdapter, createPhaseManager, createSceneManager, createSceneSystem, createSlideTransition, createWorld, createWorldAdapter, deallocateEntity, defaultPhaseManager, deleteEntityData, deserializeWorld, deserializeWorldFromJSON, destroyAllChildren, destroyEntity, destroyWorld, detectAllJunctions, detectBorderStyle, detectCapabilities, detectJunctions, doesPropertyInherit, emitAdopt, emitAttach, emitDestroy, emitDetach, emitRemove, emitReparent, entityExists, evaluateCondition, filterClickable, filterDirty, filterFocusable, filterVisible, filterVisibleDirty, findPropertySource, flushDestroyQueue, forceFullRedrawFlag, formatKey, formatKeyEvent, formatStartupReport, 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, getDirtyRegions, 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, 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, hasPressEffectApplied, hasStoredStyle, hasValidPositionCache, hasValidStyleCache, hasZOrder, hitTest, hitTestAll, hitTestDetailed, initSubsystem, initSubsystemsUpTo, intersectClipRects, invalidateAllStyleCaches, invalidateClickableCache, invalidatePositionCache, invalidatePositionCacheTree, invalidateStyleCache, isBorderChar, isBuiltinPhase, isCacheDirty, isCellDirty, isClipRectEmpty, isDefaultColor, isEntityAlive, isEntityDirty, isJunctionChar, isKeyGrabbed, isKeyIgnored, isKeyLocked, isKeywordPosition, isMarkedForDestruction, isPackedQueryAdapter, isPercentagePosition, isPointInCachedBounds, isPointInEntity, isPointInInnerBounds, isPointVisible, isRectVisible, lazy, listBindings, lockAllKeys, markAllEntitiesDirty, markCellDirty, markEntityDirty, markRegionDirty, 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, registerEdge, registerRectBorder, registerSerializable, registerSubsystem, releaseAllGrabbedKeys, releaseEntity, releaseKeys, removeAllEffects, removeComponent, removeDisabledEffect, removeEntity, removeEntityFromTracking, removeFocusEffect, removeHoverEffect, removeIgnoredKeys, removeLifecycleEventBus, removePressEffect, resetDisposalState, resetEntityPool, resetKeyLockState, resetSubsystems, resetWorld, resetZOrder, resizeDirtyTracker, resizeDockingContext, resolveEffectConfig, resolvePosition, resolvePositionClamped, resolveStyle, serializeWorld, serializeWorldToJSON, setAbsolutePosition, setBack, setEffects, setEntityData, setEntityDataBulk, setFront, setIgnoredKeys, setKeyLockFilter, setLocalZ, setOverflow, setPositionCache, setRelativePosition, setWorldAdapter, setZIndex, shouldBlockKeyEvent, shouldClipContent, sortByDepth, sortByTabIndex, sortByZIndex, syncEffects, unlockAllKeys, unregisterArchetype, unregisterBinding, unregisterSerializable, updateCachedScrollBase, updateClickableCache, updateEntityBounds, updateEntityData, withStore } from './core/index.js';
|
|
9
|
-
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 createBoxEntity, _ as createButtonEntity, $ as createCheckboxEntity, a0 as createFormEntity, a1 as createInputActionManager, a2 as createInputEntity, a3 as createInputEventBuffer, a4 as createInputState, a5 as createListEntity, a6 as createProgressBarEntity, a7 as createRadioButtonEntity, a8 as createRadioSetEntity, a9 as createScreenEntity, aa as createSelectEntity, ab as createSliderEntity, ac as createTextEntity, ad as createTextareaEntity, ae as createTextboxEntity, af as drainAllEvents, ag as drainKeys, ah as drainMouse, ai as getLatencyStats, aj as getMovementDirection, ak as getPendingCount, al as getPendingKeyCount, am as getPendingMouseCount, an as globalInputBuffer, ao as hasPendingEvents, ap as isAllKeysDown, aq as isAnyKeyDown, ar as isAnyKeyPressed, as as isLatencyAcceptable, at as isProcessingTimeAcceptable, au as peekEvents, av as peekKeys, aw as peekMouse, ax as pushKeyEvent, ay as pushMouseEvent, az as recordLatency, aA as recordLatencyBatch, aB as resetLatencyStats, aC as resetStats } from './inputActions-CefRUBuT.js';
|
|
10
|
-
export { E as EventBus, a as EventHandler, b as EventMap, S as ScreenEventMap, U as UIEventMap, c as createEventBus } from './events-BbbxkgvX.js';
|
|
11
|
-
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-BIPW7-OY.js';
|
|
12
|
-
export { S as Scheduler, c as createScheduler, g as getDeltaTime } from './scheduler-DcfoFuum.js';
|
|
13
|
-
export { P as PackedHandle, a 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-480t2X74.js';
|
|
14
|
-
export { E as Entity, L as LoopPhase, S as System, U as Unsubscribe, W as World } from './types-BcsvoKzf.js';
|
|
15
|
-
export { AllocationTracker, ComponentInfo, DebugOverlay, DebugOverlayConfig, EntityInspection, FrameRateGraph, KNOWN_COMPONENTS, LeakWarning, MemoryDiff, MemoryProfiler, MemoryProfilerConfig, MemorySnapshot, MiniProfiler, PerformanceStats, WorldInspection, createDebugOverlay, createFrameRateGraph, createInputLogger, createMemoryProfiler, createMiniProfiler, enableDebugBounds, enableSystemTiming, formatEntityInspection, formatWorldInspection, getDebugBoundsConfig, getDebugBoundsEntities, getEntitySummary, getPerformanceStats, getSystemTimings, inspectEntity, inspectWorld, isDebugBoundsEnabled, isSystemTimingEnabled, logEntity, logWorld, recordSystemTime, resetPerformanceStatsCache, resetSystemTimings, timedSystem } from './debug/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';
|
|
16
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';
|
|
17
5
|
export { FixedUpdateCallback, Game, GameConfig, GameConfigSchema, RenderCallback, ResolvedGameConfig, UpdateCallback, createGame } from './game/index.js';
|
|
18
6
|
export { ViAction, ViModeConfig, ViModeState, ViState, createViConfig, createViState, isViKey, processViKey, resolveJumpTarget, resolvePageAmount } from './input/index.js';
|
|
19
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';
|
|
20
|
-
|
|
21
|
-
export { ATTR_BLINK, ATTR_BOLD, ATTR_DIM, ATTR_HIDDEN, ATTR_INVERSE, ATTR_ITALIC, ATTR_STRIKETHROUGH, ATTR_UNDERLINE, 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, ColorState, ColorSupport, CursorManager, CursorPosition, CursorPositionResponse, CursorPositionSchema, CursorShape, CursorShapeType, DCS, DEC_SPECIAL_GRAPHICS, DEFAULT_CLIPBOARD_MAX_SIZE, DEFAULT_COLOR, DEFAULT_INPUT_SANITIZE_OPTIONS, DEFAULT_QUERY_TIMEOUT, DEFAULT_SANITIZE_OPTIONS, DebugLogger, DebugLoggerConfig, DeviceStatusResponse, ESC, EditorOptions, ExecOptions, ExecResult, ExitHandler, ExitInfo, ExitReason, FocusHandler, 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, 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, OptimizedOutputBufferOptions, OutputBuffer, OutputBufferData, OutputBufferOptions, OutputStats, ParsedResponse, PasteConfig, PasteConfigSchema, PasteEvent, PasteEventSchema, PasteHandler, PasteParseResult, PasteProcessResult, PasteState, PrimaryDAResponse, RGBColor, 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, beginFrame, boxDrawing, bracketedPaste, buildGpmConnectPacket, capabilityQuery, categorizeEscapeSequences, charset, chunkText, clearLine, clearLog, clearOutputBuffer, clearOutputScreen, clearToEnd, clipboard, configureDebugLogger, containsEscapeSequences, createArtificialCursor, createCapabilityNegotiator, createClipboardManager, createCursorCell, createCursorManager, createDebugLogger, createGpmClient, createInputControl, createInputHandler, createKittyConfig, createKittyProtocolState, createOutputBuffer, createPasteState, createResizeHandler, createSafeStringBuilder, createSuspendManager, createSynchronizedOutput, createThrottledResize, createTput, cursor, deactivateProtocol, debounceResize, debugLoggers, destroyInputControl, detectVirtualConsole, disableBracketedPaste, disableInput, disableKeys, disableMouse, disableResizeHandling, disableWorldInput, disableWorldKeys, disableWorldMouse, dumpRaw, dumpTerminalState, enableBracketedPaste, enableInput, enableKeys, enableMouse, enableResizeHandling, enableWorldInput, enableWorldKeys, enableWorldMouse, endFrame, estimateBytesSaved, exec, execSync, extractEscapeSequences, extractPasteContent, findPasteEnd, flushToStream, generatePopSequence, generatePushSequence, generateQuerySequence, getBufferLength, getColorDepth, getContents, getCursorAt, getDefaultEditor, getDefaultNegotiator, getDefaultTput, getDefaultXtermData, getInputControl, getInputControlEventBus, getLogFile, getMouseMode, getOutputStats, getPrimaryCursor, getResizeEventBus, getResizeHandler, getTerminalCapabilities, getTerminalInfo, getTerminalVersion, getVisibleCursors, gpmButtonToMouseButton, gpmEventToMouseEvent, gpmTypeToMouseAction, hasCapability, hasControlChars, hasNullBytes, hideCursor, 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, isTextAreaSize, isTmux, isTrueColorSupported, isUnicodeSupported, isUnknown, isVSCode, isVTE, isValidUtf8String, isWindowPosition, isWindowSizePixels, isWindowState, isWindowTitle, isWindowsTerminal, isXterm, kittyKeyToName, locator, mediaCopy, mightBePasteStart, mouse, moveCursor, moveCursorBy, moveCursorTo, onExit, parseGpmEventBuffer, parseGpmModifiers, parseKittyKeyEvent, parseKittyQueryResponse, parseResponse, processPasteBuffer, processUtils, readEditor, rectangle, registerForCleanup, removeCursor, renderCursor, replaceInvalidUtf16, resetBuffer, resetColorState, resetCursorBlink, resetDefaultNegotiator, resetDefaultTput, resetInputControlEventBus, resetOutputStats, resetResizeEventBus, restrictToAscii, sanitizeForTerminal, sanitizePastedText, sanitizeTextInput, sanitizeTextInputDetailed, screen, setAttributes, setBackground, setCursorBlink, setCursorColors, setCursorShape, setCursorVisible, setForeground, setMouseMode, setScreenSize, setupSigwinchHandler, showCursor, showTerminalCursor, spawn, streamPaste, stripC1Controls, stripControlChars, stripNullBytes, style, suspend, suspendSequences, sync, throttleResize, title, tmux, triggerResize, truncatePaste, unregisterFromCleanup, updateAllCursorBlinks, updateCursorBlink, updateCursorInManager, updateProtocolState, windowOps, writeCellAt, writeChar, writeRaw, writeStringAt } from './terminal/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';
|
|
22
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';
|
|
23
|
-
export {
|
|
24
|
-
export { F as FocusEvent,
|
|
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';
|
|
25
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';
|
|
26
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';
|
|
27
30
|
export { D as DoubleBufferData, c as createDoubleBuffer } from './doubleBuffer-CKQFmlPN.js';
|
|
28
|
-
import { z } from 'zod';
|
|
29
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';
|
|
30
32
|
export { c as colorToHex, h as hexToColor, p as packColor, a as parseColor, u as unpackColor } from './color-B78w3zH-.js';
|
|
31
|
-
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-
|
|
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';
|
|
32
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';
|
|
33
|
-
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-
|
|
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';
|
|
34
37
|
export { BigText, BigTextConfig, BigTextConfigSchema, BigTextWidget, FontDefinition, createBigText, isBigText, resetBigTextStore } from './widgets/bigText.js';
|
|
35
|
-
export { Align, AlignItems, BorderConfig, BorderConfigSchema, Box, BoxWidget, CLOSE_BUTTON_CHAR, COLLAPSE_CHAR, ChildLayoutData, 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_TOOLTIP_BG, DEFAULT_TOOLTIP_BORDER, DEFAULT_TOOLTIP_FG, DEFAULT_VERTICAL_CHAR, DividerState, EXPAND_CHAR, FileEntry, FileManager, FileManagerBorderConfig, FileManagerConfig, FileManagerConfigSchema, FileManagerPaddingConfig, FileManagerWidget, FlattenedNode, FlexDirection, HoverTextConfig, HoverTextManager, HoverTextManagerConfig, Image, ImageConfig, ImageConfigSchema, ImageType, ImageWidget, JustifyContent, Layout, LayoutConfig, LayoutConfigSchema, LayoutMode, LayoutPosition, LayoutWidget, Line, LineConfig, LineConfigSchema, LineOrientation, 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, PaddingConfig, PaneScrollState, PaneState, PaneViewport, Panel, PanelAction, PanelBorderConfig, PanelConfig, PanelConfigSchema, PanelContentStyle, PanelStyleConfig, PanelTitleStyle, PanelWidget, Prompt, PromptBorderConfig, PromptBorderConfigSchema, PromptConfig, PromptConfigSchema, PromptPaddingConfig, PromptPaddingConfigSchema, PromptValidator, PromptWidget, PtyOptions, Question, QuestionBorderConfig, QuestionConfig, QuestionConfigSchema, QuestionPaddingConfig, QuestionWidget, ScrollableBox, ScrollableBoxConfig, ScrollableBoxConfigSchema, ScrollableBoxWidget, ScrollableTextConfig, ScrollableTextWidget, ScrollbarConfig, ScrollbarMode, SharedTextBuffer, SplitDirection, SplitPane, SplitPaneConfig, SplitPaneConfigSchema, SplitPaneDimensionValue, SplitPanePositionValue, SplitPaneWidget, SplitResizeEvent, StreamDirtyRegion, StreamProgress, StreamingTextConfig, StreamingTextConfigSchema, StreamingTextState, StreamingTextWidget, TAB_CLOSE_CHAR, TAB_SEPARATOR, TabConfig, TabData, TabPosition, TabStyleConfig, TableStyleConfig, TableWidget, TableWidgetConfig, TableWidgetConfigSchema, Tabs, TabsAction, TabsBorderConfig, TabsConfig, TabsConfigSchema, TabsContentStyleConfig, TabsStyleConfig, TabsWidget, Terminal, TerminalBorderConfig, TerminalConfig, TerminalConfigSchema, TerminalStyle, TerminalWidget, Text, TextWidget, TitleAlign, TooltipPosition, TooltipRenderData, TooltipState, TooltipStyle, TreeNode, TreeStyleConfig, TreeWidget, TreeWidgetConfig, TreeWidgetConfigSchema, VAlign, Video, VideoConfig, VideoConfigSchema, VideoOutputDriver, VideoPlaybackState, VideoPlayer, VideoProcessHandle, VideoProcessSpawner, VideoWidget, Viewport3DTag, Viewport3DWidget, VirtualizedList, VirtualizedListConfig, VirtualizedListConfigSchema, VirtualizedListStyle, VirtualizedListStyleSchema, WidgetFactory, WidgetRegistration, WidgetRegistry, appendToState, ask, buildMplayerArgs, buildMpvArgs, buildPlayerArgs, calculateFlexLayout, calculateGridLayout, calculateInlineLayout, clearAllHoverText, clearHoverText, clearLines, clearState, closeAllModals, closeModal, confirm, createBox, createFileManager, createHoverTextManager, createImage, createLayout, createLine, createList, createListTable, createListbar, createLoading, createLog, createMessage, createModal, createPanel, createPrompt, createQuestion, createScrollableBox, createScrollableText, createSharedTextBuffer, createSplitPane, createStreamingState, createStreamingText, createTable, createTabs, createTerminal, createText, createTree, createVideo, createViewport3D, createVirtualizedList, createWidgetRegistry, defaultRegistry, deleteBottom, deleteLine, deleteTop, detectVideoPlayer, fileManagerStateMap, getActiveTabIndex, getBaseLine, getBoxContent, getDividerRenderInfo, getHoverText, getHoverTextCount, getImageBitmap, getImageCellMap, getLayoutMode, getLineChar, getLineOrientation, getModalStack, getPanelTitle, getPanelTitleAlign, getScrollback, getSharedTextBuffer, getSplitDirection, getStreamVisibleLines, getTabCount, getTabPosition, getTextContent, getVideoPlaybackState, getVideoPlayer, getWidgetTypes, getWidgetsByTag, handleFileManagerKey, handleMessageClick, handleMessageKey, handleModalBackdropClick, handleModalEscape, handlePromptKey, handleQuestionKey, handleTerminalKey, handleVirtualizedListKey, handleVirtualizedListWheel, hasHoverText, hideLoading, hitTestDivider, insertBottom, insertLine, insertTop, isBox, isDismissOnClick, isDismissOnKey, isFileManager, isImage, isKeysScrollEnabled, isLayout, isLine, isListTableWidget, isListWidget, isListbarWidget, isLoadingWidget, isLog, isLogKeysScrollEnabled, isLogMouseScrollEnabled, isMessage, isModal, isModalOpen, isMouseScrollEnabled, isPanel, isPanelCollapsed, isPrompt, isQuestion, isScrollableBox, isScrollableBox as isScrollableText, isSplitPane, isTableWidget, isTabs, isTerminal, isTerminalKeysEnabled, isTerminalMouseEnabled, isText, isTreeWidget, isVideo, isViewport3DWidget, isVirtualizedList, isWidgetType, openModal, popLine, prompt, promptStateMap, pushLine, questionStateMap, registerBuiltinWidgets, renderPanelTitleBar, renderTabBar, replaceLines, resetBoxStore, resetFileManagerStore, resetHoverTextStore, resetImageStore, resetLayoutStore, resetLineStore, resetListbarStore, resetLoadingStore, resetLogStore, resetMessageStore, resetModalStore, resetPanelStore, resetPromptStore, resetQuestionStore, resetScrollableBoxStore, resetSplitPaneStore, resetTabsStore, resetTerminalStore, resetTextStore, resetTreeStore, resetVideoStore, sendPauseCommand, sendSeekCommand, setBaseLine, setBoxContent, setHoverText, setLine, setLineChar, setLines, setLoadingMessage, setPanelTitle, setReadDirFn, setTextContent, shiftLine, showError, showInfo, showLoading, showSuccess, showWarning, spliceLines, stripAnsiSequences, unshiftLine, updateLoadingAnimation, wrapLine } from './widgets/index.js';
|
|
36
38
|
export { BitmapFont, BitmapFontSchema, CharBitmap, CharBitmapSchema, FontName, FontNotFoundError, RenderCharOptions, createFontNotFoundError, getCharBitmap, loadFont, renderChar } from './widgets/fonts/index.js';
|
|
37
39
|
export { ComponentRef, QueryResult, QueryTerm } from 'bitecs';
|
|
38
40
|
import './viewport3d-xI33-_wq.js';
|
|
39
41
|
import 'node:stream';
|
|
40
42
|
import 'node:child_process';
|
|
41
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
|
+
|
|
42
304
|
/**
|
|
43
305
|
* TypeScript type exports for blECSd
|
|
44
306
|
*
|
|
@@ -237,12 +499,729 @@ type PackedColor = number;
|
|
|
237
499
|
type Subscription = () => void;
|
|
238
500
|
|
|
239
501
|
/**
|
|
240
|
-
*
|
|
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
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* blECSd Terminal UI Library
|
|
241
1220
|
*
|
|
242
|
-
* A modern terminal
|
|
1221
|
+
* A modern terminal UI library built on TypeScript and ECS architecture.
|
|
243
1222
|
*
|
|
244
1223
|
* @packageDocumentation
|
|
245
1224
|
*/
|
|
246
|
-
declare const VERSION = "0.
|
|
1225
|
+
declare const VERSION = "0.4.0";
|
|
247
1226
|
|
|
248
|
-
export { type DeepPartial, type DeepReadonly, type InferInput, type InferSchema, type KeysOfType, type MaybeThunk, type OptionalKeys, type PackedColor, type RequiredKeys, type Subscription, VERSION };
|
|
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 };
|