@redzone/taunt-logins-ui-react 0.0.22 → 0.0.24
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 +2 -2
- package/dist/es/index.js +2 -2
- package/package.json +1 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -580,9 +580,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
580
580
|
magicKey
|
|
581
581
|
});
|
|
582
582
|
const [initialised, setInitialised] = react.useState(false);
|
|
583
|
-
const [loginDetails, setLoginDetails] = react.useState();
|
|
584
583
|
const [tauntUser, setTauntUser] = react.useState();
|
|
585
|
-
const
|
|
584
|
+
const [loginDetails, setLoginDetails] = react.useState();
|
|
585
|
+
const taunt = react.useMemo(()=>new tauntLogins.TauntApi(tauntServiceEndpoint, setLoginDetails), [
|
|
586
586
|
tauntServiceEndpoint
|
|
587
587
|
]);
|
|
588
588
|
const [isLoading, setIsLoading] = react.useState(false);
|
package/dist/es/index.js
CHANGED
|
@@ -580,9 +580,9 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
|
|
|
580
580
|
magicKey
|
|
581
581
|
});
|
|
582
582
|
const [initialised, setInitialised] = useState(false);
|
|
583
|
-
const [loginDetails, setLoginDetails] = useState();
|
|
584
583
|
const [tauntUser, setTauntUser] = useState();
|
|
585
|
-
const
|
|
584
|
+
const [loginDetails, setLoginDetails] = useState();
|
|
585
|
+
const taunt = useMemo(()=>new TauntApi(tauntServiceEndpoint, setLoginDetails), [
|
|
586
586
|
tauntServiceEndpoint
|
|
587
587
|
]);
|
|
588
588
|
const [isLoading, setIsLoading] = useState(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redzone/taunt-logins-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/es/index.js",
|
|
6
6
|
"module": "./dist/es/index.js",
|
|
@@ -59,7 +59,6 @@
|
|
|
59
59
|
"globals": "^16.4.0",
|
|
60
60
|
"prettier": "latest",
|
|
61
61
|
"prettier-config-custom": "*",
|
|
62
|
-
"react": "latest",
|
|
63
62
|
"typescript": "~5.9.3",
|
|
64
63
|
"typescript-eslint": "^8.45.0",
|
|
65
64
|
"vite": "^7.2.1"
|