@thirdweb-dev/react 4.4.21 → 4.4.22
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/{Tooltip-8ab7081d.cjs.dev.js → Tooltip-30787cb5.cjs.dev.js} +1 -1
- package/dist/{Tooltip-3999d8ef.esm.js → Tooltip-439bce69.esm.js} +1 -1
- package/dist/{Tooltip-b08a464d.browser.esm.js → Tooltip-58cbe26f.browser.esm.js} +1 -1
- package/dist/{Tooltip-fc5f1d06.cjs.prod.js → Tooltip-cd89334f.cjs.prod.js} +1 -1
- package/dist/declarations/src/evm/index.d.ts +1 -1
- package/dist/declarations/src/evm/index.d.ts.map +1 -1
- package/dist/declarations/src/evm/locales/en.d.ts.map +1 -1
- package/dist/declarations/src/evm/locales/es.d.ts.map +1 -1
- package/dist/declarations/src/evm/locales/ja.d.ts.map +1 -1
- package/dist/declarations/src/evm/locales/types.d.ts +2 -1
- package/dist/declarations/src/evm/locales/types.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/wallet/hooks/useInstalledWallets.d.ts +1 -0
- package/dist/declarations/src/wallet/hooks/useInstalledWallets.d.ts.map +1 -1
- package/dist/declarations/src/wallet/wallets/imtoken/imTokenWallet.d.ts +8 -0
- package/dist/declarations/src/wallet/wallets/imtoken/imTokenWallet.d.ts.map +1 -0
- package/dist/{formElements-c39105f7.browser.esm.js → formElements-1502c18b.browser.esm.js} +1 -0
- package/dist/{formElements-8ef06f1e.cjs.prod.js → formElements-2350e649.cjs.dev.js} +1 -0
- package/dist/{formElements-d22c07cb.esm.js → formElements-3463ed0e.esm.js} +1 -0
- package/dist/{formElements-dc85850a.cjs.dev.js → formElements-a2adb9f8.cjs.prod.js} +1 -0
- package/dist/{frameWallet-c8547b92.cjs.dev.js → frameWallet-0dd5fadd.cjs.dev.js} +2 -2
- package/dist/{frameWallet-10d6bd36.esm.js → frameWallet-2e5a3d3d.esm.js} +2 -2
- package/dist/{frameWallet-9d36b7da.cjs.prod.js → frameWallet-3992db98.cjs.prod.js} +2 -2
- package/dist/{frameWallet-49acd215.browser.esm.js → frameWallet-63225c82.browser.esm.js} +2 -2
- package/dist/{magicLink-c7ea6a91.esm.js → magicLink-1160181d.esm.js} +2 -2
- package/dist/{magicLink-2222dc44.cjs.prod.js → magicLink-4075310c.cjs.prod.js} +2 -2
- package/dist/{magicLink-ab8e0ba0.cjs.dev.js → magicLink-65669186.cjs.dev.js} +2 -2
- package/dist/{magicLink-a638d4f0.browser.esm.js → magicLink-9f1193ee.browser.esm.js} +2 -2
- package/dist/{oneKeyWallet-bb222763.cjs.dev.js → oneKeyWallet-277f744e.cjs.dev.js} +16 -13
- package/dist/{oneKeyWallet-4f0e0106.esm.js → oneKeyWallet-49059a34.esm.js} +16 -13
- package/dist/{oneKeyWallet-d3478a15.cjs.prod.js → oneKeyWallet-e0a4530f.cjs.prod.js} +16 -13
- package/dist/{oneKeyWallet-88adde75.browser.esm.js → oneKeyWallet-f7a302a1.browser.esm.js} +16 -13
- package/dist/{paperWallet-db50af36.cjs.dev.js → paperWallet-677c946e.cjs.dev.js} +4 -4
- package/dist/{paperWallet-a5a19491.esm.js → paperWallet-965fae8e.esm.js} +4 -4
- package/dist/{paperWallet-4f1e06f0.cjs.prod.js → paperWallet-b89ae100.cjs.prod.js} +4 -4
- package/dist/{paperWallet-16c8a051.browser.esm.js → paperWallet-c0a8ae68.browser.esm.js} +4 -4
- package/dist/{safeChainSlug-b75cc300.cjs.dev.js → safeChainSlug-1605f400.cjs.dev.js} +1 -1
- package/dist/{safeChainSlug-71a6ee7c.browser.esm.js → safeChainSlug-45b62b36.browser.esm.js} +1 -1
- package/dist/{safeChainSlug-b1ace34b.esm.js → safeChainSlug-8cba4f31.esm.js} +1 -1
- package/dist/{safeChainSlug-2a1c3478.cjs.prod.js → safeChainSlug-ae27d455.cjs.prod.js} +1 -1
- package/dist/{safeWallet-3fed2391.cjs.prod.js → safeWallet-2e7b153a.cjs.prod.js} +2 -2
- package/dist/{safeWallet-45640d13.esm.js → safeWallet-7e560e85.esm.js} +2 -2
- package/dist/{safeWallet-d7626c36.browser.esm.js → safeWallet-d1f71fdd.browser.esm.js} +2 -2
- package/dist/{safeWallet-721a60f5.cjs.dev.js → safeWallet-d3949cbd.cjs.dev.js} +2 -2
- package/dist/thirdweb-dev-react.browser.esm.js +76 -23
- package/dist/thirdweb-dev-react.cjs.dev.js +75 -17
- package/dist/thirdweb-dev-react.cjs.prod.js +75 -17
- package/dist/thirdweb-dev-react.esm.js +76 -23
- package/dist/{useMagic-ee285fda.esm.js → useMagic-08c86bf9.esm.js} +1 -1
- package/dist/{useMagic-f7323dff.cjs.prod.js → useMagic-237714d5.cjs.prod.js} +1 -1
- package/dist/{useMagic-b42b36cc.cjs.dev.js → useMagic-315cd7b5.cjs.dev.js} +1 -1
- package/dist/{useMagic-949ae221.browser.esm.js → useMagic-b3481f21.browser.esm.js} +1 -1
- package/dist/{useSafe-d014c5af.browser.esm.js → useSafe-0d0f9051.browser.esm.js} +1 -1
- package/dist/{useSafe-7ec42282.cjs.dev.js → useSafe-7856a427.cjs.dev.js} +1 -1
- package/dist/{useSafe-6214931d.cjs.prod.js → useSafe-8589dc60.cjs.prod.js} +1 -1
- package/dist/{useSafe-8b51a489.esm.js → useSafe-bec6b746.esm.js} +1 -1
- package/dist/{walletConnectV1-c4ce4f4e.cjs.prod.js → walletConnectV1-41a1f23f.cjs.prod.js} +2 -2
- package/dist/{walletConnectV1-57ba2dc5.esm.js → walletConnectV1-67d0e080.esm.js} +2 -2
- package/dist/{walletConnectV1-e11cb68f.browser.esm.js → walletConnectV1-9952746c.browser.esm.js} +2 -2
- package/dist/{walletConnectV1-146c4b36.cjs.dev.js → walletConnectV1-e8dd1ab8.cjs.dev.js} +2 -2
- package/evm/connectors/gnosis/dist/thirdweb-dev-react-evm-connectors-gnosis.browser.esm.js +1 -1
- package/evm/connectors/gnosis/dist/thirdweb-dev-react-evm-connectors-gnosis.cjs.dev.js +1 -1
- package/evm/connectors/gnosis/dist/thirdweb-dev-react-evm-connectors-gnosis.cjs.prod.js +1 -1
- package/evm/connectors/gnosis/dist/thirdweb-dev-react-evm-connectors-gnosis.esm.js +1 -1
- package/evm/connectors/magic/dist/thirdweb-dev-react-evm-connectors-magic.browser.esm.js +1 -1
- package/evm/connectors/magic/dist/thirdweb-dev-react-evm-connectors-magic.cjs.dev.js +1 -1
- package/evm/connectors/magic/dist/thirdweb-dev-react-evm-connectors-magic.cjs.prod.js +1 -1
- package/evm/connectors/magic/dist/thirdweb-dev-react-evm-connectors-magic.esm.js +1 -1
- package/evm/dist/thirdweb-dev-react-evm.browser.esm.js +7 -7
- package/evm/dist/thirdweb-dev-react-evm.cjs.dev.js +10 -6
- package/evm/dist/thirdweb-dev-react-evm.cjs.prod.js +10 -6
- package/evm/dist/thirdweb-dev-react-evm.esm.js +7 -7
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var reactIcons = require('@radix-ui/react-icons');
|
|
4
|
-
var formElements = require('./formElements-
|
|
4
|
+
var formElements = require('./formElements-a2adb9f8.cjs.prod.js');
|
|
5
5
|
var reactCore = require('@thirdweb-dev/react-core');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -10,8 +10,8 @@ var react = require('@emotion/react');
|
|
|
10
10
|
var styled = require('@emotion/styled');
|
|
11
11
|
var RXPopover = require('@radix-ui/react-popover');
|
|
12
12
|
var copy = require('copy-to-clipboard');
|
|
13
|
-
var Tooltip = require('./Tooltip-
|
|
14
|
-
var coinbaseWallet = require('./safeChainSlug-
|
|
13
|
+
var Tooltip = require('./Tooltip-cd89334f.cjs.prod.js');
|
|
14
|
+
var coinbaseWallet = require('./safeChainSlug-ae27d455.cjs.prod.js');
|
|
15
15
|
var Tabs = require('@radix-ui/react-tabs');
|
|
16
16
|
var Fuse = require('fuse.js');
|
|
17
17
|
var chains = require('@thirdweb-dev/chains');
|
|
@@ -6686,7 +6686,7 @@ const signerWallet = signer => {
|
|
|
6686
6686
|
|
|
6687
6687
|
var packageJson = {
|
|
6688
6688
|
name: "@thirdweb-dev/react",
|
|
6689
|
-
version: "4.4.
|
|
6689
|
+
version: "4.4.22",
|
|
6690
6690
|
repository: "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
|
6691
6691
|
author: "thirdweb eng <eng@thirdweb.com>",
|
|
6692
6692
|
license: "Apache-2.0",
|
|
@@ -7223,18 +7223,21 @@ function useInstalledWallets() {
|
|
|
7223
7223
|
let isCoinbaseWalletInstalled = false;
|
|
7224
7224
|
let isZerionWalletInstalled = false;
|
|
7225
7225
|
let isTrustWalletInstalled = false;
|
|
7226
|
+
let isImTokenInstalled = false;
|
|
7226
7227
|
const window_ = globalThis?.window;
|
|
7227
7228
|
if (wallets.assertWindowEthereum(window_)) {
|
|
7228
7229
|
isMetamaskInstalled = !!wallets.getInjectedMetamaskProvider();
|
|
7229
7230
|
isCoinbaseWalletInstalled = !!wallets.getInjectedCoinbaseProvider();
|
|
7230
7231
|
isZerionWalletInstalled = !!window_.ethereum?.isZerion;
|
|
7231
7232
|
isTrustWalletInstalled = !!window_.ethereum?.isTrust;
|
|
7233
|
+
isImTokenInstalled = !!window_.ethereum?.isToken;
|
|
7232
7234
|
}
|
|
7233
7235
|
return {
|
|
7234
7236
|
metamask: isMetamaskInstalled,
|
|
7235
7237
|
coinbaseWallet: isCoinbaseWalletInstalled,
|
|
7236
7238
|
trustWallet: isTrustWalletInstalled,
|
|
7237
|
-
zerionWallet: isZerionWalletInstalled
|
|
7239
|
+
zerionWallet: isZerionWalletInstalled,
|
|
7240
|
+
imtokenWallet: isImTokenInstalled
|
|
7238
7241
|
};
|
|
7239
7242
|
}
|
|
7240
7243
|
|
|
@@ -7248,7 +7251,7 @@ function useRainbowWallet() {
|
|
|
7248
7251
|
return React.useCallback(async connectOptions => {
|
|
7249
7252
|
const {
|
|
7250
7253
|
rainbowWallet
|
|
7251
|
-
} = await Promise.resolve().then(function () { return require('./safeChainSlug-
|
|
7254
|
+
} = await Promise.resolve().then(function () { return require('./safeChainSlug-ae27d455.cjs.prod.js'); }).then(function (n) { return n.RainbowWallet; });
|
|
7252
7255
|
return connect(rainbowWallet(), connectOptions);
|
|
7253
7256
|
}, [connect]);
|
|
7254
7257
|
}
|
|
@@ -7263,7 +7266,7 @@ function useTrustWallet() {
|
|
|
7263
7266
|
return React.useCallback(async connectOptions => {
|
|
7264
7267
|
const {
|
|
7265
7268
|
trustWallet
|
|
7266
|
-
} = await Promise.resolve().then(function () { return require('./safeChainSlug-
|
|
7269
|
+
} = await Promise.resolve().then(function () { return require('./safeChainSlug-ae27d455.cjs.prod.js'); }).then(function (n) { return n.TrustWallet; });
|
|
7267
7270
|
return connect(trustWallet(), connectOptions);
|
|
7268
7271
|
}, [connect]);
|
|
7269
7272
|
}
|
|
@@ -7277,7 +7280,7 @@ function useMetamask() {
|
|
|
7277
7280
|
return React.useCallback(async options => {
|
|
7278
7281
|
const {
|
|
7279
7282
|
metamaskWallet
|
|
7280
|
-
} = await Promise.resolve().then(function () { return require('./safeChainSlug-
|
|
7283
|
+
} = await Promise.resolve().then(function () { return require('./safeChainSlug-ae27d455.cjs.prod.js'); }).then(function (n) { return n.metamaskWallet$1; });
|
|
7281
7284
|
return connect(metamaskWallet(), options);
|
|
7282
7285
|
}, [connect]);
|
|
7283
7286
|
}
|
|
@@ -7292,7 +7295,7 @@ function useCoinbaseWallet() {
|
|
|
7292
7295
|
return React.useCallback(async connectOptions => {
|
|
7293
7296
|
const {
|
|
7294
7297
|
coinbaseWallet
|
|
7295
|
-
} = await Promise.resolve().then(function () { return require('./safeChainSlug-
|
|
7298
|
+
} = await Promise.resolve().then(function () { return require('./safeChainSlug-ae27d455.cjs.prod.js'); }).then(function (n) { return n.coinbaseWallet$1; });
|
|
7296
7299
|
return connect(coinbaseWallet(), connectOptions);
|
|
7297
7300
|
}, [connect]);
|
|
7298
7301
|
}
|
|
@@ -7306,7 +7309,7 @@ function useFrameWallet() {
|
|
|
7306
7309
|
return React.useCallback(async connectOptions => {
|
|
7307
7310
|
const {
|
|
7308
7311
|
frameWallet
|
|
7309
|
-
} = await Promise.resolve().then(function () { return require('./frameWallet-
|
|
7312
|
+
} = await Promise.resolve().then(function () { return require('./frameWallet-3992db98.cjs.prod.js'); });
|
|
7310
7313
|
return connect(frameWallet(), connectOptions);
|
|
7311
7314
|
}, [connect]);
|
|
7312
7315
|
}
|
|
@@ -7355,7 +7358,7 @@ function usePaperWallet() {
|
|
|
7355
7358
|
return React.useCallback(async options => {
|
|
7356
7359
|
const {
|
|
7357
7360
|
paperWallet
|
|
7358
|
-
} = await Promise.resolve().then(function () { return require('./paperWallet-
|
|
7361
|
+
} = await Promise.resolve().then(function () { return require('./paperWallet-b89ae100.cjs.prod.js'); });
|
|
7359
7362
|
return connect(paperWallet(options), {
|
|
7360
7363
|
chainId: options.chainId,
|
|
7361
7364
|
email: options.email
|
|
@@ -7395,7 +7398,7 @@ function useWalletConnectV1() {
|
|
|
7395
7398
|
return React.useCallback(async options => {
|
|
7396
7399
|
const {
|
|
7397
7400
|
walletConnectV1
|
|
7398
|
-
} = await Promise.resolve().then(function () { return require('./walletConnectV1-
|
|
7401
|
+
} = await Promise.resolve().then(function () { return require('./walletConnectV1-41a1f23f.cjs.prod.js'); });
|
|
7399
7402
|
return connect(walletConnectV1(), options);
|
|
7400
7403
|
}, [connect]);
|
|
7401
7404
|
}
|
|
@@ -7410,7 +7413,7 @@ function useWalletConnect() {
|
|
|
7410
7413
|
return React.useCallback(async options => {
|
|
7411
7414
|
const {
|
|
7412
7415
|
walletConnect
|
|
7413
|
-
} = await Promise.resolve().then(function () { return require('./safeChainSlug-
|
|
7416
|
+
} = await Promise.resolve().then(function () { return require('./safeChainSlug-ae27d455.cjs.prod.js'); }).then(function (n) { return n.walletConnect$1; });
|
|
7414
7417
|
return connect(walletConnect({
|
|
7415
7418
|
...options,
|
|
7416
7419
|
qrModal: "walletConnect"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LockOpen1Icon, EyeClosedIcon, EyeOpenIcon, CheckIcon, PinBottomIcon, CopyIcon as CopyIcon$1, Cross2Icon, MagnifyingGlassIcon, CrossCircledIcon, CheckCircledIcon, PaperPlaneIcon, ShuffleIcon, TextAlignJustifyIcon, ExitIcon, ChevronRightIcon, EnterIcon, ExternalLinkIcon, ReloadIcon } from '@radix-ui/react-icons';
|
|
2
|
-
import { b as useTWLocale, u as useCustomTheme, C as Container, I as Img, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, M as ModalHeader, S as Spacer, B as Button, s as spacing, g as fontSize, i as iconSize, T as Text, d as Spinner, a as StyledDiv, t as fadeInAnimation, v as Input, w as media, L as Line, x as InputContainer, y as InputButton, z as IconButton, A as StyledButton, D as reservedScreens, c as ModalDescription, e as Label, E as ScreenBottomContainer, F as StyledP, G as modalCloseFadeOutDuration, H as wideModalMaxHeight, J as modalMaxWidthCompact, K as modalMaxWidthWide, N as compactModalMaxHeight, r as radius, O as shadow, P as noScrollBar, Q as CustomThemeProvider, R as ModalTitle, U as StyledUl, V as onModalUnmount, W as Link, n as useSetIsWalletModalOpen, X as SetModalConfigCtx, Y as canFitWideModal, Z as useSetupScreen, m as useIsWalletModalOpen, _ as ScreenSetupContext, $ as defaultTheme, a0 as WalletUIStatesProvider, a1 as ThirdwebLocaleContext, k as en } from './formElements-
|
|
2
|
+
import { b as useTWLocale, u as useCustomTheme, C as Container, I as Img, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, M as ModalHeader, S as Spacer, B as Button, s as spacing, g as fontSize, i as iconSize, T as Text, d as Spinner, a as StyledDiv, t as fadeInAnimation, v as Input, w as media, L as Line, x as InputContainer, y as InputButton, z as IconButton, A as StyledButton, D as reservedScreens, c as ModalDescription, e as Label, E as ScreenBottomContainer, F as StyledP, G as modalCloseFadeOutDuration, H as wideModalMaxHeight, J as modalMaxWidthCompact, K as modalMaxWidthWide, N as compactModalMaxHeight, r as radius, O as shadow, P as noScrollBar, Q as CustomThemeProvider, R as ModalTitle, U as StyledUl, V as onModalUnmount, W as Link, n as useSetIsWalletModalOpen, X as SetModalConfigCtx, Y as canFitWideModal, Z as useSetupScreen, m as useIsWalletModalOpen, _ as ScreenSetupContext, $ as defaultTheme, a0 as WalletUIStatesProvider, a1 as ThirdwebLocaleContext, k as en } from './formElements-1502c18b.browser.esm.js';
|
|
3
3
|
import { useCreateWalletInstance, shortenAddress, useStorage, useSupportedChains, useSwitchChain, useChainId, useBalance, useChain, useWallet, useAddress, shortenString, useSetConnectionStatus, useSetConnectedWallet, useWalletContext, useWallets, useDisconnect, useWalletConfig, useENS, useSDK, useLogin, useConnectionStatus, useThirdwebAuthContext, useLogout, useNetworkMismatch, useUser, useConnect, resolveMimeType, useSDKChainId, useContract, ThirdwebProviderCore } from '@thirdweb-dev/react-core';
|
|
4
4
|
import React, { useContext, useState, useRef, useEffect, useCallback, useDeferredValue, useMemo, memo, Suspense, lazy } from 'react';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
@@ -8,8 +8,8 @@ import { keyframes } from '@emotion/react';
|
|
|
8
8
|
import styled from '@emotion/styled';
|
|
9
9
|
import * as RXPopover from '@radix-ui/react-popover';
|
|
10
10
|
import copy from 'copy-to-clipboard';
|
|
11
|
-
import { g as googleIconUri, a as appleIconUri, f as facebookIconUri, I as InputSelectionUI, e as emailIcon, T as ToolTip, s as smartWalletIcon } from './Tooltip-
|
|
12
|
-
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton, F as FormFieldWithIconButton, Q as QRCode, i as isMobile, s as safeChainIdToSlug, w as wait, b as WalletLogoSpinner, e as WalletSelector, H as HeadlessConnectUI, f as detectOS, d as defaultWallets, E as ExtensionOrWCConnectionUI } from './safeChainSlug-
|
|
11
|
+
import { g as googleIconUri, a as appleIconUri, f as facebookIconUri, I as InputSelectionUI, e as emailIcon, T as ToolTip, s as smartWalletIcon } from './Tooltip-58cbe26f.browser.esm.js';
|
|
12
|
+
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton, F as FormFieldWithIconButton, Q as QRCode, i as isMobile, s as safeChainIdToSlug, w as wait, b as WalletLogoSpinner, e as WalletSelector, H as HeadlessConnectUI, f as detectOS, d as defaultWallets, E as ExtensionOrWCConnectionUI } from './safeChainSlug-45b62b36.browser.esm.js';
|
|
13
13
|
import * as Tabs from '@radix-ui/react-tabs';
|
|
14
14
|
import Fuse from 'fuse.js';
|
|
15
15
|
import { Localhost } from '@thirdweb-dev/chains';
|
|
@@ -6655,7 +6655,7 @@ const signerWallet = signer => {
|
|
|
6655
6655
|
|
|
6656
6656
|
var packageJson = {
|
|
6657
6657
|
name: "@thirdweb-dev/react",
|
|
6658
|
-
version: "4.4.
|
|
6658
|
+
version: "4.4.22",
|
|
6659
6659
|
repository: "https://github.com/thirdweb-dev/js/tree/main/packages/react",
|
|
6660
6660
|
author: "thirdweb eng <eng@thirdweb.com>",
|
|
6661
6661
|
license: "Apache-2.0",
|
|
@@ -7192,18 +7192,21 @@ function useInstalledWallets() {
|
|
|
7192
7192
|
let isCoinbaseWalletInstalled = false;
|
|
7193
7193
|
let isZerionWalletInstalled = false;
|
|
7194
7194
|
let isTrustWalletInstalled = false;
|
|
7195
|
+
let isImTokenInstalled = false;
|
|
7195
7196
|
const window_ = globalThis?.window;
|
|
7196
7197
|
if (assertWindowEthereum(window_)) {
|
|
7197
7198
|
isMetamaskInstalled = !!getInjectedMetamaskProvider();
|
|
7198
7199
|
isCoinbaseWalletInstalled = !!getInjectedCoinbaseProvider();
|
|
7199
7200
|
isZerionWalletInstalled = !!window_.ethereum?.isZerion;
|
|
7200
7201
|
isTrustWalletInstalled = !!window_.ethereum?.isTrust;
|
|
7202
|
+
isImTokenInstalled = !!window_.ethereum?.isToken;
|
|
7201
7203
|
}
|
|
7202
7204
|
return {
|
|
7203
7205
|
metamask: isMetamaskInstalled,
|
|
7204
7206
|
coinbaseWallet: isCoinbaseWalletInstalled,
|
|
7205
7207
|
trustWallet: isTrustWalletInstalled,
|
|
7206
|
-
zerionWallet: isZerionWalletInstalled
|
|
7208
|
+
zerionWallet: isZerionWalletInstalled,
|
|
7209
|
+
imtokenWallet: isImTokenInstalled
|
|
7207
7210
|
};
|
|
7208
7211
|
}
|
|
7209
7212
|
|
|
@@ -7217,7 +7220,7 @@ function useRainbowWallet() {
|
|
|
7217
7220
|
return useCallback(async connectOptions => {
|
|
7218
7221
|
const {
|
|
7219
7222
|
rainbowWallet
|
|
7220
|
-
} = await import('./safeChainSlug-
|
|
7223
|
+
} = await import('./safeChainSlug-45b62b36.browser.esm.js').then(function (n) { return n.R; });
|
|
7221
7224
|
return connect(rainbowWallet(), connectOptions);
|
|
7222
7225
|
}, [connect]);
|
|
7223
7226
|
}
|
|
@@ -7232,7 +7235,7 @@ function useTrustWallet() {
|
|
|
7232
7235
|
return useCallback(async connectOptions => {
|
|
7233
7236
|
const {
|
|
7234
7237
|
trustWallet
|
|
7235
|
-
} = await import('./safeChainSlug-
|
|
7238
|
+
} = await import('./safeChainSlug-45b62b36.browser.esm.js').then(function (n) { return n.u; });
|
|
7236
7239
|
return connect(trustWallet(), connectOptions);
|
|
7237
7240
|
}, [connect]);
|
|
7238
7241
|
}
|
|
@@ -7246,7 +7249,7 @@ function useMetamask() {
|
|
|
7246
7249
|
return useCallback(async options => {
|
|
7247
7250
|
const {
|
|
7248
7251
|
metamaskWallet
|
|
7249
|
-
} = await import('./safeChainSlug-
|
|
7252
|
+
} = await import('./safeChainSlug-45b62b36.browser.esm.js').then(function (n) { return n.n; });
|
|
7250
7253
|
return connect(metamaskWallet(), options);
|
|
7251
7254
|
}, [connect]);
|
|
7252
7255
|
}
|
|
@@ -7261,7 +7264,7 @@ function useCoinbaseWallet() {
|
|
|
7261
7264
|
return useCallback(async connectOptions => {
|
|
7262
7265
|
const {
|
|
7263
7266
|
coinbaseWallet
|
|
7264
|
-
} = await import('./safeChainSlug-
|
|
7267
|
+
} = await import('./safeChainSlug-45b62b36.browser.esm.js').then(function (n) { return n.l; });
|
|
7265
7268
|
return connect(coinbaseWallet(), connectOptions);
|
|
7266
7269
|
}, [connect]);
|
|
7267
7270
|
}
|
|
@@ -7275,7 +7278,7 @@ function useFrameWallet() {
|
|
|
7275
7278
|
return useCallback(async connectOptions => {
|
|
7276
7279
|
const {
|
|
7277
7280
|
frameWallet
|
|
7278
|
-
} = await import('./frameWallet-
|
|
7281
|
+
} = await import('./frameWallet-63225c82.browser.esm.js');
|
|
7279
7282
|
return connect(frameWallet(), connectOptions);
|
|
7280
7283
|
}, [connect]);
|
|
7281
7284
|
}
|
|
@@ -7324,7 +7327,7 @@ function usePaperWallet() {
|
|
|
7324
7327
|
return useCallback(async options => {
|
|
7325
7328
|
const {
|
|
7326
7329
|
paperWallet
|
|
7327
|
-
} = await import('./paperWallet-
|
|
7330
|
+
} = await import('./paperWallet-c0a8ae68.browser.esm.js');
|
|
7328
7331
|
return connect(paperWallet(options), {
|
|
7329
7332
|
chainId: options.chainId,
|
|
7330
7333
|
email: options.email
|
|
@@ -7364,7 +7367,7 @@ function useWalletConnectV1() {
|
|
|
7364
7367
|
return useCallback(async options => {
|
|
7365
7368
|
const {
|
|
7366
7369
|
walletConnectV1
|
|
7367
|
-
} = await import('./walletConnectV1-
|
|
7370
|
+
} = await import('./walletConnectV1-9952746c.browser.esm.js');
|
|
7368
7371
|
return connect(walletConnectV1(), options);
|
|
7369
7372
|
}, [connect]);
|
|
7370
7373
|
}
|
|
@@ -7379,7 +7382,7 @@ function useWalletConnect() {
|
|
|
7379
7382
|
return useCallback(async options => {
|
|
7380
7383
|
const {
|
|
7381
7384
|
walletConnect
|
|
7382
|
-
} = await import('./safeChainSlug-
|
|
7385
|
+
} = await import('./safeChainSlug-45b62b36.browser.esm.js').then(function (n) { return n.q; });
|
|
7383
7386
|
return connect(walletConnect({
|
|
7384
7387
|
...options,
|
|
7385
7388
|
qrModal: "walletConnect"
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('@emotion/styled');
|
|
6
|
-
var formElements = require('./formElements-
|
|
7
|
-
var oneKeyWallet = require('./oneKeyWallet-
|
|
8
|
-
var Tooltip = require('./Tooltip-
|
|
9
|
-
var coinbaseWallet = require('./safeChainSlug-
|
|
6
|
+
var formElements = require('./formElements-2350e649.cjs.dev.js');
|
|
7
|
+
var oneKeyWallet = require('./oneKeyWallet-277f744e.cjs.dev.js');
|
|
8
|
+
var Tooltip = require('./Tooltip-30787cb5.cjs.dev.js');
|
|
9
|
+
var coinbaseWallet = require('./safeChainSlug-1605f400.cjs.dev.js');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
11
|
require('@radix-ui/react-icons');
|
|
12
12
|
require('@thirdweb-dev/react-core');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PaperWallet } from '@thirdweb-dev/wallets';
|
|
2
2
|
import { useContext, useState, useCallback, useRef, useEffect } from 'react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import { b as useTWLocale, u as useCustomTheme, I as Img, i as iconSize, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, C as Container, M as ModalHeader, S as Spacer, B as Button, s as spacing, T as Text, v as Input, d as Spinner, L as Line, A as StyledButton, g as fontSize, R as ModalTitle, D as reservedScreens } from './formElements-
|
|
5
|
-
import { x as openOauthSignInWindow, O as OTPInput } from './oneKeyWallet-
|
|
6
|
-
import { g as googleIconUri, I as InputSelectionUI, e as emailIcon } from './Tooltip-
|
|
7
|
-
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton } from './safeChainSlug-
|
|
4
|
+
import { b as useTWLocale, u as useCustomTheme, I as Img, i as iconSize, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, C as Container, M as ModalHeader, S as Spacer, B as Button, s as spacing, T as Text, v as Input, d as Spinner, L as Line, A as StyledButton, g as fontSize, R as ModalTitle, D as reservedScreens } from './formElements-3463ed0e.esm.js';
|
|
5
|
+
import { x as openOauthSignInWindow, O as OTPInput } from './oneKeyWallet-49059a34.esm.js';
|
|
6
|
+
import { g as googleIconUri, I as InputSelectionUI, e as emailIcon } from './Tooltip-439bce69.esm.js';
|
|
7
|
+
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton } from './safeChainSlug-8cba4f31.esm.js';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
9
|
import '@radix-ui/react-icons';
|
|
10
10
|
import '@thirdweb-dev/react-core';
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var styled = require('@emotion/styled');
|
|
6
|
-
var formElements = require('./formElements-
|
|
7
|
-
var oneKeyWallet = require('./oneKeyWallet-
|
|
8
|
-
var Tooltip = require('./Tooltip-
|
|
9
|
-
var coinbaseWallet = require('./safeChainSlug-
|
|
6
|
+
var formElements = require('./formElements-a2adb9f8.cjs.prod.js');
|
|
7
|
+
var oneKeyWallet = require('./oneKeyWallet-e0a4530f.cjs.prod.js');
|
|
8
|
+
var Tooltip = require('./Tooltip-cd89334f.cjs.prod.js');
|
|
9
|
+
var coinbaseWallet = require('./safeChainSlug-ae27d455.cjs.prod.js');
|
|
10
10
|
var jsxRuntime = require('react/jsx-runtime');
|
|
11
11
|
require('@radix-ui/react-icons');
|
|
12
12
|
require('@thirdweb-dev/react-core');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PaperWallet } from '@thirdweb-dev/wallets';
|
|
2
2
|
import { useContext, useState, useCallback, useRef, useEffect } from 'react';
|
|
3
3
|
import styled from '@emotion/styled';
|
|
4
|
-
import { b as useTWLocale, u as useCustomTheme, I as Img, i as iconSize, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, C as Container, M as ModalHeader, S as Spacer, B as Button, s as spacing, T as Text, v as Input, d as Spinner, L as Line, A as StyledButton, g as fontSize, R as ModalTitle, D as reservedScreens } from './formElements-
|
|
5
|
-
import { x as openOauthSignInWindow, O as OTPInput } from './oneKeyWallet-
|
|
6
|
-
import { g as googleIconUri, I as InputSelectionUI, e as emailIcon } from './Tooltip-
|
|
7
|
-
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton } from './safeChainSlug-
|
|
4
|
+
import { b as useTWLocale, u as useCustomTheme, I as Img, i as iconSize, p as TextDivider, q as useScreenContext, f as ModalConfigCtx, C as Container, M as ModalHeader, S as Spacer, B as Button, s as spacing, T as Text, v as Input, d as Spinner, L as Line, A as StyledButton, g as fontSize, R as ModalTitle, D as reservedScreens } from './formElements-1502c18b.browser.esm.js';
|
|
5
|
+
import { x as openOauthSignInWindow, O as OTPInput } from './oneKeyWallet-f7a302a1.browser.esm.js';
|
|
6
|
+
import { g as googleIconUri, I as InputSelectionUI, e as emailIcon } from './Tooltip-58cbe26f.browser.esm.js';
|
|
7
|
+
import { T as TOS, P as PoweredByThirdweb, W as WalletEntryButton } from './safeChainSlug-45b62b36.browser.esm.js';
|
|
8
8
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
9
9
|
import '@radix-ui/react-icons';
|
|
10
10
|
import '@thirdweb-dev/react-core';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
|
-
var formElements = require('./formElements-
|
|
4
|
+
var formElements = require('./formElements-2350e649.cjs.dev.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var react = require('@emotion/react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
package/dist/{safeChainSlug-71a6ee7c.browser.esm.js → safeChainSlug-45b62b36.browser.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoinbaseWallet, getInjectedCoinbaseProvider, MetaMaskWallet, getInjectedMetamaskProvider, WalletConnect, TrustWallet as TrustWallet$1, assertWindowEthereum, ZerionWallet, RainbowWallet as RainbowWallet$1, getInjectedRainbowProvider, PhantomWallet, getInjectedPhantomProvider, walletIds } from '@thirdweb-dev/wallets';
|
|
2
|
-
import { I as Img, a as StyledDiv, u as useCustomTheme, r as radius, t as fadeInAnimation, f as ModalConfigCtx, C as Container, M as ModalHeader, T as Text, S as Spacer, B as Button, s as spacing, i as iconSize, L as Line, b as useTWLocale, A as StyledButton, E as ScreenBottomContainer, g as fontSize, d as Spinner, W as Link, q as useScreenContext, X as SetModalConfigCtx, U as StyledUl, P as noScrollBar, R as ModalTitle, p as TextDivider, z as IconButton, e as Label, v as Input, x as InputContainer, y as InputButton } from './formElements-
|
|
2
|
+
import { I as Img, a as StyledDiv, u as useCustomTheme, r as radius, t as fadeInAnimation, f as ModalConfigCtx, C as Container, M as ModalHeader, T as Text, S as Spacer, B as Button, s as spacing, i as iconSize, L as Line, b as useTWLocale, A as StyledButton, E as ScreenBottomContainer, g as fontSize, d as Spinner, W as Link, q as useScreenContext, X as SetModalConfigCtx, U as StyledUl, P as noScrollBar, R as ModalTitle, p as TextDivider, z as IconButton, e as Label, v as Input, x as InputContainer, y as InputButton } from './formElements-1502c18b.browser.esm.js';
|
|
3
3
|
import { useContext, useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import { keyframes } from '@emotion/react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CoinbaseWallet, getInjectedCoinbaseProvider, MetaMaskWallet, getInjectedMetamaskProvider, WalletConnect, TrustWallet as TrustWallet$1, assertWindowEthereum, ZerionWallet, RainbowWallet as RainbowWallet$1, getInjectedRainbowProvider, PhantomWallet, getInjectedPhantomProvider, walletIds } from '@thirdweb-dev/wallets';
|
|
2
|
-
import { I as Img, a as StyledDiv, u as useCustomTheme, r as radius, t as fadeInAnimation, f as ModalConfigCtx, C as Container, M as ModalHeader, T as Text, S as Spacer, B as Button, s as spacing, i as iconSize, L as Line, b as useTWLocale, A as StyledButton, E as ScreenBottomContainer, g as fontSize, d as Spinner, W as Link, q as useScreenContext, X as SetModalConfigCtx, U as StyledUl, P as noScrollBar, R as ModalTitle, p as TextDivider, z as IconButton, e as Label, v as Input, x as InputContainer, y as InputButton } from './formElements-
|
|
2
|
+
import { I as Img, a as StyledDiv, u as useCustomTheme, r as radius, t as fadeInAnimation, f as ModalConfigCtx, C as Container, M as ModalHeader, T as Text, S as Spacer, B as Button, s as spacing, i as iconSize, L as Line, b as useTWLocale, A as StyledButton, E as ScreenBottomContainer, g as fontSize, d as Spinner, W as Link, q as useScreenContext, X as SetModalConfigCtx, U as StyledUl, P as noScrollBar, R as ModalTitle, p as TextDivider, z as IconButton, e as Label, v as Input, x as InputContainer, y as InputButton } from './formElements-3463ed0e.esm.js';
|
|
3
3
|
import { useContext, useMemo, useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import { keyframes } from '@emotion/react';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
|
-
var formElements = require('./formElements-
|
|
4
|
+
var formElements = require('./formElements-a2adb9f8.cjs.prod.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var react = require('@emotion/react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
4
|
var reactCore = require('@thirdweb-dev/react-core');
|
|
5
|
-
var coinbaseWallet = require('./safeChainSlug-
|
|
5
|
+
var coinbaseWallet = require('./safeChainSlug-ae27d455.cjs.prod.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var formElements = require('./formElements-
|
|
7
|
+
var formElements = require('./formElements-a2adb9f8.cjs.prod.js');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var styled = require('@emotion/styled');
|
|
10
10
|
var reactIcons = require('@radix-ui/react-icons');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { walletIds, SafeWallet } from '@thirdweb-dev/wallets';
|
|
2
2
|
import { useWalletContext, useSupportedChains, useDisconnect } from '@thirdweb-dev/react-core';
|
|
3
|
-
import { g as WalletSelection, s as safeChainIdToSlug, j as FormField, k as safeSlugToChainId, d as defaultWallets, H as HeadlessConnectUI } from './safeChainSlug-
|
|
3
|
+
import { g as WalletSelection, s as safeChainIdToSlug, j as FormField, k as safeSlugToChainId, d as defaultWallets, H as HeadlessConnectUI } from './safeChainSlug-8cba4f31.esm.js';
|
|
4
4
|
import { useRef, useEffect, useState, useContext } from 'react';
|
|
5
|
-
import { b as useTWLocale, C as Container, M as ModalHeader, L as Line, S as Spacer, T as Text, W as Link, E as ScreenBottomContainer, B as Button, f as ModalConfigCtx, c as ModalDescription, e as Label, i as iconSize, s as spacing, d as Spinner, a3 as StyledSelect, u as useCustomTheme, g as fontSize } from './formElements-
|
|
5
|
+
import { b as useTWLocale, C as Container, M as ModalHeader, L as Line, S as Spacer, T as Text, W as Link, E as ScreenBottomContainer, B as Button, f as ModalConfigCtx, c as ModalDescription, e as Label, i as iconSize, s as spacing, d as Spinner, a3 as StyledSelect, u as useCustomTheme, g as fontSize } from './formElements-3463ed0e.esm.js';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import styled from '@emotion/styled';
|
|
8
8
|
import { ExclamationTriangleIcon, ChevronDownIcon } from '@radix-ui/react-icons';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { walletIds, SafeWallet } from '@thirdweb-dev/wallets';
|
|
2
2
|
import { useWalletContext, useSupportedChains, useDisconnect } from '@thirdweb-dev/react-core';
|
|
3
|
-
import { g as WalletSelection, s as safeChainIdToSlug, j as FormField, k as safeSlugToChainId, d as defaultWallets, H as HeadlessConnectUI } from './safeChainSlug-
|
|
3
|
+
import { g as WalletSelection, s as safeChainIdToSlug, j as FormField, k as safeSlugToChainId, d as defaultWallets, H as HeadlessConnectUI } from './safeChainSlug-45b62b36.browser.esm.js';
|
|
4
4
|
import { useRef, useEffect, useState, useContext } from 'react';
|
|
5
|
-
import { b as useTWLocale, C as Container, M as ModalHeader, L as Line, S as Spacer, T as Text, W as Link, E as ScreenBottomContainer, B as Button, f as ModalConfigCtx, c as ModalDescription, e as Label, i as iconSize, s as spacing, d as Spinner, a3 as StyledSelect, u as useCustomTheme, g as fontSize } from './formElements-
|
|
5
|
+
import { b as useTWLocale, C as Container, M as ModalHeader, L as Line, S as Spacer, T as Text, W as Link, E as ScreenBottomContainer, B as Button, f as ModalConfigCtx, c as ModalDescription, e as Label, i as iconSize, s as spacing, d as Spinner, a3 as StyledSelect, u as useCustomTheme, g as fontSize } from './formElements-1502c18b.browser.esm.js';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import styled from '@emotion/styled';
|
|
8
8
|
import { ExclamationTriangleIcon, ChevronDownIcon } from '@radix-ui/react-icons';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var wallets = require('@thirdweb-dev/wallets');
|
|
4
4
|
var reactCore = require('@thirdweb-dev/react-core');
|
|
5
|
-
var coinbaseWallet = require('./safeChainSlug-
|
|
5
|
+
var coinbaseWallet = require('./safeChainSlug-1605f400.cjs.dev.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var formElements = require('./formElements-
|
|
7
|
+
var formElements = require('./formElements-2350e649.cjs.dev.js');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var styled = require('@emotion/styled');
|
|
10
10
|
var reactIcons = require('@radix-ui/react-icons');
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { E as ExportLocalWallet, p as packageJson } from './oneKeyWallet-
|
|
2
|
-
export { b as ConnectEmbed, a as ConnectModalInline, C as ConnectWallet, M as MediaRenderer, N as NetworkSelector, w as ThirdwebNftMedia, T as ThirdwebProvider, W as Web3Button, d as defaultTokens, e as embeddedWallet, t as oneKeyWallet, k as useBloctoWallet, i as useCoinbaseWallet, l as useEmbeddedWallet, n as useEmbeddedWalletSendVerificationEmail, m as useEmbeddedWalletUserEmail, j as useFrameWallet, c as useInstalledWallets, h as useMetamask, q as usePaperWallet, o as usePaperWalletUserEmail, f as useRainbowWallet, v as useResolvedMediaType, u as useShowConnectEmbed, g as useTrustWallet, r as useWalletConnect, s as useWalletConnectV1 } from './oneKeyWallet-
|
|
3
|
-
import { i as isMobile, F as FormFieldWithIconButton, w as wait, C as ConnectingScreen, G as GetStartedScreen, W as WalletEntryButton, H as HeadlessConnectUI, S as ScanScreen, h as handelWCSessionRequest, E as ExtensionOrWCConnectionUI } from './safeChainSlug-
|
|
4
|
-
export { c as coinbaseWallet, d as defaultWallets, m as metamaskWallet, p as phantomWallet, r as rainbowWallet, t as trustWallet, a as walletConnect, z as zerionWallet } from './safeChainSlug-
|
|
1
|
+
import { E as ExportLocalWallet, p as packageJson } from './oneKeyWallet-f7a302a1.browser.esm.js';
|
|
2
|
+
export { b as ConnectEmbed, a as ConnectModalInline, C as ConnectWallet, M as MediaRenderer, N as NetworkSelector, w as ThirdwebNftMedia, T as ThirdwebProvider, W as Web3Button, d as defaultTokens, e as embeddedWallet, t as oneKeyWallet, k as useBloctoWallet, i as useCoinbaseWallet, l as useEmbeddedWallet, n as useEmbeddedWalletSendVerificationEmail, m as useEmbeddedWalletUserEmail, j as useFrameWallet, c as useInstalledWallets, h as useMetamask, q as usePaperWallet, o as usePaperWalletUserEmail, f as useRainbowWallet, v as useResolvedMediaType, u as useShowConnectEmbed, g as useTrustWallet, r as useWalletConnect, s as useWalletConnectV1 } from './oneKeyWallet-f7a302a1.browser.esm.js';
|
|
3
|
+
import { i as isMobile, F as FormFieldWithIconButton, w as wait, C as ConnectingScreen, G as GetStartedScreen, W as WalletEntryButton, H as HeadlessConnectUI, S as ScanScreen, h as handelWCSessionRequest, E as ExtensionOrWCConnectionUI } from './safeChainSlug-45b62b36.browser.esm.js';
|
|
4
|
+
export { c as coinbaseWallet, d as defaultWallets, m as metamaskWallet, p as phantomWallet, r as rainbowWallet, t as trustWallet, a as walletConnect, z as zerionWallet } from './safeChainSlug-45b62b36.browser.esm.js';
|
|
5
5
|
import { useCreateWalletInstance, useSetConnectionStatus, useSetConnectedWallet, useWalletContext, useWallets, shortenAddress, useConnect, useSDKChainId, useConnectionStatus } from '@thirdweb-dev/react-core';
|
|
6
6
|
export * from '@thirdweb-dev/react-core';
|
|
7
7
|
import { getSmartWalletAddress } from '@thirdweb-dev/wallets/evm/wallets/smart-wallet';
|
|
8
8
|
import { useCallback, useState, useEffect, useRef, useContext, useMemo, createContext } from 'react';
|
|
9
9
|
export { bloctoWallet } from './bloctoWallet-4cc043fb.browser.esm.js';
|
|
10
|
-
export { frameWallet } from './frameWallet-
|
|
11
|
-
import { LocalWallet, MagicEdenWallet, getInjectedMagicEdenProvider, XDEFIWallet, getInjectedXDEFIProvider, SmartWallet, OKXWallet, getInjectedOKXProvider, CoreWallet, getInjectedCoreWalletProvider, CryptoDefiWallet, getInjectedCryptoDefiWalletProvider, RabbyWallet, getInjectedRabbyProvider, Coin98Wallet, getInjectedCoin98Provider } from '@thirdweb-dev/wallets';
|
|
12
|
-
export { BloctoWallet, Coin98Wallet, CoinbaseWallet, CoreWallet, CryptoDefiWallet, EmbeddedWallet, FrameWallet, InjectedWallet, LocalWallet, MagicLink, MetaMaskWallet, OKXWallet, OneKeyWallet, PaperWallet, PhantomWallet, RabbyWallet, RainbowWallet, SafeWallet, SignerWallet, SmartWallet, TrustWallet, WalletConnect, ZerionWallet, setWalletAnalyticsEnabled } from '@thirdweb-dev/wallets';
|
|
13
|
-
import { i as iconSize, S as Spacer, T as Text, C as Container, u as useCustomTheme, a as StyledDiv, r as radius, s as spacing, b as useTWLocale, M as ModalHeader, L as Line, c as ModalDescription, B as Button$1, d as Spinner$1, e as Label, f as ModalConfigCtx, g as fontSize, h as immutableOverride } from './formElements-
|
|
14
|
-
export { j as darkTheme, k as en, l as lightTheme, m as useIsWalletModalOpen, n as useSetIsWalletModalOpen, o as useSetWalletModalConfig } from './formElements-
|
|
10
|
+
export { frameWallet } from './frameWallet-63225c82.browser.esm.js';
|
|
11
|
+
import { LocalWallet, MagicEdenWallet, getInjectedMagicEdenProvider, XDEFIWallet, getInjectedXDEFIProvider, SmartWallet, OKXWallet, getInjectedOKXProvider, CoreWallet, getInjectedCoreWalletProvider, CryptoDefiWallet, getInjectedCryptoDefiWalletProvider, RabbyWallet, getInjectedRabbyProvider, Coin98Wallet, getInjectedCoin98Provider, ImTokenWallet, assertWindowEthereum } from '@thirdweb-dev/wallets';
|
|
12
|
+
export { BloctoWallet, Coin98Wallet, CoinbaseWallet, CoreWallet, CryptoDefiWallet, EmbeddedWallet, FrameWallet, ImTokenWallet, InjectedWallet, LocalWallet, MagicLink, MetaMaskWallet, OKXWallet, OneKeyWallet, PaperWallet, PhantomWallet, RabbyWallet, RainbowWallet, SafeWallet, SignerWallet, SmartWallet, TrustWallet, WalletConnect, ZerionWallet, setWalletAnalyticsEnabled } from '@thirdweb-dev/wallets';
|
|
13
|
+
import { i as iconSize, S as Spacer, T as Text, C as Container, u as useCustomTheme, a as StyledDiv, r as radius, s as spacing, b as useTWLocale, M as ModalHeader, L as Line, c as ModalDescription, B as Button$1, d as Spinner$1, e as Label, f as ModalConfigCtx, g as fontSize, h as immutableOverride } from './formElements-1502c18b.browser.esm.js';
|
|
14
|
+
export { j as darkTheme, k as en, l as lightTheme, m as useIsWalletModalOpen, n as useSetIsWalletModalOpen, o as useSetWalletModalConfig } from './formElements-1502c18b.browser.esm.js';
|
|
15
15
|
import { UploadIcon, EyeClosedIcon, EyeOpenIcon, ExclamationTriangleIcon } from '@radix-ui/react-icons';
|
|
16
16
|
import styled from '@emotion/styled';
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
|
-
export { magicLink } from './magicLink-
|
|
19
|
-
export { paperWallet } from './paperWallet-
|
|
20
|
-
export { safeWallet } from './safeWallet-
|
|
21
|
-
export { walletConnectV1 } from './walletConnectV1-
|
|
22
|
-
export { u as useSafe } from './useSafe-
|
|
23
|
-
export { u as useMagic } from './useMagic-
|
|
18
|
+
export { magicLink } from './magicLink-9f1193ee.browser.esm.js';
|
|
19
|
+
export { paperWallet } from './paperWallet-c0a8ae68.browser.esm.js';
|
|
20
|
+
export { safeWallet } from './safeWallet-d1f71fdd.browser.esm.js';
|
|
21
|
+
export { walletConnectV1 } from './walletConnectV1-9952746c.browser.esm.js';
|
|
22
|
+
export { u as useSafe } from './useSafe-0d0f9051.browser.esm.js';
|
|
23
|
+
export { u as useMagic } from './useMagic-b3481f21.browser.esm.js';
|
|
24
24
|
import { DEFAULT_BRAND_OPTIONS, createCheckoutWithCardElement, PAPER_APP_URL, PaymentsSDKErrorCode } from '@thirdweb-dev/payments';
|
|
25
25
|
export { PayWithCryptoErrorCode, PaymentsSDKErrorCode } from '@thirdweb-dev/payments';
|
|
26
26
|
import { css, keyframes, cx } from '@emotion/css';
|
|
@@ -28,7 +28,7 @@ import '@tanstack/react-query';
|
|
|
28
28
|
import '@emotion/react';
|
|
29
29
|
import '@radix-ui/react-popover';
|
|
30
30
|
import 'copy-to-clipboard';
|
|
31
|
-
import './Tooltip-
|
|
31
|
+
import './Tooltip-58cbe26f.browser.esm.js';
|
|
32
32
|
import '@radix-ui/react-tooltip';
|
|
33
33
|
import '@radix-ui/react-tabs';
|
|
34
34
|
import 'fuse.js';
|
|
@@ -1952,14 +1952,14 @@ const coreWallet = options => {
|
|
|
1952
1952
|
handelWCSessionRequest(wallet, coreWalletUris);
|
|
1953
1953
|
return wallet;
|
|
1954
1954
|
},
|
|
1955
|
-
connectUI: ConnectUI$
|
|
1955
|
+
connectUI: ConnectUI$3,
|
|
1956
1956
|
isInstalled: isCoreWalletInstalled
|
|
1957
1957
|
};
|
|
1958
1958
|
};
|
|
1959
1959
|
function isCoreWalletInstalled() {
|
|
1960
1960
|
return !!getInjectedCoreWalletProvider();
|
|
1961
1961
|
}
|
|
1962
|
-
function ConnectUI$
|
|
1962
|
+
function ConnectUI$3(props) {
|
|
1963
1963
|
const locale = useTWLocale();
|
|
1964
1964
|
return /*#__PURE__*/jsx(ExtensionOrWCConnectionUI, {
|
|
1965
1965
|
connect: props.connect,
|
|
@@ -2033,14 +2033,14 @@ const cryptoDefiWallet = options => {
|
|
|
2033
2033
|
handelWCSessionRequest(wallet, cryptoDefiWalletUris);
|
|
2034
2034
|
return wallet;
|
|
2035
2035
|
},
|
|
2036
|
-
connectUI: ConnectUI$
|
|
2036
|
+
connectUI: ConnectUI$2,
|
|
2037
2037
|
isInstalled: isWalletInstalled
|
|
2038
2038
|
};
|
|
2039
2039
|
};
|
|
2040
2040
|
function isWalletInstalled() {
|
|
2041
2041
|
return !!getInjectedCryptoDefiWalletProvider();
|
|
2042
2042
|
}
|
|
2043
|
-
function ConnectUI$
|
|
2043
|
+
function ConnectUI$2(props) {
|
|
2044
2044
|
const locale = useTWLocale();
|
|
2045
2045
|
return /*#__PURE__*/jsx(ExtensionOrWCConnectionUI, {
|
|
2046
2046
|
connect: props.connect,
|
|
@@ -2309,14 +2309,14 @@ const coin98Wallet = options => {
|
|
|
2309
2309
|
});
|
|
2310
2310
|
return wallet;
|
|
2311
2311
|
},
|
|
2312
|
-
connectUI: ConnectUI,
|
|
2312
|
+
connectUI: ConnectUI$1,
|
|
2313
2313
|
isInstalled: isCoin98Installed
|
|
2314
2314
|
};
|
|
2315
2315
|
};
|
|
2316
2316
|
function isCoin98Installed() {
|
|
2317
2317
|
return !!getInjectedCoin98Provider();
|
|
2318
2318
|
}
|
|
2319
|
-
function ConnectUI(props) {
|
|
2319
|
+
function ConnectUI$1(props) {
|
|
2320
2320
|
const locale = useTWLocale();
|
|
2321
2321
|
return /*#__PURE__*/jsx(ExtensionOrWCConnectionUI, {
|
|
2322
2322
|
connect: props.connect,
|
|
@@ -2333,6 +2333,57 @@ function ConnectUI(props) {
|
|
|
2333
2333
|
});
|
|
2334
2334
|
}
|
|
2335
2335
|
|
|
2336
|
+
const imTokenWalletUris = {
|
|
2337
|
+
ios: "https://itunes.apple.com/us/app/imtoken2/id1384798940",
|
|
2338
|
+
android: "https://play.google.com/store/apps/details?id=im.token.app"
|
|
2339
|
+
};
|
|
2340
|
+
const imTokenWallet = options => {
|
|
2341
|
+
return {
|
|
2342
|
+
id: ImTokenWallet.id,
|
|
2343
|
+
recommended: options?.recommended,
|
|
2344
|
+
meta: {
|
|
2345
|
+
...ImTokenWallet.meta,
|
|
2346
|
+
iconURL: "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODAiIGhlaWdodD0iODAiIHZpZXdCb3g9IjAgMCA4MCA4MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzIyMl80NzgzKSI+CjxtYXNrIGlkPSJtYXNrMF8yMjJfNDc4MyIgc3R5bGU9Im1hc2stdHlwZTpsdW1pbmFuY2UiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCI+CjxwYXRoIGQ9Ik03OS44OTQ4IDBIMC4wNTA3ODEyVjgwSDc5Ljg5NDhWMFoiIGZpbGw9IndoaXRlIi8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF8yMjJfNDc4MykiPgo8cGF0aCBkPSJNNjIuMDI3NSAwSDE4LjA1MDlDOC4xNDYzOSAwIDAuMTE3MTg4IDguMDQ0ODggMC4xMTcxODggMTcuOTY4OFY2Mi4wMzEyQzAuMTE3MTg4IDcxLjk1NTEgOC4xNDYzOSA4MCAxOC4wNTA5IDgwSDYyLjAyNzVDNzEuOTMyIDgwIDc5Ljk2MTIgNzEuOTU1MSA3OS45NjEyIDYyLjAzMTJWMTcuOTY4OEM3OS45NjEyIDguMDQ0ODggNzEuOTMyIDAgNjIuMDI3NSAwWiIgZmlsbD0idXJsKCNwYWludDBfbGluZWFyXzIyMl80NzgzKSIvPgo8cGF0aCBkPSJNNjUuMDk4MSAyNC43MzNDNjYuNzU4NiA0Ny4yNjY3IDUyLjMwMjEgNTcuOTE3MiAzOS4zNDIzIDU5LjA1M0MyNy4yOTM1IDYwLjEwODcgMTUuOTUyIDUyLjY5MDggMTQuOTU3MSA0MS4yOTM2QzE0LjEzNjMgMzEuODc3NiAxOS45NDQ1IDI3Ljg2ODkgMjQuNTA4IDI3LjQ2OTRDMjkuMjAxNSAyNy4wNTcgMzMuMTQ1OCAzMC4zMDAxIDMzLjQ4NzkgMzQuMjI2OUMzMy44MTc1IDM4LjAwMiAzMS40NjY0IDM5LjcyMDUgMjkuODMxMyAzOS44NjM0QzI4LjUzODIgMzkuOTc3IDI2LjkxMTQgMzkuMTkwNSAyNi43NjQ1IDM3LjUwMTZDMjYuNjM4NSAzNi4wNTAzIDI3LjE4ODUgMzUuODUyNiAyNy4wNTQxIDM0LjMxMDlDMjYuODE0OSAzMS41NjYyIDI0LjQyNjEgMzEuMjQ2NiAyMy4xMTgzIDMxLjM2MDFDMjEuNTM1NyAzMS40OTkxIDE4LjY2NDEgMzMuMzQ5OCAxOS4wNjcgMzcuOTZDMTkuNDcyMiA0Mi42MTAxIDIzLjkyMjIgNDYuMjg0NSAyOS43NTU3IDQ1Ljc3MzRDMzYuMDUwOSA0NS4yMjIzIDQwLjQzMzcgNDAuMzExNCA0MC43NjM0IDMzLjQyMzRDNDAuNzYwMyAzMy4wNTg2IDQwLjgzNyAzMi42OTc1IDQwLjk4OCAzMi4zNjU1TDQwLjk5IDMyLjM1NzJDNDEuMDU3OCAzMi4yMTI4IDQxLjEzNzIgMzIuMDc0MiA0MS4yMjcyIDMxLjk0MjhDNDEuMzYxNiAzMS43NDA5IDQxLjUzMzggMzEuNTE4IDQxLjc1NjIgMzEuMjczOUM0MS43NTgzIDMxLjI2NzYgNDEuNzU4MyAzMS4yNjc2IDQxLjc2MjYgMzEuMjY3NkM0MS45MjQxIDMxLjA4NDcgNDIuMTE5NCAzMC44ODcgNDIuMzM5NyAzMC42NzQ1QzQ1LjA4OTcgMjguMDc1IDU0Ljk5MzEgMjEuOTQ0MiA2NC4zNTkyIDIzLjg4NTVDNjQuNTU3MyAyMy45MjggNjQuNzM2MSAyNC4wMzM0IDY0Ljg2OTMgMjQuMTg2MkM2NS4wMDI1IDI0LjMzOTEgNjUuMDgyNiAyNC41MzA4IDY1LjA5ODEgMjQuNzMzWiIgZmlsbD0id2hpdGUiLz4KPC9nPgo8L2c+CjxkZWZzPgo8bGluZWFyR3JhZGllbnQgaWQ9InBhaW50MF9saW5lYXJfMjIyXzQ3ODMiIHgxPSI3My41MDA5IiB5MT0iNS4zMTI1IiB4Mj0iMi44NzI0MSIgeTI9Ijc3LjY3NDciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0iIzExQzREMSIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDYyQUQiLz4KPC9saW5lYXJHcmFkaWVudD4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yMjJfNDc4MyI+CjxyZWN0IHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4="
|
|
2347
|
+
},
|
|
2348
|
+
create: walletOptions => {
|
|
2349
|
+
const wallet = new ImTokenWallet({
|
|
2350
|
+
...walletOptions,
|
|
2351
|
+
projectId: options?.projectId,
|
|
2352
|
+
qrcode: false
|
|
2353
|
+
});
|
|
2354
|
+
return wallet;
|
|
2355
|
+
},
|
|
2356
|
+
connectUI: ConnectUI,
|
|
2357
|
+
isInstalled: isInstalled
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
function isInstalled() {
|
|
2361
|
+
if (assertWindowEthereum(globalThis.window)) {
|
|
2362
|
+
return !!globalThis.window.ethereum.isImToken;
|
|
2363
|
+
}
|
|
2364
|
+
return false;
|
|
2365
|
+
}
|
|
2366
|
+
function ConnectUI(props) {
|
|
2367
|
+
const locale = useTWLocale();
|
|
2368
|
+
return /*#__PURE__*/jsx(ExtensionOrWCConnectionUI, {
|
|
2369
|
+
connect: props.connect,
|
|
2370
|
+
connected: props.connected,
|
|
2371
|
+
createWalletInstance: props.createWalletInstance,
|
|
2372
|
+
goBack: props.goBack,
|
|
2373
|
+
meta: props.walletConfig.meta,
|
|
2374
|
+
setConnectedWallet: w => props.setConnectedWallet(w),
|
|
2375
|
+
setConnectionStatus: props.setConnectionStatus,
|
|
2376
|
+
supportedWallets: props.supportedWallets,
|
|
2377
|
+
walletConnectUris: {
|
|
2378
|
+
ios: imTokenWalletUris.ios,
|
|
2379
|
+
android: imTokenWalletUris.android,
|
|
2380
|
+
other: imTokenWalletUris.android
|
|
2381
|
+
},
|
|
2382
|
+
walletLocale: locale.wallets.imTokenWallet,
|
|
2383
|
+
isInstalled: isInstalled
|
|
2384
|
+
});
|
|
2385
|
+
}
|
|
2386
|
+
|
|
2336
2387
|
// wallets that connect via extension and QR scan
|
|
2337
2388
|
function extensionAndQRScanScreens$1(walletName) {
|
|
2338
2389
|
return {
|
|
@@ -2503,6 +2554,7 @@ function jaDefault() {
|
|
|
2503
2554
|
xdefiWallet: extensionAndQRScanScreens$1("XDEFI"),
|
|
2504
2555
|
rainbowWallet: extensionAndQRScanScreens$1("Rainbow"),
|
|
2505
2556
|
trustWallet: extensionAndQRScanScreens$1("Trust"),
|
|
2557
|
+
imTokenWallet: extensionAndQRScanScreens$1("imToken"),
|
|
2506
2558
|
zerionWallet: extensionAndQRScanScreens$1("Zerion"),
|
|
2507
2559
|
oneKeyWallet: extensionAndQRScanScreens$1("OneKey"),
|
|
2508
2560
|
cryptoDefiWallet: extensionAndQRScanScreens$1("Crypto Defi"),
|
|
@@ -2854,6 +2906,7 @@ function esDefault() {
|
|
|
2854
2906
|
xdefiWallet: extensionAndQRScanScreens("XDEFI"),
|
|
2855
2907
|
rainbowWallet: extensionAndQRScanScreens("Rainbow"),
|
|
2856
2908
|
trustWallet: extensionAndQRScanScreens("Trust"),
|
|
2909
|
+
imTokenWallet: extensionAndQRScanScreens("imToken"),
|
|
2857
2910
|
zerionWallet: extensionAndQRScanScreens("Zerion"),
|
|
2858
2911
|
oneKeyWallet: extensionAndQRScanScreens("OneKey"),
|
|
2859
2912
|
cryptoDefiWallet: extensionAndQRScanScreens("Crypto Defi"),
|
|
@@ -3870,4 +3923,4 @@ const PaperCheckoutModal = _ref3 => {
|
|
|
3870
3923
|
});
|
|
3871
3924
|
};
|
|
3872
3925
|
|
|
3873
|
-
export { CheckoutWithCard, VerifyOwnershipWithPaper as LoginWithPaper, PaperCheckout, PaperCheckoutDisplay, PaymentsSDKProvider, VerifyOwnershipWithPaper, coin98Wallet, coreWallet, cryptoDefiWallet, es, ja, localWallet, magicEdenWallet, okxWallet, rabbyWallet, smartWallet, usePaymentsSDKContext, useSmartWallet, xdefiWallet };
|
|
3926
|
+
export { CheckoutWithCard, VerifyOwnershipWithPaper as LoginWithPaper, PaperCheckout, PaperCheckoutDisplay, PaymentsSDKProvider, VerifyOwnershipWithPaper, coin98Wallet, coreWallet, cryptoDefiWallet, es, imTokenWallet, ja, localWallet, magicEdenWallet, okxWallet, rabbyWallet, smartWallet, usePaymentsSDKContext, useSmartWallet, xdefiWallet };
|