@ambuj.bhaskar/react-component-library 0.18.14-alpha → 0.18.16-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/assets/index.css +1 -1
- package/dist/index.cjs +299 -280
- package/dist/index.d.ts +63 -0
- package/dist/index.js +21263 -19263
- package/dist/index.umd.js +298 -279
- package/package.json +3 -1
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,8 @@ export declare type AwiEmptyStateProps = {
|
|
|
84
124
|
title?: string;
|
|
85
125
|
};
|
|
86
126
|
|
|
127
|
+
export declare const AwiGenerateHeader: (list: any, headerClass?: string, type?: string) => JSX_2.Element;
|
|
128
|
+
|
|
87
129
|
export declare const AwiHelperMethods: {
|
|
88
130
|
getStatusDisplayText: (status: string, user: any) => any;
|
|
89
131
|
displayVersion: (branch: any, commitId: any, buildDate: any, buildNumber: any) => void;
|
|
@@ -605,6 +647,23 @@ declare type JustifyContent = "center" | "start" | "end" | "flex-start" | "flex-
|
|
|
605
647
|
|
|
606
648
|
declare type LineVariant = "fill" | "line";
|
|
607
649
|
|
|
650
|
+
export declare interface LoggedInUser {
|
|
651
|
+
awi_email: string;
|
|
652
|
+
awi_id: number;
|
|
653
|
+
awi_level: userLevel;
|
|
654
|
+
awi_personal_info: {
|
|
655
|
+
awi_firstname: string;
|
|
656
|
+
awi_lastname: string;
|
|
657
|
+
awi_avatar?: string;
|
|
658
|
+
};
|
|
659
|
+
awi_verification_status?: string;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
export declare interface LoggedUser {
|
|
663
|
+
token: string;
|
|
664
|
+
userObj: LoggedInUser;
|
|
665
|
+
}
|
|
666
|
+
|
|
608
667
|
export declare const MathAnnotationHelper: {
|
|
609
668
|
gcd: any;
|
|
610
669
|
getDistance: (x1: number, y1: number, x2: number, y2: number) => number;
|
|
@@ -920,6 +979,8 @@ declare type ToastProps = {
|
|
|
920
979
|
onClose?: () => void;
|
|
921
980
|
};
|
|
922
981
|
|
|
982
|
+
export declare const ToastProvider: () => JSX_2.Element;
|
|
983
|
+
|
|
923
984
|
declare type ToastType = "success" | "error" | "info" | "warning";
|
|
924
985
|
|
|
925
986
|
declare function translateCoordinatesWithFixedWidth(coordinates: any, shiftAmount?: number, targetCoordinate?: any): any;
|
|
@@ -933,6 +994,8 @@ export declare function usePagination(initialPage?: number, initialTotalPages?:
|
|
|
933
994
|
setTotalPages: Dispatch<SetStateAction<number>>;
|
|
934
995
|
};
|
|
935
996
|
|
|
997
|
+
export declare type userLevel = "awi_root" | "awi_admin" | "awi_manager" | "awi_developer" | "awi_supervisor" | "awi_verifier" | "awi_annotator";
|
|
998
|
+
|
|
936
999
|
export declare const useTheme: () => Record<string, string>;
|
|
937
1000
|
|
|
938
1001
|
export declare const useToast: () => {
|