@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/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 {