@bluealba/pae-ui-react-core 4.4.0 → 4.5.0-feature-replace-eslint-prettier-b-299
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/index.cjs.js +46 -46
- package/dist/index.css +1 -1
- package/dist/index.esm.js +7546 -7482
- package/dist/index.systemjs.js +49 -49
- package/dist/index.umd.js +47 -47
- package/dist/src/components/ModulePlaceHolder/BaseContainer.d.ts +2 -3
- package/dist/src/components/ModulePlaceHolder/index.d.ts +1 -1
- package/dist/src/components/PAEModule.d.ts +2 -2
- package/dist/src/components/common/Alert/Alert.d.ts +2 -2
- package/dist/src/components/common/Alert/index.d.ts +1 -1
- package/dist/src/components/common/Dialog/Dialog.d.ts +10 -4
- package/dist/src/components/common/Dialog/index.d.ts +1 -1
- package/dist/src/components/common/DropdownList/index.d.ts +1 -1
- package/dist/src/components/common/ErrorState/ErrorState.d.ts +1 -2
- package/dist/src/components/common/ErrorState/WarningIcon.d.ts +1 -2
- package/dist/src/components/common/ErrorState/index.d.ts +1 -1
- package/dist/src/components/common/List/List.d.ts +7 -7
- package/dist/src/components/common/List/index.d.ts +1 -1
- package/dist/src/components/common/Pagination/Pagination.d.ts +2 -2
- package/dist/src/components/common/SearchAutocomplete/SearchAutocomplete.d.ts +2 -2
- package/dist/src/components/common/Select2/index.d.ts +2 -2
- package/dist/src/components/common/Skeleton/Skeleton.d.ts +2 -2
- package/dist/src/components/common/Table/Table.d.ts +1 -1
- package/dist/src/components/common/TextWithTooltip/TextWithTooltip.d.ts +1 -1
- package/dist/src/components/common/Tooltip/Tooltip.d.ts +1 -1
- package/dist/src/components/common/index.d.ts +47 -47
- package/dist/src/components/index.d.ts +3 -3
- package/dist/src/feature-flags/index.d.ts +2 -2
- package/dist/src/feature-flags/useFeatureFlag.d.ts +1 -1
- package/dist/src/feature-flags/useFeatureFlags.d.ts +1 -1
- package/dist/src/hocs/index.d.ts +1 -1
- package/dist/src/hooks/applications/useApplicationMenu.d.ts +1 -1
- package/dist/src/hooks/habits/mapEvent.d.ts +1 -1
- package/dist/src/hooks/habits/trackEvents.d.ts +1 -1
- package/dist/src/hooks/index.d.ts +22 -22
- package/dist/src/hooks/tenants/strategies/cookie.d.ts +2 -2
- package/dist/src/hooks/tenants/strategies/queryParams.d.ts +1 -1
- package/dist/src/hooks/tenants/strategies/sessionStorage.d.ts +1 -1
- package/dist/src/hooks/userState/UserStateApiClient.d.ts +2 -2
- package/dist/src/hooks/userState/useUserState.d.ts +1 -1
- package/dist/src/index.d.ts +8 -8
- package/dist/src/rooms/index.d.ts +3 -3
- package/dist/src/types.d.ts +9 -5
- package/dist/src/utils/immutable.d.ts +1 -1
- package/dist/src/utils/index.d.ts +3 -3
- package/package.json +3 -2
- package/src/global.css +2 -3
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
declare const BaseContainer: import('react').ForwardRefExoticComponent<BaseContainerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
export type BaseContainerProps = {};
|
|
2
|
+
declare const BaseContainer: import('react').ForwardRefExoticComponent<import('react').RefAttributes<HTMLDivElement>>;
|
|
4
3
|
export default BaseContainer;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { default as React, PropsWithChildren } from 'react';
|
|
2
1
|
import { ModuleMetadata } from '@bluealba/pae-core';
|
|
2
|
+
import { PropsWithChildren } from 'react';
|
|
3
3
|
|
|
4
4
|
type Props = PropsWithChildren<{
|
|
5
5
|
module: ModuleMetadata;
|
|
6
6
|
}>;
|
|
7
|
-
export declare const ModuleContext:
|
|
7
|
+
export declare const ModuleContext: import('react').Context<ModuleMetadata | null>;
|
|
8
8
|
/**
|
|
9
9
|
* Root component for all PAE microfrontents.
|
|
10
10
|
* All "rootComponent"'s from MF's get automatically wrapped with this component.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
export interface TitleProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
}
|
|
4
4
|
export interface DescriptionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
}
|
|
6
6
|
export interface AlertProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
|
-
variant?:
|
|
7
|
+
variant?: 'default' | 'destructive';
|
|
8
8
|
}
|
|
9
9
|
interface Component extends React.FC<AlertProps> {
|
|
10
10
|
Title: typeof Title;
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import { default as React, FC } from 'react';
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as Actions } from './subComponents/Actions';
|
|
3
|
+
import { default as Close } from './subComponents/Close';
|
|
3
4
|
import { default as Content } from './subComponents/Content';
|
|
5
|
+
import { default as Description } from './subComponents/Description';
|
|
4
6
|
import { default as Footer } from './subComponents/Footer';
|
|
7
|
+
import { default as Header } from './subComponents/Header';
|
|
5
8
|
import { default as Title } from './subComponents/Title';
|
|
6
|
-
import { default as Close } from './subComponents/Close';
|
|
7
|
-
import { default as Actions } from './subComponents/Actions';
|
|
8
|
-
import { default as Description } from './subComponents/Description';
|
|
9
9
|
|
|
10
10
|
export interface DialogProps {
|
|
11
11
|
children: React.ReactNode;
|
|
12
12
|
onClose?: () => void;
|
|
13
13
|
open?: boolean;
|
|
14
14
|
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Z-index stacking level relative to --platform-modal-layer.
|
|
17
|
+
* Level 0 (default): overlay = modal-layer, content = modal-layer + 1.
|
|
18
|
+
* Level 1 (nested): overlay = modal-layer + 2, content = modal-layer + 3.
|
|
19
|
+
*/
|
|
20
|
+
zIndexLevel?: number;
|
|
15
21
|
}
|
|
16
22
|
interface Component extends FC<DialogProps> {
|
|
17
23
|
Header: typeof Header;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, HTMLAttributes } from 'react';
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as Description } from './subComponents/Description';
|
|
5
|
-
import { default as Actions } from './subComponents/Actions';
|
|
2
|
+
import { default as Badge } from '../Badge/Badge';
|
|
3
|
+
import { default as Badges } from '../Badge/Badges';
|
|
6
4
|
import { default as Action } from './subComponents/Action';
|
|
5
|
+
import { default as Actions } from './subComponents/Actions';
|
|
6
|
+
import { default as Description } from './subComponents/Description';
|
|
7
7
|
import { default as Icon } from './subComponents/Icon';
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
8
|
+
import { default as Item } from './subComponents/Item';
|
|
9
|
+
import { default as Title } from './subComponents/Title';
|
|
10
10
|
|
|
11
11
|
export interface ListProps extends HTMLAttributes<HTMLUListElement> {
|
|
12
|
-
variant?:
|
|
12
|
+
variant?: 'primary' | 'secondary';
|
|
13
13
|
size?: 'small' | 'medium' | 'large';
|
|
14
14
|
}
|
|
15
15
|
interface Component extends ForwardRefExoticComponent<ListProps> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
declare const Pagination: {
|
|
3
3
|
({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
@@ -7,7 +7,7 @@ declare const PaginationContent: React.ForwardRefExoticComponent<Omit<React.Deta
|
|
|
7
7
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
8
8
|
type PaginationLinkProps = {
|
|
9
9
|
isActive?: boolean;
|
|
10
|
-
} & React.ComponentProps<
|
|
10
|
+
} & React.ComponentProps<'a'>;
|
|
11
11
|
declare const PaginationLink: {
|
|
12
12
|
({ className, isActive, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
displayName: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React, HTMLAttributes } from 'react';
|
|
2
|
-
import { Suggestion } from './types';
|
|
3
2
|
import { SearchInputProps } from '../SearchInput/SearchInput';
|
|
3
|
+
import { Suggestion } from './types';
|
|
4
4
|
|
|
5
5
|
export interface SearchAutocompleteProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
searchInputProps?: SearchInputProps;
|
|
@@ -10,7 +10,7 @@ export interface SearchAutocompleteProps extends HTMLAttributes<HTMLDivElement>
|
|
|
10
10
|
*/
|
|
11
11
|
canAdd?: boolean;
|
|
12
12
|
/**
|
|
13
|
-
|
|
13
|
+
* Callback when a suggestion is selected
|
|
14
14
|
*/
|
|
15
15
|
onAccept?: (suggestion: Suggestion | null) => void;
|
|
16
16
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export
|
|
1
|
+
export type { SelectOption, SelectProps } from './Select';
|
|
2
|
+
export { default, Select } from './Select';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export interface SkeletonProps extends ComponentPropsWithoutRef<
|
|
3
|
+
export interface SkeletonProps extends ComponentPropsWithoutRef<'span'> {
|
|
4
4
|
children?: ReactNode | ReactNode[];
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
height?: number;
|
|
@@ -38,7 +38,7 @@ type TableProps<T> = {
|
|
|
38
38
|
onRowClick?: (row: T) => void;
|
|
39
39
|
};
|
|
40
40
|
declare const Table: {
|
|
41
|
-
<T>({ columns, data, isLoading, totalCount, headerLabel, sort, loadingConfig, pagination, onRowClick }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
<T>({ columns, data, isLoading, totalCount, headerLabel, sort, loadingConfig, pagination, onRowClick, }: TableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
42
42
|
displayName: string;
|
|
43
43
|
};
|
|
44
44
|
export default Table;
|
|
@@ -3,7 +3,7 @@ import { FC } from 'react';
|
|
|
3
3
|
export interface TextWithTooltipProps {
|
|
4
4
|
children: string;
|
|
5
5
|
className?: string;
|
|
6
|
-
tooltipSide?:
|
|
6
|
+
tooltipSide?: 'right' | 'top' | 'bottom' | 'left';
|
|
7
7
|
tooltipClassName?: string;
|
|
8
8
|
}
|
|
9
9
|
export declare const TextWithTooltip: FC<TextWithTooltipProps>;
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export { default as Alert } from './Alert';
|
|
3
3
|
export { Badge, type BadgeProps } from './Badge/Badge';
|
|
4
4
|
export { Badges, type BadgesProps } from './Badge/Badges';
|
|
5
|
+
export type { ButtonProps } from './Button/Button';
|
|
6
|
+
export { Button } from './Button/Button';
|
|
7
|
+
export type { ConfirmDialogProps } from './ConfirmDialog/ConfirmDialog';
|
|
8
|
+
export { default as ConfirmDialog } from './ConfirmDialog/ConfirmDialog';
|
|
5
9
|
export * from './CopyToClipboardButton/CopyToClipboardButton';
|
|
6
|
-
export
|
|
10
|
+
export * from './Dialog';
|
|
11
|
+
export { default as Dialog } from './Dialog';
|
|
12
|
+
export { styles as dropdownListStyles } from './DropdownList';
|
|
13
|
+
export type { DropdownListProps } from './DropdownList/DropdownList';
|
|
14
|
+
export { DropdownList } from './DropdownList/DropdownList';
|
|
15
|
+
export { default as EmptyState } from './EmptyState/EmptyState';
|
|
16
|
+
export * from './ErrorState';
|
|
17
|
+
export { default as ErrorState } from './ErrorState';
|
|
7
18
|
export type { FieldGroupProps } from './FieldGroup/FieldGroup';
|
|
8
|
-
export {
|
|
19
|
+
export { FieldGroup } from './FieldGroup/FieldGroup';
|
|
20
|
+
export * from './Icon/ClipboardCheckIcon';
|
|
21
|
+
export * from './Icon/ClipboardIcon';
|
|
22
|
+
export { default as EyeIcon } from './Icon/EyeIcon';
|
|
9
23
|
export type { InputProps } from './Input/Input';
|
|
10
|
-
export {
|
|
24
|
+
export { Input } from './Input/Input';
|
|
11
25
|
export type { InputErrorProps } from './InputError/InputError';
|
|
12
|
-
export {
|
|
26
|
+
export { InputError } from './InputError/InputError';
|
|
13
27
|
export type { LabelProps } from './Label/Label';
|
|
14
|
-
export {
|
|
15
|
-
export
|
|
16
|
-
export { default as
|
|
17
|
-
export
|
|
18
|
-
export {
|
|
19
|
-
export type {
|
|
20
|
-
export {
|
|
21
|
-
export
|
|
22
|
-
export { SearchInput } from './SearchInput/SearchInput';
|
|
23
|
-
export type { SearchInputProps } from './SearchInput/SearchInput';
|
|
24
|
-
export { SearchAutocomplete } from './SearchAutocomplete/SearchAutocomplete';
|
|
28
|
+
export { Label } from './Label/Label';
|
|
29
|
+
export * from './List';
|
|
30
|
+
export { default as List } from './List';
|
|
31
|
+
export * from './Pagination/Pagination';
|
|
32
|
+
export { default as PasswordInput } from './PasswordInput/PasswordInput';
|
|
33
|
+
export type { PillProps } from './Pill/Pill';
|
|
34
|
+
export { default as Pill } from './Pill/Pill';
|
|
35
|
+
export { default as PluralizeCounter } from './PluralizeCounter/PluralizeCounter';
|
|
25
36
|
export type { SearchAutocompleteProps } from './SearchAutocomplete/SearchAutocomplete';
|
|
37
|
+
export { SearchAutocomplete } from './SearchAutocomplete/SearchAutocomplete';
|
|
26
38
|
export type { Suggestion } from './SearchAutocomplete/types';
|
|
39
|
+
export type { SearchInputProps } from './SearchInput/SearchInput';
|
|
40
|
+
export { SearchInput } from './SearchInput/SearchInput';
|
|
41
|
+
export type { SelectProps } from './Select/Select';
|
|
42
|
+
export { default as Select } from './Select/Select';
|
|
43
|
+
export type { SelectProps as Select2Props } from './Select2/Select';
|
|
44
|
+
export { default as Select2 } from './Select2/Select';
|
|
27
45
|
export { default as Show } from './Show/Show';
|
|
28
|
-
export { Skeleton } from './Skeleton/Skeleton';
|
|
29
|
-
export { SkeletonList } from './Skeleton/SkeletonList';
|
|
30
46
|
export type { SkeletonProps } from './Skeleton/Skeleton';
|
|
47
|
+
export { Skeleton } from './Skeleton/Skeleton';
|
|
31
48
|
export type { SkeletonListProps } from './Skeleton/SkeletonList';
|
|
32
|
-
export {
|
|
33
|
-
export { styles as dropdownListStyles } from './DropdownList';
|
|
34
|
-
export type { DropdownListProps } from './DropdownList/DropdownList';
|
|
35
|
-
export { Tooltip } from './Tooltip/Tooltip';
|
|
36
|
-
export type { TooltipProps } from './Tooltip/Tooltip';
|
|
37
|
-
export { Spinner } from './Spinner/Spinner';
|
|
49
|
+
export { SkeletonList } from './Skeleton/SkeletonList';
|
|
38
50
|
export type { SpinnerProps } from './Spinner/Spinner';
|
|
39
|
-
export {
|
|
51
|
+
export { Spinner } from './Spinner/Spinner';
|
|
40
52
|
export type { SwitchProps } from './Switch/Switch';
|
|
41
|
-
export
|
|
42
|
-
export { default as EyeIcon } from './Icon/EyeIcon';
|
|
43
|
-
export * from './Icon/ClipboardIcon';
|
|
44
|
-
export * from './Icon/ClipboardCheckIcon';
|
|
45
|
-
export { default as PasswordInput } from './PasswordInput/PasswordInput';
|
|
46
|
-
export { default as Dialog } from './Dialog';
|
|
47
|
-
export * from './Dialog';
|
|
48
|
-
export { default as Pill } from './Pill/Pill';
|
|
49
|
-
export type { PillProps } from './Pill/Pill';
|
|
50
|
-
export { default as ConfirmDialog } from './ConfirmDialog/ConfirmDialog';
|
|
51
|
-
export type { ConfirmDialogProps } from './ConfirmDialog/ConfirmDialog';
|
|
52
|
-
export { default as ErrorState } from './ErrorState';
|
|
53
|
-
export * from './ErrorState';
|
|
54
|
-
export { default as List } from './List';
|
|
55
|
-
export * from './List';
|
|
56
|
-
export * from './Pagination/Pagination';
|
|
57
|
-
export { default as PluralizeCounter } from './PluralizeCounter/PluralizeCounter';
|
|
58
|
-
export { default as Table } from './Table/Table';
|
|
53
|
+
export { Switch } from './Switch/Switch';
|
|
59
54
|
export * from './Table/Table';
|
|
60
|
-
export { default as
|
|
61
|
-
export
|
|
62
|
-
export
|
|
55
|
+
export { default as Table } from './Table/Table';
|
|
56
|
+
export * from './Tabs/Tabs';
|
|
57
|
+
export type { TextAreaProps } from './TextArea/TextArea';
|
|
58
|
+
export { TextArea } from './TextArea/TextArea';
|
|
59
|
+
export type { TextWithTooltipProps } from './TextWithTooltip/TextWithTooltip';
|
|
60
|
+
export { TextWithTooltip } from './TextWithTooltip/TextWithTooltip';
|
|
61
|
+
export type { TooltipProps } from './Tooltip/Tooltip';
|
|
62
|
+
export { Tooltip } from './Tooltip/Tooltip';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { default as ApplicationIcon } from './ApplicationIcon';
|
|
2
|
+
export { default as Authorized } from './Authorized';
|
|
2
3
|
export { ExtendExtensionPoint } from './ExtendExtensionPoint';
|
|
3
4
|
export { ExtensionPoint } from './ExtensionPoint';
|
|
4
|
-
export {
|
|
5
|
+
export { ModulePlaceHolder } from './ModulePlaceHolder';
|
|
5
6
|
export { default as PlatformEventListener } from './PlatformEventListener';
|
|
6
|
-
export { default as ApplicationIcon } from './ApplicationIcon';
|
|
7
7
|
export { default as ThemeToggle } from './ThemeToggle/ThemeToggle';
|
|
8
8
|
export { useTheme } from './ThemeToggle/useTheme';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { useFeatureFlags } from './useFeatureFlags';
|
|
2
|
-
export { useFeatureFlag } from './useFeatureFlag';
|
|
3
1
|
export { FeatureFlagGuard, type FeatureFlagGuardProps } from './FeatureFlagGuard';
|
|
2
|
+
export { useFeatureFlag } from './useFeatureFlag';
|
|
3
|
+
export { useFeatureFlags } from './useFeatureFlags';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useFeatureFlag: (flagName: string) =>
|
|
1
|
+
export declare const useFeatureFlag: (flagName: string) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useFeatureFlags: () => Record<string,
|
|
1
|
+
export declare const useFeatureFlags: () => Record<string, any>;
|
package/dist/src/hocs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthUserWithApplications, ModuleMetadata } from '@bluealba/pae-core';
|
|
2
2
|
import { ServiceInvoker } from '../useServiceInvoker';
|
|
3
3
|
import { ApplicationEvent } from './ApplicationEvent';
|
|
4
4
|
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
export { usePAEState } from './usePAEState';
|
|
2
1
|
export { useCatalog } from './catalog/useCatalog';
|
|
3
2
|
export { useMutableCatalog } from './catalog/useMutableCatalog';
|
|
4
3
|
export { useLocation } from './routing/useLocation';
|
|
5
4
|
export { useHasNoSession } from './useHasNoSession';
|
|
6
|
-
export {
|
|
7
|
-
export { useModuleConfig } from './module/useModuleConfig';
|
|
5
|
+
export { usePAEState } from './usePAEState';
|
|
8
6
|
export { useModule } from './module/useModule';
|
|
9
|
-
export { useModuleConfigByName } from './module/useModuleConfigByName';
|
|
10
7
|
export { useModuleCommonPaths } from './module/useModuleCommonPaths';
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
8
|
+
export { useModuleConfig } from './module/useModuleConfig';
|
|
9
|
+
export { useModuleConfigByName } from './module/useModuleConfigByName';
|
|
10
|
+
export { useModuleMetadata } from './module/useModuleMetadata';
|
|
11
|
+
export type { ApplicationMenu, ApplicationMenuItem } from './applications/ApplicationMenu';
|
|
12
|
+
export type { PlatformApplication } from './applications/PlatformApplication';
|
|
14
13
|
export { useApplicationIcon } from './applications/useApplicationIcon';
|
|
15
|
-
export { useModuleMenu } from './applications/useModuleMenu';
|
|
16
|
-
export { useApplicationMenu } from './applications/useApplicationMenu';
|
|
17
|
-
export { useCurrentApplicationName } from './applications/useCurrentApplicationName';
|
|
18
14
|
export { useApplicationJSModule } from './applications/useApplicationJSModule';
|
|
15
|
+
export { useApplicationMenu } from './applications/useApplicationMenu';
|
|
16
|
+
export { useApplications } from './applications/useApplications';
|
|
17
|
+
export { useApplicationUIModule } from './applications/useApplicationUIModule';
|
|
19
18
|
export { useCurrentApplication } from './applications/useCurrentApplication';
|
|
19
|
+
export { useCurrentApplicationName } from './applications/useCurrentApplicationName';
|
|
20
20
|
export { useCurrentJSModule } from './applications/useCurrentJSModule';
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
21
|
+
export { useModuleMenu } from './applications/useModuleMenu';
|
|
22
|
+
export { useUIApplications } from './useUIApplications';
|
|
23
23
|
export { useAuth } from './useAuth';
|
|
24
24
|
export { useOperations } from './useOperations';
|
|
25
|
-
export { useServiceInvoker, type ServiceInvoker } from './useServiceInvoker';
|
|
26
25
|
export { useServiceBaseURL } from './useServiceBaseURL';
|
|
26
|
+
export { type ServiceInvoker, useServiceInvoker } from './useServiceInvoker';
|
|
27
27
|
export { useServiceWebSocketURL } from './useServiceWebSocketURL';
|
|
28
|
+
export type { ApplicationEvent } from './habits/ApplicationEvent';
|
|
28
29
|
export { useTrackEvent } from './habits/useTrackEvent';
|
|
29
30
|
export { useTrackEvents } from './habits/useTrackEvents';
|
|
30
|
-
export { type ApplicationEvent } from './habits/ApplicationEvent';
|
|
31
|
-
export { useExtensionPoint } from './extensions/useExtensionPoint';
|
|
32
|
-
export { useExtendExtensionPoint } from './extensions/useExtendExtensionPoint';
|
|
33
|
-
export { usePlatformEventListener } from './events/usePlatformEventListener';
|
|
34
|
-
export { useDynamicStyleSheet } from './customizations/useDynamicStyleSheet';
|
|
35
31
|
export { useDynamicFonts } from './customizations/useDynamicFonts';
|
|
36
|
-
export {
|
|
37
|
-
export { usePAECustomizationsLoadingState } from './customizations/usePAECustomizationsLoadingState';
|
|
32
|
+
export { useDynamicStyleSheet } from './customizations/useDynamicStyleSheet';
|
|
38
33
|
export { useGetPlatformTheme } from './customizations/useGetPlatformTheme';
|
|
34
|
+
export { usePAECustomizationsLoadingState } from './customizations/usePAECustomizationsLoadingState';
|
|
35
|
+
export { usePlatformCustomization } from './customizations/usePlatformCustomization';
|
|
39
36
|
export * from './customizations/utils';
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
37
|
+
export { usePlatformEventListener } from './events/usePlatformEventListener';
|
|
38
|
+
export { useExtendExtensionPoint } from './extensions/useExtendExtensionPoint';
|
|
39
|
+
export { useExtensionPoint } from './extensions/useExtensionPoint';
|
|
42
40
|
export { useResource } from './commons/useResource';
|
|
41
|
+
export { useResourceActions } from './commons/useResourceActions';
|
|
42
|
+
export { useNotifications } from './useNotifications';
|
|
43
43
|
export { useTenants } from './tenants/useTenants';
|
|
44
44
|
export { useUserState } from './userState/useUserState';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TenantStrategy } from './tenantStrategy.interface';
|
|
2
1
|
import { Tenant, TenantConfig } from '@bluealba/pae-core';
|
|
2
|
+
import { TenantStrategy } from './tenantStrategy.interface';
|
|
3
3
|
|
|
4
4
|
export declare class CookieStrategy implements TenantStrategy {
|
|
5
|
-
setTenant(tenant: Tenant,
|
|
5
|
+
setTenant(tenant: Tenant, _tenantConfig: TenantConfig): void;
|
|
6
6
|
getCurrentTenantName(): string | undefined;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { Tenant, TenantConfig } from '@bluealba/pae-core';
|
|
|
2
2
|
import { TenantStrategy } from './tenantStrategy.interface';
|
|
3
3
|
|
|
4
4
|
export declare class QueryParamStrategy implements TenantStrategy {
|
|
5
|
-
setTenant(tenant: Tenant,
|
|
5
|
+
setTenant(tenant: Tenant, _tenantConfig: TenantConfig): void;
|
|
6
6
|
getCurrentTenantName(): string | null;
|
|
7
7
|
}
|
|
@@ -2,6 +2,6 @@ import { Tenant, TenantConfig } from '@bluealba/pae-core';
|
|
|
2
2
|
import { TenantStrategy } from './tenantStrategy.interface';
|
|
3
3
|
|
|
4
4
|
export declare class SessionStorageStrategy implements TenantStrategy {
|
|
5
|
-
setTenant(tenant: Tenant,
|
|
5
|
+
setTenant(tenant: Tenant, _tenantConfig: TenantConfig): void;
|
|
6
6
|
getCurrentTenantName(): string | null;
|
|
7
7
|
}
|
|
@@ -3,7 +3,7 @@ import { UserState } from './UserState';
|
|
|
3
3
|
|
|
4
4
|
export declare class UserStateApiClient {
|
|
5
5
|
static get<T extends UserState>(invoker: ServiceInvoker, application: string, name: string): Promise<T | null>;
|
|
6
|
-
static create<T extends UserState>(invoker: ServiceInvoker, application: string, name: string, value: T[
|
|
7
|
-
static update<T extends UserState>(invoker: ServiceInvoker, application: string, name: string, value: T[
|
|
6
|
+
static create<T extends UserState>(invoker: ServiceInvoker, application: string, name: string, value: T['value']): Promise<T>;
|
|
7
|
+
static update<T extends UserState>(invoker: ServiceInvoker, application: string, name: string, value: T['value']): Promise<T>;
|
|
8
8
|
static delete(invoker: ServiceInvoker, application: string, name: string): Promise<null>;
|
|
9
9
|
}
|
|
@@ -10,7 +10,7 @@ export type UserStateHook<T> = {
|
|
|
10
10
|
setValue: (newValue: T, shouldThrowError?: boolean) => Promise<T | null>;
|
|
11
11
|
createValue: (params?: UserStateOperationParams<T>) => Promise<T | null>;
|
|
12
12
|
updateValue: (params?: UserStateOperationParams<T>) => Promise<T | null>;
|
|
13
|
-
deleteValue: (params?: Pick<UserStateOperationParams<T>,
|
|
13
|
+
deleteValue: (params?: Pick<UserStateOperationParams<T>, 'shouldThrowError'>) => Promise<T | null>;
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Provides UserState management with automatic persistence.
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
export type {
|
|
3
|
-
export * from './core';
|
|
4
|
-
export * from './hooks';
|
|
5
|
-
export * from './hocs';
|
|
6
|
-
export * from './utils';
|
|
2
|
+
export type { AuthUser, AuthUserWithApplications, BaseUser, ModuleMetadata } from '@bluealba/pae-core';
|
|
7
3
|
export * from './components';
|
|
8
4
|
export * from './components/common';
|
|
9
|
-
export
|
|
10
|
-
export * from './MicrofrontendProps';
|
|
11
|
-
export { setupTestEnvironment } from './test-utils/setupTestEnvironment';
|
|
5
|
+
export * from './core';
|
|
12
6
|
export * from './feature-flags';
|
|
7
|
+
export * from './hocs';
|
|
8
|
+
export * from './hooks';
|
|
9
|
+
export * from './MicrofrontendProps';
|
|
13
10
|
export * from './rooms';
|
|
11
|
+
export { setupTestEnvironment } from './test-utils/setupTestEnvironment';
|
|
12
|
+
export * from './utils';
|
|
13
|
+
export { default as initializeMicroFrontend } from './utils/initializeMicroFrontend';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './types/rooms.types';
|
|
2
|
-
export * from './providers/RoomsProvider';
|
|
3
|
-
export * from './hooks/useRoom';
|
|
4
1
|
export * from './components/RoomAvatars';
|
|
2
|
+
export * from './hooks/useRoom';
|
|
3
|
+
export * from './providers/RoomsProvider';
|
|
4
|
+
export * from './types/rooms.types';
|
|
5
5
|
export * from './utils/user-color.utils';
|
package/dist/src/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TODO: these types are repeated between pae-ui-react-core and orchestrator's main.ts
|
|
2
2
|
|
|
3
|
-
import { BehaviorSubject, Subject } from
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
4
|
import type {
|
|
5
5
|
AuthUserWithApplications,
|
|
6
6
|
ModuleMetadata,
|
|
@@ -10,7 +10,12 @@ import type {
|
|
|
10
10
|
TenantConfig,
|
|
11
11
|
} from '@bluealba/pae-core';
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import {
|
|
14
|
+
EXTENSION_POINTS_REGISTRY,
|
|
15
|
+
GLOBAL_REACTIVE_STATE_KEY,
|
|
16
|
+
PAE_CUSTOMIZATIONS_LOADING_STATE_KEY,
|
|
17
|
+
PAE_GLOBAL_STATE_KEY,
|
|
18
|
+
} from './constants';
|
|
14
19
|
|
|
15
20
|
export type PAEReactiveState = Subject<PAEState>;
|
|
16
21
|
|
|
@@ -23,12 +28,11 @@ export type PAEState = {
|
|
|
23
28
|
tenantConfig?: TenantConfig;
|
|
24
29
|
platformVersion: string;
|
|
25
30
|
platformEnvironment?: string;
|
|
26
|
-
featureFlags: Record<string,
|
|
27
|
-
}
|
|
31
|
+
featureFlags: Record<string, any>;
|
|
32
|
+
};
|
|
28
33
|
|
|
29
34
|
export type PAECustomizationsLoadingState = BehaviorSubject<boolean | undefined>;
|
|
30
35
|
|
|
31
|
-
|
|
32
36
|
declare global {
|
|
33
37
|
interface Window {
|
|
34
38
|
[PAE_GLOBAL_STATE_KEY]: PAEState;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { logout } from './logout';
|
|
2
|
-
export { hasAccess } from './hasAccess';
|
|
3
1
|
export { getApplications } from './getApplications';
|
|
4
2
|
export { getOperations } from './getOperations';
|
|
5
|
-
export {
|
|
3
|
+
export { hasAccess } from './hasAccess';
|
|
6
4
|
export { isValidEmail } from './isValidEmail';
|
|
5
|
+
export { logout } from './logout';
|
|
6
|
+
export { navigateTo } from './navigateTo';
|
|
7
7
|
/**
|
|
8
8
|
* Returns the initials from a given display name.
|
|
9
9
|
*
|