@pega/custom-dx-components 0.23.19 → 0.23.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.
Files changed (537) hide show
  1. package/package.json +35 -35
  2. package/src/constants.js +14 -3
  3. package/src/tasks/authenticate/helper.js +44 -32
  4. package/src/tasks/authenticate/index.js +4 -1
  5. package/src/tasks/build-all/index.js +1 -1
  6. package/src/tasks/{build → build-comp}/index.js +1 -1
  7. package/src/tasks/create/index.js +20 -7
  8. package/src/tasks/create/templates/Constellation/Field/Boolean/PConnProps.d.ts.mustache +46 -0
  9. package/src/tasks/create/templates/Constellation/Field/Boolean/{boolean-format.js.mustache → boolean-format.ts.mustache} +2 -1
  10. package/src/tasks/create/templates/Constellation/Field/Boolean/demo.stories.jsx.mustache +5 -2
  11. package/src/tasks/create/templates/Constellation/Field/Boolean/event-utils.ts.mustache +18 -0
  12. package/src/tasks/create/templates/Constellation/Field/Boolean/{index.jsx.mustache → index.tsx.mustache} +35 -9
  13. package/src/tasks/create/templates/Constellation/Field/Boolean/{mock.stories.js.mustache → mock.js.mustache} +2 -0
  14. package/src/tasks/create/templates/Constellation/Field/{DateTime/styles.js.mustache → Boolean/styles.ts.mustache} +1 -0
  15. package/src/tasks/create/templates/Constellation/Field/Date/DateFormatter.js.mustache +1 -0
  16. package/src/tasks/create/templates/Constellation/Field/Date/FormattedText.jsx.mustache +1 -0
  17. package/src/tasks/create/templates/Constellation/Field/Date/PConnProps.d.ts.mustache +46 -0
  18. package/src/tasks/create/templates/Constellation/Field/Date/date.js.mustache +1 -1
  19. package/src/tasks/create/templates/Constellation/Field/Date/demo.stories.jsx.mustache +5 -2
  20. package/src/tasks/create/templates/Constellation/Field/Date/{index.jsx.mustache → index.tsx.mustache} +82 -37
  21. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.stories.js → src/tasks/create/templates/Constellation/Field/Date/mock.js.mustache} +2 -0
  22. package/src/tasks/create/templates/Constellation/Field/{Boolean/styles.js.mustache → Date/styles.ts.mustache} +1 -0
  23. package/src/tasks/create/templates/Constellation/Field/Date/suggestions-handler.ts +9 -0
  24. package/src/tasks/create/templates/Constellation/Field/DateTime/PConnProps.d.ts.mustache +46 -0
  25. package/src/tasks/create/templates/Constellation/Field/DateTime/date-time.js.mustache +1 -0
  26. package/src/tasks/create/templates/Constellation/Field/DateTime/date-utils.js.mustache +1 -1
  27. package/src/tasks/create/templates/Constellation/Field/DateTime/date.js.mustache +1 -1
  28. package/src/tasks/create/templates/Constellation/Field/DateTime/demo.stories.jsx.mustache +5 -2
  29. package/src/tasks/create/templates/Constellation/Field/DateTime/{index.jsx.mustache → index.tsx.mustache} +64 -21
  30. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/mock.stories.js → src/tasks/create/templates/Constellation/Field/DateTime/mock.js.mustache} +2 -0
  31. package/src/tasks/create/templates/Constellation/Field/{Decimal-Currency/styles.js.mustache → DateTime/styles.ts.mustache} +1 -0
  32. package/src/tasks/create/templates/Constellation/Field/DateTime/suggestions-handler.ts +10 -0
  33. package/src/tasks/create/templates/Constellation/Field/Decimal/PConnProps.d.ts.mustache +46 -0
  34. package/src/tasks/create/templates/Constellation/Field/Decimal/demo.stories.jsx.mustache +5 -2
  35. package/src/tasks/create/templates/Constellation/Field/Decimal/event-utils.ts.mustache +18 -0
  36. package/src/tasks/create/templates/Constellation/Field/Decimal/{index.jsx.mustache → index.tsx.mustache} +38 -8
  37. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/mock.stories.js → src/tasks/create/templates/Constellation/Field/Decimal/mock.js.mustache} +2 -0
  38. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.ts.mustache +15 -0
  39. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.ts +9 -0
  40. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/PConnProps.d.ts.mustache +46 -0
  41. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/demo.stories.jsx.mustache +5 -2
  42. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.ts.mustache +18 -0
  43. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/{index.jsx.mustache → index.tsx.mustache} +50 -13
  44. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/mock.stories.js → src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.js.mustache} +2 -0
  45. package/src/tasks/create/templates/Constellation/Field/{Date/styles.js.mustache → Decimal-Currency/styles.ts.mustache} +1 -0
  46. package/src/tasks/create/templates/Constellation/Field/Decimal-Currency/suggestions-handler.ts +9 -0
  47. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/PConnProps.d.ts.mustache +46 -0
  48. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/demo.stories.jsx.mustache +5 -2
  49. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.ts.mustache +18 -0
  50. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{index.jsx.mustache → index.tsx.mustache} +37 -7
  51. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/{mock.stories.js.mustache → mock.js.mustache} +2 -0
  52. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.ts.mustache +15 -0
  53. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/suggestions-handler.ts +9 -0
  54. package/src/tasks/create/templates/Constellation/Field/Integer/PConnProps.d.ts.mustache +46 -0
  55. package/src/tasks/create/templates/Constellation/Field/Integer/demo.stories.jsx.mustache +5 -2
  56. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.ts.mustache +18 -0
  57. package/src/tasks/create/templates/Constellation/Field/Integer/{index.jsx.mustache → index.tsx.mustache} +52 -10
  58. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/mock.stories.js → src/tasks/create/templates/Constellation/Field/Integer/mock.js.mustache} +2 -0
  59. package/src/tasks/create/templates/Constellation/Field/Integer/styles.ts.mustache +15 -0
  60. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.ts +9 -0
  61. package/src/tasks/create/templates/Constellation/Field/Picklist/PConnProps.d.ts.mustache +46 -0
  62. package/src/tasks/create/templates/Constellation/Field/Picklist/demo.stories.jsx.mustache +5 -2
  63. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.ts.mustache +18 -0
  64. package/src/tasks/create/templates/Constellation/Field/Picklist/{index.jsx.mustache → index.tsx.mustache} +54 -14
  65. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist/mock.js.mustache} +2 -0
  66. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.ts.mustache +15 -0
  67. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.ts +9 -0
  68. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/PConnProps.d.ts +46 -0
  69. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/component-constants.js +5 -0
  70. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/config.json.mustache +115 -0
  71. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/date.js.mustache +161 -0
  72. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/demo.stories.jsx.mustache +90 -0
  73. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/embed-utils.js.mustache +310 -0
  74. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/event-utils.ts.mustache +18 -0
  75. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/format-constants.js.mustache +41 -0
  76. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/index.tsx.mustache +1238 -0
  77. package/src/tasks/create/templates/Constellation/Field/{Picklist/mock.stories.js.mustache → Picklist-Autocomplete/mock.js.mustache} +2 -0
  78. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/picklist-utils.js.mustache +88 -0
  79. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-constants.js.mustache +20 -0
  80. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/repeat-utils.js.mustache +657 -0
  81. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/styles.ts.mustache +15 -0
  82. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/suggestions-handler.ts.mustache +9 -0
  83. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/textformat-utils.jsx.mustache +161 -0
  84. package/src/tasks/create/templates/Constellation/Field/Picklist-Autocomplete/utils.ts.mustache +218 -0
  85. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/PConnProps.d.ts +46 -0
  86. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/config.json.mustache +113 -0
  87. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/demo.stories.jsx.mustache +85 -0
  88. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/event-utils.ts.mustache +18 -0
  89. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/index.tsx.mustache +243 -0
  90. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.stories.js → src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/mock.js.mustache} +2 -0
  91. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/styles.ts.mustache +15 -0
  92. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/suggestions-handler.ts.mustache +9 -0
  93. package/src/tasks/create/templates/Constellation/Field/Picklist-RadioButtons/textformat-utils.jsx.mustache +161 -0
  94. package/src/tasks/create/templates/Constellation/Field/Text/PConnProps.d.ts +46 -0
  95. package/src/tasks/create/templates/Constellation/Field/Text/demo.stories.jsx.mustache +5 -2
  96. package/src/tasks/create/templates/Constellation/Field/Text/{index.jsx.mustache → index.tsx.mustache} +17 -5
  97. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text/mock.js.mustache} +2 -0
  98. package/src/tasks/create/templates/Constellation/Field/Text/styles.ts.mustache +15 -0
  99. package/src/tasks/create/templates/Constellation/Field/Text-Email/PConnProps.d.ts +46 -0
  100. package/src/tasks/create/templates/Constellation/Field/Text-Email/demo.stories.jsx.mustache +5 -2
  101. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.ts.mustache +18 -0
  102. package/src/tasks/create/templates/Constellation/Field/Text-Email/{index.jsx.mustache → index.tsx.mustache} +30 -11
  103. package/src/tasks/create/templates/Constellation/Field/Text-Email/{mock.stories.js.mustache → mock.js.mustache} +2 -0
  104. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.ts.mustache +15 -0
  105. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.ts.mustache +9 -0
  106. package/src/tasks/create/templates/Constellation/Field/Text-Input/PConnProps.d.ts.mustache +46 -0
  107. package/src/tasks/create/templates/Constellation/Field/Text-Input/StatusWork.tsx +30 -0
  108. package/src/tasks/create/templates/Constellation/Field/Text-Input/demo.stories.jsx.mustache +5 -2
  109. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.ts.mustache +18 -0
  110. package/src/tasks/create/templates/Constellation/Field/Text-Input/{index.jsx.mustache → index.tsx.mustache} +54 -30
  111. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-Input/mock.js.mustache} +2 -0
  112. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.ts.mustache +15 -0
  113. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.ts.mustache +9 -0
  114. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/PConnProps.d.ts.mustache +46 -0
  115. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/demo.stories.jsx.mustache +5 -2
  116. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.ts.mustache +18 -0
  117. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/{index.jsx.mustache → index.tsx.mustache} +30 -12
  118. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.js.mustache} +2 -0
  119. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.ts.mustache +15 -0
  120. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.ts.mustache +9 -0
  121. package/src/tasks/create/templates/Constellation/Field/Text-Phone/PConnProps.d.ts.mustache +46 -0
  122. package/src/tasks/create/templates/Constellation/Field/Text-Phone/demo.stories.jsx.mustache +5 -2
  123. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.ts.mustache +18 -0
  124. package/src/tasks/create/templates/Constellation/Field/Text-Phone/{index.jsx.mustache → index.tsx.mustache} +37 -15
  125. package/src/tasks/create/templates/Constellation/Field/Text-Phone/{mock.stories.js.mustache → mock.js.mustache} +2 -0
  126. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.ts.mustache +15 -0
  127. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.ts.mustache +9 -0
  128. package/src/tasks/create/templates/Constellation/Field/Text-URL/PConnProps.d.ts.mustache +46 -0
  129. package/src/tasks/create/templates/Constellation/Field/Text-URL/demo.stories.jsx.mustache +5 -2
  130. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.ts.mustache +18 -0
  131. package/src/tasks/create/templates/Constellation/Field/Text-URL/{index.jsx.mustache → index.tsx.mustache} +39 -10
  132. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/mock.stories.js → src/tasks/create/templates/Constellation/Field/Text-URL/mock.js.mustache} +2 -0
  133. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.ts.mustache +15 -0
  134. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.ts.mustache +9 -0
  135. package/src/tasks/create/templates/Constellation/Field/Text-URL/text-url.jsx.mustache +2 -0
  136. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/PConnProps.d.ts.mustache +46 -0
  137. package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/demo.stories.jsx.mustache +5 -2
  138. package/src/tasks/create/templates/Constellation/Field/{TimeofDay/index.jsx.mustache → TimeOfDay/index.tsx.mustache} +46 -15
  139. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.stories.js → src/tasks/create/templates/Constellation/Field/TimeOfDay/mock.js.mustache} +2 -0
  140. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/styles.ts.mustache +15 -0
  141. package/src/tasks/create/templates/Constellation/Field/TimeOfDay/suggestions-handler.ts.mustache +9 -0
  142. package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/time-of-day.js.mustache +0 -1
  143. package/src/tasks/create/templates/Constellation/Template/DETAILS/PConnProps.d.ts.mustache +46 -0
  144. package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/StatusWork.jsx.mustache → DETAILS/StatusWork.tsx.mustache} +2 -2
  145. package/src/tasks/create/templates/Constellation/Template/DETAILS/demo.stories.jsx.mustache +9 -7
  146. package/src/tasks/create/templates/Constellation/Template/{DETAILS-region/index.jsx.mustache → DETAILS/index.tsx.mustache} +22 -4
  147. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.stories.js → src/tasks/create/templates/Constellation/Template/DETAILS/mock.js.mustache} +3 -0
  148. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.ts.mustache +15 -0
  149. package/src/tasks/create/templates/Constellation/Template/DETAILS/utils.js.mustache +2 -3
  150. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/PConnProps.d.ts.mustache +46 -0
  151. package/src/tasks/create/templates/Constellation/{Field/Text-Input/StatusWork.jsx → Template/DETAILS-region/StatusWork.tsx.mustache} +2 -2
  152. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/demo.stories.jsx.mustache +4 -3
  153. package/src/tasks/create/templates/Constellation/Template/{DETAILS/index.jsx.mustache → DETAILS-region/index.tsx.mustache} +21 -4
  154. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/{mock.stories.js.mustache → mock.js.mustache} +2 -0
  155. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.ts.mustache +15 -0
  156. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/utils.js.mustache +0 -4
  157. package/src/tasks/create/templates/Constellation/Template/FORM/PConnProps.d.ts.mustache +46 -0
  158. package/src/tasks/create/templates/Constellation/Template/FORM/demo.stories.jsx.mustache +17 -12
  159. package/src/tasks/create/templates/Constellation/Template/FORM/{index.jsx.mustache → index.tsx.mustache} +11 -6
  160. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.stories.js → src/tasks/create/templates/Constellation/Template/FORM/mock.js.mustache} +2 -0
  161. package/src/tasks/create/templates/Constellation/Template/FORM/styles.ts.mustache +15 -0
  162. package/src/tasks/create/templates/Constellation/Template/FORM-region/PConnProps.d.ts.mustache +46 -0
  163. package/src/tasks/create/templates/Constellation/Template/FORM-region/demo.stories.jsx.mustache +8 -7
  164. package/src/tasks/create/templates/Constellation/Template/FORM-region/{index.jsx.mustache → index.tsx.mustache} +14 -2
  165. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.stories.js → src/tasks/create/templates/Constellation/Template/FORM-region/mock.js.mustache} +2 -0
  166. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.ts.mustache +15 -0
  167. package/src/tasks/create/templates/Constellation/Template/PAGE/{GetNextWork.jsx.mustache → GetNextWork.tsx.mustache} +13 -5
  168. package/src/tasks/create/templates/Constellation/Template/PAGE/PConnProps.d.ts.mustache +46 -0
  169. package/src/tasks/create/templates/Constellation/Template/PAGE/demo.stories.jsx.mustache +5 -2
  170. package/src/tasks/create/templates/Constellation/Template/PAGE/{index.jsx.mustache → index.tsx.mustache} +18 -5
  171. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.stories.js → src/tasks/create/templates/Constellation/Template/PAGE/mock.js.mustache} +2 -0
  172. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.ts.mustache +15 -0
  173. package/src/tasks/create/templates/Constellation/Template/PAGE/utils.js.mustache +1 -3
  174. package/src/tasks/create/templates/Constellation/Widget/CASE/PConnProps.d.ts.mustache +46 -0
  175. package/src/tasks/create/templates/Constellation/Widget/CASE/demo.stories.jsx.mustache +5 -2
  176. package/src/tasks/create/templates/Constellation/Widget/CASE/{index.jsx.mustache → index.tsx.mustache} +19 -9
  177. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.stories.js → src/tasks/create/templates/Constellation/Widget/CASE/mock.js.mustache} +1 -0
  178. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.ts.mustache +15 -0
  179. package/src/tasks/create/templates/Constellation/Widget/PAGE/PConnProps.d.ts.mustache +46 -0
  180. package/src/tasks/create/templates/Constellation/Widget/PAGE/demo.stories.jsx.mustache +5 -2
  181. package/src/tasks/create/templates/Constellation/Widget/PAGE/{index.jsx.mustache → index.tsx.mustache} +14 -1
  182. package/src/tasks/create/templates/Constellation/Widget/PAGE/{mock.stories.js.mustache → mock.js.mustache} +1 -0
  183. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.ts.mustache +15 -0
  184. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Avatar.jsx.mustache → Avatar.tsx.mustache} +21 -9
  185. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{Operator.jsx.mustache → Operator.tsx.mustache} +30 -8
  186. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/PConnProps.d.ts.mustache +46 -0
  187. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/demo.stories.jsx.mustache +4 -2
  188. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/{index.jsx.mustache → index.tsx.mustache} +25 -3
  189. package/{tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.stories.js → src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.js.mustache} +2 -0
  190. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.ts.mustache +15 -0
  191. package/src/tasks/create/templates/Launchpad/Widget/CASE/demo.stories.jsx.mustache +5 -2
  192. package/src/tasks/create/templates/Launchpad/Widget/CASE/index.jsx.mustache +0 -1
  193. package/src/tasks/create/templates/Launchpad/Widget/CASE/{mock.stories.js.mustache → mock.js.mustache} +1 -0
  194. package/src/tasks/create/templates/Launchpad/Widget/CASE/styles.js.mustache +1 -0
  195. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Avatar.jsx.mustache +2 -3
  196. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/Operator.jsx.mustache +1 -1
  197. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/demo.stories.jsx.mustache +4 -2
  198. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/index.jsx.mustache +1 -1
  199. package/{tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.stories.js → src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.js.mustache} +2 -0
  200. package/src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/styles.js.mustache +1 -0
  201. package/src/tasks/create-all/index.js +9 -1
  202. package/src/tasks/index.js +1 -1
  203. package/src/tasks/init/helper.js +0 -1
  204. package/src/tasks/init/index.js +31 -16
  205. package/src/tasks/init/template/.eslintrc.json +15 -10
  206. package/src/tasks/init/template/.storybook/main.js +12 -0
  207. package/src/tasks/init/template/.storybook/preview.js +14 -0
  208. package/src/tasks/init/template/package.json.mustache +36 -35
  209. package/src/tasks/publish/helper.js +34 -14
  210. package/src/tasks/publish/index.js +1 -1
  211. package/src/tasks/publish-all/helper.js +42 -16
  212. package/src/tasks/publish-all/index.js +1 -1
  213. package/src/tasks/revert-webpack/index.js +5 -7
  214. package/src/tasks/upgrade/index.js +1 -1
  215. package/src/util.js +68 -44
  216. package/tests/assets/components/create/Pega_DXIL_MyTestText/demo.stories.jsx +18 -9
  217. package/tests/assets/components/create/Pega_DXIL_MyTestText/{mock.stories.js → mock.js} +2 -0
  218. package/tests/assets/components/create/Pega_DXIL_MyTestText/styles.js +1 -0
  219. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
  220. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/config.json +115 -0
  221. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/date.js +161 -0
  222. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/demo.stories.jsx +91 -0
  223. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
  224. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
  225. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
  226. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/mock.js +69 -0
  227. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
  228. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
  229. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
  230. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/styles.js +15 -0
  231. package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
  232. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
  233. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/utils.js +182 -0
  234. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
  235. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/demo.stories.jsx +9 -5
  236. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/index.jsx +0 -1
  237. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +2 -0
  238. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyBoolean/styles.js +1 -0
  239. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/demo.stories.jsx +24 -11
  240. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/index.jsx +0 -1
  241. package/{src/tasks/create/templates/Constellation/Widget/CASE/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/mock.js} +1 -0
  242. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCaseWidget/styles.js +1 -0
  243. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/demo.stories.jsx +25 -11
  244. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/index.jsx +2 -1
  245. package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/mock.js} +2 -0
  246. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/styles.js +1 -0
  247. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
  248. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/DateFormatter.js +1 -0
  249. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
  250. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/date.js +1 -1
  251. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/demo.stories.jsx +22 -8
  252. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/index.jsx +1 -2
  253. package/{src/tasks/create/templates/Constellation/Field/Date/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/mock.js} +2 -0
  254. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/styles.js +1 -0
  255. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
  256. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-time.js +1 -0
  257. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date-utils.js +1 -1
  258. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/date.js +1 -1
  259. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/demo.stories.jsx +22 -8
  260. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/index.jsx +1 -2
  261. package/{src/tasks/create/templates/Constellation/Field/DateTime/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/mock.js} +2 -0
  262. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/styles.js +1 -0
  263. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
  264. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/demo.stories.jsx +22 -10
  265. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/index.jsx +1 -1
  266. package/{src/tasks/create/templates/Constellation/Field/Decimal/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/mock.js} +2 -0
  267. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/styles.js +1 -0
  268. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
  269. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/demo.stories.jsx +4 -3
  270. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/{mock.stories.js → mock.js} +3 -0
  271. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/styles.js +1 -0
  272. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyDetails/utils.js +2 -3
  273. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/demo.stories.jsx +21 -10
  274. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/index.jsx +1 -1
  275. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyEmail/mock.stories.js → Constellation/Pega_DXIL_MyEmail/mock.js} +2 -0
  276. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/styles.js +1 -0
  277. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
  278. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/demo.stories.jsx +17 -20
  279. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/{mock.stories.js → mock.js} +2 -0
  280. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyForm/styles.js +1 -0
  281. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/demo.stories.jsx +22 -10
  282. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/index.jsx +2 -2
  283. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyInteger/mock.stories.js → Constellation/Pega_DXIL_MyInteger/mock.js} +2 -0
  284. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/styles.js +1 -0
  285. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
  286. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/GetNextWork.jsx +1 -3
  287. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/demo.stories.jsx +22 -9
  288. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/index.jsx +3 -2
  289. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/{mock.stories.js → mock.js} +2 -0
  290. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/styles.js +1 -0
  291. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPage/utils.js +1 -3
  292. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -3
  293. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/Operator.jsx +2 -2
  294. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +24 -11
  295. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/index.jsx +2 -0
  296. package/{src/tasks/create/templates/Launchpad/Widget/PAGE-CASE/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/mock.js} +2 -0
  297. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
  298. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/demo.stories.jsx +6 -6
  299. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPageWidget/mock.stories.js → Constellation/Pega_DXIL_MyPageWidget/mock.js} +1 -0
  300. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPageWidget/styles.js +1 -0
  301. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/demo.stories.jsx +21 -10
  302. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/index.jsx +1 -1
  303. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyParagraph/mock.stories.js → Constellation/Pega_DXIL_MyParagraph/mock.js} +2 -0
  304. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/styles.js +1 -0
  305. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
  306. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/demo.stories.jsx +22 -10
  307. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/index.jsx +1 -1
  308. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyPercentage/mock.stories.js → Constellation/Pega_DXIL_MyPercentage/mock.js} +2 -0
  309. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/styles.js +1 -0
  310. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
  311. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/demo.stories.jsx +22 -9
  312. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/index.jsx +1 -1
  313. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +2 -0
  314. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/styles.js +1 -0
  315. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
  316. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/demo.stories.jsx +21 -10
  317. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/index.jsx +3 -2
  318. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/mock.js +69 -0
  319. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/styles.js +1 -0
  320. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
  321. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/config.json +113 -0
  322. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/demo.stories.jsx +91 -0
  323. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
  324. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/mock.js +69 -0
  325. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/styles.js +15 -0
  326. package/{src/tasks/create/templates/Constellation/Field/Date → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
  327. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  328. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/demo.stories.jsx +18 -9
  329. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyText/mock.stories.js → Constellation/Pega_DXIL_MyText/mock.js} +2 -0
  330. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyText/styles.js +1 -0
  331. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -15
  332. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/demo.stories.jsx +22 -9
  333. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/index.jsx +1 -1
  334. package/{src/tasks/create/templates/Constellation/Field/Text-Input/mock.stories.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/mock.js} +2 -0
  335. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/styles.js +1 -0
  336. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
  337. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +20 -7
  338. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/index.jsx +1 -1
  339. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/{mock.stories.js → mock.js} +2 -0
  340. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
  341. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
  342. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
  343. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +3 -3
  344. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.stories.js → Constellation/Pega_DXIL_MyTwoColumnDetails/mock.js} +2 -0
  345. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
  346. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
  347. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +7 -10
  348. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/{mock.stories.js → mock.js} +2 -0
  349. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
  350. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/demo.stories.jsx +22 -9
  351. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/index.jsx +1 -1
  352. package/tests/assets/components/createAll/{Launchpad/Pega_DXIL_MyURL/mock.stories.js → Constellation/Pega_DXIL_MyURL/mock.js} +2 -0
  353. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/styles.js +1 -0
  354. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
  355. package/tests/assets/components/createAll/Constellation/Pega_DXIL_MyURL/text-url.jsx +2 -0
  356. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/component-constants.js +5 -0
  357. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/config.json +115 -0
  358. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/date.js +161 -0
  359. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/demo.stories.jsx +89 -0
  360. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/embed-utils.js +310 -0
  361. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/format-constants.js +41 -0
  362. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/index.jsx +1042 -0
  363. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/mock.js +69 -0
  364. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/picklist-utils.js +88 -0
  365. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-constants.js +20 -0
  366. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/repeat-utils.js +657 -0
  367. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/styles.js +15 -0
  368. package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete}/suggestions-handler.js +0 -1
  369. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/textformat-utils.jsx +161 -0
  370. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/utils.js +182 -0
  371. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/boolean-format.js +1 -0
  372. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/demo.stories.jsx +9 -5
  373. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/index.jsx +0 -1
  374. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/{mock.stories.js → mock.js} +2 -0
  375. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyBoolean/styles.js +1 -0
  376. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/demo.stories.jsx +23 -12
  377. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/index.jsx +0 -1
  378. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/{mock.stories.js → mock.js} +1 -0
  379. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCaseWidget/styles.js +1 -0
  380. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/demo.stories.jsx +24 -11
  381. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/index.jsx +2 -1
  382. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyCurrency/mock.stories.js → Launchpad/Pega_DXIL_MyCurrency/mock.js} +2 -0
  383. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/styles.js +1 -0
  384. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyCurrency/suggestions-handler.js +0 -1
  385. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/DateFormatter.js +1 -0
  386. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/FormattedText.jsx +1 -0
  387. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/date.js +1 -1
  388. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/demo.stories.jsx +22 -8
  389. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/index.jsx +1 -2
  390. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/{mock.stories.js → mock.js} +2 -0
  391. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/styles.js +1 -0
  392. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDate/suggestions-handler.js +0 -1
  393. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-time.js +1 -0
  394. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date-utils.js +1 -1
  395. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/date.js +1 -1
  396. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/demo.stories.jsx +22 -8
  397. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/index.jsx +1 -2
  398. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDateTime/mock.stories.js → Launchpad/Pega_DXIL_MyDateTime/mock.js} +2 -0
  399. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/styles.js +1 -0
  400. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDateTime/suggestions-handler.js +0 -1
  401. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/demo.stories.jsx +21 -10
  402. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/index.jsx +1 -1
  403. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyDecimal/mock.stories.js → Launchpad/Pega_DXIL_MyDecimal/mock.js} +2 -0
  404. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/styles.js +1 -0
  405. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDecimal/suggestions-handler.js +0 -1
  406. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/demo.stories.jsx +6 -4
  407. package/{src/tasks/create/templates/Constellation/Template/DETAILS/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/mock.js} +3 -0
  408. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/styles.js +1 -0
  409. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyDetails/utils.js +2 -3
  410. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/demo.stories.jsx +21 -10
  411. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/index.jsx +1 -1
  412. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyEmail/mock.stories.js → Launchpad/Pega_DXIL_MyEmail/mock.js} +2 -0
  413. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/styles.js +1 -0
  414. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyEmail/suggestions-handler.js +0 -1
  415. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/demo.stories.jsx +24 -22
  416. package/{src/tasks/create/templates/Constellation/Template/FORM/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/mock.js} +2 -0
  417. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyForm/styles.js +1 -0
  418. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/demo.stories.jsx +21 -10
  419. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/index.jsx +2 -2
  420. package/{src/tasks/create/templates/Constellation/Field/Integer/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/mock.js} +2 -0
  421. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/styles.js +1 -0
  422. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyInteger/suggestions-handler.js +0 -1
  423. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/GetNextWork.jsx +1 -3
  424. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/demo.stories.jsx +21 -9
  425. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/index.jsx +3 -2
  426. package/{src/tasks/create/templates/Constellation/Template/PAGE/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/mock.js} +2 -0
  427. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/styles.js +1 -0
  428. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPage/utils.js +1 -3
  429. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Avatar.jsx +2 -3
  430. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/Operator.jsx +1 -1
  431. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/demo.stories.jsx +24 -13
  432. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/index.jsx +1 -1
  433. package/{src/tasks/create/templates/Constellation/Widget/PAGE-CASE/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/mock.js} +2 -0
  434. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageCaseWidget/styles.js +1 -0
  435. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/demo.stories.jsx +5 -7
  436. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPageWidget/mock.stories.js → Launchpad/Pega_DXIL_MyPageWidget/mock.js} +1 -0
  437. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPageWidget/styles.js +1 -0
  438. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/demo.stories.jsx +21 -10
  439. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/index.jsx +1 -1
  440. package/{src/tasks/create/templates/Constellation/Field/Text-Paragraph/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/mock.js} +2 -0
  441. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/styles.js +1 -0
  442. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyParagraph/suggestions-handler.js +0 -1
  443. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/demo.stories.jsx +21 -10
  444. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/index.jsx +1 -1
  445. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyPercentage/mock.stories.js → Launchpad/Pega_DXIL_MyPercentage/mock.js} +2 -0
  446. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/styles.js +1 -0
  447. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPercentage/suggestions-handler.js +0 -1
  448. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/demo.stories.jsx +21 -9
  449. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/index.jsx +1 -1
  450. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/{mock.stories.js → mock.js} +2 -0
  451. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/styles.js +1 -0
  452. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPhone/suggestions-handler.js +0 -1
  453. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/demo.stories.jsx +21 -10
  454. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/index.jsx +3 -2
  455. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/mock.js +69 -0
  456. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/styles.js +1 -0
  457. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyPicklist/suggestions-handler.js +0 -1
  458. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/config.json +113 -0
  459. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/demo.stories.jsx +89 -0
  460. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/index.jsx +218 -0
  461. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/mock.js +69 -0
  462. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/styles.js +15 -0
  463. package/{src/tasks/create/templates/Constellation/Field/DateTime → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons}/suggestions-handler.js +0 -1
  464. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/textformat-utils.jsx +161 -0
  465. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/demo.stories.jsx +18 -9
  466. package/{src/tasks/create/templates/Constellation/Field/Text/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/mock.js} +2 -0
  467. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyText/styles.js +1 -0
  468. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/StatusWork.jsx +15 -15
  469. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/demo.stories.jsx +21 -10
  470. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/index.jsx +1 -1
  471. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/{mock.stories.js → mock.js} +2 -0
  472. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/styles.js +1 -0
  473. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTextInput/suggestions-handler.js +0 -1
  474. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/demo.stories.jsx +19 -7
  475. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/index.jsx +1 -1
  476. package/{src/tasks/create/templates/Constellation/Field/TimeofDay/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/mock.js} +2 -0
  477. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/styles.js +1 -0
  478. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/suggestions-handler.js +0 -1
  479. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTimeOfDay/time-of-day.js +0 -1
  480. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/demo.stories.jsx +5 -4
  481. package/tests/assets/components/createAll/{Constellation/Pega_DXIL_MyTwoColumnDetails/mock.stories.js → Launchpad/Pega_DXIL_MyTwoColumnDetails/mock.js} +2 -0
  482. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/styles.js +1 -0
  483. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnDetails/utils.js +0 -4
  484. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/demo.stories.jsx +14 -12
  485. package/{src/tasks/create/templates/Constellation/Template/FORM-region/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/mock.js} +2 -0
  486. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyTwoColumnForm/styles.js +1 -0
  487. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/demo.stories.jsx +21 -9
  488. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/index.jsx +1 -1
  489. package/{src/tasks/create/templates/Constellation/Field/Text-URL/mock.stories.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/mock.js} +2 -0
  490. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/styles.js +1 -0
  491. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/suggestions-handler.js +0 -1
  492. package/tests/assets/components/createAll/Launchpad/Pega_DXIL_MyURL/text-url.jsx +2 -0
  493. package/src/tasks/create/templates/Constellation/Field/Decimal/styles.js.mustache +0 -14
  494. package/src/tasks/create/templates/Constellation/Field/Decimal/suggestions-handler.js +0 -10
  495. package/src/tasks/create/templates/Constellation/Field/Decimal-Percentage/styles.js.mustache +0 -14
  496. package/src/tasks/create/templates/Constellation/Field/Integer/event-utils.js.mustache +0 -18
  497. package/src/tasks/create/templates/Constellation/Field/Integer/styles.js.mustache +0 -14
  498. package/src/tasks/create/templates/Constellation/Field/Integer/suggestions-handler.js +0 -10
  499. package/src/tasks/create/templates/Constellation/Field/Picklist/event-utils.js.mustache +0 -18
  500. package/src/tasks/create/templates/Constellation/Field/Picklist/styles.js.mustache +0 -14
  501. package/src/tasks/create/templates/Constellation/Field/Picklist/suggestions-handler.js +0 -10
  502. package/src/tasks/create/templates/Constellation/Field/Text/styles.js.mustache +0 -14
  503. package/src/tasks/create/templates/Constellation/Field/Text-Email/event-utils.js.mustache +0 -18
  504. package/src/tasks/create/templates/Constellation/Field/Text-Email/styles.js.mustache +0 -14
  505. package/src/tasks/create/templates/Constellation/Field/Text-Email/suggestions-handler.js +0 -10
  506. package/src/tasks/create/templates/Constellation/Field/Text-Input/event-utils.js.mustache +0 -18
  507. package/src/tasks/create/templates/Constellation/Field/Text-Input/styles.js.mustache +0 -14
  508. package/src/tasks/create/templates/Constellation/Field/Text-Input/suggestions-handler.js +0 -10
  509. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/event-utils.js.mustache +0 -18
  510. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/styles.js.mustache +0 -14
  511. package/src/tasks/create/templates/Constellation/Field/Text-Paragraph/suggestions-handler.js +0 -10
  512. package/src/tasks/create/templates/Constellation/Field/Text-Phone/event-utils.js.mustache +0 -18
  513. package/src/tasks/create/templates/Constellation/Field/Text-Phone/styles.js.mustache +0 -14
  514. package/src/tasks/create/templates/Constellation/Field/Text-Phone/suggestions-handler.js +0 -10
  515. package/src/tasks/create/templates/Constellation/Field/Text-URL/event-utils.js.mustache +0 -18
  516. package/src/tasks/create/templates/Constellation/Field/Text-URL/styles.js.mustache +0 -14
  517. package/src/tasks/create/templates/Constellation/Field/Text-URL/suggestions-handler.js +0 -10
  518. package/src/tasks/create/templates/Constellation/Field/TimeofDay/styles.js.mustache +0 -14
  519. package/src/tasks/create/templates/Constellation/Field/TimeofDay/suggestions-handler.js +0 -10
  520. package/src/tasks/create/templates/Constellation/Template/DETAILS/StatusWork.jsx.mustache +0 -26
  521. package/src/tasks/create/templates/Constellation/Template/DETAILS/styles.js.mustache +0 -14
  522. package/src/tasks/create/templates/Constellation/Template/DETAILS-region/styles.js.mustache +0 -14
  523. package/src/tasks/create/templates/Constellation/Template/FORM/styles.js.mustache +0 -14
  524. package/src/tasks/create/templates/Constellation/Template/FORM-region/styles.js.mustache +0 -14
  525. package/src/tasks/create/templates/Constellation/Template/PAGE/styles.js.mustache +0 -14
  526. package/src/tasks/create/templates/Constellation/Widget/CASE/styles.js.mustache +0 -14
  527. package/src/tasks/create/templates/Constellation/Widget/PAGE/styles.js.mustache +0 -14
  528. package/src/tasks/create/templates/Constellation/Widget/PAGE-CASE/styles.js.mustache +0 -14
  529. package/src/tasks/init/template/.storybook/main.cjs +0 -6
  530. package/src/tasks/init/template/.storybook/package.json +0 -1
  531. package/src/tasks/init/template/.storybook/preview.tsx +0 -44
  532. /package/src/tasks/{build → build-comp}/helper.js +0 -0
  533. /package/src/tasks/create/templates/Constellation/Field/{TimeofDay → TimeOfDay}/config.json.mustache +0 -0
  534. /package/{src/tasks/create/templates/Constellation/Field/Boolean/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
  535. /package/{src/tasks/create/templates/Constellation/Field/Decimal-Currency/event-utils.js.mustache → tests/assets/components/createAll/Constellation/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
  536. /package/{src/tasks/create/templates/Constellation/Field/Decimal-Percentage/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyAutocomplete/event-utils.js} +0 -0
  537. /package/{src/tasks/create/templates/Constellation/Field/Decimal/event-utils.js.mustache → tests/assets/components/createAll/Launchpad/Pega_DXIL_MyRadioButtons/event-utils.js} +0 -0
@@ -53,7 +53,7 @@ export const compileMustacheTemplates = async (
53
53
  const componentClassName = convertIntoPascalCase(componentKey);
54
54
 
55
55
  const isTemplate = type === 'Template';
56
- const isPicklist = subtype === 'Picklist';
56
+
57
57
  const isBool = subtype === 'Boolean';
58
58
  const isPhone = subtype === 'Phone';
59
59
 
@@ -76,9 +76,17 @@ export const compileMustacheTemplates = async (
76
76
  case 'Text-Input':
77
77
  mustacheSubType = 'Text';
78
78
  break;
79
+ case 'Picklist-Autocomplete':
80
+ mustacheSubType = 'Picklist';
81
+ break;
82
+ case 'Picklist-RadioButtons':
83
+ mustacheSubType = 'Picklist';
84
+ break;
79
85
  }
80
86
  }
81
87
 
88
+ const isPicklist = subtype === 'Picklist';
89
+
82
90
  if (allowedApplications.trim() === '') {
83
91
  allowedApplications = [];
84
92
  } else {
@@ -13,5 +13,5 @@ export { default as updateComponent } from './update/index.js';
13
13
  export { default as validate } from './validator/index.js';
14
14
  export { default as authenticate } from './authenticate/index.js';
15
15
  export { default as upgrade } from './upgrade/index.js';
16
- export { default as buildComponent } from './build/index.js';
16
+ export { default as buildComponent } from './build-comp/index.js';
17
17
  export { default as buildAllComponents } from './build-all/index.js';
@@ -1,4 +1,3 @@
1
- /* eslint-disable import/prefer-default-export */
2
1
  import { sanitize, validateSemver } from '../../util.js';
3
2
 
4
3
  export const getInitProjectQuestions = () => {
@@ -7,11 +7,16 @@ import { exec } from 'child_process';
7
7
  import chalk from 'chalk';
8
8
  import { execa } from 'execa';
9
9
  import ncp from 'ncp';
10
- import Listr from 'listr';
10
+ import { Listr } from 'listr2';
11
11
  import gitignore from 'gitignore';
12
12
  import inquirer from 'inquirer';
13
13
 
14
- import { compileMustacheTemplate, isPascalCase, convertIntoPascalCase, sanitize } from '../../util.js';
14
+ import {
15
+ compileMustacheTemplate,
16
+ isPascalCase,
17
+ convertIntoPascalCase,
18
+ sanitize
19
+ } from '../../util.js';
15
20
 
16
21
  import { getInitProjectQuestions } from './helper.js';
17
22
 
@@ -21,7 +26,7 @@ const copy = promisify(ncp);
21
26
  const writeGitignore = promisify(gitignore.writeFile);
22
27
  const writeFile = promisify(fs.writeFile);
23
28
 
24
- const createGitignore = async (options) => {
29
+ const createGitignore = async options => {
25
30
  const file = fs.createWriteStream(path.join(options.targetDirectory, '.gitignore'), {
26
31
  flags: 'a'
27
32
  });
@@ -31,13 +36,13 @@ const createGitignore = async (options) => {
31
36
  });
32
37
  };
33
38
 
34
- const createLicense = async (options) => {
39
+ const createLicense = async options => {
35
40
  const targetPath = path.join(options.targetDirectory, 'LICENSE');
36
41
  const licenseContent = 'Enter license text here';
37
42
  return writeFile(targetPath, licenseContent, 'utf8');
38
43
  };
39
44
 
40
- const copyProjectTemplate = async (options) => {
45
+ const copyProjectTemplate = async options => {
41
46
  await copy(options.templateDirectory, options.targetDirectory, {
42
47
  clobber: false
43
48
  });
@@ -68,7 +73,7 @@ const copyProjectTemplate = async (options) => {
68
73
  await createLicense(options);
69
74
  };
70
75
 
71
- const initGit = async (options) => {
76
+ const initGit = async options => {
72
77
  const result = await execa('git', ['init'], {
73
78
  cwd: options.targetDirectory
74
79
  });
@@ -77,13 +82,16 @@ const initGit = async (options) => {
77
82
  }
78
83
  };
79
84
 
80
- export default async (options) => {
81
- options.templateDirectory = path.resolve(path.dirname(fileURLToPath(import.meta.url)), 'template');
85
+ export default async options => {
86
+ options.templateDirectory = path.resolve(
87
+ path.dirname(fileURLToPath(import.meta.url)),
88
+ 'template'
89
+ );
82
90
  let projectName = 'test';
83
91
 
84
92
  const questions = getInitProjectQuestions();
85
93
 
86
- await inquirer.prompt(questions).then(async (answers) => {
94
+ await inquirer.prompt(questions).then(async answers => {
87
95
  projectName = answers.projectName;
88
96
  projectName = sanitize(projectName).toLowerCase();
89
97
  options = { ...options, ...answers };
@@ -99,7 +107,10 @@ export default async (options) => {
99
107
 
100
108
  const targetDirectory = options.targetDirectory || process.cwd();
101
109
  options.targetDirectory = path.join(targetDirectory, projectName);
102
- options.componentDirectory = path.join(options.targetDirectory, 'node_modules/@pega/custom-dx-components');
110
+ options.componentDirectory = path.join(
111
+ options.targetDirectory,
112
+ 'node_modules/@pega/custom-dx-components'
113
+ );
103
114
  });
104
115
 
105
116
  const installDependenciesText = `Installing dependencies. This will take a couple of minutes.`;
@@ -121,16 +132,18 @@ export default async (options) => {
121
132
  },
122
133
  {
123
134
  title: installDependenciesText,
124
- task: () => execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
135
+ task: () =>
136
+ execPromise('npm i --force --production=false', { cwd: options.targetDirectory })
125
137
  },
126
138
  {
127
139
  title: 'Installing tasks dependencies',
128
- task: () => execPromise('npm i --force --production=false', { cwd: options.componentDirectory })
129
- },
130
- {
140
+ task: () =>
141
+ execPromise('npm i --force --production=false', { cwd: options.componentDirectory })
142
+ }
143
+ /* {
131
144
  title: 'Installing quick run',
132
145
  task: () => execPromise('npm i -g npm-quick-run', { cwd: options.targetDirectory })
133
- }
146
+ } */
134
147
  ],
135
148
  {
136
149
  exitOnError: false
@@ -139,7 +152,9 @@ export default async (options) => {
139
152
 
140
153
  await tasks.run();
141
154
  console.log('\n');
142
- console.log(`${chalk.green('Success!!')} Project created at ${chalk.blueBright(options.targetDirectory)}`);
155
+ console.log(
156
+ `${chalk.green('Success!!')} Project created at ${chalk.blueBright(options.targetDirectory)}`
157
+ );
143
158
  console.log(
144
159
  '\n',
145
160
  `Inside that directory, you can run several commands:`,
@@ -47,6 +47,8 @@
47
47
  "import/no-unresolved": "off",
48
48
  "import/no-useless-path-segments": "off",
49
49
  "import/order": "off",
50
+ "import/prefer-default-export": "off",
51
+ "import/no-relative-packages": "off",
50
52
 
51
53
  "no-else-return": "off",
52
54
  "no-restricted-syntax": "off",
@@ -58,7 +60,7 @@
58
60
  "jsx-a11y/label-has-associated-control": "off",
59
61
  "jsx-a11y/no-static-element-interactions": "off",
60
62
 
61
- "react/jsx-fragments": "off",
63
+ "react/jsx-fragments": "error",
62
64
  "react/jsx-no-bind": "off",
63
65
  "react/self-closing-comp": "off",
64
66
 
@@ -71,15 +73,18 @@
71
73
  //
72
74
  // Initial release: set to error
73
75
  "@typescript-eslint/no-inferrable-types": "error",
74
- "eqeqeq": "error",
75
- "no-alert": "error",
76
- "no-console": "error",
76
+ "eqeqeq": "off",
77
+ "no-alert": "off",
78
+ "no-console": "off",
77
79
  "no-fallthrough": "error",
78
- "no-undef": "error",
79
- "no-unused-vars": "error",
80
- "no-var": "error",
81
- "prefer-const": "error",
80
+ "no-undef": "off",
81
+ "no-unused-vars": "off",
82
+ "no-var": "off",
83
+ "prefer-const": "off",
82
84
  "yoda": "error",
85
+ "no-irregular-whitespace": "off",
86
+ "no-empty": "off",
87
+ "no-new-object": "off",
83
88
 
84
89
  "import/no-mutable-exports": "error",
85
90
  "sonarjs/max-switch-cases": "error",
@@ -98,7 +103,7 @@
98
103
  "react/static-property-placement": "error",
99
104
  "array-callback-return": "error",
100
105
  "camelcase": "error",
101
- "default-case": "error",
106
+ "default-case": "off",
102
107
  "func-names": "error",
103
108
  "no-case-declarations": "error",
104
109
  "no-lonely-if": "error",
@@ -166,7 +171,7 @@
166
171
  "react/react-in-jsx-scope": "off",
167
172
  // Set up configuration for future sweep
168
173
  "react-hooks/exhaustive-deps": [
169
- "off",
174
+ "error",
170
175
  {
171
176
  "additionalHooks": "useAfterInitialEffect"
172
177
  }
@@ -0,0 +1,12 @@
1
+ /** @type { import('@storybook/react-webpack5').StorybookConfig } */
2
+ const config = {
3
+ stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
4
+ addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
5
+ framework: {
6
+ name: '@storybook/react-webpack5'
7
+ },
8
+ docs: {
9
+ autodocs: 'tag'
10
+ }
11
+ };
12
+ export default config;
@@ -0,0 +1,14 @@
1
+ /** @type { import('@storybook/react').Preview } */
2
+ const preview = {
3
+ parameters: {
4
+ actions: { argTypesRegex: '^on[A-Z].*' },
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/i
9
+ }
10
+ }
11
+ }
12
+ };
13
+
14
+ export default preview;
@@ -6,7 +6,7 @@
6
6
  "main": "src/index.js",
7
7
  "type": "module",
8
8
  "scripts": {
9
- "startStorybook": "start-storybook --port 6040 --quiet",
9
+ "startStorybook": "storybook dev --port 6040 --quiet",
10
10
  "lint": "run-p -cl lint:*",
11
11
  "authenticate": "custom-dx-components authenticate",
12
12
  "buildComponent": "custom-dx-components buildComponent",
@@ -51,51 +51,52 @@
51
51
  "license": "Enter License",
52
52
  "sideEffects": false,
53
53
  "dependencies": {
54
- "@pega/cosmos-react-core": "^4.0.1",
55
- "@pega/cosmos-react-work": "4.0.1",
56
- "dayjs": "^1.11.5",
54
+ "@pega/cosmos-react-condition-builder": "^4.1.2",
55
+ "@pega/cosmos-react-core": "^4.1.2",
56
+ "@pega/cosmos-react-work": "4.1.2",
57
+ "dayjs": "^1.11.10",
58
+ "lodash.get": "^4.4.2",
57
59
  "polished": "^4.2.2",
58
60
  "prop-types": "^15.8.1",
59
61
  "react": "^17.0.2",
60
- "react-autosuggest": "^10.1.0",
61
62
  "react-dom": "^17.0.2",
62
63
  "react-is": "^18.2.0",
63
- "react-player": "^2.10.1",
64
- "react-redux": "^7.2.6",
65
64
  "styled-components": "^5.3.5"
66
65
  },
67
66
  "devDependencies": {
68
- "@pega/configs": "^0.5.3",
69
- "@pega/custom-dx-components": "^0.23.19",
70
- "@pega/eslint-config": "^0.5.3",
71
- "@storybook/addon-actions": "^6.5.12",
72
- "@storybook/addon-essentials": "^6.5.12",
73
- "@storybook/addon-links": "^6.5.12",
74
- "@storybook/addon-knobs": "^6.3.1",
75
- "@storybook/addon-storysource": "^6.5.12",
76
- "@storybook/builder-webpack5": "^6.5.12",
77
- "@storybook/manager-webpack5": "^6.5.12",
78
- "@storybook/react": "^6.5.12",
79
- "@types/emoji-mart": "^3.0.9",
67
+ "@pega/configs": "^0.7.1",
68
+ "@pega/custom-dx-components": "0.23.21",
69
+ "@pega/pcore-pconnect-typedefs": "2.0.0",
70
+ "@storybook/addon-actions": "^7.6.7",
71
+ "@storybook/addon-essentials": "^7.6.7",
72
+ "@storybook/addon-knobs": "^7.0.2",
73
+ "@storybook/addon-links": "^7.6.7",
74
+ "@storybook/addon-storysource": "^7.6.7",
75
+ "@storybook/react": "^7.6.7",
76
+ "@storybook/react-webpack5": "^7.6.7",
77
+ "@types/emoji-mart": "^3.0.14",
78
+ "@types/lodash.get": "^4.4.9",
80
79
  "@types/react": "^17.0.39",
81
- "@types/react-color": "^3.0.6",
80
+ "@types/react-color": "^3.0.11",
82
81
  "@types/react-dom": "^17.0.11",
83
- "@types/styled-components": "^5.1.26",
84
- "@typescript-eslint/eslint-plugin": "^5.6.0",
85
- "eslint": "^8.4.1",
86
- "eslint-plugin-import": "^2.25.3",
87
- "eslint-plugin-jest": "^25.3.0",
88
- "eslint-plugin-jsx-a11y": "^6.5.1",
89
- "eslint-plugin-mdx": "^2.0.5",
90
- "eslint-plugin-prettier": "^4.0.0",
91
- "eslint-plugin-react": "^7.27.1",
92
- "eslint-plugin-react-hooks": "^4.3.0",
93
- "eslint-plugin-sonarjs": "^0.11.0",
94
- "jest": "^29.3.1",
95
- "jest-environment-jsdom": "^29.3.1",
82
+ "@types/styled-components": "^5.1.34",
83
+ "@typescript-eslint/eslint-plugin": "^6.17.0",
84
+ "eslint": "^8.56.0",
85
+ "eslint-plugin-import": "^2.29.1",
86
+ "eslint-plugin-jest": "^27.6.1",
87
+ "eslint-plugin-jsx-a11y": "^6.8.0",
88
+ "eslint-plugin-mdx": "^2.3.2",
89
+ "eslint-plugin-prettier": "^5.1.2",
90
+ "eslint-plugin-react": "^7.33.2",
91
+ "eslint-plugin-react-hooks": "^4.6.0",
92
+ "eslint-plugin-sonarjs": "^0.23.0",
93
+ "eslint-plugin-storybook": "^0.6.15",
94
+ "jest": "^29.7.0",
95
+ "jest-environment-jsdom": "^29.7.0",
96
96
  "npm-run-all": "^4.1.5",
97
- "prettier": "2.7.1",
97
+ "prettier": "3.1.1",
98
+ "storybook": "^7.6.7",
98
99
  "stylelint": "^14.11.0",
99
- "typescript": "~4.8.3"
100
+ "typescript": "~5.3.3"
100
101
  }
101
102
  }
@@ -13,7 +13,11 @@ import {
13
13
  validateRulesetVersion,
14
14
  getHttpsAgent
15
15
  } from '../../util.js';
16
- import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
16
+ import {
17
+ PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
18
+ LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
19
+ TOKEN_PATH
20
+ } from '../../constants.js';
17
21
 
18
22
  export const getPublishComponentQuestions = async () => {
19
23
  const components = await getComponents();
@@ -36,7 +40,7 @@ export const getPublishComponentQuestions = async () => {
36
40
  name: 'rulesetName',
37
41
  message: 'Enter ruleset name',
38
42
  default: defaultPegaConfig.rulesetName,
39
- validate: (value) => {
43
+ validate: value => {
40
44
  if (value.trim()) {
41
45
  return true;
42
46
  }
@@ -50,7 +54,7 @@ export const getPublishComponentQuestions = async () => {
50
54
  name: 'rulesetVersion',
51
55
  message: 'Enter ruleset version',
52
56
  default: defaultPegaConfig.rulesetVersion,
53
- validate: (value) => {
57
+ validate: value => {
54
58
  if (validateRulesetVersion(value)) {
55
59
  return true;
56
60
  }
@@ -76,7 +80,7 @@ export const getPublishComponentQuestions = async () => {
76
80
  ];
77
81
  };
78
82
 
79
- export const zipComponent = async (componentKey) => {
83
+ export const zipComponent = async componentKey => {
80
84
  const srcDirectory = await getComponentDirectoryPath(componentKey);
81
85
  const buildDirectory = await path.join(path.resolve(), 'dist/components', componentKey);
82
86
  const configJson = `${srcDirectory}/config.json`;
@@ -90,7 +94,7 @@ export const zipComponent = async (componentKey) => {
90
94
 
91
95
  const configContent = Buffer.from(fs.readFileSync(`${srcDirectory}/config.json`)).toString();
92
96
 
93
- fs.rmdir('dist', { recursive: true }, (err) => {
97
+ fs.rmdir('dist', { recursive: true }, err => {
94
98
  if (err) {
95
99
  throw err;
96
100
  }
@@ -105,7 +109,10 @@ export const publishComponentToServer = async (data, doFetch) => {
105
109
  const defaultPegaServerConfig = await getPegaServerConfig();
106
110
  const { serverType, isolationId } = defaultPegaServerConfig;
107
111
  const isLaunchpad = serverType === 'launchpad';
108
- const launchpadRestEndpoint = LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT.replace('{isolationId}', isolationId);
112
+ const launchpadRestEndpoint = LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT.replace(
113
+ '{isolationId}',
114
+ isolationId || 'undefined'
115
+ );
109
116
  let apiBody;
110
117
 
111
118
  if (isLaunchpad) {
@@ -129,7 +136,10 @@ export const publishComponentToServer = async (data, doFetch) => {
129
136
  }
130
137
 
131
138
  const defaultPegaConfig = await getPegaServerConfig();
132
- const url = constructCompleteUrl(defaultPegaConfig.server, isLaunchpad ? launchpadRestEndpoint : PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT);
139
+ const url = constructCompleteUrl(
140
+ defaultPegaConfig.server,
141
+ isLaunchpad ? launchpadRestEndpoint : PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT
142
+ );
133
143
 
134
144
  if (doFetch) {
135
145
  try {
@@ -156,29 +166,39 @@ export const publishComponentToServer = async (data, doFetch) => {
156
166
  headers,
157
167
  body: JSON.stringify(apiBody)
158
168
  })
159
- .then((response) => {
169
+ .then(response => {
160
170
  status = response.status;
161
171
  return response.text();
162
172
  })
163
- .then((resp) => {
173
+ .then(resp => {
164
174
  const respData = isLaunchpad ? resp : JSON.parse(resp);
165
175
  if (status === 401) {
166
- throw new Error('Error occurred in authentication. Please regenerate using authenticate');
176
+ throw new Error(
177
+ 'Error occurred in authentication. Please regenerate using authenticate'
178
+ );
167
179
  // console.log(accessTokenUri, refreshToken);
168
180
  /* TODO - Handle refresh_token */
169
181
  } else if (status === 200 || status === 201) {
170
- console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
182
+ console.log(
183
+ chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`)
184
+ );
171
185
  } else {
172
186
  throw new Error(`${respData.message}`);
173
187
  }
174
188
  })
175
- .catch((e) => {
189
+ .catch(e => {
176
190
  if (e.code === 'ECONNREFUSED') {
177
191
  // eslint-disable-next-line prefer-promise-reject-errors
178
- Promise.reject(`${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
192
+ Promise.reject(
193
+ `${chalk.bold.red(
194
+ 'Error occurred in authentication. Please regenerate using authenticate'
195
+ )}`
196
+ );
179
197
  } else if (status === 403) {
180
198
  // eslint-disable-next-line prefer-promise-reject-errors
181
- Promise.reject(`${chalk.bold.red('Error forbidden: User does not have privileges to Publish.')}`);
199
+ Promise.reject(
200
+ `${chalk.bold.red('Error forbidden: User does not have privileges to Publish.')}`
201
+ );
182
202
  } else {
183
203
  // eslint-disable-next-line prefer-promise-reject-errors
184
204
  Promise.reject(`${chalk.bold.red(e)}`);
@@ -1,5 +1,5 @@
1
1
  import inquirer from 'inquirer';
2
- import Listr from 'listr';
2
+ import { Listr } from 'listr2';
3
3
  import chalk from 'chalk';
4
4
 
5
5
  import validate from '../validator/index.js';
@@ -5,8 +5,18 @@ import fetch from 'node-fetch';
5
5
  import AdmZip from 'adm-zip';
6
6
  import chalk from 'chalk';
7
7
 
8
- import { constructCompleteUrl, getComponentDirectoryPath, getPegaServerConfig, validateRulesetVersion, getHttpsAgent } from '../../util.js';
9
- import { PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT, TOKEN_PATH } from '../../constants.js';
8
+ import {
9
+ constructCompleteUrl,
10
+ getComponentDirectoryPath,
11
+ getPegaServerConfig,
12
+ validateRulesetVersion,
13
+ getHttpsAgent
14
+ } from '../../util.js';
15
+ import {
16
+ PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
17
+ LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT,
18
+ TOKEN_PATH
19
+ } from '../../constants.js';
10
20
 
11
21
  export const getPublishComponentQuestions = async () => {
12
22
  const defaultPegaConfig = await getPegaServerConfig();
@@ -16,7 +26,7 @@ export const getPublishComponentQuestions = async () => {
16
26
  name: 'rulesetName',
17
27
  message: 'Enter ruleset name',
18
28
  default: defaultPegaConfig.rulesetName,
19
- validate: (value) => {
29
+ validate: value => {
20
30
  if (value.trim()) {
21
31
  return true;
22
32
  }
@@ -30,7 +40,7 @@ export const getPublishComponentQuestions = async () => {
30
40
  name: 'rulesetVersion',
31
41
  message: 'Enter ruleset version',
32
42
  default: defaultPegaConfig.rulesetVersion,
33
- validate: (value) => {
43
+ validate: value => {
34
44
  if (validateRulesetVersion(value)) {
35
45
  return true;
36
46
  }
@@ -56,7 +66,7 @@ export const getPublishComponentQuestions = async () => {
56
66
  ];
57
67
  };
58
68
 
59
- export const zipComponent = async (componentKey) => {
69
+ export const zipComponent = async componentKey => {
60
70
  const srcDirectory = await getComponentDirectoryPath(componentKey);
61
71
  const buildDirectory = await path.join(path.resolve(), 'dist/components', componentKey);
62
72
  const configJson = `${srcDirectory}/config.json`;
@@ -79,13 +89,13 @@ export const zipComponent = async (componentKey) => {
79
89
  };
80
90
 
81
91
  export const cleanUp = async () => {
82
- fs.rm('dist/components', { recursive: true }, (err) => {
92
+ fs.rm('dist/components', { recursive: true }, err => {
83
93
  if (err) {
84
94
  throw err;
85
95
  }
86
96
  });
87
97
 
88
- fs.rm('lib', { recursive: true }, (err) => {
98
+ fs.rm('lib', { recursive: true }, err => {
89
99
  if (err) {
90
100
  throw err;
91
101
  }
@@ -98,7 +108,10 @@ export const publishComponentToServer = async (data, doFetch) => {
98
108
  const defaultPegaServerConfig = await getPegaServerConfig();
99
109
  const { serverType, isolationId } = defaultPegaServerConfig;
100
110
  const isLaunchpad = serverType === 'launchpad';
101
- const launchpadRestEndpoint = LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT.replace('{isolationId}', isolationId);
111
+ const launchpadRestEndpoint = LP_PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT.replace(
112
+ '{isolationId}',
113
+ isolationId || 'undefined'
114
+ );
102
115
  let apiBody;
103
116
 
104
117
  if (isLaunchpad) {
@@ -122,7 +135,10 @@ export const publishComponentToServer = async (data, doFetch) => {
122
135
  }
123
136
 
124
137
  const defaultPegaConfig = await getPegaServerConfig();
125
- const url = constructCompleteUrl(defaultPegaConfig.server, isLaunchpad ? launchpadRestEndpoint : PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT);
138
+ const url = constructCompleteUrl(
139
+ defaultPegaConfig.server,
140
+ isLaunchpad ? launchpadRestEndpoint : PUBLISH_COMPONENT_SERVICE_REST_ENDPOINT
141
+ );
126
142
 
127
143
  if (doFetch) {
128
144
  try {
@@ -149,29 +165,39 @@ export const publishComponentToServer = async (data, doFetch) => {
149
165
  headers,
150
166
  body: JSON.stringify(apiBody)
151
167
  })
152
- .then((response) => {
168
+ .then(response => {
153
169
  status = response.status;
154
170
  return response.text();
155
171
  })
156
- .then((resp) => {
172
+ .then(resp => {
157
173
  const respData = isLaunchpad ? resp : JSON.parse(resp);
158
174
  if (status === 401) {
159
- throw new Error('Error occurred in authentication. Please regenerate using authenticate');
175
+ throw new Error(
176
+ 'Error occurred in authentication. Please regenerate using authenticate'
177
+ );
160
178
  // console.log(accessTokenUri, refreshToken);
161
179
  /* TODO - Handle refresh_token */
162
180
  } else if (status === 200 || status === 201) {
163
- console.log(chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`));
181
+ console.log(
182
+ chalk.bold.green(`Success : ${isLaunchpad ? respData : respData.message}`)
183
+ );
164
184
  } else {
165
185
  throw new Error(`${respData.message}`);
166
186
  }
167
187
  })
168
- .catch((e) => {
188
+ .catch(e => {
169
189
  if (e.code === 'ECONNREFUSED') {
170
190
  // eslint-disable-next-line prefer-promise-reject-errors
171
- Promise.reject(`${chalk.bold.red('Error occurred in authentication. Please regenerate using authenticate')}`);
191
+ Promise.reject(
192
+ `${chalk.bold.red(
193
+ 'Error occurred in authentication. Please regenerate using authenticate'
194
+ )}`
195
+ );
172
196
  } else if (status === 403) {
173
197
  // eslint-disable-next-line prefer-promise-reject-errors
174
- Promise.reject(`${chalk.bold.red('Error forbidden: User does not have privileges to Publish.')}`);
198
+ Promise.reject(
199
+ `${chalk.bold.red('Error forbidden: User does not have privileges to Publish.')}`
200
+ );
175
201
  } else {
176
202
  // eslint-disable-next-line prefer-promise-reject-errors
177
203
  Promise.reject(`${chalk.bold.red(e)}`);
@@ -1,5 +1,5 @@
1
1
  import inquirer from 'inquirer';
2
- import Listr from 'listr';
2
+ import { Listr } from 'listr2';
3
3
  import chalk from 'chalk';
4
4
 
5
5
  import validate from '../validator/index.js';
@@ -1,31 +1,29 @@
1
1
 
2
2
  import fs from 'fs';
3
- import path from 'path';
4
- import { join } from 'path';
3
+ import path, { join } from 'path';
5
4
  import { URL, fileURLToPath } from 'url';
5
+
6
6
  import chalk from 'chalk';
7
+ import { up } from 'inquirer/lib/utils/readline.js';
7
8
 
8
9
  import {
9
10
  convertIntoPascalCase,
10
11
  showVersion
11
12
  } from '../../util.js';
12
-
13
13
  import {
14
14
  WEBPACK_CONFIG_JS_FILENAME,
15
15
  BUILDER_INDEX_FILE_PATH
16
16
  } from '../../constants.js';
17
- import build from '@pega/custom-dx-components/src/tasks/build/index.js';
18
- import { up } from 'inquirer/lib/utils/readline.js';
19
17
 
20
18
 
21
19
 
22
20
  export const renamePromotedWebPack = async () => {
23
21
 
24
22
  // call this function from top level
25
- //fs.copyFileSync("./webpack.config.js", "webpack.config.js")
23
+ // fs.copyFileSync("./webpack.config.js", "webpack.config.js")
26
24
 
27
25
  const promoteWebPackDir = path.resolve(WEBPACK_CONFIG_JS_FILENAME);
28
- const renamedPromoteWebPackDir = path.resolve(WEBPACK_CONFIG_JS_FILENAME + ".notused");
26
+ const renamedPromoteWebPackDir = path.resolve(`${WEBPACK_CONFIG_JS_FILENAME }.notused`);
29
27
 
30
28
  try {
31
29
  fs.renameSync(promoteWebPackDir, renamedPromoteWebPackDir);
@@ -1,7 +1,7 @@
1
1
  import { promisify } from 'util';
2
2
  import { exec } from 'child_process';
3
3
 
4
- import Listr from 'listr';
4
+ import { Listr } from 'listr2';
5
5
 
6
6
  const execPromise = promisify(exec);
7
7