@amityco/ui-kit-open-source 4.21.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",
@@ -195,6 +198,7 @@ type UpcomingEventsProps = {
195
198
  type EventDetailProps = {
196
199
  eventId: string;
197
200
  pop?: number;
201
+ showCreatedSuccessSheet?: boolean;
198
202
  };
199
203
 
200
204
  type EventInfoProps = {
@@ -373,6 +377,7 @@ interface AmityPostComposerCreateOptions {
373
377
  community?: Amity.Community;
374
378
  isClipPost?: boolean;
375
379
  targetName?: string;
380
+ event?: Amity.Event;
376
381
  }
377
382
  type PostComposerPageProps = AmityPostComposerCreateOptions | AmityPostComposerEditOptions;
378
383
  declare function PostComposerPage(props: PostComposerPageProps): react_jsx_runtime.JSX.Element;
@@ -730,6 +735,16 @@ interface PageBehavior {
730
735
  AmityEventTargetSelectionPageBehavior?: {
731
736
  goToEventSetupPage?(context: EventSetupProps): void;
732
737
  };
738
+ AmityEventPostTargetSelectionPageBehavior?: {
739
+ goToPostComposerPage?(context: {
740
+ mode: Mode.CREATE;
741
+ targetId: string | null;
742
+ targetType: 'community' | 'user';
743
+ community?: Amity.Community;
744
+ targetName?: string;
745
+ event: Amity.Event;
746
+ }): void;
747
+ };
733
748
  AmityMyCommunitiesComponentBehavior?: {
734
749
  goToCommunitySetupPage?(context: {
735
750
  mode: AmityCommunitySetupPageMode;
@@ -932,6 +947,8 @@ declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListP
932
947
 
933
948
  declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element;
934
949
 
950
+ declare function SearchChannelPage(): react_jsx_runtime.JSX.Element;
951
+
935
952
  type PageRendererProps = {
936
953
  children: React.JSX.Element;
937
954
  };
@@ -1359,14 +1376,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
1359
1376
 
1360
1377
  interface DetailedMediaAttachmentProps {
1361
1378
  pageId: string;
1379
+ sourceId?: string;
1362
1380
  isVisibleCamera: boolean;
1363
1381
  isVisibleImage: boolean;
1364
1382
  isVisibleVideo: boolean;
1365
1383
  totalMedia?: number;
1384
+ productTags?: Amity.ProductTag[];
1366
1385
  onVideoFileChange?: (files: File[]) => void;
1367
1386
  onImageFileChange?: (files: File[]) => void;
1368
1387
  }
1369
- 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;
1370
1389
 
1371
1390
  type UserSearchResultProps = {
1372
1391
  pageId?: string;
@@ -1395,8 +1414,10 @@ type TopSearchBarProps = {
1395
1414
  search: (keyword: string) => void;
1396
1415
  initialValue?: string;
1397
1416
  onCloseSearch?: () => void;
1417
+ inputTestId?: string;
1418
+ placeholderKey?: string;
1398
1419
  };
1399
- 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;
1400
1421
 
1401
1422
  type MyCommunitiesProps = {
1402
1423
  pageId?: string;
@@ -1530,6 +1551,7 @@ type FeedProps = {
1530
1551
  componentId?: string;
1531
1552
  posts: Array<Amity.Post>;
1532
1553
  newPosts?: Array<Amity.Post>;
1554
+ postRatioOverrides?: Record<string, FrameRatio>;
1533
1555
  globalFeaturedPosts?: Array<Amity.PinnedPost>;
1534
1556
  isLoading: boolean;
1535
1557
  isLoadingFirstPage: boolean;
@@ -1539,7 +1561,7 @@ type FeedProps = {
1539
1561
  onFeedReachBottom: () => void;
1540
1562
  onPostDeleted?: (post: Amity.Post) => void;
1541
1563
  };
1542
- 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;
1543
1565
  declare namespace Feed {
1544
1566
  var Post: typeof FeedPost;
1545
1567
  }
@@ -1550,8 +1572,9 @@ type FeedPostProps = {
1550
1572
  withAnalytics: boolean;
1551
1573
  onPostDeleted?: (post: Amity.Post) => void;
1552
1574
  onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
1575
+ mediaRatioOverride?: FrameRatio;
1553
1576
  };
1554
- 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;
1555
1578
 
1556
1579
  type ForYouFeedProps = {
1557
1580
  pageId: string;
@@ -1577,4 +1600,21 @@ type MyEventsProps = {
1577
1600
  };
1578
1601
  declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
1579
1602
 
1580
- 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, 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",
@@ -195,6 +198,7 @@ type UpcomingEventsProps = {
195
198
  type EventDetailProps = {
196
199
  eventId: string;
197
200
  pop?: number;
201
+ showCreatedSuccessSheet?: boolean;
198
202
  };
199
203
 
200
204
  type EventInfoProps = {
@@ -373,6 +377,7 @@ interface AmityPostComposerCreateOptions {
373
377
  community?: Amity.Community;
374
378
  isClipPost?: boolean;
375
379
  targetName?: string;
380
+ event?: Amity.Event;
376
381
  }
377
382
  type PostComposerPageProps = AmityPostComposerCreateOptions | AmityPostComposerEditOptions;
378
383
  declare function PostComposerPage(props: PostComposerPageProps): react_jsx_runtime.JSX.Element;
@@ -730,6 +735,16 @@ interface PageBehavior {
730
735
  AmityEventTargetSelectionPageBehavior?: {
731
736
  goToEventSetupPage?(context: EventSetupProps): void;
732
737
  };
738
+ AmityEventPostTargetSelectionPageBehavior?: {
739
+ goToPostComposerPage?(context: {
740
+ mode: Mode.CREATE;
741
+ targetId: string | null;
742
+ targetType: 'community' | 'user';
743
+ community?: Amity.Community;
744
+ targetName?: string;
745
+ event: Amity.Event;
746
+ }): void;
747
+ };
733
748
  AmityMyCommunitiesComponentBehavior?: {
734
749
  goToCommunitySetupPage?(context: {
735
750
  mode: AmityCommunitySetupPageMode;
@@ -932,6 +947,8 @@ declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListP
932
947
 
933
948
  declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element;
934
949
 
950
+ declare function SearchChannelPage(): react_jsx_runtime.JSX.Element;
951
+
935
952
  type PageRendererProps = {
936
953
  children: React.JSX.Element;
937
954
  };
@@ -1359,14 +1376,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
1359
1376
 
1360
1377
  interface DetailedMediaAttachmentProps {
1361
1378
  pageId: string;
1379
+ sourceId?: string;
1362
1380
  isVisibleCamera: boolean;
1363
1381
  isVisibleImage: boolean;
1364
1382
  isVisibleVideo: boolean;
1365
1383
  totalMedia?: number;
1384
+ productTags?: Amity.ProductTag[];
1366
1385
  onVideoFileChange?: (files: File[]) => void;
1367
1386
  onImageFileChange?: (files: File[]) => void;
1368
1387
  }
1369
- 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;
1370
1389
 
1371
1390
  type UserSearchResultProps = {
1372
1391
  pageId?: string;
@@ -1395,8 +1414,10 @@ type TopSearchBarProps = {
1395
1414
  search: (keyword: string) => void;
1396
1415
  initialValue?: string;
1397
1416
  onCloseSearch?: () => void;
1417
+ inputTestId?: string;
1418
+ placeholderKey?: string;
1398
1419
  };
1399
- 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;
1400
1421
 
1401
1422
  type MyCommunitiesProps = {
1402
1423
  pageId?: string;
@@ -1530,6 +1551,7 @@ type FeedProps = {
1530
1551
  componentId?: string;
1531
1552
  posts: Array<Amity.Post>;
1532
1553
  newPosts?: Array<Amity.Post>;
1554
+ postRatioOverrides?: Record<string, FrameRatio>;
1533
1555
  globalFeaturedPosts?: Array<Amity.PinnedPost>;
1534
1556
  isLoading: boolean;
1535
1557
  isLoadingFirstPage: boolean;
@@ -1539,7 +1561,7 @@ type FeedProps = {
1539
1561
  onFeedReachBottom: () => void;
1540
1562
  onPostDeleted?: (post: Amity.Post) => void;
1541
1563
  };
1542
- 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;
1543
1565
  declare namespace Feed {
1544
1566
  var Post: typeof FeedPost;
1545
1567
  }
@@ -1550,8 +1572,9 @@ type FeedPostProps = {
1550
1572
  withAnalytics: boolean;
1551
1573
  onPostDeleted?: (post: Amity.Post) => void;
1552
1574
  onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
1575
+ mediaRatioOverride?: FrameRatio;
1553
1576
  };
1554
- 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;
1555
1578
 
1556
1579
  type ForYouFeedProps = {
1557
1580
  pageId: string;
@@ -1577,4 +1600,21 @@ type MyEventsProps = {
1577
1600
  };
1578
1601
  declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
1579
1602
 
1580
- 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, 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 };