@abdellatifui/react 3.2.139 → 3.2.141

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 (2) hide show
  1. package/dist/nextgen.js +10 -7
  2. package/package.json +1 -1
package/dist/nextgen.js CHANGED
@@ -15933,12 +15933,15 @@ const Jx = (e) => {
15933
15933
  function h() {
15934
15934
  ce(".abui-window-box").attr("data-ontop", "false"), ce(".abui-window-box-content").attr("data-ontop", "false"), ce(n.current).parent().attr("data-ontop", "true"), ce(n.current).attr("data-ontop", "true");
15935
15935
  }
15936
- q(() => (h(), ce(document).on("bringtofront", (d, x) => {
15937
- x === s && h();
15938
- }), ce(".abui-context-root").addClass("abui-window-box-top-priority"), () => {
15936
+ q(() => (h(), ce(document).on("bringtofront", (x, S) => {
15937
+ S === s && h();
15938
+ }), () => {
15939
15939
  ce(document).off("bringtofront");
15940
15940
  }), []);
15941
15941
  function g() {
15942
+ h(), ce(".abui-context-root").addClass("abui-window-box-top-priority");
15943
+ }
15944
+ function d() {
15942
15945
  ce(".abui-context-root").removeClass("abui-window-box-top-priority");
15943
15946
  }
15944
15947
  return /* @__PURE__ */ c.jsx(
@@ -15948,8 +15951,8 @@ const Jx = (e) => {
15948
15951
  handle: ".abui-window-box-dragger",
15949
15952
  nodeRef: n,
15950
15953
  onClick: h,
15951
- onStart: h,
15952
- onStop: g,
15954
+ onStart: g,
15955
+ onStop: d,
15953
15956
  disabled: !a,
15954
15957
  bounds: l,
15955
15958
  defaultPosition: {
@@ -16027,9 +16030,9 @@ const Jx = (e) => {
16027
16030
  };
16028
16031
  q(() => {
16029
16032
  f && i?.(M), f || a?.(M);
16030
- }, [f]), q(() => (m && u?.(M).then((_) => {
16033
+ }, [f]), q(() => (m && u?.(M)?.then?.((_) => {
16031
16034
  _ !== !1 && p(m);
16032
- }), () => {
16035
+ }), u || p(m), () => {
16033
16036
  F([]);
16034
16037
  }), [m]);
16035
16038
  function K(_, U, B = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.139",
4
+ "version": "3.2.141",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [