@bluxcc/core 0.3.0 → 0.3.1

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.
@@ -1,3 +1,12 @@
1
+ export declare const CurrencyExchange: ({ fill }: {
2
+ fill?: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const BuyIcon: ({ fill }: {
5
+ fill?: string;
6
+ }) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const SellIcon: ({ fill }: {
8
+ fill?: string;
9
+ }) => import("react/jsx-runtime").JSX.Element;
1
10
  export declare const ArrowOutward: ({ fill }: {
2
11
  fill?: string;
3
12
  }) => import("react/jsx-runtime").JSX.Element;
@@ -15,5 +24,9 @@ export declare const FordefiLogo: () => import("react/jsx-runtime").JSX.Element;
15
24
  export declare const TrezorLogo: ({ fill }: {
16
25
  fill?: string;
17
26
  }) => import("react/jsx-runtime").JSX.Element;
27
+ export declare const MoneyGramLogo: () => import("react/jsx-runtime").JSX.Element;
18
28
  export declare const MoonPayLogo: () => import("react/jsx-runtime").JSX.Element;
19
29
  export declare const PasskeyFingerLogo: () => import("react/jsx-runtime").JSX.Element;
30
+ export declare const PhoneIcon: ({ fill }: {
31
+ fill?: string;
32
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -10,7 +10,8 @@ type CardItemProps = {
10
10
  onChange?: (value: string) => void;
11
11
  onEnter?: (value: string) => void;
12
12
  onSubmit?: (value: string) => void;
13
- inputType?: 'text' | 'password' | 'number' | 'email' | string;
13
+ inputType?: 'text' | 'password' | 'number' | 'email' | 'tel' | string;
14
+ placeholder?: string;
14
15
  };
15
- declare const CardItem: ({ variant, size, startIcon, endArrow, isRecent, label, onClick, onChange, onEnter, onSubmit, inputType, }: CardItemProps) => import("react/jsx-runtime").JSX.Element;
16
+ declare const CardItem: ({ variant, size, startIcon, endArrow, isRecent, label, onClick, onChange, onEnter, onSubmit, inputType, placeholder, }: CardItemProps) => import("react/jsx-runtime").JSX.Element;
16
17
  export default CardItem;
@@ -4,7 +4,8 @@ type InputCardProps = {
4
4
  onChange?: (value: string) => void;
5
5
  onEnter?: (value: string) => void;
6
6
  onSubmit?: (value: string) => void;
7
- inputType?: 'text' | 'password' | 'number' | 'email' | string;
7
+ inputType?: 'text' | 'password' | 'number' | 'email' | 'tel' | string;
8
+ placeholder?: string;
8
9
  };
9
- declare const InputCard: ({ startIcon, onChange, onEnter, onSubmit, inputType, }: InputCardProps) => import("react/jsx-runtime").JSX.Element;
10
+ declare const InputCard: ({ startIcon, onChange, onEnter, onSubmit, inputType, placeholder, }: InputCardProps) => import("react/jsx-runtime").JSX.Element;
10
11
  export default InputCard;
@@ -1,12 +1,4 @@
1
1
  import { Asset, Horizon } from '@stellar/stellar-sdk';
2
- /**
3
- * Loads an account from Horizon, returning `null` instead of throwing when the
4
- * account does not exist on the network yet.
5
- *
6
- * @param horizon - The Horizon server to query.
7
- * @param address - The account id (`G...`) to load.
8
- * @returns The account, or `null` if it is not found.
9
- */
10
2
  export declare const loadAccount: (horizon: Horizon.Server, address: string) => Promise<Horizon.AccountResponse | null>;
11
3
  /**
12
4
  * Reports whether `account` can receive `asset` directly: always true for the
@@ -38,6 +38,15 @@ export type SwapOptions = {
38
38
  /** Network passphrase to swap on. Defaults to the active network. */
39
39
  network?: string;
40
40
  };
41
+ /**
42
+ * Builds the unsigned swap transaction XDR. {@link swap} signs and submits this
43
+ * envelope; the profile Swap page uses it so it can close the modal before
44
+ * opening the signing flow.
45
+ *
46
+ * @param options - What to swap and how — see {@link SwapOptions}.
47
+ * @returns The unsigned transaction envelope as XDR.
48
+ */
49
+ export declare const buildSwapTransaction: (options: SwapOptions) => Promise<string>;
41
50
  /**
42
51
  * Swaps one asset for another through the Stellar DEX / liquidity pools using a
43
52
  * path payment, picking the best available path automatically. Routes of at
@@ -7,7 +7,7 @@ export type { IAppearance, IConfig, IExplorer, ILoginMethods, IServers, ITrezorM
7
7
  *
8
8
  * Wallet availability is always scanned in the background. `isReady` waits on
9
9
  * that scan only when `loginMethods` includes `'wallet'`; apps that omit
10
- * wallet login (email/social/passkey only) become ready as soon as the config
10
+ * wallet login (email/SMS/social/passkey only) become ready as soon as the config
11
11
  * is applied, so they are not blocked by extension detection or `window.load`.
12
12
  *
13
13
  * @param config - The app configuration — see {@link IConfig}.
@@ -5,6 +5,7 @@ export type { IExportedStore } from './exportedStore';
5
5
  export { Asset } from '@stellar/stellar-sdk';
6
6
  export * as StellarSdk from '@stellar/stellar-sdk';
7
7
  export * from './core';
8
+ export * as core from './core';
8
9
  export { blux } from './blux';
9
10
  export { BluxEvent } from '../utils/events';
10
11
  export { getState, subscribe, getInitialState, useExportedStore, } from './exportedStore';
@@ -7,5 +7,10 @@ export type UseTransactionsResult = {
7
7
  error: Error | null;
8
8
  transactions: TransactionRecordWithOperations[];
9
9
  };
10
+ /**
11
+ * Horizon activity for the signed-in account. Mount this only from the
12
+ * Activity page — listing txs and then fetching each one's operations is
13
+ * expensive and should not run in the background.
14
+ */
10
15
  declare const useTransactions: () => UseTransactionsResult;
11
16
  export default useTransactions;