@orangelogic/design-system 2.191.0 → 2.193.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 (62) hide show
  1. package/library/chunks/{asset-link-format.CEDcHah6.js → asset-link-format.BX1hdLgZ.js} +1249 -1083
  2. package/library/chunks/{color-swatch-group.tnhiQ0jp.js → color-swatch-group.BpEQJM1b.js} +4 -3
  3. package/library/chunks/{confirm-popover.CrQKEChc.js → confirm-popover.jCP9CdcD.js} +1 -1
  4. package/library/chunks/content-builder.BX4pHujE.js +60 -0
  5. package/library/chunks/{dialog.CWGtufDA.js → dialog.B6hZ7fvn.js} +2 -2
  6. package/library/chunks/{document-viewer.C90j1Xrr.js → document-viewer.DZsbpf0x.js} +3 -2
  7. package/library/chunks/{image.CTMzUqCC.js → image.BSvc6eti.js} +194 -191
  8. package/library/chunks/{toast.CXEAfCvN.js → toast.C5Ir5yKA.js} +1 -1
  9. package/library/chunks/transformation.CkwgrwKQ.js +312 -0
  10. package/library/components/asset-link-format.js +2 -2
  11. package/library/components/atoms.js +3 -3
  12. package/library/components/color-swatch-group.js +3 -3
  13. package/library/components/confirm-popover.js +2 -2
  14. package/library/components/cropper.js +1 -1
  15. package/library/components/dialog.js +1 -1
  16. package/library/components/document-viewer.js +2 -2
  17. package/library/components/drawer.js +2 -2
  18. package/library/components/file-on-demand.js +2 -2
  19. package/library/components/image.js +2 -3
  20. package/library/components/masonry.js +110 -79
  21. package/library/components/molecules.js +1 -1
  22. package/library/components/organisms.js +2 -2
  23. package/library/components/popup.js +100 -97
  24. package/library/components/select.js +16 -11
  25. package/library/components/types.js +22562 -22239
  26. package/library/components/video.js +1 -1
  27. package/library/package.json +1 -1
  28. package/library/packages/atoms/src/components/image/image.d.ts +38 -4
  29. package/library/packages/atoms/src/components/popup/popup.d.ts +11 -0
  30. package/library/packages/atoms/src/components/select/select.d.ts +8 -0
  31. package/library/packages/events/src/cx-asset-transformation-dialog-confirm.d.ts +2 -0
  32. package/library/packages/molecules/src/cropper/cropper.d.ts +0 -1
  33. package/library/packages/molecules/src/cropper/react/Cropper.d.ts +0 -1
  34. package/library/packages/molecules/src/gallery-item/gallery-item.d.ts +10 -0
  35. package/library/packages/molecules/src/masonry/masonry.d.ts +24 -0
  36. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +46 -2
  37. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-proxy/asset-link-format-proxy.d.ts +36 -1
  38. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +20 -2
  39. package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +101 -0
  40. package/library/packages/organisms/src/carousel/carousel.d.ts +26 -0
  41. package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +67 -1
  42. package/library/packages/organisms/src/content-builder/blocks/video/video.d.ts +5 -0
  43. package/library/packages/organisms/src/content-builder/components/config-form/config-form.d.ts +2 -1
  44. package/library/packages/organisms/src/content-builder/components/gallery-picker/gallery-picker.d.ts +6 -0
  45. package/library/packages/organisms/src/content-builder/configs/carousel.d.ts +1 -0
  46. package/library/packages/organisms/src/content-builder/configs/gallery.d.ts +1 -0
  47. package/library/packages/organisms/src/content-builder/configs/image.d.ts +2 -0
  48. package/library/packages/organisms/src/content-builder/configs/timeline.d.ts +1 -0
  49. package/library/packages/organisms/src/content-builder/configs/video.d.ts +1 -0
  50. package/library/packages/organisms/src/content-builder/configs-controller.d.ts +10 -0
  51. package/library/packages/organisms/src/content-builder/styleController.d.ts +2 -0
  52. package/library/packages/services/src/api/asset/asset.d.ts +10 -1
  53. package/library/packages/tools/src/fetch-image/fetch-image.d.ts +28 -5
  54. package/library/packages/types/src/asset-link-format.d.ts +0 -1
  55. package/library/packages/types/src/content-builder.d.ts +7 -0
  56. package/library/packages/types/src/gallery-item.d.ts +2 -0
  57. package/library/packages/types/src/masonry.d.ts +2 -0
  58. package/library/packages/utils/src/transformation/transformation.d.ts +100 -0
  59. package/library/react-web-component.d.ts +63 -7
  60. package/library/utils.js +193 -182
  61. package/package.json +1 -1
  62. package/library/chunks/transformation.8uLv6uwG.js +0 -264
@@ -4,10 +4,10 @@ import { n as m, C as Pe } from "./lib-cortex-element.CVMmyPMC.js";
4
4
  import { C as Ir, a as es } from "./color-swatch.D6Gg5bpz.js";
5
5
  import { c as $e } from "./component.styles.CRO4Odto.js";
6
6
  import { C as Et } from "./button.BnkkUqiI.js";
7
- import { C as xn, o as Rn, O as Sn } from "./dialog.CWGtufDA.js";
7
+ import { C as xn, o as Rn, O as Sn } from "./dialog.B6hZ7fvn.js";
8
8
  import { C as oi } from "./icon-button.CVrxJcZq.js";
9
9
  import Pt from "../components/tooltip.js";
10
- import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.CXEAfCvN.js";
10
+ import { i as Hr, r as kn, f as Jt, m as Tn, a as Dn, t as Nr, g as Mn, b as Fn, c as Ln } from "./toast.C5Ir5yKA.js";
11
11
  import { c as Ie } from "./custom-element.L4WJXn1j.js";
12
12
  import { L as tt } from "./i18n.DbXTTLXx.js";
13
13
  import { b as zn, S as _n, c as No, p as On, w as V, E as An } from "./watch.DJF5K-8U.js";
@@ -47,7 +47,8 @@ import "./browser.BHOCIF_A.js";
47
47
  import "./form.DSsy3Fcy.js";
48
48
  import "./purify.es.BIuh5IAZ.js";
49
49
  import { D as Ur, a as sa, t as oa, b as Kr } from "./date-picker.BGHn6qg8.js";
50
- import { D as Ti } from "./transformation.8uLv6uwG.js";
50
+ import { D as Ti } from "./content-builder.BX4pHujE.js";
51
+ import "./transformation.CkwgrwKQ.js";
51
52
  import { s as P, h as Bo, b as Ui, c as lo } from "./string.CfI2ejyR.js";
52
53
  import { a as ra } from "./_commonjsHelpers.DQNKXVTB.js";
53
54
  import { d as na } from "./debounce.Bv1rtE8D.js";
@@ -1,5 +1,5 @@
1
1
  import { C as _ } from "./button.BnkkUqiI.js";
2
- import { C as u, D as h } from "./dialog.CWGtufDA.js";
2
+ import { C as u, D as h } from "./dialog.B6hZ7fvn.js";
3
3
  import g from "../components/dropdown.js";
4
4
  import { C as x } from "./typography.IqHbnd3C.js";
5
5
  import { n as e, C as b } from "./lib-cortex-element.CVMmyPMC.js";
@@ -0,0 +1,60 @@
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
+ };
@@ -1483,7 +1483,7 @@ let Z = class extends hr {
1483
1483
  this.popup.hidden = !this.open, this.open && (this.addOpenListeners(), this.modal.activate(), (!this.boundary || this.boundary === document.body) && ss(this)), this.updatePopupAnchor();
1484
1484
  }
1485
1485
  disconnectedCallback() {
1486
- super.disconnectedCallback(), this.modal.deactivate(), (!this.boundary || this.boundary === document.body) && rs(this), this.removeOpenListeners(), window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null;
1486
+ super.disconnectedCallback(), this.modal.deactivate(), this.originalTrigger = null, (!this.boundary || this.boundary === document.body) && rs(this), this.removeOpenListeners(), window.removeEventListener("resize", this.handleWindowResize), this.boundaryObserver?.disconnect(), this.boundaryObserver = null;
1487
1487
  }
1488
1488
  shouldUpdate(t) {
1489
1489
  if (t.has("boundary")) {
@@ -1644,7 +1644,7 @@ let Z = class extends hr {
1644
1644
  })
1645
1645
  ]), this.overlay && (this.overlay.hidden = !1), this.panel.hidden = !1, (!this.boundary || this.boundary === document.body) && rs(this);
1646
1646
  const o = this.originalTrigger;
1647
- typeof o?.focus == "function" && setTimeout(() => o.focus()), this.emit("cx-after-hide");
1647
+ this.originalTrigger = null, typeof o?.focus == "function" && setTimeout(() => o.focus()), this.emit("cx-after-hide");
1648
1648
  }
1649
1649
  }
1650
1650
  /** Shows the dialog. */
@@ -23,8 +23,9 @@ import { L as LocalizeController } from "./i18n.DbXTTLXx.js";
23
23
  import "./purify.es.BIuh5IAZ.js";
24
24
  import { w as watch } from "./watch.DJF5K-8U.js";
25
25
  import "./date-picker.BGHn6qg8.js";
26
- import { f as fetchCortexApi } from "./transformation.8uLv6uwG.js";
26
+ import { f as fetchCortexApi } from "./content-builder.BX4pHujE.js";
27
27
  import "./unsafe-html.Dff7-rCx.js";
28
+ import "./transformation.CkwgrwKQ.js";
28
29
  import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
29
30
  import { a as getDefaultExportFromCjs, c as commonjsGlobal } from "./_commonjsHelpers.DQNKXVTB.js";
30
31
  import { r as require$$0 } from "./___vite-browser-external_commonjs-proxy.C2tf3HsQ.js";
@@ -34,7 +35,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
34
35
  import { r as r$1 } from "./state.CSDxrqLd.js";
35
36
  import { e } from "./class-map.BiVq-cVR.js";
36
37
  import { n as n$1 } from "./when.Dr1es41R.js";
37
- import { C as CxImage } from "./image.CTMzUqCC.js";
38
+ import { C as CxImage } from "./image.BSvc6eti.js";
38
39
  var BookReaderMode$1 = /* @__PURE__ */ ((l) => (l.Image = "Image", l.Pdf = "Pdf", l))(BookReaderMode$1 || {}), BookReaderViewMode = /* @__PURE__ */ ((l) => (l.FourPage = "FourPage", l.OnePage = "OnePage", l.TwoPage = "TwoPage", l))(BookReaderViewMode || {});
39
40
  function commonjsRequire(l) {
40
41
  throw new Error('Could not dynamically require "' + l + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');