@coinflowlabs/vue 1.9.1 → 1.10.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.
- package/README.md +8 -0
- package/dist/coinflow-vue.js +273 -256
- package/dist/coinflow-vue.umd.cjs +8 -8
- package/dist/components/CoinflowPurchase.vue.d.ts +45 -0
- package/dist/components/CoinflowWithdraw.vue.d.ts +34 -7
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +2 -1
- package/dist/lib/common/CoinflowTypes.d.ts +19 -8
- package/dist/lib/common/CoinflowUtils.d.ts +1 -0
- package/package.json +1 -1
|
@@ -27,6 +27,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
27
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
28
28
|
presentment?: import('../lib/common').Currency;
|
|
29
29
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
30
|
+
sessionKey?: string;
|
|
30
31
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
31
32
|
webhookInfo?: {
|
|
32
33
|
[key: string]: any;
|
|
@@ -102,6 +103,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
102
103
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
103
104
|
presentment?: import('../lib/common').Currency;
|
|
104
105
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
106
|
+
sessionKey?: string;
|
|
105
107
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
106
108
|
webhookInfo?: {
|
|
107
109
|
[key: string]: any;
|
|
@@ -139,6 +141,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
139
141
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
140
142
|
presentment?: import('../lib/common').Currency;
|
|
141
143
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
144
|
+
sessionKey?: string;
|
|
142
145
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
143
146
|
webhookInfo?: {
|
|
144
147
|
[key: string]: any;
|
|
@@ -176,6 +179,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
176
179
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
177
180
|
presentment?: import('../lib/common').Currency;
|
|
178
181
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
182
|
+
sessionKey?: string;
|
|
179
183
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
180
184
|
webhookInfo?: {
|
|
181
185
|
[key: string]: any;
|
|
@@ -213,6 +217,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
213
217
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
214
218
|
presentment?: import('../lib/common').Currency;
|
|
215
219
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
220
|
+
sessionKey?: string;
|
|
216
221
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
217
222
|
webhookInfo?: {
|
|
218
223
|
[key: string]: any;
|
|
@@ -250,6 +255,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
250
255
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
251
256
|
presentment?: import('../lib/common').Currency;
|
|
252
257
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
258
|
+
sessionKey?: string;
|
|
253
259
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
254
260
|
webhookInfo?: {
|
|
255
261
|
[key: string]: any;
|
|
@@ -287,6 +293,45 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
287
293
|
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
288
294
|
presentment?: import('../lib/common').Currency;
|
|
289
295
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
296
|
+
sessionKey?: string;
|
|
297
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
298
|
+
webhookInfo?: {
|
|
299
|
+
[key: string]: any;
|
|
300
|
+
};
|
|
301
|
+
email?: string;
|
|
302
|
+
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
303
|
+
chargebackProtectionAccountType?: import('../lib/common').ChargebackProtectionAccountType;
|
|
304
|
+
planCode?: string;
|
|
305
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
306
|
+
customerInfo?: import('../lib/common').CustomerInfo;
|
|
307
|
+
settlementType?: import('../lib/common').SettlementType;
|
|
308
|
+
authOnly?: boolean;
|
|
309
|
+
isZeroAuthorization?: boolean;
|
|
310
|
+
zeroAuthorizationConfig?: import('../lib/common').ZeroAuthorizationConfig;
|
|
311
|
+
partialUsdcChecked?: boolean;
|
|
312
|
+
deviceId?: string;
|
|
313
|
+
jwtToken?: string;
|
|
314
|
+
supportEmail?: string;
|
|
315
|
+
origins?: string[];
|
|
316
|
+
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
317
|
+
destinationAuthKey?: string;
|
|
318
|
+
accountFundingTransaction?: import('../lib/common').AccountFundingTransaction;
|
|
319
|
+
merchantId: string;
|
|
320
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
321
|
+
loaderBackground?: string;
|
|
322
|
+
handleHeightChange?: (height: string) => void;
|
|
323
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
324
|
+
} | {
|
|
325
|
+
walletPubkey: string | null | undefined;
|
|
326
|
+
route: string;
|
|
327
|
+
transaction: string | undefined;
|
|
328
|
+
blockchain: "tempo";
|
|
329
|
+
wallet: import('../lib/common').EthWallet;
|
|
330
|
+
subtotal?: import('../lib/common').Subtotal;
|
|
331
|
+
customPayInFees?: import('../lib/common').PurchaseCustomPayInFee[];
|
|
332
|
+
presentment?: import('../lib/common').Currency;
|
|
333
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
334
|
+
sessionKey?: string;
|
|
290
335
|
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
291
336
|
webhookInfo?: {
|
|
292
337
|
[key: string]: any;
|
|
@@ -19,7 +19,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
19
19
|
bankAccountLinkRedirect?: string;
|
|
20
20
|
additionalWallets?: {
|
|
21
21
|
wallet: string;
|
|
22
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
22
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
23
23
|
}[];
|
|
24
24
|
lockAmount?: boolean;
|
|
25
25
|
transactionSigner?: string;
|
|
@@ -46,7 +46,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
bankAccountLinkRedirect?: string;
|
|
47
47
|
additionalWallets?: {
|
|
48
48
|
wallet: string;
|
|
49
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
49
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
50
50
|
}[];
|
|
51
51
|
lockAmount?: boolean;
|
|
52
52
|
transactionSigner?: string;
|
|
@@ -73,7 +73,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
73
73
|
bankAccountLinkRedirect?: string;
|
|
74
74
|
additionalWallets?: {
|
|
75
75
|
wallet: string;
|
|
76
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
76
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
77
77
|
}[];
|
|
78
78
|
lockAmount?: boolean;
|
|
79
79
|
transactionSigner?: string;
|
|
@@ -100,7 +100,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
100
100
|
bankAccountLinkRedirect?: string;
|
|
101
101
|
additionalWallets?: {
|
|
102
102
|
wallet: string;
|
|
103
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
103
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
104
104
|
}[];
|
|
105
105
|
lockAmount?: boolean;
|
|
106
106
|
transactionSigner?: string;
|
|
@@ -127,7 +127,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
127
127
|
bankAccountLinkRedirect?: string;
|
|
128
128
|
additionalWallets?: {
|
|
129
129
|
wallet: string;
|
|
130
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
130
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
131
131
|
}[];
|
|
132
132
|
lockAmount?: boolean;
|
|
133
133
|
transactionSigner?: string;
|
|
@@ -154,7 +154,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
154
154
|
bankAccountLinkRedirect?: string;
|
|
155
155
|
additionalWallets?: {
|
|
156
156
|
wallet: string;
|
|
157
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
157
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
158
158
|
}[];
|
|
159
159
|
lockAmount?: boolean;
|
|
160
160
|
transactionSigner?: string;
|
|
@@ -180,7 +180,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
180
180
|
bankAccountLinkRedirect?: string;
|
|
181
181
|
additionalWallets?: {
|
|
182
182
|
wallet: string;
|
|
183
|
-
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "stellar";
|
|
183
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
184
184
|
}[];
|
|
185
185
|
lockAmount?: boolean;
|
|
186
186
|
transactionSigner?: string;
|
|
@@ -195,6 +195,33 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
195
195
|
theme?: import('../lib/common').MerchantTheme;
|
|
196
196
|
wallet: import('../lib/common').EthWallet;
|
|
197
197
|
usePermit?: boolean;
|
|
198
|
+
} | {
|
|
199
|
+
walletPubkey: string | null | undefined;
|
|
200
|
+
route: string;
|
|
201
|
+
transaction: undefined;
|
|
202
|
+
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
203
|
+
tokens?: string[];
|
|
204
|
+
lockDefaultToken?: boolean;
|
|
205
|
+
amount?: number;
|
|
206
|
+
email?: string;
|
|
207
|
+
bankAccountLinkRedirect?: string;
|
|
208
|
+
additionalWallets?: {
|
|
209
|
+
wallet: string;
|
|
210
|
+
blockchain: "solana" | "eth" | "polygon" | "base" | "arbitrum" | "monad" | "tempo" | "stellar";
|
|
211
|
+
}[];
|
|
212
|
+
lockAmount?: boolean;
|
|
213
|
+
transactionSigner?: string;
|
|
214
|
+
origins?: string[];
|
|
215
|
+
sessionKey?: string;
|
|
216
|
+
allowedWithdrawSpeeds?: import('../lib/common').WithdrawSpeed[];
|
|
217
|
+
merchantId: string;
|
|
218
|
+
env?: import('../lib/common').CoinflowEnvs;
|
|
219
|
+
loaderBackground?: string;
|
|
220
|
+
blockchain: "tempo";
|
|
221
|
+
handleHeightChange?: (height: string) => void;
|
|
222
|
+
theme?: import('../lib/common').MerchantTheme;
|
|
223
|
+
wallet: import('../lib/common').EthWallet;
|
|
224
|
+
usePermit?: boolean;
|
|
198
225
|
};
|
|
199
226
|
messageHandlers(): {
|
|
200
227
|
handleHeightChange: ((height: string) => void) | undefined;
|
|
@@ -27,7 +27,8 @@ export declare enum IFrameMessageMethods {
|
|
|
27
27
|
Success = "success",
|
|
28
28
|
AuthDeclined = "authDeclined",
|
|
29
29
|
Loaded = "loaded",
|
|
30
|
-
AccountLinked = "accountLinked"
|
|
30
|
+
AccountLinked = "accountLinked",
|
|
31
|
+
Redirect = "redirect"
|
|
31
32
|
}
|
|
32
33
|
export declare function getWalletPubkey(input: Pick<CoinflowPurchaseProps, 'wallet' | 'blockchain'>): string | null | undefined;
|
|
33
34
|
export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers, handleHeightChangeId: string | number): Promise<string> | void;
|
|
@@ -122,7 +122,7 @@ export interface SplitNameCustomerInfo extends BaseCustomerInfo {
|
|
|
122
122
|
}
|
|
123
123
|
export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
|
|
124
124
|
/** Coinflow Types **/
|
|
125
|
-
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad' | 'user';
|
|
125
|
+
export type CoinflowBlockchain = 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'stellar' | 'monad' | 'tempo' | 'user';
|
|
126
126
|
export type CoinflowEnvs = 'prod' | 'staging' | 'staging-live' | 'sandbox' | 'local';
|
|
127
127
|
export interface CoinflowTypes {
|
|
128
128
|
merchantId: string;
|
|
@@ -198,7 +198,7 @@ export interface CoinflowSessionKeyHistoryProps extends CoinflowTypes {
|
|
|
198
198
|
}
|
|
199
199
|
export interface CoinflowEvmHistoryProps extends CoinflowTypes {
|
|
200
200
|
wallet: EthWallet;
|
|
201
|
-
blockchain: 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad';
|
|
201
|
+
blockchain: 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo';
|
|
202
202
|
}
|
|
203
203
|
export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
|
|
204
204
|
blockchain: 'eth';
|
|
@@ -219,7 +219,10 @@ export interface CoinflowStellarHistoryProps extends CoinflowTypes {
|
|
|
219
219
|
export interface CoinflowMonadHistoryProps extends CoinflowEvmHistoryProps {
|
|
220
220
|
blockchain: 'monad';
|
|
221
221
|
}
|
|
222
|
-
export
|
|
222
|
+
export interface CoinflowTempoHistoryProps extends CoinflowEvmHistoryProps {
|
|
223
|
+
blockchain: 'tempo';
|
|
224
|
+
}
|
|
225
|
+
export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps | CoinflowArbitrumHistoryProps | CoinflowStellarHistoryProps | CoinflowMonadHistoryProps | CoinflowTempoHistoryProps | CoinflowSessionKeyHistoryProps;
|
|
223
226
|
type Bytes = ArrayLike<number>;
|
|
224
227
|
type BytesLike = Bytes | string;
|
|
225
228
|
/**
|
|
@@ -253,8 +256,8 @@ export declare enum PaymentMethods {
|
|
|
253
256
|
applePay = "applePay",
|
|
254
257
|
credits = "credits",
|
|
255
258
|
crypto = "crypto",
|
|
256
|
-
|
|
257
|
-
|
|
259
|
+
wire = "wire",
|
|
260
|
+
cashApp = "cashApp"
|
|
258
261
|
}
|
|
259
262
|
export declare const paymentMethodLabels: Record<PaymentMethods, string>;
|
|
260
263
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
@@ -266,6 +269,7 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
266
269
|
customPayInFees?: PurchaseCustomPayInFee[];
|
|
267
270
|
presentment?: Currency;
|
|
268
271
|
onSuccess?: OnSuccessMethod;
|
|
272
|
+
sessionKey?: string;
|
|
269
273
|
onAuthDeclined?: OnAuthDeclinedMethod;
|
|
270
274
|
webhookInfo?: {
|
|
271
275
|
[key: string]: any;
|
|
@@ -375,7 +379,10 @@ export interface CoinflowStellarPurchaseProps extends CoinflowCommonPurchaseProp
|
|
|
375
379
|
export interface CoinflowMonadPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
376
380
|
blockchain: 'monad';
|
|
377
381
|
}
|
|
378
|
-
export
|
|
382
|
+
export interface CoinflowTempoPurchaseProps extends CoinflowEvmPurchaseProps {
|
|
383
|
+
blockchain: 'tempo';
|
|
384
|
+
}
|
|
385
|
+
export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowSessionKeyPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps | CoinflowArbitrumPurchaseProps | CoinflowStellarPurchaseProps | CoinflowMonadPurchaseProps | CoinflowTempoPurchaseProps;
|
|
379
386
|
/** Withdraw **/
|
|
380
387
|
export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
381
388
|
onSuccess?: OnSuccessMethod;
|
|
@@ -386,7 +393,7 @@ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
|
|
|
386
393
|
bankAccountLinkRedirect?: string;
|
|
387
394
|
additionalWallets?: {
|
|
388
395
|
wallet: string;
|
|
389
|
-
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'stellar';
|
|
396
|
+
blockchain: 'solana' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'monad' | 'tempo' | 'stellar';
|
|
390
397
|
}[];
|
|
391
398
|
lockAmount?: boolean;
|
|
392
399
|
transactionSigner?: string;
|
|
@@ -445,7 +452,11 @@ export interface MonadWalletProps {
|
|
|
445
452
|
blockchain: 'monad';
|
|
446
453
|
}
|
|
447
454
|
export type CoinflowMonadWithdrawProps = CoinflowEvmWithdrawProps & MonadWalletProps;
|
|
448
|
-
export
|
|
455
|
+
export interface TempoWalletProps {
|
|
456
|
+
blockchain: 'tempo';
|
|
457
|
+
}
|
|
458
|
+
export type CoinflowTempoWithdrawProps = CoinflowEvmWithdrawProps & TempoWalletProps;
|
|
459
|
+
export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps | CoinflowArbitrumWithdrawProps | CoinflowStellarWithdrawProps | CoinflowMonadWithdrawProps | CoinflowTempoWithdrawProps;
|
|
449
460
|
export interface CommonEvmRedeem {
|
|
450
461
|
/**
|
|
451
462
|
* Whether the UI should wait
|