zh-web-sdk 3.0.1 → 3.1.1

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.
@@ -7,11 +7,15 @@ import type { Environment, InternalEnvironment } from '../types';
7
7
  */
8
8
  export type NewSdkEnv = Environment | InternalEnvironment;
9
9
  /**
10
- * CDN origin that hosts the new `@zerohash-sdk/*` web components for a
11
- * given environment. The `messageRouter` uses this to decide which
12
- * origin is trusted to post lifecycle events back to the parent window.
10
+ * CDN origin for the new `@zerohash-sdk/*` iframes per environment.
11
+ * `messageRouter` trusts this origin and uses it for set-once pinning.
13
12
  */
14
13
  export declare const NEW_SDK_ORIGIN_BY_ENV: Record<NewSdkEnv, string>;
14
+ /**
15
+ * Origins the new `@zerohash-sdk/*` iframes may post from; `messageRouter`
16
+ * trusts any of these. Drop the connect.xyz entries once the migration is done.
17
+ */
18
+ export declare const TRUSTED_NEW_SDK_ORIGINS: ReadonlySet<string>;
15
19
  /**
16
20
  * Derive the environment from the host app's `zeroHashAppsURL`. Returns
17
21
  * `'prod'` for any hostname not in the known lists, which is the safest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zh-web-sdk",
3
- "version": "3.0.1",
3
+ "version": "3.1.1",
4
4
  "private": false,
5
5
  "description": "ZeroHash Web SDK",
6
6
  "homepage": "https://github.com/seedcx/zh-web-sdk",
@@ -54,22 +54,22 @@
54
54
  "typescript": "^5.7.2"
55
55
  },
56
56
  "dependencies": {
57
- "@connect-xyz/auth-react": "^0.74.0",
57
+ "@connect-xyz/auth-react": "^0.76.0",
58
58
  "@worldcoin/minikit-js": "^1.9.6",
59
- "@zerohash-sdk/crypto-account-link-react": "^1.4.0",
60
- "@zerohash-sdk/crypto-buy-react": "^1.5.0",
61
- "@zerohash-sdk/crypto-sell-react": "^1.5.0",
62
- "@zerohash-sdk/crypto-withdrawals-react": "^1.5.0",
63
- "@zerohash-sdk/csp-crypto-sell-react": "^1.5.0",
64
- "@zerohash-sdk/csp-crypto-withdrawals-react": "^1.5.0",
65
- "@zerohash-sdk/csp-fiat-withdrawals-react": "^0.3.0",
66
- "@zerohash-sdk/fiat-account-link-react": "^1.5.0",
67
- "@zerohash-sdk/fiat-deposits-react": "^1.5.0",
68
- "@zerohash-sdk/fiat-withdrawals-react": "^1.5.0",
69
- "@zerohash-sdk/fund-react": "^1.5.0",
70
- "@zerohash-sdk/fund-withdrawals-react": "^0.4.0",
71
- "@zerohash-sdk/onboarding-react": "^1.5.0",
72
- "@zerohash-sdk/profile-react": "^0.4.0",
59
+ "@zerohash-sdk/crypto-account-link-react": "^1.6.0",
60
+ "@zerohash-sdk/crypto-buy-react": "^1.7.0",
61
+ "@zerohash-sdk/crypto-sell-react": "^1.7.0",
62
+ "@zerohash-sdk/crypto-withdrawals-react": "^1.7.0",
63
+ "@zerohash-sdk/csp-crypto-sell-react": "^1.7.0",
64
+ "@zerohash-sdk/csp-crypto-withdrawals-react": "^1.7.0",
65
+ "@zerohash-sdk/csp-fiat-withdrawals-react": "^0.5.0",
66
+ "@zerohash-sdk/fiat-account-link-react": "^1.7.0",
67
+ "@zerohash-sdk/fiat-deposits-react": "^1.7.0",
68
+ "@zerohash-sdk/fiat-withdrawals-react": "^1.7.0",
69
+ "@zerohash-sdk/fund-react": "^1.7.0",
70
+ "@zerohash-sdk/fund-withdrawals-react": "^0.6.0",
71
+ "@zerohash-sdk/onboarding-react": "^1.7.0",
72
+ "@zerohash-sdk/profile-react": "^0.6.0",
73
73
  "react": "^18.3.1",
74
74
  "react-dom": "^18.3.1",
75
75
  "react-redux": "^8.1.3",
@@ -78,5 +78,8 @@
78
78
  "repository": {
79
79
  "type": "git",
80
80
  "url": "https://github.com/seedcx/zh-web-sdk.git"
81
+ },
82
+ "overrides": {
83
+ "ws": "^8.21.0"
81
84
  }
82
85
  }