@volr/react-ui 0.1.72 → 0.1.73
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.cjs +273 -191
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -2
- package/dist/index.d.ts +25 -2
- package/dist/index.js +274 -193
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -8,6 +8,13 @@ interface BrandingConfig {
|
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Theme options for Volr SDK
|
|
13
|
+
* - 'light': Always use light mode
|
|
14
|
+
* - 'dark': Always use dark mode
|
|
15
|
+
* - 'system': Follow user's system preference (prefers-color-scheme)
|
|
16
|
+
*/
|
|
17
|
+
type VolrTheme = "light" | "dark" | "system";
|
|
11
18
|
/**
|
|
12
19
|
* UI 전용 설정을 포함한 Volr UI 구성 객체
|
|
13
20
|
* - VolrConfig(코어 설정)를 확장하고
|
|
@@ -16,8 +23,10 @@ interface BrandingConfig {
|
|
|
16
23
|
interface VolrUIConfig extends VolrConfig {
|
|
17
24
|
appName: string;
|
|
18
25
|
accentColor?: string;
|
|
26
|
+
/** Theme mode: 'light' | 'dark' | 'system'. Default: 'light' */
|
|
27
|
+
theme?: VolrTheme;
|
|
19
28
|
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
20
|
-
socialProviders?: ("google" | "twitter"
|
|
29
|
+
socialProviders?: ("google" | "twitter")[];
|
|
21
30
|
branding?: BrandingConfig;
|
|
22
31
|
keyStorageType?: KeyStorageType;
|
|
23
32
|
}
|
|
@@ -28,11 +37,25 @@ interface VolrUIProviderProps {
|
|
|
28
37
|
declare const useVolrUI: () => {
|
|
29
38
|
accentColor: string;
|
|
30
39
|
appName: string;
|
|
40
|
+
theme: VolrTheme;
|
|
31
41
|
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
32
42
|
socialProviders?: ("google" | "twitter" | "apple")[];
|
|
33
43
|
branding?: BrandingConfig;
|
|
34
44
|
keyStorageType?: KeyStorageType;
|
|
35
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Optional version of useVolrUI that returns null instead of throwing
|
|
48
|
+
* Useful for components that may be used outside VolrUIProvider
|
|
49
|
+
*/
|
|
50
|
+
declare const useVolrUIOptional: () => {
|
|
51
|
+
accentColor: string;
|
|
52
|
+
appName: string;
|
|
53
|
+
theme: VolrTheme;
|
|
54
|
+
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
55
|
+
socialProviders?: ("google" | "twitter" | "apple")[];
|
|
56
|
+
branding?: BrandingConfig;
|
|
57
|
+
keyStorageType?: KeyStorageType;
|
|
58
|
+
} | null;
|
|
36
59
|
declare const VolrUIProvider: React$1.FC<VolrUIProviderProps>;
|
|
37
60
|
|
|
38
61
|
/**
|
|
@@ -240,4 +263,4 @@ declare function useSwitchNetwork(): (chainId: number) => Promise<void>;
|
|
|
240
263
|
*/
|
|
241
264
|
declare function getCurrentChainId(): Promise<number>;
|
|
242
265
|
|
|
243
|
-
export { I18nContext, type I18nContextValue, I18nProvider, type I18nProviderProps, type Locale, MpcConnectView, type MpcConnectViewProps, type NetworkWalletConfig, PasskeyEnrollView, type PasskeyEnrollViewProps, type Translations, type VolrUIConfig, VolrUIProvider, type VolrUIProviderProps, getCurrentChainId, useI18n, useSwitchNetwork, useTranslation, useVolrModal, useVolrUI };
|
|
266
|
+
export { I18nContext, type I18nContextValue, I18nProvider, type I18nProviderProps, type Locale, MpcConnectView, type MpcConnectViewProps, type NetworkWalletConfig, PasskeyEnrollView, type PasskeyEnrollViewProps, type Translations, type VolrTheme, type VolrUIConfig, VolrUIProvider, type VolrUIProviderProps, getCurrentChainId, useI18n, useSwitchNetwork, useTranslation, useVolrModal, useVolrUI, useVolrUIOptional };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,13 @@ interface BrandingConfig {
|
|
|
8
8
|
backgroundColor?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Theme options for Volr SDK
|
|
13
|
+
* - 'light': Always use light mode
|
|
14
|
+
* - 'dark': Always use dark mode
|
|
15
|
+
* - 'system': Follow user's system preference (prefers-color-scheme)
|
|
16
|
+
*/
|
|
17
|
+
type VolrTheme = "light" | "dark" | "system";
|
|
11
18
|
/**
|
|
12
19
|
* UI 전용 설정을 포함한 Volr UI 구성 객체
|
|
13
20
|
* - VolrConfig(코어 설정)를 확장하고
|
|
@@ -16,8 +23,10 @@ interface BrandingConfig {
|
|
|
16
23
|
interface VolrUIConfig extends VolrConfig {
|
|
17
24
|
appName: string;
|
|
18
25
|
accentColor?: string;
|
|
26
|
+
/** Theme mode: 'light' | 'dark' | 'system'. Default: 'light' */
|
|
27
|
+
theme?: VolrTheme;
|
|
19
28
|
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
20
|
-
socialProviders?: ("google" | "twitter"
|
|
29
|
+
socialProviders?: ("google" | "twitter")[];
|
|
21
30
|
branding?: BrandingConfig;
|
|
22
31
|
keyStorageType?: KeyStorageType;
|
|
23
32
|
}
|
|
@@ -28,11 +37,25 @@ interface VolrUIProviderProps {
|
|
|
28
37
|
declare const useVolrUI: () => {
|
|
29
38
|
accentColor: string;
|
|
30
39
|
appName: string;
|
|
40
|
+
theme: VolrTheme;
|
|
31
41
|
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
32
42
|
socialProviders?: ("google" | "twitter" | "apple")[];
|
|
33
43
|
branding?: BrandingConfig;
|
|
34
44
|
keyStorageType?: KeyStorageType;
|
|
35
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Optional version of useVolrUI that returns null instead of throwing
|
|
48
|
+
* Useful for components that may be used outside VolrUIProvider
|
|
49
|
+
*/
|
|
50
|
+
declare const useVolrUIOptional: () => {
|
|
51
|
+
accentColor: string;
|
|
52
|
+
appName: string;
|
|
53
|
+
theme: VolrTheme;
|
|
54
|
+
enabledLoginMethods?: ("email" | "social" | "siwe")[];
|
|
55
|
+
socialProviders?: ("google" | "twitter" | "apple")[];
|
|
56
|
+
branding?: BrandingConfig;
|
|
57
|
+
keyStorageType?: KeyStorageType;
|
|
58
|
+
} | null;
|
|
36
59
|
declare const VolrUIProvider: React$1.FC<VolrUIProviderProps>;
|
|
37
60
|
|
|
38
61
|
/**
|
|
@@ -240,4 +263,4 @@ declare function useSwitchNetwork(): (chainId: number) => Promise<void>;
|
|
|
240
263
|
*/
|
|
241
264
|
declare function getCurrentChainId(): Promise<number>;
|
|
242
265
|
|
|
243
|
-
export { I18nContext, type I18nContextValue, I18nProvider, type I18nProviderProps, type Locale, MpcConnectView, type MpcConnectViewProps, type NetworkWalletConfig, PasskeyEnrollView, type PasskeyEnrollViewProps, type Translations, type VolrUIConfig, VolrUIProvider, type VolrUIProviderProps, getCurrentChainId, useI18n, useSwitchNetwork, useTranslation, useVolrModal, useVolrUI };
|
|
266
|
+
export { I18nContext, type I18nContextValue, I18nProvider, type I18nProviderProps, type Locale, MpcConnectView, type MpcConnectViewProps, type NetworkWalletConfig, PasskeyEnrollView, type PasskeyEnrollViewProps, type Translations, type VolrTheme, type VolrUIConfig, VolrUIProvider, type VolrUIProviderProps, getCurrentChainId, useI18n, useSwitchNetwork, useTranslation, useVolrModal, useVolrUI, useVolrUIOptional };
|