@ambuj.bhaskar/react-component-library 0.18.15-alpha → 0.18.17-alpha

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.ts CHANGED
@@ -71,6 +71,46 @@ export declare const AWI_IMAGE_VALIDITY_HELPER: {
71
71
  checkImageValidity: (url: string, setBackgroundImage: any, contentKey: string | undefined, annotationViewType: string | undefined, fallbackImageUrl: any, defaultImage?: string) => Promise<void>;
72
72
  };
73
73
 
74
+ export declare const AwiAnnotationHotkeys: default_2.FC<AwiAnnotationHotkeysProps>;
75
+
76
+ export declare type AwiAnnotationHotkeysProps = {
77
+ title?: string;
78
+ toggleSelectAnnotation: (direction: "forward" | "backward" | "last_update") => void;
79
+ handleLeftKeyDown: () => void;
80
+ handleRightKeyDown: () => void;
81
+ handleUpKeyDown: () => void;
82
+ handleDownKeyDown: () => void;
83
+ handleZoomInClick: () => void;
84
+ handleZoomOutClick: () => void;
85
+ handleCompleteAnnotation: () => void;
86
+ undoAnnotationPoint: () => void;
87
+ reLoadAndReDrawAnnotations: () => void;
88
+ togglePagination: React.Dispatch<React.SetStateAction<boolean>>;
89
+ toggleFullscreen: () => void;
90
+ switchToAutoAnnotations: () => void;
91
+ openShortCutRequestDetails: () => void;
92
+ handleRecentAnnotatedVerifiedImages: () => void;
93
+ handleSendToSamFunctionPrompt: () => void;
94
+ samAPIactive: boolean;
95
+ request?: any;
96
+ switchToEditMode?: () => void;
97
+ switchToCreateMode?: () => void;
98
+ goToNextImage?: () => void;
99
+ goToPreviousImage?: () => void;
100
+ loggedUser: LoggedUser;
101
+ handleGoToPendingAnnotations?: () => void;
102
+ handleCopyByCtrlC?: () => void;
103
+ handlePasteAnnotationsByControlV?: () => void;
104
+ openShortCutKeyModal: any;
105
+ setOpenShortCutKeyModal: (boolean: any) => void;
106
+ setIsAltViaToolPressHandle: () => void;
107
+ isCarousel: boolean;
108
+ selectedTool: string;
109
+ setCrossHairHandle: () => void;
110
+ controlPlusHotkey?: () => void;
111
+ controlMinusHotkey?: () => void;
112
+ };
113
+
74
114
  export declare const AwiEmptyState: React.FC<AwiEmptyStateProps>;
75
115
 
76
116
  export declare type AwiEmptyStateProps = {
@@ -84,6 +124,14 @@ export declare type AwiEmptyStateProps = {
84
124
  title?: string;
85
125
  };
86
126
 
127
+ export declare const AwiGenerateHeader: default_2.FC<AwiGenerateHeaderProps>;
128
+
129
+ declare type AwiGenerateHeaderProps = {
130
+ list: string[];
131
+ headerClass?: string;
132
+ type?: string;
133
+ };
134
+
87
135
  export declare const AwiHelperMethods: {
88
136
  getStatusDisplayText: (status: string, user: any) => any;
89
137
  displayVersion: (branch: any, commitId: any, buildDate: any, buildNumber: any) => void;
@@ -605,6 +653,23 @@ declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-
605
653
 
606
654
  declare type LineVariant = "fill" | "line";
607
655
 
656
+ export declare interface LoggedInUser {
657
+ awi_email: string;
658
+ awi_id: number;
659
+ awi_level: userLevel;
660
+ awi_personal_info: {
661
+ awi_firstname: string;
662
+ awi_lastname: string;
663
+ awi_avatar?: string;
664
+ };
665
+ awi_verification_status?: string;
666
+ }
667
+
668
+ export declare interface LoggedUser {
669
+ token: string;
670
+ userObj: LoggedInUser;
671
+ }
672
+
608
673
  export declare const MathAnnotationHelper: {
609
674
  gcd: any;
610
675
  getDistance: (x1: number, y1: number, x2: number, y2: number) => number;
@@ -935,6 +1000,8 @@ export declare function usePagination(initialPage?: number, initialTotalPages?:
935
1000
  setTotalPages: Dispatch<SetStateAction<number>>;
936
1001
  };
937
1002
 
1003
+ export declare type userLevel = "awi_root" | "awi_admin" | "awi_manager" | "awi_developer" | "awi_supervisor" | "awi_verifier" | "awi_annotator";
1004
+
938
1005
  export declare const useTheme: () => Record<string, string>;
939
1006
 
940
1007
  export declare const useToast: () => {