@pega/custom-dx-components 2.0.13 → 2.0.15

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
@@ -8,13 +8,13 @@ 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 8.8 or later
12
12
 
13
13
  - Git version 2.30 or later
14
14
 
15
- - System node version 16
15
+ - System node version 18
16
16
 
17
- - System npm version 7
17
+ - System npm version 8
18
18
 
19
19
  ## Initialize a project
20
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "2.0.13",
3
+ "version": "2.0.15",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -26,6 +26,7 @@
26
26
  "css-loader": "6.7.1",
27
27
  "css-minimizer-webpack-plugin": "^4.1.0",
28
28
  "execa": "^6.1.0",
29
+ "eslint": "^8.4.1",
29
30
  "file-loader": "6.2.0",
30
31
  "fs-extra": "^10.1.0",
31
32
  "gitignore": "^0.7.0",
@@ -61,15 +62,6 @@
61
62
  "devDependencies": {
62
63
  "@pega/configs": "^0.3.3",
63
64
  "cspell": "^6.9.0",
64
- "eslint": "^8.4.1",
65
- "eslint-plugin-import": "^2.25.3",
66
- "eslint-plugin-jest": "^25.3.0",
67
- "eslint-plugin-jsx-a11y": "^6.5.1",
68
- "eslint-plugin-mdx": "^2.0.5",
69
- "eslint-plugin-prettier": "^4.0.0",
70
- "eslint-plugin-react": "^7.27.1",
71
- "eslint-plugin-react-hooks": "^4.3.0",
72
- "eslint-plugin-sonarjs": "^0.11.0",
73
65
  "prettier": "2.7.1"
74
66
  }
75
67
  }
@@ -37,6 +37,7 @@ export const base{{COMPONENT_CLASS_NAME}} = () => {
37
37
  return configProps;
38
38
  },
39
39
  ignoreSuggestion: () => {},
40
+ acceptSuggestion: () => {},
40
41
  clearErrorMessages: () => {}
41
42
  };
42
43
  },
@@ -38,6 +38,7 @@ export const base{{COMPONENT_CLASS_NAME}} = () => {
38
38
  return configProps;
39
39
  },
40
40
  ignoreSuggestion: () => {},
41
+ acceptSuggestion: () => {},
41
42
  clearErrorMessages: () => {}
42
43
  };
43
44
  },
@@ -247,7 +247,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
247
247
  displayMode: PropTypes.string,
248
248
  variant: PropTypes.string,
249
249
  formatter: PropTypes.string,
250
- Format: PropType.string,
250
+ Format: PropTypes.string,
251
251
  hasSuggestions: PropTypes.bool
252
252
  };
253
253
 
@@ -2,7 +2,7 @@ import { withKnobs } from '@storybook/addon-knobs';
2
2
 
3
3
  import {{COMPONENT_CLASS_NAME}} from './index.jsx';
4
4
 
5
- import { stateProps, configProps } from './mock.stories';
5
+ import { stateProps, configProps, fieldMetadata } from './mock.stories';
6
6
 
7
7
  export default {
8
8
  title: '{{COMPONENT_CLASS_NAME}}',
@@ -135,8 +135,8 @@ export const pyReviewResolved = {
135
135
  config: {
136
136
  label: 'Create Operator',
137
137
  value: {
138
- userId: 'riddn',
139
- userName: 'Niall Riddell'
138
+ userId: 'conns',
139
+ userName: 'Sara Connor'
140
140
  },
141
141
  placeholder: 'Select...',
142
142
  displayMode: 'STACKED_LARGE_VAL'
@@ -171,8 +171,8 @@ export const pyReviewResolved = {
171
171
  config: {
172
172
  label: 'Create Operator',
173
173
  value: {
174
- userId: 'riddn',
175
- userName: 'Niall Riddell'
174
+ userId: 'conns',
175
+ userName: 'Sara Connor'
176
176
  },
177
177
  placeholder: 'Select...',
178
178
  displayMode: 'STACKED_LARGE_VAL'
@@ -15,8 +15,16 @@ const Template = args => {
15
15
  const regionAChildren = pyReviewRaw.children[0].children.map(child => {
16
16
  return Primary.args.getPConnect().createComponent(child);
17
17
  });
18
+ const regionBChildren = pyReviewRaw.children[1].children.map(child => {
19
+ return Primary.args.getPConnect().createComponent(child);
20
+ });
18
21
 
19
- return <{{COMPONENT_CLASS_NAME}} {...args}>{regionAChildren}</{{COMPONENT_CLASS_NAME}}>;
22
+ return (
23
+ <{{COMPONENT_CLASS_NAME}} {...args}>
24
+ {regionAChildren}
25
+ {regionBChildren}
26
+ </{{COMPONENT_CLASS_NAME}}>
27
+ );
20
28
  };
21
29
 
22
30
  export const Primary = Template.bind({});
@@ -9,7 +9,7 @@ export const pyReviewRaw = {
9
9
  },
10
10
  children: [
11
11
  {
12
- name: 'Fields',
12
+ name: 'A',
13
13
  type: 'Region',
14
14
  children: [
15
15
  {
@@ -32,7 +32,13 @@ export const pyReviewRaw = {
32
32
  value: '@P .LastName',
33
33
  label: '@L Last Name'
34
34
  }
35
- },
35
+ }
36
+ ]
37
+ },
38
+ {
39
+ name: 'B',
40
+ type: 'Region',
41
+ children: [
36
42
  {
37
43
  type: 'Email',
38
44
  config: {
@@ -55,7 +55,7 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@pega/configs": "^0.3.4",
58
- "@pega/custom-dx-components": "^2.0.13",
58
+ "@pega/custom-dx-components": "^2.0.15",
59
59
  "@pega/eslint-config": "^0.3.2",
60
60
  "@storybook/addon-actions": "^6.5.12",
61
61
  "@storybook/addon-essentials": "^6.5.12",
@@ -14,6 +14,7 @@
14
14
  "component": {
15
15
  "library": "",
16
16
  "type": "",
17
+ "version": "",
17
18
  "subtype": "",
18
19
  "description": "",
19
20
  "icon": ""