@worldcoin/idkit 1.0.0 → 1.1.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.
|
@@ -108,7 +108,7 @@ var useIDKitStore = createWithEqualityFn()(
|
|
|
108
108
|
() => {
|
|
109
109
|
set({ stage: "SUCCESS" /* SUCCESS */, result });
|
|
110
110
|
if (get().autoClose)
|
|
111
|
-
setTimeout(() => get().onOpenChange(false),
|
|
111
|
+
setTimeout(() => get().onOpenChange(false), 2500);
|
|
112
112
|
},
|
|
113
113
|
(response) => {
|
|
114
114
|
let errorMessage = void 0;
|
package/build/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
QRCode_default,
|
|
3
3
|
__,
|
|
4
4
|
idkit_default
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JCPD6J62.js";
|
|
6
6
|
|
|
7
7
|
// src/hooks/useIDKit.ts
|
|
8
8
|
import { useEffect } from "react";
|
|
@@ -1927,7 +1927,6 @@ var getOptions = (store) => ({
|
|
|
1927
1927
|
action_description: store.action_description
|
|
1928
1928
|
});
|
|
1929
1929
|
var WorldIDState = () => {
|
|
1930
|
-
const media = useMedia_default();
|
|
1931
1930
|
const [showQR, setShowQR] = useState3(false);
|
|
1932
1931
|
const {
|
|
1933
1932
|
app_id,
|
|
@@ -1955,7 +1954,7 @@ var WorldIDState = () => {
|
|
|
1955
1954
|
setErrorState({ code: errorCode ?? AppErrorCodes2.GenericError });
|
|
1956
1955
|
}
|
|
1957
1956
|
if (result) {
|
|
1958
|
-
if (verification_level == VerificationLevel.Orb && result.verification_level == VerificationLevel.
|
|
1957
|
+
if (verification_level == VerificationLevel.Orb && result.verification_level == VerificationLevel.Device) {
|
|
1959
1958
|
console.error(
|
|
1960
1959
|
"Credential type received from wallet does not match configured credential_types. This should only happen when manually selecting disallowed credentials in the Worldcoin Simulator."
|
|
1961
1960
|
);
|
package/build/internal.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@worldcoin/idkit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"homepage": "https://docs.worldcoin.org/id/idkit",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"qrcode": "^1.5.1",
|
|
65
65
|
"react-shadow": "^19.1.0",
|
|
66
66
|
"zustand": "^4.3.3",
|
|
67
|
-
"@worldcoin/idkit-core": "1.
|
|
67
|
+
"@worldcoin/idkit-core": "1.1.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "18.11.9",
|