@redzone/taunt-logins-ui-react 0.0.14 → 0.0.15
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/cjs/index.cjs +4 -4
- package/dist/cjs/index.d.cts +1 -1
- package/dist/es/index.d.ts +1 -1
- package/dist/es/index.js +4 -4
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -610,10 +610,10 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
610
610
|
setIsLoading(false);
|
|
611
611
|
}
|
|
612
612
|
})(), []);
|
|
613
|
-
const getClaimrData = react.useCallback(()=>{
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
613
|
+
const getClaimrData = react.useCallback(()=>cc._async_to_generator(function*() {
|
|
614
|
+
if (!loggedIn) return undefined;
|
|
615
|
+
return taunt.getClaimrData();
|
|
616
|
+
})(), [
|
|
617
617
|
loggedIn
|
|
618
618
|
]);
|
|
619
619
|
if (!tauntServiceEndpoint) {
|
package/dist/cjs/index.d.cts
CHANGED
|
@@ -96,7 +96,7 @@ type ContextProps = {
|
|
|
96
96
|
telegramLogin: () => void;
|
|
97
97
|
metaLogin: () => void;
|
|
98
98
|
coinbaseLogin: () => void;
|
|
99
|
-
getClaimrData
|
|
99
|
+
getClaimrData: () => Promise<ClaimrCampaignData | undefined>;
|
|
100
100
|
getClaimrToken: () => Promise<string | undefined>;
|
|
101
101
|
refreshToken: (token: string) => Promise<void>;
|
|
102
102
|
logout: () => void;
|
package/dist/es/index.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ type ContextProps = {
|
|
|
96
96
|
telegramLogin: () => void;
|
|
97
97
|
metaLogin: () => void;
|
|
98
98
|
coinbaseLogin: () => void;
|
|
99
|
-
getClaimrData
|
|
99
|
+
getClaimrData: () => Promise<ClaimrCampaignData | undefined>;
|
|
100
100
|
getClaimrToken: () => Promise<string | undefined>;
|
|
101
101
|
refreshToken: (token: string) => Promise<void>;
|
|
102
102
|
logout: () => void;
|
package/dist/es/index.js
CHANGED
|
@@ -610,10 +610,10 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
610
610
|
setIsLoading(false);
|
|
611
611
|
}
|
|
612
612
|
})(), []);
|
|
613
|
-
const getClaimrData = useCallback(()=>{
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
613
|
+
const getClaimrData = useCallback(()=>_async_to_generator(function*() {
|
|
614
|
+
if (!loggedIn) return undefined;
|
|
615
|
+
return taunt.getClaimrData();
|
|
616
|
+
})(), [
|
|
617
617
|
loggedIn
|
|
618
618
|
]);
|
|
619
619
|
if (!tauntServiceEndpoint) {
|