Skip to content

Commit

Permalink
Mod/spr/bump version to8.23.11 (#165)
Browse files Browse the repository at this point in the history
* Prepare for 8.23.11 publication

* DXCB Publish build requires in-file PCore declaration

* Update some versions to reduce vulnerability count

* Updates to KeyReleaseUpdates.md

* Locking @pega/pcore-pconnect-typedefs to 0.0.6 for now

* Update release date and note 1st/last PR in release 8.23.11
  • Loading branch information
JEAxero authored Aug 10, 2023
1 parent c802d10 commit 61e2e35
Show file tree
Hide file tree
Showing 30 changed files with 752 additions and 226 deletions.
853 changes: 635 additions & 218 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pega/react-sdk-components",
"version": "8.23.10",
"version": "8.23.11",
"description": "React SDK packaging: bridge and components, overrides",
"main": "index.ts",
"scripts": {
Expand Down Expand Up @@ -70,7 +70,7 @@
"@pega/configs": "^0.4.0",
"@pega/cspell-config": "^0.4.0",
"@pega/eslint-config": "^0.4.0",
"@pega/pcore-pconnect-typedefs": "latest",
"@pega/pcore-pconnect-typedefs": "0.0.6",
"@pega/prettier-config": "^0.4.0",
"@pega/stylelint-config": "^0.4.0",
"@pega/tsconfig": "^0.4.0",
Expand All @@ -79,7 +79,7 @@
"@testing-library/react": "^12.1.2",
"@types/jest": "^29.4.0",
"@typescript-eslint/eslint-plugin": "^5.47.0",
"babel-loader": "^9.1.2",
"babel-loader": "^9.1.3",
"clean-webpack-plugin": "^3.0.0",
"commitlint": "^17.3.0",
"compression-webpack-plugin": "^8.0.0",
Expand Down Expand Up @@ -108,8 +108,8 @@
"replace-in-file": "^6.3.5",
"sass-loader": "^10.1.1",
"shx": "^0.3.4",
"stylelint": "^14.16.0",
"style-loader": "^2.0.0",
"stylelint": "^15.10.1",
"ts-jest": "^29.0.5",
"ts-loader": "^8.4.0",
"typescript": "^4.7.4",
Expand Down
8 changes: 6 additions & 2 deletions packages/react-sdk-components/doc/KeyReleaseUpdates.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
#### **Release SDK-R-C 8.23.11 (xx xxxx 2023)**
#### **Release SDK-R-C 8.23.11 (10 August 2023)**

* Many significant improvements to localization
* Added new AlertBanner component (in designSystemExtension) and its use in Assignment and ModalViewContainer
* Bug fixes in Decimal and Attachment components
* Fixed some cases where dropdown items weren't properly loaded from datasource
* Fixed some cases where Dropdown items weren't properly loaded from datasource
* Infrastructure components (FlowContainer and ModalViewContainer) now use overridden component implementations when overrides are available.
* Bug fixes
* Full set of merged PRs can be found in the [react-sdk-components GitHub repo list of merged PRs](https://github.com/pegasystems/react-sdk-components/pulls?page=1&q=is%3Apr+is%3Amerged). This release includes all PRs since (and including) #117 and #165.

<br />

Expand Down
2 changes: 1 addition & 1 deletion packages/react-sdk-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pega/react-sdk-components",
"version": "8.23.10",
"version": "8.23.11",
"description": "React SDK Infrastructure: bridge and components",
"_filesComment": "During packing, npm ignores everything NOT in the files list",
"files": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import { makeStyles } from '@material-ui/core/styles';

import Utils from '../../helpers/utils';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const useStyles = makeStyles((theme) => ({
root: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { default as CurrencyAlias} from '../../helpers/formatters/Currency';
// eslint-disable-next-line import/no-named-default
import { default as CurrencyMapAlias } from '../../helpers/formatters/CurrencyMap';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export const getCurrencyOptions = (inISOCode: string) => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export function getLocale(locale='') {
// use locale if specified
if (locale) return locale;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { Utils } from './utils';
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export const TABLE_CELL = "SdkRenderer";
export const DELETE_ICON = "DeleteIcon";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React, { useContext } from 'react';
import { connect, Provider, shallowEqual } from 'react-redux';
import ReactReduxContext from '../../bridge/Context/StoreContext';
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const connectToState = (mapStateToProps = () => {}) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// This file is adapted from React DX components/template/utils.js
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export function getAllFields(pConnect: any) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
* Container helper functions that can identify which version of
* PCore/PConnect is being run
*/
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export const sdkVersion = "8.7";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
import { Grid, Divider } from "@material-ui/core";

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const useStyles = makeStyles((/* theme */) => ({
button: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import Snackbar from '@material-ui/core/Snackbar';
import IconButton from '@material-ui/core/IconButton';
import CloseIcon from '@material-ui/icons/Close';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function Assignment(props) {
const { getPConnect, children, itemKey, isInModal, banners } = props;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


// Moved PCore.getConstants() into each function in which it's used until we can
// make sure that this code isn't run until PCore is defined (after onPCoreReady)
// const { CASE_INFO } = window.PCore.getConstants();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { Box, CircularProgress } from "@material-ui/core";
import createPConnectComponent from "../../../../bridge/react_pconnect";
import StoreContext from "../../../../bridge/Context/StoreContext";
import { isEmptyObject } from '../../../helpers/common-utils';
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


// ViewContainer can emit View
// import View from '../View';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,13 @@ import { getFilterExpression } from './filterUtils';
import { TextField } from '@material-ui/core';
import React from 'react';
import DatePicker from 'react-datepicker';

import 'react-datepicker/dist/react-datepicker.css';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function DashboardFilter(props) {
const { children, name, filterProp, type, metadata, getPConnect } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { makeStyles } from '@material-ui/core/styles';

import createPConnectComponent from '../../../bridge/react_pconnect';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


//
// WARNING: It is not expected that this file should be modified. It is part of infrastructure code that works with
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ import useMediaQuery from '@material-ui/core/useMediaQuery';
import { useNavBar } from '../../helpers/reactContextHelpers';
import { logout } from '../../helpers/authManager';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const iconMap = {
'pi pi-headline': <HomeOutlinedIcon fontSize='large' />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import Button from '@material-ui/core/Button';
import Menu from '@material-ui/core/Menu';
import MenuItem from '@material-ui/core/MenuItem';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function CaseViewActionsMenu(props) {
const { getPConnect, availableActions, availableProcesses, caseTypeID, caseTypeName } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import ToDo from '../../widget/ToDo';
import Details from '../Details/Details';
import { Button, Card, makeStyles } from '@material-ui/core';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const useStyles = makeStyles(theme => ({
root: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import FieldGroup from '../../designSystemExtension/FieldGroup';
import FieldGroupList from '../../designSystemExtension/FieldGroupList';
import { getReferenceList, buildView } from '../../helpers/field-group-utils';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function FieldGroupTemplate(props) {
const {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
import PropTypes from "prop-types";
import React from "react";

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function MultiReferenceReadOnly(props) {
const { getPConnect, label, hideLabel, config } = props;
const { referenceList, readonlyContextList } = config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import ListView from '../ListView';
import { isEmptyObject } from '../../helpers/common-utils';
import './PromotedFilters.css';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const localeCategory = 'SimpleTable';
const SUPPORTED_TYPES_IN_PROMOTED_FILTERS = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import React from 'react';
import FieldGroupTemplate from '../../FieldGroupTemplate';
import SimpleTableManual from '../SimpleTableManual';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function SimpleTable(props) {
const { getPConnect, multiRecordDisplayAs, allowTableEdit } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ import Select from '@material-ui/core/Select';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const useStyles = makeStyles((/* theme */) => ({
label: {
margin: '8px'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import SimpleTable from '../SimpleTable';

import PromotedFilters from '../../PromotedFilters';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


const isSelfReferencedProperty = (param, referenceProp) => {
const [, parentPropName] = param.split('.');
return parentPropName === referenceProp;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export const getDeferFriendlyTabs = allTabs => {
return allTabs.map(tab => {
const theTabCompConfig = tab.getPConnect().getConfigProps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ import React from "react";
import WssQuickCreate from '../../designSystemExtension/WssQuickCreate';
import { Utils } from '../../helpers/utils';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

declare const PCore: typeof PCoreType;


export default function QuickCreate(props) {
const { getPConnect, heading, showCaseIcons, classFilter } = props;
const pConn = getPConnect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ import { makeStyles } from '@material-ui/core/styles';
import { useTheme } from '@material-ui/core/styles';
import useMediaQuery from '@material-ui/core/useMediaQuery';

import PCoreType from '@pega/pcore-pconnect-typedefs/types/pcore';

import './ToDo.css';

declare const PCore: typeof PCoreType;

const isChildCase = assignment => {
return assignment.isChild;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sdk-overrides/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pega/react-sdk-overrides",
"version": "8.23.10",
"version": "8.23.11",
"description": "React SDK - Code for overriding components",
"_filesComment": "During packing, npm ignores everything NOT in the files list",
"files": [
Expand Down

0 comments on commit 61e2e35

Please sign in to comment.