cantonjs-react 0.3.0 → 0.4.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.
package/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # cantonjs-react
2
2
 
3
- React hooks for Canton Network dApps, powered by [TanStack Query](https://tanstack.com/query).
3
+ Participant-private React hooks for Canton ledger applications, powered by [TanStack Query](https://tanstack.com/query).
4
+
5
+ Use this package only once your app already has participant access. If that access comes from official wallet tooling, map the connected provider output into `createLedgerClient(...)` first and then pass that client into `CantonProvider`.
4
6
 
5
7
  [![npm version](https://img.shields.io/npm/v/cantonjs-react.svg)](https://www.npmjs.com/package/cantonjs-react)
6
8
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/merged-one/cantonjs/blob/main/LICENSE)
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * cantonjs-react — React hooks for Canton Network dApps.
2
+ * cantonjs-react — participant-private React hooks for Canton ledger apps.
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * cantonjs-react — React hooks for Canton Network dApps.
2
+ * cantonjs-react — participant-private React hooks for Canton ledger apps.
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cantonjs-react",
3
- "version": "0.3.0",
4
- "description": "React hooks for Canton Network dApps — built on cantonjs",
3
+ "version": "0.4.0",
4
+ "description": "Participant-private React hooks for cantonjs applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@tanstack/react-query": "^5.0.0",
39
- "cantonjs": "^0.3.0",
39
+ "cantonjs": "^0.4.0",
40
40
  "react": "^18.0.0 || ^19.0.0"
41
41
  },
42
42
  "peerDependenciesMeta": {