@epam/ai-dial-conversation-panel 1.1.0-dev.321 → 1.1.0-dev.331
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/components/ImportExportQueue/ImportExportQueue.d.ts.map +1 -1
- package/components/ImportExportQueueHeader/ImportExportQueueHeader.d.ts +24 -0
- package/components/ImportExportQueueHeader/ImportExportQueueHeader.d.ts.map +1 -0
- package/components/ImportExportQueueRow/ImportExportQueueRow.d.ts +17 -0
- package/components/ImportExportQueueRow/ImportExportQueueRow.d.ts.map +1 -0
- package/constants/import-export-queue.d.ts +4 -0
- package/constants/import-export-queue.d.ts.map +1 -0
- package/index.css +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +394 -344
- package/models/import-export-queue.d.ts +43 -18
- package/models/import-export-queue.d.ts.map +1 -1
- package/package.json +3 -3
- package/utils/transfer-file.d.ts +10 -0
- package/utils/transfer-file.d.ts.map +1 -0
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
import { ConversationTransferJob } from '@epam/ai-dial-chat-shared';
|
|
1
|
+
import { ConversationTransferErrorCode, ConversationTransferJob, ConversationTransferWarningCode } from '@epam/ai-dial-chat-shared';
|
|
2
2
|
import { CSSProperties } from 'react';
|
|
3
3
|
/** Labels for every user-visible string in `ImportExportQueue`. */
|
|
4
4
|
export interface ImportExportQueueLabels {
|
|
5
|
-
/**
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
/** Returns the
|
|
10
|
-
|
|
5
|
+
/** Returns the accessible name for the cancel control of an in-progress job. */
|
|
6
|
+
cancelJobAriaLabel: (fileName: string) => string;
|
|
7
|
+
/** Trailing text shown on a canceled row. */
|
|
8
|
+
canceledLabel: string;
|
|
9
|
+
/** Returns the tooltip text explaining why a job failed. */
|
|
10
|
+
jobErrorMessage: (code: ConversationTransferErrorCode | undefined) => string;
|
|
11
|
+
/** Returns the accessible name for a row's in-progress spinner. */
|
|
12
|
+
jobProgressAriaLabel: (fileName: string) => string;
|
|
13
|
+
/** Returns the tooltip text explaining what a warned job left out. */
|
|
14
|
+
jobWarningMessage: (code: ConversationTransferWarningCode | undefined) => string;
|
|
15
|
+
/** Accessible name for the collapsed queue's aggregate progress bar. */
|
|
16
|
+
queueProgressAriaLabel: string;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the aggregate bar's `aria-valuetext`. Given settled and total job
|
|
19
|
+
* counts rather than a percentage, because "3 of 10 files" reads better than
|
|
20
|
+
* "36%" when the work is a list of files.
|
|
21
|
+
*/
|
|
22
|
+
queueProgressValueText: (completed: number, total: number) => string;
|
|
11
23
|
/** Accessible name for the queue collapse toggle when the panel is expanded. */
|
|
12
24
|
collapseQueueAriaLabel: string;
|
|
13
25
|
/** Accessible name for the queue expand toggle when the panel is collapsed. */
|
|
@@ -33,12 +45,20 @@ export interface ImportExportQueueColors {
|
|
|
33
45
|
background?: string;
|
|
34
46
|
/** Heading and job-label text. */
|
|
35
47
|
text?: string;
|
|
36
|
-
/**
|
|
48
|
+
/** Neutral icon color and the canceled row's dimmed file name. */
|
|
37
49
|
textSecondary?: string;
|
|
38
50
|
/** Successful-job status icon color. */
|
|
39
51
|
successIcon?: string;
|
|
40
52
|
/** Failed-job status icon color. */
|
|
41
53
|
errorIcon?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Warned-job status icon color. The aggregate progress bar has no
|
|
56
|
+
* counterpart here: it is the UI kit's `ProgressBar`, which themes its own
|
|
57
|
+
* track and fill from the same 2.0 tokens.
|
|
58
|
+
*/
|
|
59
|
+
warningIcon?: string;
|
|
60
|
+
/** Divider between the header and the job rows. */
|
|
61
|
+
divider?: string;
|
|
42
62
|
/** Failed-job count badge background. */
|
|
43
63
|
failureCountBackground?: string;
|
|
44
64
|
/** Failed-job count badge text. */
|
|
@@ -46,13 +66,13 @@ export interface ImportExportQueueColors {
|
|
|
46
66
|
}
|
|
47
67
|
/** Typography class overrides for `ImportExportQueue`. */
|
|
48
68
|
export interface ImportExportQueueTypography {
|
|
49
|
-
/** Class applied to the queue heading. */
|
|
69
|
+
/** Class applied to the queue heading. Defaults to `'dial-small-semi-text'`. */
|
|
50
70
|
titleClassName?: string;
|
|
51
|
-
/** Class applied to a job
|
|
71
|
+
/** Class applied to a job's file name. Defaults to `'dial-small-text'`. */
|
|
52
72
|
jobLabelClassName?: string;
|
|
53
|
-
/** Class applied to
|
|
54
|
-
|
|
55
|
-
/** Class applied to the failed-job count badge. */
|
|
73
|
+
/** Class applied to the canceled row's trailing label. Defaults to `'dial-small-text'`. */
|
|
74
|
+
canceledLabelClassName?: string;
|
|
75
|
+
/** Class applied to the failed-job count badge. Defaults to `'dial-small-semi-text'`. */
|
|
56
76
|
failureCountClassName?: string;
|
|
57
77
|
}
|
|
58
78
|
/** Combined style overrides for `ImportExportQueue`. */
|
|
@@ -70,16 +90,21 @@ export interface ImportExportQueueStyles {
|
|
|
70
90
|
}
|
|
71
91
|
/** Props accepted by `ImportExportQueue`. */
|
|
72
92
|
export interface ImportExportQueueProps {
|
|
73
|
-
/**
|
|
93
|
+
/**
|
|
94
|
+
* Queue panel heading, rendered verbatim. The host composes any count into
|
|
95
|
+
* it (e.g. `t(key, { count: jobs.length })`); the component never pluralizes.
|
|
96
|
+
*/
|
|
74
97
|
title: string;
|
|
75
98
|
/** Current list of transfer jobs. */
|
|
76
99
|
jobs: ConversationTransferJob[];
|
|
77
100
|
/** Called when the queue should close (after confirmation if needed). */
|
|
78
101
|
onClose: () => void;
|
|
79
|
-
/**
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Called with the job id when the user cancels an in-progress job. The host
|
|
104
|
+
* is expected to abort the work and leave the job in `jobs` with status
|
|
105
|
+
* `Canceled`.
|
|
106
|
+
*/
|
|
107
|
+
onCancel: (jobId: string) => void;
|
|
83
108
|
/** User-visible string labels. */
|
|
84
109
|
labels: ImportExportQueueLabels;
|
|
85
110
|
/** Color, typography, class, and CSS-variable overrides. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-export-queue.d.ts","sourceRoot":"","sources":["../../src/models/import-export-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"import-export-queue.d.ts","sourceRoot":"","sources":["../../src/models/import-export-queue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,uBAAuB,EACvB,+BAA+B,EAChC,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,gFAAgF;IAChF,kBAAkB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACjD,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,4DAA4D;IAC5D,eAAe,EAAE,CAAC,IAAI,EAAE,6BAA6B,GAAG,SAAS,KAAK,MAAM,CAAC;IAC7E,mEAAmE;IACnE,oBAAoB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;IACnD,sEAAsE;IACtE,iBAAiB,EAAE,CACjB,IAAI,EAAE,+BAA+B,GAAG,SAAS,KAC9C,MAAM,CAAC;IACZ,wEAAwE;IACxE,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACrE,gFAAgF;IAChF,sBAAsB,EAAE,MAAM,CAAC;IAC/B,+EAA+E;IAC/E,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;IAC5B,qDAAqD;IACrD,uBAAuB,EAAE,MAAM,CAAC;IAChC,+FAA+F;IAC/F,sCAAsC,EAAE,MAAM,CAAC;IAC/C,+FAA+F;IAC/F,kCAAkC,EAAE,M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ED,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,IAAI,EAAE,uBAAuB,EAAE,CAAC;IAChC,yEAAyE;IACzE,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kCAAkC;IAClC,MAAM,EAAE,uBAAuB,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
|
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.
|
|
4
|
+
"version": "1.1.0-dev.331",
|
|
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.
|
|
27
|
-
"@epam/ai-dial-sidebar": "1.1.0-dev.
|
|
26
|
+
"@epam/ai-dial-chat-shared": "1.1.0-dev.331",
|
|
27
|
+
"@epam/ai-dial-sidebar": "1.1.0-dev.331"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IconFile } from '@tabler/icons-react';
|
|
2
|
+
type TransferFileIcon = typeof IconFile;
|
|
3
|
+
/**
|
|
4
|
+
* Returns the icon for a transfer row, chosen from the file name's extension:
|
|
5
|
+
* the archive icon for `.dial`/`.zip`, the JSON icon for `.json`, and a
|
|
6
|
+
* generic file icon for anything else.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getTransferFileIcon: (fileName: string) => TransferFileIcon;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=transfer-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transfer-file.d.ts","sourceRoot":"","sources":["../../src/utils/transfer-file.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAyB,MAAM,qBAAqB,CAAC;AAGtE,KAAK,gBAAgB,GAAG,OAAO,QAAQ,CAAC;AAIxC;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAAI,UAAU,MAAM,KAAG,gBAStD,CAAC"}
|