@epam/ai-dial-chat-hooks 1.4.0-dev.12 → 1.4.0-dev.126

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.
Files changed (190) hide show
  1. package/api-error/map-api-error.d.ts +10 -0
  2. package/api-error/map-api-error.d.ts.map +1 -0
  3. package/api-error/map-api-error.js +11 -0
  4. package/attachment/useAttachmentAction/useAttachmentAction.d.ts +1 -1
  5. package/attachment/useAttachmentAction/useAttachmentAction.d.ts.map +1 -1
  6. package/attachment/useAttachmentAction/useAttachmentAction.js +35 -44
  7. package/catalog/create-publish-api.d.ts +28 -1
  8. package/catalog/create-publish-api.d.ts.map +1 -1
  9. package/catalog/create-publish-api.js +21 -1
  10. package/catalog/entity-details.d.ts +5 -2
  11. package/catalog/entity-details.d.ts.map +1 -1
  12. package/catalog/map-entity-details-to-catalog.d.ts +4 -0
  13. package/catalog/map-entity-details-to-catalog.d.ts.map +1 -1
  14. package/catalog/map-entity-details-to-catalog.js +15 -13
  15. package/catalog/publish-dependency-icons.d.ts +22 -0
  16. package/catalog/publish-dependency-icons.d.ts.map +1 -0
  17. package/catalog/publish-dependency-icons.js +11 -0
  18. package/catalog/publish-target-taken.d.ts +31 -0
  19. package/catalog/publish-target-taken.d.ts.map +1 -0
  20. package/catalog/publish-target-taken.js +14 -0
  21. package/catalog/publish.d.ts +15 -2
  22. package/catalog/publish.d.ts.map +1 -1
  23. package/catalog/publish.js +15 -4
  24. package/catalog/resource-name-conflict.d.ts.map +1 -1
  25. package/catalog/resource-name-conflict.js +19 -22
  26. package/catalog/resource-save-adapter.d.ts +7 -2
  27. package/catalog/resource-save-adapter.d.ts.map +1 -1
  28. package/catalog/resource-save-adapters.d.ts +32 -7
  29. package/catalog/resource-save-adapters.d.ts.map +1 -1
  30. package/catalog/resource-save-adapters.js +47 -41
  31. package/catalog/resource-save.d.ts +17 -9
  32. package/catalog/resource-save.d.ts.map +1 -1
  33. package/catalog/resource-save.js +34 -25
  34. package/catalog/save-destination-root.d.ts +12 -0
  35. package/catalog/save-destination-root.d.ts.map +1 -0
  36. package/catalog/save-destination-root.js +6 -0
  37. package/catalog/use-publish-dependencies.d.ts +19 -0
  38. package/catalog/use-publish-dependencies.d.ts.map +1 -0
  39. package/catalog/use-publish-dependencies.js +25 -0
  40. package/catalog/use-publish-target-guard.d.ts +45 -0
  41. package/catalog/use-publish-target-guard.d.ts.map +1 -0
  42. package/catalog/use-publish-target-guard.js +18 -0
  43. package/catalog/usePublishFolders/usePublishFolders.d.ts +8 -2
  44. package/catalog/usePublishFolders/usePublishFolders.d.ts.map +1 -1
  45. package/catalog/usePublishFolders/usePublishFolders.js +29 -29
  46. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts +27 -6
  47. package/catalog/useResourceSavePanel/useResourceSavePanel.d.ts.map +1 -1
  48. package/catalog/useResourceSavePanel/useResourceSavePanel.js +184 -118
  49. package/catalog/useVersionHistory/useVersionHistory.d.ts +38 -0
  50. package/catalog/useVersionHistory/useVersionHistory.d.ts.map +1 -0
  51. package/catalog/useVersionHistory/useVersionHistory.js +49 -0
  52. package/catalog/useVersionHistory/useVersionHistorySection.d.ts +30 -0
  53. package/catalog/useVersionHistory/useVersionHistorySection.d.ts.map +1 -0
  54. package/catalog/useVersionHistory/useVersionHistorySection.js +31 -0
  55. package/catalog/version-history.d.ts +42 -0
  56. package/catalog/version-history.d.ts.map +1 -0
  57. package/catalog/version-history.js +27 -0
  58. package/catalog.js +39 -31
  59. package/conversation/announcement-message.d.ts +12 -0
  60. package/conversation/announcement-message.d.ts.map +1 -1
  61. package/conversation/announcement-message.js +16 -10
  62. package/conversation/conversation-list.d.ts +7 -1
  63. package/conversation/conversation-list.d.ts.map +1 -1
  64. package/conversation/conversation-list.js +11 -2
  65. package/conversation/conversation-transfer/zip-export.d.ts +1 -1
  66. package/conversation/conversation-transfer/zip-export.d.ts.map +1 -1
  67. package/conversation/conversation-transfer/zip-export.js +7 -8
  68. package/conversation/conversation-transfer/zip-import.d.ts.map +1 -1
  69. package/conversation/conversation-transfer/zip-import.js +8 -9
  70. package/conversation/useConversationExport/useConversationExport.d.ts.map +1 -1
  71. package/conversation/useConversationExport/useConversationExport.js +3 -1
  72. package/conversation/useConversationStream/generation-resume.d.ts.map +1 -1
  73. package/conversation/useConversationStream/generation-resume.js +119 -96
  74. package/conversation.js +44 -44
  75. package/entry-points/catalog.d.ts +7 -0
  76. package/entry-points/catalog.d.ts.map +1 -1
  77. package/entry-points/file-manager.d.ts +1 -0
  78. package/entry-points/file-manager.d.ts.map +1 -1
  79. package/entry-points/project.d.ts +5 -0
  80. package/entry-points/project.d.ts.map +1 -1
  81. package/entry-points/scheduled-tasks.d.ts +2 -0
  82. package/entry-points/scheduled-tasks.d.ts.map +1 -1
  83. package/entry-points/usage-limits.d.ts +1 -0
  84. package/entry-points/usage-limits.d.ts.map +1 -1
  85. package/entry-points/utils.d.ts +7 -0
  86. package/entry-points/utils.d.ts.map +1 -1
  87. package/file-manager.js +33 -32
  88. package/files/annotation.d.ts +3 -3
  89. package/files/annotation.d.ts.map +1 -1
  90. package/files/annotation.js +12 -11
  91. package/files/attachment-canvas.d.ts +1 -1
  92. package/files/attachment-canvas.d.ts.map +1 -1
  93. package/files/attachment-canvas.js +135 -135
  94. package/files/attachment-type-labels.d.ts +3 -0
  95. package/files/attachment-type-labels.d.ts.map +1 -0
  96. package/files/attachment-type-labels.js +12 -0
  97. package/files/attachment-types.d.ts +0 -2
  98. package/files/attachment-types.d.ts.map +1 -1
  99. package/files/attachment-types.js +7 -14
  100. package/files/dial-file.d.ts +24 -0
  101. package/files/dial-file.d.ts.map +1 -1
  102. package/files/dial-file.js +35 -5
  103. package/index.d.ts +23 -0
  104. package/index.d.ts.map +1 -1
  105. package/index.js +266 -244
  106. package/org-units/models.d.ts +11 -0
  107. package/org-units/models.d.ts.map +1 -0
  108. package/org-units/org-unit-guards.d.ts +98 -0
  109. package/org-units/org-unit-guards.d.ts.map +1 -0
  110. package/org-units/org-unit-guards.js +41 -0
  111. package/org-units/types.d.ts +14 -0
  112. package/org-units/types.d.ts.map +1 -0
  113. package/org-units/types.js +6 -0
  114. package/org-units/useFolderGuards/useFolderGuards.d.ts +31 -0
  115. package/org-units/useFolderGuards/useFolderGuards.d.ts.map +1 -0
  116. package/org-units/useFolderGuards/useFolderGuards.js +50 -0
  117. package/org-units/useOrgUnits/useOrgUnits.d.ts +34 -0
  118. package/org-units/useOrgUnits/useOrgUnits.d.ts.map +1 -0
  119. package/org-units/useOrgUnits/useOrgUnits.js +54 -0
  120. package/package.json +19 -19
  121. package/project/project-conversation-data-source.js +4 -4
  122. package/project/project-sharing-client.d.ts +8 -0
  123. package/project/project-sharing-client.d.ts.map +1 -0
  124. package/project/project-sharing-client.js +11 -0
  125. package/project/project-sharing.d.ts +28 -0
  126. package/project/project-sharing.d.ts.map +1 -0
  127. package/project/project-sharing.js +22 -0
  128. package/project/use-pinned-project-chats.d.ts +4 -2
  129. package/project/use-pinned-project-chats.d.ts.map +1 -1
  130. package/project/use-pinned-project-chats.js +152 -96
  131. package/project/use-project-conversations.d.ts.map +1 -1
  132. package/project/use-project-conversations.js +2 -2
  133. package/project/use-project-remove-from-list.d.ts +30 -0
  134. package/project/use-project-remove-from-list.d.ts.map +1 -0
  135. package/project/use-project-remove-from-list.js +39 -0
  136. package/project/use-project-revoke-access.d.ts +15 -0
  137. package/project/use-project-revoke-access.d.ts.map +1 -0
  138. package/project/use-project-revoke-access.js +32 -0
  139. package/project/use-project-share-recipients.d.ts +7 -0
  140. package/project/use-project-share-recipients.d.ts.map +1 -0
  141. package/project/use-project-share-recipients.js +36 -0
  142. package/project/use-projects.d.ts +1 -0
  143. package/project/use-projects.d.ts.map +1 -1
  144. package/project/use-projects.js +2 -1
  145. package/project.js +7 -2
  146. package/scheduled-task/scheduled-task-description.d.ts +19 -13
  147. package/scheduled-task/scheduled-task-description.d.ts.map +1 -1
  148. package/scheduled-task/scheduled-task-description.js +39 -55
  149. package/scheduled-task/scheduled-task-display.d.ts +67 -6
  150. package/scheduled-task/scheduled-task-display.d.ts.map +1 -1
  151. package/scheduled-task/scheduled-task-display.js +55 -43
  152. package/scheduled-task/scheduled-task-next-occurrence.d.ts +9 -5
  153. package/scheduled-task/scheduled-task-next-occurrence.d.ts.map +1 -1
  154. package/scheduled-task/scheduled-task-next-occurrence.js +16 -16
  155. package/scheduled-task/scheduled-task-time-format.d.ts +36 -0
  156. package/scheduled-task/scheduled-task-time-format.d.ts.map +1 -0
  157. package/scheduled-task/scheduled-task-time-format.js +34 -0
  158. package/scheduled-task/scheduled-task-trigger.d.ts +6 -4
  159. package/scheduled-task/scheduled-task-trigger.d.ts.map +1 -1
  160. package/scheduled-task/scheduled-task-trigger.js +92 -115
  161. package/scheduled-tasks.js +15 -13
  162. package/shared/timezones.d.ts +30 -0
  163. package/shared/timezones.d.ts.map +1 -0
  164. package/shared/timezones.js +102 -0
  165. package/skill/skill-archive.d.ts.map +1 -1
  166. package/skill/skill-archive.js +6 -7
  167. package/skill/skill.d.ts +2 -2
  168. package/skill/skill.d.ts.map +1 -1
  169. package/skill/skill.js +33 -34
  170. package/skill/useSkillEditorLoad.js +1 -1
  171. package/skill/useSkillEditorSubmit.d.ts +4 -1
  172. package/skill/useSkillEditorSubmit.d.ts.map +1 -1
  173. package/skill/useSkillEditorSubmit.js +125 -121
  174. package/usage/map-usage-data-to-dashboard.d.ts +22 -1
  175. package/usage/map-usage-data-to-dashboard.d.ts.map +1 -1
  176. package/usage/map-usage-data-to-dashboard.js +33 -2
  177. package/usage/spending-limits-mode.d.ts +37 -0
  178. package/usage/spending-limits-mode.d.ts.map +1 -0
  179. package/usage/spending-limits-mode.js +15 -0
  180. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts +6 -2
  181. package/usage/useDeploymentUsageLimits/useDeploymentUsageLimits.d.ts.map +1 -1
  182. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts +4 -1
  183. package/usage/useUsageLimitBanner/useUsageLimitBanner.d.ts.map +1 -1
  184. package/usage/useUsageLimitBanner/useUsageLimitBanner.js +55 -47
  185. package/usage-limits.js +6 -5
  186. package/usage.js +3 -3
  187. package/utils.js +28 -22
  188. package/shared/cron-day-of-month.d.ts +0 -21
  189. package/shared/cron-day-of-month.d.ts.map +0 -1
  190. package/shared/cron-day-of-month.js +0 -13
package/file-manager.js CHANGED
@@ -1,32 +1,33 @@
1
- import { FileSelectionKind as e, getFileSelectionKind as t, isDialFileId as n, isDialFolderId as r, resolveDialFileBucketAndPath as i, resolveDialFolderPath as a, resolveRelativeDialFilePath as o } from "./files/dial-file.js";
2
- import { isDialFileAcceptType as s, mimeTypesToAttachmentExtensionLabels as c, mimeTypesToDialFileAcceptTypes as l, mimeTypesToFileAccept as u } from "./files/attachment-types.js";
3
- import { sanitizeFileName as d, splitFileNameExtension as f, trimFileNameToByteLimit as p } from "./files/file-name.js";
4
- import { DialFilesApiUploadMode as m } from "./files/dial-files-api.js";
5
- import { FileManagerNotificationReason as h, FileNameValidationErrorReason as g, FileOperationKind as _ } from "./files/dial-file-manager.types.js";
6
- import { COLUMNS_MY_FILES as v, COLUMNS_ORGANIZATION as y, COLUMNS_SHARED as b, CORE_PERMISSION_MAP as x, DATE_OPTIONS as S, DIAL_FILE_MANAGER_SECTION_TABS as C, PATH_SEPARATOR_REGEXP as w, RESERVED_MARKER_NAME as T, UPLOAD_CONCURRENCY as E } from "./files/dial-file-manager.model.js";
7
- import { buildSharedItemVirtualPath as D, dialCorePathToRelative as O, findDialFileByPath as k, findFolderByVirtualPath as A, formatOperationFolderName as j, getVirtualPathName as M, hasDialFileWritePermission as N, hasForbiddenNameSymbols as P, hasSamePaths as F, isCopyMoveDuplicateAllowed as I, isShareActionsAllowed as L, normalizeVirtualPath as R, parseNewFolderVirtualPath as z, resolveOwnerCoords as B, resolveSectionByPath as V, unionPathSets as H, withRoutableRootLabels as U } from "./files/dial-file-manager-path.util.js";
8
- import { resolveDialFileApiPath as W, virtualPathToApiPath as G } from "./files/resolve-dial-file-api-path.js";
9
- import { prepareCopyItems as K, prepareMoveRenameItems as q } from "./files/dial-file-manager-copy-move.util.js";
10
- import { UploadBodyEncoding as J, UploadNetworkError as Y, createUploadFileWithProgress as X } from "./files/create-upload-file-with-progress.js";
11
- import { buildFromCache as Z, buildSharedSearchScope as Q, fetchByTab as $, fetchForSearch as ee, findFirstSuccessfulCopyMoveItem as te, mapCorePermissions as ne, mapFileMetadataToDialFile as re, mapSearchItem as ie, mergeCreatedFolderIntoCache as ae, resolveTransferFailureReason as oe, resolveUploadFailureReason as se, updateEntry as ce } from "./files/dial-file-manager-mapping.util.js";
12
- import { createFilesApiClient as le } from "./files/create-files-api.js";
13
- import { openAnnotationAttachment as ue } from "./files/annotation.js";
14
- import { getUrlFileName as de, isExternalSourcePreviewable as fe, resolveExternalSourceContentType as pe } from "./files/source-content.js";
15
- import { annotationToDisplayAttachment as me, attachmentDtoToDisplayAttachment as he, attachmentDtosToDisplayAttachments as ge } from "./files/attachment-dto-to-display.js";
16
- import { useUnshareConfirmationState as _e } from "./files/useUnshareConfirmationState/useUnshareConfirmationState.js";
17
- import { dialFileToAttachment as ve, dialFilesToAttachments as ye, dialFolderPathToAttachment as be } from "./files/dial-file-to-attachment.js";
18
- import { DownloadDestinationType as xe } from "./files/download-destination.js";
19
- import { prepareDownloadDestination as Se } from "./files/prepare-download-destination.js";
20
- import { deriveActionProfile as Ce } from "./files/file-manager-variant.js";
21
- import { useDialFileListing as we } from "./files/useDialFileListing/useDialFileListing.js";
22
- import { useDialFileMetadata as Te } from "./files/useDialFileMetadata/useDialFileMetadata.js";
23
- import { useDialFileMutations as Ee } from "./files/useDialFileMutations/useDialFileMutations.js";
24
- import { useDialFileSharing as De } from "./files/useDialFileSharing/useDialFileSharing.js";
25
- import { useDialFileUploadBatch as Oe } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
26
- import { useDialFileManager as ke } from "./files/useDialFileManager/useDialFileManager.js";
27
- import { useDialFileManagerSections as Ae } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
28
- import { useDialFileManagerTabConfig as je } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
29
- import { useFileAttachmentPicker as Me } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
30
- import { useFileAttachmentModalState as Ne } from "./files/useFileAttachmentModalState/useFileAttachmentModalState.js";
31
- import { useGridEditingScroll as Pe } from "@epam/ai-dial-chat-shared";
32
- export { v as COLUMNS_MY_FILES, y as COLUMNS_ORGANIZATION, b as COLUMNS_SHARED, x as CORE_PERMISSION_MAP, S as DATE_OPTIONS, C as DIAL_FILE_MANAGER_SECTION_TABS, m as DialFilesApiUploadMode, xe as DownloadDestinationType, h as FileManagerNotificationReason, g as FileNameValidationErrorReason, _ as FileOperationKind, e as FileSelectionKind, w as PATH_SEPARATOR_REGEXP, T as RESERVED_MARKER_NAME, E as UPLOAD_CONCURRENCY, J as UploadBodyEncoding, Y as UploadNetworkError, me as annotationToDisplayAttachment, he as attachmentDtoToDisplayAttachment, ge as attachmentDtosToDisplayAttachments, Z as buildFromCache, D as buildSharedItemVirtualPath, Q as buildSharedSearchScope, le as createFilesApiClient, X as createUploadFileWithProgress, Ce as deriveActionProfile, O as dialCorePathToRelative, ve as dialFileToAttachment, ye as dialFilesToAttachments, be as dialFolderPathToAttachment, $ as fetchByTab, ee as fetchForSearch, k as findDialFileByPath, te as findFirstSuccessfulCopyMoveItem, A as findFolderByVirtualPath, j as formatOperationFolderName, t as getFileSelectionKind, de as getUrlFileName, M as getVirtualPathName, N as hasDialFileWritePermission, P as hasForbiddenNameSymbols, F as hasSamePaths, I as isCopyMoveDuplicateAllowed, s as isDialFileAcceptType, n as isDialFileId, r as isDialFolderId, fe as isExternalSourcePreviewable, L as isShareActionsAllowed, ne as mapCorePermissions, re as mapFileMetadataToDialFile, ie as mapSearchItem, ae as mergeCreatedFolderIntoCache, c as mimeTypesToAttachmentExtensionLabels, l as mimeTypesToDialFileAcceptTypes, u as mimeTypesToFileAccept, R as normalizeVirtualPath, ue as openAnnotationAttachment, z as parseNewFolderVirtualPath, K as prepareCopyItems, Se as prepareDownloadDestination, q as prepareMoveRenameItems, W as resolveDialFileApiPath, i as resolveDialFileBucketAndPath, a as resolveDialFolderPath, pe as resolveExternalSourceContentType, B as resolveOwnerCoords, o as resolveRelativeDialFilePath, V as resolveSectionByPath, oe as resolveTransferFailureReason, se as resolveUploadFailureReason, d as sanitizeFileName, f as splitFileNameExtension, p as trimFileNameToByteLimit, H as unionPathSets, ce as updateEntry, we as useDialFileListing, ke as useDialFileManager, Ae as useDialFileManagerSections, je as useDialFileManagerTabConfig, Te as useDialFileMetadata, Ee as useDialFileMutations, De as useDialFileSharing, Oe as useDialFileUploadBatch, Ne as useFileAttachmentModalState, Me as useFileAttachmentPicker, Pe as useGridEditingScroll, _e as useUnshareConfirmationState, G as virtualPathToApiPath, U as withRoutableRootLabels };
1
+ import { FileSelectionKind as e, getFileSelectionKind as t, isDialFileId as n, isDialFolderId as r, isDialProjectFileId as i, isDialStoredFileId as a, isOwnDialFileId as o, parseDialProjectFileId as s, resolveDialFileBucketAndPath as c, resolveDialFolderPath as l, resolveRelativeDialFilePath as u } from "./files/dial-file.js";
2
+ import { openAnnotationAttachment as d } from "./files/annotation.js";
3
+ import { isDialFileAcceptType as f, mimeTypesToDialFileAcceptTypes as p, mimeTypesToFileAccept as m } from "./files/attachment-types.js";
4
+ import { sanitizeFileName as h, splitFileNameExtension as g, trimFileNameToByteLimit as _ } from "./files/file-name.js";
5
+ import { DialFilesApiUploadMode as v } from "./files/dial-files-api.js";
6
+ import { FileManagerNotificationReason as y, FileNameValidationErrorReason as b, FileOperationKind as x } from "./files/dial-file-manager.types.js";
7
+ import { COLUMNS_MY_FILES as S, COLUMNS_ORGANIZATION as C, COLUMNS_SHARED as w, CORE_PERMISSION_MAP as T, DATE_OPTIONS as E, DIAL_FILE_MANAGER_SECTION_TABS as D, PATH_SEPARATOR_REGEXP as O, RESERVED_MARKER_NAME as k, UPLOAD_CONCURRENCY as A } from "./files/dial-file-manager.model.js";
8
+ import { buildSharedItemVirtualPath as j, dialCorePathToRelative as M, findDialFileByPath as N, findFolderByVirtualPath as P, formatOperationFolderName as F, getVirtualPathName as I, hasDialFileWritePermission as L, hasForbiddenNameSymbols as R, hasSamePaths as z, isCopyMoveDuplicateAllowed as B, isShareActionsAllowed as V, normalizeVirtualPath as H, parseNewFolderVirtualPath as U, resolveOwnerCoords as W, resolveSectionByPath as G, unionPathSets as K, withRoutableRootLabels as q } from "./files/dial-file-manager-path.util.js";
9
+ import { resolveDialFileApiPath as J, virtualPathToApiPath as Y } from "./files/resolve-dial-file-api-path.js";
10
+ import { prepareCopyItems as X, prepareMoveRenameItems as Z } from "./files/dial-file-manager-copy-move.util.js";
11
+ import { UploadBodyEncoding as Q, UploadNetworkError as $, createUploadFileWithProgress as ee } from "./files/create-upload-file-with-progress.js";
12
+ import { buildFromCache as te, buildSharedSearchScope as ne, fetchByTab as re, fetchForSearch as ie, findFirstSuccessfulCopyMoveItem as ae, mapCorePermissions as oe, mapFileMetadataToDialFile as se, mapSearchItem as ce, mergeCreatedFolderIntoCache as le, resolveTransferFailureReason as ue, resolveUploadFailureReason as de, updateEntry as fe } from "./files/dial-file-manager-mapping.util.js";
13
+ import { mimeTypesToAttachmentExtensionLabels as pe } from "./files/attachment-type-labels.js";
14
+ import { createFilesApiClient as me } from "./files/create-files-api.js";
15
+ import { getUrlFileName as he, isExternalSourcePreviewable as ge, resolveExternalSourceContentType as _e } from "./files/source-content.js";
16
+ import { annotationToDisplayAttachment as ve, attachmentDtoToDisplayAttachment as ye, attachmentDtosToDisplayAttachments as be } from "./files/attachment-dto-to-display.js";
17
+ import { useUnshareConfirmationState as xe } from "./files/useUnshareConfirmationState/useUnshareConfirmationState.js";
18
+ import { dialFileToAttachment as Se, dialFilesToAttachments as Ce, dialFolderPathToAttachment as we } from "./files/dial-file-to-attachment.js";
19
+ import { DownloadDestinationType as Te } from "./files/download-destination.js";
20
+ import { prepareDownloadDestination as Ee } from "./files/prepare-download-destination.js";
21
+ import { deriveActionProfile as De } from "./files/file-manager-variant.js";
22
+ import { useDialFileListing as Oe } from "./files/useDialFileListing/useDialFileListing.js";
23
+ import { useDialFileMetadata as ke } from "./files/useDialFileMetadata/useDialFileMetadata.js";
24
+ import { useDialFileMutations as Ae } from "./files/useDialFileMutations/useDialFileMutations.js";
25
+ import { useDialFileSharing as je } from "./files/useDialFileSharing/useDialFileSharing.js";
26
+ import { useDialFileUploadBatch as Me } from "./files/useDialFileUploadBatch/useDialFileUploadBatch.js";
27
+ import { useDialFileManager as Ne } from "./files/useDialFileManager/useDialFileManager.js";
28
+ import { useDialFileManagerSections as Pe } from "./files/useDialFileManagerSections/useDialFileManagerSections.js";
29
+ import { useDialFileManagerTabConfig as Fe } from "./files/useDialFileManagerTabConfig/useDialFileManagerTabConfig.js";
30
+ import { useFileAttachmentPicker as Ie } from "./files/useFileAttachmentPicker/useFileAttachmentPicker.js";
31
+ import { useFileAttachmentModalState as Le } from "./files/useFileAttachmentModalState/useFileAttachmentModalState.js";
32
+ import { useGridEditingScroll as Re } from "@epam/ai-dial-chat-shared";
33
+ export { S as COLUMNS_MY_FILES, C as COLUMNS_ORGANIZATION, w as COLUMNS_SHARED, T as CORE_PERMISSION_MAP, E as DATE_OPTIONS, D as DIAL_FILE_MANAGER_SECTION_TABS, v as DialFilesApiUploadMode, Te as DownloadDestinationType, y as FileManagerNotificationReason, b as FileNameValidationErrorReason, x as FileOperationKind, e as FileSelectionKind, O as PATH_SEPARATOR_REGEXP, k as RESERVED_MARKER_NAME, A as UPLOAD_CONCURRENCY, Q as UploadBodyEncoding, $ as UploadNetworkError, ve as annotationToDisplayAttachment, ye as attachmentDtoToDisplayAttachment, be as attachmentDtosToDisplayAttachments, te as buildFromCache, j as buildSharedItemVirtualPath, ne as buildSharedSearchScope, me as createFilesApiClient, ee as createUploadFileWithProgress, De as deriveActionProfile, M as dialCorePathToRelative, Se as dialFileToAttachment, Ce as dialFilesToAttachments, we as dialFolderPathToAttachment, re as fetchByTab, ie as fetchForSearch, N as findDialFileByPath, ae as findFirstSuccessfulCopyMoveItem, P as findFolderByVirtualPath, F as formatOperationFolderName, t as getFileSelectionKind, he as getUrlFileName, I as getVirtualPathName, L as hasDialFileWritePermission, R as hasForbiddenNameSymbols, z as hasSamePaths, B as isCopyMoveDuplicateAllowed, f as isDialFileAcceptType, n as isDialFileId, r as isDialFolderId, i as isDialProjectFileId, a as isDialStoredFileId, ge as isExternalSourcePreviewable, o as isOwnDialFileId, V as isShareActionsAllowed, oe as mapCorePermissions, se as mapFileMetadataToDialFile, ce as mapSearchItem, le as mergeCreatedFolderIntoCache, pe as mimeTypesToAttachmentExtensionLabels, p as mimeTypesToDialFileAcceptTypes, m as mimeTypesToFileAccept, H as normalizeVirtualPath, d as openAnnotationAttachment, s as parseDialProjectFileId, U as parseNewFolderVirtualPath, X as prepareCopyItems, Ee as prepareDownloadDestination, Z as prepareMoveRenameItems, J as resolveDialFileApiPath, c as resolveDialFileBucketAndPath, l as resolveDialFolderPath, _e as resolveExternalSourceContentType, W as resolveOwnerCoords, u as resolveRelativeDialFilePath, G as resolveSectionByPath, ue as resolveTransferFailureReason, de as resolveUploadFailureReason, h as sanitizeFileName, g as splitFileNameExtension, _ as trimFileNameToByteLimit, K as unionPathSets, fe as updateEntry, Oe as useDialFileListing, Ne as useDialFileManager, Pe as useDialFileManagerSections, Fe as useDialFileManagerTabConfig, ke as useDialFileMetadata, Ae as useDialFileMutations, je as useDialFileSharing, Me as useDialFileUploadBatch, Le as useFileAttachmentModalState, Ie as useFileAttachmentPicker, Re as useGridEditingScroll, xe as useUnshareConfirmationState, Y as virtualPathToApiPath, q as withRoutableRootLabels };
@@ -2,9 +2,9 @@ import { AttachmentResource } from '@epam/ai-dial-chat-shared';
2
2
  import { ResolveDownloadUrl } from '../attachment/useAttachmentAction/useAttachmentAction';
3
3
  /**
4
4
  * Opens a cited/referenced attachment: triggers a browser download for
5
- * DIAL-hosted files (`files/...` ids) via the injected `resolveDownloadUrl`,
6
- * otherwise opens the URL in a new tab. No-ops when the attachment has no
7
- * URL or the download URL cannot be resolved.
5
+ * DIAL-hosted files (`files/...` and project file ids) via the injected
6
+ * `resolveDownloadUrl`, otherwise opens the URL in a new tab. No-ops when the
7
+ * attachment has no URL or the download URL cannot be resolved.
8
8
  */
9
9
  export declare const openAnnotationAttachment: (attachment: AttachmentResource, resolveDownloadUrl: ResolveDownloadUrl) => void;
10
10
  //# sourceMappingURL=annotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/files/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAGhG;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,kBAAkB,EAC9B,oBAAoB,kBAAkB,KACrC,IAeF,CAAC"}
1
+ {"version":3,"file":"annotation.d.ts","sourceRoot":"","sources":["../../src/files/annotation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,kBAAkB,EAGxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AAGhG;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,YAAY,kBAAkB,EAC9B,oBAAoB,kBAAkB,KACrC,IAgBF,CAAC"}
@@ -1,15 +1,16 @@
1
- import { isDialFileId as e } from "./dial-file.js";
2
- import { triggerAnchorDownload as t } from "@epam/ai-dial-chat-shared";
1
+ import { isDialStoredFileId as e } from "./dial-file.js";
2
+ import { ensureDownloadFilename as t, triggerAnchorDownload as n } from "@epam/ai-dial-chat-shared";
3
3
  //#region src/files/annotation.ts
4
- var n = (n, r) => {
5
- let { url: i } = n;
6
- if (i == null) return;
7
- let a = i.split("#")[0];
8
- if (e(a)) {
9
- let e = r(a);
4
+ var r = (r, i) => {
5
+ let { url: a } = r;
6
+ if (a == null) return;
7
+ let o = a.split("#")[0];
8
+ if (e(o)) {
9
+ let e = i(o);
10
10
  if (e == null) return;
11
- t(e, n.title ?? a.split("/").pop() ?? "");
12
- } else window.open(i, "_blank", "noopener,noreferrer");
11
+ let a = r.title ?? o.split("/").pop() ?? "";
12
+ n(e, t(a, o, r.type));
13
+ } else window.open(a, "_blank", "noopener,noreferrer");
13
14
  };
14
15
  //#endregion
15
- export { n as openAnnotationAttachment };
16
+ export { r as openAnnotationAttachment };
@@ -7,7 +7,7 @@ import { AnnotationGroup } from '@epam/ai-dial-quotations';
7
7
  * file-download endpoint.
8
8
  */
9
9
  export interface AttachmentCanvasUrlResolvers {
10
- /** Resolves a DIAL Core file id to a downloadable URL. */
10
+ /** Resolves a DIAL Core file id or project file id (a citation or reference source) to a downloadable URL. */
11
11
  resolveDialFileDownloadUrl: (fileId: string) => string | undefined;
12
12
  /** Resolves the best downloadable DIAL-file URL from an attachment's `url` or `referenceUrl`. */
13
13
  resolveDialUrl: (attachment: DisplayAttachment) => string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"attachment-canvas.d.ts","sourceRoot":"","sources":["../../src/files/attachment-canvas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAGlB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACxB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAIL,aAAa,EAEd,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EACV,UAAU,EACV,qBAAqB,EAErB,kBAAkB,EAClB,gBAAgB,EAEhB,iBAAiB,EAElB,MAAM,2BAA2B,CAAC;AAMnC,OAAO,EAML,KAAK,eAAe,EAGrB,MAAM,0BAA0B,CAA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