@vizejs/fresco 0.716.0 → 0.718.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/dist/{accessibility-OEhyYUxd.d.mts → accessibility-DwzT925M.d.mts} +46 -5
- package/dist/accessibility-DwzT925M.d.mts.map +1 -0
- package/dist/{app-CIX6NAW-.mjs → app-C_wFlWSV.mjs} +443 -123
- package/dist/app-C_wFlWSV.mjs.map +1 -0
- package/dist/app-_QmZ-PoH.d.mts +270 -0
- package/dist/app-_QmZ-PoH.d.mts.map +1 -0
- package/dist/ascii-font/index.d.mts +60 -0
- package/dist/ascii-font/index.d.mts.map +1 -0
- package/dist/ascii-font/index.mjs +68 -0
- package/dist/ascii-font/index.mjs.map +1 -0
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/components-DzkL-yHj.mjs +6165 -0
- package/dist/components-DzkL-yHj.mjs.map +1 -0
- package/dist/composables/index.d.mts +3 -3
- package/dist/composables/index.mjs +4 -4
- package/dist/{composables-DbJGVNSG.mjs → composables-BJeirPSH.mjs} +116 -55
- package/dist/composables-BJeirPSH.mjs.map +1 -0
- package/dist/{index-CWRginDz.d.mts → index-B3zQ6E-5.d.mts} +1099 -337
- package/dist/index-B3zQ6E-5.d.mts.map +1 -0
- package/dist/{index-Dikou9bu.d.mts → index-Ddp2Txtm.d.mts} +52 -4
- package/dist/index-Ddp2Txtm.d.mts.map +1 -0
- package/dist/index.d.mts +98 -7
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +262 -5
- package/dist/index.mjs.map +1 -1
- package/dist/{protocol-D8xt3DG7.d.mts → protocol-DavoeNLn.d.mts} +14 -4
- package/dist/{protocol-D8xt3DG7.d.mts.map → protocol-DavoeNLn.d.mts.map} +1 -1
- package/dist/qr-code/index.d.mts +101 -0
- package/dist/qr-code/index.d.mts.map +1 -0
- package/dist/qr-code/index.mjs +88 -0
- package/dist/qr-code/index.mjs.map +1 -0
- package/dist/testing/index.d.mts +3 -3
- package/dist/testing/index.mjs +1 -1
- package/dist/{useApp-CVB2jNCO.d.mts → useApp-vIRJ5Th3.d.mts} +34 -8
- package/dist/useApp-vIRJ5Th3.d.mts.map +1 -0
- package/dist/{useVirtualViewport-pPZWmwUC.mjs → useBoxMetrics-lF5Myjc7.mjs} +66 -6
- package/dist/useBoxMetrics-lF5Myjc7.mjs.map +1 -0
- package/package.json +14 -6
- package/dist/accessibility-OEhyYUxd.d.mts.map +0 -1
- package/dist/app-CIX6NAW-.mjs.map +0 -1
- package/dist/app-CKsTWQuP.d.mts +0 -154
- package/dist/app-CKsTWQuP.d.mts.map +0 -1
- package/dist/components-D9SeB0Be.mjs +0 -3331
- package/dist/components-D9SeB0Be.mjs.map +0 -1
- package/dist/composables-DbJGVNSG.mjs.map +0 -1
- package/dist/index-CWRginDz.d.mts.map +0 -1
- package/dist/index-Dikou9bu.d.mts.map +0 -1
- package/dist/useApp-CVB2jNCO.d.mts.map +0 -1
- package/dist/useVirtualViewport-pPZWmwUC.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B3zQ6E-5.d.mts","names":[],"sources":["../src/components/Box.ts","../src/components/FrescoSpacer.vue","../src/components/layout-primitive-types.ts","../src/components/FrescoDivider.vue","../src/components/FrescoStack.vue","../src/components/FrescoHStack.vue","../src/components/FrescoVStack.vue","../src/components/Grid.ts","../src/components/presentational-primitive-types.ts","../src/components/FrescoCard.vue","../src/components/scroll-types.ts","../src/components/ScrollBox.vue","../src/components/ScrollBar.vue","../src/components/Text.ts","../src/components/text-utility-types.ts","../src/components/FrescoNewline.vue","../src/components/FrescoStatic.vue","../src/components/display-primitive-types.ts","../src/components/FrescoTransform.vue","../src/components/code-types.ts","../src/components/code-buffer.ts","../src/components/Code.ts","../src/components/markdown-types.ts","../src/components/FrescoMarkdown.vue","../src/components/markdown.ts","../src/components/frame-buffer-types.ts","../src/components/FrescoFrameBuffer.vue","../src/components/Diff.ts","../src/components/LineNumber.ts","../src/components/FrescoLink.vue","../src/components/TextInput.ts","../src/components/TextArea.ts","../src/components/Select.ts","../src/components/Checkbox.ts","../src/components/RadioGroup.ts","../src/components/Confirm.ts","../src/components/slider-types.ts","../src/components/FrescoSlider.vue","../src/components/Form.ts","../src/components/FrescoSpinner.vue","../src/components/ProgressBar.ts","../src/components/FrescoAlert.vue","../src/components/FrescoBadge.vue","../src/components/Timer.ts","../src/components/FrescoTooltip.vue","../src/components/List.ts","../src/components/table-types.ts","../src/components/Table.ts","../src/components/Tree.ts","../src/components/Menu.ts","../src/components/Tabs.ts","../src/components/FrescoBreadcrumb.vue","../src/components/Stepper.ts","../src/components/modal-types.ts","../src/components/FrescoModal.vue","../src/components/StatusBar.ts","../src/components/FrescoHeader.vue","../src/components/KeyHint.ts","../src/components/FrescoAvatar.vue"],"mappings":";;;;;;KAeY,eAAA,GAAkB,iBAAiB;AAAA,UAE9B,QAAA,SAAiB,oBAAA;EAFa;EAI7C,QAAA;EAFe;EAIf,QAAA;;EAEA,OAAA;EAMc;EAJd,OAAA;EAuCe;EArCf,MAAA,GAAS,eAAA;EAV2C;EAYpD,WAAA,GAAc,eAAA;EACd,SAAA;EACA,WAAA;EACA,YAAA;EACA,UAAA;EACA,WAAA;EACA,cAAA;EACA,gBAAA;EACA,iBAAA;EACA,eAAA;EACA,cAAA;EACA,iBAAA;EACA,mBAAA;EACA,oBAAA;EACA,kBAAA;EACA,qBAAA;EACA,wBAAA;EACA,0BAAA;EACA,2BAAA;EACA,yBAAA;EARA;EAUA,EAAA;EARA;EAUA,KAAA;EARA;EAUA,EAAA;EARA;EAUA,eAAA;EARA;EAUA,YAAA;EANA;EAQA,aAAA;EAJA;EAMA,WAAA,GAAc,QAAA;EAFd;EAIA,YAAA,GAAe,SAAA;AAAA;AAAA,cAWJ,GAAA,gBAAG,eAAA,eAAA,gBAAA;WAGO,QAAA,CAAS,QAAA;YACR,QAAA,CAAS,QAAA;;;;;iBAKJ,QAAA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;EAAA;AAAA;AAAA,KAOR,WAAA,GAAc,UAAU,QAAQ,cAAA;AAAA,cAE/B,UAAA,8BAAU,eAAA,CAAA,WAAA,8CAAA,qBAAA,8BAAA,qBAAA,0CAAA,WAAA,EAAA,QAAA,CAAA,WAAA,IAAA,QAAA,0DAAA,uBAAA;AAAA,cAGV,cAAA,EAAqB,eAAA,QAAuB,UAAA,EAAY,WAAA;AAAA,cAAW,UAAA,SAC7C,cAAY;AAAA,KACnC,eAAA,SAAwB,CAAA;EAAA;IAE3B,MAAA,EAAQ,CAAC;EAAA;AAAA;;;UC5JM,UAAA;EACf,IAAA;EACA,WAAW;AAAA;AAAA,UAGI,YAAA;EzDI8B;EyDF7C,QAAA,EAAU,UAAU;EzDIL;EyDFf,SAAA;;EAEA,KAAA;EzDYc;EyDVd,KAAA;EzD6Ce;EyD3Cf,MAAA;EzDJoD;EyDMpD,SAAA;AAAA;AAAA,cAGW,OAAA,gBAAO,eAAA,eAAA,gBAAA;;UAIC,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;;;;;UAJD,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cC6FhB,YAAA,8BAAY,eAAA,CAAA,WAAA,8CAAA,qBAAA,8BAAA,qBAAA,0CAAA,WAAA,EAAA,QAAA,CAAA,WAAA,IAAA,QAAA,0DAAA,uBAAA;AAAA,cAAA,QAAA,SAGU,YAAY"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Ref } from "vue";
|
|
1
|
+
import { N as MouseEvent } from "./protocol-DavoeNLn.mjs";
|
|
2
|
+
import { InjectionKey, MaybeRefOrGetter, Ref } from "vue";
|
|
3
|
+
import { LayoutResultNapi } from "@vizejs/fresco-native";
|
|
4
|
+
|
|
3
5
|
//#region src/composables/useInput.d.ts
|
|
4
6
|
interface Key {
|
|
5
7
|
upArrow: boolean;
|
|
@@ -55,6 +57,8 @@ interface UseInputOptions {
|
|
|
55
57
|
onCompositionUpdate?: (text: string, cursor: number) => void;
|
|
56
58
|
/** Called when IME commits text */
|
|
57
59
|
onCompositionEnd?: (text: string) => void;
|
|
60
|
+
/** Deliver Ctrl+C to this handler instead of reserving it for app exit. */
|
|
61
|
+
captureCtrlC?: boolean;
|
|
58
62
|
}
|
|
59
63
|
interface UseInputReturn {
|
|
60
64
|
isActive: Ref<boolean>;
|
|
@@ -238,6 +242,8 @@ interface BoxMetrics {
|
|
|
238
242
|
}
|
|
239
243
|
interface UseBoxMetricsResult extends BoxMetrics {
|
|
240
244
|
hasMeasured: boolean;
|
|
245
|
+
/** Refresh from the latest completed native layout snapshot. */
|
|
246
|
+
refresh(): void;
|
|
241
247
|
}
|
|
242
248
|
type MetricTarget = DOMElement;
|
|
243
249
|
declare function useBoxMetrics(ref: Ref<MetricTarget | null>): UseBoxMetricsResult;
|
|
@@ -248,5 +254,47 @@ declare function useBoxMetrics(ref: Ref<MetricTarget | null>): UseBoxMetricsResu
|
|
|
248
254
|
*/
|
|
249
255
|
declare function useIsScreenReaderEnabled(): boolean;
|
|
250
256
|
//#endregion
|
|
251
|
-
|
|
252
|
-
|
|
257
|
+
//#region src/composables/useKeymap.d.ts
|
|
258
|
+
interface KeymapStroke {
|
|
259
|
+
readonly key: string;
|
|
260
|
+
readonly ctrl?: boolean;
|
|
261
|
+
readonly alt?: boolean;
|
|
262
|
+
readonly shift?: boolean;
|
|
263
|
+
readonly meta?: boolean;
|
|
264
|
+
}
|
|
265
|
+
interface KeymapBinding<Command extends string = string> {
|
|
266
|
+
readonly command: Command;
|
|
267
|
+
readonly sequence: readonly [KeymapStroke, ...KeymapStroke[]];
|
|
268
|
+
}
|
|
269
|
+
type Keymap<Command extends string = string> = readonly KeymapBinding<Command>[];
|
|
270
|
+
interface KeymapMatch<Command extends string> {
|
|
271
|
+
readonly command?: Command;
|
|
272
|
+
readonly binding?: KeymapBinding<Command>;
|
|
273
|
+
readonly pending: boolean;
|
|
274
|
+
}
|
|
275
|
+
interface KeymapResolver<Command extends string> {
|
|
276
|
+
readonly pendingSequence: readonly KeymapStroke[];
|
|
277
|
+
feed(stroke: KeymapStroke): KeymapMatch<Command>;
|
|
278
|
+
reset(): void;
|
|
279
|
+
}
|
|
280
|
+
interface UseKeymapOptions<Command extends string> {
|
|
281
|
+
readonly keymap: MaybeRefOrGetter<Keymap<Command>>;
|
|
282
|
+
readonly active?: MaybeRefOrGetter<boolean>;
|
|
283
|
+
/** Idle time before an incomplete multi-stroke sequence is cleared. */
|
|
284
|
+
readonly sequenceTimeout?: number;
|
|
285
|
+
readonly onCommand: (command: Command, binding: KeymapBinding<Command>) => void;
|
|
286
|
+
}
|
|
287
|
+
interface UseKeymapReturn {
|
|
288
|
+
readonly isActive: Readonly<Ref<boolean>>;
|
|
289
|
+
readonly pendingSequence: Readonly<Ref<readonly KeymapStroke[]>>;
|
|
290
|
+
reset(): void;
|
|
291
|
+
}
|
|
292
|
+
/** Validate and freeze a typed command map. */
|
|
293
|
+
declare function defineKeymap<const Command extends string>(bindings: readonly KeymapBinding<Command>[]): Keymap<Command>;
|
|
294
|
+
/** Stateful matcher for single chords, Emacs multi-chords, and Vim-style sequences. */
|
|
295
|
+
declare function createKeymapResolver<Command extends string>(keymap: () => Keymap<Command>): KeymapResolver<Command>;
|
|
296
|
+
/** Subscribe a typed command keymap to Fresco's normalized input stream. */
|
|
297
|
+
declare function useKeymap<Command extends string>(options: UseKeymapOptions<Command>): UseKeymapReturn;
|
|
298
|
+
//#endregion
|
|
299
|
+
export { ImeManager as A, KeyHandler as B, useWindowSize as C, useStderr as D, UseStdoutReturn as E, useMouse as F, UseInputReturn as H, UsePasteOptions as I, usePaste as L, useIme as M, UseMouseOptions as N, useStdin as O, UseMouseReturn as P, InputHandler as R, WindowSize as S, UseStdinReturn as T, useInput as U, UseInputOptions as V, useKeyPress as W, AnimationResult as _, KeymapStroke as a, CursorPosition as b, createKeymapResolver as c, useIsScreenReaderEnabled as d, BoxMetrics as f, measureElement as g, DOMElement as h, KeymapResolver as i, UseImeOptions as j, useStdout as k, defineKeymap as l, useBoxMetrics as m, KeymapBinding as n, UseKeymapOptions as o, UseBoxMetricsResult as p, KeymapMatch as r, UseKeymapReturn as s, Keymap as t, useKeymap as u, UseAnimationOptions as v, UseStderrReturn as w, useCursor as x, useAnimation as y, Key as z };
|
|
300
|
+
//# sourceMappingURL=index-Ddp2Txtm.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-Ddp2Txtm.d.mts","names":[],"sources":["../src/composables/useInput.ts","../src/composables/usePaste.ts","../src/composables/useMouse.ts","../src/composables/useIme.ts","../src/composables/useStreams.ts","../src/composables/useWindowSize.ts","../src/composables/useCursor.ts","../src/composables/useAnimation.ts","../src/layoutMetrics.ts","../src/composables/useBoxMetrics.ts","../src/composables/useIsScreenReaderEnabled.ts","../src/composables/useKeymap.ts"],"mappings":";;;;;UASiB,GAAA;EACf,OAAA;EACA,SAAA;EACA,SAAA;EACA,UAAA;EACA,QAAA;EACA,MAAA;EACA,IAAA;EACA,GAAA;EACA,MAAA;EACA,MAAA;EACA,IAAA;EACA,KAAA;EACA,GAAA;EACA,SAAA;EACA,MAAA;EACA,IAAA;EACA,KAAA;EACA,KAAA;EACA,QAAA;EACA,OAAA;EACA,SAAA;AAAA;AAAA,UAGe,UAAA;EAAA,CACd,GAAA,UAAa,SAAA;IAAa,IAAA;IAAe,GAAA;IAAc,KAAA;IAAgB,IAAA;EAAA;AAAA;AAAA,UAGzD,eAAA;;EAEf,MAAA,aAAmB,GAAA;EALlB;EAOD,QAAA,aAAqB,GAAA;EAPqB;EAS1C,OAAA,IAAW,KAAA,UAAe,GAAA,EAAK,GAAA;EATyC;EAWxE,KAAA,GAAQ,UAAA;EAX+E;EAavF,MAAA,IAAU,IAAA;EAVK;EAYf,QAAA;;EAEA,QAAA;EAVqB;EAYrB,OAAA,IAAW,SAAA;EARH;EAUR,kBAAA;EAVkB;EAYl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+BACd,QAAA,WAAmB,aAAA,CAAc,OAAA,MAChC,MAAA,CAAO,OAAA;;iBAiBM,oBAAA,yBACd,MAAA,QAAc,MAAA,CAAO,OAAA,IACpB,cAAA,CAAe,OAAA;;iBAuCF,SAAA,yBACd,OAAA,EAAS,gBAAA,CAAiB,OAAA,IACzB,eAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,100 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as FrescoHostNode, c as FrescoNodeUpdateKind,
|
|
3
|
-
import { $ as
|
|
1
|
+
import { A as InputEvent, C as FrescoRenderNodeKind, D as FrescoStyle, E as FrescoSnakeStyleAliases, F as ResizeEvent, M as KeyEventType, N as MouseEvent, O as FrescoTextRenderNode, P as PasteEvent, S as FrescoRenderNode, T as FrescoRootRenderNode, _ as FrescoModifiers, a as FrescoAlignSelf, b as FrescoPosition, c as FrescoBoxRenderNode, d as FrescoDisplay, f as FrescoFlexDirection, g as FrescoJustifyContent, h as FrescoInputRenderNode, i as FrescoAlignItems, j as KeyEvent, k as FrescoTextWrapMode, l as FrescoCanonicalStyle, m as FrescoInputEvent, n as FocusEvent, o as FrescoAppearance, p as FrescoFlexWrap, r as FrescoAlignContent, s as FrescoBorderStyle, t as CompositionEvent, u as FrescoDimension, v as FrescoMouseEventKind, w as FrescoRenderStyle, x as FrescoRawRenderNode, y as FrescoOverflow } from "./protocol-DavoeNLn.mjs";
|
|
2
|
+
import { a as FrescoHostNode, c as FrescoInputEventPhase, d as FrescoNodeUpdateKind, f as FrescoRendererOptions, m as createRenderer, o as FrescoInputDispatchResult, p as FrescoRoutedInputEvent, r as FrescoDeclaredSize, s as FrescoInputEventHandler, u as FrescoNodeLifecycleHooks } from "./accessibility-DwzT925M.mjs";
|
|
3
|
+
import { $ as SliderProps, $t as BadgeProps, A as TableRow, An as _default$7, At as MarkdownHeadingBlock, B as _default$2, Bt as MarkdownThematicBreakBlock, C as TreeNode, Cn as CardProps, Ct as defaultMarkdownRenderer, D as TableCellSlotProps, Dn as Grid, Dt as MarkdownBlock, E as TableAlignment, En as TooltipProps, Et as _default$10, F as ListProps, Fn as _default$16, Ft as MarkdownQuoteBlock, G as Form, Gt as CodeDiagnosticSeverity, H as ProgressBar, Ht as createCodeBuffer, I as _default$20, In as Box, It as MarkdownRenderLine, J as FormProps, Jt as CodeSelection, K as FormErrors, Kt as CodePosition, L as Timer, Ln as BoxProps, Lt as MarkdownRenderOptions, M as TableViewportRange, Mn as _default$5, Mt as MarkdownListItem, N as List, Nn as DividerProps, Nt as MarkdownParagraphBlock, O as TableColumn, On as GridProps, Ot as MarkdownBlockProvider, P as ListItem, Pn as StackProps, Pt as MarkdownProps, Q as SliderOrientation, Qt as _default$21, R as TimerMode, Rt as MarkdownRenderer, S as Tree, Sn as BreadcrumbProps, St as FrameBufferProps, T as Table, Tn as TooltipPosition, Tt as renderMarkdown, U as ProgressBarProps, Ut as CodeBuffer, V as _default, Vt as Code, W as _default$17, Wt as CodeDiagnostic, X as FormValues, Xt as CodeSyntaxProvider, Y as FormSlotProps, Yt as CodeSyntaxContext, Z as _default$15, Zt as CodeSyntaxToken, _ as Tabs, _n as _default$4, _t as LineNumberProps, a as _default$8, an as _default$12, at as RadioOption, b as MenuItem, bn as AvatarProps, bt as DiffView, c as StatusBarProps, cn as Text, ct as Select, d as Step, dn as _default$14, dt as TextArea, en as BadgeVariant, et as SliderRange, f as StepStatus, fn as ScrollBarOrientation, ft as TextAreaProps, g as Tab, gn as ScrollBoxProps, gt as LineNumber, h as _default$3, hn as ScrollBoxItemSlot, ht as _default$9, i as KeyHintProps, in as _default$19, it as RadioGroupProps, j as TableSortDirection, jn as _default$18, jt as MarkdownListBlock, k as TableProps, kn as _default$22, kt as MarkdownCodeBlock, l as _default$11, ln as TextProps, lt as SelectOption, m as StepperProps, mn as ScrollBoxExposed, mt as TextInputProps, n as KeyBinding, nn as SpinnerProps, nt as ConfirmProps, o as StatusBar, on as NewlineProps, ot as Checkbox, p as Stepper, pn as ScrollBarProps, pt as TextInput, q as FormField, qt as CodeProps, r as KeyHint, rn as StaticProps, rt as RadioGroup, s as StatusBarItem, sn as TransformProps, st as CheckboxProps, t as _default$1, tn as LinkProps, tt as Confirm, u as ModalProps, un as _default$13, ut as SelectProps, v as TabsProps, vn as AlertProps, vt as Diff, w as TreeProps, wn as HeaderProps, wt as parseMarkdown, x as MenuProps, xn as BreadcrumbItem, xt as _default$6, y as Menu, yn as AlertType, yt as DiffProps, z as TimerProps, zt as MarkdownSpan } from "./index-B3zQ6E-5.mjs";
|
|
4
4
|
import { a as createVirtualViewport, i as VirtualViewportRange, n as VirtualViewport, o as useVirtualViewport, r as VirtualViewportOptions, t as VirtualScrollAlignment } from "./useVirtualViewport-TxTapifg.mjs";
|
|
5
|
-
import { A as KeyHandler, C as
|
|
6
|
-
import { a as
|
|
7
|
-
import { _ as KittyFlagName, a as RenderMetrics, b as kittyModifiers, c as createApp, d as lastKeyEvent, f as lastMouseEvent, g as renderToString, h as render, i as RenderInstance, l as lastCompositionEvent, m as lastResizeEvent, n as AppOptions, o as RenderOptions, p as lastPasteEvent, r as Instance, s as RenderToStringOptions, t as App, u as lastFocusEvent, v as KittyKeyboardOptions, x as resolveKittyFlags, y as kittyFlags } from "./app-
|
|
5
|
+
import { A as ImeManager, B as KeyHandler, C as useWindowSize, D as useStderr, E as UseStdoutReturn, F as useMouse, H as UseInputReturn, I as UsePasteOptions, L as usePaste, M as useIme, N as UseMouseOptions, O as useStdin, P as UseMouseReturn, R as InputHandler, S as WindowSize, T as UseStdinReturn, U as useInput, V as UseInputOptions, W as useKeyPress, _ as AnimationResult, a as KeymapStroke, b as CursorPosition, c as createKeymapResolver, d as useIsScreenReaderEnabled, f as BoxMetrics, g as measureElement, h as DOMElement, i as KeymapResolver, j as UseImeOptions, k as useStdout, l as defineKeymap, m as useBoxMetrics, n as KeymapBinding, o as UseKeymapOptions, p as UseBoxMetricsResult, r as KeymapMatch, s as UseKeymapReturn, t as Keymap, u as useKeymap, v as UseAnimationOptions, w as UseStderrReturn, x as useCursor, y as useAnimation, z as Key } from "./index-Ddp2Txtm.mjs";
|
|
6
|
+
import { a as provideFocusScope, i as UseFocusOptions, n as useApp, o as useFocus, r as FocusManager, s as useFocusManager, t as UseAppReturn } from "./useApp-vIRJ5Th3.mjs";
|
|
7
|
+
import { A as FrescoTreeInspection, C as FrescoDevtools, D as FrescoDevtoolsSnapshot, E as FrescoDevtoolsRenderMetrics, M as formatFrescoDebugOverlay, N as inspectFrescoTree, O as FrescoLayoutInspection, S as FrescoDebugOverlayOptions, T as FrescoDevtoolsOptions, _ as KittyFlagName, a as RenderMetrics, b as kittyModifiers, c as createApp, d as lastKeyEvent, f as lastMouseEvent, g as renderToString, h as render, i as RenderInstance, j as createFrescoDevtools, k as FrescoNodeInspection, l as lastCompositionEvent, m as lastResizeEvent, n as AppOptions, o as RenderOptions, p as lastPasteEvent, r as Instance, s as RenderToStringOptions, t as App, u as lastFocusEvent, v as KittyKeyboardOptions, w as FrescoDevtoolsEvent, x as resolveKittyFlags, y as kittyFlags } from "./app-_QmZ-PoH.mjs";
|
|
8
|
+
import { App as App$1, Component, InjectionKey, MaybeRefOrGetter, Plugin, Ref } from "vue";
|
|
8
9
|
import { FlexStyleNapi, ImeStateNapi, InputEventNapi, LayoutResultNapi, ModifiersNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi, TerminalOptionsNapi } from "@vizejs/fresco-native";
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
//#region src/plugins.d.ts
|
|
12
|
+
/** Typed provider owned by a Fresco extension. */
|
|
13
|
+
interface FrescoProvider<Value> {
|
|
14
|
+
/** Stable Vue injection key for advanced adapter integration. */
|
|
15
|
+
readonly key: InjectionKey<Value>;
|
|
16
|
+
/** Install a value while a plugin is configuring the application. */
|
|
17
|
+
provide(app: App$1, value: Value): void;
|
|
18
|
+
/** Read the nearest value from component setup. */
|
|
19
|
+
use(): Value;
|
|
20
|
+
}
|
|
21
|
+
/** Declarative component and provider setup for one Fresco plugin. */
|
|
22
|
+
interface FrescoPluginDefinition {
|
|
23
|
+
/** Optional global components keyed by their public template names. */
|
|
24
|
+
readonly components?: Readonly<Record<string, Component>>;
|
|
25
|
+
/** Additional provider or application setup performed during installation. */
|
|
26
|
+
readonly setup?: (app: App$1) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Define a typed extension provider with an optional fallback value.
|
|
30
|
+
*
|
|
31
|
+
* Fallback presence follows argument presence: explicitly passing `undefined`
|
|
32
|
+
* is a valid fallback for value types that include it.
|
|
33
|
+
*/
|
|
34
|
+
declare function defineFrescoProvider<Value>(description: string, fallback?: Value): FrescoProvider<Value>;
|
|
35
|
+
/** Define a Vue plugin that registers Fresco components and typed providers. */
|
|
36
|
+
declare function defineFrescoPlugin(definition: Readonly<FrescoPluginDefinition>): Plugin<[]>;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region src/theme.d.ts
|
|
39
|
+
/** Semantic terminal colors consumed by Fresco components and applications. */
|
|
40
|
+
interface FrescoThemeColors {
|
|
41
|
+
foreground: string;
|
|
42
|
+
background: string;
|
|
43
|
+
muted: string;
|
|
44
|
+
primary: string;
|
|
45
|
+
accent: string;
|
|
46
|
+
positive: string;
|
|
47
|
+
caution: string;
|
|
48
|
+
negative: string;
|
|
49
|
+
info: string;
|
|
50
|
+
focus: string;
|
|
51
|
+
}
|
|
52
|
+
/** Cell-based spacing scale shared by layout components. */
|
|
53
|
+
interface FrescoThemeSpacing {
|
|
54
|
+
none: number;
|
|
55
|
+
xs: number;
|
|
56
|
+
sm: number;
|
|
57
|
+
md: number;
|
|
58
|
+
lg: number;
|
|
59
|
+
xl: number;
|
|
60
|
+
}
|
|
61
|
+
/** Border defaults for progressively stronger terminal surfaces. */
|
|
62
|
+
interface FrescoThemeBorders {
|
|
63
|
+
subtle: FrescoBorderStyle;
|
|
64
|
+
regular: FrescoBorderStyle;
|
|
65
|
+
strong: FrescoBorderStyle;
|
|
66
|
+
}
|
|
67
|
+
/** Animation timing contract, including the effective reduced-motion policy. */
|
|
68
|
+
interface FrescoThemeMotion {
|
|
69
|
+
reduced: boolean;
|
|
70
|
+
fastMs: number;
|
|
71
|
+
regularMs: number;
|
|
72
|
+
slowMs: number;
|
|
73
|
+
}
|
|
74
|
+
/** Complete, resolved Fresco theme available to descendants. */
|
|
75
|
+
interface FrescoTheme {
|
|
76
|
+
colors: FrescoThemeColors;
|
|
77
|
+
spacing: FrescoThemeSpacing;
|
|
78
|
+
borders: FrescoThemeBorders;
|
|
79
|
+
motion: FrescoThemeMotion;
|
|
80
|
+
}
|
|
81
|
+
/** Scoped partial theme layered over the nearest provider. */
|
|
82
|
+
interface FrescoThemeOverride {
|
|
83
|
+
colors?: Partial<FrescoThemeColors>;
|
|
84
|
+
spacing?: Partial<FrescoThemeSpacing>;
|
|
85
|
+
borders?: Partial<FrescoThemeBorders>;
|
|
86
|
+
motion?: Partial<FrescoThemeMotion>;
|
|
87
|
+
}
|
|
88
|
+
/** Static defaults shared without runtime stylesheet or token generation. */
|
|
89
|
+
declare const defaultFrescoTheme: Readonly<FrescoTheme>;
|
|
90
|
+
/** Injection identity for framework adapters that bridge Fresco theme scopes. */
|
|
91
|
+
declare const FRESCO_THEME_KEY: InjectionKey<Readonly<Ref<FrescoTheme>>>;
|
|
92
|
+
/** Resolve one scoped override without mutating its parent theme. */
|
|
93
|
+
declare function resolveFrescoTheme(parent: Readonly<FrescoTheme>, override?: Readonly<FrescoThemeOverride>): FrescoTheme;
|
|
94
|
+
/** Provide a reactive theme scoped to the current component subtree. */
|
|
95
|
+
declare function provideFrescoTheme(override?: MaybeRefOrGetter<FrescoThemeOverride>): Readonly<Ref<FrescoTheme>>;
|
|
96
|
+
/** Read the nearest resolved theme, falling back to the static defaults. */
|
|
97
|
+
declare function useFrescoTheme(): Readonly<Ref<FrescoTheme>>;
|
|
98
|
+
//#endregion
|
|
99
|
+
export { _default as Alert, type AlertProps, type AlertType, type AnimationResult, type App, type AppOptions, _default$1 as Avatar, type AvatarProps, _default$2 as Badge, type BadgeProps, type BadgeVariant, Box, type BoxMetrics, type BoxProps, _default$3 as Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, _default$4 as Card, type CardProps, Checkbox, type CheckboxProps, Code, type CodeBuffer, type CodeDiagnostic, type CodeDiagnosticSeverity, type CodePosition, type CodeProps, type CodeSelection, type CodeSyntaxContext, type CodeSyntaxProvider, type CodeSyntaxToken, type CompositionEvent, Confirm, type ConfirmProps, type CursorPosition, type DOMElement, Diff, type DiffProps, type DiffView, _default$5 as Divider, type DividerProps, FRESCO_THEME_KEY, type FlexStyleNapi, type FocusEvent, type FocusManager, Form, type FormErrors, type FormField, type FormProps, type FormSlotProps, type FormValues, _default$6 as FrameBuffer, type FrameBufferProps, type FrescoAlignContent, type FrescoAlignItems, type FrescoAlignSelf, type FrescoAppearance, type FrescoBorderStyle, type FrescoBoxRenderNode, type FrescoCanonicalStyle, type FrescoDebugOverlayOptions, type FrescoDeclaredSize, type FrescoDevtools, type FrescoDevtoolsEvent, type FrescoDevtoolsOptions, type FrescoDevtoolsRenderMetrics, type FrescoDevtoolsSnapshot, type FrescoDimension, type FrescoDisplay, type FrescoFlexDirection, type FrescoFlexWrap, type FrescoHostNode, type FrescoInputDispatchResult, type FrescoInputEvent, type FrescoInputEventHandler, type FrescoInputEventPhase, type FrescoInputRenderNode, type FrescoJustifyContent, type FrescoLayoutInspection, type FrescoModifiers, type FrescoMouseEventKind, type FrescoNodeInspection, type FrescoNodeLifecycleHooks, type FrescoNodeUpdateKind, type FrescoOverflow, type FrescoPluginDefinition, type FrescoPosition, type FrescoProvider, type FrescoRawRenderNode, type FrescoRenderNode, type FrescoRenderNodeKind, type FrescoRenderStyle, type FrescoRendererOptions, type FrescoRootRenderNode, type FrescoRoutedInputEvent, type FrescoSnakeStyleAliases, type FrescoStyle, type FrescoTextRenderNode, type FrescoTextWrapMode, type FrescoTheme, type FrescoThemeBorders, type FrescoThemeColors, type FrescoThemeMotion, type FrescoThemeOverride, type FrescoThemeSpacing, type FrescoTreeInspection, Grid, type GridProps, _default$7 as HStack, _default$8 as Header, type HeaderProps, type ImeManager, type ImeStateNapi, type InputEvent, type InputEventNapi, type InputHandler, type Instance, type Key, type KeyBinding, type KeyEvent, type KeyEventType, type KeyHandler, KeyHint, type KeyHintProps, type Keymap, type KeymapBinding, type KeymapMatch, type KeymapResolver, type KeymapStroke, type KittyFlagName, type KittyKeyboardOptions, type LayoutResultNapi, LineNumber, type LineNumberProps, _default$9 as Link, type LinkProps, List, type ListItem, type ListProps, _default$10 as Markdown, type MarkdownBlock, type MarkdownBlockProvider, type MarkdownCodeBlock, type MarkdownHeadingBlock, type MarkdownListBlock, type MarkdownListItem, type MarkdownParagraphBlock, type MarkdownProps, type MarkdownQuoteBlock, type MarkdownRenderLine, type MarkdownRenderOptions, type MarkdownRenderer, type MarkdownSpan, type MarkdownThematicBreakBlock, Menu, type MenuItem, type MenuProps, _default$11 as Modal, type ModalProps, type ModifiersNapi, type MouseEvent, _default$12 as Newline, type NewlineProps, type PasteEvent, ProgressBar, type ProgressBarProps, RadioGroup, type RadioGroupProps, type RadioOption, type RenderInstance, type RenderMetrics, type RenderNodeNapi, type RenderOptions, type RenderToStringOptions, type ResizeEvent, _default$13 as ScrollBar, type ScrollBarOrientation, type ScrollBarProps, _default$14 as ScrollBox, type ScrollBoxExposed, type ScrollBoxItemSlot, type ScrollBoxProps, Select, type SelectOption, type SelectProps, _default$15 as Slider, type SliderOrientation, type SliderProps, type SliderRange, _default$16 as Spacer, _default$17 as Spinner, type SpinnerProps, _default$18 as Stack, type StackProps, _default$19 as Static, type StaticProps, StatusBar, type StatusBarItem, type StatusBarProps, type Step, type StepStatus, Stepper, type StepperProps, type StyleNapi, type Tab, Table, type TableAlignment, type TableCellSlotProps, type TableColumn, type TableProps, type TableRow, type TableSortDirection, type TableViewportRange, Tabs, type TabsProps, type TerminalInfoNapi, type TerminalOptionsNapi, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Timer, type TimerMode, type TimerProps, _default$20 as Tooltip, type TooltipPosition, type TooltipProps, _default$21 as Transform, type TransformProps, Tree, type TreeNode, type TreeProps, type UseAnimationOptions, type UseAppReturn, type UseBoxMetricsResult, type UseFocusOptions, type UseImeOptions, type UseInputOptions, type UseInputReturn, type UseKeymapOptions, type UseKeymapReturn, type UseMouseOptions, type UseMouseReturn, type UsePasteOptions, type UseStderrReturn, type UseStdinReturn, type UseStdoutReturn, _default$22 as VStack, type VirtualScrollAlignment, type VirtualViewport, type VirtualViewportOptions, type VirtualViewportRange, type WindowSize, createApp, createCodeBuffer, createFrescoDevtools, createKeymapResolver, createRenderer, createVirtualViewport, defaultFrescoTheme, defaultMarkdownRenderer, defineFrescoPlugin, defineFrescoProvider, defineKeymap, formatFrescoDebugOverlay, inspectFrescoTree, kittyFlags, kittyModifiers, lastCompositionEvent, lastFocusEvent, lastKeyEvent, lastMouseEvent, lastPasteEvent, lastResizeEvent, measureElement, parseMarkdown, provideFocusScope, provideFrescoTheme, render, renderMarkdown, renderToString, resolveFrescoTheme, resolveKittyFlags, useAnimation, useApp, useBoxMetrics, useCursor, useFocus, useFocusManager, useFrescoTheme, useIme, useInput, useIsScreenReaderEnabled, useKeyPress, useKeymap, useMouse, usePaste, useStderr, useStdin, useStdout, useVirtualViewport, useWindowSize };
|
|
100
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/plugins.ts","../src/theme.ts"],"mappings":";;;;;;;;;;;;UAGiB,cAAA;;WAEN,GAAA,EAAK,YAAA,CAAa,KAAA;;EAE3B,OAAA,CAAQ,GAAA,EAAK,KAAA,EAAQ,KAAA,EAAO,KAAA;;EAE5B,GAAA,IAAO,KAAA;AAAA;;UAIQ,sBAAA;EAVc;EAAA,SAYpB,UAAA,GAAa,QAAA,CAAS,MAAA,SAAe,SAAA;EAVnB;EAAA,SAYlB,KAAA,IAAS,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
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { C as useStdin,
|
|
2
|
-
import { a as
|
|
3
|
-
import { A as
|
|
4
|
-
import { i as
|
|
1
|
+
import { A as useFocusManager, C as useStdin, N as useApp, O as provideFocusScope, S as useStderr, a as lastMouseEvent, c as render, f as createRenderer, h as measureElement, i as lastKeyEvent, k as useFocus, l as renderToString, n as lastCompositionEvent, o as lastPasteEvent, r as lastFocusEvent, s as lastResizeEvent, t as createApp, w as useStdout, y as useCursor } from "./app-C_wFlWSV.mjs";
|
|
2
|
+
import { a as useInput, c as useIsScreenReaderEnabled, i as useMouse, n as createVirtualViewport, o as useKeyPress, r as useVirtualViewport, s as usePaste, t as useBoxMetrics } from "./useBoxMetrics-lF5Myjc7.mjs";
|
|
3
|
+
import { A as FrescoMarkdown_default, B as ScrollBox_default, C as Checkbox, D as FrescoLink_default, E as TextInput, F as createCodeBuffer, G as FrescoVStack_default, H as Text, I as LineNumber, J as FrescoDivider_default, K as FrescoHStack_default, L as FrescoTransform_default, M as parseMarkdown, N as renderMarkdown, O as Diff, P as Code, R as FrescoStatic_default, S as RadioGroup, T as TextArea, U as FrescoCard_default, V as ScrollBar_default, W as Grid, X as Box, Y as FrescoSpacer_default, _ as ProgressBar, a as FrescoModal_default, b as FrescoSlider_default, c as Tabs, d as Table, f as List, g as FrescoAlert_default, h as FrescoBadge_default, i as StatusBar, j as defaultMarkdownRenderer, k as FrescoFrameBuffer_default, l as Menu, m as Timer, n as KeyHint, o as Stepper, p as FrescoTooltip_default, q as FrescoStack_default, r as FrescoHeader_default, s as FrescoBreadcrumb_default, t as FrescoAvatar_default, u as Tree, v as FrescoSpinner_default, w as Select, x as Confirm, y as Form, z as FrescoNewline_default } from "./components-DzkL-yHj.mjs";
|
|
4
|
+
import { a as useWindowSize, i as useAnimation, n as defineKeymap, o as useIme, r as useKeymap, t as createKeymapResolver } from "./composables-BJeirPSH.mjs";
|
|
5
|
+
import { computed, inject, provide, toValue } from "vue";
|
|
5
6
|
//#region src/kittyKeyboard.ts
|
|
6
7
|
/**
|
|
7
8
|
* Kitty keyboard protocol constants compatible with Ink.
|
|
@@ -30,6 +31,262 @@ const kittyModifiers = {
|
|
|
30
31
|
numLock: 128
|
|
31
32
|
};
|
|
32
33
|
//#endregion
|
|
33
|
-
|
|
34
|
+
//#region src/plugins.ts
|
|
35
|
+
/**
|
|
36
|
+
* Define a typed extension provider with an optional fallback value.
|
|
37
|
+
*
|
|
38
|
+
* Fallback presence follows argument presence: explicitly passing `undefined`
|
|
39
|
+
* is a valid fallback for value types that include it.
|
|
40
|
+
*/
|
|
41
|
+
function defineFrescoProvider(description, fallback) {
|
|
42
|
+
const key = Symbol(description);
|
|
43
|
+
const hasFallback = arguments.length >= 2;
|
|
44
|
+
const missing = Symbol("missing-fresco-provider");
|
|
45
|
+
return {
|
|
46
|
+
key,
|
|
47
|
+
provide(app, value) {
|
|
48
|
+
app.provide(key, value);
|
|
49
|
+
},
|
|
50
|
+
use() {
|
|
51
|
+
const value = inject(key, missing);
|
|
52
|
+
if (value !== missing) return value;
|
|
53
|
+
if (hasFallback) return fallback;
|
|
54
|
+
throw new Error(`Fresco provider ${JSON.stringify(description)} is not installed`);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** Define a Vue plugin that registers Fresco components and typed providers. */
|
|
59
|
+
function defineFrescoPlugin(definition) {
|
|
60
|
+
return { install(app) {
|
|
61
|
+
for (const [name, component] of Object.entries(definition.components ?? {})) app.component(name, component);
|
|
62
|
+
definition.setup?.(app);
|
|
63
|
+
} };
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/devtools.ts
|
|
67
|
+
function copyLayout(layout) {
|
|
68
|
+
return {
|
|
69
|
+
x: layout.x,
|
|
70
|
+
y: layout.y,
|
|
71
|
+
width: layout.width,
|
|
72
|
+
height: layout.height
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Join a live host tree with the layout results produced by the same native frame.
|
|
77
|
+
*
|
|
78
|
+
* The returned records are flat and immutable, so devtools can index them without
|
|
79
|
+
* retaining parent back-references or the mutable Vue renderer tree.
|
|
80
|
+
*/
|
|
81
|
+
function inspectFrescoTree(root, layouts = []) {
|
|
82
|
+
const layoutsById = new Map(layouts.map((layout) => [layout.id, layout]));
|
|
83
|
+
const matchedLayoutIds = /* @__PURE__ */ new Set();
|
|
84
|
+
const nodes = [];
|
|
85
|
+
const visit = (node, depth) => {
|
|
86
|
+
const layout = layoutsById.get(node.id);
|
|
87
|
+
if (layout) matchedLayoutIds.add(node.id);
|
|
88
|
+
nodes.push({
|
|
89
|
+
id: node.id,
|
|
90
|
+
type: node.type,
|
|
91
|
+
parentId: node.parent?.id ?? null,
|
|
92
|
+
childIds: node.children.map((child) => child.id),
|
|
93
|
+
depth,
|
|
94
|
+
props: { ...node.props },
|
|
95
|
+
...node.text === void 0 ? {} : { text: node.text },
|
|
96
|
+
layout: layout ? copyLayout(layout) : null
|
|
97
|
+
});
|
|
98
|
+
for (const child of node.children) visit(child, depth + 1);
|
|
99
|
+
};
|
|
100
|
+
visit(root, 0);
|
|
101
|
+
return {
|
|
102
|
+
rootId: root.id,
|
|
103
|
+
nodes,
|
|
104
|
+
nodeCount: nodes.length,
|
|
105
|
+
layoutCount: matchedLayoutIds.size,
|
|
106
|
+
unmatchedLayoutIds: layouts.map((layout) => layout.id).filter((id) => !matchedLayoutIds.has(id))
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
function retainedLimit(limit) {
|
|
110
|
+
if (limit === void 0) return 200;
|
|
111
|
+
if (!Number.isFinite(limit)) return 200;
|
|
112
|
+
return Math.max(0, Math.floor(limit));
|
|
113
|
+
}
|
|
114
|
+
/** Create one opt-in tree inspector and bounded event trace collector. */
|
|
115
|
+
function createFrescoDevtools(options = {}) {
|
|
116
|
+
const eventLimit = retainedLimit(options.eventLimit);
|
|
117
|
+
const events = [];
|
|
118
|
+
let sequence = 0;
|
|
119
|
+
let tree = null;
|
|
120
|
+
let latestRender = null;
|
|
121
|
+
const append = (event) => {
|
|
122
|
+
if (eventLimit === 0) return;
|
|
123
|
+
events.push({
|
|
124
|
+
...event,
|
|
125
|
+
sequence: sequence++
|
|
126
|
+
});
|
|
127
|
+
const overflow = events.length - eventLimit;
|
|
128
|
+
if (overflow > 0) events.splice(0, overflow);
|
|
129
|
+
};
|
|
130
|
+
return {
|
|
131
|
+
lifecycle: {
|
|
132
|
+
onCreate(node) {
|
|
133
|
+
append({
|
|
134
|
+
type: "create",
|
|
135
|
+
nodeId: node.id,
|
|
136
|
+
nodeType: node.type
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
onUpdate(node, updateKind) {
|
|
140
|
+
append({
|
|
141
|
+
type: "update",
|
|
142
|
+
nodeId: node.id,
|
|
143
|
+
updateKind
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
onResize(node, previous, current) {
|
|
147
|
+
append({
|
|
148
|
+
type: "resize",
|
|
149
|
+
nodeId: node.id,
|
|
150
|
+
previous,
|
|
151
|
+
current
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
onRemove(node) {
|
|
155
|
+
append({
|
|
156
|
+
type: "remove",
|
|
157
|
+
nodeId: node.id,
|
|
158
|
+
nodeType: node.type
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
recordInput(input) {
|
|
163
|
+
append({
|
|
164
|
+
type: "input",
|
|
165
|
+
input: { ...input }
|
|
166
|
+
});
|
|
167
|
+
},
|
|
168
|
+
recordRender(root, layouts, metrics) {
|
|
169
|
+
tree = inspectFrescoTree(root, layouts);
|
|
170
|
+
latestRender = { ...metrics };
|
|
171
|
+
append({
|
|
172
|
+
type: "render",
|
|
173
|
+
metrics: latestRender
|
|
174
|
+
});
|
|
175
|
+
return tree;
|
|
176
|
+
},
|
|
177
|
+
snapshot() {
|
|
178
|
+
return {
|
|
179
|
+
tree,
|
|
180
|
+
events: events.map((event) => ({ ...event })),
|
|
181
|
+
latestRender
|
|
182
|
+
};
|
|
183
|
+
},
|
|
184
|
+
clearEvents() {
|
|
185
|
+
events.length = 0;
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
function formatNode(node) {
|
|
190
|
+
const indent = " ".repeat(node.depth);
|
|
191
|
+
const layout = node.layout ? ` ${node.layout.width}x${node.layout.height}@${node.layout.x},${node.layout.y}` : " layout:pending";
|
|
192
|
+
const text = node.text === void 0 ? "" : ` ${JSON.stringify(node.text)}`;
|
|
193
|
+
return `${indent}#${node.id} ${node.type}${layout}${text}`;
|
|
194
|
+
}
|
|
195
|
+
function formatEvent(event) {
|
|
196
|
+
switch (event.type) {
|
|
197
|
+
case "create": return `${event.sequence} create #${event.nodeId} ${event.nodeType}`;
|
|
198
|
+
case "update": return `${event.sequence} update #${event.nodeId} ${event.updateKind}`;
|
|
199
|
+
case "resize": return `${event.sequence} resize #${event.nodeId}`;
|
|
200
|
+
case "remove": return `${event.sequence} remove #${event.nodeId} ${event.nodeType}`;
|
|
201
|
+
case "input": return `${event.sequence} input ${event.input.type}`;
|
|
202
|
+
case "render": return `${event.sequence} render ${event.metrics.renderTime.toFixed(2)}ms`;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
/** Render an inspector snapshot as a compact terminal debug overlay. */
|
|
206
|
+
function formatFrescoDebugOverlay(snapshot, options = {}) {
|
|
207
|
+
const maxNodes = Math.max(0, Math.floor(options.maxNodes ?? 20));
|
|
208
|
+
const maxEvents = Math.max(0, Math.floor(options.maxEvents ?? 8));
|
|
209
|
+
const render = snapshot.latestRender;
|
|
210
|
+
const summary = render ? `Fresco ${render.nodeCount} nodes · ${render.layoutCount} layouts · ${render.renderTime.toFixed(2)}ms` : "Fresco devtools · waiting for first render";
|
|
211
|
+
const treeRows = snapshot.tree?.nodes.slice(0, maxNodes).map(formatNode) ?? [];
|
|
212
|
+
const eventRows = snapshot.events.slice(-maxEvents).map(formatEvent);
|
|
213
|
+
return [
|
|
214
|
+
summary,
|
|
215
|
+
...treeRows,
|
|
216
|
+
...eventRows.length > 0 ? ["events", ...eventRows] : []
|
|
217
|
+
].join("\n");
|
|
218
|
+
}
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region src/theme.ts
|
|
221
|
+
/** Static defaults shared without runtime stylesheet or token generation. */
|
|
222
|
+
const defaultFrescoTheme = Object.freeze({
|
|
223
|
+
colors: Object.freeze({
|
|
224
|
+
foreground: "white",
|
|
225
|
+
background: "black",
|
|
226
|
+
muted: "gray",
|
|
227
|
+
primary: "cyan",
|
|
228
|
+
accent: "magenta",
|
|
229
|
+
positive: "green",
|
|
230
|
+
caution: "yellow",
|
|
231
|
+
negative: "red",
|
|
232
|
+
info: "blue",
|
|
233
|
+
focus: "cyan"
|
|
234
|
+
}),
|
|
235
|
+
spacing: Object.freeze({
|
|
236
|
+
none: 0,
|
|
237
|
+
xs: 1,
|
|
238
|
+
sm: 1,
|
|
239
|
+
md: 2,
|
|
240
|
+
lg: 3,
|
|
241
|
+
xl: 4
|
|
242
|
+
}),
|
|
243
|
+
borders: Object.freeze({
|
|
244
|
+
subtle: "single",
|
|
245
|
+
regular: "rounded",
|
|
246
|
+
strong: "double"
|
|
247
|
+
}),
|
|
248
|
+
motion: Object.freeze({
|
|
249
|
+
reduced: false,
|
|
250
|
+
fastMs: 80,
|
|
251
|
+
regularMs: 160,
|
|
252
|
+
slowMs: 240
|
|
253
|
+
})
|
|
254
|
+
});
|
|
255
|
+
/** Injection identity for framework adapters that bridge Fresco theme scopes. */
|
|
256
|
+
const FRESCO_THEME_KEY = Symbol("fresco-theme");
|
|
257
|
+
/** Resolve one scoped override without mutating its parent theme. */
|
|
258
|
+
function resolveFrescoTheme(parent, override = {}) {
|
|
259
|
+
return {
|
|
260
|
+
colors: {
|
|
261
|
+
...parent.colors,
|
|
262
|
+
...override.colors
|
|
263
|
+
},
|
|
264
|
+
spacing: {
|
|
265
|
+
...parent.spacing,
|
|
266
|
+
...override.spacing
|
|
267
|
+
},
|
|
268
|
+
borders: {
|
|
269
|
+
...parent.borders,
|
|
270
|
+
...override.borders
|
|
271
|
+
},
|
|
272
|
+
motion: {
|
|
273
|
+
...parent.motion,
|
|
274
|
+
...override.motion
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
/** Provide a reactive theme scoped to the current component subtree. */
|
|
279
|
+
function provideFrescoTheme(override = {}) {
|
|
280
|
+
const parent = inject(FRESCO_THEME_KEY, void 0);
|
|
281
|
+
const theme = computed(() => resolveFrescoTheme(parent?.value ?? defaultFrescoTheme, toValue(override)));
|
|
282
|
+
provide(FRESCO_THEME_KEY, theme);
|
|
283
|
+
return theme;
|
|
284
|
+
}
|
|
285
|
+
/** Read the nearest resolved theme, falling back to the static defaults. */
|
|
286
|
+
function useFrescoTheme() {
|
|
287
|
+
return inject(FRESCO_THEME_KEY, void 0) ?? computed(() => defaultFrescoTheme);
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
export { FrescoAlert_default as Alert, FrescoAvatar_default as Avatar, FrescoBadge_default as Badge, Box, FrescoBreadcrumb_default as Breadcrumb, FrescoCard_default as Card, Checkbox, Code, Confirm, Diff, FrescoDivider_default as Divider, FRESCO_THEME_KEY, Form, FrescoFrameBuffer_default as FrameBuffer, Grid, FrescoHStack_default as HStack, FrescoHeader_default as Header, KeyHint, LineNumber, FrescoLink_default as Link, List, FrescoMarkdown_default as Markdown, Menu, FrescoModal_default as Modal, FrescoNewline_default as Newline, ProgressBar, RadioGroup, ScrollBar_default as ScrollBar, ScrollBox_default as ScrollBox, Select, FrescoSlider_default as Slider, FrescoSpacer_default as Spacer, FrescoSpinner_default as Spinner, FrescoStack_default as Stack, FrescoStatic_default as Static, StatusBar, Stepper, Table, Tabs, Text, TextArea, TextInput, Timer, FrescoTooltip_default as Tooltip, FrescoTransform_default as Transform, Tree, FrescoVStack_default as VStack, createApp, createCodeBuffer, createFrescoDevtools, createKeymapResolver, createRenderer, createVirtualViewport, defaultFrescoTheme, defaultMarkdownRenderer, defineFrescoPlugin, defineFrescoProvider, defineKeymap, formatFrescoDebugOverlay, inspectFrescoTree, kittyFlags, kittyModifiers, lastCompositionEvent, lastFocusEvent, lastKeyEvent, lastMouseEvent, lastPasteEvent, lastResizeEvent, measureElement, parseMarkdown, provideFocusScope, provideFrescoTheme, render, renderMarkdown, renderToString, resolveFrescoTheme, resolveKittyFlags, useAnimation, useApp, useBoxMetrics, useCursor, useFocus, useFocusManager, useFrescoTheme, useIme, useInput, useIsScreenReaderEnabled, useKeyPress, useKeymap, useMouse, usePaste, useStderr, useStdin, useStdout, useVirtualViewport, useWindowSize };
|
|
34
291
|
|
|
35
292
|
//# sourceMappingURL=index.mjs.map
|