@orangelogic/design-system 2.194.0 → 2.196.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.CODyaNDa.js → asset-link-format.BFxmPgwt.js} +1005 -979
- package/library/chunks/{color-swatch-group.D1p1ayBo.js → color-swatch-group.C0BXFL4I.js} +2 -3
- package/library/chunks/{document-viewer.DnowPH70.js → document-viewer.C5IT7M61.js} +1 -2
- package/library/chunks/{toast.C5Ir5yKA.js → toast.COzwhRI6.js} +1 -1
- package/library/chunks/transformation.CkEA7Ymz.js +392 -0
- 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/masonry.js +119 -138
- package/library/components/organisms.js +2 -2
- package/library/components/types.js +5954 -5966
- package/library/package.json +1 -1
- package/library/packages/molecules/src/masonry/masonry.d.ts +0 -2
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
- package/library/packages/services/src/api/asset/asset.d.ts +1 -1
- package/library/packages/tools/src/fetch-image/fetch-image.d.ts +10 -0
- package/library/packages/types/src/content-builder.d.ts +1 -0
- package/library/packages/types/src/gallery-item.d.ts +1 -0
- package/library/packages/types/src/masonry.d.ts +1 -0
- package/library/react-web-component.d.ts +4 -4
- package/library/utils.js +96 -97
- package/package.json +1 -1
- package/library/chunks/content-builder.BX4pHujE.js +0 -60
- package/library/chunks/transformation.JkkMVin_.js +0 -334
package/library/package.json
CHANGED
|
@@ -103,8 +103,6 @@ export default class CxMasonry extends CortexElement {
|
|
|
103
103
|
* the default `100vw`.
|
|
104
104
|
*/
|
|
105
105
|
private get itemSizes();
|
|
106
|
-
/** The format one item is served under: the configured one, or derived from the item. */
|
|
107
|
-
private resolveItemFormat;
|
|
108
106
|
handleItemClick(event: MouseEvent, item: MasonryItem): void;
|
|
109
107
|
handleSortableUpdate(event: Sortable.SortableEvent): void;
|
|
110
108
|
renderActions(item: MasonryItem): import('lit').TemplateResult<1>;
|
|
@@ -89,6 +89,7 @@ export default class StyleController {
|
|
|
89
89
|
objectIdKey?: string;
|
|
90
90
|
prescribedDocTypes?: import('../../../types/src/download-format-picker').DownloadDocType[];
|
|
91
91
|
};
|
|
92
|
+
excludeFromContentConfigs?: boolean;
|
|
92
93
|
folderPickerConfigs?: {
|
|
93
94
|
useAllowedFolders?: boolean;
|
|
94
95
|
useFullPath?: boolean;
|
|
@@ -49,7 +49,7 @@ export declare function apiGetAssets({ extraFields, getPermanentAssetsPaths, isS
|
|
|
49
49
|
* distinct from `CoreField.MaximumWidth`, which describes the original file.
|
|
50
50
|
*/
|
|
51
51
|
export declare function readSearchAssetItemWidth(item: SearchAssetsItem, field: string): number | undefined;
|
|
52
|
-
export declare function apiGetAssetsInFolder({ countPerPage, directParentFolderIdentifier,
|
|
52
|
+
export declare function apiGetAssetsInFolder({ countPerPage, directParentFolderIdentifier, extraFields, getPermanentAssetsPaths, isSiteBuilder, limitedDocTypes, pageNumber, parentFolderIdentifier, searchTerm, securityByPassToken, sortOrder, token, }: GetAssetsInFolderRequest): Promise<GetAssetsInFolderResponse>;
|
|
53
53
|
export declare function apiGetCropFocusMode({ autoCropMode, cropHeight, cropWidth, imageUrl, useSession, }: GetCropZoneSuggestionRequest): Promise<GetCropZoneSuggestionResponse | null>;
|
|
54
54
|
export declare function apiGetAvailableProxies({ assetRecordId, isSiteBuilder, siteUrl, token, useSession, }: {
|
|
55
55
|
assetRecordId: string;
|
|
@@ -6,6 +6,14 @@ export type ExtendedGalleryItem = GalleryItem & {
|
|
|
6
6
|
[key: string]: string | undefined;
|
|
7
7
|
};
|
|
8
8
|
type FetchImageControllerOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Whether delivery URLs carry the `.auto` marker, letting the backend serve a rendition
|
|
11
|
+
* suited to the asset instead of the file the URL names.
|
|
12
|
+
*
|
|
13
|
+
* Defaults to `false`: a consumer opts in deliberately, so a surface that needs the
|
|
14
|
+
* asset exactly as stored (an editor preview, say) never picks this up by accident.
|
|
15
|
+
*/
|
|
16
|
+
autoFormat?: boolean;
|
|
9
17
|
isSiteBuilder?: boolean;
|
|
10
18
|
maxEnd?: number;
|
|
11
19
|
pageSize?: number;
|
|
@@ -24,6 +32,8 @@ export declare class FetchImageController implements ReactiveController {
|
|
|
24
32
|
private readonly authToken;
|
|
25
33
|
private securityByPassToken;
|
|
26
34
|
private readonly isSiteBuilder;
|
|
35
|
+
/** Whether delivery URLs carry the `.auto` marker. See `FetchImageControllerOptions`. */
|
|
36
|
+
private readonly autoFormat;
|
|
27
37
|
private requestEpoch;
|
|
28
38
|
constructor(host: ReactiveElement, options?: FetchImageControllerOptions);
|
|
29
39
|
get totalDataCount(): number;
|
|
@@ -100,6 +100,7 @@ export type PropertyConfig<T = Record<string, any>> = Omit<TraitProperties, 'opt
|
|
|
100
100
|
objectIdKey?: string;
|
|
101
101
|
prescribedDocTypes?: DownloadDocType[];
|
|
102
102
|
};
|
|
103
|
+
excludeFromContentConfigs?: boolean;
|
|
103
104
|
folderPickerConfigs?: {
|
|
104
105
|
useAllowedFolders?: boolean;
|
|
105
106
|
useFullPath?: boolean;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
export type CxGraphViewNodeAction = { controlType: 'default' | 'switch'; icon: string; id: string; name: string; showDivider: boolean; style: { color: string; }; };
|
|
23
23
|
export type CxGraphViewRecord = any;
|
|
24
24
|
export type CxGraphViewSummary = { icon: string; texts: string[]; };
|
|
25
|
-
export type CxMasonryMasonryItem = { alt: string; extension: string; hasError: boolean; id: string; loading: boolean; maxWidth: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; size: string; src: string; };
|
|
25
|
+
export type CxMasonryMasonryItem = { alt: string; extension: string; hasError: boolean; id: string; loading: boolean; maxWidth: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; size: string; src: string; srcset: string; };
|
|
26
26
|
export type CxMasonryMasonryItemAction = { color: string; event: string; icon: string; src: string; tooltip: string; };
|
|
27
27
|
export type CxMentionsAutocompleteItem = { id: string; label: string; name: string; suffixContent: string; suffixIcon: string; suffixTooltip: string; suffixType: 'badge'; title: string; type: string; };
|
|
28
28
|
export type CxMultiSelectColumnData = { id: string; items: { disabled: boolean; group: string; id: string; index: string; text: string; tooltip: string; type: string; }[]; sort: boolean; title: string; };
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
export type CxAssetLinkFormatFocusMode = { auto: boolean; label: string; value: string; };
|
|
34
34
|
export type CxAssetLinkFormatProxy = { cdnName: string; extension: string; formatHeight: number; formatWidth: number; height: number; id: string; permanentLink: string; proxyLabel: string; proxyName: string; width: number; };
|
|
35
35
|
export type CxAssetLinkFormatTransformation = { key: 'Crop' | 'Metadata' | 'Proxy' | 'Quality' | 'Resize' | 'Rotate'; value: { disabledSize: boolean; focusMode: string; height: number; isFocusModeAuto: boolean; keepMetadata: boolean; mode: string; position: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'center-center' | 'center-left' | 'center-right' | 'top-center' | 'top-left' | 'top-right'; quality: number; ratioHeight: number; ratioWidth: number; rotation: number; unit: '%' | 'px'; width: number; x: number; y: number; }; };
|
|
36
|
-
export type CxBentoGridGalleryItem = { additions: string[]; alt: string; cardType: 'asset' | 'folder' | 'link' | 'page' | 'space'; className: string; details: string; docType: '' | 'Album' | 'Audio' | 'Audio segment' | 'Image' | 'Multimedia' | 'ProjectDocument' | 'Story' | 'Video' | 'Widget'; extension: string; filler: boolean; header: string; id: string; isClone: boolean; maxWidth: string; name: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; openInNewTab: boolean; pageId: string; rawId: string; size: string; src: string; url: string; };
|
|
37
|
-
export type CxCarouselGalleryItem = { additions: string[]; alt: string; cardType: 'asset' | 'folder' | 'link' | 'page' | 'space'; className: string; details: string; docType: '' | 'Album' | 'Audio' | 'Audio segment' | 'Image' | 'Multimedia' | 'ProjectDocument' | 'Story' | 'Video' | 'Widget'; extension: string; filler: boolean; header: string; id: string; isClone: boolean; maxWidth: string; name: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; openInNewTab: boolean; pageId: string; rawId: string; size: string; src: string; url: string; };
|
|
36
|
+
export type CxBentoGridGalleryItem = { additions: string[]; alt: string; cardType: 'asset' | 'folder' | 'link' | 'page' | 'space'; className: string; details: string; docType: '' | 'Album' | 'Audio' | 'Audio segment' | 'Image' | 'Multimedia' | 'ProjectDocument' | 'Story' | 'Video' | 'Widget'; extension: string; filler: boolean; header: string; id: string; isClone: boolean; maxWidth: string; name: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; openInNewTab: boolean; pageId: string; rawId: string; size: string; src: string; srcset: string; url: string; };
|
|
37
|
+
export type CxCarouselGalleryItem = { additions: string[]; alt: string; cardType: 'asset' | 'folder' | 'link' | 'page' | 'space'; className: string; details: string; docType: '' | 'Album' | 'Audio' | 'Audio segment' | 'Image' | 'Multimedia' | 'ProjectDocument' | 'Story' | 'Video' | 'Widget'; extension: string; filler: boolean; header: string; id: string; isClone: boolean; maxWidth: string; name: string; objectFit: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; openInNewTab: boolean; pageId: string; rawId: string; size: string; src: string; srcset: string; url: string; };
|
|
38
38
|
export type CxChatbotChatbotEvent = { event: string; excludedFromPurposes: string[]; label: string; };
|
|
39
39
|
export type CxTableTimeFormatterParams = { color: string; fontSize: string; fontWeight: string; inputUnit: string; locale: string; placeholder: string; style: dictionary; unitsFormat: string; displayStyle: string; paramsMapField: string; paramsMap: dictionary; };
|
|
40
40
|
export type CxTableTextFormatParams = { colorMap: dictionary; color: string; };
|
|
@@ -6762,7 +6762,7 @@
|
|
|
6762
6762
|
/**
|
|
6763
6763
|
* The key to use for the id of the items in the masonry layout.
|
|
6764
6764
|
*/
|
|
6765
|
-
idKey?: 'src' | 'extension' | 'loading' | 'maxWidth' | 'size' | 'alt' | 'hasError' | 'id' | 'objectFit';
|
|
6765
|
+
idKey?: 'src' | 'extension' | 'loading' | 'maxWidth' | 'size' | 'alt' | 'hasError' | 'id' | 'objectFit' | 'srcset';
|
|
6766
6766
|
/**
|
|
6767
6767
|
* The proxy format the item images were resolved with. <br/> Only used to decide whether a `srcset` may be generated: an original-file format paired with an animated source must be delivered untouched.
|
|
6768
6768
|
*/
|
package/library/utils.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { b as k } from "./chunks/url.CGdWC06g.js";
|
|
2
2
|
import { R as Ct, f as xt, 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.
|
|
4
|
-
import { e as
|
|
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.COzwhRI6.js";
|
|
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
|
-
import { a as
|
|
6
|
+
import { a as ye, g as Ae } from "./chunks/active-elements.jTVWtBDp.js";
|
|
7
7
|
import { a as xe, p as Ee, c as Ie, b as Le, s as Fe, w as Re } from "./chunks/event.BeKOsirN.js";
|
|
8
8
|
import { t as be } from "./chunks/converters.DkDtLstb.js";
|
|
9
9
|
import { c as ve } from "./chunks/custom-element.L4WJXn1j.js";
|
|
@@ -13,28 +13,27 @@ import { d as Pe } from "./chunks/drag.DenOh3AE.js";
|
|
|
13
13
|
import { f as Xe } from "./chunks/focus-when-visible.jWSw9ks0.js";
|
|
14
14
|
import { f as U } from "./chunks/form.DSsy3Fcy.js";
|
|
15
15
|
import { F as Be, c as Ge, g as $e, v as ze, a as qe } from "./chunks/form.DSsy3Fcy.js";
|
|
16
|
-
import { L as
|
|
16
|
+
import { L as Ze, r as je } from "./chunks/i18n.DbXTTLXx.js";
|
|
17
17
|
import { c as Ke, q as tr } from "./chunks/math.DuKzLacZ.js";
|
|
18
18
|
import { g as rr } from "./chunks/modal.Ct0bJBSe.js";
|
|
19
19
|
import { g as sr, l as or, s as nr, u as ir } from "./chunks/scroll.xtO5yojm.js";
|
|
20
|
-
import { k as
|
|
20
|
+
import { k as A } from "./chunks/dom.gRV2cDjL.js";
|
|
21
21
|
import { c as cr, d as ur, h as mr, m as fr, a as hr, g as gr, j as dr, b as pr, f as Dr, i as Tr, e as wr, l as Mr, s as Sr } from "./chunks/dom.gRV2cDjL.js";
|
|
22
|
-
import { H as
|
|
22
|
+
import { H as Ar, a as Cr, g as xr } from "./chunks/slot.j5oheLJC.js";
|
|
23
23
|
import { a as Ir, g as Lr } from "./chunks/tabbable.BwnZBHrm.js";
|
|
24
24
|
import { i as Rr } from "./chunks/user-agent.D9aPuOyL.js";
|
|
25
25
|
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 {
|
|
30
|
-
import { c as
|
|
31
|
-
import { b as
|
|
32
|
-
import { c as
|
|
33
|
-
import { s as
|
|
34
|
-
import { b as
|
|
35
|
-
import { g as
|
|
36
|
-
import { c as
|
|
37
|
-
import { A as es, j as rs, i as as, S as ss, a as os, d as ns, g as is, b as ls, f as cs, e as us, h as ms, p as fs, r as hs, c as gs } from "./chunks/transformation.JkkMVin_.js";
|
|
29
|
+
import { o as Qr, s as Zr, p as jr, l as Jr, b as Kr, a as ta, m as ea, c as ra, g as aa, e as sa, f as oa, n as na, q as ia, r as la, d as ca } from "./chunks/transformation.CkEA7Ymz.js";
|
|
30
|
+
import { c as ma, f as fa, e as ha, b as ga, g as da, d as pa, i as Da, r as Ta, a as wa } from "./chunks/image.Y5c_hFx8.js";
|
|
31
|
+
import { b as Sa, e as ya } from "./chunks/waveform.1U9U_0rd.js";
|
|
32
|
+
import { c as Ca, b as xa, a as Ea, e as Ia, d as La, f as Fa, g as Ra, r as Oa, s as ba } from "./chunks/number.Cx2ncfJJ.js";
|
|
33
|
+
import { s as va } from "./chunks/parse.Cu5nBDTb.js";
|
|
34
|
+
import { b as ka, n as Ua, d as Ya, e as Na, f as Pa, y as Wa, o as Xa, g as Ha, h as Ba, l as Ga, p as $a, z as za, x as qa, a as Qa, c as Za, s as ja, w as Ja, r as Ka, t as ts, q as es, v as rs, i as as, m as ss, u as os } from "./chunks/string.CfI2ejyR.js";
|
|
35
|
+
import { g as is, a as ls } from "./chunks/template.ClovJacp.js";
|
|
36
|
+
import { c as us, f as ms, a as fs, g as hs } from "./chunks/time.DYWuX2id.js";
|
|
38
37
|
function n(t) {
|
|
39
38
|
const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
|
|
40
39
|
return `${e}-${r}-${s}`;
|
|
@@ -226,7 +225,7 @@ class Q {
|
|
|
226
225
|
throw new Error(`Unsupported date range preset: ${e}`);
|
|
227
226
|
}
|
|
228
227
|
}
|
|
229
|
-
function
|
|
228
|
+
function Z(t) {
|
|
230
229
|
const e = /* @__PURE__ */ new Date(`${t}T00:00:00Z`);
|
|
231
230
|
if (Number.isNaN(e.getTime()))
|
|
232
231
|
return 0;
|
|
@@ -237,7 +236,7 @@ function j(t) {
|
|
|
237
236
|
const a = new Date(Date.UTC(r.getUTCFullYear(), 0, 1)), o = (r.getTime() - a.getTime()) / 864e5;
|
|
238
237
|
return Math.ceil((o + 1) / 7);
|
|
239
238
|
}
|
|
240
|
-
function
|
|
239
|
+
function j(t) {
|
|
241
240
|
if (!this.ownerDocument.defaultView?.Matrix3 || !t)
|
|
242
241
|
return;
|
|
243
242
|
const e = this.ownerDocument.defaultView?.location.origin;
|
|
@@ -290,14 +289,14 @@ function et(t, e) {
|
|
|
290
289
|
}
|
|
291
290
|
class rt {
|
|
292
291
|
constructor(e) {
|
|
293
|
-
this.currentZIndex =
|
|
292
|
+
this.currentZIndex = A(), (this.host = e).addController(this);
|
|
294
293
|
}
|
|
295
294
|
hostConnected() {
|
|
296
295
|
}
|
|
297
296
|
hostDisconnected() {
|
|
298
297
|
}
|
|
299
298
|
async activatePopup() {
|
|
300
|
-
this.currentZIndex =
|
|
299
|
+
this.currentZIndex = A();
|
|
301
300
|
}
|
|
302
301
|
}
|
|
303
302
|
class at {
|
|
@@ -547,8 +546,8 @@ async function* Mt({
|
|
|
547
546
|
const T = g * i + d, D = T * s;
|
|
548
547
|
if (D >= r)
|
|
549
548
|
continue;
|
|
550
|
-
const w = d * p, M = g * l, S = H(t[a] ?? [], d, g),
|
|
551
|
-
S ? yield { ...S, isLastFrame:
|
|
549
|
+
const w = d * p, M = g * l, S = H(t[a] ?? [], d, g), y = d === i - 1 && g === f - 1 || D + s >= r;
|
|
550
|
+
S ? yield { ...S, isLastFrame: y } : (await B(o, D, s), _.drawImage(
|
|
552
551
|
o,
|
|
553
552
|
w,
|
|
554
553
|
M,
|
|
@@ -560,7 +559,7 @@ async function* Mt({
|
|
|
560
559
|
frameHeight: l,
|
|
561
560
|
frameWidth: p,
|
|
562
561
|
index: T,
|
|
563
|
-
isLastFrame:
|
|
562
|
+
isLastFrame: y,
|
|
564
563
|
row: g,
|
|
565
564
|
rows: f,
|
|
566
565
|
time: Number(D.toFixed(X)),
|
|
@@ -581,9 +580,9 @@ function St({
|
|
|
581
580
|
return a > t && (a = t / 2), a;
|
|
582
581
|
}
|
|
583
582
|
export {
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
583
|
+
Qr as AUTO_FALLBACK_FORMAT,
|
|
584
|
+
Zr as AUTO_FORMAT_EXTENSION,
|
|
585
|
+
jr as AUTO_ORIGINAL_FORMAT_MAX_BYTES,
|
|
587
586
|
le as CMYK_VALIDATION_REGEX,
|
|
588
587
|
vr as CalendarGrid,
|
|
589
588
|
ce as ColorType,
|
|
@@ -593,41 +592,41 @@ export {
|
|
|
593
592
|
Be as FormControlController,
|
|
594
593
|
ue as HEX_ALPHA_VALIDATION_REGEX,
|
|
595
594
|
me as HEX_VALIDATION_REGEX,
|
|
596
|
-
|
|
595
|
+
Ar as HasSlotController,
|
|
597
596
|
ft as HistoryManager,
|
|
598
597
|
W as KeyboardKey,
|
|
599
|
-
|
|
598
|
+
Ze as LocalizeController,
|
|
600
599
|
X as PRECISION,
|
|
601
600
|
Ct as RELATIVE_URL_REGEX,
|
|
602
601
|
fe as RGB_VALIDATION_REGEX,
|
|
603
|
-
|
|
602
|
+
Jr as SRCSET_WIDTH_LADDER,
|
|
604
603
|
xt as URL_DOMAIN_VALIDATION_REGEX,
|
|
605
604
|
Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
|
|
606
605
|
It as URL_PROTOCOL_VALIDATION_REGEX,
|
|
607
606
|
Lt as URL_VALIDATION_REGEX,
|
|
608
|
-
|
|
607
|
+
ye as activeElements,
|
|
609
608
|
kr as addMonths,
|
|
610
609
|
Ut as adjustRelativeValues,
|
|
611
610
|
xe as animateTo,
|
|
612
611
|
k as appendProtocol,
|
|
613
612
|
Ft as appendQueryParam,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
613
|
+
Kr as applyAutoFormatToAssetUrl,
|
|
614
|
+
ta as applyTransformationsToUrl,
|
|
615
|
+
ea as applyWidthToAssetUrl,
|
|
616
|
+
ra as buildAssetSrcset,
|
|
617
|
+
aa as buildSizesFromDisplayWidth,
|
|
618
|
+
sa as buildTransformationString,
|
|
619
|
+
Sa as buildWaveformPath,
|
|
620
|
+
ma as calculateAspectRatioFit,
|
|
622
621
|
Ke as clamp,
|
|
623
|
-
|
|
624
|
-
|
|
622
|
+
fa as cleanImageFileName,
|
|
623
|
+
us as clearZeroDurationParts,
|
|
625
624
|
he as convertColor,
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
Ca as convertDataUnits,
|
|
626
|
+
xa as convertDurationToMilliseconds,
|
|
627
|
+
Ea as convertPixelsToAspectRatio,
|
|
628
|
+
ha as convertSrcToBlob,
|
|
629
|
+
ga as cropImage,
|
|
631
630
|
cr as cssValueToPx,
|
|
632
631
|
ve as customElement,
|
|
633
632
|
Ge as customErrorValidityState,
|
|
@@ -635,70 +634,70 @@ export {
|
|
|
635
634
|
Ye as defaultValue,
|
|
636
635
|
et as downloadAsset,
|
|
637
636
|
Pe as drag,
|
|
638
|
-
|
|
639
|
-
|
|
637
|
+
ka as emptyToSpace,
|
|
638
|
+
Ua as escapeXML,
|
|
640
639
|
ge as extractColor,
|
|
641
|
-
|
|
640
|
+
Ya as extractExtension,
|
|
642
641
|
Mt as extractFrames,
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
642
|
+
Na as extractRootData,
|
|
643
|
+
Ia as extractValueAndUnit,
|
|
644
|
+
ya as extractWaveformPeaks,
|
|
645
|
+
oa as fetchCortexApi,
|
|
646
|
+
jt as findAncestorWithBuggyStyle,
|
|
648
647
|
Jt as findContainingBlock,
|
|
649
648
|
Kt as findCuttingAncestor,
|
|
650
649
|
H as findFrameByColAndRow,
|
|
651
650
|
Yt as findIndexByProp,
|
|
652
651
|
Xe as focusWhenVisible,
|
|
653
652
|
U as formCollections,
|
|
654
|
-
|
|
655
|
-
|
|
653
|
+
La as formatAspectRatioString,
|
|
654
|
+
ms as formatDurationPartsManually,
|
|
656
655
|
Ur as formatIsoToDisplay,
|
|
657
656
|
Yr as formatMonthYearLabel,
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
657
|
+
Fa as formatNumberWithGrouping,
|
|
658
|
+
Pa as formatSecondsToTime,
|
|
659
|
+
Wa as formatTimeToSeconds,
|
|
660
|
+
fs as formatWithIntlDurationFormat,
|
|
661
|
+
Ra as gcd,
|
|
663
662
|
ur as getActiveElement,
|
|
664
663
|
rr as getActiveModals,
|
|
665
664
|
$e as getAssociatedForm,
|
|
666
665
|
mr as getAttributes,
|
|
667
|
-
|
|
666
|
+
Xa as getAttributesString,
|
|
668
667
|
Nt as getBreakpointsFromCSS,
|
|
669
668
|
ct as getBrowserFontVariants,
|
|
670
669
|
de as getColorType,
|
|
671
|
-
|
|
670
|
+
da as getContainedImageSize,
|
|
672
671
|
fr as getCortexPopupLayer,
|
|
673
|
-
|
|
672
|
+
A as getCurrentZIndex,
|
|
674
673
|
Nr as getDateMask,
|
|
675
|
-
|
|
674
|
+
Ae as getDeepestActiveElement,
|
|
676
675
|
Pt as getDeviceType,
|
|
677
|
-
|
|
676
|
+
hs as getDurationPartsByUnitsFormat,
|
|
678
677
|
hr as getElementFromHTMLString,
|
|
679
678
|
gr as getElementFromTemplate,
|
|
680
679
|
Pr as getFirstDayOfWeek,
|
|
681
680
|
nt as getFontFamilyOptionValue,
|
|
682
681
|
P as getFormControls,
|
|
683
|
-
|
|
684
|
-
|
|
682
|
+
is as getHighlightedTitle,
|
|
683
|
+
ls as getHighlightedTitleHtml,
|
|
685
684
|
Cr as getInnerHTML,
|
|
686
685
|
St as getInterval,
|
|
687
686
|
pe as getLightDarkCssString,
|
|
688
|
-
|
|
687
|
+
pa as getNaturalWidthHeight,
|
|
689
688
|
dr as getNeededPaddingForBoxShadow,
|
|
690
689
|
te as getNextAncestor,
|
|
691
690
|
sr as getOffset,
|
|
692
691
|
pr as getRelativeClickPercentage,
|
|
693
|
-
|
|
692
|
+
Ha as getRootIDString,
|
|
694
693
|
Ir as getTabbableBoundary,
|
|
695
694
|
Lr as getTabbableElements,
|
|
696
695
|
xr as getTextContent,
|
|
697
696
|
Wr as getTodayIsoDate,
|
|
698
697
|
ot as getTypefaceOptionValue,
|
|
699
698
|
Wt as groupBy,
|
|
700
|
-
|
|
701
|
-
|
|
699
|
+
na as hasTransformSegment,
|
|
700
|
+
Ba as htmlToPlainText,
|
|
702
701
|
Xt as insertAtIndex,
|
|
703
702
|
wt as insertFrameToCache,
|
|
704
703
|
Ht as insertMultipleAtIndex,
|
|
@@ -710,17 +709,17 @@ export {
|
|
|
710
709
|
re as isFirefox,
|
|
711
710
|
lt as isFontFamilyAvailable,
|
|
712
711
|
mt as isFormInteracted,
|
|
713
|
-
|
|
712
|
+
Ga as isGalleryItemCardType,
|
|
714
713
|
ae as isIOS,
|
|
715
714
|
wr as isInElement,
|
|
716
715
|
st as isModKey,
|
|
717
716
|
se as isSafari,
|
|
718
|
-
|
|
717
|
+
Da as isSaveSrcValid,
|
|
719
718
|
Ot as isValidDomainOrIntranetUrl,
|
|
720
719
|
Xr as isValidIsoDate,
|
|
721
720
|
bt as isValidUrl,
|
|
722
721
|
Hr as isoToDate,
|
|
723
|
-
|
|
722
|
+
Z as isoWeekNumber,
|
|
724
723
|
Mr as loadScript,
|
|
725
724
|
or as lockBodyScrolling,
|
|
726
725
|
De as luminanceTextColor,
|
|
@@ -729,15 +728,15 @@ export {
|
|
|
729
728
|
$t as multiSelectTo,
|
|
730
729
|
Br as normalizeToIsoDate,
|
|
731
730
|
ht as omit,
|
|
732
|
-
|
|
731
|
+
j as openAssetOverview,
|
|
733
732
|
J as openFolderOverview,
|
|
734
733
|
K as openLink,
|
|
735
|
-
|
|
736
|
-
|
|
734
|
+
$a as padPath,
|
|
735
|
+
za as parseBooleanString,
|
|
737
736
|
Te as parseBorder,
|
|
738
737
|
Gr as parseDisplayToIso,
|
|
739
738
|
Ee as parseDuration,
|
|
740
|
-
|
|
739
|
+
ia as parseFileSizeToBytes,
|
|
741
740
|
$r as parseIsoDate,
|
|
742
741
|
dt as parseJsonString,
|
|
743
742
|
we as parseLightDark,
|
|
@@ -749,45 +748,45 @@ export {
|
|
|
749
748
|
tr as quantizeLargestRemainder,
|
|
750
749
|
Y as quoteFontFamily,
|
|
751
750
|
Dt as readLocalStorageValue,
|
|
752
|
-
|
|
753
|
-
|
|
751
|
+
qa as reducePathToDirectChild,
|
|
752
|
+
je as registerTranslation,
|
|
754
753
|
zt as removeAtIndex,
|
|
755
754
|
qt as removeMultipleAtIndex,
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
755
|
+
Ta as resizeImage,
|
|
756
|
+
la as resolveAutoFormat,
|
|
757
|
+
ca as resolveAutoMaxWidth,
|
|
759
758
|
Vt as resolveSpaceUrl,
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
759
|
+
Oa as rotateBox,
|
|
760
|
+
wa as rotateImage,
|
|
761
|
+
Qa as safeExtension,
|
|
762
|
+
Za as safeString,
|
|
763
|
+
ja as sanitizeHTML,
|
|
764
|
+
ba as sanitizeRotation,
|
|
766
765
|
nr as scrollIntoView,
|
|
767
766
|
ut as serialize,
|
|
768
767
|
tt as shareAsset,
|
|
769
768
|
Le as shimKeyframesHeightAuto,
|
|
770
769
|
Sr as sortByTopPosition,
|
|
771
770
|
N as sortTypefaceVariants,
|
|
772
|
-
|
|
773
|
-
|
|
771
|
+
va as splitBoxValues,
|
|
772
|
+
Ja as splitCamelCaseFormatted,
|
|
774
773
|
Fe as stopAnimations,
|
|
775
774
|
ne as supportHLS,
|
|
776
775
|
v as testFontAvailability,
|
|
777
776
|
be as timecodeConverter,
|
|
778
|
-
|
|
777
|
+
Ka as toCamelCase,
|
|
779
778
|
zr as toIsoDate,
|
|
780
|
-
|
|
781
|
-
|
|
779
|
+
ts as toKebabCase,
|
|
780
|
+
es as toPascalCase,
|
|
782
781
|
vt as toRelativeUrl,
|
|
783
|
-
|
|
782
|
+
rs as toTitleCase,
|
|
784
783
|
_t as toUrlPathKey,
|
|
785
784
|
Qt as toast,
|
|
786
|
-
|
|
787
|
-
|
|
785
|
+
as as truncateTextMiddle,
|
|
786
|
+
ss as unescapeXML,
|
|
788
787
|
ir as unlockBodyScrolling,
|
|
789
788
|
it as unquoteFontFamily,
|
|
790
|
-
|
|
789
|
+
os as upperFirst,
|
|
791
790
|
ze as validValidityState,
|
|
792
791
|
qe as valueMissingValidityState,
|
|
793
792
|
Re as waitForEvent,
|
package/package.json
CHANGED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { c as l } from "./capitalize.CIBKBL10.js";
|
|
2
|
-
const d = window.location.origin.includes("localhost:") ? "https://local.orangelogic.com" : window.location.origin;
|
|
3
|
-
function L(a, o, e, i = d) {
|
|
4
|
-
const n = new URL(i + "/" + a);
|
|
5
|
-
return Array.isArray(e) ? e.forEach((t) => {
|
|
6
|
-
t[1] && n.searchParams.append(t[0], t[1]);
|
|
7
|
-
}) : e && Object.keys(e).forEach((t) => {
|
|
8
|
-
e[t] && n.searchParams.append(t, e[t]);
|
|
9
|
-
}), fetch(n, o);
|
|
10
|
-
}
|
|
11
|
-
const E = "space-default";
|
|
12
|
-
var c = /* @__PURE__ */ ((a) => (a.Desktop = "desktop", a.Mobile = "mobile", a.Tablet = "tablet", a))(c || {});
|
|
13
|
-
const C = {
|
|
14
|
-
canvasWidth: "",
|
|
15
|
-
height: "",
|
|
16
|
-
id: "desktop",
|
|
17
|
-
maxWidth: "",
|
|
18
|
-
name: l(
|
|
19
|
-
"desktop"
|
|
20
|
-
/* Desktop */
|
|
21
|
-
)
|
|
22
|
-
}, u = {
|
|
23
|
-
canvasWidth: "770px",
|
|
24
|
-
height: "",
|
|
25
|
-
id: "tablet",
|
|
26
|
-
maxWidth: "1280px",
|
|
27
|
-
name: l(
|
|
28
|
-
"tablet"
|
|
29
|
-
/* Tablet */
|
|
30
|
-
)
|
|
31
|
-
}, h = {
|
|
32
|
-
canvasWidth: "320px",
|
|
33
|
-
height: "",
|
|
34
|
-
id: "mobile",
|
|
35
|
-
maxWidth: "480px",
|
|
36
|
-
name: l(
|
|
37
|
-
"mobile"
|
|
38
|
-
/* Mobile */
|
|
39
|
-
)
|
|
40
|
-
}, f = [C, u, h];
|
|
41
|
-
var A = /* @__PURE__ */ ((a) => (a.All = "ALL", a.CanDelete = "CanDelete", a.CanDownload = "CanDownload", a.CanFind = "CanFind", a.CanManageRights = "CanManageRights", a.CanMove = "CanMove", a.CanRead = "CanRead", a.CanReadAll = "CanReadAll", a.CanReadAndWrite = "CanReadAndWrite", a.CanReadLarge = "CanReadLarge", a.CanReadMedium = "CanReadMedium", a.CanReadOriginal = "CanReadOriginal", a.CanShare = "CanShare", a.CanUpload = "CanUpload", a.CanWrite = "CanWrite", a.None = "NONE", a))(A || {}), g = /* @__PURE__ */ ((a) => (a.All = "all", a.Audio = "audio", a.Image = "image", a.Other = "other", a.Video = "video", a))(g || {}), s = /* @__PURE__ */ ((a) => (a.Content = "content", a.Template = "template", a))(s || {}), R = /* @__PURE__ */ ((a) => (a.Administrator = "Administrator", a.Designer = "Designer", a.Editor = "Editor", a))(R || {}), r = /* @__PURE__ */ ((a) => (a.Accordion = "BlockAccordion", a.Analytics = "BlockAnalytics", a.Audio = "BlockAudio", a.Button = "BlockButton", a.Carousel = "BlockCarousel", a.ColorSwatches = "BlockColorSwatches", a.Column = "BlockCell", a.ColumnGroup = "BlockColumns", a.DamView = "BlockDamView", a.Divider = "BlockDivider", a.DocumentViewer = "BlockDocumentViewer", a.FontKit = "BlockFontKit", a.Gallery = "BlockGallery", a.Header = "BlockHeader", a.Image = "BlockImage", a.RichText = "BlockRichText", a.SearchBox = "BlockSearchBox", a.TabGroup = "BlockTabs", a.Text = "BlockText", a.Timeline = "BlockTimeline", a.Video = "BlockVideo", a))(r || {});
|
|
42
|
-
const B = Object.values(r).filter(
|
|
43
|
-
(a) => a !== "BlockCell"
|
|
44
|
-
/* Column */
|
|
45
|
-
);
|
|
46
|
-
var b = /* @__PURE__ */ ((a) => (a.Carousel = "carousel", a.Gallery = "gallery", a))(b || {}), v = /* @__PURE__ */ ((a) => (a.Templates = "TEMPLATES", a.TranslatableAttributes = "TRANSLATABLE_ATTRIBUTES", a.TranslatableTexts = "TRANSLATABLE_TEXTS", a))(v || {});
|
|
47
|
-
export {
|
|
48
|
-
g as A,
|
|
49
|
-
r as B,
|
|
50
|
-
c as D,
|
|
51
|
-
s as E,
|
|
52
|
-
A as P,
|
|
53
|
-
E as S,
|
|
54
|
-
R as T,
|
|
55
|
-
b as a,
|
|
56
|
-
v as b,
|
|
57
|
-
B as c,
|
|
58
|
-
f as d,
|
|
59
|
-
L as f
|
|
60
|
-
};
|