@seliseblocks/genesis-os 4.0.2 → 4.0.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @seliseblocks/genesis-os
2
2
 
3
+ ## 4.0.4
4
+
5
+ ### Patch changes
6
+
7
+ - added forwarded path for each app, so that they can switch to their own designated path.
8
+
9
+ ## 4.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Refactored the login functionality
14
+
3
15
  ## 4.0.2
4
16
 
5
17
  ### Patch Changes
@@ -8,6 +20,8 @@
8
20
 
9
21
  ## 4.0.0
10
22
 
23
+ - Upgraded to react v19.0.0 and react-dom
24
+
11
25
  ### Major Changes
12
26
 
13
27
  - Renamed the package from `@seliseblocks/blocks-kit` to `@seliseblocks/genesis-os`. Update the dependency name and all import paths; no exported API changed.
@@ -1,5 +1,5 @@
1
1
  import { refractor } from './chunk-FGY7QM3Y.js';
2
- import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-MH5BEN2P.js';
2
+ import { usePopoverWidth, useBlocksAppConfigStore, initiateService, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useInitiateRedirect, useIcon, useGetNotifications, useMarkAsRead, useMarkAllAsRead, usePrefetchRedirect } from './chunk-GUT2OEFQ.js';
3
3
  import { showErrorToast, getForwardedToPath, formatFullDate, getProjectBlocksApiUrl, formatDate, debounce, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-M4AKVWL4.js';
4
4
  import { SidebarContext, DashboardLayoutProvider } from './chunk-CC33UJZK.js';
5
5
  import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
@@ -5932,7 +5932,8 @@ var APP_SWITCHER_DATA = [
5932
5932
  redirectUri: "BLOCKS_IAM_CALLBACK_URL",
5933
5933
  initiateUrl: "",
5934
5934
  isLoading: false,
5935
- isDisabled: false
5935
+ isDisabled: false,
5936
+ forwardedTo: "/app/profile"
5936
5937
  },
5937
5938
  {
5938
5939
  id: "blocks-localization",
@@ -6092,7 +6093,7 @@ var AppSwitcher = ({ forwardedTo }) => {
6092
6093
  (app) => initiateService.fetchRedirectUrl({
6093
6094
  clientId: getRuntimeEnv(app.clientId),
6094
6095
  redirectUri: getRuntimeEnv(app.redirectUri),
6095
- forwardedTo: resolvedForwardedTo
6096
+ forwardedTo: app.forwardedTo ?? resolvedForwardedTo
6096
6097
  }).catch((err) => {
6097
6098
  console.error(
6098
6099
  `[AppSwitcher] Failed to get redirect URL for ${app.id}:`,
@@ -6150,10 +6151,10 @@ var AppSwitcher = ({ forwardedTo }) => {
6150
6151
  align: "end",
6151
6152
  sideOffset: 8,
6152
6153
  className: "w-60 overflow-hidden rounded-2xl p-0 shadow-xl",
6153
- children: blocksApps.length > 0 && /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
6154
+ children: /* @__PURE__ */ jsx(RenderConditionally, { condition: blocksApps.length > 0, children: /* @__PURE__ */ jsxs("div", { className: "bg-muted/50 border-t px-3 pb-4 pt-3", children: [
6154
6155
  /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mb-2 px-1 text-[13px] font-semibold", children: "SELISE Blocks" }),
6155
6156
  /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3", children: blocksApps.map((app) => /* @__PURE__ */ jsx(AppTile, { app, isLoading: app.isLoading }, app.id)) })
6156
- ] })
6157
+ ] }) })
6157
6158
  }
6158
6159
  )
6159
6160
  ] });
@@ -7733,11 +7734,16 @@ function useAtmosphericCanvas(canvasRef) {
7733
7734
  if (!canvas) return;
7734
7735
  const ctx = canvas.getContext("2d");
7735
7736
  if (!ctx) return;
7736
- let raf = 0;
7737
+ const rafHandles = /* @__PURE__ */ new Set();
7737
7738
  let t = 0;
7738
7739
  let dpr = window.devicePixelRatio || 1;
7739
7740
  let w = 0;
7740
7741
  let h = 0;
7742
+ const schedule = (cb) => {
7743
+ const handle = requestAnimationFrame(cb);
7744
+ rafHandles.add(handle);
7745
+ return handle;
7746
+ };
7741
7747
  const resize = () => {
7742
7748
  dpr = window.devicePixelRatio || 1;
7743
7749
  w = canvas.width = Math.floor(window.innerWidth * dpr);
@@ -7795,13 +7801,14 @@ function useAtmosphericCanvas(canvasRef) {
7795
7801
  ctx.fillStyle = g3;
7796
7802
  ctx.fillRect(0, 0, w / dpr, h / dpr);
7797
7803
  t++;
7798
- raf = requestAnimationFrame(draw);
7804
+ schedule(draw);
7799
7805
  };
7800
7806
  resize();
7801
7807
  window.addEventListener("resize", resize);
7802
- raf = requestAnimationFrame(draw);
7808
+ schedule(draw);
7803
7809
  return () => {
7804
- cancelAnimationFrame(raf);
7810
+ rafHandles.forEach((handle) => cancelAnimationFrame(handle));
7811
+ rafHandles.clear();
7805
7812
  window.removeEventListener("resize", resize);
7806
7813
  };
7807
7814
  }, [canvasRef]);
@@ -11794,5 +11801,5 @@ var TablePagination2 = React8.forwardRef(
11794
11801
  TablePagination2.displayName = "TablePagination";
11795
11802
 
11796
11803
  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, ProjectCliSnippet, ProjectDetail, ProjectList, ProjectOverview, ProjectRepoList, PublicLayout, RadioGroup4 as RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, useSortQueryParams, useWizardStepper };
11797
- //# sourceMappingURL=chunk-XMM33UUZ.js.map
11798
- //# sourceMappingURL=chunk-XMM33UUZ.js.map
11804
+ //# sourceMappingURL=chunk-5HKBS575.js.map
11805
+ //# sourceMappingURL=chunk-5HKBS575.js.map