@amityco/ui-kit-open-source 4.4.1 → 4.6.1
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/CPIOZS5X-EANKXSUF.js +8 -0
- package/dist/OKF6E45R-E7OD63Z4.js +8 -0
- package/dist/chunk-6WKM7NHZ.js +72 -0
- package/dist/chunk-MHERDFNR.js +1344 -0
- package/dist/esm/CPIOZS5X-EANKXSUF.js +6 -0
- package/dist/esm/OKF6E45R-E7OD63Z4.js +6 -0
- package/dist/esm/chunk-6WKM7NHZ.js +3 -0
- package/dist/esm/chunk-MHERDFNR.js +1335 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +669 -665
- package/dist/index.css +1 -1
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +771 -768
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +6 -4
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,9 @@ type ThemeConfiguration = {
|
|
|
35
35
|
dark?: Partial<Theme['dark']>;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
type NetworkConfig = {
|
|
39
|
+
config: DefaultConfig;
|
|
40
|
+
};
|
|
38
41
|
interface Config {
|
|
39
42
|
preferred_theme?: 'light' | 'dark' | 'default';
|
|
40
43
|
theme?: {
|
|
@@ -47,6 +50,17 @@ interface Config {
|
|
|
47
50
|
[key: string]: IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
48
51
|
};
|
|
49
52
|
}
|
|
53
|
+
type DefaultConfig = {
|
|
54
|
+
preferred_theme: 'light' | 'dark' | 'default';
|
|
55
|
+
theme: {
|
|
56
|
+
light: Theme['light'];
|
|
57
|
+
dark: Theme['dark'];
|
|
58
|
+
};
|
|
59
|
+
excludes: string[];
|
|
60
|
+
customizations?: {
|
|
61
|
+
[key: string]: IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
type IconConfiguration = {
|
|
51
65
|
icon?: string;
|
|
52
66
|
image?: string;
|
|
@@ -378,6 +392,7 @@ interface AmityUIKitProviderProps {
|
|
|
378
392
|
activeRoute?: AmityRoute;
|
|
379
393
|
onRouteChange?: (route: AmityRoute) => void;
|
|
380
394
|
seoOptimizationEnabled?: boolean;
|
|
395
|
+
syncNetworkConfig?: boolean;
|
|
381
396
|
}
|
|
382
397
|
declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
|
|
383
398
|
|
|
@@ -629,6 +644,7 @@ declare class AmityUIKitManager {
|
|
|
629
644
|
* @returns True if the client is connected, false otherwise.
|
|
630
645
|
*/
|
|
631
646
|
isClientConnected(): boolean;
|
|
647
|
+
static syncNetworkConfig(): Promise<NetworkConfig>;
|
|
632
648
|
}
|
|
633
649
|
|
|
634
650
|
interface ChatHeaderProps {
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,9 @@ type ThemeConfiguration = {
|
|
|
35
35
|
dark?: Partial<Theme['dark']>;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
type NetworkConfig = {
|
|
39
|
+
config: DefaultConfig;
|
|
40
|
+
};
|
|
38
41
|
interface Config {
|
|
39
42
|
preferred_theme?: 'light' | 'dark' | 'default';
|
|
40
43
|
theme?: {
|
|
@@ -47,6 +50,17 @@ interface Config {
|
|
|
47
50
|
[key: string]: IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
48
51
|
};
|
|
49
52
|
}
|
|
53
|
+
type DefaultConfig = {
|
|
54
|
+
preferred_theme: 'light' | 'dark' | 'default';
|
|
55
|
+
theme: {
|
|
56
|
+
light: Theme['light'];
|
|
57
|
+
dark: Theme['dark'];
|
|
58
|
+
};
|
|
59
|
+
excludes: string[];
|
|
60
|
+
customizations?: {
|
|
61
|
+
[key: string]: IconConfiguration & TextConfiguration & ThemeConfiguration & CustomConfiguration;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
50
64
|
type IconConfiguration = {
|
|
51
65
|
icon?: string;
|
|
52
66
|
image?: string;
|
|
@@ -378,6 +392,7 @@ interface AmityUIKitProviderProps {
|
|
|
378
392
|
activeRoute?: AmityRoute;
|
|
379
393
|
onRouteChange?: (route: AmityRoute) => void;
|
|
380
394
|
seoOptimizationEnabled?: boolean;
|
|
395
|
+
syncNetworkConfig?: boolean;
|
|
381
396
|
}
|
|
382
397
|
declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
|
|
383
398
|
|
|
@@ -629,6 +644,7 @@ declare class AmityUIKitManager {
|
|
|
629
644
|
* @returns True if the client is connected, false otherwise.
|
|
630
645
|
*/
|
|
631
646
|
isClientConnected(): boolean;
|
|
647
|
+
static syncNetworkConfig(): Promise<NetworkConfig>;
|
|
632
648
|
}
|
|
633
649
|
|
|
634
650
|
interface ChatHeaderProps {
|