@vizejs/fresco 0.347.7 → 0.350.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/app-DJImCkSW.d.mts +135 -0
  2. package/dist/app-DJImCkSW.d.mts.map +1 -0
  3. package/dist/{useInput-iUuaOefz.mjs → app-D_Ke7C8w.mjs} +2 -216
  4. package/dist/{useInput-iUuaOefz.mjs.map → app-D_Ke7C8w.mjs.map} +1 -1
  5. package/dist/components/index.d.mts +2 -2
  6. package/dist/components/index.mjs +1 -1
  7. package/dist/{components-rzllq5gt.mjs → components-3-vKPu1z.mjs} +2 -2
  8. package/dist/{components-rzllq5gt.mjs.map → components-3-vKPu1z.mjs.map} +1 -1
  9. package/dist/composables/index.d.mts +3 -2
  10. package/dist/composables/index.mjs +3 -2
  11. package/dist/{composables-Dh8YqmVY.mjs → composables-Da3c5pxz.mjs} +3 -2
  12. package/dist/{composables-Dh8YqmVY.mjs.map → composables-Da3c5pxz.mjs.map} +1 -1
  13. package/dist/{index-CQHg8OjC.d.mts → index-D2kUje57.d.mts} +184 -378
  14. package/dist/index-D2kUje57.d.mts.map +1 -0
  15. package/dist/{index-Dwx6lKP0.d.mts → index-DqGcW9sz.d.mts} +2 -85
  16. package/dist/index-DqGcW9sz.d.mts.map +1 -0
  17. package/dist/index.d.mts +7 -136
  18. package/dist/index.mjs +4 -3
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/renderer-DWG0G3g8.d.mts +198 -0
  21. package/dist/renderer-DWG0G3g8.d.mts.map +1 -0
  22. package/dist/testing/index.d.mts +124 -0
  23. package/dist/testing/index.d.mts.map +1 -0
  24. package/dist/testing/index.mjs +282 -0
  25. package/dist/testing/index.mjs.map +1 -0
  26. package/dist/useApp-CNjer3hJ.d.mts +86 -0
  27. package/dist/useApp-CNjer3hJ.d.mts.map +1 -0
  28. package/dist/useInput-BpH-JIU3.mjs +219 -0
  29. package/dist/useInput-BpH-JIU3.mjs.map +1 -0
  30. package/package.json +8 -4
  31. package/dist/index-CQHg8OjC.d.mts.map +0 -1
  32. package/dist/index-Dwx6lKP0.d.mts.map +0 -1
  33. package/dist/index.d.mts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-D2kUje57.d.mts","names":[],"sources":["../src/accessibility.ts","../src/components/Box.ts","../src/components/Spacer.ts","../src/components/Divider.ts","../src/components/Stack.ts","../src/components/Grid.ts","../src/components/Card.ts","../src/components/Text.ts","../src/components/Newline.ts","../src/components/Static.ts","../src/components/Transform.ts","../src/components/Code.ts","../src/components/Link.ts","../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/Form.ts","../src/components/Spinner.ts","../src/components/ProgressBar.ts","../src/components/Alert.ts","../src/components/Badge.ts","../src/components/Timer.ts","../src/components/Tooltip.ts","../src/components/List.ts","../src/components/Table.ts","../src/components/Tree.ts","../src/components/Menu.ts","../src/components/Tabs.ts","../src/components/Breadcrumb.ts","../src/components/Stepper.ts","../src/components/Modal.ts","../src/components/StatusBar.ts","../src/components/Header.ts","../src/components/KeyHint.ts","../src/components/Avatar.ts"],"mappings":";;;;KAWY,QAAA;AAAA,KAoBA,SAAA,GAAY,OAAO,CAC7B,MAAA;;;KCjBU,eAAA,GAAkB,iBAAiB;AAAA,UAE9B,QAAA,SAAiB,oBAAA;EDctB;ECZV,QAAA;;EAEA,QAAA;EDWM;ECTN,OAAA;;EAEA,OAAA;EAVU;EAYV,MAAA,GAAS,eAAA;;EAET,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;EA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oBL;EoClBV,QAAA,EAAU,UAAU;;EAEpB,SAAA;EpCiBM;EoCfN,KAAA;;EAEA,KAAA;EnCJU;EmCMV,MAAA;;EAEA,SAAA;AAAA;AAAA,cAGW,OAAA,8BAAO,eAAA,6BAAA,gBAAA;;UAIC,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;;;;;UAJD,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;UC5BL,WAAA;ErCKG;EqCHlB,IAAA;ErCGkB;EqCDlB,QAAA;ErCqBU;EqCnBV,IAAA;;EAEA,EAAA;ErCkBM;EqChBN,EAAA;;EAEA,MAAA;EpCHU;EoCKV,MAAA;AAAA;AAAA,cAiBW,MAAA,8BAAM,eAAA,6BAAA,gBAAA;;;;UAMG,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA;;;;;;UAhBT,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA"}
@@ -1,5 +1,4 @@
1
1
  import { Ref } from "@vue/runtime-core";
2
- import * as _$_vue_reactivity0 from "@vue/reactivity";
3
2
  //#region src/composables/useInput.d.ts
4
3
  interface Key {
5
4
  upArrow: boolean;
@@ -89,88 +88,6 @@ declare function usePaste(handler: (text: string) => void, options?: UsePasteOpt
89
88
  disable: () => void;
90
89
  };
91
90
  //#endregion
92
- //#region src/composables/useFocus.d.ts
93
- interface UseFocusOptions {
94
- /** Enable or disable this focus target while keeping its logical identity */
95
- isActive?: boolean | Ref<boolean>;
96
- /** Auto-focus this component when nothing else is focused */
97
- autoFocus?: boolean;
98
- /** Focus ID for this element */
99
- id?: string;
100
- }
101
- interface FocusManager {
102
- /** Currently focused element ID */
103
- focusedId: Ref<string | null>;
104
- /** Ink-compatible currently focused ID alias */
105
- activeId: Readonly<Ref<string | undefined>>;
106
- /** All active focusable element IDs */
107
- focusableIds: Readonly<Ref<string[]>>;
108
- /** Whether focus management is enabled */
109
- isEnabled: Ref<boolean>;
110
- /** Enable focus management */
111
- enableFocus: () => void;
112
- /** Disable focus management */
113
- disableFocus: () => void;
114
- /** Focus a specific element */
115
- focus: (id: string) => void;
116
- /** Focus next element */
117
- focusNext: () => void;
118
- /** Focus previous element */
119
- focusPrevious: () => void;
120
- /** Register a focusable element */
121
- register: (id: string, options?: {
122
- isActive?: boolean;
123
- autoFocus?: boolean;
124
- }) => void;
125
- /** Unregister a focusable element */
126
- unregister: (id: string) => void;
127
- /** Activate or deactivate a focusable element while keeping its order */
128
- setActive: (id: string, isActive: boolean) => void;
129
- }
130
- /**
131
- * Use focus management
132
- */
133
- declare function useFocus(options?: UseFocusOptions): {
134
- id: string;
135
- isFocused: _$_vue_reactivity0.ComputedRef<boolean>;
136
- focus: (targetId?: string) => void;
137
- blur: () => void;
138
- };
139
- /**
140
- * Use global focus manager controls.
141
- */
142
- declare function useFocusManager(): {
143
- enableFocus: () => void;
144
- disableFocus: () => void;
145
- focusNext: () => void;
146
- focusPrevious: () => void;
147
- focus: (id: string) => void;
148
- activeId: Readonly<Ref<string | undefined, string | undefined>>;
149
- focusableIds: Readonly<Ref<string[], string[]>>;
150
- };
151
- //#endregion
152
- //#region src/composables/useApp.d.ts
153
- interface UseAppReturn {
154
- /** Terminal width */
155
- width: Ref<number>;
156
- /** Terminal height */
157
- height: Ref<number>;
158
- /** Whether app is running */
159
- isRunning: Ref<boolean>;
160
- /** Exit the app */
161
- exit: (errorOrResult?: unknown) => void;
162
- /** Force re-render */
163
- render: () => void;
164
- /** Clear the screen */
165
- clear: () => void;
166
- /** Wait until pending render output has flushed */
167
- waitUntilRenderFlush: () => Promise<void>;
168
- }
169
- /**
170
- * Use app context
171
- */
172
- declare function useApp(): UseAppReturn;
173
- //#endregion
174
91
  //#region src/composables/useIme.d.ts
175
92
  interface UseImeOptions {
176
93
  /** Initial IME mode */
@@ -311,5 +228,5 @@ declare function useBoxMetrics(ref: Ref<MetricTarget | null>): UseBoxMetricsResu
311
228
  */
312
229
  declare function useIsScreenReaderEnabled(): boolean;
313
230
  //#endregion
314
- export { usePaste as A, UseAppReturn as C, useFocus as D, UseFocusOptions as E, UseInputReturn as F, useInput as I, useKeyPress as L, Key as M, KeyHandler as N, useFocusManager as O, UseInputOptions as P, useIme as S, FocusManager as T, useStderr as _, DOMElement as a, ImeManager as b, UseAnimationOptions as c, useCursor as d, WindowSize as f, UseStdoutReturn as g, UseStdinReturn as h, useBoxMetrics as i, InputHandler as j, UsePasteOptions as k, useAnimation as l, UseStderrReturn as m, BoxMetrics as n, measureElement as o, useWindowSize as p, UseBoxMetricsResult as r, AnimationResult as s, useIsScreenReaderEnabled as t, CursorPosition as u, useStdin as v, useApp as w, UseImeOptions as x, useStdout as y };
315
- //# sourceMappingURL=index-Dwx6lKP0.d.mts.map
231
+ export { useInput as A, UsePasteOptions as C, KeyHandler as D, Key as E, UseInputOptions as O, useIme as S, InputHandler as T, useStderr as _, DOMElement as a, ImeManager as b, UseAnimationOptions as c, useCursor as d, WindowSize as f, UseStdoutReturn as g, UseStdinReturn as h, useBoxMetrics as i, useKeyPress as j, UseInputReturn as k, useAnimation as l, UseStderrReturn as m, BoxMetrics as n, measureElement as o, useWindowSize as p, UseBoxMetricsResult as r, AnimationResult as s, useIsScreenReaderEnabled as t, CursorPosition as u, useStdin as v, usePaste as w, UseImeOptions as x, useStdout as y };
232
+ //# sourceMappingURL=index-DqGcW9sz.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-DqGcW9sz.d.mts","names":[],"sources":["../src/composables/useInput.ts","../src/composables/usePaste.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"],"mappings":";;UASiB,GAAA;EACf,OAAA;EACA,SAAA;EACA,SAAA;EACA,UAAA;EACA,QAAA;E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A,iBAGU,aAAA,IAUR,UAAU;;;UChBD,cAAA;EACf,CAAA;EACA,CAAC;AAAA;AAAA,iBAoCa,SAAA;gCAIuB,cAAc;AAAA;;;;;;UC1CpC,mBAAA;;EAEf,QAAA;ENCkB;EMClB,QAAQ;AAAA;AAAA,UAGO,eAAA;EACf,KAAA;EACA,IAAA;EACA,KAAA;EACA,KAAA;AAAA;AAAA,iBAqFc,YAAA,CAAa,OAAA,GAAS,mBAAA,GAA2B,eAAe;;;UChG/D,UAAA;EACf,EAAA;EACA,GAAA;IACE,EAAA;EAAA;AAAA;AAAA,iBAgBY,cAAA,CAAe,IAAA,EAAM,UAAU;EAAK,KAAA;EAAe,MAAA;AAAA;;;UClBlD,UAAA;EACf,KAAA;EACA,MAAA;EACA,IAAA;EACA,GAAA;AAAA;AAAA,UAGe,mBAAA,SAA4B,UAAU;EACrD,WAAW;AAAA;AAAA,KAGD,YAAA,GAAe,UAAU;AAAA,iBAUrB,aAAA,CAAc,GAAA,EAAK,GAAA,CAAI,YAAA,WAAuB,mBAAA;;;;;;iBCrB9C,wBAAA"}
package/dist/index.d.mts CHANGED
@@ -1,136 +1,7 @@
1
- import { $ as FormProps, $t as FrescoInputEvent, A as TableColumn, At as HStack, B as TimerProps, Bt as CompositionEvent, C as Menu, Ct as NewlineProps, D as TreeNode, Dt as CardProps, E as Tree, Et as Card, F as Tooltip, Ft as DividerProps, G as AlertProps, Gt as FrescoAppearance, H as BadgeProps, Ht as FrescoAlignContent, I as TooltipPosition, It as Spacer, J as ProgressBarProps, Jt as FrescoCanonicalStyle, K as AlertType, Kt as FrescoBorderStyle, L as TooltipProps, Lt as Box, M as List, Mt as StackProps, N as ListItem, Nt as VStack, O as TreeProps, Ot as Grid, P as ListProps, Pt as Divider, Q as FormField, Qt as FrescoFlexWrap, R as Timer, Rt as BoxProps, S as TabsProps, St as Newline, T as MenuProps, Tt as TextProps, U as BadgeVariant, Ut as FrescoAlignItems, V as Badge, Vt as FocusEvent, W as Alert, Wt as FrescoAlignSelf, X as SpinnerProps, Xt as FrescoDisplay, Y as Spinner, Yt as FrescoDimension, Z as Form, Zt as FrescoFlexDirection, _ as Breadcrumb, _n as PasteEvent, _t as CodeProps, a as KeyHintProps, an as FrescoRenderNode, at as Checkbox, b as Tab, bt as Static, c as StatusBar, cn as FrescoRootRenderNode, ct as SelectOption, d as Modal, dn as FrescoTextRenderNode, dt as TextAreaProps, en as FrescoInputRenderNode, et as Confirm, f as ModalProps, fn as FrescoTextWrapMode, ft as TextInput, g as StepperProps, gn as MouseEvent, gt as Code, h as Stepper, hn as KeyEventType, ht as LinkProps, i as KeyHint, in as FrescoPosition, it as RadioOption, j as TableProps, jt as Stack, k as Table, kt as GridProps, l as StatusBarItem, ln as FrescoSnakeStyleAliases, lt as SelectProps, m as StepStatus, mn as KeyEvent, mt as Link, n as AvatarProps, nn as FrescoModifiers, nt as RadioGroup, o as Header, on as FrescoRenderNodeKind, ot as CheckboxProps, p as Step, pn as InputEvent, pt as TextInputProps, q as ProgressBar, qt as FrescoBoxRenderNode, r as KeyBinding, rn as FrescoOverflow, rt as RadioGroupProps, s as HeaderProps, sn as FrescoRenderStyle, st as Select, t as Avatar, tn as FrescoJustifyContent, tt as ConfirmProps, u as StatusBarProps, un as FrescoStyle, ut as TextArea, v as BreadcrumbItem, vn as ResizeEvent, vt as Transform, w as MenuItem, wt as Text, x as Tabs, xt as StaticProps, y as BreadcrumbProps, yt as TransformProps, z as TimerMode, zt as createRenderer } from "./index-CQHg8OjC.mjs";
2
- import { A as usePaste, C as UseAppReturn, D as useFocus, E as UseFocusOptions, F as UseInputReturn, I as useInput, L as useKeyPress, M as Key, N as KeyHandler, O as useFocusManager, P as UseInputOptions, S as useIme, T as FocusManager, _ as useStderr, a as DOMElement, b as ImeManager, c as UseAnimationOptions, d as useCursor, f as WindowSize, g as UseStdoutReturn, h as UseStdinReturn, i as useBoxMetrics, j as InputHandler, k as UsePasteOptions, l as useAnimation, m as UseStderrReturn, n as BoxMetrics, o as measureElement, p as useWindowSize, r as UseBoxMetricsResult, s as AnimationResult, t as useIsScreenReaderEnabled, u as CursorPosition, v as useStdin, w as useApp, x as UseImeOptions, y as useStdout } from "./index-Dwx6lKP0.mjs";
3
- import { Component, Ref, VNode } from "@vue/runtime-core";
4
- import { FlexStyleNapi, ImeStateNapi, InputEventNapi, LayoutResultNapi, ModifiersNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi, TerminalInfoNapi as TerminalInfoNapi$1, TerminalOptionsNapi } from "@vizejs/fresco-native";
5
-
6
- //#region src/kittyKeyboard.d.ts
7
- /**
8
- * Kitty keyboard protocol constants compatible with Ink.
9
- */
10
- declare const kittyFlags: {
11
- readonly disambiguateEscapeCodes: 1;
12
- readonly reportEventTypes: 2;
13
- readonly reportAlternateKeys: 4;
14
- readonly reportAllKeysAsEscapeCodes: 8;
15
- readonly reportAssociatedText: 16;
16
- };
17
- type KittyFlagName = keyof typeof kittyFlags;
18
- interface KittyKeyboardOptions {
19
- mode?: "auto" | "enabled" | "disabled";
20
- flags?: KittyFlagName[];
21
- }
22
- declare function resolveKittyFlags(flags: KittyFlagName[]): number;
23
- declare const kittyModifiers: {
24
- readonly shift: 1;
25
- readonly alt: 2;
26
- readonly ctrl: 4;
27
- readonly super: 8;
28
- readonly hyper: 16;
29
- readonly meta: 32;
30
- readonly capsLock: 64;
31
- readonly numLock: 128;
32
- };
33
- //#endregion
34
- //#region src/app.d.ts
35
- declare const lastKeyEvent: Ref<KeyEvent | null>;
36
- declare const lastPasteEvent: Ref<PasteEvent | null>;
37
- declare const lastResizeEvent: Ref<ResizeEvent | null>;
38
- declare const lastMouseEvent: Ref<MouseEvent | null>;
39
- declare const lastFocusEvent: Ref<FocusEvent | null>;
40
- declare const lastCompositionEvent: Ref<CompositionEvent | null>;
41
- /**
42
- * App options
43
- */
44
- interface AppOptions {
45
- /** Enable mouse support */
46
- mouse?: boolean;
47
- /** Exit on Ctrl+C */
48
- exitOnCtrlC?: boolean;
49
- /** Custom error handler */
50
- onError?: (error: Error) => void;
51
- /** Debug mode - logs render tree */
52
- debug?: boolean;
53
- /** Ink-compatible option, accepted for API parity */
54
- stdout?: NodeJS.WriteStream;
55
- /** Ink-compatible option, accepted for API parity */
56
- stdin?: NodeJS.ReadStream;
57
- /** Ink-compatible option, accepted for API parity */
58
- stderr?: NodeJS.WriteStream;
59
- /** Ink-compatible option, accepted for API parity */
60
- patchConsole?: boolean;
61
- /** Called after a frame is rendered */
62
- onRender?: (metrics: RenderMetrics) => void;
63
- /** Enable screen reader rendering hints */
64
- isScreenReaderEnabled?: boolean;
65
- /** Maximum render frames per second */
66
- maxFps?: number;
67
- /** Use alternate screen buffer */
68
- alternateScreen?: boolean;
69
- /** Ink-compatible option, accepted for API parity */
70
- incrementalRendering?: boolean;
71
- /** Ink-compatible option, accepted for API parity */
72
- concurrent?: boolean;
73
- /** Override interactive mode detection */
74
- interactive?: boolean;
75
- /** Configure Kitty keyboard protocol support */
76
- kittyKeyboard?: KittyKeyboardOptions;
77
- }
78
- type RenderOptions = AppOptions;
79
- type AppRoot = Component | VNode;
80
- /**
81
- * Performance metrics for a render operation.
82
- */
83
- interface RenderMetrics {
84
- /** Time spent rendering in milliseconds */
85
- renderTime: number;
86
- }
87
- /**
88
- * Fresco App instance
89
- */
90
- interface App {
91
- /** Mount the app */
92
- mount(): Promise<void>;
93
- /** Unmount the app */
94
- unmount(errorOrResult?: unknown): Promise<void>;
95
- /** Wait for exit */
96
- waitUntilExit(): Promise<unknown>;
97
- /** Wait for pending render output */
98
- waitUntilRenderFlush(): Promise<void>;
99
- /** Render the app */
100
- render(): void;
101
- /** Clear the screen */
102
- clear(): void;
103
- /** Get terminal info */
104
- getTerminalInfo(): Promise<TerminalInfoNapi$1>;
105
- }
106
- interface RenderInstance {
107
- rerender(root: AppRoot): void;
108
- unmount(errorOrResult?: unknown): Promise<void>;
109
- waitUntilExit(): Promise<unknown>;
110
- waitUntilRenderFlush(): Promise<void>;
111
- cleanup(): Promise<void>;
112
- clear(): void;
113
- }
114
- type Instance = RenderInstance;
115
- interface RenderToStringOptions {
116
- /** Width of the virtual terminal in columns */
117
- columns?: number;
118
- }
119
- interface WritableStreamLike {
120
- write(...args: unknown[]): unknown;
121
- }
122
- /**
123
- * Create a Fresco TUI app
124
- */
125
- declare function createApp(rootComponent: AppRoot, options?: AppOptions): App;
126
- /**
127
- * Ink-compatible helper that mounts immediately.
128
- */
129
- declare function render(root: AppRoot, options?: AppOptions | WritableStreamLike): RenderInstance;
130
- /**
131
- * Render a Fresco component to a plain string without starting a terminal app.
132
- */
133
- declare function renderToString(root: AppRoot, options?: RenderToStringOptions): string;
134
- //#endregion
135
- export { Alert, AlertProps, AlertType, AnimationResult, type App, type AppOptions, Avatar, AvatarProps, Badge, BadgeProps, BadgeVariant, Box, BoxMetrics, BoxProps, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Card, CardProps, Checkbox, CheckboxProps, Code, CodeProps, type CompositionEvent, Confirm, ConfirmProps, CursorPosition, type DOMElement, Divider, DividerProps, type FlexStyleNapi, type FocusEvent, FocusManager, Form, FormField, FormProps, type FrescoAlignContent, type FrescoAlignItems, type FrescoAlignSelf, type FrescoAppearance, type FrescoBorderStyle, type FrescoBoxRenderNode, type FrescoCanonicalStyle, type FrescoDimension, type FrescoDisplay, type FrescoFlexDirection, type FrescoFlexWrap, type FrescoInputEvent, type FrescoInputRenderNode, type FrescoJustifyContent, type FrescoModifiers, type FrescoOverflow, type FrescoPosition, type FrescoRenderNode, type FrescoRenderNodeKind, type FrescoRenderStyle, type FrescoRootRenderNode, type FrescoSnakeStyleAliases, type FrescoStyle, type FrescoTextRenderNode, type FrescoTextWrapMode, Grid, GridProps, HStack, Header, HeaderProps, ImeManager, type ImeStateNapi, type InputEvent, type InputEventNapi, InputHandler, type Instance, Key, KeyBinding, type KeyEvent, type KeyEventType, KeyHandler, KeyHint, KeyHintProps, type KittyFlagName, type KittyKeyboardOptions, type LayoutResultNapi, Link, LinkProps, List, ListItem, ListProps, Menu, MenuItem, MenuProps, Modal, ModalProps, type ModifiersNapi, type MouseEvent, Newline, NewlineProps, type PasteEvent, ProgressBar, ProgressBarProps, RadioGroup, RadioGroupProps, RadioOption, type RenderInstance, type RenderMetrics, type RenderNodeNapi, type RenderOptions, type RenderToStringOptions, type ResizeEvent, Select, SelectOption, SelectProps, Spacer, Spinner, SpinnerProps, Stack, StackProps, Static, StaticProps, StatusBar, StatusBarItem, StatusBarProps, Step, StepStatus, Stepper, StepperProps, type StyleNapi, Tab, Table, TableColumn, TableProps, Tabs, TabsProps, type TerminalInfoNapi, type TerminalOptionsNapi, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Timer, TimerMode, TimerProps, Tooltip, TooltipPosition, TooltipProps, Transform, TransformProps, Tree, TreeNode, TreeProps, UseAnimationOptions, UseAppReturn, UseBoxMetricsResult, UseFocusOptions, UseImeOptions, UseInputOptions, UseInputReturn, UsePasteOptions, UseStderrReturn, UseStdinReturn, UseStdoutReturn, VStack, WindowSize, createApp, createRenderer, kittyFlags, kittyModifiers, lastCompositionEvent, lastFocusEvent, lastKeyEvent, lastMouseEvent, lastPasteEvent, lastResizeEvent, measureElement, render, renderToString, resolveKittyFlags, useAnimation, useApp, useBoxMetrics, useCursor, useFocus, useFocusManager, useIme, useInput, useIsScreenReaderEnabled, useKeyPress, usePaste, useStderr, useStdin, useStdout, useWindowSize };
136
- //# sourceMappingURL=index.d.mts.map
1
+ import { A as FrescoTextWrapMode, C as FrescoRenderNode, D as FrescoSnakeStyleAliases, E as FrescoRootRenderNode, F as PasteEvent, I as ResizeEvent, M as KeyEvent, N as KeyEventType, O as FrescoStyle, P as MouseEvent, S as FrescoPosition, T as FrescoRenderStyle, _ as FrescoInputEvent, a as FocusEvent, b as FrescoModifiers, c as FrescoAlignSelf, d as FrescoBoxRenderNode, f as FrescoCanonicalStyle, g as FrescoFlexWrap, h as FrescoFlexDirection, i as CompositionEvent, j as InputEvent, k as FrescoTextRenderNode, l as FrescoAppearance, m as FrescoDisplay, o as FrescoAlignContent, p as FrescoDimension, r as createRenderer, s as FrescoAlignItems, u as FrescoBorderStyle, v as FrescoInputRenderNode, w as FrescoRenderNodeKind, x as FrescoOverflow, y as FrescoJustifyContent } from "./renderer-DWG0G3g8.mjs";
2
+ import { $ as FormProps, A as TableColumn, At as HStack, B as TimerProps, C as Menu, Ct as NewlineProps, D as TreeNode, Dt as CardProps, E as Tree, Et as Card, F as Tooltip, Ft as DividerProps, G as AlertProps, H as BadgeProps, I as TooltipPosition, It as Spacer, J as ProgressBarProps, K as AlertType, L as TooltipProps, Lt as Box, M as List, Mt as StackProps, N as ListItem, Nt as VStack, O as TreeProps, Ot as Grid, P as ListProps, Pt as Divider, Q as FormField, R as Timer, Rt as BoxProps, S as TabsProps, St as Newline, T as MenuProps, Tt as TextProps, U as BadgeVariant, V as Badge, W as Alert, X as SpinnerProps, Y as Spinner, Z as Form, _ as Breadcrumb, _t as CodeProps, a as KeyHintProps, at as Checkbox, b as Tab, bt as Static, c as StatusBar, ct as SelectOption, d as Modal, dt as TextAreaProps, et as Confirm, f as ModalProps, ft as TextInput, g as StepperProps, gt as Code, h as Stepper, ht as LinkProps, i as KeyHint, it as RadioOption, j as TableProps, jt as Stack, k as Table, kt as GridProps, l as StatusBarItem, lt as SelectProps, m as StepStatus, mt as Link, n as AvatarProps, nt as RadioGroup, o as Header, ot as CheckboxProps, p as Step, pt as TextInputProps, q as ProgressBar, r as KeyBinding, rt as RadioGroupProps, s as HeaderProps, st as Select, t as Avatar, tt as ConfirmProps, u as StatusBarProps, ut as TextArea, v as BreadcrumbItem, vt as Transform, w as MenuItem, wt as Text, x as Tabs, xt as StaticProps, y as BreadcrumbProps, yt as TransformProps, z as TimerMode } from "./index-D2kUje57.mjs";
3
+ import { A as useInput, C as UsePasteOptions, D as KeyHandler, E as Key, O as UseInputOptions, S as useIme, T as InputHandler, _ as useStderr, a as DOMElement, b as ImeManager, c as UseAnimationOptions, d as useCursor, f as WindowSize, g as UseStdoutReturn, h as UseStdinReturn, i as useBoxMetrics, j as useKeyPress, k as UseInputReturn, l as useAnimation, m as UseStderrReturn, n as BoxMetrics, o as measureElement, p as useWindowSize, r as UseBoxMetricsResult, s as AnimationResult, t as useIsScreenReaderEnabled, u as CursorPosition, v as useStdin, w as usePaste, x as UseImeOptions, y as useStdout } from "./index-DqGcW9sz.mjs";
4
+ import { a as useFocus, i as UseFocusOptions, n as useApp, o as useFocusManager, r as FocusManager, t as UseAppReturn } from "./useApp-CNjer3hJ.mjs";
5
+ 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-DJImCkSW.mjs";
6
+ import { FlexStyleNapi, ImeStateNapi, InputEventNapi, LayoutResultNapi, ModifiersNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi, TerminalOptionsNapi } from "@vizejs/fresco-native";
7
+ export { Alert, type AlertProps, type AlertType, type AnimationResult, type App, type AppOptions, Avatar, type AvatarProps, Badge, type BadgeProps, type BadgeVariant, Box, type BoxMetrics, type BoxProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Card, type CardProps, Checkbox, type CheckboxProps, Code, type CodeProps, type CompositionEvent, Confirm, type ConfirmProps, type CursorPosition, type DOMElement, Divider, type DividerProps, type FlexStyleNapi, type FocusEvent, type FocusManager, Form, type FormField, type FormProps, type FrescoAlignContent, type FrescoAlignItems, type FrescoAlignSelf, type FrescoAppearance, type FrescoBorderStyle, type FrescoBoxRenderNode, type FrescoCanonicalStyle, type FrescoDimension, type FrescoDisplay, type FrescoFlexDirection, type FrescoFlexWrap, type FrescoInputEvent, type FrescoInputRenderNode, type FrescoJustifyContent, type FrescoModifiers, type FrescoOverflow, type FrescoPosition, type FrescoRenderNode, type FrescoRenderNodeKind, type FrescoRenderStyle, type FrescoRootRenderNode, type FrescoSnakeStyleAliases, type FrescoStyle, type FrescoTextRenderNode, type FrescoTextWrapMode, Grid, type GridProps, HStack, 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 KittyFlagName, type KittyKeyboardOptions, type LayoutResultNapi, Link, type LinkProps, List, type ListItem, type ListProps, Menu, type MenuItem, type MenuProps, Modal, type ModalProps, type ModifiersNapi, type MouseEvent, 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, Select, type SelectOption, type SelectProps, Spacer, Spinner, type SpinnerProps, Stack, type StackProps, Static, type StaticProps, StatusBar, type StatusBarItem, type StatusBarProps, type Step, type StepStatus, Stepper, type StepperProps, type StyleNapi, type Tab, Table, type TableColumn, type TableProps, Tabs, type TabsProps, type TerminalInfoNapi, type TerminalOptionsNapi, Text, TextArea, type TextAreaProps, TextInput, type TextInputProps, type TextProps, Timer, type TimerMode, type TimerProps, Tooltip, type TooltipPosition, type TooltipProps, Transform, type TransformProps, Tree, type TreeNode, type TreeProps, type UseAnimationOptions, type UseAppReturn, type UseBoxMetricsResult, type UseFocusOptions, type UseImeOptions, type UseInputOptions, type UseInputReturn, type UsePasteOptions, type UseStderrReturn, type UseStdinReturn, type UseStdoutReturn, VStack, type WindowSize, createApp, createRenderer, kittyFlags, kittyModifiers, lastCompositionEvent, lastFocusEvent, lastKeyEvent, lastMouseEvent, lastPasteEvent, lastResizeEvent, measureElement, render, renderToString, resolveKittyFlags, useAnimation, useApp, useBoxMetrics, useCursor, useFocus, useFocusManager, useIme, useInput, useIsScreenReaderEnabled, useKeyPress, usePaste, useStderr, useStdin, useStdout, useWindowSize };
package/dist/index.mjs CHANGED
@@ -1,6 +1,7 @@
1
- import { C as useFocusManager, S as useFocus, a as createApp, b as useStdin, c as lastKeyEvent, d as lastResizeEvent, f as render, g as measureElement, i as useIsScreenReaderEnabled, l as lastMouseEvent, m as createRenderer, n as useKeyPress, o as lastCompositionEvent, p as renderToString, r as usePaste, s as lastFocusEvent, t as useInput, u as lastPasteEvent, v as useCursor, w as useApp, x as useStdout, y as useStderr } from "./useInput-iUuaOefz.mjs";
2
- import { A as Newline, C as Select, D as Code, E as Link, F as Stack, I as VStack, L as Divider, M as Card, N as Grid, O as Transform, P as HStack, R as Spacer, S as Checkbox, T as TextInput, _ as ProgressBar, a as Modal, b as Confirm, c as Tabs, d as Table, f as List, g as Alert, h as Badge, i as StatusBar, j as Text, k as Static, l as Menu, m as Timer, n as KeyHint, o as Stepper, p as Tooltip, r as Header, s as Breadcrumb, t as Avatar, u as Tree, v as Spinner, w as TextArea, x as RadioGroup, y as Form, z as Box } from "./components-rzllq5gt.mjs";
3
- import { i as useIme, n as useAnimation, r as useWindowSize, t as useBoxMetrics } from "./composables-Dh8YqmVY.mjs";
1
+ import { E as useFocusManager, T as useFocus, a as lastMouseEvent, b as useStdin, c as render, f as measureElement, g as useCursor, i as lastKeyEvent, k as useApp, l as renderToString, n as lastCompositionEvent, o as lastPasteEvent, r as lastFocusEvent, s as lastResizeEvent, t as createApp, u as createRenderer, x as useStdout, y as useStderr } from "./app-D_Ke7C8w.mjs";
2
+ import { i as useIsScreenReaderEnabled, n as useKeyPress, r as usePaste, t as useInput } from "./useInput-BpH-JIU3.mjs";
3
+ import { A as Newline, C as Select, D as Code, E as Link, F as Stack, I as VStack, L as Divider, M as Card, N as Grid, O as Transform, P as HStack, R as Spacer, S as Checkbox, T as TextInput, _ as ProgressBar, a as Modal, b as Confirm, c as Tabs, d as Table, f as List, g as Alert, h as Badge, i as StatusBar, j as Text, k as Static, l as Menu, m as Timer, n as KeyHint, o as Stepper, p as Tooltip, r as Header, s as Breadcrumb, t as Avatar, u as Tree, v as Spinner, w as TextArea, x as RadioGroup, y as Form, z as Box } from "./components-3-vKPu1z.mjs";
4
+ import { i as useIme, n as useAnimation, r as useWindowSize, t as useBoxMetrics } from "./composables-Da3c5pxz.mjs";
4
5
  //#region src/kittyKeyboard.ts
5
6
  /**
6
7
  * Kitty keyboard protocol constants compatible with Ink.
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/kittyKeyboard.ts"],"sourcesContent":["/**\n * Kitty keyboard protocol constants compatible with Ink.\n */\n\nexport const kittyFlags = {\n disambiguateEscapeCodes: 1,\n reportEventTypes: 2,\n reportAlternateKeys: 4,\n reportAllKeysAsEscapeCodes: 8,\n reportAssociatedText: 16,\n} as const;\n\nexport type KittyFlagName = keyof typeof kittyFlags;\n\nexport interface KittyKeyboardOptions {\n mode?: \"auto\" | \"enabled\" | \"disabled\";\n flags?: KittyFlagName[];\n}\n\nexport function resolveKittyFlags(flags: KittyFlagName[]): number {\n return flags.reduce((bits, flag) => bits | kittyFlags[flag], 0);\n}\n\nexport const kittyModifiers = {\n shift: 1,\n alt: 2,\n ctrl: 4,\n super: 8,\n hyper: 16,\n meta: 32,\n capsLock: 64,\n numLock: 128,\n} as const;\n"],"mappings":";;;;;;;AAIA,MAAa,aAAa;CACxB,yBAAyB;CACzB,kBAAkB;CAClB,qBAAqB;CACrB,4BAA4B;CAC5B,sBAAsB;CACvB;AASD,SAAgB,kBAAkB,OAAgC;CAChE,OAAO,MAAM,QAAQ,MAAM,SAAS,OAAO,WAAW,OAAO,EAAE;;AAGjE,MAAa,iBAAiB;CAC5B,OAAO;CACP,KAAK;CACL,MAAM;CACN,OAAO;CACP,OAAO;CACP,MAAM;CACN,UAAU;CACV,SAAS;CACV"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/kittyKeyboard.ts"],"sourcesContent":["/**\n * Kitty keyboard protocol constants compatible with Ink.\n */\n\nexport const kittyFlags = {\n disambiguateEscapeCodes: 1,\n reportEventTypes: 2,\n reportAlternateKeys: 4,\n reportAllKeysAsEscapeCodes: 8,\n reportAssociatedText: 16,\n} as const;\n\nexport type KittyFlagName = keyof typeof kittyFlags;\n\nexport interface KittyKeyboardOptions {\n mode?: \"auto\" | \"enabled\" | \"disabled\";\n flags?: KittyFlagName[];\n}\n\nexport function resolveKittyFlags(flags: KittyFlagName[]): number {\n return flags.reduce((bits, flag) => bits | kittyFlags[flag], 0);\n}\n\nexport const kittyModifiers = {\n shift: 1,\n alt: 2,\n ctrl: 4,\n super: 8,\n hyper: 16,\n meta: 32,\n capsLock: 64,\n numLock: 128,\n} as const;\n"],"mappings":";;;;;;;;AAIA,MAAa,aAAa;CACxB,yBAAyB;CACzB,kBAAkB;CAClB,qBAAqB;CACrB,4BAA4B;CAC5B,sBAAsB;AACxB;AASA,SAAgB,kBAAkB,OAAgC;CAChE,OAAO,MAAM,QAAQ,MAAM,SAAS,OAAO,WAAW,OAAO,CAAC;AAChE;AAEA,MAAa,iBAAiB;CAC5B,OAAO;CACP,KAAK;CACL,MAAM;CACN,OAAO;CACP,OAAO;CACP,MAAM;CACN,UAAU;CACV,SAAS;AACX"}
@@ -0,0 +1,198 @@
1
+ import { RendererElement, RendererNode } from "@vue/runtime-core";
2
+
3
+ //#region src/protocol.d.ts
4
+ /** Public JavaScript protocol shared by Fresco components and the renderer. */
5
+ type FrescoRenderNodeKind = "root" | "box" | "text" | "input";
6
+ type FrescoDimension = number | string;
7
+ type FrescoDisplay = "flex" | "none";
8
+ type FrescoPosition = "absolute" | "relative" | "static";
9
+ type FrescoOverflow = "visible" | "hidden" | "scroll";
10
+ type FrescoFlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
11
+ type FrescoFlexWrap = "nowrap" | "wrap" | "wrap-reverse";
12
+ type FrescoJustifyContent = "flex-start" | "flex-end" | "start" | "end" | "center" | "space-between" | "space-around" | "space-evenly";
13
+ type FrescoAlignItems = "flex-start" | "flex-end" | "start" | "end" | "center" | "stretch" | "baseline";
14
+ type FrescoAlignSelf = "auto" | FrescoAlignItems;
15
+ type FrescoAlignContent = "flex-start" | "flex-end" | "start" | "end" | "center" | "stretch" | "space-between" | "space-around" | "space-evenly";
16
+ /** Canonical camelCase style fields. Components accept number or string dimensions. */
17
+ interface FrescoCanonicalStyle<Dimension extends FrescoDimension = FrescoDimension> {
18
+ display?: FrescoDisplay;
19
+ position?: FrescoPosition;
20
+ top?: Dimension;
21
+ right?: Dimension;
22
+ bottom?: Dimension;
23
+ left?: Dimension;
24
+ overflow?: FrescoOverflow;
25
+ overflowX?: FrescoOverflow;
26
+ overflowY?: FrescoOverflow;
27
+ flexDirection?: FrescoFlexDirection;
28
+ flexWrap?: FrescoFlexWrap;
29
+ justifyContent?: FrescoJustifyContent;
30
+ alignItems?: FrescoAlignItems;
31
+ alignSelf?: FrescoAlignSelf;
32
+ alignContent?: FrescoAlignContent;
33
+ flexGrow?: number;
34
+ flexShrink?: number;
35
+ flexBasis?: Dimension;
36
+ width?: Dimension;
37
+ height?: Dimension;
38
+ minWidth?: Dimension;
39
+ minHeight?: Dimension;
40
+ maxWidth?: Dimension;
41
+ maxHeight?: Dimension;
42
+ aspectRatio?: number;
43
+ padding?: number;
44
+ paddingTop?: number;
45
+ paddingRight?: number;
46
+ paddingBottom?: number;
47
+ paddingLeft?: number;
48
+ margin?: number;
49
+ marginTop?: number;
50
+ marginRight?: number;
51
+ marginBottom?: number;
52
+ marginLeft?: number;
53
+ gap?: number;
54
+ columnGap?: number;
55
+ rowGap?: number;
56
+ }
57
+ /** Compatibility aliases accepted by intrinsic host-node style bags. */
58
+ interface FrescoSnakeStyleAliases<Dimension extends FrescoDimension = FrescoDimension> {
59
+ overflow_x?: FrescoOverflow;
60
+ overflow_y?: FrescoOverflow;
61
+ flex_direction?: FrescoFlexDirection;
62
+ flex_wrap?: FrescoFlexWrap;
63
+ justify_content?: FrescoJustifyContent;
64
+ align_items?: FrescoAlignItems;
65
+ align_self?: FrescoAlignSelf;
66
+ align_content?: FrescoAlignContent;
67
+ flex_grow?: number;
68
+ flex_shrink?: number;
69
+ flex_basis?: Dimension;
70
+ min_width?: Dimension;
71
+ min_height?: Dimension;
72
+ max_width?: Dimension;
73
+ max_height?: Dimension;
74
+ aspect_ratio?: number;
75
+ padding_top?: number;
76
+ padding_right?: number;
77
+ padding_bottom?: number;
78
+ padding_left?: number;
79
+ margin_top?: number;
80
+ margin_right?: number;
81
+ margin_bottom?: number;
82
+ margin_left?: number;
83
+ column_gap?: number;
84
+ row_gap?: number;
85
+ }
86
+ type FrescoStyle<Dimension extends FrescoDimension = FrescoDimension> = FrescoCanonicalStyle<Dimension> & FrescoSnakeStyleAliases<Dimension>;
87
+ /** Canonical style emitted to the native renderer. Dimensions are normalized to strings. */
88
+ type FrescoRenderStyle = FrescoCanonicalStyle<string>;
89
+ interface FrescoAppearance {
90
+ fg?: string;
91
+ bg?: string;
92
+ bold?: boolean;
93
+ dim?: boolean;
94
+ italic?: boolean;
95
+ underline?: boolean;
96
+ inverse?: boolean;
97
+ blink?: boolean;
98
+ hidden?: boolean;
99
+ strikethrough?: boolean;
100
+ }
101
+ type FrescoBorderStyle = "none" | "single" | "double" | "rounded" | "heavy" | "dashed";
102
+ type FrescoTextWrapMode = "none" | "wrap" | "hard" | "truncate" | "truncate-start" | "truncate-middle" | "truncate-end";
103
+ interface FrescoRenderNodeBase {
104
+ id: number;
105
+ style?: FrescoRenderStyle;
106
+ appearance?: FrescoAppearance;
107
+ border?: FrescoBorderStyle;
108
+ children?: number[];
109
+ }
110
+ interface FrescoRootRenderNode extends FrescoRenderNodeBase {
111
+ nodeType: "root";
112
+ }
113
+ interface FrescoBoxRenderNode extends FrescoRenderNodeBase {
114
+ nodeType: "box";
115
+ }
116
+ interface FrescoTextRenderNode extends FrescoRenderNodeBase {
117
+ nodeType: "text";
118
+ text?: string;
119
+ wrap?: boolean;
120
+ wrapMode?: FrescoTextWrapMode;
121
+ }
122
+ interface FrescoInputRenderNode extends FrescoRenderNodeBase {
123
+ nodeType: "input";
124
+ value?: string;
125
+ placeholder?: string;
126
+ focused?: boolean;
127
+ cursor?: number;
128
+ mask?: boolean;
129
+ maskChar?: string;
130
+ }
131
+ type UnionKeys<Union> = Union extends Union ? keyof Union : never;
132
+ type StrictUnionHelper<Member, Union> = Member extends Member ? Member & Partial<Record<Exclude<UnionKeys<Union>, keyof Member>, never>> : never;
133
+ type StrictUnion<Union> = StrictUnionHelper<Union, Union>;
134
+ type FrescoRenderNode = StrictUnion<FrescoRootRenderNode | FrescoBoxRenderNode | FrescoTextRenderNode | FrescoInputRenderNode>;
135
+ type KeyEventType = "press" | "repeat" | "release";
136
+ interface FrescoModifiers {
137
+ ctrl: boolean;
138
+ alt: boolean;
139
+ shift: boolean;
140
+ meta: boolean;
141
+ super: boolean;
142
+ hyper: boolean;
143
+ capsLock: boolean;
144
+ numLock: boolean;
145
+ }
146
+ interface KeyEvent extends FrescoModifiers {
147
+ type: "key";
148
+ key?: string;
149
+ char?: string;
150
+ eventType?: KeyEventType;
151
+ }
152
+ interface PasteEvent {
153
+ type: "paste";
154
+ text: string;
155
+ }
156
+ interface ResizeEvent {
157
+ type: "resize";
158
+ width: number;
159
+ height: number;
160
+ }
161
+ interface MouseEvent {
162
+ type: "mouse";
163
+ button?: string;
164
+ x: number;
165
+ y: number;
166
+ }
167
+ interface FocusEvent {
168
+ type: "focus";
169
+ focused: boolean;
170
+ }
171
+ interface CompositionEvent {
172
+ type: "compositionstart" | "compositionupdate" | "compositionend";
173
+ text: string;
174
+ cursor: number;
175
+ }
176
+ type FrescoInputEvent = StrictUnion<KeyEvent | PasteEvent | ResizeEvent | MouseEvent | FocusEvent | CompositionEvent>;
177
+ /** Compatibility alias for the pre-protocol event union name. */
178
+ type InputEvent = FrescoInputEvent;
179
+ //#endregion
180
+ //#region src/renderer.d.ts
181
+ /** @internal Mutable Vue host node; not part of the public render protocol. */
182
+ interface FrescoNode extends RendererNode {
183
+ id: number;
184
+ type: FrescoRenderNodeKind;
185
+ props: Record<string, unknown>;
186
+ children: FrescoNode[];
187
+ parent: FrescoNode | null;
188
+ text?: string;
189
+ }
190
+ /** @internal Mutable Vue host element; not part of the public render protocol. */
191
+ interface FrescoElement extends FrescoNode, RendererElement {}
192
+ /**
193
+ * Create the Fresco renderer
194
+ */
195
+ declare function createRenderer$1(): import("@vue/runtime-core").Renderer<FrescoElement>;
196
+ //#endregion
197
+ export { FrescoTextWrapMode as A, FrescoRenderNode as C, FrescoSnakeStyleAliases as D, FrescoRootRenderNode as E, PasteEvent as F, ResizeEvent as I, KeyEvent as M, KeyEventType as N, FrescoStyle as O, MouseEvent as P, FrescoPosition as S, FrescoRenderStyle as T, FrescoInputEvent as _, FocusEvent as a, FrescoModifiers as b, FrescoAlignSelf as c, FrescoBoxRenderNode as d, FrescoCanonicalStyle as f, FrescoFlexWrap as g, FrescoFlexDirection as h, CompositionEvent as i, InputEvent as j, FrescoTextRenderNode as k, FrescoAppearance as l, FrescoDisplay as m, FrescoNode as n, FrescoAlignContent as o, FrescoDimension as p, createRenderer$1 as r, FrescoAlignItems as s, FrescoElement as t, FrescoBorderStyle as u, FrescoInputRenderNode as v, FrescoRenderNodeKind as w, FrescoOverflow as x, FrescoJustifyContent as y };
198
+ //# sourceMappingURL=renderer-DWG0G3g8.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"renderer-DWG0G3g8.d.mts","names":[],"sources":["../src/protocol.ts","../src/renderer.ts"],"mappings":";;;;KAEY,oBAAA;AAAA,KACA,eAAA;AAAA,KACA,aAAA;AAAA,KACA,cAAA;AAAA,KACA,cAAA;AAAA,KACA,mBAAA;AAAA,KACA,cAAA;AAAA,KACA,oBAAA;AAAA,KASA,gBAAA;AAAA,KAQA,eAAA,YAA2B,gBAAgB;AAAA,KAC3C,kBAAA;AAxBe;AAAA,UAoCV,oBAAA,mBAAuC,eAAA,GAAkB,eAAA;EACxE,OAAA,GAAU,aAAA;EACV,QAAA,GAAW,cAAA;EACX,GAA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