@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.
@@ -0,0 +1,5 @@
1
+ import { InitOptions } from './types/types';
2
+ declare const Connect: (props: InitOptions) => {
3
+ unmount: () => void;
4
+ };
5
+ export default Connect;
@@ -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
+ declare const NomadPayWidgets: {
2
+ Payment: (props: import("./types/types").InitOptions) => {
3
+ unmount: () => void;
4
+ };
5
+ Connect: (props: import("./types/types").InitOptions) => {
6
+ unmount: () => void;
7
+ };
8
+ };
9
+ export default NomadPayWidgets;
@@ -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;
@@ -0,0 +1,6 @@
1
+ interface NotFoundWalletProps {
2
+ walletName: string;
3
+ downloadUrl?: string;
4
+ }
5
+ declare const NotFoundWallet: ({ walletName, downloadUrl }: NotFoundWalletProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default NotFoundWallet;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const WalletError: React.FC;
3
+ export default WalletError;
@@ -0,0 +1,2 @@
1
+ import { MultiWalletContextType } from '../contexts/MultiWalletContext';
2
+ export declare const useMultiWallet: () => MultiWalletContextType;
@@ -0,0 +1,9 @@
1
+ declare const NomadPayWidgets: {
2
+ Payment: (props: import("./types/types").InitOptions) => {
3
+ unmount: () => void;
4
+ };
5
+ Connect: (props: import("./types/types").InitOptions) => {
6
+ unmount: () => void;
7
+ };
8
+ };
9
+ export default NomadPayWidgets;