@amityco/ui-kit-open-source 4.0.2 → 4.2.0

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
@@ -79,8 +79,9 @@ interface PostContentProps {
79
79
  pageId?: string;
80
80
  disabledContent?: boolean;
81
81
  isGlobalFeaturePost?: boolean;
82
+ className?: string;
82
83
  }
83
- declare const PostContent: ({ pageId, post: initialPost, onClick, onPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, }: PostContentProps) => React.JSX.Element;
84
+ declare const PostContent: ({ pageId, post: initialPost, onClick, onPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, }: PostContentProps) => React.JSX.Element;
84
85
 
85
86
  type MemberCommunitySetup = {
86
87
  userId: string;
@@ -322,6 +323,10 @@ interface PageBehavior {
322
323
  }
323
324
 
324
325
  type AmityUIKitConfig = Config;
326
+ type AmityRoute = {
327
+ route: string;
328
+ id?: string;
329
+ };
325
330
  interface AmityUIKitProviderProps {
326
331
  apiKey: string;
327
332
  apiRegion: string;
@@ -356,6 +361,9 @@ interface AmityUIKitProviderProps {
356
361
  onDisconnected?: () => void;
357
362
  getAuthToken?: () => Promise<string>;
358
363
  configs?: AmityUIKitConfig;
364
+ activeRoute?: AmityRoute;
365
+ onRouteChange?: (route: AmityRoute) => void;
366
+ seoOptimizationEnabled?: boolean;
359
367
  }
360
368
  declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
361
369
 
@@ -567,6 +575,7 @@ declare class AmityUIKitManager {
567
575
  http?: string;
568
576
  mqtt?: string;
569
577
  };
578
+ seoOptimizationEnabled?: boolean;
570
579
  }): void;
571
580
  /**
572
581
  * Registers a device with the Amity SDK and handles the login process.
package/dist/index.d.ts CHANGED
@@ -79,8 +79,9 @@ interface PostContentProps {
79
79
  pageId?: string;
80
80
  disabledContent?: boolean;
81
81
  isGlobalFeaturePost?: boolean;
82
+ className?: string;
82
83
  }
83
- declare const PostContent: ({ pageId, post: initialPost, onClick, onPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, }: PostContentProps) => React.JSX.Element;
84
+ declare const PostContent: ({ pageId, post: initialPost, onClick, onPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, }: PostContentProps) => React.JSX.Element;
84
85
 
85
86
  type MemberCommunitySetup = {
86
87
  userId: string;
@@ -322,6 +323,10 @@ interface PageBehavior {
322
323
  }
323
324
 
324
325
  type AmityUIKitConfig = Config;
326
+ type AmityRoute = {
327
+ route: string;
328
+ id?: string;
329
+ };
325
330
  interface AmityUIKitProviderProps {
326
331
  apiKey: string;
327
332
  apiRegion: string;
@@ -356,6 +361,9 @@ interface AmityUIKitProviderProps {
356
361
  onDisconnected?: () => void;
357
362
  getAuthToken?: () => Promise<string>;
358
363
  configs?: AmityUIKitConfig;
364
+ activeRoute?: AmityRoute;
365
+ onRouteChange?: (route: AmityRoute) => void;
366
+ seoOptimizationEnabled?: boolean;
359
367
  }
360
368
  declare const AmityUIKitProvider: React.FC<AmityUIKitProviderProps>;
361
369
 
@@ -567,6 +575,7 @@ declare class AmityUIKitManager {
567
575
  http?: string;
568
576
  mqtt?: string;
569
577
  };
578
+ seoOptimizationEnabled?: boolean;
570
579
  }): void;
571
580
  /**
572
581
  * Registers a device with the Amity SDK and handles the login process.