fare-privy-core 1.7.9 → 1.8.0
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 -4
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/WalletOverview.d.ts +1 -3
- package/dist/src/components/WalletOverview.d.ts.map +1 -1
- package/dist/src/components/WalletOverview.js +2 -2
- package/dist/src/components/WalletOverview.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,8 +47,6 @@ import { WalletOverview } from "@zynkah/privy-lib";
|
|
|
47
47
|
}}
|
|
48
48
|
onClick={() => setWalletModalOpen(true)}
|
|
49
49
|
fallbackIcon="/icons/default-wallet.svg"
|
|
50
|
-
isTabletScreen={false}
|
|
51
|
-
isMobileScreen={true}
|
|
52
50
|
/>
|
|
53
51
|
```
|
|
54
52
|
|
|
@@ -77,8 +75,7 @@ import { WalletOverview } from "@zynkah/privy-lib";
|
|
|
77
75
|
| `activeWallet` | `{ meta: { name: string, icon?: string } }` | The wallet object with metadata including name and optional icon URL. |
|
|
78
76
|
| `onClick` | `() => void` | Optional click handler for the component. |
|
|
79
77
|
| `fallbackIcon` | `string` | Optional fallback icon URL if `activeWallet.meta.icon` is not provided. |
|
|
80
|
-
|
|
81
|
-
| `isMobileScreen`| `boolean` | Optional. If true, shows the wallet name on mobile screens. |
|
|
78
|
+
|
|
82
79
|
|
|
83
80
|
---
|
|
84
81
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* fare-privy-core - v1.
|
|
2
|
+
* fare-privy-core - v1.8.0 - Reliable Micro Hooks
|
|
3
3
|
* Proven wallet patterns with simplified balance fetching and focused micro-hooks architecture.
|
|
4
4
|
*/
|
|
5
5
|
export { PrivyProvider, type PrivyProviderProps } from "./PrivyProviderTest";
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,6 @@ export interface WalletOverviewProps {
|
|
|
7
7
|
};
|
|
8
8
|
onClick?: () => void;
|
|
9
9
|
fallbackIcon?: string;
|
|
10
|
-
isTabletScreen?: boolean;
|
|
11
|
-
isMobileScreen?: boolean;
|
|
12
10
|
}
|
|
13
|
-
export declare const WalletOverview: ({ activeWallet, onClick, fallbackIcon,
|
|
11
|
+
export declare const WalletOverview: ({ activeWallet, onClick, fallbackIcon, }: WalletOverviewProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
12
|
//# sourceMappingURL=WalletOverview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletOverview.d.ts","sourceRoot":"","sources":["../../../src/components/WalletOverview.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletOverview.d.ts","sourceRoot":"","sources":["../../../src/components/WalletOverview.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE;QACZ,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;KACH,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAuCD,eAAO,MAAM,cAAc,GAAI,0CAI5B,mBAAmB,4CAarB,CAAC"}
|
|
@@ -37,10 +37,10 @@ const SWalletOverview = styled.div `
|
|
|
37
37
|
text-wrap: nowrap;
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
|
-
export const WalletOverview = ({ activeWallet, onClick, fallbackIcon,
|
|
40
|
+
export const WalletOverview = ({ activeWallet, onClick, fallbackIcon, }) => {
|
|
41
41
|
const walletIcon = useMemo(() => {
|
|
42
42
|
return activeWallet?.meta.icon || fallbackIcon;
|
|
43
43
|
}, [activeWallet, fallbackIcon]);
|
|
44
|
-
return (_jsxs(SWalletOverview, { onClick: onClick, children: [walletIcon && (_jsx("img", { alt: activeWallet?.meta.name || "wallet", src: walletIcon })),
|
|
44
|
+
return (_jsxs(SWalletOverview, { onClick: onClick, children: [walletIcon && (_jsx("img", { alt: activeWallet?.meta.name || "wallet", src: walletIcon })), _jsx("span", { children: activeWallet?.meta.name })] }));
|
|
45
45
|
};
|
|
46
46
|
//# sourceMappingURL=WalletOverview.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WalletOverview.js","sourceRoot":"","sources":["../../../src/components/WalletOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"WalletOverview.js","sourceRoot":"","sources":["../../../src/components/WalletOverview.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAc3C,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCjC,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,YAAY,EACZ,OAAO,EACP,YAAY,GACQ,EAAE,EAAE;IACxB,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,EAAE;QAC9B,OAAO,YAAY,EAAE,IAAI,CAAC,IAAI,IAAI,YAAY,CAAC;IACjD,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAEjC,OAAO,CACL,MAAC,eAAe,IAAC,OAAO,EAAE,OAAO,aAC9B,UAAU,IAAI,CACb,cAAK,GAAG,EAAE,YAAY,EAAE,IAAI,CAAC,IAAI,IAAI,QAAQ,EAAE,GAAG,EAAE,UAAU,GAAI,CACnE,EACD,yBAAO,YAAY,EAAE,IAAI,CAAC,IAAI,GAAQ,IACtB,CACnB,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fare-privy-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A comprehensive React library for Privy authentication and wallet management with casino gaming features, featuring reliable micro-hooks based on proven patterns",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"privy",
|