@1sat/wallet-toolbox 0.0.23 → 0.0.24

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.
@@ -5,7 +5,7 @@
5
5
  * (browser extension) and 1sat-website (React app).
6
6
  */
7
7
  import { PrivateKey } from "@bsv/sdk";
8
- import { Monitor, type PermissionsManagerConfig, WalletPermissionsManager } from "@bsv/wallet-toolbox-mobile/out/src/index.client.js";
8
+ import { Monitor, type PermissionsManagerConfig, Wallet, WalletPermissionsManager } from "@bsv/wallet-toolbox-mobile/out/src/index.client.js";
9
9
  import { OneSatServices } from "../services/OneSatServices";
10
10
  import { type FullSyncResult, type FullSyncStage } from "./fullSync";
11
11
  type Chain = "main" | "test";
@@ -35,6 +35,8 @@ export interface WebWalletConfig {
35
35
  export interface WebWalletResult {
36
36
  /** Wallet instance with permission management */
37
37
  wallet: WalletPermissionsManager;
38
+ /** Underlying wallet without permission checks (for trusted contexts like sweep-ui) */
39
+ rawWallet: Wallet;
38
40
  /** 1Sat services for API access */
39
41
  services: OneSatServices;
40
42
  /** Monitor for transaction lifecycle (not started - call monitor.startTasks() when ready) */
@@ -181,6 +181,7 @@ export async function createWebWallet(config) {
181
181
  : undefined;
182
182
  return {
183
183
  wallet,
184
+ rawWallet: underlyingWallet,
184
185
  services: oneSatServices,
185
186
  monitor,
186
187
  destroy,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/wallet-toolbox",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "BSV wallet library extending @bsv/wallet-toolbox with 1Sat Ordinals protocol support",
5
5
  "author": "1Sat Team",
6
6
  "license": "MIT",