@txnlab/use-wallet-solid 3.8.0 → 3.10.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 +19 -63
- package/dist/dev.js +19 -63
- package/dist/dev.jsx +16 -25
- package/dist/index.cjs +19 -63
- package/dist/index.js +19 -63
- package/dist/index.jsx +16 -25
- package/package.json +8 -8
package/dist/dev.cjs
CHANGED
|
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
8
8
|
|
|
9
9
|
var algosdk__default = /*#__PURE__*/_interopDefault(algosdk);
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
11
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/dist/solid.js
|
|
12
12
|
var sharedConfig = {
|
|
13
13
|
context: void 0,
|
|
14
14
|
registry: void 0,
|
|
@@ -239,11 +239,7 @@ function updateComputation(node) {
|
|
|
239
239
|
if (!node.fn) return;
|
|
240
240
|
cleanNode(node);
|
|
241
241
|
const time = ExecCount;
|
|
242
|
-
runComputation(
|
|
243
|
-
node,
|
|
244
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
245
|
-
time
|
|
246
|
-
);
|
|
242
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
247
243
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
248
244
|
queueMicrotask(() => {
|
|
249
245
|
runUpdates(() => {
|
|
@@ -474,8 +470,7 @@ function lookUpstream(node, ignore) {
|
|
|
474
470
|
if (source.sources) {
|
|
475
471
|
const state = runningTransition ? source.tState : source.state;
|
|
476
472
|
if (state === STALE) {
|
|
477
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
478
|
-
runTop(source);
|
|
473
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
479
474
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
480
475
|
}
|
|
481
476
|
}
|
|
@@ -551,13 +546,12 @@ function handleError(err, owner = Owner) {
|
|
|
551
546
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
552
547
|
const error = castError(err);
|
|
553
548
|
if (!fns) throw error;
|
|
554
|
-
if (Effects)
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
});
|
|
549
|
+
if (Effects) Effects.push({
|
|
550
|
+
fn() {
|
|
551
|
+
runErrors(error, fns, owner);
|
|
552
|
+
},
|
|
553
|
+
state: STALE
|
|
554
|
+
});
|
|
561
555
|
else runErrors(error, fns, owner);
|
|
562
556
|
}
|
|
563
557
|
function resolveChildren(children2) {
|
|
@@ -575,16 +569,13 @@ function resolveChildren(children2) {
|
|
|
575
569
|
function createProvider(id, options) {
|
|
576
570
|
return function provider(props) {
|
|
577
571
|
let res;
|
|
578
|
-
createRenderEffect(
|
|
579
|
-
|
|
580
|
-
Owner.context
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}),
|
|
586
|
-
void 0
|
|
587
|
-
);
|
|
572
|
+
createRenderEffect(() => res = untrack(() => {
|
|
573
|
+
Owner.context = {
|
|
574
|
+
...Owner.context,
|
|
575
|
+
[id]: props.value
|
|
576
|
+
};
|
|
577
|
+
return children(() => props.children);
|
|
578
|
+
}), void 0);
|
|
588
579
|
return res;
|
|
589
580
|
};
|
|
590
581
|
}
|
|
@@ -602,44 +593,9 @@ function createComponent(Comp, props) {
|
|
|
602
593
|
return untrack(() => Comp(props || {}));
|
|
603
594
|
}
|
|
604
595
|
|
|
605
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
606
|
-
var booleans = [
|
|
607
|
-
|
|
608
|
-
"async",
|
|
609
|
-
"autofocus",
|
|
610
|
-
"autoplay",
|
|
611
|
-
"checked",
|
|
612
|
-
"controls",
|
|
613
|
-
"default",
|
|
614
|
-
"disabled",
|
|
615
|
-
"formnovalidate",
|
|
616
|
-
"hidden",
|
|
617
|
-
"indeterminate",
|
|
618
|
-
"inert",
|
|
619
|
-
"ismap",
|
|
620
|
-
"loop",
|
|
621
|
-
"multiple",
|
|
622
|
-
"muted",
|
|
623
|
-
"nomodule",
|
|
624
|
-
"novalidate",
|
|
625
|
-
"open",
|
|
626
|
-
"playsinline",
|
|
627
|
-
"readonly",
|
|
628
|
-
"required",
|
|
629
|
-
"reversed",
|
|
630
|
-
"seamless",
|
|
631
|
-
"selected"
|
|
632
|
-
];
|
|
633
|
-
/* @__PURE__ */ new Set([
|
|
634
|
-
"className",
|
|
635
|
-
"value",
|
|
636
|
-
"readOnly",
|
|
637
|
-
"formNoValidate",
|
|
638
|
-
"isMap",
|
|
639
|
-
"noModule",
|
|
640
|
-
"playsInline",
|
|
641
|
-
...booleans
|
|
642
|
-
]);
|
|
596
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/web/dist/web.js
|
|
597
|
+
var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
598
|
+
/* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
643
599
|
var WalletContext = createContext();
|
|
644
600
|
exports.WalletProvider = (props) => {
|
|
645
601
|
const store = () => props.manager;
|
package/dist/dev.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useStore } from '@tanstack/solid-store';
|
|
|
2
2
|
import algosdk from 'algosdk';
|
|
3
3
|
export * from '@txnlab/use-wallet';
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
5
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -233,11 +233,7 @@ function updateComputation(node) {
|
|
|
233
233
|
if (!node.fn) return;
|
|
234
234
|
cleanNode(node);
|
|
235
235
|
const time = ExecCount;
|
|
236
|
-
runComputation(
|
|
237
|
-
node,
|
|
238
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
239
|
-
time
|
|
240
|
-
);
|
|
236
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
241
237
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
242
238
|
queueMicrotask(() => {
|
|
243
239
|
runUpdates(() => {
|
|
@@ -468,8 +464,7 @@ function lookUpstream(node, ignore) {
|
|
|
468
464
|
if (source.sources) {
|
|
469
465
|
const state = runningTransition ? source.tState : source.state;
|
|
470
466
|
if (state === STALE) {
|
|
471
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
472
|
-
runTop(source);
|
|
467
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
473
468
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
474
469
|
}
|
|
475
470
|
}
|
|
@@ -545,13 +540,12 @@ function handleError(err, owner = Owner) {
|
|
|
545
540
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
546
541
|
const error = castError(err);
|
|
547
542
|
if (!fns) throw error;
|
|
548
|
-
if (Effects)
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
});
|
|
543
|
+
if (Effects) Effects.push({
|
|
544
|
+
fn() {
|
|
545
|
+
runErrors(error, fns, owner);
|
|
546
|
+
},
|
|
547
|
+
state: STALE
|
|
548
|
+
});
|
|
555
549
|
else runErrors(error, fns, owner);
|
|
556
550
|
}
|
|
557
551
|
function resolveChildren(children2) {
|
|
@@ -569,16 +563,13 @@ function resolveChildren(children2) {
|
|
|
569
563
|
function createProvider(id, options) {
|
|
570
564
|
return function provider(props) {
|
|
571
565
|
let res;
|
|
572
|
-
createRenderEffect(
|
|
573
|
-
|
|
574
|
-
Owner.context
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}),
|
|
580
|
-
void 0
|
|
581
|
-
);
|
|
566
|
+
createRenderEffect(() => res = untrack(() => {
|
|
567
|
+
Owner.context = {
|
|
568
|
+
...Owner.context,
|
|
569
|
+
[id]: props.value
|
|
570
|
+
};
|
|
571
|
+
return children(() => props.children);
|
|
572
|
+
}), void 0);
|
|
582
573
|
return res;
|
|
583
574
|
};
|
|
584
575
|
}
|
|
@@ -596,44 +587,9 @@ function createComponent(Comp, props) {
|
|
|
596
587
|
return untrack(() => Comp(props || {}));
|
|
597
588
|
}
|
|
598
589
|
|
|
599
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
600
|
-
var booleans = [
|
|
601
|
-
|
|
602
|
-
"async",
|
|
603
|
-
"autofocus",
|
|
604
|
-
"autoplay",
|
|
605
|
-
"checked",
|
|
606
|
-
"controls",
|
|
607
|
-
"default",
|
|
608
|
-
"disabled",
|
|
609
|
-
"formnovalidate",
|
|
610
|
-
"hidden",
|
|
611
|
-
"indeterminate",
|
|
612
|
-
"inert",
|
|
613
|
-
"ismap",
|
|
614
|
-
"loop",
|
|
615
|
-
"multiple",
|
|
616
|
-
"muted",
|
|
617
|
-
"nomodule",
|
|
618
|
-
"novalidate",
|
|
619
|
-
"open",
|
|
620
|
-
"playsinline",
|
|
621
|
-
"readonly",
|
|
622
|
-
"required",
|
|
623
|
-
"reversed",
|
|
624
|
-
"seamless",
|
|
625
|
-
"selected"
|
|
626
|
-
];
|
|
627
|
-
/* @__PURE__ */ new Set([
|
|
628
|
-
"className",
|
|
629
|
-
"value",
|
|
630
|
-
"readOnly",
|
|
631
|
-
"formNoValidate",
|
|
632
|
-
"isMap",
|
|
633
|
-
"noModule",
|
|
634
|
-
"playsInline",
|
|
635
|
-
...booleans
|
|
636
|
-
]);
|
|
590
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/web/dist/web.js
|
|
591
|
+
var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
592
|
+
/* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
637
593
|
var WalletContext = createContext();
|
|
638
594
|
var WalletProvider = (props) => {
|
|
639
595
|
const store = () => props.manager;
|
package/dist/dev.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.2/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -229,11 +229,7 @@ function updateComputation(node) {
|
|
|
229
229
|
if (!node.fn) return;
|
|
230
230
|
cleanNode(node);
|
|
231
231
|
const time = ExecCount;
|
|
232
|
-
runComputation(
|
|
233
|
-
node,
|
|
234
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
235
|
-
time
|
|
236
|
-
);
|
|
232
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
237
233
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
238
234
|
queueMicrotask(() => {
|
|
239
235
|
runUpdates(() => {
|
|
@@ -464,8 +460,7 @@ function lookUpstream(node, ignore) {
|
|
|
464
460
|
if (source.sources) {
|
|
465
461
|
const state = runningTransition ? source.tState : source.state;
|
|
466
462
|
if (state === STALE) {
|
|
467
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
468
|
-
runTop(source);
|
|
463
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
469
464
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
470
465
|
}
|
|
471
466
|
}
|
|
@@ -541,13 +536,12 @@ function handleError(err, owner = Owner) {
|
|
|
541
536
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
542
537
|
const error = castError(err);
|
|
543
538
|
if (!fns) throw error;
|
|
544
|
-
if (Effects)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
539
|
+
if (Effects) Effects.push({
|
|
540
|
+
fn() {
|
|
541
|
+
runErrors(error, fns, owner);
|
|
542
|
+
},
|
|
543
|
+
state: STALE
|
|
544
|
+
});
|
|
551
545
|
else runErrors(error, fns, owner);
|
|
552
546
|
}
|
|
553
547
|
function resolveChildren(children2) {
|
|
@@ -565,16 +559,13 @@ function resolveChildren(children2) {
|
|
|
565
559
|
function createProvider(id, options) {
|
|
566
560
|
return function provider(props) {
|
|
567
561
|
let res;
|
|
568
|
-
createRenderEffect(
|
|
569
|
-
|
|
570
|
-
Owner.context
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}),
|
|
576
|
-
void 0
|
|
577
|
-
);
|
|
562
|
+
createRenderEffect(() => res = untrack(() => {
|
|
563
|
+
Owner.context = {
|
|
564
|
+
...Owner.context,
|
|
565
|
+
[id]: props.value
|
|
566
|
+
};
|
|
567
|
+
return children(() => props.children);
|
|
568
|
+
}), void 0);
|
|
578
569
|
return res;
|
|
579
570
|
};
|
|
580
571
|
}
|
package/dist/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
8
8
|
|
|
9
9
|
var algosdk__default = /*#__PURE__*/_interopDefault(algosdk);
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
11
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/dist/solid.js
|
|
12
12
|
var sharedConfig = {
|
|
13
13
|
context: void 0,
|
|
14
14
|
registry: void 0,
|
|
@@ -239,11 +239,7 @@ function updateComputation(node) {
|
|
|
239
239
|
if (!node.fn) return;
|
|
240
240
|
cleanNode(node);
|
|
241
241
|
const time = ExecCount;
|
|
242
|
-
runComputation(
|
|
243
|
-
node,
|
|
244
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
245
|
-
time
|
|
246
|
-
);
|
|
242
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
247
243
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
248
244
|
queueMicrotask(() => {
|
|
249
245
|
runUpdates(() => {
|
|
@@ -474,8 +470,7 @@ function lookUpstream(node, ignore) {
|
|
|
474
470
|
if (source.sources) {
|
|
475
471
|
const state = runningTransition ? source.tState : source.state;
|
|
476
472
|
if (state === STALE) {
|
|
477
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
478
|
-
runTop(source);
|
|
473
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
479
474
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
480
475
|
}
|
|
481
476
|
}
|
|
@@ -551,13 +546,12 @@ function handleError(err, owner = Owner) {
|
|
|
551
546
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
552
547
|
const error = castError(err);
|
|
553
548
|
if (!fns) throw error;
|
|
554
|
-
if (Effects)
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
});
|
|
549
|
+
if (Effects) Effects.push({
|
|
550
|
+
fn() {
|
|
551
|
+
runErrors(error, fns, owner);
|
|
552
|
+
},
|
|
553
|
+
state: STALE
|
|
554
|
+
});
|
|
561
555
|
else runErrors(error, fns, owner);
|
|
562
556
|
}
|
|
563
557
|
function resolveChildren(children2) {
|
|
@@ -575,16 +569,13 @@ function resolveChildren(children2) {
|
|
|
575
569
|
function createProvider(id, options) {
|
|
576
570
|
return function provider(props) {
|
|
577
571
|
let res;
|
|
578
|
-
createRenderEffect(
|
|
579
|
-
|
|
580
|
-
Owner.context
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
}),
|
|
586
|
-
void 0
|
|
587
|
-
);
|
|
572
|
+
createRenderEffect(() => res = untrack(() => {
|
|
573
|
+
Owner.context = {
|
|
574
|
+
...Owner.context,
|
|
575
|
+
[id]: props.value
|
|
576
|
+
};
|
|
577
|
+
return children(() => props.children);
|
|
578
|
+
}), void 0);
|
|
588
579
|
return res;
|
|
589
580
|
};
|
|
590
581
|
}
|
|
@@ -602,44 +593,9 @@ function createComponent(Comp, props) {
|
|
|
602
593
|
return untrack(() => Comp(props || {}));
|
|
603
594
|
}
|
|
604
595
|
|
|
605
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
606
|
-
var booleans = [
|
|
607
|
-
|
|
608
|
-
"async",
|
|
609
|
-
"autofocus",
|
|
610
|
-
"autoplay",
|
|
611
|
-
"checked",
|
|
612
|
-
"controls",
|
|
613
|
-
"default",
|
|
614
|
-
"disabled",
|
|
615
|
-
"formnovalidate",
|
|
616
|
-
"hidden",
|
|
617
|
-
"indeterminate",
|
|
618
|
-
"inert",
|
|
619
|
-
"ismap",
|
|
620
|
-
"loop",
|
|
621
|
-
"multiple",
|
|
622
|
-
"muted",
|
|
623
|
-
"nomodule",
|
|
624
|
-
"novalidate",
|
|
625
|
-
"open",
|
|
626
|
-
"playsinline",
|
|
627
|
-
"readonly",
|
|
628
|
-
"required",
|
|
629
|
-
"reversed",
|
|
630
|
-
"seamless",
|
|
631
|
-
"selected"
|
|
632
|
-
];
|
|
633
|
-
/* @__PURE__ */ new Set([
|
|
634
|
-
"className",
|
|
635
|
-
"value",
|
|
636
|
-
"readOnly",
|
|
637
|
-
"formNoValidate",
|
|
638
|
-
"isMap",
|
|
639
|
-
"noModule",
|
|
640
|
-
"playsInline",
|
|
641
|
-
...booleans
|
|
642
|
-
]);
|
|
596
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/web/dist/web.js
|
|
597
|
+
var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
598
|
+
/* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
643
599
|
var WalletContext = createContext();
|
|
644
600
|
exports.WalletProvider = (props) => {
|
|
645
601
|
const store = () => props.manager;
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { useStore } from '@tanstack/solid-store';
|
|
|
2
2
|
import algosdk from 'algosdk';
|
|
3
3
|
export * from '@txnlab/use-wallet';
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
5
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -233,11 +233,7 @@ function updateComputation(node) {
|
|
|
233
233
|
if (!node.fn) return;
|
|
234
234
|
cleanNode(node);
|
|
235
235
|
const time = ExecCount;
|
|
236
|
-
runComputation(
|
|
237
|
-
node,
|
|
238
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
239
|
-
time
|
|
240
|
-
);
|
|
236
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
241
237
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
242
238
|
queueMicrotask(() => {
|
|
243
239
|
runUpdates(() => {
|
|
@@ -468,8 +464,7 @@ function lookUpstream(node, ignore) {
|
|
|
468
464
|
if (source.sources) {
|
|
469
465
|
const state = runningTransition ? source.tState : source.state;
|
|
470
466
|
if (state === STALE) {
|
|
471
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
472
|
-
runTop(source);
|
|
467
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
473
468
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
474
469
|
}
|
|
475
470
|
}
|
|
@@ -545,13 +540,12 @@ function handleError(err, owner = Owner) {
|
|
|
545
540
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
546
541
|
const error = castError(err);
|
|
547
542
|
if (!fns) throw error;
|
|
548
|
-
if (Effects)
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
});
|
|
543
|
+
if (Effects) Effects.push({
|
|
544
|
+
fn() {
|
|
545
|
+
runErrors(error, fns, owner);
|
|
546
|
+
},
|
|
547
|
+
state: STALE
|
|
548
|
+
});
|
|
555
549
|
else runErrors(error, fns, owner);
|
|
556
550
|
}
|
|
557
551
|
function resolveChildren(children2) {
|
|
@@ -569,16 +563,13 @@ function resolveChildren(children2) {
|
|
|
569
563
|
function createProvider(id, options) {
|
|
570
564
|
return function provider(props) {
|
|
571
565
|
let res;
|
|
572
|
-
createRenderEffect(
|
|
573
|
-
|
|
574
|
-
Owner.context
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}),
|
|
580
|
-
void 0
|
|
581
|
-
);
|
|
566
|
+
createRenderEffect(() => res = untrack(() => {
|
|
567
|
+
Owner.context = {
|
|
568
|
+
...Owner.context,
|
|
569
|
+
[id]: props.value
|
|
570
|
+
};
|
|
571
|
+
return children(() => props.children);
|
|
572
|
+
}), void 0);
|
|
582
573
|
return res;
|
|
583
574
|
};
|
|
584
575
|
}
|
|
@@ -596,44 +587,9 @@ function createComponent(Comp, props) {
|
|
|
596
587
|
return untrack(() => Comp(props || {}));
|
|
597
588
|
}
|
|
598
589
|
|
|
599
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
600
|
-
var booleans = [
|
|
601
|
-
|
|
602
|
-
"async",
|
|
603
|
-
"autofocus",
|
|
604
|
-
"autoplay",
|
|
605
|
-
"checked",
|
|
606
|
-
"controls",
|
|
607
|
-
"default",
|
|
608
|
-
"disabled",
|
|
609
|
-
"formnovalidate",
|
|
610
|
-
"hidden",
|
|
611
|
-
"indeterminate",
|
|
612
|
-
"inert",
|
|
613
|
-
"ismap",
|
|
614
|
-
"loop",
|
|
615
|
-
"multiple",
|
|
616
|
-
"muted",
|
|
617
|
-
"nomodule",
|
|
618
|
-
"novalidate",
|
|
619
|
-
"open",
|
|
620
|
-
"playsinline",
|
|
621
|
-
"readonly",
|
|
622
|
-
"required",
|
|
623
|
-
"reversed",
|
|
624
|
-
"seamless",
|
|
625
|
-
"selected"
|
|
626
|
-
];
|
|
627
|
-
/* @__PURE__ */ new Set([
|
|
628
|
-
"className",
|
|
629
|
-
"value",
|
|
630
|
-
"readOnly",
|
|
631
|
-
"formNoValidate",
|
|
632
|
-
"isMap",
|
|
633
|
-
"noModule",
|
|
634
|
-
"playsInline",
|
|
635
|
-
...booleans
|
|
636
|
-
]);
|
|
590
|
+
// ../../node_modules/.pnpm/solid-js@1.9.2/node_modules/solid-js/web/dist/web.js
|
|
591
|
+
var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
|
|
592
|
+
/* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
|
|
637
593
|
var WalletContext = createContext();
|
|
638
594
|
var WalletProvider = (props) => {
|
|
639
595
|
const store = () => props.manager;
|
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.2/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -229,11 +229,7 @@ function updateComputation(node) {
|
|
|
229
229
|
if (!node.fn) return;
|
|
230
230
|
cleanNode(node);
|
|
231
231
|
const time = ExecCount;
|
|
232
|
-
runComputation(
|
|
233
|
-
node,
|
|
234
|
-
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
235
|
-
time
|
|
236
|
-
);
|
|
232
|
+
runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
|
|
237
233
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
238
234
|
queueMicrotask(() => {
|
|
239
235
|
runUpdates(() => {
|
|
@@ -464,8 +460,7 @@ function lookUpstream(node, ignore) {
|
|
|
464
460
|
if (source.sources) {
|
|
465
461
|
const state = runningTransition ? source.tState : source.state;
|
|
466
462
|
if (state === STALE) {
|
|
467
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
468
|
-
runTop(source);
|
|
463
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount)) runTop(source);
|
|
469
464
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
470
465
|
}
|
|
471
466
|
}
|
|
@@ -541,13 +536,12 @@ function handleError(err, owner = Owner) {
|
|
|
541
536
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
542
537
|
const error = castError(err);
|
|
543
538
|
if (!fns) throw error;
|
|
544
|
-
if (Effects)
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
});
|
|
539
|
+
if (Effects) Effects.push({
|
|
540
|
+
fn() {
|
|
541
|
+
runErrors(error, fns, owner);
|
|
542
|
+
},
|
|
543
|
+
state: STALE
|
|
544
|
+
});
|
|
551
545
|
else runErrors(error, fns, owner);
|
|
552
546
|
}
|
|
553
547
|
function resolveChildren(children2) {
|
|
@@ -565,16 +559,13 @@ function resolveChildren(children2) {
|
|
|
565
559
|
function createProvider(id, options) {
|
|
566
560
|
return function provider(props) {
|
|
567
561
|
let res;
|
|
568
|
-
createRenderEffect(
|
|
569
|
-
|
|
570
|
-
Owner.context
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}),
|
|
576
|
-
void 0
|
|
577
|
-
);
|
|
562
|
+
createRenderEffect(() => res = untrack(() => {
|
|
563
|
+
Owner.context = {
|
|
564
|
+
...Owner.context,
|
|
565
|
+
[id]: props.value
|
|
566
|
+
};
|
|
567
|
+
return children(() => props.children);
|
|
568
|
+
}), void 0);
|
|
578
569
|
return res;
|
|
579
570
|
};
|
|
580
571
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@txnlab/use-wallet-solid",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.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",
|
|
@@ -54,26 +54,26 @@
|
|
|
54
54
|
],
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@tanstack/solid-store": "0.5.5",
|
|
57
|
-
"@txnlab/use-wallet": "3.
|
|
57
|
+
"@txnlab/use-wallet": "3.10.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.
|
|
62
|
+
"solid-js": "1.9.2",
|
|
63
63
|
"tsup": "8.3.0",
|
|
64
64
|
"tsup-preset-solid": "2.2.0",
|
|
65
|
-
"typescript": "5.6.
|
|
65
|
+
"typescript": "5.6.3"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"@blockshake/defly-connect": "^1.1.6",
|
|
69
|
-
"@magic-ext/algorand": "^23.
|
|
70
|
-
"@perawallet/connect": "^1.3.
|
|
69
|
+
"@magic-ext/algorand": "^23.13.0",
|
|
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.1",
|
|
74
74
|
"algosdk": "^2.7.0",
|
|
75
75
|
"lute-connect": "^1.4.1",
|
|
76
|
-
"magic-sdk": "^28.
|
|
76
|
+
"magic-sdk": "^28.13.0"
|
|
77
77
|
},
|
|
78
78
|
"peerDependenciesMeta": {
|
|
79
79
|
"@blockshake/defly-connect": {
|