@amityco/ui-kit-open-source 4.6.1 → 4.7.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
@@ -151,7 +151,9 @@ interface PageBehavior {
151
151
  closeAction?(): void;
152
152
  };
153
153
  onClickHyperLink?(): void;
154
- AmitySocialHomePageBehavior?: Record<string, unknown>;
154
+ AmitySocialHomePageBehavior?: {
155
+ goToNotificationTrayPage?: () => void;
156
+ };
155
157
  AmityGlobalFeedComponentBehavior?: {
156
158
  goToPostDetailPage?: (context: {
157
159
  postId: string;
@@ -348,6 +350,18 @@ interface PageBehavior {
348
350
  targetType: 'community' | 'user';
349
351
  }): void;
350
352
  };
353
+ AmityNotificationTrayPageBehavior?: {
354
+ goToCommunityProfilePage?(context: {
355
+ communityId: string;
356
+ }): void;
357
+ goToPostDetailPage?(context: {
358
+ postId: string;
359
+ hideTarget?: boolean;
360
+ category?: AmityPostCategory;
361
+ commentId?: string;
362
+ parentId?: string;
363
+ }): void;
364
+ };
351
365
  }
352
366
 
353
367
  type AmityUIKitConfig = Config;
@@ -787,8 +801,10 @@ interface PostDetailPageProps {
787
801
  id: string;
788
802
  hideTarget?: boolean;
789
803
  category?: AmityPostCategory;
804
+ commentId?: string;
805
+ parentId?: string;
790
806
  }
791
- declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
807
+ declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, }: PostDetailPageProps): React.JSX.Element;
792
808
 
793
809
  type UserProfilePageProps = {
794
810
  userId: string;
package/dist/index.d.ts CHANGED
@@ -151,7 +151,9 @@ interface PageBehavior {
151
151
  closeAction?(): void;
152
152
  };
153
153
  onClickHyperLink?(): void;
154
- AmitySocialHomePageBehavior?: Record<string, unknown>;
154
+ AmitySocialHomePageBehavior?: {
155
+ goToNotificationTrayPage?: () => void;
156
+ };
155
157
  AmityGlobalFeedComponentBehavior?: {
156
158
  goToPostDetailPage?: (context: {
157
159
  postId: string;
@@ -348,6 +350,18 @@ interface PageBehavior {
348
350
  targetType: 'community' | 'user';
349
351
  }): void;
350
352
  };
353
+ AmityNotificationTrayPageBehavior?: {
354
+ goToCommunityProfilePage?(context: {
355
+ communityId: string;
356
+ }): void;
357
+ goToPostDetailPage?(context: {
358
+ postId: string;
359
+ hideTarget?: boolean;
360
+ category?: AmityPostCategory;
361
+ commentId?: string;
362
+ parentId?: string;
363
+ }): void;
364
+ };
351
365
  }
352
366
 
353
367
  type AmityUIKitConfig = Config;
@@ -787,8 +801,10 @@ interface PostDetailPageProps {
787
801
  id: string;
788
802
  hideTarget?: boolean;
789
803
  category?: AmityPostCategory;
804
+ commentId?: string;
805
+ parentId?: string;
790
806
  }
791
- declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
807
+ declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, }: PostDetailPageProps): React.JSX.Element;
792
808
 
793
809
  type UserProfilePageProps = {
794
810
  userId: string;