@txnlab/use-wallet-ui-react 0.2.0 → 0.2.2
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/LICENSE +1 -1
- package/README.md +5 -4
- package/dist/cjs/index.cjs +5 -26
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +3264 -3543
- package/dist/esm/index.js.map +1 -1
- package/dist/style.css +909 -916
- package/dist/types/index.d.cts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/package.json +2 -2
package/dist/types/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { default as default_3 } from 'algosdk';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { ReactElement } from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
@@ -14,7 +14,7 @@ declare interface ConnectedWalletButtonProps extends default_2.ButtonHTMLAttribu
|
|
|
14
14
|
style?: default_2.CSSProperties;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export declare function ConnectedWalletMenu(props: ConnectedWalletMenuProps):
|
|
17
|
+
export declare function ConnectedWalletMenu(props: ConnectedWalletMenuProps): JSX_2.Element;
|
|
18
18
|
|
|
19
19
|
declare interface ConnectedWalletMenuProps {
|
|
20
20
|
children?: RefableElement_2;
|
|
@@ -26,7 +26,7 @@ declare interface ConnectWalletButtonProps extends default_2.ButtonHTMLAttribute
|
|
|
26
26
|
style?: default_2.CSSProperties;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export declare function ConnectWalletMenu({ children }: ConnectWalletMenuProps):
|
|
29
|
+
export declare function ConnectWalletMenu({ children }: ConnectWalletMenuProps): JSX_2.Element;
|
|
30
30
|
|
|
31
31
|
declare interface ConnectWalletMenuProps {
|
|
32
32
|
children?: RefableElement;
|
|
@@ -38,7 +38,7 @@ declare interface ConnectWalletMenuProps {
|
|
|
38
38
|
* - Checks availability on images.nf.domains and falls back to IPFS gateway if needed
|
|
39
39
|
* - Caches results using TanStack Query
|
|
40
40
|
*/
|
|
41
|
-
export declare function NfdAvatar({ nfd, alt, className, size, fallback, lightOnly, }: NfdAvatarProps):
|
|
41
|
+
export declare function NfdAvatar({ nfd, alt, className, size, fallback, lightOnly, }: NfdAvatarProps): JSX_2.Element;
|
|
42
42
|
|
|
43
43
|
declare interface NfdAvatarProps {
|
|
44
44
|
/** NFD record containing avatar data */
|
|
@@ -113,9 +113,9 @@ export declare function useNfd(options?: {
|
|
|
113
113
|
*/
|
|
114
114
|
export declare function useWalletUI(): WalletUIContextType;
|
|
115
115
|
|
|
116
|
-
export declare function WalletButton():
|
|
116
|
+
export declare function WalletButton(): JSX_2.Element;
|
|
117
117
|
|
|
118
|
-
export declare function WalletList({ wallets, handleWalletClick }: WalletListProps):
|
|
118
|
+
export declare function WalletList({ wallets, handleWalletClick }: WalletListProps): JSX_2.Element;
|
|
119
119
|
|
|
120
120
|
declare interface WalletListProps {
|
|
121
121
|
wallets: Wallet[];
|
|
@@ -134,7 +134,7 @@ declare interface WalletUIContextType {
|
|
|
134
134
|
* Automatically prefetches data for all accounts in connected wallets for smoother
|
|
135
135
|
* account switching experience.
|
|
136
136
|
*/
|
|
137
|
-
export declare function WalletUIProvider({ children, queryClient: externalQueryClient, enablePrefetching, prefetchNfdView, }: WalletUIProviderProps):
|
|
137
|
+
export declare function WalletUIProvider({ children, queryClient: externalQueryClient, enablePrefetching, prefetchNfdView, }: WalletUIProviderProps): JSX_2.Element;
|
|
138
138
|
|
|
139
139
|
declare interface WalletUIProviderProps {
|
|
140
140
|
children: ReactNode;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { default as default_3 } from 'algosdk';
|
|
3
|
-
import { JSX } from 'react/jsx-runtime';
|
|
3
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { ReactElement } from 'react';
|
|
6
6
|
import { ReactNode } from 'react';
|
|
@@ -14,7 +14,7 @@ declare interface ConnectedWalletButtonProps extends default_2.ButtonHTMLAttribu
|
|
|
14
14
|
style?: default_2.CSSProperties;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
export declare function ConnectedWalletMenu(props: ConnectedWalletMenuProps):
|
|
17
|
+
export declare function ConnectedWalletMenu(props: ConnectedWalletMenuProps): JSX_2.Element;
|
|
18
18
|
|
|
19
19
|
declare interface ConnectedWalletMenuProps {
|
|
20
20
|
children?: RefableElement_2;
|
|
@@ -26,7 +26,7 @@ declare interface ConnectWalletButtonProps extends default_2.ButtonHTMLAttribute
|
|
|
26
26
|
style?: default_2.CSSProperties;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
export declare function ConnectWalletMenu({ children }: ConnectWalletMenuProps):
|
|
29
|
+
export declare function ConnectWalletMenu({ children }: ConnectWalletMenuProps): JSX_2.Element;
|
|
30
30
|
|
|
31
31
|
declare interface ConnectWalletMenuProps {
|
|
32
32
|
children?: RefableElement;
|
|
@@ -38,7 +38,7 @@ declare interface ConnectWalletMenuProps {
|
|
|
38
38
|
* - Checks availability on images.nf.domains and falls back to IPFS gateway if needed
|
|
39
39
|
* - Caches results using TanStack Query
|
|
40
40
|
*/
|
|
41
|
-
export declare function NfdAvatar({ nfd, alt, className, size, fallback, lightOnly, }: NfdAvatarProps):
|
|
41
|
+
export declare function NfdAvatar({ nfd, alt, className, size, fallback, lightOnly, }: NfdAvatarProps): JSX_2.Element;
|
|
42
42
|
|
|
43
43
|
declare interface NfdAvatarProps {
|
|
44
44
|
/** NFD record containing avatar data */
|
|
@@ -113,9 +113,9 @@ export declare function useNfd(options?: {
|
|
|
113
113
|
*/
|
|
114
114
|
export declare function useWalletUI(): WalletUIContextType;
|
|
115
115
|
|
|
116
|
-
export declare function WalletButton():
|
|
116
|
+
export declare function WalletButton(): JSX_2.Element;
|
|
117
117
|
|
|
118
|
-
export declare function WalletList({ wallets, handleWalletClick }: WalletListProps):
|
|
118
|
+
export declare function WalletList({ wallets, handleWalletClick }: WalletListProps): JSX_2.Element;
|
|
119
119
|
|
|
120
120
|
declare interface WalletListProps {
|
|
121
121
|
wallets: Wallet[];
|
|
@@ -134,7 +134,7 @@ declare interface WalletUIContextType {
|
|
|
134
134
|
* Automatically prefetches data for all accounts in connected wallets for smoother
|
|
135
135
|
* account switching experience.
|
|
136
136
|
*/
|
|
137
|
-
export declare function WalletUIProvider({ children, queryClient: externalQueryClient, enablePrefetching, prefetchNfdView, }: WalletUIProviderProps):
|
|
137
|
+
export declare function WalletUIProvider({ children, queryClient: externalQueryClient, enablePrefetching, prefetchNfdView, }: WalletUIProviderProps): JSX_2.Element;
|
|
138
138
|
|
|
139
139
|
declare interface WalletUIProviderProps {
|
|
140
140
|
children: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txnlab/use-wallet-ui-react",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "React components for use-wallet UI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/cjs/index.cjs",
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"lint": "eslint \"**/*.{js,jsx,ts,tsx}\"",
|
|
85
85
|
"format": "prettier --write .",
|
|
86
86
|
"typecheck": "tsc --noEmit",
|
|
87
|
-
"generate:css": "npx @tailwindcss/cli -c ./tailwind.config.js -i ./src/input.css -o ./dist/style.css"
|
|
87
|
+
"generate:css": "npx @tailwindcss/cli -c ./tailwind.config.js -i ./src/input.css -o ./dist/style.css && node ./scripts/post-process-css.js"
|
|
88
88
|
}
|
|
89
89
|
}
|