lilact 0.31.8 → 0.31.10

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.
Files changed (42) hide show
  1. package/dist/lilact.development.js +9 -7
  2. package/dist/lilact.development.js.map +2 -2
  3. package/dist/lilact.development.min.js +4 -4
  4. package/dist/lilact.development.min.js.map +3 -3
  5. package/dist/lilact.production.min.js +4 -4
  6. package/docs/assets/search.js +1 -1
  7. package/docs/classes/accessories.ErrorBoundary.html +3 -3
  8. package/docs/classes/accessories.Suspense.html +2 -2
  9. package/docs/classes/components.Component.html +9 -9
  10. package/docs/classes/components.HTMLComponent.html +10 -10
  11. package/docs/classes/components.RootComponent.html +5 -5
  12. package/docs/functions/components.cloneComponent.html +1 -1
  13. package/docs/functions/components.createComponent.html +1 -1
  14. package/docs/functions/components.createPortal.html +1 -1
  15. package/docs/functions/components.createRoot.html +1 -1
  16. package/docs/functions/components.memo.html +1 -1
  17. package/docs/functions/components.render.html +1 -1
  18. package/docs/functions/hooks.useActionState.html +1 -1
  19. package/docs/functions/misc.deepEqual.html +1 -1
  20. package/docs/functions/misc.isAsync.html +1 -1
  21. package/docs/functions/misc.isClass.html +1 -1
  22. package/docs/functions/misc.isEmpty.html +1 -1
  23. package/docs/functions/misc.isError.html +1 -1
  24. package/docs/functions/misc.isThenable.html +1 -1
  25. package/docs/functions/misc.shallowEqual.html +1 -1
  26. package/docs/functions/misc.toBool.html +1 -1
  27. package/docs/static/lilact.development.js +9 -7
  28. package/docs/static/lilact.development.js.map +2 -2
  29. package/docs/static/lilact.development.min.js +4 -4
  30. package/docs/static/lilact.development.min.js.map +3 -3
  31. package/docs/static/lilact.production.min.js +4 -4
  32. package/docs/variables/components.cloneElement.html +1 -1
  33. package/examples/lilact.development.js +9 -7
  34. package/examples/lilact.development.js.map +2 -2
  35. package/examples/lilact.development.min.js +4 -4
  36. package/examples/lilact.development.min.js.map +3 -3
  37. package/examples/lilact.production.min.js +4 -4
  38. package/package.json +1 -1
  39. package/src/components.jsx +3 -5
  40. package/src/hooks.jsx +5 -5
  41. package/src/lilact.jsx +2 -2
  42. package/src/misc.jsx +4 -2
@@ -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
  }
@@ -3180,10 +3182,10 @@ var Component = class {
3180
3182
  * It can also be set for function components.
3181
3183
  * @type {string}
3182
3184
  */
3183
- displayName() {
3185
+ get displayName() {
3184
3186
  const entity = this[CORE].entity;
3185
3187
  if (entity?.displayName) {
3186
- return typeof entity.displayName === "function" ? entity.displayName() : entity.displayName;
3188
+ return entity.displayName;
3187
3189
  }
3188
3190
  if (typeof entity === "string") {
3189
3191
  return entity;
@@ -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,