@pega/dx-component-builder-sdk 0.1.46 → 0.1.47

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/dx-component-builder-sdk",
3
- "version": "0.1.46",
3
+ "version": "0.1.47",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -213,10 +213,10 @@ export const validateCompileAll = async (
213
213
  const type = "Widget";
214
214
  const subtype = COMPONENT_SCHEMA.subtype.widget[widgetIdx].value;
215
215
  const prefixNoSpace = prefix.replace(/\s+/g, '');
216
- let widgetNameOriginal = COMPONENT_SCHEMA.subtype.template[widgetIdx].name;
216
+ let widgetNameOriginal = COMPONENT_SCHEMA.subtype.widget[widgetIdx].name;
217
217
  let widgetName = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat("Widget");
218
218
  let widgetLabel = convertIntoPascalCase(COMPONENT_SCHEMA.subtype.widget[widgetIdx].name).concat(" Widget");
219
- if (widgetNameOriginal.indexOf("&") >= 0) {
219
+ if (widgetName.indexOf("&") >= 0) {
220
220
  widgetName = convertIntoPascalCase(widgetNameOriginal.replace(" & ", ""));
221
221
  }
222
222
  const componentName = "".concat(prefixNoSpace).concat(widgetName);