fare-privy-core 1.8.6 → 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.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/src/components/shared/CopyInput/CopyToClipboard.d.ts +16 -0
- package/dist/src/components/shared/CopyInput/CopyToClipboard.d.ts.map +1 -0
- package/dist/src/components/shared/CopyInput/CopyToClipboard.js +31 -0
- package/dist/src/components/shared/CopyInput/CopyToClipboard.js.map +1 -0
- package/dist/src/components/shared/CopyInput/index.d.ts +2 -0
- package/dist/src/components/shared/CopyInput/index.d.ts.map +1 -0
- package/dist/src/components/shared/CopyInput/index.js +13 -0
- package/dist/src/components/shared/CopyInput/index.js.map +1 -0
- package/dist/src/components/shared/CopyInput/styles.d.ts +1111 -0
- package/dist/src/components/shared/CopyInput/styles.d.ts.map +1 -0
- package/dist/src/components/shared/CopyInput/styles.js +90 -0
- package/dist/src/components/shared/CopyInput/styles.js.map +1 -0
- package/dist/src/components/shared/Modal/ModalFooter.d.ts.map +1 -1
- package/dist/src/components/shared/Modal/ModalFooter.js.map +1 -1
- package/dist/src/modals/FundWalletModal/CardCarousel.d.ts +0 -1
- package/dist/src/modals/FundWalletModal/CardCarousel.d.ts.map +1 -1
- package/dist/src/modals/FundWalletModal/CardCarousel.js +4 -4
- package/dist/src/modals/FundWalletModal/CardCarousel.js.map +1 -1
- package/dist/src/modals/FundWalletModal/FundWalletMenu.d.ts +0 -1
- package/dist/src/modals/FundWalletModal/FundWalletMenu.d.ts.map +1 -1
- package/dist/src/modals/FundWalletModal/FundWalletMenu.js +2 -9
- package/dist/src/modals/FundWalletModal/FundWalletMenu.js.map +1 -1
- package/dist/src/modals/FundWalletModal/FundsAccordion.d.ts +0 -1
- package/dist/src/modals/FundWalletModal/FundsAccordion.d.ts.map +1 -1
- package/dist/src/modals/FundWalletModal/FundsAccordion.js +6 -11
- package/dist/src/modals/FundWalletModal/FundsAccordion.js.map +1 -1
- package/dist/src/modals/FundWalletModal/TransferFunds.d.ts +0 -5
- package/dist/src/modals/FundWalletModal/TransferFunds.d.ts.map +1 -1
- package/dist/src/modals/FundWalletModal/TransferFunds.js +5 -4
- package/dist/src/modals/FundWalletModal/TransferFunds.js.map +1 -1
- package/dist/src/modals/FundWalletModal/index.d.ts +0 -1
- package/dist/src/modals/FundWalletModal/index.d.ts.map +1 -1
- package/dist/src/modals/FundWalletModal/index.js +2 -2
- package/dist/src/modals/FundWalletModal/index.js.map +1 -1
- package/dist/src/modals/styles.d.ts +3 -543
- package/dist/src/modals/styles.d.ts.map +1 -1
- package/dist/src/modals/styles.js +1 -34
- package/dist/src/modals/styles.js.map +1 -1
- package/dist/src/store/useNotiStore.d.ts +22 -0
- package/dist/src/store/useNotiStore.d.ts.map +1 -0
- package/dist/src/store/useNotiStore.js +30 -0
- package/dist/src/store/useNotiStore.js.map +1 -0
- 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,MAAM,eAAe,CAAC;AAEvC,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;CAShC,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAyB;;;;;;;;kBAQ1C,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,OAAO;;;;;;;;;;CAUvD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;CAEvC,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,CAAC,CAAA;;;;;;;;;CASzC,CAAC;AAEF,MAAM,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A;;CAErD,CAAC;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;CAqBvC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,MAAM,CAAC,CAAC,CAAA;;;;;;;;;CAS3C,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAQ,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;;;;CAItD,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAQ,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;CAwBhD,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAQ,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;;CAEtD,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;CAmB1C,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;CAYrC,CAAC;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBvC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGxC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type NotiType = 'success' | 'error';
|
|
2
|
+
interface INoti {
|
|
3
|
+
id?: string;
|
|
4
|
+
type: NotiType;
|
|
5
|
+
msg: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
}
|
|
8
|
+
type NotiState = {
|
|
9
|
+
appNotis: INoti[];
|
|
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,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|
2
2
|
"name": "fare-privy-core",
|
|
3
|
-
"version": "1.8.
|
|
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",
|