@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.
Files changed (46) hide show
  1. package/dist/dev.cjs +63 -19
  2. package/dist/dev.js +63 -19
  3. package/dist/dev.jsx +99 -7214
  4. package/dist/index.cjs +738 -0
  5. package/dist/index.js +578 -126270
  6. package/dist/index.jsx +25 -16
  7. package/package.json +8 -8
  8. package/dist/chunk/2PXYBV4S.jsx +0 -883
  9. package/dist/chunk/3J6PRJNJ.mjs +0 -779
  10. package/dist/chunk/3YPORCKB.mjs +0 -9324
  11. package/dist/chunk/ASHSTAAQ.mjs +0 -663
  12. package/dist/chunk/B3UVEMEI.mjs +0 -835
  13. package/dist/chunk/BCEWTVZW.mjs +0 -16644
  14. package/dist/chunk/CL7LX3O4.jsx +0 -50
  15. package/dist/chunk/DTJ3ICHE.mjs +0 -9
  16. package/dist/chunk/FNEO6DUO.jsx +0 -14
  17. package/dist/chunk/GZ2UQYCA.jsx +0 -669
  18. package/dist/chunk/JH7OXUIR.jsx +0 -9903
  19. package/dist/chunk/NVDRUCO3.mjs +0 -26243
  20. package/dist/chunk/QI4NUZHP.jsx +0 -5862
  21. package/dist/chunk/RBDWDJFQ.jsx +0 -17199
  22. package/dist/chunk/UC3ZO4ZH.jsx +0 -802
  23. package/dist/chunk/VDTK67K2.jsx +0 -26395
  24. package/dist/chunk/VJFC7YOA.jsx +0 -2033
  25. package/dist/chunk/VN53D6CR.mjs +0 -2017
  26. package/dist/chunk/VQQ4CVTZ.mjs +0 -5782
  27. package/dist/chunk/ZKJS654W.mjs +0 -42
  28. package/dist/dist/25NR5LQ4.jsx +0 -31
  29. package/dist/dist/3QPHXTX5.jsx +0 -5761
  30. package/dist/dist/5PS5TLM7.mjs +0 -5693
  31. package/dist/dist/COR5WEDJ.jsx +0 -8960
  32. package/dist/dist/DHO5MJBE.mjs +0 -2155
  33. package/dist/dist/DZNWO3EY.mjs +0 -1122
  34. package/dist/dist/H257YD3M.mjs +0 -17103
  35. package/dist/dist/MZFJYXGG.mjs +0 -25
  36. package/dist/dist/NMTOQNMX.jsx +0 -17167
  37. package/dist/dist/OHC5XXJA.jsx +0 -2203
  38. package/dist/dist/XMT4I4HQ.jsx +0 -1139
  39. package/dist/dist/YFXWD6WV.mjs +0 -8864
  40. package/dist/index.es/OIZOTLR7.mjs +0 -9547
  41. package/dist/index.es/R4EQEDY3.jsx +0 -9843
  42. package/dist/index.mjs +0 -7747
  43. package/dist/lib/H7DSBKBW.mjs +0 -10583
  44. package/dist/lib/OYOWTODQ.jsx +0 -10641
  45. package/dist/main.esm/27PE3FUE.jsx +0 -114
  46. 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.2/node_modules/solid-js/dist/solid.js
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(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
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)) runTop(source);
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) Effects.push({
540
- fn() {
541
- runErrors(error, fns, owner);
542
- },
543
- state: STALE
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(() => res = untrack(() => {
563
- Owner.context = {
564
- ...Owner.context,
565
- [id]: props.value
566
- };
567
- return children(() => props.children);
568
- }), void 0);
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.10.1",
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.5.5",
57
- "@txnlab/use-wallet": "3.10.1"
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.2",
63
- "tsup": "8.3.0",
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.13.0",
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.1",
73
+ "@walletconnect/sign-client": "^2.17.2",
74
74
  "algosdk": "^2.7.0",
75
75
  "lute-connect": "^1.4.1",
76
- "magic-sdk": "^28.13.0"
76
+ "magic-sdk": "^28.19.0"
77
77
  },
78
78
  "peerDependenciesMeta": {
79
79
  "@blockshake/defly-connect": {