@orangelogic/design-system 2.160.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/drag.DenOh3AE.js +39 -0
- package/library/components/color-picker.js +1 -1
- package/library/components/image-comparer.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 -19743
- 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/react-web-component.d.ts +21 -1
- package/library/utils.js +1 -1
- package/package.json +1 -1
- package/library/chunks/drag.DXEXVXPv.js +0 -18
|
@@ -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
|
+
};
|
|
@@ -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,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";
|
|
@@ -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";
|