@coinflowlabs/vue 1.18.1 → 1.19.1

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.
@@ -24,10 +24,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
24
24
  };
25
25
  redemptionCheck?: boolean;
26
26
  subtotal?: import('..').Subtotal;
27
+ useNativeSubtotal?: boolean;
27
28
  presentment?: import('..').Currency;
28
29
  onSuccess?: import('..').OnSuccessMethod;
29
30
  sessionKey?: string;
30
31
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
32
+ onInputError?: import('..').OnInputErrorMethod;
33
+ onInputValid?: import('..').OnInputValidMethod;
31
34
  webhookInfo?: {
32
35
  [key: string]: any;
33
36
  };
@@ -44,7 +47,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
44
47
  partialUsdcChecked?: boolean;
45
48
  deviceId?: string;
46
49
  jwtToken?: string;
47
- supportEmail?: string;
48
50
  origins?: string[];
49
51
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
50
52
  destinationAuthKey?: string;
@@ -55,6 +57,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
55
57
  loaderBackground?: string;
56
58
  handleHeightChange?: (height: string) => void;
57
59
  theme?: import('..').MerchantTheme;
60
+ supportEmail?: string;
58
61
  } | {
59
62
  walletPubkey: string | null | undefined;
60
63
  route: string;
@@ -63,9 +66,12 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
63
66
  wallet?: undefined;
64
67
  blockchain?: import('..').CoinflowBlockchain | undefined;
65
68
  subtotal?: import('..').Subtotal;
69
+ useNativeSubtotal?: boolean;
66
70
  presentment?: import('..').Currency;
67
71
  onSuccess?: import('..').OnSuccessMethod;
68
72
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
73
+ onInputError?: import('..').OnInputErrorMethod;
74
+ onInputValid?: import('..').OnInputValidMethod;
69
75
  webhookInfo?: {
70
76
  [key: string]: any;
71
77
  };
@@ -82,7 +88,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
82
88
  partialUsdcChecked?: boolean;
83
89
  deviceId?: string;
84
90
  jwtToken?: string;
85
- supportEmail?: string;
86
91
  origins?: string[];
87
92
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
88
93
  destinationAuthKey?: string;
@@ -93,6 +98,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
93
98
  loaderBackground?: string;
94
99
  handleHeightChange?: (height: string) => void;
95
100
  theme?: import('..').MerchantTheme;
101
+ supportEmail?: string;
96
102
  } | {
97
103
  walletPubkey: string | null | undefined;
98
104
  route: string;
@@ -100,10 +106,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
100
106
  blockchain: "polygon";
101
107
  wallet: import('..').EthWallet;
102
108
  subtotal?: import('..').Subtotal;
109
+ useNativeSubtotal?: boolean;
103
110
  presentment?: import('..').Currency;
104
111
  onSuccess?: import('..').OnSuccessMethod;
105
112
  sessionKey?: string;
106
113
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
114
+ onInputError?: import('..').OnInputErrorMethod;
115
+ onInputValid?: import('..').OnInputValidMethod;
107
116
  webhookInfo?: {
108
117
  [key: string]: any;
109
118
  };
@@ -120,7 +129,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
120
129
  partialUsdcChecked?: boolean;
121
130
  deviceId?: string;
122
131
  jwtToken?: string;
123
- supportEmail?: string;
124
132
  origins?: string[];
125
133
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
126
134
  destinationAuthKey?: string;
@@ -131,6 +139,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
131
139
  loaderBackground?: string;
132
140
  handleHeightChange?: (height: string) => void;
133
141
  theme?: import('..').MerchantTheme;
142
+ supportEmail?: string;
134
143
  } | {
135
144
  walletPubkey: string | null | undefined;
136
145
  route: string;
@@ -138,10 +147,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
138
147
  blockchain: "eth";
139
148
  wallet: import('..').EthWallet;
140
149
  subtotal?: import('..').Subtotal;
150
+ useNativeSubtotal?: boolean;
141
151
  presentment?: import('..').Currency;
142
152
  onSuccess?: import('..').OnSuccessMethod;
143
153
  sessionKey?: string;
144
154
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
155
+ onInputError?: import('..').OnInputErrorMethod;
156
+ onInputValid?: import('..').OnInputValidMethod;
145
157
  webhookInfo?: {
146
158
  [key: string]: any;
147
159
  };
@@ -158,7 +170,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
158
170
  partialUsdcChecked?: boolean;
159
171
  deviceId?: string;
160
172
  jwtToken?: string;
161
- supportEmail?: string;
162
173
  origins?: string[];
163
174
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
164
175
  destinationAuthKey?: string;
@@ -169,6 +180,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
169
180
  loaderBackground?: string;
170
181
  handleHeightChange?: (height: string) => void;
171
182
  theme?: import('..').MerchantTheme;
183
+ supportEmail?: string;
172
184
  } | {
173
185
  walletPubkey: string | null | undefined;
174
186
  route: string;
@@ -176,10 +188,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
176
188
  blockchain: "base";
177
189
  wallet: import('..').EthWallet;
178
190
  subtotal?: import('..').Subtotal;
191
+ useNativeSubtotal?: boolean;
179
192
  presentment?: import('..').Currency;
180
193
  onSuccess?: import('..').OnSuccessMethod;
181
194
  sessionKey?: string;
182
195
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
196
+ onInputError?: import('..').OnInputErrorMethod;
197
+ onInputValid?: import('..').OnInputValidMethod;
183
198
  webhookInfo?: {
184
199
  [key: string]: any;
185
200
  };
@@ -196,7 +211,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
196
211
  partialUsdcChecked?: boolean;
197
212
  deviceId?: string;
198
213
  jwtToken?: string;
199
- supportEmail?: string;
200
214
  origins?: string[];
201
215
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
202
216
  destinationAuthKey?: string;
@@ -207,6 +221,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
207
221
  loaderBackground?: string;
208
222
  handleHeightChange?: (height: string) => void;
209
223
  theme?: import('..').MerchantTheme;
224
+ supportEmail?: string;
210
225
  } | {
211
226
  walletPubkey: string | null | undefined;
212
227
  route: string;
@@ -214,10 +229,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
214
229
  blockchain: "arbitrum";
215
230
  wallet: import('..').EthWallet;
216
231
  subtotal?: import('..').Subtotal;
232
+ useNativeSubtotal?: boolean;
217
233
  presentment?: import('..').Currency;
218
234
  onSuccess?: import('..').OnSuccessMethod;
219
235
  sessionKey?: string;
220
236
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
237
+ onInputError?: import('..').OnInputErrorMethod;
238
+ onInputValid?: import('..').OnInputValidMethod;
221
239
  webhookInfo?: {
222
240
  [key: string]: any;
223
241
  };
@@ -234,7 +252,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
234
252
  partialUsdcChecked?: boolean;
235
253
  deviceId?: string;
236
254
  jwtToken?: string;
237
- supportEmail?: string;
238
255
  origins?: string[];
239
256
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
240
257
  destinationAuthKey?: string;
@@ -245,6 +262,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
245
262
  loaderBackground?: string;
246
263
  handleHeightChange?: (height: string) => void;
247
264
  theme?: import('..').MerchantTheme;
265
+ supportEmail?: string;
248
266
  } | {
249
267
  walletPubkey: string | null | undefined;
250
268
  route: string;
@@ -252,10 +270,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
252
270
  wallet: import('..').StellarWallet;
253
271
  blockchain: "stellar";
254
272
  subtotal?: import('..').Subtotal;
273
+ useNativeSubtotal?: boolean;
255
274
  presentment?: import('..').Currency;
256
275
  onSuccess?: import('..').OnSuccessMethod;
257
276
  sessionKey?: string;
258
277
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
278
+ onInputError?: import('..').OnInputErrorMethod;
279
+ onInputValid?: import('..').OnInputValidMethod;
259
280
  webhookInfo?: {
260
281
  [key: string]: any;
261
282
  };
@@ -272,7 +293,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
272
293
  partialUsdcChecked?: boolean;
273
294
  deviceId?: string;
274
295
  jwtToken?: string;
275
- supportEmail?: string;
276
296
  origins?: string[];
277
297
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
278
298
  destinationAuthKey?: string;
@@ -283,6 +303,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
283
303
  loaderBackground?: string;
284
304
  handleHeightChange?: (height: string) => void;
285
305
  theme?: import('..').MerchantTheme;
306
+ supportEmail?: string;
286
307
  } | {
287
308
  walletPubkey: string | null | undefined;
288
309
  route: string;
@@ -290,10 +311,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
290
311
  blockchain: "monad";
291
312
  wallet: import('..').EthWallet;
292
313
  subtotal?: import('..').Subtotal;
314
+ useNativeSubtotal?: boolean;
293
315
  presentment?: import('..').Currency;
294
316
  onSuccess?: import('..').OnSuccessMethod;
295
317
  sessionKey?: string;
296
318
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
319
+ onInputError?: import('..').OnInputErrorMethod;
320
+ onInputValid?: import('..').OnInputValidMethod;
297
321
  webhookInfo?: {
298
322
  [key: string]: any;
299
323
  };
@@ -310,7 +334,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
310
334
  partialUsdcChecked?: boolean;
311
335
  deviceId?: string;
312
336
  jwtToken?: string;
313
- supportEmail?: string;
314
337
  origins?: string[];
315
338
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
316
339
  destinationAuthKey?: string;
@@ -321,6 +344,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
321
344
  loaderBackground?: string;
322
345
  handleHeightChange?: (height: string) => void;
323
346
  theme?: import('..').MerchantTheme;
347
+ supportEmail?: string;
324
348
  } | {
325
349
  walletPubkey: string | null | undefined;
326
350
  route: string;
@@ -328,10 +352,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
328
352
  blockchain: "tempo";
329
353
  wallet: import('..').EthWallet;
330
354
  subtotal?: import('..').Subtotal;
355
+ useNativeSubtotal?: boolean;
331
356
  presentment?: import('..').Currency;
332
357
  onSuccess?: import('..').OnSuccessMethod;
333
358
  sessionKey?: string;
334
359
  onAuthDeclined?: import('..').OnAuthDeclinedMethod;
360
+ onInputError?: import('..').OnInputErrorMethod;
361
+ onInputValid?: import('..').OnInputValidMethod;
335
362
  webhookInfo?: {
336
363
  [key: string]: any;
337
364
  };
@@ -348,7 +375,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
348
375
  partialUsdcChecked?: boolean;
349
376
  deviceId?: string;
350
377
  jwtToken?: string;
351
- supportEmail?: string;
352
378
  origins?: string[];
353
379
  threeDsChallengePreference?: import('..').ThreeDsChallengePreference;
354
380
  destinationAuthKey?: string;
@@ -359,11 +385,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
359
385
  loaderBackground?: string;
360
386
  handleHeightChange?: (height: string) => void;
361
387
  theme?: import('..').MerchantTheme;
388
+ supportEmail?: string;
362
389
  };
363
390
  messageHandlers(): {
364
391
  handleHeightChange: ((height: string) => void) | undefined;
392
+ onAccountLinked?: import('..').OnAccountLinkedMethod | undefined;
393
+ onAccountNotLinked?: import('..').OnAccountNotLinkedMethod | undefined;
394
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod | undefined;
365
395
  onSuccess: import('..').OnSuccessMethod | undefined;
366
396
  onAuthDeclined: import('..').OnAuthDeclinedMethod | undefined;
397
+ onInputError?: import('..').OnInputErrorMethod | undefined;
398
+ onInputValid?: import('..').OnInputValidMethod | undefined;
367
399
  handleSendTransaction: (transaction: string) => Promise<string>;
368
400
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
369
401
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
@@ -12,6 +12,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
12
  route: string;
13
13
  transaction: undefined;
14
14
  onSuccess?: import('..').OnSuccessMethod;
15
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
15
16
  tokens?: string[];
16
17
  lockDefaultToken?: boolean;
17
18
  amount?: number;
@@ -37,6 +38,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
37
38
  blockchain: "solana";
38
39
  handleHeightChange?: (height: string) => void;
39
40
  theme?: import('..').MerchantTheme;
41
+ supportEmail?: string;
40
42
  wallet: import('..').SolanaWallet;
41
43
  connection: import('@solana/web3.js').Connection;
42
44
  ownerOverride?: string;
@@ -45,6 +47,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
45
47
  route: string;
46
48
  transaction: undefined;
47
49
  onSuccess?: import('..').OnSuccessMethod;
50
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
48
51
  tokens?: string[];
49
52
  lockDefaultToken?: boolean;
50
53
  amount?: number;
@@ -70,6 +73,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
70
73
  blockchain: "eth";
71
74
  handleHeightChange?: (height: string) => void;
72
75
  theme?: import('..').MerchantTheme;
76
+ supportEmail?: string;
73
77
  wallet: import('..').EthWallet;
74
78
  usePermit?: boolean;
75
79
  } | {
@@ -77,6 +81,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
77
81
  route: string;
78
82
  transaction: undefined;
79
83
  onSuccess?: import('..').OnSuccessMethod;
84
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
80
85
  tokens?: string[];
81
86
  lockDefaultToken?: boolean;
82
87
  amount?: number;
@@ -102,6 +107,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
102
107
  blockchain: "polygon";
103
108
  handleHeightChange?: (height: string) => void;
104
109
  theme?: import('..').MerchantTheme;
110
+ supportEmail?: string;
105
111
  wallet: import('..').EthWallet;
106
112
  usePermit?: boolean;
107
113
  } | {
@@ -109,6 +115,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
109
115
  route: string;
110
116
  transaction: undefined;
111
117
  onSuccess?: import('..').OnSuccessMethod;
118
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
112
119
  tokens?: string[];
113
120
  lockDefaultToken?: boolean;
114
121
  amount?: number;
@@ -134,6 +141,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
134
141
  blockchain: "base";
135
142
  handleHeightChange?: (height: string) => void;
136
143
  theme?: import('..').MerchantTheme;
144
+ supportEmail?: string;
137
145
  wallet: import('..').EthWallet;
138
146
  usePermit?: boolean;
139
147
  } | {
@@ -141,6 +149,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
141
149
  route: string;
142
150
  transaction: undefined;
143
151
  onSuccess?: import('..').OnSuccessMethod;
152
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
144
153
  tokens?: string[];
145
154
  lockDefaultToken?: boolean;
146
155
  amount?: number;
@@ -166,6 +175,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
166
175
  blockchain: "arbitrum";
167
176
  handleHeightChange?: (height: string) => void;
168
177
  theme?: import('..').MerchantTheme;
178
+ supportEmail?: string;
169
179
  wallet: import('..').EthWallet;
170
180
  usePermit?: boolean;
171
181
  } | {
@@ -173,6 +183,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
173
183
  route: string;
174
184
  transaction: undefined;
175
185
  onSuccess?: import('..').OnSuccessMethod;
186
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
176
187
  tokens?: string[];
177
188
  lockDefaultToken?: boolean;
178
189
  amount?: number;
@@ -198,12 +209,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
198
209
  blockchain: "stellar";
199
210
  handleHeightChange?: (height: string) => void;
200
211
  theme?: import('..').MerchantTheme;
212
+ supportEmail?: string;
201
213
  wallet: import('..').StellarWallet;
202
214
  } | {
203
215
  walletPubkey: string | null | undefined;
204
216
  route: string;
205
217
  transaction: undefined;
206
218
  onSuccess?: import('..').OnSuccessMethod;
219
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
207
220
  tokens?: string[];
208
221
  lockDefaultToken?: boolean;
209
222
  amount?: number;
@@ -229,6 +242,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
229
242
  blockchain: "monad";
230
243
  handleHeightChange?: (height: string) => void;
231
244
  theme?: import('..').MerchantTheme;
245
+ supportEmail?: string;
232
246
  wallet: import('..').EthWallet;
233
247
  usePermit?: boolean;
234
248
  } | {
@@ -236,6 +250,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
236
250
  route: string;
237
251
  transaction: undefined;
238
252
  onSuccess?: import('..').OnSuccessMethod;
253
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod;
239
254
  tokens?: string[];
240
255
  lockDefaultToken?: boolean;
241
256
  amount?: number;
@@ -261,13 +276,19 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
261
276
  blockchain: "tempo";
262
277
  handleHeightChange?: (height: string) => void;
263
278
  theme?: import('..').MerchantTheme;
279
+ supportEmail?: string;
264
280
  wallet: import('..').EthWallet;
265
281
  usePermit?: boolean;
266
282
  };
267
283
  messageHandlers(): {
268
284
  handleHeightChange: ((height: string) => void) | undefined;
285
+ onAccountLinked?: import('..').OnAccountLinkedMethod | undefined;
286
+ onAccountNotLinked?: import('..').OnAccountNotLinkedMethod | undefined;
287
+ onAccountLinkError?: import('..').OnAccountLinkErrorMethod | undefined;
269
288
  onSuccess: import('..').OnSuccessMethod | undefined;
270
289
  onAuthDeclined: import('..').OnAuthDeclinedMethod | undefined;
290
+ onInputError?: import('..').OnInputErrorMethod | undefined;
291
+ onInputValid?: import('..').OnInputValidMethod | undefined;
271
292
  handleSendTransaction: (transaction: string) => Promise<string>;
272
293
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
273
294
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
@@ -9,7 +9,61 @@ declare function __VLS_template(): {
9
9
  slots: {
10
10
  default?(_: {}): any;
11
11
  };
12
- refs: {};
12
+ refs: {
13
+ iframeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
14
+ args: {
15
+ type: PropType<import('../..').CoinflowIFrameProps & import('../..').IFrameMessageHandlers>;
16
+ required: true;
17
+ };
18
+ }>> & Readonly<{
19
+ onOnMessage?: ((_data: {
20
+ data: string;
21
+ origin: string;
22
+ }) => any) | undefined;
23
+ }>, {}, {}, {
24
+ url(): string;
25
+ }, {
26
+ sendMessage(message: string): void;
27
+ handleIframeMessages({ data, origin }: {
28
+ data: unknown;
29
+ origin: string;
30
+ }): void;
31
+ listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
32
+ sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
33
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ onMessage(_data: {
35
+ data: string;
36
+ origin: string;
37
+ }): true;
38
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
39
+ P: {};
40
+ B: {};
41
+ D: {};
42
+ C: {};
43
+ M: {};
44
+ Defaults: {};
45
+ }, Readonly<import('vue').ExtractPropTypes<{
46
+ args: {
47
+ type: PropType<import('../..').CoinflowIFrameProps & import('../..').IFrameMessageHandlers>;
48
+ required: true;
49
+ };
50
+ }>> & Readonly<{
51
+ onOnMessage?: ((_data: {
52
+ data: string;
53
+ origin: string;
54
+ }) => any) | undefined;
55
+ }>, {}, {}, {
56
+ url(): string;
57
+ }, {
58
+ sendMessage(message: string): void;
59
+ handleIframeMessages({ data, origin }: {
60
+ data: unknown;
61
+ origin: string;
62
+ }): void;
63
+ listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
64
+ sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
65
+ }, {}> | null;
66
+ };
13
67
  rootEl: HTMLDivElement;
14
68
  };
15
69
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
@@ -47,7 +101,61 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
47
101
  type: StringConstructor;
48
102
  required: false;
49
103
  };
50
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
104
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
105
+ iframeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
106
+ args: {
107
+ type: PropType<import('../..').CoinflowIFrameProps & import('../..').IFrameMessageHandlers>;
108
+ required: true;
109
+ };
110
+ }>> & Readonly<{
111
+ onOnMessage?: ((_data: {
112
+ data: string;
113
+ origin: string;
114
+ }) => any) | undefined;
115
+ }>, {}, {}, {
116
+ url(): string;
117
+ }, {
118
+ sendMessage(message: string): void;
119
+ handleIframeMessages({ data, origin }: {
120
+ data: unknown;
121
+ origin: string;
122
+ }): void;
123
+ listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
124
+ sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
125
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
126
+ onMessage(_data: {
127
+ data: string;
128
+ origin: string;
129
+ }): true;
130
+ }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
131
+ P: {};
132
+ B: {};
133
+ D: {};
134
+ C: {};
135
+ M: {};
136
+ Defaults: {};
137
+ }, Readonly<import('vue').ExtractPropTypes<{
138
+ args: {
139
+ type: PropType<import('../..').CoinflowIFrameProps & import('../..').IFrameMessageHandlers>;
140
+ required: true;
141
+ };
142
+ }>> & Readonly<{
143
+ onOnMessage?: ((_data: {
144
+ data: string;
145
+ origin: string;
146
+ }) => any) | undefined;
147
+ }>, {}, {}, {
148
+ url(): string;
149
+ }, {
150
+ sendMessage(message: string): void;
151
+ handleIframeMessages({ data, origin }: {
152
+ data: unknown;
153
+ origin: string;
154
+ }): void;
155
+ listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
156
+ sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
157
+ }, {}> | null;
158
+ }, HTMLDivElement>;
51
159
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
52
160
  export default _default;
53
161
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,4 +1,4 @@
1
- import { CoinflowPurchaseProps, OnAuthDeclinedMethod, OnSuccessMethod } from './CoinflowTypes';
1
+ import { CoinflowPurchaseProps, OnAccountLinkedMethod, OnAccountLinkErrorMethod, OnAccountNotLinkedMethod, OnAuthDeclinedMethod, OnInputErrorMethod, OnInputValidMethod, OnSuccessMethod } from './CoinflowTypes';
2
2
  export type WalletCall = {
3
3
  method: IFrameMessageMethods;
4
4
  data: string;
@@ -18,6 +18,18 @@ export interface IFrameMessageHandlers {
18
18
  handleHeightChange?: (height: string) => void;
19
19
  onSuccess: OnSuccessMethod | undefined;
20
20
  onAuthDeclined: OnAuthDeclinedMethod | undefined;
21
+ onInputError?: OnInputErrorMethod | undefined;
22
+ onInputValid?: OnInputValidMethod | undefined;
23
+ /**
24
+ * Called when the customer finishes linking a payment or payout account in
25
+ * the iframe. For bank links the info carries the linked account tokens.
26
+ */
27
+ onAccountLinked?: OnAccountLinkedMethod | undefined;
28
+ onAccountNotLinked?: OnAccountNotLinkedMethod | undefined;
29
+ /**
30
+ * Called when an account link attempt fails, with the error that caused it.
31
+ */
32
+ onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
21
33
  /**
22
34
  * Called when the iframe opens/closes an in-page overlay (e.g. the PayPal
23
35
  * approval modal). `state` is 'open' or 'close'.
@@ -31,12 +43,21 @@ export declare enum IFrameMessageMethods {
31
43
  HeightChange = "heightChange",
32
44
  Success = "success",
33
45
  AuthDeclined = "authDeclined",
46
+ InputError = "inputError",
47
+ InputValid = "inputValid",
34
48
  Loaded = "loaded",
35
49
  AccountLinked = "accountLinked",
50
+ AccountNotLinked = "accountNotLinked",
51
+ AccountLinkError = "accountLinkError",
36
52
  Redirect = "redirect",
37
- Overlay = "overlay"
53
+ Overlay = "overlay",
54
+ UpdateSubtotal = "updateSubtotal"
38
55
  }
39
56
  export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
40
57
  export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
41
- export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess' | 'onAuthDeclined'>): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
58
+ export declare function getHandlers(props: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain' | 'onSuccess' | 'onAuthDeclined' | 'onInputError' | 'onInputValid'> & {
59
+ onAccountLinked?: OnAccountLinkedMethod | undefined;
60
+ onAccountNotLinked?: OnAccountNotLinkedMethod | undefined;
61
+ onAccountLinkError?: OnAccountLinkErrorMethod | undefined;
62
+ }): Omit<IFrameMessageHandlers, 'handleHeightChange'>;
42
63
  export {};