@pega/custom-dx-components 0.242.18 → 0.242.20

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 (73) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -2
  3. package/src/constants.js +2 -1
  4. package/src/tasks/build-lib/index.js +52 -58
  5. package/src/tasks/bundle/builder/index.js +26 -19
  6. package/src/tasks/bundle/index.js +3 -2
  7. package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +6 -0
  8. package/src/tasks/create/templates/Constellation/Field/Boolean/index.tsx.mustache +1 -0
  9. package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +6 -0
  10. package/src/tasks/create/templates/Constellation/Field/Date/index.tsx.mustache +1 -0
  11. package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +6 -0
  12. package/src/tasks/create/templates/Constellation/Field/DateTime/index.tsx.mustache +1 -0
  13. package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +6 -0
  14. package/src/tasks/create/templates/Constellation/Field/Decimal/index.tsx.mustache +1 -0
  15. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +6 -0
  16. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.tsx.mustache +1 -0
  17. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +6 -0
  18. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.tsx.mustache +1 -0
  19. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +6 -0
  20. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.stories.tsx.mustache +15 -15
  21. package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/index.tsx.mustache +1 -0
  22. package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +6 -0
  23. package/src/tasks/create/templates/Constellation/Field/Integer/index.tsx.mustache +1 -0
  24. package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +6 -0
  25. package/src/tasks/create/templates/Constellation/Field/Picklist/index.tsx.mustache +1 -0
  26. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +6 -0
  27. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1 -0
  28. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +6 -0
  29. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +1 -0
  30. package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +6 -0
  31. package/src/tasks/create/templates/Constellation/Field/Text/index.tsx.mustache +1 -0
  32. package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +6 -0
  33. package/src/tasks/create/templates/Constellation/Field/Text-Email/index.tsx.mustache +1 -0
  34. package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +6 -0
  35. package/src/tasks/create/templates/Constellation/Field/Text-Input/index.tsx.mustache +1 -0
  36. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +6 -0
  37. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.tsx.mustache +1 -0
  38. package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +6 -0
  39. package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.tsx.mustache +1 -0
  40. package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +6 -0
  41. package/src/tasks/create/templates/Constellation/Field/Text-URL/index.tsx.mustache +1 -0
  42. package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +6 -0
  43. package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.tsx.mustache +1 -0
  44. package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +6 -0
  45. package/src/tasks/create/templates/Constellation/Template/DETAILS/index.tsx.mustache +2 -0
  46. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +6 -0
  47. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.tsx.mustache +1 -0
  48. package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +6 -0
  49. package/src/tasks/create/templates/Constellation/Template/FORM/index.tsx.mustache +1 -0
  50. package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +6 -0
  51. package/src/tasks/create/templates/Constellation/Template/FORM-region/index.tsx.mustache +1 -0
  52. package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +6 -0
  53. package/src/tasks/create/templates/Constellation/Template/PAGE/index.tsx.mustache +1 -0
  54. package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +6 -0
  55. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +23 -24
  56. package/src/tasks/create/templates/Constellation/Widget/CASE/index.tsx.mustache +1 -0
  57. package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +6 -0
  58. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +15 -17
  59. package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +1 -0
  60. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
  61. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +6 -0
  62. package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/index.tsx.mustache +1 -0
  63. package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +6 -0
  64. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.tsx.mustache +1 -0
  65. package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +6 -0
  66. package/src/tasks/create/templates/Launchpad/Widget/PAGE/index.tsx.mustache +1 -0
  67. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +6 -0
  68. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.tsx.mustache +1 -0
  69. package/src/tasks/delete/helper.js +19 -3
  70. package/src/tasks/init/template/package.json.mustache +7 -6
  71. package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +5 -3
  72. package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +5 -3
  73. package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +5 -3
@@ -10,6 +10,7 @@ import {
10
10
  withConfiguration
11
11
  } from '@pega/cosmos-react-core';
12
12
  import type { PConnFieldProps } from './PConnProps';
13
+ import './create-nonce';
13
14
 
14
15
  // includes in bundle
15
16
  import handleEvent from "./event-utils";
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { useState, useEffect, useRef} from "react";
2
2
  import { Input, FieldValueList, Text, withConfiguration } from "@pega/cosmos-react-core";
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  // includes in bundle
6
7
  import {formatExists,textFormatter, urlFormatter} from "./text-url";
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { TimeInput, FieldValueList, DateTimeDisplay, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
 
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
 
7
8
  // includes in bundle
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,8 @@
1
1
  import { Fragment, Children, type ReactElement } from 'react';
2
2
  import { Grid, Flex, FieldGroup, withConfiguration, type GridContainerProps } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
5
+
4
6
  import DetailsRender from './DetailsRender';
5
7
  import HighlightRender from './HighlightRender';
6
8
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { Fragment, Children, type ReactElement } from 'react';
2
2
  import { Grid, Flex, FieldGroup, withConfiguration, type GridContainerProps } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
  import DetailsRender from './DetailsRender';
5
6
  import HighlightRender from './HighlightRender';
6
7
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -2,6 +2,7 @@ import { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-co
2
2
 
3
3
 
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
  import DetailsRender from './DetailsRender';
6
7
 
7
8
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { Grid, Flex, FieldGroup, withConfiguration } from '@pega/cosmos-react-core';
2
2
 
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
  import DetailsRender from './DetailsRender';
5
6
 
6
7
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -3,6 +3,7 @@ import { OneColumnPage as OneColumn, withConfiguration } from '@pega/cosmos-reac
3
3
  import { ConfigurableLayout } from '@pega/cosmos-react-work'
4
4
  // import { registerIcon } from '@pega/cosmos-react-core';
5
5
  import type { PConnFieldProps } from './PConnProps';
6
+ import './create-nonce';
6
7
 
7
8
 
8
9
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -18,36 +18,35 @@ if (!window.PCore) {
18
18
  window.PCore = {};
19
19
  }
20
20
 
21
- window.PCore.getConstants = () => {
22
- return {
23
- CASE_INFO: {
24
- CASE_INFO_ID: 'caseInfo.ID'
25
- }
26
- };
27
- };
21
+ export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
28
22
 
29
- window.PCore.getLocaleUtils = () => {
30
- return {
31
- getLocaleValue: (value: any) => {
32
- return value;
33
- }
23
+ window.PCore.getConstants = () => {
24
+ return {
25
+ CASE_INFO: {
26
+ CASE_INFO_ID: 'caseInfo.ID'
27
+ }
28
+ };
34
29
  };
35
- };
36
30
 
37
- window.PCore.getDataApiUtils = () => {
38
- return {
39
- getData: () => {
40
- return new Promise(resolve => {
41
- resolve(historyData);
42
- });
43
- }
31
+ window.PCore.getLocaleUtils = () => {
32
+ return {
33
+ getLocaleValue: (value: any) => {
34
+ return value;
35
+ }
36
+ };
44
37
  };
45
- };
46
38
 
47
- export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
39
+ window.PCore.getDataApiUtils = () => {
40
+ return {
41
+ getData: () => {
42
+ return new Promise(resolve => {
43
+ resolve(historyData);
44
+ });
45
+ }
46
+ };
47
+ };
48
48
 
49
49
  const props = {
50
-
51
50
  getPConnect: () => {
52
51
  return {
53
52
  getValue: (value: any) => {
@@ -71,7 +70,7 @@ export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
71
70
  resolveConfigProps: () => {/* nothing */}
72
71
  };
73
72
  }
74
- };
73
+ };
75
74
 
76
75
  return (
77
76
  <>
@@ -1,6 +1,7 @@
1
1
  import { useState, useEffect } from 'react';
2
2
  import { Table, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -45,25 +45,23 @@ const worklistData = {
45
45
  }
46
46
  };
47
47
 
48
- window.PCore.getDataApiUtils = () => {
49
- return {
50
- getData: () => {
51
- return new Promise(resolve => {
52
- resolve(worklistData);
53
- });
54
- },
55
- getDataAsync: () => {
56
- return new Promise(resolve => {
57
- resolve(worklistData);
58
- });
59
- }
60
- };
61
- };
62
-
63
-
64
-
65
48
  export const Base{{COMPONENT_CLASS_NAME}}: Story = (args: any) => {
66
49
 
50
+ window.PCore.getDataApiUtils = () => {
51
+ return {
52
+ getData: () => {
53
+ return new Promise(resolve => {
54
+ resolve(worklistData);
55
+ });
56
+ },
57
+ getDataAsync: () => {
58
+ return new Promise(resolve => {
59
+ resolve(worklistData);
60
+ });
61
+ }
62
+ };
63
+ };
64
+
67
65
  const props = {
68
66
  ...configProps,
69
67
  getPConnect: () => {
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { withConfiguration, Table } from '@pega/cosmos-react-core';
3
3
  import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
7
8
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -10,6 +10,7 @@ import {
10
10
  URLDisplay
11
11
  } from '@pega/cosmos-react-core';
12
12
  import type { PConnFieldProps } from './PConnProps';
13
+ import './create-nonce';
13
14
 
14
15
  // IMPORTANT
15
16
  // To use Icons, need to individually import the icon file form @pega/cosmos-react-core (see path below)
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { useState, useEffect } from 'react';
2
2
  import { Table, Text, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
6
7
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
2
2
  import { withConfiguration, Table } from '@pega/cosmos-react-core';
3
3
  import { AppAnnouncement as PegaAppAnnouncement } from '@pega/cosmos-react-work';
4
4
  import type { PConnFieldProps } from './PConnProps';
5
+ import './create-nonce';
5
6
 
6
7
  import Styled{{COMPONENT_CLASS_NAME}}Wrapper from './styles';
7
8
 
@@ -0,0 +1,6 @@
1
+ /* eslint-disable camelcase */
2
+ // @ts-ignore
3
+ if (window?.__webpack_nonce__) {
4
+ // @ts-ignore
5
+ __webpack_nonce__ = window.__webpack_nonce__;
6
+ }
@@ -1,6 +1,7 @@
1
1
  import { Fragment } from 'react';
2
2
  import { DateTimeDisplay, Card, CardHeader, CardContent, Flex, withConfiguration } from '@pega/cosmos-react-core';
3
3
  import type { PConnFieldProps } from './PConnProps';
4
+ import './create-nonce';
4
5
 
5
6
  // includes in bundle
6
7
  import Operator from './Operator';
@@ -140,9 +140,25 @@ export const deleteServerComponents = async (sourceOfComponents, answers) => {
140
140
  ({library, organization} = lpAnswers);
141
141
  }
142
142
 
143
- const spinner = ora('Fetching components from server').start();
144
- const data = await getComponentsFromServer(library, organization);
145
- spinner.stop();
143
+ let spinner;
144
+ let data;
145
+ try {
146
+ spinner = ora('Fetching components from server').start();
147
+ data = await getComponentsFromServer(library, organization);
148
+ spinner.stop();
149
+ }
150
+ catch (error) {
151
+ spinner.stop();
152
+ if (error.indexOf("ECONNREFUSED") >= 0) {
153
+ console.log(`\n${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
154
+ }
155
+ else {
156
+ console.log(`${chalk.bold.red(error)}`);
157
+ }
158
+
159
+ // spinner.stop();
160
+ process.exit(1);
161
+ }
146
162
 
147
163
 
148
164
  let serverComponents;
@@ -10,23 +10,24 @@
10
10
  "authenticate": "custom-dx-components authenticate",
11
11
  "buildComponent": "custom-dx-components buildComponent",
12
12
  "buildAllComponents": "custom-dx-components buildAllComponents",
13
- "buildLibrary": "custom-dx-components buildLibrary",
14
13
  "create": "custom-dx-components create",
15
14
  "createAll": "custom-dx-components createAll",
16
15
  "publish": "custom-dx-components publish",
17
16
  "publishAll": "custom-dx-components publishAll",
18
- "publishLibrary": "custom-dx-components publishLibrary",
19
17
  "rename": "custom-dx-components rename",
20
- "renameLibrary": "custom-dx-components renameLibrary",
21
18
  "list": "custom-dx-components list",
22
- "listLibrary": "custom-dx-components listLibrary",
23
19
  "validate-schema": "custom-dx-components validateSchema",
24
20
  "update": "custom-dx-components update",
25
21
  "delete": "custom-dx-components delete",
26
22
  "deleteAll": "custom-dx-components deleteAll",
27
- "deleteLibrary": "custom-dx-components deleteLibrary",
28
23
  "promoteWebPack": "custom-dx-components promoteWebPack",
29
24
  "revertWebPack": "custom-dx-components revertWebPack",
25
+ "_library_comments": "library based commands",
26
+ "buildLibrary": "custom-dx-components buildLibrary",
27
+ "publishLibrary": "custom-dx-components publishLibrary",
28
+ "renameLibrary": "custom-dx-components renameLibrary",
29
+ "listLibrary": "custom-dx-components listLibrary",
30
+ "deleteLibrary": "custom-dx-components deleteLibrary",
30
31
  "_internal-test-coverage": "node --input-type=module --experimental-vm-modules node_modules/jest/bin/jest.js --runInBand node_modules/@pega/custom-dx-component --ci --testResultsProcessor='jest-junit' --coverage",
31
32
  "_internal-test": "echo 'Running functional and unit tests will DELETE existing local components, proceed (y/n)?' && read proceed && if test \"$proceed\" = \"y\"; then npm run _internal-test-full; fi ",
32
33
  "_internal-test-full": "npm run _internal-test-functional && npm run _internal-test-unit",
@@ -80,7 +81,7 @@
80
81
  },
81
82
  "devDependencies": {
82
83
  "@pega/configs": "^0.6.0",
83
- "@pega/custom-dx-components": "0.242.18",
84
+ "@pega/custom-dx-components": "0.242.20",
84
85
  "@pega/pcore-pconnect-typedefs": "~3.0.0",
85
86
  "@storybook/addon-actions": "^7.6.7",
86
87
  "@storybook/addon-essentials": "^7.6.19",
@@ -6,6 +6,8 @@ import PegaDxilMyDetails from './index';
6
6
  import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
7
7
  import StatusWorkRenderer from './StatusWork';
8
8
  import Operator from './Operator';
9
+ import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
10
+
9
11
 
10
12
  const meta: Meta<typeof PegaDxilMyDetails> = {
11
13
  title: 'PegaDxilMyDetails',
@@ -74,7 +76,7 @@ const renderField = (resolvedProps: any) => {
74
76
  value={value}
75
77
  variant='datetime'
76
78
  format='long'
77
- clockFormat={null}
79
+ clockFormat={undefined}
78
80
  key={key}
79
81
  />
80
82
  );
@@ -141,7 +143,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
141
143
  getInheritedProps: () => {
142
144
  return pyReviewRaw.config.inheritedProps;
143
145
  },
144
- createComponent: config => {
146
+ createComponent: (config: { config: { value: any } }) => {
145
147
  // eslint-disable-next-line default-case
146
148
  switch (config.config.value) {
147
149
  case '@P .pyStatusWork':
@@ -184,7 +186,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
184
186
  getRawMetadata: () => pyReviewRaw.children[0].children[index],
185
187
  getConfigProps: () => {},
186
188
  resolveConfigProps: () => regionChildrenResolved[index],
187
- getComponent: config =>
189
+ getComponent: (config: any) =>
188
190
  props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
189
191
  })
190
192
  };
@@ -6,6 +6,8 @@ import PegaDxilMyDetails from './index';
6
6
  import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
7
7
  import StatusWorkRenderer from './StatusWork';
8
8
  import Operator from './Operator';
9
+ import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
10
+
9
11
 
10
12
  const meta: Meta<typeof PegaDxilMyDetails> = {
11
13
  title: 'PegaDxilMyDetails',
@@ -74,7 +76,7 @@ const renderField = (resolvedProps: any) => {
74
76
  value={value}
75
77
  variant='datetime'
76
78
  format='long'
77
- clockFormat={null}
79
+ clockFormat={undefined}
78
80
  key={key}
79
81
  />
80
82
  );
@@ -141,7 +143,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
141
143
  getInheritedProps: () => {
142
144
  return pyReviewRaw.config.inheritedProps;
143
145
  },
144
- createComponent: config => {
146
+ createComponent: (config: { config: { value: any } }) => {
145
147
  // eslint-disable-next-line default-case
146
148
  switch (config.config.value) {
147
149
  case '@P .pyStatusWork':
@@ -184,7 +186,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
184
186
  getRawMetadata: () => pyReviewRaw.children[0].children[index],
185
187
  getConfigProps: () => {},
186
188
  resolveConfigProps: () => regionChildrenResolved[index],
187
- getComponent: config =>
189
+ getComponent: (config: any) =>
188
190
  props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
189
191
  })
190
192
  };
@@ -6,6 +6,8 @@ import PegaDxilMyDetails from './index';
6
6
  import { pyReviewRaw, pyReviewResolved, regionChildrenResolved, operatorDetails, configProps } from './mock';
7
7
  import StatusWorkRenderer from './StatusWork';
8
8
  import Operator from './Operator';
9
+ import type C11nEnv from '@pega/pcore-pconnect-typedefs/interpreter/c11n-env';
10
+
9
11
 
10
12
  const meta: Meta<typeof PegaDxilMyDetails> = {
11
13
  title: 'PegaDxilMyDetails',
@@ -74,7 +76,7 @@ const renderField = (resolvedProps: any) => {
74
76
  value={value}
75
77
  variant='datetime'
76
78
  format='long'
77
- clockFormat={null}
79
+ clockFormat={undefined}
78
80
  key={key}
79
81
  />
80
82
  );
@@ -141,7 +143,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
141
143
  getInheritedProps: () => {
142
144
  return pyReviewRaw.config.inheritedProps;
143
145
  },
144
- createComponent: config => {
146
+ createComponent: (config: { config: { value: any } }) => {
145
147
  // eslint-disable-next-line default-case
146
148
  switch (config.config.value) {
147
149
  case '@P .pyStatusWork':
@@ -184,7 +186,7 @@ export const BasePegaDxilMyDetails: Story = (args: any) => {
184
186
  getRawMetadata: () => pyReviewRaw.children[0].children[index],
185
187
  getConfigProps: () => {},
186
188
  resolveConfigProps: () => regionChildrenResolved[index],
187
- getComponent: config =>
189
+ getComponent: (config: any) =>
188
190
  props.getPConnect().createComponent(pyReviewRaw.children[0].children[index])
189
191
  })
190
192
  };