@epam/ai-dial-conversation-panel 1.1.0-dev.290 → 1.1.0-dev.293

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.
@@ -0,0 +1,88 @@
1
+ import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
2
+ import { CSSProperties } from 'react';
3
+ /** Labels for every user-visible string in `ImportExportQueue`. */
4
+ export interface ImportExportQueueLabels {
5
+ /** Primary label for a job targeting all conversations. */
6
+ allConversationsJobLabel: string;
7
+ /** Returns the accessible name for the dismiss control of an in-progress job. */
8
+ closeJobAriaLabel: (title: string) => string;
9
+ /** Returns the accessible name for the retry control of a failed job. */
10
+ retryJobAriaLabel: (title: string) => string;
11
+ /** Accessible name for the queue collapse toggle when the panel is expanded. */
12
+ collapseQueueAriaLabel: string;
13
+ /** Accessible name for the queue expand toggle when the panel is collapsed. */
14
+ expandQueueAriaLabel: string;
15
+ /** Accessible name for the queue close button. */
16
+ closeQueueAriaLabel: string;
17
+ /** Heading text of the close-confirmation dialog. */
18
+ closeQueueConfirmHeader: string;
19
+ /** Confirmation dialog description when at least one job is InProgress and none are Failed. */
20
+ closeQueueConfirmDescriptionInProgress: string;
21
+ /** Confirmation dialog description when at least one job is Failed and none are InProgress. */
22
+ closeQueueConfirmDescriptionFailed: string;
23
+ /** Confirmation dialog description when there are both InProgress and Failed jobs. */
24
+ closeQueueConfirmDescriptionMixed: string;
25
+ /** Label for the confirmation dialog's confirm button. */
26
+ closeLabel: string;
27
+ /** Label for the confirmation dialog's cancel button. */
28
+ cancelLabel: string;
29
+ }
30
+ /** Color overrides for `ImportExportQueue`. */
31
+ export interface ImportExportQueueColors {
32
+ /** Queue panel background. */
33
+ background?: string;
34
+ /** Heading and job-label text. */
35
+ text?: string;
36
+ /** Breadcrumb and neutral icon color. */
37
+ textSecondary?: string;
38
+ /** Successful-job status icon color. */
39
+ successIcon?: string;
40
+ /** Failed-job status icon color. */
41
+ errorIcon?: string;
42
+ /** Failed-job count badge background. */
43
+ failureCountBackground?: string;
44
+ /** Failed-job count badge text. */
45
+ failureCountText?: string;
46
+ }
47
+ /** Typography class overrides for `ImportExportQueue`. */
48
+ export interface ImportExportQueueTypography {
49
+ /** Class applied to the queue heading. */
50
+ titleClassName?: string;
51
+ /** Class applied to a job label. */
52
+ jobLabelClassName?: string;
53
+ /** Class applied to a job source breadcrumb. */
54
+ jobDescriptionClassName?: string;
55
+ /** Class applied to the failed-job count badge. */
56
+ failureCountClassName?: string;
57
+ }
58
+ /** Combined style overrides for `ImportExportQueue`. */
59
+ export interface ImportExportQueueStyles {
60
+ /** Color overrides applied as CSS custom properties. */
61
+ colors?: ImportExportQueueColors;
62
+ /** Typography class overrides. */
63
+ typography?: ImportExportQueueTypography;
64
+ /** Extra class name(s) merged onto the queue root. */
65
+ rootClassName?: string;
66
+ /** Extra class name(s) merged onto the scrollable jobs container. */
67
+ bodyClassName?: string;
68
+ /** Arbitrary CSS custom properties applied after typed color overrides. */
69
+ cssVars?: CSSProperties;
70
+ }
71
+ /** Props accepted by `ImportExportQueue`. */
72
+ export interface ImportExportQueueProps {
73
+ /** Queue panel heading (e.g. `"Exporting"`). */
74
+ title: string;
75
+ /** Current list of transfer jobs. */
76
+ jobs: ConversationTransferJob[];
77
+ /** Called when the queue should close (after confirmation if needed). */
78
+ onClose: () => void;
79
+ /** Called with the job id when the user dismisses an in-progress job. */
80
+ onDismiss: (jobId: string) => void;
81
+ /** Called with the job id when the user retries a failed job. */
82
+ onRetry: (jobId: string) => void;
83
+ /** User-visible string labels. */
84
+ labels: ImportExportQueueLabels;
85
+ /** Color, typography, class, and CSS-variable overrides. */
86
+ styles?: ImportExportQueueStyles;
87
+ }
88
+ //# sourceMappingURL=import-export-queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"import-export-queue.d.ts","sourceRoot":"","sources":["../../src/models/import-export-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,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,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gDAAgD;IAChD,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,mDAAmD;IACnD,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,wDAAwD;AACxD,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,kCAAkC;IAClC,UAAU,CAAC,EAAE,2BAA2B,CAAC;IACzC,sDAAsD;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,yEAAyE;IACzE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,yEAAyE;IACzE,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,iEAAiE;IACjE,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,kCAAkC;IAClC,MAAM,EAAE,uBAAuB,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
@@ -0,0 +1,47 @@
1
+ import { CSSProperties } from 'react';
2
+ /** Labels for every user-visible string in `RenameConversationPopup`. */
3
+ export interface RenameConversationPopupLabels {
4
+ /** Popup dialog heading. */
5
+ popupTitle: string;
6
+ /** Placeholder text for the name input. */
7
+ inputPlaceholder: string;
8
+ /** Accessible name and tooltip for the AI-generation trigger button. */
9
+ renameWithAiLabel: string;
10
+ /** Error shown when the AI name generation request fails. */
11
+ renameWithAiError: string;
12
+ /** Error shown when the trimmed name's UTF-8 byte length exceeds 255. */
13
+ nameTooLongError: string;
14
+ /** Label for the save/confirm button. */
15
+ saveLabel: string;
16
+ /** Label for the cancel button. */
17
+ cancelLabel: string;
18
+ }
19
+ /** Style overrides for `RenameConversationPopup` content. */
20
+ export interface RenameConversationPopupStyles {
21
+ /** Extra class name(s) merged onto the popup body wrapper. */
22
+ bodyClassName?: string;
23
+ /** Arbitrary CSS custom properties inherited by the popup content. */
24
+ cssVars?: CSSProperties;
25
+ }
26
+ /** Props accepted by `RenameConversationPopup`. */
27
+ export interface RenameConversationPopupProps {
28
+ /** Whether the popup is visible. */
29
+ isOpen: boolean;
30
+ /** The conversation's current name, pre-filled into the input on open. */
31
+ currentTitle: string;
32
+ /** While `true`, the input/buttons are replaced by a loading indicator. */
33
+ isSaving: boolean;
34
+ /** API-level error message, or `null` when none. */
35
+ error: string | null;
36
+ /** Called with the trimmed, sanitized new name when the user confirms. */
37
+ onSave: (newTitle: string) => void;
38
+ /** Called when the user cancels or closes the popup. */
39
+ onCancel: () => void;
40
+ /** Called to request an AI-generated name; must resolve with the generated string. */
41
+ onGenerateWithAi: () => Promise<string>;
42
+ /** User-visible string labels. */
43
+ labels: RenameConversationPopupLabels;
44
+ /** Class and CSS-variable overrides for the popup content. */
45
+ styles?: RenameConversationPopupStyles;
46
+ }
47
+ //# sourceMappingURL=rename-conversation-popup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rename-conversation-popup.d.ts","sourceRoot":"","sources":["../../src/models/rename-conversation-popup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,yEAAyE;AACzE,MAAM,WAAW,6BAA6B;IAC5C,4BAA4B;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3C,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yEAAyE;IACzE,gBAAgB,EAAE,MAAM,CAAC;IACzB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,6DAA6D;AAC7D,MAAM,WAAW,6BAA6B;IAC5C,8DAA8D;IAC9D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,sEAAsE;IACtE,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,mDAAmD;AACnD,MAAM,WAAW,4BAA4B;IAC3C,oCAAoC;IACpC,MAAM,EAAE,OAAO,CAAC;IAChB,0EAA0E;IAC1E,YAAY,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,QAAQ,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,0EAA0E;IAC1E,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,sFAAsF;IACtF,gBAAgB,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IACxC,kCAAkC;IAClC,MAAM,EAAE,6BAA6B,CAAC;IACtC,8DAA8D;IAC9D,MAAM,CAAC,EAAE,6BAA6B,CAAC;CACxC"}
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.1.0-dev.290",
4
+ "version": "1.1.0-dev.293",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -23,8 +23,8 @@
23
23
  "peerDependencies": {
24
24
  "react": "^19.0.0",
25
25
  "@tabler/icons-react": "^3.0.0",
26
- "@epam/ai-dial-chat-shared": "1.1.0-dev.290",
27
- "@epam/ai-dial-sidebar": "1.1.0-dev.290"
26
+ "@epam/ai-dial-chat-shared": "1.1.0-dev.293",
27
+ "@epam/ai-dial-sidebar": "1.1.0-dev.293"
28
28
  },
29
29
  "repository": {
30
30
  "type": "git",
@@ -1,9 +1,2 @@
1
- /** Filter tab identifier; also used as conversation source and group key. */
2
- export declare enum FilterTab {
3
- All = "all",
4
- Pinned = "pinned",
5
- MyChats = "my-chats",
6
- Shared = "shared",
7
- Organization = "organization"
8
- }
1
+ export { FilterTab } from '@epam/ai-dial-chat-shared';
9
2
  //# sourceMappingURL=conversation-classification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-classification.d.ts","sourceRoot":"","sources":["../../src/types/conversation-classification.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,OAAO,aAAa;IACpB,MAAM,WAAW;IACjB,YAAY,iBAAiB;CAC9B"}
1
+ {"version":3,"file":"conversation-classification.d.ts","sourceRoot":"","sources":["../../src/types/conversation-classification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC"}