@txnlab/use-wallet-solid 3.11.1 → 3.12.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/dist/dev.cjs +14 -11
- package/dist/dev.js +14 -11
- package/dist/dev.jsx +4 -1
- package/dist/index.cjs +14 -11
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -11
- package/dist/index.jsx +4 -1
- package/package.json +7 -7
package/dist/dev.cjs
CHANGED
|
@@ -10,9 +10,9 @@ var algosdk__default = /*#__PURE__*/_interopDefault(algosdk);
|
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
|
|
12
12
|
var sharedConfig = {
|
|
13
|
-
context:
|
|
14
|
-
registry:
|
|
15
|
-
effects:
|
|
13
|
+
context: undefined,
|
|
14
|
+
registry: undefined,
|
|
15
|
+
effects: undefined,
|
|
16
16
|
done: false,
|
|
17
17
|
getContextId() {
|
|
18
18
|
return getContextId(this.context.count);
|
|
@@ -63,7 +63,7 @@ function createSignal(value, options) {
|
|
|
63
63
|
value,
|
|
64
64
|
observers: null,
|
|
65
65
|
observerSlots: null,
|
|
66
|
-
comparator: options.equals ||
|
|
66
|
+
comparator: options.equals || undefined
|
|
67
67
|
};
|
|
68
68
|
const setter = (value2) => {
|
|
69
69
|
if (typeof value2 === "function") {
|
|
@@ -91,7 +91,7 @@ function createMemo(fn, value, options) {
|
|
|
91
91
|
const c = createComputation(fn, value, true, 0);
|
|
92
92
|
c.observers = null;
|
|
93
93
|
c.observerSlots = null;
|
|
94
|
-
c.comparator = options.equals ||
|
|
94
|
+
c.comparator = options.equals || undefined;
|
|
95
95
|
if (Scheduler && Transition && Transition.running) {
|
|
96
96
|
c.tState = STALE;
|
|
97
97
|
Updates.push(c);
|
|
@@ -143,7 +143,7 @@ function startTransition(fn) {
|
|
|
143
143
|
}
|
|
144
144
|
runUpdates(fn);
|
|
145
145
|
Listener = Owner = null;
|
|
146
|
-
return t ? t.done :
|
|
146
|
+
return t ? t.done : undefined;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
@@ -157,7 +157,7 @@ function createContext(defaultValue, options) {
|
|
|
157
157
|
}
|
|
158
158
|
function useContext(context) {
|
|
159
159
|
let value;
|
|
160
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !==
|
|
160
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
161
161
|
}
|
|
162
162
|
function children(fn) {
|
|
163
163
|
const children2 = createMemo(fn);
|
|
@@ -266,7 +266,7 @@ function runComputation(node, value, time) {
|
|
|
266
266
|
if (Transition && Transition.running) {
|
|
267
267
|
node.tState = STALE;
|
|
268
268
|
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
269
|
-
node.tOwned =
|
|
269
|
+
node.tOwned = undefined;
|
|
270
270
|
} else {
|
|
271
271
|
node.state = STALE;
|
|
272
272
|
node.owned && node.owned.forEach(cleanNode);
|
|
@@ -318,7 +318,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
if (ExternalSourceConfig && c.fn) {
|
|
321
|
-
const [track, trigger] = createSignal(
|
|
321
|
+
const [track, trigger] = createSignal(undefined, {
|
|
322
322
|
equals: false
|
|
323
323
|
});
|
|
324
324
|
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
@@ -583,7 +583,7 @@ function createProvider(id, options) {
|
|
|
583
583
|
};
|
|
584
584
|
return children(() => props.children);
|
|
585
585
|
}),
|
|
586
|
-
|
|
586
|
+
undefined
|
|
587
587
|
);
|
|
588
588
|
return res;
|
|
589
589
|
};
|
|
@@ -666,6 +666,8 @@ exports.useWalletManager = () => {
|
|
|
666
666
|
};
|
|
667
667
|
function useWallet() {
|
|
668
668
|
const manager = createMemo(() => exports.useWalletManager());
|
|
669
|
+
const managerStatus = solidStore.useStore(manager().store, (state) => state.managerStatus);
|
|
670
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
669
671
|
const algodClient = solidStore.useStore(manager().store, (state) => state.algodClient);
|
|
670
672
|
const walletStore = solidStore.useStore(manager().store, (state) => state.wallets);
|
|
671
673
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -728,7 +730,8 @@ function useWallet() {
|
|
|
728
730
|
setActiveNetwork,
|
|
729
731
|
signTransactions,
|
|
730
732
|
transactionSigner,
|
|
731
|
-
wallets: manager().wallets
|
|
733
|
+
wallets: manager().wallets,
|
|
734
|
+
isReady
|
|
732
735
|
};
|
|
733
736
|
}
|
|
734
737
|
|
package/dist/dev.js
CHANGED
|
@@ -4,9 +4,9 @@ export * from '@txnlab/use-wallet';
|
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
|
-
context:
|
|
8
|
-
registry:
|
|
9
|
-
effects:
|
|
7
|
+
context: undefined,
|
|
8
|
+
registry: undefined,
|
|
9
|
+
effects: undefined,
|
|
10
10
|
done: false,
|
|
11
11
|
getContextId() {
|
|
12
12
|
return getContextId(this.context.count);
|
|
@@ -57,7 +57,7 @@ function createSignal(value, options) {
|
|
|
57
57
|
value,
|
|
58
58
|
observers: null,
|
|
59
59
|
observerSlots: null,
|
|
60
|
-
comparator: options.equals ||
|
|
60
|
+
comparator: options.equals || undefined
|
|
61
61
|
};
|
|
62
62
|
const setter = (value2) => {
|
|
63
63
|
if (typeof value2 === "function") {
|
|
@@ -85,7 +85,7 @@ function createMemo(fn, value, options) {
|
|
|
85
85
|
const c = createComputation(fn, value, true, 0);
|
|
86
86
|
c.observers = null;
|
|
87
87
|
c.observerSlots = null;
|
|
88
|
-
c.comparator = options.equals ||
|
|
88
|
+
c.comparator = options.equals || undefined;
|
|
89
89
|
if (Scheduler && Transition && Transition.running) {
|
|
90
90
|
c.tState = STALE;
|
|
91
91
|
Updates.push(c);
|
|
@@ -137,7 +137,7 @@ function startTransition(fn) {
|
|
|
137
137
|
}
|
|
138
138
|
runUpdates(fn);
|
|
139
139
|
Listener = Owner = null;
|
|
140
|
-
return t ? t.done :
|
|
140
|
+
return t ? t.done : undefined;
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
@@ -151,7 +151,7 @@ function createContext(defaultValue, options) {
|
|
|
151
151
|
}
|
|
152
152
|
function useContext(context) {
|
|
153
153
|
let value;
|
|
154
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !==
|
|
154
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
155
155
|
}
|
|
156
156
|
function children(fn) {
|
|
157
157
|
const children2 = createMemo(fn);
|
|
@@ -260,7 +260,7 @@ function runComputation(node, value, time) {
|
|
|
260
260
|
if (Transition && Transition.running) {
|
|
261
261
|
node.tState = STALE;
|
|
262
262
|
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
263
|
-
node.tOwned =
|
|
263
|
+
node.tOwned = undefined;
|
|
264
264
|
} else {
|
|
265
265
|
node.state = STALE;
|
|
266
266
|
node.owned && node.owned.forEach(cleanNode);
|
|
@@ -312,7 +312,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
if (ExternalSourceConfig && c.fn) {
|
|
315
|
-
const [track, trigger] = createSignal(
|
|
315
|
+
const [track, trigger] = createSignal(undefined, {
|
|
316
316
|
equals: false
|
|
317
317
|
});
|
|
318
318
|
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
@@ -577,7 +577,7 @@ function createProvider(id, options) {
|
|
|
577
577
|
};
|
|
578
578
|
return children(() => props.children);
|
|
579
579
|
}),
|
|
580
|
-
|
|
580
|
+
undefined
|
|
581
581
|
);
|
|
582
582
|
return res;
|
|
583
583
|
};
|
|
@@ -660,6 +660,8 @@ var useWalletManager = () => {
|
|
|
660
660
|
};
|
|
661
661
|
function useWallet() {
|
|
662
662
|
const manager = createMemo(() => useWalletManager());
|
|
663
|
+
const managerStatus = useStore(manager().store, (state) => state.managerStatus);
|
|
664
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
663
665
|
const algodClient = useStore(manager().store, (state) => state.algodClient);
|
|
664
666
|
const walletStore = useStore(manager().store, (state) => state.wallets);
|
|
665
667
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -722,7 +724,8 @@ function useWallet() {
|
|
|
722
724
|
setActiveNetwork,
|
|
723
725
|
signTransactions,
|
|
724
726
|
transactionSigner,
|
|
725
|
-
wallets: manager().wallets
|
|
727
|
+
wallets: manager().wallets,
|
|
728
|
+
isReady
|
|
726
729
|
};
|
|
727
730
|
}
|
|
728
731
|
|
package/dist/dev.jsx
CHANGED
|
@@ -603,6 +603,8 @@ var useWalletManager = () => {
|
|
|
603
603
|
};
|
|
604
604
|
function useWallet() {
|
|
605
605
|
const manager = createMemo(() => useWalletManager());
|
|
606
|
+
const managerStatus = useStore(manager().store, (state) => state.managerStatus);
|
|
607
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
606
608
|
const algodClient = useStore(manager().store, (state) => state.algodClient);
|
|
607
609
|
const walletStore = useStore(manager().store, (state) => state.wallets);
|
|
608
610
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -660,7 +662,8 @@ function useWallet() {
|
|
|
660
662
|
setActiveNetwork,
|
|
661
663
|
signTransactions,
|
|
662
664
|
transactionSigner,
|
|
663
|
-
wallets: manager().wallets
|
|
665
|
+
wallets: manager().wallets,
|
|
666
|
+
isReady
|
|
664
667
|
};
|
|
665
668
|
}
|
|
666
669
|
export {
|
package/dist/index.cjs
CHANGED
|
@@ -10,9 +10,9 @@ var algosdk__default = /*#__PURE__*/_interopDefault(algosdk);
|
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
|
|
12
12
|
var sharedConfig = {
|
|
13
|
-
context:
|
|
14
|
-
registry:
|
|
15
|
-
effects:
|
|
13
|
+
context: undefined,
|
|
14
|
+
registry: undefined,
|
|
15
|
+
effects: undefined,
|
|
16
16
|
done: false,
|
|
17
17
|
getContextId() {
|
|
18
18
|
return getContextId(this.context.count);
|
|
@@ -63,7 +63,7 @@ function createSignal(value, options) {
|
|
|
63
63
|
value,
|
|
64
64
|
observers: null,
|
|
65
65
|
observerSlots: null,
|
|
66
|
-
comparator: options.equals ||
|
|
66
|
+
comparator: options.equals || undefined
|
|
67
67
|
};
|
|
68
68
|
const setter = (value2) => {
|
|
69
69
|
if (typeof value2 === "function") {
|
|
@@ -91,7 +91,7 @@ function createMemo(fn, value, options) {
|
|
|
91
91
|
const c = createComputation(fn, value, true, 0);
|
|
92
92
|
c.observers = null;
|
|
93
93
|
c.observerSlots = null;
|
|
94
|
-
c.comparator = options.equals ||
|
|
94
|
+
c.comparator = options.equals || undefined;
|
|
95
95
|
if (Scheduler && Transition && Transition.running) {
|
|
96
96
|
c.tState = STALE;
|
|
97
97
|
Updates.push(c);
|
|
@@ -143,7 +143,7 @@ function startTransition(fn) {
|
|
|
143
143
|
}
|
|
144
144
|
runUpdates(fn);
|
|
145
145
|
Listener = Owner = null;
|
|
146
|
-
return t ? t.done :
|
|
146
|
+
return t ? t.done : undefined;
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
@@ -157,7 +157,7 @@ function createContext(defaultValue, options) {
|
|
|
157
157
|
}
|
|
158
158
|
function useContext(context) {
|
|
159
159
|
let value;
|
|
160
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !==
|
|
160
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
161
161
|
}
|
|
162
162
|
function children(fn) {
|
|
163
163
|
const children2 = createMemo(fn);
|
|
@@ -266,7 +266,7 @@ function runComputation(node, value, time) {
|
|
|
266
266
|
if (Transition && Transition.running) {
|
|
267
267
|
node.tState = STALE;
|
|
268
268
|
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
269
|
-
node.tOwned =
|
|
269
|
+
node.tOwned = undefined;
|
|
270
270
|
} else {
|
|
271
271
|
node.state = STALE;
|
|
272
272
|
node.owned && node.owned.forEach(cleanNode);
|
|
@@ -318,7 +318,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
if (ExternalSourceConfig && c.fn) {
|
|
321
|
-
const [track, trigger] = createSignal(
|
|
321
|
+
const [track, trigger] = createSignal(undefined, {
|
|
322
322
|
equals: false
|
|
323
323
|
});
|
|
324
324
|
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
@@ -583,7 +583,7 @@ function createProvider(id, options) {
|
|
|
583
583
|
};
|
|
584
584
|
return children(() => props.children);
|
|
585
585
|
}),
|
|
586
|
-
|
|
586
|
+
undefined
|
|
587
587
|
);
|
|
588
588
|
return res;
|
|
589
589
|
};
|
|
@@ -665,6 +665,8 @@ exports.useWalletManager = () => {
|
|
|
665
665
|
};
|
|
666
666
|
function useWallet() {
|
|
667
667
|
const manager = createMemo(() => exports.useWalletManager());
|
|
668
|
+
const managerStatus = solidStore.useStore(manager().store, (state) => state.managerStatus);
|
|
669
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
668
670
|
const algodClient = solidStore.useStore(manager().store, (state) => state.algodClient);
|
|
669
671
|
const walletStore = solidStore.useStore(manager().store, (state) => state.wallets);
|
|
670
672
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -725,7 +727,8 @@ function useWallet() {
|
|
|
725
727
|
setActiveNetwork,
|
|
726
728
|
signTransactions,
|
|
727
729
|
transactionSigner,
|
|
728
|
-
wallets: manager().wallets
|
|
730
|
+
wallets: manager().wallets,
|
|
731
|
+
isReady
|
|
729
732
|
};
|
|
730
733
|
}
|
|
731
734
|
|
package/dist/index.d.cts
CHANGED
|
@@ -40,6 +40,7 @@ declare function useWallet(): {
|
|
|
40
40
|
signTransactions: <T extends algosdk.Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
|
|
41
41
|
transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
|
|
42
42
|
wallets: _txnlab_use_wallet.BaseWallet[];
|
|
43
|
+
isReady: solid_js.Accessor<boolean>;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
export { type Wallet, WalletProvider, useWallet, useWalletManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ declare function useWallet(): {
|
|
|
40
40
|
signTransactions: <T extends algosdk.Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
|
|
41
41
|
transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
|
|
42
42
|
wallets: _txnlab_use_wallet.BaseWallet[];
|
|
43
|
+
isReady: solid_js.Accessor<boolean>;
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
export { type Wallet, WalletProvider, useWallet, useWalletManager };
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ export * from '@txnlab/use-wallet';
|
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
|
-
context:
|
|
8
|
-
registry:
|
|
9
|
-
effects:
|
|
7
|
+
context: undefined,
|
|
8
|
+
registry: undefined,
|
|
9
|
+
effects: undefined,
|
|
10
10
|
done: false,
|
|
11
11
|
getContextId() {
|
|
12
12
|
return getContextId(this.context.count);
|
|
@@ -57,7 +57,7 @@ function createSignal(value, options) {
|
|
|
57
57
|
value,
|
|
58
58
|
observers: null,
|
|
59
59
|
observerSlots: null,
|
|
60
|
-
comparator: options.equals ||
|
|
60
|
+
comparator: options.equals || undefined
|
|
61
61
|
};
|
|
62
62
|
const setter = (value2) => {
|
|
63
63
|
if (typeof value2 === "function") {
|
|
@@ -85,7 +85,7 @@ function createMemo(fn, value, options) {
|
|
|
85
85
|
const c = createComputation(fn, value, true, 0);
|
|
86
86
|
c.observers = null;
|
|
87
87
|
c.observerSlots = null;
|
|
88
|
-
c.comparator = options.equals ||
|
|
88
|
+
c.comparator = options.equals || undefined;
|
|
89
89
|
if (Scheduler && Transition && Transition.running) {
|
|
90
90
|
c.tState = STALE;
|
|
91
91
|
Updates.push(c);
|
|
@@ -137,7 +137,7 @@ function startTransition(fn) {
|
|
|
137
137
|
}
|
|
138
138
|
runUpdates(fn);
|
|
139
139
|
Listener = Owner = null;
|
|
140
|
-
return t ? t.done :
|
|
140
|
+
return t ? t.done : undefined;
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
var [transPending, setTransPending] = /* @__PURE__ */ createSignal(false);
|
|
@@ -151,7 +151,7 @@ function createContext(defaultValue, options) {
|
|
|
151
151
|
}
|
|
152
152
|
function useContext(context) {
|
|
153
153
|
let value;
|
|
154
|
-
return Owner && Owner.context && (value = Owner.context[context.id]) !==
|
|
154
|
+
return Owner && Owner.context && (value = Owner.context[context.id]) !== undefined ? value : context.defaultValue;
|
|
155
155
|
}
|
|
156
156
|
function children(fn) {
|
|
157
157
|
const children2 = createMemo(fn);
|
|
@@ -260,7 +260,7 @@ function runComputation(node, value, time) {
|
|
|
260
260
|
if (Transition && Transition.running) {
|
|
261
261
|
node.tState = STALE;
|
|
262
262
|
node.tOwned && node.tOwned.forEach(cleanNode);
|
|
263
|
-
node.tOwned =
|
|
263
|
+
node.tOwned = undefined;
|
|
264
264
|
} else {
|
|
265
265
|
node.state = STALE;
|
|
266
266
|
node.owned && node.owned.forEach(cleanNode);
|
|
@@ -312,7 +312,7 @@ function createComputation(fn, init, pure, state = STALE, options) {
|
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
if (ExternalSourceConfig && c.fn) {
|
|
315
|
-
const [track, trigger] = createSignal(
|
|
315
|
+
const [track, trigger] = createSignal(undefined, {
|
|
316
316
|
equals: false
|
|
317
317
|
});
|
|
318
318
|
const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
|
|
@@ -577,7 +577,7 @@ function createProvider(id, options) {
|
|
|
577
577
|
};
|
|
578
578
|
return children(() => props.children);
|
|
579
579
|
}),
|
|
580
|
-
|
|
580
|
+
undefined
|
|
581
581
|
);
|
|
582
582
|
return res;
|
|
583
583
|
};
|
|
@@ -659,6 +659,8 @@ var useWalletManager = () => {
|
|
|
659
659
|
};
|
|
660
660
|
function useWallet() {
|
|
661
661
|
const manager = createMemo(() => useWalletManager());
|
|
662
|
+
const managerStatus = useStore(manager().store, (state) => state.managerStatus);
|
|
663
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
662
664
|
const algodClient = useStore(manager().store, (state) => state.algodClient);
|
|
663
665
|
const walletStore = useStore(manager().store, (state) => state.wallets);
|
|
664
666
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -719,7 +721,8 @@ function useWallet() {
|
|
|
719
721
|
setActiveNetwork,
|
|
720
722
|
signTransactions,
|
|
721
723
|
transactionSigner,
|
|
722
|
-
wallets: manager().wallets
|
|
724
|
+
wallets: manager().wallets,
|
|
725
|
+
isReady
|
|
723
726
|
};
|
|
724
727
|
}
|
|
725
728
|
|
package/dist/index.jsx
CHANGED
|
@@ -602,6 +602,8 @@ var useWalletManager = () => {
|
|
|
602
602
|
};
|
|
603
603
|
function useWallet() {
|
|
604
604
|
const manager = createMemo(() => useWalletManager());
|
|
605
|
+
const managerStatus = useStore(manager().store, (state) => state.managerStatus);
|
|
606
|
+
const isReady = createMemo(() => managerStatus() === "ready");
|
|
605
607
|
const algodClient = useStore(manager().store, (state) => state.algodClient);
|
|
606
608
|
const walletStore = useStore(manager().store, (state) => state.wallets);
|
|
607
609
|
const walletState = (walletId) => walletStore()[walletId] || null;
|
|
@@ -657,7 +659,8 @@ function useWallet() {
|
|
|
657
659
|
setActiveNetwork,
|
|
658
660
|
signTransactions,
|
|
659
661
|
transactionSigner,
|
|
660
|
-
wallets: manager().wallets
|
|
662
|
+
wallets: manager().wallets,
|
|
663
|
+
isReady
|
|
661
664
|
};
|
|
662
665
|
}
|
|
663
666
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txnlab/use-wallet-solid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.12.0",
|
|
4
4
|
"description": "Solid.js library for integrating Algorand wallets into decentralized applications",
|
|
5
5
|
"author": "Doug Richar <drichar@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"dist"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@tanstack/solid-store": "0.
|
|
57
|
-
"@txnlab/use-wallet": "3.
|
|
56
|
+
"@tanstack/solid-store": "0.7.0",
|
|
57
|
+
"@txnlab/use-wallet": "3.12.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@solidjs/testing-library": "0.8.10",
|
|
@@ -62,18 +62,18 @@
|
|
|
62
62
|
"solid-js": "1.9.3",
|
|
63
63
|
"tsup": "8.3.5",
|
|
64
64
|
"tsup-preset-solid": "2.2.0",
|
|
65
|
-
"typescript": "5.
|
|
65
|
+
"typescript": "5.7.2"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@blockshake/defly-connect": "^1.1.6",
|
|
69
|
-
"@magic-ext/algorand": "^23.
|
|
69
|
+
"@magic-ext/algorand": "^23.20.0",
|
|
70
70
|
"@perawallet/connect": "^1.3.5",
|
|
71
71
|
"@perawallet/connect-beta": "^2.0.21",
|
|
72
72
|
"@walletconnect/modal": "^2.7.0",
|
|
73
|
-
"@walletconnect/sign-client": "^2.17.
|
|
73
|
+
"@walletconnect/sign-client": "^2.17.3",
|
|
74
74
|
"algosdk": "^2.7.0",
|
|
75
75
|
"lute-connect": "^1.4.1",
|
|
76
|
-
"magic-sdk": "^28.
|
|
76
|
+
"magic-sdk": "^28.21.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependenciesMeta": {
|
|
79
79
|
"@blockshake/defly-connect": {
|