@moser-inc/moser-labs-react 1.16.4 → 1.17.0

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.
Files changed (57) hide show
  1. package/dist/moser-labs-react.cjs +2018 -99
  2. package/dist/moser-labs-react.d.ts +1 -0
  3. package/dist/moser-labs-react.js +38224 -22643
  4. package/dist/src/_dev/components/DevDirectoryLink.d.ts +0 -1
  5. package/dist/src/_dev/components/DevLink.d.ts +1 -2
  6. package/dist/src/_dev/lib/directory.d.ts +0 -1
  7. package/dist/src/_dev/sandbox.d.ts +0 -1
  8. package/dist/src/_dev/views/Base.view.d.ts +1 -4
  9. package/dist/src/_dev/views/Inputs.view.d.ts +1 -4
  10. package/dist/src/_dev/views/Presentation.view.d.ts +1 -4
  11. package/dist/src/components/FieldContainer/FieldContainer.d.ts +0 -1
  12. package/dist/src/components/FieldContainer/FieldContainerInput.d.ts +0 -1
  13. package/dist/src/components/FieldContainer/FieldContainerLabel.d.ts +0 -1
  14. package/dist/src/components/FieldContainer/FieldContainerMessage.d.ts +0 -1
  15. package/dist/src/components/LabsAuthGate.d.ts +0 -1
  16. package/dist/src/components/LabsButton.d.ts +0 -1
  17. package/dist/src/components/LabsCalendar.d.ts +0 -1
  18. package/dist/src/components/LabsCheckbox.d.ts +2 -3
  19. package/dist/src/components/LabsCount.d.ts +0 -1
  20. package/dist/src/components/LabsDate.d.ts +4 -4
  21. package/dist/src/components/LabsIcon.d.ts +0 -1
  22. package/dist/src/components/LabsLoader.d.ts +0 -1
  23. package/dist/src/components/LabsLogoutTimer.d.ts +0 -1
  24. package/dist/src/components/LabsMain.d.ts +0 -1
  25. package/dist/src/components/LabsMainDesktopNav.d.ts +0 -1
  26. package/dist/src/components/LabsMainHeaderActions.d.ts +10 -0
  27. package/dist/src/components/LabsMainMobileNav.d.ts +0 -1
  28. package/dist/src/components/LabsMenuNav.d.ts +0 -1
  29. package/dist/src/components/LabsPlaceholder.d.ts +0 -1
  30. package/dist/src/components/LabsSelect.d.ts +2 -3
  31. package/dist/src/components/LabsSpeedDialNav.d.ts +0 -1
  32. package/dist/src/components/LabsText.d.ts +2 -3
  33. package/dist/src/components/LabsTextCurrency.d.ts +1 -2
  34. package/dist/src/components/LabsTextSearch.d.ts +1 -2
  35. package/dist/src/components/LabsTextarea.d.ts +2 -3
  36. package/dist/src/components/LabsToggle.d.ts +0 -1
  37. package/dist/src/components/LabsTypeahead.d.ts +4 -5
  38. package/dist/src/components/LabsUser.d.ts +0 -1
  39. package/dist/src/hooks/useAnalytics.d.ts +7 -8
  40. package/dist/src/layouts/Base.layout.d.ts +0 -1
  41. package/dist/src/layouts/Centered.layout.d.ts +0 -1
  42. package/dist/src/layouts/Main.layout.d.ts +0 -1
  43. package/dist/src/lib/analytics/analyticsContext.d.ts +0 -1
  44. package/dist/src/lib/analytics/createAnalytics.d.ts +0 -1
  45. package/dist/src/lib/auth/authContext.d.ts +4 -3
  46. package/dist/src/lib/auth/authUtils.d.ts +22 -21
  47. package/dist/src/lib/auth/index.d.ts +0 -1
  48. package/dist/src/lib/dayjs.d.ts +0 -1
  49. package/dist/src/main.d.ts +1 -1
  50. package/dist/src/types/DirectoryValue.type.d.ts +0 -1
  51. package/dist/src/types/ReactHookForm.type.d.ts +0 -1
  52. package/dist/src/utils/animations.d.ts +0 -1
  53. package/dist/src/utils/fieldHelpers.d.ts +0 -1
  54. package/dist/src/utils/forwardRefInferGenerics.d.ts +0 -1
  55. package/dist/style.css +1 -1
  56. package/package.json +37 -41
  57. package/dist/src/_dev/components/DevLabsUser.d.ts +0 -5
@@ -2,7 +2,6 @@ import { BadgeProps } from 'primereact/badge';
2
2
  import { MenuItem } from 'primereact/menuitem';
3
3
  import { NavLinkProps } from 'react-router-dom';
4
4
  import { DirectoryValue } from '../../main';
5
-
6
5
  type DevDirectoryLinkBaseProps = Omit<NavLinkProps, 'to'>;
7
6
  export interface DevDirectoryLinkProps extends DevDirectoryLinkBaseProps {
8
7
  item: DirectoryValue;
@@ -1,8 +1,7 @@
1
1
  import { LinkProps } from 'react-router-dom';
2
-
3
2
  export type DevLinkProps = LinkProps & {
4
3
  refreshOnSameUrl?: boolean;
5
4
  };
6
5
  export declare const DevLink: import('react').ForwardRefExoticComponent<LinkProps & {
7
- refreshOnSameUrl?: boolean | undefined;
6
+ refreshOnSameUrl?: boolean;
8
7
  } & import('react').RefAttributes<HTMLAnchorElement>>;
@@ -1,5 +1,4 @@
1
1
  import { DirectoryValue } from '../../types/DirectoryValue.type';
2
-
3
2
  export declare const DIRECTORY: {
4
3
  [key: string]: DirectoryValue;
5
4
  };
@@ -1 +0,0 @@
1
-
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
- interface ViewBaseProps {
3
- }
4
- declare const DevViewBase: React.FC<ViewBaseProps>;
1
+ declare const DevViewBase: React.FC;
5
2
  export default DevViewBase;
@@ -1,8 +1,5 @@
1
1
  import { UseFormProps } from 'react-hook-form';
2
2
  import { z } from 'zod';
3
-
4
- interface ViewInputsProps {
5
- }
6
3
  export declare const SampleFormSchema: z.ZodObject<{
7
4
  checkbox: z.ZodBoolean;
8
5
  date: z.ZodEffects<z.ZodNullable<z.ZodDate>, Date | null, Date | null>;
@@ -299,5 +296,5 @@ export declare const useSampleForm: ({ resolver, defaultValues, ...rest }?: UseF
299
296
  } | null;
300
297
  }>;
301
298
  };
302
- declare const DevViewInputs: React.FC<ViewInputsProps>;
299
+ declare const DevViewInputs: React.FC;
303
300
  export default DevViewInputs;
@@ -1,5 +1,2 @@
1
- /// <reference types="react" />
2
- interface ViewInputsProps {
3
- }
4
- declare const DevViewInputs: React.FC<ViewInputsProps>;
1
+ declare const DevViewInputs: React.FC;
5
2
  export default DevViewInputs;
@@ -1,7 +1,6 @@
1
1
  import { MotionProps } from 'framer-motion';
2
2
  import { ReactNode } from 'react';
3
3
  import { ControllerFieldState } from 'react-hook-form';
4
-
5
4
  export interface FieldContainerProps {
6
5
  id: string;
7
6
  labelId?: string;
@@ -1,5 +1,4 @@
1
1
  import { FieldContainerProps } from './FieldContainer';
2
-
3
2
  export interface FieldContainerInputProps extends FieldContainerProps {
4
3
  floatLabel?: boolean;
5
4
  prependIcon?: string;
@@ -1,6 +1,5 @@
1
1
  import { motion } from 'framer-motion';
2
2
  import { ComponentProps } from 'react';
3
-
4
3
  export interface FieldContainerLabelProps extends ComponentProps<typeof motion.label> {
5
4
  id: string;
6
5
  labelId?: string;
@@ -1,6 +1,5 @@
1
1
  import { motion } from 'framer-motion';
2
2
  import { ComponentProps } from 'react';
3
-
4
3
  export interface FieldContainerMessageProps extends ComponentProps<typeof motion.span> {
5
4
  id: string;
6
5
  messageId?: string;
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface LabsAuthGateProps {
4
3
  children: ReactNode;
5
4
  messageLoading?: string;
@@ -1,5 +1,4 @@
1
1
  import { ButtonProps } from 'primereact/button';
2
-
3
2
  export interface LabsButtonProps extends Omit<ButtonProps, 'severity'> {
4
3
  icon?: string;
5
4
  iconClassName?: string;
@@ -1,4 +1,3 @@
1
1
  import { Calendar, CalendarProps } from 'primereact/calendar';
2
-
3
2
  export type LabsCalendarProps = CalendarProps;
4
3
  export declare const LabsCalendar: import('react').ForwardRefExoticComponent<CalendarProps & import('react').RefAttributes<Calendar>>;
@@ -1,8 +1,7 @@
1
1
  import { CheckboxProps } from 'primereact/checkbox';
2
- import { FieldValues, FieldPath } from 'react-hook-form';
2
+ import { FieldPath, FieldValues } from 'react-hook-form';
3
3
  import { FieldContainerProps } from './FieldContainer/FieldContainer';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
-
6
5
  type FieldProps = Partial<CheckboxProps> & FieldContainerProps;
7
6
  export type LabsCheckboxProps = FieldProps;
8
7
  export declare const LabsCheckbox: {
@@ -16,7 +15,7 @@ export declare const toLabsCheckboxProps: <TValues extends FieldValues = FieldVa
16
15
  hasError: boolean;
17
16
  message: string | undefined;
18
17
  onBlur: import('react-hook-form').Noop;
19
- disabled?: boolean | undefined;
18
+ disabled?: boolean;
20
19
  name: TName;
21
20
  };
22
21
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LabsCountProps {
3
2
  count: number | string;
4
3
  plural: string;
@@ -1,19 +1,19 @@
1
- import { FieldValues, FieldPath } from 'react-hook-form';
1
+ import { FormEvent } from 'primereact/ts-helpers';
2
+ import { FieldPath, FieldValues } from 'react-hook-form';
2
3
  import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
3
4
  import { LabsCalendarProps } from './LabsCalendar';
4
5
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
-
6
6
  type FieldProps = LabsCalendarProps & FieldContainerInputProps;
7
7
  export type LabsDateProps = FieldProps;
8
8
  export declare const LabsDate: (props: LabsDateProps) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const toLabsDateProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field: { ref, ...field }, fieldState, }: ControllerRenderParams<TValues, TName>) => {
10
10
  inputRef: import('react-hook-form').RefCallBack;
11
- onChange: (event: import('primereact/calendar').CalendarChangeEvent) => void;
11
+ onChange: (event: FormEvent<Date>) => void;
12
12
  hasError: boolean;
13
13
  message: string | undefined;
14
14
  onBlur: import('react-hook-form').Noop;
15
15
  value: import('react-hook-form').PathValue<TValues, TName>;
16
- disabled?: boolean | undefined;
16
+ disabled?: boolean;
17
17
  name: TName;
18
18
  };
19
19
  export {};
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from 'react';
2
-
3
2
  export declare const LABS_ICONS: {
4
3
  readonly BARS: "pi-bars";
5
4
  readonly CHEVRON_DOWN: "pi-chevron-down";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LabsLoaderProps {
3
2
  label?: string;
4
3
  size?: 'sm' | 'md' | 'lg';
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface LabsLogoutTimerProps {
4
3
  children: ReactNode;
5
4
  options?: {
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
2
  import { DirectoryValue } from '../types/DirectoryValue.type';
3
-
4
3
  export interface LabsMainProps extends ComponentProps<'main'> {
5
4
  children: ReactNode;
6
5
  item?: DirectoryValue;
@@ -1,7 +1,6 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { LabsMenuNavProps } from './LabsMenuNav';
3
3
  import { DirectoryValue } from '../main';
4
-
5
4
  export type LabsMainDesktopNavProps = Omit<LabsMenuNavProps, 'renderItem'> & {
6
5
  renderItem: (item: DirectoryValue, menuProps: {
7
6
  isMenuOpen: boolean;
@@ -0,0 +1,10 @@
1
+ import { HTMLAttributes } from 'react';
2
+ declare module 'react/jsx-runtime' {
3
+ namespace JSX {
4
+ interface IntrinsicElements {
5
+ 'labs-app-switcher': HTMLAttributes<HTMLElement>;
6
+ 'labs-account': HTMLAttributes<HTMLElement>;
7
+ }
8
+ }
9
+ }
10
+ export declare const LabsMainHeaderActions: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { LabsSpeedDialNavProps } from './LabsSpeedDialNav';
3
3
  import { DirectoryValue } from '../main';
4
-
5
4
  export type LabsMainMobileNavProps = Omit<LabsSpeedDialNavProps, 'renderItem'> & {
6
5
  renderItem: (item: DirectoryValue, menuProps: {
7
6
  isMenuOpen: boolean;
@@ -1,7 +1,6 @@
1
1
  import { MenuProps } from 'primereact/menu';
2
2
  import { MenuItem } from 'primereact/menuitem';
3
3
  import { DirectoryValue } from '../types/DirectoryValue.type';
4
-
5
4
  type LabsMenuNavBaseProps = MenuProps;
6
5
  export interface LabsMenuNavProps extends LabsMenuNavBaseProps {
7
6
  items: readonly DirectoryValue[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface LabsPlaceholderProps {
3
2
  children?: React.ReactNode;
4
3
  icon?: string;
@@ -1,10 +1,9 @@
1
1
  import { DropdownProps } from 'primereact/dropdown';
2
2
  import { FormEvent } from 'primereact/ts-helpers';
3
3
  import { IconType } from 'primereact/utils';
4
- import { FieldValues, FieldPath } from 'react-hook-form';
4
+ import { FieldPath, FieldValues } from 'react-hook-form';
5
5
  import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
6
6
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
7
-
8
7
  export interface LabsSelectOption<T = unknown> {
9
8
  label?: string;
10
9
  value?: T;
@@ -28,7 +27,7 @@ export declare const toLabsSelectProps: <TValues extends FieldValues = FieldValu
28
27
  message: string | undefined;
29
28
  onBlur: import('react-hook-form').Noop;
30
29
  value: import('react-hook-form').PathValue<TValues, TName>;
31
- disabled?: boolean | undefined;
30
+ disabled?: boolean;
32
31
  name: TName;
33
32
  };
34
33
  export {};
@@ -1,7 +1,6 @@
1
1
  import { MenuItem } from 'primereact/menuitem';
2
2
  import { SpeedDialProps } from 'primereact/speeddial';
3
3
  import { DirectoryValue } from '../types/DirectoryValue.type';
4
-
5
4
  type LabsSpeedDialNavBaseProps = SpeedDialProps;
6
5
  export interface LabsSpeedDialNavProps extends LabsSpeedDialNavBaseProps {
7
6
  items: readonly DirectoryValue[];
@@ -1,8 +1,7 @@
1
1
  import { InputTextProps } from 'primereact/inputtext';
2
- import { FieldValues, FieldPath } from 'react-hook-form';
2
+ import { FieldPath, FieldValues } from 'react-hook-form';
3
3
  import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
-
6
5
  type FieldProps = Partial<InputTextProps> & FieldContainerInputProps;
7
6
  export type LabsTextProps = FieldProps;
8
7
  export type LabsTextElement = HTMLInputElement;
@@ -13,7 +12,7 @@ export declare const toLabsTextProps: <TValues extends FieldValues = FieldValues
13
12
  message: string | undefined;
14
13
  onChange: (...event: any[]) => void;
15
14
  onBlur: import('react-hook-form').Noop;
16
- disabled?: boolean | undefined;
15
+ disabled?: boolean;
17
16
  name: TName;
18
17
  ref: import('react-hook-form').RefCallBack;
19
18
  };
@@ -1,5 +1,4 @@
1
1
  import { LabsTextProps } from './LabsText';
2
-
3
2
  export type LabsTextCurrencyProps = LabsTextProps;
4
3
  export declare const LabsTextCurrency: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
5
4
  export declare const toLabsTextCurrencyProps: <TValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues, TName extends import('react-hook-form').FieldPath<TValues> = import('react-hook-form').FieldPath<TValues>>({ field, fieldState, }: import('../main').ControllerRenderParams<TValues, TName>) => {
@@ -8,7 +7,7 @@ export declare const toLabsTextCurrencyProps: <TValues extends import('react-hoo
8
7
  message: string | undefined;
9
8
  onChange: (...event: any[]) => void;
10
9
  onBlur: import('react-hook-form').Noop;
11
- disabled?: boolean | undefined;
10
+ disabled?: boolean;
12
11
  name: TName;
13
12
  ref: import('react-hook-form').RefCallBack;
14
13
  };
@@ -1,5 +1,4 @@
1
1
  import { LabsTextProps } from './LabsText';
2
-
3
2
  export type LabsTextSearchProps = LabsTextProps;
4
3
  export declare const LabsTextSearch: import('react').ForwardRefExoticComponent<Partial<import('primereact/inputtext').InputTextProps> & import('./FieldContainer/FieldContainerInput').FieldContainerInputProps & import('react').RefAttributes<HTMLInputElement>>;
5
4
  export declare const toLabsTextSearchProps: <TValues extends import('react-hook-form').FieldValues = import('react-hook-form').FieldValues, TName extends import('react-hook-form').FieldPath<TValues> = import('react-hook-form').FieldPath<TValues>>({ field, fieldState, }: import('../main').ControllerRenderParams<TValues, TName>) => {
@@ -8,7 +7,7 @@ export declare const toLabsTextSearchProps: <TValues extends import('react-hook-
8
7
  message: string | undefined;
9
8
  onChange: (...event: any[]) => void;
10
9
  onBlur: import('react-hook-form').Noop;
11
- disabled?: boolean | undefined;
10
+ disabled?: boolean;
12
11
  name: TName;
13
12
  ref: import('react-hook-form').RefCallBack;
14
13
  };
@@ -1,8 +1,7 @@
1
1
  import { InputTextareaProps } from 'primereact/inputtextarea';
2
- import { FieldValues, FieldPath } from 'react-hook-form';
2
+ import { FieldPath, FieldValues } from 'react-hook-form';
3
3
  import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
-
6
5
  type FieldProps = Partial<InputTextareaProps> & FieldContainerInputProps;
7
6
  export type LabsTextareaProps = FieldProps;
8
7
  export type LabsTextareaElement = HTMLTextAreaElement;
@@ -13,7 +12,7 @@ export declare const toLabsTextareaProps: <TValues extends FieldValues = FieldVa
13
12
  message: string | undefined;
14
13
  onChange: (...event: any[]) => void;
15
14
  onBlur: import('react-hook-form').Noop;
16
- disabled?: boolean | undefined;
15
+ disabled?: boolean;
17
16
  name: TName;
18
17
  ref: import('react-hook-form').RefCallBack;
19
18
  };
@@ -1,5 +1,4 @@
1
1
  import { ReactNode } from 'react';
2
-
3
2
  export interface LabsToggleProps {
4
3
  title: ReactNode;
5
4
  children: ReactNode;
@@ -1,21 +1,20 @@
1
- import { FieldValues, FieldPath } from 'react-hook-form';
2
- import { default as BaseSelect, GroupBase, Props as BaseSelectProps } from 'react-select';
1
+ import { FieldPath, FieldValues } from 'react-hook-form';
2
+ import { default as BaseSelect, Props as BaseSelectProps, GroupBase } from 'react-select';
3
3
  import { FieldContainerInputProps } from './FieldContainer/FieldContainerInput';
4
4
  import { ControllerRenderParams } from '../types/ReactHookForm.type';
5
-
6
5
  interface BaseProps extends FieldContainerInputProps {
7
6
  createable?: boolean;
8
7
  }
9
8
  export type LabsTypeaheadProps<Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>> = BaseSelectProps<Option, Multi, Group> & BaseProps;
10
9
  export type LabsTypeaheadElement = BaseSelect;
11
- export declare const LabsTypeahead: <Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>> & import('react-select/dist/declarations/src/useStateManager').StateManagerAdditionalProps<Option> & BaseProps & import('react').RefAttributes<BaseSelect>) => import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | null;
10
+ export declare const LabsTypeahead: <Option, Multi extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>(props: Omit<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>, "value" | "onChange" | "inputValue" | "menuIsOpen" | "onInputChange" | "onMenuOpen" | "onMenuClose"> & Partial<import('react-select/dist/declarations/src/Select').PublicBaseSelectProps<Option, Multi, Group>> & import('react-select/dist/declarations/src/useStateManager').StateManagerAdditionalProps<Option> & BaseProps & import('react').RefAttributes<BaseSelect>) => React.ReactElement | null;
12
11
  export declare const toLabsTypeaheadProps: <TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>>({ field, fieldState, }: ControllerRenderParams<TValues, TName>) => {
13
12
  value: null;
14
13
  hasError: boolean;
15
14
  message: string | undefined;
16
15
  onChange: (...event: any[]) => void;
17
16
  onBlur: import('react-hook-form').Noop;
18
- disabled?: boolean | undefined;
17
+ disabled?: boolean;
19
18
  name: TName;
20
19
  ref: import('react-hook-form').RefCallBack;
21
20
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type LabsUser = {
3
2
  id: string;
4
3
  fullName: string;
@@ -1,24 +1,23 @@
1
1
  import { User } from '../lib/auth';
2
-
3
2
  export declare const useAnalytics: () => {
4
3
  readonly trackEntity: (eventName: string, entityName?: string, entityId?: string, payload?: Record<string, unknown>) => void;
5
4
  readonly trackUser: (user: User) => void;
6
- readonly identify: (userId: string, traits?: any, options?: any, callback?: ((...params: any[]) => any) | undefined) => Promise<any>;
7
- readonly track: (eventName: string, payload?: any, options?: any, callback?: ((...params: any[]) => any) | undefined) => Promise<any>;
8
- readonly page: (data?: import('analytics').PageData<string> | undefined, options?: any, callback?: ((...params: any[]) => any) | undefined) => Promise<any>;
9
- readonly user: (key?: string | undefined) => any;
10
- readonly reset: (callback?: ((...params: any[]) => any) | undefined) => Promise<any>;
5
+ readonly identify: (userId: string, traits?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
6
+ readonly track: (eventName: string, payload?: any, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
7
+ readonly page: (data?: import('analytics').PageData, options?: any, callback?: (...params: any[]) => any) => Promise<any>;
8
+ readonly user: (key?: string) => string & any;
9
+ readonly reset: (callback?: (...params: any[]) => any) => Promise<any>;
11
10
  readonly ready: (callback: (...params: any[]) => any) => import('analytics').DetachListeners;
12
11
  readonly on: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
13
12
  readonly once: (name: string, callback: (...params: any[]) => any) => import('analytics').DetachListeners;
14
- readonly getState: (key?: string | undefined) => any;
13
+ readonly getState: (key?: string) => any;
15
14
  readonly storage: {
16
15
  getItem: (key: string, options?: any) => any;
17
16
  setItem: (key: string, value: any, options?: any) => void;
18
17
  removeItem: (key: string, options?: any) => void;
19
18
  };
20
19
  readonly plugins: {
21
- enable: (plugins: string | string[], callback?: ((...params: any[]) => any) | undefined) => Promise<any>;
20
+ enable: (plugins: string | string[], callback?: (...params: any[]) => any) => Promise<any>;
22
21
  disable: (plugins: string | string[], callback: (...params: any[]) => any) => Promise<any>;
23
22
  };
24
23
  };
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithoutRef } from 'react';
2
-
3
2
  export type LayoutBaseProps = ComponentPropsWithoutRef<'div'> & {
4
3
  appName: string;
5
4
  favicon?: {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const LayoutCentered: React.FC<{
3
2
  children: React.ReactNode;
4
3
  }>;
@@ -1,7 +1,6 @@
1
1
  import { LabsMainDesktopNavProps } from '../components/LabsMainDesktopNav';
2
2
  import { LabsMainMobileNavProps } from '../components/LabsMainMobileNav';
3
3
  import { DirectoryValue } from '../types/DirectoryValue.type';
4
-
5
4
  interface LayoutMainProps {
6
5
  actions?: (() => React.ReactNode) | React.ReactNode;
7
6
  appName: string;
@@ -1,7 +1,6 @@
1
1
  import { AnalyticsInstance } from 'analytics';
2
2
  import { ReactNode } from 'react';
3
3
  import { CreateAnalyticsProps } from './createAnalytics';
4
-
5
4
  export declare const LabsAnalyticsContext: import('react').Context<AnalyticsInstance | null>;
6
5
  export interface LabsAnalyticsProviderProps extends CreateAnalyticsProps {
7
6
  children: ReactNode;
@@ -1,4 +1,3 @@
1
- /// <reference types="analytics" />
2
1
  export interface CreateAnalyticsProps {
3
2
  appName: string;
4
3
  options?: {
@@ -1,7 +1,7 @@
1
- import { User, refreshToken } from '.';
2
-
1
+ import { User, auth, refreshToken } from '.';
3
2
  export type Role = string;
4
3
  export type LabsAuthContextValue = {
4
+ keycloak: typeof auth;
5
5
  user: User | null;
6
6
  hasAllRoles: (roles: Role | readonly Role[] | undefined) => boolean;
7
7
  hasRole: (roles: Role | readonly Role[] | undefined) => boolean;
@@ -13,6 +13,7 @@ export type LabsAuthContextValue = {
13
13
  export declare const LabsAuthContext: import('react').Context<LabsAuthContextValue | null>;
14
14
  export interface LabsAuthProviderProps {
15
15
  appIdentifier: string;
16
+ labsApiUri?: string;
16
17
  children: React.ReactNode;
17
18
  }
18
- export declare const LabsAuthProvider: ({ appIdentifier, children, }: LabsAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const LabsAuthProvider: ({ appIdentifier, labsApiUri, children, }: LabsAuthProviderProps) => import("react/jsx-runtime").JSX.Element;
@@ -15,45 +15,46 @@ export declare const withAuthHeader: (headers?: HeadersInit) => [string, string]
15
15
  length: number;
16
16
  toString(): string;
17
17
  toLocaleString(): string;
18
+ toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
18
19
  pop(): [string, string] | undefined;
19
20
  push(...items: [string, string][]): number;
20
21
  concat(...items: ConcatArray<[string, string]>[]): [string, string][];
21
22
  concat(...items: ([string, string] | ConcatArray<[string, string]>)[]): [string, string][];
22
- join(separator?: string | undefined): string;
23
+ join(separator?: string): string;
23
24
  reverse(): [string, string][];
24
25
  shift(): [string, string] | undefined;
25
- slice(start?: number | undefined, end?: number | undefined): [string, string][];
26
+ slice(start?: number, end?: number): [string, string][];
26
27
  sort(compareFn?: ((a: [string, string], b: [string, string]) => number) | undefined): [string, string][];
27
- splice(start: number, deleteCount?: number | undefined): [string, string][];
28
+ splice(start: number, deleteCount?: number): [string, string][];
28
29
  splice(start: number, deleteCount: number, ...items: [string, string][]): [string, string][];
29
30
  unshift(...items: [string, string][]): number;
30
- indexOf(searchElement: [string, string], fromIndex?: number | undefined): number;
31
- lastIndexOf(searchElement: [string, string], fromIndex?: number | undefined): number;
31
+ indexOf(searchElement: [string, string], fromIndex?: number): number;
32
+ lastIndexOf(searchElement: [string, string], fromIndex?: number): number;
32
33
  every<S extends [string, string]>(predicate: (value: [string, string], index: number, array: [string, string][]) => value is S, thisArg?: any): this is S[];
33
34
  every(predicate: (value: [string, string], index: number, array: [string, string][]) => unknown, thisArg?: any): boolean;
34
35
  some(predicate: (value: [string, string], index: number, array: [string, string][]) => unknown, thisArg?: any): boolean;
35
36
  forEach(callbackfn: (value: [string, string], index: number, array: [string, string][]) => void, thisArg?: any): void;
36
37
  map<U>(callbackfn: (value: [string, string], index: number, array: [string, string][]) => U, thisArg?: any): U[];
37
- filter<S_1 extends [string, string]>(predicate: (value: [string, string], index: number, array: [string, string][]) => value is S_1, thisArg?: any): S_1[];
38
+ filter<S extends [string, string]>(predicate: (value: [string, string], index: number, array: [string, string][]) => value is S, thisArg?: any): S[];
38
39
  filter(predicate: (value: [string, string], index: number, array: [string, string][]) => unknown, thisArg?: any): [string, string][];
39
40
  reduce(callbackfn: (previousValue: [string, string], currentValue: [string, string], currentIndex: number, array: [string, string][]) => [string, string]): [string, string];
40
41
  reduce(callbackfn: (previousValue: [string, string], currentValue: [string, string], currentIndex: number, array: [string, string][]) => [string, string], initialValue: [string, string]): [string, string];
41
- reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: [string, string], currentIndex: number, array: [string, string][]) => U_1, initialValue: U_1): U_1;
42
+ reduce<U>(callbackfn: (previousValue: U, currentValue: [string, string], currentIndex: number, array: [string, string][]) => U, initialValue: U): U;
42
43
  reduceRight(callbackfn: (previousValue: [string, string], currentValue: [string, string], currentIndex: number, array: [string, string][]) => [string, string]): [string, string];
43
44
  reduceRight(callbackfn: (previousValue: [string, string], currentValue: [string, string], currentIndex: number, array: [string, string][]) => [string, string], initialValue: [string, string]): [string, string];
44
- reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: [string, string], currentIndex: number, array: [string, string][]) => U_2, initialValue: U_2): U_2;
45
- find<S_2 extends [string, string]>(predicate: (value: [string, string], index: number, obj: [string, string][]) => value is S_2, thisArg?: any): S_2 | undefined;
45
+ reduceRight<U>(callbackfn: (previousValue: U, currentValue: [string, string], currentIndex: number, array: [string, string][]) => U, initialValue: U): U;
46
+ find<S extends [string, string]>(predicate: (value: [string, string], index: number, obj: [string, string][]) => value is S, thisArg?: any): S | undefined;
46
47
  find(predicate: (value: [string, string], index: number, obj: [string, string][]) => unknown, thisArg?: any): [string, string] | undefined;
47
48
  findIndex(predicate: (value: [string, string], index: number, obj: [string, string][]) => unknown, thisArg?: any): number;
48
- fill(value: [string, string], start?: number | undefined, end?: number | undefined): [string, string][];
49
- copyWithin(target: number, start: number, end?: number | undefined): [string, string][];
50
- entries(): IterableIterator<[number, [string, string]]>;
51
- keys(): IterableIterator<number>;
52
- values(): IterableIterator<[string, string]>;
53
- includes(searchElement: [string, string], fromIndex?: number | undefined): boolean;
54
- flatMap<U_3, This = undefined>(callback: (this: This, value: [string, string], index: number, array: [string, string][]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
49
+ fill(value: [string, string], start?: number, end?: number): [string, string][];
50
+ copyWithin(target: number, start: number, end?: number): [string, string][];
51
+ entries(): ArrayIterator<[number, [string, string]]>;
52
+ keys(): ArrayIterator<number>;
53
+ values(): ArrayIterator<[string, string]>;
54
+ includes(searchElement: [string, string], fromIndex?: number): boolean;
55
+ flatMap<U, This = undefined>(callback: (this: This, value: [string, string], index: number, array: [string, string][]) => U | readonly U[], thisArg?: This | undefined): U[];
55
56
  flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
56
- [Symbol.iterator](): IterableIterator<[string, string]>;
57
+ [Symbol.iterator](): ArrayIterator<[string, string]>;
57
58
  [Symbol.unscopables]: {
58
59
  [x: number]: boolean | undefined;
59
60
  length?: boolean | undefined;
@@ -102,9 +103,9 @@ export declare const withAuthHeader: (headers?: HeadersInit) => [string, string]
102
103
  has(name: string): boolean;
103
104
  set(name: string, value: string): void;
104
105
  forEach(callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any): void;
105
- entries(): IterableIterator<[string, string]>;
106
- keys(): IterableIterator<string>;
107
- values(): IterableIterator<string>;
108
- [Symbol.iterator](): IterableIterator<[string, string]>;
106
+ entries(): HeadersIterator<[string, string]>;
107
+ keys(): HeadersIterator<string>;
108
+ values(): HeadersIterator<string>;
109
+ [Symbol.iterator](): HeadersIterator<[string, string]>;
109
110
  } | undefined;
110
111
  export declare const refreshToken: () => Promise<boolean>;
@@ -1,5 +1,4 @@
1
1
  import { default as Keycloak } from 'keycloak-js';
2
-
3
2
  export declare const auth: Keycloak;
4
3
  export * from './authContext';
5
4
  export * from './authUtils';
@@ -1,3 +1,2 @@
1
1
  import { default as dayjs } from 'dayjs';
2
-
3
2
  export default dayjs;
@@ -1,4 +1,3 @@
1
-
2
1
  export * from './constants/app';
3
2
  export * from './components/LabsAuthGate';
4
3
  export * from './components/LabsButton';
@@ -12,6 +11,7 @@ export * from './components/LabsLogoutTimer';
12
11
  export * from './components/LabsMain';
13
12
  export * from './components/LabsMainDesktopNav';
14
13
  export * from './components/LabsMainMobileNav';
14
+ export * from './components/LabsMainHeaderActions';
15
15
  export * from './components/LabsMenuNav';
16
16
  export * from './components/LabsPlaceholder';
17
17
  export * from './components/LabsSelect';
@@ -1,5 +1,4 @@
1
1
  import { Role } from '../main';
2
-
3
2
  export type DirectoryValue = {
4
3
  EXACT?: boolean;
5
4
  ICON: string;
@@ -1,5 +1,4 @@
1
1
  import { ControllerFieldState, ControllerRenderProps, FieldPath, FieldValues, UseFormStateReturn } from 'react-hook-form';
2
-
3
2
  export type ControllerRenderParams<TValues extends FieldValues = FieldValues, TName extends FieldPath<TValues> = FieldPath<TValues>> = {
4
3
  field: ControllerRenderProps<TValues, TName>;
5
4
  fieldState: ControllerFieldState;
@@ -1,3 +1,2 @@
1
1
  import { MotionProps } from 'framer-motion';
2
-
3
2
  export declare const slideYFadeAnimation: MotionProps;
@@ -1,5 +1,4 @@
1
1
  import { FieldContainerInputProps } from '../components/FieldContainer/FieldContainerInput';
2
-
3
2
  export declare const toFieldInputProps: (fieldProps: Partial<FieldContainerInputProps>) => Partial<Partial<FieldContainerInputProps>>;
4
3
  export declare const toFieldSharedProps: (fieldProps: FieldContainerInputProps) => {
5
4
  className: string;
@@ -1,3 +1,2 @@
1
1
  import { RefAttributes } from 'react';
2
-
3
2
  export declare const forwardRefInferGenerics: <T, P = Record<string, unknown>>(render: (props: P, ref: React.Ref<T>) => React.ReactElement | null) => (props: P & RefAttributes<T>) => React.ReactElement | null;