silvery 0.19.2 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -4
- package/dist/Text-Lq0dmj8-.mjs +239 -0
- package/dist/Text-Lq0dmj8-.mjs.map +1 -0
- package/dist/UPNG-Bo33r8rA.mjs +3 -0
- package/dist/UPNG-DosRPdF4.mjs +5075 -0
- package/dist/UPNG-DosRPdF4.mjs.map +1 -0
- package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs +6 -0
- package/dist/__vite-browser-external-2447137e-D_JM6skp.mjs.map +1 -0
- package/dist/{animation-Cn64yepo.mjs → animation-ZMN2_XKv.mjs} +2 -2
- package/dist/animation-ZMN2_XKv.mjs.map +1 -0
- package/dist/{ansi-Cc33mW54.d.mts → ansi-2Xn0yatP.d.mts} +1 -1
- package/dist/{ansi-Cc33mW54.d.mts.map → ansi-2Xn0yatP.d.mts.map} +1 -1
- package/dist/{ansi-CLOitHKx.mjs → ansi-D1KQMAbf.mjs} +1 -1
- package/dist/{ansi-CLOitHKx.mjs.map → ansi-D1KQMAbf.mjs.map} +1 -1
- package/dist/ansi-yC4RyBNY.mjs +22441 -0
- package/dist/ansi-yC4RyBNY.mjs.map +1 -0
- package/dist/apng-CR08rIaH.mjs +58 -0
- package/dist/apng-CR08rIaH.mjs.map +1 -0
- package/dist/apng-DaHfVaVI.mjs +3 -0
- package/dist/assets/resvgjs.darwin-arm64-BtufyGW1.node +0 -0
- package/dist/assets/skia.darwin-arm64-DQs5sT6N.node +0 -0
- package/dist/backend-B-WYLUib.mjs +13396 -0
- package/dist/backend-B-WYLUib.mjs.map +1 -0
- package/dist/backends-CUtan80W.mjs +3 -0
- package/dist/backends-DIVYzKqd.mjs +1083 -0
- package/dist/backends-DIVYzKqd.mjs.map +1 -0
- package/dist/bound-term-0sPrrzH1.d.mts +4640 -0
- package/dist/bound-term-0sPrrzH1.d.mts.map +1 -0
- package/dist/canvas-1v7dPT-_.mjs +3 -0
- package/dist/canvas-CSuPOMNt.mjs +1442 -0
- package/dist/canvas-CSuPOMNt.mjs.map +1 -0
- package/dist/{chunk-Vs_PY4HZ.mjs → chunk-BSw8zbkd.mjs} +1 -1
- package/dist/cli-dvo0r2fs.mjs +4 -0
- package/dist/compare-CQodSH4G.mjs +376 -0
- package/dist/compare-CQodSH4G.mjs.map +1 -0
- package/dist/compare-DHlcxEYA.mjs +3 -0
- package/dist/context-BU5LkkIy.mjs.map +1 -1
- package/dist/devtools-CJdt5H0X.mjs +2 -0
- package/dist/{devtools-DxkSLXDA.mjs → devtools-DcQjgyjL.mjs} +5 -4
- package/dist/{devtools-DxkSLXDA.mjs.map → devtools-DcQjgyjL.mjs.map} +1 -1
- package/dist/easing-BI-ASGMO.d.mts +24 -0
- package/dist/easing-BI-ASGMO.d.mts.map +1 -0
- package/dist/{eta-Bb3RH3wh.mjs → eta-CJlGH06n.mjs} +1 -1
- package/dist/{eta-Bb3RH3wh.mjs.map → eta-CJlGH06n.mjs.map} +1 -1
- package/dist/flexily-zero-adapter-C3Vj0fPt.mjs +306 -0
- package/dist/flexily-zero-adapter-C3Vj0fPt.mjs.map +1 -0
- package/dist/{flexily-zero-adapter-CMxXhdOL.mjs → flexily-zero-adapter-C4lW_Ov5.mjs} +1 -1
- package/dist/fonts-BFmhXDv7.mjs +88 -0
- package/dist/fonts-BFmhXDv7.mjs.map +1 -0
- package/dist/gif-C_AjaT9d.mjs +188 -0
- package/dist/gif-C_AjaT9d.mjs.map +1 -0
- package/dist/gif-DaC4XrxA.mjs +3 -0
- package/dist/gifenc-BOUT-KFB.mjs +730 -0
- package/dist/gifenc-BOUT-KFB.mjs.map +1 -0
- package/dist/image-C2Birh2x.mjs +1252 -0
- package/dist/image-C2Birh2x.mjs.map +1 -0
- package/dist/index-BUMxS65f.d.mts +453 -0
- package/dist/index-BUMxS65f.d.mts.map +1 -0
- package/dist/{index-D3saHouR.d.mts → index-CSQf13CI.d.mts} +1057 -1133
- package/dist/index-CSQf13CI.d.mts.map +1 -0
- package/dist/{index-BXslOebb.d.mts → index-Cl9KKjQ_.d.mts} +4919 -3921
- package/dist/index-Cl9KKjQ_.d.mts.map +1 -0
- package/dist/index-XbNrPhWl.d.mts +336 -0
- package/dist/index-XbNrPhWl.d.mts.map +1 -0
- package/dist/index.d.mts +8 -5
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -12
- package/dist/index.mjs.map +1 -1
- package/dist/key-mapping-CS-YD_cD.mjs +132 -0
- package/dist/key-mapping-CS-YD_cD.mjs.map +1 -0
- package/dist/key-mapping-Yn-Jgrij.mjs +3 -0
- package/dist/{layout-engine-B6Cdz1yZ.mjs → layout-engine-C07LEXWT.mjs} +1 -1
- package/dist/layout-engine-C2px0RJE.mjs +67 -0
- package/dist/layout-engine-C2px0RJE.mjs.map +1 -0
- package/dist/layout-signals-Cnw6xk8Q.mjs +988 -0
- package/dist/layout-signals-Cnw6xk8Q.mjs.map +1 -0
- package/dist/mouse-events-Dki3ISIp.mjs +1044 -0
- package/dist/mouse-events-Dki3ISIp.mjs.map +1 -0
- package/dist/{multi-progress-Bq9Oi_WI.mjs → multi-progress-CIRjrzma.mjs} +3 -3
- package/dist/{multi-progress-Bq9Oi_WI.mjs.map → multi-progress-CIRjrzma.mjs.map} +1 -1
- package/dist/{multi-progress-DAQC7eap.d.mts → multi-progress-DHZ2xUT2.d.mts} +2 -2
- package/dist/{multi-progress-DAQC7eap.d.mts.map → multi-progress-DHZ2xUT2.d.mts.map} +1 -1
- package/dist/{node-BeWlnCPY.mjs → node-CjM5Rt-M.mjs} +4 -4
- package/dist/node-CjM5Rt-M.mjs.map +1 -0
- package/dist/playwright-D5YiZcNS.mjs +76397 -0
- package/dist/playwright-D5YiZcNS.mjs.map +1 -0
- package/dist/png-codec-Dp84742B.mjs +36 -0
- package/dist/png-codec-Dp84742B.mjs.map +1 -0
- package/dist/png-codec-QwOtJ8Zs.mjs +3 -0
- package/dist/progress-DB_Xo071.mjs +675 -0
- package/dist/progress-DB_Xo071.mjs.map +1 -0
- package/dist/{progress-bar-CXE5Qfkd.mjs → progress-bar-oJwq22CR.mjs} +4 -4
- package/dist/{progress-bar-CXE5Qfkd.mjs.map → progress-bar-oJwq22CR.mjs.map} +1 -1
- package/dist/rasterizer-BRXrDdWx.mjs +3 -0
- package/dist/rasterizer-CpEhJvdR.mjs +296 -0
- package/dist/rasterizer-CpEhJvdR.mjs.map +1 -0
- package/dist/reconciler-DldIJB93.mjs +2083 -0
- package/dist/reconciler-DldIJB93.mjs.map +1 -0
- package/dist/{render-string-CDCeYkS3.mjs → render-string-BcoCpjCB.mjs} +1 -1
- package/dist/{render-string-Darrg7ku.mjs → render-string-DkQacASz.mjs} +2707 -549
- package/dist/render-string-DkQacASz.mjs.map +1 -0
- package/dist/resvg-js-DkOndZI3.mjs +203 -0
- package/dist/resvg-js-DkOndZI3.mjs.map +1 -0
- package/dist/runtime.d.mts +3 -2
- package/dist/runtime.mjs +3 -3
- package/dist/schemes-JjNp4aSl.mjs +2611 -0
- package/dist/schemes-JjNp4aSl.mjs.map +1 -0
- package/dist/{spinner-CGo34vyR.d.mts → spinner-CZINHpkV.d.mts} +2 -2
- package/dist/{spinner-CGo34vyR.d.mts.map → spinner-CZINHpkV.d.mts.map} +1 -1
- package/dist/{spinner-CeOmcuw_.mjs → spinner-D9lrHr8s.mjs} +7 -7
- package/dist/spinner-D9lrHr8s.mjs.map +1 -0
- package/dist/src-5w9QR6_8.mjs +1071 -0
- package/dist/src-5w9QR6_8.mjs.map +1 -0
- package/dist/src-BNTToU7l.mjs +4387 -0
- package/dist/src-BNTToU7l.mjs.map +1 -0
- package/dist/{src-CF-6UN01.mjs → src-BR4xNwdG.mjs} +10436 -2622
- package/dist/src-BR4xNwdG.mjs.map +1 -0
- package/dist/{types-Bk2yw9Qj.mjs → src-DKp-_OFG.mjs} +34 -94
- package/dist/src-DKp-_OFG.mjs.map +1 -0
- package/dist/src-bt8wSrfJ.mjs +258 -0
- package/dist/src-bt8wSrfJ.mjs.map +1 -0
- package/dist/src-e33Y6kNJ.mjs +3 -0
- package/dist/src-iDwu25UD.mjs +1814 -0
- package/dist/src-iDwu25UD.mjs.map +1 -0
- package/dist/steps-Bp2uNqnn.d.mts +202 -0
- package/dist/steps-Bp2uNqnn.d.mts.map +1 -0
- package/dist/svg-15lZZzxq.mjs +486 -0
- package/dist/svg-15lZZzxq.mjs.map +1 -0
- package/dist/svg-Cz0UXcDj.mjs +255 -0
- package/dist/svg-Cz0UXcDj.mjs.map +1 -0
- package/dist/svg-DY72a4HK.mjs +3 -0
- package/dist/svg-g1D6ErwR.d.mts +82 -0
- package/dist/svg-g1D6ErwR.d.mts.map +1 -0
- package/dist/term.d.mts +3 -0
- package/dist/term.mjs +9 -0
- package/dist/term.mjs.map +1 -0
- package/dist/theme.d.mts +95 -2
- package/dist/theme.d.mts.map +1 -0
- package/dist/theme.mjs +9 -3
- package/dist/theme.mjs.map +1 -0
- package/dist/{types-BH_v3iMT.d.mts → types-kt_fKR37.d.mts} +2 -15
- package/dist/types-kt_fKR37.d.mts.map +1 -0
- package/dist/ui/animation.d.mts +2 -1
- package/dist/ui/animation.mjs +1 -1
- package/dist/ui/ansi.d.mts +1 -1
- package/dist/ui/ansi.mjs +1 -1
- package/dist/ui/cli.d.mts +3 -3
- package/dist/ui/cli.mjs +5 -5
- package/dist/ui/display.d.mts +1 -1
- package/dist/ui/image.d.mts +2 -2
- package/dist/ui/image.mjs +2 -2
- package/dist/ui/input.d.mts +1 -1
- package/dist/ui/input.mjs +4 -2
- package/dist/ui/input.mjs.map +1 -1
- package/dist/ui/progress.d.mts +5 -249
- package/dist/ui/progress.mjs +5 -858
- package/dist/ui/react.d.mts +1 -1
- package/dist/ui/react.mjs +2 -2
- package/dist/ui/recording-chrome-react.d.mts +21 -0
- package/dist/ui/recording-chrome-react.d.mts.map +1 -0
- package/dist/ui/recording-chrome-react.mjs +105 -0
- package/dist/ui/recording-chrome-react.mjs.map +1 -0
- package/dist/ui/recording-chrome.d.mts +2 -0
- package/dist/ui/recording-chrome.mjs +2 -0
- package/dist/ui/utils.mjs +1 -1
- package/dist/ui/wrappers.d.mts +3 -3
- package/dist/ui/wrappers.mjs +2 -2
- package/dist/ui.d.mts +7 -6
- package/dist/ui.mjs +8 -7
- package/dist/{useLatest-Bg2x4bfP.d.mts → useLatest-DRDDVwjh.d.mts} +5 -25
- package/dist/useLatest-DRDDVwjh.d.mts.map +1 -0
- package/dist/{with-text-input-CRfoiFFG.d.mts → with-text-input-YeohVLeo.d.mts} +4 -55
- package/dist/with-text-input-YeohVLeo.d.mts.map +1 -0
- package/dist/wrapper-C70ATkVv.mjs +3527 -0
- package/dist/wrapper-C70ATkVv.mjs.map +1 -0
- package/dist/{wrappers-UTADQkSY.mjs → wrappers-BCUYITrY.mjs} +5 -157
- package/dist/wrappers-BCUYITrY.mjs.map +1 -0
- package/dist/{yoga-adapter-8oRGRw8V.mjs → yoga-adapter-BnZX1PAY.mjs} +28 -2
- package/dist/yoga-adapter-BnZX1PAY.mjs.map +1 -0
- package/dist/yoga-adapter-DxgsQ_gg.mjs +2 -0
- package/dist/zipBundle-3nqeDRtm.mjs +3 -0
- package/dist/zipBundle-VNAYFmqJ.mjs +2003 -0
- package/dist/zipBundle-VNAYFmqJ.mjs.map +1 -0
- package/package.json +20 -9
- package/dist/animation-Cn64yepo.mjs.map +0 -1
- package/dist/cli-BKp0YtBD.mjs +0 -4
- package/dist/devtools-9QY4teqI.mjs +0 -2
- package/dist/flexily-zero-adapter-BlQa46nr.mjs +0 -3385
- package/dist/flexily-zero-adapter-BlQa46nr.mjs.map +0 -1
- package/dist/image-CTII5QWI.mjs +0 -477
- package/dist/image-CTII5QWI.mjs.map +0 -1
- package/dist/index-BXslOebb.d.mts.map +0 -1
- package/dist/index-BnA7mNpo.d.mts +0 -175
- package/dist/index-BnA7mNpo.d.mts.map +0 -1
- package/dist/index-D3saHouR.d.mts.map +0 -1
- package/dist/layout-engine-ClUgv6jB.mjs +0 -50
- package/dist/layout-engine-ClUgv6jB.mjs.map +0 -1
- package/dist/node-BeWlnCPY.mjs.map +0 -1
- package/dist/reconciler-Cwgm8hRR.mjs +0 -8459
- package/dist/reconciler-Cwgm8hRR.mjs.map +0 -1
- package/dist/render-string-Darrg7ku.mjs.map +0 -1
- package/dist/spinner-CeOmcuw_.mjs.map +0 -1
- package/dist/src-B5GjfG7g.mjs +0 -4305
- package/dist/src-B5GjfG7g.mjs.map +0 -1
- package/dist/src-CChwjk0Z.mjs +0 -738
- package/dist/src-CChwjk0Z.mjs.map +0 -1
- package/dist/src-CF-6UN01.mjs.map +0 -1
- package/dist/src-NCKb8kE5.mjs +0 -2660
- package/dist/src-NCKb8kE5.mjs.map +0 -1
- package/dist/types-BH_v3iMT.d.mts.map +0 -1
- package/dist/types-Bk2yw9Qj.mjs.map +0 -1
- package/dist/ui/progress.d.mts.map +0 -1
- package/dist/ui/progress.mjs.map +0 -1
- package/dist/useLatest-Bg2x4bfP.d.mts.map +0 -1
- package/dist/with-text-input-CRfoiFFG.d.mts.map +0 -1
- package/dist/wrappers-UTADQkSY.mjs.map +0 -1
- package/dist/yoga-adapter-8oRGRw8V.mjs.map +0 -1
- package/dist/yoga-adapter-D_CcxSt5.mjs +0 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $a as ChainInputStore, $c as toneFillTokens, $d as Key, $i as createCopyProvider, $l as displayWidth, $n as queryPrimaryDA, $o as Transform, $r as RenderOptions, $s as ToastVariant, $t as TermEditContext, Aa as reportDirectory, Ac as BadgeProps, Ad as CustomEvent, Ai as SearchContextValue, Al as getWrappedLines, An as processMouseEvent, Ao as useFocusManager, Ar as requestClipboard, As as BreadcrumbItem, At as VirtualTerminal, Au as writeTextTruncated, Ba as getModifierState, Bc as SpinnerProps, Bd as SilveryMouseEvent, Bi as ListItemContext, Bl as Link, Bn as CanvasRenderBuffer, Bo as BoxMetrics, Br as RenderBuffer, Bs as AlertBodyProps, Bt as CommandDef, Ca as disableMouse, Cc as Small, Cd as ListViewProps, Ci as resetHitRegionIdCounter, Cl as clampScroll, Cn as computeEnterLeave, Co as FocusOrigin, Cr as PASTE_END, Cs as TabListProps, Ct as InputLayerContextValue, Cu as splitGraphemes, Da as notifyITerm2, Dc as Divider, Dd as BoxProps, Di as ThemeProviderProps, Dl as cursorMoveDown, Dn as createWheelEvent, Do as UseFocusResult, Dr as parseBracketedPaste, Ds as Tabs, Dt as useInputLayer, Du as wrapText, Ea as notify, Ec as UL, Ed as BoxHandle, Ei as ThemeProvider, El as countVisualLines, En as createMouseEventProcessor, Eo as UseFocusOptions, Er as enableBracketedPaste, Es as TabProps, Et as InputLayerProviderProps, Eu as truncateText, Fa as setMouseCursorShape, Fc as SelectListProps, Fd as MouseEvent, Fi as useDragState, Fl as Screen, Fn as DOMAdapterConfig, Fo as useExit, Fr as RenderStringOptions, Fs as CommandItem, Ft as withKeybindings, Fu as patchConsole, Ga as CacheBackendContext, Gc as useReadline, Gd as FocusEventProps, Gi as usePasteEvents, Gl as Fill, Gn as DecMode, Go as useBoxRect, Gr as PipelineContext, Gs as InlineAlert, Gt as withCommands, Gu as isMouseSequence, Ha as useModifierKeys, Hc as ReadlineState, Hd as LayoutNode, Hi as VirtualizerConfig, Hl as Text, Hn as queryCellSize, Ho as useSignal, Hr as TextMeasureResult, Hs as AlertTitleProps, Ht as CommandRegistryLike, Ia as setWindowAndIconTitle, Ic as SelectOption, Id as Rect, Ii as useCopyModeState, Il as ScreenProps, In as DOMRenderBuffer, Io as UseAppResult, Ir as renderString, Is as CommandPalette, It as AppState, Iu as StyleChain, Ja as ChainAppContext, Jc as TONE_ICONS, Jd as createFocusEvent, Ji as usePaste, Jl as StyledSegment, Jn as disableFocusReporting, Jo as SilveryErrorBoundary, Jr as createOutputPhase, Js as ToastContainerProps, Jt as UseEditContextResult, Ka as CapabilityLookup, Kc as Button, Kd as SilveryFocusEvent, Ki as PasteHandler, Kl as FillProps, Kn as queryMode, Ko as useScreenRect, Kr as OutputCaps, Ks as InlineAlertProps, Kt as EditTarget, Ku as parseMouseSequence, La as setWindowTitle, Lc as ProgressBar, Ld as ResizeEvent, Li as useFindState, Ll as Console, Ln as createDOMAdapter, Lo as useApp, Lr as renderStringSync, Ls as CommandPaletteProps, Lt as AppWithCommands, Lu as Term, Ma as resetMouseCursorShape, Mc as Table, Md as EventSource, Mi as Searchable, Ml as TextInput, Mn as BoundTerm, Mo as useStderr, Mr as renderScreenReaderOutput, Ms as TreeNode, Mt as ExtendedKeybindingDef, Mu as ConsoleStats, Na as resetWindowTitle, Nc as TableProps, Nd as FocusEvent, Ni as useSearch, Nl as TextInputHandle, Nn as AutoLocator, No as UseStdoutResult, Nr as MeasureElementOutput, Ns as TreeView, Nt as KeybindingContext, Nu as PatchConsoleOptions, Oa as notifyKitty, Oc as DividerProps, Od as AgNode, Oi as ThemeTokens, Ol as cursorMoveUp, On as dispatchMouseEvent, Oo as useFocus, Or as copyToClipboard, Os as TabsProps, Ot as useInputLayerContext, Ou as writeLinesToBuffer, Pa as setCursorStyle, Pc as SelectList, Pd as KeyEvent, Pi as useSearchOptional, Pl as TextInputProps, Pn as FilterOptions, Po as useStdout, Pr as measureElement, Ps as TreeViewProps, Pt as WithKeybindingsOptions, Pu as PatchedConsole, Qa as ChainInputHandler, Qc as toneFgToken, Qd as InputHandler, Qi as SemanticCopyProvider, Ql as createWidthMeasurer, Qn as queryDeviceAttributes, Qo as Newline, Qr as RenderMode, Qs as ToastOptions, Qt as EditContextLike, Ra as ModifierState, Rc as ProgressBarProps, Rd as SignalEvent, Ri as useSelection, Rl as ErrorBoundary, Rn as injectDOMStyles, Ro as UseInputOptions, Rr as PipelineConfig, Rs as Alert, Rt as Cmd, Ru as createTerm, Sa as disableKittyKeyboard, Sc as P, Sd as ListViewHandle, Si as Z_INDEX, Sl as UseTextAreaResult, Sn as checkDoubleClick, So as FocusManagerOptions, Sr as BracketedPasteResult, Ss as TabList, St as InputLayerContext, Su as sliceByWidthRange, Ta as enableMouse, Tc as TypographyProps, Td as Box, Ti as useTheme, Tl as WrappedLine, Tn as createMouseEvent, To as createFocusManager, Tr as disableBracketedPaste, Ts as TabPanelProps, Tt as InputLayerProvider, Tu as truncateAnsi, Ua as BaseRuntimeEvents, Uc as UseReadlineOptions, Ud as MeasureFunc, Ui as VirtualizerResult, Ul as TextHandle, Un as queryTextAreaPixels, Uo as AgNodeHandle, Ur as TextMeasureStyle, Us as Banner, Ut as KeybindingDef, Va as lastModifierState, Vc as SearchBar, Vd as SilveryWheelEvent, Vi as useListItem, Vl as LinkProps, Vn as createCanvasAdapter, Vo as useBoxMetrics, Vr as RenderStyle, Vs as AlertProps, Vt as CommandInfo, Wa as CacheBackend, Wc as UseReadlineResult, Wd as MeasureMode, Wi as useVirtualizer, Wl as TextProps, Wn as queryTextAreaSize, Wo as useAgNode, Wr as TextMeasurer, Ws as BannerProps, Wt as WithCommandsOptions, Wu as ParsedMouse, Xa as ChainFocusEvents, Xc as ToneKey, Xd as dispatchFocusEvent, Xi as CopyEvent, Xl as constrainText, Xn as parseFocusEvent, Xo as Static, Xr as Instance, Xs as ToastItem, Xt as activeEditTargetRef, Ya as ChainAppContextValue, Yc as ToneFillTokens, Yd as createKeyEvent, Yi as ClipboardData, Yl as WidthMeasurer, Yn as enableFocusReporting, Yo as SilveryErrorBoundaryProps, Yr as setOutputCaps, Ys as ToastData, Yt as activeEditContextRef, Za as ChainFocusHandler, Zc as ToneSubtleTokens, Zd as dispatchKeyEvent, Zi as PasteEvent, Zl as createMeasurer, Zn as DeviceAttributes, Zo as Spacer, Zr as NonTTYMode, Zs as ToastItemProps, Zt as useEditContext, _a as ANSI, _c as Kbd, _d as HorizontalVirtualListHandle, _i as useHitRegionCallback, _l as TextArea, _n as ResolvedNonTTYMode, _o as findSpatialTarget, _r as runTermtest, _s as Skeleton, _t as TeaResult, _u as runWithMeasurer, a as ReactiveThemeProvider, aa as CursorState, ac as FormProps, ad as SplitView, af as matchHotkey, ai as YogaLayoutEngine, al as PickerListProps, an as mergeTextOps, ao as FocusManagerContext, ar as detectTextSizingSupport, as as scrollUp, au as hasAnsi, ba as KittyFlags, bc as Muted, bd as ListView, bi as HitRegistry, bl as TextAreaSelection, bn as MouseEventProcessorOptions, bo as FocusChangeCallback, br as detectKittySupport, bs as TooltipProps, bt as InputBoundaryProps, bu as sliceByWidth, ca as getCursorState, cc as HeadingProps, cd as createLeaf, cf as parseKeypress, ci as TermDef, cl as Backdrop, cn as disableInspector, co as StderrContext, cr as textSized, cs as calcEdgeBasedScrollOffset, cu as isCJK, da as useCursor, dc as CodeBlock, dd as getTabOrder, di as LayoutConstants, dl as ModalDialogProps, dn as inspectTree, do as useFocusWithin, dr as MeasuredTerm, ds as useGridPosition, du as isWideGrapheme, ea as createPasteEvent, ec as UseToastResult, ef as ParsedHotkey, ei as render$1, el as toneIcon, en as TermEditContextOptions, eo as ChainKey, er as querySecondaryDA, es as TransformProps, eu as displayWidthAnsi, fa as useConsole, fc as Em, fd as removePane, fi as LayoutEngine, fl as formatTitleWithHotkey, fn as isInspectorEnabled, fo as UseFocusableResult, fr as createPipeline, fs as PositionRegistry, fu as isZeroWidthGrapheme, ga as useMouseCursor, gc as HR, gd as HorizontalVirtualList, gi as useHitRegion, gl as EditContextDisplayProps, gn as NonTTYOptions, go as findFocusableAncestor, gr as TermtestSection, gs as usePositionRegistry, gt as EffectLike, gu as parseAnsiText, ha as useTerm, hc as H3, hd as swapPanes, hi as HitRegistryContext, hl as EditContextDisplay, hn as isDevToolsConnected, ho as findEnclosingScope, hr as TermtestOptions, hs as createPositionRegistry, ht as fx, hu as padText, i as useActiveScheme, ia as CursorProvider, ic as FormFieldProps, id as ConsoleEntry, if as keyToName, ii as createFlexilyZeroEngine, il as PickerList, in as invertTextOp, io as ChainRawKeyObserver, ir as queryCursorPosition, is as scrollDown, iu as graphemeWidth, ja as resetCursorStyle, jc as Column, jd as Event, ji as SearchProvider, jl as rowColToCursor, jn as App, jo as UseStderrResult, jr as AriaState, js as BreadcrumbProps, jt as withDiagnostics, ju as term, ka as queryKittyKeyboard, kc as Badge, kd as BlurEvent, ki as useRuntime, kl as cursorToRowCol, kn as hitTest, ko as UseFocusManagerResult, kr as parseClipboardResponse, ks as Breadcrumb, kt as DiagnosticOptions, ku as writeTextToBuffer, la as resetCursorState, lc as Blockquote, ld as findAdjacentPane, li as createInputEvents, ll as BackdropProps, ln as enableInspector, lo as TermContext, lr as RenderTerm, ls as GridCell, lu as isLikelyEmoji, ma as shallow, mc as H2, md as splitPane, mi as setLayoutEngine, ml as CursorLineProps, mn as connectDevTools, mo as findByTestID, mr as TERMTEST_SECTIONS, ms as ScrollRect, mt as TimerEffect, mu as normalizeText, n as useId, na as CursorAccessors, nc as Form, nf as emptyKey, ni as renderSync, nl as Toggle, nn as TextOp, no as ChainPasteStore, nr as queryTertiaryDA, ns as moveCursor, nu as getFirstCodePoint, o as useColorScheme, oa as CursorStore, oc as Heading, od as SplitViewProps, of as parseHotkey, oi as createYogaEngine, ol as PickerDialog, on as InspectorOptions, oo as RuntimeContext, or as isPrivateUseArea, os as setScrollRegion, ou as hasWideCharacters, pa as useWindowSize, pc as H1, pd as resizeSplit, pi as isLayoutEngineInitialized, pl as CursorLine, pn as IncrementalRenderMismatchError, po as useFocusable, pr as withMeasurer, ps as PositionRegistryProvider, pt as useTea, pu as measureText, qa as CapabilityRegistryContext, qc as ButtonProps, qd as SilveryKeyEvent, qi as PasteProvider, ql as Measurer, qn as queryModes, qo as useScrollRect, qr as OutputPhaseFn, qs as ToastContainer, qt as UseEditContextOptions, r as useTransition$1, ra as CursorPosition, rc as FormField, rf as keyToModifiers, ri as FlexilyZeroLayoutEngine, rl as ToggleProps, rn as applyTextOp, ro as ChainRawKeyHandler, rr as queryCursorFromStdio, rs as resetScrollRegion, ru as graphemeCount, sa as createCursorStore, sc as HeadingLevel, sd as LayoutNode$1, sf as parseKey, si as initYogaEngine, sl as PickerDialogProps, sn as autoEnableInspector, so as RuntimeContextValue, sr as isTextSizingLikelySupported, ss as supportsScrollRegions, su as hasZeroWidthCharacters, t as useDeferredValue, ta as getInternalClipboard, tc as useToast, tf as ParsedKeypress, ti as renderStatic, tl as toneSubtleTokens, tn as createTermEditContext, to as ChainPasteHandler, tr as queryTerminalVersion, ts as ScrollRegionConfig, tu as ensureEmojiPresentation, ua as subscribeCursor, uc as Code, ud as getPaneIds, ui as isTerm, ul as ModalDialog, un as inspectFrame, uo as useTerminalFocused, ur as withRender, us as GridCellProps, uu as isTextSizingEnabled, va as BEL, vc as LI, vd as HorizontalVirtualListProps, vi as useHitRegistry, vl as TextAreaHandle, vn as isTTY, vo as getExplicitFocusLink, vr as KittyDetectResult, vs as SkeletonProps, vt as collect, vu as setTextEmojiWide, wa as enableKittyKeyboard, wc as Strong, wd as ListViewSearchConfig, wi as ActiveSchemeContext, wl as useTextArea, wn as createDoubleClickState, wo as FocusSnapshot, wr as PASTE_START, ws as TabPanel, wt as InputLayerHandler, wu as stripAnsi, xa as MouseCursorShape, xc as OL, xd as ListViewCacheConfig, xi as HitTarget, xl as UseTextAreaOptions, xn as MouseEventProcessorState, xo as FocusManager, xr as OSC133, xs as Tab, xt as InputLayer, xu as sliceByWidthFromEnd, ya as CursorShape, yc as Lead, yd as ListItemMeta, yi as HitRegion, yl as TextAreaProps, yn as resolveNonTTYMode, yo as getTabOrder$1, yr as detectKittyFromStdio, ys as Tooltip, yt as InputBoundary, yu as setTextSizingEnabled, za as UseModifierKeysOptions, zc as Spinner, zd as MouseEventProps, zi as useInteractiveState, zl as ErrorBoundaryProps, zn as CanvasAdapterConfig, zo as useInput, zr as BorderChars, zs as AlertActionsProps, zt as Command } from "./index-BXslOebb.mjs";
|
|
3
|
-
import { a as isSixelSupported, c as encodeKittyImage, i as encodeSixel, l as isKittyGraphicsSupported, n as ImageProps, o as KittyImageOptions, r as SixelImageData, s as deleteKittyImage, t as Image } from "./index-BnA7mNpo.mjs";
|
|
4
|
-
import {
|
|
1
|
+
import { A as quantizeHex, B as createTerminalProfile, C as deriveTheme, F as defaultCaps, G as detectTheme, H as DetectThemeOptions, I as ColorProvenance, J as AnsiPrimary, K as probeColors, L as CreateTerminalProfileOptions, P as TerminalCaps, R as ProbeTerminalProfileOptions, S as detectSchemeTheme, U as DetectedScheme, V as probeTerminalProfile, W as detectTerminalScheme, _ as DetectSchemeOptions, a as queryForegroundColor, b as SlotSource, c as resetForegroundColor, d as setForegroundColor, f as parsePaletteResponse, h as setPaletteColor, i as queryCursorColor, j as ColorLevel, k as pickColorLevel, l as setBackgroundColor, m as queryPaletteColor, mt as Theme, n as detectColorScheme, o as resetBackgroundColor, p as queryMultiplePaletteColors, q as ActiveScheme, r as queryBackgroundColor, s as resetCursorColor, t as generateTheme, u as setCursorColor, v as DetectSchemeResult, w as resolveThemeColor, x as detectScheme, y as DetectSource, z as TerminalProfile } from "./index-CSQf13CI.mjs";
|
|
2
|
+
import { $t as IslandGuest, A as term, At as MeasureFunc, Bt as Key, Ct as ResizeEvent, D as FocusOrigin, Dt as SilveryMouseEvent, E as FocusManagerOptions, Et as MouseEventProps, F as ConsoleCaptureOptions, Ft as createFocusEvent, Gt as keyToName, Ht as ParsedKeypress, I as ConsoleStats, It as createKeyEvent, Jt as parseKey, Kt as matchHotkey, L as createConsole, Lt as dispatchFocusEvent, M as Term, Mt as FocusEventProps, N as createTerm, Nt as SilveryFocusEvent, O as FocusSnapshot, Ot as SilveryWheelEvent, P as Console$1, Pt as SilveryKeyEvent, Qt as IslandCursorState, Rt as dispatchKeyEvent, St as Rect, T as FocusManager, Ut as emptyKey, Vt as ParsedHotkey, Wt as keyToModifiers, Xt as IslandCapabilities, Yt as parseKeypress, Zt as IslandContext, _ as createMouseEventProcessor, _n as ViewportProps, _t as FocusEvent, a as useHitRegistry, an as IslandModesOwner, at as isMouseSequence, b as hitTest, bt as MouseEvent, c as HitTarget, cn as IslandOutputOwner, d as MouseEventProcessorOptions, dn as IslandProtocolModes, en as IslandHandle, f as MouseEventProcessorState, fn as IslandSignal, g as createMouseEvent, gt as EventSource, h as createDoubleClickState, hn as ForeignSource, ht as Event, i as useHitRegionCallback, in as IslandKeyEvent, it as ParsedMouse, j as StyleChain, jt as MeasureMode, k as createFocusManager, kt as LayoutNode, l as Z_INDEX, ln as IslandPaletteOwner, lt as BlurEvent, m as computeEnterLeave, mn as IslandSizeOwner, n as HitRegistryContext, nn as IslandInputEvent, nt as ConsoleEntry, o as HitRegion, on as IslandMouseEvent, ot as parseMouseSequence, p as checkDoubleClick, pn as IslandSignalsOwner, pt as CustomEvent, qt as parseHotkey, r as useHitRegion, rn as IslandInputOwner, rt as ParseMouseOptions, s as HitRegistry, sn as IslandNodeState, st as AgNode, t as BoundTerm, tn as IslandHydrate, u as resetHitRegionIdCounter, un as IslandPalettePolicy, v as createWheelEvent, vn as ViewportRef, w as FocusChangeCallback, wt as SignalEvent, x as processMouseEvent, y as dispatchMouseEvent, yt as KeyEvent, zt as InputHandler } from "./bound-term-0sPrrzH1.mjs";
|
|
3
|
+
import { $a as setWindowTitle, $c as BreadcrumbProps, $d as MeasuredBox, $i as PasteEvent, $l as TypographyProps, $n as queryTextAreaSize, $o as FocusManagerContext, $r as RenderStyle, $s as supportsScrollRegions, $t as ExtendedKeybindingDef, $u as UseTextAreaOptions, Aa as shallow, Ac as DiffLine, Ad as getPaneIds, Af as isTextSizingEnabled, Ai as ThemeTokens, Al as HeadingProps, An as enableInspector, Ao as useScopeEffect, Ar as OSC133, As as UseKineticScrollResult, Au as variantFgToken, Ba as enableKittyKeyboard, Bc as AnchoredOverlayProps, Bd as ListView, Bf as sliceByWidthRange, Bi as useSelection, Bl as H3, Bn as resolveNonTTYMode, Bo as CapabilityLookup, Br as createInternalClipboardBackend, Bs as MappedChild, Bt as InputBoundary, Bu as Backdrop, Ca as Responsive, Cc as TextRevealProps, Cd as Fill, Cf as graphemeCount, Ci as LayoutEngine, Cl as useToast, Cn as TextOp, Co as useStdout, Cr as TERMTEST_SECTIONS, Cs as BoxMetrics, Cu as useReadline, Da as ResponsiveValues, Dc as AnimatedNumberProps, Dd as LayoutNode$1, Df as hasZeroWidthCharacters, Di as useTheme, Dl as FormProps, Dn as InspectorOptions, Do as ScopeProviderProps, Dr as KittyDetectResult, Ds as useAgNode, Du as Variant, Ea as DEFAULT_BREAKPOINTS, Ec as AnimatedNumber, Ed as SplitViewProps, Ef as hasWideCharacters, Ei as ActiveSchemeContext, El as FormFieldProps, En as mergeTextOps, Eo as ScopeProvider, Er as runTermtest, Es as AgNodeHandle, Eu as VARIANT_ICONS, Fa as CursorShape, Fc as Accordion, Fd as swapPanes, Ff as padText, Fi as useSearch, Fl as Code, Fn as connectDevTools, Fo as UseAppResult, Fr as enableBracketedPaste, Fs as Spacer, Ft as TimerEffect, Fu as ToggleProps, Ga as queryKittyKeyboard, Gc as TabListProps, Gd as MatchRange, Gf as wrapText, Gi as VirtualizerResult, Gl as Kbd, Gn as DOMRenderBuffer, Go as ChainFocusHandler, Gr as MeasureElementOutput, Gs as createHeightModel, Gt as InputLayerHandler, Gu as CursorLine, Ha as notify, Hc as TooltipProps, Hd as ListViewHandle, Hf as stripAnsi, Hi as ListItemContext, Hl as H5, Hn as AutoLocator, Ho as ChainAppContext, Hr as parseClipboardResponse, Hs as mapChildIndexToItem, Ht as InputLayer, Hu as ModalDialog, Ia as KittyFlags, Ic as AccordionProps, Id as HorizontalVirtualList, If as parseAnsiText, Ii as useSearchOptional, Il as CodeBlock, In as isDevToolsConnected, Io as useApp, Ir as parseBracketedPaste, Is as Newline, It as fx, Iu as PickerList, Ja as resetMouseCursorShape, Jc as TabProps, Jd as ScrollAreaProps, Jf as writeTextTruncated, Ji as PasteHandler, Jl as Muted, Jn as CanvasAdapterConfig, Jo as ChainKey, Jr as renderString, Js as moveCursor, Jt as useInputLayer, Ju as EditContextDisplayProps, Ka as reportDirectory, Kc as TabPanel, Kd as computeMatchRanges, Kf as writeLinesToBuffer, Ki as useVirtualizer, Kl as LI, Kn as createDOMAdapter, Ko as ChainInputHandler, Kr as measureElement, Ks as shouldKeepHeightModelSnapshot, Kt as InputLayerProvider, Ku as CursorLineProps, La as MouseCursorShape, Lc as Skeleton, Ld as HorizontalVirtualListHandle, Lf as runWithMeasurer, Li as useDragState, Ll as Em, Ln as NonTTYOptions, Lo as BaseRuntimeEvents, Lr as ClipboardBackend, Ls as Transform, Lt as EffectLike, Lu as PickerListProps, Ma as useMouseCursor, Mc as DiffProps, Md as removePane, Mf as isZeroWidthGrapheme, Mi as SearchContextValue, Ml as ProseHandle, Mn as inspectTree, Mo as useScope, Mr as PASTE_END, Ms as SilveryErrorBoundary, Mu as variantIcon, Na as ANSI, Nc as LineNumber, Nd as resizeSplit, Nf as measureText, Ni as SearchProvider, Nl as ProseProps, Nn as isInspectorEnabled, No as usePanic, Nr as PASTE_START, Ns as SilveryErrorBoundaryProps, Nu as variantSubtleTokens, Oa as UseResponsiveValueOptions, Oc as Diff, Od as createLeaf, Of as isCJK, Oi as ThemeProvider, Ol as Heading, On as autoEnableInspector, Oo as ScopeEffectCleanup, Or as detectKittyFromStdio, Os as SCROLLBAR_FADE_AFTER_MS, Ou as VariantFillTokens, Pa as BEL, Pc as LineNumberProps, Pd as splitPane, Pf as normalizeText, Pi as Searchable, Pl as Blockquote, Pn as IncrementalRenderMismatchError, Po as useExit, Pr as disableBracketedPaste, Ps as Static, Pt as useTea, Pu as Toggle, Qa as setWindowAndIconTitle, Qc as BreadcrumbItem, Qd as ScrollbarProps, Qf as BoxProps, Qi as CopyEvent, Ql as Strong, Qn as queryTextAreaPixels, Qo as ChainRawKeyObserver, Qr as RenderBuffer, Qs as setScrollRegion, Qt as withDiagnostics, Qu as TextAreaSelection, Ra as disableKittyKeyboard, Rc as SkeletonProps, Rd as HorizontalVirtualListProps, Rf as sliceByWidth, Ri as useCopyModeState, Rl as H1, Rn as ResolvedNonTTYMode, Ro as CacheBackend, Rr as ClipboardCapabilities, Rs as TransformProps, Rt as TeaResult, Ru as PickerDialog, Sa as useWindowSize, Sc as TextReveal, Sd as TextProps, Sf as getFirstCodePoint, Si as LayoutConstants, Sl as UseToastResult, Sn as createTermEditContext, So as UseStdoutResult, Sr as withMeasurer, Ss as useInput, Su as UseReadlineResult, Ta as Breakpoint, Tc as TextShimmerProps, Td as SplitView, Tf as hasAnsi, Ti as setLayoutEngine, Tl as FormField, Tn as invertTextOp, To as ScopeContext, Tr as TermtestSection, Ts as useSignal, Tu as ButtonProps, Ua as notifyITerm2, Uc as Tab, Ud as ListViewProps, Uf as truncateAnsi, Ui as useListItem, Ul as H6, Un as FilterOptions, Uo as ChainAppContextValue, Ur as AriaState, Us as HeightModel, Ut as InputLayerContext, Uu as ModalDialogProps, Va as enableMouse, Vc as Tooltip, Vd as ListViewCacheConfig, Vf as splitGraphemes, Vi as useInteractiveState, Vl as H4, Vn as App, Vo as CapabilityRegistryContext, Vr as createOsc52Backend, Vs as computeIndexTrailingSpacer, Vt as InputBoundaryProps, Vu as BackdropProps, Wa as notifyKitty, Wc as TabList, Wd as ListViewSearchConfig, Wf as truncateText, Wi as VirtualizerConfig, Wl as HR, Wn as DOMAdapterConfig, Wo as ChainFocusEvents, Wr as renderScreenReaderOutput, Ws as HeightModelOptions, Wt as InputLayerContextValue, Wu as formatTitleWithHotkey, Xa as setCursorStyle, Xc as TabsProps, Xd as useScrollController, Xf as Box, Xi as usePaste, Xl as P, Xn as createCanvasAdapter, Xo as ChainPasteStore, Xr as PipelineConfig, Xs as scrollDown, Xt as DiagnosticOptions, Xu as TextAreaHandle, Ya as resetWindowTitle, Yc as Tabs, Yd as ScrollController, Yf as Viewport, Yi as PasteProvider, Yl as OL, Yn as CanvasRenderBuffer, Yo as ChainPasteHandler, Yr as renderStringSync, Ys as resetScrollRegion, Yt as useInputLayerContext, Yu as TextArea, Za as setMouseCursorShape, Zc as Breadcrumb, Zd as Scrollbar, Zf as BoxHandle, Zi as ClipboardData, Zl as Small, Zn as queryCellSize, Zo as ChainRawKeyHandler, Zr as BorderChars, Zs as scrollUp, Zt as VirtualTerminal, Zu as TextAreaProps, _a as PopoverProvider, _c as RadioGroup, _d as ErrorBoundaryProps, _f as constrainText, _i as createYogaEngine, _l as ToastData, _n as activeEditTargetRef, _o as useFocus, _r as textSized, _s as HotkeyMap, _u as Spinner, a as ReactiveThemeProvider, aa as CursorPosition, ac as PositionRegistryProvider, ad as cursorMoveDown, af as useBoxRectInFlight, ai as OutputPhaseFn, al as CommandPaletteProps, an as Cmd, ao as useTerminalFocused, ar as parseFocusEvent, as as TermContext, au as Column, ba as UseHoverReturn, bc as TimeToFirstDraw, bd as Text, bf as displayWidthAnsi, bi as createInputEvents, bl as ToastOptions, bn as TermEditContext, bo as UseStderrResult, br as MeasuredTerm, bs as useHotkeyMap, bu as ReadlineState, ca as CursorStore, cc as usePositionRegistry, cd as getWrappedLines, cf as useOnScrollRectCommitted, ci as NonTTYMode, cl as AlertBodyProps, cn as CommandInfo, co as useFocusable, cr as queryPrimaryDA, cs as UseRawKeyEventOptions, cu as SelectList, da as useCursor, dc as TerminalCursor, dd as TextInputHandle, df as useScrollRect, di as render$1, dl as Banner, dn as WithCommandsOptions, do as findFocusableAncestor, dr as queryTertiaryDA, ds as TextInputEvent, du as Pulse, ea as SemanticCopyProvider, ec as calcEdgeBasedScrollOffset, ed as UseTextAreaResult, ef as MeasuredBoxProps, ei as TextMeasureResult, el as TreeNode, en as KeybindingContext, eo as ModifierState, er as DecMode, es as PanicHandler, eu as UL, fa as useConsole, fc as TerminalMouseEvent, fd as TextInputProps, ff as useScrollRectInFlight, fi as renderStatic, fl as BannerProps, fn as withCommands, fo as findSpatialTarget, fr as queryCursorFromStdio, fs as TextInputHandler, fu as PulseProps, ga as PopoverContent, gc as encodeTerminalRow, gd as ErrorBoundary, gf as StyledSegment, gi as YogaLayoutEngine, gl as ToastContainerProps, gn as activeEditContextRef, go as UseFocusResult, gr as isPrivateUseArea, gs as HotkeyHandler, gu as ProgressBarProps, ha as PopoverAnchor, hc as TerminalReadable, hd as Console, hf as Measurer, hi as createFlexilyZeroEngine, hl as ToastContainer, hn as UseEditContextResult, ho as UseFocusOptions, hr as getTerminalFingerprint, hs as HotkeyEvent, hu as ProgressBar, i as useActiveScheme, ia as CursorAccessors, ic as PositionRegistry, id as countVisualLines, if as useBoxRectDangerously, ii as OutputCaps, il as CommandPalette, in as AppWithCommands, io as useModifierKeys, ir as enableFocusReporting, is as StderrContext, iu as BadgeProps, ja as useTerm, jc as DiffMode, jd as getTabOrder, jf as isWideGrapheme, ji as useRuntime, jl as Prose, jn as inspectFrame, jo as useAppScope, jr as BracketedPasteResult, js as useKineticScroll, ju as variantFillTokens, ka as useResponsiveValue, kc as DiffHunk, kd as findAdjacentPane, kf as isLikelyEmoji, ki as ThemeProviderProps, kl as HeadingLevel, kn as disableInspector, ko as ScopeEffectSetup, kr as detectKittySupport, ks as UseKineticScrollOptions, ku as VariantSubtleTokens, la as createCursorStore, lc as Terminal, ld as rowColToCursor, lf as useScreenRect, li as RenderMode, ll as AlertProps, ln as CommandRegistryLike, lo as findByTestID, lr as querySecondaryDA, ls as useRawKeyEvent, lu as SelectListProps, ma as HOVER_SHOW_DELAY_MS, mc as TerminalRGB, md as ScreenProps, mf as IslandProps, mi as FlexilyZeroLayoutEngine, ml as InlineAlertProps, mn as UseEditContextOptions, mo as getTabOrder$1, mr as detectTextSizingSupport, ms as useTextInput, mu as usePulse, n as useId, na as createPasteEvent, nc as GridCellProps, nd as useTextArea, nf as MeasuredBoxRenderFn, ni as TextMeasurer, nl as TreeViewProps, nn as withKeybindings, no as getModifierState, nr as queryModes, ns as RuntimeContext, nu as DividerProps, o as useColorScheme, oa as CursorProvider, oc as ScrollRect, od as cursorMoveUp, of as useOnBoxRectCommitted, oi as createOutputPhase, ol as Alert, on as Command, oo as useFocusWithin, or as DeviceAttributes, os as RawKeyEvent, ou as Table, pa as HIDE_DELAY_MS, pc as TerminalProps, pd as Screen, pf as Island, pi as renderSync, pl as InlineAlert, pn as EditTarget, po as getExplicitFocusLink, pr as queryCursorPosition, ps as UseTextInputOptions, pu as UsePulseOptions, qa as resetCursorStyle, qc as TabPanelProps, qd as ScrollArea, qf as writeTextToBuffer, qi as usePasteEvents, ql as Lead, qn as injectDOMStyles, qo as ChainInputStore, qr as RenderStringOptions, qs as ScrollRegionConfig, qt as InputLayerProviderProps, qu as EditContextDisplay, r as useTransition$1, ra as getInternalClipboard, rc as useGridPosition, rd as WrappedLine, rf as useBoxRect, ri as PipelineContext, rl as CommandItem, rn as AppState, ro as lastModifierState, rr as disableFocusReporting, rs as RuntimeContextValue, ru as Badge, sa as CursorState, sc as createPositionRegistry, sd as cursorToRowCol, sf as useOnScreenRectCommitted, si as Instance, sl as AlertActionsProps, sn as CommandDef, so as UseFocusableResult, sr as queryDeviceAttributes, ss as RawKeyEventHandler, su as TableProps, t as useDeferredValue, ta as createCopyProvider, tc as GridCell, td as clampScroll, tf as MeasuredBoxRect, ti as TextMeasureStyle, tl as TreeView, tn as WithKeybindingsOptions, to as UseModifierKeysOptions, tr as queryMode, ts as PanicOptions, tu as Divider, ua as resetCursorState, uc as TerminalCell, ud as TextInput, uf as useScreenRectInFlight, ui as RenderOptions, ul as AlertTitleProps, un as KeybindingDef, uo as findEnclosingScope, ur as queryTerminalVersion, us as GraphemeInputHandler, uu as SelectOption, va as usePopover, vc as RadioGroupOption, vd as Link, vf as createMeasurer, vi as initYogaEngine, vl as ToastItem, vn as useEditContext, vo as UseFocusManagerResult, vr as RenderTerm, vs as UseHotkeyOptions, vu as SpinnerProps, wa as useResponsiveBoxProps, wc as TextShimmer, wd as FillProps, wf as graphemeWidth, wi as isLayoutEngineInitialized, wl as Form, wn as applyTextOp, wo as AppScopeContext, wr as TermtestOptions, ws as useBoxMetrics, wu as Button, xa as useHover, xc as TimeToFirstDrawProps, xd as TextHandle, xf as ensureEmojiPresentation, xi as isTerm, xl as ToastVariant, xn as TermEditContextOptions, xo as useStderr, xr as createPipeline, xs as UseInputOptions, xu as UseReadlineOptions, ya as usePopoverHandlers, yc as RadioGroupProps, yd as LinkProps, yf as displayWidth, yi as TermDef, yl as ToastItemProps, yn as EditContextLike, yo as useFocusManager, yr as withRender, ys as useHotkey, yu as SearchBar, za as disableMouse, zc as AnchoredOverlay, zd as ListItemMeta, zf as sliceByWidthFromEnd, zi as useFindState, zl as H2, zn as isTTY, zo as CacheBackendContext, zr as createCompositeClipboard, zs as MapChildIndexOptions, zt as collect, zu as PickerDialogProps } from "./index-Cl9KKjQ_.mjs";
|
|
4
|
+
import { i as resolveEasing, n as EasingName, r as easings, t as EasingFn } from "./easing-BI-ASGMO.mjs";
|
|
5
|
+
import { a as encodeSixel, c as KittyPlaceOptions, d as encodeKittyImage, f as isKittyGraphicsSupported, l as deleteKittyImage, n as ImageProps, o as isSixelSupported, p as placeKittyImage, r as SixelImageData, s as KittyImageOptions, t as Image, u as deleteKittyPlacement } from "./index-XbNrPhWl.mjs";
|
|
6
|
+
import { a as defaultDarkTheme, c as getThemeByName, i as builtinThemes, n as ansi16LightTheme, o as defaultLightTheme, t as ansi16DarkTheme } from "./index-BUMxS65f.mjs";
|
|
7
|
+
import { a as useTransition, c as useAnimation, i as UseTransitionOptions, n as useTimeout, o as UseAnimationOptions, r as useInterval, s as UseAnimationResult, t as useLatest } from "./useLatest-DRDDVwjh.mjs";
|
|
5
8
|
import { ReactElement } from "react";
|
|
6
9
|
|
|
7
10
|
//#region src/index.d.ts
|
|
@@ -52,5 +55,5 @@ declare const VERSION = "0.0.1";
|
|
|
52
55
|
*/
|
|
53
56
|
declare function render(element: ReactElement, termOrDef?: Term | TermDef, options?: RenderOptions): ReturnType<typeof render$1>;
|
|
54
57
|
//#endregion
|
|
55
|
-
export { ANSI, ActiveScheme, ActiveSchemeContext, AgNode, AgNodeHandle, Alert, AlertActionsProps, AlertBodyProps, AlertProps, AlertTitleProps, AnsiPrimary, App, AppState, AppWithCommands, AriaState, AutoLocator, BEL, Backdrop, BackdropProps, Badge, BadgeProps, Banner, BannerProps, BaseRuntimeEvents, Blockquote, BlurEvent, BorderChars, BoundTerm, Box, BoxHandle, BoxMetrics, BoxProps, BracketedPasteResult, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Button, ButtonProps, CacheBackend, CacheBackendContext, CanvasAdapterConfig, CanvasRenderBuffer, CapabilityLookup, CapabilityRegistryContext, ChainAppContext, ChainAppContextValue, ChainFocusEvents, ChainFocusHandler, ChainInputHandler, ChainInputStore, ChainKey, ChainPasteHandler, ChainPasteStore, ChainRawKeyHandler, ChainRawKeyObserver, ClipboardData, Cmd, Code, CodeBlock, ColorLevel, ColorTier, Column, Column as TableColumn, Command, CommandDef, CommandInfo, CommandItem, CommandPalette, CommandPaletteProps, CommandRegistryLike, Console, ConsoleEntry, ConsoleStats, CopyEvent, CursorAccessors, CursorLine, CursorLineProps, CursorPosition, CursorProvider, CursorShape, CursorState, CursorStore, CustomEvent, DOMAdapterConfig, DOMRenderBuffer, DecMode, DetectThemeOptions, DeviceAttributes, DiagnosticOptions, Divider, DividerProps, EasingFn, EasingName, EditContextDisplay, EditContextDisplayProps, EditContextLike, EditTarget, EffectLike, Em, ErrorBoundary, ErrorBoundaryProps, Event, EventSource, ExtendedKeybindingDef, Fill, FillProps, FilterOptions, FlexilyZeroLayoutEngine as FlexilyLayoutEngine, FocusChangeCallback, FocusEvent, FocusEventProps, FocusManager, FocusManagerContext, FocusManagerOptions, FocusOrigin, FocusSnapshot, Form, FormField, FormFieldProps, FormProps, GridCell, GridCellProps, H1, H2, H3, HR, Heading, HeadingLevel, HeadingProps, HitRegion, HitRegistry, HitRegistryContext, HitTarget, HorizontalVirtualList, HorizontalVirtualListHandle, HorizontalVirtualListProps, Image, ImageProps, IncrementalRenderMismatchError, InlineAlert, InlineAlertProps, InputBoundary, InputBoundaryProps, InputHandler, InputLayer, InputLayerContext, InputLayerContextValue, InputLayerHandler, InputLayerProvider, InputLayerProviderProps, InspectorOptions, Instance, Kbd, Key, KeyEvent, KeybindingContext, KeybindingDef, KittyDetectResult, KittyFlags, KittyImageOptions, LI, LayoutConstants, LayoutEngine, LayoutNode, Lead, Link, LinkProps, ListItemContext, ListItemMeta, ListView, ListViewCacheConfig, ListViewHandle, ListViewProps, ListViewSearchConfig, MeasureElementOutput, MeasureFunc, MeasureMode, MeasuredTerm, Measurer, ModalDialog, ModalDialogProps, ModifierState, MouseCursorShape, MouseEvent, MouseEventProcessorOptions, MouseEventProcessorState, MouseEventProps, Muted, Newline, NonTTYMode, NonTTYOptions, OL, OSC133, OutputCaps, OutputPhaseFn, P, PASTE_END, PASTE_START, ParsedHotkey, ParsedKeypress, ParsedMouse, PasteEvent, PasteHandler, PasteProvider, PatchConsoleOptions, PatchedConsole, PickerDialog, PickerDialogProps, PickerList, PickerListProps, PipelineConfig, PipelineContext, PositionRegistry, PositionRegistryProvider, ProgressBar, ProgressBarProps, ReactiveThemeProvider, ReadlineState, Rect, RenderBuffer, RenderMode, RenderOptions, RenderStringOptions, RenderStyle, RenderTerm, ResizeEvent, ResolvedNonTTYMode, RuntimeContext, RuntimeContextValue, Screen, ScreenProps, ScrollRect, ScrollRegionConfig, SearchBar, SearchContextValue, SearchProvider, Searchable, SelectList, SelectListProps, SelectOption, SemanticCopyProvider, SignalEvent, SilveryErrorBoundary, SilveryErrorBoundaryProps, SilveryFocusEvent, SilveryKeyEvent, SilveryMouseEvent, SilveryWheelEvent, SixelImageData, Skeleton, SkeletonProps, Small, Spacer, Spinner, SpinnerProps, LayoutNode$1 as SplitLayoutNode, SplitView, SplitViewProps, Static, StderrContext, Strong, StyleChain, StyledSegment, TERMTEST_SECTIONS, TONE_ICONS, Tab, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, Table, TableProps, Tabs, TabsProps, TeaResult, Term, TermContext, TermEditContext, TermEditContextOptions, TerminalCaps, TermtestOptions, TermtestSection, Text, TextArea, TextAreaHandle, TextAreaProps, TextAreaSelection, TextHandle, TextInput, TextInputHandle, TextInputProps, TextMeasureResult, TextMeasureStyle, TextMeasurer, TextOp, TextProps, Theme, ThemeProvider, ThemeProviderProps, ThemeTokens, TimerEffect, ToastContainer, ToastContainerProps, ToastData, ToastItem, ToastItemProps, ToastOptions, ToastVariant, Toggle, ToggleProps, ToneFillTokens, ToneKey, ToneSubtleTokens, Tooltip, TooltipProps, Transform, TransformProps, TreeNode, TreeView, TreeViewProps, TypographyProps, UL, UseAnimationOptions, UseAnimationResult, UseAppResult, UseEditContextOptions, UseEditContextResult, UseFocusManagerResult, UseFocusOptions, UseFocusResult, UseFocusableResult, UseInputOptions, UseModifierKeysOptions, UseReadlineOptions, UseReadlineResult, UseStderrResult, UseStdoutResult, UseTextAreaOptions, UseTextAreaResult, UseToastResult, UseTransitionOptions, VERSION, VirtualTerminal, VirtualizerConfig, VirtualizerResult, WidthMeasurer, WithCommandsOptions, WithKeybindingsOptions, WrappedLine, YogaLayoutEngine, Z_INDEX, activeEditContextRef, activeEditTargetRef, ansi16DarkTheme, ansi16LightTheme, applyTextOp, autoEnableInspector, builtinThemes, calcEdgeBasedScrollOffset, checkDoubleClick, clampScroll, collect, computeEnterLeave, connectDevTools, constrainText, copyToClipboard, countVisualLines, createCanvasAdapter, createCopyProvider, createCursorStore, createDOMAdapter, createDoubleClickState, createFlexilyZeroEngine as createFlexilyEngine, createFocusEvent, createFocusManager, createInputEvents, createKeyEvent, createLeaf, createMeasurer, createMouseEvent, createMouseEventProcessor, createOutputPhase, createPasteEvent, createPipeline, createPositionRegistry, createTerm, createTermEditContext, createWheelEvent, createWidthMeasurer, createYogaEngine, cursorMoveDown, cursorMoveUp, cursorToRowCol, defaultCaps, defaultDarkTheme, defaultLightTheme, deleteKittyImage, deriveTheme, detectColorScheme, detectKittyFromStdio, detectKittySupport, detectTerminalCaps, detectTextSizingSupport, detectTheme, disableBracketedPaste, disableFocusReporting, disableInspector, disableKittyKeyboard, disableMouse, dispatchFocusEvent, dispatchKeyEvent, dispatchMouseEvent, displayWidth, displayWidthAnsi, easings, emptyKey, enableBracketedPaste, enableFocusReporting, enableInspector, enableKittyKeyboard, enableMouse, encodeKittyImage, encodeSixel, ensureEmojiPresentation, findAdjacentPane, findByTestID, findEnclosingScope, findFocusableAncestor, findSpatialTarget, formatTitleWithHotkey, fx, generateTheme, getCursorState, getExplicitFocusLink, getFirstCodePoint, getInternalClipboard, getModifierState, getPaneIds, getTabOrder as getSplitTabOrder, getTabOrder$1 as getTabOrder, getThemeByName, getWrappedLines, graphemeCount, graphemeWidth, hasAnsi, hasWideCharacters, hasZeroWidthCharacters, hitTest, initYogaEngine, injectDOMStyles, inspectFrame, inspectTree, invertTextOp, isCJK, isDevToolsConnected, isInspectorEnabled, isKittyGraphicsSupported, isLayoutEngineInitialized, isLikelyEmoji, isMouseSequence, isPrivateUseArea, isSixelSupported, isTTY, isTerm, isTextSizingEnabled, isTextSizingLikelySupported, isWideGrapheme, isZeroWidthGrapheme, keyToModifiers, keyToName, lastModifierState, matchHotkey, measureElement, measureText, mergeTextOps, moveCursor, normalizeText, notify, notifyITerm2, notifyKitty, padText, parseAnsiText, parseBracketedPaste, parseClipboardResponse, parseFocusEvent, parseHotkey, parseKey, parseKeypress, parseMouseSequence, parsePaletteResponse, patchConsole, pickColorLevel, processMouseEvent, quantizeHex, queryBackgroundColor, queryCellSize, queryCursorColor, queryCursorFromStdio, queryCursorPosition, queryDeviceAttributes, queryForegroundColor, queryKittyKeyboard, queryMode, queryModes, queryMultiplePaletteColors, queryPaletteColor, queryPrimaryDA, querySecondaryDA, queryTerminalVersion, queryTertiaryDA, queryTextAreaPixels, queryTextAreaSize, removePane, render, renderScreenReaderOutput, renderStatic, renderString, renderStringSync, renderSync, reportDirectory, requestClipboard, resetBackgroundColor, resetCursorColor, resetCursorState, resetCursorStyle, resetForegroundColor, resetHitRegionIdCounter, resetMouseCursorShape, resetScrollRegion, resetWindowTitle, resizeSplit, resolveEasing, resolveNonTTYMode, resolveThemeColor, rowColToCursor, runTermtest, runWithMeasurer, scrollDown, scrollUp, setBackgroundColor, setCursorColor, setCursorStyle, setForegroundColor, setLayoutEngine, setMouseCursorShape, setOutputCaps, setPaletteColor, setScrollRegion, setTextEmojiWide, setTextSizingEnabled, setWindowAndIconTitle, setWindowTitle, shallow, sliceByWidth, sliceByWidthFromEnd, sliceByWidthRange, splitGraphemes, splitPane, stripAnsi, stripAnsi as stripAnsiUnicode, subscribeCursor, supportsScrollRegions, swapPanes, term, textSized, toneFgToken, toneFillTokens, toneIcon, toneSubtleTokens, truncateAnsi, truncateText, useActiveScheme, useAgNode, useTransition as useAnimatedTransition, useAnimation, useApp, useBoxMetrics, useBoxRect, useColorScheme, useConsole, useCopyModeState, useCursor, useDeferredValue, useDragState, useEditContext, useExit, useFindState, useFocus, useFocusManager, useFocusWithin, useFocusable, useGridPosition, useHitRegion, useHitRegionCallback, useHitRegistry, useId, useInput, useInputLayer, useInputLayerContext, useInteractiveState, useInterval, useLatest, useListItem, useModifierKeys, useMouseCursor, usePaste, usePasteEvents, usePositionRegistry, useReadline, useRuntime, useScreenRect, useScrollRect, useSearch, useSearchOptional, useSelection, useSignal, useStderr, useStdout, useTea, useTerm, useTerminalFocused, useTextArea, useTheme, useTimeout, useToast, useTransition$1 as useTransition, useVirtualizer, useWindowSize, withCommands, withDiagnostics, withKeybindings, withMeasurer, withRender, wrapText, writeLinesToBuffer, writeTextToBuffer, writeTextTruncated };
|
|
58
|
+
export { ANSI, Accordion, AccordionProps, ActiveScheme, ActiveSchemeContext, AgNode, AgNodeHandle, Alert, AlertActionsProps, AlertBodyProps, AlertProps, AlertTitleProps, AnchoredOverlay, AnchoredOverlayProps, Rect as AnchoredOverlayRect, Rect, AnimatedNumber, AnimatedNumberProps, AnsiPrimary, App, AppScopeContext, AppState, AppWithCommands, AriaState, AutoLocator, BEL, Backdrop, BackdropProps, Badge, Badge as Tag, BadgeProps, BadgeProps as TagProps, Banner, BannerProps, BaseRuntimeEvents, Blockquote, BlurEvent, BorderChars, BoundTerm, Box, BoxHandle, BoxMetrics, BoxProps, BracketedPasteResult, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Breakpoint, Button, ButtonProps, CacheBackend, CacheBackendContext, CanvasAdapterConfig, CanvasRenderBuffer, CapabilityLookup, CapabilityRegistryContext, ChainAppContext, ChainAppContextValue, ChainFocusEvents, ChainFocusHandler, ChainInputHandler, ChainInputStore, ChainKey, ChainPasteHandler, ChainPasteStore, ChainRawKeyHandler, ChainRawKeyObserver, ClipboardBackend, ClipboardCapabilities, ClipboardData, Cmd, Code, CodeBlock, ColorLevel, ColorProvenance, Column, Column as TableColumn, Command, CommandDef, CommandInfo, CommandItem, CommandPalette, CommandPaletteProps, CommandRegistryLike, Console, ConsoleCaptureOptions, ConsoleEntry, ConsoleStats, CopyEvent, CreateTerminalProfileOptions, CursorAccessors, CursorLine, CursorLineProps, CursorPosition, CursorProvider, CursorShape, CursorState, CursorStore, CustomEvent, DEFAULT_BREAKPOINTS, DOMAdapterConfig, DOMRenderBuffer, DecMode, DetectSchemeOptions, DetectSchemeResult, DetectSource, DetectThemeOptions, DetectedScheme, DeviceAttributes, DiagnosticOptions, Diff, DiffHunk, DiffLine, DiffMode, DiffProps, Divider, DividerProps, EasingFn, EasingName, EditContextDisplay, EditContextDisplayProps, EditContextLike, EditTarget, EffectLike, Em, ErrorBoundary, ErrorBoundaryProps, Event, EventSource, ExtendedKeybindingDef, Fill, FillProps, FilterOptions, FlexilyZeroLayoutEngine as FlexilyLayoutEngine, FocusChangeCallback, FocusEvent, FocusEventProps, FocusManager, FocusManagerContext, FocusManagerOptions, FocusOrigin, FocusSnapshot, ForeignSource, Form, FormField, FormFieldProps, FormProps, GraphemeInputHandler, GridCell, GridCellProps, H1, H2, H3, H4, H5, H6, HIDE_DELAY_MS, HOVER_SHOW_DELAY_MS, HR, Heading, HeadingLevel, HeadingProps, HeightModel, HeightModelOptions, HitRegion, HitRegistry, HitRegistryContext, HitTarget, HorizontalVirtualList, HorizontalVirtualListHandle, HorizontalVirtualListProps, HotkeyEvent, HotkeyHandler, HotkeyMap, Image, ImageProps, IncrementalRenderMismatchError, InlineAlert, InlineAlertProps, InputBoundary, InputBoundaryProps, InputHandler, InputLayer, InputLayerContext, InputLayerContextValue, InputLayerHandler, InputLayerProvider, InputLayerProviderProps, InspectorOptions, Instance, Island, IslandCapabilities, IslandContext, IslandCursorState, IslandGuest, IslandHandle, IslandHydrate, IslandInputEvent, IslandInputOwner, IslandKeyEvent, IslandModesOwner, IslandMouseEvent, IslandNodeState, IslandOutputOwner, IslandPaletteOwner, IslandPalettePolicy, IslandProps, IslandProtocolModes, IslandSignal, IslandSignalsOwner, IslandSizeOwner, Kbd, Key, KeyEvent, KeybindingContext, KeybindingDef, KittyDetectResult, KittyFlags, KittyImageOptions, KittyPlaceOptions, LI, LayoutConstants, LayoutEngine, LayoutNode, Lead, LineNumber, LineNumberProps, Link, LinkProps, ListItemContext, ListItemMeta, ListView, ListViewCacheConfig, ListViewHandle, ListViewProps, ListViewSearchConfig, MapChildIndexOptions, MappedChild, MatchRange, MeasureElementOutput, MeasureFunc, MeasureMode, MeasuredBox, MeasuredBoxProps, MeasuredBoxRect, MeasuredBoxRenderFn, MeasuredTerm, Measurer, ModalDialog, ModalDialogProps, ModifierState, MouseCursorShape, MouseEvent, MouseEventProcessorOptions, MouseEventProcessorState, MouseEventProps, Muted, Newline, NonTTYMode, NonTTYOptions, OL, OSC133, OutputCaps, OutputPhaseFn, P, PASTE_END, PASTE_START, PanicHandler, PanicOptions, ParseMouseOptions, ParsedHotkey, ParsedKeypress, ParsedMouse, PasteEvent, PasteHandler, PasteProvider, Console$1 as PatchedConsole, PickerDialog, PickerDialogProps, PickerList, PickerListProps, PipelineConfig, PipelineContext, PopoverAnchor, PopoverContent, PopoverProvider, PositionRegistry, PositionRegistryProvider, ProbeTerminalProfileOptions, ProgressBar, ProgressBarProps, Prose, ProseHandle, ProseProps, Pulse, PulseProps, RadioGroup, RadioGroupOption, RadioGroupProps, RawKeyEvent, RawKeyEventHandler, ReactiveThemeProvider, ReadlineState, RenderBuffer, RenderMode, RenderOptions, RenderStringOptions, RenderStyle, RenderTerm, ResizeEvent, ResolvedNonTTYMode, Responsive, ResponsiveValues, RuntimeContext, RuntimeContextValue, SCROLLBAR_FADE_AFTER_MS, ScopeContext, ScopeEffectCleanup, ScopeEffectSetup, ScopeProvider, ScopeProviderProps, Screen, ScreenProps, ScrollArea, ScrollAreaProps, ScrollController, ScrollRect, ScrollRegionConfig, Scrollbar, ScrollbarProps, SearchBar, SearchContextValue, SearchProvider, Searchable, SelectList, SelectListProps, SelectOption, SemanticCopyProvider, SignalEvent, SilveryErrorBoundary, SilveryErrorBoundaryProps, SilveryFocusEvent, SilveryKeyEvent, SilveryMouseEvent, SilveryWheelEvent, SixelImageData, Skeleton, SkeletonProps, SlotSource, Small, Spacer, Spinner, SpinnerProps, LayoutNode$1 as SplitLayoutNode, SplitView, SplitViewProps, Static, StderrContext, Strong, StyleChain, StyledSegment, Toggle as Switch, Toggle, ToggleProps as SwitchProps, ToggleProps, TERMTEST_SECTIONS, Tab, TabList, TabListProps, TabPanel, TabPanelProps, TabProps, Table, TableProps, Tabs, TabsProps, TeaResult, Term, TermContext, TermEditContext, TermEditContextOptions, Terminal, TerminalCaps, TerminalCell, TerminalCursor, TerminalMouseEvent, TerminalProfile, TerminalProps, TerminalRGB, TerminalReadable, TermtestOptions, TermtestSection, Text, TextArea, TextAreaHandle, TextAreaProps, TextAreaSelection, TextHandle, TextInput, TextInputEvent, TextInputHandle, TextInputHandler, TextInputProps, TextMeasureResult, TextMeasureStyle, TextMeasurer, TextOp, TextProps, TextReveal, TextRevealProps, TextShimmer, TextShimmerProps, Theme, ThemeProvider, ThemeProviderProps, ThemeTokens, TimeToFirstDraw, TimeToFirstDrawProps, TimerEffect, ToastContainer, ToastContainerProps, ToastData, ToastItem, ToastItemProps, ToastOptions, ToastVariant, Tooltip, TooltipProps, Transform, TransformProps, TreeNode, TreeView, TreeViewProps, TypographyProps, UL, UseAnimationOptions, UseAnimationResult, UseAppResult, UseEditContextOptions, UseEditContextResult, UseFocusManagerResult, UseFocusOptions, UseFocusResult, UseFocusableResult, UseHotkeyOptions, UseHoverReturn, UseInputOptions, UseKineticScrollOptions, UseKineticScrollResult, UseModifierKeysOptions, UsePulseOptions, UseRawKeyEventOptions, UseReadlineOptions, UseReadlineResult, UseResponsiveValueOptions, UseStderrResult, UseStdoutResult, UseTextAreaOptions, UseTextAreaResult, UseTextInputOptions, UseToastResult, UseTransitionOptions, VARIANT_ICONS, VERSION, Variant, VariantFillTokens, VariantSubtleTokens, Viewport, ViewportProps, ViewportRef, VirtualTerminal, VirtualizerConfig, VirtualizerResult, WithCommandsOptions, WithKeybindingsOptions, WrappedLine, YogaLayoutEngine, Z_INDEX, activeEditContextRef, activeEditTargetRef, ansi16DarkTheme, ansi16LightTheme, applyTextOp, autoEnableInspector, builtinThemes, calcEdgeBasedScrollOffset, checkDoubleClick, clampScroll, collect, computeEnterLeave, computeIndexTrailingSpacer, computeMatchRanges, connectDevTools, constrainText, countVisualLines, createCanvasAdapter, createCompositeClipboard, createConsole, createCopyProvider, createCursorStore, createDOMAdapter, createDoubleClickState, createFlexilyZeroEngine as createFlexilyEngine, createFocusEvent, createFocusManager, createHeightModel, createInputEvents, createInternalClipboardBackend, createKeyEvent, createLeaf, createMeasurer, createMouseEvent, createMouseEventProcessor, createOsc52Backend, createOutputPhase, createPasteEvent, createPipeline, createPositionRegistry, createTerm, createTermEditContext, createTerminalProfile, createWheelEvent, createYogaEngine, cursorMoveDown, cursorMoveUp, cursorToRowCol, defaultCaps, defaultDarkTheme, defaultLightTheme, deleteKittyImage, deleteKittyPlacement, deriveTheme, detectColorScheme, detectKittyFromStdio, detectKittySupport, detectScheme, detectSchemeTheme, detectTerminalScheme, detectTextSizingSupport, detectTheme, disableBracketedPaste, disableFocusReporting, disableInspector, disableKittyKeyboard, disableMouse, dispatchFocusEvent, dispatchKeyEvent, dispatchMouseEvent, displayWidth, displayWidthAnsi, easings, emptyKey, enableBracketedPaste, enableFocusReporting, enableInspector, enableKittyKeyboard, enableMouse, encodeKittyImage, encodeSixel, encodeTerminalRow, ensureEmojiPresentation, findAdjacentPane, findByTestID, findEnclosingScope, findFocusableAncestor, findSpatialTarget, formatTitleWithHotkey, fx, generateTheme, getExplicitFocusLink, getFirstCodePoint, getInternalClipboard, getModifierState, getPaneIds, getTabOrder as getSplitTabOrder, getTabOrder$1 as getTabOrder, getTerminalFingerprint, getThemeByName, getWrappedLines, graphemeCount, graphemeWidth, hasAnsi, hasWideCharacters, hasZeroWidthCharacters, hitTest, initYogaEngine, injectDOMStyles, inspectFrame, inspectTree, invertTextOp, isCJK, isDevToolsConnected, isInspectorEnabled, isKittyGraphicsSupported, isLayoutEngineInitialized, isLikelyEmoji, isMouseSequence, isPrivateUseArea, isSixelSupported, isTTY, isTerm, isTextSizingEnabled, isWideGrapheme, isZeroWidthGrapheme, keyToModifiers, keyToName, lastModifierState, mapChildIndexToItem, matchHotkey, measureElement, measureText, mergeTextOps, moveCursor, normalizeText, notify, notifyITerm2, notifyKitty, padText, parseAnsiText, parseBracketedPaste, parseClipboardResponse, parseFocusEvent, parseHotkey, parseKey, parseKeypress, parseMouseSequence, parsePaletteResponse, pickColorLevel, placeKittyImage, probeColors, probeTerminalProfile, processMouseEvent, quantizeHex, queryBackgroundColor, queryCellSize, queryCursorColor, queryCursorFromStdio, queryCursorPosition, queryDeviceAttributes, queryForegroundColor, queryKittyKeyboard, queryMode, queryModes, queryMultiplePaletteColors, queryPaletteColor, queryPrimaryDA, querySecondaryDA, queryTerminalVersion, queryTertiaryDA, queryTextAreaPixels, queryTextAreaSize, removePane, render, renderScreenReaderOutput, renderStatic, renderString, renderStringSync, renderSync, reportDirectory, resetBackgroundColor, resetCursorColor, resetCursorState, resetCursorStyle, resetForegroundColor, resetHitRegionIdCounter, resetMouseCursorShape, resetScrollRegion, resetWindowTitle, resizeSplit, resolveEasing, resolveNonTTYMode, resolveThemeColor, rowColToCursor, runTermtest, runWithMeasurer, scrollDown, scrollUp, setBackgroundColor, setCursorColor, setCursorStyle, setForegroundColor, setLayoutEngine, setMouseCursorShape, setPaletteColor, setScrollRegion, setWindowAndIconTitle, setWindowTitle, shallow, shouldKeepHeightModelSnapshot, sliceByWidth, sliceByWidthFromEnd, sliceByWidthRange, splitGraphemes, splitPane, stripAnsi, stripAnsi as stripAnsiUnicode, supportsScrollRegions, swapPanes, term, textSized, truncateAnsi, truncateText, useActiveScheme, useAgNode, useTransition as useAnimatedTransition, useAnimation, useApp, useAppScope, useBoxMetrics, useBoxRect, useBoxRectDangerously, useBoxRectInFlight, useColorScheme, useConsole, useCopyModeState, useCursor, useDeferredValue, useDragState, useEditContext, useExit, useFindState, useFocus, useFocusManager, useFocusWithin, useFocusable, useGridPosition, useHitRegion, useHitRegionCallback, useHitRegistry, useHotkey, useHotkeyMap, useHover, useId, useInput, useInputLayer, useInputLayerContext, useInteractiveState, useInterval, useKineticScroll, useLatest, useListItem, useModifierKeys, useMouseCursor, useOnBoxRectCommitted, useOnScreenRectCommitted, useOnScrollRectCommitted, usePanic, usePaste, usePasteEvents, usePopover, usePopoverHandlers, usePositionRegistry, usePulse, useRawKeyEvent, useReadline, useResponsiveBoxProps, useResponsiveValue, useRuntime, useScope, useScopeEffect, useScreenRect, useScreenRectInFlight, useScrollController, useScrollRect, useScrollRectInFlight, useSearch, useSearchOptional, useSelection, useSignal, useStderr, useStdout, useTea, useTerm, useTerminalFocused, useTextArea, useTextInput, useTheme, useTimeout, useToast, useTransition$1 as useTransition, useVirtualizer, useWindowSize, variantFgToken, variantFillTokens, variantIcon, variantSubtleTokens, withCommands, withDiagnostics, withKeybindings, withMeasurer, withRender, wrapText, writeLinesToBuffer, writeTextToBuffer, writeTextTruncated };
|
|
56
59
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;cAGa,OAAA;;;;;AAAb;;;;;AAsDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAgB,MAAA,CACd,OAAA,EAAS,YAAA,EACT,SAAA,GAAY,IAAA,GAAO,OAAA,EACnB,OAAA,GAAU,aAAA,GACT,UAAA,QAAkB,QAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { i as FocusManagerContext, l as TermContext, n as CapabilityRegistryContext, o as RuntimeContext, r as ChainAppContext, s as StderrContext, t as CacheBackendContext } from "./context-BU5LkkIy.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { $ as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as
|
|
7
|
-
import { E as
|
|
8
|
-
import {
|
|
9
|
-
import { n as
|
|
10
|
-
import { n as
|
|
11
|
-
import { n as
|
|
12
|
-
import {
|
|
2
|
+
import { a as Box, i as useTheme, n as ActiveSchemeContext, t as Text } from "./Text-Lq0dmj8-.mjs";
|
|
3
|
+
import { $a as computeIndexTrailingSpacer, $i as useExit, $n as Diff, $r as variantFgToken, $t as createCompositeClipboard, Aa as setCursorStyle, Ai as createCopyProvider, An as dispatchFocusEvent, Ar as H5, At as isInspectorEnabled, Ba as getPaneIds, Bi as supportsScrollRegions, Bn as calcEdgeBasedScrollOffset, Br as Strong, Bt as queryModes, Ca as notifyITerm2, Ci as useListItem, Cn as usePopover, Cr as Code, Ct as createPipeline, Da as resetCursorStyle, Di as useFindState, Dn as useResponsiveValue, Dr as H2, Dt as enableInspector, Ea as reportDirectory, Ei as useCopyModeState, En as DEFAULT_BREAKPOINTS, Er as H1, Et as disableInspector, Fa as lastModifierState, Fi as moveCursor, Fn as SilveryErrorBoundary, Fr as Lead, Ft as queryCellSize, Ga as swapPanes, Gi as useInputLayerContext, Gn as usePositionRegistry, Gr as SelectList, Gt as queryTertiaryDA, Ha as removePane, Hi as InputLayerContext, Hn as useGridPosition, Hr as Divider, Ht as queryPrimaryDA, Ia as useModifierKeys, Ii as resetScrollRegion, In as Static, Ir as Muted, It as queryTextAreaPixels, Ja as ListView, Ji as useFocusable, Jn as RadioGroup, Jr as ProgressBar, Jt as TERMTEST_SECTIONS, Ka as SplitView, Ki as useFocusManager, Kn as Terminal, Kr as Pulse, Kt as queryCursorFromStdio, La as Fill, Li as scrollDown, Ln as Spacer, Lr as OL, Lt as queryTextAreaSize, Ma as setWindowAndIconTitle, Mi as getInternalClipboard, Mn as createFocusManager, Mr as HR, Mt as resolveNonTTYMode, Na as setWindowTitle, Ni as PasteProvider, Nn as ScopeProvider, Nr as Kbd, Nt as createInputEvents, Oa as resetMouseCursorShape, Oi as useSelection, On as createFocusEvent, Or as H3, Ot as inspectFrame, Pa as getModifierState, Pi as usePaste, Pn as usePanic, Pr as LI, Pt as isTerm, Qa as computeMatchRanges, Qi as useAppScope, Qn as AnimatedNumber, Qr as VARIANT_ICONS, Qt as OSC133, Ra as createLeaf, Ri as scrollUp, Rn as Newline, Rr as P, Rt as DecMode, Sa as notify, Si as useColorScheme, Sn as PopoverProvider, Sr as Blockquote, St as withCommands, Ta as queryKittyKeyboard, Ti as useDragState, Tn as useResponsiveBoxProps, Tr as Em, Tt as autoEnableInspector, Ua as resizeSplit, Ui as InputLayerProvider, Un as PositionRegistryProvider, Ur as Badge, Ut as querySecondaryDA, Va as getTabOrder, Vi as useTerminalFocused, Vn as GridCell, Vr as UL, Vt as queryDeviceAttributes, Wa as splitPane, Wi as useInputLayer, Wn as createPositionRegistry, Wr as Table, Wt as queryTerminalVersion, Xa as useSearch, Xi as useStderr, Xn as TextReveal, Xr as SearchBar, Xt as detectKittyFromStdio, Ya as SearchProvider, Yi as useFocus, Yn as TimeToFirstDraw, Yr as Spinner, Yt as runTermtest, Za as useSearchOptional, Zi as useStdout, Zn as TextShimmer, Zr as Button, Zt as detectKittySupport, _a as KittyFlags, _i as cursorToRowCol, _n as createCursorStore, _o as Viewport, _r as useToast, _t as renderSync, a as ReactiveThemeProvider, aa as useHotkeyMap, ai as PickerList, an as injectDOMStyles, ao as ScrollArea, ar as Tab, at as InputBoundary, ba as enableKittyKeyboard, bi as TextInput, bn as HIDE_DELAY_MS, br as Heading, bt as withDiagnostics, ca as useAgNode, ci as formatTitleWithHotkey, cn as HitRegistryContext, co as useKineticScroll, cr as Tabs, ct as useEditContext, da as useConsole, di as TextArea, dn as useHitRegistry, do as MeasuredBox, dr as CommandPalette, dt as mergeTextOps, ea as useApp, ei as variantFillTokens, en as createInternalClipboardBackend, eo as mapChildIndexToItem, er as LineNumber, fa as ErrorBoundary, fi as clampScroll, fn as HitRegistry, fo as Island, fr as Alert, ft as createTermEditContext, ga as BEL, gi as cursorMoveUp, gn as CursorProvider, go as ScopeContext, gr as ToastItem, gt as renderStatic, ha as ANSI, hi as cursorMoveDown, hn as ThemeProvider, ho as AppScopeContext, hr as ToastContainer, ht as render$1, i as useActiveScheme, ia as useHotkey, ii as PickerDialog, in as createDOMAdapter, io as useVirtualizer, ir as Tooltip, it as collect, ja as setMouseCursorShape, ji as createPasteEvent, jn as dispatchKeyEvent, jr as H6, jt as isTTY, ka as resetWindowTitle, ki as usePasteEvents, kn as createKeyEvent, kr as H4, kt as inspectTree, la as Screen, li as CursorLine, ln as useHitRegion, lo as Scrollbar, lr as Breadcrumb, lt as applyTextOp, ma as useMouseCursor, mi as countVisualLines, mn as resetHitRegionIdCounter, mo as useScope, mr as InlineAlert, mt as measureElement, n as useId, na as useRawKeyEvent, ni as variantSubtleTokens, nn as parseClipboardResponse, no as shouldKeepHeightModelSnapshot, nr as Skeleton, nt as useTea, oa as useBoxMetrics, oi as Backdrop, on as CanvasRenderBuffer, oo as useScrollController, or as TabList, ot as activeEditContextRef, pa as Link, pi as useTextArea, pn as Z_INDEX, po as useScopeEffect, pr as Banner, pt as renderScreenReaderOutput, qa as HorizontalVirtualList, qi as useFocusWithin, qn as encodeTerminalRow, qr as usePulse, qt as queryCursorPosition, r as useTransition$1, ra as useTextInput, ri as Toggle, rn as DOMRenderBuffer, ro as useInput, rr as AnchoredOverlay, rt as fx, sa as useSignal, si as ModalDialog, sn as createCanvasAdapter, so as SCROLLBAR_FADE_AFTER_MS, sr as TabPanel, st as activeEditTargetRef, t as useDeferredValue, ta as useRuntime, ti as variantIcon, tn as createOsc52Backend, to as createHeightModel, tr as Accordion, ua as Console, ui as EditContextDisplay, un as useHitRegionCallback, uo as useHover, ur as TreeView, ut as invertTextOp, va as disableKittyKeyboard, vi as getWrappedLines, vn as resetCursorState, vr as Form, vt as withRender, wa as notifyKitty, wi as useInteractiveState, wn as usePopoverHandlers, wr as CodeBlock, wt as withMeasurer, xa as enableMouse, xi as useReadline, xn as HOVER_SHOW_DELAY_MS, xr as Prose, xt as withKeybindings, ya as disableMouse, yi as rowColToCursor, yn as useCursor, yr as FormField, yt as VirtualTerminal, za as findAdjacentPane, zi as setScrollRegion, zn as Transform, zr as Small, zt as queryMode } from "./src-BR4xNwdG.mjs";
|
|
4
|
+
import { C as useScrollRectInFlight, S as useScrollRect, _ as useOnBoxRectCommitted, a as deleteKittyImage, b as useScreenRect, c as isKittyGraphicsSupported, d as shallow, f as useTerm, h as useBoxRectInFlight, i as isSixelSupported, l as placeKittyImage, m as useBoxRectDangerously, o as deleteKittyPlacement, p as useBoxRect, r as encodeSixel, s as encodeKittyImage, t as Image, u as useWindowSize, v as useOnScreenRectCommitted, x as useScreenRectInFlight, y as useOnScrollRectCommitted } from "./image-C2Birh2x.mjs";
|
|
5
|
+
import { $ as queryMultiplePaletteColors, B as detectColorScheme, F as pickColorLevel, G as resetCursorColor, H as queryCursorColor, I as quantizeHex, J as setCursorColor, K as resetForegroundColor, L as detectTerminalScheme, M as createTerminalProfile, N as probeTerminalProfile, Q as parsePaletteResponse, R as detectTheme, U as queryForegroundColor, V as queryBackgroundColor, W as resetBackgroundColor, Y as setForegroundColor, c as detectScheme, et as queryPaletteColor, ft as defaultCaps, it as deriveTheme, l as detectSchemeTheme, m as resolveThemeColor, o as generateTheme, q as setBackgroundColor, tt as setPaletteColor, z as probeColors } from "./src-BNTToU7l.mjs";
|
|
6
|
+
import { a as defaultDarkTheme, c as getThemeByName, i as builtinThemes, n as ansi16LightTheme, o as defaultLightTheme, t as ansi16DarkTheme } from "./schemes-JjNp4aSl.mjs";
|
|
7
|
+
import { At as keyToName, B as isTextSizingEnabled, C as IncrementalRenderMismatchError, D as displayWidth, E as createMeasurer, F as hasWideCharacters, G as normalizeText, I as hasZeroWidthCharacters, J as runWithMeasurer, K as padText, L as isCJK, M as graphemeCount, Mt as parseHotkey, N as graphemeWidth, Nt as parseKey, O as displayWidthAnsi, P as hasAnsi, Pt as parseKeypress, Q as splitGraphemes, R as isLikelyEmoji, T as constrainText, Tt as emptyKey, U as isZeroWidthGrapheme, V as isWideGrapheme, W as measureText, X as sliceByWidthFromEnd, Y as sliceByWidth, Z as sliceByWidthRange, _ as enableBracketedPaste, at as writeLinesToBuffer, b as parseMouseSequence, ct as detectTextSizingSupport, d as disableFocusReporting, dt as isPrivateUseArea, et as stripAnsi, f as enableFocusReporting, ft as textSized, g as disableBracketedPaste, h as PASTE_START, i as createConsole, j as getFirstCodePoint, jt as matchHotkey, k as ensureEmojiPresentation, kt as keyToModifiers, m as PASTE_END, n as createTerm, nt as truncateText, ot as writeTextToBuffer, p as parseFocusEvent, q as parseAnsiText, rt as wrapText, st as writeTextTruncated, t as term, tt as truncateAnsi, ut as getTerminalFingerprint, v as parseBracketedPaste, x as createOutputPhase, y as isMouseSequence } from "./ansi-yC4RyBNY.mjs";
|
|
8
|
+
import { i as isLayoutEngineInitialized, o as setLayoutEngine } from "./layout-engine-C2px0RJE.mjs";
|
|
9
|
+
import { n as renderStringSync, t as renderString } from "./render-string-DkQacASz.mjs";
|
|
10
|
+
import { a as useAnimation, i as useTransition, n as useTimeout, o as easings, r as useInterval, s as resolveEasing, t as useLatest } from "./animation-ZMN2_XKv.mjs";
|
|
11
|
+
import { C as findSpatialTarget, S as findFocusableAncestor, T as getTabOrder$1, a as createDoubleClickState, b as findByTestID, c as createWheelEvent, d as hitTest, f as processMouseEvent, l as dispatchMouseEvent, n as checkDoubleClick, o as createMouseEvent, r as computeEnterLeave, s as createMouseEventProcessor, w as getExplicitFocusLink, x as findEnclosingScope } from "./mouse-events-Dki3ISIp.mjs";
|
|
12
|
+
import { n as createYogaEngine, r as initYogaEngine, t as YogaLayoutEngine } from "./yoga-adapter-BnZX1PAY.mjs";
|
|
13
|
+
import { n as createFlexilyZeroEngine, t as FlexilyZeroLayoutEngine } from "./flexily-zero-adapter-C3Vj0fPt.mjs";
|
|
14
|
+
import { n as connectDevTools, r as isDevToolsConnected } from "./devtools-DcQjgyjL.mjs";
|
|
13
15
|
//#region src/index.ts
|
|
14
16
|
const VERSION = "0.0.1";
|
|
15
17
|
/**
|
|
@@ -64,6 +66,6 @@ function render(element, termOrDef, options) {
|
|
|
64
66
|
return render$1(element, termOrDef, options);
|
|
65
67
|
}
|
|
66
68
|
//#endregion
|
|
67
|
-
export { ANSI, ActiveSchemeContext, Alert, BEL, Backdrop, Badge, Banner, Blockquote, Box, Breadcrumb, Button, CacheBackendContext, CanvasRenderBuffer, CapabilityRegistryContext, ChainAppContext, Code, CodeBlock, CommandPalette, Console, CursorLine, CursorProvider, DOMRenderBuffer, DecMode, Divider, EditContextDisplay, Em, ErrorBoundary, Fill, FlexilyZeroLayoutEngine as FlexilyLayoutEngine, FocusManagerContext, Form, FormField, GridCell, H1, H2, H3, HR, Heading, HitRegistry, HitRegistryContext, HorizontalVirtualList, Image, IncrementalRenderMismatchError, InlineAlert, InputBoundary, InputLayerContext, InputLayerProvider, Kbd, KittyFlags, LI, Lead, Link, ListView, ModalDialog, Muted, Newline, OL, OSC133, P, PASTE_END, PASTE_START, PasteProvider, PickerDialog, PickerList, PositionRegistryProvider, ProgressBar, ReactiveThemeProvider, RuntimeContext, Screen, SearchBar, SearchProvider, SelectList, SilveryErrorBoundary, Skeleton, Small, Spacer, Spinner, SplitView, Static, StderrContext, Strong,
|
|
69
|
+
export { ANSI, Accordion, ActiveSchemeContext, Alert, AnchoredOverlay, AnimatedNumber, AppScopeContext, BEL, Backdrop, Badge, Badge as Tag, Banner, Blockquote, Box, Breadcrumb, Button, CacheBackendContext, CanvasRenderBuffer, CapabilityRegistryContext, ChainAppContext, Code, CodeBlock, CommandPalette, Console, CursorLine, CursorProvider, DEFAULT_BREAKPOINTS, DOMRenderBuffer, DecMode, Diff, Divider, EditContextDisplay, Em, ErrorBoundary, Fill, FlexilyZeroLayoutEngine as FlexilyLayoutEngine, FocusManagerContext, Form, FormField, GridCell, H1, H2, H3, H4, H5, H6, HIDE_DELAY_MS, HOVER_SHOW_DELAY_MS, HR, Heading, HitRegistry, HitRegistryContext, HorizontalVirtualList, Image, IncrementalRenderMismatchError, InlineAlert, InputBoundary, InputLayerContext, InputLayerProvider, Island, Kbd, KittyFlags, LI, Lead, LineNumber, Link, ListView, MeasuredBox, ModalDialog, Muted, Newline, OL, OSC133, P, PASTE_END, PASTE_START, PasteProvider, PickerDialog, PickerList, PopoverProvider, PositionRegistryProvider, ProgressBar, Prose, Pulse, RadioGroup, ReactiveThemeProvider, RuntimeContext, SCROLLBAR_FADE_AFTER_MS, ScopeContext, ScopeProvider, Screen, ScrollArea, Scrollbar, SearchBar, SearchProvider, SelectList, SilveryErrorBoundary, Skeleton, Small, Spacer, Spinner, SplitView, Static, StderrContext, Strong, Toggle as Switch, Toggle, TERMTEST_SECTIONS, Tab, TabList, TabPanel, Table, Tabs, TermContext, Terminal, Text, TextArea, TextInput, TextReveal, TextShimmer, ThemeProvider, TimeToFirstDraw, ToastContainer, ToastItem, Tooltip, Transform, TreeView, UL, VARIANT_ICONS, VERSION, Viewport, VirtualTerminal, YogaLayoutEngine, Z_INDEX, activeEditContextRef, activeEditTargetRef, ansi16DarkTheme, ansi16LightTheme, applyTextOp, autoEnableInspector, builtinThemes, calcEdgeBasedScrollOffset, checkDoubleClick, clampScroll, collect, computeEnterLeave, computeIndexTrailingSpacer, computeMatchRanges, connectDevTools, constrainText, countVisualLines, createCanvasAdapter, createCompositeClipboard, createConsole, createCopyProvider, createCursorStore, createDOMAdapter, createDoubleClickState, createFlexilyZeroEngine as createFlexilyEngine, createFocusEvent, createFocusManager, createHeightModel, createInputEvents, createInternalClipboardBackend, createKeyEvent, createLeaf, createMeasurer, createMouseEvent, createMouseEventProcessor, createOsc52Backend, createOutputPhase, createPasteEvent, createPipeline, createPositionRegistry, createTerm, createTermEditContext, createTerminalProfile, createWheelEvent, createYogaEngine, cursorMoveDown, cursorMoveUp, cursorToRowCol, defaultCaps, defaultDarkTheme, defaultLightTheme, deleteKittyImage, deleteKittyPlacement, deriveTheme, detectColorScheme, detectKittyFromStdio, detectKittySupport, detectScheme, detectSchemeTheme, detectTerminalScheme, detectTextSizingSupport, detectTheme, disableBracketedPaste, disableFocusReporting, disableInspector, disableKittyKeyboard, disableMouse, dispatchFocusEvent, dispatchKeyEvent, dispatchMouseEvent, displayWidth, displayWidthAnsi, easings, emptyKey, enableBracketedPaste, enableFocusReporting, enableInspector, enableKittyKeyboard, enableMouse, encodeKittyImage, encodeSixel, encodeTerminalRow, ensureEmojiPresentation, findAdjacentPane, findByTestID, findEnclosingScope, findFocusableAncestor, findSpatialTarget, formatTitleWithHotkey, fx, generateTheme, getExplicitFocusLink, getFirstCodePoint, getInternalClipboard, getModifierState, getPaneIds, getTabOrder as getSplitTabOrder, getTabOrder$1 as getTabOrder, getTerminalFingerprint, getThemeByName, getWrappedLines, graphemeCount, graphemeWidth, hasAnsi, hasWideCharacters, hasZeroWidthCharacters, hitTest, initYogaEngine, injectDOMStyles, inspectFrame, inspectTree, invertTextOp, isCJK, isDevToolsConnected, isInspectorEnabled, isKittyGraphicsSupported, isLayoutEngineInitialized, isLikelyEmoji, isMouseSequence, isPrivateUseArea, isSixelSupported, isTTY, isTerm, isTextSizingEnabled, isWideGrapheme, isZeroWidthGrapheme, keyToModifiers, keyToName, lastModifierState, mapChildIndexToItem, matchHotkey, measureElement, measureText, mergeTextOps, moveCursor, normalizeText, notify, notifyITerm2, notifyKitty, padText, parseAnsiText, parseBracketedPaste, parseClipboardResponse, parseFocusEvent, parseHotkey, parseKey, parseKeypress, parseMouseSequence, parsePaletteResponse, pickColorLevel, placeKittyImage, probeColors, probeTerminalProfile, processMouseEvent, quantizeHex, queryBackgroundColor, queryCellSize, queryCursorColor, queryCursorFromStdio, queryCursorPosition, queryDeviceAttributes, queryForegroundColor, queryKittyKeyboard, queryMode, queryModes, queryMultiplePaletteColors, queryPaletteColor, queryPrimaryDA, querySecondaryDA, queryTerminalVersion, queryTertiaryDA, queryTextAreaPixels, queryTextAreaSize, removePane, render, renderScreenReaderOutput, renderStatic, renderString, renderStringSync, renderSync, reportDirectory, resetBackgroundColor, resetCursorColor, resetCursorState, resetCursorStyle, resetForegroundColor, resetHitRegionIdCounter, resetMouseCursorShape, resetScrollRegion, resetWindowTitle, resizeSplit, resolveEasing, resolveNonTTYMode, resolveThemeColor, rowColToCursor, runTermtest, runWithMeasurer, scrollDown, scrollUp, setBackgroundColor, setCursorColor, setCursorStyle, setForegroundColor, setLayoutEngine, setMouseCursorShape, setPaletteColor, setScrollRegion, setWindowAndIconTitle, setWindowTitle, shallow, shouldKeepHeightModelSnapshot, sliceByWidth, sliceByWidthFromEnd, sliceByWidthRange, splitGraphemes, splitPane, stripAnsi, stripAnsi as stripAnsiUnicode, supportsScrollRegions, swapPanes, term, textSized, truncateAnsi, truncateText, useActiveScheme, useAgNode, useTransition as useAnimatedTransition, useAnimation, useApp, useAppScope, useBoxMetrics, useBoxRect, useBoxRectDangerously, useBoxRectInFlight, useColorScheme, useConsole, useCopyModeState, useCursor, useDeferredValue, useDragState, useEditContext, useExit, useFindState, useFocus, useFocusManager, useFocusWithin, useFocusable, useGridPosition, useHitRegion, useHitRegionCallback, useHitRegistry, useHotkey, useHotkeyMap, useHover, useId, useInput, useInputLayer, useInputLayerContext, useInteractiveState, useInterval, useKineticScroll, useLatest, useListItem, useModifierKeys, useMouseCursor, useOnBoxRectCommitted, useOnScreenRectCommitted, useOnScrollRectCommitted, usePanic, usePaste, usePasteEvents, usePopover, usePopoverHandlers, usePositionRegistry, usePulse, useRawKeyEvent, useReadline, useResponsiveBoxProps, useResponsiveValue, useRuntime, useScope, useScopeEffect, useScreenRect, useScreenRectInFlight, useScrollController, useScrollRect, useScrollRectInFlight, useSearch, useSearchOptional, useSelection, useSignal, useStderr, useStdout, useTea, useTerm, useTerminalFocused, useTextArea, useTextInput, useTheme, useTimeout, useToast, useTransition$1 as useTransition, useVirtualizer, useWindowSize, variantFgToken, variantFillTokens, variantIcon, variantSubtleTokens, withCommands, withDiagnostics, withKeybindings, withMeasurer, withRender, wrapText, writeLinesToBuffer, writeTextToBuffer, writeTextTruncated };
|
|
68
70
|
|
|
69
71
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["reactRender"],"sources":["../src/index.ts"],"sourcesContent":["// silvery — multi-target rendering framework for React\n// Re-exports from @silvery/* packages\n\nexport const VERSION = \"0.0.1\"\n\n// Re-export everything from @silvery/ag-react — local `render` below shadows the re-exported one\nexport * from \"@silvery/ag-react\"\n\nimport type { ReactElement } from \"react\"\nimport { render as reactRender, type RenderOptions } from \"@silvery/ag-react\"\nimport type { Term } from \"@silvery/ag-react\"\nimport type { TermDef } from \"@silvery/ag-term/term-def\"\n\n/**\n * Render a React element to the terminal.\n *\n * Zero-ceremony entry point — auto-detects the terminal and starts an\n * interactive app when stdin is a TTY. No need to create a Term first.\n *\n * @example Hello World (2 lines)\n * ```tsx\n * import { render, Text } from \"silvery\"\n * await render(<Text>Hello!</Text>).run()\n * ```\n *\n * @example Interactive counter\n * ```tsx\n * import { useState } from \"react\"\n * import { render, Box, Text, useInput } from \"silvery\"\n *\n * function Counter() {\n * const [count, setCount] = useState(0)\n * useInput((input) => {\n * if (input === \"j\") setCount((c) => c + 1)\n * })\n * return (\n * <Box borderStyle=\"round\" padding={1}>\n * <Text>Count: {count}</Text>\n * </Box>\n * )\n * }\n *\n * await render(<Counter />).run()\n * ```\n *\n * @example Static render (explicit)\n * ```tsx\n * import { render, Text } from \"silvery\"\n * await render(<Text>Report</Text>, { width: 120 })\n * ```\n *\n * When called without a Term or TermDef:\n * - **TTY detected** → interactive mode (stdin + stdout auto-wired)\n * - **No TTY** → static mode (renders once and returns)\n *\n * Pass a Term or TermDef explicitly to override auto-detection.\n */\nexport function render(\n element: ReactElement,\n termOrDef?: Term | TermDef,\n options?: RenderOptions,\n): ReturnType<typeof reactRender> {\n // When no term/def is provided and we're in a TTY, auto-wire stdin/stdout\n // so the app runs interactively (useInput works, app stays alive until exit).\n if (!termOrDef && process.stdin?.isTTY && process.stdout?.isTTY) {\n const ttyDef: TermDef = {\n stdin: process.stdin,\n stdout: process.stdout,\n }\n return reactRender(element, ttyDef, options)\n }\n return reactRender(element, termOrDef, options)\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["reactRender"],"sources":["../src/index.ts"],"sourcesContent":["// silvery — multi-target rendering framework for React\n// Re-exports from @silvery/* packages\n\nexport const VERSION = \"0.0.1\"\n\n// Re-export everything from @silvery/ag-react — local `render` below shadows the re-exported one\nexport * from \"@silvery/ag-react\"\n\nimport type { ReactElement } from \"react\"\nimport { render as reactRender, type RenderOptions } from \"@silvery/ag-react\"\nimport type { Term } from \"@silvery/ag-react\"\nimport type { TermDef } from \"@silvery/ag-term/term-def\"\n\n/**\n * Render a React element to the terminal.\n *\n * Zero-ceremony entry point — auto-detects the terminal and starts an\n * interactive app when stdin is a TTY. No need to create a Term first.\n *\n * @example Hello World (2 lines)\n * ```tsx\n * import { render, Text } from \"silvery\"\n * await render(<Text>Hello!</Text>).run()\n * ```\n *\n * @example Interactive counter\n * ```tsx\n * import { useState } from \"react\"\n * import { render, Box, Text, useInput } from \"silvery\"\n *\n * function Counter() {\n * const [count, setCount] = useState(0)\n * useInput((input) => {\n * if (input === \"j\") setCount((c) => c + 1)\n * })\n * return (\n * <Box borderStyle=\"round\" padding={1}>\n * <Text>Count: {count}</Text>\n * </Box>\n * )\n * }\n *\n * await render(<Counter />).run()\n * ```\n *\n * @example Static render (explicit)\n * ```tsx\n * import { render, Text } from \"silvery\"\n * await render(<Text>Report</Text>, { width: 120 })\n * ```\n *\n * When called without a Term or TermDef:\n * - **TTY detected** → interactive mode (stdin + stdout auto-wired)\n * - **No TTY** → static mode (renders once and returns)\n *\n * Pass a Term or TermDef explicitly to override auto-detection.\n */\nexport function render(\n element: ReactElement,\n termOrDef?: Term | TermDef,\n options?: RenderOptions,\n): ReturnType<typeof reactRender> {\n // When no term/def is provided and we're in a TTY, auto-wire stdin/stdout\n // so the app runs interactively (useInput works, app stays alive until exit).\n if (!termOrDef && process.stdin?.isTTY && process.stdout?.isTTY) {\n const ttyDef: TermDef = {\n stdin: process.stdin,\n stdout: process.stdout,\n }\n return reactRender(element, ttyDef, options)\n }\n return reactRender(element, termOrDef, options)\n}\n"],"mappings":";;;;;;;;;;;;;;;AAGA,MAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDvB,SAAgB,OACd,SACA,WACA,SACgC;AAGhC,KAAI,CAAC,aAAa,QAAQ,OAAO,SAAS,QAAQ,QAAQ,MAKxD,QAAOA,SAAY,SAJK;EACtB,OAAO,QAAQ;EACf,QAAQ,QAAQ;EACjB,EACmC,QAAQ;AAE9C,QAAOA,SAAY,SAAS,WAAW,QAAQ"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { n as __esmMin } from "./chunk-BSw8zbkd.mjs";
|
|
2
|
+
//#region ../termless/src/terminal/key-mapping.ts
|
|
3
|
+
function normalizeModifier(mod) {
|
|
4
|
+
return MODIFIER_ALIASES[mod.toLowerCase()] ?? mod.toLowerCase();
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Parse a key string like "Ctrl+a", "ArrowUp", "Shift+Tab" into a KeyDescriptor.
|
|
8
|
+
*
|
|
9
|
+
* Supports modifier prefixes: Ctrl, Control, Alt, Shift, Meta, Cmd, Option, Super.
|
|
10
|
+
* Modifiers are case-insensitive and separated by "+".
|
|
11
|
+
*/
|
|
12
|
+
function parseKey(key) {
|
|
13
|
+
const parts = key.split("+");
|
|
14
|
+
const result = { key: parts.pop() };
|
|
15
|
+
for (const part of parts) switch (normalizeModifier(part)) {
|
|
16
|
+
case "ctrl":
|
|
17
|
+
result.ctrl = true;
|
|
18
|
+
break;
|
|
19
|
+
case "shift":
|
|
20
|
+
result.shift = true;
|
|
21
|
+
break;
|
|
22
|
+
case "alt":
|
|
23
|
+
result.alt = true;
|
|
24
|
+
break;
|
|
25
|
+
case "super":
|
|
26
|
+
result.super = true;
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Convert a key descriptor or key string to its ANSI escape sequence.
|
|
33
|
+
*
|
|
34
|
+
* Handles:
|
|
35
|
+
* - Single characters: returned as-is
|
|
36
|
+
* - Named keys (ArrowUp, Enter, Tab, etc.): mapped to standard ANSI sequences
|
|
37
|
+
* - Function keys (F1-F12): mapped to VT220/xterm sequences
|
|
38
|
+
* - Ctrl+letter: ASCII control codes 1-26
|
|
39
|
+
* - Ctrl+Enter: newline (\n)
|
|
40
|
+
* - Alt+key: ESC prefix + key
|
|
41
|
+
*/
|
|
42
|
+
function keyToAnsi(key) {
|
|
43
|
+
const desc = typeof key === "string" ? parseKey(key) : key;
|
|
44
|
+
const { key: mainKey, ctrl, alt, shift } = desc;
|
|
45
|
+
const hasSuperOrMeta = desc.super;
|
|
46
|
+
if (ctrl && mainKey.length === 1) {
|
|
47
|
+
const code = mainKey.toLowerCase().charCodeAt(0) - 96;
|
|
48
|
+
if (code >= 1 && code <= 26) return String.fromCharCode(code);
|
|
49
|
+
}
|
|
50
|
+
if (ctrl && mainKey === "Enter") return "\n";
|
|
51
|
+
if ((alt || hasSuperOrMeta) && mainKey.length === 1) return `\x1b${mainKey}`;
|
|
52
|
+
const fkey = FKEY_MAP[mainKey];
|
|
53
|
+
if (fkey !== void 0) {
|
|
54
|
+
if (ctrl || alt || shift || hasSuperOrMeta) {
|
|
55
|
+
const mod = 1 + (shift ? 1 : 0) + (alt ? 2 : 0) + (ctrl ? 4 : 0) + (hasSuperOrMeta ? 8 : 0);
|
|
56
|
+
const fkeyNum = parseInt(mainKey.slice(1));
|
|
57
|
+
if (fkeyNum <= 4) return `\x1b[${fkeyNum + 10};${mod}~`;
|
|
58
|
+
const match = fkey.match(/\x1b\[(\d+)~/);
|
|
59
|
+
if (match) return `\x1b[${match[1]};${mod}~`;
|
|
60
|
+
}
|
|
61
|
+
return fkey;
|
|
62
|
+
}
|
|
63
|
+
const mapped = KEY_MAP[mainKey];
|
|
64
|
+
if (mapped !== void 0) {
|
|
65
|
+
if (mapped === null) return "";
|
|
66
|
+
if ((ctrl || alt || shift || hasSuperOrMeta) && mapped.startsWith("\x1B[")) {
|
|
67
|
+
const mod = 1 + (shift ? 1 : 0) + (alt ? 2 : 0) + (ctrl ? 4 : 0) + (hasSuperOrMeta ? 8 : 0);
|
|
68
|
+
const letterMatch = mapped.match(/\x1b\[([A-H])$/);
|
|
69
|
+
if (letterMatch) return `\x1b[1;${mod}${letterMatch[1]}`;
|
|
70
|
+
const tildeMatch = mapped.match(/\x1b\[(\d+)~$/);
|
|
71
|
+
if (tildeMatch) return `\x1b[${tildeMatch[1]};${mod}~`;
|
|
72
|
+
}
|
|
73
|
+
if (shift && mainKey === "Tab") return "\x1B[Z";
|
|
74
|
+
return mapped;
|
|
75
|
+
}
|
|
76
|
+
if (mainKey.length === 1) {
|
|
77
|
+
if (shift && mainKey.match(/[a-z]/)) return mainKey.toUpperCase();
|
|
78
|
+
return mainKey;
|
|
79
|
+
}
|
|
80
|
+
return mainKey;
|
|
81
|
+
}
|
|
82
|
+
var KEY_MAP, FKEY_MAP, MODIFIER_ALIASES;
|
|
83
|
+
var init_key_mapping = __esmMin((() => {
|
|
84
|
+
KEY_MAP = {
|
|
85
|
+
ArrowUp: "\x1B[A",
|
|
86
|
+
ArrowDown: "\x1B[B",
|
|
87
|
+
ArrowLeft: "\x1B[D",
|
|
88
|
+
ArrowRight: "\x1B[C",
|
|
89
|
+
Home: "\x1B[H",
|
|
90
|
+
End: "\x1B[F",
|
|
91
|
+
PageUp: "\x1B[5~",
|
|
92
|
+
PageDown: "\x1B[6~",
|
|
93
|
+
Enter: "\r",
|
|
94
|
+
Tab: " ",
|
|
95
|
+
Backspace: "",
|
|
96
|
+
Delete: "\x1B[3~",
|
|
97
|
+
Escape: "\x1B",
|
|
98
|
+
Space: " ",
|
|
99
|
+
Control: null,
|
|
100
|
+
Shift: null,
|
|
101
|
+
Alt: null,
|
|
102
|
+
Meta: null
|
|
103
|
+
};
|
|
104
|
+
FKEY_MAP = {
|
|
105
|
+
F1: "\x1BOP",
|
|
106
|
+
F2: "\x1BOQ",
|
|
107
|
+
F3: "\x1BOR",
|
|
108
|
+
F4: "\x1BOS",
|
|
109
|
+
F5: "\x1B[15~",
|
|
110
|
+
F6: "\x1B[17~",
|
|
111
|
+
F7: "\x1B[18~",
|
|
112
|
+
F8: "\x1B[19~",
|
|
113
|
+
F9: "\x1B[20~",
|
|
114
|
+
F10: "\x1B[21~",
|
|
115
|
+
F11: "\x1B[23~",
|
|
116
|
+
F12: "\x1B[24~"
|
|
117
|
+
};
|
|
118
|
+
MODIFIER_ALIASES = {
|
|
119
|
+
ctrl: "ctrl",
|
|
120
|
+
control: "ctrl",
|
|
121
|
+
shift: "shift",
|
|
122
|
+
alt: "alt",
|
|
123
|
+
meta: "super",
|
|
124
|
+
cmd: "super",
|
|
125
|
+
option: "alt",
|
|
126
|
+
super: "super"
|
|
127
|
+
};
|
|
128
|
+
}));
|
|
129
|
+
//#endregion
|
|
130
|
+
export { keyToAnsi as n, parseKey as r, init_key_mapping as t };
|
|
131
|
+
|
|
132
|
+
//# sourceMappingURL=key-mapping-CS-YD_cD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-mapping-CS-YD_cD.mjs","names":[],"sources":["../../termless/src/terminal/key-mapping.ts"],"sourcesContent":["/**\n * Key parsing and ANSI encoding for termless.\n *\n * Converts human-readable key descriptions (e.g., \"Ctrl+a\", \"ArrowUp\", \"F5\")\n * into KeyDescriptor objects and ANSI escape sequences suitable for PTY input.\n */\n\nimport type { KeyDescriptor } from \"./types.ts\"\n\n// ── Named key → ANSI sequence map ──\n\nconst KEY_MAP: Record<string, string | null> = {\n ArrowUp: \"\\x1b[A\",\n ArrowDown: \"\\x1b[B\",\n ArrowLeft: \"\\x1b[D\",\n ArrowRight: \"\\x1b[C\",\n Home: \"\\x1b[H\",\n End: \"\\x1b[F\",\n PageUp: \"\\x1b[5~\",\n PageDown: \"\\x1b[6~\",\n Enter: \"\\r\",\n Tab: \"\\t\",\n Backspace: \"\\x7f\",\n Delete: \"\\x1b[3~\",\n Escape: \"\\x1b\",\n Space: \" \",\n // Pure modifier keys produce no output on their own\n Control: null,\n Shift: null,\n Alt: null,\n Meta: null,\n}\n\n// ── Function keys F1-F12 ──\n\nconst FKEY_MAP: Record<string, string> = {\n F1: \"\\x1bOP\",\n F2: \"\\x1bOQ\",\n F3: \"\\x1bOR\",\n F4: \"\\x1bOS\",\n F5: \"\\x1b[15~\",\n F6: \"\\x1b[17~\",\n F7: \"\\x1b[18~\",\n F8: \"\\x1b[19~\",\n F9: \"\\x1b[20~\",\n F10: \"\\x1b[21~\",\n F11: \"\\x1b[23~\",\n F12: \"\\x1b[24~\",\n}\n\n// ── Modifier aliases ──\n\nconst MODIFIER_ALIASES: Record<string, string> = {\n ctrl: \"ctrl\",\n control: \"ctrl\",\n shift: \"shift\",\n alt: \"alt\",\n meta: \"super\",\n cmd: \"super\",\n option: \"alt\",\n super: \"super\",\n}\n\nfunction normalizeModifier(mod: string): string {\n return MODIFIER_ALIASES[mod.toLowerCase()] ?? mod.toLowerCase()\n}\n\n/**\n * Parse a key string like \"Ctrl+a\", \"ArrowUp\", \"Shift+Tab\" into a KeyDescriptor.\n *\n * Supports modifier prefixes: Ctrl, Control, Alt, Shift, Meta, Cmd, Option, Super.\n * Modifiers are case-insensitive and separated by \"+\".\n */\nexport function parseKey(key: string): KeyDescriptor {\n const parts = key.split(\"+\")\n const mainKey = parts.pop()!\n const result: KeyDescriptor = { key: mainKey }\n\n for (const part of parts) {\n const normalized = normalizeModifier(part)\n switch (normalized) {\n case \"ctrl\":\n result.ctrl = true\n break\n case \"shift\":\n result.shift = true\n break\n case \"alt\":\n result.alt = true\n break\n case \"super\":\n result.super = true\n break\n }\n }\n\n return result\n}\n\n/**\n * Convert a key descriptor or key string to its ANSI escape sequence.\n *\n * Handles:\n * - Single characters: returned as-is\n * - Named keys (ArrowUp, Enter, Tab, etc.): mapped to standard ANSI sequences\n * - Function keys (F1-F12): mapped to VT220/xterm sequences\n * - Ctrl+letter: ASCII control codes 1-26\n * - Ctrl+Enter: newline (\\n)\n * - Alt+key: ESC prefix + key\n */\nexport function keyToAnsi(key: KeyDescriptor | string): string {\n const desc = typeof key === \"string\" ? parseKey(key) : key\n const { key: mainKey, ctrl, alt, shift } = desc\n const hasSuperOrMeta = desc.super\n\n // Ctrl+letter -> control code (ASCII 1-26)\n if (ctrl && mainKey.length === 1) {\n const code = mainKey.toLowerCase().charCodeAt(0) - 96\n if (code >= 1 && code <= 26) return String.fromCharCode(code)\n }\n\n // Ctrl+Enter -> \\n (legacy terminal convention: \\r = Enter, \\n = Ctrl+Enter/Ctrl+J)\n if (ctrl && mainKey === \"Enter\") {\n return \"\\n\"\n }\n\n // Alt (or Super/Meta) + single character -> ESC prefix\n if ((alt || hasSuperOrMeta) && mainKey.length === 1) {\n return `\\x1b${mainKey}`\n }\n\n // Function keys\n const fkey = FKEY_MAP[mainKey]\n if (fkey !== undefined) {\n // With modifiers, use CSI sequences with modifier parameter\n if (ctrl || alt || shift || hasSuperOrMeta) {\n const mod = 1 + (shift ? 1 : 0) + (alt ? 2 : 0) + (ctrl ? 4 : 0) + (hasSuperOrMeta ? 8 : 0)\n // F1-F4 use SS3 format, convert to CSI for modified keys\n const fkeyNum = parseInt(mainKey.slice(1))\n if (fkeyNum <= 4) {\n // F1=11, F2=12, F3=13, F4=14 in CSI ~ format\n const csiNum = fkeyNum + 10\n return `\\x1b[${csiNum};${mod}~`\n }\n // F5-F12 already use CSI ~ format: extract the number\n const match = fkey.match(/\\x1b\\[(\\d+)~/)\n if (match) {\n return `\\x1b[${match[1]};${mod}~`\n }\n }\n return fkey\n }\n\n // Named keys from KEY_MAP\n const mapped = KEY_MAP[mainKey]\n if (mapped !== undefined) {\n if (mapped === null) return \"\" // Pure modifier keys produce nothing\n\n // Arrow/navigation keys with modifiers use CSI 1;mod format\n if ((ctrl || alt || shift || hasSuperOrMeta) && mapped.startsWith(\"\\x1b[\")) {\n const mod = 1 + (shift ? 1 : 0) + (alt ? 2 : 0) + (ctrl ? 4 : 0) + (hasSuperOrMeta ? 8 : 0)\n // CSI letter format (e.g., \\x1b[A) -> CSI 1;mod letter\n const letterMatch = mapped.match(/\\x1b\\[([A-H])$/)\n if (letterMatch) {\n return `\\x1b[1;${mod}${letterMatch[1]}`\n }\n // CSI num ~ format (e.g., \\x1b[5~) -> CSI num;mod ~\n const tildeMatch = mapped.match(/\\x1b\\[(\\d+)~$/)\n if (tildeMatch) {\n return `\\x1b[${tildeMatch[1]};${mod}~`\n }\n }\n\n // Shift+Tab -> reverse tab (CSI Z)\n if (shift && mainKey === \"Tab\") {\n return \"\\x1b[Z\"\n }\n\n return mapped\n }\n\n // Single character without modifiers\n if (mainKey.length === 1) {\n // Shift+letter -> uppercase (passthrough for terminals)\n if (shift && mainKey.match(/[a-z]/)) {\n return mainKey.toUpperCase()\n }\n return mainKey\n }\n\n // Unknown key: return as-is\n return mainKey\n}\n"],"mappings":";;AA+DA,SAAS,kBAAkB,KAAqB;AAC9C,QAAO,iBAAiB,IAAI,aAAa,KAAK,IAAI,aAAa;;;;;;;;AASjE,SAAgB,SAAS,KAA4B;CACnD,MAAM,QAAQ,IAAI,MAAM,IAAI;CAE5B,MAAM,SAAwB,EAAE,KADhB,MAAM,KAAK,EACmB;AAE9C,MAAK,MAAM,QAAQ,MAEjB,SADmB,kBAAkB,KAAK,EAC1C;EACE,KAAK;AACH,UAAO,OAAO;AACd;EACF,KAAK;AACH,UAAO,QAAQ;AACf;EACF,KAAK;AACH,UAAO,MAAM;AACb;EACF,KAAK;AACH,UAAO,QAAQ;AACf;;AAIN,QAAO;;;;;;;;;;;;;AAcT,SAAgB,UAAU,KAAqC;CAC7D,MAAM,OAAO,OAAO,QAAQ,WAAW,SAAS,IAAI,GAAG;CACvD,MAAM,EAAE,KAAK,SAAS,MAAM,KAAK,UAAU;CAC3C,MAAM,iBAAiB,KAAK;AAG5B,KAAI,QAAQ,QAAQ,WAAW,GAAG;EAChC,MAAM,OAAO,QAAQ,aAAa,CAAC,WAAW,EAAE,GAAG;AACnD,MAAI,QAAQ,KAAK,QAAQ,GAAI,QAAO,OAAO,aAAa,KAAK;;AAI/D,KAAI,QAAQ,YAAY,QACtB,QAAO;AAIT,MAAK,OAAO,mBAAmB,QAAQ,WAAW,EAChD,QAAO,OAAO;CAIhB,MAAM,OAAO,SAAS;AACtB,KAAI,SAAS,KAAA,GAAW;AAEtB,MAAI,QAAQ,OAAO,SAAS,gBAAgB;GAC1C,MAAM,MAAM,KAAK,QAAQ,IAAI,MAAM,MAAM,IAAI,MAAM,OAAO,IAAI,MAAM,iBAAiB,IAAI;GAEzF,MAAM,UAAU,SAAS,QAAQ,MAAM,EAAE,CAAC;AAC1C,OAAI,WAAW,EAGb,QAAO,QADQ,UAAU,GACH,GAAG,IAAI;GAG/B,MAAM,QAAQ,KAAK,MAAM,eAAe;AACxC,OAAI,MACF,QAAO,QAAQ,MAAM,GAAG,GAAG,IAAI;;AAGnC,SAAO;;CAIT,MAAM,SAAS,QAAQ;AACvB,KAAI,WAAW,KAAA,GAAW;AACxB,MAAI,WAAW,KAAM,QAAO;AAG5B,OAAK,QAAQ,OAAO,SAAS,mBAAmB,OAAO,WAAW,QAAQ,EAAE;GAC1E,MAAM,MAAM,KAAK,QAAQ,IAAI,MAAM,MAAM,IAAI,MAAM,OAAO,IAAI,MAAM,iBAAiB,IAAI;GAEzF,MAAM,cAAc,OAAO,MAAM,iBAAiB;AAClD,OAAI,YACF,QAAO,UAAU,MAAM,YAAY;GAGrC,MAAM,aAAa,OAAO,MAAM,gBAAgB;AAChD,OAAI,WACF,QAAO,QAAQ,WAAW,GAAG,GAAG,IAAI;;AAKxC,MAAI,SAAS,YAAY,MACvB,QAAO;AAGT,SAAO;;AAIT,KAAI,QAAQ,WAAW,GAAG;AAExB,MAAI,SAAS,QAAQ,MAAM,QAAQ,CACjC,QAAO,QAAQ,aAAa;AAE9B,SAAO;;AAIT,QAAO;;;;AApLH,WAAyC;EAC7C,SAAS;EACT,WAAW;EACX,WAAW;EACX,YAAY;EACZ,MAAM;EACN,KAAK;EACL,QAAQ;EACR,UAAU;EACV,OAAO;EACP,KAAK;EACL,WAAW;EACX,QAAQ;EACR,QAAQ;EACR,OAAO;EAEP,SAAS;EACT,OAAO;EACP,KAAK;EACL,MAAM;EACP;AAIK,YAAmC;EACvC,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,IAAI;EACJ,KAAK;EACL,KAAK;EACL,KAAK;EACN;AAIK,oBAA2C;EAC/C,MAAM;EACN,SAAS;EACT,OAAO;EACP,KAAK;EACL,MAAM;EACN,KAAK;EACL,QAAQ;EACR,OAAO;EACR"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ensureDefaultLayoutEngine } from "./layout-engine-
|
|
1
|
+
import { t as ensureDefaultLayoutEngine } from "./layout-engine-C2px0RJE.mjs";
|
|
2
2
|
export { ensureDefaultLayoutEngine };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region packages/ag-term/src/layout-engine.ts
|
|
2
|
+
let layoutEngine = null;
|
|
3
|
+
/**
|
|
4
|
+
* Set the global layout engine instance.
|
|
5
|
+
* Must be called before rendering.
|
|
6
|
+
*/
|
|
7
|
+
function setLayoutEngine(engine) {
|
|
8
|
+
layoutEngine = engine;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Get the global layout engine instance.
|
|
12
|
+
* Throws if not initialized.
|
|
13
|
+
*/
|
|
14
|
+
function getLayoutEngine() {
|
|
15
|
+
if (!layoutEngine) throw new Error("Layout engine not initialized. Call setLayoutEngine() or initYoga()/initFlexily() first.");
|
|
16
|
+
return layoutEngine;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Check if a layout engine is initialized.
|
|
20
|
+
*/
|
|
21
|
+
function isLayoutEngineInitialized() {
|
|
22
|
+
return layoutEngine !== null;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get the layout constants from the current engine.
|
|
26
|
+
* Convenience function for accessing constants.
|
|
27
|
+
*/
|
|
28
|
+
function getConstants() {
|
|
29
|
+
return getLayoutEngine().constants;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Runtime guard: throws if the active layout engine doesn't advertise the named capability.
|
|
33
|
+
*
|
|
34
|
+
* Used by Phase A0.1+ primitives (`<Box fitWidth>`, `<Box containerQueries>`, cq* units,
|
|
35
|
+
* style math functions) at their first-paint resolution path. Under `yoga` (or pre-A0.1
|
|
36
|
+
* flexily), the throw happens at first paint with a one-line fix instruction in the error
|
|
37
|
+
* message. No silent fallback — silent fallback under yoga would look like a fresh render
|
|
38
|
+
* bug and cost hours of debugging.
|
|
39
|
+
*
|
|
40
|
+
* @param name The capability key being checked (e.g. `"fitWidth"`, `"containerQueries"`).
|
|
41
|
+
* @param consumer A human-readable label for the call site, e.g. `"<Box fitWidth>"` or
|
|
42
|
+
* `"cqi unit in 'padding'"`. Surfaces in the error message.
|
|
43
|
+
*/
|
|
44
|
+
function requireCapability(name, consumer) {
|
|
45
|
+
const engine = getLayoutEngine();
|
|
46
|
+
if (!engine.capabilities[name]) throw new Error(`${consumer} requires layout engine capability "${name}" — current engine "${engine.name}" doesn't support it. Switch to flexily: set SILVERY_ENGINE=flexily, OR call ensureDefaultLayoutEngine("flexily") before render.`);
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Initialize the layout engine if not already set.
|
|
50
|
+
*
|
|
51
|
+
* @param engineType - 'flexily', 'flexily-classic', or 'yoga'. If not provided, checks
|
|
52
|
+
* SILVERY_ENGINE env var, then defaults to 'flexily'.
|
|
53
|
+
*/
|
|
54
|
+
async function ensureDefaultLayoutEngine(engineType) {
|
|
55
|
+
if (isLayoutEngineInitialized()) return;
|
|
56
|
+
if ((engineType ?? process.env.SILVERY_ENGINE?.toLowerCase() ?? "flexily") === "yoga") {
|
|
57
|
+
const { initYogaEngine } = await import("./yoga-adapter-DxgsQ_gg.mjs");
|
|
58
|
+
setLayoutEngine(await initYogaEngine());
|
|
59
|
+
} else {
|
|
60
|
+
const { createFlexilyZeroEngine } = await import("./flexily-zero-adapter-C4lW_Ov5.mjs");
|
|
61
|
+
setLayoutEngine(createFlexilyZeroEngine());
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//#endregion
|
|
65
|
+
export { requireCapability as a, isLayoutEngineInitialized as i, getConstants as n, setLayoutEngine as o, getLayoutEngine as r, ensureDefaultLayoutEngine as t };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=layout-engine-C2px0RJE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-engine-C2px0RJE.mjs","names":[],"sources":["../packages/ag-term/src/layout-engine.ts"],"sourcesContent":["/**\n * Layout Engine Abstraction\n *\n * Provides a pluggable interface for layout engines (Yoga, Flexily, etc.)\n * This allows silvery to use different layout backends without code changes.\n *\n * Core type interfaces (LayoutNode, MeasureFunc, MeasureMode) live in\n * @silvery/ag/layout-types. This file contains the runtime engine management.\n */\n\nimport type { LayoutNode } from \"@silvery/ag/layout-types\"\n\n// ============================================================================\n// Branded Types for Type Safety\n// ============================================================================\n\n/**\n * Branded types prevent accidentally mixing up layout constant categories.\n * E.g., you can't pass an AlignValue where a FlexDirectionValue is expected.\n */\nexport type FlexDirectionValue = number & { readonly __brand: \"FlexDirection\" }\nexport type WrapValue = number & { readonly __brand: \"Wrap\" }\nexport type AlignValue = number & { readonly __brand: \"Align\" }\nexport type JustifyValue = number & { readonly __brand: \"Justify\" }\nexport type EdgeValue = number & { readonly __brand: \"Edge\" }\nexport type GutterValue = number & { readonly __brand: \"Gutter\" }\nexport type DisplayValue = number & { readonly __brand: \"Display\" }\nexport type PositionTypeValue = number & { readonly __brand: \"PositionType\" }\nexport type OverflowValue = number & { readonly __brand: \"Overflow\" }\nexport type DirectionValue = number & { readonly __brand: \"Direction\" }\nexport type MeasureModeValue = number & { readonly __brand: \"MeasureMode\" }\n\n// ============================================================================\n// Layout Constants Interface\n// ============================================================================\n\n/**\n * Constants for layout configuration.\n * These are the same across Yoga and Flexily.\n * Uses branded types for compile-time safety.\n */\nexport interface LayoutConstants {\n // Flex Direction\n FLEX_DIRECTION_COLUMN: FlexDirectionValue\n FLEX_DIRECTION_COLUMN_REVERSE: FlexDirectionValue\n FLEX_DIRECTION_ROW: FlexDirectionValue\n FLEX_DIRECTION_ROW_REVERSE: FlexDirectionValue\n\n // Wrap\n WRAP_NO_WRAP: WrapValue\n WRAP_WRAP: WrapValue\n WRAP_WRAP_REVERSE: WrapValue\n\n // Align\n ALIGN_AUTO: AlignValue\n ALIGN_FLEX_START: AlignValue\n ALIGN_CENTER: AlignValue\n ALIGN_FLEX_END: AlignValue\n ALIGN_STRETCH: AlignValue\n ALIGN_BASELINE: AlignValue\n ALIGN_SPACE_BETWEEN: AlignValue\n ALIGN_SPACE_AROUND: AlignValue\n ALIGN_SPACE_EVENLY: AlignValue\n\n // Justify\n JUSTIFY_FLEX_START: JustifyValue\n JUSTIFY_CENTER: JustifyValue\n JUSTIFY_FLEX_END: JustifyValue\n JUSTIFY_SPACE_BETWEEN: JustifyValue\n JUSTIFY_SPACE_AROUND: JustifyValue\n JUSTIFY_SPACE_EVENLY: JustifyValue\n\n // Edge\n EDGE_LEFT: EdgeValue\n EDGE_TOP: EdgeValue\n EDGE_RIGHT: EdgeValue\n EDGE_BOTTOM: EdgeValue\n EDGE_HORIZONTAL: EdgeValue\n EDGE_VERTICAL: EdgeValue\n EDGE_ALL: EdgeValue\n\n // Gutter\n GUTTER_COLUMN: GutterValue\n GUTTER_ROW: GutterValue\n GUTTER_ALL: GutterValue\n\n // Display\n DISPLAY_FLEX: DisplayValue\n DISPLAY_NONE: DisplayValue\n\n // Position Type\n POSITION_TYPE_STATIC: PositionTypeValue\n POSITION_TYPE_RELATIVE: PositionTypeValue\n POSITION_TYPE_ABSOLUTE: PositionTypeValue\n\n // Overflow\n OVERFLOW_VISIBLE: OverflowValue\n OVERFLOW_HIDDEN: OverflowValue\n OVERFLOW_SCROLL: OverflowValue\n\n // Direction\n DIRECTION_LTR: DirectionValue\n\n // Measure Mode\n MEASURE_MODE_UNDEFINED: MeasureModeValue\n MEASURE_MODE_EXACTLY: MeasureModeValue\n MEASURE_MODE_AT_MOST: MeasureModeValue\n}\n\n// ============================================================================\n// Engine Capabilities (Phase A0.0.5 of @km/silvery/responsive-layout-architecture-reframe)\n// ============================================================================\n\n/**\n * Declares which engine-native primitives a `LayoutEngine` supports.\n *\n * silvery is engine-pluggable — `flexily` (pure JS) and `yoga` (WASM) ship as peer\n * adapters. The responsive-layout reframe (Phase A0.1+) adds engine-native container\n * queries, fitWidth, size containment, cq* units, and CSS math functions. These\n * primitives can only be implemented in `flexily` (yoga's WASM boundary doesn't expose\n * inter-pass child-style mutation).\n *\n * Each adapter declares which capabilities it supports. Consumers (`<Box fitWidth>`,\n * `<Box containerQueries>`, etc.) gate on capability presence via `requireCapability()`\n * — under yoga, those primitives THROW at first paint with a one-line fix instruction\n * (switch via `SILVERY_ENGINE=flexily`).\n */\nexport interface EngineCapabilities {\n /** Container queries: `<Box containerQueries={...}>` + `containerType` / `containerName` */\n readonly containerQueries: boolean\n /** Size containment: `<Box containSize>` */\n readonly containSize: boolean\n /** Container-query units in style values: `cqi`, `cqmin`, `cqb`, `cqmax` */\n readonly containerQueryUnits: boolean\n /** fitWidth Box prop: `<Box fitWidth={[80, 120, \"100cqi\"]}>` */\n readonly fitWidth: boolean\n /** CSS math functions in style values: `min()`, `max()`, `clamp()` */\n readonly styleMathFunctions: boolean\n /** Inter-pass child-style mutation hook (underlying mechanism for CQ + fitWidth) */\n readonly childStyleMutation: boolean\n}\n\n// ============================================================================\n// Layout Engine Interface\n// ============================================================================\n\n/**\n * Abstract layout engine interface.\n * Implementations can wrap Yoga, Flexily, or other layout engines.\n */\nexport interface LayoutEngine {\n /** Create a new layout node */\n createNode(): LayoutNode\n\n /** Layout constants for this engine */\n readonly constants: LayoutConstants\n\n /** Engine name for debugging */\n readonly name: string\n\n /** Which engine-native primitives this adapter supports (Phase A0.0.5+). */\n readonly capabilities: EngineCapabilities\n}\n\n// ============================================================================\n// Global Layout Engine Management\n// ============================================================================\n\nlet layoutEngine: LayoutEngine | null = null\n\n/**\n * Set the global layout engine instance.\n * Must be called before rendering.\n */\nexport function setLayoutEngine(engine: LayoutEngine): void {\n layoutEngine = engine\n}\n\n/**\n * Get the global layout engine instance.\n * Throws if not initialized.\n */\nexport function getLayoutEngine(): LayoutEngine {\n if (!layoutEngine) {\n throw new Error(\n \"Layout engine not initialized. Call setLayoutEngine() or initYoga()/initFlexily() first.\",\n )\n }\n return layoutEngine\n}\n\n/**\n * Check if a layout engine is initialized.\n */\nexport function isLayoutEngineInitialized(): boolean {\n return layoutEngine !== null\n}\n\n/**\n * Get the layout constants from the current engine.\n * Convenience function for accessing constants.\n */\nexport function getConstants(): LayoutConstants {\n return getLayoutEngine().constants\n}\n\n/**\n * Runtime guard: throws if the active layout engine doesn't advertise the named capability.\n *\n * Used by Phase A0.1+ primitives (`<Box fitWidth>`, `<Box containerQueries>`, cq* units,\n * style math functions) at their first-paint resolution path. Under `yoga` (or pre-A0.1\n * flexily), the throw happens at first paint with a one-line fix instruction in the error\n * message. No silent fallback — silent fallback under yoga would look like a fresh render\n * bug and cost hours of debugging.\n *\n * @param name The capability key being checked (e.g. `\"fitWidth\"`, `\"containerQueries\"`).\n * @param consumer A human-readable label for the call site, e.g. `\"<Box fitWidth>\"` or\n * `\"cqi unit in 'padding'\"`. Surfaces in the error message.\n */\nexport function requireCapability(name: keyof EngineCapabilities, consumer: string): void {\n const engine = getLayoutEngine()\n if (!engine.capabilities[name]) {\n throw new Error(\n `${consumer} requires layout engine capability \"${name}\" — current engine \"${engine.name}\" doesn't support it. ` +\n `Switch to flexily: set SILVERY_ENGINE=flexily, OR call ensureDefaultLayoutEngine(\"flexily\") before render.`,\n )\n }\n}\n\n// ============================================================================\n// Default Engine Initialization\n// ============================================================================\n\n/**\n * Layout engine type for configuration.\n *\n * - 'flexily': Zero-allocation Flexily (default, optimized for high-frequency layout)\n * - 'flexily-classic': Classic Flexily algorithm (for debugging/compatibility)\n * - 'yoga': Facebook's WASM-based flexbox (most mature)\n */\nexport type LayoutEngineType = \"flexily\" | \"yoga\"\n\n/**\n * Initialize the layout engine if not already set.\n *\n * @param engineType - 'flexily', 'flexily-classic', or 'yoga'. If not provided, checks\n * SILVERY_ENGINE env var, then defaults to 'flexily'.\n */\nexport async function ensureDefaultLayoutEngine(engineType?: LayoutEngineType): Promise<void> {\n if (isLayoutEngineInitialized()) {\n return\n }\n\n // Resolve engine type: option → env → 'flexily'\n const resolved =\n engineType ?? (process.env.SILVERY_ENGINE?.toLowerCase() as LayoutEngineType) ?? \"flexily\"\n\n if (resolved === \"yoga\") {\n const { initYogaEngine } = await import(\"./adapters/yoga-adapter.js\")\n setLayoutEngine(await initYogaEngine())\n } else {\n // 'flexily' (default) uses zero-allocation engine with CSS-correct defaults\n const { createFlexilyZeroEngine } = await import(\"./adapters/flexily-zero-adapter.js\")\n setLayoutEngine(createFlexilyZeroEngine())\n }\n}\n"],"mappings":";AAwKA,IAAI,eAAoC;;;;;AAMxC,SAAgB,gBAAgB,QAA4B;AAC1D,gBAAe;;;;;;AAOjB,SAAgB,kBAAgC;AAC9C,KAAI,CAAC,aACH,OAAM,IAAI,MACR,2FACD;AAEH,QAAO;;;;;AAMT,SAAgB,4BAAqC;AACnD,QAAO,iBAAiB;;;;;;AAO1B,SAAgB,eAAgC;AAC9C,QAAO,iBAAiB,CAAC;;;;;;;;;;;;;;;AAgB3B,SAAgB,kBAAkB,MAAgC,UAAwB;CACxF,MAAM,SAAS,iBAAiB;AAChC,KAAI,CAAC,OAAO,aAAa,MACvB,OAAM,IAAI,MACR,GAAG,SAAS,sCAAsC,KAAK,sBAAsB,OAAO,KAAK,kIAE1F;;;;;;;;AAuBL,eAAsB,0BAA0B,YAA8C;AAC5F,KAAI,2BAA2B,CAC7B;AAOF,MAFE,cAAe,QAAQ,IAAI,gBAAgB,aAAa,IAAyB,eAElE,QAAQ;EACvB,MAAM,EAAE,mBAAmB,MAAM,OAAO;AACxC,kBAAgB,MAAM,gBAAgB,CAAC;QAClC;EAEL,MAAM,EAAE,4BAA4B,MAAM,OAAO;AACjD,kBAAgB,yBAAyB,CAAC"}
|