@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.
- package/dist/{chunk-FZ2R62Q6.js → chunk-575VJQ2U.js} +15 -4
- package/dist/chunk-575VJQ2U.js.map +1 -0
- package/dist/{chunk-5W2NUWTD.js → chunk-7EFD3LDX.js} +3 -3
- package/dist/{chunk-5W2NUWTD.js.map → chunk-7EFD3LDX.js.map} +1 -1
- package/dist/{chunk-Z7POHR7A.js → chunk-PRSVTYXS.js} +142 -101
- package/dist/chunk-PRSVTYXS.js.map +1 -0
- package/dist/{chunk-PNNMTGAJ.cjs → chunk-QYN3AEU5.cjs} +8 -8
- package/dist/{chunk-PNNMTGAJ.cjs.map → chunk-QYN3AEU5.cjs.map} +1 -1
- package/dist/{chunk-M3KOYPCN.cjs → chunk-ROV7S3SC.cjs} +15 -4
- package/dist/chunk-ROV7S3SC.cjs.map +1 -0
- package/dist/{chunk-SONN5ZUL.cjs → chunk-T2NGZE5W.cjs} +158 -117
- package/dist/chunk-T2NGZE5W.cjs.map +1 -0
- package/dist/{chunk-GZY23QP3.cjs → chunk-U3WXD3OX.cjs} +4 -3
- package/dist/chunk-U3WXD3OX.cjs.map +1 -0
- package/dist/{chunk-RANV4RPG.js → chunk-WPTHBDJO.js} +4 -3
- package/dist/chunk-WPTHBDJO.js.map +1 -0
- package/dist/components/index.cjs +350 -350
- package/dist/components/index.js +4 -4
- package/dist/guards/index.cjs +8 -8
- package/dist/guards/index.js +2 -2
- package/dist/hooks/index.cjs +12 -12
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +383 -383
- package/dist/index.js +4 -4
- package/dist/layouts/index.cjs +11 -11
- package/dist/layouts/index.d.cts +3 -2
- package/dist/layouts/index.d.ts +3 -2
- package/dist/layouts/index.js +4 -4
- package/dist/pages/index.cjs +9 -9
- package/dist/pages/index.js +4 -4
- package/dist/providers/index.cjs +5 -5
- package/dist/providers/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-FZ2R62Q6.js.map +0 -1
- package/dist/chunk-GZY23QP3.cjs.map +0 -1
- package/dist/chunk-M3KOYPCN.cjs.map +0 -1
- package/dist/chunk-RANV4RPG.js.map +0 -1
- package/dist/chunk-SONN5ZUL.cjs.map +0 -1
- package/dist/chunk-Z7POHR7A.js.map +0 -1
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
|
|
4
4
|
var chunkFJ4KYZYG_cjs = require('./chunk-FJ4KYZYG.cjs');
|
|
5
5
|
var chunkZ6N3Y5AQ_cjs = require('./chunk-Z6N3Y5AQ.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkROV7S3SC_cjs = require('./chunk-ROV7S3SC.cjs');
|
|
7
7
|
var chunkQ7Y32IBM_cjs = require('./chunk-Q7Y32IBM.cjs');
|
|
8
|
-
var
|
|
9
|
-
var
|
|
8
|
+
var chunkQYN3AEU5_cjs = require('./chunk-QYN3AEU5.cjs');
|
|
9
|
+
var chunkU3WXD3OX_cjs = require('./chunk-U3WXD3OX.cjs');
|
|
10
10
|
var chunkHF24SZFI_cjs = require('./chunk-HF24SZFI.cjs');
|
|
11
11
|
var chunkSDWR3F3Y_cjs = require('./chunk-SDWR3F3Y.cjs');
|
|
12
12
|
var chunk3VNGGYRG_cjs = require('./chunk-3VNGGYRG.cjs');
|
|
@@ -1141,7 +1141,7 @@ var SidebarMenuSubButton = React8__namespace.forwardRef(({ asChild = false, size
|
|
|
1141
1141
|
});
|
|
1142
1142
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
1143
1143
|
function useRightSidePanel() {
|
|
1144
|
-
return React8.useContext(
|
|
1144
|
+
return React8.useContext(chunkROV7S3SC_cjs.RightSidePanelContext) ?? chunkROV7S3SC_cjs.defaultRightSidePanelContextValue;
|
|
1145
1145
|
}
|
|
1146
1146
|
function RenderConditionally({
|
|
1147
1147
|
condition,
|
|
@@ -1579,7 +1579,7 @@ function RightSidePanelProvider({
|
|
|
1579
1579
|
resolvedTopOffset
|
|
1580
1580
|
]
|
|
1581
1581
|
);
|
|
1582
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1582
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkROV7S3SC_cjs.RightSidePanelContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1583
1583
|
"div",
|
|
1584
1584
|
{
|
|
1585
1585
|
"data-slot": "right-side-panel-provider",
|
|
@@ -6127,13 +6127,13 @@ var ImportFileModalContent = ({
|
|
|
6127
6127
|
) }) });
|
|
6128
6128
|
};
|
|
6129
6129
|
var parentClasses = (isSidebarOpen, isActive) => chunkSDWR3F3Y_cjs.cn(
|
|
6130
|
-
"group relative flex h-10 w-full cursor-pointer items-center
|
|
6131
|
-
isSidebarOpen ? "px-4" : "justify-center px-0",
|
|
6130
|
+
"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))]",
|
|
6131
|
+
isSidebarOpen ? "gap-3 px-4" : "gap-0 justify-center px-0",
|
|
6132
6132
|
isActive && "!text-primary"
|
|
6133
6133
|
);
|
|
6134
6134
|
var childClasses = (isSidebarOpen, isActive) => chunkSDWR3F3Y_cjs.cn(
|
|
6135
|
-
"group relative flex h-10 w-full items-center
|
|
6136
|
-
isSidebarOpen ? "px-4 pl-8" : "justify-center px-4",
|
|
6135
|
+
"group relative flex h-10 w-full items-center text-base transition-[padding,gap,color] duration-200",
|
|
6136
|
+
isSidebarOpen ? "gap-2 px-4 pl-8" : "gap-0 justify-center px-4",
|
|
6137
6137
|
isActive ? "!text-primary" : "text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]"
|
|
6138
6138
|
);
|
|
6139
6139
|
var ActiveBadge = () => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" });
|
|
@@ -6149,7 +6149,16 @@ var ChildMenuItem = ({ menu, isSidebarOpen }) => {
|
|
|
6149
6149
|
),
|
|
6150
6150
|
children: [
|
|
6151
6151
|
menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6152
|
-
|
|
6152
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6153
|
+
"span",
|
|
6154
|
+
{
|
|
6155
|
+
className: chunkSDWR3F3Y_cjs.cn(
|
|
6156
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6157
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6158
|
+
),
|
|
6159
|
+
children: menu.name
|
|
6160
|
+
}
|
|
6161
|
+
),
|
|
6153
6162
|
isActiveMenu ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute right-0 top-2.5 h-5 w-1 rounded-lg bg-primary" }) : null
|
|
6154
6163
|
]
|
|
6155
6164
|
}
|
|
@@ -6166,23 +6175,32 @@ function DesktopLeafMenuItem({
|
|
|
6166
6175
|
{
|
|
6167
6176
|
to: menu.path,
|
|
6168
6177
|
className: chunkSDWR3F3Y_cjs.cn(
|
|
6169
|
-
"flex items-center gap-
|
|
6170
|
-
|
|
6178
|
+
"flex w-full items-center transition-[gap] duration-200",
|
|
6179
|
+
isSidebarOpen ? "gap-3" : "justify-center gap-0",
|
|
6171
6180
|
menu.disabled && "pointer-events-none opacity-50"
|
|
6172
6181
|
),
|
|
6173
6182
|
children: [
|
|
6174
6183
|
menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6184
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6185
|
+
"span",
|
|
6186
|
+
{
|
|
6187
|
+
className: chunkSDWR3F3Y_cjs.cn(
|
|
6188
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6189
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6190
|
+
),
|
|
6191
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
|
|
6192
|
+
menu.name,
|
|
6193
|
+
menu.badge ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
6194
|
+
Badge,
|
|
6195
|
+
{
|
|
6196
|
+
variant: "secondary",
|
|
6197
|
+
className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
|
|
6198
|
+
children: menu.badge
|
|
6199
|
+
}
|
|
6200
|
+
) : null
|
|
6201
|
+
] })
|
|
6202
|
+
}
|
|
6203
|
+
)
|
|
6186
6204
|
]
|
|
6187
6205
|
}
|
|
6188
6206
|
),
|
|
@@ -6253,34 +6271,44 @@ function DesktopMenuItem({
|
|
|
6253
6271
|
"div",
|
|
6254
6272
|
{
|
|
6255
6273
|
className: chunkSDWR3F3Y_cjs.cn(
|
|
6256
|
-
"flex items-center gap-
|
|
6257
|
-
|
|
6274
|
+
"flex items-center transition-[gap] duration-200",
|
|
6275
|
+
isSidebarOpen ? "gap-3" : "w-full justify-center gap-0"
|
|
6258
6276
|
),
|
|
6259
6277
|
children: [
|
|
6260
6278
|
menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
6261
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6279
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6280
|
+
"span",
|
|
6281
|
+
{
|
|
6282
|
+
className: chunkSDWR3F3Y_cjs.cn(
|
|
6283
|
+
"inline-block overflow-hidden whitespace-nowrap transition-all duration-200",
|
|
6284
|
+
isSidebarOpen ? "w-auto opacity-100" : "w-0 opacity-0"
|
|
6285
|
+
),
|
|
6286
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
|
|
6287
|
+
menu.name,
|
|
6288
|
+
/* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: !!menu.badge, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6289
|
+
Badge,
|
|
6290
|
+
{
|
|
6291
|
+
variant: "outline",
|
|
6292
|
+
className: "absolute -top-2 left-full ml-1 h-4 px-1 text-[9px] font-semibold uppercase text-primary",
|
|
6293
|
+
children: menu.badge
|
|
6294
|
+
}
|
|
6295
|
+
) })
|
|
6296
|
+
] })
|
|
6297
|
+
}
|
|
6298
|
+
)
|
|
6272
6299
|
]
|
|
6273
6300
|
}
|
|
6274
6301
|
),
|
|
6275
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6302
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6276
6303
|
lucideReact.ChevronRight,
|
|
6277
6304
|
{
|
|
6278
6305
|
className: chunkSDWR3F3Y_cjs.cn(
|
|
6279
|
-
"ml-auto h-4 w-4 transition-
|
|
6306
|
+
"ml-auto h-4 w-4 shrink-0 transition-all duration-200",
|
|
6307
|
+
isSidebarOpen ? "opacity-100" : "w-0 opacity-0",
|
|
6280
6308
|
isOpen && "rotate-90"
|
|
6281
6309
|
)
|
|
6282
6310
|
}
|
|
6283
|
-
)
|
|
6311
|
+
),
|
|
6284
6312
|
/* @__PURE__ */ jsxRuntime.jsx(RenderConditionally, { condition: isActiveMenu, children: /* @__PURE__ */ jsxRuntime.jsx(ActiveBadge, {}) })
|
|
6285
6313
|
]
|
|
6286
6314
|
}
|
|
@@ -7350,52 +7378,62 @@ function ConsoleHeader() {
|
|
|
7350
7378
|
}
|
|
7351
7379
|
);
|
|
7352
7380
|
}
|
|
7381
|
+
|
|
7382
|
+
// src/constants/layout.constant.ts
|
|
7383
|
+
var HeaderHeight = 60;
|
|
7353
7384
|
function DashboardHeader(props) {
|
|
7354
7385
|
const { forwardedTo, redirectPaths, navigationMenus } = props;
|
|
7355
|
-
const { isSidebarOpen, toggleSidebar } = React8.useContext(
|
|
7386
|
+
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkROV7S3SC_cjs.SidebarContext);
|
|
7356
7387
|
const { pathname } = reactRouter.useLocation();
|
|
7357
7388
|
const { selectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
7358
7389
|
const projectName = selectedProject?.name;
|
|
7359
7390
|
const environment = selectedProject?.environment;
|
|
7360
7391
|
const isProjectOverviewRoute = pathname.includes("/project");
|
|
7361
7392
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7362
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
{
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7393
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
7394
|
+
"header",
|
|
7395
|
+
{
|
|
7396
|
+
style: { height: HeaderHeight },
|
|
7397
|
+
className: "relative z-40 flex shrink-0 items-center justify-between gap-4 border-b bg-background px-5 sm:px-6",
|
|
7398
|
+
children: [
|
|
7399
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "md:hidden", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7400
|
+
SidebarMobileView,
|
|
7401
|
+
{
|
|
7402
|
+
redirectPaths,
|
|
7403
|
+
navigationMenus
|
|
7404
|
+
}
|
|
7405
|
+
) }),
|
|
7406
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "hidden items-center md:flex", children: [
|
|
7407
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7408
|
+
Button,
|
|
7409
|
+
{
|
|
7410
|
+
variant: "ghost",
|
|
7411
|
+
size: "icon",
|
|
7412
|
+
className: chunkSDWR3F3Y_cjs.cn(
|
|
7413
|
+
"hidden shrink-0 p-0",
|
|
7414
|
+
!isSidebarOpen && "inline-flex"
|
|
7415
|
+
),
|
|
7416
|
+
onClick: toggleSidebar,
|
|
7417
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.PanelLeft, { className: "h-6 w-6" })
|
|
7418
|
+
}
|
|
7379
7419
|
),
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
] })
|
|
7398
|
-
] }),
|
|
7420
|
+
!isProjectOverviewRoute && !isSidebarOpen && (projectName || environment) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ml-3 flex min-w-0 items-center gap-1.5", children: [
|
|
7421
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectedProject, {}),
|
|
7422
|
+
projectName && environment && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-3.5 w-3.5 shrink-0 text-muted-foreground" }),
|
|
7423
|
+
/* @__PURE__ */ jsxRuntime.jsx(SelectedEnvironment, {})
|
|
7424
|
+
] })
|
|
7425
|
+
] }),
|
|
7426
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-50 flex items-center gap-4", children: [
|
|
7427
|
+
/* @__PURE__ */ jsxRuntime.jsx(BackToConsoleNavigator, {}),
|
|
7428
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(ThemeSwitcher, {}) }),
|
|
7429
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(Notification, {}) }),
|
|
7430
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(LanguageSelector, {}) }),
|
|
7431
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(AppSwitcher, { forwardedTo }) }),
|
|
7432
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "pointer-events-auto flex items-center", children: /* @__PURE__ */ jsxRuntime.jsx(UserDropdownMenu, {}) })
|
|
7433
|
+
] })
|
|
7434
|
+
]
|
|
7435
|
+
}
|
|
7436
|
+
),
|
|
7399
7437
|
!isProjectOverviewRoute && (projectName || environment) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0 border-b bg-background px-5 py-3 sm:px-6 md:hidden", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-2", children: [
|
|
7400
7438
|
/* @__PURE__ */ jsxRuntime.jsx(SelectedProject, {}),
|
|
7401
7439
|
/* @__PURE__ */ jsxRuntime.jsx(SelectedEnvironment, {})
|
|
@@ -7460,7 +7498,7 @@ var EnvironmentCard = ({
|
|
|
7460
7498
|
className
|
|
7461
7499
|
}) => {
|
|
7462
7500
|
const { setSelectedProject, setTenantGroup } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
7463
|
-
const { mutateAsync } =
|
|
7501
|
+
const { mutateAsync } = chunkU3WXD3OX_cjs.useStartImpersonation();
|
|
7464
7502
|
const navigate = reactRouter.useNavigate();
|
|
7465
7503
|
const handleCardClick = async () => {
|
|
7466
7504
|
try {
|
|
@@ -7514,11 +7552,11 @@ function EnvironmentList({
|
|
|
7514
7552
|
}) {
|
|
7515
7553
|
const navigate = reactRouter.useNavigate();
|
|
7516
7554
|
const { pathname } = reactRouter.useLocation();
|
|
7517
|
-
const { data: projectGroups = [], isLoading } =
|
|
7555
|
+
const { data: projectGroups = [], isLoading } = chunkU3WXD3OX_cjs.useGetProjects({
|
|
7518
7556
|
enabled: true
|
|
7519
7557
|
});
|
|
7520
7558
|
const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
7521
|
-
const { data: projectData } =
|
|
7559
|
+
const { data: projectData } = chunkU3WXD3OX_cjs.useGetProject();
|
|
7522
7560
|
const pendingProjectRef = React8.useRef(null);
|
|
7523
7561
|
const redirectRegexMap = React8.useMemo(
|
|
7524
7562
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -7642,21 +7680,24 @@ function SelectedProject() {
|
|
|
7642
7680
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
|
|
7643
7681
|
] });
|
|
7644
7682
|
}
|
|
7683
|
+
function PublicLayout({ children }) {
|
|
7684
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.PublicGuard, { children }) });
|
|
7685
|
+
}
|
|
7645
7686
|
function AuthLayout({ children, logo, sidePanel }) {
|
|
7646
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7687
|
+
return /* @__PURE__ */ jsxRuntime.jsx(PublicLayout, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-screen flex-col items-center px-6 py-10 lg:px-12", children: [
|
|
7647
7688
|
logo,
|
|
7648
7689
|
/* @__PURE__ */ jsxRuntime.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: [
|
|
7649
7690
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children }),
|
|
7650
7691
|
sidePanel ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full max-w-xl", children: sidePanel }) : null
|
|
7651
7692
|
] })
|
|
7652
|
-
] }) })
|
|
7693
|
+
] }) });
|
|
7653
7694
|
}
|
|
7654
7695
|
function ConsoleLayout({ children, wrapper }) {
|
|
7655
7696
|
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative min-h-screen bg-[hsl(var(--surface-app))]", children: [
|
|
7656
7697
|
/* @__PURE__ */ jsxRuntime.jsx(ConsoleHeader, {}),
|
|
7657
7698
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "pt-[59px]", children })
|
|
7658
7699
|
] });
|
|
7659
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7700
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationTerminator, { children: wrapper ? wrapper(content) : content }) });
|
|
7660
7701
|
}
|
|
7661
7702
|
function DashboardLayout({
|
|
7662
7703
|
children,
|
|
@@ -7665,7 +7706,7 @@ function DashboardLayout({
|
|
|
7665
7706
|
navigationMenus,
|
|
7666
7707
|
forwardedTo
|
|
7667
7708
|
}) {
|
|
7668
|
-
const content = /* @__PURE__ */ jsxRuntime.jsx(
|
|
7709
|
+
const content = /* @__PURE__ */ jsxRuntime.jsx(chunkROV7S3SC_cjs.DashboardLayoutProvider, { isOpen: true, children: /* @__PURE__ */ jsxRuntime.jsx(RightSidePanelProvider, { resizable: true, topOffset: HeaderHeight, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full overflow-hidden", children: [
|
|
7669
7710
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7670
7711
|
SidebarMenuDesktop,
|
|
7671
7712
|
{
|
|
@@ -7692,7 +7733,7 @@ function DashboardLayout({
|
|
|
7692
7733
|
) })
|
|
7693
7734
|
] })
|
|
7694
7735
|
] }) }) });
|
|
7695
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7736
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationChecker, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkQYN3AEU5_cjs.ImpersonationSynchronizer, { children: wrapper ? wrapper(content) : content }) });
|
|
7696
7737
|
}
|
|
7697
7738
|
var DEFAULT_EXCLUDE_PREFIXES = ["/app/project"];
|
|
7698
7739
|
var withScopedItemId = (menus, itemId, excludePrefixes) => menus.map((menu) => {
|
|
@@ -7738,9 +7779,6 @@ function OidcLayout({
|
|
|
7738
7779
|
const contextValue = React8.useMemo(() => value ?? { isLoading: false }, [value]);
|
|
7739
7780
|
return /* @__PURE__ */ jsxRuntime.jsx(OidcContext.Provider, { value: contextValue, children });
|
|
7740
7781
|
}
|
|
7741
|
-
function PublicLayout({ children }) {
|
|
7742
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React8.Suspense, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkPNNMTGAJ_cjs.PublicGuard, { children }) });
|
|
7743
|
-
}
|
|
7744
7782
|
var LoginHeader = ({
|
|
7745
7783
|
docsUrl = "https://docs.seliseblocks.com/",
|
|
7746
7784
|
blocksUrl = "https://seliseblocks.com",
|
|
@@ -9154,10 +9192,13 @@ function useProjectOverviewRedirect({
|
|
|
9154
9192
|
};
|
|
9155
9193
|
}
|
|
9156
9194
|
var INLINE_LIMIT = 3;
|
|
9157
|
-
var ProjectCard = ({
|
|
9195
|
+
var ProjectCard = ({
|
|
9196
|
+
project,
|
|
9197
|
+
projects,
|
|
9198
|
+
isShared
|
|
9199
|
+
}) => {
|
|
9158
9200
|
const navigate = reactRouter.useNavigate();
|
|
9159
9201
|
const { setTenantGroup, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
9160
|
-
const { user } = chunkVAKGHXK6_cjs.useAuthStore();
|
|
9161
9202
|
const { handleClick, isDisabled, isFetching } = useProjectOverviewRedirect({
|
|
9162
9203
|
tenantGroupId: project.tenantGroupId
|
|
9163
9204
|
});
|
|
@@ -9195,15 +9236,25 @@ var ProjectCard = ({ project, projects }) => {
|
|
|
9195
9236
|
const hasOverflow = projects.length > INLINE_LIMIT;
|
|
9196
9237
|
const visibleProjects = hasOverflow ? projects.slice(0, INLINE_LIMIT) : projects;
|
|
9197
9238
|
const overflowCount = projects.length - INLINE_LIMIT;
|
|
9198
|
-
const isOwner = user?.sub === project?.createdBy;
|
|
9199
9239
|
return /* @__PURE__ */ jsxRuntime.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: [
|
|
9200
9240
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex items-start justify-between gap-2", children: [
|
|
9201
9241
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-w-0 flex-1 flex-col gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(CardTitle, { className: "line-clamp-3 break-all text-base font-semibold leading-snug", children: project.name }) }),
|
|
9202
9242
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9203
9243
|
RenderAlternatively,
|
|
9204
9244
|
{
|
|
9205
|
-
condition:
|
|
9206
|
-
whenTrue: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9245
|
+
condition: isShared,
|
|
9246
|
+
whenTrue: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9247
|
+
Badge,
|
|
9248
|
+
{
|
|
9249
|
+
variant: "outline",
|
|
9250
|
+
className: "flex items-center gap-1 shrink-0",
|
|
9251
|
+
children: [
|
|
9252
|
+
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { size: 16 }),
|
|
9253
|
+
"Shared"
|
|
9254
|
+
]
|
|
9255
|
+
}
|
|
9256
|
+
),
|
|
9257
|
+
whenFalse: /* @__PURE__ */ jsxRuntime.jsxs(Tooltip, { children: [
|
|
9207
9258
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9208
9259
|
Button,
|
|
9209
9260
|
{
|
|
@@ -9217,18 +9268,7 @@ var ProjectCard = ({ project, projects }) => {
|
|
|
9217
9268
|
}
|
|
9218
9269
|
) }),
|
|
9219
9270
|
/* @__PURE__ */ jsxRuntime.jsx(TooltipContent, { children: "Configure Project" })
|
|
9220
|
-
] })
|
|
9221
|
-
whenFalse: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9222
|
-
Badge,
|
|
9223
|
-
{
|
|
9224
|
-
variant: "outline",
|
|
9225
|
-
className: "flex items-center gap-1 shrink-0",
|
|
9226
|
-
children: [
|
|
9227
|
-
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.UsersRound, { size: 16 }),
|
|
9228
|
-
"Shared"
|
|
9229
|
-
]
|
|
9230
|
-
}
|
|
9231
|
-
)
|
|
9271
|
+
] })
|
|
9232
9272
|
}
|
|
9233
9273
|
) })
|
|
9234
9274
|
] }),
|
|
@@ -9298,7 +9338,7 @@ var SelfProjectLoading = () => {
|
|
|
9298
9338
|
) });
|
|
9299
9339
|
};
|
|
9300
9340
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
9301
|
-
const { data: data2, isLoading, isFetching } =
|
|
9341
|
+
const { data: data2, isLoading, isFetching } = chunkU3WXD3OX_cjs.useGetProjects({ enabled: true });
|
|
9302
9342
|
if (isLoading || isFetching) return /* @__PURE__ */ jsxRuntime.jsx(SelfProjectLoading, {});
|
|
9303
9343
|
const projectGroups = data2 || [];
|
|
9304
9344
|
if (!projectGroups.length && canCreateProject)
|
|
@@ -9333,7 +9373,8 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
9333
9373
|
ProjectCard,
|
|
9334
9374
|
{
|
|
9335
9375
|
project: project.projects[0],
|
|
9336
|
-
projects: project.projects
|
|
9376
|
+
projects: project.projects,
|
|
9377
|
+
isShared: project.isShared
|
|
9337
9378
|
}
|
|
9338
9379
|
)
|
|
9339
9380
|
},
|
|
@@ -9680,7 +9721,7 @@ var ConfirmationModal = ({
|
|
|
9680
9721
|
] });
|
|
9681
9722
|
var DashboardOverview = () => {
|
|
9682
9723
|
const { name } = chunkFJ4KYZYG_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9683
|
-
const { data: data2, isFetching } =
|
|
9724
|
+
const { data: data2, isFetching } = chunkU3WXD3OX_cjs.useGetProject();
|
|
9684
9725
|
const {
|
|
9685
9726
|
endpoints,
|
|
9686
9727
|
isLoading: isLoadingEndpoints,
|
|
@@ -9774,11 +9815,11 @@ function ProjectList({
|
|
|
9774
9815
|
}) {
|
|
9775
9816
|
const navigate = reactRouter.useNavigate();
|
|
9776
9817
|
const { pathname } = reactRouter.useLocation();
|
|
9777
|
-
const { data: projectGroups = [], isLoading } =
|
|
9818
|
+
const { data: projectGroups = [], isLoading } = chunkU3WXD3OX_cjs.useGetProjects({
|
|
9778
9819
|
enabled: true
|
|
9779
9820
|
});
|
|
9780
9821
|
const { selectedProject, setSelectedProject } = chunkVAKGHXK6_cjs.useProjectStore();
|
|
9781
|
-
const { data: projectData } =
|
|
9822
|
+
const { data: projectData } = chunkU3WXD3OX_cjs.useGetProject();
|
|
9782
9823
|
const pendingProjectRef = React8.useRef(null);
|
|
9783
9824
|
const redirectRegexMap = React8.useMemo(
|
|
9784
9825
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -9927,7 +9968,7 @@ var SetCustomDomainDialog = ({
|
|
|
9927
9968
|
projectKey,
|
|
9928
9969
|
projectEnv
|
|
9929
9970
|
}) => {
|
|
9930
|
-
const { mutateAsync, isPending } =
|
|
9971
|
+
const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useUpdateRepositories();
|
|
9931
9972
|
const verifiedDomains = React8.useMemo(
|
|
9932
9973
|
() => Array.from(
|
|
9933
9974
|
new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
|
|
@@ -10111,7 +10152,7 @@ var ProjectRepoList = ({
|
|
|
10111
10152
|
data: envRepositoriesResponse,
|
|
10112
10153
|
isLoading: isLoadingEnvRepos,
|
|
10113
10154
|
isFetching: isFetchingEnvRepos
|
|
10114
|
-
} =
|
|
10155
|
+
} = chunkU3WXD3OX_cjs.useGetEnvRepositories(project?.tenantId || "");
|
|
10115
10156
|
if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
|
|
10116
10157
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-6 rounded-lg border bg-card px-2 py-2 shadow-sm md:mt-0", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid-col-1 grid gap-3 px-2 py-4 md:grid-cols-2 md:gap-4 lg:gap-6", children: ["sk-1", "sk-2", "sk-3", "sk-4", "sk-5", "sk-6"].map((itemKey) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
10117
10158
|
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
|
|
@@ -10211,7 +10252,7 @@ var EditProjectForm = ({
|
|
|
10211
10252
|
onAfterSubmit
|
|
10212
10253
|
}) => {
|
|
10213
10254
|
const queryClient = reactQuery.useQueryClient();
|
|
10214
|
-
const { mutateAsync, isPending } =
|
|
10255
|
+
const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useUpdateTenantGroup();
|
|
10215
10256
|
const form = reactHookForm.useForm({
|
|
10216
10257
|
resolver: zod$1.zodResolver(editProjectFormSchema),
|
|
10217
10258
|
defaultValues: {
|
|
@@ -10388,7 +10429,7 @@ function SidebarMenuDesktop({
|
|
|
10388
10429
|
redirectPaths,
|
|
10389
10430
|
navigationMenus
|
|
10390
10431
|
}) {
|
|
10391
|
-
const { isSidebarOpen, toggleSidebar } = React8.useContext(
|
|
10432
|
+
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkROV7S3SC_cjs.SidebarContext);
|
|
10392
10433
|
const { appLightLogo, appDarkLogo } = chunkFJ4KYZYG_cjs.useLogo();
|
|
10393
10434
|
const icon = chunkFJ4KYZYG_cjs.useIcon();
|
|
10394
10435
|
const allowedMenu = chunkQ7Y32IBM_cjs.useFilteredMenus(navigationMenus);
|
|
@@ -10396,7 +10437,7 @@ function SidebarMenuDesktop({
|
|
|
10396
10437
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10397
10438
|
"div",
|
|
10398
10439
|
{
|
|
10399
|
-
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"}`,
|
|
10440
|
+
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"}`,
|
|
10400
10441
|
children: [
|
|
10401
10442
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-[60px] shrink-0 items-center justify-between border-b bg-background px-3", children: [
|
|
10402
10443
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -10519,7 +10560,7 @@ var ErrorBoundary = class extends React8.Component {
|
|
|
10519
10560
|
var ArchiveProject = () => {
|
|
10520
10561
|
const navigate = reactRouter.useNavigate();
|
|
10521
10562
|
const projectKey = chunkVAKGHXK6_cjs.useProjectStore().selectedProject?.tenantId || "";
|
|
10522
|
-
const { mutateAsync, isPending } =
|
|
10563
|
+
const { mutateAsync, isPending } = chunkU3WXD3OX_cjs.useDisableProject({ projectKey });
|
|
10523
10564
|
const onClickHandler = async () => {
|
|
10524
10565
|
try {
|
|
10525
10566
|
const res = await mutateAsync();
|
|
@@ -12676,5 +12717,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
|
12676
12717
|
exports.useRightSidePanel = useRightSidePanel;
|
|
12677
12718
|
exports.useSortQueryParams = useSortQueryParams;
|
|
12678
12719
|
exports.useWizardStepper = useWizardStepper;
|
|
12679
|
-
//# sourceMappingURL=chunk-
|
|
12680
|
-
//# sourceMappingURL=chunk-
|
|
12720
|
+
//# sourceMappingURL=chunk-T2NGZE5W.cjs.map
|
|
12721
|
+
//# sourceMappingURL=chunk-T2NGZE5W.cjs.map
|