@nomadpay/widgets 0.0.1-alpha.11 → 0.0.1-alpha.12
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/esm/Connect.d.ts +5 -0
- package/dist/esm/Payment.d.ts +24 -0
- package/dist/esm/advanced.d.ts +9 -0
- package/dist/esm/components/WalletList.d.ts +9 -0
- package/dist/esm/contexts/MultiWalletContext.d.ts +13 -0
- package/dist/esm/dialogs/ConnectOverview.d.ts +7 -0
- package/dist/esm/dialogs/NotFoundWallet.d.ts +6 -0
- package/dist/esm/dialogs/WalletError.d.ts +3 -0
- package/dist/esm/hooks/useMultiWallet.d.ts +2 -0
- package/dist/esm/index.d.ts +9 -0
- package/dist/esm/index.js +115 -112
- package/dist/esm/providers/MultiWalletProvider.d.ts +5 -0
- package/dist/esm/providers/WalletProvider.d.ts +13 -0
- package/dist/esm/stacks/ConnectStack.d.ts +13 -0
- package/dist/esm/stacks/PaymentStack.d.ts +5 -0
- package/package.json +5 -7
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { InitOptions } from './types/types';
|
|
2
|
+
/**
|
|
3
|
+
* @param {Object} param0
|
|
4
|
+
* @param {string} param0.integration
|
|
5
|
+
* @param {Record<string, string>} param0.evmEndpoints, 商户的evm节点,如果为空,则使用公共的rpc节点,
|
|
6
|
+
* @param {string} param0.solanaEndpoint
|
|
7
|
+
* @param {string} param0.tonApiUrl
|
|
8
|
+
* @param {string} param0.tonManifestUrl
|
|
9
|
+
* @param {any} param0.style
|
|
10
|
+
* @param {HTMLElement} param0.container
|
|
11
|
+
* @param {Document} param0.document
|
|
12
|
+
* @param {boolean} param0.closable
|
|
13
|
+
* @param {() => void} param0.closed
|
|
14
|
+
* @param {WidgetI18nConfig} param0.i18nConfig
|
|
15
|
+
* @param {boolean} param0.autoSignOnConnect
|
|
16
|
+
* @param {string} param0.accessWay
|
|
17
|
+
* @param {() => void} param0.onSuccessCallback
|
|
18
|
+
* @param {() => void} param0.onCloseCallback
|
|
19
|
+
* @param {() => void} param0.onErrorCallback
|
|
20
|
+
*/
|
|
21
|
+
declare const Payment: (props: InitOptions) => {
|
|
22
|
+
unmount: () => void;
|
|
23
|
+
};
|
|
24
|
+
export default Payment;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Wallet } from '../types/wallet';
|
|
2
|
+
import { NetworkItem } from '../types/types';
|
|
3
|
+
declare const _default: ({ wallets, network, onClickNotFound, style, }: {
|
|
4
|
+
wallets: Wallet[];
|
|
5
|
+
network: NetworkItem;
|
|
6
|
+
onClickNotFound: (walletName: string) => void;
|
|
7
|
+
style: any;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Wallet, WalletConnectionState, WalletConnectedItem } from '../types/wallet';
|
|
2
|
+
import { multiWalletAdapter } from '../helpers/MultiWalletAdapter';
|
|
3
|
+
export interface MultiWalletContextType {
|
|
4
|
+
multiWalletAdapter: typeof multiWalletAdapter;
|
|
5
|
+
wallets: Wallet[];
|
|
6
|
+
setWallets: (wallets: Wallet[]) => void;
|
|
7
|
+
getConnectionState?: (walletId: string, chainKey: string) => WalletConnectionState;
|
|
8
|
+
connectionStates?: Map<string, WalletConnectionState>;
|
|
9
|
+
connectedChains?: Map<string, WalletConnectedItem>;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("react").Context<MultiWalletContextType>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Wallet } from '../types/wallet';
|
|
2
|
+
declare const ConnectOverview: ({ wallets, onClickNotFound, style, }: {
|
|
3
|
+
wallets: Wallet[];
|
|
4
|
+
onClickNotFound: (walletName: string) => void;
|
|
5
|
+
style: any;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ConnectOverview;
|