@seliseblocks/genesis-os 4.3.4 → 4.3.6
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-WBSWAHS6.js → chunk-46ZGVJEX.js} +98 -17
- package/dist/chunk-46ZGVJEX.js.map +1 -0
- package/dist/{chunk-FKFBYT22.cjs → chunk-4QKE3WAW.cjs} +103 -18
- package/dist/chunk-4QKE3WAW.cjs.map +1 -0
- package/dist/{chunk-ENK42YC4.js → chunk-4UHGGHI6.js} +17 -3
- package/dist/chunk-4UHGGHI6.js.map +1 -0
- package/dist/{chunk-VAKGHXK6.cjs → chunk-6GCU5LM7.cjs} +17 -3
- package/dist/chunk-6GCU5LM7.cjs.map +1 -0
- package/dist/{chunk-NF54AHIF.js → chunk-AHCHUUXM.js} +2 -2
- package/dist/{chunk-NF54AHIF.js.map → chunk-AHCHUUXM.js.map} +1 -1
- package/dist/{chunk-Q7Y32IBM.cjs → chunk-BPJM3L7O.cjs} +2 -2
- package/dist/{chunk-Q7Y32IBM.cjs.map → chunk-BPJM3L7O.cjs.map} +1 -1
- package/dist/{chunk-XALNVJQU.cjs → chunk-JDWJ2HXQ.cjs} +236 -21
- package/dist/{chunk-H47HQ5UX.js.map → chunk-JDWJ2HXQ.cjs.map} +1 -1
- package/dist/{chunk-TE3SKUL4.js → chunk-JSXAKNHQ.js} +3 -3
- package/dist/{chunk-TE3SKUL4.js.map → chunk-JSXAKNHQ.js.map} +1 -1
- package/dist/{chunk-WIY77276.js → chunk-OAWBQY5W.js} +5 -5
- package/dist/{chunk-WIY77276.js.map → chunk-OAWBQY5W.js.map} +1 -1
- package/dist/{chunk-ZVGCCTNK.cjs → chunk-OJG2XE7Z.cjs} +12 -12
- package/dist/{chunk-ZVGCCTNK.cjs.map → chunk-OJG2XE7Z.cjs.map} +1 -1
- package/dist/{chunk-6WBFAHAO.js → chunk-PKRBEIHK.js} +21 -5
- package/dist/chunk-PKRBEIHK.js.map +1 -0
- package/dist/{chunk-VTOD5ZQU.cjs → chunk-QTSTAWK3.cjs} +3 -3
- package/dist/{chunk-VTOD5ZQU.cjs.map → chunk-QTSTAWK3.cjs.map} +1 -1
- package/dist/{chunk-CME46DIB.cjs → chunk-SHCA37CD.cjs} +647 -270
- package/dist/chunk-SHCA37CD.cjs.map +1 -0
- package/dist/{chunk-H47HQ5UX.js → chunk-SKKVJAXT.js} +209 -6
- package/dist/chunk-SKKVJAXT.js.map +1 -0
- package/dist/{chunk-3VNGGYRG.cjs → chunk-VQWYNAO5.cjs} +23 -7
- package/dist/chunk-VQWYNAO5.cjs.map +1 -0
- package/dist/{chunk-EF42GERU.js → chunk-Y36F6N2O.js} +498 -128
- package/dist/chunk-Y36F6N2O.js.map +1 -0
- package/dist/components/index.cjs +359 -361
- package/dist/components/index.js +9 -11
- package/dist/guards/index.cjs +315 -11
- package/dist/guards/index.d.cts +3 -1
- package/dist/guards/index.d.ts +3 -1
- package/dist/guards/index.js +309 -5
- package/dist/hooks/index.cjs +92 -93
- package/dist/hooks/index.js +6 -7
- package/dist/index.cjs +625 -611
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -11
- package/dist/layouts/index.cjs +16 -18
- package/dist/layouts/index.js +9 -11
- package/dist/lib/index.cjs +33 -17
- package/dist/lib/index.d.cts +57 -2
- package/dist/lib/index.d.ts +57 -2
- package/dist/lib/index.js +2 -2
- package/dist/pages/index.cjs +14 -16
- package/dist/pages/index.js +9 -11
- package/dist/providers/index.cjs +8 -8
- package/dist/providers/index.js +4 -4
- package/dist/store/index.cjs +10 -10
- package/dist/store/index.d.cts +20 -2
- package/dist/store/index.d.ts +20 -2
- package/dist/store/index.js +2 -2
- package/dist/utils/index.cjs +72 -72
- package/dist/utils/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-25L7I5C7.js +0 -265
- package/dist/chunk-25L7I5C7.js.map +0 -1
- package/dist/chunk-3VNGGYRG.cjs.map +0 -1
- package/dist/chunk-6WBFAHAO.js.map +0 -1
- package/dist/chunk-CME46DIB.cjs.map +0 -1
- package/dist/chunk-EF42GERU.js.map +0 -1
- package/dist/chunk-ENK42YC4.js.map +0 -1
- package/dist/chunk-FKFBYT22.cjs.map +0 -1
- package/dist/chunk-HS6F65WY.cjs +0 -273
- package/dist/chunk-HS6F65WY.cjs.map +0 -1
- package/dist/chunk-IICIA5RV.js +0 -212
- package/dist/chunk-IICIA5RV.js.map +0 -1
- package/dist/chunk-UVMFL4UV.cjs +0 -225
- package/dist/chunk-UVMFL4UV.cjs.map +0 -1
- package/dist/chunk-VAKGHXK6.cjs.map +0 -1
- package/dist/chunk-WBSWAHS6.js.map +0 -1
- package/dist/chunk-XALNVJQU.cjs.map +0 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.js';
|
|
2
|
-
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, usePrefetchRedirect } from './chunk-
|
|
3
|
-
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, iamClient, PROFILE_ENDPOINTS } from './chunk-WBSWAHS6.js';
|
|
9
|
-
import { getRuntimeEnv } from './chunk-JUVLHPQI.js';
|
|
2
|
+
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useStopImpersonation, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-SKKVJAXT.js';
|
|
3
|
+
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-JSXAKNHQ.js';
|
|
4
|
+
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, claimTenant, readCurrentOwner, subscribeToTenantClaims, iamClient, AUTH_ENDPOINTS, PROFILE_ENDPOINTS } from './chunk-46ZGVJEX.js';
|
|
5
|
+
import { getRuntimeEnv, HttpError } from './chunk-JUVLHPQI.js';
|
|
6
|
+
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-OAWBQY5W.js';
|
|
7
|
+
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-AHCHUUXM.js';
|
|
10
8
|
import { cn } from './chunk-3MLPBMH2.js';
|
|
11
9
|
import { getQueryClient } from './chunk-BRHE44FE.js';
|
|
12
|
-
import { useLayoutSettingsStore, useLanguageViewStore, useUserStore } from './chunk-
|
|
13
|
-
import { CookieStorage, useProjectStore, useAuthStore } from './chunk-
|
|
10
|
+
import { useLayoutSettingsStore, useLanguageViewStore, useImpersonateStore, useUserStore } from './chunk-PKRBEIHK.js';
|
|
11
|
+
import { CookieStorage, useProjectStore, useAuthStore } from './chunk-4UHGGHI6.js';
|
|
14
12
|
import { __commonJS, __toESM } from './chunk-PL4HS6R6.js';
|
|
15
13
|
import * as React8 from 'react';
|
|
16
14
|
import React8__default, { createContext, forwardRef, useState, useCallback, useEffect, useRef, useContext, useMemo, Suspense, Fragment as Fragment$1, Component, createElement as createElement$1, isValidElement } from 'react';
|
|
@@ -19,7 +17,7 @@ import { motion, AnimatePresence } from 'framer-motion';
|
|
|
19
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
20
18
|
import { Slot } from '@radix-ui/react-slot';
|
|
21
19
|
import { cva } from 'class-variance-authority';
|
|
22
|
-
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell,
|
|
20
|
+
import { X, PanelLeft, MessageSquare, Dot, Calendar as Calendar$1, ChevronDown, ChevronRight, Check, Circle, Search, Loader2, ArrowLeft, ArrowRight, EyeOff, Eye, Trash2, ChevronUp, ChevronsLeft, ChevronLeft, ChevronsRight, MoreHorizontal, Copy, GripVertical, TriangleAlert, Paperclip, ArrowDownToLine, Moon, Sun, Monitor, UserRound, Building2, LogOut, MenuIcon, HourglassIcon, ChevronRightIcon, Globe, Loader, FolderOpen, Edit, Menu, AlertCircle, Archive, LoaderCircle, CircleHelp, CalendarIcon, ArrowDown, ArrowUp, Filter, EllipsisVertical, RotateCcw, CloudUpload, Grip, Bell, BookOpenText, SquareTerminal, Sparkles, Layers, Plus, UsersRound, LayoutGrid, List, ArrowUpRight, Pencil, Settings2, Terminal } from 'lucide-react';
|
|
23
21
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
24
22
|
import * as SheetPrimitive from '@radix-ui/react-dialog';
|
|
25
23
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
@@ -4713,8 +4711,8 @@ var hasDraggableData = (entry) => {
|
|
|
4713
4711
|
if (!entry) {
|
|
4714
4712
|
return false;
|
|
4715
4713
|
}
|
|
4716
|
-
const
|
|
4717
|
-
if (
|
|
4714
|
+
const data = entry.data.current;
|
|
4715
|
+
if (data?.type === "Column" || data?.type === "Task") {
|
|
4718
4716
|
return true;
|
|
4719
4717
|
}
|
|
4720
4718
|
return false;
|
|
@@ -4740,9 +4738,9 @@ var kanbanKeyboardCoordinateGetter = (event, { context: { active, droppableRects
|
|
|
4740
4738
|
if (!rect) {
|
|
4741
4739
|
return;
|
|
4742
4740
|
}
|
|
4743
|
-
const
|
|
4744
|
-
if (
|
|
4745
|
-
const { type, children } =
|
|
4741
|
+
const data = entry.data.current;
|
|
4742
|
+
if (data) {
|
|
4743
|
+
const { type, children } = data;
|
|
4746
4744
|
if (type === "Column" && children?.length > 0) {
|
|
4747
4745
|
if (active.data.current?.type !== "Column") {
|
|
4748
4746
|
return;
|
|
@@ -4927,13 +4925,13 @@ var KanbanBoard = () => {
|
|
|
4927
4925
|
};
|
|
4928
4926
|
const onDragStart = (event) => {
|
|
4929
4927
|
if (!hasDraggableData(event.active)) return;
|
|
4930
|
-
const
|
|
4931
|
-
if (
|
|
4932
|
-
setActiveColumn(
|
|
4928
|
+
const data = event.active.data.current;
|
|
4929
|
+
if (data?.type === "Column") {
|
|
4930
|
+
setActiveColumn(data.column);
|
|
4933
4931
|
return;
|
|
4934
4932
|
}
|
|
4935
|
-
if (
|
|
4936
|
-
setActiveTask(
|
|
4933
|
+
if (data?.type === "Task") {
|
|
4934
|
+
setActiveTask(data.task);
|
|
4937
4935
|
}
|
|
4938
4936
|
};
|
|
4939
4937
|
const onDragEnd = (event) => {
|
|
@@ -5093,7 +5091,7 @@ var InfiniteScroller = ({
|
|
|
5093
5091
|
emptyContent,
|
|
5094
5092
|
className
|
|
5095
5093
|
}) => {
|
|
5096
|
-
const [
|
|
5094
|
+
const [data, setData] = useState(initialData);
|
|
5097
5095
|
const [isLoading, setIsLoading] = useState(false);
|
|
5098
5096
|
const [hasMore, setHasMore] = useState(hasTopMore);
|
|
5099
5097
|
const scrollContainerRef = useRef(null);
|
|
@@ -5102,7 +5100,7 @@ var InfiniteScroller = ({
|
|
|
5102
5100
|
if (isLoading || !hasMore) return;
|
|
5103
5101
|
setIsLoading(true);
|
|
5104
5102
|
try {
|
|
5105
|
-
const firstItem =
|
|
5103
|
+
const firstItem = data.length ? data[0] : null;
|
|
5106
5104
|
const olderData = await topFn(firstItem);
|
|
5107
5105
|
if (olderData.length > 0) {
|
|
5108
5106
|
const scrollContainer = scrollContainerRef.current;
|
|
@@ -5125,10 +5123,10 @@ var InfiniteScroller = ({
|
|
|
5125
5123
|
} finally {
|
|
5126
5124
|
setIsLoading(false);
|
|
5127
5125
|
}
|
|
5128
|
-
}, [
|
|
5126
|
+
}, [data, hasMore, isLoading, topFn]);
|
|
5129
5127
|
const handleFetchNewerData = useCallback(async () => {
|
|
5130
5128
|
try {
|
|
5131
|
-
const lastItem =
|
|
5129
|
+
const lastItem = data.length ? data[data.length - 1] : null;
|
|
5132
5130
|
const newerData = await pollingFn(lastItem);
|
|
5133
5131
|
if (newerData.length > 0) {
|
|
5134
5132
|
setNewDataAvailable(true);
|
|
@@ -5137,7 +5135,7 @@ var InfiniteScroller = ({
|
|
|
5137
5135
|
} catch (error) {
|
|
5138
5136
|
console.error("Error fetching newer data:", error);
|
|
5139
5137
|
}
|
|
5140
|
-
}, [
|
|
5138
|
+
}, [data, pollingFn]);
|
|
5141
5139
|
useEffect(() => {
|
|
5142
5140
|
const scrollContainer = scrollContainerRef.current;
|
|
5143
5141
|
const handleScroll = () => {
|
|
@@ -5172,7 +5170,7 @@ var InfiniteScroller = ({
|
|
|
5172
5170
|
}
|
|
5173
5171
|
}, []);
|
|
5174
5172
|
return /* @__PURE__ */ jsxs("div", { className: className ?? "relative flex h-full flex-col", children: [
|
|
5175
|
-
/* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children:
|
|
5173
|
+
/* @__PURE__ */ jsx("div", { ref: scrollContainerRef, className: "h-full overflow-auto", children: data.length ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5176
5174
|
/* @__PURE__ */ jsx(AnimatePresence, { children: isLoading ? /* @__PURE__ */ jsx(
|
|
5177
5175
|
motion.div,
|
|
5178
5176
|
{
|
|
@@ -5184,7 +5182,7 @@ var InfiniteScroller = ({
|
|
|
5184
5182
|
},
|
|
5185
5183
|
"loading"
|
|
5186
5184
|
) : null }),
|
|
5187
|
-
|
|
5185
|
+
data.map((item, index) => {
|
|
5188
5186
|
const key = getItemKey?.(item, index) ?? index;
|
|
5189
5187
|
return /* @__PURE__ */ jsx(
|
|
5190
5188
|
motion.div,
|
|
@@ -6698,14 +6696,14 @@ var OPTIONS = {
|
|
|
6698
6696
|
dark: { Icon: Moon, label: "Dark" }
|
|
6699
6697
|
};
|
|
6700
6698
|
var OPTION_ORDER = ["system", "light", "dark"];
|
|
6701
|
-
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-
|
|
6699
|
+
var TRIGGER_BASE_CLASSES = "relative z-50 inline-flex h-9 items-center justify-center gap-1 px-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2";
|
|
6702
6700
|
var TRIGGER_DEFAULT_TYPOGRAPHY_CLASSES = "text-sm font-medium text-muted-foreground hover:text-foreground";
|
|
6703
6701
|
function ThemeSwitcher({
|
|
6704
6702
|
className,
|
|
6705
6703
|
showChevron = true
|
|
6706
6704
|
} = {}) {
|
|
6707
6705
|
const { theme, setTheme } = useTheme();
|
|
6708
|
-
const { Icon: ThemeIcon
|
|
6706
|
+
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6709
6707
|
return /* @__PURE__ */ jsxs(DropdownMenu, { children: [
|
|
6710
6708
|
/* @__PURE__ */ jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
|
|
6711
6709
|
"button",
|
|
@@ -6718,7 +6716,6 @@ function ThemeSwitcher({
|
|
|
6718
6716
|
),
|
|
6719
6717
|
children: [
|
|
6720
6718
|
/* @__PURE__ */ jsx(ThemeIcon, { className: "h-4 w-4", "aria-hidden": true }),
|
|
6721
|
-
/* @__PURE__ */ jsx("span", { children: themeLabel }),
|
|
6722
6719
|
showChevron && /* @__PURE__ */ jsx(
|
|
6723
6720
|
ChevronDown,
|
|
6724
6721
|
{
|
|
@@ -6816,8 +6813,8 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6816
6813
|
}
|
|
6817
6814
|
function UserDropdownMenu() {
|
|
6818
6815
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
6819
|
-
const { data
|
|
6820
|
-
const userData =
|
|
6816
|
+
const { data } = useGetUserInfo();
|
|
6817
|
+
const userData = data?.data;
|
|
6821
6818
|
const { isPending, mutateAsync } = useLogout();
|
|
6822
6819
|
const { resetProjectStore } = useProjectStore();
|
|
6823
6820
|
const { setUnAuthenticated, clearTokens } = useAuthStore();
|
|
@@ -7081,27 +7078,27 @@ function useNotificationFeed(open) {
|
|
|
7081
7078
|
const [notifications, setNotifications] = useState([]);
|
|
7082
7079
|
const [hasMore, setHasMore] = useState(true);
|
|
7083
7080
|
const listRef = useRef(null);
|
|
7084
|
-
const { data
|
|
7081
|
+
const { data, isLoading, isFetching } = useGetNotifications(
|
|
7085
7082
|
pageNumber,
|
|
7086
7083
|
PAGE_SIZE
|
|
7087
7084
|
);
|
|
7088
7085
|
const markAsRead = useMarkAsRead();
|
|
7089
7086
|
const markAllAsRead = useMarkAllAsRead();
|
|
7090
7087
|
useEffect(() => {
|
|
7091
|
-
if (!
|
|
7088
|
+
if (!data?.notifications) return;
|
|
7092
7089
|
setNotifications((prev) => {
|
|
7093
7090
|
const existingIds = new Set(prev.map((n) => n.id));
|
|
7094
7091
|
const merged = [
|
|
7095
7092
|
...prev,
|
|
7096
|
-
...
|
|
7093
|
+
...data.notifications.filter((n) => !existingIds.has(n.id))
|
|
7097
7094
|
];
|
|
7098
7095
|
merged.sort(
|
|
7099
7096
|
(a, b) => new Date(b.createdTime || 0).getTime() - new Date(a.createdTime || 0).getTime()
|
|
7100
7097
|
);
|
|
7101
7098
|
return merged;
|
|
7102
7099
|
});
|
|
7103
|
-
setHasMore(pageNumber * PAGE_SIZE < (
|
|
7104
|
-
}, [
|
|
7100
|
+
setHasMore(pageNumber * PAGE_SIZE < (data.totalNotificationsCount ?? 0));
|
|
7101
|
+
}, [data, pageNumber]);
|
|
7105
7102
|
useEffect(() => {
|
|
7106
7103
|
if (!open) return;
|
|
7107
7104
|
setPageNumber(1);
|
|
@@ -7143,7 +7140,7 @@ function useNotificationFeed(open) {
|
|
|
7143
7140
|
isLoading,
|
|
7144
7141
|
isFetching,
|
|
7145
7142
|
listRef,
|
|
7146
|
-
unreadCount:
|
|
7143
|
+
unreadCount: data?.unReadNotificationsCount ?? 0,
|
|
7147
7144
|
handleScroll,
|
|
7148
7145
|
handleMarkAsRead,
|
|
7149
7146
|
handleMarkAllAsRead
|
|
@@ -7681,6 +7678,352 @@ function SelectedProject() {
|
|
|
7681
7678
|
/* @__PURE__ */ jsx("span", { className: "truncate text-sm font-medium text-foreground", children: projectName })
|
|
7682
7679
|
] });
|
|
7683
7680
|
}
|
|
7681
|
+
function ProtectedGuard({
|
|
7682
|
+
children,
|
|
7683
|
+
defaultPublicPath = "/login"
|
|
7684
|
+
}) {
|
|
7685
|
+
const { isAuthenticated } = useAuthStore();
|
|
7686
|
+
const navigate = useNavigate();
|
|
7687
|
+
useEffect(() => {
|
|
7688
|
+
if (!isAuthenticated) navigate(defaultPublicPath);
|
|
7689
|
+
}, [isAuthenticated, defaultPublicPath, navigate]);
|
|
7690
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7691
|
+
}
|
|
7692
|
+
var useAppState = () => {
|
|
7693
|
+
const [isMounted, setIsMounted] = useState(false);
|
|
7694
|
+
useEffect(() => {
|
|
7695
|
+
setIsMounted(true);
|
|
7696
|
+
}, []);
|
|
7697
|
+
return { isMounted };
|
|
7698
|
+
};
|
|
7699
|
+
function PublicGuard({
|
|
7700
|
+
children,
|
|
7701
|
+
defaultProtectedPath = "/app/console"
|
|
7702
|
+
}) {
|
|
7703
|
+
const { isAuthenticated } = useAuthStore();
|
|
7704
|
+
const { isMounted } = useAppState();
|
|
7705
|
+
const navigate = useNavigate();
|
|
7706
|
+
useEffect(() => {
|
|
7707
|
+
if (!isMounted) return;
|
|
7708
|
+
if (isAuthenticated) navigate(defaultProtectedPath, { replace: true });
|
|
7709
|
+
}, [isAuthenticated, isMounted, navigate, defaultProtectedPath]);
|
|
7710
|
+
if (!isMounted) return null;
|
|
7711
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7712
|
+
}
|
|
7713
|
+
function AuthResolver({ children }) {
|
|
7714
|
+
const { setUser, setAuthenticated, setUnAuthenticated } = useAuthStore();
|
|
7715
|
+
const hasResolved = useRef(false);
|
|
7716
|
+
useEffect(() => {
|
|
7717
|
+
if (hasResolved.current) return;
|
|
7718
|
+
hasResolved.current = true;
|
|
7719
|
+
async function resolve() {
|
|
7720
|
+
try {
|
|
7721
|
+
const res = await iamClient.get(`${AUTH_ENDPOINTS.ME}`);
|
|
7722
|
+
setUser(res);
|
|
7723
|
+
setAuthenticated();
|
|
7724
|
+
} catch {
|
|
7725
|
+
setUnAuthenticated();
|
|
7726
|
+
}
|
|
7727
|
+
}
|
|
7728
|
+
resolve();
|
|
7729
|
+
}, [setAuthenticated, setUnAuthenticated, setUser]);
|
|
7730
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7731
|
+
}
|
|
7732
|
+
var BlocksIcon = ({ size }) => /* @__PURE__ */ jsxs(
|
|
7733
|
+
"svg",
|
|
7734
|
+
{
|
|
7735
|
+
width: size,
|
|
7736
|
+
height: size,
|
|
7737
|
+
viewBox: "0 0 246 360",
|
|
7738
|
+
fill: "none",
|
|
7739
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7740
|
+
children: [
|
|
7741
|
+
/* @__PURE__ */ jsx(
|
|
7742
|
+
"path",
|
|
7743
|
+
{
|
|
7744
|
+
d: "M245.455 68.1627V129.877L168.982 156.67V93.9638L245.455 68.1627Z",
|
|
7745
|
+
fill: "#2D86C7"
|
|
7746
|
+
}
|
|
7747
|
+
),
|
|
7748
|
+
/* @__PURE__ */ jsx(
|
|
7749
|
+
"path",
|
|
7750
|
+
{
|
|
7751
|
+
d: "M240.389 62.3805L165.49 87.6573L5.30933 24.2563L85.3314 0L240.389 62.3805Z",
|
|
7752
|
+
fill: "#2D86C7"
|
|
7753
|
+
}
|
|
7754
|
+
),
|
|
7755
|
+
/* @__PURE__ */ jsx(
|
|
7756
|
+
"path",
|
|
7757
|
+
{
|
|
7758
|
+
d: "M161.797 93.8295V156.43L81.1141 122.607V188.07L0 152.738V29.6846L161.797 93.8295Z",
|
|
7759
|
+
fill: "#2D86C7"
|
|
7760
|
+
}
|
|
7761
|
+
),
|
|
7762
|
+
/* @__PURE__ */ jsx(
|
|
7763
|
+
"path",
|
|
7764
|
+
{
|
|
7765
|
+
d: "M76.4728 266.036L0 291.837V230.123L76.4728 203.329V266.036Z",
|
|
7766
|
+
fill: "#2D86C7"
|
|
7767
|
+
}
|
|
7768
|
+
),
|
|
7769
|
+
/* @__PURE__ */ jsx(
|
|
7770
|
+
"path",
|
|
7771
|
+
{
|
|
7772
|
+
d: "M160.123 360L5.07178 297.619L79.964 272.343L240.145 335.744L160.123 360Z",
|
|
7773
|
+
fill: "#2D86C7"
|
|
7774
|
+
}
|
|
7775
|
+
),
|
|
7776
|
+
/* @__PURE__ */ jsx(
|
|
7777
|
+
"path",
|
|
7778
|
+
{
|
|
7779
|
+
d: "M245.454 330.315L83.657 266.17V203.57L164.34 237.393V171.93L245.454 207.262V330.315Z",
|
|
7780
|
+
fill: "#2D86C7"
|
|
7781
|
+
}
|
|
7782
|
+
)
|
|
7783
|
+
]
|
|
7784
|
+
}
|
|
7785
|
+
);
|
|
7786
|
+
var AppLoadingSpinner = ({ size = 64 }) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7787
|
+
/* @__PURE__ */ jsx("style", { children: `
|
|
7788
|
+
@keyframes breathe {
|
|
7789
|
+
0%, 100% { transform: scaleY(1); }
|
|
7790
|
+
50% { transform: scaleY(0.85); }
|
|
7791
|
+
|
|
7792
|
+
}
|
|
7793
|
+
.animate-breathe {
|
|
7794
|
+
animation: breathe 2s ease-in-out infinite;
|
|
7795
|
+
transform-origin: center;
|
|
7796
|
+
}
|
|
7797
|
+
` }),
|
|
7798
|
+
/* @__PURE__ */ jsx("div", { className: "bg-background fixed inset-0 z-50 flex items-center justify-center", children: /* @__PURE__ */ jsx("div", { className: "animate-breathe", children: /* @__PURE__ */ jsx(BlocksIcon, { size }) }) })
|
|
7799
|
+
] });
|
|
7800
|
+
var ImpersonationChecker = ({
|
|
7801
|
+
children
|
|
7802
|
+
}) => {
|
|
7803
|
+
const { data, isLoading, isSuccess } = useImpersonationStatusChecker();
|
|
7804
|
+
const { setImpersonation, isInitialized, setInitialized } = useImpersonateStore();
|
|
7805
|
+
useEffect(() => {
|
|
7806
|
+
if (!data) return;
|
|
7807
|
+
setImpersonation(
|
|
7808
|
+
data.impersonated,
|
|
7809
|
+
data.originalTenantId,
|
|
7810
|
+
data.impersonated ? data.impersonatedTenantId : null
|
|
7811
|
+
);
|
|
7812
|
+
setInitialized(true);
|
|
7813
|
+
}, [data, setImpersonation, setInitialized]);
|
|
7814
|
+
if (isLoading || !isSuccess || !isInitialized) return null;
|
|
7815
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7816
|
+
};
|
|
7817
|
+
function ImpersonationTerminator({
|
|
7818
|
+
children
|
|
7819
|
+
}) {
|
|
7820
|
+
const { terminate, isImpersonated } = useImpersonateStore();
|
|
7821
|
+
const { mutateAsync } = useStopImpersonation();
|
|
7822
|
+
const isTriggering = useRef(false);
|
|
7823
|
+
const [isTerminating, setIsTerminating] = useState(false);
|
|
7824
|
+
useEffect(() => {
|
|
7825
|
+
if (isTriggering.current || !isImpersonated) return;
|
|
7826
|
+
isTriggering.current = true;
|
|
7827
|
+
setIsTerminating(true);
|
|
7828
|
+
const blocksKey = window.process?.env.BLOCKS_X_BLOCKS_KEY || "";
|
|
7829
|
+
const stopImpersonation = async () => {
|
|
7830
|
+
try {
|
|
7831
|
+
await mutateAsync(void 0);
|
|
7832
|
+
} catch (error) {
|
|
7833
|
+
if (!(error instanceof HttpError) || error.status !== 401) {
|
|
7834
|
+
console.error("Error stopping impersonation:", error);
|
|
7835
|
+
}
|
|
7836
|
+
} finally {
|
|
7837
|
+
terminate(blocksKey);
|
|
7838
|
+
isTriggering.current = false;
|
|
7839
|
+
setIsTerminating(false);
|
|
7840
|
+
}
|
|
7841
|
+
};
|
|
7842
|
+
void stopImpersonation();
|
|
7843
|
+
}, [mutateAsync, terminate, isImpersonated]);
|
|
7844
|
+
if (isImpersonated || isTerminating) return /* @__PURE__ */ jsx(AppLoadingSpinner, {});
|
|
7845
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7846
|
+
}
|
|
7847
|
+
function ImpersonationBlocked({
|
|
7848
|
+
title,
|
|
7849
|
+
description,
|
|
7850
|
+
actionLabel,
|
|
7851
|
+
onAction,
|
|
7852
|
+
consolePath
|
|
7853
|
+
}) {
|
|
7854
|
+
const navigate = useNavigate();
|
|
7855
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-[320px] w-full flex-col items-center justify-center gap-4 p-8 text-center", children: [
|
|
7856
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
7857
|
+
/* @__PURE__ */ jsx("h2", { className: "text-base font-semibold", children: title }),
|
|
7858
|
+
/* @__PURE__ */ jsx("p", { className: "max-w-md text-sm text-muted-foreground", children: description })
|
|
7859
|
+
] }),
|
|
7860
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-row items-center gap-2", children: [
|
|
7861
|
+
/* @__PURE__ */ jsx(Button, { onClick: onAction, children: actionLabel }),
|
|
7862
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: () => navigate(consolePath), children: "Back to console" })
|
|
7863
|
+
] })
|
|
7864
|
+
] });
|
|
7865
|
+
}
|
|
7866
|
+
function ImpersonationSynchronizer({
|
|
7867
|
+
children,
|
|
7868
|
+
consolePath = "/app/console"
|
|
7869
|
+
}) {
|
|
7870
|
+
const {
|
|
7871
|
+
impersonate,
|
|
7872
|
+
isImpersonated,
|
|
7873
|
+
impersonatedTenantId,
|
|
7874
|
+
impersonationError,
|
|
7875
|
+
isDetached,
|
|
7876
|
+
setImpersonationError,
|
|
7877
|
+
setDetached
|
|
7878
|
+
} = useImpersonateStore();
|
|
7879
|
+
const { mutateAsync } = useStartImpersonation();
|
|
7880
|
+
const { data: _data } = useGetProjects({ enabled: true });
|
|
7881
|
+
const { selectedProject, setSelectedProject, projects, setTenantGroup } = useProjectStore();
|
|
7882
|
+
const isTriggering = useRef(false);
|
|
7883
|
+
const [isImpersonating, setIsImpersonating] = useState(false);
|
|
7884
|
+
const { itemId } = useParams();
|
|
7885
|
+
const routeTenantId = useMemo(() => {
|
|
7886
|
+
if (!itemId) return null;
|
|
7887
|
+
return projects.find((p) => p.itemId === itemId)?.tenantId ?? null;
|
|
7888
|
+
}, [itemId, projects]);
|
|
7889
|
+
const impersonatedTenantIdRef = useRef(impersonatedTenantId);
|
|
7890
|
+
const selectedProjectRef = useRef(selectedProject);
|
|
7891
|
+
const projectsRef = useRef(projects);
|
|
7892
|
+
const routeTenantIdRef = useRef(routeTenantId);
|
|
7893
|
+
impersonatedTenantIdRef.current = impersonatedTenantId;
|
|
7894
|
+
selectedProjectRef.current = selectedProject;
|
|
7895
|
+
projectsRef.current = projects;
|
|
7896
|
+
routeTenantIdRef.current = routeTenantId;
|
|
7897
|
+
useEffect(() => {
|
|
7898
|
+
if (!itemId || !projects.length) return;
|
|
7899
|
+
if (selectedProject?.itemId === itemId) return;
|
|
7900
|
+
const match = projects.find((p) => p.itemId === itemId);
|
|
7901
|
+
if (match) {
|
|
7902
|
+
setSelectedProject(match);
|
|
7903
|
+
setTenantGroup(match.tenantGroupId);
|
|
7904
|
+
}
|
|
7905
|
+
}, [
|
|
7906
|
+
itemId,
|
|
7907
|
+
selectedProject?.itemId,
|
|
7908
|
+
projects,
|
|
7909
|
+
setSelectedProject,
|
|
7910
|
+
setTenantGroup
|
|
7911
|
+
]);
|
|
7912
|
+
const getImpersonatedProject = async () => {
|
|
7913
|
+
try {
|
|
7914
|
+
const res = projectService.getProject();
|
|
7915
|
+
return (await res).data;
|
|
7916
|
+
} catch (error) {
|
|
7917
|
+
console.error("Error fetching projects:", error);
|
|
7918
|
+
}
|
|
7919
|
+
};
|
|
7920
|
+
const runImpersonation = useCallback(async () => {
|
|
7921
|
+
const targetTenantId = routeTenantIdRef.current;
|
|
7922
|
+
const currentTenantId = impersonatedTenantIdRef.current;
|
|
7923
|
+
const knownProjects = projectsRef.current;
|
|
7924
|
+
isTriggering.current = true;
|
|
7925
|
+
setIsImpersonating(true);
|
|
7926
|
+
try {
|
|
7927
|
+
if (!targetTenantId) {
|
|
7928
|
+
if (currentTenantId && !selectedProjectRef.current) {
|
|
7929
|
+
const project2 = knownProjects.find((p) => p.tenantId === currentTenantId) ?? await getImpersonatedProject();
|
|
7930
|
+
if (project2) {
|
|
7931
|
+
setSelectedProject(project2);
|
|
7932
|
+
setTenantGroup(project2.tenantGroupId);
|
|
7933
|
+
}
|
|
7934
|
+
}
|
|
7935
|
+
return;
|
|
7936
|
+
}
|
|
7937
|
+
await mutateAsync({ targeted_tenant_id: targetTenantId });
|
|
7938
|
+
impersonate(
|
|
7939
|
+
targetTenantId,
|
|
7940
|
+
window.process?.env.BLOCKS_X_BLOCKS_KEY || ""
|
|
7941
|
+
);
|
|
7942
|
+
claimTenant(targetTenantId);
|
|
7943
|
+
const project = knownProjects.find((p) => p.tenantId === targetTenantId);
|
|
7944
|
+
if (project) {
|
|
7945
|
+
setSelectedProject(project);
|
|
7946
|
+
setTenantGroup(project.tenantGroupId);
|
|
7947
|
+
}
|
|
7948
|
+
} catch (error) {
|
|
7949
|
+
setImpersonationError(error);
|
|
7950
|
+
} finally {
|
|
7951
|
+
isTriggering.current = false;
|
|
7952
|
+
setIsImpersonating(false);
|
|
7953
|
+
}
|
|
7954
|
+
}, [
|
|
7955
|
+
mutateAsync,
|
|
7956
|
+
impersonate,
|
|
7957
|
+
setSelectedProject,
|
|
7958
|
+
setTenantGroup,
|
|
7959
|
+
setImpersonationError
|
|
7960
|
+
]);
|
|
7961
|
+
const retry = useCallback(() => {
|
|
7962
|
+
setImpersonationError(null);
|
|
7963
|
+
setDetached(false);
|
|
7964
|
+
void runImpersonation();
|
|
7965
|
+
}, [runImpersonation, setImpersonationError, setDetached]);
|
|
7966
|
+
useEffect(() => {
|
|
7967
|
+
const owner = readCurrentOwner();
|
|
7968
|
+
if (owner && routeTenantId && owner.tenantId !== routeTenantId) {
|
|
7969
|
+
setDetached(true);
|
|
7970
|
+
}
|
|
7971
|
+
return subscribeToTenantClaims((claim) => {
|
|
7972
|
+
const mine = routeTenantIdRef.current;
|
|
7973
|
+
if (!mine) return;
|
|
7974
|
+
setDetached(claim.tenantId !== mine);
|
|
7975
|
+
});
|
|
7976
|
+
}, [routeTenantId, setDetached]);
|
|
7977
|
+
useEffect(() => {
|
|
7978
|
+
if (!itemId) return;
|
|
7979
|
+
if (isTriggering.current) return;
|
|
7980
|
+
if (impersonationError || isDetached) return;
|
|
7981
|
+
const needsColdStart = !routeTenantId && !!impersonatedTenantId && !selectedProject;
|
|
7982
|
+
const needsRetarget = !!routeTenantId && routeTenantId !== impersonatedTenantId;
|
|
7983
|
+
if (!needsColdStart && !needsRetarget) return;
|
|
7984
|
+
void runImpersonation();
|
|
7985
|
+
}, [
|
|
7986
|
+
itemId,
|
|
7987
|
+
routeTenantId,
|
|
7988
|
+
impersonatedTenantId,
|
|
7989
|
+
selectedProject,
|
|
7990
|
+
impersonationError,
|
|
7991
|
+
isDetached,
|
|
7992
|
+
runImpersonation
|
|
7993
|
+
]);
|
|
7994
|
+
if (isImpersonating) return /* @__PURE__ */ jsx(AppLoadingSpinner, {});
|
|
7995
|
+
if (!itemId) {
|
|
7996
|
+
if (!isImpersonated || isTriggering.current) return null;
|
|
7997
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
7998
|
+
}
|
|
7999
|
+
if (impersonationError) {
|
|
8000
|
+
return /* @__PURE__ */ jsx(
|
|
8001
|
+
ImpersonationBlocked,
|
|
8002
|
+
{
|
|
8003
|
+
title: "Could not open this project",
|
|
8004
|
+
description: "We could not switch your session to this project. Retry, or go back to the console and pick a project again.",
|
|
8005
|
+
actionLabel: "Retry",
|
|
8006
|
+
onAction: retry,
|
|
8007
|
+
consolePath
|
|
8008
|
+
}
|
|
8009
|
+
);
|
|
8010
|
+
}
|
|
8011
|
+
if (isDetached) {
|
|
8012
|
+
return /* @__PURE__ */ jsx(
|
|
8013
|
+
ImpersonationBlocked,
|
|
8014
|
+
{
|
|
8015
|
+
title: "This project is open in another tab",
|
|
8016
|
+
description: "Your session can only be in one project at a time. Use this tab instead, or return to the console.",
|
|
8017
|
+
actionLabel: "Use this tab",
|
|
8018
|
+
onAction: retry,
|
|
8019
|
+
consolePath
|
|
8020
|
+
}
|
|
8021
|
+
);
|
|
8022
|
+
}
|
|
8023
|
+
if (!routeTenantId) return /* @__PURE__ */ jsx(AppLoadingSpinner, {});
|
|
8024
|
+
if (routeTenantId !== impersonatedTenantId) return /* @__PURE__ */ jsx(AppLoadingSpinner, {});
|
|
8025
|
+
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
8026
|
+
}
|
|
7684
8027
|
function PublicLayout({ children }) {
|
|
7685
8028
|
return /* @__PURE__ */ jsx(Suspense, { children: /* @__PURE__ */ jsx(PublicGuard, { children }) });
|
|
7686
8029
|
}
|
|
@@ -9070,75 +9413,105 @@ var LoginPage = () => {
|
|
|
9070
9413
|
);
|
|
9071
9414
|
};
|
|
9072
9415
|
|
|
9073
|
-
// src/assets/images/console/
|
|
9074
|
-
var
|
|
9416
|
+
// src/assets/images/console/resource-docs.svg
|
|
9417
|
+
var resource_docs_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="docs-cover" x1="32" y1="29" x2="128" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="docs-page-left" x1="40" y1="35" x2="78" y2="87" gradientUnits="userSpaceOnUse">%0A <stop stop-color="%23FFFFFF"/>%0A <stop offset="1" stop-color="hsl(218 78% 90%)"/>%0A </linearGradient>%0A <linearGradient id="docs-page-right" x1="82" y1="36" x2="118" y2="88" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 95%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 75%)"/>%0A </linearGradient>%0A <filter id="docs-shadow" x="20" y="16" width="120" height="96" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="8" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="98" rx="48" ry="9" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23docs-shadow)">%0A <path d="M27 37.5L73 25.5C77.6 24.3 82.4 24.3 87 25.5L133 37.5V87.5L87 101C82.4 102.4 77.5 102.4 73 101L27 87.5V37.5Z" fill="url(%23docs-cover)"/>%0A <path d="M27 82.5L73 96C77.5 97.4 82.4 97.4 87 96L133 82.5V87.5L87 101C82.4 102.4 77.5 102.4 73 101L27 87.5V82.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M31.5 34.5L72.2 29.2C75.8 28.7 78.8 31.5 78.8 35.1V89.3C76.3 86.5 72.5 85.2 68.8 85.8L31.5 91.7V34.5Z" fill="url(%23docs-page-left)"/>%0A <path d="M128.5 34.5L87.8 29.2C84.2 28.7 81.2 31.5 81.2 35.1V89.3C83.7 86.5 87.5 85.2 91.2 85.8L128.5 91.7V34.5Z" fill="url(%23docs-page-right)"/>%0A <path d="M78.8 35V89.3C79.5 90.1 80.1 91 80 92.1C79.9 91 80.5 90.1 81.2 89.3V35" stroke="hsl(218 78% 75%)" stroke-width="2"/>%0A <path d="M41 47L67.5 42.8M41 56.5L68 52.2M41 66L62 62.7" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M92 43L118.5 47.2M92 52.5L119 56.8M92 62L113 65.3" stroke="hsl(218 78% 58%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M107 35.5L118 37V58L112.5 52L107 56.5V35.5Z" fill="hsl(218 78% 44%)"/>%0A <path d="M107 35.5L118 37V41L107 39.5V35.5Z" fill="hsl(218 78% 58%)"/>%0A </g>%0A <circle cx="132" cy="26" r="5" fill="hsl(218 78% 32%)"/>%0A <path d="M132 18V34M124 26H140" stroke="hsl(218 78% 90%)" stroke-width="2" stroke-linecap="round"/>%0A</svg>%0A';
|
|
9075
9418
|
|
|
9076
|
-
// src/assets/images/console/
|
|
9077
|
-
var
|
|
9419
|
+
// src/assets/images/console/resource-cli.svg
|
|
9420
|
+
var resource_cli_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="cli-shell" x1="28" y1="24" x2="132" y2="94" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <linearGradient id="cli-bar" x1="29" y1="25" x2="131" y2="44" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <filter id="cli-shadow" x="18" y="15" width="126" height="98" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="78" cy="99" rx="49" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23cli-shadow)">%0A <path d="M28 31C28 26.6 31.6 23 36 23H124C128.4 23 132 26.6 132 31V87C132 91.4 128.4 95 124 95H36C31.6 95 28 91.4 28 87V31Z" fill="url(%23cli-shell)"/>%0A <path d="M28 31C28 26.6 31.6 23 36 23H124C128.4 23 132 26.6 132 31V42H28V31Z" fill="url(%23cli-bar)"/>%0A <circle cx="39" cy="32.5" r="3" fill="hsl(218 78% 95%)"/>%0A <circle cx="49" cy="32.5" r="3" fill="hsl(218 78% 90%)"/>%0A <circle cx="59" cy="32.5" r="3" fill="hsl(218 78% 75%)"/>%0A <path d="M42 57L51 64L42 71" stroke="hsl(218 78% 90%)" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>%0A <path d="M59 72H80" stroke="hsl(218 78% 90%)" stroke-width="4" stroke-linecap="round"/>%0A <path d="M42 82H68" stroke="hsl(218 78% 58%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M75 82H91" stroke="hsl(218 78% 44%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M107 50L126 61V82L107 93L88 82V61L107 50Z" fill="hsl(218 78% 44%)"/>%0A <path d="M88 61L107 72L126 61L107 50L88 61Z" fill="hsl(218 78% 58%)"/>%0A <path d="M107 72V93L126 82V61L107 72Z" fill="hsl(218 78% 32%)"/>%0A <path d="M96 61L107 67.5L118 61L107 54.5L96 61Z" fill="hsl(218 78% 90%)" fill-opacity="0.75"/>%0A </g>%0A <path d="M138 43C138 39.7 140.7 37 144 37C140.7 37 138 34.3 138 31C138 34.3 135.3 37 132 37C135.3 37 138 39.7 138 43Z" fill="hsl(218 78% 58%)"/>%0A</svg>%0A';
|
|
9078
9421
|
|
|
9079
|
-
// src/assets/images/console/
|
|
9080
|
-
var
|
|
9081
|
-
var
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9090
|
-
whileHover: { y: -4 },
|
|
9091
|
-
transition: { duration: 0.35, ease: [0.22, 1, 0.36, 1] },
|
|
9092
|
-
className: "hover:border-primary/40 hover:shadow-primary/5 group flex flex-col overflow-hidden rounded-2xl border border-[hsl(var(--border-default))] bg-[hsl(var(--card))] shadow-sm transition-all duration-300 hover:shadow-xl",
|
|
9093
|
-
children: [
|
|
9094
|
-
/* @__PURE__ */ jsxs("div", { className: "relative flex items-center justify-center overflow-hidden bg-[hsl(var(--surface-app))] px-8 py-10", children: [
|
|
9095
|
-
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-60 [background-size:18px_18px]" }),
|
|
9096
|
-
/* @__PURE__ */ jsx(
|
|
9097
|
-
"img",
|
|
9098
|
-
{
|
|
9099
|
-
src: image,
|
|
9100
|
-
width: 148,
|
|
9101
|
-
height: 148,
|
|
9102
|
-
alt: label,
|
|
9103
|
-
className: "relative object-contain drop-shadow-sm transition-transform duration-500 group-hover:scale-105"
|
|
9104
|
-
}
|
|
9105
|
-
)
|
|
9106
|
-
] }),
|
|
9107
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2 p-5", children: [
|
|
9108
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between gap-2", children: [
|
|
9109
|
-
/* @__PURE__ */ jsx("h4", { className: "text-base font-semibold text-[hsl(var(--high-emphasis))]", children: label }),
|
|
9110
|
-
/* @__PURE__ */ jsx(ArrowUpRight, { className: "text-muted-foreground group-hover:text-primary mt-0.5 h-4 w-4 shrink-0 transition-all duration-200 group-hover:-translate-y-0.5 group-hover:translate-x-0.5" })
|
|
9111
|
-
] }),
|
|
9112
|
-
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-sm leading-relaxed", children: description }),
|
|
9113
|
-
/* @__PURE__ */ jsx("span", { className: "text-primary mt-auto pt-3 text-xs font-medium opacity-0 transition-opacity duration-200 group-hover:opacity-100", children: "Explore \u2192" })
|
|
9114
|
-
] })
|
|
9115
|
-
]
|
|
9116
|
-
}
|
|
9117
|
-
);
|
|
9118
|
-
};
|
|
9119
|
-
var data = [
|
|
9120
|
-
{
|
|
9121
|
-
label: "Docs",
|
|
9122
|
-
description: "Established standards that help project managers and technical leaders minimize project risks.",
|
|
9123
|
-
image: console_timeline_default,
|
|
9124
|
-
url: "https://docs.seliseblocks.com"
|
|
9422
|
+
// src/assets/images/console/resource-skills.svg
|
|
9423
|
+
var resource_skills_default = 'data:image/svg+xml,<svg width="160" height="120" viewBox="0 0 160 120" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <defs>%0A <linearGradient id="skills-top" x1="48" y1="30" x2="113" y2="68" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 75%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 58%)"/>%0A </linearGradient>%0A <linearGradient id="skills-left" x1="43" y1="49" x2="80" y2="99" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 58%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 44%)"/>%0A </linearGradient>%0A <linearGradient id="skills-right" x1="80" y1="62" x2="119" y2="97" gradientUnits="userSpaceOnUse">%0A <stop stop-color="hsl(218 78% 44%)"/>%0A <stop offset="1" stop-color="hsl(218 78% 32%)"/>%0A </linearGradient>%0A <filter id="skills-shadow" x="28" y="17" width="111" height="99" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">%0A <feDropShadow dx="0" dy="9" stdDeviation="7" flood-color="hsl(218 78% 32%)" flood-opacity="0.16"/>%0A </filter>%0A </defs>%0A%0A <ellipse cx="80" cy="101" rx="43" ry="8" fill="hsl(218 78% 32%)" fill-opacity="0.08"/>%0A <g filter="url(%23skills-shadow)">%0A <path d="M42 52L80 31L118 52L80 74L42 52Z" fill="url(%23skills-top)"/>%0A <path d="M42 52L80 74V100L42 78V52Z" fill="url(%23skills-left)"/>%0A <path d="M80 74L118 52V78L80 100V74Z" fill="url(%23skills-right)"/>%0A <path d="M61 41.5L99 63.5L110 57L72 35L61 41.5Z" fill="hsl(218 78% 90%)" fill-opacity="0.7"/>%0A <path d="M99 63.5V76.5L110 70V57L99 63.5Z" fill="hsl(218 78% 32%)"/>%0A <path d="M61 41.5V54.5L99 76.5V63.5L61 41.5Z" fill="hsl(218 78% 58%)"/>%0A <path d="M52 65L69 74.8M52 72L65 79.5" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A <path d="M90 85L107 75" stroke="hsl(218 78% 75%)" stroke-width="3" stroke-linecap="round"/>%0A </g>%0A <g transform="rotate(-12 111 34)">%0A <rect x="108" y="30" width="7" height="43" rx="3.5" fill="hsl(218 78% 44%)"/>%0A <rect x="108" y="30" width="7" height="13" rx="3.5" fill="hsl(218 78% 75%)"/>%0A </g>%0A <path d="M111 28C110 20.9 107.1 18 100 17C107.1 16 110 13.1 111 6C112 13.1 114.9 16 122 17C114.9 18 112 20.9 111 28Z" fill="hsl(218 78% 58%)"/>%0A <path d="M133 44C132.4 39.7 130.3 37.6 126 37C130.3 36.4 132.4 34.3 133 30C133.6 34.3 135.7 36.4 140 37C135.7 37.6 133.6 39.7 133 44Z" fill="hsl(218 78% 75%)"/>%0A <circle cx="128" cy="57" r="3" fill="hsl(218 78% 90%)"/>%0A</svg>%0A';
|
|
9424
|
+
var resources = [
|
|
9425
|
+
{
|
|
9426
|
+
eyebrow: "Learn",
|
|
9427
|
+
label: "Read Docs",
|
|
9428
|
+
description: "Established standards and guides that help teams minimize project risk and ship consistently. Learn the possibilities that you can unlock with Selise Blocks.",
|
|
9429
|
+
image: resource_docs_default,
|
|
9430
|
+
url: "https://docs.seliseblocks.com",
|
|
9431
|
+
icon: BookOpenText,
|
|
9432
|
+
actionLabel: "Start Reading"
|
|
9125
9433
|
},
|
|
9126
9434
|
{
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9435
|
+
eyebrow: "Build",
|
|
9436
|
+
label: "Install CLI",
|
|
9437
|
+
description: "Public npm packages for building with Blocks: a CLI for project setup plus a framework-neutral frontend SDK. Blocks CLI tool unlocks all the configurations of Blocks project without having to leave your IDE.",
|
|
9438
|
+
image: resource_cli_default,
|
|
9439
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-cli",
|
|
9440
|
+
icon: SquareTerminal,
|
|
9441
|
+
actionLabel: "See Installation Steps"
|
|
9131
9442
|
},
|
|
9132
9443
|
{
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9444
|
+
eyebrow: "Automate",
|
|
9445
|
+
label: "Bootstrap",
|
|
9446
|
+
description: "Describe what you want in plain language and an agent maps it to a focused, ready-to-run Blocks workflow. Quick start for your coding agent to initialize your blocks project, install the cli and the necessary skills.",
|
|
9447
|
+
image: resource_skills_default,
|
|
9448
|
+
url: "https://github.com/SELISEdigitalplatforms/blocks-skills",
|
|
9449
|
+
icon: Sparkles,
|
|
9450
|
+
actionLabel: "Set Up Your Agent"
|
|
9137
9451
|
}
|
|
9138
9452
|
];
|
|
9139
|
-
var
|
|
9140
|
-
|
|
9141
|
-
|
|
9453
|
+
var BentoGrid = ({
|
|
9454
|
+
children,
|
|
9455
|
+
className
|
|
9456
|
+
}) => /* @__PURE__ */ jsx(
|
|
9457
|
+
"div",
|
|
9458
|
+
{
|
|
9459
|
+
className: cn("grid w-full grid-cols-1 gap-4 lg:grid-cols-3", className),
|
|
9460
|
+
children
|
|
9461
|
+
}
|
|
9462
|
+
);
|
|
9463
|
+
var BentoCard = ({
|
|
9464
|
+
eyebrow,
|
|
9465
|
+
label,
|
|
9466
|
+
image,
|
|
9467
|
+
description,
|
|
9468
|
+
url,
|
|
9469
|
+
icon: Icon2,
|
|
9470
|
+
actionLabel
|
|
9471
|
+
}) => /* @__PURE__ */ jsxs(
|
|
9472
|
+
"a",
|
|
9473
|
+
{
|
|
9474
|
+
href: url,
|
|
9475
|
+
target: "_blank",
|
|
9476
|
+
rel: "noopener noreferrer",
|
|
9477
|
+
"aria-label": `${label}: ${description}`,
|
|
9478
|
+
className: cn(
|
|
9479
|
+
"group relative flex min-w-0 flex-col overflow-hidden rounded-2xl border border-[hsl(var(--border-default))] bg-[hsl(var(--card))] p-2 outline-none transform-gpu",
|
|
9480
|
+
"shadow-[0_1px_2px_hsl(var(--foreground)/0.04),0_8px_24px_-20px_hsl(var(--foreground)/0.22)]",
|
|
9481
|
+
"transition-[border-color,box-shadow,transform] duration-300 hover:-translate-y-0.5 hover:border-primary/30 hover:shadow-[0_16px_32px_-22px_hsl(var(--primary)/0.32)]",
|
|
9482
|
+
"focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2"
|
|
9483
|
+
),
|
|
9484
|
+
children: [
|
|
9485
|
+
/* @__PURE__ */ jsxs("div", { className: "pointer-events-none relative flex h-36 shrink-0 items-center justify-center overflow-hidden rounded-xl bg-[hsl(var(--surface-app))]", children: [
|
|
9486
|
+
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-[radial-gradient(hsl(var(--border-default))_1px,transparent_1px)] opacity-55 [background-size:18px_18px]" }),
|
|
9487
|
+
/* @__PURE__ */ jsx("div", { className: "absolute left-1/2 top-1/2 h-28 w-28 -translate-x-1/2 -translate-y-1/2 rounded-full bg-primary/[0.08] blur-2xl transition-transform duration-500 group-hover:scale-125 group-focus-visible:scale-125" }),
|
|
9488
|
+
/* @__PURE__ */ jsx(
|
|
9489
|
+
"img",
|
|
9490
|
+
{
|
|
9491
|
+
src: image,
|
|
9492
|
+
alt: "",
|
|
9493
|
+
className: "relative h-28 w-40 select-none object-contain transition-transform duration-500 ease-out group-hover:scale-[1.04] group-focus-visible:scale-[1.04]"
|
|
9494
|
+
}
|
|
9495
|
+
)
|
|
9496
|
+
] }),
|
|
9497
|
+
/* @__PURE__ */ jsxs("div", { className: "relative z-10 flex min-h-0 flex-1 flex-col px-3 pb-3 pt-4", children: [
|
|
9498
|
+
/* @__PURE__ */ jsxs("div", { className: "flex h-11 shrink-0 items-center gap-3", children: [
|
|
9499
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-xl bg-[hsl(var(--surface-app))] text-primary transition-colors duration-300 group-hover:bg-primary/[0.08] group-focus-visible:bg-primary/[0.08]", children: /* @__PURE__ */ jsx(Icon2, { className: "h-4 w-4", "aria-hidden": "true" }) }),
|
|
9500
|
+
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col justify-center text-left", children: [
|
|
9501
|
+
/* @__PURE__ */ jsx("span", { className: "block text-[10px] font-bold uppercase leading-4 tracking-[0.16em] text-primary", children: eyebrow }),
|
|
9502
|
+
/* @__PURE__ */ jsx("h3", { className: "truncate text-lg font-semibold leading-6 tracking-tight text-[hsl(var(--high-emphasis))]", children: label })
|
|
9503
|
+
] })
|
|
9504
|
+
] }),
|
|
9505
|
+
/* @__PURE__ */ jsx("p", { className: "mt-3 line-clamp-3 h-[3.75rem] shrink-0 text-sm leading-5 text-muted-foreground", children: description }),
|
|
9506
|
+
/* @__PURE__ */ jsx("div", { className: "mt-auto pt-3", children: /* @__PURE__ */ jsxs("span", { className: "flex h-10 w-full items-center justify-between rounded-xl bg-[hsl(var(--surface-app))] px-3.5 text-[13px] font-semibold text-primary transition-[background-color,color,box-shadow] duration-300 group-hover:bg-primary group-hover:text-primary-foreground group-hover:shadow-sm group-focus-visible:bg-primary group-focus-visible:text-primary-foreground", children: [
|
|
9507
|
+
/* @__PURE__ */ jsx("span", { children: actionLabel }),
|
|
9508
|
+
/* @__PURE__ */ jsx(ArrowUpRight, { className: "h-4 w-4 transition-transform duration-300 group-hover:-translate-y-0.5 group-hover:translate-x-0.5 group-focus-visible:-translate-y-0.5 group-focus-visible:translate-x-0.5" })
|
|
9509
|
+
] }) })
|
|
9510
|
+
] })
|
|
9511
|
+
]
|
|
9512
|
+
}
|
|
9513
|
+
);
|
|
9514
|
+
var DefaultDoc = () => /* @__PURE__ */ jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9142
9515
|
function useCreateProjectRedirect() {
|
|
9143
9516
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
9144
9517
|
const navigate = useNavigate();
|
|
@@ -9947,9 +10320,9 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
9947
10320
|
) });
|
|
9948
10321
|
};
|
|
9949
10322
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
9950
|
-
const { data
|
|
10323
|
+
const { data, isLoading, isFetching } = useGetProjects({ enabled: true });
|
|
9951
10324
|
const isPending = isLoading || isFetching;
|
|
9952
|
-
const projectGroups =
|
|
10325
|
+
const projectGroups = data || [];
|
|
9953
10326
|
const {
|
|
9954
10327
|
availableEnvironmentOptions,
|
|
9955
10328
|
environmentFilter,
|
|
@@ -10061,10 +10434,7 @@ var ConsolePage = ({ canCreateProject = false }) => {
|
|
|
10061
10434
|
/* @__PURE__ */ jsxs("div", { className: "relative flex flex-1 flex-col gap-12 px-6 py-10 sm:px-10 xl:px-[154px]", children: [
|
|
10062
10435
|
/* @__PURE__ */ jsx(SelfProject, { canCreateProject }),
|
|
10063
10436
|
/* @__PURE__ */ jsxs("section", { className: "flex flex-col gap-5", children: [
|
|
10064
|
-
/* @__PURE__ */
|
|
10065
|
-
/* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }),
|
|
10066
|
-
/* @__PURE__ */ jsx("div", { className: "h-px flex-1 bg-[hsl(var(--border-default))]" })
|
|
10067
|
-
] }),
|
|
10437
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary inline-flex items-center rounded-full px-2.5 py-1 text-xs font-semibold tracking-wide", children: "Resources" }) }),
|
|
10068
10438
|
/* @__PURE__ */ jsx(DefaultDoc, {})
|
|
10069
10439
|
] })
|
|
10070
10440
|
] })
|
|
@@ -10349,7 +10719,7 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10349
10719
|
} = {}) => {
|
|
10350
10720
|
const baseUrl = serviceName ? getServiceBaseUrl(serviceName) : void 0;
|
|
10351
10721
|
const swaggerUrl = serviceName ? getServiceSwaggerUrl(serviceName) : void 0;
|
|
10352
|
-
const { data
|
|
10722
|
+
const { data, isLoading, isError, error } = useQuery({
|
|
10353
10723
|
queryKey: ["swagger-endpoints", swaggerUrl],
|
|
10354
10724
|
queryFn: () => {
|
|
10355
10725
|
if (!swaggerUrl) {
|
|
@@ -10360,41 +10730,41 @@ var useSwaggerEndpoints = (serviceName, {
|
|
|
10360
10730
|
enabled: Boolean(swaggerUrl) && enabled,
|
|
10361
10731
|
staleTime
|
|
10362
10732
|
});
|
|
10363
|
-
const endpoints =
|
|
10733
|
+
const endpoints = data && swaggerUrl ? parseSwaggerDocument(data, swaggerUrl, baseUrl) : [];
|
|
10364
10734
|
return { endpoints, isLoading, isError, error };
|
|
10365
10735
|
};
|
|
10366
10736
|
var ConfirmationModal = ({
|
|
10367
|
-
data
|
|
10737
|
+
data,
|
|
10368
10738
|
onConfirm,
|
|
10369
10739
|
buttonState
|
|
10370
10740
|
}) => /* @__PURE__ */ jsxs(DialogContent, { className: "mr-4 w-full max-w-[425px] rounded-md", children: [
|
|
10371
10741
|
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
10372
|
-
/* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children:
|
|
10373
|
-
/* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children:
|
|
10742
|
+
/* @__PURE__ */ jsx(DialogTitle, { className: "text-left text-lg font-semibold leading-7", children: data.dialogTitle }),
|
|
10743
|
+
/* @__PURE__ */ jsx(DialogDescription, { className: "mb-6 mt-2 wrap-break-word text-left text-sm font-normal leading-5 text-medium-emphasis", children: data.dialogSubtitle })
|
|
10374
10744
|
] }),
|
|
10375
10745
|
/* @__PURE__ */ jsxs(DialogFooter, { className: "mt-4 flex flex-row gap-2", children: [
|
|
10376
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children:
|
|
10746
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "outline", size: "sm", children: data.cancelButton || "Cancel" }) }),
|
|
10377
10747
|
/* @__PURE__ */ jsx(
|
|
10378
10748
|
Button,
|
|
10379
10749
|
{
|
|
10380
10750
|
size: "sm",
|
|
10381
10751
|
onClick: onConfirm,
|
|
10382
10752
|
disabled: buttonState?.confirm.disable,
|
|
10383
|
-
children:
|
|
10753
|
+
children: data.confirmButton || "Yes"
|
|
10384
10754
|
}
|
|
10385
10755
|
)
|
|
10386
10756
|
] })
|
|
10387
10757
|
] });
|
|
10388
10758
|
var DashboardOverview = () => {
|
|
10389
10759
|
const { name } = useBlocksAppConfigStore((state) => state.config);
|
|
10390
|
-
const { data
|
|
10760
|
+
const { data, isFetching } = useGetProject();
|
|
10391
10761
|
const {
|
|
10392
10762
|
endpoints,
|
|
10393
10763
|
isLoading: isLoadingEndpoints,
|
|
10394
10764
|
error
|
|
10395
10765
|
} = useSwaggerEndpoints(name);
|
|
10396
10766
|
return /* @__PURE__ */ jsxs("main", { className: "flex flex-col gap-6 p-6", children: [
|
|
10397
|
-
/* @__PURE__ */ jsx(ProjectDetail, { isLoading: isFetching, project:
|
|
10767
|
+
/* @__PURE__ */ jsx(ProjectDetail, { isLoading: isFetching, project: data?.data }),
|
|
10398
10768
|
/* @__PURE__ */ jsx(
|
|
10399
10769
|
CoreApiCard,
|
|
10400
10770
|
{
|
|
@@ -10741,7 +11111,7 @@ var buildColumns = (onSet) => [
|
|
|
10741
11111
|
})
|
|
10742
11112
|
];
|
|
10743
11113
|
var ProjectRepoTable = ({
|
|
10744
|
-
data
|
|
11114
|
+
data,
|
|
10745
11115
|
domains,
|
|
10746
11116
|
projectKey,
|
|
10747
11117
|
projectEnv
|
|
@@ -10754,7 +11124,7 @@ var ProjectRepoTable = ({
|
|
|
10754
11124
|
};
|
|
10755
11125
|
const columns = buildColumns(handleSet);
|
|
10756
11126
|
const table = useReactTable({
|
|
10757
|
-
data
|
|
11127
|
+
data,
|
|
10758
11128
|
columns,
|
|
10759
11129
|
getCoreRowModel: getCoreRowModel()
|
|
10760
11130
|
});
|
|
@@ -12136,15 +12506,15 @@ var DropdownSearchInput = ({
|
|
|
12136
12506
|
}, [debounced]);
|
|
12137
12507
|
const handleChange = (event) => {
|
|
12138
12508
|
event.stopPropagation();
|
|
12139
|
-
const
|
|
12140
|
-
setState(
|
|
12141
|
-
debounced(
|
|
12509
|
+
const data = { ...state, value: event.target.value };
|
|
12510
|
+
setState(data);
|
|
12511
|
+
debounced(data);
|
|
12142
12512
|
};
|
|
12143
12513
|
const handleClear = (e) => {
|
|
12144
12514
|
e.stopPropagation();
|
|
12145
|
-
const
|
|
12146
|
-
setState(
|
|
12147
|
-
onChange(
|
|
12515
|
+
const data = { ...state, value: "" };
|
|
12516
|
+
setState(data);
|
|
12517
|
+
onChange(data);
|
|
12148
12518
|
};
|
|
12149
12519
|
const handleSelect = (value2) => {
|
|
12150
12520
|
setState({ selected: value2, value: "" });
|
|
@@ -12656,7 +13026,7 @@ var noop = () => {
|
|
|
12656
13026
|
};
|
|
12657
13027
|
function DataTable(props) {
|
|
12658
13028
|
const {
|
|
12659
|
-
data
|
|
13029
|
+
data,
|
|
12660
13030
|
columns,
|
|
12661
13031
|
isLoading = false,
|
|
12662
13032
|
renderLoader,
|
|
@@ -12684,7 +13054,7 @@ function DataTable(props) {
|
|
|
12684
13054
|
void setInternalDescending(value.isDescending);
|
|
12685
13055
|
};
|
|
12686
13056
|
const table = useReactTable({
|
|
12687
|
-
data
|
|
13057
|
+
data,
|
|
12688
13058
|
columns,
|
|
12689
13059
|
getCoreRowModel: getCoreRowModel(),
|
|
12690
13060
|
...tableOptions
|
|
@@ -12856,6 +13226,6 @@ var TablePagination2 = React8.forwardRef(
|
|
|
12856
13226
|
);
|
|
12857
13227
|
TablePagination2.displayName = "TablePagination";
|
|
12858
13228
|
|
|
12859
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
12860
|
-
//# sourceMappingURL=chunk-
|
|
12861
|
-
//# sourceMappingURL=chunk-
|
|
13229
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppLoadingSpinner, AppSwitcher, ArchiveProject, AspectRatio, AuthLayout, AuthResolver, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, CallbackPage, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent2 as CollapsibleContent, CollapsibleTrigger2 as CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ConsoleLayout, ConsolePage, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardLayout, DashboardOverview, DashboardRoute, DashboardSectionCard, DataTable, DataTableHeaderCell, DateRangePicker, DesktopMenuItem, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditProject, EditProjectDialog, EditProjectForm, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImpersonationChecker, ImpersonationSynchronizer, ImpersonationTerminator, ImportFileModalContent, InfiniteScroll, InfiniteScroller, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanTaskCard, Label, LanguageSelector, LoadingButton, LoginPage, Logo, MaskedText, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MobileMenuItem, MultiSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Notification, OidcLayout, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, Popover, PopoverContent, PopoverTrigger, ProfilePage, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList2 as ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, ProtectedGuard, PublicGuard, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProvider, RightSidePanelTitle, RightSidePanelTrigger, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, SelectedEnvironment, SelectedProject, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarCollapsedTooltip, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuDesktop, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarMobileView, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination2 as TablePagination, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, Timeline, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepIndicator, WizardStepViewport, WizardStepperProvider, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, useOidcContext, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper };
|
|
13230
|
+
//# sourceMappingURL=chunk-Y36F6N2O.js.map
|
|
13231
|
+
//# sourceMappingURL=chunk-Y36F6N2O.js.map
|