@worldcoin/idkit 2.0.2 → 2.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.
package/build/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { C as Config, W as WidgetProps } from './config-BRFx4nLT.js';
1
+ import { C as Config } from './config-BRFx4nLT.js';
2
+ export { W as WidgetProps } from './config-BRFx4nLT.js';
2
3
  import * as react from 'react';
3
4
  export { IErrorState, ISuccessResult, VerificationLevel } from '@worldcoin/idkit-core';
4
5
  export { solidityEncode } from '@worldcoin/idkit-core/hashing';
@@ -10,6 +11,6 @@ declare const useIDKit: ({ handleVerify, onSuccess }?: HookConfig) => {
10
11
  setOpen: (open: boolean) => void;
11
12
  };
12
13
 
13
- declare const _default: react.NamedExoticComponent<WidgetProps>;
14
+ declare const _default: react.NamedExoticComponent<any>;
14
15
 
15
- export { Config, _default as IDKitWidget, WidgetProps, useIDKit };
16
+ export { Config, _default as IDKitWidget, useIDKit };
package/build/index.js CHANGED
@@ -1973,46 +1973,49 @@ var IDKitWidget = ({
1973
1973
  className: "fixed inset-0 bg-black/50 backdrop-blur-lg"
1974
1974
  }
1975
1975
  ) }),
1976
- /* @__PURE__ */ jsx15("div", { className: "fixed inset-0 z-[9999] overflow-y-hidden md:overflow-y-auto", children: /* @__PURE__ */ jsx15("div", { className: "flex min-h-full items-end justify-center text-center md:items-center md:p-4", children: /* @__PURE__ */ jsx15(
1977
- Dialog.Content,
1978
- {
1979
- asChild: true,
1980
- onPointerDownOutside: avoidDefaultDomBehavior,
1981
- onInteractOutside: avoidDefaultDomBehavior,
1982
- children: /* @__PURE__ */ jsx15(
1983
- motion2.div,
1984
- {
1985
- layout: media == "mobile" ? "position" : true,
1986
- exit: media == "mobile" ? "initMob" : "init",
1987
- initial: media == "mobile" ? "initMob" : "init",
1988
- animate: media == "mobile" ? "animateMob" : "animate",
1989
- variants: {
1990
- init: { opacity: 0, scale: 0.9 },
1991
- initMob: { translateY: "100%" },
1992
- animate: { opacity: 1, scale: 1 },
1993
- animateMob: { translateY: 0 }
1994
- },
1995
- transition: { layout: { duration: 0.15 } },
1996
- className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-2xl",
1997
- children: /* @__PURE__ */ jsxs11(Toast.Provider, { children: [
1998
- /* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
1999
- /* @__PURE__ */ jsx15("div", { className: "mx-6 mb-12 flex items-center justify-between", children: /* @__PURE__ */ jsx15(Dialog.Close, { className: "flex size-11 items-center justify-center rounded-full text-black dark:text-white", children: /* @__PURE__ */ jsx15(XMarkIcon_default, { className: "size-5" }) }) }),
2000
- /* @__PURE__ */ jsx15("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
2001
- /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ jsx15(
2002
- "a",
2003
- {
2004
- href: "https://developer.worldcoin.org/privacy-statement",
2005
- target: "_blank",
2006
- rel: "noreferrer",
2007
- className: "text-sm text-657080 hover:underline",
2008
- children: __("Terms & Privacy")
2009
- }
2010
- ) })
2011
- ] })
2012
- }
2013
- )
2014
- }
2015
- ) }) })
1976
+ /* @__PURE__ */ jsx15("div", { className: "fixed inset-0 z-[9999] overflow-y-hidden md:overflow-y-auto", children: /* @__PURE__ */ jsxs11("div", { className: "flex min-h-full items-end justify-center text-center md:items-center md:p-4", children: [
1977
+ /* @__PURE__ */ jsx15(Dialog.Title, {}),
1978
+ /* @__PURE__ */ jsx15(
1979
+ Dialog.Content,
1980
+ {
1981
+ asChild: true,
1982
+ onPointerDownOutside: avoidDefaultDomBehavior,
1983
+ onInteractOutside: avoidDefaultDomBehavior,
1984
+ children: /* @__PURE__ */ jsx15(
1985
+ motion2.div,
1986
+ {
1987
+ layout: media == "mobile" ? "position" : true,
1988
+ exit: media == "mobile" ? "initMob" : "init",
1989
+ initial: media == "mobile" ? "initMob" : "init",
1990
+ animate: media == "mobile" ? "animateMob" : "animate",
1991
+ variants: {
1992
+ init: { opacity: 0, scale: 0.9 },
1993
+ initMob: { translateY: "100%" },
1994
+ animate: { opacity: 1, scale: 1 },
1995
+ animateMob: { translateY: 0 }
1996
+ },
1997
+ transition: { layout: { duration: 0.15 } },
1998
+ className: "relative z-50 flex min-h-screen w-full flex-col bg-white pt-6 shadow focus:outline-none focus-visible:ring focus-visible:ring-purple-500/75 dark:bg-0d151d md:min-h-[35rem] md:max-w-md md:rounded-2xl",
1999
+ children: /* @__PURE__ */ jsxs11(Toast.Provider, { children: [
2000
+ /* @__PURE__ */ jsx15(Toast.Viewport, { className: "flex justify-center" }),
2001
+ /* @__PURE__ */ jsx15("div", { className: "mx-6 mb-12 flex items-center justify-between", children: /* @__PURE__ */ jsx15(Dialog.Close, { className: "flex size-11 items-center justify-center rounded-full text-black dark:text-white", children: /* @__PURE__ */ jsx15(XMarkIcon_default, { className: "size-5" }) }) }),
2002
+ /* @__PURE__ */ jsx15("div", { className: "relative mx-6 mb-6 flex flex-1 flex-col items-center justify-center", children: StageContent }),
2003
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center border-t border-f5f5f7 p-7 md:rounded-b-2xl", children: /* @__PURE__ */ jsx15(
2004
+ "a",
2005
+ {
2006
+ href: "https://developer.worldcoin.org/privacy-statement",
2007
+ target: "_blank",
2008
+ rel: "noreferrer",
2009
+ className: "text-sm text-657080 hover:underline",
2010
+ children: __("Terms & Privacy")
2011
+ }
2012
+ ) })
2013
+ ] })
2014
+ }
2015
+ )
2016
+ }
2017
+ )
2018
+ ] }) })
2016
2019
  ] })
2017
2020
  ] }) }) }) })
2018
2021
  ] });
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.2"
11
+ "@worldcoin/idkit-core": "2.1.0"
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.2",
95
+ "version": "2.1.0",
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",