@amityco/ui-kit-open-source 4.22.0 → 4.24.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/esm/index.css +1 -1
- package/dist/esm/index.js +46 -46
- package/dist/index.css +1 -1
- package/dist/index.d.mts +68 -8
- package/dist/index.d.ts +68 -8
- package/dist/index.js +184 -182
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +7 -3
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",
|
|
@@ -395,6 +398,12 @@ declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
|
395
398
|
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
396
399
|
|
|
397
400
|
interface PageBehavior {
|
|
401
|
+
AmityDiscoveryWidgetComponentBehavior?: {
|
|
402
|
+
goToDestination?: (context: {
|
|
403
|
+
topicId: string;
|
|
404
|
+
post: Amity.Post;
|
|
405
|
+
}) => void;
|
|
406
|
+
};
|
|
398
407
|
AmityStoryViewPageBehavior?: {
|
|
399
408
|
onCloseAction?(): void;
|
|
400
409
|
hyperLinkAction?(context: Record<string, unknown>): void;
|
|
@@ -788,6 +797,21 @@ interface PageBehavior {
|
|
|
788
797
|
userId: string;
|
|
789
798
|
}): void;
|
|
790
799
|
};
|
|
800
|
+
AmityChatPageBehavior?: {
|
|
801
|
+
onAvatarTap?(context: {
|
|
802
|
+
userId: string;
|
|
803
|
+
avatarUrl?: string;
|
|
804
|
+
}): void;
|
|
805
|
+
};
|
|
806
|
+
AmityMessageBubbleBehavior?: {
|
|
807
|
+
onAvatarTap?(context: {
|
|
808
|
+
userId: string;
|
|
809
|
+
avatarUrl?: string;
|
|
810
|
+
}): void;
|
|
811
|
+
onMentionUserTap?(context: {
|
|
812
|
+
userId: string;
|
|
813
|
+
}): void;
|
|
814
|
+
};
|
|
791
815
|
}
|
|
792
816
|
|
|
793
817
|
type AmityUIKitConfig = Config;
|
|
@@ -973,8 +997,8 @@ interface RegisterDeviceParams {
|
|
|
973
997
|
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
974
998
|
onConnected?: () => void;
|
|
975
999
|
onDisconnected?: () => void;
|
|
976
|
-
onGlobalBanned?: (
|
|
977
|
-
onUserDeleted?: (
|
|
1000
|
+
onGlobalBanned?: () => void;
|
|
1001
|
+
onUserDeleted?: () => void;
|
|
978
1002
|
onVisitorUsageLimitReached?: () => void;
|
|
979
1003
|
}
|
|
980
1004
|
/**
|
|
@@ -1373,14 +1397,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
|
|
|
1373
1397
|
|
|
1374
1398
|
interface DetailedMediaAttachmentProps {
|
|
1375
1399
|
pageId: string;
|
|
1400
|
+
sourceId?: string;
|
|
1376
1401
|
isVisibleCamera: boolean;
|
|
1377
1402
|
isVisibleImage: boolean;
|
|
1378
1403
|
isVisibleVideo: boolean;
|
|
1379
1404
|
totalMedia?: number;
|
|
1405
|
+
productTags?: Amity.ProductTag[];
|
|
1380
1406
|
onVideoFileChange?: (files: File[]) => void;
|
|
1381
1407
|
onImageFileChange?: (files: File[]) => void;
|
|
1382
1408
|
}
|
|
1383
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
1409
|
+
declare function DetailedMediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, productTags, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
1384
1410
|
|
|
1385
1411
|
type UserSearchResultProps = {
|
|
1386
1412
|
pageId?: string;
|
|
@@ -1409,8 +1435,10 @@ type TopSearchBarProps = {
|
|
|
1409
1435
|
search: (keyword: string) => void;
|
|
1410
1436
|
initialValue?: string;
|
|
1411
1437
|
onCloseSearch?: () => void;
|
|
1438
|
+
inputTestId?: string;
|
|
1439
|
+
placeholderKey?: string;
|
|
1412
1440
|
};
|
|
1413
|
-
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
|
|
1441
|
+
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, inputTestId, placeholderKey, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
|
|
1414
1442
|
|
|
1415
1443
|
type MyCommunitiesProps = {
|
|
1416
1444
|
pageId?: string;
|
|
@@ -1544,6 +1572,7 @@ type FeedProps = {
|
|
|
1544
1572
|
componentId?: string;
|
|
1545
1573
|
posts: Array<Amity.Post>;
|
|
1546
1574
|
newPosts?: Array<Amity.Post>;
|
|
1575
|
+
postRatioOverrides?: Record<string, FrameRatio>;
|
|
1547
1576
|
globalFeaturedPosts?: Array<Amity.PinnedPost>;
|
|
1548
1577
|
isLoading: boolean;
|
|
1549
1578
|
isLoadingFirstPage: boolean;
|
|
@@ -1553,7 +1582,7 @@ type FeedProps = {
|
|
|
1553
1582
|
onFeedReachBottom: () => void;
|
|
1554
1583
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
1555
1584
|
};
|
|
1556
|
-
declare function Feed({ pageId, componentId, posts, newPosts, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
|
|
1585
|
+
declare function Feed({ pageId, componentId, posts, newPosts, postRatioOverrides, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
|
|
1557
1586
|
declare namespace Feed {
|
|
1558
1587
|
var Post: typeof FeedPost;
|
|
1559
1588
|
}
|
|
@@ -1564,8 +1593,9 @@ type FeedPostProps = {
|
|
|
1564
1593
|
withAnalytics: boolean;
|
|
1565
1594
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
1566
1595
|
onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
|
|
1596
|
+
mediaRatioOverride?: FrameRatio;
|
|
1567
1597
|
};
|
|
1568
|
-
declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, }: FeedPostProps): react_jsx_runtime.JSX.Element;
|
|
1598
|
+
declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, mediaRatioOverride, }: FeedPostProps): react_jsx_runtime.JSX.Element;
|
|
1569
1599
|
|
|
1570
1600
|
type ForYouFeedProps = {
|
|
1571
1601
|
pageId: string;
|
|
@@ -1581,6 +1611,19 @@ type FeedCaughtUpProps = {
|
|
|
1581
1611
|
};
|
|
1582
1612
|
declare function FeedCaughtUp({ pageId, componentId, title, ctaLabel, onSwitchRequested, }: FeedCaughtUpProps): react_jsx_runtime.JSX.Element | null;
|
|
1583
1613
|
|
|
1614
|
+
type DiscoveryWidgetProps = {
|
|
1615
|
+
pageId?: string;
|
|
1616
|
+
topicId: string;
|
|
1617
|
+
showHeader?: boolean;
|
|
1618
|
+
minVisibilityThreshold?: number;
|
|
1619
|
+
onCardClick?: (topicId: string, post: Amity.Post) => void;
|
|
1620
|
+
};
|
|
1621
|
+
declare function DiscoveryWidget({ pageId, topicId, showHeader, minVisibilityThreshold, onCardClick, }: DiscoveryWidgetProps): react_jsx_runtime.JSX.Element | null;
|
|
1622
|
+
declare namespace DiscoveryWidget {
|
|
1623
|
+
var Skeleton: typeof DiscoveryWidgetSkeleton;
|
|
1624
|
+
}
|
|
1625
|
+
declare function DiscoveryWidgetSkeleton(): react_jsx_runtime.JSX.Element;
|
|
1626
|
+
|
|
1584
1627
|
type ExploreEventProps = {
|
|
1585
1628
|
pageId?: string;
|
|
1586
1629
|
};
|
|
@@ -1591,4 +1634,21 @@ type MyEventsProps = {
|
|
|
1591
1634
|
};
|
|
1592
1635
|
declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
|
|
1593
1636
|
|
|
1594
|
-
|
|
1637
|
+
type LiveViewerCountProps = {
|
|
1638
|
+
/** Latest viewer count for the stream. */
|
|
1639
|
+
count?: number;
|
|
1640
|
+
/**
|
|
1641
|
+
* True when the current user is the host or a co-host of the stream.
|
|
1642
|
+
* These roles are exempt from mode-based hiding (REQ-002).
|
|
1643
|
+
*/
|
|
1644
|
+
isHostOrCoHost?: boolean;
|
|
1645
|
+
/** Renders the LIVE dot before the count for viewer surfaces. */
|
|
1646
|
+
isWatcher?: boolean;
|
|
1647
|
+
/** Optional className passthrough to the pill. */
|
|
1648
|
+
className?: string;
|
|
1649
|
+
/** Fires whenever the count-visibility flips. Not fired on initial mount. */
|
|
1650
|
+
onVisibilityChanged?: (isCountVisible: boolean) => void;
|
|
1651
|
+
};
|
|
1652
|
+
declare function LiveViewerCount({ count, isHostOrCoHost, isWatcher, className, onVisibilityChanged, }: LiveViewerCountProps): react_jsx_runtime.JSX.Element | null;
|
|
1653
|
+
|
|
1654
|
+
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, DiscoveryWidget as AmityDiscoveryWidgetComponent, 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",
|
|
@@ -395,6 +398,12 @@ declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
|
|
|
395
398
|
type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
|
|
396
399
|
|
|
397
400
|
interface PageBehavior {
|
|
401
|
+
AmityDiscoveryWidgetComponentBehavior?: {
|
|
402
|
+
goToDestination?: (context: {
|
|
403
|
+
topicId: string;
|
|
404
|
+
post: Amity.Post;
|
|
405
|
+
}) => void;
|
|
406
|
+
};
|
|
398
407
|
AmityStoryViewPageBehavior?: {
|
|
399
408
|
onCloseAction?(): void;
|
|
400
409
|
hyperLinkAction?(context: Record<string, unknown>): void;
|
|
@@ -788,6 +797,21 @@ interface PageBehavior {
|
|
|
788
797
|
userId: string;
|
|
789
798
|
}): void;
|
|
790
799
|
};
|
|
800
|
+
AmityChatPageBehavior?: {
|
|
801
|
+
onAvatarTap?(context: {
|
|
802
|
+
userId: string;
|
|
803
|
+
avatarUrl?: string;
|
|
804
|
+
}): void;
|
|
805
|
+
};
|
|
806
|
+
AmityMessageBubbleBehavior?: {
|
|
807
|
+
onAvatarTap?(context: {
|
|
808
|
+
userId: string;
|
|
809
|
+
avatarUrl?: string;
|
|
810
|
+
}): void;
|
|
811
|
+
onMentionUserTap?(context: {
|
|
812
|
+
userId: string;
|
|
813
|
+
}): void;
|
|
814
|
+
};
|
|
791
815
|
}
|
|
792
816
|
|
|
793
817
|
type AmityUIKitConfig = Config;
|
|
@@ -973,8 +997,8 @@ interface RegisterDeviceParams {
|
|
|
973
997
|
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
974
998
|
onConnected?: () => void;
|
|
975
999
|
onDisconnected?: () => void;
|
|
976
|
-
onGlobalBanned?: (
|
|
977
|
-
onUserDeleted?: (
|
|
1000
|
+
onGlobalBanned?: () => void;
|
|
1001
|
+
onUserDeleted?: () => void;
|
|
978
1002
|
onVisitorUsageLimitReached?: () => void;
|
|
979
1003
|
}
|
|
980
1004
|
/**
|
|
@@ -1373,14 +1397,16 @@ declare function MediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleI
|
|
|
1373
1397
|
|
|
1374
1398
|
interface DetailedMediaAttachmentProps {
|
|
1375
1399
|
pageId: string;
|
|
1400
|
+
sourceId?: string;
|
|
1376
1401
|
isVisibleCamera: boolean;
|
|
1377
1402
|
isVisibleImage: boolean;
|
|
1378
1403
|
isVisibleVideo: boolean;
|
|
1379
1404
|
totalMedia?: number;
|
|
1405
|
+
productTags?: Amity.ProductTag[];
|
|
1380
1406
|
onVideoFileChange?: (files: File[]) => void;
|
|
1381
1407
|
onImageFileChange?: (files: File[]) => void;
|
|
1382
1408
|
}
|
|
1383
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
1409
|
+
declare function DetailedMediaAttachment({ pageId, sourceId, isVisibleCamera, isVisibleImage, isVisibleVideo, totalMedia, productTags, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): react_jsx_runtime.JSX.Element | null;
|
|
1384
1410
|
|
|
1385
1411
|
type UserSearchResultProps = {
|
|
1386
1412
|
pageId?: string;
|
|
@@ -1409,8 +1435,10 @@ type TopSearchBarProps = {
|
|
|
1409
1435
|
search: (keyword: string) => void;
|
|
1410
1436
|
initialValue?: string;
|
|
1411
1437
|
onCloseSearch?: () => void;
|
|
1438
|
+
inputTestId?: string;
|
|
1439
|
+
placeholderKey?: string;
|
|
1412
1440
|
};
|
|
1413
|
-
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
|
|
1441
|
+
declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initialValue, onCloseSearch, inputTestId, placeholderKey, }: TopSearchBarProps): react_jsx_runtime.JSX.Element | null;
|
|
1414
1442
|
|
|
1415
1443
|
type MyCommunitiesProps = {
|
|
1416
1444
|
pageId?: string;
|
|
@@ -1544,6 +1572,7 @@ type FeedProps = {
|
|
|
1544
1572
|
componentId?: string;
|
|
1545
1573
|
posts: Array<Amity.Post>;
|
|
1546
1574
|
newPosts?: Array<Amity.Post>;
|
|
1575
|
+
postRatioOverrides?: Record<string, FrameRatio>;
|
|
1547
1576
|
globalFeaturedPosts?: Array<Amity.PinnedPost>;
|
|
1548
1577
|
isLoading: boolean;
|
|
1549
1578
|
isLoadingFirstPage: boolean;
|
|
@@ -1553,7 +1582,7 @@ type FeedProps = {
|
|
|
1553
1582
|
onFeedReachBottom: () => void;
|
|
1554
1583
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
1555
1584
|
};
|
|
1556
|
-
declare function Feed({ pageId, componentId, posts, newPosts, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
|
|
1585
|
+
declare function Feed({ pageId, componentId, posts, newPosts, postRatioOverrides, globalFeaturedPosts, isLoading, isLoadingFirstPage, hasMore, withAnalytics, onFeedReachBottom, onPostDeleted, }: FeedProps): react_jsx_runtime.JSX.Element;
|
|
1557
1586
|
declare namespace Feed {
|
|
1558
1587
|
var Post: typeof FeedPost;
|
|
1559
1588
|
}
|
|
@@ -1564,8 +1593,9 @@ type FeedPostProps = {
|
|
|
1564
1593
|
withAnalytics: boolean;
|
|
1565
1594
|
onPostDeleted?: (post: Amity.Post) => void;
|
|
1566
1595
|
onClick: NonNullable<React.ComponentProps<typeof PostContent>['onClick']>;
|
|
1596
|
+
mediaRatioOverride?: FrameRatio;
|
|
1567
1597
|
};
|
|
1568
|
-
declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, }: FeedPostProps): react_jsx_runtime.JSX.Element;
|
|
1598
|
+
declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDeleted, onClick, mediaRatioOverride, }: FeedPostProps): react_jsx_runtime.JSX.Element;
|
|
1569
1599
|
|
|
1570
1600
|
type ForYouFeedProps = {
|
|
1571
1601
|
pageId: string;
|
|
@@ -1581,6 +1611,19 @@ type FeedCaughtUpProps = {
|
|
|
1581
1611
|
};
|
|
1582
1612
|
declare function FeedCaughtUp({ pageId, componentId, title, ctaLabel, onSwitchRequested, }: FeedCaughtUpProps): react_jsx_runtime.JSX.Element | null;
|
|
1583
1613
|
|
|
1614
|
+
type DiscoveryWidgetProps = {
|
|
1615
|
+
pageId?: string;
|
|
1616
|
+
topicId: string;
|
|
1617
|
+
showHeader?: boolean;
|
|
1618
|
+
minVisibilityThreshold?: number;
|
|
1619
|
+
onCardClick?: (topicId: string, post: Amity.Post) => void;
|
|
1620
|
+
};
|
|
1621
|
+
declare function DiscoveryWidget({ pageId, topicId, showHeader, minVisibilityThreshold, onCardClick, }: DiscoveryWidgetProps): react_jsx_runtime.JSX.Element | null;
|
|
1622
|
+
declare namespace DiscoveryWidget {
|
|
1623
|
+
var Skeleton: typeof DiscoveryWidgetSkeleton;
|
|
1624
|
+
}
|
|
1625
|
+
declare function DiscoveryWidgetSkeleton(): react_jsx_runtime.JSX.Element;
|
|
1626
|
+
|
|
1584
1627
|
type ExploreEventProps = {
|
|
1585
1628
|
pageId?: string;
|
|
1586
1629
|
};
|
|
@@ -1591,4 +1634,21 @@ type MyEventsProps = {
|
|
|
1591
1634
|
};
|
|
1592
1635
|
declare function MyEvents({ pageId }: MyEventsProps): react_jsx_runtime.JSX.Element | null;
|
|
1593
1636
|
|
|
1594
|
-
|
|
1637
|
+
type LiveViewerCountProps = {
|
|
1638
|
+
/** Latest viewer count for the stream. */
|
|
1639
|
+
count?: number;
|
|
1640
|
+
/**
|
|
1641
|
+
* True when the current user is the host or a co-host of the stream.
|
|
1642
|
+
* These roles are exempt from mode-based hiding (REQ-002).
|
|
1643
|
+
*/
|
|
1644
|
+
isHostOrCoHost?: boolean;
|
|
1645
|
+
/** Renders the LIVE dot before the count for viewer surfaces. */
|
|
1646
|
+
isWatcher?: boolean;
|
|
1647
|
+
/** Optional className passthrough to the pill. */
|
|
1648
|
+
className?: string;
|
|
1649
|
+
/** Fires whenever the count-visibility flips. Not fired on initial mount. */
|
|
1650
|
+
onVisibilityChanged?: (isCountVisible: boolean) => void;
|
|
1651
|
+
};
|
|
1652
|
+
declare function LiveViewerCount({ count, isHostOrCoHost, isWatcher, className, onVisibilityChanged, }: LiveViewerCountProps): react_jsx_runtime.JSX.Element | null;
|
|
1653
|
+
|
|
1654
|
+
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, DiscoveryWidget as AmityDiscoveryWidgetComponent, 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 };
|