@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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A-1 fallback (mandatory for this view): the field table plus the sentence "NOT SIGNED -
|
|
3
|
+
* preparation only". The sentence is present even when there is nothing to preview.
|
|
4
|
+
*/
|
|
5
|
+
declare function transactionPreviewToMarkdown(props: unknown, locale?: "en" | "fr"): string;
|
|
6
|
+
|
|
7
|
+
export { transactionPreviewToMarkdown as t };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A-1 fallback (mandatory for this view): the field table plus the sentence "NOT SIGNED -
|
|
3
|
+
* preparation only". The sentence is present even when there is nothing to preview.
|
|
4
|
+
*/
|
|
5
|
+
declare function transactionPreviewToMarkdown(props: unknown, locale?: "en" | "fr"): string;
|
|
6
|
+
|
|
7
|
+
export { transactionPreviewToMarkdown as t };
|
package/dist/artifacts.cjs
CHANGED
|
@@ -33,6 +33,8 @@ var EN = {
|
|
|
33
33
|
"TokenDisplayOnceModal.copied": "Copied",
|
|
34
34
|
"StatusBadge.aria.status": "Status",
|
|
35
35
|
"StatusBadge.error.invalidProps": "StatusBadge: invalid props",
|
|
36
|
+
"Badge.aria.label": "Badge",
|
|
37
|
+
"Badge.error.invalidProps": "Badge: invalid props",
|
|
36
38
|
"EmptyState.error.invalidProps": "EmptyState: invalid props",
|
|
37
39
|
"Toast.aria.close": "Close notification",
|
|
38
40
|
"Toast.error.invalidProps": "Toast: invalid props",
|
|
@@ -102,7 +104,99 @@ var EN = {
|
|
|
102
104
|
"Select.search.placeholder": "Search\u2026",
|
|
103
105
|
"Select.empty": "No options available",
|
|
104
106
|
"Select.error.required": "Select an option",
|
|
105
|
-
"Select.error.invalidProps": "Select: invalid props"
|
|
107
|
+
"Select.error.invalidProps": "Select: invalid props",
|
|
108
|
+
"ModelContext.selection.one": "1 row selected",
|
|
109
|
+
"ModelContext.selection.many": "{n} rows selected",
|
|
110
|
+
"ModelContext.selection.none": "No rows selected",
|
|
111
|
+
"TableView.sort.by": "Sort by",
|
|
112
|
+
"TableView.select.row": "Select row",
|
|
113
|
+
"TableView.select.all": "Select all rows",
|
|
114
|
+
"TableView.loading": "Loading table",
|
|
115
|
+
"StatCard.title": "Statistic",
|
|
116
|
+
"StatCard.trend.up": "Up",
|
|
117
|
+
"StatCard.trend.down": "Down",
|
|
118
|
+
"StatCard.trend.flat": "Flat",
|
|
119
|
+
"StatCard.empty.message": "No statistic to display",
|
|
120
|
+
"StatCard.loading": "Loading statistic",
|
|
121
|
+
"StatCard.error.invalidProps": "StatCard: invalid props",
|
|
122
|
+
"BalanceCard.title": "Balance",
|
|
123
|
+
"BalanceCard.network": "Network",
|
|
124
|
+
"BalanceCard.testnet": "Testnet",
|
|
125
|
+
"BalanceCard.address": "Address",
|
|
126
|
+
"BalanceCard.contract": "Token contract",
|
|
127
|
+
"BalanceCard.value": "Value",
|
|
128
|
+
"BalanceCard.copy": "Copy address",
|
|
129
|
+
"BalanceCard.copied": "Address copied",
|
|
130
|
+
"BalanceCard.empty.message": "No balance to display",
|
|
131
|
+
"BalanceCard.loading": "Loading balance",
|
|
132
|
+
"BalanceCard.error.invalidProps": "BalanceCard: invalid props",
|
|
133
|
+
"Timeline.title": "Timeline",
|
|
134
|
+
"Timeline.status.done": "Done",
|
|
135
|
+
"Timeline.status.current": "In progress",
|
|
136
|
+
"Timeline.status.pending": "Pending",
|
|
137
|
+
"Timeline.status.blocked": "Blocked",
|
|
138
|
+
"Timeline.completed": "{n} completed",
|
|
139
|
+
"Timeline.more": "{n} more",
|
|
140
|
+
"Timeline.empty.message": "No steps to display",
|
|
141
|
+
"Timeline.loading": "Loading timeline",
|
|
142
|
+
"Timeline.error.invalidProps": "Timeline: invalid props",
|
|
143
|
+
"MessageFeed.title": "Messages",
|
|
144
|
+
"MessageFeed.unread": "Unread",
|
|
145
|
+
"MessageFeed.attachment": "Attachment",
|
|
146
|
+
"MessageFeed.showing": "Showing the latest {n} of {total}",
|
|
147
|
+
"MessageFeed.empty.message": "No messages",
|
|
148
|
+
"MessageFeed.loading": "Loading messages",
|
|
149
|
+
"MessageFeed.error.invalidProps": "MessageFeed: invalid props",
|
|
150
|
+
"PipelineBoard.title": "Pipeline",
|
|
151
|
+
"PipelineBoard.deals.one": "1 deal",
|
|
152
|
+
"PipelineBoard.deals.many": "{n} deals",
|
|
153
|
+
"PipelineBoard.total": "Total",
|
|
154
|
+
"PipelineBoard.stage.empty": "No deals",
|
|
155
|
+
"PipelineBoard.filter.label": "Show stages",
|
|
156
|
+
"PipelineBoard.summary.open": "Open full board",
|
|
157
|
+
"PipelineBoard.more": "{n} more stages",
|
|
158
|
+
"PipelineBoard.empty.message": "No pipeline to display",
|
|
159
|
+
"PipelineBoard.loading": "Loading pipeline",
|
|
160
|
+
"PipelineBoard.error.invalidProps": "PipelineBoard: invalid props",
|
|
161
|
+
"PipelineBoard.col.stage": "Stage",
|
|
162
|
+
"PipelineBoard.col.deals": "Deals",
|
|
163
|
+
"TransactionPreview.title": "Transaction preview",
|
|
164
|
+
"TransactionPreview.notice": "NOT SIGNED - preparation only",
|
|
165
|
+
"TransactionPreview.kind.transfer": "Transfer",
|
|
166
|
+
"TransactionPreview.kind.swap": "Swap",
|
|
167
|
+
"TransactionPreview.testnet": "Testnet",
|
|
168
|
+
"TransactionPreview.field.network": "Network",
|
|
169
|
+
"TransactionPreview.field.from": "From",
|
|
170
|
+
"TransactionPreview.field.to": "To",
|
|
171
|
+
"TransactionPreview.field.amount": "Amount",
|
|
172
|
+
"TransactionPreview.field.fee": "Network fee",
|
|
173
|
+
"TransactionPreview.field.sell": "Sell",
|
|
174
|
+
"TransactionPreview.field.buy": "Buy",
|
|
175
|
+
"TransactionPreview.field.minReceived": "Minimum received",
|
|
176
|
+
"TransactionPreview.field.route": "Route",
|
|
177
|
+
"TransactionPreview.field.priceImpact": "Price impact",
|
|
178
|
+
"TransactionPreview.field.expires": "Quote expires",
|
|
179
|
+
"TransactionPreview.priceImpact.high": "High price impact",
|
|
180
|
+
"TransactionPreview.simulation.success": "Simulation succeeded",
|
|
181
|
+
"TransactionPreview.simulation.failed": "Simulation failed",
|
|
182
|
+
"TransactionPreview.simulation.unavailable": "Simulation unavailable",
|
|
183
|
+
"TransactionPreview.warnings": "Warnings",
|
|
184
|
+
"TransactionPreview.handoff": "Open in wallet",
|
|
185
|
+
"TransactionPreview.empty.message": "No transaction to preview",
|
|
186
|
+
"TransactionPreview.loading": "Loading preview",
|
|
187
|
+
"TransactionPreview.error.invalidProps": "TransactionPreview: invalid props",
|
|
188
|
+
"ProgressBar.title": "Progress",
|
|
189
|
+
"ConfirmDialog.title": "Confirmation",
|
|
190
|
+
"ConfirmDialog.options": "Answers",
|
|
191
|
+
"TableView.title": "Data table",
|
|
192
|
+
"TableView.markdown.more": "{n} more rows",
|
|
193
|
+
"MarkdownRenderer.title": "Markdown content",
|
|
194
|
+
"TokenDisplayOnceModal.title": "Token (shown once)",
|
|
195
|
+
"StatusBadge.title": "Status",
|
|
196
|
+
"TokenDisplayOnceModal.notice.once": "The value is shown once, in the app view only.",
|
|
197
|
+
"TokenDisplayOnceModal.field.scope": "Scope",
|
|
198
|
+
"TokenDisplayOnceModal.field.expires": "Expires",
|
|
199
|
+
"TokenDisplayOnceModal.field.fingerprint": "Fingerprint"
|
|
106
200
|
};
|
|
107
201
|
var FR = {
|
|
108
202
|
// ─── Non-forms components ──────────────────────────────────────────────────
|
|
@@ -125,6 +219,8 @@ var FR = {
|
|
|
125
219
|
"TokenDisplayOnceModal.copied": "Copi\xE9",
|
|
126
220
|
"StatusBadge.aria.status": "Statut",
|
|
127
221
|
"StatusBadge.error.invalidProps": "StatusBadge : propri\xE9t\xE9s invalides",
|
|
222
|
+
"Badge.aria.label": "Badge",
|
|
223
|
+
"Badge.error.invalidProps": "Badge : propri\xE9t\xE9s invalides",
|
|
128
224
|
"EmptyState.error.invalidProps": "EmptyState : propri\xE9t\xE9s invalides",
|
|
129
225
|
"Toast.aria.close": "Fermer la notification",
|
|
130
226
|
"Toast.error.invalidProps": "Toast : propri\xE9t\xE9s invalides",
|
|
@@ -194,7 +290,99 @@ var FR = {
|
|
|
194
290
|
"Select.search.placeholder": "Rechercher\u2026",
|
|
195
291
|
"Select.empty": "Aucune option disponible",
|
|
196
292
|
"Select.error.required": "S\xE9lectionnez une option",
|
|
197
|
-
"Select.error.invalidProps": "Select : propri\xE9t\xE9s invalides"
|
|
293
|
+
"Select.error.invalidProps": "Select : propri\xE9t\xE9s invalides",
|
|
294
|
+
"ModelContext.selection.one": "1 ligne s\xE9lectionn\xE9e",
|
|
295
|
+
"ModelContext.selection.many": "{n} lignes s\xE9lectionn\xE9es",
|
|
296
|
+
"ModelContext.selection.none": "Aucune ligne s\xE9lectionn\xE9e",
|
|
297
|
+
"TableView.sort.by": "Trier par",
|
|
298
|
+
"TableView.select.row": "S\xE9lectionner la ligne",
|
|
299
|
+
"TableView.select.all": "Tout s\xE9lectionner",
|
|
300
|
+
"TableView.loading": "Chargement du tableau",
|
|
301
|
+
"StatCard.title": "Statistique",
|
|
302
|
+
"StatCard.trend.up": "En hausse",
|
|
303
|
+
"StatCard.trend.down": "En baisse",
|
|
304
|
+
"StatCard.trend.flat": "Stable",
|
|
305
|
+
"StatCard.empty.message": "Aucune statistique \xE0 afficher",
|
|
306
|
+
"StatCard.loading": "Chargement de la statistique",
|
|
307
|
+
"StatCard.error.invalidProps": "StatCard : propri\xE9t\xE9s invalides",
|
|
308
|
+
"BalanceCard.title": "Solde",
|
|
309
|
+
"BalanceCard.network": "R\xE9seau",
|
|
310
|
+
"BalanceCard.testnet": "R\xE9seau de test",
|
|
311
|
+
"BalanceCard.address": "Adresse",
|
|
312
|
+
"BalanceCard.contract": "Contrat du jeton",
|
|
313
|
+
"BalanceCard.value": "Valeur",
|
|
314
|
+
"BalanceCard.copy": "Copier l'adresse",
|
|
315
|
+
"BalanceCard.copied": "Adresse copi\xE9e",
|
|
316
|
+
"BalanceCard.empty.message": "Aucun solde \xE0 afficher",
|
|
317
|
+
"BalanceCard.loading": "Chargement du solde",
|
|
318
|
+
"BalanceCard.error.invalidProps": "BalanceCard : propri\xE9t\xE9s invalides",
|
|
319
|
+
"Timeline.title": "Chronologie",
|
|
320
|
+
"Timeline.status.done": "Termin\xE9",
|
|
321
|
+
"Timeline.status.current": "En cours",
|
|
322
|
+
"Timeline.status.pending": "\xC0 venir",
|
|
323
|
+
"Timeline.status.blocked": "Bloqu\xE9",
|
|
324
|
+
"Timeline.completed": "{n} termin\xE9(s)",
|
|
325
|
+
"Timeline.more": "{n} de plus",
|
|
326
|
+
"Timeline.empty.message": "Aucune \xE9tape \xE0 afficher",
|
|
327
|
+
"Timeline.loading": "Chargement de la chronologie",
|
|
328
|
+
"Timeline.error.invalidProps": "Timeline : propri\xE9t\xE9s invalides",
|
|
329
|
+
"MessageFeed.title": "Messages",
|
|
330
|
+
"MessageFeed.unread": "Non lu",
|
|
331
|
+
"MessageFeed.attachment": "Pi\xE8ce jointe",
|
|
332
|
+
"MessageFeed.showing": "Affichage des {n} derniers sur {total}",
|
|
333
|
+
"MessageFeed.empty.message": "Aucun message",
|
|
334
|
+
"MessageFeed.loading": "Chargement des messages",
|
|
335
|
+
"MessageFeed.error.invalidProps": "MessageFeed : propri\xE9t\xE9s invalides",
|
|
336
|
+
"PipelineBoard.title": "Pipeline",
|
|
337
|
+
"PipelineBoard.deals.one": "1 affaire",
|
|
338
|
+
"PipelineBoard.deals.many": "{n} affaires",
|
|
339
|
+
"PipelineBoard.total": "Total",
|
|
340
|
+
"PipelineBoard.stage.empty": "Aucune affaire",
|
|
341
|
+
"PipelineBoard.filter.label": "Afficher les \xE9tapes",
|
|
342
|
+
"PipelineBoard.summary.open": "Ouvrir le tableau complet",
|
|
343
|
+
"PipelineBoard.more": "{n} \xE9tapes de plus",
|
|
344
|
+
"PipelineBoard.empty.message": "Aucun pipeline \xE0 afficher",
|
|
345
|
+
"PipelineBoard.loading": "Chargement du pipeline",
|
|
346
|
+
"PipelineBoard.error.invalidProps": "PipelineBoard : propri\xE9t\xE9s invalides",
|
|
347
|
+
"PipelineBoard.col.stage": "\xC9tape",
|
|
348
|
+
"PipelineBoard.col.deals": "Affaires",
|
|
349
|
+
"TransactionPreview.title": "Aper\xE7u de transaction",
|
|
350
|
+
"TransactionPreview.notice": "NON SIGN\xC9 - pr\xE9paration uniquement",
|
|
351
|
+
"TransactionPreview.kind.transfer": "Transfert",
|
|
352
|
+
"TransactionPreview.kind.swap": "\xC9change",
|
|
353
|
+
"TransactionPreview.testnet": "R\xE9seau de test",
|
|
354
|
+
"TransactionPreview.field.network": "R\xE9seau",
|
|
355
|
+
"TransactionPreview.field.from": "De",
|
|
356
|
+
"TransactionPreview.field.to": "\xC0",
|
|
357
|
+
"TransactionPreview.field.amount": "Montant",
|
|
358
|
+
"TransactionPreview.field.fee": "Frais de r\xE9seau",
|
|
359
|
+
"TransactionPreview.field.sell": "Vendre",
|
|
360
|
+
"TransactionPreview.field.buy": "Acheter",
|
|
361
|
+
"TransactionPreview.field.minReceived": "Minimum re\xE7u",
|
|
362
|
+
"TransactionPreview.field.route": "Itin\xE9raire",
|
|
363
|
+
"TransactionPreview.field.priceImpact": "Impact sur le prix",
|
|
364
|
+
"TransactionPreview.field.expires": "Expiration du devis",
|
|
365
|
+
"TransactionPreview.priceImpact.high": "Impact sur le prix \xE9lev\xE9",
|
|
366
|
+
"TransactionPreview.simulation.success": "Simulation r\xE9ussie",
|
|
367
|
+
"TransactionPreview.simulation.failed": "Simulation \xE9chou\xE9e",
|
|
368
|
+
"TransactionPreview.simulation.unavailable": "Simulation indisponible",
|
|
369
|
+
"TransactionPreview.warnings": "Avertissements",
|
|
370
|
+
"TransactionPreview.handoff": "Ouvrir dans le portefeuille",
|
|
371
|
+
"TransactionPreview.empty.message": "Aucune transaction \xE0 pr\xE9visualiser",
|
|
372
|
+
"TransactionPreview.loading": "Chargement de l'aper\xE7u",
|
|
373
|
+
"TransactionPreview.error.invalidProps": "TransactionPreview : propri\xE9t\xE9s invalides",
|
|
374
|
+
"ProgressBar.title": "Progression",
|
|
375
|
+
"ConfirmDialog.title": "Confirmation",
|
|
376
|
+
"ConfirmDialog.options": "R\xE9ponses",
|
|
377
|
+
"TableView.title": "Tableau de donn\xE9es",
|
|
378
|
+
"TableView.markdown.more": "{n} lignes de plus",
|
|
379
|
+
"MarkdownRenderer.title": "Contenu Markdown",
|
|
380
|
+
"TokenDisplayOnceModal.title": "Jeton (affich\xE9 une fois)",
|
|
381
|
+
"StatusBadge.title": "Statut",
|
|
382
|
+
"TokenDisplayOnceModal.notice.once": "La valeur n'est affich\xE9e qu'une fois, dans la vue de l'application uniquement.",
|
|
383
|
+
"TokenDisplayOnceModal.field.scope": "Port\xE9e",
|
|
384
|
+
"TokenDisplayOnceModal.field.expires": "Expire le",
|
|
385
|
+
"TokenDisplayOnceModal.field.fingerprint": "Empreinte"
|
|
198
386
|
};
|
|
199
387
|
var TABLE = {
|
|
200
388
|
en: EN,
|