@wallet-ui/react 1.1.0-canary-20250321005249 → 1.1.0-canary-20250324005504
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/README.md +1 -1
- package/dist/index.browser.cjs +699 -288
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.mjs +637 -259
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.css +535 -152
- package/dist/index.css.map +1 -1
- package/dist/index.native.mjs +637 -259
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.node.cjs +699 -288
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.mjs +637 -259
- package/dist/index.node.mjs.map +1 -1
- package/dist/types/base-button.d.ts +12 -0
- package/dist/types/base-button.d.ts.map +1 -0
- package/dist/types/base-dropdown.d.ts +33 -0
- package/dist/types/base-dropdown.d.ts.map +1 -0
- package/dist/types/base-modal.d.ts +15 -0
- package/dist/types/base-modal.d.ts.map +1 -0
- package/dist/types/base-svg.d.ts +12 -0
- package/dist/types/base-svg.d.ts.map +1 -0
- package/dist/types/index.d.ts +37 -13
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/wallet-ui-button.d.ts +3 -0
- package/dist/types/types/wallet-ui-button.d.ts.map +1 -0
- package/dist/types/types/wallet-ui-div.d.ts +3 -0
- package/dist/types/types/wallet-ui-div.d.ts.map +1 -0
- package/dist/types/types/wallet-ui-img.d.ts +3 -0
- package/dist/types/types/wallet-ui-img.d.ts.map +1 -0
- package/dist/types/types/wallet-ui-size.d.ts +2 -0
- package/dist/types/types/wallet-ui-size.d.ts.map +1 -0
- package/dist/types/types/wallet-ui-span.d.ts +3 -0
- package/dist/types/types/wallet-ui-span.d.ts.map +1 -0
- package/dist/types/types/wallet-ui-svg.d.ts +3 -0
- package/dist/types/types/wallet-ui-svg.d.ts.map +1 -0
- package/dist/types/use-base-dropdown.d.ts +9 -0
- package/dist/types/use-base-dropdown.d.ts.map +1 -0
- package/dist/types/use-base-modal.d.ts +9 -0
- package/dist/types/use-base-modal.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-account.d.ts +2 -0
- package/dist/types/use-wallet-ui-account.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-cluster.d.ts +2 -0
- package/dist/types/use-wallet-ui-cluster.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-dropdown.d.ts +14 -0
- package/dist/types/use-wallet-ui-dropdown.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-solana-client.d.ts +2 -0
- package/dist/types/use-wallet-ui-solana-client.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-wallet.d.ts +10 -0
- package/dist/types/use-wallet-ui-wallet.d.ts.map +1 -0
- package/dist/types/use-wallet-ui-wallets.d.ts +2 -0
- package/dist/types/use-wallet-ui-wallets.d.ts.map +1 -0
- package/dist/types/use-wallet-ui.d.ts +2 -0
- package/dist/types/use-wallet-ui.d.ts.map +1 -0
- package/dist/types/{solana-wallet-provider.d.ts → wallet-ui-account-context-provider.d.ts} +5 -4
- package/dist/types/wallet-ui-account-context-provider.d.ts.map +1 -0
- package/dist/types/wallet-ui-account-context.d.ts +13 -0
- package/dist/types/wallet-ui-account-context.d.ts.map +1 -0
- package/dist/types/wallet-ui-button.d.ts +8 -0
- package/dist/types/wallet-ui-button.d.ts.map +1 -0
- package/dist/types/wallet-ui-cluster-context-provider.d.ts +4 -0
- package/dist/types/wallet-ui-cluster-context-provider.d.ts.map +1 -0
- package/dist/types/wallet-ui-cluster-context.d.ts +14 -0
- package/dist/types/wallet-ui-cluster-context.d.ts.map +1 -0
- package/dist/types/wallet-ui-cluster-dropdown.d.ts +9 -0
- package/dist/types/wallet-ui-cluster-dropdown.d.ts.map +1 -0
- package/dist/types/wallet-ui-context-provider.d.ts +4 -0
- package/dist/types/wallet-ui-context-provider.d.ts.map +1 -0
- package/dist/types/wallet-ui-context.d.ts +25 -0
- package/dist/types/wallet-ui-context.d.ts.map +1 -0
- package/dist/types/wallet-ui-dropdown.d.ts +8 -0
- package/dist/types/wallet-ui-dropdown.d.ts.map +1 -0
- package/dist/types/wallet-ui-icon-close.d.ts +4 -0
- package/dist/types/wallet-ui-icon-close.d.ts.map +1 -0
- package/dist/types/wallet-ui-icon-no-wallet.d.ts +4 -0
- package/dist/types/wallet-ui-icon-no-wallet.d.ts.map +1 -0
- package/dist/types/wallet-ui-icon.d.ts +10 -0
- package/dist/types/wallet-ui-icon.d.ts.map +1 -0
- package/dist/types/wallet-ui-label.d.ts +9 -0
- package/dist/types/wallet-ui-label.d.ts.map +1 -0
- package/dist/types/wallet-ui-list-button.d.ts +11 -0
- package/dist/types/wallet-ui-list-button.d.ts.map +1 -0
- package/dist/types/wallet-ui-list.d.ts +11 -0
- package/dist/types/wallet-ui-list.d.ts.map +1 -0
- package/dist/types/wallet-ui-modal-trigger.d.ts +9 -0
- package/dist/types/wallet-ui-modal-trigger.d.ts.map +1 -0
- package/dist/types/wallet-ui-modal.d.ts +11 -0
- package/dist/types/wallet-ui-modal.d.ts.map +1 -0
- package/dist/types/wallet-ui-solana-client-context-provider.d.ts +4 -0
- package/dist/types/wallet-ui-solana-client-context-provider.d.ts.map +1 -0
- package/dist/types/wallet-ui-solana-client-context.d.ts +8 -0
- package/dist/types/wallet-ui-solana-client-context.d.ts.map +1 -0
- package/dist/types/wallet-ui.d.ts +15 -0
- package/dist/types/wallet-ui.d.ts.map +1 -0
- package/package.json +6 -3
- package/dist/types/solana-client-context.d.ts +0 -3
- package/dist/types/solana-client-context.d.ts.map +0 -1
- package/dist/types/solana-client-provider.d.ts +0 -7
- package/dist/types/solana-client-provider.d.ts.map +0 -1
- package/dist/types/solana-cluster-context.d.ts +0 -17
- package/dist/types/solana-cluster-context.d.ts.map +0 -1
- package/dist/types/solana-cluster-provider.d.ts +0 -7
- package/dist/types/solana-cluster-provider.d.ts.map +0 -1
- package/dist/types/solana-provider.d.ts +0 -7
- package/dist/types/solana-provider.d.ts.map +0 -1
- package/dist/types/solana-wallet-context.d.ts +0 -7
- package/dist/types/solana-wallet-context.d.ts.map +0 -1
- package/dist/types/solana-wallet-provider.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-button.d.ts +0 -3
- package/dist/types/solana-wallet-ui-button.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-context.d.ts +0 -19
- package/dist/types/solana-wallet-ui-context.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-dialog-trigger.d.ts +0 -4
- package/dist/types/solana-wallet-ui-dialog-trigger.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-dialog.d.ts +0 -12
- package/dist/types/solana-wallet-ui-dialog.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-dropdown.d.ts +0 -11
- package/dist/types/solana-wallet-ui-dropdown.d.ts.map +0 -1
- package/dist/types/solana-wallet-ui-provider.d.ts +0 -5
- package/dist/types/solana-wallet-ui-provider.d.ts.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Saves the selected wallet account's storage key to the browser's local storage. In future
|
|
4
4
|
* sessions it will try to return that same wallet account, or at least one from the same brand of
|
|
5
5
|
* wallet if the wallet from which it came is still in the Wallet Standard registry.
|
|
6
6
|
*/
|
|
7
|
-
export declare function
|
|
8
|
-
children: ReactNode;
|
|
7
|
+
export declare function WalletUiAccountContextProvider({ children, storageKey, }: {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
storageKey?: string;
|
|
9
10
|
}): React.JSX.Element;
|
|
10
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=wallet-ui-account-context-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-account-context-provider.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-account-context-provider.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAkC5D;;;;GAIG;AACH,wBAAgB,8BAA8B,CAAC,EAC3C,QAAQ,EACR,UAAwB,GAC3B,EAAE;IACC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB,qBA4FA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface WalletUiAccountInfo {
|
|
4
|
+
account: UiWalletAccount;
|
|
5
|
+
accountKeys: string[];
|
|
6
|
+
wallet: UiWallet | undefined;
|
|
7
|
+
}
|
|
8
|
+
export interface WalletUiAccountState extends Omit<WalletUiAccountInfo, 'account'> {
|
|
9
|
+
account: UiWalletAccount | undefined;
|
|
10
|
+
setAccount: React.Dispatch<React.SetStateAction<UiWalletAccount | undefined>>;
|
|
11
|
+
}
|
|
12
|
+
export declare const WalletUiAccountContext: React.Context<WalletUiAccountState>;
|
|
13
|
+
//# sourceMappingURL=wallet-ui-account-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-account-context.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-account-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,eAAe,CAAC;IACzB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;CAChC;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAC9E,OAAO,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC;CACjF;AAED,eAAO,MAAM,sBAAsB,qCAAkE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseButtonProps } from './base-button';
|
|
3
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
4
|
+
export interface WalletUiButtonProps extends Omit<BaseButtonProps, 'label'> {
|
|
5
|
+
size?: WalletUiSize;
|
|
6
|
+
}
|
|
7
|
+
export declare function WalletUiButton({ ...props }: WalletUiButtonProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=wallet-ui-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-button.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IACvE,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,qBAE/D"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletUiClusterContextProviderProps } from './wallet-ui-cluster-context';
|
|
3
|
+
export declare function WalletUiClusterContextProvider({ clusters, render, storageKey, }: WalletUiClusterContextProviderProps): React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=wallet-ui-cluster-context-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-cluster-context-provider.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-cluster-context-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAGvC,OAAO,EAEH,mCAAmC,EAEtC,MAAM,6BAA6B,CAAC;AAErC,wBAAgB,8BAA8B,CAAC,EAC3C,QAAQ,EACR,MAAM,EACN,UAA2C,GAC9C,EAAE,mCAAmC,qBAwBrC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SolanaCluster, SolanaClusterId } from '@wallet-ui/core';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface WalletUiClusterContextProviderProps {
|
|
4
|
+
clusters: SolanaCluster[];
|
|
5
|
+
render: (props: WalletUiClusterContextValue) => ReactNode;
|
|
6
|
+
storageKey?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface WalletUiClusterContextValue {
|
|
9
|
+
cluster: SolanaCluster;
|
|
10
|
+
clusters: SolanaCluster[];
|
|
11
|
+
setCluster(cluster: SolanaClusterId): void;
|
|
12
|
+
}
|
|
13
|
+
export declare const WalletUiClusterContext: import("react").Context<WalletUiClusterContextValue>;
|
|
14
|
+
//# sourceMappingURL=wallet-ui-cluster-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-cluster-context.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-cluster-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,WAAW,mCAAmC;IAChD,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,MAAM,EAAE,CAAC,KAAK,EAAE,2BAA2B,KAAK,SAAS,CAAC;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IACxC,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAE1B,UAAU,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,sBAAsB,sDAAgF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseDropdownProps } from './base-dropdown';
|
|
3
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
4
|
+
export interface WalletUiClusterDropdownProps extends Omit<BaseDropdownProps, 'buttonProps' | 'dropdown' | 'items' | 'label'> {
|
|
5
|
+
buttonProps?: Partial<BaseDropdownProps['buttonProps']>;
|
|
6
|
+
size?: WalletUiSize;
|
|
7
|
+
}
|
|
8
|
+
export declare function WalletUiClusterDropdown({ buttonProps, size, ...props }: WalletUiClusterDropdownProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=wallet-ui-cluster-dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-cluster-dropdown.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-cluster-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAsC,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,MAAM,WAAW,4BACb,SAAQ,IAAI,CAAC,iBAAiB,EAAE,aAAa,GAAG,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;IAC/E,WAAW,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC,CAAC;IACxD,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,uBAAuB,CAAC,EAAE,WAAW,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,4BAA4B,qBAmB3G"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletUiContextProviderProps } from './wallet-ui-context';
|
|
3
|
+
export declare function WalletUiContextProvider({ children, size }: WalletUiContextProviderProps): React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=wallet-ui-context-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-context-provider.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-context-provider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAmB,4BAA4B,EAAgC,MAAM,qBAAqB,CAAC;AAElH,wBAAgB,uBAAuB,CAAC,EAAE,QAAQ,EAAE,IAAW,EAAE,EAAE,4BAA4B,qBAkC9F"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
+
import { SolanaClient } from 'gill';
|
|
3
|
+
import React, { ReactNode } from 'react';
|
|
4
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
5
|
+
export interface WalletUiContextProviderProps {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
size?: WalletUiSize;
|
|
8
|
+
}
|
|
9
|
+
export interface WalletUiProviderContextValue {
|
|
10
|
+
account?: UiWalletAccount;
|
|
11
|
+
client: SolanaClient;
|
|
12
|
+
connect: (wallet: UiWalletAccount) => void;
|
|
13
|
+
connected: boolean;
|
|
14
|
+
copy: () => void;
|
|
15
|
+
disconnect: () => void;
|
|
16
|
+
size: WalletUiSize;
|
|
17
|
+
wallet?: UiWallet;
|
|
18
|
+
wallets: UiWallet[];
|
|
19
|
+
}
|
|
20
|
+
export interface WalletUiContextProviderProps {
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
size?: WalletUiSize;
|
|
23
|
+
}
|
|
24
|
+
export declare const WalletUiContext: React.Context<WalletUiProviderContextValue>;
|
|
25
|
+
//# sourceMappingURL=wallet-ui-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-context.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,WAAW,4BAA4B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IACzC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,IAAI,CAAC;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,IAAI,EAAE,YAAY,CAAC;IACnB,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,OAAO,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,eAAO,MAAM,eAAe,6CAAwF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
3
|
+
export interface WalletUiDropdownProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
size?: WalletUiSize;
|
|
6
|
+
}
|
|
7
|
+
export declare function WalletUiDropdown({ size, ...props }: WalletUiDropdownProps): React.JSX.Element;
|
|
8
|
+
//# sourceMappingURL=wallet-ui-dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-dropdown.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,WAAW,qBAAqB;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,qBAGhF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-icon-close.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-icon-close.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,iBAAiB,CAAC,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC,qBAcnG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-icon-no-wallet.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-icon-no-wallet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAC;AAEnD,wBAAgB,oBAAoB,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,OAAO,GAAG,SAAS,CAAC,qBAyF/F"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UiWallet } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WalletUiImg } from './types/wallet-ui-img';
|
|
4
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
5
|
+
export interface WalletUiIconProps extends WalletUiImg {
|
|
6
|
+
size?: WalletUiSize;
|
|
7
|
+
wallet?: Pick<UiWallet, 'icon' | 'name'>;
|
|
8
|
+
}
|
|
9
|
+
export declare function WalletUiIcon({ className, size, wallet, ...props }: WalletUiIconProps): React.JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=wallet-ui-icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-icon.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;CAC5C;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,4BAapF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UiWallet } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
4
|
+
export interface WalletUiLabelProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {
|
|
5
|
+
size?: WalletUiSize;
|
|
6
|
+
wallet?: Pick<UiWallet, 'name'>;
|
|
7
|
+
}
|
|
8
|
+
export declare function WalletUiLabel({ className, size, wallet, ...props }: WalletUiLabelProps): React.JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=wallet-ui-label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-label.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAEtD,MAAM,WAAW,kBACb,SAAQ,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,eAAe,CAAC;IACvF,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;CACnC;AAED,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,4BAUtF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WalletUiButton } from './types/wallet-ui-button';
|
|
4
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
5
|
+
export interface WalletUiListButtonProps extends Omit<WalletUiButton, 'onClick'> {
|
|
6
|
+
select?: (wallet: UiWalletAccount) => Promise<void>;
|
|
7
|
+
size?: WalletUiSize;
|
|
8
|
+
wallet: UiWallet;
|
|
9
|
+
}
|
|
10
|
+
export declare function WalletUiListButton({ className, select, size, wallet, ...props }: WalletUiListButtonProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=wallet-ui-list-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-list-button.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-list-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAItD,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC5E,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,MAAM,EAAE,QAAQ,CAAC;CACpB;AAED,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAW,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,qBA2B/G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WalletUiDiv } from './types/wallet-ui-div';
|
|
4
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
5
|
+
export interface WalletUiListProps extends WalletUiDiv {
|
|
6
|
+
select?: (account: UiWalletAccount) => Promise<void>;
|
|
7
|
+
size?: WalletUiSize;
|
|
8
|
+
wallets: UiWallet[];
|
|
9
|
+
}
|
|
10
|
+
export declare function WalletUiList({ className, select, size, wallets, ...props }: WalletUiListProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=wallet-ui-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-list.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-list.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IAClD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,IAAW,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,qBAQpG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseButtonProps } from './base-button';
|
|
3
|
+
import { BaseModalControl } from './use-base-modal';
|
|
4
|
+
export interface WalletUiModalTriggerProps extends Omit<BaseButtonProps, 'label'> {
|
|
5
|
+
label?: string;
|
|
6
|
+
modal: BaseModalControl;
|
|
7
|
+
}
|
|
8
|
+
export declare function WalletUiModalTrigger({ label, modal, ...props }: WalletUiModalTriggerProps): React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=wallet-ui-modal-trigger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-modal-trigger.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-modal-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,MAAM,WAAW,yBAA0B,SAAQ,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,gBAAgB,CAAC;CAC3B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,KAAuB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,yBAAyB,qBAE3G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BaseModalProps } from './base-modal';
|
|
4
|
+
import { WalletUiSize } from './types/wallet-ui-size';
|
|
5
|
+
export interface WalletUiModalProps extends Omit<BaseModalProps, 'children'> {
|
|
6
|
+
select: (account: UiWalletAccount) => Promise<void>;
|
|
7
|
+
size?: WalletUiSize;
|
|
8
|
+
wallets: UiWallet[];
|
|
9
|
+
}
|
|
10
|
+
export declare function WalletUiModal({ size, wallets, select, ...props }: WalletUiModalProps): React.JSX.Element;
|
|
11
|
+
//# sourceMappingURL=wallet-ui-modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-modal.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAa,cAAc,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAGtD,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,cAAc,EAAE,UAAU,CAAC;IACxE,MAAM,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,EAAE,QAAQ,EAAE,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,EAAE,IAAW,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,qBAM3F"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WalletUiSolanaClientContextProviderProps } from './wallet-ui-solana-client-context';
|
|
3
|
+
export declare function WalletUiSolanaClientContextProvider({ children, urlOrMoniker, }: WalletUiSolanaClientContextProviderProps): React.JSX.Element;
|
|
4
|
+
//# sourceMappingURL=wallet-ui-solana-client-context-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-solana-client-context-provider.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-solana-client-context-provider.tsx"],"names":[],"mappings":"AACA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAEH,wCAAwC,EAC3C,MAAM,mCAAmC,CAAC;AAE3C,wBAAgB,mCAAmC,CAAC,EAChD,QAAQ,EACR,YAAY,GACf,EAAE,wCAAwC,qBAQ1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SolanaClient, SolanaClientUrlOrMoniker } from 'gill';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
export interface WalletUiSolanaClientContextProviderProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
urlOrMoniker: SolanaClientUrlOrMoniker;
|
|
6
|
+
}
|
|
7
|
+
export declare const WalletUiSolanaClientContext: import("react").Context<SolanaClient>;
|
|
8
|
+
//# sourceMappingURL=wallet-ui-solana-client-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui-solana-client-context.d.ts","sourceRoot":"","sources":["../../src/wallet-ui-solana-client-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,wBAAwB,EAAE,MAAM,MAAM,CAAC;AAC9D,OAAO,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,WAAW,wCAAwC;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,wBAAwB,CAAC;CAC1C;AAED,eAAO,MAAM,2BAA2B,uCAAkD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SolanaCluster } from '@wallet-ui/core';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { WalletUiContextProviderProps } from './wallet-ui-context';
|
|
4
|
+
export interface WalletUiConfig extends Omit<WalletUiContextProviderProps, 'children'> {
|
|
5
|
+
clusterStorageKey?: string;
|
|
6
|
+
clusters: SolanaCluster[];
|
|
7
|
+
selectedAccountStorageKey?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function createWalletUiConfig(props: WalletUiConfig): WalletUiConfig;
|
|
10
|
+
export interface WalletUiProps {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
config: WalletUiConfig;
|
|
13
|
+
}
|
|
14
|
+
export declare function WalletUi({ children, config: { clusters, clusterStorageKey, selectedAccountStorageKey, ...config }, }: WalletUiProps): React.JSX.Element;
|
|
15
|
+
//# sourceMappingURL=wallet-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ui.d.ts","sourceRoot":"","sources":["../../src/wallet-ui.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAInE,MAAM,WAAW,cAAe,SAAQ,IAAI,CAAC,4BAA4B,EAAE,UAAU,CAAC;IAClF,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,cAAc,GAAG,cAAc,CAE1E;AAED,MAAM,WAAW,aAAa;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED,wBAAgB,QAAQ,CAAC,EACrB,QAAQ,EACR,MAAM,EAAE,EAAE,QAAQ,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,GAAG,MAAM,EAAE,GAChF,EAAE,aAAa,qBAkBf"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wallet-ui/react",
|
|
3
|
-
"version": "1.1.0-canary-
|
|
4
|
-
"description": "React
|
|
3
|
+
"version": "1.1.0-canary-20250324005504",
|
|
4
|
+
"description": "React components for Wallet UI",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"edge-light": {
|
|
@@ -57,12 +57,15 @@
|
|
|
57
57
|
"maintained node versions"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
+
"@solana/react": "2.1.0",
|
|
61
|
+
"@solana/wallet-standard-features": "1.3.0",
|
|
62
|
+
"@wallet-standard/core": "1.1.0",
|
|
60
63
|
"@wallet-standard/react": "1.0.0",
|
|
61
64
|
"@zag-js/dialog": "^1.3.3",
|
|
62
65
|
"@zag-js/menu": "^1.3.3",
|
|
63
66
|
"@zag-js/react": "^1.3.3",
|
|
64
67
|
"gill": "0.8.0",
|
|
65
|
-
"@wallet-ui/core": "1.1.0-canary-
|
|
68
|
+
"@wallet-ui/core": "1.1.0-canary-20250324005504"
|
|
66
69
|
},
|
|
67
70
|
"peerDependencies": {
|
|
68
71
|
"react": ">=18"
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export declare const SolanaClientContext: import("react").Context<import("gill").SolanaClient<import("gill").ModifiedClusterUrl>>;
|
|
2
|
-
export declare function useSolanaClient(): import("gill").SolanaClient<import("gill").ModifiedClusterUrl>;
|
|
3
|
-
//# sourceMappingURL=solana-client-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-client-context.d.ts","sourceRoot":"","sources":["../../src/solana-client-context.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,yFAAkD,CAAC;AAEnF,wBAAgB,eAAe,mEAE9B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SolanaClientUrlOrMoniker } from '@wallet-ui/core';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
export declare function SolanaClientProvider({ children, urlOrMoniker, }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
urlOrMoniker: SolanaClientUrlOrMoniker;
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
//# sourceMappingURL=solana-client-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-client-provider.d.ts","sourceRoot":"","sources":["../../src/solana-client-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAIlD,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,YAAY,GACf,EAAE;IACC,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,EAAE,wBAAwB,CAAC;CAC1C,qBAIA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { SolanaCluster } from '@wallet-ui/core';
|
|
2
|
-
export type SolanaClusterContextProps = Readonly<{
|
|
3
|
-
cluster: SolanaCluster;
|
|
4
|
-
clusters: SolanaCluster[];
|
|
5
|
-
setCluster?(cluster: `solana:${string}`): void;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const SolanaClusterContext: import("react").Context<Readonly<{
|
|
8
|
-
cluster: SolanaCluster;
|
|
9
|
-
clusters: SolanaCluster[];
|
|
10
|
-
setCluster?(cluster: `solana:${string}`): void;
|
|
11
|
-
}>>;
|
|
12
|
-
export declare function useSolanaCluster(): Readonly<{
|
|
13
|
-
cluster: SolanaCluster;
|
|
14
|
-
clusters: SolanaCluster[];
|
|
15
|
-
setCluster?(cluster: `solana:${string}`): void;
|
|
16
|
-
}>;
|
|
17
|
-
//# sourceMappingURL=solana-cluster-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-cluster-context.d.ts","sourceRoot":"","sources":["../../src/solana-cluster-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,MAAM,MAAM,yBAAyB,GAAG,QAAQ,CAAC;IAC7C,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,UAAU,CAAC,CAAC,OAAO,EAAE,UAAU,MAAM,EAAE,GAAG,IAAI,CAAC;CAClD,CAAC,CAAC;AAEH,eAAO,MAAM,oBAAoB;aALpB,aAAa;cACZ,aAAa,EAAE;yBACJ,UAAU,MAAM,EAAE,GAAG,IAAI;GAG2D,CAAC;AAE9G,wBAAgB,gBAAgB;aAPnB,aAAa;cACZ,aAAa,EAAE;yBACJ,UAAU,MAAM,EAAE,GAAG,IAAI;GAOjD"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SolanaCluster } from '@wallet-ui/core';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
export declare function SolanaClusterProvider({ clusters, children }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
clusters: SolanaCluster[];
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
//# sourceMappingURL=solana-cluster-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-cluster-provider.d.ts","sourceRoot":"","sources":["../../src/solana-cluster-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAOlD,wBAAgB,qBAAqB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAC;CAAE,qBAiChH"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { SolanaCluster } from '@wallet-ui/core';
|
|
2
|
-
import React, { ReactNode } from 'react';
|
|
3
|
-
export declare function SolanaProvider({ clusters, children }: {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
clusters: SolanaCluster[];
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
//# sourceMappingURL=solana-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-provider.d.ts","sourceRoot":"","sources":["../../src/solana-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQzC,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,QAAQ,EAAE,aAAa,EAAE,CAAA;CAAE,qBAUxG"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
-
export type SelectedWalletAccountState = UiWalletAccount | undefined;
|
|
4
|
-
export declare const SolanaWalletContext: import("react").Context<readonly [selectedWalletAccount: SelectedWalletAccountState, setSelectedWalletAccount: Dispatch<SetStateAction<SelectedWalletAccountState>>]>;
|
|
5
|
-
export declare function useSolanaWallet(): readonly [selectedWalletAccount: SelectedWalletAccountState, setSelectedWalletAccount: Dispatch<SetStateAction<SelectedWalletAccountState>>];
|
|
6
|
-
export declare function useSolanaWalletAddress(): import("gill").Address<string> | null;
|
|
7
|
-
//# sourceMappingURL=solana-wallet-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-context.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAiB,QAAQ,EAAE,cAAc,EAAc,MAAM,OAAO,CAAC;AAE5E,MAAM,MAAM,0BAA0B,GAAG,eAAe,GAAG,SAAS,CAAC;AAErE,eAAO,MAAM,mBAAmB,uKAU9B,CAAC;AAEH,wBAAgB,eAAe,iJAE9B;AAED,wBAAgB,sBAAsB,0CAMrC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-provider.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAY,SAAS,EAAgD,MAAM,OAAO,CAAC;AAiCjG;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,qBAsDzE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-button.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,wBAAgB,oBAAoB,sBAInC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { UiWallet, UiWalletAccount } from '@wallet-standard/react';
|
|
2
|
-
import * as dialog from '@zag-js/dialog';
|
|
3
|
-
import * as menu from '@zag-js/menu';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export interface SolanaWalletUiProviderContext {
|
|
6
|
-
change: () => void;
|
|
7
|
-
connectAccount: (wallet: UiWallet | undefined, account: UiWalletAccount | undefined) => void;
|
|
8
|
-
connected: boolean;
|
|
9
|
-
copy: () => Promise<void>;
|
|
10
|
-
dialogApi: ReturnType<typeof dialog.connect>;
|
|
11
|
-
disconnect: () => void;
|
|
12
|
-
menuApi: ReturnType<typeof menu.connect>;
|
|
13
|
-
wallet: UiWallet | undefined;
|
|
14
|
-
walletAccount: UiWalletAccount | undefined;
|
|
15
|
-
wallets: readonly UiWallet[];
|
|
16
|
-
}
|
|
17
|
-
export declare const SolanaWalletUiContext: React.Context<SolanaWalletUiProviderContext>;
|
|
18
|
-
export declare function useSolanaWalletUi(): SolanaWalletUiProviderContext;
|
|
19
|
-
//# sourceMappingURL=solana-wallet-ui-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-context.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-context.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,6BAA6B;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,cAAc,EAAE,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,EAAE,OAAO,EAAE,eAAe,GAAG,SAAS,KAAK,IAAI,CAAC;IAC7F,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,SAAS,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;IAC7C,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,OAAO,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;IACzC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,aAAa,EAAE,eAAe,GAAG,SAAS,CAAC;IAC3C,OAAO,EAAE,SAAS,QAAQ,EAAE,CAAC;CAChC;AAED,eAAO,MAAM,qBAAqB,8CAEjC,CAAC;AAEF,wBAAgB,iBAAiB,kCAEhC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React, { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
export type WalletUiDialogTriggerProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
3
|
-
export declare function SolanaWalletUiDialogTrigger(props: WalletUiDialogTriggerProps): React.JSX.Element;
|
|
4
|
-
//# sourceMappingURL=solana-wallet-ui-dialog-trigger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-dialog-trigger.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-dialog-trigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIpD,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;AAEjF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,0BAA0B,qBAS5E"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import './solana-wallet-ui-dialog.css';
|
|
2
|
-
import { UiWallet } from '@wallet-standard/react';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export declare function SolanaWalletUiDialog({ description, title }: {
|
|
5
|
-
description?: string;
|
|
6
|
-
title?: string;
|
|
7
|
-
}): React.JSX.Element | null;
|
|
8
|
-
export declare function SolanaWalletUiDialogList(): React.JSX.Element;
|
|
9
|
-
export declare function SolanaWalletUiDialogListItem({ wallet }: {
|
|
10
|
-
wallet: UiWallet;
|
|
11
|
-
}): React.JSX.Element;
|
|
12
|
-
//# sourceMappingURL=solana-wallet-ui-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-dialog.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,+BAA+B,CAAC;AAEvC,OAAO,EAAE,QAAQ,EAA6B,MAAM,wBAAwB,CAAC;AAE7E,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,wBAAgB,oBAAoB,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,4BAuCpG;AAED,wBAAgB,wBAAwB,sBAUvC;AAED,wBAAgB,4BAA4B,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,QAAQ,CAAA;CAAE,qBAqD5E"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import './solana-wallet-ui-dropdown.css';
|
|
2
|
-
import React, { ButtonHTMLAttributes } from 'react';
|
|
3
|
-
export interface AppMenuItem {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
handler: () => Promise<void> | void;
|
|
6
|
-
label: string;
|
|
7
|
-
value: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function SolanaWalletUiDropdown(): React.JSX.Element;
|
|
10
|
-
export declare function AppMenuButton(props: ButtonHTMLAttributes<HTMLButtonElement>): React.JSX.Element;
|
|
11
|
-
//# sourceMappingURL=solana-wallet-ui-dropdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-dropdown.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,iCAAiC,CAAC;AAEzC,OAAO,KAAK,EAAE,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAIpD,MAAM,WAAW,WAAW;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,sBAAsB,sBA6DrC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,CAAC,qBAE3E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"solana-wallet-ui-provider.d.ts","sourceRoot":"","sources":["../../src/solana-wallet-ui-provider.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA4B,MAAM,OAAO,CAAC;AAKnE,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,qBAsDpE"}
|