@medipha/chat 1.0.32 → 1.0.34
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.cjs +9 -9
- package/dist/index.js +935 -904
- package/dist/module/widget/widget-conversation-screen.d.ts +0 -5
- package/dist/pages/conversation/conversation-footer/conversation-footer.d.ts +4 -1
- package/dist/pages/conversation/index.d.ts +3 -0
- package/dist/pages/sidebar/index.d.ts +2 -1
- package/dist/pages/sidebar/sidebar-filter/sidebar-filter.d.ts +2 -2
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,5 @@ interface WidgetConversationScreenProps {
|
|
|
6
6
|
onOpenAllConversations?: () => void;
|
|
7
7
|
onRequestClose?: () => void;
|
|
8
8
|
}
|
|
9
|
-
/** The anchored rail plus, once a conversation is picked, one floating chat window.
|
|
10
|
-
* The window is portalled to the document rather than rendered inside the rail: it is a
|
|
11
|
-
* modal that floats over the host page, so it must not inherit the rail's box, stacking
|
|
12
|
-
* context or width. It carries no settings column — the header's zoom button hands the
|
|
13
|
-
* conversation to the host's full-page chat instead. */
|
|
14
9
|
export declare function WidgetConversationScreen({ isWindowVisible, isExpanded, onToggleExpand, onOpenFullPage, onOpenAllConversations, onRequestClose, }: WidgetConversationScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
15
10
|
export {};
|
|
@@ -42,8 +42,11 @@ interface ConversationFooterProps {
|
|
|
42
42
|
imageUploadInputRef: RefObject<HTMLInputElement>;
|
|
43
43
|
acceptAttribute: string;
|
|
44
44
|
}
|
|
45
|
+
export interface ConversationFooterHandle {
|
|
46
|
+
focusComposer: () => void;
|
|
47
|
+
}
|
|
45
48
|
/** The message composer itself — toolbar + input — plus its two hidden file inputs. Owns
|
|
46
49
|
* turning a submitted draft (text and/or staged attachments) into outgoing messages,
|
|
47
50
|
* including uploading any staged files before they're sent. */
|
|
48
|
-
export declare
|
|
51
|
+
export declare const ConversationFooter: import('react').ForwardRefExoticComponent<ConversationFooterProps & import('react').RefAttributes<ConversationFooterHandle>>;
|
|
49
52
|
export {};
|
|
@@ -3,6 +3,9 @@ export interface ConversationGroupHandle {
|
|
|
3
3
|
/** Jumps the message timeline to the given message — used by the page-level SearchPanel,
|
|
4
4
|
* which lives outside this group but needs to drive its message window. */
|
|
5
5
|
loadAround: (messageId: string) => Promise<boolean> | boolean;
|
|
6
|
+
/** Hands the caret to the composer without waiting for it to be ready — the composer's
|
|
7
|
+
* own focus defers until the editor has initialised (see runOnEditor). */
|
|
8
|
+
focusComposer: () => void;
|
|
6
9
|
}
|
|
7
10
|
interface ConversationGroupProps {
|
|
8
11
|
conversationId: string | undefined;
|
|
@@ -4,9 +4,10 @@ interface ConversationSidebarProps {
|
|
|
4
4
|
footerAction?: ReactNode;
|
|
5
5
|
/** Avatar-only rail: rows carry no visible name, so each one needs a hover title. */
|
|
6
6
|
isCompact?: boolean;
|
|
7
|
+
disableTooltips?: boolean;
|
|
7
8
|
}
|
|
8
9
|
/** Left rail listing conversations with search, unread filter, and creation entry. Owns the
|
|
9
10
|
* search/filter state shared by its filter row and list, and the conversation feed itself —
|
|
10
11
|
* its 3 sub-parts (header-infor, filter, conversation-list) are otherwise independent. */
|
|
11
|
-
export declare function ConversationSidebar({ headerAction, footerAction, isCompact, }?: ConversationSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function ConversationSidebar({ headerAction, footerAction, isCompact, disableTooltips, }?: ConversationSidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -5,7 +5,7 @@ interface SidebarFilterProps {
|
|
|
5
5
|
activeFilter: SidebarConversationFilter;
|
|
6
6
|
onActiveFilterChange: (filter: SidebarConversationFilter) => void;
|
|
7
7
|
onOpenCreate: () => void;
|
|
8
|
-
|
|
8
|
+
disableTooltip?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare function SidebarFilter({ searchTerm, onSearchTermChange, activeFilter, onActiveFilterChange, onOpenCreate,
|
|
10
|
+
export declare function SidebarFilter({ searchTerm, onSearchTermChange, activeFilter, onActiveFilterChange, onOpenCreate, disableTooltip, }: SidebarFilterProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|