@worldcoin/idkit 4.0.1-dev.a1a85c4 → 4.0.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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ npm install @worldcoin/idkit
18
18
  ## Basic usage
19
19
 
20
20
  ```tsx
21
- import { useIDKitRequest, orbLegacy } from "@worldcoin/idkit";
21
+ import { useIDKitRequest, orbLegacy, selfieCheck } from "@worldcoin/idkit";
22
22
 
23
23
  function Example() {
24
24
  const flow = useIDKitRequest({
@@ -39,6 +39,8 @@ function Example() {
39
39
  }
40
40
  ```
41
41
 
42
+ Use `selfieCheck({ signal })` for selfie-check preset requests.
43
+
42
44
  ```tsx
43
45
  import type { IDKitRequestHookConfig } from "@worldcoin/idkit";
44
46
 
package/dist/index.cjs CHANGED
@@ -1675,6 +1675,10 @@ Object.defineProperty(exports, "secureDocumentLegacy", {
1675
1675
  enumerable: true,
1676
1676
  get: function () { return idkitCore.secureDocumentLegacy; }
1677
1677
  });
1678
+ Object.defineProperty(exports, "selfieCheck", {
1679
+ enumerable: true,
1680
+ get: function () { return idkitCore.selfieCheck; }
1681
+ });
1678
1682
  Object.defineProperty(exports, "signRequest", {
1679
1683
  enumerable: true,
1680
1684
  get: function () { return idkitCore.signRequest; }
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKitRequestConfig, Preset, IDKitResult } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheck, signRequest } from '@worldcoin/idkit-core';
3
3
  import { ReactElement } from 'react';
4
4
 
5
5
  type PollingConfig = {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKitRequestConfig, Preset, IDKitResult } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheck, signRequest } from '@worldcoin/idkit-core';
3
3
  import { ReactElement } from 'react';
4
4
 
5
5
  type PollingConfig = {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKit } from '@worldcoin/idkit-core';
2
- export { IDKit, IDKitErrorCodes, documentLegacy, orbLegacy, secureDocumentLegacy, signRequest } from '@worldcoin/idkit-core';
2
+ export { IDKit, IDKitErrorCodes, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheck, signRequest } from '@worldcoin/idkit-core';
3
3
  import { memo, useMemo, useRef, useEffect, useState, useCallback } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
5
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldcoin/idkit",
3
- "version": "4.0.1-dev.a1a85c4",
3
+ "version": "4.0.3",
4
4
  "description": "React SDK for World ID built on @worldcoin/idkit-core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -52,7 +52,7 @@
52
52
  "react-dom": ">=18"
53
53
  },
54
54
  "dependencies": {
55
- "@worldcoin/idkit-core": "4.0.2",
55
+ "@worldcoin/idkit-core": "4.0.6",
56
56
  "qrcode": "^1.5.4"
57
57
  },
58
58
  "devDependencies": {