@devalok/shilp-sutra 0.49.2 → 0.49.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.
@@ -732,10 +732,9 @@ function ft(t, n = globalThis?.document) {
732
732
  return e.useEffect(() => {
733
733
  let e = (e) => {
734
734
  if (e.target && !i.current) {
735
- let t = { originalEvent: e };
736
- function i() {
735
+ let t = { originalEvent: e }, i = () => {
737
736
  ht(at, r, t, { discrete: !0 });
738
- }
737
+ };
739
738
  e.pointerType === "touch" ? (n.removeEventListener("click", a.current), a.current = i, n.addEventListener("click", a.current, { once: !0 })) : i();
740
739
  } else n.removeEventListener("click", a.current);
741
740
  i.current = !1;
@@ -788,19 +787,17 @@ var gt = "focusScope.autoFocusOnMount", _t = "focusScope.autoFocusOnUnmount", vt
788
787
  }).current;
789
788
  e.useEffect(() => {
790
789
  if (i) {
791
- function e(e) {
790
+ let e = (e) => {
792
791
  if (g.paused || !l) return;
793
792
  let t = e.target;
794
793
  l.contains(t) ? p.current = t : Dt(p.current, { select: !0 });
795
- }
796
- function t(e) {
794
+ }, t = (e) => {
797
795
  if (g.paused || !l) return;
798
796
  let t = e.relatedTarget;
799
797
  t !== null && (l.contains(t) || Dt(p.current, { select: !0 }));
800
- }
801
- function n(e) {
798
+ }, n = (e) => {
802
799
  if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && Dt(l);
803
- }
800
+ };
804
801
  document.addEventListener("focusin", e), document.addEventListener("focusout", t);
805
802
  let r = new MutationObserver(n);
806
803
  return l && r.observe(l, {