@worldcoin/idkit 0.0.1 → 0.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/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  This folder (`/idkit`) contains the main code for the widget. For instructions on **how to use the widget**, please refer to the repository's main [README](/README.md).
4
4
 
5
- ## ℹ️ About the codebase
5
+ ## ℹ️ About the Codebase
6
6
 
7
7
  - The widget is made to work mainly with vanilla JS code (no framework required). The starting point can be found in `src/vanilla.tsx`.
8
8
  - The React wrapper is found on `src/components/IDKitWidget/index.ts`.
9
9
 
10
- ## 🧑‍💻 Development & testing
10
+ ## 🧑‍💻 Development & Testing
11
11
 
12
12
  To develop locally and contribute to this package, you can simply follow these instructions after cloning the repo.
13
13
 
@@ -1,9 +1,4 @@
1
1
  import type { FC } from 'react';
2
- import { Config } from '../../types/config';
3
- type Props = Config & {
4
- children?: ({ open }: {
5
- open: () => void;
6
- }) => JSX.Element;
7
- };
8
- declare const IDKitWidget: FC<Props>;
2
+ import type { WidgetProps } from '../../types/config';
3
+ declare const IDKitWidget: FC<WidgetProps>;
9
4
  export default IDKitWidget;
@@ -1,2 +1,4 @@
1
+ import { ErrorCodes } from '../../../types';
2
+ export declare const ERROR_TITLES: Record<ErrorCodes, string>;
1
3
  declare const ErrorState: () => JSX.Element;
2
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;
@@ -1,7 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const _default: import("react").NamedExoticComponent<import("../..").Config & {
3
- children?: (({ open }: {
4
- open: () => void;
5
- }) => JSX.Element) | undefined;
6
- }>;
2
+ declare const _default: import("react").NamedExoticComponent<import("../..").WidgetProps>;
7
3
  export default _default;
@@ -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,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,2 @@
1
+ declare const useMedia: () => 'desktop' | 'mobile';
2
+ export default useMedia;