@retinalabsllc/zairusjs 0.2.2 → 0.2.3
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 +135 -3
- package/dist/index.d.ts +135 -3
- package/dist/index.js +759 -5
- package/dist/index.mjs +767 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ToasterProps } from 'react-hot-toast';
|
|
3
2
|
|
|
4
3
|
interface FaqItem {
|
|
5
4
|
question: string;
|
|
@@ -332,7 +331,7 @@ interface PageSpinnerProps {
|
|
|
332
331
|
}
|
|
333
332
|
declare const PageSpinner: React.FC<PageSpinnerProps>;
|
|
334
333
|
|
|
335
|
-
declare const ManagedToaster: React.FC
|
|
334
|
+
declare const ManagedToaster: React.FC;
|
|
336
335
|
|
|
337
336
|
interface ManagedNewsletterSplitBlockProps {
|
|
338
337
|
tagline?: string;
|
|
@@ -424,4 +423,137 @@ interface GifFeatureCardProps {
|
|
|
424
423
|
}
|
|
425
424
|
declare const GifFeatureCard: React.FC<GifFeatureCardProps>;
|
|
426
425
|
|
|
427
|
-
|
|
426
|
+
interface NavItem {
|
|
427
|
+
name: string;
|
|
428
|
+
path: string;
|
|
429
|
+
icon: any;
|
|
430
|
+
}
|
|
431
|
+
interface UniversalSidebarProps {
|
|
432
|
+
/** Navigation items to render */
|
|
433
|
+
navItems: NavItem[];
|
|
434
|
+
/** The current active path to determine highlight state */
|
|
435
|
+
currentPath: string;
|
|
436
|
+
/** Mobile drawer state */
|
|
437
|
+
isMobileOpen: boolean;
|
|
438
|
+
/** Function to close the mobile drawer */
|
|
439
|
+
closeMobile: () => void;
|
|
440
|
+
/** Optional click interceptor (useful for unsaved changes warnings) */
|
|
441
|
+
onNavClick?: (e: React.MouseEvent<HTMLAnchorElement>, path: string) => void;
|
|
442
|
+
showInterceptDialog?: boolean;
|
|
443
|
+
onCancelIntercept?: () => void;
|
|
444
|
+
onConfirmIntercept?: () => void;
|
|
445
|
+
interceptTitle?: string;
|
|
446
|
+
interceptMessage?: string;
|
|
447
|
+
}
|
|
448
|
+
declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
|
|
449
|
+
|
|
450
|
+
interface WorkspaceItem {
|
|
451
|
+
id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
role: string;
|
|
454
|
+
}
|
|
455
|
+
interface UniversalHeaderProps {
|
|
456
|
+
/** Mobile drawer trigger */
|
|
457
|
+
onOpenMobile: () => void;
|
|
458
|
+
/** Top left typography */
|
|
459
|
+
title: string;
|
|
460
|
+
subtitle?: string;
|
|
461
|
+
homeUrl?: string;
|
|
462
|
+
/** Configuration Booleans */
|
|
463
|
+
showBackButton?: boolean;
|
|
464
|
+
backUrl?: string;
|
|
465
|
+
showWorkspaceSwitcher?: boolean;
|
|
466
|
+
workspaces?: WorkspaceItem[];
|
|
467
|
+
activeWorkspaceId?: string;
|
|
468
|
+
onSwitchWorkspace?: (orgId: string) => void;
|
|
469
|
+
showLogoutAction?: boolean;
|
|
470
|
+
onLogout?: () => Promise<void>;
|
|
471
|
+
}
|
|
472
|
+
declare const UniversalHeader: React.FC<UniversalHeaderProps>;
|
|
473
|
+
|
|
474
|
+
interface UniversalOrganizationPageProps {
|
|
475
|
+
initialOrgName: string;
|
|
476
|
+
initialSlug: string;
|
|
477
|
+
orgId: string;
|
|
478
|
+
isReadOnly?: boolean;
|
|
479
|
+
slugPrefixUrl?: string;
|
|
480
|
+
onSaveConfiguration: (payload: {
|
|
481
|
+
organizationId: string;
|
|
482
|
+
organizationName?: string;
|
|
483
|
+
slug?: string;
|
|
484
|
+
}) => Promise<{
|
|
485
|
+
success: boolean;
|
|
486
|
+
error?: string;
|
|
487
|
+
}>;
|
|
488
|
+
onCheckSlugAvailability: (slug: string) => Promise<{
|
|
489
|
+
available: boolean;
|
|
490
|
+
}>;
|
|
491
|
+
}
|
|
492
|
+
declare const UniversalOrganizationPage: React.FC<UniversalOrganizationPageProps>;
|
|
493
|
+
|
|
494
|
+
interface UniversalIdentityPageProps {
|
|
495
|
+
headerTitle: string;
|
|
496
|
+
headerDescription: string;
|
|
497
|
+
primaryInputLabel: string;
|
|
498
|
+
secondaryInputLabel?: string;
|
|
499
|
+
initialPrimaryValue: string;
|
|
500
|
+
initialSecondaryValue?: string;
|
|
501
|
+
resourceId: string;
|
|
502
|
+
isReadOnly?: boolean;
|
|
503
|
+
allowDeletion?: boolean;
|
|
504
|
+
deleteWarningText?: string;
|
|
505
|
+
onSaveIdentity: (payload: {
|
|
506
|
+
resourceId: string;
|
|
507
|
+
primaryValue?: string;
|
|
508
|
+
secondaryValue?: string;
|
|
509
|
+
}) => Promise<{
|
|
510
|
+
success: boolean;
|
|
511
|
+
error?: string;
|
|
512
|
+
}>;
|
|
513
|
+
onDeleteResource?: (resourceId: string) => Promise<{
|
|
514
|
+
success: boolean;
|
|
515
|
+
error?: string;
|
|
516
|
+
}>;
|
|
517
|
+
onSuccessfulDeleteRedirect?: string;
|
|
518
|
+
}
|
|
519
|
+
declare const UniversalIdentityPage: React.FC<UniversalIdentityPageProps>;
|
|
520
|
+
|
|
521
|
+
interface UniversalMember {
|
|
522
|
+
id: string;
|
|
523
|
+
userId: string;
|
|
524
|
+
fullName: string;
|
|
525
|
+
email: string;
|
|
526
|
+
displayImage?: string;
|
|
527
|
+
profileColor?: string;
|
|
528
|
+
role: string;
|
|
529
|
+
joinedAt: string | Date;
|
|
530
|
+
}
|
|
531
|
+
interface UniversalMembersPageProps {
|
|
532
|
+
headerTitle: string;
|
|
533
|
+
headerDescription: string;
|
|
534
|
+
currentUserId?: string;
|
|
535
|
+
members: UniversalMember[];
|
|
536
|
+
isLoading: boolean;
|
|
537
|
+
currentPage: number;
|
|
538
|
+
totalPages: number;
|
|
539
|
+
onPageChange: (page: number) => void;
|
|
540
|
+
canManage: boolean;
|
|
541
|
+
canChangeRoles: boolean;
|
|
542
|
+
availableRoles: string[];
|
|
543
|
+
requireNamesForInvite: boolean;
|
|
544
|
+
onInviteMember: (email: string, firstName?: string, lastName?: string) => Promise<{
|
|
545
|
+
success: boolean;
|
|
546
|
+
error?: string;
|
|
547
|
+
}>;
|
|
548
|
+
onRemoveMember: (member: UniversalMember) => Promise<{
|
|
549
|
+
success: boolean;
|
|
550
|
+
error?: string;
|
|
551
|
+
}>;
|
|
552
|
+
onUpdateRole: (member: UniversalMember, newRole: string) => Promise<{
|
|
553
|
+
success: boolean;
|
|
554
|
+
error?: string;
|
|
555
|
+
}>;
|
|
556
|
+
}
|
|
557
|
+
declare const UniversalMembersPage: React.FC<UniversalMembersPageProps>;
|
|
558
|
+
|
|
559
|
+
export { AITranscriptionFeature, type AITranscriptionFeatureProps, AppBento2, type AppBento2Props, type BentoFeature, type BoardMember, type CompanyDetails, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, 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, type NavItem, NumberInput, type NumberInputProps, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SocialContact, type SocialLink, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalHeader, type UniversalHeaderProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ToasterProps } from 'react-hot-toast';
|
|
3
2
|
|
|
4
3
|
interface FaqItem {
|
|
5
4
|
question: string;
|
|
@@ -332,7 +331,7 @@ interface PageSpinnerProps {
|
|
|
332
331
|
}
|
|
333
332
|
declare const PageSpinner: React.FC<PageSpinnerProps>;
|
|
334
333
|
|
|
335
|
-
declare const ManagedToaster: React.FC
|
|
334
|
+
declare const ManagedToaster: React.FC;
|
|
336
335
|
|
|
337
336
|
interface ManagedNewsletterSplitBlockProps {
|
|
338
337
|
tagline?: string;
|
|
@@ -424,4 +423,137 @@ interface GifFeatureCardProps {
|
|
|
424
423
|
}
|
|
425
424
|
declare const GifFeatureCard: React.FC<GifFeatureCardProps>;
|
|
426
425
|
|
|
427
|
-
|
|
426
|
+
interface NavItem {
|
|
427
|
+
name: string;
|
|
428
|
+
path: string;
|
|
429
|
+
icon: any;
|
|
430
|
+
}
|
|
431
|
+
interface UniversalSidebarProps {
|
|
432
|
+
/** Navigation items to render */
|
|
433
|
+
navItems: NavItem[];
|
|
434
|
+
/** The current active path to determine highlight state */
|
|
435
|
+
currentPath: string;
|
|
436
|
+
/** Mobile drawer state */
|
|
437
|
+
isMobileOpen: boolean;
|
|
438
|
+
/** Function to close the mobile drawer */
|
|
439
|
+
closeMobile: () => void;
|
|
440
|
+
/** Optional click interceptor (useful for unsaved changes warnings) */
|
|
441
|
+
onNavClick?: (e: React.MouseEvent<HTMLAnchorElement>, path: string) => void;
|
|
442
|
+
showInterceptDialog?: boolean;
|
|
443
|
+
onCancelIntercept?: () => void;
|
|
444
|
+
onConfirmIntercept?: () => void;
|
|
445
|
+
interceptTitle?: string;
|
|
446
|
+
interceptMessage?: string;
|
|
447
|
+
}
|
|
448
|
+
declare const UniversalSidebar: React.FC<UniversalSidebarProps>;
|
|
449
|
+
|
|
450
|
+
interface WorkspaceItem {
|
|
451
|
+
id: string;
|
|
452
|
+
name: string;
|
|
453
|
+
role: string;
|
|
454
|
+
}
|
|
455
|
+
interface UniversalHeaderProps {
|
|
456
|
+
/** Mobile drawer trigger */
|
|
457
|
+
onOpenMobile: () => void;
|
|
458
|
+
/** Top left typography */
|
|
459
|
+
title: string;
|
|
460
|
+
subtitle?: string;
|
|
461
|
+
homeUrl?: string;
|
|
462
|
+
/** Configuration Booleans */
|
|
463
|
+
showBackButton?: boolean;
|
|
464
|
+
backUrl?: string;
|
|
465
|
+
showWorkspaceSwitcher?: boolean;
|
|
466
|
+
workspaces?: WorkspaceItem[];
|
|
467
|
+
activeWorkspaceId?: string;
|
|
468
|
+
onSwitchWorkspace?: (orgId: string) => void;
|
|
469
|
+
showLogoutAction?: boolean;
|
|
470
|
+
onLogout?: () => Promise<void>;
|
|
471
|
+
}
|
|
472
|
+
declare const UniversalHeader: React.FC<UniversalHeaderProps>;
|
|
473
|
+
|
|
474
|
+
interface UniversalOrganizationPageProps {
|
|
475
|
+
initialOrgName: string;
|
|
476
|
+
initialSlug: string;
|
|
477
|
+
orgId: string;
|
|
478
|
+
isReadOnly?: boolean;
|
|
479
|
+
slugPrefixUrl?: string;
|
|
480
|
+
onSaveConfiguration: (payload: {
|
|
481
|
+
organizationId: string;
|
|
482
|
+
organizationName?: string;
|
|
483
|
+
slug?: string;
|
|
484
|
+
}) => Promise<{
|
|
485
|
+
success: boolean;
|
|
486
|
+
error?: string;
|
|
487
|
+
}>;
|
|
488
|
+
onCheckSlugAvailability: (slug: string) => Promise<{
|
|
489
|
+
available: boolean;
|
|
490
|
+
}>;
|
|
491
|
+
}
|
|
492
|
+
declare const UniversalOrganizationPage: React.FC<UniversalOrganizationPageProps>;
|
|
493
|
+
|
|
494
|
+
interface UniversalIdentityPageProps {
|
|
495
|
+
headerTitle: string;
|
|
496
|
+
headerDescription: string;
|
|
497
|
+
primaryInputLabel: string;
|
|
498
|
+
secondaryInputLabel?: string;
|
|
499
|
+
initialPrimaryValue: string;
|
|
500
|
+
initialSecondaryValue?: string;
|
|
501
|
+
resourceId: string;
|
|
502
|
+
isReadOnly?: boolean;
|
|
503
|
+
allowDeletion?: boolean;
|
|
504
|
+
deleteWarningText?: string;
|
|
505
|
+
onSaveIdentity: (payload: {
|
|
506
|
+
resourceId: string;
|
|
507
|
+
primaryValue?: string;
|
|
508
|
+
secondaryValue?: string;
|
|
509
|
+
}) => Promise<{
|
|
510
|
+
success: boolean;
|
|
511
|
+
error?: string;
|
|
512
|
+
}>;
|
|
513
|
+
onDeleteResource?: (resourceId: string) => Promise<{
|
|
514
|
+
success: boolean;
|
|
515
|
+
error?: string;
|
|
516
|
+
}>;
|
|
517
|
+
onSuccessfulDeleteRedirect?: string;
|
|
518
|
+
}
|
|
519
|
+
declare const UniversalIdentityPage: React.FC<UniversalIdentityPageProps>;
|
|
520
|
+
|
|
521
|
+
interface UniversalMember {
|
|
522
|
+
id: string;
|
|
523
|
+
userId: string;
|
|
524
|
+
fullName: string;
|
|
525
|
+
email: string;
|
|
526
|
+
displayImage?: string;
|
|
527
|
+
profileColor?: string;
|
|
528
|
+
role: string;
|
|
529
|
+
joinedAt: string | Date;
|
|
530
|
+
}
|
|
531
|
+
interface UniversalMembersPageProps {
|
|
532
|
+
headerTitle: string;
|
|
533
|
+
headerDescription: string;
|
|
534
|
+
currentUserId?: string;
|
|
535
|
+
members: UniversalMember[];
|
|
536
|
+
isLoading: boolean;
|
|
537
|
+
currentPage: number;
|
|
538
|
+
totalPages: number;
|
|
539
|
+
onPageChange: (page: number) => void;
|
|
540
|
+
canManage: boolean;
|
|
541
|
+
canChangeRoles: boolean;
|
|
542
|
+
availableRoles: string[];
|
|
543
|
+
requireNamesForInvite: boolean;
|
|
544
|
+
onInviteMember: (email: string, firstName?: string, lastName?: string) => Promise<{
|
|
545
|
+
success: boolean;
|
|
546
|
+
error?: string;
|
|
547
|
+
}>;
|
|
548
|
+
onRemoveMember: (member: UniversalMember) => Promise<{
|
|
549
|
+
success: boolean;
|
|
550
|
+
error?: string;
|
|
551
|
+
}>;
|
|
552
|
+
onUpdateRole: (member: UniversalMember, newRole: string) => Promise<{
|
|
553
|
+
success: boolean;
|
|
554
|
+
error?: string;
|
|
555
|
+
}>;
|
|
556
|
+
}
|
|
557
|
+
declare const UniversalMembersPage: React.FC<UniversalMembersPageProps>;
|
|
558
|
+
|
|
559
|
+
export { AITranscriptionFeature, type AITranscriptionFeatureProps, AppBento2, type AppBento2Props, type BentoFeature, type BoardMember, type CompanyDetails, type DocumentSectionData, type EmailContact, Faq, type FaqItem, type FaqProps, FeatureScroll, type FeatureScrollProps, Footer, type FooterColumn, type FooterLink, type FooterProps, GifFeatureCard, type GifFeatureCardProps, Header, type HeaderLink, type HeaderProps, 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, type NavItem, NumberInput, type NumberInputProps, PageSpinner, type PageSpinnerProps, type PlatformFeatureItem, PlatformFeatures, type PlatformFeaturesProps, PortfolioHero, type PortfolioHeroProps, type PricingFeature, type PricingPlan, ProductHero, type ProductHeroProps, type ProjectItem, type ScrollFeature, type SocialContact, type SocialLink, TextInput, type TextInputProps, ThreeDActionButton, type ThreeDActionButtonProps, ThreeDButton, type ThreeDButtonProps, UniversalHeader, type UniversalHeaderProps, UniversalIdentityPage, type UniversalIdentityPageProps, type UniversalMember, UniversalMembersPage, type UniversalMembersPageProps, UniversalOrganizationPage, type UniversalOrganizationPageProps, UniversalSidebar, type UniversalSidebarProps, type WorkspaceItem, ZairusAuth, type ZairusAuthProps };
|