@amityco/ui-kit-open-source 4.22.0 → 4.23.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
@@ -124,6 +124,8 @@ interface Config {
124
124
  };
125
125
  }
126
126
 
127
+ type FrameRatio = '16:9' | '1:1' | '4:5';
128
+
127
129
  interface PostDetailPageProps {
128
130
  id: string;
129
131
  hideTarget?: boolean;
@@ -170,8 +172,9 @@ interface PostContentProps {
170
172
  isSearchPost?: boolean;
171
173
  expandAllContent?: boolean;
172
174
  eventCreatorId?: Amity.Event['userId'];
175
+ mediaRatioOverride?: FrameRatio;
173
176
  }
174
- declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, eventCreatorId, }: PostContentProps) => react_jsx_runtime.JSX.Element;
177
+ declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, eventCreatorId, mediaRatioOverride, }: PostContentProps) => react_jsx_runtime.JSX.Element;
175
178
 
176
179
  declare enum EventSetupMode {
177
180
  CREATE = "create",
@@ -1373,14 +1376,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
1373
1376
 
1374
1377
  interface DetailedMediaAttachmentProps {
1375
1378
  pageId: string;
1379
+ sourceId?: string;
1376
1380
  isVisibleCamera: boolean;
1377
1381
  isVisibleImage: boolean;
1378
1382
  isVisibleVideo: boolean;
1379
1383
  totalMedia?: number;
1384
+ productTags?: Amity.ProductTag[];
1380
1385
  onVideoFileChange?: (files: File[]) => void;
1381
1386
  onImageFileChange?: (files: File[]) => void;
1382
1387
  }
1383
- declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
1388
+ declare function DetailedMediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, productTags, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
1384
1389
 
1385
1390
  type UserSearchResultProps = {
1386
1391
  pageId?: string;
@@ -1409,8 +1414,10 @@ type TopSearchBarProps = {
1409
1414
  search: (keyword: string) => void;
1410
1415
  initialValue?: string;
1411
1416
  onCloseSearch?: () => void;
1417
+ inputTestId?: string;
1418
+ placeholderKey?: string;
1412
1419
  };
1413
- declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
1420
+ declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, inputTestId, placeholderKey, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
1414
1421
 
1415
1422
  type MyCommunitiesProps = {
1416
1423
  pageId?: string;
@@ -1544,6 +1551,7 @@ type FeedProps = {
1544
1551
  componentId?: string;
1545
1552
  posts: Array<Amity.Post>;
1546
1553
  newPosts?: Array<Amity.Post>;
1554
+ postRatioOverrides?: Record<string, FrameRatio>;
1547
1555
  globalFeaturedPosts?: Array<Amity.PinnedPost>;
1548
1556
  isLoading: boolean;
1549
1557
  isLoadingFirstPage: boolean;
@@ -1553,7 +1561,7 @@ type FeedProps = {
1553
1561
  onFeedReachBottom: () => void;
1554
1562
  onPostDeleted?: (post: Amity.Post) => void;
1555
1563
  };
1556
- declare function Feed({ pageId, componentId, posts, newPosts, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
1564
+ declare function Feed({ pageId, componentId, posts, newPosts, postRatioOverrides, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
1557
1565
  declare namespace Feed {
1558
1566
  var Post: typeof FeedPost;
1559
1567
  }
@@ -1564,8 +1572,9 @@ type FeedPostProps = {
1564
1572
  withAnalytics: boolean;
1565
1573
  onPostDeleted?: (post: Amity.Post) => void;
1566
1574
  onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
1575
+ mediaRatioOverride?: FrameRatio;
1567
1576
  };
1568
- declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, }: FeedPostProps): react_jsx_runtime.JSX.Element;
1577
+ declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, mediaRatioOverride, }: FeedPostProps): react_jsx_runtime.JSX.Element;
1569
1578
 
1570
1579
  type ForYouFeedProps = {
1571
1580
  pageId: string;
@@ -1591,4 +1600,21 @@ type MyEventsProps = {
1591
1600
  };
1592
1601
  declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
1593
1602
 
1594
- export { AddGroupMemberPage as AmityAddGroupMemberPage, AllCategoriesPage as AmityAllCategoriesPage, ArchivedChatPage as AmityArchivedChatPage, BannedGroupMemberListPage as AmityBannedGroupMemberListPage, BlockedUserPage as AmityBlockedUserPage, ChannelCreateConversationPage as AmityChannelCreateConversationPage, ChatHomePage as AmityChatHomePage, ChatPage as AmityChatPage, ClipFeedPage as AmityClipFeedPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityEventFeed as AmityCommunityEventFeedComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, CommunityMediaFeed as AmityCommunityMediaFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, CommunityPendingInvitationPage as AmityCommunityPendingInvitationPage, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityPostPermissionPage as AmityCommunityPostPermissionPage, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CommunitySettingPage as AmityCommunitySettingPage, CommunitySetupPage as AmityCommunitySetupPage, AmityCommunitySetupPageMode, CommunityStorySettingPage as AmityCommunityStorySettingPage, CommunityVideoFeed as AmityCommunityVideoFeedComponent, CreateGroupChatPage as AmityCreateGroupChatPage, CreateLivestreamPage as AmityCreateLivestreamPage, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditGroupMemberPermissionsPage as AmityEditGroupMemberPermissionsPage, EditGroupNotificationPage as AmityEditGroupNotificationPage, EditGroupProfilePage as AmityEditGroupProfilePage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, EventAttendeesPage as AmityEventAttendeesPage, EventDetailPage as AmityEventDetailPage, EventInfo as AmityEventInfoComponent, EventSetupPage as AmityEventSetupPage, EventSetupMode as AmityEventSetupPageMode, EventTargetSelectionPage as AmityEventTargetSelectionPage, Explore as AmityExploreComponent, ExploreEvent as AmityExploreEventFeedComponent, FeedCaughtUp as AmityFeedCaughtUpComponent, ForYouFeed as AmityForYouFeedComponent, Feed as AmityGlobalFeedComponent, GroupChatPage as AmityGroupChatPage, GroupMemberListPage as AmityGroupMemberListPage, GroupNotificationPreferencePage as AmityGroupNotificationPreferencePage, GroupSettingPage as AmityGroupSettingPage, InvitationBanner as AmityInvitationBannerComponent, InvitationSection as AmityInvitationSectionComponent, JoinRequestContent as AmityJoinRequestContentComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, LiveStreamBannedPage as AmityLiveStreamBannedPage, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LivestreamChatMessageComposer as AmityLivestreamChatMessageComposerComponent, LivestreamTargetSelectionPage as AmityLivestreamTargetSelectionPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, LivestreamUnsupportedPage as AmityLivestreamUnsupportedPage, ManageProductTagList as AmityManageProductTagListComponent, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, MyEvents as AmityMyEventFeedComponent, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, PastEventsPage as AmityPastEventsPage, PendingPostContent as AmityPendingPostContentComponent, PendingPostList as AmityPendingPostListComponent, PendingPostsPage as AmityPendingPostsPage, PendingRequestPage as AmityPendingRequestPage, PollPostComposerPage as AmityPollPostComposerPage, PollTargetSelectionPage as AmityPollTargetSelectionPage, PostComposerPage as AmityPostComposerPage, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, SelectPostTargetPage as AmityPostTargetSelectionPage, ProductTagList as AmityProductTagListComponent, ProductTagSelection as AmityProductTagSelectionComponent, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SearchChannelPage as AmitySearchChannelPage, SelectGroupMemberPage as AmitySelectGroupMemberPage, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, Application as AmityUiKitChatV4, AmityUIKitProvider as AmityUiKitProvider, Application$1 as AmityUiKitSocial, UpcomingEventsPage as AmityUpcomingEventsPage, UserFeed as AmityUserFeedComponent, UserImageFeed as AmityUserImageFeedComponent, UserPendingFollowRequestPage as AmityUserPendingFollowRequestPage, UserProfileHeader as AmityUserProfileHeaderComponent, UserProfilePage as AmityUserProfilePage, UserRelationshipPage as AmityUserRelationshipPage, UserRelationshipPageTabs as AmityUserRelationshipPageTabs, UserSearchResult as AmityUserSearchResultComponent, UserVideoFeed as AmityUserVideoFeedComponent, ViewStoryPage as AmityViewStoryPage };
1603
+ type LiveViewerCountProps = {
1604
+ /** Latest viewer count for the stream. */
1605
+ count?: number;
1606
+ /**
1607
+ * True when the current user is the host or a co-host of the stream.
1608
+ * These roles are exempt from mode-based hiding (REQ-002).
1609
+ */
1610
+ isHostOrCoHost?: boolean;
1611
+ /** Renders the LIVE dot before the count for viewer surfaces. */
1612
+ isWatcher?: boolean;
1613
+ /** Optional className passthrough to the pill. */
1614
+ className?: string;
1615
+ /** Fires whenever the count-visibility flips. Not fired on initial mount. */
1616
+ onVisibilityChanged?: (isCountVisible: boolean) => void;
1617
+ };
1618
+ declare function LiveViewerCount({ count, isHostOrCoHost, isWatcher, className, onVisibilityChanged, }: LiveViewerCountProps): react_jsx_runtime.JSX.Element | null;
1619
+
1620
+ export { AddGroupMemberPage as AmityAddGroupMemberPage, AllCategoriesPage as AmityAllCategoriesPage, ArchivedChatPage as AmityArchivedChatPage, BannedGroupMemberListPage as AmityBannedGroupMemberListPage, BlockedUserPage as AmityBlockedUserPage, ChannelCreateConversationPage as AmityChannelCreateConversationPage, ChatHomePage as AmityChatHomePage, ChatPage as AmityChatPage, ClipFeedPage as AmityClipFeedPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityEventFeed as AmityCommunityEventFeedComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, CommunityMediaFeed as AmityCommunityMediaFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, CommunityPendingInvitationPage as AmityCommunityPendingInvitationPage, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityPostPermissionPage as AmityCommunityPostPermissionPage, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CommunitySettingPage as AmityCommunitySettingPage, CommunitySetupPage as AmityCommunitySetupPage, AmityCommunitySetupPageMode, CommunityStorySettingPage as AmityCommunityStorySettingPage, CommunityVideoFeed as AmityCommunityVideoFeedComponent, CreateGroupChatPage as AmityCreateGroupChatPage, CreateLivestreamPage as AmityCreateLivestreamPage, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditGroupMemberPermissionsPage as AmityEditGroupMemberPermissionsPage, EditGroupNotificationPage as AmityEditGroupNotificationPage, EditGroupProfilePage as AmityEditGroupProfilePage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, EventAttendeesPage as AmityEventAttendeesPage, EventDetailPage as AmityEventDetailPage, EventInfo as AmityEventInfoComponent, EventSetupPage as AmityEventSetupPage, EventSetupMode as AmityEventSetupPageMode, EventTargetSelectionPage as AmityEventTargetSelectionPage, Explore as AmityExploreComponent, ExploreEvent as AmityExploreEventFeedComponent, FeedCaughtUp as AmityFeedCaughtUpComponent, ForYouFeed as AmityForYouFeedComponent, Feed as AmityGlobalFeedComponent, GroupChatPage as AmityGroupChatPage, GroupMemberListPage as AmityGroupMemberListPage, GroupNotificationPreferencePage as AmityGroupNotificationPreferencePage, GroupSettingPage as AmityGroupSettingPage, InvitationBanner as AmityInvitationBannerComponent, InvitationSection as AmityInvitationSectionComponent, JoinRequestContent as AmityJoinRequestContentComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, LiveStreamBannedPage as AmityLiveStreamBannedPage, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LiveViewerCount as AmityLiveViewerCountElement, LivestreamChatMessageComposer as AmityLivestreamChatMessageComposerComponent, LivestreamTargetSelectionPage as AmityLivestreamTargetSelectionPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, LivestreamUnsupportedPage as AmityLivestreamUnsupportedPage, ManageProductTagList as AmityManageProductTagListComponent, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, MyEvents as AmityMyEventFeedComponent, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, PastEventsPage as AmityPastEventsPage, PendingPostContent as AmityPendingPostContentComponent, PendingPostList as AmityPendingPostListComponent, PendingPostsPage as AmityPendingPostsPage, PendingRequestPage as AmityPendingRequestPage, PollPostComposerPage as AmityPollPostComposerPage, PollTargetSelectionPage as AmityPollTargetSelectionPage, PostComposerPage as AmityPostComposerPage, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, SelectPostTargetPage as AmityPostTargetSelectionPage, ProductTagList as AmityProductTagListComponent, ProductTagSelection as AmityProductTagSelectionComponent, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SearchChannelPage as AmitySearchChannelPage, SelectGroupMemberPage as AmitySelectGroupMemberPage, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, Application as AmityUiKitChatV4, AmityUIKitProvider as AmityUiKitProvider, Application$1 as AmityUiKitSocial, UpcomingEventsPage as AmityUpcomingEventsPage, UserFeed as AmityUserFeedComponent, UserImageFeed as AmityUserImageFeedComponent, UserPendingFollowRequestPage as AmityUserPendingFollowRequestPage, UserProfileHeader as AmityUserProfileHeaderComponent, UserProfilePage as AmityUserProfilePage, UserRelationshipPage as AmityUserRelationshipPage, UserRelationshipPageTabs as AmityUserRelationshipPageTabs, UserSearchResult as AmityUserSearchResultComponent, UserVideoFeed as AmityUserVideoFeedComponent, ViewStoryPage as AmityViewStoryPage };
package/dist/index.d.ts CHANGED
@@ -124,6 +124,8 @@ interface Config {
124
124
  };
125
125
  }
126
126
 
127
+ type FrameRatio = '16:9' | '1:1' | '4:5';
128
+
127
129
  interface PostDetailPageProps {
128
130
  id: string;
129
131
  hideTarget?: boolean;
@@ -170,8 +172,9 @@ interface PostContentProps {
170
172
  isSearchPost?: boolean;
171
173
  expandAllContent?: boolean;
172
174
  eventCreatorId?: Amity.Event['userId'];
175
+ mediaRatioOverride?: FrameRatio;
173
176
  }
174
- declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, eventCreatorId, }: PostContentProps) => react_jsx_runtime.JSX.Element;
177
+ declare const PostContent: ({ pageId, post, onClick, onPostDeleted, onPollPostDeleted, category, hideMenu, hideTarget, style, disabledContent, isGlobalFeaturePost, className, keyword, isSearchPost, expandAllContent, eventCreatorId, mediaRatioOverride, }: PostContentProps) => react_jsx_runtime.JSX.Element;
175
178
 
176
179
  declare enum EventSetupMode {
177
180
  CREATE = "create",
@@ -1373,14 +1376,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
1373
1376
 
1374
1377
  interface DetailedMediaAttachmentProps {
1375
1378
  pageId: string;
1379
+ sourceId?: string;
1376
1380
  isVisibleCamera: boolean;
1377
1381
  isVisibleImage: boolean;
1378
1382
  isVisibleVideo: boolean;
1379
1383
  totalMedia?: number;
1384
+ productTags?: Amity.ProductTag[];
1380
1385
  onVideoFileChange?: (files: File[]) => void;
1381
1386
  onImageFileChange?: (files: File[]) => void;
1382
1387
  }
1383
- declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
1388
+ declare function DetailedMediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, productTags, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
1384
1389
 
1385
1390
  type UserSearchResultProps = {
1386
1391
  pageId?: string;
@@ -1409,8 +1414,10 @@ type TopSearchBarProps = {
1409
1414
  search: (keyword: string) => void;
1410
1415
  initialValue?: string;
1411
1416
  onCloseSearch?: () => void;
1417
+ inputTestId?: string;
1418
+ placeholderKey?: string;
1412
1419
  };
1413
- declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
1420
+ declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, inputTestId, placeholderKey, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
1414
1421
 
1415
1422
  type MyCommunitiesProps = {
1416
1423
  pageId?: string;
@@ -1544,6 +1551,7 @@ type FeedProps = {
1544
1551
  componentId?: string;
1545
1552
  posts: Array<Amity.Post>;
1546
1553
  newPosts?: Array<Amity.Post>;
1554
+ postRatioOverrides?: Record<string, FrameRatio>;
1547
1555
  globalFeaturedPosts?: Array<Amity.PinnedPost>;
1548
1556
  isLoading: boolean;
1549
1557
  isLoadingFirstPage: boolean;
@@ -1553,7 +1561,7 @@ type FeedProps = {
1553
1561
  onFeedReachBottom: () => void;
1554
1562
  onPostDeleted?: (post: Amity.Post) => void;
1555
1563
  };
1556
- declare function Feed({ pageId, componentId, posts, newPosts, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
1564
+ declare function Feed({ pageId, componentId, posts, newPosts, postRatioOverrides, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
1557
1565
  declare namespace Feed {
1558
1566
  var Post: typeof FeedPost;
1559
1567
  }
@@ -1564,8 +1572,9 @@ type FeedPostProps = {
1564
1572
  withAnalytics: boolean;
1565
1573
  onPostDeleted?: (post: Amity.Post) => void;
1566
1574
  onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
1575
+ mediaRatioOverride?: FrameRatio;
1567
1576
  };
1568
- declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, }: FeedPostProps): react_jsx_runtime.JSX.Element;
1577
+ declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, mediaRatioOverride, }: FeedPostProps): react_jsx_runtime.JSX.Element;
1569
1578
 
1570
1579
  type ForYouFeedProps = {
1571
1580
  pageId: string;
@@ -1591,4 +1600,21 @@ type MyEventsProps = {
1591
1600
  };
1592
1601
  declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
1593
1602
 
1594
- export { AddGroupMemberPage as AmityAddGroupMemberPage, AllCategoriesPage as AmityAllCategoriesPage, ArchivedChatPage as AmityArchivedChatPage, BannedGroupMemberListPage as AmityBannedGroupMemberListPage, BlockedUserPage as AmityBlockedUserPage, ChannelCreateConversationPage as AmityChannelCreateConversationPage, ChatHomePage as AmityChatHomePage, ChatPage as AmityChatPage, ClipFeedPage as AmityClipFeedPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityEventFeed as AmityCommunityEventFeedComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, CommunityMediaFeed as AmityCommunityMediaFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, CommunityPendingInvitationPage as AmityCommunityPendingInvitationPage, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityPostPermissionPage as AmityCommunityPostPermissionPage, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CommunitySettingPage as AmityCommunitySettingPage, CommunitySetupPage as AmityCommunitySetupPage, AmityCommunitySetupPageMode, CommunityStorySettingPage as AmityCommunityStorySettingPage, CommunityVideoFeed as AmityCommunityVideoFeedComponent, CreateGroupChatPage as AmityCreateGroupChatPage, CreateLivestreamPage as AmityCreateLivestreamPage, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditGroupMemberPermissionsPage as AmityEditGroupMemberPermissionsPage, EditGroupNotificationPage as AmityEditGroupNotificationPage, EditGroupProfilePage as AmityEditGroupProfilePage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, EventAttendeesPage as AmityEventAttendeesPage, EventDetailPage as AmityEventDetailPage, EventInfo as AmityEventInfoComponent, EventSetupPage as AmityEventSetupPage, EventSetupMode as AmityEventSetupPageMode, EventTargetSelectionPage as AmityEventTargetSelectionPage, Explore as AmityExploreComponent, ExploreEvent as AmityExploreEventFeedComponent, FeedCaughtUp as AmityFeedCaughtUpComponent, ForYouFeed as AmityForYouFeedComponent, Feed as AmityGlobalFeedComponent, GroupChatPage as AmityGroupChatPage, GroupMemberListPage as AmityGroupMemberListPage, GroupNotificationPreferencePage as AmityGroupNotificationPreferencePage, GroupSettingPage as AmityGroupSettingPage, InvitationBanner as AmityInvitationBannerComponent, InvitationSection as AmityInvitationSectionComponent, JoinRequestContent as AmityJoinRequestContentComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, LiveStreamBannedPage as AmityLiveStreamBannedPage, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LivestreamChatMessageComposer as AmityLivestreamChatMessageComposerComponent, LivestreamTargetSelectionPage as AmityLivestreamTargetSelectionPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, LivestreamUnsupportedPage as AmityLivestreamUnsupportedPage, ManageProductTagList as AmityManageProductTagListComponent, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, MyEvents as AmityMyEventFeedComponent, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, PastEventsPage as AmityPastEventsPage, PendingPostContent as AmityPendingPostContentComponent, PendingPostList as AmityPendingPostListComponent, PendingPostsPage as AmityPendingPostsPage, PendingRequestPage as AmityPendingRequestPage, PollPostComposerPage as AmityPollPostComposerPage, PollTargetSelectionPage as AmityPollTargetSelectionPage, PostComposerPage as AmityPostComposerPage, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, SelectPostTargetPage as AmityPostTargetSelectionPage, ProductTagList as AmityProductTagListComponent, ProductTagSelection as AmityProductTagSelectionComponent, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SearchChannelPage as AmitySearchChannelPage, SelectGroupMemberPage as AmitySelectGroupMemberPage, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, Application as AmityUiKitChatV4, AmityUIKitProvider as AmityUiKitProvider, Application$1 as AmityUiKitSocial, UpcomingEventsPage as AmityUpcomingEventsPage, UserFeed as AmityUserFeedComponent, UserImageFeed as AmityUserImageFeedComponent, UserPendingFollowRequestPage as AmityUserPendingFollowRequestPage, UserProfileHeader as AmityUserProfileHeaderComponent, UserProfilePage as AmityUserProfilePage, UserRelationshipPage as AmityUserRelationshipPage, UserRelationshipPageTabs as AmityUserRelationshipPageTabs, UserSearchResult as AmityUserSearchResultComponent, UserVideoFeed as AmityUserVideoFeedComponent, ViewStoryPage as AmityViewStoryPage };
1603
+ type LiveViewerCountProps = {
1604
+ /** Latest viewer count for the stream. */
1605
+ count?: number;
1606
+ /**
1607
+ * True when the current user is the host or a co-host of the stream.
1608
+ * These roles are exempt from mode-based hiding (REQ-002).
1609
+ */
1610
+ isHostOrCoHost?: boolean;
1611
+ /** Renders the LIVE dot before the count for viewer surfaces. */
1612
+ isWatcher?: boolean;
1613
+ /** Optional className passthrough to the pill. */
1614
+ className?: string;
1615
+ /** Fires whenever the count-visibility flips. Not fired on initial mount. */
1616
+ onVisibilityChanged?: (isCountVisible: boolean) => void;
1617
+ };
1618
+ declare function LiveViewerCount({ count, isHostOrCoHost, isWatcher, className, onVisibilityChanged, }: LiveViewerCountProps): react_jsx_runtime.JSX.Element | null;
1619
+
1620
+ export { AddGroupMemberPage as AmityAddGroupMemberPage, AllCategoriesPage as AmityAllCategoriesPage, ArchivedChatPage as AmityArchivedChatPage, BannedGroupMemberListPage as AmityBannedGroupMemberListPage, BlockedUserPage as AmityBlockedUserPage, ChannelCreateConversationPage as AmityChannelCreateConversationPage, ChatHomePage as AmityChatHomePage, ChatPage as AmityChatPage, ClipFeedPage as AmityClipFeedPage, CommentTray as AmityCommentTrayComponent, CommunitiesByCategoryPage as AmityCommunitiesByCategoryPage, CommunityAddCategoryPage as AmityCommunityAddCategoryPage, CommunityAddMemberPage as AmityCommunityAddMemberPage, CommunityEventFeed as AmityCommunityEventFeedComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityImageFeed as AmityCommunityImageFeedComponent, CommunityInviteMemberPage as AmityCommunityInviteMemberPage, CommunityMediaFeed as AmityCommunityMediaFeedComponent, CommunityMembershipPage as AmityCommunityMembershipPage, CommunityPendingInvitationPage as AmityCommunityPendingInvitationPage, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityPostPermissionPage as AmityCommunityPostPermissionPage, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CommunitySettingPage as AmityCommunitySettingPage, CommunitySetupPage as AmityCommunitySetupPage, AmityCommunitySetupPageMode, CommunityStorySettingPage as AmityCommunityStorySettingPage, CommunityVideoFeed as AmityCommunityVideoFeedComponent, CreateGroupChatPage as AmityCreateGroupChatPage, CreateLivestreamPage as AmityCreateLivestreamPage, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, DraftClipPage as AmityDraftClipPage, AmityDraftStoryPage, EditGroupMemberPermissionsPage as AmityEditGroupMemberPermissionsPage, EditGroupNotificationPage as AmityEditGroupNotificationPage, EditGroupProfilePage as AmityEditGroupProfilePage, EditUserProfilePage as AmityEditUserProfilePage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, EventAttendeesPage as AmityEventAttendeesPage, EventDetailPage as AmityEventDetailPage, EventInfo as AmityEventInfoComponent, EventSetupPage as AmityEventSetupPage, EventSetupMode as AmityEventSetupPageMode, EventTargetSelectionPage as AmityEventTargetSelectionPage, Explore as AmityExploreComponent, ExploreEvent as AmityExploreEventFeedComponent, FeedCaughtUp as AmityFeedCaughtUpComponent, ForYouFeed as AmityForYouFeedComponent, Feed as AmityGlobalFeedComponent, GroupChatPage as AmityGroupChatPage, GroupMemberListPage as AmityGroupMemberListPage, GroupNotificationPreferencePage as AmityGroupNotificationPreferencePage, GroupSettingPage as AmityGroupSettingPage, InvitationBanner as AmityInvitationBannerComponent, InvitationSection as AmityInvitationSectionComponent, JoinRequestContent as AmityJoinRequestContentComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, LiveStreamBannedPage as AmityLiveStreamBannedPage, LiveStreamPlayerPage as AmityLiveStreamPlayerPage, LiveViewerCount as AmityLiveViewerCountElement, LivestreamChatMessageComposer as AmityLivestreamChatMessageComposerComponent, LivestreamTargetSelectionPage as AmityLivestreamTargetSelectionPage, LivestreamTerminatedPage as AmityLivestreamTerminatedPage, LivestreamUnsupportedPage as AmityLivestreamUnsupportedPage, ManageProductTagList as AmityManageProductTagListComponent, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, MyEvents as AmityMyEventFeedComponent, Newsfeed as AmityNewsFeedComponent, PageRenderer as AmityPageRenderer, PastEventsPage as AmityPastEventsPage, PendingPostContent as AmityPendingPostContentComponent, PendingPostList as AmityPendingPostListComponent, PendingPostsPage as AmityPendingPostsPage, PendingRequestPage as AmityPendingRequestPage, PollPostComposerPage as AmityPollPostComposerPage, PollTargetSelectionPage as AmityPollTargetSelectionPage, PostComposerPage as AmityPostComposerPage, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, SelectPostTargetPage as AmityPostTargetSelectionPage, ProductTagList as AmityProductTagListComponent, ProductTagSelection as AmityProductTagSelectionComponent, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, SearchChannelPage as AmitySearchChannelPage, SelectGroupMemberPage as AmitySelectGroupMemberPage, SocialGlobalSearchPage as AmitySocialGlobalSearchPage, SocialHomePage as AmitySocialHomePage, HomePageTab as AmitySocialHomePageTab, TopNavigation as AmitySocialHomeTopNavigationComponent, StoryPreview as AmityStoryPreview, StoryPreviewThumbnail as AmityStoryPreviewThumbnail, StoryTab as AmityStoryTabComponent, StoryTargetSelectionPage as AmityStoryTargetSelectionPage, TopSearchBar as AmityTopSearchBarComponent, AmityUIKitManager, Application as AmityUiKitChatV4, AmityUIKitProvider as AmityUiKitProvider, Application$1 as AmityUiKitSocial, UpcomingEventsPage as AmityUpcomingEventsPage, UserFeed as AmityUserFeedComponent, UserImageFeed as AmityUserImageFeedComponent, UserPendingFollowRequestPage as AmityUserPendingFollowRequestPage, UserProfileHeader as AmityUserProfileHeaderComponent, UserProfilePage as AmityUserProfilePage, UserRelationshipPage as AmityUserRelationshipPage, UserRelationshipPageTabs as AmityUserRelationshipPageTabs, UserSearchResult as AmityUserSearchResultComponent, UserVideoFeed as AmityUserVideoFeedComponent, ViewStoryPage as AmityViewStoryPage };