@epam/ai-dial-chat-shared 1.3.0-dev.35 → 1.3.0-dev.45

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 (223) 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/ConfirmationView.d.ts +57 -0
  10. package/components/ConfirmationView/ConfirmationView.d.ts.map +1 -0
  11. package/components/CopyButton/CopyButton.d.ts +19 -0
  12. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  13. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts +41 -0
  14. package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.d.ts.map +1 -0
  15. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts +49 -0
  16. package/components/DeleteConfirmationView/DeleteConfirmationView.d.ts.map +1 -0
  17. package/components/DeploymentIcon/DeploymentIcon.d.ts +36 -0
  18. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -0
  19. package/components/EntityHeader/EntityHeader.d.ts +38 -0
  20. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  21. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +18 -0
  22. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  23. package/components/FeaturedChip/FeaturedChip.d.ts +16 -0
  24. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  25. package/components/InitialsAvatar/InitialsAvatar.d.ts +15 -0
  26. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -0
  27. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  28. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  29. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +53 -0
  30. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -0
  31. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +7 -0
  32. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +1 -0
  33. package/components/MarkdownRenderer/MDMessageViewer.d.ts +62 -0
  34. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -0
  35. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +137 -0
  36. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -0
  37. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +18 -0
  38. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +1 -0
  39. package/components/MarkdownRenderer/PlainTextRenderer.d.ts +39 -0
  40. package/components/MarkdownRenderer/PlainTextRenderer.d.ts.map +1 -0
  41. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +47 -0
  42. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -0
  43. package/components/MarkdownRenderer/Table/TableHeader.d.ts +22 -0
  44. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +1 -0
  45. package/components/MarkdownRenderer/Table/table-serialization.d.ts +16 -0
  46. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +1 -0
  47. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +27 -0
  48. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +1 -0
  49. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +9 -0
  50. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -0
  51. package/components/MarkdownRenderer/ThinkingShimmer.d.ts +17 -0
  52. package/components/MarkdownRenderer/ThinkingShimmer.d.ts.map +1 -0
  53. package/components/MarkdownRenderer/markdown-class-names.d.ts +10 -0
  54. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -0
  55. package/components/MarkdownRenderer/markdown-whitespace.d.ts +15 -0
  56. package/components/MarkdownRenderer/markdown-whitespace.d.ts.map +1 -0
  57. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  58. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  59. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  60. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  61. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  62. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  63. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  64. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  65. package/constants/breakpoint.d.ts +9 -0
  66. package/constants/breakpoint.d.ts.map +1 -0
  67. package/constants/dial.d.ts +5 -0
  68. package/constants/dial.d.ts.map +1 -0
  69. package/constants/entity-colors.d.ts +6 -0
  70. package/constants/entity-colors.d.ts.map +1 -0
  71. package/constants/icon.d.ts +14 -0
  72. package/constants/icon.d.ts.map +1 -0
  73. package/constants/markdown-editor.d.ts +2 -0
  74. package/constants/markdown-editor.d.ts.map +1 -0
  75. package/constants/mime-types.d.ts +27 -0
  76. package/constants/mime-types.d.ts.map +1 -0
  77. package/constants/public-class-names.d.ts +13 -0
  78. package/constants/public-class-names.d.ts.map +1 -0
  79. package/constants/resizable-fields.d.ts +5 -0
  80. package/constants/resizable-fields.d.ts.map +1 -0
  81. package/constants/select-list.d.ts +4 -0
  82. package/constants/select-list.d.ts.map +1 -0
  83. package/constants/tag-input.d.ts +2 -0
  84. package/constants/tag-input.d.ts.map +1 -0
  85. package/entry-points/file-manager.d.ts +5 -0
  86. package/entry-points/file-manager.d.ts.map +1 -0
  87. package/entry-points/markdown.d.ts +18 -0
  88. package/entry-points/markdown.d.ts.map +1 -0
  89. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  90. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  91. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  92. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  93. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  94. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  95. package/file-manager/attach-result.d.ts +9 -0
  96. package/file-manager/attach-result.d.ts.map +1 -0
  97. package/file-manager/file-manager-controller.d.ts +121 -0
  98. package/file-manager/file-manager-controller.d.ts.map +1 -0
  99. package/file-manager/file-manager-variant.d.ts +21 -0
  100. package/file-manager/file-manager-variant.d.ts.map +1 -0
  101. package/file-manager/file-upload-validation.d.ts +8 -0
  102. package/file-manager/file-upload-validation.d.ts.map +1 -0
  103. package/file-manager/index.d.ts +10 -0
  104. package/file-manager/index.d.ts.map +1 -0
  105. package/file-manager/labels.d.ts +156 -0
  106. package/file-manager/labels.d.ts.map +1 -0
  107. package/file-manager/path.d.ts +12 -0
  108. package/file-manager/path.d.ts.map +1 -0
  109. package/file-manager/upload-batch.d.ts +29 -0
  110. package/file-manager/upload-batch.d.ts.map +1 -0
  111. package/file-manager/upload-queue.d.ts +5 -0
  112. package/file-manager/upload-queue.d.ts.map +1 -0
  113. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  114. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  115. package/file-manager.d.ts +2 -506
  116. package/hooks/useAvailableHeightCap.d.ts +30 -0
  117. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  118. package/hooks/useCodeCopy.d.ts +6 -0
  119. package/hooks/useCodeCopy.d.ts.map +1 -0
  120. package/hooks/useCollapsedText.d.ts +27 -0
  121. package/hooks/useCollapsedText.d.ts.map +1 -0
  122. package/hooks/useHorizontalOverflow.d.ts +21 -0
  123. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  124. package/hooks/useIsMobile.d.ts +3 -0
  125. package/hooks/useIsMobile.d.ts.map +1 -0
  126. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  127. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  128. package/hooks/useTextRefinement.d.ts +44 -0
  129. package/hooks/useTextRefinement.d.ts.map +1 -0
  130. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  131. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  132. package/index.d.ts +77 -3167
  133. package/index.d.ts.map +1 -0
  134. package/markdown.d.ts +2 -465
  135. package/models/annotation.d.ts +143 -0
  136. package/models/annotation.d.ts.map +1 -0
  137. package/models/application-visualizer.d.ts +67 -0
  138. package/models/application-visualizer.d.ts.map +1 -0
  139. package/models/auth.d.ts +26 -0
  140. package/models/auth.d.ts.map +1 -0
  141. package/models/chat.d.ts +407 -0
  142. package/models/chat.d.ts.map +1 -0
  143. package/models/conversation-classification.d.ts +9 -0
  144. package/models/conversation-classification.d.ts.map +1 -0
  145. package/models/conversation-transfer.d.ts +96 -0
  146. package/models/conversation-transfer.d.ts.map +1 -0
  147. package/models/custom-visualizer.d.ts +61 -0
  148. package/models/custom-visualizer.d.ts.map +1 -0
  149. package/models/deployment-configuration.d.ts +55 -0
  150. package/models/deployment-configuration.d.ts.map +1 -0
  151. package/models/deployment-features.d.ts +17 -0
  152. package/models/deployment-features.d.ts.map +1 -0
  153. package/models/deployment.d.ts +31 -0
  154. package/models/deployment.d.ts.map +1 -0
  155. package/models/dial-model.d.ts +19 -0
  156. package/models/dial-model.d.ts.map +1 -0
  157. package/models/entity.d.ts +15 -0
  158. package/models/entity.d.ts.map +1 -0
  159. package/models/import-export.d.ts +23 -0
  160. package/models/import-export.d.ts.map +1 -0
  161. package/models/locale.d.ts +19 -0
  162. package/models/locale.d.ts.map +1 -0
  163. package/models/text-refinement.d.ts +18 -0
  164. package/models/text-refinement.d.ts.map +1 -0
  165. package/models/theme.d.ts +36 -0
  166. package/models/theme.d.ts.map +1 -0
  167. package/models/tool-menu-item.d.ts +13 -0
  168. package/models/tool-menu-item.d.ts.map +1 -0
  169. package/package.json +2 -2
  170. package/types/attachment.d.ts +25 -0
  171. package/types/attachment.d.ts.map +1 -0
  172. package/types/code-editor.d.ts +8 -0
  173. package/types/code-editor.d.ts.map +1 -0
  174. package/types/entity-type.d.ts +10 -0
  175. package/types/entity-type.d.ts.map +1 -0
  176. package/types/file-manager-node.d.ts +17 -0
  177. package/types/file-manager-node.d.ts.map +1 -0
  178. package/types/mime-type.d.ts +59 -0
  179. package/types/mime-type.d.ts.map +1 -0
  180. package/utils/annotation.d.ts +29 -0
  181. package/utils/annotation.d.ts.map +1 -0
  182. package/utils/avatar-color.d.ts +10 -0
  183. package/utils/avatar-color.d.ts.map +1 -0
  184. package/utils/build-css-vars.d.ts +4 -0
  185. package/utils/build-css-vars.d.ts.map +1 -0
  186. package/utils/copy-to-clipboard.d.ts +18 -0
  187. package/utils/copy-to-clipboard.d.ts.map +1 -0
  188. package/utils/entity-field-limits.d.ts +11 -0
  189. package/utils/entity-field-limits.d.ts.map +1 -0
  190. package/utils/entity-type.d.ts +5 -0
  191. package/utils/entity-type.d.ts.map +1 -0
  192. package/utils/file-download.d.ts +21 -0
  193. package/utils/file-download.d.ts.map +1 -0
  194. package/utils/format-file-size.d.ts +3 -0
  195. package/utils/format-file-size.d.ts.map +1 -0
  196. package/utils/format-last-used.d.ts +3 -0
  197. package/utils/format-last-used.d.ts.map +1 -0
  198. package/utils/format-price.d.ts +7 -0
  199. package/utils/format-price.d.ts.map +1 -0
  200. package/utils/generate-uuid.d.ts +3 -0
  201. package/utils/generate-uuid.d.ts.map +1 -0
  202. package/utils/initials.d.ts +3 -0
  203. package/utils/initials.d.ts.map +1 -0
  204. package/utils/is-audio-transcription-supported.d.ts +3 -0
  205. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  206. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  207. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  208. package/utils/latex.d.ts +21 -0
  209. package/utils/latex.d.ts.map +1 -0
  210. package/utils/merge-class.d.ts +4 -0
  211. package/utils/merge-class.d.ts.map +1 -0
  212. package/utils/message-attachment-to-display.d.ts +22 -0
  213. package/utils/message-attachment-to-display.d.ts.map +1 -0
  214. package/utils/message.d.ts +4 -0
  215. package/utils/message.d.ts.map +1 -0
  216. package/utils/mime-type.d.ts +22 -0
  217. package/utils/mime-type.d.ts.map +1 -0
  218. package/utils/prompt-variables.d.ts +62 -0
  219. package/utils/prompt-variables.d.ts.map +1 -0
  220. package/utils/string-utils.d.ts +11 -0
  221. package/utils/string-utils.d.ts.map +1 -0
  222. package/utils/syntax-highlighting.d.ts +8 -0
  223. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -0,0 +1,31 @@
1
+ import { FC, ReactNode } from 'react';
2
+ import { TextRefinementResult } from '../../hooks/useTextRefinement';
3
+ import { TextRefinementLabels } from '../../models/text-refinement';
4
+ /** Props for `TextRefinementField`. */
5
+ export interface TextRefinementFieldProps {
6
+ /** When false, renders `children` alone — no label row, actions, or feedback. */
7
+ isEnabled: boolean;
8
+ /** Id of the labelled control; also the prefix for the label and error ids. */
9
+ fieldId: string;
10
+ /** Visible field label; names the group. */
11
+ label: string;
12
+ /** Class applied to the `<label>`, after the kit `Label` defaults. */
13
+ labelClassName?: string;
14
+ /** Marks the label as required. */
15
+ required?: boolean;
16
+ /** Action, status, and error copy. */
17
+ labels?: TextRefinementLabels;
18
+ /** The field's `useTextRefinement` result. */
19
+ refinement: TextRefinementResult;
20
+ /** Disables both actions. */
21
+ disabled: boolean;
22
+ /** Class applied to the status message and the error message. */
23
+ feedbackClassName?: string;
24
+ /** Class applied to the error message, after `feedbackClassName`. */
25
+ errorClassName?: string;
26
+ /** The refinable control, whose id must equal `fieldId`. */
27
+ children: ReactNode;
28
+ }
29
+ /** Label row with Refine/Undo actions and live feedback around one refinable field. */
30
+ export declare const TextRefinementField: FC<TextRefinementFieldProps>;
31
+ //# sourceMappingURL=TextRefinementField.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TextRefinementField.d.ts","sourceRoot":"","sources":["../../../src/components/TextRefinementField/TextRefinementField.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAU,KAAK,EAAE,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAGzE,uCAAuC;AACvC,MAAM,WAAW,wBAAwB;IACvC,iFAAiF;IACjF,SAAS,EAAE,OAAO,CAAC;IACnB,+EAA+E;IAC/E,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,8CAA8C;IAC9C,UAAU,EAAE,oBAAoB,CAAC;IACjC,6BAA6B;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qEAAqE;IACrE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,4DAA4D;IAC5D,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,uFAAuF;AACvF,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAsG5D,CAAC"}
@@ -0,0 +1,9 @@
1
+ /** The viewport width (inclusive) where the desktop presentation begins. */
2
+ export declare const DESKTOP_BREAKPOINT_PX = 1280;
3
+ /** The largest viewport width that still renders the mobile/tablet presentation. */
4
+ export declare const MOBILE_MAX_WIDTH_PX: number;
5
+ /** `matchMedia` query matching the desktop band (1280px and wider). */
6
+ export declare const DESKTOP_MEDIA_QUERY = "(min-width: 1280px)";
7
+ /** `matchMedia` query matching the mobile/tablet band (up to 1279px). */
8
+ export declare const MOBILE_MEDIA_QUERY = "(max-width: 1279px)";
9
+ //# sourceMappingURL=breakpoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breakpoint.d.ts","sourceRoot":"","sources":["../../src/constants/breakpoint.ts"],"names":[],"mappings":"AAYA,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,oFAAoF;AACpF,eAAO,MAAM,mBAAmB,QAA4B,CAAC;AAE7D,uEAAuE;AACvE,eAAO,MAAM,mBAAmB,wBAA4C,CAAC;AAE7E,yEAAyE;AACzE,eAAO,MAAM,kBAAkB,wBAA0C,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Reserved folder name used to mark a hidden storage folder. */
2
+ export declare const HIDDEN_FILE = ".dial_folder";
3
+ /** DIAL Core bucket that holds published (organization-wide) resources, readable by every user. */
4
+ export declare const PUBLIC_BUCKET = "public";
5
+ //# sourceMappingURL=dial.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dial.d.ts","sourceRoot":"","sources":["../../src/constants/dial.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,eAAO,MAAM,WAAW,iBAAiB,CAAC;AAE1C,mGAAmG;AACnG,eAAO,MAAM,aAAa,WAAW,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { CatalogEntityType } from '../types/entity-type';
2
+ /** Text color per entity type — used for the type label, featured chip, and drop shadow. */
3
+ export declare const ENTITY_TYPE_COLOR: Record<CatalogEntityType, string>;
4
+ /** Background color per entity type — used for the featured chip surface. */
5
+ export declare const ENTITY_TYPE_BG_COLOR: Record<CatalogEntityType, string>;
6
+ //# sourceMappingURL=entity-colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-colors.d.ts","sourceRoot":"","sources":["../../src/constants/entity-colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,4FAA4F;AAC5F,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAM/D,CAAC;AAEF,6EAA6E;AAC7E,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAMlE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { DIAL_ICON_SIZE } from '@epam/ai-dial-ui-kit';
2
+ /** Base props for medium-sized Tabler icons (MD size, icon stroke, `aria-hidden`). */
3
+ export declare const BASE_MD_ICON_PROPS: {
4
+ size: DIAL_ICON_SIZE;
5
+ stroke: number;
6
+ 'aria-hidden': boolean;
7
+ };
8
+ /** Base props for large Tabler icons (LG size, icon stroke, `aria-hidden`). */
9
+ export declare const BASE_LG_ICON_PROPS: {
10
+ size: DIAL_ICON_SIZE;
11
+ stroke: number;
12
+ 'aria-hidden': boolean;
13
+ };
14
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/constants/icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAwB,MAAM,sBAAsB,CAAC;AAE5E,sFAAsF;AACtF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME = "[&_.wmde-markdown>ol]:list-decimal [&_.wmde-markdown_ul]:list-disc [&_.wmde-markdown_ul_ul]:list-[circle] [&_.wmde-markdown_ul_ul_ul]:list-[square]";
2
+ //# sourceMappingURL=markdown-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown-editor.d.ts","sourceRoot":"","sources":["../../src/constants/markdown-editor.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,uCAAuC,wJACmG,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Maps common MIME types to canonical file extensions.
3
+ *
4
+ * The standard entries follow MDN's common media types table. Project-specific
5
+ * aliases are retained for MIME values produced by existing integrations.
6
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/MIME_types/Common_types
7
+ */
8
+ export declare const MIME_TYPE_EXT_MAP: Record<string, string>;
9
+ /** MIME type wildcard that matches any content type. */
10
+ export declare const MIME_TYPE_WILDCARD = "*/*";
11
+ /** MIME type prefix shared by all audio content types. */
12
+ export declare const MIME_TYPE_AUDIO_PREFIX = "audio/";
13
+ /**
14
+ * Maps non-canonical MIME type spellings to the canonical type they denote.
15
+ *
16
+ * Deployments declare their `inputAttachmentTypes` by hand, while DIAL Core
17
+ * stores the content type a browser or an upload client reported, so the two
18
+ * sides routinely disagree on which of several equivalent spellings to use for
19
+ * the same format (`text/json` vs `application/json`). Resolving both through
20
+ * this map before comparing them keeps a declared type matching the files it
21
+ * is meant to describe.
22
+ *
23
+ * Only aliases for one and the same format belong here — never a pair of
24
+ * distinct formats that happen to share an extension.
25
+ */
26
+ export declare const MIME_TYPE_ALIASES: Record<string, string>;
27
+ //# sourceMappingURL=mime-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mime-types.d.ts","sourceRoot":"","sources":["../../src/constants/mime-types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6GpD,CAAC;AAEF,wDAAwD;AACxD,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,0DAA0D;AAC1D,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAqEpD,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const CHAT_SHARED_CLASS: {
2
+ /** The bordered container of a fenced code block. */
3
+ readonly codeBlock: "dial-chat-shared-code-block";
4
+ /** The code block's sticky header, holding the language label and actions. */
5
+ readonly codeBlockHeader: "dial-chat-shared-code-block-header";
6
+ /** The bordered container of a Markdown table. */
7
+ readonly table: "dial-chat-shared-table";
8
+ /** The scrolling box around a Markdown table, which owns its overflow. */
9
+ readonly tableScroll: "dial-chat-shared-table-scroll";
10
+ /** The scrolling box around a display-math block. */
11
+ readonly mathBlock: "dial-chat-shared-math-block";
12
+ };
13
+ //# sourceMappingURL=public-class-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,iBAAiB;IAC5B,qDAAqD;;IAErD,8EAA8E;;IAE9E,kDAAkD;;IAElD,0EAA0E;;IAE1E,qDAAqD;;CAE7C,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const RESIZABLE_TEXTAREA_CLASS_NAME = "max-h-[50vh]";
2
+ export declare const RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE = "--resizable-field-max-height";
3
+ export declare const MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME = "[&_.w-md-editor:not(.w-md-editor-fullscreen)]:max-h-[var(--resizable-field-max-height,70vh)]";
4
+ export declare const MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME = "[&_.w-md-editor:not(.w-md-editor-fullscreen)]:!h-[var(--resizable-field-max-height,70vh)]";
5
+ //# sourceMappingURL=resizable-fields.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resizable-fields.d.ts","sourceRoot":"","sources":["../../src/constants/resizable-fields.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,6BAA6B,iBAAiB,CAAC;AAQ5D,eAAO,MAAM,uCAAuC,iCACpB,CAAC;AAkBjC,eAAO,MAAM,qCAAqC,iGAC8C,CAAC;AAWjG,eAAO,MAAM,sCAAsC,8FAC0C,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const SELECT_LIST_MAX_HEIGHT_PX = 344;
2
+ /** Tailwind form of {@link SELECT_LIST_MAX_HEIGHT_PX}, for the options scroll box. */
3
+ export declare const SELECT_LIST_MAX_HEIGHT_CLASS_NAME = "max-h-[344px]";
4
+ //# sourceMappingURL=select-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select-list.d.ts","sourceRoot":"","sources":["../../src/constants/select-list.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAE7C,sFAAsF;AACtF,eAAO,MAAM,iCAAiC,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const TAG_INPUT_TAG_CLASS_NAME = "bg-layer-sunken";
2
+ //# sourceMappingURL=tag-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-input.d.ts","sourceRoot":"","sources":["../../src/constants/tag-input.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,wBAAwB,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ /** Optional file-manager UI. Import this entry from a lazy feature boundary. */
2
+ export * from '../file-manager/DialFileManagerShell/DialFileManagerShell';
3
+ export * from '../file-manager/FileManagerAttachModal/FileManagerAttachModal';
4
+ export * from '../file-manager/upload-queue';
5
+ //# sourceMappingURL=file-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager.d.ts","sourceRoot":"","sources":["../../src/entry-points/file-manager.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Markdown/KaTeX/syntax-highlighting UI. Import this entry when rendering
3
+ * Markdown content — it is the only entry point that resolves the
4
+ * `react-markdown`/`remark-*`/`rehype-*`/`katex`/`react-syntax-highlighter`
5
+ * peer stack.
6
+ */
7
+ export * from '../components/MarkdownRenderer/MarkdownRenderer';
8
+ export * from '../components/MarkdownRenderer/MDMessageViewer';
9
+ export * from '../components/MarkdownRenderer/PlainTextRenderer';
10
+ export * from '../components/MarkdownRenderer/markdown-class-names';
11
+ export * from '../components/MarkdownRenderer/CodeBlock/CodeBlock';
12
+ export { restrainedSyntaxTheme } from '../components/MarkdownRenderer/CodeBlock/syntax-theme';
13
+ export * from '../components/MarkdownRenderer/Table/MarkdownTable';
14
+ export * from '../components/MarkdownWithPlaceholders/MarkdownWithPlaceholders';
15
+ export * from '../hooks/useCodeCopy';
16
+ export * from '../hooks/useCollapsedText';
17
+ export { CHAT_SHARED_CLASS } from '../constants/public-class-names';
18
+ //# sourceMappingURL=markdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/entry-points/markdown.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,cAAc,iDAAiD,CAAC;AAChE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,oDAAoD,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uDAAuD,CAAC;AAC9F,cAAc,oDAAoD,CAAC;AACnE,cAAc,iEAAiE,CAAC;AAChF,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,52 @@
1
+ import { DialFileManagerTabs, 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 { FileManagerController } from '../file-manager-controller';
5
+ import { DialFileManagerActionProfile, DialFileManagerVariant } from '../file-manager-variant';
6
+ import { DialFileManagerShellLabels } from '../labels';
7
+ /** Props for the shared file-manager shell component. */
8
+ export interface DialFileManagerShellProps {
9
+ /** Structural view contract containing all controller state and callbacks. */
10
+ controller: FileManagerController;
11
+ /** Pre-translated labels the shell renders as-is. */
12
+ labels: DialFileManagerShellLabels;
13
+ /** Currently active tab. */
14
+ activeTab: DialFileManagerTabs;
15
+ /** Filter chips scoping the tree and the grid, rendered above the folder tree. */
16
+ tabs: FileTreeOptions['tabs'];
17
+ /** Called when the user switches tabs. */
18
+ onTabChange: (tab: DialFileManagerTabs) => void;
19
+ /** Set of currently selected file/folder virtual paths. */
20
+ selectedPaths: Set<string>;
21
+ /** Called when the selection changes. */
22
+ onSelectedPathsChange: (paths: Set<string>) => void;
23
+ /** Host driving this shell instance — gates the upload-archive toolbar entry (standalone-only). */
24
+ variant: DialFileManagerVariant;
25
+ /** Action-set gate for the upload-archive toolbar entry (Full-only). */
26
+ actionProfile: DialFileManagerActionProfile;
27
+ /** Whether to auto-select items after upload completes. Defaults to `false`. */
28
+ autoSelectUploadedItems?: boolean;
29
+ /** MIME type filters for selectable files. */
30
+ allowedFileTypes?: DialFileAcceptType[];
31
+ /** Maximum file size in bytes for selectable files, and — reused as the ui-kit's own `maxFileSize` — the maximum size accepted for a newly-uploaded file. */
32
+ maxSelectableFileSize?: number;
33
+ /** 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`. */
34
+ oversizedUploadMessage?: string;
35
+ /** Custom row-selectability predicate, forwarded to the grid's row selection. */
36
+ isRowSelectable?: (node: {
37
+ data?: FileManagerSelectableNode | null;
38
+ }) => boolean;
39
+ /** Returns a tooltip for disabled rows, or undefined for enabled rows. */
40
+ getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
41
+ /** Tooltip shown on files with an unsupported type. */
42
+ unsupportedFileTypeTooltip?: string;
43
+ }
44
+ /**
45
+ * Renders the DialFileManager grid/tree/toolbar and its operation overlays
46
+ * from a `FileManagerController`. Does not own popup chrome, an attach footer,
47
+ * or any attach-only selection constraints — those are host-owned.
48
+ */
49
+ export declare const DialFileManagerShell: FC<DialFileManagerShellProps>;
50
+ declare const _default: import('react').NamedExoticComponent<DialFileManagerShellProps>;
51
+ export default _default;
52
+ //# sourceMappingURL=DialFileManagerShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAkDnB,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,6JAA6J;IAC7J,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA+gB9D,CAAC;;AAEF,wBAA0C"}
@@ -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,yBAA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AAK,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"}
@@ -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"}
@@ -0,0 +1,121 @@
1
+ import { DialCopiedItem, DialDeletedItem, DialFile, DialFileManagerActions, DialFileManagerTabs, DialUploadFileItem, FileManagerColumnKey } from '@epam/ai-dial-react-file-manager';
2
+ import { FileUploadValidationResult } from './file-upload-validation';
3
+ import { FileUploadBatchState } from './upload-batch';
4
+ /**
5
+ * Structural view contract consumed by `DialFileManagerShell`. Contains exactly
6
+ * the fields of `UseDialFileManagerResult` that the shell reads, with the same
7
+ * names and types. Tabs, active tab, selection, destination-picker options, and
8
+ * host integration callbacks are explicit component props outside this contract.
9
+ *
10
+ * A `UseDialFileManagerResult` value is structurally assignable to this
11
+ * interface without a cast or adapter object.
12
+ */
13
+ export interface FileManagerController {
14
+ /** Hierarchical items for DialFileManager's `items` prop. */
15
+ items: DialFile[];
16
+ /** True while the current folder is loading. */
17
+ isLoading: boolean;
18
+ /** Non-null when the last fetch failed. */
19
+ error: string | null;
20
+ /** Current path in DialFileManager format (e.g. `"/My files"`, `"/My files/reports/"`). */
21
+ path: string;
22
+ /** Pass directly to DialFileManager's `onPathChange`. */
23
+ onPathChange: (nextPath?: string) => void;
24
+ /** Re-runs the fetch for the current `folderPath`. */
25
+ retry: () => void;
26
+ /** Search: called by DialFileManager when the user types in the search box. */
27
+ onSearchFiles: (folder: string, query: string) => void;
28
+ /** Search: true while a search request is in flight. */
29
+ isSearching: boolean;
30
+ /** Search: flat, unfiltered recursive listing of the current folder, or null when search is not active. */
31
+ searchResults: DialFile[] | null;
32
+ /** Search: clears results and exits search mode. */
33
+ clearSearchResults: () => void;
34
+ /** Tree: controlled set of expanded folder virtual paths. */
35
+ expandedPaths: Set<string>;
36
+ /** Tree: virtual paths whose children are already in the cache (derived). */
37
+ loadedPaths: Set<string>;
38
+ /** Tree: called by DialFileManager when a folder is expanded/collapsed. */
39
+ onExpandedPathsChange: (paths: Set<string>) => void;
40
+ /** Destination folder popup: preloads the browsed folder without changing the outer grid path. */
41
+ onFolderPopupPathChange: (nextPath?: string) => void;
42
+ /** Destination folder popup: normalized virtual paths currently being preloaded. */
43
+ folderPopupLoadingPaths: Set<string>;
44
+ /** Upload: start a new batch. */
45
+ onUploadFiles: (files: DialUploadFileItem[], destinationFolder: string) => void;
46
+ /** Upload: extracts and uploads a ZIP archive's entries to the destination folder. */
47
+ onUploadArchive: (file: File, name: string, destinationFolder: string) => void;
48
+ /** Upload: validate file names before upload (called by DialFileManager). */
49
+ onValidateUpload: (files: DialUploadFileItem[], existingFiles: DialFile[], destinationFolder: string) => Promise<FileUploadValidationResult>;
50
+ /** Upload: current batch state (null when idle). */
51
+ uploadBatchState: FileUploadBatchState | null;
52
+ /** Upload: abort all in-flight and queued uploads. */
53
+ cancelUpload: () => void;
54
+ /** Upload: abort one queued or in-flight upload by its entry id. */
55
+ cancelUploadFile: (id: string) => void;
56
+ /** Upload: empty the upload queue. */
57
+ clearUploadBatch: () => void;
58
+ /** Folder creation: called when user confirms a new folder name. */
59
+ onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
60
+ /** Folder creation: inline synchronous validation (returns error message or null). */
61
+ onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
62
+ /** Download: called when user triggers download on one or more items. */
63
+ onDownloadFiles: (dialFiles: DialFile[]) => void;
64
+ /** True while a download is in progress. */
65
+ isDownloading: boolean;
66
+ /** Delete: called when user confirms deletion of one or more items. */
67
+ onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
68
+ /** True while a delete request is in flight. */
69
+ isDeleting: boolean;
70
+ /** Rename: inline validation — returns error string or null. */
71
+ onRenameValidate: (value: string, item: DialFile) => string | null;
72
+ /** Rename: called when user confirms an inline rename. Also dispatches cross-folder move (see D3). */
73
+ onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
74
+ /** True while a rename request is in flight. */
75
+ isRenaming: boolean;
76
+ /** Copy: called when user confirms a copy-paste. */
77
+ onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
78
+ /** True while a copy request is in flight. */
79
+ isCopying: boolean;
80
+ /** True while the cross-folder-move branch of onMoveToFiles is in flight. */
81
+ isMoving: boolean;
82
+ /** Aborts whichever of copy/move is currently in flight. */
83
+ cancelCopyMove: () => void;
84
+ /** True when the current folder grants WRITE (upload + new folder). */
85
+ uploadEnabled: boolean;
86
+ /** True when Upload/New must be disabled. */
87
+ isNewButtonDisabled: boolean;
88
+ /** Tooltip for disabled New/Upload when `isNewButtonDisabled` is true. */
89
+ disabledNewButtonTooltip: string;
90
+ /** Columns to show in the grid — tab-dependent. */
91
+ visibleColumns: FileManagerColumnKey[];
92
+ /** BCP-47 locale string for date formatting, sourced from i18n.language. */
93
+ dateLocale: string;
94
+ /** Fixed date format options for the UpdatedAt column. */
95
+ dateOptions: Intl.DateTimeFormatOptions;
96
+ /** Action labels for grid/tree/bulk — Delete present only on my_files tab. */
97
+ actionLabels: Partial<Record<DialFileManagerActions, string>>;
98
+ /** Root-level shared item paths, populated only on the Shared tab. */
99
+ sharedWithMeIds: string[] | undefined;
100
+ /** Share: paths the user has shared with others, populated only on my_files tab. */
101
+ sharedByMePaths: Set<string>;
102
+ /** Unshare: called when user removes a shared-with-me item (Shared tab only). */
103
+ onUnshareFiles: (files: DialFile[]) => void;
104
+ /** True while an unshare request is in flight. */
105
+ isUnsharing: boolean;
106
+ /** Remove access: called when user revokes access to an owned shared item (my_files tab only). */
107
+ onRemoveFilesAccess: (files: DialFile[]) => void;
108
+ /** True while a remove-access request is in flight. */
109
+ isRemovingAccess: boolean;
110
+ /** Metadata: populated once onGetInfo resolves; passed to fileMetadataPopupOptions.fileMetadata. */
111
+ fileMetadata: DialFile | undefined;
112
+ /** True while a metadata request is in flight. */
113
+ isFileMetadataLoading: boolean;
114
+ /** Metadata: called by DialFileManager.onGetInfo to fetch and display a file's details. */
115
+ onGetInfo: (file: DialFile) => void;
116
+ /** Metadata: resets fileMetadata/isFileMetadataLoading; passed to fileMetadataPopupOptions.clearMetadata. */
117
+ clearMetadata: () => void;
118
+ /** Source tab of the browsed folder, never `All`; omitted by single-source controllers. */
119
+ sectionTab?: DialFileManagerTabs;
120
+ }
121
+ //# sourceMappingURL=file-manager-controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager-controller.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,2FAA2F;IAC3F,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,YAAY,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,sDAAsD;IACtD,KAAK,EAAE,MAAM,IAAI,CAAC;IAElB,+EAA+E;IAC/E,aAAa,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,wDAAwD;IACxD,WAAW,EAAE,OAAO,CAAC;IACrB,2GAA2G;IAC3G,aAAa,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC;IACjC,oDAAoD;IACpD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAE/B,6DAA6D;IAC7D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,6EAA6E;IAC7E,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,2EAA2E;IAC3E,qBAAqB,EAAE,CAAC,KA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F,cAAc,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IAC5C,kDAAkD;IAClD,WAAW,EAAE,OAAO,CAAC;IACrB,kGAAkG;IAClG,mBAAmB,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,IAAI,CAAC;IACjD,uDAAuD;IACvD,gBAAgB,EAAE,OAAO,CAAC;IAE1B,oGAAoG;IACpG,YAAY,EAAE,QAAQ,GAAG,SAAS,CAAC;IACnC,kDAAkD;IAClD,qBAAqB,EAAE,OAAO,CAAC;IAC/B,2FAA2F;IAC3F,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6GAA6G;IAC7G,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,2FAA2F;IAC3F,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Identifies which host is driving `useDialFileManager` / `DialFileManagerShell`.
3
+ * `FolderPicker` is a reserved value with no implemented UI yet (#7503+).
4
+ */
5
+ export declare enum DialFileManagerVariant {
6
+ Attach = "attach",
7
+ Standalone = "standalone",
8
+ FolderPicker = "folder-picker"
9
+ }
10
+ /**
11
+ * Gates which actions `useDialFileManager` exposes per tab. `Attach` excludes
12
+ * Copy/Move/Duplicate (it is a file picker, not a management surface); `Browse`
13
+ * exposes the full #7503 action set. `Full` is reserved for
14
+ * `DialFileManagerVariant.FolderPicker` (#7503+).
15
+ */
16
+ export declare enum DialFileManagerActionProfile {
17
+ Attach = "attach",
18
+ Browse = "browse",
19
+ Full = "full"
20
+ }
21
+ //# sourceMappingURL=file-manager-variant.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-manager-variant.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-variant.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,sBAAsB;IAChC,MAAM,WAAW;IACjB,UAAU,eAAe;IACzB,YAAY,kBAAkB;CAC/B;AAED;;;;;GAKG;AACH,oBAAY,4BAA4B;IACtC,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;CACd"}
@@ -0,0 +1,8 @@
1
+ /** Result of validating files before upload. */
2
+ export interface FileUploadValidationResult {
3
+ /** Whether the files passed validation. */
4
+ valid: boolean;
5
+ /** Human-readable validation error message when `valid` is false. */
6
+ message?: string;
7
+ }
8
+ //# sourceMappingURL=file-upload-validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload-validation.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-upload-validation.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAChD,MAAM,WAAW,0BAA0B;IACzC,2CAA2C;IAC3C,KAAK,EAAE,OAAO,CAAC;IACf,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,10 @@
1
+ export * from './attach-result';
2
+ export * from './file-manager-controller';
3
+ export * from './file-manager-variant';
4
+ export * from './file-upload-validation';
5
+ export * from './labels';
6
+ export * from './path';
7
+ export * from './upload-batch';
8
+ export * from './useGridEditingScroll/useGridEditingScroll';
9
+ export * from './OperationLoaderModal/OperationLoaderModal';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/file-manager/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC"}