@epam/ai-dial-chat-shared 1.3.0-dev.6 → 1.3.0-dev.61

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 (244) hide show
  1. package/components/ConfirmationDialog/ConfirmationDialog.d.ts +41 -0
  2. package/components/ConfirmationDialog/ConfirmationDialog.d.ts.map +1 -0
  3. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts +33 -0
  4. package/components/ConfirmationIdentityCard/ConfirmationIdentityCard.d.ts.map +1 -0
  5. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts +33 -0
  6. package/components/ConfirmationIdentityRow/ConfirmationIdentityRow.d.ts.map +1 -0
  7. package/components/ConfirmationView/ConfirmationFooter.d.ts +41 -0
  8. package/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -0
  9. package/components/ConfirmationView/ConfirmationFooter.js +3 -1
  10. package/components/ConfirmationView/ConfirmationView.d.ts +57 -0
  11. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  12. package/components/ConfirmationView/ConfirmationView.js +15 -14
  13. package/components/CopyButton/CopyButton.d.ts +19 -0
  14. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  15. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  16. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  17. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.js +34 -0
  18. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  19. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  20. package/components/DeleteConfirmationView/DeleteConfirmationView.js +37 -0
  21. package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +6 -0
  22. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  23. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  24. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  25. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  26. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  27. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  28. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  29. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  30. package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
  31. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  32. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  33. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  34. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
  35. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  36. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  37. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  38. package/components/MarkdownRenderer/MDMessageViewer.d.ts +66 -0
  39. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  40. package/components/MarkdownRenderer/MDMessageViewer.js +14 -12
  41. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +139 -0
  42. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  43. package/components/MarkdownRenderer/MarkdownRenderer.js +136 -129
  44. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  45. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  46. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  47. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  48. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
  49. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  50. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  51. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  52. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  53. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  54. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  55. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  56. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  57. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  58. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  59. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  60. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  61. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  62. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  63. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  64. package/components/MarkdownRenderer/markdown-whitespace.js +18 -0
  65. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  66. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  67. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  68. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  69. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  70. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  71. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  72. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  73. package/constants/breakpoint.d.ts +9 -0
  74. package/constants/breakpoint.d.ts.map +1 -0
  75. package/constants/dial.d.ts +5 -0
  76. package/constants/dial.d.ts.map +1 -0
  77. package/constants/entity-colors.d.ts +6 -0
  78. package/constants/entity-colors.d.ts.map +1 -0
  79. package/constants/icon.d.ts +14 -0
  80. package/constants/icon.d.ts.map +1 -0
  81. package/constants/markdown-editor.d.ts +2 -0
  82. package/constants/markdown-editor.d.ts.map +1 -0
  83. package/constants/mime-types.d.ts +27 -0
  84. package/constants/mime-types.d.ts.map +1 -0
  85. package/constants/public-class-names.d.ts +13 -0
  86. package/constants/public-class-names.d.ts.map +1 -0
  87. package/constants/resizable-fields.d.ts +5 -0
  88. package/constants/resizable-fields.d.ts.map +1 -0
  89. package/constants/select-list.d.ts +4 -0
  90. package/constants/select-list.d.ts.map +1 -0
  91. package/constants/tag-input.d.ts +2 -0
  92. package/constants/tag-input.d.ts.map +1 -0
  93. package/entry-points/file-manager.d.ts +5 -0
  94. package/entry-points/file-manager.d.ts.map +1 -0
  95. package/entry-points/markdown.d.ts +19 -0
  96. package/entry-points/markdown.d.ts.map +1 -0
  97. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  98. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  99. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +128 -120
  100. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  101. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  102. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +2 -1
  103. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  104. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  105. package/file-manager/attach-result.d.ts +9 -0
  106. package/file-manager/attach-result.d.ts.map +1 -0
  107. package/file-manager/file-manager-controller.d.ts +121 -0
  108. package/file-manager/file-manager-controller.d.ts.map +1 -0
  109. package/file-manager/file-manager-variant.d.ts +21 -0
  110. package/file-manager/file-manager-variant.d.ts.map +1 -0
  111. package/file-manager/file-upload-validation.d.ts +8 -0
  112. package/file-manager/file-upload-validation.d.ts.map +1 -0
  113. package/file-manager/index.d.ts +10 -0
  114. package/file-manager/index.d.ts.map +1 -0
  115. package/file-manager/labels.d.ts +156 -0
  116. package/file-manager/labels.d.ts.map +1 -0
  117. package/file-manager/path.d.ts +12 -0
  118. package/file-manager/path.d.ts.map +1 -0
  119. package/file-manager/upload-batch.d.ts +29 -0
  120. package/file-manager/upload-batch.d.ts.map +1 -0
  121. package/file-manager/upload-queue.d.ts +5 -0
  122. package/file-manager/upload-queue.d.ts.map +1 -0
  123. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  124. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  125. package/file-manager.d.ts +2 -506
  126. package/hooks/useAvailableHeightCap.d.ts +30 -0
  127. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  128. package/hooks/useCodeCopy.d.ts +6 -0
  129. package/hooks/useCodeCopy.d.ts.map +1 -0
  130. package/hooks/useCollapsedText.d.ts +27 -0
  131. package/hooks/useCollapsedText.d.ts.map +1 -0
  132. package/hooks/useHorizontalOverflow.d.ts +21 -0
  133. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  134. package/hooks/useIsMobile.d.ts +3 -0
  135. package/hooks/useIsMobile.d.ts.map +1 -0
  136. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  137. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  138. package/hooks/useTextRefinement.d.ts +44 -0
  139. package/hooks/useTextRefinement.d.ts.map +1 -0
  140. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  141. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  142. package/index.css +2 -2
  143. package/index.d.ts +78 -3072
  144. package/index.d.ts.map +1 -0
  145. package/index.js +28 -25
  146. package/markdown.d.ts +2 -465
  147. package/markdown.js +3 -2
  148. package/models/annotation.d.ts +143 -0
  149. package/models/annotation.d.ts.map +1 -0
  150. package/models/application-visualizer.d.ts +67 -0
  151. package/models/application-visualizer.d.ts.map +1 -0
  152. package/models/auth.d.ts +26 -0
  153. package/models/auth.d.ts.map +1 -0
  154. package/models/chat.d.ts +407 -0
  155. package/models/chat.d.ts.map +1 -0
  156. package/models/conversation-classification.d.ts +9 -0
  157. package/models/conversation-classification.d.ts.map +1 -0
  158. package/models/conversation-transfer.d.ts +96 -0
  159. package/models/conversation-transfer.d.ts.map +1 -0
  160. package/models/custom-visualizer.d.ts +61 -0
  161. package/models/custom-visualizer.d.ts.map +1 -0
  162. package/models/deployment-configuration.d.ts +55 -0
  163. package/models/deployment-configuration.d.ts.map +1 -0
  164. package/models/deployment-features.d.ts +17 -0
  165. package/models/deployment-features.d.ts.map +1 -0
  166. package/models/deployment.d.ts +31 -0
  167. package/models/deployment.d.ts.map +1 -0
  168. package/models/dial-model.d.ts +19 -0
  169. package/models/dial-model.d.ts.map +1 -0
  170. package/models/entity.d.ts +15 -0
  171. package/models/entity.d.ts.map +1 -0
  172. package/models/import-export.d.ts +23 -0
  173. package/models/import-export.d.ts.map +1 -0
  174. package/models/inline-segment.d.ts +11 -0
  175. package/models/inline-segment.d.ts.map +1 -0
  176. package/models/locale.d.ts +19 -0
  177. package/models/locale.d.ts.map +1 -0
  178. package/models/text-refinement.d.ts +18 -0
  179. package/models/text-refinement.d.ts.map +1 -0
  180. package/models/theme.d.ts +36 -0
  181. package/models/theme.d.ts.map +1 -0
  182. package/models/tool-menu-item.d.ts +13 -0
  183. package/models/tool-menu-item.d.ts.map +1 -0
  184. package/package.json +3 -3
  185. package/types/attachment.d.ts +25 -0
  186. package/types/attachment.d.ts.map +1 -0
  187. package/types/code-editor.d.ts +8 -0
  188. package/types/code-editor.d.ts.map +1 -0
  189. package/types/entity-type.d.ts +10 -0
  190. package/types/entity-type.d.ts.map +1 -0
  191. package/types/file-manager-node.d.ts +17 -0
  192. package/types/file-manager-node.d.ts.map +1 -0
  193. package/types/mime-type.d.ts +59 -0
  194. package/types/mime-type.d.ts.map +1 -0
  195. package/utils/annotation.d.ts +29 -0
  196. package/utils/annotation.d.ts.map +1 -0
  197. package/utils/avatar-color.d.ts +10 -0
  198. package/utils/avatar-color.d.ts.map +1 -0
  199. package/utils/build-css-vars.d.ts +4 -0
  200. package/utils/build-css-vars.d.ts.map +1 -0
  201. package/utils/copy-to-clipboard.d.ts +18 -0
  202. package/utils/copy-to-clipboard.d.ts.map +1 -0
  203. package/utils/entity-field-limits.d.ts +11 -0
  204. package/utils/entity-field-limits.d.ts.map +1 -0
  205. package/utils/entity-type.d.ts +5 -0
  206. package/utils/entity-type.d.ts.map +1 -0
  207. package/utils/file-download.d.ts +21 -0
  208. package/utils/file-download.d.ts.map +1 -0
  209. package/utils/format-file-size.d.ts +3 -0
  210. package/utils/format-file-size.d.ts.map +1 -0
  211. package/utils/format-last-used.d.ts +3 -0
  212. package/utils/format-last-used.d.ts.map +1 -0
  213. package/utils/format-price.d.ts +7 -0
  214. package/utils/format-price.d.ts.map +1 -0
  215. package/utils/generate-uuid.d.ts +3 -0
  216. package/utils/generate-uuid.d.ts.map +1 -0
  217. package/utils/initials.d.ts +3 -0
  218. package/utils/initials.d.ts.map +1 -0
  219. package/utils/inline-segments.d.ts +38 -0
  220. package/utils/inline-segments.d.ts.map +1 -0
  221. package/utils/inline-segments.js +53 -0
  222. package/utils/is-audio-transcription-supported.d.ts +3 -0
  223. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  224. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  225. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  226. package/utils/latex.d.ts +21 -0
  227. package/utils/latex.d.ts.map +1 -0
  228. package/utils/markdown-html.d.ts +14 -0
  229. package/utils/markdown-html.d.ts.map +1 -0
  230. package/utils/markdown-html.js +11 -0
  231. package/utils/merge-class.d.ts +4 -0
  232. package/utils/merge-class.d.ts.map +1 -0
  233. package/utils/message-attachment-to-display.d.ts +22 -0
  234. package/utils/message-attachment-to-display.d.ts.map +1 -0
  235. package/utils/message.d.ts +4 -0
  236. package/utils/message.d.ts.map +1 -0
  237. package/utils/mime-type.d.ts +22 -0
  238. package/utils/mime-type.d.ts.map +1 -0
  239. package/utils/prompt-variables.d.ts +62 -0
  240. package/utils/prompt-variables.d.ts.map +1 -0
  241. package/utils/string-utils.d.ts +11 -0
  242. package/utils/string-utils.d.ts.map +1 -0
  243. package/utils/syntax-highlighting.d.ts +8 -0
  244. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -4,27 +4,27 @@ import { getParentFolderPath as ee } from "../path.js";
4
4
  import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
5
5
  import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
6
6
  import { toUploadQueueItems as re } from "../upload-queue.js";
7
- import { NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
8
- import { memo as r, useCallback as ce, useEffect as le, useMemo as i, useState as ue } from "react";
9
- import { Fragment as de, jsx as a, jsxs as o } from "react/jsx-runtime";
10
- import { DialFileManager as fe, DialFileManagerActions as s, DialFileManagerTabs as c, GridSelectionMode as pe } from "@epam/ai-dial-react-file-manager";
7
+ import { ButtonVariant as r, NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
8
+ import { memo as i, useCallback as ce, useEffect as le, useMemo as a, useState as ue } from "react";
9
+ import { Fragment as de, jsx as o, jsxs as s } from "react/jsx-runtime";
10
+ import { DialFileManager as fe, DialFileManagerActions as c, DialFileManagerTabs as pe, GridSelectionMode as me } from "@epam/ai-dial-react-file-manager";
11
11
  //#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
12
- var me = (e, t) => {
12
+ var he = (e, t) => {
13
13
  if (e.isDownloading) return t.downloadingLabel;
14
14
  if (e.isDeleting) return t.deletingLabel;
15
15
  if (e.isRenaming && !e.isMoving) return t.renamingLabel;
16
16
  if (e.isUnsharing) return t.unsharingLabel;
17
17
  if (e.isRemovingAccess) return t.removingAccessLabel;
18
- }, l = ({ controller: r, labels: l, activeTab: u, tabs: d, onTabChange: f, selectedPaths: p, onSelectedPathsChange: he, variant: m, actionProfile: ge, autoSelectUploadedItems: _e = !1, allowedFileTypes: ve, maxSelectableFileSize: h, oversizedUploadMessage: g, isRowSelectable: _, getDisabledTooltip: ye, unsupportedFileTypeTooltip: be }) => {
19
- let { items: xe, isLoading: Se, error: Ce, path: v, onPathChange: we, retry: Te, onSearchFiles: Ee, isSearching: De, searchResults: Oe, clearSearchResults: ke, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: Ae, folderPopupLoadingPaths: S, onUploadFiles: C, onUploadArchive: je, onValidateUpload: Me, uploadBatchState: w, cancelUpload: T, cancelUploadFile: Ne, clearUploadBatch: E, onCreateFolder: Pe, onCreateFolderValidate: Fe, onDownloadFiles: D, isDownloading: Ie, onDeleteFiles: Le, isDeleting: Re, onMoveToFiles: ze, onRenameValidate: Be, isRenaming: Ve, onCopyFiles: He, isCopying: Ue, isMoving: O, cancelCopyMove: We, uploadEnabled: k, isNewButtonDisabled: A, disabledNewButtonTooltip: j, visibleColumns: M, dateLocale: N, dateOptions: P, actionLabels: F, sharedWithMeIds: Ge, sharedByMePaths: I, onUnshareFiles: Ke, isUnsharing: qe, onRemoveFilesAccess: Je, isRemovingAccess: Ye, fileMetadata: L, isFileMetadataLoading: R, onGetInfo: Xe, clearMetadata: z, sectionTab: Ze } = r, B = Ze ?? u, [V, Qe] = ue(void 0), { handleGridApiChange: $e, reset: H } = te();
18
+ }, l = ({ controller: i, labels: l, activeTab: u, tabs: d, onTabChange: f, selectedPaths: p, onSelectedPathsChange: ge, variant: m, actionProfile: _e, autoSelectUploadedItems: ve = !1, allowedFileTypes: ye, maxSelectableFileSize: h, oversizedUploadMessage: g, isRowSelectable: _, getDisabledTooltip: be, unsupportedFileTypeTooltip: xe }) => {
19
+ let { items: Se, isLoading: Ce, error: we, path: v, onPathChange: Te, retry: Ee, onSearchFiles: De, isSearching: Oe, searchResults: ke, clearSearchResults: Ae, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: je, folderPopupLoadingPaths: S, onUploadFiles: Me, onUploadArchive: Ne, onValidateUpload: Pe, uploadBatchState: C, cancelUpload: w, cancelUploadFile: T, clearUploadBatch: E, onCreateFolder: Fe, onCreateFolderValidate: Ie, onDownloadFiles: Le, isDownloading: Re, onDeleteFiles: ze, isDeleting: Be, onMoveToFiles: Ve, onRenameValidate: He, isRenaming: Ue, onCopyFiles: We, isCopying: Ge, isMoving: D, cancelCopyMove: Ke, uploadEnabled: O, isNewButtonDisabled: k, disabledNewButtonTooltip: A, visibleColumns: j, dateLocale: M, dateOptions: N, actionLabels: P, sharedWithMeIds: qe, sharedByMePaths: F, onUnshareFiles: Je, isUnsharing: Ye, onRemoveFilesAccess: Xe, isRemovingAccess: Ze, fileMetadata: I, isFileMetadataLoading: L, onGetInfo: Qe, clearMetadata: R, sectionTab: $e } = i, z = $e ?? u, [B, et] = ue(void 0), { handleGridApiChange: tt, reset: V } = te();
20
20
  le(() => {
21
- H();
22
- }, [B, H]);
23
- let U = i(() => {
21
+ V();
22
+ }, [z, V]);
23
+ let H = a(() => {
24
24
  let e = {};
25
- return s.Download in F && (e[s.Download] = l.downloadLabel), s.Delete in F && (e[s.Delete] = l.deleteLabel), s.Rename in F && (e[s.Rename] = l.renameLabel), s.Copy in F && (e[s.Copy] = l.copyLabel), s.Move in F && (e[s.Move] = l.moveLabel), s.Duplicate in F && (e[s.Duplicate] = l.duplicateLabel), s.Unshare in F && (e[s.Unshare] = l.unshareLabel), s.RemoveAccess in F && (e[s.RemoveAccess] = l.removeAccessLabel), e;
25
+ return c.Download in P && (e[c.Download] = l.downloadLabel), c.Delete in P && (e[c.Delete] = l.deleteLabel), c.Rename in P && (e[c.Rename] = l.renameLabel), c.Copy in P && (e[c.Copy] = l.copyLabel), c.Move in P && (e[c.Move] = l.moveLabel), c.Duplicate in P && (e[c.Duplicate] = l.duplicateLabel), c.Unshare in P && (e[c.Unshare] = l.unshareLabel), c.RemoveAccess in P && (e[c.RemoveAccess] = l.removeAccessLabel), e;
26
26
  }, [
27
- F,
27
+ P,
28
28
  l.downloadLabel,
29
29
  l.deleteLabel,
30
30
  l.renameLabel,
@@ -33,26 +33,27 @@ var me = (e, t) => {
33
33
  l.duplicateLabel,
34
34
  l.unshareLabel,
35
35
  l.removeAccessLabel
36
- ]), W = i(() => s.Info in F ? {
37
- ...U,
38
- [s.Info]: l.infoLabel
39
- } : U, [
40
- U,
41
- F,
36
+ ]), U = a(() => c.Info in P ? {
37
+ ...H,
38
+ [c.Info]: l.infoLabel
39
+ } : H, [
40
+ H,
41
+ P,
42
42
  l.infoLabel
43
- ]), G = i(() => {
43
+ ]), W = a(() => {
44
44
  if (p.size === 0) return !1;
45
- for (let e of p) if (!I.has(e)) return !1;
45
+ for (let e of p) if (!F.has(e)) return !1;
46
46
  return !0;
47
- }, [p, I]), K = i(() => {
48
- if (G) return U;
49
- let { [s.RemoveAccess]: e, ...t } = U;
47
+ }, [p, F]), G = a(() => {
48
+ if (W) return H;
49
+ let { [c.RemoveAccess]: e, ...t } = H;
50
50
  return t;
51
- }, [U, G]), et = i(() => ({
52
- selectionMode: pe.MULTIPLE,
53
- visibleColumns: M,
54
- dateLocale: N,
55
- dateOptions: P,
51
+ }, [H, W]), K = m === n.Attach, nt = a(() => ({
52
+ selectionMode: me.MULTIPLE,
53
+ ...K ? { filterable: !1 } : {},
54
+ visibleColumns: j,
55
+ dateLocale: M,
56
+ dateOptions: N,
56
57
  additionalGridOptions: {
57
58
  domLayout: "normal",
58
59
  rowSelection: {
@@ -60,14 +61,15 @@ var me = (e, t) => {
60
61
  isRowSelectable: _ ?? (() => !0)
61
62
  }
62
63
  },
63
- actionLabels: W
64
+ actionLabels: U
64
65
  }), [
66
+ K,
67
+ j,
65
68
  M,
66
69
  N,
67
- P,
68
- W,
70
+ U,
69
71
  _
70
- ]), tt = i(() => ({
72
+ ]), rt = a(() => ({
71
73
  header: m === n.Attach ? null : l.treeHeaderByTab[u],
72
74
  containerClassName: m === n.Attach ? "min-h-0 h-full w-[360px] shrink-0 rounded-xl bg-layer-raised shadow-sm" : void 0,
73
75
  tabsAriaLabel: l.treeHeaderByTab[u],
@@ -78,7 +80,7 @@ var me = (e, t) => {
78
80
  loadedPaths: b,
79
81
  loadingPaths: S,
80
82
  onExpandedPathsChange: x,
81
- actionLabels: U
83
+ actionLabels: H
82
84
  }), [
83
85
  l.treeHeaderByTab,
84
86
  m,
@@ -89,14 +91,15 @@ var me = (e, t) => {
89
91
  b,
90
92
  S,
91
93
  x,
92
- U
93
- ]), q = m === n.Standalone && ge === t.Full && B === c.MyFiles && k, nt = i(() => ({
94
+ H
95
+ ]), q = m === n.Standalone && _e === t.Full && z === pe.MyFiles && O, it = a(() => ({
94
96
  showHiddenFilesToggle: !0,
97
+ ...K ? { newButtonVariant: r.Neutral } : {},
95
98
  hiddenFilesSwitcherLabel: l.hiddenFilesLabel,
96
99
  showHiddenFilesLabel: l.showHiddenFilesLabel,
97
100
  hideHiddenFilesLabel: l.hideHiddenFilesLabel,
98
- isNewButtonDisabled: A,
99
- disabledNewButtonTooltip: j,
101
+ isNewButtonDisabled: k,
102
+ disabledNewButtonTooltip: A,
100
103
  newActions: {
101
104
  uploadFiles: {
102
105
  label: l.uploadFilesLabel,
@@ -112,19 +115,24 @@ var me = (e, t) => {
112
115
  } } : {}
113
116
  }
114
117
  }), [
118
+ K,
115
119
  l.hiddenFilesLabel,
116
120
  l.showHiddenFilesLabel,
117
121
  l.hideHiddenFilesLabel,
122
+ k,
118
123
  A,
119
- j,
120
124
  l.uploadFilesLabel,
121
125
  l.newFolderLabel,
122
126
  q,
123
127
  l.uploadArchiveAction
124
- ]), rt = i(() => ({
128
+ ]), at = a(() => K ? void 0 : {
125
129
  getSelectionLabel: l.getSelectionLabel,
126
- actionLabels: K
127
- }), [l.getSelectionLabel, K]), it = i(() => ({
130
+ actionLabels: G
131
+ }, [
132
+ K,
133
+ l.getSelectionLabel,
134
+ G
135
+ ]), ot = a(() => ({
128
136
  cancelLabel: l.deleteCancelLabel,
129
137
  confirmLabel: l.deleteConfirmLabel,
130
138
  closeLabel: l.deleteCloseLabel,
@@ -136,7 +144,7 @@ var me = (e, t) => {
136
144
  l.deleteCloseLabel,
137
145
  l.deleteConfirmTitle,
138
146
  l.deleteConfirmBody
139
- ]), at = i(() => {
147
+ ]), st = a(() => {
140
148
  let e;
141
149
  for (let t of p) {
142
150
  let n = ee(t);
@@ -144,7 +152,7 @@ var me = (e, t) => {
144
152
  else if (e !== n) return;
145
153
  }
146
154
  return e;
147
- }, [p]), J = V != null && S.has(V), Y = J ? V : at, ot = i(() => ({
155
+ }, [p]), J = B != null && S.has(B), Y = J ? B : st, ct = a(() => ({
148
156
  copyLabel: l.copyLabel,
149
157
  moveLabel: l.moveLabel,
150
158
  addFolderLabel: l.addFolderLabel,
@@ -155,8 +163,8 @@ var me = (e, t) => {
155
163
  emptyStateTitle: l.folderPickerEmptyStateTitle,
156
164
  emptyStateDescription: l.folderPickerEmptyStateDescription,
157
165
  sourceFolder: Y,
158
- destinationFolderPath: V,
159
- setDestinationFolderPath: Qe,
166
+ destinationFolderPath: B,
167
+ setDestinationFolderPath: et,
160
168
  filesLoading: J
161
169
  }), [
162
170
  l.copyLabel,
@@ -171,13 +179,13 @@ var me = (e, t) => {
171
179
  l.folderPickerEmptyStateDescription,
172
180
  J,
173
181
  Y,
174
- V
175
- ]), st = ce(() => {
176
- T(), E();
177
- }, [T, E]), X = i(() => re(w?.files ?? []), [w]), ct = i(() => ({
178
- fileMetadata: L,
179
- loading: R,
180
- clearMetadata: z,
182
+ B
183
+ ]), lt = ce(() => {
184
+ w(), E();
185
+ }, [w, E]), X = a(() => re(C?.files ?? []), [C]), ut = a(() => ({
186
+ fileMetadata: I,
187
+ loading: L,
188
+ clearMetadata: R,
181
189
  header: l.metadataHeader,
182
190
  nameLabel: l.metadataNameLabel,
183
191
  pathLabel: l.metadataPathLabel,
@@ -185,128 +193,128 @@ var me = (e, t) => {
185
193
  sizeLabel: l.metadataSizeLabel,
186
194
  authorLabel: l.metadataAuthorLabel
187
195
  }), [
196
+ I,
188
197
  L,
189
198
  R,
190
- z,
191
199
  l.metadataHeader,
192
200
  l.metadataNameLabel,
193
201
  l.metadataPathLabel,
194
202
  l.metadataModifiedDateLabel,
195
203
  l.metadataSizeLabel,
196
204
  l.metadataAuthorLabel
197
- ]), Z = me({
198
- isDownloading: Ie,
199
- isDeleting: Re,
200
- isRenaming: Ve,
201
- isMoving: O,
202
- isUnsharing: qe,
203
- isRemovingAccess: Ye
204
- }, l), Q = m === n.Standalone ? "bg-layer-base" : "bg-layer-sunken", $ = i(() => v.split("/").filter(Boolean).length > 1 ? {
205
+ ]), Z = he({
206
+ isDownloading: Re,
207
+ isDeleting: Be,
208
+ isRenaming: Ue,
209
+ isMoving: D,
210
+ isUnsharing: Ye,
211
+ isRemovingAccess: Ze
212
+ }, l), Q = "bg-layer-base", $ = a(() => v.split("/").filter(Boolean).length > 1 ? {
205
213
  title: l.folderEmptyStateTitle,
206
214
  description: ""
207
- } : l.emptyStateByTab[B], [
215
+ } : l.emptyStateByTab[z], [
208
216
  v,
209
217
  l.folderEmptyStateTitle,
210
218
  l.emptyStateByTab,
211
- B
219
+ z
212
220
  ]);
213
- return /* @__PURE__ */ o(de, { children: [
214
- Ce == null ? /* @__PURE__ */ o("div", {
221
+ return /* @__PURE__ */ s(de, { children: [
222
+ we == null ? /* @__PURE__ */ s("div", {
215
223
  className: e("relative flex min-h-0 w-full grow overflow-auto", Q),
216
- children: [/* @__PURE__ */ a(fe, {
217
- className: e("min-h-0 w-full grow", Q),
224
+ children: [/* @__PURE__ */ o(fe, {
225
+ className: e("min-h-0 w-full grow", Q, K && "p-0"),
218
226
  contentClassName: m === n.Attach ? "px-0 pb-0" : void 0,
219
227
  gridClassName: m === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
220
- items: xe,
228
+ items: Se,
221
229
  path: v,
222
- onPathChange: we,
223
- onGridApiChange: $e,
224
- filesLoading: Se,
225
- allowedFileTypes: ve,
230
+ onPathChange: Te,
231
+ onGridApiChange: tt,
232
+ filesLoading: Ce,
233
+ allowedFileTypes: ye,
226
234
  maxSelectableFileSize: h,
227
235
  maxFileSize: h,
228
236
  uploadValidationMessages: g == null ? void 0 : { oversizedFiles: g },
229
237
  selectedPaths: p,
230
- onSelectedPathsChange: he,
238
+ onSelectedPathsChange: ge,
231
239
  navigationPanelOptions: {
232
240
  searchable: !0,
233
- placeholder: l.searchPlaceholderByTab?.[B]
241
+ placeholder: l.searchPlaceholderByTab?.[z]
234
242
  },
235
243
  hideSearchPathItemName: !0,
236
- onSearchFiles: Ee,
237
- searchInProgress: De,
238
- searchResults: Oe ?? [],
239
- clearSearchResults: ke,
240
- gridOptions: et,
241
- treeOptions: tt,
242
- onFolderPopupPathChange: Ae,
243
- toolbarOptions: nt,
244
- bulkActionsToolbarOptions: rt,
245
- autoSelectUploadedItems: _e,
244
+ onSearchFiles: De,
245
+ searchInProgress: Oe,
246
+ searchResults: ke ?? [],
247
+ clearSearchResults: Ae,
248
+ gridOptions: nt,
249
+ treeOptions: rt,
250
+ onFolderPopupPathChange: je,
251
+ toolbarOptions: it,
252
+ bulkActionsToolbarOptions: at,
253
+ autoSelectUploadedItems: ve,
246
254
  emptyStateTitle: $.title,
247
255
  emptyStateDescription: $.description,
248
256
  searchEmptyStateTitle: l.searchEmptyStateTitle,
249
- uploadEnabled: k,
250
- sharedWithMeIds: Ge,
251
- sharedByMePaths: I,
252
- onUnshareFiles: Ke,
253
- onRemoveFilesAccess: Je,
254
- fileMetadataPopupOptions: ct,
255
- onGetInfo: Xe,
256
- onUploadFiles: C,
257
- onUploadArchive: je,
258
- onValidateUpload: Me,
259
- onCreateFolder: Pe,
260
- onCreateFolderValidate: Fe,
261
- onDownloadFiles: D,
262
- onDeleteFiles: Le,
263
- onMoveToFiles: ze,
264
- onCopyFiles: He,
265
- onRenameValidate: Be,
257
+ uploadEnabled: O,
258
+ sharedWithMeIds: qe,
259
+ sharedByMePaths: F,
260
+ onUnshareFiles: Je,
261
+ onRemoveFilesAccess: Xe,
262
+ fileMetadataPopupOptions: ut,
263
+ onGetInfo: Qe,
264
+ onUploadFiles: Me,
265
+ onUploadArchive: Ne,
266
+ onValidateUpload: Pe,
267
+ onCreateFolder: Fe,
268
+ onCreateFolderValidate: Ie,
269
+ onDownloadFiles: Le,
270
+ onDeleteFiles: ze,
271
+ onMoveToFiles: Ve,
272
+ onCopyFiles: We,
273
+ onRenameValidate: He,
266
274
  renameValidationMessages: l.renameValidationMessages,
267
- isRenameFileAvailable: k,
268
- deleteConfirmationOptions: it,
275
+ isRenameFileAvailable: O,
276
+ deleteConfirmationOptions: ot,
269
277
  conflictResolutionPopupOptions: l.conflictResolutionPopupOptions,
270
- destinationFolderPopupOptions: ot,
278
+ destinationFolderPopupOptions: ct,
271
279
  forbiddenSymbolsRegExp: ie,
272
280
  forbiddenSymbolsTooltip: l.forbiddenSymbolsTooltip,
273
- getDisabledTooltip: ye,
274
- unsupportedFileTypeTooltip: be
275
- }), Z != null && /* @__PURE__ */ a("div", {
281
+ getDisabledTooltip: be,
282
+ unsupportedFileTypeTooltip: xe
283
+ }), Z != null && /* @__PURE__ */ o("div", {
276
284
  "aria-live": "polite",
277
285
  className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
278
- children: /* @__PURE__ */ a(oe, {
286
+ children: /* @__PURE__ */ o(oe, {
279
287
  size: 32,
280
288
  fullWidth: !1,
281
289
  ariaLabel: Z
282
290
  })
283
291
  })]
284
- }) : /* @__PURE__ */ o("div", {
292
+ }) : /* @__PURE__ */ s("div", {
285
293
  role: "alert",
286
294
  className: "flex flex-col items-center gap-4 p-6",
287
- children: [/* @__PURE__ */ a("p", { children: l.errorMessage }), /* @__PURE__ */ a(ae, {
295
+ children: [/* @__PURE__ */ o("p", { children: l.errorMessage }), /* @__PURE__ */ o(ae, {
288
296
  label: l.retryLabel,
289
- onClick: Te
297
+ onClick: Ee
290
298
  })]
291
299
  }),
292
- /* @__PURE__ */ a("div", {
300
+ /* @__PURE__ */ o("div", {
293
301
  className: "fixed bottom-4 end-4 z-[70]",
294
- children: /* @__PURE__ */ a(se, {
302
+ children: /* @__PURE__ */ o(se, {
295
303
  title: l.getUploadQueueTitle(X.length),
296
304
  items: X,
297
- onClose: st,
298
- onCancelItem: Ne,
305
+ onClose: lt,
306
+ onCancelItem: T,
299
307
  labels: l.uploadQueueLabels
300
308
  })
301
309
  }),
302
- (Ue || O) && /* @__PURE__ */ a(ne, {
303
- title: O ? l.operationLoaderMoveTitle : l.operationLoaderCopyTitle,
304
- text: O ? l.movingLabel : l.copyingLabel,
310
+ (Ge || D) && /* @__PURE__ */ o(ne, {
311
+ title: D ? l.operationLoaderMoveTitle : l.operationLoaderCopyTitle,
312
+ text: D ? l.movingLabel : l.copyingLabel,
305
313
  cancelLabel: l.operationLoaderCancelLabel,
306
- onCancel: We
314
+ onCancel: Ke
307
315
  })
308
316
  ] });
309
317
  };
310
- r(l);
318
+ i(l);
311
319
  //#endregion
312
320
  export { l as DialFileManagerShell };
@@ -0,0 +1,89 @@
1
+ import { DialFileManagerTabs, DialFile, DialFileAcceptType, FileManagerGridRow, FileTreeOptions } from '@epam/ai-dial-react-file-manager';
2
+ import { FC } from 'react';
3
+ import { FileManagerSelectableNode } from '../../types/file-manager-node';
4
+ import { AttachResult } from '../attach-result';
5
+ import { FileManagerController } from '../file-manager-controller';
6
+ import { DialFileManagerActionProfile, DialFileManagerVariant } from '../file-manager-variant';
7
+ import { FileManagerAttachModalLabels } from '../labels';
8
+ /** Props accepted by `FileManagerAttachModal`. */
9
+ export interface FileManagerAttachModalProps {
10
+ /** Whether the modal is open. */
11
+ isOpen: boolean;
12
+ /** Called when the modal requests to be closed. */
13
+ onClose: () => void;
14
+ /** Called with the confirmed selection when the user presses Attach. */
15
+ onAttach: (result: AttachResult) => void;
16
+ /** Called when one or more selected files were filtered out due to an unsupported type. */
17
+ onSkippedUnsupportedFiles?: () => void;
18
+ /** Called when the total attachment count would exceed the limit. */
19
+ onCountLimitExceeded?: (totalCount: number, limit: number) => void;
20
+ /** Live file-manager state driving the grid. */
21
+ controller: FileManagerController;
22
+ /**
23
+ * True while any mutating operation is in progress (upload, delete, rename, etc.).
24
+ * Disables the Attach button alongside `isLoading`.
25
+ */
26
+ isAnyOperationInProgress: boolean;
27
+ /** Currently active tab. */
28
+ activeTab: DialFileManagerTabs;
29
+ /** Filter chips scoping the tree and the grid, rendered above the folder tree. */
30
+ tabs: FileTreeOptions['tabs'];
31
+ /**
32
+ * Called when the user switches tabs.
33
+ * The host is responsible for resetting `selectedPaths` to an empty set.
34
+ */
35
+ onTabChange: (tab: DialFileManagerTabs) => void;
36
+ /** All user-visible strings. */
37
+ labels: FileManagerAttachModalLabels;
38
+ /** File-manager variant (controls which toolbar entries are shown). */
39
+ variant: DialFileManagerVariant;
40
+ /** Action profile controlling toolbar entry visibility. */
41
+ actionProfile: DialFileManagerActionProfile;
42
+ /**
43
+ * Current set of selected virtual paths, managed by the host.
44
+ * The host must reset this to an empty set when the active tab changes.
45
+ */
46
+ selectedPaths: Set<string>;
47
+ /** Called when the user changes the grid selection. */
48
+ onSelectedPathsChange: (paths: Set<string>) => void;
49
+ /**
50
+ * Resolves a folder `DialFile` to its DIAL Core path string for inclusion in
51
+ * `AttachResult.folderPaths`. Return `null` to skip the folder.
52
+ * Path normalization and bucket resolution are the host's responsibility.
53
+ */
54
+ resolveFolderPath: (file: DialFile) => string | null;
55
+ /**
56
+ * Returns `false` for file content-types that must be filtered out on attach.
57
+ * When absent, all content types are accepted.
58
+ */
59
+ isFileTypeAllowed?: (contentType: string) => boolean;
60
+ /** Maximum size in bytes a selectable file may have. */
61
+ maxSelectableFileSize?: number;
62
+ /** Maximum total attachments (already-attached plus newly selected). */
63
+ maximumAttachmentsAmount?: number;
64
+ /** Count of attachments already present before this modal opens. Defaults to `0`. */
65
+ existingAttachmentsAmount?: number;
66
+ /**
67
+ * Row selectability predicate forwarded to the grid and re-applied to every
68
+ * selection change, so items that were not clicked manually (e.g. the file
69
+ * manager's auto-select of newly created items) cannot enter selection
70
+ * unless manually selectable. Paths resolving to no listed node are dropped.
71
+ * When absent, selection changes are forwarded unfiltered.
72
+ */
73
+ isRowSelectable?: (node: {
74
+ data?: FileManagerSelectableNode | null;
75
+ }) => boolean;
76
+ /** Returns a tooltip for disabled rows; forwarded to the grid. */
77
+ getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
78
+ /** Tooltip shown on files with an unsupported type; forwarded to the grid. */
79
+ unsupportedFileTypeTooltip?: string;
80
+ /** Accepted file types for the upload file input. */
81
+ allowedFileTypes?: DialFileAcceptType[];
82
+ /** Whether to auto-select items immediately after upload. Defaults to `false`. */
83
+ autoSelectUploadedItems?: boolean;
84
+ /** Pre-translated message shown by the ui-kit when a newly-selected file exceeds `maxSelectableFileSize`. Omit to leave upload-size validation unrestricted regardless of `maxSelectableFileSize`. */
85
+ oversizedUploadMessage?: string;
86
+ }
87
+ /** File-manager modal with Popup chrome and an Attach footer. Selection and tab state are controlled by the host. */
88
+ export declare const FileManagerAttachModal: FC<FileManagerAttachModalProps>;
89
+ //# sourceMappingURL=FileManagerAttachModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileManagerAttachModal.d.ts","sourceRoot":"","sources":["../../../src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAEnB,KAAK,QAAQ,EACb,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAA8B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAG9D,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,MAAM,EAAE,OAAO,CAAC;IAChB,mDAAmD;IACnD,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,wEAAwE;IACxE,QAAQ,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACzC,2FAA2F;IAC3F,yBAAyB,CAAC,EAAE,MAAM,IAAI,CAAC;IACvC,qEAAqE;IACrE,oBAAoB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAEnE,gDAAgD;IAChD,UAAU,EAAE,qBAAqB,CAAC;IAClC;;;OAGG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAClC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B;;;OAGG;IACH,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAEhD,gCAAgC;IAChC,MAAM,EAAE,4BAA4B,CAAC;IAErC,uEAAuE;IACvE,OAAO,EAAE,sBAAsB,CAAC;IAChC,2DAA2D;IAC3D,aAAa,EAAE,4BAA4B,CAAC;IAE5C;;;OAGG;IACH,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,uDAAuD;IACvD,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAEpD;;;;OAIG;IACH,iBAAiB,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,GAAG,IAAI,CAAC;IAErD;;;OAGG;IACH,iBAAiB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC;IACrD,wDAAwD;IACxD,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wEAAwE;IACxE,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,qFAAqF;IACrF,yBAAyB,CAAC,EAAE,MAAM,CAAC;IAEnC;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,kEAAkE;IAClE,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,8EAA8E;IAC9E,0BAA0B,CAAC,EAAE,MAAM,CAAC;IAEpC,qDAAqD;IACrD,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,kFAAkF;IAClF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,qHAAqH;AACrH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CAkOlE,CAAC"}
@@ -74,7 +74,8 @@ var d = a(({ isOpen: a, onClose: d, onAttach: f, onSkippedUnsupportedFiles: p, o
74
74
  }),
75
75
  ariaLabel: U,
76
76
  size: i.Lg,
77
- className: "flex !h-[min(800px,100dvh)] w-full flex-col !bg-layer-sunken",
77
+ className: "flex !h-[min(900px,100dvh)] w-full !max-w-[1600px] flex-col !bg-layer-base mobile:!h-full mobile:!max-w-full mobile:rounded-none",
78
+ overlayClassName: "mobile:p-0",
78
79
  headerClassName: "pb-0",
79
80
  footerClassName: "pt-0",
80
81
  onClose: d,
@@ -0,0 +1,17 @@
1
+ import { FC } from 'react';
2
+ /** Props for the operation-in-progress overlay modal (copy/move spinner). */
3
+ export interface OperationLoaderModalProps {
4
+ /** Title shown above the spinner (e.g. "Copying files"). */
5
+ title: string;
6
+ /** Secondary text below the title (e.g. "Copying 2 items"). */
7
+ text: string;
8
+ /** Label for the cancel button. */
9
+ cancelLabel: string;
10
+ /** Called when the user clicks Cancel. */
11
+ onCancel: () => void;
12
+ }
13
+ /** Modal overlay with a spinner and cancel button for long-running file operations. */
14
+ export declare const OperationLoaderModal: FC<OperationLoaderModalProps>;
15
+ declare const _default: import('react').NamedExoticComponent<OperationLoaderModalProps>;
16
+ export default _default;
17
+ //# sourceMappingURL=OperationLoaderModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OperationLoaderModal.d.ts","sourceRoot":"","sources":["../../../src/file-manager/OperationLoaderModal/OperationLoaderModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEtC,6EAA6E;AAC7E,MAAM,WAAW,yBAAyB;IACxC,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,uFAAuF;AACvF,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAyB9D,CAAC;;AAEF,wBAA0C"}
@@ -0,0 +1,9 @@
1
+ import { DialFile } from '@epam/ai-dial-react-file-manager';
2
+ /** Result returned by the file-manager attach modal when the user confirms a selection. */
3
+ export interface AttachResult {
4
+ /** Selected files (individual items, not folders). */
5
+ files: DialFile[];
6
+ /** Virtual paths of selected folders. */
7
+ folderPaths: string[];
8
+ }
9
+ //# sourceMappingURL=attach-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attach-result.d.ts","sourceRoot":"","sources":["../../src/file-manager/attach-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAEjE,2FAA2F;AAC3F,MAAM,WAAW,YAAY;IAC3B,sDAAsD;IACtD,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,yCAAyC;IACzC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB"}