@stripe/stripe-js 3.0.9 → 3.0.10

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 (129) hide show
  1. package/dist/index.d.mts +12792 -4
  2. package/dist/index.d.ts +12792 -4
  3. package/dist/{index.js → stripe.js} +1 -1
  4. package/dist/{index.mjs → stripe.mjs} +1 -1
  5. package/package.json +10 -11
  6. package/pure/index.d.mts +12771 -1
  7. package/pure/index.d.ts +12771 -1
  8. package/pure/index.js +204 -1
  9. package/pure/index.mjs +200 -1
  10. package/dist/api/bank-accounts.d.mts +0 -61
  11. package/dist/api/bank-accounts.d.ts +0 -61
  12. package/dist/api/cards.d.mts +0 -130
  13. package/dist/api/cards.d.ts +0 -130
  14. package/dist/api/financial-connections.d.mts +0 -232
  15. package/dist/api/financial-connections.d.ts +0 -232
  16. package/dist/api/index.d.mts +0 -11
  17. package/dist/api/index.d.ts +0 -11
  18. package/dist/api/orders.d.mts +0 -122
  19. package/dist/api/orders.d.ts +0 -122
  20. package/dist/api/payment-intents.d.mts +0 -330
  21. package/dist/api/payment-intents.d.ts +0 -330
  22. package/dist/api/payment-methods.d.mts +0 -452
  23. package/dist/api/payment-methods.d.ts +0 -452
  24. package/dist/api/setup-intents.d.mts +0 -184
  25. package/dist/api/setup-intents.d.ts +0 -184
  26. package/dist/api/shared.d.mts +0 -125
  27. package/dist/api/shared.d.ts +0 -125
  28. package/dist/api/sources.d.mts +0 -1045
  29. package/dist/api/sources.d.ts +0 -1045
  30. package/dist/api/tokens.d.mts +0 -639
  31. package/dist/api/tokens.d.ts +0 -639
  32. package/dist/api/verification-sessions.d.mts +0 -9
  33. package/dist/api/verification-sessions.d.ts +0 -9
  34. package/dist/pure.d.mts +0 -5
  35. package/dist/pure.d.ts +0 -5
  36. package/dist/pure.js +0 -204
  37. package/dist/pure.mjs +0 -200
  38. package/dist/shared.d.mts +0 -6
  39. package/dist/shared.d.ts +0 -6
  40. package/dist/stripe-js/checkout.d.mts +0 -153
  41. package/dist/stripe-js/checkout.d.ts +0 -153
  42. package/dist/stripe-js/custom-checkout.d.mts +0 -402
  43. package/dist/stripe-js/custom-checkout.d.ts +0 -402
  44. package/dist/stripe-js/elements/address.d.mts +0 -261
  45. package/dist/stripe-js/elements/address.d.ts +0 -261
  46. package/dist/stripe-js/elements/affirm-message.d.mts +0 -65
  47. package/dist/stripe-js/elements/affirm-message.d.ts +0 -65
  48. package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +0 -119
  49. package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
  50. package/dist/stripe-js/elements/apple-pay.d.mts +0 -156
  51. package/dist/stripe-js/elements/apple-pay.d.ts +0 -156
  52. package/dist/stripe-js/elements/au-bank-account.d.mts +0 -138
  53. package/dist/stripe-js/elements/au-bank-account.d.ts +0 -138
  54. package/dist/stripe-js/elements/base.d.mts +0 -264
  55. package/dist/stripe-js/elements/base.d.ts +0 -264
  56. package/dist/stripe-js/elements/card-cvc.d.mts +0 -119
  57. package/dist/stripe-js/elements/card-cvc.d.ts +0 -119
  58. package/dist/stripe-js/elements/card-expiry.d.mts +0 -119
  59. package/dist/stripe-js/elements/card-expiry.d.ts +0 -119
  60. package/dist/stripe-js/elements/card-number.d.mts +0 -200
  61. package/dist/stripe-js/elements/card-number.d.ts +0 -200
  62. package/dist/stripe-js/elements/card.d.mts +0 -226
  63. package/dist/stripe-js/elements/card.d.ts +0 -226
  64. package/dist/stripe-js/elements/cart.d.mts +0 -224
  65. package/dist/stripe-js/elements/cart.d.ts +0 -224
  66. package/dist/stripe-js/elements/eps-bank.d.mts +0 -140
  67. package/dist/stripe-js/elements/eps-bank.d.ts +0 -140
  68. package/dist/stripe-js/elements/express-checkout.d.mts +0 -446
  69. package/dist/stripe-js/elements/express-checkout.d.ts +0 -446
  70. package/dist/stripe-js/elements/fpx-bank.d.mts +0 -134
  71. package/dist/stripe-js/elements/fpx-bank.d.ts +0 -134
  72. package/dist/stripe-js/elements/iban.d.mts +0 -135
  73. package/dist/stripe-js/elements/iban.d.ts +0 -135
  74. package/dist/stripe-js/elements/ideal-bank.d.mts +0 -140
  75. package/dist/stripe-js/elements/ideal-bank.d.ts +0 -140
  76. package/dist/stripe-js/elements/index.d.mts +0 -22
  77. package/dist/stripe-js/elements/index.d.ts +0 -22
  78. package/dist/stripe-js/elements/issuing/index.d.mts +0 -5
  79. package/dist/stripe-js/elements/issuing/index.d.ts +0 -5
  80. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +0 -37
  81. package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
  82. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +0 -32
  83. package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
  84. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +0 -32
  85. package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
  86. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +0 -40
  87. package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
  88. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +0 -32
  89. package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
  90. package/dist/stripe-js/elements/link-authentication.d.mts +0 -158
  91. package/dist/stripe-js/elements/link-authentication.d.ts +0 -158
  92. package/dist/stripe-js/elements/p24-bank.d.mts +0 -140
  93. package/dist/stripe-js/elements/p24-bank.d.ts +0 -140
  94. package/dist/stripe-js/elements/payment-method-messaging.d.mts +0 -98
  95. package/dist/stripe-js/elements/payment-method-messaging.d.ts +0 -98
  96. package/dist/stripe-js/elements/payment-request-button.d.mts +0 -151
  97. package/dist/stripe-js/elements/payment-request-button.d.ts +0 -151
  98. package/dist/stripe-js/elements/payment.d.mts +0 -275
  99. package/dist/stripe-js/elements/payment.d.ts +0 -275
  100. package/dist/stripe-js/elements/shipping-address.d.mts +0 -215
  101. package/dist/stripe-js/elements/shipping-address.d.ts +0 -215
  102. package/dist/stripe-js/elements-group.d.mts +0 -1129
  103. package/dist/stripe-js/elements-group.d.ts +0 -1129
  104. package/dist/stripe-js/embedded-checkout.d.mts +0 -35
  105. package/dist/stripe-js/embedded-checkout.d.ts +0 -35
  106. package/dist/stripe-js/ephemeral-keys.d.mts +0 -3
  107. package/dist/stripe-js/ephemeral-keys.d.ts +0 -3
  108. package/dist/stripe-js/financial-connections.d.mts +0 -19
  109. package/dist/stripe-js/financial-connections.d.ts +0 -19
  110. package/dist/stripe-js/index.d.mts +0 -13
  111. package/dist/stripe-js/index.d.ts +0 -13
  112. package/dist/stripe-js/orders.d.mts +0 -9
  113. package/dist/stripe-js/orders.d.ts +0 -9
  114. package/dist/stripe-js/payment-intents.d.mts +0 -1470
  115. package/dist/stripe-js/payment-intents.d.ts +0 -1470
  116. package/dist/stripe-js/payment-request.d.mts +0 -529
  117. package/dist/stripe-js/payment-request.d.ts +0 -529
  118. package/dist/stripe-js/setup-intents.d.mts +0 -250
  119. package/dist/stripe-js/setup-intents.d.ts +0 -250
  120. package/dist/stripe-js/stripe.d.mts +0 -1472
  121. package/dist/stripe-js/stripe.d.ts +0 -1472
  122. package/dist/stripe-js/token-and-sources.d.mts +0 -110
  123. package/dist/stripe-js/token-and-sources.d.ts +0 -110
  124. package/dist/utils.d.mts +0 -2
  125. package/dist/utils.d.ts +0 -2
  126. package/lib/index.d.mts +0 -1
  127. package/lib/index.d.ts +0 -1
  128. package/lib/index.js +0 -2
  129. package/lib/index.mjs +0 -1
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardCvcDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardCvcDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardCvcDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardCvcDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardCvcDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardCvcDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardCvcDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardCvcDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardCvcDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardCvcDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardExpiryDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardExpiryDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardExpiryDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardExpiryDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardExpiryDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardExpiryDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardExpiryDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardExpiryDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardExpiryDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardExpiryDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,40 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardNumberDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardNumberDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardNumberDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;
12
-
13
- /**
14
- * Triggered when the element is fully rendered and can accept `element.focus` calls.
15
- */
16
- on(
17
- eventType: 'ready',
18
- handler: (event: {elementType: 'issuingCardNumberDisplay'}) => any
19
- ): StripeIssuingCardNumberDisplayElement;
20
- };
21
-
22
- export interface StripeIssuingCardNumberDisplayElementOptions {
23
- /**
24
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
25
- */
26
- issuingCard: string;
27
-
28
- /**
29
- * The secret component of the ephemeral key with which to authenticate this sensitive
30
- * card details request
31
- */
32
- ephemeralKeySecret?: string;
33
-
34
- /**
35
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
36
- */
37
- nonce?: string;
38
-
39
- style?: StripeElementStyle;
40
- }
@@ -1,40 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardNumberDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardNumberDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardNumberDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardNumberDisplayElementOptions>): void;
12
-
13
- /**
14
- * Triggered when the element is fully rendered and can accept `element.focus` calls.
15
- */
16
- on(
17
- eventType: 'ready',
18
- handler: (event: {elementType: 'issuingCardNumberDisplay'}) => any
19
- ): StripeIssuingCardNumberDisplayElement;
20
- };
21
-
22
- export interface StripeIssuingCardNumberDisplayElementOptions {
23
- /**
24
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
25
- */
26
- issuingCard: string;
27
-
28
- /**
29
- * The secret component of the ephemeral key with which to authenticate this sensitive
30
- * card details request
31
- */
32
- ephemeralKeySecret?: string;
33
-
34
- /**
35
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
36
- */
37
- nonce?: string;
38
-
39
- style?: StripeElementStyle;
40
- }
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardPinDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardPinDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardPinDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardPinDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardPinDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,32 +0,0 @@
1
- import {StripeElementBase, StripeElementStyle} from '../base';
2
-
3
- export type StripeIssuingCardPinDisplayElement = StripeElementBase & {
4
- /**
5
- * Updates the options the `IssuingCardPinDisplayElement` was initialized with.
6
- * Updates are merged into the existing configuration.
7
- *
8
- * The styles of an `IssuingCardPinDisplayElement` can be dynamically changed using `element.update`.
9
- * This method can be used to simulate CSS media queries that automatically adjust the size of elements when viewed on different devices.
10
- */
11
- update(options: Partial<StripeIssuingCardPinDisplayElementOptions>): void;
12
- };
13
-
14
- export interface StripeIssuingCardPinDisplayElementOptions {
15
- /**
16
- * The token (e.g. `ic_abc123`) of the issued card to display in this Element
17
- */
18
- issuingCard: string;
19
-
20
- /**
21
- * The secret component of the ephemeral key with which to authenticate this sensitive
22
- * card details request
23
- */
24
- ephemeralKeySecret?: string;
25
-
26
- /**
27
- * The nonce used to mint the ephemeral key provided in `ephemeralKeySecret`
28
- */
29
- nonce?: string;
30
-
31
- style?: StripeElementStyle;
32
- }
@@ -1,158 +0,0 @@
1
- import {StripeElementBase} from './base';
2
- import {StripeError} from '../stripe';
3
-
4
- export type StripeLinkAuthenticationElement = StripeElementBase & {
5
- /**
6
- * The change event is triggered when the `Element`'s value changes.
7
- */
8
- on(
9
- eventType: 'change',
10
- handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
11
- ): StripeLinkAuthenticationElement;
12
- once(
13
- eventType: 'change',
14
- handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
15
- ): StripeLinkAuthenticationElement;
16
- off(
17
- eventType: 'change',
18
- handler?: (event: StripeLinkAuthenticationElementChangeEvent) => any
19
- ): StripeLinkAuthenticationElement;
20
-
21
- /**
22
- * Triggered when the element is fully rendered and can accept `element.focus` calls.
23
- */
24
- on(
25
- eventType: 'ready',
26
- handler: (event: {elementType: 'linkAuthentication'}) => any
27
- ): StripeLinkAuthenticationElement;
28
- once(
29
- eventType: 'ready',
30
- handler: (event: {elementType: 'linkAuthentication'}) => any
31
- ): StripeLinkAuthenticationElement;
32
- off(
33
- eventType: 'ready',
34
- handler?: (event: {elementType: 'linkAuthentication'}) => any
35
- ): StripeLinkAuthenticationElement;
36
-
37
- /**
38
- * Triggered when the element gains focus.
39
- */
40
- on(
41
- eventType: 'focus',
42
- handler: (event: {elementType: 'linkAuthentication'}) => any
43
- ): StripeLinkAuthenticationElement;
44
- once(
45
- eventType: 'focus',
46
- handler: (event: {elementType: 'linkAuthentication'}) => any
47
- ): StripeLinkAuthenticationElement;
48
- off(
49
- eventType: 'focus',
50
- handler?: (event: {elementType: 'linkAuthentication'}) => any
51
- ): StripeLinkAuthenticationElement;
52
-
53
- /**
54
- * Triggered when the element loses focus.
55
- */
56
- on(
57
- eventType: 'blur',
58
- handler: (event: {elementType: 'linkAuthentication'}) => any
59
- ): StripeLinkAuthenticationElement;
60
- once(
61
- eventType: 'blur',
62
- handler: (event: {elementType: 'linkAuthentication'}) => any
63
- ): StripeLinkAuthenticationElement;
64
- off(
65
- eventType: 'blur',
66
- handler?: (event: {elementType: 'linkAuthentication'}) => any
67
- ): StripeLinkAuthenticationElement;
68
-
69
- /**
70
- * Triggered when the escape key is pressed within the element.
71
- */
72
- on(
73
- eventType: 'escape',
74
- handler: (event: {elementType: 'linkAuthentication'}) => any
75
- ): StripeLinkAuthenticationElement;
76
- once(
77
- eventType: 'escape',
78
- handler: (event: {elementType: 'linkAuthentication'}) => any
79
- ): StripeLinkAuthenticationElement;
80
- off(
81
- eventType: 'escape',
82
- handler?: (event: {elementType: 'linkAuthentication'}) => any
83
- ): StripeLinkAuthenticationElement;
84
-
85
- /**
86
- * Triggered when the element fails to load.
87
- */
88
- on(
89
- eventType: 'loaderror',
90
- handler: (event: {
91
- elementType: 'linkAuthentication';
92
- error: StripeError;
93
- }) => any
94
- ): StripeLinkAuthenticationElement;
95
- once(
96
- eventType: 'loaderror',
97
- handler: (event: {
98
- elementType: 'linkAuthentication';
99
- error: StripeError;
100
- }) => any
101
- ): StripeLinkAuthenticationElement;
102
- off(
103
- eventType: 'loaderror',
104
- handler?: (event: {
105
- elementType: 'linkAuthentication';
106
- error: StripeError;
107
- }) => any
108
- ): StripeLinkAuthenticationElement;
109
-
110
- /**
111
- * Triggered when the loader UI is mounted to the DOM and ready to be displayed.
112
- */
113
- on(
114
- eventType: 'loaderstart',
115
- handler: (event: {elementType: 'linkAuthentication'}) => any
116
- ): StripeLinkAuthenticationElement;
117
- once(
118
- eventType: 'loaderstart',
119
- handler: (event: {elementType: 'linkAuthentication'}) => any
120
- ): StripeLinkAuthenticationElement;
121
- off(
122
- eventType: 'loaderstart',
123
- handler?: (event: {elementType: 'linkAuthentication'}) => any
124
- ): StripeLinkAuthenticationElement;
125
- };
126
-
127
- export interface StripeLinkAuthenticationElementOptions {
128
- /**
129
- * Default value for LinkAuthenticationElement fields
130
- */
131
- defaultValues?: {
132
- email: string;
133
- };
134
- }
135
-
136
- export interface StripeLinkAuthenticationElementChangeEvent {
137
- /**
138
- * The type of element that emitted this event.
139
- */
140
- elementType: 'linkAuthentication';
141
-
142
- /**
143
- * Whether or not the LinkAuthentication Element is currently empty.
144
- */
145
- empty: boolean;
146
-
147
- /**
148
- * Whether or not the LinkAuthentication Element is complete.
149
- */
150
- complete: boolean;
151
-
152
- /**
153
- * An object containing the current email.
154
- */
155
- value: {
156
- email: string;
157
- };
158
- }
@@ -1,158 +0,0 @@
1
- import {StripeElementBase} from './base';
2
- import {StripeError} from '../stripe';
3
-
4
- export type StripeLinkAuthenticationElement = StripeElementBase & {
5
- /**
6
- * The change event is triggered when the `Element`'s value changes.
7
- */
8
- on(
9
- eventType: 'change',
10
- handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
11
- ): StripeLinkAuthenticationElement;
12
- once(
13
- eventType: 'change',
14
- handler: (event: StripeLinkAuthenticationElementChangeEvent) => any
15
- ): StripeLinkAuthenticationElement;
16
- off(
17
- eventType: 'change',
18
- handler?: (event: StripeLinkAuthenticationElementChangeEvent) => any
19
- ): StripeLinkAuthenticationElement;
20
-
21
- /**
22
- * Triggered when the element is fully rendered and can accept `element.focus` calls.
23
- */
24
- on(
25
- eventType: 'ready',
26
- handler: (event: {elementType: 'linkAuthentication'}) => any
27
- ): StripeLinkAuthenticationElement;
28
- once(
29
- eventType: 'ready',
30
- handler: (event: {elementType: 'linkAuthentication'}) => any
31
- ): StripeLinkAuthenticationElement;
32
- off(
33
- eventType: 'ready',
34
- handler?: (event: {elementType: 'linkAuthentication'}) => any
35
- ): StripeLinkAuthenticationElement;
36
-
37
- /**
38
- * Triggered when the element gains focus.
39
- */
40
- on(
41
- eventType: 'focus',
42
- handler: (event: {elementType: 'linkAuthentication'}) => any
43
- ): StripeLinkAuthenticationElement;
44
- once(
45
- eventType: 'focus',
46
- handler: (event: {elementType: 'linkAuthentication'}) => any
47
- ): StripeLinkAuthenticationElement;
48
- off(
49
- eventType: 'focus',
50
- handler?: (event: {elementType: 'linkAuthentication'}) => any
51
- ): StripeLinkAuthenticationElement;
52
-
53
- /**
54
- * Triggered when the element loses focus.
55
- */
56
- on(
57
- eventType: 'blur',
58
- handler: (event: {elementType: 'linkAuthentication'}) => any
59
- ): StripeLinkAuthenticationElement;
60
- once(
61
- eventType: 'blur',
62
- handler: (event: {elementType: 'linkAuthentication'}) => any
63
- ): StripeLinkAuthenticationElement;
64
- off(
65
- eventType: 'blur',
66
- handler?: (event: {elementType: 'linkAuthentication'}) => any
67
- ): StripeLinkAuthenticationElement;
68
-
69
- /**
70
- * Triggered when the escape key is pressed within the element.
71
- */
72
- on(
73
- eventType: 'escape',
74
- handler: (event: {elementType: 'linkAuthentication'}) => any
75
- ): StripeLinkAuthenticationElement;
76
- once(
77
- eventType: 'escape',
78
- handler: (event: {elementType: 'linkAuthentication'}) => any
79
- ): StripeLinkAuthenticationElement;
80
- off(
81
- eventType: 'escape',
82
- handler?: (event: {elementType: 'linkAuthentication'}) => any
83
- ): StripeLinkAuthenticationElement;
84
-
85
- /**
86
- * Triggered when the element fails to load.
87
- */
88
- on(
89
- eventType: 'loaderror',
90
- handler: (event: {
91
- elementType: 'linkAuthentication';
92
- error: StripeError;
93
- }) => any
94
- ): StripeLinkAuthenticationElement;
95
- once(
96
- eventType: 'loaderror',
97
- handler: (event: {
98
- elementType: 'linkAuthentication';
99
- error: StripeError;
100
- }) => any
101
- ): StripeLinkAuthenticationElement;
102
- off(
103
- eventType: 'loaderror',
104
- handler?: (event: {
105
- elementType: 'linkAuthentication';
106
- error: StripeError;
107
- }) => any
108
- ): StripeLinkAuthenticationElement;
109
-
110
- /**
111
- * Triggered when the loader UI is mounted to the DOM and ready to be displayed.
112
- */
113
- on(
114
- eventType: 'loaderstart',
115
- handler: (event: {elementType: 'linkAuthentication'}) => any
116
- ): StripeLinkAuthenticationElement;
117
- once(
118
- eventType: 'loaderstart',
119
- handler: (event: {elementType: 'linkAuthentication'}) => any
120
- ): StripeLinkAuthenticationElement;
121
- off(
122
- eventType: 'loaderstart',
123
- handler?: (event: {elementType: 'linkAuthentication'}) => any
124
- ): StripeLinkAuthenticationElement;
125
- };
126
-
127
- export interface StripeLinkAuthenticationElementOptions {
128
- /**
129
- * Default value for LinkAuthenticationElement fields
130
- */
131
- defaultValues?: {
132
- email: string;
133
- };
134
- }
135
-
136
- export interface StripeLinkAuthenticationElementChangeEvent {
137
- /**
138
- * The type of element that emitted this event.
139
- */
140
- elementType: 'linkAuthentication';
141
-
142
- /**
143
- * Whether or not the LinkAuthentication Element is currently empty.
144
- */
145
- empty: boolean;
146
-
147
- /**
148
- * Whether or not the LinkAuthentication Element is complete.
149
- */
150
- complete: boolean;
151
-
152
- /**
153
- * An object containing the current email.
154
- */
155
- value: {
156
- email: string;
157
- };
158
- }