@emailmaker/filemanager 1.1.95 → 1.1.102
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/assets/icon-sets/lucide.json +6275 -0
- package/assets/icon-sets/tabler.json +19336 -0
- package/components/FilerobotEditor/FilerobotEditor.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/CornerRadiusTool.d.ts +22 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/cornerRadiusMath.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/cornerRadiusOutput.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/__tests__/imageEditorTools.test.d.ts +1 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusEraser.d.ts +17 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusMath.d.ts +38 -0
- package/components/FilerobotEditor/cornerRadius/cornerRadiusOutput.d.ts +18 -0
- package/components/FilerobotEditor/cornerRadius/imageEditorTools.d.ts +11 -0
- package/components/FilerobotEditor/cornerRadius/useCornerRadiusSync.d.ts +23 -0
- package/components/ImageIcons/iconSets.d.ts +38 -0
- package/components/ImageIcons/iconSets.test.d.ts +1 -0
- package/components/ImageIcons/iconStockSearch.d.ts +3 -1
- package/components/ImageIcons/packagedIconSets.d.ts +9 -0
- package/core.d.ts +1 -0
- package/core.esm.js +272 -259
- package/core.js +1 -1
- package/file-manager-FilerobotEditor.js +576 -0
- package/file-manager-IconsTab.js +2083 -0
- package/{file-manager-ImageCodeGenerator-m06RVQr7.js → file-manager-ImageCodeGenerator.js} +8 -8
- package/{file-manager-JsBarcode-CyaffT5b.js → file-manager-JsBarcode.js} +30 -30
- package/{file-manager-browser-DDyRNDQk.js → file-manager-browser.js} +8 -8
- package/{file-manager-hooks-UP2zpv8z.js → file-manager-hooks-BDRRCedE.js} +4792 -2384
- package/file-manager-imageEditorCropPresets-en0_jYEY.js +76 -0
- package/{file-manager-rolldown-runtime-DAVfCfog.js → file-manager-rolldown-runtime-DawGUBAG.js} +2 -2
- package/{file-manager-useMediaListEngine-B9sz3gcs.js → file-manager-urls-rCuqY9r4.js} +139 -119
- package/file-manager.esm.js +2332 -2277
- package/file-manager.js +12 -12
- package/helpers/__tests__/applyImageEditorTranslations.test.d.ts +1 -0
- package/helpers/__tests__/imageEditorCropPresets.test.d.ts +1 -0
- package/helpers/__tests__/locales.test.d.ts +1 -0
- package/helpers/applyImageEditorTranslations.d.ts +6 -0
- package/helpers/imageEditorCropPresets.d.ts +8 -0
- package/index.d.ts +2 -0
- package/package.json +5 -1
- package/types.d.ts +18 -0
- package/utils/filerobotEditorConfig.d.ts +1 -0
- package/utils/generateId.d.ts +5 -0
- package/utils/imageCompression.d.ts +10 -0
- package/utils/imageCompression.editedImage.test.d.ts +1 -0
- package/utils/imageCompression.png.test.d.ts +1 -0
- package/utils/pngCompression.d.ts +23 -0
- package/utils/pngCompression.test.d.ts +1 -0
- package/file-manager-FilerobotEditor-WbM5WTct.js +0 -330
- package/file-manager-IconsTab-CCn0Q0ng.js +0 -2434
- package/file-manager-imageEditorTranslations-CtNVql-A.js +0 -38
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { $ as e, J as t, K as n, Q as r, X as i, Y as a, Z as o, et as s, q as c } from "./file-manager-hooks-BDRRCedE.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Space as l, Spin as u } from "antd";
|
|
4
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
5
|
+
import { updateTranslations as f } from "react-filerobot-image-editor/lib/utils/translator";
|
|
6
|
+
//#region packages/file-manager/src/components/PageLoader/PageLoader.tsx
|
|
7
|
+
var p = ({ style: e = {}, wrap: t = !1 }) => {
|
|
8
|
+
let n = {
|
|
9
|
+
width: "100%",
|
|
10
|
+
height: "100%",
|
|
11
|
+
display: "flex",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
...e
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ d(l, {
|
|
17
|
+
size: "large",
|
|
18
|
+
style: n,
|
|
19
|
+
wrap: t,
|
|
20
|
+
children: /* @__PURE__ */ d(u, {})
|
|
21
|
+
});
|
|
22
|
+
}, m = {
|
|
23
|
+
en: s.imageEditor,
|
|
24
|
+
ru: e.imageEditor,
|
|
25
|
+
uk: r.imageEditor,
|
|
26
|
+
es: i.imageEditor,
|
|
27
|
+
"pt-br": o.imageEditor,
|
|
28
|
+
de: a.imageEditor,
|
|
29
|
+
fr: t.imageEditor,
|
|
30
|
+
it: c.imageEditor,
|
|
31
|
+
pl: n.imageEditor
|
|
32
|
+
};
|
|
33
|
+
function h(e) {
|
|
34
|
+
if (!e) return "en";
|
|
35
|
+
let t = e.replace("_", "-").toLowerCase();
|
|
36
|
+
if (m[t]) return t;
|
|
37
|
+
let n = t.split("-")[0];
|
|
38
|
+
return n === "pt" ? "pt-br" : m[n] ? n : "en";
|
|
39
|
+
}
|
|
40
|
+
function g(e) {
|
|
41
|
+
return m[h(e)];
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region packages/file-manager/src/helpers/applyImageEditorTranslations.ts
|
|
45
|
+
function _(e) {
|
|
46
|
+
let t = g(e), n = (e || "en").replace("_", "-").split("-")[0].toLowerCase();
|
|
47
|
+
return f(t, n), t;
|
|
48
|
+
}
|
|
49
|
+
//#endregion
|
|
50
|
+
//#region packages/file-manager/src/helpers/imageEditorCropPresets.ts
|
|
51
|
+
var v = 14, y = 12, b = (e) => +e.toFixed(2);
|
|
52
|
+
function x(e, t) {
|
|
53
|
+
let n = y / Math.max(e, t), r = b(e * n), i = b(t * n);
|
|
54
|
+
return `<svg xmlns="http://www.w3.org/2000/svg" width="${v}" height="${v}" viewBox="0 0 ${v} ${v}" fill="none"><rect x="${b((v - r) / 2)}" y="${b((v - i) / 2)}" width="${r}" height="${i}" rx="1" stroke="currentColor" stroke-width="1" stroke-opacity="0.65"/></svg>`;
|
|
55
|
+
}
|
|
56
|
+
function S(e, t, n) {
|
|
57
|
+
return {
|
|
58
|
+
titleKey: e,
|
|
59
|
+
descriptionKey: `${t}:${n}`,
|
|
60
|
+
ratio: t / n,
|
|
61
|
+
icon: x(t, n)
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
var C = [
|
|
65
|
+
S("square", 1, 1),
|
|
66
|
+
S("cropPresetInstagramPost", 4, 5),
|
|
67
|
+
S("cropPresetPinterest", 2, 3),
|
|
68
|
+
S("cropPresetScreen", 4, 3),
|
|
69
|
+
S("cropPresetPhoto", 3, 2),
|
|
70
|
+
S("cropPresetLinkPreview", 1.91, 1),
|
|
71
|
+
S("cropPresetCinema", 21, 9)
|
|
72
|
+
];
|
|
73
|
+
//#endregion
|
|
74
|
+
export { p as i, _ as n, g as r, C as t };
|
|
75
|
+
|
|
76
|
+
//# sourceMappingURL=file-manager-imageEditorCropPresets-en0_jYEY.js.map
|
package/{file-manager-rolldown-runtime-DAVfCfog.js → file-manager-rolldown-runtime-DawGUBAG.js}
RENAMED
|
@@ -12,9 +12,9 @@ var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescr
|
|
|
12
12
|
enumerable: !(s = n(i, d)) || s.enumerable
|
|
13
13
|
});
|
|
14
14
|
return e;
|
|
15
|
-
}, l = (n, r,
|
|
15
|
+
}, l = (n, r, o) => (o = n == null ? {} : e(i(n)), c(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
16
16
|
value: n,
|
|
17
17
|
enumerable: !0
|
|
18
|
-
}) :
|
|
18
|
+
}) : o, n));
|
|
19
19
|
//#endregion
|
|
20
20
|
export { o as n, l as r, s as t };
|