@epam/ai-dial-react-file-manager 0.3.0-dev.16 → 0.3.0-dev.18

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.
@@ -196,6 +196,7 @@ export interface DialFileManagerProps {
196
196
  renameValidationMessages?: RenameValidationMessages;
197
197
  forbiddenSymbolsRegExp?: RegExp;
198
198
  forbiddenSymbolsTooltip?: ReactNode;
199
+ skipForbiddenSymbolsCheckForActions?: boolean;
199
200
  onCreateFolder?: (file: DialUploadFileItem, folderPath: string, fileId: string) => void | Promise<void>;
200
201
  onCreateFolderValidate?: (name: string, parentFolder: DialFile) => string | null;
201
202
  folderCreationValidationMessages?: CreateFolderValidationMessages;
@@ -342,7 +343,7 @@ export interface DialFileManagerProps {
342
343
  * @param [renameValidationMessages] - Optional custom validation messages for renaming files and folders. Note that you need to add `${NotificationVariant.Warning}__` prefix to the `hiddenItemWarning` message to display it as a warning with the warning icon.
343
344
  * @param [forbiddenSymbolsRegExp] - Optional RegExp will be used in the validation for the files and folders names. The "g" and "y" flags are not allowed in this RegExp and will be ignored.
344
345
  * @param [forbiddenSymbolsTooltip] - Optional tooltip displayed when a file or folder name contains forbidden characters
345
- *
346
+ * @param [skipForbiddenSymbolsCheckForActions] - When provided, skips the forbidden-symbols check when building row action menus, so all actions are shown even for items whose names contain forbidden characters.
346
347
  * @param [onDownloadFiles] - Callback fired when files are downloaded
347
348
  *
348
349
  * @param [onUploadArchive] - Callback fired when archive files are uploaded
@@ -85,6 +85,7 @@ export interface FileManagerContextValue {
85
85
  getDisplayName: (item: DialFile) => string;
86
86
  forbiddenSymbolsRegExp?: RegExp;
87
87
  forbiddenSymbolsTooltip?: ReactNode;
88
+ skipForbiddenSymbolsCheckForActions?: boolean;
88
89
  openDeleteConfirmation: (items: DialFile[], parentFolderPath: string) => void;
89
90
  closeDeleteConfirmation: () => void;
90
91
  confirmDelete: () => void;
@@ -37,7 +37,8 @@ export interface UseGridContextMenuProps {
37
37
  isRenameFileAvailable?: boolean;
38
38
  isDuplicateFolderAvailable?: boolean;
39
39
  forbiddenSymbolsRegExp?: RegExp;
40
+ skipForbiddenSymbolsCheckForActions?: boolean;
40
41
  onGridCreateSiblingFolder: (files: DialFile[]) => void;
41
42
  onGridCreateChildFolder: (files: DialFile[]) => void;
42
43
  }
43
- export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onManagePermissions, onPreview, onOpenInNewTab, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, onGridCreateSiblingFolder, onGridCreateChildFolder, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
44
+ export declare const useGridContextMenu: ({ actionLabels, onDuplicate, onCopy, onMove, onDownload, onRename, onDelete, onInfo, onUnshare, onRemoveAccess, sharedWithMeIds, sharedByMePaths, onManagePermissions, onPreview, onOpenInNewTab, previewExtensions, isRenameFileAvailable, isDuplicateFolderAvailable, forbiddenSymbolsRegExp, skipForbiddenSymbolsCheckForActions, onGridCreateSiblingFolder, onGridCreateChildFolder, }: UseGridContextMenuProps) => (file: DialFile) => DropdownItem[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-react-file-manager",
3
- "version": "0.3.0-dev.16",
3
+ "version": "0.3.0-dev.18",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "React file manager package for AI DIAL interfaces",