@bootnodedev/canton-dappbooster 0.4.0 → 0.5.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/connect.js +3 -3
  2. package/package.json +3 -3
package/dist/connect.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as cx, n as valueAt, r as SR_ONLY } from "./json-CVZFwEw1.js";
2
2
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
3
3
  import { useCallback, useEffect, useRef, useState } from "react";
4
- import { useConnect, useDisconnect, useLedger, useParty, useWalletStatus } from "@bootnodedev/canton-connect";
4
+ import { useAccount, useConnect, useDisconnect, useLedger, useWalletStatus } from "@bootnodedev/canton-connect";
5
5
  //#region src/components/WalletButton/anatomy.ts
6
6
  const cancelAnatomy = {
7
7
  parts: {
@@ -252,8 +252,8 @@ const toError = (value) => value instanceof Error ? value : new Error(String(val
252
252
  */
253
253
  const useHoldings = () => {
254
254
  const { ledgerApi, isReady } = useLedger();
255
- const { party } = useParty();
256
- const partyId = party?.partyId;
255
+ const { account } = useAccount();
256
+ const partyId = account?.partyId;
257
257
  const [state, setState] = useState(IDLE);
258
258
  const newest = useRef(0);
259
259
  const load = useCallback(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bootnodedev/canton-dappbooster",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "Reusable UI components for Canton dApps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "devDependencies": {
47
- "@bootnodedev/canton-connect": "^0.4.0",
47
+ "@bootnodedev/canton-connect": "^0.5.0",
48
48
  "@testing-library/dom": "^10.4.1",
49
49
  "@testing-library/jest-dom": "^7.0.0",
50
50
  "@testing-library/react": "^16.3.2",
@@ -60,7 +60,7 @@
60
60
  "vitest": "^5.0.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@bootnodedev/canton-connect": "^0.4.0",
63
+ "@bootnodedev/canton-connect": "^0.5.0",
64
64
  "react": "^19.0.0",
65
65
  "react-dom": "^19.0.0"
66
66
  },