@pega/custom-dx-components 0.0.1 → 0.8.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/.prettierrc.json +7 -1
- package/.vscode/extensions.json +1 -1
- package/README.md +6 -189
- package/babel.config.cjs +13 -0
- package/jest.config.cjs +37 -0
- package/package.json +45 -33
- package/src/auth.js +637 -0
- package/src/cli.js +49 -1
- package/src/constants.js +123 -8
- package/src/currentPath.cjs +1 -0
- package/src/tasks/authenticate/helper.js +155 -8
- package/src/tasks/authenticate/index.js +188 -51
- package/src/tasks/build/helper.js +116 -0
- package/src/tasks/build/index.js +76 -0
- package/src/tasks/build-all/helper.js +71 -0
- package/src/tasks/build-all/index.js +86 -0
- package/src/tasks/{publish/bundle → bundle}/builder/index.js +54 -5
- package/src/tasks/{publish/bundle → bundle}/builder/webpack.config.js +9 -8
- package/src/tasks/{publish/bundle → bundle}/index.js +2 -2
- package/src/tasks/create/index.js +129 -69
- package/src/tasks/create/templates/Constellation/Field/Boolean/Boolean.js.mustache +38 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/config.json.mustache +145 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +61 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +170 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +61 -0
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +41 -0
- package/src/tasks/create/templates/Constellation/Field/Date/config.json.mustache +195 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +439 -0
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +73 -0
- package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +256 -0
- package/src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/config.json.mustache +256 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +92 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +288 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +331 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +73 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +254 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/config.json.mustache +278 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +273 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/config.json.mustache +291 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +53 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +299 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/config.json.mustache +93 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +281 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/config.json.mustache +347 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +49 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +336 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/config.json.mustache +114 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +78 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +351 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.stories.js.mustache +67 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +10 -0
- package/src/tasks/create/{template → templates/Constellation/Field/Text}/config.json.mustache +14 -5
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +51 -0
- package/src/tasks/create/{template → templates/Constellation/Field/Text}/index.jsx.mustache +5 -0
- package/src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache +13 -0
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +231 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.stories.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.jsx +26 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +239 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache +21 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/config.json.mustache +111 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +231 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/config.json.mustache +123 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +266 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.stories.js.mustache +37 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/config.json.mustache +237 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +46 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +18 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +232 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache +22 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +173 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/config.json.mustache +185 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/demo.stories.jsx.mustache +57 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/index.jsx.mustache +213 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.stories.js.mustache +20 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.js +10 -0
- package/src/tasks/create/templates/Constellation/Field/TimeOfDay/time-of-day.js.mustache +288 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/OneColumnDetails.svg +22 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/config.json.mustache +35 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +132 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +86 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +189 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +152 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +26 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/TwoColumnDetails.svg +28 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/config.json.mustache +42 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +136 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +86 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +230 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +155 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/DefaultForm.svg +29 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/config.json.mustache +45 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +169 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +45 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache +137 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/TwoColumn.svg +38 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/config.json.mustache +27 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +178 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +143 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.jsx.mustache +35 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/config.json.mustache +32 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +102 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +70 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/localizations.json.mustache +4 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache +94 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +229 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +78 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +76 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache +390 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/config.json.mustache +59 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +30 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +48 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.stories.js.mustache +23 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.jsx.mustache +75 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.jsx.mustache +240 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/config.json.mustache +66 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +68 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +110 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache +51 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Launchpad/Field/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Template/__components.md +3 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/config.json.mustache +23 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +78 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +76 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +390 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +75 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/OneColumnPage.svg +36 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +282 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/config.json.mustache +55 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +74 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +82 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache +51 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +14 -0
- package/src/tasks/create/templates/Launchpad/Widget/__components.md +3 -0
- package/src/tasks/create-all/index.js +383 -0
- package/src/tasks/delete/helper.js +158 -55
- package/src/tasks/delete/index.js +11 -14
- package/src/tasks/delete-all/helper.js +265 -0
- package/src/tasks/delete-all/index.js +42 -0
- package/src/tasks/index.js +8 -0
- package/src/tasks/init/index.js +27 -23
- package/src/tasks/init/template/.eslintignore +8 -0
- package/src/tasks/init/template/.eslintrc.json +186 -5
- package/src/tasks/init/template/.storybook/package.json +1 -0
- package/src/tasks/init/template/.vscode/extensions.json +1 -1
- package/src/tasks/init/template/README.md +6 -189
- package/src/tasks/init/template/babel.config.cjs +13 -0
- package/src/tasks/init/template/keys/DX-ComponentDev.zip +0 -0
- package/src/tasks/init/template/keys/dxcb.crt +32 -0
- package/src/tasks/init/template/keys/dxcb.key +51 -0
- package/src/tasks/init/template/package.json.mustache +55 -23
- package/src/tasks/init/template/src/components/_components.md +1 -0
- package/src/tasks/init/template/tasks.config.json +25 -8
- package/src/tasks/init/template/templateNPMRC.txt +8 -0
- package/src/tasks/linter/index.js +46 -0
- package/src/tasks/list/helper.js +195 -57
- package/src/tasks/list/index.js +22 -3
- package/src/tasks/promote-webpack/index.js +126 -0
- package/src/tasks/promote-webpack/webpack.config.js +376 -0
- package/src/tasks/publish/helper.js +110 -61
- package/src/tasks/publish/index.js +43 -12
- package/src/tasks/publish-all/helper.js +187 -0
- package/src/tasks/publish-all/index.js +107 -0
- package/src/tasks/rename/index.js +344 -0
- package/src/tasks/revert-webpack/index.js +71 -0
- package/src/tasks/validator/index.js +291 -18
- package/src/util.js +246 -76
- package/tests/assets/components/create/Pega_DXIL_MyTestText/config.json +55 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +51 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +60 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +13 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/Boolean.js +38 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/config.json +145 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +170 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +73 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.stories.js +390 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/config.json +291 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +53 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +296 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +61 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +41 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/config.json +195 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +439 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +256 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/config.json +256 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +92 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +288 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +331 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +254 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/config.json +278 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +270 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +132 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.stories.js +189 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +152 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +231 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +42 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.stories.js +137 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/config.json +344 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +333 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +35 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +102 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +70 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/localizations.json +4 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.stories.js +94 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +229 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +237 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/config.json +66 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +68 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +108 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +231 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/config.json +93 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +275 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/config.json +123 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +266 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.stories.js +37 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/config.json +114 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +351 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js +67 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +10 -0
- package/{src/tasks/init/template/src/components/Organization_Library_VideoPlayer → tests/assets/components/createAll/Constellation/Pega_DXIL_MyText}/config.json +24 -13
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +51 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +60 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.stories.js +13 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/config.json +111 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +239 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/config.json +185 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +57 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +213 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +288 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +136 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +230 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +155 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +45 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.stories.js +143 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/config.json +237 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/event-utils.js +18 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +232 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +14 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +173 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/Boolean.js +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/config.json +145 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +61 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +170 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/config.json +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +390 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/config.json +291 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +53 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +296 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +61 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +41 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/config.json +195 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +439 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/config.json +256 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +92 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +331 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +73 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +254 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/config.json +278 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +270 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/OneColumnDetails.svg +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/config.json +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +132 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +189 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +152 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +231 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/DefaultForm.svg +29 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/config.json +45 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +166 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +137 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/config.json +344 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +333 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +35 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/config.json +32 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +102 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +70 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/localizations.json +4 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +94 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +229 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +75 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +279 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +74 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +80 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/OneColumnPage.svg +36 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/config.json +59 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +30 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +23 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +231 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/config.json +93 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +49 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +275 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/config.json +123 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +266 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +37 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/config.json +114 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +78 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +351 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +67 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/config.json +55 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +51 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +60 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +13 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/config.json +111 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +48 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +239 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +21 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/config.json +185 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +57 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +213 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +20 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +288 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +26 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/TwoColumnDetails.svg +28 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/config.json +42 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +136 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +83 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +230 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +155 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/TwoColumn.svg +38 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/config.json +27 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +175 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +45 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +143 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/config.json +237 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +46 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/event-utils.js +18 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +232 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +22 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +14 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +10 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +173 -0
- package/tests/functional/localCreateAllListDeleteAll.test.js +163 -0
- package/tests/functional/localCreateBuildAllDeleteAll.test.js +148 -0
- package/tests/functional/localCreateBuildDelete.test.js +84 -0
- package/tests/functional/localCreateListDelete.test.js +108 -0
- package/tests/functional/localCreatePublishAllDeleteAll.test.js +148 -0
- package/tests/functional/localCreatePublishDelete.test.js +84 -0
- package/tests/functional/localCreateRenameDelete.test.js +84 -0
- package/tests/functional/localPromoteRevertWP.test.js +59 -0
- package/tests/unit/util.test.js +544 -0
- package/src/tasks/create/template/demo.stories.jsx.mustache +0 -44
- package/src/tasks/create/template/styles.js.mustache +0 -7
- package/src/tasks/init/template/src/components/MBTAList/MBTAList.stories.tsx +0 -10
- package/src/tasks/init/template/src/components/MBTAList/MBTAList.tsx +0 -122
- package/src/tasks/init/template/src/components/MBTAList/icons/accessible.icon.tsx +0 -14
- package/src/tasks/init/template/src/components/MBTAList/icons/bus.icon.tsx +0 -13
- package/src/tasks/init/template/src/components/MBTAList/icons/mbta.icon.tsx +0 -10
- package/src/tasks/init/template/src/components/MBTAList/icons/subway.icon.tsx +0 -14
- package/src/tasks/init/template/src/components/MBTAList/index.ts +0 -2
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.stories.tsx +0 -19
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.styles.ts +0 -5
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURL.types.ts +0 -10
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURLDisplay.tsx +0 -25
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/MediaURLInput.tsx +0 -24
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/config.json +0 -13
- package/src/tasks/init/template/src/components/Organization_Library_MediaURL/index.ts +0 -2
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/demo.stories.jsx +0 -40
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/index.jsx +0 -42
- package/src/tasks/init/template/src/components/Organization_Library_VideoPlayer/styles.js +0 -5
- /package/src/tasks/{publish/bundle → bundle}/builder/modules.js +0 -0
- /package/src/tasks/{publish/bundle → bundle}/builder/paths.js +0 -0
- /package/src/tasks/init/template/.storybook/{main.js → main.cjs} +0 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import chalk from 'chalk';
|
|
3
|
+
import inquirer from 'inquirer';
|
|
4
|
+
import ora from 'ora';
|
|
5
|
+
|
|
6
|
+
import path from 'path';
|
|
7
|
+
import { join } from 'path';
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
deleteInfinityServerComponent,
|
|
11
|
+
deleteLaunchpadServerComponent,
|
|
12
|
+
deleteLocalComponent,
|
|
13
|
+
getComponents,
|
|
14
|
+
getPegaServerConfig,
|
|
15
|
+
standardizeStr,
|
|
16
|
+
validateRulesetVersion,
|
|
17
|
+
sanitize
|
|
18
|
+
} from '../../util.js';
|
|
19
|
+
import { getComponentsFromServer } from '../list/helper.js';
|
|
20
|
+
|
|
21
|
+
import { TASKS_CONFIG_JSON_FILENAME, COMPONENTS_DIRECTORY_PATH, COMPONENTS_PATH } from '../../constants.js';
|
|
22
|
+
|
|
23
|
+
export const SOURCE_OF_COMPONENT_TYPES = {
|
|
24
|
+
SERVER: 'Server',
|
|
25
|
+
LOCAL: 'Local'
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const currentDirectory = process.cwd();
|
|
29
|
+
const pegaConfigJsonPath = join(currentDirectory, TASKS_CONFIG_JSON_FILENAME);
|
|
30
|
+
|
|
31
|
+
let data = fs.readFileSync(pegaConfigJsonPath, { encoding: 'utf8' });
|
|
32
|
+
data = data && JSON.parse(data);
|
|
33
|
+
|
|
34
|
+
if (!data[COMPONENTS_DIRECTORY_PATH]) {
|
|
35
|
+
console.error(
|
|
36
|
+
`${chalk.red.bold('ERROR')} Could not able find components directory path in config.json`
|
|
37
|
+
);
|
|
38
|
+
process.exit(1);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const componentData = data[COMPONENTS_PATH];
|
|
42
|
+
|
|
43
|
+
let { library } = componentData;
|
|
44
|
+
let { organization } = JSON.parse(fs.readFileSync(path.resolve('package.json'), 'utf8'));
|
|
45
|
+
|
|
46
|
+
export const getDeleteComponentsQuestions = async (options) => {
|
|
47
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
48
|
+
|
|
49
|
+
return [
|
|
50
|
+
{
|
|
51
|
+
name: 'sourceOfComponents',
|
|
52
|
+
type: 'rawlist',
|
|
53
|
+
message: 'Delete components from Server or Local ?',
|
|
54
|
+
choices: Object.values(SOURCE_OF_COMPONENT_TYPES),
|
|
55
|
+
default: defaultPegaServerConfig.sourceOfComponents,
|
|
56
|
+
when() {
|
|
57
|
+
return !options.params[3];
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
];
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const getLaunchPadFilterQuestions = async () => {
|
|
64
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
65
|
+
|
|
66
|
+
return [
|
|
67
|
+
{
|
|
68
|
+
name: 'organization',
|
|
69
|
+
message: 'Enter component organization (required)',
|
|
70
|
+
default: organization,
|
|
71
|
+
validate: value => {
|
|
72
|
+
if (value) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return 'Please provide value for organization';
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'library',
|
|
80
|
+
message: 'Enter library name (required)',
|
|
81
|
+
default: library,
|
|
82
|
+
validate: value => {
|
|
83
|
+
if (value) {
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
return 'Please provide value for library';
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export const deleteLocalComponents = async (sourceOfComponents, options) => {
|
|
93
|
+
const localComponents = await getComponents();
|
|
94
|
+
|
|
95
|
+
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
|
96
|
+
for (const index in localComponents) {
|
|
97
|
+
console.log(chalk.bold.green(localComponents[index]));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
if (localComponents.length > 0) {
|
|
101
|
+
if (options.params.length >= 5) {
|
|
102
|
+
const sDeletion = options.params[4];
|
|
103
|
+
const confirmDeletion = sDeletion === 'Y' || sDeletion === 'y' || sDeletion === true || sDeletion === 'true';
|
|
104
|
+
if (confirmDeletion) {
|
|
105
|
+
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
|
106
|
+
for (const index in localComponents) {
|
|
107
|
+
const componentToDelete = localComponents[index];
|
|
108
|
+
// console.log(chalk.bold.green("Deleting: " + componentToDelete));
|
|
109
|
+
// eslint-disable-next-line no-await-in-loop
|
|
110
|
+
await deleteLocalComponent(componentToDelete);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
} else {
|
|
114
|
+
const answers = await inquirer.prompt([
|
|
115
|
+
{
|
|
116
|
+
name: 'confirmDeletion',
|
|
117
|
+
type: 'confirm',
|
|
118
|
+
message: 'Delete all local ?',
|
|
119
|
+
default: false
|
|
120
|
+
}
|
|
121
|
+
]);
|
|
122
|
+
if (answers.confirmDeletion) {
|
|
123
|
+
for (const component of localComponents) {
|
|
124
|
+
// console.log(chalk.bold.green("Deleting: " + componentToDelete));
|
|
125
|
+
// eslint-disable-next-line no-await-in-loop
|
|
126
|
+
await deleteLocalComponent(component);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export const deleteServerComponents = async (sourceOfComponents, answers) => {
|
|
136
|
+
|
|
137
|
+
const defaultPegaServerConfig = await getPegaServerConfig();
|
|
138
|
+
const isLaunchpad = defaultPegaServerConfig.serverType === 'launchpad';
|
|
139
|
+
|
|
140
|
+
if (isLaunchpad) {
|
|
141
|
+
const questions = await getLaunchPadFilterQuestions();
|
|
142
|
+
const lpAnswers = await inquirer.prompt(questions);
|
|
143
|
+
|
|
144
|
+
({library, organization} = lpAnswers);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const spinner = ora('Fetching components from server').start();
|
|
148
|
+
const data = await getComponentsFromServer(library, organization);
|
|
149
|
+
spinner.stop();
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// const serverComponents = isLaunchpad ? data : data.pxResults;
|
|
153
|
+
let serverComponents;
|
|
154
|
+
if (isLaunchpad) {
|
|
155
|
+
serverComponents = data;
|
|
156
|
+
} else {
|
|
157
|
+
try {
|
|
158
|
+
if (typeof data === 'object') {
|
|
159
|
+
serverComponents = data.pxResults;
|
|
160
|
+
} else {
|
|
161
|
+
serverComponents = JSON.parse(data).pxResults;
|
|
162
|
+
}
|
|
163
|
+
} catch (ex) {
|
|
164
|
+
/* empty */
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
if (serverComponents && serverComponents?.length > 0) {
|
|
171
|
+
if (isLaunchpad) {
|
|
172
|
+
serverComponents.forEach((component) => {
|
|
173
|
+
console.log(chalk.bold.green(component.name));
|
|
174
|
+
});
|
|
175
|
+
|
|
176
|
+
const confirmDeletionAnswers = await inquirer.prompt([
|
|
177
|
+
{
|
|
178
|
+
name: 'confirmDeletion',
|
|
179
|
+
type: 'confirm',
|
|
180
|
+
message: 'All custom components for the tenant would be deleted. Do you want to proceed ?',
|
|
181
|
+
default: false
|
|
182
|
+
}
|
|
183
|
+
]);
|
|
184
|
+
|
|
185
|
+
if (confirmDeletionAnswers.confirmDeletion) {
|
|
186
|
+
const componentsList = serverComponents.map((component) => `${component.name}~|~`);
|
|
187
|
+
for (const componentToDelete of componentsList) {
|
|
188
|
+
// eslint-disable-next-line no-await-in-loop
|
|
189
|
+
await deleteLaunchpadServerComponent(componentToDelete);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
} else {
|
|
193
|
+
const choicesArr = serverComponents.map(({ label, pyRuleSet, pyRuleSetVersion }) => {
|
|
194
|
+
const name = `${standardizeStr(label, 45)} ${standardizeStr(pyRuleSet, 30)} ${standardizeStr(pyRuleSetVersion, 20)}`;
|
|
195
|
+
|
|
196
|
+
const value = `${label}~|~${pyRuleSet}~|~${pyRuleSetVersion}`;
|
|
197
|
+
const short = `\n Selected component : ${chalk.redBright(`${label} ${pyRuleSet} : ${pyRuleSetVersion}`)}`;
|
|
198
|
+
|
|
199
|
+
return { name, value, short };
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
const selectedComp = await inquirer.prompt([
|
|
203
|
+
{
|
|
204
|
+
name: 'rulesetName',
|
|
205
|
+
message: 'Enter ruleset name',
|
|
206
|
+
default: defaultPegaServerConfig.rulesetName,
|
|
207
|
+
validate: (value) => {
|
|
208
|
+
if (value.trim()) {
|
|
209
|
+
return true;
|
|
210
|
+
}
|
|
211
|
+
return 'Ruleset name cannot be empty';
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: 'rulesetVersion',
|
|
216
|
+
message: 'Enter ruleset version',
|
|
217
|
+
default: defaultPegaServerConfig.rulesetVersion,
|
|
218
|
+
validate: (value) => {
|
|
219
|
+
if (validateRulesetVersion(value)) {
|
|
220
|
+
return true;
|
|
221
|
+
}
|
|
222
|
+
return 'Please provide compatible version e.g 01-01-01';
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
]);
|
|
226
|
+
|
|
227
|
+
let bHasAtLeastOneComponent = false;
|
|
228
|
+
for (const choice of choicesArr) {
|
|
229
|
+
const componentToDelete = choice.value;
|
|
230
|
+
const [name, rulesetName, rulesetVersion] = componentToDelete.split('~|~');
|
|
231
|
+
if (rulesetName === selectedComp.rulesetName && rulesetVersion === selectedComp.rulesetVersion) {
|
|
232
|
+
console.log(chalk.bold.green(name));
|
|
233
|
+
bHasAtLeastOneComponent = true;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
if (!bHasAtLeastOneComponent) {
|
|
238
|
+
console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents} that match ruleSet:${selectedComp.rulesetName}.`));
|
|
239
|
+
process.exit();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
const confirmDeletionAnswers = await inquirer.prompt([
|
|
243
|
+
{
|
|
244
|
+
name: 'confirmDeletion',
|
|
245
|
+
type: 'confirm',
|
|
246
|
+
message: 'Do you want to delete these components ?',
|
|
247
|
+
default: false
|
|
248
|
+
}
|
|
249
|
+
]);
|
|
250
|
+
if (confirmDeletionAnswers.confirmDeletion) {
|
|
251
|
+
for (const choice of choicesArr) {
|
|
252
|
+
const componentToDelete = choice.value;
|
|
253
|
+
// eslint-disable-next-line no-unused-vars
|
|
254
|
+
const [name, rulesetName, rulesetVersion] = componentToDelete.split('~|~');
|
|
255
|
+
if (rulesetName === selectedComp.rulesetName && rulesetVersion === selectedComp.rulesetVersion) {
|
|
256
|
+
// eslint-disable-next-line no-await-in-loop
|
|
257
|
+
await deleteInfinityServerComponent(componentToDelete);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
} else {
|
|
263
|
+
console.log(chalk.bold.redBright(`No custom components in ${sourceOfComponents}`));
|
|
264
|
+
}
|
|
265
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import inquirer from 'inquirer';
|
|
2
|
+
|
|
3
|
+
import { showVersion } from '../../util.js';
|
|
4
|
+
|
|
5
|
+
import { deleteLocalComponents, SOURCE_OF_COMPONENT_TYPES, deleteServerComponents, getDeleteComponentsQuestions } from './helper.js';
|
|
6
|
+
|
|
7
|
+
const deleteComponentsFn = async (sourceOfComponents, answers, options) => {
|
|
8
|
+
switch (sourceOfComponents) {
|
|
9
|
+
case SOURCE_OF_COMPONENT_TYPES.LOCAL: {
|
|
10
|
+
await deleteLocalComponents(sourceOfComponents, options);
|
|
11
|
+
break;
|
|
12
|
+
}
|
|
13
|
+
case SOURCE_OF_COMPONENT_TYPES.SERVER: {
|
|
14
|
+
await deleteServerComponents(sourceOfComponents, answers);
|
|
15
|
+
break;
|
|
16
|
+
}
|
|
17
|
+
default: {
|
|
18
|
+
console.log('Source of components needs to be either Local or Server');
|
|
19
|
+
break;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default async (options) => {
|
|
25
|
+
showVersion();
|
|
26
|
+
|
|
27
|
+
let sourceOfComponentsOption = SOURCE_OF_COMPONENT_TYPES.LOCAL;
|
|
28
|
+
if (options.params[3] === SOURCE_OF_COMPONENT_TYPES.LOCAL) {
|
|
29
|
+
sourceOfComponentsOption = options.params[3];
|
|
30
|
+
await deleteComponentsFn(sourceOfComponentsOption, null, options);
|
|
31
|
+
} else if (options.params[3] === SOURCE_OF_COMPONENT_TYPES.SERVER) {
|
|
32
|
+
sourceOfComponentsOption = options.params[3];
|
|
33
|
+
const questions = await getDeleteComponentsQuestions(options, sourceOfComponentsOption);
|
|
34
|
+
const answers = await inquirer.prompt(questions);
|
|
35
|
+
await deleteComponentsFn(sourceOfComponentsOption, answers, options);
|
|
36
|
+
} else {
|
|
37
|
+
const questions = await getDeleteComponentsQuestions(options);
|
|
38
|
+
const answers = await inquirer.prompt(questions);
|
|
39
|
+
const { sourceOfComponents } = answers;
|
|
40
|
+
await deleteComponentsFn(sourceOfComponents, answers, options);
|
|
41
|
+
}
|
|
42
|
+
};
|
package/src/tasks/index.js
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
export { default as createComponent } from './create/index.js';
|
|
2
|
+
export { default as createAllComponents } from './create-all/index.js';
|
|
2
3
|
export { default as deleteComponent } from './delete/index.js';
|
|
4
|
+
export { default as deleteAllComponents } from './delete-all/index.js';
|
|
3
5
|
export { default as initProject } from './init/index.js';
|
|
6
|
+
export { default as promoteWebPack } from './promote-webpack/index.js';
|
|
4
7
|
export { default as publishComponent } from './publish/index.js';
|
|
8
|
+
export { default as publishAllComponents } from './publish-all/index.js';
|
|
9
|
+
export { default as renameComponent } from './rename/index.js';
|
|
10
|
+
export { default as revertWebPack } from './revert-webpack/index.js';
|
|
5
11
|
export { default as listComponents } from './list/index.js';
|
|
6
12
|
export { default as updateComponent } from './update/index.js';
|
|
7
13
|
export { default as validate } from './validator/index.js';
|
|
8
14
|
export { default as authenticate } from './authenticate/index.js';
|
|
9
15
|
export { default as upgrade } from './upgrade/index.js';
|
|
16
|
+
export { default as buildComponent } from './build/index.js';
|
|
17
|
+
export { default as buildAllComponents } from './build-all/index.js';
|
package/src/tasks/init/index.js
CHANGED
|
@@ -11,12 +11,7 @@ import Listr from 'listr';
|
|
|
11
11
|
import gitignore from 'gitignore';
|
|
12
12
|
import inquirer from 'inquirer';
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
compileMustacheTemplate,
|
|
16
|
-
isPascalCase,
|
|
17
|
-
convertIntoPascalCase,
|
|
18
|
-
sanitize
|
|
19
|
-
} from '../../util.js';
|
|
14
|
+
import { compileMustacheTemplate, isPascalCase, convertIntoPascalCase, sanitize } from '../../util.js';
|
|
20
15
|
|
|
21
16
|
import { getInitProjectQuestions } from './helper.js';
|
|
22
17
|
|
|
@@ -26,7 +21,7 @@ const copy = promisify(ncp);
|
|
|
26
21
|
const writeGitignore = promisify(gitignore.writeFile);
|
|
27
22
|
const writeFile = promisify(fs.writeFile);
|
|
28
23
|
|
|
29
|
-
const createGitignore = async options => {
|
|
24
|
+
const createGitignore = async (options) => {
|
|
30
25
|
const file = fs.createWriteStream(path.join(options.targetDirectory, '.gitignore'), {
|
|
31
26
|
flags: 'a'
|
|
32
27
|
});
|
|
@@ -36,17 +31,18 @@ const createGitignore = async options => {
|
|
|
36
31
|
});
|
|
37
32
|
};
|
|
38
33
|
|
|
39
|
-
const createLicense = async options => {
|
|
34
|
+
const createLicense = async (options) => {
|
|
40
35
|
const targetPath = path.join(options.targetDirectory, 'LICENSE');
|
|
41
36
|
const licenseContent = 'Enter license text here';
|
|
42
37
|
return writeFile(targetPath, licenseContent, 'utf8');
|
|
43
38
|
};
|
|
44
39
|
|
|
45
|
-
const copyProjectTemplate = async options => {
|
|
40
|
+
const copyProjectTemplate = async (options) => {
|
|
46
41
|
await copy(options.templateDirectory, options.targetDirectory, {
|
|
47
42
|
clobber: false
|
|
48
43
|
});
|
|
49
44
|
const packageJsonPath = path.join(options.targetDirectory, 'package.json.mustache');
|
|
45
|
+
const templateNPMRCPath = path.join(options.targetDirectory, 'templateNPMRC.txt');
|
|
50
46
|
|
|
51
47
|
let { organization, projectName } = options;
|
|
52
48
|
|
|
@@ -65,10 +61,14 @@ const copyProjectTemplate = async options => {
|
|
|
65
61
|
const output = compileMustacheTemplate(packageJsonPath, options);
|
|
66
62
|
fs.writeFileSync(packageJsonPath, output);
|
|
67
63
|
fs.renameSync(packageJsonPath, packageJsonPath.replace('.mustache', ''));
|
|
64
|
+
|
|
65
|
+
// rename template NPMRC to .npmrc, need to do this because npmjs won't publish an .npmrc file
|
|
66
|
+
fs.renameSync(templateNPMRCPath, templateNPMRCPath.replace('templateNPMRC.txt', '.npmrc'));
|
|
67
|
+
|
|
68
68
|
await createLicense(options);
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
const initGit = async options => {
|
|
71
|
+
const initGit = async (options) => {
|
|
72
72
|
const result = await execa('git', ['init'], {
|
|
73
73
|
cwd: options.targetDirectory
|
|
74
74
|
});
|
|
@@ -77,16 +77,13 @@ const initGit = async options => {
|
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
80
|
-
export default async options => {
|
|
81
|
-
options.templateDirectory = path.resolve(
|
|
82
|
-
path.dirname(fileURLToPath(import.meta.url)),
|
|
83
|
-
'template'
|
|
84
|
-
);
|
|
80
|
+
export default async (options) => {
|
|
81
|
+
options.templateDirectory = path.resolve(path.dirname(fileURLToPath(import.meta.url)), 'template');
|
|
85
82
|
let projectName = 'test';
|
|
86
83
|
|
|
87
84
|
const questions = getInitProjectQuestions();
|
|
88
85
|
|
|
89
|
-
await inquirer.prompt(questions).then(async answers => {
|
|
86
|
+
await inquirer.prompt(questions).then(async (answers) => {
|
|
90
87
|
projectName = answers.projectName;
|
|
91
88
|
projectName = sanitize(projectName).toLowerCase();
|
|
92
89
|
options = { ...options, ...answers };
|
|
@@ -97,11 +94,12 @@ export default async options => {
|
|
|
97
94
|
fs.mkdirSync(projectDirectory);
|
|
98
95
|
} else {
|
|
99
96
|
console.log(chalk.bold.red(`A project with name ${projectName} already exists. Exiting...`));
|
|
100
|
-
process.exit(
|
|
97
|
+
process.exit();
|
|
101
98
|
}
|
|
102
99
|
|
|
103
100
|
const targetDirectory = options.targetDirectory || process.cwd();
|
|
104
101
|
options.targetDirectory = path.join(targetDirectory, projectName);
|
|
102
|
+
options.componentDirectory = path.join(options.targetDirectory, 'node_modules/@pega/custom-dx-components');
|
|
105
103
|
});
|
|
106
104
|
|
|
107
105
|
const installDependenciesText = `Installing dependencies. This will take a couple of minutes.`;
|
|
@@ -123,7 +121,15 @@ export default async options => {
|
|
|
123
121
|
},
|
|
124
122
|
{
|
|
125
123
|
title: installDependenciesText,
|
|
126
|
-
task: () => execPromise('npm i --production=false', { cwd: options.targetDirectory })
|
|
124
|
+
task: () => execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: 'Installing tasks dependencies',
|
|
128
|
+
task: () => execPromise('npm i --force --production=false', { cwd: options.componentDirectory })
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
title: 'Installing quick run',
|
|
132
|
+
task: () => execPromise('npm i -g npm-quick-run', { cwd: options.targetDirectory })
|
|
127
133
|
}
|
|
128
134
|
],
|
|
129
135
|
{
|
|
@@ -133,14 +139,12 @@ export default async options => {
|
|
|
133
139
|
|
|
134
140
|
await tasks.run();
|
|
135
141
|
console.log('\n');
|
|
136
|
-
console.log(
|
|
137
|
-
`${chalk.green('Success!!')} Project created at ${chalk.blueBright(options.targetDirectory)}`
|
|
138
|
-
);
|
|
142
|
+
console.log(`${chalk.green('Success!!')} Project created at ${chalk.blueBright(options.targetDirectory)}`);
|
|
139
143
|
console.log(
|
|
140
144
|
'\n',
|
|
141
145
|
`Inside that directory, you can run several commands:`,
|
|
142
146
|
'\n\n',
|
|
143
|
-
`${chalk.blueBright('npm
|
|
147
|
+
`${chalk.blueBright('npm run startStorybook')}`,
|
|
144
148
|
`\n Start Storybook in development mode`,
|
|
145
149
|
'\n\n',
|
|
146
150
|
`${chalk.blueBright('npm run create')}`,
|
|
@@ -158,7 +162,7 @@ export default async options => {
|
|
|
158
162
|
'\n\n',
|
|
159
163
|
`${chalk.blueBright('cd')} ${chalk.bold(projectName)}`,
|
|
160
164
|
'\n',
|
|
161
|
-
`${chalk.blueBright('npm
|
|
165
|
+
`${chalk.blueBright('npm run startStorybook')}`,
|
|
162
166
|
'\n'
|
|
163
167
|
);
|
|
164
168
|
return true;
|
|
@@ -1,10 +1,191 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": ["@pega"],
|
|
3
|
-
"parserOptions": { "project": "tsconfig.json" },
|
|
4
2
|
"root": true,
|
|
5
|
-
"
|
|
3
|
+
"extends": ["@pega"],
|
|
4
|
+
"parserOptions": {
|
|
5
|
+
"project": "tsconfig.json",
|
|
6
|
+
"ecmaVersion": 13
|
|
7
|
+
},
|
|
8
|
+
"settings": {
|
|
9
|
+
"import/resolver": {
|
|
10
|
+
"typescript": {},
|
|
11
|
+
"node": {
|
|
12
|
+
"extensions": [".js", ".jsx"]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"react": {
|
|
16
|
+
"version": "detect"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"ignorePatterns": ["node_modules", "packages/*/lib", "!.storybook", ".storybook/public"],
|
|
6
20
|
"rules": {
|
|
21
|
+
// Prettier recommends running separately from a linter.
|
|
22
|
+
// https://prettier.io/docs/en/integrating-with-linters.html#notes
|
|
7
23
|
"prettier/prettier": "off",
|
|
8
|
-
|
|
9
|
-
|
|
24
|
+
|
|
25
|
+
// Disable rules from shared configs we're not ready for yet.
|
|
26
|
+
"sonarjs/cognitive-complexity": "off",
|
|
27
|
+
"sonarjs/no-identical-functions": "off",
|
|
28
|
+
"sonarjs/no-duplicate-string": "off",
|
|
29
|
+
"sonarjs/no-nested-template-literals": "off",
|
|
30
|
+
|
|
31
|
+
//
|
|
32
|
+
// JA - Override some default lint handling here
|
|
33
|
+
"@typescript-eslint/array-type": ["error", { "default": "generic" }],
|
|
34
|
+
// "import/extensions": ["warn", "never"], // Turning off for now (see below)
|
|
35
|
+
|
|
36
|
+
//
|
|
37
|
+
// Initial release: turning these off; phase in to "warn" or "error" over time
|
|
38
|
+
// For "quotes" and "@typescript-eslint/quotes", see override below for .ts/.tsx files
|
|
39
|
+
"import/extensions": ["off", "never"],
|
|
40
|
+
"import/named": "off",
|
|
41
|
+
"import/no-cycle": "off",
|
|
42
|
+
"import/no-duplicates": "off",
|
|
43
|
+
"import/no-extraneous-dependencies": "off",
|
|
44
|
+
"import/no-named-as-default": "off",
|
|
45
|
+
"import/no-named-as-default-member": "off",
|
|
46
|
+
"import/no-self-import": "off",
|
|
47
|
+
"import/no-unresolved": "off",
|
|
48
|
+
"import/no-useless-path-segments": "off",
|
|
49
|
+
"import/order": "off",
|
|
50
|
+
|
|
51
|
+
"no-else-return": "off",
|
|
52
|
+
"no-restricted-syntax": "off",
|
|
53
|
+
"no-underscore-dangle": "off",
|
|
54
|
+
|
|
55
|
+
"jsx-a11y/alt-text": "off",
|
|
56
|
+
"jsx-a11y/anchor-is-valid": "off",
|
|
57
|
+
"jsx-a11y/click-events-have-key-events": "off",
|
|
58
|
+
"jsx-a11y/label-has-associated-control": "off",
|
|
59
|
+
"jsx-a11y/no-static-element-interactions": "off",
|
|
60
|
+
|
|
61
|
+
"react/jsx-fragments": "off",
|
|
62
|
+
"react/jsx-no-bind": "off",
|
|
63
|
+
"react/self-closing-comp": "off",
|
|
64
|
+
|
|
65
|
+
"sonarjs/prefer-immediate-return": "off",
|
|
66
|
+
|
|
67
|
+
"@typescript-eslint/dot-notation": "off", // prefer warn but needs different parserOptions
|
|
68
|
+
"@typescript-eslint/naming-convention": "off", // prefer warn but needs different parserOptions
|
|
69
|
+
"@typescript-eslint/ban-types": "off", // also, see override below
|
|
70
|
+
|
|
71
|
+
//
|
|
72
|
+
// Initial release: set to error
|
|
73
|
+
"@typescript-eslint/no-inferrable-types": "error",
|
|
74
|
+
"eqeqeq": "error",
|
|
75
|
+
"no-alert": "error",
|
|
76
|
+
"no-console": "error",
|
|
77
|
+
"no-fallthrough": "error",
|
|
78
|
+
"no-undef": "error",
|
|
79
|
+
"no-unused-vars": "error",
|
|
80
|
+
"no-var": "error",
|
|
81
|
+
"prefer-const": "error",
|
|
82
|
+
"yoda": "error",
|
|
83
|
+
|
|
84
|
+
"import/no-mutable-exports": "error",
|
|
85
|
+
"sonarjs/max-switch-cases": "error",
|
|
86
|
+
"sonarjs/no-collapsible-if": "error",
|
|
87
|
+
"sonarjs/no-all-duplicated-branches": "error",
|
|
88
|
+
"sonarjs/no-duplicated-branches": "error",
|
|
89
|
+
"sonarjs/no-gratuitous-expressions": "error",
|
|
90
|
+
"sonarjs/no-ignored-return": "error",
|
|
91
|
+
"sonarjs/no-small-switch": "error",
|
|
92
|
+
"sonarjs/prefer-object-literal": "error",
|
|
93
|
+
"sonarjs/prefer-single-boolean-return": "error",
|
|
94
|
+
"@typescript-eslint/no-shadow": "error",
|
|
95
|
+
"react/default-props-match-prop-types": "error",
|
|
96
|
+
"react/no-unescaped-entities": "error",
|
|
97
|
+
"react/no-unused-prop-types": "error",
|
|
98
|
+
"react/static-property-placement": "error",
|
|
99
|
+
"array-callback-return": "error",
|
|
100
|
+
"camelcase": "error",
|
|
101
|
+
"default-case": "error",
|
|
102
|
+
"func-names": "error",
|
|
103
|
+
"no-case-declarations": "error",
|
|
104
|
+
"no-lonely-if": "error",
|
|
105
|
+
"no-nested-ternary": "error",
|
|
106
|
+
"no-plusplus": "error",
|
|
107
|
+
"no-restricted-globals": "error",
|
|
108
|
+
"no-restricted-properties": "error",
|
|
109
|
+
"no-shadow": "error",
|
|
110
|
+
"radix": "error",
|
|
111
|
+
"spaced-comment": "error",
|
|
112
|
+
|
|
113
|
+
"import/newline-after-import": "error",
|
|
114
|
+
"sonarjs/no-nested-switch": "error",
|
|
115
|
+
"@typescript-eslint/no-array-constructor": "error",
|
|
116
|
+
"@typescript-eslint/no-empty-function": "error",
|
|
117
|
+
"@typescript-eslint/no-unused-vars": "error",
|
|
118
|
+
"@typescript-eslint/no-useless-constructor": "error",
|
|
119
|
+
"react/button-has-type": "error",
|
|
120
|
+
"react/jsx-curly-brace-presence": "error",
|
|
121
|
+
"react/jsx-boolean-value": "error",
|
|
122
|
+
"react/no-array-index-key": "error",
|
|
123
|
+
"class-methods-use-this": "error",
|
|
124
|
+
"guard-for-in": "error",
|
|
125
|
+
"no-unneeded-ternary": "error",
|
|
126
|
+
"no-unused-expressions": "error",
|
|
127
|
+
"operator-assignment": "error",
|
|
128
|
+
"prefer-template": "error",
|
|
129
|
+
"vars-on-top": "error",
|
|
130
|
+
|
|
131
|
+
"no-use-before-define": "off", // doc for @typescript-eslint/no-use-before-define says to turn off the base implementation
|
|
132
|
+
"@typescript-eslint/no-use-before-define": "error"
|
|
133
|
+
},
|
|
134
|
+
"overrides": [
|
|
135
|
+
{
|
|
136
|
+
"files": "*.@(ts|tsx)",
|
|
137
|
+
"rules": {
|
|
138
|
+
"@typescript-eslint/method-signature-style": ["error", "property"],
|
|
139
|
+
// "@typescript-eslint/ban-types": [
|
|
140
|
+
// "warn",
|
|
141
|
+
// {
|
|
142
|
+
// "types": {
|
|
143
|
+
// "Omit": "Please use the 'OmitStrict' type from 'src/types/' instead.",
|
|
144
|
+
// "object": false,
|
|
145
|
+
// "Function": false
|
|
146
|
+
// },
|
|
147
|
+
// "extendDefaults": true
|
|
148
|
+
// }
|
|
149
|
+
// ],
|
|
150
|
+
|
|
151
|
+
"quotes": "off",
|
|
152
|
+
"@typescript-eslint/quotes": "off"
|
|
153
|
+
// [
|
|
154
|
+
// "error",
|
|
155
|
+
// "single",
|
|
156
|
+
// {
|
|
157
|
+
// "avoidEscape": true,
|
|
158
|
+
// "allowTemplateLiterals": false
|
|
159
|
+
// }
|
|
160
|
+
// ]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"files": "*.@(jsx|tsx|mdx)",
|
|
165
|
+
"rules": {
|
|
166
|
+
"react/react-in-jsx-scope": "off",
|
|
167
|
+
// Set up configuration for future sweep
|
|
168
|
+
"react-hooks/exhaustive-deps": [
|
|
169
|
+
"off",
|
|
170
|
+
{
|
|
171
|
+
"additionalHooks": "useAfterInitialEffect"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"files": "*.@(js|jsx|ts|tsx|mdx)",
|
|
178
|
+
"rules": {}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"files": ".storybook/*.js",
|
|
182
|
+
"extends": ["@pega/eslint-config/script"]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"files": "*/**/mocks/**.@(mocks|styles).@(tsx|ts)",
|
|
186
|
+
"rules": {
|
|
187
|
+
"import/prefer-default-export": ["off"]
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
]
|
|
10
191
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|