@bluxcc/core 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.
Files changed (98) hide show
  1. package/dist/assets/Icons.d.ts +98 -0
  2. package/dist/assets/Logos.d.ts +24 -0
  3. package/dist/assets/bluxLogo.d.ts +8 -0
  4. package/dist/components/Alert/index.d.ts +9 -0
  5. package/dist/components/AssetsList/index.d.ts +6 -0
  6. package/dist/components/Button/index.d.ts +17 -0
  7. package/dist/components/CardItem/index.d.ts +16 -0
  8. package/dist/components/Divider/index.d.ts +2 -0
  9. package/dist/components/Header/index.d.ts +10 -0
  10. package/dist/components/Input/OTPInput.d.ts +8 -0
  11. package/dist/components/Input/index.d.ts +18 -0
  12. package/dist/components/Modal/Backdrop/index.d.ts +7 -0
  13. package/dist/components/Modal/index.d.ts +11 -0
  14. package/dist/components/Provider.d.ts +1 -0
  15. package/dist/components/QRCode/index.d.ts +10 -0
  16. package/dist/components/TabBox/index.d.ts +12 -0
  17. package/dist/components/Transaction/History/index.d.ts +12 -0
  18. package/dist/components/Transaction/Summary/index.d.ts +10 -0
  19. package/dist/constants/consts.d.ts +2 -0
  20. package/dist/constants/explorers.d.ts +9 -0
  21. package/dist/constants/locales.d.ts +9 -0
  22. package/dist/constants/networkDetails.d.ts +14 -0
  23. package/dist/constants/routes.d.ts +9 -0
  24. package/dist/constants/themes.d.ts +3 -0
  25. package/dist/enums.d.ts +33 -0
  26. package/dist/exports/blux.d.ts +15 -0
  27. package/dist/exports/core/callBuilder.d.ts +59 -0
  28. package/dist/exports/core/getAccount.d.ts +8 -0
  29. package/dist/exports/core/getAccounts.d.ts +15 -0
  30. package/dist/exports/core/getAssets.d.ts +13 -0
  31. package/dist/exports/core/getBalances.d.ts +8 -0
  32. package/dist/exports/core/getClaimableBalances.d.ts +14 -0
  33. package/dist/exports/core/getEffects.d.ts +16 -0
  34. package/dist/exports/core/getLedgers.d.ts +12 -0
  35. package/dist/exports/core/getLiquidityPools.d.ts +13 -0
  36. package/dist/exports/core/getNetwork.d.ts +2 -0
  37. package/dist/exports/core/getOffers.d.ts +16 -0
  38. package/dist/exports/core/getOperations.d.ts +17 -0
  39. package/dist/exports/core/getOrderbook.d.ts +9 -0
  40. package/dist/exports/core/getPayments.d.ts +12 -0
  41. package/dist/exports/core/getStrictReceivePaths.d.ts +9 -0
  42. package/dist/exports/core/getStrictSendPaths.d.ts +9 -0
  43. package/dist/exports/core/getTradeAggregation.d.ts +5 -0
  44. package/dist/exports/core/getTrades.d.ts +16 -0
  45. package/dist/exports/core/getTransactions.d.ts +16 -0
  46. package/dist/exports/core/index.d.ts +131 -0
  47. package/dist/exports/core/networks.d.ts +9 -0
  48. package/dist/exports/core/switchNetwork.d.ts +2 -0
  49. package/dist/exports/index.d.ts +144 -0
  50. package/dist/exports/utils.d.ts +14 -0
  51. package/dist/hooks/useBalances.d.ts +8 -0
  52. package/dist/hooks/useDynamicHeight.d.ts +4 -0
  53. package/dist/hooks/useIsMobile.d.ts +1 -0
  54. package/dist/hooks/useLang.d.ts +2 -0
  55. package/dist/hooks/useModalAnimation.d.ts +7 -0
  56. package/dist/hooks/useTransactions.d.ts +11 -0
  57. package/dist/hooks/useUpdateAccount.d.ts +2 -0
  58. package/dist/index.cjs.js +6 -0
  59. package/dist/index.d.ts +149 -0
  60. package/dist/index.esm.js +6 -0
  61. package/dist/index.iife.js +6 -0
  62. package/dist/pages/About/index.d.ts +2 -0
  63. package/dist/pages/Onboarding/OTP/index.d.ts +2 -0
  64. package/dist/pages/Onboarding/index.d.ts +2 -0
  65. package/dist/pages/Profile/Activity/index.d.ts +2 -0
  66. package/dist/pages/Profile/Balances/AddToken/index.d.ts +2 -0
  67. package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +2 -0
  68. package/dist/pages/Profile/Balances/index.d.ts +2 -0
  69. package/dist/pages/Profile/Receive/index.d.ts +2 -0
  70. package/dist/pages/Profile/SelectAsset/index.d.ts +9 -0
  71. package/dist/pages/Profile/Send/SendForm.d.ts +2 -0
  72. package/dist/pages/Profile/Send/index.d.ts +2 -0
  73. package/dist/pages/Profile/Swap/AssetBox/index.d.ts +4 -0
  74. package/dist/pages/Profile/Swap/index.d.ts +2 -0
  75. package/dist/pages/Profile/index.d.ts +2 -0
  76. package/dist/pages/SendTransaction/index.d.ts +2 -0
  77. package/dist/pages/SignMessage/index.d.ts +2 -0
  78. package/dist/pages/Successful/index.d.ts +2 -0
  79. package/dist/pages/Waiting/index.d.ts +2 -0
  80. package/dist/pages/WrongNetwork/index.d.ts +2 -0
  81. package/dist/stellar/getTransactionDetails.d.ts +8 -0
  82. package/dist/stellar/handleTransactionSigning.d.ts +5 -0
  83. package/dist/stellar/paymentTransaction.d.ts +4 -0
  84. package/dist/stellar/signTransaction.d.ts +3 -0
  85. package/dist/stellar/submitTransaction.d.ts +7 -0
  86. package/dist/store.d.ts +72 -0
  87. package/dist/types.d.ts +109 -0
  88. package/dist/utils/animatedGradient.d.ts +18 -0
  89. package/dist/utils/helpers.d.ts +31 -0
  90. package/dist/utils/walletLogos.d.ts +2 -0
  91. package/dist/wallets/albedo.d.ts +2 -0
  92. package/dist/wallets/freighter.d.ts +2 -0
  93. package/dist/wallets/hana.d.ts +2 -0
  94. package/dist/wallets/index.d.ts +3 -0
  95. package/dist/wallets/lobstr.d.ts +2 -0
  96. package/dist/wallets/rabet.d.ts +2 -0
  97. package/dist/wallets/xbull.d.ts +2 -0
  98. package/package.json +61 -0
@@ -0,0 +1,2 @@
1
+ declare const About: () => import("react/jsx-runtime").JSX.Element;
2
+ export default About;
@@ -0,0 +1,2 @@
1
+ declare const OTP: () => import("react/jsx-runtime").JSX.Element;
2
+ export default OTP;
@@ -0,0 +1,2 @@
1
+ declare const Onboarding: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Onboarding;
@@ -0,0 +1,2 @@
1
+ declare const Activity: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Activity;
@@ -0,0 +1,2 @@
1
+ declare const AddToken: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AddToken;
@@ -0,0 +1,2 @@
1
+ declare const BalanceDetails: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BalanceDetails;
@@ -0,0 +1,2 @@
1
+ declare const Balances: () => "Loading" | import("react/jsx-runtime").JSX.Element | "Error, try again.";
2
+ export default Balances;
@@ -0,0 +1,2 @@
1
+ declare const Receive: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Receive;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { IAsset } from "../../../types";
3
+ type SelectAssetsProps = {
4
+ assets: IAsset[];
5
+ setShowSelectAssetPage: React.Dispatch<React.SetStateAction<boolean>>;
6
+ setSelectedAsset: React.Dispatch<React.SetStateAction<IAsset>>;
7
+ };
8
+ declare const SelectAssets: ({ assets, setSelectedAsset, setShowSelectAssetPage, }: SelectAssetsProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default SelectAssets;
@@ -0,0 +1,2 @@
1
+ declare const SendForm: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SendForm;
@@ -0,0 +1,2 @@
1
+ declare const Send: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Send;
@@ -0,0 +1,4 @@
1
+ declare const AssetBox: ({ handleOpenAssets }: {
2
+ handleOpenAssets: () => void;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default AssetBox;
@@ -0,0 +1,2 @@
1
+ declare const Swap: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Swap;
@@ -0,0 +1,2 @@
1
+ declare const Profile: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Profile;
@@ -0,0 +1,2 @@
1
+ declare const SendTransaction: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SendTransaction;
@@ -0,0 +1,2 @@
1
+ declare const SignMessage: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SignMessage;
@@ -0,0 +1,2 @@
1
+ declare const Successful: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Successful;
@@ -0,0 +1,2 @@
1
+ declare const Waiting: () => import("react/jsx-runtime").JSX.Element | "ERROR";
2
+ export default Waiting;
@@ -0,0 +1,2 @@
1
+ declare const WrongNetwork: () => import("react/jsx-runtime").JSX.Element;
2
+ export default WrongNetwork;
@@ -0,0 +1,8 @@
1
+ declare const getTransactionDetails: (xdr: string, network: string) => {
2
+ action: "createAccount" | "payment" | "pathPaymentStrictReceive" | "pathPaymentStrictSend" | "createPassiveSellOffer" | "manageSellOffer" | "manageBuyOffer" | "setOptions" | "changeTrust" | "allowTrust" | "accountMerge" | "inflation" | "manageData" | "bumpSequence" | "createClaimableBalance" | "claimClaimableBalance" | "beginSponsoringFutureReserves" | "endSponsoringFutureReserves" | "revokeSponsorship" | "clawback" | "clawbackClaimableBalance" | "setTrustLineFlags" | "liquidityPoolDeposit" | "liquidityPoolWithdraw" | "invokeHostFunction" | "extendFootprintTtl" | "restoreFootprint";
3
+ operations: number;
4
+ sender: string;
5
+ receiver: string | null;
6
+ estimatedFee: number;
7
+ } | null;
8
+ export default getTransactionDetails;
@@ -0,0 +1,5 @@
1
+ import { ITransports, IWallet } from "../types";
2
+ declare const handleTransactionSigning: (wallet: IWallet, xdr: string, userAddress: string, options: {
3
+ network: string;
4
+ }, transports: ITransports) => Promise<import("@stellar/stellar-sdk/lib/horizon").HorizonApi.SubmitTransactionResponse>;
5
+ export default handleTransactionSigning;
@@ -0,0 +1,4 @@
1
+ import { Horizon } from "@stellar/stellar-sdk";
2
+ import { IAsset } from "../types";
3
+ declare const paymentTransaction: (memo: string, amount: string, destinationAddress: string, asset: IAsset, sourceAddress: string, server: Horizon.Server, networkPassphrase: string) => Promise<string>;
4
+ export default paymentTransaction;
@@ -0,0 +1,3 @@
1
+ import { IWallet } from "../types";
2
+ declare const signTransaction: (wallet: IWallet, xdr: string, address: string, network: string) => Promise<string>;
3
+ export default signTransaction;
@@ -0,0 +1,7 @@
1
+ import { Horizon } from "@stellar/stellar-sdk";
2
+ import { ITransports } from "../types";
3
+ declare function submitTransaction(xdr: string, options: {
4
+ network: string;
5
+ }, transports: ITransports): Promise<// | rpc.Api.GetSuccessfulTransactionResponse
6
+ Horizon.HorizonApi.SubmitTransactionResponse>;
7
+ export default submitTransaction;
@@ -0,0 +1,72 @@
1
+ import { Horizon, rpc } from "@stellar/stellar-sdk";
2
+ import { Route } from "./enums";
3
+ import { UseBalancesResult } from "./hooks/useBalances";
4
+ import { UseTransactionsResult } from "./hooks/useTransactions";
5
+ import { IWallet, IInternalConfig, ISendTransaction } from "./types";
6
+ export type WaitingStatus = "login" | "sendTransaction" | "signMessage";
7
+ export type AlertType = "error" | "success" | "info" | "warn" | "none";
8
+ export interface IUser {
9
+ address: string;
10
+ walletPassphrase: string;
11
+ authValue: string;
12
+ authMethod: string;
13
+ }
14
+ export interface IStellarConfig {
15
+ activeNetwork: string;
16
+ servers: {
17
+ horizon: Horizon.Server;
18
+ soroban: rpc.Server;
19
+ };
20
+ }
21
+ export interface IStoreProperties {
22
+ config: IInternalConfig;
23
+ user?: IUser;
24
+ authState: {
25
+ isReady: boolean;
26
+ isAuthenticated: boolean;
27
+ };
28
+ modal: {
29
+ route: Route;
30
+ isOpen: boolean;
31
+ dynamicTitle: string;
32
+ alert: {
33
+ type: AlertType;
34
+ message: string;
35
+ };
36
+ };
37
+ showAllWallets: boolean;
38
+ waitingStatus: WaitingStatus;
39
+ wallets: IWallet[];
40
+ stellar?: IStellarConfig;
41
+ sendTransaction?: ISendTransaction;
42
+ balances: UseBalancesResult;
43
+ transactions: UseTransactionsResult;
44
+ }
45
+ export interface IStoreMethods {
46
+ connectEmail: (email: string) => void;
47
+ connectWallet: (walletName: string) => void;
48
+ connectWalletSuccessful: (publicKey: string, passphrase: string) => void;
49
+ closeModal: () => void;
50
+ logoutAction: () => void;
51
+ openModal: (route: Route) => void;
52
+ setConfig: (config: IInternalConfig) => void;
53
+ setIsReady: (isReady: boolean) => void;
54
+ setShowAllWallets: (showAllWallets: boolean) => void;
55
+ setRoute: (route: Route) => void;
56
+ setSendTransaction: (sendTransaction: ISendTransaction) => void;
57
+ setStellar: (stellar: IStellarConfig) => void;
58
+ setWallets: (wallets: IWallet[]) => void;
59
+ setAlert: (alert: AlertType, message: string) => void;
60
+ setDynamicTitle: (title: string) => void;
61
+ sendTransactionSuccessful: (sendTransaction: ISendTransaction) => void;
62
+ setBalances: (balances: UseBalancesResult) => void;
63
+ setTransactions: (transactions: UseTransactionsResult) => void;
64
+ }
65
+ export interface IStore extends IStoreProperties, IStoreMethods {
66
+ }
67
+ export declare const store: import("zustand").StoreApi<IStore>;
68
+ export declare const getState: () => IStore, setState: {
69
+ (partial: IStore | Partial<IStore> | ((state: IStore) => IStore | Partial<IStore>), replace?: false): void;
70
+ (state: IStore | ((state: IStore) => IStore), replace: true): void;
71
+ }, subscribe: (listener: (state: IStore, prevState: IStore) => void) => () => void, getInitialState: () => IStore;
72
+ export declare const useAppStore: <T>(selector: (state: IStore) => T) => T;
@@ -0,0 +1,109 @@
1
+ import { Horizon } from "@stellar/stellar-sdk";
2
+ import { SupportedWallet } from "./enums";
3
+ export type LanguageKey = "en" | "es";
4
+ export type ITransports = Record<string, IServers>;
5
+ export type IExplorer = "steexp" | "stellarchain" | "stellarexpert" | "lumenscan";
6
+ export type ILoginMethods = Array<"wallet" | "sms" | "email" | "passkey">;
7
+ interface IServers {
8
+ horizon: string;
9
+ soroban: string;
10
+ }
11
+ export interface IConfig {
12
+ appId: string;
13
+ appName: string;
14
+ networks: string[];
15
+ defaultNetwork?: string;
16
+ appearance?: Partial<IAppearance>;
17
+ lang?: LanguageKey;
18
+ explorer?: IExplorer;
19
+ showWalletUIs?: boolean;
20
+ loginMethods?: ILoginMethods;
21
+ transports?: ITransports;
22
+ }
23
+ export interface IInternalConfig extends IConfig {
24
+ explorer: IExplorer;
25
+ appearance: IAppearance;
26
+ showWalletUIs: boolean;
27
+ defaultNetwork: string;
28
+ lang: LanguageKey;
29
+ }
30
+ export interface IAppearance {
31
+ background: string;
32
+ fieldBackground: string;
33
+ accentColor: string;
34
+ textColor: string;
35
+ font: string;
36
+ outlineWidth: string;
37
+ borderRadius: string;
38
+ borderColor: string;
39
+ borderWidth: string;
40
+ logo: string;
41
+ }
42
+ export interface IWallet {
43
+ name: SupportedWallet;
44
+ website: string;
45
+ isAvailable: () => Promise<boolean> | boolean;
46
+ connect: () => Promise<{
47
+ publicKey: string;
48
+ }>;
49
+ getAddress?: (options?: {
50
+ path?: string;
51
+ }) => Promise<{
52
+ address: string;
53
+ }>;
54
+ signTransaction?: (xdr: string, options?: {
55
+ networkPassphrase?: string;
56
+ address?: string;
57
+ submit?: boolean;
58
+ }) => Promise<string>;
59
+ disconnect?: () => Promise<void>;
60
+ getNetwork: () => Promise<{
61
+ network: string;
62
+ passphrase: string;
63
+ }>;
64
+ signMessage?: (message: string, options?: {
65
+ networkPassphrase?: string;
66
+ address?: string;
67
+ path?: string;
68
+ }) => Promise<{
69
+ signedMessage: string;
70
+ signerPublicKey?: string;
71
+ }>;
72
+ signAuthEntry?: (authorizationEntry: string, options?: {
73
+ networkPassphrase?: string;
74
+ address?: string;
75
+ path?: string;
76
+ }) => Promise<{
77
+ signedAuthorizationEntry: string;
78
+ signerPublicKey?: string;
79
+ }>;
80
+ }
81
+ export interface IAccountData {
82
+ id: string;
83
+ sequence: string;
84
+ xlmBalance: string;
85
+ subentry_count: number;
86
+ balances: Horizon.HorizonApi.BalanceLine[];
87
+ thresholds: Horizon.HorizonApi.AccountThresholds;
88
+ transactions?: Horizon.ServerApi.TransactionRecord[];
89
+ }
90
+ export interface IAsset {
91
+ logo?: string | React.ReactNode;
92
+ valueInCurrency?: string;
93
+ assetBalance: string;
94
+ assetCode: string;
95
+ assetType: string;
96
+ assetIssuer: string;
97
+ }
98
+ export interface ISendTransactionOptions {
99
+ network: string;
100
+ }
101
+ export type TransactionResponseType = Horizon.HorizonApi.SubmitTransactionResponse;
102
+ export interface ISendTransaction {
103
+ xdr: string;
104
+ options: ISendTransactionOptions;
105
+ rejecter: (reason: any) => void;
106
+ result?: TransactionResponseType;
107
+ resolver: (value: TransactionResponseType) => void;
108
+ }
109
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ declare const COLOR_THEMES: {
3
+ purple: {
4
+ id: string;
5
+ colors: number[][];
6
+ };
7
+ };
8
+ type AnimatedGradientType = {
9
+ theme: keyof typeof COLOR_THEMES;
10
+ className?: string;
11
+ children?: React.ReactNode;
12
+ animationSpeed?: number;
13
+ onClick?: () => void;
14
+ size?: string;
15
+ style?: React.CSSProperties;
16
+ };
17
+ declare const AnimatedGradient: ({ theme, className, children, animationSpeed, onClick, style, size, }: AnimatedGradientType) => import("react/jsx-runtime").JSX.Element;
18
+ export default AnimatedGradient;
@@ -0,0 +1,31 @@
1
+ import translations from "../constants/locales";
2
+ import { SupportedWallet } from "../enums";
3
+ import { ITransports, IWallet, IExplorer, LanguageKey, IAsset } from "../types";
4
+ import { INetworkTransports } from "../constants/networkDetails";
5
+ import { Horizon } from "@stellar/stellar-sdk";
6
+ export declare const addXLMToBalances: (balances: IAsset[]) => IAsset[];
7
+ export declare const balanceToAsset: (balance: Horizon.HorizonApi.BalanceLine) => IAsset;
8
+ export declare const capitalizeFirstLetter: (str: string) => string;
9
+ export declare const copyText: (text: string) => Promise<void>;
10
+ export declare const formatDate: (isoString: string) => string;
11
+ export declare const getActiveNetworkTitle: (activeNetwork: string) => string;
12
+ export declare const getContrastColor: (bgColor: string) => string;
13
+ export declare const getExplorerUrl: (networkPassphrase: string, explorerProvider: IExplorer, endpoint: "accountUrl" | "transactionUrl" | "operationUrl" | "ledgerUrl", value: string) => string | null;
14
+ export declare const getMappedWallets: () => Promise<IWallet[]>;
15
+ export declare const getRecentConnectionMethod: () => SupportedWallet[];
16
+ export declare const getNetworkByPassphrase: (passphrase: string) => string;
17
+ export declare const getNetworkRpc: (network: string, transports: ITransports) => INetworkTransports;
18
+ export declare const getSortedCheckedWallets: (wallets: IWallet[]) => IWallet[];
19
+ export declare const getWalletNetwork: (wallet: IWallet) => Promise<string>;
20
+ export declare const handleLoadWallets: () => Promise<IWallet[]>;
21
+ export declare const hexToRgba: (hex: string, alpha: number) => string;
22
+ export declare const humanizeAmount: (amount: number | string, big?: boolean) => string;
23
+ export declare const initializeRabetMobile: () => void;
24
+ export declare const isBackgroundDark: (bgColor: string) => boolean;
25
+ export declare const loadWallets: () => Promise<IWallet[]>;
26
+ export declare const setRecentConnectionMethod: (walletName: SupportedWallet) => void;
27
+ export declare const shortenAddress: (address: string, numChars?: number) => string;
28
+ export declare const timeout: (waiter: number) => Promise<unknown>;
29
+ export declare const toTitleFormat: (str: string) => string;
30
+ export declare const translate: (key: keyof typeof translations, lang: LanguageKey, vars?: Record<string, string>) => string;
31
+ export declare const validateNetworkOptions: (networks: string[], defaultNetwork: string | undefined, transports: ITransports | undefined) => void;
@@ -0,0 +1,2 @@
1
+ declare const handleLogos: (walletName: string, isDark: boolean) => import("react/jsx-runtime").JSX.Element | null;
2
+ export default handleLogos;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const albedoConfig: IWallet;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const freighterConfig: IWallet;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const hanaConfig: IWallet;
@@ -0,0 +1,3 @@
1
+ import { IWallet } from "../types";
2
+ import { SupportedWallet } from "../enums";
3
+ export declare const walletsConfig: Record<SupportedWallet, IWallet>;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const lobstrConfig: IWallet;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const rabetConfig: IWallet;
@@ -0,0 +1,2 @@
1
+ import { IWallet } from "../types";
2
+ export declare const xBullConfig: IWallet;
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@bluxcc/core",
3
+ "version": "0.1.0",
4
+ "homepage": "https://blux.cc",
5
+ "description": "Blux is a wallet infra for the Stellar network",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs.js",
8
+ "module": "./dist/index.esm.js",
9
+ "browser": "./dist/index.iife.js",
10
+ "types": "./types/index.d.ts",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/bluxcc/core"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "types"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "scripts": {
23
+ "build": "rollup -c rollup.config.prod.mjs",
24
+ "dev": "rollup -c rollup.config.dev.mjs -w",
25
+ "prepack": "npm run build"
26
+ },
27
+ "keywords": [
28
+ "stellar",
29
+ "wallet",
30
+ "kit",
31
+ "blockchain"
32
+ ],
33
+ "author": "Blux team",
34
+ "license": "BUSL",
35
+ "peerDependencies": {
36
+ "@albedo-link/intent": "^0.13.0",
37
+ "@lobstrco/signer-extension-api": "^1.0.0-beta.0",
38
+ "@stellar/freighter-api": "^5.0.0",
39
+ "@stellar/stellar-sdk": "^14.1.1",
40
+ "react": "^19.1.1",
41
+ "react-dom": "^19.1.1",
42
+ "zustand": "^5.0.8"
43
+ },
44
+ "devDependencies": {
45
+ "@rollup/plugin-commonjs": "^28.0.6",
46
+ "@rollup/plugin-node-resolve": "^16.0.1",
47
+ "@rollup/plugin-replace": "^6.0.2",
48
+ "@rollup/plugin-typescript": "^12.1.4",
49
+ "@tailwindcss/postcss": "^4.1.13",
50
+ "@types/react": "^19.1.12",
51
+ "@types/react-dom": "^19.1.9",
52
+ "rollup-plugin-peer-deps-external": "^2.2.4",
53
+ "rollup-plugin-polyfill-node": "^0.13.0",
54
+ "rollup-plugin-postcss": "^4.0.2",
55
+ "rollup-plugin-terser": "^7.0.2",
56
+ "tailwindcss": "^4.1.13",
57
+ "tslib": "^2.8.1",
58
+ "typescript": "^5.9.2",
59
+ "qrcode.react": "^4.2.0"
60
+ }
61
+ }