@emailmaker/filemanager 1.1.69 → 1.1.71
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.
- package/.build-meta.json +1 -1
- package/core.esm.js +197 -160
- package/core.js +1 -1
- package/{file-manager-IconsTab-BPDaI1rw.js → file-manager-IconsTab-pUKiId5k.js} +106 -106
- package/{file-manager-ImageCodeGenerator-Bfcf-n-G.js → file-manager-ImageCodeGenerator-sUlzbDys.js} +115 -115
- package/{file-manager-PixieEditor-BRUKJkjp.js → file-manager-PixieEditor-Doy__jUq.js} +149 -149
- package/{file-manager-hooks-aNT0w8kI.js → file-manager-hooks-vqT-4jeg.js} +1489 -1456
- package/{file-manager-useMediaListEngine-zkDk3m1H.js → file-manager-useMediaListEngine-BitrHuUM.js} +2 -2
- package/file-manager.d.ts +2 -20
- package/file-manager.esm.js +2561 -2549
- package/file-manager.js +12 -12
- package/notification.d.ts +4 -4
- package/package.json +1 -1
- package/utils/pixieEditorConfig.d.ts +38 -0
- package/utils/pixieEditorConfig.test.d.ts +1 -0
- package/utils/urlNormalization.d.ts +9 -0
- package/utils/urlNormalization.test.d.ts +1 -0
package/{file-manager-useMediaListEngine-zkDk3m1H.js → file-manager-useMediaListEngine-BitrHuUM.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as e, G as t } from "./file-manager-hooks-vqT-4jeg.js";
|
|
2
2
|
import n, { useCallback as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
3
|
import { Button as c, Form as l, Input as u, Tooltip as d, Tree as f } from "antd";
|
|
4
4
|
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -918,4 +918,4 @@ function ge({ items: e, getId: t, getPreviewSrc: n, getAltText: r, getWidth: i,
|
|
|
918
918
|
//#endregion
|
|
919
919
|
export { X as a, ie as i, oe as n, J as o, Q as r, K as s, ge as t };
|
|
920
920
|
|
|
921
|
-
//# sourceMappingURL=file-manager-useMediaListEngine-
|
|
921
|
+
//# sourceMappingURL=file-manager-useMediaListEngine-BitrHuUM.js.map
|
package/file-manager.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { type PixieEditorConfigOptions } from './utils/pixieEditorConfig';
|
|
2
3
|
import type { Config, CustomIcons, EditorSaveMeta, File, FileManagerDataProviders, PixieSavePayload, NotifyListener, Notify, NotifyEvent, ThumbnailFile } from './types';
|
|
3
4
|
import './styles/index.scss';
|
|
4
5
|
export declare const FileManagerAppWithContext: (props: FileManagerAppProps) => React.JSX.Element;
|
|
@@ -66,7 +67,7 @@ export interface FileManagerAppProps {
|
|
|
66
67
|
}
|
|
67
68
|
export declare const init: (containerOrOptions: HTMLElement | Options, config?: Config) => void;
|
|
68
69
|
export declare const unmount: (container: HTMLElement) => void;
|
|
69
|
-
export interface InitPixieEditorOptions {
|
|
70
|
+
export interface InitPixieEditorOptions extends PixieEditorConfigOptions {
|
|
70
71
|
element: HTMLElement;
|
|
71
72
|
file?: File | ThumbnailFile | string;
|
|
72
73
|
imageDataUrl?: string;
|
|
@@ -77,28 +78,9 @@ export interface InitPixieEditorOptions {
|
|
|
77
78
|
/** PixieSavePayload.mode — «save» или «saveCopy» (сохранить / сохранить копию). */
|
|
78
79
|
onSave?: (updatedFile: File, payload?: PixieSavePayload) => Promise<void> | void;
|
|
79
80
|
onClose?: () => void;
|
|
80
|
-
theme?: Config['theme'];
|
|
81
|
-
locale?: string;
|
|
82
|
-
baseUrl?: string;
|
|
83
|
-
assetsUrl?: string;
|
|
84
|
-
compressMaxSize?: Config['compressMaxSize'];
|
|
85
|
-
compressMaxWidthOrHeight?: Config['compressMaxWidthOrHeight'];
|
|
86
|
-
compessorUrl?: string;
|
|
87
|
-
compressorUrl?: string;
|
|
88
|
-
showNotifications?: boolean;
|
|
89
|
-
fetchWithProxy?: Config['fetchWithProxy'];
|
|
90
|
-
handleFileProxy?: Config['handleFileProxy'];
|
|
91
81
|
handleNotify?: NotifyListener<NotifyEvent>;
|
|
92
82
|
handleError?: NotifyListener<Notify.ErrorEvent>;
|
|
93
83
|
handleSuccess?: NotifyListener<Notify.SuccessEvent>;
|
|
94
|
-
/** Как в Config: пагинация списка (запросы/UI), не путать с dedupeUploadNamesOnClient */
|
|
95
|
-
hasPagination?: boolean;
|
|
96
|
-
disablePagination?: boolean;
|
|
97
|
-
paginationAvailable?: boolean;
|
|
98
|
-
/** Как в Config.dedupeUploadNamesOnClient — только уникальность имён при сохранении копии */
|
|
99
|
-
dedupeUploadNamesOnClient?: boolean;
|
|
100
|
-
/** Как в Config.saveCopyToCurrentFolder — сохранить копию в текущую папку вместо `noFolder`. */
|
|
101
|
-
saveCopyToCurrentFolder?: boolean;
|
|
102
84
|
}
|
|
103
85
|
export declare const PixieOnlyApp: React.FC<Omit<InitPixieEditorOptions, 'element'>>;
|
|
104
86
|
export declare const initPixieEditor: (options: InitPixieEditorOptions) => void;
|