@txnlab/use-wallet-solid 4.3.0 → 4.4.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 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.7/node_modules/solid-js/dist/solid.js
11
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
12
12
  var sharedConfig = {
13
13
  context: void 0,
14
14
  registry: void 0,
@@ -590,9 +590,75 @@ function createComponent(Comp, props) {
590
590
  return untrack(() => Comp(props || {}));
591
591
  }
592
592
 
593
- // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/web/dist/web.js
594
- 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"];
595
- /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
593
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/web/dist/web.js
594
+ var booleans = [
595
+ "allowfullscreen",
596
+ "async",
597
+ "alpha",
598
+ "autofocus",
599
+ "autoplay",
600
+ "checked",
601
+ "controls",
602
+ "default",
603
+ "disabled",
604
+ "formnovalidate",
605
+ "hidden",
606
+ "indeterminate",
607
+ "inert",
608
+ "ismap",
609
+ "loop",
610
+ "multiple",
611
+ "muted",
612
+ "nomodule",
613
+ "novalidate",
614
+ "open",
615
+ "playsinline",
616
+ "readonly",
617
+ "required",
618
+ "reversed",
619
+ "seamless",
620
+ "selected",
621
+ "adauctionheaders",
622
+ "browsingtopics",
623
+ "credentialless",
624
+ "defaultchecked",
625
+ "defaultmuted",
626
+ "defaultselected",
627
+ "defer",
628
+ "disablepictureinpicture",
629
+ "disableremoteplayback",
630
+ "preservespitch",
631
+ "shadowrootclonable",
632
+ "shadowrootcustomelementregistry",
633
+ "shadowrootdelegatesfocus",
634
+ "shadowrootserializable",
635
+ "sharedstoragewritable"
636
+ ];
637
+ /* @__PURE__ */ new Set([
638
+ "className",
639
+ "value",
640
+ "readOnly",
641
+ "noValidate",
642
+ "formNoValidate",
643
+ "isMap",
644
+ "noModule",
645
+ "playsInline",
646
+ "adAuctionHeaders",
647
+ "allowFullscreen",
648
+ "browsingTopics",
649
+ "defaultChecked",
650
+ "defaultMuted",
651
+ "defaultSelected",
652
+ "disablePictureInPicture",
653
+ "disableRemotePlayback",
654
+ "preservesPitch",
655
+ "shadowRootClonable",
656
+ "shadowRootCustomElementRegistry",
657
+ "shadowRootDelegatesFocus",
658
+ "shadowRootSerializable",
659
+ "sharedStorageWritable",
660
+ ...booleans
661
+ ]);
596
662
  var WalletContext = createContext();
597
663
  exports.WalletProvider = (props) => {
598
664
  const store = () => props.manager;
@@ -705,7 +771,7 @@ exports.useWallet = () => {
705
771
  const isReady = createMemo(() => managerStatus() === "ready");
706
772
  const algodClient = solidStore.useStore(manager().store, (state) => state.algodClient);
707
773
  const walletStore = solidStore.useStore(manager().store, (state) => state.wallets);
708
- const walletState = (walletId) => walletStore()[walletId] || null;
774
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
709
775
  const activeWalletId = solidStore.useStore(manager().store, (state) => state.activeWallet);
710
776
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
711
777
  const activeWalletState = () => walletState(activeWalletId());
@@ -713,8 +779,8 @@ exports.useWallet = () => {
713
779
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
714
780
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
715
781
  const activeAddress = () => activeAccount()?.address ?? null;
716
- const isWalletActive = (walletId) => walletId === activeWalletId();
717
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
782
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
783
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
718
784
  const signTransactions = (txnGroup, indexesToSign) => {
719
785
  const wallet = activeWallet();
720
786
  if (!wallet) {
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.7/node_modules/solid-js/dist/solid.js
5
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
6
6
  var sharedConfig = {
7
7
  context: void 0,
8
8
  registry: void 0,
@@ -584,9 +584,75 @@ function createComponent(Comp, props) {
584
584
  return untrack(() => Comp(props || {}));
585
585
  }
586
586
 
587
- // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/web/dist/web.js
588
- 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"];
589
- /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
587
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/web/dist/web.js
588
+ var booleans = [
589
+ "allowfullscreen",
590
+ "async",
591
+ "alpha",
592
+ "autofocus",
593
+ "autoplay",
594
+ "checked",
595
+ "controls",
596
+ "default",
597
+ "disabled",
598
+ "formnovalidate",
599
+ "hidden",
600
+ "indeterminate",
601
+ "inert",
602
+ "ismap",
603
+ "loop",
604
+ "multiple",
605
+ "muted",
606
+ "nomodule",
607
+ "novalidate",
608
+ "open",
609
+ "playsinline",
610
+ "readonly",
611
+ "required",
612
+ "reversed",
613
+ "seamless",
614
+ "selected",
615
+ "adauctionheaders",
616
+ "browsingtopics",
617
+ "credentialless",
618
+ "defaultchecked",
619
+ "defaultmuted",
620
+ "defaultselected",
621
+ "defer",
622
+ "disablepictureinpicture",
623
+ "disableremoteplayback",
624
+ "preservespitch",
625
+ "shadowrootclonable",
626
+ "shadowrootcustomelementregistry",
627
+ "shadowrootdelegatesfocus",
628
+ "shadowrootserializable",
629
+ "sharedstoragewritable"
630
+ ];
631
+ /* @__PURE__ */ new Set([
632
+ "className",
633
+ "value",
634
+ "readOnly",
635
+ "noValidate",
636
+ "formNoValidate",
637
+ "isMap",
638
+ "noModule",
639
+ "playsInline",
640
+ "adAuctionHeaders",
641
+ "allowFullscreen",
642
+ "browsingTopics",
643
+ "defaultChecked",
644
+ "defaultMuted",
645
+ "defaultSelected",
646
+ "disablePictureInPicture",
647
+ "disableRemotePlayback",
648
+ "preservesPitch",
649
+ "shadowRootClonable",
650
+ "shadowRootCustomElementRegistry",
651
+ "shadowRootDelegatesFocus",
652
+ "shadowRootSerializable",
653
+ "sharedStorageWritable",
654
+ ...booleans
655
+ ]);
590
656
  var WalletContext = createContext();
591
657
  var WalletProvider = (props) => {
592
658
  const store = () => props.manager;
@@ -699,7 +765,7 @@ var useWallet = () => {
699
765
  const isReady = createMemo(() => managerStatus() === "ready");
700
766
  const algodClient = useStore(manager().store, (state) => state.algodClient);
701
767
  const walletStore = useStore(manager().store, (state) => state.wallets);
702
- const walletState = (walletId) => walletStore()[walletId] || null;
768
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
703
769
  const activeWalletId = useStore(manager().store, (state) => state.activeWallet);
704
770
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
705
771
  const activeWalletState = () => walletState(activeWalletId());
@@ -707,8 +773,8 @@ var useWallet = () => {
707
773
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
708
774
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
709
775
  const activeAddress = () => activeAccount()?.address ?? null;
710
- const isWalletActive = (walletId) => walletId === activeWalletId();
711
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
776
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
777
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
712
778
  const signTransactions = (txnGroup, indexesToSign) => {
713
779
  const wallet = activeWallet();
714
780
  if (!wallet) {
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.7/node_modules/solid-js/dist/solid.js
5
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
6
6
  var sharedConfig = {
7
7
  context: void 0,
8
8
  registry: void 0,
@@ -660,7 +660,7 @@ var useWallet = () => {
660
660
  const isReady = createMemo(() => managerStatus() === "ready");
661
661
  const algodClient = useStore(manager().store, (state) => state.algodClient);
662
662
  const walletStore = useStore(manager().store, (state) => state.wallets);
663
- const walletState = (walletId) => walletStore()[walletId] || null;
663
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
664
664
  const activeWalletId = useStore(manager().store, (state) => state.activeWallet);
665
665
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
666
666
  const activeWalletState = () => walletState(activeWalletId());
@@ -668,8 +668,8 @@ var useWallet = () => {
668
668
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
669
669
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
670
670
  const activeAddress = () => activeAccount()?.address ?? null;
671
- const isWalletActive = (walletId) => walletId === activeWalletId();
672
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
671
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
672
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
673
673
  const signTransactions = (txnGroup, indexesToSign) => {
674
674
  const wallet = activeWallet();
675
675
  if (!wallet) {
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.7/node_modules/solid-js/dist/solid.js
11
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
12
12
  var sharedConfig = {
13
13
  context: void 0,
14
14
  registry: void 0,
@@ -590,9 +590,75 @@ function createComponent(Comp, props) {
590
590
  return untrack(() => Comp(props || {}));
591
591
  }
592
592
 
593
- // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/web/dist/web.js
594
- 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"];
595
- /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
593
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/web/dist/web.js
594
+ var booleans = [
595
+ "allowfullscreen",
596
+ "async",
597
+ "alpha",
598
+ "autofocus",
599
+ "autoplay",
600
+ "checked",
601
+ "controls",
602
+ "default",
603
+ "disabled",
604
+ "formnovalidate",
605
+ "hidden",
606
+ "indeterminate",
607
+ "inert",
608
+ "ismap",
609
+ "loop",
610
+ "multiple",
611
+ "muted",
612
+ "nomodule",
613
+ "novalidate",
614
+ "open",
615
+ "playsinline",
616
+ "readonly",
617
+ "required",
618
+ "reversed",
619
+ "seamless",
620
+ "selected",
621
+ "adauctionheaders",
622
+ "browsingtopics",
623
+ "credentialless",
624
+ "defaultchecked",
625
+ "defaultmuted",
626
+ "defaultselected",
627
+ "defer",
628
+ "disablepictureinpicture",
629
+ "disableremoteplayback",
630
+ "preservespitch",
631
+ "shadowrootclonable",
632
+ "shadowrootcustomelementregistry",
633
+ "shadowrootdelegatesfocus",
634
+ "shadowrootserializable",
635
+ "sharedstoragewritable"
636
+ ];
637
+ /* @__PURE__ */ new Set([
638
+ "className",
639
+ "value",
640
+ "readOnly",
641
+ "noValidate",
642
+ "formNoValidate",
643
+ "isMap",
644
+ "noModule",
645
+ "playsInline",
646
+ "adAuctionHeaders",
647
+ "allowFullscreen",
648
+ "browsingTopics",
649
+ "defaultChecked",
650
+ "defaultMuted",
651
+ "defaultSelected",
652
+ "disablePictureInPicture",
653
+ "disableRemotePlayback",
654
+ "preservesPitch",
655
+ "shadowRootClonable",
656
+ "shadowRootCustomElementRegistry",
657
+ "shadowRootDelegatesFocus",
658
+ "shadowRootSerializable",
659
+ "sharedStorageWritable",
660
+ ...booleans
661
+ ]);
596
662
  var WalletContext = createContext();
597
663
  exports.WalletProvider = (props) => {
598
664
  const store = () => props.manager;
@@ -700,7 +766,7 @@ exports.useWallet = () => {
700
766
  const isReady = createMemo(() => managerStatus() === "ready");
701
767
  const algodClient = solidStore.useStore(manager().store, (state) => state.algodClient);
702
768
  const walletStore = solidStore.useStore(manager().store, (state) => state.wallets);
703
- const walletState = (walletId) => walletStore()[walletId] || null;
769
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
704
770
  const activeWalletId = solidStore.useStore(manager().store, (state) => state.activeWallet);
705
771
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
706
772
  const activeWalletState = () => walletState(activeWalletId());
@@ -708,8 +774,8 @@ exports.useWallet = () => {
708
774
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
709
775
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
710
776
  const activeAddress = () => activeAccount()?.address ?? null;
711
- const isWalletActive = (walletId) => walletId === activeWalletId();
712
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
777
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
778
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
713
779
  const signTransactions = (txnGroup, indexesToSign) => {
714
780
  const wallet = activeWallet();
715
781
  if (!wallet) {
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _txnlab_use_wallet from '@txnlab/use-wallet';
2
- import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletId, SignMetadata, SignDataResponse } from '@txnlab/use-wallet';
2
+ import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletKey, SignMetadata, SignDataResponse } from '@txnlab/use-wallet';
3
3
  export * from '@txnlab/use-wallet';
4
4
  import * as solid_js from 'solid-js';
5
5
  import { JSX } from 'solid-js';
@@ -29,13 +29,13 @@ declare const useWallet: () => {
29
29
  activeWalletState: () => WalletState | null;
30
30
  activeAccount: () => _txnlab_use_wallet.WalletAccount | null;
31
31
  activeAddress: () => string | null;
32
- activeWalletId: solid_js.Accessor<WalletId | null>;
33
- isWalletActive: (walletId: WalletId) => boolean;
34
- isWalletConnected: (walletId: WalletId) => boolean;
32
+ activeWalletId: solid_js.Accessor<WalletKey | null>;
33
+ isWalletActive: (walletKey: WalletKey) => boolean;
34
+ isWalletConnected: (walletKey: WalletKey) => boolean;
35
35
  signData: (data: string, metadata: SignMetadata) => Promise<SignDataResponse>;
36
36
  signTransactions: <T extends algosdk.Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
37
37
  transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
38
- walletStore: solid_js.Accessor<Partial<Record<WalletId, WalletState>>>;
38
+ walletStore: solid_js.Accessor<Partial<Record<WalletKey, WalletState>>>;
39
39
  };
40
40
 
41
41
  export { WalletProvider, useNetwork, useWallet, useWalletManager };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as _txnlab_use_wallet from '@txnlab/use-wallet';
2
- import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletId, SignMetadata, SignDataResponse } from '@txnlab/use-wallet';
2
+ import { WalletManager, NetworkId, AlgodConfig, WalletState, WalletKey, SignMetadata, SignDataResponse } from '@txnlab/use-wallet';
3
3
  export * from '@txnlab/use-wallet';
4
4
  import * as solid_js from 'solid-js';
5
5
  import { JSX } from 'solid-js';
@@ -29,13 +29,13 @@ declare const useWallet: () => {
29
29
  activeWalletState: () => WalletState | null;
30
30
  activeAccount: () => _txnlab_use_wallet.WalletAccount | null;
31
31
  activeAddress: () => string | null;
32
- activeWalletId: solid_js.Accessor<WalletId | null>;
33
- isWalletActive: (walletId: WalletId) => boolean;
34
- isWalletConnected: (walletId: WalletId) => boolean;
32
+ activeWalletId: solid_js.Accessor<WalletKey | null>;
33
+ isWalletActive: (walletKey: WalletKey) => boolean;
34
+ isWalletConnected: (walletKey: WalletKey) => boolean;
35
35
  signData: (data: string, metadata: SignMetadata) => Promise<SignDataResponse>;
36
36
  signTransactions: <T extends algosdk.Transaction[] | Uint8Array[]>(txnGroup: T | T[], indexesToSign?: number[]) => Promise<(Uint8Array | null)[]>;
37
37
  transactionSigner: (txnGroup: algosdk.Transaction[], indexesToSign: number[]) => Promise<Uint8Array[]>;
38
- walletStore: solid_js.Accessor<Partial<Record<WalletId, WalletState>>>;
38
+ walletStore: solid_js.Accessor<Partial<Record<WalletKey, WalletState>>>;
39
39
  };
40
40
 
41
41
  export { WalletProvider, useNetwork, useWallet, useWalletManager };
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.7/node_modules/solid-js/dist/solid.js
5
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
6
6
  var sharedConfig = {
7
7
  context: void 0,
8
8
  registry: void 0,
@@ -584,9 +584,75 @@ function createComponent(Comp, props) {
584
584
  return untrack(() => Comp(props || {}));
585
585
  }
586
586
 
587
- // ../../node_modules/.pnpm/solid-js@1.9.7/node_modules/solid-js/web/dist/web.js
588
- 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"];
589
- /* @__PURE__ */ new Set(["className", "value", "readOnly", "noValidate", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
587
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/web/dist/web.js
588
+ var booleans = [
589
+ "allowfullscreen",
590
+ "async",
591
+ "alpha",
592
+ "autofocus",
593
+ "autoplay",
594
+ "checked",
595
+ "controls",
596
+ "default",
597
+ "disabled",
598
+ "formnovalidate",
599
+ "hidden",
600
+ "indeterminate",
601
+ "inert",
602
+ "ismap",
603
+ "loop",
604
+ "multiple",
605
+ "muted",
606
+ "nomodule",
607
+ "novalidate",
608
+ "open",
609
+ "playsinline",
610
+ "readonly",
611
+ "required",
612
+ "reversed",
613
+ "seamless",
614
+ "selected",
615
+ "adauctionheaders",
616
+ "browsingtopics",
617
+ "credentialless",
618
+ "defaultchecked",
619
+ "defaultmuted",
620
+ "defaultselected",
621
+ "defer",
622
+ "disablepictureinpicture",
623
+ "disableremoteplayback",
624
+ "preservespitch",
625
+ "shadowrootclonable",
626
+ "shadowrootcustomelementregistry",
627
+ "shadowrootdelegatesfocus",
628
+ "shadowrootserializable",
629
+ "sharedstoragewritable"
630
+ ];
631
+ /* @__PURE__ */ new Set([
632
+ "className",
633
+ "value",
634
+ "readOnly",
635
+ "noValidate",
636
+ "formNoValidate",
637
+ "isMap",
638
+ "noModule",
639
+ "playsInline",
640
+ "adAuctionHeaders",
641
+ "allowFullscreen",
642
+ "browsingTopics",
643
+ "defaultChecked",
644
+ "defaultMuted",
645
+ "defaultSelected",
646
+ "disablePictureInPicture",
647
+ "disableRemotePlayback",
648
+ "preservesPitch",
649
+ "shadowRootClonable",
650
+ "shadowRootCustomElementRegistry",
651
+ "shadowRootDelegatesFocus",
652
+ "shadowRootSerializable",
653
+ "sharedStorageWritable",
654
+ ...booleans
655
+ ]);
590
656
  var WalletContext = createContext();
591
657
  var WalletProvider = (props) => {
592
658
  const store = () => props.manager;
@@ -694,7 +760,7 @@ var useWallet = () => {
694
760
  const isReady = createMemo(() => managerStatus() === "ready");
695
761
  const algodClient = useStore(manager().store, (state) => state.algodClient);
696
762
  const walletStore = useStore(manager().store, (state) => state.wallets);
697
- const walletState = (walletId) => walletStore()[walletId] || null;
763
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
698
764
  const activeWalletId = useStore(manager().store, (state) => state.activeWallet);
699
765
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
700
766
  const activeWalletState = () => walletState(activeWalletId());
@@ -702,8 +768,8 @@ var useWallet = () => {
702
768
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
703
769
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
704
770
  const activeAddress = () => activeAccount()?.address ?? null;
705
- const isWalletActive = (walletId) => walletId === activeWalletId();
706
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
771
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
772
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
707
773
  const signTransactions = (txnGroup, indexesToSign) => {
708
774
  const wallet = activeWallet();
709
775
  if (!wallet) {
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.7/node_modules/solid-js/dist/solid.js
5
+ // ../../node_modules/.pnpm/solid-js@1.9.9/node_modules/solid-js/dist/solid.js
6
6
  var sharedConfig = {
7
7
  context: void 0,
8
8
  registry: void 0,
@@ -655,7 +655,7 @@ var useWallet = () => {
655
655
  const isReady = createMemo(() => managerStatus() === "ready");
656
656
  const algodClient = useStore(manager().store, (state) => state.algodClient);
657
657
  const walletStore = useStore(manager().store, (state) => state.wallets);
658
- const walletState = (walletId) => walletStore()[walletId] || null;
658
+ const walletState = (walletKey) => walletStore()[walletKey] || null;
659
659
  const activeWalletId = useStore(manager().store, (state) => state.activeWallet);
660
660
  const activeWallet = () => manager().getWallet(activeWalletId()) || null;
661
661
  const activeWalletState = () => walletState(activeWalletId());
@@ -663,8 +663,8 @@ var useWallet = () => {
663
663
  const activeWalletAddresses = () => activeWalletAccounts()?.map((account) => account.address) ?? null;
664
664
  const activeAccount = () => activeWalletState()?.activeAccount ?? null;
665
665
  const activeAddress = () => activeAccount()?.address ?? null;
666
- const isWalletActive = (walletId) => walletId === activeWalletId();
667
- const isWalletConnected = (walletId) => !!walletState(walletId)?.accounts.length || false;
666
+ const isWalletActive = (walletKey) => walletKey === activeWalletId();
667
+ const isWalletConnected = (walletKey) => !!walletState(walletKey)?.accounts.length || false;
668
668
  const signTransactions = (txnGroup, indexesToSign) => {
669
669
  const wallet = activeWallet();
670
670
  if (!wallet) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@txnlab/use-wallet-solid",
3
- "version": "4.3.0",
3
+ "version": "4.4.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,26 +53,26 @@
53
53
  "dist"
54
54
  ],
55
55
  "dependencies": {
56
- "@tanstack/solid-store": "0.7.3",
57
- "@txnlab/use-wallet": "4.3.0"
56
+ "@tanstack/solid-store": "0.8.0",
57
+ "@txnlab/use-wallet": "4.4.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@solidjs/testing-library": "0.8.10",
61
- "algosdk": "3.3.1",
62
- "solid-js": "1.9.7",
63
- "tsup": "8.5.0",
61
+ "algosdk": "3.5.2",
62
+ "solid-js": "1.9.10",
63
+ "tsup": "8.5.1",
64
64
  "tsup-preset-solid": "2.2.0",
65
- "typescript": "5.8.3"
65
+ "typescript": "5.9.3"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "@blockshake/defly-connect": "^1.2.1",
69
- "@magic-ext/algorand": "^24.1.0",
69
+ "@magic-ext/algorand": "^24.4.2",
70
70
  "@perawallet/connect": "^1.4.1",
71
71
  "@walletconnect/modal": "^2.7.0",
72
- "@walletconnect/sign-client": "^2.21.4",
72
+ "@walletconnect/sign-client": "^2.23.1",
73
73
  "algosdk": "^3.0.0",
74
- "lute-connect": "^1.6.1",
75
- "magic-sdk": "^29.1.0"
74
+ "lute-connect": "^1.6.3",
75
+ "magic-sdk": "^29.4.2"
76
76
  },
77
77
  "peerDependenciesMeta": {
78
78
  "@blockshake/defly-connect": {