@orderly.network/wallet-connector-privy 3.0.0-beta.2 → 3.0.0-beta.4
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 +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.js +1325 -1086
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1210 -971
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
package/dist/index.d.mts
CHANGED
|
@@ -3,6 +3,7 @@ import { Chain } from 'viem';
|
|
|
3
3
|
import * as WagmiExport from 'wagmi';
|
|
4
4
|
import { CreateConnectorFn, Storage, Connector } from 'wagmi';
|
|
5
5
|
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import React, { PropsWithChildren } from 'react';
|
|
7
8
|
import { PrivyClientConfig } from '@privy-io/react-auth';
|
|
8
9
|
import { Adapter, WalletError, WalletAdapterNetwork, WalletAdapter } from '@solana/wallet-adapter-base';
|
|
@@ -39,12 +40,18 @@ interface ConnectProps {
|
|
|
39
40
|
connector?: Connector;
|
|
40
41
|
walletAdapter?: WalletAdapter;
|
|
41
42
|
}
|
|
43
|
+
type PrivyAppearanceConfig = NonNullable<PrivyClientConfig["appearance"]>;
|
|
44
|
+
/** Appearance subset for InitPrivy; accentColor widened for CSS vars / rgb(). */
|
|
45
|
+
type InitPrivyAppearance = Omit<PrivyAppearanceConfig, "walletChainType" | "walletList" | "accentColor"> & {
|
|
46
|
+
accentColor?: string;
|
|
47
|
+
};
|
|
48
|
+
/** Pass-through Privy client config; chains are owned by the SDK. */
|
|
49
|
+
type InitPrivyClientConfig = Partial<Omit<PrivyClientConfig, "supportedChains" | "defaultChain" | "appearance">> & {
|
|
50
|
+
appearance?: InitPrivyAppearance;
|
|
51
|
+
};
|
|
42
52
|
interface InitPrivy {
|
|
43
53
|
appid: string;
|
|
44
|
-
config?:
|
|
45
|
-
appearance: Omit<PrivyClientConfig["appearance"], "walletChainType" | "walletList">;
|
|
46
|
-
loginMethods?: PrivyClientConfig["loginMethods"];
|
|
47
|
-
};
|
|
54
|
+
config?: InitPrivyClientConfig;
|
|
48
55
|
}
|
|
49
56
|
interface InitWagmi {
|
|
50
57
|
connectors?: CreateConnectorFn[];
|
|
@@ -126,13 +133,13 @@ interface WalletConnectorPrivyProps extends PropsWithChildren {
|
|
|
126
133
|
mobile: React.ReactNode;
|
|
127
134
|
};
|
|
128
135
|
}
|
|
129
|
-
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps):
|
|
136
|
+
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps): react_jsx_runtime.JSX.Element | null;
|
|
130
137
|
|
|
131
|
-
declare function UserCenter(props: any):
|
|
132
|
-
declare const MwebUserCenter: (props: any) =>
|
|
138
|
+
declare function UserCenter(props: any): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare const MwebUserCenter: (props: any) => react_jsx_runtime.JSX.Element;
|
|
133
140
|
|
|
134
141
|
declare const viem: typeof viemExport;
|
|
135
142
|
declare const wagmiConnectors: typeof WagmiConnectorsExport;
|
|
136
143
|
declare const wagmi: typeof WagmiExport;
|
|
137
144
|
|
|
138
|
-
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
|
|
145
|
+
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitPrivyAppearance, type InitPrivyClientConfig, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Chain } from 'viem';
|
|
|
3
3
|
import * as WagmiExport from 'wagmi';
|
|
4
4
|
import { CreateConnectorFn, Storage, Connector } from 'wagmi';
|
|
5
5
|
import * as WagmiConnectorsExport from 'wagmi/connectors';
|
|
6
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
7
|
import React, { PropsWithChildren } from 'react';
|
|
7
8
|
import { PrivyClientConfig } from '@privy-io/react-auth';
|
|
8
9
|
import { Adapter, WalletError, WalletAdapterNetwork, WalletAdapter } from '@solana/wallet-adapter-base';
|
|
@@ -39,12 +40,18 @@ interface ConnectProps {
|
|
|
39
40
|
connector?: Connector;
|
|
40
41
|
walletAdapter?: WalletAdapter;
|
|
41
42
|
}
|
|
43
|
+
type PrivyAppearanceConfig = NonNullable<PrivyClientConfig["appearance"]>;
|
|
44
|
+
/** Appearance subset for InitPrivy; accentColor widened for CSS vars / rgb(). */
|
|
45
|
+
type InitPrivyAppearance = Omit<PrivyAppearanceConfig, "walletChainType" | "walletList" | "accentColor"> & {
|
|
46
|
+
accentColor?: string;
|
|
47
|
+
};
|
|
48
|
+
/** Pass-through Privy client config; chains are owned by the SDK. */
|
|
49
|
+
type InitPrivyClientConfig = Partial<Omit<PrivyClientConfig, "supportedChains" | "defaultChain" | "appearance">> & {
|
|
50
|
+
appearance?: InitPrivyAppearance;
|
|
51
|
+
};
|
|
42
52
|
interface InitPrivy {
|
|
43
53
|
appid: string;
|
|
44
|
-
config?:
|
|
45
|
-
appearance: Omit<PrivyClientConfig["appearance"], "walletChainType" | "walletList">;
|
|
46
|
-
loginMethods?: PrivyClientConfig["loginMethods"];
|
|
47
|
-
};
|
|
54
|
+
config?: InitPrivyClientConfig;
|
|
48
55
|
}
|
|
49
56
|
interface InitWagmi {
|
|
50
57
|
connectors?: CreateConnectorFn[];
|
|
@@ -126,13 +133,13 @@ interface WalletConnectorPrivyProps extends PropsWithChildren {
|
|
|
126
133
|
mobile: React.ReactNode;
|
|
127
134
|
};
|
|
128
135
|
}
|
|
129
|
-
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps):
|
|
136
|
+
declare function WalletConnectorPrivyProvider(props: WalletConnectorPrivyProps): react_jsx_runtime.JSX.Element | null;
|
|
130
137
|
|
|
131
|
-
declare function UserCenter(props: any):
|
|
132
|
-
declare const MwebUserCenter: (props: any) =>
|
|
138
|
+
declare function UserCenter(props: any): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare const MwebUserCenter: (props: any) => react_jsx_runtime.JSX.Element;
|
|
133
140
|
|
|
134
141
|
declare const viem: typeof viemExport;
|
|
135
142
|
declare const wagmiConnectors: typeof WagmiConnectorsExport;
|
|
136
143
|
declare const wagmi: typeof WagmiExport;
|
|
137
144
|
|
|
138
|
-
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
|
|
145
|
+
export { AbstractChainsMap, type ConnectProps, type ConnectorWalletType, type IWalletState, type InitAbstract, type InitPrivy, type InitPrivyAppearance, type InitPrivyClientConfig, type InitSolana, type InitWagmi, MwebUserCenter, Network, SolanaChains, SolanaChainsMap, type SolanaInitialProps, UserCenter, type WalletChainType, type WalletChainTypeConfig, WalletChainTypeEnum, WalletConnectType, WalletConnectorPrivyProvider, WalletType, useWalletConnectorPrivy, viem, wagmi, wagmiConnectors };
|