@pega/dx-component-builder-sdk 0.1.19 → 0.1.21
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 +1 -1
- package/src/constants.js +4 -0
- package/src/tasks/build-all/helper.js +1 -6
- package/src/tasks/create/index.js +15 -7
- package/src/tasks/delete/helper.js +1 -4
- package/src/tasks/delete/index.js +0 -2
- package/src/tasks/delete-all/helper.js +1 -4
- package/src/tasks/delete-all/index.js +0 -2
- package/src/tasks/generate-missing-companions/index.js +1 -3
- package/src/tasks/list/helper.js +1 -1
- package/src/tasks/list/index.js +0 -1
- package/src/tasks/map-all/helper.js +0 -8
- package/src/tasks/map-all/index.js +0 -4
- package/src/tasks/override/index.js +18 -12
- package/src/tasks/publish/helper.js +6 -3
- package/src/tasks/publish/index.js +5 -1
- package/src/tasks/publish-all/helper.js +7 -4
- package/src/tasks/publish-all/index.js +5 -1
- package/src/tasks/validator/index.js +1 -3
- package/src/util.js +0 -15
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/Boolean.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/boolean-format.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/DateFormatter.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/FormattedText.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/date.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Date/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-time.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Currency/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Decimal-Percentage/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Integer/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/StatusWork.jsx +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/event-utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/Text-URL/text-url.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/suggestions-handler.js +0 -0
- /package/src/tasks/create/templates/Constellation/{Field → field}/TimeofDay/time-of-day.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/OneColumnDetails.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/StatusWork.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS/utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/StatusWork.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/TwoColumnDetails.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/DETAILS-region/utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/DefaultForm.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/TwoColumn.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/FORM-region/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/GetNextWork.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/localizations.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Template → template}/PAGE/utils.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/CASE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/Avatar.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/Operator.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/index.jsx.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/Constellation/{Widget → widget}/PAGE-CASE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-Angular/{Field → field}/__components.md +0 -0
- /package/src/tasks/create/templates/SDK-Angular/{Template → template}/__components.md +0 -0
- /package/src/tasks/create/templates/SDK-Angular/{Widget → widget}/__components.md +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Boolean/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Date/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/DateTime/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Currency/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Decimal-Percentage/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Integer/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Picklist/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Email/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Input/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Paragraph/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-Phone/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/Text-URL/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Field → field}/TimeofDay/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/DefaultForm.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/TwoColumnDetails.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/DETAILS-region/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/DefaultForm.css +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/DefaultForm.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/TwoColumn.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/FORM-region/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/OneColumn.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Template → template}/PAGE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/CASE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/OneColumnPage.svg +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/config.json.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/demo.stories.jsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/index.tsx.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/mock.stories.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-React/{Widget → widget}/PAGE-CASE/styles.js.mustache +0 -0
- /package/src/tasks/create/templates/SDK-WebComponents/{Field → field}/__components.md +0 -0
- /package/src/tasks/create/templates/SDK-WebComponents/{Template → template}/__components.md +0 -0
- /package/src/tasks/create/templates/SDK-WebComponents/{Widget → widget}/__components.md +0 -0
package/package.json
CHANGED
package/src/constants.js
CHANGED
|
@@ -19,6 +19,10 @@ export const COMPONENT_PREFIX_WIDGET_PATH = "widget/";
|
|
|
19
19
|
export const COMPONENT_PREFIX_DSE_PATH = "designSystemExtension/";
|
|
20
20
|
export const COMPONENT_PREFIX_INFRA_PATH = "infra/";
|
|
21
21
|
|
|
22
|
+
export const CUSTOM_TEMPLATE_PATH = 'customTemplatesPath';
|
|
23
|
+
export const OVERRIDE_TEMPLATE_PATH = 'overrideTemplatesPath';
|
|
24
|
+
export const OVERRIDE_LIB_PATH = 'node_modules/@pega/react-sdk-overrides/lib';
|
|
25
|
+
|
|
22
26
|
export const COMPONENT_DIRECTORY_PREFIX_CUSTOM = "/custom-";
|
|
23
27
|
|
|
24
28
|
export const CATEGORY_CUSTOM = "custom";
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import https from 'https';
|
|
4
3
|
|
|
5
|
-
import fetch from 'node-fetch';
|
|
6
4
|
import AdmZip from 'adm-zip';
|
|
7
5
|
import chalk from 'chalk';
|
|
8
6
|
|
|
9
7
|
import {
|
|
10
|
-
constructCompleteUrl,
|
|
11
8
|
getComponentDirectoryPath,
|
|
12
|
-
getComponents,
|
|
13
9
|
getComponentsObj,
|
|
14
10
|
getPegaServerConfig,
|
|
15
|
-
validateRulesetVersion,
|
|
16
11
|
getOptionsCategory,
|
|
17
12
|
} from '../../util.js';
|
|
18
|
-
import {
|
|
13
|
+
import { COMPONENT_SCHEMA, CATEGORY_CUSTOM } from '../../constants.js';
|
|
19
14
|
|
|
20
15
|
|
|
21
16
|
export const getBuildCategory = async (options) => {
|
|
@@ -8,8 +8,12 @@ import inquirer from 'inquirer';
|
|
|
8
8
|
import ncp from 'ncp';
|
|
9
9
|
import chalk from 'chalk';
|
|
10
10
|
|
|
11
|
-
import { checkPathAccess,
|
|
12
|
-
import { CATEGORY_CONSTELLATION,
|
|
11
|
+
import { checkPathAccess, showVersion } from '../../util.js';
|
|
12
|
+
import { CATEGORY_CONSTELLATION,
|
|
13
|
+
SDK_CONFIG_JSON_FILENAME,
|
|
14
|
+
DXCB_CONFIG,
|
|
15
|
+
DXCB_COMPONENT_DEFAULTS,
|
|
16
|
+
CUSTOM_TEMPLATE_PATH } from '../../constants.js';
|
|
13
17
|
|
|
14
18
|
|
|
15
19
|
|
|
@@ -152,6 +156,8 @@ export const validateCompile = async (
|
|
|
152
156
|
sSubType = subtype.join("-");
|
|
153
157
|
}
|
|
154
158
|
|
|
159
|
+
const typeLC = type.toLowerCase();
|
|
160
|
+
|
|
155
161
|
await checkPathAccess(pegaConfigInternalJsonPath);
|
|
156
162
|
|
|
157
163
|
let internalData = fs.readFileSync(pegaConfigInternalJsonPath, { encoding: 'utf8' });
|
|
@@ -161,19 +167,21 @@ export const validateCompile = async (
|
|
|
161
167
|
|
|
162
168
|
let pegaConfig = await getPegaConfig();
|
|
163
169
|
let templateParentDir = `./templates/${framework}`;
|
|
164
|
-
if (pegaConfig[
|
|
165
|
-
|
|
170
|
+
if (pegaConfig[DXCB_CONFIG] &&
|
|
171
|
+
pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH] &&
|
|
172
|
+
pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH] != "") {
|
|
173
|
+
templateParentDir = pegaConfig[DXCB_CONFIG][CUSTOM_TEMPLATE_PATH];
|
|
166
174
|
}
|
|
167
175
|
|
|
168
|
-
const templateDir = `${templateParentDir}/${
|
|
176
|
+
const templateDir = `${templateParentDir}/${typeLC}/${sSubType}`;
|
|
169
177
|
const templateDirectory = fileURLToPath(new URL(templateDir, import.meta.url));
|
|
170
178
|
|
|
171
|
-
const templateDirConstellation = `./templates/Constellation/${
|
|
179
|
+
const templateDirConstellation = `./templates/Constellation/${typeLC}/${sSubType}`;
|
|
172
180
|
const templateDirectoryConstellation = fileURLToPath(new URL(templateDirConstellation, import.meta.url));
|
|
173
181
|
|
|
174
182
|
const componentKey = `${organization}_${library}_${componentName}`;
|
|
175
183
|
|
|
176
|
-
|
|
184
|
+
|
|
177
185
|
const targetDirectory = await getComponentDirectoryPath(join(typeLC, "/",componentKey));
|
|
178
186
|
const targetDirectoryConstellation = await getComponentDirectoryPath(join(typeLC, "/",componentKey), CATEGORY_CONSTELLATION);
|
|
179
187
|
|
|
@@ -5,13 +5,10 @@ import ora from 'ora';
|
|
|
5
5
|
|
|
6
6
|
import { LIST_COMPONENT_SERVICE_REST_ENDPOINT, COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../../constants.js';
|
|
7
7
|
import {
|
|
8
|
-
constructCompleteUrl,
|
|
9
8
|
deleteLocalComponent,
|
|
10
9
|
deleteServerComponent,
|
|
11
10
|
getComponentsObj,
|
|
12
|
-
getPegaServerConfig
|
|
13
|
-
nodeFetch,
|
|
14
|
-
getOptionsCategory
|
|
11
|
+
getPegaServerConfig
|
|
15
12
|
} from '../../util.js';
|
|
16
13
|
import { getComponentsFromServer } from '../list/helper.js';
|
|
17
14
|
|
|
@@ -2,16 +2,13 @@ import chalk from 'chalk';
|
|
|
2
2
|
import inquirer from 'inquirer';
|
|
3
3
|
import ora from 'ora';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM, CATEGORY_OVERRIDE } from '../..//constants.js';
|
|
6
6
|
import {
|
|
7
|
-
constructCompleteUrl,
|
|
8
7
|
deleteLocalComponent,
|
|
9
8
|
deleteServerComponent,
|
|
10
|
-
getComponents,
|
|
11
9
|
getComponentsObj,
|
|
12
10
|
getPegaServerConfig,
|
|
13
11
|
validateRulesetVersion,
|
|
14
|
-
nodeFetch,
|
|
15
12
|
getOptionsCategory
|
|
16
13
|
} from '../../util.js';
|
|
17
14
|
import { getComponentsFromServer } from '../list/helper.js';
|
|
@@ -5,12 +5,10 @@ import chalk from 'chalk';
|
|
|
5
5
|
import { validateCompile } from '../create/index.js';
|
|
6
6
|
import {
|
|
7
7
|
showVersion,
|
|
8
|
-
getComponents,
|
|
9
|
-
getComponentsObj,
|
|
10
8
|
getComponentDirectoryPath,
|
|
11
9
|
getComponentsAndSubDirectory
|
|
12
10
|
} from '../../util.js';
|
|
13
|
-
import {CATEGORY_CONSTELLATION, CATEGORY_CUSTOM
|
|
11
|
+
import {CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../..//constants.js';
|
|
14
12
|
import { or } from 'ajv/dist/compile/codegen/index.js';
|
|
15
13
|
|
|
16
14
|
export const DXCB_CONFIG_INTERNAL_JSON_FILENAME = 'src/dxcb.config.json';
|
package/src/tasks/list/helper.js
CHANGED
|
@@ -5,7 +5,7 @@ import chalk from 'chalk';
|
|
|
5
5
|
import fetch from 'node-fetch';
|
|
6
6
|
|
|
7
7
|
import { LIST_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH, COMPONENT_SCHEMA, CATEGORY_CUSTOM } from '../../constants.js';
|
|
8
|
-
import { constructCompleteUrl, getComponents, getPegaServerConfig
|
|
8
|
+
import { constructCompleteUrl, getComponents, getPegaServerConfig } from '../../util.js';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
export const SOURCE_OF_COMPONENT_TYPES = {
|
package/src/tasks/list/index.js
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import https from 'https';
|
|
4
|
-
|
|
5
|
-
import fetch from 'node-fetch';
|
|
6
|
-
import AdmZip from 'adm-zip';
|
|
7
|
-
import chalk from 'chalk';
|
|
8
1
|
|
|
9
2
|
import {
|
|
10
|
-
getComponentDirectoryPath,
|
|
11
3
|
getOptionsCategory
|
|
12
4
|
} from '../../util.js';
|
|
13
5
|
import { COMPONENT_SCHEMA, CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
|
|
@@ -2,12 +2,8 @@ import inquirer from 'inquirer';
|
|
|
2
2
|
import Listr from 'listr';
|
|
3
3
|
import chalk from 'chalk';
|
|
4
4
|
|
|
5
|
-
import validate from '../validator/index.js';
|
|
6
5
|
import { showVersion, getOptionsCategory, getComponentsObj } from '../../util.js';
|
|
7
6
|
import { updateComponentMap } from '../map/map.js';
|
|
8
|
-
import { CATEGORY_CUSTOM } from '../../constants.js';
|
|
9
|
-
|
|
10
|
-
|
|
11
7
|
import { getBuildCategory } from './helper.js';
|
|
12
8
|
|
|
13
9
|
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
|
-
import { URL, fileURLToPath } from 'url';
|
|
3
2
|
import fs from 'fs';
|
|
4
3
|
import { promisify } from 'util';
|
|
5
|
-
import { createRequire } from "module";
|
|
6
4
|
import { join } from 'path';
|
|
7
5
|
|
|
8
6
|
import inquirer from 'inquirer';
|
|
@@ -10,17 +8,20 @@ import ncp from 'ncp';
|
|
|
10
8
|
import chalk from 'chalk';
|
|
11
9
|
import { updateComponentMap } from '../map/map.js';
|
|
12
10
|
|
|
13
|
-
import { checkPathAccess,
|
|
11
|
+
import { checkPathAccess, showVersion, getPegaConfig } from '../../util.js';
|
|
14
12
|
import {
|
|
15
|
-
convertIntoPascalCase,
|
|
16
|
-
compileMustacheTemplate,
|
|
17
13
|
getComponentDirectoryPath,
|
|
18
14
|
getComponents,
|
|
19
|
-
getComponentDefaults
|
|
20
|
-
sanitize,
|
|
21
|
-
validateSemver
|
|
15
|
+
getComponentDefaults
|
|
22
16
|
} from '../../util.js';
|
|
23
|
-
|
|
17
|
+
|
|
18
|
+
import { COMPONENT_SCHEMA,
|
|
19
|
+
CATEGORY_OVERRIDE,
|
|
20
|
+
SDK_CONFIG_JSON_FILENAME,
|
|
21
|
+
DXCB_CONFIG,
|
|
22
|
+
DXCB_COMPONENT_DEFAULTS,
|
|
23
|
+
OVERRIDE_TEMPLATE_PATH,
|
|
24
|
+
OVERRIDE_LIB_PATH } from '../../constants.js';
|
|
24
25
|
|
|
25
26
|
const pegaConfigJsonPath = path.join(path.resolve(), SDK_CONFIG_JSON_FILENAME);
|
|
26
27
|
|
|
@@ -106,11 +107,16 @@ const validateCompile = async (
|
|
|
106
107
|
|
|
107
108
|
let pegaConfig =
|
|
108
109
|
await getPegaConfig();
|
|
109
|
-
let templateParentDir =
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
let templateParentDir = OVERRIDE_LIB_PATH;
|
|
111
|
+
|
|
112
|
+
if (pegaConfig[DXCB_CONFIG] &&
|
|
113
|
+
pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH] &&
|
|
114
|
+
pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH] != "") {
|
|
115
|
+
templateParentDir = pegaConfig[DXCB_CONFIG][OVERRIDE_TEMPLATE_PATH];
|
|
112
116
|
}
|
|
113
117
|
|
|
118
|
+
|
|
119
|
+
|
|
114
120
|
// componentName has sub directory if components are in a sub directory of main "type"
|
|
115
121
|
const overrideDirectory = `${templateParentDir}/${type}/${componentName}`;
|
|
116
122
|
|
|
@@ -9,14 +9,17 @@ import chalk from 'chalk';
|
|
|
9
9
|
import {
|
|
10
10
|
constructCompleteUrl,
|
|
11
11
|
getComponentDirectoryPath,
|
|
12
|
-
getComponents,
|
|
13
12
|
getComponentsObj,
|
|
14
|
-
getComponentsAndSubDirectory,
|
|
15
13
|
getPegaServerConfig,
|
|
16
14
|
validateRulesetVersion,
|
|
17
15
|
getOptionsCategory
|
|
18
16
|
} from '../../util.js';
|
|
19
|
-
|
|
17
|
+
|
|
18
|
+
import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
19
|
+
TOKEN_PATH,
|
|
20
|
+
COMPONENT_SCHEMA,
|
|
21
|
+
CATEGORY_CONSTELLATION,
|
|
22
|
+
CATEGORY_CUSTOM } from '../../constants.js';
|
|
20
23
|
|
|
21
24
|
|
|
22
25
|
export const mapConfigJsonToCompanion = async ( componentKey ) => {
|
|
@@ -10,7 +10,11 @@ import { lintComponent } from '../linter/index.js';
|
|
|
10
10
|
import { CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
import { getPublishComponentQuestions,
|
|
13
|
+
import { getPublishComponentQuestions,
|
|
14
|
+
publishComponentToServer,
|
|
15
|
+
zipComponent,
|
|
16
|
+
getBuildCategory,
|
|
17
|
+
mapConfigJsonToCompanion } from './helper.js';
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
export default async options => {
|
|
@@ -9,14 +9,17 @@ import chalk from 'chalk';
|
|
|
9
9
|
import {
|
|
10
10
|
constructCompleteUrl,
|
|
11
11
|
getComponentDirectoryPath,
|
|
12
|
-
getComponents,
|
|
13
12
|
getComponentsObj,
|
|
14
|
-
getComponentsAndSubDirectory,
|
|
15
|
-
getPegaServerConfig,
|
|
16
13
|
validateRulesetVersion,
|
|
14
|
+
getPegaServerConfig,
|
|
17
15
|
getOptionsCategory
|
|
18
16
|
} from '../../util.js';
|
|
19
|
-
|
|
17
|
+
|
|
18
|
+
import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
|
|
19
|
+
TOKEN_PATH,
|
|
20
|
+
COMPONENT_SCHEMA,
|
|
21
|
+
CATEGORY_CONSTELLATION,
|
|
22
|
+
CATEGORY_CUSTOM } from '../../constants.js';
|
|
20
23
|
|
|
21
24
|
|
|
22
25
|
export const mapConfigJsonToCompanion = async ( componentKey ) => {
|
|
@@ -10,7 +10,11 @@ import { lintComponent } from '../linter/index.js';
|
|
|
10
10
|
import { CATEGORY_CONSTELLATION, CATEGORY_CUSTOM } from '../../constants.js';
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
import { getPublishComponentQuestions,
|
|
13
|
+
import { getPublishComponentQuestions,
|
|
14
|
+
publishComponentToServer,
|
|
15
|
+
zipComponent,
|
|
16
|
+
getBuildCategory,
|
|
17
|
+
mapConfigJsonToCompanion } from './helper.js';
|
|
14
18
|
|
|
15
19
|
|
|
16
20
|
|
|
@@ -7,11 +7,9 @@ import Ajv from 'ajv';
|
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
COMPONENT_SCHEMA,
|
|
10
|
-
COMPONENT_PREFIX_FIELD_PATH,
|
|
11
|
-
COMPONENT_PREFIX_TEMPLATE_PATH,
|
|
12
|
-
COMPONENT_PREFIX_WIDGET_PATH,
|
|
13
10
|
CATEGORY_CUSTOM,
|
|
14
11
|
CATEGORY_OVERRIDE } from '../../constants.js';
|
|
12
|
+
|
|
15
13
|
import {
|
|
16
14
|
getComponentDirectoryPath,
|
|
17
15
|
getComponents,
|
package/src/util.js
CHANGED
|
@@ -4,7 +4,6 @@ import { promisify } from 'util';
|
|
|
4
4
|
import https from 'https';
|
|
5
5
|
import inquirer from 'inquirer';
|
|
6
6
|
import { createRequire } from "module";
|
|
7
|
-
import { URL, fileURLToPath } from 'url';
|
|
8
7
|
|
|
9
8
|
import chalk from 'chalk';
|
|
10
9
|
import mustache from 'mustache';
|
|
@@ -271,20 +270,6 @@ export const getDirectoryFiles = async (directory) => {
|
|
|
271
270
|
.map(dirent => dirent.name);
|
|
272
271
|
}
|
|
273
272
|
|
|
274
|
-
/*
|
|
275
|
-
export const createBlankConfigExt = async (directory, name) => {
|
|
276
|
-
|
|
277
|
-
let fileData = "{";
|
|
278
|
-
fileData = fileData.concat("\n\t");
|
|
279
|
-
fileData = fileData.concat("\"name\" : \"");
|
|
280
|
-
fileData = fileData.concat(`${name}`);
|
|
281
|
-
fileData = fileData.concat("\", \n\t");
|
|
282
|
-
fileData = fileData.concat("\"properties\" : [ ] \n");
|
|
283
|
-
fileData = fileData.concat("}");
|
|
284
|
-
return fs.writeFileSync( join(directory, "/config-ext.json"), fileData, { encoding: 'utf8' });
|
|
285
|
-
}
|
|
286
|
-
*/
|
|
287
|
-
|
|
288
273
|
|
|
289
274
|
export const getComponentsObj = async (showSeparator = false, category = CATEGORY_CUSTOM) => {
|
|
290
275
|
const currentDirectory = process.cwd();
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/Boolean.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/boolean-format.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/config.json.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/index.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/mock.stories.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Boolean/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Date/DateFormatter.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Date/FormattedText.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Date/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Date/mock.stories.js.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Date/suggestions-handler.js
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/config.json.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-time.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/date-utils.js.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/index.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/mock.stories.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/DateTime/suggestions-handler.js
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/config.json.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/index.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/mock.stories.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Decimal/suggestions-handler.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/config.json.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/index.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/mock.stories.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Integer/suggestions-handler.js
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/config.json.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/index.jsx.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/mock.stories.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Picklist/suggestions-handler.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text/demo.stories.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text/mock.stories.js.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/config.json.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/index.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Email/suggestions-handler.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/config.json.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/index.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/styles.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Input/suggestions-handler.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/index.jsx.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Paragraph/styles.js.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/config.json.mustache
RENAMED
|
File without changes
|
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/event-utils.js.mustache
RENAMED
|
File without changes
|
/package/src/tasks/create/templates/Constellation/{Field → field}/Text-Phone/index.jsx.mustache
RENAMED
|
File without changes
|