@pega/custom-dx-components 0.23.18 → 0.23.20
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 +3 -3
- package/src/tasks/authenticate/index.js +55 -15
- package/src/tasks/bundle/builder/webpack.config.js +12 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/boolean-format.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/index.jsx.mustache +2 -1
- package/src/tasks/create/templates/Constellation/Field/Boolean/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Boolean/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Date/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Date/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/DateTime/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/index.jsx.mustache +2 -2
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.jsx +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Field/TimeofDay/time-of-day.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +8 -5
- package/src/tasks/create/templates/Constellation/Template/DETAILS/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/StatusWork.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/GetNextWork.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/mock.stories.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Avatar.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/Operator.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/mock.stories.js.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +3 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +1 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache +2 -0
- package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +1 -0
- package/src/tasks/init/template/package.json.mustache +2 -2
- package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +3 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/index.jsx +1 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/mock.stories.js +2 -0
- package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +2 -1
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.stories.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +2 -2
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/mock.stories.js +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/mock.stories.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +1 -0
- package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +2 -1
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/mock.stories.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +2 -2
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/StatusWork.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +3 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.stories.js +2 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +1 -0
- package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +1 -0
- package/src/auth.js +0 -637
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pega/custom-dx-components",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.20",
|
|
4
4
|
"description": "Utility for building custom UI components",
|
|
5
5
|
"bin": "./bin/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"@babel/core": "^7.23.3",
|
|
19
19
|
"@babel/plugin-transform-class-properties": "^7.23.3",
|
|
20
20
|
"@babel/preset-react": "^7.23.3",
|
|
21
|
+
"@pega/auth": "^0.1.1",
|
|
21
22
|
"adm-zip": "^0.5.9",
|
|
22
23
|
"ajv": "^8.12.0",
|
|
23
24
|
"ajv-keywords": "^5.1.0",
|
|
@@ -39,7 +40,6 @@
|
|
|
39
40
|
"mustache": "^4.2.0",
|
|
40
41
|
"ncp": "^2.0.0",
|
|
41
42
|
"node-fetch": "^3.2.10",
|
|
42
|
-
"open": "^8.4.2",
|
|
43
43
|
"ora": "^6.1.2",
|
|
44
44
|
"pascalcase": "^2.0.0",
|
|
45
45
|
"postcss": "^8.4.16",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
],
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@babel/preset-env": "^7.23.3",
|
|
68
|
-
"@pega/configs": "^0.
|
|
68
|
+
"@pega/configs": "^0.5.3",
|
|
69
69
|
"@pega/prettier-config": "^0.5.3",
|
|
70
70
|
"@types/jest": "^29.5.3",
|
|
71
71
|
"babel-jest": "^29.6.1",
|
|
@@ -5,8 +5,14 @@ import chalk from 'chalk';
|
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
|
|
7
7
|
import { checkPathAccess, showVersion } from '../../util.js';
|
|
8
|
-
import {
|
|
9
|
-
|
|
8
|
+
import {
|
|
9
|
+
TOKEN_PATH,
|
|
10
|
+
INF_TOKEN_URL_V1,
|
|
11
|
+
INF_AUTHORIZE_URL_V1,
|
|
12
|
+
LP_TOKEN_URL,
|
|
13
|
+
LP_AUTHORIZE_URL
|
|
14
|
+
} from '../../constants.js';
|
|
15
|
+
import { PegaAuth } from '@pega/auth';
|
|
10
16
|
|
|
11
17
|
import { getAuthQuestions } from './helper.js';
|
|
12
18
|
|
|
@@ -15,15 +21,27 @@ export const TASKS_CONFIG_JSON_FILENAME = 'tasks.config.json';
|
|
|
15
21
|
const pegaConfigJsonPath = path.join(path.resolve(), TASKS_CONFIG_JSON_FILENAME);
|
|
16
22
|
const server = null;
|
|
17
23
|
|
|
18
|
-
const generateAccessToken = async
|
|
24
|
+
const generateAccessToken = async config => {
|
|
19
25
|
let authSuccess = false;
|
|
20
|
-
const {
|
|
26
|
+
const {
|
|
27
|
+
serverType,
|
|
28
|
+
authService,
|
|
29
|
+
isolationId,
|
|
30
|
+
grantType,
|
|
31
|
+
clientId,
|
|
32
|
+
clientSecret,
|
|
33
|
+
user,
|
|
34
|
+
password,
|
|
35
|
+
legacyTLS
|
|
36
|
+
} = config;
|
|
21
37
|
// Try to gracefully deal with missing trailing slashes for server (and later conditionally for redirectUri)
|
|
22
38
|
const server = config.server.endsWith('/') ? config.server : `${config.server}/`;
|
|
23
39
|
|
|
24
40
|
return new Promise((resolve, reject) => {
|
|
25
41
|
const sTokenUri = `${server}${serverType === 'infinity' ? INF_TOKEN_URL_V1 : LP_TOKEN_URL}`;
|
|
26
|
-
const sAuthorizeUri = `${server}${
|
|
42
|
+
const sAuthorizeUri = `${server}${
|
|
43
|
+
serverType === 'infinity' ? INF_AUTHORIZE_URL_V1 : LP_AUTHORIZE_URL
|
|
44
|
+
}`;
|
|
27
45
|
// console.log(`grantType: ${config.grantType}`);
|
|
28
46
|
const browserAuthSuccessMarkup = `<div style="width: 300px; padding: 10px;">
|
|
29
47
|
<svg xmlns="http://www. w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 311 68" version="1.1">
|
|
@@ -53,7 +71,9 @@ const generateAccessToken = async (config) => {
|
|
|
53
71
|
grantType === 'authCode'
|
|
54
72
|
? {
|
|
55
73
|
authorizeUri: sAuthorizeUri,
|
|
56
|
-
redirectUri: config.redirectUri.endsWith('/')
|
|
74
|
+
redirectUri: config.redirectUri.endsWith('/')
|
|
75
|
+
? config.redirectUri
|
|
76
|
+
: `${config.redirectUri}/`,
|
|
57
77
|
cert: config.cert,
|
|
58
78
|
key: config.key,
|
|
59
79
|
winTitle: 'DX Component Dev',
|
|
@@ -70,6 +90,7 @@ const generateAccessToken = async (config) => {
|
|
|
70
90
|
clientId,
|
|
71
91
|
clientSecret,
|
|
72
92
|
ignoreInvalidCerts: true,
|
|
93
|
+
useNodeFetch: true,
|
|
73
94
|
...authCodeConfig
|
|
74
95
|
};
|
|
75
96
|
if (legacyTLS) {
|
|
@@ -90,16 +111,18 @@ const generateAccessToken = async (config) => {
|
|
|
90
111
|
const auth = new PegaAuth(authConfig);
|
|
91
112
|
if (grantType === 'authCode') {
|
|
92
113
|
console.log(
|
|
93
|
-
`${chalk.green(
|
|
114
|
+
`${chalk.green(
|
|
115
|
+
'Awaiting authorization to complete (Ctrl-C to exit). You may need to enter credentials within your default browser.'
|
|
116
|
+
)}`
|
|
94
117
|
);
|
|
95
118
|
}
|
|
96
119
|
// console.log(`authConfig: ${JSON.stringify(authConfig)}`);
|
|
97
120
|
|
|
98
121
|
auth
|
|
99
122
|
.login()
|
|
100
|
-
.then(
|
|
123
|
+
.then(token => {
|
|
101
124
|
if (token?.token_type) {
|
|
102
|
-
fs.writeFile(TOKEN_PATH, JSON.stringify(token),
|
|
125
|
+
fs.writeFile(TOKEN_PATH, JSON.stringify(token), err => {
|
|
103
126
|
if (err) {
|
|
104
127
|
console.error(err);
|
|
105
128
|
return reject(authSuccess);
|
|
@@ -109,11 +132,15 @@ const generateAccessToken = async (config) => {
|
|
|
109
132
|
return resolve(authSuccess);
|
|
110
133
|
});
|
|
111
134
|
} else {
|
|
112
|
-
console.log(
|
|
135
|
+
console.log(
|
|
136
|
+
`${chalk.bold.red(
|
|
137
|
+
`Authentication failed:${JSON.stringify(token.errors ? token.errors : token)}`
|
|
138
|
+
)}`
|
|
139
|
+
);
|
|
113
140
|
return reject(authSuccess);
|
|
114
141
|
}
|
|
115
142
|
})
|
|
116
|
-
.catch(
|
|
143
|
+
.catch(e => {
|
|
117
144
|
console.log(`${chalk.bold.red(`Authentication failed:${e}`)}`);
|
|
118
145
|
return reject(authSuccess);
|
|
119
146
|
});
|
|
@@ -124,7 +151,7 @@ const generateAccessToken = async (config) => {
|
|
|
124
151
|
});
|
|
125
152
|
};
|
|
126
153
|
|
|
127
|
-
export default async
|
|
154
|
+
export default async options => {
|
|
128
155
|
let authOK = false;
|
|
129
156
|
|
|
130
157
|
showVersion();
|
|
@@ -151,7 +178,18 @@ export default async (options) => {
|
|
|
151
178
|
const answers = await inquirer.prompt(questions);
|
|
152
179
|
const aAsked = answers.aAsked;
|
|
153
180
|
delete answers.aAsked;
|
|
154
|
-
const aProps = [
|
|
181
|
+
const aProps = [
|
|
182
|
+
'serverType',
|
|
183
|
+
'server',
|
|
184
|
+
'isolationId',
|
|
185
|
+
'clientId',
|
|
186
|
+
'grantType',
|
|
187
|
+
'authService',
|
|
188
|
+
'redirectUri',
|
|
189
|
+
'clientSecret',
|
|
190
|
+
'user',
|
|
191
|
+
'password'
|
|
192
|
+
];
|
|
155
193
|
const isLaunchPad = answers.serverType === 'launchpad';
|
|
156
194
|
let bWriteUpdate = false;
|
|
157
195
|
for (let i = 0; i < aProps.length; i += 1) {
|
|
@@ -169,7 +207,9 @@ export default async (options) => {
|
|
|
169
207
|
}
|
|
170
208
|
// Update the askedOnce array based on askOnce criteria
|
|
171
209
|
const aAskOnce = serverConfig.questions_askOnce ? serverConfig.questions_askOnce.split(',') : [];
|
|
172
|
-
const aAskedOnce = serverConfig.questions_askedOnce
|
|
210
|
+
const aAskedOnce = serverConfig.questions_askedOnce
|
|
211
|
+
? serverConfig.questions_askedOnce.split(',')
|
|
212
|
+
: [];
|
|
173
213
|
let bAskedOnceUpdated = false;
|
|
174
214
|
for (let j = 0; j < aAsked.length; j += 1) {
|
|
175
215
|
const prop = aAsked[j];
|
|
@@ -202,7 +242,7 @@ export default async (options) => {
|
|
|
202
242
|
try {
|
|
203
243
|
updCfg = JSON.stringify(data, null, 2);
|
|
204
244
|
// console.log(`updated config: ${updCfg}`);
|
|
205
|
-
fs.writeFileSync(pegaConfigJsonPath, updCfg,
|
|
245
|
+
fs.writeFileSync(pegaConfigJsonPath, updCfg, err => {
|
|
206
246
|
if (err) throw err;
|
|
207
247
|
});
|
|
208
248
|
} catch (e) {}
|
|
@@ -316,6 +316,18 @@ export default (
|
|
|
316
316
|
contextRegExp: /@pega\\cosmos-react-core\\lib\\components\\Icon$/
|
|
317
317
|
}),
|
|
318
318
|
|
|
319
|
+
/* Ignore cosmos streamline-icons */
|
|
320
|
+
new webpack.IgnorePlugin({
|
|
321
|
+
resourceRegExp: /^\.\/streamline-icons$/,
|
|
322
|
+
contextRegExp: /@pega\/cosmos-react-core\/lib\/components\/Icon$/
|
|
323
|
+
}),
|
|
324
|
+
|
|
325
|
+
/* Ignore cosmos streamline-icons - windows */
|
|
326
|
+
new webpack.IgnorePlugin({
|
|
327
|
+
resourceRegExp: /^\.\/streamline-icons$/,
|
|
328
|
+
contextRegExp: /@pega\\cosmos-react-core\\lib\\components\\Icon$/
|
|
329
|
+
}),
|
|
330
|
+
|
|
319
331
|
new webpack.optimize.LimitChunkCountPlugin({
|
|
320
332
|
maxChunks: 1
|
|
321
333
|
}),
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
1
2
|
import {
|
|
2
3
|
Checkbox as CosmosCheckbox,
|
|
3
4
|
CheckboxGroup,
|
|
@@ -144,7 +145,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
144
145
|
variant: 'inline',
|
|
145
146
|
displayValue: 'Yes/No',
|
|
146
147
|
trueLabel: '',
|
|
147
|
-
falseLabel: ''
|
|
148
|
+
falseLabel: ''
|
|
148
149
|
};
|
|
149
150
|
|
|
150
151
|
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
import { configProps, stateProps } from './mock.stories';
|
|
3
6
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
import { configProps, stateProps } from './mock.stories';
|
|
3
6
|
import {{COMPONENT_CLASS_NAME}} from './index.jsx';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
|
|
3
6
|
import { configProps, fieldMetadata, stateProps } from './mock.stories.js';
|
package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
|
|
3
6
|
import { configProps, fieldMetadata, stateProps } from './mock.stories.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
1
2
|
import { useState, useEffect } from 'react';
|
|
2
3
|
import {
|
|
3
4
|
CurrencyInput as CosmosCurrency,
|
|
@@ -263,8 +264,7 @@ const {{COMPONENT_CLASS_NAME}} = props => {
|
|
|
263
264
|
currencyDecimalPrecision: 'auto',
|
|
264
265
|
isTableFormatter: false,
|
|
265
266
|
alwaysShowISOCode: false,
|
|
266
|
-
hasSuggestions: false
|
|
267
|
-
fieldMetadata: {}
|
|
267
|
+
hasSuggestions: false
|
|
268
268
|
};
|
|
269
269
|
|
|
270
270
|
{{COMPONENT_CLASS_NAME}}.propTypes = {
|
package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
|
|
3
6
|
import { configProps, stateProps, fieldMetadata } from './mock.stories.js';
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
2
|
+
/* eslint-disable storybook/prefer-pascal-case */
|
|
3
|
+
/* eslint-disable react/jsx-no-useless-fragment */
|
|
1
4
|
import { withKnobs } from '@storybook/addon-knobs';
|
|
2
5
|
|
|
3
6
|
import { stateProps, configProps, fieldMetadata } from './mock.stories';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable import/no-relative-packages */
|
|
1
2
|
import { useState, useEffect, useRef } from 'react';
|
|
2
3
|
import { TextArea as CosmosTextArea, FieldValueList, ParagraphDisplay, Text, EmailDisplay, PhoneDisplay, URLDisplay } from '@pega/cosmos-react-core';
|
|
3
4
|
import PropTypes from 'prop-types';
|