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.
@@ -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,3 @@
1
+ export declare const locationKeys: {
2
+ all: (userId: number) => (string | number)[];
3
+ };
@@ -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 Button: ({ text, type, icon, iconOther, backgroundColor, borderColor, hoverBorderColor, textColor, disabled, margin, width, fontSize, padding, height, onClick, title }: Props) => import("react/jsx-runtime").JSX.Element;
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 { Button } from './Button';
5
+ export { ButtonDropdown } from './ButtonDropdown';
6
6
  export { Spinner } from './Spinner';
7
7
  export { LoadingIndicator } from './LoadingIndicator';
8
8
  export { Dropdown } from './Dropdown';
@@ -1,6 +1,5 @@
1
1
  type Props = {
2
2
  message: string;
3
- buttonConfig?: any;
4
3
  };
5
4
  export declare const ToastNotification: (props: Props) => import("react/jsx-runtime").JSX.Element;
6
5
  export {};
@@ -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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-covideo-embed",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "private": false,
5
5
  "description": "Covideo platform as an embeddable React component.",
6
6
  "main": "./build/index.js",