@amityco/ui-kit-open-source 4.24.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.mts 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",
@@ -895,19 +895,19 @@ declare const LiveChat: ({ channelId }: LiveChatProps) => react_jsx_runtime.JSX.
895
895
 
896
896
  declare function Application(): react_jsx_runtime.JSX.Element;
897
897
 
898
- declare function ChatHomePage(): react_jsx_runtime.JSX.Element;
898
+ declare function ChatHomePage(): react_jsx_runtime.JSX.Element | null;
899
899
 
900
- declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element;
900
+ declare function ChannelCreateConversationPage(): react_jsx_runtime.JSX.Element | null;
901
901
 
902
902
  type SelectGroupMemberPageProps = {
903
903
  selectedGroupMember?: Amity.User[];
904
904
  };
905
- declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element;
905
+ declare function SelectGroupMemberPage({ selectedGroupMember }: SelectGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
906
906
 
907
907
  type CreateGroupChatPageProps = {
908
908
  selectedUsers: Amity.User[];
909
909
  };
910
- declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element;
910
+ declare function CreateGroupChatPage({ selectedUsers }: CreateGroupChatPageProps): react_jsx_runtime.JSX.Element | null;
911
911
 
912
912
  type ChatPageProps = {
913
913
  channelId?: string;
@@ -917,58 +917,58 @@ type ChatPageProps = {
917
917
  isJustCreated?: boolean;
918
918
  jumpToMessageId?: string;
919
919
  };
920
- 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;
921
921
 
922
922
  type GroupChatPageProps = {
923
923
  channelId: string;
924
924
  isJustCreated?: boolean;
925
925
  jumpToMessageId?: string;
926
926
  };
927
- 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;
928
928
 
929
929
  type EditGroupProfilePageProps = {
930
930
  channelId: string;
931
931
  };
932
- declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element;
932
+ declare function EditGroupProfilePage({ channelId }: EditGroupProfilePageProps): react_jsx_runtime.JSX.Element | null;
933
933
 
934
934
  type EditGroupNotificationPageProps = {
935
935
  channelId: string;
936
936
  };
937
- declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element;
937
+ declare function EditGroupNotificationPage({ channelId }: EditGroupNotificationPageProps): react_jsx_runtime.JSX.Element | null;
938
938
 
939
939
  type EditGroupMemberPermissionsPageProps = {
940
940
  channelId: string;
941
941
  };
942
- declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element;
942
+ declare function EditGroupMemberPermissionsPage({ channelId }: EditGroupMemberPermissionsPageProps): react_jsx_runtime.JSX.Element | null;
943
943
 
944
944
  type GroupNotificationPreferencePageProps = {
945
945
  channelId: string;
946
946
  };
947
- declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element;
947
+ declare function GroupNotificationPreferencePage({ channelId, }: GroupNotificationPreferencePageProps): react_jsx_runtime.JSX.Element | null;
948
948
 
949
949
  type GroupSettingPageProps = {
950
950
  channelId: string;
951
951
  };
952
- declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element;
952
+ declare function GroupSettingPage({ channelId }: GroupSettingPageProps): react_jsx_runtime.JSX.Element | null;
953
953
 
954
954
  type GroupMemberListPageProps = {
955
955
  channelId: string;
956
956
  };
957
- declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element;
957
+ declare function GroupMemberListPage({ channelId }: GroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
958
958
 
959
959
  type AddGroupMemberPageProps = {
960
960
  channelId: string;
961
961
  };
962
- declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element;
962
+ declare function AddGroupMemberPage({ channelId }: AddGroupMemberPageProps): react_jsx_runtime.JSX.Element | null;
963
963
 
964
964
  type BannedGroupMemberListPageProps = {
965
965
  channelId: string;
966
966
  };
967
- declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element;
967
+ declare function BannedGroupMemberListPage({ channelId }: BannedGroupMemberListPageProps): react_jsx_runtime.JSX.Element | null;
968
968
 
969
- declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element;
969
+ declare function ArchivedChatPage(): react_jsx_runtime.JSX.Element | null;
970
970
 
971
- declare function SearchChannelPage(): react_jsx_runtime.JSX.Element;
971
+ declare function SearchChannelPage(): react_jsx_runtime.JSX.Element | null;
972
972
 
973
973
  type PageRendererProps = {
974
974
  children: React.JSX.Element;
@@ -1067,6 +1067,39 @@ declare class AmityUIKitManager {
1067
1067
  * @returns True if the client is connected, false otherwise.
1068
1068
  */
1069
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>;
1070
1103
  static syncNetworkConfig(): Promise<NetworkConfig>;
1071
1104
  }
1072
1105
 
@@ -1075,14 +1108,14 @@ interface ChatHeaderProps {
1075
1108
  pageId?: string;
1076
1109
  componentId?: string;
1077
1110
  }
1078
- declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element;
1111
+ declare const ChatHeader: ({ channel, pageId }: ChatHeaderProps) => react_jsx_runtime.JSX.Element | null;
1079
1112
 
1080
1113
  interface AmityLiveChatMessageListProps {
1081
1114
  pageId?: string;
1082
1115
  channel: Amity.Channel;
1083
1116
  replyMessage: (message: Amity.Message<'text'>) => void;
1084
1117
  }
1085
- 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;
1086
1119
 
1087
1120
  type ComposeActionTypes = {
1088
1121
  replyMessage?: Amity.Message;
@@ -1097,7 +1130,7 @@ interface MessageComposerProps {
1097
1130
  disabled?: boolean;
1098
1131
  pageId?: string;
1099
1132
  }
1100
- 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;
1101
1134
 
1102
1135
  declare const MessageReactionPreview: ({ message, onClick, }: {
1103
1136
  message: Amity.Message;
@@ -1115,7 +1148,7 @@ interface MessageQuickReactionProps {
1115
1148
  message: Amity.Message;
1116
1149
  onSelectReaction?: () => void;
1117
1150
  }
1118
- 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;
1119
1152
 
1120
1153
  type MessageActionType = {
1121
1154
  onCopy?: () => void;
@@ -1206,7 +1239,7 @@ interface AmityViewStoryPageProps {
1206
1239
  }
1207
1240
  declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
1208
1241
 
1209
- declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1242
+ declare function StoryTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1210
1243
 
1211
1244
  declare enum HomePageTab {
1212
1245
  ForYou = "ForYou",
@@ -1220,7 +1253,7 @@ declare enum HomePageTab {
1220
1253
 
1221
1254
  declare function SocialHomePage({ activeTab: initialActiveTab }: {
1222
1255
  activeTab?: HomePageTab;
1223
- }): react_jsx_runtime.JSX.Element;
1256
+ }): react_jsx_runtime.JSX.Element | null;
1224
1257
  declare namespace SocialHomePage {
1225
1258
  var TabsSkeleton: () => react_jsx_runtime.JSX.Element;
1226
1259
  var FeedSkeleton: ({ pageId }: {
@@ -1230,13 +1263,13 @@ declare namespace SocialHomePage {
1230
1263
 
1231
1264
  declare function SelectPostTargetPage({ isClipPost }: {
1232
1265
  isClipPost?: boolean;
1233
- }): react_jsx_runtime.JSX.Element;
1266
+ }): react_jsx_runtime.JSX.Element | null;
1234
1267
 
1235
- declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element;
1268
+ declare function MyCommunitiesSearchPage(): react_jsx_runtime.JSX.Element | null;
1236
1269
 
1237
1270
  declare function SocialGlobalSearchPage({ keyword }: {
1238
1271
  keyword?: string;
1239
- }): react_jsx_runtime.JSX.Element;
1272
+ }): react_jsx_runtime.JSX.Element | null;
1240
1273
 
1241
1274
  type UserProfilePageProps = {
1242
1275
  userId: string;
@@ -1248,14 +1281,14 @@ interface EditUserProfilePageProps {
1248
1281
  }
1249
1282
  declare const EditUserProfilePage: React.FC<EditUserProfilePageProps>;
1250
1283
 
1251
- declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element;
1284
+ declare const BlockedUserPage: () => react_jsx_runtime.JSX.Element | null;
1252
1285
 
1253
- declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element;
1286
+ declare const UserPendingFollowRequestPage: () => react_jsx_runtime.JSX.Element | null;
1254
1287
 
1255
1288
  interface CommunityAddCategoryPageProps {
1256
1289
  category?: Amity.Category[];
1257
1290
  }
1258
- declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element;
1291
+ declare const CommunityAddCategoryPage: ({ category }: CommunityAddCategoryPageProps) => react_jsx_runtime.JSX.Element | null;
1259
1292
 
1260
1293
  interface CommunityAddMemberPageProps {
1261
1294
  member?: MemberCommunitySetup[];
@@ -1263,14 +1296,14 @@ interface CommunityAddMemberPageProps {
1263
1296
  closePopup?: () => void;
1264
1297
  onAddedAction?: (userId: string[]) => void;
1265
1298
  }
1266
- 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;
1267
1300
 
1268
1301
  type CommunityInviteMemberPageProps = {
1269
1302
  communityId?: string;
1270
1303
  users?: Amity.User[];
1271
1304
  onSubmit?: (userId: string[]) => void;
1272
1305
  };
1273
- declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element;
1306
+ declare const CommunityInviteMemberPage: (props: CommunityInviteMemberPageProps) => react_jsx_runtime.JSX.Element | null;
1274
1307
 
1275
1308
  interface CommunityProfileProps {
1276
1309
  communityId: string;
@@ -1281,48 +1314,48 @@ declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
1281
1314
  type CommunitySettingPageProps = {
1282
1315
  community: Amity.Community;
1283
1316
  };
1284
- declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element;
1317
+ declare const CommunitySettingPage: ({ community }: CommunitySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1285
1318
 
1286
1319
  type CommunityPostPermissionPageProps = {
1287
1320
  community: Amity.Community;
1288
1321
  };
1289
- declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element;
1322
+ declare const CommunityPostPermissionPage: ({ community }: CommunityPostPermissionPageProps) => react_jsx_runtime.JSX.Element | null;
1290
1323
 
1291
1324
  type CommunityStorySettingPageProps = {
1292
1325
  community: Amity.Community;
1293
1326
  };
1294
- declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element;
1327
+ declare const CommunityStorySettingPage: ({ community }: CommunityStorySettingPageProps) => react_jsx_runtime.JSX.Element | null;
1295
1328
 
1296
1329
  type PendingPostsPageProps = {
1297
1330
  communityId: string;
1298
1331
  };
1299
- declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element;
1332
+ declare const PendingPostsPage: ({ communityId }: PendingPostsPageProps) => react_jsx_runtime.JSX.Element | null;
1300
1333
 
1301
1334
  type CommunityMembershipPageProps = {
1302
1335
  community: Amity.Community;
1303
1336
  };
1304
- declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element;
1337
+ declare const CommunityMembershipPage: ({ community }: CommunityMembershipPageProps) => react_jsx_runtime.JSX.Element | null;
1305
1338
 
1306
1339
  type CommunityPendingInvitationPageProps = {
1307
1340
  community: Amity.Community;
1308
1341
  };
1309
- declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element;
1342
+ declare function CommunityPendingInvitationPage(props: CommunityPendingInvitationPageProps): react_jsx_runtime.JSX.Element | null;
1310
1343
 
1311
1344
  type PollPostComposerPageProps = {
1312
1345
  targetId: string | null;
1313
1346
  targetType: 'community' | 'user';
1314
1347
  pollType?: 'text' | 'image';
1315
1348
  };
1316
- 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;
1317
1350
 
1318
- declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1351
+ declare function PollTargetSelectionPage(): react_jsx_runtime.JSX.Element | null;
1319
1352
 
1320
- declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element;
1353
+ declare function AllCategoriesPage(): react_jsx_runtime.JSX.Element | null;
1321
1354
 
1322
1355
  interface CommunitiesByCategoryPageProps {
1323
1356
  categoryId: string;
1324
1357
  }
1325
- declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element;
1358
+ declare function CommunitiesByCategoryPage({ categoryId }: CommunitiesByCategoryPageProps): react_jsx_runtime.JSX.Element | null;
1326
1359
 
1327
1360
  type PendingRequestPageProps = {
1328
1361
  community: Amity.Community;
@@ -1334,7 +1367,7 @@ type DraftClipPageProps = {
1334
1367
  targetType: 'community' | 'user';
1335
1368
  community?: Amity.Community;
1336
1369
  };
1337
- 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;
1338
1371
 
1339
1372
  type ClipFeedPageProps = {
1340
1373
  currentPostId?: string;
@@ -1342,7 +1375,7 @@ type ClipFeedPageProps = {
1342
1375
  targetType?: 'community' | 'user';
1343
1376
  targetId?: string;
1344
1377
  };
1345
- 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;
1346
1379
 
1347
1380
  declare function EventTargetSelectionPage(): react_jsx_runtime.JSX.Element;
1348
1381
 
@@ -1365,7 +1398,7 @@ type CommentTrayProps = {
1365
1398
  referenceType: Amity.CommentReferenceType;
1366
1399
  commentCount?: number;
1367
1400
  };
1368
- 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;
1369
1402
 
1370
1403
  type StoryTabProps = ({
1371
1404
  type: 'communityFeed';
@@ -1416,7 +1449,7 @@ type UserSearchResultProps = {
1416
1449
  userCollection: Amity.User[];
1417
1450
  onClosePopover?: () => void;
1418
1451
  };
1419
- 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;
1420
1453
 
1421
1454
  type CommunitySearchResultProps = {
1422
1455
  pageId?: string;
@@ -1426,7 +1459,7 @@ type CommunitySearchResultProps = {
1426
1459
  onClosePopover?: () => void;
1427
1460
  communityCollection: Amity.Community[];
1428
1461
  };
1429
- 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;
1430
1463
 
1431
1464
  type TopSearchBarProps = {
1432
1465
  pageId?: string;
@@ -1443,7 +1476,24 @@ declare function TopSearchBar({ pageId, search, onFocus, hasCancelButton, initia
1443
1476
  type MyCommunitiesProps = {
1444
1477
  pageId?: string;
1445
1478
  };
1446
- 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;
1447
1497
 
1448
1498
  interface EmptyNewsfeedProps {
1449
1499
  pageId?: string;
@@ -1453,7 +1503,7 @@ declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): react_jsx_runtim
1453
1503
  type NewsfeedProps = {
1454
1504
  pageId?: string;
1455
1505
  };
1456
- declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element;
1506
+ declare const Newsfeed: ({ pageId }: NewsfeedProps) => react_jsx_runtime.JSX.Element | null;
1457
1507
 
1458
1508
  interface TopNavigationProps {
1459
1509
  pageId?: string;
@@ -1513,7 +1563,7 @@ interface UserFeedProps {
1513
1563
  feedSources?: FeedSourceEnum[];
1514
1564
  followStatus?: Amity.FollowStatus['status'] | null;
1515
1565
  }
1516
- 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;
1517
1567
 
1518
1568
  type UserImageFeedProps = {
1519
1569
  userId: string;
@@ -1534,7 +1584,7 @@ declare const UserVideoFeed: ({ pageId, userId, feedSources, followStatus, }: Us
1534
1584
  type ExploreProps = {
1535
1585
  pageId?: string;
1536
1586
  };
1537
- declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element;
1587
+ declare const Explore: ({ pageId }: ExploreProps) => react_jsx_runtime.JSX.Element | null;
1538
1588
 
1539
1589
  type InvitationBannerProps = {
1540
1590
  pageId?: string;
@@ -1542,7 +1592,7 @@ type InvitationBannerProps = {
1542
1592
  removeInvitation?: () => void;
1543
1593
  invitation?: Amity.Invitation;
1544
1594
  };
1545
- 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;
1546
1596
 
1547
1597
  type InvitationSectionProps = {
1548
1598
  pageId?: string;
@@ -1557,7 +1607,7 @@ type PendingPostListProps = {
1557
1607
  canReviewCommunityPosts?: boolean;
1558
1608
  refresh?: () => void;
1559
1609
  };
1560
- 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;
1561
1611
 
1562
1612
  type JoinRequestContentProps = {
1563
1613
  pageId?: string;
@@ -1565,7 +1615,7 @@ type JoinRequestContentProps = {
1565
1615
  isLoading: boolean;
1566
1616
  refresh?: () => void;
1567
1617
  };
1568
- 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;
1569
1619
 
1570
1620
  type FeedProps = {
1571
1621
  pageId?: string;
@@ -1600,7 +1650,7 @@ declare function FeedPost({ pageId, post, renderIndex, withAnalytics, onPostDele
1600
1650
  type ForYouFeedProps = {
1601
1651
  pageId: string;
1602
1652
  };
1603
- declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element;
1653
+ declare function ForYouFeed({ pageId }: ForYouFeedProps): react_jsx_runtime.JSX.Element | null;
1604
1654
 
1605
1655
  type FeedCaughtUpProps = {
1606
1656
  pageId?: string;