@worldcoin/idkit 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/build/index.js +8 -3
  2. package/package.json +2 -2
package/build/index.js CHANGED
@@ -1645,13 +1645,13 @@ var QRState = ({ qrData, showQR, setShowQR }) => {
1645
1645
  className: "flex-1 text-center",
1646
1646
  transition: { layout: { duration: 0.15 } },
1647
1647
  layoutId: media == "desktop" ? void 0 : "worldid-text",
1648
- children: __("Open Worldcoin App")
1648
+ children: __("Open World App")
1649
1649
  }
1650
1650
  )
1651
1651
  ]
1652
1652
  }
1653
1653
  ),
1654
- /* @__PURE__ */ jsxs7("div", { className: clsx_default("mb-3", { "space-y-4": !showQR }), children: [
1654
+ /* @__PURE__ */ jsxs7("div", { className: clsx_default("mb-3", { "space-y-4": !showQR, hidden: media === "mobile" }), children: [
1655
1655
  /* @__PURE__ */ jsxs7("div", { className: clsx_default("flex items-center space-x-4 ", { hidden: showQR }), children: [
1656
1656
  /* @__PURE__ */ jsx11("hr", { className: "flex-1" }),
1657
1657
  /* @__PURE__ */ jsx11("span", { className: "text-xs font-medium text-9ba3ae", children: "or" }),
@@ -1846,7 +1846,12 @@ var WorldIDState = (props) => {
1846
1846
  /* @__PURE__ */ jsxs9("div", { className: clsx_default(!show_modal ? "hidden" : ""), children: [
1847
1847
  /* @__PURE__ */ jsx13("div", { className: "mb-4 flex items-center justify-center", children: /* @__PURE__ */ jsx13(WorldcoinIcon_default, { className: "h-10 text-0d151d dark:text-white" }) }),
1848
1848
  /* @__PURE__ */ jsx13("p", { className: "font-sora text-2xl font-semibold text-gray-900 dark:text-white", children: __("Verify with World ID") }),
1849
- /* @__PURE__ */ jsx13("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: "Please use your World App to scan the QR code" })
1849
+ /* @__PURE__ */ jsxs9("p", { className: clsx_default("mt-3 text-657080 dark:text-9eafc0 md:mt-2", { hidden: media === "mobile" }), children: [
1850
+ "Use your camera to scan the QR code. ",
1851
+ /* @__PURE__ */ jsx13("br", {}),
1852
+ " ",
1853
+ /* @__PURE__ */ jsx13("span", { className: "text-red-500", children: "Keep this window open after scanning." })
1854
+ ] })
1850
1855
  ] }),
1851
1856
  /* @__PURE__ */ jsxs9("div", { className: "relative w-full", children: [
1852
1857
  verificationState === VerificationState.WaitingForApp && /* @__PURE__ */ jsxs9("div", { className: "absolute inset-0 flex flex-col items-center justify-center space-y-6", children: [
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "qrcode": "^1.5.3",
9
9
  "react-shadow": "^19.1.0",
10
10
  "zustand": "^4.5.4",
11
- "@worldcoin/idkit-core": "2.0.1-rc.1"
11
+ "@worldcoin/idkit-core": "2.0.2"
12
12
  },
13
13
  "description": "The identity SDK. Privacy-preserving identity and proof of personhood with World ID.",
14
14
  "devDependencies": {
@@ -92,7 +92,7 @@
92
92
  ]
93
93
  }
94
94
  },
95
- "version": "2.0.1",
95
+ "version": "2.0.2",
96
96
  "scripts": {
97
97
  "build": "npm run build:css && tsup",
98
98
  "build:css": "npx tailwindcss -i ./src/styles/styles.css -o ./build/index.css --minify",