@partylayer/sdk 0.14.0 → 0.15.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
@@ -14,7 +14,7 @@
14
14
 
15
15
  ## Overview
16
16
 
17
- `@partylayer/sdk` provides a unified interface for connecting your decentralized application (dApp) to multiple Canton Network wallets. It abstracts wallet-specific implementations behind a simple, type-safe API — one integration for every Canton wallet.
17
+ `@partylayer/sdk` provides a unified interface for connecting your decentralized application (dApp) to multiple Canton Network wallets. It abstracts wallet-specific implementations behind a simple, type-safe API, one integration for every Canton wallet.
18
18
 
19
19
  ### Features
20
20
 
@@ -117,7 +117,7 @@ await client.disconnect();
117
117
 
118
118
  ## Supported Wallets
119
119
 
120
- <!-- WALLETS:START (generated by scripts/gen-readme.mjs — do not edit) -->
120
+ <!-- WALLETS:START (generated by scripts/gen-readme.mjs, do not edit) -->
121
121
  | Wallet | Networks | Capabilities | Opt-in | Adapter |
122
122
  |--------|----------|--------------|--------|---------|
123
123
  | Console Wallet | devnet, testnet, mainnet | signMessage, signTransaction, submitTransaction, transactionStatus | No | `@partylayer/adapter-console` |
@@ -130,7 +130,7 @@ await client.disconnect();
130
130
  | WalletConnect | devnet, testnet, mainnet | signMessage, submitTransaction | Yes | `@partylayer/adapter-walletconnect` |
131
131
  <!-- WALLETS:END -->
132
132
 
133
- > **Try it live:** [PartyLayer Studio](https://studio.partylayer.xyz) — runnable, editable scenarios · [Pattern Cookbook](https://partylayer.xyz/docs/cookbook) — copy-paste recipes.
133
+ > **Try it live:** [PartyLayer Studio](https://studio.partylayer.xyz), runnable, editable scenarios · [Pattern Cookbook](https://partylayer.xyz/docs/cookbook), copy-paste recipes.
134
134
 
135
135
  ---
136
136
 
package/dist/index.js CHANGED
@@ -1280,7 +1280,11 @@ var PartyLayerClient = class {
1280
1280
  expiresAt: result.session.expiresAt,
1281
1281
  origin: this.origin,
1282
1282
  capabilitiesSnapshot: result.capabilities,
1283
- metadata: result.session.metadata
1283
+ metadata: result.session.metadata,
1284
+ // Fund-safety passthrough: the wallet's payout-preapproval signal, if the
1285
+ // adapter surfaced it at connect. Optional; absent when not reported.
1286
+ hasPreapproval: result.session.hasPreapproval,
1287
+ utilityPreapprovalAdmins: result.session.utilityPreapprovalAdmins
1284
1288
  };
1285
1289
  const mismatch = this.networkMismatch(session);
1286
1290
  if (mismatch) {