@bluxcc/core 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.
- package/dist/assets/index.d.ts +12 -0
- package/dist/components/AssetsList/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/CDNImage.d.ts +1 -1
- package/dist/components/CardItem/index.d.ts +1 -1
- package/dist/components/CardItem/variants/button.d.ts +1 -1
- package/dist/components/CardItem/variants/input.d.ts +1 -1
- package/dist/components/Divider/index.d.ts +1 -1
- package/dist/components/Header/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Link/index.d.ts +8 -0
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/Provider.d.ts +1 -1
- package/dist/components/QRCode/index.d.ts +1 -1
- package/dist/components/TabBox/index.d.ts +1 -1
- package/dist/components/Transaction/History/index.d.ts +1 -1
- package/dist/components/Transaction/Summary/index.d.ts +1 -1
- package/dist/constants/cdnFiles.d.ts +1 -0
- package/dist/constants/consts.d.ts +1 -1
- package/dist/enums.d.ts +4 -1
- package/dist/exports/blux.d.ts +6 -0
- package/dist/index.cjs.js +14 -14
- package/dist/index.esm.js +14 -14
- package/dist/pages/About/index.d.ts +1 -1
- package/dist/pages/AcceptTermsAndPrivacy/index.d.ts +2 -1
- package/dist/pages/Failed/index.d.ts +1 -1
- package/dist/pages/FundMe/FundMeCrypto/index.d.ts +1 -1
- package/dist/pages/FundMe/index.d.ts +2 -1
- package/dist/pages/Onboarding/OTP/index.d.ts +1 -1
- package/dist/pages/Onboarding/Passkey/index.d.ts +9 -0
- package/dist/pages/Onboarding/index.d.ts +2 -1
- package/dist/pages/Profile/Activity/index.d.ts +1 -1
- package/dist/pages/Profile/Balances/AddToken/index.d.ts +2 -1
- package/dist/pages/Profile/Balances/BalanceDetails/index.d.ts +1 -1
- package/dist/pages/Profile/Balances/index.d.ts +1 -1
- package/dist/pages/Profile/Receive/index.d.ts +1 -1
- package/dist/pages/Profile/SelectAsset/index.d.ts +2 -1
- package/dist/pages/Profile/Send/index.d.ts +2 -1
- package/dist/pages/Profile/Swap/AssetBox/index.d.ts +1 -1
- package/dist/pages/Profile/Swap/index.d.ts +1 -1
- package/dist/pages/Profile/index.d.ts +1 -1
- package/dist/pages/SendTransaction/index.d.ts +1 -1
- package/dist/pages/SignMessage/index.d.ts +1 -1
- package/dist/pages/Successful/index.d.ts +1 -1
- package/dist/pages/Waiting/index.d.ts +1 -1
- package/dist/pages/WalletConnect/index.d.ts +1 -1
- package/dist/pages/WrongNetwork/index.d.ts +1 -1
- package/dist/stellar/handleSignAuthEntry.d.ts +3 -0
- package/dist/stellar/processes/signAuthEntryProcess.d.ts +3 -0
- package/dist/store.d.ts +4 -2
- package/dist/types.d.ts +7 -0
- package/dist/utils/animatedGradient.d.ts +1 -1
- package/dist/utils/api.d.ts +8 -0
- package/dist/utils/checkRecentLogins.d.ts +1 -1
- package/dist/utils/helpers.d.ts +1 -0
- package/dist/utils/walletLogos.d.ts +1 -1
- package/dist/wallets/bitget.d.ts +2 -0
- package/dist/wallets/onekey.d.ts +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ArrowOutward: ({ fill }: {
|
|
2
|
+
fill?: string;
|
|
3
|
+
}) => import("react").JSX.Element;
|
|
4
|
+
export declare const Terms: ({ fill }: {
|
|
5
|
+
fill?: string;
|
|
6
|
+
}) => import("react").JSX.Element;
|
|
7
|
+
export declare const BitGetLogo: ({ fill }: {
|
|
8
|
+
fill?: string;
|
|
9
|
+
}) => import("react").JSX.Element;
|
|
10
|
+
export declare const OneKeyLogo: () => import("react").JSX.Element;
|
|
11
|
+
export declare const MoonPayLogo: () => import("react").JSX.Element;
|
|
12
|
+
export declare const PasskeyFingerLogo: () => import("react").JSX.Element;
|
|
@@ -6,5 +6,5 @@ type IAssetWithDetails = IAsset & {
|
|
|
6
6
|
type AssetsProps = {
|
|
7
7
|
assets: IAssetWithDetails[];
|
|
8
8
|
};
|
|
9
|
-
declare const Assets: ({ assets }: AssetsProps) => import("react
|
|
9
|
+
declare const Assets: ({ assets }: AssetsProps) => import("react").JSX.Element;
|
|
10
10
|
export default Assets;
|
|
@@ -15,5 +15,5 @@ interface ButtonProps {
|
|
|
15
15
|
type?: 'button' | 'submit';
|
|
16
16
|
disabled?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const Button: ({ size, disabled, variant, state, children, startIcon, endIcon, onClick, style, className, type, }: ButtonProps) =>
|
|
18
|
+
declare const Button: ({ size, disabled, variant, state, children, startIcon, endIcon, onClick, style, className, type, }: ButtonProps) => React.JSX.Element;
|
|
19
19
|
export default Button;
|
|
@@ -4,5 +4,5 @@ type ImageProps = {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
props?: Record<string, string>;
|
|
6
6
|
};
|
|
7
|
-
declare const CDNImage: ({ className, name, props, ...rest }: ImageProps) => import("react
|
|
7
|
+
declare const CDNImage: ({ className, name, props, ...rest }: ImageProps) => import("react").JSX.Element;
|
|
8
8
|
export default CDNImage;
|
|
@@ -12,5 +12,5 @@ type CardItemProps = {
|
|
|
12
12
|
onSubmit?: (value: string) => void;
|
|
13
13
|
inputType?: 'text' | 'password' | 'number' | 'email' | string;
|
|
14
14
|
};
|
|
15
|
-
declare const CardItem: ({ variant, size, startIcon, endArrow, isRecent, label, onClick, onChange, onEnter, onSubmit, inputType, }: CardItemProps) =>
|
|
15
|
+
declare const CardItem: ({ variant, size, startIcon, endArrow, isRecent, label, onClick, onChange, onEnter, onSubmit, inputType, }: CardItemProps) => React.JSX.Element;
|
|
16
16
|
export default CardItem;
|
|
@@ -7,5 +7,5 @@ type ButtonCardProps = {
|
|
|
7
7
|
label?: string;
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
};
|
|
10
|
-
declare const ButtonCard: ({ size, startIcon, endArrow, isRecent, label, onClick, }: ButtonCardProps) =>
|
|
10
|
+
declare const ButtonCard: ({ size, startIcon, endArrow, isRecent, label, onClick, }: ButtonCardProps) => React.JSX.Element;
|
|
11
11
|
export default ButtonCard;
|
|
@@ -6,5 +6,5 @@ type InputCardProps = {
|
|
|
6
6
|
onSubmit?: (value: string) => void;
|
|
7
7
|
inputType?: 'text' | 'password' | 'number' | 'email' | string;
|
|
8
8
|
};
|
|
9
|
-
declare const InputCard: ({ startIcon, onChange, onEnter, onSubmit, inputType, }: InputCardProps) =>
|
|
9
|
+
declare const InputCard: ({ startIcon, onChange, onEnter, onSubmit, inputType, }: InputCardProps) => React.JSX.Element;
|
|
10
10
|
export default InputCard;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const Divider: () => import("react
|
|
1
|
+
declare const Divider: () => import("react").JSX.Element;
|
|
2
2
|
export default Divider;
|
|
@@ -7,5 +7,5 @@ interface HeaderProps {
|
|
|
7
7
|
closeButton?: boolean;
|
|
8
8
|
onClose: () => void;
|
|
9
9
|
}
|
|
10
|
-
declare const Header: ({ icon, onInfo, onBack, title, closeButton, onClose, isPersistent, }: HeaderProps) => import("react
|
|
10
|
+
declare const Header: ({ icon, onInfo, onBack, title, closeButton, onClose, isPersistent, }: HeaderProps) => import("react").JSX.Element;
|
|
11
11
|
export default Header;
|
|
@@ -15,5 +15,5 @@ type InputFieldProps = {
|
|
|
15
15
|
className?: string;
|
|
16
16
|
optionalField?: boolean;
|
|
17
17
|
};
|
|
18
|
-
declare const InputField: ({ label, autoFocus, type, placeholder, error, iconRight, iconLeft, button, optionalField, onButtonClick, customLabel, value, className, onChange, }: InputFieldProps) =>
|
|
18
|
+
declare const InputField: ({ label, autoFocus, type, placeholder, error, iconRight, iconLeft, button, optionalField, onButtonClick, customLabel, value, className, onChange, }: InputFieldProps) => React.JSX.Element;
|
|
19
19
|
export default InputField;
|
|
@@ -8,5 +8,5 @@ interface ModalProps {
|
|
|
8
8
|
appearance: IAppearance;
|
|
9
9
|
isPersistent: boolean;
|
|
10
10
|
}
|
|
11
|
-
declare const Modal: ({ isOpen, onClose, children, isSticky, appearance, isPersistent, }: ModalProps) =>
|
|
11
|
+
declare const Modal: ({ isOpen, onClose, children, isSticky, appearance, isPersistent, }: ModalProps) => React.JSX.Element | null;
|
|
12
12
|
export default Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Provider: () => import("react
|
|
1
|
+
export declare const Provider: () => import("react").JSX.Element;
|
|
@@ -7,5 +7,5 @@ interface QRCodeCanvasProps {
|
|
|
7
7
|
level?: 'L' | 'M' | 'Q' | 'H';
|
|
8
8
|
imgSize?: number;
|
|
9
9
|
}
|
|
10
|
-
declare const QRCode: ({ value, title, size, bgColor, fgColor, level, imgSize, ...rest }: QRCodeCanvasProps) => import("react
|
|
10
|
+
declare const QRCode: ({ value, title, size, bgColor, fgColor, level, imgSize, ...rest }: QRCodeCanvasProps) => import("react").JSX.Element;
|
|
11
11
|
export default QRCode;
|
|
@@ -8,5 +8,5 @@ export type TxDetail = {
|
|
|
8
8
|
interface TransactionProps {
|
|
9
9
|
tx: TxDetail;
|
|
10
10
|
}
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ tx }: TransactionProps) =>
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ tx }: TransactionProps) => React.JSX.Element>;
|
|
12
12
|
export default _default;
|
|
@@ -6,5 +6,5 @@ interface SummaryProps {
|
|
|
6
6
|
action: string;
|
|
7
7
|
network: string;
|
|
8
8
|
}
|
|
9
|
-
declare const Summary: ({ operationsCount, sender, receiver, network, estimatedFee, action, }: SummaryProps) => import("react
|
|
9
|
+
declare const Summary: ({ operationsCount, sender, receiver, network, estimatedFee, action, }: SummaryProps) => import("react").JSX.Element;
|
|
10
10
|
export default Summary;
|
|
@@ -6,4 +6,4 @@ export declare const WC_STELLAR_TESTNET = "stellar:testnet";
|
|
|
6
6
|
export declare const BLUX_API = "https://api.blux.cc";
|
|
7
7
|
export declare const BLUX_APP_ID_HEADER: "blux-app-id";
|
|
8
8
|
export declare const BLUX_CDN_PATH = "https://cdn.blux.cc/files";
|
|
9
|
-
export declare const CLOUDFLARE_R2_LOGOS = "https://cdn2.blux.cc/core-assets/
|
|
9
|
+
export declare const CLOUDFLARE_R2_LOGOS = "https://cdn2.blux.cc/core-assets/logos2.json.gz";
|
package/dist/enums.d.ts
CHANGED
|
@@ -9,7 +9,9 @@ export declare enum SupportedWallet {
|
|
|
9
9
|
WalletConnect = "Wallet Connect",
|
|
10
10
|
Hot = "Hot",
|
|
11
11
|
Klever = "Klever",
|
|
12
|
-
Ledger = "Ledger"
|
|
12
|
+
Ledger = "Ledger",
|
|
13
|
+
Bitget = "Bitget",
|
|
14
|
+
Onekey = "Onekey"
|
|
13
15
|
}
|
|
14
16
|
export declare enum StellarNetwork {
|
|
15
17
|
PUBLIC = "Public Global Stellar Network ; September 2015",
|
|
@@ -20,6 +22,7 @@ export declare enum StellarNetwork {
|
|
|
20
22
|
}
|
|
21
23
|
export declare enum Route {
|
|
22
24
|
ONBOARDING = "ONBOARDING",// View for selecting a wallet
|
|
25
|
+
PASSKEY_ONBOARDING = "PASSKEY_ONBOARDING",
|
|
23
26
|
WRONG_NETWORK = "WRONG_NETWORK",// View for selecting a wallet
|
|
24
27
|
WAITING = "WAITING",// View for connection process
|
|
25
28
|
SUCCESSFUL = "SUCCESSFUL",// View for connection success process
|
package/dist/exports/blux.d.ts
CHANGED
|
@@ -10,6 +10,9 @@ export declare const sendTransaction: (xdr: string, options?: {
|
|
|
10
10
|
export declare const signMessage: (message: string, options?: {
|
|
11
11
|
network: string;
|
|
12
12
|
}) => Promise<unknown>;
|
|
13
|
+
export declare const signAuthEntry: (authEntry: string, options?: {
|
|
14
|
+
network: string;
|
|
15
|
+
}) => Promise<unknown>;
|
|
13
16
|
export declare const blux: {
|
|
14
17
|
login: () => Promise<IUser>;
|
|
15
18
|
logout: () => void;
|
|
@@ -18,6 +21,9 @@ export declare const blux: {
|
|
|
18
21
|
signMessage: (message: string, options?: {
|
|
19
22
|
network: string;
|
|
20
23
|
}) => Promise<unknown>;
|
|
24
|
+
signAuthEntry: (authEntry: string, options?: {
|
|
25
|
+
network: string;
|
|
26
|
+
}) => Promise<unknown>;
|
|
21
27
|
signTransaction: (xdr: string, options?: {
|
|
22
28
|
network: string;
|
|
23
29
|
}) => Promise<unknown>;
|