@retinalabsllc/zairusjs 4.0.2 → 4.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -465,6 +465,11 @@ interface WorkspaceItem {
465
465
  name: string;
466
466
  role: string;
467
467
  }
468
+ interface StorageConfig {
469
+ used: string;
470
+ total: string;
471
+ percentage: number;
472
+ }
468
473
  interface UniversalSidebarProps {
469
474
  navItems: NavItem[];
470
475
  currentPath: string;
@@ -484,6 +489,7 @@ interface UniversalSidebarProps {
484
489
  onSwitchWorkspace?: (orgId: string) => void;
485
490
  showLogoutAction?: boolean;
486
491
  onLogout?: () => Promise<void>;
492
+ storageConfig?: StorageConfig;
487
493
  showInterceptDialog?: boolean;
488
494
  onCancelIntercept?: () => void;
489
495
  onConfirmIntercept?: () => void;
@@ -860,7 +866,7 @@ interface FileIconMapperProps {
860
866
  }
861
867
  declare const FileIconMapper: React.FC<FileIconMapperProps>;
862
868
 
863
- interface DriveItem {
869
+ interface DriveItem$1 {
864
870
  id: string;
865
871
  name: string;
866
872
  type: DriveItemType | string;
@@ -881,7 +887,7 @@ interface UniversalDriveViewProps {
881
887
  id: string | null;
882
888
  name: string;
883
889
  }>;
884
- items: DriveItem[];
890
+ items: DriveItem$1[];
885
891
  uploadQueue: UploadQueueJob[];
886
892
  isLoading: boolean;
887
893
  searchQuery: string;
@@ -898,23 +904,47 @@ interface UniversalDriveViewProps {
898
904
  onPageChange: (page: number) => void;
899
905
  onRefresh: () => void;
900
906
  onFetchFoldersForExplorer: (folderId: string | null) => Promise<{
901
- folders: DriveItem[];
907
+ folders: DriveItem$1[];
902
908
  breadcrumbs: any[];
903
909
  }>;
904
910
  onExecuteMoveCopy: (action: 'copy' | 'move', targetFolderId: string | null, itemIds: string[]) => Promise<void>;
905
- onOpenFile: (item: DriveItem) => void;
906
- onShareItems: (items: DriveItem[]) => void;
911
+ onOpenFile: (item: DriveItem$1) => void;
912
+ onShareItems: (items: DriveItem$1[]) => void;
907
913
  }
908
914
  declare const UniversalDriveView: React.FC<UniversalDriveViewProps>;
909
915
 
916
+ interface DriveItem {
917
+ id: string;
918
+ name: string;
919
+ type: DriveItemType | string;
920
+ mimeType?: string;
921
+ size: number | bigint;
922
+ parentId: string | null;
923
+ updatedAt: string | Date;
924
+ }
925
+ interface UniversalTrashViewProps {
926
+ items: DriveItem[];
927
+ isLoading: boolean;
928
+ searchQuery: string;
929
+ currentPage: number;
930
+ totalPages: number;
931
+ onSearchChange: (val: string) => void;
932
+ onRestoreItems: (ids: string[]) => Promise<void>;
933
+ onDeletePermanently: (ids: string[]) => Promise<void>;
934
+ onEmptyTrash: () => Promise<void>;
935
+ onPageChange: (page: number) => void;
936
+ onRefresh: () => void;
937
+ }
938
+ declare const UniversalTrashView: React.FC<UniversalTrashViewProps>;
939
+
910
940
  interface DriveItemOpenerProps {
911
- item: DriveItem | null;
941
+ item: DriveItem$1 | null;
912
942
  onClose: () => void;
913
943
  }
914
944
  declare const DriveItemOpener: React.FC<DriveItemOpenerProps>;
915
945
 
916
946
  interface DriveShareModalProps {
917
- items: DriveItem[] | null;
947
+ items: DriveItem$1[] | null;
918
948
  onClose: () => void;
919
949
  }
920
950
  declare const DriveShareModal: React.FC<DriveShareModalProps>;
@@ -1094,4 +1124,4 @@ interface ContentGridBlockProps {
1094
1124
  }
1095
1125
  declare const ContentGridBlock: React.FC<ContentGridBlockProps>;
1096
1126
 
1097
- export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type AppTypeKey, Banner, type BannerProps, type BentoFeature, type BoardMember, type CheckoutInvoiceData, type CompanyDetails, type CompanyMember, type ConsultantProfile, ConsultantShowcase, type ConsultantShowcaseProps, ContentGridBlock, type ContentGridBlockProps, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type DriveItem, DriveItemOpener, type DriveItemOpenerProps, type DriveItemType, DriveShareModal, type DriveShareModalProps, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, FileIconMapper, type FileIconMapperProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, type AppLogo$1 as HeroAppLogo, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, MedicalFeatureStatsBlock, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type AppLogo as PricingAppLogo, type PricingFeature, type PricingPlan, type PricingTab, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, type StatItem, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalCheckoutView, type UniversalCheckoutViewProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDeveloperSettings, type UniversalDeveloperSettingsProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalDriveView, type UniversalDriveViewProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type UploadQueueJob, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
1127
+ export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type AppTypeKey, Banner, type BannerProps, type BentoFeature, type BoardMember, type CheckoutInvoiceData, type CompanyDetails, type CompanyMember, type ConsultantProfile, ConsultantShowcase, type ConsultantShowcaseProps, ContentGridBlock, type ContentGridBlockProps, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type DriveItem$1 as DriveItem, DriveItemOpener, type DriveItemOpenerProps, type DriveItemType, DriveShareModal, type DriveShareModalProps, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, FileIconMapper, type FileIconMapperProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, type AppLogo$1 as HeroAppLogo, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, MedicalFeatureStatsBlock, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type AppLogo as PricingAppLogo, type PricingFeature, type PricingPlan, type PricingTab, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, type StatItem, type StorageConfig, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalCheckoutView, type UniversalCheckoutViewProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDeveloperSettings, type UniversalDeveloperSettingsProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalDriveView, type UniversalDriveViewProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, UniversalTrashView, type UniversalTrashViewProps, type UploadQueueJob, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
package/dist/index.d.ts CHANGED
@@ -465,6 +465,11 @@ interface WorkspaceItem {
465
465
  name: string;
466
466
  role: string;
467
467
  }
468
+ interface StorageConfig {
469
+ used: string;
470
+ total: string;
471
+ percentage: number;
472
+ }
468
473
  interface UniversalSidebarProps {
469
474
  navItems: NavItem[];
470
475
  currentPath: string;
@@ -484,6 +489,7 @@ interface UniversalSidebarProps {
484
489
  onSwitchWorkspace?: (orgId: string) => void;
485
490
  showLogoutAction?: boolean;
486
491
  onLogout?: () => Promise<void>;
492
+ storageConfig?: StorageConfig;
487
493
  showInterceptDialog?: boolean;
488
494
  onCancelIntercept?: () => void;
489
495
  onConfirmIntercept?: () => void;
@@ -860,7 +866,7 @@ interface FileIconMapperProps {
860
866
  }
861
867
  declare const FileIconMapper: React.FC<FileIconMapperProps>;
862
868
 
863
- interface DriveItem {
869
+ interface DriveItem$1 {
864
870
  id: string;
865
871
  name: string;
866
872
  type: DriveItemType | string;
@@ -881,7 +887,7 @@ interface UniversalDriveViewProps {
881
887
  id: string | null;
882
888
  name: string;
883
889
  }>;
884
- items: DriveItem[];
890
+ items: DriveItem$1[];
885
891
  uploadQueue: UploadQueueJob[];
886
892
  isLoading: boolean;
887
893
  searchQuery: string;
@@ -898,23 +904,47 @@ interface UniversalDriveViewProps {
898
904
  onPageChange: (page: number) => void;
899
905
  onRefresh: () => void;
900
906
  onFetchFoldersForExplorer: (folderId: string | null) => Promise<{
901
- folders: DriveItem[];
907
+ folders: DriveItem$1[];
902
908
  breadcrumbs: any[];
903
909
  }>;
904
910
  onExecuteMoveCopy: (action: 'copy' | 'move', targetFolderId: string | null, itemIds: string[]) => Promise<void>;
905
- onOpenFile: (item: DriveItem) => void;
906
- onShareItems: (items: DriveItem[]) => void;
911
+ onOpenFile: (item: DriveItem$1) => void;
912
+ onShareItems: (items: DriveItem$1[]) => void;
907
913
  }
908
914
  declare const UniversalDriveView: React.FC<UniversalDriveViewProps>;
909
915
 
916
+ interface DriveItem {
917
+ id: string;
918
+ name: string;
919
+ type: DriveItemType | string;
920
+ mimeType?: string;
921
+ size: number | bigint;
922
+ parentId: string | null;
923
+ updatedAt: string | Date;
924
+ }
925
+ interface UniversalTrashViewProps {
926
+ items: DriveItem[];
927
+ isLoading: boolean;
928
+ searchQuery: string;
929
+ currentPage: number;
930
+ totalPages: number;
931
+ onSearchChange: (val: string) => void;
932
+ onRestoreItems: (ids: string[]) => Promise<void>;
933
+ onDeletePermanently: (ids: string[]) => Promise<void>;
934
+ onEmptyTrash: () => Promise<void>;
935
+ onPageChange: (page: number) => void;
936
+ onRefresh: () => void;
937
+ }
938
+ declare const UniversalTrashView: React.FC<UniversalTrashViewProps>;
939
+
910
940
  interface DriveItemOpenerProps {
911
- item: DriveItem | null;
941
+ item: DriveItem$1 | null;
912
942
  onClose: () => void;
913
943
  }
914
944
  declare const DriveItemOpener: React.FC<DriveItemOpenerProps>;
915
945
 
916
946
  interface DriveShareModalProps {
917
- items: DriveItem[] | null;
947
+ items: DriveItem$1[] | null;
918
948
  onClose: () => void;
919
949
  }
920
950
  declare const DriveShareModal: React.FC<DriveShareModalProps>;
@@ -1094,4 +1124,4 @@ interface ContentGridBlockProps {
1094
1124
  }
1095
1125
  declare const ContentGridBlock: React.FC<ContentGridBlockProps>;
1096
1126
 
1097
- export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type AppTypeKey, Banner, type BannerProps, type BentoFeature, type BoardMember, type CheckoutInvoiceData, type CompanyDetails, type CompanyMember, type ConsultantProfile, ConsultantShowcase, type ConsultantShowcaseProps, ContentGridBlock, type ContentGridBlockProps, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type DriveItem, DriveItemOpener, type DriveItemOpenerProps, type DriveItemType, DriveShareModal, type DriveShareModalProps, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, FileIconMapper, type FileIconMapperProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, type AppLogo$1 as HeroAppLogo, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, MedicalFeatureStatsBlock, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type AppLogo as PricingAppLogo, type PricingFeature, type PricingPlan, type PricingTab, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, type StatItem, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalCheckoutView, type UniversalCheckoutViewProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDeveloperSettings, type UniversalDeveloperSettingsProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalDriveView, type UniversalDriveViewProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, type UploadQueueJob, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
1127
+ export { AITranscriptionFeature, type AITranscriptionFeatureProps, type AgentFilePayload, type AgentStat, AiApproveDecline, type AiApproveDeclineProps, AiStageCheck, type AiStageCheckProps, type AiTask, type AiTaskStatus, AppBento2, type AppBento2Props, type AppTypeKey, Banner, type BannerProps, type BentoFeature, type BoardMember, type CheckoutInvoiceData, type CompanyDetails, type CompanyMember, type ConsultantProfile, ConsultantShowcase, type ConsultantShowcaseProps, ContentGridBlock, type ContentGridBlockProps, type DashboardList, type DashboardListItem, type DashboardStat, type DocumentSectionData, type DriveItem$1 as DriveItem, DriveItemOpener, type DriveItemOpenerProps, type DriveItemType, DriveShareModal, type DriveShareModalProps, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, FileIconMapper, type FileIconMapperProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, type AppLogo$1 as HeroAppLogo, HeroSection, type HeroSectionProps, ManagedBoardBlock, type ManagedBoardBlockProps, ManagedContactBlock, type ManagedContactBlockProps, ManagedDocument, type ManagedDocumentProps, ManagedNewsletterSplitBlock, type ManagedNewsletterSplitBlockProps, ManagedNotFoundBlock, type ManagedNotFoundBlockProps, ManagedPricingBlock, type ManagedPricingBlockProps, ManagedProjectsBlock, type ManagedProjectsBlockProps, ManagedToaster, MedicalFeatureStatsBlock, type NavItem, NumberInput, type NumberInputProps, type OverviewAlert, type OverviewStat, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type AppLogo as PricingAppLogo, type PricingFeature, type PricingPlan, type PricingTab, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SearchTypeOption, type SocialContact, type SocialLink, Stagger, type StaggerProps, type StatItem, type StorageConfig, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalAgentConsole, type UniversalAgentConsoleProps, UniversalBillingPage, type UniversalBillingPageProps, UniversalCheckoutView, type UniversalCheckoutViewProps, UniversalDashboardPage, type UniversalDashboardPageProps, UniversalDeveloperSettings, type UniversalDeveloperSettingsProps, UniversalDirectoryPage, type UniversalDirectoryPageProps, UniversalDriveView, type UniversalDriveViewProps, UniversalErrorView, type UniversalErrorViewProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalInvoice, UniversalLookupPage, type UniversalLookupPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalOverviewPage, type UniversalOverviewPageProps, UniversalProfileSettings, type UniversalProfileSettingsProps, UniversalRegistrationFlow, type UniversalRegistrationFlowProps, UniversalSidebar, type UniversalSidebarProps, UniversalTrashView, type UniversalTrashViewProps, type UploadQueueJob, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };