@tutti-os/workbench-surface 0.0.13 → 0.0.15
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/index.js +13 -41
- package/dist/index.js.map +1 -1
- package/dist/styles/workbench.css +25 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1994,6 +1994,12 @@ var defaultWindowChromeI18n = createWorkbenchWindowChromeI18nRuntime(
|
|
|
1994
1994
|
dictionaries: [workbenchWindowChromeI18nResources.en]
|
|
1995
1995
|
})
|
|
1996
1996
|
);
|
|
1997
|
+
function resolveWorkbenchNodeLaunchSource(data) {
|
|
1998
|
+
if (data && typeof data === "object" && "launchSource" in data && typeof data.launchSource === "string" && data.launchSource.length > 0) {
|
|
1999
|
+
return data.launchSource;
|
|
2000
|
+
}
|
|
2001
|
+
return void 0;
|
|
2002
|
+
}
|
|
1997
2003
|
function resolveWorkbenchNodeTypeId(data) {
|
|
1998
2004
|
if (data && typeof data === "object" && "typeId" in data && typeof data.typeId === "string") {
|
|
1999
2005
|
return data.typeId;
|
|
@@ -2103,6 +2109,7 @@ function WorkbenchWindowFrame({
|
|
|
2103
2109
|
"data-focused": isFocused ? "true" : "false",
|
|
2104
2110
|
"data-display-mode": node.displayMode,
|
|
2105
2111
|
"data-genie-state": genie.isNodeGenieHidden(node.id) ? "hidden" : "visible",
|
|
2112
|
+
"data-launch-source": resolveWorkbenchNodeLaunchSource(node.data),
|
|
2106
2113
|
"data-minimized-mount": hiddenMounted ? "hidden" : "visible",
|
|
2107
2114
|
"data-presentation-mode": presentationMode ?? "default",
|
|
2108
2115
|
"data-slot": "viewport-menu-boundary",
|
|
@@ -5522,11 +5529,7 @@ import {
|
|
|
5522
5529
|
ArrowRightIcon,
|
|
5523
5530
|
Button as Button4,
|
|
5524
5531
|
ChevronDownIcon,
|
|
5525
|
-
ChevronUpIcon
|
|
5526
|
-
Tooltip,
|
|
5527
|
-
TooltipContent,
|
|
5528
|
-
TooltipProvider,
|
|
5529
|
-
TooltipTrigger
|
|
5532
|
+
ChevronUpIcon
|
|
5530
5533
|
} from "@tutti-os/ui-system";
|
|
5531
5534
|
|
|
5532
5535
|
// src/host/dockEntries.ts
|
|
@@ -8024,7 +8027,7 @@ function WorkbenchHostDock({
|
|
|
8024
8027
|
style: dockFrameSize === null ? void 0 : {
|
|
8025
8028
|
"--desktop-dock-frame-size": `${dockFrameSize}px`
|
|
8026
8029
|
},
|
|
8027
|
-
children: /* @__PURE__ */
|
|
8030
|
+
children: /* @__PURE__ */ jsxs6(
|
|
8028
8031
|
"div",
|
|
8029
8032
|
{
|
|
8030
8033
|
ref: dockMeasureRef,
|
|
@@ -8278,17 +8281,7 @@ function WorkbenchHostDock({
|
|
|
8278
8281
|
closeHoverPanelImmediate(entry.id);
|
|
8279
8282
|
handleDockPointerLeave();
|
|
8280
8283
|
},
|
|
8281
|
-
children:
|
|
8282
|
-
/* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: dockButton2 }),
|
|
8283
|
-
/* @__PURE__ */ jsx10(
|
|
8284
|
-
TooltipContent,
|
|
8285
|
-
{
|
|
8286
|
-
side: dockPlacement === "left" ? "right" : "top",
|
|
8287
|
-
sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
|
|
8288
|
-
children: entry.label
|
|
8289
|
-
}
|
|
8290
|
-
)
|
|
8291
|
-
] })
|
|
8284
|
+
children: dockButton2
|
|
8292
8285
|
},
|
|
8293
8286
|
dockItem.key
|
|
8294
8287
|
);
|
|
@@ -8381,17 +8374,7 @@ function WorkbenchHostDock({
|
|
|
8381
8374
|
"data-presence": dockItem.presence,
|
|
8382
8375
|
"data-section-id": "minimized",
|
|
8383
8376
|
"data-stack-dispatching": stackDispatching ? "true" : void 0,
|
|
8384
|
-
children:
|
|
8385
|
-
/* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: stackButton }),
|
|
8386
|
-
/* @__PURE__ */ jsx10(
|
|
8387
|
-
TooltipContent,
|
|
8388
|
-
{
|
|
8389
|
-
side: dockPlacement === "left" ? "right" : "top",
|
|
8390
|
-
sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
|
|
8391
|
-
children: i18n.t("minimizedWindows")
|
|
8392
|
-
}
|
|
8393
|
-
)
|
|
8394
|
-
] })
|
|
8377
|
+
children: stackButton
|
|
8395
8378
|
},
|
|
8396
8379
|
dockItem.key
|
|
8397
8380
|
);
|
|
@@ -8470,17 +8453,7 @@ function WorkbenchHostDock({
|
|
|
8470
8453
|
"data-presence": dockItem.presence,
|
|
8471
8454
|
"data-promoted-from-stack": promotedNodeId === node.id ? "true" : void 0,
|
|
8472
8455
|
"data-section-id": "minimized",
|
|
8473
|
-
children:
|
|
8474
|
-
/* @__PURE__ */ jsx10(TooltipTrigger, { asChild: true, children: dockButton }),
|
|
8475
|
-
/* @__PURE__ */ jsx10(
|
|
8476
|
-
TooltipContent,
|
|
8477
|
-
{
|
|
8478
|
-
side: dockPlacement === "left" ? "right" : "top",
|
|
8479
|
-
sideOffset: DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET,
|
|
8480
|
-
children: node.title
|
|
8481
|
-
}
|
|
8482
|
-
)
|
|
8483
|
-
] })
|
|
8456
|
+
children: dockButton
|
|
8484
8457
|
},
|
|
8485
8458
|
dockItem.key
|
|
8486
8459
|
);
|
|
@@ -8534,7 +8507,7 @@ function WorkbenchHostDock({
|
|
|
8534
8507
|
) : null
|
|
8535
8508
|
]
|
|
8536
8509
|
}
|
|
8537
|
-
)
|
|
8510
|
+
)
|
|
8538
8511
|
}
|
|
8539
8512
|
),
|
|
8540
8513
|
popupEntry && activePopup ? /* @__PURE__ */ jsx10(
|
|
@@ -9471,7 +9444,6 @@ var dockHoverPanelCloseDelayMs = 160;
|
|
|
9471
9444
|
var dockHoverPanelHitSlopPx = 12;
|
|
9472
9445
|
var dockHoverPanelBridgeSlopPx = 6;
|
|
9473
9446
|
var dockHoverPanelPointerRestTolerancePx = 4;
|
|
9474
|
-
var DOCK_MAGNIFIED_TOOLTIP_SIDE_OFFSET = 40;
|
|
9475
9447
|
var dockWallpaperSampleCanvasMaxSizePx = 192;
|
|
9476
9448
|
var dockWallpaperToneSampleCount = 7;
|
|
9477
9449
|
var dockWallpaperDarkLuminanceThreshold = 132;
|