fare-privy-core 1.8.5 → 1.8.7

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 (53) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/src/components/shared/CopyInput/CopyToClipboard.d.ts +16 -0
  4. package/dist/src/components/shared/CopyInput/CopyToClipboard.d.ts.map +1 -0
  5. package/dist/src/components/shared/CopyInput/CopyToClipboard.js +31 -0
  6. package/dist/src/components/shared/CopyInput/CopyToClipboard.js.map +1 -0
  7. package/dist/src/components/shared/CopyInput/index.d.ts +2 -0
  8. package/dist/src/components/shared/CopyInput/index.d.ts.map +1 -0
  9. package/dist/src/components/shared/CopyInput/index.js +13 -0
  10. package/dist/src/components/shared/CopyInput/index.js.map +1 -0
  11. package/dist/src/components/shared/CopyInput/styles.d.ts +1111 -0
  12. package/dist/src/components/shared/CopyInput/styles.d.ts.map +1 -0
  13. package/dist/src/components/shared/CopyInput/styles.js +90 -0
  14. package/dist/src/components/shared/CopyInput/styles.js.map +1 -0
  15. package/dist/src/components/shared/Modal/Card.d.ts.map +1 -1
  16. package/dist/src/components/shared/Modal/Card.js +2 -2
  17. package/dist/src/components/shared/Modal/Card.js.map +1 -1
  18. package/dist/src/components/shared/Modal/ModalFooter.d.ts +0 -1
  19. package/dist/src/components/shared/Modal/ModalFooter.d.ts.map +1 -1
  20. package/dist/src/components/shared/Modal/ModalFooter.js +2 -2
  21. package/dist/src/components/shared/Modal/ModalFooter.js.map +1 -1
  22. package/dist/src/components/shared/Modal/ModalHeader.d.ts.map +1 -1
  23. package/dist/src/components/shared/Modal/ModalHeader.js +1 -1
  24. package/dist/src/components/shared/Modal/ModalHeader.js.map +1 -1
  25. package/dist/src/modals/FundWalletModal/CardCarousel.d.ts +0 -1
  26. package/dist/src/modals/FundWalletModal/CardCarousel.d.ts.map +1 -1
  27. package/dist/src/modals/FundWalletModal/CardCarousel.js +4 -4
  28. package/dist/src/modals/FundWalletModal/CardCarousel.js.map +1 -1
  29. package/dist/src/modals/FundWalletModal/FundWalletMenu.d.ts +0 -1
  30. package/dist/src/modals/FundWalletModal/FundWalletMenu.d.ts.map +1 -1
  31. package/dist/src/modals/FundWalletModal/FundWalletMenu.js +2 -9
  32. package/dist/src/modals/FundWalletModal/FundWalletMenu.js.map +1 -1
  33. package/dist/src/modals/FundWalletModal/FundsAccordion.d.ts +0 -1
  34. package/dist/src/modals/FundWalletModal/FundsAccordion.d.ts.map +1 -1
  35. package/dist/src/modals/FundWalletModal/FundsAccordion.js +7 -15
  36. package/dist/src/modals/FundWalletModal/FundsAccordion.js.map +1 -1
  37. package/dist/src/modals/FundWalletModal/TransferFunds.d.ts +0 -5
  38. package/dist/src/modals/FundWalletModal/TransferFunds.d.ts.map +1 -1
  39. package/dist/src/modals/FundWalletModal/TransferFunds.js +5 -4
  40. package/dist/src/modals/FundWalletModal/TransferFunds.js.map +1 -1
  41. package/dist/src/modals/FundWalletModal/index.d.ts +0 -1
  42. package/dist/src/modals/FundWalletModal/index.d.ts.map +1 -1
  43. package/dist/src/modals/FundWalletModal/index.js +2 -2
  44. package/dist/src/modals/FundWalletModal/index.js.map +1 -1
  45. package/dist/src/modals/styles.d.ts +3 -543
  46. package/dist/src/modals/styles.d.ts.map +1 -1
  47. package/dist/src/modals/styles.js +1 -34
  48. package/dist/src/modals/styles.js.map +1 -1
  49. package/dist/src/store/useNotiStore.d.ts +22 -0
  50. package/dist/src/store/useNotiStore.d.ts.map +1 -0
  51. package/dist/src/store/useNotiStore.js +30 -0
  52. package/dist/src/store/useNotiStore.js.map +1 -0
  53. package/package.json +4 -2
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/modals/styles.tsx"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAA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ti[];
10
+ gameNotis: INoti[];
11
+ };
12
+ type NotiStoreActions = {
13
+ addAppNoti: (appNoti: INoti) => void;
14
+ addGameNoti: (gameNoti: INoti) => void;
15
+ removeAppNoti: (id?: string) => void;
16
+ removeGameNoti: (id?: string) => void;
17
+ };
18
+ type NotiStore = NotiState & NotiStoreActions;
19
+ declare const useNotiStore: import("zustand").UseBoundStore<import("zustand").StoreApi<NotiStore>>;
20
+ export declare const addAppNoti: (appNoti: INoti) => void;
21
+ export default useNotiStore;
22
+ //# sourceMappingURL=useNotiStore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotiStore.d.ts","sourceRoot":"","sources":["../../../src/store/useNotiStore.ts"],"names":[],"mappings":"AAGA,KAAK,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAEnC,UAAU,KAAK;IACb,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,QAAQ,CAAA;IACd,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,KAAK,SAAS,GAAG;IACf,QAAQ,EAAE,KAAK,EAAE,CAAA;IACjB,SAAS,EAAE,KAAK,EAAE,CAAA;CACnB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,CAAC,OAAO,EAAE,KAAK,KAAK,IAAI,CAAA;IACpC,WAAW,EAAE,CAAC,QAAQ,EAAE,KAAK,KAAK,IAAI,CAAA;IACtC,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,cAAc,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CACtC,CAAA;AAOD,KAAK,SAAS,GAAG,SAAS,GAAG,gBAAgB,CAAA;AAE7C,QAAA,MAAM,YAAY,wEAwBf,CAAA;AAEH,eAAO,MAAM,UAAU,YAvCC,KAAK,KAAK,IAuC0B,CAAA;AAE5D,eAAe,YAAY,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { create } from 'zustand';
2
+ import { v4 as uuid } from 'uuid';
3
+ const initialNotiState = {
4
+ appNotis: [],
5
+ gameNotis: [],
6
+ };
7
+ const useNotiStore = create(set => ({
8
+ ...initialNotiState,
9
+ addAppNoti: appNoti => set(state => {
10
+ appNoti.id = uuid();
11
+ return {
12
+ appNotis: [...state.appNotis, appNoti],
13
+ };
14
+ }),
15
+ addGameNoti: gameNoti => set(state => {
16
+ gameNoti.id = uuid();
17
+ return {
18
+ gameNotis: [...state.gameNotis, gameNoti],
19
+ };
20
+ }),
21
+ removeAppNoti: id => set(state => ({
22
+ appNotis: id ? state.appNotis.filter(noti => noti.id !== id) : state.appNotis.slice(1),
23
+ })),
24
+ removeGameNoti: id => set(state => ({
25
+ gameNotis: id ? state.gameNotis.filter(noti => noti.id !== id) : state.gameNotis.slice(1),
26
+ })),
27
+ }));
28
+ export const addAppNoti = useNotiStore.getState().addAppNoti;
29
+ export default useNotiStore;
30
+ //# sourceMappingURL=useNotiStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useNotiStore.js","sourceRoot":"","sources":["../../../src/store/useNotiStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChC,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAA;AAuBjC,MAAM,gBAAgB,GAAc;IAClC,QAAQ,EAAE,EAAE;IACZ,SAAS,EAAE,EAAE;CACd,CAAA;AAID,MAAM,YAAY,GAAG,MAAM,CAAY,GAAG,CAAC,EAAE,CAAC,CAAC;IAC7C,GAAG,gBAAgB;IACnB,UAAU,EAAE,OAAO,CAAC,EAAE,CACpB,GAAG,CAAC,KAAK,CAAC,EAAE;QACV,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,CAAA;QACnB,OAAO;YACL,QAAQ,EAAE,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,OAAO,CAAC;SACvC,CAAA;IACH,CAAC,CAAC;IACJ,WAAW,EAAE,QAAQ,CAAC,EAAE,CACtB,GAAG,CAAC,KAAK,CAAC,EAAE;QACV,QAAQ,CAAC,EAAE,GAAG,IAAI,EAAE,CAAA;QACpB,OAAO;YACL,SAAS,EAAE,CAAC,GAAG,KAAK,CAAC,SAAS,EAAE,QAAQ,CAAC;SAC1C,CAAA;IACH,CAAC,CAAC;IACJ,aAAa,EAAE,EAAE,CAAC,EAAE,CAClB,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACZ,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;KACvF,CAAC,CAAC;IACL,cAAc,EAAE,EAAE,CAAC,EAAE,CACnB,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACZ,SAAS,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAC1F,CAAC,CAAC;CACN,CAAC,CAAC,CAAA;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAA;AAE5D,eAAe,YAAY,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fare-privy-core",
3
- "version": "1.8.5",
3
+ "version": "1.8.7",
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",
@@ -85,9 +85,11 @@
85
85
  "styled-components": "6.1.1",
86
86
  "ts-jest": "^29.4.5",
87
87
  "typescript": "^5.3.3",
88
+ "uuid": "^13.0.0",
88
89
  "valtio": ">=1.0.0 <2.0.0",
89
90
  "viem": "^2.26.2",
90
- "wagmi": "^2.12.0"
91
+ "wagmi": "^2.12.0",
92
+ "zustand": "^5.0.9"
91
93
  },
92
94
  "peerDependencies": {
93
95
  "@privy-io/react-auth": "^1.0.0",