@worldcoin/idkit 0.3.0-alpha.2 → 0.3.0-alpha.4

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 (50) hide show
  1. package/build/components/Button.d.ts +3 -0
  2. package/build/components/CountryCodeSelect.d.ts +6 -0
  3. package/build/components/Frame.d.ts +4 -0
  4. package/build/components/IDKitWidget/BaseWidget.d.ts +4 -0
  5. package/build/components/IDKitWidget/States/AboutState.d.ts +2 -0
  6. package/build/components/IDKitWidget/States/EnterPhoneState.d.ts +2 -0
  7. package/build/components/IDKitWidget/States/ErrorState.d.ts +4 -0
  8. package/build/components/IDKitWidget/States/HostAppVerificationState.d.ts +7 -0
  9. package/build/components/IDKitWidget/States/PrivacyState.d.ts +2 -0
  10. package/build/components/IDKitWidget/States/SuccessState.d.ts +2 -0
  11. package/build/components/IDKitWidget/States/VerifyCodeState.d.ts +2 -0
  12. package/build/components/IDKitWidget/States/WorldID/LoadingState.d.ts +2 -0
  13. package/build/components/IDKitWidget/States/WorldID/QRState.d.ts +9 -0
  14. package/build/components/IDKitWidget/States/WorldIDState.d.ts +2 -0
  15. package/build/components/IDKitWidget/index.d.ts +3 -0
  16. package/build/components/Icons/ArrowLongLeftIcon.d.ts +3 -0
  17. package/build/components/Icons/CheckIcon.d.ts +3 -0
  18. package/build/components/Icons/ChevronDownIcon.d.ts +3 -0
  19. package/build/components/Icons/DevicePhoneMobileIcon.d.ts +3 -0
  20. package/build/components/Icons/LoadingIcon.d.ts +4 -0
  21. package/build/components/Icons/QuestionMarkIcon.d.ts +4 -0
  22. package/build/components/Icons/WorldIDQR.d.ts +4 -0
  23. package/build/components/Icons/WorldIDWordmark.d.ts +4 -0
  24. package/build/components/Icons/WorldcoinLogomark.d.ts +5 -0
  25. package/build/components/Icons/XMarkIcon.d.ts +3 -0
  26. package/build/components/PhoneInput.d.ts +6 -0
  27. package/build/components/QRCode.d.ts +6 -0
  28. package/build/components/ResendButton.d.ts +3 -0
  29. package/build/components/SMSCodeInput.d.ts +6 -0
  30. package/build/components/WorldIDIcon.d.ts +7 -0
  31. package/build/hooks/useIDKit.d.ts +6 -0
  32. package/build/hooks/useMedia.d.ts +2 -0
  33. package/build/idkit-js.js +181 -0
  34. package/build/index.css +2 -1829
  35. package/build/index.d.ts +6 -0
  36. package/build/index.js +9 -0
  37. package/build/index.js.map +7 -0
  38. package/build/lib/hashing.d.ts +37 -0
  39. package/build/lib/qr.d.ts +4 -0
  40. package/build/lib/telemetry.d.ts +6 -0
  41. package/build/lib/utils.d.ts +2 -0
  42. package/build/services/phone.d.ts +18 -0
  43. package/build/services/walletconnect.d.ts +15 -0
  44. package/build/store/idkit.d.ts +34 -0
  45. package/build/tsconfig.tsbuildinfo +1 -0
  46. package/build/types/config.d.ts +34 -0
  47. package/build/types/index.d.ts +52 -0
  48. package/build/types/orb.d.ts +21 -0
  49. package/build/vanilla.d.ts +12 -0
  50. package/package.json +1 -1
@@ -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 SuccessState: () => JSX.Element;
2
+ export default SuccessState;
@@ -0,0 +1,2 @@
1
+ declare const VerifyCodeState: () => JSX.Element;
2
+ export default VerifyCodeState;
@@ -0,0 +1,2 @@
1
+ declare const LoadingState: () => JSX.Element;
2
+ export default LoadingState;
@@ -0,0 +1,9 @@
1
+ import type { FC } from 'react';
2
+ type Props = {
3
+ qrData: {
4
+ default: string;
5
+ mobile: string;
6
+ } | null;
7
+ };
8
+ declare const QRState: FC<Props>;
9
+ 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,4 @@
1
+ declare const LoadingIcon: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default LoadingIcon;
@@ -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,4 @@
1
+ declare const WorldIDWordmark: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => JSX.Element;
4
+ export default WorldIDWordmark;
@@ -0,0 +1,5 @@
1
+ import type { CSSProperties } from 'react';
2
+ declare const WorldcoinLogomark: ({ style }: {
3
+ style?: CSSProperties | undefined;
4
+ }) => JSX.Element;
5
+ 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,6 @@
1
+ import type { Config } from '../types/config';
2
+ declare const useIDKit: (options: Config) => {
3
+ open: boolean;
4
+ setOpen: (open: boolean) => void;
5
+ };
6
+ export default useIDKit;
@@ -0,0 +1,2 @@
1
+ declare const useMedia: () => 'desktop' | 'mobile';
2
+ export default useMedia;