@epam/ai-dial-conversation-panel 1.3.0-dev.34 → 1.3.0-dev.343

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.
Files changed (59) hide show
  1. package/components/ConversationGroupHeader/ConversationGroupHeader.d.ts +3 -0
  2. package/components/ConversationGroupHeader/ConversationGroupHeader.d.ts.map +1 -1
  3. package/components/ConversationList/ConversationList.d.ts +5 -0
  4. package/components/ConversationList/ConversationList.d.ts.map +1 -0
  5. package/components/ConversationListHeader/ConversationListHeader.d.ts +5 -0
  6. package/components/ConversationListHeader/ConversationListHeader.d.ts.map +1 -0
  7. package/components/ConversationListSection/ConversationListSection.d.ts +5 -0
  8. package/components/ConversationListSection/ConversationListSection.d.ts.map +1 -0
  9. package/components/ConversationPanel/ConversationPanel.d.ts.map +1 -1
  10. package/components/ConversationRow/ConversationRow.d.ts +8 -0
  11. package/components/ConversationRow/ConversationRow.d.ts.map +1 -1
  12. package/components/ProjectRow/ProjectRow.d.ts +24 -0
  13. package/components/ProjectRow/ProjectRow.d.ts.map +1 -0
  14. package/components/ProjectRow/ProjectSeeAllRow.d.ts +19 -0
  15. package/components/ProjectRow/ProjectSeeAllRow.d.ts.map +1 -0
  16. package/components/RenameConversationPopup/RenameConversationPopup.d.ts.map +1 -1
  17. package/components/RowActionsMenu/RowActionsMenu.d.ts +20 -0
  18. package/components/RowActionsMenu/RowActionsMenu.d.ts.map +1 -0
  19. package/components/RowLink/RowLink.d.ts +12 -0
  20. package/components/RowLink/RowLink.d.ts.map +1 -0
  21. package/components/RowRenderer/RowRenderer.d.ts +2 -2
  22. package/components/RowRenderer/RowRenderer.d.ts.map +1 -1
  23. package/constants/public-class-names.d.ts +6 -0
  24. package/constants/public-class-names.d.ts.map +1 -1
  25. package/constants/virtual-list.d.ts +6 -0
  26. package/constants/virtual-list.d.ts.map +1 -1
  27. package/hooks/useRowActions.d.ts +17 -0
  28. package/hooks/useRowActions.d.ts.map +1 -0
  29. package/index.css +3 -2
  30. package/index.d.ts +9 -0
  31. package/index.d.ts.map +1 -1
  32. package/index.js +1820 -710
  33. package/models/conversation-list-header.d.ts +82 -0
  34. package/models/conversation-list-header.d.ts.map +1 -0
  35. package/models/conversation-list-section.d.ts +66 -0
  36. package/models/conversation-list-section.d.ts.map +1 -0
  37. package/models/conversation-list.d.ts +148 -0
  38. package/models/conversation-list.d.ts.map +1 -0
  39. package/models/panel-props.d.ts +31 -53
  40. package/models/panel-props.d.ts.map +1 -1
  41. package/models/pinned-projects.d.ts +61 -0
  42. package/models/pinned-projects.d.ts.map +1 -0
  43. package/models/rename-conversation-popup.d.ts +2 -0
  44. package/models/rename-conversation-popup.d.ts.map +1 -1
  45. package/models/virtual-row.d.ts +50 -1
  46. package/models/virtual-row.d.ts.map +1 -1
  47. package/package.json +6 -6
  48. package/types/conversation-kind.d.ts +7 -0
  49. package/types/conversation-kind.d.ts.map +1 -0
  50. package/types/conversation-row-variant.d.ts +8 -0
  51. package/types/conversation-row-variant.d.ts.map +1 -0
  52. package/types/virtual-row.d.ts +8 -2
  53. package/types/virtual-row.d.ts.map +1 -1
  54. package/utils/conversation-filter.d.ts +29 -0
  55. package/utils/conversation-filter.d.ts.map +1 -0
  56. package/utils/conversation-row.d.ts +17 -4
  57. package/utils/conversation-row.d.ts.map +1 -1
  58. package/components/ConversationPanel/utils.d.ts +0 -7
  59. package/components/ConversationPanel/utils.d.ts.map +0 -1
@@ -1,7 +1,9 @@
1
1
  import { FilterTab } from '@epam/ai-dial-chat-shared';
2
2
  import { DropdownItem } from '@epam/ai-dial-ui-kit';
3
+ import { ConversationRowVariant } from '../types/conversation-row-variant';
3
4
  import { VirtualRowKind } from '../types/virtual-row';
4
5
  import { ConversationItem } from './panel-props';
6
+ import { NestedRowPosition, PinnedProjectGroup } from './pinned-projects';
5
7
  /** A collapsible group header row in the virtual list. */
6
8
  interface GroupHeaderRow {
7
9
  /** Row discriminant. */
@@ -20,14 +22,41 @@ interface ConversationItemRow {
20
22
  /** The group this item belongs to — used for drag-and-drop validation. */
21
23
  groupKey: FilterTab;
22
24
  }
25
+ /** A pinned project row at the top of the Pinned section. */
26
+ interface ProjectRow {
27
+ /** Row discriminant. */
28
+ kind: VirtualRowKind.Project;
29
+ /** The project to render. */
30
+ project: PinnedProjectGroup;
31
+ }
32
+ /** A conversation row nested under a pinned project row. */
33
+ interface ProjectConversationRow extends NestedRowPosition {
34
+ /** Row discriminant. */
35
+ kind: VirtualRowKind.ProjectConversation;
36
+ /** The conversation to render. */
37
+ item: ConversationItem;
38
+ /** Id of the project the conversation is listed under. */
39
+ projectId: string;
40
+ }
41
+ /** The See all row closing a pinned project's nested rows. */
42
+ interface ProjectSeeAllRow extends NestedRowPosition {
43
+ /** Row discriminant. */
44
+ kind: VirtualRowKind.ProjectSeeAll;
45
+ /** The project whose chats the row opens. */
46
+ project: PinnedProjectGroup;
47
+ /** Id of the project, the same as `project.id`. */
48
+ projectId: string;
49
+ }
23
50
  /** Union of all possible virtual row shapes. */
24
- export type VirtualRow = GroupHeaderRow | ConversationItemRow;
51
+ export type VirtualRow = GroupHeaderRow | ConversationItemRow | ProjectRow | ProjectConversationRow | ProjectSeeAllRow;
25
52
  /** Typography/class overrides applied to virtual row elements. */
26
53
  interface RowStyles {
27
54
  /** Typography class applied to group header buttons. */
28
55
  groupHeaderClassName?: string;
29
56
  /** Typography class applied to conversation title text. */
30
57
  itemTitleClassName?: string;
58
+ /** Typography class applied to the title of an unread conversation. */
59
+ unreadItemTitleClassName?: string;
31
60
  /** CSS class applied to the icon badge in each conversation row. */
32
61
  itemIconBadgeClassName?: string;
33
62
  }
@@ -55,8 +84,28 @@ export interface RowRendererData {
55
84
  actionsLabel?: string;
56
85
  /** Accessible (visually hidden) label announced for the unread indicator dot. */
57
86
  unreadIndicatorLabel?: string;
87
+ /** Id of the project the host currently shows. */
88
+ activeProjectId?: string;
89
+ /** Called with the project `id` when a project row is activated. */
90
+ onSelectProject: (projectId: string) => void;
91
+ /** Called with the conversation `id` when a row nested under a project is activated. */
92
+ onSelectProjectConversation: (id: string) => void;
93
+ /** Called with the project `id` when a See all row is activated. */
94
+ onSeeAll: (projectId: string) => void;
95
+ /** Builds the ⋮ actions of a project row. */
96
+ getProjectActions?: (project: PinnedProjectGroup) => DropdownItem[];
97
+ /** Called when a project row's ⋮ menu opens. */
98
+ onProjectActionMenuOpen?: (project: PinnedProjectGroup, trigger: HTMLButtonElement) => void;
99
+ /** Visible text of a See all row. */
100
+ seeAllLabel?: string;
101
+ /** Builds the accessible name of a See all row from the project name. */
102
+ seeAllAriaLabel?: (name: string) => string;
58
103
  /** Typography/class overrides applied to virtual row elements. */
59
104
  styles?: RowStyles;
105
+ /** Presentation of conversation rows and group headers. Defaults to `ConversationRowVariant.Avatar`. */
106
+ rowVariant?: ConversationRowVariant;
107
+ /** Presentation of the chats nested under a pinned project. Defaults to `ConversationRowVariant.Indicator`. */
108
+ projectConversationVariant?: ConversationRowVariant;
60
109
  /** Id of the conversation currently being dragged. `null` when no drag is in progress. */
61
110
  draggingId: string | null;
62
111
  /** Id of the row (item or group header sentinel) currently under the drag cursor. */
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-row.d.ts","sourceRoot":"","sources":["../../src/models/virtual-row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,0DAA0D;AAC1D,UAAU,cAAc;IACtB,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IAC5B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,UAAU,mBAAmB;IA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;IAC3C,kEAAkE;IAClE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,wGAAwG;IACxG,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC,+GAA+G;IAC/G,0BAA0B,CAAC,EAAE,sBAAsB,CAAC;IACpD,0FAA0F;IAC1F,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qFAAqF;IACrF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mGAAmG;IACnG,iBAAiB,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACzC,+DAA+D;IAC/D,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kDAAkD;IAClD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gDAAgD;IAChD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gDAAgD;IAChD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,4EAA4E;IAC5E,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,KACnB,IAAI,CAAC;CACX"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-panel",
3
3
  "description": "Virtualized sidebar panel for browsing conversation history with grouping, tabs, and search",
4
- "version": "1.3.0-dev.34",
4
+ "version": "1.3.0-dev.343",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -17,14 +17,14 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "react-window": "^2.2.7",
21
- "@tabler/icons-react": "^3.44.0",
22
- "@epam/ai-dial-sidebar": "1.3.0-dev.34"
20
+ "react-window": "^2.5.3",
21
+ "@tabler/icons-react": "^3.50.0",
22
+ "@epam/ai-dial-sidebar": "1.3.0-dev.343"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.34",
27
- "@epam/ai-dial-ui-kit": "^0.15.3"
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.343",
27
+ "@epam/ai-dial-ui-kit": "^0.16.0"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -0,0 +1,7 @@
1
+ /** Which kinds of conversation the list shows: every one, only chats or only tasks. */
2
+ export declare enum ConversationTypeFilter {
3
+ All = "all",
4
+ Chat = "chat",
5
+ Task = "task"
6
+ }
7
+ //# sourceMappingURL=conversation-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-kind.d.ts","sourceRoot":"","sources":["../../src/types/conversation-kind.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,oBAAY,sBAAsB;IAChC,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;CACd"}
@@ -0,0 +1,8 @@
1
+ /** How a conversation row presents its leading slot and metrics. */
2
+ export declare enum ConversationRowVariant {
3
+ /** Deployment avatar (or `leadingIcon`) with a trailing unread dot — the panel's rows. */
4
+ Avatar = "avatar",
5
+ /** Leading status dot with no avatar — the navigation sidebar's rows. */
6
+ Indicator = "indicator"
7
+ }
8
+ //# sourceMappingURL=conversation-row-variant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-row-variant.d.ts","sourceRoot":"","sources":["../../src/types/conversation-row-variant.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,oBAAY,sBAAsB;IAChC,0FAA0F;IAC1F,MAAM,WAAW;IACjB,yEAAyE;IACzE,SAAS,cAAc;CACxB"}
@@ -1,6 +1,12 @@
1
- /** Discriminates between the two virtual row types in the conversation list. */
1
+ /** Discriminates between the virtual row types in the conversation list. */
2
2
  export declare enum VirtualRowKind {
3
3
  Header = "header",
4
- Item = "item"
4
+ Item = "item",
5
+ /** A pinned project row in the Pinned section. */
6
+ Project = "project",
7
+ /** A conversation nested under a pinned project row. */
8
+ ProjectConversation = "project-conversation",
9
+ /** The See all row that closes a pinned project's nested rows. */
10
+ ProjectSeeAll = "project-see-all"
5
11
  }
6
12
  //# sourceMappingURL=virtual-row.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-row.d.ts","sourceRoot":"","sources":["../../src/types/virtual-row.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
1
+ {"version":3,"file":"virtual-row.d.ts","sourceRoot":"","sources":["../../src/types/virtual-row.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,oBAAY,cAAc;IACxB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,kDAAkD;IAClD,OAAO,YAAY;IACnB,wDAAwD;IACxD,mBAAmB,yBAAyB;IAC5C,kEAAkE;IAClE,aAAa,oBAAoB;CAClC"}
@@ -0,0 +1,29 @@
1
+ import { FilterTab } from '@epam/ai-dial-chat-shared';
2
+ import { ConversationItem } from '../models/panel-props';
3
+ import { PinnedProjectGroup } from '../models/pinned-projects';
4
+ import { ConversationTypeFilter } from '../types/conversation-kind';
5
+ /** Returns whether a conversation item matches the currently selected filter tab. */
6
+ export declare const matchesTab: (item: ConversationItem, tab: FilterTab) => boolean;
7
+ /** Returns whether a conversation item is of the kind the type filter shows; an item without a kind is a chat. */
8
+ export declare const matchesKind: (item: ConversationItem, type: ConversationTypeFilter) => boolean;
9
+ /** Returns whether a conversation item title matches the current search query. */
10
+ export declare const matchesSearch: (item: ConversationItem, query: string) => boolean;
11
+ /** Search text and filters that narrow the pinned project trees. */
12
+ interface PinnedProjectFilters {
13
+ /** Current search text; empty keeps every project. */
14
+ searchQuery: string;
15
+ /** Origin tab applied to the list. */
16
+ activeFilter: FilterTab;
17
+ /** Kinds of conversation the list shows. */
18
+ activeTypeFilter: ConversationTypeFilter;
19
+ /** Sources excluded entirely. */
20
+ hiddenSources?: FilterTab[];
21
+ }
22
+ /**
23
+ * Returns the pinned projects that the search and the filters keep, in order. A
24
+ * project matched by name keeps all its rows; one matched only through its chats
25
+ * keeps the matching chats and loses its See all row.
26
+ */
27
+ export declare const filterPinnedProjects: (projects: PinnedProjectGroup[], { searchQuery, activeFilter, activeTypeFilter, hiddenSources, }: PinnedProjectFilters) => PinnedProjectGroup[];
28
+ export {};
29
+ //# sourceMappingURL=conversation-filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-filter.d.ts","sourceRoot":"","sources":["../../src/utils/conversation-filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qFAAqF;AACrF,eAAO,MAAM,UAAU,GAAI,MAAM,gBAAgB,EAAE,KAAK,SAAS,KAAG,OAGnE,CAAC;AAEF,kHAAkH;AAClH,eAAO,MAAM,WAAW,GACtB,MAAM,gBAAgB,EACtB,MAAM,sBAAsB,KAC3B,OAMF,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,aAAa,GACxB,MAAM,gBAAgB,EACtB,OAAO,MAAM,KACZ,OAGF,CAAC;AAEF,oEAAoE;AACpE,UAAU,oBAAoB;IAC5B,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,YAAY,EAAE,SAAS,CAAC;IACxB,4CAA4C;IAC5C,gBAAgB,EAAE,sBAAsB,CAAC;IACzC,iCAAiC;IACjC,aAAa,CAAC,EAAE,SAAS,EAAE,CAAC;CAC7B;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,GAC/B,UAAU,kBAAkB,EAAE,EAC9B,iEAKG,oBAAoB,KACtB,kBAAkB,EAoBpB,CAAC"}
@@ -1,19 +1,32 @@
1
- import { RowRendererData } from '../models/virtual-row';
1
+ import { NestedRowPosition, NestedRowProps, PinnedProjectGroup } from '../models/pinned-projects';
2
+ import { RowRendererData, VirtualRow } from '../models/virtual-row';
3
+ import { ConversationRowVariant } from '../types/conversation-row-variant';
2
4
  /** Number of skeleton placeholder rows shown while conversations are loading. */
3
5
  export declare const SKELETON_ROW_COUNT = 15;
4
6
  /** Returns a pseudo-randomised width percentage for the skeleton title bar at index `i`. */
5
7
  export declare const getSkeletonWidth: (i: number) => string;
6
8
  /**
7
9
  * Returns the inline-end padding Tailwind class for the row's ghost button based
8
- * on action state. The reserved gutter has to cover every state in which the
10
+ * on action state and row variant. The reserved gutter has to cover every state in which the
9
11
  * actions trigger is actually visible — hover *and* focus-within (see the
10
12
  * trigger's own visibility classes in `ConversationRow`). A row keeps focus
11
13
  * after it is clicked or dragged, so reserving on hover alone left the trigger
12
14
  * painted on top of the title's ellipsis once the pointer moved away.
13
15
  */
14
- export declare const getButtonPaddingEnd: (hasActions: boolean, isMenuOpen: boolean) => string;
15
- /** Returns the pixel height for a virtual list row (item, first group header, or subsequent group header). */
16
+ export declare const getButtonPaddingEnd: (hasActions: boolean, isMenuOpen: boolean, variant?: ConversationRowVariant) => string;
17
+ /** Returns the level-2 ARIA position and the indent and guide-line classes of a row nested under a project row. */
18
+ export declare const getNestedRowProps: (position: NestedRowPosition) => NestedRowProps;
19
+ /** Returns the pixel height for a virtual list row (item, first group header, or subsequent group header) in the active row variant; pinned project rows take the `Indicator` item height, except chats nested under a project in the `Avatar` variant. */
16
20
  export declare const getRowHeight: (index: number, rowProps: RowRendererData) => number;
17
21
  /** Returns how many rows to render beyond each edge of a viewport `height` pixels tall: half a viewport, at least 5. */
18
22
  export declare const getOverscanCount: (height: number) => number;
23
+ /** Returns the distinct conversation IDs of item rows in the inclusive `startIndex`–`stopIndex` range, in row order. */
24
+ export declare const getConversationIdsInRange: (rows: VirtualRow[], { startIndex, stopIndex }: {
25
+ startIndex: number;
26
+ stopIndex: number;
27
+ }) => string[];
28
+ /** Returns true when both ID sequences hold the same IDs in the same order. */
29
+ export declare const isSameIdSequence: (left: string[], right: string[]) => boolean;
30
+ /** Returns a pinned project's rows: the project row, one row per conversation and the See all row when `hasMore` is set. */
31
+ export declare const buildProjectRows: (project: PinnedProjectGroup) => VirtualRow[];
19
32
  //# sourceMappingURL=conversation-row.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-row.d.ts","sourceRoot":"","sources":["../../src/utils/conversation-row.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAG7D,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,4FAA4F;AAC5F,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,WAA+B,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,OAAO,EACnB,YAAY,OAAO,KAClB,MAIF,CAAC;AAEF,8GAA8G;AAC9G,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,UAAU,eAAe,KACxB,MAIF,CAAC;AAKF,wHAAwH;AACxH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MAI/C,CAAC"}
1
+ {"version":3,"file":"conversation-row.d.ts","sourceRoot":"","sources":["../../src/utils/conversation-row.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,4FAA4F;AAC5F,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,WAA+B,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,OAAO,EACnB,YAAY,OAAO,EACnB,UAAS,sBAAsD,KAC9D,MAMF,CAAC;AAEF,mHAAmH;AACnH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,iBAAiB,KAC1B,cAUD,CAAC;AAEH,2PAA2P;AAC3P,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,UAAU,eAAe,KACxB,MAuBF,CAAC;AAKF,wHAAwH;AACxH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,MAAM,KAAG,MAI/C,CAAC;AAEJ,wHAAwH;AACxH,eAAO,MAAM,yBAAyB,GACpC,MAAM,UAAU,EAAE,EAClB,2BAA2B;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,KACnE,MAAM,EAWR,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,EAAE,EAAE,OAAO,MAAM,EAAE,KAAG,OAEnB,CAAC;AAEjD,4HAA4H;AAC5H,eAAO,MAAM,gBAAgB,GAAI,SAAS,kBAAkB,KAAG,UAAU,EA0BxE,CAAC"}
@@ -1,7 +0,0 @@
1
- import { FilterTab } from '@epam/ai-dial-chat-shared';
2
- import { ConversationItem } from '../../models/panel-props';
3
- /** Returns whether a conversation item matches the currently selected filter tab. */
4
- export declare const matchesTab: (item: ConversationItem, tab: FilterTab) => boolean;
5
- /** Returns whether a conversation item title matches the current search query. */
6
- export declare const matchesSearch: (item: ConversationItem, query: string) => boolean;
7
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationPanel/utils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,qFAAqF;AACrF,eAAO,MAAM,UAAU,GAAI,MAAM,gBAAgB,EAAE,KAAK,SAAS,KAAG,OAGnE,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,aAAa,GACxB,MAAM,gBAAgB,EACtB,OAAO,MAAM,KACZ,OAGF,CAAC"}