@seliseblocks/genesis-os 4.2.3 → 4.2.5

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 (39) hide show
  1. package/dist/{chunk-FZ2R62Q6.js → chunk-575VJQ2U.js} +15 -4
  2. package/dist/chunk-575VJQ2U.js.map +1 -0
  3. package/dist/{chunk-5W2NUWTD.js → chunk-7EFD3LDX.js} +3 -3
  4. package/dist/{chunk-5W2NUWTD.js.map → chunk-7EFD3LDX.js.map} +1 -1
  5. package/dist/{chunk-Z7POHR7A.js → chunk-PRSVTYXS.js} +142 -101
  6. package/dist/chunk-PRSVTYXS.js.map +1 -0
  7. package/dist/{chunk-PNNMTGAJ.cjs → chunk-QYN3AEU5.cjs} +8 -8
  8. package/dist/{chunk-PNNMTGAJ.cjs.map → chunk-QYN3AEU5.cjs.map} +1 -1
  9. package/dist/{chunk-M3KOYPCN.cjs → chunk-ROV7S3SC.cjs} +15 -4
  10. package/dist/chunk-ROV7S3SC.cjs.map +1 -0
  11. package/dist/{chunk-SONN5ZUL.cjs → chunk-T2NGZE5W.cjs} +158 -117
  12. package/dist/chunk-T2NGZE5W.cjs.map +1 -0
  13. package/dist/{chunk-GZY23QP3.cjs → chunk-U3WXD3OX.cjs} +4 -3
  14. package/dist/chunk-U3WXD3OX.cjs.map +1 -0
  15. package/dist/{chunk-RANV4RPG.js → chunk-WPTHBDJO.js} +4 -3
  16. package/dist/chunk-WPTHBDJO.js.map +1 -0
  17. package/dist/components/index.cjs +350 -350
  18. package/dist/components/index.js +4 -4
  19. package/dist/guards/index.cjs +8 -8
  20. package/dist/guards/index.js +2 -2
  21. package/dist/hooks/index.cjs +12 -12
  22. package/dist/hooks/index.js +1 -1
  23. package/dist/index.cjs +383 -383
  24. package/dist/index.js +4 -4
  25. package/dist/layouts/index.cjs +11 -11
  26. package/dist/layouts/index.d.cts +3 -2
  27. package/dist/layouts/index.d.ts +3 -2
  28. package/dist/layouts/index.js +4 -4
  29. package/dist/pages/index.cjs +9 -9
  30. package/dist/pages/index.js +4 -4
  31. package/dist/providers/index.cjs +5 -5
  32. package/dist/providers/index.js +1 -1
  33. package/package.json +6 -1
  34. package/dist/chunk-FZ2R62Q6.js.map +0 -1
  35. package/dist/chunk-GZY23QP3.cjs.map +0 -1
  36. package/dist/chunk-M3KOYPCN.cjs.map +0 -1
  37. package/dist/chunk-RANV4RPG.js.map +0 -1
  38. package/dist/chunk-SONN5ZUL.cjs.map +0 -1
  39. package/dist/chunk-Z7POHR7A.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  import { refractor } from './chunk-FGY7QM3Y.js';
2
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 { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-FZ2R62Q6.js';
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-5W2NUWTD.js';
7
- import { useStartImpersonation, useGetProjects, useGetProject, useGetEnvRepositories, useUpdateTenantGroup, useDisableProject, useUpdateRepositories } from './chunk-RANV4RPG.js';
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
10
  import { useLayoutSettingsStore, useLanguageViewStore, useUserStore } from './chunk-6WBFAHAO.js';
@@ -17,7 +17,7 @@ import { motion, AnimatePresence } from 'framer-motion';
17
17
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
18
18
  import { Slot } from '@radix-ui/react-slot';
19
19
  import { cva } from 'class-variance-authority';
20
- import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Monitor, Sun, Moon, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, Layers, BookOpenText, Plus, UsersRound, Settings2, ArrowUpRight, Pencil, Terminal } from 'lucide-react';
20
+ import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Monitor, Sun, Moon, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, Layers, BookOpenText, Plus, Settings2, UsersRound, ArrowUpRight, Pencil, Terminal } from 'lucide-react';
21
21
  import * as SeparatorPrimitive from '@radix-ui/react-separator';
22
22
  import * as SheetPrimitive from '@radix-ui/react-dialog';
23
23
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
@@ -6076,13 +6076,13 @@ var ImportFileModalContent = ({
6076
6076
  ) }) });
6077
6077
  };
6078
6078
  var parentClasses = (isSidebarOpen, isActive) => cn(
6079
- "group relative flex h-10 w-full cursor-pointer items-center gap-3 p-1.5 text-base text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]",
6080
- 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",
6081
6081
  isActive && "!text-primary"
6082
6082
  );
6083
6083
  var childClasses = (isSidebarOpen, isActive) => cn(
6084
- "group relative flex h-10 w-full items-center gap-2 text-base transition-colors",
6085
- 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",
6086
6086
  isActive ? "!text-primary" : "text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]"
6087
6087
  );
6088
6088
  var ActiveBadge = () => /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" });
@@ -6098,7 +6098,16 @@ var ChildMenuItem = ({ menu, isSidebarOpen }) => {
6098
6098
  ),
6099
6099
  children: [
6100
6100
  menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6101
- isSidebarOpen ? /* @__PURE__ */ jsx("span", { children: menu.name }) : null,
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
+ ),
6102
6111
  isActiveMenu ? /* @__PURE__ */ jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" }) : null
6103
6112
  ]
6104
6113
  }
@@ -6115,23 +6124,32 @@ function DesktopLeafMenuItem({
6115
6124
  {
6116
6125
  to: menu.path,
6117
6126
  className: cn(
6118
- "flex items-center gap-3",
6119
- !isSidebarOpen && "justify-center",
6127
+ "flex w-full items-center transition-[gap] duration-200",
6128
+ isSidebarOpen ? "gap-3" : "justify-center gap-0",
6120
6129
  menu.disabled && "pointer-events-none opacity-50"
6121
6130
  ),
6122
6131
  children: [
6123
6132
  menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6124
- isSidebarOpen ? /* @__PURE__ */ jsxs("span", { className: "relative", children: [
6125
- menu.name,
6126
- menu.badge ? /* @__PURE__ */ jsx(
6127
- Badge,
6128
- {
6129
- variant: "secondary",
6130
- className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6131
- children: menu.badge
6132
- }
6133
- ) : null
6134
- ] }) : null
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
+ )
6135
6153
  ]
6136
6154
  }
6137
6155
  ),
@@ -6202,34 +6220,44 @@ function DesktopMenuItem({
6202
6220
  "div",
6203
6221
  {
6204
6222
  className: cn(
6205
- "flex items-center gap-3",
6206
- !isSidebarOpen && "w-full justify-center"
6223
+ "flex items-center transition-[gap] duration-200",
6224
+ isSidebarOpen ? "gap-3" : "w-full justify-center gap-0"
6207
6225
  ),
6208
6226
  children: [
6209
6227
  menu.icon ? /* @__PURE__ */ jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
6210
- /* @__PURE__ */ jsx(RenderConditionally, { condition: isSidebarOpen, children: /* @__PURE__ */ jsxs("span", { className: "relative", children: [
6211
- menu.name,
6212
- /* @__PURE__ */ jsx(RenderConditionally, { condition: !!menu.badge, children: /* @__PURE__ */ jsx(
6213
- Badge,
6214
- {
6215
- variant: "outline",
6216
- className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
6217
- children: menu.badge
6218
- }
6219
- ) })
6220
- ] }) })
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
+ )
6221
6248
  ]
6222
6249
  }
6223
6250
  ),
6224
- /* @__PURE__ */ jsx(RenderConditionally, { condition: isSidebarOpen, children: /* @__PURE__ */ jsx(
6251
+ /* @__PURE__ */ jsx(
6225
6252
  ChevronRight,
6226
6253
  {
6227
6254
  className: cn(
6228
- "ml-auto h-4 w-4 transition-transform",
6255
+ "ml-auto h-4 w-4 shrink-0 transition-all duration-200",
6256
+ isSidebarOpen ? "opacity-100" : "w-0 opacity-0",
6229
6257
  isOpen && "rotate-90"
6230
6258
  )
6231
6259
  }
6232
- ) }),
6260
+ ),
6233
6261
  /* @__PURE__ */ jsx(RenderConditionally, { condition: isActiveMenu, children: /* @__PURE__ */ jsx(ActiveBadge, {}) })
6234
6262
  ]
6235
6263
  }
@@ -7299,6 +7327,9 @@ function ConsoleHeader() {
7299
7327
  }
7300
7328
  );
7301
7329
  }
7330
+
7331
+ // src/constants/layout.constant.ts
7332
+ var HeaderHeight = 60;
7302
7333
  function DashboardHeader(props) {
7303
7334
  const { forwardedTo, redirectPaths, navigationMenus } = props;
7304
7335
  const { isSidebarOpen, toggleSidebar } = useContext(SidebarContext);
@@ -7308,43 +7339,50 @@ function DashboardHeader(props) {
7308
7339
  const environment = selectedProject?.environment;
7309
7340
  const isProjectOverviewRoute = pathname.includes("/project");
7310
7341
  return /* @__PURE__ */ jsxs(Fragment, { children: [
7311
- /* @__PURE__ */ jsxs("header", { className: "relative z-40 flex h-[60px] shrink-0 items-center justify-between gap-4 border-b bg-background px-5 sm:px-6", children: [
7312
- /* @__PURE__ */ jsx("div", { className: "md:hidden", children: /* @__PURE__ */ jsx(
7313
- SidebarMobileView,
7314
- {
7315
- redirectPaths,
7316
- navigationMenus
7317
- }
7318
- ) }),
7319
- /* @__PURE__ */ jsxs("div", { className: "hidden items-center md:flex", children: [
7320
- /* @__PURE__ */ jsx(
7321
- Button,
7322
- {
7323
- variant: "ghost",
7324
- size: "icon",
7325
- className: cn(
7326
- "hidden shrink-0 p-0",
7327
- !isSidebarOpen && "inline-flex"
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
+ }
7328
7368
  ),
7329
- onClick: toggleSidebar,
7330
- children: /* @__PURE__ */ jsx(PanelLeft, { className: "h-6 w-6" })
7331
- }
7332
- ),
7333
- !isProjectOverviewRoute && !isSidebarOpen && (projectName || environment) && /* @__PURE__ */ jsxs("div", { className: "ml-3 flex min-w-0 items-center gap-1.5", children: [
7334
- /* @__PURE__ */ jsx(SelectedProject, {}),
7335
- projectName && environment && /* @__PURE__ */ jsx(ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
7336
- /* @__PURE__ */ jsx(SelectedEnvironment, {})
7337
- ] })
7338
- ] }),
7339
- /* @__PURE__ */ jsxs("div", { className: "relative z-50 flex items-center gap-4", children: [
7340
- /* @__PURE__ */ jsx(BackToConsoleNavigator, {}),
7341
- /* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(ThemeSwitcher, {}) }),
7342
- /* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(Notification, {}) }),
7343
- /* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(LanguageSelector, {}) }),
7344
- /* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(AppSwitcher, { forwardedTo }) }),
7345
- /* @__PURE__ */ jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsx(UserDropdownMenu, {}) })
7346
- ] })
7347
- ] }),
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
+ ),
7348
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: [
7349
7387
  /* @__PURE__ */ jsx(SelectedProject, {}),
7350
7388
  /* @__PURE__ */ jsx(SelectedEnvironment, {})
@@ -7591,14 +7629,17 @@ function SelectedProject() {
7591
7629
  /* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
7592
7630
  ] });
7593
7631
  }
7632
+ function PublicLayout({ children }) {
7633
+ return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children }) });
7634
+ }
7594
7635
  function AuthLayout({ children, logo, sidePanel }) {
7595
- return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children: /* @__PURE__ */ jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
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: [
7596
7637
  logo,
7597
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: [
7598
7639
  /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children }),
7599
7640
  sidePanel ? /* @__PURE__ */ jsx("div", { className: "w-full max-w-xl", children: sidePanel }) : null
7600
7641
  ] })
7601
- ] }) }) });
7642
+ ] }) });
7602
7643
  }
7603
7644
  function ConsoleLayout({ children, wrapper }) {
7604
7645
  const content = /* @__PURE__ */ jsxs("div", { className: "relative min-h-screen bg-[hsl(var(--surface-app))]", children: [
@@ -7614,7 +7655,7 @@ function DashboardLayout({
7614
7655
  navigationMenus,
7615
7656
  forwardedTo
7616
7657
  }) {
7617
- const content = /* @__PURE__ */ jsx(DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsx(RightSidePanelProvider, { resizable: true, topOffset: "60px", children: /* @__PURE__ */ jsxs("div", { className: "flex w-full overflow-hidden", children: [
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: [
7618
7659
  /* @__PURE__ */ jsx(
7619
7660
  SidebarMenuDesktop,
7620
7661
  {
@@ -7687,9 +7728,6 @@ function OidcLayout({
7687
7728
  const contextValue = useMemo(() => value ?? { isLoading: false }, [value]);
7688
7729
  return /* @__PURE__ */ jsx(OidcContext.Provider, { value: contextValue, children });
7689
7730
  }
7690
- function PublicLayout({ children }) {
7691
- return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children }) });
7692
- }
7693
7731
  var LoginHeader = ({
7694
7732
  docsUrl = "https://docs.seliseblocks.com/",
7695
7733
  blocksUrl = "https://seliseblocks.com",
@@ -9103,10 +9141,13 @@ function useProjectOverviewRedirect({
9103
9141
  };
9104
9142
  }
9105
9143
  var INLINE_LIMIT = 3;
9106
- var ProjectCard = ({ project, projects }) => {
9144
+ var ProjectCard = ({
9145
+ project,
9146
+ projects,
9147
+ isShared
9148
+ }) => {
9107
9149
  const navigate = useNavigate();
9108
9150
  const { setTenantGroup, setSelectedProject } = useProjectStore();
9109
- const { user } = useAuthStore();
9110
9151
  const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
9111
9152
  tenantGroupId: project.tenantGroupId
9112
9153
  });
@@ -9144,15 +9185,25 @@ var ProjectCard = ({ project, projects }) => {
9144
9185
  const hasOverflow = projects.length > INLINE_LIMIT;
9145
9186
  const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
9146
9187
  const overflowCount = projects.length - INLINE_LIMIT;
9147
- const isOwner = user?.sub === project?.createdBy;
9148
9188
  return /* @__PURE__ */ jsxs(Card, { className: "border-border/60 bg-card hover:border-primary/30 group flex h-40 flex-col overflow-hidden rounded-xl border p-4 shadow-sm transition-all duration-200 hover:shadow-md", children: [
9149
9189
  /* @__PURE__ */ jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
9150
9190
  /* @__PURE__ */ jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
9151
9191
  /* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsx(
9152
9192
  RenderAlternatively,
9153
9193
  {
9154
- condition: isOwner,
9155
- whenTrue: /* @__PURE__ */ jsxs(Tooltip, { children: [
9194
+ condition: isShared,
9195
+ whenTrue: /* @__PURE__ */ jsxs(
9196
+ Badge,
9197
+ {
9198
+ variant: "outline",
9199
+ className: "flex items-center gap-1 shrink-0",
9200
+ children: [
9201
+ /* @__PURE__ */ jsx(UsersRound, { size: 16 }),
9202
+ "Shared"
9203
+ ]
9204
+ }
9205
+ ),
9206
+ whenFalse: /* @__PURE__ */ jsxs(Tooltip, { children: [
9156
9207
  /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
9157
9208
  Button,
9158
9209
  {
@@ -9166,18 +9217,7 @@ var ProjectCard = ({ project, projects }) => {
9166
9217
  }
9167
9218
  ) }),
9168
9219
  /* @__PURE__ */ jsx(TooltipContent, { children: "Configure Project" })
9169
- ] }),
9170
- whenFalse: /* @__PURE__ */ jsxs(
9171
- Badge,
9172
- {
9173
- variant: "outline",
9174
- className: "flex items-center gap-1 shrink-0",
9175
- children: [
9176
- /* @__PURE__ */ jsx(UsersRound, { size: 16 }),
9177
- "Shared"
9178
- ]
9179
- }
9180
- )
9220
+ ] })
9181
9221
  }
9182
9222
  ) })
9183
9223
  ] }),
@@ -9282,7 +9322,8 @@ var SelfProject = ({ canCreateProject = false }) => {
9282
9322
  ProjectCard,
9283
9323
  {
9284
9324
  project: project.projects[0],
9285
- projects: project.projects
9325
+ projects: project.projects,
9326
+ isShared: project.isShared
9286
9327
  }
9287
9328
  )
9288
9329
  },
@@ -10345,7 +10386,7 @@ function SidebarMenuDesktop({
10345
10386
  return /* @__PURE__ */ jsxs(
10346
10387
  "div",
10347
10388
  {
10348
- className: `hidden h-screen shrink-0 flex-col border-r bg-background transition-[width] duration-300 ease-in-out md:flex ${isSidebarOpen ? "w-60" : "w-14"}`,
10389
+ 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"}`,
10349
10390
  children: [
10350
10391
  /* @__PURE__ */ jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
10351
10392
  /* @__PURE__ */ jsx(
@@ -12277,5 +12318,5 @@ var TablePagination2 = React8.forwardRef(
12277
12318
  TablePagination2.displayName = "TablePagination";
12278
12319
 
12279
12320
  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 };
12280
- //# sourceMappingURL=chunk-Z7POHR7A.js.map
12281
- //# sourceMappingURL=chunk-Z7POHR7A.js.map
12321
+ //# sourceMappingURL=chunk-PRSVTYXS.js.map
12322
+ //# sourceMappingURL=chunk-PRSVTYXS.js.map