@primer-io/primer-js 0.1.1 → 0.1.3

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 (54) hide show
  1. package/dist/chunks/ar.5AY75F5J.js +1 -0
  2. package/dist/chunks/bg.2EL2HTYI.js +1 -0
  3. package/dist/chunks/ca.WZI7CBFW.js +1 -0
  4. package/dist/chunks/chunk.G45OCYEN.js +1 -0
  5. package/dist/chunks/chunk.QMLIEEKM.js +2 -0
  6. package/dist/chunks/cs.GBLLNC3E.js +1 -0
  7. package/dist/chunks/da.CDEFQG44.js +1 -0
  8. package/dist/chunks/de.UHURA2HV.js +1 -0
  9. package/dist/chunks/el.BY5NGYDF.js +1 -0
  10. package/dist/chunks/en-GB.UBLLAUVW.js +1 -0
  11. package/dist/chunks/en.BKAVPUID.js +1 -0
  12. package/dist/chunks/es-AR.EYNC6EAZ.js +1 -0
  13. package/dist/chunks/es-MX.OIO2YURF.js +1 -0
  14. package/dist/chunks/es.CNNIJYLX.js +1 -0
  15. package/dist/chunks/et-EE.4ZF6CLB6.js +1 -0
  16. package/dist/chunks/fi-FI.4ZXWRRYI.js +1 -0
  17. package/dist/chunks/fr.TZM5I4K2.js +1 -0
  18. package/dist/chunks/he.DWEZBG4A.js +1 -0
  19. package/dist/chunks/hr.BV4PC324.js +1 -0
  20. package/dist/chunks/hu.MTEKSS3J.js +1 -0
  21. package/dist/chunks/id.SJSTOPSC.js +1 -0
  22. package/dist/chunks/it.IISTMHN5.js +1 -0
  23. package/dist/chunks/ja.IBQ3ID5C.js +1 -0
  24. package/dist/chunks/ko.KZVQLI4V.js +1 -0
  25. package/dist/chunks/lt-LT.RKBB7CZ6.js +1 -0
  26. package/dist/chunks/lt.TLM7OCXP.js +1 -0
  27. package/dist/chunks/lv-LV.H5TJC2T4.js +1 -0
  28. package/dist/chunks/lv.G4SRVBAC.js +1 -0
  29. package/dist/chunks/ms.ATTITA66.js +1 -0
  30. package/dist/chunks/nb.5EE7XOA7.js +1 -0
  31. package/dist/chunks/nl.TY2SYTKZ.js +1 -0
  32. package/dist/chunks/nl_NL.GB5BQ5PG.js +1 -0
  33. package/dist/chunks/pl.5PRBSG4K.js +3 -0
  34. package/dist/chunks/pt-BR.5XRZB5WW.js +1 -0
  35. package/dist/chunks/pt.TA5H5JUJ.js +1 -0
  36. package/dist/chunks/ro.PSZKGHRP.js +1 -0
  37. package/dist/chunks/ru.3QZY7ZIT.js +1 -0
  38. package/dist/chunks/sk.FAQFYLGM.js +1 -0
  39. package/dist/chunks/sl.QRSCQXJP.js +1 -0
  40. package/dist/chunks/sr-RS.TKMMG7FK.js +1 -0
  41. package/dist/chunks/sv.HZ3E6V5F.js +1 -0
  42. package/dist/chunks/th.AY6M42B4.js +1 -0
  43. package/dist/chunks/tr.TFKBPYMO.js +1 -0
  44. package/dist/chunks/uk-UA.3TU67RSI.js +1 -0
  45. package/dist/chunks/vi.NLXELMXV.js +1 -0
  46. package/dist/chunks/zf.U5XPENNR.js +1 -0
  47. package/dist/chunks/zh-CN.VEOQJ3EU.js +1 -0
  48. package/dist/chunks/zh-HK.ZEXSW7FF.js +1 -0
  49. package/dist/chunks/zh-TW.MMVWEQMZ.js +1 -0
  50. package/dist/custom-elements.json +2415 -559
  51. package/dist/primer-loader.d.ts +223 -34
  52. package/dist/primer-loader.js +2286 -4
  53. package/dist/web-types.json +1 -1
  54. package/package.json +1 -1
@@ -1,35 +1,3 @@
1
- /**
2
- * Injects the CSS loader styles into the page
3
- * These styles display a loading indicator before JavaScript initializes
4
- *
5
- * Unlike theme styles, loader styles should take precedence over merchant styles
6
- * to ensure the loading indicator is visible. We append them to the end of the head.
7
- */
8
- export declare function injectLoaderStyles(): void;
9
- /**
10
- * Injects all required theme CSS variables into the page
11
- * This should be called before components are rendered to ensure
12
- * they have access to all design tokens
13
- *
14
- * Theme styles are prepended to the document head to allow merchant styles
15
- * to override our default variables.
16
- */
17
- export declare function injectThemeStyles(): void;
18
- /**
19
- * Utility function to inject only the light theme CSS variables
20
- * @returns {void}
21
- */
22
- export declare function injectLightTheme(): void;
23
- /**
24
- * Utility function to inject only the dark theme CSS variables
25
- * @returns {void}
26
- */
27
- export declare function injectDarkTheme(): void;
28
- /**
29
- * Main function to load the Primer SDK with all required dependencies and styles
30
- * @returns {Promise<void>} A promise that resolves when loading is complete
31
- */
32
- export declare function loadPrimer(): Promise<void>;
33
1
  export type CardNetwork = {
34
2
  displayName: string;
35
3
  network: string;
@@ -2304,6 +2272,7 @@ export interface InitializedManagersMap extends Map<PaymentMethodType, Initializ
2304
2272
  get<T extends PaymentMethodType>(key: T): ManagerByType<T> | undefined;
2305
2273
  }
2306
2274
  export type RedirectPaymentMethodTypes = Exclude<PaymentMethodType, typeof PaymentMethodType.STRIPE_ACH | typeof PaymentMethodType.PAYMENT_CARD | typeof PaymentMethodType.KLARNA | typeof PaymentMethodType.PAYPAL | typeof PaymentMethodType.GOOGLE_PAY | typeof PaymentMethodType.APPLE_PAY>;
2275
+ export type NativePaymentMethodTypes = typeof PaymentMethodType.PAYPAL | typeof PaymentMethodType.GOOGLE_PAY | typeof PaymentMethodType.APPLE_PAY;
2307
2276
  export type RedirectPaymentMethod = {
2308
2277
  type: RedirectPaymentMethodTypes;
2309
2278
  managerType: HeadlessManagerType.REDIRECT;
@@ -2333,7 +2302,7 @@ export type PaymentMethodByType<T extends PaymentMethodType> = Extract<Initializ
2333
2302
  export interface InitializedPaymentMethodMap extends Map<PaymentMethodType, InitializedPaymentMethod> {
2334
2303
  get<T extends PaymentMethodType>(key: T): PaymentMethodByType<T> | undefined;
2335
2304
  }
2336
- declare class InitializedPayments {
2305
+ export declare class InitializedPayments {
2337
2306
  private readonly _methods;
2338
2307
  constructor(map: InitializedPaymentMethodMap);
2339
2308
  get<T extends RedirectPaymentMethodTypes>(type: T): RedirectPaymentMethod | undefined;
@@ -2528,6 +2497,7 @@ declare class SdkStateController implements ReactiveController {
2528
2497
  setError(error: Error): void;
2529
2498
  setFailure(code: string, message: string, details?: Record<string, unknown>): void;
2530
2499
  reset(): void;
2500
+ forceCompleteLoading(): void;
2531
2501
  get state(): SdkState;
2532
2502
  }
2533
2503
  export interface PrimerCheckoutType extends ReactiveControllerHost, LitElement {
@@ -2667,7 +2637,16 @@ declare const targetLocales = [
2667
2637
  `zh-TW`,
2668
2638
  ] as const;
2669
2639
  export type LocaleCode = typeof sourceLocale | (typeof targetLocales)[number];
2670
- declare class PrimerCheckoutComponent extends LitElement implements PrimerCheckoutType {
2640
+ /**
2641
+ * PrimerCheckoutComponent implements the main checkout experience.
2642
+ * This component includes a CSS-only loader that displays before the JavaScript
2643
+ * is fully loaded, ensuring users see a loading indicator immediately.
2644
+ *
2645
+ * The loader can be disabled by:
2646
+ * 1. Adding the 'loader-disabled' attribute to the component
2647
+ * 2. Setting the CSS custom property --primer-loader-disabled: 1
2648
+ */
2649
+ export declare class PrimerCheckoutComponent extends LitElement implements PrimerCheckoutType {
2671
2650
  set jsInitialized(value: boolean);
2672
2651
  get jsInitialized(): boolean;
2673
2652
  static styles: CSSResult[];
@@ -2683,6 +2662,7 @@ declare class PrimerCheckoutComponent extends LitElement implements PrimerChecko
2683
2662
  defaultSlot: HTMLSlotElement;
2684
2663
  private previousLoadingState;
2685
2664
  private hasAssignedContent;
2665
+ private _loadingTimeoutId;
2686
2666
  locale?: LocaleCode;
2687
2667
  private onSlotChange;
2688
2668
  sdkContextController: SDKContextController;
@@ -2693,6 +2673,7 @@ declare class PrimerCheckoutComponent extends LitElement implements PrimerChecko
2693
2673
  cardNetworkController: CardNetworkController;
2694
2674
  constructor();
2695
2675
  attributeChangedCallback(attrName: string, oldVal: string, newVal: string): void;
2676
+ disconnectedCallback(): void;
2696
2677
  willUpdate(changedProperties: PropertyValues): void;
2697
2678
  updated(): void;
2698
2679
  /**
@@ -2706,10 +2687,41 @@ declare class PrimerCheckoutComponent extends LitElement implements PrimerChecko
2706
2687
  addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: PrimerCheckoutComponent, ev: DocumentEventMap[K]) => void, options?: boolean | AddEventListenerOptions): void;
2707
2688
  addEventListener<K extends keyof PrimerEvents>(type: K, listener: (this: PrimerCheckoutComponent, ev: PrimerEvents[K]) => void, options?: boolean | AddEventListenerOptions): void;
2708
2689
  }
2690
+ /**
2691
+ * Injects the CSS loader styles into the page
2692
+ * These styles display a loading indicator before JavaScript initializes
2693
+ *
2694
+ * Unlike theme styles, loader styles should take precedence over merchant styles
2695
+ * to ensure the loading indicator is visible. We append them to the end of the head.
2696
+ */
2697
+ export declare function injectLoaderStyles(): void;
2698
+ /**
2699
+ * Injects all required theme CSS variables into the page
2700
+ * This should be called before components are rendered to ensure
2701
+ * they have access to all design tokens
2702
+ *
2703
+ * Theme styles are prepended to the document head to allow merchant styles
2704
+ * to override our default variables.
2705
+ */
2706
+ export declare function injectThemeStyles(): void;
2707
+ /**
2708
+ * Utility function to inject only the light theme CSS variables
2709
+ * @returns {void}
2710
+ */
2711
+ export declare function injectLightTheme(): void;
2712
+ /**
2713
+ * Utility function to inject only the dark theme CSS variables
2714
+ * @returns {void}
2715
+ */
2716
+ export declare function injectDarkTheme(): void;
2709
2717
  /**
2710
2718
  * Size options for the spinner component
2711
2719
  */
2712
2720
  export type SpinnerSize = "small" | "medium" | "large";
2721
+ /**
2722
+ * Spinner component with configurable size and color
2723
+ * Adapted to work both standalone and within input components
2724
+ */
2713
2725
  declare class SpinnerComponent extends LitElement {
2714
2726
  /**
2715
2727
  * Color of the spinner
@@ -2738,6 +2750,15 @@ declare global {
2738
2750
  "primer-spinner": SpinnerComponent;
2739
2751
  }
2740
2752
  }
2753
+ /**
2754
+ * A wrapper component for input elements that handles focus styling and interactions.
2755
+ * Provides an improved user experience by making the entire wrapper clickable to focus the inner input.
2756
+ *
2757
+ * Features:
2758
+ * - Automatically focuses primer-input elements when wrapper is clicked
2759
+ * - Dispatches wrapper-click events for iframe-based hosted inputs
2760
+ * - Sets proper cursor styling to indicate text input functionality
2761
+ */
2741
2762
  declare class InputWrapperComponent extends LitElement {
2742
2763
  static styles: CSSResult[];
2743
2764
  focusWithin: boolean;
@@ -2762,6 +2783,12 @@ declare global {
2762
2783
  "primer-input-wrapper": InputWrapperComponent;
2763
2784
  }
2764
2785
  }
2786
+ /**
2787
+ * Input label component for form elements
2788
+ *
2789
+ * @element primer-input-label
2790
+ * @slot - Default slot for label text content
2791
+ */
2765
2792
  declare class InputLabelComponent extends LitElement {
2766
2793
  static styles: CSSResult[];
2767
2794
  /**
@@ -2823,6 +2850,12 @@ declare global {
2823
2850
  "primer-button": ButtonComponent;
2824
2851
  }
2825
2852
  }
2853
+ /**
2854
+ * Input error component for displaying form validation messages
2855
+ *
2856
+ * @element primer-input-error
2857
+ * @slot - Default slot for error message content
2858
+ */
2826
2859
  declare class InputErrorComponent extends LitElement {
2827
2860
  static styles: CSSResult[];
2828
2861
  /**
@@ -2880,6 +2913,20 @@ export type InputEventMap = {
2880
2913
  blur: FocusEvent;
2881
2914
  invalid: Event;
2882
2915
  };
2916
+ /**
2917
+ * A fully type-safe input component that wraps the native HTML input element
2918
+ * while providing additional functionality and styling.
2919
+ *
2920
+ * @element primer-input
2921
+ *
2922
+ * @fires input - Fired when the input value changes
2923
+ * @fires change - Fired when the input value is committed
2924
+ * @fires focus - Fired when the input receives focus
2925
+ * @fires blur - Fired when the input loses focus
2926
+ * @fires invalid - Fired when the input fails validation
2927
+ *
2928
+ * @csspart input - The native input element
2929
+ */
2883
2930
  declare class InputComponent extends LitElement {
2884
2931
  static styles: CSSResult[];
2885
2932
  private inputElement;
@@ -2969,10 +3016,20 @@ declare global {
2969
3016
  "primer-input": InputComponent;
2970
3017
  }
2971
3018
  }
3019
+ /**
3020
+ * Event detail interface for expanded-changed event
3021
+ */
3022
+ export interface ExpandedChangedDetail {
3023
+ expanded: boolean;
3024
+ }
2972
3025
  /**
2973
3026
  * Button variant types
2974
3027
  */
2975
3028
  export type ButtonVariant = "primary" | "secondary" | "tertiary";
3029
+ /**
3030
+ * A collapsable component that smoothly expands and collapses content.
3031
+ * Uses CSS Grid for smooth animation and incorporates the primary button.
3032
+ */
2976
3033
  declare class CollapsableComponent extends LitElement {
2977
3034
  static styles: CSSResult[];
2978
3035
  /**
@@ -3030,6 +3087,23 @@ declare global {
3030
3087
  "primer-collapsable": CollapsableComponent;
3031
3088
  }
3032
3089
  }
3090
+ /**
3091
+ * A reusable atomic error message component that displays error information
3092
+ * with appropriate styling and accessibility attributes.
3093
+ *
3094
+ * This component is fully accessible and designed to work with screen readers.
3095
+ * It includes animations for visibility transitions.
3096
+ *
3097
+ * @element primer-error-message
3098
+ *
3099
+ * @attr {string} message - The error message text to display
3100
+ * @attr {boolean} visible - Whether the error message is visible
3101
+ * @attr {string} role - Accessibility role (defaults to "alert")
3102
+ *
3103
+ * @csspart error-message - The main error message container
3104
+ * @csspart error-icon - The error icon container
3105
+ * @csspart error-content - The error text content
3106
+ */
3033
3107
  declare class ErrorMessageComponent extends LitElement {
3034
3108
  static styles: CSSResult[];
3035
3109
  /**
@@ -3062,6 +3136,15 @@ declare global {
3062
3136
  "primer-error-message": ErrorMessageComponent;
3063
3137
  }
3064
3138
  }
3139
+ /**
3140
+ * This component renders Klarna payment method in a card-like (accordion) container with
3141
+ * payment categories options to choose from.
3142
+ *
3143
+ * [ Pay with Klarna v ] --> accordion header
3144
+ *
3145
+ * [ Pay Now ] [ Buy now, pay later ] --> payment categories options from Klarna
3146
+ * [ Continue with Klarna ] --> opens a Klarna popup
3147
+ */
3065
3148
  declare class PrimerKlarnaComponent extends LitElement {
3066
3149
  static styles: CSSResult[];
3067
3150
  paymentManagers: InitializedManagersMap;
@@ -3133,6 +3216,10 @@ declare global {
3133
3216
  "primer-main": PrimerMainComponent;
3134
3217
  }
3135
3218
  }
3219
+ /**
3220
+ * Component for rendering native payment buttons (Apple Pay, Google Pay, PayPal)
3221
+ * with proper height calculations based on design system variables.
3222
+ */
3136
3223
  declare class NativePaymentComponent extends LitElement {
3137
3224
  static styles: CSSResult[];
3138
3225
  paymentMethod: InitializedPaymentMethod | undefined;
@@ -3158,6 +3245,10 @@ declare global {
3158
3245
  "primer-native-payment": NativePaymentComponent;
3159
3246
  }
3160
3247
  }
3248
+ /**
3249
+ * CardFormComponent serves as a container for card input components.
3250
+ * It handles form submission, validation, and provides context to child components.
3251
+ */
3161
3252
  declare class CardFormComponent extends LitElement {
3162
3253
  static styles: CSSResult[];
3163
3254
  /**
@@ -3554,6 +3645,9 @@ declare abstract class AbstractCardInputComponent extends LitElement implements
3554
3645
  */
3555
3646
  protected renderInput(): typeof nothing | TemplateResult<1>;
3556
3647
  }
3648
+ /**
3649
+ * Card number input component with dynamic card network detection and selection
3650
+ */
3557
3651
  declare class InputCardNumberComponent extends AbstractCardInputComponent {
3558
3652
  static styles: CSSResult[];
3559
3653
  /**
@@ -3611,6 +3705,10 @@ declare global {
3611
3705
  }
3612
3706
  }
3613
3707
  export type ClientOptionsContext = PrimerCheckoutOptions | null;
3708
+ /**
3709
+ * A form submit button component for card forms.
3710
+ * Provides a consistent submit button with translation support.
3711
+ */
3614
3712
  declare class CardFormSubmitComponent extends LitElement {
3615
3713
  static styles: CSSResult[];
3616
3714
  private readonly _userAssignedProps;
@@ -3642,6 +3740,12 @@ declare global {
3642
3740
  "primer-card-form-submit": CardFormSubmitComponent;
3643
3741
  }
3644
3742
  }
3743
+ /**
3744
+ * Component for displaying and selecting card networks
3745
+ * Uses context directly rather than properties
3746
+ *
3747
+ * @fires network-selected - Dispatched when a network is selected with the network name as detail
3748
+ */
3645
3749
  declare class CardNetworkSelectorComponent extends LitElement {
3646
3750
  static styles: CSSResult[];
3647
3751
  /**
@@ -3765,6 +3869,9 @@ export interface VaultManagerEventMap {
3765
3869
  "close-error": VaultManagerEvents["closeError"];
3766
3870
  "primer-vault-payment-error": VaultManagerEvents["vaultPaymentError"];
3767
3871
  }
3872
+ /**
3873
+ * VaultManagerComponent - displays and manages saved payment methods
3874
+ */
3768
3875
  declare class VaultManagerComponent extends LitElement {
3769
3876
  static styles: CSSResult[];
3770
3877
  /**
@@ -3831,6 +3938,12 @@ declare class VaultManagerComponent extends LitElement {
3831
3938
  private renderPaymentMethodItem;
3832
3939
  render(): typeof nothing | TemplateResult<1>;
3833
3940
  }
3941
+ /**
3942
+ * VaultPaymentMethodItemComponent - displays a single payment method
3943
+ * Uses the VaultManagerController for display formatting
3944
+ * Now supports selection via the simplified button checked state
3945
+ * Enhanced with smooth transitions between edit and payment modes
3946
+ */
3834
3947
  declare class VaultPaymentMethodItemComponent extends LitElement {
3835
3948
  static styles: CSSResult[];
3836
3949
  /**
@@ -3880,6 +3993,9 @@ declare global {
3880
3993
  "primer-vault-payment-method-item": VaultPaymentMethodItemComponent;
3881
3994
  }
3882
3995
  }
3996
+ /**
3997
+ * VaultManagerHeaderComponent - displays the header for the vault manager
3998
+ */
3883
3999
  declare class VaultManagerHeaderComponent extends LitElement {
3884
4000
  static styles: CSSResult[];
3885
4001
  /**
@@ -3909,6 +4025,9 @@ declare global {
3909
4025
  "primer-vault-manager-header": VaultManagerHeaderComponent;
3910
4026
  }
3911
4027
  }
4028
+ /**
4029
+ * VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
4030
+ */
3912
4031
  declare class VaultDeleteConfirmationComponent extends LitElement {
3913
4032
  static styles: CSSResult[];
3914
4033
  /**
@@ -3950,6 +4069,9 @@ declare global {
3950
4069
  "primer-vault-delete-confirmation": VaultDeleteConfirmationComponent;
3951
4070
  }
3952
4071
  }
4072
+ /**
4073
+ * VaultEmptyStateComponent - displays when no payment methods are available
4074
+ */
3953
4075
  declare class VaultEmptyStateComponent extends LitElement {
3954
4076
  static styles: CSSResult[];
3955
4077
  /**
@@ -3962,6 +4084,9 @@ declare global {
3962
4084
  "primer-vault-empty-state": VaultEmptyStateComponent;
3963
4085
  }
3964
4086
  }
4087
+ /**
4088
+ * VaultErrorMessageComponent - displays error messages with improved visuals
4089
+ */
3965
4090
  declare class VaultErrorMessageComponent extends LitElement {
3966
4091
  static styles: CSSResult[];
3967
4092
  /**
@@ -3987,6 +4112,11 @@ declare global {
3987
4112
  "primer-vault-error-message": VaultErrorMessageComponent;
3988
4113
  }
3989
4114
  }
4115
+ /**
4116
+ * A submit button component for vault payment flows.
4117
+ * Provides a consistent submit button with translation support.
4118
+ * Integrates with the vault manager context to handle payment submission.
4119
+ */
3990
4120
  declare class VaultPaymentSubmitComponent extends LitElement {
3991
4121
  static styles: CSSResult[];
3992
4122
  private readonly _userAssignedProps;
@@ -4030,6 +4160,11 @@ declare global {
4030
4160
  "primer-vault-payment-submit": VaultPaymentSubmitComponent;
4031
4161
  }
4032
4162
  }
4163
+ /**
4164
+ * CVV Input component for vault payment methods
4165
+ * Renders a secure iframe for CVV input when required by the selected payment method
4166
+ * Uses dedicated CVV context to minimize re-renders
4167
+ */
4033
4168
  declare class VaultCvvInputComponent extends LitElement {
4034
4169
  static styles: CSSResult[];
4035
4170
  /**
@@ -4074,6 +4209,10 @@ declare global {
4074
4209
  "primer-vault-manager": VaultManagerComponent;
4075
4210
  }
4076
4211
  }
4212
+ /**
4213
+ * Component for showing/hiding other payment methods when vault is present
4214
+ * Utilizes the collapsable component for smooth transitions
4215
+ */
4077
4216
  declare class ShowOtherPaymentsComponent extends LitElement {
4078
4217
  static styles: CSSResult[];
4079
4218
  private isShowingOtherPayments;
@@ -4110,6 +4249,14 @@ declare global {
4110
4249
  "primer-checkout-error": PrimerCheckoutErrorComponent;
4111
4250
  }
4112
4251
  }
4252
+ /**
4253
+ * A container component that connects to the SDK state context
4254
+ * and displays appropriate error messages based on error state.
4255
+ *
4256
+ * This component handles both process errors (typically from backend)
4257
+ * and validation errors (typically from client-side), managing when
4258
+ * and how they are displayed based on the current SDK state.
4259
+ */
4113
4260
  declare class ErrorMessageContainerComponent extends LitElement {
4114
4261
  static styles: CSSResult[];
4115
4262
  /**
@@ -4132,10 +4279,52 @@ declare global {
4132
4279
  "primer-error-message-container": ErrorMessageContainerComponent;
4133
4280
  }
4134
4281
  }
4282
+ /**
4283
+ * Main function to load the Primer SDK with all required dependencies and styles
4284
+ * @returns {Promise<void>} A promise that resolves when loading is complete
4285
+ */
4286
+ export declare function loadPrimer(): Promise<void>;
4135
4287
  declare global {
4136
4288
  interface HTMLElementTagNameMap {
4137
4289
  "primer-checkout": PrimerCheckoutComponent;
4138
4290
  }
4139
4291
  }
4140
4292
 
4293
+ export {
4294
+ ButtonComponent as Button,
4295
+ CardFormComponent as CardForm,
4296
+ CardFormSubmitComponent as CardFormSubmit,
4297
+ CardNetworkSelectorComponent as CardFormCardNetworkSelector,
4298
+ CollapsableComponent as Collapsable,
4299
+ ErrorMessageComponent as ErrorMessage,
4300
+ ErrorMessageContainerComponent as ErrorMessageContainer,
4301
+ InputCardExpiryComponent as CardFormExpiry,
4302
+ InputCardHolderNameComponent as CardFormName,
4303
+ InputCardNumberComponent as CardFormCardNumber,
4304
+ InputComponent as Input,
4305
+ InputCvvComponent as CardFormCVV,
4306
+ InputErrorComponent as CardFormError,
4307
+ InputLabelComponent as InputLabel,
4308
+ InputWrapperComponent as InputWrapper,
4309
+ NativePaymentComponent as NativePayment,
4310
+ PaymentMethodComponent as PaymentMethod,
4311
+ PrimerCheckoutCompleteComponent as PrimerCheckoutComplete,
4312
+ PrimerCheckoutErrorComponent as PrimerCheckoutFailure,
4313
+ PrimerCheckoutStateComponent as PrimerCheckoutState,
4314
+ PrimerIconComponent as PrimerIcon,
4315
+ PrimerKlarnaComponent as PrimerKlarna,
4316
+ PrimerMainComponent as PrimerMain,
4317
+ RedirectPaymentComponent as RedirectPayment,
4318
+ ShowOtherPaymentsComponent as ShowOtherPayments,
4319
+ SpinnerComponent as Spinner,
4320
+ VaultCvvInputComponent as VaultCvvInput,
4321
+ VaultDeleteConfirmationComponent as VaultDeleteConfirmation,
4322
+ VaultEmptyStateComponent as VaultEmptyState,
4323
+ VaultErrorMessageComponent as VaultErrorMessage,
4324
+ VaultManagerComponent as VaultManager,
4325
+ VaultManagerHeaderComponent as VaultManagerHeader,
4326
+ VaultPaymentMethodItemComponent as VaultPaymentMethodItem,
4327
+ VaultPaymentSubmitComponent as VaultPaymentSubmit,
4328
+ };
4329
+
4141
4330
  export {};