@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
package/src/tasks/list/helper.js
CHANGED
|
@@ -4,8 +4,23 @@ import chalk from 'chalk';
|
|
|
4
4
|
import fetch from 'node-fetch';
|
|
5
5
|
import { join } from 'path';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
7
|
+
import {
|
|
8
|
+
LIST_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
9
|
+
LP_LIST_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
10
|
+
TOKEN_PATH, COMPONENT_SCHEMA,
|
|
11
|
+
TASKS_CONFIG_JSON_FILENAME,
|
|
12
|
+
COMPONENTS_DIRECTORY_PATH,
|
|
13
|
+
COMPONENTS_PATH } from '../../constants.js';
|
|
14
|
+
import {
|
|
15
|
+
constructCompleteUrl,
|
|
16
|
+
getComponents,
|
|
17
|
+
getPegaServerConfig,
|
|
18
|
+
getHttpsAgent,
|
|
19
|
+
addDebugLog,
|
|
20
|
+
getLibraryBased,
|
|
21
|
+
getComponentsConfigs,
|
|
22
|
+
getConfigDefaults,
|
|
23
|
+
checkAccessTokenExpiration } from '../../util.js';
|
|
9
24
|
|
|
10
25
|
export const SOURCE_OF_COMPONENT_TYPES = {
|
|
11
26
|
SERVER: 'Server',
|
|
@@ -208,6 +223,10 @@ addDebugLog("getComponentsFromServer", `library: ${library}, organization: ${org
|
|
|
208
223
|
isLaunchpad ? LP_LIST_COMPONENT_SERVICE_REST_ENDPOINT : LIST_COMPONENT_SERVICE_REST_ENDPOINT
|
|
209
224
|
);
|
|
210
225
|
|
|
226
|
+
if (!isLaunchpad) {
|
|
227
|
+
await checkAccessTokenExpiration;
|
|
228
|
+
}
|
|
229
|
+
|
|
211
230
|
|
|
212
231
|
|
|
213
232
|
return new Promise((resolve, reject) => {
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
import inquirer from 'inquirer';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
showVersion,
|
|
6
|
+
getLibraryBased,
|
|
7
|
+
addDebugLog,
|
|
8
|
+
checkLibraryAndArchives,
|
|
9
|
+
getLibraryArchivesVersions,
|
|
10
|
+
getConfigDefaults,
|
|
11
|
+
getLocalArchivedLibrraryVersionData,
|
|
12
|
+
getComponentsConfigs,
|
|
13
|
+
cleanUpTemp } from '../../util.js';
|
|
5
14
|
import { getArchiveLibraryQuestions } from './helper.js';
|
|
6
15
|
|
|
7
16
|
export default async (options) => {
|
|
@@ -1,12 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
import fs from 'fs';
|
|
1
3
|
import chalk from 'chalk';
|
|
4
|
+
import fetch from 'node-fetch';
|
|
5
|
+
|
|
2
6
|
|
|
3
7
|
import {
|
|
4
8
|
getPegaServerConfig,
|
|
5
9
|
addDebugLog,
|
|
6
|
-
getC11NB2STokenAndStaticServer
|
|
10
|
+
getC11NB2STokenAndStaticServer,
|
|
11
|
+
getApplicationAndVersionFromToken,
|
|
12
|
+
constructCompleteUrl,
|
|
13
|
+
getHttpsAgent
|
|
7
14
|
} from '../../util.js';
|
|
8
15
|
|
|
9
16
|
import { listLibJSONResponse } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
17
|
+
import { LIST_COMPONENT_LIBRARIES_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
|
|
10
18
|
|
|
11
19
|
export const SOURCE_OF_COMPONENT_TYPES = {
|
|
12
20
|
SERVER: 'Server',
|
|
@@ -72,3 +80,96 @@ addDebugLog("listLibJSONResponse", "services end", "");
|
|
|
72
80
|
return [];
|
|
73
81
|
|
|
74
82
|
}
|
|
83
|
+
|
|
84
|
+
async function fetchComponentLibrariesFromInfinity(apiUrl, headers) {
|
|
85
|
+
addDebugLog("fetchComponentLibrariesFromInfinity", `apiUrl: ${apiUrl}`, "");
|
|
86
|
+
const serverConfig = await getPegaServerConfig();
|
|
87
|
+
return new Promise((resolve, reject) => {
|
|
88
|
+
let status = 500;
|
|
89
|
+
fetch(apiUrl, {
|
|
90
|
+
method: 'GET',
|
|
91
|
+
agent: getHttpsAgent(serverConfig),
|
|
92
|
+
headers
|
|
93
|
+
})
|
|
94
|
+
.then((response) => {
|
|
95
|
+
status = response.status;
|
|
96
|
+
if (status === 401) {
|
|
97
|
+
throw new Error('Error occurred in authentication. Please regenerate using authenticate');
|
|
98
|
+
}
|
|
99
|
+
else if (status === 404){
|
|
100
|
+
throw new Error('404: Server resource not found');
|
|
101
|
+
}
|
|
102
|
+
else if (status === 405){
|
|
103
|
+
throw new Error('405: Server method not allowed');
|
|
104
|
+
}
|
|
105
|
+
else if (status === 408){
|
|
106
|
+
throw new Error('408: Server timed out');
|
|
107
|
+
}
|
|
108
|
+
return response.json();
|
|
109
|
+
})
|
|
110
|
+
.then((resp) => {
|
|
111
|
+
// const respData = JSON.parse(resp);
|
|
112
|
+
if (status === 401) {
|
|
113
|
+
throw new Error('Error occurred in authentication. Please regenerate using authenticate');
|
|
114
|
+
// console.log(accessTokenUri, refreshToken);
|
|
115
|
+
/* TODO - Handle refresh_token */
|
|
116
|
+
} else if (status === 200) {
|
|
117
|
+
resolve(resp);
|
|
118
|
+
} else {
|
|
119
|
+
throw new Error(`${resp.message}`);
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
123
|
+
.catch((e) => reject(`${chalk.bold.red(e)}`));
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const getInfinityLibraries = async() => {
|
|
128
|
+
addDebugLog("getInfinityLibraries", '', "");
|
|
129
|
+
|
|
130
|
+
const { app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
131
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
132
|
+
let url = constructCompleteUrl(
|
|
133
|
+
defaultPegaServerConfig.server,
|
|
134
|
+
LIST_COMPONENT_LIBRARIES_SERVICE_REST_ENDPOINT
|
|
135
|
+
);
|
|
136
|
+
|
|
137
|
+
const ApplicationName = app_name;
|
|
138
|
+
const ApplicationVersion = app_version;
|
|
139
|
+
const rulesetName = defaultPegaServerConfig.rulesetName;
|
|
140
|
+
const rulesetVersion = defaultPegaServerConfig.rulesetVersion;
|
|
141
|
+
|
|
142
|
+
let urlParams = `/app-name/${ApplicationName}/app-version/${ApplicationVersion}/rulesetname/${rulesetName}/rulesetversion/${rulesetVersion}`;
|
|
143
|
+
//let urlParams = `&ApplicationName=${ApplicationName}&ApplicationVersion=${ApplicationVersion}&RulesetName=${rulesetName}&RulesetVersion=${rulesetVersion}`;
|
|
144
|
+
//urlParams = encodeURIComponent(urlParams);
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
url = url.concat(urlParams);
|
|
148
|
+
|
|
149
|
+
return new Promise((resolve, reject) => {
|
|
150
|
+
try {
|
|
151
|
+
fs.readFile(TOKEN_PATH, 'utf8', (err, data) => {
|
|
152
|
+
if (err) {
|
|
153
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
154
|
+
reject(`\n${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
|
|
155
|
+
}
|
|
156
|
+
if (data) {
|
|
157
|
+
const { access_token: accessToken, token_type: tokenType } = JSON.parse(data);
|
|
158
|
+
|
|
159
|
+
const headers = {};
|
|
160
|
+
headers.Authorization = `${tokenType} ${accessToken}`;
|
|
161
|
+
|
|
162
|
+
fetchComponentLibrariesFromInfinity(url, headers)
|
|
163
|
+
.then((response) => resolve(response))
|
|
164
|
+
.catch((e) => reject(e));
|
|
165
|
+
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
} catch (error) {
|
|
169
|
+
console.log(`\n${chalk.bold.red(error)}`);
|
|
170
|
+
// eslint-disable-next-line prefer-promise-reject-errors
|
|
171
|
+
reject(`${chalk.bold.red(error)}`);
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import inquirer from 'inquirer';
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
showVersion,
|
|
6
|
+
getC11NB2STokenAndStaticServer,
|
|
7
|
+
getLocalLibraries,
|
|
8
|
+
getLocalLibraryVersions,
|
|
9
|
+
getLocalLibraryVersionData,
|
|
10
|
+
getLibraryBased,
|
|
11
|
+
addDebugLog,
|
|
12
|
+
checkLibraryAndArchives,
|
|
13
|
+
getConfigDefaults,
|
|
14
|
+
cleanUpTemp,
|
|
15
|
+
getPegaServerConfig,
|
|
16
|
+
getLibraryBasedCL,
|
|
17
|
+
getApplicationAndVersionFromToken } from '../../util.js';
|
|
5
18
|
|
|
6
19
|
import { listLibJSONResponse } from '@pega/constellation-dx-components-build-utils/index.js';
|
|
7
20
|
|
|
8
|
-
import {
|
|
21
|
+
import { SOURCE_OF_COMPONENT_TYPES, getServerLibraries, getInfinityLibraries, getServerLocalQuestion } from './helper.js';
|
|
9
22
|
|
|
10
23
|
|
|
11
24
|
|
|
@@ -119,11 +132,11 @@ addDebugLog("listPublished", "", "+");
|
|
|
119
132
|
// get built on from first component if exists
|
|
120
133
|
let builtOn = "(date unavailable)";
|
|
121
134
|
if (data[0] && data[0].buildDate) {
|
|
122
|
-
builtOn = data[0].buildDate;
|
|
135
|
+
builtOn = new Date(data[0].buildDate);
|
|
123
136
|
}
|
|
124
137
|
|
|
125
138
|
let libData = data.map((component) => ( {'Component': component.name, 'Label': component.label, 'Version': component.version, 'Type': component.type, 'Sub Type' : component.subtype}));
|
|
126
|
-
console.log(chalk.bold.blueBright(`\nList of ${libraryName}:${selectedVersion} components built on ${builtOn}.`));
|
|
139
|
+
console.log(chalk.bold.blueBright(`\nList of ${chalk.inverse(`Local`)} ${libraryName}:${selectedVersion} components built on ${builtOn}.`));
|
|
127
140
|
console.table(libData, ['Component', 'Label', 'Version', 'Type', 'Sub Type']);
|
|
128
141
|
|
|
129
142
|
}
|
|
@@ -139,61 +152,120 @@ addDebugLog("listPublished", "END", "-");
|
|
|
139
152
|
}
|
|
140
153
|
else {
|
|
141
154
|
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
155
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
156
|
+
if (isLibraryBasedCL) {
|
|
157
|
+
const arLibs = await getInfinityLibraries();
|
|
144
158
|
|
|
145
|
-
|
|
146
|
-
{
|
|
147
|
-
name: 'library',
|
|
148
|
-
type: 'rawlist',
|
|
149
|
-
message: 'Pick library',
|
|
150
|
-
choices: arLibs
|
|
151
|
-
}
|
|
152
|
-
]);
|
|
159
|
+
if (arLibs && arLibs.pxResults && arLibs.pxResults.length > 0) {
|
|
153
160
|
|
|
154
|
-
|
|
155
|
-
const libVersions = await getServerLibraryVersions(libraryName);
|
|
161
|
+
const libs = arLibs.pxResults.map((oLib, index) => ({ name: oLib.pyLabel, value: index}));
|
|
156
162
|
|
|
157
|
-
if (libVersions) {
|
|
158
|
-
const keys = Object.keys(libVersions);
|
|
159
|
-
const libVersionAnswers = await inquirer.prompt([
|
|
160
163
|
|
|
164
|
+
const {app_name, app_version } = await getApplicationAndVersionFromToken();
|
|
165
|
+
const serverConfig = await getPegaServerConfig();
|
|
166
|
+
console.log(`\nServer ${chalk.green.bold(`${serverConfig.server}`)}.`);
|
|
167
|
+
console.log(chalk.green(`List of libraries for Application: ${chalk.bold.green(`${app_name} - ${app_version}`)}`));
|
|
168
|
+
console.log(`in ruleset: ${chalk.green.bold(`${serverConfig.rulesetName}:${serverConfig.rulesetVersion}`)}`);
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
const libAnswers = await inquirer.prompt([
|
|
161
172
|
{
|
|
162
|
-
name: '
|
|
173
|
+
name: 'library',
|
|
163
174
|
type: 'rawlist',
|
|
164
|
-
message: '
|
|
165
|
-
choices:
|
|
175
|
+
message: 'Pick library',
|
|
176
|
+
choices: libs
|
|
166
177
|
}
|
|
167
178
|
]);
|
|
168
179
|
|
|
169
|
-
const
|
|
180
|
+
const libraryIndex = libAnswers.library;
|
|
170
181
|
|
|
171
|
-
const
|
|
172
|
-
const
|
|
182
|
+
const data = JSON.parse(arLibs.pxResults[libraryIndex].pxComponentDefinition);
|
|
183
|
+
const library = arLibs.pxResults[libraryIndex].pyLabel.replace(" ", "/");
|
|
184
|
+
const ruleSet = arLibs.pxResults[libraryIndex].pyRuleSet;
|
|
185
|
+
const ruleSetVersion = arLibs.pxResults[libraryIndex].pyRuleSetVersion;
|
|
173
186
|
|
|
174
187
|
// get built on from first component if exists
|
|
175
188
|
let builtOn = "(date unavailable)";
|
|
176
189
|
if (data[0] && data[0].buildDate) {
|
|
177
|
-
builtOn = data[0].buildDate;
|
|
190
|
+
builtOn = new Date(data[0].buildDate);
|
|
191
|
+
|
|
178
192
|
}
|
|
179
193
|
|
|
180
194
|
let libData = data.map((component) => ( {'Component': component.name, 'Label': component.label, 'Version': component.version, 'Type': component.type, 'Sub Type' : component.subtype}));
|
|
181
|
-
console.log(chalk.bold.blueBright(`\nList of ${
|
|
195
|
+
console.log(chalk.bold.blueBright(`\nList of ${library} from ${chalk.inverse(`${ruleSet}:${ruleSetVersion}`)} components built on ${builtOn}.`));
|
|
182
196
|
console.table(libData, ['Component', 'Label', 'Version', 'Type', 'Sub Type']);
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
// No library with that name
|
|
201
|
+
const serverConfig = await getPegaServerConfig();
|
|
202
|
+
console.log(chalk.redBright(`No server component libraries exist in given ruleset ${chalk.bold(`${serverConfig.rulesetName}:${serverConfig.rulesetVersion}`)}`));
|
|
203
|
+
console.log(chalk.redBright(`You need to publish a library to this ruleset first.`));
|
|
204
|
+
addDebugLog("listPublished", "END", "-");
|
|
205
|
+
process.exit(1);
|
|
206
|
+
|
|
207
|
+
}
|
|
183
208
|
}
|
|
184
209
|
else {
|
|
185
|
-
console.log(chalk.red("No libraries available on server."));
|
|
186
|
-
}
|
|
187
210
|
|
|
211
|
+
// old app static server
|
|
188
212
|
|
|
213
|
+
const arLibs = await getServerLibraries();
|
|
214
|
+
if (arLibs && arLibs.length > 0) {
|
|
189
215
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
216
|
+
const libAnswers = await inquirer.prompt([
|
|
217
|
+
{
|
|
218
|
+
name: 'library',
|
|
219
|
+
type: 'rawlist',
|
|
220
|
+
message: 'Pick library',
|
|
221
|
+
choices: arLibs
|
|
222
|
+
}
|
|
223
|
+
]);
|
|
224
|
+
|
|
225
|
+
libraryName = libAnswers.library;
|
|
226
|
+
const libVersions = await getServerLibraryVersions(libraryName);
|
|
227
|
+
|
|
228
|
+
if (libVersions) {
|
|
229
|
+
const keys = Object.keys(libVersions);
|
|
230
|
+
const libVersionAnswers = await inquirer.prompt([
|
|
231
|
+
|
|
232
|
+
{
|
|
233
|
+
name: 'libVersion',
|
|
234
|
+
type: 'rawlist',
|
|
235
|
+
message: 'Enter version',
|
|
236
|
+
choices: keys
|
|
237
|
+
}
|
|
238
|
+
]);
|
|
239
|
+
|
|
240
|
+
const selectedVersion = libVersionAnswers.libVersion;
|
|
241
|
+
|
|
242
|
+
const versionData = libVersions[selectedVersion];
|
|
243
|
+
const data = JSON.parse(versionData);
|
|
244
|
+
|
|
245
|
+
// get built on from first component if exists
|
|
246
|
+
let builtOn = "(date unavailable)";
|
|
247
|
+
if (data[0] && data[0].buildDate) {
|
|
248
|
+
builtOn = new data[0].buildDate;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
let libData = data.map((component) => ( {'Component': component.name, 'Label': component.label, 'Version': component.version, 'Type': component.type, 'Sub Type' : component.subtype}));
|
|
252
|
+
console.log(chalk.bold.blueBright(`\nList of ${libraryName}/${selectedVersion} components built on ${builtOn}.`));
|
|
253
|
+
console.table(libData, ['Component', 'Label', 'Version', 'Type', 'Sub Type']);
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
console.log(chalk.red("No libraries available on server."));
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
}
|
|
261
|
+
else {
|
|
262
|
+
// No library with that name
|
|
263
|
+
console.log(chalk.redBright(`No server library named: ${libraryName} exists.`));
|
|
264
|
+
console.log(chalk.redBright(`You need to publish library: ${libraryName} first.`));
|
|
265
|
+
addDebugLog("listPublished", "END", "-");
|
|
266
|
+
process.exit(1);
|
|
267
|
+
|
|
268
|
+
}
|
|
197
269
|
|
|
198
270
|
}
|
|
199
271
|
|
package/src/tasks/move/index.js
CHANGED
|
@@ -176,7 +176,7 @@ export const moveComp = async(componentKey, copyMove, orgLibName, version, copyS
|
|
|
176
176
|
const currentDirectory = process.cwd();
|
|
177
177
|
const tempDirectory = join(currentDirectory, TEMP_PATH);
|
|
178
178
|
const archiveDirectory = join (currentDirectory, ARCHIVES_PATH, `${orgLibName}`, `${version}`);
|
|
179
|
-
const fileName = `${orgLibName}_${version}.zip`;
|
|
179
|
+
const fileName = `${orgLibName}_${version}.arch.zip`;
|
|
180
180
|
const archFileName = join(archiveDirectory, fileName);
|
|
181
181
|
const currentCompPath = join(currentDirectory, "src", "components");
|
|
182
182
|
const tempCompPath = join(tempDirectory, "src", "components");
|
|
@@ -79,7 +79,8 @@ addDebugLog("getPublishComponentQuestions", `componentKey: ${componentKey}`, "")
|
|
|
79
79
|
name: 'devBuild',
|
|
80
80
|
type: 'confirm',
|
|
81
81
|
message: 'Generate development build ?',
|
|
82
|
-
default: defaultPegaConfig.devBuild
|
|
82
|
+
default: defaultPegaConfig.devBuild,
|
|
83
|
+
when: () => componentKey !== "LibraryMode"
|
|
83
84
|
}
|
|
84
85
|
];
|
|
85
86
|
};
|
|
@@ -217,27 +218,28 @@ addDebugLog("publishComponentToServer", `data: ${data}`, "");
|
|
|
217
218
|
|
|
218
219
|
try {
|
|
219
220
|
const respData = isLaunchpad ? await response.text() : await response.json();
|
|
220
|
-
console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
|
|
221
|
-
|
|
222
221
|
if (status === 500) {
|
|
223
222
|
status = 999;
|
|
224
|
-
throw
|
|
223
|
+
throw Error( "\n" + respData.message);
|
|
225
224
|
}
|
|
225
|
+
|
|
226
|
+
console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
|
|
227
|
+
|
|
226
228
|
} catch (err) {
|
|
227
229
|
if (status === 500) {
|
|
228
230
|
throw new Error(
|
|
229
231
|
`Error occurred in authentication. Please regenerate using authenticate`
|
|
230
232
|
);
|
|
231
233
|
} else if (status === 999) {
|
|
232
|
-
throw
|
|
234
|
+
throw Error(err);
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
237
|
} else {
|
|
236
|
-
throw new
|
|
238
|
+
throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
237
239
|
}
|
|
238
240
|
} catch (err) {
|
|
239
241
|
// throw new Error(`Error occurred in authentication. Please regenerate using authenticate`);
|
|
240
|
-
throw
|
|
242
|
+
throw Error(err);
|
|
241
243
|
}
|
|
242
244
|
}
|
|
243
245
|
};
|
|
@@ -6,7 +6,21 @@ import fs from 'fs';
|
|
|
6
6
|
import validate from '../validator/index.js';
|
|
7
7
|
import bundleComponent from '../bundle/index.js';
|
|
8
8
|
import { lintComponent } from '../linter/index.js';
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
getComponentDirectoryPath,
|
|
11
|
+
getPegaServerConfig,
|
|
12
|
+
showVersion,
|
|
13
|
+
getLibraryBased,
|
|
14
|
+
getLibraryBasedCL,
|
|
15
|
+
getUseInputConfig,
|
|
16
|
+
addDebugLog,
|
|
17
|
+
updateServerConfigRuleSetAndVersion,
|
|
18
|
+
checkLibraryAndArchives,
|
|
19
|
+
getConfigDevBuild,
|
|
20
|
+
checkAccessTokenExpiration,
|
|
21
|
+
checkJWTExpiration,
|
|
22
|
+
getConfigDefaults,
|
|
23
|
+
getInputConfigForCommand } from '../../util.js';
|
|
10
24
|
|
|
11
25
|
import { getPublishComponentQuestions, publishComponentToServer, zipComponent } from './helper.js';
|
|
12
26
|
import { default as buildLibrary } from '../build-lib/index.js';
|
|
@@ -21,28 +35,39 @@ export default async options => {
|
|
|
21
35
|
await showVersion();
|
|
22
36
|
await checkLibraryAndArchives();
|
|
23
37
|
const isLibraryBased = getLibraryBased();
|
|
38
|
+
const isLibraryBasedCL = getLibraryBasedCL();
|
|
24
39
|
const useInputConfig = getUseInputConfig();
|
|
25
40
|
|
|
41
|
+
|
|
26
42
|
addDebugLog("publish", "", "+");
|
|
27
43
|
|
|
44
|
+
await checkAccessTokenExpiration();
|
|
45
|
+
|
|
46
|
+
//
|
|
47
|
+
// library based V2 publishing
|
|
48
|
+
//
|
|
28
49
|
if (isLibraryBased) {
|
|
29
50
|
|
|
30
51
|
await checkJWTExpiration();
|
|
31
52
|
|
|
32
53
|
const devBuild = await getConfigDevBuild();
|
|
33
54
|
let okToPublish = false;
|
|
55
|
+
// let content;
|
|
34
56
|
|
|
35
57
|
const orgLib = getConfigDefaults();
|
|
36
58
|
const currentOrgLib = orgLib.currentOrgLib;
|
|
37
59
|
// const currentVersion = devBuild ? `${orgLib.version}-dev`: orgLib.version;
|
|
38
60
|
const currentVersion = orgLib.buildVersion;
|
|
61
|
+
const serverConfg = await getPegaServerConfig();
|
|
39
62
|
|
|
63
|
+
console.log();
|
|
64
|
+
console.log(`Publishing to server: ${chalk.green.bold(`${serverConfg.server}`)}`);
|
|
40
65
|
|
|
41
66
|
if (useInputConfig) {
|
|
42
67
|
const inputConfig = await getInputConfigForCommand("publish");
|
|
43
68
|
|
|
44
|
-
console.log("Input config: ");
|
|
45
|
-
console.log(inputConfig);
|
|
69
|
+
// console.log("Input config: ");
|
|
70
|
+
// console.log(inputConfig);
|
|
46
71
|
|
|
47
72
|
if (inputConfig.okToPublish ) {
|
|
48
73
|
if (devBuild || (!devBuild && inputConfig.okToPublishPermanent)) {
|
|
@@ -51,6 +76,10 @@ addDebugLog("publish", "", "+");
|
|
|
51
76
|
|
|
52
77
|
}
|
|
53
78
|
|
|
79
|
+
|
|
80
|
+
options.params.push(inputConfig.ruleSetName);
|
|
81
|
+
options.params.push(inputConfig.ruleSetVersion);
|
|
82
|
+
|
|
54
83
|
}
|
|
55
84
|
else {
|
|
56
85
|
const publishThisVersion = await inquirer.prompt([
|
|
@@ -66,20 +95,48 @@ addDebugLog("publish", "", "+");
|
|
|
66
95
|
okToPublish = true;
|
|
67
96
|
}
|
|
68
97
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (okToPublish) {
|
|
101
|
+
if (options.params.length >= 8 || useInputConfig) {
|
|
102
|
+
// const rulesetName = options.params[3];
|
|
103
|
+
// const rulesetVersion = options.params[4]
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
// content = { rulesetName, rulesetVersion };
|
|
107
|
+
} else {
|
|
108
|
+
// VS Code pluggin would send in the component
|
|
109
|
+
let paramComponentKey;
|
|
110
|
+
if (options.params.length == 4) {
|
|
111
|
+
paramComponentKey = options.params[3];
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const questions = await getPublishComponentQuestions("LibraryMode");
|
|
115
|
+
const answers = await inquirer.prompt(questions);
|
|
116
|
+
|
|
117
|
+
// content = {
|
|
118
|
+
// ...answers
|
|
119
|
+
// };
|
|
120
|
+
options.params.push(answers.rulesetName);
|
|
121
|
+
options.params.push(answers.rulesetVersion);
|
|
122
|
+
|
|
123
|
+
updateServerConfigRuleSetAndVersion(answers.rulesetName, answers.rulesetVersion);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (okToPublish && !devBuild && !isLibraryBasedCL) {
|
|
128
|
+
okToPublish = false;
|
|
129
|
+
console.log("");
|
|
130
|
+
const publishAnswers = await inquirer.prompt([
|
|
131
|
+
{
|
|
132
|
+
name: 'confirmPublish',
|
|
133
|
+
type: 'confirm',
|
|
134
|
+
message: `You are about to publish a ${chalk.bold.yellow('PRODUCTION')} version which can ${chalk.bold.yellow('NOT')} be deleted, proceed ?`,
|
|
135
|
+
default: false
|
|
82
136
|
}
|
|
137
|
+
]);
|
|
138
|
+
if (publishAnswers.confirmPublish) {
|
|
139
|
+
okToPublish = true;
|
|
83
140
|
}
|
|
84
141
|
}
|
|
85
142
|
|
|
@@ -87,13 +144,25 @@ addDebugLog("publish", "", "+");
|
|
|
87
144
|
// marking as internal, so no questions will be ask
|
|
88
145
|
options.params.push("internal");
|
|
89
146
|
|
|
147
|
+
|
|
90
148
|
await buildLibrary(options);
|
|
91
149
|
await publishLibrary(options);
|
|
150
|
+
|
|
151
|
+
|
|
92
152
|
}
|
|
93
153
|
|
|
154
|
+
// end of V2 publishing
|
|
94
155
|
return true;
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
95
159
|
}
|
|
96
160
|
|
|
161
|
+
// otherwise continue with original V1 publishig of individual components
|
|
162
|
+
|
|
163
|
+
//
|
|
164
|
+
// orginial V1 publish
|
|
165
|
+
//
|
|
97
166
|
|
|
98
167
|
let OauthData;
|
|
99
168
|
try {
|
|
@@ -5,7 +5,16 @@ import chalk from 'chalk';
|
|
|
5
5
|
import validate from '../validator/index.js';
|
|
6
6
|
import bundleComponent from '../bundle/index.js';
|
|
7
7
|
import { lintComponent } from '../linter/index.js';
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
getComponents,
|
|
10
|
+
getComponentDirectoryPath,
|
|
11
|
+
checkAccessTokenExpiration,
|
|
12
|
+
showVersion,
|
|
13
|
+
getLibraryBased,
|
|
14
|
+
addDebugLog,
|
|
15
|
+
getPegaServerConfig,
|
|
16
|
+
updateServerConfigRuleSetAndVersion,
|
|
17
|
+
checkLibraryAndArchives } from '../../util.js';
|
|
9
18
|
|
|
10
19
|
import {
|
|
11
20
|
getPublishComponentQuestions,
|
|
@@ -72,6 +81,8 @@ export default async options => {
|
|
|
72
81
|
await showVersion();
|
|
73
82
|
await checkLibraryAndArchives();
|
|
74
83
|
|
|
84
|
+
await checkAccessTokenExpiration();
|
|
85
|
+
|
|
75
86
|
addDebugLog("publishAll", "", "+");
|
|
76
87
|
|
|
77
88
|
const components = await getComponents();
|