@pega/custom-dx-components 0.242.66 → 0.242.68

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.
Files changed (62) hide show
  1. package/package.json +1 -1
  2. package/src/constants.js +3 -0
  3. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.tsx.mustache +2 -2
  4. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +2 -2
  5. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.stories.tsx.mustache +2 -2
  6. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +3 -3
  7. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.tsx.mustache +3 -3
  8. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +2 -2
  9. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +4 -4
  10. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -2
  11. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +3 -3
  12. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +2 -2
  13. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +4 -4
  14. package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -2
  15. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +3 -3
  16. package/src/tasks/create-lib/index.js +85 -1
  17. package/src/tasks/create-version/index.js +60 -16
  18. package/src/tasks/delete-lib/index.js +43 -14
  19. package/src/tasks/delete-version/index.js +30 -9
  20. package/src/tasks/export-archive/helper.js +14 -0
  21. package/src/tasks/export-archive/index.js +151 -28
  22. package/src/tasks/import-archive/index.js +27 -14
  23. package/src/tasks/import-comp/index.js +144 -82
  24. package/src/tasks/init/template/package.json.mustache +5 -4
  25. package/src/tasks/publish/index.js +34 -18
  26. package/src/tasks/publish-lib/index.js +19 -2
  27. package/src/tasks/set-perm/index.js +14 -2
  28. package/src/tasks/switch-lib/index.js +83 -34
  29. package/src/tasks/switch-version/index.js +69 -14
  30. package/src/util.js +144 -16
  31. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
  32. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  33. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
  34. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
  35. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
  36. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
  37. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
  38. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
  39. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  40. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
  41. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  42. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
  43. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
  44. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
  45. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
  46. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
  47. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
  48. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  49. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +4 -4
  50. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.tsx +2 -2
  51. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +2 -2
  52. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +3 -3
  53. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +2 -2
  54. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +2 -2
  55. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +3 -3
  56. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -2
  57. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +3 -3
  58. package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +1 -1
  59. package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +1 -1
  60. package/tests/functional/localLibCreateLibExportImportLib.test.js +1 -1
  61. package/tests/functional/localLibCreateLibExportLib.test.js +1 -1
  62. package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +1 -1
@@ -15,7 +15,7 @@ export default meta;
15
15
  type Story = StoryObj<typeof PegaDxilMyDate>;
16
16
 
17
17
  if (!window.PCore) {
18
- window.PCore = {};
18
+ window.PCore = {} as any;
19
19
  }
20
20
 
21
21
  window.PCore.getEnvironmentInfo = () => {
@@ -26,7 +26,7 @@ window.PCore.getEnvironmentInfo = () => {
26
26
  getLocale: () => {
27
27
  return 'en-GB';
28
28
  }
29
- };
29
+ } as any;
30
30
  };
31
31
 
32
32
  export const BasePegaDxilMyDate: Story = args => {
@@ -14,7 +14,7 @@ type Story = StoryObj<typeof PegaDxilMyDateTime>;
14
14
 
15
15
 
16
16
  if (!window.PCore) {
17
- window.PCore = {};
17
+ window.PCore = {} as any;
18
18
  }
19
19
 
20
20
  window.PCore.getEnvironmentInfo = () => {
@@ -25,7 +25,7 @@ window.PCore.getEnvironmentInfo = () => {
25
25
  getLocale: () => {
26
26
  return 'en-GB';
27
27
  }
28
- };
28
+ } as any;
29
29
  };
30
30
 
31
31
  export const BasePegaDxilMyDateTime: Story = (args: any) => {
@@ -21,7 +21,7 @@ export default meta;
21
21
  type Story = StoryObj<typeof PegaDxilMyDetails>;
22
22
 
23
23
  if (!window.PCore) {
24
- window.PCore = {};
24
+ window.PCore = {} as any;
25
25
  }
26
26
 
27
27
  window.PCore.getLocaleUtils = () => {
@@ -29,7 +29,7 @@ window.PCore.getLocaleUtils = () => {
29
29
  getLocaleValue: (value: any) => {
30
30
  return value;
31
31
  }
32
- };
32
+ } as any;
33
33
  };
34
34
 
35
35
  window.PCore.getUserApi = () => {
@@ -39,7 +39,7 @@ window.PCore.getUserApi = () => {
39
39
  resolve(operatorDetails);
40
40
  });
41
41
  }
42
- };
42
+ } as any;
43
43
  };
44
44
 
45
45
  const Region = (props: any) => {
@@ -15,7 +15,7 @@ export default meta;
15
15
  type Story = StoryObj<typeof PegaDxilMyIconButtonUrl>;
16
16
 
17
17
  if (!window.PCore) {
18
- window.PCore = {};
18
+ window.PCore = {} as any;
19
19
  }
20
20
 
21
21
  const countrylistData = {
@@ -47,7 +47,7 @@ window.PCore.getDataPageUtils = () => {
47
47
  resolve(countrylistData);
48
48
  });
49
49
  }
50
- };
50
+ } as any;
51
51
  };
52
52
 
53
53
  export const BasePegaDxilMyIconButtonUrl: Story = (args: any) => {
@@ -19,7 +19,7 @@ type Story = StoryObj<typeof PegaDxilMyPage>;
19
19
 
20
20
  export const BasePegaDxilMyPage: Story = (args: any) => {
21
21
  if (!window.PCore) {
22
- window.PCore = {};
22
+ window.PCore = {} as any;
23
23
  }
24
24
 
25
25
  window.PCore.getLocaleUtils = () => {
@@ -27,7 +27,7 @@ export const BasePegaDxilMyPage: Story = (args: any) => {
27
27
  getLocaleValue: (val: any) => {
28
28
  return val;
29
29
  }
30
- };
30
+ } as any;
31
31
  };
32
32
 
33
33
  const configProps = pyHome1Resolved.children[0].children[0].config;
@@ -15,7 +15,7 @@ export default meta;
15
15
  type Story = StoryObj<typeof PegaDxilMyPageCaseWidget>;
16
16
 
17
17
  if (!window.PCore) {
18
- window.PCore = {};
18
+ window.PCore = {} as any;
19
19
  }
20
20
 
21
21
  window.PCore.getLocaleUtils = () => {
@@ -23,7 +23,7 @@ window.PCore.getLocaleUtils = () => {
23
23
  getLocaleValue: (value: any) => {
24
24
  return value;
25
25
  }
26
- };
26
+ } as any;
27
27
  };
28
28
 
29
29
  window.PCore.getUserApi = () => {
@@ -33,7 +33,7 @@ window.PCore.getUserApi = () => {
33
33
  resolve(operatorDetails);
34
34
  });
35
35
  }
36
- };
36
+ } as any;
37
37
  };
38
38
 
39
39
  export const BasePegaDxilMyPageCaseWidget: Story = (args: any) => {
@@ -16,7 +16,7 @@ export default meta;
16
16
  type Story = StoryObj<typeof PegaDxilMyPageWidget>;
17
17
 
18
18
  if (!window.PCore) {
19
- window.PCore = {};
19
+ window.PCore = {} as any;
20
20
  }
21
21
 
22
22
  const worklistData = {
@@ -57,7 +57,7 @@ window.PCore.getDataApiUtils = () => {
57
57
  resolve(worklistData);
58
58
  });
59
59
  }
60
- };
60
+ } as any;
61
61
  };
62
62
 
63
63
 
@@ -20,7 +20,7 @@ export default meta;
20
20
  type Story = StoryObj<typeof PegaDxilMyTwoColumnDetails>;
21
21
 
22
22
  if (!window.PCore) {
23
- window.PCore = {};
23
+ window.PCore = {} as any;
24
24
  }
25
25
 
26
26
  window.PCore.getLocaleUtils = () => {
@@ -28,7 +28,7 @@ window.PCore.getLocaleUtils = () => {
28
28
  getLocaleValue: (value: any) => {
29
29
  return value;
30
30
  }
31
- };
31
+ } as any;
32
32
  };
33
33
 
34
34
  window.PCore.getUserApi = () => {
@@ -38,7 +38,7 @@ window.PCore.getUserApi = () => {
38
38
  resolve(operatorDetails);
39
39
  });
40
40
  }
41
- };
41
+ } as any;
42
42
  };
43
43
 
44
44
  const Region = (props: any) => {
@@ -207,7 +207,7 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
207
207
  expect(stdout).toContain('Pega_DXIL_MyTestDetails schema is valid');
208
208
 
209
209
  expect(stdout).toContain('Building Library...');
210
- expect(stdout).toContain('Compile check...');
210
+ // expect(stdout).toContain('Compile check...');
211
211
 
212
212
  expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1-dev successfully!!');
213
213
  expect(stdout).toContain('== Creating manifest for the library version - completed ==');
@@ -197,7 +197,7 @@ describe(`createLib create buildLib deleteLib deletePublishedLib: ${serverDir} -
197
197
  expect(stdout).toContain('Pega_DXIL_MyTestDetails schema is valid');
198
198
 
199
199
  expect(stdout).toContain('Building Library...');
200
- expect(stdout).toContain('Compile check...');
200
+ // expect(stdout).toContain('Compile check...');
201
201
 
202
202
  expect(stdout).toContain('Webpacked library Pega_DXIL:0.0.1-dev successfully!!');
203
203
  expect(stdout).toContain('== Creating manifest for the library version - completed ==');
@@ -173,7 +173,7 @@ describe(`createLib createAll exportStore importStore deleteLib: ${serverDir} -
173
173
  defaultPath = "/".concat(defaultPath);
174
174
  }
175
175
 
176
- const script = `npm run exportLibVersion Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
176
+ const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
177
177
  const { stdout, stderr } = await exec(script);
178
178
 
179
179
  expect(stdout).toContain('Pega_DXIL_0.0.1-dev.zip has been exported');
@@ -173,7 +173,7 @@ describe(`createLib createAll exportStore deleteLib: ${serverDir} - ${compType}`
173
173
  defaultPath = "/".concat(defaultPath);
174
174
  }
175
175
 
176
- const script = `npm run exportLibVersion Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
176
+ const script = `npm run exportLibVersion Full Pega_DXIL 0.0.1-dev ${defaultPath} Current --prefix ../../..`;
177
177
  const { stdout, stderr } = await exec(script);
178
178
 
179
179
  expect(stdout).toContain('Pega_DXIL_0.0.1-dev.zip has been exported');
@@ -205,7 +205,7 @@ describe(`createLib create validate deleteLib: ${serverDir} - ${compType}` , ()
205
205
  expect(stdout).toContain('Pega_DXIL_MyTestPage schema is valid');
206
206
  expect(stdout).toContain('Pega_DXIL_MyTestDetails schema is valid');
207
207
 
208
- expect(stdout).toContain('Validation compile...');
208
+ // expect(stdout).toContain('Validation compile...');
209
209
  expect(stdout).toContain('Done.');
210
210
 
211
211
  }, 200000);