fare-privy-core 1.7.8 → 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.
Files changed (109) hide show
  1. package/README.md +105 -26
  2. package/dist/PrivyProviderTest.d.ts +1 -1
  3. package/dist/PrivyProviderTest.d.ts.map +1 -1
  4. package/dist/PrivyProviderTest.js +9 -43
  5. package/dist/PrivyProviderTest.js.map +1 -1
  6. package/dist/index.d.ts +44 -6
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +55 -6
  9. package/dist/index.js.map +1 -1
  10. package/dist/src/components/WalletOverview.d.ts +12 -0
  11. package/dist/src/components/WalletOverview.d.ts.map +1 -0
  12. package/dist/src/components/WalletOverview.js +46 -0
  13. package/dist/src/components/WalletOverview.js.map +1 -0
  14. package/dist/src/components/shared/Button/index.d.ts +22 -0
  15. package/dist/src/components/shared/Button/index.d.ts.map +1 -0
  16. package/dist/src/components/shared/Button/index.js +16 -0
  17. package/dist/src/components/shared/Button/index.js.map +1 -0
  18. package/dist/src/components/shared/Button/style.d.ts +560 -0
  19. package/dist/src/components/shared/Button/style.d.ts.map +1 -0
  20. package/dist/src/components/shared/Button/style.js +249 -0
  21. package/dist/src/components/shared/Button/style.js.map +1 -0
  22. package/dist/src/components/shared/Modal/Card.d.ts +4 -0
  23. package/dist/src/components/shared/Modal/Card.d.ts.map +1 -0
  24. package/dist/src/components/shared/Modal/Card.js +30 -0
  25. package/dist/src/components/shared/Modal/Card.js.map +1 -0
  26. package/dist/src/components/shared/Modal/ModalFooter.d.ts +7 -0
  27. package/dist/src/components/shared/Modal/ModalFooter.d.ts.map +1 -0
  28. package/dist/src/components/shared/Modal/ModalFooter.js +10 -0
  29. package/dist/src/components/shared/Modal/ModalFooter.js.map +1 -0
  30. package/dist/src/components/shared/Modal/ModalHeader.d.ts +8 -0
  31. package/dist/src/components/shared/Modal/ModalHeader.d.ts.map +1 -0
  32. package/dist/src/components/shared/Modal/ModalHeader.js +30 -0
  33. package/dist/src/components/shared/Modal/ModalHeader.js.map +1 -0
  34. package/dist/src/components/shared/Modal/animations.d.ts +4 -0
  35. package/dist/src/components/shared/Modal/animations.d.ts.map +1 -0
  36. package/dist/src/components/shared/Modal/animations.js +26 -0
  37. package/dist/src/components/shared/Modal/animations.js.map +1 -0
  38. package/dist/src/components/shared/Modal/styles.d.ts +1625 -0
  39. package/dist/src/components/shared/Modal/styles.d.ts.map +1 -0
  40. package/dist/src/components/shared/Modal/styles.js +210 -0
  41. package/dist/src/components/shared/Modal/styles.js.map +1 -0
  42. package/dist/src/components/shared/Modal/types.d.ts +18 -0
  43. package/dist/src/components/shared/Modal/types.d.ts.map +1 -0
  44. package/dist/src/components/shared/Modal/types.js +2 -0
  45. package/dist/src/components/shared/Modal/types.js.map +1 -0
  46. package/dist/src/hooks/index.d.ts.map +1 -0
  47. package/dist/src/hooks/index.js.map +1 -0
  48. package/dist/src/hooks/useActiveWallet.d.ts +19 -0
  49. package/dist/src/hooks/useActiveWallet.d.ts.map +1 -0
  50. package/dist/{hooks → src/hooks}/useActiveWallet.js +15 -23
  51. package/dist/src/hooks/useActiveWallet.js.map +1 -0
  52. package/dist/src/hooks/useAuthActions.d.ts.map +1 -0
  53. package/dist/src/hooks/useAuthActions.js.map +1 -0
  54. package/dist/{hooks → src/hooks}/useConnectedWallets.d.ts +2 -2
  55. package/dist/src/hooks/useConnectedWallets.d.ts.map +1 -0
  56. package/dist/{hooks → src/hooks}/useConnectedWallets.js +10 -10
  57. package/dist/src/hooks/useConnectedWallets.js.map +1 -0
  58. package/dist/src/hooks/useIsAuthenticated.d.ts.map +1 -0
  59. package/dist/{hooks → src/hooks}/useIsAuthenticated.js +3 -3
  60. package/dist/src/hooks/useIsAuthenticated.js.map +1 -0
  61. package/dist/src/hooks/useWalletAddresses.d.ts.map +1 -0
  62. package/dist/src/hooks/useWalletAddresses.js +42 -0
  63. package/dist/src/hooks/useWalletAddresses.js.map +1 -0
  64. package/dist/{hooks → src/hooks}/useWalletBalance.d.ts +1 -1
  65. package/dist/src/hooks/useWalletBalance.d.ts.map +1 -0
  66. package/dist/src/hooks/useWalletBalance.js +147 -0
  67. package/dist/src/hooks/useWalletBalance.js.map +1 -0
  68. package/dist/src/modals/SelectWalletModal/index.d.ts +30 -0
  69. package/dist/src/modals/SelectWalletModal/index.d.ts.map +1 -0
  70. package/dist/src/modals/SelectWalletModal/index.js +68 -0
  71. package/dist/src/modals/SelectWalletModal/index.js.map +1 -0
  72. package/dist/src/modals/SelectWalletModal/styles.d.ts +3001 -0
  73. package/dist/src/modals/SelectWalletModal/styles.d.ts.map +1 -0
  74. package/dist/src/modals/SelectWalletModal/styles.js +137 -0
  75. package/dist/src/modals/SelectWalletModal/styles.js.map +1 -0
  76. package/dist/src/modals/SelectWalletModal/variants.d.ts +6 -0
  77. package/dist/src/modals/SelectWalletModal/variants.d.ts.map +1 -0
  78. package/dist/src/modals/SelectWalletModal/variants.js +59 -0
  79. package/dist/src/modals/SelectWalletModal/variants.js.map +1 -0
  80. package/dist/src/store/switchWallet.d.ts.map +1 -0
  81. package/dist/src/store/switchWallet.js.map +1 -0
  82. package/package.json +114 -98
  83. package/dist/farePrivy/store/switchWallet.d.ts.map +0 -1
  84. package/dist/farePrivy/store/switchWallet.js.map +0 -1
  85. package/dist/hooks/index.d.ts.map +0 -1
  86. package/dist/hooks/index.js.map +0 -1
  87. package/dist/hooks/useActiveWallet.d.ts +0 -24
  88. package/dist/hooks/useActiveWallet.d.ts.map +0 -1
  89. package/dist/hooks/useActiveWallet.js.map +0 -1
  90. package/dist/hooks/useAuthActions.d.ts.map +0 -1
  91. package/dist/hooks/useAuthActions.js.map +0 -1
  92. package/dist/hooks/useConnectedWallets.d.ts.map +0 -1
  93. package/dist/hooks/useConnectedWallets.js.map +0 -1
  94. package/dist/hooks/useIsAuthenticated.d.ts.map +0 -1
  95. package/dist/hooks/useIsAuthenticated.js.map +0 -1
  96. package/dist/hooks/useWalletAddresses.d.ts.map +0 -1
  97. package/dist/hooks/useWalletAddresses.js +0 -50
  98. package/dist/hooks/useWalletAddresses.js.map +0 -1
  99. package/dist/hooks/useWalletBalance.d.ts.map +0 -1
  100. package/dist/hooks/useWalletBalance.js +0 -99
  101. package/dist/hooks/useWalletBalance.js.map +0 -1
  102. /package/dist/{hooks → src/hooks}/index.d.ts +0 -0
  103. /package/dist/{hooks → src/hooks}/index.js +0 -0
  104. /package/dist/{hooks → src/hooks}/useAuthActions.d.ts +0 -0
  105. /package/dist/{hooks → src/hooks}/useAuthActions.js +0 -0
  106. /package/dist/{hooks → src/hooks}/useIsAuthenticated.d.ts +0 -0
  107. /package/dist/{hooks → src/hooks}/useWalletAddresses.d.ts +0 -0
  108. /package/dist/{farePrivy → src}/store/switchWallet.d.ts +0 -0
  109. /package/dist/{farePrivy → src}/store/switchWallet.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/modals/SelectWalletModal/styles.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa,6CAEzB,CAAC;AAEF,eAAO,MAAM,QAAQ;;CAEpB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,GAiBhC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,GAIzC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAerC,CAAC;AAEF,eAAO,MAAM,WAAW;eAA2B,OAAO;GAazD,CAAC;AAEF,eAAO,MAAM,yBAAyB;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, { css } from "styled-components";
2
+ import { motion } from "framer-motion";
3
+ export const FARE_GRADIENT = css `
4
+ background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
5
+ `;
6
+ export const deviceBP = {
7
+ sm: "max-width: 760px",
8
+ };
9
+ export const SSelectWalletModal = styled(motion.div) `
10
+ position: fixed;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ height: 100vh;
15
+ width: 100vw;
16
+ top: 0;
17
+ left: 0;
18
+ background: rgba(0, 0, 0, 0.48);
19
+ z-index: 999;
20
+ backdrop-filter: blur(4px);
21
+
22
+ @media (${deviceBP.sm}) {
23
+ align-items: flex-end;
24
+ height: 100svh;
25
+ }
26
+ `;
27
+ export const SGradientWalletModalContent = styled(motion.div) `
28
+ padding: 1px;
29
+ border-radius: 6px;
30
+ ${FARE_GRADIENT}
31
+ `;
32
+ export const SSelectWalletModalContent = styled.div `
33
+ background: #1a1a1a;
34
+ min-width: 300px;
35
+ border-radius: 6px;
36
+ overflow: hidden;
37
+ user-select: none;
38
+ .small-text {
39
+ font-size: 10px;
40
+ }
41
+
42
+ @media (${deviceBP.sm}) {
43
+ width: 99svw;
44
+ height: 60svh;
45
+ background: black;
46
+ }
47
+ `;
48
+ export const SWalletItem = styled.div `
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: space-between;
52
+ padding: 12px 16px;
53
+ background: ${({ $isActive }) => ($isActive ? "#222a3f" : "transparent")};
54
+ border-bottom: 1px solid #222a3f;
55
+ cursor: pointer;
56
+ transition: background 0.15s;
57
+
58
+ &:hover {
59
+ background: #23234a;
60
+ }
61
+ `;
62
+ export const SAccordionButtonContainer = styled.div `
63
+ display: flex;
64
+ align-items: center;
65
+ `;
66
+ export const SWalletInfo = styled.div `
67
+ display: flex;
68
+ flex-direction: column;
69
+ `;
70
+ export const SWalletAddress = styled.div `
71
+ font-size: 12px;
72
+ color: #aaa;
73
+ `;
74
+ export const SWalletName = styled.div `
75
+ font-size: 14px;
76
+ color: #fff;
77
+ font-weight: bold;
78
+ `;
79
+ export const SWalletIcon = styled.img `
80
+ height: 24px;
81
+ width: 24px;
82
+ margin-left: 12px;
83
+
84
+ &.large-icon {
85
+ height: 32px;
86
+ width: 32px;
87
+ }
88
+ `;
89
+ export const SAccordionButton = styled.button `
90
+ background: none;
91
+ border: none;
92
+ margin-left: 8px;
93
+ cursor: pointer;
94
+ transform: ${({ $isExpanded }) => $isExpanded ? "rotate(180deg)" : "rotate(0deg)"};
95
+ transition: transform 0.2s;
96
+ `;
97
+ export const SEmbeddedWalletsList = styled(motion.div) `
98
+ background: #181818;
99
+ padding: ${({ $isActive }) => ($isActive ? "6px 0" : "0")};
100
+ overflow: hidden;
101
+ `;
102
+ export const SWalletItemList = styled.div `
103
+ margin-bottom: 8px;
104
+ `;
105
+ export const SWalletHeader = styled.div `
106
+ font-size: 13px;
107
+ color: #aaa;
108
+ padding: 12px 16px 0 16px;
109
+ font-weight: 600;
110
+ `;
111
+ export const SEmbeddedWalletItem = styled.div `
112
+ display: flex;
113
+ align-items: center;
114
+ justify-content: space-between;
115
+ padding: 6px 16px;
116
+ border-bottom: 1px solid #23234a;
117
+
118
+ .wallet-info {
119
+ display: flex;
120
+ flex-direction: column;
121
+ gap: 2px;
122
+ }
123
+ `;
124
+ export const SUnlinkButton = styled.button `
125
+ background: none;
126
+ border: none;
127
+ color: #f87171;
128
+ font-size: 11px;
129
+ cursor: pointer;
130
+ padding: 2px 6px;
131
+ border-radius: 4px;
132
+
133
+ &:hover {
134
+ background: #2d2d2d;
135
+ }
136
+ `;
137
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/modals/SelectWalletModal/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEvC,MAAM,CAAC,MAAM,aAAa,GAA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,cAAc;;CAElD,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAwB;;aAEjE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;;CAE1D,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;CAExC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAKtC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;CAY5C,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;;;;;CAYzC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Variants } from "framer-motion";
2
+ export declare const modalVariants: Variants;
3
+ export declare const modalContentVariants: Variants;
4
+ export declare const mobileModalContentVariants: Variants;
5
+ export declare const embeddedWalletsListVariants: Variants;
6
+ //# sourceMappingURL=variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/modals/SelectWalletModal/variants.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,eAAO,MAAM,aAAa,EAAE,QAU3B,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,QAUlC,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,QAqBxC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,QAazC,CAAA"}
@@ -0,0 +1,59 @@
1
+ export const modalVariants = {
2
+ initial: {
3
+ opacity: 0,
4
+ },
5
+ animate: {
6
+ opacity: 1,
7
+ },
8
+ exit: {
9
+ opacity: 0,
10
+ },
11
+ };
12
+ export const modalContentVariants = {
13
+ initial: {
14
+ y: -60,
15
+ },
16
+ animate: {
17
+ y: 0,
18
+ },
19
+ exit: {
20
+ y: -60,
21
+ },
22
+ };
23
+ export const mobileModalContentVariants = {
24
+ initial: {
25
+ y: '110%',
26
+ opacity: 1,
27
+ },
28
+ animate: {
29
+ y: 0,
30
+ opacity: 1,
31
+ transition: {
32
+ damping: 25,
33
+ type: 'spring',
34
+ },
35
+ },
36
+ exit: {
37
+ y: '110%',
38
+ opacity: 0.8,
39
+ transition: {
40
+ damping: 25,
41
+ type: 'spring',
42
+ },
43
+ },
44
+ };
45
+ export const embeddedWalletsListVariants = {
46
+ open: {
47
+ opacity: 1,
48
+ height: 'auto',
49
+ paddingTop: 6,
50
+ paddingBottom: 6,
51
+ },
52
+ closed: {
53
+ opacity: 0,
54
+ height: 0,
55
+ paddingTop: 0,
56
+ paddingBottom: 0,
57
+ },
58
+ };
59
+ //# sourceMappingURL=variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"variants.js","sourceRoot":"","sources":["../../../../src/modals/SelectWalletModal/variants.tsx"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,aAAa,GAAa;IACrC,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;KACX;IACD,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;KACX;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC;KACX;CACF,CAAA;AAED,MAAM,CAAC,MAAM,oBAAoB,GAAa;IAC5C,OAAO,EAAE;QACP,CAAC,EAAE,CAAC,EAAE;KACP;IACD,OAAO,EAAE;QACP,CAAC,EAAE,CAAC;KACL;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,CAAC,EAAE;KACP;CACF,CAAA;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAa;IAClD,OAAO,EAAE;QACP,CAAC,EAAE,MAAM;QACT,OAAO,EAAE,CAAC;KACX;IACD,OAAO,EAAE;QACP,CAAC,EAAE,CAAC;QACJ,OAAO,EAAE,CAAC;QACV,UAAU,EAAE;YACV,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;KACF;IACD,IAAI,EAAE;QACJ,CAAC,EAAE,MAAM;QACT,OAAO,EAAE,GAAG;QACZ,UAAU,EAAE;YACV,OAAO,EAAE,EAAE;YACX,IAAI,EAAE,QAAQ;SACf;KACF;CACF,CAAA;AAED,MAAM,CAAC,MAAM,2BAA2B,GAAa;IACnD,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,CAAC;QACb,aAAa,EAAE,CAAC;KACjB;IACD,MAAM,EAAE;QACN,OAAO,EAAE,CAAC;QACV,MAAM,EAAE,CAAC;QACT,UAAU,EAAE,CAAC;QACb,aAAa,EAAE,CAAC;KACjB;CACF,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchWallet.d.ts","sourceRoot":"","sources":["../../../src/store/switchWallet.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;uBACT,OAAO;2BACH,MAAM;CAI7B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchWallet.js","sourceRoot":"","sources":["../../../src/store/switchWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAGnC;IACD,iBAAiB,EAAE,KAAK;IACxB,qBAAqB,EAAE,EAAE;CAC1B,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,98 +1,114 @@
1
- {
2
- "name": "fare-privy-core",
3
- "version": "1.7.8",
4
- "description": "A lightweight React library for Privy authentication and wallet management, designed for casino and gaming applications on Ethereum and Solana. Reliable micro-hooks, full TypeScript, and tree-shakable.",
5
- "keywords": [
6
- "privy",
7
- "wallet",
8
- "authentication",
9
- "web3",
10
- "react",
11
- "crypto",
12
- "casino",
13
- "gaming",
14
- "blockchain",
15
- "ethereum",
16
- "solana"
17
- ],
18
- "homepage": "https://github.com/farePrivy/fare-privy-core#readme",
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/farePrivy/fare-privy-core.git"
22
- },
23
- "bugs": {
24
- "url": "https://github.com/farePrivy/fare-privy-core/issues"
25
- },
26
- "license": "ISC",
27
- "author": {
28
- "name": "zynkah",
29
- "url": "https://github.com/Zynkah"
30
- },
31
- "files": [
32
- "dist",
33
- "README.md",
34
- "LICENSE"
35
- ],
36
- "type": "module",
37
- "main": "dist/index.js",
38
- "module": "dist/index.js",
39
- "types": "dist/index.d.ts",
40
- "exports": {
41
- ".": {
42
- "types": "./dist/index.d.ts",
43
- "import": "./dist/index.js",
44
- "default": "./dist/index.js"
45
- }
46
- },
47
- "scripts": {
48
- "build": "tsc",
49
- "prebuild": "rm -rf dist || rmdir /s /q dist || echo 'Dist folder cleared'",
50
- "postbuild": "echo 'Build completed successfully'",
51
- "dev": "tsc --watch",
52
- "test": "jest",
53
- "test:watch": "jest --watch",
54
- "test:coverage": "jest --coverage",
55
- "prepublishOnly": "pnpm run build",
56
- "lint": "echo 'No linting configured'",
57
- "type-check": "tsc --noEmit",
58
- "clean": "rm -rf dist || rmdir /s /q dist || echo 'Cleaned'",
59
- "version": "pnpm run build && git add .",
60
- "postversion": "git push && git push --tags"
61
- },
62
- "dependencies": {
63
- "@privy-io/wagmi": "^0.2.12",
64
- "@sentry/react": "^7.99.0",
65
- "axios": "^1.6.2",
66
- "ethers": "^6.15.0",
67
- "fare-privy-core": "^1.4.0",
68
- "framer-motion": "^10.16.16",
69
- "numeral": "^2.0.6",
70
- "react-countup": "^6.5.0",
71
- "styled-components": "^5.3.0",
72
- "valtio": "^1.12.0 <2.0.0",
73
- "viem": "^2.26.2",
74
- "wagmi": "^2.12.0"
75
- },
76
- "peerDependencies": {
77
- "@privy-io/react-auth": "^1.0.0",
78
- "framer-motion": ">=6.0.0",
79
- "react": "^18.3.1",
80
- "react-dom": "^18.3.1",
81
- "styled-components": ">=5.0.0 <6.0.0",
82
- "valtio": ">=1.0.0 <2.0.0"
83
- },
84
- "devDependencies": {
85
- "@testing-library/jest-dom": "^6.9.1",
86
- "@testing-library/react": "^16.3.0",
87
- "@testing-library/user-event": "^14.6.1",
88
- "@types/jest": "^30.0.0",
89
- "@types/node": "^20.10.5",
90
- "@types/react": "^18.2.45",
91
- "@types/react-dom": "^18.2.18",
92
- "@types/styled-components": "^5.1.0",
93
- "jest": "^30.2.0",
94
- "jest-environment-jsdom": "^30.2.0",
95
- "ts-jest": "^29.4.5",
96
- "typescript": "^5.3.3"
97
- }
98
- }
1
+ {
2
+ "name": "fare-privy-core",
3
+ "version": "1.8.0",
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
+ "keywords": [
6
+ "privy",
7
+ "wallet",
8
+ "authentication",
9
+ "web3",
10
+ "react",
11
+ "crypto",
12
+ "casino",
13
+ "gaming",
14
+ "blockchain",
15
+ "ethereum",
16
+ "solana"
17
+ ],
18
+ "homepage": "https://github.com/farePrivy/fare-privy-core#readme",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/farePrivy/fare-privy-core.git"
22
+ },
23
+ "bugs": {
24
+ "url": "https://github.com/farePrivy/fare-privy-core/issues"
25
+ },
26
+ "license": "ISC",
27
+ "author": {
28
+ "name": "zynkah",
29
+ "url": "https://github.com/Zynkah"
30
+ },
31
+ "files": [
32
+ "dist",
33
+ "README.md",
34
+ "LICENSE"
35
+ ],
36
+ "type": "module",
37
+ "main": "dist/index.js",
38
+ "module": "dist/index.js",
39
+ "types": "dist/index.d.ts",
40
+ "exports": {
41
+ ".": {
42
+ "types": "./dist/index.d.ts",
43
+ "import": "./dist/index.js",
44
+ "default": "./dist/index.js"
45
+ }
46
+ },
47
+ "scripts": {
48
+ "build": "tsc",
49
+ "prebuild": "rm -rf dist || rmdir /s /q dist || echo 'Dist folder cleared'",
50
+ "postbuild": "echo 'Build completed successfully'",
51
+ "dev": "tsc --watch",
52
+ "test": "jest",
53
+ "prepublishOnly": "npm run build",
54
+ "test:watch": "jest --watch",
55
+ "test:coverage": "jest --coverage",
56
+ "lint": "echo 'No linting configured'",
57
+ "type-check": "tsc --noEmit",
58
+ "clean": "rm -rf dist || rmdir /s /q dist || echo 'Cleaned'",
59
+ "version": "pnpm run build && git add .",
60
+ "postversion": "git push && git push --tags"
61
+ },
62
+ "dependencies": {
63
+ "@privy-io/wagmi": "^0.2.12",
64
+ "@sentry/react": "^7.99.0",
65
+ "axios": "^1.6.2",
66
+ "framer-motion": "^10.16.16",
67
+ "numeral": "^2.0.6",
68
+ "react-countup": "^6.5.0",
69
+ "styled-components": "6.1.1",
70
+ "viem": "^2.26.2",
71
+ "wagmi": "^2.12.0",
72
+ "@biconomy/sdk": "^0.0.29",
73
+ "@ethersproject/abi": "^5.7.0",
74
+ "@ethersproject/providers": "^5.7.2",
75
+ "ethers": "^5.7.2",
76
+ "react-number-format": "^5.4.4",
77
+ "react-slider": "^2.0.6",
78
+ "react": "^18.3.1",
79
+ "valtio": ">=1.0.0 <2.0.0",
80
+ "@testing-library/react": "^16.3.0",
81
+ "@testing-library/user-event": "^14.6.1",
82
+ "@types/jest": "^30.0.0",
83
+ "@types/node": "^20.10.5",
84
+ "@types/react": "^18.2.45",
85
+ "@types/react-dom": "^18.2.18",
86
+ "@types/styled-components": "^5.1.0",
87
+ "jest": "^30.2.0",
88
+ "jest-environment-jsdom": "^30.2.0",
89
+ "ts-jest": "^29.4.5",
90
+ "typescript": "^5.3.3"
91
+ },
92
+ "peerDependencies": {
93
+ "@privy-io/react-auth": "^1.0.0",
94
+ "framer-motion": ">=6.0.0",
95
+ "react": ">=16.8.0",
96
+ "react-dom": ">=16.8.0",
97
+ "styled-components": ">=5.0.0",
98
+ "valtio": ">=1.0.0"
99
+ },
100
+ "devDependencies": {
101
+ "@testing-library/jest-dom": "^6.1.4",
102
+ "@testing-library/react": "^14.2.1",
103
+ "@testing-library/user-event": "^14.5.2",
104
+ "@types/jest": "^29.5.12",
105
+ "@types/node": "^20.11.30",
106
+ "@types/react": "^18.2.62",
107
+ "@types/react-dom": "^18.2.19",
108
+ "@types/styled-components": "^5.1.34",
109
+ "jest": "^29.7.0",
110
+ "jest-environment-jsdom": "^29.7.0",
111
+ "ts-jest": "^29.1.2",
112
+ "typescript": "^5.4.5"
113
+ }
114
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchWallet.d.ts","sourceRoot":"","sources":["../../../farePrivy/store/switchWallet.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;uBACT,OAAO;2BACH,MAAM;CAI7B,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchWallet.js","sourceRoot":"","sources":["../../../farePrivy/store/switchWallet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAGnC;IACD,iBAAiB,EAAE,KAAK;IACxB,qBAAqB,EAAE,EAAE;CAC1B,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../hooks/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,2CAA2C;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,gDAAgD;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,iCAAiC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;;;;;;;;;;;GAcG"}
@@ -1,24 +0,0 @@
1
- /**
2
- * useActiveWallet - Active wallet management (previous stable version)
3
- * Based on the working pattern from your casino app
4
- */
5
- import { type ConnectedWallet } from "@privy-io/react-auth";
6
- interface EvmWallet extends ConnectedWallet {
7
- walletType: "evm";
8
- getEthereumProvider: () => Promise<any>;
9
- }
10
- interface SolanaWallet extends ConnectedWallet {
11
- walletType: "solana";
12
- getSolanaProvider: () => Promise<any>;
13
- }
14
- export declare function useActiveWallet(): {
15
- activeWallet: EvmWallet | SolanaWallet;
16
- isWalletAuthed: boolean;
17
- walletAddress: string;
18
- ready: boolean;
19
- authenticated: boolean;
20
- readyAndAuth: boolean;
21
- wallets: (ConnectedWallet | EvmWallet)[];
22
- };
23
- export {};
24
- //# sourceMappingURL=useActiveWallet.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useActiveWallet.d.ts","sourceRoot":"","sources":["../../hooks/useActiveWallet.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAGL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAG9B,UAAU,SAAU,SAAQ,eAAe;IACzC,UAAU,EAAE,KAAK,CAAC;IAClB,mBAAmB,EAAE,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC;CACzC;AAED,UAAU,YAAa,SAAQ,eAAe;IAC5C,UAAU,EAAE,QAAQ,CAAC;IACrB,iBAAiB,EAA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AAO,CAAC,CAAC,CAAC,CAAC;QACrB,IAAK,CAAe,CAAC,UAAU,KAAK,KAAK;YAAE,OAAO,CAAc,CAAC;QACjE,IAAK,CAAkB,CAAC,UAAU,KAAK,QAAQ;YAAE,OAAO,CAAiB,CAAC;QAC1E,OAAO,IAAI,CAAC;IACd,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,OAAO,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IACjF,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC;IAC5E,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,aAAa,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAEnF,OAAO,OAAO,CACZ,GAAG,EAAE,CAAC,CAAC;QACL,YAAY;QACZ,cAAc;QACd,aAAa;QACb,KAAK;QACL,aAAa;QACb,YAAY;QACZ,OAAO;KACR,CAAC,EACF;QACE,YAAY;QACZ,cAAc;QACd,aAAa;QACb,KAAK;QACL,aAAa;QACb,YAAY;QACZ,OAAO;KACR,CACF,CAAC;AACJ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuthActions.d.ts","sourceRoot":"","sources":["../../hooks/useAuthActions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,eAAO,MAAM,cAAc;IAMvB,yCAAyC;;IAEzC,yCAAyC;;IAEzC,uCAAuC;;IAEvC,8CAA8C;;CAGjD,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useAuthActions.js","sourceRoot":"","sources":["../../hooks/useAuthActions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAErE,MAAM,CAAC,MAAM,cAAc,GAAG,GAAG,EAAE;IACjC,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;IAC/B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE,CAAC;IAE5C,OAAO;QACL,yCAAyC;QACzC,KAAK;QACL,yCAAyC;QACzC,MAAM;QACN,uCAAuC;QACvC,OAAO,EAAE,KAAK;QACd,8CAA8C;QAC9C,eAAe,EAAE,aAAa;KAC/B,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConnectedWallets.d.ts","sourceRoot":"","sources":["../../hooks/useConnectedWallets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,mBAAmB;IA6B5B,yBAAyB;;IAEzB,uCAAuC;;IAEvC,sCAAsC;;IAEtC,0DAA0D;;IAE1D,oCAAoC;;IAEpC,6BAA6B;;CAGhC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useConnectedWallets.js","sourceRoot":"","sources":["../../hooks/useConnectedWallets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE/E,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,EAAE;IACtC,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE,CAAC;IAC5C,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,EAAE,CAAC;IAEtC,MAAM,aAAa,GAAG,OAAO,CAC3B,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC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@@ -1 +0,0 @@
1
- {"version":3,"file":"useIsAuthenticated.js","sourceRoot":"","sources":["../../hooks/useIsAuthenticated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,QAAQ,EAAE,CAAC;IAClD,MAAM,EAAE,aAAa,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhD,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3C,MAAM,oBAAoB,GAAG,aAAa,IAAI,KAAK,IAAI,SAAS,CAAC;IAEjE,OAAO;QACL,qDAAqD;QACrD,eAAe,EAAE,oBAAoB;QACrC,6BAA6B;QAC7B,IAAI;QACJ,kCAAkC;QAClC,WAAW,EAAE,aAAa,CAAC,MAAM;QACjC,wBAAwB;QACxB,OAAO,EAAE,KAAK;KACf,CAAC;AACJ,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWalletAddresses.d.ts","sourceRoot":"","sources":["../../hooks/useWalletAddresses.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,eAAO,MAAM,kBAAkB;IA4C3B,oCAAoC;;IAEpC,kCAAkC;;IAElC,+BAA+B;;IAE/B,6BAA6B;;CAGhC,CAAC"}
@@ -1,50 +0,0 @@
1
- /**
2
- * useWalletAddresses - Address extraction by chain type
3
- * Get wallet addresses organized by blockchain
4
- */
5
- import { useMemo } from "react";
6
- import { useConnectedWallets } from "./useConnectedWallets";
7
- export const useWalletAddresses = () => {
8
- const { linkedWallets } = useConnectedWallets();
9
- const ethereumAddresses = useMemo(() => {
10
- return linkedWallets
11
- .filter((w) => {
12
- // Multiple ways to check for Ethereum wallets
13
- const chainType = w.chainType;
14
- const walletClientType = w.walletClientType;
15
- const connectorType = w.connectorType;
16
- return (chainType === "ethereum" ||
17
- walletClientType === "ethereum" ||
18
- (connectorType === "embedded" && chainType === "ethereum") ||
19
- (connectorType === "injected" && chainType === "ethereum"));
20
- })
21
- .map((w) => w.address);
22
- }, [linkedWallets]);
23
- const solanaAddresses = useMemo(() => {
24
- return linkedWallets
25
- .filter((w) => {
26
- // Type guard for Solana wallet
27
- const chainType = "chainType" in w ? w.chainType : undefined;
28
- const walletClientType = "walletClientType" in w ? w.walletClientType : undefined;
29
- const connectorType = "connectorType" in w ? w.connectorType : undefined;
30
- return (chainType === "solana" ||
31
- walletClientType === "solana" ||
32
- (connectorType === "embedded" && chainType === "solana") ||
33
- (connectorType === "injected" && chainType === "solana") ||
34
- connectorType === "phantom" ||
35
- connectorType === "solflare");
36
- })
37
- .map((w) => w.address);
38
- }, [linkedWallets]);
39
- return {
40
- /** All Ethereum wallet addresses */
41
- ethereumAddresses,
42
- /** All Solana wallet addresses */
43
- solanaAddresses,
44
- /** Primary Ethereum address */
45
- primaryEthereumAddress: ethereumAddresses[0] || null,
46
- /** Primary Solana address */
47
- primarySolanaAddress: solanaAddresses[0] || null,
48
- };
49
- };
50
- //# sourceMappingURL=useWalletAddresses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useWalletAddresses.js","sourceRoot":"","sources":["../../hooks/useWalletAddresses.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,CAAC,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,aAAa,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAEhD,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,EAAE;QACrC,OAAO,aAAa;aACjB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE;YACZ,8C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