@neus/sdk 1.1.1 → 1.1.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.
package/widgets/README.md CHANGED
@@ -1,45 +1,41 @@
1
- # NEUS Widgets
2
-
3
- **Proof-aware React components** (VerifyGate, ProofBadge) so your UI can show verified state and gate content **using the same checks your server already trusts** - avoid re-implementing verifier rules only in the browser.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install @neus/sdk react react-dom
9
- ```
10
-
11
- ## VerifyGate
12
-
13
- Create mode defaults to **private**. Override `proofOptions` only when you need public visibility for link-based or public checks.
14
-
15
- ```jsx
16
- import { VerifyGate } from '@neus/sdk/widgets';
17
-
18
- export function Page() {
19
- return (
20
- <VerifyGate
21
- appId="your-app-id"
22
- requiredVerifiers={['nft-ownership']}
23
- verifierData={{
24
- 'nft-ownership': { contractAddress: '0x...', tokenId: '1', chainId: 8453 }
25
- }}
26
- >
27
- <div>Unlocked</div>
28
- </VerifyGate>
29
- );
30
- }
31
- ```
32
-
33
- ## ProofBadge
34
-
35
- ```jsx
36
- import { ProofBadge } from '@neus/sdk/widgets';
37
-
38
- <ProofBadge qHash={proof.qHash} showChains />
39
- ```
40
-
41
- ## Docs
42
-
43
- - [Widgets Overview](https://docs.neus.network/widgets/overview)
44
- - [Verify Component](https://docs.neus.network/widgets/verifygate)
45
- - [Quickstart](https://docs.neus.network/quickstart)
1
+ # NEUS Widgets
2
+
3
+ **Proof-aware React components** (VerifyGate, ProofBadge) so your UI can show verified state and gate content **using the same checks your server already trusts** - avoid re-implementing verifier rules only in the browser.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @neus/sdk react react-dom
9
+ ```
10
+
11
+ ## VerifyGate
12
+
13
+ Create mode opens Hosted Verify. The published gate owns verifier inputs, pricing, and checkout policy.
14
+
15
+ ```jsx
16
+ import { VerifyGate } from '@neus/sdk/widgets';
17
+
18
+ export function Page() {
19
+ return (
20
+ <VerifyGate
21
+ gateId="gate_your-app-name"
22
+ >
23
+ <div>Unlocked</div>
24
+ </VerifyGate>
25
+ );
26
+ }
27
+ ```
28
+
29
+ ## ProofBadge
30
+
31
+ ```jsx
32
+ import { ProofBadge } from '@neus/sdk/widgets';
33
+
34
+ <ProofBadge qHash={proof.qHash} showChains />
35
+ ```
36
+
37
+ ## Docs
38
+
39
+ - [Widgets Overview](https://docs.neus.network/widgets/overview)
40
+ - [Verify Component](https://docs.neus.network/widgets/verifygate)
41
+ - [Quickstart](https://docs.neus.network/quickstart)