@epam/ai-dial-chat-shared 1.1.0-dev.30 → 1.1.0-dev.307

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 (125) hide show
  1. package/components/CopyButton/CopyButton.d.ts +17 -0
  2. package/components/CopyButton/CopyButton.d.ts.map +1 -0
  3. package/components/DeploymentIcon/DeploymentIcon.d.ts +1 -10
  4. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +1 -1
  5. package/components/EntityHeader/EntityHeader.d.ts +34 -0
  6. package/components/EntityHeader/EntityHeader.d.ts.map +1 -0
  7. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +16 -0
  8. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +1 -0
  9. package/components/FeaturedChip/FeaturedChip.d.ts +14 -0
  10. package/components/FeaturedChip/FeaturedChip.d.ts.map +1 -0
  11. package/components/InitialsAvatar/InitialsAvatar.d.ts +3 -4
  12. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +1 -1
  13. package/components/ItemHeader/ItemHeader.d.ts +36 -0
  14. package/components/ItemHeader/ItemHeader.d.ts.map +1 -0
  15. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +10 -7
  16. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
  17. package/components/MarkdownRenderer/MDMessageViewer.d.ts +7 -0
  18. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +1 -1
  19. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +23 -12
  20. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +1 -1
  21. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +8 -5
  22. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
  23. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +1 -5
  24. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +1 -1
  25. package/components/MarkdownRenderer/markdown-class-names.d.ts +6 -0
  26. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +1 -1
  27. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +15 -0
  28. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +1 -0
  29. package/components/PanelEmptyState/PanelEmptyState.d.ts +4 -0
  30. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +1 -1
  31. package/components/ResourceSummary/ResourceSummary.d.ts +49 -0
  32. package/components/ResourceSummary/ResourceSummary.d.ts.map +1 -0
  33. package/constants/entity-colors.d.ts +6 -0
  34. package/constants/entity-colors.d.ts.map +1 -0
  35. package/constants/icon.d.ts +2 -0
  36. package/constants/icon.d.ts.map +1 -1
  37. package/constants/mime-types.d.ts +3 -6
  38. package/constants/mime-types.d.ts.map +1 -1
  39. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +49 -0
  40. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -0
  41. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +89 -0
  42. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +1 -0
  43. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +17 -0
  44. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +1 -0
  45. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +20 -0
  46. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +1 -0
  47. package/file-manager/attach-result.d.ts +9 -0
  48. package/file-manager/attach-result.d.ts.map +1 -0
  49. package/file-manager/file-manager-controller.d.ts +117 -0
  50. package/file-manager/file-manager-controller.d.ts.map +1 -0
  51. package/file-manager/file-manager-variant.d.ts +21 -0
  52. package/file-manager/file-manager-variant.d.ts.map +1 -0
  53. package/file-manager/file-upload-validation.d.ts +8 -0
  54. package/file-manager/file-upload-validation.d.ts.map +1 -0
  55. package/file-manager/index.d.ts +13 -0
  56. package/file-manager/index.d.ts.map +1 -0
  57. package/file-manager/labels.d.ts +137 -0
  58. package/file-manager/labels.d.ts.map +1 -0
  59. package/file-manager/path.d.ts +12 -0
  60. package/file-manager/path.d.ts.map +1 -0
  61. package/file-manager/upload-batch.d.ts +27 -0
  62. package/file-manager/upload-batch.d.ts.map +1 -0
  63. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +27 -0
  64. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +1 -0
  65. package/hooks/useCodeCopy.d.ts +1 -9
  66. package/hooks/useCodeCopy.d.ts.map +1 -1
  67. package/hooks/useCollapsedText.d.ts +3 -7
  68. package/hooks/useCollapsedText.d.ts.map +1 -1
  69. package/hooks/useTableScroll.d.ts +1 -0
  70. package/hooks/useTableScroll.d.ts.map +1 -1
  71. package/index.css +1 -1
  72. package/index.d.ts +20 -2
  73. package/index.d.ts.map +1 -1
  74. package/index.js +33126 -8198
  75. package/models/chat.d.ts +81 -38
  76. package/models/chat.d.ts.map +1 -1
  77. package/models/conversation-classification.d.ts +9 -0
  78. package/models/conversation-classification.d.ts.map +1 -0
  79. package/models/conversation-transfer.d.ts +28 -0
  80. package/models/conversation-transfer.d.ts.map +1 -0
  81. package/models/custom-visualizer.d.ts +61 -0
  82. package/models/custom-visualizer.d.ts.map +1 -0
  83. package/models/deployment-configuration.d.ts +2 -8
  84. package/models/deployment-configuration.d.ts.map +1 -1
  85. package/models/entity.d.ts +15 -0
  86. package/models/entity.d.ts.map +1 -0
  87. package/models/tool-menu-item.d.ts +13 -0
  88. package/models/tool-menu-item.d.ts.map +1 -0
  89. package/package.json +17 -5
  90. package/types/entity-type.d.ts +10 -0
  91. package/types/entity-type.d.ts.map +1 -0
  92. package/types/mime-type.d.ts +9 -9
  93. package/types/mime-type.d.ts.map +1 -1
  94. package/utils/avatar-color.d.ts +3 -6
  95. package/utils/avatar-color.d.ts.map +1 -1
  96. package/utils/build-css-vars.d.ts +1 -4
  97. package/utils/build-css-vars.d.ts.map +1 -1
  98. package/utils/copy-to-clipboard.d.ts +14 -11
  99. package/utils/copy-to-clipboard.d.ts.map +1 -1
  100. package/utils/file-download.d.ts +9 -0
  101. package/utils/file-download.d.ts.map +1 -1
  102. package/utils/format-last-used.d.ts +1 -6
  103. package/utils/format-last-used.d.ts.map +1 -1
  104. package/utils/format-price.d.ts +7 -0
  105. package/utils/format-price.d.ts.map +1 -0
  106. package/utils/generate-uuid.d.ts +3 -0
  107. package/utils/generate-uuid.d.ts.map +1 -0
  108. package/utils/initials.d.ts +1 -7
  109. package/utils/initials.d.ts.map +1 -1
  110. package/utils/latex.d.ts +11 -0
  111. package/utils/latex.d.ts.map +1 -0
  112. package/utils/message-attachment-to-display.d.ts +1 -1
  113. package/utils/message-attachment-to-display.d.ts.map +1 -1
  114. package/utils/message.d.ts +1 -7
  115. package/utils/message.d.ts.map +1 -1
  116. package/utils/mime-type.d.ts +11 -0
  117. package/utils/mime-type.d.ts.map +1 -0
  118. package/utils/prompt-variables.d.ts +38 -0
  119. package/utils/prompt-variables.d.ts.map +1 -0
  120. package/utils/string-utils.d.ts +6 -0
  121. package/utils/string-utils.d.ts.map +1 -1
  122. package/components/Highlight/Highlight.d.ts +0 -26
  123. package/components/Highlight/Highlight.d.ts.map +0 -1
  124. package/types/overlay/overlay-protocol.d.ts +0 -308
  125. package/types/overlay/overlay-protocol.d.ts.map +0 -1
@@ -0,0 +1,49 @@
1
+ import { DialFileManagerTabs, DialFileAcceptType, FileManagerGridRow, ToolbarOptions } from '@epam/ai-dial-react-file-manager';
2
+ import { FC } from 'react';
3
+ import { FileManagerController } from '../file-manager-controller';
4
+ import { DialFileManagerActionProfile, DialFileManagerVariant } from '../file-manager-variant';
5
+ import { DialFileManagerShellLabels } from '../labels';
6
+ /** Props for the shared file-manager shell component. */
7
+ export interface DialFileManagerShellProps {
8
+ /** Structural view contract containing all controller state and callbacks. */
9
+ controller: FileManagerController;
10
+ /** Pre-translated labels the shell renders as-is. */
11
+ labels: DialFileManagerShellLabels;
12
+ /** Currently active tab. */
13
+ activeTab: DialFileManagerTabs;
14
+ /** Tab configuration for the toolbar. */
15
+ tabs: ToolbarOptions['tabs'];
16
+ /** Called when the user switches tabs. */
17
+ onTabChange: (tab: DialFileManagerTabs) => void;
18
+ /** Set of currently selected file/folder virtual paths. */
19
+ selectedPaths: Set<string>;
20
+ /** Called when the selection changes. */
21
+ onSelectedPathsChange: (paths: Set<string>) => void;
22
+ /** Host driving this shell instance — gates the upload-archive toolbar entry (standalone-only). */
23
+ variant: DialFileManagerVariant;
24
+ /** Action-set gate for the upload-archive toolbar entry (Full-only). */
25
+ actionProfile: DialFileManagerActionProfile;
26
+ /** Whether to auto-select items after upload completes. Defaults to `false`. */
27
+ autoSelectUploadedItems?: boolean;
28
+ /** MIME type filters for selectable files. */
29
+ allowedFileTypes?: DialFileAcceptType[];
30
+ /** Maximum file size in bytes for selectable files. */
31
+ maxSelectableFileSize?: number;
32
+ /** Custom row-selectability predicate. */
33
+ isRowSelectable?: (node: {
34
+ data?: FileManagerGridRow | null;
35
+ }) => boolean;
36
+ /** Returns a tooltip for disabled rows, or undefined for enabled rows. */
37
+ getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
38
+ /** Tooltip shown on files with an unsupported type. */
39
+ unsupportedFileTypeTooltip?: string;
40
+ }
41
+ /**
42
+ * Renders the DialFileManager grid/tree/toolbar and its operation overlays
43
+ * from a `FileManagerController`. Does not own popup chrome, an attach footer,
44
+ * or any attach-only selection constraints — those are host-owned.
45
+ */
46
+ export declare const DialFileManagerShell: FC<DialFileManagerShellProps>;
47
+ declare const _default: import('react').NamedExoticComponent<DialFileManagerShellProps>;
48
+ export default _default;
49
+ //# 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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AAE,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,CAie9D,CAAC;;AAEF,wBAA0C"}
@@ -0,0 +1,89 @@
1
+ import { DialFileManagerTabs, DialFile, DialFileAcceptType, FileManagerGridRow, ToolbarOptions } from '@epam/ai-dial-react-file-manager';
2
+ import { FC } from 'react';
3
+ import { AttachResult } from '../attach-result';
4
+ import { FileManagerController } from '../file-manager-controller';
5
+ import { DialFileManagerActionProfile, DialFileManagerVariant } from '../file-manager-variant';
6
+ import { DialFileManagerShellLabels } from '../labels';
7
+ /** Labels for `FileManagerAttachModal`. Extends the shell labels with attach-specific strings. */
8
+ export interface FileManagerAttachModalLabels extends DialFileManagerShellLabels {
9
+ /** Title displayed in the Popup header. */
10
+ title: string;
11
+ /** Label for the primary Attach button. */
12
+ attachLabel: string;
13
+ /** Optional subtitle shown below the title (e.g. allowed types / size). Pass `null` to hide. */
14
+ headerDescription?: string | null;
15
+ }
16
+ /** Props accepted by `FileManagerAttachModal`. */
17
+ export interface FileManagerAttachModalProps {
18
+ /** Whether the modal is open. */
19
+ isOpen: boolean;
20
+ /** Called when the modal requests to be closed. */
21
+ onClose: () => void;
22
+ /** Called with the confirmed selection when the user presses Attach. */
23
+ onAttach: (result: AttachResult) => void;
24
+ /** Called when one or more selected files were filtered out due to an unsupported type. */
25
+ onSkippedUnsupportedFiles?: () => void;
26
+ /** Called when the total attachment count would exceed the limit. */
27
+ onCountLimitExceeded?: (totalCount: number, limit: number) => void;
28
+ /** Live file-manager state driving the grid. */
29
+ controller: FileManagerController;
30
+ /**
31
+ * True while any mutating operation is in progress (upload, delete, rename, etc.).
32
+ * Disables the Attach button alongside `isLoading`.
33
+ */
34
+ isAnyOperationInProgress: boolean;
35
+ /** Currently active tab. */
36
+ activeTab: DialFileManagerTabs;
37
+ /** Tab configuration for the toolbar. */
38
+ tabs: ToolbarOptions['tabs'];
39
+ /**
40
+ * Called when the user switches tabs.
41
+ * The host is responsible for resetting `selectedPaths` to an empty set.
42
+ */
43
+ onTabChange: (tab: DialFileManagerTabs) => void;
44
+ /** All user-visible strings. */
45
+ labels: FileManagerAttachModalLabels;
46
+ /** File-manager variant (controls which toolbar entries are shown). */
47
+ variant: DialFileManagerVariant;
48
+ /** Action profile controlling toolbar entry visibility. */
49
+ actionProfile: DialFileManagerActionProfile;
50
+ /**
51
+ * Current set of selected virtual paths, managed by the host.
52
+ * The host must reset this to an empty set when the active tab changes.
53
+ */
54
+ selectedPaths: Set<string>;
55
+ /** Called when the user changes the grid selection. */
56
+ onSelectedPathsChange: (paths: Set<string>) => void;
57
+ /**
58
+ * Resolves a folder `DialFile` to its DIAL Core path string for inclusion in
59
+ * `AttachResult.folderPaths`. Return `null` to skip the folder.
60
+ * Path normalization and bucket resolution are the host's responsibility.
61
+ */
62
+ resolveFolderPath: (file: DialFile) => string | null;
63
+ /**
64
+ * Returns `false` for file content-types that must be filtered out on attach.
65
+ * When absent, all content types are accepted.
66
+ */
67
+ isFileTypeAllowed?: (contentType: string) => boolean;
68
+ /** Maximum size in bytes a selectable file may have. */
69
+ maxSelectableFileSize?: number;
70
+ /** Maximum total attachments (already-attached plus newly selected). */
71
+ maximumAttachmentsAmount?: number;
72
+ /** Count of attachments already present before this modal opens. Defaults to `0`. */
73
+ existingAttachmentsAmount?: number;
74
+ /** Row selectability predicate forwarded to the grid. */
75
+ isRowSelectable?: (node: {
76
+ data?: FileManagerGridRow | null;
77
+ }) => boolean;
78
+ /** Returns a tooltip for disabled rows; forwarded to the grid. */
79
+ getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
80
+ /** Tooltip shown on files with an unsupported type; forwarded to the grid. */
81
+ unsupportedFileTypeTooltip?: string;
82
+ /** Accepted file types for the upload file input. */
83
+ allowedFileTypes?: DialFileAcceptType[];
84
+ /** Whether to auto-select items immediately after upload. Defaults to `false`. */
85
+ autoSelectUploadedItems?: boolean;
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,cAAc,EACpB,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAA8B,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAC5D,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,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAG5D,kGAAkG;AAClG,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;AAED,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,y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AAE,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;CACnC;AAED,qHAAqH;AACrH,eAAO,MAAM,sBAAsB,EAAE,EAAE,CAAC,2BAA2B,CA6LlE,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,CA6B9D,CAAC;;AAEF,wBAA0C"}
@@ -0,0 +1,20 @@
1
+ import { FC } from 'react';
2
+ import { FileUploadBatchState } from '../upload-batch';
3
+ /** Props for the upload-progress modal. */
4
+ export interface UploadProgressModalProps {
5
+ /** Current batch state with per-file entries and open flag. */
6
+ batchState: FileUploadBatchState;
7
+ /** Title shown in the modal header (e.g. "Uploading files"). */
8
+ uploadProgressTitle: string;
9
+ /** Summary text below the title (e.g. "3 of 5 uploaded"). */
10
+ uploadProgressText: string;
11
+ /** Label for the cancel button. */
12
+ cancelLabel: string;
13
+ /** Called when the user clicks Cancel. */
14
+ onCancel: () => void;
15
+ }
16
+ /** Modal showing per-file upload progress with a cancel action. */
17
+ export declare const UploadProgressModal: FC<UploadProgressModalProps>;
18
+ declare const _default: import('react').NamedExoticComponent<UploadProgressModalProps>;
19
+ export default _default;
20
+ //# sourceMappingURL=UploadProgressModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UploadProgressModal.d.ts","sourceRoot":"","sources":["../../../src/file-manager/UploadProgressModal/UploadProgressModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,EAAE,EAAkB,MAAM,OAAO,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D,2CAA2C;AAC3C,MAAM,WAAW,wBAAwB;IACvC,+DAA+D;IAC/D,UAAU,EAAE,oBAAoB,CAAC;IACjC,gEAAgE;IAChE,mBAAmB,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mCAAmC;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,mEAAmE;AACnE,eAAO,MAAM,mBAAmB,EAAE,EAAE,CAAC,wBAAwB,CAqE5D,CAAC;;AAEF,wBAAyC"}
@@ -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,117 @@
1
+ import { DialCopiedItem, DialDeletedItem, DialFile, DialFileManagerActions, 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 list of matching files, 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: dismiss the progress modal after the batch has settled. */
55
+ clearUploadBatch: () => void;
56
+ /** Folder creation: called when user confirms a new folder name. */
57
+ onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
58
+ /** Folder creation: inline synchronous validation (returns error message or null). */
59
+ onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
60
+ /** Download: called when user triggers download on one or more items. */
61
+ onDownloadFiles: (dialFiles: DialFile[]) => void;
62
+ /** True while a download is in progress. */
63
+ isDownloading: boolean;
64
+ /** Delete: called when user confirms deletion of one or more items. */
65
+ onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
66
+ /** True while a delete request is in flight. */
67
+ isDeleting: boolean;
68
+ /** Rename: inline validation — returns error string or null. */
69
+ onRenameValidate: (value: string, item: DialFile) => string | null;
70
+ /** Rename: called when user confirms an inline rename. Also dispatches cross-folder move (see D3). */
71
+ onMoveToFiles: (items: DialCopiedItem[], sourceFolder: string, destinationFolder: string) => void;
72
+ /** True while a rename request is in flight. */
73
+ isRenaming: boolean;
74
+ /** Copy: called when user confirms a copy-paste. */
75
+ onCopyFiles: (items: DialCopiedItem[], destinationFolder: string) => void;
76
+ /** True while a copy request is in flight. */
77
+ isCopying: boolean;
78
+ /** True while the cross-folder-move branch of onMoveToFiles is in flight. */
79
+ isMoving: boolean;
80
+ /** Aborts whichever of copy/move is currently in flight. */
81
+ cancelCopyMove: () => void;
82
+ /** True when the current folder grants WRITE (upload + new folder). */
83
+ uploadEnabled: boolean;
84
+ /** True when Upload/New must be disabled. */
85
+ isNewButtonDisabled: boolean;
86
+ /** Tooltip for disabled New/Upload when `isNewButtonDisabled` is true. */
87
+ disabledNewButtonTooltip: string;
88
+ /** Columns to show in the grid — tab-dependent. */
89
+ visibleColumns: FileManagerColumnKey[];
90
+ /** BCP-47 locale string for date formatting, sourced from i18n.language. */
91
+ dateLocale: string;
92
+ /** Fixed date format options for the UpdatedAt column. */
93
+ dateOptions: Intl.DateTimeFormatOptions;
94
+ /** Action labels for grid/tree/bulk — Delete present only on my_files tab. */
95
+ actionLabels: Partial<Record<DialFileManagerActions, string>>;
96
+ /** Root-level shared item paths, populated only on the Shared tab. */
97
+ sharedWithMeIds: string[] | undefined;
98
+ /** Share: paths the user has shared with others, populated only on my_files tab. */
99
+ sharedByMePaths: Set<string>;
100
+ /** Unshare: called when user removes a shared-with-me item (Shared tab only). */
101
+ onUnshareFiles: (files: DialFile[]) => void;
102
+ /** True while an unshare request is in flight. */
103
+ isUnsharing: boolean;
104
+ /** Remove access: called when user revokes access to an owned shared item (my_files tab only). */
105
+ onRemoveFilesAccess: (files: DialFile[]) => void;
106
+ /** True while a remove-access request is in flight. */
107
+ isRemovingAccess: boolean;
108
+ /** Metadata: populated once onGetInfo resolves; passed to fileMetadataPopupOptions.fileMetadata. */
109
+ fileMetadata: DialFile | undefined;
110
+ /** True while a metadata request is in flight. */
111
+ isFileMetadataLoading: boolean;
112
+ /** Metadata: called by DialFileManager.onGetInfo to fetch and display a file's details. */
113
+ onGetInfo: (file: DialFile) => void;
114
+ /** Metadata: resets fileMetadata/isFileMetadataLoading; passed to fileMetadataPopupOptions.clearMetadata. */
115
+ clearMetadata: () => void;
116
+ }
117
+ //# 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,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;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C,4EAA4E;IAC5E,UAAU,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,WAAW,EAAE,IAAI,CAAC,qBAAqB,CAAC;IACxC,8EAA8E;IAC9E,YAAY,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,sEAAsE;IACtE,eAAe,EAAE,MAAM,EAAE,GAAG,SAAS,CAAC;IAEtC,oFAAoF;IACpF,eAAe,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAE7B,iFAAiF;IACjF,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;CAC3B"}
@@ -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,13 @@
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
+ export * from './UploadProgressModal/UploadProgressModal';
11
+ export * from './DialFileManagerShell/DialFileManagerShell';
12
+ export * from './FileManagerAttachModal/FileManagerAttachModal';
13
+ //# 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;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC"}
@@ -0,0 +1,137 @@
1
+ import { DialFileManagerTabs, DialFileManager } from '@epam/ai-dial-react-file-manager';
2
+ import { ComponentProps, ReactNode } from 'react';
3
+ type DialFileManagerComponentProps = ComponentProps<typeof DialFileManager>;
4
+ /** Options for the conflict-resolution popup shown during copy/move operations. */
5
+ export type ConflictResolutionPopupOptions = NonNullable<DialFileManagerComponentProps['conflictResolutionPopupOptions']>;
6
+ /** Validation messages shown during inline rename editing. */
7
+ export type RenameValidationMessages = NonNullable<DialFileManagerComponentProps['renameValidationMessages']>;
8
+ /** Configuration for the destination-folder picker popup. */
9
+ export type DialFileManagerDestinationFolderPopupOptions = NonNullable<DialFileManagerComponentProps['destinationFolderPopupOptions']>;
10
+ /** Title and description pair for an empty-state display. */
11
+ export interface EmptyStateCopy {
12
+ /** Primary empty-state heading. */
13
+ title: string;
14
+ /** Secondary empty-state description text. */
15
+ description: string;
16
+ }
17
+ /**
18
+ * Pre-translated strings and resolved renderers the shell renders as-is.
19
+ * The shell never calls `useTranslation` — every host (the attach modal
20
+ * today; a future standalone page) resolves these via its own i18n.
21
+ */
22
+ export interface DialFileManagerShellLabels {
23
+ /** Error message shown when the current folder listing fails. */
24
+ errorMessage: string;
25
+ /** Label for the retry button shown alongside the error message. */
26
+ retryLabel: string;
27
+ /** Label for the hidden-files toggle in the toolbar. */
28
+ hiddenFilesLabel: string;
29
+ /** Label shown when hidden files are currently visible. */
30
+ showHiddenFilesLabel: string;
31
+ /** Label shown when hidden files are currently hidden. */
32
+ hideHiddenFilesLabel: string;
33
+ /** Returns a bulk-selection count label (e.g. "3 selected"). */
34
+ getSelectionLabel: (count: number) => string;
35
+ /** Label for the "Upload files" action in the New menu. */
36
+ uploadFilesLabel: string;
37
+ /** Label for the "Upload archive" action in the New menu. */
38
+ uploadArchiveAction: string;
39
+ /** Label for the "New folder" action in the New menu. */
40
+ newFolderLabel: string;
41
+ /** Label for the Download action. */
42
+ downloadLabel: string;
43
+ /** Overlay label shown while a download is in progress. */
44
+ downloadingLabel: string;
45
+ /** Label for the Delete action. */
46
+ deleteLabel: string;
47
+ /** Overlay label shown while a delete operation is in progress. */
48
+ deletingLabel: string;
49
+ /** Label for the Rename action. */
50
+ renameLabel: string;
51
+ /** Overlay label shown while a rename operation is in progress. */
52
+ renamingLabel: string;
53
+ /** Label for the Copy action. */
54
+ copyLabel: string;
55
+ /** Label for the Move action. */
56
+ moveLabel: string;
57
+ /** Label for the Duplicate action. */
58
+ duplicateLabel: string;
59
+ /** Label for the "Add folder" button in the destination picker. */
60
+ addFolderLabel: string;
61
+ /** Label for the hidden-files toggle in the destination-folder picker. */
62
+ hiddenFilesSwitcherLabel: string;
63
+ /** Returns the header for the copy destination popup. */
64
+ getCopyHeader: (count: number, name?: string) => string;
65
+ /** Returns the header for the move destination popup. */
66
+ getMoveHeader: (count: number, name?: string) => string;
67
+ /** Tooltip shown on the disabled source folder in the destination picker. */
68
+ moveSourceDisabledTooltip: string;
69
+ /** Tooltip shown when a destination folder is still loading. */
70
+ folderPickerLoadingTooltip: string;
71
+ /** Empty-state title in the destination-folder picker. */
72
+ folderPickerEmptyStateTitle: string;
73
+ /** Empty-state description in the destination-folder picker. */
74
+ folderPickerEmptyStateDescription: string;
75
+ /** Overlay text shown during a copy operation. */
76
+ copyingLabel: string;
77
+ /** Overlay text shown during a move operation. */
78
+ movingLabel: string;
79
+ /** Title for the copy operation loader modal. */
80
+ operationLoaderCopyTitle: string;
81
+ /** Title for the move operation loader modal. */
82
+ operationLoaderMoveTitle: string;
83
+ /** Cancel-button label in the operation loader modal. */
84
+ operationLoaderCancelLabel: string;
85
+ /** Returns the delete confirmation dialog title for the given item names. */
86
+ deleteConfirmTitle: (names: string[]) => ReactNode;
87
+ /** Returns the delete confirmation dialog body for the given item names. */
88
+ deleteConfirmBody: (names: string[]) => ReactNode;
89
+ /** Confirm-button label in the delete confirmation dialog. */
90
+ deleteConfirmLabel: string;
91
+ /** Cancel-button label in the delete confirmation dialog. */
92
+ deleteCancelLabel: string;
93
+ /** Title for the upload progress modal. */
94
+ uploadProgressTitle: string;
95
+ /** Cancel-button label in the upload progress modal. */
96
+ cancelLabel: string;
97
+ /** Returns upload progress text (e.g. "3 of 5 uploaded"). */
98
+ getUploadProgressText: (done: number, total: number) => string;
99
+ /** Empty-state title when a search yields no results. */
100
+ searchEmptyStateTitle: string;
101
+ /** Empty-state title for an empty subfolder. */
102
+ folderEmptyStateTitle: string;
103
+ /** Tooltip explaining which symbols are forbidden in file names. */
104
+ forbiddenSymbolsTooltip: string;
105
+ /** Per-tab empty-state title and description. */
106
+ emptyStateByTab: Record<DialFileManagerTabs, EmptyStateCopy>;
107
+ /** Per-tab tree header label. */
108
+ treeHeaderByTab: Record<DialFileManagerTabs, string>;
109
+ /** Messages for inline rename validation. */
110
+ renameValidationMessages: RenameValidationMessages;
111
+ /** Options for the conflict resolution popup. */
112
+ conflictResolutionPopupOptions: ConflictResolutionPopupOptions;
113
+ /** Label for the Unshare action. */
114
+ unshareLabel: string;
115
+ /** Overlay label shown while an unshare operation is in progress. */
116
+ unsharingLabel: string;
117
+ /** Label for the Remove Access action. */
118
+ removeAccessLabel: string;
119
+ /** Overlay label shown while a remove-access operation is in progress. */
120
+ removingAccessLabel: string;
121
+ /** Label for the Info action. */
122
+ infoLabel: string;
123
+ /** Header for the metadata popup. */
124
+ metadataHeader: string;
125
+ /** Label for the file name in the metadata popup. */
126
+ metadataNameLabel: string;
127
+ /** Label for the file path in the metadata popup. */
128
+ metadataPathLabel: string;
129
+ /** Label for the modified date in the metadata popup. */
130
+ metadataModifiedDateLabel: string;
131
+ /** Label for the file size in the metadata popup. */
132
+ metadataSizeLabel: string;
133
+ /** Label for the author in the metadata popup. */
134
+ metadataAuthorLabel: string;
135
+ }
136
+ export {};
137
+ //# sourceMappingURL=labels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/file-manager/labels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvD,KAAK,6BAA6B,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5E,mFAAmF;AACnF,MAAM,MAAM,8BAA8B,GAAG,WAAW,CACtD,6BAA6B,CAAC,gCAAgC,CAAC,CAChE,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAChD,6BAA6B,CAAC,0BAA0B,CAAC,CAC1D,CAAC;AAEF,6DAA6D;AAC7D,MAAM,MAAM,4CAA4C,GAAG,WAAW,CACpE,6BAA6B,CAAC,+BAA+B,CAAC,CAC/D,CAAC;AAEF,6DAA6D;AAC7D,MAAM,WAAW,cAAc;IAC7B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACzC,iEAAiE;IACjE,YAAY,EAAE,MAAM,CAAC;IACrB,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,wDAAwD;IACxD,gBAAgB,EAAE,MAAM,CAAC;IACzB,2DAA2D;IAC3D,oBAAoB,EAAE,MAAM,C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AiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,yBAAyB,EAAE,MAAM,CAAC;IAClC,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
@@ -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,27 @@
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 an in-progress or just-settled upload batch, as returned by `useDialFileUploadBatch`. */
21
+ export interface FileUploadBatchState {
22
+ /** Individual file entries in this batch. */
23
+ files: FileUploadEntry[];
24
+ /** Whether the upload progress modal should be visible. */
25
+ isOpen: boolean;
26
+ }
27
+ //# 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,qGAAqG;AACrG,MAAM,WAAW,oBAAoB;IACnC,6CAA6C;IAC7C,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,2DAA2D;IAC3D,MAAM,EAAE,OAAO,CAAC;CACjB"}
@@ -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,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAEL,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"}