@pega/custom-dx-components 25.1.21 → 25.1.23

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "25.1.21",
3
+ "version": "25.1.23",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "keywords": [
7
7
  "pega",
8
8
  "custom-components"
9
9
  ],
10
- "license": "SEE LICENSE IN LICENSE",
10
+ "license": "Cosmos 1.0",
11
11
  "author": "Custom component dev",
12
12
  "sideEffects": false,
13
13
  "type": "module",
@@ -49,6 +49,7 @@ export const updateConfig = async (
49
49
  version,
50
50
  targetDirectory,
51
51
  newLabel = "",
52
+ organization
52
53
  },
53
54
  options,
54
55
  onlyCompanion = false
@@ -63,6 +64,7 @@ addDebugLog("updateConfig", `oldComponentKey: ${oldComponentKey}, newComponentKe
63
64
  if (configData.componentKey) configData.componentKey = newComponentKey;
64
65
  configData.library = library;
65
66
  configData.version = version;
67
+ configData.organization = organization;
66
68
 
67
69
  if (newLabel != "") {
68
70
  configData.label = newLabel;
@@ -101,6 +103,7 @@ export const renameComponent = async (
101
103
  version,
102
104
  newName = "",
103
105
  newLabel = "",
106
+ organization,
104
107
  options
105
108
  ) => {
106
109
 
@@ -137,7 +140,8 @@ addDebugLog("renameComponent", `orgLib: ${orgLib}, componentKey: ${componentKey}
137
140
  library,
138
141
  version,
139
142
  targetDirectory,
140
- newLabel
143
+ newLabel,
144
+ organization
141
145
  },
142
146
  options
143
147
  );
@@ -253,7 +257,7 @@ addDebugLog("importComp", `filePath: ${filePath}, fileName: ${fileName}`, "");
253
257
 
254
258
  configData = configData && JSON.parse(configData);
255
259
 
256
- const newCompKey = await renameComponent(configData.componentKey, configDef.currentOrgLib, configDef.buildVersion, newName, newLabel, null);
260
+ const newCompKey = await renameComponent(configData.componentKey, configDef.currentOrgLib, configDef.buildVersion, newName, newLabel, configDef.organization, null);
257
261
  console.log(`\n${chalk.green(`${fileName}`)} has been imported as ${chalk.green(`${newCompKey}`)}\n`);
258
262
 
259
263
  if (askValidate) {
@@ -108,7 +108,7 @@
108
108
  "@babel/preset-react": "^7.27.1",
109
109
  "@babel/preset-typescript": "^7.27.1",
110
110
  "@pega/configs": "^0.16.3",
111
- "@pega/custom-dx-components": "~25.1.21",
111
+ "@pega/custom-dx-components": "~25.1.22",
112
112
  "@pega/pcore-pconnect-typedefs": "^4.1.0",
113
113
  "@storybook/addon-actions": "^8.6.14",
114
114
  "@storybook/addon-essentials": "^8.6.14",
package/src/util.js CHANGED
@@ -1342,7 +1342,7 @@ export const showVersion = async () => {
1342
1342
  process.exit();
1343
1343
  }
1344
1344
 
1345
- // do a check of node version, it should be 18 or greater
1345
+ // do a check of node version, it should be 24 or greater
1346
1346
  const arNodeVersion = process.versions.node.split('.');
1347
1347
 
1348
1348
  const nodeMajorVersion = parseInt(arNodeVersion[0]);
@@ -1352,7 +1352,7 @@ export const showVersion = async () => {
1352
1352
  if (nodeMajorVersion < 24) {
1353
1353
  console.log(
1354
1354
  chalk.redBright(
1355
- `DX Component Builder - requires node v24.14.1 or greater, current version: ${process.version}`
1355
+ `DX Component Builder - requires node v24.4.1 or greater, current version: ${process.version}`
1356
1356
  )
1357
1357
  );
1358
1358
  process.exit(1);
@@ -1360,7 +1360,7 @@ export const showVersion = async () => {
1360
1360
  else if ( nodeMajorVersion == 24 && nodeMinorVersion < 4) {
1361
1361
  console.log(
1362
1362
  chalk.redBright(
1363
- `DX Component Builder - requires node v24.14.1 or greater, current version: ${process.version}`
1363
+ `DX Component Builder - requires node v24.4.1 or greater, current version: ${process.version}`
1364
1364
  )
1365
1365
  );
1366
1366
  process.exit(1);
@@ -1368,7 +1368,7 @@ export const showVersion = async () => {
1368
1368
  else if (nodeMajorVersion == 24 && nodeMinorVersion == 4 && nodePatchVersion < 1 ) {
1369
1369
  console.log(
1370
1370
  chalk.redBright(
1371
- `DX Component Builder - requires node v24.14.1 or greater, current version: ${process.version}`
1371
+ `DX Component Builder - requires node v24.4.1 or greater, current version: ${process.version}`
1372
1372
  )
1373
1373
  );
1374
1374
  process.exit(1);