@pega/custom-dx-components 8.8.7 → 8.8.9

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.
@@ -64,6 +64,7 @@ export const base{{COMPONENT_CLASS_NAME}} = () => {
64
64
  if (config.type === 'AppAnnouncement') {
65
65
  return (
66
66
  <PegaAppAnnouncement
67
+ key='app-announcements'
67
68
  heading='Announcements'
68
69
  description={configProps.description}
69
70
  whatsNewLink={configProps.whatsnewlink}
@@ -44,7 +44,6 @@
44
44
  "@pega/cosmos-react-core": "^3.0.1",
45
45
  "@pega/cosmos-react-work": "3.0.1",
46
46
  "dayjs": "^1.11.5",
47
- "jest": "^29.3.1",
48
47
  "polished": "^4.2.2",
49
48
  "prop-types": "^15.8.1",
50
49
  "react": "^17.0.2",
@@ -57,7 +56,7 @@
57
56
  },
58
57
  "devDependencies": {
59
58
  "@pega/configs": "^0.5.3",
60
- "@pega/custom-dx-components": "^8.8.7",
59
+ "@pega/custom-dx-components": "^8.8.9",
61
60
  "@pega/eslint-config": "^0.3.2",
62
61
  "@storybook/addon-actions": "^6.5.12",
63
62
  "@storybook/addon-essentials": "^6.5.12",
@@ -7,7 +7,7 @@
7
7
  "devBuild": false,
8
8
  "serverType": "infinity",
9
9
  "server": "https://localhost:38764/prweb",
10
- "clientId": "",
10
+ "clientId": "10095186356008396159",
11
11
  "clientSecret_comment": "Needed only when using 'passwordCreds' or 'clientCreds' grantType",
12
12
  "clientSecret": "",
13
13
  "grantType": "authCode",
@@ -19,6 +19,7 @@
19
19
  "user_and_password_comment": "useful primarily when grantType is set to 'passwordCreds'",
20
20
  "user": "",
21
21
  "password": "",
22
+ "questions_comment": "useful for designating certain questions should always or never be asked during npm run authenticate",
22
23
  "questions_askAlways": "",
23
24
  "questions_askNever": ""
24
25
  },
@@ -137,7 +137,14 @@ export const publishComponentToServer = async data => {
137
137
  throw new Error(`${respData.message}`);
138
138
  }
139
139
  })
140
- .catch(e => Promise.reject(`${chalk.bold.red(e)}`));
140
+ .catch( e => {
141
+ if (e.code == 'ECONNREFUSED') {
142
+ Promise.reject(`${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
143
+ }
144
+ else {
145
+ Promise.reject(`${chalk.bold.red(e)}`);
146
+ }
147
+ })
141
148
  } else {
142
149
  throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
143
150
  }
package/src/util.js CHANGED
@@ -282,6 +282,17 @@ export const showVersion = () => {
282
282
  const pData = require("@pega/custom-dx-components/package.json");
283
283
 
284
284
  console.log(chalk.green("DX Component Builder v" + pData.version));
285
+
286
+ // do a check of node version, it should be 18 or greater
287
+ const arNodeVersion = process.versions.node.split(".");
288
+
289
+ const nodeMajorVersion = parseInt(arNodeVersion[0]);
290
+ const nodeMinorVersion = parseInt(arNodeVersion[1]);
291
+
292
+ if (nodeMajorVersion < 18) {
293
+ console.log(chalk.redBright("DX Component Builder - SDK requires node v18 or greater, current version: " + process.version));
294
+ process.exit(1);
295
+ }
285
296
  };
286
297
 
287
298
  export const getOOTBComponents = async () => {