@epam/ai-dial-chat-shared 1.2.0-rc.6 → 1.2.0-rc.8

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 (221) 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/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +25 -0
  56. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  57. package/components/PanelEmptyState/PanelEmptyState.d.ts +22 -0
  58. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -0
  59. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  60. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  61. package/components/TextRefinementField/TextRefinementField.d.ts +31 -0
  62. package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -0
  63. package/constants/breakpoint.d.ts +9 -0
  64. package/constants/breakpoint.d.ts.map +1 -0
  65. package/constants/dial.d.ts +5 -0
  66. package/constants/dial.d.ts.map +1 -0
  67. package/constants/entity-colors.d.ts +6 -0
  68. package/constants/entity-colors.d.ts.map +1 -0
  69. package/constants/icon.d.ts +14 -0
  70. package/constants/icon.d.ts.map +1 -0
  71. package/constants/markdown-editor.d.ts +2 -0
  72. package/constants/markdown-editor.d.ts.map +1 -0
  73. package/constants/mime-types.d.ts +27 -0
  74. package/constants/mime-types.d.ts.map +1 -0
  75. package/constants/public-class-names.d.ts +13 -0
  76. package/constants/public-class-names.d.ts.map +1 -0
  77. package/constants/resizable-fields.d.ts +5 -0
  78. package/constants/resizable-fields.d.ts.map +1 -0
  79. package/constants/select-list.d.ts +4 -0
  80. package/constants/select-list.d.ts.map +1 -0
  81. package/constants/tag-input.d.ts +2 -0
  82. package/constants/tag-input.d.ts.map +1 -0
  83. package/entry-points/file-manager.d.ts +5 -0
  84. package/entry-points/file-manager.d.ts.map +1 -0
  85. package/entry-points/markdown.d.ts +18 -0
  86. package/entry-points/markdown.d.ts.map +1 -0
  87. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +52 -0
  88. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  89. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  90. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  91. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  92. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  93. package/file-manager/attach-result.d.ts +9 -0
  94. package/file-manager/attach-result.d.ts.map +1 -0
  95. package/file-manager/file-manager-controller.d.ts +121 -0
  96. package/file-manager/file-manager-controller.d.ts.map +1 -0
  97. package/file-manager/file-manager-variant.d.ts +21 -0
  98. package/file-manager/file-manager-variant.d.ts.map +1 -0
  99. package/file-manager/file-upload-validation.d.ts +8 -0
  100. package/file-manager/file-upload-validation.d.ts.map +1 -0
  101. package/file-manager/index.d.ts +10 -0
  102. package/file-manager/index.d.ts.map +1 -0
  103. package/file-manager/labels.d.ts +156 -0
  104. package/file-manager/labels.d.ts.map +1 -0
  105. package/file-manager/path.d.ts +12 -0
  106. package/file-manager/path.d.ts.map +1 -0
  107. package/file-manager/upload-batch.d.ts +29 -0
  108. package/file-manager/upload-batch.d.ts.map +1 -0
  109. package/file-manager/upload-queue.d.ts +5 -0
  110. package/file-manager/upload-queue.d.ts.map +1 -0
  111. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  112. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  113. package/file-manager.d.ts +2 -506
  114. package/hooks/useAvailableHeightCap.d.ts +30 -0
  115. package/hooks/useAvailableHeightCap.d.ts.map +1 -0
  116. package/hooks/useCodeCopy.d.ts +6 -0
  117. package/hooks/useCodeCopy.d.ts.map +1 -0
  118. package/hooks/useCollapsedText.d.ts +27 -0
  119. package/hooks/useCollapsedText.d.ts.map +1 -0
  120. package/hooks/useHorizontalOverflow.d.ts +21 -0
  121. package/hooks/useHorizontalOverflow.d.ts.map +1 -0
  122. package/hooks/useIsMobile.d.ts +3 -0
  123. package/hooks/useIsMobile.d.ts.map +1 -0
  124. package/hooks/useStreamedMarkdownContent.d.ts +3 -0
  125. package/hooks/useStreamedMarkdownContent.d.ts.map +1 -0
  126. package/hooks/useTextRefinement.d.ts +44 -0
  127. package/hooks/useTextRefinement.d.ts.map +1 -0
  128. package/hooks/useUnsavedChangesGuard.d.ts +14 -0
  129. package/hooks/useUnsavedChangesGuard.d.ts.map +1 -0
  130. package/index.d.ts +77 -3167
  131. package/index.d.ts.map +1 -0
  132. package/markdown.d.ts +2 -465
  133. package/models/annotation.d.ts +143 -0
  134. package/models/annotation.d.ts.map +1 -0
  135. package/models/application-visualizer.d.ts +67 -0
  136. package/models/application-visualizer.d.ts.map +1 -0
  137. package/models/auth.d.ts +26 -0
  138. package/models/auth.d.ts.map +1 -0
  139. package/models/chat.d.ts +407 -0
  140. package/models/chat.d.ts.map +1 -0
  141. package/models/conversation-classification.d.ts +9 -0
  142. package/models/conversation-classification.d.ts.map +1 -0
  143. package/models/conversation-transfer.d.ts +96 -0
  144. package/models/conversation-transfer.d.ts.map +1 -0
  145. package/models/custom-visualizer.d.ts +61 -0
  146. package/models/custom-visualizer.d.ts.map +1 -0
  147. package/models/deployment-configuration.d.ts +55 -0
  148. package/models/deployment-configuration.d.ts.map +1 -0
  149. package/models/deployment-features.d.ts +17 -0
  150. package/models/deployment-features.d.ts.map +1 -0
  151. package/models/deployment.d.ts +31 -0
  152. package/models/deployment.d.ts.map +1 -0
  153. package/models/dial-model.d.ts +19 -0
  154. package/models/dial-model.d.ts.map +1 -0
  155. package/models/entity.d.ts +15 -0
  156. package/models/entity.d.ts.map +1 -0
  157. package/models/import-export.d.ts +23 -0
  158. package/models/import-export.d.ts.map +1 -0
  159. package/models/locale.d.ts +19 -0
  160. package/models/locale.d.ts.map +1 -0
  161. package/models/text-refinement.d.ts +18 -0
  162. package/models/text-refinement.d.ts.map +1 -0
  163. package/models/theme.d.ts +36 -0
  164. package/models/theme.d.ts.map +1 -0
  165. package/models/tool-menu-item.d.ts +13 -0
  166. package/models/tool-menu-item.d.ts.map +1 -0
  167. package/package.json +2 -2
  168. package/types/attachment.d.ts +25 -0
  169. package/types/attachment.d.ts.map +1 -0
  170. package/types/code-editor.d.ts +8 -0
  171. package/types/code-editor.d.ts.map +1 -0
  172. package/types/entity-type.d.ts +10 -0
  173. package/types/entity-type.d.ts.map +1 -0
  174. package/types/file-manager-node.d.ts +17 -0
  175. package/types/file-manager-node.d.ts.map +1 -0
  176. package/types/mime-type.d.ts +59 -0
  177. package/types/mime-type.d.ts.map +1 -0
  178. package/utils/annotation.d.ts +29 -0
  179. package/utils/annotation.d.ts.map +1 -0
  180. package/utils/avatar-color.d.ts +10 -0
  181. package/utils/avatar-color.d.ts.map +1 -0
  182. package/utils/build-css-vars.d.ts +4 -0
  183. package/utils/build-css-vars.d.ts.map +1 -0
  184. package/utils/copy-to-clipboard.d.ts +18 -0
  185. package/utils/copy-to-clipboard.d.ts.map +1 -0
  186. package/utils/entity-field-limits.d.ts +11 -0
  187. package/utils/entity-field-limits.d.ts.map +1 -0
  188. package/utils/entity-type.d.ts +5 -0
  189. package/utils/entity-type.d.ts.map +1 -0
  190. package/utils/file-download.d.ts +21 -0
  191. package/utils/file-download.d.ts.map +1 -0
  192. package/utils/format-file-size.d.ts +3 -0
  193. package/utils/format-file-size.d.ts.map +1 -0
  194. package/utils/format-last-used.d.ts +3 -0
  195. package/utils/format-last-used.d.ts.map +1 -0
  196. package/utils/format-price.d.ts +7 -0
  197. package/utils/format-price.d.ts.map +1 -0
  198. package/utils/generate-uuid.d.ts +3 -0
  199. package/utils/generate-uuid.d.ts.map +1 -0
  200. package/utils/initials.d.ts +3 -0
  201. package/utils/initials.d.ts.map +1 -0
  202. package/utils/is-audio-transcription-supported.d.ts +3 -0
  203. package/utils/is-audio-transcription-supported.d.ts.map +1 -0
  204. package/utils/is-skill-selection-unsupported.d.ts +3 -0
  205. package/utils/is-skill-selection-unsupported.d.ts.map +1 -0
  206. package/utils/latex.d.ts +21 -0
  207. package/utils/latex.d.ts.map +1 -0
  208. package/utils/merge-class.d.ts +4 -0
  209. package/utils/merge-class.d.ts.map +1 -0
  210. package/utils/message-attachment-to-display.d.ts +22 -0
  211. package/utils/message-attachment-to-display.d.ts.map +1 -0
  212. package/utils/message.d.ts +4 -0
  213. package/utils/message.d.ts.map +1 -0
  214. package/utils/mime-type.d.ts +22 -0
  215. package/utils/mime-type.d.ts.map +1 -0
  216. package/utils/prompt-variables.d.ts +62 -0
  217. package/utils/prompt-variables.d.ts.map +1 -0
  218. package/utils/string-utils.d.ts +11 -0
  219. package/utils/string-utils.d.ts.map +1 -0
  220. package/utils/syntax-highlighting.d.ts +8 -0
  221. package/utils/syntax-highlighting.d.ts.map +1 -0
@@ -0,0 +1,156 @@
1
+ import { DialFile, DialFileManager, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
2
+ import { TransferQueueLabels } from '@epam/ai-dial-ui-kit';
3
+ import { ComponentProps, ReactNode } from 'react';
4
+ type DialFileManagerComponentProps = ComponentProps<typeof DialFileManager>;
5
+ /** Options for the conflict-resolution popup shown during copy/move operations. */
6
+ export type ConflictResolutionPopupOptions = NonNullable<DialFileManagerComponentProps['conflictResolutionPopupOptions']>;
7
+ /** Validation messages shown during inline rename editing. */
8
+ export type RenameValidationMessages = NonNullable<DialFileManagerComponentProps['renameValidationMessages']>;
9
+ /** Configuration for the destination-folder picker popup. */
10
+ export type DialFileManagerDestinationFolderPopupOptions = NonNullable<DialFileManagerComponentProps['destinationFolderPopupOptions']>;
11
+ /** Title and description pair for an empty-state display. */
12
+ export interface EmptyStateCopy {
13
+ /** Primary empty-state heading. */
14
+ title: string;
15
+ /** Secondary empty-state description text. */
16
+ description: string;
17
+ }
18
+ /**
19
+ * Pre-translated strings and resolved renderers the shell renders as-is.
20
+ * The shell never calls `useTranslation` — every host (the attach modal
21
+ * today; a future standalone page) resolves these via its own i18n.
22
+ */
23
+ export interface DialFileManagerShellLabels {
24
+ /** Error message shown when the current folder listing fails. */
25
+ errorMessage: string;
26
+ /** Label for the retry button shown alongside the error message. */
27
+ retryLabel: string;
28
+ /** Label for the hidden-files toggle in the toolbar. */
29
+ hiddenFilesLabel: string;
30
+ /** Label shown when hidden files are currently visible. */
31
+ showHiddenFilesLabel: string;
32
+ /** Label shown when hidden files are currently hidden. */
33
+ hideHiddenFilesLabel: string;
34
+ /** Returns the text shown after the selection-count badge; the file manager renders the count itself, so omit it (e.g. "items selected"). */
35
+ getSelectionLabel: (count: number) => string;
36
+ /** Label for the "Upload files" action in the New menu. */
37
+ uploadFilesLabel: string;
38
+ /** Label for the "Upload archive" action in the New menu. */
39
+ uploadArchiveAction: string;
40
+ /** Label for the "New folder" action in the New menu. */
41
+ newFolderLabel: string;
42
+ /** Label for the Download action. */
43
+ downloadLabel: string;
44
+ /** Overlay label shown while a download is in progress. */
45
+ downloadingLabel: string;
46
+ /** Label for the Delete action. */
47
+ deleteLabel: string;
48
+ /** Overlay label shown while a delete operation is in progress. */
49
+ deletingLabel: string;
50
+ /** Label for the Rename action. */
51
+ renameLabel: string;
52
+ /** Overlay label shown while a rename operation is in progress. */
53
+ renamingLabel: string;
54
+ /** Label for the Copy action. */
55
+ copyLabel: string;
56
+ /** Label for the Move action. */
57
+ moveLabel: string;
58
+ /** Label for the Duplicate action. */
59
+ duplicateLabel: string;
60
+ /** Label for the "Add folder" button in the destination picker. */
61
+ addFolderLabel: string;
62
+ /** Label for the hidden-files toggle in the destination-folder picker. */
63
+ hiddenFilesSwitcherLabel: string;
64
+ /** Returns the header for the copy destination popup. */
65
+ getCopyHeader: (count: number, name?: string) => string;
66
+ /** Returns the header for the move destination popup. */
67
+ getMoveHeader: (count: number, name?: string) => string;
68
+ /** Tooltip shown on the disabled source folder in the destination picker. */
69
+ moveSourceDisabledTooltip: string;
70
+ /** Tooltip shown when a destination folder is still loading. */
71
+ folderPickerLoadingTooltip: string;
72
+ /** Empty-state title in the destination-folder picker. */
73
+ folderPickerEmptyStateTitle: string;
74
+ /** Empty-state description in the destination-folder picker. */
75
+ folderPickerEmptyStateDescription: string;
76
+ /** Overlay text shown during a copy operation. */
77
+ copyingLabel: string;
78
+ /** Overlay text shown during a move operation. */
79
+ movingLabel: string;
80
+ /** Title for the copy operation loader modal. */
81
+ operationLoaderCopyTitle: string;
82
+ /** Title for the move operation loader modal. */
83
+ operationLoaderMoveTitle: string;
84
+ /** Cancel-button label in the operation loader modal. */
85
+ operationLoaderCancelLabel: string;
86
+ /** Returns the delete confirmation dialog title for the given item names and items; the items carry `nodeType`, so a folder and a file can be titled differently. */
87
+ deleteConfirmTitle: (names: string[], items: DialFile[]) => ReactNode;
88
+ /** Returns the delete confirmation dialog body for the given item names. */
89
+ deleteConfirmBody: (names: string[]) => ReactNode;
90
+ /** Confirm-button label in the delete confirmation dialog. */
91
+ deleteConfirmLabel: string;
92
+ /** Cancel-button label in the delete confirmation dialog. */
93
+ deleteCancelLabel: string;
94
+ /** Accessible name of the delete confirmation dialog's close control. Unset falls back to the file manager's English default. */
95
+ deleteCloseLabel?: string;
96
+ /** Returns the upload queue heading for the number of files in it (e.g. "Uploading 5 files"). */
97
+ getUploadQueueTitle: (count: number) => string;
98
+ /** Translated strings for the upload `TransferQueue`; unset ones fall back to the kit's English defaults. */
99
+ uploadQueueLabels?: Partial<TransferQueueLabels>;
100
+ /** Empty-state title when a search yields no results. */
101
+ searchEmptyStateTitle: string;
102
+ /** Empty-state title for an empty subfolder. */
103
+ folderEmptyStateTitle: string;
104
+ /** Tooltip explaining which symbols are forbidden in file names. */
105
+ forbiddenSymbolsTooltip: string;
106
+ /** Per-tab empty-state title and description. */
107
+ emptyStateByTab: Record<DialFileManagerTabs, EmptyStateCopy>;
108
+ /** Per-tab tree header label. */
109
+ treeHeaderByTab: Record<DialFileManagerTabs, string>;
110
+ /** Search field placeholder per source tab of the browsed folder; a tab without an entry keeps the file manager's default. */
111
+ searchPlaceholderByTab?: Partial<Record<DialFileManagerTabs, string>>;
112
+ /** Messages for inline rename validation. */
113
+ renameValidationMessages: RenameValidationMessages;
114
+ /** Options for the conflict resolution popup. */
115
+ conflictResolutionPopupOptions: ConflictResolutionPopupOptions;
116
+ /** Label for the Unshare action. */
117
+ unshareLabel: string;
118
+ /** Overlay label shown while an unshare operation is in progress. */
119
+ unsharingLabel: string;
120
+ /** Label for the Remove Access action. */
121
+ removeAccessLabel: string;
122
+ /** Overlay label shown while a remove-access operation is in progress. */
123
+ removingAccessLabel: string;
124
+ /** Label for the Info action. */
125
+ infoLabel: string;
126
+ /** Header for the metadata popup. */
127
+ metadataHeader: string;
128
+ /** Label for the file name in the metadata popup. */
129
+ metadataNameLabel: string;
130
+ /** Label for the file path in the metadata popup. */
131
+ metadataPathLabel: string;
132
+ /** Label for the modified date in the metadata popup. */
133
+ metadataModifiedDateLabel: string;
134
+ /** Label for the file size in the metadata popup. */
135
+ metadataSizeLabel: string;
136
+ /** Label for the author in the metadata popup. */
137
+ metadataAuthorLabel: string;
138
+ }
139
+ /**
140
+ * Labels for `FileManagerAttachModal`. Extends the shell labels with
141
+ * attach-specific strings.
142
+ *
143
+ * Declared here rather than beside the component so a host can type its label
144
+ * object from this package's root entry without reaching the `./file-manager`
145
+ * entry, which is the one that pulls in the grid.
146
+ */
147
+ export interface FileManagerAttachModalLabels extends DialFileManagerShellLabels {
148
+ /** Title displayed in the Popup header. */
149
+ title: string;
150
+ /** Label for the primary Attach button. */
151
+ attachLabel: string;
152
+ /** Optional subtitle shown below the title (e.g. allowed types / size). Pass `null` to hide. */
153
+ headerDescription?: string | null;
154
+ }
155
+ export {};
156
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/file-manager/labels.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,eAA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D,yBAAyB,EAAE,MAAM,CAAC;IAClC,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,4BAA6B,SAAQ,0BAA0B;IAC9E,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
@@ -0,0 +1,12 @@
1
+ /** Returns true when any path segment starts with a dot (hidden file or folder). */
2
+ export declare const isHiddenPath: (path: string) => boolean;
3
+ /**
4
+ * Returns the parent folder of a path (virtual or API), always trailing-slashed.
5
+ *
6
+ * @example
7
+ * getParentFolderPath("reports/file.txt") // "reports/"
8
+ * getParentFolderPath("/My files/reports/") // "/My files/"
9
+ * getParentFolderPath("report.pdf") // ""
10
+ */
11
+ export declare const getParentFolderPath: (path: string) => string;
12
+ //# sourceMappingURL=path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/file-manager/path.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,KAAG,OACgB,CAAC;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,KAAG,MAIlD,CAAC"}
@@ -0,0 +1,29 @@
1
+ /** Lifecycle status of a single file within an upload batch. */
2
+ export declare enum FileUploadStatus {
3
+ Queued = "queued",
4
+ Uploading = "uploading",
5
+ Completed = "completed",
6
+ Failed = "failed",
7
+ Cancelled = "cancelled"
8
+ }
9
+ /** Progress state for a single file within an upload batch. */
10
+ export interface FileUploadEntry {
11
+ /** Unique identifier of the file in the batch. */
12
+ id: string;
13
+ /** Display name of the file. */
14
+ name: string;
15
+ /** Current upload lifecycle status. */
16
+ status: FileUploadStatus;
17
+ /** 0–100 while uploading when the transport reports byte progress. */
18
+ percent?: number;
19
+ }
20
+ /** State of the upload queue, as returned by `useDialFileUploadBatch`. */
21
+ export interface FileUploadBatchState {
22
+ /** Every file uploaded since the queue was last cleared, settled ones included. */
23
+ files: FileUploadEntry[];
24
+ /** Whether the upload queue should be visible. */
25
+ isOpen: boolean;
26
+ }
27
+ /** Returns whether any file in the batch is still queued or uploading. */
28
+ export declare const isUploadInProgress: (batchState: FileUploadBatchState | null) => boolean;
29
+ //# sourceMappingURL=upload-batch.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-batch.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-batch.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,MAAM,EAAE,gBAAgB,CAAC;IACzB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,0EAA0E;AAC1E,MAAM,WAAW,oBAAoB;IACnC,mFAAmF;IACnF,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,kDAAkD;IAClD,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,0EAA0E;AAC1E,eAAO,MAAM,kBAAkB,GAC7B,YAAY,oBAAoB,GAAG,IAAI,KACtC,OAKS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { TransferQueueItem } from '@epam/ai-dial-ui-kit';
2
+ import { FileUploadEntry } from './upload-batch';
3
+ /** Maps upload entries onto the UI kit's `TransferQueue` rows. */
4
+ export declare const toUploadQueueItems: (files: FileUploadEntry[]) => TransferQueueItem[];
5
+ //# sourceMappingURL=upload-queue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-queue.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,KAAK,eAAe,EAAoB,MAAM,gBAAgB,CAAC;AAexE,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,GAC7B,OAAO,eAAe,EAAE,KACvB,iBAAiB,EAMf,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { FileManagerGridRow } from '@epam/ai-dial-react-file-manager';
2
+ import { GridApi, IRowNode } from 'ag-grid-community';
3
+ /** Options accepted by `useGridEditingScroll`. */
4
+ export interface UseGridEditingScrollOptions {
5
+ /** Picks the row to scroll to among the rows newly added since the last `rowDataUpdated`. Defaults to the first row flagged `isTemporary`, or the first new row. */
6
+ resolveTargetNode?: (newNodes: IRowNode<FileManagerGridRow>[]) => IRowNode<FileManagerGridRow> | null;
7
+ }
8
+ /** Values returned by `useGridEditingScroll`. */
9
+ export interface UseGridEditingScrollResult {
10
+ /** Pass to `DialFileManager`'s `onGridApiChange` prop. */
11
+ handleGridApiChange: (api: GridApi<FileManagerGridRow>) => void;
12
+ /** Re-seeds the known-row-id set without scrolling — call on a data-source change such as a tab switch. */
13
+ reset: () => void;
14
+ }
15
+ /**
16
+ * `@epam/ai-dial-react-file-manager`'s `GridOptions` type does not forward raw AG Grid
17
+ * event callbacks (`onCellEditingStarted`/`onRowDataUpdated`), so this hook
18
+ * binds directly to the `GridApi` obtained via `DialFileManager`'s
19
+ * `onGridApiChange` prop and uses AG Grid's own `addEventListener` instead of
20
+ * a `gridOptions` fragment. Scrolls a newly inline-edited or newly-inserted
21
+ * row into view. `handleGridApiChange` takes the raw `GridApi` only to bind
22
+ * to `onGridApiChange` — the narrow AGENTS.md D9 exception for this hook —
23
+ * and never renders, themes, or otherwise exposes AG Grid beyond that one
24
+ * event-binding parameter.
25
+ */
26
+ export declare const useGridEditingScroll: ({ resolveTargetNode, }?: UseGridEditingScrollOptions) => UseGridEditingScrollResult;
27
+ //# sourceMappingURL=useGridEditingScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useGridEditingScroll.d.ts","sourceRoot":"","sources":["../../../src/file-manager/useGridEditingScroll/useGridEditingScroll.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,KAAK,EAEV,OAAO,EACP,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAmC3B,kDAAkD;AAClD,MAAM,WAAW,2BAA2B;IAC1C,oKAAoK;IACpK,iBAAiB,CAAC,EAAE,CAClB,QAAQ,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,KACrC,QAAQ,CAAC,kBAAkB,CAAC,GAAG,IAAI,CAAC;CAC1C;AAOD,iDAAiD;AACjD,MAAM,WAAW,0BAA0B;IACzC,0DAA0D;IAC1D,mBAAmB,EAAE,CAAC,GAAG,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAC;IAChE,2GAA2G;IAC3G,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,yBAElC,2BAAgC,KAAG,0BAiFrC,CAAC"}