@pega/custom-dx-components 0.26.9 → 0.26.10

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": "0.26.9",
3
+ "version": "0.26.10",
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": "~0.26.9",
111
+ "@pega/custom-dx-components": "~0.26.10",
112
112
  "@pega/pcore-pconnect-typedefs": "^4.1.0",
113
113
  "@storybook/addon-docs": "^9.1.7",
114
114
  "@storybook/addon-essentials": "^9.0.0-alpha.12",