@amityco/ui-kit-open-source 4.23.0 → 4.25.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.ts CHANGED
@@ -237,21 +237,21 @@ interface LivestreamChatMessageComposerProps {
237
237
  */
238
238
  isChannelPending?: boolean;
239
239
  }
240
- declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
240
+ declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element | null;
241
241
 
242
242
  type CreateLivestreamPageProps = {
243
243
  targetType: 'community' | 'user';
244
244
  targetId: string | null;
245
245
  event?: Amity.Event;
246
246
  };
247
- declare function CreateLivestreamPage({ targetType: initialTargetType, targetId: initialTargetId, event, }: CreateLivestreamPageProps): react_jsx_runtime.JSX.Element;
247
+ declare function CreateLivestreamPage({ targetType: initialTargetType, targetId: initialTargetId, event, }: CreateLivestreamPageProps): react_jsx_runtime.JSX.Element | null;
248
248
 
249
249
  type LiveStreamPlayerPageProps = {
250
250
  post?: Amity.Post;
251
251
  goToDetailPage?: (context?: GoToPostDetailPageParams) => void;
252
252
  roomId?: string;
253
253
  };
254
- declare function LiveStreamPlayerPage({ post, roomId, goToDetailPage }: LiveStreamPlayerPageProps): react_jsx_runtime.JSX.Element;
254
+ declare function LiveStreamPlayerPage({ post, roomId, goToDetailPage }: LiveStreamPlayerPageProps): react_jsx_runtime.JSX.Element | null;
255
255
 
256
256
  type SelectedTarget = {
257
257
  targetId: string | null;
@@ -262,11 +262,11 @@ declare function LivestreamTargetSelectionPage({ onPressTarget, }: {
262
262
  onPressTarget?: (params: SelectedTarget) => void;
263
263
  }): react_jsx_runtime.JSX.Element;
264
264
 
265
- declare function LiveStreamBannedPage(): react_jsx_runtime.JSX.Element;
265
+ declare function LiveStreamBannedPage(): react_jsx_runtime.JSX.Element | null;
266
266
 
267
- declare function LivestreamTerminatedPage(): react_jsx_runtime.JSX.Element;
267
+ declare function LivestreamTerminatedPage(): react_jsx_runtime.JSX.Element | null;
268
268
 
269
- declare function LivestreamUnsupportedPage(): react_jsx_runtime.JSX.Element;
269
+ declare function LivestreamUnsupportedPage(): react_jsx_runtime.JSX.Element | null;
270
270
 
271
271
  declare const enum DisplayModeEnum {
272
272
  DESKTOP = "desktop",
@@ -398,6 +398,12 @@ declare const UserRelationshipPage: FC<UserRelationshipPageProps>;
398
398
  type NotificationAlignment = 'fullscreen' | 'withSidebar' | 'fixed' | 'live-chat' | 'livestreamWithChat' | 'with-composer';
399
399
 
400
400
  interface PageBehavior {
401
+ AmityDiscoveryWidgetComponentBehavior?: {
402
+ goToDestination?: (context: {
403
+ topicId: string;
404
+ post: Amity.Post;
405
+ }) => void;
406
+ };
401
407
  AmityStoryViewPageBehavior?: {
402
408
  onCloseAction?(): void;
403
409
  hyperLinkAction?(context: Record<string, unknown>): void;
@@ -791,6 +797,21 @@ interface PageBehavior {
791
797
  userId: string;
792
798
  }): void;
793
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
+ };
794
815
  }
795
816
 
796
817
  type AmityUIKitConfig = Config;
@@ -874,19 +895,19 @@ declare const LiveChat: ({ channelId }: LiveChatProps) => react_jsx_runtime.JSX.
874
895
 
875
896
  declare function Application(): react_jsx_runtime.JSX.Element;
876
897
 
877
- declare function ChatHomePage(): react_jsx_runtime.JSX.Element;
898
+ declare function ChatHomePage(): react_jsx_runtime.JSX.Element | null;
878
899
 
879
- declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element;
900
+ declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element | null;
880
901
 
881
902
  type SelectGroupMemberPageProps = {
882
903
  selectedGroupMember?: Amity.User[];
883
904
  };
884
- declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element;
905
+ declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
885
906
 
886
907
  type CreateGroupChatPageProps = {
887
908
  selectedUsers: Amity.User[];
888
909
  };
889
- declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element;
910
+ declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element | null;
890
911
 
891
912
  type ChatPageProps = {
892
913
  channelId?: string;
@@ -896,58 +917,58 @@ type ChatPageProps = {
896
917
  isJustCreated?: boolean;
897
918
  jumpToMessageId?: string;
898
919
  };
899
- declare function ChatPage({ channelId, userId, userDisplayName, avatarUrl, isJustCreated, jumpToMessageId, }: ChatPageProps): react_jsx_runtime.JSX.Element;
920
+ declare function ChatPage({ channelId, userId, userDisplayName, avatarUrl, isJustCreated, jumpToMessageId, }: ChatPageProps): react_jsx_runtime.JSX.Element | null;
900
921
 
901
922
  type GroupChatPageProps = {
902
923
  channelId: string;
903
924
  isJustCreated?: boolean;
904
925
  jumpToMessageId?: string;
905
926
  };
906
- declare function GroupChatPage({ channelId, isJustCreated, jumpToMessageId }: GroupChatPageProps): react_jsx_runtime.JSX.Element;
927
+ declare function GroupChatPage({ channelId, isJustCreated, jumpToMessageId }: GroupChatPageProps): react_jsx_runtime.JSX.Element | null;
907
928
 
908
929
  type EditGroupProfilePageProps = {
909
930
  channelId: string;
910
931
  };
911
- declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element;
932
+ declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element | null;
912
933
 
913
934
  type EditGroupNotificationPageProps = {
914
935
  channelId: string;
915
936
  };
916
- declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element;
937
+ declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element | null;
917
938
 
918
939
  type EditGroupMemberPermissionsPageProps = {
919
940
  channelId: string;
920
941
  };
921
- declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element;
942
+ declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element | null;
922
943
 
923
944
  type GroupNotificationPreferencePageProps = {
924
945
  channelId: string;
925
946
  };
926
- declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element;
947
+ declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element | null;
927
948
 
928
949
  type GroupSettingPageProps = {
929
950
  channelId: string;
930
951
  };
931
- declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element;
952
+ declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element | null;
932
953
 
933
954
  type GroupMemberListPageProps = {
934
955
  channelId: string;
935
956
  };
936
- declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element;
957
+ declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
937
958
 
938
959
  type AddGroupMemberPageProps = {
939
960
  channelId: string;
940
961
  };
941
- declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element;
962
+ declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
942
963
 
943
964
  type BannedGroupMemberListPageProps = {
944
965
  channelId: string;
945
966
  };
946
- declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element;
967
+ declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
947
968
 
948
- declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element;
969
+ declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element | null;
949
970
 
950
- declare function SearchChannelPage(): react_jsx_runtime.JSX.Element;
971
+ declare function SearchChannelPage(): react_jsx_runtime.JSX.Element | null;
951
972
 
952
973
  type PageRendererProps = {
953
974
  children: React.JSX.Element;
@@ -976,8 +997,8 @@ interface RegisterDeviceParams {
976
997
  onConnectionStatusChange?: (state: Amity.SessionStates) => void;
977
998
  onConnected?: () => void;
978
999
  onDisconnected?: () => void;
979
- onGlobalBanned?: (payload: Amity.UserPayload) => void;
980
- onUserDeleted?: (payload: Amity.UserPayload) => void;
1000
+ onGlobalBanned?: () => void;
1001
+ onUserDeleted?: () => void;
981
1002
  onVisitorUsageLimitReached?: () => void;
982
1003
  }
983
1004
  /**
@@ -1046,6 +1067,39 @@ declare class AmityUIKitManager {
1046
1067
  * @returns True if the client is connected, false otherwise.
1047
1068
  */
1048
1069
  isClientConnected(): boolean;
1070
+ /**
1071
+ * What the network bought, and whether core is acting on it.
1072
+ *
1073
+ * One read answers all three questions — the grants, the enforcement mode and
1074
+ * the whole catalog — so the UIKit gates its surfaces on what the customer
1075
+ * actually has instead of a plan hardcoded here. It is never gated itself, so
1076
+ * it answers even when every module is revoked.
1077
+ *
1078
+ * Through the SDK rather than `client.http`. The endpoint is the same one, and
1079
+ * the reason to stop calling it directly is ownership: the request, its
1080
+ * caching and the shape it decodes to belong to the SDK, and a second caller
1081
+ * hitting the path raw is a second answer to keep in step. That also means the
1082
+ * `X-No-Cache` this used to send is now the SDK's business — calling the
1083
+ * getter *is* the refresh.
1084
+ *
1085
+ * The decode is the SDK's too. `parseModuleSettings` already reads an unknown
1086
+ * mode as `off`, counts only a literal `true` as a grant and keeps a catalog
1087
+ * key this build predates — REQ-001/REQ-002 of `AmityModuleEnforcementMode`,
1088
+ * with P0 cases behind them. The UIKit kept a copy of all of it while it
1089
+ * owned the request; two decoders for one payload is how a wire rename ends
1090
+ * up read by one of them and not the other.
1091
+ *
1092
+ * Throwing rather than returning null on a failed read is deliberate: the
1093
+ * retry and the fail-open both live in `useNetworkEntitlement`, where a
1094
+ * rejected query becomes `entitlement: null` and grants everything.
1095
+ *
1096
+ * The SDK also ships `resolveModuleAvailability`, and the UIKit deliberately
1097
+ * does not use it: it walks the prerequisite chain over the grants alone,
1098
+ * which cannot see the customer's own `config.json`. Switch Community off in
1099
+ * the config with everything granted and it would still call Post available.
1100
+ * There is one walk, in `isFeatureEnabled`, over both sources.
1101
+ */
1102
+ static syncNetworkEntitlement(): Promise<Amity.ModuleSettings>;
1049
1103
  static syncNetworkConfig(): Promise<NetworkConfig>;
1050
1104
  }
1051
1105
 
@@ -1054,14 +1108,14 @@ interface ChatHeaderProps {
1054
1108
  pageId?: string;
1055
1109
  componentId?: string;
1056
1110
  }
1057
- declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element;
1111
+ declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element | null;
1058
1112
 
1059
1113
  interface AmityLiveChatMessageListProps {
1060
1114
  pageId?: string;
1061
1115
  channel: Amity.Channel;
1062
1116
  replyMessage: (message: Amity.Message<'text'>) => void;
1063
1117
  }
1064
- declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) => react_jsx_runtime.JSX.Element;
1118
+ declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) => react_jsx_runtime.JSX.Element | null;
1065
1119
 
1066
1120
  type ComposeActionTypes = {
1067
1121
  replyMessage?: Amity.Message;
@@ -1076,7 +1130,7 @@ interface MessageComposerProps {
1076
1130
  disabled?: boolean;
1077
1131
  pageId?: string;
1078
1132
  }
1079
- declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => react_jsx_runtime.JSX.Element;
1133
+ declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => react_jsx_runtime.JSX.Element | null;
1080
1134
 
1081
1135
  declare const MessageReactionPreview: ({ message, onClick, }: {
1082
1136
  message: Amity.Message;
@@ -1094,7 +1148,7 @@ interface MessageQuickReactionProps {
1094
1148
  message: Amity.Message;
1095
1149
  onSelectReaction?: () => void;
1096
1150
  }
1097
- declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) => react_jsx_runtime.JSX.Element;
1151
+ declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) => react_jsx_runtime.JSX.Element | null;
1098
1152
 
1099
1153
  type MessageActionType = {
1100
1154
  onCopy?: () => void;
@@ -1185,7 +1239,7 @@ interface AmityViewStoryPageProps {
1185
1239
  }
1186
1240
  declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
1187
1241
 
1188
- declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1242
+ declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1189
1243
 
1190
1244
  declare enum HomePageTab {
1191
1245
  ForYou = "ForYou",
@@ -1199,7 +1253,7 @@ declare enum HomePageTab {
1199
1253
 
1200
1254
  declare function SocialHomePage({ activeTab: initialActiveTab }: {
1201
1255
  activeTab?: HomePageTab;
1202
- }): react_jsx_runtime.JSX.Element;
1256
+ }): react_jsx_runtime.JSX.Element | null;
1203
1257
  declare namespace SocialHomePage {
1204
1258
  var TabsSkeleton: () => react_jsx_runtime.JSX.Element;
1205
1259
  var FeedSkeleton: ({ pageId }: {
@@ -1209,13 +1263,13 @@ declare namespace SocialHomePage {
1209
1263
 
1210
1264
  declare function SelectPostTargetPage({ isClipPost }: {
1211
1265
  isClipPost?: boolean;
1212
- }): react_jsx_runtime.JSX.Element;
1266
+ }): react_jsx_runtime.JSX.Element | null;
1213
1267
 
1214
- declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element;
1268
+ declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element | null;
1215
1269
 
1216
1270
  declare function SocialGlobalSearchPage({ keyword }: {
1217
1271
  keyword?: string;
1218
- }): react_jsx_runtime.JSX.Element;
1272
+ }): react_jsx_runtime.JSX.Element | null;
1219
1273
 
1220
1274
  type UserProfilePageProps = {
1221
1275
  userId: string;
@@ -1227,14 +1281,14 @@ interface EditUserProfilePageProps {
1227
1281
  }
1228
1282
  declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
1229
1283
 
1230
- declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element;
1284
+ declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element | null;
1231
1285
 
1232
- declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element;
1286
+ declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element | null;
1233
1287
 
1234
1288
  interface CommunityAddCategoryPageProps {
1235
1289
  category?: Amity.Category[];
1236
1290
  }
1237
- declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element;
1291
+ declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element | null;
1238
1292
 
1239
1293
  interface CommunityAddMemberPageProps {
1240
1294
  member?: MemberCommunitySetup[];
@@ -1242,14 +1296,14 @@ interface CommunityAddMemberPageProps {
1242
1296
  closePopup?: () => void;
1243
1297
  onAddedAction?: (userId: string[]) => void;
1244
1298
  }
1245
- declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => react_jsx_runtime.JSX.Element;
1299
+ declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => react_jsx_runtime.JSX.Element | null;
1246
1300
 
1247
1301
  type CommunityInviteMemberPageProps = {
1248
1302
  communityId?: string;
1249
1303
  users?: Amity.User[];
1250
1304
  onSubmit?: (userId: string[]) => void;
1251
1305
  };
1252
- declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element;
1306
+ declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element | null;
1253
1307
 
1254
1308
  interface CommunityProfileProps {
1255
1309
  communityId: string;
@@ -1260,48 +1314,48 @@ declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
1260
1314
  type CommunitySettingPageProps = {
1261
1315
  community: Amity.Community;
1262
1316
  };
1263
- declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element;
1317
+ declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1264
1318
 
1265
1319
  type CommunityPostPermissionPageProps = {
1266
1320
  community: Amity.Community;
1267
1321
  };
1268
- declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element;
1322
+ declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element | null;
1269
1323
 
1270
1324
  type CommunityStorySettingPageProps = {
1271
1325
  community: Amity.Community;
1272
1326
  };
1273
- declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element;
1327
+ declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1274
1328
 
1275
1329
  type PendingPostsPageProps = {
1276
1330
  communityId: string;
1277
1331
  };
1278
- declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element;
1332
+ declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element | null;
1279
1333
 
1280
1334
  type CommunityMembershipPageProps = {
1281
1335
  community: Amity.Community;
1282
1336
  };
1283
- declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element;
1337
+ declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element | null;
1284
1338
 
1285
1339
  type CommunityPendingInvitationPageProps = {
1286
1340
  community: Amity.Community;
1287
1341
  };
1288
- declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element;
1342
+ declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element | null;
1289
1343
 
1290
1344
  type PollPostComposerPageProps = {
1291
1345
  targetId: string | null;
1292
1346
  targetType: 'community' | 'user';
1293
1347
  pollType?: 'text' | 'image';
1294
1348
  };
1295
- declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => react_jsx_runtime.JSX.Element;
1349
+ declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => react_jsx_runtime.JSX.Element | null;
1296
1350
 
1297
- declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1351
+ declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1298
1352
 
1299
- declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element;
1353
+ declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element | null;
1300
1354
 
1301
1355
  interface CommunitiesByCategoryPageProps {
1302
1356
  categoryId: string;
1303
1357
  }
1304
- declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element;
1358
+ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element | null;
1305
1359
 
1306
1360
  type PendingRequestPageProps = {
1307
1361
  community: Amity.Community;
@@ -1313,7 +1367,7 @@ type DraftClipPageProps = {
1313
1367
  targetType: 'community' | 'user';
1314
1368
  community?: Amity.Community;
1315
1369
  };
1316
- declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => react_jsx_runtime.JSX.Element;
1370
+ declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => react_jsx_runtime.JSX.Element | null;
1317
1371
 
1318
1372
  type ClipFeedPageProps = {
1319
1373
  currentPostId?: string;
@@ -1321,7 +1375,7 @@ type ClipFeedPageProps = {
1321
1375
  targetType?: 'community' | 'user';
1322
1376
  targetId?: string;
1323
1377
  };
1324
- declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => react_jsx_runtime.JSX.Element;
1378
+ declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => react_jsx_runtime.JSX.Element | null;
1325
1379
 
1326
1380
  declare function EventTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1327
1381
 
@@ -1344,7 +1398,7 @@ type CommentTrayProps = {
1344
1398
  referenceType: Amity.CommentReferenceType;
1345
1399
  commentCount?: number;
1346
1400
  };
1347
- declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1401
+ declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element | null;
1348
1402
 
1349
1403
  type StoryTabProps = ({
1350
1404
  type: 'communityFeed';
@@ -1395,7 +1449,7 @@ type UserSearchResultProps = {
1395
1449
  userCollection: Amity.User[];
1396
1450
  onClosePopover?: () => void;
1397
1451
  };
1398
- declare const UserSearchResult: ({ keyword, isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) => react_jsx_runtime.JSX.Element;
1452
+ declare const UserSearchResult: ({ keyword, isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) => react_jsx_runtime.JSX.Element | null;
1399
1453
 
1400
1454
  type CommunitySearchResultProps = {
1401
1455
  pageId?: string;
@@ -1405,7 +1459,7 @@ type CommunitySearchResultProps = {
1405
1459
  onClosePopover?: () => void;
1406
1460
  communityCollection: Amity.Community[];
1407
1461
  };
1408
- declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, }: CommunitySearchResultProps) => react_jsx_runtime.JSX.Element;
1462
+ declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, }: CommunitySearchResultProps) => react_jsx_runtime.JSX.Element | null;
1409
1463
 
1410
1464
  type TopSearchBarProps = {
1411
1465
  pageId?: string;
@@ -1422,7 +1476,24 @@ declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initia
1422
1476
  type MyCommunitiesProps = {
1423
1477
  pageId?: string;
1424
1478
  };
1425
- declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => react_jsx_runtime.JSX.Element;
1479
+ /**
1480
+ * The communities you already belong to.
1481
+ *
1482
+ * The rows are drawn here rather than by CommunitySearchResult, which is a
1483
+ * different component: it shows search results and answers to
1484
+ * `community_search_result`, which discovery owns. Borrowing it put the
1485
+ * membership list — community's — behind discovery's id, so switching Discovery
1486
+ * off emptied the list while its wrapper stayed. Every component was asking its
1487
+ * own id correctly; one id serving two owners is not something the resolver can
1488
+ * see.
1489
+ *
1490
+ * Android and iOS are shaped this way already: both nest the row inside the
1491
+ * `my_communities` component and keep `community_search_result` under
1492
+ * `social_global_search_page` only. Their config files carry
1493
+ * `social_home_page/my_communities/community_display_name` and no
1494
+ * `social_home_page/community_search_result/...` key at all.
1495
+ */
1496
+ declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => react_jsx_runtime.JSX.Element | null;
1426
1497
 
1427
1498
  interface EmptyNewsfeedProps {
1428
1499
  pageId?: string;
@@ -1432,7 +1503,7 @@ declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): react_jsx_runtim
1432
1503
  type NewsfeedProps = {
1433
1504
  pageId?: string;
1434
1505
  };
1435
- declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element;
1506
+ declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element | null;
1436
1507
 
1437
1508
  interface TopNavigationProps {
1438
1509
  pageId?: string;
@@ -1492,7 +1563,7 @@ interface UserFeedProps {
1492
1563
  feedSources?: FeedSourceEnum[];
1493
1564
  followStatus?: Amity.FollowStatus['status'] | null;
1494
1565
  }
1495
- declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => react_jsx_runtime.JSX.Element;
1566
+ declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => react_jsx_runtime.JSX.Element | null;
1496
1567
 
1497
1568
  type UserImageFeedProps = {
1498
1569
  userId: string;
@@ -1513,7 +1584,7 @@ declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: Us
1513
1584
  type ExploreProps = {
1514
1585
  pageId?: string;
1515
1586
  };
1516
- declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element;
1587
+ declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element | null;
1517
1588
 
1518
1589
  type InvitationBannerProps = {
1519
1590
  pageId?: string;
@@ -1521,7 +1592,7 @@ type InvitationBannerProps = {
1521
1592
  removeInvitation?: () => void;
1522
1593
  invitation?: Amity.Invitation;
1523
1594
  };
1524
- declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): react_jsx_runtime.JSX.Element;
1595
+ declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): react_jsx_runtime.JSX.Element | null;
1525
1596
 
1526
1597
  type InvitationSectionProps = {
1527
1598
  pageId?: string;
@@ -1536,7 +1607,7 @@ type PendingPostListProps = {
1536
1607
  canReviewCommunityPosts?: boolean;
1537
1608
  refresh?: () => void;
1538
1609
  };
1539
- declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => react_jsx_runtime.JSX.Element;
1610
+ declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => react_jsx_runtime.JSX.Element | null;
1540
1611
 
1541
1612
  type JoinRequestContentProps = {
1542
1613
  pageId?: string;
@@ -1544,7 +1615,7 @@ type JoinRequestContentProps = {
1544
1615
  isLoading: boolean;
1545
1616
  refresh?: () => void;
1546
1617
  };
1547
- declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => react_jsx_runtime.JSX.Element;
1618
+ declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => react_jsx_runtime.JSX.Element | null;
1548
1619
 
1549
1620
  type FeedProps = {
1550
1621
  pageId?: string;
@@ -1579,7 +1650,7 @@ declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDele
1579
1650
  type ForYouFeedProps = {
1580
1651
  pageId: string;
1581
1652
  };
1582
- declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element;
1653
+ declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element | null;
1583
1654
 
1584
1655
  type FeedCaughtUpProps = {
1585
1656
  pageId?: string;
@@ -1590,6 +1661,19 @@ type FeedCaughtUpProps = {
1590
1661
  };
1591
1662
  declare function FeedCaughtUp({ pageId, componentId, title, ctaLabel, onSwitchRequested, }: FeedCaughtUpProps): react_jsx_runtime.JSX.Element | null;
1592
1663
 
1664
+ type DiscoveryWidgetProps = {
1665
+ pageId?: string;
1666
+ topicId: string;
1667
+ showHeader?: boolean;
1668
+ minVisibilityThreshold?: number;
1669
+ onCardClick?: (topicId: string, post: Amity.Post) => void;
1670
+ };
1671
+ declare function DiscoveryWidget({ pageId, topicId, showHeader, minVisibilityThreshold, onCardClick, }: DiscoveryWidgetProps): react_jsx_runtime.JSX.Element | null;
1672
+ declare namespace DiscoveryWidget {
1673
+ var Skeleton: typeof DiscoveryWidgetSkeleton;
1674
+ }
1675
+ declare function DiscoveryWidgetSkeleton(): react_jsx_runtime.JSX.Element;
1676
+
1593
1677
  type ExploreEventProps = {
1594
1678
  pageId?: string;
1595
1679
  };
@@ -1617,4 +1701,4 @@ type LiveViewerCountProps = {
1617
1701
  };
1618
1702
  declare function LiveViewerCount({ count, isHostOrCoHost, isWatcher, className, onVisibilityChanged, }: LiveViewerCountProps): react_jsx_runtime.JSX.Element | null;
1619
1703
 
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 };
1704
+ 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 };