@pega/sdk 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (465) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +111 -0
  3. package/SECURITY.md +10 -0
  4. package/dist/index.js +753 -0
  5. package/package.json +41 -0
  6. package/templates/angular-sdk-reference/.github/AGENTS.md +23 -0
  7. package/templates/angular-sdk-reference/.github/copilot-instructions.md +40 -0
  8. package/templates/angular-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  9. package/templates/angular-sdk-reference/angular.json +34 -0
  10. package/templates/angular-sdk-reference/package.json +31 -0
  11. package/templates/angular-sdk-reference/sdk-config.json +26 -0
  12. package/templates/angular-sdk-reference/src/app/app.component.ts +54 -0
  13. package/templates/angular-sdk-reference/src/index.html +12 -0
  14. package/templates/angular-sdk-reference/src/main.ts +4 -0
  15. package/templates/angular-sdk-reference/src/styles.css +19 -0
  16. package/templates/angular-sdk-reference/tsconfig.json +32 -0
  17. package/templates/react-native-sdk-reference/.github/AGENTS.md +23 -0
  18. package/templates/react-native-sdk-reference/.github/copilot-instructions.md +40 -0
  19. package/templates/react-native-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  20. package/templates/react-native-sdk-reference/App.tsx +51 -0
  21. package/templates/react-native-sdk-reference/app.json +11 -0
  22. package/templates/react-native-sdk-reference/package.json +22 -0
  23. package/templates/react-native-sdk-reference/sdk-config.json +14 -0
  24. package/templates/react-native-sdk-reference/tsconfig.json +12 -0
  25. package/templates/react-sdk-reference/.github/copilot-instructions.md +185 -0
  26. package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +40 -0
  27. package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +77 -0
  28. package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +73 -0
  29. package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +94 -0
  30. package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +89 -0
  31. package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +21 -0
  32. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +111 -0
  33. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +110 -0
  34. package/templates/react-sdk-reference/.github/prompts/replace-all-fields.prompt.md +48 -0
  35. package/templates/react-sdk-reference/.github/prompts/replace-component.prompt.md +81 -0
  36. package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +524 -0
  37. package/templates/react-sdk-reference/.github/prompts/replace-field.prompt.md +41 -0
  38. package/templates/react-sdk-reference/.github/prompts/swap-design-system.prompt.md +49 -0
  39. package/templates/react-sdk-reference/.github/skills/component-contracts.md +140 -0
  40. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/AlertBanner.md +135 -0
  41. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +149 -0
  42. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +154 -0
  43. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +144 -0
  44. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +131 -0
  45. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +111 -0
  46. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +115 -0
  47. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +149 -0
  48. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +83 -0
  49. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +206 -0
  50. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +135 -0
  51. package/templates/react-sdk-reference/.github/skills/design-system-extension.md +249 -0
  52. package/templates/react-sdk-reference/.github/skills/field-components.md +262 -0
  53. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +112 -0
  54. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +203 -0
  55. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +158 -0
  56. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +106 -0
  57. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +99 -0
  58. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +103 -0
  59. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +98 -0
  60. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +114 -0
  61. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +107 -0
  62. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +90 -0
  63. package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +87 -0
  64. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +136 -0
  65. package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +164 -0
  66. package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +164 -0
  67. package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +92 -0
  68. package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +110 -0
  69. package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +146 -0
  70. package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +138 -0
  71. package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +124 -0
  72. package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +216 -0
  73. package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +148 -0
  74. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +96 -0
  75. package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +101 -0
  76. package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +104 -0
  77. package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +88 -0
  78. package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +85 -0
  79. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +180 -0
  80. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +68 -0
  81. package/templates/react-sdk-reference/.github/skills/swap-design-system.md +105 -0
  82. package/templates/react-sdk-reference/.github/skills/template-components.md +285 -0
  83. package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +144 -0
  84. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +122 -0
  85. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +83 -0
  86. package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +100 -0
  87. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +131 -0
  88. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +126 -0
  89. package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +107 -0
  90. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +120 -0
  91. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +102 -0
  92. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +110 -0
  93. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +88 -0
  94. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +95 -0
  95. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +78 -0
  96. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +78 -0
  97. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +101 -0
  98. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +109 -0
  99. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +113 -0
  100. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +104 -0
  101. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +85 -0
  102. package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +68 -0
  103. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +139 -0
  104. package/templates/react-sdk-reference/.github/skills/template-skills/MultiReferenceReadOnly.md +80 -0
  105. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +141 -0
  106. package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +109 -0
  107. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +124 -0
  108. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +135 -0
  109. package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +127 -0
  110. package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +103 -0
  111. package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +79 -0
  112. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +131 -0
  113. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +150 -0
  114. package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +135 -0
  115. package/templates/react-sdk-reference/.github/skills/widget-components.md +234 -0
  116. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +82 -0
  117. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +146 -0
  118. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +107 -0
  119. package/templates/react-sdk-reference/.github/skills/widget-skills/FileUtility.md +200 -0
  120. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +99 -0
  121. package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +114 -0
  122. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +167 -0
  123. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +190 -0
  124. package/templates/react-sdk-reference/AGENTS.md +59 -0
  125. package/templates/react-sdk-reference/assets/icons/analytics-good-solid.svg +3 -0
  126. package/templates/react-sdk-reference/assets/icons/cart-solid.svg +3 -0
  127. package/templates/react-sdk-reference/assets/icons/headset.svg +3 -0
  128. package/templates/react-sdk-reference/assets/icons/mobile-phone-solid.svg +3 -0
  129. package/templates/react-sdk-reference/assets/icons/money-solid.svg +3 -0
  130. package/templates/react-sdk-reference/assets/icons/multi-device-solid.svg +3 -0
  131. package/templates/react-sdk-reference/index.html +36 -0
  132. package/templates/react-sdk-reference/package.json +52 -0
  133. package/templates/react-sdk-reference/sdk-config.json +26 -0
  134. package/templates/react-sdk-reference/src/AppSelector.tsx +18 -0
  135. package/templates/react-sdk-reference/src/FallbackComponent.tsx +40 -0
  136. package/templates/react-sdk-reference/src/MashupApp.styles.ts +105 -0
  137. package/templates/react-sdk-reference/src/MashupApp.tsx +254 -0
  138. package/templates/react-sdk-reference/src/PortalApp.tsx +175 -0
  139. package/templates/react-sdk-reference/src/components/component-map.ts +255 -0
  140. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.css +46 -0
  141. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/AlertBanner.tsx +91 -0
  142. package/templates/react-sdk-reference/src/components/designSystemExtension/AlertBanner/index.tsx +1 -0
  143. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.css +39 -0
  144. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/Banner.tsx +53 -0
  145. package/templates/react-sdk-reference/src/components/designSystemExtension/Banner/index.tsx +1 -0
  146. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.css +16 -0
  147. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/CaseSummaryFields.tsx +270 -0
  148. package/templates/react-sdk-reference/src/components/designSystemExtension/CaseSummaryFields/index.tsx +1 -0
  149. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/DetailsFields.tsx +164 -0
  150. package/templates/react-sdk-reference/src/components/designSystemExtension/DetailsFields/index.tsx +1 -0
  151. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/FieldGroup.tsx +79 -0
  152. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroup/index.tsx +1 -0
  153. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/FieldGroupList.tsx +58 -0
  154. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldGroupList/index.tsx +1 -0
  155. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/FieldValueList.tsx +84 -0
  156. package/templates/react-sdk-reference/src/components/designSystemExtension/FieldValueList/index.tsx +1 -0
  157. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/Operator.tsx +220 -0
  158. package/templates/react-sdk-reference/src/components/designSystemExtension/Operator/index.tsx +1 -0
  159. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/Pulse.tsx +33 -0
  160. package/templates/react-sdk-reference/src/components/designSystemExtension/Pulse/index.tsx +1 -0
  161. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/RichTextEditor.tsx +201 -0
  162. package/templates/react-sdk-reference/src/components/designSystemExtension/RichTextEditor/index.tsx +1 -0
  163. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.css +33 -0
  164. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/WssQuickCreate.tsx +48 -0
  165. package/templates/react-sdk-reference/src/components/designSystemExtension/WssQuickCreate/index.tsx +1 -0
  166. package/templates/react-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +218 -0
  167. package/templates/react-sdk-reference/src/components/field/AutoComplete/config-ext.json +10 -0
  168. package/templates/react-sdk-reference/src/components/field/AutoComplete/index.tsx +1 -0
  169. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.css +24 -0
  170. package/templates/react-sdk-reference/src/components/field/CancelAlert/CancelAlert.tsx +148 -0
  171. package/templates/react-sdk-reference/src/components/field/CancelAlert/index.tsx +1 -0
  172. package/templates/react-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +263 -0
  173. package/templates/react-sdk-reference/src/components/field/Checkbox/config-ext.json +9 -0
  174. package/templates/react-sdk-reference/src/components/field/Checkbox/index.tsx +1 -0
  175. package/templates/react-sdk-reference/src/components/field/Currency/Currency.tsx +111 -0
  176. package/templates/react-sdk-reference/src/components/field/Currency/config-ext.json +9 -0
  177. package/templates/react-sdk-reference/src/components/field/Currency/currency-utils.ts +67 -0
  178. package/templates/react-sdk-reference/src/components/field/Currency/index.tsx +1 -0
  179. package/templates/react-sdk-reference/src/components/field/Date/Date.tsx +94 -0
  180. package/templates/react-sdk-reference/src/components/field/Date/config-ext.json +9 -0
  181. package/templates/react-sdk-reference/src/components/field/Date/index.tsx +1 -0
  182. package/templates/react-sdk-reference/src/components/field/DateTime/DateTime.tsx +101 -0
  183. package/templates/react-sdk-reference/src/components/field/DateTime/config-ext.json +8 -0
  184. package/templates/react-sdk-reference/src/components/field/DateTime/index.tsx +1 -0
  185. package/templates/react-sdk-reference/src/components/field/Decimal/Decimal.tsx +122 -0
  186. package/templates/react-sdk-reference/src/components/field/Decimal/config-ext.json +8 -0
  187. package/templates/react-sdk-reference/src/components/field/Decimal/index.tsx +1 -0
  188. package/templates/react-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +238 -0
  189. package/templates/react-sdk-reference/src/components/field/Dropdown/config-ext.json +8 -0
  190. package/templates/react-sdk-reference/src/components/field/Dropdown/index.tsx +1 -0
  191. package/templates/react-sdk-reference/src/components/field/Email/Email.tsx +96 -0
  192. package/templates/react-sdk-reference/src/components/field/Email/config-ext.json +8 -0
  193. package/templates/react-sdk-reference/src/components/field/Email/index.tsx +1 -0
  194. package/templates/react-sdk-reference/src/components/field/Group/Group.tsx +41 -0
  195. package/templates/react-sdk-reference/src/components/field/Group/config-ext.json +7 -0
  196. package/templates/react-sdk-reference/src/components/field/Group/index.tsx +1 -0
  197. package/templates/react-sdk-reference/src/components/field/Integer/Integer.tsx +100 -0
  198. package/templates/react-sdk-reference/src/components/field/Integer/config-ext.json +8 -0
  199. package/templates/react-sdk-reference/src/components/field/Integer/index.tsx +1 -0
  200. package/templates/react-sdk-reference/src/components/field/Location/Location.css +4 -0
  201. package/templates/react-sdk-reference/src/components/field/Location/Location.tsx +258 -0
  202. package/templates/react-sdk-reference/src/components/field/Location/config-ext.json +8 -0
  203. package/templates/react-sdk-reference/src/components/field/Location/index.tsx +1 -0
  204. package/templates/react-sdk-reference/src/components/field/Multiselect/Multiselect.tsx +238 -0
  205. package/templates/react-sdk-reference/src/components/field/Multiselect/index.tsx +1 -0
  206. package/templates/react-sdk-reference/src/components/field/Multiselect/utils.ts +230 -0
  207. package/templates/react-sdk-reference/src/components/field/ObjectReference/ObjectReference.tsx +235 -0
  208. package/templates/react-sdk-reference/src/components/field/ObjectReference/index.tsx +1 -0
  209. package/templates/react-sdk-reference/src/components/field/ObjectReference/utils.ts +111 -0
  210. package/templates/react-sdk-reference/src/components/field/Percentage/Percentage.tsx +112 -0
  211. package/templates/react-sdk-reference/src/components/field/Percentage/config-ext.json +8 -0
  212. package/templates/react-sdk-reference/src/components/field/Percentage/index.tsx +1 -0
  213. package/templates/react-sdk-reference/src/components/field/Phone/Phone.tsx +113 -0
  214. package/templates/react-sdk-reference/src/components/field/Phone/config-ext.json +8 -0
  215. package/templates/react-sdk-reference/src/components/field/Phone/index.tsx +1 -0
  216. package/templates/react-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +158 -0
  217. package/templates/react-sdk-reference/src/components/field/RadioButtons/config-ext.json +8 -0
  218. package/templates/react-sdk-reference/src/components/field/RadioButtons/index.tsx +1 -0
  219. package/templates/react-sdk-reference/src/components/field/RichText/RichText.css +79 -0
  220. package/templates/react-sdk-reference/src/components/field/RichText/RichText.tsx +98 -0
  221. package/templates/react-sdk-reference/src/components/field/RichText/config-ext.json +10 -0
  222. package/templates/react-sdk-reference/src/components/field/RichText/index.tsx +1 -0
  223. package/templates/react-sdk-reference/src/components/field/ScalarList/ScalarList.tsx +63 -0
  224. package/templates/react-sdk-reference/src/components/field/ScalarList/config-ext.json +7 -0
  225. package/templates/react-sdk-reference/src/components/field/ScalarList/index.tsx +1 -0
  226. package/templates/react-sdk-reference/src/components/field/SelectableCard/SelectableCard.tsx +189 -0
  227. package/templates/react-sdk-reference/src/components/field/SelectableCard/index.tsx +1 -0
  228. package/templates/react-sdk-reference/src/components/field/SelectableCard/utils.tsx +223 -0
  229. package/templates/react-sdk-reference/src/components/field/SemanticLink/SemanticLink.tsx +208 -0
  230. package/templates/react-sdk-reference/src/components/field/SemanticLink/config-ext.json +7 -0
  231. package/templates/react-sdk-reference/src/components/field/SemanticLink/index.tsx +1 -0
  232. package/templates/react-sdk-reference/src/components/field/SemanticLink/utils.ts +49 -0
  233. package/templates/react-sdk-reference/src/components/field/TextArea/TextArea.tsx +94 -0
  234. package/templates/react-sdk-reference/src/components/field/TextArea/config-ext.json +8 -0
  235. package/templates/react-sdk-reference/src/components/field/TextArea/index.tsx +1 -0
  236. package/templates/react-sdk-reference/src/components/field/TextContent/TextContent.tsx +46 -0
  237. package/templates/react-sdk-reference/src/components/field/TextContent/config-ext.json +7 -0
  238. package/templates/react-sdk-reference/src/components/field/TextContent/index.tsx +1 -0
  239. package/templates/react-sdk-reference/src/components/field/TextInput/TextInput.tsx +92 -0
  240. package/templates/react-sdk-reference/src/components/field/TextInput/config-ext.json +8 -0
  241. package/templates/react-sdk-reference/src/components/field/TextInput/index.tsx +1 -0
  242. package/templates/react-sdk-reference/src/components/field/Time/Time.tsx +79 -0
  243. package/templates/react-sdk-reference/src/components/field/Time/config-ext.json +8 -0
  244. package/templates/react-sdk-reference/src/components/field/Time/index.tsx +1 -0
  245. package/templates/react-sdk-reference/src/components/field/URL/URL.tsx +89 -0
  246. package/templates/react-sdk-reference/src/components/field/URL/config-ext.json +8 -0
  247. package/templates/react-sdk-reference/src/components/field/URL/index.tsx +1 -0
  248. package/templates/react-sdk-reference/src/components/field/UserReference/UserReference.tsx +198 -0
  249. package/templates/react-sdk-reference/src/components/field/UserReference/UserReferenceUtils.ts +13 -0
  250. package/templates/react-sdk-reference/src/components/field/UserReference/config-ext.json +7 -0
  251. package/templates/react-sdk-reference/src/components/field/UserReference/index.tsx +1 -0
  252. package/templates/react-sdk-reference/src/components/helpers/attachmentShared.ts +6 -0
  253. package/templates/react-sdk-reference/src/components/helpers/case-utils.tsx +99 -0
  254. package/templates/react-sdk-reference/src/components/helpers/common-utils.ts +26 -0
  255. package/templates/react-sdk-reference/src/components/helpers/data_page.ts +20 -0
  256. package/templates/react-sdk-reference/src/components/helpers/date-format-utils.ts +76 -0
  257. package/templates/react-sdk-reference/src/components/helpers/event-utils.ts +20 -0
  258. package/templates/react-sdk-reference/src/components/helpers/field-group-utils.ts +63 -0
  259. package/templates/react-sdk-reference/src/components/helpers/formatters/Boolean.ts +21 -0
  260. package/templates/react-sdk-reference/src/components/helpers/formatters/Currency.ts +77 -0
  261. package/templates/react-sdk-reference/src/components/helpers/formatters/CurrencyMap.ts +913 -0
  262. package/templates/react-sdk-reference/src/components/helpers/formatters/Date.ts +71 -0
  263. package/templates/react-sdk-reference/src/components/helpers/formatters/common.ts +14 -0
  264. package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +130 -0
  265. package/templates/react-sdk-reference/src/components/helpers/instructions-utils.ts +38 -0
  266. package/templates/react-sdk-reference/src/components/helpers/object-utils.ts +10 -0
  267. package/templates/react-sdk-reference/src/components/helpers/reactContextHelpers.ts +3 -0
  268. package/templates/react-sdk-reference/src/components/helpers/simpleTableHelpers.ts +452 -0
  269. package/templates/react-sdk-reference/src/components/helpers/state-utils.tsx +43 -0
  270. package/templates/react-sdk-reference/src/components/helpers/template-utils.ts +76 -0
  271. package/templates/react-sdk-reference/src/components/helpers/utils.ts +349 -0
  272. package/templates/react-sdk-reference/src/components/helpers/versionHelpers.ts +14 -0
  273. package/templates/react-sdk-reference/src/components/index.ts +8 -0
  274. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/AdvancedSearch.tsx +86 -0
  275. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroup/persistUtils.ts +52 -0
  276. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/SearchGroups.tsx +329 -0
  277. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/hooks.ts +37 -0
  278. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/index.tsx +1 -0
  279. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/SearchGroups/utils.ts +29 -0
  280. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/TemplateContext.ts +11 -0
  281. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/config-ext.json +9 -0
  282. package/templates/react-sdk-reference/src/components/template/AdvancedSearch/index.tsx +1 -0
  283. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.css +35 -0
  284. package/templates/react-sdk-reference/src/components/template/AppShell/AppShell.tsx +259 -0
  285. package/templates/react-sdk-reference/src/components/template/AppShell/index.tsx +1 -0
  286. package/templates/react-sdk-reference/src/components/template/BannerPage/BannerPage.tsx +54 -0
  287. package/templates/react-sdk-reference/src/components/template/BannerPage/config-ext.json +9 -0
  288. package/templates/react-sdk-reference/src/components/template/BannerPage/index.tsx +1 -0
  289. package/templates/react-sdk-reference/src/components/template/CaseSummary/CaseSummary.tsx +79 -0
  290. package/templates/react-sdk-reference/src/components/template/CaseSummary/config-ext.json +8 -0
  291. package/templates/react-sdk-reference/src/components/template/CaseSummary/index.tsx +1 -0
  292. package/templates/react-sdk-reference/src/components/template/CaseView/CaseView.tsx +261 -0
  293. package/templates/react-sdk-reference/src/components/template/CaseView/config-ext.json +8 -0
  294. package/templates/react-sdk-reference/src/components/template/CaseView/index.tsx +1 -0
  295. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/CaseViewActionsMenu.tsx +117 -0
  296. package/templates/react-sdk-reference/src/components/template/CaseViewActionsMenu/index.tsx +1 -0
  297. package/templates/react-sdk-reference/src/components/template/Confirmation/Confirmation.tsx +102 -0
  298. package/templates/react-sdk-reference/src/components/template/Confirmation/config-ext.json +11 -0
  299. package/templates/react-sdk-reference/src/components/template/Confirmation/index.tsx +1 -0
  300. package/templates/react-sdk-reference/src/components/template/DataReference/DataReference.tsx +590 -0
  301. package/templates/react-sdk-reference/src/components/template/DataReference/DataReferenceAdvancedSearchContext.ts +10 -0
  302. package/templates/react-sdk-reference/src/components/template/DataReference/SearchForm.tsx +213 -0
  303. package/templates/react-sdk-reference/src/components/template/DataReference/config-ext.json +8 -0
  304. package/templates/react-sdk-reference/src/components/template/DataReference/index.tsx +1 -0
  305. package/templates/react-sdk-reference/src/components/template/DataReference/utils.ts +90 -0
  306. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.css +34 -0
  307. package/templates/react-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +74 -0
  308. package/templates/react-sdk-reference/src/components/template/DefaultForm/config-ext.json +8 -0
  309. package/templates/react-sdk-reference/src/components/template/DefaultForm/index.tsx +1 -0
  310. package/templates/react-sdk-reference/src/components/template/DefaultForm/utils/index.ts +26 -0
  311. package/templates/react-sdk-reference/src/components/template/DefaultPage/DefaultPage.tsx +108 -0
  312. package/templates/react-sdk-reference/src/components/template/DefaultPage/index.tsx +1 -0
  313. package/templates/react-sdk-reference/src/components/template/Details/Details/Details.tsx +74 -0
  314. package/templates/react-sdk-reference/src/components/template/Details/Details/index.tsx +1 -0
  315. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/DetailsSubTabs.tsx +58 -0
  316. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/config-ext.json +8 -0
  317. package/templates/react-sdk-reference/src/components/template/Details/DetailsSubTabs/index.tsx +1 -0
  318. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/DetailsThreeColumn.tsx +79 -0
  319. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/config-ext.json +8 -0
  320. package/templates/react-sdk-reference/src/components/template/Details/DetailsThreeColumn/index.tsx +1 -0
  321. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/DetailsTwoColumn.tsx +79 -0
  322. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/config-ext.json +8 -0
  323. package/templates/react-sdk-reference/src/components/template/Details/DetailsTwoColumn/index.tsx +1 -0
  324. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/DynamicTabs.tsx +79 -0
  325. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/config.json +36 -0
  326. package/templates/react-sdk-reference/src/components/template/Details/DynamicTabs/index.tsx +1 -0
  327. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/FieldGroupTemplate.tsx +116 -0
  328. package/templates/react-sdk-reference/src/components/template/FieldGroupTemplate/index.tsx +1 -0
  329. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/HierarchicalForm.tsx +58 -0
  330. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/hooks.ts +293 -0
  331. package/templates/react-sdk-reference/src/components/template/HierarchicalForm/index.tsx +1 -0
  332. package/templates/react-sdk-reference/src/components/template/InlineDashboard/InlineDashboard.tsx +72 -0
  333. package/templates/react-sdk-reference/src/components/template/InlineDashboard/index.tsx +1 -0
  334. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/InlineDashboardPage.tsx +39 -0
  335. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/config-ext.json +9 -0
  336. package/templates/react-sdk-reference/src/components/template/InlineDashboardPage/index.tsx +1 -0
  337. package/templates/react-sdk-reference/src/components/template/ListPage/ListPage.tsx +16 -0
  338. package/templates/react-sdk-reference/src/components/template/ListPage/config-ext.json +7 -0
  339. package/templates/react-sdk-reference/src/components/template/ListPage/index.tsx +1 -0
  340. package/templates/react-sdk-reference/src/components/template/ListView/DefaultViewMeta.ts +220 -0
  341. package/templates/react-sdk-reference/src/components/template/ListView/ListView.css +10 -0
  342. package/templates/react-sdk-reference/src/components/template/ListView/ListView.tsx +1391 -0
  343. package/templates/react-sdk-reference/src/components/template/ListView/config-ext.json +8 -0
  344. package/templates/react-sdk-reference/src/components/template/ListView/hooks.ts +93 -0
  345. package/templates/react-sdk-reference/src/components/template/ListView/index.tsx +1 -0
  346. package/templates/react-sdk-reference/src/components/template/ListView/utils.ts +781 -0
  347. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/MultiReferenceReadOnly.tsx +52 -0
  348. package/templates/react-sdk-reference/src/components/template/MultiReferenceReadOnly/index.tsx +1 -0
  349. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.css +19 -0
  350. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/NarrowWide.tsx +37 -0
  351. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWide/index.tsx +1 -0
  352. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/NarrowWideDetails.tsx +85 -0
  353. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/config-ext.json +8 -0
  354. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideDetails/index.tsx +1 -0
  355. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.css +19 -0
  356. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/NarrowWideForm.tsx +22 -0
  357. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/config-ext.json +8 -0
  358. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWideForm/index.tsx +1 -0
  359. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/NarrowWidePage.tsx +28 -0
  360. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/config-ext.json +8 -0
  361. package/templates/react-sdk-reference/src/components/template/NarrowWide/NarrowWidePage/index.tsx +1 -0
  362. package/templates/react-sdk-reference/src/components/template/ObjectPage/index.tsx +1 -0
  363. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/OneColumn.tsx +32 -0
  364. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/config-ext.json +8 -0
  365. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumn/index.tsx +1 -0
  366. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/OneColumnPage.tsx +17 -0
  367. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/config-ext.json +8 -0
  368. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnPage/index.tsx +1 -0
  369. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/OneColumnTab.tsx +11 -0
  370. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/config-ext.json +8 -0
  371. package/templates/react-sdk-reference/src/components/template/OneColumn/OneColumnTab/index.tsx +1 -0
  372. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.css +7 -0
  373. package/templates/react-sdk-reference/src/components/template/PromotedFilters/PromotedFilters.tsx +204 -0
  374. package/templates/react-sdk-reference/src/components/template/PromotedFilters/index.tsx +1 -0
  375. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/SelfServiceCaseView.tsx +153 -0
  376. package/templates/react-sdk-reference/src/components/template/SelfServiceCaseView/index.tsx +1 -0
  377. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx +126 -0
  378. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/config-ext.json +7 -0
  379. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTable/index.tsx +1 -0
  380. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx +985 -0
  381. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableManual/index.tsx +1 -0
  382. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/SimpleTableSelect.tsx +122 -0
  383. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelect/index.tsx +1 -0
  384. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/SimpleTableSelectReadonly.tsx +207 -0
  385. package/templates/react-sdk-reference/src/components/template/SimpleTable/SimpleTableSelectReadonly/index.tsx +1 -0
  386. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/SingleReferenceReadOnly.tsx +71 -0
  387. package/templates/react-sdk-reference/src/components/template/SingleReferenceReadOnly/index.tsx +1 -0
  388. package/templates/react-sdk-reference/src/components/template/SubTabs/SubTabs.tsx +46 -0
  389. package/templates/react-sdk-reference/src/components/template/SubTabs/config-ext.json +8 -0
  390. package/templates/react-sdk-reference/src/components/template/SubTabs/index.tsx +1 -0
  391. package/templates/react-sdk-reference/src/components/template/SubTabs/tabUtils.ts +185 -0
  392. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.css +12 -0
  393. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/TwoColumn.tsx +54 -0
  394. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/config-ext.json +8 -0
  395. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumn/index.tsx +1 -0
  396. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/TwoColumnPage.tsx +17 -0
  397. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/config-ext.json +8 -0
  398. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnPage/index.tsx +1 -0
  399. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.css +12 -0
  400. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/TwoColumnTab.tsx +54 -0
  401. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/config-ext.json +8 -0
  402. package/templates/react-sdk-reference/src/components/template/TwoColumn/TwoColumnTab/index.tsx +1 -0
  403. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.css +19 -0
  404. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/WideNarrow.tsx +37 -0
  405. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrow/index.tsx +1 -0
  406. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/WideNarrowDetails.tsx +96 -0
  407. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/config-ext.json +8 -0
  408. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowDetails/index.tsx +1 -0
  409. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.css +19 -0
  410. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/WideNarrowForm.tsx +22 -0
  411. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/config-ext.json +8 -0
  412. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowForm/index.tsx +1 -0
  413. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/WideNarrowPage.tsx +28 -0
  414. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/config-ext.json +8 -0
  415. package/templates/react-sdk-reference/src/components/template/WideNarrow/WideNarrowPage/index.tsx +1 -0
  416. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.css +11 -0
  417. package/templates/react-sdk-reference/src/components/template/WssNavBar/WssNavBar.tsx +160 -0
  418. package/templates/react-sdk-reference/src/components/template/WssNavBar/index.tsx +1 -0
  419. package/templates/react-sdk-reference/src/components/template/utils.tsx +58 -0
  420. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/AppAnnouncement.tsx +60 -0
  421. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/config-ext.json +8 -0
  422. package/templates/react-sdk-reference/src/components/widget/AppAnnouncement/index.tsx +1 -0
  423. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.css +95 -0
  424. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.tsx +541 -0
  425. package/templates/react-sdk-reference/src/components/widget/Attachment/Attachment.types.ts +96 -0
  426. package/templates/react-sdk-reference/src/components/widget/Attachment/AttachmentUtils.ts +316 -0
  427. package/templates/react-sdk-reference/src/components/widget/Attachment/index.tsx +1 -0
  428. package/templates/react-sdk-reference/src/components/widget/CaseHistory/CaseHistory.tsx +171 -0
  429. package/templates/react-sdk-reference/src/components/widget/CaseHistory/config-ext.json +8 -0
  430. package/templates/react-sdk-reference/src/components/widget/CaseHistory/index.tsx +1 -0
  431. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.css +13 -0
  432. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/ActionButtonsForFileUtil.tsx +32 -0
  433. package/templates/react-sdk-reference/src/components/widget/FileUtility/ActionButtonsForFileUtil/index.tsx +1 -0
  434. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.css +118 -0
  435. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/FileUtility.tsx +653 -0
  436. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/config-ext.json +8 -0
  437. package/templates/react-sdk-reference/src/components/widget/FileUtility/FileUtility/index.tsx +1 -0
  438. package/templates/react-sdk-reference/src/components/widget/Followers/Followers.tsx +43 -0
  439. package/templates/react-sdk-reference/src/components/widget/Followers/config-ext.json +8 -0
  440. package/templates/react-sdk-reference/src/components/widget/Followers/index.tsx +1 -0
  441. package/templates/react-sdk-reference/src/components/widget/QuickCreate/QuickCreate.tsx +88 -0
  442. package/templates/react-sdk-reference/src/components/widget/QuickCreate/config-ext.json +9 -0
  443. package/templates/react-sdk-reference/src/components/widget/QuickCreate/index.tsx +1 -0
  444. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.css +76 -0
  445. package/templates/react-sdk-reference/src/components/widget/SummaryItem/SummaryItem.tsx +89 -0
  446. package/templates/react-sdk-reference/src/components/widget/SummaryItem/index.tsx +1 -0
  447. package/templates/react-sdk-reference/src/components/widget/SummaryList/SummaryList.tsx +23 -0
  448. package/templates/react-sdk-reference/src/components/widget/SummaryList/index.tsx +1 -0
  449. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.css +81 -0
  450. package/templates/react-sdk-reference/src/components/widget/ToDo/ToDo.tsx +507 -0
  451. package/templates/react-sdk-reference/src/components/widget/ToDo/config-ext.json +8 -0
  452. package/templates/react-sdk-reference/src/components/widget/ToDo/index.tsx +1 -0
  453. package/templates/react-sdk-reference/src/main.tsx +13 -0
  454. package/templates/react-sdk-reference/src/mui-theme-augmentation.d.ts +6 -0
  455. package/templates/react-sdk-reference/tsconfig.json +24 -0
  456. package/templates/react-sdk-reference/vite.config.ts +65 -0
  457. package/templates/wc-sdk-reference/.github/AGENTS.md +23 -0
  458. package/templates/wc-sdk-reference/.github/copilot-instructions.md +40 -0
  459. package/templates/wc-sdk-reference/.github/skills/pega-sdk-component.md +48 -0
  460. package/templates/wc-sdk-reference/index.html +21 -0
  461. package/templates/wc-sdk-reference/package.json +19 -0
  462. package/templates/wc-sdk-reference/sdk-config.json +19 -0
  463. package/templates/wc-sdk-reference/src/index.ts +98 -0
  464. package/templates/wc-sdk-reference/tsconfig.json +21 -0
  465. package/templates/wc-sdk-reference/vite.config.ts +8 -0
@@ -0,0 +1,83 @@
1
+ # Skill: Pulse
2
+
3
+ Placeholder activity feed / comments stream card. Currently a stub implementation that renders a card titled "Pulse".
4
+
5
+ > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a card container intended to display an activity feed or comments stream for a Pega case. The current reference implementation is a **stub** — it renders only a Card with the title "Pulse" and placeholder body text. A production implementation would render a real activity feed stream inside the card using the `children` slot.
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `Pulse`
16
+ - **Registration key:** `Pulse` (in `component-map.ts`)
17
+ - **Does NOT use `getPConnect`** — receives children via `PropsWithChildren`
18
+
19
+ ## Props
20
+
21
+ | Prop | Type | Required | Description |
22
+ |------|------|----------|-------------|
23
+ | `children` | `ReactNode` | No | Child components (activity stream content) — currently unused in the stub |
24
+
25
+ > **Note:** The current reference implementation ignores `children` and renders placeholder content. A full implementation would render `children` inside the card body.
26
+
27
+ ## Behavioral Contract
28
+
29
+ 1. Render a `Card` (or equivalent container) with a distinct left border accent.
30
+ 2. Render a card header with the title text `"Pulse"` using a heading style (e.g., `h6`).
31
+ 3. Render card content body with placeholder text `"Pulse"`.
32
+ 4. The left border accent uses the **primary light** color from the design system's theme.
33
+ 5. The card has top and bottom margin (1 spacing unit each).
34
+
35
+ > **Stub note:** Steps 2–3 are placeholder content. In a real implementation, the card header would show a section label and the card body would render the `children` activity stream.
36
+
37
+ ## Visual Specifications
38
+
39
+ Derived from `Pulse.tsx` makeStyles:
40
+
41
+ ### Card Container
42
+
43
+ | Property | Value |
44
+ |----------|-------|
45
+ | Margin top | `theme.spacing(1)` (≈ 8px in MUI default) |
46
+ | Margin bottom | `theme.spacing(1)` (≈ 8px) |
47
+ | Border left | `6px solid` |
48
+ | Border left color | `theme.palette.primary.light` (light variant of the primary brand color) |
49
+
50
+ **CSS-only implementation notes:**
51
+ - Card wrapper: `margin-top: 8px; margin-bottom: 8px; border-left: 6px solid var(--app-primary-light-color); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.12)`.
52
+ - Card header: `padding: 16px; font-size: 1.25rem; font-weight: 500`.
53
+ - Card body: `padding: 0 16px 16px`.
54
+ - Use a CSS variable `--app-primary-light-color` for the accent border color.
55
+
56
+ ## Edge Cases & Special Logic
57
+
58
+ - The `children` prop is received but not currently rendered — it is intentional in the stub.
59
+ - The component renders unconditionally (no conditional logic based on props).
60
+
61
+ ## Dependencies
62
+
63
+ - No Pega SDK imports required (no `getPConnect`)
64
+ - No helper utilities required
65
+
66
+ ## Design System Mapping
67
+
68
+ **UI control type:** Card with left accent border and header/body sections.
69
+
70
+ Listed design systems are examples only.
71
+
72
+ | Design System | Recommended Component |
73
+ |---|---|
74
+ | Default (CSS only) | `<div>` with `border-left: 6px solid` + inner header/body divs |
75
+ | MUI | `<Card><CardHeader title={<Typography variant='h6'>Pulse</Typography>} /><CardContent>` |
76
+ | Ant Design | `<Card title='Pulse'>` with left border via `style` prop |
77
+ | Chakra UI | `<Card>` with `borderLeft='6px solid' borderColor='blue.300'` |
78
+ | Shadcn/ui | `<Card><CardHeader><CardTitle>` |
79
+
80
+ When implementing in a specific design system, map the following:
81
+ - Left border accent → `borderLeft` / `border-left` on the card root
82
+ - Left border color → primary light color from the design system's palette
83
+ - Card header title typography → design system's heading variant (h6 or equivalent)
@@ -0,0 +1,206 @@
1
+ # Skill: RichTextEditor
2
+
3
+ WYSIWYG rich text editor field backed by TinyMCE. Supports editable and read-only modes, optional label, helper text, error/required states, and a file picker for image uploads.
4
+
5
+ > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a rich text editing area (WYSIWYG) for Pega case properties that store HTML content. In **edit mode**, uses TinyMCE with a bottom toolbar. In **read-only mode**, renders the HTML content as a read-only `<div>`. Wraps the editor in a `FormControl` with an optional floating label and helper text, consistent with other field components.
12
+
13
+ The editor is a `forwardRef` component — the ref is connected to the underlying TinyMCE editor instance.
14
+
15
+ > **Note:** TinyMCE is the reference editor library. In non-MUI or non-TinyMCE implementations, this component can be replaced with an alternative rich text library (Quill, ProseMirror, Slate.js, etc.). The behavioral contract below remains the same regardless of library.
16
+
17
+ ## Pega Metadata
18
+
19
+ - **Pega Name:** `RichTextEditor`
20
+ - **Registration key:** `RichTextEditor` (in `component-map.ts`)
21
+ - **Does NOT extend PConnProps** — receives all data as explicit field-like props
22
+
23
+ ## Props
24
+
25
+ | Prop | Type | Required | Description |
26
+ |------|------|----------|-------------|
27
+ | `id` | `string` | No | DOM id for the editor element. Defaults to a generated UID |
28
+ | `defaultValue` | `string` | Yes | Initial HTML content of the editor |
29
+ | `label` | `string` | Yes | Field label displayed above the editor |
30
+ | `labelHidden` | `boolean` | Yes | If `true`, hide the label |
31
+ | `info` | `string` | No | Helper text displayed below the editor |
32
+ | `testId` | `string` | No | Value for `data-test-id` attribute on the FormControl wrapper |
33
+ | `placeholder` | `string` | No | Placeholder text shown in empty editor |
34
+ | `disabled` | `boolean` | Yes | If `true`, editor is in read-only/disabled mode with no toolbar |
35
+ | `required` | `boolean` | Yes | If `true`, marks the field as required |
36
+ | `readOnly` | `boolean` | Yes | If `true`, render as static HTML display (not interactive editor) |
37
+ | `error` | `boolean` | Yes | If `true`, applies error styling to the FormControl |
38
+ | `onBlur` | `React.EventHandler<any>` | Yes | Called when the editor loses focus |
39
+ | `onChange` | `React.EventHandler<any>` | Yes | Called when the editor content changes |
40
+
41
+ ## Behavioral Contract
42
+
43
+ ### 1. Ref Forwarding
44
+
45
+ The component uses `forwardRef`. Internally, use `useConsolidatedRef(ref)` from `@pega/sdk-react` to create `editorRef` — the TinyMCE editor instance is stored here after initialization.
46
+
47
+ ### 2. UID for id
48
+
49
+ If `id` is not provided, generate one using `useUID()` from `@pega/sdk-react`.
50
+
51
+ ### 3. Read-Only Mode
52
+
53
+ If `readOnly` is `true`, render:
54
+ ```
55
+ <div
56
+ key={id}
57
+ id={id}
58
+ className='readonly-richtext-editor'
59
+ dangerouslySetInnerHTML={{ __html: defaultValue || '--' }}
60
+ />
61
+ ```
62
+ Skip the TinyMCE Editor entirely in this case.
63
+
64
+ ### 4. Edit Mode (TinyMCE)
65
+
66
+ When `readOnly` is `false`, render `<Editor>` from `@tinymce/tinymce-react` with:
67
+
68
+ | Config | Value |
69
+ |--------|-------|
70
+ | `tinymceScriptSrc` | `'tinymce/tinymce.min.js'` (local script) |
71
+ | `id` | The resolved `id` |
72
+ | `initialValue` | `defaultValue` |
73
+ | `disabled` | `disabled` prop |
74
+ | `onBlur` | `onBlur` prop |
75
+ | `onEditorChange` | `onChange` prop |
76
+ | `onInit` | Store editor in `editorRef.current` |
77
+
78
+ ### 5. TinyMCE `init` Configuration
79
+
80
+ | Option | Value |
81
+ |--------|-------|
82
+ | `skin` | `'oxide-dark'` (dark mode) / `'oxide'` (light mode) — detect from theme |
83
+ | `menubar` | `false` |
84
+ | `statusbar` | `false` |
85
+ | `branding` | `false` |
86
+ | `min_height` | `130` |
87
+ | `toolbar_location` | `'bottom'` |
88
+ | `plugins` | `['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize']` |
89
+ | `autoresize_bottom_margin` | `0` |
90
+ | `toolbar` | `'blocks \| bold italic strikethrough \| bullist numlist outdent indent \| link image'` (or `false` when `disabled`) |
91
+ | `paste_data_images` | `true` |
92
+ | `file_picker_types` | `'image'` |
93
+ | `file_picker_callback` | See file picker section below |
94
+ | `content_style` | Theme-aware CSS string (see below) |
95
+ | `placeholder` | `placeholder` prop |
96
+
97
+ ### 6. Theme-Aware Content Style
98
+
99
+ Inject a `content_style` string that uses theme values for the editor body:
100
+ ```css
101
+ body {
102
+ font-family: <theme.typography.fontFamily>;
103
+ font-size: <theme.typography.fontSize>px;
104
+ color: <theme.palette.text.primary>;
105
+ background: <theme.palette.background.paper>;
106
+ }
107
+ a { color: <theme.palette.primary.main>; }
108
+ h1-h6 { color: <theme.palette.text.primary>; font-family: <theme.typography.fontFamily>; }
109
+ blockquote { color: <theme.palette.text.secondary>; border-left: 4px solid <theme.palette.primary.light>; padding-left: 8px; }
110
+ ul, ol { color: <theme.palette.text.primary>; }
111
+ input, textarea, select {
112
+ background: <theme.palette.background.paper>;
113
+ color: <theme.palette.text.primary>;
114
+ border: 1px solid <theme.palette.divider>;
115
+ border-radius: 4px; padding: 6px 10px; font-size: 1em; font-family: inherit;
116
+ }
117
+ .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
118
+ color: <theme.palette.text.secondary>; opacity: 0.7;
119
+ }
120
+ ```
121
+
122
+ ### 7. File Picker Callback
123
+
124
+ When a user clicks the image upload in the toolbar:
125
+ 1. Create a hidden `<input type='file' accept='image/*'>`.
126
+ 2. On file selected: read as DataURL using `FileReader`.
127
+ 3. On `FileReader.load`: create a blob in TinyMCE's blob cache (`editorRef.current.editorUpload.blobCache`), then call `cb(blobInfo.blobUri(), { title: file.name })`.
128
+ 4. Programmatically click the input to open the file dialog.
129
+
130
+ ### 8. readOnly/disabled Transition (after initial mount)
131
+
132
+ Use `useAfterInitialEffect([readOnly, disabled])` from `@pega/sdk-react`:
133
+ ```
134
+ editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design')
135
+ ```
136
+ This switches the TinyMCE mode without re-mounting the editor.
137
+
138
+ ### 9. Wrapper Structure
139
+
140
+ ```
141
+ <FormControl variant='standard' data-test-id={testId} error={error} required={required}>
142
+ {!labelHidden && <InputLabel className='fieldLabel'>{label}</InputLabel>}
143
+ {richTextComponent} ← either readOnly div or <Editor>
144
+ {info && <FormHelperText>{info}</FormHelperText>}
145
+ </FormControl>
146
+ ```
147
+
148
+ ## Visual Specifications
149
+
150
+ Derived from `RichTextEditor.tsx` makeStyles:
151
+
152
+ ### Label
153
+
154
+ | Property | Value |
155
+ |----------|-------|
156
+ | Position | relative |
157
+ | Transform | `translate(0, 0px) scale(1)` (non-floating — stays at top) |
158
+ | Margin bottom | 5px |
159
+ | Color | `theme.palette.text.secondary` |
160
+
161
+ **CSS-only implementation notes:**
162
+ - Label: `display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 5px`.
163
+ - Editor container: `min-height: 130px; border: 1px solid var(--divider); border-radius: 4px`.
164
+ - Toolbar (if CSS-only): render buttons at bottom of the editor area.
165
+ - Read-only display: `div.readonly-richtext-editor { padding: 8px; min-height: 130px; background: var(--bg-paper); color: var(--text-primary) }`.
166
+ - Error state: `border-color: var(--error-color)`.
167
+ - Helper text: `font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px`.
168
+ - Error helper text: `color: var(--error-color)`.
169
+
170
+ ## Edge Cases & Special Logic
171
+
172
+ - `defaultValue` in read-only mode falls back to `'--'` if empty.
173
+ - `readOnly` and `disabled` are both handled — `readOnly` suppresses the editor entirely; `disabled` keeps the editor mounted but in TinyMCE's `readonly` mode with no toolbar.
174
+ - Mode transitions (readOnly/disabled changing after mount) use `useAfterInitialEffect` — this hook fires on updates but NOT on the initial render, preventing a double-set on mount.
175
+ - The file picker creates a transient `<input type='file'>` element that is never appended to the DOM — it is clicked programmatically.
176
+ - `id` must be stable across renders — use `useUID()` only as a fallback when `id` prop is absent.
177
+
178
+ ## Dependencies
179
+
180
+ - `Editor` from `@tinymce/tinymce-react` — TinyMCE React wrapper (can be swapped for Quill, ProseMirror, Slate.js, etc.)
181
+ - `useAfterInitialEffect`, `useConsolidatedRef`, `useUID` from `@pega/sdk-react` — SDK hooks
182
+ - `useTheme` from `@mui/material` — for theme-aware content styles
183
+ - `FormControl`, `FormHelperText`, `InputLabel` from `@mui/material` — wrapper structure
184
+
185
+ ## Design System Mapping
186
+
187
+ **UI control type:** Rich text / WYSIWYG editor field with label, helper text, and error state.
188
+
189
+ Listed design systems are examples only.
190
+
191
+ | Design System | Rich Text Library |
192
+ |---|---|
193
+ | Default (CSS only) | `contenteditable` div with custom toolbar, or `<textarea>` |
194
+ | MUI | TinyMCE (`@tinymce/tinymce-react`) wrapped in `<FormControl>` |
195
+ | Ant Design | Quill (`react-quill`) or TinyMCE inside an `<AntForm.Item>` |
196
+ | Chakra UI | Quill or Slate.js inside a `<FormControl>` |
197
+ | Shadcn/ui | Tiptap (`@tiptap/react`) inside a field wrapper |
198
+
199
+ When implementing in a specific design system, map the following:
200
+ - `defaultValue` → initial HTML content
201
+ - `readOnly={true}` → always render as static HTML `<div>` (no editor instance)
202
+ - `disabled={true}` → editor mounted but read-only (toolbar hidden)
203
+ - `onBlur` / `onChange` → editor's blur and content-change callbacks
204
+ - `error` + `info` → FormControl error state + helper/description text below
205
+ - `labelHidden` → conditionally render the label element
206
+ - File picker → `<input type='file' accept='image/*'>` triggered programmatically
@@ -0,0 +1,135 @@
1
+ # Skill: WssQuickCreate
2
+
3
+ Quick-launch action grid that displays a heading and a set of labeled buttons, each optionally with an icon, for creating WSS cases.
4
+
5
+ > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a titled section of clickable action cards arranged in a responsive CSS grid. Each card contains an optional icon image and a label. Used in workspace/portal contexts to provide quick access to case creation actions.
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `WssQuickCreate`
16
+ - **Registration key:** `WssQuickCreate` (in `component-map.ts`)
17
+ - **Does NOT use `getPConnect`** — receives all data as direct props
18
+
19
+ ## Props
20
+
21
+ | Prop | Type | Required | Description |
22
+ |------|------|----------|-------------|
23
+ | `heading` | `string` | Yes | Section title rendered as an `<h1>` |
24
+ | `actions` | `Array<{ label: string; onClick: () => void; icon?: string }>` | No | List of action items; each has a label, click handler, and optional icon URL |
25
+
26
+ ## Behavioral Contract
27
+
28
+ 1. Render the `heading` in an `<h1>` element with `id='quick-links-heading'` and class `quick-links-heading`.
29
+ 2. Render a `<ul>` with `id='quick-links'` and class `quick-link-ul-list`.
30
+ 3. If `actions` is provided, iterate and render one `<li>` per action.
31
+ 4. Each `<li>` has the `quickLinkList` style class (styled card with border, rounded corners, and background color).
32
+ 5. Inside each `<li>`, render a `<button>` with class `quick-link-button` and the action's `onClick` handler.
33
+ 6. Button content is a `<span class='quick-link-button-span'>` (column flex layout) containing:
34
+ - If `action.icon` is provided: `<img class='quick-link-icon' src={action.icon} />`
35
+ - `<span>{action.label}</span>`
36
+ 7. If `actions` is not provided or is empty, render only the heading with an empty list.
37
+
38
+ ## Visual Specifications
39
+
40
+ Derived from `WssQuickCreate.css` and component makeStyles:
41
+
42
+ ### Section Heading
43
+
44
+ | Property | Value |
45
+ |----------|-------|
46
+ | Tag | `<h1>` |
47
+ | Margin top | 8px |
48
+
49
+ ### Action List
50
+
51
+ | Property | Value |
52
+ |----------|-------|
53
+ | List style | none |
54
+ | Padding | 0 |
55
+ | Display | grid |
56
+ | Grid template columns | `repeat(auto-fit, minmax(min(20ch, 100%), 1fr))` (responsive columns) |
57
+ | Gap | 1rem |
58
+
59
+ ### Action Card (`<li>`)
60
+
61
+ | Property | Value |
62
+ |----------|-------|
63
+ | Background (light mode) | `var(--link-button-color)` |
64
+ | Background (dark mode) | `var(--app-background-color)` |
65
+ | Text color | `var(--app-text-color)` |
66
+ | Border radius | 16px |
67
+ | Border | `1px solid var(--app-primary-color)` |
68
+
69
+ ### Action Button
70
+
71
+ | Property | Value |
72
+ |----------|-------|
73
+ | Text transform | capitalize |
74
+ | Font size | 16px |
75
+ | Color | `var(--app-text-color)` |
76
+ | Height | 10rem |
77
+ | Width | 100% |
78
+ | Background | transparent (inherits card) |
79
+
80
+ ### Button Inner Span
81
+
82
+ | Property | Value |
83
+ |----------|-------|
84
+ | Display | flex |
85
+ | Flex direction | column |
86
+ | Align items | center |
87
+ | Gap | 0.5rem |
88
+
89
+ ### Icon
90
+
91
+ | Property | Value |
92
+ |----------|-------|
93
+ | Flex shrink | 0 |
94
+ | Object fit | contain |
95
+ | Width | 3rem |
96
+ | Height | 3rem |
97
+
98
+ **CSS-only implementation notes:**
99
+ - Action list: `list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr)); gap: 1rem`.
100
+ - Action card: `background: var(--link-button-color); border-radius: 16px; border: 1px solid var(--app-primary-color); color: var(--app-text-color)`.
101
+ - Button: `width: 100%; height: 10rem; background: transparent; border: none; cursor: pointer; text-transform: capitalize; font-size: 16px; color: inherit`.
102
+ - Button content: `display: flex; flex-direction: column; align-items: center; gap: 0.5rem`.
103
+ - Icon: `width: 3rem; height: 3rem; object-fit: contain; flex-shrink: 0`.
104
+
105
+ ## Edge Cases & Special Logic
106
+
107
+ - If `actions` is `undefined` or empty, render the heading and empty `<ul>` without errors.
108
+ - If `action.icon` is `undefined` or an empty string, render only the label span (no `<img>` element).
109
+ - Labels are displayed as-is (no truncation); the grid layout handles responsive sizing naturally.
110
+
111
+ ## Dependencies
112
+
113
+ - No Pega SDK imports required (no `getPConnect`)
114
+ - No helper utilities required
115
+ - Icon images are passed as URLs (strings) via `action.icon` — no internal icon system used
116
+
117
+ ## Design System Mapping
118
+
119
+ **UI control type:** Responsive grid of action cards / quick-launch buttons.
120
+
121
+ Listed design systems are examples only.
122
+
123
+ | Design System | Recommended Component |
124
+ |---|---|
125
+ | Default (CSS only) | CSS grid `<ul>` + `<button>` cards with flex icon/label layout |
126
+ | MUI | `<Button>` inside Grid items; use `makeStyles` or `sx` for card styling |
127
+ | Ant Design | `<List>` with `<Card>` items or `<Button>` blocks inside a CSS grid |
128
+ | Chakra UI | `<SimpleGrid>` with `<Button>` children; `flexDir='column'` |
129
+ | Shadcn/ui | Grid of custom `<Button variant='outline'>` cards |
130
+
131
+ When implementing in a specific design system, map the following:
132
+ - Card border/background → design system's card or outlined button variant
133
+ - Button `onClick` → standard click handler prop
134
+ - Icon + label stacked layout → `flexDirection: 'column'` button content
135
+ - Responsive grid → design system's grid or `SimpleGrid` equivalent
@@ -0,0 +1,249 @@
1
+ # Skill: Design System Extension (DSE) Components
2
+
3
+ Create or replace Design System Extension components in the react-sdk-reference application. DSE components are display-focused presentational components that render structured data without direct PConnect binding. Some receive `getPConnect`, others receive only display props.
4
+
5
+ ---
6
+
7
+ ## Architecture Overview
8
+
9
+ ```
10
+ src/components/designSystemExtension/<ComponentName>/
11
+ ├── <ComponentName>.tsx # Component implementation
12
+ ├── index.tsx # Re-export (if present)
13
+ ├── <ComponentName>.css # Styles (optional)
14
+ └── config-ext.json # Metadata (optional)
15
+ ```
16
+
17
+ ---
18
+
19
+ ## Props Interface
20
+
21
+ DSE components have varying prop patterns:
22
+
23
+ ### Pattern A: With PConnect (data-aware display)
24
+
25
+ ```typescript
26
+ import type { PConnProps } from '../../../types/PConnProps';
27
+
28
+ interface FieldValueListProps extends PConnProps {
29
+ name?: string;
30
+ value?: string;
31
+ variant?: 'stacked' | 'inline';
32
+ }
33
+ ```
34
+
35
+ ### Pattern B: Without PConnect (pure presentation)
36
+
37
+ ```typescript
38
+ interface AlertBannerProps {
39
+ variant: 'urgent' | 'warning' | 'info' | 'success';
40
+ heading?: string;
41
+ messages: Array<string | { label?: string; description?: string }>;
42
+ onClose?: () => void;
43
+ }
44
+ ```
45
+
46
+ ### Pattern C: Extended field props (display-only fields)
47
+
48
+ ```typescript
49
+ import type { PConnFieldProps } from '../../../types/PConnProps';
50
+
51
+ interface RichTextEditorProps extends PConnFieldProps {
52
+ content?: string;
53
+ }
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Implementation Patterns
59
+
60
+ ### Pure Display Component (no PConnect)
61
+
62
+ Used for: AlertBanner, Banner, Operator
63
+
64
+ ```typescript
65
+ import Alert from '@mui/material/Alert';
66
+ import AlertTitle from '@mui/material/AlertTitle';
67
+
68
+ interface AlertBannerProps {
69
+ variant: 'urgent' | 'warning' | 'info' | 'success';
70
+ heading?: string;
71
+ messages: Array<string | { label?: string; description?: string }>;
72
+ onClose?: () => void;
73
+ }
74
+
75
+ export default function AlertBanner(props: AlertBannerProps) {
76
+ const { variant, heading, messages = [], onClose } = props;
77
+
78
+ // Map Pega variant names to MUI severity
79
+ const severityMap: Record<string, 'error' | 'warning' | 'info' | 'success'> = {
80
+ urgent: 'error',
81
+ warning: 'warning',
82
+ info: 'info',
83
+ success: 'success'
84
+ };
85
+
86
+ function renderMessage(msg: string | { label?: string; description?: string }) {
87
+ if (typeof msg === 'string') return msg;
88
+ return `${msg.label ?? ''} ${msg.description ?? ''}`.trim();
89
+ }
90
+
91
+ return (
92
+ <Alert severity={severityMap[variant] ?? 'info'} onClose={onClose}>
93
+ {heading && <AlertTitle>{heading}</AlertTitle>}
94
+ {messages.map((msg, i) => (
95
+ <div key={i}>{renderMessage(msg)}</div>
96
+ ))}
97
+ </Alert>
98
+ );
99
+ }
100
+ ```
101
+
102
+ ### Field Value Display Component
103
+
104
+ Used for: FieldValueList, CaseSummaryFields, DetailsFields
105
+
106
+ ```typescript
107
+ import type { PConnProps } from '../../../types/PConnProps';
108
+
109
+ interface FieldValueListProps extends PConnProps {
110
+ name?: string;
111
+ value?: string;
112
+ variant?: 'stacked' | 'inline';
113
+ }
114
+
115
+ export default function FieldValueList(props: FieldValueListProps) {
116
+ const { name, value, variant = 'inline' } = props;
117
+
118
+ if (variant === 'stacked') {
119
+ return (
120
+ <div className='field-value-stacked'>
121
+ <span className='field-label'>{name}</span>
122
+ <span className='field-value-large'>{value}</span>
123
+ </div>
124
+ );
125
+ }
126
+
127
+ return (
128
+ <div className='field-value-inline'>
129
+ {name && <span className='field-label'>{name}: </span>}
130
+ <span className='field-value'>{value}</span>
131
+ </div>
132
+ );
133
+ }
134
+ ```
135
+
136
+ ### Complex Display Component (with PConnect for data)
137
+
138
+ Used for: FieldGroup, FieldGroupList, Pulse
139
+
140
+ ```typescript
141
+ import { createElement } from 'react';
142
+ import createPConnectComponent from '../../helpers/react_pconnect';
143
+ import type { PConnProps } from '../../../types/PConnProps';
144
+
145
+ interface FieldGroupProps extends PConnProps {
146
+ label?: string;
147
+ showLabel?: boolean;
148
+ }
149
+
150
+ export default function FieldGroup(props: FieldGroupProps) {
151
+ const { getPConnect, label, showLabel = true } = props;
152
+ const pConn = getPConnect();
153
+ const children = pConn.getChildren();
154
+
155
+ return (
156
+ <fieldset>
157
+ {showLabel && label && <legend>{label}</legend>}
158
+ {children.map((child, i) =>
159
+ createElement(createPConnectComponent(), { ...child, key: `fg-${i}` })
160
+ )}
161
+ </fieldset>
162
+ );
163
+ }
164
+ ```
165
+
166
+ ---
167
+
168
+ ## Styling Patterns
169
+
170
+ DSE components use either CSS files or MUI's `sx` prop:
171
+
172
+ ### CSS File Pattern
173
+
174
+ ```css
175
+ /* FieldValueList.css */
176
+ .field-value-inline {
177
+ display: flex;
178
+ gap: 0.5rem;
179
+ align-items: baseline;
180
+ }
181
+
182
+ .field-label {
183
+ font-weight: 600;
184
+ color: var(--text-secondary);
185
+ }
186
+
187
+ .field-value-large {
188
+ font-size: 1.25rem;
189
+ font-weight: 500;
190
+ }
191
+ ```
192
+
193
+ ### MUI sx Prop Pattern
194
+
195
+ ```typescript
196
+ <Box sx={{ display: 'flex', gap: 1, alignItems: 'center' }}>
197
+ <Typography variant='body2' color='text.secondary'>{name}</Typography>
198
+ <Typography variant='body1'>{value}</Typography>
199
+ </Box>
200
+ ```
201
+
202
+ ---
203
+
204
+ ## Registration
205
+
206
+ Register DSE components in `src/components/component-map.ts`:
207
+
208
+ ```typescript
209
+ import AlertBanner from './designSystemExtension/AlertBanner';
210
+ import FieldValueList from './designSystemExtension/FieldValueList';
211
+
212
+ // In getSampleComponentMap():
213
+ {
214
+ ...sdkComponents,
215
+ AlertBanner,
216
+ FieldValueList,
217
+ }
218
+ ```
219
+
220
+ ---
221
+
222
+ ## Existing DSE Components
223
+
224
+ | Component | PConnect? | Description |
225
+ | ----------------- | --------- | --------------------------------------- |
226
+ | AlertBanner | No | Alert/notification banner with variants |
227
+ | Banner | No | Promotional/informational banner |
228
+ | CaseSummaryFields | Yes | Summary fields for case header |
229
+ | DetailsFields | Yes | Key-value fields in a details region |
230
+ | FieldGroup | Yes | Grouped fields with label/legend |
231
+ | FieldGroupList | Yes | List of field groups (repeating) |
232
+ | FieldValueList | Yes | Single field-value pair display |
233
+ | Operator | No | Operator avatar + name display |
234
+ | Pulse | Yes | Activity feed/comments stream |
235
+ | RichTextEditor | Yes | Rich text editor (TinyMCE-based) |
236
+ | WssQuickCreate | No | WSS quick case creation component |
237
+
238
+ ---
239
+
240
+ ## Key Conventions
241
+
242
+ 1. **Default export** — `export default function ComponentName`.
243
+ 2. **Flexible messages** — Always handle both `string` and `object` formats for text props (Pega may send either).
244
+ 3. **No side effects** — DSE components should be pure renderers. No data fetching or mutations.
245
+ 4. **Variant mapping** — Map Pega variant names (urgent, warning, etc.) to your design system's equivalents.
246
+ 5. **Display modes** — If a DSE component is also used as a display mode by field components (e.g., FieldValueList), it should be simple and fast to render.
247
+ 6. **Graceful fallbacks** — Handle missing/undefined props gracefully with defaults.
248
+ 7. **CSS over styled-components** — DSE components in react-sample typically use plain CSS files or MUI `sx` prop, not styled-components.
249
+ 8. **Accessible markup** — Use semantic HTML (fieldset/legend for groups, proper heading levels, ARIA labels).