@worldcoin/idkit 4.0.3 → 4.0.5
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 +6 -2
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -18,7 +18,11 @@ npm install @worldcoin/idkit
|
|
|
18
18
|
## Basic usage
|
|
19
19
|
|
|
20
20
|
```tsx
|
|
21
|
-
import {
|
|
21
|
+
import {
|
|
22
|
+
useIDKitRequest,
|
|
23
|
+
orbLegacy,
|
|
24
|
+
selfieCheckLegacy,
|
|
25
|
+
} from "@worldcoin/idkit";
|
|
22
26
|
|
|
23
27
|
function Example() {
|
|
24
28
|
const flow = useIDKitRequest({
|
|
@@ -39,7 +43,7 @@ function Example() {
|
|
|
39
43
|
}
|
|
40
44
|
```
|
|
41
45
|
|
|
42
|
-
Use `
|
|
46
|
+
Use `selfieCheckLegacy({ signal })` for selfie-check preset requests.
|
|
43
47
|
|
|
44
48
|
```tsx
|
|
45
49
|
import type { IDKitRequestHookConfig } from "@worldcoin/idkit";
|
package/dist/index.cjs
CHANGED
|
@@ -1675,9 +1675,9 @@ Object.defineProperty(exports, "secureDocumentLegacy", {
|
|
|
1675
1675
|
enumerable: true,
|
|
1676
1676
|
get: function () { return idkitCore.secureDocumentLegacy; }
|
|
1677
1677
|
});
|
|
1678
|
-
Object.defineProperty(exports, "
|
|
1678
|
+
Object.defineProperty(exports, "selfieCheckLegacy", {
|
|
1679
1679
|
enumerable: true,
|
|
1680
|
-
get: function () { return idkitCore.
|
|
1680
|
+
get: function () { return idkitCore.selfieCheckLegacy; }
|
|
1681
1681
|
});
|
|
1682
1682
|
Object.defineProperty(exports, "signRequest", {
|
|
1683
1683
|
enumerable: true,
|
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,
|
|
2
|
+
export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, 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,
|
|
2
|
+
export { ConstraintNode, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, Preset, ResponseItemV3, ResponseItemV4, RpContext, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, 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,
|
|
2
|
+
export { IDKit, IDKitErrorCodes, documentLegacy, orbLegacy, secureDocumentLegacy, selfieCheckLegacy, 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.
|
|
3
|
+
"version": "4.0.5",
|
|
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.
|
|
55
|
+
"@worldcoin/idkit-core": "4.0.8",
|
|
56
56
|
"qrcode": "^1.5.4"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|