@seliseblocks/genesis-os 4.3.3 → 4.3.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.
@@ -1,5 +1,5 @@
1
1
  import { refractor } from './chunk-FGY7QM3Y.js';
2
- import { useKeyboardShortcut, usePopoverWidth, useBlocksAppConfigStore, useTheme, useLogout, useGetMyOrganizations, useLanguageSwitcher, useGetBlocksNotificationConfig, notificationService, useLogo, useLogin, useSignUpAffordance, useInitiateRedirect, useIcon, initiateService, useGetNotifications, useMarkAsRead, useMarkAllAsRead, useDebouncedFuseFilter, usePrefetchRedirect } from './chunk-QMVZVNIZ.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-H47HQ5UX.js';
3
3
  import { showErrorToast, createStorage, getForwardedToPath, debounce, formatFullDate, formatDate, deepEqual, showSuccessToast, isErrorWithErrors, getServiceBaseUrl, getServiceSwaggerUrl } from './chunk-TE3SKUL4.js';
4
4
  import { defaultRightSidePanelContextValue, RightSidePanelContext, SidebarContext, DashboardLayoutProvider } from './chunk-WIY77276.js';
5
5
  import { useIsMobile, useIsActiveMenu, useFilteredMenus } from './chunk-NF54AHIF.js';
@@ -8170,10 +8170,15 @@ var blocksLoginStyles = `
8170
8170
  display: inline-flex; align-items: center; gap: 6px;
8171
8171
  color: var(--accent2); text-decoration: none; font-weight: 600;
8172
8172
  transition: gap 0.25s var(--ease-out-expo), text-shadow 0.25s ease;
8173
+ /* Renders as a button: it asks IAM for the signup URL rather than linking to one,
8174
+ so the UA button styling has to be reset back to the inline-link look. */
8175
+ background: none; border: 0; padding: 0; margin: 0;
8176
+ font: inherit; font-weight: 600; cursor: pointer;
8173
8177
  }
8174
- .blocksLogin-page .cta-signup-link:hover { gap: 10px; text-shadow: 0 0 10px var(--accent2-glow); }
8178
+ .blocksLogin-page .cta-signup-link:disabled { cursor: default; opacity: 0.7; }
8179
+ .blocksLogin-page .cta-signup-link:hover:not(:disabled) { gap: 10px; text-shadow: 0 0 10px var(--accent2-glow); }
8175
8180
  .blocksLogin-page .cta-signup-link svg { transition: transform 0.25s var(--ease-out-expo); }
8176
- .blocksLogin-page .cta-signup-link:hover svg { transform: translateX(3px); }
8181
+ .blocksLogin-page .cta-signup-link:hover:not(:disabled) svg { transform: translateX(3px); }
8177
8182
 
8178
8183
  .blocksLogin-page .col-right {
8179
8184
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
@@ -8728,7 +8733,9 @@ var BlocksLoginPage = ({
8728
8733
  loginLabel = "Log in to your account",
8729
8734
  docsUrl = "https://docs.seliseblocks.com/",
8730
8735
  footerLink = { label: "Visit Blocks", url: "https://seliseblocks.com" },
8731
- signUpUrl,
8736
+ showSignUp = false,
8737
+ onSignUp,
8738
+ isSignUpLoading = false,
8732
8739
  carouselItems
8733
8740
  }) => {
8734
8741
  const canvasRef = useRef(null);
@@ -8902,24 +8909,33 @@ var BlocksLoginPage = ({
8902
8909
  }
8903
8910
  )
8904
8911
  ] }),
8905
- signUpUrl && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
8912
+ showSignUp && /* @__PURE__ */ jsxs("p", { className: "cta-signup", children: [
8906
8913
  "Not a member?",
8907
8914
  " ",
8908
- /* @__PURE__ */ jsxs("a", { href: signUpUrl, className: "cta-signup-link", children: [
8909
- "Sign up",
8910
- /* @__PURE__ */ jsx(
8911
- "svg",
8912
- {
8913
- width: "11",
8914
- height: "11",
8915
- viewBox: "0 0 24 24",
8916
- fill: "none",
8917
- stroke: "currentColor",
8918
- strokeWidth: "2.5",
8919
- children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M12 5l7 7-7 7" })
8920
- }
8921
- )
8922
- ] })
8915
+ /* @__PURE__ */ jsxs(
8916
+ "button",
8917
+ {
8918
+ type: "button",
8919
+ onClick: onSignUp,
8920
+ disabled: isSignUpLoading,
8921
+ className: "cta-signup-link",
8922
+ children: [
8923
+ isSignUpLoading ? "Redirecting\u2026" : "Sign up",
8924
+ /* @__PURE__ */ jsx(
8925
+ "svg",
8926
+ {
8927
+ width: "11",
8928
+ height: "11",
8929
+ viewBox: "0 0 24 24",
8930
+ fill: "none",
8931
+ stroke: "currentColor",
8932
+ strokeWidth: "2.5",
8933
+ children: /* @__PURE__ */ jsx("path", { d: "M5 12h14M12 5l7 7-7 7" })
8934
+ }
8935
+ )
8936
+ ]
8937
+ }
8938
+ )
8923
8939
  ] })
8924
8940
  ] }),
8925
8941
  /* @__PURE__ */ jsxs("div", { className: "col-right", children: [
@@ -9038,14 +9054,17 @@ var BlocksLoginPage = ({
9038
9054
  var LoginPage = () => {
9039
9055
  const config = useBlocksAppConfigStore((state) => state.getConfig());
9040
9056
  const { start, isLoading } = useLogin();
9041
- const { signUpUrl } = useSignUpAffordance();
9057
+ const { canSignUp } = useSignUpAffordance();
9058
+ const { start: startSignUp, isLoading: isSignUpLoading } = useSignUpRedirect();
9042
9059
  return /* @__PURE__ */ jsx(
9043
9060
  BlocksLoginPage,
9044
9061
  {
9045
9062
  name: config.name,
9046
9063
  onLogin: start,
9047
9064
  isLoading,
9048
- signUpUrl,
9065
+ showSignUp: canSignUp,
9066
+ onSignUp: startSignUp,
9067
+ isSignUpLoading,
9049
9068
  carouselItems: BLOCKS_PRODUCTS
9050
9069
  }
9051
9070
  );
@@ -12838,5 +12857,5 @@ var TablePagination2 = React8.forwardRef(
12838
12857
  TablePagination2.displayName = "TablePagination";
12839
12858
 
12840
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 };
12841
- //# sourceMappingURL=chunk-ASLTNGXQ.js.map
12842
- //# sourceMappingURL=chunk-ASLTNGXQ.js.map
12860
+ //# sourceMappingURL=chunk-EF42GERU.js.map
12861
+ //# sourceMappingURL=chunk-EF42GERU.js.map