@emailmaker/filemanager 0.10.25 → 0.10.27

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.
@@ -28,5 +28,6 @@ export declare const useCustomIcons: () => {
28
28
  LightModeIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
29
29
  DarkModeIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
30
30
  AiIcon_2: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
31
+ NoFilesIcon: (props?: IconProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>;
31
32
  getCustomIcon: (iconName: keyof NonNullable<import("../types").CustomIcons | undefined>, defaultIcon: React.ComponentType<any>, props?: IconProps) => React.ReactElement;
32
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emailmaker/filemanager",
3
- "version": "0.10.25",
3
+ "version": "0.10.27",
4
4
  "main": "./file-manager.js",
5
5
  "module": "./file-manager.esm.js",
6
6
  "types": "./index.d.ts",
@@ -1,3 +1,4 @@
1
+ import type { IconProps } from '../types';
1
2
  export interface Config {
2
3
  theme?: 'light' | 'dark' | 'system';
3
4
  activeTab?: string;
@@ -10,4 +11,5 @@ export interface Config {
10
11
  createFile?: string;
11
12
  deleteFile?: string;
12
13
  };
14
+ noFilesIconProps?: IconProps;
13
15
  }
package/types.d.ts CHANGED
@@ -110,6 +110,7 @@ export interface CustomIcons {
110
110
  lightMode?: React.ComponentType<IconProps>;
111
111
  darkMode?: React.ComponentType<IconProps>;
112
112
  aiIcon_2?: React.ComponentType<IconProps>;
113
+ noFiles?: React.ComponentType<IconProps>;
113
114
  }
114
115
  type MayBePromise<T> = T | Promise<T>;
115
116
  export type NotifyListener<T> = (value: T) => MayBePromise<void | false | (NotifyEvent & Notify)>;
@@ -337,6 +338,7 @@ export interface Config {
337
338
  mode?: 'fileManager' | 'imageCenter' | 'plugin';
338
339
  enabledTabs?: string[];
339
340
  iconStrokeWidth?: number;
341
+ noFilesIconProps?: IconProps;
340
342
  features?: {
341
343
  enableRenameFolder?: boolean;
342
344
  enableRenameFile?: boolean;
@@ -394,6 +396,8 @@ export interface Config {
394
396
  multiSelect?: boolean;
395
397
  defaultFolderName?: string;
396
398
  availableImageExtensions?: Array<(typeof IMAGE_EXTENSIONS)[number]>;
399
+ /** Разрешаем произвольные дополнительные поля */
400
+ [key: string]: unknown;
397
401
  }
398
402
  export type LibraryMenuKey = typeof MY_FILES | typeof GIF | typeof STOCK_IMAGES | typeof AI | typeof EDITOR;
399
403
  export interface GifItem {