@seliseblocks/genesis-os 4.4.8 → 4.4.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.
Files changed (43) hide show
  1. package/dist/{chunk-IPMRZNNS.cjs → chunk-A4MVNKXL.cjs} +20 -7
  2. package/dist/chunk-A4MVNKXL.cjs.map +1 -0
  3. package/dist/{chunk-KA2OOMCU.js → chunk-L4V72AAV.js} +180 -32
  4. package/dist/chunk-L4V72AAV.js.map +1 -0
  5. package/dist/{chunk-3OO2YVXW.js → chunk-LAWQOHY6.js} +3 -3
  6. package/dist/{chunk-3OO2YVXW.js.map → chunk-LAWQOHY6.js.map} +1 -1
  7. package/dist/{chunk-UDFH7SJI.js → chunk-OE5T43AS.js} +20 -7
  8. package/dist/chunk-OE5T43AS.js.map +1 -0
  9. package/dist/{chunk-VLZJP6FH.cjs → chunk-P4SL4PTY.cjs} +40 -40
  10. package/dist/{chunk-VLZJP6FH.cjs.map → chunk-P4SL4PTY.cjs.map} +1 -1
  11. package/dist/{chunk-QBL4VIE4.cjs → chunk-ZVYSSUHO.cjs} +279 -131
  12. package/dist/chunk-ZVYSSUHO.cjs.map +1 -0
  13. package/dist/components/index.cjs +342 -342
  14. package/dist/components/index.js +3 -3
  15. package/dist/guards/index.cjs +9 -9
  16. package/dist/guards/index.js +3 -3
  17. package/dist/hooks/index.cjs +59 -59
  18. package/dist/hooks/index.js +2 -2
  19. package/dist/index.cjs +440 -440
  20. package/dist/index.d.cts +1 -1
  21. package/dist/index.d.ts +1 -1
  22. package/dist/index.js +3 -3
  23. package/dist/layouts/index.cjs +10 -10
  24. package/dist/layouts/index.js +3 -3
  25. package/dist/lib/index.cjs +24 -24
  26. package/dist/lib/index.d.cts +9 -2
  27. package/dist/lib/index.d.ts +9 -2
  28. package/dist/lib/index.js +1 -1
  29. package/dist/observability/index.cjs.map +1 -1
  30. package/dist/observability/index.d.cts +5 -1
  31. package/dist/observability/index.d.ts +5 -1
  32. package/dist/observability/index.js.map +1 -1
  33. package/dist/pages/index.cjs +8 -8
  34. package/dist/pages/index.js +3 -3
  35. package/dist/{types-D9odiLzd.d.ts → types-Dz0dH1XK.d.ts} +5 -1
  36. package/dist/{types-CQX9_ck-.d.cts → types-VNffHJ1_.d.cts} +5 -1
  37. package/dist/utils/index.cjs +1 -1
  38. package/dist/utils/index.js +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-IPMRZNNS.cjs.map +0 -1
  41. package/dist/chunk-KA2OOMCU.js.map +0 -1
  42. package/dist/chunk-QBL4VIE4.cjs.map +0 -1
  43. package/dist/chunk-UDFH7SJI.js.map +0 -1
package/dist/index.d.cts CHANGED
@@ -6,7 +6,7 @@ export { AppSettings, DetachedReason, ProjectStoreState, useAppSettingsStore, us
6
6
  export { A as AppConfig, a as AppConfigStoreState, C as CreateAppConfigStore, S as ServiceName } from './app-config.store-PZM7lSZN.cjs';
7
7
  export { CallbackPage, ConsolePage, ConsolePageProps, DashboardOverview, LoginPage, ProfilePage } from './pages/index.cjs';
8
8
  export { CookieStorage, CookieStorageOptions, HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, TenantClaim, announceSignOut, claimTenant, clearTenantClaims, cn, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from './lib/index.cjs';
9
- export { H as HeadersInitValue, a as HttpClientConfig, b as HttpClientOptions, c as HttpError, d as HttpRequestFailure, R as RequestBody, e as RequestOptions, f as RequestQueueItem, S as SessionTenantGuard } from './types-CQX9_ck-.cjs';
9
+ export { H as HeadersInitValue, a as HttpClientConfig, b as HttpClientOptions, c as HttpError, d as HttpRequestFailure, R as RequestBody, e as RequestOptions, f as RequestQueueItem, S as SessionTenantGuard } from './types-VNffHJ1_.cjs';
10
10
  export { R as RuntimeEnvWindow, c as createRuntimeEnvGetter, g as getRuntimeEnv } from './runtime-env-BDeaC4ay.cjs';
11
11
  export { T as Theme, a as applyTheme, g as getSystemTheme } from './theme-DzB2eLPh.cjs';
12
12
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppLoadingSpinner, AppSwitcher, ArchiveProject, AspectRatio, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyToClipboardButtonProps, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardSectionCard, DashboardSectionCardProps, DataTable, DataTableHeaderCell, DateRangePicker, DateRangePickerProps, 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, EditProjectFormSchema, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterChangeHandler, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, ImportFileModalContentProps, ImportFileModalDropzoneOptions, InfiniteScroll, InfiniteScroller, InfiniteScrollerProps, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanColumn, KanbanColumnDragData, KanbanColumnId, KanbanTask, KanbanTaskCard, KanbanTaskDragData, Label, LanguageSelector, LoadingButton, Logo, MaskedText, MaskedTextProps, 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, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationValue, PasswordInput, PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProps, RightSidePanelProvider, RightSidePanelProviderProps, RightSidePanelTitle, RightSidePanelTrigger, RightSidePanelTriggerPosition, RightSidePanelTriggerProps, 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, SpinnerProps, StepStatus, Stepper, StepperProps, StepperStep, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination, TablePaginationProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, ThemeSwitcherProps, Timeline, TimelineEventBase, TimelineProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepContentProps, WizardStepIndicator, WizardStepViewport, WizardStepViewportProps, WizardStepperContextType, WizardStepperProvider, WizardStepperProviderProps, WizardSteps, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper } from './components/index.cjs';
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { AppSettings, DetachedReason, ProjectStoreState, useAppSettingsStore, us
6
6
  export { A as AppConfig, a as AppConfigStoreState, C as CreateAppConfigStore, S as ServiceName } from './app-config.store-PZM7lSZN.js';
7
7
  export { CallbackPage, ConsolePage, ConsolePageProps, DashboardOverview, LoginPage, ProfilePage } from './pages/index.js';
8
8
  export { CookieStorage, CookieStorageOptions, HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, TenantClaim, announceSignOut, claimTenant, clearTenantClaims, cn, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from './lib/index.js';
9
- export { H as HeadersInitValue, a as HttpClientConfig, b as HttpClientOptions, c as HttpError, d as HttpRequestFailure, R as RequestBody, e as RequestOptions, f as RequestQueueItem, S as SessionTenantGuard } from './types-D9odiLzd.js';
9
+ export { H as HeadersInitValue, a as HttpClientConfig, b as HttpClientOptions, c as HttpError, d as HttpRequestFailure, R as RequestBody, e as RequestOptions, f as RequestQueueItem, S as SessionTenantGuard } from './types-Dz0dH1XK.js';
10
10
  export { R as RuntimeEnvWindow, c as createRuntimeEnvGetter, g as getRuntimeEnv } from './runtime-env-S2YD-RGu.js';
11
11
  export { T as Theme, a as applyTheme, g as getSystemTheme } from './theme-DzB2eLPh.js';
12
12
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppLoadingSpinner, AppSwitcher, ArchiveProject, AspectRatio, Avatar, AvatarFallback, AvatarImage, BackToConsoleNavigator, Badge, BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonProps, Calendar, CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationModal, ConsoleHeader, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CopyToClipboardButton, CopyToClipboardButtonProps, CopyableSnippet, DEFAULT_KANBAN_COLUMNS, DashboardHeader, DashboardSectionCard, DashboardSectionCardProps, DataTable, DataTableHeaderCell, DateRangePicker, DateRangePickerProps, 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, EditProjectFormSchema, EnvironmentCard, EnvironmentList, ErrorBoundary, ErrorDisplay, ErrorDisplayWithCard, FileInput, FileUploader, FileUploaderContent, FileUploaderItem, FilterChangeHandler, FilterControls, FilterToolBarMobileView, FilterToolbar, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HoverCard, HoverCardContent, HoverCardTrigger, ImportFileModalContent, ImportFileModalContentProps, ImportFileModalDropzoneOptions, InfiniteScroll, InfiniteScroller, InfiniteScrollerProps, InfoTooltip, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, KanbanBoard, KanbanBoardColumn, KanbanBoardContainer, KanbanColumn, KanbanColumnDragData, KanbanColumnId, KanbanTask, KanbanTaskCard, KanbanTaskDragData, Label, LanguageSelector, LoadingButton, Logo, MaskedText, MaskedTextProps, 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, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaginationValue, PasswordInput, PasswordInputProps, Popover, PopoverContent, PopoverTrigger, Progress, ProjectActions, ProjectCardLoadingSkeleton, ProjectDetail, ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, RadioGroup, RadioGroupItem, RenderAlternatively, RenderConditionally, ResizableHandle, ResizablePanel, ResizablePanelGroup, RightSidePanel, RightSidePanelBody, RightSidePanelClose, RightSidePanelDescription, RightSidePanelFooter, RightSidePanelHeader, RightSidePanelProps, RightSidePanelProvider, RightSidePanelProviderProps, RightSidePanelTitle, RightSidePanelTrigger, RightSidePanelTriggerPosition, RightSidePanelTriggerProps, 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, SpinnerProps, StepStatus, Stepper, StepperProps, StepperStep, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableLoadingSkeleton, TablePagination, TablePaginationProps, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeSwitcher, ThemeSwitcherProps, Timeline, TimelineEventBase, TimelineProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UserDropdownMenu, WizardHorizontalTrackBar, WizardStepContent, WizardStepContentProps, WizardStepIndicator, WizardStepViewport, WizardStepViewportProps, WizardStepperContextType, WizardStepperProvider, WizardStepperProviderProps, WizardSteps, WizardVerticalTrackBar, badgeVariants, buttonVariants, editProjectFormDefaultValues, editProjectFormSchema, filteredAppSwitcherData, hasDraggableData, kanbanKeyboardCoordinateGetter, navigationMenuTriggerStyle, paginationQueryParsers, sidebarCollapsedTooltipClass, sortQueryParsers, spinnerVariants, toggleVariants, useFileUpload, useFormField, useNotificationSocket, usePaginationQueryParams, useRightSidePanel, useSortQueryParams, useWizardStepper } from './components/index.js';
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- 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, CollapsibleContent, 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, ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, ProtectedGuard, PublicGuard, PublicLayout, 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, 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 } from './chunk-KA2OOMCU.js';
1
+ 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, CollapsibleContent, 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, ProjectList, ProjectListRowLoadingSkeleton, ProjectOverview, ProjectRepoList, ProtectedGuard, PublicGuard, PublicLayout, 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, 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 } from './chunk-L4V72AAV.js';
2
2
  import './chunk-G24RPSJG.js';
3
3
  import './chunk-FGY7QM3Y.js';
4
4
  import './chunk-R3B6KJB4.js';
@@ -298,11 +298,11 @@ import './chunk-RIYDYKGS.js';
298
298
  import './chunk-WN5PURTO.js';
299
299
  import './chunk-U4FQB2IK.js';
300
300
  import './chunk-B3EJZXGM.js';
301
- export { PROJECTS_STALE_TIME_MS, applyColumnFuseFilters, createFuseSearcher, createQueryKeyFactory, defaultFuseSearchOptions, defaultPathSegmentFormatter, fuseFilter, fuseSearch, fuseSearchWithIndex, getPathSegments, useBlocksAppConfigStore, useBoolean, useCopyToClipboard, useCountDown, useDebounce, useDebouncedFuseFilter, useDisableProject, useFuseIndex, useFuseSearch, useGetAllServices, useGetBlocksNotificationConfig, useGetEnvRepositories, useGetMyOrganizations, useGetNotifications, useGetProject, useGetProjects, useIcon, useImpersonationStatusChecker, useInitiateRedirect, useKeyboardShortcut, useLanguage, useLanguageSwitcher, useLogin, useLogo, useLogout, useMarkAllAsRead, useMarkAsRead, useMediaQuery, usePathSegments, usePopoverWidth, usePrefetchRedirect, useQueryClientKit, useQueryStatesKit, useRecordClaimedTenant, useScopedPath, useSessionTenantGuard, useSignOut, useSignUpAffordance, useSignUpRedirect, useStartImpersonation, useStatusFirstOnTabReturn, useStopImpersonation, useTheme, useUpdateProject, useUpdateRepositories, useUpdateTenantGroup, useValidateCNameProject } from './chunk-3OO2YVXW.js';
301
+ export { PROJECTS_STALE_TIME_MS, applyColumnFuseFilters, createFuseSearcher, createQueryKeyFactory, defaultFuseSearchOptions, defaultPathSegmentFormatter, fuseFilter, fuseSearch, fuseSearchWithIndex, getPathSegments, useBlocksAppConfigStore, useBoolean, useCopyToClipboard, useCountDown, useDebounce, useDebouncedFuseFilter, useDisableProject, useFuseIndex, useFuseSearch, useGetAllServices, useGetBlocksNotificationConfig, useGetEnvRepositories, useGetMyOrganizations, useGetNotifications, useGetProject, useGetProjects, useIcon, useImpersonationStatusChecker, useInitiateRedirect, useKeyboardShortcut, useLanguage, useLanguageSwitcher, useLogin, useLogo, useLogout, useMarkAllAsRead, useMarkAsRead, useMediaQuery, usePathSegments, usePopoverWidth, usePrefetchRedirect, useQueryClientKit, useQueryStatesKit, useRecordClaimedTenant, useScopedPath, useSessionTenantGuard, useSignOut, useSignUpAffordance, useSignUpRedirect, useStartImpersonation, useStatusFirstOnTabReturn, useStopImpersonation, useTheme, useUpdateProject, useUpdateRepositories, useUpdateTenantGroup, useValidateCNameProject } from './chunk-LAWQOHY6.js';
302
302
  export { ErrorTransformer, SERVICE_BASE_URL_KEY, boolean, clearQueryString, compareDates, createCookieStore, createEventEmitter, createSchema, createStorage, debounce, deepClone, deepEqual, deepMerge, domainRegex, formatBytes, formatCurrency, formatDate, formatDuration, formatFileSize, formatFullDate, formatNumber, formatSeconds, generateId, getDomain, getErrorMessage, getForwardedToPath, getProjectBlocksApiUrl, getServiceBaseUrl, getServiceSwaggerUrl, getSubdomain, getUniqueID, groupBy, handleErrorMessages, hasErrorCode, isBoolean, isCreditCard, isEmail, isErrorWithErrors, isNullish, isNumber, isObject, isPhone, isPlainObject, isPostalCode, isPromise, isString, isUrl, isUuid, isValidDate, isValidDomain, isValidSubdomain, memoize, number, omit, parseDateString, parseMongoDBString, parseQueryString, pick, resetQueryString, showErrorToast, showInfoToast, showSuccessToast, sleep, string, stringifyQueryString, subdomainRegex, throttle, uniqueBy } from './chunk-QHNZOBXR.js';
303
303
  import './chunk-T3FFMBIJ.js';
304
304
  import './chunk-6QSPMPJD.js';
305
- export { HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, announceSignOut, claimTenant, clearTenantClaims, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from './chunk-UDFH7SJI.js';
305
+ export { HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, announceSignOut, claimTenant, clearTenantClaims, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from './chunk-OE5T43AS.js';
306
306
  export { HttpError } from './chunk-7ZZ3KLZD.js';
307
307
  export { BlocksAppLayout, DashboardLayoutProvider, QueryProvider, ThemeProvider, Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport, Toaster } from './chunk-ECDNFX6H.js';
308
308
  export { useFilteredMenus, useIsActiveMenu, useIsMobile } from './chunk-AHCHUUXM.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkQBL4VIE4_cjs = require('../chunk-QBL4VIE4.cjs');
3
+ var chunkZVYSSUHO_cjs = require('../chunk-ZVYSSUHO.cjs');
4
4
  require('../chunk-A373J4BR.cjs');
5
5
  require('../chunk-XJ6DPUCV.cjs');
6
6
  require('../chunk-V5XZWLF4.cjs');
@@ -300,11 +300,11 @@ require('../chunk-UN3JTS7M.cjs');
300
300
  require('../chunk-AWO4C2KQ.cjs');
301
301
  require('../chunk-2IHVFBSB.cjs');
302
302
  require('../chunk-LABBAWQE.cjs');
303
- require('../chunk-VLZJP6FH.cjs');
303
+ require('../chunk-P4SL4PTY.cjs');
304
304
  require('../chunk-AIUUCMAI.cjs');
305
305
  require('../chunk-FQ2QETFA.cjs');
306
306
  require('../chunk-GAQGM46C.cjs');
307
- require('../chunk-IPMRZNNS.cjs');
307
+ require('../chunk-A4MVNKXL.cjs');
308
308
  require('../chunk-2MP66EX3.cjs');
309
309
  require('../chunk-CTIGX76P.cjs');
310
310
  require('../chunk-BPJM3L7O.cjs');
@@ -323,31 +323,31 @@ require('../chunk-QJOVCH5A.cjs');
323
323
 
324
324
  Object.defineProperty(exports, "AuthLayout", {
325
325
  enumerable: true,
326
- get: function () { return chunkQBL4VIE4_cjs.AuthLayout; }
326
+ get: function () { return chunkZVYSSUHO_cjs.AuthLayout; }
327
327
  });
328
328
  Object.defineProperty(exports, "ConsoleLayout", {
329
329
  enumerable: true,
330
- get: function () { return chunkQBL4VIE4_cjs.ConsoleLayout; }
330
+ get: function () { return chunkZVYSSUHO_cjs.ConsoleLayout; }
331
331
  });
332
332
  Object.defineProperty(exports, "DashboardLayout", {
333
333
  enumerable: true,
334
- get: function () { return chunkQBL4VIE4_cjs.DashboardLayout; }
334
+ get: function () { return chunkZVYSSUHO_cjs.DashboardLayout; }
335
335
  });
336
336
  Object.defineProperty(exports, "DashboardRoute", {
337
337
  enumerable: true,
338
- get: function () { return chunkQBL4VIE4_cjs.DashboardRoute; }
338
+ get: function () { return chunkZVYSSUHO_cjs.DashboardRoute; }
339
339
  });
340
340
  Object.defineProperty(exports, "OidcLayout", {
341
341
  enumerable: true,
342
- get: function () { return chunkQBL4VIE4_cjs.OidcLayout; }
342
+ get: function () { return chunkZVYSSUHO_cjs.OidcLayout; }
343
343
  });
344
344
  Object.defineProperty(exports, "PublicLayout", {
345
345
  enumerable: true,
346
- get: function () { return chunkQBL4VIE4_cjs.PublicLayout; }
346
+ get: function () { return chunkZVYSSUHO_cjs.PublicLayout; }
347
347
  });
348
348
  Object.defineProperty(exports, "useOidcContext", {
349
349
  enumerable: true,
350
- get: function () { return chunkQBL4VIE4_cjs.useOidcContext; }
350
+ get: function () { return chunkZVYSSUHO_cjs.useOidcContext; }
351
351
  });
352
352
  //# sourceMappingURL=index.cjs.map
353
353
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,4 @@
1
- export { AuthLayout, ConsoleLayout, DashboardLayout, DashboardRoute, OidcLayout, PublicLayout, useOidcContext } from '../chunk-KA2OOMCU.js';
1
+ export { AuthLayout, ConsoleLayout, DashboardLayout, DashboardRoute, OidcLayout, PublicLayout, useOidcContext } from '../chunk-L4V72AAV.js';
2
2
  import '../chunk-G24RPSJG.js';
3
3
  import '../chunk-FGY7QM3Y.js';
4
4
  import '../chunk-R3B6KJB4.js';
@@ -298,11 +298,11 @@ import '../chunk-RIYDYKGS.js';
298
298
  import '../chunk-WN5PURTO.js';
299
299
  import '../chunk-U4FQB2IK.js';
300
300
  import '../chunk-B3EJZXGM.js';
301
- import '../chunk-3OO2YVXW.js';
301
+ import '../chunk-LAWQOHY6.js';
302
302
  import '../chunk-QHNZOBXR.js';
303
303
  import '../chunk-T3FFMBIJ.js';
304
304
  import '../chunk-6QSPMPJD.js';
305
- import '../chunk-UDFH7SJI.js';
305
+ import '../chunk-OE5T43AS.js';
306
306
  import '../chunk-7ZZ3KLZD.js';
307
307
  import '../chunk-ECDNFX6H.js';
308
308
  import '../chunk-AHCHUUXM.js';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkIPMRZNNS_cjs = require('../chunk-IPMRZNNS.cjs');
3
+ var chunkA4MVNKXL_cjs = require('../chunk-A4MVNKXL.cjs');
4
4
  var chunk2MP66EX3_cjs = require('../chunk-2MP66EX3.cjs');
5
5
  var chunkYAF2X7W5_cjs = require('../chunk-YAF2X7W5.cjs');
6
6
  require('../chunk-F2LXD7RI.cjs');
@@ -13,95 +13,95 @@ require('../chunk-QJOVCH5A.cjs');
13
13
 
14
14
  Object.defineProperty(exports, "HttpClient", {
15
15
  enumerable: true,
16
- get: function () { return chunkIPMRZNNS_cjs.HttpClient; }
16
+ get: function () { return chunkA4MVNKXL_cjs.HttpClient; }
17
17
  });
18
18
  Object.defineProperty(exports, "OWNER_PROBE_TIMEOUT_MS", {
19
19
  enumerable: true,
20
- get: function () { return chunkIPMRZNNS_cjs.OWNER_PROBE_TIMEOUT_MS; }
20
+ get: function () { return chunkA4MVNKXL_cjs.OWNER_PROBE_TIMEOUT_MS; }
21
21
  });
22
22
  Object.defineProperty(exports, "TAB_ID", {
23
23
  enumerable: true,
24
- get: function () { return chunkIPMRZNNS_cjs.TAB_ID; }
24
+ get: function () { return chunkA4MVNKXL_cjs.TAB_ID; }
25
25
  });
26
26
  Object.defineProperty(exports, "announceSignOut", {
27
27
  enumerable: true,
28
- get: function () { return chunkIPMRZNNS_cjs.announceSignOut; }
28
+ get: function () { return chunkA4MVNKXL_cjs.announceSignOut; }
29
29
  });
30
30
  Object.defineProperty(exports, "claimTenant", {
31
31
  enumerable: true,
32
- get: function () { return chunkIPMRZNNS_cjs.claimTenant; }
32
+ get: function () { return chunkA4MVNKXL_cjs.claimTenant; }
33
33
  });
34
34
  Object.defineProperty(exports, "clearTenantClaims", {
35
35
  enumerable: true,
36
- get: function () { return chunkIPMRZNNS_cjs.clearTenantClaims; }
36
+ get: function () { return chunkA4MVNKXL_cjs.clearTenantClaims; }
37
37
  });
38
38
  Object.defineProperty(exports, "fadeInScale", {
39
39
  enumerable: true,
40
- get: function () { return chunkIPMRZNNS_cjs.fadeInScale; }
40
+ get: function () { return chunkA4MVNKXL_cjs.fadeInScale; }
41
41
  });
42
42
  Object.defineProperty(exports, "fadeInUp", {
43
43
  enumerable: true,
44
- get: function () { return chunkIPMRZNNS_cjs.fadeInUp; }
44
+ get: function () { return chunkA4MVNKXL_cjs.fadeInUp; }
45
45
  });
46
46
  Object.defineProperty(exports, "fadeTransition", {
47
47
  enumerable: true,
48
- get: function () { return chunkIPMRZNNS_cjs.fadeTransition; }
48
+ get: function () { return chunkA4MVNKXL_cjs.fadeTransition; }
49
49
  });
50
50
  Object.defineProperty(exports, "holdTenant", {
51
51
  enumerable: true,
52
- get: function () { return chunkIPMRZNNS_cjs.holdTenant; }
52
+ get: function () { return chunkA4MVNKXL_cjs.holdTenant; }
53
53
  });
54
54
  Object.defineProperty(exports, "iamClient", {
55
55
  enumerable: true,
56
- get: function () { return chunkIPMRZNNS_cjs.iamClient; }
56
+ get: function () { return chunkA4MVNKXL_cjs.iamClient; }
57
57
  });
58
58
  Object.defineProperty(exports, "isSameClaim", {
59
59
  enumerable: true,
60
- get: function () { return chunkIPMRZNNS_cjs.isSameClaim; }
60
+ get: function () { return chunkA4MVNKXL_cjs.isSameClaim; }
61
61
  });
62
62
  Object.defineProperty(exports, "isTenantHeldElsewhere", {
63
63
  enumerable: true,
64
- get: function () { return chunkIPMRZNNS_cjs.isTenantHeldElsewhere; }
64
+ get: function () { return chunkA4MVNKXL_cjs.isTenantHeldElsewhere; }
65
65
  });
66
66
  Object.defineProperty(exports, "logicClient", {
67
67
  enumerable: true,
68
- get: function () { return chunkIPMRZNNS_cjs.logicClient; }
68
+ get: function () { return chunkA4MVNKXL_cjs.logicClient; }
69
69
  });
70
70
  Object.defineProperty(exports, "motionEase", {
71
71
  enumerable: true,
72
- get: function () { return chunkIPMRZNNS_cjs.motionEase; }
72
+ get: function () { return chunkA4MVNKXL_cjs.motionEase; }
73
73
  });
74
74
  Object.defineProperty(exports, "notificationClient", {
75
75
  enumerable: true,
76
- get: function () { return chunkIPMRZNNS_cjs.notificationClient; }
76
+ get: function () { return chunkA4MVNKXL_cjs.notificationClient; }
77
77
  });
78
78
  Object.defineProperty(exports, "readCurrentOwner", {
79
79
  enumerable: true,
80
- get: function () { return chunkIPMRZNNS_cjs.readCurrentOwner; }
80
+ get: function () { return chunkA4MVNKXL_cjs.readCurrentOwner; }
81
81
  });
82
82
  Object.defineProperty(exports, "resolveBaseUrl", {
83
83
  enumerable: true,
84
- get: function () { return chunkIPMRZNNS_cjs.resolveBaseUrl; }
84
+ get: function () { return chunkA4MVNKXL_cjs.resolveBaseUrl; }
85
85
  });
86
86
  Object.defineProperty(exports, "resolveEnv", {
87
87
  enumerable: true,
88
- get: function () { return chunkIPMRZNNS_cjs.resolveEnv; }
88
+ get: function () { return chunkA4MVNKXL_cjs.resolveEnv; }
89
89
  });
90
90
  Object.defineProperty(exports, "staggerContainer", {
91
91
  enumerable: true,
92
- get: function () { return chunkIPMRZNNS_cjs.staggerContainer; }
92
+ get: function () { return chunkA4MVNKXL_cjs.staggerContainer; }
93
93
  });
94
94
  Object.defineProperty(exports, "staggerItem", {
95
95
  enumerable: true,
96
- get: function () { return chunkIPMRZNNS_cjs.staggerItem; }
96
+ get: function () { return chunkA4MVNKXL_cjs.staggerItem; }
97
97
  });
98
98
  Object.defineProperty(exports, "subscribeToSignOut", {
99
99
  enumerable: true,
100
- get: function () { return chunkIPMRZNNS_cjs.subscribeToSignOut; }
100
+ get: function () { return chunkA4MVNKXL_cjs.subscribeToSignOut; }
101
101
  });
102
102
  Object.defineProperty(exports, "subscribeToTenantClaims", {
103
103
  enumerable: true,
104
- get: function () { return chunkIPMRZNNS_cjs.subscribeToTenantClaims; }
104
+ get: function () { return chunkA4MVNKXL_cjs.subscribeToTenantClaims; }
105
105
  });
106
106
  Object.defineProperty(exports, "HttpError", {
107
107
  enumerable: true,
@@ -1,5 +1,5 @@
1
- import { S as SessionTenantGuard, a as HttpClientConfig, H as HeadersInitValue, b as HttpClientOptions, R as RequestBody } from '../types-CQX9_ck-.cjs';
2
- export { c as HttpError, d as HttpRequestFailure, e as RequestOptions, f as RequestQueueItem } from '../types-CQX9_ck-.cjs';
1
+ import { S as SessionTenantGuard, a as HttpClientConfig, H as HeadersInitValue, b as HttpClientOptions, R as RequestBody } from '../types-VNffHJ1_.cjs';
2
+ export { c as HttpError, d as HttpRequestFailure, e as RequestOptions, f as RequestQueueItem } from '../types-VNffHJ1_.cjs';
3
3
  export { R as RuntimeEnvWindow, c as createRuntimeEnvGetter, g as getRuntimeEnv } from '../runtime-env-BDeaC4ay.cjs';
4
4
  import { ClassValue } from 'clsx';
5
5
  import { Variants, Transition } from 'framer-motion';
@@ -67,6 +67,13 @@ declare class HttpClient {
67
67
  * handled request failure into an unhandled one.
68
68
  */
69
69
  private failRequest;
70
+ /**
71
+ * Decodes a success response. A response without data resolves to the envelope
72
+ * `{ success: true, status }`: 204 and 205 (checked before the content type, since they never
73
+ * carry a body), no content type, and a JSON-branch response with `content-length: 0` or a blank
74
+ * body. JSON is read with `text()` and `JSON.parse`, so an empty body never reaches the parser,
75
+ * while a non-empty body that is not JSON still throws its `SyntaxError`.
76
+ */
70
77
  private parseSuccessResponse;
71
78
  private request;
72
79
  get<T = unknown>(url: string, headers?: HeadersInitValue, options?: HttpClientOptions): Promise<T>;
@@ -1,5 +1,5 @@
1
- import { S as SessionTenantGuard, a as HttpClientConfig, H as HeadersInitValue, b as HttpClientOptions, R as RequestBody } from '../types-D9odiLzd.js';
2
- export { c as HttpError, d as HttpRequestFailure, e as RequestOptions, f as RequestQueueItem } from '../types-D9odiLzd.js';
1
+ import { S as SessionTenantGuard, a as HttpClientConfig, H as HeadersInitValue, b as HttpClientOptions, R as RequestBody } from '../types-Dz0dH1XK.js';
2
+ export { c as HttpError, d as HttpRequestFailure, e as RequestOptions, f as RequestQueueItem } from '../types-Dz0dH1XK.js';
3
3
  export { R as RuntimeEnvWindow, c as createRuntimeEnvGetter, g as getRuntimeEnv } from '../runtime-env-S2YD-RGu.js';
4
4
  import { ClassValue } from 'clsx';
5
5
  import { Variants, Transition } from 'framer-motion';
@@ -67,6 +67,13 @@ declare class HttpClient {
67
67
  * handled request failure into an unhandled one.
68
68
  */
69
69
  private failRequest;
70
+ /**
71
+ * Decodes a success response. A response without data resolves to the envelope
72
+ * `{ success: true, status }`: 204 and 205 (checked before the content type, since they never
73
+ * carry a body), no content type, and a JSON-branch response with `content-length: 0` or a blank
74
+ * body. JSON is read with `text()` and `JSON.parse`, so an empty body never reaches the parser,
75
+ * while a non-empty body that is not JSON still throws its `SyntaxError`.
76
+ */
70
77
  private parseSuccessResponse;
71
78
  private request;
72
79
  get<T = unknown>(url: string, headers?: HeadersInitValue, options?: HttpClientOptions): Promise<T>;
package/dist/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, announceSignOut, claimTenant, clearTenantClaims, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from '../chunk-UDFH7SJI.js';
1
+ export { HttpClient, OWNER_PROBE_TIMEOUT_MS, TAB_ID, announceSignOut, claimTenant, clearTenantClaims, fadeInScale, fadeInUp, fadeTransition, holdTenant, iamClient, isSameClaim, isTenantHeldElsewhere, logicClient, motionEase, notificationClient, readCurrentOwner, resolveBaseUrl, resolveEnv, staggerContainer, staggerItem, subscribeToSignOut, subscribeToTenantClaims } from '../chunk-OE5T43AS.js';
2
2
  export { HttpError } from '../chunk-7ZZ3KLZD.js';
3
3
  export { cn } from '../chunk-3MLPBMH2.js';
4
4
  import '../chunk-BRHE44FE.js';
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/observability/noise-filter.ts","../../src/observability/rollbar.config.ts","../../src/observability/rollbar.instance.ts","../../src/observability/report-query-errors.ts","../../src/observability/rollbar.provider.tsx","../../src/observability/report-http-errors.ts"],"names":["getRuntimeEnv","Rollbar","HttpError","useT","jsxs","jsx","useMemo","useEffect","getQueryClient","Provider","ErrorBoundary"],"mappings":";;;;;;;;;;;;;;;;;;;AA8BA,IAAM,gBAAA,GAAmB;AAAA,EACvB,iDAAA;AAAA,EACA;AACF,CAAA;AAIA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,mBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,sBAAA,GAAyB;AAAA,EAC7B,qBAAA;AAAA,EACA,kBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAGA,IAAM,cAAA,GAAiB;AAAA,EACrB,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,WAAW,CAAC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A,GAAUC,aAAA;AAAA,IACd,MAAM,WAAW,aAAa,CAAA;AAAA;AAAA,IAE9B;AAAC,GACH;AAEA,EAAAC,eAAA;AAAA,IACE,MAAM,yBAAA,CAA0BC,gCAAA,EAAe,EAAG,OAAO,CAAA;AAAA,IACzD,CAAC,OAAO;AAAA,GACV;AAEA,EAAA,uBACEH,cAAA,CAACI,gBAAA,EAAA,EAAS,QAAA,EAAU,OAAA,EAClB,QAAA,kBAAAJ,cAAA,CAACK,qBAAA,EAAA,EAAc,UAAA,EAAY,QAAA,EAAU,KAAA,EAAM,UAAA,EACxC,QAAA,EACH,CAAA,EACF,CAAA;AAEJ;;;AClEO,IAAM,yBAAA,GACX,CAAC,OAAA,KACD,CAAC,OAAA,KAAsC;AACrC,EAAA,IAAI,CAAC,QAAQ,SAAA,EAAW;AACxB,EAAA,IAAI,gBAAA,CAAiB,OAAA,CAAQ,KAAK,CAAA,EAAG;AAErC,EAAA,MAAM,KAAA,GACJ,OAAA,CAAQ,KAAA,YAAiB,KAAA,GACrB,OAAA,CAAQ,KAAA,GACR,IAAI,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AAErC,EAAA,OAAA,CAAQ,MAAM,KAAA,EAAO;AAAA,IACnB,MAAA,EAAQ,aAAA;AAAA,IACR,KAAK,OAAA,CAAQ,GAAA;AAAA,IACb,QAAQ,OAAA,CAAQ;AAAA,GACjB,CAAA;AACH","file":"index.cjs","sourcesContent":["/**\n * Errors the browser raises that say nothing about a Blocks fault, and that Rollbar should therefore\n * never receive.\n *\n * Each rule matches one exact signature seen in production. A broad rule would hide real bugs, so a\n * `TypeError` is noise only with a known network message, and an `InvalidStateError` only when it is\n * about a view transition.\n */\nexport type NoiseRule =\n | \"network\"\n | \"view-transition\"\n | \"extension\"\n | \"cancelation\"\n | \"stale-asset\"\n | \"recaptcha-timeout\";\n\ninterface RollbarTraceLike {\n frames?: unknown[] | null;\n exception?: { class?: unknown; message?: unknown } | null;\n}\n\n/** The parts of a Rollbar item (`item.data`) the rules read. */\nexport interface RollbarPayloadLike {\n body?: {\n trace?: RollbarTraceLike | null;\n trace_chain?: (RollbarTraceLike | null)[] | null;\n message?: { body?: unknown } | null;\n } | null;\n}\n\nconst NETWORK_MESSAGES = [\n \"NetworkError when attempting to fetch resource.\",\n \"Load failed\",\n];\n\n// `AbortError` is listed as the spec lists it, though the network rule, checked first, already\n// drops every `AbortError`.\nconst VIEW_TRANSITION_CLASSES = [\n \"InvalidStateError\",\n \"TimeoutError\",\n \"AbortError\",\n];\n\nconst EXTENSION_URL_PREFIXES = [\n \"chrome-extension://\",\n \"moz-extension://\",\n \"safari-extension://\",\n \"safari-web-extension://\",\n];\n\n// What a bare `Event` turns into once it has been stringified, by Rollbar or by the app.\nconst EVENT_MESSAGES = [\n \"[object Event]\",\n \"[object ErrorEvent]\",\n '{\"isTrusted\":true}',\n];\n\nconst asString = (value: unknown): string | undefined =>\n typeof value === \"string\" ? value : undefined;\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> => {\n if (typeof value !== \"object\" || value === null) return false;\n const prototype: unknown = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n};\n\nconst isEvent = (value: unknown): boolean =>\n typeof Event !== \"undefined\" && value instanceof Event;\n\nconst isExtensionFrame = (frame: unknown): boolean => {\n const filename = (frame as { filename?: unknown } | null)?.filename;\n return (\n typeof filename === \"string\" &&\n EXTENSION_URL_PREFIXES.some((prefix) => filename.startsWith(prefix))\n );\n};\n\nconst classify = (\n value: unknown,\n payload: RollbarPayloadLike | undefined,\n): NoiseRule | null => {\n const body = payload?.body;\n const trace = body?.trace ?? body?.trace_chain?.[0];\n const raw =\n typeof value === \"object\" && value !== null\n ? (value as { name?: unknown; message?: unknown })\n : undefined;\n\n const errorClass =\n asString(raw?.name) ?? asString(trace?.exception?.class) ?? \"\";\n const message =\n asString(raw?.message) ??\n asString(trace?.exception?.message) ??\n asString(body?.message?.body) ??\n \"\";\n const frames = trace?.frames ?? [];\n\n if (\n (errorClass === \"TypeError\" &&\n (message.startsWith(\"Failed to fetch\") ||\n NETWORK_MESSAGES.includes(message))) ||\n errorClass === \"AbortError\"\n )\n return \"network\";\n\n if (\n VIEW_TRANSITION_CLASSES.includes(errorClass) &&\n message.toLowerCase().includes(\"transition\")\n )\n return \"view-transition\";\n\n // Every frame, not any: an extension frame on top of app frames is still the app's stack.\n if (frames.length > 0 && frames.every(isExtensionFrame)) return \"extension\";\n\n if (\n (errorClass === \"Canceled\" && message === \"Canceled\") ||\n (isPlainObject(value) && value.type === \"cancelation\")\n )\n return \"cancelation\";\n\n if (\n message.startsWith(\n \"Failed to execute 'importScripts' on 'WorkerGlobalScope'\",\n ) ||\n message === \"Object.hasOwn is not a function\" ||\n isEvent(value) ||\n EVENT_MESSAGES.includes(message)\n )\n return \"stale-asset\";\n\n if (message.startsWith(\"reCAPTCHA Timeout\")) return \"recaptcha-timeout\";\n\n return null;\n};\n\n/**\n * Names the noise rule `value` matches, or `null` when it should be reported.\n *\n * `value` is the raw thrown value (an `Error`, a `DOMException`, an `Event`, a plain object). The\n * Rollbar payload, when given, fills in the class, message and stack frames the value does not\n * carry. Fails open: if reading either one throws, the item is reported.\n */\nexport const classifyReportingNoise = (\n value: unknown,\n payload?: RollbarPayloadLike,\n): NoiseRule | null => {\n try {\n return classify(value, payload);\n } catch {\n return null;\n }\n};\n\n/** True for a browser network failure or an aborted request: nothing the app can fix. */\nexport const isNetworkFailure = (error: unknown): boolean =>\n classifyReportingNoise(error) === \"network\";\n","import Rollbar from \"rollbar\";\nimport { getRuntimeEnv } from \"@/lib/runtime-env\";\nimport { classifyReportingNoise } from \"./noise-filter\";\n\n/**\n * Payload keys and header names that must never leave the browser.\n *\n * Rollbar scrubs a default set already; these are the platform-specific ones. Getting this wrong\n * ships a tenant's credentials to a third party, which is why it lives here rather than being\n * restated in every app.\n */\nconst DEFAULT_SCRUB_FIELDS = [\n \"x-blocks-key\",\n \"X-Blocks-Key\",\n \"Authorization\",\n \"authorization\",\n \"access_token\",\n \"refresh_token\",\n \"accessToken\",\n \"refreshToken\",\n \"password\",\n \"clientSecret\",\n \"client_secret\",\n \"connectionString\",\n \"secretValue\",\n];\n\n/**\n * Noise that reaches `window.onerror` but says nothing about the app: browser extensions,\n * cross-origin frames, and the ResizeObserver warning Chrome raises during ordinary layout.\n */\nconst DEFAULT_IGNORED_MESSAGES = [\n \"ResizeObserver loop limit exceeded\",\n \"ResizeObserver loop completed with undelivered notifications\",\n \"Script error.\",\n];\n\n/**\n * Stands in for a real token when none is seeded.\n *\n * `@rollbar/react`'s `Provider` rejects an instance whose `options.accessToken` is falsy -- it\n * throws \"`instance` must be a configured instance of Rollbar\" from its own constructor, which is\n * above the error boundary, so an unconfigured app renders nothing at all. Reporting is switched\n * off by `enabled`, not by the token: the notifier refuses to send before it reaches a transport\n * and telemetry instrumentation is never installed. A placeholder therefore costs nothing and\n * keeps reporting genuinely optional, which is the point -- no tier should go blank because a\n * secret has not been seeded yet.\n */\nexport const UNCONFIGURED_ACCESS_TOKEN = \"rollbar-reporting-disabled\";\n\n/**\n * Rollbar's `checkIgnore`: drops browser noise before it is sent (see `noise-filter.ts`).\n *\n * For uncaught errors and unhandled rejections Rollbar passes `[message, error, ...]`, so the raw\n * value is `args[1]`; for `rollbar.error(err, ...)` it is `args[0]`. Kept a single expression:\n * Rollbar copies the function's source into every item it does send.\n */\nconst ignoreNoise: NonNullable<Rollbar.Configuration[\"checkIgnore\"]> = (\n isUncaught,\n args,\n payload,\n) =>\n classifyReportingNoise(\n isUncaught ? (args?.[1] ?? args?.[0]) : args?.[0],\n payload,\n ) !== null;\n\nexport interface RollbarConfigOptions {\n /**\n * The app reporting, e.g. `\"blocks-os\"`. Pass the same name the app already gives\n * `BlocksAppLayout`, so items can be traced back to a service without a project-id lookup.\n */\n service: string;\n /** Appended to, not replacing, the platform scrub list. */\n extraScrubFields?: string[];\n /** Appended to, not replacing, the default ignore list. */\n extraIgnoredMessages?: string[];\n /** Identifies the build. Required for source-map deobfuscation once maps are uploaded. */\n codeVersion?: string;\n}\n\n/**\n * Builds the browser Rollbar configuration from runtime env.\n *\n * Separate from the provider so it can be asserted on directly: most of the risk in this module is\n * in the configuration -- scrubbing, and whether reporting is on at all -- not in Rollbar itself.\n */\nexport const createRollbarConfig = (\n options: RollbarConfigOptions,\n): Rollbar.Configuration => {\n const accessToken = getRuntimeEnv(\"BLOCKS_ROLLBAR_CLIENT_TOKEN\");\n\n return {\n accessToken: accessToken || UNCONFIGURED_ACCESS_TOKEN,\n // Reporting is opt-in on a seeded token. Unconfigured environments -- developer machines,\n // tests, any tier not yet seeded -- get an inert client rather than a broken one, so the error\n // boundary still behaves exactly as it does in production.\n enabled: accessToken.length > 0,\n environment: getRuntimeEnv(\"BLOCKS_ROLLBAR_ENV\") || \"unknown\",\n captureUncaught: true,\n captureUnhandledRejections: true,\n scrubFields: [...DEFAULT_SCRUB_FIELDS, ...(options.extraScrubFields ?? [])],\n ignoredMessages: [\n ...DEFAULT_IGNORED_MESSAGES,\n ...(options.extraIgnoredMessages ?? []),\n ],\n checkIgnore: ignoreNoise,\n payload: {\n // Under `custom`, not at the root of `data`. Rollbar recognises a fixed set of top-level\n // fields and gives unknown ones \"no special handling\" -- they are stored but not indexed as\n // custom metadata, so a root-level `service` is neither queryable nor in the same place the\n // .NET side puts it. Here both sides land at `data.custom.*`, which is also where a webhook\n // receiver finds them: `data.item.last_occurrence.custom.service`.\n //\n // `service` identifies the app and `component` which half of it, as two fields rather than\n // one `blocks-os-client` string, so either can be filtered on without parsing.\n custom: {\n service: options.service,\n component: \"client\",\n },\n client: {\n javascript: {\n source_map_enabled: Boolean(options.codeVersion),\n code_version: options.codeVersion,\n },\n },\n },\n };\n};\n","import Rollbar from \"rollbar\";\nimport {\n createRollbarConfig,\n type RollbarConfigOptions,\n} from \"./rollbar.config\";\n\nlet instance: Rollbar | undefined;\n\n/**\n * The one Rollbar instance for the app.\n *\n * Memoised on first call so that code outside the React tree -- an `HttpClient` built at module\n * scope, for instance -- reports through the same client the provider renders. A second instance\n * would install a second set of window handlers and split the telemetry buffer in two.\n *\n * First call wins: later calls return the existing instance and ignore their options. In practice\n * every call site passes the same service, and load order between a module-scope client and the\n * provider is not something an app should have to reason about.\n *\n * Created lazily, so merely importing this module installs nothing.\n */\nexport const getRollbar = (options: RollbarConfigOptions): Rollbar =>\n (instance ??= new Rollbar(createRollbarConfig(options)));\n","import type { QueryClient } from \"@tanstack/react-query\";\nimport type Rollbar from \"rollbar\";\nimport { HttpError } from \"@/lib/http/error\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Reports errors thrown inside query and mutation functions that are not request failures.\n *\n * Narrow on purpose. Every failure from `HttpClient` arrives as an `HttpError` and is skipped here:\n * transport failures are already handled by `createHttpFailureReporter`, and HTTP statuses are\n * either business outcomes or faults the server reported itself. What remains is a genuine bug in a\n * query function -- a bad mapping, a null dereference on a response -- which React Query catches\n * and stores as query state, so it never reaches `window.onerror` and would otherwise be invisible.\n *\n * Returns an unsubscribe function.\n */\nexport const attachQueryErrorReporting = (\n queryClient: QueryClient,\n rollbar: Rollbar,\n): (() => void) => {\n const report = (error: unknown, context: Record<string, unknown>) => {\n if (error instanceof HttpError) return;\n // Belt and braces: an HttpError that crossed a module boundary may fail `instanceof`.\n if (typeof (error as { status?: unknown })?.status === \"number\") return;\n // A raw `fetch` in a query function rejects with the browser's own network error.\n if (isNetworkFailure(error)) return;\n\n rollbar.error(error instanceof Error ? error : new Error(String(error)), {\n source: \"react-query\",\n ...context,\n });\n };\n\n const unsubscribeQueries = queryClient.getQueryCache().subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"query\",\n queryHash: event.query.queryHash,\n });\n });\n\n const unsubscribeMutations = queryClient\n .getMutationCache()\n .subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"mutation\",\n mutationKey: event.mutation.options.mutationKey,\n });\n });\n\n return () => {\n unsubscribeQueries();\n unsubscribeMutations();\n };\n};\n","import { ErrorBoundary, Provider } from \"@rollbar/react\";\nimport { useEffect, useMemo, type ComponentType, type ReactNode } from \"react\";\nimport { getQueryClient } from \"@/providers/query-client\";\nimport { attachQueryErrorReporting } from \"./report-query-errors\";\nimport { type RollbarConfigOptions } from \"./rollbar.config\";\nimport { getRollbar } from \"./rollbar.instance\";\nimport { useT } from \"@/i18n/use-t\";\n\nexport interface RollbarFallbackProps {\n error: Error | null;\n resetError: () => void;\n}\n\n/**\n * Shown instead of a blank page when a render throws. Deliberately plain: it has to render when the\n * app's own state is already known-bad, so it depends only on theme tokens and its i18n keys, which\n * fall back to the bundled English when nothing else loads.\n */\nconst DefaultFallback = ({ resetError }: RollbarFallbackProps) => {\n const { t } = useT(\"genesis.shared\");\n return (\n <div\n className=\"flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center\"\n role=\"alert\"\n >\n <div className=\"space-y-1\">\n <p className=\"text-lg font-semibold text-foreground\">\n {t(\"ROLLBAR_FALLBACK.TITLE\")}\n </p>\n <p className=\"text-sm text-medium-emphasis\">\n {t(\"ROLLBAR_FALLBACK.MESSAGE\")}\n </p>\n </div>\n <button\n onClick={resetError}\n className=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\"\n >\n {t(\"ROLLBAR_FALLBACK.TRY_AGAIN\")}\n </button>\n </div>\n );\n};\n\nexport interface RollbarProviderProps extends RollbarConfigOptions {\n children: ReactNode;\n /** Replaces the built-in crash screen. */\n fallback?: ComponentType<RollbarFallbackProps>;\n}\n\n/**\n * Puts Rollbar in front of the whole tree.\n *\n * Mount this outermost -- above the query, theme and router providers -- so a throw during their\n * own setup is still caught and reported rather than blanking the page.\n *\n * Reporting is inert until a client token is seeded (see `createRollbarConfig`), but the boundary is\n * always live, so the crash screen behaves identically in local development and in production.\n *\n * Covers uncaught errors, unhandled rejections, render crashes, and bugs thrown inside query\n * functions. Request failures are not covered here: pass `createHttpFailureReporter` to your\n * `HttpClient` as `onError` for those.\n */\nexport const RollbarProvider = ({\n children,\n fallback = DefaultFallback,\n ...configOptions\n}: RollbarProviderProps) => {\n // Shared with anything reporting from outside the tree, and stable for the life of the app:\n // reconstructing it on re-render would reinstall the window handlers and drop Rollbar's own\n // telemetry buffer.\n const rollbar = useMemo(\n () => getRollbar(configOptions),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(\n () => attachQueryErrorReporting(getQueryClient(), rollbar),\n [rollbar],\n );\n\n return (\n <Provider instance={rollbar}>\n <ErrorBoundary fallbackUI={fallback} level=\"critical\">\n {children}\n </ErrorBoundary>\n </Provider>\n );\n};\n","import type Rollbar from \"rollbar\";\nimport type { HttpRequestFailure } from \"@/lib/http/types\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Builds an `onError` handler for `HttpClientConfig` that reports only transport failures that are\n * not browser network failures.\n *\n * Failures that produced an HTTP response are skipped deliberately: a 4xx is a business outcome the\n * UI already surfaces, and a 5xx has already been reported by the server with a real stack trace,\n * so reporting it again from the browser only buries the better item.\n *\n * Browser network failures are skipped too (`isNetworkFailure`: offline, DNS, CORS, TLS and aborted\n * requests all surface as `TypeError: Failed to fetch` and its Firefox/Safari equivalents, or as an\n * `AbortError`). They come from the user's connection rather than from Blocks, and an outage shows\n * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to\n * parse, a throw inside the client itself -- is a client fault the server cannot see.\n *\n * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so\n * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out\n * cannot tell the two apart.\n */\nexport const createHttpFailureReporter =\n (rollbar: Rollbar) =>\n (failure: HttpRequestFailure): void => {\n if (!failure.transport) return;\n if (isNetworkFailure(failure.error)) return;\n\n const error =\n failure.error instanceof Error\n ? failure.error\n : new Error(String(failure.error));\n\n rollbar.error(error, {\n source: \"http-client\",\n url: failure.url,\n method: failure.method,\n });\n };\n"]}
1
+ {"version":3,"sources":["../../src/observability/noise-filter.ts","../../src/observability/rollbar.config.ts","../../src/observability/rollbar.instance.ts","../../src/observability/report-query-errors.ts","../../src/observability/rollbar.provider.tsx","../../src/observability/report-http-errors.ts"],"names":["getRuntimeEnv","Rollbar","HttpError","useT","jsxs","jsx","useMemo","useEffect","getQueryClient","Provider","ErrorBoundary"],"mappings":";;;;;;;;;;;;;;;;;;;AA8BA,IAAM,gBAAA,GAAmB;AAAA,EACvB,iDAAA;AAAA,EACA;AACF,CAAA;AAIA,IAAM,uBAAA,GAA0B;AAAA,EAC9B,mBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,sBAAA,GAAyB;AAAA,EAC7B,qBAAA;AAAA,EACA,kBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAGA,IAAM,cAAA,GAAiB;AAAA,EACrB,gBAAA;AAAA,EACA,qBAAA;AAAA,EACA;AACF,CAAA;AAEA,IAAM,WAAW,CAAC,KAAA,KAChB,OAAO,KAAA,KAAU,WAAW,KAAA,GAAQ,MAAA;AAEtC,IAAM,aAAA,GAAgB,CAAC,KAAA,KAAqD;AAC1E,EAAA,IAAI,OAAO,KAAA,KAAU,QAAA,IAAY,KAAA,KAAU,MAAM,OAAO,KAAA;AACxD,EAAA,MAAM,SAAA,GAAqB,MAAA,CAAO,cAAA,CAAe,KAAK,CAAA;AACtD,EAAA,OAAO,SAAA,KAAc,MAAA,CAAO,SAAA,IAAa,SAAA,KAAc,IAAA;AACzD,CAAA;AAEA,IAAM,UAAU,CAAC,KAAA,KACf,OAAO,KAAA,KAAU,eAAe,KAAA,YAAiB,KAAA;AAEnD,IAAM,gBAAA,GAAmB,CAAC,KAAA,KAA4B;AACpD,EAAA,MAAM,WAAY,KAAA,EAAyC,QAAA;AAC3D,EAAA,OACE,OAAO,QAAA,KAAa,QAAA,IACpB,sBAAA,CAAuB,IAAA,CAAK,CAAC,MAAA,KAAW,QAAA,CAA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OAAA,CAAQ,KAAA,YAAiB,KAAA,GACrB,OAAA,CAAQ,KAAA,GACR,IAAI,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAC,CAAA;AAErC,EAAA,OAAA,CAAQ,MAAM,KAAA,EAAO;AAAA,IACnB,MAAA,EAAQ,aAAA;AAAA,IACR,KAAK,OAAA,CAAQ,GAAA;AAAA,IACb,QAAQ,OAAA,CAAQ;AAAA,GACjB,CAAA;AACH","file":"index.cjs","sourcesContent":["/**\n * Errors the browser raises that say nothing about a Blocks fault, and that Rollbar should therefore\n * never receive.\n *\n * Each rule matches one exact signature seen in production. A broad rule would hide real bugs, so a\n * `TypeError` is noise only with a known network message, and an `InvalidStateError` only when it is\n * about a view transition.\n */\nexport type NoiseRule =\n | \"network\"\n | \"view-transition\"\n | \"extension\"\n | \"cancelation\"\n | \"stale-asset\"\n | \"recaptcha-timeout\";\n\ninterface RollbarTraceLike {\n frames?: unknown[] | null;\n exception?: { class?: unknown; message?: unknown } | null;\n}\n\n/** The parts of a Rollbar item (`item.data`) the rules read. */\nexport interface RollbarPayloadLike {\n body?: {\n trace?: RollbarTraceLike | null;\n trace_chain?: (RollbarTraceLike | null)[] | null;\n message?: { body?: unknown } | null;\n } | null;\n}\n\nconst NETWORK_MESSAGES = [\n \"NetworkError when attempting to fetch resource.\",\n \"Load failed\",\n];\n\n// `AbortError` is listed as the spec lists it, though the network rule, checked first, already\n// drops every `AbortError`.\nconst VIEW_TRANSITION_CLASSES = [\n \"InvalidStateError\",\n \"TimeoutError\",\n \"AbortError\",\n];\n\nconst EXTENSION_URL_PREFIXES = [\n \"chrome-extension://\",\n \"moz-extension://\",\n \"safari-extension://\",\n \"safari-web-extension://\",\n];\n\n// What a bare `Event` turns into once it has been stringified, by Rollbar or by the app.\nconst EVENT_MESSAGES = [\n \"[object Event]\",\n \"[object ErrorEvent]\",\n '{\"isTrusted\":true}',\n];\n\nconst asString = (value: unknown): string | undefined =>\n typeof value === \"string\" ? value : undefined;\n\nconst isPlainObject = (value: unknown): value is Record<string, unknown> => {\n if (typeof value !== \"object\" || value === null) return false;\n const prototype: unknown = Object.getPrototypeOf(value);\n return prototype === Object.prototype || prototype === null;\n};\n\nconst isEvent = (value: unknown): boolean =>\n typeof Event !== \"undefined\" && value instanceof Event;\n\nconst isExtensionFrame = (frame: unknown): boolean => {\n const filename = (frame as { filename?: unknown } | null)?.filename;\n return (\n typeof filename === \"string\" &&\n EXTENSION_URL_PREFIXES.some((prefix) => filename.startsWith(prefix))\n );\n};\n\nconst classify = (\n value: unknown,\n payload: RollbarPayloadLike | undefined,\n): NoiseRule | null => {\n const body = payload?.body;\n const trace = body?.trace ?? body?.trace_chain?.[0];\n const raw =\n typeof value === \"object\" && value !== null\n ? (value as { name?: unknown; message?: unknown })\n : undefined;\n\n const errorClass =\n asString(raw?.name) ?? asString(trace?.exception?.class) ?? \"\";\n const message =\n asString(raw?.message) ??\n asString(trace?.exception?.message) ??\n asString(body?.message?.body) ??\n \"\";\n const frames = trace?.frames ?? [];\n\n if (\n (errorClass === \"TypeError\" &&\n (message.startsWith(\"Failed to fetch\") ||\n NETWORK_MESSAGES.includes(message))) ||\n errorClass === \"AbortError\"\n )\n return \"network\";\n\n if (\n VIEW_TRANSITION_CLASSES.includes(errorClass) &&\n message.toLowerCase().includes(\"transition\")\n )\n return \"view-transition\";\n\n // Every frame, not any: an extension frame on top of app frames is still the app's stack.\n if (frames.length > 0 && frames.every(isExtensionFrame)) return \"extension\";\n\n if (\n (errorClass === \"Canceled\" && message === \"Canceled\") ||\n (isPlainObject(value) && value.type === \"cancelation\")\n )\n return \"cancelation\";\n\n if (\n message.startsWith(\n \"Failed to execute 'importScripts' on 'WorkerGlobalScope'\",\n ) ||\n message === \"Object.hasOwn is not a function\" ||\n isEvent(value) ||\n EVENT_MESSAGES.includes(message)\n )\n return \"stale-asset\";\n\n if (message.startsWith(\"reCAPTCHA Timeout\")) return \"recaptcha-timeout\";\n\n return null;\n};\n\n/**\n * Names the noise rule `value` matches, or `null` when it should be reported.\n *\n * `value` is the raw thrown value (an `Error`, a `DOMException`, an `Event`, a plain object). The\n * Rollbar payload, when given, fills in the class, message and stack frames the value does not\n * carry. Fails open: if reading either one throws, the item is reported.\n */\nexport const classifyReportingNoise = (\n value: unknown,\n payload?: RollbarPayloadLike,\n): NoiseRule | null => {\n try {\n return classify(value, payload);\n } catch {\n return null;\n }\n};\n\n/** True for a browser network failure or an aborted request: nothing the app can fix. */\nexport const isNetworkFailure = (error: unknown): boolean =>\n classifyReportingNoise(error) === \"network\";\n","import Rollbar from \"rollbar\";\nimport { getRuntimeEnv } from \"@/lib/runtime-env\";\nimport { classifyReportingNoise } from \"./noise-filter\";\n\n/**\n * Payload keys and header names that must never leave the browser.\n *\n * Rollbar scrubs a default set already; these are the platform-specific ones. Getting this wrong\n * ships a tenant's credentials to a third party, which is why it lives here rather than being\n * restated in every app.\n */\nconst DEFAULT_SCRUB_FIELDS = [\n \"x-blocks-key\",\n \"X-Blocks-Key\",\n \"Authorization\",\n \"authorization\",\n \"access_token\",\n \"refresh_token\",\n \"accessToken\",\n \"refreshToken\",\n \"password\",\n \"clientSecret\",\n \"client_secret\",\n \"connectionString\",\n \"secretValue\",\n];\n\n/**\n * Noise that reaches `window.onerror` but says nothing about the app: browser extensions,\n * cross-origin frames, and the ResizeObserver warning Chrome raises during ordinary layout.\n */\nconst DEFAULT_IGNORED_MESSAGES = [\n \"ResizeObserver loop limit exceeded\",\n \"ResizeObserver loop completed with undelivered notifications\",\n \"Script error.\",\n];\n\n/**\n * Stands in for a real token when none is seeded.\n *\n * `@rollbar/react`'s `Provider` rejects an instance whose `options.accessToken` is falsy -- it\n * throws \"`instance` must be a configured instance of Rollbar\" from its own constructor, which is\n * above the error boundary, so an unconfigured app renders nothing at all. Reporting is switched\n * off by `enabled`, not by the token: the notifier refuses to send before it reaches a transport\n * and telemetry instrumentation is never installed. A placeholder therefore costs nothing and\n * keeps reporting genuinely optional, which is the point -- no tier should go blank because a\n * secret has not been seeded yet.\n */\nexport const UNCONFIGURED_ACCESS_TOKEN = \"rollbar-reporting-disabled\";\n\n/**\n * Rollbar's `checkIgnore`: drops browser noise before it is sent (see `noise-filter.ts`).\n *\n * For uncaught errors and unhandled rejections Rollbar passes `[message, error, ...]`, so the raw\n * value is `args[1]`; for `rollbar.error(err, ...)` it is `args[0]`. Kept a single expression:\n * Rollbar copies the function's source into every item it does send.\n */\nconst ignoreNoise: NonNullable<Rollbar.Configuration[\"checkIgnore\"]> = (\n isUncaught,\n args,\n payload,\n) =>\n classifyReportingNoise(\n isUncaught ? (args?.[1] ?? args?.[0]) : args?.[0],\n payload,\n ) !== null;\n\nexport interface RollbarConfigOptions {\n /**\n * The app reporting, e.g. `\"blocks-os\"`. Pass the same name the app already gives\n * `BlocksAppLayout`, so items can be traced back to a service without a project-id lookup.\n */\n service: string;\n /** Appended to, not replacing, the platform scrub list. */\n extraScrubFields?: string[];\n /** Appended to, not replacing, the default ignore list. */\n extraIgnoredMessages?: string[];\n /** Identifies the build. Required for source-map deobfuscation once maps are uploaded. */\n codeVersion?: string;\n}\n\n/**\n * Builds the browser Rollbar configuration from runtime env.\n *\n * Separate from the provider so it can be asserted on directly: most of the risk in this module is\n * in the configuration -- scrubbing, and whether reporting is on at all -- not in Rollbar itself.\n */\nexport const createRollbarConfig = (\n options: RollbarConfigOptions,\n): Rollbar.Configuration => {\n const accessToken = getRuntimeEnv(\"BLOCKS_ROLLBAR_CLIENT_TOKEN\");\n\n return {\n accessToken: accessToken || UNCONFIGURED_ACCESS_TOKEN,\n // Reporting is opt-in on a seeded token. Unconfigured environments -- developer machines,\n // tests, any tier not yet seeded -- get an inert client rather than a broken one, so the error\n // boundary still behaves exactly as it does in production.\n enabled: accessToken.length > 0,\n environment: getRuntimeEnv(\"BLOCKS_ROLLBAR_ENV\") || \"unknown\",\n captureUncaught: true,\n captureUnhandledRejections: true,\n scrubFields: [...DEFAULT_SCRUB_FIELDS, ...(options.extraScrubFields ?? [])],\n ignoredMessages: [\n ...DEFAULT_IGNORED_MESSAGES,\n ...(options.extraIgnoredMessages ?? []),\n ],\n checkIgnore: ignoreNoise,\n payload: {\n // Under `custom`, not at the root of `data`. Rollbar recognises a fixed set of top-level\n // fields and gives unknown ones \"no special handling\" -- they are stored but not indexed as\n // custom metadata, so a root-level `service` is neither queryable nor in the same place the\n // .NET side puts it. Here both sides land at `data.custom.*`, which is also where a webhook\n // receiver finds them: `data.item.last_occurrence.custom.service`.\n //\n // `service` identifies the app and `component` which half of it, as two fields rather than\n // one `blocks-os-client` string, so either can be filtered on without parsing.\n custom: {\n service: options.service,\n component: \"client\",\n },\n client: {\n javascript: {\n source_map_enabled: Boolean(options.codeVersion),\n code_version: options.codeVersion,\n },\n },\n },\n };\n};\n","import Rollbar from \"rollbar\";\nimport {\n createRollbarConfig,\n type RollbarConfigOptions,\n} from \"./rollbar.config\";\n\nlet instance: Rollbar | undefined;\n\n/**\n * The one Rollbar instance for the app.\n *\n * Memoised on first call so that code outside the React tree -- an `HttpClient` built at module\n * scope, for instance -- reports through the same client the provider renders. A second instance\n * would install a second set of window handlers and split the telemetry buffer in two.\n *\n * First call wins: later calls return the existing instance and ignore their options. In practice\n * every call site passes the same service, and load order between a module-scope client and the\n * provider is not something an app should have to reason about.\n *\n * Created lazily, so merely importing this module installs nothing.\n */\nexport const getRollbar = (options: RollbarConfigOptions): Rollbar =>\n (instance ??= new Rollbar(createRollbarConfig(options)));\n","import type { QueryClient } from \"@tanstack/react-query\";\nimport type Rollbar from \"rollbar\";\nimport { HttpError } from \"@/lib/http/error\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Reports errors thrown inside query and mutation functions that are not request failures.\n *\n * Narrow on purpose. Every failure from `HttpClient` arrives as an `HttpError` and is skipped here:\n * transport failures are already handled by `createHttpFailureReporter`, and HTTP statuses are\n * either business outcomes or faults the server reported itself. What remains is a genuine bug in a\n * query function -- a bad mapping, a null dereference on a response -- which React Query catches\n * and stores as query state, so it never reaches `window.onerror` and would otherwise be invisible.\n *\n * Returns an unsubscribe function.\n */\nexport const attachQueryErrorReporting = (\n queryClient: QueryClient,\n rollbar: Rollbar,\n): (() => void) => {\n const report = (error: unknown, context: Record<string, unknown>) => {\n if (error instanceof HttpError) return;\n // Belt and braces: an HttpError that crossed a module boundary may fail `instanceof`.\n if (typeof (error as { status?: unknown })?.status === \"number\") return;\n // A raw `fetch` in a query function rejects with the browser's own network error.\n if (isNetworkFailure(error)) return;\n\n rollbar.error(error instanceof Error ? error : new Error(String(error)), {\n source: \"react-query\",\n ...context,\n });\n };\n\n const unsubscribeQueries = queryClient.getQueryCache().subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"query\",\n queryHash: event.query.queryHash,\n });\n });\n\n const unsubscribeMutations = queryClient\n .getMutationCache()\n .subscribe((event) => {\n if (event.type !== \"updated\" || event.action.type !== \"error\") return;\n\n report(event.action.error, {\n kind: \"mutation\",\n mutationKey: event.mutation.options.mutationKey,\n });\n });\n\n return () => {\n unsubscribeQueries();\n unsubscribeMutations();\n };\n};\n","import { ErrorBoundary, Provider } from \"@rollbar/react\";\nimport { useEffect, useMemo, type ComponentType, type ReactNode } from \"react\";\nimport { getQueryClient } from \"@/providers/query-client\";\nimport { attachQueryErrorReporting } from \"./report-query-errors\";\nimport { type RollbarConfigOptions } from \"./rollbar.config\";\nimport { getRollbar } from \"./rollbar.instance\";\nimport { useT } from \"@/i18n/use-t\";\n\nexport interface RollbarFallbackProps {\n error: Error | null;\n resetError: () => void;\n}\n\n/**\n * Shown instead of a blank page when a render throws. Deliberately plain: it has to render when the\n * app's own state is already known-bad, so it depends only on theme tokens and its i18n keys, which\n * fall back to the bundled English when nothing else loads.\n */\nconst DefaultFallback = ({ resetError }: RollbarFallbackProps) => {\n const { t } = useT(\"genesis.shared\");\n return (\n <div\n className=\"flex min-h-screen flex-col items-center justify-center gap-4 bg-background px-6 text-center\"\n role=\"alert\"\n >\n <div className=\"space-y-1\">\n <p className=\"text-lg font-semibold text-foreground\">\n {t(\"ROLLBAR_FALLBACK.TITLE\")}\n </p>\n <p className=\"text-sm text-medium-emphasis\">\n {t(\"ROLLBAR_FALLBACK.MESSAGE\")}\n </p>\n </div>\n <button\n onClick={resetError}\n className=\"rounded-md bg-primary px-4 py-2 text-sm font-medium text-primary-foreground\"\n >\n {t(\"ROLLBAR_FALLBACK.TRY_AGAIN\")}\n </button>\n </div>\n );\n};\n\nexport interface RollbarProviderProps extends RollbarConfigOptions {\n children: ReactNode;\n /** Replaces the built-in crash screen. */\n fallback?: ComponentType<RollbarFallbackProps>;\n}\n\n/**\n * Puts Rollbar in front of the whole tree.\n *\n * Mount this outermost -- above the query, theme and router providers -- so a throw during their\n * own setup is still caught and reported rather than blanking the page.\n *\n * Reporting is inert until a client token is seeded (see `createRollbarConfig`), but the boundary is\n * always live, so the crash screen behaves identically in local development and in production.\n *\n * Covers uncaught errors, unhandled rejections, render crashes, and bugs thrown inside query\n * functions. Request failures are not covered here: pass `createHttpFailureReporter` to your\n * `HttpClient` as `onError` for those.\n */\nexport const RollbarProvider = ({\n children,\n fallback = DefaultFallback,\n ...configOptions\n}: RollbarProviderProps) => {\n // Shared with anything reporting from outside the tree, and stable for the life of the app:\n // reconstructing it on re-render would reinstall the window handlers and drop Rollbar's own\n // telemetry buffer.\n const rollbar = useMemo(\n () => getRollbar(configOptions),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [],\n );\n\n useEffect(\n () => attachQueryErrorReporting(getQueryClient(), rollbar),\n [rollbar],\n );\n\n return (\n <Provider instance={rollbar}>\n <ErrorBoundary fallbackUI={fallback} level=\"critical\">\n {children}\n </ErrorBoundary>\n </Provider>\n );\n};\n","import type Rollbar from \"rollbar\";\nimport type { HttpRequestFailure } from \"@/lib/http/types\";\nimport { isNetworkFailure } from \"./noise-filter\";\n\n/**\n * Builds an `onError` handler for `HttpClientConfig` that reports only transport failures that are\n * not browser network failures.\n *\n * Failures that produced an HTTP response are skipped deliberately: a 4xx is a business outcome the\n * UI already surfaces, and a 5xx has already been reported by the server with a real stack trace,\n * so reporting it again from the browser only buries the better item.\n *\n * Browser network failures are skipped too (`isNetworkFailure`: offline, DNS, CORS, TLS and aborted\n * requests all surface as `TypeError: Failed to fetch` and its Firefox/Safari equivalents, or as an\n * `AbortError`). They come from the user's connection rather than from Blocks, and an outage shows\n * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to\n * parse, a throw inside the client itself -- is a client fault the server cannot see.\n *\n * A success response without data never reaches this reporter: `HttpClient` resolves 204, 205,\n * `content-length: 0` and blank bodies to `{ success: true, status }`. A non-empty success body\n * that is not valid JSON is reported once, as a transport failure carrying the `SyntaxError`.\n *\n * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so\n * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out\n * cannot tell the two apart.\n */\nexport const createHttpFailureReporter =\n (rollbar: Rollbar) =>\n (failure: HttpRequestFailure): void => {\n if (!failure.transport) return;\n if (isNetworkFailure(failure.error)) return;\n\n const error =\n failure.error instanceof Error\n ? failure.error\n : new Error(String(failure.error));\n\n rollbar.error(error, {\n source: \"http-client\",\n url: failure.url,\n method: failure.method,\n });\n };\n"]}
@@ -1,7 +1,7 @@
1
1
  import Rollbar from 'rollbar';
2
2
  import * as React from 'react';
3
3
  import { ReactNode, ComponentType } from 'react';
4
- import { d as HttpRequestFailure } from '../types-CQX9_ck-.cjs';
4
+ import { d as HttpRequestFailure } from '../types-VNffHJ1_.cjs';
5
5
  import { QueryClient } from '@tanstack/react-query';
6
6
  import '../auth.model-BHLqtZG5.cjs';
7
7
  import '../user.model-D-yeFp-2.cjs';
@@ -130,6 +130,10 @@ declare const RollbarProvider: ({ children, fallback, ...configOptions }: Rollba
130
130
  * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to
131
131
  * parse, a throw inside the client itself -- is a client fault the server cannot see.
132
132
  *
133
+ * A success response without data never reaches this reporter: `HttpClient` resolves 204, 205,
134
+ * `content-length: 0` and blank bodies to `{ success: true, status }`. A non-empty success body
135
+ * that is not valid JSON is reported once, as a transport failure carrying the `SyntaxError`.
136
+ *
133
137
  * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so
134
138
  * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out
135
139
  * cannot tell the two apart.
@@ -1,7 +1,7 @@
1
1
  import Rollbar from 'rollbar';
2
2
  import * as React from 'react';
3
3
  import { ReactNode, ComponentType } from 'react';
4
- import { d as HttpRequestFailure } from '../types-D9odiLzd.js';
4
+ import { d as HttpRequestFailure } from '../types-Dz0dH1XK.js';
5
5
  import { QueryClient } from '@tanstack/react-query';
6
6
  import '../auth.model-6We_OkEZ.js';
7
7
  import '../user.model-jYC7Cd3G.js';
@@ -130,6 +130,10 @@ declare const RollbarProvider: ({ children, fallback, ...configOptions }: Rollba
130
130
  * up in server-side 5xx items and uptime monitoring instead. What is left -- a body that fails to
131
131
  * parse, a throw inside the client itself -- is a client fault the server cannot see.
132
132
  *
133
+ * A success response without data never reaches this reporter: `HttpClient` resolves 204, 205,
134
+ * `content-length: 0` and blank bodies to `{ success: true, status }`. A non-empty success body
135
+ * that is not valid JSON is reported once, as a transport failure carrying the `SyntaxError`.
136
+ *
133
137
  * `HttpClient` normalises every failure to an `HttpError` with status 500 before callers see it, so
134
138
  * this distinction only exists inside the `onError` hook. Reporting from a `catch` further out
135
139
  * cannot tell the two apart.