@epam/ai-dial-chat-hooks 1.2.0-rc.1 → 1.2.0-rc.2

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.
@@ -5,126 +5,143 @@ import { getRunnerSchemas as r, isQuickAppSchema as i } from "../../shared/appli
5
5
  import { CatalogEntityType as a } from "@epam/ai-dial-chat-shared";
6
6
  import { useCallback as o, useMemo as s, useState as c } from "react";
7
7
  //#region src/catalog/useCatalogEditNavigation/useCatalogEditNavigation.ts
8
- var l = ({ deployments: l, isCustomAppsEnabled: u, isSchemaAppsEnabled: d, isHideCustomAppCreationEnabled: f, isToolsetsEnabled: p, isPromptsEnabled: m, schemas: h, urls: g, onNavigate: _, deletePrompt: v, deleteToolset: y, deleteSkill: b, deleteApplication: x, refetchPrompts: S, refetchToolsets: C, refetchSkills: w, refetchDeployments: T, onDeleteSuccess: E, labels: D, onNotify: O, onSkillUploadClick: k }) => {
9
- let A = s(() => r(h), [h]), [j, M] = c(""), N = d && !f;
10
- return {
11
- handleEdit: o((e) => {
12
- if (e.type === a.Prompt) {
13
- _(g.buildPromptEditUrl(e.id));
14
- return;
15
- }
16
- if (e.type === a.Skill) {
17
- _(g.buildSkillEditUrl(e.id));
18
- return;
19
- }
20
- if (e.type === a.Toolset) {
21
- _(g.buildToolsetEditUrl(e.id));
22
- return;
23
- }
24
- let n = t(l, e.id);
25
- if (u && n != null && !n.applicationTypeSchemaId) {
26
- _(g.buildCustomAppEditUrl(e.id));
27
- return;
28
- }
29
- let r = A.find((e) => e.id === n?.applicationTypeSchemaId)?.id ?? A.find((e) => i(e))?.id;
30
- r && _(g.buildQuickAppEditUrl(r, e.id));
31
- }, [
32
- l,
33
- u,
34
- A,
35
- _,
36
- g
37
- ]),
38
- handleDelete: o(async (t) => {
39
- try {
40
- if (t.type === a.Prompt) await v(t.id), await S();
41
- else if (t.type === a.Toolset) await y(t.id), await C();
42
- else if (t.type === a.Skill) {
43
- let e = n(t.id);
44
- if (e == null) throw Error(`Invalid skill resource url: ${t.id}`);
45
- await b(e.bucket, e.path), await w();
46
- } else await x(t.id), await T();
47
- E(t);
48
- } catch (t) {
49
- let { traceId: n } = await e(t);
50
- throw O({
51
- message: D.deleteError,
52
- requestId: n
53
- }), t;
54
- }
55
- }, [
56
- v,
57
- y,
58
- b,
59
- x,
60
- C,
61
- T,
62
- S,
63
- w,
64
- E,
65
- D,
66
- O
67
- ]),
68
- createOptions: s(() => {
69
- let e = j.trim().toLocaleLowerCase(), t = (t) => !e || t.toLocaleLowerCase().includes(e), n = [];
70
- N && A.map((e) => ({
71
- id: e.id,
72
- label: e.displayName || e.id
73
- })).filter((e) => t(e.label)).forEach((e) => {
74
- n.push({
75
- key: `runner:${e.id}`,
76
- label: e.label,
77
- onClick: () => _(g.buildQuickAppCreateUrl(e.id))
78
- });
79
- }), p && t(D.createToolset) && n.push({
80
- key: "toolset",
81
- label: D.createToolset,
82
- onClick: () => _(g.buildToolsetCreateUrl())
83
- }), u && !f && t(D.createCustomApp) && n.push({
84
- key: "custom-app",
85
- label: D.createCustomApp,
86
- onClick: () => _(g.buildCustomAppCreateUrl())
87
- });
88
- let r = [{
89
- key: "skill-write-instructions",
90
- label: D.createSkillWriteInstructions,
91
- onClick: () => _(g.buildSkillCreateUrl())
92
- }, {
93
- key: "skill-upload",
94
- label: D.createSkillUpload,
95
- onClick: k
96
- }], i = t(D.createSkill) ? r : r.filter((e) => t(String(e.label)));
97
- return i.length > 0 && n.push({
98
- key: "skill",
99
- label: D.createSkill,
100
- children: i
101
- }), m && t(D.createPrompt) && n.push({
8
+ var l = (e) => [...e].sort((e, t) => String(e.label ?? "").localeCompare(String(t.label ?? ""), void 0, { sensitivity: "base" })), u = ({ deployments: u, isCustomAppsEnabled: d, isSchemaAppsEnabled: f, isHideCustomAppCreationEnabled: p, isToolsetsEnabled: m, isPromptsEnabled: h, schemas: g, urls: _, onNavigate: v, deletePrompt: y, deleteToolset: b, deleteSkill: x, deleteApplication: S, refetchPrompts: C, refetchToolsets: w, refetchSkills: T, refetchDeployments: E, onDeleteSuccess: D, labels: O, onNotify: k, onSkillUploadClick: A }) => {
9
+ let j = s(() => r(g), [g]), [M, N] = c(""), P = f && !p, F = o((e) => {
10
+ if (e.type === a.Prompt) {
11
+ v(_.buildPromptEditUrl(e.id));
12
+ return;
13
+ }
14
+ if (e.type === a.Skill) {
15
+ v(_.buildSkillEditUrl(e.id));
16
+ return;
17
+ }
18
+ if (e.type === a.Toolset) {
19
+ v(_.buildToolsetEditUrl(e.id));
20
+ return;
21
+ }
22
+ let n = t(u, e.id);
23
+ if (d && n != null && !n.applicationTypeSchemaId) {
24
+ v(_.buildCustomAppEditUrl(e.id));
25
+ return;
26
+ }
27
+ let r = j.find((e) => e.id === n?.applicationTypeSchemaId)?.id ?? j.find((e) => i(e))?.id;
28
+ r && v(_.buildQuickAppEditUrl(r, e.id));
29
+ }, [
30
+ u,
31
+ d,
32
+ j,
33
+ v,
34
+ _
35
+ ]), I = o(async (t) => {
36
+ try {
37
+ if (t.type === a.Prompt) await y(t.id), await C();
38
+ else if (t.type === a.Toolset) await b(t.id), await w();
39
+ else if (t.type === a.Skill) {
40
+ let e = n(t.id);
41
+ if (e == null) throw Error(`Invalid skill resource url: ${t.id}`);
42
+ await x(e.bucket, e.path), await T();
43
+ } else await S(t.id), await E();
44
+ D(t);
45
+ } catch (t) {
46
+ let { traceId: n } = await e(t);
47
+ throw k({
48
+ message: O.deleteError,
49
+ requestId: n
50
+ }), t;
51
+ }
52
+ }, [
53
+ y,
54
+ b,
55
+ x,
56
+ S,
57
+ w,
58
+ E,
59
+ C,
60
+ T,
61
+ D,
62
+ O,
63
+ k
64
+ ]), L = s(() => {
65
+ let e = M.trim().toLocaleLowerCase(), t = (t) => !e || t.toLocaleLowerCase().includes(e), n = P ? j.map((e) => ({
66
+ id: e.id,
67
+ label: e.displayName || e.id
68
+ })).filter((e) => t(e.label)).map((e) => ({
69
+ key: `runner:${e.id}`,
70
+ label: e.label,
71
+ onClick: () => v(_.buildQuickAppCreateUrl(e.id))
72
+ })) : [], r = m && t(O.createToolset) ? {
73
+ key: "toolset",
74
+ label: O.createToolset,
75
+ onClick: () => v(_.buildToolsetCreateUrl())
76
+ } : void 0, i = d && !p && t(O.createCustomApp) ? {
77
+ key: "custom-app",
78
+ label: O.createCustomApp,
79
+ onClick: () => v(_.buildCustomAppCreateUrl())
80
+ } : void 0, a = [{
81
+ key: "skill-write-instructions",
82
+ label: O.createSkillWriteInstructions,
83
+ onClick: () => v(_.buildSkillCreateUrl())
84
+ }, {
85
+ key: "skill-upload",
86
+ label: O.createSkillUpload,
87
+ onClick: A
88
+ }];
89
+ return {
90
+ runnerOptions: n,
91
+ toolsetOption: r,
92
+ customAppOption: i,
93
+ visibleSkillChildren: t(O.createSkill) ? a : a.filter((e) => t(String(e.label))),
94
+ promptOption: h && t(O.createPrompt) ? {
102
95
  key: "prompt",
103
- label: D.createPrompt,
104
- onClick: () => _(g.buildPromptCreateUrl())
105
- }), n.sort((e, t) => String(e.label ?? "").localeCompare(String(t.label ?? ""), void 0, { sensitivity: "base" }));
106
- }, [
107
- j,
108
- N,
109
- A,
110
- _,
111
- g,
112
- m,
113
- D,
114
- f,
115
- p,
116
- u,
117
- k
118
- ]),
119
- createSearch: s(() => N && A.length > 0 ? {
120
- value: j,
121
- onChange: M
122
- } : void 0, [
123
- N,
124
- A.length,
125
- j
126
- ])
96
+ label: O.createPrompt,
97
+ onClick: () => v(_.buildPromptCreateUrl())
98
+ } : void 0
99
+ };
100
+ }, [
101
+ M,
102
+ P,
103
+ j,
104
+ v,
105
+ _,
106
+ h,
107
+ O,
108
+ p,
109
+ m,
110
+ d,
111
+ A
112
+ ]), R = s(() => {
113
+ let { runnerOptions: e, toolsetOption: t, customAppOption: n, visibleSkillChildren: r, promptOption: i } = L, a = [...e];
114
+ return t && a.push(t), n && a.push(n), r.length > 0 && a.push({
115
+ key: "skill",
116
+ label: O.createSkill,
117
+ children: r
118
+ }), i && a.push(i), l(a);
119
+ }, [L, O.createSkill]), z = s(() => P && j.length > 0 ? {
120
+ value: M,
121
+ onChange: N
122
+ } : void 0, [
123
+ P,
124
+ j.length,
125
+ M
126
+ ]);
127
+ return {
128
+ handleEdit: F,
129
+ handleDelete: I,
130
+ createOptions: R,
131
+ createSearch: z,
132
+ createMenuByType: s(() => {
133
+ let { runnerOptions: e, toolsetOption: t, customAppOption: n, visibleSkillChildren: r, promptOption: i } = L;
134
+ return {
135
+ [a.Agent]: {
136
+ options: l(n ? [...e, n] : e),
137
+ search: z
138
+ },
139
+ [a.Toolset]: { options: t ? [t] : [] },
140
+ [a.Skill]: { options: r },
141
+ [a.Prompt]: { options: i ? [i] : [] }
142
+ };
143
+ }, [L, z])
127
144
  };
128
145
  };
129
146
  //#endregion
130
- export { l as useCatalogEditNavigation };
147
+ export { u as useCatalogEditNavigation };
package/catalog.d.ts CHANGED
@@ -10,6 +10,7 @@ import { CatalogItemDetailsFetchResult } from '@epam/ai-dial-catalog';
10
10
  import { CatalogItemLimits } from '@epam/ai-dial-catalog';
11
11
  import { CatalogItemOverview } from '@epam/ai-dial-catalog';
12
12
  import { CatalogItemTabData } from '@epam/ai-dial-catalog';
13
+ import { CatalogTabCreateMenu } from '@epam/ai-dial-catalog';
13
14
  import { CredentialsLevel } from '@epam/ai-dial-catalog';
14
15
  import { DeploymentDetailsDto } from '@epam/ai-dial-chat-api-client';
15
16
  import { DeploymentItemDto } from '@epam/ai-dial-chat-api-client';
@@ -1114,6 +1115,8 @@ export declare interface UseCatalogEditNavigationResult {
1114
1115
  createOptions: DropdownItem[];
1115
1116
  /** The Create menu's search field state, or `undefined` when no runner option is offered. */
1116
1117
  createSearch: CatalogCreateSearch | undefined;
1118
+ /** The Create menu narrowed to each entity type; models have no entry since they cannot be created. */
1119
+ createMenuByType: Partial<Record<CatalogEntityType, CatalogTabCreateMenu>>;
1117
1120
  }
1118
1121
 
1119
1122
  /**
package/file-manager.d.ts CHANGED
@@ -75,9 +75,11 @@ export declare const buildFromCache: (cache: Map<string, ListFilesItemDto[]>, li
75
75
  */
76
76
  export declare const buildSharedItemVirtualPath: (relativePath: string, rootLabel: string, isFolder: boolean) => string;
77
77
 
78
- export declare const COLUMNS_WITH_AUTHOR: FileManagerColumnKey[];
78
+ export declare const COLUMNS_MY_FILES: FileManagerColumnKey[];
79
79
 
80
- export declare const COLUMNS_WITHOUT_AUTHOR: FileManagerColumnKey[];
80
+ export declare const COLUMNS_ORGANIZATION: FileManagerColumnKey[];
81
+
82
+ export declare const COLUMNS_SHARED: FileManagerColumnKey[];
81
83
 
82
84
  export declare interface CopyMoveResult {
83
85
  success?: boolean;
@@ -405,7 +407,9 @@ export declare enum FileOperationKind {
405
407
  FilesMoved = "filesMoved",
406
408
  /** A copy whose every item landed in its own source folder (Duplicate). */
407
409
  FileDuplicated = "fileDuplicated",
408
- FilesDuplicated = "filesDuplicated"
410
+ FilesDuplicated = "filesDuplicated",
411
+ /** One or more shared-with-me items were removed from the Shared tab. */
412
+ FilesUnshared = "filesUnshared"
409
413
  }
410
414
 
411
415
  /**
@@ -773,6 +777,11 @@ export declare interface UseDialFileListingResult {
773
777
  mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
774
778
  /** Forces the listing effect to re-fetch the currently browsed folder. */
775
779
  bumpRetry: () => void;
780
+ /**
781
+ * Drops the named root rows from the Shared tab's cached listing, so an
782
+ * unshared item disappears at once instead of waiting for the refetch.
783
+ */
784
+ removeSharedRootItems: (names: string[]) => void;
776
785
  }
777
786
 
778
787
  /**
@@ -1094,7 +1103,7 @@ export declare interface UseDialFileMutationsResult {
1094
1103
  * shared retry counter after each mutation settles rather than holding its
1095
1104
  * own cache copy.
1096
1105
  */
1097
- export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
1106
+ export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, onOperationSuccess, removeSharedRootItems, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
1098
1107
 
1099
1108
  /** Options accepted by `useDialFileSharing`. */
1100
1109
  export declare interface UseDialFileSharingOptions {
@@ -1108,6 +1117,10 @@ export declare interface UseDialFileSharingOptions {
1108
1117
  bumpRetry: () => void;
1109
1118
  /** Called when a sharing mutation fails and should surface a toast notification. */
1110
1119
  onNotification?: (notification: FileManagerNotification) => void;
1120
+ /** Called with a structured event once an unshare succeeds, so the host can show its success toast. */
1121
+ onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
1122
+ /** Removes the unshared root rows from the cached Shared listing ahead of the refetch. */
1123
+ removeSharedRootItems?: (names: string[]) => void;
1111
1124
  }
1112
1125
 
1113
1126
  /** Values returned by `useDialFileSharing`. */
package/file-manager.js CHANGED
@@ -3,28 +3,28 @@ import { isDialFileAcceptType as r, mimeTypesToAttachmentExtensionLabels as i, m
3
3
  import { sanitizeFileName as s, splitFileNameExtension as c, trimFileNameToByteLimit as l } from "./files/file-name.js";
4
4
  import { DialFilesApiUploadMode as u } from "./files/dial-files-api.js";
5
5
  import { FileManagerNotificationReason as d, FileNameValidationErrorReason as f, FileOperationKind as p } from "./files/dial-file-manager.types.js";
6
- import { COLUMNS_WITHOUT_AUTHOR as m, COLUMNS_WITH_AUTHOR as h, CORE_PERMISSION_MAP as g, DATE_OPTIONS as _, DIAL_FILE_MANAGER_SECTION_TABS as v, PATH_SEPARATOR_REGEXP as y, RESERVED_MARKER_NAME as b, UPLOAD_CONCURRENCY as x } from "./files/dial-file-manager.model.js";
7
- import { buildSharedItemVirtualPath as S, dialCorePathToRelative as C, findDialFileByPath as w, findFolderByVirtualPath as T, formatOperationFolderName as E, getVirtualPathName as D, hasDialFileWritePermission as O, hasForbiddenNameSymbols as k, hasSamePaths as A, isCopyMoveDuplicateAllowed as j, isShareActionsAllowed as M, normalizeVirtualPath as N, parseNewFolderVirtualPath as P, resolveOwnerCoords as F, resolveSectionByPath as I, unionPathSets as L, withRoutableRootLabels as R } from "./files/dial-file-manager-path.util.js";
8
- import { resolveDialFileApiPath as z, virtualPathToApiPath as B } from "./files/resolve-dial-file-api-path.js";
9
- import { prepareCopyItems as V, prepareMoveRenameItems as H } from "./files/dial-file-manager-copy-move.util.js";
10
- import { buildFromCache as U, fetchByTab as W, fetchForSearch as G, findFirstSuccessfulCopyMoveItem as K, mapCorePermissions as q, mapFileMetadataToDialFile as J, mapSearchItem as Y, mergeCreatedFolderIntoCache as X, updateEntry as Z } from "./files/dial-file-manager-mapping.util.js";
11
- import { createFilesApiClient as Q } from "./files/create-files-api.js";
12
- import { createUploadFileWithProgress as $ } from "./files/create-upload-file-with-progress.js";
13
- import { openAnnotationAttachment as ee } from "./files/annotation.js";
14
- import { getUrlFileName as te, isExternalSourcePreviewable as ne, resolveExternalSourceContentType as re } from "./files/source-content.js";
15
- import { annotationToDisplayAttachment as ie, attachmentDtoToDisplayAttachment as ae, attachmentDtosToDisplayAttachments as oe } from "./files/attachment-dto-to-display.js";
16
- import { dialFileToAttachment as se, dialFilesToAttachments as ce, dialFolderPathToAttachment as le } from "./files/dial-file-to-attachment.js";
17
- import { DownloadDestinationType as ue } from "./files/download-destination.js";
18
- import { prepareDownloadDestination as de } from "./files/prepare-download-destination.js";
19
- import { deriveActionProfile as fe } from "./files/file-manager-variant.js";
20
- import { useDialFileListing as pe } from "./files/useDialFileListing/useDialFileListing.js";
21
- import { useDialFileMetadata as me } from "./files/useDialFileMetadata/useDialFileMetadata.js";
22
- import { useDialFileMutations as he } from "./files/useDialFileMutations/useDialFileMutations.js";
23
- import { useDialFileSharing as ge } from "./files/useDialFileSharing/useDialFileSharing.js";
24
- import { useDialFileUploadBatch as _e } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
25
- import { useDialFileManager as ve } from "./files/useDialFileManager/useDialFileManager.js";
26
- import { useDialFileManagerSections as ye } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
27
- import { useDialFileManagerTabConfig as be } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
28
- import { useFileAttachmentPicker as xe } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
29
- import { useGridEditingScroll as Se } from "@epam/ai-dial-chat-shared";
30
- export { m as COLUMNS_WITHOUT_AUTHOR, h as COLUMNS_WITH_AUTHOR, g as CORE_PERMISSION_MAP, _ as DATE_OPTIONS, v as DIAL_FILE_MANAGER_SECTION_TABS, u as DialFilesApiUploadMode, ue as DownloadDestinationType, d as FileManagerNotificationReason, f as FileNameValidationErrorReason, p as FileOperationKind, y as PATH_SEPARATOR_REGEXP, b as RESERVED_MARKER_NAME, x as UPLOAD_CONCURRENCY, ie as annotationToDisplayAttachment, ae as attachmentDtoToDisplayAttachment, oe as attachmentDtosToDisplayAttachments, U as buildFromCache, S as buildSharedItemVirtualPath, Q as createFilesApiClient, $ as createUploadFileWithProgress, fe as deriveActionProfile, C as dialCorePathToRelative, se as dialFileToAttachment, ce as dialFilesToAttachments, le as dialFolderPathToAttachment, W as fetchByTab, G as fetchForSearch, w as findDialFileByPath, K as findFirstSuccessfulCopyMoveItem, T as findFolderByVirtualPath, E as formatOperationFolderName, te as getUrlFileName, D as getVirtualPathName, O as hasDialFileWritePermission, k as hasForbiddenNameSymbols, A as hasSamePaths, j as isCopyMoveDuplicateAllowed, r as isDialFileAcceptType, e as isDialFileId, ne as isExternalSourcePreviewable, M as isShareActionsAllowed, q as mapCorePermissions, J as mapFileMetadataToDialFile, Y as mapSearchItem, X as mergeCreatedFolderIntoCache, i as mimeTypesToAttachmentExtensionLabels, a as mimeTypesToDialFileAcceptTypes, o as mimeTypesToFileAccept, N as normalizeVirtualPath, ee as openAnnotationAttachment, P as parseNewFolderVirtualPath, V as prepareCopyItems, de as prepareDownloadDestination, H as prepareMoveRenameItems, z as resolveDialFileApiPath, t as resolveDialFileBucketAndPath, re as resolveExternalSourceContentType, F as resolveOwnerCoords, n as resolveRelativeDialFilePath, I as resolveSectionByPath, s as sanitizeFileName, c as splitFileNameExtension, l as trimFileNameToByteLimit, L as unionPathSets, Z as updateEntry, pe as useDialFileListing, ve as useDialFileManager, ye as useDialFileManagerSections, be as useDialFileManagerTabConfig, me as useDialFileMetadata, he as useDialFileMutations, ge as useDialFileSharing, _e as useDialFileUploadBatch, xe as useFileAttachmentPicker, Se as useGridEditingScroll, B as virtualPathToApiPath, R as withRoutableRootLabels };
6
+ import { COLUMNS_MY_FILES as m, COLUMNS_ORGANIZATION as h, COLUMNS_SHARED as g, CORE_PERMISSION_MAP as _, DATE_OPTIONS as v, DIAL_FILE_MANAGER_SECTION_TABS as y, PATH_SEPARATOR_REGEXP as b, RESERVED_MARKER_NAME as x, UPLOAD_CONCURRENCY as S } from "./files/dial-file-manager.model.js";
7
+ import { buildSharedItemVirtualPath as C, dialCorePathToRelative as w, findDialFileByPath as T, findFolderByVirtualPath as E, formatOperationFolderName as D, getVirtualPathName as O, hasDialFileWritePermission as k, hasForbiddenNameSymbols as A, hasSamePaths as j, isCopyMoveDuplicateAllowed as M, isShareActionsAllowed as N, normalizeVirtualPath as P, parseNewFolderVirtualPath as F, resolveOwnerCoords as I, resolveSectionByPath as L, unionPathSets as R, withRoutableRootLabels as z } from "./files/dial-file-manager-path.util.js";
8
+ import { resolveDialFileApiPath as B, virtualPathToApiPath as V } from "./files/resolve-dial-file-api-path.js";
9
+ import { prepareCopyItems as H, prepareMoveRenameItems as U } from "./files/dial-file-manager-copy-move.util.js";
10
+ import { buildFromCache as W, fetchByTab as G, fetchForSearch as K, findFirstSuccessfulCopyMoveItem as q, mapCorePermissions as J, mapFileMetadataToDialFile as Y, mapSearchItem as X, mergeCreatedFolderIntoCache as Z, updateEntry as Q } from "./files/dial-file-manager-mapping.util.js";
11
+ import { createFilesApiClient as $ } from "./files/create-files-api.js";
12
+ import { createUploadFileWithProgress as ee } from "./files/create-upload-file-with-progress.js";
13
+ import { openAnnotationAttachment as te } from "./files/annotation.js";
14
+ import { getUrlFileName as ne, isExternalSourcePreviewable as re, resolveExternalSourceContentType as ie } from "./files/source-content.js";
15
+ import { annotationToDisplayAttachment as ae, attachmentDtoToDisplayAttachment as oe, attachmentDtosToDisplayAttachments as se } from "./files/attachment-dto-to-display.js";
16
+ import { dialFileToAttachment as ce, dialFilesToAttachments as le, dialFolderPathToAttachment as ue } from "./files/dial-file-to-attachment.js";
17
+ import { DownloadDestinationType as de } from "./files/download-destination.js";
18
+ import { prepareDownloadDestination as fe } from "./files/prepare-download-destination.js";
19
+ import { deriveActionProfile as pe } from "./files/file-manager-variant.js";
20
+ import { useDialFileListing as me } from "./files/useDialFileListing/useDialFileListing.js";
21
+ import { useDialFileMetadata as he } from "./files/useDialFileMetadata/useDialFileMetadata.js";
22
+ import { useDialFileMutations as ge } from "./files/useDialFileMutations/useDialFileMutations.js";
23
+ import { useDialFileSharing as _e } from "./files/useDialFileSharing/useDialFileSharing.js";
24
+ import { useDialFileUploadBatch as ve } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
25
+ import { useDialFileManager as ye } from "./files/useDialFileManager/useDialFileManager.js";
26
+ import { useDialFileManagerSections as be } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
27
+ import { useDialFileManagerTabConfig as xe } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
28
+ import { useFileAttachmentPicker as Se } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
29
+ import { useGridEditingScroll as Ce } from "@epam/ai-dial-chat-shared";
30
+ export { m as COLUMNS_MY_FILES, h as COLUMNS_ORGANIZATION, g as COLUMNS_SHARED, _ as CORE_PERMISSION_MAP, v as DATE_OPTIONS, y as DIAL_FILE_MANAGER_SECTION_TABS, u as DialFilesApiUploadMode, de as DownloadDestinationType, d as FileManagerNotificationReason, f as FileNameValidationErrorReason, p as FileOperationKind, b as PATH_SEPARATOR_REGEXP, x as RESERVED_MARKER_NAME, S as UPLOAD_CONCURRENCY, ae as annotationToDisplayAttachment, oe as attachmentDtoToDisplayAttachment, se as attachmentDtosToDisplayAttachments, W as buildFromCache, C as buildSharedItemVirtualPath, $ as createFilesApiClient, ee as createUploadFileWithProgress, pe as deriveActionProfile, w as dialCorePathToRelative, ce as dialFileToAttachment, le as dialFilesToAttachments, ue as dialFolderPathToAttachment, G as fetchByTab, K as fetchForSearch, T as findDialFileByPath, q as findFirstSuccessfulCopyMoveItem, E as findFolderByVirtualPath, D as formatOperationFolderName, ne as getUrlFileName, O as getVirtualPathName, k as hasDialFileWritePermission, A as hasForbiddenNameSymbols, j as hasSamePaths, M as isCopyMoveDuplicateAllowed, r as isDialFileAcceptType, e as isDialFileId, re as isExternalSourcePreviewable, N as isShareActionsAllowed, J as mapCorePermissions, Y as mapFileMetadataToDialFile, X as mapSearchItem, Z as mergeCreatedFolderIntoCache, i as mimeTypesToAttachmentExtensionLabels, a as mimeTypesToDialFileAcceptTypes, o as mimeTypesToFileAccept, P as normalizeVirtualPath, te as openAnnotationAttachment, F as parseNewFolderVirtualPath, H as prepareCopyItems, fe as prepareDownloadDestination, U as prepareMoveRenameItems, B as resolveDialFileApiPath, t as resolveDialFileBucketAndPath, ie as resolveExternalSourceContentType, I as resolveOwnerCoords, n as resolveRelativeDialFilePath, L as resolveSectionByPath, s as sanitizeFileName, c as splitFileNameExtension, l as trimFileNameToByteLimit, R as unionPathSets, Q as updateEntry, me as useDialFileListing, ye as useDialFileManager, be as useDialFileManagerSections, xe as useDialFileManagerTabConfig, he as useDialFileMetadata, ge as useDialFileMutations, _e as useDialFileSharing, ve as useDialFileUploadBatch, Se as useFileAttachmentPicker, Ce as useGridEditingScroll, V as virtualPathToApiPath, z as withRoutableRootLabels };
@@ -14,19 +14,23 @@ var i = 3, a = e, o = /[/\\]/, s = {
14
14
  r.Size,
15
15
  r.Actions
16
16
  ], l = [
17
+ r.Name,
18
+ r.Author,
19
+ r.Actions
20
+ ], u = [
17
21
  r.Name,
18
22
  r.UpdatedAt,
19
23
  r.Size,
20
24
  r.Author,
21
25
  r.Actions
22
- ], u = {
26
+ ], d = {
23
27
  READ: n.READ,
24
28
  WRITE: n.WRITE,
25
29
  SHARE: n.SHARE
26
- }, d = [
30
+ }, f = [
27
31
  t.MyFiles,
28
32
  t.Shared,
29
33
  t.Organization
30
34
  ];
31
35
  //#endregion
32
- export { c as COLUMNS_WITHOUT_AUTHOR, l as COLUMNS_WITH_AUTHOR, u as CORE_PERMISSION_MAP, s as DATE_OPTIONS, d as DIAL_FILE_MANAGER_SECTION_TABS, o as PATH_SEPARATOR_REGEXP, a as RESERVED_MARKER_NAME, i as UPLOAD_CONCURRENCY };
36
+ export { c as COLUMNS_MY_FILES, u as COLUMNS_ORGANIZATION, l as COLUMNS_SHARED, d as CORE_PERMISSION_MAP, s as DATE_OPTIONS, f as DIAL_FILE_MANAGER_SECTION_TABS, o as PATH_SEPARATOR_REGEXP, a as RESERVED_MARKER_NAME, i as UPLOAD_CONCURRENCY };
@@ -4,7 +4,7 @@ var e = /* @__PURE__ */ function(e) {
4
4
  }({}), t = /* @__PURE__ */ function(e) {
5
5
  return e.Empty = "empty", e.ForbiddenSymbols = "forbiddenSymbols", e.ReservedName = "reservedName", e.TooLong = "tooLong", e.DuplicateName = "duplicateName", e;
6
6
  }({}), n = /* @__PURE__ */ function(e) {
7
- return e.FolderCreated = "folderCreated", e.FileRenamed = "fileRenamed", e.FileDownloaded = "fileDownloaded", e.FilesDownloaded = "filesDownloaded", e.FileCopied = "fileCopied", e.FilesCopied = "filesCopied", e.FileMoved = "fileMoved", e.FilesMoved = "filesMoved", e.FileDuplicated = "fileDuplicated", e.FilesDuplicated = "filesDuplicated", e;
7
+ return e.FolderCreated = "folderCreated", e.FileRenamed = "fileRenamed", e.FileDownloaded = "fileDownloaded", e.FilesDownloaded = "filesDownloaded", e.FileCopied = "fileCopied", e.FilesCopied = "filesCopied", e.FileMoved = "fileMoved", e.FilesMoved = "filesMoved", e.FileDuplicated = "fileDuplicated", e.FilesDuplicated = "filesDuplicated", e.FilesUnshared = "filesUnshared", e;
8
8
  }({});
9
9
  //#endregion
10
10
  export { e as FileManagerNotificationReason, t as FileNameValidationErrorReason, n as FileOperationKind };
@@ -27,11 +27,11 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
27
27
  return;
28
28
  }
29
29
  let t = !1;
30
- return A(!0), j(null), s(_, b, v, C, L.current).then(({ items: e, permissions: i }) => {
30
+ return A(!0), j(null), s(_, b, v, C, L.current).then(({ items: e, permissions: n }) => {
31
31
  t || (E((t) => {
32
32
  let n = new Map(t);
33
33
  return n.set(C, e), n;
34
- }), k((e) => new Map(e).set(C, i)), b === g.Shared && C === "" && (F(e.map((e) => n(r(e.path, e.bucket ?? ""), y, e.nodeType === m.Folder))), L.current = new Map(e.map((e) => [e.name, {
34
+ }), k((e) => new Map(e).set(C, n)), b === g.Shared && C === "" && (F(e.map((e) => e.nodeType === m.Folder ? `/${y}/${e.name}/` : `/${y}/${e.name}`)), L.current = new Map(e.map((e) => [e.name, {
35
35
  bucket: e.bucket ?? "",
36
36
  dialCorePath: e.path
37
37
  }]))));
@@ -144,6 +144,15 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
144
144
  ]), ve = l((e, t, n) => {
145
145
  E((r) => re(r, e, t, n));
146
146
  }, []), ye = l((e) => {
147
+ if (e.length === 0) return;
148
+ let t = new Set(e);
149
+ E((e) => {
150
+ let n = e.get("");
151
+ if (n == null) return e;
152
+ let r = new Map(e);
153
+ return r.set("", n.filter((e) => !t.has(e.name))), r;
154
+ }), F((t) => t?.filter((t) => !e.some((e) => t === `/${y}/${e}`)));
155
+ }, [y]), be = l((e) => {
147
156
  if (!S) return;
148
157
  let n = e == null ? "" : o(e, y), r = e ?? `/${y}`;
149
158
  if (J((e) => {
@@ -185,7 +194,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
185
194
  S,
186
195
  x,
187
196
  y
188
- ]), be = d(() => {
197
+ ]), xe = d(() => {
189
198
  let e = /* @__PURE__ */ new Set(), t = new Set([...W, ...q]);
190
199
  for (let n of t) {
191
200
  let t = o(n, y);
@@ -197,7 +206,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
197
206
  q,
198
207
  T,
199
208
  y
200
- ]), xe = l((e) => {
209
+ ]), Se = l((e) => {
201
210
  S && (W.forEach((t) => {
202
211
  e.has(t) || U.current.delete(o(t, y));
203
212
  }), G(e), [...e].filter((e) => {
@@ -230,9 +239,9 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
230
239
  S,
231
240
  x,
232
241
  y
233
- ]), Se = l(() => {
242
+ ]), Ce = l(() => {
234
243
  B.current != null && (clearTimeout(B.current), B.current = null), V.current?.(), V.current = null, z(null), R(!1);
235
- }, []), Ce = l((e, t) => {
244
+ }, []), we = l((e, t) => {
236
245
  if (S) {
237
246
  if (B.current != null && (clearTimeout(B.current), B.current = null), V.current?.(), V.current = null, !t.trim()) {
238
247
  z(null), R(!1);
@@ -267,7 +276,7 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
267
276
  C,
268
277
  S,
269
278
  y
270
- ]), $ = C ? `/${y}/${C}` : `/${y}`, we = d(() => {
279
+ ]), $ = C ? `/${y}/${C}` : `/${y}`, Te = d(() => {
271
280
  let e = Z[0];
272
281
  if (e) return a($) === a(`/${y}`) ? e : i(e.items ?? [], $);
273
282
  }, [
@@ -283,25 +292,26 @@ var _ = ({ filesApi: _, bucket: v, rootLabel: y, activeTab: b, onNotification: x
283
292
  folderPath: C,
284
293
  onPathChange: he,
285
294
  retry: Q,
286
- onSearchFiles: Ce,
295
+ onSearchFiles: we,
287
296
  isSearching: fe,
288
297
  searchResults: pe,
289
- clearSearchResults: Se,
298
+ clearSearchResults: Ce,
290
299
  expandedPaths: W,
291
- loadedPaths: be,
292
- onExpandedPathsChange: xe,
293
- onFolderPopupPathChange: ye,
300
+ loadedPaths: xe,
301
+ onExpandedPathsChange: Se,
302
+ onFolderPopupPathChange: be,
294
303
  folderPopupLoadingPaths: me,
295
304
  sharedWithMeIds: d(() => b === g.Shared ? P : void 0, [b, P]),
296
305
  sharedByMePaths: de,
297
- currentFolder: we,
306
+ currentFolder: Te,
298
307
  cache: T,
299
308
  listingPermissionsCache: O,
300
309
  sharedRootMetaRef: L,
301
310
  setFolderPath: w,
302
311
  invalidateFolders: _e,
303
312
  mergeCreatedFolder: ve,
304
- bumpRetry: ge
313
+ bumpRetry: ge,
314
+ removeSharedRootItems: ye
305
315
  };
306
316
  };
307
317
  //#endregion
@@ -1,150 +1,158 @@
1
- import { COLUMNS_WITHOUT_AUTHOR as e, COLUMNS_WITH_AUTHOR as t, DATE_OPTIONS as n } from "../dial-file-manager.model.js";
2
- import { hasDialFileWritePermission as r, isCopyMoveDuplicateAllowed as i, isShareActionsAllowed as a } from "../dial-file-manager-path.util.js";
3
- import { deriveActionProfile as o } from "../file-manager-variant.js";
4
- import { useDialFileListing as s } from "../useDialFileListing/useDialFileListing.js";
5
- import { useDialFileMetadata as c } from "../useDialFileMetadata/useDialFileMetadata.js";
6
- import { useDialFileMutations as l } from "../useDialFileMutations/useDialFileMutations.js";
7
- import { useDialFileSharing as u } from "../useDialFileSharing/useDialFileSharing.js";
8
- import { useDialFileUploadBatch as d } from "../useDialFileUploadBatch/useDialFileUploadBatch.js";
9
- import { DialFileManagerActionProfile as f, DialFileManagerVariant as p, isUploadInProgress as m } from "@epam/ai-dial-chat-shared";
10
- import { useCallback as h, useMemo as g } from "react";
11
- import { DialFileManagerActions as _, DialFileManagerTabs as v } from "@epam/ai-dial-react-file-manager";
1
+ import { COLUMNS_MY_FILES as e, COLUMNS_ORGANIZATION as t, COLUMNS_SHARED as n, DATE_OPTIONS as r } from "../dial-file-manager.model.js";
2
+ import { hasDialFileWritePermission as i, isCopyMoveDuplicateAllowed as a, isShareActionsAllowed as o } from "../dial-file-manager-path.util.js";
3
+ import { deriveActionProfile as s } from "../file-manager-variant.js";
4
+ import { useDialFileListing as c } from "../useDialFileListing/useDialFileListing.js";
5
+ import { useDialFileMetadata as l } from "../useDialFileMetadata/useDialFileMetadata.js";
6
+ import { useDialFileMutations as u } from "../useDialFileMutations/useDialFileMutations.js";
7
+ import { useDialFileSharing as d } from "../useDialFileSharing/useDialFileSharing.js";
8
+ import { useDialFileUploadBatch as f } from "../useDialFileUploadBatch/useDialFileUploadBatch.js";
9
+ import { DialFileManagerActionProfile as p, DialFileManagerVariant as m, isUploadInProgress as h } from "@epam/ai-dial-chat-shared";
10
+ import { useCallback as g, useMemo as _ } from "react";
11
+ import { DialFileManagerActions as v, DialFileManagerTabs as y } from "@epam/ai-dial-react-file-manager";
12
12
  //#region src/files/useDialFileManager/useDialFileManager.ts
13
- var y = ({ filesApi: y, bucket: b, rootLabel: x = "My files", activeTab: S = v.MyFiles, isActive: C, sessionKey: w, onNotification: T, onOperationSuccess: E, forbiddenSymbolsRegExp: D, variant: O = p.Attach, actionProfile: k, labels: A, locale: j, disabledNewButtonTooltip: M, downloadDestination: N, buildValidationErrorMessage: P }) => {
14
- let F = k ?? o(O), I = s({
15
- filesApi: y,
16
- bucket: b,
17
- rootLabel: x,
18
- activeTab: S,
19
- onNotification: T,
20
- isActive: C,
21
- sessionKey: w
22
- }), L = d({
23
- filesApi: y,
24
- bucket: b,
25
- rootLabel: x,
26
- activeTab: S,
27
- cache: I.cache,
28
- sharedRootMetaRef: I.sharedRootMetaRef,
29
- invalidateFolders: I.invalidateFolders,
30
- bumpRetry: I.bumpRetry,
31
- onNotification: T
32
- }), R = l({
33
- filesApi: y,
34
- bucket: b,
35
- rootLabel: x,
36
- activeTab: S,
37
- folderPath: I.folderPath,
38
- currentFolder: I.currentFolder,
39
- sharedRootMetaRef: I.sharedRootMetaRef,
40
- listingPermissionsCache: I.listingPermissionsCache,
41
- invalidateFolders: I.invalidateFolders,
42
- bumpRetry: I.bumpRetry,
43
- mergeCreatedFolder: I.mergeCreatedFolder,
44
- setFolderPath: I.setFolderPath,
45
- onNotification: T,
46
- onOperationSuccess: E,
47
- downloadDestination: N,
48
- forbiddenSymbolsRegExp: D
13
+ var b = ({ filesApi: b, bucket: x, rootLabel: S = "My files", activeTab: C = y.MyFiles, isActive: w, sessionKey: T, onNotification: E, onOperationSuccess: D, forbiddenSymbolsRegExp: O, variant: k = m.Attach, actionProfile: A, labels: j, locale: M, disabledNewButtonTooltip: N, downloadDestination: P, buildValidationErrorMessage: F }) => {
14
+ let I = A ?? s(k), L = c({
15
+ filesApi: b,
16
+ bucket: x,
17
+ rootLabel: S,
18
+ activeTab: C,
19
+ onNotification: E,
20
+ isActive: w,
21
+ sessionKey: T
22
+ }), R = f({
23
+ filesApi: b,
24
+ bucket: x,
25
+ rootLabel: S,
26
+ activeTab: C,
27
+ cache: L.cache,
28
+ sharedRootMetaRef: L.sharedRootMetaRef,
29
+ invalidateFolders: L.invalidateFolders,
30
+ bumpRetry: L.bumpRetry,
31
+ onNotification: E
49
32
  }), z = u({
50
- filesApi: y,
51
- bucket: b,
52
- rootLabel: x,
53
- bumpRetry: I.bumpRetry,
54
- onNotification: T
55
- }), B = c({
56
- filesApi: y,
57
- bucket: b,
58
- rootLabel: x,
59
- onNotification: T
60
- }), V = r(I.currentFolder), H = g(() => S === v.Organization || S === v.Shared && I.folderPath === "" ? !1 : V, [
61
- S,
62
- I.folderPath,
63
- V
64
- ]), U = g(() => S === v.Shared ? t : e, [S]), W = g(() => {
33
+ filesApi: b,
34
+ bucket: x,
35
+ rootLabel: S,
36
+ activeTab: C,
37
+ folderPath: L.folderPath,
38
+ currentFolder: L.currentFolder,
39
+ sharedRootMetaRef: L.sharedRootMetaRef,
40
+ listingPermissionsCache: L.listingPermissionsCache,
41
+ invalidateFolders: L.invalidateFolders,
42
+ bumpRetry: L.bumpRetry,
43
+ mergeCreatedFolder: L.mergeCreatedFolder,
44
+ setFolderPath: L.setFolderPath,
45
+ onNotification: E,
46
+ onOperationSuccess: D,
47
+ downloadDestination: P,
48
+ forbiddenSymbolsRegExp: O
49
+ }), B = d({
50
+ filesApi: b,
51
+ bucket: x,
52
+ rootLabel: S,
53
+ bumpRetry: L.bumpRetry,
54
+ onNotification: E,
55
+ onOperationSuccess: D,
56
+ removeSharedRootItems: L.removeSharedRootItems
57
+ }), V = l({
58
+ filesApi: b,
59
+ bucket: x,
60
+ rootLabel: S,
61
+ onNotification: E
62
+ }), H = i(L.currentFolder), U = _(() => C === y.Organization || C === y.Shared && L.folderPath === "" ? !1 : H, [
63
+ C,
64
+ L.folderPath,
65
+ H
66
+ ]), W = _(() => {
67
+ switch (C) {
68
+ case y.Shared: return n;
69
+ case y.Organization: return t;
70
+ default: return e;
71
+ }
72
+ }, [C]), G = _(() => {
65
73
  let e = {}, t = (t) => {
66
- let n = A[t];
74
+ let n = j[t];
67
75
  n != null && (e[t] = n);
68
76
  };
69
- return t(_.Download), S === v.MyFiles ? (t(_.Delete), H && (t(_.Rename), i(F) && (t(_.Copy), t(_.Move), t(_.Duplicate))), a(F) && t(_.RemoveAccess)) : S === v.Shared && a(F) && t(_.Unshare), F === f.Full && t(_.Info), e;
77
+ return t(v.Download), C === y.MyFiles ? (t(v.Delete), U && (t(v.Rename), a(I) && (t(v.Copy), t(v.Move), t(v.Duplicate))), o(I) && t(v.RemoveAccess)) : C === y.Shared && o(I) && t(v.Unshare), I === p.Full && t(v.Info), e;
70
78
  }, [
71
- S,
72
- H,
73
- F,
74
- A
75
- ]), G = g(() => R.isCreatingFolder || R.isDownloading || R.isDeleting || R.isRenaming || R.isCopying || R.isMoving || z.isUnsharing || z.isRemovingAccess || m(L.uploadBatchState), [
76
- R.isCreatingFolder,
77
- R.isDownloading,
78
- R.isDeleting,
79
- R.isRenaming,
80
- R.isCopying,
81
- R.isMoving,
82
- z.isUnsharing,
83
- z.isRemovingAccess,
84
- L.uploadBatchState
85
- ]), K = h((e, t) => {
86
- let n = R.onCreateFolderValidate(e, t);
87
- return n ? P(n) : null;
88
- }, [R, P]), q = h((e, t) => {
89
- let n = R.onRenameValidate(e, t);
90
- return n ? P(n, t) : null;
91
- }, [R, P]);
79
+ C,
80
+ U,
81
+ I,
82
+ j
83
+ ]), K = _(() => z.isCreatingFolder || z.isDownloading || z.isDeleting || z.isRenaming || z.isCopying || z.isMoving || B.isUnsharing || B.isRemovingAccess || h(R.uploadBatchState), [
84
+ z.isCreatingFolder,
85
+ z.isDownloading,
86
+ z.isDeleting,
87
+ z.isRenaming,
88
+ z.isCopying,
89
+ z.isMoving,
90
+ B.isUnsharing,
91
+ B.isRemovingAccess,
92
+ R.uploadBatchState
93
+ ]), q = g((e, t) => {
94
+ let n = z.onCreateFolderValidate(e, t);
95
+ return n ? F(n) : null;
96
+ }, [z, F]), J = g((e, t) => {
97
+ let n = z.onRenameValidate(e, t);
98
+ return n ? F(n, t) : null;
99
+ }, [z, F]);
92
100
  return {
93
- items: I.items,
94
- isLoading: I.isLoading,
95
- error: I.error,
96
- path: I.path,
97
- onPathChange: I.onPathChange,
98
- retry: I.retry,
99
- onSearchFiles: I.onSearchFiles,
100
- isSearching: I.isSearching,
101
- searchResults: I.searchResults,
102
- clearSearchResults: I.clearSearchResults,
103
- expandedPaths: I.expandedPaths,
104
- loadedPaths: I.loadedPaths,
105
- onExpandedPathsChange: I.onExpandedPathsChange,
106
- onFolderPopupPathChange: I.onFolderPopupPathChange,
107
- folderPopupLoadingPaths: I.folderPopupLoadingPaths,
108
- onUploadFiles: L.onUploadFiles,
109
- onUploadArchive: L.onUploadArchive,
110
- onValidateUpload: L.onValidateUpload,
111
- uploadBatchState: L.uploadBatchState,
112
- cancelUpload: L.cancelUpload,
113
- cancelUploadFile: L.cancelUploadFile,
114
- clearUploadBatch: L.clearUploadBatch,
115
- onCreateFolder: R.onCreateFolder,
116
- onCreateFolderValidate: K,
117
- isCreatingFolder: R.isCreatingFolder,
118
- onDownloadFiles: R.onDownloadFiles,
119
- isDownloading: R.isDownloading,
120
- onDeleteFiles: R.onDeleteFiles,
121
- isDeleting: R.isDeleting,
122
- onRenameValidate: q,
123
- onMoveToFiles: R.onMoveToFiles,
124
- isRenaming: R.isRenaming,
125
- onCopyFiles: R.onCopyFiles,
126
- isCopying: R.isCopying,
127
- isMoving: R.isMoving,
128
- cancelCopyMove: R.cancelCopyMove,
129
- uploadEnabled: H,
130
- isNewButtonDisabled: !H,
131
- disabledNewButtonTooltip: M,
132
- visibleColumns: U,
133
- dateLocale: j,
134
- dateOptions: n,
135
- actionLabels: W,
136
- sharedWithMeIds: I.sharedWithMeIds,
137
- sharedByMePaths: I.sharedByMePaths,
138
- onUnshareFiles: z.onUnshareFiles,
139
- isUnsharing: z.isUnsharing,
140
- onRemoveFilesAccess: z.onRemoveFilesAccess,
141
- isRemovingAccess: z.isRemovingAccess,
142
- fileMetadata: B.fileMetadata,
143
- isFileMetadataLoading: B.isFileMetadataLoading,
144
- onGetInfo: B.onGetInfo,
145
- clearMetadata: B.clearMetadata,
146
- isAnyOperationInProgress: G
101
+ items: L.items,
102
+ isLoading: L.isLoading,
103
+ error: L.error,
104
+ path: L.path,
105
+ onPathChange: L.onPathChange,
106
+ retry: L.retry,
107
+ onSearchFiles: L.onSearchFiles,
108
+ isSearching: L.isSearching,
109
+ searchResults: L.searchResults,
110
+ clearSearchResults: L.clearSearchResults,
111
+ expandedPaths: L.expandedPaths,
112
+ loadedPaths: L.loadedPaths,
113
+ onExpandedPathsChange: L.onExpandedPathsChange,
114
+ onFolderPopupPathChange: L.onFolderPopupPathChange,
115
+ folderPopupLoadingPaths: L.folderPopupLoadingPaths,
116
+ onUploadFiles: R.onUploadFiles,
117
+ onUploadArchive: R.onUploadArchive,
118
+ onValidateUpload: R.onValidateUpload,
119
+ uploadBatchState: R.uploadBatchState,
120
+ cancelUpload: R.cancelUpload,
121
+ cancelUploadFile: R.cancelUploadFile,
122
+ clearUploadBatch: R.clearUploadBatch,
123
+ onCreateFolder: z.onCreateFolder,
124
+ onCreateFolderValidate: q,
125
+ isCreatingFolder: z.isCreatingFolder,
126
+ onDownloadFiles: z.onDownloadFiles,
127
+ isDownloading: z.isDownloading,
128
+ onDeleteFiles: z.onDeleteFiles,
129
+ isDeleting: z.isDeleting,
130
+ onRenameValidate: J,
131
+ onMoveToFiles: z.onMoveToFiles,
132
+ isRenaming: z.isRenaming,
133
+ onCopyFiles: z.onCopyFiles,
134
+ isCopying: z.isCopying,
135
+ isMoving: z.isMoving,
136
+ cancelCopyMove: z.cancelCopyMove,
137
+ uploadEnabled: U,
138
+ isNewButtonDisabled: !U,
139
+ disabledNewButtonTooltip: N,
140
+ visibleColumns: W,
141
+ dateLocale: M,
142
+ dateOptions: r,
143
+ actionLabels: G,
144
+ sharedWithMeIds: L.sharedWithMeIds,
145
+ sharedByMePaths: L.sharedByMePaths,
146
+ onUnshareFiles: B.onUnshareFiles,
147
+ isUnsharing: B.isUnsharing,
148
+ onRemoveFilesAccess: B.onRemoveFilesAccess,
149
+ isRemovingAccess: B.isRemovingAccess,
150
+ fileMetadata: V.fileMetadata,
151
+ isFileMetadataLoading: V.isFileMetadataLoading,
152
+ onGetInfo: V.onGetInfo,
153
+ clearMetadata: V.clearMetadata,
154
+ isAnyOperationInProgress: K
147
155
  };
148
156
  };
149
157
  //#endregion
150
- export { y as useDialFileManager };
158
+ export { b as useDialFileManager };
@@ -1,70 +1,76 @@
1
- import { FileManagerNotificationReason as e } from "../dial-file-manager.types.js";
2
- import { resolveDialFileApiPath as t } from "../resolve-dial-file-api-path.js";
3
- import { useCallback as n, useState as r } from "react";
4
- import { NotificationVariant as i } from "@epam/ai-dial-ui-kit";
1
+ import { FileManagerNotificationReason as e, FileOperationKind as t } from "../dial-file-manager.types.js";
2
+ import { resolveDialFileApiPath as n } from "../resolve-dial-file-api-path.js";
3
+ import { useCallback as r, useState as i } from "react";
4
+ import { NotificationVariant as a } from "@epam/ai-dial-ui-kit";
5
5
  //#region src/files/useDialFileSharing/useDialFileSharing.ts
6
- var a = ({ filesApi: a, bucket: o, rootLabel: s, bumpRetry: c, onNotification: l }) => {
7
- let [u, d] = r(!1), [f, p] = r(!1);
6
+ var o = ({ filesApi: o, bucket: s, rootLabel: c, bumpRetry: l, onNotification: u, onOperationSuccess: d, removeSharedRootItems: f }) => {
7
+ let [p, m] = i(!1), [h, g] = i(!1);
8
8
  return {
9
- isUnsharing: u,
10
- isRemovingAccess: f,
11
- onUnshareFiles: n((n) => {
12
- n.length !== 0 && (async () => {
13
- d(!0);
14
- let r = n.map((e) => {
15
- let n = e.bucket ?? o;
9
+ isUnsharing: p,
10
+ isRemovingAccess: h,
11
+ onUnshareFiles: r((r) => {
12
+ r.length !== 0 && (async () => {
13
+ m(!0);
14
+ let i = r.map((e) => {
15
+ let t = e.bucket ?? s;
16
16
  return {
17
- bucket: n,
18
- path: t(e, n, s)
17
+ bucket: t,
18
+ path: n(e, t, c)
19
19
  };
20
20
  });
21
21
  try {
22
- await a.discardShared(r), c();
22
+ await o.discardShared(i), f?.(r.map((e) => e.name)), d?.({
23
+ kind: t.FilesUnshared,
24
+ name: r[0].name,
25
+ count: r.length
26
+ }), l();
23
27
  } catch {
24
- l?.({
25
- variant: i.Error,
28
+ u?.({
29
+ variant: a.Error,
26
30
  reason: e.UnshareFailed
27
31
  });
28
32
  } finally {
29
- d(!1);
33
+ m(!1);
30
34
  }
31
35
  })();
32
36
  }, [
33
- o,
34
37
  s,
35
- l,
36
- a,
37
- c
38
+ c,
39
+ u,
40
+ d,
41
+ f,
42
+ o,
43
+ l
38
44
  ]),
39
- onRemoveFilesAccess: n((n) => {
40
- n.length !== 0 && (async () => {
41
- p(!0);
42
- let r = n.map((e) => {
43
- let n = e.bucket ?? o;
45
+ onRemoveFilesAccess: r((t) => {
46
+ t.length !== 0 && (async () => {
47
+ g(!0);
48
+ let r = t.map((e) => {
49
+ let t = e.bucket ?? s;
44
50
  return {
45
- bucket: n,
46
- path: t(e, n, s)
51
+ bucket: t,
52
+ path: n(e, t, c)
47
53
  };
48
54
  });
49
55
  try {
50
- await a.revokeAccess(r), c();
56
+ await o.revokeAccess(r), l();
51
57
  } catch {
52
- l?.({
53
- variant: i.Error,
58
+ u?.({
59
+ variant: a.Error,
54
60
  reason: e.RemoveAccessFailed
55
61
  });
56
62
  } finally {
57
- p(!1);
63
+ g(!1);
58
64
  }
59
65
  })();
60
66
  }, [
61
- o,
62
67
  s,
63
- l,
64
- a,
65
- c
68
+ c,
69
+ u,
70
+ o,
71
+ l
66
72
  ])
67
73
  };
68
74
  };
69
75
  //#endregion
70
- export { a as useDialFileSharing };
76
+ export { o as useDialFileSharing };
package/index.d.ts CHANGED
@@ -20,6 +20,7 @@ import { CatalogItemDetailsFetchResult } from '@epam/ai-dial-catalog';
20
20
  import { CatalogItemLimits } from '@epam/ai-dial-catalog';
21
21
  import { CatalogItemOverview } from '@epam/ai-dial-catalog';
22
22
  import { CatalogItemTabData } from '@epam/ai-dial-catalog';
23
+ import { CatalogTabCreateMenu } from '@epam/ai-dial-catalog';
23
24
  import { ChangeEvent } from 'react';
24
25
  import { Conversation } from '@epam/ai-dial-chat-shared';
25
26
  import { ConversationListItemDto } from '@epam/ai-dial-chat-api-client';
@@ -817,9 +818,11 @@ declare interface CodeCanvasContent {
817
818
  language?: string;
818
819
  }
819
820
 
820
- export declare const COLUMNS_WITH_AUTHOR: FileManagerColumnKey[];
821
+ export declare const COLUMNS_MY_FILES: FileManagerColumnKey[];
821
822
 
822
- export declare const COLUMNS_WITHOUT_AUTHOR: FileManagerColumnKey[];
823
+ export declare const COLUMNS_ORGANIZATION: FileManagerColumnKey[];
824
+
825
+ export declare const COLUMNS_SHARED: FileManagerColumnKey[];
823
826
 
824
827
  /**
825
828
  * Composes the "Add locale" popup's entries into the write-payload shape:
@@ -1740,7 +1743,9 @@ export declare enum FileOperationKind {
1740
1743
  FilesMoved = "filesMoved",
1741
1744
  /** A copy whose every item landed in its own source folder (Duplicate). */
1742
1745
  FileDuplicated = "fileDuplicated",
1743
- FilesDuplicated = "filesDuplicated"
1746
+ FilesDuplicated = "filesDuplicated",
1747
+ /** One or more shared-with-me items were removed from the Shared tab. */
1748
+ FilesUnshared = "filesUnshared"
1744
1749
  }
1745
1750
 
1746
1751
  /**
@@ -4925,6 +4930,8 @@ export declare interface UseCatalogEditNavigationResult {
4925
4930
  createOptions: DropdownItem[];
4926
4931
  /** The Create menu's search field state, or `undefined` when no runner option is offered. */
4927
4932
  createSearch: CatalogCreateSearch | undefined;
4933
+ /** The Create menu narrowed to each entity type; models have no entry since they cannot be created. */
4934
+ createMenuByType: Partial<Record<CatalogEntityType, CatalogTabCreateMenu>>;
4928
4935
  }
4929
4936
 
4930
4937
  /**
@@ -5516,6 +5523,11 @@ export declare interface UseDialFileListingResult {
5516
5523
  mergeCreatedFolder: (parentApiPath: string, created: CreateFolderResponseDto, inheritedPermissions?: string[]) => void;
5517
5524
  /** Forces the listing effect to re-fetch the currently browsed folder. */
5518
5525
  bumpRetry: () => void;
5526
+ /**
5527
+ * Drops the named root rows from the Shared tab's cached listing, so an
5528
+ * unshared item disappears at once instead of waiting for the refetch.
5529
+ */
5530
+ removeSharedRootItems: (names: string[]) => void;
5519
5531
  }
5520
5532
 
5521
5533
  /**
@@ -5837,7 +5849,7 @@ export declare interface UseDialFileMutationsResult {
5837
5849
  * shared retry counter after each mutation settles rather than holding its
5838
5850
  * own cache copy.
5839
5851
  */
5840
- export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
5852
+ export declare const useDialFileSharing: ({ filesApi, bucket, rootLabel, bumpRetry, onNotification, onOperationSuccess, removeSharedRootItems, }: UseDialFileSharingOptions) => UseDialFileSharingResult;
5841
5853
 
5842
5854
  /** Options accepted by `useDialFileSharing`. */
5843
5855
  export declare interface UseDialFileSharingOptions {
@@ -5851,6 +5863,10 @@ export declare interface UseDialFileSharingOptions {
5851
5863
  bumpRetry: () => void;
5852
5864
  /** Called when a sharing mutation fails and should surface a toast notification. */
5853
5865
  onNotification?: (notification: FileManagerNotification) => void;
5866
+ /** Called with a structured event once an unshare succeeds, so the host can show its success toast. */
5867
+ onOperationSuccess?: (event: FileOperationSuccessEvent) => void;
5868
+ /** Removes the unshared root rows from the cached Shared listing ahead of the refetch. */
5869
+ removeSharedRootItems?: (names: string[]) => void;
5854
5870
  }
5855
5871
 
5856
5872
  /** Values returned by `useDialFileSharing`. */
package/index.js CHANGED
@@ -105,46 +105,46 @@ import { useConversationStream as ni } from "./conversation/useConversationStrea
105
105
  import { useConversationSources as ri } from "./conversation-sources/useConversationSources/useConversationSources.js";
106
106
  import { DialFilesApiUploadMode as ii } from "./files/dial-files-api.js";
107
107
  import { FileManagerNotificationReason as ai, FileNameValidationErrorReason as oi, FileOperationKind as si } from "./files/dial-file-manager.types.js";
108
- import { COLUMNS_WITHOUT_AUTHOR as ci, COLUMNS_WITH_AUTHOR as li, CORE_PERMISSION_MAP as ui, DATE_OPTIONS as di, DIAL_FILE_MANAGER_SECTION_TABS as fi, PATH_SEPARATOR_REGEXP as pi, RESERVED_MARKER_NAME as mi, UPLOAD_CONCURRENCY as hi } from "./files/dial-file-manager.model.js";
109
- import { buildSharedItemVirtualPath as gi, dialCorePathToRelative as _i, findDialFileByPath as vi, findFolderByVirtualPath as yi, formatOperationFolderName as bi, getVirtualPathName as xi, hasDialFileWritePermission as Si, hasForbiddenNameSymbols as Ci, hasSamePaths as wi, isCopyMoveDuplicateAllowed as Ti, isShareActionsAllowed as Ei, normalizeVirtualPath as Di, parseNewFolderVirtualPath as Oi, resolveOwnerCoords as ki, resolveSectionByPath as Ai, unionPathSets as ji, withRoutableRootLabels as Mi } from "./files/dial-file-manager-path.util.js";
110
- import { resolveDialFileApiPath as Ni, virtualPathToApiPath as Pi } from "./files/resolve-dial-file-api-path.js";
111
- import { prepareCopyItems as Fi, prepareMoveRenameItems as Ii } from "./files/dial-file-manager-copy-move.util.js";
112
- import { buildFromCache as Li, fetchByTab as Ri, fetchForSearch as zi, findFirstSuccessfulCopyMoveItem as Bi, mapCorePermissions as Vi, mapFileMetadataToDialFile as Hi, mapSearchItem as Ui, mergeCreatedFolderIntoCache as Wi, updateEntry as Gi } from "./files/dial-file-manager-mapping.util.js";
113
- import { createFilesApiClient as Ki } from "./files/create-files-api.js";
114
- import { createUploadFileWithProgress as qi } from "./files/create-upload-file-with-progress.js";
115
- import { openAnnotationAttachment as Ji } from "./files/annotation.js";
116
- import { annotationToOoxmlCanvasContent as Yi, annotationToPdfCanvasContent as Xi, clearAttachmentCache as Zi, hasAttachmentTextSource as Qi, referenceAttachmentToPdfCanvasContent as $i, resolveCodeCanvasContent as ea, resolveGroupedVisualizerCanvasContent as ta, resolveHtmlCanvasContent as na, resolveImageCanvasContent as ra, resolveJsonCanvasContent as ia, resolveMarkdownCanvasContent as aa, resolveOoxmlCanvasContent as oa, resolvePdfCanvasContent as sa, resolveTextCanvasContent as ca, resolveVisualizerCanvasContent as la } from "./files/attachment-canvas.js";
117
- import { getUrlFileName as ua, isExternalSourcePreviewable as da, resolveExternalSourceContentType as fa } from "./files/source-content.js";
118
- import { annotationToDisplayAttachment as pa, attachmentDtoToDisplayAttachment as ma, attachmentDtosToDisplayAttachments as ha } from "./files/attachment-dto-to-display.js";
119
- import { dialFileToAttachment as ga, dialFilesToAttachments as _a, dialFolderPathToAttachment as va } from "./files/dial-file-to-attachment.js";
120
- import { DownloadDestinationType as ya } from "./files/download-destination.js";
121
- import { prepareDownloadDestination as ba } from "./files/prepare-download-destination.js";
122
- import { deriveActionProfile as xa } from "./files/file-manager-variant.js";
123
- import { useDialFileListing as Sa } from "./files/useDialFileListing/useDialFileListing.js";
124
- import { useDialFileMetadata as Ca } from "./files/useDialFileMetadata/useDialFileMetadata.js";
125
- import { useDialFileMutations as wa } from "./files/useDialFileMutations/useDialFileMutations.js";
126
- import { useDialFileSharing as Ta } from "./files/useDialFileSharing/useDialFileSharing.js";
127
- import { useDialFileUploadBatch as Ea } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
128
- import { useDialFileManager as Da } from "./files/useDialFileManager/useDialFileManager.js";
129
- import { useDialFileManagerSections as Oa } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
130
- import { useDialFileManagerTabConfig as ka } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
131
- import { useFileAttachmentPicker as Aa } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
132
- import { getBrowserTimezone as ja } from "./shared/browser-timezone.js";
133
- import { isValidAbsoluteUrl as Ma, isValidFeaturesData as Na, parseFeaturesData as Pa } from "./shared/custom-apps.js";
134
- import { buildExternalServiceScopeId as Fa, getExternalServiceFallbackName as Ia, parseExternalServiceUrl as La } from "./shared/external-services.js";
135
- import { useChatSettingsFormConfig as Ra } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
136
- import { usePageFileDrag as za } from "./usePageFileDrag/usePageFileDrag.js";
137
- import { useViewportWidth as Ba } from "./useViewportWidth/useViewportWidth.js";
138
- import { usePanelMaxWidth as Va } from "./usePanelMaxWidth/usePanelMaxWidth.js";
139
- import { useShareLink as Ha } from "./useShareLink/useShareLink.js";
140
- import { useToolsMenu as Ua } from "./useToolsMenu/useToolsMenu.js";
141
- import { USAGE_DATA_I18N_KEYS as Wa, mapUsageDataToDashboard as Ga } from "./usage/map-usage-data-to-dashboard.js";
142
- import { USAGE_MODEL_LIMITS_I18N_KEYS as Ka, mapOverallCostLimitsToPeriodStatuses as qa, mapUserUsageToModelLimits as Ja } from "./usage/map-user-usage-to-model-limits.js";
143
- import { useUsageData as Ya } from "./usage/useUsageData/useUsageData.js";
144
- import { McpAppResourceFetchError as Xa, createMcpAppsApiClient as Za } from "./mcp-apps/mcp-apps-api-client.js";
145
- import { useMcpAppTools as Qa } from "./mcp-apps/useMcpAppTools/useMcpAppTools.js";
146
- import { useMcpAppHostContext as $a } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
147
- import { useMcpAppHostAdapter as eo } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
148
- import { useOpenMcpAppCanvas as to } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
149
- import { useGridEditingScroll as no } from "@epam/ai-dial-chat-shared";
150
- export { x as AttachmentValidationErrorReason, Pr as AudioTranscriptionError, Fr as AudioTranscriptionErrorReason, B as AuthenticationType, ci as COLUMNS_WITHOUT_AUTHOR, li as COLUMNS_WITH_AUTHOR, ui as CORE_PERMISSION_MAP, Ct as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, di as DATE_OPTIONS, he as DEFAULT_ENTITY_DETAILS_LABELS, en as DEFAULT_GENERATION_CONFLICT_MESSAGE, tn as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Lr as DEFAULT_MAX_ARCHIVE_BYTES, nn as DEFAULT_STREAM_IDLE_TIMEOUT_MS, fi as DIAL_FILE_MANAGER_SECTION_TABS, ii as DialFilesApiUploadMode, ya as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Kt as FavoriteEntityType, ai as FileManagerNotificationReason, oi as FileNameValidationErrorReason, si as FileOperationKind, rn as GenerationConflictError, an as GenerationPersistenceError, Xa as McpAppResourceFetchError, ct as McpResourceKind, W as OAuthResourceKind, pi as PATH_SEPARATOR_REGEXP, Fn as PROMPT_CONTENT_MAX_LENGTH, In as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, Ln as PROMPT_DESCRIPTION_MAX_LENGTH, Rn as PROMPT_NAME_MAX_LENGTH, Je as PUBLIC_SKILL_BUCKET, zn as PromptFieldError, Ce as PromptSource, mi as RESERVED_MARKER_NAME, br as RecipientsCountStatus, Oe as SKILL_FILE_UPLOAD_MAX_BYTES, ke as SKILL_FOLDER_MARKER, Ye as SKILL_LISTING_MAX_PAGES, Xe as SKILL_LISTING_PAGE_SIZE, Ae as SKILL_MANIFEST_FILE, Ze as SKILL_MANIFEST_MAX_BYTES, je as SKILL_TEXT_FIELD_MAX_LENGTHS, Me as SKILL_UPLOAD_MAX_FILES, Ne as SKILL_UPLOAD_MAX_TOTAL_BYTES, qn as ScheduledTaskTriggerDescriptionKind, hr as SkillArchiveImportErrorKind, gr as SkillArchiveImportStatus, _r as SkillArchiveSelectionRejectionReason, cr as SkillEditorLoadState, fr as SkillPreviewErrorKind, Qe as SkillSource, on as StreamInterruptedError, sn as StreamUpstreamError, G as TOOLSET_REDIRECT_STATE_KEY, K as ToolsetAuthStatus, q as ToolsetAuthTypes, J as ToolsetCredentialsLevel, Vt as ToolsetLoginOutcomeType, Y as ToolsetOAuthCallbackQuery, X as ToolsetOAuthChannelControlType, Z as ToolsetOAuthFailureReason, Q as ToolsetOAuthInitiationResultType, $ as ToolsetOAuthResultType, hi as UPLOAD_CONCURRENCY, Wa as USAGE_DATA_I18N_KEYS, Ka as USAGE_MODEL_LIMITS_I18N_KEYS, Kn as UnsupportedTriggerReason, ee as WithLogin, pa as annotationToDisplayAttachment, Yi as annotationToOoxmlCanvasContent, Xi as annotationToPdfCanvasContent, Yn as apSchedulerDayToJsDay, se as appendLocaleCode, $r as applyChunkToMessages, ma as attachmentDtoToDisplayAttachment, ha as attachmentDtosToDisplayAttachments, zr as attachmentToDto, Br as attachmentsToDtos, ce as buildAdditionalLocaleOptions, Yt as buildAnnouncementSignature, lt as buildApplicationMcpUrl, N as buildChatCompletionsUrl, ut as buildConnectApi, P as buildDeploymentConnectApi, Fa as buildExternalServiceScopeId, Li as buildFromCache, Mn as buildPromptExportEnvelope, Nn as buildPromptExportFileName, Te as buildPromptOverview, Bn as buildPromptPath, V as buildResetFields, F as buildResponsesUrl, gi as buildSharedItemVirtualPath, et as buildSkillContentTree, Pe as buildSkillFilesPayload, Fe as buildSkillManifest, Ie as buildSkillManifestForSubmit, Le as buildSkillManifestFromFrontmatter, tt as buildSkillOverview, It as buildToolsetAuthorizeUrl, dt as buildToolsetMcpUrl, vr as classifySkillArchiveImportError, Zi as clearAttachmentCache, le as composeLocalePayload, cn as createChatStreamApi, i as createCsrfMiddleware, gn as createDeploymentChangedMessage, Ki as createFilesApiClient, Za as createMcpAppsApiClient, Vr as createMessagePair, j as createPublishApiClient, nr as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, qi as createUploadFileWithProgress, I as decodeDeploymentId, te as decodeToolsetId, ue as decomposeLocalizedFields, xa as deriveActionProfile, vt as deriveAvailableTabIds, Sr as deriveConversationRowActionState, yt as deriveFavoriteItems, Jn as describeScheduledTaskTrigger, _i as dialCorePathToRelative, ga as dialFileToAttachment, _a as dialFilesToAttachments, va as dialFolderPathToAttachment, m as downloadAttachment, Mt as emitToolsetLoginSuccess, L as encodeDeploymentId, ne as encodeToolsetId, Ri as fetchByTab, zi as fetchForSearch, bt as filterCatalogItemsBySelector, xt as filterHiddenOwnedItems, R as findDeploymentByIdOrReference, fn as findDeploymentForConversationId, vi as findDialFileByPath, Bi as findFirstSuccessfulCopyMoveItem, yi as findFolderByVirtualPath, un as formatAppVersion, pe as formatCalendarDate, C as formatDateYM, w as formatDateYMD, bi as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, ja as getBrowserTimezone, Yr as getConversationPath, Er as getConversationSource, Ia as getExternalServiceFallbackName, _n as getFormSchemaToolSyncKey, vn as getLastDeploymentId, yn as getLastUserMessageToolConfiguration, bn as getLatestToolConfiguration, pn as getModelIdCandidatesFromConversationId, mn as getModelIdFromConversationId, pt as getPublicCatalogEntityFolderPath, En as getQuickAppConversationStarters, Vn as getRemainingCharacters, Tt as getRunnerSchemas, Re as getSkillFieldLengthViolations, Kr as getStarterConversationText, qr as getStarterDisplayText, kn as getStarterPopulateText, Jr as getStarterSubmitText, An as getStartersFromSchema, hn as getTimeOfDayGreeting, xn as getToolConfigurationFromFormSchema, Pt as getToolsetOAuthChannelName, Lt as getToolsetRedirectUri, ua as getUrlFileName, xi as getVirtualPathName, Hr as hasActiveToolConfig, Xt as hasAnnouncementContent, Qi as hasAttachmentTextSource, Si as hasDialFileWritePermission, Ci as hasForbiddenNameSymbols, wi as hasSamePaths, Zt as hasStructuredAnnouncement, o as includesIgnoreCase, Rt as initiateOAuthLogin, Ur as isAnswerIncomplete, ti as isAwaitingGenerationResume, r as isConversationNotFoundError, Ti as isCopyMoveDuplicateAllowed, Et as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, da as isExternalSourcePreviewable, Wr as isMessageChanged, Sn as isMessageStreaming, Ee as isOrganisationPromptItem, mt as isPublicCatalogEntityId, re as isPublicToolsetId, Dt as isQuickAppSchema, Ei as isShareActionsAllowed, ze as isSkillFolderMarkerPath, Ma as isValidAbsoluteUrl, Na as isValidFeaturesData, Be as isValidSkillRelativePath, Xn as jsDayToApSchedulerDay, Vi as mapCorePermissions, ge as mapDeploymentDetailsDtoToEntityDetails, U as mapDeploymentLimitsDtoToCatalogLimits, H as mapDeploymentLimitsToInput, ye as mapDeploymentToCatalogItem, be as mapDeploymentToolsetCredentials, _e as mapEntityDetailsToCatalogDetails, Hi as mapFileMetadataToDialFile, Zn as mapFormValuesToCreateBody, Qn as mapFormValuesToUpdateBody, qa as mapOverallCostLimitsToPeriodStatuses, De as mapPromptToCatalogItem, ht as mapPublishConversationResultDto, gt as mapPublishHistoryEntryDto, $n as mapScheduledTaskDtoToFormValues, Ui as mapSearchItem, nt as mapSkillToCatalogItem, Dn as mapStages, ve as mapToolsetCredentials, xe as mapToolsetToCatalogItem, Ga as mapUsageDataToDashboard, Ja as mapUserUsageToModelLimits, Wi as mergeCreatedFolderIntoCache, ir as mergeRunsById, ei as mergeStages, Cn as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, Ve as nameFromPath, zt as navigateToolsetOAuthPopup, z as normalizeDeploymentId, wn as normalizeResponseFormat, He as normalizeSkillName, ie as normalizeToolsetId, Di as normalizeVirtualPath, Ji as openAnnotationAttachment, Bt as openToolsetOAuthPopup, me as padTwoDigits, La as parseExternalServiceUrl, Pa as parseFeaturesData, Oi as parseNewFolderVirtualPath, we as parsePromptResourceUrl, Ue as parseSkillManifest, kt as parseSkillManifestDocument, $e as parseSkillResourceUrl, Fi as prepareCopyItems, ba as prepareDownloadDestination, Ii as prepareMoveRenameItems, er as prepareScheduledTaskCreateBody, tr as prepareScheduledTaskUpdateBody, rt as readSkillFileBytes, it as readSkillFilePreviewBytes, at as readSkillManifest, St as reconcileFilterTopics, $i as referenceAttachmentToPdfCanvasContent, wt as resolveCatalogPrimaryAction, ea as resolveCodeCanvasContent, Se as resolveDeploymentFolder, Ni as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, fa as resolveExternalSourceContentType, ta as resolveGroupedVisualizerCanvasContent, na as resolveHtmlCanvasContent, ra as resolveImageCanvasContent, ia as resolveJsonCanvasContent, de as resolveLocalizedText, aa as resolveMarkdownCanvasContent, ft as resolveMcpResourceKind, oa as resolveOoxmlCanvasContent, ki as resolveOwnerCoords, sa as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, Ai as resolveSectionByPath, ot as resolveSkillFileDownloadPath, st as resolveSkillManifestFileId, ca as resolveTextCanvasContent, ae as resolveToolsetCredentialsLevel, la as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, Qt as sanitizeAnnouncementHtml, $t as sanitizeAnnouncementMessageHtml, Ar as sanitizeFileName, dn as sanitizeFooterHtml, oe as selectToolsetAuthStatus, Pn as serializePromptExport, Gr as shouldRerunGenerationOnEdit, ln as shouldWatchForDisplayNameUpdate, We as skillFileBytesToBlob, sr as skillFileToAttachment, Ge as skillFolderMarkerParent, jr as splitFileNameExtension, Ke as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, Nt as subscribeToolsetLoginSuccess, fe as toBaseLocale, Tn as toOverlayMessages, _t as toPublishEntityType, M as toPublishRuleDto, On as toStage, Mr as trimFileNameToByteLimit, ji as unionPathSets, qe as unpackSkillArchive, Gi as updateEntry, Cr as useActiveConversationSync, Wt as useApplicationCredentials, wr as useAsyncConfirmDialog, g as useAttachmentAction, Nr as useAttachmentUpload, S as useAttachmentValidation, Ot as useCatalogEditNavigation, jt as useCatalogItemDetails, Ut as useCatalogToolsetCredentials, Ra as useChatSettingsFormConfig, Rr as useConversationExport, Xr as useConversationHandlers, Zr as useConversationImport, Tr as useConversationLookupMaps, Dr as useConversationPanelItems, Qr as useConversationScroll, ri as useConversationSources, ni as useConversationStream, Sa as useDialFileListing, Da as useDialFileManager, Oa as useDialFileManagerSections, ka as useDialFileManagerTabConfig, Ca as useDialFileMetadata, wa as useDialFileMutations, Ta as useDialFileSharing, Ea as useDialFileUploadBatch, qt as useFavoriteEntitiesState, Aa as useFileAttachmentPicker, no as useGridEditingScroll, Or as useImportFilePicker, eo as useMcpAppHostAdapter, $a as useMcpAppHostContext, Qa as useMcpAppTools, kr as useMessageSelectionReply, jn as useOAuthCallbackCompletion, to as useOpenMcpAppCanvas, za as usePageFileDrag, Va as usePanelMaxWidth, Gn as usePromptsState, Jt as usePublishFolders, ar as useScheduledTaskRuns, rr as useScheduledTasks, Ha as useShareLink, xr as useShareRecipientsCount, yr as useSkillArchiveImport, Gt as useSkillDetailsPanelData, lr as useSkillEditorLoad, ur as useSkillEditorSubmit, dr as useSkillFileActions, pr as useSkillFilePreview, At as useSkillItemDetails, mr as useSkillsState, Ua as useToolsMenu, Ht as useToolsetLogin, Ir as useTranscribeAudio, Ya as useUsageData, Ba as useViewportWidth, Hn as validatePromptContent, Un as validatePromptDescription, Wn as validatePromptName, or as validateSkillFileBatch, Pi as virtualPathToApiPath, Ft as waitForToolsetOAuthResult, Mi as withRoutableRootLabels };
108
+ import { COLUMNS_MY_FILES as ci, COLUMNS_ORGANIZATION as li, COLUMNS_SHARED as ui, CORE_PERMISSION_MAP as di, DATE_OPTIONS as fi, DIAL_FILE_MANAGER_SECTION_TABS as pi, PATH_SEPARATOR_REGEXP as mi, RESERVED_MARKER_NAME as hi, UPLOAD_CONCURRENCY as gi } from "./files/dial-file-manager.model.js";
109
+ import { buildSharedItemVirtualPath as _i, dialCorePathToRelative as vi, findDialFileByPath as yi, findFolderByVirtualPath as bi, formatOperationFolderName as xi, getVirtualPathName as Si, hasDialFileWritePermission as Ci, hasForbiddenNameSymbols as wi, hasSamePaths as Ti, isCopyMoveDuplicateAllowed as Ei, isShareActionsAllowed as Di, normalizeVirtualPath as Oi, parseNewFolderVirtualPath as ki, resolveOwnerCoords as Ai, resolveSectionByPath as ji, unionPathSets as Mi, withRoutableRootLabels as Ni } from "./files/dial-file-manager-path.util.js";
110
+ import { resolveDialFileApiPath as Pi, virtualPathToApiPath as Fi } from "./files/resolve-dial-file-api-path.js";
111
+ import { prepareCopyItems as Ii, prepareMoveRenameItems as Li } from "./files/dial-file-manager-copy-move.util.js";
112
+ import { buildFromCache as Ri, fetchByTab as zi, fetchForSearch as Bi, findFirstSuccessfulCopyMoveItem as Vi, mapCorePermissions as Hi, mapFileMetadataToDialFile as Ui, mapSearchItem as Wi, mergeCreatedFolderIntoCache as Gi, updateEntry as Ki } from "./files/dial-file-manager-mapping.util.js";
113
+ import { createFilesApiClient as qi } from "./files/create-files-api.js";
114
+ import { createUploadFileWithProgress as Ji } from "./files/create-upload-file-with-progress.js";
115
+ import { openAnnotationAttachment as Yi } from "./files/annotation.js";
116
+ import { annotationToOoxmlCanvasContent as Xi, annotationToPdfCanvasContent as Zi, clearAttachmentCache as Qi, hasAttachmentTextSource as $i, referenceAttachmentToPdfCanvasContent as ea, resolveCodeCanvasContent as ta, resolveGroupedVisualizerCanvasContent as na, resolveHtmlCanvasContent as ra, resolveImageCanvasContent as ia, resolveJsonCanvasContent as aa, resolveMarkdownCanvasContent as oa, resolveOoxmlCanvasContent as sa, resolvePdfCanvasContent as ca, resolveTextCanvasContent as la, resolveVisualizerCanvasContent as ua } from "./files/attachment-canvas.js";
117
+ import { getUrlFileName as da, isExternalSourcePreviewable as fa, resolveExternalSourceContentType as pa } from "./files/source-content.js";
118
+ import { annotationToDisplayAttachment as ma, attachmentDtoToDisplayAttachment as ha, attachmentDtosToDisplayAttachments as ga } from "./files/attachment-dto-to-display.js";
119
+ import { dialFileToAttachment as _a, dialFilesToAttachments as va, dialFolderPathToAttachment as ya } from "./files/dial-file-to-attachment.js";
120
+ import { DownloadDestinationType as ba } from "./files/download-destination.js";
121
+ import { prepareDownloadDestination as xa } from "./files/prepare-download-destination.js";
122
+ import { deriveActionProfile as Sa } from "./files/file-manager-variant.js";
123
+ import { useDialFileListing as Ca } from "./files/useDialFileListing/useDialFileListing.js";
124
+ import { useDialFileMetadata as wa } from "./files/useDialFileMetadata/useDialFileMetadata.js";
125
+ import { useDialFileMutations as Ta } from "./files/useDialFileMutations/useDialFileMutations.js";
126
+ import { useDialFileSharing as Ea } from "./files/useDialFileSharing/useDialFileSharing.js";
127
+ import { useDialFileUploadBatch as Da } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
128
+ import { useDialFileManager as Oa } from "./files/useDialFileManager/useDialFileManager.js";
129
+ import { useDialFileManagerSections as ka } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
130
+ import { useDialFileManagerTabConfig as Aa } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
131
+ import { useFileAttachmentPicker as ja } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
132
+ import { getBrowserTimezone as Ma } from "./shared/browser-timezone.js";
133
+ import { isValidAbsoluteUrl as Na, isValidFeaturesData as Pa, parseFeaturesData as Fa } from "./shared/custom-apps.js";
134
+ import { buildExternalServiceScopeId as Ia, getExternalServiceFallbackName as La, parseExternalServiceUrl as Ra } from "./shared/external-services.js";
135
+ import { useChatSettingsFormConfig as za } from "./useChatSettingsFormConfig/useChatSettingsFormConfig.js";
136
+ import { usePageFileDrag as Ba } from "./usePageFileDrag/usePageFileDrag.js";
137
+ import { useViewportWidth as Va } from "./useViewportWidth/useViewportWidth.js";
138
+ import { usePanelMaxWidth as Ha } from "./usePanelMaxWidth/usePanelMaxWidth.js";
139
+ import { useShareLink as Ua } from "./useShareLink/useShareLink.js";
140
+ import { useToolsMenu as Wa } from "./useToolsMenu/useToolsMenu.js";
141
+ import { USAGE_DATA_I18N_KEYS as Ga, mapUsageDataToDashboard as Ka } from "./usage/map-usage-data-to-dashboard.js";
142
+ import { USAGE_MODEL_LIMITS_I18N_KEYS as qa, mapOverallCostLimitsToPeriodStatuses as Ja, mapUserUsageToModelLimits as Ya } from "./usage/map-user-usage-to-model-limits.js";
143
+ import { useUsageData as Xa } from "./usage/useUsageData/useUsageData.js";
144
+ import { McpAppResourceFetchError as Za, createMcpAppsApiClient as Qa } from "./mcp-apps/mcp-apps-api-client.js";
145
+ import { useMcpAppTools as $a } from "./mcp-apps/useMcpAppTools/useMcpAppTools.js";
146
+ import { useMcpAppHostContext as eo } from "./mcp-apps/useMcpAppHostContext/useMcpAppHostContext.js";
147
+ import { useMcpAppHostAdapter as to } from "./mcp-apps/useMcpAppHostAdapter/useMcpAppHostAdapter.js";
148
+ import { useOpenMcpAppCanvas as no } from "./mcp-apps/useOpenMcpAppCanvas/useOpenMcpAppCanvas.js";
149
+ import { useGridEditingScroll as ro } from "@epam/ai-dial-chat-shared";
150
+ export { x as AttachmentValidationErrorReason, Pr as AudioTranscriptionError, Fr as AudioTranscriptionErrorReason, B as AuthenticationType, ci as COLUMNS_MY_FILES, li as COLUMNS_ORGANIZATION, ui as COLUMNS_SHARED, di as CORE_PERMISSION_MAP, Ct as CatalogPrimaryActionType, T as ConversationExportMode, E as ConversationTransferErrorCode, D as ConversationTransferWarningCode, fi as DATE_OPTIONS, he as DEFAULT_ENTITY_DETAILS_LABELS, en as DEFAULT_GENERATION_CONFLICT_MESSAGE, tn as DEFAULT_GENERATION_PERSISTENCE_ERROR_MESSAGE, Lr as DEFAULT_MAX_ARCHIVE_BYTES, nn as DEFAULT_STREAM_IDLE_TIMEOUT_MS, pi as DIAL_FILE_MANAGER_SECTION_TABS, ii as DialFilesApiUploadMode, ba as DownloadDestinationType, k as EXPORT_APP_NAME, O as ExportFileNameKind, Kt as FavoriteEntityType, ai as FileManagerNotificationReason, oi as FileNameValidationErrorReason, si as FileOperationKind, rn as GenerationConflictError, an as GenerationPersistenceError, Za as McpAppResourceFetchError, ct as McpResourceKind, W as OAuthResourceKind, mi as PATH_SEPARATOR_REGEXP, Fn as PROMPT_CONTENT_MAX_LENGTH, In as PROMPT_COUNTER_ANNOUNCE_THRESHOLD, Ln as PROMPT_DESCRIPTION_MAX_LENGTH, Rn as PROMPT_NAME_MAX_LENGTH, Je as PUBLIC_SKILL_BUCKET, zn as PromptFieldError, Ce as PromptSource, hi as RESERVED_MARKER_NAME, br as RecipientsCountStatus, Oe as SKILL_FILE_UPLOAD_MAX_BYTES, ke as SKILL_FOLDER_MARKER, Ye as SKILL_LISTING_MAX_PAGES, Xe as SKILL_LISTING_PAGE_SIZE, Ae as SKILL_MANIFEST_FILE, Ze as SKILL_MANIFEST_MAX_BYTES, je as SKILL_TEXT_FIELD_MAX_LENGTHS, Me as SKILL_UPLOAD_MAX_FILES, Ne as SKILL_UPLOAD_MAX_TOTAL_BYTES, qn as ScheduledTaskTriggerDescriptionKind, hr as SkillArchiveImportErrorKind, gr as SkillArchiveImportStatus, _r as SkillArchiveSelectionRejectionReason, cr as SkillEditorLoadState, fr as SkillPreviewErrorKind, Qe as SkillSource, on as StreamInterruptedError, sn as StreamUpstreamError, G as TOOLSET_REDIRECT_STATE_KEY, K as ToolsetAuthStatus, q as ToolsetAuthTypes, J as ToolsetCredentialsLevel, Vt as ToolsetLoginOutcomeType, Y as ToolsetOAuthCallbackQuery, X as ToolsetOAuthChannelControlType, Z as ToolsetOAuthFailureReason, Q as ToolsetOAuthInitiationResultType, $ as ToolsetOAuthResultType, gi as UPLOAD_CONCURRENCY, Ga as USAGE_DATA_I18N_KEYS, qa as USAGE_MODEL_LIMITS_I18N_KEYS, Kn as UnsupportedTriggerReason, ee as WithLogin, ma as annotationToDisplayAttachment, Xi as annotationToOoxmlCanvasContent, Zi as annotationToPdfCanvasContent, Yn as apSchedulerDayToJsDay, se as appendLocaleCode, $r as applyChunkToMessages, ha as attachmentDtoToDisplayAttachment, ga as attachmentDtosToDisplayAttachments, zr as attachmentToDto, Br as attachmentsToDtos, ce as buildAdditionalLocaleOptions, Yt as buildAnnouncementSignature, lt as buildApplicationMcpUrl, N as buildChatCompletionsUrl, ut as buildConnectApi, P as buildDeploymentConnectApi, Ia as buildExternalServiceScopeId, Ri as buildFromCache, Mn as buildPromptExportEnvelope, Nn as buildPromptExportFileName, Te as buildPromptOverview, Bn as buildPromptPath, V as buildResetFields, F as buildResponsesUrl, _i as buildSharedItemVirtualPath, et as buildSkillContentTree, Pe as buildSkillFilesPayload, Fe as buildSkillManifest, Ie as buildSkillManifestForSubmit, Le as buildSkillManifestFromFrontmatter, tt as buildSkillOverview, It as buildToolsetAuthorizeUrl, dt as buildToolsetMcpUrl, vr as classifySkillArchiveImportError, Qi as clearAttachmentCache, le as composeLocalePayload, cn as createChatStreamApi, i as createCsrfMiddleware, gn as createDeploymentChangedMessage, qi as createFilesApiClient, Qa as createMcpAppsApiClient, Vr as createMessagePair, j as createPublishApiClient, nr as createScheduledTasksApiClient, a as createUnauthorizedMiddleware, Ji as createUploadFileWithProgress, I as decodeDeploymentId, te as decodeToolsetId, ue as decomposeLocalizedFields, Sa as deriveActionProfile, vt as deriveAvailableTabIds, Sr as deriveConversationRowActionState, yt as deriveFavoriteItems, Jn as describeScheduledTaskTrigger, vi as dialCorePathToRelative, _a as dialFileToAttachment, va as dialFilesToAttachments, ya as dialFolderPathToAttachment, m as downloadAttachment, Mt as emitToolsetLoginSuccess, L as encodeDeploymentId, ne as encodeToolsetId, zi as fetchByTab, Bi as fetchForSearch, bt as filterCatalogItemsBySelector, xt as filterHiddenOwnedItems, R as findDeploymentByIdOrReference, fn as findDeploymentForConversationId, yi as findDialFileByPath, Vi as findFirstSuccessfulCopyMoveItem, bi as findFolderByVirtualPath, un as formatAppVersion, pe as formatCalendarDate, C as formatDateYM, w as formatDateYMD, xi as formatOperationFolderName, A as formatQuotedNameList, e as getApiErrorDetails, t as getApiErrorMessage, n as getApiErrorStatus, Ma as getBrowserTimezone, Yr as getConversationPath, Er as getConversationSource, La as getExternalServiceFallbackName, _n as getFormSchemaToolSyncKey, vn as getLastDeploymentId, yn as getLastUserMessageToolConfiguration, bn as getLatestToolConfiguration, pn as getModelIdCandidatesFromConversationId, mn as getModelIdFromConversationId, pt as getPublicCatalogEntityFolderPath, En as getQuickAppConversationStarters, Vn as getRemainingCharacters, Tt as getRunnerSchemas, Re as getSkillFieldLengthViolations, Kr as getStarterConversationText, qr as getStarterDisplayText, kn as getStarterPopulateText, Jr as getStarterSubmitText, An as getStartersFromSchema, hn as getTimeOfDayGreeting, xn as getToolConfigurationFromFormSchema, Pt as getToolsetOAuthChannelName, Lt as getToolsetRedirectUri, da as getUrlFileName, Si as getVirtualPathName, Hr as hasActiveToolConfig, Xt as hasAnnouncementContent, $i as hasAttachmentTextSource, Ci as hasDialFileWritePermission, wi as hasForbiddenNameSymbols, Ti as hasSamePaths, Zt as hasStructuredAnnouncement, o as includesIgnoreCase, Rt as initiateOAuthLogin, Ur as isAnswerIncomplete, ti as isAwaitingGenerationResume, r as isConversationNotFoundError, Ei as isCopyMoveDuplicateAllowed, Et as isCustomAppSchema, _ as isDialFileAcceptType, d as isDialFileId, h as isDownloadableAttachment, fa as isExternalSourcePreviewable, Wr as isMessageChanged, Sn as isMessageStreaming, Ee as isOrganisationPromptItem, mt as isPublicCatalogEntityId, re as isPublicToolsetId, Dt as isQuickAppSchema, Di as isShareActionsAllowed, ze as isSkillFolderMarkerPath, Na as isValidAbsoluteUrl, Pa as isValidFeaturesData, Be as isValidSkillRelativePath, Xn as jsDayToApSchedulerDay, Hi as mapCorePermissions, ge as mapDeploymentDetailsDtoToEntityDetails, U as mapDeploymentLimitsDtoToCatalogLimits, H as mapDeploymentLimitsToInput, ye as mapDeploymentToCatalogItem, be as mapDeploymentToolsetCredentials, _e as mapEntityDetailsToCatalogDetails, Ui as mapFileMetadataToDialFile, Zn as mapFormValuesToCreateBody, Qn as mapFormValuesToUpdateBody, Ja as mapOverallCostLimitsToPeriodStatuses, De as mapPromptToCatalogItem, ht as mapPublishConversationResultDto, gt as mapPublishHistoryEntryDto, $n as mapScheduledTaskDtoToFormValues, Wi as mapSearchItem, nt as mapSkillToCatalogItem, Dn as mapStages, ve as mapToolsetCredentials, xe as mapToolsetToCatalogItem, Ka as mapUsageDataToDashboard, Ya as mapUserUsageToModelLimits, Gi as mergeCreatedFolderIntoCache, ir as mergeRunsById, ei as mergeStages, Cn as messageHasStages, v as mimeTypesToAttachmentExtensionLabels, y as mimeTypesToDialFileAcceptTypes, b as mimeTypesToFileAccept, Ve as nameFromPath, zt as navigateToolsetOAuthPopup, z as normalizeDeploymentId, wn as normalizeResponseFormat, He as normalizeSkillName, ie as normalizeToolsetId, Oi as normalizeVirtualPath, Yi as openAnnotationAttachment, Bt as openToolsetOAuthPopup, me as padTwoDigits, Ra as parseExternalServiceUrl, Fa as parseFeaturesData, ki as parseNewFolderVirtualPath, we as parsePromptResourceUrl, Ue as parseSkillManifest, kt as parseSkillManifestDocument, $e as parseSkillResourceUrl, Ii as prepareCopyItems, xa as prepareDownloadDestination, Li as prepareMoveRenameItems, er as prepareScheduledTaskCreateBody, tr as prepareScheduledTaskUpdateBody, rt as readSkillFileBytes, it as readSkillFilePreviewBytes, at as readSkillManifest, St as reconcileFilterTopics, ea as referenceAttachmentToPdfCanvasContent, wt as resolveCatalogPrimaryAction, ta as resolveCodeCanvasContent, Se as resolveDeploymentFolder, Pi as resolveDialFileApiPath, f as resolveDialFileBucketAndPath, pa as resolveExternalSourceContentType, na as resolveGroupedVisualizerCanvasContent, ra as resolveHtmlCanvasContent, ia as resolveImageCanvasContent, aa as resolveJsonCanvasContent, de as resolveLocalizedText, oa as resolveMarkdownCanvasContent, ft as resolveMcpResourceKind, sa as resolveOoxmlCanvasContent, Ai as resolveOwnerCoords, ca as resolvePdfCanvasContent, p as resolveRelativeDialFilePath, ji as resolveSectionByPath, ot as resolveSkillFileDownloadPath, st as resolveSkillManifestFileId, la as resolveTextCanvasContent, ae as resolveToolsetCredentialsLevel, ua as resolveVisualizerCanvasContent, s as safeDecodeURI, c as safeDecodeURIComponent, Qt as sanitizeAnnouncementHtml, $t as sanitizeAnnouncementMessageHtml, Ar as sanitizeFileName, dn as sanitizeFooterHtml, oe as selectToolsetAuthStatus, Pn as serializePromptExport, Gr as shouldRerunGenerationOnEdit, ln as shouldWatchForDisplayNameUpdate, We as skillFileBytesToBlob, sr as skillFileToAttachment, Ge as skillFolderMarkerParent, jr as splitFileNameExtension, Ke as startsWithFrontmatterBlock, l as stripSurroundingSlashes, u as stripTrailingSlashes, Nt as subscribeToolsetLoginSuccess, fe as toBaseLocale, Tn as toOverlayMessages, _t as toPublishEntityType, M as toPublishRuleDto, On as toStage, Mr as trimFileNameToByteLimit, Mi as unionPathSets, qe as unpackSkillArchive, Ki as updateEntry, Cr as useActiveConversationSync, Wt as useApplicationCredentials, wr as useAsyncConfirmDialog, g as useAttachmentAction, Nr as useAttachmentUpload, S as useAttachmentValidation, Ot as useCatalogEditNavigation, jt as useCatalogItemDetails, Ut as useCatalogToolsetCredentials, za as useChatSettingsFormConfig, Rr as useConversationExport, Xr as useConversationHandlers, Zr as useConversationImport, Tr as useConversationLookupMaps, Dr as useConversationPanelItems, Qr as useConversationScroll, ri as useConversationSources, ni as useConversationStream, Ca as useDialFileListing, Oa as useDialFileManager, ka as useDialFileManagerSections, Aa as useDialFileManagerTabConfig, wa as useDialFileMetadata, Ta as useDialFileMutations, Ea as useDialFileSharing, Da as useDialFileUploadBatch, qt as useFavoriteEntitiesState, ja as useFileAttachmentPicker, ro as useGridEditingScroll, Or as useImportFilePicker, to as useMcpAppHostAdapter, eo as useMcpAppHostContext, $a as useMcpAppTools, kr as useMessageSelectionReply, jn as useOAuthCallbackCompletion, no as useOpenMcpAppCanvas, Ba as usePageFileDrag, Ha as usePanelMaxWidth, Gn as usePromptsState, Jt as usePublishFolders, ar as useScheduledTaskRuns, rr as useScheduledTasks, Ua as useShareLink, xr as useShareRecipientsCount, yr as useSkillArchiveImport, Gt as useSkillDetailsPanelData, lr as useSkillEditorLoad, ur as useSkillEditorSubmit, dr as useSkillFileActions, pr as useSkillFilePreview, At as useSkillItemDetails, mr as useSkillsState, Wa as useToolsMenu, Ht as useToolsetLogin, Ir as useTranscribeAudio, Xa as useUsageData, Va as useViewportWidth, Hn as validatePromptContent, Un as validatePromptDescription, Wn as validatePromptName, or as validateSkillFileBatch, Fi as virtualPathToApiPath, Ft as waitForToolsetOAuthResult, Ni as withRoutableRootLabels };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-chat-hooks",
3
3
  "description": "Framework-level React hooks extracted from AI DIAL Chat for building custom chat interfaces",
4
- "version": "1.2.0-rc.1",
4
+ "version": "1.2.0-rc.2",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -111,7 +111,7 @@
111
111
  }
112
112
  },
113
113
  "dependencies": {
114
- "@epam/ai-dial-chat-api-client": "1.2.0-rc.1",
114
+ "@epam/ai-dial-chat-api-client": "1.2.0-rc.2",
115
115
  "dompurify": "3.4.16",
116
116
  "fflate": "^0.8.3",
117
117
  "lru-cache": "^10.4.3",
@@ -120,21 +120,21 @@
120
120
  },
121
121
  "peerDependencies": {
122
122
  "react": "^19.2.8",
123
- "@epam/ai-dial-attachment-canvas": "1.2.0-rc.1",
124
- "@epam/ai-dial-attachment-input": "1.2.0-rc.1",
125
- "@epam/ai-dial-catalog": "1.2.0-rc.1",
126
- "@epam/ai-dial-chat-overlay": "1.2.0-rc.1",
127
- "@epam/ai-dial-chat-shared": "1.2.0-rc.1",
128
- "@epam/ai-dial-mcp-apps": "1.2.0-rc.1",
129
- "@epam/ai-dial-publish-panel": "1.2.0-rc.1",
130
- "@epam/ai-dial-quotations": "1.2.0-rc.1",
123
+ "@epam/ai-dial-attachment-canvas": "1.2.0-rc.2",
124
+ "@epam/ai-dial-attachment-input": "1.2.0-rc.2",
125
+ "@epam/ai-dial-catalog": "1.2.0-rc.2",
126
+ "@epam/ai-dial-chat-overlay": "1.2.0-rc.2",
127
+ "@epam/ai-dial-chat-shared": "1.2.0-rc.2",
128
+ "@epam/ai-dial-mcp-apps": "1.2.0-rc.2",
129
+ "@epam/ai-dial-publish-panel": "1.2.0-rc.2",
130
+ "@epam/ai-dial-quotations": "1.2.0-rc.2",
131
131
  "@epam/ai-dial-react-file-manager": "^0.3.0",
132
- "@epam/ai-dial-scheduled-tasks": "1.2.0-rc.1",
133
- "@epam/ai-dial-share": "1.2.0-rc.1",
134
- "@epam/ai-dial-skill-editor": "1.2.0-rc.1",
135
- "@epam/ai-dial-source-panel": "1.2.0-rc.1",
136
- "@epam/ai-dial-ui-kit": "^0.15.0",
137
- "@epam/ai-dial-usage-dashboard": "1.2.0-rc.1",
132
+ "@epam/ai-dial-scheduled-tasks": "1.2.0-rc.2",
133
+ "@epam/ai-dial-share": "1.2.0-rc.2",
134
+ "@epam/ai-dial-skill-editor": "1.2.0-rc.2",
135
+ "@epam/ai-dial-source-panel": "1.2.0-rc.2",
136
+ "@epam/ai-dial-ui-kit": "^0.15.1",
137
+ "@epam/ai-dial-usage-dashboard": "1.2.0-rc.2",
138
138
  "@modelcontextprotocol/sdk": "^1.32.1",
139
139
  "@epam/pdf-highlighter-kit": "^0.0.19",
140
140
  "@mcp-ui/client": "^7.1.1"