@vantageos/mosaic 0.3.1 → 0.5.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/CHANGELOG.md +88 -2
- package/LICENSE +110 -0
- package/README.md +193 -21
- package/dist/PipelineBoard-FucyGArR.d.cts +759 -0
- package/dist/PipelineBoard-FucyGArR.d.ts +759 -0
- package/dist/PipelineBoard.markdown-DIcvrS-2.d.cts +16 -0
- package/dist/PipelineBoard.markdown-DIcvrS-2.d.ts +16 -0
- package/dist/{StatusBadge.schema-1tOjB4Ir.d.cts → StatusBadge.schema-BEjSH2_4.d.cts} +2 -2
- package/dist/{StatusBadge.schema-1tOjB4Ir.d.ts → StatusBadge.schema-BEjSH2_4.d.ts} +2 -2
- package/dist/{Tabs.schema-BzcEyeq8.d.cts → Tabs.schema-Dqr6vwV3.d.cts} +2 -2
- package/dist/{Tabs.schema-BzcEyeq8.d.ts → Tabs.schema-Dqr6vwV3.d.ts} +2 -2
- package/dist/Timeline-Coo_3tA_.d.cts +114 -0
- package/dist/Timeline-Coo_3tA_.d.ts +114 -0
- package/dist/Timeline.markdown-C6UPDv1H.d.cts +4 -0
- package/dist/Timeline.markdown-C6UPDv1H.d.ts +4 -0
- package/dist/TransactionPreview-BzWDn8kE.d.cts +391 -0
- package/dist/TransactionPreview-BzWDn8kE.d.ts +391 -0
- package/dist/TransactionPreview.markdown-Dpb0VYgN.d.cts +7 -0
- package/dist/TransactionPreview.markdown-Dpb0VYgN.d.ts +7 -0
- package/dist/artifacts.cjs +190 -2
- package/dist/artifacts.cjs.map +1 -1
- package/dist/artifacts.js +190 -2
- package/dist/artifacts.js.map +1 -1
- package/dist/confirmation.cjs +728 -2
- package/dist/confirmation.cjs.map +1 -1
- package/dist/confirmation.d.cts +2 -1
- package/dist/confirmation.d.ts +2 -1
- package/dist/confirmation.js +726 -4
- package/dist/confirmation.js.map +1 -1
- package/dist/display.cjs +1555 -203
- package/dist/display.cjs.map +1 -1
- package/dist/display.d.cts +6 -229
- package/dist/display.d.ts +6 -229
- package/dist/display.js +1539 -206
- package/dist/display.js.map +1 -1
- package/dist/forms.cjs +139 -46
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.d.cts +2 -2
- package/dist/forms.d.ts +2 -2
- package/dist/forms.js +139 -46
- package/dist/forms.js.map +1 -1
- package/dist/host.cjs +822 -0
- package/dist/host.cjs.map +1 -0
- package/dist/host.d.cts +287 -0
- package/dist/host.d.ts +287 -0
- package/dist/host.js +794 -0
- package/dist/host.js.map +1 -0
- package/dist/{index-CwXVgtGb.d.cts → index-BadRcCbm.d.cts} +28 -11
- package/dist/{index-CwXVgtGb.d.ts → index-BadRcCbm.d.ts} +28 -11
- package/dist/index.cjs +2202 -247
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -8
- package/dist/index.d.ts +42 -8
- package/dist/index.js +2167 -251
- package/dist/index.js.map +1 -1
- package/dist/input.d.cts +2 -2
- package/dist/input.d.ts +2 -2
- package/dist/media.cjs +190 -2
- package/dist/media.cjs.map +1 -1
- package/dist/media.d.cts +1 -1
- package/dist/media.d.ts +1 -1
- package/dist/media.js +190 -2
- package/dist/media.js.map +1 -1
- package/dist/preact/artifacts.js +190 -2
- package/dist/preact/artifacts.js.map +1 -1
- package/dist/preact/confirmation.d.ts +321 -1
- package/dist/preact/confirmation.js +629 -4
- package/dist/preact/confirmation.js.map +1 -1
- package/dist/preact/display.d.ts +570 -31
- package/dist/preact/display.js +1248 -126
- package/dist/preact/display.js.map +1 -1
- package/dist/preact/forms.d.ts +32 -15
- package/dist/preact/forms.js +139 -46
- package/dist/preact/forms.js.map +1 -1
- package/dist/preact/host.d.ts +307 -0
- package/dist/preact/host.js +875 -0
- package/dist/preact/host.js.map +1 -0
- package/dist/preact/media.d.ts +37 -1
- package/dist/preact/media.js +423 -0
- package/dist/preact/media.js.map +1 -1
- package/dist/preact/progress.d.ts +92 -1
- package/dist/preact/progress.js +469 -3
- package/dist/preact/progress.js.map +1 -1
- package/dist/progress.cjs +525 -2
- package/dist/progress.cjs.map +1 -1
- package/dist/progress.d.cts +2 -1
- package/dist/progress.d.ts +2 -1
- package/dist/progress.js +522 -3
- package/dist/progress.js.map +1 -1
- package/dist/react/artifacts.cjs +190 -2
- package/dist/react/artifacts.cjs.map +1 -1
- package/dist/react/artifacts.js +190 -2
- package/dist/react/artifacts.js.map +1 -1
- package/dist/react/confirmation.cjs +630 -2
- package/dist/react/confirmation.cjs.map +1 -1
- package/dist/react/confirmation.d.cts +3 -3
- package/dist/react/confirmation.d.ts +3 -3
- package/dist/react/confirmation.js +629 -4
- package/dist/react/confirmation.js.map +1 -1
- package/dist/react/display.cjs +1137 -123
- package/dist/react/display.cjs.map +1 -1
- package/dist/react/display.d.cts +42 -14
- package/dist/react/display.d.ts +42 -14
- package/dist/react/display.js +1122 -126
- package/dist/react/display.js.map +1 -1
- package/dist/react/forms.cjs +139 -46
- package/dist/react/forms.cjs.map +1 -1
- package/dist/react/forms.d.cts +1 -1
- package/dist/react/forms.d.ts +1 -1
- package/dist/react/forms.js +139 -46
- package/dist/react/forms.js.map +1 -1
- package/dist/react/host.cjs +910 -0
- package/dist/react/host.cjs.map +1 -0
- package/dist/react/host.d.cts +24 -0
- package/dist/react/host.d.ts +24 -0
- package/dist/react/host.js +875 -0
- package/dist/react/host.js.map +1 -0
- package/dist/react/input.d.cts +1 -1
- package/dist/react/input.d.ts +1 -1
- package/dist/react/media.cjs +426 -0
- package/dist/react/media.cjs.map +1 -1
- package/dist/react/media.d.cts +19 -1
- package/dist/react/media.d.ts +19 -1
- package/dist/react/media.js +423 -0
- package/dist/react/media.js.map +1 -1
- package/dist/react/progress.cjs +471 -2
- package/dist/react/progress.cjs.map +1 -1
- package/dist/react/progress.d.cts +1 -1
- package/dist/react/progress.d.ts +1 -1
- package/dist/react/progress.js +469 -3
- package/dist/react/progress.js.map +1 -1
- package/dist/server/resource.cjs +151 -0
- package/dist/server/resource.cjs.map +1 -0
- package/dist/server/resource.d.cts +90 -0
- package/dist/server/resource.d.ts +90 -0
- package/dist/server/resource.js +147 -0
- package/dist/server/resource.js.map +1 -0
- package/dist/server.cjs +1100 -25
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +84 -5
- package/dist/server.d.ts +84 -5
- package/dist/server.js +1087 -27
- package/dist/server.js.map +1 -1
- package/dist/tokens.cjs +73 -22
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.d.cts +23 -3
- package/dist/tokens.d.ts +23 -3
- package/dist/tokens.js +73 -22
- package/dist/tokens.js.map +1 -1
- package/package.json +250 -231
- package/registry.yaml +51 -2
- package/dist/Alert.schema-LPJE5gFP.d.cts +0 -71
- package/dist/Alert.schema-LPJE5gFP.d.ts +0 -71
- package/dist/ProgressBar.schema-CdVYx0Wq.d.cts +0 -22
- package/dist/ProgressBar.schema-CdVYx0Wq.d.ts +0 -22
- package/dist/{ConfirmDialog-B3CQQGmJ.d.cts → ConfirmDialog-BCtOcmHe.d.cts} +1 -1
- package/dist/{ConfirmDialog-B3CQQGmJ.d.ts → ConfirmDialog-BCtOcmHe.d.ts} +1 -1
|
@@ -0,0 +1,391 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
|
|
4
|
+
declare const TokenDisplayOnceModalPropsSchema: z.ZodObject<{
|
|
5
|
+
token: z.ZodString;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
warningMessage: z.ZodString;
|
|
8
|
+
copyLabel: z.ZodString;
|
|
9
|
+
closeLabel: z.ZodString;
|
|
10
|
+
/** Non-secret metadata, shown in the view AND carried by the A-1 fallback. */
|
|
11
|
+
scope: z.ZodOptional<z.ZodString>;
|
|
12
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
13
|
+
/** Supplied by the issuer; NEVER derived from the secret. */
|
|
14
|
+
fingerprint: z.ZodOptional<z.ZodString>;
|
|
15
|
+
locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
locale: "en" | "fr";
|
|
18
|
+
title: string;
|
|
19
|
+
token: string;
|
|
20
|
+
warningMessage: string;
|
|
21
|
+
copyLabel: string;
|
|
22
|
+
closeLabel: string;
|
|
23
|
+
scope?: string | undefined;
|
|
24
|
+
expiresAt?: string | undefined;
|
|
25
|
+
fingerprint?: string | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
title: string;
|
|
28
|
+
token: string;
|
|
29
|
+
warningMessage: string;
|
|
30
|
+
copyLabel: string;
|
|
31
|
+
closeLabel: string;
|
|
32
|
+
locale?: "en" | "fr" | undefined;
|
|
33
|
+
scope?: string | undefined;
|
|
34
|
+
expiresAt?: string | undefined;
|
|
35
|
+
fingerprint?: string | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
type TokenDisplayOnceModalProps = z.infer<typeof TokenDisplayOnceModalPropsSchema> & {
|
|
38
|
+
onClose: () => void;
|
|
39
|
+
};
|
|
40
|
+
declare function validateTokenDisplayOnceModalProps(raw: unknown): z.infer<typeof TokenDisplayOnceModalPropsSchema>;
|
|
41
|
+
|
|
42
|
+
declare function TokenDisplayOnceModal(raw: Omit<TokenDisplayOnceModalProps, "locale"> & Partial<Pick<TokenDisplayOnceModalProps, "locale">>): react_jsx_runtime.JSX.Element | null;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Alert component props schema.
|
|
46
|
+
*
|
|
47
|
+
* Persistent inline banner (vs Toast which is ephemeral + auto-dismissing).
|
|
48
|
+
*
|
|
49
|
+
* variant — controls visual style + ARIA role auto-assignment:
|
|
50
|
+
* "error" → role="alert" (assertive, interrupts screen reader)
|
|
51
|
+
* all others → role="status" (polite, non-intrusive)
|
|
52
|
+
* title — consumer-driven; caller passes already-localized string
|
|
53
|
+
* description — optional supporting text beneath the title
|
|
54
|
+
* dismissible — when true, renders a dismiss button (default: false)
|
|
55
|
+
* onDismiss — callback fired when dismiss button is clicked
|
|
56
|
+
* locale — controls dismiss button aria-label language
|
|
57
|
+
*/
|
|
58
|
+
declare const AlertPropsSchema: z.ZodObject<{
|
|
59
|
+
variant: z.ZodEnum<["success", "error", "info", "warning"]>;
|
|
60
|
+
title: z.ZodString;
|
|
61
|
+
description: z.ZodOptional<z.ZodString>;
|
|
62
|
+
dismissible: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
+
locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
locale: "en" | "fr";
|
|
66
|
+
title: string;
|
|
67
|
+
variant: "warning" | "error" | "success" | "info";
|
|
68
|
+
dismissible: boolean;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
}, {
|
|
71
|
+
title: string;
|
|
72
|
+
variant: "warning" | "error" | "success" | "info";
|
|
73
|
+
locale?: "en" | "fr" | undefined;
|
|
74
|
+
description?: string | undefined;
|
|
75
|
+
dismissible?: boolean | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
type AlertProps = z.infer<typeof AlertPropsSchema> & {
|
|
78
|
+
onDismiss?: () => void;
|
|
79
|
+
};
|
|
80
|
+
declare function validateAlertProps(raw: unknown): z.infer<typeof AlertPropsSchema>;
|
|
81
|
+
|
|
82
|
+
declare const AmountSchema: z.ZodObject<{
|
|
83
|
+
/** Decimal STRING (never a float). */
|
|
84
|
+
value: z.ZodString;
|
|
85
|
+
symbol: z.ZodString;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
symbol: string;
|
|
88
|
+
value: string;
|
|
89
|
+
}, {
|
|
90
|
+
symbol: string;
|
|
91
|
+
value: string;
|
|
92
|
+
}>;
|
|
93
|
+
declare const QuoteSchema: z.ZodObject<{
|
|
94
|
+
sell: z.ZodObject<{
|
|
95
|
+
/** Decimal STRING (never a float). */
|
|
96
|
+
value: z.ZodString;
|
|
97
|
+
symbol: z.ZodString;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
symbol: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}, {
|
|
102
|
+
symbol: string;
|
|
103
|
+
value: string;
|
|
104
|
+
}>;
|
|
105
|
+
buy: z.ZodObject<{
|
|
106
|
+
/** Decimal STRING (never a float). */
|
|
107
|
+
value: z.ZodString;
|
|
108
|
+
symbol: z.ZodString;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
symbol: string;
|
|
111
|
+
value: string;
|
|
112
|
+
}, {
|
|
113
|
+
symbol: string;
|
|
114
|
+
value: string;
|
|
115
|
+
}>;
|
|
116
|
+
minReceived: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
/** Decimal STRING (never a float). */
|
|
118
|
+
value: z.ZodString;
|
|
119
|
+
symbol: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
symbol: string;
|
|
122
|
+
value: string;
|
|
123
|
+
}, {
|
|
124
|
+
symbol: string;
|
|
125
|
+
value: string;
|
|
126
|
+
}>>;
|
|
127
|
+
route: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
128
|
+
/** Percent as a decimal string, e.g. "0.42". */
|
|
129
|
+
priceImpact: z.ZodOptional<z.ZodString>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
sell: {
|
|
132
|
+
symbol: string;
|
|
133
|
+
value: string;
|
|
134
|
+
};
|
|
135
|
+
buy: {
|
|
136
|
+
symbol: string;
|
|
137
|
+
value: string;
|
|
138
|
+
};
|
|
139
|
+
minReceived?: {
|
|
140
|
+
symbol: string;
|
|
141
|
+
value: string;
|
|
142
|
+
} | undefined;
|
|
143
|
+
route?: string[] | undefined;
|
|
144
|
+
priceImpact?: string | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
sell: {
|
|
147
|
+
symbol: string;
|
|
148
|
+
value: string;
|
|
149
|
+
};
|
|
150
|
+
buy: {
|
|
151
|
+
symbol: string;
|
|
152
|
+
value: string;
|
|
153
|
+
};
|
|
154
|
+
minReceived?: {
|
|
155
|
+
symbol: string;
|
|
156
|
+
value: string;
|
|
157
|
+
} | undefined;
|
|
158
|
+
route?: string[] | undefined;
|
|
159
|
+
priceImpact?: string | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
type TransactionAmount = z.infer<typeof AmountSchema>;
|
|
162
|
+
type TransactionQuote = z.infer<typeof QuoteSchema>;
|
|
163
|
+
/**
|
|
164
|
+
* TransactionPreview (R11): a transaction the server PREPARED and never signs — shape follows
|
|
165
|
+
* fuse-mcp-server `getTradeQuote.ts` (expected output, route, price impact; read-only). There
|
|
166
|
+
* is deliberately no field for a signature, a signer, a raw transaction or an execute action
|
|
167
|
+
* (R12 refused): the only exit is an optional `handoff` link to the user's wallet. OpenAI's
|
|
168
|
+
* public directory prohibits executing crypto transfers, so the view stops at the preview.
|
|
169
|
+
* `{}` parses (empty state).
|
|
170
|
+
*/
|
|
171
|
+
declare const TransactionPreviewPropsSchema: z.ZodObject<{
|
|
172
|
+
kind: z.ZodDefault<z.ZodEnum<["transfer", "swap"]>>;
|
|
173
|
+
network: z.ZodOptional<z.ZodString>;
|
|
174
|
+
testnet: z.ZodDefault<z.ZodBoolean>;
|
|
175
|
+
from: z.ZodOptional<z.ZodString>;
|
|
176
|
+
to: z.ZodOptional<z.ZodString>;
|
|
177
|
+
amount: z.ZodOptional<z.ZodObject<{
|
|
178
|
+
/** Decimal STRING (never a float). */
|
|
179
|
+
value: z.ZodString;
|
|
180
|
+
symbol: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
symbol: string;
|
|
183
|
+
value: string;
|
|
184
|
+
}, {
|
|
185
|
+
symbol: string;
|
|
186
|
+
value: string;
|
|
187
|
+
}>>;
|
|
188
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
189
|
+
/** Decimal STRING (never a float). */
|
|
190
|
+
value: z.ZodString;
|
|
191
|
+
symbol: z.ZodString;
|
|
192
|
+
}, "strip", z.ZodTypeAny, {
|
|
193
|
+
symbol: string;
|
|
194
|
+
value: string;
|
|
195
|
+
}, {
|
|
196
|
+
symbol: string;
|
|
197
|
+
value: string;
|
|
198
|
+
}>>;
|
|
199
|
+
quote: z.ZodOptional<z.ZodObject<{
|
|
200
|
+
sell: z.ZodObject<{
|
|
201
|
+
/** Decimal STRING (never a float). */
|
|
202
|
+
value: z.ZodString;
|
|
203
|
+
symbol: z.ZodString;
|
|
204
|
+
}, "strip", z.ZodTypeAny, {
|
|
205
|
+
symbol: string;
|
|
206
|
+
value: string;
|
|
207
|
+
}, {
|
|
208
|
+
symbol: string;
|
|
209
|
+
value: string;
|
|
210
|
+
}>;
|
|
211
|
+
buy: z.ZodObject<{
|
|
212
|
+
/** Decimal STRING (never a float). */
|
|
213
|
+
value: z.ZodString;
|
|
214
|
+
symbol: z.ZodString;
|
|
215
|
+
}, "strip", z.ZodTypeAny, {
|
|
216
|
+
symbol: string;
|
|
217
|
+
value: string;
|
|
218
|
+
}, {
|
|
219
|
+
symbol: string;
|
|
220
|
+
value: string;
|
|
221
|
+
}>;
|
|
222
|
+
minReceived: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
/** Decimal STRING (never a float). */
|
|
224
|
+
value: z.ZodString;
|
|
225
|
+
symbol: z.ZodString;
|
|
226
|
+
}, "strip", z.ZodTypeAny, {
|
|
227
|
+
symbol: string;
|
|
228
|
+
value: string;
|
|
229
|
+
}, {
|
|
230
|
+
symbol: string;
|
|
231
|
+
value: string;
|
|
232
|
+
}>>;
|
|
233
|
+
route: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
234
|
+
/** Percent as a decimal string, e.g. "0.42". */
|
|
235
|
+
priceImpact: z.ZodOptional<z.ZodString>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
sell: {
|
|
238
|
+
symbol: string;
|
|
239
|
+
value: string;
|
|
240
|
+
};
|
|
241
|
+
buy: {
|
|
242
|
+
symbol: string;
|
|
243
|
+
value: string;
|
|
244
|
+
};
|
|
245
|
+
minReceived?: {
|
|
246
|
+
symbol: string;
|
|
247
|
+
value: string;
|
|
248
|
+
} | undefined;
|
|
249
|
+
route?: string[] | undefined;
|
|
250
|
+
priceImpact?: string | undefined;
|
|
251
|
+
}, {
|
|
252
|
+
sell: {
|
|
253
|
+
symbol: string;
|
|
254
|
+
value: string;
|
|
255
|
+
};
|
|
256
|
+
buy: {
|
|
257
|
+
symbol: string;
|
|
258
|
+
value: string;
|
|
259
|
+
};
|
|
260
|
+
minReceived?: {
|
|
261
|
+
symbol: string;
|
|
262
|
+
value: string;
|
|
263
|
+
} | undefined;
|
|
264
|
+
route?: string[] | undefined;
|
|
265
|
+
priceImpact?: string | undefined;
|
|
266
|
+
}>>;
|
|
267
|
+
simulation: z.ZodOptional<z.ZodObject<{
|
|
268
|
+
status: z.ZodEnum<["success", "failed", "unavailable"]>;
|
|
269
|
+
message: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
status: "success" | "failed" | "unavailable";
|
|
272
|
+
message?: string | undefined;
|
|
273
|
+
}, {
|
|
274
|
+
status: "success" | "failed" | "unavailable";
|
|
275
|
+
message?: string | undefined;
|
|
276
|
+
}>>;
|
|
277
|
+
warnings: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
278
|
+
/** ISO 8601 expiry of the quote. */
|
|
279
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
280
|
+
/** Wallet link-out. Only http(s) urls are ever rendered. */
|
|
281
|
+
handoff: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
url: z.ZodString;
|
|
283
|
+
}, "strip", z.ZodTypeAny, {
|
|
284
|
+
url: string;
|
|
285
|
+
}, {
|
|
286
|
+
url: string;
|
|
287
|
+
}>>;
|
|
288
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
289
|
+
loading: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
+
locale: z.ZodDefault<z.ZodEnum<["en", "fr"]>>;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
locale: "en" | "fr";
|
|
293
|
+
loading: boolean;
|
|
294
|
+
testnet: boolean;
|
|
295
|
+
kind: "transfer" | "swap";
|
|
296
|
+
warnings: string[];
|
|
297
|
+
timeZone?: string | undefined;
|
|
298
|
+
amount?: {
|
|
299
|
+
symbol: string;
|
|
300
|
+
value: string;
|
|
301
|
+
} | undefined;
|
|
302
|
+
network?: string | undefined;
|
|
303
|
+
expiresAt?: string | undefined;
|
|
304
|
+
from?: string | undefined;
|
|
305
|
+
to?: string | undefined;
|
|
306
|
+
fee?: {
|
|
307
|
+
symbol: string;
|
|
308
|
+
value: string;
|
|
309
|
+
} | undefined;
|
|
310
|
+
quote?: {
|
|
311
|
+
sell: {
|
|
312
|
+
symbol: string;
|
|
313
|
+
value: string;
|
|
314
|
+
};
|
|
315
|
+
buy: {
|
|
316
|
+
symbol: string;
|
|
317
|
+
value: string;
|
|
318
|
+
};
|
|
319
|
+
minReceived?: {
|
|
320
|
+
symbol: string;
|
|
321
|
+
value: string;
|
|
322
|
+
} | undefined;
|
|
323
|
+
route?: string[] | undefined;
|
|
324
|
+
priceImpact?: string | undefined;
|
|
325
|
+
} | undefined;
|
|
326
|
+
simulation?: {
|
|
327
|
+
status: "success" | "failed" | "unavailable";
|
|
328
|
+
message?: string | undefined;
|
|
329
|
+
} | undefined;
|
|
330
|
+
handoff?: {
|
|
331
|
+
url: string;
|
|
332
|
+
} | undefined;
|
|
333
|
+
}, {
|
|
334
|
+
locale?: "en" | "fr" | undefined;
|
|
335
|
+
timeZone?: string | undefined;
|
|
336
|
+
loading?: boolean | undefined;
|
|
337
|
+
amount?: {
|
|
338
|
+
symbol: string;
|
|
339
|
+
value: string;
|
|
340
|
+
} | undefined;
|
|
341
|
+
network?: string | undefined;
|
|
342
|
+
testnet?: boolean | undefined;
|
|
343
|
+
expiresAt?: string | undefined;
|
|
344
|
+
kind?: "transfer" | "swap" | undefined;
|
|
345
|
+
from?: string | undefined;
|
|
346
|
+
to?: string | undefined;
|
|
347
|
+
fee?: {
|
|
348
|
+
symbol: string;
|
|
349
|
+
value: string;
|
|
350
|
+
} | undefined;
|
|
351
|
+
quote?: {
|
|
352
|
+
sell: {
|
|
353
|
+
symbol: string;
|
|
354
|
+
value: string;
|
|
355
|
+
};
|
|
356
|
+
buy: {
|
|
357
|
+
symbol: string;
|
|
358
|
+
value: string;
|
|
359
|
+
};
|
|
360
|
+
minReceived?: {
|
|
361
|
+
symbol: string;
|
|
362
|
+
value: string;
|
|
363
|
+
} | undefined;
|
|
364
|
+
route?: string[] | undefined;
|
|
365
|
+
priceImpact?: string | undefined;
|
|
366
|
+
} | undefined;
|
|
367
|
+
simulation?: {
|
|
368
|
+
status: "success" | "failed" | "unavailable";
|
|
369
|
+
message?: string | undefined;
|
|
370
|
+
} | undefined;
|
|
371
|
+
warnings?: string[] | undefined;
|
|
372
|
+
handoff?: {
|
|
373
|
+
url: string;
|
|
374
|
+
} | undefined;
|
|
375
|
+
}>;
|
|
376
|
+
type TransactionPreviewProps = z.input<typeof TransactionPreviewPropsSchema>;
|
|
377
|
+
type TransactionPreviewPropsOutput = z.output<typeof TransactionPreviewPropsSchema>;
|
|
378
|
+
declare function validateTransactionPreviewProps(raw: unknown): TransactionPreviewPropsOutput;
|
|
379
|
+
|
|
380
|
+
type TransactionPreviewViewProps = TransactionPreviewProps & {
|
|
381
|
+
/** Hand the user to their wallet (host `ui/open-link`, see `openLink` in ./host). */
|
|
382
|
+
onHandoff?: (url: string) => void;
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* TransactionPreview — a PREPARED transaction, never signed. Full addresses are shown (a user
|
|
386
|
+
* verifies the whole address). The view has no sign, send, approve or confirm control — the only
|
|
387
|
+
* action is an optional hand-off to the user's wallet, at most one (Claude allows two actions).
|
|
388
|
+
*/
|
|
389
|
+
declare function TransactionPreview(raw?: TransactionPreviewViewProps): react_jsx_runtime.JSX.Element;
|
|
390
|
+
|
|
391
|
+
export { type AlertProps as A, TokenDisplayOnceModal as T, AlertPropsSchema as a, type TokenDisplayOnceModalProps as b, TokenDisplayOnceModalPropsSchema as c, type TransactionAmount as d, TransactionPreview as e, type TransactionPreviewProps as f, type TransactionPreviewPropsOutput as g, TransactionPreviewPropsSchema as h, type TransactionPreviewViewProps as i, type TransactionQuote as j, validateTokenDisplayOnceModalProps as k, validateTransactionPreviewProps as l, validateAlertProps as v };
|