@talken/talkenkit 2.4.10 → 2.4.12
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/abcWallet-DRHY5BUW.js +184 -0
- package/dist/abcWallet-YOPLVWVE.js +184 -0
- package/dist/chunk-5NAGRWKN.js +6991 -0
- package/dist/chunk-KZZG24U5.js +7015 -0
- package/dist/components/RainbowKitProvider/InternalPinProvider.d.ts +2 -1
- package/dist/contexts/MultiChainContext.d.ts +2 -0
- package/dist/index.js +159 -161
- package/dist/themes/baseTheme.js +1 -1
- package/dist/themes/darkTheme.js +1 -1
- package/dist/themes/lightTheme.js +1 -1
- package/dist/themes/midnightTheme.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcApi.d.ts +11 -0
- package/dist/wallets/walletConnectors/abcWallet/abcApi.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcConnector.js +3 -3
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.d.ts +5 -0
- package/dist/wallets/walletConnectors/abcWallet/abcProvider.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcSolanaWalletAdapter.js +1 -1
- package/dist/wallets/walletConnectors/abcWallet/abcWallet.js +4 -4
- package/dist/wallets/walletConnectors/abcWallet/index.js +4 -4
- package/dist/wallets/walletConnectors/chunk-6KJQ2GQZ.js +47 -0
- package/dist/wallets/walletConnectors/chunk-JW3YCANT.js +464 -0
- package/dist/wallets/walletConnectors/chunk-LVODOLXE.js +47 -0
- package/dist/wallets/walletConnectors/chunk-NY2MBDVO.js +276 -0
- package/dist/wallets/walletConnectors/chunk-PPTSQD3J.js +276 -0
- package/dist/wallets/walletConnectors/chunk-UTRMKLD5.js +1683 -0
- package/dist/wallets/walletConnectors/chunk-UYFNIOUH.js +475 -0
- package/dist/wallets/walletConnectors/chunk-VDVBAWB4.js +1670 -0
- package/dist/wallets/walletConnectors/index.js +54 -54
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
isTestnet,
|
|
31
31
|
networkToChainId,
|
|
32
32
|
networks_exports
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-KZZG24U5.js";
|
|
34
34
|
import "./chunk-DFWCI4QG.js";
|
|
35
35
|
import {
|
|
36
36
|
darkTheme
|
|
@@ -46,12 +46,11 @@ import {
|
|
|
46
46
|
en_US_default
|
|
47
47
|
} from "./chunk-X4GSACNW.js";
|
|
48
48
|
import {
|
|
49
|
-
__require,
|
|
50
49
|
__toCommonJS
|
|
51
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-TJX4M23U.js";
|
|
52
51
|
|
|
53
52
|
// src/components/ConnectButton/ConnectButton.tsx
|
|
54
|
-
import React76, { useContext as
|
|
53
|
+
import React76, { useContext as useContext28, useEffect as useEffect25, useState as useState30 } from "react";
|
|
55
54
|
|
|
56
55
|
// src/css/sprinkles.css.ts
|
|
57
56
|
import { createMapValueFn as _51c72 } from "@vanilla-extract/sprinkles/createUtils";
|
|
@@ -740,63 +739,63 @@ var fetchTranslations = async (locale) => {
|
|
|
740
739
|
switch (locale) {
|
|
741
740
|
case "ar":
|
|
742
741
|
case "ar-AR":
|
|
743
|
-
return (await import("./ar_AR-
|
|
742
|
+
return (await import("./ar_AR-YBBYUEGS.js")).default;
|
|
744
743
|
case "de":
|
|
745
744
|
case "de-DE":
|
|
746
|
-
return (await import("./de_DE-
|
|
745
|
+
return (await import("./de_DE-RUWMVYCQ.js")).default;
|
|
747
746
|
case "en":
|
|
748
747
|
case "en-US":
|
|
749
|
-
return (await import("./en_US-
|
|
748
|
+
return (await import("./en_US-NQ25CUR4.js")).default;
|
|
750
749
|
case "es":
|
|
751
750
|
case "es-419":
|
|
752
|
-
return (await import("./es_419-
|
|
751
|
+
return (await import("./es_419-HKJPYJRI.js")).default;
|
|
753
752
|
case "fr":
|
|
754
753
|
case "fr-FR":
|
|
755
|
-
return (await import("./fr_FR-
|
|
754
|
+
return (await import("./fr_FR-2O5ZDLPQ.js")).default;
|
|
756
755
|
case "hi":
|
|
757
756
|
case "hi-IN":
|
|
758
|
-
return (await import("./hi_IN-
|
|
757
|
+
return (await import("./hi_IN-XRZ4YIUW.js")).default;
|
|
759
758
|
case "id":
|
|
760
759
|
case "id-ID":
|
|
761
|
-
return (await import("./id_ID-
|
|
760
|
+
return (await import("./id_ID-REEY4CSS.js")).default;
|
|
762
761
|
case "ja":
|
|
763
762
|
case "ja-JP":
|
|
764
|
-
return (await import("./ja_JP-
|
|
763
|
+
return (await import("./ja_JP-2OPCVN6X.js")).default;
|
|
765
764
|
case "ko":
|
|
766
765
|
case "ko-KR":
|
|
767
|
-
return (await import("./ko_KR-
|
|
766
|
+
return (await import("./ko_KR-DDXBZTYT.js")).default;
|
|
768
767
|
case "ms":
|
|
769
768
|
case "ms-MY":
|
|
770
|
-
return (await import("./ms_MY-
|
|
769
|
+
return (await import("./ms_MY-PX7G4XTD.js")).default;
|
|
771
770
|
case "pt":
|
|
772
771
|
case "pt-BR":
|
|
773
|
-
return (await import("./pt_BR-
|
|
772
|
+
return (await import("./pt_BR-A5R4SBSC.js")).default;
|
|
774
773
|
case "ru":
|
|
775
774
|
case "ru-RU":
|
|
776
|
-
return (await import("./ru_RU-
|
|
775
|
+
return (await import("./ru_RU-4QDZLRSW.js")).default;
|
|
777
776
|
case "th":
|
|
778
777
|
case "th-TH":
|
|
779
|
-
return (await import("./th_TH-
|
|
778
|
+
return (await import("./th_TH-4TWPYDKX.js")).default;
|
|
780
779
|
case "tr":
|
|
781
780
|
case "tr-TR":
|
|
782
|
-
return (await import("./tr_TR-
|
|
781
|
+
return (await import("./tr_TR-C37KIU7M.js")).default;
|
|
783
782
|
case "ua":
|
|
784
783
|
case "uk-UA":
|
|
785
|
-
return (await import("./uk_UA-
|
|
784
|
+
return (await import("./uk_UA-I77HS4GO.js")).default;
|
|
786
785
|
case "vi":
|
|
787
786
|
case "vi-VN":
|
|
788
|
-
return (await import("./vi_VN-
|
|
787
|
+
return (await import("./vi_VN-KVPDLW26.js")).default;
|
|
789
788
|
case "zh":
|
|
790
789
|
case "zh-CN":
|
|
791
790
|
case "zh-Hans":
|
|
792
|
-
return (await import("./zh_CN-
|
|
791
|
+
return (await import("./zh_CN-KGLAIP3N.js")).default;
|
|
793
792
|
case "zh-HK":
|
|
794
|
-
return (await import("./zh_HK-
|
|
793
|
+
return (await import("./zh_HK-AEXEN6P6.js")).default;
|
|
795
794
|
case "zh-Hant":
|
|
796
795
|
case "zh-TW":
|
|
797
|
-
return (await import("./zh_TW-
|
|
796
|
+
return (await import("./zh_TW-6C7R5V3K.js")).default;
|
|
798
797
|
default:
|
|
799
|
-
return (await import("./en_US-
|
|
798
|
+
return (await import("./en_US-NQ25CUR4.js")).default;
|
|
800
799
|
}
|
|
801
800
|
};
|
|
802
801
|
async function setLocale(locale) {
|
|
@@ -865,91 +864,91 @@ function isNotNullish(value) {
|
|
|
865
864
|
// src/components/RainbowKitProvider/provideRainbowKitChains.ts
|
|
866
865
|
var arbitrumIcon = {
|
|
867
866
|
iconBackground: "#96bedc",
|
|
868
|
-
iconUrl: async () => (await import("./arbitrum-
|
|
867
|
+
iconUrl: async () => (await import("./arbitrum-D2TUFPZI.js")).default
|
|
869
868
|
};
|
|
870
869
|
var avalancheIcon = {
|
|
871
870
|
iconBackground: "#e84141",
|
|
872
|
-
iconUrl: async () => (await import("./avalanche-
|
|
871
|
+
iconUrl: async () => (await import("./avalanche-BOOSH35S.js")).default
|
|
873
872
|
};
|
|
874
873
|
var baseIcon = {
|
|
875
874
|
iconBackground: "#0052ff",
|
|
876
|
-
iconUrl: async () => (await import("./base-
|
|
875
|
+
iconUrl: async () => (await import("./base-3JMRS35B.js")).default
|
|
877
876
|
};
|
|
878
877
|
var blastIcon = {
|
|
879
878
|
iconBackground: "#000000",
|
|
880
|
-
iconUrl: async () => (await import("./blast-
|
|
879
|
+
iconUrl: async () => (await import("./blast-4GF24NR7.js")).default
|
|
881
880
|
};
|
|
882
881
|
var bscIcon = {
|
|
883
882
|
iconBackground: "#ebac0e",
|
|
884
|
-
iconUrl: async () => (await import("./bsc-
|
|
883
|
+
iconUrl: async () => (await import("./bsc-KU6MBOYR.js")).default
|
|
885
884
|
};
|
|
886
885
|
var celoIcon = {
|
|
887
886
|
iconBackground: "#FCFF52",
|
|
888
|
-
iconUrl: async () => (await import("./celo-
|
|
887
|
+
iconUrl: async () => (await import("./celo-5A5VXMPX.js")).default
|
|
889
888
|
};
|
|
890
889
|
var cronosIcon = {
|
|
891
890
|
iconBackground: "#002D74",
|
|
892
|
-
iconUrl: async () => (await import("./cronos-
|
|
891
|
+
iconUrl: async () => (await import("./cronos-KZAB32FC.js")).default
|
|
893
892
|
};
|
|
894
893
|
var ethereumIcon = {
|
|
895
894
|
iconBackground: "#484c50",
|
|
896
|
-
iconUrl: async () => (await import("./ethereum-
|
|
895
|
+
iconUrl: async () => (await import("./ethereum-WAFT6DML.js")).default
|
|
897
896
|
};
|
|
898
897
|
var flowIcon = {
|
|
899
898
|
iconBackground: "transparent",
|
|
900
|
-
iconUrl: async () => (await import("./flow-
|
|
899
|
+
iconUrl: async () => (await import("./flow-XANNOAPJ.js")).default
|
|
901
900
|
};
|
|
902
901
|
var gnosisIcon = {
|
|
903
902
|
iconBackground: "#04795c",
|
|
904
|
-
iconUrl: async () => (await import("./gnosis-
|
|
903
|
+
iconUrl: async () => (await import("./gnosis-7GFI4V27.js")).default
|
|
905
904
|
};
|
|
906
905
|
var hardhatIcon = {
|
|
907
906
|
iconBackground: "#f9f7ec",
|
|
908
|
-
iconUrl: async () => (await import("./hardhat-
|
|
907
|
+
iconUrl: async () => (await import("./hardhat-6HKZWC4T.js")).default
|
|
909
908
|
};
|
|
910
909
|
var kaiaIcon = {
|
|
911
910
|
iconBackground: "transparent",
|
|
912
|
-
iconUrl: async () => (await import("./kaia-
|
|
911
|
+
iconUrl: async () => (await import("./kaia-DQ3OSYXE.js")).default
|
|
913
912
|
};
|
|
914
913
|
var optimismIcon = {
|
|
915
914
|
iconBackground: "#ff5a57",
|
|
916
|
-
iconUrl: async () => (await import("./optimism-
|
|
915
|
+
iconUrl: async () => (await import("./optimism-6GXRYJDW.js")).default
|
|
917
916
|
};
|
|
918
917
|
var mantaIcon = {
|
|
919
918
|
iconBackground: "#ffffff",
|
|
920
|
-
iconUrl: async () => (await import("./manta-
|
|
919
|
+
iconUrl: async () => (await import("./manta-OEF3QP66.js")).default
|
|
921
920
|
};
|
|
922
921
|
var mantleIcon = {
|
|
923
922
|
iconBackground: "#000000",
|
|
924
|
-
iconUrl: async () => (await import("./mantle-
|
|
923
|
+
iconUrl: async () => (await import("./mantle-EYIH4GGM.js")).default
|
|
925
924
|
};
|
|
926
925
|
var polygonIcon = {
|
|
927
926
|
iconBackground: "#9f71ec",
|
|
928
|
-
iconUrl: async () => (await import("./polygon-
|
|
927
|
+
iconUrl: async () => (await import("./polygon-YNJM552P.js")).default
|
|
929
928
|
};
|
|
930
929
|
var xdcIcon = {
|
|
931
930
|
iconBackground: "#f9f7ec",
|
|
932
|
-
iconUrl: async () => (await import("./xdc-
|
|
931
|
+
iconUrl: async () => (await import("./xdc-5NQHQJE5.js")).default
|
|
933
932
|
};
|
|
934
933
|
var zetachainIcon = {
|
|
935
934
|
iconBackground: "#000000",
|
|
936
|
-
iconUrl: async () => (await import("./zetachain-
|
|
935
|
+
iconUrl: async () => (await import("./zetachain-U6IILKZJ.js")).default
|
|
937
936
|
};
|
|
938
937
|
var zkSyncIcon = {
|
|
939
938
|
iconBackground: "#f9f7ec",
|
|
940
|
-
iconUrl: async () => (await import("./zkSync-
|
|
939
|
+
iconUrl: async () => (await import("./zkSync-TMPB52ZN.js")).default
|
|
941
940
|
};
|
|
942
941
|
var zoraIcon = {
|
|
943
942
|
iconBackground: "#000000",
|
|
944
|
-
iconUrl: async () => (await import("./zora-
|
|
943
|
+
iconUrl: async () => (await import("./zora-S46CHEOU.js")).default
|
|
945
944
|
};
|
|
946
945
|
var roninIcon = {
|
|
947
946
|
iconBackground: "#1273EA",
|
|
948
|
-
iconUrl: async () => (await import("./ronin-
|
|
947
|
+
iconUrl: async () => (await import("./ronin-LU7LZPWA.js")).default
|
|
949
948
|
};
|
|
950
949
|
var scrollIcon = {
|
|
951
950
|
iconBackground: "#000000",
|
|
952
|
-
iconUrl: async () => (await import("./scroll-
|
|
951
|
+
iconUrl: async () => (await import("./scroll-XRP46UTI.js")).default
|
|
953
952
|
};
|
|
954
953
|
var chainMetadataByName = {
|
|
955
954
|
arbitrum: { chainId: 42161, name: "Arbitrum", ...arbitrumIcon },
|
|
@@ -1079,7 +1078,7 @@ function ShowBalanceProvider({ children }) {
|
|
|
1079
1078
|
var useShowBalance = () => useContext4(ShowBalanceContext);
|
|
1080
1079
|
|
|
1081
1080
|
// src/components/ConnectButton/ConnectButtonRenderer.tsx
|
|
1082
|
-
import React75, { useContext as
|
|
1081
|
+
import React75, { useContext as useContext27 } from "react";
|
|
1083
1082
|
import { useAccount as useAccount16, useConfig as useConfig4 } from "wagmi";
|
|
1084
1083
|
|
|
1085
1084
|
// src/contexts/MultiChainContext.tsx
|
|
@@ -1143,6 +1142,7 @@ function MultiChainProvider({
|
|
|
1143
1142
|
evmConnected,
|
|
1144
1143
|
solanaAddress,
|
|
1145
1144
|
solanaConnected,
|
|
1145
|
+
solanaWallet,
|
|
1146
1146
|
activeChain,
|
|
1147
1147
|
setActiveChain,
|
|
1148
1148
|
disconnectAll
|
|
@@ -1703,7 +1703,7 @@ function useRecentTransactions() {
|
|
|
1703
1703
|
import React74, {
|
|
1704
1704
|
createContext as createContext14,
|
|
1705
1705
|
useCallback as useCallback15,
|
|
1706
|
-
useContext as
|
|
1706
|
+
useContext as useContext26,
|
|
1707
1707
|
useEffect as useEffect24,
|
|
1708
1708
|
useMemo as useMemo13,
|
|
1709
1709
|
useState as useState29
|
|
@@ -1711,7 +1711,7 @@ import React74, {
|
|
|
1711
1711
|
import { useAccount as useAccount15, useAccountEffect as useAccountEffect3, useConfig as useConfig3 } from "wagmi";
|
|
1712
1712
|
|
|
1713
1713
|
// src/components/AccountModal/AccountModal.tsx
|
|
1714
|
-
import React40, { useContext as
|
|
1714
|
+
import React40, { useContext as useContext14 } from "react";
|
|
1715
1715
|
import { useAccount as useAccount12, useDisconnect } from "wagmi";
|
|
1716
1716
|
|
|
1717
1717
|
// src/components/Dialog/Dialog.tsx
|
|
@@ -1730,7 +1730,7 @@ import {
|
|
|
1730
1730
|
} from "@solana/wallet-adapter-wallets";
|
|
1731
1731
|
import React26, {
|
|
1732
1732
|
createContext as createContext13,
|
|
1733
|
-
useContext as
|
|
1733
|
+
useContext as useContext10,
|
|
1734
1734
|
useMemo as useMemo9
|
|
1735
1735
|
} from "react";
|
|
1736
1736
|
import { useAccountEffect as useAccountEffect2 } from "wagmi";
|
|
@@ -2720,7 +2720,12 @@ import { createContext as createContext8 } from "react";
|
|
|
2720
2720
|
var CoolModeContext = createContext8(false);
|
|
2721
2721
|
|
|
2722
2722
|
// src/components/RainbowKitProvider/InternalPinProvider.tsx
|
|
2723
|
-
import React15, {
|
|
2723
|
+
import React15, {
|
|
2724
|
+
useState as useState9,
|
|
2725
|
+
useCallback as useCallback3,
|
|
2726
|
+
useEffect as useEffect10,
|
|
2727
|
+
useContext as useContext6
|
|
2728
|
+
} from "react";
|
|
2724
2729
|
import { useAccount as useAccount7 } from "wagmi";
|
|
2725
2730
|
|
|
2726
2731
|
// src/components/AbcAuth/PinInputModal.tsx
|
|
@@ -2959,14 +2964,6 @@ function PinInputModal({
|
|
|
2959
2964
|
}
|
|
2960
2965
|
|
|
2961
2966
|
// src/components/RainbowKitProvider/InternalPinProvider.tsx
|
|
2962
|
-
function useSolanaWalletSafe() {
|
|
2963
|
-
try {
|
|
2964
|
-
const { useWallet: useWallet6 } = __require("@solana/wallet-adapter-react");
|
|
2965
|
-
return useWallet6();
|
|
2966
|
-
} catch (_error) {
|
|
2967
|
-
return { wallet: null };
|
|
2968
|
-
}
|
|
2969
|
-
}
|
|
2970
2967
|
function InternalPinProvider({
|
|
2971
2968
|
children,
|
|
2972
2969
|
disabled = false
|
|
@@ -2977,7 +2974,8 @@ function InternalPinProvider({
|
|
|
2977
2974
|
const [pinRejecter, setPinRejecter] = useState9(null);
|
|
2978
2975
|
const [error2, setError] = useState9("");
|
|
2979
2976
|
const { connector, isConnected } = useAccount7();
|
|
2980
|
-
const
|
|
2977
|
+
const multiChain = useContext6(MultiChainContext);
|
|
2978
|
+
const solanaWallet = multiChain?.solanaWallet ?? null;
|
|
2981
2979
|
const requestPin = useCallback3(
|
|
2982
2980
|
(requestPurpose = "transaction") => {
|
|
2983
2981
|
return new Promise((resolve, reject) => {
|
|
@@ -3072,7 +3070,7 @@ function InternalPinProvider({
|
|
|
3072
3070
|
if (disabled || !solanaWallet) {
|
|
3073
3071
|
return;
|
|
3074
3072
|
}
|
|
3075
|
-
const adapter = solanaWallet
|
|
3073
|
+
const adapter = solanaWallet?.adapter;
|
|
3076
3074
|
if (adapter && adapter.name === "ABC Wallet" && adapter.connected && typeof adapter.setRequestPinCallback === "function") {
|
|
3077
3075
|
adapter.setRequestPinCallback(() => requestPin("transaction"));
|
|
3078
3076
|
}
|
|
@@ -3097,7 +3095,7 @@ function InternalPinProvider({
|
|
|
3097
3095
|
}
|
|
3098
3096
|
|
|
3099
3097
|
// src/components/RainbowKitProvider/ModalSizeContext.tsx
|
|
3100
|
-
import React17, { createContext as createContext10, useContext as
|
|
3098
|
+
import React17, { createContext as createContext10, useContext as useContext7 } from "react";
|
|
3101
3099
|
|
|
3102
3100
|
// src/hooks/useWindowSize.ts
|
|
3103
3101
|
import { useEffect as useEffect11, useState as useState10 } from "react";
|
|
@@ -3174,7 +3172,7 @@ function ModalSizeProvider({
|
|
|
3174
3172
|
}) {
|
|
3175
3173
|
const { width } = useWindowSize();
|
|
3176
3174
|
const isSmallScreen = width && width < largeScreenMinWidth;
|
|
3177
|
-
const { connector } =
|
|
3175
|
+
const { connector } = useContext7(WalletButtonContext);
|
|
3178
3176
|
return /* @__PURE__ */ React17.createElement(
|
|
3179
3177
|
ModalSizeContext.Provider,
|
|
3180
3178
|
{
|
|
@@ -3185,7 +3183,7 @@ function ModalSizeProvider({
|
|
|
3185
3183
|
}
|
|
3186
3184
|
|
|
3187
3185
|
// src/components/RainbowKitProvider/RainbowKitConfigProvider.tsx
|
|
3188
|
-
import React18, { createContext as createContext11, useContext as
|
|
3186
|
+
import React18, { createContext as createContext11, useContext as useContext8 } from "react";
|
|
3189
3187
|
var RainbowKitConfigContext = createContext11(null);
|
|
3190
3188
|
function RainbowKitConfigProvider({
|
|
3191
3189
|
config: config2,
|
|
@@ -3194,7 +3192,7 @@ function RainbowKitConfigProvider({
|
|
|
3194
3192
|
return /* @__PURE__ */ React18.createElement(RainbowKitConfigContext.Provider, { value: config2 }, children);
|
|
3195
3193
|
}
|
|
3196
3194
|
function useRainbowKitConfig() {
|
|
3197
|
-
const context =
|
|
3195
|
+
const context = useContext8(RainbowKitConfigContext);
|
|
3198
3196
|
if (!context) {
|
|
3199
3197
|
throw new Error(
|
|
3200
3198
|
"useRainbowKitConfig must be used within RainbowKitProvider"
|
|
@@ -3215,7 +3213,7 @@ function setRainbowKitVersion({ version }) {
|
|
|
3215
3213
|
}
|
|
3216
3214
|
function useFingerprint() {
|
|
3217
3215
|
const fingerprint = useCallback4(() => {
|
|
3218
|
-
setRainbowKitVersion({ version: "2.4.
|
|
3216
|
+
setRainbowKitVersion({ version: "2.4.12" });
|
|
3219
3217
|
}, []);
|
|
3220
3218
|
useEffect12(() => {
|
|
3221
3219
|
fingerprint();
|
|
@@ -3500,7 +3498,7 @@ function useWalletConnectors(mergeEIP6963WithRkConnectors = false) {
|
|
|
3500
3498
|
|
|
3501
3499
|
// src/components/Icons/Assets.tsx
|
|
3502
3500
|
import React19 from "react";
|
|
3503
|
-
var src = async () => (await import("./assets-
|
|
3501
|
+
var src = async () => (await import("./assets-4NDWRKXE.js")).default;
|
|
3504
3502
|
var preloadAssetsIcon = () => loadImages(src);
|
|
3505
3503
|
var AssetsIcon = () => /* @__PURE__ */ React19.createElement(
|
|
3506
3504
|
AsyncImage,
|
|
@@ -3515,7 +3513,7 @@ var AssetsIcon = () => /* @__PURE__ */ React19.createElement(
|
|
|
3515
3513
|
|
|
3516
3514
|
// src/components/Icons/Login.tsx
|
|
3517
3515
|
import React20 from "react";
|
|
3518
|
-
var src2 = async () => (await import("./login-
|
|
3516
|
+
var src2 = async () => (await import("./login-DGIK764Z.js")).default;
|
|
3519
3517
|
var preloadLoginIcon = () => loadImages(src2);
|
|
3520
3518
|
var LoginIcon = () => /* @__PURE__ */ React20.createElement(
|
|
3521
3519
|
AsyncImage,
|
|
@@ -3529,7 +3527,7 @@ var LoginIcon = () => /* @__PURE__ */ React20.createElement(
|
|
|
3529
3527
|
);
|
|
3530
3528
|
|
|
3531
3529
|
// src/components/SignIn/SignIn.tsx
|
|
3532
|
-
import React25, { useCallback as useCallback5, useContext as
|
|
3530
|
+
import React25, { useCallback as useCallback5, useContext as useContext9, useRef as useRef2 } from "react";
|
|
3533
3531
|
import { UserRejectedRequestError } from "viem";
|
|
3534
3532
|
import { useAccount as useAccount8, useSignMessage } from "wagmi";
|
|
3535
3533
|
|
|
@@ -3725,12 +3723,12 @@ var CloseButton = ({
|
|
|
3725
3723
|
};
|
|
3726
3724
|
|
|
3727
3725
|
// src/components/SignIn/SignIn.tsx
|
|
3728
|
-
var signInIcon = async () => (await import("./sign-
|
|
3726
|
+
var signInIcon = async () => (await import("./sign-PREOQ4RR.js")).default;
|
|
3729
3727
|
function SignIn({
|
|
3730
3728
|
onClose,
|
|
3731
3729
|
onCloseModal
|
|
3732
3730
|
}) {
|
|
3733
|
-
const { i18n: i18n2 } =
|
|
3731
|
+
const { i18n: i18n2 } = useContext9(I18nContext);
|
|
3734
3732
|
const [{ status, ...state }, setState] = React25.useState({ status: "idle" });
|
|
3735
3733
|
const authAdapter = useAuthenticationAdapter();
|
|
3736
3734
|
const getNonce = useCallback5(async () => {
|
|
@@ -3995,7 +3993,7 @@ var createThemeRootSelector = (id) => {
|
|
|
3995
3993
|
return id ? `[${attr}="${id}"]` : `[${attr}]`;
|
|
3996
3994
|
};
|
|
3997
3995
|
var useThemeRootProps = () => {
|
|
3998
|
-
const id =
|
|
3996
|
+
const id = useContext10(ThemeIdContext);
|
|
3999
3997
|
return createThemeRootProps(id);
|
|
4000
3998
|
};
|
|
4001
3999
|
var defaultTheme = lightTheme();
|
|
@@ -4218,7 +4216,7 @@ function Dialog({ children, onClose, open, titleId }) {
|
|
|
4218
4216
|
}
|
|
4219
4217
|
|
|
4220
4218
|
// src/components/Dialog/DialogContent.tsx
|
|
4221
|
-
import React29, { useContext as
|
|
4219
|
+
import React29, { useContext as useContext11 } from "react";
|
|
4222
4220
|
|
|
4223
4221
|
// src/components/Dialog/DialogContent.css.ts
|
|
4224
4222
|
var bottomSheetOverrides = "qs007r7";
|
|
@@ -4238,7 +4236,7 @@ function DialogContent({
|
|
|
4238
4236
|
wide = false
|
|
4239
4237
|
}) {
|
|
4240
4238
|
const mobile = isMobile();
|
|
4241
|
-
const modalSize =
|
|
4239
|
+
const modalSize = useContext11(ModalSizeContext);
|
|
4242
4240
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
4243
4241
|
return /* @__PURE__ */ React29.createElement(Box, { marginTop }, /* @__PURE__ */ React29.createElement(
|
|
4244
4242
|
Box,
|
|
@@ -4254,7 +4252,7 @@ function DialogContent({
|
|
|
4254
4252
|
}
|
|
4255
4253
|
|
|
4256
4254
|
// src/components/ProfileDetails/ProfileDetails.tsx
|
|
4257
|
-
import React39, { useCallback as useCallback10, useContext as
|
|
4255
|
+
import React39, { useCallback as useCallback10, useContext as useContext13, useEffect as useEffect16, useState as useState13 } from "react";
|
|
4258
4256
|
|
|
4259
4257
|
// src/components/ConnectButton/abbreviateETHBalance.ts
|
|
4260
4258
|
var units = ["k", "m", "b", "t"];
|
|
@@ -4368,7 +4366,7 @@ var DisconnectIcon = () => /* @__PURE__ */ React32.createElement(
|
|
|
4368
4366
|
);
|
|
4369
4367
|
|
|
4370
4368
|
// src/components/Txs/TxList.tsx
|
|
4371
|
-
import React37, { useContext as
|
|
4369
|
+
import React37, { useContext as useContext12 } from "react";
|
|
4372
4370
|
import { useAccount as useAccount11 } from "wagmi";
|
|
4373
4371
|
|
|
4374
4372
|
// src/transactions/useClearRecentTransactions.ts
|
|
@@ -4539,8 +4537,8 @@ function TxList({ address }) {
|
|
|
4539
4537
|
const visibleTxs = recentTransactions.slice(0, NUMBER_OF_VISIBLE_TXS);
|
|
4540
4538
|
const hasTransactions = visibleTxs.length > 0;
|
|
4541
4539
|
const mobile = isMobile();
|
|
4542
|
-
const { appName } =
|
|
4543
|
-
const { i18n: i18n2 } =
|
|
4540
|
+
const { appName } = useContext12(AppContext);
|
|
4541
|
+
const { i18n: i18n2 } = useContext12(I18nContext);
|
|
4544
4542
|
return /* @__PURE__ */ React37.createElement(React37.Fragment, null, /* @__PURE__ */ React37.createElement(
|
|
4545
4543
|
Box,
|
|
4546
4544
|
{
|
|
@@ -4716,7 +4714,7 @@ function ProfileDetails({
|
|
|
4716
4714
|
onClose,
|
|
4717
4715
|
onDisconnect
|
|
4718
4716
|
}) {
|
|
4719
|
-
const showRecentTransactions =
|
|
4717
|
+
const showRecentTransactions = useContext13(ShowRecentTransactionsContext);
|
|
4720
4718
|
const [copiedAddress, setCopiedAddress] = useState13(false);
|
|
4721
4719
|
const copyAddressAction = useCallback10(() => {
|
|
4722
4720
|
if (address) {
|
|
@@ -4740,7 +4738,7 @@ function ProfileDetails({
|
|
|
4740
4738
|
const displayBalance = ethBalance ? abbreviateETHBalance(Number.parseFloat(ethBalance)) : void 0;
|
|
4741
4739
|
const titleId = "rk_profile_title";
|
|
4742
4740
|
const mobile = isMobile();
|
|
4743
|
-
const { i18n: i18n2 } =
|
|
4741
|
+
const { i18n: i18n2 } = useContext13(I18nContext);
|
|
4744
4742
|
return /* @__PURE__ */ React39.createElement(React39.Fragment, null, /* @__PURE__ */ React39.createElement(Box, { display: "flex", flexDirection: "column" }, /* @__PURE__ */ React39.createElement(Box, { background: "profileForeground", padding: "16" }, /* @__PURE__ */ React39.createElement(
|
|
4745
4743
|
Box,
|
|
4746
4744
|
{
|
|
@@ -4843,7 +4841,7 @@ function AccountModal({ onClose, open }) {
|
|
|
4843
4841
|
includeBalance: open
|
|
4844
4842
|
});
|
|
4845
4843
|
const { disconnect } = useDisconnect();
|
|
4846
|
-
const multiChainContext =
|
|
4844
|
+
const multiChainContext = useContext14(MultiChainContext);
|
|
4847
4845
|
const displayAddress = address || multiChainContext?.solanaAddress;
|
|
4848
4846
|
if (!displayAddress) {
|
|
4849
4847
|
return null;
|
|
@@ -4871,7 +4869,7 @@ function AccountModal({ onClose, open }) {
|
|
|
4871
4869
|
}
|
|
4872
4870
|
|
|
4873
4871
|
// src/components/ChainModal/ChainModal.tsx
|
|
4874
|
-
import React44, { useContext as
|
|
4872
|
+
import React44, { useContext as useContext16, useState as useState14 } from "react";
|
|
4875
4873
|
import { useAccount as useAccount13, useDisconnect as useDisconnect2, useSwitchChain } from "wagmi";
|
|
4876
4874
|
import { useConfig as useConfig2 } from "wagmi";
|
|
4877
4875
|
|
|
@@ -4957,7 +4955,7 @@ var MenuButton = React42.forwardRef(
|
|
|
4957
4955
|
MenuButton.displayName = "MenuButton";
|
|
4958
4956
|
|
|
4959
4957
|
// src/components/ChainModal/Chain.tsx
|
|
4960
|
-
import React43, { Fragment, useContext as
|
|
4958
|
+
import React43, { Fragment, useContext as useContext15 } from "react";
|
|
4961
4959
|
var Chain = ({
|
|
4962
4960
|
chainId,
|
|
4963
4961
|
currentChainId,
|
|
@@ -4970,7 +4968,7 @@ var Chain = ({
|
|
|
4970
4968
|
idx
|
|
4971
4969
|
}) => {
|
|
4972
4970
|
const mobile = isMobile();
|
|
4973
|
-
const { i18n: i18n2 } =
|
|
4971
|
+
const { i18n: i18n2 } = useContext15(I18nContext);
|
|
4974
4972
|
const rainbowkitChains = useRainbowKitChains();
|
|
4975
4973
|
const isCurrentChain = currentChainId === chainId;
|
|
4976
4974
|
return /* @__PURE__ */ React43.createElement(Fragment, null, /* @__PURE__ */ React43.createElement(
|
|
@@ -5086,7 +5084,7 @@ function ChainModal({ onClose, open }) {
|
|
|
5086
5084
|
}
|
|
5087
5085
|
}
|
|
5088
5086
|
});
|
|
5089
|
-
const { i18n: i18n2 } =
|
|
5087
|
+
const { i18n: i18n2 } = useContext16(I18nContext);
|
|
5090
5088
|
const { disconnect } = useDisconnect2();
|
|
5091
5089
|
const titleId = "rk_chain_modal_title";
|
|
5092
5090
|
const mobile = isMobile();
|
|
@@ -5196,14 +5194,14 @@ function ChainModal({ onClose, open }) {
|
|
|
5196
5194
|
}
|
|
5197
5195
|
|
|
5198
5196
|
// src/components/ConnectModal/ConnectModal.tsx
|
|
5199
|
-
import React73, { useContext as
|
|
5197
|
+
import React73, { useContext as useContext25 } from "react";
|
|
5200
5198
|
import { useAccount as useAccount14, useDisconnect as useDisconnect3 } from "wagmi";
|
|
5201
5199
|
|
|
5202
5200
|
// src/components/ConnectOptions/ConnectOptions.tsx
|
|
5203
5201
|
import {
|
|
5204
5202
|
WalletContext
|
|
5205
5203
|
} from "@solana/wallet-adapter-react";
|
|
5206
|
-
import React69, { useCallback as useCallback12, useContext as
|
|
5204
|
+
import React69, { useCallback as useCallback12, useContext as useContext23, useMemo as useMemo12, useState as useState26 } from "react";
|
|
5207
5205
|
|
|
5208
5206
|
// src/wallets/recentSolanaWalletIds.ts
|
|
5209
5207
|
var storageKey5 = "rk-recent-solana";
|
|
@@ -5227,11 +5225,11 @@ function addRecentSolanaWalletId(walletName2) {
|
|
|
5227
5225
|
}
|
|
5228
5226
|
|
|
5229
5227
|
// src/components/ConnectOptions/ConnectOptionsModal.tsx
|
|
5230
|
-
import React66, { useContext as
|
|
5228
|
+
import React66, { useContext as useContext20, useEffect as useEffect21, useRef as useRef5, useState as useState23 } from "react";
|
|
5231
5229
|
import { useConnect as useConnect2, useConnectors } from "wagmi";
|
|
5232
5230
|
|
|
5233
5231
|
// src/components/ConnectModal/ConnectModalIntro.tsx
|
|
5234
|
-
import React47, { useContext as
|
|
5232
|
+
import React47, { useContext as useContext17 } from "react";
|
|
5235
5233
|
|
|
5236
5234
|
// src/components/Disclaimer/DisclaimerLink.tsx
|
|
5237
5235
|
import React45 from "react";
|
|
@@ -5263,8 +5261,8 @@ function ConnectModalIntro({
|
|
|
5263
5261
|
compactModeEnabled = false,
|
|
5264
5262
|
getWallet
|
|
5265
5263
|
}) {
|
|
5266
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
5267
|
-
const { i18n: i18n2 } =
|
|
5264
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext17(AppContext);
|
|
5265
|
+
const { i18n: i18n2 } = useContext17(I18nContext);
|
|
5268
5266
|
return /* @__PURE__ */ React47.createElement(React47.Fragment, null, /* @__PURE__ */ React47.createElement(
|
|
5269
5267
|
Box,
|
|
5270
5268
|
{
|
|
@@ -6770,7 +6768,7 @@ function AbcWaasAuthFlow({
|
|
|
6770
6768
|
}
|
|
6771
6769
|
|
|
6772
6770
|
// src/components/ConnectOptions/ConnectDetails.tsx
|
|
6773
|
-
import React60, { useContext as
|
|
6771
|
+
import React60, { useContext as useContext18, useEffect as useEffect17 } from "react";
|
|
6774
6772
|
|
|
6775
6773
|
// src/utils/colors.ts
|
|
6776
6774
|
var convertHexToRGBA = (hexCode, opacity = 1) => {
|
|
@@ -6801,7 +6799,7 @@ var isHexString = (color) => {
|
|
|
6801
6799
|
|
|
6802
6800
|
// src/components/Icons/Connect.tsx
|
|
6803
6801
|
import React55 from "react";
|
|
6804
|
-
var src3 = async () => (await import("./connect-
|
|
6802
|
+
var src3 = async () => (await import("./connect-Q2RLUT5B.js")).default;
|
|
6805
6803
|
var preloadConnectIcon = () => loadImages(src3);
|
|
6806
6804
|
var ConnectIcon = () => /* @__PURE__ */ React55.createElement(
|
|
6807
6805
|
AsyncImage,
|
|
@@ -6817,7 +6815,7 @@ var ConnectIcon = () => /* @__PURE__ */ React55.createElement(
|
|
|
6817
6815
|
|
|
6818
6816
|
// src/components/Icons/Create.tsx
|
|
6819
6817
|
import React56 from "react";
|
|
6820
|
-
var src4 = async () => (await import("./create-
|
|
6818
|
+
var src4 = async () => (await import("./create-HQ4QXTKY.js")).default;
|
|
6821
6819
|
var preloadCreateIcon = () => loadImages(src4);
|
|
6822
6820
|
var CreateIcon = () => /* @__PURE__ */ React56.createElement(
|
|
6823
6821
|
AsyncImage,
|
|
@@ -6833,7 +6831,7 @@ var CreateIcon = () => /* @__PURE__ */ React56.createElement(
|
|
|
6833
6831
|
|
|
6834
6832
|
// src/components/Icons/Refresh.tsx
|
|
6835
6833
|
import React57 from "react";
|
|
6836
|
-
var src5 = async () => (await import("./refresh-
|
|
6834
|
+
var src5 = async () => (await import("./refresh-R5NYTT3S.js")).default;
|
|
6837
6835
|
var preloadRefreshIcon = () => loadImages(src5);
|
|
6838
6836
|
var RefreshIcon = () => /* @__PURE__ */ React57.createElement(
|
|
6839
6837
|
AsyncImage,
|
|
@@ -6849,7 +6847,7 @@ var RefreshIcon = () => /* @__PURE__ */ React57.createElement(
|
|
|
6849
6847
|
|
|
6850
6848
|
// src/components/Icons/Scan.tsx
|
|
6851
6849
|
import React58 from "react";
|
|
6852
|
-
var src6 = async () => (await import("./scan-
|
|
6850
|
+
var src6 = async () => (await import("./scan-BVZ7DVJ4.js")).default;
|
|
6853
6851
|
var preloadScanIcon = () => loadImages(src6);
|
|
6854
6852
|
var ScanIcon = () => /* @__PURE__ */ React58.createElement(
|
|
6855
6853
|
AsyncImage,
|
|
@@ -7011,21 +7009,21 @@ var getBrowserSrc = async () => {
|
|
|
7011
7009
|
const browser = getBrowser();
|
|
7012
7010
|
switch (browser) {
|
|
7013
7011
|
case "Arc" /* Arc */:
|
|
7014
|
-
return (await import("./Arc-
|
|
7012
|
+
return (await import("./Arc-ILTINY4C.js")).default;
|
|
7015
7013
|
case "Brave" /* Brave */:
|
|
7016
|
-
return (await import("./Brave-
|
|
7014
|
+
return (await import("./Brave-4L5B7JJR.js")).default;
|
|
7017
7015
|
case "Chrome" /* Chrome */:
|
|
7018
|
-
return (await import("./Chrome-
|
|
7016
|
+
return (await import("./Chrome-6ZDQIHC5.js")).default;
|
|
7019
7017
|
case "Edge" /* Edge */:
|
|
7020
|
-
return (await import("./Edge-
|
|
7018
|
+
return (await import("./Edge-OAWCEU7H.js")).default;
|
|
7021
7019
|
case "Firefox" /* Firefox */:
|
|
7022
|
-
return (await import("./Firefox-
|
|
7020
|
+
return (await import("./Firefox-O66FZK3V.js")).default;
|
|
7023
7021
|
case "Opera" /* Opera */:
|
|
7024
|
-
return (await import("./Opera-
|
|
7022
|
+
return (await import("./Opera-KTUB3UWN.js")).default;
|
|
7025
7023
|
case "Safari" /* Safari */:
|
|
7026
|
-
return (await import("./Safari-
|
|
7024
|
+
return (await import("./Safari-A3Q6PIT2.js")).default;
|
|
7027
7025
|
default:
|
|
7028
|
-
return (await import("./Browser-
|
|
7026
|
+
return (await import("./Browser-XMB4J5WD.js")).default;
|
|
7029
7027
|
}
|
|
7030
7028
|
};
|
|
7031
7029
|
var preloadBrowserIcon = () => loadImages(getBrowserSrc);
|
|
@@ -7033,13 +7031,13 @@ var getPlatformSrc = async () => {
|
|
|
7033
7031
|
const platform = getPlatform();
|
|
7034
7032
|
switch (platform) {
|
|
7035
7033
|
case "Windows" /* Windows */:
|
|
7036
|
-
return (await import("./Windows-
|
|
7034
|
+
return (await import("./Windows-NL32NG52.js")).default;
|
|
7037
7035
|
case "macOS" /* MacOS */:
|
|
7038
|
-
return (await import("./Macos-
|
|
7036
|
+
return (await import("./Macos-46EJ2NPK.js")).default;
|
|
7039
7037
|
case "Linux" /* Linux */:
|
|
7040
|
-
return (await import("./Linux-
|
|
7038
|
+
return (await import("./Linux-NUJF4EPC.js")).default;
|
|
7041
7039
|
default:
|
|
7042
|
-
return (await import("./Linux-
|
|
7040
|
+
return (await import("./Linux-NUJF4EPC.js")).default;
|
|
7043
7041
|
}
|
|
7044
7042
|
};
|
|
7045
7043
|
var preloadPlatformIcon = () => loadImages(getPlatformSrc);
|
|
@@ -7051,7 +7049,7 @@ function GetDetail({
|
|
|
7051
7049
|
(wallet) => wallet.isRainbowKitConnector
|
|
7052
7050
|
);
|
|
7053
7051
|
const shownWallets = wallets.splice(0, 5);
|
|
7054
|
-
const { i18n: i18n2 } =
|
|
7052
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7055
7053
|
return /* @__PURE__ */ React60.createElement(
|
|
7056
7054
|
Box,
|
|
7057
7055
|
{
|
|
@@ -7162,7 +7160,7 @@ function ConnectDetail({
|
|
|
7162
7160
|
} = wallet;
|
|
7163
7161
|
const isDesktopDeepLinkAvailable = !!getDesktopUri;
|
|
7164
7162
|
const safari = isSafari();
|
|
7165
|
-
const { i18n: i18n2 } =
|
|
7163
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7166
7164
|
const hasExtension = !!wallet.extensionDownloadUrl;
|
|
7167
7165
|
const hasQrCodeAndExtension = downloadUrls?.qrCode && hasExtension;
|
|
7168
7166
|
const hasQrCodeAndDesktop = downloadUrls?.qrCode && !!wallet.desktopDownloadUrl;
|
|
@@ -7536,7 +7534,7 @@ function DownloadOptionsDetail({
|
|
|
7536
7534
|
}) {
|
|
7537
7535
|
const browser = getBrowser();
|
|
7538
7536
|
const platform = getPlatform();
|
|
7539
|
-
const modalSize =
|
|
7537
|
+
const modalSize = useContext18(ModalSizeContext);
|
|
7540
7538
|
const isCompact = modalSize === "compact";
|
|
7541
7539
|
const {
|
|
7542
7540
|
desktop,
|
|
@@ -7545,7 +7543,7 @@ function DownloadOptionsDetail({
|
|
|
7545
7543
|
extensionDownloadUrl,
|
|
7546
7544
|
mobileDownloadUrl
|
|
7547
7545
|
} = wallet;
|
|
7548
|
-
const { i18n: i18n2 } =
|
|
7546
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7549
7547
|
useEffect17(() => {
|
|
7550
7548
|
preloadCreateIcon();
|
|
7551
7549
|
preloadScanIcon();
|
|
@@ -7641,7 +7639,7 @@ function DownloadDetail({
|
|
|
7641
7639
|
wallet
|
|
7642
7640
|
}) {
|
|
7643
7641
|
const { downloadUrls, qrCode } = wallet;
|
|
7644
|
-
const { i18n: i18n2 } =
|
|
7642
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7645
7643
|
useEffect17(() => {
|
|
7646
7644
|
preloadCreateIcon();
|
|
7647
7645
|
preloadScanIcon();
|
|
@@ -7704,7 +7702,7 @@ function InstructionMobileDetail({
|
|
|
7704
7702
|
connectWallet,
|
|
7705
7703
|
wallet
|
|
7706
7704
|
}) {
|
|
7707
|
-
const { i18n: i18n2 } =
|
|
7705
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7708
7706
|
return /* @__PURE__ */ React60.createElement(
|
|
7709
7707
|
Box,
|
|
7710
7708
|
{
|
|
@@ -7792,7 +7790,7 @@ function InstructionMobileDetail({
|
|
|
7792
7790
|
function InstructionExtensionDetail({
|
|
7793
7791
|
wallet
|
|
7794
7792
|
}) {
|
|
7795
|
-
const { i18n: i18n2 } =
|
|
7793
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7796
7794
|
return /* @__PURE__ */ React60.createElement(
|
|
7797
7795
|
Box,
|
|
7798
7796
|
{
|
|
@@ -7881,7 +7879,7 @@ function InstructionDesktopDetail({
|
|
|
7881
7879
|
connectWallet,
|
|
7882
7880
|
wallet
|
|
7883
7881
|
}) {
|
|
7884
|
-
const { i18n: i18n2 } =
|
|
7882
|
+
const { i18n: i18n2 } = useContext18(I18nContext);
|
|
7885
7883
|
return /* @__PURE__ */ React60.createElement(
|
|
7886
7884
|
Box,
|
|
7887
7885
|
{
|
|
@@ -7974,10 +7972,10 @@ import React62, { Fragment as Fragment2 } from "react";
|
|
|
7974
7972
|
import React61 from "react";
|
|
7975
7973
|
|
|
7976
7974
|
// src/components/RainbowKitProvider/useCoolMode.ts
|
|
7977
|
-
import { useContext as
|
|
7975
|
+
import { useContext as useContext19, useEffect as useEffect18, useRef as useRef4 } from "react";
|
|
7978
7976
|
var useCoolMode = (imageUrl) => {
|
|
7979
7977
|
const ref = useRef4(null);
|
|
7980
|
-
const coolModeEnabled =
|
|
7978
|
+
const coolModeEnabled = useContext19(CoolModeContext);
|
|
7981
7979
|
const resolvedImageUrl = useAsyncImage(imageUrl);
|
|
7982
7980
|
useEffect18(() => {
|
|
7983
7981
|
if (coolModeEnabled && ref.current && resolvedImageUrl) {
|
|
@@ -9286,16 +9284,16 @@ function ConnectOptionsModal({
|
|
|
9286
9284
|
compact = false
|
|
9287
9285
|
}) {
|
|
9288
9286
|
const titleId = "rk_connect_title";
|
|
9289
|
-
const modalSize =
|
|
9287
|
+
const modalSize = useContext20(ModalSizeContext);
|
|
9290
9288
|
const compactModeEnabled = modalSize === ModalSizeOptions.COMPACT;
|
|
9291
|
-
const { disclaimer: Disclaimer } =
|
|
9292
|
-
const { i18n: i18n2 } =
|
|
9289
|
+
const { disclaimer: Disclaimer } = useContext20(AppContext);
|
|
9290
|
+
const { i18n: i18n2 } = useContext20(I18nContext);
|
|
9293
9291
|
const STORAGE_PREFIX2 = "talkenkit_abc_";
|
|
9294
9292
|
const [abcWaasLoginData, setAbcWaasLoginData] = useState23(null);
|
|
9295
9293
|
const [email, setEmail] = useState23("");
|
|
9296
9294
|
const initialized = useRef5(false);
|
|
9297
9295
|
const pinAuthFlowRef = useRef5(null);
|
|
9298
|
-
const { connector } =
|
|
9296
|
+
const { connector } = useContext20(WalletButtonContext);
|
|
9299
9297
|
const mergeEIP6963WithRkConnectors = !connector;
|
|
9300
9298
|
const wallets = useWalletConnectors(mergeEIP6963WithRkConnectors).filter((wallet) => wallet.ready || !!wallet.extensionDownloadUrl).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
9301
9299
|
const unfilteredWallets = useWalletConnectors();
|
|
@@ -9739,7 +9737,7 @@ function ConnectOptionsModal({
|
|
|
9739
9737
|
// src/components/ConnectOptions/MobileOptions.tsx
|
|
9740
9738
|
import React67, {
|
|
9741
9739
|
useCallback as useCallback11,
|
|
9742
|
-
useContext as
|
|
9740
|
+
useContext as useContext21,
|
|
9743
9741
|
useEffect as useEffect23,
|
|
9744
9742
|
useRef as useRef6,
|
|
9745
9743
|
useState as useState25
|
|
@@ -9832,7 +9830,7 @@ function WalletButton({
|
|
|
9832
9830
|
} = wallet;
|
|
9833
9831
|
const coolModeRef = useCoolMode(iconUrl);
|
|
9834
9832
|
const initialized = useRef6(false);
|
|
9835
|
-
const { i18n: i18n2 } =
|
|
9833
|
+
const { i18n: i18n2 } = useContext21(I18nContext);
|
|
9836
9834
|
const onConnect = useCallback11(async () => {
|
|
9837
9835
|
const onMobileUri = async () => {
|
|
9838
9836
|
const mobileUri = await getMobileUri?.();
|
|
@@ -9941,7 +9939,7 @@ function MobileOptions({ onClose }) {
|
|
|
9941
9939
|
const wallets = useWalletConnectors().filter(
|
|
9942
9940
|
(wallet) => wallet.isRainbowKitConnector
|
|
9943
9941
|
);
|
|
9944
|
-
const { disclaimer: Disclaimer, learnMoreUrl } =
|
|
9942
|
+
const { disclaimer: Disclaimer, learnMoreUrl } = useContext21(AppContext);
|
|
9945
9943
|
let headerLabel = null;
|
|
9946
9944
|
let walletContent = null;
|
|
9947
9945
|
let headerBackgroundContrast = false;
|
|
@@ -9949,7 +9947,7 @@ function MobileOptions({ onClose }) {
|
|
|
9949
9947
|
const [walletStep, setWalletStep] = useState25(
|
|
9950
9948
|
"CONNECT" /* Connect */
|
|
9951
9949
|
);
|
|
9952
|
-
const { i18n: i18n2 } =
|
|
9950
|
+
const { i18n: i18n2 } = useContext21(I18nContext);
|
|
9953
9951
|
const ios = isIOS();
|
|
9954
9952
|
switch (walletStep) {
|
|
9955
9953
|
case "CONNECT" /* Connect */: {
|
|
@@ -10187,10 +10185,10 @@ function MobileOptions({ onClose }) {
|
|
|
10187
10185
|
}
|
|
10188
10186
|
|
|
10189
10187
|
// src/components/ConnectOptions/MobileStatus.tsx
|
|
10190
|
-
import React68, { useContext as
|
|
10188
|
+
import React68, { useContext as useContext22 } from "react";
|
|
10191
10189
|
var MobileStatus = ({ onClose }) => {
|
|
10192
|
-
const { connector } =
|
|
10193
|
-
const { i18n: i18n2 } =
|
|
10190
|
+
const { connector } = useContext22(WalletButtonContext);
|
|
10191
|
+
const { i18n: i18n2 } = useContext22(I18nContext);
|
|
10194
10192
|
const connectorName = connector?.name || "";
|
|
10195
10193
|
return /* @__PURE__ */ React68.createElement(Box, null, /* @__PURE__ */ React68.createElement(
|
|
10196
10194
|
Box,
|
|
@@ -10234,9 +10232,9 @@ var MobileStatus = ({ onClose }) => {
|
|
|
10234
10232
|
|
|
10235
10233
|
// src/components/ConnectOptions/ConnectOptions.tsx
|
|
10236
10234
|
function ConnectOptions({ onClose }) {
|
|
10237
|
-
const { connector } =
|
|
10238
|
-
const multiChainContext =
|
|
10239
|
-
const walletContext =
|
|
10235
|
+
const { connector } = useContext23(WalletButtonContext);
|
|
10236
|
+
const multiChainContext = useContext23(MultiChainContext);
|
|
10237
|
+
const walletContext = useContext23(
|
|
10240
10238
|
WalletContext
|
|
10241
10239
|
);
|
|
10242
10240
|
const { solanaWallets, select, connecting } = useMemo12(() => {
|
|
@@ -10362,7 +10360,7 @@ function ConnectOptions({ onClose }) {
|
|
|
10362
10360
|
|
|
10363
10361
|
// src/components/ConnectOptions/MultiChainConnectOptions.tsx
|
|
10364
10362
|
import { useWallet as useWallet4 } from "@solana/wallet-adapter-react";
|
|
10365
|
-
import React72, { useContext as
|
|
10363
|
+
import React72, { useContext as useContext24, useCallback as useCallback14, useState as useState28 } from "react";
|
|
10366
10364
|
|
|
10367
10365
|
// src/components/ChainSelector/ChainSelector.tsx
|
|
10368
10366
|
import clsx3 from "clsx";
|
|
@@ -10517,8 +10515,8 @@ function MultiChainConnectOptions({
|
|
|
10517
10515
|
onClose,
|
|
10518
10516
|
showChainSelector = true
|
|
10519
10517
|
}) {
|
|
10520
|
-
const multiChainContext =
|
|
10521
|
-
const { connector } =
|
|
10518
|
+
const multiChainContext = useContext24(MultiChainContext);
|
|
10519
|
+
const { connector } = useContext24(WalletButtonContext);
|
|
10522
10520
|
if (!multiChainContext) {
|
|
10523
10521
|
return isMobile() ? connector ? /* @__PURE__ */ React72.createElement(MobileStatus, { onClose }) : /* @__PURE__ */ React72.createElement(MobileOptions, { onClose }) : /* @__PURE__ */ React72.createElement(ConnectOptionsModal, { onClose });
|
|
10524
10522
|
}
|
|
@@ -10540,7 +10538,7 @@ function MultiChainConnectOptions({
|
|
|
10540
10538
|
}
|
|
10541
10539
|
function UnifiedWalletList({ onClose }) {
|
|
10542
10540
|
const { wallets: solanaWallets, select, connecting } = useWallet4();
|
|
10543
|
-
const _multiChainContext =
|
|
10541
|
+
const _multiChainContext = useContext24(MultiChainContext);
|
|
10544
10542
|
const [connectingWallet, setConnectingWallet] = useState28(null);
|
|
10545
10543
|
const handleSolanaWalletClick = useCallback14(
|
|
10546
10544
|
async (walletName2) => {
|
|
@@ -10624,7 +10622,7 @@ function UnifiedWalletList({ onClose }) {
|
|
|
10624
10622
|
function ConnectModal({ onClose, open }) {
|
|
10625
10623
|
const titleId = "rk_connect_title";
|
|
10626
10624
|
const connectionStatus = useConnectionStatus();
|
|
10627
|
-
const multiChainContext =
|
|
10625
|
+
const multiChainContext = useContext25(MultiChainContext);
|
|
10628
10626
|
const { disconnect } = useDisconnect3();
|
|
10629
10627
|
const { isConnecting, isConnected } = useAccount14();
|
|
10630
10628
|
React73.useEffect(() => {
|
|
@@ -10700,7 +10698,7 @@ function ModalProvider({ children }) {
|
|
|
10700
10698
|
const { chainId } = useAccount15();
|
|
10701
10699
|
const { chains } = useConfig3();
|
|
10702
10700
|
const isCurrentChainSupported = chains.some((chain) => chain.id === chainId);
|
|
10703
|
-
const multiChainContext =
|
|
10701
|
+
const multiChainContext = useContext26(MultiChainContext);
|
|
10704
10702
|
const _isAnyChainConnected = connectionStatus === "connected" || multiChainContext?.solanaConnected;
|
|
10705
10703
|
const closeModals = useCallback15(
|
|
10706
10704
|
({ keepConnectModalOpen = false } = {}) => {
|
|
@@ -10756,7 +10754,7 @@ function ModalProvider({ children }) {
|
|
|
10756
10754
|
);
|
|
10757
10755
|
}
|
|
10758
10756
|
function useModalState() {
|
|
10759
|
-
const { accountModalOpen, chainModalOpen, connectModalOpen } =
|
|
10757
|
+
const { accountModalOpen, chainModalOpen, connectModalOpen } = useContext26(ModalContext);
|
|
10760
10758
|
return {
|
|
10761
10759
|
accountModalOpen,
|
|
10762
10760
|
chainModalOpen,
|
|
@@ -10764,19 +10762,19 @@ function useModalState() {
|
|
|
10764
10762
|
};
|
|
10765
10763
|
}
|
|
10766
10764
|
function useAccountModal() {
|
|
10767
|
-
const { accountModalOpen, openAccountModal } =
|
|
10765
|
+
const { accountModalOpen, openAccountModal } = useContext26(ModalContext);
|
|
10768
10766
|
return { accountModalOpen, openAccountModal };
|
|
10769
10767
|
}
|
|
10770
10768
|
function useChainModal() {
|
|
10771
|
-
const { chainModalOpen, openChainModal } =
|
|
10769
|
+
const { chainModalOpen, openChainModal } = useContext26(ModalContext);
|
|
10772
10770
|
return { chainModalOpen, openChainModal };
|
|
10773
10771
|
}
|
|
10774
10772
|
function useWalletConnectOpenState() {
|
|
10775
|
-
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } =
|
|
10773
|
+
const { isWalletConnectModalOpen, setIsWalletConnectModalOpen } = useContext26(ModalContext);
|
|
10776
10774
|
return { isWalletConnectModalOpen, setIsWalletConnectModalOpen };
|
|
10777
10775
|
}
|
|
10778
10776
|
function useConnectModal() {
|
|
10779
|
-
const { connectModalOpen, openConnectModal } =
|
|
10777
|
+
const { connectModalOpen, openConnectModal } = useContext26(ModalContext);
|
|
10780
10778
|
const { isWalletConnectModalOpen } = useWalletConnectOpenState();
|
|
10781
10779
|
return {
|
|
10782
10780
|
connectModalOpen: connectModalOpen || isWalletConnectModalOpen,
|
|
@@ -10804,8 +10802,8 @@ function ConnectButtonRenderer({
|
|
|
10804
10802
|
const chainIconUrl = rainbowKitChain?.iconUrl ?? void 0;
|
|
10805
10803
|
const chainIconBackground = rainbowKitChain?.iconBackground ?? void 0;
|
|
10806
10804
|
const resolvedChainIconUrl = useAsyncImage(chainIconUrl);
|
|
10807
|
-
const multiChainContext =
|
|
10808
|
-
const showRecentTransactions =
|
|
10805
|
+
const multiChainContext = useContext27(MultiChainContext);
|
|
10806
|
+
const showRecentTransactions = useContext27(ShowRecentTransactionsContext);
|
|
10809
10807
|
const hasPendingTransactions = useRecentTransactions().some(({ status }) => status === "pending") && showRecentTransactions;
|
|
10810
10808
|
const { showBalance } = useShowBalance();
|
|
10811
10809
|
const computeShouldShowBalance = () => {
|
|
@@ -10885,7 +10883,7 @@ function ConnectButton({
|
|
|
10885
10883
|
const connectionStatus = useConnectionStatus();
|
|
10886
10884
|
const { setShowBalance } = useShowBalance();
|
|
10887
10885
|
const [ready, setReady] = useState30(false);
|
|
10888
|
-
const { i18n: i18n2 } =
|
|
10886
|
+
const { i18n: i18n2 } = useContext28(I18nContext);
|
|
10889
10887
|
useEffect25(() => {
|
|
10890
10888
|
setShowBalance(showBalance);
|
|
10891
10889
|
if (!ready)
|
|
@@ -11118,7 +11116,7 @@ ConnectButton.__defaultProps = defaultProps;
|
|
|
11118
11116
|
ConnectButton.Custom = ConnectButtonRenderer;
|
|
11119
11117
|
|
|
11120
11118
|
// src/components/WalletButton/WalletButton.tsx
|
|
11121
|
-
import React78, { useContext as
|
|
11119
|
+
import React78, { useContext as useContext30 } from "react";
|
|
11122
11120
|
|
|
11123
11121
|
// src/components/WalletButton/WalletButton.css.ts
|
|
11124
11122
|
var border = "hk857q0";
|
|
@@ -11126,7 +11124,7 @@ var maxWidth = "hk857q1";
|
|
|
11126
11124
|
|
|
11127
11125
|
// src/components/WalletButton/WalletButtonRenderer.tsx
|
|
11128
11126
|
import React77, {
|
|
11129
|
-
useContext as
|
|
11127
|
+
useContext as useContext29,
|
|
11130
11128
|
useEffect as useEffect26,
|
|
11131
11129
|
useMemo as useMemo14,
|
|
11132
11130
|
useState as useState31
|
|
@@ -11141,7 +11139,7 @@ function WalletButtonRenderer({
|
|
|
11141
11139
|
const isMounted = useIsMounted();
|
|
11142
11140
|
const { openConnectModal } = useConnectModal();
|
|
11143
11141
|
const { connectModalOpen } = useModalState();
|
|
11144
|
-
const { connector, setConnector } =
|
|
11142
|
+
const { connector, setConnector } = useContext29(WalletButtonContext);
|
|
11145
11143
|
const [firstConnector] = useWalletConnectors().filter((wallet2) => wallet2.isRainbowKitConnector).filter((_wallet) => _wallet.id.toLowerCase() === wallet.toLowerCase()).sort((a, b) => a.groupIndex - b.groupIndex);
|
|
11146
11144
|
if (!firstConnector) {
|
|
11147
11145
|
throw new Error("Connector not found");
|
|
@@ -11212,7 +11210,7 @@ function WalletButtonRenderer({
|
|
|
11212
11210
|
var WalletButton2 = ({ wallet }) => {
|
|
11213
11211
|
return /* @__PURE__ */ React78.createElement(WalletButtonRenderer, { wallet }, ({ ready, connect, connected, mounted, connector, loading }) => {
|
|
11214
11212
|
const isDisabled = !ready || loading;
|
|
11215
|
-
const { i18n: i18n2 } =
|
|
11213
|
+
const { i18n: i18n2 } = useContext30(I18nContext);
|
|
11216
11214
|
const connectorName = connector?.name || "";
|
|
11217
11215
|
if (!mounted)
|
|
11218
11216
|
return;
|
|
@@ -11619,7 +11617,7 @@ var coinbaseWallet = ({ appName, appIcon }) => {
|
|
|
11619
11617
|
name: "Coinbase Wallet",
|
|
11620
11618
|
shortName: "Coinbase",
|
|
11621
11619
|
rdns: "com.coinbase.wallet",
|
|
11622
|
-
iconUrl: async () => (await import("./coinbaseWallet-
|
|
11620
|
+
iconUrl: async () => (await import("./coinbaseWallet-L4QDZB5W.js")).default,
|
|
11623
11621
|
iconAccent: "#2c5ff6",
|
|
11624
11622
|
iconBackground: "#2c5ff6",
|
|
11625
11623
|
// If the coinbase wallet browser extension is not installed, a popup will appear
|
|
@@ -11791,7 +11789,7 @@ var metaMaskWallet = ({
|
|
|
11791
11789
|
id: "metaMask",
|
|
11792
11790
|
name: "MetaMask",
|
|
11793
11791
|
rdns: "io.metamask",
|
|
11794
|
-
iconUrl: async () => (await import("./metaMaskWallet-
|
|
11792
|
+
iconUrl: async () => (await import("./metaMaskWallet-ZZMFVM52.js")).default,
|
|
11795
11793
|
iconAccent: "#f6851a",
|
|
11796
11794
|
iconBackground: "#fff",
|
|
11797
11795
|
installed: !shouldUseWalletConnect ? isMetaMaskInjected : void 0,
|
|
@@ -11881,7 +11879,7 @@ var rainbowWallet = ({
|
|
|
11881
11879
|
id: "rainbow",
|
|
11882
11880
|
name: "Rainbow",
|
|
11883
11881
|
rdns: "me.rainbow",
|
|
11884
|
-
iconUrl: async () => (await import("./rainbowWallet-
|
|
11882
|
+
iconUrl: async () => (await import("./rainbowWallet-4ALDT5ZL.js")).default,
|
|
11885
11883
|
iconBackground: "#0c2f78",
|
|
11886
11884
|
installed: !shouldUseWalletConnect ? isRainbowInjected : void 0,
|
|
11887
11885
|
downloadUrls: {
|
|
@@ -11930,7 +11928,7 @@ var safeWallet = () => ({
|
|
|
11930
11928
|
name: "Safe",
|
|
11931
11929
|
iconAccent: "#12ff80",
|
|
11932
11930
|
iconBackground: "#fff",
|
|
11933
|
-
iconUrl: async () => (await import("./safeWallet-
|
|
11931
|
+
iconUrl: async () => (await import("./safeWallet-5NR62MJV.js")).default,
|
|
11934
11932
|
installed: (
|
|
11935
11933
|
// Only allowed in iframe context
|
|
11936
11934
|
// borrowed from wagmi safe connector
|
|
@@ -11959,7 +11957,7 @@ var walletConnectWallet = ({
|
|
|
11959
11957
|
id: "walletConnect",
|
|
11960
11958
|
name: "WalletConnect",
|
|
11961
11959
|
installed: void 0,
|
|
11962
|
-
iconUrl: async () => (await import("./walletConnectWallet-
|
|
11960
|
+
iconUrl: async () => (await import("./walletConnectWallet-AJ36XVBT.js")).default,
|
|
11963
11961
|
iconBackground: "#3b99fc",
|
|
11964
11962
|
qrCode: { getUri },
|
|
11965
11963
|
createConnector: getWalletConnectConnector({
|
|
@@ -12194,7 +12192,7 @@ function ChainIndicator({
|
|
|
12194
12192
|
// src/providers/AbcAuthProvider.tsx
|
|
12195
12193
|
import React80, {
|
|
12196
12194
|
createContext as createContext15,
|
|
12197
|
-
useContext as
|
|
12195
|
+
useContext as useContext31,
|
|
12198
12196
|
useState as useState32,
|
|
12199
12197
|
useEffect as useEffect28,
|
|
12200
12198
|
useCallback as useCallback17
|
|
@@ -12203,7 +12201,7 @@ var DEBUG = true;
|
|
|
12203
12201
|
var STORAGE_PREFIX = "talkenkit_abc_";
|
|
12204
12202
|
var AbcAuthContext = createContext15(null);
|
|
12205
12203
|
function useAbcAuth() {
|
|
12206
|
-
const context =
|
|
12204
|
+
const context = useContext31(AbcAuthContext);
|
|
12207
12205
|
if (!context) {
|
|
12208
12206
|
throw new Error("useAbcAuth must be used within AbcAuthProvider");
|
|
12209
12207
|
}
|
|
@@ -12444,7 +12442,7 @@ function AbcAuthProvider({ children }) {
|
|
|
12444
12442
|
// src/components/AbcAuth/PinProvider.tsx
|
|
12445
12443
|
import React81, {
|
|
12446
12444
|
createContext as createContext16,
|
|
12447
|
-
useContext as
|
|
12445
|
+
useContext as useContext32,
|
|
12448
12446
|
useState as useState33,
|
|
12449
12447
|
useCallback as useCallback18,
|
|
12450
12448
|
useEffect as useEffect29
|
|
@@ -12548,7 +12546,7 @@ function PinProvider({ children }) {
|
|
|
12548
12546
|
));
|
|
12549
12547
|
}
|
|
12550
12548
|
function usePin() {
|
|
12551
|
-
const context =
|
|
12549
|
+
const context = useContext32(PinContext);
|
|
12552
12550
|
if (!context) {
|
|
12553
12551
|
return {
|
|
12554
12552
|
requestPin: async () => {
|
|
@@ -12618,7 +12616,7 @@ function useBitcoinWallet() {
|
|
|
12618
12616
|
});
|
|
12619
12617
|
return;
|
|
12620
12618
|
}
|
|
12621
|
-
const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-
|
|
12619
|
+
const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-YOPLVWVE.js");
|
|
12622
12620
|
const client = createAbcWaasApiClient2({
|
|
12623
12621
|
waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
12624
12622
|
plain: "",
|
|
@@ -12736,7 +12734,7 @@ function useSolanaWallet() {
|
|
|
12736
12734
|
});
|
|
12737
12735
|
return;
|
|
12738
12736
|
}
|
|
12739
|
-
const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-
|
|
12737
|
+
const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-YOPLVWVE.js");
|
|
12740
12738
|
const client = createAbcWaasApiClient2({
|
|
12741
12739
|
waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
|
|
12742
12740
|
plain: "",
|