@floegence/floe-webapp-core 0.35.59 → 0.36.1

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 (62) hide show
  1. package/dist/components/deck/DeckCell.js +47 -50
  2. package/dist/components/deck/DeckContextMenu.d.ts +22 -0
  3. package/dist/components/deck/DeckContextMenu.js +73 -0
  4. package/dist/components/deck/DeckGrid.js +147 -104
  5. package/dist/components/deck/DeckTopBar.js +74 -96
  6. package/dist/components/deck/WidgetFrame.d.ts +7 -1
  7. package/dist/components/deck/WidgetFrame.js +60 -52
  8. package/dist/components/deck/index.d.ts +1 -0
  9. package/dist/components/layout/DisplayModePageShell.d.ts +8 -0
  10. package/dist/components/layout/DisplayModePageShell.js +22 -0
  11. package/dist/components/layout/DisplayModeSwitcher.d.ts +7 -0
  12. package/dist/components/layout/DisplayModeSwitcher.js +52 -0
  13. package/dist/components/layout/index.d.ts +2 -0
  14. package/dist/components/ui/InfiniteCanvas.d.ts +2 -0
  15. package/dist/components/ui/InfiniteCanvas.js +43 -37
  16. package/dist/components/workbench/WorkbenchCanvas.d.ts +29 -0
  17. package/dist/components/workbench/WorkbenchCanvas.js +83 -0
  18. package/dist/components/workbench/WorkbenchContextMenu.d.ts +24 -0
  19. package/dist/components/workbench/WorkbenchContextMenu.js +44 -0
  20. package/dist/components/workbench/WorkbenchFilterBar.d.ts +17 -0
  21. package/dist/components/workbench/WorkbenchFilterBar.js +267 -0
  22. package/dist/components/workbench/WorkbenchHud.d.ts +6 -0
  23. package/dist/components/workbench/WorkbenchHud.js +17 -0
  24. package/dist/components/workbench/WorkbenchLockButton.d.ts +6 -0
  25. package/dist/components/workbench/WorkbenchLockButton.js +49 -0
  26. package/dist/components/workbench/WorkbenchOverlay.d.ts +18 -0
  27. package/dist/components/workbench/WorkbenchOverlay.js +107 -0
  28. package/dist/components/workbench/WorkbenchSurface.d.ts +34 -0
  29. package/dist/components/workbench/WorkbenchSurface.js +200 -0
  30. package/dist/components/workbench/WorkbenchWidget.d.ts +26 -0
  31. package/dist/components/workbench/WorkbenchWidget.js +192 -0
  32. package/dist/components/workbench/index.d.ts +7 -0
  33. package/dist/components/workbench/types.d.ts +56 -0
  34. package/dist/components/workbench/types.js +11 -0
  35. package/dist/components/workbench/useWorkbenchModel.d.ts +83 -0
  36. package/dist/components/workbench/useWorkbenchModel.js +284 -0
  37. package/dist/components/workbench/widgets/CodeEditorWidget.d.ts +1 -0
  38. package/dist/components/workbench/widgets/CodeEditorWidget.js +144 -0
  39. package/dist/components/workbench/widgets/FileBrowserWidget.d.ts +1 -0
  40. package/dist/components/workbench/widgets/FileBrowserWidget.js +142 -0
  41. package/dist/components/workbench/widgets/LogViewerWidget.d.ts +1 -0
  42. package/dist/components/workbench/widgets/LogViewerWidget.js +86 -0
  43. package/dist/components/workbench/widgets/SystemMonitorWidget.d.ts +1 -0
  44. package/dist/components/workbench/widgets/SystemMonitorWidget.js +122 -0
  45. package/dist/components/workbench/widgets/TerminalWidget.d.ts +1 -0
  46. package/dist/components/workbench/widgets/TerminalWidget.js +70 -0
  47. package/dist/components/workbench/widgets/widgetRegistry.d.ts +14 -0
  48. package/dist/components/workbench/widgets/widgetRegistry.js +71 -0
  49. package/dist/components/workbench/workbenchHelpers.d.ts +26 -0
  50. package/dist/components/workbench/workbenchHelpers.js +139 -0
  51. package/dist/deck.js +14 -12
  52. package/dist/display-mode.css +70 -0
  53. package/dist/full.js +475 -468
  54. package/dist/hooks/useDeckDrag.js +15 -15
  55. package/dist/layout.js +32 -27
  56. package/dist/styles.css +1 -1
  57. package/dist/tailwind.css +2 -0
  58. package/dist/ui.css +4 -0
  59. package/dist/workbench.css +1220 -0
  60. package/dist/workbench.d.ts +1 -0
  61. package/dist/workbench.js +23 -0
  62. package/package.json +5 -1
@@ -4,8 +4,8 @@ import { applyDragDelta as U } from "../utils/gridLayout.js";
4
4
  import { getGridConfigFromElement as N } from "../components/deck/DeckGrid.js";
5
5
  import { startHotInteraction as O } from "../utils/hotInteraction.js";
6
6
  function Z() {
7
- const p = B();
8
- let c = null, m = 0, f = 0, L = 0, g = 0, l = 0, P = 0, I = 0, A = 0, a = null, v = null, F = null, w = null, n = null, T = null, H = 0, k = 0, y = null;
7
+ const h = B();
8
+ let c = null, p = 0, m = 0, L = 0, f = 0, l = 0, P = 0, I = 0, A = 0, a = null, v = null, F = null, w = null, n = null, T = null, H = 0, k = 0, y = null;
9
9
  const C = (t) => {
10
10
  if (!t) {
11
11
  w?.(), w = null;
@@ -17,14 +17,14 @@ function Z() {
17
17
  lockUserSelect: !0
18
18
  });
19
19
  }, M = () => {
20
- c !== null && (a !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(a), a = null), c = null, v = null, F = null, n = null, T = null, y = null, C(!1), p.endDrag(!0));
20
+ c !== null && (a !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(a), a = null), c = null, v = null, F = null, n = null, T = null, y = null, C(!1), h.endDrag(!0));
21
21
  }, Y = () => {
22
22
  if (!n) return;
23
23
  const t = T ?? n.getBoundingClientRect(), e = 48, d = 24, s = l - t.top, o = t.bottom - l;
24
24
  let r = 0;
25
25
  if (s < e ? r = -Math.ceil((e - s) / e * d) : o < e && (r = Math.ceil((e - o) / e * d)), r === 0) return;
26
- const i = n.scrollTop, h = Math.max(0, Math.min(i + r, n.scrollHeight - n.clientHeight));
27
- h !== i && (n.scrollTop = h);
26
+ const i = n.scrollTop, g = Math.max(0, Math.min(i + r, n.scrollHeight - n.clientHeight));
27
+ g !== i && (n.scrollTop = g);
28
28
  }, R = () => {
29
29
  if (a !== null || typeof requestAnimationFrame > "u") return;
30
30
  const t = () => {
@@ -44,23 +44,23 @@ function Z() {
44
44
  if (!r) return;
45
45
  const i = o.closest(".deck-grid");
46
46
  if (!i) return;
47
- t.preventDefault(), t.stopPropagation(), c = t.pointerId, m = t.clientX, f = t.clientY, g = m, l = f, P = m, I = f, v = r, F = o, n = i, T = i.getBoundingClientRect(), L = i.scrollTop, A = L, C(!0);
48
- const u = p.activeLayout()?.widgets.find((b) => b.id === r);
47
+ t.preventDefault(), t.stopPropagation(), c = t.pointerId, p = t.clientX, m = t.clientY, f = p, l = m, P = p, I = m, v = r, F = o, n = i, T = i.getBoundingClientRect(), L = i.scrollTop, A = L, C(!0);
48
+ const u = h.activeLayout()?.widgets.find((b) => b.id === r);
49
49
  y = u ? { ...u.position } : null;
50
50
  const E = window.getComputedStyle(i);
51
- H = parseFloat(E.paddingLeft) || 0, k = parseFloat(E.paddingRight) || 0, p.startDrag(r, m, f), o.setPointerCapture(t.pointerId), R();
51
+ H = parseFloat(E.paddingLeft) || 0, k = parseFloat(E.paddingRight) || 0, h.startDrag(r, p, m), o.setPointerCapture(t.pointerId), R();
52
52
  }, x = (t) => {
53
- c !== t.pointerId || !v || (g = t.clientX, l = t.clientY, typeof requestAnimationFrame > "u" && X());
53
+ c !== t.pointerId || !v || (f = t.clientX, l = t.clientY, typeof requestAnimationFrame > "u" && X());
54
54
  }, X = () => {
55
55
  if (!v || !n || !y) return;
56
56
  Y();
57
57
  const t = n.scrollTop;
58
- if (g === P && l === I && t === A) return;
59
- P = g, I = l, A = t;
60
- const e = g - m, d = l - f + (t - L), { cols: s, rowHeight: o, gap: r } = N(n), i = n.clientWidth - H - k, h = r * (s - 1), u = (i - h) / s;
58
+ if (f === P && l === I && t === A) return;
59
+ P = f, I = l, A = t;
60
+ const e = f - p, d = l - m + (t - L), { cols: s, rowHeight: o, gap: r } = N(n), i = n.clientWidth - H - k, g = r * (s - 1), u = (i - g) / s;
61
61
  if (!Number.isFinite(u) || u <= 0) return;
62
62
  const E = o + r, b = Math.round(e / u), W = Math.round(d / E), q = U(y, b, W, s);
63
- p.updateDrag(q, { x: e, y: d });
63
+ h.updateDrag(q, { x: e, y: d });
64
64
  }, D = (t) => {
65
65
  if (c === t.pointerId) {
66
66
  try {
@@ -71,9 +71,9 @@ function Z() {
71
71
  }
72
72
  };
73
73
  G(() => {
74
- p.editMode() && (typeof document > "u" || (document.addEventListener("pointerdown", S, !0), document.addEventListener("pointermove", x, !0), document.addEventListener("pointerup", D, !0), document.addEventListener("pointercancel", D, !0), z(() => {
74
+ typeof document > "u" || (document.addEventListener("pointerdown", S, !0), document.addEventListener("pointermove", x, !0), document.addEventListener("pointerup", D, !0), document.addEventListener("pointercancel", D, !0), z(() => {
75
75
  M(), document.removeEventListener("pointerdown", S, !0), document.removeEventListener("pointermove", x, !0), document.removeEventListener("pointerup", D, !0), document.removeEventListener("pointercancel", D, !0);
76
- })));
76
+ }));
77
77
  });
78
78
  }
79
79
  export {
package/dist/layout.js CHANGED
@@ -1,32 +1,37 @@
1
- import { ActivityBar as o } from "./components/layout/ActivityBar.js";
2
- import { BottomBar as a, BottomBarItem as m, StatusIndicator as i } from "./components/layout/BottomBar.js";
3
- import { KeepAliveStack as n } from "./components/layout/KeepAliveStack.js";
4
- import { MobileTabBar as x } from "./components/layout/MobileTabBar.js";
5
- import { Panel as d, PanelContent as B, PanelHeader as b } from "./components/layout/Panel.js";
6
- import { ResizeHandle as c } from "./components/layout/ResizeHandle.js";
7
- import { Shell as P } from "./components/layout/Shell.js";
8
- import { Sidebar as T, SidebarContent as u, SidebarItem as v, SidebarItemList as A, SidebarSection as C } from "./components/layout/Sidebar.js";
9
- import { SidebarPane as h } from "./components/layout/SidebarPane.js";
10
- import { TopBar as y } from "./components/layout/TopBar.js";
11
- import { TopBarIconButton as K } from "./components/layout/TopBarIconButton.js";
1
+ import { ActivityBar as r } from "./components/layout/ActivityBar.js";
2
+ import { BottomBar as a, BottomBarItem as i, StatusIndicator as p } from "./components/layout/BottomBar.js";
3
+ import { DisplayModePageShell as n } from "./components/layout/DisplayModePageShell.js";
4
+ import { DisplayModeSwitcher as l, sanitizeDisplayMode as x } from "./components/layout/DisplayModeSwitcher.js";
5
+ import { KeepAliveStack as S } from "./components/layout/KeepAliveStack.js";
6
+ import { MobileTabBar as b } from "./components/layout/MobileTabBar.js";
7
+ import { Panel as c, PanelContent as I, PanelHeader as P } from "./components/layout/Panel.js";
8
+ import { ResizeHandle as M } from "./components/layout/ResizeHandle.js";
9
+ import { Shell as D } from "./components/layout/Shell.js";
10
+ import { Sidebar as u, SidebarContent as v, SidebarItem as z, SidebarItemList as A, SidebarSection as C } from "./components/layout/Sidebar.js";
11
+ import { SidebarPane as g } from "./components/layout/SidebarPane.js";
12
+ import { TopBar as w } from "./components/layout/TopBar.js";
13
+ import { TopBarIconButton as L } from "./components/layout/TopBarIconButton.js";
12
14
  export {
13
- o as ActivityBar,
15
+ r as ActivityBar,
14
16
  a as BottomBar,
15
- m as BottomBarItem,
16
- n as KeepAliveStack,
17
- x as MobileTabBar,
18
- d as Panel,
19
- B as PanelContent,
20
- b as PanelHeader,
21
- c as ResizeHandle,
22
- P as Shell,
23
- T as Sidebar,
24
- u as SidebarContent,
25
- v as SidebarItem,
17
+ i as BottomBarItem,
18
+ n as DisplayModePageShell,
19
+ l as DisplayModeSwitcher,
20
+ S as KeepAliveStack,
21
+ b as MobileTabBar,
22
+ c as Panel,
23
+ I as PanelContent,
24
+ P as PanelHeader,
25
+ M as ResizeHandle,
26
+ D as Shell,
27
+ u as Sidebar,
28
+ v as SidebarContent,
29
+ z as SidebarItem,
26
30
  A as SidebarItemList,
27
- h as SidebarPane,
31
+ g as SidebarPane,
28
32
  C as SidebarSection,
29
- i as StatusIndicator,
30
- y as TopBar,
31
- K as TopBarIconButton
33
+ p as StatusIndicator,
34
+ w as TopBar,
35
+ L as TopBarIconButton,
36
+ x as sanitizeDisplayMode
32
37
  };