@zerohash-sdk/travel-rule-react 0.6.0 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +7 -5
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -66,7 +66,9 @@ declare type Theme = 'auto' | 'light' | 'dark';
66
66
  *
67
67
  * @param props - Component properties
68
68
  * @param jwt - JWT token for authentication (required)
69
- * @param depositId - Deposit id the submission is tied to (required)
69
+ * @param depositId - Deposit id the submission is tied to (omit for withdrawals)
70
+ * @param walletAddress - On-chain wallet address the status query is scoped to (required)
71
+ * @param intentionAction - `deposit` or `withdrawal` (required)
70
72
  * @param env - Target environment ("local" | "dev" | "cert" | "prod", defaults to "prod")
71
73
  * @param theme - Theme mode ("auto" | "light" | "dark", defaults to "auto")
72
74
  * @param onCompleted - Callback invoked when the flow is successfully completed
@@ -106,13 +108,13 @@ declare interface TravelRuleProps {
106
108
  */
107
109
  jwt: string;
108
110
  /**
109
- * Deposit id the travel-rule submission is tied to. Required — every
110
- * travel-rule submission is scoped to a specific deposit. Init-only:
111
- * post-mount changes are ignored, matching the behaviour of `env`.
111
+ * Deposit id the travel-rule submission is tied to. Set it for a deposit;
112
+ * omit it for the withdrawal / account-link path. Init-only: post-mount
113
+ * changes are ignored, matching the behaviour of `env`.
112
114
  *
113
115
  * @example "deposit-abc123"
114
116
  */
115
- depositId: string;
117
+ depositId?: string;
116
118
  /**
117
119
  * On-chain address the SDK is asking about (deposit source wallet for
118
120
  * deposits, destination wallet for withdrawals). Used to query the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohash-sdk/travel-rule-react",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",