@amityco/ui-kit-open-source 4.15.0-beta.6 → 4.15.0-beta.8

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
@@ -96,6 +96,7 @@ interface PostDetailPageProps {
96
96
  hideTarget?: boolean;
97
97
  category?: AmityPostCategory;
98
98
  commentId?: string;
99
+ rootId?: string;
99
100
  parentId?: string;
100
101
  posts?: Amity.Post<'clip' | 'video'>[];
101
102
  selectedReplyComment?: Amity.Comment;
@@ -107,7 +108,7 @@ interface PostDetailPageProps {
107
108
  interface GoToPostDetailPageParams extends Omit<PostDetailPageProps, 'id'> {
108
109
  postId: string;
109
110
  }
110
- declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, eventCreatorId, }: PostDetailPageProps): react_jsx_runtime.JSX.Element | null;
111
+ declare function PostDetailPage({ id, hideTarget, category, commentId, rootId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, eventCreatorId, }: PostDetailPageProps): react_jsx_runtime.JSX.Element | null;
111
112
 
112
113
  declare enum AmityPostContentComponentStyle {
113
114
  FEED = "feed",
@@ -643,6 +644,7 @@ interface PageBehavior {
643
644
  }): void;
644
645
  goToEventDetailPage?(context: EventDetailProps): void;
645
646
  goToLivestreamPlayerPage?(context: LiveStreamPlayerPageProps): void;
647
+ goToEditProfilePage?(): void;
646
648
  };
647
649
  AmityDraftClipPageBehavior?: {
648
650
  goToPostComposerPage?(context: {
@@ -675,37 +677,43 @@ interface PageBehavior {
675
677
  handleNonFollowerAction?(context: {
676
678
  alignment: NotificationAlignment;
677
679
  }): void;
680
+ onPostProductTagClick?(context: {
681
+ product: Amity.Product;
682
+ }): void;
683
+ onLivestreamProductTagClick?(context: {
684
+ product: Amity.Product;
685
+ }): void;
678
686
  };
679
- AmityEventTargetSelectionPageBehavior: {
687
+ AmityEventTargetSelectionPageBehavior?: {
680
688
  goToEventSetupPage?(context: EventSetupProps): void;
681
689
  };
682
- AmityMyCommunitiesComponentBehavior: {
690
+ AmityMyCommunitiesComponentBehavior?: {
683
691
  goToCommunitySetupPage?(context: {
684
692
  mode: AmityCommunitySetupPageMode;
685
693
  }): void;
686
694
  };
687
- AmityExploreEventFeedComponentBehavior: {
695
+ AmityExploreEventFeedComponentBehavior?: {
688
696
  goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
689
697
  };
690
- AmityMyEventFeedComponentBehavior: {
698
+ AmityMyEventFeedComponentBehavior?: {
691
699
  goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
692
700
  goToPastEventsPage?(): void;
693
701
  };
694
- AmityEventDetailPageBehavior: {
695
- goToCommunityProfilePage(context: {
702
+ AmityEventDetailPageBehavior?: {
703
+ goToCommunityProfilePage?(context: {
696
704
  communityId: string;
697
705
  }): void;
698
- goToPostDetailPage(context: GoToPostDetailPageParams): void;
699
- goToEventSetupPage(context: EventSetupProps): void;
706
+ goToPostDetailPage?(context: GoToPostDetailPageParams): void;
707
+ goToEventSetupPage?(context: EventSetupProps): void;
700
708
  goToCreateLivestreamPage?(context: CreateLivestreamPageProps): void;
701
- goToPostComposerPage(context: {
709
+ goToPostComposerPage?(context: {
702
710
  mode: Mode.CREATE;
703
711
  targetName?: string;
704
712
  targetId: string | null;
705
713
  targetType: 'community' | 'user';
706
714
  community?: Amity.Community;
707
715
  }): void;
708
- goToPollPostComposerPage(context: {
716
+ goToPollPostComposerPage?(context: {
709
717
  targetId: string | null;
710
718
  targetType: 'community' | 'user';
711
719
  pollType?: 'text' | 'image';
@@ -717,19 +725,14 @@ interface PageBehavior {
717
725
  userId: string;
718
726
  }): void;
719
727
  };
720
- AmityEventSetupPageBehavior: {
721
- goToEventDetailPage: (context: EventDetailProps) => void;
728
+ AmityEventSetupPageBehavior?: {
729
+ goToEventDetailPage?(context: EventDetailProps): void;
722
730
  };
723
- AmityEventAttendeesPageBehavior: {
731
+ AmityEventAttendeesPageBehavior?: {
724
732
  goToUserProfilePage?(context: {
725
733
  userId: string;
726
734
  }): void;
727
735
  };
728
- AmityProducTagtListComponentBehavior: {
729
- onProductTagClick?(context: {
730
- productTag: Amity.ProductTag;
731
- }): void;
732
- };
733
736
  }
734
737
 
735
738
  type AmityUIKitConfig = Config;
@@ -1331,8 +1334,9 @@ type CommentTrayProps = {
1331
1334
  shouldAllowCreation?: boolean;
1332
1335
  shouldAllowInteraction?: boolean;
1333
1336
  referenceType: Amity.CommentReferenceType;
1337
+ commentCount?: number;
1334
1338
  };
1335
- declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1339
+ declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1336
1340
 
1337
1341
  type StoryTabProps = ({
1338
1342
  type: 'communityFeed';
package/dist/index.d.ts CHANGED
@@ -96,6 +96,7 @@ interface PostDetailPageProps {
96
96
  hideTarget?: boolean;
97
97
  category?: AmityPostCategory;
98
98
  commentId?: string;
99
+ rootId?: string;
99
100
  parentId?: string;
100
101
  posts?: Amity.Post<'clip' | 'video'>[];
101
102
  selectedReplyComment?: Amity.Comment;
@@ -107,7 +108,7 @@ interface PostDetailPageProps {
107
108
  interface GoToPostDetailPageParams extends Omit<PostDetailPageProps, 'id'> {
108
109
  postId: string;
109
110
  }
110
- declare function PostDetailPage({ id, hideTarget, category, commentId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, eventCreatorId, }: PostDetailPageProps): react_jsx_runtime.JSX.Element | null;
111
+ declare function PostDetailPage({ id, hideTarget, category, commentId, rootId, parentId, posts, selectedReplyComment, showReplyCommentAt, keyword, isFromCommentClick, eventCreatorId, }: PostDetailPageProps): react_jsx_runtime.JSX.Element | null;
111
112
 
112
113
  declare enum AmityPostContentComponentStyle {
113
114
  FEED = "feed",
@@ -643,6 +644,7 @@ interface PageBehavior {
643
644
  }): void;
644
645
  goToEventDetailPage?(context: EventDetailProps): void;
645
646
  goToLivestreamPlayerPage?(context: LiveStreamPlayerPageProps): void;
647
+ goToEditProfilePage?(): void;
646
648
  };
647
649
  AmityDraftClipPageBehavior?: {
648
650
  goToPostComposerPage?(context: {
@@ -675,37 +677,43 @@ interface PageBehavior {
675
677
  handleNonFollowerAction?(context: {
676
678
  alignment: NotificationAlignment;
677
679
  }): void;
680
+ onPostProductTagClick?(context: {
681
+ product: Amity.Product;
682
+ }): void;
683
+ onLivestreamProductTagClick?(context: {
684
+ product: Amity.Product;
685
+ }): void;
678
686
  };
679
- AmityEventTargetSelectionPageBehavior: {
687
+ AmityEventTargetSelectionPageBehavior?: {
680
688
  goToEventSetupPage?(context: EventSetupProps): void;
681
689
  };
682
- AmityMyCommunitiesComponentBehavior: {
690
+ AmityMyCommunitiesComponentBehavior?: {
683
691
  goToCommunitySetupPage?(context: {
684
692
  mode: AmityCommunitySetupPageMode;
685
693
  }): void;
686
694
  };
687
- AmityExploreEventFeedComponentBehavior: {
695
+ AmityExploreEventFeedComponentBehavior?: {
688
696
  goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
689
697
  };
690
- AmityMyEventFeedComponentBehavior: {
698
+ AmityMyEventFeedComponentBehavior?: {
691
699
  goToUpcomingEventsPage?(context: UpcomingEventsPageProps): void;
692
700
  goToPastEventsPage?(): void;
693
701
  };
694
- AmityEventDetailPageBehavior: {
695
- goToCommunityProfilePage(context: {
702
+ AmityEventDetailPageBehavior?: {
703
+ goToCommunityProfilePage?(context: {
696
704
  communityId: string;
697
705
  }): void;
698
- goToPostDetailPage(context: GoToPostDetailPageParams): void;
699
- goToEventSetupPage(context: EventSetupProps): void;
706
+ goToPostDetailPage?(context: GoToPostDetailPageParams): void;
707
+ goToEventSetupPage?(context: EventSetupProps): void;
700
708
  goToCreateLivestreamPage?(context: CreateLivestreamPageProps): void;
701
- goToPostComposerPage(context: {
709
+ goToPostComposerPage?(context: {
702
710
  mode: Mode.CREATE;
703
711
  targetName?: string;
704
712
  targetId: string | null;
705
713
  targetType: 'community' | 'user';
706
714
  community?: Amity.Community;
707
715
  }): void;
708
- goToPollPostComposerPage(context: {
716
+ goToPollPostComposerPage?(context: {
709
717
  targetId: string | null;
710
718
  targetType: 'community' | 'user';
711
719
  pollType?: 'text' | 'image';
@@ -717,19 +725,14 @@ interface PageBehavior {
717
725
  userId: string;
718
726
  }): void;
719
727
  };
720
- AmityEventSetupPageBehavior: {
721
- goToEventDetailPage: (context: EventDetailProps) => void;
728
+ AmityEventSetupPageBehavior?: {
729
+ goToEventDetailPage?(context: EventDetailProps): void;
722
730
  };
723
- AmityEventAttendeesPageBehavior: {
731
+ AmityEventAttendeesPageBehavior?: {
724
732
  goToUserProfilePage?(context: {
725
733
  userId: string;
726
734
  }): void;
727
735
  };
728
- AmityProducTagtListComponentBehavior: {
729
- onProductTagClick?(context: {
730
- productTag: Amity.ProductTag;
731
- }): void;
732
- };
733
736
  }
734
737
 
735
738
  type AmityUIKitConfig = Config;
@@ -1331,8 +1334,9 @@ type CommentTrayProps = {
1331
1334
  shouldAllowCreation?: boolean;
1332
1335
  shouldAllowInteraction?: boolean;
1333
1336
  referenceType: Amity.CommentReferenceType;
1337
+ commentCount?: number;
1334
1338
  };
1335
- declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1339
+ declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1336
1340
 
1337
1341
  type StoryTabProps = ({
1338
1342
  type: 'communityFeed';