@medipha/feed 0.3.6 → 0.3.7
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/app/newsfeed-module.types.d.ts +6 -0
- package/dist/app/runtime/feed-runtime-context.d.ts +1 -0
- package/dist/index.cjs +10 -10
- package/dist/index.js +2677 -2853
- package/dist/shared/components/user-profile-link.d.ts +4 -1
- package/dist/shared/utils/chat-share.d.ts +0 -30
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/dist/shared/components/user-profile-modal.d.ts +0 -9
|
@@ -5,6 +5,12 @@ export interface NewsfeedModuleProps {
|
|
|
5
5
|
basePath: string;
|
|
6
6
|
onUnauthorized?: () => void;
|
|
7
7
|
onNavigateOutsideFeed?: (path: string) => void;
|
|
8
|
+
/**
|
|
9
|
+
* A click on a colleague's avatar or name. The host shows the chat widget's own "Thông tin tài
|
|
10
|
+
* khoản" dialog for that user id (ChatWidget `openProfileRequest`), whose "Nhắn tin" opens the
|
|
11
|
+
* conversation in the widget. Without it avatars and names are not clickable.
|
|
12
|
+
*/
|
|
13
|
+
onOpenUserProfile?: (userId: string) => void;
|
|
8
14
|
/**
|
|
9
15
|
* The feed never offers post creation (that lives in NewsfeedAdminModule).
|
|
10
16
|
* false also disables reactions, comments and the post actions menu. Defaults to true.
|
|
@@ -12,6 +12,7 @@ export interface FeedRuntime {
|
|
|
12
12
|
postUrl: (postId: string) => string;
|
|
13
13
|
postUrlPath: (postId: string) => string;
|
|
14
14
|
onNavigateOutsideFeed?: NewsfeedModuleProps['onNavigateOutsideFeed'];
|
|
15
|
+
onOpenUserProfile?: NewsfeedModuleProps['onOpenUserProfile'];
|
|
15
16
|
}
|
|
16
17
|
export declare const FeedRuntimeContext: import('react').Context<FeedRuntime | undefined>;
|
|
17
18
|
export declare function useFeedRuntime(): FeedRuntime;
|