@emailmaker/filemanager 0.10.68 → 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.
@@ -15,6 +15,8 @@ interface FileContentHeaderProps {
15
15
  setViewMode: (value: 'grid' | 'table') => void;
16
16
  handleSearch: (searchTerm: string) => void;
17
17
  handleSortOptionChange: (option: SortOptionType) => void;
18
+ /** Если задан непустой массив — в дропдауне только эти варианты. Пустой/undefined — все. */
19
+ sortOptions?: SortOptionType[];
18
20
  onClearSelection: () => void;
19
21
  onRename: (selectedFileId?: string) => void;
20
22
  onDelete: (file?: AppFile) => void;
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;