@coinflowlabs/vue 0.2.3 → 0.2.5

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.
Files changed (31) hide show
  1. package/README.md +9 -1
  2. package/dist/App.vue.d.ts +2 -0
  3. package/dist/coinflow-vue.js +7414 -6924
  4. package/dist/coinflow-vue.umd.cjs +12 -12
  5. package/dist/components/CoinflowIframe.vue.d.ts +6 -6
  6. package/dist/components/CoinflowPurchase.vue.d.ts +112 -113
  7. package/dist/components/CoinflowPurchaseProtection.vue.d.ts +5 -9
  8. package/dist/components/CoinflowWithdraw.vue.d.ts +90 -91
  9. package/dist/components/card-form/CoinflowCardNumberInput.vue.d.ts +7 -36
  10. package/dist/components/card-form/CoinflowCardNumberOnlyInput.vue.d.ts +7 -36
  11. package/dist/components/card-form/CoinflowCardOnlyInput.vue.d.ts +17 -0
  12. package/dist/components/card-form/CoinflowCvvInput.vue.d.ts +2 -4
  13. package/dist/components/card-form/useCardformIframe.d.ts +9 -10
  14. package/dist/components/mobile-wallet/CoinflowApplePayButton.vue.d.ts +7 -226
  15. package/dist/components/mobile-wallet/CoinflowGooglePayButton.vue.d.ts +7 -226
  16. package/dist/components/mobile-wallet/MobileWalletButton.vue.d.ts +5 -200
  17. package/dist/index.d.ts +9 -10
  18. package/dist/lib/common/CoinflowTypes.d.ts +6 -2
  19. package/dist/lib/common/CoinflowUtils.d.ts +6 -1
  20. package/dist/lib/common/SolanaPeerDeps.d.ts +1 -1
  21. package/dist/lib/common/card-form/TokenEx.d.ts +50 -2
  22. package/dist/lib/common/card-form/tokenexHelpers.d.ts +17 -32
  23. package/dist/lib/common/index.d.ts +0 -1
  24. package/dist/main.d.ts +1 -0
  25. package/dist/testing/CardFormTest.vue.d.ts +2 -0
  26. package/dist/testing/MobileWalletButtonTest.vue.d.ts +2 -0
  27. package/dist/testing/PurchaseTest.vue.d.ts +2 -0
  28. package/dist/testing/SavedCardFormTest.vue.d.ts +2 -0
  29. package/dist/testing/WithdrawTest.vue.d.ts +2 -0
  30. package/package.json +18 -14
  31. package/dist/lib/common/card-form/cardFormTypes.d.ts +0 -46
@@ -1,6 +1,6 @@
1
- import { PropType } from "vue";
2
- import { CoinflowIFrameProps, IFrameMessageHandlers } from "../lib/common";
3
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { PropType } from 'vue';
2
+ import { CoinflowIFrameProps, IFrameMessageHandlers } from '../lib/common';
3
+ declare const _default: import('vue').DefineComponent<{
4
4
  args: {
5
5
  type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
6
6
  required: true;
@@ -15,12 +15,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
15
15
  }): void;
16
16
  listenForMessage(isResponseValid: (response: string) => boolean): Promise<string>;
17
17
  sendAndReceiveMessage(message: string, isResponseValid: (response: string) => boolean): Promise<string>;
18
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
18
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
19
  onMessage({ data, origin }: {
20
20
  data: string;
21
21
  origin: string;
22
22
  }): true;
23
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
24
24
  args: {
25
25
  type: PropType<CoinflowIFrameProps & IFrameMessageHandlers>;
26
26
  required: true;
@@ -31,4 +31,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
31
31
  origin: string;
32
32
  }) => any) | undefined;
33
33
  }, {}, {}>;
34
- export default _sfc_main;
34
+ export default _default;
@@ -1,7 +1,6 @@
1
- /// <reference types="@solana/web3.js" />
2
- import { PropType } from "vue";
3
- import { CoinflowPurchaseProps } from "../lib/common";
4
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { PropType } from 'vue';
2
+ import { CoinflowPurchaseProps } from '../lib/common';
3
+ declare const _default: import('vue').DefineComponent<{
5
4
  args: {
6
5
  type: PropType<CoinflowPurchaseProps>;
7
6
  required: true;
@@ -11,154 +10,154 @@ declare const _sfc_main: import("vue").DefineComponent<{
11
10
  walletPubkey: string | null | undefined;
12
11
  route: string;
13
12
  transaction: string | undefined;
14
- wallet: import("../lib/common").SolanaWallet;
15
- partialSigners?: import("@solana/web3.js").Signer[] | undefined;
16
- debugTx?: boolean | undefined;
17
- connection: import("@solana/web3.js").Connection;
13
+ wallet: import('../lib/common').SolanaWallet;
14
+ partialSigners?: import('@solana/web3.js').Signer[];
15
+ debugTx?: boolean;
16
+ connection: import('@solana/web3.js').Connection;
18
17
  blockchain: "solana";
19
- token?: string | import("@solana/web3.js").PublicKey | undefined;
18
+ token?: import('@solana/web3.js').PublicKey | string;
20
19
  rent?: {
21
20
  lamports: string | number;
22
- } | undefined;
21
+ };
23
22
  nativeSolToConvert?: {
24
23
  lamports: string | number;
25
- } | undefined;
26
- amount?: string | number | undefined;
27
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
28
- webhookInfo?: object | undefined;
29
- email?: string | undefined;
30
- chargebackProtectionData?: import("../lib/common").ChargebackProtectionData | undefined;
31
- planCode?: string | undefined;
32
- disableApplePay?: boolean | undefined;
33
- disableGooglePay?: boolean | undefined;
34
- customerInfo?: import("../lib/common").CustomerInfo | undefined;
35
- settlementType?: import("../lib/common").SettlementType | undefined;
36
- authOnly?: boolean | undefined;
37
- deviceId?: string | undefined;
38
- jwtToken?: string | undefined;
39
- origins?: string[] | undefined;
24
+ };
25
+ amount?: number | string;
26
+ onSuccess?: import('../lib/common').OnSuccessMethod;
27
+ webhookInfo?: object;
28
+ email?: string;
29
+ chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
30
+ planCode?: string;
31
+ disableApplePay?: boolean;
32
+ disableGooglePay?: boolean;
33
+ customerInfo?: import('../lib/common').CustomerInfo;
34
+ settlementType?: import('../lib/common').SettlementType;
35
+ authOnly?: boolean;
36
+ deviceId?: string;
37
+ jwtToken?: string;
38
+ origins?: string[];
40
39
  merchantId: string;
41
- env?: import("../lib/common").CoinflowEnvs | undefined;
42
- loaderBackground?: string | undefined;
43
- handleHeightChange?: ((height: string) => void) | undefined;
44
- theme?: import("../lib/common").MerchantTheme | undefined;
40
+ env?: import('../lib/common').CoinflowEnvs;
41
+ loaderBackground?: string;
42
+ handleHeightChange?: (height: string) => void;
43
+ theme?: import('../lib/common').MerchantTheme;
45
44
  } | {
46
45
  walletPubkey: string | null | undefined;
47
46
  route: string;
48
47
  transaction: string | undefined;
49
- wallet: import("../lib/common").NearWallet;
48
+ wallet: import('../lib/common').NearWallet;
50
49
  blockchain: "near";
51
- action?: import("../lib/common").NearFtTransferCallAction | undefined;
52
- nearDeposit?: string | undefined;
53
- amount?: string | number | undefined;
54
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
55
- webhookInfo?: object | undefined;
56
- email?: string | undefined;
57
- chargebackProtectionData?: import("../lib/common").ChargebackProtectionData | undefined;
58
- planCode?: string | undefined;
59
- disableApplePay?: boolean | undefined;
60
- disableGooglePay?: boolean | undefined;
61
- customerInfo?: import("../lib/common").CustomerInfo | undefined;
62
- settlementType?: import("../lib/common").SettlementType | undefined;
63
- authOnly?: boolean | undefined;
64
- deviceId?: string | undefined;
65
- jwtToken?: string | undefined;
66
- origins?: string[] | undefined;
50
+ action?: import('../lib/common').NearFtTransferCallAction;
51
+ nearDeposit?: string;
52
+ amount?: number | string;
53
+ onSuccess?: import('../lib/common').OnSuccessMethod;
54
+ webhookInfo?: object;
55
+ email?: string;
56
+ chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
57
+ planCode?: string;
58
+ disableApplePay?: boolean;
59
+ disableGooglePay?: boolean;
60
+ customerInfo?: import('../lib/common').CustomerInfo;
61
+ settlementType?: import('../lib/common').SettlementType;
62
+ authOnly?: boolean;
63
+ deviceId?: string;
64
+ jwtToken?: string;
65
+ origins?: string[];
67
66
  merchantId: string;
68
- env?: import("../lib/common").CoinflowEnvs | undefined;
69
- loaderBackground?: string | undefined;
70
- handleHeightChange?: ((height: string) => void) | undefined;
71
- theme?: import("../lib/common").MerchantTheme | undefined;
67
+ env?: import('../lib/common').CoinflowEnvs;
68
+ loaderBackground?: string;
69
+ handleHeightChange?: (height: string) => void;
70
+ theme?: import('../lib/common').MerchantTheme;
72
71
  } | {
73
72
  walletPubkey: string | null | undefined;
74
73
  route: string;
75
74
  transaction: string | undefined;
76
75
  blockchain: "polygon";
77
- token?: string | undefined;
78
- wallet: import("../lib/common").EthWallet;
79
- amount?: string | number | undefined;
80
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
81
- webhookInfo?: object | undefined;
82
- email?: string | undefined;
83
- chargebackProtectionData?: import("../lib/common").ChargebackProtectionData | undefined;
84
- planCode?: string | undefined;
85
- disableApplePay?: boolean | undefined;
86
- disableGooglePay?: boolean | undefined;
87
- customerInfo?: import("../lib/common").CustomerInfo | undefined;
88
- settlementType?: import("../lib/common").SettlementType | undefined;
89
- authOnly?: boolean | undefined;
90
- deviceId?: string | undefined;
91
- jwtToken?: string | undefined;
92
- origins?: string[] | undefined;
76
+ token?: string;
77
+ wallet: import('../lib/common').EthWallet;
78
+ amount?: number | string;
79
+ onSuccess?: import('../lib/common').OnSuccessMethod;
80
+ webhookInfo?: object;
81
+ email?: string;
82
+ chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
83
+ planCode?: string;
84
+ disableApplePay?: boolean;
85
+ disableGooglePay?: boolean;
86
+ customerInfo?: import('../lib/common').CustomerInfo;
87
+ settlementType?: import('../lib/common').SettlementType;
88
+ authOnly?: boolean;
89
+ deviceId?: string;
90
+ jwtToken?: string;
91
+ origins?: string[];
93
92
  merchantId: string;
94
- env?: import("../lib/common").CoinflowEnvs | undefined;
95
- loaderBackground?: string | undefined;
96
- handleHeightChange?: ((height: string) => void) | undefined;
97
- theme?: import("../lib/common").MerchantTheme | undefined;
93
+ env?: import('../lib/common').CoinflowEnvs;
94
+ loaderBackground?: string;
95
+ handleHeightChange?: (height: string) => void;
96
+ theme?: import('../lib/common').MerchantTheme;
98
97
  } | {
99
98
  walletPubkey: string | null | undefined;
100
99
  route: string;
101
100
  transaction: string | undefined;
102
101
  blockchain: "eth";
103
- token?: string | undefined;
104
- wallet: import("../lib/common").EthWallet;
105
- amount?: string | number | undefined;
106
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
107
- webhookInfo?: object | undefined;
108
- email?: string | undefined;
109
- chargebackProtectionData?: import("../lib/common").ChargebackProtectionData | undefined;
110
- planCode?: string | undefined;
111
- disableApplePay?: boolean | undefined;
112
- disableGooglePay?: boolean | undefined;
113
- customerInfo?: import("../lib/common").CustomerInfo | undefined;
114
- settlementType?: import("../lib/common").SettlementType | undefined;
115
- authOnly?: boolean | undefined;
116
- deviceId?: string | undefined;
117
- jwtToken?: string | undefined;
118
- origins?: string[] | undefined;
102
+ token?: string;
103
+ wallet: import('../lib/common').EthWallet;
104
+ amount?: number | string;
105
+ onSuccess?: import('../lib/common').OnSuccessMethod;
106
+ webhookInfo?: object;
107
+ email?: string;
108
+ chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
109
+ planCode?: string;
110
+ disableApplePay?: boolean;
111
+ disableGooglePay?: boolean;
112
+ customerInfo?: import('../lib/common').CustomerInfo;
113
+ settlementType?: import('../lib/common').SettlementType;
114
+ authOnly?: boolean;
115
+ deviceId?: string;
116
+ jwtToken?: string;
117
+ origins?: string[];
119
118
  merchantId: string;
120
- env?: import("../lib/common").CoinflowEnvs | undefined;
121
- loaderBackground?: string | undefined;
122
- handleHeightChange?: ((height: string) => void) | undefined;
123
- theme?: import("../lib/common").MerchantTheme | undefined;
119
+ env?: import('../lib/common').CoinflowEnvs;
120
+ loaderBackground?: string;
121
+ handleHeightChange?: (height: string) => void;
122
+ theme?: import('../lib/common').MerchantTheme;
124
123
  } | {
125
124
  walletPubkey: string | null | undefined;
126
125
  route: string;
127
126
  transaction: string | undefined;
128
127
  blockchain: "base";
129
- token?: string | undefined;
130
- wallet: import("../lib/common").EthWallet;
131
- amount?: string | number | undefined;
132
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
133
- webhookInfo?: object | undefined;
134
- email?: string | undefined;
135
- chargebackProtectionData?: import("../lib/common").ChargebackProtectionData | undefined;
136
- planCode?: string | undefined;
137
- disableApplePay?: boolean | undefined;
138
- disableGooglePay?: boolean | undefined;
139
- customerInfo?: import("../lib/common").CustomerInfo | undefined;
140
- settlementType?: import("../lib/common").SettlementType | undefined;
141
- authOnly?: boolean | undefined;
142
- deviceId?: string | undefined;
143
- jwtToken?: string | undefined;
144
- origins?: string[] | undefined;
128
+ token?: string;
129
+ wallet: import('../lib/common').EthWallet;
130
+ amount?: number | string;
131
+ onSuccess?: import('../lib/common').OnSuccessMethod;
132
+ webhookInfo?: object;
133
+ email?: string;
134
+ chargebackProtectionData?: import('../lib/common').ChargebackProtectionData;
135
+ planCode?: string;
136
+ disableApplePay?: boolean;
137
+ disableGooglePay?: boolean;
138
+ customerInfo?: import('../lib/common').CustomerInfo;
139
+ settlementType?: import('../lib/common').SettlementType;
140
+ authOnly?: boolean;
141
+ deviceId?: string;
142
+ jwtToken?: string;
143
+ origins?: string[];
145
144
  merchantId: string;
146
- env?: import("../lib/common").CoinflowEnvs | undefined;
147
- loaderBackground?: string | undefined;
148
- handleHeightChange?: ((height: string) => void) | undefined;
149
- theme?: import("../lib/common").MerchantTheme | undefined;
145
+ env?: import('../lib/common').CoinflowEnvs;
146
+ loaderBackground?: string;
147
+ handleHeightChange?: (height: string) => void;
148
+ theme?: import('../lib/common').MerchantTheme;
150
149
  };
151
150
  messageHandlers(): {
152
151
  handleHeightChange: ((height: string) => void) | undefined;
153
- onSuccess: import("../lib/common").OnSuccessMethod | undefined;
152
+ onSuccess: import('../lib/common').OnSuccessMethod | undefined;
154
153
  handleSendTransaction: (transaction: string) => Promise<string>;
155
154
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
156
155
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
157
156
  };
158
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
157
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
159
158
  args: {
160
159
  type: PropType<CoinflowPurchaseProps>;
161
160
  required: true;
162
161
  };
163
162
  }>>, {}, {}>;
164
- export default _sfc_main;
163
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { PropType } from "vue";
2
- import { CoinflowEnvs } from "../lib/common";
3
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { PropType } from 'vue';
2
+ import { CoinflowEnvs } from '../lib/common';
3
+ declare const _default: import('vue').DefineComponent<{
4
4
  args: {
5
5
  type: PropType<{
6
6
  env: CoinflowEnvs;
@@ -8,11 +8,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
8
8
  }>;
9
9
  required: true;
10
10
  };
11
- }, {
12
- partnerId: import("vue").Ref<string | undefined>;
13
- applicationId: () => "9JBW2RHC7JNJN8ZQ" | "SANDBOX_CTCE4XK53ZW0R7V1";
14
- sdkUrl: () => "https://sdk.nsureapi.com/sdk.js" | "https://sdk.nsureapi.com/sdk-sandbox.js";
15
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
12
  args: {
17
13
  type: PropType<{
18
14
  env: CoinflowEnvs;
@@ -21,4 +17,4 @@ declare const _sfc_main: import("vue").DefineComponent<{
21
17
  required: true;
22
18
  };
23
19
  }>>, {}, {}>;
24
- export default _sfc_main;
20
+ export default _default;
@@ -1,7 +1,6 @@
1
- /// <reference types="@solana/web3.js" />
2
- import { PropType } from "vue";
3
- import { CoinflowWithdrawProps } from "../lib/common";
4
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { PropType } from 'vue';
2
+ import { CoinflowWithdrawProps } from '../lib/common';
3
+ declare const _default: import('vue').DefineComponent<{
5
4
  args: {
6
5
  type: PropType<CoinflowWithdrawProps>;
7
6
  required: true;
@@ -11,138 +10,138 @@ declare const _sfc_main: import("vue").DefineComponent<{
11
10
  walletPubkey: string | null | undefined;
12
11
  route: string;
13
12
  transaction: undefined;
14
- wallet: import("../lib/common").SolanaWallet;
15
- connection: import("@solana/web3.js").Connection;
13
+ wallet: import('../lib/common').SolanaWallet;
14
+ connection: import('@solana/web3.js').Connection;
16
15
  blockchain: "solana";
17
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
18
- tokens?: string[] | undefined;
19
- lockDefaultToken?: boolean | undefined;
20
- amount?: number | undefined;
21
- email?: string | undefined;
22
- bankAccountLinkRedirect?: string | undefined;
16
+ onSuccess?: import('../lib/common').OnSuccessMethod;
17
+ tokens?: string[];
18
+ lockDefaultToken?: boolean;
19
+ amount?: number;
20
+ email?: string;
21
+ bankAccountLinkRedirect?: string;
23
22
  additionalWallets?: {
24
23
  wallet: string;
25
- blockchain: "solana" | "near" | "polygon" | "eth";
26
- }[] | undefined;
27
- lockAmount?: boolean | undefined;
28
- transactionSigner?: string | undefined;
29
- origins?: string[] | undefined;
24
+ blockchain: "solana" | "eth" | "near" | "polygon";
25
+ }[];
26
+ lockAmount?: boolean;
27
+ transactionSigner?: string;
28
+ origins?: string[];
30
29
  merchantId: string;
31
- env?: import("../lib/common").CoinflowEnvs | undefined;
32
- loaderBackground?: string | undefined;
33
- handleHeightChange?: ((height: string) => void) | undefined;
34
- theme?: import("../lib/common").MerchantTheme | undefined;
30
+ env?: import('../lib/common').CoinflowEnvs;
31
+ loaderBackground?: string;
32
+ handleHeightChange?: (height: string) => void;
33
+ theme?: import('../lib/common').MerchantTheme;
35
34
  } | {
36
35
  walletPubkey: string | null | undefined;
37
36
  route: string;
38
37
  transaction: undefined;
39
- wallet: import("../lib/common").NearWallet;
38
+ wallet: import('../lib/common').NearWallet;
40
39
  blockchain: "near";
41
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
42
- tokens?: string[] | undefined;
43
- lockDefaultToken?: boolean | undefined;
44
- amount?: number | undefined;
45
- email?: string | undefined;
46
- bankAccountLinkRedirect?: string | undefined;
40
+ onSuccess?: import('../lib/common').OnSuccessMethod;
41
+ tokens?: string[];
42
+ lockDefaultToken?: boolean;
43
+ amount?: number;
44
+ email?: string;
45
+ bankAccountLinkRedirect?: string;
47
46
  additionalWallets?: {
48
47
  wallet: string;
49
- blockchain: "solana" | "near" | "polygon" | "eth";
50
- }[] | undefined;
51
- lockAmount?: boolean | undefined;
52
- transactionSigner?: string | undefined;
53
- origins?: string[] | undefined;
48
+ blockchain: "solana" | "eth" | "near" | "polygon";
49
+ }[];
50
+ lockAmount?: boolean;
51
+ transactionSigner?: string;
52
+ origins?: string[];
54
53
  merchantId: string;
55
- env?: import("../lib/common").CoinflowEnvs | undefined;
56
- loaderBackground?: string | undefined;
57
- handleHeightChange?: ((height: string) => void) | undefined;
58
- theme?: import("../lib/common").MerchantTheme | undefined;
54
+ env?: import('../lib/common').CoinflowEnvs;
55
+ loaderBackground?: string;
56
+ handleHeightChange?: (height: string) => void;
57
+ theme?: import('../lib/common').MerchantTheme;
59
58
  } | {
60
59
  walletPubkey: string | null | undefined;
61
60
  route: string;
62
61
  transaction: undefined;
63
62
  blockchain: "eth";
64
- usePermit?: boolean | undefined;
65
- wallet: import("../lib/common").EthWallet;
66
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
67
- tokens?: string[] | undefined;
68
- lockDefaultToken?: boolean | undefined;
69
- amount?: number | undefined;
70
- email?: string | undefined;
71
- bankAccountLinkRedirect?: string | undefined;
63
+ usePermit?: boolean;
64
+ wallet: import('../lib/common').EthWallet;
65
+ onSuccess?: import('../lib/common').OnSuccessMethod;
66
+ tokens?: string[];
67
+ lockDefaultToken?: boolean;
68
+ amount?: number;
69
+ email?: string;
70
+ bankAccountLinkRedirect?: string;
72
71
  additionalWallets?: {
73
72
  wallet: string;
74
- blockchain: "solana" | "near" | "polygon" | "eth";
75
- }[] | undefined;
76
- lockAmount?: boolean | undefined;
77
- transactionSigner?: string | undefined;
78
- origins?: string[] | undefined;
73
+ blockchain: "solana" | "eth" | "near" | "polygon";
74
+ }[];
75
+ lockAmount?: boolean;
76
+ transactionSigner?: string;
77
+ origins?: string[];
79
78
  merchantId: string;
80
- env?: import("../lib/common").CoinflowEnvs | undefined;
81
- loaderBackground?: string | undefined;
82
- handleHeightChange?: ((height: string) => void) | undefined;
83
- theme?: import("../lib/common").MerchantTheme | undefined;
79
+ env?: import('../lib/common').CoinflowEnvs;
80
+ loaderBackground?: string;
81
+ handleHeightChange?: (height: string) => void;
82
+ theme?: import('../lib/common').MerchantTheme;
84
83
  } | {
85
84
  walletPubkey: string | null | undefined;
86
85
  route: string;
87
86
  transaction: undefined;
88
87
  blockchain: "polygon";
89
- wallet: import("../lib/common").EthWallet;
90
- usePermit?: boolean | undefined;
91
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
92
- tokens?: string[] | undefined;
93
- lockDefaultToken?: boolean | undefined;
94
- amount?: number | undefined;
95
- email?: string | undefined;
96
- bankAccountLinkRedirect?: string | undefined;
88
+ wallet: import('../lib/common').EthWallet;
89
+ usePermit?: boolean;
90
+ onSuccess?: import('../lib/common').OnSuccessMethod;
91
+ tokens?: string[];
92
+ lockDefaultToken?: boolean;
93
+ amount?: number;
94
+ email?: string;
95
+ bankAccountLinkRedirect?: string;
97
96
  additionalWallets?: {
98
97
  wallet: string;
99
- blockchain: "solana" | "near" | "polygon" | "eth";
100
- }[] | undefined;
101
- lockAmount?: boolean | undefined;
102
- transactionSigner?: string | undefined;
103
- origins?: string[] | undefined;
98
+ blockchain: "solana" | "eth" | "near" | "polygon";
99
+ }[];
100
+ lockAmount?: boolean;
101
+ transactionSigner?: string;
102
+ origins?: string[];
104
103
  merchantId: string;
105
- env?: import("../lib/common").CoinflowEnvs | undefined;
106
- loaderBackground?: string | undefined;
107
- handleHeightChange?: ((height: string) => void) | undefined;
108
- theme?: import("../lib/common").MerchantTheme | undefined;
104
+ env?: import('../lib/common').CoinflowEnvs;
105
+ loaderBackground?: string;
106
+ handleHeightChange?: (height: string) => void;
107
+ theme?: import('../lib/common').MerchantTheme;
109
108
  } | {
110
109
  walletPubkey: string | null | undefined;
111
110
  route: string;
112
111
  transaction: undefined;
113
112
  blockchain: "base";
114
- wallet: import("../lib/common").EthWallet;
115
- usePermit?: boolean | undefined;
116
- onSuccess?: import("../lib/common").OnSuccessMethod | undefined;
117
- tokens?: string[] | undefined;
118
- lockDefaultToken?: boolean | undefined;
119
- amount?: number | undefined;
120
- email?: string | undefined;
121
- bankAccountLinkRedirect?: string | undefined;
113
+ wallet: import('../lib/common').EthWallet;
114
+ usePermit?: boolean;
115
+ onSuccess?: import('../lib/common').OnSuccessMethod;
116
+ tokens?: string[];
117
+ lockDefaultToken?: boolean;
118
+ amount?: number;
119
+ email?: string;
120
+ bankAccountLinkRedirect?: string;
122
121
  additionalWallets?: {
123
122
  wallet: string;
124
- blockchain: "solana" | "near" | "polygon" | "eth";
125
- }[] | undefined;
126
- lockAmount?: boolean | undefined;
127
- transactionSigner?: string | undefined;
128
- origins?: string[] | undefined;
123
+ blockchain: "solana" | "eth" | "near" | "polygon";
124
+ }[];
125
+ lockAmount?: boolean;
126
+ transactionSigner?: string;
127
+ origins?: string[];
129
128
  merchantId: string;
130
- env?: import("../lib/common").CoinflowEnvs | undefined;
131
- loaderBackground?: string | undefined;
132
- handleHeightChange?: ((height: string) => void) | undefined;
133
- theme?: import("../lib/common").MerchantTheme | undefined;
129
+ env?: import('../lib/common').CoinflowEnvs;
130
+ loaderBackground?: string;
131
+ handleHeightChange?: (height: string) => void;
132
+ theme?: import('../lib/common').MerchantTheme;
134
133
  };
135
134
  messageHandlers(): {
136
135
  handleHeightChange: ((height: string) => void) | undefined;
137
- onSuccess: import("../lib/common").OnSuccessMethod | undefined;
136
+ onSuccess: import('../lib/common').OnSuccessMethod | undefined;
138
137
  handleSendTransaction: (transaction: string) => Promise<string>;
139
138
  handleSignMessage?: ((message: string) => Promise<string>) | undefined;
140
139
  handleSignTransaction?: ((transaction: string) => Promise<string>) | undefined;
141
140
  };
142
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
141
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
143
142
  args: {
144
143
  type: PropType<CoinflowWithdrawProps>;
145
144
  required: true;
146
145
  };
147
146
  }>>, {}, {}>;
148
- export default _sfc_main;
147
+ export default _default;
@@ -1,46 +1,17 @@
1
- import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from "../../lib/common";
2
- import { PropType } from "vue";
3
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ import { CoinflowCardNumberInputProps, CoinflowCardTokenResponse } from '../../lib/common';
2
+ import { PropType } from 'vue';
3
+ declare function getToken(): Promise<CoinflowCardTokenResponse>;
4
+ declare const _default: import('vue').DefineComponent<{
4
5
  args: {
5
6
  type: PropType<CoinflowCardNumberInputProps>;
6
7
  required: true;
7
8
  };
8
9
  }, {
9
- initializeTokenExIframe: ({ css, fontFamily, debug, origins, }: Omit<{
10
- css: string;
11
- debug?: boolean | undefined;
12
- fontFamily?: string | undefined;
13
- origins: string[] | undefined;
14
- tokenExScriptLoaded: boolean;
15
- env: import("../../lib/common").CoinflowEnvs;
16
- setCachedToken: (s: string | undefined) => void;
17
- setLoaded: (b: boolean) => void;
18
- }, "env" | "setCachedToken" | "setLoaded" | "tokenExScriptLoaded">) => Promise<import("../../lib/common").TokenExIframe | undefined>;
19
- tokenExIframe: import("vue").Ref<{
20
- tokenize: () => Promise<import("../../lib/common").TokenizationResponse>;
21
- load: () => void;
22
- on: (event: string, callback: (data?: any) => void) => void;
23
- validate: () => void;
24
- reset: () => void;
25
- blur: () => void;
26
- cvvBlur: () => void;
27
- focus: () => void;
28
- cvvFocus: () => void;
29
- remove: () => void;
30
- toggleMask: () => void;
31
- toggleCvvMask: () => void;
32
- setPAN: (pan: string) => void;
33
- binLookup: () => void;
34
- validateConfig: () => void;
35
- setFraudServicesRequestDetails: (data: string) => void;
36
- } | undefined>;
37
- getToken: () => Promise<CoinflowCardTokenResponse>;
38
- css: () => string;
39
- readonly TokenExCardNumberIframeId: string;
40
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
10
+ getToken: typeof getToken;
11
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
41
12
  args: {
42
13
  type: PropType<CoinflowCardNumberInputProps>;
43
14
  required: true;
44
15
  };
45
16
  }>>, {}, {}>;
46
- export default _sfc_main;
17
+ export default _default;