@orangelogic/design-system 3.20.0 → 4.0.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.BnE0FbUH.js → asset-link-format.ttcRQgDc.js} +1 -1
- package/library/chunks/{color-swatch-group.GEu5gVrg.js → color-swatch-group.Bumfw-G2.js} +2 -2
- package/library/chunks/{document-viewer.Bkf3JbWk.js → document-viewer.C9tM2Gc7.js} +1 -1
- package/library/chunks/{folder-select.D8_6pC8Y.js → folder-select.BAPsI-gg.js} +1 -1
- package/library/chunks/{index.Ct-dh3Y5.js → index.Coy2OPB4.js} +5 -5
- package/library/chunks/{toast.CGIDPKV8.js → toast.BxiewnAG.js} +1 -1
- package/library/chunks/{transformation.OaRYixzE.js → transformation.CjWnFhab.js} +12 -11
- package/library/chunks/{tree.DB-QLic1.js → tree.B7IKBX3n.js} +6 -3
- package/library/chunks/{types.DrJgdbwu.js → types.DVZ_cbKn.js} +14162 -13849
- package/library/components/asset-link-format.js +2 -2
- package/library/components/atoms.js +2 -2
- package/library/components/audio.js +1 -1
- package/library/components/color-swatch-group.js +3 -3
- package/library/components/document-viewer.js +1 -1
- package/library/components/file-on-demand.js +1 -1
- package/library/components/folder-select.js +2 -2
- package/library/components/molecules.js +1 -1
- package/library/components/mutation-observer.js +1 -1
- package/library/components/organisms.js +2 -2
- package/library/components/tree-item.js +1 -1
- package/library/components/tree.js +1 -1
- package/library/components/types.js +152 -151
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/atoms/src/components/audio/audio.d.ts +1 -0
- package/library/packages/atoms/src/components/tree/tree.d.ts +2 -2
- package/library/packages/atoms/src/components/video/video.d.ts +1 -0
- package/library/packages/organisms/src/bento-grid/bento-grid.d.ts +32 -11
- package/library/packages/organisms/src/content-builder/blocks/audio/audio.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/blocks/image/image.d.ts +27 -4
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +12 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +150 -0
- package/library/packages/organisms/src/content-builder/content-builder.utils.d.ts +20 -0
- package/library/packages/organisms/src/content-builder/plugins/wrapper-container.d.ts +11 -0
- package/library/packages/organisms/src/content-builder-viewer/content-builder-viewer.d.ts +10 -2
- package/library/packages/utils/src/transformation/transformation.d.ts +2 -0
- package/library/react-web-component.d.ts +4 -0
- package/library/utils.js +109 -108
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ import "./form.DN2v7-DH.js";
|
|
|
10
10
|
import { L as V } from "./i18n.rtxrs1c1.js";
|
|
11
11
|
import { a as ie } from "./string.Demn8Xmk.js";
|
|
12
12
|
import "./date-picker.BGHn6qg8.js";
|
|
13
|
-
import { a as bt, r as Lt, b as se, c as ae, d as lt } from "./transformation.
|
|
13
|
+
import { a as bt, r as Lt, b as se, c as ae, d as lt } from "./transformation.CjWnFhab.js";
|
|
14
14
|
import "./unsafe-html.Dff7-rCx.js";
|
|
15
15
|
import { b as oe } from "./_baseUniq.lwMgmtt2.js";
|
|
16
16
|
import { c as G } from "./component.styles.CAS3c9pM.js";
|
|
@@ -25,7 +25,7 @@ import { e as Xe } from "./class-map.BiVq-cVR.js";
|
|
|
25
25
|
import { c as qe } from "./repeat.CFjcER6_.js";
|
|
26
26
|
import { n as q } from "./when.Dr1es41R.js";
|
|
27
27
|
import { o as J } from "./if-defined.BRoBj_Rp.js";
|
|
28
|
-
import { i as Qr, r as Xn, f as Yt, m as Jn, a as Yn, t as en, g as Zn, b as Qn, c as ea } from "./toast.
|
|
28
|
+
import { i as Qr, r as Xn, f as Yt, m as Jn, a as Yn, t as en, g as Zn, b as Qn, c as ea } from "./toast.BxiewnAG.js";
|
|
29
29
|
import { e as pe } from "./query.BBf1UFkC.js";
|
|
30
30
|
import { a as ta, b as ia } from "./_baseXor.DixEm6JQ.js";
|
|
31
31
|
import { a as Ki, i as Ot, b as tn } from "./isArrayLikeObject.D7afXo-f.js";
|
|
@@ -53,7 +53,7 @@ import { g as $, a as Go } from "./dom.DL-cNKsj.js";
|
|
|
53
53
|
import "./browser.BHOCIF_A.js";
|
|
54
54
|
import "./form.DN2v7-DH.js";
|
|
55
55
|
import "./purify.es.BIuh5IAZ.js";
|
|
56
|
-
import { D as Mi } from "./transformation.
|
|
56
|
+
import { D as Mi } from "./transformation.CjWnFhab.js";
|
|
57
57
|
import { s as P, h as Uo, b as Xi, c as po } from "./string.Demn8Xmk.js";
|
|
58
58
|
import { a as Ca } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
59
59
|
import { d as Ea } from "./debounce.Bv1rtE8D.js";
|
|
@@ -23,7 +23,7 @@ import { L as LocalizeController } from "./i18n.rtxrs1c1.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.
|
|
26
|
+
import { f as fetchCortexApi } from "./transformation.CjWnFhab.js";
|
|
27
27
|
import "./unsafe-html.Dff7-rCx.js";
|
|
28
28
|
import { r as reactExports, a as React, j as jsxRuntimeExports, w, R as ReactDOM } from "./jsx-runtime.CTpPVMxj.js";
|
|
29
29
|
import { a as getDefaultExportFromCjs, c as commonjsGlobal } from "./_commonjsHelpers.DQNKXVTB.js";
|
|
@@ -3,7 +3,7 @@ import { C as me } from "./input.D1FFprPl.js";
|
|
|
3
3
|
import se from "../components/line-clamp.js";
|
|
4
4
|
import ye from "../components/select.js";
|
|
5
5
|
import ge from "../components/tag.js";
|
|
6
|
-
import { C as F, a as xe } from "./tree.
|
|
6
|
+
import { C as F, a as xe } from "./tree.B7IKBX3n.js";
|
|
7
7
|
import { n as s, C as N } from "./lib-cortex-element.CVMmyPMC.js";
|
|
8
8
|
import { h as A, F as be, A as $e } from "./endpoints.mJ5S-tIs.js";
|
|
9
9
|
import { M as P } from "./asset-link-format.ClaYu_v8.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { C as Q } from "./typography.T72DuoCa.js";
|
|
2
2
|
import { n as y, C as ee } from "./lib-cortex-element.CVMmyPMC.js";
|
|
3
3
|
import { c as ae } from "./component.styles.CAS3c9pM.js";
|
|
4
|
-
import { C as Ee, s as ve, F as Z, a as Ce } from "./folder-select.
|
|
5
|
-
import { e as U, r as n1, S as m1, E as le } from "./transformation.
|
|
4
|
+
import { C as Ee, s as ve, F as Z, a as Ce } from "./folder-select.BAPsI-gg.js";
|
|
5
|
+
import { e as U, r as n1, S as m1, E as le } from "./transformation.CjWnFhab.js";
|
|
6
6
|
import { c as ie } from "./custom-element.L4WJXn1j.js";
|
|
7
7
|
import { L as W } from "./i18n.rtxrs1c1.js";
|
|
8
8
|
import { w as O } from "./watch.DJF5K-8U.js";
|
|
@@ -13,7 +13,7 @@ import { b as Ke } from "./_baseIteratee.sC2wLi2m.js";
|
|
|
13
13
|
import { a as d1 } from "./toString.B1zKIiZc.js";
|
|
14
14
|
import { b as s1 } from "./cloneDeep.tKGbEwzn.js";
|
|
15
15
|
import { c as o1 } from "./_baseClone.ipmFlCAx.js";
|
|
16
|
-
import { I as je, C as Ve, a as h1, b as He, S as z, D as g1, c as l1, A as Ie, g as C1, i as y1, F as x1, d as b1, t as k1, e as p1, f as u1, h as f1, j as A1, k as B1, l as D1, m as F1, n as E1, o as v1, p as $1, q as w1, r as S1, O as _1 } from "./types.
|
|
16
|
+
import { I as je, C as Ve, a as h1, b as He, S as z, D as g1, c as l1, A as Ie, g as C1, i as y1, F as x1, d as b1, t as k1, e as p1, f as u1, h as f1, j as A1, k as B1, l as D1, m as F1, n as E1, o as v1, p as $1, q as w1, r as S1, O as _1 } from "./types.DVZ_cbKn.js";
|
|
17
17
|
import { C as ce } from "./button.D1YIxtv-.js";
|
|
18
18
|
import I1 from "../components/button-group.js";
|
|
19
19
|
import P1 from "../components/card.js";
|
|
@@ -59,11 +59,11 @@ import { n as v } from "./when.Dr1es41R.js";
|
|
|
59
59
|
import { a as l0 } from "./_baseXor.DixEm6JQ.js";
|
|
60
60
|
import { a as C0, i as Le, b as y0 } from "./isArrayLikeObject.D7afXo-f.js";
|
|
61
61
|
import { i as x0 } from "./isEmpty.DtTJTUcf.js";
|
|
62
|
-
import { a as Ae, F as b0, b as k0, c as qe, d as Oe, e as p0, i as u0, f as Me, u as Be } from "./asset-link-format.
|
|
62
|
+
import { a as Ae, F as b0, b as k0, c as qe, d as Oe, e as p0, i as u0, f as Me, u as Be } from "./asset-link-format.ttcRQgDc.js";
|
|
63
63
|
import f0 from "../components/color-picker.js";
|
|
64
64
|
import { C as _e } from "./icon-button.CbUddcgI.js";
|
|
65
65
|
import A0 from "../components/spinner.js";
|
|
66
|
-
import { a as B0, d as D0 } from "./color-swatch-group.
|
|
66
|
+
import { a as B0, d as D0 } from "./color-swatch-group.Bumfw-G2.js";
|
|
67
67
|
import { c as ne, C as me, p as F0, a as E0, b as v0, g as ye } from "./color.LzSGBy7o.js";
|
|
68
68
|
import { o as e1 } from "./map.D8heArFD.js";
|
|
69
69
|
import { v as a1 } from "./v4.CKZ6klMF.js";
|
|
@@ -40,8 +40,8 @@ const w = {
|
|
|
40
40
|
/* Mobile */
|
|
41
41
|
)
|
|
42
42
|
}, re = [w, F, W];
|
|
43
|
-
var B = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(D || {}), U = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(U || {}), G = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(G || {}),
|
|
44
|
-
const se = Object.values(
|
|
43
|
+
var B = /* @__PURE__ */ ((e) => (e.All = "ALL", e.CanDelete = "CanDelete", e.CanDownload = "CanDownload", e.CanFind = "CanFind", e.CanManageRights = "CanManageRights", e.CanMove = "CanMove", e.CanRead = "CanRead", e.CanReadAll = "CanReadAll", e.CanReadAndWrite = "CanReadAndWrite", e.CanReadLarge = "CanReadLarge", e.CanReadMedium = "CanReadMedium", e.CanReadOriginal = "CanReadOriginal", e.CanShare = "CanShare", e.CanUpload = "CanUpload", e.CanWrite = "CanWrite", e.None = "NONE", e))(B || {}), D = /* @__PURE__ */ ((e) => (e.All = "all", e.Audio = "audio", e.Image = "image", e.Other = "other", e.Video = "video", e))(D || {}), U = /* @__PURE__ */ ((e) => (e.Content = "content", e.Template = "template", e))(U || {}), G = /* @__PURE__ */ ((e) => (e.Administrator = "Administrator", e.Designer = "Designer", e.Editor = "Editor", e))(G || {}), O = /* @__PURE__ */ ((e) => (e.Accordion = "BlockAccordion", e.Analytics = "BlockAnalytics", e.Audio = "BlockAudio", e.Button = "BlockButton", e.Carousel = "BlockCarousel", e.ColorSwatches = "BlockColorSwatches", e.Column = "BlockCell", e.ColumnGroup = "BlockColumns", e.DamView = "BlockDamView", e.Divider = "BlockDivider", e.DocumentViewer = "BlockDocumentViewer", e.FontKit = "BlockFontKit", e.Gallery = "BlockGallery", e.Header = "BlockHeader", e.Image = "BlockImage", e.RichText = "BlockRichText", e.SearchBox = "BlockSearchBox", e.TabGroup = "BlockTabs", e.Text = "BlockText", e.Timeline = "BlockTimeline", e.Video = "BlockVideo", e))(O || {});
|
|
44
|
+
const se = Object.values(O).filter(
|
|
45
45
|
(e) => e !== "BlockCell"
|
|
46
46
|
/* Column */
|
|
47
47
|
);
|
|
@@ -288,14 +288,14 @@ const T = "TRX", N = "TR1", Z = /* @__PURE__ */ new Set([
|
|
|
288
288
|
"tiff",
|
|
289
289
|
"webp"
|
|
290
290
|
]);
|
|
291
|
-
function
|
|
291
|
+
function I(e) {
|
|
292
292
|
if (!e)
|
|
293
293
|
return "";
|
|
294
294
|
const i = e.trim().toLowerCase();
|
|
295
295
|
return i.startsWith(".") ? i.slice(1) : i;
|
|
296
296
|
}
|
|
297
297
|
function S(e) {
|
|
298
|
-
return
|
|
298
|
+
return I(e) === "gif";
|
|
299
299
|
}
|
|
300
300
|
const J = 1e3 * 1024 * 1024, P = {
|
|
301
301
|
b: 1,
|
|
@@ -330,7 +330,7 @@ function de(e, i) {
|
|
|
330
330
|
return Number.isFinite(n) && n > 0 ? n : void 0;
|
|
331
331
|
}
|
|
332
332
|
function ue(e, i) {
|
|
333
|
-
if (!Z.has(
|
|
333
|
+
if (!Z.has(I(e)))
|
|
334
334
|
return N;
|
|
335
335
|
const n = ee(i);
|
|
336
336
|
return n !== void 0 && n > J ? N : T;
|
|
@@ -358,9 +358,10 @@ function he(e, i = 100) {
|
|
|
358
358
|
}
|
|
359
359
|
export {
|
|
360
360
|
D as A,
|
|
361
|
-
|
|
361
|
+
O as B,
|
|
362
362
|
L as D,
|
|
363
363
|
U as E,
|
|
364
|
+
T as O,
|
|
364
365
|
B as P,
|
|
365
366
|
oe as S,
|
|
366
367
|
G as T,
|
|
@@ -374,11 +375,11 @@ export {
|
|
|
374
375
|
j as h,
|
|
375
376
|
se as i,
|
|
376
377
|
re as j,
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
N as k,
|
|
379
|
+
X as l,
|
|
380
|
+
E as m,
|
|
381
|
+
q as n,
|
|
382
|
+
le as o,
|
|
382
383
|
J as p,
|
|
383
384
|
ee as q,
|
|
384
385
|
ue as r
|
|
@@ -736,7 +736,7 @@ let c = class extends F {
|
|
|
736
736
|
this.removeAttribute("dragging");
|
|
737
737
|
}
|
|
738
738
|
initSortable() {
|
|
739
|
-
this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
|
|
739
|
+
this.destroySortable(), this.addEventListener("cx-drag-start", this.handleSortableStart), this.addEventListener("cx-drag-end", this.handleSortableEnd), this.sortableInstance = v.create(this, {
|
|
740
740
|
...M({
|
|
741
741
|
group: this.getSortableGroup(),
|
|
742
742
|
onAdd: this.handleSortableUpdate,
|
|
@@ -761,8 +761,8 @@ let c = class extends F {
|
|
|
761
761
|
i.selected = !1, i.indeterminate = !1;
|
|
762
762
|
});
|
|
763
763
|
}
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
async handleSortableChange() {
|
|
765
|
+
this.sortable ? this.initSortable() : this.destroySortable();
|
|
766
766
|
}
|
|
767
767
|
/**
|
|
768
768
|
* Returns the list of tree items that are selected in the tree.
|
|
@@ -853,6 +853,9 @@ h([
|
|
|
853
853
|
h([
|
|
854
854
|
b("selection")
|
|
855
855
|
], c.prototype, "handleSelectionChange", 1);
|
|
856
|
+
h([
|
|
857
|
+
b("sortable")
|
|
858
|
+
], c.prototype, "handleSortableChange", 1);
|
|
856
859
|
c = h([
|
|
857
860
|
U("cx-tree")
|
|
858
861
|
], c);
|