@amityco/ui-kit-open-source 4.24.0 → 4.26.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
@@ -116,6 +116,12 @@ interface Config {
116
116
  };
117
117
  chat?: {
118
118
  enabled_channel_types?: ('conversation' | 'community')[];
119
+ /**
120
+ * Order of the chat home channel list. `lastActivity` (default) moves a
121
+ * channel on any activity, including member changes; `lastMessage` moves it
122
+ * only when a message is posted. Any other value falls back to `lastActivity`.
123
+ */
124
+ channel_list_sort_by?: 'lastActivity' | 'lastMessage';
119
125
  conversation_chat_user_actions?: {
120
126
  name: 'mute' | 'report' | 'block';
121
127
  enabled: boolean;
@@ -237,21 +243,21 @@ interface LivestreamChatMessageComposerProps {
237
243
  */
238
244
  isChannelPending?: boolean;
239
245
  }
240
- declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element;
246
+ declare const LivestreamChatMessageComposer: ({ pageId, channelId, disabled, community, isPendingPost, isPlayer, isChannelPending, }: LivestreamChatMessageComposerProps) => react_jsx_runtime.JSX.Element | null;
241
247
 
242
248
  type CreateLivestreamPageProps = {
243
249
  targetType: 'community' | 'user';
244
250
  targetId: string | null;
245
251
  event?: Amity.Event;
246
252
  };
247
- declare function CreateLivestreamPage({ targetType: initialTargetType, targetId: initialTargetId, event, }: CreateLivestreamPageProps): react_jsx_runtime.JSX.Element;
253
+ declare function CreateLivestreamPage({ targetType: initialTargetType, targetId: initialTargetId, event, }: CreateLivestreamPageProps): react_jsx_runtime.JSX.Element | null;
248
254
 
249
255
  type LiveStreamPlayerPageProps = {
250
256
  post?: Amity.Post;
251
257
  goToDetailPage?: (context?: GoToPostDetailPageParams) => void;
252
258
  roomId?: string;
253
259
  };
254
- declare function LiveStreamPlayerPage({ post, roomId, goToDetailPage }: LiveStreamPlayerPageProps): react_jsx_runtime.JSX.Element;
260
+ declare function LiveStreamPlayerPage({ post, roomId, goToDetailPage }: LiveStreamPlayerPageProps): react_jsx_runtime.JSX.Element | null;
255
261
 
256
262
  type SelectedTarget = {
257
263
  targetId: string | null;
@@ -262,11 +268,11 @@ declare function LivestreamTargetSelectionPage({ onPressTarget, }: {
262
268
  onPressTarget?: (params: SelectedTarget) => void;
263
269
  }): react_jsx_runtime.JSX.Element;
264
270
 
265
- declare function LiveStreamBannedPage(): react_jsx_runtime.JSX.Element;
271
+ declare function LiveStreamBannedPage(): react_jsx_runtime.JSX.Element | null;
266
272
 
267
- declare function LivestreamTerminatedPage(): react_jsx_runtime.JSX.Element;
273
+ declare function LivestreamTerminatedPage(): react_jsx_runtime.JSX.Element | null;
268
274
 
269
- declare function LivestreamUnsupportedPage(): react_jsx_runtime.JSX.Element;
275
+ declare function LivestreamUnsupportedPage(): react_jsx_runtime.JSX.Element | null;
270
276
 
271
277
  declare const enum DisplayModeEnum {
272
278
  DESKTOP = "desktop",
@@ -895,19 +901,28 @@ declare const LiveChat: ({ channelId }: LiveChatProps) => react_jsx_runtime.JSX.
895
901
 
896
902
  declare function Application(): react_jsx_runtime.JSX.Element;
897
903
 
898
- declare function ChatHomePage(): react_jsx_runtime.JSX.Element;
904
+ type ChatHomePageProps = {
905
+ /**
906
+ * Keeps the page mounted but out of view, with its channel collections and
907
+ * their realtime subscriptions alive, while another chat page is on top.
908
+ * The chat application sets this instead of unmounting the home; see
909
+ * `Application.tsx`.
910
+ */
911
+ hidden?: boolean;
912
+ };
913
+ declare function ChatHomePage({ hidden }?: ChatHomePageProps): react_jsx_runtime.JSX.Element | null;
899
914
 
900
- declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element;
915
+ declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element | null;
901
916
 
902
917
  type SelectGroupMemberPageProps = {
903
918
  selectedGroupMember?: Amity.User[];
904
919
  };
905
- declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element;
920
+ declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
906
921
 
907
922
  type CreateGroupChatPageProps = {
908
923
  selectedUsers: Amity.User[];
909
924
  };
910
- declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element;
925
+ declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element | null;
911
926
 
912
927
  type ChatPageProps = {
913
928
  channelId?: string;
@@ -917,58 +932,58 @@ type ChatPageProps = {
917
932
  isJustCreated?: boolean;
918
933
  jumpToMessageId?: string;
919
934
  };
920
- declare function ChatPage({ channelId, userId, userDisplayName, avatarUrl, isJustCreated, jumpToMessageId, }: ChatPageProps): react_jsx_runtime.JSX.Element;
935
+ declare function ChatPage({ channelId, userId, userDisplayName, avatarUrl, isJustCreated, jumpToMessageId, }: ChatPageProps): react_jsx_runtime.JSX.Element | null;
921
936
 
922
937
  type GroupChatPageProps = {
923
938
  channelId: string;
924
939
  isJustCreated?: boolean;
925
940
  jumpToMessageId?: string;
926
941
  };
927
- declare function GroupChatPage({ channelId, isJustCreated, jumpToMessageId }: GroupChatPageProps): react_jsx_runtime.JSX.Element;
942
+ declare function GroupChatPage({ channelId, isJustCreated, jumpToMessageId }: GroupChatPageProps): react_jsx_runtime.JSX.Element | null;
928
943
 
929
944
  type EditGroupProfilePageProps = {
930
945
  channelId: string;
931
946
  };
932
- declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element;
947
+ declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element | null;
933
948
 
934
949
  type EditGroupNotificationPageProps = {
935
950
  channelId: string;
936
951
  };
937
- declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element;
952
+ declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element | null;
938
953
 
939
954
  type EditGroupMemberPermissionsPageProps = {
940
955
  channelId: string;
941
956
  };
942
- declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element;
957
+ declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element | null;
943
958
 
944
959
  type GroupNotificationPreferencePageProps = {
945
960
  channelId: string;
946
961
  };
947
- declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element;
962
+ declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element | null;
948
963
 
949
964
  type GroupSettingPageProps = {
950
965
  channelId: string;
951
966
  };
952
- declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element;
967
+ declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element | null;
953
968
 
954
969
  type GroupMemberListPageProps = {
955
970
  channelId: string;
956
971
  };
957
- declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element;
972
+ declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
958
973
 
959
974
  type AddGroupMemberPageProps = {
960
975
  channelId: string;
961
976
  };
962
- declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element;
977
+ declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
963
978
 
964
979
  type BannedGroupMemberListPageProps = {
965
980
  channelId: string;
966
981
  };
967
- declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element;
982
+ declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
968
983
 
969
- declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element;
984
+ declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element | null;
970
985
 
971
- declare function SearchChannelPage(): react_jsx_runtime.JSX.Element;
986
+ declare function SearchChannelPage(): react_jsx_runtime.JSX.Element | null;
972
987
 
973
988
  type PageRendererProps = {
974
989
  children: React.JSX.Element;
@@ -1067,6 +1082,39 @@ declare class AmityUIKitManager {
1067
1082
  * @returns True if the client is connected, false otherwise.
1068
1083
  */
1069
1084
  isClientConnected(): boolean;
1085
+ /**
1086
+ * What the network bought, and whether core is acting on it.
1087
+ *
1088
+ * One read answers all three questions — the grants, the enforcement mode and
1089
+ * the whole catalog — so the UIKit gates its surfaces on what the customer
1090
+ * actually has instead of a plan hardcoded here. It is never gated itself, so
1091
+ * it answers even when every module is revoked.
1092
+ *
1093
+ * Through the SDK rather than `client.http`. The endpoint is the same one, and
1094
+ * the reason to stop calling it directly is ownership: the request, its
1095
+ * caching and the shape it decodes to belong to the SDK, and a second caller
1096
+ * hitting the path raw is a second answer to keep in step. That also means the
1097
+ * `X-No-Cache` this used to send is now the SDK's business — calling the
1098
+ * getter *is* the refresh.
1099
+ *
1100
+ * The decode is the SDK's too. `parseModuleSettings` already reads an unknown
1101
+ * mode as `off`, counts only a literal `true` as a grant and keeps a catalog
1102
+ * key this build predates — REQ-001/REQ-002 of `AmityModuleEnforcementMode`,
1103
+ * with P0 cases behind them. The UIKit kept a copy of all of it while it
1104
+ * owned the request; two decoders for one payload is how a wire rename ends
1105
+ * up read by one of them and not the other.
1106
+ *
1107
+ * Throwing rather than returning null on a failed read is deliberate: the
1108
+ * retry and the fail-open both live in `useNetworkEntitlement`, where a
1109
+ * rejected query becomes `entitlement: null` and grants everything.
1110
+ *
1111
+ * The SDK also ships `resolveModuleAvailability`, and the UIKit deliberately
1112
+ * does not use it: it walks the prerequisite chain over the grants alone,
1113
+ * which cannot see the customer's own `config.json`. Switch Community off in
1114
+ * the config with everything granted and it would still call Post available.
1115
+ * There is one walk, in `isFeatureEnabled`, over both sources.
1116
+ */
1117
+ static syncNetworkEntitlement(): Promise<Amity.ModuleSettings>;
1070
1118
  static syncNetworkConfig(): Promise<NetworkConfig>;
1071
1119
  }
1072
1120
 
@@ -1075,14 +1123,14 @@ interface ChatHeaderProps {
1075
1123
  pageId?: string;
1076
1124
  componentId?: string;
1077
1125
  }
1078
- declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element;
1126
+ declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element | null;
1079
1127
 
1080
1128
  interface AmityLiveChatMessageListProps {
1081
1129
  pageId?: string;
1082
1130
  channel: Amity.Channel;
1083
1131
  replyMessage: (message: Amity.Message<'text'>) => void;
1084
1132
  }
1085
- declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) => react_jsx_runtime.JSX.Element;
1133
+ declare const MessageList: ({ pageId, channel, replyMessage, }: AmityLiveChatMessageListProps) => react_jsx_runtime.JSX.Element | null;
1086
1134
 
1087
1135
  type ComposeActionTypes = {
1088
1136
  replyMessage?: Amity.Message;
@@ -1097,7 +1145,7 @@ interface MessageComposerProps {
1097
1145
  disabled?: boolean;
1098
1146
  pageId?: string;
1099
1147
  }
1100
- declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => react_jsx_runtime.JSX.Element;
1148
+ declare const MessageComposer: ({ pageId, channel, composeAction }: MessageComposerProps) => react_jsx_runtime.JSX.Element | null;
1101
1149
 
1102
1150
  declare const MessageReactionPreview: ({ message, onClick, }: {
1103
1151
  message: Amity.Message;
@@ -1115,7 +1163,7 @@ interface MessageQuickReactionProps {
1115
1163
  message: Amity.Message;
1116
1164
  onSelectReaction?: () => void;
1117
1165
  }
1118
- declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) => react_jsx_runtime.JSX.Element;
1166
+ declare const MessageQuickReaction: ({ pageId, componentId, message, onSelectReaction, }: MessageQuickReactionProps) => react_jsx_runtime.JSX.Element | null;
1119
1167
 
1120
1168
  type MessageActionType = {
1121
1169
  onCopy?: () => void;
@@ -1206,7 +1254,7 @@ interface AmityViewStoryPageProps {
1206
1254
  }
1207
1255
  declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
1208
1256
 
1209
- declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1257
+ declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1210
1258
 
1211
1259
  declare enum HomePageTab {
1212
1260
  ForYou = "ForYou",
@@ -1220,7 +1268,7 @@ declare enum HomePageTab {
1220
1268
 
1221
1269
  declare function SocialHomePage({ activeTab: initialActiveTab }: {
1222
1270
  activeTab?: HomePageTab;
1223
- }): react_jsx_runtime.JSX.Element;
1271
+ }): react_jsx_runtime.JSX.Element | null;
1224
1272
  declare namespace SocialHomePage {
1225
1273
  var TabsSkeleton: () => react_jsx_runtime.JSX.Element;
1226
1274
  var FeedSkeleton: ({ pageId }: {
@@ -1230,13 +1278,13 @@ declare namespace SocialHomePage {
1230
1278
 
1231
1279
  declare function SelectPostTargetPage({ isClipPost }: {
1232
1280
  isClipPost?: boolean;
1233
- }): react_jsx_runtime.JSX.Element;
1281
+ }): react_jsx_runtime.JSX.Element | null;
1234
1282
 
1235
- declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element;
1283
+ declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element | null;
1236
1284
 
1237
1285
  declare function SocialGlobalSearchPage({ keyword }: {
1238
1286
  keyword?: string;
1239
- }): react_jsx_runtime.JSX.Element;
1287
+ }): react_jsx_runtime.JSX.Element | null;
1240
1288
 
1241
1289
  type UserProfilePageProps = {
1242
1290
  userId: string;
@@ -1248,14 +1296,14 @@ interface EditUserProfilePageProps {
1248
1296
  }
1249
1297
  declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
1250
1298
 
1251
- declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element;
1299
+ declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element | null;
1252
1300
 
1253
- declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element;
1301
+ declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element | null;
1254
1302
 
1255
1303
  interface CommunityAddCategoryPageProps {
1256
1304
  category?: Amity.Category[];
1257
1305
  }
1258
- declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element;
1306
+ declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element | null;
1259
1307
 
1260
1308
  interface CommunityAddMemberPageProps {
1261
1309
  member?: MemberCommunitySetup[];
@@ -1263,14 +1311,14 @@ interface CommunityAddMemberPageProps {
1263
1311
  closePopup?: () => void;
1264
1312
  onAddedAction?: (userId: string[]) => void;
1265
1313
  }
1266
- declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => react_jsx_runtime.JSX.Element;
1314
+ declare const CommunityAddMemberPage: ({ member, closePopup, communityId, onAddedAction, }: CommunityAddMemberPageProps) => react_jsx_runtime.JSX.Element | null;
1267
1315
 
1268
1316
  type CommunityInviteMemberPageProps = {
1269
1317
  communityId?: string;
1270
1318
  users?: Amity.User[];
1271
1319
  onSubmit?: (userId: string[]) => void;
1272
1320
  };
1273
- declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element;
1321
+ declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element | null;
1274
1322
 
1275
1323
  interface CommunityProfileProps {
1276
1324
  communityId: string;
@@ -1281,48 +1329,48 @@ declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
1281
1329
  type CommunitySettingPageProps = {
1282
1330
  community: Amity.Community;
1283
1331
  };
1284
- declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element;
1332
+ declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1285
1333
 
1286
1334
  type CommunityPostPermissionPageProps = {
1287
1335
  community: Amity.Community;
1288
1336
  };
1289
- declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element;
1337
+ declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element | null;
1290
1338
 
1291
1339
  type CommunityStorySettingPageProps = {
1292
1340
  community: Amity.Community;
1293
1341
  };
1294
- declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element;
1342
+ declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1295
1343
 
1296
1344
  type PendingPostsPageProps = {
1297
1345
  communityId: string;
1298
1346
  };
1299
- declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element;
1347
+ declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element | null;
1300
1348
 
1301
1349
  type CommunityMembershipPageProps = {
1302
1350
  community: Amity.Community;
1303
1351
  };
1304
- declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element;
1352
+ declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element | null;
1305
1353
 
1306
1354
  type CommunityPendingInvitationPageProps = {
1307
1355
  community: Amity.Community;
1308
1356
  };
1309
- declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element;
1357
+ declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element | null;
1310
1358
 
1311
1359
  type PollPostComposerPageProps = {
1312
1360
  targetId: string | null;
1313
1361
  targetType: 'community' | 'user';
1314
1362
  pollType?: 'text' | 'image';
1315
1363
  };
1316
- declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => react_jsx_runtime.JSX.Element;
1364
+ declare const PollPostComposerPage: ({ targetId, targetType, pollType, }: PollPostComposerPageProps) => react_jsx_runtime.JSX.Element | null;
1317
1365
 
1318
- declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1366
+ declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1319
1367
 
1320
- declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element;
1368
+ declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element | null;
1321
1369
 
1322
1370
  interface CommunitiesByCategoryPageProps {
1323
1371
  categoryId: string;
1324
1372
  }
1325
- declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element;
1373
+ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element | null;
1326
1374
 
1327
1375
  type PendingRequestPageProps = {
1328
1376
  community: Amity.Community;
@@ -1334,7 +1382,7 @@ type DraftClipPageProps = {
1334
1382
  targetType: 'community' | 'user';
1335
1383
  community?: Amity.Community;
1336
1384
  };
1337
- declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => react_jsx_runtime.JSX.Element;
1385
+ declare const DraftClipPage: ({ targetId, targetType, community }: DraftClipPageProps) => react_jsx_runtime.JSX.Element | null;
1338
1386
 
1339
1387
  type ClipFeedPageProps = {
1340
1388
  currentPostId?: string;
@@ -1342,7 +1390,7 @@ type ClipFeedPageProps = {
1342
1390
  targetType?: 'community' | 'user';
1343
1391
  targetId?: string;
1344
1392
  };
1345
- declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => react_jsx_runtime.JSX.Element;
1393
+ declare const ClipFeedPage: ({ currentPostId, postIndex, targetType, targetId, }: ClipFeedPageProps) => react_jsx_runtime.JSX.Element | null;
1346
1394
 
1347
1395
  declare function EventTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1348
1396
 
@@ -1365,7 +1413,7 @@ type CommentTrayProps = {
1365
1413
  referenceType: Amity.CommentReferenceType;
1366
1414
  commentCount?: number;
1367
1415
  };
1368
- declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element;
1416
+ declare const CommentTray: ({ referenceId, pageId, referenceType, shouldAllowCreation, shouldAllowInteraction, community, commentCount, }: CommentTrayProps) => react_jsx_runtime.JSX.Element | null;
1369
1417
 
1370
1418
  type StoryTabProps = ({
1371
1419
  type: 'communityFeed';
@@ -1416,7 +1464,7 @@ type UserSearchResultProps = {
1416
1464
  userCollection: Amity.User[];
1417
1465
  onClosePopover?: () => void;
1418
1466
  };
1419
- declare const UserSearchResult: ({ keyword, isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) => react_jsx_runtime.JSX.Element;
1467
+ declare const UserSearchResult: ({ keyword, isLoading, onLoadMore, pageId, onClosePopover, userCollection, }: UserSearchResultProps) => react_jsx_runtime.JSX.Element | null;
1420
1468
 
1421
1469
  type CommunitySearchResultProps = {
1422
1470
  pageId?: string;
@@ -1426,7 +1474,7 @@ type CommunitySearchResultProps = {
1426
1474
  onClosePopover?: () => void;
1427
1475
  communityCollection: Amity.Community[];
1428
1476
  };
1429
- declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, }: CommunitySearchResultProps) => react_jsx_runtime.JSX.Element;
1477
+ declare const CommunitySearchResult: ({ isLoading, onLoadMore, pageId, onClosePopover, showJoinButton, communityCollection, }: CommunitySearchResultProps) => react_jsx_runtime.JSX.Element | null;
1430
1478
 
1431
1479
  type TopSearchBarProps = {
1432
1480
  pageId?: string;
@@ -1443,7 +1491,24 @@ declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initia
1443
1491
  type MyCommunitiesProps = {
1444
1492
  pageId?: string;
1445
1493
  };
1446
- declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => react_jsx_runtime.JSX.Element;
1494
+ /**
1495
+ * The communities you already belong to.
1496
+ *
1497
+ * The rows are drawn here rather than by CommunitySearchResult, which is a
1498
+ * different component: it shows search results and answers to
1499
+ * `community_search_result`, which discovery owns. Borrowing it put the
1500
+ * membership list — community's — behind discovery's id, so switching Discovery
1501
+ * off emptied the list while its wrapper stayed. Every component was asking its
1502
+ * own id correctly; one id serving two owners is not something the resolver can
1503
+ * see.
1504
+ *
1505
+ * Android and iOS are shaped this way already: both nest the row inside the
1506
+ * `my_communities` component and keep `community_search_result` under
1507
+ * `social_global_search_page` only. Their config files carry
1508
+ * `social_home_page/my_communities/community_display_name` and no
1509
+ * `social_home_page/community_search_result/...` key at all.
1510
+ */
1511
+ declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => react_jsx_runtime.JSX.Element | null;
1447
1512
 
1448
1513
  interface EmptyNewsfeedProps {
1449
1514
  pageId?: string;
@@ -1453,7 +1518,7 @@ declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): react_jsx_runtim
1453
1518
  type NewsfeedProps = {
1454
1519
  pageId?: string;
1455
1520
  };
1456
- declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element;
1521
+ declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element | null;
1457
1522
 
1458
1523
  interface TopNavigationProps {
1459
1524
  pageId?: string;
@@ -1513,7 +1578,7 @@ interface UserFeedProps {
1513
1578
  feedSources?: FeedSourceEnum[];
1514
1579
  followStatus?: Amity.FollowStatus['status'] | null;
1515
1580
  }
1516
- declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => react_jsx_runtime.JSX.Element;
1581
+ declare const UserFeed: ({ pageId, userId, feedSources, followStatus }: UserFeedProps) => react_jsx_runtime.JSX.Element | null;
1517
1582
 
1518
1583
  type UserImageFeedProps = {
1519
1584
  userId: string;
@@ -1534,7 +1599,7 @@ declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: Us
1534
1599
  type ExploreProps = {
1535
1600
  pageId?: string;
1536
1601
  };
1537
- declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element;
1602
+ declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element | null;
1538
1603
 
1539
1604
  type InvitationBannerProps = {
1540
1605
  pageId?: string;
@@ -1542,7 +1607,7 @@ type InvitationBannerProps = {
1542
1607
  removeInvitation?: () => void;
1543
1608
  invitation?: Amity.Invitation;
1544
1609
  };
1545
- declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): react_jsx_runtime.JSX.Element;
1610
+ declare function InvitationBanner({ community, pageId, removeInvitation, invitation: $invitation, }: InvitationBannerProps): react_jsx_runtime.JSX.Element | null;
1546
1611
 
1547
1612
  type InvitationSectionProps = {
1548
1613
  pageId?: string;
@@ -1557,7 +1622,7 @@ type PendingPostListProps = {
1557
1622
  canReviewCommunityPosts?: boolean;
1558
1623
  refresh?: () => void;
1559
1624
  };
1560
- declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => react_jsx_runtime.JSX.Element;
1625
+ declare const PendingPostList: ({ pageId, reviewingPosts, canReviewCommunityPosts, refresh, }: PendingPostListProps) => react_jsx_runtime.JSX.Element | null;
1561
1626
 
1562
1627
  type JoinRequestContentProps = {
1563
1628
  pageId?: string;
@@ -1565,7 +1630,7 @@ type JoinRequestContentProps = {
1565
1630
  isLoading: boolean;
1566
1631
  refresh?: () => void;
1567
1632
  };
1568
- declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => react_jsx_runtime.JSX.Element;
1633
+ declare const JoinRequestContent: ({ pageId, joinRequests, isLoading, refresh, }: JoinRequestContentProps) => react_jsx_runtime.JSX.Element | null;
1569
1634
 
1570
1635
  type FeedProps = {
1571
1636
  pageId?: string;
@@ -1600,7 +1665,7 @@ declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDele
1600
1665
  type ForYouFeedProps = {
1601
1666
  pageId: string;
1602
1667
  };
1603
- declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element;
1668
+ declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element | null;
1604
1669
 
1605
1670
  type FeedCaughtUpProps = {
1606
1671
  pageId?: string;