@epam/ai-dial-chat-shared 1.1.0-dev.315 → 1.1.0-dev.319
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,kCAAkC,CAAC;AAM1C,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACpB,MAAM,kCAAkC,CAAC;AAM1C,OAAO,EAAsC,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAmDnB,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,yCAAyC;IACzC,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IAC7B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,uDAAuD;IACvD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,0CAA0C;IAC1C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAA;KAAE,KAAK,OAAO,CAAC;IAC1E,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAie9D,CAAC;;AAEF,wBAA0C"}
|
package/index.js
CHANGED
|
@@ -51044,13 +51044,13 @@ var qj = ({ batchState: e, uploadProgressTitle: t, uploadProgressText: n, cancel
|
|
|
51044
51044
|
b(qj);
|
|
51045
51045
|
//#endregion
|
|
51046
51046
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
51047
|
-
var Jj = (e
|
|
51047
|
+
var Jj = (e, t) => {
|
|
51048
51048
|
if (e.isDownloading) return t.downloadingLabel;
|
|
51049
51049
|
if (e.isDeleting) return t.deletingLabel;
|
|
51050
51050
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
51051
51051
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
51052
51052
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
51053
|
-
},
|
|
51053
|
+
}, Yj = ({ controller: e, labels: t, activeTab: n, tabs: r, onTabChange: i, selectedPaths: a, onSelectedPathsChange: o, variant: s, actionProfile: c, autoSelectUploadedItems: u = !1, allowedFileTypes: d, maxSelectableFileSize: f, isRowSelectable: h, getDisabledTooltip: g, unsupportedFileTypeTooltip: _ }) => {
|
|
51054
51054
|
let { items: v, isLoading: y, error: b, path: x, onPathChange: C, retry: T, onSearchFiles: re, isSearching: ae, searchResults: A, clearSearchResults: oe, expandedPaths: se, loadedPaths: ce, onExpandedPathsChange: le, onFolderPopupPathChange: ue, folderPopupLoadingPaths: de, onUploadFiles: fe, onUploadArchive: pe, onValidateUpload: me, uploadBatchState: he, cancelUpload: ge, clearUploadBatch: _e, onCreateFolder: ve, onCreateFolderValidate: ye, onDownloadFiles: be, isDownloading: xe, onDeleteFiles: Se, isDeleting: Ce, onMoveToFiles: we, onRenameValidate: Te, isRenaming: j, onCopyFiles: Ee, isCopying: De, isMoving: Oe, cancelCopyMove: ke, uploadEnabled: Ae, isNewButtonDisabled: je, disabledNewButtonTooltip: Me, visibleColumns: Ne, dateLocale: Pe, dateOptions: Fe, actionLabels: Ie, sharedWithMeIds: Le, sharedByMePaths: Re, onUnshareFiles: ze, isUnsharing: Be, onRemoveFilesAccess: Ve, isRemovingAccess: He, fileMetadata: Ue, isFileMetadataLoading: We, onGetInfo: Ge, clearMetadata: Ke } = e, [qe, Je] = E(void 0), { handleGridApiChange: Ye, reset: Xe } = Gj();
|
|
51055
51055
|
S(() => {
|
|
51056
51056
|
Xe();
|
|
@@ -51106,6 +51106,7 @@ var Jj = (e) => e.replace(/\/+$/, "") || "/", Yj = (e, t) => {
|
|
|
51106
51106
|
header: t.treeHeaderByTab[n],
|
|
51107
51107
|
expandedPaths: se,
|
|
51108
51108
|
loadedPaths: ce,
|
|
51109
|
+
loadingPaths: de,
|
|
51109
51110
|
onExpandedPathsChange: le,
|
|
51110
51111
|
actionLabels: Ze
|
|
51111
51112
|
}), [
|
|
@@ -51113,6 +51114,7 @@ var Jj = (e) => e.replace(/\/+$/, "") || "/", Yj = (e, t) => {
|
|
|
51113
51114
|
n,
|
|
51114
51115
|
se,
|
|
51115
51116
|
ce,
|
|
51117
|
+
de,
|
|
51116
51118
|
le,
|
|
51117
51119
|
Ze
|
|
51118
51120
|
]), rt = s === Lj.Standalone && c === Rj.Full && n === ne.MyFiles && Ae, it = w(() => ({
|
|
@@ -51164,7 +51166,7 @@ var Jj = (e) => e.replace(/\/+$/, "") || "/", Yj = (e, t) => {
|
|
|
51164
51166
|
else if (e !== n) return;
|
|
51165
51167
|
}
|
|
51166
51168
|
return e;
|
|
51167
|
-
}, [a]), ct = qe != null && de.has(
|
|
51169
|
+
}, [a]), ct = qe != null && de.has(qe), lt = ct ? qe : st, ut = w(() => ({
|
|
51168
51170
|
copyLabel: t.copyLabel,
|
|
51169
51171
|
moveLabel: t.moveLabel,
|
|
51170
51172
|
addFolderLabel: t.addFolderLabel,
|
|
@@ -51214,7 +51216,7 @@ var Jj = (e) => e.replace(/\/+$/, "") || "/", Yj = (e, t) => {
|
|
|
51214
51216
|
t.metadataModifiedDateLabel,
|
|
51215
51217
|
t.metadataSizeLabel,
|
|
51216
51218
|
t.metadataAuthorLabel
|
|
51217
|
-
]), pt =
|
|
51219
|
+
]), pt = Jj({
|
|
51218
51220
|
isDownloading: xe,
|
|
51219
51221
|
isDeleting: Ce,
|
|
51220
51222
|
isRenaming: j,
|
|
@@ -51327,10 +51329,10 @@ var Jj = (e) => e.replace(/\/+$/, "") || "/", Yj = (e, t) => {
|
|
|
51327
51329
|
})
|
|
51328
51330
|
] });
|
|
51329
51331
|
};
|
|
51330
|
-
b(
|
|
51332
|
+
b(Yj);
|
|
51331
51333
|
//#endregion
|
|
51332
51334
|
//#region src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx
|
|
51333
|
-
var
|
|
51335
|
+
var Xj = b(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r, onCountLimitExceeded: i, controller: a, isAnyOperationInProgress: o, activeTab: s, tabs: c, onTabChange: l, labels: u, variant: m, actionProfile: h, selectedPaths: g, onSelectedPathsChange: _, resolveFolderPath: v, isFileTypeAllowed: y, maxSelectableFileSize: b, maximumAttachmentsAmount: S, existingAttachmentsAmount: C = 0, isRowSelectable: T, getDisabledTooltip: E, unsupportedFileTypeTooltip: ee, allowedFileTypes: te, autoSelectUploadedItems: k = !1 }) => {
|
|
51334
51336
|
let { items: ne, isLoading: ie, searchResults: ae } = a, A = w(() => {
|
|
51335
51337
|
let e = /* @__PURE__ */ new Map(), t = (n) => {
|
|
51336
51338
|
n.forEach((n) => {
|
|
@@ -51393,7 +51395,7 @@ var Zj = b(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
51393
51395
|
}),
|
|
51394
51396
|
children: /* @__PURE__ */ D("div", {
|
|
51395
51397
|
className: "flex min-h-0 flex-col",
|
|
51396
|
-
children: /* @__PURE__ */ D(
|
|
51398
|
+
children: /* @__PURE__ */ D(Yj, {
|
|
51397
51399
|
controller: a,
|
|
51398
51400
|
labels: de,
|
|
51399
51401
|
activeTab: s,
|
|
@@ -51413,6 +51415,6 @@ var Zj = b(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: r,
|
|
|
51413
51415
|
})
|
|
51414
51416
|
});
|
|
51415
51417
|
});
|
|
51416
|
-
|
|
51418
|
+
Xj.displayName = "FileManagerAttachModal";
|
|
51417
51419
|
//#endregion
|
|
51418
|
-
export { Ce as AttachmentErrorReason, we as AttachmentType, eh as BASE_LG_ICON_PROPS, $m as BASE_MD_ICON_PROPS, Dj as COMPACT_MARKDOWN_CLASS_NAMES, Te as CatalogEntityType, De as CodeBlockTheme, me as ConversationTransferJobStatus, he as ConversationTransferSubjectKind, _h as CopyButton, gh as CopyIconButton, Ej as DEFAULT_MARKDOWN_CLASS_NAMES, uh as DeploymentIcon, Rj as DialFileManagerActionProfile,
|
|
51420
|
+
export { Ce as AttachmentErrorReason, we as AttachmentType, eh as BASE_LG_ICON_PROPS, $m as BASE_MD_ICON_PROPS, Dj as COMPACT_MARKDOWN_CLASS_NAMES, Te as CatalogEntityType, De as CodeBlockTheme, me as ConversationTransferJobStatus, he as ConversationTransferSubjectKind, _h as CopyButton, gh as CopyIconButton, Ej as DEFAULT_MARKDOWN_CLASS_NAMES, uh as DeploymentIcon, Rj as DialFileManagerActionProfile, Yj as DialFileManagerShell, Lj as DialFileManagerVariant, Um as ENTITY_TYPE_BG_COLOR, Hm as ENTITY_TYPE_COLOR, wh as EntityHeader, Sh as EntityTypeLabel, Ch as FeaturedChip, Ee as FileExtension, Xj as FileManagerAttachModal, Vj as FileUploadStatus, ge as FilterTab, th as HIDDEN_FILE, ch as InitialsAvatar, xh as ItemHeader, Oj as MDMessageViewer, j as MIMEType, bn as MIME_TYPE_AUDIO_PREFIX, vn as MIME_TYPE_EXT_MAP, yn as MIME_TYPE_WILDCARD, dj as MarkdownCodeBlock, Tj as MarkdownRenderer, gj as MarkdownTable, Aj as MarkdownWithPlaceholders, ve as MessageRating, _e as MessageRole, Kj as OperationLoaderModal, Oe as PROHIBITED_CONVERSATION_NAME_CHARS_RE, Wm as PROMPT_PARAM_PATTERN, Gm as PROMPT_VARIABLE_CLASS_NAME, yh as PanelEmptyState, xe as RequestStatus, Eh as ResourceSummary, Se as ResponseFormat, ye as StageStatus, be as StatusEvent, nh as TAG_INPUT_TAG_CLASS_NAME, qj as UploadProgressModal, Bm as base64ToBlob, un as buildCssVars, _m as copyMarkdownAsRichText, vm as copyToClipboard, Sj as defaultMarkdownComponents, Vm as downloadTextFile, Nm as ensureDownloadFilename, oh as extractInitials, Xm as extractPromptParams, Am as formatCost, wm as formatFileSize, bm as formatLastUsed, jm as formatPrice, Mm as formatUnitPrice, Qm as generateUUID, mn as getAttachmentTypeFromMime, Fm as getFileExtensionForLanguage, Bj as getParentFolderPath, Ne as getUtf8ByteLength, pn as inferMimeTypeFromPath, xn as isAudioTranscriptionSupported, zj as isHiddenPath, dn as isStatusMessage, gm as markdownToRichTextHtml, ln as mergeClasses, gn as messageAttachmentToDisplayAttachment, _n as messageAttachmentsToDisplayAttachments, ih as pickAvatarColor, Ym as rehypePromptVariables, Zm as resolvePromptParams, lj as restrainedSyntaxTheme, ke as sanitizeConversationName, Ae as stripTrailingDots, Lm as triggerAnchorDownload, Rm as triggerBlobDownload, Pe as truncateToUtf8Bytes, zm as tryBase64ToBytes, rj as useCodeCopy, Ij as useCollapsedText, Gj as useGridEditingScroll, Nj as useIsMobile };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.1.0-dev.
|
|
4
|
+
"version": "1.1.0-dev.319",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|