@vizejs/fresco 0.33.0 → 0.35.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 -0
- package/dist/components/index.mjs +3 -0
- package/dist/{components-DtI-O8Cr.js → components-B5VXjX9s.mjs} +125 -84
- package/dist/components-B5VXjX9s.mjs.map +1 -0
- package/dist/composables/index.d.mts +2 -0
- package/dist/composables/index.mjs +3 -0
- package/dist/{composables-CLuPs-N5.js → composables-Bb56LTUc.mjs} +12 -6
- package/dist/composables-Bb56LTUc.mjs.map +1 -0
- package/dist/index-B82PCBqt.d.mts +2774 -0
- package/dist/index-B82PCBqt.d.mts.map +1 -0
- package/dist/{index-z9cQDuri.d.ts → index-CZdTzyQk.d.mts} +10 -29
- package/dist/index-CZdTzyQk.d.mts.map +1 -0
- package/dist/index.d.mts +75 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -0
- package/dist/{useInput-CvEslk0z.js → useInput-CbggNZUF.mjs} +15 -12
- package/dist/useInput-CbggNZUF.mjs.map +1 -0
- package/package.json +31 -32
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.js +0 -4
- package/dist/components-DtI-O8Cr.js.map +0 -1
- package/dist/composables/index.d.ts +0 -2
- package/dist/composables/index.js +0 -4
- package/dist/composables-CLuPs-N5.js.map +0 -1
- package/dist/index-C6ATca97.d.ts +0 -1518
- package/dist/index-C6ATca97.d.ts.map +0 -1
- package/dist/index-z9cQDuri.d.ts.map +0 -1
- package/dist/index.d.ts +0 -81
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -5
- package/dist/useInput-CvEslk0z.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-B82PCBqt.d.mts","names":[],"sources":["../src/components/Box.ts","../src/components/Divider.ts","../src/components/Stack.ts","../src/components/Grid.ts","../src/components/Card.ts","../src/components/Text.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":";;;;UAMiB,QAAA;EAAQ;EAEvB,aAAA;EAFuB;EAIvB,QAAA;EAAA;EAEA,cAAA;EAQA;EAAA,UAAA;EAIA;EAFA,SAAA;EAMA;EAJA,QAAA;EAQA;EANA,UAAA;EAUA;EARA,KAAA;EAYA;EAVA,MAAA;EAcA;EAZA,QAAA;EAgBA;EAdA,SAAA;EAkBA;EAhBA,QAAA;EAoBA;EAlBA,SAAA;EAsBA;EApBA,OAAA;EAwBA;EAtBA,QAAA;EA0BA;EAxBA,QAAA;EA4BA;EA1BA,UAAA;EA4BE;EA1BF,YAAA;EA6BW;EA3BX,aAAA;;EAEA,WAAA;EA4B2B;EA1B3B,MAAA;EA2BsB;EAzBtB,OAAA;EA0B4B;EAxB5B,OAAA;EAyBwB;EAvBxB,SAAA;EAwBuB;EAtBvB,WAAA;;EAEA,YAAA;EAwB8B;EAtB9B,UAAA;EAwBiC;EAtBjC,GAAA;EAwBiC;EAtBjC,MAAA;;EAEA,EAAA;;EAEA,EAAA;AAAA;AAAA,cAGW,GAAA,qBAAG,eAAA,oBAAA,gBAAA;iBAGa,QAAA,CAAS,QAAA;YACd,QAAA,CAAS,QAAA;kBACH,QAAA,CAAS,QAAA;cACb,QAAA,CAAS,QAAA;aACV,QAAA,CAAS,QAAA;;;SAGH,QAAA;UACC,QAAA;YACE,QAAA;aACC,QAAA;YACD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AAA;;;;UAMG,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA,mCAtBZ,kBAAA,CAAA,YAAA;;yJAsBW,kBAAA,CAAA,gBAAA;;;;UAhBR,QAAA;;;;;;;;;;;;;;;;UAgBA,QAAA,CAAS,WAAA;EAAA;AAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from "@vue/runtime-core";
|
|
2
|
+
import * as _vue_reactivity0 from "@vue/reactivity";
|
|
2
3
|
|
|
3
4
|
//#region src/composables/useInput.d.ts
|
|
4
|
-
|
|
5
5
|
interface KeyHandler {
|
|
6
6
|
(key: string, modifiers: {
|
|
7
7
|
ctrl: boolean;
|
|
@@ -26,16 +26,13 @@ interface UseInputOptions {
|
|
|
26
26
|
onArrow?: (direction: "up" | "down" | "left" | "right") => void;
|
|
27
27
|
}
|
|
28
28
|
declare function useInput(options?: UseInputOptions): {
|
|
29
|
-
isActive:
|
|
30
|
-
lastKey:
|
|
29
|
+
isActive: Ref<boolean, boolean>;
|
|
30
|
+
lastKey: Ref<string | null, string | null>;
|
|
31
31
|
enable: () => void;
|
|
32
32
|
disable: () => void;
|
|
33
|
-
};
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
34
35
|
//#region src/composables/useFocus.d.ts
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Shorthand for handling specific key combinations
|
|
38
|
-
*/
|
|
39
36
|
interface UseFocusOptions {
|
|
40
37
|
/** Whether this element starts focused */
|
|
41
38
|
autoFocus?: boolean;
|
|
@@ -58,22 +55,17 @@ interface FocusManager {
|
|
|
58
55
|
/** Unregister a focusable element */
|
|
59
56
|
unregister: (id: string) => void;
|
|
60
57
|
}
|
|
61
|
-
/**
|
|
62
|
-
* Create a focus manager (use at app root)
|
|
63
|
-
*/
|
|
64
|
-
|
|
65
58
|
/**
|
|
66
59
|
* Use focus management
|
|
67
60
|
*/
|
|
68
61
|
declare function useFocus(options?: UseFocusOptions): {
|
|
69
62
|
id: string;
|
|
70
|
-
isFocused:
|
|
63
|
+
isFocused: _vue_reactivity0.ComputedRef<boolean>;
|
|
71
64
|
focus: () => void;
|
|
72
65
|
blur: () => void;
|
|
73
|
-
};
|
|
66
|
+
};
|
|
67
|
+
//#endregion
|
|
74
68
|
//#region src/composables/useApp.d.ts
|
|
75
|
-
|
|
76
|
-
//# sourceMappingURL=useFocus.d.ts.map
|
|
77
69
|
interface UseAppReturn {
|
|
78
70
|
/** Terminal width */
|
|
79
71
|
width: Ref<number>;
|
|
@@ -88,20 +80,12 @@ interface UseAppReturn {
|
|
|
88
80
|
/** Clear the screen */
|
|
89
81
|
clear: () => void;
|
|
90
82
|
}
|
|
91
|
-
/**
|
|
92
|
-
* Create app context (use at app root)
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
83
|
/**
|
|
96
84
|
* Use app context
|
|
97
85
|
*/
|
|
98
86
|
declare function useApp(): UseAppReturn;
|
|
99
|
-
|
|
100
87
|
//#endregion
|
|
101
88
|
//#region src/composables/useIme.d.ts
|
|
102
|
-
/**
|
|
103
|
-
* Use terminal dimensions
|
|
104
|
-
*/
|
|
105
89
|
interface UseImeOptions {
|
|
106
90
|
/** Initial IME mode */
|
|
107
91
|
mode?: ImeMode;
|
|
@@ -153,9 +137,6 @@ interface ImeManager {
|
|
|
153
137
|
selectCandidate: (num: number) => void;
|
|
154
138
|
}
|
|
155
139
|
declare function useIme(options?: UseImeOptions): ImeManager;
|
|
156
|
-
|
|
157
140
|
//#endregion
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
export { FocusManager, ImeManager, KeyHandler, UseAppReturn, UseFocusOptions, UseImeOptions, UseInputOptions, useApp as useApp$1, useFocus as useFocus$1, useIme as useIme$1, useInput };
|
|
161
|
-
//# sourceMappingURL=index-z9cQDuri.d.ts.map
|
|
141
|
+
export { useApp as a, useFocus as c, useInput as d, UseAppReturn as i, KeyHandler as l, UseImeOptions as n, FocusManager as o, useIme as r, UseFocusOptions as s, ImeManager as t, UseInputOptions as u };
|
|
142
|
+
//# sourceMappingURL=index-CZdTzyQk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-CZdTzyQk.d.mts","names":[],"sources":["../src/composables/useInput.ts","../src/composables/useFocus.ts","../src/composables/useApp.ts","../src/composables/useIme.ts"],"mappings":";;;;UAOiB,UAAA;EAAA,CACd,GAAA,UAAa,SAAA;IAAa,IAAA;IAAe,GAAA;IAAc,KAAA;EAAA;AAAA;AAAA,UAGzC,eAAA;EAHD;EAKd,MAAA,aAAmB,GAAA;EALqD;EAOxE,QAAA,aAAqB,GAAA;EAJS;EAM9B,KAAA,GAAQ,UAAA;EAJW;EAMnB,MAAA,IAAU,IAAA;EAFF;EAIR,QAAA;EAJkB;EAMlB,QAAA;EAVmB;EAYnB,OAAA,IAAW,SAAA;AAAA;AAAA,iBAGG,QAAA,CAAS,OAAA,GAAS,eAAA;;;;;;;;UCpBjB,eAAA;EDDU;ECGzB,SAAA;EDHyB;ECKzB,EAAA;AAAA;AAAA,UAGe,YAAA;EDPyC;ECSxD,SAAA,EAAW,GAAA;EDT6D;ECWxE,YAAA,EAAc,GAAA;EDRC;ECUf,KAAA,GAAQ,EAAA;;EAER,SAAA;EDRqB;ECUrB,aAAA;EDRkB;ECUlB,QAAA,GAAW,EAAA;EDdX;ECgBA,UAAA,GAAa,EAAA;AAAA;;;;iBAuEC,QAAA,CAAS,OAAA,GAAS,eAAA;;aAAoB,gBAAA,CAAA,WAAA;;;;;;UC5FrC,YAAA;EFDU;EEGzB,KAAA,EAAO,GAAA;EFHkB;EEKzB,MAAA,EAAQ,GAAA;EFJmB;EEM3B,SAAA,EAAW,GAAA;EFN6C;EEQxD,IAAA,GAAO,IAAA;EFRiE;EEUxE,MAAA;EFPe;EESf,KAAA;AAAA;;;;iBAwDc,MAAA,CAAA,GAAU,YAAA;;;UCtET,aAAA;EHCU;EGCzB,IAAA,GAAO,OAAA;EHDkB;EGGzB,YAAA,IAAgB,IAAA,EAAM,OAAA;EHFK;EGI3B,mBAAA,IAAuB,IAAA,UAAc,MAAA;EHJmB;EGMxD,QAAA,IAAY,IAAA;AAAA;AAAA,KAGF,OAAA;AAAA,UASK,UAAA;EHfe;EGiB9B,QAAA,EAAU,GAAA;EHfS;EGiBnB,IAAA,EAAM,GAAA,CAAI,OAAA;EHbF;EGeR,WAAA,EAAa,GAAA;EHfK;EGiBlB,OAAA,EAAS,GAAA;EHrBU;EGuBnB,aAAA,EAAe,GAAA;EHrBM;EGuBrB,UAAA,EAAY,GAAA;EHrBJ;EGuBR,iBAAA,EAAmB,GAAA;EHrBT;EGuBV,WAAA,EAAa,GAAA;EHnBb;EGqBA,MAAA;EHnBW;EGqBX,OAAA;EHrBsD;EGuBtD,OAAA,GAAU,IAAA,EAAM,OAAA;EHpBM;EGsBtB,SAAA,GAAY,GAAA,UAAa,SAAA;IAAa,IAAA;IAAe,GAAA;EAAA;;EAErD,MAAA;EHxBgC;EG0BhC,MAAA;;EAEA,aAAA;;EAEA,aAAA;;EAEA,eAAA,GAAkB,GAAA;AAAA;AAAA,iBAaJ,MAAA,CAAO,OAAA,GAAS,aAAA,GAAqB,UAAA"}
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { $ as FormProps, A as TableColumn, At as Box, B as TimerProps, C as Menu, Ct as GridProps, D as TreeNode, Dt as VStack, E as Tree, Et as StackProps, F as Tooltip, G as AlertProps, H as BadgeProps, I as TooltipPosition, J as ProgressBarProps, K as AlertType, L as TooltipProps, M as List, N as ListItem, O as TreeProps, Ot as Divider, P as ListProps, Q as FormField, R as Timer, S as TabsProps, St as Grid, T as MenuProps, Tt as Stack, 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 Card, 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 BoxProps, k as Table, kt as DividerProps, 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 Text, w as MenuItem, wt as HStack, x as Tabs, xt as CardProps, y as BreadcrumbProps, yt as TextProps, z as TimerMode } from "./index-B82PCBqt.mjs";
|
|
2
|
+
import { a as useApp, c as useFocus, d as useInput, i as UseAppReturn, l as KeyHandler, n as UseImeOptions, o as FocusManager, r as useIme, s as UseFocusOptions, t as ImeManager, u as UseInputOptions } from "./index-CZdTzyQk.mjs";
|
|
3
|
+
import * as _vue_runtime_core0 from "@vue/runtime-core";
|
|
4
|
+
import { Component, Ref, RendererElement, RendererNode } from "@vue/runtime-core";
|
|
5
|
+
import { FlexStyleNapi, ImeStateNapi, InputEventNapi, RenderNodeNapi, StyleNapi, TerminalInfoNapi } from "@vizejs/fresco-native";
|
|
6
|
+
|
|
7
|
+
//#region src/app.d.ts
|
|
8
|
+
interface KeyEvent {
|
|
9
|
+
type: "key";
|
|
10
|
+
key?: string;
|
|
11
|
+
char?: string;
|
|
12
|
+
ctrl: boolean;
|
|
13
|
+
alt: boolean;
|
|
14
|
+
shift: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare const lastKeyEvent: Ref<KeyEvent | null>;
|
|
17
|
+
/**
|
|
18
|
+
* App options
|
|
19
|
+
*/
|
|
20
|
+
interface AppOptions {
|
|
21
|
+
/** Enable mouse support */
|
|
22
|
+
mouse?: boolean;
|
|
23
|
+
/** Exit on Ctrl+C */
|
|
24
|
+
exitOnCtrlC?: boolean;
|
|
25
|
+
/** Custom error handler */
|
|
26
|
+
onError?: (error: Error) => void;
|
|
27
|
+
/** Debug mode - logs render tree */
|
|
28
|
+
debug?: boolean;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Fresco App instance
|
|
32
|
+
*/
|
|
33
|
+
interface App {
|
|
34
|
+
/** Mount the app */
|
|
35
|
+
mount(): Promise<void>;
|
|
36
|
+
/** Unmount the app */
|
|
37
|
+
unmount(): Promise<void>;
|
|
38
|
+
/** Wait for exit */
|
|
39
|
+
waitUntilExit(): Promise<void>;
|
|
40
|
+
/** Render the app */
|
|
41
|
+
render(): void;
|
|
42
|
+
/** Get terminal info */
|
|
43
|
+
getTerminalInfo(): Promise<{
|
|
44
|
+
width: number;
|
|
45
|
+
height: number;
|
|
46
|
+
}>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Create a Fresco TUI app
|
|
50
|
+
*/
|
|
51
|
+
declare function createApp(rootComponent: Component, options?: AppOptions): App;
|
|
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
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Fresco element (extends node)
|
|
67
|
+
*/
|
|
68
|
+
interface FrescoElement extends FrescoNode, RendererElement {}
|
|
69
|
+
/**
|
|
70
|
+
* Create the Fresco renderer
|
|
71
|
+
*/
|
|
72
|
+
declare function createRenderer(): _vue_runtime_core0.Renderer<FrescoElement>;
|
|
73
|
+
//#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 };
|
|
75
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/app.ts","../src/renderer.ts"],"mappings":";;;;;;;UAQiB,QAAA;EACf,IAAA;EACA,GAAA;EACA,IAAA;EACA,IAAA;EACA,GAAA;EACA,KAAA;AAAA;AAAA,cAYW,YAAA,EAAc,GAAA,CAAI,QAAA;AAA/B;;;AAAA,UAgBiB,UAAA;EAhBsB;EAkBrC,KAAA;EAFyB;EAIzB,WAAA;EAEuB;EAAvB,OAAA,IAAW,KAAA,EAAO,KAAA;EAFlB;EAIA,KAAA;AAAA;;;;UAMe,GAAA;EAAA;EAEf,KAAA,IAAS,OAAA;;EAET,OAAA,IAAW,OAAA;EAAA;EAEX,aAAA,IAAiB,OAAA;EAIE;EAFnB,MAAA;EAE0B;EAA1B,eAAA,IAAmB,OAAA;IAAU,KAAA;IAAe,MAAA;EAAA;AAAA;;;;iBAM9B,SAAA,CAAU,aAAA,EAAe,SAAA,EAAW,OAAA,GAAS,UAAA,GAAkB,GAAA;;;;;;UC1D9D,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;;;;iBAuGnC,cAAA,CAAA,GAAc,kBAAA,CAAA,QAAA,CAAA,aAAA"}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { i as createRenderer, n as createApp, r as lastKeyEvent, t as useInput } from "./useInput-CbggNZUF.mjs";
|
|
2
|
+
import { A as Grid, C as Select, D as Code, E as Link, F as Box, M as Stack, N as VStack, O as Text, P as Divider, 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 HStack, k as Card, 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 } from "./components-B5VXjX9s.mjs";
|
|
3
|
+
import { n as useApp, r as useFocus, t as useIme } from "./composables-Bb56LTUc.mjs";
|
|
4
|
+
export { Alert, Avatar, Badge, Box, Breadcrumb, Card, Checkbox, Code, Confirm, Divider, Form, Grid, HStack, Header, KeyHint, Link, List, Menu, Modal, ProgressBar, RadioGroup, Select, Spinner, Stack, StatusBar, Stepper, Table, Tabs, Text, TextArea, TextInput, Timer, Tooltip, Tree, VStack, createApp, createRenderer, lastKeyEvent, useApp, useFocus, useIme, useInput };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { createRenderer, isRef, ref, watch } from "@vue/runtime-core";
|
|
2
|
-
|
|
3
2
|
//#region src/renderer.ts
|
|
3
|
+
/**
|
|
4
|
+
* Fresco Vue Custom Renderer
|
|
5
|
+
*/
|
|
4
6
|
let nextId = 0;
|
|
5
7
|
function createNode(type) {
|
|
6
8
|
return {
|
|
@@ -37,8 +39,7 @@ const rendererOptions = {
|
|
|
37
39
|
}
|
|
38
40
|
},
|
|
39
41
|
createElement(type) {
|
|
40
|
-
|
|
41
|
-
return createNode(nodeType);
|
|
42
|
+
return createNode(mapElementType(type));
|
|
42
43
|
},
|
|
43
44
|
createText(text) {
|
|
44
45
|
const node = createNode("text");
|
|
@@ -158,9 +159,11 @@ function treeToRenderNodes(root) {
|
|
|
158
159
|
visit(root);
|
|
159
160
|
return nodes;
|
|
160
161
|
}
|
|
161
|
-
|
|
162
162
|
//#endregion
|
|
163
163
|
//#region src/app.ts
|
|
164
|
+
/**
|
|
165
|
+
* Fresco App - Application instance management
|
|
166
|
+
*/
|
|
164
167
|
const lastKeyEvent = ref(null);
|
|
165
168
|
let native = null;
|
|
166
169
|
async function loadNative() {
|
|
@@ -210,8 +213,7 @@ function createApp(rootComponent, options = {}) {
|
|
|
210
213
|
async function unmount() {
|
|
211
214
|
if (!mounted) return;
|
|
212
215
|
running = false;
|
|
213
|
-
|
|
214
|
-
n.restoreTerminal();
|
|
216
|
+
(await loadNative()).restoreTerminal();
|
|
215
217
|
if (vueApp) {
|
|
216
218
|
vueApp.unmount();
|
|
217
219
|
vueApp = null;
|
|
@@ -239,8 +241,7 @@ function createApp(rootComponent, options = {}) {
|
|
|
239
241
|
}
|
|
240
242
|
}
|
|
241
243
|
async function getTerminalInfo() {
|
|
242
|
-
const
|
|
243
|
-
const info = n.getTerminalInfo();
|
|
244
|
+
const info = (await loadNative()).getTerminalInfo();
|
|
244
245
|
return {
|
|
245
246
|
width: info.width,
|
|
246
247
|
height: info.height
|
|
@@ -289,9 +290,11 @@ function createApp(rootComponent, options = {}) {
|
|
|
289
290
|
getTerminalInfo
|
|
290
291
|
};
|
|
291
292
|
}
|
|
292
|
-
|
|
293
293
|
//#endregion
|
|
294
294
|
//#region src/composables/useInput.ts
|
|
295
|
+
/**
|
|
296
|
+
* useInput - Input handling composable
|
|
297
|
+
*/
|
|
295
298
|
function useInput(options = {}) {
|
|
296
299
|
const { active = true, isActive: isActiveOption, onKey, onChar, onSubmit, onEscape, onArrow } = options;
|
|
297
300
|
const activeSource = isActiveOption ?? active;
|
|
@@ -342,7 +345,7 @@ function useInput(options = {}) {
|
|
|
342
345
|
disable
|
|
343
346
|
};
|
|
344
347
|
}
|
|
345
|
-
|
|
346
348
|
//#endregion
|
|
347
|
-
export {
|
|
348
|
-
|
|
349
|
+
export { createRenderer$1 as i, createApp as n, lastKeyEvent as r, useInput as t };
|
|
350
|
+
|
|
351
|
+
//# sourceMappingURL=useInput-CbggNZUF.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useInput-CbggNZUF.mjs","names":["createRenderer","createVueRenderer","createRenderer"],"sources":["../src/renderer.ts","../src/app.ts","../src/composables/useInput.ts"],"sourcesContent":["/**\n * Fresco Vue Custom Renderer\n */\n\nimport {\n createRenderer as createVueRenderer,\n type RendererOptions,\n type RendererNode,\n type RendererElement,\n} from \"@vue/runtime-core\";\n\n/**\n * Fresco node types\n */\nexport interface FrescoNode extends RendererNode {\n id: number;\n type: \"box\" | \"text\" | \"input\" | \"root\";\n props: Record<string, unknown>;\n children: FrescoNode[];\n parent: FrescoNode | null;\n text?: string;\n}\n\n/**\n * Fresco element (extends node)\n */\nexport interface FrescoElement extends FrescoNode, RendererElement {}\n\nlet nextId = 0;\n\nfunction createNode(type: FrescoNode[\"type\"]): FrescoNode {\n return {\n id: nextId++,\n type,\n props: {},\n children: [],\n parent: null,\n };\n}\n\n/**\n * Renderer options for Fresco\n */\nconst rendererOptions: RendererOptions<FrescoNode, FrescoElement> = {\n patchProp(el, key, prevValue, nextValue) {\n el.props[key] = nextValue;\n },\n\n insert(child, parent, anchor) {\n child.parent = parent;\n if (anchor) {\n const index = parent.children.indexOf(anchor);\n if (index !== -1) {\n parent.children.splice(index, 0, child);\n return;\n }\n }\n parent.children.push(child);\n },\n\n remove(child) {\n if (child.parent) {\n const index = child.parent.children.indexOf(child);\n if (index !== -1) {\n child.parent.children.splice(index, 1);\n }\n child.parent = null;\n }\n },\n\n createElement(type) {\n const nodeType = mapElementType(type);\n return createNode(nodeType) as FrescoElement;\n },\n\n createText(text) {\n const node = createNode(\"text\");\n node.text = text;\n return node;\n },\n\n createComment() {\n // Comments are ignored in TUI\n return createNode(\"text\");\n },\n\n setText(node, text) {\n node.text = text;\n },\n\n setElementText(el, text) {\n el.text = text;\n el.children = [];\n },\n\n parentNode(node) {\n return node.parent;\n },\n\n nextSibling(node) {\n if (!node.parent) return null;\n const index = node.parent.children.indexOf(node);\n return node.parent.children[index + 1] || null;\n },\n};\n\n/**\n * Map Vue element types to Fresco node types\n */\nfunction mapElementType(type: string): FrescoNode[\"type\"] {\n switch (type.toLowerCase()) {\n case \"box\":\n case \"div\":\n case \"view\":\n return \"box\";\n case \"text\":\n case \"span\":\n return \"text\";\n case \"input\":\n case \"textinput\":\n return \"input\";\n default:\n return \"box\";\n }\n}\n\n/**\n * Create the Fresco renderer\n */\nexport function createRenderer() {\n return createVueRenderer(rendererOptions);\n}\n\n/**\n * Convert Fresco tree to render nodes for native\n */\nexport function treeToRenderNodes(root: FrescoNode): Array<{\n id: number;\n nodeType: string;\n text?: string;\n wrap?: boolean;\n value?: string;\n placeholder?: string;\n focused?: boolean;\n mask?: boolean;\n style?: Record<string, unknown>;\n appearance?: Record<string, unknown>;\n border?: string;\n children?: number[];\n}> {\n const nodes: Array<{\n id: number;\n nodeType: string;\n text?: string;\n wrap?: boolean;\n value?: string;\n placeholder?: string;\n focused?: boolean;\n mask?: boolean;\n style?: Record<string, unknown>;\n appearance?: Record<string, unknown>;\n border?: string;\n children?: number[];\n }> = [];\n\n function visit(node: FrescoNode) {\n const renderNode: (typeof nodes)[0] = {\n id: node.id,\n nodeType: node.type,\n };\n\n // Extract props\n if (node.text) {\n renderNode.text = node.text;\n }\n if (node.props.wrap !== undefined) {\n renderNode.wrap = Boolean(node.props.wrap);\n }\n if (node.props.value !== undefined) {\n const v = node.props.value;\n renderNode.value = typeof v === \"string\" || typeof v === \"number\" ? String(v) : \"\";\n }\n if (node.props.placeholder !== undefined) {\n const p = node.props.placeholder;\n renderNode.placeholder = typeof p === \"string\" || typeof p === \"number\" ? String(p) : \"\";\n }\n if (node.props.focused !== undefined) {\n renderNode.focused = Boolean(node.props.focused);\n }\n if (node.props.cursor !== undefined) {\n (renderNode as any).cursor = Number(node.props.cursor);\n }\n if (node.props.mask !== undefined) {\n renderNode.mask = Boolean(node.props.mask);\n }\n if (node.props.border !== undefined) {\n const b = node.props.border;\n renderNode.border = typeof b === \"string\" ? b : \"\";\n }\n\n // Extract style - only include defined values\n if (node.props.style) {\n const s = node.props.style as Record<string, unknown>;\n const style: Record<string, unknown> = {};\n\n if (s.display !== undefined) style.display = s.display;\n if (s.flexDirection !== undefined) style.flexDirection = s.flexDirection;\n if (s.flexWrap !== undefined) style.flexWrap = s.flexWrap;\n if (s.justifyContent !== undefined) style.justifyContent = s.justifyContent;\n if (s.alignItems !== undefined) style.alignItems = s.alignItems;\n if (s.alignSelf !== undefined) style.alignSelf = s.alignSelf;\n if (s.alignContent !== undefined) style.alignContent = s.alignContent;\n if (s.flexGrow !== undefined) style.flexGrow = s.flexGrow;\n if (s.flexShrink !== undefined) style.flexShrink = s.flexShrink;\n if (s.width !== undefined && (typeof s.width === \"string\" || typeof s.width === \"number\"))\n style.width = String(s.width);\n if (s.height !== undefined && (typeof s.height === \"string\" || typeof s.height === \"number\"))\n style.height = String(s.height);\n if (\n s.minWidth !== undefined &&\n (typeof s.minWidth === \"string\" || typeof s.minWidth === \"number\")\n )\n style.minWidth = String(s.minWidth);\n if (\n s.minHeight !== undefined &&\n (typeof s.minHeight === \"string\" || typeof s.minHeight === \"number\")\n )\n style.minHeight = String(s.minHeight);\n if (\n s.maxWidth !== undefined &&\n (typeof s.maxWidth === \"string\" || typeof s.maxWidth === \"number\")\n )\n style.maxWidth = String(s.maxWidth);\n if (\n s.maxHeight !== undefined &&\n (typeof s.maxHeight === \"string\" || typeof s.maxHeight === \"number\")\n )\n style.maxHeight = String(s.maxHeight);\n if (s.padding !== undefined) style.padding = s.padding;\n if (s.paddingTop !== undefined) style.paddingTop = s.paddingTop;\n if (s.paddingRight !== undefined) style.paddingRight = s.paddingRight;\n if (s.paddingBottom !== undefined) style.paddingBottom = s.paddingBottom;\n if (s.paddingLeft !== undefined) style.paddingLeft = s.paddingLeft;\n if (s.margin !== undefined) style.margin = s.margin;\n if (s.marginTop !== undefined) style.marginTop = s.marginTop;\n if (s.marginRight !== undefined) style.marginRight = s.marginRight;\n if (s.marginBottom !== undefined) style.marginBottom = s.marginBottom;\n if (s.marginLeft !== undefined) style.marginLeft = s.marginLeft;\n if (s.gap !== undefined) style.gap = s.gap;\n\n renderNode.style = style as any;\n }\n\n // Extract appearance (fg, bg, bold, etc.)\n const appearance: Record<string, unknown> = {};\n if (node.props.fg) appearance.fg = node.props.fg;\n if (node.props.bg) appearance.bg = node.props.bg;\n if (node.props.bold) appearance.bold = node.props.bold;\n if (node.props.dim) appearance.dim = node.props.dim;\n if (node.props.italic) appearance.italic = node.props.italic;\n if (node.props.underline) appearance.underline = node.props.underline;\n if (Object.keys(appearance).length > 0) {\n renderNode.appearance = appearance;\n }\n\n // Children\n if (node.children.length > 0) {\n renderNode.children = node.children.map((c) => c.id);\n }\n\n nodes.push(renderNode);\n\n // Visit children\n for (const child of node.children) {\n visit(child);\n }\n }\n\n visit(root);\n return nodes;\n}\n","/**\n * Fresco App - Application instance management\n */\n\nimport { type Component, type App as VueApp, ref, type Ref } from \"@vue/runtime-core\";\nimport { createRenderer, treeToRenderNodes, type FrescoElement } from \"./renderer.js\";\n\n// Event types\nexport interface KeyEvent {\n type: \"key\";\n key?: string;\n char?: string;\n ctrl: boolean;\n alt: boolean;\n shift: boolean;\n}\n\nexport interface ResizeEvent {\n type: \"resize\";\n width: number;\n height: number;\n}\n\nexport type InputEvent = KeyEvent | ResizeEvent;\n\n// Global event state\nexport const lastKeyEvent: Ref<KeyEvent | null> = ref(null);\n\n// Import native bindings\n// eslint-disable-next-line typescript-eslint/no-redundant-type-constituents -- index.d.ts is not yet generated\nlet native: typeof import(\"@vizejs/fresco-native\") | null = null;\n\nasync function loadNative() {\n if (!native) {\n native = await import(\"@vizejs/fresco-native\");\n }\n return native;\n}\n\n/**\n * App options\n */\nexport interface AppOptions {\n /** Enable mouse support */\n mouse?: boolean;\n /** Exit on Ctrl+C */\n exitOnCtrlC?: boolean;\n /** Custom error handler */\n onError?: (error: Error) => void;\n /** Debug mode - logs render tree */\n debug?: boolean;\n}\n\n/**\n * Fresco App instance\n */\nexport interface App {\n /** Mount the app */\n mount(): Promise<void>;\n /** Unmount the app */\n unmount(): Promise<void>;\n /** Wait for exit */\n waitUntilExit(): Promise<void>;\n /** Render the app */\n render(): void;\n /** Get terminal info */\n getTerminalInfo(): Promise<{ width: number; height: number }>;\n}\n\n/**\n * Create a Fresco TUI app\n */\nexport function createApp(rootComponent: Component, options: AppOptions = {}): App {\n const { mouse = false, exitOnCtrlC = true, onError } = options;\n\n let vueApp: VueApp | null = null;\n let rootElement: FrescoElement | null = null;\n let mounted = false;\n let running = false;\n let exitResolve: (() => void) | null = null;\n let needsRender = true;\n\n const { createApp: createVueApp } = createRenderer();\n\n async function mount() {\n if (mounted) return;\n\n const n = await loadNative();\n\n // Initialize terminal\n if (mouse) {\n n.initTerminalWithMouse();\n } else {\n n.initTerminal();\n }\n\n // Initialize layout engine\n n.initLayout();\n\n // Create Vue app with custom renderer\n const app = createVueApp(rootComponent);\n\n // Create a root element for mounting\n rootElement = {\n id: -1,\n type: \"root\",\n props: {\n style: {\n width: \"100%\",\n height: \"100%\",\n flexDirection: \"column\",\n justifyContent: \"flex-start\",\n alignItems: \"flex-start\",\n alignContent: \"flex-start\",\n },\n },\n children: [],\n parent: null,\n };\n\n app.mount(rootElement);\n vueApp = app;\n\n mounted = true;\n running = true;\n needsRender = true;\n\n // Start event loop\n void eventLoop();\n }\n\n async function unmount() {\n if (!mounted) return;\n\n running = false;\n\n const n = await loadNative();\n n.restoreTerminal();\n\n if (vueApp) {\n vueApp.unmount();\n vueApp = null;\n }\n\n rootElement = null;\n mounted = false;\n\n if (exitResolve) {\n exitResolve();\n }\n }\n\n async function waitUntilExit(): Promise<void> {\n return new Promise((resolve) => {\n exitResolve = resolve;\n });\n }\n\n function render() {\n if (!native || !mounted || !rootElement) {\n return;\n }\n\n try {\n // Convert Vue tree to render nodes\n const renderNodes = treeToRenderNodes(rootElement);\n\n // Send to native for rendering\n if (renderNodes.length > 0) {\n // Use renderTree which handles layout and painting\n native.renderTree(renderNodes as any);\n\n // Flush to display\n native.flushTerminal();\n }\n } catch (error) {\n if (onError) {\n onError(error as Error);\n } else {\n console.error(\"Render error:\", error);\n }\n }\n }\n\n async function getTerminalInfo() {\n const n = await loadNative();\n const info = n.getTerminalInfo();\n return { width: info.width, height: info.height };\n }\n\n async function eventLoop() {\n const n = await loadNative();\n\n while (running) {\n try {\n const event = n.pollEvent(16); // ~60fps\n\n if (event) {\n // Handle resize\n if (event.eventType === \"resize\") {\n n.syncTerminalSize();\n n.clearScreen();\n needsRender = true;\n }\n\n // Handle Ctrl+C\n if (\n exitOnCtrlC &&\n event.eventType === \"key\" &&\n event.char === \"c\" &&\n event.modifiers?.ctrl\n ) {\n await unmount();\n break;\n }\n\n // Dispatch key events\n if (event.eventType === \"key\") {\n lastKeyEvent.value = {\n type: \"key\",\n key: event.key ?? undefined,\n char: event.char ?? undefined,\n ctrl: event.modifiers?.ctrl ?? false,\n alt: event.modifiers?.alt ?? false,\n shift: event.modifiers?.shift ?? false,\n };\n }\n }\n\n // Render frame if needed\n if (needsRender) {\n render();\n needsRender = false;\n }\n\n // Schedule re-render (Vue reactivity will trigger updates)\n needsRender = true;\n } catch (error) {\n if (onError) {\n onError(error as Error);\n }\n }\n\n // Small delay to prevent busy loop\n await new Promise((resolve) => setTimeout(resolve, 16));\n }\n }\n\n return {\n mount,\n unmount,\n waitUntilExit,\n render,\n getTerminalInfo,\n };\n}\n","/**\n * useInput - Input handling composable\n */\n\nimport { ref, watch, isRef, type Ref } from \"@vue/runtime-core\";\nimport { lastKeyEvent } from \"../app.js\";\n\nexport interface KeyHandler {\n (key: string, modifiers: { ctrl: boolean; alt: boolean; shift: boolean }): void;\n}\n\nexport interface UseInputOptions {\n /** Whether to capture input (boolean or Ref<boolean>) */\n active?: boolean | Ref<boolean>;\n /** Whether to capture input (alias for active, boolean or Ref<boolean>) */\n isActive?: boolean | Ref<boolean>;\n /** Called on key press */\n onKey?: KeyHandler;\n /** Called on character input */\n onChar?: (char: string) => void;\n /** Called on Enter */\n onSubmit?: () => void;\n /** Called on Escape */\n onEscape?: () => void;\n /** Called on arrow keys */\n onArrow?: (direction: \"up\" | \"down\" | \"left\" | \"right\") => void;\n}\n\nexport function useInput(options: UseInputOptions = {}) {\n const {\n active = true,\n isActive: isActiveOption,\n onKey,\n onChar,\n onSubmit,\n onEscape,\n onArrow,\n } = options;\n\n // Support both active and isActive, prefer isActive if both provided\n const activeSource = isActiveOption ?? active;\n const isActive = isRef(activeSource) ? activeSource : ref(activeSource);\n const lastKey = ref<string | null>(null);\n\n // Watch for key events from the app\n watch(lastKeyEvent, (event) => {\n if (!event || !isActive.value) return;\n\n const modifiers = {\n ctrl: event.ctrl,\n alt: event.alt,\n shift: event.shift,\n };\n\n // Character input\n if (event.char) {\n lastKey.value = event.char;\n onChar?.(event.char);\n onKey?.(event.char, modifiers);\n return;\n }\n\n // Special keys\n if (event.key) {\n lastKey.value = event.key;\n onKey?.(event.key, modifiers);\n\n switch (event.key) {\n case \"enter\":\n onSubmit?.();\n break;\n case \"escape\":\n onEscape?.();\n break;\n case \"up\":\n case \"down\":\n case \"left\":\n case \"right\":\n onArrow?.(event.key as \"up\" | \"down\" | \"left\" | \"right\");\n break;\n }\n }\n });\n\n const enable = () => {\n isActive.value = true;\n };\n\n const disable = () => {\n isActive.value = false;\n };\n\n return {\n isActive,\n lastKey,\n enable,\n disable,\n };\n}\n\n/**\n * Shorthand for handling specific key combinations\n */\nexport function useKeyPress(\n key: string,\n handler: () => void,\n options: { ctrl?: boolean; alt?: boolean; shift?: boolean } = {},\n) {\n const { ctrl = false, alt = false, shift = false } = options;\n\n useInput({\n onKey: (pressedKey, modifiers) => {\n const matches =\n pressedKey.toLowerCase() === key.toLowerCase() &&\n modifiers.ctrl === ctrl &&\n modifiers.alt === alt &&\n modifiers.shift === shift;\n\n if (matches) {\n handler();\n }\n },\n });\n}\n"],"mappings":";;;;;AA4BA,IAAI,SAAS;AAEb,SAAS,WAAW,MAAsC;AACxD,QAAO;EACL,IAAI;EACJ;EACA,OAAO,EAAE;EACT,UAAU,EAAE;EACZ,QAAQ;EACT;;;;;AAMH,MAAM,kBAA8D;CAClE,UAAU,IAAI,KAAK,WAAW,WAAW;AACvC,KAAG,MAAM,OAAO;;CAGlB,OAAO,OAAO,QAAQ,QAAQ;AAC5B,QAAM,SAAS;AACf,MAAI,QAAQ;GACV,MAAM,QAAQ,OAAO,SAAS,QAAQ,OAAO;AAC7C,OAAI,UAAU,IAAI;AAChB,WAAO,SAAS,OAAO,OAAO,GAAG,MAAM;AACvC;;;AAGJ,SAAO,SAAS,KAAK,MAAM;;CAG7B,OAAO,OAAO;AACZ,MAAI,MAAM,QAAQ;GAChB,MAAM,QAAQ,MAAM,OAAO,SAAS,QAAQ,MAAM;AAClD,OAAI,UAAU,GACZ,OAAM,OAAO,SAAS,OAAO,OAAO,EAAE;AAExC,SAAM,SAAS;;;CAInB,cAAc,MAAM;AAElB,SAAO,WADU,eAAe,KAAK,CACV;;CAG7B,WAAW,MAAM;EACf,MAAM,OAAO,WAAW,OAAO;AAC/B,OAAK,OAAO;AACZ,SAAO;;CAGT,gBAAgB;AAEd,SAAO,WAAW,OAAO;;CAG3B,QAAQ,MAAM,MAAM;AAClB,OAAK,OAAO;;CAGd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AS,UAA2B,EAAE,EAAE;CACtD,MAAM,EACJ,SAAS,MACT,UAAU,gBACV,OACA,QACA,UACA,UACA,YACE;CAGJ,MAAM,eAAe,kBAAkB;CACvC,MAAM,WAAW,MAAM,aAAa,GAAG,eAAe,IAAI,aAAa;CACvE,MAAM,UAAU,IAAmB,KAAK;AAGxC,OAAM,eAAe,UAAU;AAC7B,MAAI,CAAC,SAAS,CAAC,SAAS,MAAO;EAE/B,MAAM,YAAY;GAChB,MAAM,MAAM;GACZ,KAAK,MAAM;GACX,OAAO,MAAM;GACd;AAGD,MAAI,MAAM,MAAM;AACd,WAAQ,QAAQ,MAAM;AACtB,YAAS,MAAM,KAAK;AACpB,WAAQ,MAAM,MAAM,UAAU;AAC9B;;AAIF,MAAI,MAAM,KAAK;AACb,WAAQ,QAAQ,MAAM;AACtB,WAAQ,MAAM,KAAK,UAAU;AAE7B,WAAQ,MAAM,KAAd;IACE,KAAK;AACH,iBAAY;AACZ;IACF,KAAK;AACH,iBAAY;AACZ;IACF,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACH,eAAU,MAAM,IAAwC;AACxD;;;GAGN;CAEF,MAAM,eAAe;AACnB,WAAS,QAAQ;;CAGnB,MAAM,gBAAgB;AACpB,WAAS,QAAQ;;AAGnB,QAAO;EACL;EACA;EACA;EACA;EACD"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/fresco",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Vue TUI framework - Build terminal UIs with Vue.js",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"fresco",
|
|
8
|
+
"ink",
|
|
9
|
+
"terminal",
|
|
10
|
+
"tui",
|
|
11
|
+
"vize",
|
|
12
|
+
"vue"
|
|
13
|
+
],
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/ubugeeei/vize",
|
|
18
|
+
"directory": "npm/fresco"
|
|
7
19
|
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist"
|
|
22
|
+
],
|
|
8
23
|
"type": "module",
|
|
9
24
|
"main": "./dist/index.js",
|
|
10
25
|
"types": "./dist/index.d.ts",
|
|
@@ -22,42 +37,26 @@
|
|
|
22
37
|
"types": "./dist/composables/index.d.ts"
|
|
23
38
|
}
|
|
24
39
|
},
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
],
|
|
28
|
-
"keywords": [
|
|
29
|
-
"vue",
|
|
30
|
-
"tui",
|
|
31
|
-
"terminal",
|
|
32
|
-
"cli",
|
|
33
|
-
"ink",
|
|
34
|
-
"fresco",
|
|
35
|
-
"vize"
|
|
36
|
-
],
|
|
37
|
-
"license": "MIT",
|
|
38
|
-
"repository": {
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "https://github.com/ubugeeei/vize",
|
|
41
|
-
"directory": "npm/fresco"
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@vizejs/fresco-native": "0.
|
|
45
|
-
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
"@vue/runtime-core": "^3.4.0"
|
|
44
|
+
"@vizejs/fresco-native": "0.35.0"
|
|
48
45
|
},
|
|
49
46
|
"devDependencies": {
|
|
50
47
|
"@types/node": "^22.0.0",
|
|
51
48
|
"@vue/runtime-core": "^3.5.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
49
|
+
"typescript": "~5.6.0",
|
|
50
|
+
"vite-plus": "latest"
|
|
51
|
+
},
|
|
52
|
+
"peerDependencies": {
|
|
53
|
+
"@vue/runtime-core": "^3.4.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
|
-
"build": "
|
|
57
|
-
"dev": "
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"fmt": "
|
|
61
|
-
"fmt:check": "oxfmt src tsdown.config.ts"
|
|
56
|
+
"build": "vp pack",
|
|
57
|
+
"dev": "vp pack --watch",
|
|
58
|
+
"check": "vp check src vite.config.ts",
|
|
59
|
+
"check:fix": "vp check --fix src vite.config.ts",
|
|
60
|
+
"fmt": "vp fmt --write src vite.config.ts"
|
|
62
61
|
}
|
|
63
62
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { Alert$1 as Alert, AlertProps, AlertType, Avatar$1 as Avatar, AvatarProps, Badge$1 as Badge, BadgeProps, BadgeVariant, Box$1 as Box, BoxProps, Breadcrumb$1 as Breadcrumb, BreadcrumbItem, BreadcrumbProps, Card$1 as Card, CardProps, Checkbox$1 as Checkbox, CheckboxProps, Code$1 as Code, CodeProps, Confirm$1 as Confirm, ConfirmProps, Divider$1 as Divider, DividerProps, Form$1 as Form, FormField, FormProps, Grid$1 as Grid, GridProps, HStack$1 as HStack, Header$1 as Header, HeaderProps, KeyBinding, KeyHint$1 as KeyHint, KeyHintProps, Link$1 as Link, LinkProps, List$1 as List, ListItem, ListProps, Menu$1 as Menu, MenuItem, MenuProps, Modal$1 as Modal, ModalProps, ProgressBar$1 as ProgressBar, ProgressBarProps, RadioGroup$1 as RadioGroup, RadioGroupProps, RadioOption, Select$1 as Select, SelectOption, SelectProps, Spinner$1 as Spinner, SpinnerProps, Stack$1 as Stack, StackProps, StatusBar$1 as StatusBar, StatusBarItem, StatusBarProps, Step, StepStatus, Stepper$1 as Stepper, StepperProps, Tab, Table$1 as Table, TableColumn, TableProps, Tabs$1 as Tabs, TabsProps, Text$1 as Text, TextArea$1 as TextArea, TextAreaProps, TextInput$1 as TextInput, TextInputProps, TextProps, Timer$1 as Timer, TimerMode, TimerProps, Tooltip$1 as Tooltip, TooltipPosition, TooltipProps, Tree$1 as Tree, TreeNode, TreeProps, VStack$1 as VStack } from "../index-C6ATca97.js";
|
|
2
|
-
export { Alert, AlertProps, AlertType, Avatar, AvatarProps, Badge, BadgeProps, BadgeVariant, Box, BoxProps, Breadcrumb, BreadcrumbItem, BreadcrumbProps, Card, CardProps, Checkbox, CheckboxProps, Code, CodeProps, Confirm, ConfirmProps, Divider, DividerProps, Form, FormField, FormProps, Grid, GridProps, HStack, Header, HeaderProps, KeyBinding, KeyHint, KeyHintProps, Link, LinkProps, List, ListItem, ListProps, Menu, MenuItem, MenuProps, Modal, ModalProps, ProgressBar, ProgressBarProps, RadioGroup, RadioGroupProps, RadioOption, Select, SelectOption, SelectProps, Spinner, SpinnerProps, Stack, StackProps, StatusBar, StatusBarItem, StatusBarProps, Step, StepStatus, Stepper, StepperProps, Tab, Table, TableColumn, TableProps, Tabs, TabsProps, Text, TextArea, TextAreaProps, TextInput, TextInputProps, TextProps, Timer, TimerMode, TimerProps, Tooltip, TooltipPosition, TooltipProps, Tree, TreeNode, TreeProps, VStack };
|
package/dist/components/index.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "../useInput-CvEslk0z.js";
|
|
2
|
-
import { Alert, Avatar, Badge, Box, Breadcrumb, Card, Checkbox, Code, Confirm, Divider, Form, Grid, HStack, Header, KeyHint, Link, List, Menu, Modal, ProgressBar, RadioGroup, Select, Spinner, Stack, StatusBar, Stepper, Table, Tabs, Text, TextArea, TextInput, Timer, Tooltip, Tree, VStack } from "../components-DtI-O8Cr.js";
|
|
3
|
-
|
|
4
|
-
export { Alert, Avatar, Badge, Box, Breadcrumb, Card, Checkbox, Code, Confirm, Divider, Form, Grid, HStack, Header, KeyHint, Link, List, Menu, Modal, ProgressBar, RadioGroup, Select, Spinner, Stack, StatusBar, Stepper, Table, Tabs, Text, TextArea, TextInput, Timer, Tooltip, Tree, VStack };
|