@seliseblocks/genesis-os 4.4.8 → 4.4.9
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-IPMRZNNS.cjs → chunk-A4MVNKXL.cjs} +20 -7
- package/dist/chunk-A4MVNKXL.cjs.map +1 -0
- package/dist/{chunk-KA2OOMCU.js → chunk-L4V72AAV.js} +180 -32
- package/dist/chunk-L4V72AAV.js.map +1 -0
- package/dist/{chunk-3OO2YVXW.js → chunk-LAWQOHY6.js} +3 -3
- package/dist/{chunk-3OO2YVXW.js.map → chunk-LAWQOHY6.js.map} +1 -1
- package/dist/{chunk-UDFH7SJI.js → chunk-OE5T43AS.js} +20 -7
- package/dist/chunk-OE5T43AS.js.map +1 -0
- package/dist/{chunk-VLZJP6FH.cjs → chunk-P4SL4PTY.cjs} +40 -40
- package/dist/{chunk-VLZJP6FH.cjs.map → chunk-P4SL4PTY.cjs.map} +1 -1
- package/dist/{chunk-QBL4VIE4.cjs → chunk-ZVYSSUHO.cjs} +279 -131
- package/dist/chunk-ZVYSSUHO.cjs.map +1 -0
- package/dist/components/index.cjs +342 -342
- package/dist/components/index.js +3 -3
- package/dist/guards/index.cjs +9 -9
- package/dist/guards/index.js +3 -3
- package/dist/hooks/index.cjs +59 -59
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +440 -440
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/layouts/index.cjs +10 -10
- package/dist/layouts/index.js +3 -3
- package/dist/lib/index.cjs +24 -24
- package/dist/lib/index.d.cts +9 -2
- package/dist/lib/index.d.ts +9 -2
- package/dist/lib/index.js +1 -1
- package/dist/observability/index.cjs.map +1 -1
- package/dist/observability/index.d.cts +5 -1
- package/dist/observability/index.d.ts +5 -1
- package/dist/observability/index.js.map +1 -1
- package/dist/pages/index.cjs +8 -8
- package/dist/pages/index.js +3 -3
- package/dist/{types-D9odiLzd.d.ts → types-Dz0dH1XK.d.ts} +5 -1
- package/dist/{types-CQX9_ck-.d.cts → types-VNffHJ1_.d.cts} +5 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-IPMRZNNS.cjs.map +0 -1
- package/dist/chunk-KA2OOMCU.js.map +0 -1
- package/dist/chunk-QBL4VIE4.cjs.map +0 -1
- package/dist/chunk-UDFH7SJI.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkP4SL4PTY_cjs = require('./chunk-P4SL4PTY.cjs');
|
|
5
5
|
var chunkAIUUCMAI_cjs = require('./chunk-AIUUCMAI.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkA4MVNKXL_cjs = require('./chunk-A4MVNKXL.cjs');
|
|
7
7
|
var chunk2MP66EX3_cjs = require('./chunk-2MP66EX3.cjs');
|
|
8
8
|
var chunkCTIGX76P_cjs = require('./chunk-CTIGX76P.cjs');
|
|
9
9
|
var chunkBPJM3L7O_cjs = require('./chunk-BPJM3L7O.cjs');
|
|
@@ -1537,7 +1537,7 @@ function RightSidePanelProvider({
|
|
|
1537
1537
|
const close = React8__namespace.useCallback(() => {
|
|
1538
1538
|
setOpen(false);
|
|
1539
1539
|
}, [setOpen]);
|
|
1540
|
-
|
|
1540
|
+
chunkP4SL4PTY_cjs.useKeyboardShortcut(shortcut, toggle);
|
|
1541
1541
|
React8__namespace.useEffect(() => {
|
|
1542
1542
|
if (!syncHash || isControlled || typeof window === "undefined") return;
|
|
1543
1543
|
const handleHashChange = () => {
|
|
@@ -2411,7 +2411,7 @@ var WizardStepIndicator = ({
|
|
|
2411
2411
|
color: indicatorColor,
|
|
2412
2412
|
backgroundColor: isCompleted ? "hsl(var(--foreground))" : "transparent"
|
|
2413
2413
|
},
|
|
2414
|
-
transition:
|
|
2414
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2415
2415
|
className: chunkYAF2X7W5_cjs.cn(
|
|
2416
2416
|
"flex size-8 items-center justify-center rounded-full border text-lg font-bold",
|
|
2417
2417
|
className
|
|
@@ -2422,7 +2422,7 @@ var WizardStepIndicator = ({
|
|
|
2422
2422
|
initial: { scale: 0, opacity: 0 },
|
|
2423
2423
|
animate: { scale: 1, opacity: 1 },
|
|
2424
2424
|
exit: { scale: 0, opacity: 0 },
|
|
2425
|
-
transition:
|
|
2425
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2426
2426
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-[18px]", "aria-hidden": true })
|
|
2427
2427
|
},
|
|
2428
2428
|
"check"
|
|
@@ -2432,7 +2432,7 @@ var WizardStepIndicator = ({
|
|
|
2432
2432
|
initial: { scale: 0.8, opacity: 0 },
|
|
2433
2433
|
animate: { scale: 1, opacity: 1 },
|
|
2434
2434
|
exit: { scale: 0.8, opacity: 0 },
|
|
2435
|
-
transition:
|
|
2435
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2436
2436
|
children: stepNumber
|
|
2437
2437
|
},
|
|
2438
2438
|
"number"
|
|
@@ -2443,7 +2443,7 @@ var WizardStepIndicator = ({
|
|
|
2443
2443
|
var WizardVerticalTrackBar = () => {
|
|
2444
2444
|
const { currentStep, totalSteps, goToStep, completedSteps, getSteps } = useWizardStepper();
|
|
2445
2445
|
const steps = getSteps();
|
|
2446
|
-
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition:
|
|
2446
|
+
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition: chunkA4MVNKXL_cjs.fadeTransition, children: steps.map((step, index) => {
|
|
2447
2447
|
const stepNumber = index + 1;
|
|
2448
2448
|
const isCompleted = completedSteps.includes(stepNumber);
|
|
2449
2449
|
const isCurrent = currentStep === stepNumber;
|
|
@@ -2457,7 +2457,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2457
2457
|
{
|
|
2458
2458
|
layout: true,
|
|
2459
2459
|
className: "flex items-center gap-2",
|
|
2460
|
-
transition:
|
|
2460
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2461
2461
|
children: [
|
|
2462
2462
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2463
2463
|
Button,
|
|
@@ -2484,7 +2484,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2484
2484
|
animate: {
|
|
2485
2485
|
color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
|
|
2486
2486
|
},
|
|
2487
|
-
transition:
|
|
2487
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2488
2488
|
className: "ml-4 text-base font-medium",
|
|
2489
2489
|
children: step.title
|
|
2490
2490
|
}
|
|
@@ -2501,7 +2501,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2501
2501
|
scaleY: isCompleted ? 1 : 0.35,
|
|
2502
2502
|
backgroundColor: isCompleted ? "hsl(var(--foreground))" : "hsl(var(--border))"
|
|
2503
2503
|
},
|
|
2504
|
-
transition:
|
|
2504
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition
|
|
2505
2505
|
}
|
|
2506
2506
|
) : null
|
|
2507
2507
|
]
|
|
@@ -2518,7 +2518,7 @@ var WizardHorizontalTrackBar = () => {
|
|
|
2518
2518
|
{
|
|
2519
2519
|
layout: true,
|
|
2520
2520
|
className: "flex w-full flex-row flex-wrap justify-between",
|
|
2521
|
-
transition:
|
|
2521
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2522
2522
|
children: steps.map((step, index) => {
|
|
2523
2523
|
const stepNumber = index + 1;
|
|
2524
2524
|
const isCompleted = completedSteps.includes(stepNumber);
|
|
@@ -2557,7 +2557,7 @@ var WizardHorizontalTrackBar = () => {
|
|
|
2557
2557
|
animate: {
|
|
2558
2558
|
color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
|
|
2559
2559
|
},
|
|
2560
|
-
transition:
|
|
2560
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2561
2561
|
className: "hidden md:block",
|
|
2562
2562
|
children: step.title
|
|
2563
2563
|
}
|
|
@@ -2578,11 +2578,11 @@ var WizardStepViewport = ({
|
|
|
2578
2578
|
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2579
2579
|
framerMotion.motion.div,
|
|
2580
2580
|
{
|
|
2581
|
-
variants:
|
|
2581
|
+
variants: chunkA4MVNKXL_cjs.fadeInUp,
|
|
2582
2582
|
initial: "initial",
|
|
2583
2583
|
animate: "animate",
|
|
2584
2584
|
exit: "exit",
|
|
2585
|
-
transition:
|
|
2585
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
2586
2586
|
className,
|
|
2587
2587
|
children
|
|
2588
2588
|
},
|
|
@@ -3522,7 +3522,7 @@ function MultiSelect({
|
|
|
3522
3522
|
onChange,
|
|
3523
3523
|
value: selectedValues
|
|
3524
3524
|
}) {
|
|
3525
|
-
const [buttonRef, popoverWidth] =
|
|
3525
|
+
const [buttonRef, popoverWidth] = chunkP4SL4PTY_cjs.usePopoverWidth();
|
|
3526
3526
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
3527
3527
|
const onSelectHandler = (value) => {
|
|
3528
3528
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
@@ -3838,7 +3838,7 @@ var CopyToClipboardButton = ({
|
|
|
3838
3838
|
),
|
|
3839
3839
|
initial: false,
|
|
3840
3840
|
animate: { opacity: isHoverable ? void 0 : 1 },
|
|
3841
|
-
transition:
|
|
3841
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
3842
3842
|
children: [
|
|
3843
3843
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3844
3844
|
Button,
|
|
@@ -3855,7 +3855,7 @@ var CopyToClipboardButton = ({
|
|
|
3855
3855
|
initial: { scale: 0.6, opacity: 0 },
|
|
3856
3856
|
animate: { scale: 1, opacity: 1 },
|
|
3857
3857
|
exit: { scale: 0.6, opacity: 0 },
|
|
3858
|
-
transition:
|
|
3858
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
3859
3859
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3860
3860
|
lucideReact.Check,
|
|
3861
3861
|
{
|
|
@@ -3871,7 +3871,7 @@ var CopyToClipboardButton = ({
|
|
|
3871
3871
|
initial: { scale: 0.6, opacity: 0 },
|
|
3872
3872
|
animate: { scale: 1, opacity: 1 },
|
|
3873
3873
|
exit: { scale: 0.6, opacity: 0 },
|
|
3874
|
-
transition:
|
|
3874
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
3875
3875
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { className: "size-4 text-muted-foreground", "aria-hidden": true })
|
|
3876
3876
|
},
|
|
3877
3877
|
"copy"
|
|
@@ -3884,7 +3884,7 @@ var CopyToClipboardButton = ({
|
|
|
3884
3884
|
layout: true,
|
|
3885
3885
|
className: "pointer-events-none absolute left-8 top-1/2 z-10 hidden -translate-y-1/2 whitespace-nowrap rounded bg-popover px-2 py-1 text-xs text-popover-foreground shadow-md peer-hover:block",
|
|
3886
3886
|
animate: { opacity: isCopying ? 1 : 0.9 },
|
|
3887
|
-
transition:
|
|
3887
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
3888
3888
|
children: isCopying ? copiedLabel : copyLabel
|
|
3889
3889
|
}
|
|
3890
3890
|
)
|
|
@@ -5256,7 +5256,7 @@ var InfiniteScroller = ({
|
|
|
5256
5256
|
initial: { opacity: 0, height: 0 },
|
|
5257
5257
|
animate: { opacity: 1, height: "auto" },
|
|
5258
5258
|
exit: { opacity: 0, height: 0 },
|
|
5259
|
-
transition:
|
|
5259
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
5260
5260
|
children: loadingIndicator
|
|
5261
5261
|
},
|
|
5262
5262
|
"loading"
|
|
@@ -5267,10 +5267,10 @@ var InfiniteScroller = ({
|
|
|
5267
5267
|
framerMotion.motion.div,
|
|
5268
5268
|
{
|
|
5269
5269
|
layout: true,
|
|
5270
|
-
variants:
|
|
5270
|
+
variants: chunkA4MVNKXL_cjs.fadeInUp,
|
|
5271
5271
|
initial: "initial",
|
|
5272
5272
|
animate: "animate",
|
|
5273
|
-
transition:
|
|
5273
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
5274
5274
|
children: renderItem(item, index)
|
|
5275
5275
|
},
|
|
5276
5276
|
key
|
|
@@ -5282,7 +5282,7 @@ var InfiniteScroller = ({
|
|
|
5282
5282
|
className: "flex h-full items-center justify-center text-muted-foreground",
|
|
5283
5283
|
initial: { opacity: 0 },
|
|
5284
5284
|
animate: { opacity: 1 },
|
|
5285
|
-
transition:
|
|
5285
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
5286
5286
|
children: emptyContent ?? "No items"
|
|
5287
5287
|
}
|
|
5288
5288
|
) }),
|
|
@@ -5293,7 +5293,7 @@ var InfiniteScroller = ({
|
|
|
5293
5293
|
initial: { opacity: 0, y: 16 },
|
|
5294
5294
|
animate: { opacity: 1, y: 0 },
|
|
5295
5295
|
exit: { opacity: 0, y: 12 },
|
|
5296
|
-
transition:
|
|
5296
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
5297
5297
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5298
5298
|
framerMotion.motion.div,
|
|
5299
5299
|
{
|
|
@@ -5943,14 +5943,14 @@ var Timeline = ({
|
|
|
5943
5943
|
framerMotion.motion.div,
|
|
5944
5944
|
{
|
|
5945
5945
|
className: chunkYAF2X7W5_cjs.cn("mt-4 flex flex-col items-start md:mt-5", className),
|
|
5946
|
-
variants:
|
|
5946
|
+
variants: chunkA4MVNKXL_cjs.staggerContainer,
|
|
5947
5947
|
initial: "initial",
|
|
5948
5948
|
animate: "animate",
|
|
5949
5949
|
children: events.map((event, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5950
5950
|
framerMotion.motion.div,
|
|
5951
5951
|
{
|
|
5952
|
-
variants:
|
|
5953
|
-
transition:
|
|
5952
|
+
variants: chunkA4MVNKXL_cjs.staggerItem,
|
|
5953
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
5954
5954
|
className: "flex min-h-[66px] w-full",
|
|
5955
5955
|
children: [
|
|
5956
5956
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkYAF2X7W5_cjs.cn("relative", isMobile ? "w-[30%]" : "w-[16%]"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5959,7 +5959,7 @@ var Timeline = ({
|
|
|
5959
5959
|
className: "absolute -top-1.5 w-full pr-[18px] text-right md:pr-5",
|
|
5960
5960
|
initial: { opacity: 0, x: -6 },
|
|
5961
5961
|
animate: { opacity: 1, x: 0 },
|
|
5962
|
-
transition: { ...
|
|
5962
|
+
transition: { ...chunkA4MVNKXL_cjs.fadeTransition, delay: index * 0.05 },
|
|
5963
5963
|
children: leftContent ? leftContent(event) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5964
5964
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.time }),
|
|
5965
5965
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.date })
|
|
@@ -5976,7 +5976,7 @@ var Timeline = ({
|
|
|
5976
5976
|
),
|
|
5977
5977
|
initial: { scaleY: 0 },
|
|
5978
5978
|
animate: { scaleY: 1 },
|
|
5979
|
-
transition: { ...
|
|
5979
|
+
transition: { ...chunkA4MVNKXL_cjs.fadeTransition, delay: index * 0.05 }
|
|
5980
5980
|
}
|
|
5981
5981
|
) : null,
|
|
5982
5982
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5985,7 +5985,7 @@ var Timeline = ({
|
|
|
5985
5985
|
className: "bg-primary relative z-10 size-4 rounded-full",
|
|
5986
5986
|
initial: { scale: 0 },
|
|
5987
5987
|
animate: { scale: 1 },
|
|
5988
|
-
transition: { ...
|
|
5988
|
+
transition: { ...chunkA4MVNKXL_cjs.fadeTransition, delay: index * 0.05 + 0.04 }
|
|
5989
5989
|
}
|
|
5990
5990
|
)
|
|
5991
5991
|
] }),
|
|
@@ -6042,11 +6042,11 @@ var ImportFileModalContent = ({
|
|
|
6042
6042
|
return /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: chunkYAF2X7W5_cjs.cn("rounded-md sm:max-w-[450px]", className), children: /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: !showConfirmation ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6043
6043
|
framerMotion.motion.div,
|
|
6044
6044
|
{
|
|
6045
|
-
variants:
|
|
6045
|
+
variants: chunkA4MVNKXL_cjs.fadeInScale,
|
|
6046
6046
|
initial: "initial",
|
|
6047
6047
|
animate: "animate",
|
|
6048
6048
|
exit: "exit",
|
|
6049
|
-
transition:
|
|
6049
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
6050
6050
|
children: [
|
|
6051
6051
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
6052
6052
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: dialogTitle }),
|
|
@@ -6058,7 +6058,7 @@ var ImportFileModalContent = ({
|
|
|
6058
6058
|
className: "flex flex-col rounded-md bg-muted/50 px-3 py-2",
|
|
6059
6059
|
initial: { opacity: 0, y: 6 },
|
|
6060
6060
|
animate: { opacity: 1, y: 0 },
|
|
6061
|
-
transition: { ...
|
|
6061
|
+
transition: { ...chunkA4MVNKXL_cjs.fadeTransition, delay: 0.05 },
|
|
6062
6062
|
children: [
|
|
6063
6063
|
/* @__PURE__ */ jsxRuntime.jsxs(framerMotion.motion.div, { className: "flex flex-row items-center", children: [
|
|
6064
6064
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6095,7 +6095,7 @@ var ImportFileModalContent = ({
|
|
|
6095
6095
|
initial: { opacity: 0, x: -8 },
|
|
6096
6096
|
animate: { opacity: 1, x: 0 },
|
|
6097
6097
|
exit: { opacity: 0, x: 8 },
|
|
6098
|
-
transition:
|
|
6098
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
6099
6099
|
children: /* @__PURE__ */ jsxRuntime.jsxs(FileUploaderItem, { index, children: [
|
|
6100
6100
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6101
6101
|
lucideReact.Paperclip,
|
|
@@ -6145,11 +6145,11 @@ var ImportFileModalContent = ({
|
|
|
6145
6145
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6146
6146
|
framerMotion.motion.div,
|
|
6147
6147
|
{
|
|
6148
|
-
variants:
|
|
6148
|
+
variants: chunkA4MVNKXL_cjs.fadeInScale,
|
|
6149
6149
|
initial: "initial",
|
|
6150
6150
|
animate: "animate",
|
|
6151
6151
|
exit: "exit",
|
|
6152
|
-
transition:
|
|
6152
|
+
transition: chunkA4MVNKXL_cjs.fadeTransition,
|
|
6153
6153
|
children: [
|
|
6154
6154
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
6155
6155
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: processingTitle }),
|
|
@@ -6171,12 +6171,12 @@ var ImportFileModalContent = ({
|
|
|
6171
6171
|
) }) });
|
|
6172
6172
|
};
|
|
6173
6173
|
var parentClasses = (isSidebarOpen, isActive) => chunkYAF2X7W5_cjs.cn(
|
|
6174
|
-
"group relative flex h-
|
|
6174
|
+
"group relative flex min-h-[2.5rem] w-full cursor-pointer items-center p-1.5 text-left text-base text-[hsl(var(--low-emphasis))] transition-[padding,gap] duration-200 hover:text-[hsl(var(--high-emphasis))]",
|
|
6175
6175
|
isSidebarOpen ? "gap-3 px-4" : "gap-0 justify-center px-0",
|
|
6176
6176
|
isActive && "!text-primary"
|
|
6177
6177
|
);
|
|
6178
6178
|
var childClasses = (isSidebarOpen, isActive) => chunkYAF2X7W5_cjs.cn(
|
|
6179
|
-
"group relative flex h-
|
|
6179
|
+
"group relative flex min-h-[2.5rem] w-full items-center text-left text-base transition-[padding,gap,color] duration-200",
|
|
6180
6180
|
isSidebarOpen ? "gap-2 px-4 pl-8" : "gap-0 justify-center px-4",
|
|
6181
6181
|
isActive ? "!text-primary" : "text-[hsl(var(--low-emphasis))] hover:text-[hsl(var(--high-emphasis))]"
|
|
6182
6182
|
);
|
|
@@ -6197,8 +6197,8 @@ var ChildMenuItem = ({ menu, isSidebarOpen }) => {
|
|
|
6197
6197
|
"span",
|
|
6198
6198
|
{
|
|
6199
6199
|
className: chunkYAF2X7W5_cjs.cn(
|
|
6200
|
-
"inline-block overflow-hidden
|
|
6201
|
-
isSidebarOpen ? "w-
|
|
6200
|
+
"inline-block overflow-hidden transition-all duration-200",
|
|
6201
|
+
isSidebarOpen ? "min-w-0 flex-1 whitespace-normal break-words opacity-100" : "w-0 whitespace-nowrap opacity-0"
|
|
6202
6202
|
),
|
|
6203
6203
|
children: menu.name
|
|
6204
6204
|
}
|
|
@@ -6219,7 +6219,7 @@ function DesktopLeafMenuItem({
|
|
|
6219
6219
|
{
|
|
6220
6220
|
to: menu.path,
|
|
6221
6221
|
className: chunkYAF2X7W5_cjs.cn(
|
|
6222
|
-
"flex w-full items-center transition-[gap] duration-200",
|
|
6222
|
+
"flex w-full min-w-0 items-center transition-[gap] duration-200",
|
|
6223
6223
|
isSidebarOpen ? "gap-3" : "justify-center gap-0",
|
|
6224
6224
|
menu.disabled && "pointer-events-none opacity-50"
|
|
6225
6225
|
),
|
|
@@ -6229,8 +6229,8 @@ function DesktopLeafMenuItem({
|
|
|
6229
6229
|
"span",
|
|
6230
6230
|
{
|
|
6231
6231
|
className: chunkYAF2X7W5_cjs.cn(
|
|
6232
|
-
"inline-block overflow-hidden
|
|
6233
|
-
isSidebarOpen ? "w-
|
|
6232
|
+
"inline-block overflow-hidden transition-all duration-200",
|
|
6233
|
+
isSidebarOpen ? "min-w-0 flex-1 whitespace-normal break-words opacity-100" : "w-0 whitespace-nowrap opacity-0"
|
|
6234
6234
|
),
|
|
6235
6235
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
|
|
6236
6236
|
menu.name,
|
|
@@ -6316,7 +6316,7 @@ function DesktopMenuItem({
|
|
|
6316
6316
|
{
|
|
6317
6317
|
className: chunkYAF2X7W5_cjs.cn(
|
|
6318
6318
|
"flex items-center transition-[gap] duration-200",
|
|
6319
|
-
isSidebarOpen ? "gap-3" : "w-full justify-center gap-0"
|
|
6319
|
+
isSidebarOpen ? "min-w-0 flex-1 gap-3" : "w-full justify-center gap-0"
|
|
6320
6320
|
),
|
|
6321
6321
|
children: [
|
|
6322
6322
|
menu.icon ? /* @__PURE__ */ jsxRuntime.jsx(menu.icon, { className: "h-5 w-5 shrink-0" }) : null,
|
|
@@ -6324,8 +6324,8 @@ function DesktopMenuItem({
|
|
|
6324
6324
|
"span",
|
|
6325
6325
|
{
|
|
6326
6326
|
className: chunkYAF2X7W5_cjs.cn(
|
|
6327
|
-
"inline-block overflow-hidden
|
|
6328
|
-
isSidebarOpen ? "w-
|
|
6327
|
+
"inline-block overflow-hidden transition-all duration-200",
|
|
6328
|
+
isSidebarOpen ? "min-w-0 flex-1 whitespace-normal break-words opacity-100" : "w-0 whitespace-nowrap opacity-0"
|
|
6329
6329
|
),
|
|
6330
6330
|
children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "relative inline-block", children: [
|
|
6331
6331
|
menu.name,
|
|
@@ -6748,7 +6748,7 @@ function useAppRedirectUrls({
|
|
|
6748
6748
|
queries: requests.map(
|
|
6749
6749
|
({ clientId, redirectUri, forwardedTo, queryKey }) => ({
|
|
6750
6750
|
queryKey,
|
|
6751
|
-
queryFn: ({ signal }) =>
|
|
6751
|
+
queryFn: ({ signal }) => chunkP4SL4PTY_cjs.initiateService.fetchRedirectUrl(
|
|
6752
6752
|
{ clientId, redirectUri, forwardedTo },
|
|
6753
6753
|
signal
|
|
6754
6754
|
),
|
|
@@ -6787,7 +6787,7 @@ function useAppRedirectUrls({
|
|
|
6787
6787
|
}
|
|
6788
6788
|
var AppSwitcher = ({ forwardedTo }) => {
|
|
6789
6789
|
const [open, setOpen] = React8.useState(false);
|
|
6790
|
-
const config =
|
|
6790
|
+
const config = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
6791
6791
|
const filteredApps = React8.useMemo(
|
|
6792
6792
|
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6793
6793
|
[config.name]
|
|
@@ -6837,7 +6837,7 @@ function ThemeSwitcher({
|
|
|
6837
6837
|
showChevron = true
|
|
6838
6838
|
} = {}) {
|
|
6839
6839
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
6840
|
-
const { theme, setTheme } =
|
|
6840
|
+
const { theme, setTheme } = chunkP4SL4PTY_cjs.useTheme();
|
|
6841
6841
|
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6842
6842
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
6843
6843
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6906,7 +6906,7 @@ function ThemeSwitcher({
|
|
|
6906
6906
|
// src/services/user.service.ts
|
|
6907
6907
|
var UserService = class {
|
|
6908
6908
|
async getUserInfo() {
|
|
6909
|
-
return
|
|
6909
|
+
return chunkA4MVNKXL_cjs.iamClient.get(`${chunkA4MVNKXL_cjs.PROFILE_ENDPOINTS.ME}`);
|
|
6910
6910
|
}
|
|
6911
6911
|
};
|
|
6912
6912
|
var userService = new UserService();
|
|
@@ -6949,14 +6949,14 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6949
6949
|
}
|
|
6950
6950
|
function UserDropdownMenu() {
|
|
6951
6951
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
6952
|
-
const { name } =
|
|
6952
|
+
const { name } = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
6953
6953
|
const { data } = useGetUserInfo();
|
|
6954
6954
|
const userData = data?.data;
|
|
6955
|
-
const { isPending, mutateAsync } =
|
|
6955
|
+
const { isPending, mutateAsync } = chunkP4SL4PTY_cjs.useLogout();
|
|
6956
6956
|
const { resetProjectStore } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
6957
6957
|
const { setUnAuthenticated, clearTokens } = chunkU2LA7LBX_cjs.useAuthStore();
|
|
6958
6958
|
const { resetSelectedLanguages } = chunkRO55MFZA_cjs.useLanguageViewStore();
|
|
6959
|
-
const { data: myOrgsData, isLoading: isOrgsLoading } =
|
|
6959
|
+
const { data: myOrgsData, isLoading: isOrgsLoading } = chunkP4SL4PTY_cjs.useGetMyOrganizations();
|
|
6960
6960
|
const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
|
|
6961
6961
|
const email = userData?.email || "";
|
|
6962
6962
|
const roles = Object.values(userData?.roles || {}).flat();
|
|
@@ -7085,7 +7085,7 @@ function UserDropdownMenu() {
|
|
|
7085
7085
|
] });
|
|
7086
7086
|
}
|
|
7087
7087
|
function LanguageSelector() {
|
|
7088
|
-
const { changeLanguage } =
|
|
7088
|
+
const { changeLanguage } = chunkP4SL4PTY_cjs.useLanguageSwitcher();
|
|
7089
7089
|
const language = chunkOPMWK5SY_cjs.useDocumentLanguage();
|
|
7090
7090
|
const languages = chunkOPMWK5SY_cjs.useLanguagesStore((state) => state.languages);
|
|
7091
7091
|
if (languages.length < 2) return null;
|
|
@@ -7226,7 +7226,7 @@ var NotificationListenerService = class {
|
|
|
7226
7226
|
if (refreshLogin && navigator.onLine === false) return;
|
|
7227
7227
|
try {
|
|
7228
7228
|
if (refreshLogin)
|
|
7229
|
-
await refreshLoginCall(
|
|
7229
|
+
await refreshLoginCall(chunkP4SL4PTY_cjs.notificationService.getNotifications(1, 1));
|
|
7230
7230
|
if (!this.wanted) return;
|
|
7231
7231
|
await this.connection.start();
|
|
7232
7232
|
this.attempt = 0;
|
|
@@ -7251,7 +7251,7 @@ var notificationListenerService = new NotificationListenerService();
|
|
|
7251
7251
|
|
|
7252
7252
|
// src/components/common/notification/use-notification-socket.ts
|
|
7253
7253
|
function useNotificationSocket() {
|
|
7254
|
-
const { data: configData } =
|
|
7254
|
+
const { data: configData } = chunkP4SL4PTY_cjs.useGetBlocksNotificationConfig(0, 100);
|
|
7255
7255
|
const queryClient = reactQuery.useQueryClient();
|
|
7256
7256
|
notificationListenerService.connect();
|
|
7257
7257
|
React8.useEffect(() => {
|
|
@@ -7266,7 +7266,7 @@ function useNotificationSocket() {
|
|
|
7266
7266
|
notificationListenerService.connection.on(
|
|
7267
7267
|
config.notifyMethod,
|
|
7268
7268
|
(message) => {
|
|
7269
|
-
|
|
7269
|
+
chunkP4SL4PTY_cjs.notificationService.getNotificationConfig(config, message);
|
|
7270
7270
|
try {
|
|
7271
7271
|
const notice = typeof message === "string" ? JSON.parse(message) : message;
|
|
7272
7272
|
const denom = JSON.parse(
|
|
@@ -7290,12 +7290,12 @@ function useNotificationFeed(open) {
|
|
|
7290
7290
|
const [notifications, setNotifications] = React8.useState([]);
|
|
7291
7291
|
const [hasMore, setHasMore] = React8.useState(true);
|
|
7292
7292
|
const listRef = React8.useRef(null);
|
|
7293
|
-
const { data, isLoading, isFetching } =
|
|
7293
|
+
const { data, isLoading, isFetching } = chunkP4SL4PTY_cjs.useGetNotifications(
|
|
7294
7294
|
pageNumber,
|
|
7295
7295
|
PAGE_SIZE
|
|
7296
7296
|
);
|
|
7297
|
-
const markAsRead =
|
|
7298
|
-
const markAllAsRead =
|
|
7297
|
+
const markAsRead = chunkP4SL4PTY_cjs.useMarkAsRead();
|
|
7298
|
+
const markAllAsRead = chunkP4SL4PTY_cjs.useMarkAllAsRead();
|
|
7299
7299
|
React8.useEffect(() => {
|
|
7300
7300
|
if (!data?.notifications) return;
|
|
7301
7301
|
setNotifications((prev) => {
|
|
@@ -7420,7 +7420,9 @@ function formatKBMetaDescription(meta, fallbackDescription, t = defaultT) {
|
|
|
7420
7420
|
}
|
|
7421
7421
|
function NotificationItem({
|
|
7422
7422
|
notification,
|
|
7423
|
-
onMarkAsRead
|
|
7423
|
+
onMarkAsRead,
|
|
7424
|
+
href,
|
|
7425
|
+
onOpen
|
|
7424
7426
|
}) {
|
|
7425
7427
|
const { t, language } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
7426
7428
|
let denorm = {
|
|
@@ -7440,20 +7442,28 @@ function NotificationItem({
|
|
|
7440
7442
|
notification.denormalizedPayload
|
|
7441
7443
|
);
|
|
7442
7444
|
}
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7445
|
+
const rowClassName = `flex w-full items-start gap-3 border-b px-4 py-3 text-left last:border-b-0 ${notification.isRead ? "" : "bg-muted/60"}`;
|
|
7446
|
+
const markAsRead = () => {
|
|
7447
|
+
if (!notification.isRead) onMarkAsRead(notification.id);
|
|
7448
|
+
};
|
|
7449
|
+
const content = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
7450
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: formatKBTitle(denorm.title, t) }),
|
|
7451
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: formatKBMetaDescription(denorm.meta, denorm.description, t) }),
|
|
7452
|
+
notification.createdTime && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-1 text-[11px] text-muted-foreground", children: new Date(notification.createdTime).toLocaleString(language) })
|
|
7453
|
+
] });
|
|
7454
|
+
if (href && onOpen) {
|
|
7455
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7456
|
+
"button",
|
|
7457
|
+
{
|
|
7458
|
+
type: "button",
|
|
7459
|
+
className: `${rowClassName} cursor-pointer hover:bg-muted`,
|
|
7460
|
+
onMouseEnter: markAsRead,
|
|
7461
|
+
onClick: () => onOpen(notification, href),
|
|
7462
|
+
children: content
|
|
7463
|
+
}
|
|
7464
|
+
);
|
|
7465
|
+
}
|
|
7466
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: rowClassName, onMouseEnter: markAsRead, children: content });
|
|
7457
7467
|
}
|
|
7458
7468
|
function NotificationList({
|
|
7459
7469
|
notifications,
|
|
@@ -7461,7 +7471,9 @@ function NotificationList({
|
|
|
7461
7471
|
isFetching,
|
|
7462
7472
|
listRef,
|
|
7463
7473
|
onScroll,
|
|
7464
|
-
onMarkAsRead
|
|
7474
|
+
onMarkAsRead,
|
|
7475
|
+
getHref,
|
|
7476
|
+
onOpen
|
|
7465
7477
|
}) {
|
|
7466
7478
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
7467
7479
|
const isEmpty = notifications.length === 0;
|
|
@@ -7476,7 +7488,9 @@ function NotificationList({
|
|
|
7476
7488
|
NotificationItem,
|
|
7477
7489
|
{
|
|
7478
7490
|
notification,
|
|
7479
|
-
onMarkAsRead
|
|
7491
|
+
onMarkAsRead,
|
|
7492
|
+
href: getHref?.(notification),
|
|
7493
|
+
onOpen
|
|
7480
7494
|
},
|
|
7481
7495
|
notification.id || idx
|
|
7482
7496
|
));
|
|
@@ -7494,6 +7508,132 @@ function NotificationList({
|
|
|
7494
7508
|
}
|
|
7495
7509
|
);
|
|
7496
7510
|
}
|
|
7511
|
+
|
|
7512
|
+
// src/components/common/notification/notification-link.ts
|
|
7513
|
+
var idOf = (payload, key) => {
|
|
7514
|
+
const value = payload[key];
|
|
7515
|
+
return typeof value === "string" && value.trim() !== "" ? encodeURIComponent(value) : null;
|
|
7516
|
+
};
|
|
7517
|
+
var scopedIn = (app) => (path) => ({ app, path, scoped: true });
|
|
7518
|
+
var logic = scopedIn("blocks-logic");
|
|
7519
|
+
var release = scopedIn("blocks-release");
|
|
7520
|
+
var osScoped = scopedIn("blocks-os");
|
|
7521
|
+
var osProject = (groupId, page) => ({
|
|
7522
|
+
app: "blocks-os",
|
|
7523
|
+
path: `/app/project/${groupId}/${page}`,
|
|
7524
|
+
scoped: false
|
|
7525
|
+
});
|
|
7526
|
+
var workflowRunFailed = (p) => {
|
|
7527
|
+
const workflowId = idOf(p, "workflowId");
|
|
7528
|
+
if (!workflowId) return null;
|
|
7529
|
+
const executionId = idOf(p, "executionId");
|
|
7530
|
+
const query = executionId ? `?tab=executions&executionId=${executionId}` : "?tab=executions";
|
|
7531
|
+
return logic(`workflow/${workflowId}${query}`);
|
|
7532
|
+
};
|
|
7533
|
+
var workflowPage = (p) => {
|
|
7534
|
+
const workflowId = idOf(p, "workflowId");
|
|
7535
|
+
return workflowId ? logic(`workflow/${workflowId}`) : null;
|
|
7536
|
+
};
|
|
7537
|
+
var functionRunFailed = (p) => {
|
|
7538
|
+
const functionId = idOf(p, "functionId");
|
|
7539
|
+
if (!functionId) return null;
|
|
7540
|
+
const runId = idOf(p, "runId");
|
|
7541
|
+
const query = runId ? `?tab=runs&runId=${runId}` : "?tab=runs";
|
|
7542
|
+
return logic(`functions/${functionId}${query}`);
|
|
7543
|
+
};
|
|
7544
|
+
var functionPage = (p) => {
|
|
7545
|
+
const functionId = idOf(p, "functionId");
|
|
7546
|
+
return functionId ? logic(`functions/${functionId}`) : null;
|
|
7547
|
+
};
|
|
7548
|
+
var functionChangedByOther = (p) => p.action === "deleted" ? logic("functions") : functionPage(p);
|
|
7549
|
+
var scheduleRegistrationFailed = (p) => {
|
|
7550
|
+
const scheduleId = idOf(p, "scheduleId");
|
|
7551
|
+
return scheduleId ? logic(`schedule/${scheduleId}`) : null;
|
|
7552
|
+
};
|
|
7553
|
+
var buildLogs = (p, tab) => {
|
|
7554
|
+
const repoId = idOf(p, "repoId");
|
|
7555
|
+
const buildId = idOf(p, "buildId");
|
|
7556
|
+
if (!repoId || !buildId) return null;
|
|
7557
|
+
return release(
|
|
7558
|
+
`deployment/repo/${repoId}/deployment-logs/${buildId}?tab=${tab}`
|
|
7559
|
+
);
|
|
7560
|
+
};
|
|
7561
|
+
var repoPage = (p) => {
|
|
7562
|
+
const repoId = idOf(p, "repoId");
|
|
7563
|
+
return repoId ? release(`deployment/repo/${repoId}`) : null;
|
|
7564
|
+
};
|
|
7565
|
+
var autoDeployStatus = (p) => {
|
|
7566
|
+
const repoId = idOf(p, "repoId");
|
|
7567
|
+
const buildId = idOf(p, "buildId");
|
|
7568
|
+
if (repoId && buildId) {
|
|
7569
|
+
return release(`deployment/repo/${repoId}/deployment-live/${buildId}`);
|
|
7570
|
+
}
|
|
7571
|
+
return repoPage(p);
|
|
7572
|
+
};
|
|
7573
|
+
var codeAnalysisFinished = (p) => buildLogs(p, p.analysisType === "SCA" ? "sca" : "sast");
|
|
7574
|
+
var projectPage = (key, page) => (p) => {
|
|
7575
|
+
const groupId = idOf(p, key);
|
|
7576
|
+
return groupId ? osProject(groupId, page) : null;
|
|
7577
|
+
};
|
|
7578
|
+
var organizationDetail = (p) => {
|
|
7579
|
+
const organizationId = idOf(p, "organizationId");
|
|
7580
|
+
return organizationId ? osScoped(`iam/organization-detail/${organizationId}`) : null;
|
|
7581
|
+
};
|
|
7582
|
+
var invitedUserDetail = (p) => {
|
|
7583
|
+
const userId = idOf(p, "invitedUserId");
|
|
7584
|
+
return userId ? osScoped(`iam/user-detail/${userId}`) : null;
|
|
7585
|
+
};
|
|
7586
|
+
var LINK_BUILDERS = {
|
|
7587
|
+
WorkflowRunFailed: workflowRunFailed,
|
|
7588
|
+
ScheduledTriggerDropped: workflowPage,
|
|
7589
|
+
FunctionRunFailed: functionRunFailed,
|
|
7590
|
+
FunctionBuildFinished: functionPage,
|
|
7591
|
+
FunctionChangedByOther: functionChangedByOther,
|
|
7592
|
+
ScheduleRegistrationFailed: scheduleRegistrationFailed,
|
|
7593
|
+
"release-build-finished": (p) => buildLogs(p, "deployment-logs"),
|
|
7594
|
+
"release-auto-deploy-status": autoDeployStatus,
|
|
7595
|
+
"release-deployment-deleted": repoPage,
|
|
7596
|
+
"release-code-analysis-finished": codeAnalysisFinished,
|
|
7597
|
+
"project-setup-failed": projectPage("tenantGroupId", "environments"),
|
|
7598
|
+
"project-ownership-transferred": projectPage("tenantGroupId", "people"),
|
|
7599
|
+
"project-access-changed": projectPage("projectGroupId", "environments"),
|
|
7600
|
+
"iam-organization-setup-finished": organizationDetail,
|
|
7601
|
+
"iam-invitation-mail-failed": invitedUserDetail
|
|
7602
|
+
};
|
|
7603
|
+
var parsePayload = (raw) => {
|
|
7604
|
+
try {
|
|
7605
|
+
const parsed = JSON.parse(raw);
|
|
7606
|
+
return parsed !== null && typeof parsed === "object" ? parsed : null;
|
|
7607
|
+
} catch {
|
|
7608
|
+
return null;
|
|
7609
|
+
}
|
|
7610
|
+
};
|
|
7611
|
+
function getNotificationLink(denormalizedPayload) {
|
|
7612
|
+
const payload = parsePayload(denormalizedPayload);
|
|
7613
|
+
const event = payload?.event;
|
|
7614
|
+
if (!payload || typeof event !== "string") return null;
|
|
7615
|
+
const build = Object.hasOwn(LINK_BUILDERS, event) ? LINK_BUILDERS[event] : void 0;
|
|
7616
|
+
return build ? build(payload) : null;
|
|
7617
|
+
}
|
|
7618
|
+
function getNotificationHref(denormalizedPayload, currentApp, projectItemId) {
|
|
7619
|
+
const link = getNotificationLink(denormalizedPayload);
|
|
7620
|
+
if (link?.app !== currentApp) return null;
|
|
7621
|
+
if (!link.scoped) return link.path;
|
|
7622
|
+
return projectItemId ? `/app/${encodeURIComponent(projectItemId)}/${link.path}` : null;
|
|
7623
|
+
}
|
|
7624
|
+
|
|
7625
|
+
// src/components/common/notification/use-notification-open.ts
|
|
7626
|
+
function useNotificationOpen() {
|
|
7627
|
+
const navigate = reactRouter.useNavigate();
|
|
7628
|
+
const { itemId } = reactRouter.useParams();
|
|
7629
|
+
const app = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.config.name);
|
|
7630
|
+
const getHref = React8.useCallback(
|
|
7631
|
+
(notification) => getNotificationHref(notification.denormalizedPayload, app, itemId),
|
|
7632
|
+
[app, itemId]
|
|
7633
|
+
);
|
|
7634
|
+
const open = React8.useCallback((href) => navigate(href), [navigate]);
|
|
7635
|
+
return { getHref, open };
|
|
7636
|
+
}
|
|
7497
7637
|
function Notification() {
|
|
7498
7638
|
const [open, setOpen] = React8.useState(false);
|
|
7499
7639
|
useNotificationSocket();
|
|
@@ -7507,6 +7647,12 @@ function Notification() {
|
|
|
7507
7647
|
handleMarkAsRead,
|
|
7508
7648
|
handleMarkAllAsRead
|
|
7509
7649
|
} = useNotificationFeed(open);
|
|
7650
|
+
const { getHref, open: openPage } = useNotificationOpen();
|
|
7651
|
+
const handleOpen = (notification, href) => {
|
|
7652
|
+
if (!notification.isRead) handleMarkAsRead(notification.id);
|
|
7653
|
+
setOpen(false);
|
|
7654
|
+
openPage(href);
|
|
7655
|
+
};
|
|
7510
7656
|
return /* @__PURE__ */ jsxRuntime.jsxs(Popover, { open, onOpenChange: setOpen, children: [
|
|
7511
7657
|
/* @__PURE__ */ jsxRuntime.jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx(NotificationBell, { unreadCount }) }) }),
|
|
7512
7658
|
/* @__PURE__ */ jsxRuntime.jsxs(PopoverContent, { className: "w-[370px] p-0", children: [
|
|
@@ -7519,7 +7665,9 @@ function Notification() {
|
|
|
7519
7665
|
isFetching,
|
|
7520
7666
|
listRef,
|
|
7521
7667
|
onScroll: handleScroll,
|
|
7522
|
-
onMarkAsRead: handleMarkAsRead
|
|
7668
|
+
onMarkAsRead: handleMarkAsRead,
|
|
7669
|
+
getHref,
|
|
7670
|
+
onOpen: handleOpen
|
|
7523
7671
|
}
|
|
7524
7672
|
)
|
|
7525
7673
|
] })
|
|
@@ -7536,7 +7684,7 @@ function ConsoleHeader() {
|
|
|
7536
7684
|
window.addEventListener("scroll", handleScroll);
|
|
7537
7685
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
7538
7686
|
}, []);
|
|
7539
|
-
const { appLightLogo, appDarkLogo } =
|
|
7687
|
+
const { appLightLogo, appDarkLogo } = chunkP4SL4PTY_cjs.useLogo();
|
|
7540
7688
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7541
7689
|
"div",
|
|
7542
7690
|
{
|
|
@@ -7749,7 +7897,7 @@ var EnvironmentCard = ({
|
|
|
7749
7897
|
}) => {
|
|
7750
7898
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
7751
7899
|
const { setSelectedProject, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
7752
|
-
const { mutateAsync } =
|
|
7900
|
+
const { mutateAsync } = chunkP4SL4PTY_cjs.useStartImpersonation();
|
|
7753
7901
|
const navigate = reactRouter.useNavigate();
|
|
7754
7902
|
const handleCardClick = async () => {
|
|
7755
7903
|
try {
|
|
@@ -7804,11 +7952,11 @@ function EnvironmentList({
|
|
|
7804
7952
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
7805
7953
|
const navigate = reactRouter.useNavigate();
|
|
7806
7954
|
const { pathname } = reactRouter.useLocation();
|
|
7807
|
-
const { data: projectGroups = [], isLoading } =
|
|
7955
|
+
const { data: projectGroups = [], isLoading } = chunkP4SL4PTY_cjs.useGetProjects({
|
|
7808
7956
|
enabled: true
|
|
7809
7957
|
});
|
|
7810
7958
|
const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
7811
|
-
const { data: projectData } =
|
|
7959
|
+
const { data: projectData } = chunkP4SL4PTY_cjs.useGetProject();
|
|
7812
7960
|
const pendingProjectRef = React8.useRef(null);
|
|
7813
7961
|
const redirectRegexMap = React8.useMemo(
|
|
7814
7962
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -7943,7 +8091,7 @@ function ProtectedGuard({
|
|
|
7943
8091
|
if (!isAuthenticated) navigate(defaultPublicPath);
|
|
7944
8092
|
}, [isAuthenticated, defaultPublicPath, navigate]);
|
|
7945
8093
|
React8.useEffect(
|
|
7946
|
-
() =>
|
|
8094
|
+
() => chunkA4MVNKXL_cjs.subscribeToSignOut(
|
|
7947
8095
|
() => window.location.replace(
|
|
7948
8096
|
`${window.location.origin}${defaultPublicPath}`
|
|
7949
8097
|
)
|
|
@@ -7993,7 +8141,7 @@ function AuthResolver({ children }) {
|
|
|
7993
8141
|
if (isSignInCallbackPath(window.location.pathname)) return;
|
|
7994
8142
|
async function resolve() {
|
|
7995
8143
|
try {
|
|
7996
|
-
const res = await
|
|
8144
|
+
const res = await chunkA4MVNKXL_cjs.iamClient.get(`${chunkA4MVNKXL_cjs.AUTH_ENDPOINTS.ME}`);
|
|
7997
8145
|
setUser(res);
|
|
7998
8146
|
setAuthenticated();
|
|
7999
8147
|
} catch {
|
|
@@ -8089,8 +8237,8 @@ var useLiveOwnerProbe = ({
|
|
|
8089
8237
|
if (!cookieTenantId || !ownTenantId || cookieTenantId === ownTenantId) {
|
|
8090
8238
|
return null;
|
|
8091
8239
|
}
|
|
8092
|
-
const owner =
|
|
8093
|
-
return owner && owner.tabId !==
|
|
8240
|
+
const owner = chunkA4MVNKXL_cjs.readCurrentOwner();
|
|
8241
|
+
return owner && owner.tabId !== chunkA4MVNKXL_cjs.TAB_ID && owner.tenantId === cookieTenantId ? owner : null;
|
|
8094
8242
|
}, [cookieTenantId, ownTenantId]);
|
|
8095
8243
|
const claimKey = claimKeyOf(foreignClaim);
|
|
8096
8244
|
const [probedKey, setProbedKey] = React8.useState(null);
|
|
@@ -8102,9 +8250,9 @@ var useLiveOwnerProbe = ({
|
|
|
8102
8250
|
const claim = foreignClaimRef.current;
|
|
8103
8251
|
if (!claim || !claimKey) return;
|
|
8104
8252
|
let cancelled = false;
|
|
8105
|
-
void
|
|
8253
|
+
void chunkA4MVNKXL_cjs.isTenantHeldElsewhere(claim.tenantId).then((held) => {
|
|
8106
8254
|
if (cancelled) return;
|
|
8107
|
-
if (held &&
|
|
8255
|
+
if (held && chunkA4MVNKXL_cjs.isSameClaim(chunkA4MVNKXL_cjs.readCurrentOwner(), claim)) {
|
|
8108
8256
|
onHeldElsewhereRef.current(claim.tenantId);
|
|
8109
8257
|
}
|
|
8110
8258
|
setProbedKey(claimKey);
|
|
@@ -8118,10 +8266,10 @@ var useLiveOwnerProbe = ({
|
|
|
8118
8266
|
var ImpersonationChecker = ({
|
|
8119
8267
|
children
|
|
8120
8268
|
}) => {
|
|
8121
|
-
const { data } =
|
|
8269
|
+
const { data } = chunkP4SL4PTY_cjs.useImpersonationStatusChecker();
|
|
8122
8270
|
const { setImpersonation, isInitialized, setInitialized } = chunkRO55MFZA_cjs.useImpersonateStore();
|
|
8123
|
-
|
|
8124
|
-
|
|
8271
|
+
chunkP4SL4PTY_cjs.useSessionTenantGuard();
|
|
8272
|
+
chunkP4SL4PTY_cjs.useStatusFirstOnTabReturn();
|
|
8125
8273
|
React8.useEffect(() => {
|
|
8126
8274
|
if (!data) return;
|
|
8127
8275
|
setImpersonation(
|
|
@@ -8181,8 +8329,8 @@ function ImpersonationTerminator({
|
|
|
8181
8329
|
detachedTenantId,
|
|
8182
8330
|
setDetached
|
|
8183
8331
|
} = chunkRO55MFZA_cjs.useImpersonateStore();
|
|
8184
|
-
const { mutateAsync } =
|
|
8185
|
-
const recordClaimedTenant =
|
|
8332
|
+
const { mutateAsync } = chunkP4SL4PTY_cjs.useStopImpersonation();
|
|
8333
|
+
const recordClaimedTenant = chunkP4SL4PTY_cjs.useRecordClaimedTenant();
|
|
8186
8334
|
const { projects } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
8187
8335
|
const isTriggering = React8.useRef(false);
|
|
8188
8336
|
const [isTerminating, setIsTerminating] = React8.useState(false);
|
|
@@ -8194,7 +8342,7 @@ function ImpersonationTerminator({
|
|
|
8194
8342
|
});
|
|
8195
8343
|
React8.useEffect(() => {
|
|
8196
8344
|
if (!rootTenantId) return;
|
|
8197
|
-
return
|
|
8345
|
+
return chunkA4MVNKXL_cjs.subscribeToTenantClaims((claim) => {
|
|
8198
8346
|
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
8199
8347
|
if (claim.tenantId === rootTenantId) {
|
|
8200
8348
|
setDetached(null);
|
|
@@ -8211,7 +8359,7 @@ function ImpersonationTerminator({
|
|
|
8211
8359
|
null
|
|
8212
8360
|
);
|
|
8213
8361
|
const { t } = chunkOPMWK5SY_cjs.useT(GENESIS_SHARED_MODULE);
|
|
8214
|
-
const signOut =
|
|
8362
|
+
const signOut = chunkP4SL4PTY_cjs.useSignOut();
|
|
8215
8363
|
React8.useEffect(() => {
|
|
8216
8364
|
if (!isImpersonated) setReturnFailure(null);
|
|
8217
8365
|
}, [isImpersonated]);
|
|
@@ -8227,7 +8375,7 @@ function ImpersonationTerminator({
|
|
|
8227
8375
|
const { status, stopError } = await mutateAsync(void 0);
|
|
8228
8376
|
if (!status.impersonated) {
|
|
8229
8377
|
terminate(rootTenantId);
|
|
8230
|
-
if (rootTenantId)
|
|
8378
|
+
if (rootTenantId) chunkA4MVNKXL_cjs.claimTenant(rootTenantId);
|
|
8231
8379
|
return;
|
|
8232
8380
|
}
|
|
8233
8381
|
console.error("Error stopping impersonation:", stopError);
|
|
@@ -8312,9 +8460,9 @@ function ImpersonationSynchronizer({
|
|
|
8312
8460
|
setDetached
|
|
8313
8461
|
} = chunkRO55MFZA_cjs.useImpersonateStore();
|
|
8314
8462
|
const { t } = chunkOPMWK5SY_cjs.useT(GENESIS_SHARED_MODULE);
|
|
8315
|
-
const { mutateAsync } =
|
|
8316
|
-
const recordClaimedTenant =
|
|
8317
|
-
const { data: _data } =
|
|
8463
|
+
const { mutateAsync } = chunkP4SL4PTY_cjs.useStartImpersonation();
|
|
8464
|
+
const recordClaimedTenant = chunkP4SL4PTY_cjs.useRecordClaimedTenant();
|
|
8465
|
+
const { data: _data } = chunkP4SL4PTY_cjs.useGetProjects({ enabled: true });
|
|
8318
8466
|
const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
8319
8467
|
const isTriggering = React8.useRef(false);
|
|
8320
8468
|
const [isImpersonating, setIsImpersonating] = React8.useState(false);
|
|
@@ -8349,7 +8497,7 @@ function ImpersonationSynchronizer({
|
|
|
8349
8497
|
]);
|
|
8350
8498
|
const getImpersonatedProject = async () => {
|
|
8351
8499
|
try {
|
|
8352
|
-
const res =
|
|
8500
|
+
const res = chunkP4SL4PTY_cjs.projectService.getProject();
|
|
8353
8501
|
return (await res).data;
|
|
8354
8502
|
} catch (error) {
|
|
8355
8503
|
console.error("Error fetching projects:", error);
|
|
@@ -8410,10 +8558,10 @@ function ImpersonationSynchronizer({
|
|
|
8410
8558
|
const isAttached = !!routeTenantId && routeTenantId === impersonatedTenantId && !detachedHere && !impersonationError && !isProbingOwner;
|
|
8411
8559
|
React8.useEffect(() => {
|
|
8412
8560
|
if (!isAttached || !routeTenantId) return;
|
|
8413
|
-
return
|
|
8561
|
+
return chunkA4MVNKXL_cjs.holdTenant(routeTenantId);
|
|
8414
8562
|
}, [isAttached, routeTenantId]);
|
|
8415
8563
|
React8.useEffect(() => {
|
|
8416
|
-
return
|
|
8564
|
+
return chunkA4MVNKXL_cjs.subscribeToTenantClaims((claim) => {
|
|
8417
8565
|
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
8418
8566
|
const mine = routeTenantIdRef.current;
|
|
8419
8567
|
if (!mine) return;
|
|
@@ -8643,7 +8791,7 @@ var LoginHeader = ({
|
|
|
8643
8791
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
8644
8792
|
const {
|
|
8645
8793
|
config: { appLogoUrl }
|
|
8646
|
-
} =
|
|
8794
|
+
} = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state);
|
|
8647
8795
|
const resolveLogo = (variant) => {
|
|
8648
8796
|
if (!appLogoUrl) return void 0;
|
|
8649
8797
|
if (typeof appLogoUrl === "string") return appLogoUrl;
|
|
@@ -9928,10 +10076,10 @@ var BlocksLoginPage = ({
|
|
|
9928
10076
|
var LoginPage = () => {
|
|
9929
10077
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.login");
|
|
9930
10078
|
const products = React8.useMemo(() => getBlocksProducts(t), [t]);
|
|
9931
|
-
const config =
|
|
9932
|
-
const { start, isLoading } =
|
|
9933
|
-
const { canSignUp } =
|
|
9934
|
-
const { start: startSignUp, isLoading: isSignUpLoading } =
|
|
10079
|
+
const config = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
10080
|
+
const { start, isLoading } = chunkP4SL4PTY_cjs.useLogin();
|
|
10081
|
+
const { canSignUp } = chunkP4SL4PTY_cjs.useSignUpAffordance();
|
|
10082
|
+
const { start: startSignUp, isLoading: isSignUpLoading } = chunkP4SL4PTY_cjs.useSignUpRedirect();
|
|
9935
10083
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9936
10084
|
BlocksLoginPage,
|
|
9937
10085
|
{
|
|
@@ -10049,10 +10197,10 @@ var DefaultDoc = () => {
|
|
|
10049
10197
|
return /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: getResources(t).map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
|
|
10050
10198
|
};
|
|
10051
10199
|
function useCreateProjectRedirect() {
|
|
10052
|
-
const { name } =
|
|
10200
|
+
const { name } = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
10053
10201
|
const navigate = reactRouter.useNavigate();
|
|
10054
10202
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
10055
|
-
const { isFetching, isReady, redirect } =
|
|
10203
|
+
const { isFetching, isReady, redirect } = chunkP4SL4PTY_cjs.usePrefetchRedirect({
|
|
10056
10204
|
clientId: osApp ? chunkTSRDXJUG_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
10057
10205
|
redirectUri: osApp ? chunkTSRDXJUG_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
10058
10206
|
forwardedTo: "/app/create-project",
|
|
@@ -10146,10 +10294,10 @@ function useProjectOverviewRedirect({
|
|
|
10146
10294
|
tenantGroupId
|
|
10147
10295
|
}) {
|
|
10148
10296
|
const navigate = reactRouter.useNavigate();
|
|
10149
|
-
const { name } =
|
|
10297
|
+
const { name } = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
10150
10298
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
10151
10299
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
10152
|
-
const { isFetching, isReady, redirect } =
|
|
10300
|
+
const { isFetching, isReady, redirect } = chunkP4SL4PTY_cjs.usePrefetchRedirect({
|
|
10153
10301
|
clientId: osApp ? chunkTSRDXJUG_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
10154
10302
|
redirectUri: osApp ? chunkTSRDXJUG_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
10155
10303
|
forwardedTo: redirectedRoute,
|
|
@@ -10528,7 +10676,7 @@ function MultiSelect2({
|
|
|
10528
10676
|
value: selectedValues
|
|
10529
10677
|
}) {
|
|
10530
10678
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
10531
|
-
const [buttonRef, popoverWidth] =
|
|
10679
|
+
const [buttonRef, popoverWidth] = chunkP4SL4PTY_cjs.usePopoverWidth();
|
|
10532
10680
|
const onSelectHandler = (value) => {
|
|
10533
10681
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
10534
10682
|
onChange(nextValues);
|
|
@@ -10811,7 +10959,7 @@ var useProjectListState = (projectGroups) => {
|
|
|
10811
10959
|
})),
|
|
10812
10960
|
[projectGroups]
|
|
10813
10961
|
);
|
|
10814
|
-
const searchedGroups =
|
|
10962
|
+
const searchedGroups = chunkP4SL4PTY_cjs.useDebouncedFuseFilter(
|
|
10815
10963
|
searchableGroups,
|
|
10816
10964
|
searchText,
|
|
10817
10965
|
SEARCH_OPTIONS
|
|
@@ -10882,7 +11030,7 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
10882
11030
|
};
|
|
10883
11031
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
10884
11032
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.console");
|
|
10885
|
-
const { data, isLoading } =
|
|
11033
|
+
const { data, isLoading } = chunkP4SL4PTY_cjs.useGetProjects({ enabled: true });
|
|
10886
11034
|
const isPending = isLoading;
|
|
10887
11035
|
const projectGroups = data || [];
|
|
10888
11036
|
const {
|
|
@@ -11010,7 +11158,7 @@ var announceNewSession = async () => {
|
|
|
11010
11158
|
let timer;
|
|
11011
11159
|
try {
|
|
11012
11160
|
const status = await Promise.race([
|
|
11013
|
-
|
|
11161
|
+
chunkP4SL4PTY_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
|
|
11014
11162
|
new Promise((_, reject) => {
|
|
11015
11163
|
timer = setTimeout(
|
|
11016
11164
|
() => reject(new Error("Impersonation status timed out")),
|
|
@@ -11019,7 +11167,7 @@ var announceNewSession = async () => {
|
|
|
11019
11167
|
})
|
|
11020
11168
|
]);
|
|
11021
11169
|
const tenantId = status.impersonated ? status.impersonatedTenantId : rootTenantId;
|
|
11022
|
-
if (tenantId)
|
|
11170
|
+
if (tenantId) chunkA4MVNKXL_cjs.claimTenant(tenantId);
|
|
11023
11171
|
} catch {
|
|
11024
11172
|
} finally {
|
|
11025
11173
|
clearTimeout(timer);
|
|
@@ -11075,7 +11223,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
|
11075
11223
|
};
|
|
11076
11224
|
function ProfilePage() {
|
|
11077
11225
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.profile");
|
|
11078
|
-
const { isLoading, error } =
|
|
11226
|
+
const { isLoading, error } = chunkP4SL4PTY_cjs.useInitiateRedirect({
|
|
11079
11227
|
clientId: chunkTSRDXJUG_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
|
|
11080
11228
|
redirectUri: chunkTSRDXJUG_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
|
|
11081
11229
|
forwardedTo: "/app/profile"
|
|
@@ -11354,8 +11502,8 @@ var ConfirmationModal = ({
|
|
|
11354
11502
|
] });
|
|
11355
11503
|
};
|
|
11356
11504
|
var DashboardOverview = () => {
|
|
11357
|
-
const { name } =
|
|
11358
|
-
const { data, isFetching } =
|
|
11505
|
+
const { name } = chunkP4SL4PTY_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
11506
|
+
const { data, isFetching } = chunkP4SL4PTY_cjs.useGetProject();
|
|
11359
11507
|
const {
|
|
11360
11508
|
endpoints,
|
|
11361
11509
|
isLoading: isLoadingEndpoints,
|
|
@@ -11451,11 +11599,11 @@ function ProjectList2({
|
|
|
11451
11599
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
11452
11600
|
const navigate = reactRouter.useNavigate();
|
|
11453
11601
|
const { pathname } = reactRouter.useLocation();
|
|
11454
|
-
const { data: projectGroups = [], isLoading } =
|
|
11602
|
+
const { data: projectGroups = [], isLoading } = chunkP4SL4PTY_cjs.useGetProjects({
|
|
11455
11603
|
enabled: true
|
|
11456
11604
|
});
|
|
11457
11605
|
const { selectedProject, setSelectedProject } = chunkU2LA7LBX_cjs.useProjectStore();
|
|
11458
|
-
const { data: projectData } =
|
|
11606
|
+
const { data: projectData } = chunkP4SL4PTY_cjs.useGetProject();
|
|
11459
11607
|
const pendingProjectRef = React8.useRef(null);
|
|
11460
11608
|
const redirectRegexMap = React8.useMemo(
|
|
11461
11609
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -11608,7 +11756,7 @@ var SetCustomDomainDialog = ({
|
|
|
11608
11756
|
projectEnv
|
|
11609
11757
|
}) => {
|
|
11610
11758
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
11611
|
-
const { mutateAsync, isPending } =
|
|
11759
|
+
const { mutateAsync, isPending } = chunkP4SL4PTY_cjs.useUpdateRepositories();
|
|
11612
11760
|
const verifiedDomains = React8.useMemo(
|
|
11613
11761
|
() => Array.from(
|
|
11614
11762
|
new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
|
|
@@ -11794,7 +11942,7 @@ var ProjectRepoList = ({
|
|
|
11794
11942
|
data: envRepositoriesResponse,
|
|
11795
11943
|
isLoading: isLoadingEnvRepos,
|
|
11796
11944
|
isFetching: isFetchingEnvRepos
|
|
11797
|
-
} =
|
|
11945
|
+
} = chunkP4SL4PTY_cjs.useGetEnvRepositories(project?.tenantId || "");
|
|
11798
11946
|
if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
|
|
11799
11947
|
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: [
|
|
11800
11948
|
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
|
|
@@ -11897,7 +12045,7 @@ var EditProjectForm = ({
|
|
|
11897
12045
|
}) => {
|
|
11898
12046
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
11899
12047
|
const queryClient = reactQuery.useQueryClient();
|
|
11900
|
-
const { mutateAsync, isPending } =
|
|
12048
|
+
const { mutateAsync, isPending } = chunkP4SL4PTY_cjs.useUpdateTenantGroup();
|
|
11901
12049
|
const form = reactHookForm.useForm({
|
|
11902
12050
|
resolver: zod$1.zodResolver(editProjectFormSchema),
|
|
11903
12051
|
defaultValues: {
|
|
@@ -12043,7 +12191,7 @@ function SidebarMobileView({
|
|
|
12043
12191
|
}) {
|
|
12044
12192
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
12045
12193
|
const [open, setOpen] = React8.useState(false);
|
|
12046
|
-
const { appLightLogo, appDarkLogo } =
|
|
12194
|
+
const { appLightLogo, appDarkLogo } = chunkP4SL4PTY_cjs.useLogo();
|
|
12047
12195
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
12048
12196
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
12049
12197
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
|
|
@@ -12094,8 +12242,8 @@ function SidebarMenuDesktop({
|
|
|
12094
12242
|
}) {
|
|
12095
12243
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
12096
12244
|
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkCTIGX76P_cjs.SidebarContext);
|
|
12097
|
-
const { appLightLogo, appDarkLogo } =
|
|
12098
|
-
const icon =
|
|
12245
|
+
const { appLightLogo, appDarkLogo } = chunkP4SL4PTY_cjs.useLogo();
|
|
12246
|
+
const icon = chunkP4SL4PTY_cjs.useIcon();
|
|
12099
12247
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
12100
12248
|
const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
|
|
12101
12249
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -12225,7 +12373,7 @@ var ArchiveProject = () => {
|
|
|
12225
12373
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
12226
12374
|
const navigate = reactRouter.useNavigate();
|
|
12227
12375
|
const projectKey = chunkU2LA7LBX_cjs.useProjectStore().selectedProject?.tenantId || "";
|
|
12228
|
-
const { mutateAsync, isPending } =
|
|
12376
|
+
const { mutateAsync, isPending } = chunkP4SL4PTY_cjs.useDisableProject({ projectKey });
|
|
12229
12377
|
const onClickHandler = async () => {
|
|
12230
12378
|
try {
|
|
12231
12379
|
const res = await mutateAsync();
|
|
@@ -13200,7 +13348,7 @@ var ClearButton = ({ onClear }) => {
|
|
|
13200
13348
|
function Radio({ label, options, onChange, value }) {
|
|
13201
13349
|
const { t } = chunkOPMWK5SY_cjs.useT("genesis.shared");
|
|
13202
13350
|
const [search, setSearch] = React8.useState("");
|
|
13203
|
-
const [buttonRef, popoverWidth] =
|
|
13351
|
+
const [buttonRef, popoverWidth] = chunkP4SL4PTY_cjs.usePopoverWidth();
|
|
13204
13352
|
const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
|
|
13205
13353
|
const selected = React8.useMemo(
|
|
13206
13354
|
() => options.find((item) => item.value === value) || null,
|
|
@@ -14209,5 +14357,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
|
14209
14357
|
exports.useRightSidePanel = useRightSidePanel;
|
|
14210
14358
|
exports.useSortQueryParams = useSortQueryParams;
|
|
14211
14359
|
exports.useWizardStepper = useWizardStepper;
|
|
14212
|
-
//# sourceMappingURL=chunk-
|
|
14213
|
-
//# sourceMappingURL=chunk-
|
|
14360
|
+
//# sourceMappingURL=chunk-ZVYSSUHO.cjs.map
|
|
14361
|
+
//# sourceMappingURL=chunk-ZVYSSUHO.cjs.map
|