@emailmaker/filemanager 0.10.67 → 0.10.69

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.
@@ -8,11 +8,15 @@ interface FileContentHeaderProps {
8
8
  currentSortOption: SortOptionType;
9
9
  isSmallScreen: boolean;
10
10
  iconStrokeWidth?: number;
11
+ /** При false скрываем массовое выделение («Выделить всё»). */
12
+ multiSelectEnabled?: boolean;
11
13
  features: Record<string, boolean | undefined>;
12
14
  viewMode: 'grid' | 'table';
13
15
  setViewMode: (value: 'grid' | 'table') => void;
14
16
  handleSearch: (searchTerm: string) => void;
15
17
  handleSortOptionChange: (option: SortOptionType) => void;
18
+ /** Если задан непустой массив — в дропдауне только эти варианты. Пустой/undefined — все. */
19
+ sortOptions?: SortOptionType[];
16
20
  onClearSelection: () => void;
17
21
  onRename: (selectedFileId?: string) => void;
18
22
  onDelete: (file?: AppFile) => void;
@@ -21,6 +21,7 @@ interface FileGridItemProps {
21
21
  onEdit: (file?: AppFile) => void;
22
22
  onEditorOk?: (file: AppFile) => void;
23
23
  getFileData: (fileId: string, silent?: boolean) => Promise<Blob | undefined>;
24
+ showSelectionCheckbox?: boolean;
24
25
  }
25
26
  /**
26
27
  * Карточка grid-режима на основе общего view-model.
@@ -23,6 +23,8 @@ interface FileGridViewProps {
23
23
  onEdit: (file?: AppFile) => void;
24
24
  onEditorOk?: (file: AppFile) => void;
25
25
  getFileData: (fileId: string, silent?: boolean) => Promise<Blob | undefined>;
26
+ /** При false скрываем чекбокс выбора (режим одного файла). */
27
+ showSelectionCheckbox?: boolean;
26
28
  }
27
29
  /**
28
30
  * Изолированный renderer grid-режима.
package/file-manager.css CHANGED
@@ -197,6 +197,7 @@
197
197
  }
198
198
 
199
199
  .em-filemanager .tableImagePreview {
200
+ display: block !important;
200
201
  object-fit: contain;
201
202
  border-radius: calc(var(--borderRadius) * 1px);
202
203
  }
package/file-manager.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import type { Config, CustomIcons, File, FileManagerDataProviders, PixieSavePayload, NotifyListener, Notify, NotifyEvent, ThumbnailFile } from './types';
2
+ import type { Config, CustomIcons, EditorSaveMeta, File, FileManagerDataProviders, PixieSavePayload, NotifyListener, Notify, NotifyEvent, ThumbnailFile } from './types';
3
3
  import './styles/index.scss';
4
4
  export declare const FileManagerAppWithContext: (props: FileManagerAppProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export interface Options {
@@ -11,7 +11,7 @@ export interface Options {
11
11
  id: string;
12
12
  folderId: string | undefined;
13
13
  name: string;
14
- }) => void;
14
+ }, meta?: EditorSaveMeta) => void;
15
15
  onChangeSelection?: (files: File[]) => void;
16
16
  searchQuery?: string;
17
17
  sortBySize?: string;
@@ -41,7 +41,7 @@ export interface FileManagerAppProps {
41
41
  id: string;
42
42
  folderId: string | undefined;
43
43
  name: string;
44
- }) => void;
44
+ }, meta?: EditorSaveMeta) => void;
45
45
  searchQuery?: string;
46
46
  sortBySize?: string;
47
47
  dataProviders?: FileManagerDataProviders;
@@ -74,6 +74,7 @@ export interface InitPixieEditorOptions {
74
74
  type?: string;
75
75
  extension?: string;
76
76
  dataProviders?: FileManagerDataProviders;
77
+ /** PixieSavePayload.mode — «save» или «saveCopy» (сохранить / сохранить копию). */
77
78
  onSave?: (updatedFile: File, payload?: PixieSavePayload) => Promise<void> | void;
78
79
  onClose?: () => void;
79
80
  theme?: Config['theme'];
@@ -89,6 +90,14 @@ export interface InitPixieEditorOptions {
89
90
  handleNotify?: NotifyListener<NotifyEvent>;
90
91
  handleError?: NotifyListener<Notify.ErrorEvent>;
91
92
  handleSuccess?: NotifyListener<Notify.SuccessEvent>;
93
+ /** Как в Config: пагинация списка (запросы/UI), не путать с dedupeUploadNamesOnClient */
94
+ hasPagination?: boolean;
95
+ disablePagination?: boolean;
96
+ paginationAvailable?: boolean;
97
+ /** Как в Config.dedupeUploadNamesOnClient — только уникальность имён при сохранении копии */
98
+ dedupeUploadNamesOnClient?: boolean;
99
+ /** Как в Config.saveCopyToCurrentFolder — сохранить копию в текущую папку вместо `noFolder`. */
100
+ saveCopyToCurrentFolder?: boolean;
92
101
  }
93
102
  export declare const PixieOnlyApp: React.FC<Omit<InitPixieEditorOptions, 'element'>>;
94
103
  export declare const initPixieEditor: (options: InitPixieEditorOptions) => void;