@fungi.computer/tourtois 0.15.0 → 0.15.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.
package/dist/AppPane.d.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { type AppStatusAction } from "@fungi.computer/agar";
1
+ import { WindowHeader } from "@fungi.computer/caps/components/window";
2
+ import { type AppNavigationState, type AppStatusAction } from "@fungi.computer/agar";
3
+ import { type ComponentProps } from "react";
2
4
  import { createAppWindowManager, type AppWindowProjection, type AppLaunchDescriptor } from "./app-windows.js";
3
5
  import { type AppDirectoryApp } from "./app-launch.js";
4
6
  /** The focused window's App-level settings; its Computer lives in its status bar. */
@@ -8,6 +10,11 @@ export declare function FocusedWindowControls({ app, onOpenSettings, onOpenPermi
8
10
  onOpenPermissions: () => void;
9
11
  projection: AppWindowProjection;
10
12
  }): import("react/jsx-runtime").JSX.Element | null;
13
+ /**
14
+ * Back and Forward on every window, disabled while the App cannot move (or
15
+ * has published no history), so every title keeps its place.
16
+ */
17
+ export declare function historyProps(navigation: AppNavigationState | null, title: string, onBack: () => void, onForward: () => void): Pick<ComponentProps<typeof WindowHeader>, "back" | "forward">;
11
18
  export declare function AppPane({ projection, nextLaunch, icon, manager, onError, index, focusWindow, afterHide, onBack, onForward, onSelectComputer, onChooseComputer, }: {
12
19
  projection: AppWindowProjection;
13
20
  nextLaunch?: AppLaunchDescriptor | null;
package/dist/AppPane.js CHANGED
@@ -122,23 +122,21 @@ function AppWindowControls({ phone, navigation, onAction, popover, ...actions })
122
122
  }, children: command.label }, command.id))), actions.onPromote ? (_jsx(DropdownMenuItem, { onSelect: actions.onPromote, children: "Make main window" })) : null, _jsx(DropdownMenuItem, { onSelect: actions.onToggleMaximize, children: actions.maximized ? "Restore window" : "Maximize window" }), _jsx(DropdownMenuItem, { onSelect: actions.onMinimize, children: "Minimize window" }), _jsx(DropdownMenuItem, { variant: "destructive", onSelect: actions.onClose, children: "Close window" })] })] }));
123
123
  }
124
124
  /**
125
- * Back and Forward for an App that publishes navigation, disabled while it
126
- * cannot move, so the title keeps its place; none for one that never does.
125
+ * Back and Forward on every window, disabled while the App cannot move (or
126
+ * has published no history), so every title keeps its place.
127
127
  */
128
- function historyProps(navigation, title, onBack, onForward) {
129
- if (navigation === null)
130
- return {};
128
+ export function historyProps(navigation, title, onBack, onForward) {
131
129
  return {
132
130
  back: {
133
131
  label: `Back in ${title}`,
134
132
  hint: backHint(),
135
- disabled: !navigation.canGoBack,
133
+ disabled: navigation?.canGoBack !== true,
136
134
  onBack,
137
135
  },
138
136
  forward: {
139
137
  label: `Forward in ${title}`,
140
138
  hint: forwardHint(),
141
- disabled: !navigation.canGoForward,
139
+ disabled: navigation?.canGoForward !== true,
142
140
  onForward,
143
141
  },
144
142
  };
@@ -614,7 +614,7 @@ export function AppWorkbench({ paneLayerRef, phone, teamId, teamName, initialCom
614
614
  return app ? (launchFor(app)?.computers ?? []) : [];
615
615
  }, storage: desktopStorage, methods: desktopMethods, transport: gills, onRetryApps: () => {
616
616
  void appsQuery.refetch();
617
- } }) }), _jsxs(MaosaicoRegion, { layer: "windows", style: { height: "100%", pointerEvents: "none" }, ref: paneLayerRef, className: "tourtois-pane-layer", "data-layout-mode": mode, children: [appProjection.windows.map((projection, index) => {
617
+ } }) }), _jsxs(MaosaicoRegion, { layer: "windows", style: { height: "100%", pointerEvents: "none" }, ref: paneLayerRef, className: "tourtois-pane-layer", "data-layout-mode": mode, "data-desktop": visibility, children: [appProjection.windows.map((projection, index) => {
618
618
  const app = directory.find((item) => item.surfaceId === projection.launch.surfaceId);
619
619
  return (_jsx(AppPane, { index: index, focusWindow: focusWindow, afterHide: afterHide, onBack: goBack, onForward: goForward, manager: appWindows, projection: projection, nextLaunch: app ? launchFor(app, projection.launch) : null, icon: app?.icon, onError: setAppStatus, onSelectComputer: (windowId, computerId) => {
620
620
  void selectWindowComputer(windowId, computerId);
package/dist/shell.css CHANGED
@@ -575,6 +575,13 @@
575
575
  width: 100%;
576
576
  }
577
577
 
578
+ /* Tiled windows cover the desktop: the gaps between them paint a plain face,
579
+ never the widgets underneath. The layer ignores the pointer, so the divider
580
+ handle above the backdrop keeps working. */
581
+ .tourtois-pane-layer[data-desktop="covered"] {
582
+ background: var(--color-base-200);
583
+ }
584
+
578
585
  .tourtois-pane {
579
586
  pointer-events: auto;
580
587
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/tourtois",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "Tourtois: the trusted desktop shell for Oyster and Fungi, with host-supplied Settings sections",
6
6
  "type": "module",
@@ -106,7 +106,7 @@
106
106
  "react": "^18.3.1 || ^19.2.0"
107
107
  },
108
108
  "devDependencies": {
109
- "@fungi.computer/oyster": "0.21.4",
109
+ "@fungi.computer/oyster": "0.21.5",
110
110
  "@cloudflare/workers-types": "5.20260828.1",
111
111
  "@fungi.computer/forage": "0.3.5",
112
112
  "@fungi.computer/mycelium": "0.3.8",
@@ -247,7 +247,7 @@
247
247
  "workbench:build": "ladle build --outDir ../../.botanical/tourtois-ladle",
248
248
  "test:overlay-layering": "node test/overlay-layering.browser.mjs",
249
249
  "test:window-new-version": "node test/window-new-version.browser.mjs",
250
- "test:workbench": "node test/workbench.browser.mjs && node test/desktop-gills.browser.mjs && node test/app-directory-isolation.browser.mjs && node test/workflows-launcher-icon.browser.mjs && node test/landing-bugs.browser.mjs && node test/show-desktop.browser.mjs && node test/window-stack.browser.mjs && node test/window-chrome-back.browser.mjs && node test/app-bar-menu.browser.mjs && node test/launcher-gill.browser.mjs && node test/desktop-storage.browser.mjs && node test/desktop-method-editing.browser.mjs && node test/arrange-layout-shift.browser.mjs && node test/phone-layout.browser.mjs && node test/phone-app-switcher.browser.mjs && node test/computer-choice.browser.mjs && node test/window-resize.browser.mjs",
250
+ "test:workbench": "node test/workbench.browser.mjs && node test/desktop-gills.browser.mjs && node test/app-directory-isolation.browser.mjs && node test/workflows-launcher-icon.browser.mjs && node test/landing-bugs.browser.mjs && node test/show-desktop.browser.mjs && node test/window-stack.browser.mjs && node test/window-chrome-back.browser.mjs && node test/tile-backdrop.browser.mjs && node test/app-bar-menu.browser.mjs && node test/launcher-gill.browser.mjs && node test/desktop-storage.browser.mjs && node test/desktop-method-editing.browser.mjs && node test/arrange-layout-shift.browser.mjs && node test/phone-layout.browser.mjs && node test/phone-app-switcher.browser.mjs && node test/computer-choice.browser.mjs && node test/window-resize.browser.mjs",
251
251
  "test": "pnpm run test:unit && pnpm run test:merge",
252
252
  "test:settings-icons": "node --import tsx ../../tooling/repository/scripts/workbench-proofs.mjs --output ../../.botanical/tourtois-ladle --origin-env TOURTOIS_WORKBENCH_URL test/settings-icons.browser.mjs",
253
253
  "format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",