react-covideo-embed 0.1.35 → 0.1.37
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/README.md +2 -0
- package/build/app/pages/library/components/UserDropdown.d.ts +2 -2
- package/build/index.d.ts +3 -2
- package/build/index.js +141 -141
- package/build/lib/api/multilocation/getUserLocations.d.ts +12 -0
- package/build/lib/api/multilocation/locationKeys.d.ts +3 -0
- package/build/lib/api/multilocation/signIntoLocation.d.ts +10 -0
- package/build/lib/components/{Button.d.ts → ButtonDropdown.d.ts} +2 -1
- package/build/lib/components/index.d.ts +1 -1
- package/build/lib/components/toast-notifications/ToastNotification.d.ts +0 -1
- package/build/lib/context/ConfigurationContext.d.ts +2 -0
- package/build/lib/utils/functions.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface ILocation {
|
|
2
|
+
locationId: number;
|
|
3
|
+
customerId: number;
|
|
4
|
+
name: string;
|
|
5
|
+
streetAddress?: string;
|
|
6
|
+
state?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const useGetLocationsQuery: (userId: number, enabled: boolean) => {
|
|
9
|
+
data: ILocation[];
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
refetch: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<ILocation[], unknown>>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AxiosError } from 'axios';
|
|
2
|
+
interface ILoggedUser {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
refreshToken: string;
|
|
5
|
+
}
|
|
6
|
+
interface ISignIntoParams {
|
|
7
|
+
locationId: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const useSignIntoLocation: (hasExternalJwt: boolean) => import("react-query").UseMutationResult<ILoggedUser, AxiosError<any>, ISignIntoParams, unknown>;
|
|
10
|
+
export {};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
type Props = {
|
|
3
3
|
padding?: string;
|
|
4
4
|
text?: string;
|
|
5
|
+
subtext?: string;
|
|
5
6
|
icon?: JSX.Element;
|
|
6
7
|
iconOther?: JSX.Element;
|
|
7
8
|
backgroundColor?: string;
|
|
@@ -17,5 +18,5 @@ type Props = {
|
|
|
17
18
|
onClick?: (e?: React.SyntheticEvent | React.SyntheticEvent<Element, Event>) => void;
|
|
18
19
|
title?: string;
|
|
19
20
|
};
|
|
20
|
-
export declare const
|
|
21
|
+
export declare const ButtonDropdown: ({ text, subtext, type, icon, iconOther, backgroundColor, borderColor, hoverBorderColor, textColor, disabled, margin, width, fontSize, padding, height, onClick, title, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
export {};
|
|
@@ -2,7 +2,7 @@ export { Logo } from './Logo';
|
|
|
2
2
|
export { TopBar } from './TopBar';
|
|
3
3
|
export { Container } from './Container';
|
|
4
4
|
export { Input } from './Input';
|
|
5
|
-
export {
|
|
5
|
+
export { ButtonDropdown } from './ButtonDropdown';
|
|
6
6
|
export { Spinner } from './Spinner';
|
|
7
7
|
export { LoadingIndicator } from './LoadingIndicator';
|
|
8
8
|
export { Dropdown } from './Dropdown';
|
|
@@ -19,6 +19,7 @@ interface ConfigurationProviderProps {
|
|
|
19
19
|
onUploadButtonClick?: (data: {
|
|
20
20
|
token: string;
|
|
21
21
|
}) => void;
|
|
22
|
+
reRender: () => void;
|
|
22
23
|
}
|
|
23
24
|
type ShowFeature = {
|
|
24
25
|
showInsertFeature: boolean;
|
|
@@ -39,6 +40,7 @@ type ShowFeature = {
|
|
|
39
40
|
showAiAssistFeature: boolean;
|
|
40
41
|
showUpgradeMessageFeature: boolean;
|
|
41
42
|
showLesaTVFeature: boolean;
|
|
43
|
+
showMultiLocationFeature: boolean;
|
|
42
44
|
};
|
|
43
45
|
type IConfigurationContext = ConfigurationProviderProps & ShowFeature & {
|
|
44
46
|
hasExternalJwt: boolean;
|
|
@@ -18,4 +18,5 @@ export declare const toMB: (KB: number) => string;
|
|
|
18
18
|
export declare function capitalizeFirstLetter(string: string): string;
|
|
19
19
|
export declare function clearCookies(): void;
|
|
20
20
|
export declare const toMMSSTimestamp: (sec_num: number, fractionDigits?: number) => string;
|
|
21
|
+
export declare function checkIfMobileDevice(): boolean;
|
|
21
22
|
export {};
|