@worldcoin/idkit 4.0.0-dev.2039000 → 4.0.0-dev.4777311

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
@@ -7,6 +7,7 @@ React SDK for World ID built on top of `@worldcoin/idkit-core`.
7
7
  - Headless hooks for custom UI
8
8
  - Built-in controlled widgets with shadow DOM isolation
9
9
  - Separate request and session APIs
10
+ - Pure JS `/signing` and `/hashing` subpath exports for server-side use
10
11
 
11
12
  ## Installation
12
13
 
@@ -49,3 +50,12 @@ const config: IDKitRequestHookConfig = {
49
50
  preset: { type: "OrbLegacy" },
50
51
  };
51
52
  ```
53
+
54
+ ## Subpath Exports
55
+
56
+ Pure JS subpath exports for server-side use (no WASM or React required):
57
+
58
+ ```typescript
59
+ import { signRequest } from "@worldcoin/idkit/signing";
60
+ import { hashSignal } from "@worldcoin/idkit/hashing";
61
+ ```
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var hashing = require('@worldcoin/idkit-core/hashing');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "hashSignal", {
8
+ enumerable: true,
9
+ get: function () { return hashing.hashSignal; }
10
+ });
11
+ //# sourceMappingURL=hashing.cjs.map
12
+ //# sourceMappingURL=hashing.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"hashing.cjs","sourcesContent":[]}
@@ -0,0 +1,2 @@
1
+ export { hashSignal } from '@worldcoin/idkit-core/hashing';
2
+ import '@worldcoin/idkit-core/signing';
@@ -0,0 +1,2 @@
1
+ export { hashSignal } from '@worldcoin/idkit-core/hashing';
2
+ import '@worldcoin/idkit-core/signing';
@@ -0,0 +1,3 @@
1
+ export { hashSignal } from '@worldcoin/idkit-core/hashing';
2
+ //# sourceMappingURL=hashing.js.map
3
+ //# sourceMappingURL=hashing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"hashing.js","sourcesContent":[]}
package/dist/index.cjs CHANGED
@@ -1756,6 +1756,10 @@ Object.defineProperty(exports, "secureDocumentLegacy", {
1756
1756
  enumerable: true,
1757
1757
  get: function () { return idkitCore.secureDocumentLegacy; }
1758
1758
  });
1759
+ Object.defineProperty(exports, "signRequest", {
1760
+ enumerable: true,
1761
+ get: function () { return idkitCore.signRequest; }
1762
+ });
1759
1763
  exports.IDKitRequestWidget = IDKitRequestWidget;
1760
1764
  exports.IDKitSessionWidget = IDKitSessionWidget;
1761
1765
  exports.useIDKitRequest = useIDKitRequest;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { IDKitErrorCodes, IDKitRequestConfig, Preset, IDKitResult, IDKitSessionConfig, IDKitResultSession } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialRequest, CredentialRequestType, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, IDKitResultSession, IDKitSessionConfig, Preset, ResponseItemSession, ResponseItemV3, ResponseItemV4, RpContext, all, any, documentLegacy, orbLegacy, secureDocumentLegacy } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialRequest, CredentialRequestType, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, IDKitResultSession, IDKitSessionConfig, Preset, ResponseItemSession, ResponseItemV3, ResponseItemV4, RpContext, all, any, documentLegacy, orbLegacy, secureDocumentLegacy, 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, IDKitSessionConfig, IDKitResultSession } from '@worldcoin/idkit-core';
2
- export { ConstraintNode, CredentialRequest, CredentialRequestType, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, IDKitResultSession, IDKitSessionConfig, Preset, ResponseItemSession, ResponseItemV3, ResponseItemV4, RpContext, all, any, documentLegacy, orbLegacy, secureDocumentLegacy } from '@worldcoin/idkit-core';
2
+ export { ConstraintNode, CredentialRequest, CredentialRequestType, CredentialType, IDKit, IDKitErrorCode, IDKitErrorCodes, IDKitRequestConfig, IDKitResult, IDKitResultSession, IDKitSessionConfig, Preset, ResponseItemSession, ResponseItemV3, ResponseItemV4, RpContext, all, any, documentLegacy, orbLegacy, secureDocumentLegacy, 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 { CredentialRequest, IDKit, IDKitErrorCodes, all, any, documentLegacy, orbLegacy, secureDocumentLegacy } from '@worldcoin/idkit-core';
2
+ export { CredentialRequest, IDKit, IDKitErrorCodes, all, any, documentLegacy, orbLegacy, secureDocumentLegacy, 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';
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var signing = require('@worldcoin/idkit-core/signing');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "signRequest", {
8
+ enumerable: true,
9
+ get: function () { return signing.signRequest; }
10
+ });
11
+ //# sourceMappingURL=signing.cjs.map
12
+ //# sourceMappingURL=signing.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"signing.cjs","sourcesContent":[]}
@@ -0,0 +1 @@
1
+ export { RpSignature, signRequest } from '@worldcoin/idkit-core/signing';
@@ -0,0 +1 @@
1
+ export { RpSignature, signRequest } from '@worldcoin/idkit-core/signing';
@@ -0,0 +1,3 @@
1
+ export { signRequest } from '@worldcoin/idkit-core/signing';
2
+ //# sourceMappingURL=signing.js.map
3
+ //# sourceMappingURL=signing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"signing.js","sourcesContent":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@worldcoin/idkit",
3
- "version": "4.0.0-dev.2039000",
3
+ "version": "4.0.0-dev.4777311",
4
4
  "description": "React SDK for World ID built on @worldcoin/idkit-core",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -11,6 +11,16 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
+ },
15
+ "./signing": {
16
+ "types": "./dist/signing.d.ts",
17
+ "import": "./dist/signing.js",
18
+ "require": "./dist/signing.cjs"
19
+ },
20
+ "./hashing": {
21
+ "types": "./dist/hashing.d.ts",
22
+ "import": "./dist/hashing.js",
23
+ "require": "./dist/hashing.cjs"
14
24
  }
15
25
  },
16
26
  "files": [