@coinflowlabs/vue 1.0.0 → 1.0.2
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 +49 -22
- package/dist/coinflow-vue.js +2414 -2399
- package/dist/coinflow-vue.umd.cjs +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +14 -14
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +1 -1
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +1 -1
- package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +1 -1
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/ApplePayOverlay.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +1 -1
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +3 -2
- package/dist/lib/common/CoinflowTypes.d.ts +44 -5
- package/dist/lib/common/CoinflowUtils.d.ts +7 -2
- package/dist/lib/common/card-form/tokenexHelpers.d.ts +2 -2
- package/dist/testing/CardFormTest.vue.d.ts +1 -1
- package/dist/testing/MobileWalletButtonTest.vue.d.ts +1 -1
- package/dist/testing/PurchaseTest.vue.d.ts +1 -1
- package/dist/testing/SavedCardFormTest.vue.d.ts +1 -1
- package/dist/testing/WithdrawTest.vue.d.ts +1 -1
- package/package.json +9 -9
|
@@ -23,14 +23,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
23
23
|
};
|
|
24
24
|
subtotal?: import('../lib/common').Subtotal;
|
|
25
25
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
26
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
26
27
|
webhookInfo?: {
|
|
27
28
|
[key: string]: any;
|
|
28
29
|
};
|
|
29
30
|
email?: string;
|
|
30
31
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
31
32
|
planCode?: string;
|
|
32
|
-
|
|
33
|
-
disableGooglePay?: boolean;
|
|
33
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
34
34
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
35
35
|
settlementType?: import('../lib/common').SettlementType;
|
|
36
36
|
authOnly?: boolean;
|
|
@@ -54,14 +54,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
54
54
|
blockchain?: import('../lib/common').CoinflowBlockchain | undefined;
|
|
55
55
|
subtotal?: import('../lib/common').Subtotal;
|
|
56
56
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
57
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
57
58
|
webhookInfo?: {
|
|
58
59
|
[key: string]: any;
|
|
59
60
|
};
|
|
60
61
|
email?: string;
|
|
61
62
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
62
63
|
planCode?: string;
|
|
63
|
-
|
|
64
|
-
disableGooglePay?: boolean;
|
|
64
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
65
65
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
66
66
|
settlementType?: import('../lib/common').SettlementType;
|
|
67
67
|
authOnly?: boolean;
|
|
@@ -86,14 +86,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
86
86
|
nearDeposit?: string;
|
|
87
87
|
subtotal?: import('../lib/common').Subtotal;
|
|
88
88
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
89
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
89
90
|
webhookInfo?: {
|
|
90
91
|
[key: string]: any;
|
|
91
92
|
};
|
|
92
93
|
email?: string;
|
|
93
94
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
94
95
|
planCode?: string;
|
|
95
|
-
|
|
96
|
-
disableGooglePay?: boolean;
|
|
96
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
97
97
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
98
98
|
settlementType?: import('../lib/common').SettlementType;
|
|
99
99
|
authOnly?: boolean;
|
|
@@ -116,14 +116,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
116
116
|
wallet: import('../lib/common').EthWallet;
|
|
117
117
|
subtotal?: import('../lib/common').Subtotal;
|
|
118
118
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
119
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
119
120
|
webhookInfo?: {
|
|
120
121
|
[key: string]: any;
|
|
121
122
|
};
|
|
122
123
|
email?: string;
|
|
123
124
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
124
125
|
planCode?: string;
|
|
125
|
-
|
|
126
|
-
disableGooglePay?: boolean;
|
|
126
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
127
127
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
128
128
|
settlementType?: import('../lib/common').SettlementType;
|
|
129
129
|
authOnly?: boolean;
|
|
@@ -146,14 +146,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
146
146
|
wallet: import('../lib/common').EthWallet;
|
|
147
147
|
subtotal?: import('../lib/common').Subtotal;
|
|
148
148
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
149
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
149
150
|
webhookInfo?: {
|
|
150
151
|
[key: string]: any;
|
|
151
152
|
};
|
|
152
153
|
email?: string;
|
|
153
154
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
154
155
|
planCode?: string;
|
|
155
|
-
|
|
156
|
-
disableGooglePay?: boolean;
|
|
156
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
157
157
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
158
158
|
settlementType?: import('../lib/common').SettlementType;
|
|
159
159
|
authOnly?: boolean;
|
|
@@ -176,14 +176,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
176
176
|
wallet: import('../lib/common').EthWallet;
|
|
177
177
|
subtotal?: import('../lib/common').Subtotal;
|
|
178
178
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
179
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
179
180
|
webhookInfo?: {
|
|
180
181
|
[key: string]: any;
|
|
181
182
|
};
|
|
182
183
|
email?: string;
|
|
183
184
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
184
185
|
planCode?: string;
|
|
185
|
-
|
|
186
|
-
disableGooglePay?: boolean;
|
|
186
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
187
187
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
188
188
|
settlementType?: import('../lib/common').SettlementType;
|
|
189
189
|
authOnly?: boolean;
|
|
@@ -206,14 +206,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
206
206
|
wallet: import('../lib/common').EthWallet;
|
|
207
207
|
subtotal?: import('../lib/common').Subtotal;
|
|
208
208
|
onSuccess?: import('../lib/common').OnSuccessMethod;
|
|
209
|
+
onAuthDeclined?: import('../lib/common').OnAuthDeclinedMethod;
|
|
209
210
|
webhookInfo?: {
|
|
210
211
|
[key: string]: any;
|
|
211
212
|
};
|
|
212
213
|
email?: string;
|
|
213
214
|
chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
|
|
214
215
|
planCode?: string;
|
|
215
|
-
|
|
216
|
-
disableGooglePay?: boolean;
|
|
216
|
+
allowedPaymentMethods?: import('../lib/common').PaymentMethods[];
|
|
217
217
|
customerInfo?: import('../lib/common').CustomerInfo;
|
|
218
218
|
settlementType?: import('../lib/common').SettlementType;
|
|
219
219
|
authOnly?: boolean;
|
|
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: PropType<CoinflowCardNumberInputProps & MerchantIdOrCheckoutJwt>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -13,5 +13,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
13
13
|
type: PropType<CoinflowCvvOnlyInputProps & MerchantIdOrCheckoutJwt>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
|
@@ -8,5 +8,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
12
12
|
export default _default;
|
|
@@ -10,5 +10,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
type: PropType<CoinflowMobileWalletProps>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -10,5 +10,5 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
10
10
|
type: PropType<CoinflowMobileWalletProps>;
|
|
11
11
|
required: true;
|
|
12
12
|
};
|
|
13
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
14
|
export default _default;
|
|
@@ -5,11 +5,12 @@ export type CoinflowMobileWalletProps = CoinflowPurchaseProps & {
|
|
|
5
5
|
onError?: (error: string) => void;
|
|
6
6
|
};
|
|
7
7
|
declare function __VLS_template(): {
|
|
8
|
+
attrs: Partial<{}>;
|
|
8
9
|
slots: {
|
|
9
10
|
default?(_: {}): any;
|
|
10
11
|
};
|
|
11
12
|
refs: {};
|
|
12
|
-
|
|
13
|
+
rootEl: HTMLDivElement;
|
|
13
14
|
};
|
|
14
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
16
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -46,7 +47,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
46
47
|
type: StringConstructor;
|
|
47
48
|
required: false;
|
|
48
49
|
};
|
|
49
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
50
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
50
51
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
52
|
export default _default;
|
|
52
53
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -18,11 +18,11 @@ export type MerchantTheme = {
|
|
|
18
18
|
textColor?: string;
|
|
19
19
|
textColorAccent?: string;
|
|
20
20
|
textColorAction?: string;
|
|
21
|
+
ctaColor?: string;
|
|
21
22
|
font?: string;
|
|
22
23
|
style?: MerchantStyle;
|
|
23
24
|
};
|
|
24
|
-
|
|
25
|
-
name?: string;
|
|
25
|
+
interface BaseCustomerInfo {
|
|
26
26
|
verificationId?: string;
|
|
27
27
|
displayName?: string;
|
|
28
28
|
address?: string;
|
|
@@ -34,6 +34,23 @@ export interface CustomerInfo {
|
|
|
34
34
|
lat?: string;
|
|
35
35
|
lng?: string;
|
|
36
36
|
}
|
|
37
|
+
export interface NameCustomerInfo extends BaseCustomerInfo {
|
|
38
|
+
/**
|
|
39
|
+
* @hidden
|
|
40
|
+
*/
|
|
41
|
+
name?: string;
|
|
42
|
+
}
|
|
43
|
+
export interface SplitNameCustomerInfo extends BaseCustomerInfo {
|
|
44
|
+
/**
|
|
45
|
+
* @minLength 1
|
|
46
|
+
*/
|
|
47
|
+
firstName: string;
|
|
48
|
+
/**
|
|
49
|
+
* @minLength 1
|
|
50
|
+
*/
|
|
51
|
+
lastName: string;
|
|
52
|
+
}
|
|
53
|
+
export type CustomerInfo = SplitNameCustomerInfo | NameCustomerInfo;
|
|
37
54
|
/** Coinflow Types **/
|
|
38
55
|
export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base' | 'arbitrum' | 'user';
|
|
39
56
|
export type CoinflowEnvs = 'prod' | 'staging' | 'staging-live' | 'sandbox' | 'local';
|
|
@@ -50,6 +67,14 @@ export type OnSuccessMethod = (args: {
|
|
|
50
67
|
paymentId: string;
|
|
51
68
|
hash?: string | undefined;
|
|
52
69
|
} | string) => void | Promise<void>;
|
|
70
|
+
export type AuthDeclinedWalletCallInfo = {
|
|
71
|
+
title: string;
|
|
72
|
+
code: string;
|
|
73
|
+
action: string;
|
|
74
|
+
message: string;
|
|
75
|
+
total: string;
|
|
76
|
+
};
|
|
77
|
+
export type OnAuthDeclinedMethod = (args: AuthDeclinedWalletCallInfo | string | string) => void | Promise<void>;
|
|
53
78
|
/** Wallets **/
|
|
54
79
|
export interface SolanaWallet {
|
|
55
80
|
publicKey: PublicKey | null;
|
|
@@ -161,17 +186,31 @@ export declare enum ThreeDsChallengePreference {
|
|
|
161
186
|
Frictionless = "Frictionless",
|
|
162
187
|
Challenge = "Challenge"
|
|
163
188
|
}
|
|
189
|
+
export declare enum PaymentMethods {
|
|
190
|
+
card = "card",
|
|
191
|
+
ach = "ach",
|
|
192
|
+
fasterPayments = "fasterPayments",
|
|
193
|
+
sepa = "sepa",
|
|
194
|
+
pix = "pix",
|
|
195
|
+
usdc = "usdc",
|
|
196
|
+
googlePay = "googlePay",
|
|
197
|
+
applePay = "applePay",
|
|
198
|
+
credits = "credits"
|
|
199
|
+
}
|
|
164
200
|
export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
165
201
|
subtotal?: Subtotal;
|
|
166
202
|
onSuccess?: OnSuccessMethod;
|
|
203
|
+
onAuthDeclined?: OnAuthDeclinedMethod;
|
|
167
204
|
webhookInfo?: {
|
|
168
205
|
[key: string]: any;
|
|
169
206
|
};
|
|
170
207
|
email?: string;
|
|
171
208
|
chargebackProtectionData?: ChargebackProtectionData;
|
|
172
209
|
planCode?: string;
|
|
173
|
-
|
|
174
|
-
|
|
210
|
+
/**
|
|
211
|
+
* The payment methods displayed on the UI. If omitted, all available payment methods will be displayed.
|
|
212
|
+
*/
|
|
213
|
+
allowedPaymentMethods?: PaymentMethods[];
|
|
175
214
|
customerInfo?: CustomerInfo;
|
|
176
215
|
settlementType?: SettlementType;
|
|
177
216
|
authOnly?: boolean;
|
|
@@ -341,7 +380,7 @@ export interface TokenRedeem extends CommonEvmRedeem {
|
|
|
341
380
|
destination: string;
|
|
342
381
|
}
|
|
343
382
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem;
|
|
344
|
-
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
|
|
383
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'subtotal' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail' | 'allowedPaymentMethods'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'destinationAuthKey'> {
|
|
345
384
|
walletPubkey: string | null | undefined;
|
|
346
385
|
sessionKey?: string;
|
|
347
386
|
route: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, CoinflowPurchaseProps } from './CoinflowTypes';
|
|
1
|
+
import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, CoinflowPurchaseProps, CustomerInfo } from './CoinflowTypes';
|
|
2
2
|
export declare class CoinflowUtils {
|
|
3
3
|
env: CoinflowEnvs;
|
|
4
4
|
url: string;
|
|
@@ -6,7 +6,7 @@ export declare class CoinflowUtils {
|
|
|
6
6
|
getNSurePartnerId(merchantId: string): Promise<string | undefined>;
|
|
7
7
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
8
8
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
9
|
-
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, }: CoinflowIFrameProps): string;
|
|
9
|
+
static getCoinflowUrl({ walletPubkey, sessionKey, route, routePrefix, env, subtotal, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, destinationAuthKey, allowedPaymentMethods, }: CoinflowIFrameProps): string;
|
|
10
10
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
11
11
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
12
12
|
solana: T;
|
|
@@ -18,3 +18,8 @@ export declare class CoinflowUtils {
|
|
|
18
18
|
user: T;
|
|
19
19
|
}): T;
|
|
20
20
|
}
|
|
21
|
+
export interface FullName {
|
|
22
|
+
firstName: string;
|
|
23
|
+
lastName: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function getCustomerName(info: CustomerInfo | undefined): FullName | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { TokenExIframe, TokenExIFrameConfiguration } from './TokenEx';
|
|
2
2
|
import { CardType, CoinflowEnvs } from '../CoinflowTypes';
|
|
3
3
|
export type MerchantIdOrCheckoutJwt = {
|
|
4
|
-
merchantId: string;
|
|
5
|
-
} | {
|
|
6
4
|
checkoutJwt: string;
|
|
5
|
+
} | {
|
|
6
|
+
merchantId: string;
|
|
7
7
|
};
|
|
8
8
|
export interface CommonDoInitializeTokenExIframeArgs {
|
|
9
9
|
css: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coinflowlabs/vue",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -31,21 +31,21 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/bs58": "^4.0.4",
|
|
34
|
-
"@rushstack/eslint-patch": "^1.10.
|
|
35
|
-
"@types/node": "^22.10.
|
|
34
|
+
"@rushstack/eslint-patch": "^1.10.5",
|
|
35
|
+
"@types/node": "^22.10.10",
|
|
36
36
|
"@vitejs/plugin-vue": "^5.2.1",
|
|
37
|
-
"@vue/eslint-config-prettier": "^10.
|
|
38
|
-
"@vue/eslint-config-typescript": "^
|
|
37
|
+
"@vue/eslint-config-prettier": "^10.2.0",
|
|
38
|
+
"@vue/eslint-config-typescript": "^14.3.0",
|
|
39
39
|
"copyfiles": "^2.4.1",
|
|
40
40
|
"eslint": "^8.57.1",
|
|
41
41
|
"eslint-plugin-vue": "^9.32.0",
|
|
42
42
|
"prettier": "^3.4.2",
|
|
43
43
|
"typescript": "^5.6.3",
|
|
44
|
-
"vite": "^6.0.
|
|
45
|
-
"vite-plugin-dts": "^4.
|
|
46
|
-
"vitepress": "^1.
|
|
44
|
+
"vite": "^6.0.11",
|
|
45
|
+
"vite-plugin-dts": "^4.4.0",
|
|
46
|
+
"vitepress": "^1.6.3",
|
|
47
47
|
"vue": "^3.5.13",
|
|
48
|
-
"vue-tsc": "^2.
|
|
48
|
+
"vue-tsc": "^2.2.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"lz-string": "^1.5.0"
|