@pega/dx-component-builder-sdk 0.1.40 → 0.1.42

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.40",
3
+ "version": "0.1.42",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
package/src/constants.js CHANGED
@@ -362,6 +362,10 @@ export const COMPONENT_SCHEMA = {
362
362
  {
363
363
  name: 'Pulse',
364
364
  value: 'Pulse'
365
+ },
366
+ {
367
+ name: 'Wss Quick Create',
368
+ value: 'WssQuickCreate'
365
369
  }
366
370
  ],
367
371
  infra: [
@@ -593,6 +597,10 @@ export const COMPONENT_SCHEMA = {
593
597
  name: 'Followers',
594
598
  value: 'Followers'
595
599
  },
600
+ {
601
+ name: 'Quick Create',
602
+ value: 'QuickCreate'
603
+ },
596
604
  {
597
605
  name: 'Summary Item',
598
606
  value: 'SummaryItem'
package/src/util.js CHANGED
@@ -583,6 +583,17 @@ export const showVersion = () => {
583
583
  const pData = require("@pega/dx-component-builder-sdk/package.json");
584
584
 
585
585
  console.log(chalk.green("DX Component Builder - SDK v" + pData.version));
586
+
587
+ // do a check of node version, it should be 18 or greater
588
+ const arNodeVersion = process.versions.node.split(".");
589
+
590
+ const nodeMajorVersion = parseInt(arNodeVersion[0]);
591
+ const nodeMinorVersion = parseInt(arNodeVersion[1]);
592
+
593
+ if (nodeMajorVersion < 18) {
594
+ console.log(chalk.redBright("DX Component Builder - SDK requires node v18 or greater, current version: " + process.version));
595
+ process.exit(1);
596
+ }
586
597
  }
587
598
 
588
599
  export const getOOTBComponents = async () => {