Skip to content

Commit 4924858

Browse files
JEAxeroseravvrseraphintumms2021389niallriddell
authored
Mod/spr/23.1.10 alpha (#398)
* global.d.ts and index.d.ts no longer necessary * Update to tsconfig "lib" to allow use of es2021 (replaceAll, etc.) * US-566715 : gbLoggedIn export replaced with new sdkIsLoggedIn method * Change required to work with newer auth.js (that supports upcoming authCode flow updates for better error handling) * Latest updates to branch for internal 8.23.12 pre-release testing * Fix update for dx-component-builder-sdk and add path to jest.config.js * Add test:functional script (for tests to be added next week) * Update to use latest 8.8 typedefs * Update packageversion and to expect SDK-8.23.0 ConstJS files * Update package.json to proper 8.23 packages * Updated to use latest tgz files * Update to use latest 23.1.10 tgzs * Update constellation-comp-config/tsconfig to enable es2021 constructs * Mods related to latest authManager tokenStorage updates (#380) Co-authored-by: serav <[email protected]> * Update tsconfig with typeRoots * Update to latest versions of r-s-c and dxcb tgzs * Point to updated tgzs for @pega/react-sdk-* * Update tsconfigs to work with new typedefs * update version and typedefs version * Update to use 20231012 version of react-sdk-components/overrides * Update to expect latest R-S-C tgzs * Update versions of @pega/react-sdk-* tgzs * Initial draft updated README * Update to 20231020 tgzs * Remove test:functional * Update to use latest published DXCB-SDK package * 20231101 updates to package.json * Update query test to match what's in react-sdk-components * Add tinymce and update tgz names * TinyMCE library package added (#394) * Update to use newest dx-component-builder-sdk for 23.1 * Update to use 20231106 version of tgzs * 23.1.10-Alpha updates to Storybook * Add _internal-test-functional to package.json * Use published versions of @pega/react-sdk-* * More updates to README * Update to latest published dx-component-builder-sdk version * Update KeyReleaseUpdates.md * Update README.md * Fix MediaCo tests failure * Update expected version for dx-component-builder-sdk * new package lock * Update package-lock * Revert package-lock to avoid problems (needs more testing) --------- Co-authored-by: serav <[email protected]> Co-authored-by: Vinod Seraphin <[email protected]> Co-authored-by: tumms2021389 <[email protected]> Co-authored-by: Niall Riddell <[email protected]> Co-authored-by: Vishal <[email protected]> Co-authored-by: gagnp <[email protected]>
1 parent 924a7e2 commit 4924858

File tree

19 files changed

+726
-582
lines changed

19 files changed

+726
-582
lines changed

.storybook/main.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ module.exports = {
1212
webpackFinal: (config) => {
1313
config.resolve.alias['@pega/react-sdk-components/lib/bridge/react_pconnect'] = path.resolve(__dirname, '../__mocks__/react_pconnect.jsx');
1414
config.resolve.alias['@pega/react-sdk-components/lib/components/designSystemExtension/DetailsFields'] = path.resolve(__dirname, '../__mocks__/DetailsFields.js');
15+
config.module.rules.push({
16+
test: /\.(d.ts)$/,
17+
loader: 'null-loader',
18+
});
19+
config.module.rules.push({
20+
test: /\.(map)$/,
21+
loader: 'null-loader',
22+
});
1523
return config;
1624
},
17-
};
25+
};

.storybook/preview.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import {
88
} from '@pega/cosmos-react-core';
99

1010
import { decorator } from "../__mocks__/react_pconnect";
11+
import { getSdkComponentMap } from '@pega/react-sdk-components/lib/bridge/helpers/sdk_component_map';
12+
13+
getSdkComponentMap();
1114

1215
export const decorators: DecoratorFn[] = [
1316
(Story, context) => {

README.md

Lines changed: 23 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
<p align="center"><img width=60% src="docs/media/ReactSDK-Logo.png">
22

3+
# React SDK - Release Announcement - v23.1.10
34

5+
This release - **SDK-R v23.1.10** - is **only compatible with Pega Infinity 23**. This release is related to the [**main** branch of the React SDK repository](https://github.com/pegasystems/react-sdk/tree/main).
6+
<br>
7+
(If you currently are using the React SDK with Pega Infinity 8.8, update your SDK to
8+
the [SDK-R v8.8.20 - release/8.8.20 branch](https://github.com/pegasystems/react-sdk/tree/release/8.8.20).)
49

5-
# <span style="color: red">COMING SOON: Release 23.1.10 and Release 8.8.20</span>
6-
7-
**_New features in both releases_**:
8-
* **type definition support, DX Component Builder improvements, enhanced token storage/security, easier configuration, bug fixes**
9-
10-
As Pega Infinity&trade; and Constellation UI architecture evolve, the
11-
Constellation SDKs (including the React SDK) need to evolve with them.
12-
Until now, we have been able to support both Infinity 8.8 and the Infinity '23
13-
(the latest Infinity version) with the same React SDK code - Release 8.23.11
14-
15-
However, staying aligned with the Infinity and Constellation versions has led
16-
to additional configuration tweaks that have made getting started with the
17-
React SDK more error prone than we want.
18-
19-
Therefore, in the coming weeks, we will be introducing separate React SDK releases for Infinity '23 and Infinity 8.8 environments:
20-
21-
* Release **SDK-R v23.1.10** is only compatible with Pega Infinity '23.
22-
* If you are currently using Pega Infinity '23 with React SDK v8.23.11, you should prepare to update your SDK to SDK-R v23.1.0 to take advantage of the latest SDK enhancements and fixes. If using Pega Infinity 8.8, continue using SDK-R v8.23.11 or SDK-R v8.23.10 (they support Pega Infinity 8.8.* and 23.1.*), or update to SDK-R 8.8.20, it supports Pega Infinity 8.8 only and includes all enhancements in SDK-R v8.23.11 and SDK-R v8.23.10.
10+
The SDK-R v23.1.10 and v8.8.20 releases allow React SDK users to to take advantage of the latest
11+
[SDK enhancements and fixes noted in **What's New in the SDK?**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) including:
2312

24-
* The release **SDK-R v8.8.20** is only compatible with Pega Infinity 8.8.
25-
* If you are currently using Pega Infinity 8.8 with React SDK 8.23.11, you should prepare to update your SDK to SDK-R v8.8.20 to take advantage of the latest SDK enhancements and fixes.
13+
* Added the use of **TypeScript typedefs** (from @pega/pcore-pconnect-typedefs) to SDK components.
14+
For more information, see [Using type definitions](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/type-definitions-constellation-sdks.html)
15+
* Additional functionality including **RichTextEditor** and **Dynamic Tabs** components and **many-to-many data reference** support
16+
* Updated Cosmos support to cosmos 4 (for custom Constellation components).
17+
* Enhanced security including token storage and item obfuscation support.
18+
* Bug fixes.
19+
* 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?q=is%3Apr+is%3Amerged+base%3Amaster+). This release includes all PRs since (and including) #166 and #230.
2620

27-
Information about these new releases will be included on this
28-
[React SDK updates](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) page which details all of
29-
the React SDK releases.
21+
<br />
3022

31-
<br>
23+
This
24+
[**React SDK updates**](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/react-sdk-updates.html) page provides details
25+
about all of the React SDK releases.
3226

3327
<hr>
3428

35-
# React SDK - Release Announcement - v8.23.11
29+
## Previous releases
30+
31+
### React SDK - Release Announcement - v8.23.11 - 10 August 2023
3632

3733
This (**main** branch) is the latest version of the React SDK. It is intended to be used with **Infinity 8.8.0+**. If you need to use **Infinity 8.7.***, please use the **release/8.8.10** branch instead of this **main** branch.
3834

@@ -78,13 +74,13 @@ A **summary of the latest updates** to the **@pega/react-sdk-components** and
7874

7975
## Pega Infinity Server and Constellation-enabled Application
8076

81-
This version of the React SDK assumes that you have access to a Pega Infinity server (**8.8.0+**) running an application that is configured to run using the Constellation UI service. _(If you need to use Infinity 8.7.*, please use the **release/8.8.10** branch instead of this **main** branch.)_
77+
This version of the React SDK assumes that you have access to a Pega Infinity server (**23.1.0+**) running an application that is configured to run using the Constellation UI service. _(If you need to use Infinity 8.8.*, please use the **release/8.8.20** branch instead of this **main** branch.)_
8278

8379
The **MediaCo** sample application is already configured as a Constellation application and can be found in the React SDK download associated with this repo which is available at [https://community.pega.com/marketplace/components/react-sdk](https://community.pega.com/marketplace/components/react-sdk). The OAuth 2.0 Client Registration records associated with the **MediaCo** application are available in the same React SDK download. For more information about the MediaCo sample application, see [MediaCo sample application](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/mediaco-sample-application.html).
8480

8581
The **React SDK** has been tested with:
8682
- node 18.12.1/18.13.0
87-
- npm 8.19.2/8.19.3
83+
- npm 8.19.2/8.19.3 - **note: at this time, do not use _npm 9_**
8884

8985
Future updates to the SDK will support more recent LTS versions of node as Constellation supports them.
9086

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": [
4+
"../src/components/custom-constellation/**/**/*.ts",
5+
"../src/components/custom-constellation/**/**/*.tsx",
6+
"../src/components/custom-constellation/**/**/*.js",
7+
"../src/components/custom-constellation/**/**/*.jsx",
8+
"../src/components/override-sdk/**/**/*.ts",
9+
"../src/components/override-sdk/**/**/*.tsx",
10+
"../src/components/override-sdk/**/**/*.js",
11+
"../src/components/override-sdk/**/**/*.jsx"],
12+
"exclude": [
13+
"node_modules",
14+
"../src/**/*.stories.ts",
15+
"../src/**/*.stories.tsx",
16+
"../src/**/*.stories.js",
17+
"../src/**/*.stories.jsx"
18+
],
19+
"compilerOptions": {
20+
"noEmit": false,
21+
"composite": true,
22+
"outDir": "../lib",
23+
"rootDir": "../src",
24+
"allowSyntheticDefaultImports": true,
25+
// "skipLibCheck" must be true in order to not see errors in the @pega/pcore-pconnect-typedefs files themselves
26+
"skipLibCheck": true,
27+
}
28+
29+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "./dist/",
4+
"experimentalDecorators": true,
5+
"strict": true,
6+
"sourceMap": true,
7+
"module": "es2020",
8+
"target": "es2020",
9+
"lib": [ "es2021", "dom" ],
10+
"moduleResolution": "node",
11+
"jsx": "react",
12+
"allowJs": true,
13+
"noImplicitAny": false,
14+
"allowSyntheticDefaultImports": true,
15+
"esModuleInterop": true,
16+
17+
// Need to specify typeRoots to find the types and types to constrain
18+
// where to look in @pega (to only get pcore-pconnect-typedefs)
19+
// NOTE: need to point to relative path to node_modules (../)
20+
"typeRoots": ["../node_modules/@types", "../node_modules/@pega"],
21+
"types": [ "jest", "@testing-library/jest-dom", "pcore-pconnect-typedefs" ],
22+
}
23+
}

docs/KeyReleaseUpdates.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 08-November-2023 - Developer exepreience improvements
2+
<br />
3+
<h3>On <strong>November 08, 2023</strong>, a <strong>significant update</strong> to the React SDK <strong>main and release/8.8.20</strong> branches was completed.</h3>
4+
<br />
5+
6+
1. Added the use of **TypeScript typedefs** (from @pega/pcore-pconnect-typedefs) to SDK components.
7+
For more information, see [Using type definitions](https://docs.pega.com/bundle/constellation-sdk/page/constellation-sdks/sdks/type-definitions-constellation-sdks.html)
8+
2. Updated Cosmos support to cosmos 3-8.8 and 4-23.1 (for custom Constellation components).
9+
3. Enhanced security including token storage and item obfuscation support.
10+
111
## 24-April-2023 - Major change to React SDK Packaging
212
<br />
313
<h3>On <strong>April 24, 2023</strong>, a <strong>significant update</strong> to the React SDK <strong>main</strong> branch was completed.</h3>

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// eslint-disable-next-line strict
22
module.exports = {
33
testEnvironment: 'jsdom',
4-
roots: ['<rootDir>/tests/unit/'],
4+
roots: ['<rootDir>/tests/unit/', '<rootDir>/tests'],
55
preset: 'ts-jest',
66
transform: {
77
'^.+\\.(t|j)sx?$': 'ts-jest'

0 commit comments

Comments
 (0)