@needle-tools/engine 3.37.10-alpha.7 → 3.37.10-alpha.8

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.
@@ -29513,13 +29513,13 @@ function CwA(g) {
29513
29513
  OU = g;
29514
29514
  }
29515
29515
  const V1 = IA("debugdefines");
29516
- Uh('if(!globalThis[""3.37.10-alpha.7""]) globalThis[""3.37.10-alpha.7""] = "0.0.0";');
29516
+ Uh('if(!globalThis[""3.37.10-alpha.8""]) globalThis[""3.37.10-alpha.8""] = "0.0.0";');
29517
29517
  Uh('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29518
- Uh('if(!globalThis[""Tue May 14 2024 17:38:32 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue May 14 2024 17:38:32 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
- Uh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.10-alpha.7";');
29518
+ Uh('if(!globalThis[""Tue May 14 2024 17:51:01 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue May 14 2024 17:51:01 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
+ Uh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.10-alpha.8";');
29520
29520
  Uh('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29521
- Uh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue May 14 2024 17:38:32 GMT+0200 (Central European Summer Time)";');
29522
- const Ia = "3.37.10-alpha.7", Vb = "undefined", z1 = "Tue May 14 2024 17:38:32 GMT+0200 (Central European Summer Time)";
29521
+ Uh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue May 14 2024 17:51:01 GMT+0200 (Central European Summer Time)";');
29522
+ const Ia = "3.37.10-alpha.8", Vb = "undefined", z1 = "Tue May 14 2024 17:51:01 GMT+0200 (Central European Summer Time)";
29523
29523
  V1 && console.log(`Engine version: ${Ia} (generator: ${Vb})
29524
29524
  Project built at ${z1}`);
29525
29525
  const Kr = "needle_isActiveInHierarchy", rc = "builtin_components", sy = "needle_editor_guid";
@@ -65295,6 +65295,7 @@ class rm extends HTMLElement {
65295
65295
  B(this, "_context", null);
65296
65296
  B(this, "_sizeChangeInterval");
65297
65297
  B(this, "_userRequestedLogoVisible");
65298
+ B(this, "_userRequestedMenuVisible");
65298
65299
  // private _root: ShadowRoot | null = null;
65299
65300
  B(this, "root");
65300
65301
  /** wraps the whole content */
@@ -65549,15 +65550,15 @@ class rm extends HTMLElement {
65549
65550
  let s = this._context;
65550
65551
  setTimeout(() => s = this._context);
65551
65552
  let n = -1, C = 0;
65552
- const a = (h) => {
65553
- var l, p, u;
65554
- s != null && s.isInAR && s.arOverlayElement ? h != s.arOverlayElement && s.arOverlayElement.appendChild(this) : this.parentNode != ((l = this._domElement) == null ? void 0 : l.shadowRoot) && ((u = (p = this._domElement) == null ? void 0 : p.shadowRoot) == null || u.appendChild(this)), this.style.display = "flex", this.style.visibility = "visible", this.style.opacity = "1";
65553
+ const a = (h, l) => {
65554
+ var p, u, f;
65555
+ s != null && s.isInAR && s.arOverlayElement ? h != s.arOverlayElement && s.arOverlayElement.appendChild(this) : this.parentNode != ((p = this._domElement) == null ? void 0 : p.shadowRoot) && ((f = (u = this._domElement) == null ? void 0 : u.shadowRoot) == null || f.appendChild(this)), this.style.display = l ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
65555
65556
  };
65556
65557
  new MutationObserver((h) => {
65557
65558
  var p;
65558
65559
  this.onChangeDetected(h);
65559
65560
  const l = this == null ? void 0 : this.parentNode;
65560
- (this.style.display != "flex" || this.style.visibility != "visible" || this.style.opacity != "1" || l != ((p = this._domElement) == null ? void 0 : p.shadowRoot)) && (Xn() || (ro() ? (C === 0 && a(l), C++ === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : (clearInterval(n), n = setInterval(() => a(l), 5))));
65561
+ (this.style.display != "flex" || this.style.visibility != "visible" || this.style.opacity != "1" || l != ((p = this._domElement) == null ? void 0 : p.shadowRoot)) && (Xn() || (ro() ? (C === 0 && a(l, this._userRequestedLogoVisible), C++ === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : (clearInterval(n), n = setInterval(() => a(l, !0), 5))));
65561
65562
  }).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), fS && this.___insertDebugOptions();
65562
65563
  }
65563
65564
  static create() {
@@ -65584,7 +65585,7 @@ class rm extends HTMLElement {
65584
65585
  this.root.classList.remove("top", "bottom"), this.root.classList.add(e);
65585
65586
  }
65586
65587
  setVisible(e) {
65587
- this.style.display = e ? "flex" : "none";
65588
+ this._userRequestedLogoVisible = e, this.style.display = e ? "flex" : "none";
65588
65589
  }
65589
65590
  append(...e) {
65590
65591
  for (const t of e)
@@ -29513,13 +29513,13 @@ function Dbe(s) {
29513
29513
  RT = s;
29514
29514
  }
29515
29515
  const pG = ne("debugdefines");
29516
- im('if(!globalThis[""3.37.10-alpha.7""]) globalThis[""3.37.10-alpha.7""] = "0.0.0";');
29516
+ im('if(!globalThis[""3.37.10-alpha.8""]) globalThis[""3.37.10-alpha.8""] = "0.0.0";');
29517
29517
  im('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
29518
- im('if(!globalThis[""Tue May 14 2024 17:38:43 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue May 14 2024 17:38:43 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
- im('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.10-alpha.7";');
29518
+ im('if(!globalThis[""Tue May 14 2024 17:51:13 GMT+0200 (Central European Summer Time)""]) globalThis[""Tue May 14 2024 17:51:13 GMT+0200 (Central European Summer Time)""] = "unknown";');
29519
+ im('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.37.10-alpha.8";');
29520
29520
  im('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
29521
- im('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue May 14 2024 17:38:43 GMT+0200 (Central European Summer Time)";');
29522
- const Vl = "3.37.10-alpha.7", NP = "undefined", gG = "Tue May 14 2024 17:38:43 GMT+0200 (Central European Summer Time)";
29521
+ im('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Tue May 14 2024 17:51:13 GMT+0200 (Central European Summer Time)";');
29522
+ const Vl = "3.37.10-alpha.8", NP = "undefined", gG = "Tue May 14 2024 17:51:13 GMT+0200 (Central European Summer Time)";
29523
29523
  pG && console.log(`Engine version: ${Vl} (generator: ${NP})
29524
29524
  Project built at ${gG}`);
29525
29525
  const gu = "needle_isActiveInHierarchy", zp = "builtin_components", _x = "needle_editor_guid";
@@ -65295,6 +65295,7 @@ class yS extends HTMLElement {
65295
65295
  u(this, "_context", null);
65296
65296
  u(this, "_sizeChangeInterval");
65297
65297
  u(this, "_userRequestedLogoVisible");
65298
+ u(this, "_userRequestedMenuVisible");
65298
65299
  // private _root: ShadowRoot | null = null;
65299
65300
  u(this, "root");
65300
65301
  /** wraps the whole content */
@@ -65549,15 +65550,15 @@ class yS extends HTMLElement {
65549
65550
  let a = this._context;
65550
65551
  setTimeout(() => a = this._context);
65551
65552
  let c = -1, l = 0;
65552
- const h = (m) => {
65553
- var A, b, v;
65554
- a != null && a.isInAR && a.arOverlayElement ? m != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((A = this._domElement) == null ? void 0 : A.shadowRoot) && ((v = (b = this._domElement) == null ? void 0 : b.shadowRoot) == null || v.appendChild(this)), this.style.display = "flex", this.style.visibility = "visible", this.style.opacity = "1";
65553
+ const h = (m, A) => {
65554
+ var b, v, _;
65555
+ a != null && a.isInAR && a.arOverlayElement ? m != a.arOverlayElement && a.arOverlayElement.appendChild(this) : this.parentNode != ((b = this._domElement) == null ? void 0 : b.shadowRoot) && ((_ = (v = this._domElement) == null ? void 0 : v.shadowRoot) == null || _.appendChild(this)), this.style.display = A ? "flex" : "none", this.style.visibility = "visible", this.style.opacity = "1";
65555
65556
  };
65556
65557
  new MutationObserver((m) => {
65557
65558
  var b;
65558
65559
  this.onChangeDetected(m);
65559
65560
  const A = this == null ? void 0 : this.parentNode;
65560
- (this.style.display != "flex" || this.style.visibility != "visible" || this.style.opacity != "1" || A != ((b = this._domElement) == null ? void 0 : b.shadowRoot)) && (Fc() || (to() ? (l === 0 && h(A), l++ === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : (clearInterval(c), c = setInterval(() => h(A), 5))));
65561
+ (this.style.display != "flex" || this.style.visibility != "visible" || this.style.opacity != "1" || A != ((b = this._domElement) == null ? void 0 : b.shadowRoot)) && (Fc() || (to() ? (l === 0 && h(A, this._userRequestedLogoVisible), l++ === 1 && console.warn("Needle Menu Warning: You need a PRO license to hide the Needle Engine menu → The menu will be visible in your deployed website if you don't have a PRO license. See https://needle.tools/pricing for details.")) : (clearInterval(c), c = setInterval(() => h(A, !0), 5))));
65561
65562
  }).observe(this.root, { childList: !0, subtree: !0, attributes: !0 }), Ow && this.___insertDebugOptions();
65562
65563
  }
65563
65564
  static create() {
@@ -65584,7 +65585,7 @@ class yS extends HTMLElement {
65584
65585
  this.root.classList.remove("top", "bottom"), this.root.classList.add(t);
65585
65586
  }
65586
65587
  setVisible(t) {
65587
- this.style.display = t ? "flex" : "none";
65588
+ this._userRequestedLogoVisible = t, this.style.display = t ? "flex" : "none";
65588
65589
  }
65589
65590
  append(...t) {
65590
65591
  for (const i of t)