lilact 0.31.8 → 0.31.9

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.
@@ -1939,7 +1939,6 @@ function getComponentUnderPointer() {
1939
1939
  });
1940
1940
  const overlay = document.createElement("div");
1941
1941
  overlay.style.cssText = "position:fixed;inset:0;z-index:2147483647;cursor:crosshair;background:transparent;";
1942
- document.body.appendChild(overlay);
1943
1942
  function click_handler(event) {
1944
1943
  event.stopImmediatePropagation();
1945
1944
  window.removeEventListener("click", click_handler, true);
@@ -1952,7 +1951,10 @@ function getComponentUnderPointer() {
1952
1951
  resolve_func(t[COMPONENT]);
1953
1952
  return false;
1954
1953
  }
1955
- window.addEventListener("click", click_handler, true);
1954
+ setTimeout(() => {
1955
+ document.body.appendChild(overlay);
1956
+ window.addEventListener("click", click_handler, true);
1957
+ }, 50);
1956
1958
  return pr;
1957
1959
  }
1958
1960
  function isEmpty(value) {
@@ -2817,7 +2819,7 @@ var ComponentCore = class {
2817
2819
  this.element.style = "";
2818
2820
  } else {
2819
2821
  for (let p in this.props.style) {
2820
- if (p !== CLONED_STYLE && !patch.style.hasOwnProperty(p)) {
2822
+ if (p !== CLONED_STYLE && !patch?.style?.hasOwnProperty?.(p)) {
2821
2823
  this.element.style[p] = "";
2822
2824
  }
2823
2825
  }
@@ -7218,8 +7220,8 @@ if (true) {
7218
7220
  });
7219
7221
  }
7220
7222
  if (true) {
7221
- console.log(`Lilact (Version: ${Lilact2.VERSION}) - Debug Mode`);
7222
- console.log(`Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>`);
7223
+ console.info(`Lilact (Version: ${Lilact2.VERSION}) - Debug Mode`);
7224
+ console.info(`Copyright(C) 2024-2026 Arash Kazemi <contact.arash.kazemi@gmail.com>`);
7223
7225
  }
7224
7226
  export {
7225
7227
  ARGS,