@seliseblocks/genesis-os 4.4.4 → 4.4.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-I2KRZLP4.cjs → chunk-4CMIWUZW.cjs} +6 -5
- package/dist/chunk-4CMIWUZW.cjs.map +1 -0
- package/dist/{chunk-2BZ2C4TS.cjs → chunk-CGVT7IFM.cjs} +103 -103
- package/dist/{chunk-2BZ2C4TS.cjs.map → chunk-CGVT7IFM.cjs.map} +1 -1
- package/dist/{chunk-AD2ZGEQ5.cjs → chunk-IRIDGVV2.cjs} +49 -47
- package/dist/chunk-IRIDGVV2.cjs.map +1 -0
- package/dist/{chunk-VSLB4SJE.js → chunk-NPMO67H6.js} +4 -4
- package/dist/{chunk-VSLB4SJE.js.map → chunk-NPMO67H6.js.map} +1 -1
- package/dist/{chunk-R7WBG4YN.js → chunk-O5ACQLWB.js} +6 -6
- package/dist/chunk-O5ACQLWB.js.map +1 -0
- package/dist/{chunk-EKAGSVC7.js → chunk-ZR6LRRN6.js} +13 -11
- package/dist/{chunk-AD2ZGEQ5.cjs.map → chunk-ZR6LRRN6.js.map} +1 -1
- 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.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.js +1 -1
- package/dist/pages/index.cjs +8 -8
- package/dist/pages/index.js +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EKAGSVC7.js.map +0 -1
- package/dist/chunk-I2KRZLP4.cjs.map +0 -1
- package/dist/chunk-R7WBG4YN.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 chunkIRIDGVV2_cjs = require('./chunk-IRIDGVV2.cjs');
|
|
5
5
|
var chunkQTSTAWK3_cjs = require('./chunk-QTSTAWK3.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunk4CMIWUZW_cjs = require('./chunk-4CMIWUZW.cjs');
|
|
7
7
|
var chunkX4YCRWXO_cjs = require('./chunk-X4YCRWXO.cjs');
|
|
8
8
|
var chunkIJMKS4XG_cjs = require('./chunk-IJMKS4XG.cjs');
|
|
9
9
|
var chunkBPJM3L7O_cjs = require('./chunk-BPJM3L7O.cjs');
|
|
@@ -1523,7 +1523,7 @@ function RightSidePanelProvider({
|
|
|
1523
1523
|
const close = React8__namespace.useCallback(() => {
|
|
1524
1524
|
setOpen(false);
|
|
1525
1525
|
}, [setOpen]);
|
|
1526
|
-
|
|
1526
|
+
chunkIRIDGVV2_cjs.useKeyboardShortcut(shortcut, toggle);
|
|
1527
1527
|
React8__namespace.useEffect(() => {
|
|
1528
1528
|
if (!syncHash || isControlled || typeof window === "undefined") return;
|
|
1529
1529
|
const handleHashChange = () => {
|
|
@@ -2388,7 +2388,7 @@ var WizardStepIndicator = ({
|
|
|
2388
2388
|
color: indicatorColor,
|
|
2389
2389
|
backgroundColor: isCompleted ? "hsl(var(--foreground))" : "transparent"
|
|
2390
2390
|
},
|
|
2391
|
-
transition:
|
|
2391
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2392
2392
|
className: chunkYAF2X7W5_cjs.cn(
|
|
2393
2393
|
"flex size-8 items-center justify-center rounded-full border text-lg font-bold",
|
|
2394
2394
|
className
|
|
@@ -2399,7 +2399,7 @@ var WizardStepIndicator = ({
|
|
|
2399
2399
|
initial: { scale: 0, opacity: 0 },
|
|
2400
2400
|
animate: { scale: 1, opacity: 1 },
|
|
2401
2401
|
exit: { scale: 0, opacity: 0 },
|
|
2402
|
-
transition:
|
|
2402
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2403
2403
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "size-[18px]", "aria-hidden": true })
|
|
2404
2404
|
},
|
|
2405
2405
|
"check"
|
|
@@ -2409,7 +2409,7 @@ var WizardStepIndicator = ({
|
|
|
2409
2409
|
initial: { scale: 0.8, opacity: 0 },
|
|
2410
2410
|
animate: { scale: 1, opacity: 1 },
|
|
2411
2411
|
exit: { scale: 0.8, opacity: 0 },
|
|
2412
|
-
transition:
|
|
2412
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2413
2413
|
children: stepNumber
|
|
2414
2414
|
},
|
|
2415
2415
|
"number"
|
|
@@ -2420,7 +2420,7 @@ var WizardStepIndicator = ({
|
|
|
2420
2420
|
var WizardVerticalTrackBar = () => {
|
|
2421
2421
|
const { currentStep, totalSteps, goToStep, completedSteps, getSteps } = useWizardStepper();
|
|
2422
2422
|
const steps = getSteps();
|
|
2423
|
-
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition:
|
|
2423
|
+
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.motion.div, { layout: true, transition: chunk4CMIWUZW_cjs.fadeTransition, children: steps.map((step, index) => {
|
|
2424
2424
|
const stepNumber = index + 1;
|
|
2425
2425
|
const isCompleted = completedSteps.includes(stepNumber);
|
|
2426
2426
|
const isCurrent = currentStep === stepNumber;
|
|
@@ -2434,7 +2434,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2434
2434
|
{
|
|
2435
2435
|
layout: true,
|
|
2436
2436
|
className: "flex items-center gap-2",
|
|
2437
|
-
transition:
|
|
2437
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2438
2438
|
children: [
|
|
2439
2439
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2440
2440
|
Button,
|
|
@@ -2461,7 +2461,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2461
2461
|
animate: {
|
|
2462
2462
|
color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
|
|
2463
2463
|
},
|
|
2464
|
-
transition:
|
|
2464
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2465
2465
|
className: "ml-4 text-base font-medium",
|
|
2466
2466
|
children: step.title
|
|
2467
2467
|
}
|
|
@@ -2478,7 +2478,7 @@ var WizardVerticalTrackBar = () => {
|
|
|
2478
2478
|
scaleY: isCompleted ? 1 : 0.35,
|
|
2479
2479
|
backgroundColor: isCompleted ? "hsl(var(--foreground))" : "hsl(var(--border))"
|
|
2480
2480
|
},
|
|
2481
|
-
transition:
|
|
2481
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition
|
|
2482
2482
|
}
|
|
2483
2483
|
) : null
|
|
2484
2484
|
]
|
|
@@ -2495,7 +2495,7 @@ var WizardHorizontalTrackBar = () => {
|
|
|
2495
2495
|
{
|
|
2496
2496
|
layout: true,
|
|
2497
2497
|
className: "flex w-full flex-row flex-wrap justify-between",
|
|
2498
|
-
transition:
|
|
2498
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2499
2499
|
children: steps.map((step, index) => {
|
|
2500
2500
|
const stepNumber = index + 1;
|
|
2501
2501
|
const isCompleted = completedSteps.includes(stepNumber);
|
|
@@ -2534,7 +2534,7 @@ var WizardHorizontalTrackBar = () => {
|
|
|
2534
2534
|
animate: {
|
|
2535
2535
|
color: isCurrent || isCompleted ? "hsl(var(--foreground))" : "hsl(var(--muted-foreground))"
|
|
2536
2536
|
},
|
|
2537
|
-
transition:
|
|
2537
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2538
2538
|
className: "hidden md:block",
|
|
2539
2539
|
children: step.title
|
|
2540
2540
|
}
|
|
@@ -2555,11 +2555,11 @@ var WizardStepViewport = ({
|
|
|
2555
2555
|
return /* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2556
2556
|
framerMotion.motion.div,
|
|
2557
2557
|
{
|
|
2558
|
-
variants:
|
|
2558
|
+
variants: chunk4CMIWUZW_cjs.fadeInUp,
|
|
2559
2559
|
initial: "initial",
|
|
2560
2560
|
animate: "animate",
|
|
2561
2561
|
exit: "exit",
|
|
2562
|
-
transition:
|
|
2562
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
2563
2563
|
className,
|
|
2564
2564
|
children
|
|
2565
2565
|
},
|
|
@@ -3499,7 +3499,7 @@ function MultiSelect({
|
|
|
3499
3499
|
onChange,
|
|
3500
3500
|
value: selectedValues
|
|
3501
3501
|
}) {
|
|
3502
|
-
const [buttonRef, popoverWidth] =
|
|
3502
|
+
const [buttonRef, popoverWidth] = chunkIRIDGVV2_cjs.usePopoverWidth();
|
|
3503
3503
|
const onSelectHandler = (value) => {
|
|
3504
3504
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
3505
3505
|
onChange(nextValues);
|
|
@@ -3815,7 +3815,7 @@ var CopyToClipboardButton = ({
|
|
|
3815
3815
|
),
|
|
3816
3816
|
initial: false,
|
|
3817
3817
|
animate: { opacity: isHoverable ? void 0 : 1 },
|
|
3818
|
-
transition:
|
|
3818
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
3819
3819
|
children: [
|
|
3820
3820
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3821
3821
|
Button,
|
|
@@ -3832,7 +3832,7 @@ var CopyToClipboardButton = ({
|
|
|
3832
3832
|
initial: { scale: 0.6, opacity: 0 },
|
|
3833
3833
|
animate: { scale: 1, opacity: 1 },
|
|
3834
3834
|
exit: { scale: 0.6, opacity: 0 },
|
|
3835
|
-
transition:
|
|
3835
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
3836
3836
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3837
3837
|
lucideReact.Check,
|
|
3838
3838
|
{
|
|
@@ -3848,7 +3848,7 @@ var CopyToClipboardButton = ({
|
|
|
3848
3848
|
initial: { scale: 0.6, opacity: 0 },
|
|
3849
3849
|
animate: { scale: 1, opacity: 1 },
|
|
3850
3850
|
exit: { scale: 0.6, opacity: 0 },
|
|
3851
|
-
transition:
|
|
3851
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
3852
3852
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Copy, { className: "size-4 text-muted-foreground", "aria-hidden": true })
|
|
3853
3853
|
},
|
|
3854
3854
|
"copy"
|
|
@@ -3861,7 +3861,7 @@ var CopyToClipboardButton = ({
|
|
|
3861
3861
|
layout: true,
|
|
3862
3862
|
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",
|
|
3863
3863
|
animate: { opacity: isCopying ? 1 : 0.9 },
|
|
3864
|
-
transition:
|
|
3864
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
3865
3865
|
children: isCopying ? copiedLabel : copyLabel
|
|
3866
3866
|
}
|
|
3867
3867
|
)
|
|
@@ -5228,7 +5228,7 @@ var InfiniteScroller = ({
|
|
|
5228
5228
|
initial: { opacity: 0, height: 0 },
|
|
5229
5229
|
animate: { opacity: 1, height: "auto" },
|
|
5230
5230
|
exit: { opacity: 0, height: 0 },
|
|
5231
|
-
transition:
|
|
5231
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
5232
5232
|
children: loadingIndicator
|
|
5233
5233
|
},
|
|
5234
5234
|
"loading"
|
|
@@ -5239,10 +5239,10 @@ var InfiniteScroller = ({
|
|
|
5239
5239
|
framerMotion.motion.div,
|
|
5240
5240
|
{
|
|
5241
5241
|
layout: true,
|
|
5242
|
-
variants:
|
|
5242
|
+
variants: chunk4CMIWUZW_cjs.fadeInUp,
|
|
5243
5243
|
initial: "initial",
|
|
5244
5244
|
animate: "animate",
|
|
5245
|
-
transition:
|
|
5245
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
5246
5246
|
children: renderItem(item, index)
|
|
5247
5247
|
},
|
|
5248
5248
|
key
|
|
@@ -5254,7 +5254,7 @@ var InfiniteScroller = ({
|
|
|
5254
5254
|
className: "flex h-full items-center justify-center text-muted-foreground",
|
|
5255
5255
|
initial: { opacity: 0 },
|
|
5256
5256
|
animate: { opacity: 1 },
|
|
5257
|
-
transition:
|
|
5257
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
5258
5258
|
children: emptyContent ?? "No items"
|
|
5259
5259
|
}
|
|
5260
5260
|
) }),
|
|
@@ -5265,7 +5265,7 @@ var InfiniteScroller = ({
|
|
|
5265
5265
|
initial: { opacity: 0, y: 16 },
|
|
5266
5266
|
animate: { opacity: 1, y: 0 },
|
|
5267
5267
|
exit: { opacity: 0, y: 12 },
|
|
5268
|
-
transition:
|
|
5268
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
5269
5269
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5270
5270
|
framerMotion.motion.div,
|
|
5271
5271
|
{
|
|
@@ -5903,14 +5903,14 @@ var Timeline = ({
|
|
|
5903
5903
|
framerMotion.motion.div,
|
|
5904
5904
|
{
|
|
5905
5905
|
className: chunkYAF2X7W5_cjs.cn("mt-4 flex flex-col items-start md:mt-5", className),
|
|
5906
|
-
variants:
|
|
5906
|
+
variants: chunk4CMIWUZW_cjs.staggerContainer,
|
|
5907
5907
|
initial: "initial",
|
|
5908
5908
|
animate: "animate",
|
|
5909
5909
|
children: events.map((event, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5910
5910
|
framerMotion.motion.div,
|
|
5911
5911
|
{
|
|
5912
|
-
variants:
|
|
5913
|
-
transition:
|
|
5912
|
+
variants: chunk4CMIWUZW_cjs.staggerItem,
|
|
5913
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
5914
5914
|
className: "flex min-h-[66px] w-full",
|
|
5915
5915
|
children: [
|
|
5916
5916
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkYAF2X7W5_cjs.cn("relative", isMobile ? "w-[30%]" : "w-[16%]"), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5919,7 +5919,7 @@ var Timeline = ({
|
|
|
5919
5919
|
className: "absolute -top-1.5 w-full pr-[18px] text-right md:pr-5",
|
|
5920
5920
|
initial: { opacity: 0, x: -6 },
|
|
5921
5921
|
animate: { opacity: 1, x: 0 },
|
|
5922
|
-
transition: { ...
|
|
5922
|
+
transition: { ...chunk4CMIWUZW_cjs.fadeTransition, delay: index * 0.05 },
|
|
5923
5923
|
children: leftContent ? leftContent(event) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5924
5924
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.time }),
|
|
5925
5925
|
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground text-xs font-medium leading-5 md:text-sm", children: event.date })
|
|
@@ -5936,7 +5936,7 @@ var Timeline = ({
|
|
|
5936
5936
|
),
|
|
5937
5937
|
initial: { scaleY: 0 },
|
|
5938
5938
|
animate: { scaleY: 1 },
|
|
5939
|
-
transition: { ...
|
|
5939
|
+
transition: { ...chunk4CMIWUZW_cjs.fadeTransition, delay: index * 0.05 }
|
|
5940
5940
|
}
|
|
5941
5941
|
) : null,
|
|
5942
5942
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5945,7 +5945,7 @@ var Timeline = ({
|
|
|
5945
5945
|
className: "bg-primary relative z-10 size-4 rounded-full",
|
|
5946
5946
|
initial: { scale: 0 },
|
|
5947
5947
|
animate: { scale: 1 },
|
|
5948
|
-
transition: { ...
|
|
5948
|
+
transition: { ...chunk4CMIWUZW_cjs.fadeTransition, delay: index * 0.05 + 0.04 }
|
|
5949
5949
|
}
|
|
5950
5950
|
)
|
|
5951
5951
|
] }),
|
|
@@ -5998,11 +5998,11 @@ var ImportFileModalContent = ({
|
|
|
5998
5998
|
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(
|
|
5999
5999
|
framerMotion.motion.div,
|
|
6000
6000
|
{
|
|
6001
|
-
variants:
|
|
6001
|
+
variants: chunk4CMIWUZW_cjs.fadeInScale,
|
|
6002
6002
|
initial: "initial",
|
|
6003
6003
|
animate: "animate",
|
|
6004
6004
|
exit: "exit",
|
|
6005
|
-
transition:
|
|
6005
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
6006
6006
|
children: [
|
|
6007
6007
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
6008
6008
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: dialogTitle }),
|
|
@@ -6014,7 +6014,7 @@ var ImportFileModalContent = ({
|
|
|
6014
6014
|
className: "flex flex-col rounded-md bg-muted/50 px-3 py-2",
|
|
6015
6015
|
initial: { opacity: 0, y: 6 },
|
|
6016
6016
|
animate: { opacity: 1, y: 0 },
|
|
6017
|
-
transition: { ...
|
|
6017
|
+
transition: { ...chunk4CMIWUZW_cjs.fadeTransition, delay: 0.05 },
|
|
6018
6018
|
children: [
|
|
6019
6019
|
/* @__PURE__ */ jsxRuntime.jsxs(framerMotion.motion.div, { className: "flex flex-row items-center", children: [
|
|
6020
6020
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -6051,7 +6051,7 @@ var ImportFileModalContent = ({
|
|
|
6051
6051
|
initial: { opacity: 0, x: -8 },
|
|
6052
6052
|
animate: { opacity: 1, x: 0 },
|
|
6053
6053
|
exit: { opacity: 0, x: 8 },
|
|
6054
|
-
transition:
|
|
6054
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
6055
6055
|
children: /* @__PURE__ */ jsxRuntime.jsxs(FileUploaderItem, { index, children: [
|
|
6056
6056
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6057
6057
|
lucideReact.Paperclip,
|
|
@@ -6101,11 +6101,11 @@ var ImportFileModalContent = ({
|
|
|
6101
6101
|
) : /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6102
6102
|
framerMotion.motion.div,
|
|
6103
6103
|
{
|
|
6104
|
-
variants:
|
|
6104
|
+
variants: chunk4CMIWUZW_cjs.fadeInScale,
|
|
6105
6105
|
initial: "initial",
|
|
6106
6106
|
animate: "animate",
|
|
6107
6107
|
exit: "exit",
|
|
6108
|
-
transition:
|
|
6108
|
+
transition: chunk4CMIWUZW_cjs.fadeTransition,
|
|
6109
6109
|
children: [
|
|
6110
6110
|
/* @__PURE__ */ jsxRuntime.jsxs(DialogHeader, { children: [
|
|
6111
6111
|
/* @__PURE__ */ jsxRuntime.jsx(DialogTitle, { className: "text-left", children: processingTitle }),
|
|
@@ -6701,7 +6701,7 @@ function useAppRedirectUrls({
|
|
|
6701
6701
|
queries: requests.map(
|
|
6702
6702
|
({ clientId, redirectUri, forwardedTo, queryKey }) => ({
|
|
6703
6703
|
queryKey,
|
|
6704
|
-
queryFn: ({ signal }) =>
|
|
6704
|
+
queryFn: ({ signal }) => chunkIRIDGVV2_cjs.initiateService.fetchRedirectUrl(
|
|
6705
6705
|
{ clientId, redirectUri, forwardedTo },
|
|
6706
6706
|
signal
|
|
6707
6707
|
),
|
|
@@ -6740,7 +6740,7 @@ function useAppRedirectUrls({
|
|
|
6740
6740
|
}
|
|
6741
6741
|
var AppSwitcher = ({ forwardedTo }) => {
|
|
6742
6742
|
const [open, setOpen] = React8.useState(false);
|
|
6743
|
-
const config =
|
|
6743
|
+
const config = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
6744
6744
|
const filteredApps = React8.useMemo(
|
|
6745
6745
|
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6746
6746
|
[config.name]
|
|
@@ -6779,7 +6779,7 @@ function ThemeSwitcher({
|
|
|
6779
6779
|
className,
|
|
6780
6780
|
showChevron = true
|
|
6781
6781
|
} = {}) {
|
|
6782
|
-
const { theme, setTheme } =
|
|
6782
|
+
const { theme, setTheme } = chunkIRIDGVV2_cjs.useTheme();
|
|
6783
6783
|
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6784
6784
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
6785
6785
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6847,7 +6847,7 @@ function ThemeSwitcher({
|
|
|
6847
6847
|
// src/services/user.service.ts
|
|
6848
6848
|
var UserService = class {
|
|
6849
6849
|
async getUserInfo() {
|
|
6850
|
-
return
|
|
6850
|
+
return chunk4CMIWUZW_cjs.iamClient.get(`${chunk4CMIWUZW_cjs.PROFILE_ENDPOINTS.ME}`);
|
|
6851
6851
|
}
|
|
6852
6852
|
};
|
|
6853
6853
|
var userService = new UserService();
|
|
@@ -6889,14 +6889,14 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6889
6889
|
);
|
|
6890
6890
|
}
|
|
6891
6891
|
function UserDropdownMenu() {
|
|
6892
|
-
const { name } =
|
|
6892
|
+
const { name } = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
6893
6893
|
const { data } = useGetUserInfo();
|
|
6894
6894
|
const userData = data?.data;
|
|
6895
|
-
const { isPending, mutateAsync } =
|
|
6895
|
+
const { isPending, mutateAsync } = chunkIRIDGVV2_cjs.useLogout();
|
|
6896
6896
|
const { resetProjectStore } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
6897
6897
|
const { setUnAuthenticated, clearTokens } = chunk6GCU5LM7_cjs.useAuthStore();
|
|
6898
6898
|
const { resetSelectedLanguages } = chunk4QN4CYSC_cjs.useLanguageViewStore();
|
|
6899
|
-
const { data: myOrgsData, isLoading: isOrgsLoading } =
|
|
6899
|
+
const { data: myOrgsData, isLoading: isOrgsLoading } = chunkIRIDGVV2_cjs.useGetMyOrganizations();
|
|
6900
6900
|
const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
|
|
6901
6901
|
const email = userData?.email || "";
|
|
6902
6902
|
const roles = Object.values(userData?.roles || {}).flat();
|
|
@@ -7026,7 +7026,7 @@ var languages = [
|
|
|
7026
7026
|
{ key: "fr", title: "French" }
|
|
7027
7027
|
];
|
|
7028
7028
|
function LanguageSelector() {
|
|
7029
|
-
const { changeLanguage, language } =
|
|
7029
|
+
const { changeLanguage, language } = chunkIRIDGVV2_cjs.useLanguageSwitcher();
|
|
7030
7030
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
7031
7031
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7032
7032
|
"button",
|
|
@@ -7164,7 +7164,7 @@ var NotificationListenerService = class {
|
|
|
7164
7164
|
if (refreshLogin && navigator.onLine === false) return;
|
|
7165
7165
|
try {
|
|
7166
7166
|
if (refreshLogin)
|
|
7167
|
-
await refreshLoginCall(
|
|
7167
|
+
await refreshLoginCall(chunkIRIDGVV2_cjs.notificationService.getNotifications(1, 1));
|
|
7168
7168
|
if (!this.wanted) return;
|
|
7169
7169
|
await this.connection.start();
|
|
7170
7170
|
this.attempt = 0;
|
|
@@ -7189,7 +7189,7 @@ var notificationListenerService = new NotificationListenerService();
|
|
|
7189
7189
|
|
|
7190
7190
|
// src/components/common/notification/use-notification-socket.ts
|
|
7191
7191
|
function useNotificationSocket() {
|
|
7192
|
-
const { data: configData } =
|
|
7192
|
+
const { data: configData } = chunkIRIDGVV2_cjs.useGetBlocksNotificationConfig(0, 100);
|
|
7193
7193
|
const queryClient = reactQuery.useQueryClient();
|
|
7194
7194
|
notificationListenerService.connect();
|
|
7195
7195
|
React8.useEffect(() => {
|
|
@@ -7204,7 +7204,7 @@ function useNotificationSocket() {
|
|
|
7204
7204
|
notificationListenerService.connection.on(
|
|
7205
7205
|
config.notifyMethod,
|
|
7206
7206
|
(message) => {
|
|
7207
|
-
|
|
7207
|
+
chunkIRIDGVV2_cjs.notificationService.getNotificationConfig(config, message);
|
|
7208
7208
|
try {
|
|
7209
7209
|
const notice = typeof message === "string" ? JSON.parse(message) : message;
|
|
7210
7210
|
const denom = JSON.parse(
|
|
@@ -7228,12 +7228,12 @@ function useNotificationFeed(open) {
|
|
|
7228
7228
|
const [notifications, setNotifications] = React8.useState([]);
|
|
7229
7229
|
const [hasMore, setHasMore] = React8.useState(true);
|
|
7230
7230
|
const listRef = React8.useRef(null);
|
|
7231
|
-
const { data, isLoading, isFetching } =
|
|
7231
|
+
const { data, isLoading, isFetching } = chunkIRIDGVV2_cjs.useGetNotifications(
|
|
7232
7232
|
pageNumber,
|
|
7233
7233
|
PAGE_SIZE
|
|
7234
7234
|
);
|
|
7235
|
-
const markAsRead =
|
|
7236
|
-
const markAllAsRead =
|
|
7235
|
+
const markAsRead = chunkIRIDGVV2_cjs.useMarkAsRead();
|
|
7236
|
+
const markAllAsRead = chunkIRIDGVV2_cjs.useMarkAllAsRead();
|
|
7237
7237
|
React8.useEffect(() => {
|
|
7238
7238
|
if (!data?.notifications) return;
|
|
7239
7239
|
setNotifications((prev) => {
|
|
@@ -7467,7 +7467,7 @@ function ConsoleHeader() {
|
|
|
7467
7467
|
window.addEventListener("scroll", handleScroll);
|
|
7468
7468
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
7469
7469
|
}, []);
|
|
7470
|
-
const { appLightLogo, appDarkLogo } =
|
|
7470
|
+
const { appLightLogo, appDarkLogo } = chunkIRIDGVV2_cjs.useLogo();
|
|
7471
7471
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7472
7472
|
"div",
|
|
7473
7473
|
{
|
|
@@ -7646,7 +7646,7 @@ var EnvironmentCard = ({
|
|
|
7646
7646
|
className
|
|
7647
7647
|
}) => {
|
|
7648
7648
|
const { setSelectedProject, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7649
|
-
const { mutateAsync } =
|
|
7649
|
+
const { mutateAsync } = chunkIRIDGVV2_cjs.useStartImpersonation();
|
|
7650
7650
|
const navigate = reactRouter.useNavigate();
|
|
7651
7651
|
const handleCardClick = async () => {
|
|
7652
7652
|
try {
|
|
@@ -7700,11 +7700,11 @@ function EnvironmentList({
|
|
|
7700
7700
|
}) {
|
|
7701
7701
|
const navigate = reactRouter.useNavigate();
|
|
7702
7702
|
const { pathname } = reactRouter.useLocation();
|
|
7703
|
-
const { data: projectGroups = [], isLoading } =
|
|
7703
|
+
const { data: projectGroups = [], isLoading } = chunkIRIDGVV2_cjs.useGetProjects({
|
|
7704
7704
|
enabled: true
|
|
7705
7705
|
});
|
|
7706
7706
|
const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7707
|
-
const { data: projectData } =
|
|
7707
|
+
const { data: projectData } = chunkIRIDGVV2_cjs.useGetProject();
|
|
7708
7708
|
const pendingProjectRef = React8.useRef(null);
|
|
7709
7709
|
const redirectRegexMap = React8.useMemo(
|
|
7710
7710
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -7838,7 +7838,7 @@ function ProtectedGuard({
|
|
|
7838
7838
|
if (!isAuthenticated) navigate(defaultPublicPath);
|
|
7839
7839
|
}, [isAuthenticated, defaultPublicPath, navigate]);
|
|
7840
7840
|
React8.useEffect(
|
|
7841
|
-
() =>
|
|
7841
|
+
() => chunk4CMIWUZW_cjs.subscribeToSignOut(
|
|
7842
7842
|
() => window.location.replace(
|
|
7843
7843
|
`${window.location.origin}${defaultPublicPath}`
|
|
7844
7844
|
)
|
|
@@ -7888,7 +7888,7 @@ function AuthResolver({ children }) {
|
|
|
7888
7888
|
if (isSignInCallbackPath(window.location.pathname)) return;
|
|
7889
7889
|
async function resolve() {
|
|
7890
7890
|
try {
|
|
7891
|
-
const res = await
|
|
7891
|
+
const res = await chunk4CMIWUZW_cjs.iamClient.get(`${chunk4CMIWUZW_cjs.AUTH_ENDPOINTS.ME}`);
|
|
7892
7892
|
setUser(res);
|
|
7893
7893
|
setAuthenticated();
|
|
7894
7894
|
} catch {
|
|
@@ -7983,8 +7983,8 @@ var useLiveOwnerProbe = ({
|
|
|
7983
7983
|
if (!cookieTenantId || !ownTenantId || cookieTenantId === ownTenantId) {
|
|
7984
7984
|
return null;
|
|
7985
7985
|
}
|
|
7986
|
-
const owner =
|
|
7987
|
-
return owner && owner.tabId !==
|
|
7986
|
+
const owner = chunk4CMIWUZW_cjs.readCurrentOwner();
|
|
7987
|
+
return owner && owner.tabId !== chunk4CMIWUZW_cjs.TAB_ID && owner.tenantId === cookieTenantId ? owner : null;
|
|
7988
7988
|
}, [cookieTenantId, ownTenantId]);
|
|
7989
7989
|
const claimKey = claimKeyOf(foreignClaim);
|
|
7990
7990
|
const [probedKey, setProbedKey] = React8.useState(null);
|
|
@@ -7996,9 +7996,9 @@ var useLiveOwnerProbe = ({
|
|
|
7996
7996
|
const claim = foreignClaimRef.current;
|
|
7997
7997
|
if (!claim || !claimKey) return;
|
|
7998
7998
|
let cancelled = false;
|
|
7999
|
-
void
|
|
7999
|
+
void chunk4CMIWUZW_cjs.isTenantHeldElsewhere(claim.tenantId).then((held) => {
|
|
8000
8000
|
if (cancelled) return;
|
|
8001
|
-
if (held &&
|
|
8001
|
+
if (held && chunk4CMIWUZW_cjs.isSameClaim(chunk4CMIWUZW_cjs.readCurrentOwner(), claim)) {
|
|
8002
8002
|
onHeldElsewhereRef.current(claim.tenantId);
|
|
8003
8003
|
}
|
|
8004
8004
|
setProbedKey(claimKey);
|
|
@@ -8012,10 +8012,10 @@ var useLiveOwnerProbe = ({
|
|
|
8012
8012
|
var ImpersonationChecker = ({
|
|
8013
8013
|
children
|
|
8014
8014
|
}) => {
|
|
8015
|
-
const { data } =
|
|
8015
|
+
const { data } = chunkIRIDGVV2_cjs.useImpersonationStatusChecker();
|
|
8016
8016
|
const { setImpersonation, isInitialized, setInitialized } = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
8017
|
-
|
|
8018
|
-
|
|
8017
|
+
chunkIRIDGVV2_cjs.useSessionTenantGuard();
|
|
8018
|
+
chunkIRIDGVV2_cjs.useStatusFirstOnTabReturn();
|
|
8019
8019
|
React8.useEffect(() => {
|
|
8020
8020
|
if (!data) return;
|
|
8021
8021
|
setImpersonation(
|
|
@@ -8074,8 +8074,8 @@ function ImpersonationTerminator({
|
|
|
8074
8074
|
detachedTenantId,
|
|
8075
8075
|
setDetached
|
|
8076
8076
|
} = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
8077
|
-
const { mutateAsync } =
|
|
8078
|
-
const recordClaimedTenant =
|
|
8077
|
+
const { mutateAsync } = chunkIRIDGVV2_cjs.useStopImpersonation();
|
|
8078
|
+
const recordClaimedTenant = chunkIRIDGVV2_cjs.useRecordClaimedTenant();
|
|
8079
8079
|
const { projects } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
8080
8080
|
const isTriggering = React8.useRef(false);
|
|
8081
8081
|
const [isTerminating, setIsTerminating] = React8.useState(false);
|
|
@@ -8087,7 +8087,7 @@ function ImpersonationTerminator({
|
|
|
8087
8087
|
});
|
|
8088
8088
|
React8.useEffect(() => {
|
|
8089
8089
|
if (!rootTenantId) return;
|
|
8090
|
-
return
|
|
8090
|
+
return chunk4CMIWUZW_cjs.subscribeToTenantClaims((claim) => {
|
|
8091
8091
|
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
8092
8092
|
if (claim.tenantId === rootTenantId) {
|
|
8093
8093
|
setDetached(null);
|
|
@@ -8103,7 +8103,7 @@ function ImpersonationTerminator({
|
|
|
8103
8103
|
const [returnFailure, setReturnFailure] = React8.useState(
|
|
8104
8104
|
null
|
|
8105
8105
|
);
|
|
8106
|
-
const signOut =
|
|
8106
|
+
const signOut = chunkIRIDGVV2_cjs.useSignOut();
|
|
8107
8107
|
React8.useEffect(() => {
|
|
8108
8108
|
if (!isImpersonated) setReturnFailure(null);
|
|
8109
8109
|
}, [isImpersonated]);
|
|
@@ -8119,7 +8119,7 @@ function ImpersonationTerminator({
|
|
|
8119
8119
|
const { status, stopError } = await mutateAsync(void 0);
|
|
8120
8120
|
if (!status.impersonated) {
|
|
8121
8121
|
terminate(rootTenantId);
|
|
8122
|
-
if (rootTenantId)
|
|
8122
|
+
if (rootTenantId) chunk4CMIWUZW_cjs.claimTenant(rootTenantId);
|
|
8123
8123
|
return;
|
|
8124
8124
|
}
|
|
8125
8125
|
console.error("Error stopping impersonation:", stopError);
|
|
@@ -8203,9 +8203,9 @@ function ImpersonationSynchronizer({
|
|
|
8203
8203
|
setImpersonationError,
|
|
8204
8204
|
setDetached
|
|
8205
8205
|
} = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
8206
|
-
const { mutateAsync } =
|
|
8207
|
-
const recordClaimedTenant =
|
|
8208
|
-
const { data: _data } =
|
|
8206
|
+
const { mutateAsync } = chunkIRIDGVV2_cjs.useStartImpersonation();
|
|
8207
|
+
const recordClaimedTenant = chunkIRIDGVV2_cjs.useRecordClaimedTenant();
|
|
8208
|
+
const { data: _data } = chunkIRIDGVV2_cjs.useGetProjects({ enabled: true });
|
|
8209
8209
|
const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
8210
8210
|
const isTriggering = React8.useRef(false);
|
|
8211
8211
|
const [isImpersonating, setIsImpersonating] = React8.useState(false);
|
|
@@ -8240,7 +8240,7 @@ function ImpersonationSynchronizer({
|
|
|
8240
8240
|
]);
|
|
8241
8241
|
const getImpersonatedProject = async () => {
|
|
8242
8242
|
try {
|
|
8243
|
-
const res =
|
|
8243
|
+
const res = chunkIRIDGVV2_cjs.projectService.getProject();
|
|
8244
8244
|
return (await res).data;
|
|
8245
8245
|
} catch (error) {
|
|
8246
8246
|
console.error("Error fetching projects:", error);
|
|
@@ -8301,10 +8301,10 @@ function ImpersonationSynchronizer({
|
|
|
8301
8301
|
const isAttached = !!routeTenantId && routeTenantId === impersonatedTenantId && !detachedHere && !impersonationError && !isProbingOwner;
|
|
8302
8302
|
React8.useEffect(() => {
|
|
8303
8303
|
if (!isAttached || !routeTenantId) return;
|
|
8304
|
-
return
|
|
8304
|
+
return chunk4CMIWUZW_cjs.holdTenant(routeTenantId);
|
|
8305
8305
|
}, [isAttached, routeTenantId]);
|
|
8306
8306
|
React8.useEffect(() => {
|
|
8307
|
-
return
|
|
8307
|
+
return chunk4CMIWUZW_cjs.subscribeToTenantClaims((claim) => {
|
|
8308
8308
|
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
8309
8309
|
const mine = routeTenantIdRef.current;
|
|
8310
8310
|
if (!mine) return;
|
|
@@ -8521,7 +8521,7 @@ var LoginHeader = ({
|
|
|
8521
8521
|
}) => {
|
|
8522
8522
|
const {
|
|
8523
8523
|
config: { appLogoUrl }
|
|
8524
|
-
} =
|
|
8524
|
+
} = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state);
|
|
8525
8525
|
const resolveLogo = (variant) => {
|
|
8526
8526
|
if (!appLogoUrl) return void 0;
|
|
8527
8527
|
if (typeof appLogoUrl === "string") return appLogoUrl;
|
|
@@ -9786,10 +9786,10 @@ var BlocksLoginPage = ({
|
|
|
9786
9786
|
] });
|
|
9787
9787
|
};
|
|
9788
9788
|
var LoginPage = () => {
|
|
9789
|
-
const config =
|
|
9790
|
-
const { start, isLoading } =
|
|
9791
|
-
const { canSignUp } =
|
|
9792
|
-
const { start: startSignUp, isLoading: isSignUpLoading } =
|
|
9789
|
+
const config = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
9790
|
+
const { start, isLoading } = chunkIRIDGVV2_cjs.useLogin();
|
|
9791
|
+
const { canSignUp } = chunkIRIDGVV2_cjs.useSignUpAffordance();
|
|
9792
|
+
const { start: startSignUp, isLoading: isSignUpLoading } = chunkIRIDGVV2_cjs.useSignUpRedirect();
|
|
9793
9793
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9794
9794
|
BlocksLoginPage,
|
|
9795
9795
|
{
|
|
@@ -9904,10 +9904,10 @@ var BentoCard = ({
|
|
|
9904
9904
|
);
|
|
9905
9905
|
var DefaultDoc = () => /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9906
9906
|
function useCreateProjectRedirect() {
|
|
9907
|
-
const { name } =
|
|
9907
|
+
const { name } = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9908
9908
|
const navigate = reactRouter.useNavigate();
|
|
9909
9909
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
9910
|
-
const { isFetching, isReady, redirect } =
|
|
9910
|
+
const { isFetching, isReady, redirect } = chunkIRIDGVV2_cjs.usePrefetchRedirect({
|
|
9911
9911
|
clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
9912
9912
|
redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
9913
9913
|
forwardedTo: "/app/create-project",
|
|
@@ -9999,10 +9999,10 @@ function useProjectOverviewRedirect({
|
|
|
9999
9999
|
tenantGroupId
|
|
10000
10000
|
}) {
|
|
10001
10001
|
const navigate = reactRouter.useNavigate();
|
|
10002
|
-
const { name } =
|
|
10002
|
+
const { name } = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
10003
10003
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
10004
10004
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
10005
|
-
const { isFetching, isReady, redirect } =
|
|
10005
|
+
const { isFetching, isReady, redirect } = chunkIRIDGVV2_cjs.usePrefetchRedirect({
|
|
10006
10006
|
clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
10007
10007
|
redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
10008
10008
|
forwardedTo: redirectedRoute,
|
|
@@ -10362,7 +10362,7 @@ function MultiSelect2({
|
|
|
10362
10362
|
onChange,
|
|
10363
10363
|
value: selectedValues
|
|
10364
10364
|
}) {
|
|
10365
|
-
const [buttonRef, popoverWidth] =
|
|
10365
|
+
const [buttonRef, popoverWidth] = chunkIRIDGVV2_cjs.usePopoverWidth();
|
|
10366
10366
|
const onSelectHandler = (value) => {
|
|
10367
10367
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
10368
10368
|
onChange(nextValues);
|
|
@@ -10643,7 +10643,7 @@ var useProjectListState = (projectGroups) => {
|
|
|
10643
10643
|
})),
|
|
10644
10644
|
[projectGroups]
|
|
10645
10645
|
);
|
|
10646
|
-
const searchedGroups =
|
|
10646
|
+
const searchedGroups = chunkIRIDGVV2_cjs.useDebouncedFuseFilter(
|
|
10647
10647
|
searchableGroups,
|
|
10648
10648
|
searchText,
|
|
10649
10649
|
SEARCH_OPTIONS
|
|
@@ -10713,7 +10713,7 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
10713
10713
|
) });
|
|
10714
10714
|
};
|
|
10715
10715
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
10716
|
-
const { data, isLoading } =
|
|
10716
|
+
const { data, isLoading } = chunkIRIDGVV2_cjs.useGetProjects({ enabled: true });
|
|
10717
10717
|
const isPending = isLoading;
|
|
10718
10718
|
const projectGroups = data || [];
|
|
10719
10719
|
const {
|
|
@@ -10840,7 +10840,7 @@ var announceNewSession = async () => {
|
|
|
10840
10840
|
let timer;
|
|
10841
10841
|
try {
|
|
10842
10842
|
const status = await Promise.race([
|
|
10843
|
-
|
|
10843
|
+
chunkIRIDGVV2_cjs.impersonationService.impersonationStatus({ skipSessionCheck: true }),
|
|
10844
10844
|
new Promise((_, reject) => {
|
|
10845
10845
|
timer = setTimeout(
|
|
10846
10846
|
() => reject(new Error("Impersonation status timed out")),
|
|
@@ -10849,7 +10849,7 @@ var announceNewSession = async () => {
|
|
|
10849
10849
|
})
|
|
10850
10850
|
]);
|
|
10851
10851
|
const tenantId = status.impersonated ? status.impersonatedTenantId : rootTenantId;
|
|
10852
|
-
if (tenantId)
|
|
10852
|
+
if (tenantId) chunk4CMIWUZW_cjs.claimTenant(tenantId);
|
|
10853
10853
|
} catch {
|
|
10854
10854
|
} finally {
|
|
10855
10855
|
clearTimeout(timer);
|
|
@@ -10904,7 +10904,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
|
10904
10904
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader, { className: "h-12 w-12 animate-spin text-gray-500" }) });
|
|
10905
10905
|
};
|
|
10906
10906
|
function ProfilePage() {
|
|
10907
|
-
const { isLoading, error } =
|
|
10907
|
+
const { isLoading, error } = chunkIRIDGVV2_cjs.useInitiateRedirect({
|
|
10908
10908
|
clientId: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
|
|
10909
10909
|
redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
|
|
10910
10910
|
forwardedTo: "/app/profile"
|
|
@@ -11182,8 +11182,8 @@ var ConfirmationModal = ({
|
|
|
11182
11182
|
] })
|
|
11183
11183
|
] });
|
|
11184
11184
|
var DashboardOverview = () => {
|
|
11185
|
-
const { name } =
|
|
11186
|
-
const { data, isFetching } =
|
|
11185
|
+
const { name } = chunkIRIDGVV2_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
11186
|
+
const { data, isFetching } = chunkIRIDGVV2_cjs.useGetProject();
|
|
11187
11187
|
const {
|
|
11188
11188
|
endpoints,
|
|
11189
11189
|
isLoading: isLoadingEndpoints,
|
|
@@ -11277,11 +11277,11 @@ function ProjectList2({
|
|
|
11277
11277
|
}) {
|
|
11278
11278
|
const navigate = reactRouter.useNavigate();
|
|
11279
11279
|
const { pathname } = reactRouter.useLocation();
|
|
11280
|
-
const { data: projectGroups = [], isLoading } =
|
|
11280
|
+
const { data: projectGroups = [], isLoading } = chunkIRIDGVV2_cjs.useGetProjects({
|
|
11281
11281
|
enabled: true
|
|
11282
11282
|
});
|
|
11283
11283
|
const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
11284
|
-
const { data: projectData } =
|
|
11284
|
+
const { data: projectData } = chunkIRIDGVV2_cjs.useGetProject();
|
|
11285
11285
|
const pendingProjectRef = React8.useRef(null);
|
|
11286
11286
|
const redirectRegexMap = React8.useMemo(
|
|
11287
11287
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -11430,7 +11430,7 @@ var SetCustomDomainDialog = ({
|
|
|
11430
11430
|
projectKey,
|
|
11431
11431
|
projectEnv
|
|
11432
11432
|
}) => {
|
|
11433
|
-
const { mutateAsync, isPending } =
|
|
11433
|
+
const { mutateAsync, isPending } = chunkIRIDGVV2_cjs.useUpdateRepositories();
|
|
11434
11434
|
const verifiedDomains = React8.useMemo(
|
|
11435
11435
|
() => Array.from(
|
|
11436
11436
|
new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
|
|
@@ -11614,7 +11614,7 @@ var ProjectRepoList = ({
|
|
|
11614
11614
|
data: envRepositoriesResponse,
|
|
11615
11615
|
isLoading: isLoadingEnvRepos,
|
|
11616
11616
|
isFetching: isFetchingEnvRepos
|
|
11617
|
-
} =
|
|
11617
|
+
} = chunkIRIDGVV2_cjs.useGetEnvRepositories(project?.tenantId || "");
|
|
11618
11618
|
if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
|
|
11619
11619
|
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: [
|
|
11620
11620
|
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
|
|
@@ -11714,7 +11714,7 @@ var EditProjectForm = ({
|
|
|
11714
11714
|
onAfterSubmit
|
|
11715
11715
|
}) => {
|
|
11716
11716
|
const queryClient = reactQuery.useQueryClient();
|
|
11717
|
-
const { mutateAsync, isPending } =
|
|
11717
|
+
const { mutateAsync, isPending } = chunkIRIDGVV2_cjs.useUpdateTenantGroup();
|
|
11718
11718
|
const form = reactHookForm.useForm({
|
|
11719
11719
|
resolver: zod$1.zodResolver(editProjectFormSchema),
|
|
11720
11720
|
defaultValues: {
|
|
@@ -11851,7 +11851,7 @@ function SidebarMobileView({
|
|
|
11851
11851
|
navigationMenus
|
|
11852
11852
|
}) {
|
|
11853
11853
|
const [open, setOpen] = React8.useState(false);
|
|
11854
|
-
const { appLightLogo, appDarkLogo } =
|
|
11854
|
+
const { appLightLogo, appDarkLogo } = chunkIRIDGVV2_cjs.useLogo();
|
|
11855
11855
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
11856
11856
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
11857
11857
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
|
|
@@ -11901,8 +11901,8 @@ function SidebarMenuDesktop({
|
|
|
11901
11901
|
navigationMenus
|
|
11902
11902
|
}) {
|
|
11903
11903
|
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkIJMKS4XG_cjs.SidebarContext);
|
|
11904
|
-
const { appLightLogo, appDarkLogo } =
|
|
11905
|
-
const icon =
|
|
11904
|
+
const { appLightLogo, appDarkLogo } = chunkIRIDGVV2_cjs.useLogo();
|
|
11905
|
+
const icon = chunkIRIDGVV2_cjs.useIcon();
|
|
11906
11906
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
11907
11907
|
const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
|
|
11908
11908
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -12031,7 +12031,7 @@ var ErrorBoundary = class extends React8.Component {
|
|
|
12031
12031
|
var ArchiveProject = () => {
|
|
12032
12032
|
const navigate = reactRouter.useNavigate();
|
|
12033
12033
|
const projectKey = chunk6GCU5LM7_cjs.useProjectStore().selectedProject?.tenantId || "";
|
|
12034
|
-
const { mutateAsync, isPending } =
|
|
12034
|
+
const { mutateAsync, isPending } = chunkIRIDGVV2_cjs.useDisableProject({ projectKey });
|
|
12035
12035
|
const onClickHandler = async () => {
|
|
12036
12036
|
try {
|
|
12037
12037
|
const res = await mutateAsync();
|
|
@@ -13001,7 +13001,7 @@ var ClearButton = ({ onClear }) => {
|
|
|
13001
13001
|
};
|
|
13002
13002
|
function Radio({ label, options, onChange, value }) {
|
|
13003
13003
|
const [search, setSearch] = React8.useState("");
|
|
13004
|
-
const [buttonRef, popoverWidth] =
|
|
13004
|
+
const [buttonRef, popoverWidth] = chunkIRIDGVV2_cjs.usePopoverWidth();
|
|
13005
13005
|
const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
|
|
13006
13006
|
const selected = React8.useMemo(
|
|
13007
13007
|
() => options.find((item) => item.value === value) || null,
|
|
@@ -14010,5 +14010,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
|
14010
14010
|
exports.useRightSidePanel = useRightSidePanel;
|
|
14011
14011
|
exports.useSortQueryParams = useSortQueryParams;
|
|
14012
14012
|
exports.useWizardStepper = useWizardStepper;
|
|
14013
|
-
//# sourceMappingURL=chunk-
|
|
14014
|
-
//# sourceMappingURL=chunk-
|
|
14013
|
+
//# sourceMappingURL=chunk-CGVT7IFM.cjs.map
|
|
14014
|
+
//# sourceMappingURL=chunk-CGVT7IFM.cjs.map
|