@cupcodev/ui 8.1.1 → 8.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1752 -1326
- package/dist/index.d.cts +44 -4
- package/dist/index.d.ts +44 -4
- package/dist/index.js +1583 -1164
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -153,6 +153,25 @@ type Props = {
|
|
|
153
153
|
};
|
|
154
154
|
declare const DockWrapper: React__default.FC<Props>;
|
|
155
155
|
|
|
156
|
+
type LoginHistorySession = {
|
|
157
|
+
id: string;
|
|
158
|
+
createdAt?: string | null;
|
|
159
|
+
lastSeen?: string | null;
|
|
160
|
+
expiresAt?: string | null;
|
|
161
|
+
ip?: string | null;
|
|
162
|
+
userAgent?: string | null;
|
|
163
|
+
active?: boolean | null;
|
|
164
|
+
};
|
|
165
|
+
declare const resolveAccountsApiBaseUrl: () => string;
|
|
166
|
+
declare const parseBrowserFromUserAgent: (userAgent?: string | null) => string;
|
|
167
|
+
declare const parseOsFromUserAgent: (userAgent?: string | null) => string | null;
|
|
168
|
+
declare const normalizeLoginHistorySessions: (value: unknown) => LoginHistorySession[];
|
|
169
|
+
declare const isLoginHistorySessionActive: (session: LoginHistorySession, now?: number) => boolean;
|
|
170
|
+
declare function fetchAccountsLoginHistory(options?: {
|
|
171
|
+
accountsApiBaseUrl?: string;
|
|
172
|
+
getAccessToken?: () => Promise<string>;
|
|
173
|
+
}): Promise<LoginHistorySession[]>;
|
|
174
|
+
|
|
156
175
|
type UserMenuTabId = "profile" | "settings" | "logout";
|
|
157
176
|
type UserPresenceStatus$1 = "online" | "away" | "busy" | "lunch" | "call" | "coding" | "designing" | "offline";
|
|
158
177
|
type UserMenuLanguage = "pt-BR" | "en-US" | "es-ES";
|
|
@@ -192,6 +211,9 @@ type UserMenuCupcodeProps = {
|
|
|
192
211
|
isTwoFactorStatusLoading?: boolean;
|
|
193
212
|
recentActivity?: UserMenuRecentActivity[];
|
|
194
213
|
isRecentActivityLoading?: boolean;
|
|
214
|
+
loginHistorySessions?: LoginHistorySession[];
|
|
215
|
+
isLoginHistoryLoading?: boolean;
|
|
216
|
+
getAccountsAccessToken?: () => Promise<string>;
|
|
195
217
|
telescupBaseUrl?: string;
|
|
196
218
|
getTelescupAccessToken?: () => Promise<string>;
|
|
197
219
|
appVersion?: string;
|
|
@@ -895,6 +917,17 @@ declare const VideoWatchButton: React__default.ForwardRefExoticComponent<Omit<Re
|
|
|
895
917
|
label?: string;
|
|
896
918
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
897
919
|
|
|
920
|
+
type LoginHistoryCupcodeProps = {
|
|
921
|
+
sessions?: LoginHistorySession[];
|
|
922
|
+
isLoading?: boolean;
|
|
923
|
+
emptyLabel?: string;
|
|
924
|
+
loadingLabel?: string;
|
|
925
|
+
className?: string;
|
|
926
|
+
variant?: "default" | "compact";
|
|
927
|
+
maxItems?: number;
|
|
928
|
+
};
|
|
929
|
+
declare const LoginHistoryCupcode: ({ sessions, isLoading, emptyLabel, loadingLabel, className, variant, maxItems, }: LoginHistoryCupcodeProps) => react_jsx_runtime.JSX.Element;
|
|
930
|
+
|
|
898
931
|
declare const TooltipProvider$1: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
899
932
|
declare const TooltipCupcode: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
900
933
|
declare const TooltipTrigger$1: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1775,8 +1808,8 @@ declare const getTelescupOidcToken: () => Promise<string | null>;
|
|
|
1775
1808
|
declare const ensureTelescupOidcToken: () => Promise<string>;
|
|
1776
1809
|
declare const completeTelescupOidcCallback: () => Promise<CallbackResult>;
|
|
1777
1810
|
|
|
1778
|
-
type CupcodeRuntimeEnvValue = string | number | boolean | null | undefined;
|
|
1779
|
-
type CupcodeRuntimeEnv = Record<string, CupcodeRuntimeEnvValue>;
|
|
1811
|
+
type CupcodeRuntimeEnvValue$1 = string | number | boolean | null | undefined;
|
|
1812
|
+
type CupcodeRuntimeEnv = Record<string, CupcodeRuntimeEnvValue$1>;
|
|
1780
1813
|
declare const CUPCODE_APP_VERSION_ENV_KEY = "CUPCODE_APP_VERSION";
|
|
1781
1814
|
declare const CUPCODE_APP_VERSION_ENV_KEYS: readonly ["CUPCODE_APP_VERSION", "VITE_APP_VERSION", "APP_VERSION", "NEXT_PUBLIC_APP_VERSION", "REACT_APP_VERSION"];
|
|
1782
1815
|
declare const USER_PRESENCE_SOURCE_COLUMN_ENV_KEY = "VITE_USER_PRESENCE_SOURCE_COLUMN";
|
|
@@ -1790,6 +1823,13 @@ declare const setCupcodeRuntimeEnv: (values: CupcodeRuntimeEnv) => void;
|
|
|
1790
1823
|
declare const getRuntimeEnv: (key: string) => string | undefined;
|
|
1791
1824
|
declare const getRuntimeEnvOr: (key: string, fallback: string) => string;
|
|
1792
1825
|
declare const isRuntimeDev: () => boolean;
|
|
1793
|
-
declare const resolveCupcodeAppVersion: (explicitVersion?: CupcodeRuntimeEnvValue) => string | undefined;
|
|
1826
|
+
declare const resolveCupcodeAppVersion: (explicitVersion?: CupcodeRuntimeEnvValue$1) => string | undefined;
|
|
1827
|
+
|
|
1828
|
+
type CupcodeRuntimeEnvValue = string | undefined;
|
|
1829
|
+
type CupcodeRuntimeEnvRecord = Record<string, CupcodeRuntimeEnvValue>;
|
|
1830
|
+
declare const cupcodeRuntimeEnv: CupcodeRuntimeEnvRecord;
|
|
1831
|
+
declare global {
|
|
1832
|
+
var __CUPCODE_ENV__: CupcodeRuntimeEnvRecord | undefined;
|
|
1833
|
+
}
|
|
1794
1834
|
|
|
1795
|
-
export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, type AccountsAuthConfig, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ThemeToggle as AnimatedThemeToggle, type ThemeToggleProps as AnimatedThemeToggleProps, AppSidebar, type AppSidebarGroup, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AuthContextValue, AuthProvider, type AuthStatus, type AuthUser, type UserPresenceStatus as AuthUserPresenceStatus, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, type AvatarWithStatusProps, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, CUPCODE_APP_VERSION_ENV_KEY, CUPCODE_APP_VERSION_ENV_KEYS, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, type ClickCoords, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, AccordionContent$1 as CupcodeAccordionContent, AccordionItem$1 as CupcodeAccordionItem, AccordionTrigger$1 as CupcodeAccordionTrigger, Avatar$1 as CupcodeAvatar, AvatarFallback$1 as CupcodeAvatarFallback, AvatarImage$1 as CupcodeAvatarImage, type StatusType as CupcodeAvatarStatus, Badge$1 as CupcodeBadge, type CupcodeRuntimeEnv, type CupcodeRuntimeEnvValue, Select$1 as CupcodeSelect, SelectContent$1 as CupcodeSelectContent, SelectGroup$1 as CupcodeSelectGroup, SelectItem$1 as CupcodeSelectItem, SelectTrigger$1 as CupcodeSelectTrigger, SelectValue$1 as CupcodeSelectValue, Skeleton$1 as CupcodeSkeleton, type SkeletonProps as CupcodeSkeletonProps, SkeletonText as CupcodeSkeletonText, Switch$1 as CupcodeSwitch, Tabs$1 as CupcodeTabs, TabsContent$1 as CupcodeTabsContent, TabsList$1 as CupcodeTabsList, TabsTrigger$1 as CupcodeTabsTrigger, TooltipContent$1 as CupcodeTooltipContent, TooltipProvider$1 as CupcodeTooltipProvider, TooltipTrigger$1 as CupcodeTooltipTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, type DockButton, type DockCard, type DockCategory, type DockItem, type DockProps, DockWrapper, 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, EXPERIENCE_SETTINGS_STORAGE_KEY, EmptyState, type EnqueueResult, ErrorBoundary, Eyebrow, FooterCupcode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, type JellyButtonProps, LEGACY_THEME_STORAGE_KEY, Label, type LayoutMode, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, MainLayout, type MainLayoutProps, MainNavbar, type MainNavbarAuthUser, type MainNavbarProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, type NavItem, NavbarCupcode, type NavbarCupcodeProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PRESENCE_ACTIVITY_THROTTLE_MS_ENV_KEY, PRESENCE_HEARTBEAT_INTERVAL_MS_ENV_KEY, PRESENCE_IDLE_TIMEOUT_MS_ENV_KEY, PRESENCE_OFFLINE_TIMEOUT_MS_ENV_KEY, PRESENCE_RUNTIME_ENV_KEYS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, TabsContent as PrimitiveTabsContent, TabsList as PrimitiveTabsList, TabsTrigger as PrimitiveTabsTrigger, Tooltip as PrimitiveTooltip, TooltipContent as PrimitiveTooltipContent, TooltipProvider as PrimitiveTooltipProvider, TooltipTrigger as PrimitiveTooltipTrigger, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResolveTelescupImageOptions, type ResponsiveSize, ScrollArea, ScrollBar, ScrollbarArea, type ScrollbarAreaProps, type ScrollbarColor, type ScrollbarThemeMode, ScrollbarThemeProvider, type ScrollbarThemeProviderProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton$1 as Skeleton, SkeletonText, Slider, Toaster$1 as SonnerToaster, type StatusType, type StoredThemeMode, type StoredThemePreference, Switch, SwitchField, type SwitchFieldProps, THEME_PREFERENCE_CHANGE_EVENT, THEME_PREFERENCE_STORAGE_KEY, THEME_STORAGE_KEY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, TagGroup, type TagGroupProps, type TelescupAsset, TelescupAssetPicker, type TelescupAssetPickerProps, type TelescupAssetType, type TelescupAssetsListResponse, type TelescupClient, type TelescupClientConfig, TelescupClientError, type TelescupFilters, TelescupImage, type TelescupLanguage, type TelescupMeta$1 as TelescupMeta, type TelescupUpdateMetaRequest, type TelescupUpdateMetaResponse, TelescupUpload, type TelescupUploadCompleteRequest, type TelescupUploadCompleteResponse, type TelescupUploadInitRequest, type TelescupUploadInitResponse, type TelescupUploadLabels, type TelescupUploadProps, TelescupUploader, type TelescupUploaderProps, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, type Theme, ThemeBackground, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, ThemeScript, ThemeToggle$1 as ThemeToggle, Timeline, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastCupcode, type ToastCupcodeProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type TokenResponse, TooltipCupcode as Tooltip, TooltipContent$1 as TooltipContent, TooltipCupcode, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, USER_PRESENCE_LAST_ACTIVE_COLUMN_ENV_KEY, USER_PRESENCE_SOURCE_COLUMN_ENV_KEY, type UploadConflictPolicy, type UploadPolicy, type UploadQueueItem, type UploadQueueStatus, type UseTelescupAssetsOptions, type UseTelescupUploadQueueOptions, UserMenuCupcode, type UserMenuCupcodeProps, type UserMenuLanguage, type UserMenuRecentActivity, type UserMenuTabId, type UserPresenceStatus$1 as UserPresenceStatus, VideoWatchButton, type VideoWatchButtonProps, abortStaleOidcFlow, badgeVariants, buildAuthorizeUrl, buildLogoutUrl, buildSidebarGroupsFromNavItems, buildTelescupImageURL, buildTelescupVideoURL, clearOidcContinueCookie, clearTelescupOidcTokens, cn, completeTelescupOidcCallback, createTelescupClient, decodeJwt, defaultSidebarGroups, ensureTelescupOidcToken, exchangeCodeForToken, generateCodeChallenge, generateCodeVerifier, generateNonce, generateState, getAccountsConfig, getMainNavItems, getRuntimeEnv, getRuntimeEnvOr, getSupabase, getSupabasePublic, getTelescupOidcToken, hasPendingOidcFlow, invalidateTelescupAssetsCache, isRuntimeDev, isStoredThemeMode, navigationMenuTriggerStyle, normalizeStoredThemePreference, parseAssetId, parseStoredThemePreference, persistThemePreferenceSelection, readStoredLayoutMode, readStoredThemeMode, reducer, refreshTokens, resolveAppliedThemeMode, resolveCupcodeAppVersion, resolveOidcEndpoints, resolveStoredThemePreference, resolveSystemThemeMode, resolveTelescupImageURL, responsiveSizeClasses, setCupcodeRuntimeEnv, slugify, toast, toggleVariants, useActiveSection, useAppTheme, useAuth, useBreakpoint, useFormField, useIsMobile, useLayoutMode, useLayoutModeControl, useSidebar, useTelescupAssets, useTelescupImage, useTelescupMeta, useTelescupUploadQueue, useToast, writeStoredLayoutMode };
|
|
1835
|
+
export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, type AccountsAuthConfig, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ThemeToggle as AnimatedThemeToggle, type ThemeToggleProps as AnimatedThemeToggleProps, AppSidebar, type AppSidebarGroup, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AuthContextValue, AuthProvider, type AuthStatus, type AuthUser, type UserPresenceStatus as AuthUserPresenceStatus, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, type AvatarWithStatusProps, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, CUPCODE_APP_VERSION_ENV_KEY, CUPCODE_APP_VERSION_ENV_KEYS, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, type ClickCoords, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, AccordionContent$1 as CupcodeAccordionContent, AccordionItem$1 as CupcodeAccordionItem, AccordionTrigger$1 as CupcodeAccordionTrigger, Avatar$1 as CupcodeAvatar, AvatarFallback$1 as CupcodeAvatarFallback, AvatarImage$1 as CupcodeAvatarImage, type StatusType as CupcodeAvatarStatus, Badge$1 as CupcodeBadge, type CupcodeRuntimeEnv, type CupcodeRuntimeEnvValue$1 as CupcodeRuntimeEnvValue, Select$1 as CupcodeSelect, SelectContent$1 as CupcodeSelectContent, SelectGroup$1 as CupcodeSelectGroup, SelectItem$1 as CupcodeSelectItem, SelectTrigger$1 as CupcodeSelectTrigger, SelectValue$1 as CupcodeSelectValue, Skeleton$1 as CupcodeSkeleton, type SkeletonProps as CupcodeSkeletonProps, SkeletonText as CupcodeSkeletonText, Switch$1 as CupcodeSwitch, Tabs$1 as CupcodeTabs, TabsContent$1 as CupcodeTabsContent, TabsList$1 as CupcodeTabsList, TabsTrigger$1 as CupcodeTabsTrigger, TooltipContent$1 as CupcodeTooltipContent, TooltipProvider$1 as CupcodeTooltipProvider, TooltipTrigger$1 as CupcodeTooltipTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, type DockButton, type DockCard, type DockCategory, type DockItem, type DockProps, DockWrapper, 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, EXPERIENCE_SETTINGS_STORAGE_KEY, EmptyState, type EnqueueResult, ErrorBoundary, Eyebrow, FooterCupcode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, type JellyButtonProps, LEGACY_THEME_STORAGE_KEY, Label, type LayoutMode, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, LoginHistoryCupcode, type LoginHistoryCupcodeProps, type LoginHistorySession, MainLayout, type MainLayoutProps, MainNavbar, type MainNavbarAuthUser, type MainNavbarProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, type NavItem, NavbarCupcode, type NavbarCupcodeProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PRESENCE_ACTIVITY_THROTTLE_MS_ENV_KEY, PRESENCE_HEARTBEAT_INTERVAL_MS_ENV_KEY, PRESENCE_IDLE_TIMEOUT_MS_ENV_KEY, PRESENCE_OFFLINE_TIMEOUT_MS_ENV_KEY, PRESENCE_RUNTIME_ENV_KEYS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, TabsContent as PrimitiveTabsContent, TabsList as PrimitiveTabsList, TabsTrigger as PrimitiveTabsTrigger, Tooltip as PrimitiveTooltip, TooltipContent as PrimitiveTooltipContent, TooltipProvider as PrimitiveTooltipProvider, TooltipTrigger as PrimitiveTooltipTrigger, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResolveTelescupImageOptions, type ResponsiveSize, ScrollArea, ScrollBar, ScrollbarArea, type ScrollbarAreaProps, type ScrollbarColor, type ScrollbarThemeMode, ScrollbarThemeProvider, type ScrollbarThemeProviderProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton$1 as Skeleton, SkeletonText, Slider, Toaster$1 as SonnerToaster, type StatusType, type StoredThemeMode, type StoredThemePreference, Switch, SwitchField, type SwitchFieldProps, THEME_PREFERENCE_CHANGE_EVENT, THEME_PREFERENCE_STORAGE_KEY, THEME_STORAGE_KEY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, TagGroup, type TagGroupProps, type TelescupAsset, TelescupAssetPicker, type TelescupAssetPickerProps, type TelescupAssetType, type TelescupAssetsListResponse, type TelescupClient, type TelescupClientConfig, TelescupClientError, type TelescupFilters, TelescupImage, type TelescupLanguage, type TelescupMeta$1 as TelescupMeta, type TelescupUpdateMetaRequest, type TelescupUpdateMetaResponse, TelescupUpload, type TelescupUploadCompleteRequest, type TelescupUploadCompleteResponse, type TelescupUploadInitRequest, type TelescupUploadInitResponse, type TelescupUploadLabels, type TelescupUploadProps, TelescupUploader, type TelescupUploaderProps, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, type Theme, ThemeBackground, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, ThemeScript, ThemeToggle$1 as ThemeToggle, Timeline, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastCupcode, type ToastCupcodeProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type TokenResponse, TooltipCupcode as Tooltip, TooltipContent$1 as TooltipContent, TooltipCupcode, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, USER_PRESENCE_LAST_ACTIVE_COLUMN_ENV_KEY, USER_PRESENCE_SOURCE_COLUMN_ENV_KEY, type UploadConflictPolicy, type UploadPolicy, type UploadQueueItem, type UploadQueueStatus, type UseTelescupAssetsOptions, type UseTelescupUploadQueueOptions, UserMenuCupcode, type UserMenuCupcodeProps, type UserMenuLanguage, type UserMenuRecentActivity, type UserMenuTabId, type UserPresenceStatus$1 as UserPresenceStatus, VideoWatchButton, type VideoWatchButtonProps, abortStaleOidcFlow, badgeVariants, buildAuthorizeUrl, buildLogoutUrl, buildSidebarGroupsFromNavItems, buildTelescupImageURL, buildTelescupVideoURL, clearOidcContinueCookie, clearTelescupOidcTokens, cn, completeTelescupOidcCallback, createTelescupClient, cupcodeRuntimeEnv, decodeJwt, defaultSidebarGroups, ensureTelescupOidcToken, exchangeCodeForToken, fetchAccountsLoginHistory, generateCodeChallenge, generateCodeVerifier, generateNonce, generateState, getAccountsConfig, getMainNavItems, getRuntimeEnv, getRuntimeEnvOr, getSupabase, getSupabasePublic, getTelescupOidcToken, hasPendingOidcFlow, invalidateTelescupAssetsCache, isLoginHistorySessionActive, isRuntimeDev, isStoredThemeMode, navigationMenuTriggerStyle, normalizeLoginHistorySessions, normalizeStoredThemePreference, parseAssetId, parseBrowserFromUserAgent, parseOsFromUserAgent, parseStoredThemePreference, persistThemePreferenceSelection, readStoredLayoutMode, readStoredThemeMode, reducer, refreshTokens, resolveAccountsApiBaseUrl, resolveAppliedThemeMode, resolveCupcodeAppVersion, resolveOidcEndpoints, resolveStoredThemePreference, resolveSystemThemeMode, resolveTelescupImageURL, responsiveSizeClasses, setCupcodeRuntimeEnv, slugify, toast, toggleVariants, useActiveSection, useAppTheme, useAuth, useBreakpoint, useFormField, useIsMobile, useLayoutMode, useLayoutModeControl, useSidebar, useTelescupAssets, useTelescupImage, useTelescupMeta, useTelescupUploadQueue, useToast, writeStoredLayoutMode };
|
package/dist/index.d.ts
CHANGED
|
@@ -153,6 +153,25 @@ type Props = {
|
|
|
153
153
|
};
|
|
154
154
|
declare const DockWrapper: React__default.FC<Props>;
|
|
155
155
|
|
|
156
|
+
type LoginHistorySession = {
|
|
157
|
+
id: string;
|
|
158
|
+
createdAt?: string | null;
|
|
159
|
+
lastSeen?: string | null;
|
|
160
|
+
expiresAt?: string | null;
|
|
161
|
+
ip?: string | null;
|
|
162
|
+
userAgent?: string | null;
|
|
163
|
+
active?: boolean | null;
|
|
164
|
+
};
|
|
165
|
+
declare const resolveAccountsApiBaseUrl: () => string;
|
|
166
|
+
declare const parseBrowserFromUserAgent: (userAgent?: string | null) => string;
|
|
167
|
+
declare const parseOsFromUserAgent: (userAgent?: string | null) => string | null;
|
|
168
|
+
declare const normalizeLoginHistorySessions: (value: unknown) => LoginHistorySession[];
|
|
169
|
+
declare const isLoginHistorySessionActive: (session: LoginHistorySession, now?: number) => boolean;
|
|
170
|
+
declare function fetchAccountsLoginHistory(options?: {
|
|
171
|
+
accountsApiBaseUrl?: string;
|
|
172
|
+
getAccessToken?: () => Promise<string>;
|
|
173
|
+
}): Promise<LoginHistorySession[]>;
|
|
174
|
+
|
|
156
175
|
type UserMenuTabId = "profile" | "settings" | "logout";
|
|
157
176
|
type UserPresenceStatus$1 = "online" | "away" | "busy" | "lunch" | "call" | "coding" | "designing" | "offline";
|
|
158
177
|
type UserMenuLanguage = "pt-BR" | "en-US" | "es-ES";
|
|
@@ -192,6 +211,9 @@ type UserMenuCupcodeProps = {
|
|
|
192
211
|
isTwoFactorStatusLoading?: boolean;
|
|
193
212
|
recentActivity?: UserMenuRecentActivity[];
|
|
194
213
|
isRecentActivityLoading?: boolean;
|
|
214
|
+
loginHistorySessions?: LoginHistorySession[];
|
|
215
|
+
isLoginHistoryLoading?: boolean;
|
|
216
|
+
getAccountsAccessToken?: () => Promise<string>;
|
|
195
217
|
telescupBaseUrl?: string;
|
|
196
218
|
getTelescupAccessToken?: () => Promise<string>;
|
|
197
219
|
appVersion?: string;
|
|
@@ -895,6 +917,17 @@ declare const VideoWatchButton: React__default.ForwardRefExoticComponent<Omit<Re
|
|
|
895
917
|
label?: string;
|
|
896
918
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
897
919
|
|
|
920
|
+
type LoginHistoryCupcodeProps = {
|
|
921
|
+
sessions?: LoginHistorySession[];
|
|
922
|
+
isLoading?: boolean;
|
|
923
|
+
emptyLabel?: string;
|
|
924
|
+
loadingLabel?: string;
|
|
925
|
+
className?: string;
|
|
926
|
+
variant?: "default" | "compact";
|
|
927
|
+
maxItems?: number;
|
|
928
|
+
};
|
|
929
|
+
declare const LoginHistoryCupcode: ({ sessions, isLoading, emptyLabel, loadingLabel, className, variant, maxItems, }: LoginHistoryCupcodeProps) => react_jsx_runtime.JSX.Element;
|
|
930
|
+
|
|
898
931
|
declare const TooltipProvider$1: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
899
932
|
declare const TooltipCupcode: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
900
933
|
declare const TooltipTrigger$1: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1775,8 +1808,8 @@ declare const getTelescupOidcToken: () => Promise<string | null>;
|
|
|
1775
1808
|
declare const ensureTelescupOidcToken: () => Promise<string>;
|
|
1776
1809
|
declare const completeTelescupOidcCallback: () => Promise<CallbackResult>;
|
|
1777
1810
|
|
|
1778
|
-
type CupcodeRuntimeEnvValue = string | number | boolean | null | undefined;
|
|
1779
|
-
type CupcodeRuntimeEnv = Record<string, CupcodeRuntimeEnvValue>;
|
|
1811
|
+
type CupcodeRuntimeEnvValue$1 = string | number | boolean | null | undefined;
|
|
1812
|
+
type CupcodeRuntimeEnv = Record<string, CupcodeRuntimeEnvValue$1>;
|
|
1780
1813
|
declare const CUPCODE_APP_VERSION_ENV_KEY = "CUPCODE_APP_VERSION";
|
|
1781
1814
|
declare const CUPCODE_APP_VERSION_ENV_KEYS: readonly ["CUPCODE_APP_VERSION", "VITE_APP_VERSION", "APP_VERSION", "NEXT_PUBLIC_APP_VERSION", "REACT_APP_VERSION"];
|
|
1782
1815
|
declare const USER_PRESENCE_SOURCE_COLUMN_ENV_KEY = "VITE_USER_PRESENCE_SOURCE_COLUMN";
|
|
@@ -1790,6 +1823,13 @@ declare const setCupcodeRuntimeEnv: (values: CupcodeRuntimeEnv) => void;
|
|
|
1790
1823
|
declare const getRuntimeEnv: (key: string) => string | undefined;
|
|
1791
1824
|
declare const getRuntimeEnvOr: (key: string, fallback: string) => string;
|
|
1792
1825
|
declare const isRuntimeDev: () => boolean;
|
|
1793
|
-
declare const resolveCupcodeAppVersion: (explicitVersion?: CupcodeRuntimeEnvValue) => string | undefined;
|
|
1826
|
+
declare const resolveCupcodeAppVersion: (explicitVersion?: CupcodeRuntimeEnvValue$1) => string | undefined;
|
|
1827
|
+
|
|
1828
|
+
type CupcodeRuntimeEnvValue = string | undefined;
|
|
1829
|
+
type CupcodeRuntimeEnvRecord = Record<string, CupcodeRuntimeEnvValue>;
|
|
1830
|
+
declare const cupcodeRuntimeEnv: CupcodeRuntimeEnvRecord;
|
|
1831
|
+
declare global {
|
|
1832
|
+
var __CUPCODE_ENV__: CupcodeRuntimeEnvRecord | undefined;
|
|
1833
|
+
}
|
|
1794
1834
|
|
|
1795
|
-
export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, type AccountsAuthConfig, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ThemeToggle as AnimatedThemeToggle, type ThemeToggleProps as AnimatedThemeToggleProps, AppSidebar, type AppSidebarGroup, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AuthContextValue, AuthProvider, type AuthStatus, type AuthUser, type UserPresenceStatus as AuthUserPresenceStatus, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, type AvatarWithStatusProps, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, CUPCODE_APP_VERSION_ENV_KEY, CUPCODE_APP_VERSION_ENV_KEYS, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, type ClickCoords, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, AccordionContent$1 as CupcodeAccordionContent, AccordionItem$1 as CupcodeAccordionItem, AccordionTrigger$1 as CupcodeAccordionTrigger, Avatar$1 as CupcodeAvatar, AvatarFallback$1 as CupcodeAvatarFallback, AvatarImage$1 as CupcodeAvatarImage, type StatusType as CupcodeAvatarStatus, Badge$1 as CupcodeBadge, type CupcodeRuntimeEnv, type CupcodeRuntimeEnvValue, Select$1 as CupcodeSelect, SelectContent$1 as CupcodeSelectContent, SelectGroup$1 as CupcodeSelectGroup, SelectItem$1 as CupcodeSelectItem, SelectTrigger$1 as CupcodeSelectTrigger, SelectValue$1 as CupcodeSelectValue, Skeleton$1 as CupcodeSkeleton, type SkeletonProps as CupcodeSkeletonProps, SkeletonText as CupcodeSkeletonText, Switch$1 as CupcodeSwitch, Tabs$1 as CupcodeTabs, TabsContent$1 as CupcodeTabsContent, TabsList$1 as CupcodeTabsList, TabsTrigger$1 as CupcodeTabsTrigger, TooltipContent$1 as CupcodeTooltipContent, TooltipProvider$1 as CupcodeTooltipProvider, TooltipTrigger$1 as CupcodeTooltipTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, type DockButton, type DockCard, type DockCategory, type DockItem, type DockProps, DockWrapper, 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, EXPERIENCE_SETTINGS_STORAGE_KEY, EmptyState, type EnqueueResult, ErrorBoundary, Eyebrow, FooterCupcode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, type JellyButtonProps, LEGACY_THEME_STORAGE_KEY, Label, type LayoutMode, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, MainLayout, type MainLayoutProps, MainNavbar, type MainNavbarAuthUser, type MainNavbarProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, type NavItem, NavbarCupcode, type NavbarCupcodeProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PRESENCE_ACTIVITY_THROTTLE_MS_ENV_KEY, PRESENCE_HEARTBEAT_INTERVAL_MS_ENV_KEY, PRESENCE_IDLE_TIMEOUT_MS_ENV_KEY, PRESENCE_OFFLINE_TIMEOUT_MS_ENV_KEY, PRESENCE_RUNTIME_ENV_KEYS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, TabsContent as PrimitiveTabsContent, TabsList as PrimitiveTabsList, TabsTrigger as PrimitiveTabsTrigger, Tooltip as PrimitiveTooltip, TooltipContent as PrimitiveTooltipContent, TooltipProvider as PrimitiveTooltipProvider, TooltipTrigger as PrimitiveTooltipTrigger, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResolveTelescupImageOptions, type ResponsiveSize, ScrollArea, ScrollBar, ScrollbarArea, type ScrollbarAreaProps, type ScrollbarColor, type ScrollbarThemeMode, ScrollbarThemeProvider, type ScrollbarThemeProviderProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton$1 as Skeleton, SkeletonText, Slider, Toaster$1 as SonnerToaster, type StatusType, type StoredThemeMode, type StoredThemePreference, Switch, SwitchField, type SwitchFieldProps, THEME_PREFERENCE_CHANGE_EVENT, THEME_PREFERENCE_STORAGE_KEY, THEME_STORAGE_KEY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, TagGroup, type TagGroupProps, type TelescupAsset, TelescupAssetPicker, type TelescupAssetPickerProps, type TelescupAssetType, type TelescupAssetsListResponse, type TelescupClient, type TelescupClientConfig, TelescupClientError, type TelescupFilters, TelescupImage, type TelescupLanguage, type TelescupMeta$1 as TelescupMeta, type TelescupUpdateMetaRequest, type TelescupUpdateMetaResponse, TelescupUpload, type TelescupUploadCompleteRequest, type TelescupUploadCompleteResponse, type TelescupUploadInitRequest, type TelescupUploadInitResponse, type TelescupUploadLabels, type TelescupUploadProps, TelescupUploader, type TelescupUploaderProps, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, type Theme, ThemeBackground, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, ThemeScript, ThemeToggle$1 as ThemeToggle, Timeline, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastCupcode, type ToastCupcodeProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type TokenResponse, TooltipCupcode as Tooltip, TooltipContent$1 as TooltipContent, TooltipCupcode, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, USER_PRESENCE_LAST_ACTIVE_COLUMN_ENV_KEY, USER_PRESENCE_SOURCE_COLUMN_ENV_KEY, type UploadConflictPolicy, type UploadPolicy, type UploadQueueItem, type UploadQueueStatus, type UseTelescupAssetsOptions, type UseTelescupUploadQueueOptions, UserMenuCupcode, type UserMenuCupcodeProps, type UserMenuLanguage, type UserMenuRecentActivity, type UserMenuTabId, type UserPresenceStatus$1 as UserPresenceStatus, VideoWatchButton, type VideoWatchButtonProps, abortStaleOidcFlow, badgeVariants, buildAuthorizeUrl, buildLogoutUrl, buildSidebarGroupsFromNavItems, buildTelescupImageURL, buildTelescupVideoURL, clearOidcContinueCookie, clearTelescupOidcTokens, cn, completeTelescupOidcCallback, createTelescupClient, decodeJwt, defaultSidebarGroups, ensureTelescupOidcToken, exchangeCodeForToken, generateCodeChallenge, generateCodeVerifier, generateNonce, generateState, getAccountsConfig, getMainNavItems, getRuntimeEnv, getRuntimeEnvOr, getSupabase, getSupabasePublic, getTelescupOidcToken, hasPendingOidcFlow, invalidateTelescupAssetsCache, isRuntimeDev, isStoredThemeMode, navigationMenuTriggerStyle, normalizeStoredThemePreference, parseAssetId, parseStoredThemePreference, persistThemePreferenceSelection, readStoredLayoutMode, readStoredThemeMode, reducer, refreshTokens, resolveAppliedThemeMode, resolveCupcodeAppVersion, resolveOidcEndpoints, resolveStoredThemePreference, resolveSystemThemeMode, resolveTelescupImageURL, responsiveSizeClasses, setCupcodeRuntimeEnv, slugify, toast, toggleVariants, useActiveSection, useAppTheme, useAuth, useBreakpoint, useFormField, useIsMobile, useLayoutMode, useLayoutModeControl, useSidebar, useTelescupAssets, useTelescupImage, useTelescupMeta, useTelescupUploadQueue, useToast, writeStoredLayoutMode };
|
|
1835
|
+
export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, type AccountsAuthConfig, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, ThemeToggle as AnimatedThemeToggle, type ThemeToggleProps as AnimatedThemeToggleProps, AppSidebar, type AppSidebarGroup, type AppSidebarItem, type AppSidebarProps, AspectRatio, type AuthContextValue, AuthProvider, type AuthStatus, type AuthUser, type UserPresenceStatus as AuthUserPresenceStatus, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, type AvatarWithStatusProps, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, CUPCODE_APP_VERSION_ENV_KEY, CUPCODE_APP_VERSION_ENV_KEYS, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, type ClickCoords, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, AccordionContent$1 as CupcodeAccordionContent, AccordionItem$1 as CupcodeAccordionItem, AccordionTrigger$1 as CupcodeAccordionTrigger, Avatar$1 as CupcodeAvatar, AvatarFallback$1 as CupcodeAvatarFallback, AvatarImage$1 as CupcodeAvatarImage, type StatusType as CupcodeAvatarStatus, Badge$1 as CupcodeBadge, type CupcodeRuntimeEnv, type CupcodeRuntimeEnvValue$1 as CupcodeRuntimeEnvValue, Select$1 as CupcodeSelect, SelectContent$1 as CupcodeSelectContent, SelectGroup$1 as CupcodeSelectGroup, SelectItem$1 as CupcodeSelectItem, SelectTrigger$1 as CupcodeSelectTrigger, SelectValue$1 as CupcodeSelectValue, Skeleton$1 as CupcodeSkeleton, type SkeletonProps as CupcodeSkeletonProps, SkeletonText as CupcodeSkeletonText, Switch$1 as CupcodeSwitch, Tabs$1 as CupcodeTabs, TabsContent$1 as CupcodeTabsContent, TabsList$1 as CupcodeTabsList, TabsTrigger$1 as CupcodeTabsTrigger, TooltipContent$1 as CupcodeTooltipContent, TooltipProvider$1 as CupcodeTooltipProvider, TooltipTrigger$1 as CupcodeTooltipTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Dock, type DockButton, type DockCard, type DockCategory, type DockItem, type DockProps, DockWrapper, 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, EXPERIENCE_SETTINGS_STORAGE_KEY, EmptyState, type EnqueueResult, ErrorBoundary, Eyebrow, FooterCupcode, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, GlassCard, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, type JellyButtonProps, LEGACY_THEME_STORAGE_KEY, Label, type LayoutMode, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, LoginHistoryCupcode, type LoginHistoryCupcodeProps, type LoginHistorySession, MainLayout, type MainLayoutProps, MainNavbar, type MainNavbarAuthUser, type MainNavbarProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalTitle, ModalTrigger, type NavItem, NavbarCupcode, type NavbarCupcodeProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, PRESENCE_ACTIVITY_THROTTLE_MS_ENV_KEY, PRESENCE_HEARTBEAT_INTERVAL_MS_ENV_KEY, PRESENCE_IDLE_TIMEOUT_MS_ENV_KEY, PRESENCE_OFFLINE_TIMEOUT_MS_ENV_KEY, PRESENCE_RUNTIME_ENV_KEYS, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Skeleton as PrimitiveSkeleton, Tabs as PrimitiveTabs, TabsContent as PrimitiveTabsContent, TabsList as PrimitiveTabsList, TabsTrigger as PrimitiveTabsTrigger, Tooltip as PrimitiveTooltip, TooltipContent as PrimitiveTooltipContent, TooltipProvider as PrimitiveTooltipProvider, TooltipTrigger as PrimitiveTooltipTrigger, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResolveTelescupImageOptions, type ResponsiveSize, ScrollArea, ScrollBar, ScrollbarArea, type ScrollbarAreaProps, type ScrollbarColor, type ScrollbarThemeMode, ScrollbarThemeProvider, type ScrollbarThemeProviderProps, Select, SelectContent, SelectField, type SelectFieldProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton$1 as Skeleton, SkeletonText, Slider, Toaster$1 as SonnerToaster, type StatusType, type StoredThemeMode, type StoredThemePreference, Switch, SwitchField, type SwitchFieldProps, THEME_PREFERENCE_CHANGE_EVENT, THEME_PREFERENCE_STORAGE_KEY, THEME_STORAGE_KEY, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs$1 as Tabs, TabsContent$1 as TabsContent, TabsList$1 as TabsList, TabsTrigger$1 as TabsTrigger, TagGroup, type TagGroupProps, type TelescupAsset, TelescupAssetPicker, type TelescupAssetPickerProps, type TelescupAssetType, type TelescupAssetsListResponse, type TelescupClient, type TelescupClientConfig, TelescupClientError, type TelescupFilters, TelescupImage, type TelescupLanguage, type TelescupMeta$1 as TelescupMeta, type TelescupUpdateMetaRequest, type TelescupUpdateMetaResponse, TelescupUpload, type TelescupUploadCompleteRequest, type TelescupUploadCompleteResponse, type TelescupUploadInitRequest, type TelescupUploadInitResponse, type TelescupUploadLabels, type TelescupUploadProps, TelescupUploader, type TelescupUploaderProps, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, type Theme, ThemeBackground, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, ThemeScript, ThemeToggle$1 as ThemeToggle, Timeline, Toast$1 as Toast, ToastAction, type ToastActionElement, ToastClose, ToastCupcode, type ToastCupcodeProps, ToastDescription, type ToastProps, ToastProvider, ToastTitle, type ToastVariant, ToastViewport, Toaster, Toggle, ToggleGroup, ToggleGroupItem, type TokenResponse, TooltipCupcode as Tooltip, TooltipContent$1 as TooltipContent, TooltipCupcode, TooltipProvider$1 as TooltipProvider, TooltipTrigger$1 as TooltipTrigger, USER_PRESENCE_LAST_ACTIVE_COLUMN_ENV_KEY, USER_PRESENCE_SOURCE_COLUMN_ENV_KEY, type UploadConflictPolicy, type UploadPolicy, type UploadQueueItem, type UploadQueueStatus, type UseTelescupAssetsOptions, type UseTelescupUploadQueueOptions, UserMenuCupcode, type UserMenuCupcodeProps, type UserMenuLanguage, type UserMenuRecentActivity, type UserMenuTabId, type UserPresenceStatus$1 as UserPresenceStatus, VideoWatchButton, type VideoWatchButtonProps, abortStaleOidcFlow, badgeVariants, buildAuthorizeUrl, buildLogoutUrl, buildSidebarGroupsFromNavItems, buildTelescupImageURL, buildTelescupVideoURL, clearOidcContinueCookie, clearTelescupOidcTokens, cn, completeTelescupOidcCallback, createTelescupClient, cupcodeRuntimeEnv, decodeJwt, defaultSidebarGroups, ensureTelescupOidcToken, exchangeCodeForToken, fetchAccountsLoginHistory, generateCodeChallenge, generateCodeVerifier, generateNonce, generateState, getAccountsConfig, getMainNavItems, getRuntimeEnv, getRuntimeEnvOr, getSupabase, getSupabasePublic, getTelescupOidcToken, hasPendingOidcFlow, invalidateTelescupAssetsCache, isLoginHistorySessionActive, isRuntimeDev, isStoredThemeMode, navigationMenuTriggerStyle, normalizeLoginHistorySessions, normalizeStoredThemePreference, parseAssetId, parseBrowserFromUserAgent, parseOsFromUserAgent, parseStoredThemePreference, persistThemePreferenceSelection, readStoredLayoutMode, readStoredThemeMode, reducer, refreshTokens, resolveAccountsApiBaseUrl, resolveAppliedThemeMode, resolveCupcodeAppVersion, resolveOidcEndpoints, resolveStoredThemePreference, resolveSystemThemeMode, resolveTelescupImageURL, responsiveSizeClasses, setCupcodeRuntimeEnv, slugify, toast, toggleVariants, useActiveSection, useAppTheme, useAuth, useBreakpoint, useFormField, useIsMobile, useLayoutMode, useLayoutModeControl, useSidebar, useTelescupAssets, useTelescupImage, useTelescupMeta, useTelescupUploadQueue, useToast, writeStoredLayoutMode };
|