@orangelogic/design-system 2.201.0 → 2.202.0
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/library/chunks/{asset-link-format.DrI99FKO.js → asset-link-format.CQu5-Ftq.js} +532 -525
- package/library/chunks/{color-swatch-group.DBwOBmmi.js → color-swatch-group.DSb2oDkj.js} +2 -2
- package/library/chunks/{document-viewer.CRuqeIIg.js → document-viewer.CwSM3a_i.js} +1 -1
- package/library/chunks/{toast.hZJztBTm.js → toast.Ci418pnA.js} +1 -1
- package/library/chunks/{transformation.DHEr6Kf3.js → transformation.DhMUTZnT.js} +23 -25
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +1 -1
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/document-viewer.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +13623 -13617
- package/library/package.json +1 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +12 -0
- package/library/utils.js +2 -2
- package/package.json +1 -1
package/library/package.json
CHANGED
|
@@ -29,6 +29,18 @@ type FetchImageControllerOptions = {
|
|
|
29
29
|
token?: string;
|
|
30
30
|
};
|
|
31
31
|
export declare function isSupportedImageExtension(extension: string): boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Whether `path_TRX` — the untouched original file — can be served to an `<img>`.
|
|
34
|
+
*
|
|
35
|
+
* Two independent signals have to agree, because each catches what the other misses:
|
|
36
|
+
* a `.psd` is `DocType: Image` yet no browser decodes it, while a source whose extension
|
|
37
|
+
* the API did not report is still ruled out by a `DocType` of `Video` or `Multimedia`
|
|
38
|
+
* (the type a PDF carries). Only `Image` passes, so a media type added later defaults to
|
|
39
|
+
* the transcoded proxy instead of silently reaching an `<img>` as a PDF or an MP4.
|
|
40
|
+
*
|
|
41
|
+
* Every other format is already transcoded, so this only gates the original.
|
|
42
|
+
*/
|
|
43
|
+
export declare function canServeOriginalAsImage(docType: string | undefined, extension: string): boolean;
|
|
32
44
|
export declare class FetchImageController implements ReactiveController {
|
|
33
45
|
private readonly host;
|
|
34
46
|
private data;
|
package/library/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as k } from "./chunks/url.CGdWC06g.js";
|
|
2
2
|
import { R as xt, f as At, g as Et, h as It, U as Lt, a as Ft, d as Rt, c as Ot, i as bt, r as Vt, t as vt, e as _t } from "./chunks/url.CGdWC06g.js";
|
|
3
|
-
import { j as Ut, f as Yt, b as Nt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.
|
|
3
|
+
import { j as Ut, f as Yt, b as Nt, c as Pt, g as Wt, e as Xt, i as Ht, a as Bt, h as Gt, m as $t, d as zt, r as qt, t as Qt } from "./chunks/toast.Ci418pnA.js";
|
|
4
4
|
import { e as jt, a as Jt, f as Kt, g as te, d as ee, b as re, c as ae, i as se, p as oe, s as ne } from "./chunks/browser.BHOCIF_A.js";
|
|
5
5
|
import { d as le, C as ce, e as ue, H as me, R as fe, c as he, h as ge, f as de, g as pe, l as De, a as Te, p as we, b as Me } from "./chunks/color.LzSGBy7o.js";
|
|
6
6
|
import { a as Ce, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
|
|
@@ -26,7 +26,7 @@ import { w as br } from "./chunks/watch.DJF5K-8U.js";
|
|
|
26
26
|
import { C as vr } from "./chunks/calendar-grid.BWjcZL5W.js";
|
|
27
27
|
import { b as kr, c as Ur, f as Yr, h as Nr, g as Pr, a as Wr, i as Xr, d as Hr, n as Br, e as Gr, p as $r, t as zr } from "./chunks/date.iWq_pkIk.js";
|
|
28
28
|
import { f as c, a as u, D as m } from "./chunks/date-picker.BGHn6qg8.js";
|
|
29
|
-
import { o as Qr, l as Zr, p as jr, k as Jr, a as Kr, m as ta, b as ea, e as ra, d as aa, f as sa, n as oa, q as na, r as ia, c as la } from "./chunks/transformation.
|
|
29
|
+
import { o as Qr, l as Zr, p as jr, k as Jr, a as Kr, m as ta, b as ea, e as ra, d as aa, f as sa, n as oa, q as na, r as ia, c as la } from "./chunks/transformation.DhMUTZnT.js";
|
|
30
30
|
import { c as ua, f as ma, e as fa, b as ha, g as ga, d as da, i as pa, r as Da, a as Ta } from "./chunks/image.Y5c_hFx8.js";
|
|
31
31
|
import { b as Ma, e as Sa } from "./chunks/waveform.1U9U_0rd.js";
|
|
32
32
|
import { c as ya, b as xa, a as Aa, e as Ea, d as Ia, f as La, g as Fa, r as Ra, s as Oa } from "./chunks/number.Cx2ncfJJ.js";
|