@pega/custom-dx-components 0.23.28 → 0.23.30

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 (33) hide show
  1. package/package.json +1 -1
  2. package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +0 -1
  3. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +0 -1
  4. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +0 -2
  5. package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +1 -1
  6. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +0 -2
  7. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +0 -2
  8. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +0 -1
  9. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.tsx.mustache +1 -1
  10. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +1 -1
  11. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.tsx.mustache +1 -1
  12. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -1
  13. package/src/tasks/init/template/.eslintrc.json +3 -0
  14. package/src/tasks/init/template/package.json.mustache +4 -4
  15. package/src/tasks/init/template/tsconfig.json +2 -1
  16. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +0 -2
  17. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +0 -1
  18. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +0 -1
  19. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +0 -2
  20. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +0 -1
  21. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +1 -1
  22. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +1 -1
  23. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -2
  24. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +0 -2
  25. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -1
  26. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +0 -1
  27. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +0 -1
  28. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +0 -2
  29. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +0 -1
  30. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.tsx +1 -1
  31. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -1
  32. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +1 -1
  33. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pega/custom-dx-components",
3
- "version": "0.23.28",
3
+ "version": "0.23.30",
4
4
  "description": "Utility for building custom UI components",
5
5
  "bin": "./bin/index.js",
6
6
  "scripts": {
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from "dayjs";
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from 'dayjs';
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,6 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
-
4
2
  import { isEmbeddedField, isPageListInPath, PAGE, PAGELIST, buildAggOrCalcId } from './repeat-utils.js';
5
3
 
6
4
  export const AT_FILTEREDLIST = '@FILTERED_LIST';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */import dayjs from "dayjs";
2
+ import dayjs from "dayjs";
3
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
4
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
5
5
  import utc from 'dayjs/plugin/utc.js';
@@ -1,5 +1,3 @@
1
-
2
- /* eslint-disable no-undef */
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-undef */
2
-
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import { createUID } from '@pega/cosmos-react-core';
4
3
 
5
4
  // import { LazyMap as LazyComponentMap } from '../../components_map';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
- import type React from 'react';
2
+ import React from 'react';
3
3
  import { useEffect, useState } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
@@ -3,7 +3,7 @@
3
3
  // @ts-nocheck
4
4
  import { withKnobs } from '@storybook/addon-knobs';
5
5
 
6
- import {{COMPONENT_CLASS_NAME}} from './index.jsx';
6
+ import {{COMPONENT_CLASS_NAME}} from './index';
7
7
 
8
8
  import historyData from './mock';
9
9
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
- import type React from 'react';
2
+ import React from 'react';
3
3
  import { useEffect, useState } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck
3
3
  import { withKnobs } from '@storybook/addon-knobs';
4
4
 
5
- import {{COMPONENT_CLASS_NAME}} from './index.jsx';
5
+ import {{COMPONENT_CLASS_NAME}} from './index';
6
6
 
7
7
  import { configProps, operatorDetails } from './mock';
8
8
 
@@ -5,6 +5,9 @@
5
5
  "project": "tsconfig.json",
6
6
  "ecmaVersion": 13
7
7
  },
8
+ "globals": {
9
+ "PCore": "readonly"
10
+ },
8
11
  "settings": {
9
12
  "import/resolver": {
10
13
  "typescript": {},
@@ -51,9 +51,9 @@
51
51
  "license": "Enter License",
52
52
  "sideEffects": false,
53
53
  "dependencies": {
54
- "@pega/cosmos-react-condition-builder": "^4.1.2",
55
- "@pega/cosmos-react-core": "^4.1.2",
56
- "@pega/cosmos-react-work": "4.1.2",
54
+ "@pega/cosmos-react-condition-builder": "^4.2.0",
55
+ "@pega/cosmos-react-core": "^4.2.0",
56
+ "@pega/cosmos-react-work": "^4.2.0",
57
57
  "dayjs": "^1.11.10",
58
58
  "lodash.get": "^4.4.2",
59
59
  "polished": "^4.2.2",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@pega/configs": "^0.6.0",
72
- "@pega/custom-dx-components": "0.23.28",
72
+ "@pega/custom-dx-components": "0.23.30",
73
73
  "@pega/pcore-pconnect-typedefs": "2.0.0",
74
74
  "@storybook/addon-actions": "^7.6.7",
75
75
  "@storybook/addon-essentials": "^7.6.7",
@@ -3,6 +3,7 @@
3
3
  "include": ["./**/*", ".storybook/**/*"],
4
4
  "compilerOptions": {
5
5
  "noEmit": true,
6
- "allowJs": true
6
+ "allowJs": true,
7
+ "importsNotUsedAsValues": "remove"
7
8
  }
8
9
  }
@@ -1,6 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
-
4
2
  import { isEmbeddedField, isPageListInPath, PAGE, PAGELIST, buildAggOrCalcId } from './repeat-utils.js';
5
3
 
6
4
  export const AT_FILTEREDLIST = '@FILTERED_LIST';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from "dayjs";
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from 'dayjs';
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,5 +1,3 @@
1
-
2
- /* eslint-disable no-undef */
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import { createUID } from '@pega/cosmos-react-core';
4
3
 
5
4
  // import { LazyMap as LazyComponentMap } from '../../components_map';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
- import type React from 'react';
2
+ import React from 'react';
3
3
  import { useEffect, useState } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */import dayjs from "dayjs";
2
+ import dayjs from "dayjs";
3
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
4
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
5
5
  import utc from 'dayjs/plugin/utc.js';
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-undef */
2
-
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.
@@ -1,6 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
-
4
2
  import { isEmbeddedField, isPageListInPath, PAGE, PAGELIST, buildAggOrCalcId } from './repeat-utils.js';
5
3
 
6
4
  export const AT_FILTEREDLIST = '@FILTERED_LIST';
@@ -3,7 +3,7 @@
3
3
  // @ts-nocheck
4
4
  import { withKnobs } from '@storybook/addon-knobs';
5
5
 
6
- import PegaDxilMyCaseWidget from './index.jsx';
6
+ import PegaDxilMyCaseWidget from './index';
7
7
 
8
8
  import historyData from './mock';
9
9
 
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from "dayjs";
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import dayjs from 'dayjs';
4
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
5
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
@@ -1,5 +1,3 @@
1
-
2
- /* eslint-disable no-undef */
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.
@@ -1,5 +1,4 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */
3
2
  import { createUID } from '@pega/cosmos-react-core';
4
3
 
5
4
  // import { LazyMap as LazyComponentMap } from '../../components_map';
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable react-hooks/rules-of-hooks */
2
- import type React from 'react';
2
+ import React from 'react';
3
3
  import { useEffect, useState } from 'react';
4
4
  import PropTypes from 'prop-types';
5
5
  import { Avatar as CosmosAvatar } from '@pega/cosmos-react-core';
@@ -2,7 +2,7 @@
2
2
  // @ts-nocheck
3
3
  import { withKnobs } from '@storybook/addon-knobs';
4
4
 
5
- import PegaDxilMyPageCaseWidget from './index.jsx';
5
+ import PegaDxilMyPageCaseWidget from './index';
6
6
 
7
7
  import { configProps, operatorDetails } from './mock';
8
8
 
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-relative-packages */
2
- /* eslint-disable no-undef */import dayjs from "dayjs";
2
+ import dayjs from "dayjs";
3
3
  import relativeTime from 'dayjs/plugin/relativeTime.js';
4
4
  import localizedFormat from 'dayjs/plugin/localizedFormat.js';
5
5
  import utc from 'dayjs/plugin/utc.js';
@@ -1,5 +1,3 @@
1
- /* eslint-disable no-undef */
2
-
3
1
  /**
4
2
  * Given the PConnect object of a Template component, retrieve the children
5
3
  * metadata of all regions.