@halliday-sdk/payments 2.7.4 → 2.8.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.
@@ -70,6 +70,13 @@ declare const BorderStyle: z.ZodEnum<{
70
70
  DEFAULT: "DEFAULT";
71
71
  }>;
72
72
  type BorderStyle = z.infer<typeof BorderStyle>;
73
+ declare const BackgroundStyle: z.ZodEnum<{
74
+ BLUR: "BLUR";
75
+ OFF: "OFF";
76
+ }>;
77
+ type BackgroundStyle = z.infer<typeof BackgroundStyle>;
78
+ declare const CssFontSize: z.ZodString;
79
+ type CssFontSize = z.infer<typeof CssFontSize>;
73
80
  declare const CustomStyles: z.ZodObject<{
74
81
  primaryColor: z.ZodOptional<z.ZodString>;
75
82
  backgroundColor: z.ZodOptional<z.ZodString>;
@@ -94,6 +101,12 @@ declare const CustomStyles: z.ZodObject<{
94
101
  AUTO: "AUTO";
95
102
  MEDIUM: "MEDIUM";
96
103
  }>>;
104
+ baseFontSize: z.ZodOptional<z.ZodString>;
105
+ baseBorderRadius: z.ZodOptional<z.ZodString>;
106
+ backgroundStyle: z.ZodOptional<z.ZodEnum<{
107
+ BLUR: "BLUR";
108
+ OFF: "OFF";
109
+ }>>;
97
110
  logo: z.ZodOptional<z.ZodObject<{
98
111
  src: z.ZodURL;
99
112
  alt: z.ZodString;
@@ -117,6 +130,7 @@ type PaymentCategoryOrder = z.infer<typeof PaymentCategoryOrder>;
117
130
  declare const FontName: z.ZodEnum<{
118
131
  haffer: "haffer";
119
132
  "wudoo-mono": "wudoo-mono";
133
+ inter: "inter";
120
134
  }>;
121
135
  type FontName = z.infer<typeof FontName>;
122
136
  declare const HeaderTitle: z.ZodOptional<z.ZodString>;
@@ -141,7 +155,7 @@ type StatusCallback = (input: {
141
155
  payload: OrderStatus;
142
156
  }) => void;
143
157
  declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
144
- onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
158
+ onramps: z.ZodOptional<z.ZodArray<z.ZodString>>;
145
159
  offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
146
160
  sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
147
161
  features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -181,6 +195,12 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
181
195
  AUTO: "AUTO";
182
196
  MEDIUM: "MEDIUM";
183
197
  }>>;
198
+ baseFontSize: z.ZodOptional<z.ZodString>;
199
+ baseBorderRadius: z.ZodOptional<z.ZodString>;
200
+ backgroundStyle: z.ZodOptional<z.ZodEnum<{
201
+ BLUR: "BLUR";
202
+ OFF: "OFF";
203
+ }>>;
184
204
  logo: z.ZodOptional<z.ZodObject<{
185
205
  src: z.ZodURL;
186
206
  alt: z.ZodString;
@@ -212,6 +232,7 @@ declare const PaymentsWidgetSDKParamsWithoutRolesAndFunctions: z.ZodObject<{
212
232
  fontName: z.ZodOptional<z.ZodEnum<{
213
233
  haffer: "haffer";
214
234
  "wudoo-mono": "wudoo-mono";
235
+ inter: "inter";
215
236
  }>>;
216
237
  headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
217
238
  showSkeleton: z.ZodOptional<z.ZodBoolean>;
@@ -242,6 +263,12 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
242
263
  AUTO: "AUTO";
243
264
  MEDIUM: "MEDIUM";
244
265
  }>>;
266
+ baseFontSize: z.ZodOptional<z.ZodString>;
267
+ baseBorderRadius: z.ZodOptional<z.ZodString>;
268
+ backgroundStyle: z.ZodOptional<z.ZodEnum<{
269
+ BLUR: "BLUR";
270
+ OFF: "OFF";
271
+ }>>;
245
272
  logo: z.ZodOptional<z.ZodObject<{
246
273
  src: z.ZodURL;
247
274
  alt: z.ZodString;
@@ -291,11 +318,12 @@ declare const PaymentsWidgetSDKParams: z.ZodObject<{
291
318
  fontName: z.ZodOptional<z.ZodEnum<{
292
319
  haffer: "haffer";
293
320
  "wudoo-mono": "wudoo-mono";
321
+ inter: "inter";
294
322
  }>>;
295
323
  headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
324
+ onramps: z.ZodOptional<z.ZodArray<z.ZodString>>;
296
325
  showSkeleton: z.ZodOptional<z.ZodBoolean>;
297
326
  skeletonBackgroundColor: z.ZodOptional<z.ZodString>;
298
- onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
299
327
  offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
300
328
  sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
301
329
  inputs: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>>;
@@ -338,7 +366,7 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
338
366
  hostOrigin: z.ZodNullable<z.ZodURL>;
339
367
  ipAddress: z.ZodOptional<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>>;
340
368
  featureFlags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
341
- onramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
369
+ onramps: z.ZodOptional<z.ZodArray<z.ZodString>>;
342
370
  offramps: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>>;
343
371
  sandbox: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
344
372
  features: z.ZodOptional<z.ZodArray<z.ZodEnum<{
@@ -378,6 +406,12 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
378
406
  AUTO: "AUTO";
379
407
  MEDIUM: "MEDIUM";
380
408
  }>>;
409
+ baseFontSize: z.ZodOptional<z.ZodString>;
410
+ baseBorderRadius: z.ZodOptional<z.ZodString>;
411
+ backgroundStyle: z.ZodOptional<z.ZodEnum<{
412
+ BLUR: "BLUR";
413
+ OFF: "OFF";
414
+ }>>;
381
415
  logo: z.ZodOptional<z.ZodObject<{
382
416
  src: z.ZodURL;
383
417
  alt: z.ZodString;
@@ -409,6 +443,7 @@ declare const PaymentsWidgetQueryParams: z.ZodObject<{
409
443
  fontName: z.ZodOptional<z.ZodEnum<{
410
444
  haffer: "haffer";
411
445
  "wudoo-mono": "wudoo-mono";
446
+ inter: "inter";
412
447
  }>>;
413
448
  headerTitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
414
449
  showSkeleton: z.ZodOptional<z.ZodBoolean>;
@@ -530,6 +565,7 @@ type InitConfig = z.input<typeof InitConfig> & {
530
565
  *
531
566
  * @param {Asset[]=} params.inputs {{@link Asset}[]} (optional) The input assets for the widget.
532
567
  * @param {Asset[]=} params.outputs {{@link Asset}[]} (optional) The output assets for the widget.
568
+ * @param {string[]=} params.onramps {string[]} (optional) Array of onramp provider names to filter/display in the widget.
533
569
  * @param {RampName[]=} params.onramps {{@link RampName}[]} (optional) The onramps for the widget.
534
570
  * @param {RampName[]=} params.offramps {{@link RampName}[]} (optional) The offramps for the widget.
535
571
  *
@@ -540,7 +576,7 @@ type InitConfig = z.input<typeof InitConfig> & {
540
576
  * @param {Role=} params.owner {{@link Role}} (optional) The owner that would have full access to payments workflow.
541
577
  * @param {Role=} params.funder {{@link Role}} (optional) The funder that initiates the funding.
542
578
  * @param {PaymentCategoryOrder=} params.paymentCategoryOrder {{@link PaymentCategoryOrder}} (optional) On the quote page, these are three displayed paymentcategories (empty or three elements).
543
- * @param {FontName=} params.fontName {{@link FontName}} (optional) The font name to use in the widget (haffer or wudoo-mono). Defaults to haffer.
579
+ * @param {FontName=} params.fontName {{@link FontName}} (optional) The font name to use in the widget (haffer or wudoo-mono or inter). Defaults to haffer.
544
580
  * @param {HeaderTitle=} params.headerTitle {{@link HeaderTitle}} (optional) The header title to use in the widget (Buy or string). Defaults to Buy.
545
581
  *
546
582
  * @param {StatusCallback=} params.statusCallback {{@link StatusCallback}} (optional) Callback to receive status events.
@@ -604,5 +640,5 @@ declare const initializeClient: (config: InitConfig, ...args: any[]) => Promise<
604
640
  */
605
641
  declare const destroyClient: () => void;
606
642
 
607
- export { AppMode, BorderStyle, CustomStyles, FontName, FontWeight, HeaderTitle, InitConfig, MessageType, OrderStatus, PaymentCategoryGrouping, PaymentCategoryOrder, PaymentsWidgetQueryParams, PaymentsWidgetSDKParams, TextMode, WindowType, deserializeQueryParams, destroyClient, getPaymentsWidgetUrl, initializeClient, openHallidayPayments, serializeQueryParams };
643
+ export { AppMode, BackgroundStyle, BorderStyle, CssFontSize, CustomStyles, FontName, FontWeight, HeaderTitle, InitConfig, MessageType, OrderStatus, PaymentCategoryGrouping, PaymentCategoryOrder, PaymentsWidgetQueryParams, PaymentsWidgetSDKParams, TextMode, WindowType, deserializeQueryParams, destroyClient, getPaymentsWidgetUrl, initializeClient, openHallidayPayments, serializeQueryParams };
608
644
  export type { Message, MessageResponse };