@pega/custom-dx-components 24.2.16 → 25.1.10-alpha-0.1
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 +37 -35
- package/src/cli.js +6 -0
- package/src/constants.js +11 -3
- package/src/tasks/authenticate/index.js +5 -0
- package/src/tasks/build-all/index.js +20 -1
- package/src/tasks/build-jest-assets/index.js +7 -8
- package/src/tasks/build-lib/helper.js +39 -20
- package/src/tasks/build-lib/index.js +40 -18
- package/src/tasks/create/index.js +5 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Date/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.ts.mustache +0 -24
- package/src/tasks/create/templates/Constellation/Field/Date/demo.test.tsx.mustache +52 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.test.tsx.mustache +72 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Field/Icon-Button-URL/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.test.tsx.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.test.tsx.mustache +25 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +7 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/localizations.json.mustache +5 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.ts.mustache +0 -4
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Constellation/Field/Text/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.test.tsx.mustache +19 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.test.tsx.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.test.tsx.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.test.tsx.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/config.json.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.test.tsx.mustache +33 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.test.tsx.mustache +47 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.test.tsx.mustache +58 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.test.tsx.mustache +40 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.test.tsx.mustache +56 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.tsx.mustache +4 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.test.tsx.mustache +24 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/localizations.json.mustache +8 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.tsx.mustache +4 -1
- package/src/tasks/create/templates/Constellation/Widget/PAGE/localizations.json.mustache +10 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.test.tsx.mustache +29 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Field/Icon-Button-URL/demo.test.tsx.mustache +27 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.test.tsx.mustache +28 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.stories.tsx.mustache +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE/demo.test.tsx.mustache +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/create-nonce.ts.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.tsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.test.tsx.mustache +19 -0
- package/src/tasks/create-all/index.js +5 -1
- package/src/tasks/create-lib/helper.js +6 -2
- package/src/tasks/create-lib/index.js +18 -6
- package/src/tasks/create-version/helper.js +30 -0
- package/src/tasks/create-version/index.js +27 -8
- package/src/tasks/delete/helper.js +6 -2
- package/src/tasks/delete/index.js +5 -1
- package/src/tasks/delete-lib/helper.js +0 -1
- package/src/tasks/delete-lib/index.js +10 -11
- package/src/tasks/delete-pub/helper.js +142 -1
- package/src/tasks/delete-pub/index.js +75 -10
- package/src/tasks/delete-version/index.js +8 -2
- package/src/tasks/export-archive/helper.js +47 -3
- package/src/tasks/export-archive/index.js +70 -44
- package/src/tasks/import-archive/helper.js +249 -4
- package/src/tasks/import-archive/index.js +476 -40
- package/src/tasks/import-comp/helper.js +26 -3
- package/src/tasks/import-comp/index.js +78 -117
- package/src/tasks/index.js +1 -0
- package/src/tasks/init/template/.eslintrc.json +1 -1
- package/src/tasks/init/template/.storybook/{main.js → main.ts} +4 -3
- package/src/tasks/init/template/.storybook/manager.ts +6 -0
- package/src/tasks/init/template/.storybook/preview.tsx +4 -1
- package/src/tasks/init/template/.storybook/theme.js +1 -1
- package/src/tasks/init/template/babel.config.cjs +18 -9
- package/src/tasks/init/template/jest.config.cjs +29 -4
- package/src/tasks/init/template/package.json.mustache +54 -35
- package/src/tasks/init/template/setupFiles.ts +5 -0
- package/src/tasks/init/template/setupTests.ts +99 -0
- package/src/tasks/init/template/tasks.config.json +1 -1
- package/src/tasks/init/template/tsconfig.json +4 -1
- package/src/tasks/list/helper.js +21 -2
- package/src/tasks/list-lib/index.js +10 -1
- package/src/tasks/list-pub/helper.js +102 -1
- package/src/tasks/list-pub/index.js +108 -36
- package/src/tasks/move/index.js +1 -1
- package/src/tasks/promote-webpack/index.js +0 -3
- package/src/tasks/publish/helper.js +9 -7
- package/src/tasks/publish/index.js +85 -16
- package/src/tasks/publish-all/index.js +12 -1
- package/src/tasks/publish-archive/helper.js +58 -0
- package/src/tasks/publish-archive/index.js +238 -0
- package/src/tasks/publish-lib/index.js +277 -69
- package/src/tasks/rename/index.js +9 -1
- package/src/tasks/rename-lib/index.js +10 -1
- package/src/tasks/restore/index.js +84 -0
- package/src/tasks/set-perm/index.js +1 -2
- package/src/tasks/show-help/index.js +34 -13
- package/src/tasks/show-status/index.js +34 -11
- package/src/tasks/store/index.js +39 -18
- package/src/tasks/switch-lib/helper.js +0 -1
- package/src/tasks/switch-lib/index.js +13 -9
- package/src/tasks/switch-version/index.js +11 -6
- package/src/tasks/validator/index.js +1 -1
- package/src/util.js +463 -114
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/config.json +2 -1
- package/tests/assets/library/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/library/components/create/shared/create-nonce.ts +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyDetails}/Avatar.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyDetails}/Operator.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/library/components/createAll/Constellation/{shared → Pega_DXIL_MyPageCaseWidget}/Avatar.tsx +3 -4
- package/tests/assets/library/components/{create/shared → createAll/Constellation/Pega_DXIL_MyPageCaseWidget}/Operator.tsx +3 -3
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Avatar.tsx +76 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/Operator.tsx +215 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.tsx +1 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +2 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +27 -1
- package/tests/assets/library/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/library/components/createAll/Constellation/shared/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/config.json +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/create-nonce.ts +1 -0
- package/tests/assets/original/components/create/Pega_DXIL_MyTestText/demo.test.tsx +19 -0
- package/tests/assets/original/components/create/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/create/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/create/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/localizations.json +8 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyIconButtonURL/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.tsx +4 -1
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPageWidget/localizations.json +10 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Constellation/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Constellation/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Constellation/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Constellation/shared/suggestions-handler.ts +9 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.test.tsx +28 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/date.ts +0 -24
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.test.tsx +52 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.test.tsx +72 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.test.tsx +47 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.test.tsx +40 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyIconButtonURL/demo.test.tsx +27 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.tsx +4 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.test.tsx +24 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.tsx +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.tsx +2 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.test.tsx +36 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.test.tsx +21 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.test.tsx +18 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.test.tsx +23 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.test.tsx +25 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyRadiobuttons/demo.test.tsx +29 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/index.tsx +7 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/localizations.json +5 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MySearchbox/repeat-utils.ts +0 -4
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyText/demo.test.tsx +19 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.test.tsx +33 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.test.tsx +58 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.test.tsx +56 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +26 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/create-nonce.ts +1 -0
- package/tests/assets/original/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.test.tsx +20 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/PConnProps.d.ts +46 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/create-nonce.ts +7 -0
- package/tests/assets/original/components/createAll/Launchpad/shared/suggestions-handler.ts +9 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +12 -8
- package/tests/functional/localCreateBuildDelete.test.js +12 -8
- package/tests/functional/localCreateListDelete.test.js +14 -9
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +13 -9
- package/tests/functional/localCreatePublishDelete.test.js +12 -8
- package/tests/functional/localCreateRenameDelete.test.js +12 -8
- package/tests/functional/localLibCreateLibAlreadyDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibBuildLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibBuildLibListPubDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibDeleteLib.test.js +17 -17
- package/tests/functional/localLibCreateLibExportImportLib.test.js +27 -27
- package/tests/functional/localLibCreateLibExportLib.test.js +19 -19
- package/tests/functional/localLibCreateLibImportCompDeleteLib.test.js +14 -14
- package/tests/functional/localLibCreateLibListDeleteLib.test.js +22 -22
- package/tests/functional/localLibCreateLibListMoveDeleteLib.test.js +31 -31
- package/tests/functional/localLibCreateLibListSwitchDeleteLib.test.js +20 -20
- package/tests/functional/localLibCreateLibStatusDeleteLib.test.js +13 -29
- package/tests/functional/localLibCreateLibStoreRestoreDeleteLib.test.js +376 -0
- package/tests/functional/localLibCreateLibValidateDeleteLib.test.js +18 -18
- package/tests/functional/localLibCreateLibVersionDeleteLib.test.js +27 -27
- package/tests/functional/localPromoteRevertWP.test.js +9 -8
- package/tests/functional/localLibCreateLibPermDeleteLib.test.js +0 -144
|
@@ -24,6 +24,8 @@ import { getFilePathQuestions, getFileNameQuestions, updateSavedFilePath } from
|
|
|
24
24
|
|
|
25
25
|
import buildComponent from '../build-comp/index.js';
|
|
26
26
|
|
|
27
|
+
import inquirerFuzzyPath from '@pega/inquirer-fuzzy-path';
|
|
28
|
+
|
|
27
29
|
export const DXCB_CONFIG_INTERNAL_JSON_FILENAME = 'src/dxcb.config.json';
|
|
28
30
|
const currentDirectory = process.cwd();
|
|
29
31
|
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
@@ -159,8 +161,6 @@ addDebugLog("renameComponent", `library: ${library}, componentKey: ${componentKe
|
|
|
159
161
|
export const importComp = async(filePath, fileName, askValidate) => {
|
|
160
162
|
addDebugLog("importComp", `filePath: ${filePath}, fileName: ${fileName}`, "");
|
|
161
163
|
|
|
162
|
-
const useInputConfig = getUseInputConfig();
|
|
163
|
-
|
|
164
164
|
const currentDirectory = process.cwd();
|
|
165
165
|
// const compDirectory = join(currentDirectory, "src", "components");
|
|
166
166
|
|
|
@@ -171,8 +171,6 @@ addDebugLog("importComp", `filePath: ${filePath}, fileName: ${fileName}`, "");
|
|
|
171
171
|
let configData;
|
|
172
172
|
let newName = "";
|
|
173
173
|
let newLabel = "";
|
|
174
|
-
let proceedAs;
|
|
175
|
-
|
|
176
174
|
|
|
177
175
|
if (fs.existsSync(copyDir)) {
|
|
178
176
|
configData = fs.readFileSync(join(copyDir, "/config.json"), { encoding: 'utf8' });
|
|
@@ -185,96 +183,66 @@ addDebugLog("importComp", `filePath: ${filePath}, fileName: ${fileName}`, "");
|
|
|
185
183
|
|
|
186
184
|
if (currentCompList && currentCompList.includes(potentialCompKey)) {
|
|
187
185
|
console.log(`\nComponent ${chalk.yellow(`${potentialCompKey}`)} already exists.`);
|
|
186
|
+
const proceedAnswers = await inquirer.prompt([
|
|
188
187
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
// removed copied
|
|
202
|
-
// fs.rmSync(copyDir, { recursive: true, force: true, maxRetries: 2 });
|
|
203
|
-
process.exit();
|
|
204
|
-
break;
|
|
205
|
-
case 'Overwrite':
|
|
206
|
-
// remove existing
|
|
207
|
-
const existingComp = await getComponentDirectoryPath(potentialCompKey);
|
|
208
|
-
fs.rmSync(existingComp, { recursive: true, force: true, maxRetries: 2 });
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
else {
|
|
214
|
-
const proceedAnswers = await inquirer.prompt([
|
|
215
|
-
|
|
216
|
-
{
|
|
217
|
-
name: 'proceedAs',
|
|
218
|
-
type: 'rawlist',
|
|
219
|
-
message: `Proceed as ?`,
|
|
220
|
-
default: 'No import',
|
|
221
|
-
choices: ['No import', 'Overwrite', 'New name']
|
|
188
|
+
{
|
|
189
|
+
name: 'proceedAs',
|
|
190
|
+
type: 'rawlist',
|
|
191
|
+
message: `Proceed as ?`,
|
|
192
|
+
default: 'No import',
|
|
193
|
+
choices: ['No import', 'Overwrite', 'New name']
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'componentName',
|
|
197
|
+
message: 'Enter component name (required)',
|
|
198
|
+
when(answers) {
|
|
199
|
+
return answers.proceedAs === 'New name';
|
|
222
200
|
},
|
|
223
|
-
{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
It should not have spaces
|
|
232
|
-
It should not start with a number
|
|
233
|
-
Only case-insensitive alphanumeric values are allowed
|
|
234
|
-
*/
|
|
235
|
-
if (value && !/^\d/.test(value) && value === sanitize(value)) {
|
|
236
|
-
return true;
|
|
237
|
-
}
|
|
238
|
-
return 'Only alphanumeric values are allowed, starting with alphabets, no spaces.';
|
|
201
|
+
validate: value => {
|
|
202
|
+
/* value should not be empty
|
|
203
|
+
It should not have spaces
|
|
204
|
+
It should not start with a number
|
|
205
|
+
Only case-insensitive alphanumeric values are allowed
|
|
206
|
+
*/
|
|
207
|
+
if (value && !/^\d/.test(value) && value === sanitize(value)) {
|
|
208
|
+
return true;
|
|
239
209
|
}
|
|
210
|
+
return 'Only alphanumeric values are allowed, starting with alphabets, no spaces.';
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
name: 'componentLabel',
|
|
215
|
+
message: 'Enter component label for display (required)',
|
|
216
|
+
when(answers) {
|
|
217
|
+
return answers.proceedAs === 'New name';
|
|
240
218
|
},
|
|
241
|
-
{
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
when(answers) {
|
|
245
|
-
return answers.proceedAs === 'New name';
|
|
246
|
-
},
|
|
247
|
-
validate: value => {
|
|
248
|
-
if (value) {
|
|
249
|
-
return true;
|
|
250
|
-
}
|
|
251
|
-
return 'Please provide value for label';
|
|
219
|
+
validate: value => {
|
|
220
|
+
if (value) {
|
|
221
|
+
return true;
|
|
252
222
|
}
|
|
223
|
+
return 'Please provide value for label';
|
|
253
224
|
}
|
|
254
|
-
]);
|
|
255
|
-
|
|
256
|
-
proceedAs = proceedAnswers.proceedAs;
|
|
257
|
-
|
|
258
|
-
switch (proceedAs) {
|
|
259
|
-
case 'No import':
|
|
260
|
-
// removed copied
|
|
261
|
-
// fs.rmSync(copyDir, { recursive: true, force: true, maxRetries: 2 });
|
|
262
|
-
process.exit();
|
|
263
|
-
break;
|
|
264
|
-
case 'Overwrite':
|
|
265
|
-
// remove existing
|
|
266
|
-
const existingComp = await getComponentDirectoryPath(potentialCompKey);
|
|
267
|
-
fs.rmSync(existingComp, { recursive: true, force: true, maxRetries: 2 });
|
|
268
|
-
break;
|
|
269
|
-
case 'New name':
|
|
270
|
-
newName = proceedAnswers.componentName;
|
|
271
|
-
newLabel = proceedAnswers.componentLabel;
|
|
272
|
-
break;
|
|
273
225
|
}
|
|
226
|
+
]);
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
switch (proceedAnswers.proceedAs) {
|
|
230
|
+
case 'No import':
|
|
231
|
+
// removed copied
|
|
232
|
+
// fs.rmSync(copyDir, { recursive: true, force: true, maxRetries: 2 });
|
|
233
|
+
process.exit();
|
|
234
|
+
break;
|
|
235
|
+
case 'Overwrite':
|
|
236
|
+
// remove existing
|
|
237
|
+
const existingComp = await getComponentDirectoryPath(potentialCompKey);
|
|
238
|
+
fs.rmSync(existingComp, { recursive: true, force: true, maxRetries: 2 });
|
|
239
|
+
break;
|
|
240
|
+
case 'New name':
|
|
241
|
+
newName = proceedAnswers.componentName;
|
|
242
|
+
newLabel = proceedAnswers.componentLabel;
|
|
243
|
+
break;
|
|
274
244
|
}
|
|
275
245
|
|
|
276
|
-
|
|
277
|
-
|
|
278
246
|
}
|
|
279
247
|
}
|
|
280
248
|
|
|
@@ -288,40 +256,31 @@ addDebugLog("importComp", `filePath: ${filePath}, fileName: ${fileName}`, "");
|
|
|
288
256
|
console.log(`\n${chalk.green(`${fileName}`)} has been imported as ${chalk.green(`${newCompKey}`)}\n`);
|
|
289
257
|
|
|
290
258
|
if (askValidate) {
|
|
259
|
+
const validateAnswers = await inquirer.prompt([
|
|
260
|
+
{
|
|
261
|
+
name: 'doValidate',
|
|
262
|
+
type: 'confirm',
|
|
263
|
+
message: `Validate ${chalk.yellow(`${newCompKey}`)}`,
|
|
264
|
+
default: true
|
|
265
|
+
}]);
|
|
266
|
+
|
|
267
|
+
if (validateAnswers.doValidate) {
|
|
268
|
+
const args = [ '','', '', `${newCompKey}`];
|
|
269
|
+
let myOptions = {};
|
|
270
|
+
myOptions["params"] = args;
|
|
271
|
+
|
|
272
|
+
await buildComponent(myOptions);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
291
275
|
|
|
292
|
-
if (useInputConfig) {
|
|
293
|
-
const inputConfig = await getInputConfigForCommand("importComponent");
|
|
294
|
-
if (convertYNToBoolean(inputConfig.doValidation)) {
|
|
295
|
-
const args = [ '','', '', `${newCompKey}`];
|
|
296
|
-
let myOptions = {};
|
|
297
|
-
myOptions["params"] = args;
|
|
298
276
|
|
|
299
|
-
await buildComponent(myOptions);
|
|
300
|
-
}
|
|
301
277
|
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
const validateAnswers = await inquirer.prompt([
|
|
305
|
-
{
|
|
306
|
-
name: 'doValidate',
|
|
307
|
-
type: 'confirm',
|
|
308
|
-
message: `Validate ${chalk.yellow(`${newCompKey}`)}`,
|
|
309
|
-
default: true
|
|
310
|
-
}]);
|
|
311
|
-
|
|
312
|
-
if (validateAnswers.doValidate) {
|
|
313
|
-
const args = [ '','', '', `${newCompKey}`];
|
|
314
|
-
let myOptions = {};
|
|
315
|
-
myOptions["params"] = args;
|
|
316
|
-
|
|
317
|
-
await buildComponent(myOptions);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
}
|
|
322
278
|
|
|
323
279
|
}
|
|
324
280
|
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
325
284
|
}
|
|
326
285
|
|
|
327
286
|
|
|
@@ -366,7 +325,6 @@ export default async options => {
|
|
|
366
325
|
await showVersion();
|
|
367
326
|
await checkLibraryAndArchives();
|
|
368
327
|
await checkPathAccess(pegaConfigJsonPath);
|
|
369
|
-
|
|
370
328
|
const useInputConfig = getUseInputConfig();
|
|
371
329
|
|
|
372
330
|
addDebugLog("importComponent", "", "+");
|
|
@@ -396,11 +354,14 @@ addDebugLog("importComponent", "", "+");
|
|
|
396
354
|
filePath = inputConfig.fileLocation;
|
|
397
355
|
fileName = inputConfig.fileName;
|
|
398
356
|
|
|
357
|
+
await importComp( filePath, fileName, false);
|
|
399
358
|
}
|
|
400
359
|
else {
|
|
360
|
+
inquirer.registerPrompt('fuzzypath', inquirerFuzzyPath);
|
|
361
|
+
|
|
401
362
|
const filePathQuestions = await getFilePathQuestions();
|
|
402
363
|
const filePathAnswers = await inquirer.prompt(filePathQuestions);
|
|
403
|
-
|
|
364
|
+
const { filePath } = filePathAnswers;
|
|
404
365
|
|
|
405
366
|
const compFileList = await getComponentList(filePath);
|
|
406
367
|
|
|
@@ -413,13 +374,13 @@ addDebugLog("importComponent", "", "+");
|
|
|
413
374
|
|
|
414
375
|
const fileNameQuestions = await getFileNameQuestions(compFileList);
|
|
415
376
|
const fileNameAnswers = await inquirer.prompt(fileNameQuestions);
|
|
416
|
-
|
|
377
|
+
const {fileName} = fileNameAnswers;
|
|
417
378
|
|
|
379
|
+
await importComp( filePath, fileName, true);
|
|
418
380
|
}
|
|
419
381
|
|
|
420
382
|
|
|
421
383
|
|
|
422
|
-
await importComp( filePath, fileName, true);
|
|
423
384
|
|
|
424
385
|
}
|
|
425
386
|
|
package/src/tasks/index.js
CHANGED
|
@@ -38,3 +38,4 @@ export { default as buildAllComponents } from './build-all/index.js';
|
|
|
38
38
|
export { default as buildLibrary } from './build-lib/index.js';
|
|
39
39
|
export { default as buildJestAssets } from './build-jest-assets/index.js';
|
|
40
40
|
export { default as restoreConfig } from './restore-config/index.js';
|
|
41
|
+
export { default as restore } from './restore/index.js';
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
// rules for typescript (keeping old rules for js)
|
|
194
194
|
"files": "*.@(ts|tsx)",
|
|
195
195
|
"rules": {
|
|
196
|
-
"no-undef": "
|
|
196
|
+
"no-undef": "error",
|
|
197
197
|
"no-console": "off",
|
|
198
198
|
"import/prefer-default-export": "off",
|
|
199
199
|
"import/no-relative-packages": "off",
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const config = {
|
|
1
|
+
import type { StorybookConfig } from '@storybook/react-vite';
|
|
2
|
+
const config: StorybookConfig = {
|
|
3
3
|
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
4
4
|
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
|
|
5
5
|
framework: {
|
|
6
|
-
name: '@storybook/react-
|
|
6
|
+
name: '@storybook/react-vite',
|
|
7
|
+
options: {}
|
|
7
8
|
},
|
|
8
9
|
docs: {
|
|
9
10
|
autodocs: 'tag'
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Preview } from '@storybook/react';
|
|
2
|
+
import Theme from './theme';
|
|
3
|
+
|
|
2
4
|
import {
|
|
3
5
|
Configuration,
|
|
4
6
|
LiveLog,
|
|
@@ -18,7 +20,8 @@ const preview: Preview = {
|
|
|
18
20
|
}
|
|
19
21
|
},
|
|
20
22
|
docs: {
|
|
21
|
-
source: { type: 'code' }
|
|
23
|
+
source: { type: 'code' },
|
|
24
|
+
theme: Theme
|
|
22
25
|
}
|
|
23
26
|
},
|
|
24
27
|
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
1
|
+
module.exports = function (api) {
|
|
2
|
+
api.cache(true);
|
|
3
|
+
const presets = [
|
|
3
4
|
[
|
|
4
|
-
'@babel/preset-
|
|
5
|
+
'@babel/preset-env',
|
|
5
6
|
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
targets: {
|
|
8
|
+
esmodules: true,
|
|
9
|
+
node: true
|
|
10
|
+
}
|
|
9
11
|
}
|
|
10
|
-
]
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
],
|
|
13
|
+
'@babel/preset-typescript',
|
|
14
|
+
['@babel/preset-react', { runtime: 'automatic' }]
|
|
15
|
+
];
|
|
16
|
+
const plugins = [];
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
presets,
|
|
20
|
+
plugins
|
|
21
|
+
};
|
|
13
22
|
};
|
|
@@ -1,15 +1,38 @@
|
|
|
1
|
+
const packagesToTranspile = [
|
|
2
|
+
'@pega/cosmos-react-condition-builder',
|
|
3
|
+
'@pega/cosmos-react-core',
|
|
4
|
+
'@pega/cosmos-react-social',
|
|
5
|
+
'@pega/cosmos-react-rte',
|
|
6
|
+
'@pega/cosmos-react-work',
|
|
7
|
+
'shortcuts',
|
|
8
|
+
'preact'
|
|
9
|
+
];
|
|
10
|
+
const packagesToTranspileStr = packagesToTranspile.map(p => `${p}`).join('|');
|
|
11
|
+
|
|
1
12
|
module.exports = {
|
|
2
13
|
verbose: true,
|
|
14
|
+
// preset: 'ts-jest/presets/default-esm',
|
|
15
|
+
preset: 'ts-jest',
|
|
16
|
+
extensionsToTreatAsEsm: ['.ts', '.tsx'],
|
|
3
17
|
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'],
|
|
4
18
|
transform: {
|
|
5
|
-
'^.+\\.
|
|
19
|
+
'^.+\\.(js|jsx|ts|tsx)?$': ['ts-jest', { useESM: true }]
|
|
6
20
|
},
|
|
21
|
+
moduleNameMapper: {
|
|
22
|
+
shortcuts: '<rootDir>/node_modules/shortcuts/dist/index.js'
|
|
23
|
+
},
|
|
24
|
+
moduleDirectories: ['node_modules', 'src'],
|
|
7
25
|
collectCoverage: true,
|
|
8
|
-
testPathIgnorePatterns: [],
|
|
26
|
+
testPathIgnorePatterns: ['./dist'],
|
|
9
27
|
transformIgnorePatterns: [],
|
|
10
28
|
modulePathIgnorePatterns: [],
|
|
11
29
|
coveragePathIgnorePatterns: [],
|
|
12
|
-
|
|
30
|
+
setupFiles: ['./setupFiles.ts'],
|
|
31
|
+
setupFilesAfterEnv: ['./setupTests.ts'],
|
|
32
|
+
collectCoverageFrom: [
|
|
33
|
+
'./node_modules/@pega/custom-dx-components/src/*.js',
|
|
34
|
+
'!**/*.(test|stories).{ts,tsx,js,jsx}'
|
|
35
|
+
],
|
|
13
36
|
coverageThreshold: {
|
|
14
37
|
global: {
|
|
15
38
|
statements: 79,
|
|
@@ -17,5 +40,7 @@ module.exports = {
|
|
|
17
40
|
functions: 81,
|
|
18
41
|
lines: 80
|
|
19
42
|
}
|
|
20
|
-
}
|
|
43
|
+
},
|
|
44
|
+
testEnvironment: 'jsdom',
|
|
45
|
+
transformIgnorePatterns: [`node_modules/(?!(${packagesToTranspileStr}))`]
|
|
21
46
|
};
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"_***Component_and_Library_mode***": "Component and library mode commands",
|
|
10
|
+
"test": "jest",
|
|
11
|
+
"coverage": "jest --coverage --coverageReporters=html",
|
|
10
12
|
"startStorybook": "storybook dev --port 6040 --quiet",
|
|
11
13
|
"lint": "eslint .",
|
|
12
14
|
"authenticate": "custom-dx-components authenticate",
|
|
@@ -27,7 +29,7 @@
|
|
|
27
29
|
"publishAll": "custom-dx-components publishAll",
|
|
28
30
|
"promoteWebPack": "custom-dx-components promoteWebPack",
|
|
29
31
|
"revertWebPack": "custom-dx-components revertWebPack",
|
|
30
|
-
"_***Library_mode_only***": "Library mode only commands
|
|
32
|
+
"_***Library_mode_only***": "Library CL mode only commands",
|
|
31
33
|
"createLib": "custom-dx-components createLibrary",
|
|
32
34
|
"switchLib": "custom-dx-components switchLibrary",
|
|
33
35
|
"createLibVersion": "custom-dx-components createVersion",
|
|
@@ -39,6 +41,7 @@
|
|
|
39
41
|
"deleteLibVersion": "custom-dx-components deleteVersion",
|
|
40
42
|
"move": "custom-dx-components moveComponent",
|
|
41
43
|
"publishLibVersion": "custom-dx-components publish",
|
|
44
|
+
"restoreLibVersion": "custom-dx-components restore",
|
|
42
45
|
"storeLibVersion": "custom-dx-components storeComponents",
|
|
43
46
|
"showStatus": "custom-dx-components showStatus",
|
|
44
47
|
"setPermanent": "custom-dx-components setPermanent",
|
|
@@ -78,64 +81,80 @@
|
|
|
78
81
|
"author": "",
|
|
79
82
|
"license": "Enter License",
|
|
80
83
|
"dependencies": {
|
|
81
|
-
"@pega/cosmos-react-condition-builder": "^
|
|
82
|
-
"@pega/cosmos-react-core": "^
|
|
83
|
-
"@pega/cosmos-react-work": "^
|
|
84
|
-
"@pega/eslint-config": "^0.
|
|
85
|
-
"@pega/tsconfig": "^0.
|
|
86
|
-
"babel-loader": "^
|
|
87
|
-
"dayjs": "^1.11.
|
|
84
|
+
"@pega/cosmos-react-condition-builder": "^8.0.0-build.39.7",
|
|
85
|
+
"@pega/cosmos-react-core": "^8.0.0-build.39.7",
|
|
86
|
+
"@pega/cosmos-react-work": "^8.0.0-build.39.7",
|
|
87
|
+
"@pega/eslint-config": "^0.16.3",
|
|
88
|
+
"@pega/tsconfig": "^0.16.3",
|
|
89
|
+
"babel-loader": "^10.0.0",
|
|
90
|
+
"dayjs": "^1.11.13",
|
|
88
91
|
"fast-deep-equal": "3.1.3",
|
|
89
92
|
"lodash": "^4.17.21",
|
|
90
93
|
"lodash.get": "^4.4.2",
|
|
91
94
|
"npm": "^10.8.1",
|
|
92
|
-
"react": "^
|
|
95
|
+
"react": "^18.3.1",
|
|
93
96
|
"react-autosuggest": "^10.1.0",
|
|
94
|
-
"react-dom": "^
|
|
97
|
+
"react-dom": "^18.3.1",
|
|
95
98
|
"react-is": "^18.3.1",
|
|
96
99
|
"react-redux": "^7.2.9",
|
|
97
|
-
"serve": "^14.2.
|
|
100
|
+
"serve": "^14.2.4",
|
|
98
101
|
"shelljs": "^0.8.5",
|
|
99
102
|
"styled-components": "^5.3.11",
|
|
100
|
-
"ts-loader": "^9.5.
|
|
103
|
+
"ts-loader": "^9.5.2"
|
|
101
104
|
},
|
|
102
105
|
"devDependencies": {
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@
|
|
107
|
-
"@
|
|
108
|
-
"@
|
|
109
|
-
"@storybook/addon-
|
|
110
|
-
"@storybook/
|
|
111
|
-
"@storybook/
|
|
112
|
-
"@storybook/
|
|
106
|
+
"@babel/preset-env": "^7.27.2",
|
|
107
|
+
"@babel/preset-react": "^7.27.1",
|
|
108
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
109
|
+
"@pega/configs": "^0.16.3",
|
|
110
|
+
"@pega/custom-dx-components": "~25.1.10-alpha-0.1",
|
|
111
|
+
"@pega/pcore-pconnect-typedefs": "^4.1.0-alpha.1",
|
|
112
|
+
"@storybook/addon-actions": "^8.6.12",
|
|
113
|
+
"@storybook/addon-essentials": "^8.6.12",
|
|
114
|
+
"@storybook/addon-links": "^8.6.12",
|
|
115
|
+
"@storybook/addon-storysource": "^8.6.12",
|
|
116
|
+
"@storybook/manager-api": "^8.6.12",
|
|
117
|
+
"@storybook/react": "^8.6.12",
|
|
118
|
+
"@storybook/react-vite": "^8.6.12",
|
|
119
|
+
"@storybook/react-webpack5": "^8.6.12",
|
|
120
|
+
"@storybook/test": "^8.6.12",
|
|
121
|
+
"@storybook/test-runner": "^0.22.0",
|
|
122
|
+
"@storybook/theming": "^8.6.12",
|
|
123
|
+
"@testing-library/dom": "^10.4.0",
|
|
124
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
125
|
+
"@testing-library/react": "^12.1.5",
|
|
113
126
|
"@types/emoji-mart": "^3.0.14",
|
|
127
|
+
"@types/jest": "^29.5.14",
|
|
114
128
|
"@types/lodash.get": "^4.4.9",
|
|
115
|
-
"@types/react": "^
|
|
116
|
-
"@types/react-color": "^3.0.
|
|
117
|
-
"@types/react-dom": "^
|
|
129
|
+
"@types/react": "^18.3.21",
|
|
130
|
+
"@types/react-color": "^3.0.13",
|
|
131
|
+
"@types/react-dom": "^18.3.7",
|
|
118
132
|
"@types/styled-components": "^5.1.34",
|
|
119
133
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
120
|
-
"
|
|
134
|
+
"core-js": "^3.42.0",
|
|
121
135
|
"eslint": "^8.57.0",
|
|
122
136
|
"eslint-plugin-import": "^2.31.0",
|
|
123
|
-
"eslint-plugin-jest": "^28.
|
|
124
|
-
"eslint-plugin-jsx-a11y": "^6.10.
|
|
125
|
-
"eslint-plugin-mdx": "^3.1
|
|
126
|
-
"eslint-plugin-prettier": "^5.
|
|
127
|
-
"eslint-plugin-react": "^7.37.
|
|
137
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
138
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
139
|
+
"eslint-plugin-mdx": "^3.4.1",
|
|
140
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
141
|
+
"eslint-plugin-react": "^7.37.5",
|
|
128
142
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
129
143
|
"eslint-plugin-sonarjs": "^0.23.0",
|
|
130
144
|
"eslint-plugin-storybook": "^0.6.15",
|
|
145
|
+
"esm": "^3.2.25",
|
|
131
146
|
"jest": "^29.7.0",
|
|
147
|
+
"jest-canvas-mock": "^2.5.2",
|
|
132
148
|
"jest-environment-jsdom": "^29.7.0",
|
|
133
149
|
"jest-junit": "^16.0.0",
|
|
134
150
|
"jwt-decode": "^4.0.0",
|
|
151
|
+
"node-stream-zip": "^1.15.0",
|
|
135
152
|
"npm-run-all": "^4.1.5",
|
|
136
|
-
"prettier": "3.
|
|
137
|
-
"storybook": "^
|
|
138
|
-
"stylelint": "^16.
|
|
139
|
-
"
|
|
153
|
+
"prettier": "3.5.3",
|
|
154
|
+
"storybook": "^8.6.12",
|
|
155
|
+
"stylelint": "^16.19.1",
|
|
156
|
+
"ts-jest": "^29.3.2",
|
|
157
|
+
"typescript": "~5.5.4",
|
|
158
|
+
"vite": "^6.3.5"
|
|
140
159
|
}
|
|
141
160
|
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { configure } from '@testing-library/react';
|
|
2
|
+
import '@testing-library/jest-dom';
|
|
3
|
+
import 'jest-canvas-mock';
|
|
4
|
+
|
|
5
|
+
// Wait time needed
|
|
6
|
+
const TIMEOUT = 300000;
|
|
7
|
+
|
|
8
|
+
// mocks open
|
|
9
|
+
global.open = jest.fn();
|
|
10
|
+
|
|
11
|
+
global.fetch = jest.fn(() =>
|
|
12
|
+
Promise.resolve({
|
|
13
|
+
json: () => Promise.resolve(() => 'xxx'),
|
|
14
|
+
arrayBuffer: () => Promise.resolve(() => 'yyy')
|
|
15
|
+
})
|
|
16
|
+
) as jest.Mock;
|
|
17
|
+
|
|
18
|
+
window.URL.createObjectURL = jest.fn();
|
|
19
|
+
|
|
20
|
+
// mocks ResizeObserver
|
|
21
|
+
window.ResizeObserver = jest.fn(() => ({
|
|
22
|
+
observe: () => {},
|
|
23
|
+
unobserve: () => {},
|
|
24
|
+
disconnect: () => {}
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
// mocks IntersectionObserver
|
|
28
|
+
window.IntersectionObserver = jest.fn(() => ({
|
|
29
|
+
root: null,
|
|
30
|
+
rootMargin: '0',
|
|
31
|
+
thresholds: [],
|
|
32
|
+
takeRecords: () => [],
|
|
33
|
+
observe: () => {},
|
|
34
|
+
unobserve: () => {},
|
|
35
|
+
disconnect: () => {}
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
Object.defineProperty(window, 'matchMedia', {
|
|
39
|
+
writable: true,
|
|
40
|
+
value: jest.fn().mockImplementation(query => ({
|
|
41
|
+
matches: false,
|
|
42
|
+
media: query,
|
|
43
|
+
onchange: null,
|
|
44
|
+
addListener: jest.fn(), // Deprecated
|
|
45
|
+
removeListener: jest.fn(), // Deprecated
|
|
46
|
+
addEventListener: jest.fn(),
|
|
47
|
+
removeEventListener: jest.fn(),
|
|
48
|
+
dispatchEvent: jest.fn()
|
|
49
|
+
}))
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
// // mocks createSVGPoint
|
|
53
|
+
// Object.defineProperty(global.SVGSVGElement.prototype, 'createSVGPoint', {
|
|
54
|
+
// writable: true,
|
|
55
|
+
// value: jest.fn().mockImplementation(() => ({
|
|
56
|
+
// x: 0,
|
|
57
|
+
// y: 0,
|
|
58
|
+
// matrixTransform: jest.fn().mockImplementation(() => ({
|
|
59
|
+
// x: 0,
|
|
60
|
+
// y: 0
|
|
61
|
+
// }))
|
|
62
|
+
// }))
|
|
63
|
+
// });
|
|
64
|
+
|
|
65
|
+
// // mocks getBBox on SVGTextElement
|
|
66
|
+
// (global.SVGElement.prototype as any).getBBox = () => {
|
|
67
|
+
// return {
|
|
68
|
+
// x: 0,
|
|
69
|
+
// y: 0,
|
|
70
|
+
// width: 30,
|
|
71
|
+
// height: 15,
|
|
72
|
+
// bottom: 0,
|
|
73
|
+
// left: 0,
|
|
74
|
+
// right: 0,
|
|
75
|
+
// top: 0,
|
|
76
|
+
// toJSON: () => ''
|
|
77
|
+
// };
|
|
78
|
+
// };
|
|
79
|
+
|
|
80
|
+
// // Mocks the window.matchMedia function used in useBreakpoint hook
|
|
81
|
+
// Object.defineProperty(window, 'matchMedia', {
|
|
82
|
+
// writable: true,
|
|
83
|
+
// value: jest.fn().mockImplementation(query => ({
|
|
84
|
+
// matches: false,
|
|
85
|
+
// media: query,
|
|
86
|
+
// onchange: null,
|
|
87
|
+
// addListener: jest.fn(),
|
|
88
|
+
// removeListener: jest.fn(),
|
|
89
|
+
// addEventListener: jest.fn(),
|
|
90
|
+
// removeEventListener: jest.fn(),
|
|
91
|
+
// dispatchEvent: jest.fn()
|
|
92
|
+
// }))
|
|
93
|
+
// });
|
|
94
|
+
|
|
95
|
+
// jest.setTimeout(TIMEOUT);
|
|
96
|
+
|
|
97
|
+
// // speeds up *ByRole queries a bit
|
|
98
|
+
// // https://github.com/testing-library/dom-testing-library/issues/552
|
|
99
|
+
// configure({ defaultHidden: true });
|