@seliseblocks/genesis-os 4.3.7 → 4.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-X7X4QYK4.js → chunk-BQLKADRZ.js} +9 -7
- package/dist/chunk-BQLKADRZ.js.map +1 -0
- package/dist/{chunk-YFTRLNLF.cjs → chunk-GACXFCNQ.cjs} +56 -54
- package/dist/chunk-GACXFCNQ.cjs.map +1 -0
- package/dist/{chunk-CBQL2T6H.js → chunk-LNQUCEQU.js} +43 -6
- package/dist/chunk-LNQUCEQU.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
|
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, useLogin, useSignUpAffordance, useSignUpRedirect, useInitiateRedirect, useGetEnvRepositories, useUpdateTenantGroup, useIcon, useDisableProject, projectService, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, useUpdateRepositories, usePrefetchRedirect } from './chunk-LNQUCEQU.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, readCurrentOwner, TAB_ID, subscribeToTenantClaims,
|
|
4
|
+
import { fadeTransition, fadeInUp, staggerContainer, staggerItem, fadeInScale, readCurrentOwner, TAB_ID, subscribeToTenantClaims, iamClient, AUTH_ENDPOINTS, claimTenant, PROFILE_ENDPOINTS } from './chunk-46ZGVJEX.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';
|
|
@@ -7992,7 +7992,6 @@ function ImpersonationSynchronizer({
|
|
|
7992
7992
|
}
|
|
7993
7993
|
await mutateAsync({ targeted_tenant_id: targetTenantId });
|
|
7994
7994
|
impersonate(targetTenantId, rootTenantId);
|
|
7995
|
-
claimTenant(targetTenantId);
|
|
7996
7995
|
const project = knownProjects.find((p) => p.tenantId === targetTenantId);
|
|
7997
7996
|
if (project) {
|
|
7998
7997
|
setSelectedProject(project);
|
|
@@ -9778,6 +9777,8 @@ var ProjectActionButton = ({
|
|
|
9778
9777
|
};
|
|
9779
9778
|
|
|
9780
9779
|
// src/pages/console/project-list-utils.ts
|
|
9780
|
+
var MAX_OWNED_PROJECT_GROUPS = 10;
|
|
9781
|
+
var countOwnedProjectGroups = (groups) => groups.filter((group) => !group.isShared).length;
|
|
9781
9782
|
var canOpenProject = (group) => !group.isShared || !group.accessPolicies || group.accessPolicies.length > 0;
|
|
9782
9783
|
var getProjectGroupName = (group) => group.projects[0]?.name ?? "";
|
|
9783
9784
|
var getLatestProjectUpdate = (group) => group.projects.reduce((latest, project) => {
|
|
@@ -10437,7 +10438,8 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
10437
10438
|
} = useProjectListState(projectGroups);
|
|
10438
10439
|
if (!isPending && !projectGroups.length && canCreateProject)
|
|
10439
10440
|
return /* @__PURE__ */ jsx(ConsoleCreateProject, {});
|
|
10440
|
-
const
|
|
10441
|
+
const hasReachedProjectLimit = countOwnedProjectGroups(projectGroups) >= MAX_OWNED_PROJECT_GROUPS;
|
|
10442
|
+
const showAddProject = !hasReachedProjectLimit && searchText.trim().length === 0;
|
|
10441
10443
|
const hasNoMatches = projectGroups.length > 0 && visibleProjectGroups.length === 0;
|
|
10442
10444
|
let projectsContent;
|
|
10443
10445
|
if (isPending) {
|
|
@@ -10489,7 +10491,7 @@ var SelfProject = ({ canCreateProject = false }) => {
|
|
|
10489
10491
|
/* @__PURE__ */ jsx("h2", { className: "shrink-0 text-base font-semibold text-[hsl(var(--high-emphasis))]", children: "Your Blocks Projects" }),
|
|
10490
10492
|
isPending ? /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-8 rounded-full" }) : /* @__PURE__ */ jsx("span", { className: "bg-primary/10 text-primary shrink-0 rounded-full px-2 py-0.5 text-xs font-semibold", children: projectGroups.length })
|
|
10491
10493
|
] }),
|
|
10492
|
-
!isPending && canCreateProject &&
|
|
10494
|
+
!isPending && canCreateProject && hasReachedProjectLimit && /* @__PURE__ */ jsx("span", { className: "text-sm text-[hsl(var(--medium-emphasis))]", children: "Please delete an existing project to create a new one." })
|
|
10493
10495
|
] }),
|
|
10494
10496
|
(isPending || projectGroups.length > 0) && /* @__PURE__ */ jsx(
|
|
10495
10497
|
ProjectToolbar,
|
|
@@ -13328,5 +13330,5 @@ var TablePagination2 = React8.forwardRef(
|
|
|
13328
13330
|
TablePagination2.displayName = "TablePagination";
|
|
13329
13331
|
|
|
13330
13332
|
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 };
|
|
13331
|
-
//# sourceMappingURL=chunk-
|
|
13332
|
-
//# sourceMappingURL=chunk-
|
|
13333
|
+
//# sourceMappingURL=chunk-BQLKADRZ.js.map
|
|
13334
|
+
//# sourceMappingURL=chunk-BQLKADRZ.js.map
|