@orderly.network/wallet-connector-privy 2.8.9 → 2.8.10-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +35 -8
- package/dist/index.d.ts +35 -8
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React19, { createContext, useState, useEffect, useMemo, useContext, useRef, useCallback } from 'react';
|
|
2
1
|
import * as viemExport from 'viem';
|
|
3
2
|
import { defineChain } from 'viem';
|
|
3
|
+
import * as WagmiExport from 'wagmi';
|
|
4
|
+
import { createConfig, injected, createStorage, http, WagmiProvider, useConnect, useDisconnect, useAccount as useAccount$1, useSwitchChain } from 'wagmi';
|
|
5
|
+
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
6
|
+
import React19, { createContext, useState, useEffect, useMemo, useContext, useRef, useCallback } from 'react';
|
|
4
7
|
import { mainnet, abstract, abstractTestnet } from 'viem/chains';
|
|
5
8
|
import { useWalletConnector, useAccount, useMainnetChainsStore, useTestnetChainsStore, useSwapSupportStore, WalletConnectorContext, useTrack, useStorageLedgerAddress, useLocalStorage, useStorageChain } from '@orderly.network/hooks';
|
|
6
9
|
import { SOLANA_TESTNET_CHAINID, SOLANA_MAINNET_CHAINID, ChainNamespace, ABSTRACT_CHAIN_ID_MAP, AccountStatusEnum, ABSTRACT_TESTNET_CHAINID, ABSTRACT_MAINNET_CHAINID, SolanaChains as SolanaChains$1, AbstractChains, ArbitrumSepoliaChainInfo, SolanaDevnetChainInfo, EMPTY_OBJECT, TrackerEventName, ConnectorKey } from '@orderly.network/types';
|
|
7
10
|
import { modal, useModal, SimpleSheet, SheetHeader, Text, Flex, Divider, cn, installExtension, ExtensionPositionEnum, useScreen, formatAddress, Button, SimpleDialog, TooltipProvider, CloseSquareFillIcon, ScrollArea, ExclamationFillIcon, Tooltip, CopyIcon, Checkbox, toast, DropdownMenuRoot, DropdownMenuTrigger, DropdownMenuPortal, DropdownMenuContent, DropdownMenuItem, ChevronDownIcon, ChevronUpIcon, Grid, ChainIcon, Popover } from '@orderly.network/ui';
|
|
8
11
|
import { useTranslation, Trans } from '@orderly.network/i18n';
|
|
9
12
|
import { AbstractWalletProvider as AbstractWalletProvider$1, useLoginWithAbstract, useAbstractClient, useGlobalWalletSignerAccount } from '@abstract-foundation/agw-react';
|
|
10
|
-
import * as WagmiExport from 'wagmi';
|
|
11
|
-
import { createConfig, injected, createStorage, http, WagmiProvider, useConnect, useDisconnect, useAccount as useAccount$1, useSwitchChain } from 'wagmi';
|
|
12
13
|
import { windowGuard } from '@orderly.network/utils';
|
|
13
14
|
import { WalletAdapterNetwork } from '@solana/wallet-adapter-base';
|
|
14
15
|
import { PrivyProvider, usePrivy, useWallets, useSolanaWallets } from '@privy-io/react-auth';
|
|
@@ -17,9 +18,8 @@ import { create } from 'zustand';
|
|
|
17
18
|
import { AuthGuard } from '@orderly.network/ui-connector';
|
|
18
19
|
import { PhantomWalletAdapter } from '@solana/wallet-adapter-wallets';
|
|
19
20
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
20
|
-
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
21
21
|
|
|
22
|
-
// src/
|
|
22
|
+
// src/index.ts
|
|
23
23
|
var Network = /* @__PURE__ */ ((Network3) => {
|
|
24
24
|
Network3["mainnet"] = "mainnet";
|
|
25
25
|
Network3["testnet"] = "testnet";
|
|
@@ -3473,10 +3473,12 @@ function WalletConnectorPrivyProvider(props) {
|
|
|
3473
3473
|
}
|
|
3474
3474
|
return /* @__PURE__ */ React19.createElement(WalletConnectorPrivyContext.Provider, { value }, /* @__PURE__ */ React19.createElement(TooltipProvider, { delayDuration: 300 }, /* @__PURE__ */ React19.createElement(PrivyWallet, { privyConfig: props.privyConfig, initChains }, /* @__PURE__ */ React19.createElement(WagmiWallet, { wagmiConfig: props.wagmiConfig, initChains }, /* @__PURE__ */ React19.createElement(SolanaWallet, { solanaConfig: props.solanaConfig }, /* @__PURE__ */ React19.createElement(AbstractWallet, null, /* @__PURE__ */ React19.createElement(Main, { headerProps: props.headerProps }, props.children)))))));
|
|
3475
3475
|
}
|
|
3476
|
+
|
|
3477
|
+
// src/index.ts
|
|
3476
3478
|
var viem = viemExport;
|
|
3477
3479
|
var wagmiConnectors = WagmiConnectorsExport;
|
|
3478
3480
|
var wagmi = WagmiExport;
|
|
3479
3481
|
|
|
3480
|
-
export { AbstractChainsMap, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, UserCenter, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, viem, wagmi, wagmiConnectors };
|
|
3482
|
+
export { AbstractChainsMap, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, UserCenter, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
|
|
3481
3483
|
//# sourceMappingURL=out.js.map
|
|
3482
3484
|
//# sourceMappingURL=index.mjs.map
|