@pega/custom-dx-components 24.2.15 → 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 +468 -116
- 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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const { Base{{COMPONENT_CLASS_NAME}} } = composeStories(DemoStories);
|
|
11
|
+
|
|
12
|
+
test('renders {{COMPONENT_CLASS_NAME}}', async () => {
|
|
13
|
+
render(<Base{{COMPONENT_CLASS_NAME}} />);
|
|
14
|
+
|
|
15
|
+
const caseHistoryArr = await screen.findAllByText('Case history');
|
|
16
|
+
expect(caseHistoryArr[0]).toBeVisible();
|
|
17
|
+
expect(caseHistoryArr[1]).toBeVisible();
|
|
18
|
+
|
|
19
|
+
expect(await screen.findByText('Date')).toBeVisible();
|
|
20
|
+
expect(await screen.findByText('Description')).toBeVisible();
|
|
21
|
+
expect(await screen.findByText('Performed by')).toBeVisible();
|
|
22
|
+
|
|
23
|
+
const peformedArr = await screen.findAllByText('User DigV2');
|
|
24
|
+
expect(peformedArr[0]).toBeVisible();
|
|
25
|
+
expect(peformedArr[1]).toBeVisible();
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
});
|
|
@@ -49,11 +49,13 @@ window.PCore.getDataApiUtils = () => {
|
|
|
49
49
|
return {
|
|
50
50
|
getData: () => {
|
|
51
51
|
return new Promise(resolve => {
|
|
52
|
+
// @ts-ignore
|
|
52
53
|
resolve(worklistData);
|
|
53
54
|
});
|
|
54
55
|
},
|
|
55
56
|
getDataAsync: () => {
|
|
56
57
|
return new Promise(resolve => {
|
|
58
|
+
// @ts-ignore
|
|
57
59
|
resolve(worklistData);
|
|
58
60
|
});
|
|
59
61
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const { Base{{COMPONENT_CLASS_NAME}} } = composeStories(DemoStories);
|
|
11
|
+
|
|
12
|
+
test('renders {{COMPONENT_CLASS_NAME}}', async () => {
|
|
13
|
+
render(<Base{{COMPONENT_CLASS_NAME}} />);
|
|
14
|
+
expect(await screen.findByText('Announcements')).toBeVisible();
|
|
15
|
+
expect(await screen.findByText("See what's new")).toBeVisible();
|
|
16
|
+
expect(
|
|
17
|
+
await screen.findByText('Welcome to MediaCo Application for testing SDK frameworks.')
|
|
18
|
+
).toBeVisible();
|
|
19
|
+
|
|
20
|
+
const workListArr = screen.getAllByText('Work list');
|
|
21
|
+
expect(workListArr[0]).toBeVisible();
|
|
22
|
+
expect(workListArr[1]).toBeInTheDocument();
|
|
23
|
+
|
|
24
|
+
expect(await screen.findByText('Case type')).toBeVisible();
|
|
25
|
+
expect(await screen.findByText('Key')).toBeVisible();
|
|
26
|
+
expect(await screen.findByText('Status')).toBeVisible();
|
|
27
|
+
expect(await screen.findByText('Stage')).toBeVisible();
|
|
28
|
+
|
|
29
|
+
expect(await screen.findByText('A-8002')).toBeVisible();
|
|
30
|
+
expect(await screen.findByText('A-7001')).toBeVisible();
|
|
31
|
+
expect(await screen.findByText('A-9000')).toBeVisible();
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// import { expect, test } from '@jest/globals';
|
|
2
|
+
import { render, screen } from '@testing-library/react';
|
|
3
|
+
import { composeStories } from '@storybook/react';
|
|
4
|
+
import '@testing-library/jest-dom';
|
|
5
|
+
|
|
6
|
+
import * as DemoStories from './demo.stories';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const { Base{{COMPONENT_CLASS_NAME}} } = composeStories(DemoStories);
|
|
11
|
+
|
|
12
|
+
test('renders {{COMPONENT_CLASS_NAME}}', async () => {
|
|
13
|
+
render(<Base{{COMPONENT_CLASS_NAME}} />);
|
|
14
|
+
expect(await screen.findByText('Create operator')).toBeVisible();
|
|
15
|
+
expect(await screen.findByText('Created')).toBeVisible();
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
});
|
|
@@ -23,7 +23,8 @@ import { checkPathAccess, showVersion ,
|
|
|
23
23
|
getLibraryBased,
|
|
24
24
|
addDebugLog,
|
|
25
25
|
checkLibraryAndArchives,
|
|
26
|
-
getConfigDefaults
|
|
26
|
+
getConfigDefaults,
|
|
27
|
+
getSubTypeLabel
|
|
27
28
|
} from '../../util.js';
|
|
28
29
|
|
|
29
30
|
import { COMPONENT_SCHEMA, COMPONENTS_DIRECTORY_PATH, TASKS_CONFIG_JSON_FILENAME, COMPONENTS_PATH, CATEGORY_CONSTELLATION, SHARED_FILE_NAMES } from '../../constants.js';
|
|
@@ -113,6 +114,8 @@ export const compileMustacheTemplates = async (
|
|
|
113
114
|
files.forEach((file) => {
|
|
114
115
|
const filePath = path.join(componentDirectory, file);
|
|
115
116
|
|
|
117
|
+
const subTypeLabel = getSubTypeLabel(type, subtype).toString();
|
|
118
|
+
|
|
116
119
|
const output = compileMustacheTemplate(filePath, {
|
|
117
120
|
COMPONENT_KEY: componentKey,
|
|
118
121
|
COMPONENT_NAME: componentName,
|
|
@@ -124,6 +127,7 @@ export const compileMustacheTemplates = async (
|
|
|
124
127
|
ALLOWEDAPPS: JSON.stringify(allowedApplications),
|
|
125
128
|
TYPE: type,
|
|
126
129
|
SUB_TYPE: JSON.stringify(mustacheSubType),
|
|
130
|
+
SUB_TYPE_LABEL: subTypeLabel,
|
|
127
131
|
DESCRIPTION: description,
|
|
128
132
|
IS_TEMPLATE: isTemplate,
|
|
129
133
|
IS_PICKLIST: isPicklist,
|
|
@@ -8,7 +8,8 @@ import {
|
|
|
8
8
|
addDebugLog,
|
|
9
9
|
getConfigDefaults,
|
|
10
10
|
getComponents,
|
|
11
|
-
updateConfigVersion
|
|
11
|
+
updateConfigVersion,
|
|
12
|
+
getLibraryBasedCL
|
|
12
13
|
} from '../../util.js';
|
|
13
14
|
|
|
14
15
|
|
|
@@ -59,6 +60,8 @@ addDebugLog("getCreateLibComponentQuestions", "", "");
|
|
|
59
60
|
const archDirectories = await getLibraryArchiveDirectories();
|
|
60
61
|
const orgLib = getConfigDefaults();
|
|
61
62
|
|
|
63
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
64
|
+
|
|
62
65
|
|
|
63
66
|
return [
|
|
64
67
|
{
|
|
@@ -106,7 +109,8 @@ addDebugLog("getCreateLibComponentQuestions", "", "");
|
|
|
106
109
|
name: 'permBuild',
|
|
107
110
|
type: 'confirm',
|
|
108
111
|
message: `Version to be ${chalk.bold.yellow('PERMANENT')} upon publish `,
|
|
109
|
-
default: false
|
|
112
|
+
default: false,
|
|
113
|
+
when: () => !isLibraryBasedCL
|
|
110
114
|
}
|
|
111
115
|
];
|
|
112
116
|
};
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
updateComponentDefaultLibrary,
|
|
9
9
|
updateComponentDefaultVersion,
|
|
10
10
|
getLibraryBased,
|
|
11
|
+
getLibraryBasedCL,
|
|
11
12
|
addDebugLog,
|
|
12
13
|
zipVersionAndArchive,
|
|
13
14
|
hasArchives,
|
|
@@ -18,6 +19,7 @@ import {
|
|
|
18
19
|
cleanUpTemp,
|
|
19
20
|
restoreTopLevelConfigFilesFromTemplate,
|
|
20
21
|
getHaveDependencyDifference,
|
|
22
|
+
setConfigDevBuild,
|
|
21
23
|
getUseInputConfig,
|
|
22
24
|
getInputConfigForCommand,
|
|
23
25
|
convertYNToBoolean
|
|
@@ -28,6 +30,7 @@ import { showCurrentStatus } from '../show-status/index.js';
|
|
|
28
30
|
|
|
29
31
|
export default async options => {
|
|
30
32
|
const isLibraryBased = getLibraryBased();
|
|
33
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
31
34
|
const useInputConfig = getUseInputConfig();
|
|
32
35
|
if (!isLibraryBased) {
|
|
33
36
|
console.log(`Command only supported for ${chalk.bold.green('library based')} components.`);
|
|
@@ -37,8 +40,7 @@ export default async options => {
|
|
|
37
40
|
await showVersion();
|
|
38
41
|
await cleanUpTemp();
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
// if we have choosen to use INPUT CONFIG FILE
|
|
43
|
+
// if we have choosen to use INPUT CONFIG FILE
|
|
42
44
|
// process and exit
|
|
43
45
|
if (useInputConfig) {
|
|
44
46
|
const inputConfig = await getInputConfigForCommand("createLib");
|
|
@@ -48,8 +50,7 @@ export default async options => {
|
|
|
48
50
|
let version = inputConfig.libraryVersion;
|
|
49
51
|
const currentOrOriginal = inputConfig.currentOrOriginal;
|
|
50
52
|
const isPermanent = inputConfig.isPermanent;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
let permBuild = convertYNToBoolean(isPermanent);
|
|
53
54
|
|
|
54
55
|
// if have store, then that means there is a current library, so
|
|
55
56
|
// store it before clearing out /src/components
|
|
@@ -73,6 +74,13 @@ export default async options => {
|
|
|
73
74
|
|
|
74
75
|
}
|
|
75
76
|
|
|
77
|
+
if (isLibraryBasedCL) {
|
|
78
|
+
// no -dev for PegaInfinity
|
|
79
|
+
permBuild = true;
|
|
80
|
+
}
|
|
81
|
+
// await setConfigDevBuild(!permBuild);
|
|
82
|
+
|
|
83
|
+
|
|
76
84
|
if (!permBuild) {
|
|
77
85
|
version = version.concat("-dev");
|
|
78
86
|
}
|
|
@@ -119,7 +127,6 @@ export default async options => {
|
|
|
119
127
|
addDebugLog("createLibrary", "", "+");
|
|
120
128
|
let libraryName = "";
|
|
121
129
|
let version;
|
|
122
|
-
|
|
123
130
|
// permBuild is the opposite of devBuild
|
|
124
131
|
let permBuild;
|
|
125
132
|
const orgLib = getConfigDefaults();
|
|
@@ -159,6 +166,11 @@ addDebugLog("createLibrary", "", "+");
|
|
|
159
166
|
({ libraryName, version, permBuild } = answers);
|
|
160
167
|
}
|
|
161
168
|
|
|
169
|
+
if (isLibraryBasedCL) {
|
|
170
|
+
// no -dev for PegaInfinity
|
|
171
|
+
permBuild = true;
|
|
172
|
+
}
|
|
173
|
+
await setConfigDevBuild(!permBuild);
|
|
162
174
|
|
|
163
175
|
|
|
164
176
|
// if have store, then that means there is a current library, so
|
|
@@ -199,7 +211,7 @@ addDebugLog("createLibrary", "", "+");
|
|
|
199
211
|
const currAnswers = await inquirer.prompt(curOrgQuestion);
|
|
200
212
|
({ currentOrOriginal } = currAnswers);
|
|
201
213
|
}
|
|
202
|
-
else {
|
|
214
|
+
else if (!hasArch && currentOrOriginal === "") {
|
|
203
215
|
currentOrOriginal = 'Original';
|
|
204
216
|
}
|
|
205
217
|
|
|
@@ -80,3 +80,33 @@ addDebugLog("getCreateVersionComponentQuestions", "", "");
|
|
|
80
80
|
},
|
|
81
81
|
];
|
|
82
82
|
};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
export const getCreateVersionComponentCLQuestions = async () => {
|
|
86
|
+
addDebugLog("getCreateVersionComponentCLQuestions", "", "");
|
|
87
|
+
const componentDefaults = getConfigDefaults();
|
|
88
|
+
|
|
89
|
+
// increment the version
|
|
90
|
+
const incrVersion = await getNextVersion();
|
|
91
|
+
console.log(`\nCurrent library: ${chalk.green(`${componentDefaults.currentOrgLib}`)}`);
|
|
92
|
+
|
|
93
|
+
return [
|
|
94
|
+
{
|
|
95
|
+
name: 'version',
|
|
96
|
+
message: 'Enter version ',
|
|
97
|
+
default: incrVersion,
|
|
98
|
+
validate: value => {
|
|
99
|
+
if (validateSemver(value)) {
|
|
100
|
+
return true;
|
|
101
|
+
}
|
|
102
|
+
return 'Please provide semver compatible version e.g 0.0.1';
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'copyExisting',
|
|
107
|
+
type: 'confirm',
|
|
108
|
+
message: 'Copy current components to new version ?',
|
|
109
|
+
default: true
|
|
110
|
+
},
|
|
111
|
+
];
|
|
112
|
+
};
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
showVersion,
|
|
11
11
|
updateComponentDefaultVersion,
|
|
12
12
|
getLibraryBased,
|
|
13
|
+
getLibraryBasedCL,
|
|
13
14
|
addDebugLog,
|
|
14
15
|
zipVersionAndArchive,
|
|
15
16
|
setConfigDevBuild,
|
|
@@ -25,11 +26,12 @@ import {
|
|
|
25
26
|
hasLibraryAndVersion
|
|
26
27
|
} from '../../util.js';
|
|
27
28
|
|
|
28
|
-
import { getCreateVersionComponentQuestions, updateAllComponentsConfig } from './helper.js';
|
|
29
|
+
import { getCreateVersionComponentQuestions, updateAllComponentsConfig, getCreateVersionComponentCLQuestions } from './helper.js';
|
|
29
30
|
import { showCurrentStatus } from '../show-status/index.js';
|
|
30
31
|
|
|
31
32
|
export default async options => {
|
|
32
33
|
const isLibraryBased = getLibraryBased();
|
|
34
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
33
35
|
const useInputConfig = getUseInputConfig();
|
|
34
36
|
|
|
35
37
|
if (!isLibraryBased) {
|
|
@@ -41,8 +43,6 @@ export default async options => {
|
|
|
41
43
|
await checkLibraryAndArchives();
|
|
42
44
|
await cleanUpTemp();
|
|
43
45
|
|
|
44
|
-
|
|
45
|
-
|
|
46
46
|
addDebugLog("createVersion", "", "+");
|
|
47
47
|
let libraryName;
|
|
48
48
|
let version;
|
|
@@ -54,7 +54,7 @@ addDebugLog("createVersion", "", "+");
|
|
|
54
54
|
const currentDirectory = process.cwd();
|
|
55
55
|
const componentDirectory = join (currentDirectory, "src", "components");
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
// if we have choosen to use INPUT CONFIG FILE
|
|
58
58
|
// process and no inputs
|
|
59
59
|
if (useInputConfig) {
|
|
60
60
|
const inputConfig = await getInputConfigForCommand("createLibVersion");
|
|
@@ -65,6 +65,11 @@ addDebugLog("createVersion", "", "+");
|
|
|
65
65
|
permBuild = convertYNToBoolean(isPermanent);
|
|
66
66
|
copyExisting = convertYNToBoolean(inputConfig.copyComponents);
|
|
67
67
|
|
|
68
|
+
if (isLibraryBasedCL) {
|
|
69
|
+
// no -dev for PegaInfinity
|
|
70
|
+
permBuild = true;
|
|
71
|
+
}
|
|
72
|
+
|
|
68
73
|
const hasArch = await hasArchives();
|
|
69
74
|
const orgLib = getConfigDefaults();
|
|
70
75
|
const hasLib = await hasLibraryAndVersion(orgLib.library, version, !permBuild);
|
|
@@ -105,17 +110,31 @@ addDebugLog("createVersion", "", "+");
|
|
|
105
110
|
copyExisting = !!(copyExist === 'Y' || copyExist === 'y' || copyExist === true || copyExist === 'true');
|
|
106
111
|
|
|
107
112
|
} else {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
113
|
+
if (isLibraryBasedCL) {
|
|
114
|
+
const questions = await getCreateVersionComponentCLQuestions();
|
|
115
|
+
const answers = await inquirer.prompt(questions);
|
|
116
|
+
({ version, copyExisting } = answers);
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
const questions = await getCreateVersionComponentQuestions();
|
|
120
|
+
const answers = await inquirer.prompt(questions);
|
|
121
|
+
({ version, permBuild, copyExisting } = answers);
|
|
122
|
+
}
|
|
123
|
+
|
|
111
124
|
}
|
|
112
125
|
}
|
|
113
126
|
|
|
127
|
+
|
|
128
|
+
if (isLibraryBasedCL) {
|
|
129
|
+
// no -dev for PegaInfinity
|
|
130
|
+
permBuild = true;
|
|
131
|
+
}
|
|
132
|
+
|
|
114
133
|
const orgLib = getConfigDefaults();
|
|
115
134
|
const savedNewVersion = version;
|
|
116
135
|
const existingOrgLib = orgLib.currentOrgLib;
|
|
117
136
|
let oldVersion = componentDefaults.version;
|
|
118
|
-
if (componentDefaults.devBuild) {
|
|
137
|
+
if (componentDefaults.devBuild && !isLibraryBasedCL) {
|
|
119
138
|
oldVersion = oldVersion.concat("-dev");
|
|
120
139
|
}
|
|
121
140
|
|
|
@@ -13,8 +13,8 @@ import {
|
|
|
13
13
|
getComponents,
|
|
14
14
|
getPegaServerConfig,
|
|
15
15
|
standardizeStr,
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
addDebugLog,
|
|
17
|
+
checkAccessTokenExpiration
|
|
18
18
|
} from '../../util.js';
|
|
19
19
|
import { getComponentsFromServer } from '../list/helper.js';
|
|
20
20
|
|
|
@@ -137,6 +137,10 @@ addDebugLog("deleteServerComponents", `sourceOfComponents: ${sourceOfComponents}
|
|
|
137
137
|
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
138
138
|
const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
|
|
139
139
|
|
|
140
|
+
if (!isLaunchpad) {
|
|
141
|
+
await checkAccessTokenExpiration();
|
|
142
|
+
}
|
|
143
|
+
|
|
140
144
|
|
|
141
145
|
if (isLaunchpad) {
|
|
142
146
|
const questions = await getLaunchPadFilterQuestions();
|
|
@@ -2,7 +2,11 @@ import inquirer from 'inquirer';
|
|
|
2
2
|
|
|
3
3
|
import { showVersion, getLibraryBased, addDebugLog, checkLibraryAndArchives } from '../../util.js';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
deleteLocalComponents,
|
|
7
|
+
SOURCE_OF_COMPONENT_TYPES,
|
|
8
|
+
deleteServerComponents,
|
|
9
|
+
getDeleteComponentsQuestions } from './helper.js';
|
|
6
10
|
|
|
7
11
|
|
|
8
12
|
const deleteComponentsFn = async (sourceOfComponents, answers, options) => {
|
|
@@ -4,6 +4,7 @@ import chalk from 'chalk';
|
|
|
4
4
|
import {
|
|
5
5
|
showVersion,
|
|
6
6
|
getLibraryBased,
|
|
7
|
+
getLibraryBasedCL,
|
|
7
8
|
checkLibraryAndArchives,
|
|
8
9
|
addDebugLog,
|
|
9
10
|
getConfigDefaults,
|
|
@@ -32,7 +33,6 @@ export const deleteLibraryVersion = async (libraryName, version = "", okToDelete
|
|
|
32
33
|
addDebugLog("deleteLibraryVersion", "", "+");
|
|
33
34
|
|
|
34
35
|
const isLibraryBased = getLibraryBased();
|
|
35
|
-
|
|
36
36
|
const compDef = getConfigDefaults();
|
|
37
37
|
let libVersions = [];
|
|
38
38
|
let confirmDeletion;
|
|
@@ -42,10 +42,6 @@ addDebugLog("deleteLibraryVersion", "", "+");
|
|
|
42
42
|
process.exit();
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
45
|
try {
|
|
50
46
|
libVersions = await getLibraryArchivesVersions(libraryName, "");
|
|
51
47
|
}
|
|
@@ -160,7 +156,7 @@ addDebugLog("deleteLibraryVersion", "END", "-");
|
|
|
160
156
|
if (archiveLibraries.includes(libraryName)) {
|
|
161
157
|
const archLibVersions = await getLibraryArchivesVersions(libraryName, "");
|
|
162
158
|
const lastVersion = archLibVersions[archLibVersions.length -1];
|
|
163
|
-
const switchToFileName = `${libraryName}_${lastVersion}.zip`;
|
|
159
|
+
const switchToFileName = `${libraryName}_${lastVersion}.arch.zip`;
|
|
164
160
|
await restoreFromArchive(switchToFileName, libraryName, lastVersion);
|
|
165
161
|
|
|
166
162
|
await forceDefaultsUpdate();
|
|
@@ -174,7 +170,7 @@ addDebugLog("deleteLibraryVersion", "END", "-");
|
|
|
174
170
|
const newLib = archiveLibraries[0];
|
|
175
171
|
const archLibVersions = await getLibraryArchivesVersions(newLib, "");
|
|
176
172
|
const lastVersion = archLibVersions[archLibVersions.length -1];
|
|
177
|
-
const switchToFileName = `${newLib}_${lastVersion}.zip`;
|
|
173
|
+
const switchToFileName = `${newLib}_${lastVersion}.arch.zip`;
|
|
178
174
|
await restoreFromArchive(switchToFileName, newLib, lastVersion);
|
|
179
175
|
|
|
180
176
|
|
|
@@ -217,6 +213,7 @@ addDebugLog("deleteLibraryVersion", "END", "-");
|
|
|
217
213
|
|
|
218
214
|
export default async (options) => {
|
|
219
215
|
const isLibraryBased = getLibraryBased();
|
|
216
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
220
217
|
const useInputConfig = getUseInputConfig();
|
|
221
218
|
|
|
222
219
|
if (!isLibraryBased) {
|
|
@@ -242,7 +239,12 @@ addDebugLog("deleteLibrary", "", "+");
|
|
|
242
239
|
libraryName = inputConfig.libraryName;
|
|
243
240
|
version = inputConfig.libraryVersion;
|
|
244
241
|
const isPermanent = inputConfig.isPermanent;
|
|
245
|
-
|
|
242
|
+
let permBuild = convertYNToBoolean(isPermanent);
|
|
243
|
+
|
|
244
|
+
if (isLibraryBasedCL) {
|
|
245
|
+
// no -dev for PegaInfinity
|
|
246
|
+
permBuild = true;
|
|
247
|
+
}
|
|
246
248
|
|
|
247
249
|
if (!permBuild && version != "ALL") {
|
|
248
250
|
version = version.concat("-dev");
|
|
@@ -275,10 +277,7 @@ addDebugLog("deleteLibrary", "", "+");
|
|
|
275
277
|
({ libraryName } = answers);
|
|
276
278
|
}
|
|
277
279
|
|
|
278
|
-
|
|
279
|
-
|
|
280
280
|
}
|
|
281
|
-
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
1
2
|
import chalk from 'chalk';
|
|
2
|
-
import
|
|
3
|
+
import fetch from 'node-fetch';
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
getPegaServerConfig,
|
|
7
|
+
addDebugLog,
|
|
8
|
+
getApplicationAndVersionFromToken,
|
|
9
|
+
constructCompleteUrl,
|
|
10
|
+
getHttpsAgent,
|
|
11
|
+
validateRulesetVersion } from '../../util.js';
|
|
12
|
+
import { LIST_COMPONENT_LIBRARIES_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
|
|
3
13
|
|
|
4
14
|
export const SOURCE_OF_COMPONENT_TYPES = {
|
|
5
15
|
SERVER: 'Server',
|
|
@@ -33,3 +43,134 @@ addDebugLog("getLibraryVersionQuestion", `libraryName: ${libraryName}`, "");
|
|
|
33
43
|
}
|
|
34
44
|
];
|
|
35
45
|
};
|
|
46
|
+
|
|
47
|
+
export const getRulesetAndVersionQuestion = async (serverConfig) => {
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
name: 'rulesetName',
|
|
51
|
+
message: 'Enter ruleset name',
|
|
52
|
+
default: serverConfig.rulesetName,
|
|
53
|
+
validate: value => {
|
|
54
|
+
if (value.trim()) {
|
|
55
|
+
return true;
|
|
56
|
+
}
|
|
57
|
+
return 'Ruleset name cannot be empty';
|
|
58
|
+
},
|
|
59
|
+
when: () => {
|
|
60
|
+
return serverConfig.serverType === 'infinity';
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'rulesetVersion',
|
|
65
|
+
message: 'Enter ruleset version',
|
|
66
|
+
default: serverConfig.rulesetVersion,
|
|
67
|
+
validate: value => {
|
|
68
|
+
if (validateRulesetVersion(value)) {
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
return 'Please provide compatible version e.g 01-01-01';
|
|
72
|
+
},
|
|
73
|
+
when: () => {
|
|
74
|
+
return serverConfig.serverType === 'infinity';
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
async function fetchComponenLibrariessFromInfinity(apiUrl, headers) {
|
|
83
|
+
addDebugLog("fetchComponenLibrariessFromInfinity", `apiUrl: ${apiUrl}`, "");
|
|
84
|
+
const serverConfig = await getPegaServerConfig();
|
|
85
|
+
return new Promise((resolve, reject) => {
|
|
86
|
+
let status = 500;
|
|
87
|
+
fetch(apiUrl, {
|
|
88
|
+
method: 'GET',
|
|
89
|
+
agent: getHttpsAgent(serverConfig),
|
|
90
|
+
headers
|
|
91
|
+
})
|
|
92
|
+
.then((response) => {
|
|
93
|
+
status = response.status;
|
|
94
|
+
if (status === 401) {
|
|
95
|
+
throw new Error('Error occurred in authentication. Please regenerate using authenticate');
|
|
96
|
+
}
|
|
97
|
+
else if (status === 404){
|
|
98
|
+
throw new Error('404: Server resource not found');
|
|
99
|
+
}
|
|
100
|
+
else if (status === 405){
|
|
101
|
+
throw new Error('405: Server method not allowed');
|
|
102
|
+
}
|
|
103
|
+
else if (status === 408){
|
|
104
|
+
throw new Error('408: Server timed out');
|
|
105
|
+
}
|
|
106
|
+
return response.json();
|
|
107
|
+
})
|
|
108
|
+
.then((resp) => {
|
|
109
|
+
// const respData = JSON.parse(resp);
|
|
110
|
+
if (status === 401) {
|
|
111
|
+
throw new Error('Error occurred in authentication. Please regenerate using authenticate');
|
|
112
|
+
// console.log(accessTokenUri, refreshToken);
|
|
113
|
+
/* TODO - Handle refresh_token */
|
|
114
|
+
} else if (status === 200) {
|
|
115
|
+
resolve(resp);
|
|
116
|
+
} else {
|
|
117
|
+
throw new Error(`${resp.message}`);
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
121
|
+
.catch((e) => reject(`${chalk.bold.red(e)}`));
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export const getInfinityLibraries = async(rulesetName, rulesetVersion) => {
|
|
126
|
+
addDebugLog("getInfinityLibraries", '', "");
|
|
127
|
+
|
|
128
|
+
const { app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
129
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
130
|
+
let url = constructCompleteUrl(
|
|
131
|
+
defaultPegaServerConfig.server,
|
|
132
|
+
LIST_COMPONENT_LIBRARIES_SERVICE_REST_ENDPOINT
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
const ApplicationName = app_name;
|
|
136
|
+
const ApplicationVersion = app_version;
|
|
137
|
+
// const rulesetName = defaultPegaServerConfig.rulesetName;
|
|
138
|
+
// const rulesetVersion = defaultPegaServerConfig.rulesetVersion;
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
// inquire
|
|
142
|
+
|
|
143
|
+
let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/${rulesetName}/rulesetversion/${rulesetVersion}`;
|
|
144
|
+
//let urlParams = `&ApplicationName=${ApplicationName}&ApplicationVersion=${ApplicationVersion}&RulesetName=${rulesetName}&RulesetVersion=${rulesetVersion}`;
|
|
145
|
+
//urlParams = encodeURIComponent(urlParams);
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
url = url.concat(urlParams);
|
|
149
|
+
|
|
150
|
+
return new Promise((resolve, reject) => {
|
|
151
|
+
try {
|
|
152
|
+
fs.readFile(TOKEN_PATH, 'utf8', (err, data) => {
|
|
153
|
+
if (err) {
|
|
154
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
155
|
+
reject(`\n${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
|
|
156
|
+
}
|
|
157
|
+
if (data) {
|
|
158
|
+
const { access_token: accessToken, token_type: tokenType } = JSON.parse(data);
|
|
159
|
+
|
|
160
|
+
const headers = {};
|
|
161
|
+
headers.Authorization = `${tokenType} ${accessToken}`;
|
|
162
|
+
|
|
163
|
+
fetchComponenLibrariessFromInfinity(url, headers)
|
|
164
|
+
.then((response) => resolve(response))
|
|
165
|
+
.catch((e) => reject(e));
|
|
166
|
+
|
|
167
|
+
}
|
|
168
|
+
});
|
|
169
|
+
} catch (error) {
|
|
170
|
+
console.log(`\n${chalk.bold.red(error)}`);
|
|
171
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
172
|
+
reject(`${chalk.bold.red(error)}`);
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
}
|