@pega/custom-dx-components 25.1.19 → 25.1.21

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "25.1.19",
3
+ "version": "25.1.21",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "keywords": [
@@ -97,17 +97,18 @@ addDebugLog("updateFile", `fileName: ${fileName}, oldComponentKeyPC: ${oldCompon
97
97
  // rename the component
98
98
  export const renameComponent = async (
99
99
  componentKey,
100
- library,
100
+ orgLib,
101
101
  version,
102
102
  newName = "",
103
103
  newLabel = "",
104
104
  options
105
105
  ) => {
106
106
 
107
- addDebugLog("renameComponent", `library: ${library}, componentKey: ${componentKey}`, "");
107
+ addDebugLog("renameComponent", `orgLib: ${orgLib}, componentKey: ${componentKey}`, "");
108
108
 
109
109
  const componentName = newName != "" ? newName : componentKey.split("_")[2];
110
- const newComponentKey = `${library}_${componentName}`;
110
+ const newComponentKey = `${orgLib}_${componentName}`;
111
+ const library = orgLib.split("_")[1];
111
112
  const oldComponentKey = componentKey;
112
113
  const newComponentKeyPC = convertIntoPascalCase(newComponentKey);
113
114
  const oldComponentKeyPC = convertIntoPascalCase(oldComponentKey);
@@ -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.19",
111
+ "@pega/custom-dx-components": "~25.1.21",
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
@@ -963,7 +963,7 @@ if (showDebug) { addDebugLog("getPegaConfig", "END", "-"); }
963
963
  export const getPegaServerConfig = async (force = false) => {
964
964
  if (showDebug) addDebugLog("getPegaServerConfig", "", "+");
965
965
  if (!pegaConfig || force) {
966
- pegaConfig = await getPegaConfig();
966
+ pegaConfig = await getPegaConfig(force);
967
967
 
968
968
  if (getServerType() === "launchpad") {
969
969
 
@@ -1729,7 +1729,7 @@ if (showDebug) addDebugLog("getBootstrapConfig", `restServerUrl: ${restServerUrl
1729
1729
 
1730
1730
  export const updateC11NB2SForInfinity = async () => {
1731
1731
  if (showDebug) addDebugLog("updateC11NB2SForInfinity", "", "");
1732
- const serverConfig = await getPegaServerConfig();
1732
+ const serverConfig = await getPegaServerConfig(true);
1733
1733
  const { server } = serverConfig;
1734
1734
  const OAuthData = fs.readFileSync(TOKEN_PATH, 'utf8');
1735
1735