@txnlab/use-wallet-solid 3.10.1 → 3.11.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 +63 -19
- package/dist/dev.js +63 -19
- package/dist/dev.jsx +99 -7214
- package/dist/index.cjs +738 -0
- package/dist/index.js +578 -126270
- package/dist/index.jsx +25 -16
- package/package.json +8 -8
- package/dist/chunk/2PXYBV4S.jsx +0 -883
- package/dist/chunk/3J6PRJNJ.mjs +0 -779
- package/dist/chunk/3YPORCKB.mjs +0 -9324
- package/dist/chunk/ASHSTAAQ.mjs +0 -663
- package/dist/chunk/B3UVEMEI.mjs +0 -835
- package/dist/chunk/BCEWTVZW.mjs +0 -16644
- package/dist/chunk/CL7LX3O4.jsx +0 -50
- package/dist/chunk/DTJ3ICHE.mjs +0 -9
- package/dist/chunk/FNEO6DUO.jsx +0 -14
- package/dist/chunk/GZ2UQYCA.jsx +0 -669
- package/dist/chunk/JH7OXUIR.jsx +0 -9903
- package/dist/chunk/NVDRUCO3.mjs +0 -26243
- package/dist/chunk/QI4NUZHP.jsx +0 -5862
- package/dist/chunk/RBDWDJFQ.jsx +0 -17199
- package/dist/chunk/UC3ZO4ZH.jsx +0 -802
- package/dist/chunk/VDTK67K2.jsx +0 -26395
- package/dist/chunk/VJFC7YOA.jsx +0 -2033
- package/dist/chunk/VN53D6CR.mjs +0 -2017
- package/dist/chunk/VQQ4CVTZ.mjs +0 -5782
- package/dist/chunk/ZKJS654W.mjs +0 -42
- package/dist/dist/25NR5LQ4.jsx +0 -31
- package/dist/dist/3QPHXTX5.jsx +0 -5761
- package/dist/dist/5PS5TLM7.mjs +0 -5693
- package/dist/dist/COR5WEDJ.jsx +0 -8960
- package/dist/dist/DHO5MJBE.mjs +0 -2155
- package/dist/dist/DZNWO3EY.mjs +0 -1122
- package/dist/dist/H257YD3M.mjs +0 -17103
- package/dist/dist/MZFJYXGG.mjs +0 -25
- package/dist/dist/NMTOQNMX.jsx +0 -17167
- package/dist/dist/OHC5XXJA.jsx +0 -2203
- package/dist/dist/XMT4I4HQ.jsx +0 -1139
- package/dist/dist/YFXWD6WV.mjs +0 -8864
- package/dist/index.es/OIZOTLR7.mjs +0 -9547
- package/dist/index.es/R4EQEDY3.jsx +0 -9843
- package/dist/index.mjs +0 -7747
- package/dist/lib/H7DSBKBW.mjs +0 -10583
- package/dist/lib/OYOWTODQ.jsx +0 -10641
- package/dist/main.esm/27PE3FUE.jsx +0 -114
- package/dist/main.esm/FGHXFDWN.mjs +0 -112
package/dist/index.jsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { useStore } from "@tanstack/solid-store";
|
|
3
3
|
import algosdk from "algosdk";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
5
|
+
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -229,7 +229,11 @@ function updateComputation(node) {
|
|
|
229
229
|
if (!node.fn) return;
|
|
230
230
|
cleanNode(node);
|
|
231
231
|
const time = ExecCount;
|
|
232
|
-
runComputation(
|
|
232
|
+
runComputation(
|
|
233
|
+
node,
|
|
234
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
235
|
+
time
|
|
236
|
+
);
|
|
233
237
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
234
238
|
queueMicrotask(() => {
|
|
235
239
|
runUpdates(() => {
|
|
@@ -460,7 +464,8 @@ function lookUpstream(node, ignore) {
|
|
|
460
464
|
if (source.sources) {
|
|
461
465
|
const state = runningTransition ? source.tState : source.state;
|
|
462
466
|
if (state === STALE) {
|
|
463
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
467
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
468
|
+
runTop(source);
|
|
464
469
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
465
470
|
}
|
|
466
471
|
}
|
|
@@ -536,12 +541,13 @@ function handleError(err, owner = Owner) {
|
|
|
536
541
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
537
542
|
const error = castError(err);
|
|
538
543
|
if (!fns) throw error;
|
|
539
|
-
if (Effects)
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
544
|
+
if (Effects)
|
|
545
|
+
Effects.push({
|
|
546
|
+
fn() {
|
|
547
|
+
runErrors(error, fns, owner);
|
|
548
|
+
},
|
|
549
|
+
state: STALE
|
|
550
|
+
});
|
|
545
551
|
else runErrors(error, fns, owner);
|
|
546
552
|
}
|
|
547
553
|
function resolveChildren(children2) {
|
|
@@ -559,13 +565,16 @@ function resolveChildren(children2) {
|
|
|
559
565
|
function createProvider(id, options) {
|
|
560
566
|
return function provider(props) {
|
|
561
567
|
let res;
|
|
562
|
-
createRenderEffect(
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
568
|
+
createRenderEffect(
|
|
569
|
+
() => res = untrack(() => {
|
|
570
|
+
Owner.context = {
|
|
571
|
+
...Owner.context,
|
|
572
|
+
[id]: props.value
|
|
573
|
+
};
|
|
574
|
+
return children(() => props.children);
|
|
575
|
+
}),
|
|
576
|
+
void 0
|
|
577
|
+
);
|
|
569
578
|
return res;
|
|
570
579
|
};
|
|
571
580
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txnlab/use-wallet-solid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.11.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,27 +53,27 @@
|
|
|
53
53
|
"dist"
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
|
-
"@tanstack/solid-store": "0.
|
|
57
|
-
"@txnlab/use-wallet": "3.
|
|
56
|
+
"@tanstack/solid-store": "0.6.0",
|
|
57
|
+
"@txnlab/use-wallet": "3.11.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@solidjs/testing-library": "0.8.10",
|
|
61
61
|
"algosdk": "2.9.0",
|
|
62
|
-
"solid-js": "1.9.
|
|
63
|
-
"tsup": "8.3.
|
|
62
|
+
"solid-js": "1.9.3",
|
|
63
|
+
"tsup": "8.3.5",
|
|
64
64
|
"tsup-preset-solid": "2.2.0",
|
|
65
65
|
"typescript": "5.6.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@blockshake/defly-connect": "^1.1.6",
|
|
69
|
-
"@magic-ext/algorand": "^23.
|
|
69
|
+
"@magic-ext/algorand": "^23.18.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.2",
|
|
74
74
|
"algosdk": "^2.7.0",
|
|
75
75
|
"lute-connect": "^1.4.1",
|
|
76
|
-
"magic-sdk": "^28.
|
|
76
|
+
"magic-sdk": "^28.19.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependenciesMeta": {
|
|
79
79
|
"@blockshake/defly-connect": {
|