@worldcoin/idkit 1.0.0 → 1.1.1
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";
|
|
@@ -815,6 +815,9 @@ select{
|
|
|
815
815
|
.max-w-\\[14rem\\]{
|
|
816
816
|
max-width: 14rem;
|
|
817
817
|
}
|
|
818
|
+
.max-w-\\[224px\\]{
|
|
819
|
+
max-width: 224px;
|
|
820
|
+
}
|
|
818
821
|
.flex-1{
|
|
819
822
|
flex: 1 1 0%;
|
|
820
823
|
}
|
|
@@ -1622,7 +1625,7 @@ var SuccessState = () => {
|
|
|
1622
1625
|
/* @__PURE__ */ jsx11("div", { className: "-mt-5 flex items-center justify-center", children: /* @__PURE__ */ jsx11(CheckIcon_default, { className: "w-24 text-white" }) }),
|
|
1623
1626
|
/* @__PURE__ */ jsxs7("div", { children: [
|
|
1624
1627
|
/* @__PURE__ */ jsx11("p", { className: "text-center text-2xl font-semibold text-gray-900 dark:text-white", children: __("Successfully verified") }),
|
|
1625
|
-
/* @__PURE__ */ jsx11("p", { className: "
|
|
1628
|
+
/* @__PURE__ */ jsx11("p", { className: "mx-auto mt-2 max-w-[224px] text-center text-lg text-657080", children: __("Your World ID verification was successful") })
|
|
1626
1629
|
] })
|
|
1627
1630
|
] });
|
|
1628
1631
|
};
|
|
@@ -1771,7 +1774,7 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
|
|
|
1771
1774
|
/* @__PURE__ */ jsxs9(
|
|
1772
1775
|
motion.a,
|
|
1773
1776
|
{
|
|
1774
|
-
href: qrData
|
|
1777
|
+
href: qrData ? qrData + `&return_to=${encodeURIComponent(window.location.href)}` : "",
|
|
1775
1778
|
whileTap: { scale: 0.95 },
|
|
1776
1779
|
whileHover: { scale: 1.05 },
|
|
1777
1780
|
transition: { layout: { duration: 0.15 } },
|
|
@@ -1927,7 +1930,6 @@ var getOptions = (store) => ({
|
|
|
1927
1930
|
action_description: store.action_description
|
|
1928
1931
|
});
|
|
1929
1932
|
var WorldIDState = () => {
|
|
1930
|
-
const media = useMedia_default();
|
|
1931
1933
|
const [showQR, setShowQR] = useState3(false);
|
|
1932
1934
|
const {
|
|
1933
1935
|
app_id,
|
|
@@ -1955,7 +1957,7 @@ var WorldIDState = () => {
|
|
|
1955
1957
|
setErrorState({ code: errorCode ?? AppErrorCodes2.GenericError });
|
|
1956
1958
|
}
|
|
1957
1959
|
if (result) {
|
|
1958
|
-
if (verification_level == VerificationLevel.Orb && result.verification_level == VerificationLevel.
|
|
1960
|
+
if (verification_level == VerificationLevel.Orb && result.verification_level == VerificationLevel.Device) {
|
|
1959
1961
|
console.error(
|
|
1960
1962
|
"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
1963
|
);
|
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.1",
|
|
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.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@types/node": "18.11.9",
|