@coinflowlabs/vue 0.1.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.
@@ -0,0 +1,309 @@
1
+ import type { Connection, VersionedTransaction, PublicKey, Signer, Transaction } from '@solana/web3.js';
2
+ export declare enum SettlementType {
3
+ Credits = "Credits",
4
+ USDC = "USDC",
5
+ Bank = "Bank"
6
+ }
7
+ export declare enum MerchantStyle {
8
+ Rounded = "rounded",
9
+ Sharp = "sharp",
10
+ Pill = "pill"
11
+ }
12
+ export type MerchantTheme = {
13
+ primary?: string;
14
+ background?: string;
15
+ backgroundAccent?: string;
16
+ backgroundAccent2?: string;
17
+ textColor?: string;
18
+ textColorAccent?: string;
19
+ textColorAction?: string;
20
+ font?: string;
21
+ style?: MerchantStyle;
22
+ };
23
+ export interface CustomerInfo {
24
+ name?: string;
25
+ verificationId?: string;
26
+ displayName?: string;
27
+ address?: string;
28
+ city?: string;
29
+ state?: string;
30
+ zip?: string;
31
+ country?: string;
32
+ ip?: string;
33
+ lat?: string;
34
+ lng?: string;
35
+ }
36
+ /** Coinflow Types **/
37
+ export type CoinflowBlockchain = 'solana' | 'near' | 'eth' | 'polygon' | 'base';
38
+ export type CoinflowEnvs = 'prod' | 'staging' | 'staging-live' | 'sandbox' | 'local';
39
+ export interface CoinflowTypes {
40
+ merchantId: string;
41
+ env?: CoinflowEnvs;
42
+ loaderBackground?: string;
43
+ blockchain: CoinflowBlockchain;
44
+ handleHeightChange?: (height: string) => void;
45
+ theme?: MerchantTheme;
46
+ }
47
+ export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
48
+ export type OnSuccessMethod = (args: {
49
+ paymentId: string;
50
+ hash?: string | undefined;
51
+ } | string) => void | Promise<void>;
52
+ /** Wallets **/
53
+ export interface SolanaWallet {
54
+ publicKey: PublicKey | null;
55
+ signTransaction?: <T extends Transaction | VersionedTransaction>(transaction: T) => Promise<T>;
56
+ sendTransaction: <T extends Transaction | VersionedTransaction>(transaction: T) => Promise<string>;
57
+ signMessage?: (message: Uint8Array) => Promise<Uint8Array>;
58
+ }
59
+ export interface NearWallet {
60
+ accountId: string;
61
+ signAndSendTransaction: (transaction: unknown) => Promise<{
62
+ transaction: {
63
+ hash: string;
64
+ };
65
+ }>;
66
+ }
67
+ type AccessList = Array<{
68
+ address: string;
69
+ storageKeys: Array<string>;
70
+ }>;
71
+ type AccessListish = AccessList | Array<[string, Array<string>]> | Record<string, Array<string>>;
72
+ export type EthWallet = {
73
+ address: string | null | undefined;
74
+ sendTransaction: (transaction: {
75
+ to: string;
76
+ from?: string;
77
+ nonce?: Bytes | bigint | string | number;
78
+ gasLimit?: Bytes | bigint | string | number;
79
+ gasPrice?: Bytes | bigint | string | number;
80
+ data?: BytesLike;
81
+ value?: Bytes | bigint | string | number;
82
+ chainId?: number;
83
+ type?: number;
84
+ accessList?: AccessListish;
85
+ maxPriorityFeePerGas?: Bytes | bigint | string | number;
86
+ maxFeePerGas?: Bytes | bigint | string | number;
87
+ customData?: Record<string, any>;
88
+ ccipReadEnabled?: boolean;
89
+ }) => Promise<{
90
+ hash: string;
91
+ }>;
92
+ signMessage: (message: string) => Promise<string>;
93
+ };
94
+ /** History **/
95
+ export interface CoinflowSolanaHistoryProps extends CoinflowTypes {
96
+ wallet: SolanaWallet;
97
+ connection: Connection;
98
+ blockchain: 'solana';
99
+ }
100
+ export interface CoinflowNearHistoryProps extends CoinflowTypes {
101
+ wallet: NearWallet;
102
+ blockchain: 'near';
103
+ }
104
+ export interface CoinflowEvmHistoryProps extends CoinflowTypes {
105
+ wallet: EthWallet;
106
+ }
107
+ export interface CoinflowEthHistoryProps extends CoinflowEvmHistoryProps {
108
+ blockchain: 'eth';
109
+ }
110
+ export interface CoinflowPolygonHistoryProps extends CoinflowEvmHistoryProps {
111
+ blockchain: 'polygon';
112
+ }
113
+ export interface CoinflowBaseHistoryProps extends CoinflowEvmHistoryProps {
114
+ blockchain: 'base';
115
+ }
116
+ export type CoinflowHistoryProps = CoinflowSolanaHistoryProps | CoinflowNearHistoryProps | CoinflowPolygonHistoryProps | CoinflowEthHistoryProps | CoinflowBaseHistoryProps;
117
+ /** Transactions **/
118
+ export type NearFtTransferCallAction = {
119
+ methodName: 'ft_transfer_call';
120
+ args: object;
121
+ gas: string;
122
+ deposit: string;
123
+ };
124
+ type Bytes = ArrayLike<number>;
125
+ type BytesLike = Bytes | string;
126
+ /** Purchase **/
127
+ export type ChargebackProtectionData = ChargebackProtectionItem[];
128
+ export interface ChargebackProtectionItem {
129
+ /**
130
+ * The name of the product
131
+ */
132
+ productName: string;
133
+ /**
134
+ * The product type. Possible values include: inGameProduct, gameOfSkill, dataStorage, computingResources, sportsTicket, eSportsTicket, musicTicket, conferenceTicket, virtualSportsTicket, virtualESportsTicket, virtualMusicTicket, virtualConferenceTicket, alcohol, DLC, subscription, fundACause, realEstate, computingContract, digitalArt, topUp
135
+ */
136
+ productType: 'inGameProduct' | 'gameOfSkill' | 'dataStorage' | 'computingResources' | 'sportsTicket' | 'eSportsTicket' | 'musicTicket' | 'conferenceTicket' | 'virtualSportsTicket' | 'virtualESportsTicket' | 'virtualMusicTicket' | 'virtualConferenceTicket' | 'alcohol' | 'DLC' | 'subscription' | 'fundACause' | 'realEstate' | 'computingContract' | 'digitalArt' | 'topUp' | 'ownershipContract';
137
+ /**
138
+ * The item's list price
139
+ */
140
+ /**
141
+ * The number of units sold
142
+ */
143
+ quantity: number;
144
+ /**
145
+ * Any additional data that the store can provide on the product, e.g. description, link to image, etc.
146
+ */
147
+ rawProductData?: Record<string, any>;
148
+ }
149
+ export interface CoinflowCommonPurchaseProps extends CoinflowTypes {
150
+ amount?: number | string;
151
+ onSuccess?: OnSuccessMethod;
152
+ webhookInfo?: object;
153
+ email?: string;
154
+ chargebackProtectionData?: ChargebackProtectionData;
155
+ planCode?: string;
156
+ disableApplePay?: boolean;
157
+ disableGooglePay?: boolean;
158
+ customerInfo?: CustomerInfo;
159
+ settlementType?: SettlementType;
160
+ authOnly?: boolean;
161
+ deviceId?: string;
162
+ jwtToken?: string;
163
+ /**
164
+ * If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
165
+ *
166
+ * Example:
167
+ * Primary origin that will be interacting with the Coinflow iFrame: foo.com
168
+ * Subsequent origins that will render foo.com: bar.com
169
+ * The origin array would then be: [https://foo.com,https://bar.com]
170
+ */
171
+ origins?: string[];
172
+ }
173
+ export interface CoinflowSolanaPurchaseProps extends CoinflowCommonPurchaseProps {
174
+ wallet: SolanaWallet;
175
+ transaction?: Transaction | VersionedTransaction;
176
+ partialSigners?: Signer[];
177
+ debugTx?: boolean;
178
+ connection: Connection;
179
+ blockchain: 'solana';
180
+ token?: PublicKey | string;
181
+ rent?: {
182
+ lamports: string | number;
183
+ };
184
+ nativeSolToConvert?: {
185
+ lamports: string | number;
186
+ };
187
+ }
188
+ export interface CoinflowNearPurchaseProps extends CoinflowCommonPurchaseProps {
189
+ wallet: NearWallet;
190
+ blockchain: 'near';
191
+ action?: NearFtTransferCallAction;
192
+ nearDeposit?: string;
193
+ }
194
+ export interface CoinflowEvmPurchaseProps extends CoinflowCommonPurchaseProps {
195
+ transaction?: EvmTransactionData;
196
+ token?: string;
197
+ wallet: EthWallet;
198
+ }
199
+ export interface CoinflowPolygonPurchaseProps extends CoinflowEvmPurchaseProps {
200
+ blockchain: 'polygon';
201
+ }
202
+ export interface CoinflowEthPurchaseProps extends CoinflowEvmPurchaseProps {
203
+ blockchain: 'eth';
204
+ }
205
+ export interface CoinflowBasePurchaseProps extends CoinflowEvmPurchaseProps {
206
+ blockchain: 'base';
207
+ }
208
+ export type CoinflowPurchaseProps = CoinflowSolanaPurchaseProps | CoinflowNearPurchaseProps | CoinflowPolygonPurchaseProps | CoinflowEthPurchaseProps | CoinflowBasePurchaseProps;
209
+ /** Withdraw **/
210
+ export interface CoinflowCommonWithdrawProps extends CoinflowTypes {
211
+ onSuccess?: OnSuccessMethod;
212
+ tokens?: string[];
213
+ lockDefaultToken?: boolean;
214
+ amount?: number;
215
+ email?: string;
216
+ bankAccountLinkRedirect?: string;
217
+ additionalWallets?: {
218
+ wallet: string;
219
+ blockchain: 'solana' | 'eth' | 'near' | 'polygon';
220
+ }[];
221
+ lockAmount?: boolean;
222
+ transactionSigner?: string;
223
+ /**
224
+ * If rendering the Coinflow component within multiple nested iframes, all ancestors in the chain must be provided as a comma-separated list.
225
+ *
226
+ * Example:
227
+ * Primary origin that will be interacting with the Coinflow iFrame: foo.com
228
+ * Subsequent origins that will render foo.com: bar.com
229
+ * The origin array would then be: [https://foo.com,https://bar.com]
230
+ */
231
+ origins?: string[];
232
+ }
233
+ export interface CoinflowSolanaWithdrawProps extends CoinflowCommonWithdrawProps {
234
+ wallet: SolanaWallet;
235
+ connection: Connection;
236
+ blockchain: 'solana';
237
+ }
238
+ export interface CoinflowNearWithdrawProps extends CoinflowCommonWithdrawProps {
239
+ wallet: NearWallet;
240
+ blockchain: 'near';
241
+ }
242
+ export interface CoinflowEvmWithdrawProps extends CoinflowCommonWithdrawProps {
243
+ wallet: EthWallet;
244
+ usePermit?: boolean;
245
+ }
246
+ export interface CoinflowEthWithdrawProps extends CoinflowEvmWithdrawProps {
247
+ blockchain: 'eth';
248
+ usePermit?: boolean;
249
+ }
250
+ export interface CoinflowPolygonWithdrawProps extends CoinflowEvmWithdrawProps {
251
+ blockchain: 'polygon';
252
+ }
253
+ export interface CoinflowBaseWithdrawProps extends CoinflowEvmWithdrawProps {
254
+ blockchain: 'base';
255
+ }
256
+ export type CoinflowWithdrawProps = CoinflowSolanaWithdrawProps | CoinflowNearWithdrawProps | CoinflowEthWithdrawProps | CoinflowPolygonWithdrawProps | CoinflowBaseWithdrawProps;
257
+ export interface CommonEvmRedeem {
258
+ waitForHash?: boolean;
259
+ }
260
+ export interface NormalRedeem extends CommonEvmRedeem {
261
+ transaction: {
262
+ to: string;
263
+ data: string;
264
+ };
265
+ }
266
+ export interface KnownTokenIdRedeem extends NormalRedeem {
267
+ nftContract: string;
268
+ nftId: string;
269
+ }
270
+ export interface SafeMintRedeem extends NormalRedeem {
271
+ type: 'safeMint';
272
+ nftContract?: string;
273
+ }
274
+ export interface ReturnedTokenIdRedeem extends NormalRedeem {
275
+ type: 'returned';
276
+ nftContract?: string;
277
+ }
278
+ type ReservoirNftIdItem = Omit<KnownTokenIdRedeem, keyof NormalRedeem>;
279
+ interface ReservoirOrderIdItem {
280
+ orderId: string;
281
+ }
282
+ type ReservoirItem = ReservoirNftIdItem | ReservoirOrderIdItem;
283
+ type ReservoirItems = ReservoirItem | ReservoirItem[];
284
+ export interface ReservoirRedeem extends CommonEvmRedeem {
285
+ type: 'reservoir';
286
+ items: ReservoirItems;
287
+ }
288
+ export type EvmTransactionData = SafeMintRedeem | ReturnedTokenIdRedeem | ReservoirRedeem | KnownTokenIdRedeem | NormalRedeem;
289
+ export interface CoinflowIFrameProps extends Omit<CoinflowTypes, 'merchantId'>, Pick<CoinflowCommonPurchaseProps, 'chargebackProtectionData' | 'webhookInfo' | 'amount' | 'customerInfo' | 'settlementType' | 'email' | 'planCode' | 'deviceId' | 'jwtToken' | 'origins'>, Pick<CoinflowCommonWithdrawProps, 'bankAccountLinkRedirect' | 'additionalWallets' | 'transactionSigner' | 'lockAmount' | 'lockDefaultToken' | 'origins'>, Pick<CoinflowEvmPurchaseProps, 'authOnly'>, Pick<CoinflowSolanaPurchaseProps, 'rent' | 'nativeSolToConvert' | 'token'> {
290
+ walletPubkey: string | null | undefined;
291
+ route: string;
292
+ routePrefix?: string;
293
+ transaction?: string;
294
+ tokens?: string[] | PublicKey[];
295
+ nearDeposit?: string;
296
+ merchantCss?: string;
297
+ color?: 'white' | 'black';
298
+ disableApplePay?: boolean;
299
+ disableGooglePay?: boolean;
300
+ theme?: MerchantTheme;
301
+ usePermit?: boolean;
302
+ }
303
+ export declare enum CardType {
304
+ VISA = "VISA",
305
+ MASTERCARD = "MSTR",
306
+ AMEX = "AMEX",
307
+ DISCOVER = "DISC"
308
+ }
309
+ export {};
@@ -0,0 +1,21 @@
1
+ import { CoinflowBlockchain, CoinflowEnvs, CoinflowIFrameProps, CoinflowPurchaseProps } from './CoinflowTypes';
2
+ export declare class CoinflowUtils {
3
+ env: CoinflowEnvs;
4
+ url: string;
5
+ constructor(env?: CoinflowEnvs);
6
+ getNSurePartnerId(merchantId: string): Promise<string | undefined>;
7
+ getCreditBalance(publicKey: string, merchantId: string, blockchain: 'solana' | 'near'): Promise<{
8
+ cents: number;
9
+ }>;
10
+ static getCoinflowBaseUrl(env?: CoinflowEnvs): string;
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, }: CoinflowIFrameProps): string;
13
+ static getTransaction(props: CoinflowPurchaseProps): string | undefined;
14
+ static byBlockchain<T>(blockchain: CoinflowBlockchain, args: {
15
+ solana: T;
16
+ near: T;
17
+ eth: T;
18
+ polygon: T;
19
+ base: T;
20
+ }): T;
21
+ }
@@ -0,0 +1,5 @@
1
+ import * as SolanaWeb3Js from '@solana/web3.js';
2
+ import base58Imported from 'bs58';
3
+ declare const web3: typeof SolanaWeb3Js | undefined;
4
+ declare const base58: typeof base58Imported | undefined;
5
+ export { web3, base58 };
@@ -0,0 +1,106 @@
1
+ export interface TokenizationResponse {
2
+ cardType: string;
3
+ cvvIncluded: true;
4
+ firstSix: string;
5
+ lastFour: string;
6
+ referenceNumber: string;
7
+ token: string;
8
+ tokenHMAC: string;
9
+ }
10
+ declare global {
11
+ namespace TokenEx {
12
+ interface FraudServicesConfig {
13
+ useKount?: boolean;
14
+ kount?: {
15
+ merchantId?: string;
16
+ mode?: string;
17
+ anId?: string;
18
+ };
19
+ }
20
+ interface Config {
21
+ debug?: boolean;
22
+ enablePrettyFormat?: boolean;
23
+ maskInput?: boolean;
24
+ enableValidateOnBlur?: boolean;
25
+ enableAriaRequired?: boolean;
26
+ pci?: boolean;
27
+ cvvOnly?: boolean;
28
+ allowUnknownCardTypes?: boolean;
29
+ enableAutoComplete?: boolean;
30
+ returnAutoCompleteValues?: boolean;
31
+ returnKhash?: boolean;
32
+ returnWhash?: boolean;
33
+ enforceLuhnCompliance?: boolean;
34
+ use3DS?: boolean;
35
+ validateOnKeyUp?: boolean;
36
+ validateOnCvvKeyUp?: boolean;
37
+ expiresInSeconds?: number;
38
+ useExtendedBIN?: boolean;
39
+ inlineIframeJavaScript?: boolean;
40
+ iframeVersion?: number;
41
+ authenticationKey?: string;
42
+ origin?: string;
43
+ tokenExID?: string;
44
+ timestamp?: string;
45
+ tokenScheme?: string;
46
+ token?: string;
47
+ customDataLabel?: string;
48
+ customCvvDataLabel?: string;
49
+ title?: string;
50
+ cvvTitle?: string;
51
+ inputTitle?: string;
52
+ cvvInputTitle?: string;
53
+ cardMaxLengths?: {
54
+ visa?: number;
55
+ mastercard?: number;
56
+ americanExpress?: number;
57
+ discover?: number;
58
+ jcb?: number;
59
+ diners?: number;
60
+ };
61
+ fraudServices?: FraudServicesConfig;
62
+ threeDSMethodNotificationUrl?: string;
63
+ customDataTypes?: string | object;
64
+ cvvContainerID?: string;
65
+ cvvPlaceholder?: string;
66
+ cardType?: string;
67
+ forterSiteId?: string;
68
+ forterUsername?: string;
69
+ customRegEx?: string;
70
+ placeholder?: string;
71
+ inputType?: string;
72
+ inputMode?: string;
73
+ font?: string;
74
+ cvv?: boolean;
75
+ styles: {
76
+ base: string;
77
+ focus: string;
78
+ error: string;
79
+ cvv: {
80
+ base: string;
81
+ focus: string;
82
+ error: string;
83
+ };
84
+ };
85
+ }
86
+ interface IframeAPI {
87
+ load(): void;
88
+ on: (event: string, callback: (data?: any) => void) => void;
89
+ tokenize(): void;
90
+ validate(): void;
91
+ reset(): void;
92
+ blur(): void;
93
+ cvvBlur(): void;
94
+ focus(): void;
95
+ cvvFocus(): void;
96
+ remove(): void;
97
+ toggleMask(): void;
98
+ toggleCvvMask(): void;
99
+ setPAN(pan: string): void;
100
+ binLookup(): void;
101
+ validateConfig(): void;
102
+ setFraudServicesRequestDetails(data: string): void;
103
+ }
104
+ function Iframe(containerID: string, configuration: Config): IframeAPI;
105
+ }
106
+ }
@@ -0,0 +1,44 @@
1
+ import { CSSProperties } from 'react';
2
+ import { TokenizationResponse } from './TokenEx';
3
+ import { CardType, CoinflowEnvs } from '../CoinflowTypes';
4
+ export declare const TokenExCardNumberIframeId = "tokenExCardNumber";
5
+ export declare const TokenExCvvContainerID = "tokenExCardCvv";
6
+ export interface TokenExIframe extends ReturnType<typeof TokenEx.Iframe> {
7
+ tokenize: () => Promise<TokenizationResponse>;
8
+ }
9
+ export declare const CARD_TYPE_MAPPING: Record<CardType, string>;
10
+ export interface TokenExIFrameConfiguration {
11
+ origin: string;
12
+ timestamp: string;
13
+ tokenExID: string;
14
+ tokenScheme: string;
15
+ authenticationKey: string;
16
+ pci: true;
17
+ token?: string;
18
+ }
19
+ export interface CardFormInputStyles {
20
+ base: CSSProperties | string;
21
+ focus?: CSSProperties | string;
22
+ error?: CSSProperties | string;
23
+ }
24
+ export type CoinflowCardTokenResponse = {
25
+ token: string;
26
+ };
27
+ export interface CoinflowCardNumberInputProps {
28
+ env: CoinflowEnvs;
29
+ css: CardFormInputStyles & {
30
+ cvv: CardFormInputStyles;
31
+ };
32
+ debug?: boolean;
33
+ origins?: string[];
34
+ }
35
+ export interface CoinflowCvvOnlyInputProps {
36
+ token: string;
37
+ cardType: CardType;
38
+ env: CoinflowEnvs;
39
+ css: CardFormInputStyles & {
40
+ cvv: CardFormInputStyles;
41
+ };
42
+ debug?: boolean;
43
+ origins?: string[];
44
+ }
@@ -0,0 +1,43 @@
1
+ import { CardType, CoinflowEnvs } from '../CoinflowTypes';
2
+ import { TokenExIframe, TokenExIFrameConfiguration } from './cardFormTypes';
3
+ export declare function getIframeConfig({ token, origins, env, }: {
4
+ token?: string;
5
+ origins: string[] | undefined;
6
+ env: CoinflowEnvs;
7
+ }): Promise<TokenExIFrameConfiguration>;
8
+ export declare function setTokenExScriptTag({ env, setTokenExScriptLoaded, }: {
9
+ env: CoinflowEnvs;
10
+ setTokenExScriptLoaded: (b: boolean) => void;
11
+ }): void;
12
+ export declare function doInitializeCvvOnlyTokenExIframe({ token, cardType, css, debug, fontFamily, origins, tokenExScriptLoaded, env, setCachedToken, setLoaded, }: {
13
+ token: string;
14
+ cardType: CardType;
15
+ css: string;
16
+ debug?: boolean;
17
+ fontFamily?: string;
18
+ origins: string[] | undefined;
19
+ tokenExScriptLoaded: boolean;
20
+ env: CoinflowEnvs;
21
+ setCachedToken: (s: string | undefined) => void;
22
+ setLoaded: (b: boolean) => void;
23
+ }): Promise<TokenExIframe | undefined>;
24
+ export declare function doInitializeTokenExIframe({ css, debug, fontFamily, origins, tokenExScriptLoaded, env, setCachedToken, setLoaded, }: {
25
+ css: string;
26
+ debug?: boolean;
27
+ fontFamily?: string;
28
+ origins: string[] | undefined;
29
+ tokenExScriptLoaded: boolean;
30
+ env: CoinflowEnvs;
31
+ setCachedToken: (s: string | undefined) => void;
32
+ setLoaded: (b: boolean) => void;
33
+ }): Promise<TokenExIframe | undefined>;
34
+ export declare function doInitializeTokenExCardOnlyIframe({ css, debug, fontFamily, origins, tokenExScriptLoaded, env, setCachedToken, setLoaded, }: {
35
+ css: string;
36
+ debug?: boolean;
37
+ fontFamily?: string;
38
+ origins: string[] | undefined;
39
+ tokenExScriptLoaded: boolean;
40
+ env: CoinflowEnvs;
41
+ setCachedToken: (s: string | undefined) => void;
42
+ setLoaded: (b: boolean) => void;
43
+ }): Promise<TokenExIframe | undefined>;
@@ -0,0 +1,6 @@
1
+ export * from './CoinflowTypes';
2
+ export * from './CoinflowUtils';
3
+ export * from './CoinflowLibMessageHandlers';
4
+ export * from './card-form/cardFormTypes';
5
+ export * from './card-form/TokenEx';
6
+ export * from './card-form/tokenexHelpers';
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@coinflowlabs/vue",
3
+ "private": false,
4
+ "version": "0.1.0",
5
+ "type": "module",
6
+ "files": [
7
+ "dist",
8
+ "README.md"
9
+ ],
10
+ "main": "./dist/coinflow-vue.umd.cjs",
11
+ "module": "./dist/coinflow-vue.js",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/coinflow-vue.js",
15
+ "require": "./dist/coinflow-vue.umd.cjs",
16
+ "types": "./dist/index.d.ts"
17
+ }
18
+ },
19
+ "types": "./dist/index.d.ts",
20
+ "scripts": {
21
+ "clean": "rimraf dist",
22
+ "vue:dev": "vite",
23
+ "build": "npm run clean && npm run codegen && vue-tsc && vite build",
24
+ "preview": "vite preview",
25
+ "codegen": "mkdir -p ./src/lib/common/ && cp -r ../lib-common/src/ ./src/lib/common/"
26
+ },
27
+ "peerDependencies": {
28
+ "vue": "~3.4.30",
29
+ "@solana/web3.js": ">=1.54.0",
30
+ "bs58": "^4.0.1"
31
+ },
32
+ "devDependencies": {
33
+ "@types/bs58": "^4.0.4",
34
+ "@rushstack/eslint-patch": "^1.2.0",
35
+ "@types/node": "^18.11.18",
36
+ "@vitejs/plugin-vue": "^4.0.0",
37
+ "@vue/eslint-config-prettier": "^7.0.0",
38
+ "@vue/eslint-config-typescript": "^11.0.2",
39
+ "eslint": "^8.31.0",
40
+ "eslint-plugin-vue": "^9.8.0",
41
+ "prettier": "^2.8.1",
42
+ "typescript": "^4.9.3",
43
+ "vite": "^4.0.0",
44
+ "vite-plugin-dts": "^1.7.1",
45
+ "vitepress": "^1.0.0-alpha.34",
46
+ "vue": "^3.2.45",
47
+ "vue-tsc": "^1.0.11"
48
+ },
49
+ "dependencies": {
50
+ "lz-string": "^1.5.0"
51
+ },
52
+ "peerDependenciesMeta": {
53
+ "@solana/web3.js": {
54
+ "optional": true
55
+ },
56
+ "bs58": {
57
+ "optional": true
58
+ }
59
+ }
60
+ }