@cupcodev/ui 1.0.2 → 1.2.1

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.d.cts CHANGED
@@ -15,8 +15,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
15
15
  import { VariantProps } from 'class-variance-authority';
16
16
  import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
17
17
  import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
18
- import { B as ButtonProps } from './charts-KwYmX5He.cjs';
19
- export { a as Button, c as Carousel, C as CarouselApi, d as CarouselContent, e as CarouselItem, g as CarouselNext, f as CarouselPrevious, n as ChartConfig, h as ChartContainer, k as ChartLegend, l as ChartLegendContent, m as ChartStyle, i as ChartTooltip, j as ChartTooltipContent, b as buttonVariants } from './charts-KwYmX5He.cjs';
18
+ import { B as ButtonProps } from './charts-DqY2Q-7w.cjs';
19
+ export { a as Button, c as Carousel, C as CarouselApi, d as CarouselContent, e as CarouselItem, g as CarouselNext, f as CarouselPrevious, n as ChartConfig, h as ChartContainer, k as ChartLegend, l as ChartLegendContent, m as ChartStyle, i as ChartTooltip, j as ChartTooltipContent, b as buttonVariants } from './charts-DqY2Q-7w.cjs';
20
20
  import { DayPicker } from 'react-day-picker';
21
21
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
22
22
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
@@ -108,12 +108,12 @@ interface TagGroupProps {
108
108
  }
109
109
  declare const TagGroup: React$1.FC<TagGroupProps>;
110
110
 
111
- interface DockItem {
111
+ type DockItem = {
112
112
  id: string;
113
113
  label: string;
114
114
  icon: ReactNode;
115
115
  onClick?: () => void;
116
- }
116
+ };
117
117
  interface DockProps {
118
118
  items: DockItem[];
119
119
  className?: string;
@@ -121,7 +121,7 @@ interface DockProps {
121
121
  declare const Dock: ({ items, className }: DockProps) => react_jsx_runtime.JSX.Element;
122
122
 
123
123
  type DockButton = {
124
- type: 'link' | 'popup';
124
+ type: "link" | "popup";
125
125
  label: string;
126
126
  href?: string;
127
127
  popupId?: string;
@@ -129,8 +129,11 @@ type DockButton = {
129
129
  type DockCard = {
130
130
  title: string;
131
131
  description?: string;
132
- iconUrl?: string;
132
+ iconApiId?: string;
133
+ iconFormat?: "avif" | "webp" | "jpeg" | "png";
134
+ iconQuality?: number;
133
135
  buttons?: DockButton[];
136
+ backgroundClass?: string;
134
137
  };
135
138
  type DockCategory = {
136
139
  id: string;
@@ -141,9 +144,11 @@ type DockCategory = {
141
144
  href?: string;
142
145
  bgImageUrl?: string;
143
146
  cards: DockCard[];
147
+ type?: "divider";
144
148
  };
145
149
  type Props = {
146
150
  categories: DockCategory[];
151
+ activeCategoryId?: string;
147
152
  };
148
153
  declare const DockWrapper: React__default.FC<Props>;
149
154
 
@@ -172,7 +177,7 @@ declare class ErrorBoundary extends React__default.Component<ErrorBoundaryProps,
172
177
  static getDerivedStateFromError(error: Error): ErrorBoundaryState;
173
178
  componentDidCatch(error: Error, errorInfo: React__default.ErrorInfo): void;
174
179
  handleReset: () => void;
175
- render(): string | number | boolean | Iterable<React__default.ReactNode> | react_jsx_runtime.JSX.Element;
180
+ render(): string | number | bigint | boolean | Iterable<React__default.ReactNode> | Promise<string | number | bigint | boolean | React__default.ReactPortal | React__default.ReactElement<unknown, string | React__default.JSXElementConstructor<any>> | Iterable<React__default.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
176
181
  }
177
182
 
178
183
  interface EyebrowProps extends React.HTMLAttributes<HTMLDivElement> {
@@ -213,11 +218,12 @@ type ResponsiveSize = Size | {
213
218
  lg?: Size;
214
219
  xl?: Size;
215
220
  };
216
- declare function useBreakpoint(): "base" | "sm" | "md" | "lg" | "xl";
221
+ declare function useBreakpoint(): "base" | "sm" | "md" | "lg" | "xl" | null;
217
222
  declare function responsiveSizeClasses(s: ResponsiveSize, currentBp: 'base' | 'sm' | 'md' | 'lg' | 'xl' | null): "text-[10px] px-3 py-1.5" | "text-xs px-4 py-2" | "text-sm px-4 py-2" | "text-base px-6 py-3" | "text-lg px-8 py-4";
218
223
 
219
224
  type JellyButtonOriginalProps = {
220
225
  label: string;
226
+ icon?: React__default.ReactNode;
221
227
  color?: 'pink' | 'green';
222
228
  href?: string;
223
229
  popupId?: string;
@@ -225,7 +231,7 @@ type JellyButtonOriginalProps = {
225
231
  className?: string;
226
232
  onClick?: () => void;
227
233
  };
228
- declare function JellyButtonOriginal({ label, color, href, popupId, size, className, onClick, }: JellyButtonOriginalProps): react_jsx_runtime.JSX.Element;
234
+ declare function JellyButtonOriginal({ label, icon, color, href, popupId, size, className, onClick, }: JellyButtonOriginalProps): react_jsx_runtime.JSX.Element;
229
235
 
230
236
  interface LoadingScreenProps {
231
237
  message?: string;
@@ -269,6 +275,8 @@ interface NavItem {
269
275
  label: string;
270
276
  href: string;
271
277
  icon?: React$1.ReactNode;
278
+ onClick?: (event: React$1.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
279
+ isActive?: boolean;
272
280
  }
273
281
  interface NavbarCupcodeProps {
274
282
  logo: React$1.ReactNode;
@@ -278,6 +286,184 @@ interface NavbarCupcodeProps {
278
286
  }
279
287
  declare const NavbarCupcode: React$1.FC<NavbarCupcodeProps>;
280
288
 
289
+ type UserMenuTabId = "profile" | "notifications" | "chat" | "settings" | "logout";
290
+ type UserPresenceStatus = "online" | "away" | "busy" | "lunch" | "call" | "coding" | "designing" | "offline";
291
+ type UserMenuNotificationKind = "system" | "comment" | "access" | "billing" | "chat" | "security";
292
+ type UserMenuNotification = {
293
+ id: string;
294
+ title: string;
295
+ description: string;
296
+ timeLabel?: string;
297
+ createdAt?: string;
298
+ kind?: UserMenuNotificationKind;
299
+ topic?: string;
300
+ actionLabel?: string;
301
+ actionHref?: string;
302
+ actionChatUserId?: string;
303
+ unread?: boolean;
304
+ };
305
+ type UserMenuChatUser = {
306
+ id: string;
307
+ name: string;
308
+ username: string;
309
+ email?: string;
310
+ avatarUrl?: string;
311
+ roleLabel?: string;
312
+ status: UserPresenceStatus;
313
+ isGroup?: boolean;
314
+ memberIds?: string[];
315
+ };
316
+ type UserMenuChatMessage = {
317
+ id: string;
318
+ contactId: string;
319
+ sender: "me" | "them";
320
+ senderId?: string;
321
+ recipientId?: string;
322
+ text: string;
323
+ timeLabel?: string;
324
+ createdAt?: string;
325
+ editedAt?: string | null;
326
+ readAt?: string | null;
327
+ replyToMessageId?: string | null;
328
+ deletedAt?: string | null;
329
+ deletedBy?: string | null;
330
+ };
331
+ type UserMenuChatOpenRequest = {
332
+ userId: string;
333
+ at: number;
334
+ };
335
+ type UserMenuChatReaction = {
336
+ id: string;
337
+ messageId: string;
338
+ userId: string;
339
+ emoji: string;
340
+ createdAt?: string;
341
+ };
342
+ type UserMenuChatMessageLog = {
343
+ id: string;
344
+ messageId: string;
345
+ contactId?: string;
346
+ actorId?: string;
347
+ action: "edit" | "delete";
348
+ previousText?: string | null;
349
+ nextText?: string | null;
350
+ createdAt?: string;
351
+ };
352
+ type UserMenuLanguage = "pt-BR" | "en-US" | "es-ES";
353
+ type UserMenuRecentActivity = {
354
+ id: string;
355
+ title: string;
356
+ description?: string;
357
+ occurredAt?: string;
358
+ kind?: "login" | "action";
359
+ };
360
+ type UserMenuCupcodeProps = {
361
+ isAuthenticated: boolean;
362
+ isLoading?: boolean;
363
+ loginLabel?: string;
364
+ displayName?: string;
365
+ username?: string;
366
+ email?: string;
367
+ avatarUrl?: string;
368
+ roleLabel?: string;
369
+ status?: UserPresenceStatus;
370
+ defaultStatus?: UserPresenceStatus;
371
+ notifications?: UserMenuNotification[];
372
+ chatUsers?: UserMenuChatUser[];
373
+ chatMessages?: UserMenuChatMessage[];
374
+ chatReactions?: UserMenuChatReaction[];
375
+ chatMessageLogs?: UserMenuChatMessageLog[];
376
+ chatOpenRequest?: UserMenuChatOpenRequest | null;
377
+ currentChatUserId?: string | null;
378
+ chatUnreadCount?: number;
379
+ chatUnreadByUser?: Record<string, number>;
380
+ isChatSuperAdmin?: boolean;
381
+ isChatLoading?: boolean;
382
+ isChatSending?: boolean;
383
+ chatError?: string | null;
384
+ onChatSendMessage?: (payload: {
385
+ recipientId: string;
386
+ text: string;
387
+ replyToMessageId?: string | null;
388
+ }) => Promise<void> | void;
389
+ onChatMarkConversationRead?: (payload: {
390
+ contactId: string;
391
+ }) => Promise<void> | void;
392
+ onChatToggleReaction?: (payload: {
393
+ messageId: string;
394
+ emoji: string;
395
+ }) => Promise<void> | void;
396
+ onChatEditMessage?: (payload: {
397
+ messageId: string;
398
+ text: string;
399
+ }) => Promise<void> | void;
400
+ onChatDeleteMessage?: (payload: {
401
+ messageId: string;
402
+ }) => Promise<void> | void;
403
+ onChatViewMessageData?: (payload: {
404
+ messageId: string;
405
+ }) => void;
406
+ onChatOpenUserProfile?: (payload: {
407
+ userId: string;
408
+ email?: string;
409
+ }) => void;
410
+ onChatSendEmail?: (payload: {
411
+ userId: string;
412
+ email?: string;
413
+ }) => void;
414
+ onChatAddToAgenda?: (payload: {
415
+ userId: string;
416
+ email?: string;
417
+ name?: string;
418
+ }) => void;
419
+ onStatusChange?: (status: UserPresenceStatus) => void | Promise<void>;
420
+ onLogin?: () => void;
421
+ onLogout?: () => void | Promise<void>;
422
+ onOpenAccount?: () => void;
423
+ onOpenProfile?: () => void;
424
+ onOpenBilling?: () => void;
425
+ onOpenTasks?: () => void;
426
+ onProfileAvatarChange?: (payload: {
427
+ avatarId: string;
428
+ avatarUrl?: string;
429
+ }) => Promise<void> | void;
430
+ language?: UserMenuLanguage;
431
+ onLanguageChange?: (language: UserMenuLanguage) => void | Promise<void>;
432
+ recentActivity?: UserMenuRecentActivity[];
433
+ isRecentActivityLoading?: boolean;
434
+ telescupBaseUrl?: string;
435
+ getTelescupAccessToken?: () => Promise<string>;
436
+ panels?: Partial<Record<UserMenuTabId, ReactNode>>;
437
+ className?: string;
438
+ };
439
+ declare const UserMenuCupcode: React.FC<UserMenuCupcodeProps>;
440
+
441
+ type MainNavbarAuthStatus = "loading" | "authenticated" | "unauthenticated";
442
+ type MainNavbarAuthUser = {
443
+ sub?: string;
444
+ name?: string;
445
+ email?: string;
446
+ picture?: string;
447
+ preferredUsername?: string;
448
+ nickname?: string;
449
+ role?: string;
450
+ jobTitle?: string;
451
+ };
452
+ type MainNavbarProps = {
453
+ ctaLabel?: string;
454
+ ctaHref?: string;
455
+ pathname?: string;
456
+ onNavigate?: (href: string) => void;
457
+ authStatus?: MainNavbarAuthStatus;
458
+ authUser?: MainNavbarAuthUser | null;
459
+ presenceStatus?: UserPresenceStatus;
460
+ onPresenceStatusChange?: (status: UserPresenceStatus) => void | Promise<void>;
461
+ onLogoutClick?: () => void | Promise<void>;
462
+ onOpenAccountClick?: () => void;
463
+ getAccessToken?: () => Promise<string>;
464
+ };
465
+ declare const MainNavbar: React.FC<MainNavbarProps>;
466
+
281
467
  interface ParticleSystemProps {
282
468
  count?: number;
283
469
  variant?: "stars" | "comets";
@@ -309,6 +495,19 @@ interface ProgressCupcodeProps extends React$1.ComponentPropsWithoutRef<typeof P
309
495
  }
310
496
  declare const ProgressCupcode: React$1.ForwardRefExoticComponent<ProgressCupcodeProps & React$1.RefAttributes<HTMLDivElement>>;
311
497
 
498
+ type ScrollbarColor = "purple" | "pink";
499
+ type ScrollbarThemeMode = "auto" | "light" | "dark";
500
+ interface ScrollbarThemeProviderProps {
501
+ color?: ScrollbarColor;
502
+ theme?: ScrollbarThemeMode;
503
+ }
504
+ declare const ScrollbarThemeProvider: React$1.FC<ScrollbarThemeProviderProps>;
505
+ interface ScrollbarAreaProps extends React$1.HTMLAttributes<HTMLDivElement> {
506
+ color?: ScrollbarColor;
507
+ theme?: ScrollbarThemeMode;
508
+ }
509
+ declare const ScrollbarArea: React$1.ForwardRefExoticComponent<ScrollbarAreaProps & React$1.RefAttributes<HTMLDivElement>>;
510
+
312
511
  declare const Select$1: React$1.FC<SelectPrimitive.SelectProps>;
313
512
  declare const SelectGroup$1: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
314
513
  declare const SelectValue$1: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
@@ -352,20 +551,296 @@ interface TelescupImageProps extends React__default.ImgHTMLAttributes<HTMLImageE
352
551
  }
353
552
  declare const TelescupImage: React__default.FC<TelescupImageProps>;
354
553
 
554
+ type TelescupLanguage = "pt" | "en" | "es" | (string & {});
555
+ type TelescupMeta$1 = {
556
+ alt?: string;
557
+ title?: string;
558
+ description?: string;
559
+ seo_title?: string;
560
+ seo_description?: string;
561
+ tags?: string[];
562
+ usage?: string;
563
+ category?: string;
564
+ language?: TelescupLanguage;
565
+ };
566
+ type TelescupAssetType = "image" | "video" | "audio" | "file" | (string & {});
567
+ type TelescupAsset = {
568
+ id: string;
569
+ name?: string;
570
+ fileName?: string;
571
+ folderId?: string;
572
+ folderName?: string;
573
+ category?: string;
574
+ type?: TelescupAssetType;
575
+ mimeType?: string;
576
+ extension?: string;
577
+ usage?: string;
578
+ size?: number;
579
+ width?: number;
580
+ height?: number;
581
+ duration?: number;
582
+ createdAt?: string;
583
+ updatedAt?: string;
584
+ url?: string;
585
+ thumbnailId?: string;
586
+ meta?: TelescupMeta$1;
587
+ metaByLang?: Record<string, TelescupMeta$1>;
588
+ };
589
+ type TelescupFilters = {
590
+ query?: string;
591
+ type?: TelescupAssetType | "all";
592
+ extension?: string;
593
+ category?: string;
594
+ folderId?: string;
595
+ usage?: string;
596
+ hasAlt?: boolean;
597
+ language?: TelescupLanguage;
598
+ page?: number;
599
+ pageSize?: number;
600
+ cursor?: string;
601
+ sort?: string;
602
+ order?: "asc" | "desc";
603
+ };
604
+ type UploadConflictPolicy = "ask" | "replace" | "rename" | "skip";
605
+ type UploadPolicy = {
606
+ conflict?: UploadConflictPolicy;
607
+ allowedTypes?: string[];
608
+ maxSizeMB?: number;
609
+ folderId?: string;
610
+ };
611
+ type TelescupAssetsListResponse = {
612
+ items: TelescupAsset[];
613
+ nextCursor?: string;
614
+ total?: number;
615
+ facets?: {
616
+ categories?: Array<{
617
+ value: string;
618
+ label?: string;
619
+ count?: number;
620
+ }>;
621
+ folders?: Array<{
622
+ value: string;
623
+ label?: string;
624
+ count?: number;
625
+ }>;
626
+ usages?: Array<{
627
+ value: string;
628
+ label?: string;
629
+ count?: number;
630
+ }>;
631
+ extensions?: Array<{
632
+ value: string;
633
+ label?: string;
634
+ count?: number;
635
+ }>;
636
+ tags?: Array<{
637
+ value: string;
638
+ label?: string;
639
+ count?: number;
640
+ }>;
641
+ };
642
+ };
643
+ type TelescupUploadInitRequest = {
644
+ fileName: string;
645
+ size: number;
646
+ mimeType?: string;
647
+ folderId?: string;
648
+ conflict?: UploadConflictPolicy;
649
+ };
650
+ type TelescupUploadInitResponse = {
651
+ uploadUrl?: string;
652
+ uploadId?: string;
653
+ assetDraftId?: string;
654
+ storageKey?: string;
655
+ finalFilename?: string;
656
+ requiredHeaders?: Record<string, string>;
657
+ asset?: TelescupAsset;
658
+ existingAsset?: TelescupAsset;
659
+ conflict?: UploadConflictPolicy | "exists" | "conflict" | "duplicate" | "name_collision" | "none";
660
+ resolvedName?: string;
661
+ };
662
+ type TelescupUploadCompleteRequest = {
663
+ uploadId?: string;
664
+ assetDraftId?: string;
665
+ storageKey?: string;
666
+ finalFilename?: string;
667
+ folderId?: string;
668
+ assetId?: string;
669
+ fileName?: string;
670
+ };
671
+ type TelescupUploadCompleteResponse = {
672
+ asset: TelescupAsset;
673
+ };
674
+ type TelescupUpdateMetaRequest = {
675
+ assetId: string;
676
+ language?: TelescupLanguage;
677
+ meta?: TelescupMeta$1;
678
+ action?: "update" | "generate_alt" | "translate";
679
+ sourceLanguage?: TelescupLanguage;
680
+ targetLanguage?: TelescupLanguage;
681
+ };
682
+ type TelescupUpdateMetaResponse = {
683
+ asset: TelescupAsset;
684
+ };
685
+
686
+ type TelescupClientConfig = {
687
+ baseUrl: string;
688
+ getAccessToken: () => Promise<string>;
689
+ };
690
+ declare const createTelescupClient: (config: TelescupClientConfig) => {
691
+ listAssets: (filters: TelescupFilters) => Promise<TelescupAssetsListResponse>;
692
+ initUpload: (payload: TelescupUploadInitRequest) => Promise<TelescupUploadInitResponse>;
693
+ completeUpload: (payload: TelescupUploadCompleteRequest) => Promise<TelescupUploadCompleteResponse>;
694
+ updateMeta: (payload: TelescupUpdateMetaRequest) => Promise<TelescupUpdateMetaResponse>;
695
+ uploadDirect: (file: File) => Promise<TelescupUploadCompleteResponse>;
696
+ };
697
+ type TelescupClient = ReturnType<typeof createTelescupClient>;
698
+
699
+ type TelescupUploadLabels = {
700
+ title: string;
701
+ tabs: {
702
+ library: string;
703
+ upload: string;
704
+ meta: string;
705
+ };
706
+ searchPlaceholder: string;
707
+ filters: {
708
+ type: string;
709
+ extension: string;
710
+ category: string;
711
+ folder: string;
712
+ usage: string;
713
+ hasAlt: string;
714
+ language: string;
715
+ allTypes: string;
716
+ };
717
+ empty: {
718
+ title: string;
719
+ description: string;
720
+ };
721
+ actions: {
722
+ close: string;
723
+ select: string;
724
+ loadMore: string;
725
+ clearSelection: string;
726
+ };
727
+ uploader: {
728
+ dropTitle: string;
729
+ dropDescription: string;
730
+ browse: string;
731
+ queueTitle: string;
732
+ retry: string;
733
+ remove: string;
734
+ clearFinished: string;
735
+ uploading: string;
736
+ ready: string;
737
+ success: string;
738
+ error: string;
739
+ conflict: string;
740
+ };
741
+ conflict: {
742
+ title: string;
743
+ description: string;
744
+ skip: string;
745
+ rename: string;
746
+ replace: string;
747
+ };
748
+ meta: {
749
+ title: string;
750
+ description: string;
751
+ selectAsset: string;
752
+ noSelection: string;
753
+ save: string;
754
+ generateAlt: string;
755
+ translate: string;
756
+ fields: {
757
+ alt: string;
758
+ title: string;
759
+ description: string;
760
+ seo_title: string;
761
+ seo_description: string;
762
+ tags: string;
763
+ usage: string;
764
+ };
765
+ };
766
+ toasts: {
767
+ uploadSuccess: string;
768
+ uploadError: string;
769
+ metaSaved: string;
770
+ metaError: string;
771
+ };
772
+ };
773
+
774
+ type TelescupAssetPickerProps = {
775
+ client: TelescupClient;
776
+ value?: string[];
777
+ onChange?: (ids: string[], assets?: TelescupAsset[]) => void;
778
+ multiple?: boolean;
779
+ allowedTypes?: string[];
780
+ folderId?: string;
781
+ labels: TelescupUploadLabels;
782
+ className?: string;
783
+ enabled?: boolean;
784
+ onAssetsLoaded?: (assets: TelescupAsset[]) => void;
785
+ };
786
+ declare const TelescupAssetPicker: React__default.FC<TelescupAssetPickerProps>;
787
+
788
+ type TelescupUploaderProps = {
789
+ client: TelescupClient;
790
+ folderId?: string;
791
+ allowedTypes?: string[];
792
+ maxSizeMB?: number;
793
+ multiple?: boolean;
794
+ labels: TelescupUploadLabels;
795
+ className?: string;
796
+ onAssetUploaded?: (asset: TelescupAsset) => void;
797
+ };
798
+ declare const TelescupUploader: React__default.FC<TelescupUploaderProps>;
799
+
355
800
  interface TelescupVideoProps extends React__default.VideoHTMLAttributes<HTMLVideoElement> {
356
801
  apiId: string;
357
802
  lang?: string;
358
803
  }
359
804
  declare const TelescupVideo: React__default.FC<TelescupVideoProps>;
360
805
 
806
+ type TelescupUploadProps = {
807
+ baseUrl: string;
808
+ getAccessToken: () => Promise<string>;
809
+ folderId?: string;
810
+ allowedTypes?: string[];
811
+ maxSizeMB?: number;
812
+ defaultLanguage?: "pt" | "en" | "es";
813
+ enableAI?: boolean;
814
+ enableMetaEditor?: boolean;
815
+ multiple?: boolean;
816
+ value?: string[];
817
+ onChange?: (ids: string[], assets?: TelescupAsset[]) => void;
818
+ onClose?: () => void;
819
+ open?: boolean;
820
+ mode?: "modal" | "drawer";
821
+ deferSelectionCommit?: boolean;
822
+ commitButtonLabel?: string;
823
+ closeOnCommit?: boolean;
824
+ labels?: Partial<TelescupUploadLabels>;
825
+ className?: string;
826
+ renderTrigger?: (props: {
827
+ open: () => void;
828
+ }) => React__default.ReactNode;
829
+ };
830
+ declare const TelescupUpload: React__default.FC<TelescupUploadProps>;
831
+
361
832
  interface TextareaFieldProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
362
833
  label?: string;
363
834
  error?: string;
364
835
  }
365
836
  declare const TextareaField: React$1.ForwardRefExoticComponent<TextareaFieldProps & React$1.RefAttributes<HTMLTextAreaElement>>;
366
837
 
838
+ type ThemeMode = "light" | "dark";
367
839
  interface ThemeToggleProps {
368
840
  className?: string;
841
+ theme?: ThemeMode;
842
+ defaultTheme?: ThemeMode;
843
+ onThemeChange?: (theme: ThemeMode) => void;
369
844
  }
370
845
  declare const ThemeToggle: React$1.FC<ThemeToggleProps>;
371
846
 
@@ -403,9 +878,9 @@ declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPri
403
878
  declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
404
879
  declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
405
880
 
406
- declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: {
407
- variant?: "default" | "destructive";
408
- } & class_variance_authority_types.ClassProp) => string> & React$1.RefAttributes<HTMLDivElement>>;
881
+ declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
882
+ variant?: "default" | "destructive" | null | undefined;
883
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
409
884
  declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
410
885
  declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
411
886
 
@@ -433,9 +908,9 @@ declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.Ava
433
908
  declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
434
909
  declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
435
910
 
436
- declare const badgeVariants: (props?: {
437
- variant?: "default" | "secondary" | "outline" | "destructive";
438
- } & class_variance_authority_types.ClassProp) => string;
911
+ declare const badgeVariants: (props?: ({
912
+ variant?: "secondary" | "outline" | "default" | "destructive" | null | undefined;
913
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
439
914
  interface BadgeProps extends React$1.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
440
915
  }
441
916
  declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
@@ -494,8 +969,7 @@ declare const Command: React$1.ForwardRefExoticComponent<Omit<{
494
969
  disablePointerSelection?: boolean;
495
970
  vimBindings?: boolean;
496
971
  } & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
497
- interface CommandDialogProps extends DialogProps {
498
- }
972
+ type CommandDialogProps = DialogProps;
499
973
  declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
500
974
  declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
501
975
  ref?: React$1.Ref<HTMLInputElement>;
@@ -527,7 +1001,7 @@ declare const CommandGroup: React$1.ForwardRefExoticComponent<Omit<{
527
1001
  ref?: React$1.Ref<HTMLDivElement>;
528
1002
  } & {
529
1003
  asChild?: boolean;
530
- }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "value" | "heading"> & {
1004
+ }, "key" | keyof React$1.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
531
1005
  heading?: React$1.ReactNode;
532
1006
  value?: string;
533
1007
  forceMount?: boolean;
@@ -703,7 +1177,7 @@ declare const InputOTPSlot: React$1.ForwardRefExoticComponent<Omit<React$1.Detai
703
1177
  } & React$1.RefAttributes<HTMLDivElement>>;
704
1178
  declare const InputOTPSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
705
1179
 
706
- declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp) => string> & React$1.RefAttributes<HTMLLabelElement>>;
1180
+ declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
707
1181
 
708
1182
  declare const MenubarMenu: typeof MenubarPrimitive.Menu;
709
1183
  declare const MenubarGroup: typeof MenubarPrimitive.Group;
@@ -734,7 +1208,7 @@ declare const MenubarShortcut: {
734
1208
  declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
735
1209
  declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
736
1210
  declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
737
- declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp) => string;
1211
+ declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
738
1212
  declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
739
1213
  declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
740
1214
  declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
@@ -777,7 +1251,7 @@ declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimi
777
1251
  declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
778
1252
 
779
1253
  declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => react_jsx_runtime.JSX.Element;
780
- declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMapElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
1254
+ declare const ResizablePanel: React$1.ForwardRefExoticComponent<Omit<React$1.HTMLAttributes<HTMLDivElement | HTMLElement | HTMLObjectElement | HTMLMapElement | HTMLAnchorElement | HTMLButtonElement | HTMLFormElement | HTMLHeadingElement | HTMLImageElement | HTMLInputElement | HTMLLabelElement | HTMLLIElement | HTMLOListElement | HTMLParagraphElement | HTMLSelectElement | HTMLSpanElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDialogElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLLinkElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOptionElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLSlotElement | HTMLScriptElement | HTMLSourceElement | HTMLStyleElement | HTMLTableElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTimeElement | HTMLTitleElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
781
1255
  className?: string | undefined;
782
1256
  collapsedSize?: number | undefined;
783
1257
  collapsible?: boolean | undefined;
@@ -819,9 +1293,9 @@ declare const SheetTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.Di
819
1293
  declare const SheetClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
820
1294
  declare const SheetPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
821
1295
  declare const SheetOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
822
- declare const sheetVariants: (props?: {
823
- side?: "top" | "right" | "bottom" | "left";
824
- } & class_variance_authority_types.ClassProp) => string;
1296
+ declare const sheetVariants: (props?: ({
1297
+ side?: "top" | "right" | "bottom" | "left" | null | undefined;
1298
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
825
1299
  interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
826
1300
  }
827
1301
  declare const SheetContent: React$1.ForwardRefExoticComponent<SheetContentProps & React$1.RefAttributes<HTMLDivElement>>;
@@ -850,7 +1324,7 @@ type SidebarContext = {
850
1324
  isMobile: boolean;
851
1325
  toggleSidebar: () => void;
852
1326
  };
853
- declare const SidebarContext: React$1.Context<SidebarContext>;
1327
+ declare const SidebarContext: React$1.Context<SidebarContext | null>;
854
1328
  declare function useSidebar(): SidebarContext;
855
1329
  declare const SidebarProvider: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
856
1330
  defaultOpen?: boolean;
@@ -884,10 +1358,10 @@ declare const SidebarMenuButton: React$1.ForwardRefExoticComponent<Omit<React$1.
884
1358
  asChild?: boolean;
885
1359
  isActive?: boolean;
886
1360
  tooltip?: string | React$1.ComponentProps<typeof TooltipContent>;
887
- } & VariantProps<(props?: {
888
- variant?: "default" | "outline";
889
- size?: "default" | "sm" | "lg";
890
- } & class_variance_authority_types.ClassProp) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
1361
+ } & VariantProps<(props?: ({
1362
+ variant?: "outline" | "default" | null | undefined;
1363
+ size?: "sm" | "lg" | "default" | null | undefined;
1364
+ } & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
891
1365
  declare const SidebarMenuAction: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLButtonElement> & React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
892
1366
  asChild?: boolean;
893
1367
  showOnHover?: boolean;
@@ -908,8 +1382,8 @@ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivE
908
1382
 
909
1383
  declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
910
1384
 
911
- type ToasterProps = React.ComponentProps<typeof Toaster$2>;
912
- declare const Toaster$1: ({ ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
1385
+ type ToasterProps = React$1.ComponentProps<typeof Toaster$2>;
1386
+ declare const Toaster$1: ({ theme, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
913
1387
 
914
1388
  declare const Switch: React$1.ForwardRefExoticComponent<Omit<SwitchPrimitives.SwitchProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
915
1389
 
@@ -927,15 +1401,14 @@ declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.Tab
927
1401
  declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
928
1402
  declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
929
1403
 
930
- interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
931
- }
1404
+ type TextareaProps = React$1.TextareaHTMLAttributes<HTMLTextAreaElement>;
932
1405
  declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
933
1406
 
934
1407
  declare const ToastProvider: React$1.FC<ToastPrimitives.ToastProviderProps>;
935
1408
  declare const ToastViewport: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React$1.RefAttributes<HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
936
- declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: {
937
- variant?: "default" | "destructive";
938
- } & class_variance_authority_types.ClassProp) => string> & React$1.RefAttributes<HTMLLIElement>>;
1409
+ declare const Toast$1: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React$1.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: ({
1410
+ variant?: "default" | "destructive" | null | undefined;
1411
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLLIElement>>;
939
1412
  declare const ToastAction: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
940
1413
  declare const ToastClose: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
941
1414
  declare const ToastTitle: React$1.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
@@ -945,23 +1418,115 @@ type ToastActionElement = React$1.ReactElement<typeof ToastAction>;
945
1418
 
946
1419
  declare function Toaster(): react_jsx_runtime.JSX.Element;
947
1420
 
948
- declare const toggleVariants: (props?: {
949
- variant?: "default" | "outline";
950
- size?: "default" | "sm" | "lg";
951
- } & class_variance_authority_types.ClassProp) => string;
952
- declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
953
- variant?: "default" | "outline";
954
- size?: "default" | "sm" | "lg";
955
- } & class_variance_authority_types.ClassProp) => string> & React$1.RefAttributes<HTMLButtonElement>>;
956
-
957
- declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: {
958
- variant?: "default" | "outline";
959
- size?: "default" | "sm" | "lg";
960
- } & class_variance_authority_types.ClassProp) => string>) & React$1.RefAttributes<HTMLDivElement>>;
961
- declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
962
- variant?: "default" | "outline";
963
- size?: "default" | "sm" | "lg";
964
- } & class_variance_authority_types.ClassProp) => string> & React$1.RefAttributes<HTMLButtonElement>>;
1421
+ declare const toggleVariants: (props?: ({
1422
+ variant?: "outline" | "default" | null | undefined;
1423
+ size?: "sm" | "lg" | "default" | null | undefined;
1424
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
1425
+ declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
1426
+ variant?: "outline" | "default" | null | undefined;
1427
+ size?: "sm" | "lg" | "default" | null | undefined;
1428
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
1429
+
1430
+ declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
1431
+ variant?: "outline" | "default" | null | undefined;
1432
+ size?: "sm" | "lg" | "default" | null | undefined;
1433
+ } & class_variance_authority_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
1434
+ declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
1435
+ variant?: "outline" | "default" | null | undefined;
1436
+ size?: "sm" | "lg" | "default" | null | undefined;
1437
+ } & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
1438
+
1439
+ type UseTelescupAssetsOptions = {
1440
+ client?: TelescupClient;
1441
+ baseUrl?: string;
1442
+ getAccessToken?: () => Promise<string>;
1443
+ filters?: TelescupFilters;
1444
+ enabled?: boolean;
1445
+ pageSize?: number;
1446
+ cacheTimeMs?: number;
1447
+ };
1448
+ declare function useTelescupAssets(options: UseTelescupAssetsOptions): {
1449
+ items: TelescupAsset[];
1450
+ total: number | undefined;
1451
+ facets: {
1452
+ categories?: Array<{
1453
+ value: string;
1454
+ label?: string;
1455
+ count?: number;
1456
+ }>;
1457
+ folders?: Array<{
1458
+ value: string;
1459
+ label?: string;
1460
+ count?: number;
1461
+ }>;
1462
+ usages?: Array<{
1463
+ value: string;
1464
+ label?: string;
1465
+ count?: number;
1466
+ }>;
1467
+ extensions?: Array<{
1468
+ value: string;
1469
+ label?: string;
1470
+ count?: number;
1471
+ }>;
1472
+ tags?: Array<{
1473
+ value: string;
1474
+ label?: string;
1475
+ count?: number;
1476
+ }>;
1477
+ } | undefined;
1478
+ nextCursor: string | undefined;
1479
+ isLoading: boolean;
1480
+ isLoadingMore: boolean;
1481
+ error: Error | null;
1482
+ refresh: () => Promise<void>;
1483
+ loadMore: () => Promise<void>;
1484
+ hasMore: boolean;
1485
+ };
1486
+
1487
+ type UploadQueueStatus = "queued" | "uploading" | "success" | "error" | "conflict" | "skipped";
1488
+ type UploadQueueItem = {
1489
+ id: string;
1490
+ file: File;
1491
+ status: UploadQueueStatus;
1492
+ progress: number;
1493
+ error?: string;
1494
+ asset?: TelescupAsset;
1495
+ existingAsset?: TelescupAsset;
1496
+ conflictPolicy?: UploadConflictPolicy;
1497
+ uploadId?: string;
1498
+ assetDraftId?: string;
1499
+ storageKey?: string;
1500
+ finalFilename?: string;
1501
+ requiredHeaders?: Record<string, string>;
1502
+ resolvedName?: string;
1503
+ };
1504
+ type EnqueueResult = {
1505
+ accepted: UploadQueueItem[];
1506
+ rejected: {
1507
+ file: File;
1508
+ reason: string;
1509
+ }[];
1510
+ };
1511
+ type UseTelescupUploadQueueOptions = {
1512
+ client: TelescupClient;
1513
+ folderId?: string;
1514
+ allowedTypes?: string[];
1515
+ maxSizeMB?: number;
1516
+ conflictPolicy?: UploadConflictPolicy;
1517
+ concurrency?: number;
1518
+ onItemComplete?: (asset: TelescupAsset, item: UploadQueueItem) => void;
1519
+ onItemError?: (item: UploadQueueItem, error: Error) => void;
1520
+ };
1521
+ declare function useTelescupUploadQueue(options: UseTelescupUploadQueueOptions): {
1522
+ queue: UploadQueueItem[];
1523
+ enqueueFiles: (files: FileList | File[]) => EnqueueResult;
1524
+ removeItem: (id: string) => void;
1525
+ clearFinished: () => void;
1526
+ retryItem: (id: string) => void;
1527
+ resolveConflict: (id: string, policy: UploadConflictPolicy) => void;
1528
+ isUploading: boolean;
1529
+ };
965
1530
 
966
1531
  type ToasterToast = ToastProps & {
967
1532
  id: string;
@@ -1014,6 +1579,4 @@ declare function parseAssetId(input?: string): string | undefined;
1014
1579
 
1015
1580
  declare const getMainNavItems: () => NavItem[];
1016
1581
 
1017
- declare const mainDockCategories: DockCategory[];
1018
-
1019
- export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, 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, 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, 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, EmptyState, ErrorBoundary, Eyebrow, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, Label, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, 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, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResponsiveSize, ScrollArea, ScrollBar, 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, Slider, Toaster$1 as SonnerToaster, type StatusType, Switch, SwitchField, type SwitchFieldProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagGroup, type TagGroupProps, TelescupImage, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, 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, Tooltip, TooltipContent, TooltipCupcode, TooltipProvider, TooltipTrigger, badgeVariants, buildTelescupImageURL, buildTelescupVideoURL, cn, getMainNavItems, mainDockCategories, navigationMenuTriggerStyle, parseAssetId, responsiveSizeClasses, toast, toggleVariants, useBreakpoint, useFormField, useIsMobile, useSidebar, useTelescupImage, useTelescupMeta, useToast };
1582
+ export { Accordion, AccordionContent, AccordionCupcode, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarFallback, AvatarImage, AvatarWithStatus, BackgroundRainbow, BackgroundStars, Badge, type BadgeProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, ButtonProps, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardGlass, CardHeader, CardTitle, Checkbox, ChipTag, type ChipTagProps, type ChipVariant, 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, 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, EmptyState, type EnqueueResult, ErrorBoundary, Eyebrow, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, HeroTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputField, type InputFieldProps, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, JellyButton, JellyButtonOriginal, type JellyButtonOriginalProps, Label, LoadingScreen, LoadingSpinner, type LoadingSpinnerProps, 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, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ParticleSystem, Popover, PopoverContent, PopoverTrigger, PricingCard, Progress, ProgressCupcode, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, 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, Slider, Toaster$1 as SonnerToaster, type StatusType, Switch, SwitchField, type SwitchFieldProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TagGroup, type TagGroupProps, type TelescupAsset, TelescupAssetPicker, type TelescupAssetPickerProps, type TelescupFilters, TelescupImage, type TelescupLanguage, type TelescupMeta$1 as TelescupMeta, TelescupUpload, type TelescupUploadLabels, type TelescupUploadProps, TelescupUploader, type TelescupUploaderProps, TelescupVideo, Textarea, TextareaField, type TextareaFieldProps, type TextareaProps, 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, Tooltip, TooltipContent, TooltipCupcode, TooltipProvider, TooltipTrigger, type UploadConflictPolicy, type UploadPolicy, type UploadQueueItem, type UploadQueueStatus, type UseTelescupAssetsOptions, type UseTelescupUploadQueueOptions, type UserMenuChatMessage, type UserMenuChatMessageLog, type UserMenuChatOpenRequest, type UserMenuChatReaction, type UserMenuChatUser, UserMenuCupcode, type UserMenuCupcodeProps, type UserMenuLanguage, type UserMenuNotification, type UserMenuNotificationKind, type UserMenuRecentActivity, type UserMenuTabId, type UserPresenceStatus, badgeVariants, buildTelescupImageURL, buildTelescupVideoURL, cn, getMainNavItems, navigationMenuTriggerStyle, parseAssetId, responsiveSizeClasses, toast, toggleVariants, useBreakpoint, useFormField, useIsMobile, useSidebar, useTelescupAssets, useTelescupImage, useTelescupMeta, useTelescupUploadQueue, useToast };