@clickaroo/checkout-ui 1.0.0-beta → 1.1.0-beta

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React, { ReactNode } from 'react';
2
+ import React$1, { ReactNode } from 'react';
3
+ import { LayoutObject, Appearance } from '@stripe/stripe-js';
3
4
  import { z } from 'zod';
4
5
 
5
6
  interface CartItem {
@@ -36,31 +37,60 @@ interface CheckoutPageProps {
36
37
  onPaymentInfoComplete?: OnPaymentInfoCompleteCallback;
37
38
  onOrderSubmit?: OnOrderSubmitCallback;
38
39
  onOrderSuccess?: OnOrderSuccessCallback;
40
+ styles?: React.CSSProperties;
39
41
  }
40
42
  declare const CheckoutPage: (props: CheckoutPageProps) => react_jsx_runtime.JSX.Element;
41
43
 
42
44
  interface SubmitButtonProps {
45
+ buttonText?: string | React$1.ReactNode;
46
+ showSecurityText?: boolean;
43
47
  onOrderSubmit?: OnOrderSubmitCallback;
44
48
  onOrderSuccess?: OnOrderSuccessCallback;
49
+ styles?: React$1.CSSProperties & {
50
+ root?: React$1.CSSProperties;
51
+ button?: React$1.CSSProperties;
52
+ buttonContent?: React$1.CSSProperties;
53
+ };
45
54
  }
46
- declare const SubmitButton: React.FC<SubmitButtonProps>;
55
+ declare const SubmitButton: React$1.FC<SubmitButtonProps>;
47
56
 
48
57
  interface CustomInfoProps {
49
58
  showTitle?: boolean;
59
+ showLabel?: boolean;
60
+ styles?: React$1.CSSProperties & {
61
+ root?: React$1.CSSProperties;
62
+ container?: React$1.CSSProperties;
63
+ input?: React$1.CSSProperties;
64
+ };
50
65
  }
51
- declare const CustomInfo: React.FC<CustomInfoProps>;
66
+ declare const CustomInfo: React$1.FC<CustomInfoProps>;
52
67
 
53
68
  interface DeliveryAddressProps {
54
69
  showTitle?: boolean;
70
+ showLabel?: boolean;
55
71
  googleApiKey?: string;
72
+ styles?: {
73
+ root?: React$1.CSSProperties;
74
+ container?: React$1.CSSProperties;
75
+ input?: React$1.CSSProperties;
76
+ };
56
77
  }
57
- declare const DeliveryAddress$1: React.FC<DeliveryAddressProps>;
78
+ declare const DeliveryAddress$1: React$1.FC<DeliveryAddressProps>;
58
79
 
80
+ interface StripePaymentOptions {
81
+ layout?: LayoutObject;
82
+ appearance?: Appearance;
83
+ }
59
84
  interface PaymentMethodsProps {
60
85
  showText?: boolean;
61
86
  onPaymentInfoComplete?: OnPaymentInfoCompleteCallback;
87
+ options?: StripePaymentOptions;
88
+ styles?: React$1.CSSProperties & {
89
+ root?: React$1.CSSProperties;
90
+ container?: React$1.CSSProperties;
91
+ };
62
92
  }
63
- declare const PaymentMethods: React.FC<PaymentMethodsProps>;
93
+ declare const PaymentMethods: React$1.FC<PaymentMethodsProps>;
64
94
 
65
95
  interface ClickarooInfo {
66
96
  offer_code: string;
@@ -237,6 +267,9 @@ declare global {
237
267
  interface Window {
238
268
  dataLayer: unknown[];
239
269
  gtag: (...args: unknown[]) => void;
270
+ $tracksity: {
271
+ tssid: string;
272
+ };
240
273
  }
241
274
  }
242
275
 
@@ -263,7 +296,7 @@ interface CheckoutProviderProps {
263
296
  onCheckoutInit?: OnCheckoutInitCallback;
264
297
  metadata?: Record<string, string>;
265
298
  }
266
- declare const CheckoutProvider: React.FC<CheckoutProviderProps>;
299
+ declare const CheckoutProvider: React$1.FC<CheckoutProviderProps>;
267
300
 
268
301
  /**
269
302
  * Storage utility functions
@@ -296,14 +329,6 @@ interface ClickarooProviderConfig {
296
329
  interface ClickarooContextType {
297
330
  /** Get parameter value */
298
331
  getParam: (paramName: string) => string | null;
299
- /** Set parameter value (saved according to storage priority) */
300
- setParam: (paramName: string, value: string) => void;
301
- /** Get all parameters */
302
- getAllParams: () => Record<string, string>;
303
- /** Clear parameter */
304
- clearParam: (paramName: string) => void;
305
- /** Clear all parameters */
306
- clearAllParams: () => void;
307
332
  /** Current parameter values (read-only) */
308
333
  params: Record<string, string>;
309
334
  }
@@ -318,7 +343,7 @@ interface ClickarooProviderProps {
318
343
  * ClickarooProvider component
319
344
  * Used to manage Clickaroo-related parameters at the outermost level of the application
320
345
  */
321
- declare const ClickarooProvider: React.FC<ClickarooProviderProps>;
346
+ declare const ClickarooProvider: React$1.FC<ClickarooProviderProps>;
322
347
 
323
348
  interface UseCheckoutContextPublic {
324
349
  isFormValid: () => boolean;