@floegence/floe-webapp-core 0.46.4 → 0.46.5

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.
@@ -9,7 +9,7 @@ import { resolveSurfacePortalHost as ie, DIALOG_SURFACE_BOUNDARY_ATTR as O, isSu
9
9
  import { LOCAL_INTERACTION_SURFACE_ATTR as ce } from "./localInteractionSurface.js";
10
10
  import { createFloatingPresence as ue } from "./floatingPresence.js";
11
11
  import { useDialogPlacement as se } from "./DialogPlacementContext.js";
12
- var fe = /* @__PURE__ */ u("<span aria-hidden=true>"), ge = /* @__PURE__ */ u('<h2 class="text-sm font-semibold">'), me = /* @__PURE__ */ u('<p class="mt-0.5 text-xs text-muted-foreground">'), he = /* @__PURE__ */ u('<div class="flex items-start justify-between p-3 border-b border-border"><div>'), be = /* @__PURE__ */ u('<div class="flex items-center justify-end gap-2 p-3 border-t border-border">'), we = /* @__PURE__ */ u('<div><div></div><div class="relative z-[1] flex h-full w-full items-center justify-center"><div><div class="flex-1 overflow-auto overscroll-contain p-3">'), ve = /* @__PURE__ */ u("<div>");
12
+ var fe = /* @__PURE__ */ u("<span aria-hidden=true>"), ge = /* @__PURE__ */ u('<h2 class="text-sm font-semibold">'), me = /* @__PURE__ */ u('<p class="mt-0.5 text-xs text-muted-foreground">'), he = /* @__PURE__ */ u('<div class="flex items-start justify-between p-3 border-b border-border"><div>'), be = /* @__PURE__ */ u('<div class="flex items-center justify-end gap-2 p-3 border-t border-border">'), ve = /* @__PURE__ */ u('<div><div></div><div class="pointer-events-none relative z-[1] flex h-full w-full items-center justify-center"><div><div class="flex-1 overflow-auto overscroll-contain p-3">'), we = /* @__PURE__ */ u("<div>");
13
13
  const ye = {
14
14
  display: "none"
15
15
  };
@@ -35,16 +35,16 @@ function $e(e) {
35
35
  }
36
36
  function _e(e) {
37
37
  const g = se(), d = J(), F = () => `dialog-${d}-title`, D = () => `dialog-${d}-description`;
38
- let w;
39
- const [v, G] = I(null), [M, z] = I(0), [L, Z] = I(0), s = ue({
40
- open: () => e.open && !!v() && M() > 0,
38
+ let v;
39
+ const [w, G] = I(null), [M, z] = I(0), [L, Z] = I(0), s = ue({
40
+ open: () => e.open && !!w() && M() > 0,
41
41
  exitDurationMs: 120
42
- }), y = () => s.mounted() && !!v() && M() > 0, U = (t) => {
42
+ }), y = () => s.mounted() && !!w() && M() > 0, U = (t) => {
43
43
  G(t), xe(() => {
44
- te(v) === t && z((i) => i + 1);
44
+ te(w) === t && z((i) => i + 1);
45
45
  });
46
46
  }, x = H(() => y() ? ie({
47
- owner: v()
47
+ owner: w()
48
48
  }) : {
49
49
  host: null,
50
50
  boundaryHost: null,
@@ -71,8 +71,8 @@ function _e(e) {
71
71
  });
72
72
  }), oe({
73
73
  open: y,
74
- root: () => w,
75
- containsTarget: (t) => n() ? W(t) : typeof Node < "u" && t instanceof Node ? !!w?.contains(t) : !1,
74
+ root: () => v,
75
+ containsTarget: (t) => n() ? W(t) : typeof Node < "u" && t instanceof Node ? !!v?.contains(t) : !1,
76
76
  onClose: () => e.onOpenChange(!1),
77
77
  lockBodyScroll: () => !n(),
78
78
  trapFocus: !0,
@@ -95,7 +95,7 @@ function _e(e) {
95
95
  return V();
96
96
  },
97
97
  get children() {
98
- var t = we(), i = t.firstChild, m = i.nextSibling, o = m.firstChild, _ = o.firstChild;
98
+ var t = ve(), i = t.firstChild, m = i.nextSibling, o = m.firstChild, _ = o.firstChild;
99
99
  f(t, "data-floe-dialog-overlay-root", d), k(t, P({
100
100
  get "data-floe-dialog-mode"() {
101
101
  return n() ? "surface" : "global";
@@ -133,12 +133,12 @@ function _e(e) {
133
133
  },
134
134
  onClick: () => e.onOpenChange(!1)
135
135
  }), !1, !1);
136
- var h = w;
137
- return typeof h == "function" ? E(h, o) : w = o, f(o, "data-floe-dialog-panel", d), k(o, P(() => ({
136
+ var h = v;
137
+ return typeof h == "function" ? E(h, o) : v = o, f(o, "data-floe-dialog-panel", d), k(o, P(() => ({
138
138
  [O]: p()
139
139
  }), {
140
140
  get class() {
141
- return A(n() ? "flex max-h-[calc(100%-1rem)] w-[min(32rem,calc(100%-1rem))] max-w-[calc(100%-1rem)] flex-col" : "w-full max-w-md max-h-[85vh]", "bg-card text-card-foreground rounded-md shadow-lg", "border border-border", "floe-floating-presence floe-floating-dialog-panel", "flex flex-col", e.class);
141
+ return A(n() ? "flex max-h-[calc(100%-1rem)] w-[min(32rem,calc(100%-1rem))] max-w-[calc(100%-1rem)] flex-col" : "w-full max-w-md max-h-[85vh]", "bg-card text-card-foreground rounded-md shadow-lg", "border border-border", "floe-floating-presence floe-floating-dialog-panel", "pointer-events-auto flex flex-col", e.class);
142
142
  },
143
143
  get "data-floating-presence"() {
144
144
  return s.state();
@@ -247,7 +247,7 @@ function Te(e) {
247
247
  })];
248
248
  },
249
249
  get children() {
250
- return e.children ?? ve();
250
+ return e.children ?? we();
251
251
  }
252
252
  });
253
253
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.46.4",
3
+ "version": "0.46.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",