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