@pega/react-sdk-overrides 0.25.1 → 0.25.2

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 (97) hide show
  1. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +0 -1
  2. package/lib/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +48 -30
  3. package/lib/designSystemExtension/FieldGroup/FieldGroup.tsx +1 -1
  4. package/lib/designSystemExtension/Operator/Operator.tsx +10 -7
  5. package/lib/designSystemExtension/Pulse/Pulse.tsx +1 -1
  6. package/lib/field/AutoComplete/AutoComplete.tsx +1 -1
  7. package/lib/field/CancelAlert/CancelAlert.tsx +1 -1
  8. package/lib/field/Checkbox/Checkbox.tsx +1 -1
  9. package/lib/field/Currency/Currency.tsx +3 -3
  10. package/lib/field/Date/Date.tsx +3 -7
  11. package/lib/field/DateTime/DateTime.tsx +3 -8
  12. package/lib/field/Decimal/Decimal.tsx +3 -5
  13. package/lib/field/Dropdown/Dropdown.tsx +5 -5
  14. package/lib/field/Email/Email.tsx +11 -13
  15. package/lib/field/Group/Group.tsx +2 -2
  16. package/lib/field/Integer/Integer.tsx +5 -7
  17. package/lib/field/Percentage/Percentage.tsx +3 -7
  18. package/lib/field/Phone/Phone.tsx +7 -5
  19. package/lib/field/RadioButtons/RadioButtons.tsx +1 -1
  20. package/lib/field/RichText/RichText.tsx +1 -1
  21. package/lib/field/ScalarList/ScalarList.tsx +1 -1
  22. package/lib/field/SemanticLink/SemanticLink.tsx +1 -1
  23. package/lib/field/TextArea/TextArea.tsx +5 -7
  24. package/lib/field/TextContent/TextContent.tsx +1 -1
  25. package/lib/field/TextInput/TextInput.tsx +5 -7
  26. package/lib/field/Time/Time.tsx +3 -7
  27. package/lib/field/URL/URL.tsx +5 -7
  28. package/lib/field/UserReference/UserReference.tsx +1 -1
  29. package/lib/helpers/field-group-utils.ts +1 -1
  30. package/lib/helpers/simpleTableHelpers.ts +1 -1
  31. package/lib/infra/Assignment/Assignment.tsx +2 -2
  32. package/lib/infra/AssignmentCard/AssignmentCard.tsx +2 -2
  33. package/lib/infra/Containers/FlowContainer/FlowContainer.tsx +1 -1
  34. package/lib/infra/Containers/ModalViewContainer/ListViewActionButtons/ListViewActionButtons.tsx +1 -1
  35. package/lib/infra/Containers/ModalViewContainer/ModalViewContainer.tsx +1 -1
  36. package/lib/infra/Containers/ViewContainer/ViewContainer.tsx +1 -1
  37. package/lib/infra/DashboardFilter/DashboardFilter.tsx +2 -2
  38. package/lib/infra/DeferLoad/DeferLoad.tsx +1 -1
  39. package/lib/infra/ErrorBoundary/ErrorBoundary.tsx +1 -1
  40. package/lib/infra/MultiStep/MultiStep.tsx +2 -2
  41. package/lib/infra/NavBar/NavBar.tsx +26 -23
  42. package/lib/infra/Reference/Reference.tsx +1 -1
  43. package/lib/infra/Region/Region.tsx +1 -1
  44. package/lib/infra/RootContainer/RootContainer.tsx +2 -2
  45. package/lib/infra/Stages/Stages.tsx +1 -1
  46. package/lib/infra/View/View.tsx +2 -2
  47. package/lib/template/AppShell/AppShell.tsx +2 -2
  48. package/lib/template/BannerPage/BannerPage.tsx +2 -2
  49. package/lib/template/CaseSummary/CaseSummary.tsx +2 -2
  50. package/lib/template/CaseView/CaseView.tsx +2 -2
  51. package/lib/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +1 -1
  52. package/lib/template/Confirmation/Confirmation.tsx +2 -2
  53. package/lib/template/DataReference/DataReference.tsx +2 -2
  54. package/lib/template/DefaultForm/DefaultForm.tsx +2 -2
  55. package/lib/template/Details/Details/Details.tsx +1 -1
  56. package/lib/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +2 -2
  57. package/lib/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +1 -1
  58. package/lib/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +1 -1
  59. package/lib/template/Details/DynamicTabs/DynamicTabs.tsx +1 -1
  60. package/lib/template/FieldGroupTemplate/FieldGroupTemplate.tsx +1 -1
  61. package/lib/template/InlineDashboard/InlineDashboard.tsx +2 -2
  62. package/lib/template/InlineDashboardPage/InlineDashboardPage.tsx +2 -2
  63. package/lib/template/ListPage/ListPage.tsx +1 -1
  64. package/lib/template/ListView/ListView.tsx +2 -2
  65. package/lib/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +1 -1
  66. package/lib/template/NarrowWide/NarrowWide/NarrowWide.tsx +2 -2
  67. package/lib/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +2 -2
  68. package/lib/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +2 -2
  69. package/lib/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +2 -2
  70. package/lib/template/OneColumn/OneColumn/OneColumn.tsx +2 -2
  71. package/lib/template/OneColumn/OneColumnPage/OneColumnPage.tsx +1 -1
  72. package/lib/template/OneColumn/OneColumnTab/OneColumnTab.tsx +2 -2
  73. package/lib/template/PromotedFilters/PromotedFilters.tsx +1 -1
  74. package/lib/template/SimpleTable/SimpleTable/SimpleTable.tsx +1 -1
  75. package/lib/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +2 -2
  76. package/lib/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +1 -1
  77. package/lib/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +1 -1
  78. package/lib/template/SubTabs/SubTabs.tsx +2 -2
  79. package/lib/template/TwoColumn/TwoColumn/TwoColumn.tsx +9 -9
  80. package/lib/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +1 -1
  81. package/lib/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +9 -9
  82. package/lib/template/WideNarrow/WideNarrow/WideNarrow.tsx +2 -2
  83. package/lib/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +2 -2
  84. package/lib/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +2 -2
  85. package/lib/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +2 -2
  86. package/lib/template/WssNavBar/WssNavBar.tsx +1 -1
  87. package/lib/widget/AppAnnouncement/AppAnnouncement.tsx +1 -1
  88. package/lib/widget/Attachment/Attachment.tsx +1 -1
  89. package/lib/widget/CaseHistory/CaseHistory.tsx +2 -2
  90. package/lib/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +1 -1
  91. package/lib/widget/FileUtility/FileUtility/FileUtility.tsx +1 -1
  92. package/lib/widget/Followers/Followers.tsx +2 -2
  93. package/lib/widget/QuickCreate/QuickCreate.tsx +1 -1
  94. package/lib/widget/SummaryItem/SummaryItem.tsx +1 -1
  95. package/lib/widget/SummaryList/SummaryList.tsx +1 -1
  96. package/lib/widget/ToDo/ToDo.tsx +11 -19
  97. package/package.json +1 -1
@@ -4,7 +4,7 @@
4
4
  /* eslint-disable @typescript-eslint/no-shadow */
5
5
 
6
6
  import React, { useState, useEffect, useRef, useCallback } from 'react';
7
- import { Theme } from '@mui/material/styles';
7
+ import type { Theme } from '@mui/material/styles';
8
8
  import createStyles from '@mui/styles/createStyles';
9
9
  import makeStyles from '@mui/styles/makeStyles';
10
10
  import Table from '@mui/material/Table';
@@ -46,7 +46,7 @@ import { getGenericFieldsLocalizedValue } from '@pega/react-sdk-components/lib/c
46
46
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
47
47
 
48
48
  import useInit from './hooks';
49
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
49
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
50
50
 
51
51
  interface ListViewProps extends PConnProps {
52
52
  // If any, enter additional props that only exist on this component
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
2
 
3
3
  interface MultiReferenceReadOnlyProps extends PConnProps {
4
4
  config: { referenceList: any; readonlyContextList: any };
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './NarrowWide.css';
4
4
 
5
5
  interface NarrowWideProps extends PConnProps {
@@ -1,10 +1,10 @@
1
1
  import { createElement } from 'react';
2
- import Grid, { GridSize } from '@mui/material/Grid';
2
+ import Grid, { type GridSize } from '@mui/material/Grid';
3
3
 
4
4
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
6
 
7
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
9
  interface NarrowWideDetailsProps extends PConnProps {
10
10
  // If any, enter additional props that only exist on this component
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './NarrowWideForm.css';
4
4
 
5
5
  interface NarrowWideFormProps extends PConnProps {
@@ -1,6 +1,6 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
2
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface NarrowWidePageProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
2
  import { Grid } from '@mui/material';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface OneColumnProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -1,5 +1,5 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface OneColumnPageProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface OneColumnTabProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component
@@ -6,7 +6,7 @@ import { isEmptyObject } from '@pega/react-sdk-components/lib/components/helpers
6
6
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
7
7
  import './PromotedFilters.css';
8
8
 
9
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
9
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
10
10
 
11
11
  // Can't use PromotedFilterProps until getContainerManager() knows about addTransientItem
12
12
  // Currently just expects "object"
@@ -4,7 +4,7 @@ import { useRef } from 'react';
4
4
  import { buildMetaForListView, getContext } from '@pega/react-sdk-components/lib/components/helpers/simpleTableHelpers';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
6
 
7
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
9
  // Can't use SimpleTableProps until getComponentConfig() and getFieldMetadata() are NOT private
10
10
  interface SimpleTableProps extends PConnProps {
@@ -1,4 +1,4 @@
1
- import React, { PropsWithChildren, useEffect, useLayoutEffect, useRef, useState } from 'react';
1
+ import React, { type PropsWithChildren, useEffect, useLayoutEffect, useRef, useState } from 'react';
2
2
  import Table from '@mui/material/Table';
3
3
  import TableBody from '@mui/material/TableBody';
4
4
  import TableCell from '@mui/material/TableCell';
@@ -29,7 +29,7 @@ import { getReferenceList } from '@pega/react-sdk-components/lib/components/help
29
29
  import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
30
30
  import { getGenericFieldsLocalizedValue } from '@pega/react-sdk-components/lib/components/helpers/common-utils';
31
31
  import { buildFieldsForTable, filterData, getContext } from '@pega/react-sdk-components/lib/components/helpers/simpleTableHelpers';
32
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
32
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
33
33
  import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters';
34
34
 
35
35
  interface SimpleTableManualProps extends PConnProps {
@@ -1,6 +1,6 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
2
 
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface SimpleTableSelectProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -1,4 +1,4 @@
1
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
2
 
3
3
  interface SingleReferenceReadOnlyProps extends PConnProps {
4
4
  // If any, enter additional props that only exist on this component
@@ -1,9 +1,9 @@
1
- import { Children, PropsWithChildren, useEffect, useState } from 'react';
1
+ import { Children, type PropsWithChildren, useEffect, useState } from 'react';
2
2
  import { Tab, Tabs } from '@mui/material';
3
3
  import { TabContext, TabPanel } from '@mui/lab';
4
4
 
5
5
  import { getTransientTabs, getVisibleTabs, tabClick } from './tabUtils';
6
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
7
 
8
8
  interface SubTabsProps extends PConnProps {
9
9
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@mui/material';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import { Grid2, type GridSize } from '@mui/material';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -43,13 +43,13 @@ export default function TwoColumn(props: PropsWithChildren<TwoColumnProps>) {
43
43
  bSize = (ratio * colAArray[1]) as GridSize;
44
44
 
45
45
  return (
46
- <Grid container spacing={1}>
47
- <Grid item xs={12} md={aSize} className={classes.colStyles}>
46
+ <Grid2 container spacing={1}>
47
+ <Grid2 size={{ xs: 12, md: aSize }} className={classes.colStyles}>
48
48
  {childrenToRender[0]}
49
- </Grid>
50
- <Grid item xs={12} md={bSize} className={classes.colStyles}>
49
+ </Grid2>
50
+ <Grid2 size={{ xs: 12, md: bSize }} className={classes.colStyles}>
51
51
  {childrenToRender[1]}
52
- </Grid>
53
- </Grid>
52
+ </Grid2>
53
+ </Grid2>
54
54
  );
55
55
  }
@@ -1,5 +1,5 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface TwoColumnPageProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { Grid, GridSize } from '@mui/material';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import { Grid2, type GridSize } from '@mui/material';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface TwoColumnTabProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -43,13 +43,13 @@ export default function TwoColumnTab(props: PropsWithChildren<TwoColumnTabProps>
43
43
  bSize = (ratio * colAArray[1]) as GridSize;
44
44
 
45
45
  return (
46
- <Grid container spacing={1}>
47
- <Grid item xs={12} md={aSize} className={classes.colStyles}>
46
+ <Grid2 container spacing={1}>
47
+ <Grid2 size={{ xs: 12, md: aSize }} className={classes.colStyles}>
48
48
  {childrenToRender[0]}
49
- </Grid>
50
- <Grid item xs={12} md={bSize} className={classes.colStyles}>
49
+ </Grid2>
50
+ <Grid2 size={{ xs: 12, md: bSize }} className={classes.colStyles}>
51
51
  {childrenToRender[1]}
52
- </Grid>
53
- </Grid>
52
+ </Grid2>
53
+ </Grid2>
54
54
  );
55
55
  }
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './WideNarrow.css';
4
4
 
5
5
  interface WideNarrowProps extends PConnProps {
@@ -1,10 +1,10 @@
1
1
  import { createElement } from 'react';
2
- import Grid, { GridSize } from '@mui/material/Grid';
2
+ import Grid, { type GridSize } from '@mui/material/Grid';
3
3
 
4
4
  import createPConnectComponent from '@pega/react-sdk-components/lib/bridge/react_pconnect';
5
5
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
6
6
 
7
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
7
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
8
8
 
9
9
  interface WideNarrowDetailsProps extends PConnProps {
10
10
  // If any, enter additional props that only exist on this component
@@ -1,5 +1,5 @@
1
- import { PropsWithChildren, ReactElement } from 'react';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
1
+ import type { PropsWithChildren, ReactElement } from 'react';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './WideNarrowForm.css';
4
4
 
5
5
  interface WideNarrowFormProps extends PConnProps {
@@ -1,6 +1,6 @@
1
- import { Children, PropsWithChildren } from 'react';
1
+ import { Children, type PropsWithChildren } from 'react';
2
2
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface WideNarrowPageProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -8,7 +8,7 @@ import { IconButton, Menu, MenuItem, Typography, Button } from '@mui/material';
8
8
  import Avatar from '@mui/material/Avatar';
9
9
  import MenuIcon from '@mui/icons-material/Menu';
10
10
  import { logout } from '@pega/auth/lib/sdk-auth-manager';
11
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
12
12
  import './WssNavBar.css';
13
13
 
14
14
  interface WssNavBarProps extends PConnProps {
@@ -1,6 +1,6 @@
1
1
  import { Card, CardContent, CardHeader, Typography, CardActions, Button } from '@mui/material';
2
2
  import makeStyles from '@mui/styles/makeStyles';
3
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
4
 
5
5
  interface AppAnnouncementProps extends PConnProps {
6
6
  // If any, enter additional props that only exist on this component
@@ -8,7 +8,7 @@ import download from 'downloadjs';
8
8
 
9
9
  import { buildFilePropsFromResponse, getIconFromFileType, validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
10
10
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
11
- import { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
11
+ import type { PConnFieldProps } from '@pega/react-sdk-components/lib/types/PConnProps';
12
12
 
13
13
  import './Attachment.css';
14
14
 
@@ -1,5 +1,5 @@
1
1
  import { useEffect, useRef, useState } from 'react';
2
- import { Theme } from '@mui/material/styles';
2
+ import type { Theme } from '@mui/material/styles';
3
3
  import withStyles from '@mui/styles/withStyles';
4
4
  import createStyles from '@mui/styles/createStyles';
5
5
  import Table from '@mui/material/Table';
@@ -11,7 +11,7 @@ import TableRow from '@mui/material/TableRow';
11
11
  import isDeepEqual from 'fast-deep-equal/react';
12
12
 
13
13
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
14
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
14
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
15
15
 
16
16
  interface CaseHistoryProps extends PConnProps {
17
17
  // If any, enter additional props that only exist on this component
@@ -1,5 +1,5 @@
1
1
  import { Button } from '@mui/material';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
  import './ActionButtonsForFileUtil.css';
4
4
 
5
5
  interface ActionButtonsForFileUtilProps extends PConnProps {
@@ -12,7 +12,7 @@ import MoreVertIcon from '@mui/icons-material/MoreVert';
12
12
 
13
13
  import { validateMaxSize } from '@pega/react-sdk-components/lib/components/helpers/attachmentHelpers';
14
14
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
15
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
15
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
16
16
 
17
17
  interface FileUtilityProps extends PConnProps {
18
18
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
- import { PropsWithChildren } from 'react';
1
+ import type { PropsWithChildren } from 'react';
2
2
  import { Card, CardContent, CardHeader, Typography } from '@mui/material';
3
3
  import makeStyles from '@mui/styles/makeStyles';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface FollowersProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useState } from 'react';
2
2
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
3
3
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
4
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
4
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
5
 
6
6
  interface QuickCreateProps extends PConnProps {
7
7
  // If any, enter additional props that only exist on this component
@@ -2,7 +2,7 @@ import { useState } from 'react';
2
2
  import { IconButton, Menu, MenuItem } from '@mui/material';
3
3
  import MoreVertIcon from '@mui/icons-material/MoreVert';
4
4
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
5
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
5
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
6
6
 
7
7
  import './SummaryItem.css';
8
8
 
@@ -1,5 +1,5 @@
1
1
  import { getComponentFromMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
2
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
2
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
3
3
 
4
4
  interface SummaryListProps extends PConnProps {
5
5
  // If any, enter additional props that only exist on this component
@@ -1,19 +1,6 @@
1
1
  /* eslint-disable @typescript-eslint/no-shadow */
2
2
  import React, { useCallback, useEffect, useState } from 'react';
3
- import {
4
- Box,
5
- Button,
6
- Card,
7
- CardContent,
8
- CardHeader,
9
- Avatar,
10
- Typography,
11
- Badge,
12
- List,
13
- ListItem,
14
- ListItemText,
15
- ListItemSecondaryAction
16
- } from '@mui/material';
3
+ import { Box, Button, Card, CardContent, CardHeader, Avatar, Typography, Badge, List, ListItem, ListItemText } from '@mui/material';
17
4
  import Snackbar from '@mui/material/Snackbar';
18
5
  import IconButton from '@mui/material/IconButton';
19
6
  import CloseIcon from '@mui/icons-material/Close';
@@ -23,7 +10,7 @@ import makeStyles from '@mui/styles/makeStyles';
23
10
  import useMediaQuery from '@mui/material/useMediaQuery';
24
11
 
25
12
  import { Utils } from '@pega/react-sdk-components/lib/components/helpers/utils';
26
- import { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
13
+ import type { PConnProps } from '@pega/react-sdk-components/lib/types/PConnProps';
27
14
 
28
15
  import './ToDo.css';
29
16
 
@@ -347,13 +334,18 @@ export default function ToDo(props: ToDoProps) {
347
334
  <CardContent>
348
335
  <List>
349
336
  {assignments.map(assignment => (
350
- <ListItem key={getAssignmentId(assignment)} dense divider onClick={() => clickGo(assignment)}>
351
- <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />
352
- <ListItemSecondaryAction>
337
+ <ListItem
338
+ key={getAssignmentId(assignment)}
339
+ dense
340
+ divider
341
+ onClick={() => clickGo(assignment)}
342
+ secondaryAction={
353
343
  <IconButton onClick={() => clickGo(assignment)} size='large'>
354
344
  <ArrowForwardIosOutlinedIcon />
355
345
  </IconButton>
356
- </ListItemSecondaryAction>
346
+ }
347
+ >
348
+ <ListItemText primary={getAssignmentName(assignment)} secondary={getListItemComponent(assignment)} />
357
349
  </ListItem>
358
350
  ))}
359
351
  </List>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/react-sdk-overrides",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "React SDK - Code for overriding components",
5
5
  "_filesComment": "During packing, npm ignores everything NOT in the files list",
6
6
  "files": [