@epam/ai-dial-chat-shared 1.2.0-dev.3 → 1.2.0-dev.300
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/ConfirmationDialog/ConfirmationDialog.js +34 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.js +21 -0
- package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.module.scss.js +6 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.js +24 -0
- package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.module.scss.js +3 -0
- package/components/ConfirmationView/ConfirmationFooter.js +42 -0
- package/components/ConfirmationView/ConfirmationView.js +39 -0
- package/components/ConfirmationView/ConfirmationView.module.scss.js +7 -0
- package/components/FeaturedChip/FeaturedChip.js +9 -14
- package/components/InitialsAvatar/InitialsAvatar.js +10 -27
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +65 -63
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +6 -6
- package/components/MarkdownRenderer/MDMessageViewer.js +25 -17
- package/components/MarkdownRenderer/MarkdownRenderer.js +119 -118
- package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +7 -7
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +19 -18
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +2 -2
- package/components/MarkdownRenderer/PlainTextRenderer.js +21 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +71 -56
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +11 -11
- package/components/MarkdownRenderer/Table/TableHeader.js +18 -21
- package/components/MarkdownRenderer/Table/table-serialization.js +23 -3
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +48 -62
- package/components/MarkdownRenderer/ThinkingShimmer.js +14 -0
- package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js +3 -2
- package/components/PanelEmptyState/PanelEmptyState.js +2 -1
- package/components/TextRefinementField/TextRefinementField.js +86 -0
- package/constants/dial.js +2 -2
- package/constants/mime-types.js +49 -2
- package/constants/public-class-names.js +10 -0
- package/constants/resizable-fields.js +2 -2
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +257 -239
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +36 -32
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +17 -20
- package/file-manager/upload-batch.js +2 -2
- package/file-manager/upload-queue.js +17 -0
- package/file-manager.d.ts +35 -20
- package/file-manager.js +4 -3
- package/hooks/useTextRefinement.js +66 -0
- package/hooks/useUnsavedChangesGuard.js +30 -0
- package/index.css +2 -2
- package/index.d.ts +616 -53
- package/index.js +73 -62
- package/markdown.d.ts +79 -15
- package/markdown.js +13 -11
- package/models/chat.js +4 -2
- package/package.json +5 -5
- package/types/attachment.js +1 -1
- package/utils/entity-field-limits.js +4 -0
- package/utils/entity-type.js +15 -0
- package/utils/file-download.js +6 -6
- package/utils/is-skill-selection-unsupported.js +4 -0
- package/utils/latex.js +5 -3
- package/utils/merge-class.js +5 -4
- package/utils/mime-type.js +10 -6
- package/utils/syntax-highlighting.js +13 -0
- package/components/InitialsAvatar/InitialsAvatar.module.scss.js +0 -6
- package/file-manager/UploadProgressModal/UploadProgressModal.js +0 -56
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { DialFileName as e, NeutralButton as t, Popup as n } from "@epam/ai-dial-ui-kit";
|
|
2
|
-
import { memo as r, useCallback as i } from "react";
|
|
3
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
|
-
//#region src/file-manager/UploadProgressModal/UploadProgressModal.tsx
|
|
5
|
-
var s = ({ batchState: r, uploadProgressTitle: s, uploadProgressText: c, cancelLabel: l, onCancel: u }) => {
|
|
6
|
-
let { files: d } = r, f = i((e) => e === void 0 ? null : /* @__PURE__ */ a("div", {
|
|
7
|
-
className: "h-1 w-full overflow-hidden rounded-full bg-control-disable-primary",
|
|
8
|
-
"data-qa": "uploading-indicator",
|
|
9
|
-
role: "progressbar",
|
|
10
|
-
"aria-valuemin": 0,
|
|
11
|
-
"aria-valuemax": 100,
|
|
12
|
-
"aria-valuenow": e,
|
|
13
|
-
children: /* @__PURE__ */ a("div", {
|
|
14
|
-
className: "h-full rounded-full bg-control-accent transition-all duration-300",
|
|
15
|
-
style: { width: `${e}%` }
|
|
16
|
-
})
|
|
17
|
-
}), []);
|
|
18
|
-
return /* @__PURE__ */ a(n, {
|
|
19
|
-
className: "!h-fit !max-h-full !w-[400px] mobile:!w-full desktop:!max-h-[693px]",
|
|
20
|
-
open: r.isOpen,
|
|
21
|
-
closeOnOutsideClick: !1,
|
|
22
|
-
hideClose: !0,
|
|
23
|
-
onClose: u,
|
|
24
|
-
footer: /* @__PURE__ */ a("div", {
|
|
25
|
-
className: "flex justify-end gap-2 px-6 py-4",
|
|
26
|
-
children: /* @__PURE__ */ a(t, {
|
|
27
|
-
label: l,
|
|
28
|
-
onClick: u
|
|
29
|
-
})
|
|
30
|
-
}),
|
|
31
|
-
header: /* @__PURE__ */ o("div", {
|
|
32
|
-
className: "flex flex-col gap-2",
|
|
33
|
-
children: [/* @__PURE__ */ a("div", { children: s }), /* @__PURE__ */ a("div", {
|
|
34
|
-
className: "dial-small-text text-secondary",
|
|
35
|
-
"data-qa": "uploading-items-count",
|
|
36
|
-
children: c
|
|
37
|
-
})]
|
|
38
|
-
}),
|
|
39
|
-
children: /* @__PURE__ */ a("div", {
|
|
40
|
-
className: "flex h-full max-h-full flex-col gap-4 px-6",
|
|
41
|
-
children: /* @__PURE__ */ a("div", {
|
|
42
|
-
className: "flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto",
|
|
43
|
-
children: d.map((t) => /* @__PURE__ */ a("div", {
|
|
44
|
-
className: "rounded bg-layer-sunken px-3 py-2",
|
|
45
|
-
children: /* @__PURE__ */ a(e, {
|
|
46
|
-
name: t.name,
|
|
47
|
-
details: f(t.percent)
|
|
48
|
-
})
|
|
49
|
-
}, t.id))
|
|
50
|
-
})
|
|
51
|
-
})
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
r(s);
|
|
55
|
-
//#endregion
|
|
56
|
-
export { s as UploadProgressModal };
|