@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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "version": 1,
3
- "hash": "4df3219e5b95dcc42c502e4c6558d338bcf2425a2c603d453b91542527a84d64",
3
+ "hash": "95d21bb98a0ea83b7d739a0b0e50c2e2162b8a5ca3e0cf5596c1c9889ac23d57",
4
4
  "prefix": "em"
5
5
  }
@@ -17,6 +17,8 @@ export interface IconSetsSource {
17
17
  baseUrl?: string;
18
18
  /** Directory with the set files; defaults to `ICON_SETS_ASSETS_PATH`. */
19
19
  path?: string;
20
+ /** Host loader of a set; when given it is the only source and nothing is fetched. */
21
+ load?: (prefix: IconSetPrefix) => Promise<IconifyJSON>;
20
22
  }
21
23
  /**
22
24
  * Points the loader at the host assets. Changing the source drops what was already fetched:
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Icon set files shipped inside this package: the build puts them into `dist/assets/icon-sets`,
3
+ * next to the chunk that loads them.
4
+ *
5
+ * The URLs are literal `new URL(..., import.meta.url)` on purpose: the host bundler (webpack 5,
6
+ * Vite, Parcel) recognises the pattern and emits the files itself, so the host does not have to
7
+ * copy them by hand. Served unbundled, the URL points into the package directory directly.
8
+ */
9
+ export declare function packagedIconSetUrl(prefix: string): string | undefined;
@@ -1,5 +1,5 @@
1
- import { D as e, E as t, L as n, T as r, V as i, Z as a, f as o, it as s, nt as c, y as ee, yt as l } from "./file-manager-hooks-fhltHD9p.js";
2
- import { n as u, t as d } from "./file-manager-imageEditorTranslations-rRWZAwnp.js";
1
+ import { D as e, E as t, L as n, T as r, V as i, Z as a, f as o, it as s, nt as c, y as ee, yt as l } from "./file-manager-hooks-C6CQk0K1.js";
2
+ import { n as u, t as d } from "./file-manager-imageEditorTranslations-xNXgW8en.js";
3
3
  import f from "react";
4
4
  import { Button as p, Modal as m } from "antd";
5
5
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
@@ -155,7 +155,8 @@ var w = [
155
155
  mimeType: a,
156
156
  fileName: n,
157
157
  libURL: o,
158
- enableCompression: e(j, a)
158
+ enableCompression: e(j, a),
159
+ compressBySize: j?.compressEditedImages === !0
159
160
  });
160
161
  i = r, a = r.type;
161
162
  } catch (e) {