@orangelogic/design-system 2.159.0 → 2.161.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/{document-viewer.DXtjdvqe.js → document-viewer.CGyOG1yw.js} +1 -1
- package/library/chunks/drag.DenOh3AE.js +39 -0
- package/library/chunks/{image.BO6NWyIo.js → image.5mhGPvMN.js} +1 -1
- package/library/chunks/url.Bd5rq4G0.js +48 -0
- package/library/components/atoms.js +2 -2
- package/library/components/color-picker.js +1 -1
- package/library/components/document-viewer.js +2 -2
- package/library/components/file-on-demand.js +1 -1
- package/library/components/image-comparer.js +1 -1
- package/library/components/image.js +2 -2
- package/library/components/masonry.js +1 -1
- package/library/components/range.js +1 -1
- package/library/components/sidebar.js +1 -1
- package/library/components/split-panel.js +1 -1
- package/library/components/types.js +19857 -19741
- package/library/components/video.js +1 -1
- package/library/package.json +1 -1
- package/library/packages/molecules/src/annotator/annotator.d.ts +14 -1
- package/library/packages/organisms/src/content-builder/components/config-manager/config-manager.d.ts +25 -0
- package/library/packages/organisms/src/content-builder/content-builder-constants.d.ts +1 -0
- package/library/packages/organisms/src/content-builder/content-builder.d.ts +41 -0
- package/library/packages/organisms/src/content-builder/plugins/plugin-factory.d.ts +5 -0
- package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -0
- package/library/packages/types/src/content-builder.d.ts +7 -0
- package/library/packages/utils/src/url/url.d.ts +7 -0
- package/library/react-web-component.d.ts +21 -1
- package/library/utils.js +215 -213
- package/package.json +1 -1
- package/library/chunks/drag.DXEXVXPv.js +0 -18
- package/library/chunks/url.-WDYqplj.js +0 -42
|
@@ -34,7 +34,7 @@ import { a as ObjectFit } from "./index.Cpamj0jB.js";
|
|
|
34
34
|
import { r as r$1 } from "./state.CSDxrqLd.js";
|
|
35
35
|
import { e } from "./class-map.BiVq-cVR.js";
|
|
36
36
|
import { n as n$1 } from "./when.Dr1es41R.js";
|
|
37
|
-
import { C as CxImage } from "./image.
|
|
37
|
+
import { C as CxImage } from "./image.5mhGPvMN.js";
|
|
38
38
|
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
39
|
function commonjsRequire(l) {
|
|
40
40
|
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.');
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function d(r, t = []) {
|
|
2
|
+
return r.querySelectorAll("iframe").forEach((n) => t.push(n)), r.querySelectorAll("*").forEach((n) => {
|
|
3
|
+
n.shadowRoot && d(n.shadowRoot, t);
|
|
4
|
+
}), t;
|
|
5
|
+
}
|
|
6
|
+
function p(r, t) {
|
|
7
|
+
function n(e, o) {
|
|
8
|
+
const l = r.getBoundingClientRect(), i = r.ownerDocument.defaultView, v = l.left + i.scrollX, m = l.top + i.scrollY;
|
|
9
|
+
let a = e.pageX - v, f = e.pageY - m;
|
|
10
|
+
if (o) {
|
|
11
|
+
const c = o.getBoundingClientRect();
|
|
12
|
+
a += c.left + i.scrollX, f += c.top + i.scrollY;
|
|
13
|
+
}
|
|
14
|
+
if (e._parentEvent) {
|
|
15
|
+
const c = e.target;
|
|
16
|
+
c instanceof HTMLElement && (a += c.getBoundingClientRect().left + c.ownerDocument.defaultView.scrollX, f += c.getBoundingClientRect().top + c.ownerDocument.defaultView.scrollY);
|
|
17
|
+
}
|
|
18
|
+
t?.onMove && t.onMove(a, f, e);
|
|
19
|
+
}
|
|
20
|
+
function u() {
|
|
21
|
+
document.removeEventListener("pointermove", n), document.removeEventListener("pointerup", u), s.forEach((e, o) => {
|
|
22
|
+
o.contentDocument?.removeEventListener("pointermove", e), o.contentDocument?.removeEventListener("pointerup", u);
|
|
23
|
+
}), s.clear(), t?.onStop && t.onStop();
|
|
24
|
+
}
|
|
25
|
+
const s = /* @__PURE__ */ new Map();
|
|
26
|
+
d(r.ownerDocument).forEach((e) => {
|
|
27
|
+
try {
|
|
28
|
+
const o = e.contentDocument;
|
|
29
|
+
if (!o)
|
|
30
|
+
return;
|
|
31
|
+
const l = (i) => n(i, e);
|
|
32
|
+
s.set(e, l), o.addEventListener("pointermove", l, { passive: !0 }), o.addEventListener("pointerup", u);
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}), document.addEventListener("pointermove", n, { passive: !0 }), document.addEventListener("pointerup", u), t?.initialEvent instanceof PointerEvent && n(t.initialEvent);
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
p as d
|
|
39
|
+
};
|
|
@@ -5,7 +5,7 @@ import { c as Ae } from "./custom-element.L4WJXn1j.js";
|
|
|
5
5
|
import { d as Oe } from "./debounce.DaHuiSGU.js";
|
|
6
6
|
import { L as je } from "./i18n.Bchq8v1d.js";
|
|
7
7
|
import { w as I } from "./watch.DOt4Mabe.js";
|
|
8
|
-
import { a as Ze } from "./url
|
|
8
|
+
import { a as Ze } from "./url.Bd5rq4G0.js";
|
|
9
9
|
import { i as se, E as K, x as E } from "./lit-element.jLBm65_O.js";
|
|
10
10
|
import { n as v } from "./lib-cortex-element.CVMmyPMC.js";
|
|
11
11
|
import { r as k } from "./state.CSDxrqLd.js";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
function R(a, e = globalThis.location.origin) {
|
|
2
|
+
if (a) {
|
|
3
|
+
try {
|
|
4
|
+
const t = new URL(a);
|
|
5
|
+
if (t.origin === e)
|
|
6
|
+
return t.pathname + t.search + t.hash || "/";
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
return a;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
function _(a, e = "https://", t = !1) {
|
|
13
|
+
return t && a.match(c) || a.match(/^[a-zA-Z][a-zA-Z\d+\-.]*:\/\//) ? a : `${e}${a}`;
|
|
14
|
+
}
|
|
15
|
+
function h(a, e, t) {
|
|
16
|
+
if (!a)
|
|
17
|
+
return a;
|
|
18
|
+
const s = a.indexOf("#"), n = s === -1 ? a : a.slice(0, s), d = s === -1 ? "" : a.slice(s), o = n.includes("?") ? "&" : "?";
|
|
19
|
+
return `${n}${o}${encodeURIComponent(e)}=${encodeURIComponent(t)}${d}`;
|
|
20
|
+
}
|
|
21
|
+
function p(a) {
|
|
22
|
+
return !!a && a.toLowerCase().includes("expire");
|
|
23
|
+
}
|
|
24
|
+
function A(a) {
|
|
25
|
+
try {
|
|
26
|
+
return new URL(a), new RegExp(r, "i").test(a);
|
|
27
|
+
} catch {
|
|
28
|
+
return !1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const c = "^(?![a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/)(?!([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}($|\\/))[^\\s]+$", r = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", z = "^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.){2,}[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$", i = "^((https?:\\/\\/)?[a-z\\d]([a-z\\d-]*[a-z\\d])*\\.[a-z\\d]([a-z\\d-]*[a-z\\d])*|(https?:\\/\\/)[a-z\\d]([a-z\\d-]*[a-z\\d])*)(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
|
|
32
|
+
function E(a) {
|
|
33
|
+
return new RegExp(z, "i").test(a) || new RegExp(i, "i").test(a);
|
|
34
|
+
}
|
|
35
|
+
const I = "^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[^\\s]*)?$";
|
|
36
|
+
export {
|
|
37
|
+
c as R,
|
|
38
|
+
r as U,
|
|
39
|
+
h as a,
|
|
40
|
+
_ as b,
|
|
41
|
+
E as c,
|
|
42
|
+
p as d,
|
|
43
|
+
z as e,
|
|
44
|
+
i as f,
|
|
45
|
+
I as g,
|
|
46
|
+
A as i,
|
|
47
|
+
R as t
|
|
48
|
+
};
|
|
@@ -20,7 +20,7 @@ import { default as W } from "./details.js";
|
|
|
20
20
|
import { default as Y } from "./diff.js";
|
|
21
21
|
import { C as _ } from "../chunks/dialog.Bzf4-IgH.js";
|
|
22
22
|
import { default as oe } from "./divider.js";
|
|
23
|
-
import { C as ae } from "../chunks/document-viewer.
|
|
23
|
+
import { C as ae } from "../chunks/document-viewer.CGyOG1yw.js";
|
|
24
24
|
import { C as xe } from "../chunks/dot-pagination.BdZc-K0r.js";
|
|
25
25
|
import { default as me } from "./dot-status.js";
|
|
26
26
|
import { default as pe } from "./drawer.js";
|
|
@@ -39,7 +39,7 @@ import { f } from "../chunks/icon.mxNZ85k0.js";
|
|
|
39
39
|
import { C as Fe } from "../chunks/icon.mxNZ85k0.js";
|
|
40
40
|
import { C as Oe } from "../chunks/icon-button.DbVIFgu7.js";
|
|
41
41
|
import { C as Ee } from "../chunks/iframe.DcHjOcLG.js";
|
|
42
|
-
import { C as Le } from "../chunks/image.
|
|
42
|
+
import { C as Le } from "../chunks/image.5mhGPvMN.js";
|
|
43
43
|
import { default as je } from "./image-comparer.js";
|
|
44
44
|
import { default as Qe } from "./include.js";
|
|
45
45
|
import { C as qe } from "../chunks/input.BcyLZUmv.js";
|
|
@@ -3,7 +3,7 @@ import { c as E } from "../chunks/component.styles.CRO4Odto.js";
|
|
|
3
3
|
import { c as I } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
4
|
import { d as S } from "../chunks/debounce.DaHuiSGU.js";
|
|
5
5
|
import { d as H } from "../chunks/default-value.COZopaet.js";
|
|
6
|
-
import { d as w } from "../chunks/drag.
|
|
6
|
+
import { d as w } from "../chunks/drag.DenOh3AE.js";
|
|
7
7
|
import { F as M } from "../chunks/form.CP9KLGjF.js";
|
|
8
8
|
import { L as O } from "../chunks/i18n.Bchq8v1d.js";
|
|
9
9
|
import { c as u } from "../chunks/math.DuKzLacZ.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
|
-
import { C as b } from "../chunks/document-viewer.
|
|
2
|
+
import { C as b } from "../chunks/document-viewer.CGyOG1yw.js";
|
|
3
3
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
4
4
|
import "../chunks/index.Cpamj0jB.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
@@ -10,7 +10,7 @@ import "../chunks/state.CSDxrqLd.js";
|
|
|
10
10
|
import "../chunks/class-map.BiVq-cVR.js";
|
|
11
11
|
import "../chunks/when.Dr1es41R.js";
|
|
12
12
|
import "../chunks/icon.mxNZ85k0.js";
|
|
13
|
-
import "../chunks/image.
|
|
13
|
+
import "../chunks/image.5mhGPvMN.js";
|
|
14
14
|
import "../chunks/typography.IqHbnd3C.js";
|
|
15
15
|
export {
|
|
16
16
|
b as default
|
|
@@ -33,7 +33,7 @@ import { C as rt } from "../chunks/typography.IqHbnd3C.js";
|
|
|
33
33
|
import { C as jt } from "../chunks/confirm-popover.C-eHPJaU.js";
|
|
34
34
|
import { d as Mt } from "../chunks/debounce.DaHuiSGU.js";
|
|
35
35
|
import { a as Z } from "../chunks/number.CtCaI0T_.js";
|
|
36
|
-
import { i as X, b as pt } from "../chunks/url
|
|
36
|
+
import { i as X, b as pt } from "../chunks/url.Bd5rq4G0.js";
|
|
37
37
|
import { b as Vt, a as Ht, i as Wt } from "../chunks/_baseXor.VohG8cOH.js";
|
|
38
38
|
import qt from "./progress-bar.js";
|
|
39
39
|
import Gt from "./spinner.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as h, C as f } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as g } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { d as v } from "../chunks/drag.
|
|
4
|
+
import { d as v } from "../chunks/drag.DenOh3AE.js";
|
|
5
5
|
import { L as _ } from "../chunks/i18n.Bchq8v1d.js";
|
|
6
6
|
import { c as m } from "../chunks/math.DuKzLacZ.js";
|
|
7
7
|
import { w } from "../chunks/watch.DOt4Mabe.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../chunks/resizable-component.styles.CAfXABBc.js";
|
|
2
2
|
import "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import "../chunks/index.Cpamj0jB.js";
|
|
4
|
-
import { C as y } from "../chunks/image.
|
|
4
|
+
import { C as y } from "../chunks/image.5mhGPvMN.js";
|
|
5
5
|
import "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import "../chunks/debounce.DaHuiSGU.js";
|
|
7
7
|
import "../chunks/i18n.Bchq8v1d.js";
|
|
8
8
|
import "../chunks/watch.DOt4Mabe.js";
|
|
9
|
-
import "../chunks/url
|
|
9
|
+
import "../chunks/url.Bd5rq4G0.js";
|
|
10
10
|
import "../chunks/lit-element.jLBm65_O.js";
|
|
11
11
|
import "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
12
12
|
import "../chunks/state.CSDxrqLd.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _ from "./grid.js";
|
|
2
2
|
import f from "./grid-item.js";
|
|
3
3
|
import { C as v } from "../chunks/icon-button.DbVIFgu7.js";
|
|
4
|
-
import { C as S } from "../chunks/image.
|
|
4
|
+
import { C as S } from "../chunks/image.5mhGPvMN.js";
|
|
5
5
|
import $ from "./space.js";
|
|
6
6
|
import C from "./tooltip.js";
|
|
7
7
|
import { n, C as w } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
@@ -5,7 +5,7 @@ import { f as F } from "../chunks/form-control.styles.CaGWmeAS.js";
|
|
|
5
5
|
import { c as U } from "../chunks/custom-element.L4WJXn1j.js";
|
|
6
6
|
import { d as $ } from "../chunks/debounce.DaHuiSGU.js";
|
|
7
7
|
import { d as O } from "../chunks/default-value.COZopaet.js";
|
|
8
|
-
import { d as w } from "../chunks/drag.
|
|
8
|
+
import { d as w } from "../chunks/drag.DenOh3AE.js";
|
|
9
9
|
import { F as N } from "../chunks/form.CP9KLGjF.js";
|
|
10
10
|
import { L as S } from "../chunks/i18n.Bchq8v1d.js";
|
|
11
11
|
import { c as d } from "../chunks/math.DuKzLacZ.js";
|
|
@@ -5,7 +5,7 @@ import _ from "./resize-observer.js";
|
|
|
5
5
|
import { n as d, C as m } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
6
6
|
import { c as f } from "../chunks/component.styles.CRO4Odto.js";
|
|
7
7
|
import { c as x } from "../chunks/custom-element.L4WJXn1j.js";
|
|
8
|
-
import { d as y } from "../chunks/drag.
|
|
8
|
+
import { d as y } from "../chunks/drag.DenOh3AE.js";
|
|
9
9
|
import { H as C } from "../chunks/slot.j5oheLJC.js";
|
|
10
10
|
import { w as g } from "../chunks/watch.DOt4Mabe.js";
|
|
11
11
|
import { i as z, E as p, x as l } from "../chunks/lit-element.jLBm65_O.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as l, C as v } from "../chunks/lib-cortex-element.CVMmyPMC.js";
|
|
2
2
|
import { c as m } from "../chunks/component.styles.CRO4Odto.js";
|
|
3
3
|
import { c as u } from "../chunks/custom-element.L4WJXn1j.js";
|
|
4
|
-
import { d as g } from "../chunks/drag.
|
|
4
|
+
import { d as g } from "../chunks/drag.DenOh3AE.js";
|
|
5
5
|
import { L as f } from "../chunks/i18n.Bchq8v1d.js";
|
|
6
6
|
import { c as p } from "../chunks/math.DuKzLacZ.js";
|
|
7
7
|
import { w as c } from "../chunks/watch.DOt4Mabe.js";
|