@orangelogic/design-system 2.196.0 → 2.198.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.
Files changed (31) hide show
  1. package/library/chunks/{asset-link-format.BFxmPgwt.js → asset-link-format.B_Im2jz7.js} +643 -639
  2. package/library/chunks/{color-swatch-group.C0BXFL4I.js → color-swatch-group.DyOxAUOC.js} +2 -2
  3. package/library/chunks/{document-viewer.C5IT7M61.js → document-viewer.CRuqeIIg.js} +2 -2
  4. package/library/chunks/{header.CWlWNree.js → header.Cbu_nxls.js} +1 -1
  5. package/library/chunks/{image.BSvc6eti.js → image.ZANuNTs8.js} +1 -1
  6. package/library/chunks/{toast.COzwhRI6.js → toast.hZJztBTm.js} +1 -1
  7. package/library/chunks/transformation.DHEr6Kf3.js +385 -0
  8. package/library/components/asset-link-format.js +2 -2
  9. package/library/components/atoms.js +3 -3
  10. package/library/components/color-swatch-group.js +3 -3
  11. package/library/components/document-viewer.js +2 -2
  12. package/library/components/header.js +1 -1
  13. package/library/components/image.js +1 -1
  14. package/library/components/masonry.js +1 -1
  15. package/library/components/organisms.js +2 -2
  16. package/library/components/types.js +12756 -12824
  17. package/library/components/video.js +1 -1
  18. package/library/package.json +1 -1
  19. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +2 -0
  20. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +1 -0
  21. package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +0 -25
  22. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +8 -0
  23. package/library/packages/organisms/src/content-builder/content-builder.d.ts +39 -25
  24. package/library/packages/organisms/src/content-builder/plugins/plugin-factory.d.ts +0 -5
  25. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +10 -0
  26. package/library/packages/types/src/content-builder.d.ts +0 -5
  27. package/library/packages/utils/src/transformation/transformation.d.ts +10 -29
  28. package/library/react-web-component.d.ts +6 -6
  29. package/library/utils.js +94 -95
  30. package/package.json +1 -1
  31. package/library/chunks/transformation.CkEA7Ymz.js +0 -392
package/library/utils.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { b as k } from "./chunks/url.CGdWC06g.js";
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.COzwhRI6.js";
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.hZJztBTm.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
- import { a as ye, g as Ae } from "./chunks/active-elements.jTVWtBDp.js";
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";
6
+ import { a as Ce, g as ye } from "./chunks/active-elements.jTVWtBDp.js";
7
+ import { a as Ae, 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";
10
10
  import { d as ke } from "./chunks/debounce.DaHuiSGU.js";
@@ -17,35 +17,35 @@ 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 A } from "./chunks/dom.gRV2cDjL.js";
20
+ import { k as y } 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 Ar, a as Cr, g as xr } from "./chunks/slot.j5oheLJC.js";
22
+ import { H as yr, a as xr, g as Ar } 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 { 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";
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.DHEr6Kf3.js";
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
+ import { b as Ma, e as Sa } from "./chunks/waveform.1U9U_0rd.js";
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";
33
+ import { s as Va } from "./chunks/parse.Cu5nBDTb.js";
34
+ import { b as _a, n as ka, d as Ua, e as Ya, f as Na, y as Pa, o as Wa, g as Xa, h as Ha, l as Ba, p as Ga, z as $a, x as za, a as qa, c as Qa, s as Za, w as ja, r as Ja, t as Ka, q as ts, v as es, i as rs, m as as, u as ss } from "./chunks/string.CfI2ejyR.js";
35
+ import { g as ns, a as is } from "./chunks/template.ClovJacp.js";
36
+ import { c as cs, f as us, a as ms, g as fs } from "./chunks/time.DYWuX2id.js";
37
37
  function n(t) {
38
38
  const e = t.getFullYear(), r = String(t.getMonth() + 1).padStart(2, "0"), s = String(t.getDate()).padStart(2, "0");
39
39
  return `${e}-${r}-${s}`;
40
40
  }
41
- function C(t) {
41
+ function x(t) {
42
42
  const e = String(t.getHours()).padStart(2, "0"), r = String(t.getMinutes()).padStart(2, "0"), s = String(t.getSeconds()).padStart(2, "0");
43
43
  return `${e}:${r}:${s}`;
44
44
  }
45
45
  function h(t, e) {
46
46
  return new Date(t.getFullYear(), t.getMonth(), t.getDate() + e);
47
47
  }
48
- function x(t) {
48
+ function A(t) {
49
49
  const e = t.getDay(), r = e === 0 ? -6 : 1 - e;
50
50
  return h(t, r);
51
51
  }
@@ -86,9 +86,9 @@ class Q {
86
86
  const a = new Date(r.getTime() - 18e5);
87
87
  return {
88
88
  fromDate: n(a),
89
- fromTime: C(a),
89
+ fromTime: x(a),
90
90
  toDate: s,
91
- toTime: C(r)
91
+ toTime: x(r)
92
92
  };
93
93
  }
94
94
  case c.today:
@@ -136,7 +136,7 @@ class Q {
136
136
  toTime: u
137
137
  };
138
138
  case c.thisWeek: {
139
- const a = x(r);
139
+ const a = A(r);
140
140
  return {
141
141
  fromDate: n(a),
142
142
  fromTime: m,
@@ -145,7 +145,7 @@ class Q {
145
145
  };
146
146
  }
147
147
  case c.lastWeek: {
148
- const a = h(x(r), -7);
148
+ const a = h(A(r), -7);
149
149
  return {
150
150
  fromDate: n(a),
151
151
  fromTime: m,
@@ -289,14 +289,14 @@ function et(t, e) {
289
289
  }
290
290
  class rt {
291
291
  constructor(e) {
292
- this.currentZIndex = A(), (this.host = e).addController(this);
292
+ this.currentZIndex = y(), (this.host = e).addController(this);
293
293
  }
294
294
  hostConnected() {
295
295
  }
296
296
  hostDisconnected() {
297
297
  }
298
298
  async activatePopup() {
299
- this.currentZIndex = A();
299
+ this.currentZIndex = y();
300
300
  }
301
301
  }
302
302
  class at {
@@ -546,8 +546,8 @@ async function* Mt({
546
546
  const T = g * i + d, D = T * s;
547
547
  if (D >= r)
548
548
  continue;
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(
549
+ const w = d * p, M = g * l, S = H(t[a] ?? [], d, g), C = d === i - 1 && g === f - 1 || D + s >= r;
550
+ S ? yield { ...S, isLastFrame: C } : (await B(o, D, s), _.drawImage(
551
551
  o,
552
552
  w,
553
553
  M,
@@ -559,7 +559,7 @@ async function* Mt({
559
559
  frameHeight: l,
560
560
  frameWidth: p,
561
561
  index: T,
562
- isLastFrame: y,
562
+ isLastFrame: C,
563
563
  row: g,
564
564
  rows: f,
565
565
  time: Number(D.toFixed(X)),
@@ -592,41 +592,40 @@ export {
592
592
  Be as FormControlController,
593
593
  ue as HEX_ALPHA_VALIDATION_REGEX,
594
594
  me as HEX_VALIDATION_REGEX,
595
- Ar as HasSlotController,
595
+ yr as HasSlotController,
596
596
  ft as HistoryManager,
597
597
  W as KeyboardKey,
598
598
  Ze as LocalizeController,
599
599
  X as PRECISION,
600
- Ct as RELATIVE_URL_REGEX,
600
+ xt as RELATIVE_URL_REGEX,
601
601
  fe as RGB_VALIDATION_REGEX,
602
602
  Jr as SRCSET_WIDTH_LADDER,
603
- xt as URL_DOMAIN_VALIDATION_REGEX,
603
+ At as URL_DOMAIN_VALIDATION_REGEX,
604
604
  Et as URL_INTRANET_DOMAIN_VALIDATION_REGEX,
605
605
  It as URL_PROTOCOL_VALIDATION_REGEX,
606
606
  Lt as URL_VALIDATION_REGEX,
607
- ye as activeElements,
607
+ Ce as activeElements,
608
608
  kr as addMonths,
609
609
  Ut as adjustRelativeValues,
610
- xe as animateTo,
610
+ Ae as animateTo,
611
611
  k as appendProtocol,
612
612
  Ft as appendQueryParam,
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,
613
+ Kr as applyTransformationsToUrl,
614
+ ta as applyWidthToAssetUrl,
615
+ ea as buildAssetSrcset,
616
+ ra as buildSizesFromDisplayWidth,
617
+ aa as buildTransformationString,
618
+ Ma as buildWaveformPath,
619
+ ua as calculateAspectRatioFit,
621
620
  Ke as clamp,
622
- fa as cleanImageFileName,
623
- us as clearZeroDurationParts,
621
+ ma as cleanImageFileName,
622
+ cs as clearZeroDurationParts,
624
623
  he as convertColor,
625
- Ca as convertDataUnits,
624
+ ya as convertDataUnits,
626
625
  xa as convertDurationToMilliseconds,
627
- Ea as convertPixelsToAspectRatio,
628
- ha as convertSrcToBlob,
629
- ga as cropImage,
626
+ Aa as convertPixelsToAspectRatio,
627
+ fa as convertSrcToBlob,
628
+ ha as cropImage,
630
629
  cr as cssValueToPx,
631
630
  ve as customElement,
632
631
  Ge as customErrorValidityState,
@@ -634,15 +633,15 @@ export {
634
633
  Ye as defaultValue,
635
634
  et as downloadAsset,
636
635
  Pe as drag,
637
- ka as emptyToSpace,
638
- Ua as escapeXML,
636
+ _a as emptyToSpace,
637
+ ka as escapeXML,
639
638
  ge as extractColor,
640
- Ya as extractExtension,
639
+ Ua as extractExtension,
641
640
  Mt as extractFrames,
642
- Na as extractRootData,
643
- Ia as extractValueAndUnit,
644
- ya as extractWaveformPeaks,
645
- oa as fetchCortexApi,
641
+ Ya as extractRootData,
642
+ Ea as extractValueAndUnit,
643
+ Sa as extractWaveformPeaks,
644
+ sa as fetchCortexApi,
646
645
  jt as findAncestorWithBuggyStyle,
647
646
  Jt as findContainingBlock,
648
647
  Kt as findCuttingAncestor,
@@ -650,54 +649,54 @@ export {
650
649
  Yt as findIndexByProp,
651
650
  Xe as focusWhenVisible,
652
651
  U as formCollections,
653
- La as formatAspectRatioString,
654
- ms as formatDurationPartsManually,
652
+ Ia as formatAspectRatioString,
653
+ us as formatDurationPartsManually,
655
654
  Ur as formatIsoToDisplay,
656
655
  Yr as formatMonthYearLabel,
657
- Fa as formatNumberWithGrouping,
658
- Pa as formatSecondsToTime,
659
- Wa as formatTimeToSeconds,
660
- fs as formatWithIntlDurationFormat,
661
- Ra as gcd,
656
+ La as formatNumberWithGrouping,
657
+ Na as formatSecondsToTime,
658
+ Pa as formatTimeToSeconds,
659
+ ms as formatWithIntlDurationFormat,
660
+ Fa as gcd,
662
661
  ur as getActiveElement,
663
662
  rr as getActiveModals,
664
663
  $e as getAssociatedForm,
665
664
  mr as getAttributes,
666
- Xa as getAttributesString,
665
+ Wa as getAttributesString,
667
666
  Nt as getBreakpointsFromCSS,
668
667
  ct as getBrowserFontVariants,
669
668
  de as getColorType,
670
- da as getContainedImageSize,
669
+ ga as getContainedImageSize,
671
670
  fr as getCortexPopupLayer,
672
- A as getCurrentZIndex,
671
+ y as getCurrentZIndex,
673
672
  Nr as getDateMask,
674
- Ae as getDeepestActiveElement,
673
+ ye as getDeepestActiveElement,
675
674
  Pt as getDeviceType,
676
- hs as getDurationPartsByUnitsFormat,
675
+ fs as getDurationPartsByUnitsFormat,
677
676
  hr as getElementFromHTMLString,
678
677
  gr as getElementFromTemplate,
679
678
  Pr as getFirstDayOfWeek,
680
679
  nt as getFontFamilyOptionValue,
681
680
  P as getFormControls,
682
- is as getHighlightedTitle,
683
- ls as getHighlightedTitleHtml,
684
- Cr as getInnerHTML,
681
+ ns as getHighlightedTitle,
682
+ is as getHighlightedTitleHtml,
683
+ xr as getInnerHTML,
685
684
  St as getInterval,
686
685
  pe as getLightDarkCssString,
687
- pa as getNaturalWidthHeight,
686
+ da as getNaturalWidthHeight,
688
687
  dr as getNeededPaddingForBoxShadow,
689
688
  te as getNextAncestor,
690
689
  sr as getOffset,
691
690
  pr as getRelativeClickPercentage,
692
- Ha as getRootIDString,
691
+ Xa as getRootIDString,
693
692
  Ir as getTabbableBoundary,
694
693
  Lr as getTabbableElements,
695
- xr as getTextContent,
694
+ Ar as getTextContent,
696
695
  Wr as getTodayIsoDate,
697
696
  ot as getTypefaceOptionValue,
698
697
  Wt as groupBy,
699
- na as hasTransformSegment,
700
- Ba as htmlToPlainText,
698
+ oa as hasTransformSegment,
699
+ Ha as htmlToPlainText,
701
700
  Xt as insertAtIndex,
702
701
  wt as insertFrameToCache,
703
702
  Ht as insertMultipleAtIndex,
@@ -709,12 +708,12 @@ export {
709
708
  re as isFirefox,
710
709
  lt as isFontFamilyAvailable,
711
710
  mt as isFormInteracted,
712
- Ga as isGalleryItemCardType,
711
+ Ba as isGalleryItemCardType,
713
712
  ae as isIOS,
714
713
  wr as isInElement,
715
714
  st as isModKey,
716
715
  se as isSafari,
717
- Da as isSaveSrcValid,
716
+ pa as isSaveSrcValid,
718
717
  Ot as isValidDomainOrIntranetUrl,
719
718
  Xr as isValidIsoDate,
720
719
  bt as isValidUrl,
@@ -731,12 +730,12 @@ export {
731
730
  j as openAssetOverview,
732
731
  J as openFolderOverview,
733
732
  K as openLink,
734
- $a as padPath,
735
- za as parseBooleanString,
733
+ Ga as padPath,
734
+ $a as parseBooleanString,
736
735
  Te as parseBorder,
737
736
  Gr as parseDisplayToIso,
738
737
  Ee as parseDuration,
739
- ia as parseFileSizeToBytes,
738
+ na as parseFileSizeToBytes,
740
739
  $r as parseIsoDate,
741
740
  dt as parseJsonString,
742
741
  we as parseLightDark,
@@ -748,45 +747,45 @@ export {
748
747
  tr as quantizeLargestRemainder,
749
748
  Y as quoteFontFamily,
750
749
  Dt as readLocalStorageValue,
751
- qa as reducePathToDirectChild,
750
+ za as reducePathToDirectChild,
752
751
  je as registerTranslation,
753
752
  zt as removeAtIndex,
754
753
  qt as removeMultipleAtIndex,
755
- Ta as resizeImage,
756
- la as resolveAutoFormat,
757
- ca as resolveAutoMaxWidth,
754
+ Da as resizeImage,
755
+ ia as resolveAutoFormat,
756
+ la as resolveAutoMaxWidth,
758
757
  Vt as resolveSpaceUrl,
759
- Oa as rotateBox,
760
- wa as rotateImage,
761
- Qa as safeExtension,
762
- Za as safeString,
763
- ja as sanitizeHTML,
764
- ba as sanitizeRotation,
758
+ Ra as rotateBox,
759
+ Ta as rotateImage,
760
+ qa as safeExtension,
761
+ Qa as safeString,
762
+ Za as sanitizeHTML,
763
+ Oa as sanitizeRotation,
765
764
  nr as scrollIntoView,
766
765
  ut as serialize,
767
766
  tt as shareAsset,
768
767
  Le as shimKeyframesHeightAuto,
769
768
  Sr as sortByTopPosition,
770
769
  N as sortTypefaceVariants,
771
- va as splitBoxValues,
772
- Ja as splitCamelCaseFormatted,
770
+ Va as splitBoxValues,
771
+ ja as splitCamelCaseFormatted,
773
772
  Fe as stopAnimations,
774
773
  ne as supportHLS,
775
774
  v as testFontAvailability,
776
775
  be as timecodeConverter,
777
- Ka as toCamelCase,
776
+ Ja as toCamelCase,
778
777
  zr as toIsoDate,
779
- ts as toKebabCase,
780
- es as toPascalCase,
778
+ Ka as toKebabCase,
779
+ ts as toPascalCase,
781
780
  vt as toRelativeUrl,
782
- rs as toTitleCase,
781
+ es as toTitleCase,
783
782
  _t as toUrlPathKey,
784
783
  Qt as toast,
785
- as as truncateTextMiddle,
786
- ss as unescapeXML,
784
+ rs as truncateTextMiddle,
785
+ as as unescapeXML,
787
786
  ir as unlockBodyScrolling,
788
787
  it as unquoteFontFamily,
789
- os as upperFirst,
788
+ ss as upperFirst,
790
789
  ze as validValidityState,
791
790
  qe as valueMissingValidityState,
792
791
  Re as waitForEvent,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@orangelogic/design-system",
3
3
  "type": "module",
4
- "version": "2.196.0",
4
+ "version": "2.198.0",
5
5
  "license": "UNLICENSED",
6
6
  "types": "library/types.d.ts",
7
7
  "scripts": {