@txnlab/use-wallet-solid 3.10.1 → 3.11.1
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/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.3/node_modules/solid-js/dist/solid.js
|
|
12
12
|
var sharedConfig = {
|
|
13
13
|
context: void 0,
|
|
14
14
|
registry: void 0,
|
|
@@ -239,7 +239,11 @@ function updateComputation(node) {
|
|
|
239
239
|
if (!node.fn) return;
|
|
240
240
|
cleanNode(node);
|
|
241
241
|
const time = ExecCount;
|
|
242
|
-
runComputation(
|
|
242
|
+
runComputation(
|
|
243
|
+
node,
|
|
244
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
245
|
+
time
|
|
246
|
+
);
|
|
243
247
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
244
248
|
queueMicrotask(() => {
|
|
245
249
|
runUpdates(() => {
|
|
@@ -470,7 +474,8 @@ function lookUpstream(node, ignore) {
|
|
|
470
474
|
if (source.sources) {
|
|
471
475
|
const state = runningTransition ? source.tState : source.state;
|
|
472
476
|
if (state === STALE) {
|
|
473
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
477
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
478
|
+
runTop(source);
|
|
474
479
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
475
480
|
}
|
|
476
481
|
}
|
|
@@ -546,12 +551,13 @@ function handleError(err, owner = Owner) {
|
|
|
546
551
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
547
552
|
const error = castError(err);
|
|
548
553
|
if (!fns) throw error;
|
|
549
|
-
if (Effects)
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
554
|
+
if (Effects)
|
|
555
|
+
Effects.push({
|
|
556
|
+
fn() {
|
|
557
|
+
runErrors(error, fns, owner);
|
|
558
|
+
},
|
|
559
|
+
state: STALE
|
|
560
|
+
});
|
|
555
561
|
else runErrors(error, fns, owner);
|
|
556
562
|
}
|
|
557
563
|
function resolveChildren(children2) {
|
|
@@ -569,13 +575,16 @@ function resolveChildren(children2) {
|
|
|
569
575
|
function createProvider(id, options) {
|
|
570
576
|
return function provider(props) {
|
|
571
577
|
let res;
|
|
572
|
-
createRenderEffect(
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
578
|
+
createRenderEffect(
|
|
579
|
+
() => res = untrack(() => {
|
|
580
|
+
Owner.context = {
|
|
581
|
+
...Owner.context,
|
|
582
|
+
[id]: props.value
|
|
583
|
+
};
|
|
584
|
+
return children(() => props.children);
|
|
585
|
+
}),
|
|
586
|
+
void 0
|
|
587
|
+
);
|
|
579
588
|
return res;
|
|
580
589
|
};
|
|
581
590
|
}
|
|
@@ -593,9 +602,44 @@ function createComponent(Comp, props) {
|
|
|
593
602
|
return untrack(() => Comp(props || {}));
|
|
594
603
|
}
|
|
595
604
|
|
|
596
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
597
|
-
var booleans = [
|
|
598
|
-
|
|
605
|
+
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/web/dist/web.js
|
|
606
|
+
var booleans = [
|
|
607
|
+
"allowfullscreen",
|
|
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
|
+
]);
|
|
599
643
|
var WalletContext = createContext();
|
|
600
644
|
exports.WalletProvider = (props) => {
|
|
601
645
|
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.3/node_modules/solid-js/dist/solid.js
|
|
6
6
|
var sharedConfig = {
|
|
7
7
|
context: void 0,
|
|
8
8
|
registry: void 0,
|
|
@@ -233,7 +233,11 @@ function updateComputation(node) {
|
|
|
233
233
|
if (!node.fn) return;
|
|
234
234
|
cleanNode(node);
|
|
235
235
|
const time = ExecCount;
|
|
236
|
-
runComputation(
|
|
236
|
+
runComputation(
|
|
237
|
+
node,
|
|
238
|
+
Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
|
|
239
|
+
time
|
|
240
|
+
);
|
|
237
241
|
if (Transition && !Transition.running && Transition.sources.has(node)) {
|
|
238
242
|
queueMicrotask(() => {
|
|
239
243
|
runUpdates(() => {
|
|
@@ -464,7 +468,8 @@ function lookUpstream(node, ignore) {
|
|
|
464
468
|
if (source.sources) {
|
|
465
469
|
const state = runningTransition ? source.tState : source.state;
|
|
466
470
|
if (state === STALE) {
|
|
467
|
-
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
471
|
+
if (source !== ignore && (!source.updatedAt || source.updatedAt < ExecCount))
|
|
472
|
+
runTop(source);
|
|
468
473
|
} else if (state === PENDING) lookUpstream(source, ignore);
|
|
469
474
|
}
|
|
470
475
|
}
|
|
@@ -540,12 +545,13 @@ function handleError(err, owner = Owner) {
|
|
|
540
545
|
const fns = ERROR && owner && owner.context && owner.context[ERROR];
|
|
541
546
|
const error = castError(err);
|
|
542
547
|
if (!fns) throw error;
|
|
543
|
-
if (Effects)
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
548
|
+
if (Effects)
|
|
549
|
+
Effects.push({
|
|
550
|
+
fn() {
|
|
551
|
+
runErrors(error, fns, owner);
|
|
552
|
+
},
|
|
553
|
+
state: STALE
|
|
554
|
+
});
|
|
549
555
|
else runErrors(error, fns, owner);
|
|
550
556
|
}
|
|
551
557
|
function resolveChildren(children2) {
|
|
@@ -563,13 +569,16 @@ function resolveChildren(children2) {
|
|
|
563
569
|
function createProvider(id, options) {
|
|
564
570
|
return function provider(props) {
|
|
565
571
|
let res;
|
|
566
|
-
createRenderEffect(
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
572
|
+
createRenderEffect(
|
|
573
|
+
() => res = untrack(() => {
|
|
574
|
+
Owner.context = {
|
|
575
|
+
...Owner.context,
|
|
576
|
+
[id]: props.value
|
|
577
|
+
};
|
|
578
|
+
return children(() => props.children);
|
|
579
|
+
}),
|
|
580
|
+
void 0
|
|
581
|
+
);
|
|
573
582
|
return res;
|
|
574
583
|
};
|
|
575
584
|
}
|
|
@@ -587,9 +596,44 @@ function createComponent(Comp, props) {
|
|
|
587
596
|
return untrack(() => Comp(props || {}));
|
|
588
597
|
}
|
|
589
598
|
|
|
590
|
-
// ../../node_modules/.pnpm/solid-js@1.9.
|
|
591
|
-
var booleans = [
|
|
592
|
-
|
|
599
|
+
// ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/web/dist/web.js
|
|
600
|
+
var booleans = [
|
|
601
|
+
"allowfullscreen",
|
|
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
|
+
]);
|
|
593
637
|
var WalletContext = createContext();
|
|
594
638
|
var WalletProvider = (props) => {
|
|
595
639
|
const store = () => props.manager;
|