@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.
- package/dist/moser-labs-react.cjs +2018 -99
- package/dist/moser-labs-react.d.ts +1 -0
- package/dist/moser-labs-react.js +38224 -22643
- package/dist/src/_dev/components/DevDirectoryLink.d.ts +0 -1
- package/dist/src/_dev/components/DevLink.d.ts +1 -2
- package/dist/src/_dev/lib/directory.d.ts +0 -1
- package/dist/src/_dev/sandbox.d.ts +0 -1
- package/dist/src/_dev/views/Base.view.d.ts +1 -4
- package/dist/src/_dev/views/Inputs.view.d.ts +1 -4
- package/dist/src/_dev/views/Presentation.view.d.ts +1 -4
- package/dist/src/components/FieldContainer/FieldContainer.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerInput.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerLabel.d.ts +0 -1
- package/dist/src/components/FieldContainer/FieldContainerMessage.d.ts +0 -1
- package/dist/src/components/LabsAuthGate.d.ts +0 -1
- package/dist/src/components/LabsButton.d.ts +0 -1
- package/dist/src/components/LabsCalendar.d.ts +0 -1
- package/dist/src/components/LabsCheckbox.d.ts +2 -3
- package/dist/src/components/LabsCount.d.ts +0 -1
- package/dist/src/components/LabsDate.d.ts +4 -4
- package/dist/src/components/LabsIcon.d.ts +0 -1
- package/dist/src/components/LabsLoader.d.ts +0 -1
- package/dist/src/components/LabsLogoutTimer.d.ts +0 -1
- package/dist/src/components/LabsMain.d.ts +0 -1
- package/dist/src/components/LabsMainDesktopNav.d.ts +0 -1
- package/dist/src/components/LabsMainHeaderActions.d.ts +10 -0
- package/dist/src/components/LabsMainMobileNav.d.ts +0 -1
- package/dist/src/components/LabsMenuNav.d.ts +0 -1
- package/dist/src/components/LabsPlaceholder.d.ts +0 -1
- package/dist/src/components/LabsSelect.d.ts +2 -3
- package/dist/src/components/LabsSpeedDialNav.d.ts +0 -1
- package/dist/src/components/LabsText.d.ts +2 -3
- package/dist/src/components/LabsTextCurrency.d.ts +1 -2
- package/dist/src/components/LabsTextSearch.d.ts +1 -2
- package/dist/src/components/LabsTextarea.d.ts +2 -3
- package/dist/src/components/LabsToggle.d.ts +0 -1
- package/dist/src/components/LabsTypeahead.d.ts +4 -5
- package/dist/src/components/LabsUser.d.ts +0 -1
- package/dist/src/hooks/useAnalytics.d.ts +7 -8
- package/dist/src/layouts/Base.layout.d.ts +0 -1
- package/dist/src/layouts/Centered.layout.d.ts +0 -1
- package/dist/src/layouts/Main.layout.d.ts +0 -1
- package/dist/src/lib/analytics/analyticsContext.d.ts +0 -1
- package/dist/src/lib/analytics/createAnalytics.d.ts +0 -1
- package/dist/src/lib/auth/authContext.d.ts +4 -3
- package/dist/src/lib/auth/authUtils.d.ts +22 -21
- package/dist/src/lib/auth/index.d.ts +0 -1
- package/dist/src/lib/dayjs.d.ts +0 -1
- package/dist/src/main.d.ts +1 -1
- package/dist/src/types/DirectoryValue.type.d.ts +0 -1
- package/dist/src/types/ReactHookForm.type.d.ts +0 -1
- package/dist/src/utils/animations.d.ts +0 -1
- package/dist/src/utils/fieldHelpers.d.ts +0 -1
- package/dist/src/utils/forwardRefInferGenerics.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +37 -41
- 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
|
|
6
|
+
refreshOnSameUrl?: boolean;
|
|
8
7
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -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
|
|
299
|
+
declare const DevViewInputs: React.FC;
|
|
303
300
|
export default DevViewInputs;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { CheckboxProps } from 'primereact/checkbox';
|
|
2
|
-
import {
|
|
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
|
|
18
|
+
disabled?: boolean;
|
|
20
19
|
name: TName;
|
|
21
20
|
};
|
|
22
21
|
export {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
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:
|
|
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
|
|
16
|
+
disabled?: boolean;
|
|
17
17
|
name: TName;
|
|
18
18
|
};
|
|
19
19
|
export {};
|
|
@@ -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,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 {
|
|
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
|
|
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 {
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
15
|
+
disabled?: boolean;
|
|
17
16
|
name: TName;
|
|
18
17
|
ref: import('react-hook-form').RefCallBack;
|
|
19
18
|
};
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { default as BaseSelect,
|
|
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>) =>
|
|
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
|
|
17
|
+
disabled?: boolean;
|
|
19
18
|
name: TName;
|
|
20
19
|
ref: import('react-hook-form').RefCallBack;
|
|
21
20
|
};
|
|
@@ -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?: (
|
|
7
|
-
readonly track: (eventName: string, payload?: any, options?: any, callback?: (
|
|
8
|
-
readonly page: (data?: import('analytics').PageData
|
|
9
|
-
readonly user: (key?: string
|
|
10
|
-
readonly reset: (callback?: (
|
|
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
|
|
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?: (
|
|
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,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,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
|
|
23
|
+
join(separator?: string): string;
|
|
23
24
|
reverse(): [string, string][];
|
|
24
25
|
shift(): [string, string] | undefined;
|
|
25
|
-
slice(start?: number
|
|
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
|
|
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
|
|
31
|
-
lastIndexOf(searchElement: [string, string], fromIndex?: 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<
|
|
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<
|
|
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<
|
|
45
|
-
find<
|
|
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
|
|
49
|
-
copyWithin(target: number, start: number, end?: number
|
|
50
|
-
entries():
|
|
51
|
-
keys():
|
|
52
|
-
values():
|
|
53
|
-
includes(searchElement: [string, string], fromIndex?: number
|
|
54
|
-
flatMap<
|
|
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]():
|
|
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():
|
|
106
|
-
keys():
|
|
107
|
-
values():
|
|
108
|
-
[Symbol.iterator]():
|
|
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>;
|
package/dist/src/lib/dayjs.d.ts
CHANGED
package/dist/src/main.d.ts
CHANGED
|
@@ -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 { 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,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;
|