@seliseblocks/genesis-os 4.3.7 → 4.3.8
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-CBQL2T6H.js → chunk-LNQUCEQU.js} +43 -6
- package/dist/chunk-LNQUCEQU.js.map +1 -0
- package/dist/{chunk-YFTRLNLF.cjs → chunk-OVQEP63V.cjs} +51 -52
- package/dist/chunk-OVQEP63V.cjs.map +1 -0
- package/dist/{chunk-X7X4QYK4.js → chunk-PSJHGD3M.js} +4 -5
- package/dist/chunk-PSJHGD3M.js.map +1 -0
- package/dist/{chunk-SXEXXJHL.cjs → chunk-QN6HLQ67.cjs} +41 -4
- package/dist/chunk-QN6HLQ67.cjs.map +1 -0
- package/dist/components/index.cjs +341 -341
- package/dist/components/index.js +2 -2
- package/dist/guards/index.cjs +8 -8
- package/dist/guards/index.js +2 -2
- package/dist/hooks/index.cjs +53 -53
- package/dist/hooks/index.d.cts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +411 -411
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/layouts/index.cjs +9 -9
- package/dist/layouts/index.js +2 -2
- package/dist/models/index.d.cts +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/pages/index.cjs +7 -7
- package/dist/pages/index.js +2 -2
- package/dist/{service-registry.model-pcv_ix2e.d.cts → service-registry.model-DJGsTRWZ.d.cts} +17 -1
- package/dist/{service-registry.model-pcv_ix2e.d.ts → service-registry.model-DJGsTRWZ.d.ts} +17 -1
- package/package.json +1 -1
- package/dist/chunk-CBQL2T6H.js.map +0 -1
- package/dist/chunk-SXEXXJHL.cjs.map +0 -1
- package/dist/chunk-X7X4QYK4.js.map +0 -1
- package/dist/chunk-YFTRLNLF.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkXJ6DPUCV_cjs = require('./chunk-XJ6DPUCV.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkQN6HLQ67_cjs = require('./chunk-QN6HLQ67.cjs');
|
|
5
5
|
var chunkQTSTAWK3_cjs = require('./chunk-QTSTAWK3.cjs');
|
|
6
6
|
var chunk4QKE3WAW_cjs = require('./chunk-4QKE3WAW.cjs');
|
|
7
7
|
var chunkX4YCRWXO_cjs = require('./chunk-X4YCRWXO.cjs');
|
|
@@ -1523,7 +1523,7 @@ function RightSidePanelProvider({
|
|
|
1523
1523
|
const close = React8__namespace.useCallback(() => {
|
|
1524
1524
|
setOpen(false);
|
|
1525
1525
|
}, [setOpen]);
|
|
1526
|
-
|
|
1526
|
+
chunkQN6HLQ67_cjs.useKeyboardShortcut(shortcut, toggle);
|
|
1527
1527
|
React8__namespace.useEffect(() => {
|
|
1528
1528
|
if (!syncHash || isControlled || typeof window === "undefined") return;
|
|
1529
1529
|
const handleHashChange = () => {
|
|
@@ -3499,7 +3499,7 @@ function MultiSelect({
|
|
|
3499
3499
|
onChange,
|
|
3500
3500
|
value: selectedValues
|
|
3501
3501
|
}) {
|
|
3502
|
-
const [buttonRef, popoverWidth] =
|
|
3502
|
+
const [buttonRef, popoverWidth] = chunkQN6HLQ67_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);
|
|
@@ -6688,7 +6688,7 @@ function useAppRedirectUrls({
|
|
|
6688
6688
|
const controller = new AbortController();
|
|
6689
6689
|
const { signal } = controller;
|
|
6690
6690
|
stableApps.forEach((app) => {
|
|
6691
|
-
|
|
6691
|
+
chunkQN6HLQ67_cjs.initiateService.fetchRedirectUrl({
|
|
6692
6692
|
clientId: chunkX4YCRWXO_cjs.getRuntimeEnv(app.clientId),
|
|
6693
6693
|
redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv(app.redirectUri),
|
|
6694
6694
|
forwardedTo: resolveRef.current(app)
|
|
@@ -6714,7 +6714,7 @@ function useAppRedirectUrls({
|
|
|
6714
6714
|
}
|
|
6715
6715
|
var AppSwitcher = ({ forwardedTo }) => {
|
|
6716
6716
|
const [open, setOpen] = React8.useState(false);
|
|
6717
|
-
const config =
|
|
6717
|
+
const config = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
6718
6718
|
const filteredApps = React8.useMemo(
|
|
6719
6719
|
() => filteredAppSwitcherData.filter((app) => app.id !== config.name),
|
|
6720
6720
|
[config.name]
|
|
@@ -6753,7 +6753,7 @@ function ThemeSwitcher({
|
|
|
6753
6753
|
className,
|
|
6754
6754
|
showChevron = true
|
|
6755
6755
|
} = {}) {
|
|
6756
|
-
const { theme, setTheme } =
|
|
6756
|
+
const { theme, setTheme } = chunkQN6HLQ67_cjs.useTheme();
|
|
6757
6757
|
const { Icon: ThemeIcon } = OPTIONS[theme];
|
|
6758
6758
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
6759
6759
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -6863,14 +6863,14 @@ function UserAvatar({ size = "sm" }) {
|
|
|
6863
6863
|
);
|
|
6864
6864
|
}
|
|
6865
6865
|
function UserDropdownMenu() {
|
|
6866
|
-
const { name } =
|
|
6866
|
+
const { name } = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
6867
6867
|
const { data } = useGetUserInfo();
|
|
6868
6868
|
const userData = data?.data;
|
|
6869
|
-
const { isPending, mutateAsync } =
|
|
6869
|
+
const { isPending, mutateAsync } = chunkQN6HLQ67_cjs.useLogout();
|
|
6870
6870
|
const { resetProjectStore } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
6871
6871
|
const { setUnAuthenticated, clearTokens } = chunk6GCU5LM7_cjs.useAuthStore();
|
|
6872
6872
|
const { resetSelectedLanguages } = chunk4QN4CYSC_cjs.useLanguageViewStore();
|
|
6873
|
-
const { data: myOrgsData, isLoading: isOrgsLoading } =
|
|
6873
|
+
const { data: myOrgsData, isLoading: isOrgsLoading } = chunkQN6HLQ67_cjs.useGetMyOrganizations();
|
|
6874
6874
|
const fullName = [userData?.firstName, userData?.lastName].filter(Boolean).join(" ") || "\u2014";
|
|
6875
6875
|
const email = userData?.email || "";
|
|
6876
6876
|
const roles = Object.values(userData?.roles || {}).flat();
|
|
@@ -7000,7 +7000,7 @@ var languages = [
|
|
|
7000
7000
|
{ key: "fr", title: "French" }
|
|
7001
7001
|
];
|
|
7002
7002
|
function LanguageSelector() {
|
|
7003
|
-
const { changeLanguage, language } =
|
|
7003
|
+
const { changeLanguage, language } = chunkQN6HLQ67_cjs.useLanguageSwitcher();
|
|
7004
7004
|
return /* @__PURE__ */ jsxRuntime.jsxs(DropdownMenu, { children: [
|
|
7005
7005
|
/* @__PURE__ */ jsxRuntime.jsx(DropdownMenuTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7006
7006
|
"button",
|
|
@@ -7090,7 +7090,7 @@ var notificationListenerService = new NotificationListenerService();
|
|
|
7090
7090
|
|
|
7091
7091
|
// src/components/common/notification/use-notification-socket.ts
|
|
7092
7092
|
function useNotificationSocket() {
|
|
7093
|
-
const { data: configData } =
|
|
7093
|
+
const { data: configData } = chunkQN6HLQ67_cjs.useGetBlocksNotificationConfig(0, 100);
|
|
7094
7094
|
const queryClient = reactQuery.useQueryClient();
|
|
7095
7095
|
notificationListenerService.connect();
|
|
7096
7096
|
React8.useEffect(() => {
|
|
@@ -7105,7 +7105,7 @@ function useNotificationSocket() {
|
|
|
7105
7105
|
notificationListenerService.connection.on(
|
|
7106
7106
|
config.notifyMethod,
|
|
7107
7107
|
(message) => {
|
|
7108
|
-
|
|
7108
|
+
chunkQN6HLQ67_cjs.notificationService.getNotificationConfig(config, message);
|
|
7109
7109
|
try {
|
|
7110
7110
|
const notice = typeof message === "string" ? JSON.parse(message) : message;
|
|
7111
7111
|
const denom = JSON.parse(
|
|
@@ -7129,12 +7129,12 @@ function useNotificationFeed(open) {
|
|
|
7129
7129
|
const [notifications, setNotifications] = React8.useState([]);
|
|
7130
7130
|
const [hasMore, setHasMore] = React8.useState(true);
|
|
7131
7131
|
const listRef = React8.useRef(null);
|
|
7132
|
-
const { data, isLoading, isFetching } =
|
|
7132
|
+
const { data, isLoading, isFetching } = chunkQN6HLQ67_cjs.useGetNotifications(
|
|
7133
7133
|
pageNumber,
|
|
7134
7134
|
PAGE_SIZE
|
|
7135
7135
|
);
|
|
7136
|
-
const markAsRead =
|
|
7137
|
-
const markAllAsRead =
|
|
7136
|
+
const markAsRead = chunkQN6HLQ67_cjs.useMarkAsRead();
|
|
7137
|
+
const markAllAsRead = chunkQN6HLQ67_cjs.useMarkAllAsRead();
|
|
7138
7138
|
React8.useEffect(() => {
|
|
7139
7139
|
if (!data?.notifications) return;
|
|
7140
7140
|
setNotifications((prev) => {
|
|
@@ -7368,7 +7368,7 @@ function ConsoleHeader() {
|
|
|
7368
7368
|
window.addEventListener("scroll", handleScroll);
|
|
7369
7369
|
return () => window.removeEventListener("scroll", handleScroll);
|
|
7370
7370
|
}, []);
|
|
7371
|
-
const { appLightLogo, appDarkLogo } =
|
|
7371
|
+
const { appLightLogo, appDarkLogo } = chunkQN6HLQ67_cjs.useLogo();
|
|
7372
7372
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7373
7373
|
"div",
|
|
7374
7374
|
{
|
|
@@ -7547,7 +7547,7 @@ var EnvironmentCard = ({
|
|
|
7547
7547
|
className
|
|
7548
7548
|
}) => {
|
|
7549
7549
|
const { setSelectedProject, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7550
|
-
const { mutateAsync } =
|
|
7550
|
+
const { mutateAsync } = chunkQN6HLQ67_cjs.useStartImpersonation();
|
|
7551
7551
|
const navigate = reactRouter.useNavigate();
|
|
7552
7552
|
const handleCardClick = async () => {
|
|
7553
7553
|
try {
|
|
@@ -7601,11 +7601,11 @@ function EnvironmentList({
|
|
|
7601
7601
|
}) {
|
|
7602
7602
|
const navigate = reactRouter.useNavigate();
|
|
7603
7603
|
const { pathname } = reactRouter.useLocation();
|
|
7604
|
-
const { data: projectGroups = [], isLoading } =
|
|
7604
|
+
const { data: projectGroups = [], isLoading } = chunkQN6HLQ67_cjs.useGetProjects({
|
|
7605
7605
|
enabled: true
|
|
7606
7606
|
});
|
|
7607
7607
|
const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7608
|
-
const { data: projectData } =
|
|
7608
|
+
const { data: projectData } = chunkQN6HLQ67_cjs.useGetProject();
|
|
7609
7609
|
const pendingProjectRef = React8.useRef(null);
|
|
7610
7610
|
const redirectRegexMap = React8.useMemo(
|
|
7611
7611
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -7852,7 +7852,7 @@ var projectNameFor = (projects, tenantId) => tenantId && projects.find((p) => p.
|
|
|
7852
7852
|
var ImpersonationChecker = ({
|
|
7853
7853
|
children
|
|
7854
7854
|
}) => {
|
|
7855
|
-
const { data, isLoading, isSuccess } =
|
|
7855
|
+
const { data, isLoading, isSuccess } = chunkQN6HLQ67_cjs.useImpersonationStatusChecker();
|
|
7856
7856
|
const { setImpersonation, isInitialized, setInitialized } = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
7857
7857
|
React8.useEffect(() => {
|
|
7858
7858
|
if (!data) return;
|
|
@@ -7908,7 +7908,7 @@ function ImpersonationTerminator({
|
|
|
7908
7908
|
detachedTenantId,
|
|
7909
7909
|
setDetached
|
|
7910
7910
|
} = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
7911
|
-
const { mutateAsync } =
|
|
7911
|
+
const { mutateAsync } = chunkQN6HLQ67_cjs.useStopImpersonation();
|
|
7912
7912
|
const { projects } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7913
7913
|
const isTriggering = React8.useRef(false);
|
|
7914
7914
|
const [isTerminating, setIsTerminating] = React8.useState(false);
|
|
@@ -7982,8 +7982,8 @@ function ImpersonationSynchronizer({
|
|
|
7982
7982
|
setImpersonationError,
|
|
7983
7983
|
setDetached
|
|
7984
7984
|
} = chunk4QN4CYSC_cjs.useImpersonateStore();
|
|
7985
|
-
const { mutateAsync } =
|
|
7986
|
-
const { data: _data } =
|
|
7985
|
+
const { mutateAsync } = chunkQN6HLQ67_cjs.useStartImpersonation();
|
|
7986
|
+
const { data: _data } = chunkQN6HLQ67_cjs.useGetProjects({ enabled: true });
|
|
7987
7987
|
const { selectedProject, setSelectedProject, projects, setTenantGroup } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
7988
7988
|
const isTriggering = React8.useRef(false);
|
|
7989
7989
|
const [isImpersonating, setIsImpersonating] = React8.useState(false);
|
|
@@ -8018,7 +8018,7 @@ function ImpersonationSynchronizer({
|
|
|
8018
8018
|
]);
|
|
8019
8019
|
const getImpersonatedProject = async () => {
|
|
8020
8020
|
try {
|
|
8021
|
-
const res =
|
|
8021
|
+
const res = chunkQN6HLQ67_cjs.projectService.getProject();
|
|
8022
8022
|
return (await res).data;
|
|
8023
8023
|
} catch (error) {
|
|
8024
8024
|
console.error("Error fetching projects:", error);
|
|
@@ -8043,7 +8043,6 @@ function ImpersonationSynchronizer({
|
|
|
8043
8043
|
}
|
|
8044
8044
|
await mutateAsync({ targeted_tenant_id: targetTenantId });
|
|
8045
8045
|
impersonate(targetTenantId, rootTenantId);
|
|
8046
|
-
chunk4QKE3WAW_cjs.claimTenant(targetTenantId);
|
|
8047
8046
|
const project = knownProjects.find((p) => p.tenantId === targetTenantId);
|
|
8048
8047
|
if (project) {
|
|
8049
8048
|
setSelectedProject(project);
|
|
@@ -8282,7 +8281,7 @@ var LoginHeader = ({
|
|
|
8282
8281
|
}) => {
|
|
8283
8282
|
const {
|
|
8284
8283
|
config: { appLogoUrl }
|
|
8285
|
-
} =
|
|
8284
|
+
} = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state);
|
|
8286
8285
|
const resolveLogo = (variant) => {
|
|
8287
8286
|
if (!appLogoUrl) return void 0;
|
|
8288
8287
|
if (typeof appLogoUrl === "string") return appLogoUrl;
|
|
@@ -9547,10 +9546,10 @@ var BlocksLoginPage = ({
|
|
|
9547
9546
|
] });
|
|
9548
9547
|
};
|
|
9549
9548
|
var LoginPage = () => {
|
|
9550
|
-
const config =
|
|
9551
|
-
const { start, isLoading } =
|
|
9552
|
-
const { canSignUp } =
|
|
9553
|
-
const { start: startSignUp, isLoading: isSignUpLoading } =
|
|
9549
|
+
const config = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.getConfig());
|
|
9550
|
+
const { start, isLoading } = chunkQN6HLQ67_cjs.useLogin();
|
|
9551
|
+
const { canSignUp } = chunkQN6HLQ67_cjs.useSignUpAffordance();
|
|
9552
|
+
const { start: startSignUp, isLoading: isSignUpLoading } = chunkQN6HLQ67_cjs.useSignUpRedirect();
|
|
9554
9553
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9555
9554
|
BlocksLoginPage,
|
|
9556
9555
|
{
|
|
@@ -9665,10 +9664,10 @@ var BentoCard = ({
|
|
|
9665
9664
|
);
|
|
9666
9665
|
var DefaultDoc = () => /* @__PURE__ */ jsxRuntime.jsx(BentoGrid, { children: resources.map((resource) => /* @__PURE__ */ jsxRuntime.jsx(BentoCard, { ...resource }, resource.url)) });
|
|
9667
9666
|
function useCreateProjectRedirect() {
|
|
9668
|
-
const { name } =
|
|
9667
|
+
const { name } = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9669
9668
|
const navigate = reactRouter.useNavigate();
|
|
9670
9669
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
9671
|
-
const { isFetching, isReady, redirect } =
|
|
9670
|
+
const { isFetching, isReady, redirect } = chunkQN6HLQ67_cjs.usePrefetchRedirect({
|
|
9672
9671
|
clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
9673
9672
|
redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
9674
9673
|
forwardedTo: "/app/create-project",
|
|
@@ -9760,10 +9759,10 @@ function useProjectOverviewRedirect({
|
|
|
9760
9759
|
tenantGroupId
|
|
9761
9760
|
}) {
|
|
9762
9761
|
const navigate = reactRouter.useNavigate();
|
|
9763
|
-
const { name } =
|
|
9762
|
+
const { name } = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
9764
9763
|
const osApp = filteredAppSwitcherData.find((app) => app.id === "blocks-os");
|
|
9765
9764
|
const redirectedRoute = `/app/project/${tenantGroupId}/environments`;
|
|
9766
|
-
const { isFetching, isReady, redirect } =
|
|
9765
|
+
const { isFetching, isReady, redirect } = chunkQN6HLQ67_cjs.usePrefetchRedirect({
|
|
9767
9766
|
clientId: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.clientId) : "",
|
|
9768
9767
|
redirectUri: osApp ? chunkX4YCRWXO_cjs.getRuntimeEnv(osApp.redirectUri) : "",
|
|
9769
9768
|
forwardedTo: redirectedRoute,
|
|
@@ -10121,7 +10120,7 @@ function MultiSelect2({
|
|
|
10121
10120
|
onChange,
|
|
10122
10121
|
value: selectedValues
|
|
10123
10122
|
}) {
|
|
10124
|
-
const [buttonRef, popoverWidth] =
|
|
10123
|
+
const [buttonRef, popoverWidth] = chunkQN6HLQ67_cjs.usePopoverWidth();
|
|
10125
10124
|
const onSelectHandler = (value) => {
|
|
10126
10125
|
const nextValues = selectedValues.includes(value) ? selectedValues.filter((item) => item !== value) : [...selectedValues, value];
|
|
10127
10126
|
onChange(nextValues);
|
|
@@ -10402,7 +10401,7 @@ var useProjectListState = (projectGroups) => {
|
|
|
10402
10401
|
})),
|
|
10403
10402
|
[projectGroups]
|
|
10404
10403
|
);
|
|
10405
|
-
const searchedGroups =
|
|
10404
|
+
const searchedGroups = chunkQN6HLQ67_cjs.useDebouncedFuseFilter(
|
|
10406
10405
|
searchableGroups,
|
|
10407
10406
|
searchText,
|
|
10408
10407
|
SEARCH_OPTIONS
|
|
@@ -10472,7 +10471,7 @@ var SelfProjectLoading = ({ viewMode }) => {
|
|
|
10472
10471
|
) });
|
|
10473
10472
|
};
|
|
10474
10473
|
var SelfProject = ({ canCreateProject = false }) => {
|
|
10475
|
-
const { data, isLoading, isFetching } =
|
|
10474
|
+
const { data, isLoading, isFetching } = chunkQN6HLQ67_cjs.useGetProjects({ enabled: true });
|
|
10476
10475
|
const isPending = isLoading || isFetching;
|
|
10477
10476
|
const projectGroups = data || [];
|
|
10478
10477
|
const {
|
|
@@ -10630,7 +10629,7 @@ var CallbackPage = ({ defaultRedirectUrl }) => {
|
|
|
10630
10629
|
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" }) });
|
|
10631
10630
|
};
|
|
10632
10631
|
function ProfilePage() {
|
|
10633
|
-
const { isLoading, error } =
|
|
10632
|
+
const { isLoading, error } = chunkQN6HLQ67_cjs.useInitiateRedirect({
|
|
10634
10633
|
clientId: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CLIENT_ID"),
|
|
10635
10634
|
redirectUri: chunkX4YCRWXO_cjs.getRuntimeEnv("BLOCKS_IAM_CALLBACK_URL"),
|
|
10636
10635
|
forwardedTo: "/app/profile"
|
|
@@ -10908,8 +10907,8 @@ var ConfirmationModal = ({
|
|
|
10908
10907
|
] })
|
|
10909
10908
|
] });
|
|
10910
10909
|
var DashboardOverview = () => {
|
|
10911
|
-
const { name } =
|
|
10912
|
-
const { data, isFetching } =
|
|
10910
|
+
const { name } = chunkQN6HLQ67_cjs.useBlocksAppConfigStore((state) => state.config);
|
|
10911
|
+
const { data, isFetching } = chunkQN6HLQ67_cjs.useGetProject();
|
|
10913
10912
|
const {
|
|
10914
10913
|
endpoints,
|
|
10915
10914
|
isLoading: isLoadingEndpoints,
|
|
@@ -11003,11 +11002,11 @@ function ProjectList2({
|
|
|
11003
11002
|
}) {
|
|
11004
11003
|
const navigate = reactRouter.useNavigate();
|
|
11005
11004
|
const { pathname } = reactRouter.useLocation();
|
|
11006
|
-
const { data: projectGroups = [], isLoading } =
|
|
11005
|
+
const { data: projectGroups = [], isLoading } = chunkQN6HLQ67_cjs.useGetProjects({
|
|
11007
11006
|
enabled: true
|
|
11008
11007
|
});
|
|
11009
11008
|
const { selectedProject, setSelectedProject } = chunk6GCU5LM7_cjs.useProjectStore();
|
|
11010
|
-
const { data: projectData } =
|
|
11009
|
+
const { data: projectData } = chunkQN6HLQ67_cjs.useGetProject();
|
|
11011
11010
|
const pendingProjectRef = React8.useRef(null);
|
|
11012
11011
|
const redirectRegexMap = React8.useMemo(
|
|
11013
11012
|
() => Object.entries(redirectPaths).reduce(
|
|
@@ -11156,7 +11155,7 @@ var SetCustomDomainDialog = ({
|
|
|
11156
11155
|
projectKey,
|
|
11157
11156
|
projectEnv
|
|
11158
11157
|
}) => {
|
|
11159
|
-
const { mutateAsync, isPending } =
|
|
11158
|
+
const { mutateAsync, isPending } = chunkQN6HLQ67_cjs.useUpdateRepositories();
|
|
11160
11159
|
const verifiedDomains = React8.useMemo(
|
|
11161
11160
|
() => Array.from(
|
|
11162
11161
|
new Set(domains.filter((d) => d.isDomainVerified).map((d) => d.domain))
|
|
@@ -11340,7 +11339,7 @@ var ProjectRepoList = ({
|
|
|
11340
11339
|
data: envRepositoriesResponse,
|
|
11341
11340
|
isLoading: isLoadingEnvRepos,
|
|
11342
11341
|
isFetching: isFetchingEnvRepos
|
|
11343
|
-
} =
|
|
11342
|
+
} = chunkQN6HLQ67_cjs.useGetEnvRepositories(project?.tenantId || "");
|
|
11344
11343
|
if (isLoading || isLoadingEnvRepos || isFetchingEnvRepos) {
|
|
11345
11344
|
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: [
|
|
11346
11345
|
/* @__PURE__ */ jsxRuntime.jsx(Skeleton, { className: "h-5 w-1/2" }),
|
|
@@ -11440,7 +11439,7 @@ var EditProjectForm = ({
|
|
|
11440
11439
|
onAfterSubmit
|
|
11441
11440
|
}) => {
|
|
11442
11441
|
const queryClient = reactQuery.useQueryClient();
|
|
11443
|
-
const { mutateAsync, isPending } =
|
|
11442
|
+
const { mutateAsync, isPending } = chunkQN6HLQ67_cjs.useUpdateTenantGroup();
|
|
11444
11443
|
const form = reactHookForm.useForm({
|
|
11445
11444
|
resolver: zod$1.zodResolver(editProjectFormSchema),
|
|
11446
11445
|
defaultValues: {
|
|
@@ -11576,7 +11575,7 @@ function SidebarMobileView({
|
|
|
11576
11575
|
navigationMenus
|
|
11577
11576
|
}) {
|
|
11578
11577
|
const [open, setOpen] = React8.useState(false);
|
|
11579
|
-
const { appLightLogo, appDarkLogo } =
|
|
11578
|
+
const { appLightLogo, appDarkLogo } = chunkQN6HLQ67_cjs.useLogo();
|
|
11580
11579
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
11581
11580
|
return /* @__PURE__ */ jsxRuntime.jsxs(Sheet, { open, onOpenChange: setOpen, children: [
|
|
11582
11581
|
/* @__PURE__ */ jsxRuntime.jsx(SheetTrigger, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(Button, { variant: "outline", size: "icon", className: "shrink-0", children: [
|
|
@@ -11626,8 +11625,8 @@ function SidebarMenuDesktop({
|
|
|
11626
11625
|
navigationMenus
|
|
11627
11626
|
}) {
|
|
11628
11627
|
const { isSidebarOpen, toggleSidebar } = React8.useContext(chunkIJMKS4XG_cjs.SidebarContext);
|
|
11629
|
-
const { appLightLogo, appDarkLogo } =
|
|
11630
|
-
const icon =
|
|
11628
|
+
const { appLightLogo, appDarkLogo } = chunkQN6HLQ67_cjs.useLogo();
|
|
11629
|
+
const icon = chunkQN6HLQ67_cjs.useIcon();
|
|
11631
11630
|
const allowedMenu = chunkBPJM3L7O_cjs.useFilteredMenus(navigationMenus);
|
|
11632
11631
|
const { isActivePath: isProjectOverviewRoute } = chunkBPJM3L7O_cjs.useIsActiveMenu("/app/project");
|
|
11633
11632
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -11756,7 +11755,7 @@ var ErrorBoundary = class extends React8.Component {
|
|
|
11756
11755
|
var ArchiveProject = () => {
|
|
11757
11756
|
const navigate = reactRouter.useNavigate();
|
|
11758
11757
|
const projectKey = chunk6GCU5LM7_cjs.useProjectStore().selectedProject?.tenantId || "";
|
|
11759
|
-
const { mutateAsync, isPending } =
|
|
11758
|
+
const { mutateAsync, isPending } = chunkQN6HLQ67_cjs.useDisableProject({ projectKey });
|
|
11760
11759
|
const onClickHandler = async () => {
|
|
11761
11760
|
try {
|
|
11762
11761
|
const res = await mutateAsync();
|
|
@@ -12726,7 +12725,7 @@ var ClearButton = ({ onClear }) => {
|
|
|
12726
12725
|
};
|
|
12727
12726
|
function Radio({ label, options, onChange, value }) {
|
|
12728
12727
|
const [search, setSearch] = React8.useState("");
|
|
12729
|
-
const [buttonRef, popoverWidth] =
|
|
12728
|
+
const [buttonRef, popoverWidth] = chunkQN6HLQ67_cjs.usePopoverWidth();
|
|
12730
12729
|
const isMobile = chunkBPJM3L7O_cjs.useIsMobile();
|
|
12731
12730
|
const selected = React8.useMemo(
|
|
12732
12731
|
() => options.find((item) => item.value === value) || null,
|
|
@@ -13735,5 +13734,5 @@ exports.usePaginationQueryParams = usePaginationQueryParams;
|
|
|
13735
13734
|
exports.useRightSidePanel = useRightSidePanel;
|
|
13736
13735
|
exports.useSortQueryParams = useSortQueryParams;
|
|
13737
13736
|
exports.useWizardStepper = useWizardStepper;
|
|
13738
|
-
//# sourceMappingURL=chunk-
|
|
13739
|
-
//# sourceMappingURL=chunk-
|
|
13737
|
+
//# sourceMappingURL=chunk-OVQEP63V.cjs.map
|
|
13738
|
+
//# sourceMappingURL=chunk-OVQEP63V.cjs.map
|