@pega/sdk 0.0.3 → 0.0.4

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 (346) hide show
  1. package/LICENSE +183 -183
  2. package/README.md +6 -6
  3. package/SECURITY.md +2 -1
  4. package/dist/index.js +12 -55
  5. package/package.json +7 -6
  6. package/templates/angular-sdk-reference/package.json +15 -15
  7. package/templates/angular-sdk-reference/tsconfig.json +2 -2
  8. package/templates/react-native-sdk-reference/App.tsx +2 -4
  9. package/templates/react-native-sdk-reference/package.json +6 -6
  10. package/templates/react-native-sdk-reference/tsconfig.json +2 -1
  11. package/templates/react-sdk-reference/.claude/instructions/component-map.md +1 -1
  12. package/templates/react-sdk-reference/.claude/instructions/field-component.md +4 -0
  13. package/templates/react-sdk-reference/.claude/instructions/template-component.md +2 -1
  14. package/templates/react-sdk-reference/.claude/instructions/widget-component.md +1 -0
  15. package/templates/react-sdk-reference/.claude/prompts/add-component.md +18 -10
  16. package/templates/react-sdk-reference/.claude/prompts/component-manifest.json +165 -83
  17. package/templates/react-sdk-reference/.claude/prompts/generate-all-components.md +26 -17
  18. package/templates/react-sdk-reference/.claude/prompts/generate-dse-components.md +27 -13
  19. package/templates/react-sdk-reference/.claude/prompts/generate-field-components.md +42 -28
  20. package/templates/react-sdk-reference/.claude/prompts/generate-template-components.md +48 -34
  21. package/templates/react-sdk-reference/.claude/prompts/generate-widget-components.md +25 -11
  22. package/templates/react-sdk-reference/.claude/prompts/identify-components.md +65 -65
  23. package/templates/react-sdk-reference/.claude/skills/component-contracts.md +99 -99
  24. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/AlertBanner.md +40 -38
  25. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Banner.md +54 -51
  26. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/CaseSummaryFields.md +51 -46
  27. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/DetailsFields.md +32 -28
  28. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroup.md +38 -35
  29. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroupList.md +25 -23
  30. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldValueList.md +29 -26
  31. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Operator.md +32 -26
  32. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Pulse.md +17 -15
  33. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/RichTextEditor.md +85 -59
  34. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/WssQuickCreate.md +49 -47
  35. package/templates/react-sdk-reference/.claude/skills/design-system-extension.md +13 -11
  36. package/templates/react-sdk-reference/.claude/skills/field-components.md +9 -8
  37. package/templates/react-sdk-reference/.claude/skills/field-skills/AutoComplete.md +27 -26
  38. package/templates/react-sdk-reference/.claude/skills/field-skills/CancelAlert.md +30 -22
  39. package/templates/react-sdk-reference/.claude/skills/field-skills/Checkbox.md +60 -43
  40. package/templates/react-sdk-reference/.claude/skills/field-skills/Currency.md +23 -20
  41. package/templates/react-sdk-reference/.claude/skills/field-skills/Date.md +19 -17
  42. package/templates/react-sdk-reference/.claude/skills/field-skills/DateTime.md +18 -15
  43. package/templates/react-sdk-reference/.claude/skills/field-skills/Decimal.md +22 -21
  44. package/templates/react-sdk-reference/.claude/skills/field-skills/Dropdown.md +50 -30
  45. package/templates/react-sdk-reference/.claude/skills/field-skills/Email.md +20 -18
  46. package/templates/react-sdk-reference/.claude/skills/field-skills/Group.md +21 -15
  47. package/templates/react-sdk-reference/.claude/skills/field-skills/Integer.md +17 -16
  48. package/templates/react-sdk-reference/.claude/skills/field-skills/Location.md +30 -21
  49. package/templates/react-sdk-reference/.claude/skills/field-skills/Multiselect.md +66 -42
  50. package/templates/react-sdk-reference/.claude/skills/field-skills/ObjectReference.md +27 -18
  51. package/templates/react-sdk-reference/.claude/skills/field-skills/Percentage.md +22 -21
  52. package/templates/react-sdk-reference/.claude/skills/field-skills/Phone.md +36 -17
  53. package/templates/react-sdk-reference/.claude/skills/field-skills/RadioButtons.md +56 -35
  54. package/templates/react-sdk-reference/.claude/skills/field-skills/RichText.md +23 -12
  55. package/templates/react-sdk-reference/.claude/skills/field-skills/ScalarList.md +41 -31
  56. package/templates/react-sdk-reference/.claude/skills/field-skills/SelectableCard.md +70 -55
  57. package/templates/react-sdk-reference/.claude/skills/field-skills/SemanticLink.md +34 -27
  58. package/templates/react-sdk-reference/.claude/skills/field-skills/TextArea.md +24 -22
  59. package/templates/react-sdk-reference/.claude/skills/field-skills/TextContent.md +38 -22
  60. package/templates/react-sdk-reference/.claude/skills/field-skills/TextInput.md +24 -21
  61. package/templates/react-sdk-reference/.claude/skills/field-skills/Time.md +16 -15
  62. package/templates/react-sdk-reference/.claude/skills/field-skills/URL.md +16 -15
  63. package/templates/react-sdk-reference/.claude/skills/field-skills/UserReference.md +57 -34
  64. package/templates/react-sdk-reference/.claude/skills/run-and-verify.md +10 -8
  65. package/templates/react-sdk-reference/.claude/skills/template-components.md +7 -8
  66. package/templates/react-sdk-reference/.claude/skills/template-skills/AdvancedSearch.md +27 -21
  67. package/templates/react-sdk-reference/.claude/skills/template-skills/AppShell.md +17 -15
  68. package/templates/react-sdk-reference/.claude/skills/template-skills/BannerPage.md +19 -16
  69. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseSummary.md +19 -13
  70. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseView.md +23 -17
  71. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseViewActionsMenu.md +34 -29
  72. package/templates/react-sdk-reference/.claude/skills/template-skills/Confirmation.md +18 -16
  73. package/templates/react-sdk-reference/.claude/skills/template-skills/DataReference.md +36 -32
  74. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultForm.md +23 -21
  75. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultPage.md +31 -29
  76. package/templates/react-sdk-reference/.claude/skills/template-skills/Details.md +19 -17
  77. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsSubTabs.md +22 -20
  78. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsThreeColumn.md +19 -17
  79. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsTwoColumn.md +19 -17
  80. package/templates/react-sdk-reference/.claude/skills/template-skills/DynamicTabs.md +15 -10
  81. package/templates/react-sdk-reference/.claude/skills/template-skills/FieldGroupTemplate.md +19 -16
  82. package/templates/react-sdk-reference/.claude/skills/template-skills/HierarchicalForm.md +18 -15
  83. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboard.md +17 -13
  84. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboardPage.md +10 -13
  85. package/templates/react-sdk-reference/.claude/skills/template-skills/ListPage.md +9 -7
  86. package/templates/react-sdk-reference/.claude/skills/template-skills/ListView.md +33 -30
  87. package/templates/react-sdk-reference/.claude/skills/template-skills/MultiReferenceReadOnly.md +13 -11
  88. package/templates/react-sdk-reference/.claude/skills/template-skills/NarrowWide.md +42 -40
  89. package/templates/react-sdk-reference/.claude/skills/template-skills/OneColumn.md +25 -20
  90. package/templates/react-sdk-reference/.claude/skills/template-skills/PromotedFilters.md +25 -19
  91. package/templates/react-sdk-reference/.claude/skills/template-skills/SelfServiceCaseView.md +36 -29
  92. package/templates/react-sdk-reference/.claude/skills/template-skills/SimpleTable.md +31 -27
  93. package/templates/react-sdk-reference/.claude/skills/template-skills/SingleReferenceReadOnly.md +29 -24
  94. package/templates/react-sdk-reference/.claude/skills/template-skills/SubTabs.md +14 -11
  95. package/templates/react-sdk-reference/.claude/skills/template-skills/TwoColumn.md +34 -32
  96. package/templates/react-sdk-reference/.claude/skills/template-skills/WideNarrow.md +48 -46
  97. package/templates/react-sdk-reference/.claude/skills/template-skills/WssNavBar.md +23 -19
  98. package/templates/react-sdk-reference/.claude/skills/widget-components.md +11 -22
  99. package/templates/react-sdk-reference/.claude/skills/widget-skills/AppAnnouncement.md +22 -20
  100. package/templates/react-sdk-reference/.claude/skills/widget-skills/Attachment.md +33 -28
  101. package/templates/react-sdk-reference/.claude/skills/widget-skills/CaseHistory.md +18 -15
  102. package/templates/react-sdk-reference/.claude/skills/widget-skills/FileUtility.md +43 -37
  103. package/templates/react-sdk-reference/.claude/skills/widget-skills/Followers.md +23 -19
  104. package/templates/react-sdk-reference/.claude/skills/widget-skills/QuickCreate.md +20 -16
  105. package/templates/react-sdk-reference/.claude/skills/widget-skills/SummaryItem.md +26 -24
  106. package/templates/react-sdk-reference/.claude/skills/widget-skills/ToDo.md +43 -35
  107. package/templates/react-sdk-reference/.cursor/rules/prompts/component-manifest.json +165 -83
  108. package/templates/react-sdk-reference/.github/agents/implementation-expert.agent.md +135 -0
  109. package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +2 -2
  110. package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +1 -1
  111. package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +5 -1
  112. package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +3 -2
  113. package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +2 -1
  114. package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +58 -15
  115. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +165 -83
  116. package/templates/react-sdk-reference/.github/prompts/generate-all-components.prompt.md +322 -65
  117. package/templates/react-sdk-reference/.github/prompts/generate-dse-components.prompt.md +124 -50
  118. package/templates/react-sdk-reference/.github/prompts/generate-field-components.prompt.md +145 -66
  119. package/templates/react-sdk-reference/.github/prompts/generate-template-components.prompt.md +146 -73
  120. package/templates/react-sdk-reference/.github/prompts/generate-widget-components.prompt.md +128 -49
  121. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +65 -65
  122. package/templates/react-sdk-reference/.github/skills/component-contracts.md +99 -99
  123. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/AlertBanner.md +40 -38
  124. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +54 -51
  125. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +51 -46
  126. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +32 -28
  127. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +38 -35
  128. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +25 -23
  129. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +29 -26
  130. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +32 -26
  131. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +17 -15
  132. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +85 -59
  133. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +49 -47
  134. package/templates/react-sdk-reference/.github/skills/design-system-extension.md +13 -11
  135. package/templates/react-sdk-reference/.github/skills/field-components.md +9 -8
  136. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +27 -26
  137. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +30 -22
  138. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +60 -43
  139. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +23 -20
  140. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +19 -17
  141. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +18 -15
  142. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +22 -21
  143. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +50 -30
  144. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +20 -18
  145. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +21 -15
  146. package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +17 -16
  147. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +30 -21
  148. package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +66 -42
  149. package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +27 -18
  150. package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +22 -21
  151. package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +36 -17
  152. package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +56 -35
  153. package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +23 -12
  154. package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +41 -31
  155. package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +70 -55
  156. package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +34 -27
  157. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +24 -22
  158. package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +38 -22
  159. package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +24 -21
  160. package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +16 -15
  161. package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +16 -15
  162. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +57 -34
  163. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +10 -8
  164. package/templates/react-sdk-reference/.github/skills/template-components.md +7 -8
  165. package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +27 -21
  166. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +17 -15
  167. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +19 -16
  168. package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +19 -13
  169. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +23 -17
  170. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +34 -29
  171. package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +18 -16
  172. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +36 -32
  173. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +23 -21
  174. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +31 -29
  175. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +19 -17
  176. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +22 -20
  177. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +19 -17
  178. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +19 -17
  179. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +15 -10
  180. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +19 -16
  181. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +18 -15
  182. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +17 -13
  183. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +10 -13
  184. package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +9 -7
  185. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +33 -30
  186. package/templates/react-sdk-reference/.github/skills/template-skills/MultiReferenceReadOnly.md +13 -11
  187. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +42 -40
  188. package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +25 -20
  189. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +25 -19
  190. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +36 -29
  191. package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +31 -27
  192. package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +29 -24
  193. package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +14 -11
  194. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +34 -32
  195. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +48 -46
  196. package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +23 -19
  197. package/templates/react-sdk-reference/.github/skills/widget-components.md +11 -22
  198. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +22 -20
  199. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +33 -28
  200. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +18 -15
  201. package/templates/react-sdk-reference/.github/skills/widget-skills/FileUtility.md +43 -37
  202. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +23 -19
  203. package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +20 -16
  204. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +26 -24
  205. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +43 -35
  206. package/templates/react-sdk-reference/AGENTS.md +0 -1
  207. package/templates/react-sdk-reference/index.html +1 -4
  208. package/templates/react-sdk-reference/package.json +15 -15
  209. package/templates/react-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
  210. package/templates/react-sdk-reference/src/AppSelector.tsx +6 -6
  211. package/templates/react-sdk-reference/src/FallbackComponent.tsx +2 -6
  212. package/templates/react-sdk-reference/src/MashupApp.styles.ts +269 -41
  213. package/templates/react-sdk-reference/src/MashupApp.tsx +186 -85
  214. package/templates/react-sdk-reference/src/PortalApp.tsx +10 -34
  215. package/templates/react-sdk-reference/src/components/component-map.ts +2 -7
  216. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.tsx +7 -28
  217. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.tsx +12 -7
  218. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +35 -33
  219. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/DetailsFields.tsx +6 -27
  220. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx +15 -11
  221. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx +7 -7
  222. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/FieldValueList.tsx +18 -12
  223. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/Operator.tsx +27 -25
  224. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/Pulse.tsx +4 -4
  225. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx +8 -40
  226. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +9 -9
  227. package/templates/react-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +26 -20
  228. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.tsx +35 -17
  229. package/templates/react-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +27 -25
  230. package/templates/react-sdk-reference/src/components/field/Currency/Currency.tsx +10 -6
  231. package/templates/react-sdk-reference/src/components/field/Currency/currency-utils.ts +1 -1
  232. package/templates/react-sdk-reference/src/components/field/Date/Date.tsx +20 -7
  233. package/templates/react-sdk-reference/src/components/field/DateTime/DateTime.tsx +23 -8
  234. package/templates/react-sdk-reference/src/components/field/Decimal/Decimal.tsx +5 -5
  235. package/templates/react-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +45 -25
  236. package/templates/react-sdk-reference/src/components/field/Email/Email.tsx +8 -8
  237. package/templates/react-sdk-reference/src/components/field/Group/Group.tsx +1 -1
  238. package/templates/react-sdk-reference/src/components/field/Integer/Integer.tsx +5 -5
  239. package/templates/react-sdk-reference/src/components/field/Location/Location.tsx +21 -16
  240. package/templates/react-sdk-reference/src/components/field/Multiselect/Multiselect.tsx +42 -27
  241. package/templates/react-sdk-reference/src/components/field/Multiselect/utils.ts +43 -29
  242. package/templates/react-sdk-reference/src/components/field/ObjectReference/ObjectReference.tsx +53 -30
  243. package/templates/react-sdk-reference/src/components/field/ObjectReference/utils.ts +12 -11
  244. package/templates/react-sdk-reference/src/components/field/Percentage/Percentage.tsx +6 -6
  245. package/templates/react-sdk-reference/src/components/field/Phone/Phone.tsx +12 -12
  246. package/templates/react-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +38 -16
  247. package/templates/react-sdk-reference/src/components/field/RichText/RichText.tsx +17 -4
  248. package/templates/react-sdk-reference/src/components/field/ScalarList/ScalarList.tsx +5 -5
  249. package/templates/react-sdk-reference/src/components/field/SelectableCard/SelectableCard.tsx +31 -18
  250. package/templates/react-sdk-reference/src/components/field/SelectableCard/utils.tsx +28 -20
  251. package/templates/react-sdk-reference/src/components/field/SemanticLink/SemanticLink.tsx +28 -19
  252. package/templates/react-sdk-reference/src/components/field/SemanticLink/utils.ts +3 -1
  253. package/templates/react-sdk-reference/src/components/field/TextArea/TextArea.tsx +4 -4
  254. package/templates/react-sdk-reference/src/components/field/TextInput/TextInput.tsx +4 -4
  255. package/templates/react-sdk-reference/src/components/field/Time/Time.tsx +20 -7
  256. package/templates/react-sdk-reference/src/components/field/URL/URL.tsx +7 -7
  257. package/templates/react-sdk-reference/src/components/field/UserReference/UserReference.tsx +14 -14
  258. package/templates/react-sdk-reference/src/components/field/UserReference/UserReferenceUtils.ts +2 -2
  259. package/templates/react-sdk-reference/src/components/helpers/case-utils.tsx +5 -5
  260. package/templates/react-sdk-reference/src/components/helpers/data_page.ts +3 -3
  261. package/templates/react-sdk-reference/src/components/helpers/date-format-utils.ts +5 -5
  262. package/templates/react-sdk-reference/src/components/helpers/field-group-utils.ts +2 -7
  263. package/templates/react-sdk-reference/src/components/helpers/formatters/Boolean.ts +9 -3
  264. package/templates/react-sdk-reference/src/components/helpers/formatters/Currency.ts +18 -6
  265. package/templates/react-sdk-reference/src/components/helpers/formatters/CurrencyMap.ts +168 -168
  266. package/templates/react-sdk-reference/src/components/helpers/formatters/Date.ts +5 -5
  267. package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +8 -5
  268. package/templates/react-sdk-reference/src/components/helpers/instructions-utils.ts +2 -2
  269. package/templates/react-sdk-reference/src/components/helpers/simpleTableHelpers.ts +54 -30
  270. package/templates/react-sdk-reference/src/components/helpers/state-utils.tsx +5 -2
  271. package/templates/react-sdk-reference/src/components/helpers/template-utils.ts +5 -4
  272. package/templates/react-sdk-reference/src/components/helpers/utils.ts +3 -3
  273. package/templates/react-sdk-reference/src/components/helpers/versionHelpers.ts +3 -1
  274. package/templates/react-sdk-reference/src/components/index.ts +1 -4
  275. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx +18 -10
  276. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts +3 -3
  277. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +26 -90
  278. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/hooks.ts +8 -5
  279. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/utils.ts +8 -4
  280. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/TemplateContext.ts +1 -1
  281. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.tsx +28 -19
  282. package/templates/react-sdk-reference/src/components/template/BannerPage/BannerPage.tsx +2 -2
  283. package/templates/react-sdk-reference/src/components/template/CaseSummary/CaseSummary.tsx +5 -5
  284. package/templates/react-sdk-reference/src/components/template/CaseView/CaseView.tsx +35 -16
  285. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +10 -10
  286. package/templates/react-sdk-reference/src/components/template/Confirmation/Confirmation.tsx +12 -26
  287. package/templates/react-sdk-reference/src/components/template/DataReference/DataReference.tsx +41 -124
  288. package/templates/react-sdk-reference/src/components/template/DataReference/DataReferenceAdvancedSearchContext.ts +2 -2
  289. package/templates/react-sdk-reference/src/components/template/DataReference/SearchForm.tsx +18 -78
  290. package/templates/react-sdk-reference/src/components/template/DataReference/utils.ts +18 -12
  291. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +4 -12
  292. package/templates/react-sdk-reference/src/components/template/DefaultForm/utils/index.ts +3 -3
  293. package/templates/react-sdk-reference/src/components/template/DefaultPage/DefaultPage.tsx +3 -3
  294. package/templates/react-sdk-reference/src/components/template/Details/Details/Details.tsx +6 -8
  295. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +7 -14
  296. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +7 -14
  297. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/DynamicTabs.tsx +16 -8
  298. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx +7 -4
  299. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/HierarchicalForm.tsx +20 -5
  300. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/hooks.ts +35 -77
  301. package/templates/react-sdk-reference/src/components/template/InlineDashboard/InlineDashboard.tsx +10 -10
  302. package/templates/react-sdk-reference/src/components/template/ListView/DefaultViewMeta.ts +31 -31
  303. package/templates/react-sdk-reference/src/components/template/ListView/ListView.tsx +173 -133
  304. package/templates/react-sdk-reference/src/components/template/ListView/hooks.ts +17 -10
  305. package/templates/react-sdk-reference/src/components/template/ListView/utils.ts +64 -51
  306. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +6 -6
  307. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.tsx +6 -6
  308. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +8 -18
  309. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +3 -3
  310. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +7 -1
  311. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/OneColumn.tsx +3 -3
  312. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/OneColumnTab.tsx +1 -1
  313. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.tsx +13 -40
  314. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx +19 -16
  315. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx +8 -7
  316. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +84 -203
  317. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +15 -5
  318. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.tsx +15 -29
  319. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +7 -7
  320. package/templates/react-sdk-reference/src/components/template/SubTabs/SubTabs.tsx +1 -1
  321. package/templates/react-sdk-reference/src/components/template/SubTabs/tabUtils.ts +13 -11
  322. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx +3 -3
  323. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +3 -3
  324. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx +6 -6
  325. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +13 -24
  326. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +3 -3
  327. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +7 -1
  328. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.tsx +25 -25
  329. package/templates/react-sdk-reference/src/components/template/utils.tsx +6 -6
  330. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/AppAnnouncement.tsx +9 -9
  331. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.tsx +125 -79
  332. package/templates/react-sdk-reference/src/components/widget/Attachment/AttachmentUtils.ts +58 -33
  333. package/templates/react-sdk-reference/src/components/widget/CaseHistory/CaseHistory.tsx +14 -12
  334. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +19 -7
  335. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.tsx +137 -107
  336. package/templates/react-sdk-reference/src/components/widget/Followers/Followers.tsx +4 -4
  337. package/templates/react-sdk-reference/src/components/widget/QuickCreate/QuickCreate.tsx +15 -11
  338. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.tsx +25 -18
  339. package/templates/react-sdk-reference/src/components/widget/SummaryList/SummaryList.tsx +7 -2
  340. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.tsx +30 -116
  341. package/templates/react-sdk-reference/src/main.tsx +1 -1
  342. package/templates/react-sdk-reference/tsconfig.json +2 -1
  343. package/templates/react-sdk-reference/vite.config.ts +51 -26
  344. package/templates/wc-sdk-reference/package.json +3 -3
  345. package/templates/wc-sdk-reference/src/index.ts +10 -10
  346. package/templates/wc-sdk-reference/tsconfig.json +1 -0
@@ -9,6 +9,7 @@ Read the user's message carefully. Extract:
9
9
  Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
10
10
 
11
11
  Example questions (ask only the ones that are actually missing):
12
+
12
13
  1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
13
14
  2. Where should the DSE components be generated? (e.g. `src/components/designSystemExtension/`)
14
15
 
@@ -18,19 +19,19 @@ Once both are known, continue to Step 1.
18
19
 
19
20
  ### Full component list (default — 11 DSE components)
20
21
 
21
- | Component | Pattern | DS needed? |
22
- |---|---|---|
23
- | AlertBanner | B — Pure display | Yes |
24
- | Banner | B — Pure display | Yes |
25
- | CaseSummaryFields | A — PConnect display | Minimal |
26
- | DetailsFields | A — PConnect display | Minimal |
27
- | FieldGroup | C — Complex display | No |
28
- | FieldGroupList | C — Complex display | No |
29
- | FieldValueList | A — PConnect display | No (CSS only) |
30
- | Operator | B — Pure display | Yes |
31
- | Pulse | C — Complex display | No |
32
- | RichTextEditor | C — Complex display | No |
33
- | WssQuickCreate | B — Pure display | Yes |
22
+ | Component | Pattern | DS needed? |
23
+ | ----------------- | -------------------- | ------------- |
24
+ | AlertBanner | B — Pure display | Yes |
25
+ | Banner | B — Pure display | Yes |
26
+ | CaseSummaryFields | A — PConnect display | Minimal |
27
+ | DetailsFields | A — PConnect display | Minimal |
28
+ | FieldGroup | C — Complex display | No |
29
+ | FieldGroupList | C — Complex display | No |
30
+ | FieldValueList | A — PConnect display | No (CSS only) |
31
+ | Operator | B — Pure display | Yes |
32
+ | Pulse | C — Complex display | No |
33
+ | RichTextEditor | C — Complex display | No |
34
+ | WssQuickCreate | B — Pure display | Yes |
34
35
 
35
36
  ---
36
37
 
@@ -39,6 +40,7 @@ Once both are known, continue to Step 1.
39
40
  Read the full contents of `.claude/skills/design-system-extension.md`.
40
41
 
41
42
  This gives you:
43
+
42
44
  - All three implementation patterns (Pure display, Field value display, Complex display with PConnect)
43
45
  - The `// [DS RENDER]` placeholder approach for Pattern B components
44
46
  - The Design System Adaptation section — pattern categorisation, variant mapping table, DS discovery guidance
@@ -52,11 +54,13 @@ Keep this context active throughout the entire generation session. Do not re-rea
52
54
  ## Step 2 — Install and discover the design system (once)
53
55
 
54
56
  Execute **Step 3** from `.claude/prompts/add-component.md` exactly as written:
57
+
55
58
  - Check `package.json` for the DS package
56
59
  - Install if missing, including any peer dependencies
57
60
  - Report what was installed
58
61
 
59
62
  Then execute **Step 4** from `.claude/prompts/add-component.md` exactly as written:
63
+
60
64
  - Read the DS README from `node_modules`
61
65
  - Discover exported components from `dist/index.d.ts`
62
66
  - Focus on display primitives used by Pattern B components: Alert, Card, Avatar, Badge, Tag, Notification
@@ -73,7 +77,9 @@ Build a **DS display primitive reference map** from this discovery. Reuse it for
73
77
  For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
74
78
 
75
79
  If **any** exist, report them all at once and ask:
80
+
76
81
  > "The following N components already exist: [list]. How should I proceed?
82
+ >
77
83
  > - **Overwrite all** — replace all existing implementations
78
84
  > - **Skip existing** — only generate components that don't exist yet
79
85
  > - **Cancel** — stop without generating anything"
@@ -87,7 +93,9 @@ Wait for the user's answer before proceeding. If none exist, continue immediatel
87
93
  For each component in the resolved list (in the order listed in Step 0):
88
94
 
89
95
  ### 4a — Read the component-specific skill file
96
+
90
97
  Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
98
+
91
99
  - Read `.claude/skills/design-system-extension-skills/<ComponentName>.md` fully
92
100
  - Identify the component's pattern (B / A / C) from the skill file
93
101
  - Pay attention to:
@@ -95,7 +103,9 @@ Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
95
103
  - **Design System Mapping** table — the recommended DS primitive for Pattern B components
96
104
 
97
105
  ### 4b — Generate the component files
106
+
98
107
  Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
108
+
99
109
  - Create `<outputPath>/<ComponentName>/` directory
100
110
  - Create `<ComponentName>.tsx` using:
101
111
  - **Pattern B** (Pure display — AlertBanner, Banner, Operator, WssQuickCreate): use DS alert/card/avatar primitive from Step 2 API map in the `// [DS RENDER]` section; apply variant mapping from the skill file
@@ -108,12 +118,15 @@ Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
108
118
  - Create any CSS file required by the skill file
109
119
 
110
120
  ### 4c — Register the component
121
+
111
122
  Execute **Step 6** from `.claude/prompts/add-component.md` for this component:
123
+
112
124
  - Add the import to `src/components/component-map.ts` in the Design System Extension section
113
125
  - Add the entry to `getSampleComponentMap()` under the DSE comment
114
126
  - Do not reorder or restructure any existing entries
115
127
 
116
128
  ### 4d — Report progress
129
+
117
130
  After each component: "`<ComponentName>` ✓ — Pattern `<B/A/C>`<`, using <DS primitive>` if Pattern B>"
118
131
 
119
132
  ---
@@ -121,6 +134,7 @@ After each component: "`<ComponentName>` ✓ — Pattern `<B/A/C>`<`, using <DS
121
134
  ## Step 5 — Verify the build
122
135
 
123
136
  Execute **Step 7** from `.claude/prompts/add-component.md` exactly as written:
137
+
124
138
  - Run `npm run build`
125
139
  - Fix any TypeScript or build errors before reporting completion
126
140
  - Report a summary: list of all files created and all entries added to `component-map.ts`
@@ -9,6 +9,7 @@ Read the user's message carefully. Extract:
9
9
  Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
10
10
 
11
11
  Example questions (ask only the ones that are actually missing):
12
+
12
13
  1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
13
14
  2. Where should the field components be generated? (e.g. `src/components/field/`)
14
15
 
@@ -18,35 +19,35 @@ Once both are known, continue to Step 1.
18
19
 
19
20
  ### Full component list (default)
20
21
 
21
- | Component | Pega Name |
22
- |---|---|
23
- | AutoComplete | AutoComplete |
24
- | CancelAlert | CancelAlert |
25
- | Checkbox | Checkbox |
26
- | Currency | Currency |
27
- | Date | Date |
28
- | DateTime | DateTime |
29
- | Decimal | Decimal |
30
- | Dropdown | Dropdown |
31
- | Email | Email |
32
- | Group | Group |
33
- | Integer | Integer |
34
- | Location | Location |
35
- | Multiselect | Multiselect |
22
+ | Component | Pega Name |
23
+ | --------------- | --------------- |
24
+ | AutoComplete | AutoComplete |
25
+ | CancelAlert | CancelAlert |
26
+ | Checkbox | Checkbox |
27
+ | Currency | Currency |
28
+ | Date | Date |
29
+ | DateTime | DateTime |
30
+ | Decimal | Decimal |
31
+ | Dropdown | Dropdown |
32
+ | Email | Email |
33
+ | Group | Group |
34
+ | Integer | Integer |
35
+ | Location | Location |
36
+ | Multiselect | Multiselect |
36
37
  | ObjectReference | ObjectReference |
37
- | Percentage | Percentage |
38
- | Phone | Phone |
39
- | RadioButtons | RadioButtons |
40
- | RichText | RichText |
41
- | ScalarList | ScalarList |
42
- | SelectableCard | SelectableCard |
43
- | SemanticLink | SemanticLink |
44
- | TextArea | TextArea |
45
- | TextContent | TextContent |
46
- | TextInput | TextInput |
47
- | Time | Time |
48
- | URL | URL |
49
- | UserReference | UserReference |
38
+ | Percentage | Percentage |
39
+ | Phone | Phone |
40
+ | RadioButtons | RadioButtons |
41
+ | RichText | RichText |
42
+ | ScalarList | ScalarList |
43
+ | SelectableCard | SelectableCard |
44
+ | SemanticLink | SemanticLink |
45
+ | TextArea | TextArea |
46
+ | TextContent | TextContent |
47
+ | TextInput | TextInput |
48
+ | Time | Time |
49
+ | URL | URL |
50
+ | UserReference | UserReference |
50
51
 
51
52
  ---
52
53
 
@@ -55,6 +56,7 @@ Once both are known, continue to Step 1.
55
56
  Read the full contents of `.claude/skills/field-components.md`.
56
57
 
57
58
  This gives you:
59
+
58
60
  - The behavioral skeleton every field component must follow (state, effects, event handling, display modes)
59
61
  - The Design System Adaptation guide (prop mapping conventions, form layout wrappers)
60
62
  - The abstract template to use as a base for all components
@@ -66,11 +68,13 @@ Keep this context active throughout the entire generation session. Do not re-rea
66
68
  ## Step 2 — Install and discover the design system (once)
67
69
 
68
70
  Execute **Step 3** from `.claude/prompts/add-component.md` exactly as written:
71
+
69
72
  - Check `package.json` for the DS package
70
73
  - Install if missing, including any peer dependencies
71
74
  - Report what was installed
72
75
 
73
76
  Then execute **Step 4** from `.claude/prompts/add-component.md` exactly as written:
77
+
74
78
  - Read the DS README from `node_modules`
75
79
  - Discover all exported components from `dist/index.d.ts`
76
80
  - Read prop interfaces for the control types needed across the component list
@@ -85,7 +89,9 @@ Build a **DS API reference map** from this discovery. You will reuse it for ever
85
89
  For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
86
90
 
87
91
  If **any** exist, report them all at once and ask:
92
+
88
93
  > "The following N components already exist: [list]. How should I proceed?
94
+ >
89
95
  > - **Overwrite all** — replace all existing implementations
90
96
  > - **Skip existing** — only generate components that don't exist yet
91
97
  > - **Cancel** — stop without generating anything"
@@ -99,7 +105,9 @@ Wait for the user's answer before proceeding. If none exist, continue immediatel
99
105
  For each component in the resolved list (in the order listed in Step 0):
100
106
 
101
107
  ### 4a — Read the component-specific skill file
108
+
102
109
  Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
110
+
103
111
  - Read `.claude/skills/field-skills/<ComponentName>.md` fully
104
112
  - Pay attention to:
105
113
  - **Behavioral Contract** — state management, option loading, edge cases specific to this component
@@ -107,7 +115,9 @@ Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
107
115
  - **UI control type** — use this to select the closest DS primitive if the chosen DS is not in the mapping table
108
116
 
109
117
  ### 4b — Generate the component files
118
+
110
119
  Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
120
+
111
121
  - Create `<outputPath>/<ComponentName>/` directory
112
122
  - Create `<ComponentName>.tsx` using:
113
123
  - The abstract behavioral skeleton from `field-components.md` (read in Step 1)
@@ -121,12 +131,15 @@ Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
121
131
  ```
122
132
 
123
133
  ### 4c — Register the component
134
+
124
135
  Execute **Step 6** from `.claude/prompts/add-component.md` for this component:
136
+
125
137
  - Add the import to `src/components/component-map.ts` in the Fields section
126
138
  - Add the entry to `getSampleComponentMap()` under the fields comment
127
139
  - Do not reorder or restructure any existing entries
128
140
 
129
141
  ### 4d — Report progress
142
+
130
143
  After each component: "`<ComponentName>` ✓ — using `<DS component name>`"
131
144
 
132
145
  ---
@@ -134,6 +147,7 @@ After each component: "`<ComponentName>` ✓ — using `<DS component name>`"
134
147
  ## Step 5 — Verify the build
135
148
 
136
149
  Execute **Step 7** from `.claude/prompts/add-component.md` exactly as written:
150
+
137
151
  - Run `npm run build`
138
152
  - Fix any TypeScript or build errors before reporting completion
139
153
  - Report a summary: list of all files created and all entries added to `component-map.ts`
@@ -9,6 +9,7 @@ Read the user's message carefully. Extract:
9
9
  Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
10
10
 
11
11
  Example questions (ask only the ones that are actually missing):
12
+
12
13
  1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
13
14
  2. Where should the template components be generated? (e.g. `src/components/template/`)
14
15
 
@@ -20,40 +21,40 @@ Once both are known, continue to Step 1.
20
21
 
21
22
  ### Full component list (default — 32 templates)
22
23
 
23
- | Component | Category |
24
- |---|---|
25
- | AdvancedSearch | Page |
26
- | AppShell | Page |
27
- | BannerPage | Page |
28
- | CaseSummary | Page |
29
- | CaseView | Page |
30
- | CaseViewActionsMenu | Widget |
31
- | Confirmation | Page |
32
- | DataReference | Form |
33
- | DefaultForm | Form |
34
- | DefaultPage | Page |
35
- | Details | Layout |
36
- | DetailsSubTabs | Layout |
37
- | DetailsThreeColumn | Layout |
38
- | DetailsTwoColumn | Layout |
39
- | DynamicTabs | Navigation |
40
- | FieldGroupTemplate | Form |
41
- | HierarchicalForm | Form |
42
- | InlineDashboard | Page |
43
- | InlineDashboardPage | Page |
44
- | ListPage | Page |
45
- | ListView | Page |
46
- | MultiReferenceReadOnly | Display |
47
- | NarrowWide | Layout |
48
- | OneColumn | Layout |
49
- | PromotedFilters | Widget |
50
- | SelfServiceCaseView | Page |
51
- | SimpleTable | Table |
52
- | SingleReferenceReadOnly | Display |
53
- | SubTabs | Navigation |
54
- | TwoColumn | Layout |
55
- | WideNarrow | Layout |
56
- | WssNavBar | Navigation |
24
+ | Component | Category |
25
+ | ----------------------- | ---------- |
26
+ | AdvancedSearch | Page |
27
+ | AppShell | Page |
28
+ | BannerPage | Page |
29
+ | CaseSummary | Page |
30
+ | CaseView | Page |
31
+ | CaseViewActionsMenu | Widget |
32
+ | Confirmation | Page |
33
+ | DataReference | Form |
34
+ | DefaultForm | Form |
35
+ | DefaultPage | Page |
36
+ | Details | Layout |
37
+ | DetailsSubTabs | Layout |
38
+ | DetailsThreeColumn | Layout |
39
+ | DetailsTwoColumn | Layout |
40
+ | DynamicTabs | Navigation |
41
+ | FieldGroupTemplate | Form |
42
+ | HierarchicalForm | Form |
43
+ | InlineDashboard | Page |
44
+ | InlineDashboardPage | Page |
45
+ | ListPage | Page |
46
+ | ListView | Page |
47
+ | MultiReferenceReadOnly | Display |
48
+ | NarrowWide | Layout |
49
+ | OneColumn | Layout |
50
+ | PromotedFilters | Widget |
51
+ | SelfServiceCaseView | Page |
52
+ | SimpleTable | Table |
53
+ | SingleReferenceReadOnly | Display |
54
+ | SubTabs | Navigation |
55
+ | TwoColumn | Layout |
56
+ | WideNarrow | Layout |
57
+ | WssNavBar | Navigation |
57
58
 
58
59
  ---
59
60
 
@@ -62,6 +63,7 @@ Once both are known, continue to Step 1.
62
63
  Read the full contents of `.claude/skills/template-components.md`.
63
64
 
64
65
  This gives you:
66
+
65
67
  - **Layout template pattern** — DS-agnostic grid skeleton with `// [DS GRID]` placeholder; `templateCol` parsing logic; responsive behavior rules
66
68
  - **Design System Adaptation section** — how to map the chosen DS's grid/flex primitive to the computed column ratios
67
69
  - **Form template pattern** — PConnect bridge via `createElement(createPConnectComponent(), ...)` and `connectToState`; no DS involved
@@ -75,11 +77,13 @@ Keep this context active throughout the entire generation session. Do not re-rea
75
77
  ## Step 2 — Install and discover the design system (once)
76
78
 
77
79
  Execute **Step 3** from `.claude/prompts/add-component.md` exactly as written:
80
+
78
81
  - Check `package.json` for the DS package
79
82
  - Install if missing, including any peer dependencies
80
83
  - Report what was installed
81
84
 
82
85
  Then execute **Step 4** from `.claude/prompts/add-component.md` exactly as written:
86
+
83
87
  - Read the DS README from `node_modules`
84
88
  - Discover exported layout components (Grid, Columns, Flex, SimpleGrid, etc.) from `dist/index.d.ts`
85
89
  - Read prop interfaces for the grid/layout components needed by layout templates
@@ -96,7 +100,9 @@ Build a **DS layout API reference** from this discovery. Reuse it for every layo
96
100
  For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
97
101
 
98
102
  If **any** exist, report them all at once and ask:
103
+
99
104
  > "The following N components already exist: [list]. How should I proceed?
105
+ >
100
106
  > - **Overwrite all** — replace all existing implementations
101
107
  > - **Skip existing** — only generate components that don't exist yet
102
108
  > - **Cancel** — stop without generating anything"
@@ -110,7 +116,9 @@ Wait for the user's answer before proceeding. If none exist, continue immediatel
110
116
  For each component in the resolved list (in the order listed in Step 0):
111
117
 
112
118
  ### 4a — Read the component-specific skill file
119
+
113
120
  Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
121
+
114
122
  - Read `.claude/skills/template-skills/<ComponentName>.md` fully
115
123
  - Identify the template category from the skill file:
116
124
  - **Layout** — uses DS grid primitives from Step 2's API reference
@@ -119,7 +127,9 @@ Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
119
127
  - Pay attention to Behavioral Contract, sub-variants, and any Design System Mapping table
120
128
 
121
129
  ### 4b — Generate the component files
130
+
122
131
  Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
132
+
123
133
  - Create `<outputPath>/<ComponentName>/` directory
124
134
  - Create `<ComponentName>.tsx` using:
125
135
  - **Layout templates**: DS-agnostic skeleton from `template-components.md` with the `// [DS GRID]` section filled in using DS layout API confirmed in Step 2
@@ -132,13 +142,16 @@ Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
132
142
  - Create any CSS file required by the skill file (e.g., `DefaultForm.css` with grid classes)
133
143
 
134
144
  ### 4c — Register the component
145
+
135
146
  Execute **Step 6** from `.claude/prompts/add-component.md` for this component:
147
+
136
148
  - Add the import to `src/components/component-map.ts` in the Templates section
137
149
  - Add the entry to `getSampleComponentMap()` under the templates comment
138
150
  - For sub-variants (e.g., TwoColumnPage, TwoColumnTab), register each key separately pointing to its own file or a shared implementation as specified in the skill file
139
151
  - Do not reorder or restructure any existing entries
140
152
 
141
153
  ### 4d — Report progress
154
+
142
155
  After each component: "`<ComponentName>` ✓ — `<Layout | Form | Page>` template`<, using <DS component name> for grid>` if layout"
143
156
 
144
157
  ---
@@ -146,6 +159,7 @@ After each component: "`<ComponentName>` ✓ — `<Layout | Form | Page>` templa
146
159
  ## Step 5 — Verify the build
147
160
 
148
161
  Execute **Step 7** from `.claude/prompts/add-component.md` exactly as written:
162
+
149
163
  - Run `npm run build`
150
164
  - Fix any TypeScript or build errors before reporting completion
151
165
  - Report a summary: list of all files created and all entries added to `component-map.ts`
@@ -9,6 +9,7 @@ Read the user's message carefully. Extract:
9
9
  Both **design system** and **output base path** are required. If either is missing or ambiguous, ask both unresolved items in one numbered list. Do not assume or default the output path — the client's folder structure may differ from the reference app.
10
10
 
11
11
  Example questions (ask only the ones that are actually missing):
12
+
12
13
  1. Which design system should I use? (e.g. Ant Design, Chakra UI, Carbon, Radix UI)
13
14
  2. Where should the widget components be generated? (e.g. `src/components/widget/`)
14
15
 
@@ -18,17 +19,17 @@ Once both are known, continue to Step 1.
18
19
 
19
20
  ### Full component list (default — 9 widgets)
20
21
 
21
- | Component | Description |
22
- |---|---|
23
- | AppAnnouncement | System-wide announcements |
24
- | Attachment | File upload/download |
25
- | CaseHistory | Case audit trail |
26
- | FileUtility | File management utility |
27
- | Followers | Case followers list |
28
- | QuickCreate | Quick case creation buttons |
29
- | SummaryItem | Single summary card |
30
- | SummaryList | List of summary cards |
31
- | ToDo | Assignment worklist |
22
+ | Component | Description |
23
+ | --------------- | --------------------------- |
24
+ | AppAnnouncement | System-wide announcements |
25
+ | Attachment | File upload/download |
26
+ | CaseHistory | Case audit trail |
27
+ | FileUtility | File management utility |
28
+ | Followers | Case followers list |
29
+ | QuickCreate | Quick case creation buttons |
30
+ | SummaryItem | Single summary card |
31
+ | SummaryList | List of summary cards |
32
+ | ToDo | Assignment worklist |
32
33
 
33
34
  ---
34
35
 
@@ -37,6 +38,7 @@ Once both are known, continue to Step 1.
37
38
  Read the full contents of `.claude/skills/widget-components.md`.
38
39
 
39
40
  This gives you:
41
+
40
42
  - The DS-agnostic data-fetching skeleton with `// [DS RENDER]` placeholder
41
43
  - The Design System Adaptation guide (primitive mapping table, icon discovery rules)
42
44
  - All common Pega APIs used in widgets: `PCore.getDataPageUtils()`, `PCore.getMashupApi()`, `PCore.getAttachmentUtils()`, `pConn.getCaseInfo()`, etc.
@@ -51,11 +53,13 @@ Keep this context active throughout the entire generation session. Do not re-rea
51
53
  ## Step 2 — Install and discover the design system (once)
52
54
 
53
55
  Execute **Step 3** from `.claude/prompts/add-component.md` exactly as written:
56
+
54
57
  - Check `package.json` for the DS package
55
58
  - Install if missing, including any peer dependencies
56
59
  - Report what was installed
57
60
 
58
61
  Then execute **Step 4** from `.claude/prompts/add-component.md` exactly as written:
62
+
59
63
  - Read the DS README from `node_modules`
60
64
  - Discover exported components from `dist/index.d.ts`
61
65
  - Focus on presentation primitives used in widgets: Card, List, Table, Button, Badge, Spinner, Skeleton, Empty state
@@ -71,7 +75,9 @@ Build a **DS UI primitive reference map** from this discovery. Reuse it for ever
71
75
  For each component in the list, check whether `<outputPath>/<ComponentName>/<ComponentName>.tsx` already exists.
72
76
 
73
77
  If **any** exist, report them all at once and ask:
78
+
74
79
  > "The following N components already exist: [list]. How should I proceed?
80
+ >
75
81
  > - **Overwrite all** — replace all existing implementations
76
82
  > - **Skip existing** — only generate components that don't exist yet
77
83
  > - **Cancel** — stop without generating anything"
@@ -85,7 +91,9 @@ Wait for the user's answer before proceeding. If none exist, continue immediatel
85
91
  For each component in the resolved list (in the order listed in Step 0):
86
92
 
87
93
  ### 4a — Read the component-specific skill file
94
+
88
95
  Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
96
+
89
97
  - Read `.claude/skills/widget-skills/<ComponentName>.md` fully if it exists
90
98
  - Pay attention to:
91
99
  - **Behavioral Contract** — data fetching logic, PCore API calls, state management, action handlers
@@ -93,7 +101,9 @@ Execute **Step 2** from `.claude/prompts/add-component.md` for this component:
93
101
  - If no skill file exists (e.g., `SummaryList`), use the general data-fetching pattern from `widget-components.md`
94
102
 
95
103
  ### 4b — Generate the component files
104
+
96
105
  Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
106
+
97
107
  - Create `<outputPath>/<ComponentName>/` directory
98
108
  - Create `<ComponentName>.tsx` using:
99
109
  - The DS-agnostic data-fetching skeleton from `widget-components.md` (read in Step 1)
@@ -106,12 +116,15 @@ Execute **Step 5** from `.claude/prompts/add-component.md` for this component:
106
116
  - Create any CSS or utility files required by the skill file
107
117
 
108
118
  ### 4c — Register the component
119
+
109
120
  Execute **Step 6** from `.claude/prompts/add-component.md` for this component:
121
+
110
122
  - Add the import to `src/components/component-map.ts` in the Widgets section
111
123
  - Add the entry to `getSampleComponentMap()` under the widgets comment
112
124
  - Do not reorder or restructure any existing entries
113
125
 
114
126
  ### 4d — Report progress
127
+
115
128
  After each component: "`<ComponentName>` ✓ — using `<DS card/list primitive>`"
116
129
 
117
130
  ---
@@ -119,6 +132,7 @@ After each component: "`<ComponentName>` ✓ — using `<DS card/list primitive>
119
132
  ## Step 5 — Verify the build
120
133
 
121
134
  Execute **Step 7** from `.claude/prompts/add-component.md` exactly as written:
135
+
122
136
  - Run `npm run build`
123
137
  - Fix any TypeScript or build errors before reporting completion
124
138
  - Report a summary: list of all files created and all entries added to `component-map.ts`