@pega/dx-component-builder-sdk 25.1.14 → 25.1.15

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": "25.1.14",
3
+ "version": "25.1.15",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -324,6 +324,13 @@ export const validateCompile = async (
324
324
  export default async options => {
325
325
  showVersion();
326
326
 
327
+ console.log(
328
+ chalk.red(
329
+ 'Custom-constellation are aligned with Pega constellation which is still on react 18.\n' +
330
+ 'Please make sure any changes to custom-constellation should be aligned with React 18 development.'
331
+ )
332
+ );
333
+
327
334
  const framework = await getFramework();
328
335
 
329
336
  if (options.params.length >= 12) {
@@ -4,7 +4,7 @@
4
4
  <div key="instructions" id="instruction-text" [innerHTML]="instructions"></div>
5
5
  </div>
6
6
  <div [className]="divClass$">
7
- <div *ngFor="let kid of arChildren$" [ngClass]="{ 'grid-column': kid.getPConnect().getComponentName() === 'View' }">
7
+ <div *ngFor="let kid of arChildren$" [ngClass]="{ 'grid-column': kid.getPConnect().getComponentName() === 'reference' }">
8
8
  <component-mapper
9
9
  [name]="kid.getPConnect().getComponentName()"
10
10
  [props]="{
@@ -2,7 +2,6 @@ import { Component, OnInit, Input, forwardRef, OnChanges } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { FormGroup } from '@angular/forms';
4
4
  import { AngularPConnectData, AngularPConnectService } from '@pega/angular-sdk-components';
5
- import { ReferenceComponent } from '@pega/angular-sdk-components';
6
5
  import { ComponentMapperComponent } from '@pega/angular-sdk-components';
7
6
  import { TemplateUtils } from '@pega/angular-sdk-components';
8
7
  import { FormTemplateBase } from '@pega/angular-sdk-components';
@@ -91,7 +90,7 @@ export class {{COMPONENT_CLASS_NAME}}Component extends FormTemplateBase implemen
91
90
  // repoint children before getting templateArray
92
91
  // Children may contain 'reference' component, so we need to
93
92
  // normalize them
94
- const children = ReferenceComponent.normalizePConnArray(kids[0].getPConnect().getChildren());
93
+ const children = kids[0].getPConnect().getChildren();
95
94
 
96
95
  if (areViewsChanged(this.arChildren$, children)) {
97
96
  this.arChildren$ = children;
@@ -8,11 +8,23 @@ const meta: Meta<{{COMPONENT_CLASS_NAME}}Component> = {
8
8
  title: '{{COMPONENT_CLASS_NAME}}',
9
9
  component: {{COMPONENT_CLASS_NAME}}Component,
10
10
  excludeStories: /.*Data$/,
11
- render: (args) => {
11
+ render: args => {
12
+ window.PCore.getConstants = (): any => {
13
+ return {
14
+ CASE_INFO: {
15
+ CASE_INFO_ID: 'caseInfo.ID',
16
+ INSTRUCTIONS: ''
17
+ }
18
+ };
19
+ };
12
20
  window.PCore.getDataApiUtils = (): any => {
13
21
  return {
14
22
  getData: () => {
15
- return Promise.resolve(historyData);
23
+ return {
24
+ then: (callback: any) => {
25
+ callback(historyData);
26
+ }
27
+ };
16
28
  }
17
29
  };
18
30
  };
@@ -422,6 +422,13 @@ export const validateCompile = async (
422
422
  export default async options => {
423
423
  showVersion();
424
424
 
425
+ console.log(
426
+ chalk.red(
427
+ 'Custom-constellation are aligned with Pega constellation which is still on react 18.\n' +
428
+ 'Please make sure any changes to custom-constellation should be aligned with React 18 development.'
429
+ )
430
+ );
431
+
425
432
  await checkPathAccess(pegaConfigJsonPath);
426
433
 
427
434
  let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });