@pega/custom-dx-components 0.23.40 → 0.23.42

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/README.md CHANGED
@@ -12,9 +12,9 @@ Ensure you have access to the following in your system:
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
15
- - System node version 18
15
+ - System node version 18, 20
16
16
 
17
- - System npm version 8
17
+ - System npm version 8, 10 (9 is not supported)
18
18
 
19
19
  ## Latest Documentation
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.23.40",
3
+ "version": "0.23.42",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ import FormattedText from "./FormattedText";
4
4
 
5
5
  import type { PConnFieldProps } from './PConnProps';
6
6
 
7
- import StyledPegaDxilMyDateWrapper from './styles';
7
+ import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
8
8
 
9
9
  // includes in bundle
10
10
  import {
@@ -20,7 +20,7 @@ import { suggestionsHandler } from './suggestions-handler';
20
20
  import type { DateTimeFormat, DateTimeVariant } from '@pega/cosmos-react-core/lib/components/DateTime/DateTime.types.js';
21
21
 
22
22
  // interface for props
23
- interface PegaDxilMyDateProps extends PConnFieldProps {
23
+ interface {{COMPONENT_CLASS_NAME}}Props extends PConnFieldProps {
24
24
  // If any, enter additional props that only exist on TextInput here
25
25
  displayAsStatus?: boolean;
26
26
  isTableFormatter?: boolean;
@@ -52,7 +52,7 @@ interface ActionsProps {
52
52
 
53
53
  // props passed in combination of props from property panel (config.json) and run time props from Constellation
54
54
  // any default values in config.pros should be set in defaultProps at bottom of this file
55
- function PegaDxilMyDate (props: PegaDxilMyDateProps) {
55
+ function {{COMPONENT_CLASS_NAME}} (props: {{COMPONENT_CLASS_NAME}}Props) {
56
56
  const {
57
57
  getPConnect,
58
58
  value,
@@ -175,29 +175,29 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
175
175
  );
176
176
  switch(displayMode){
177
177
  case 'DISPLAY_ONLY': {
178
- return ( <StyledPegaDxilMyDateWrapper> displayComp </StyledPegaDxilMyDateWrapper>);
178
+ return ( <Styled{{COMPONENT_CLASS_NAME}}Wrapper> displayComp </Styled{{COMPONENT_CLASS_NAME}}Wrapper>);
179
179
  }
180
180
  case "LABELS_LEFT" : {
181
181
  return (
182
- <StyledPegaDxilMyDateWrapper>
182
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
183
183
  <FieldValueList
184
184
  variant={hideLabel ? "stacked" : variant}
185
185
  data-testid={testId}
186
186
  fields={[{ id: '1', name: hideLabel ? "" :label, value: displayComp }]}
187
187
  />
188
- </StyledPegaDxilMyDateWrapper>
188
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
189
189
 
190
190
  );
191
191
  }
192
192
  case "STACKED_LARGE_VAL" : {
193
193
  return (
194
- <StyledPegaDxilMyDateWrapper>
194
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
195
195
  <FieldValueList
196
196
  variant='stacked'
197
197
  data-testid={testId}
198
198
  fields={[{ id: '2', name: hideLabel ? "" :label, value: <Text variant='h1' as='span'>{displayComp}</Text> }]}
199
199
  />
200
- </StyledPegaDxilMyDateWrapper>
200
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
201
201
 
202
202
  );
203
203
  }
@@ -216,7 +216,7 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
216
216
  fieldType: 'Date'
217
217
  };
218
218
  dateComponent = (
219
- <StyledPegaDxilMyDateWrapper>
219
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
220
220
  <FormattedText
221
221
  formatType='date'
222
222
  value={value}
@@ -227,12 +227,12 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
227
227
  // @ts-ignore
228
228
  customFormat={getDateFormat(locale)}
229
229
  />
230
- </StyledPegaDxilMyDateWrapper>
230
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
231
231
  );
232
232
  } else {
233
233
 
234
234
  dateComponent = (
235
- <StyledPegaDxilMyDateWrapper>
235
+ <Styled{{COMPONENT_CLASS_NAME}}Wrapper>
236
236
  <DateInput
237
237
  {...additionalProps}
238
238
  label={label}
@@ -252,11 +252,11 @@ function PegaDxilMyDate (props: PegaDxilMyDateProps) {
252
252
  onBlur={handleBlur}
253
253
  onResolveSuggestion={onResolveSuggestionHandler}
254
254
  />
255
- </StyledPegaDxilMyDateWrapper>
255
+ </Styled{{COMPONENT_CLASS_NAME}}Wrapper>
256
256
  );
257
257
  }
258
258
  return dateComponent;
259
259
  }
260
260
 
261
261
 
262
- export default withConfiguration(PegaDxilMyDate);
262
+ export default withConfiguration({{COMPONENT_CLASS_NAME}});
@@ -3,7 +3,7 @@
3
3
  // @ts-nocheck
4
4
  import type { Meta, StoryObj } from '@storybook/react';
5
5
  import { Text, FieldValueList, Button, DateTimeDisplay, useTheme } from '@pega/cosmos-react-core';
6
- import PegaDxilMyDetails from './index';
6
+ import {{COMPONENT_CLASS_NAME}} from './index';
7
7
  import { pyReviewRaw, pyReviewResolved, regionChildrenResolved } from './mock';
8
8
  import StatusWorkRenderer from './StatusWork';
9
9
 
@@ -8,14 +8,14 @@ This project provides you with an environment to extend Constellation by giving
8
8
 
9
9
  Ensure you have access to the following in your system:
10
10
 
11
- - Pega Infinity Server version 8.7 or later
11
+ - Pega Infinity Server version 23 or later
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
15
- - System node version 18
15
+ - System node version 18, 20
16
16
 
17
- - System npm version 8
17
+ - System npm version 8, 10 (9 is not supported)
18
18
 
19
19
  ## Latest Documentation
20
20
 
21
- Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components-88/page/constellation-dx-components/custom-components/lifecycle-dx-cosmos-components.html)
21
+ Find the latest documentation on using **DX Component Builder** [here](https://docs.pega.com/bundle/constellation-dx-components/page/constellation-dx-components/custom-components/lifecycle-dx-cosmos-components.html)
@@ -0,0 +1,10 @@
1
+ # Reporting Security Issues
2
+
3
+ Pegasystems takes security seriously. We appreciate your efforts to responsibly disclose your findings, and will make every effort to acknowledge your contributions.
4
+
5
+ To report a security issue, [email us](mailto:opensource@pega.com;security@pega.com) and include the word "SECURITY" in the subject line.
6
+
7
+ The Pega team will send a response indicating the next steps in handling your report. We may ask for additional information or guidance.
8
+
9
+ ## Learning More About Security
10
+ To learn more about securing a Pega application or our security capabilities, please see the [security article](https://community.pega.com/knowledgebase/capabilities/security) on Pega Community and the [Pega Trust Center](https://www.pega.com/products/cloud/pega-trust-center).
@@ -25,14 +25,14 @@
25
25
  "revertWebPack": "custom-dx-components revertWebPack",
26
26
  "lint:types": "tsc --noEmit",
27
27
  "lint:es": "eslint .",
28
- "lint:styles": "stylelint \"./**/*.@(js|jsx|ts|tsx)\"",
29
- "lint:format": "prettier -c .",
30
- "lint:spelling": "cspell --no-progress **/*",
31
28
  "test-coverage": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand node_modules/@pega/custom-dx-component --ci --testResultsProcessor='jest-junit' --coverage",
32
- "_internal-test": "echo 'Running functional and unit tests will DELETE existing local components, proceed (y/n)?' && read proceed && if test \"$proceed\" = \"y\"; then npm run internal-test-full; fi ",
29
+ "_internal-test": "echo 'Running functional and unit tests will DELETE existing local components, proceed (y/n)?' && read proceed && if test \"$proceed\" = \"y\"; then npm run _internal-test-full; fi ",
33
30
  "_internal-test-full": "npm run _internal-test-functional && npm run _internal-test-unit",
34
31
  "_internal-test-functional": "npm run test:functional:local --prefix node_modules/@pega/custom-dx-components",
35
- "_internal-test-unit": "npm run test:unit:local --prefix node_modules/@pega/custom-dx-components"
32
+ "_internal-test-unit": "npm run test:unit:local --prefix node_modules/@pega/custom-dx-components",
33
+ "_lint:styles": "stylelint \"./**/*.@(js|jsx|ts|tsx)\"",
34
+ "_lint:format": "prettier -c .",
35
+ "_lint:spelling": "cspell --no-progress **/*"
36
36
  },
37
37
  "scriptsComments": {
38
38
  "build": "tsc -b tsconfig.build.json",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@pega/configs": "^0.6.0",
72
- "@pega/custom-dx-components": "0.23.40",
72
+ "@pega/custom-dx-components": "0.23.42",
73
73
  "@pega/pcore-pconnect-typedefs": "~2.1.1",
74
74
  "@storybook/addon-actions": "^7.6.7",
75
75
  "@storybook/addon-essentials": "^7.6.7",