@dogeos/dogeos-sdk 3.3.0-beta.2 → 4.0.0-beta.10
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/README.md +39 -31
- package/dist/dogeos-sdk.css +1 -1
- package/dist/index.d.ts +41 -11
- package/dist/index.js +38018 -19711
- package/package.json +37 -17
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { AdaptorChainType } from '@tomo-inc/wallet-adaptor-base';
|
|
2
2
|
import { Chain as Chain_2 } from 'viem/chains';
|
|
3
|
-
import {
|
|
3
|
+
import { ConfigThemes } from '@heroui/theme';
|
|
4
4
|
import { Connector } from '@tomo-inc/wallet-adaptor-base';
|
|
5
5
|
import { ConnectorProvider } from '@tomo-inc/wallet-adaptor-base';
|
|
6
6
|
import { ConnectorProviders } from '@tomo-inc/wallet-adaptor-base';
|
|
7
7
|
import { default as default_2 } from 'react';
|
|
8
|
+
import { DefaultThemeType } from '@heroui/theme';
|
|
8
9
|
import { EmbeddedWallet } from '@tomo-inc/embedded-wallet-providers';
|
|
9
10
|
import { EmbeddedWalletConfig } from '@tomo-inc/embedded-wallet-providers';
|
|
10
11
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
12
|
+
import { LayoutTheme } from '@heroui/theme';
|
|
11
13
|
import { SignInParams } from '@tomo-inc/wallet-adaptor-base';
|
|
12
|
-
import { ThemeConfig as ThemeConfig_2 } from '@tomo-inc/tomo-ui';
|
|
13
14
|
import { TomoStage } from '@tomo-inc/wallet-utils';
|
|
14
15
|
import { WalletConfig } from '@tomo-inc/wallet-adaptor-base';
|
|
15
16
|
import { WalletInfo } from '@tomo-inc/wallet-adaptor-base';
|
|
@@ -19,7 +20,7 @@ import { WalletProvider as WalletProvider_2 } from '@tomo-inc/wallet-adaptor-bas
|
|
|
19
20
|
export declare type BasicLoginType = "email" | "externalWallets";
|
|
20
21
|
|
|
21
22
|
export declare type Chain = {
|
|
22
|
-
id: number
|
|
23
|
+
id: number;
|
|
23
24
|
name: string;
|
|
24
25
|
nativeCurrency: {
|
|
25
26
|
name: string;
|
|
@@ -50,7 +51,21 @@ export declare type ChainInfo = {
|
|
|
50
51
|
|
|
51
52
|
export declare type ChainType = Exclude<AdaptorChainType, "all">;
|
|
52
53
|
|
|
53
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Chain types supported by the wallet
|
|
56
|
+
* The name must be explicitly defined in the enum.
|
|
57
|
+
*/
|
|
58
|
+
export declare enum ChainTypeEnum {
|
|
59
|
+
BITCOIN = "bitcoin",
|
|
60
|
+
DOGECOIN = "dogecoin",
|
|
61
|
+
EVM = "evm",
|
|
62
|
+
SOLANA = "solana",
|
|
63
|
+
APTOS = "aptos",
|
|
64
|
+
COSMOS = "cosmos",
|
|
65
|
+
TON = "ton",
|
|
66
|
+
TRON = "tron",
|
|
67
|
+
SUI = "sui"
|
|
68
|
+
}
|
|
54
69
|
|
|
55
70
|
export declare interface ConnectData {
|
|
56
71
|
address: string;
|
|
@@ -76,9 +91,6 @@ export declare type DogeOSEmbeddedWalletInitConfig = Omit<EmbeddedWalletConfig,
|
|
|
76
91
|
stage: EmbeddedWalletStage;
|
|
77
92
|
};
|
|
78
93
|
|
|
79
|
-
/**
|
|
80
|
-
* Connected information from embedded wallet
|
|
81
|
-
*/
|
|
82
94
|
declare interface EmbeddedWalletConnectedInfo {
|
|
83
95
|
evmProvider?: ProviderConnectionInfo;
|
|
84
96
|
solanaProvider?: ProviderConnectionInfo;
|
|
@@ -110,7 +122,7 @@ export declare type GetChainsReturnType = Promise<Partial<Record<ChainType, EvmC
|
|
|
110
122
|
|
|
111
123
|
/**
|
|
112
124
|
* Get all available connectors
|
|
113
|
-
* Loads all connectors from @
|
|
125
|
+
* Loads all connectors from @dogeos/wallet-adaptor-base including EIP6963, Wallet Standard, and WalletConnect wallets
|
|
114
126
|
*
|
|
115
127
|
* @returns Returns all available wallet connectors
|
|
116
128
|
*/
|
|
@@ -135,9 +147,6 @@ export declare enum ModalView {
|
|
|
135
147
|
WalletHome = "WALLET_HOME"
|
|
136
148
|
}
|
|
137
149
|
|
|
138
|
-
/**
|
|
139
|
-
* Provider connection information
|
|
140
|
-
*/
|
|
141
150
|
declare interface ProviderConnectionInfo {
|
|
142
151
|
chainType: ChainTypeEnum;
|
|
143
152
|
connected: boolean;
|
|
@@ -162,6 +171,10 @@ export { SignInParams }
|
|
|
162
171
|
|
|
163
172
|
export declare interface SocialLoginProvider {
|
|
164
173
|
type: SocialLoginType;
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated Provider OAuth client IDs are authority-owned and ignored by
|
|
176
|
+
* the SDK. Consumers only select which provider controls to display.
|
|
177
|
+
*/
|
|
165
178
|
clientId?: string;
|
|
166
179
|
[key: string]: unknown;
|
|
167
180
|
}
|
|
@@ -175,6 +188,13 @@ export declare type SwitchChainOptions = {
|
|
|
175
188
|
|
|
176
189
|
export declare type ThemeConfig = ThemeConfig_2;
|
|
177
190
|
|
|
191
|
+
declare type ThemeConfig_2 = {
|
|
192
|
+
prefix?: string;
|
|
193
|
+
layout?: LayoutTheme;
|
|
194
|
+
themes?: ConfigThemes;
|
|
195
|
+
defaultTheme?: DefaultThemeType;
|
|
196
|
+
};
|
|
197
|
+
|
|
178
198
|
/**
|
|
179
199
|
* Account information and actions exposed to users
|
|
180
200
|
*
|
|
@@ -251,6 +271,16 @@ declare interface WalletConnectEmbedProps {
|
|
|
251
271
|
}
|
|
252
272
|
|
|
253
273
|
export declare interface WalletConnectKitConfig {
|
|
274
|
+
/**
|
|
275
|
+
* Gateway origin for proof-bound product requests such as the wallet
|
|
276
|
+
* continuation admission call (custody migration gate). Optional; when
|
|
277
|
+
* omitted the continuation check is skipped and login behaves as before.
|
|
278
|
+
* @example
|
|
279
|
+
* ```tsx
|
|
280
|
+
* const config: WalletConnectKitConfig = { gatewayBaseUrl: "https://wallet.mydoge.com" };
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
gatewayBaseUrl?: string;
|
|
254
284
|
/**
|
|
255
285
|
* Connector configuration
|
|
256
286
|
* Must be obtained through getConnectors() method, cannot be passed directly
|