@seliseblocks/genesis-os 4.3.9 → 4.4.0
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-GACXFCNQ.cjs → chunk-DXITHNQR.cjs} +240 -143
- package/dist/chunk-DXITHNQR.cjs.map +1 -0
- package/dist/{chunk-QN6HLQ67.cjs → chunk-HBVSAOTQ.cjs} +53 -38
- package/dist/chunk-HBVSAOTQ.cjs.map +1 -0
- package/dist/{chunk-LNQUCEQU.js → chunk-SAY5K2GJ.js} +25 -11
- package/dist/chunk-SAY5K2GJ.js.map +1 -0
- package/dist/{chunk-46ZGVJEX.js → chunk-SG6FH72W.js} +69 -5
- package/dist/chunk-SG6FH72W.js.map +1 -0
- package/dist/{chunk-BQLKADRZ.js → chunk-SWHGCT72.js} +157 -60
- package/dist/chunk-SWHGCT72.js.map +1 -0
- package/dist/{chunk-4QKE3WAW.cjs → chunk-VAWEXEJZ.cjs} +73 -4
- package/dist/chunk-VAWEXEJZ.cjs.map +1 -0
- package/dist/components/index.cjs +342 -342
- package/dist/components/index.js +3 -3
- package/dist/guards/index.cjs +9 -9
- package/dist/guards/index.js +3 -3
- package/dist/hooks/index.cjs +58 -54
- package/dist/hooks/index.d.cts +12 -1
- package/dist/hooks/index.d.ts +12 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.cjs +452 -428
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/layouts/index.cjs +10 -10
- package/dist/layouts/index.js +3 -3
- package/dist/lib/index.cjs +37 -17
- package/dist/lib/index.d.cts +44 -3
- package/dist/lib/index.d.ts +44 -3
- package/dist/lib/index.js +1 -1
- package/dist/pages/index.cjs +8 -8
- package/dist/pages/index.js +3 -3
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-46ZGVJEX.js.map +0 -1
- package/dist/chunk-4QKE3WAW.cjs.map +0 -1
- package/dist/chunk-BQLKADRZ.js.map +0 -1
- package/dist/chunk-GACXFCNQ.cjs.map +0 -1
- package/dist/chunk-LNQUCEQU.js.map +0 -1
- package/dist/chunk-QN6HLQ67.cjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { refractor } from './chunk-FGY7QM3Y.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-
|
|
2
|
+
import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useStartImpersonation, useGetProjects, useGetProject, useImpersonationStatusChecker, useStopImpersonation, useRecordClaimedTenant, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-SAY5K2GJ.js';
|
|
3
3
|
import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-JSXAKNHQ.js';
|
|
4
|
-
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale,
|
|
4
|
+
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, subscribeToTenantClaims, holdTenant, iamClient, AUTH_ENDPOINTS, claimTenant, readCurrentOwner, TAB_ID, isTenantHeldElsewhere, isSameClaim, PROFILE_ENDPOINTS } from './chunk-SG6FH72W.js';
|
|
5
5
|
import { getRuntimeEnv, HttpError } from './chunk-JUVLHPQI.js';
|
|
6
6
|
import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-XRAO7JBH.js';
|
|
7
7
|
import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-AHCHUUXM.js';
|
|
@@ -58,7 +58,7 @@ import * as ResizablePrimitive from 'react-resizable-panels';
|
|
|
58
58
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
59
59
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
60
60
|
import { useNavigate, Link, useLocation, useParams, Navigate, Outlet, useSearchParams } from 'react-router';
|
|
61
|
-
import { useQueryClient, useQuery } from '@tanstack/react-query';
|
|
61
|
+
import { useQueryClient, useQueries, useQuery } from '@tanstack/react-query';
|
|
62
62
|
import { HubConnectionBuilder, HttpTransportType } from '@microsoft/signalr';
|
|
63
63
|
import { createColumnHelper, flexRender, useReactTable, getCoreRowModel } from '@tanstack/react-table';
|
|
64
64
|
import { zodResolver } from '@hookform/resolvers/zod';
|
|
@@ -6430,7 +6430,12 @@ var AppTile = ({
|
|
|
6430
6430
|
{
|
|
6431
6431
|
href: isLoading ? void 0 : app.initiateUrl,
|
|
6432
6432
|
"aria-disabled": isLoading,
|
|
6433
|
-
onClick: isLoading ? (e) => e.preventDefault() :
|
|
6433
|
+
onClick: isLoading ? (e) => e.preventDefault() : app.markUsed,
|
|
6434
|
+
onAuxClick: (e) => {
|
|
6435
|
+
if (!isLoading && e.button === 1) app.markUsed();
|
|
6436
|
+
},
|
|
6437
|
+
onContextMenu: isLoading ? void 0 : app.markUsed,
|
|
6438
|
+
onDragStart: isLoading ? void 0 : app.markUsed,
|
|
6434
6439
|
className: cn(
|
|
6435
6440
|
"hover:bg-accent focus-visible:ring-ring group flex flex-col items-center gap-2 rounded-xl p-3 text-center transition-colors focus-visible:outline-none focus-visible:ring-2",
|
|
6436
6441
|
isLoading && "pointer-events-none opacity-50 cursor-default"
|
|
@@ -6621,45 +6626,66 @@ var filteredAppSwitcherData = APP_SWITCHER_DATA.filter((app) => {
|
|
|
6621
6626
|
if (!isAppAllowed(app)) return false;
|
|
6622
6627
|
return typeof app.isDisabled === "function" ? !app.isDisabled() : !app.isDisabled;
|
|
6623
6628
|
});
|
|
6629
|
+
var INITIATE_URL_MAX_AGE_MS = 5 * 60 * 1e3;
|
|
6630
|
+
var initiateQueryKey = (clientId, redirectUri, forwardedTo) => ["idp-initiate", clientId, redirectUri, forwardedTo];
|
|
6624
6631
|
function useAppRedirectUrls({
|
|
6625
6632
|
open,
|
|
6626
6633
|
apps,
|
|
6627
6634
|
resolveForwardedTo
|
|
6628
6635
|
}) {
|
|
6629
|
-
const
|
|
6630
|
-
const
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
})
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6636
|
+
const queryClient = useQueryClient();
|
|
6637
|
+
const requests = apps.map((app) => {
|
|
6638
|
+
const clientId = getRuntimeEnv(app.clientId);
|
|
6639
|
+
const redirectUri = getRuntimeEnv(app.redirectUri);
|
|
6640
|
+
const forwardedTo = resolveForwardedTo(app);
|
|
6641
|
+
return {
|
|
6642
|
+
app,
|
|
6643
|
+
clientId,
|
|
6644
|
+
redirectUri,
|
|
6645
|
+
forwardedTo,
|
|
6646
|
+
queryKey: initiateQueryKey(clientId, redirectUri, forwardedTo)
|
|
6647
|
+
};
|
|
6648
|
+
});
|
|
6649
|
+
const results = useQueries({
|
|
6650
|
+
queries: requests.map(
|
|
6651
|
+
({ clientId, redirectUri, forwardedTo, queryKey }) => ({
|
|
6652
|
+
queryKey,
|
|
6653
|
+
queryFn: ({ signal }) => initiateService.fetchRedirectUrl(
|
|
6654
|
+
{ clientId, redirectUri, forwardedTo },
|
|
6655
|
+
signal
|
|
6656
|
+
),
|
|
6657
|
+
enabled: open,
|
|
6658
|
+
staleTime: INITIATE_URL_MAX_AGE_MS,
|
|
6659
|
+
gcTime: INITIATE_URL_MAX_AGE_MS,
|
|
6660
|
+
// Replace a URL as it ages out while the popover stays open, rather than leaving the tile on
|
|
6661
|
+
// "Loading…" until it is reopened.
|
|
6662
|
+
refetchInterval: INITIATE_URL_MAX_AGE_MS,
|
|
6663
|
+
refetchOnWindowFocus: false,
|
|
6664
|
+
refetchOnReconnect: false,
|
|
6665
|
+
retry: false
|
|
6666
|
+
})
|
|
6667
|
+
)
|
|
6668
|
+
});
|
|
6669
|
+
const markUsed = useCallback(
|
|
6670
|
+
(queryKey) => {
|
|
6671
|
+
setTimeout(() => {
|
|
6672
|
+
void queryClient.resetQueries({ queryKey, exact: true });
|
|
6673
|
+
}, 0);
|
|
6674
|
+
},
|
|
6675
|
+
[queryClient]
|
|
6676
|
+
);
|
|
6677
|
+
if (!open || apps.length === 0) return [];
|
|
6678
|
+
const now = Date.now();
|
|
6679
|
+
return requests.map(({ app, queryKey }, index) => {
|
|
6680
|
+
const result = results[index];
|
|
6681
|
+
const url = result?.data && now - result.dataUpdatedAt < INITIATE_URL_MAX_AGE_MS ? result.data : void 0;
|
|
6682
|
+
return {
|
|
6683
|
+
...app,
|
|
6684
|
+
initiateUrl: url ?? app.initiateUrl,
|
|
6685
|
+
isLoading: !url,
|
|
6686
|
+
markUsed: () => markUsed(queryKey)
|
|
6687
|
+
};
|
|
6688
|
+
});
|
|
6663
6689
|
}
|
|
6664
6690
|
var AppSwitcher = ({ forwardedTo }) => {
|
|
6665
6691
|
const [open, setOpen] = useState(false);
|
|
@@ -7798,6 +7824,42 @@ var AppLoadingSpinner = ({ size = 64 }) => /* @__PURE__ */ jsxs(Fragment, { chil
|
|
|
7798
7824
|
/* @__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
7825
|
] });
|
|
7800
7826
|
var projectNameFor = (projects, tenantId) => tenantId && projects.find((p) => p.tenantId === tenantId)?.name || null;
|
|
7827
|
+
var claimKeyOf = (claim) => claim ? `${claim.tabId}|${claim.tenantId}|${claim.ts}` : null;
|
|
7828
|
+
var useLiveOwnerProbe = ({
|
|
7829
|
+
cookieTenantId,
|
|
7830
|
+
ownTenantId,
|
|
7831
|
+
onHeldElsewhere
|
|
7832
|
+
}) => {
|
|
7833
|
+
const foreignClaim = useMemo(() => {
|
|
7834
|
+
if (!cookieTenantId || !ownTenantId || cookieTenantId === ownTenantId) {
|
|
7835
|
+
return null;
|
|
7836
|
+
}
|
|
7837
|
+
const owner = readCurrentOwner();
|
|
7838
|
+
return owner && owner.tabId !== TAB_ID && owner.tenantId === cookieTenantId ? owner : null;
|
|
7839
|
+
}, [cookieTenantId, ownTenantId]);
|
|
7840
|
+
const claimKey = claimKeyOf(foreignClaim);
|
|
7841
|
+
const [probedKey, setProbedKey] = useState(null);
|
|
7842
|
+
const foreignClaimRef = useRef(foreignClaim);
|
|
7843
|
+
const onHeldElsewhereRef = useRef(onHeldElsewhere);
|
|
7844
|
+
foreignClaimRef.current = foreignClaim;
|
|
7845
|
+
onHeldElsewhereRef.current = onHeldElsewhere;
|
|
7846
|
+
useEffect(() => {
|
|
7847
|
+
const claim = foreignClaimRef.current;
|
|
7848
|
+
if (!claim || !claimKey) return;
|
|
7849
|
+
let cancelled = false;
|
|
7850
|
+
void isTenantHeldElsewhere(claim.tenantId).then((held) => {
|
|
7851
|
+
if (cancelled) return;
|
|
7852
|
+
if (held && isSameClaim(readCurrentOwner(), claim)) {
|
|
7853
|
+
onHeldElsewhereRef.current(claim.tenantId);
|
|
7854
|
+
}
|
|
7855
|
+
setProbedKey(claimKey);
|
|
7856
|
+
});
|
|
7857
|
+
return () => {
|
|
7858
|
+
cancelled = true;
|
|
7859
|
+
};
|
|
7860
|
+
}, [claimKey]);
|
|
7861
|
+
return !!claimKey && probedKey !== claimKey;
|
|
7862
|
+
};
|
|
7801
7863
|
var ImpersonationChecker = ({
|
|
7802
7864
|
children
|
|
7803
7865
|
}) => {
|
|
@@ -7853,32 +7915,41 @@ function ImpersonationTerminator({
|
|
|
7853
7915
|
const {
|
|
7854
7916
|
terminate,
|
|
7855
7917
|
isImpersonated,
|
|
7918
|
+
impersonatedTenantId,
|
|
7856
7919
|
detachedReason,
|
|
7857
7920
|
detachedTenantId,
|
|
7858
7921
|
setDetached
|
|
7859
7922
|
} = useImpersonateStore();
|
|
7860
7923
|
const { mutateAsync } = useStopImpersonation();
|
|
7924
|
+
const recordClaimedTenant = useRecordClaimedTenant();
|
|
7861
7925
|
const { projects } = useProjectStore();
|
|
7862
7926
|
const isTriggering = useRef(false);
|
|
7863
7927
|
const [isTerminating, setIsTerminating] = useState(false);
|
|
7864
7928
|
const rootTenantId = window.process?.env.BLOCKS_X_BLOCKS_KEY || "";
|
|
7929
|
+
const isProbingOwner = useLiveOwnerProbe({
|
|
7930
|
+
cookieTenantId: isImpersonated ? impersonatedTenantId : null,
|
|
7931
|
+
ownTenantId: rootTenantId || null,
|
|
7932
|
+
onHeldElsewhere: (tenantId) => setDetached("another-project", tenantId)
|
|
7933
|
+
});
|
|
7865
7934
|
useEffect(() => {
|
|
7866
7935
|
if (!rootTenantId) return;
|
|
7867
|
-
const owner = readCurrentOwner();
|
|
7868
|
-
if (owner && owner.tabId !== TAB_ID && owner.tenantId !== rootTenantId) {
|
|
7869
|
-
setDetached("another-project", owner.tenantId);
|
|
7870
|
-
}
|
|
7871
7936
|
return subscribeToTenantClaims((claim) => {
|
|
7937
|
+
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
7872
7938
|
if (claim.tenantId === rootTenantId) {
|
|
7873
7939
|
setDetached(null);
|
|
7874
7940
|
return;
|
|
7875
7941
|
}
|
|
7876
7942
|
setDetached("another-project", claim.tenantId);
|
|
7877
7943
|
});
|
|
7878
|
-
}, [rootTenantId, setDetached]);
|
|
7944
|
+
}, [rootTenantId, setDetached, recordClaimedTenant]);
|
|
7945
|
+
const isDetached = detachedReason === "another-project";
|
|
7946
|
+
useEffect(() => {
|
|
7947
|
+
if (detachedReason === "console") setDetached(null);
|
|
7948
|
+
}, [detachedReason, setDetached]);
|
|
7879
7949
|
useEffect(() => {
|
|
7880
7950
|
if (isTriggering.current || !isImpersonated) return;
|
|
7881
|
-
if (
|
|
7951
|
+
if (isDetached) return;
|
|
7952
|
+
if (isProbingOwner) return;
|
|
7882
7953
|
isTriggering.current = true;
|
|
7883
7954
|
setIsTerminating(true);
|
|
7884
7955
|
const stopImpersonation = async () => {
|
|
@@ -7899,8 +7970,15 @@ function ImpersonationTerminator({
|
|
|
7899
7970
|
}
|
|
7900
7971
|
};
|
|
7901
7972
|
void stopImpersonation();
|
|
7902
|
-
}, [
|
|
7903
|
-
|
|
7973
|
+
}, [
|
|
7974
|
+
mutateAsync,
|
|
7975
|
+
terminate,
|
|
7976
|
+
isImpersonated,
|
|
7977
|
+
isDetached,
|
|
7978
|
+
isProbingOwner,
|
|
7979
|
+
rootTenantId
|
|
7980
|
+
]);
|
|
7981
|
+
if (isDetached) {
|
|
7904
7982
|
const name = projectNameFor(projects, detachedTenantId);
|
|
7905
7983
|
return /* @__PURE__ */ jsx(
|
|
7906
7984
|
ImpersonationBlocked,
|
|
@@ -7932,6 +8010,7 @@ function ImpersonationSynchronizer({
|
|
|
7932
8010
|
setDetached
|
|
7933
8011
|
} = useImpersonateStore();
|
|
7934
8012
|
const { mutateAsync } = useStartImpersonation();
|
|
8013
|
+
const recordClaimedTenant = useRecordClaimedTenant();
|
|
7935
8014
|
const { data: _data } = useGetProjects({ enabled: true });
|
|
7936
8015
|
const { selectedProject, setSelectedProject, projects, setTenantGroup } = useProjectStore();
|
|
7937
8016
|
const isTriggering = useRef(false);
|
|
@@ -8016,15 +8095,23 @@ function ImpersonationSynchronizer({
|
|
|
8016
8095
|
setDetached(null);
|
|
8017
8096
|
void runImpersonation();
|
|
8018
8097
|
}, [runImpersonation, setImpersonationError, setDetached]);
|
|
8098
|
+
const detachedHere = detachedReason === "another-project" && detachedTenantId === routeTenantId ? null : detachedReason;
|
|
8099
|
+
useEffect(() => {
|
|
8100
|
+
if (detachedReason && detachedReason !== detachedHere) setDetached(null);
|
|
8101
|
+
}, [detachedReason, detachedHere, setDetached]);
|
|
8102
|
+
const isProbingOwner = useLiveOwnerProbe({
|
|
8103
|
+
cookieTenantId: impersonatedTenantId,
|
|
8104
|
+
ownTenantId: routeTenantId,
|
|
8105
|
+
onHeldElsewhere: (tenantId) => setDetached("another-project", tenantId)
|
|
8106
|
+
});
|
|
8107
|
+
const isAttached = !!routeTenantId && routeTenantId === impersonatedTenantId && !detachedHere && !impersonationError && !isProbingOwner;
|
|
8108
|
+
useEffect(() => {
|
|
8109
|
+
if (!isAttached || !routeTenantId) return;
|
|
8110
|
+
return holdTenant(routeTenantId);
|
|
8111
|
+
}, [isAttached, routeTenantId]);
|
|
8019
8112
|
useEffect(() => {
|
|
8020
|
-
const owner = readCurrentOwner();
|
|
8021
|
-
if (owner && owner.tabId !== TAB_ID && routeTenantId && owner.tenantId !== routeTenantId) {
|
|
8022
|
-
setDetached(
|
|
8023
|
-
owner.tenantId === rootTenantId ? "console" : "another-project",
|
|
8024
|
-
owner.tenantId
|
|
8025
|
-
);
|
|
8026
|
-
}
|
|
8027
8113
|
return subscribeToTenantClaims((claim) => {
|
|
8114
|
+
recordClaimedTenant(claim.tenantId, rootTenantId);
|
|
8028
8115
|
const mine = routeTenantIdRef.current;
|
|
8029
8116
|
if (!mine) return;
|
|
8030
8117
|
if (claim.tenantId === mine) {
|
|
@@ -8036,11 +8123,12 @@ function ImpersonationSynchronizer({
|
|
|
8036
8123
|
claim.tenantId
|
|
8037
8124
|
);
|
|
8038
8125
|
});
|
|
8039
|
-
}, [routeTenantId, rootTenantId, setDetached]);
|
|
8126
|
+
}, [routeTenantId, rootTenantId, setDetached, recordClaimedTenant]);
|
|
8040
8127
|
useEffect(() => {
|
|
8041
8128
|
if (!itemId) return;
|
|
8042
8129
|
if (isTriggering.current) return;
|
|
8043
|
-
if (impersonationError ||
|
|
8130
|
+
if (impersonationError || detachedHere) return;
|
|
8131
|
+
if (isProbingOwner) return;
|
|
8044
8132
|
const needsColdStart = !routeTenantId && !!impersonatedTenantId && !selectedProject;
|
|
8045
8133
|
const needsRetarget = !!routeTenantId && routeTenantId !== impersonatedTenantId;
|
|
8046
8134
|
if (!needsColdStart && !needsRetarget) return;
|
|
@@ -8051,7 +8139,8 @@ function ImpersonationSynchronizer({
|
|
|
8051
8139
|
impersonatedTenantId,
|
|
8052
8140
|
selectedProject,
|
|
8053
8141
|
impersonationError,
|
|
8054
|
-
|
|
8142
|
+
detachedHere,
|
|
8143
|
+
isProbingOwner,
|
|
8055
8144
|
runImpersonation
|
|
8056
8145
|
]);
|
|
8057
8146
|
const thisProjectName = projectNameFor(projects, routeTenantId);
|
|
@@ -8067,6 +8156,14 @@ function ImpersonationSynchronizer({
|
|
|
8067
8156
|
if (!isImpersonated || isTriggering.current) return null;
|
|
8068
8157
|
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
8069
8158
|
}
|
|
8159
|
+
if (isProbingOwner && !detachedHere) {
|
|
8160
|
+
return /* @__PURE__ */ jsx(
|
|
8161
|
+
ImpersonationWaiting,
|
|
8162
|
+
{
|
|
8163
|
+
label: thisProjectName ? `Opening ${thisProjectName}\u2026` : "Opening project\u2026"
|
|
8164
|
+
}
|
|
8165
|
+
);
|
|
8166
|
+
}
|
|
8070
8167
|
if (impersonationError) {
|
|
8071
8168
|
const accessDenied = impersonationError instanceof HttpError && impersonationError.status === 403;
|
|
8072
8169
|
return accessDenied ? /* @__PURE__ */ jsx(
|
|
@@ -8087,7 +8184,7 @@ function ImpersonationSynchronizer({
|
|
|
8087
8184
|
}
|
|
8088
8185
|
);
|
|
8089
8186
|
}
|
|
8090
|
-
if (
|
|
8187
|
+
if (detachedHere === "console") {
|
|
8091
8188
|
return /* @__PURE__ */ jsx(
|
|
8092
8189
|
ImpersonationBlocked,
|
|
8093
8190
|
{
|
|
@@ -8099,7 +8196,7 @@ function ImpersonationSynchronizer({
|
|
|
8099
8196
|
}
|
|
8100
8197
|
);
|
|
8101
8198
|
}
|
|
8102
|
-
if (
|
|
8199
|
+
if (detachedHere === "another-project") {
|
|
8103
8200
|
const otherName = projectNameFor(projects, detachedTenantId);
|
|
8104
8201
|
return /* @__PURE__ */ jsx(
|
|
8105
8202
|
ImpersonationBlocked,
|
|
@@ -13330,5 +13427,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13330
13427
|
TablePagination2.displayName = "TablePagination";
|
|
13331
13428
|
|
|
13332
13429
|
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 };
|
|
13333
|
-
//# sourceMappingURL=chunk-
|
|
13334
|
-
//# sourceMappingURL=chunk-
|
|
13430
|
+
//# sourceMappingURL=chunk-SWHGCT72.js.map
|
|
13431
|
+
//# sourceMappingURL=chunk-SWHGCT72.js.map
|