@floegence/floe-webapp-core 0.106.0 → 0.107.0

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.
@@ -1,5 +1,5 @@
1
- import { createComponent as l, Portal as lt, use as Q, spread as ke, mergeProps as Oe, memo as Z, addEventListener as m, insert as c, effect as g, setAttribute as Te, className as y, template as a, delegateEvents as at } from "solid-js/web";
2
- import { createSignal as b, createUniqueId as st, onCleanup as D, onMount as dt, createEffect as I, untrack as W, Show as w, batch as ge } from "solid-js";
1
+ import { createComponent as a, Portal as at, use as Q, spread as ke, mergeProps as Oe, memo as Z, addEventListener as m, insert as c, effect as g, setAttribute as Te, className as y, template as l, delegateEvents as lt } from "solid-js/web";
2
+ import { createSignal as b, createUniqueId as st, onCleanup as D, onMount as dt, createEffect as I, untrack as W, Show as w, batch as we } from "solid-js";
3
3
  import { cn as J } from "../../utils/cn.js";
4
4
  import { useOptionalLayout as ct } from "../../context/LayoutContext.js";
5
5
  import { useResolvedFloeConfig as ut } from "../../context/FloeConfigContext.js";
@@ -8,15 +8,15 @@ import { Button as Le } from "./Button.js";
8
8
  import { Restore as ht, Maximize as gt, X as wt } from "../icons/index.js";
9
9
  import { startHotInteraction as mt } from "../../utils/hotInteraction.js";
10
10
  import { startPointerSession as vt } from "./pointerSession.js";
11
- import { resolveFloatingWindowViewport as we, normalizeFloatingWindowRect as me, resolveFloatingWindowRect as xt } from "./floatingWindowGeometry.js";
11
+ import { resolveFloatingWindowViewport as me, normalizeFloatingWindowRect as ve, resolveFloatingWindowRect as xt } from "./floatingWindowGeometry.js";
12
12
  import { observeViewport as yt } from "../../viewport.js";
13
13
  import { createFloatingPresence as bt } from "./floatingPresence.js";
14
14
  import { LOCAL_INTERACTION_SURFACE_ATTR as Be } from "./localInteractionSurface.js";
15
15
  import { resolveFloatingBoundary as pt } from "./surfaceFloatingBoundary.js";
16
16
  import { SURFACE_PORTAL_LAYER_ATTR as zt, resolveSurfacePortalHost as _t } from "./dialogSurfaceScope.js";
17
- var $t = /* @__PURE__ */ a("<span hidden>"), St = /* @__PURE__ */ a("<h2 class=sr-only>"), Pt = /* @__PURE__ */ a('<div data-floe-floating-window-title-content=true class="flex h-full min-w-0 flex-1 items-center">'), It = /* @__PURE__ */ a('<div data-floe-floating-window-header-actions=true class="flex shrink-0 items-center gap-1"><span aria-hidden=true class="mx-2 h-4 w-px shrink-0 bg-border">'), Rt = /* @__PURE__ */ a('<div data-floe-floating-window-footer=true class="flex items-center justify-end gap-2 p-3 border-t border-[var(--floe-line)]">'), Ct = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=n style=touch-action:none>"), At = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=s style=touch-action:none>"), Et = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=e style=touch-action:none>"), Mt = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=w style=touch-action:none>"), Ft = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=ne style=touch-action:none>"), kt = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=nw style=touch-action:none>"), Ot = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=se style=touch-action:none>"), Tt = /* @__PURE__ */ a("<div data-floe-floating-window-resize-handle=sw style=touch-action:none>"), Lt = /* @__PURE__ */ a('<div data-floe-geometry-surface=floating-window><div data-floe-dialog-surface-host=true><div data-floe-floating-window-titlebar=true style=touch-action:none><div class="flex h-full flex-1 min-w-0 items-center px-3"></div><div class="flex h-full shrink-0 items-stretch"></div></div><div data-floe-floating-window-content=true class="min-h-0 flex-1 overflow-auto overscroll-contain p-3">'), Bt = /* @__PURE__ */ a('<span data-floe-floating-window-title-icon=true aria-hidden=true class="flex size-4 shrink-0 items-center justify-center">'), Dt = /* @__PURE__ */ a('<h2 class="flex min-w-0 items-center gap-2 text-xs leading-none font-medium select-none"><span class="min-w-0 truncate">');
17
+ var $t = /* @__PURE__ */ l("<span hidden>"), St = /* @__PURE__ */ l("<h2 class=sr-only>"), Pt = /* @__PURE__ */ l('<div data-floe-floating-window-title-content=true class="flex h-full min-w-0 flex-1 items-center">'), It = /* @__PURE__ */ l('<div data-floe-floating-window-header-actions=true class="flex shrink-0 items-center gap-1"><span aria-hidden=true class="mx-2 h-4 w-px shrink-0 bg-border">'), Rt = /* @__PURE__ */ l('<div data-floe-floating-window-footer=true class="flex items-center justify-end gap-2 p-3 border-t border-[var(--floe-line)]">'), Ct = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=n style=touch-action:none>"), At = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=s style=touch-action:none>"), Et = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=e style=touch-action:none>"), Mt = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=w style=touch-action:none>"), Ft = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=ne style=touch-action:none>"), kt = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=nw style=touch-action:none>"), Ot = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=se style=touch-action:none>"), Tt = /* @__PURE__ */ l("<div data-floe-floating-window-resize-handle=sw style=touch-action:none>"), Lt = /* @__PURE__ */ l('<div data-floe-geometry-surface=floating-window><div data-floe-dialog-surface-host=true><div data-floe-floating-window-titlebar=true style=touch-action:none><div class="flex h-full flex-1 min-w-0 items-center px-3"></div><div class="flex h-full shrink-0 items-stretch"></div></div><div data-floe-floating-window-content=true class="min-h-0 flex-1 overflow-auto overscroll-contain p-3">'), Bt = /* @__PURE__ */ l('<span data-floe-floating-window-title-icon=true aria-hidden=true class="flex size-4 shrink-0 items-center justify-center">'), Dt = /* @__PURE__ */ l('<h2 class="flex min-w-0 items-center gap-2 text-xs leading-none font-medium select-none"><span class="min-w-0 truncate">');
18
18
  function nn(i) {
19
- const ve = () => i.resizable ?? !0, K = () => i.maximizable ?? !0, xe = () => i.draggable ?? !0, q = () => i.minSize ?? {
19
+ const xe = () => i.resizable ?? !0, K = () => i.maximizable ?? !0, ye = () => i.draggable ?? !0, q = () => i.minSize ?? {
20
20
  width: 200,
21
21
  height: 150
22
22
  }, H = () => i.maxSize ?? {
@@ -40,9 +40,9 @@ function nn(i) {
40
40
  }), [Ue, Ge] = b(i.defaultSize ?? {
41
41
  width: 400,
42
42
  height: 300
43
- }), [u, oe] = b(!1), [L, ye] = b(!1), [Y, be] = b(!1), [Qe, re] = b(!1), M = bt({
43
+ }), [f, oe] = b(!1), [L, be] = b(!1), [Y, pe] = b(!1), [Qe, re] = b(!1), M = bt({
44
44
  open: () => i.open,
45
- element: () => ae
45
+ element: () => le
46
46
  });
47
47
  let z = {
48
48
  x: 0,
@@ -52,15 +52,15 @@ function nn(i) {
52
52
  y: 0,
53
53
  width: 0,
54
54
  height: 0
55
- }, le = 32, pe = {
55
+ }, ae = 32, ze = {
56
56
  x: 0,
57
57
  y: 0
58
- }, ze = {
58
+ }, _e = {
59
59
  x: 0,
60
60
  y: 0,
61
61
  width: 0,
62
62
  height: 0
63
- }, _e = "se", s, ae, se, h = null, N, f = null, C = {
63
+ }, $e = "se", s, le, se, h = null, N, u = null, C = {
64
64
  x: 0,
65
65
  y: 0
66
66
  }, k = null, V = null, _, de = !1, d = {
@@ -71,11 +71,11 @@ function nn(i) {
71
71
  }, x = {
72
72
  ...d
73
73
  }, A;
74
- const $e = (e) => {
74
+ const Se = (e) => {
75
75
  x = {
76
76
  ...e
77
77
  };
78
- const t = we(R(), p());
78
+ const t = me(R(), p());
79
79
  A = {
80
80
  x: t.width > e.width ? (e.x - t.x) / (t.width - e.width) : A?.x ?? 0.5,
81
81
  y: t.height > e.height ? (e.y - t.y) / (t.height - e.height) : A?.y ?? 0.5
@@ -95,20 +95,20 @@ function nn(i) {
95
95
  return;
96
96
  }
97
97
  V?.(), V = mt({
98
- kind: f === "resize" ? "resize" : "drag",
98
+ kind: u === "resize" ? "resize" : "drag",
99
99
  cursor: t,
100
100
  lockUserSelect: !0,
101
101
  // The titlebar declares its own cursor and travels with the pointer, so a
102
102
  // document-wide lock shows nothing at the pointer while restyling the whole
103
103
  // document. Resize handles are a few pixels wide and the pointer can leave
104
104
  // them at the size limits, so they keep the lock.
105
- lockDocumentStyles: f !== "drag"
105
+ lockDocumentStyles: u !== "drag"
106
106
  });
107
107
  }, j = (e) => {
108
108
  if ((e.x !== d.x || e.y !== d.y || e.width !== d.width || e.height !== d.height) && (_?.cancel(), _ = void 0), d = e, !s) return;
109
109
  const t = ne(e);
110
110
  s.style.transform = `translate3d(${t.x}px, ${t.y}px, 0)`, s.style.width = `${e.width / T()}px`, s.style.height = `${e.height / T()}px`;
111
- }, Se = () => {
111
+ }, Pe = () => {
112
112
  const e = Ve(), t = Ue();
113
113
  return {
114
114
  x: e.x,
@@ -149,11 +149,11 @@ function nn(i) {
149
149
  width: e.width,
150
150
  height: e.height
151
151
  };
152
- }, Pe = () => {
153
- if (i.open && !(h === null || f === null) && !(typeof window > "u")) {
154
- if (f === "drag" && u()) {
152
+ }, he = () => {
153
+ if (i.open && !(h === null || u === null) && !(typeof window > "u")) {
154
+ if (u === "drag" && f()) {
155
155
  if (Math.hypot(C.x - z.x, C.y - z.y) < 4) return;
156
- const e = me({
156
+ const e = ve({
157
157
  rect: x,
158
158
  minSize: q(),
159
159
  maxSize: H(),
@@ -161,7 +161,7 @@ function nn(i) {
161
161
  viewportInsets: p(),
162
162
  mobile: i.boundary === void 0 && E(),
163
163
  mobilePadding: X
164
- }), t = Math.max(0, Math.min(1, (z.x - F.x) / Math.max(1, F.width))), r = Math.max(0, Math.min(le, z.y - F.y));
164
+ }), t = Math.max(0, Math.min(1, (z.x - F.x) / Math.max(1, F.width))), r = Math.max(0, Math.min(ae, z.y - F.y));
165
165
  F = {
166
166
  ...e,
167
167
  x: z.x - e.width * t,
@@ -169,14 +169,14 @@ function nn(i) {
169
169
  }, oe(!1);
170
170
  }
171
171
  j(xt({
172
- mode: f,
172
+ mode: u,
173
173
  pointer: C,
174
174
  dragStartPos: z,
175
175
  dragStartRect: F,
176
- dragTitlebarHeight: le,
177
- resizeStartPos: pe,
178
- resizeStartRect: ze,
179
- resizeHandle: _e,
176
+ dragTitlebarHeight: ae,
177
+ resizeStartPos: ze,
178
+ resizeStartRect: _e,
179
+ resizeHandle: $e,
180
180
  minSize: q(),
181
181
  maxSize: H(),
182
182
  viewport: R(),
@@ -188,11 +188,11 @@ function nn(i) {
188
188
  }, B = (e) => {
189
189
  if (typeof window > "u") return;
190
190
  const t = R();
191
- if (u() || v()) {
192
- ue(we(t, p()));
191
+ if (f() || v()) {
192
+ ue(me(t, p()));
193
193
  return;
194
194
  }
195
- let r = me({
195
+ let r = ve({
196
196
  rect: x,
197
197
  minSize: q(),
198
198
  maxSize: H(),
@@ -203,7 +203,7 @@ function nn(i) {
203
203
  center: e?.center ?? !1
204
204
  });
205
205
  if (i.boundary !== void 0 && A && !e?.center) {
206
- const o = we(t, p());
206
+ const o = me(t, p());
207
207
  r = {
208
208
  ...r,
209
209
  x: o.x + A.x * Math.max(0, o.width - r.width),
@@ -215,11 +215,11 @@ function nn(i) {
215
215
  width: x.width,
216
216
  height: x.height
217
217
  };
218
- $e(r), Object.assign(x, o);
218
+ Se(r), Object.assign(x, o);
219
219
  }
220
220
  }, Ie = (e) => {
221
- k !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(k), k = null), e && Pe();
222
- const t = f === "drag", r = e && !(t && u()) ? tt() ?? d : null, o = r ? me({
221
+ k !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(k), k = null), e && he();
222
+ const t = u === "drag", r = e && !(t && f()) ? tt() ?? d : null, o = r ? ve({
223
223
  rect: r,
224
224
  minSize: q(),
225
225
  maxSize: H(),
@@ -228,16 +228,16 @@ function nn(i) {
228
228
  mobile: i.boundary === void 0 && E(),
229
229
  mobilePadding: X
230
230
  }) : null;
231
- if (ge(() => {
231
+ if (we(() => {
232
232
  if (o) {
233
233
  ue(o);
234
234
  const P = {
235
235
  width: x.width,
236
236
  height: x.height
237
237
  };
238
- $e(o), f === "drag" && Object.assign(x, P);
238
+ Se(o), u === "drag" && Object.assign(x, P);
239
239
  }
240
- h = null, f = null, ye(!1), be(!1);
240
+ h = null, u = null, be(!1), pe(!1);
241
241
  }), ce(!1, ""), N = void 0, o && (j(o), t && r && s?.animate && (r.x !== o.x || r.y !== o.y) && !window.matchMedia?.("(prefers-reduced-motion: reduce)").matches)) {
242
242
  const P = ne(r), U = ne(o);
243
243
  _ = s.animate([{
@@ -249,13 +249,13 @@ function nn(i) {
249
249
  easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
250
250
  });
251
251
  }
252
- }, he = (e = !1) => {
252
+ }, ge = (e = !1) => {
253
253
  N ? N.stop({
254
254
  commit: e
255
255
  }) : Ie(e);
256
256
  };
257
257
  D(() => {
258
- he(!1), _?.cancel();
258
+ ge(!1), _?.cancel();
259
259
  }), dt(() => {
260
260
  const e = () => {
261
261
  const t = O(), r = i.boundary === void 0 ? {
@@ -264,7 +264,7 @@ function nn(i) {
264
264
  } : _t({
265
265
  owner: ee
266
266
  }), o = pt(r, i.boundary, t?.safeArea);
267
- ge(() => {
267
+ we(() => {
268
268
  qe(!!(o && o.width > 16 && o.height > 16)), We(o ? {
269
269
  x: o.left,
270
270
  y: o.top,
@@ -279,7 +279,7 @@ function nn(i) {
279
279
  });
280
280
  };
281
281
  D(yt(window, (t) => {
282
- ge(() => {
282
+ we(() => {
283
283
  De(t), W(e);
284
284
  });
285
285
  })), I(() => {
@@ -310,7 +310,7 @@ function nn(i) {
310
310
  center: !1
311
311
  }));
312
312
  }), I(() => {
313
- K() || !u() || W(() => {
313
+ K() || !f() || W(() => {
314
314
  oe(!1), B({
315
315
  center: !1
316
316
  });
@@ -325,7 +325,7 @@ function nn(i) {
325
325
  document.addEventListener("keydown", e), D(() => document.removeEventListener("keydown", e));
326
326
  }), I(() => {
327
327
  if (!i.open) {
328
- re(!1), he(!1);
328
+ re(!1), ge(!1);
329
329
  return;
330
330
  }
331
331
  re(!0);
@@ -343,11 +343,11 @@ function nn(i) {
343
343
  });
344
344
  }), I(() => {
345
345
  if (!i.open) return;
346
- const e = Se();
346
+ const e = Pe();
347
347
  T(), O()?.fixedOffset, j(h === null ? e : d);
348
348
  });
349
349
  const nt = (e) => {
350
- !xe() || v() || h !== null || e.pointerType === "mouse" && e.button !== 0 || e.target?.closest('button, input, select, textarea, a, [role="button"], [role="tab"], [data-floe-interactive], [contenteditable="true"]') || (e.preventDefault(), _?.cancel(), _ = void 0, le = e.currentTarget instanceof HTMLElement && e.currentTarget.getBoundingClientRect().height || 32, h = e.pointerId, f = "drag", ye(!0), z = {
350
+ !ye() || v() || h !== null || e.pointerType === "mouse" && e.button !== 0 || e.target?.closest('button, input, select, textarea, a, [role="button"], [role="tab"], [data-floe-interactive], [contenteditable="true"]') || (e.preventDefault(), _?.cancel(), _ = void 0, ae = e.currentTarget instanceof HTMLElement && e.currentTarget.getBoundingClientRect().height || 32, h = e.pointerId, u = "drag", be(!0), z = {
351
351
  x: e.clientX,
352
352
  y: e.clientY
353
353
  }, F = {
@@ -357,33 +357,39 @@ function nn(i) {
357
357
  y: e.clientY
358
358
  }, ce(!0, "grabbing"), Ce(e));
359
359
  }, $ = (e) => (t) => {
360
- !ve() || u() || v() || h !== null || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(), t.stopPropagation(), h = t.pointerId, f = "resize", be(!0), _e = e, pe = {
360
+ !xe() || f() || v() || h !== null || t.pointerType === "mouse" && t.button !== 0 || (t.preventDefault(), t.stopPropagation(), h = t.pointerId, u = "resize", pe(!0), $e = e, ze = {
361
361
  x: t.clientX,
362
362
  y: t.clientY
363
- }, ze = {
363
+ }, _e = {
364
364
  ...d
365
365
  }, C = {
366
366
  x: t.clientX,
367
367
  y: t.clientY
368
368
  }, ce(!0, Ze[e]), Ce(t));
369
369
  }, Re = () => {
370
- k = null, Pe();
370
+ k = null, he();
371
371
  }, it = (e) => {
372
- if (!(h === null || e.pointerId !== h) && f !== null && (C = {
373
- x: e.clientX,
374
- y: e.clientY
375
- }, k === null)) {
376
- if (typeof requestAnimationFrame > "u") {
377
- Re();
372
+ if (!(h === null || e.pointerId !== h) && u !== null) {
373
+ if (C = {
374
+ x: e.clientX,
375
+ y: e.clientY
376
+ }, u === "drag") {
377
+ he();
378
378
  return;
379
379
  }
380
- k = requestAnimationFrame(Re);
380
+ if (k === null) {
381
+ if (typeof requestAnimationFrame > "u") {
382
+ Re();
383
+ return;
384
+ }
385
+ k = requestAnimationFrame(Re);
386
+ }
381
387
  }
382
388
  }, Ce = (e) => {
383
389
  N = vt({
384
390
  pointerEvent: e,
385
391
  // Keep click/double-click targeting on the titlebar while retaining capture.
386
- captureEl: f === "drag" ? se : s,
392
+ captureEl: u === "drag" ? se : s,
387
393
  onMove: it,
388
394
  onEnd: ({
389
395
  commit: t,
@@ -397,7 +403,7 @@ function nn(i) {
397
403
  }
398
404
  });
399
405
  }, Ae = () => {
400
- !K() || v() || (h !== null && he(!0), oe(!u()), B());
406
+ !K() || v() || (h !== null && ge(!0), oe(!f()), B());
401
407
  }, ot = (e) => {
402
408
  e.target?.closest('button, input, select, textarea, a, [role="button"], [role="tab"], [data-floe-interactive], [contenteditable="true"]') || Ae();
403
409
  }, rt = (e) => {
@@ -415,16 +421,16 @@ function nn(i) {
415
421
  return [(() => {
416
422
  var e = $t(), t = ee;
417
423
  return typeof t == "function" ? Q(t, e) : ee = e, e;
418
- })(), l(w, {
424
+ })(), a(w, {
419
425
  get when() {
420
426
  return M.mounted();
421
427
  },
422
428
  get children() {
423
- return l(lt, {
429
+ return a(at, {
424
430
  get children() {
425
431
  var e = Lt(), t = e.firstChild, r = t.firstChild, o = r.firstChild, P = o.nextSibling, U = r.nextSibling;
426
432
  Q((n) => {
427
- s = n, W(() => j(Se()));
433
+ s = n, W(() => j(Pe()));
428
434
  }, e), ke(e, Oe({
429
435
  get "data-floating-presence"() {
430
436
  return M.state();
@@ -458,8 +464,8 @@ function nn(i) {
458
464
  tabIndex: -1,
459
465
  onPointerDown: rt
460
466
  }), !1, !0);
461
- var Ee = ae;
462
- typeof Ee == "function" ? Q(Ee, t) : ae = t, ke(t, Oe({
467
+ var Ee = le;
468
+ typeof Ee == "function" ? Q(Ee, t) : le = t, ke(t, Oe({
463
469
  [zt]: "true"
464
470
  }, {
465
471
  "data-floe-floating-window-surface": "true",
@@ -474,11 +480,11 @@ function nn(i) {
474
480
  [Be]: "true"
475
481
  }, {
476
482
  get class() {
477
- return J("relative flex h-full w-full flex-col overflow-hidden", "text-card-foreground rounded-panel", "border", "floe-floating-presence floe-floating-window-motion", (L() || Y()) && "floe-floating-presence--suspended", u() && "rounded-none", i.class);
483
+ return J("relative flex h-full w-full flex-col overflow-hidden", "text-card-foreground rounded-panel", "border", "floe-floating-presence floe-floating-window-motion", (L() || Y()) && "floe-floating-presence--suspended", f() && "rounded-none", i.class);
478
484
  },
479
485
  get style() {
480
486
  return {
481
- "border-radius": u() ? "0" : "var(--floe-radius-floating)"
487
+ "border-radius": f() ? "0" : "var(--floe-radius-floating)"
482
488
  };
483
489
  },
484
490
  get "data-floating-presence"() {
@@ -486,18 +492,18 @@ function nn(i) {
486
492
  }
487
493
  }), !1, !0), m(r, "dblclick", ot), m(r, "pointerdown", nt);
488
494
  var Me = se;
489
- return typeof Me == "function" ? Q(Me, r) : se = r, c(o, l(w, {
495
+ return typeof Me == "function" ? Q(Me, r) : se = r, c(o, a(w, {
490
496
  get when() {
491
497
  return i.titleContent;
492
498
  },
493
499
  get fallback() {
494
- return l(w, {
500
+ return a(w, {
495
501
  get when() {
496
502
  return i.title;
497
503
  },
498
504
  get children() {
499
505
  var n = Dt(), G = n.firstChild;
500
- return c(n, l(w, {
506
+ return c(n, a(w, {
501
507
  get when() {
502
508
  return i.titleIcon;
503
509
  },
@@ -510,7 +516,7 @@ function nn(i) {
510
516
  });
511
517
  },
512
518
  get children() {
513
- return [l(w, {
519
+ return [a(w, {
514
520
  get when() {
515
521
  return i.title;
516
522
  },
@@ -523,7 +529,7 @@ function nn(i) {
523
529
  return c(n, () => i.titleContent), n;
524
530
  })()];
525
531
  }
526
- })), c(r, l(w, {
532
+ })), c(r, a(w, {
527
533
  get when() {
528
534
  return i.headerActions;
529
535
  },
@@ -531,12 +537,12 @@ function nn(i) {
531
537
  var n = It(), G = n.firstChild;
532
538
  return c(n, () => i.headerActions, G), n;
533
539
  }
534
- }), P), c(P, l(w, {
540
+ }), P), c(P, a(w, {
535
541
  get when() {
536
542
  return Z(() => !!K())() && !v();
537
543
  },
538
544
  get children() {
539
- return l(Le, {
545
+ return a(Le, {
540
546
  variant: "ghost",
541
547
  size: "icon",
542
548
  "data-floe-floating-window-control": "maximize",
@@ -545,20 +551,20 @@ function nn(i) {
545
551
  n.stopPropagation(), Ae();
546
552
  },
547
553
  get "aria-label"() {
548
- return Z(() => !!u())() ? i.labels?.restore ?? "Restore" : i.labels?.maximize ?? "Maximize";
554
+ return Z(() => !!f())() ? i.labels?.restore ?? "Restore" : i.labels?.maximize ?? "Maximize";
549
555
  },
550
556
  get children() {
551
- return l(w, {
557
+ return a(w, {
552
558
  get when() {
553
- return u();
559
+ return f();
554
560
  },
555
561
  get fallback() {
556
- return l(gt, {
562
+ return a(gt, {
557
563
  class: "w-3 h-3"
558
564
  });
559
565
  },
560
566
  get children() {
561
- return l(ht, {
567
+ return a(ht, {
562
568
  class: "w-3 h-3"
563
569
  });
564
570
  }
@@ -566,7 +572,7 @@ function nn(i) {
566
572
  }
567
573
  });
568
574
  }
569
- }), null), c(P, l(Le, {
575
+ }), null), c(P, a(Le, {
570
576
  variant: "ghost-destructive",
571
577
  size: "icon",
572
578
  "data-floe-floating-window-control": "close",
@@ -578,11 +584,11 @@ function nn(i) {
578
584
  return i.labels?.close ?? "Close";
579
585
  },
580
586
  get children() {
581
- return l(wt, {
587
+ return a(wt, {
582
588
  class: "w-3.5 h-3.5"
583
589
  });
584
590
  }
585
- }), null), c(U, () => i.children), c(t, l(w, {
591
+ }), null), c(U, () => i.children), c(t, a(w, {
586
592
  get when() {
587
593
  return i.footer;
588
594
  },
@@ -590,9 +596,9 @@ function nn(i) {
590
596
  var n = Rt();
591
597
  return c(n, () => i.footer), n;
592
598
  }
593
- }), null), c(e, l(w, {
599
+ }), null), c(e, a(w, {
594
600
  get when() {
595
- return Z(() => !!(ve() && !u()))() && !v();
601
+ return Z(() => !!(xe() && !f()))() && !v();
596
602
  },
597
603
  get children() {
598
604
  return [(() => {
@@ -601,7 +607,7 @@ function nn(i) {
601
607
  })(), (() => {
602
608
  var n = At();
603
609
  return m(n, "pointerdown", $("s"), !0), g(() => y(n, S("s"))), n;
604
- })(), l(w, {
610
+ })(), a(w, {
605
611
  get when() {
606
612
  return !E();
607
613
  },
@@ -628,13 +634,13 @@ function nn(i) {
628
634
  }
629
635
  })];
630
636
  }
631
- }), null), g(() => y(r, J("flex shrink-0 items-center justify-between h-8", "border-b", u() ? "rounded-none" : "rounded-t-panel", xe() && !v() && (L() ? "cursor-grabbing" : "cursor-move")))), e;
637
+ }), null), g(() => y(r, J("flex shrink-0 items-center justify-between h-8", "border-b", f() ? "rounded-none" : "rounded-t-panel", ye() && !v() && (L() ? "cursor-grabbing" : "cursor-move")))), e;
632
638
  }
633
639
  });
634
640
  }
635
641
  })];
636
642
  }
637
- at(["pointerdown"]);
643
+ lt(["pointerdown"]);
638
644
  export {
639
645
  nn as FloatingWindow
640
646
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.106.0",
3
+ "version": "0.107.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",