@funkit/connect 3.0.0-next.4 → 3.0.0-next.5

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 (37) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/components/Dialog/Dialog.d.ts +2 -1
  3. package/dist/index.js +14 -10
  4. package/dist/wallets/walletConnectors/argentWallet/argentWallet.js +2 -2
  5. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  6. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  7. package/dist/wallets/walletConnectors/bloomWallet/bloomWallet.js +2 -2
  8. package/dist/wallets/walletConnectors/chunk-A6MZY5ZZ.js +81 -0
  9. package/dist/wallets/walletConnectors/chunk-ARIYPPEC.js +92 -0
  10. package/dist/wallets/walletConnectors/chunk-BEAW5Y5M.js +60 -0
  11. package/dist/wallets/walletConnectors/chunk-FLTQRYFS.js +27 -0
  12. package/dist/wallets/walletConnectors/chunk-PIZ2XVGH.js +60 -0
  13. package/dist/wallets/walletConnectors/chunk-RXUGTOMT.js +60 -0
  14. package/dist/wallets/walletConnectors/dawnWallet/dawnWallet.js +2 -2
  15. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  16. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  17. package/dist/wallets/walletConnectors/index.js +77 -77
  18. package/dist/wallets/walletConnectors/ledgerWallet/ledgerWallet.js +2 -2
  19. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  20. package/dist/wallets/walletConnectors/oktoWallet/oktoWallet.js +2 -2
  21. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  22. package/dist/wallets/walletConnectors/omniWallet/omniWallet.js +2 -2
  23. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  24. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  25. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  26. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  27. package/package.json +3 -3
  28. package/dist/wallets/walletConnectors/{chunk-YIJ5ULO3.js → chunk-3A3KT3GZ.js} +3 -3
  29. package/dist/wallets/walletConnectors/{chunk-X45WXZDO.js → chunk-BUVITE4U.js} +3 -3
  30. package/dist/wallets/walletConnectors/{chunk-KL5Z3XHJ.js → chunk-FCP4ZXSK.js} +3 -3
  31. package/dist/wallets/walletConnectors/{chunk-ISJYPD3T.js → chunk-I4RN7PK4.js} +3 -3
  32. package/dist/wallets/walletConnectors/{chunk-DBP432DI.js → chunk-JSW2MDVV.js} +3 -3
  33. package/dist/wallets/walletConnectors/{chunk-LCOUKF2U.js → chunk-JTOJ3GAD.js} +3 -3
  34. package/dist/wallets/walletConnectors/{chunk-IEVZW3XR.js → chunk-N562TVO2.js} +3 -3
  35. package/dist/wallets/walletConnectors/{chunk-ODRDT73B.js → chunk-P4ECTFIG.js} +4 -4
  36. package/dist/wallets/walletConnectors/{chunk-5HXH52SO.js → chunk-S6UDLDVQ.js} +3 -3
  37. package/dist/wallets/walletConnectors/{chunk-OHJBALD3.js → chunk-WKNMWQZZ.js} +4 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @funkit/connect
2
2
 
3
+ ## 3.0.0-next.5
4
+
5
+ ### Patch Changes
6
+
7
+ - v3 custom button switcher polishes
8
+
3
9
  ## 3.0.0-next.4
4
10
 
5
11
  ### Patch Changes
@@ -16,7 +16,7 @@ interface DialogProps {
16
16
  */
17
17
  export declare function Dialog({ children, onClose, open, titleId, isHidden, isSmartCloseable, }: DialogProps): React.JSX.Element;
18
18
  export declare namespace Dialog {
19
- var Title: ({ title, hasCloseButton, onClose, hasBackButton, onBack, backAnimation, skipBackDelay, countdownSeconds, countdownKey, delayCountdownReturnByBuffer, }: DialogTitleProps) => React.JSX.Element;
19
+ var Title: ({ title, hasCloseButton, onClose, hasBackButton, onBack, backAnimation, skipBackDelay, countdownSeconds, countdownKey, delayCountdownReturnByBuffer, dydxHideBack, }: DialogTitleProps) => React.JSX.Element;
20
20
  var Content: ({ children, fullHeight, paddingLeft, className, withTopDivider, withBottomDivider, ...boxProps }: DialogContentProps) => React.JSX.Element;
21
21
  var BottomSection: ({ paddingX, ...boxProps }: Omit<BoxProps, "children">) => React.JSX.Element;
22
22
  var BottomBar: ({ topSection, actionButtonProps, bottomSection, }: import("../FunBottomBar/FunBottomBar").FunBottomBarProps) => React.JSX.Element;
@@ -39,5 +39,6 @@ export interface DialogTitleProps {
39
39
  countdownSeconds?: number;
40
40
  countdownKey?: string;
41
41
  delayCountdownReturnByBuffer?: boolean;
42
+ dydxHideBack?: boolean;
42
43
  }
43
44
  export {};
package/dist/index.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  en_US_default
4
4
  } from "./chunk-FRCBBARC.js";
5
- import {
6
- lightTheme
7
- } from "./chunk-76VEFMWE.js";
8
5
  import {
9
6
  darkTheme
10
7
  } from "./chunk-Z3QREJ3Q.js";
8
+ import {
9
+ lightTheme
10
+ } from "./chunk-76VEFMWE.js";
11
11
  import "./chunk-HFT6OV3T.js";
12
12
 
13
13
  // src/components/DevTest/DevEmbed.tsx
@@ -2618,9 +2618,9 @@ var DialogBottom = ({
2618
2618
  return /* @__PURE__ */ React27.createElement(Box, { paddingX, ...boxProps });
2619
2619
  };
2620
2620
  var DYDX_API = "NJq0CGrsE19xBbP1vHyBOp8xJvzYo9kayJHqDFP5";
2621
- function useDydxHideBack(hasBackButton) {
2621
+ function useDydxHideBack(hasBackButton, dydxHideBack) {
2622
2622
  const { apiKey } = useFunkitConfig();
2623
- return apiKey === DYDX_API && !hasBackButton;
2623
+ return apiKey === DYDX_API && !hasBackButton && dydxHideBack;
2624
2624
  }
2625
2625
  var DialogTitle = ({
2626
2626
  title,
@@ -2632,7 +2632,8 @@ var DialogTitle = ({
2632
2632
  skipBackDelay = false,
2633
2633
  countdownSeconds,
2634
2634
  countdownKey,
2635
- delayCountdownReturnByBuffer = false
2635
+ delayCountdownReturnByBuffer = false,
2636
+ dydxHideBack
2636
2637
  }) => {
2637
2638
  const hasTimeLeft = countdownSeconds !== void 0 && countdownSeconds > 0;
2638
2639
  const [isCountdownVisible, setIsCountdownVisible] = useState7(hasTimeLeft);
@@ -2654,7 +2655,7 @@ var DialogTitle = ({
2654
2655
  useEffect10(() => {
2655
2656
  setIsCountdownVisible(hasTimeLeft);
2656
2657
  }, [hasTimeLeft, countdownKey]);
2657
- const hideAllBackSection = useDydxHideBack(hasBackButton);
2658
+ const hideAllBackSection = useDydxHideBack(hasBackButton, !!dydxHideBack);
2658
2659
  return /* @__PURE__ */ React27.createElement(
2659
2660
  Box,
2660
2661
  {
@@ -12294,6 +12295,7 @@ function DydxSwitchTab({
12294
12295
  /* @__PURE__ */ React130.createElement(
12295
12296
  Box,
12296
12297
  {
12298
+ width: "half",
12297
12299
  borderRadius: "10",
12298
12300
  borderWidth: "2",
12299
12301
  borderStyle: "solid",
@@ -12310,10 +12312,11 @@ function DydxSwitchTab({
12310
12312
  /* @__PURE__ */ React130.createElement(
12311
12313
  Box,
12312
12314
  {
12313
- style: { cursor: "pointer" },
12315
+ width: "half",
12314
12316
  paddingLeft: "16",
12315
12317
  paddingRight: "12",
12316
12318
  paddingY: "12",
12319
+ cursor: "pointer",
12317
12320
  onClick: onSwitch
12318
12321
  },
12319
12322
  /* @__PURE__ */ React130.createElement(Text, { color: "tertiaryText", style: { float: "right" } }, Standard),
@@ -16134,7 +16137,8 @@ function FunCheckoutModal({
16134
16137
  onClose: onCloseWrapper,
16135
16138
  countdownSeconds: checkoutStep === "confirmation" /* CONFIRMATION */ ? countdown : 0,
16136
16139
  countdownKey: countdownKey.toString(),
16137
- delayCountdownReturnByBuffer: true
16140
+ delayCountdownReturnByBuffer: true,
16141
+ dydxHideBack: checkoutStep === "input_amount" /* INPUT_AMOUNT */
16138
16142
  }
16139
16143
  ),
16140
16144
  /* @__PURE__ */ React167.createElement(
@@ -18355,7 +18359,7 @@ function setFunkitConnectVersion({ version }) {
18355
18359
  localStorage.setItem(storageKey5, version);
18356
18360
  }
18357
18361
  function getCurrentSdkVersion() {
18358
- return "3.0.0-next.4";
18362
+ return "3.0.0-next.5";
18359
18363
  }
18360
18364
  function useFingerprint() {
18361
18365
  const fingerprint = useCallback33(() => {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  argentWallet
4
- } from "../chunk-ZHFISYEQ.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-BEAW5Y5M.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  argentWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bifrostWallet
4
- } from "../chunk-KL5Z3XHJ.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-FCP4ZXSK.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  bifrostWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  bitgetWallet
4
- } from "../chunk-IEVZW3XR.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-N562TVO2.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  bitgetWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  bloomWallet
4
- } from "../chunk-J64P6XK3.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-A6MZY5ZZ.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  bloomWallet
9
9
  };
@@ -0,0 +1,81 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ isMobile
7
+ } from "./chunk-RETKWSKD.js";
8
+
9
+ // src/wallets/walletConnectors/bloomWallet/bloomWallet.ts
10
+ var bloomWallet = ({
11
+ projectId,
12
+ walletConnectParameters
13
+ }) => ({
14
+ id: "bloomWallet",
15
+ name: "Bloom Wallet",
16
+ iconBackground: "#000",
17
+ iconAccent: "#000",
18
+ hidden: () => isMobile(),
19
+ iconUrl: async () => (await import("./bloomWallet-MXLAOWS6.js")).default,
20
+ downloadUrls: {
21
+ qrCode: "https://bloomwallet.io/",
22
+ windows: "https://bloomwallet.io/",
23
+ macos: "https://bloomwallet.io/",
24
+ linux: "https://bloomwallet.io/",
25
+ desktop: "https://bloomwallet.io/"
26
+ },
27
+ qrCode: {
28
+ getUri: (uri) => `bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
29
+ instructions: {
30
+ learnMoreUrl: "https://bloomwallet.io/",
31
+ steps: [
32
+ {
33
+ description: "wallet_connectors.bloom.qr_code.step1.description",
34
+ step: "install",
35
+ title: "wallet_connectors.bloom.qr_code.step1.title"
36
+ },
37
+ {
38
+ description: "wallet_connectors.bloom.qr_code.step2.description",
39
+ step: "create",
40
+ title: "wallet_connectors.bloom.qr_code.step2.title"
41
+ },
42
+ {
43
+ description: "wallet_connectors.bloom.qr_code.step3.description",
44
+ step: "refresh",
45
+ title: "wallet_connectors.bloom.qr_code.step3.title"
46
+ }
47
+ ]
48
+ }
49
+ },
50
+ desktop: {
51
+ getUri: (uri) => `bloom://wallet-connect/wc?uri=${encodeURIComponent(uri)}`,
52
+ instructions: {
53
+ learnMoreUrl: "https://bloomwallet.io/",
54
+ steps: [
55
+ {
56
+ description: "wallet_connectors.bloom.desktop.step1.description",
57
+ step: "install",
58
+ title: "wallet_connectors.bloom.desktop.step1.title"
59
+ },
60
+ {
61
+ description: "wallet_connectors.bloom.desktop.step2.description",
62
+ step: "create",
63
+ title: "wallet_connectors.bloom.desktop.step2.title"
64
+ },
65
+ {
66
+ description: "wallet_connectors.bloom.desktop.step3.description",
67
+ step: "refresh",
68
+ title: "wallet_connectors.bloom.desktop.step3.title"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ createConnector: getWalletConnectConnector({
74
+ projectId,
75
+ walletConnectParameters
76
+ })
77
+ });
78
+
79
+ export {
80
+ bloomWallet
81
+ };
@@ -0,0 +1,92 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ isAndroid
7
+ } from "./chunk-RETKWSKD.js";
8
+
9
+ // src/wallets/walletConnectors/ledgerWallet/ledgerWallet.ts
10
+ var ledgerWallet = ({
11
+ projectId,
12
+ walletConnectParameters
13
+ }) => ({
14
+ id: "ledger",
15
+ iconBackground: "#000",
16
+ iconAccent: "#000",
17
+ name: "Ledger",
18
+ iconUrl: async () => (await import("./ledgerWallet-KZKJ5Q2S.js")).default,
19
+ downloadUrls: {
20
+ android: "https://play.google.com/store/apps/details?id=com.ledger.live",
21
+ ios: "https://apps.apple.com/us/app/ledger-live-web3-wallet/id1361671700",
22
+ mobile: "https://www.ledger.com/ledger-live",
23
+ qrCode: "https://r354.adj.st/?adj_t=t2esmlk",
24
+ windows: "https://www.ledger.com/ledger-live/download",
25
+ macos: "https://www.ledger.com/ledger-live/download",
26
+ linux: "https://www.ledger.com/ledger-live/download",
27
+ desktop: "https://www.ledger.com/ledger-live"
28
+ },
29
+ mobile: {
30
+ getUri: (uri) => {
31
+ return isAndroid() ? uri : `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
32
+ }
33
+ },
34
+ desktop: {
35
+ getUri: (uri) => {
36
+ return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
37
+ },
38
+ instructions: {
39
+ learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
40
+ steps: [
41
+ {
42
+ description: "wallet_connectors.ledger.desktop.step1.description",
43
+ step: "install",
44
+ title: "wallet_connectors.ledger.desktop.step1.title"
45
+ },
46
+ {
47
+ description: "wallet_connectors.ledger.desktop.step2.description",
48
+ step: "create",
49
+ title: "wallet_connectors.ledger.desktop.step2.title"
50
+ },
51
+ {
52
+ description: "wallet_connectors.ledger.desktop.step3.description",
53
+ step: "connect",
54
+ title: "wallet_connectors.ledger.desktop.step3.title"
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ qrCode: {
60
+ getUri: (uri) => {
61
+ return `ledgerlive://wc?uri=${encodeURIComponent(uri)}`;
62
+ },
63
+ instructions: {
64
+ learnMoreUrl: "https://support.ledger.com/hc/en-us/articles/4404389503889-Getting-started-with-Ledger-Live",
65
+ steps: [
66
+ {
67
+ description: "wallet_connectors.ledger.qr_code.step1.description",
68
+ step: "install",
69
+ title: "wallet_connectors.ledger.qr_code.step1.title"
70
+ },
71
+ {
72
+ description: "wallet_connectors.ledger.qr_code.step2.description",
73
+ step: "create",
74
+ title: "wallet_connectors.ledger.qr_code.step2.title"
75
+ },
76
+ {
77
+ description: "wallet_connectors.ledger.qr_code.step3.description",
78
+ step: "scan",
79
+ title: "wallet_connectors.ledger.qr_code.step3.title"
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ createConnector: getWalletConnectConnector({
85
+ projectId,
86
+ walletConnectParameters
87
+ })
88
+ });
89
+
90
+ export {
91
+ ledgerWallet
92
+ };
@@ -0,0 +1,60 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ isAndroid
7
+ } from "./chunk-RETKWSKD.js";
8
+
9
+ // src/wallets/walletConnectors/argentWallet/argentWallet.ts
10
+ var argentWallet = ({
11
+ projectId,
12
+ walletConnectParameters
13
+ }) => ({
14
+ id: "argent",
15
+ name: "Argent",
16
+ iconUrl: async () => (await import("./argentWallet-M6SBG4CU.js")).default,
17
+ iconBackground: "#fff",
18
+ downloadUrls: {
19
+ android: "https://play.google.com/store/apps/details?id=im.argent.contractwalletclient",
20
+ ios: "https://apps.apple.com/us/app/argent/id1358741926",
21
+ mobile: "https://argent.xyz/download-argent",
22
+ qrCode: "https://argent.link/app"
23
+ },
24
+ mobile: {
25
+ getUri: (uri) => {
26
+ return isAndroid() ? uri : `argent://app/wc?uri=${encodeURIComponent(uri)}`;
27
+ }
28
+ },
29
+ qrCode: {
30
+ getUri: (uri) => uri,
31
+ instructions: {
32
+ learnMoreUrl: "https://argent.xyz/learn/what-is-a-crypto-wallet/",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.argent.qr_code.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.argent.qr_code.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.argent.qr_code.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.argent.qr_code.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.argent.qr_code.step3.description",
46
+ step: "scan",
47
+ title: "wallet_connectors.argent.qr_code.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ createConnector: getWalletConnectConnector({
53
+ projectId,
54
+ walletConnectParameters
55
+ })
56
+ });
57
+
58
+ export {
59
+ argentWallet
60
+ };
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import {
3
+ getInjectedConnector,
4
+ hasInjectedProvider
5
+ } from "./chunk-WRA2DVJ7.js";
6
+ import {
7
+ isIOS
8
+ } from "./chunk-RETKWSKD.js";
9
+
10
+ // src/wallets/walletConnectors/dawnWallet/dawnWallet.ts
11
+ var dawnWallet = () => ({
12
+ id: "dawn",
13
+ name: "Dawn",
14
+ iconUrl: async () => (await import("./dawnWallet-ONVAA3S4.js")).default,
15
+ iconBackground: "#000000",
16
+ installed: hasInjectedProvider({ flag: "isDawn" }),
17
+ hidden: () => !isIOS(),
18
+ downloadUrls: {
19
+ ios: "https://apps.apple.com/us/app/dawn-ethereum-wallet/id1673143782",
20
+ mobile: "https://dawnwallet.xyz"
21
+ },
22
+ createConnector: getInjectedConnector({ flag: "isDawn" })
23
+ });
24
+
25
+ export {
26
+ dawnWallet
27
+ };
@@ -0,0 +1,60 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ isAndroid
7
+ } from "./chunk-RETKWSKD.js";
8
+
9
+ // src/wallets/walletConnectors/omniWallet/omniWallet.ts
10
+ var omniWallet = ({
11
+ projectId,
12
+ walletConnectParameters
13
+ }) => ({
14
+ id: "omni",
15
+ name: "Omni",
16
+ iconUrl: async () => (await import("./omniWallet-DEYUMT4A.js")).default,
17
+ iconBackground: "#000",
18
+ downloadUrls: {
19
+ android: "https://play.google.com/store/apps/details?id=fi.steakwallet.app",
20
+ ios: "https://itunes.apple.com/us/app/id1569375204",
21
+ mobile: "https://omniwallet.app.link",
22
+ qrCode: "https://omniwallet.app.link"
23
+ },
24
+ mobile: {
25
+ getUri: (uri) => {
26
+ return isAndroid() ? uri : `omni://wc?uri=${encodeURIComponent(uri)}`;
27
+ }
28
+ },
29
+ qrCode: {
30
+ getUri: (uri) => uri,
31
+ instructions: {
32
+ learnMoreUrl: "https://omni.app/support",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.omni.qr_code.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.omni.qr_code.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.omni.qr_code.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.omni.qr_code.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.omni.qr_code.step3.description",
46
+ step: "scan",
47
+ title: "wallet_connectors.omni.qr_code.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ createConnector: getWalletConnectConnector({
53
+ projectId,
54
+ walletConnectParameters
55
+ })
56
+ });
57
+
58
+ export {
59
+ omniWallet
60
+ };
@@ -0,0 +1,60 @@
1
+ "use client";
2
+ import {
3
+ getWalletConnectConnector
4
+ } from "./chunk-23WIEY36.js";
5
+ import {
6
+ isAndroid
7
+ } from "./chunk-RETKWSKD.js";
8
+
9
+ // src/wallets/walletConnectors/oktoWallet/oktoWallet.ts
10
+ var oktoWallet = ({
11
+ projectId,
12
+ walletConnectParameters
13
+ }) => ({
14
+ id: "Okto",
15
+ name: "Okto",
16
+ iconUrl: async () => (await import("./oktoWallet-GJFOPPEA.js")).default,
17
+ iconBackground: "#fff",
18
+ downloadUrls: {
19
+ android: "https://play.google.com/store/apps/details?id=im.okto.contractwalletclient",
20
+ ios: "https://apps.apple.com/in/app/okto-wallet/id6450688229",
21
+ mobile: "https://okto.tech/",
22
+ qrCode: "https://okto.tech/"
23
+ },
24
+ mobile: {
25
+ getUri: (uri) => {
26
+ return isAndroid() ? uri : `okto://wc?uri=${encodeURIComponent(uri)}`;
27
+ }
28
+ },
29
+ qrCode: {
30
+ getUri: (uri) => uri,
31
+ instructions: {
32
+ learnMoreUrl: "https://okto.tech/",
33
+ steps: [
34
+ {
35
+ description: "wallet_connectors.okto.qr_code.step1.description",
36
+ step: "install",
37
+ title: "wallet_connectors.okto.qr_code.step1.title"
38
+ },
39
+ {
40
+ description: "wallet_connectors.okto.qr_code.step2.description",
41
+ step: "create",
42
+ title: "wallet_connectors.okto.qr_code.step2.title"
43
+ },
44
+ {
45
+ description: "wallet_connectors.okto.qr_code.step3.description",
46
+ step: "scan",
47
+ title: "wallet_connectors.okto.qr_code.step3.title"
48
+ }
49
+ ]
50
+ }
51
+ },
52
+ createConnector: getWalletConnectConnector({
53
+ projectId,
54
+ walletConnectParameters
55
+ })
56
+ });
57
+
58
+ export {
59
+ oktoWallet
60
+ };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  dawnWallet
4
- } from "../chunk-KCTWDMQP.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-FLTQRYFS.js";
6
5
  import "../chunk-WRA2DVJ7.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  dawnWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  frontierWallet
4
- } from "../chunk-LCOUKF2U.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-JTOJ3GAD.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  frontierWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  gateWallet
4
- } from "../chunk-YIJ5ULO3.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-3A3KT3GZ.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  gateWallet
10
10
  };
@@ -1,154 +1,154 @@
1
1
  "use client";
2
2
  import {
3
- zerionWallet
4
- } from "./chunk-DBP432DI.js";
5
- import {
6
- phantomWallet
7
- } from "./chunk-KEVUI6AA.js";
3
+ zealWallet
4
+ } from "./chunk-BUUV6BS4.js";
8
5
  import {
9
- xdefiWallet
10
- } from "./chunk-RVIZMVFR.js";
6
+ walletConnectWallet
7
+ } from "./chunk-OFU3PEVT.js";
11
8
  import {
12
- tokenPocketWallet
13
- } from "./chunk-ISJYPD3T.js";
9
+ zerionWallet
10
+ } from "./chunk-JSW2MDVV.js";
14
11
  import {
15
12
  tokenaryWallet
16
13
  } from "./chunk-FAYEL4JP.js";
17
14
  import {
18
- safeheronWallet
19
- } from "./chunk-FCIRHRFH.js";
15
+ rabbyWallet
16
+ } from "./chunk-H5LLXNOI.js";
20
17
  import {
21
- talismanWallet
22
- } from "./chunk-OTXHQMSG.js";
18
+ tokenPocketWallet
19
+ } from "./chunk-I4RN7PK4.js";
20
+ import {
21
+ trustWallet
22
+ } from "./chunk-BUVITE4U.js";
23
+ import {
24
+ subWallet
25
+ } from "./chunk-N3ELQYCY.js";
23
26
  import {
24
27
  uniswapWallet
25
28
  } from "./chunk-QFRZGNNV.js";
26
29
  import {
27
- trustWallet
28
- } from "./chunk-X45WXZDO.js";
30
+ roninWallet
31
+ } from "./chunk-63YLN6R5.js";
29
32
  import {
30
- walletConnectWallet
31
- } from "./chunk-OFU3PEVT.js";
33
+ xdefiWallet
34
+ } from "./chunk-RVIZMVFR.js";
32
35
  import {
33
- zealWallet
34
- } from "./chunk-BUUV6BS4.js";
36
+ omniWallet
37
+ } from "./chunk-PIZ2XVGH.js";
35
38
  import {
36
39
  rainbowWallet
37
- } from "./chunk-OHJBALD3.js";
38
- import {
39
- rabbyWallet
40
- } from "./chunk-H5LLXNOI.js";
40
+ } from "./chunk-WKNMWQZZ.js";
41
41
  import {
42
- roninWallet
43
- } from "./chunk-63YLN6R5.js";
42
+ ramperWallet
43
+ } from "./chunk-TKXQYHWJ.js";
44
44
  import {
45
45
  safeWallet
46
46
  } from "./chunk-Z2QCE6O6.js";
47
+ import {
48
+ safeheronWallet
49
+ } from "./chunk-FCIRHRFH.js";
47
50
  import {
48
51
  safepalWallet
49
52
  } from "./chunk-AKAT37SI.js";
50
53
  import {
51
- ramperWallet
52
- } from "./chunk-TKXQYHWJ.js";
53
- import {
54
- subWallet
55
- } from "./chunk-N3ELQYCY.js";
54
+ talismanWallet
55
+ } from "./chunk-OTXHQMSG.js";
56
56
  import {
57
57
  tahoWallet
58
58
  } from "./chunk-6AYBA6IH.js";
59
59
  import {
60
- mewWallet
61
- } from "./chunk-CVYXTHZ6.js";
60
+ ledgerWallet
61
+ } from "./chunk-ARIYPPEC.js";
62
62
  import {
63
63
  oktoWallet
64
- } from "./chunk-MBQTOALG.js";
64
+ } from "./chunk-RXUGTOMT.js";
65
65
  import {
66
- injectedWallet
67
- } from "./chunk-E5NYR4SS.js";
66
+ mewWallet
67
+ } from "./chunk-CVYXTHZ6.js";
68
68
  import {
69
69
  oneInchWallet
70
70
  } from "./chunk-I7MKK24W.js";
71
71
  import {
72
- metaMaskWallet
73
- } from "./chunk-ODRDT73B.js";
72
+ phantomWallet
73
+ } from "./chunk-KEVUI6AA.js";
74
74
  import {
75
75
  okxWallet
76
- } from "./chunk-5HXH52SO.js";
76
+ } from "./chunk-S6UDLDVQ.js";
77
77
  import {
78
78
  oneKeyWallet
79
79
  } from "./chunk-ZP2SV6KN.js";
80
80
  import {
81
- omniWallet
82
- } from "./chunk-II6YBG2B.js";
83
- import {
84
- argentWallet
85
- } from "./chunk-ZHFISYEQ.js";
81
+ enkryptWallet
82
+ } from "./chunk-JJ4DXD7R.js";
86
83
  import {
87
84
  frontierWallet
88
- } from "./chunk-LCOUKF2U.js";
89
- import {
90
- foxWallet
91
- } from "./chunk-WAOREEBE.js";
85
+ } from "./chunk-JTOJ3GAD.js";
92
86
  import {
93
87
  imTokenWallet
94
88
  } from "./chunk-BMJOLT2N.js";
95
89
  import {
96
- ledgerWallet
97
- } from "./chunk-ZMHCZCGS.js";
90
+ kresusWallet
91
+ } from "./chunk-QQJKQCII.js";
92
+ import {
93
+ coin98Wallet
94
+ } from "./chunk-ZXGMW3OS.js";
98
95
  import {
99
96
  gateWallet
100
- } from "./chunk-YIJ5ULO3.js";
97
+ } from "./chunk-3A3KT3GZ.js";
101
98
  import {
102
- kresusWallet
103
- } from "./chunk-QQJKQCII.js";
99
+ metaMaskWallet
100
+ } from "./chunk-P4ECTFIG.js";
104
101
  import {
105
- coinbaseWallet
106
- } from "./chunk-PNEDRY6O.js";
102
+ injectedWallet
103
+ } from "./chunk-E5NYR4SS.js";
104
+ import {
105
+ bloomWallet
106
+ } from "./chunk-A6MZY5ZZ.js";
107
+ import {
108
+ bitverseWallet
109
+ } from "./chunk-BQEOIDHP.js";
110
+ import {
111
+ braveWallet
112
+ } from "./chunk-NUEOWEZS.js";
107
113
  import {
108
114
  coreWallet
109
115
  } from "./chunk-MOOW2AOC.js";
110
116
  import {
111
- bybitWallet
112
- } from "./chunk-3AZNOY75.js";
113
- import {
114
- bitgetWallet
115
- } from "./chunk-IEVZW3XR.js";
117
+ frameWallet
118
+ } from "./chunk-KPVNJO3R.js";
116
119
  import {
117
120
  dawnWallet
118
- } from "./chunk-KCTWDMQP.js";
121
+ } from "./chunk-FLTQRYFS.js";
122
+ import {
123
+ foxWallet
124
+ } from "./chunk-WAOREEBE.js";
119
125
  import {
120
126
  desigWallet
121
127
  } from "./chunk-44CHUPEQ.js";
122
128
  import {
123
- enkryptWallet
124
- } from "./chunk-JJ4DXD7R.js";
125
- import {
126
- frameWallet
127
- } from "./chunk-KPVNJO3R.js";
129
+ argentWallet
130
+ } from "./chunk-BEAW5Y5M.js";
128
131
  import {
129
132
  bifrostWallet
130
- } from "./chunk-KL5Z3XHJ.js";
133
+ } from "./chunk-FCP4ZXSK.js";
131
134
  import {
132
135
  bitskiWallet
133
136
  } from "./chunk-OCCT5PIN.js";
134
137
  import {
135
- bitverseWallet
136
- } from "./chunk-BQEOIDHP.js";
137
- import {
138
- bloomWallet
139
- } from "./chunk-J64P6XK3.js";
140
- import "./chunk-RETKWSKD.js";
138
+ bitgetWallet
139
+ } from "./chunk-N562TVO2.js";
141
140
  import {
142
- braveWallet
143
- } from "./chunk-NUEOWEZS.js";
141
+ bybitWallet
142
+ } from "./chunk-3AZNOY75.js";
144
143
  import {
145
144
  clvWallet
146
145
  } from "./chunk-UHHA5V52.js";
147
- import {
148
- coin98Wallet
149
- } from "./chunk-ZXGMW3OS.js";
150
146
  import "./chunk-23WIEY36.js";
151
147
  import "./chunk-WRA2DVJ7.js";
148
+ import {
149
+ coinbaseWallet
150
+ } from "./chunk-PNEDRY6O.js";
151
+ import "./chunk-RETKWSKD.js";
152
152
  export {
153
153
  argentWallet,
154
154
  bifrostWallet,
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  ledgerWallet
4
- } from "../chunk-ZMHCZCGS.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-ARIYPPEC.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  ledgerWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  metaMaskWallet
4
- } from "../chunk-ODRDT73B.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-P4ECTFIG.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  metaMaskWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  oktoWallet
4
- } from "../chunk-MBQTOALG.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-RXUGTOMT.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  oktoWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  okxWallet
4
- } from "../chunk-5HXH52SO.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-S6UDLDVQ.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  okxWallet
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  omniWallet
4
- } from "../chunk-II6YBG2B.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-PIZ2XVGH.js";
6
5
  import "../chunk-23WIEY36.js";
6
+ import "../chunk-RETKWSKD.js";
7
7
  export {
8
8
  omniWallet
9
9
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  rainbowWallet
4
- } from "../chunk-OHJBALD3.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-WKNMWQZZ.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  rainbowWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  tokenPocketWallet
4
- } from "../chunk-ISJYPD3T.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-I4RN7PK4.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  tokenPocketWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  trustWallet
4
- } from "../chunk-X45WXZDO.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-BUVITE4U.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  trustWallet
10
10
  };
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  zerionWallet
4
- } from "../chunk-DBP432DI.js";
5
- import "../chunk-RETKWSKD.js";
4
+ } from "../chunk-JSW2MDVV.js";
6
5
  import "../chunk-23WIEY36.js";
7
6
  import "../chunk-WRA2DVJ7.js";
7
+ import "../chunk-RETKWSKD.js";
8
8
  export {
9
9
  zerionWallet
10
10
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@funkit/connect",
3
- "version": "3.0.0-next.4",
3
+ "version": "3.0.0-next.5",
4
4
  "description": "Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.",
5
5
  "files": [
6
6
  "dist",
@@ -78,9 +78,9 @@
78
78
  "react-remove-scroll": "2.5.7",
79
79
  "ua-parser-js": "^1.0.37",
80
80
  "uuid": "^9.0.1",
81
+ "@funkit/api-base": "1.0.2-next.1",
81
82
  "@funkit/core": "2.1.2-next.2",
82
- "@funkit/wagmi-tools": "3.0.4-next.2",
83
- "@funkit/api-base": "1.0.2-next.1"
83
+ "@funkit/wagmi-tools": "3.0.4-next.2"
84
84
  },
85
85
  "repository": {
86
86
  "type": "git",
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/gateWallet/gateWallet.ts
14
14
  var gateWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isMobile
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/trustWallet/trustWallet.ts
14
14
  var trustWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bifrostWallet/bifrostWallet.ts
14
14
  var bifrostWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isMobile
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isMobile
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.ts
14
14
  var tokenPocketWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isIOS
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isIOS
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/zerionWallet/zerionWallet.ts
14
14
  var zerionWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/frontierWallet/frontierWallet.ts
14
14
  var frontierWallet = ({
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/bitgetWallet/bitgetWallet.ts
14
14
  var bitgetWallet = ({
@@ -1,8 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid,
4
- isIOS
5
- } from "./chunk-RETKWSKD.js";
6
2
  import {
7
3
  getWalletConnectConnector
8
4
  } from "./chunk-23WIEY36.js";
@@ -10,6 +6,10 @@ import {
10
6
  getInjectedConnector,
11
7
  hasInjectedProvider
12
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid,
11
+ isIOS
12
+ } from "./chunk-RETKWSKD.js";
13
13
 
14
14
  // src/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.ts
15
15
  function isMetaMask(ethereum) {
@@ -1,7 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid
4
- } from "./chunk-RETKWSKD.js";
5
2
  import {
6
3
  getWalletConnectConnector
7
4
  } from "./chunk-23WIEY36.js";
@@ -9,6 +6,9 @@ import {
9
6
  getInjectedConnector,
10
7
  hasInjectedProvider
11
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid
11
+ } from "./chunk-RETKWSKD.js";
12
12
 
13
13
  // src/wallets/walletConnectors/okxWallet/okxWallet.ts
14
14
  var okxWallet = ({
@@ -1,8 +1,4 @@
1
1
  "use client";
2
- import {
3
- isAndroid,
4
- isIOS
5
- } from "./chunk-RETKWSKD.js";
6
2
  import {
7
3
  getWalletConnectConnector
8
4
  } from "./chunk-23WIEY36.js";
@@ -10,6 +6,10 @@ import {
10
6
  getInjectedConnector,
11
7
  hasInjectedProvider
12
8
  } from "./chunk-WRA2DVJ7.js";
9
+ import {
10
+ isAndroid,
11
+ isIOS
12
+ } from "./chunk-RETKWSKD.js";
13
13
 
14
14
  // src/wallets/walletConnectors/rainbowWallet/rainbowWallet.ts
15
15
  var rainbowWallet = ({