@gridsuite/commons-ui 0.52.0 → 0.53.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 (65) hide show
  1. package/README.md +12 -0
  2. package/dist/components/AuthenticationRouter/index.d.ts +1 -1
  3. package/dist/components/CardErrorBoundary/card-error-boundary.d.ts +1 -1
  4. package/dist/components/CardErrorBoundary/index.d.ts +1 -1
  5. package/dist/components/DirectoryItemSelector/directory-item-selector.d.ts +2 -8
  6. package/dist/components/ElementSearchDialog/element-search-dialog.d.ts +10 -10
  7. package/dist/components/ElementSearchDialog/equipment-item.d.ts +2 -2
  8. package/dist/components/ElementSearchDialog/index.d.ts +2 -2
  9. package/dist/components/ElementSearchDialog/tag-renderer.d.ts +3 -3
  10. package/dist/components/FlatParameters/index.d.ts +1 -1
  11. package/dist/components/Login/index.d.ts +1 -1
  12. package/dist/components/MuiVirtualizedTable/ColumnHeader.d.ts +2 -2
  13. package/dist/components/MuiVirtualizedTable/KeyedColumnsRowIndexer.d.ts +4 -4
  14. package/dist/components/MuiVirtualizedTable/MuiVirtualizedTable.d.ts +22 -22
  15. package/dist/components/MuiVirtualizedTable/index.d.ts +2 -2
  16. package/dist/components/MultipleSelectionDialog/index.d.ts +1 -1
  17. package/dist/components/OverflowableText/index.d.ts +1 -1
  18. package/dist/components/OverflowableText/overflowable-text.d.ts +1 -1
  19. package/dist/components/ReportViewer/index.d.ts +1 -1
  20. package/dist/components/ReportViewer/log-table.d.ts +1 -1
  21. package/dist/components/ReportViewer/report-item.d.ts +2 -2
  22. package/dist/components/ReportViewer/report-tree-view-context.d.ts +1 -1
  23. package/dist/components/ReportViewer/report-viewer.js +1 -1
  24. package/dist/components/ReportViewerDialog/index.d.ts +1 -1
  25. package/dist/components/SignInCallbackHandler/index.d.ts +1 -1
  26. package/dist/components/SilentRenewCallbackHandler/index.d.ts +1 -1
  27. package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +1 -1
  28. package/dist/components/SnackbarProvider/index.d.ts +1 -1
  29. package/dist/components/TopBar/AboutDialog.d.ts +9 -9
  30. package/dist/components/TopBar/GridLogo.d.ts +9 -9
  31. package/dist/components/TopBar/TopBar.d.ts +21 -21
  32. package/dist/components/TopBar/TopBar.test.d.ts +1 -0
  33. package/dist/components/TopBar/index.d.ts +3 -3
  34. package/dist/components/TreeViewFinder/TreeViewFinder.d.ts +4 -4
  35. package/dist/components/TreeViewFinder/TreeViewFinder.js +1 -1
  36. package/dist/components/TreeViewFinder/index.d.ts +1 -1
  37. package/dist/components/react-hook-form/ExpandingTextField.d.ts +3 -8
  38. package/dist/components/react-hook-form/ExpandingTextField.js +1 -1
  39. package/dist/components/react-hook-form/autocomplete-input.d.ts +12 -12
  40. package/dist/components/react-hook-form/booleans/boolean-input.d.ts +5 -5
  41. package/dist/components/react-hook-form/booleans/checkbox-input.d.ts +4 -4
  42. package/dist/components/react-hook-form/booleans/switch-input.d.ts +4 -4
  43. package/dist/components/react-hook-form/directory-items-input.d.ts +2 -8
  44. package/dist/components/react-hook-form/numbers/float-input.d.ts +13 -13
  45. package/dist/components/react-hook-form/numbers/integer-input.d.ts +13 -13
  46. package/dist/components/react-hook-form/radio-input.d.ts +6 -6
  47. package/dist/components/react-hook-form/select-input.d.ts +2 -2
  48. package/dist/components/react-hook-form/slider-input.d.ts +8 -8
  49. package/dist/components/react-hook-form/text-input.d.ts +14 -14
  50. package/dist/components/react-hook-form/utils/cancel-button.d.ts +2 -2
  51. package/dist/components/react-hook-form/utils/submit-button.d.ts +2 -2
  52. package/dist/components/react-hook-form/utils/text-field-with-adornment.d.ts +6 -6
  53. package/dist/components/translations/common-button-en.d.ts +2 -2
  54. package/dist/components/translations/common-button-fr.d.ts +2 -2
  55. package/dist/components/translations/top-bar-en.d.ts +0 -1
  56. package/dist/components/translations/top-bar-en.js +0 -1
  57. package/dist/components/translations/top-bar-fr.d.ts +0 -1
  58. package/dist/components/translations/top-bar-fr.js +0 -1
  59. package/dist/hooks/useIntlRef.d.ts +1 -1
  60. package/dist/index.d.ts +3 -16
  61. package/dist/utils/AuthService.d.ts +1 -1
  62. package/dist/utils/AuthService.js +1 -1
  63. package/dist/utils/EquipmentType.d.ts +3 -1
  64. package/dist/utils/EquipmentType.js +13 -7
  65. package/package.json +66 -63
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SwitchInput;
2
3
  declare function SwitchInput({ name, label, formProps }: {
3
4
  name: any;
@@ -6,9 +7,8 @@ declare function SwitchInput({ name, label, formProps }: {
6
7
  }): import("react/jsx-runtime").JSX.Element;
7
8
  declare namespace SwitchInput {
8
9
  namespace propTypes {
9
- const name: PropTypes.Validator<string>;
10
- const label: PropTypes.Requireable<string>;
11
- const formProps: PropTypes.Requireable<object>;
10
+ let name: PropTypes.Validator<string>;
11
+ let label: PropTypes.Requireable<string>;
12
+ let formProps: PropTypes.Requireable<object>;
12
13
  }
13
14
  }
14
- import PropTypes from 'prop-types';
@@ -1,12 +1,6 @@
1
- /**
2
- * Copyright (c) 2023, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
7
- /// <reference types="node" />
8
- import { FunctionComponent } from 'react';
9
1
  import { UUID } from 'crypto';
2
+ import { FunctionComponent } from 'react';
3
+
10
4
  export declare const NAME = "name";
11
5
  interface DirectoryItemsInputProps {
12
6
  label: string | undefined;
@@ -1,18 +1,18 @@
1
1
  export default FloatInput;
2
2
  declare function FloatInput(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace FloatInput {
4
- const propTypes: {
5
- name: import("prop-types").Requireable<string>;
6
- label: import("prop-types").Requireable<string>;
7
- labelValues: import("prop-types").Requireable<object>;
8
- id: import("prop-types").Requireable<string>;
9
- adornment: import("prop-types").Requireable<object>;
10
- customAdornment: import("prop-types").Requireable<object>;
11
- outputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
12
- inputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
13
- acceptValue: import("prop-types").Requireable<(...args: any[]) => any>;
14
- previousValue: import("prop-types").Requireable<any>;
15
- clearable: import("prop-types").Requireable<boolean>;
16
- formProps: import("prop-types").Requireable<object>;
4
+ let propTypes: {
5
+ name: import('prop-types').Requireable<string>;
6
+ label: import('prop-types').Requireable<string>;
7
+ labelValues: import('prop-types').Requireable<object>;
8
+ id: import('prop-types').Requireable<string>;
9
+ adornment: import('prop-types').Requireable<object>;
10
+ customAdornment: import('prop-types').Requireable<object>;
11
+ outputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
12
+ inputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
13
+ acceptValue: import('prop-types').Requireable<(...args: any[]) => any>;
14
+ previousValue: import('prop-types').Requireable<any>;
15
+ clearable: import('prop-types').Requireable<boolean>;
16
+ formProps: import('prop-types').Requireable<object>;
17
17
  };
18
18
  }
@@ -1,18 +1,18 @@
1
1
  export default IntegerInput;
2
2
  declare function IntegerInput(props: any): import("react/jsx-runtime").JSX.Element;
3
3
  declare namespace IntegerInput {
4
- const propTypes: {
5
- name: import("prop-types").Requireable<string>;
6
- label: import("prop-types").Requireable<string>;
7
- labelValues: import("prop-types").Requireable<object>;
8
- id: import("prop-types").Requireable<string>;
9
- adornment: import("prop-types").Requireable<object>;
10
- customAdornment: import("prop-types").Requireable<object>;
11
- outputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
12
- inputTransform: import("prop-types").Requireable<(...args: any[]) => any>;
13
- acceptValue: import("prop-types").Requireable<(...args: any[]) => any>;
14
- previousValue: import("prop-types").Requireable<any>;
15
- clearable: import("prop-types").Requireable<boolean>;
16
- formProps: import("prop-types").Requireable<object>;
4
+ let propTypes: {
5
+ name: import('prop-types').Requireable<string>;
6
+ label: import('prop-types').Requireable<string>;
7
+ labelValues: import('prop-types').Requireable<object>;
8
+ id: import('prop-types').Requireable<string>;
9
+ adornment: import('prop-types').Requireable<object>;
10
+ customAdornment: import('prop-types').Requireable<object>;
11
+ outputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
12
+ inputTransform: import('prop-types').Requireable<(...args: any[]) => any>;
13
+ acceptValue: import('prop-types').Requireable<(...args: any[]) => any>;
14
+ previousValue: import('prop-types').Requireable<any>;
15
+ clearable: import('prop-types').Requireable<boolean>;
16
+ formProps: import('prop-types').Requireable<object>;
17
17
  };
18
18
  }
@@ -1,3 +1,4 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default RadioInput;
2
3
  declare function RadioInput({ name, label, id, options, formProps }: {
3
4
  name: any;
@@ -8,11 +9,10 @@ declare function RadioInput({ name, label, id, options, formProps }: {
8
9
  }): import("react/jsx-runtime").JSX.Element;
9
10
  declare namespace RadioInput {
10
11
  namespace propTypes {
11
- const name: PropTypes.Validator<string>;
12
- const label: PropTypes.Requireable<string>;
13
- const id: PropTypes.Requireable<string>;
14
- const options: PropTypes.Validator<any[]>;
15
- const formProps: PropTypes.Requireable<object>;
12
+ let name: PropTypes.Validator<string>;
13
+ let label: PropTypes.Requireable<string>;
14
+ let id: PropTypes.Requireable<string>;
15
+ let options: PropTypes.Validator<any[]>;
16
+ let formProps: PropTypes.Requireable<object>;
16
17
  }
17
18
  }
18
- import PropTypes from 'prop-types';
@@ -1,7 +1,8 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SelectInput;
2
3
  declare function SelectInput(props: any): import("react/jsx-runtime").JSX.Element;
3
4
  declare namespace SelectInput {
4
- const propTypes: {
5
+ let propTypes: {
5
6
  name: PropTypes.Validator<string>;
6
7
  label: PropTypes.Requireable<string>;
7
8
  options: PropTypes.Validator<any[]>;
@@ -14,4 +15,3 @@ declare namespace SelectInput {
14
15
  formProps: PropTypes.Requireable<object>;
15
16
  };
16
17
  }
17
- import PropTypes from 'prop-types';
@@ -1,3 +1,5 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ import { identity } from './utils/functions';
1
3
  export default SliderInput;
2
4
  declare function SliderInput({ name, min, max, step, size, onValueChange, }: {
3
5
  name: any;
@@ -9,13 +11,11 @@ declare function SliderInput({ name, min, max, step, size, onValueChange, }: {
9
11
  }): import("react/jsx-runtime").JSX.Element;
10
12
  declare namespace SliderInput {
11
13
  namespace propTypes {
12
- const name: PropTypes.Validator<string>;
13
- const min: PropTypes.Validator<number>;
14
- const max: PropTypes.Validator<number>;
15
- const step: PropTypes.Validator<number>;
16
- const size: PropTypes.Requireable<string>;
17
- const onValueChange: PropTypes.Requireable<(...args: any[]) => any>;
14
+ let name: PropTypes.Validator<string>;
15
+ let min: PropTypes.Validator<number>;
16
+ let max: PropTypes.Validator<number>;
17
+ let step: PropTypes.Validator<number>;
18
+ let size: PropTypes.Requireable<string>;
19
+ let onValueChange: PropTypes.Requireable<(...args: any[]) => any>;
18
20
  }
19
21
  }
20
- import { identity } from './utils/functions';
21
- import PropTypes from 'prop-types';
@@ -1,3 +1,5 @@
1
+ import { default as PropTypes } from 'prop-types';
2
+ import { identity } from './utils/functions';
1
3
  export default TextInput;
2
4
  declare function TextInput({ name, label, labelValues, id, adornment, customAdornment, outputTransform, inputTransform, acceptValue, previousValue, clearable, formProps, }: {
3
5
  name: any;
@@ -15,19 +17,17 @@ declare function TextInput({ name, label, labelValues, id, adornment, customAdor
15
17
  }): import("react/jsx-runtime").JSX.Element;
16
18
  declare namespace TextInput {
17
19
  namespace propTypes {
18
- const name: PropTypes.Requireable<string>;
19
- const label: PropTypes.Requireable<string>;
20
- const labelValues: PropTypes.Requireable<object>;
21
- const id: PropTypes.Requireable<string>;
22
- const adornment: PropTypes.Requireable<object>;
23
- const customAdornment: PropTypes.Requireable<object>;
24
- const outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
25
- const inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
26
- const acceptValue: PropTypes.Requireable<(...args: any[]) => any>;
27
- const previousValue: PropTypes.Requireable<any>;
28
- const clearable: PropTypes.Requireable<boolean>;
29
- const formProps: PropTypes.Requireable<object>;
20
+ let name: PropTypes.Requireable<string>;
21
+ let label: PropTypes.Requireable<string>;
22
+ let labelValues: PropTypes.Requireable<object>;
23
+ let id: PropTypes.Requireable<string>;
24
+ let adornment: PropTypes.Requireable<object>;
25
+ let customAdornment: PropTypes.Requireable<object>;
26
+ let outputTransform: PropTypes.Requireable<(...args: any[]) => any>;
27
+ let inputTransform: PropTypes.Requireable<(...args: any[]) => any>;
28
+ let acceptValue: PropTypes.Requireable<(...args: any[]) => any>;
29
+ let previousValue: PropTypes.Requireable<any>;
30
+ let clearable: PropTypes.Requireable<boolean>;
31
+ let formProps: PropTypes.Requireable<object>;
30
32
  }
31
33
  }
32
- import { identity } from './utils/functions';
33
- import PropTypes from 'prop-types';
@@ -1,10 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default CancelButton;
2
3
  declare function CancelButton({ ...inProps }: {
3
4
  [x: string]: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  declare namespace CancelButton {
6
7
  namespace propTypes {
7
- const buttonProps: PropTypes.Requireable<object>;
8
+ let buttonProps: PropTypes.Requireable<object>;
8
9
  }
9
10
  }
10
- import PropTypes from 'prop-types';
@@ -1,10 +1,10 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default SubmitButton;
2
3
  declare function SubmitButton({ ...buttonProps }: {
3
4
  [x: string]: any;
4
5
  }): import("react/jsx-runtime").JSX.Element;
5
6
  declare namespace SubmitButton {
6
7
  namespace propTypes {
7
- const buttonProps: PropTypes.Requireable<object>;
8
+ let buttonProps: PropTypes.Requireable<object>;
8
9
  }
9
10
  }
10
- import PropTypes from 'prop-types';
@@ -1,12 +1,12 @@
1
+ import { default as PropTypes } from 'prop-types';
1
2
  export default TextFieldWithAdornment;
2
3
  declare function TextFieldWithAdornment(props: any): import("react/jsx-runtime").JSX.Element;
3
4
  declare namespace TextFieldWithAdornment {
4
5
  namespace propTypes {
5
- const adornmentPosition: PropTypes.Validator<string>;
6
- const adornmentText: PropTypes.Validator<string>;
7
- const value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
8
- const variant: PropTypes.Requireable<string>;
9
- const handleClearValue: PropTypes.Requireable<(...args: any[]) => any>;
6
+ let adornmentPosition: PropTypes.Validator<string>;
7
+ let adornmentText: PropTypes.Validator<string>;
8
+ let value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
9
+ let variant: PropTypes.Requireable<string>;
10
+ let handleClearValue: PropTypes.Requireable<(...args: any[]) => any>;
10
11
  }
11
12
  }
12
- import PropTypes from 'prop-types';
@@ -1,5 +1,5 @@
1
1
  export default common_button_en;
2
2
  declare namespace common_button_en {
3
- const cancel: string;
4
- const validate: string;
3
+ let cancel: string;
4
+ let validate: string;
5
5
  }
@@ -1,5 +1,5 @@
1
1
  export default common_button_fr;
2
2
  declare namespace common_button_fr {
3
- const cancel: string;
4
- const validate: string;
3
+ let cancel: string;
4
+ let validate: string;
5
5
  }
@@ -16,7 +16,6 @@ declare const top_bar_en: {
16
16
  'top-bar/id': string;
17
17
  'top-bar/name': string;
18
18
  'top-bar/language': string;
19
- 'top-bar/customTheme': string;
20
19
  'about-dialog/title': string;
21
20
  'about-dialog/version': string;
22
21
  'about-dialog/alert-running-old-version-msg': string;
@@ -9,7 +9,6 @@ const top_bar_en = {
9
9
  "top-bar/id": "Id",
10
10
  "top-bar/name": "Name",
11
11
  "top-bar/language": "Language",
12
- "top-bar/customTheme": "Custom theme",
13
12
  "about-dialog/title": "About",
14
13
  "about-dialog/version": "Version {version}",
15
14
  "about-dialog/alert-running-old-version-msg": "Running old version.\nSave your work and refresh the application to load the latest version.",
@@ -16,7 +16,6 @@ declare const top_bar_fr: {
16
16
  'top-bar/id': string;
17
17
  'top-bar/name': string;
18
18
  'top-bar/language': string;
19
- 'top-bar/customTheme': string;
20
19
  'about-dialog/title': string;
21
20
  'about-dialog/version': string;
22
21
  'about-dialog/alert-running-old-version-msg': string;
@@ -9,7 +9,6 @@ const top_bar_fr = {
9
9
  "top-bar/id": "Id",
10
10
  "top-bar/name": "Nom",
11
11
  "top-bar/language": "Langue",
12
- "top-bar/customTheme": "Choix de theme",
13
12
  "about-dialog/title": "À propos",
14
13
  "about-dialog/version": "Version {version}",
15
14
  "about-dialog/alert-running-old-version-msg": "Ancienne version de l'application.\nVeuillez sauvegarder votre travail et rafraîchir l'application pour charger la dernière version",
@@ -5,4 +5,4 @@
5
5
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
6
  */
7
7
  /// <reference types="react" />
8
- export declare function useIntlRef(): import("react").MutableRefObject<import("react-intl").IntlShape>;
8
+ export declare function useIntlRef(): import('react').MutableRefObject<import("react-intl").IntlShape>;
package/dist/index.d.ts CHANGED
@@ -1,20 +1,7 @@
1
- /**
2
- * Copyright (c) 2024, RTE (http://www.rte-france.com)
3
- * This Source Code Form is subject to the terms of the Mozilla Public
4
- * License, v. 2.0. If a copy of the MPL was not distributed with this
5
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
- */
1
+ import { ButtonProps, SwitchProps, CheckboxProps, RadioGroupProps, SxProps, TextFieldProps } from '@mui/material';
2
+ import { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
3
+ import { FunctionComponent, ReactElement } from 'react';
7
4
 
8
- import type { FunctionComponent, ReactElement } from 'react';
9
- import type { AutocompleteProps } from '@mui/material/Autocomplete/Autocomplete';
10
- import type {
11
- ButtonProps,
12
- SwitchProps,
13
- CheckboxProps,
14
- RadioGroupProps,
15
- SxProps,
16
- TextFieldProps,
17
- } from '@mui/material';
18
5
 
19
6
  /**
20
7
  * Section to export generated type declarations
@@ -1,3 +1,4 @@
1
+ import { UserManagerMock } from './UserManagerMock';
1
2
  export function initializeAuthenticationDev(dispatch: any, isSilentRenew: any, validateUser: any, isSigninCallback: any): Promise<UserManagerMock>;
2
3
  export function initializeAuthenticationProd(dispatch: any, isSilentRenew: any, idpSettings: any, validateUser: any, authorizationCodeFlowEnabled: any, isSigninCallback: any): any;
3
4
  export function handleSilentRenewCallback(userManagerInstance: any): void;
@@ -6,4 +7,3 @@ export function logout(dispatch: any, userManagerInstance: any): any;
6
7
  export function dispatchUser(dispatch: any, userManagerInstance: any, validateUser: any): any;
7
8
  export function handleSigninCallback(dispatch: any, navigate: any, userManagerInstance: any): void;
8
9
  export function getPreLoginPath(): string | null;
9
- import { UserManagerMock } from './UserManagerMock';
@@ -1,7 +1,7 @@
1
1
  import { Log, UserManager } from "oidc-client";
2
2
  import { UserManagerMock } from "./UserManagerMock.js";
3
3
  import { setShowAuthenticationRouterLogin, setLoggedUser, setLogoutError, setUnauthorizedUserInfo, setUserValidationError, setSignInCallbackError, resetAuthenticationRouterError } from "./actions.js";
4
- import jwtDecode from "jwt-decode";
4
+ import { jwtDecode } from "jwt-decode";
5
5
  window.OIDCLog = Log;
6
6
  const hackAuthorityKey = "oidc.hack.authority";
7
7
  const oidcHackReloadedKey = "gridsuite-oidc-hack-reloaded";
@@ -1,3 +1,5 @@
1
+ import { Theme } from '@mui/material';
2
+
1
3
  export declare const TYPE_TAG_MAX_SIZE = "90px";
2
4
  export declare const VL_TAG_MAX_SIZE = "100px";
3
5
  export declare const equipmentStyles: {
@@ -10,7 +12,7 @@ export declare const equipmentStyles: {
10
12
  alignItems: string;
11
13
  justifyContent: string;
12
14
  };
13
- equipmentTag: (theme: string) => {
15
+ equipmentTag: (theme: string | Theme) => {
14
16
  borderRadius: string;
15
17
  padding: string;
16
18
  fontSize: string;
@@ -11,13 +11,19 @@ const equipmentStyles = {
11
11
  alignItems: "center",
12
12
  justifyContent: "space-between"
13
13
  },
14
- equipmentTag: (theme) => ({
15
- borderRadius: "10px",
16
- padding: "4px",
17
- fontSize: "x-small",
18
- textAlign: "center",
19
- color: theme === LIGHT_THEME ? "inherit" : "black"
20
- }),
14
+ equipmentTag: (theme) => {
15
+ var _a;
16
+ return {
17
+ borderRadius: "10px",
18
+ padding: "4px",
19
+ fontSize: "x-small",
20
+ textAlign: "center",
21
+ color: (
22
+ //TODO remove first condition when gridstudy is updated
23
+ theme === LIGHT_THEME || typeof theme !== "string" && ((_a = theme == null ? void 0 : theme.palette) == null ? void 0 : _a.mode) === "light" ? "inherit" : "black"
24
+ )
25
+ };
26
+ },
21
27
  equipmentTypeTag: {
22
28
  minWidth: TYPE_TAG_MAX_SIZE,
23
29
  maxWidth: TYPE_TAG_MAX_SIZE,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridsuite/commons-ui",
3
- "version": "0.52.0",
3
+ "version": "0.53.0",
4
4
  "description": "common react components for gridsuite applications",
5
5
  "engines": {
6
6
  "npm": ">=9",
@@ -24,86 +24,89 @@
24
24
  "test": "jest",
25
25
  "test:coverage": "jest --coverage",
26
26
  "test:watch": "jest --watch",
27
- "lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0"
27
+ "lint": "eslint . --ext js,mjs,jsx,ts,mts,tsx --max-warnings 0",
28
+ "licenses-check": "license-checker --summary --excludePrivatePackages --production --onlyAllow \"$( jq -r .onlyAllow[] license-checker-config.json | tr '\n' ';')\" --excludePackages \"$( jq -r .excludePackages[] license-checker-config.json | tr '\n' ';')\""
28
29
  },
29
30
  "dependencies": {
30
- "autosuggest-highlight": "^3.2.0",
31
- "clsx": "^1.0.4",
32
- "jwt-decode": "^3.0.0",
31
+ "autosuggest-highlight": "^3.3.4",
32
+ "clsx": "^2.1.0",
33
+ "jwt-decode": "^4.0.0",
33
34
  "memoize-one": "^6.0.0",
34
- "oidc-client": "^1.10.1",
35
- "prop-types": "^15.7.2",
36
- "react-csv-downloader": "^2.7.0",
35
+ "oidc-client": "^1.11.5",
36
+ "prop-types": "^15.8.1",
37
+ "react-csv-downloader": "^3.1.0",
37
38
  "react-request-fullscreen": "^1.1.2",
38
39
  "react-virtualized": "^9.22.5",
39
- "uuid": "^3.4.0"
40
+ "uuid": "^9.0.1"
40
41
  },
41
42
  "peerDependencies": {
42
- "@emotion/react": "^11.8.1",
43
- "@emotion/styled": "^11.8.1",
44
- "@mui/icons-material": "^5.5.0",
45
- "@mui/lab": "^5.0.0-alpha.72",
46
- "@mui/material": "^5.5.0",
47
- "@hookform/resolvers": "^3.0.0",
48
- "notistack": "^3.0.0",
49
- "react-router-dom": "^6.0.0",
50
- "react": "^18.0.0",
51
- "react-dom": "^18.0.0",
52
- "react-intl": "^6.0.0",
53
- "react-hook-form": "^7.41.0",
54
- "yup": "^1.0.0"
43
+ "@emotion/react": "^11.11.4",
44
+ "@emotion/styled": "^11.11.0",
45
+ "@hookform/resolvers": "^3.3.4",
46
+ "@mui/icons-material": "^5.15.14",
47
+ "@mui/lab": "5.0.0-alpha.169",
48
+ "@mui/material": "^5.15.14",
49
+ "notistack": "^3.0.1",
50
+ "react": "^18.2.0",
51
+ "react-dom": "^18.2.0",
52
+ "react-hook-form": "^7.51.2",
53
+ "react-intl": "^6.6.4",
54
+ "react-router-dom": "^6.22.3",
55
+ "yup": "^1.4.0"
55
56
  },
56
57
  "devDependencies": {
57
- "@babel/preset-env": "^7.23.8",
58
- "@babel/preset-react": "^7.23.3",
59
- "@babel/preset-typescript": "^7.23.3",
60
- "@emotion/react": "^11.8.1",
61
- "@emotion/styled": "^11.8.1",
62
- "@mui/icons-material": "^5.5.0",
63
- "@mui/lab": "^5.0.0-alpha.72",
64
- "@mui/material": "^5.5.0",
65
- "@mui/styles": "^5.5.0",
66
- "@hookform/resolvers": "^3.0.0",
67
- "@babel/helper-builder-react-jsx": "7.15.4",
68
- "@types/react": "^18.2.56",
69
- "@types/react-dom": "^18.2.19",
70
- "@typescript-eslint/eslint-plugin": "5.62.0",
71
- "@typescript-eslint/parser": "5.62.0",
58
+ "@babel/helper-builder-react-jsx": "^7.22.10",
59
+ "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
60
+ "@babel/preset-env": "^7.24.3",
61
+ "@babel/preset-react": "^7.24.1",
62
+ "@babel/preset-typescript": "^7.24.1",
63
+ "@emotion/react": "^11.11.4",
64
+ "@emotion/styled": "^11.11.5",
65
+ "@hookform/resolvers": "^3.3.4",
66
+ "@mui/icons-material": "^5.15.14",
67
+ "@mui/lab": "5.0.0-alpha.169",
68
+ "@mui/material": "^5.15.14",
69
+ "@mui/x-tree-view": "^6.17.0",
70
+ "@react-hook/window-size": "^3.1.1",
71
+ "@types/react": "^18.2.73",
72
+ "@types/react-dom": "^18.2.23",
73
+ "@typescript-eslint/eslint-plugin": "^6.21.0",
74
+ "@typescript-eslint/parser": "^6.21.0",
72
75
  "@vitejs/plugin-react": "^4.2.1",
73
76
  "babel-eslint": "^10.1.0",
74
- "bufferutil": "^4.0.1",
75
- "eslint": "^7.9.0",
76
- "eslint-config-prettier": "^8.0.0",
77
- "eslint-config-react-app": "^6.0.0",
78
- "eslint-plugin-flowtype": "^5.2.0",
79
- "eslint-plugin-import": "^2.22.0",
80
- "eslint-plugin-jsx-a11y": "^6.3.1",
81
- "eslint-plugin-prettier": "^4.0.0",
82
- "eslint-plugin-react": "^7.21.0",
83
- "eslint-plugin-react-hooks": "^4.1.2",
84
- "glob": "^10.3.10",
77
+ "bufferutil": "^4.0.8",
78
+ "eslint": "^8.57.0",
79
+ "eslint-config-prettier": "^9.1.0",
80
+ "eslint-config-react-app": "^7.0.1",
81
+ "eslint-plugin-flowtype": "^8.0.3",
82
+ "eslint-plugin-import": "^2.29.1",
83
+ "eslint-plugin-jsx-a11y": "^6.8.0",
84
+ "eslint-plugin-prettier": "^4.2.1",
85
+ "eslint-plugin-react": "^7.34.1",
86
+ "eslint-plugin-react-hooks": "^4.6.0",
87
+ "glob": "^10.3.12",
85
88
  "jest": "^29.7.0",
86
89
  "jest-environment-jsdom": "^29.7.0",
87
90
  "jest-svg-transformer": "^1.0.0",
88
- "notistack": "^3.0.0",
89
- "prettier": "^2.0.0",
90
- "react": "^18.0.0",
91
- "react-dom": "^18.0.0",
92
- "react-intl": "^6.0.0",
93
- "react-hook-form": "^7.41.0",
94
- "react-router-dom": "^6.0.0",
91
+ "license-checker": "^25.0.1",
92
+ "notistack": "^3.0.1",
93
+ "prettier": "^2.8.8",
94
+ "react": "^18.2.0",
95
+ "react-dom": "^18.2.0",
96
+ "react-hook-form": "^7.51.2",
97
+ "react-intl": "^6.6.4",
98
+ "react-resizable": "^3.0.5",
99
+ "react-router-dom": "^6.22.3",
95
100
  "ts-node": "^10.9.2",
96
- "type-fest": "^2.0.0",
101
+ "type-fest": "^4.14.0",
97
102
  "typescript": "5.1.6",
98
- "utf-8-validate": "^5.0.2",
99
- "@react-hook/window-size": "^3.1.1",
100
- "react-resizable": "^3.0.4",
101
- "vite": "^5.0.11",
103
+ "utf-8-validate": "^6.0.3",
104
+ "vite": "^5.2.7",
105
+ "vite-plugin-dts": "^3.8.1",
102
106
  "vite-plugin-eslint": "^1.8.1",
107
+ "vite-plugin-lib-inject-css": "^2.0.1",
103
108
  "vite-plugin-svgr": "^4.2.0",
104
- "vite-plugin-dts": "^2.3.0",
105
- "vite-plugin-lib-inject-css": "^2.0.0",
106
- "yup": "^1.0.0"
109
+ "yup": "^1.4.0"
107
110
  },
108
111
  "author": "gridsuite team",
109
112
  "homepage": "https://github.com/gridsuite",