@firstlook-uat/sdk 0.3.2 → 0.3.3
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/dist/firstlook.es.js
CHANGED
|
@@ -170,7 +170,7 @@ function E(a) {
|
|
|
170
170
|
}
|
|
171
171
|
class R {
|
|
172
172
|
constructor(t, e) {
|
|
173
|
-
this.shadowRoot = t, this.callbacks = e, this.minimized = !1, this.timerInterval = null, this.startTime = 0, this.root = document.createElement("div"), this.root.className = "fl-quest-overlay";
|
|
173
|
+
this.shadowRoot = t, this.callbacks = e, this.minimized = !1, this.timerInterval = null, this.startTime = 0, this.root = document.createElement("div"), this.root.className = "fl-quest-overlay", this.root.style.pointerEvents = "auto";
|
|
174
174
|
for (const s of ["click", "mousedown", "mouseup", "pointerdown", "pointerup", "touchstart", "touchend"])
|
|
175
175
|
this.root.addEventListener(s, (i) => i.stopPropagation());
|
|
176
176
|
this.shadowRoot.appendChild(this.root);
|
|
@@ -943,7 +943,7 @@ class H {
|
|
|
943
943
|
}
|
|
944
944
|
show() {
|
|
945
945
|
if (this.root) return;
|
|
946
|
-
this.root = r("div", { className: "fl-debug-menu" });
|
|
946
|
+
this.root = r("div", { className: "fl-debug-menu" }), this.root.style.pointerEvents = "auto";
|
|
947
947
|
for (const e of ["click", "mousedown", "mouseup", "pointerdown", "pointerup", "touchstart", "touchend"])
|
|
948
948
|
this.root.addEventListener(e, (s) => s.stopPropagation());
|
|
949
949
|
const t = [
|
|
@@ -1571,7 +1571,8 @@ class X {
|
|
|
1571
1571
|
// Private methods
|
|
1572
1572
|
// ----------------------------------------------------------------
|
|
1573
1573
|
createShadowHost() {
|
|
1574
|
-
|
|
1574
|
+
var e;
|
|
1575
|
+
(e = document.getElementById("firstlook-sdk-root")) == null || e.remove(), this.hostElement = document.createElement("div"), this.hostElement.id = "firstlook-sdk-root", this.hostElement.style.cssText = "position:fixed;inset:0;z-index:2147483647;pointer-events:none;", document.body.appendChild(this.hostElement), this.shadowRoot = this.hostElement.attachShadow({ mode: "closed" });
|
|
1575
1576
|
const t = document.createElement("style");
|
|
1576
1577
|
t.textContent = _, this.shadowRoot.appendChild(t);
|
|
1577
1578
|
}
|