@worldcoin/idkit 0.3.2 → 0.3.3

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 (55) hide show
  1. package/build/components/AboutWorldID.d.ts +6 -0
  2. package/build/components/Button.d.ts +3 -0
  3. package/build/components/CountryCodeSelect.d.ts +6 -0
  4. package/build/components/Frame.d.ts +4 -0
  5. package/build/components/IDKitWidget/BaseWidget.d.ts +4 -0
  6. package/build/components/IDKitWidget/States/AboutState.d.ts +2 -0
  7. package/build/components/IDKitWidget/States/EnterPhoneState.d.ts +2 -0
  8. package/build/components/IDKitWidget/States/ErrorState.d.ts +4 -0
  9. package/build/components/IDKitWidget/States/HostAppVerificationState.d.ts +7 -0
  10. package/build/components/IDKitWidget/States/PrivacyState.d.ts +2 -0
  11. package/build/components/IDKitWidget/States/SelectMethodState.d.ts +2 -0
  12. package/build/components/IDKitWidget/States/SuccessState.d.ts +2 -0
  13. package/build/components/IDKitWidget/States/VerifyCodeState.d.ts +2 -0
  14. package/build/components/IDKitWidget/States/WorldID/QRState.d.ts +11 -0
  15. package/build/components/IDKitWidget/States/WorldIDState.d.ts +2 -0
  16. package/build/components/IDKitWidget/index.d.ts +3 -0
  17. package/build/components/Icons/ArrowLongLeftIcon.d.ts +3 -0
  18. package/build/components/Icons/CheckIcon.d.ts +3 -0
  19. package/build/components/Icons/ChevronDownIcon.d.ts +3 -0
  20. package/build/components/Icons/DevicePhoneMobileIcon.d.ts +3 -0
  21. package/build/components/Icons/HumanIcon.d.ts +3 -0
  22. package/build/components/Icons/InfoIcon.d.ts +3 -0
  23. package/build/components/Icons/LoadingIcon.d.ts +4 -0
  24. package/build/components/Icons/LockIcon.d.ts +3 -0
  25. package/build/components/Icons/QuestionMarkIcon.d.ts +4 -0
  26. package/build/components/Icons/WorldIDQR.d.ts +4 -0
  27. package/build/components/Icons/WorldIDWordmark.d.ts +3 -0
  28. package/build/components/Icons/WorldcoinIcon.d.ts +3 -0
  29. package/build/components/Icons/WorldcoinLogomark.d.ts +3 -0
  30. package/build/components/Icons/XMarkIcon.d.ts +3 -0
  31. package/build/components/PhoneInput.d.ts +6 -0
  32. package/build/components/QRCode.d.ts +6 -0
  33. package/build/components/ResendButton.d.ts +3 -0
  34. package/build/components/SMSCodeInput.d.ts +6 -0
  35. package/build/components/WorldIDIcon.d.ts +7 -0
  36. package/build/hooks/useIDKit.d.ts +7 -0
  37. package/build/hooks/useMedia.d.ts +2 -0
  38. package/build/idkit-js.js +181 -0
  39. package/build/index.css +2 -1934
  40. package/build/index.d.ts +7 -0
  41. package/build/index.js +9 -0
  42. package/build/index.js.map +7 -0
  43. package/build/lib/hashing.d.ts +37 -0
  44. package/build/lib/qr.d.ts +4 -0
  45. package/build/lib/telemetry.d.ts +6 -0
  46. package/build/lib/utils.d.ts +5 -0
  47. package/build/services/phone.d.ts +18 -0
  48. package/build/services/walletconnect.d.ts +15 -0
  49. package/build/store/idkit.d.ts +39 -0
  50. package/build/tsconfig.tsbuildinfo +1 -0
  51. package/build/types/config.d.ts +36 -0
  52. package/build/types/index.d.ts +53 -0
  53. package/build/types/orb.d.ts +21 -0
  54. package/build/vanilla.d.ts +12 -0
  55. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import type { FC } from 'react';
2
+ type Props = {
3
+ className?: string;
4
+ };
5
+ declare const AboutWorldID: FC<Props>;
6
+ export default AboutWorldID;
@@ -0,0 +1,3 @@
1
+ import type { ButtonHTMLAttributes } from 'react';
2
+ declare const Button: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
3
+ export default Button;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ value: string;
3
+ onChange: (value: string) => void;
4
+ };
5
+ declare const CountryCodeSelect: ({ value, onChange }: Props) => JSX.Element;
6
+ export default CountryCodeSelect;
@@ -0,0 +1,4 @@
1
+ import type { FC, HTMLAttributes, PropsWithChildren } from 'react';
2
+ type Props = PropsWithChildren<HTMLAttributes<HTMLIFrameElement>>;
3
+ declare const Frame: FC<Props>;
4
+ export default Frame;
@@ -0,0 +1,4 @@
1
+ import type { FC } from 'react';
2
+ import type { WidgetProps } from '../../types/config';
3
+ declare const IDKitWidget: FC<WidgetProps>;
4
+ export default IDKitWidget;
@@ -0,0 +1,2 @@
1
+ declare const AboutState: () => JSX.Element;
2
+ export default AboutState;
@@ -0,0 +1,2 @@
1
+ declare const EnterPhoneState: () => JSX.Element;
2
+ export default EnterPhoneState;
@@ -0,0 +1,4 @@
1
+ import { ErrorCodes } from '../../../types';
2
+ export declare const ERROR_TITLES: Record<ErrorCodes, string>;
3
+ declare const ErrorState: () => JSX.Element;
4
+ export default ErrorState;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This state is triggered after a successful signal is received and the host app is performing their own verifications,
3
+ * before we show a success/error state.
4
+ */
5
+ /// <reference types="react" />
6
+ declare const _default: import("react").MemoExoticComponent<() => JSX.Element>;
7
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const PrivacyState: () => JSX.Element;
2
+ export default PrivacyState;
@@ -0,0 +1,2 @@
1
+ declare const SelectMethodState: () => JSX.Element;
2
+ export default SelectMethodState;
@@ -0,0 +1,2 @@
1
+ declare const SuccessState: () => JSX.Element;
2
+ export default SuccessState;
@@ -0,0 +1,2 @@
1
+ declare const VerifyCodeState: () => JSX.Element;
2
+ export default VerifyCodeState;
@@ -0,0 +1,11 @@
1
+ import type { FC } from 'react';
2
+ type Props = {
3
+ qrData: {
4
+ default: string;
5
+ mobile: string;
6
+ } | null;
7
+ showQR: boolean;
8
+ setShowQR: (show: boolean | ((state: boolean) => boolean)) => void;
9
+ };
10
+ declare const QRState: FC<Props>;
11
+ export default QRState;
@@ -0,0 +1,2 @@
1
+ declare const WorldIDState: () => JSX.Element;
2
+ export default WorldIDState;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").NamedExoticComponent<import("../..").WidgetProps>;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const ArrowLongLeftIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default ArrowLongLeftIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const CheckIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default CheckIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const ChevronDownIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default ChevronDownIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const DevicePhoneMobileIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default DevicePhoneMobileIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const HumanIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default HumanIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const InfoIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default InfoIcon;
@@ -0,0 +1,4 @@
1
+ declare const LoadingIcon: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default LoadingIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const LockIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default LockIcon;
@@ -0,0 +1,4 @@
1
+ declare const QuestionMarkIcon: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default QuestionMarkIcon;
@@ -0,0 +1,4 @@
1
+ declare const WorldIDQR: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default WorldIDQR;
@@ -0,0 +1,3 @@
1
+ import type { HTMLAttributes, FC } from 'react';
2
+ declare const WorldIDWordmark: FC<HTMLAttributes<SVGElement>>;
3
+ export default WorldIDWordmark;
@@ -0,0 +1,3 @@
1
+ import type { HTMLAttributes, FC } from 'react';
2
+ declare const WorldcoinIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default WorldcoinIcon;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const WorldcoinLogomark: FC<HTMLAttributes<SVGElement>>;
3
+ export default WorldcoinLogomark;
@@ -0,0 +1,3 @@
1
+ import type { FC, HTMLAttributes } from 'react';
2
+ declare const XMarkIcon: FC<HTMLAttributes<SVGElement>>;
3
+ export default XMarkIcon;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").MemoExoticComponent<({ disabled, onSubmit }: {
3
+ disabled?: boolean | undefined;
4
+ onSubmit?: (() => void | Promise<void>) | undefined;
5
+ }) => JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ type Props = {
2
+ data: string;
3
+ className?: string;
4
+ };
5
+ export declare const Qrcode: ({ data, className }: Props) => JSX.Element;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: import("react").MemoExoticComponent<() => JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import type { RefObject } from 'react';
2
+ declare const _default: import("react").MemoExoticComponent<({ submitRef, disabled }: {
3
+ submitRef: RefObject<HTMLButtonElement>;
4
+ disabled?: boolean | undefined;
5
+ }) => JSX.Element>;
6
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import type { DetailedHTMLProps, ImgHTMLAttributes } from 'react';
2
+ type Props = Omit<DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> & {
3
+ border?: string;
4
+ size?: 'md' | 'sm';
5
+ }, 'height' | 'src' | 'width'>;
6
+ declare const WorldIDIcon: ({ border, size, ...props }: Props) => JSX.Element;
7
+ export default WorldIDIcon;
@@ -0,0 +1,7 @@
1
+ import type { Config } from '../types/config';
2
+ type HookConfig = Pick<Config, 'handleVerify' | 'onSuccess'>;
3
+ declare const useIDKit: (options: HookConfig) => {
4
+ open: boolean;
5
+ setOpen: (open: boolean) => void;
6
+ };
7
+ export default useIDKit;
@@ -0,0 +1,2 @@
1
+ declare const useMedia: () => 'desktop' | 'mobile';
2
+ export default useMedia;