@amityco/ulta-ui-kit 1.0.0-alpha.9 → 1.0.0-beta.1
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/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/CircularStd-Black-M6FYDJME.woff2 +0 -0
- package/dist/CircularStd-Black-PNLLRW5C.woff +0 -0
- package/dist/CircularStd-Black-YMQQKCA3.ttf +0 -0
- package/dist/CircularStd-BlackItalic-BWOJUVN3.ttf +0 -0
- package/dist/CircularStd-BlackItalic-G62XUQUP.woff2 +0 -0
- package/dist/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/CircularStd-BlackItalic-NVQVXG5L.woff +0 -0
- package/dist/CircularStd-Bold-3YZD2D54.woff +0 -0
- package/dist/CircularStd-Bold-OBIX2X7G.woff2 +0 -0
- package/dist/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/CircularStd-Bold-UGQNNLCJ.ttf +0 -0
- package/dist/CircularStd-BoldItalic-53VUNMNP.ttf +0 -0
- package/dist/CircularStd-BoldItalic-7MYBAB7V.woff2 +0 -0
- package/dist/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/CircularStd-BoldItalic-S4EXYNAA.woff +0 -0
- package/dist/CircularStd-Book-JPHT3EYH.eot +0 -0
- package/dist/CircularStd-Book-QH24MWNT.woff2 +0 -0
- package/dist/CircularStd-Book-WO57ECZG.woff +0 -0
- package/dist/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/CircularStd-BookItalic-FKVXO6VC.woff +0 -0
- package/dist/CircularStd-BookItalic-JMRK2M3F.ttf +0 -0
- package/dist/CircularStd-BookItalic-LYDC7HJ5.eot +0 -0
- package/dist/CircularStd-BookItalic-N7R5KSUJ.woff2 +0 -0
- package/dist/CircularStd-Medium-27RJ4G7E.woff +0 -0
- package/dist/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/CircularStd-Medium-MVVUHW3Z.woff2 +0 -0
- package/dist/CircularStd-Medium-TPGRKUIA.ttf +0 -0
- package/dist/CircularStd-MediumItalic-6VIHMKHS.woff +0 -0
- package/dist/CircularStd-MediumItalic-MGFTUSP5.woff2 +0 -0
- package/dist/CircularStd-MediumItalic-PWSPA5NY.ttf +0 -0
- package/dist/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/esm/CircularStd-Black-EL754VZN.eot +0 -0
- package/dist/esm/CircularStd-Black-M6FYDJME.woff2 +0 -0
- package/dist/esm/CircularStd-Black-PNLLRW5C.woff +0 -0
- package/dist/esm/CircularStd-Black-YMQQKCA3.ttf +0 -0
- package/dist/esm/CircularStd-BlackItalic-BWOJUVN3.ttf +0 -0
- package/dist/esm/CircularStd-BlackItalic-G62XUQUP.woff2 +0 -0
- package/dist/esm/CircularStd-BlackItalic-MBNBDZUU.eot +0 -0
- package/dist/esm/CircularStd-BlackItalic-NVQVXG5L.woff +0 -0
- package/dist/esm/CircularStd-Bold-3YZD2D54.woff +0 -0
- package/dist/esm/CircularStd-Bold-OBIX2X7G.woff2 +0 -0
- package/dist/esm/CircularStd-Bold-QHAMEMSL.eot +0 -0
- package/dist/esm/CircularStd-Bold-UGQNNLCJ.ttf +0 -0
- package/dist/esm/CircularStd-BoldItalic-53VUNMNP.ttf +0 -0
- package/dist/esm/CircularStd-BoldItalic-7MYBAB7V.woff2 +0 -0
- package/dist/esm/CircularStd-BoldItalic-A6ZIS4PA.eot +0 -0
- package/dist/esm/CircularStd-BoldItalic-S4EXYNAA.woff +0 -0
- package/dist/esm/CircularStd-Book-JPHT3EYH.eot +0 -0
- package/dist/esm/CircularStd-Book-QH24MWNT.woff2 +0 -0
- package/dist/esm/CircularStd-Book-WO57ECZG.woff +0 -0
- package/dist/esm/CircularStd-Book-X7C7G6T7.ttf +0 -0
- package/dist/esm/CircularStd-BookItalic-FKVXO6VC.woff +0 -0
- package/dist/esm/CircularStd-BookItalic-JMRK2M3F.ttf +0 -0
- package/dist/esm/CircularStd-BookItalic-LYDC7HJ5.eot +0 -0
- package/dist/esm/CircularStd-BookItalic-N7R5KSUJ.woff2 +0 -0
- package/dist/esm/CircularStd-Medium-27RJ4G7E.woff +0 -0
- package/dist/esm/CircularStd-Medium-CYDQT5MI.eot +0 -0
- package/dist/esm/CircularStd-Medium-MVVUHW3Z.woff2 +0 -0
- package/dist/esm/CircularStd-Medium-TPGRKUIA.ttf +0 -0
- package/dist/esm/CircularStd-MediumItalic-6VIHMKHS.woff +0 -0
- package/dist/esm/CircularStd-MediumItalic-MGFTUSP5.woff2 +0 -0
- package/dist/esm/CircularStd-MediumItalic-PWSPA5NY.ttf +0 -0
- package/dist/esm/CircularStd-MediumItalic-QZO45QYZ.eot +0 -0
- package/dist/esm/index.css +1 -1
- package/dist/esm/index.js +2558 -2048
- package/dist/index.css +1 -1
- package/dist/index.d.mts +198 -135
- package/dist/index.d.ts +198 -135
- package/dist/index.js +2635 -2120
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +4 -5
- package/readme.md +130 -10
- package/dist/DeleteIcon-JDFUIJH2.svg +0 -10
- package/dist/Welcome-WSYGNAL7.svg +0 -14
- package/dist/WelcomeDesktop-CP7A4QPB.svg +0 -14
- package/dist/esm/DeleteIcon-JDFUIJH2.svg +0 -10
- package/dist/esm/Welcome-WSYGNAL7.svg +0 -14
- package/dist/esm/WelcomeDesktop-CP7A4QPB.svg +0 -14
package/dist/index.d.mts
CHANGED
|
@@ -37,7 +37,7 @@ interface UiKitProviderProps {
|
|
|
37
37
|
mqtt?: string;
|
|
38
38
|
};
|
|
39
39
|
userId: string;
|
|
40
|
-
displayName
|
|
40
|
+
displayName?: string;
|
|
41
41
|
customComponents?: CustomComponentType;
|
|
42
42
|
postRendererConfig?: PostRendererConfigType;
|
|
43
43
|
theme?: Record<string, unknown>;
|
|
@@ -78,7 +78,7 @@ interface FeedProps {
|
|
|
78
78
|
readonly?: boolean;
|
|
79
79
|
isHiddenProfile?: boolean;
|
|
80
80
|
}
|
|
81
|
-
declare const _default$
|
|
81
|
+
declare const _default$3: (props: FeedProps) => React.JSX.Element;
|
|
82
82
|
|
|
83
83
|
declare const Community: () => React.JSX.Element;
|
|
84
84
|
|
|
@@ -102,6 +102,15 @@ interface ExplorePageProps {
|
|
|
102
102
|
}
|
|
103
103
|
declare const ExplorePage: ({ isOpen, toggleOpen, hideSideMenu }: ExplorePageProps) => React.JSX.Element;
|
|
104
104
|
|
|
105
|
+
interface PostProps {
|
|
106
|
+
postId: string;
|
|
107
|
+
className?: string;
|
|
108
|
+
hidePostTarget?: boolean;
|
|
109
|
+
readonly?: boolean;
|
|
110
|
+
onDeleted?: (postId: string) => void;
|
|
111
|
+
}
|
|
112
|
+
declare const _default$2: React.MemoExoticComponent<(props: PostProps) => React.JSX.Element>;
|
|
113
|
+
|
|
105
114
|
declare const addChatMembers: (channelId: string, userIds: string[]) => Promise<boolean>;
|
|
106
115
|
|
|
107
116
|
declare const removeChatMembers: (channelId: string, userIds: string[]) => Promise<boolean>;
|
|
@@ -116,8 +125,10 @@ declare const enum PageTypes {
|
|
|
116
125
|
CommunityFeed = "communityfeed",
|
|
117
126
|
CommunityEdit = "communityedit",
|
|
118
127
|
UserEdit = "useredit",
|
|
128
|
+
PostDetail = "postdetail",
|
|
119
129
|
ViewStory = "viewstory",
|
|
120
|
-
DraftPage = "draftpage"
|
|
130
|
+
DraftPage = "draftpage",
|
|
131
|
+
MyCommunities = "mycommunities"
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
type AmityStoryMediaType$1 = {
|
|
@@ -167,6 +178,14 @@ type Page = {
|
|
|
167
178
|
targetId: string;
|
|
168
179
|
targetType: Amity.StoryTargetType;
|
|
169
180
|
storyType: 'communityFeed' | 'globalFeed';
|
|
181
|
+
} | {
|
|
182
|
+
type: PageTypes.MyCommunities;
|
|
183
|
+
communityId?: string;
|
|
184
|
+
} | {
|
|
185
|
+
type: PageTypes.PostDetail;
|
|
186
|
+
communityId?: string;
|
|
187
|
+
targetId?: string;
|
|
188
|
+
targetType?: string;
|
|
170
189
|
};
|
|
171
190
|
type ContextValue = {
|
|
172
191
|
page: Page;
|
|
@@ -187,6 +206,7 @@ type ContextValue = {
|
|
|
187
206
|
okText: ReactNode;
|
|
188
207
|
onOk?: () => void;
|
|
189
208
|
} | null | undefined) => void;
|
|
209
|
+
onClickNoti: (targetId: string, targetType: string) => void;
|
|
190
210
|
};
|
|
191
211
|
declare const useNavigation: () => ContextValue;
|
|
192
212
|
|
|
@@ -292,7 +312,15 @@ declare class AmityUIKitManager {
|
|
|
292
312
|
* @param onConnected - The callback function to be called when connected.
|
|
293
313
|
* @param onDisconnected - The callback function to be called when disconnected.
|
|
294
314
|
*/
|
|
295
|
-
static registerDevice(userId
|
|
315
|
+
static registerDevice({ userId, displayName, sessionHandler, authToken, onConnectionStatusChange, onConnected, onDisconnected, }: {
|
|
316
|
+
userId: string;
|
|
317
|
+
displayName?: string;
|
|
318
|
+
sessionHandler: SessionHandler;
|
|
319
|
+
authToken?: string;
|
|
320
|
+
onConnectionStatusChange?: (state: Amity.SessionStates) => void;
|
|
321
|
+
onConnected?: () => void;
|
|
322
|
+
onDisconnected?: () => void;
|
|
323
|
+
}): Promise<void>;
|
|
296
324
|
/**
|
|
297
325
|
* Sets the AmityClient instance to be used by the AmityUIKitManager.
|
|
298
326
|
* This method is useful when sharing the AmityClient instance between different parts of the application.
|
|
@@ -322,135 +350,6 @@ declare class AmityUIKitManager {
|
|
|
322
350
|
isClientConnected(): boolean;
|
|
323
351
|
}
|
|
324
352
|
|
|
325
|
-
interface CommentTrayProps {
|
|
326
|
-
referenceType: Amity.CommentReferenceType;
|
|
327
|
-
referenceId: string;
|
|
328
|
-
community: Amity.Community;
|
|
329
|
-
shouldAllowInteraction: boolean;
|
|
330
|
-
shouldAllowCreation?: boolean;
|
|
331
|
-
pageId?: string;
|
|
332
|
-
}
|
|
333
|
-
declare const CommentTray: ({ pageId, referenceType, referenceId, community, shouldAllowInteraction, shouldAllowCreation, }: CommentTrayProps) => React.JSX.Element;
|
|
334
|
-
|
|
335
|
-
interface ReactionListProps$1 {
|
|
336
|
-
pageId: string;
|
|
337
|
-
referenceId: string;
|
|
338
|
-
referenceType: Amity.ReactableType;
|
|
339
|
-
}
|
|
340
|
-
declare const ReactionList: ({ pageId, referenceId, referenceType }: ReactionListProps$1) => React.JSX.Element | null;
|
|
341
|
-
|
|
342
|
-
interface ReactionListProps {
|
|
343
|
-
referenceId: string;
|
|
344
|
-
referenceType: Amity.ReactableType;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
type StoryTabProps = ({
|
|
348
|
-
type: 'communityFeed';
|
|
349
|
-
communityId: string;
|
|
350
|
-
} | {
|
|
351
|
-
type: 'globalFeed';
|
|
352
|
-
}) & {
|
|
353
|
-
pageId?: string;
|
|
354
|
-
};
|
|
355
|
-
declare const StoryTab: React.FC<StoryTabProps>;
|
|
356
|
-
|
|
357
|
-
interface CreatePostMenuProps {
|
|
358
|
-
pageId: string;
|
|
359
|
-
}
|
|
360
|
-
declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Element;
|
|
361
|
-
|
|
362
|
-
interface MediaAttachmentProps {
|
|
363
|
-
pageId: string;
|
|
364
|
-
uploadLoading?: boolean;
|
|
365
|
-
isVisibleCamera: boolean;
|
|
366
|
-
isVisibleImage: boolean;
|
|
367
|
-
isVisibleVideo: boolean;
|
|
368
|
-
onVideoFileChange?: (files: File[]) => void;
|
|
369
|
-
onImageFileChange?: (files: File[]) => void;
|
|
370
|
-
}
|
|
371
|
-
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
372
|
-
|
|
373
|
-
interface DetailedMediaAttachmentProps {
|
|
374
|
-
pageId: string;
|
|
375
|
-
isVisibleCamera: boolean;
|
|
376
|
-
isVisibleImage: boolean;
|
|
377
|
-
isVisibleVideo: boolean;
|
|
378
|
-
onVideoFileChange?: (files: File[]) => void;
|
|
379
|
-
onImageFileChange?: (files: File[]) => void;
|
|
380
|
-
}
|
|
381
|
-
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
382
|
-
|
|
383
|
-
interface UserSearchResultProps {
|
|
384
|
-
pageId?: string;
|
|
385
|
-
userCollection: Amity.User[];
|
|
386
|
-
isLoading: boolean;
|
|
387
|
-
onLoadMore: () => void;
|
|
388
|
-
}
|
|
389
|
-
declare const UserSearchResult: ({ pageId, userCollection, isLoading, onLoadMore, }: UserSearchResultProps) => React.JSX.Element;
|
|
390
|
-
|
|
391
|
-
interface CommunitySearchResultProps {
|
|
392
|
-
pageId?: string;
|
|
393
|
-
communityCollection: Amity.Community[];
|
|
394
|
-
isLoading: boolean;
|
|
395
|
-
onLoadMore: () => void;
|
|
396
|
-
}
|
|
397
|
-
declare const CommunitySearchResult: ({ pageId, communityCollection, isLoading, onLoadMore, }: CommunitySearchResultProps) => React.JSX.Element;
|
|
398
|
-
|
|
399
|
-
interface TopSearchBarProps {
|
|
400
|
-
pageId?: string;
|
|
401
|
-
search: (keyword: string) => void;
|
|
402
|
-
}
|
|
403
|
-
declare function TopSearchBar({ pageId, search }: TopSearchBarProps): React.JSX.Element | null;
|
|
404
|
-
|
|
405
|
-
interface PostContentProps {
|
|
406
|
-
pageId?: string;
|
|
407
|
-
post: Amity.Post;
|
|
408
|
-
type: 'feed' | 'detail';
|
|
409
|
-
drawerRef?: React.RefObject<HTMLDivElement>;
|
|
410
|
-
onClick?: () => void;
|
|
411
|
-
onPostDeleted?: (post: Amity.Post) => void;
|
|
412
|
-
}
|
|
413
|
-
declare const PostContent: ({ pageId, post: initialPost, type, drawerRef, onClick, onPostDeleted, }: PostContentProps) => React.JSX.Element;
|
|
414
|
-
|
|
415
|
-
interface MyCommunitiesProps {
|
|
416
|
-
pageId?: string;
|
|
417
|
-
}
|
|
418
|
-
declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => React.JSX.Element;
|
|
419
|
-
|
|
420
|
-
interface GlobalFeedProps {
|
|
421
|
-
pageId?: string;
|
|
422
|
-
componentId?: string;
|
|
423
|
-
items: Array<Amity.Post | Amity.Ad>;
|
|
424
|
-
isLoading: boolean;
|
|
425
|
-
onFeedReachBottom: () => void;
|
|
426
|
-
onPostDeleted?: (post: Amity.Post) => void;
|
|
427
|
-
}
|
|
428
|
-
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
429
|
-
|
|
430
|
-
interface EmptyNewsfeedProps {
|
|
431
|
-
pageId?: string;
|
|
432
|
-
}
|
|
433
|
-
declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): React.JSX.Element | null;
|
|
434
|
-
|
|
435
|
-
interface NewsfeedProps {
|
|
436
|
-
pageId?: string;
|
|
437
|
-
}
|
|
438
|
-
declare const Newsfeed: ({ pageId }: NewsfeedProps) => React.JSX.Element;
|
|
439
|
-
|
|
440
|
-
declare enum HomePageTab {
|
|
441
|
-
Newsfeed = "Newsfeed",
|
|
442
|
-
Explore = "Explore",
|
|
443
|
-
MyCommunities = "My communities"
|
|
444
|
-
}
|
|
445
|
-
declare function SocialHomePage(): React.JSX.Element;
|
|
446
|
-
|
|
447
|
-
interface TopNavigationProps {
|
|
448
|
-
pageId?: string;
|
|
449
|
-
selectedTab?: HomePageTab;
|
|
450
|
-
onClickPostCreationButton?: () => void;
|
|
451
|
-
}
|
|
452
|
-
declare function TopNavigation({ pageId, selectedTab, onClickPostCreationButton, }: TopNavigationProps): React.JSX.Element | null;
|
|
453
|
-
|
|
454
353
|
interface ChatHeaderProps {
|
|
455
354
|
channel: Amity.Channel | null;
|
|
456
355
|
pageId?: string;
|
|
@@ -507,6 +406,18 @@ type MessageActionType = {
|
|
|
507
406
|
onMention?: () => void;
|
|
508
407
|
};
|
|
509
408
|
|
|
409
|
+
interface ReactionListProps$1 {
|
|
410
|
+
pageId: string;
|
|
411
|
+
referenceId: string;
|
|
412
|
+
referenceType: Amity.ReactableType;
|
|
413
|
+
}
|
|
414
|
+
declare const ReactionList: ({ pageId, referenceId, referenceType }: ReactionListProps$1) => React.JSX.Element | null;
|
|
415
|
+
|
|
416
|
+
interface ReactionListProps {
|
|
417
|
+
referenceId: string;
|
|
418
|
+
referenceType: Amity.ReactableType;
|
|
419
|
+
}
|
|
420
|
+
|
|
510
421
|
interface LiveChatProps {
|
|
511
422
|
channelId: Amity.Channel['channelId'];
|
|
512
423
|
}
|
|
@@ -567,6 +478,13 @@ declare const ViewStoryPage: React.FC<AmityViewStoryPageProps>;
|
|
|
567
478
|
|
|
568
479
|
declare function StoryTargetSelectionPage(): React.JSX.Element;
|
|
569
480
|
|
|
481
|
+
declare enum HomePageTab {
|
|
482
|
+
Newsfeed = "Newsfeed",
|
|
483
|
+
Explore = "Explore",
|
|
484
|
+
MyCommunities = "My communities"
|
|
485
|
+
}
|
|
486
|
+
declare function SocialHomePage(): React.JSX.Element;
|
|
487
|
+
|
|
570
488
|
declare enum Mode {
|
|
571
489
|
CREATE = "create",
|
|
572
490
|
EDIT = "edit"
|
|
@@ -590,9 +508,154 @@ declare function MyCommunitiesSearchPage(): React.JSX.Element;
|
|
|
590
508
|
|
|
591
509
|
declare function SocialGlobalSearchPage(): React.JSX.Element;
|
|
592
510
|
|
|
511
|
+
declare enum AmityPostContentComponentStyle {
|
|
512
|
+
FEED = "feed",
|
|
513
|
+
DETAIL = "detail"
|
|
514
|
+
}
|
|
515
|
+
declare enum AmityPostCategory {
|
|
516
|
+
GENERAL = "general",
|
|
517
|
+
ANNOUNCEMENT = "announcement",
|
|
518
|
+
PIN = "pin"
|
|
519
|
+
}
|
|
520
|
+
interface PostContentProps {
|
|
521
|
+
post: Amity.Post;
|
|
522
|
+
onClick?: () => void;
|
|
523
|
+
onPostDeleted?: (post: Amity.Post) => void;
|
|
524
|
+
style: AmityPostContentComponentStyle;
|
|
525
|
+
category: AmityPostCategory;
|
|
526
|
+
hideMenu?: boolean;
|
|
527
|
+
hideTarget?: boolean;
|
|
528
|
+
pageId?: string;
|
|
529
|
+
}
|
|
530
|
+
declare const PostContent: ({ pageId, post: initialPost, onClick, onPostDeleted, category, hideMenu, hideTarget, style, }: PostContentProps) => React.JSX.Element;
|
|
531
|
+
|
|
593
532
|
interface PostDetailPageProps {
|
|
594
533
|
id: string;
|
|
534
|
+
hideTarget?: boolean;
|
|
535
|
+
category?: AmityPostCategory;
|
|
536
|
+
}
|
|
537
|
+
declare function PostDetailPage({ id, hideTarget, category }: PostDetailPageProps): React.JSX.Element;
|
|
538
|
+
|
|
539
|
+
interface CommunityProfileProps {
|
|
540
|
+
communityId: string;
|
|
541
|
+
}
|
|
542
|
+
declare const CommunityProfilePage: React.FC<CommunityProfileProps>;
|
|
543
|
+
|
|
544
|
+
interface CommentTrayProps {
|
|
545
|
+
referenceType: Amity.CommentReferenceType;
|
|
546
|
+
referenceId: string;
|
|
547
|
+
community: Amity.Community;
|
|
548
|
+
shouldAllowInteraction: boolean;
|
|
549
|
+
shouldAllowCreation?: boolean;
|
|
550
|
+
pageId?: string;
|
|
551
|
+
}
|
|
552
|
+
declare const CommentTray: ({ pageId, referenceType, referenceId, community, shouldAllowInteraction, shouldAllowCreation, }: CommentTrayProps) => React.JSX.Element;
|
|
553
|
+
|
|
554
|
+
type StoryTabProps = ({
|
|
555
|
+
type: 'communityFeed';
|
|
556
|
+
communityId: string;
|
|
557
|
+
} | {
|
|
558
|
+
type: 'globalFeed';
|
|
559
|
+
}) & {
|
|
560
|
+
pageId?: string;
|
|
561
|
+
};
|
|
562
|
+
declare const StoryTab: React.FC<StoryTabProps>;
|
|
563
|
+
|
|
564
|
+
interface CreatePostMenuProps {
|
|
565
|
+
pageId: string;
|
|
566
|
+
}
|
|
567
|
+
declare function CreatePostMenu({ pageId }: CreatePostMenuProps): React.JSX.Element;
|
|
568
|
+
|
|
569
|
+
interface MediaAttachmentProps {
|
|
570
|
+
pageId: string;
|
|
571
|
+
uploadLoading?: boolean;
|
|
572
|
+
isVisibleCamera: boolean;
|
|
573
|
+
isVisibleImage: boolean;
|
|
574
|
+
isVisibleVideo: boolean;
|
|
575
|
+
onVideoFileChange?: (files: File[]) => void;
|
|
576
|
+
onImageFileChange?: (files: File[]) => void;
|
|
577
|
+
}
|
|
578
|
+
declare function MediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: MediaAttachmentProps): React.JSX.Element | null;
|
|
579
|
+
|
|
580
|
+
interface DetailedMediaAttachmentProps {
|
|
581
|
+
pageId: string;
|
|
582
|
+
isVisibleCamera: boolean;
|
|
583
|
+
isVisibleImage: boolean;
|
|
584
|
+
isVisibleVideo: boolean;
|
|
585
|
+
onVideoFileChange?: (files: File[]) => void;
|
|
586
|
+
onImageFileChange?: (files: File[]) => void;
|
|
587
|
+
}
|
|
588
|
+
declare function DetailedMediaAttachment({ pageId, isVisibleCamera, isVisibleImage, isVisibleVideo, onVideoFileChange, onImageFileChange, }: DetailedMediaAttachmentProps): React.JSX.Element | null;
|
|
589
|
+
|
|
590
|
+
interface UserSearchResultProps {
|
|
591
|
+
pageId?: string;
|
|
592
|
+
userCollection: Amity.User[];
|
|
593
|
+
isLoading: boolean;
|
|
594
|
+
onLoadMore: () => void;
|
|
595
|
+
}
|
|
596
|
+
declare const UserSearchResult: ({ pageId, userCollection, isLoading, onLoadMore, }: UserSearchResultProps) => React.JSX.Element;
|
|
597
|
+
|
|
598
|
+
interface CommunitySearchResultProps {
|
|
599
|
+
pageId?: string;
|
|
600
|
+
communityCollection: Amity.Community[];
|
|
601
|
+
isLoading: boolean;
|
|
602
|
+
onLoadMore: () => void;
|
|
603
|
+
}
|
|
604
|
+
declare const CommunitySearchResult: ({ pageId, communityCollection, isLoading, onLoadMore, }: CommunitySearchResultProps) => React.JSX.Element;
|
|
605
|
+
|
|
606
|
+
interface TopSearchBarProps {
|
|
607
|
+
pageId?: string;
|
|
608
|
+
search: (keyword: string) => void;
|
|
609
|
+
}
|
|
610
|
+
declare function TopSearchBar({ pageId, search }: TopSearchBarProps): React.JSX.Element | null;
|
|
611
|
+
|
|
612
|
+
interface MyCommunitiesProps {
|
|
613
|
+
pageId?: string;
|
|
614
|
+
}
|
|
615
|
+
declare const MyCommunities: ({ pageId }: MyCommunitiesProps) => React.JSX.Element;
|
|
616
|
+
|
|
617
|
+
interface GlobalFeedProps {
|
|
618
|
+
pageId?: string;
|
|
619
|
+
componentId?: string;
|
|
620
|
+
items: Array<Amity.Post | Amity.Ad>;
|
|
621
|
+
isLoading: boolean;
|
|
622
|
+
onFeedReachBottom: () => void;
|
|
623
|
+
onPostDeleted?: (post: Amity.Post) => void;
|
|
624
|
+
}
|
|
625
|
+
declare const GlobalFeed: ({ pageId, componentId, items, isLoading, onFeedReachBottom, onPostDeleted, }: GlobalFeedProps) => React.JSX.Element;
|
|
626
|
+
|
|
627
|
+
interface EmptyNewsfeedProps {
|
|
628
|
+
pageId?: string;
|
|
629
|
+
}
|
|
630
|
+
declare function EmptyNewsfeed({ pageId }: EmptyNewsfeedProps): React.JSX.Element | null;
|
|
631
|
+
|
|
632
|
+
interface NewsfeedProps {
|
|
633
|
+
pageId?: string;
|
|
634
|
+
}
|
|
635
|
+
declare const Newsfeed: ({ pageId }: NewsfeedProps) => React.JSX.Element;
|
|
636
|
+
|
|
637
|
+
interface TopNavigationProps {
|
|
638
|
+
pageId?: string;
|
|
639
|
+
selectedTab?: HomePageTab;
|
|
640
|
+
onClickPostCreationButton?: () => void;
|
|
641
|
+
}
|
|
642
|
+
declare function TopNavigation({ pageId, selectedTab, onClickPostCreationButton, }: TopNavigationProps): React.JSX.Element | null;
|
|
643
|
+
|
|
644
|
+
interface CommunityProfileHeaderProps {
|
|
645
|
+
pageId?: string;
|
|
646
|
+
community: Amity.Community;
|
|
647
|
+
}
|
|
648
|
+
declare const CommunityHeader: React.FC<CommunityProfileHeaderProps>;
|
|
649
|
+
|
|
650
|
+
interface CommunityFeedProps {
|
|
651
|
+
communityId: string;
|
|
652
|
+
pageId?: string;
|
|
653
|
+
}
|
|
654
|
+
declare const CommunityFeed: ({ pageId, communityId }: CommunityFeedProps) => React.JSX.Element | null;
|
|
655
|
+
|
|
656
|
+
interface CommunityPinnedPostProps {
|
|
657
|
+
communityId?: string;
|
|
595
658
|
}
|
|
596
|
-
declare
|
|
659
|
+
declare const CommunityPinnedPost: ({ communityId }: CommunityPinnedPostProps) => React.JSX.Element;
|
|
597
660
|
|
|
598
|
-
export { _default$1 as AmityAvatar, CommentTray as AmityCommentTrayComponent, CommunitySearchResult as AmityCommunitySearchResultComponent, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, AmityDraftStoryPage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, GlobalFeed as AmityGlobalFeedComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, Newsfeed as AmityNewsFeedComponent, PostComposerPage as AmityPostComposerPage, PostContainer as AmityPostContainer, PostContent as AmityPostContentComponent, PostDetailPage as AmityPostDetailPage, _default as AmityPostEngagementBar, SelectPostTargetPage as AmityPostTargetSelectionPage, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, 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, ChatApplication as AmityUiKitChat, _default$
|
|
661
|
+
export { _default$1 as AmityAvatar, CommentTray as AmityCommentTrayComponent, CommunityFeed as AmityCommunityFeedComponent, CommunityHeader as AmityCommunityHeaderComponent, CommunityPinnedPost as AmityCommunityPinnedPostComponent, CommunityProfilePage as AmityCommunityProfilePage, CommunitySearchResult as AmityCommunitySearchResultComponent, CreatePostMenu as AmityCreatePostMenuComponent, DetailedMediaAttachment as AmityDetailedMediaAttachmentComponent, AmityDraftStoryPage, EmptyNewsfeed as AmityEmptyNewsFeedComponent, CommentText as AmityExpandableText, GlobalFeed as AmityGlobalFeedComponent, ChatHeader as AmityLiveChatHeader, MessageComposer as AmityLiveChatMessageComposeBar, MessageList as AmityLiveChatMessageList, MessageQuickReaction as AmityLiveChatMessageQuickReaction, MessageReactionPicker as AmityLiveChatMessageReactionPicker, MessageReactionPreview as AmityLiveChatMessageReactionPreview, LiveChat as AmityLiveChatPage, MediaAttachment as AmityMediaAttachmentComponent, type MessageActionType as AmityMessageActionType, MyCommunities as AmityMyCommunitiesComponent, MyCommunitiesSearchPage as AmityMyCommunitiesSearchPage, Newsfeed as AmityNewsFeedComponent, PostComposerPage as AmityPostComposerPage, PostContainer as AmityPostContainer, PostContent as AmityPostContentComponent, _default$2 as AmityPostDetail, PostDetailPage as AmityPostDetailPage, _default as AmityPostEngagementBar, SelectPostTargetPage as AmityPostTargetSelectionPage, ReactionList as AmityReactionListComponent, type ReactionListProps as AmityReactionListProps, 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, ChatApplication as AmityUiKitChat, _default$3 as AmityUiKitFeed, UiKitProvider as AmityUiKitProvider, Community as AmityUiKitSocial, UserSearchResult as AmityUserSearchResultComponent, ViewStoryPage as AmityViewStoryPage, ExplorePage, addChatMembers as amityAddChatMembers, removeChatMembers as amityRemoveChatMembers, useNavigation as useAmityNavigation, useSDK as useAmitySDK, useUser as useAmityUser };
|