@seliseblocks/genesis-os 4.2.2 → 4.2.4
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/{chunk-VNUPOJ7H.cjs → chunk-3VNGGYRG.cjs} +18 -2
- package/dist/chunk-3VNGGYRG.cjs.map +1 -0
- package/dist/{chunk-6RCHFJ4C.js → chunk-575VJQ2U.js} +38 -65
- package/dist/chunk-575VJQ2U.js.map +1 -0
- package/dist/{chunk-CEXYN2ZD.js → chunk-6WBFAHAO.js} +18 -3
- package/dist/chunk-6WBFAHAO.js.map +1 -0
- package/dist/{chunk-RYEW56RI.js → chunk-7EFD3LDX.js} +4 -4
- package/dist/{chunk-RYEW56RI.js.map → chunk-7EFD3LDX.js.map} +1 -1
- package/dist/{chunk-MSHCIIXL.cjs → chunk-FJ4KYZYG.cjs} +5 -5
- package/dist/{chunk-MSHCIIXL.cjs.map → chunk-FJ4KYZYG.cjs.map} +1 -1
- package/dist/{chunk-QWUCV4KF.js → chunk-JXEOZY4V.js} +314 -205
- package/dist/chunk-JXEOZY4V.js.map +1 -0
- package/dist/{chunk-HTZX5UUU.cjs → chunk-QYN3AEU5.cjs} +12 -12
- package/dist/{chunk-HTZX5UUU.cjs.map → chunk-QYN3AEU5.cjs.map} +1 -1
- package/dist/{chunk-JTSGZMKE.cjs → chunk-ROV7S3SC.cjs} +40 -67
- package/dist/chunk-ROV7S3SC.cjs.map +1 -0
- package/dist/{chunk-WKZJV3E7.js → chunk-RZ3F7SL3.js} +3 -3
- package/dist/{chunk-WKZJV3E7.js.map → chunk-RZ3F7SL3.js.map} +1 -1
- package/dist/{chunk-PSATBGVF.cjs → chunk-U3WXD3OX.cjs} +6 -5
- package/dist/chunk-U3WXD3OX.cjs.map +1 -0
- package/dist/{chunk-VNUHUNWE.cjs → chunk-WOKUPQ7C.cjs} +370 -261
- package/dist/chunk-WOKUPQ7C.cjs.map +1 -0
- package/dist/{chunk-MCOK3TFE.js → chunk-WPTHBDJO.js} +5 -4
- package/dist/chunk-WPTHBDJO.js.map +1 -0
- package/dist/components/index.cjs +382 -382
- package/dist/components/index.d.cts +25 -22
- package/dist/components/index.d.ts +25 -22
- package/dist/components/index.js +6 -6
- package/dist/guards/index.cjs +9 -9
- package/dist/guards/index.js +3 -3
- package/dist/hooks/index.cjs +53 -53
- package/dist/hooks/index.js +3 -3
- package/dist/index.cjs +463 -459
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/layouts/index.cjs +13 -13
- package/dist/layouts/index.d.cts +3 -2
- package/dist/layouts/index.d.ts +3 -2
- package/dist/layouts/index.js +6 -6
- package/dist/pages/index.cjs +11 -11
- package/dist/pages/index.js +6 -6
- package/dist/providers/index.cjs +6 -6
- package/dist/providers/index.d.cts +1 -3
- package/dist/providers/index.d.ts +1 -3
- package/dist/providers/index.js +2 -2
- package/dist/store/index.cjs +10 -6
- package/dist/store/index.d.cts +25 -1
- package/dist/store/index.d.ts +25 -1
- package/dist/store/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-6RCHFJ4C.js.map +0 -1
- package/dist/chunk-CEXYN2ZD.js.map +0 -1
- package/dist/chunk-JTSGZMKE.cjs.map +0 -1
- package/dist/chunk-MCOK3TFE.js.map +0 -1
- package/dist/chunk-PSATBGVF.cjs.map +0 -1
- package/dist/chunk-QWUCV4KF.js.map +0 -1
- package/dist/chunk-VNUHUNWE.cjs.map +0 -1
- package/dist/chunk-VNUPOJ7H.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-
|
|
2
|
+
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-RZ3F7SL3.js';
|
|
3
3
|
import { showErrorToast, getForwardedToPath, formatFullDate, formatDate, debounce, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-M4AKVWL4.js';
|
|
4
|
-
import {
|
|
4
|
+
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-575VJQ2U.js';
|
|
5
5
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
|
|
6
|
-
import { PublicGuard, ImpersonationChecker, ImpersonationTerminator, ImpersonationSynchronizer } from './chunk-
|
|
7
|
-
import { useStartImpersonation, useGetProjects, useGetProject, useGetEnvRepositories, useUpdateTenantGroup, useDisableProject, useUpdateRepositories } from './chunk-
|
|
6
|
+
import { PublicGuard, ImpersonationChecker, ImpersonationTerminator, ImpersonationSynchronizer } from './chunk-7EFD3LDX.js';
|
|
7
|
+
import { useStartImpersonation, useGetProjects, useGetProject, useGetEnvRepositories, useUpdateTenantGroup, useDisableProject, useUpdateRepositories } from './chunk-WPTHBDJO.js';
|
|
8
8
|
import { getRuntimeEnv, fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, iamClient, PROFILE_ENDPOINTS } from './chunk-GWZQFBJ5.js';
|
|
9
9
|
import { cn, getQueryClient } from './chunk-MWEREW2W.js';
|
|
10
|
-
import { useLanguageViewStore, useUserStore } from './chunk-
|
|
10
|
+
import { useLayoutSettingsStore, useLanguageViewStore, useUserStore } from './chunk-6WBFAHAO.js';
|
|
11
11
|
import { CookieStorage, useProjectStore, useAuthStore } from './chunk-ENK42YC4.js';
|
|
12
12
|
import { __commonJS, __toESM } from './chunk-PL4HS6R6.js';
|
|
13
13
|
import * as React8 from 'react';
|
|
@@ -1089,14 +1089,65 @@ var SidebarMenuSubButton = React8.forwardRef(({ asChild = false, size = "md", is
|
|
|
1089
1089
|
);
|
|
1090
1090
|
});
|
|
1091
1091
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
1092
|
-
function
|
|
1093
|
-
return useContext(
|
|
1092
|
+
function useRightSidePanel() {
|
|
1093
|
+
return useContext(RightSidePanelContext) ?? defaultRightSidePanelContextValue;
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1095
|
+
function RenderConditionally({
|
|
1096
|
+
condition,
|
|
1097
|
+
children
|
|
1098
|
+
}) {
|
|
1099
|
+
if (!condition) {
|
|
1100
|
+
return null;
|
|
1101
|
+
}
|
|
1102
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
1103
|
+
}
|
|
1104
|
+
function RightSidePanelResizer({
|
|
1105
|
+
onHandlePointerDown
|
|
1106
|
+
}) {
|
|
1107
|
+
return /* @__PURE__ */ jsxs("div", { className: "pointer-events-none absolute inset-y-0 -left-0.5 w-1.5", children: [
|
|
1108
|
+
/* @__PURE__ */ jsx(
|
|
1109
|
+
"div",
|
|
1110
|
+
{
|
|
1111
|
+
"aria-hidden": "true",
|
|
1112
|
+
className: "absolute inset-y-0 left-1/2 w-px -translate-x-1/2 bg-border"
|
|
1113
|
+
}
|
|
1114
|
+
),
|
|
1115
|
+
/* @__PURE__ */ jsx(
|
|
1116
|
+
"div",
|
|
1117
|
+
{
|
|
1118
|
+
"data-resize-handle": true,
|
|
1119
|
+
role: "separator",
|
|
1120
|
+
"aria-orientation": "vertical",
|
|
1121
|
+
"aria-label": "Resize panel",
|
|
1122
|
+
onPointerDown: onHandlePointerDown,
|
|
1123
|
+
className: cn(
|
|
1124
|
+
"pointer-events-auto",
|
|
1125
|
+
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",
|
|
1126
|
+
"flex h-12 w-3 cursor-ew-resize touch-none items-center justify-center",
|
|
1127
|
+
"rounded-full bg-border transition-colors duration-150",
|
|
1128
|
+
"hover:bg-primary/50 active:bg-primary/70"
|
|
1129
|
+
),
|
|
1130
|
+
children: /* @__PURE__ */ jsxs("div", { "aria-hidden": "true", className: "grid grid-cols-2 gap-[3px]", children: [
|
|
1131
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
|
|
1132
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
|
|
1133
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
|
|
1134
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
|
|
1135
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" }),
|
|
1136
|
+
/* @__PURE__ */ jsx("span", { className: "block h-[3px] w-[3px] rounded-full bg-background/70" })
|
|
1137
|
+
] })
|
|
1138
|
+
}
|
|
1139
|
+
)
|
|
1140
|
+
] });
|
|
1141
|
+
}
|
|
1142
|
+
function clampWidth(value, min, max) {
|
|
1143
|
+
return Math.max(min, Math.min(max, value));
|
|
1144
|
+
}
|
|
1145
|
+
function resolveMaxPx(maxWidth, viewportWidth) {
|
|
1146
|
+
if (typeof window === "undefined") return 0;
|
|
1147
|
+
if (maxWidth.endsWith("vw")) {
|
|
1148
|
+
return parseFloat(maxWidth) / 100 * viewportWidth;
|
|
1149
|
+
}
|
|
1150
|
+
return parsePx(maxWidth);
|
|
1100
1151
|
}
|
|
1101
1152
|
function parsePx(value) {
|
|
1102
1153
|
if (typeof window === "undefined") return 0;
|
|
@@ -1115,45 +1166,62 @@ function DesktopPanel({
|
|
|
1115
1166
|
children,
|
|
1116
1167
|
id
|
|
1117
1168
|
}) {
|
|
1118
|
-
const {
|
|
1169
|
+
const {
|
|
1170
|
+
open,
|
|
1171
|
+
close,
|
|
1172
|
+
panelId,
|
|
1173
|
+
sizing,
|
|
1174
|
+
resizable,
|
|
1175
|
+
liveWidth,
|
|
1176
|
+
setLiveWidth,
|
|
1177
|
+
topOffset
|
|
1178
|
+
} = useRightSidePanel();
|
|
1179
|
+
const { setLayoutSetting } = useLayoutSettingsStore();
|
|
1119
1180
|
const containerRef = React8.useRef(null);
|
|
1120
|
-
React8.
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
if (
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
document.removeEventListener("pointermove", onMove);
|
|
1135
|
-
document.removeEventListener("pointerup", onUp);
|
|
1136
|
-
node.style.setProperty("--agent-panel-resolved-width", `${widthPx}px`);
|
|
1137
|
-
};
|
|
1138
|
-
const onDown = (event) => {
|
|
1181
|
+
React8.useLayoutEffect(() => {
|
|
1182
|
+
const container = containerRef.current;
|
|
1183
|
+
if (!container) return;
|
|
1184
|
+
if (open) {
|
|
1185
|
+
container.style.setProperty(
|
|
1186
|
+
"--right-side-panel-resolved-width",
|
|
1187
|
+
liveWidth
|
|
1188
|
+
);
|
|
1189
|
+
} else {
|
|
1190
|
+
container.style.removeProperty("--right-side-panel-resolved-width");
|
|
1191
|
+
}
|
|
1192
|
+
}, [open, liveWidth]);
|
|
1193
|
+
const onHandlePointerDown = React8.useCallback(
|
|
1194
|
+
(event) => {
|
|
1139
1195
|
event.preventDefault();
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1196
|
+
const panel = containerRef.current;
|
|
1197
|
+
if (!panel) return;
|
|
1198
|
+
const startX = event.clientX;
|
|
1199
|
+
const startPx = panel.getBoundingClientRect().width;
|
|
1200
|
+
const minPx = parsePx(sizing.minWidth);
|
|
1201
|
+
const maxPx = resolveMaxPx(sizing.maxWidth, window.innerWidth);
|
|
1202
|
+
const onMove = (e) => {
|
|
1203
|
+
const next = clampWidth(startPx + (startX - e.clientX), minPx, maxPx);
|
|
1204
|
+
panel.style.setProperty(
|
|
1205
|
+
"--right-side-panel-resolved-width",
|
|
1206
|
+
`${next}px`
|
|
1207
|
+
);
|
|
1208
|
+
setLiveWidth(`${next}px`);
|
|
1209
|
+
};
|
|
1210
|
+
const onUp = (e) => {
|
|
1211
|
+
document.removeEventListener("pointermove", onMove);
|
|
1212
|
+
document.removeEventListener("pointerup", onUp);
|
|
1213
|
+
const final = clampWidth(startPx + (startX - e.clientX), minPx, maxPx);
|
|
1214
|
+
setLayoutSetting("rightSidePanelWidth", `${final}px`);
|
|
1215
|
+
};
|
|
1144
1216
|
document.addEventListener("pointermove", onMove);
|
|
1145
1217
|
document.addEventListener("pointerup", onUp);
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
handle.addEventListener("pointerdown", onDown);
|
|
1150
|
-
return () => {
|
|
1151
|
-
handle.removeEventListener("pointerdown", onDown);
|
|
1152
|
-
};
|
|
1153
|
-
}, [resizable, sizing, setLiveWidth]);
|
|
1218
|
+
},
|
|
1219
|
+
[sizing, setLiveWidth, setLayoutSetting]
|
|
1220
|
+
);
|
|
1154
1221
|
return /* @__PURE__ */ jsx(
|
|
1155
1222
|
SheetPrimitive.Root,
|
|
1156
1223
|
{
|
|
1224
|
+
modal: false,
|
|
1157
1225
|
open,
|
|
1158
1226
|
onOpenChange: (next) => {
|
|
1159
1227
|
if (!next) close();
|
|
@@ -1161,36 +1229,32 @@ function DesktopPanel({
|
|
|
1161
1229
|
children: /* @__PURE__ */ jsx(SheetPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
|
|
1162
1230
|
SheetPrimitive.Content,
|
|
1163
1231
|
{
|
|
1232
|
+
forceMount: true,
|
|
1233
|
+
"aria-modal": false,
|
|
1164
1234
|
id: id ?? panelId,
|
|
1165
1235
|
ref: containerRef,
|
|
1166
|
-
|
|
1236
|
+
onPointerDownOutside: (e) => e.preventDefault(),
|
|
1237
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
1238
|
+
onFocusOutside: (e) => e.preventDefault(),
|
|
1239
|
+
"data-slot": "right-side-panel",
|
|
1167
1240
|
"data-state": open ? "open" : "closed",
|
|
1168
|
-
"aria-label": ariaLabel ?? "
|
|
1241
|
+
"aria-label": ariaLabel ?? "Side panel",
|
|
1242
|
+
"aria-hidden": !open,
|
|
1169
1243
|
className: cn(
|
|
1170
|
-
"bg-background fixed
|
|
1171
|
-
"transition-
|
|
1244
|
+
"bg-background fixed bottom-0 right-0 z-50 flex flex-col border-l shadow-lg",
|
|
1245
|
+
"transition-transform duration-300 ease-in-out",
|
|
1172
1246
|
"data-[state=closed]:translate-x-full data-[state=open]:translate-x-0",
|
|
1173
1247
|
className
|
|
1174
1248
|
),
|
|
1175
1249
|
style: {
|
|
1176
|
-
|
|
1250
|
+
top: topOffset,
|
|
1251
|
+
width: `var(--right-side-panel-resolved-width, ${liveWidth})`,
|
|
1177
1252
|
minWidth: sizing.minWidth,
|
|
1178
1253
|
maxWidth: sizing.maxWidth
|
|
1179
1254
|
},
|
|
1180
|
-
onPointerDownOutside: (event) => event.preventDefault(),
|
|
1181
|
-
onInteractOutside: (event) => event.preventDefault(),
|
|
1182
1255
|
children: [
|
|
1183
1256
|
children,
|
|
1184
|
-
resizable
|
|
1185
|
-
"div",
|
|
1186
|
-
{
|
|
1187
|
-
"data-resize-handle": true,
|
|
1188
|
-
role: "separator",
|
|
1189
|
-
"aria-orientation": "vertical",
|
|
1190
|
-
"aria-label": "Resize panel",
|
|
1191
|
-
className: "bg-border hover:bg-primary/50 absolute inset-y-0 left-0 w-1 cursor-ew-resize touch-none transition-colors"
|
|
1192
|
-
}
|
|
1193
|
-
)
|
|
1257
|
+
/* @__PURE__ */ jsx(RenderConditionally, { condition: resizable, children: /* @__PURE__ */ jsx(RightSidePanelResizer, { onHandlePointerDown }) })
|
|
1194
1258
|
]
|
|
1195
1259
|
}
|
|
1196
1260
|
) })
|
|
@@ -1203,10 +1267,11 @@ function MobilePanel({
|
|
|
1203
1267
|
className,
|
|
1204
1268
|
id
|
|
1205
1269
|
}) {
|
|
1206
|
-
const { open, close, panelId } =
|
|
1270
|
+
const { open, close, panelId } = useRightSidePanel();
|
|
1207
1271
|
return /* @__PURE__ */ jsx(
|
|
1208
1272
|
Drawer$1.Root,
|
|
1209
1273
|
{
|
|
1274
|
+
modal: false,
|
|
1210
1275
|
open,
|
|
1211
1276
|
onOpenChange: (next) => {
|
|
1212
1277
|
if (!next) close();
|
|
@@ -1217,9 +1282,9 @@ function MobilePanel({
|
|
|
1217
1282
|
Drawer$1.Content,
|
|
1218
1283
|
{
|
|
1219
1284
|
id: id ?? panelId,
|
|
1220
|
-
"data-slot": "
|
|
1285
|
+
"data-slot": "right-side-panel",
|
|
1221
1286
|
"data-state": open ? "open" : "closed",
|
|
1222
|
-
"aria-label": ariaLabel ?? "
|
|
1287
|
+
"aria-label": ariaLabel ?? "Side panel",
|
|
1223
1288
|
className: cn(
|
|
1224
1289
|
"bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto max-h-[90vh] flex-col rounded-t-[10px] border",
|
|
1225
1290
|
className
|
|
@@ -1234,26 +1299,26 @@ function MobilePanel({
|
|
|
1234
1299
|
}
|
|
1235
1300
|
);
|
|
1236
1301
|
}
|
|
1237
|
-
function
|
|
1302
|
+
function RightSidePanel({
|
|
1238
1303
|
ariaLabel,
|
|
1239
1304
|
className,
|
|
1240
1305
|
children,
|
|
1241
1306
|
content,
|
|
1242
1307
|
id
|
|
1243
1308
|
}) {
|
|
1244
|
-
const ctx =
|
|
1309
|
+
const ctx = useRightSidePanel();
|
|
1245
1310
|
const body = content ? content({ close: ctx.close, open: ctx.open }) : children;
|
|
1246
1311
|
if (ctx.isMobile) {
|
|
1247
1312
|
return /* @__PURE__ */ jsx(MobilePanel, { ariaLabel, className, id, children: body });
|
|
1248
1313
|
}
|
|
1249
1314
|
return /* @__PURE__ */ jsx(DesktopPanel, { ariaLabel, className, id, children: body });
|
|
1250
1315
|
}
|
|
1251
|
-
|
|
1252
|
-
var
|
|
1316
|
+
RightSidePanel.displayName = "RightSidePanel";
|
|
1317
|
+
var RightSidePanelHeader = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1253
1318
|
"div",
|
|
1254
1319
|
{
|
|
1255
1320
|
ref,
|
|
1256
|
-
"data-slot": "
|
|
1321
|
+
"data-slot": "right-side-panel-header",
|
|
1257
1322
|
className: cn(
|
|
1258
1323
|
"flex shrink-0 items-start justify-between gap-3 border-b p-4",
|
|
1259
1324
|
className
|
|
@@ -1261,12 +1326,12 @@ var AgentPanelHeader = React8.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1261
1326
|
...props
|
|
1262
1327
|
}
|
|
1263
1328
|
));
|
|
1264
|
-
|
|
1265
|
-
var
|
|
1329
|
+
RightSidePanelHeader.displayName = "RightSidePanelHeader";
|
|
1330
|
+
var RightSidePanelTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1266
1331
|
"h2",
|
|
1267
1332
|
{
|
|
1268
1333
|
ref,
|
|
1269
|
-
"data-slot": "
|
|
1334
|
+
"data-slot": "right-side-panel-title",
|
|
1270
1335
|
className: cn(
|
|
1271
1336
|
"text-base font-semibold leading-none tracking-tight",
|
|
1272
1337
|
className
|
|
@@ -1274,25 +1339,25 @@ var AgentPanelTitle = React8.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1274
1339
|
...props
|
|
1275
1340
|
}
|
|
1276
1341
|
));
|
|
1277
|
-
|
|
1278
|
-
var
|
|
1342
|
+
RightSidePanelTitle.displayName = "RightSidePanelTitle";
|
|
1343
|
+
var RightSidePanelDescription = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1279
1344
|
"p",
|
|
1280
1345
|
{
|
|
1281
1346
|
ref,
|
|
1282
|
-
"data-slot": "
|
|
1347
|
+
"data-slot": "right-side-panel-description",
|
|
1283
1348
|
className: cn("text-muted-foreground text-sm", className),
|
|
1284
1349
|
...props
|
|
1285
1350
|
}
|
|
1286
1351
|
));
|
|
1287
|
-
|
|
1288
|
-
var
|
|
1289
|
-
const { isMobile, close } =
|
|
1352
|
+
RightSidePanelDescription.displayName = "RightSidePanelDescription";
|
|
1353
|
+
var RightSidePanelClose = React8.forwardRef(({ className, ...props }, ref) => {
|
|
1354
|
+
const { isMobile, close } = useRightSidePanel();
|
|
1290
1355
|
const Comp = isMobile ? Drawer$1.Close : SheetPrimitive.Close;
|
|
1291
1356
|
return /* @__PURE__ */ jsxs(
|
|
1292
1357
|
Comp,
|
|
1293
1358
|
{
|
|
1294
1359
|
ref,
|
|
1295
|
-
"data-slot": "
|
|
1360
|
+
"data-slot": "right-side-panel-close",
|
|
1296
1361
|
"aria-label": "Close panel",
|
|
1297
1362
|
className: cn(
|
|
1298
1363
|
"ring-offset-background focus:ring-ring rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
@@ -1310,35 +1375,40 @@ var AgentPanelClose = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
1310
1375
|
}
|
|
1311
1376
|
);
|
|
1312
1377
|
});
|
|
1313
|
-
|
|
1314
|
-
var
|
|
1378
|
+
RightSidePanelClose.displayName = "RightSidePanelClose";
|
|
1379
|
+
var RightSidePanelBody = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1315
1380
|
"div",
|
|
1316
1381
|
{
|
|
1317
1382
|
ref,
|
|
1318
|
-
"data-slot": "
|
|
1383
|
+
"data-slot": "right-side-panel-body",
|
|
1319
1384
|
className: cn("min-h-0 flex-1 overflow-y-auto p-4", className),
|
|
1320
1385
|
...props
|
|
1321
1386
|
}
|
|
1322
1387
|
));
|
|
1323
|
-
|
|
1324
|
-
var
|
|
1388
|
+
RightSidePanelBody.displayName = "RightSidePanelBody";
|
|
1389
|
+
var RightSidePanelFooter = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1325
1390
|
"div",
|
|
1326
1391
|
{
|
|
1327
1392
|
ref,
|
|
1328
|
-
"data-slot": "
|
|
1393
|
+
"data-slot": "right-side-panel-footer",
|
|
1329
1394
|
className: cn("shrink-0 border-t p-4", className),
|
|
1330
1395
|
...props
|
|
1331
1396
|
}
|
|
1332
1397
|
));
|
|
1333
|
-
|
|
1398
|
+
RightSidePanelFooter.displayName = "RightSidePanelFooter";
|
|
1334
1399
|
var HASH_PREFIX = "#";
|
|
1335
|
-
var DEFAULT_HASH_KEY = "
|
|
1400
|
+
var DEFAULT_HASH_KEY = "right-side-panel";
|
|
1401
|
+
var DEFAULT_SIZING_VALUES = {
|
|
1402
|
+
width: "24rem",
|
|
1403
|
+
minWidth: "20rem",
|
|
1404
|
+
maxWidth: "50vw"
|
|
1405
|
+
};
|
|
1336
1406
|
function parseWidth(value, fallback) {
|
|
1337
1407
|
if (typeof value === "number") return `${value}px`;
|
|
1338
1408
|
if (typeof value === "string" && value.trim().length > 0) return value;
|
|
1339
1409
|
return fallback;
|
|
1340
1410
|
}
|
|
1341
|
-
function
|
|
1411
|
+
function RightSidePanelProvider({
|
|
1342
1412
|
children,
|
|
1343
1413
|
defaultOpen = false,
|
|
1344
1414
|
open: openProp,
|
|
@@ -1346,26 +1416,32 @@ function AgentPanelProvider({
|
|
|
1346
1416
|
syncHash = true,
|
|
1347
1417
|
hashKey = DEFAULT_HASH_KEY,
|
|
1348
1418
|
shortcut = "mod+j",
|
|
1349
|
-
width =
|
|
1350
|
-
minWidth =
|
|
1351
|
-
maxWidth =
|
|
1419
|
+
width = DEFAULT_SIZING_VALUES.width,
|
|
1420
|
+
minWidth = DEFAULT_SIZING_VALUES.minWidth,
|
|
1421
|
+
maxWidth = DEFAULT_SIZING_VALUES.maxWidth,
|
|
1352
1422
|
resizable = false,
|
|
1353
1423
|
panelId,
|
|
1354
1424
|
className,
|
|
1355
|
-
style
|
|
1425
|
+
style,
|
|
1426
|
+
topOffset = "0px"
|
|
1356
1427
|
}) {
|
|
1357
1428
|
const isMobile = useIsMobile();
|
|
1358
1429
|
const isControlled = openProp !== void 0;
|
|
1359
1430
|
const generatedId = React8.useId();
|
|
1360
|
-
const resolvedPanelId = panelId ?? `
|
|
1431
|
+
const resolvedPanelId = panelId ?? `right-side-panel-${generatedId}`;
|
|
1432
|
+
const resolvedTopOffset = parseWidth(topOffset, "0px");
|
|
1433
|
+
const { layout } = useLayoutSettingsStore();
|
|
1361
1434
|
const sizing = React8.useMemo(
|
|
1362
1435
|
() => ({
|
|
1363
|
-
width: parseWidth(width,
|
|
1364
|
-
minWidth: parseWidth(minWidth,
|
|
1365
|
-
maxWidth: parseWidth(maxWidth,
|
|
1436
|
+
width: parseWidth(width, DEFAULT_SIZING_VALUES.width),
|
|
1437
|
+
minWidth: parseWidth(minWidth, DEFAULT_SIZING_VALUES.minWidth),
|
|
1438
|
+
maxWidth: parseWidth(maxWidth, DEFAULT_SIZING_VALUES.maxWidth)
|
|
1366
1439
|
}),
|
|
1367
1440
|
[width, minWidth, maxWidth]
|
|
1368
1441
|
);
|
|
1442
|
+
const [liveWidth, setLiveWidth] = React8.useState(
|
|
1443
|
+
() => layout.rightSidePanelWidth ?? sizing.width
|
|
1444
|
+
);
|
|
1369
1445
|
const readHash = React8.useCallback(() => {
|
|
1370
1446
|
if (typeof window === "undefined") return false;
|
|
1371
1447
|
const hash = window.location.hash.replace(/^#/, "");
|
|
@@ -1396,7 +1472,6 @@ function AgentPanelProvider({
|
|
|
1396
1472
|
const close = React8.useCallback(() => {
|
|
1397
1473
|
setOpen(false);
|
|
1398
1474
|
}, [setOpen]);
|
|
1399
|
-
const [liveWidth, setLiveWidth] = React8.useState("0px");
|
|
1400
1475
|
useKeyboardShortcut(shortcut, toggle);
|
|
1401
1476
|
React8.useEffect(() => {
|
|
1402
1477
|
if (!syncHash || isControlled || typeof window === "undefined") return;
|
|
@@ -1422,8 +1497,10 @@ function AgentPanelProvider({
|
|
|
1422
1497
|
}
|
|
1423
1498
|
}, [open, syncHash, isControlled, hashKey]);
|
|
1424
1499
|
React8.useEffect(() => {
|
|
1425
|
-
if (
|
|
1426
|
-
|
|
1500
|
+
if (layout.rightSidePanelWidth) {
|
|
1501
|
+
setLiveWidth(layout.rightSidePanelWidth);
|
|
1502
|
+
}
|
|
1503
|
+
}, [layout.rightSidePanelWidth]);
|
|
1427
1504
|
const contextValue = React8.useMemo(
|
|
1428
1505
|
() => ({
|
|
1429
1506
|
open,
|
|
@@ -1435,7 +1512,8 @@ function AgentPanelProvider({
|
|
|
1435
1512
|
setLiveWidth,
|
|
1436
1513
|
resizable,
|
|
1437
1514
|
panelId: resolvedPanelId,
|
|
1438
|
-
isMobile
|
|
1515
|
+
isMobile,
|
|
1516
|
+
topOffset: resolvedTopOffset
|
|
1439
1517
|
}),
|
|
1440
1518
|
[
|
|
1441
1519
|
open,
|
|
@@ -1446,21 +1524,22 @@ function AgentPanelProvider({
|
|
|
1446
1524
|
liveWidth,
|
|
1447
1525
|
resizable,
|
|
1448
1526
|
resolvedPanelId,
|
|
1449
|
-
isMobile
|
|
1527
|
+
isMobile,
|
|
1528
|
+
resolvedTopOffset
|
|
1450
1529
|
]
|
|
1451
1530
|
);
|
|
1452
|
-
return /* @__PURE__ */ jsx(
|
|
1531
|
+
return /* @__PURE__ */ jsx(RightSidePanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
1453
1532
|
"div",
|
|
1454
1533
|
{
|
|
1455
|
-
"data-slot": "
|
|
1534
|
+
"data-slot": "right-side-panel-provider",
|
|
1456
1535
|
"data-state": open ? "open" : "closed",
|
|
1457
1536
|
"data-panel-id": resolvedPanelId,
|
|
1458
1537
|
className: cn("relative w-full", className),
|
|
1459
1538
|
style: {
|
|
1460
|
-
"--
|
|
1461
|
-
"--
|
|
1462
|
-
"--
|
|
1463
|
-
"--
|
|
1539
|
+
"--right-side-panel-width": open ? resizable ? liveWidth : sizing.width : "0px",
|
|
1540
|
+
"--right-side-panel-min-width": sizing.minWidth,
|
|
1541
|
+
"--right-side-panel-max-width": sizing.maxWidth,
|
|
1542
|
+
"--right-side-panel-live-width": liveWidth,
|
|
1464
1543
|
...style
|
|
1465
1544
|
},
|
|
1466
1545
|
children
|
|
@@ -1468,11 +1547,11 @@ function AgentPanelProvider({
|
|
|
1468
1547
|
) });
|
|
1469
1548
|
}
|
|
1470
1549
|
var positionClasses = {
|
|
1471
|
-
"bottom-right": "fixed bottom-4 right-4 z-40 rounded-full shadow-lg transition-[right] duration-300 ease-in-out data-[state=open]:right-[var(--
|
|
1472
|
-
"bottom-left": "fixed bottom-4 left-4 z-40 rounded-full shadow-lg transition-[left] duration-300 ease-in-out data-[state=open]:left-[var(--
|
|
1550
|
+
"bottom-right": "fixed bottom-4 right-4 z-40 rounded-full shadow-lg transition-[right] duration-300 ease-in-out data-[state=open]:right-[var(--right-side-panel-width,0px)]",
|
|
1551
|
+
"bottom-left": "fixed bottom-4 left-4 z-40 rounded-full shadow-lg transition-[left] duration-300 ease-in-out data-[state=open]:left-[var(--right-side-panel-width,0px)]",
|
|
1473
1552
|
inline: "relative"
|
|
1474
1553
|
};
|
|
1475
|
-
var
|
|
1554
|
+
var RightSidePanelTrigger = React8.forwardRef(
|
|
1476
1555
|
({
|
|
1477
1556
|
asChild = false,
|
|
1478
1557
|
position = "bottom-right",
|
|
@@ -1485,20 +1564,21 @@ var AgentPanelTrigger = React8.forwardRef(
|
|
|
1485
1564
|
type,
|
|
1486
1565
|
...props
|
|
1487
1566
|
}, ref) => {
|
|
1488
|
-
const { open, toggle, panelId } =
|
|
1567
|
+
const { open, toggle, panelId } = useRightSidePanel();
|
|
1489
1568
|
const Comp = asChild ? Slot : Button;
|
|
1490
1569
|
const isFloating = position !== "inline";
|
|
1491
|
-
const computedLabel = ariaLabel ?? label ?? "Toggle
|
|
1570
|
+
const computedLabel = ariaLabel ?? label ?? "Toggle side panel";
|
|
1492
1571
|
const handleClick = (event) => {
|
|
1493
1572
|
onClick?.(event);
|
|
1494
1573
|
if (!event.defaultPrevented) toggle();
|
|
1495
1574
|
};
|
|
1575
|
+
if (open) return null;
|
|
1496
1576
|
return /* @__PURE__ */ jsx(
|
|
1497
1577
|
Comp,
|
|
1498
1578
|
{
|
|
1499
1579
|
ref,
|
|
1500
1580
|
type: asChild ? void 0 : type ?? "button",
|
|
1501
|
-
"data-slot": "
|
|
1581
|
+
"data-slot": "right-side-panel-trigger",
|
|
1502
1582
|
"data-state": open ? "open" : "closed",
|
|
1503
1583
|
"aria-label": computedLabel,
|
|
1504
1584
|
"aria-expanded": open,
|
|
@@ -1518,7 +1598,7 @@ var AgentPanelTrigger = React8.forwardRef(
|
|
|
1518
1598
|
);
|
|
1519
1599
|
}
|
|
1520
1600
|
);
|
|
1521
|
-
|
|
1601
|
+
RightSidePanelTrigger.displayName = "RightSidePanelTrigger";
|
|
1522
1602
|
var Drawer = ({
|
|
1523
1603
|
shouldScaleBackground = true,
|
|
1524
1604
|
...props
|
|
@@ -5996,13 +6076,13 @@ var ImportFileModalContent = ({
|
|
|
5996
6076
|
) }) });
|
|
5997
6077
|
};
|
|
5998
6078
|
var parentClasses = (isSidebarOpen, isActive) => cn(
|
|
5999
|
-
"group relative flex h-10 w-full cursor-pointer items-center
|
|
6000
|
-
isSidebarOpen ? "px-4" : "justify-center px-0",
|
|
6079
|
+
"group relative flex h-10 w-full cursor-pointer items-center p-1.5 text-base text-[hsl(var(--low-emphasis))] transition-[padding,gap] duration-200 hover:text-[hsl(var(--high-emphasis))]",
|
|
6080
|
+
isSidebarOpen ? "gap-3 px-4" : "gap-0 justify-center px-0",
|
|
6001
6081
|
isActive && "!text-primary"
|
|
6002
6082
|
);
|
|
6003
6083
|
var childClasses = (isSidebarOpen, isActive) => cn(
|
|
6004
|
-
"group relative flex h-10 w-full items-center
|
|
6005
|
-
isSidebarOpen ? "px-4 pl-8" : "justify-center px-4",
|
|
6084
|
+
"group relative flex h-10 w-full items-center text-base transition-[padding,gap,color] duration-200",
|
|
6085
|
+
isSidebarOpen ? "gap-2 px-4 pl-8" : "gap-0 justify-center px-4",
|
|
6006
6086
|
isActive ? "!text-primary" : "text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]"
|
|
6007
6087
|
);
|
|
6008
6088
|
var ActiveBadge = () => /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" });
|
|
@@ -6018,7 +6098,16 @@ var ChildMenuItem = ({ menu, isSidebarOpen }) => {
|
|
|
6018
6098
|
),
|
|
6019
6099
|
children: [
|
|
6020
6100
|
menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6021
|
-
|
|
6101
|
+
/* @__PURE__ */ jsx(
|
|
6102
|
+
"span",
|
|
6103
|
+
{
|
|
6104
|
+
className: cn(
|
|
6105
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6106
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6107
|
+
),
|
|
6108
|
+
children: menu.name
|
|
6109
|
+
}
|
|
6110
|
+
),
|
|
6022
6111
|
isActiveMenu ? /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" }) : null
|
|
6023
6112
|
]
|
|
6024
6113
|
}
|
|
@@ -6035,23 +6124,32 @@ function DesktopLeafMenuItem({
|
|
|
6035
6124
|
{
|
|
6036
6125
|
to: menu.path,
|
|
6037
6126
|
className: cn(
|
|
6038
|
-
"flex items-center gap-
|
|
6039
|
-
|
|
6127
|
+
"flex w-full items-center transition-[gap] duration-200",
|
|
6128
|
+
isSidebarOpen ? "gap-3" : "justify-center gap-0",
|
|
6040
6129
|
menu.disabled && "pointer-events-none opacity-50"
|
|
6041
6130
|
),
|
|
6042
6131
|
children: [
|
|
6043
6132
|
menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6133
|
+
/* @__PURE__ */ jsx(
|
|
6134
|
+
"span",
|
|
6135
|
+
{
|
|
6136
|
+
className: cn(
|
|
6137
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6138
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6139
|
+
),
|
|
6140
|
+
children: /* @__PURE__ */ jsxs("span", { className: "relative inline-block", children: [
|
|
6141
|
+
menu.name,
|
|
6142
|
+
menu.badge ? /* @__PURE__ */ jsx(
|
|
6143
|
+
Badge,
|
|
6144
|
+
{
|
|
6145
|
+
variant: "secondary",
|
|
6146
|
+
className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
|
|
6147
|
+
children: menu.badge
|
|
6148
|
+
}
|
|
6149
|
+
) : null
|
|
6150
|
+
] })
|
|
6151
|
+
}
|
|
6152
|
+
)
|
|
6055
6153
|
]
|
|
6056
6154
|
}
|
|
6057
6155
|
),
|
|
@@ -6122,34 +6220,44 @@ function DesktopMenuItem({
|
|
|
6122
6220
|
"div",
|
|
6123
6221
|
{
|
|
6124
6222
|
className: cn(
|
|
6125
|
-
"flex items-center gap-
|
|
6126
|
-
|
|
6223
|
+
"flex items-center transition-[gap] duration-200",
|
|
6224
|
+
isSidebarOpen ? "gap-3" : "w-full justify-center gap-0"
|
|
6127
6225
|
),
|
|
6128
6226
|
children: [
|
|
6129
6227
|
menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6130
|
-
/* @__PURE__ */ jsx(
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6228
|
+
/* @__PURE__ */ jsx(
|
|
6229
|
+
"span",
|
|
6230
|
+
{
|
|
6231
|
+
className: cn(
|
|
6232
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6233
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6234
|
+
),
|
|
6235
|
+
children: /* @__PURE__ */ jsxs("span", { className: "relative inline-block", children: [
|
|
6236
|
+
menu.name,
|
|
6237
|
+
/* @__PURE__ */ jsx(RenderConditionally, { condition: !!menu.badge, children: /* @__PURE__ */ jsx(
|
|
6238
|
+
Badge,
|
|
6239
|
+
{
|
|
6240
|
+
variant: "outline",
|
|
6241
|
+
className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
|
|
6242
|
+
children: menu.badge
|
|
6243
|
+
}
|
|
6244
|
+
) })
|
|
6245
|
+
] })
|
|
6246
|
+
}
|
|
6247
|
+
)
|
|
6141
6248
|
]
|
|
6142
6249
|
}
|
|
6143
6250
|
),
|
|
6144
|
-
/* @__PURE__ */ jsx(
|
|
6251
|
+
/* @__PURE__ */ jsx(
|
|
6145
6252
|
ChevronRight,
|
|
6146
6253
|
{
|
|
6147
6254
|
className: cn(
|
|
6148
|
-
"ml-auto h-4 w-4 transition-
|
|
6255
|
+
"ml-auto h-4 w-4 shrink-0 transition-all duration-200",
|
|
6256
|
+
isSidebarOpen ? "opacity-100" : "w-0 opacity-0",
|
|
6149
6257
|
isOpen && "rotate-90"
|
|
6150
6258
|
)
|
|
6151
6259
|
}
|
|
6152
|
-
)
|
|
6260
|
+
),
|
|
6153
6261
|
/* @__PURE__ */ jsx(RenderConditionally, { condition: isActiveMenu, children: /* @__PURE__ */ jsx(ActiveBadge, {}) })
|
|
6154
6262
|
]
|
|
6155
6263
|
}
|
|
@@ -6303,15 +6411,6 @@ function SidebarCollapsedTooltip({
|
|
|
6303
6411
|
)
|
|
6304
6412
|
] });
|
|
6305
6413
|
}
|
|
6306
|
-
function RenderConditionally({
|
|
6307
|
-
condition,
|
|
6308
|
-
children
|
|
6309
|
-
}) {
|
|
6310
|
-
if (!condition) {
|
|
6311
|
-
return null;
|
|
6312
|
-
}
|
|
6313
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
6314
|
-
}
|
|
6315
6414
|
function RenderAlternatively({
|
|
6316
6415
|
condition,
|
|
6317
6416
|
whenTrue,
|
|
@@ -7228,6 +7327,9 @@ function ConsoleHeader() {
|
|
|
7228
7327
|
}
|
|
7229
7328
|
);
|
|
7230
7329
|
}
|
|
7330
|
+
|
|
7331
|
+
// src/constants/layout.constant.ts
|
|
7332
|
+
var HeaderHeight = 60;
|
|
7231
7333
|
function DashboardHeader(props) {
|
|
7232
7334
|
const { forwardedTo, redirectPaths, navigationMenus } = props;
|
|
7233
7335
|
const { isSidebarOpen, toggleSidebar } = useContext(SidebarContext);
|
|
@@ -7237,43 +7339,50 @@ function DashboardHeader(props) {
|
|
|
7237
7339
|
const environment = selectedProject?.environment;
|
|
7238
7340
|
const isProjectOverviewRoute = pathname.includes("/project");
|
|
7239
7341
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7240
|
-
/* @__PURE__ */ jsxs(
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
{
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7342
|
+
/* @__PURE__ */ jsxs(
|
|
7343
|
+
"header",
|
|
7344
|
+
{
|
|
7345
|
+
style: { height: HeaderHeight },
|
|
7346
|
+
className: "relative z-40 flex shrink-0 items-center justify-between gap-4 border-b bg-background px-5 sm:px-6",
|
|
7347
|
+
children: [
|
|
7348
|
+
/* @__PURE__ */ jsx("div", { className: "md:hidden", children: /* @__PURE__ */ jsx(
|
|
7349
|
+
SidebarMobileView,
|
|
7350
|
+
{
|
|
7351
|
+
redirectPaths,
|
|
7352
|
+
navigationMenus
|
|
7353
|
+
}
|
|
7354
|
+
) }),
|
|
7355
|
+
/* @__PURE__ */ jsxs("div", { className: "hidden items-center md:flex", children: [
|
|
7356
|
+
/* @__PURE__ */ jsx(
|
|
7357
|
+
Button,
|
|
7358
|
+
{
|
|
7359
|
+
variant: "ghost",
|
|
7360
|
+
size: "icon",
|
|
7361
|
+
className: cn(
|
|
7362
|
+
"hidden shrink-0 p-0",
|
|
7363
|
+
!isSidebarOpen && "inline-flex"
|
|
7364
|
+
),
|
|
7365
|
+
onClick: toggleSidebar,
|
|
7366
|
+
children: /* @__PURE__ */ jsx(PanelLeft, { className: "h-6 w-6" })
|
|
7367
|
+
}
|
|
7257
7368
|
),
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
] })
|
|
7276
|
-
] }),
|
|
7369
|
+
!isProjectOverviewRoute && !isSidebarOpen && (projectName || environment) && /* @__PURE__ */ jsxs("div", { className: "ml-3 flex min-w-0 items-center gap-1.5", children: [
|
|
7370
|
+
/* @__PURE__ */ jsx(SelectedProject, {}),
|
|
7371
|
+
projectName && environment && /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
7372
|
+
/* @__PURE__ */ jsx(SelectedEnvironment, {})
|
|
7373
|
+
] })
|
|
7374
|
+
] }),
|
|
7375
|
+
/* @__PURE__ */ jsxs("div", { className: "relative z-50 flex items-center gap-4", children: [
|
|
7376
|
+
/* @__PURE__ */ jsx(BackToConsoleNavigator, {}),
|
|
7377
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(ThemeSwitcher, {}) }),
|
|
7378
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(Notification, {}) }),
|
|
7379
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(LanguageSelector, {}) }),
|
|
7380
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(AppSwitcher, { forwardedTo }) }),
|
|
7381
|
+
/* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(UserDropdownMenu, {}) })
|
|
7382
|
+
] })
|
|
7383
|
+
]
|
|
7384
|
+
}
|
|
7385
|
+
),
|
|
7277
7386
|
!isProjectOverviewRoute && (projectName || environment) && /* @__PURE__ */ jsx("div", { className: "shrink-0 border-b bg-background px-5 py-3 sm:px-6 md:hidden", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
7278
7387
|
/* @__PURE__ */ jsx(SelectedProject, {}),
|
|
7279
7388
|
/* @__PURE__ */ jsx(SelectedEnvironment, {})
|
|
@@ -7520,14 +7629,17 @@ function SelectedProject() {
|
|
|
7520
7629
|
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
|
|
7521
7630
|
] });
|
|
7522
7631
|
}
|
|
7632
|
+
function PublicLayout({ children }) {
|
|
7633
|
+
return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children }) });
|
|
7634
|
+
}
|
|
7523
7635
|
function AuthLayout({ children, logo, sidePanel }) {
|
|
7524
|
-
return /* @__PURE__ */ jsx(
|
|
7636
|
+
return /* @__PURE__ */ jsx(PublicLayout, { children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
|
|
7525
7637
|
logo,
|
|
7526
7638
|
/* @__PURE__ */ jsxs("div", { className: "mt-10 flex w-full max-w-6xl flex-col gap-8 lg:flex-row lg:items-start lg:justify-center", children: [
|
|
7527
7639
|
/* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children }),
|
|
7528
7640
|
sidePanel ? /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: sidePanel }) : null
|
|
7529
7641
|
] })
|
|
7530
|
-
] }) })
|
|
7642
|
+
] }) });
|
|
7531
7643
|
}
|
|
7532
7644
|
function ConsoleLayout({ children, wrapper }) {
|
|
7533
7645
|
const content = /* @__PURE__ */ jsxs("div", { className: "relative min-h-screen bg-[hsl(var(--surface-app))]", children: [
|
|
@@ -7543,7 +7655,7 @@ function DashboardLayout({
|
|
|
7543
7655
|
navigationMenus,
|
|
7544
7656
|
forwardedTo
|
|
7545
7657
|
}) {
|
|
7546
|
-
const content = /* @__PURE__ */ jsx(DashboardLayoutProvider, { isOpen: true,
|
|
7658
|
+
const content = /* @__PURE__ */ jsx(DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsx(RightSidePanelProvider, { resizable: true, topOffset: HeaderHeight, children: /* @__PURE__ */ jsxs("div", { className: "flex w-full overflow-hidden", children: [
|
|
7547
7659
|
/* @__PURE__ */ jsx(
|
|
7548
7660
|
SidebarMenuDesktop,
|
|
7549
7661
|
{
|
|
@@ -7564,7 +7676,7 @@ function DashboardLayout({
|
|
|
7564
7676
|
"div",
|
|
7565
7677
|
{
|
|
7566
7678
|
"data-slot": "dashboard-main",
|
|
7567
|
-
className: "min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden transition-[margin] duration-300 ease-in-out lg:mr-[var(--
|
|
7679
|
+
className: "min-h-0 w-full flex-1 overflow-y-auto overflow-x-hidden transition-[margin] duration-300 ease-in-out lg:mr-[var(--right-side-panel-width)]",
|
|
7568
7680
|
children
|
|
7569
7681
|
}
|
|
7570
7682
|
) })
|
|
@@ -7616,9 +7728,6 @@ function OidcLayout({
|
|
|
7616
7728
|
const contextValue = useMemo(() => value ?? { isLoading: false }, [value]);
|
|
7617
7729
|
return /* @__PURE__ */ jsx(OidcContext.Provider, { value: contextValue, children });
|
|
7618
7730
|
}
|
|
7619
|
-
function PublicLayout({ children }) {
|
|
7620
|
-
return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children }) });
|
|
7621
|
-
}
|
|
7622
7731
|
var LoginHeader = ({
|
|
7623
7732
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
7624
7733
|
blocksUrl = "https://seliseblocks.com",
|
|
@@ -8894,7 +9003,7 @@ var data = [
|
|
|
8894
9003
|
label: "Docs",
|
|
8895
9004
|
description: "Established standards that help project managers and technical leaders minimize project risks.",
|
|
8896
9005
|
image: console_timeline_default,
|
|
8897
|
-
url: "https://
|
|
9006
|
+
url: "https://docs.seliseblocks.com"
|
|
8898
9007
|
},
|
|
8899
9008
|
{
|
|
8900
9009
|
label: "Code",
|
|
@@ -10274,7 +10383,7 @@ function SidebarMenuDesktop({
|
|
|
10274
10383
|
return /* @__PURE__ */ jsxs(
|
|
10275
10384
|
"div",
|
|
10276
10385
|
{
|
|
10277
|
-
className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-
|
|
10386
|
+
className: `hidden h-screen shrink-0 flex-col overflow-hidden border-r bg-background transition-[width] duration-300 ease-in-out md:flex ${isSidebarOpen ? "w-60" : "w-14"}`,
|
|
10278
10387
|
children: [
|
|
10279
10388
|
/* @__PURE__ */ jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
|
|
10280
10389
|
/* @__PURE__ */ jsx(
|
|
@@ -12205,6 +12314,6 @@ var TablePagination2 = React8.forwardRef(
|
|
|
12205
12314
|
);
|
|
12206
12315
|
TablePagination2.displayName = "TablePagination";
|
|
12207
12316
|
|
|
12208
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger,
|
|
12209
|
-
//# sourceMappingURL=chunk-
|
|
12210
|
-
//# sourceMappingURL=chunk-
|
|
12317
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
12318
|
+
//# sourceMappingURL=chunk-JXEOZY4V.js.map
|
|
12319
|
+
//# sourceMappingURL=chunk-JXEOZY4V.js.map
|