@emailmaker/filemanager 1.1.85-dev.10 → 1.1.85-dev.11
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/components/ImageIcons/iconSets.d.ts +2 -0
- package/components/ImageIcons/packagedIconSets.d.ts +9 -0
- package/file-manager-FilerobotEditor.js +4 -3
- package/file-manager-IconsTab.js +493 -456
- package/file-manager-ImageCodeGenerator.js +1 -1
- package/{file-manager-hooks-fhltHD9p.js → file-manager-hooks-C6CQk0K1.js} +9 -7
- package/{file-manager-imageEditorTranslations-rRWZAwnp.js → file-manager-imageEditorTranslations-xNXgW8en.js} +2 -2
- package/{file-manager-urls-BpPtVuK4.js → file-manager-urls-Cc0AE1sg.js} +2 -2
- package/file-manager.esm.js +5 -3
- package/file-manager.js +7 -7
- package/package.json +1 -1
- package/types.d.ts +11 -0
- package/utils/filerobotEditorConfig.d.ts +1 -0
- package/utils/imageCompression.d.ts +7 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as e } from "./file-manager-rolldown-runtime-DawGUBAG.js";
|
|
2
|
-
import { V as t, Z as n, z as r } from "./file-manager-hooks-
|
|
2
|
+
import { V as t, Z as n, z as r } from "./file-manager-hooks-C6CQk0K1.js";
|
|
3
3
|
import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
4
4
|
import { Alert as l, Button as u, Checkbox as d, ColorPicker as f, Input as p, InputNumber as m, Segmented as h, Typography as g } from "antd";
|
|
5
5
|
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
@@ -9543,14 +9543,16 @@ async function Ei(e) {
|
|
|
9543
9543
|
}
|
|
9544
9544
|
}
|
|
9545
9545
|
async function Di(e, t = {}) {
|
|
9546
|
-
let
|
|
9547
|
-
if (
|
|
9548
|
-
|
|
9549
|
-
|
|
9546
|
+
let { compressBySize: n, ...r } = t;
|
|
9547
|
+
if (n) return wi(e, r);
|
|
9548
|
+
let i = t.maxWidthOrHeight ?? Kr.MAX_WIDTH_OR_HEIGHT, a = ae(t.mimeType || e.type || "");
|
|
9549
|
+
if (Ti.includes(a)) {
|
|
9550
|
+
let n = await Ei(e);
|
|
9551
|
+
if (t.enableCompression === !1 || n !== null && n <= i) return bi(e, t.fileName);
|
|
9550
9552
|
}
|
|
9551
9553
|
return wi(e, {
|
|
9552
|
-
...
|
|
9553
|
-
maxWidthOrHeight:
|
|
9554
|
+
...r,
|
|
9555
|
+
maxWidthOrHeight: i,
|
|
9554
9556
|
maxSizeMB: Infinity
|
|
9555
9557
|
});
|
|
9556
9558
|
}
|
|
@@ -12646,4 +12648,4 @@ function to(e, t) {
|
|
|
12646
12648
|
//#endregion
|
|
12647
12649
|
export { Ne as $, zr as A, nr as B, ai as C, O as Ct, Yr as D, Gr as E, Or as F, Kn as G, $n as H, _r as I, Hn as J, Wn as K, gr as L, Fr as M, Pr as N, Wr as O, W as P, Pn as Q, lr as R, mi as S, x as St, Kr as T, Qn as U, B as V, Yn as W, Bn as X, Vn as Y, zn as Z, Ai as _, g as _t, Na as a, se as at, oi as b, _ as bt, ka as c, C as ct, da as d, k as dt, je as et, ra as f, v as ft, ki as g, S as gt, Pi as h, ne as ht, Va as i, ae as it, Lr as j, G as k, Oa as l, b as lt, Ii as m, A as mt, eo as n, oe as nt, ja as o, ee as ot, Gi as p, y as pt, Un as q, Ya as r, j as rt, Aa as s, te as st, to as t, me as tt, Da as u, D as ut, Oi as v, E as vt, ii as w, ie as wt, si as x, w as xt, Di as y, T as yt, rr as z };
|
|
12648
12650
|
|
|
12649
|
-
//# sourceMappingURL=file-manager-hooks-
|
|
12651
|
+
//# sourceMappingURL=file-manager-hooks-C6CQk0K1.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, K as t, X as n, Y as r, q as i } from "./file-manager-hooks-
|
|
1
|
+
import { J as e, K as t, X as n, Y as r, q as i } from "./file-manager-hooks-C6CQk0K1.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { Space as a, Spin as o } from "antd";
|
|
4
4
|
import { jsx as s } from "react/jsx-runtime";
|
|
@@ -38,4 +38,4 @@ function d(e) {
|
|
|
38
38
|
//#endregion
|
|
39
39
|
export { c as n, d as t };
|
|
40
40
|
|
|
41
|
-
//# sourceMappingURL=file-manager-imageEditorTranslations-
|
|
41
|
+
//# sourceMappingURL=file-manager-imageEditorTranslations-xNXgW8en.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as e, Z as t } from "./file-manager-hooks-
|
|
1
|
+
import { V as e, Z as t } from "./file-manager-hooks-C6CQk0K1.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";
|
|
@@ -938,4 +938,4 @@ function ye(e, t) {
|
|
|
938
938
|
//#endregion
|
|
939
939
|
export { ce as a, J as c, ve as i, q as l, $ as n, X as o, Q as r, oe as s, ye as t, G as u };
|
|
940
940
|
|
|
941
|
-
//# sourceMappingURL=file-manager-urls-
|
|
941
|
+
//# sourceMappingURL=file-manager-urls-Cc0AE1sg.js.map
|
package/file-manager.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, Ct as r, F as i, G as a, H as o, L as s, M as c, N as l, O as u, P as d, Q as f, R as p, St as m, U as h, V as g, W as _, Z as v, _ as y, _t as b, a as ee, at as x, bt as S, c as C, ct as w, d as T, dt as E, et as te, f as ne, ft as re, g as D, gt as O, h as k, ht as ie, i as ae, j as A, k as j, l as oe, m as se, mt as M, n as ce, o as le, p as ue, pt as N, r as P, rt as de, s as fe, t as pe, tt as me, u as F, ut as I, v as he, vt as ge, w as _e, wt as ve, z as ye } from "./file-manager-hooks-
|
|
2
|
-
import { a as be, c as xe, i as Se, l as Ce, n as we, o as L, r as Te, s as Ee, t as De, u as Oe } from "./file-manager-urls-
|
|
3
|
-
import { n as ke, t as Ae } from "./file-manager-imageEditorTranslations-
|
|
1
|
+
import { $ as e, A as t, B as n, Ct as r, F as i, G as a, H as o, L as s, M as c, N as l, O as u, P as d, Q as f, R as p, St as m, U as h, V as g, W as _, Z as v, _ as y, _t as b, a as ee, at as x, bt as S, c as C, ct as w, d as T, dt as E, et as te, f as ne, ft as re, g as D, gt as O, h as k, ht as ie, i as ae, j as A, k as j, l as oe, m as se, mt as M, n as ce, o as le, p as ue, pt as N, r as P, rt as de, s as fe, t as pe, tt as me, u as F, ut as I, v as he, vt as ge, w as _e, wt as ve, z as ye } from "./file-manager-hooks-C6CQk0K1.js";
|
|
2
|
+
import { a as be, c as xe, i as Se, l as Ce, n as we, o as L, r as Te, s as Ee, t as De, u as Oe } from "./file-manager-urls-Cc0AE1sg.js";
|
|
3
|
+
import { n as ke, t as Ae } from "./file-manager-imageEditorTranslations-xNXgW8en.js";
|
|
4
4
|
import * as je from "react";
|
|
5
5
|
import R, { Suspense as Me, createElement as Ne, forwardRef as Pe, memo as Fe, useCallback as z, useEffect as B, useImperativeHandle as Ie, useLayoutEffect as Le, useMemo as V, useRef as H, useState as U } from "react";
|
|
6
6
|
import { createRoot as Re } from "react-dom/client";
|
|
@@ -5347,6 +5347,7 @@ function Ei(e) {
|
|
|
5347
5347
|
assetsUrl: e.assetsUrl,
|
|
5348
5348
|
compressMaxSize: e.compressMaxSize,
|
|
5349
5349
|
compressMaxWidthOrHeight: e.compressMaxWidthOrHeight,
|
|
5350
|
+
compressEditedImages: e.compressEditedImages,
|
|
5350
5351
|
compessorUrl: e.compessorUrl ?? e.compressorUrl,
|
|
5351
5352
|
compressorUrl: e.compressorUrl ?? e.compessorUrl,
|
|
5352
5353
|
showNotifications: e.showNotifications,
|
|
@@ -5432,6 +5433,7 @@ var ki = ze.ErrorBoundary, Ai = (e) => /* @__PURE__ */ J(On, {
|
|
|
5432
5433
|
t.assetsUrl,
|
|
5433
5434
|
t.compressMaxSize,
|
|
5434
5435
|
t.compressMaxWidthOrHeight,
|
|
5436
|
+
t.compressEditedImages,
|
|
5435
5437
|
t.compessorUrl,
|
|
5436
5438
|
t.compressorUrl,
|
|
5437
5439
|
t.showNotifications,
|