@coinflowlabs/vue 1.11.0 → 1.12.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 +4875 -4784
- package/dist/coinflow-vue.umd.cjs +11 -11
- package/dist/components/card-form/CoinflowCardFormV2.vue.d.ts +38 -0
- package/dist/lib/common/CoinflowTypes.d.ts +6 -0
- package/dist/lib/common/types/Subtotal.d.ts +10 -0
- package/package.json +1 -1
- package/dist/index.d.ts +0 -12
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { CoinflowEnvs, MerchantTheme } from '../../lib/common';
|
|
3
|
+
interface CardFormV2TokenResponse {
|
|
4
|
+
token: string;
|
|
5
|
+
expMonth?: string;
|
|
6
|
+
expYear?: string;
|
|
7
|
+
}
|
|
8
|
+
declare function tokenize(): Promise<CardFormV2TokenResponse>;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
10
|
+
args: {
|
|
11
|
+
type: PropType<{
|
|
12
|
+
merchantId: string;
|
|
13
|
+
env?: CoinflowEnvs;
|
|
14
|
+
theme?: MerchantTheme;
|
|
15
|
+
variant: "card-form" | "card-number-form" | "cvv-form";
|
|
16
|
+
token?: string;
|
|
17
|
+
onLoad?: () => void;
|
|
18
|
+
}>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
}>, {
|
|
22
|
+
tokenize: typeof tokenize;
|
|
23
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
args: {
|
|
25
|
+
type: PropType<{
|
|
26
|
+
merchantId: string;
|
|
27
|
+
env?: CoinflowEnvs;
|
|
28
|
+
theme?: MerchantTheme;
|
|
29
|
+
variant: "card-form" | "card-number-form" | "cvv-form";
|
|
30
|
+
token?: string;
|
|
31
|
+
onLoad?: () => void;
|
|
32
|
+
}>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
36
|
+
iframeRef: HTMLIFrameElement;
|
|
37
|
+
}, HTMLIFrameElement>;
|
|
38
|
+
export default _default;
|
|
@@ -86,6 +86,12 @@ export type MerchantTheme = {
|
|
|
86
86
|
ctaColor?: string;
|
|
87
87
|
font?: string;
|
|
88
88
|
style?: MerchantStyle;
|
|
89
|
+
fontSize?: string;
|
|
90
|
+
fontWeight?: string;
|
|
91
|
+
cardNumberPlaceholder?: string;
|
|
92
|
+
cvvPlaceholder?: string;
|
|
93
|
+
expirationPlaceholder?: string;
|
|
94
|
+
showCardIcon?: boolean;
|
|
89
95
|
};
|
|
90
96
|
interface BaseCustomerInfo {
|
|
91
97
|
verificationId?: string;
|
|
@@ -193,6 +193,16 @@ export interface TypedCurrencyCents<T extends Currency> extends Cents {
|
|
|
193
193
|
currency: T;
|
|
194
194
|
}
|
|
195
195
|
export declare function isTypedCurrencyCents<T extends Currency>(cents: CurrencyCents, currency: T): cents is TypedCurrencyCents<T>;
|
|
196
|
+
export interface ExchangeRate<T extends Currency = Currency> {
|
|
197
|
+
base: Currency;
|
|
198
|
+
rate: number;
|
|
199
|
+
to: T;
|
|
200
|
+
}
|
|
201
|
+
export declare function invertRate<T extends Currency = Currency>(ex: {
|
|
202
|
+
base: T;
|
|
203
|
+
rate: number;
|
|
204
|
+
to: Currency;
|
|
205
|
+
}): ExchangeRate<T>;
|
|
196
206
|
export interface TokenSubtotal {
|
|
197
207
|
/**
|
|
198
208
|
* The tokens address
|
package/package.json
CHANGED
package/dist/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as CoinflowIframe } from './components/CoinflowIframe.vue';
|
|
2
|
-
import { default as CoinflowWithdraw } from './components/CoinflowWithdraw.vue';
|
|
3
|
-
import { default as CoinflowPurchase } from './components/CoinflowPurchase.vue';
|
|
4
|
-
import { default as CoinflowCardNumberInput } from './components/card-form/CoinflowCardNumberInput.vue';
|
|
5
|
-
import { default as CoinflowCvvInput } from './components/card-form/CoinflowCvvInput.vue';
|
|
6
|
-
import { default as CoinflowCvvOnlyInput } from './components/card-form/CoinflowCvvOnlyInput.vue';
|
|
7
|
-
import { default as CoinflowPurchaseProtection } from './components/CoinflowPurchaseProtection.vue';
|
|
8
|
-
import { default as CoinflowCardNumberOnlyInput } from './components/card-form/CoinflowCardNumberOnlyInput.vue';
|
|
9
|
-
import { default as CoinflowApplePayButton } from './components/mobile-wallet/CoinflowApplePayButton.vue';
|
|
10
|
-
import { default as CoinflowGooglePayButton } from './components/mobile-wallet/CoinflowGooglePayButton.vue';
|
|
11
|
-
export * from './lib/common';
|
|
12
|
-
export { CoinflowIframe, CoinflowWithdraw, CoinflowCvvInput, CoinflowCardNumberInput, CoinflowPurchase, CoinflowCvvOnlyInput, CoinflowPurchaseProtection, CoinflowCardNumberOnlyInput, CoinflowApplePayButton, CoinflowGooglePayButton, };
|