@coinflowlabs/vue 0.2.7 → 0.2.8
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 +4 -0
- package/dist/App.vue.d.ts +1 -1
- package/dist/coinflow-vue.js +7968 -9852
- package/dist/coinflow-vue.umd.cjs +12 -22
- package/dist/components/CoinflowIframe.vue.d.ts +6 -6
- package/dist/components/CoinflowPurchase.vue.d.ts +41 -3
- package/dist/components/CoinflowPurchaseProtection.vue.d.ts +3 -3
- package/dist/components/CoinflowWithdraw.vue.d.ts +35 -3
- package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +4 -4
- package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +4 -4
- package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +1 -1
- package/dist/components/card-form/CoinflowCvvOnlyInput.vue.d.ts +4 -4
- package/dist/components/card-form/useCardformIframe.d.ts +20 -3
- package/dist/components/mobile-wallet/ApplePayOverlay.vue.d.ts +3 -3
- package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +6 -10
- package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +6 -10
- package/dist/components/mobile-wallet/GooglePayOverlay.vue.d.ts +3 -3
- package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +9 -9
- package/dist/lib/common/CoinflowLibMessageHandlers.d.ts +2 -1
- package/dist/lib/common/CoinflowTypes.d.ts +5 -1
- package/dist/lib/common/CoinflowUtils.d.ts +1 -1
- 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/dist/testing/YouPay.vue.d.ts +1 -1
- package/package.json +8 -8
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowIFrameProps, IFrameMessageHandlers } from '../lib/common';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, {}, {}, {
|
|
9
9
|
url(): string;
|
|
10
10
|
}, {
|
|
11
11
|
sendMessage(message: string): void;
|
|
@@ -16,7 +16,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
17
17
|
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
18
18
|
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
onMessage(
|
|
19
|
+
onMessage(_data: {
|
|
20
20
|
data: string;
|
|
21
21
|
origin: string;
|
|
22
22
|
}): true;
|
|
@@ -25,10 +25,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
25
25
|
type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
|
|
26
26
|
required: true;
|
|
27
27
|
};
|
|
28
|
-
}>> & {
|
|
29
|
-
onOnMessage?: ((
|
|
28
|
+
}>> & Readonly<{
|
|
29
|
+
onOnMessage?: ((_data: {
|
|
30
30
|
data: string;
|
|
31
31
|
origin: string;
|
|
32
32
|
}) => any) | undefined;
|
|
33
|
-
}, {}, {}>;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
34
34
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowPurchaseProps } from '../lib/common';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<CoinflowPurchaseProps>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, {}, {}, {
|
|
9
9
|
iframeProps(): {
|
|
10
10
|
walletPubkey: string | null | undefined;
|
|
11
11
|
route: string;
|
|
@@ -35,6 +35,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
35
35
|
authOnly?: boolean;
|
|
36
36
|
deviceId?: string;
|
|
37
37
|
jwtToken?: string;
|
|
38
|
+
supportEmail?: string;
|
|
38
39
|
origins?: string[];
|
|
39
40
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
40
41
|
merchantId: string;
|
|
@@ -63,6 +64,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
63
64
|
authOnly?: boolean;
|
|
64
65
|
deviceId?: string;
|
|
65
66
|
jwtToken?: string;
|
|
67
|
+
supportEmail?: string;
|
|
66
68
|
origins?: string[];
|
|
67
69
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
68
70
|
merchantId: string;
|
|
@@ -90,6 +92,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
90
92
|
authOnly?: boolean;
|
|
91
93
|
deviceId?: string;
|
|
92
94
|
jwtToken?: string;
|
|
95
|
+
supportEmail?: string;
|
|
93
96
|
origins?: string[];
|
|
94
97
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
95
98
|
merchantId: string;
|
|
@@ -117,6 +120,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
117
120
|
authOnly?: boolean;
|
|
118
121
|
deviceId?: string;
|
|
119
122
|
jwtToken?: string;
|
|
123
|
+
supportEmail?: string;
|
|
120
124
|
origins?: string[];
|
|
121
125
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
122
126
|
merchantId: string;
|
|
@@ -144,6 +148,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
144
148
|
authOnly?: boolean;
|
|
145
149
|
deviceId?: string;
|
|
146
150
|
jwtToken?: string;
|
|
151
|
+
supportEmail?: string;
|
|
147
152
|
origins?: string[];
|
|
148
153
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
149
154
|
merchantId: string;
|
|
@@ -171,6 +176,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
171
176
|
authOnly?: boolean;
|
|
172
177
|
deviceId?: string;
|
|
173
178
|
jwtToken?: string;
|
|
179
|
+
supportEmail?: string;
|
|
174
180
|
origins?: string[];
|
|
175
181
|
threeDsChallengePreference?: import('../lib/common').ThreeDsChallengePreference;
|
|
176
182
|
merchantId: string;
|
|
@@ -191,5 +197,37 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
191
197
|
type: PropType<CoinflowPurchaseProps>;
|
|
192
198
|
required: true;
|
|
193
199
|
};
|
|
194
|
-
}
|
|
200
|
+
}>> & Readonly<{}>, {}, {}, {
|
|
201
|
+
CoinflowIFrame: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
202
|
+
args: {
|
|
203
|
+
type: PropType<import('../lib/common').CoinflowIFrameProps & import('../lib/common').IFrameMessageHandlers>;
|
|
204
|
+
required: true;
|
|
205
|
+
};
|
|
206
|
+
}>, {}, {}, {
|
|
207
|
+
url(): string;
|
|
208
|
+
}, {
|
|
209
|
+
sendMessage(message: string): void;
|
|
210
|
+
handleIframeMessages({ data, origin }: {
|
|
211
|
+
data: string;
|
|
212
|
+
origin: string;
|
|
213
|
+
}): void;
|
|
214
|
+
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
215
|
+
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
216
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
217
|
+
onMessage(_data: {
|
|
218
|
+
data: string;
|
|
219
|
+
origin: string;
|
|
220
|
+
}): true;
|
|
221
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
222
|
+
args: {
|
|
223
|
+
type: PropType<import('../lib/common').CoinflowIFrameProps & import('../lib/common').IFrameMessageHandlers>;
|
|
224
|
+
required: true;
|
|
225
|
+
};
|
|
226
|
+
}>> & Readonly<{
|
|
227
|
+
onOnMessage?: ((_data: {
|
|
228
|
+
data: string;
|
|
229
|
+
origin: string;
|
|
230
|
+
}) => any) | undefined;
|
|
231
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
232
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
195
233
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowEnvs } from '../lib/common';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<{
|
|
6
6
|
env: CoinflowEnvs;
|
|
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
8
8
|
}>;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
12
|
args: {
|
|
13
13
|
type: PropType<{
|
|
14
14
|
env: CoinflowEnvs;
|
|
@@ -16,5 +16,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
16
16
|
}>;
|
|
17
17
|
required: true;
|
|
18
18
|
};
|
|
19
|
-
}
|
|
19
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
20
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowWithdrawProps } from '../lib/common';
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
5
|
type: PropType<CoinflowWithdrawProps>;
|
|
6
6
|
required: true;
|
|
7
7
|
};
|
|
8
|
-
}
|
|
8
|
+
}>, {}, {}, {
|
|
9
9
|
iframeProps(): {
|
|
10
10
|
walletPubkey: string | null | undefined;
|
|
11
11
|
route: string;
|
|
@@ -168,5 +168,37 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
168
168
|
type: PropType<CoinflowWithdrawProps>;
|
|
169
169
|
required: true;
|
|
170
170
|
};
|
|
171
|
-
}
|
|
171
|
+
}>> & Readonly<{}>, {}, {}, {
|
|
172
|
+
CoinflowIFrame: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
173
|
+
args: {
|
|
174
|
+
type: PropType<import('../lib/common').CoinflowIFrameProps & import('../lib/common').IFrameMessageHandlers>;
|
|
175
|
+
required: true;
|
|
176
|
+
};
|
|
177
|
+
}>, {}, {}, {
|
|
178
|
+
url(): string;
|
|
179
|
+
}, {
|
|
180
|
+
sendMessage(message: string): void;
|
|
181
|
+
handleIframeMessages({ data, origin }: {
|
|
182
|
+
data: string;
|
|
183
|
+
origin: string;
|
|
184
|
+
}): void;
|
|
185
|
+
listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
|
|
186
|
+
sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
|
|
187
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
188
|
+
onMessage(_data: {
|
|
189
|
+
data: string;
|
|
190
|
+
origin: string;
|
|
191
|
+
}): true;
|
|
192
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
193
|
+
args: {
|
|
194
|
+
type: PropType<import('../lib/common').CoinflowIFrameProps & import('../lib/common').IFrameMessageHandlers>;
|
|
195
|
+
required: true;
|
|
196
|
+
};
|
|
197
|
+
}>> & Readonly<{
|
|
198
|
+
onOnMessage?: ((_data: {
|
|
199
|
+
data: string;
|
|
200
|
+
origin: string;
|
|
201
|
+
}) => any) | undefined;
|
|
202
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
203
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
172
204
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from '../../lib/common';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
args: {
|
|
6
6
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
-
}
|
|
9
|
+
}>, {
|
|
10
10
|
getToken: typeof getToken;
|
|
11
|
-
},
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
12
|
args: {
|
|
13
13
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from '../../lib/common';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
args: {
|
|
6
6
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
-
}
|
|
9
|
+
}>, {
|
|
10
10
|
getToken: typeof getToken;
|
|
11
|
-
},
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
12
|
args: {
|
|
13
13
|
type: PropType<CoinflowCardNumberInputProps>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowCardTokenResponse, CoinflowCvvOnlyInputProps } from '../../lib/common';
|
|
3
3
|
declare function getToken(): Promise<CoinflowCardTokenResponse>;
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
5
5
|
args: {
|
|
6
6
|
type: PropType<CoinflowCvvOnlyInputProps>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
-
}
|
|
9
|
+
}>, {
|
|
10
10
|
getToken: typeof getToken;
|
|
11
|
-
},
|
|
11
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
12
12
|
args: {
|
|
13
13
|
type: PropType<CoinflowCvvOnlyInputProps>;
|
|
14
14
|
required: true;
|
|
15
15
|
};
|
|
16
|
-
}
|
|
16
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
17
17
|
export default _default;
|
|
@@ -17,13 +17,30 @@ declare const useCardFormIframe: (env: CoinflowEnvs) => {
|
|
|
17
17
|
binLookup: () => void;
|
|
18
18
|
validateConfig: () => void;
|
|
19
19
|
setFraudServicesRequestDetails: (data: string) => void;
|
|
20
|
+
} | undefined, TokenExIframe | {
|
|
21
|
+
tokenize: () => Promise<import('../../lib/common').TokenizationResponse>;
|
|
22
|
+
load: () => void;
|
|
23
|
+
on: (event: string, callback: (data?: any) => void) => void;
|
|
24
|
+
validate: () => void;
|
|
25
|
+
reset: () => void;
|
|
26
|
+
blur: () => void;
|
|
27
|
+
cvvBlur: () => void;
|
|
28
|
+
focus: () => void;
|
|
29
|
+
cvvFocus: () => void;
|
|
30
|
+
remove: () => void;
|
|
31
|
+
toggleMask: () => void;
|
|
32
|
+
toggleCvvMask: () => void;
|
|
33
|
+
setPAN: (pan: string) => void;
|
|
34
|
+
binLookup: () => void;
|
|
35
|
+
validateConfig: () => void;
|
|
36
|
+
setFraudServicesRequestDetails: (data: string) => void;
|
|
20
37
|
} | undefined>;
|
|
21
38
|
initializeTokenExIframe: (args: Omit<Parameters<typeof doInitializeTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
22
39
|
initializeCvvOnlyTokenExIframe: (args: Omit<Parameters<typeof doInitializeCvvOnlyTokenExIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
23
40
|
initializeTokenExCardOnlyIframe: (args: Omit<Parameters<typeof doInitializeTokenExCardOnlyIframe>[0], "env" | "tokenExScriptLoaded" | "setCachedToken" | "setLoaded">) => Promise<TokenExIframe | undefined>;
|
|
24
|
-
loaded: import('vue').Ref<boolean>;
|
|
25
|
-
cachedToken: import('vue').Ref<string | undefined>;
|
|
41
|
+
loaded: import('vue').Ref<boolean, boolean>;
|
|
42
|
+
cachedToken: import('vue').Ref<string | undefined, string | undefined>;
|
|
26
43
|
setTokenExScriptTag: typeof setTokenExScriptTag;
|
|
27
|
-
tokenExScriptLoaded: import('vue').Ref<boolean>;
|
|
44
|
+
tokenExScriptLoaded: import('vue').Ref<boolean, boolean>;
|
|
28
45
|
};
|
|
29
46
|
export default useCardFormIframe;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
import { CoinflowMobileWalletProps } from './MobileWalletButton.vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
|
-
type: PropType<
|
|
6
|
-
color: "white" | "black";
|
|
7
|
-
}>;
|
|
5
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
8
6
|
required: true;
|
|
9
7
|
};
|
|
10
|
-
}
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
9
|
args: {
|
|
12
|
-
type: PropType<
|
|
13
|
-
color: "white" | "black";
|
|
14
|
-
}>;
|
|
10
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
15
11
|
required: true;
|
|
16
12
|
};
|
|
17
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
14
|
export default _default;
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import {
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
import { CoinflowMobileWalletProps } from './MobileWalletButton.vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
args: {
|
|
5
|
-
type: PropType<
|
|
6
|
-
color: "white" | "black";
|
|
7
|
-
}>;
|
|
5
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
8
6
|
required: true;
|
|
9
7
|
};
|
|
10
|
-
}
|
|
8
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
9
|
args: {
|
|
12
|
-
type: PropType<
|
|
13
|
-
color: "white" | "black";
|
|
14
|
-
}>;
|
|
10
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
15
11
|
required: true;
|
|
16
12
|
};
|
|
17
|
-
}
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
18
14
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
7
|
color: {
|
|
8
8
|
type: StringConstructor;
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
export default _default;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CoinflowPurchaseProps } from '../../lib/common';
|
|
3
|
+
export type CoinflowMobileWalletProps = CoinflowPurchaseProps & {
|
|
4
|
+
color: 'white' | 'black';
|
|
5
|
+
onError?: (error: string) => void;
|
|
6
|
+
};
|
|
3
7
|
declare function __VLS_template(): {
|
|
4
8
|
slots: {
|
|
5
9
|
default?(_: {}): any;
|
|
@@ -8,11 +12,9 @@ declare function __VLS_template(): {
|
|
|
8
12
|
attrs: Partial<{}>;
|
|
9
13
|
};
|
|
10
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
16
|
args: {
|
|
13
|
-
type: PropType<
|
|
14
|
-
color: "white" | "black";
|
|
15
|
-
}>;
|
|
17
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
16
18
|
required: true;
|
|
17
19
|
};
|
|
18
20
|
route: {
|
|
@@ -27,11 +29,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
27
29
|
type: StringConstructor;
|
|
28
30
|
required: false;
|
|
29
31
|
};
|
|
30
|
-
}
|
|
32
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
31
33
|
args: {
|
|
32
|
-
type: PropType<
|
|
33
|
-
color: "white" | "black";
|
|
34
|
-
}>;
|
|
34
|
+
type: PropType<CoinflowMobileWalletProps>;
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
37
|
route: {
|
|
@@ -46,7 +46,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
46
46
|
type: StringConstructor;
|
|
47
47
|
required: false;
|
|
48
48
|
};
|
|
49
|
-
}
|
|
49
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
50
50
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
51
|
export default _default;
|
|
52
52
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -23,7 +23,8 @@ declare enum IFrameMessageMethods {
|
|
|
23
23
|
SignTransaction = "signTransaction",
|
|
24
24
|
SendTransaction = "sendTransaction",
|
|
25
25
|
HeightChange = "heightChange",
|
|
26
|
-
Success = "success"
|
|
26
|
+
Success = "success",
|
|
27
|
+
Load = "load"
|
|
27
28
|
}
|
|
28
29
|
export declare function getWalletPubkey({ wallet, }: Pick<CoinflowPurchaseProps, 'wallet'>): string | null | undefined;
|
|
29
30
|
export declare function handleIFrameMessage(rawMessage: string, handlers: IFrameMessageHandlers): Promise<string> | void;
|
|
@@ -169,6 +169,10 @@ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
|
|
|
169
169
|
authOnly?: boolean;
|
|
170
170
|
deviceId?: string;
|
|
171
171
|
jwtToken?: string;
|
|
172
|
+
/**
|
|
173
|
+
* Your company email address that the customer can contact.
|
|
174
|
+
*/
|
|
175
|
+
supportEmail?: string;
|
|
172
176
|
/**
|
|
173
177
|
* If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
|
|
174
178
|
*
|
|
@@ -307,7 +311,7 @@ export interface TokenRedeem extends CommonEvmRedeem {
|
|
|
307
311
|
destination: string;
|
|
308
312
|
}
|
|
309
313
|
export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem | TokenRedeem;
|
|
310
|
-
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'token'> {
|
|
314
|
+
export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins' | 'threeDsChallengePreference' | 'supportEmail'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'token'> {
|
|
311
315
|
walletPubkey: string | null | undefined;
|
|
312
316
|
route: string;
|
|
313
317
|
routePrefix?: string;
|
|
@@ -9,7 +9,7 @@ export declare class CoinflowUtils {
|
|
|
9
9
|
}>;
|
|
10
10
|
static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
|
|
11
11
|
static getCoinflowApiUrl(env?: CoinflowEnvs): string;
|
|
12
|
-
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, }: CoinflowIFrameProps): string;
|
|
12
|
+
static getCoinflowUrl({ walletPubkey, route, routePrefix, env, amount, transaction, blockchain, webhookInfo, email, loaderBackground, handleHeightChange, bankAccountLinkRedirect, additionalWallets, nearDeposit, chargebackProtectionData, merchantCss, color, rent, lockDefaultToken, token, tokens, planCode, disableApplePay, disableGooglePay, customerInfo, settlementType, lockAmount, nativeSolToConvert, theme, usePermit, transactionSigner, authOnly, deviceId, jwtToken, origins, threeDsChallengePreference, supportEmail, }: CoinflowIFrameProps): string;
|
|
13
13
|
static getTransaction(props: CoinflowPurchaseProps): string | undefined;
|
|
14
14
|
static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
|
|
15
15
|
solana: T;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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<import('vue').
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
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": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/bs58": "^4.0.4",
|
|
35
35
|
"@rushstack/eslint-patch": "^1.10.4",
|
|
36
|
-
"@types/node": "^22.
|
|
36
|
+
"@types/node": "^22.7.5",
|
|
37
37
|
"@vitejs/plugin-vue": "^5.1.4",
|
|
38
|
-
"@vue/eslint-config-prettier": "^
|
|
38
|
+
"@vue/eslint-config-prettier": "^10.0.0",
|
|
39
39
|
"@vue/eslint-config-typescript": "^13.0.0",
|
|
40
40
|
"copyfiles": "^2.4.1",
|
|
41
41
|
"eslint": "^8.57.1",
|
|
42
|
-
"eslint-plugin-vue": "^9.
|
|
42
|
+
"eslint-plugin-vue": "^9.29.0",
|
|
43
43
|
"prettier": "^3.3.3",
|
|
44
44
|
"typescript": "^5.5.4",
|
|
45
|
-
"vite": "^5.4.
|
|
46
|
-
"vite-plugin-dts": "^4.2.
|
|
47
|
-
"vitepress": "^1.
|
|
48
|
-
"vue": "^3.
|
|
45
|
+
"vite": "^5.4.8",
|
|
46
|
+
"vite-plugin-dts": "^4.2.3",
|
|
47
|
+
"vitepress": "^1.4.1",
|
|
48
|
+
"vue": "^3.5.11",
|
|
49
49
|
"vue-tsc": "^2.1.6"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|