@vizejs/fresco 0.100.0 → 0.103.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/components/index.d.mts +2 -2
- package/dist/components/index.mjs +2 -2
- package/dist/{components-B5VXjX9s.mjs → components-BFV7PBp6.mjs} +399 -66
- package/dist/components-BFV7PBp6.mjs.map +1 -0
- package/dist/composables/index.d.mts +2 -2
- package/dist/composables/index.mjs +3 -3
- package/dist/composables-BKj30tnc.mjs +318 -0
- package/dist/composables-BKj30tnc.mjs.map +1 -0
- package/dist/index-43FxHkwF.d.mts +316 -0
- package/dist/index-43FxHkwF.d.mts.map +1 -0
- package/dist/{index-D0wpImTF.d.mts → index-BPjzljOc.d.mts} +361 -63
- package/dist/index-BPjzljOc.d.mts.map +1 -0
- package/dist/index.d.mts +129 -26
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +31 -4
- package/dist/index.mjs.map +1 -0
- package/dist/useInput-DrlvpGkS.mjs +1463 -0
- package/dist/useInput-DrlvpGkS.mjs.map +1 -0
- package/package.json +5 -2
- package/dist/components-B5VXjX9s.mjs.map +0 -1
- package/dist/composables-ThPaZc16.mjs +0 -194
- package/dist/composables-ThPaZc16.mjs.map +0 -1
- package/dist/index-BeImxraZ.d.mts +0 -142
- package/dist/index-BeImxraZ.d.mts.map +0 -1
- package/dist/index-D0wpImTF.d.mts.map +0 -1
- package/dist/useInput-CbggNZUF.mjs +0 -351
- package/dist/useInput-CbggNZUF.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BPjzljOc.d.mts","names":[],"sources":["../src/renderer.ts","../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":";;;AAeA;;;AAAA,UAAiB,UAAA,SAAmB,YAAA;EAClC,EAAA;EACA,IAAA;EACA,KAAA,EAAO,MAAA;EACP,QAAA,EAAU,UAAA;EACV,MAAA,EAAQ,UAAA;EACR,IAAA;AAAA;;;;UAMe,aAAA,SAAsB,UAAA,EAAY,eAAA;;;;iBA2GnC,gBAAA,CAAA,GAAc,oBAAA,CAAA,QAAA,CAAA,aAAA;;;KC3HlB,QAAA;AAAA,KAoBA,SAAA,GAAY,OAAA,CACtB,MAAA;;;KCxBU,cAAA;AAAA,KACA,eAAA;AAAA,UAUK,QAAA;EFDR;EEGP,OAAA;EFDQ;EEGR,QAAA;EACA,GAAA,GAAM,cAAA;EACN,KAAA,GAAQ,cAAA;EACR,MAAA,GAAS,cAAA;EACT,IAAA,GAAO,cAAA;EFVP;EEYA,aAAA;EFXO;EEaP,QAAA;EFZU;EEcV,cAAA;EFbQ;EEqBR,UAAA;EFpBI;EEsBJ,SAAA;EFhBe;EEkBf,YAAA;;EASA,QAAA;EF3BgE;EE6BhE,UAAA;EF8E4B;EE5E5B,SAAA,GAAY,cAAA;EF4EgB;EE1E5B,KAAA,GAAQ,cAAA;;EAER,MAAA,GAAS,cAAA;;EAET,QAAA,GAAW,cAAA;EDrDO;ECuDlB,SAAA,GAAY,cAAA;EDvDM;ECyDlB,QAAA,GAAW,cAAA;EDrCD;ECuCV,SAAA,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UAIC,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;qCARF,oBAAA,CAAA,YAAA;;;;UAIC,QAAA,CAAS,UAAA;;;;UAIR,QAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;UC5BL,WAAA;EtCSA;EsCPf,IAAA;;EAEA,QAAA;EtCSU;EsCPV,IAAA;EtCGkC;EsCDlC,EAAA;EtCC8C;EsCC9C,EAAA;EtCAA;EsCEA,MAAA;EtCAA;EsCEA,MAAA;AAAA;AAAA,cAiBW,MAAA,uBAAM,eAAA,CAsBW,oBAAA,CAtBX,gBAAA;;;;UAMG,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA,qCAtBZ,oBAAA,CAAA,YAAA;;+JAsBW,oBAAA,CAAA,gBAAA;;;;UAhBR,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,38 @@
|
|
|
1
|
-
import { $ as FormProps, A as TableColumn, At as
|
|
2
|
-
import { a as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { FlexStyleNapi, ImeStateNapi, InputEventNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi } from "@vizejs/fresco-native";
|
|
1
|
+
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, zt as createRenderer } from "./index-BPjzljOc.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-43FxHkwF.mjs";
|
|
3
|
+
import { Component, Ref, VNode } from "@vue/runtime-core";
|
|
4
|
+
import { FlexStyleNapi, ImeStateNapi, InputEventNapi, LayoutResultNapi, ModifiersNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi, TerminalOptionsNapi } from "@vizejs/fresco-native";
|
|
6
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
|
|
7
34
|
//#region src/app.d.ts
|
|
35
|
+
type KeyEventType = "press" | "repeat" | "release";
|
|
8
36
|
interface KeyEvent {
|
|
9
37
|
type: "key";
|
|
10
38
|
key?: string;
|
|
@@ -12,8 +40,43 @@ interface KeyEvent {
|
|
|
12
40
|
ctrl: boolean;
|
|
13
41
|
alt: boolean;
|
|
14
42
|
shift: boolean;
|
|
43
|
+
meta: boolean;
|
|
44
|
+
super: boolean;
|
|
45
|
+
hyper: boolean;
|
|
46
|
+
capsLock: boolean;
|
|
47
|
+
numLock: boolean;
|
|
48
|
+
eventType?: KeyEventType;
|
|
49
|
+
}
|
|
50
|
+
interface PasteEvent {
|
|
51
|
+
type: "paste";
|
|
52
|
+
text: string;
|
|
53
|
+
}
|
|
54
|
+
interface ResizeEvent {
|
|
55
|
+
type: "resize";
|
|
56
|
+
width: number;
|
|
57
|
+
height: number;
|
|
58
|
+
}
|
|
59
|
+
interface MouseEvent {
|
|
60
|
+
type: "mouse";
|
|
61
|
+
button?: string;
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
}
|
|
65
|
+
interface FocusEvent {
|
|
66
|
+
type: "focus";
|
|
67
|
+
focused: boolean;
|
|
68
|
+
}
|
|
69
|
+
interface CompositionEvent {
|
|
70
|
+
type: "compositionstart" | "compositionupdate" | "compositionend";
|
|
71
|
+
text: string;
|
|
72
|
+
cursor: number;
|
|
15
73
|
}
|
|
16
74
|
declare const lastKeyEvent: Ref<KeyEvent | null>;
|
|
75
|
+
declare const lastPasteEvent: Ref<PasteEvent | null>;
|
|
76
|
+
declare const lastResizeEvent: Ref<ResizeEvent | null>;
|
|
77
|
+
declare const lastMouseEvent: Ref<MouseEvent | null>;
|
|
78
|
+
declare const lastFocusEvent: Ref<FocusEvent | null>;
|
|
79
|
+
declare const lastCompositionEvent: Ref<CompositionEvent | null>;
|
|
17
80
|
/**
|
|
18
81
|
* App options
|
|
19
82
|
*/
|
|
@@ -26,6 +89,39 @@ interface AppOptions {
|
|
|
26
89
|
onError?: (error: Error) => void;
|
|
27
90
|
/** Debug mode - logs render tree */
|
|
28
91
|
debug?: boolean;
|
|
92
|
+
/** Ink-compatible option, accepted for API parity */
|
|
93
|
+
stdout?: NodeJS.WriteStream;
|
|
94
|
+
/** Ink-compatible option, accepted for API parity */
|
|
95
|
+
stdin?: NodeJS.ReadStream;
|
|
96
|
+
/** Ink-compatible option, accepted for API parity */
|
|
97
|
+
stderr?: NodeJS.WriteStream;
|
|
98
|
+
/** Ink-compatible option, accepted for API parity */
|
|
99
|
+
patchConsole?: boolean;
|
|
100
|
+
/** Called after a frame is rendered */
|
|
101
|
+
onRender?: (metrics: RenderMetrics) => void;
|
|
102
|
+
/** Enable screen reader rendering hints */
|
|
103
|
+
isScreenReaderEnabled?: boolean;
|
|
104
|
+
/** Maximum render frames per second */
|
|
105
|
+
maxFps?: number;
|
|
106
|
+
/** Use alternate screen buffer */
|
|
107
|
+
alternateScreen?: boolean;
|
|
108
|
+
/** Ink-compatible option, accepted for API parity */
|
|
109
|
+
incrementalRendering?: boolean;
|
|
110
|
+
/** Ink-compatible option, accepted for API parity */
|
|
111
|
+
concurrent?: boolean;
|
|
112
|
+
/** Override interactive mode detection */
|
|
113
|
+
interactive?: boolean;
|
|
114
|
+
/** Configure Kitty keyboard protocol support */
|
|
115
|
+
kittyKeyboard?: KittyKeyboardOptions;
|
|
116
|
+
}
|
|
117
|
+
type RenderOptions = AppOptions;
|
|
118
|
+
type AppRoot = Component | VNode;
|
|
119
|
+
/**
|
|
120
|
+
* Performance metrics for a render operation.
|
|
121
|
+
*/
|
|
122
|
+
interface RenderMetrics {
|
|
123
|
+
/** Time spent rendering in milliseconds */
|
|
124
|
+
renderTime: number;
|
|
29
125
|
}
|
|
30
126
|
/**
|
|
31
127
|
* Fresco App instance
|
|
@@ -34,42 +130,49 @@ interface App {
|
|
|
34
130
|
/** Mount the app */
|
|
35
131
|
mount(): Promise<void>;
|
|
36
132
|
/** Unmount the app */
|
|
37
|
-
unmount(): Promise<void>;
|
|
133
|
+
unmount(errorOrResult?: unknown): Promise<void>;
|
|
38
134
|
/** Wait for exit */
|
|
39
|
-
waitUntilExit(): Promise<
|
|
135
|
+
waitUntilExit(): Promise<unknown>;
|
|
136
|
+
/** Wait for pending render output */
|
|
137
|
+
waitUntilRenderFlush(): Promise<void>;
|
|
40
138
|
/** Render the app */
|
|
41
139
|
render(): void;
|
|
140
|
+
/** Clear the screen */
|
|
141
|
+
clear(): void;
|
|
42
142
|
/** Get terminal info */
|
|
43
143
|
getTerminalInfo(): Promise<{
|
|
44
144
|
width: number;
|
|
45
145
|
height: number;
|
|
46
146
|
}>;
|
|
47
147
|
}
|
|
148
|
+
interface RenderInstance {
|
|
149
|
+
rerender(root: AppRoot): void;
|
|
150
|
+
unmount(errorOrResult?: unknown): Promise<void>;
|
|
151
|
+
waitUntilExit(): Promise<unknown>;
|
|
152
|
+
waitUntilRenderFlush(): Promise<void>;
|
|
153
|
+
cleanup(): Promise<void>;
|
|
154
|
+
clear(): void;
|
|
155
|
+
}
|
|
156
|
+
type Instance = RenderInstance;
|
|
157
|
+
interface RenderToStringOptions {
|
|
158
|
+
/** Width of the virtual terminal in columns */
|
|
159
|
+
columns?: number;
|
|
160
|
+
}
|
|
161
|
+
interface WritableStreamLike {
|
|
162
|
+
write(...args: unknown[]): unknown;
|
|
163
|
+
}
|
|
48
164
|
/**
|
|
49
165
|
* Create a Fresco TUI app
|
|
50
166
|
*/
|
|
51
|
-
declare function createApp(rootComponent:
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/renderer.d.ts
|
|
54
|
-
/**
|
|
55
|
-
* Fresco node types
|
|
56
|
-
*/
|
|
57
|
-
interface FrescoNode extends RendererNode {
|
|
58
|
-
id: number;
|
|
59
|
-
type: "box" | "text" | "input" | "root";
|
|
60
|
-
props: Record<string, unknown>;
|
|
61
|
-
children: FrescoNode[];
|
|
62
|
-
parent: FrescoNode | null;
|
|
63
|
-
text?: string;
|
|
64
|
-
}
|
|
167
|
+
declare function createApp(rootComponent: AppRoot, options?: AppOptions): App;
|
|
65
168
|
/**
|
|
66
|
-
*
|
|
169
|
+
* Ink-compatible helper that mounts immediately.
|
|
67
170
|
*/
|
|
68
|
-
|
|
171
|
+
declare function render(root: AppRoot, options?: AppOptions | WritableStreamLike): RenderInstance;
|
|
69
172
|
/**
|
|
70
|
-
*
|
|
173
|
+
* Render a Fresco component to a plain string without starting a terminal app.
|
|
71
174
|
*/
|
|
72
|
-
declare function
|
|
175
|
+
declare function renderToString(root: AppRoot, options?: RenderToStringOptions): string;
|
|
73
176
|
//#endregion
|
|
74
|
-
export { Alert, AlertProps, AlertType, type App, type AppOptions, Avatar, AvatarProps, Badge, BadgeProps, BadgeVariant, Box, BoxProps, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Card, CardProps, Checkbox, CheckboxProps, Code, CodeProps, Confirm, ConfirmProps, Divider, DividerProps, type FlexStyleNapi, FocusManager, Form, FormField, FormProps, Grid, GridProps, HStack, Header, HeaderProps, ImeManager, type ImeStateNapi, type InputEventNapi, KeyBinding, type KeyEvent, KeyHandler, KeyHint, KeyHintProps, Link, LinkProps, List, ListItem, ListProps, Menu, MenuItem, MenuProps, Modal, ModalProps, ProgressBar, ProgressBarProps, RadioGroup, RadioGroupProps, RadioOption, type RenderNodeNapi, Select, SelectOption, SelectProps, Spinner, SpinnerProps, Stack, StackProps, StatusBar, StatusBarItem, StatusBarProps, Step, StepStatus, Stepper, StepperProps, type StyleNapi, Tab, Table, TableColumn, TableProps, Tabs, TabsProps, type TerminalInfoNapi, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Timer, TimerMode, TimerProps, Tooltip, TooltipPosition, TooltipProps, Tree, TreeNode, TreeProps, UseAppReturn, UseFocusOptions, UseImeOptions, UseInputOptions, VStack, createApp, createRenderer, lastKeyEvent, useApp, useFocus, useIme, useInput };
|
|
177
|
+
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, Grid, GridProps, HStack, Header, HeaderProps, ImeManager, type ImeStateNapi, type InputEventNapi, InputHandler, type Instance, Key, KeyBinding, type KeyEvent, 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 };
|
|
75
178
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/kittyKeyboard.ts","../src/app.ts"],"mappings":";;;;;;;;;cAIa,UAAA;EAAA;;;;;;KAQD,aAAA,gBAA6B,UAAA;AAAA,UAExB,oBAAA;EACf,IAAA;EACA,KAAA,GAAQ,aAAA;AAAA;AAAA,iBAGM,iBAAA,CAAkB,KAAA,EAAO,aAAA;AAAA,cAI5B,cAAA;EAAA;;;;;;;;;;;KCeD,YAAA;AAAA,UAGK,QAAA;EACf,IAAA;EACA,GAAA;EACA,IAAA;EACA,IAAA;EACA,GAAA;EACA,KAAA;EACA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AAA;;;;UAMe,GAAA;EA9FA;EAgGf,KAAA,IAAS,OAAA;;EAET,OAAA,CAAQ,aAAA,aAA0B,OAAA;EAhG3B;EAkGP,aAAA,IAAiB,OAAA;EA/Fc;EAiG/B,oBAAA,IAAwB,OAAA;EAjGO;EAmG/B,MAAA;EAjGA;EAmGA,KAAA;EAlGM;EAoGN,eAAA,IAAmB,OAAA;IAAU,KAAA;IAAe,MAAA;EAAA;AAAA;AAAA,UAG7B,cAAA;EACf,QAAA,CAAS,IAAA,EAAM,OAAA;EACf,OAAA,CAAQ,aAAA,aAA0B,OAAA;EAClC,aAAA,IAAiB,OAAA;EACjB,oBAAA,IAAwB,OAAA;EACxB,OAAA,IAAW,OAAA;EACX,KAAA;AAAA;AAAA,KAGU,QAAA,GAAW,cAAA;AAAA,UAEN,qBAAA;EApG4B;EAsG3C,OAAA;AAAA;AAAA,UAGe,kBAAA;EACf,KAAA,IAAS,IAAA;AAAA;AAxGX;;;AAAA,iBAmWgB,SAAA,CAAU,aAAA,EAAe,OAAA,EAAS,OAAA,GAAS,UAAA,GAAkB,GAAA;;AAlW7E;;iBAgzBgB,MAAA,CACd,IAAA,EAAM,OAAA,EACN,OAAA,GAAS,UAAA,GAAa,kBAAA,GACrB,cAAA;;;AAhyBH;iBAg0BgB,cAAA,CAAe,IAAA,EAAM,OAAA,EAAS,OAAA,GAAS,qBAAA"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
|
-
import { i as createRenderer, n as
|
|
2
|
-
import { A as
|
|
3
|
-
import { n as
|
|
4
|
-
|
|
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-DrlvpGkS.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-BFV7PBp6.mjs";
|
|
3
|
+
import { i as useIme, n as useAnimation, r as useWindowSize, t as useBoxMetrics } from "./composables-BKj30tnc.mjs";
|
|
4
|
+
//#region src/kittyKeyboard.ts
|
|
5
|
+
/**
|
|
6
|
+
* Kitty keyboard protocol constants compatible with Ink.
|
|
7
|
+
*/
|
|
8
|
+
const kittyFlags = {
|
|
9
|
+
disambiguateEscapeCodes: 1,
|
|
10
|
+
reportEventTypes: 2,
|
|
11
|
+
reportAlternateKeys: 4,
|
|
12
|
+
reportAllKeysAsEscapeCodes: 8,
|
|
13
|
+
reportAssociatedText: 16
|
|
14
|
+
};
|
|
15
|
+
function resolveKittyFlags(flags) {
|
|
16
|
+
return flags.reduce((bits, flag) => bits | kittyFlags[flag], 0);
|
|
17
|
+
}
|
|
18
|
+
const kittyModifiers = {
|
|
19
|
+
shift: 1,
|
|
20
|
+
alt: 2,
|
|
21
|
+
ctrl: 4,
|
|
22
|
+
super: 8,
|
|
23
|
+
hyper: 16,
|
|
24
|
+
meta: 32,
|
|
25
|
+
capsLock: 64,
|
|
26
|
+
numLock: 128
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { Alert, Avatar, Badge, Box, Breadcrumb, Card, Checkbox, Code, Confirm, Divider, Form, Grid, HStack, Header, KeyHint, Link, List, Menu, Modal, Newline, ProgressBar, RadioGroup, Select, Spacer, Spinner, Stack, Static, StatusBar, Stepper, Table, Tabs, Text, TextArea, TextInput, Timer, Tooltip, Transform, Tree, VStack, 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 };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +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"}
|