@medipha/chat 1.0.51 → 1.0.52
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/features/files/file-attachment.d.ts +4 -1
- package/dist/features/tags/tag-filter-dropdown.d.ts +25 -0
- package/dist/features/tags/tag-filter.d.ts +4 -0
- package/dist/features/tags/tag-form-dialog.d.ts +10 -0
- package/dist/features/tags/tag-manager-modal.d.ts +6 -0
- package/dist/features/tags/tag-quick-picker.d.ts +12 -0
- package/dist/index.cjs +66 -66
- package/dist/index.js +11018 -10051
- package/dist/pages/Setting/archive/archive-file-list.d.ts +2 -1
- package/dist/pages/Setting/archive/archive-media-grid.d.ts +2 -1
- package/dist/pages/Setting/archive/archive-view.d.ts +2 -1
- package/dist/pages/conversation/conversation-header/conversation-header.d.ts +3 -2
- package/dist/pages/sidebar/sidbar-conversation-list/conversation-list-row.d.ts +19 -0
- package/dist/pages/sidebar/sidbar-conversation-list/conversation-more-menu.d.ts +14 -0
- package/dist/pages/sidebar/sidbar-conversation-list/sidbar-conversation-list.d.ts +7 -2
- package/dist/pages/sidebar/sidebar-filter/sidebar-filter.d.ts +4 -1
- package/dist/shared/components/conversation-tag-label.d.ts +13 -0
- package/dist/store/conversationsStore.d.ts +4 -1
- package/dist/store/tagsStore.d.ts +16 -0
- package/dist/styles.css +1 -1
- package/dist/utils/chat.d.ts +6 -0
- package/package.json +2 -2
|
@@ -7,6 +7,9 @@ interface FileAttachmentProps {
|
|
|
7
7
|
onShare?: () => void;
|
|
8
8
|
/** When provided, a 4th action jumps back to the message this attachment was sent in. */
|
|
9
9
|
onJumpToMessage?: () => void;
|
|
10
|
+
/** Whether the conversation this attachment belongs to is a group — only meaningful
|
|
11
|
+
* alongside `onJumpToMessage`, to word that action's tooltip. */
|
|
12
|
+
isGroup?: boolean;
|
|
10
13
|
/**
|
|
11
14
|
* Settings/archive layout: the whole card is clickable to preview and gets a subtle hover
|
|
12
15
|
* zoom. Chat bubbles leave this off. The action row is always on the same line as the
|
|
@@ -20,5 +23,5 @@ interface FileAttachmentProps {
|
|
|
20
23
|
* new tab) and Download actions, plus optional Share. Used in chat bubbles, the settings
|
|
21
24
|
* document list, and the archive.
|
|
22
25
|
*/
|
|
23
|
-
export declare function FileAttachment({ attachment, meta, onShare, onJumpToMessage, inline }: FileAttachmentProps): import('react/jsx-runtime').JSX.Element;
|
|
26
|
+
export declare function FileAttachment({ attachment, meta, onShare, onJumpToMessage, isGroup, inline, }: FileAttachmentProps): import('react/jsx-runtime').JSX.Element;
|
|
24
27
|
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface MenuPosition {
|
|
2
|
+
top?: number;
|
|
3
|
+
bottom?: number;
|
|
4
|
+
left: number;
|
|
5
|
+
maxHeight: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function computeMenuPosition(trigger: HTMLElement, { menuWidth, align }?: {
|
|
8
|
+
menuWidth?: number;
|
|
9
|
+
align?: 'left' | 'right';
|
|
10
|
+
}): MenuPosition;
|
|
11
|
+
export interface TagFilterOptionRowProps {
|
|
12
|
+
label: string;
|
|
13
|
+
color?: string;
|
|
14
|
+
isChecked: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
onToggle: () => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function TagFilterOptionRow({ label, color, isChecked, disabled, onToggle, }: TagFilterOptionRowProps): import('react/jsx-runtime').JSX.Element;
|
|
19
|
+
interface TagFilterDropdownProps {
|
|
20
|
+
selectedFilters: string[];
|
|
21
|
+
onChange: (selectedFilters: string[]) => void;
|
|
22
|
+
onManageTags?: () => void;
|
|
23
|
+
}
|
|
24
|
+
export declare function TagFilterDropdown({ selectedFilters, onChange, onManageTags }: TagFilterDropdownProps): import('react/jsx-runtime').JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Conversation, ConversationTag } from '../../utils/chat';
|
|
2
|
+
export declare const TAG_FILTER_UNTAGGED = "untagged";
|
|
3
|
+
export declare function resolveTagFilter(selectedFilters: string[], tags: ConversationTag[]): string[];
|
|
4
|
+
export declare function matchesTagFilter(conversation: Conversation, selectedFilters: string[]): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TagPayload } from '@medipha/chat-core';
|
|
2
|
+
import { ConversationTag } from '../../utils/chat';
|
|
3
|
+
interface TagFormDialogProps {
|
|
4
|
+
editingTag?: ConversationTag;
|
|
5
|
+
existingTags: ConversationTag[];
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onSubmit: (payload: TagPayload) => Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare function TagFormDialog({ editingTag, existingTags, onClose, onSubmit }: TagFormDialogProps): import('react/jsx-runtime').JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { Conversation } from '../../utils/chat';
|
|
3
|
+
interface TagQuickPickerProps {
|
|
4
|
+
conversation: Conversation;
|
|
5
|
+
triggerRef: RefObject<HTMLButtonElement | null>;
|
|
6
|
+
onManageTags: () => void;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
variant?: 'standalone' | 'submenu';
|
|
9
|
+
submenuAlign?: 'left' | 'right';
|
|
10
|
+
}
|
|
11
|
+
export declare function TagQuickPicker({ conversation, triggerRef, onManageTags, onClose, variant, submenuAlign, }: TagQuickPickerProps): import('react/jsx-runtime').JSX.Element | null;
|
|
12
|
+
export {};
|