@pega/sdk 0.0.4 → 0.0.5

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 (317) hide show
  1. package/dist/index.js +287 -1
  2. package/package.json +1 -1
  3. package/templates/angular-sdk-reference/package.json +12 -12
  4. package/templates/angular-sdk-reference/tsconfig.json +1 -1
  5. package/templates/react-native-sdk-reference/expo-env.d.ts +3 -0
  6. package/templates/react-sdk-reference/{.github/agents/implementation-expert.agent.md → .ai-common/agents/implementation-expert.md} +23 -26
  7. package/templates/react-sdk-reference/{.github/copilot-instructions.md → .ai-common/global/ai-agent-instructions.md} +7 -7
  8. package/templates/react-sdk-reference/{.github/instructions/component-map.instructions.md → .ai-common/instructions/component-map.md} +8 -1
  9. package/templates/react-sdk-reference/{.github/instructions/dse-component.instructions.md → .ai-common/instructions/dse-component.md} +1 -1
  10. package/templates/react-sdk-reference/{.github/instructions/field-component.instructions.md → .ai-common/instructions/field-component.md} +2 -1
  11. package/templates/react-sdk-reference/{.github/instructions/template-component.instructions.md → .ai-common/instructions/template-component.md} +1 -1
  12. package/templates/react-sdk-reference/{.github/instructions/widget-component.instructions.md → .ai-common/instructions/widget-component.md} +1 -1
  13. package/templates/react-sdk-reference/{.github/prompts/add-component.prompt.md → .ai-common/prompts/add-component.md} +45 -18
  14. package/templates/react-sdk-reference/{.cursor/rules → .ai-common}/prompts/component-manifest.json +8 -2
  15. package/templates/react-sdk-reference/{.github/prompts/generate-all-components.prompt.md → .ai-common/prompts/generate-all-components.md} +195 -78
  16. package/templates/react-sdk-reference/{.github/prompts/generate-dse-components.prompt.md → .ai-common/prompts/generate-dse-components.md} +28 -17
  17. package/templates/react-sdk-reference/{.github/prompts/generate-field-components.prompt.md → .ai-common/prompts/generate-field-components.md} +32 -16
  18. package/templates/react-sdk-reference/{.github/prompts/generate-template-components.prompt.md → .ai-common/prompts/generate-template-components.md} +76 -22
  19. package/templates/react-sdk-reference/{.github/prompts/generate-widget-components.prompt.md → .ai-common/prompts/generate-widget-components.md} +44 -30
  20. package/templates/react-sdk-reference/{.claude → .ai-common}/prompts/identify-components.md +4 -0
  21. package/templates/react-sdk-reference/{.cursor/rules/prompts/replace-design-system.mdrules → .ai-common/prompts/replace-design-system.md} +2 -3
  22. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/AlertBanner.md +50 -0
  23. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/Banner.md +44 -0
  24. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/CaseSummaryFields.md +54 -0
  25. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/DetailsFields.md +49 -0
  26. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/FieldGroup.md +44 -0
  27. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/FieldGroupList.md +43 -0
  28. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/FieldValueList.md +46 -0
  29. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/Operator.md +67 -0
  30. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/Pulse.md +20 -0
  31. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/RichTextEditor.md +58 -0
  32. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/WssQuickCreate.md +31 -0
  33. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension.md +1 -1
  34. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-components.md +18 -1
  35. package/templates/react-sdk-reference/.ai-common/skills/field-skills/AutoComplete.md +298 -0
  36. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/CancelAlert.md +132 -3
  37. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Checkbox.md +358 -0
  38. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Currency.md +230 -0
  39. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Date.md +221 -0
  40. package/templates/react-sdk-reference/.ai-common/skills/field-skills/DateTime.md +213 -0
  41. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Decimal.md +112 -13
  42. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Dropdown.md +127 -1
  43. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Email.md +68 -0
  44. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Group.md +51 -0
  45. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/Integer.md +81 -0
  46. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Location.md +105 -0
  47. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/Multiselect.md +70 -0
  48. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/ObjectReference.md +74 -0
  49. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/Percentage.md +84 -0
  50. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/Phone.md +81 -0
  51. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/RadioButtons.md +93 -0
  52. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/RichText.md +85 -0
  53. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/ScalarList.md +54 -0
  54. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/SelectableCard.md +55 -0
  55. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/SemanticLink.md +64 -0
  56. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/TextArea.md +66 -0
  57. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/TextContent.md +28 -0
  58. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/TextInput.md +67 -0
  59. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/Time.md +67 -0
  60. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/URL.md +59 -0
  61. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/UserReference.md +90 -0
  62. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-components.md +83 -52
  63. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/AdvancedSearch.md +77 -0
  64. package/templates/react-sdk-reference/.ai-common/skills/template-skills/AppShell.md +273 -0
  65. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/BannerPage.md +39 -0
  66. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/CaseSummary.md +79 -0
  67. package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseView.md +399 -0
  68. package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseViewActionsMenu.md +282 -0
  69. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/Confirmation.md +89 -0
  70. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DataReference.md +50 -0
  71. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DefaultForm.md +117 -0
  72. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DefaultPage.md +49 -0
  73. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/Details.md +59 -0
  74. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/DetailsSubTabs.md +60 -0
  75. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DetailsThreeColumn.md +12 -0
  76. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/DetailsTwoColumn.md +12 -0
  77. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DynamicTabs.md +67 -0
  78. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/FieldGroupTemplate.md +119 -0
  79. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/HierarchicalForm.md +45 -0
  80. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/InlineDashboard.md +41 -0
  81. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/InlineDashboardPage.md +56 -0
  82. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/ListPage.md +18 -0
  83. package/templates/react-sdk-reference/.ai-common/skills/template-skills/ListView.md +419 -0
  84. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/MultiReferenceReadOnly.md +40 -0
  85. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/NarrowWide.md +66 -0
  86. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/OneColumn.md +34 -0
  87. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/PromotedFilters.md +92 -0
  88. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/SelfServiceCaseView.md +56 -0
  89. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/SimpleTable.md +59 -0
  90. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/SingleReferenceReadOnly.md +52 -0
  91. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/SubTabs.md +47 -0
  92. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/TwoColumn.md +49 -0
  93. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/WssNavBar.md +71 -0
  94. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-components.md +1 -1
  95. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/AppAnnouncement.md +38 -1
  96. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/Attachment.md +58 -0
  97. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/CaseHistory.md +63 -0
  98. package/templates/react-sdk-reference/{.github → .ai-common}/skills/widget-skills/FileUtility.md +81 -14
  99. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/Followers.md +20 -0
  100. package/templates/react-sdk-reference/{.github → .ai-common}/skills/widget-skills/QuickCreate.md +48 -0
  101. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/SummaryItem.md +66 -0
  102. package/templates/react-sdk-reference/.ai-common/skills/widget-skills/ToDo.md +492 -0
  103. package/templates/react-sdk-reference/package.minimal.json +29 -0
  104. package/templates/react-sdk-reference/src/AppProviders.tsx +17 -0
  105. package/templates/react-sdk-reference/src/MashupApp.tsx +8 -19
  106. package/templates/react-sdk-reference/src/PortalApp.tsx +6 -17
  107. package/templates/react-sdk-reference/.claude/instructions/component-map.md +0 -38
  108. package/templates/react-sdk-reference/.claude/instructions/dse-component.md +0 -75
  109. package/templates/react-sdk-reference/.claude/instructions/field-component.md +0 -75
  110. package/templates/react-sdk-reference/.claude/instructions/template-component.md +0 -93
  111. package/templates/react-sdk-reference/.claude/instructions/widget-component.md +0 -88
  112. package/templates/react-sdk-reference/.claude/prompts/add-component.md +0 -152
  113. package/templates/react-sdk-reference/.claude/prompts/component-manifest.json +0 -193
  114. package/templates/react-sdk-reference/.claude/prompts/generate-all-components.md +0 -158
  115. package/templates/react-sdk-reference/.claude/prompts/generate-dse-components.md +0 -140
  116. package/templates/react-sdk-reference/.claude/prompts/generate-field-components.md +0 -153
  117. package/templates/react-sdk-reference/.claude/prompts/generate-template-components.md +0 -165
  118. package/templates/react-sdk-reference/.claude/prompts/generate-widget-components.md +0 -138
  119. package/templates/react-sdk-reference/.claude/prompts/replace-design-system.md +0 -519
  120. package/templates/react-sdk-reference/.claude/skills/component-contracts.md +0 -140
  121. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/AlertBanner.md +0 -137
  122. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroup.md +0 -134
  123. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldValueList.md +0 -118
  124. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Pulse.md +0 -85
  125. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/RichTextEditor.md +0 -232
  126. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/WssQuickCreate.md +0 -137
  127. package/templates/react-sdk-reference/.claude/skills/design-system-extension.md +0 -291
  128. package/templates/react-sdk-reference/.claude/skills/field-skills/AutoComplete.md +0 -113
  129. package/templates/react-sdk-reference/.claude/skills/field-skills/Checkbox.md +0 -175
  130. package/templates/react-sdk-reference/.claude/skills/field-skills/Currency.md +0 -109
  131. package/templates/react-sdk-reference/.claude/skills/field-skills/Date.md +0 -101
  132. package/templates/react-sdk-reference/.claude/skills/field-skills/DateTime.md +0 -106
  133. package/templates/react-sdk-reference/.claude/skills/field-skills/Integer.md +0 -88
  134. package/templates/react-sdk-reference/.claude/skills/field-skills/Multiselect.md +0 -188
  135. package/templates/react-sdk-reference/.claude/skills/field-skills/ObjectReference.md +0 -173
  136. package/templates/react-sdk-reference/.claude/skills/field-skills/Percentage.md +0 -93
  137. package/templates/react-sdk-reference/.claude/skills/field-skills/Phone.md +0 -129
  138. package/templates/react-sdk-reference/.claude/skills/field-skills/RadioButtons.md +0 -167
  139. package/templates/react-sdk-reference/.claude/skills/field-skills/RichText.md +0 -149
  140. package/templates/react-sdk-reference/.claude/skills/field-skills/ScalarList.md +0 -134
  141. package/templates/react-sdk-reference/.claude/skills/field-skills/SelectableCard.md +0 -231
  142. package/templates/react-sdk-reference/.claude/skills/field-skills/SemanticLink.md +0 -155
  143. package/templates/react-sdk-reference/.claude/skills/field-skills/TextInput.md +0 -107
  144. package/templates/react-sdk-reference/.claude/skills/field-skills/Time.md +0 -89
  145. package/templates/react-sdk-reference/.claude/skills/field-skills/URL.md +0 -86
  146. package/templates/react-sdk-reference/.claude/skills/template-components.md +0 -321
  147. package/templates/react-sdk-reference/.claude/skills/template-skills/AdvancedSearch.md +0 -150
  148. package/templates/react-sdk-reference/.claude/skills/template-skills/AppShell.md +0 -124
  149. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseSummary.md +0 -106
  150. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseView.md +0 -137
  151. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseViewActionsMenu.md +0 -131
  152. package/templates/react-sdk-reference/.claude/skills/template-skills/Confirmation.md +0 -109
  153. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsSubTabs.md +0 -97
  154. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsTwoColumn.md +0 -80
  155. package/templates/react-sdk-reference/.claude/skills/template-skills/ListPage.md +0 -70
  156. package/templates/react-sdk-reference/.claude/skills/template-skills/ListView.md +0 -142
  157. package/templates/react-sdk-reference/.claude/skills/template-skills/MultiReferenceReadOnly.md +0 -82
  158. package/templates/react-sdk-reference/.claude/skills/template-skills/OneColumn.md +0 -114
  159. package/templates/react-sdk-reference/.claude/skills/template-skills/SimpleTable.md +0 -131
  160. package/templates/react-sdk-reference/.claude/skills/template-skills/SingleReferenceReadOnly.md +0 -108
  161. package/templates/react-sdk-reference/.claude/skills/template-skills/SubTabs.md +0 -82
  162. package/templates/react-sdk-reference/.claude/skills/widget-skills/FileUtility.md +0 -206
  163. package/templates/react-sdk-reference/.claude/skills/widget-skills/QuickCreate.md +0 -118
  164. package/templates/react-sdk-reference/.claude/skills/widget-skills/ToDo.md +0 -198
  165. package/templates/react-sdk-reference/.cursor/rules/component-map.mdrules +0 -41
  166. package/templates/react-sdk-reference/.cursor/rules/dse-component.mdrules +0 -78
  167. package/templates/react-sdk-reference/.cursor/rules/field-component.mdrules +0 -74
  168. package/templates/react-sdk-reference/.cursor/rules/pega-sdk.mdrules +0 -247
  169. package/templates/react-sdk-reference/.cursor/rules/prompts/add-component.mdrules +0 -149
  170. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-all-components.mdrules +0 -154
  171. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-dse-components.mdrules +0 -131
  172. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-field-components.mdrules +0 -144
  173. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-template-components.mdrules +0 -156
  174. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-widget-components.mdrules +0 -129
  175. package/templates/react-sdk-reference/.cursor/rules/prompts/identify-components.mdrules +0 -110
  176. package/templates/react-sdk-reference/.cursor/rules/skills/component-contracts.mdrules +0 -145
  177. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/AlertBanner.mdrules +0 -140
  178. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Banner.mdrules +0 -154
  179. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/CaseSummaryFields.mdrules +0 -159
  180. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/DetailsFields.mdrules +0 -149
  181. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroup.mdrules +0 -136
  182. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroupList.mdrules +0 -116
  183. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldValueList.mdrules +0 -120
  184. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Operator.mdrules +0 -154
  185. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Pulse.mdrules +0 -88
  186. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/RichTextEditor.mdrules +0 -211
  187. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/WssQuickCreate.mdrules +0 -140
  188. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension.mdrules +0 -294
  189. package/templates/react-sdk-reference/.cursor/rules/skills/field-components.mdrules +0 -299
  190. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/AutoComplete.mdrules +0 -117
  191. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/CancelAlert.mdrules +0 -208
  192. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Checkbox.mdrules +0 -163
  193. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Currency.mdrules +0 -111
  194. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Date.mdrules +0 -104
  195. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/DateTime.mdrules +0 -108
  196. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Decimal.mdrules +0 -103
  197. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Dropdown.mdrules +0 -119
  198. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Email.mdrules +0 -112
  199. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Group.mdrules +0 -95
  200. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Integer.mdrules +0 -92
  201. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Location.mdrules +0 -141
  202. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Multiselect.mdrules +0 -169
  203. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ObjectReference.mdrules +0 -169
  204. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Percentage.mdrules +0 -97
  205. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Phone.mdrules +0 -115
  206. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RadioButtons.mdrules +0 -151
  207. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RichText.mdrules +0 -143
  208. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ScalarList.mdrules +0 -129
  209. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SelectableCard.mdrules +0 -221
  210. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SemanticLink.mdrules +0 -153
  211. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextArea.mdrules +0 -101
  212. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextContent.mdrules +0 -106
  213. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextInput.mdrules +0 -109
  214. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Time.mdrules +0 -93
  215. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/URL.mdrules +0 -90
  216. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/UserReference.mdrules +0 -185
  217. package/templates/react-sdk-reference/.cursor/rules/skills/run-and-verify.mdrules +0 -73
  218. package/templates/react-sdk-reference/.cursor/rules/skills/template-components.mdrules +0 -327
  219. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AdvancedSearch.mdrules +0 -149
  220. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AppShell.mdrules +0 -127
  221. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/BannerPage.mdrules +0 -88
  222. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseSummary.mdrules +0 -105
  223. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseView.mdrules +0 -136
  224. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseViewActionsMenu.mdrules +0 -131
  225. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Confirmation.mdrules +0 -112
  226. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DataReference.mdrules +0 -125
  227. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultForm.mdrules +0 -107
  228. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultPage.mdrules +0 -115
  229. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Details.mdrules +0 -93
  230. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsSubTabs.mdrules +0 -100
  231. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsThreeColumn.mdrules +0 -83
  232. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsTwoColumn.mdrules +0 -83
  233. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DynamicTabs.mdrules +0 -106
  234. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/FieldGroupTemplate.mdrules +0 -114
  235. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/HierarchicalForm.mdrules +0 -118
  236. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboard.mdrules +0 -109
  237. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboardPage.mdrules +0 -90
  238. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListPage.mdrules +0 -73
  239. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListView.mdrules +0 -144
  240. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/MultiReferenceReadOnly.mdrules +0 -85
  241. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/NarrowWide.mdrules +0 -146
  242. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/OneColumn.mdrules +0 -114
  243. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/PromotedFilters.mdrules +0 -129
  244. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SelfServiceCaseView.mdrules +0 -140
  245. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SimpleTable.mdrules +0 -132
  246. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SingleReferenceReadOnly.mdrules +0 -108
  247. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SubTabs.mdrules +0 -84
  248. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/TwoColumn.mdrules +0 -136
  249. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WideNarrow.mdrules +0 -155
  250. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WssNavBar.mdrules +0 -140
  251. package/templates/react-sdk-reference/.cursor/rules/skills/widget-components.mdrules +0 -276
  252. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/AppAnnouncement.mdrules +0 -87
  253. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Attachment.mdrules +0 -151
  254. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/CaseHistory.mdrules +0 -112
  255. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/FileUtility.mdrules +0 -205
  256. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Followers.mdrules +0 -104
  257. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/QuickCreate.mdrules +0 -119
  258. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/SummaryItem.mdrules +0 -172
  259. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/ToDo.mdrules +0 -195
  260. package/templates/react-sdk-reference/.cursor/rules/template-component.mdrules +0 -95
  261. package/templates/react-sdk-reference/.cursor/rules/widget-component.mdrules +0 -90
  262. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +0 -193
  263. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +0 -110
  264. package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +0 -524
  265. package/templates/react-sdk-reference/.github/skills/component-contracts.md +0 -140
  266. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +0 -152
  267. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +0 -159
  268. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +0 -148
  269. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +0 -113
  270. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +0 -155
  271. package/templates/react-sdk-reference/.github/skills/field-components.md +0 -295
  272. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +0 -113
  273. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +0 -211
  274. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +0 -175
  275. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +0 -109
  276. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +0 -101
  277. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +0 -106
  278. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +0 -99
  279. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +0 -134
  280. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +0 -109
  281. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +0 -96
  282. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +0 -145
  283. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +0 -98
  284. package/templates/react-sdk-reference/.github/skills/field-skills/TextContent.md +0 -117
  285. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +0 -203
  286. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +0 -70
  287. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +0 -124
  288. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +0 -86
  289. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +0 -137
  290. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +0 -131
  291. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +0 -124
  292. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +0 -104
  293. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultPage.md +0 -112
  294. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +0 -90
  295. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +0 -80
  296. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +0 -106
  297. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +0 -112
  298. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +0 -116
  299. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +0 -108
  300. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +0 -82
  301. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +0 -142
  302. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +0 -143
  303. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +0 -130
  304. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +0 -142
  305. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +0 -133
  306. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +0 -152
  307. package/templates/react-sdk-reference/.github/skills/template-skills/WssNavBar.md +0 -139
  308. package/templates/react-sdk-reference/.github/skills/widget-components.md +0 -260
  309. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +0 -84
  310. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +0 -151
  311. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +0 -110
  312. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +0 -103
  313. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +0 -169
  314. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +0 -198
  315. package/templates/react-sdk-reference/AGENTS.md +0 -246
  316. /package/templates/react-sdk-reference/{.claude → .ai-common}/skills/run-and-verify.md +0 -0
  317. /package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/WideNarrow.md +0 -0
@@ -1,154 +0,0 @@
1
- ---
2
- description: DSE component skill: Operator
3
- alwaysApply: false
4
- ---
5
-
6
- # Skill: Operator
7
-
8
- Read-only display of a Pega case operator (creator or updater). Shows the operator's name and relative timestamp. On click, fetches full operator details from Pega and displays them in a popover.
9
-
10
- > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
11
-
12
- ---
13
-
14
- ## Component Purpose
15
-
16
- Renders a clickable read-only field displaying a case operator's name and the relative time of their action (created/updated). Clicking the field triggers an async fetch of the operator's profile details (position, organization, reports-to, telephone, email) and shows them in a popover panel.
17
-
18
- ## Pega Metadata
19
-
20
- - **Pega Name:** `Operator`
21
- - **Registration key:** `Operator` (in `component-map.ts`)
22
- - **Extends `PConnProps`** — but does NOT call `getPConnect()`. Props are all passed directly.
23
-
24
- ## Props
25
-
26
- The component interface extends `PConnProps` but all rendering data is passed as explicit props:
27
-
28
- | Prop | Type | Required | Description |
29
- |------|------|----------|-------------|
30
- | `label` | `string` | Yes | The field label used to identify which operator to display. Must be `'create operator'` or `'update operator'` (case-insensitive). |
31
- | `displayLabel` | `any` | No | Alternative label (used if `label` doesn't match). Also compared case-insensitively. |
32
- | `createDateTime` | `string` | Yes | ISO datetime string of when the case was created |
33
- | `createLabel` | `string` | Yes | Display label for the create operator field |
34
- | `createOperator` | `{ userName: string; userId: string }` | Yes | Creator's name and ID |
35
- | `updateDateTime` | `string` | Yes | ISO datetime string of last update |
36
- | `updateLabel` | `string` | Yes | Display label for the update operator field |
37
- | `updateOperator` | `{ userName: string; userId: string }` | Yes | Updater's name and ID |
38
-
39
- ## Behavioral Contract
40
-
41
- ### 1. Operator Selection
42
-
43
- Determine which operator to display based on `label.toLowerCase()` or `displayLabel?.toLowerCase()`:
44
- - If either is `'create operator'`:
45
- - `caseOpLabel = createLabel`
46
- - `caseOpName = createOperator.userName`
47
- - `caseOpId = createOperator.userId`
48
- - `caseTime = createDateTime`
49
- - If either is `'update operator'`:
50
- - `caseOpLabel = updateLabel`
51
- - `caseOpName = updateOperator.userName`
52
- - `caseOpId = updateOperator.userId`
53
- - `caseTime = updateDateTime`
54
- - Otherwise: `caseOpLabel = '---'`, `caseOpName = '---'`, `caseOpId = ''`, `caseTime = ''`.
55
-
56
- ### 2. Main Display
57
-
58
- Render a read-only TextField (standard variant, no underline, pointer cursor) with:
59
- - `defaultValue={caseOpName}`
60
- - `label={caseOpLabel}`
61
- - `onClick={showOperatorDetails}`
62
- - `readOnly: true`, `disableUnderline: true`, `cursor: 'pointer'`
63
-
64
- Below the TextField, render the relative time: `Utils.generateDateTime(caseTime, 'DateTime-Since')`.
65
-
66
- ### 3. Popover on Click (`showOperatorDetails`)
67
-
68
- When the TextField is clicked:
69
- 1. Call `PCore.getUserApi().getOperatorDetails(caseOpId)` — returns a Promise.
70
- 2. Use `PCore.getLocaleUtils().getLocaleValue(key, 'Operator')` to localize field labels.
71
- 3. On resolution, build a fields array with these entries (using `'---'` as fallback for missing values):
72
- - Position (`pyPosition`)
73
- - Organization (`pyOrganization`)
74
- - Reports to (`pyReportToUserName`)
75
- - Telephone (`pyTelephone`) — rendered as `<a href={'tel:' + value}>{value}</a>`
76
- - Email address (`pyEmailAddress`) — rendered as `<a href={'mailto:' + value}>{value}</a>`
77
- 4. If `res.data.pyOperatorInfo.pyUserName` is empty, use all `'---'` fallbacks.
78
- 5. Set `popoverFields` state with the resolved fields.
79
- 6. Set `popoverAnchorEl` to the clicked element to open the popover.
80
-
81
- ### 4. Popover Layout
82
-
83
- The popover renders when `popoverAnchorEl` is set:
84
- - Anchor origin: `{ vertical: 'bottom', horizontal: 'center' }`
85
- - Transform origin: `{ vertical: 'top', horizontal: 'center' }`
86
- - Max width: `45ch`
87
- - Content: A `Grid container` with:
88
- - `Typography h6` showing `caseOpName` at full width.
89
- - One row per field: 6-col `Typography caption` (label) + 6-col `Typography subtitle2` (value).
90
-
91
- Closing the popover sets `popoverAnchorEl` to `null`.
92
-
93
- ## Visual Specifications
94
-
95
- Derived from `Operator.tsx` makeStyles:
96
-
97
- ### Root Container
98
-
99
- | Property | Value |
100
- |----------|-------|
101
- | Padding | `theme.spacing(1)` (≈ 8px) |
102
- | Margin | `theme.spacing(1)` |
103
-
104
- ### Popover Container
105
-
106
- | Property | Value |
107
- |----------|-------|
108
- | Padding | `theme.spacing(1)` |
109
- | Margin | `theme.spacing(1)` |
110
- | Max width | 45ch |
111
-
112
- **CSS-only implementation notes:**
113
- - Main display: read-only text field with label above, value below, pointer cursor on the value element.
114
- - Time display: secondary muted text below the operator name (e.g., `font-size: 0.75rem; color: var(--text-secondary)`).
115
- - Popover: `position: absolute; background: var(--bg-paper); border: 1px solid var(--divider); border-radius: 4px; padding: 8px; max-width: 45ch; box-shadow: 0 4px 12px rgba(0,0,0,0.15)`.
116
- - Operator name in popover: `font-size: 1.25rem; font-weight: 500; margin-bottom: 8px`.
117
- - Detail rows: `display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-items: baseline`.
118
- - Detail label: `font-size: 0.75rem; color: var(--text-secondary)`.
119
- - Detail value: `font-size: 0.875rem; font-weight: 500`.
120
- - Close popover on outside click (use `onClose` / blur handler).
121
-
122
- ## Edge Cases & Special Logic
123
-
124
- - If `caseOpId` is empty (label not recognized), do NOT call `getOperatorDetails` — the fetch would fail.
125
- - If the API response has no `pyOperatorInfo.pyUserName`, fall back to all `'---'` for field values (still open the popover).
126
- - `Utils.generateDateTime(caseTime, 'DateTime-Since')` handles empty `caseTime` gracefully.
127
- - State: `popoverFields` starts as empty array `[]`. Check `popoverFields.length === 0` and return `undefined` from `getPopoverGrid()` to render nothing before data loads.
128
-
129
- ## Dependencies
130
-
131
- - `Utils` from `../../helpers/utils` — `Utils.generateDateTime` for relative time display
132
- - `PCore.getUserApi().getOperatorDetails(userId)` — global Pega runtime API for operator details
133
- - `PCore.getLocaleUtils().getLocaleValue(key, 'Operator')` — for localized field labels in the popover
134
-
135
- ## Design System Mapping
136
-
137
- **UI control type:** Clickable read-only field with async popover detail panel.
138
-
139
- Listed design systems are examples only.
140
-
141
- | Design System | Recommended Component |
142
- |---|---|
143
- | Default (CSS only) | `<div>` with click handler, custom CSS popover/tooltip panel |
144
- | MUI | Read-only `<TextField>` + `<Popover>` with `<Grid>` detail rows |
145
- | Ant Design | `<Input readOnly>` + `<Popover>` with `<Descriptions>` |
146
- | Chakra UI | `<Input isReadOnly>` + `<Popover>` with custom content |
147
- | Shadcn/ui | `<Input readOnly>` + `<Popover>` + `<PopoverContent>` |
148
-
149
- When implementing in a specific design system, map the following:
150
- - `onClick` on read-only input → trigger async fetch + open popover
151
- - `PCore.getUserApi().getOperatorDetails()` → call this before showing the popover
152
- - Popover anchor → position relative to the clicked element
153
- - `Utils.generateDateTime(caseTime, 'DateTime-Since')` → relative time display (e.g., "2 hours ago")
154
- - Telephone/email in popover → clickable `<a href='tel:...'>` and `<a href='mailto:...'>` links
@@ -1,88 +0,0 @@
1
- ---
2
- description: DSE component skill: Pulse
3
- alwaysApply: false
4
- ---
5
-
6
- # Skill: Pulse
7
-
8
- Placeholder activity feed / comments stream card. Currently a stub implementation that renders a card titled "Pulse".
9
-
10
- > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
11
-
12
- ---
13
-
14
- ## Component Purpose
15
-
16
- 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.
17
-
18
- ## Pega Metadata
19
-
20
- - **Pega Name:** `Pulse`
21
- - **Registration key:** `Pulse` (in `component-map.ts`)
22
- - **Does NOT use `getPConnect`** — receives children via `PropsWithChildren`
23
-
24
- ## Props
25
-
26
- | Prop | Type | Required | Description |
27
- |------|------|----------|-------------|
28
- | `children` | `ReactNode` | No | Child components (activity stream content) — currently unused in the stub |
29
-
30
- > **Note:** The current reference implementation ignores `children` and renders placeholder content. A full implementation would render `children` inside the card body.
31
-
32
- ## Behavioral Contract
33
-
34
- 1. Render a `Card` (or equivalent container) with a distinct left border accent.
35
- 2. Render a card header with the title text `"Pulse"` using a heading style (e.g., `h6`).
36
- 3. Render card content body with placeholder text `"Pulse"`.
37
- 4. The left border accent uses the **primary light** color from the design system's theme.
38
- 5. The card has top and bottom margin (1 spacing unit each).
39
-
40
- > **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.
41
-
42
- ## Visual Specifications
43
-
44
- Derived from `Pulse.tsx` makeStyles:
45
-
46
- ### Card Container
47
-
48
- | Property | Value |
49
- |----------|-------|
50
- | Margin top | `theme.spacing(1)` (≈ 8px in MUI default) |
51
- | Margin bottom | `theme.spacing(1)` (≈ 8px) |
52
- | Border left | `6px solid` |
53
- | Border left color | `theme.palette.primary.light` (light variant of the primary brand color) |
54
-
55
- **CSS-only implementation notes:**
56
- - 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)`.
57
- - Card header: `padding: 16px; font-size: 1.25rem; font-weight: 500`.
58
- - Card body: `padding: 0 16px 16px`.
59
- - Use a CSS variable `--app-primary-light-color` for the accent border color.
60
-
61
- ## Edge Cases & Special Logic
62
-
63
- - The `children` prop is received but not currently rendered — it is intentional in the stub.
64
- - The component renders unconditionally (no conditional logic based on props).
65
-
66
- ## Dependencies
67
-
68
- - No Pega SDK imports required (no `getPConnect`)
69
- - No helper utilities required
70
-
71
- ## Design System Mapping
72
-
73
- **UI control type:** Card with left accent border and header/body sections.
74
-
75
- Listed design systems are examples only.
76
-
77
- | Design System | Recommended Component |
78
- |---|---|
79
- | Default (CSS only) | `<div>` with `border-left: 6px solid` + inner header/body divs |
80
- | MUI | `<Card><CardHeader title={<Typography variant='h6'>Pulse</Typography>} /><CardContent>` |
81
- | Ant Design | `<Card title='Pulse'>` with left border via `style` prop |
82
- | Chakra UI | `<Card>` with `borderLeft='6px solid' borderColor='blue.300'` |
83
- | Shadcn/ui | `<Card><CardHeader><CardTitle>` |
84
-
85
- When implementing in a specific design system, map the following:
86
- - Left border accent → `borderLeft` / `border-left` on the card root
87
- - Left border color → primary light color from the design system's palette
88
- - Card header title typography → design system's heading variant (h6 or equivalent)
@@ -1,211 +0,0 @@
1
- ---
2
- description: DSE component skill: RichTextEditor
3
- alwaysApply: false
4
- ---
5
-
6
- # Skill: RichTextEditor
7
-
8
- 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.
9
-
10
- > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
11
-
12
- ---
13
-
14
- ## Component Purpose
15
-
16
- 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.
17
-
18
- The editor is a `forwardRef` component — the ref is connected to the underlying TinyMCE editor instance.
19
-
20
- > **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.
21
-
22
- ## Pega Metadata
23
-
24
- - **Pega Name:** `RichTextEditor`
25
- - **Registration key:** `RichTextEditor` (in `component-map.ts`)
26
- - **Does NOT extend PConnProps** — receives all data as explicit field-like props
27
-
28
- ## Props
29
-
30
- | Prop | Type | Required | Description |
31
- |------|------|----------|-------------|
32
- | `id` | `string` | No | DOM id for the editor element. Defaults to a generated UID |
33
- | `defaultValue` | `string` | Yes | Initial HTML content of the editor |
34
- | `label` | `string` | Yes | Field label displayed above the editor |
35
- | `labelHidden` | `boolean` | Yes | If `true`, hide the label |
36
- | `info` | `string` | No | Helper text displayed below the editor |
37
- | `testId` | `string` | No | Value for `data-test-id` attribute on the FormControl wrapper |
38
- | `placeholder` | `string` | No | Placeholder text shown in empty editor |
39
- | `disabled` | `boolean` | Yes | If `true`, editor is in read-only/disabled mode with no toolbar |
40
- | `required` | `boolean` | Yes | If `true`, marks the field as required |
41
- | `readOnly` | `boolean` | Yes | If `true`, render as static HTML display (not interactive editor) |
42
- | `error` | `boolean` | Yes | If `true`, applies error styling to the FormControl |
43
- | `onBlur` | `React.EventHandler<any>` | Yes | Called when the editor loses focus |
44
- | `onChange` | `React.EventHandler<any>` | Yes | Called when the editor content changes |
45
-
46
- ## Behavioral Contract
47
-
48
- ### 1. Ref Forwarding
49
-
50
- The component uses `forwardRef`. Internally, use `useConsolidatedRef(ref)` from `@pega/sdk-react` to create `editorRef` — the TinyMCE editor instance is stored here after initialization.
51
-
52
- ### 2. UID for id
53
-
54
- If `id` is not provided, generate one using `useUID()` from `@pega/sdk-react`.
55
-
56
- ### 3. Read-Only Mode
57
-
58
- If `readOnly` is `true`, render:
59
- ```
60
- <div
61
- key={id}
62
- id={id}
63
- className='readonly-richtext-editor'
64
- dangerouslySetInnerHTML={{ __html: defaultValue || '--' }}
65
- />
66
- ```
67
- Skip the TinyMCE Editor entirely in this case.
68
-
69
- ### 4. Edit Mode (TinyMCE)
70
-
71
- When `readOnly` is `false`, render `<Editor>` from `@tinymce/tinymce-react` with:
72
-
73
- | Config | Value |
74
- |--------|-------|
75
- | `tinymceScriptSrc` | `'tinymce/tinymce.min.js'` (local script) |
76
- | `id` | The resolved `id` |
77
- | `initialValue` | `defaultValue` |
78
- | `disabled` | `disabled` prop |
79
- | `onBlur` | `onBlur` prop |
80
- | `onEditorChange` | `onChange` prop |
81
- | `onInit` | Store editor in `editorRef.current` |
82
-
83
- ### 5. TinyMCE `init` Configuration
84
-
85
- | Option | Value |
86
- |--------|-------|
87
- | `skin` | `'oxide-dark'` (dark mode) / `'oxide'` (light mode) — detect from theme |
88
- | `menubar` | `false` |
89
- | `statusbar` | `false` |
90
- | `branding` | `false` |
91
- | `min_height` | `130` |
92
- | `toolbar_location` | `'bottom'` |
93
- | `plugins` | `['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize']` |
94
- | `autoresize_bottom_margin` | `0` |
95
- | `toolbar` | `'blocks \| bold italic strikethrough \| bullist numlist outdent indent \| link image'` (or `false` when `disabled`) |
96
- | `paste_data_images` | `true` |
97
- | `file_picker_types` | `'image'` |
98
- | `file_picker_callback` | See file picker section below |
99
- | `content_style` | Theme-aware CSS string (see below) |
100
- | `placeholder` | `placeholder` prop |
101
-
102
- ### 6. Theme-Aware Content Style
103
-
104
- Inject a `content_style` string that uses theme values for the editor body:
105
- ```css
106
- body {
107
- font-family: <theme.typography.fontFamily>;
108
- font-size: <theme.typography.fontSize>px;
109
- color: <theme.palette.text.primary>;
110
- background: <theme.palette.background.paper>;
111
- }
112
- a { color: <theme.palette.primary.main>; }
113
- h1-h6 { color: <theme.palette.text.primary>; font-family: <theme.typography.fontFamily>; }
114
- blockquote { color: <theme.palette.text.secondary>; border-left: 4px solid <theme.palette.primary.light>; padding-left: 8px; }
115
- ul, ol { color: <theme.palette.text.primary>; }
116
- input, textarea, select {
117
- background: <theme.palette.background.paper>;
118
- color: <theme.palette.text.primary>;
119
- border: 1px solid <theme.palette.divider>;
120
- border-radius: 4px; padding: 6px 10px; font-size: 1em; font-family: inherit;
121
- }
122
- .mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before {
123
- color: <theme.palette.text.secondary>; opacity: 0.7;
124
- }
125
- ```
126
-
127
- ### 7. File Picker Callback
128
-
129
- When a user clicks the image upload in the toolbar:
130
- 1. Create a hidden `<input type='file' accept='image/*'>`.
131
- 2. On file selected: read as DataURL using `FileReader`.
132
- 3. On `FileReader.load`: create a blob in TinyMCE's blob cache (`editorRef.current.editorUpload.blobCache`), then call `cb(blobInfo.blobUri(), { title: file.name })`.
133
- 4. Programmatically click the input to open the file dialog.
134
-
135
- ### 8. readOnly/disabled Transition (after initial mount)
136
-
137
- Use `useAfterInitialEffect([readOnly, disabled])` from `@pega/sdk-react`:
138
- ```
139
- editorRef?.current.mode.set(readOnly || disabled ? 'readonly' : 'design')
140
- ```
141
- This switches the TinyMCE mode without re-mounting the editor.
142
-
143
- ### 9. Wrapper Structure
144
-
145
- ```
146
- <FormControl variant='standard' data-test-id={testId} error={error} required={required}>
147
- {!labelHidden && <InputLabel className='fieldLabel'>{label}</InputLabel>}
148
- {richTextComponent} ← either readOnly div or <Editor>
149
- {info && <FormHelperText>{info}</FormHelperText>}
150
- </FormControl>
151
- ```
152
-
153
- ## Visual Specifications
154
-
155
- Derived from `RichTextEditor.tsx` makeStyles:
156
-
157
- ### Label
158
-
159
- | Property | Value |
160
- |----------|-------|
161
- | Position | relative |
162
- | Transform | `translate(0, 0px) scale(1)` (non-floating — stays at top) |
163
- | Margin bottom | 5px |
164
- | Color | `theme.palette.text.secondary` |
165
-
166
- **CSS-only implementation notes:**
167
- - Label: `display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 5px`.
168
- - Editor container: `min-height: 130px; border: 1px solid var(--divider); border-radius: 4px`.
169
- - Toolbar (if CSS-only): render buttons at bottom of the editor area.
170
- - Read-only display: `div.readonly-richtext-editor { padding: 8px; min-height: 130px; background: var(--bg-paper); color: var(--text-primary) }`.
171
- - Error state: `border-color: var(--error-color)`.
172
- - Helper text: `font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px`.
173
- - Error helper text: `color: var(--error-color)`.
174
-
175
- ## Edge Cases & Special Logic
176
-
177
- - `defaultValue` in read-only mode falls back to `'--'` if empty.
178
- - `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.
179
- - 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.
180
- - The file picker creates a transient `<input type='file'>` element that is never appended to the DOM — it is clicked programmatically.
181
- - `id` must be stable across renders — use `useUID()` only as a fallback when `id` prop is absent.
182
-
183
- ## Dependencies
184
-
185
- - `Editor` from `@tinymce/tinymce-react` — TinyMCE React wrapper (can be swapped for Quill, ProseMirror, Slate.js, etc.)
186
- - `useAfterInitialEffect`, `useConsolidatedRef`, `useUID` from `@pega/sdk-react` — SDK hooks
187
- - `useTheme` from `@mui/material` — for theme-aware content styles
188
- - `FormControl`, `FormHelperText`, `InputLabel` from `@mui/material` — wrapper structure
189
-
190
- ## Design System Mapping
191
-
192
- **UI control type:** Rich text / WYSIWYG editor field with label, helper text, and error state.
193
-
194
- Listed design systems are examples only.
195
-
196
- | Design System | Rich Text Library |
197
- |---|---|
198
- | Default (CSS only) | `contenteditable` div with custom toolbar, or `<textarea>` |
199
- | MUI | TinyMCE (`@tinymce/tinymce-react`) wrapped in `<FormControl>` |
200
- | Ant Design | Quill (`react-quill`) or TinyMCE inside an `<AntForm.Item>` |
201
- | Chakra UI | Quill or Slate.js inside a `<FormControl>` |
202
- | Shadcn/ui | Tiptap (`@tiptap/react`) inside a field wrapper |
203
-
204
- When implementing in a specific design system, map the following:
205
- - `defaultValue` → initial HTML content
206
- - `readOnly={true}` → always render as static HTML `<div>` (no editor instance)
207
- - `disabled={true}` → editor mounted but read-only (toolbar hidden)
208
- - `onBlur` / `onChange` → editor's blur and content-change callbacks
209
- - `error` + `info` → FormControl error state + helper/description text below
210
- - `labelHidden` → conditionally render the label element
211
- - File picker → `<input type='file' accept='image/*'>` triggered programmatically
@@ -1,140 +0,0 @@
1
- ---
2
- description: DSE component skill: WssQuickCreate
3
- alwaysApply: false
4
- ---
5
-
6
- # Skill: WssQuickCreate
7
-
8
- Quick-launch action grid that displays a heading and a set of labeled buttons, each optionally with an icon, for creating WSS cases.
9
-
10
- > **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, props interface, styling patterns, and registration patterns common to ALL DSE components.
11
-
12
- ---
13
-
14
- ## Component Purpose
15
-
16
- 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.
17
-
18
- ## Pega Metadata
19
-
20
- - **Pega Name:** `WssQuickCreate`
21
- - **Registration key:** `WssQuickCreate` (in `component-map.ts`)
22
- - **Does NOT use `getPConnect`** — receives all data as direct props
23
-
24
- ## Props
25
-
26
- | Prop | Type | Required | Description |
27
- |------|------|----------|-------------|
28
- | `heading` | `string` | Yes | Section title rendered as an `<h1>` |
29
- | `actions` | `Array<{ label: string; onClick: () => void; icon?: string }>` | No | List of action items; each has a label, click handler, and optional icon URL |
30
-
31
- ## Behavioral Contract
32
-
33
- 1. Render the `heading` in an `<h1>` element with `id='quick-links-heading'` and class `quick-links-heading`.
34
- 2. Render a `<ul>` with `id='quick-links'` and class `quick-link-ul-list`.
35
- 3. If `actions` is provided, iterate and render one `<li>` per action.
36
- 4. Each `<li>` has the `quickLinkList` style class (styled card with border, rounded corners, and background color).
37
- 5. Inside each `<li>`, render a `<button>` with class `quick-link-button` and the action's `onClick` handler.
38
- 6. Button content is a `<span class='quick-link-button-span'>` (column flex layout) containing:
39
- - If `action.icon` is provided: `<img class='quick-link-icon' src={action.icon} />`
40
- - `<span>{action.label}</span>`
41
- 7. If `actions` is not provided or is empty, render only the heading with an empty list.
42
-
43
- ## Visual Specifications
44
-
45
- Derived from `WssQuickCreate.css` and component makeStyles:
46
-
47
- ### Section Heading
48
-
49
- | Property | Value |
50
- |----------|-------|
51
- | Tag | `<h1>` |
52
- | Margin top | 8px |
53
-
54
- ### Action List
55
-
56
- | Property | Value |
57
- |----------|-------|
58
- | List style | none |
59
- | Padding | 0 |
60
- | Display | grid |
61
- | Grid template columns | `repeat(auto-fit, minmax(min(20ch, 100%), 1fr))` (responsive columns) |
62
- | Gap | 1rem |
63
-
64
- ### Action Card (`<li>`)
65
-
66
- | Property | Value |
67
- |----------|-------|
68
- | Background (light mode) | `var(--link-button-color)` |
69
- | Background (dark mode) | `var(--app-background-color)` |
70
- | Text color | `var(--app-text-color)` |
71
- | Border radius | 16px |
72
- | Border | `1px solid var(--app-primary-color)` |
73
-
74
- ### Action Button
75
-
76
- | Property | Value |
77
- |----------|-------|
78
- | Text transform | capitalize |
79
- | Font size | 16px |
80
- | Color | `var(--app-text-color)` |
81
- | Height | 10rem |
82
- | Width | 100% |
83
- | Background | transparent (inherits card) |
84
-
85
- ### Button Inner Span
86
-
87
- | Property | Value |
88
- |----------|-------|
89
- | Display | flex |
90
- | Flex direction | column |
91
- | Align items | center |
92
- | Gap | 0.5rem |
93
-
94
- ### Icon
95
-
96
- | Property | Value |
97
- |----------|-------|
98
- | Flex shrink | 0 |
99
- | Object fit | contain |
100
- | Width | 3rem |
101
- | Height | 3rem |
102
-
103
- **CSS-only implementation notes:**
104
- - Action list: `list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20ch, 100%), 1fr)); gap: 1rem`.
105
- - Action card: `background: var(--link-button-color); border-radius: 16px; border: 1px solid var(--app-primary-color); color: var(--app-text-color)`.
106
- - Button: `width: 100%; height: 10rem; background: transparent; border: none; cursor: pointer; text-transform: capitalize; font-size: 16px; color: inherit`.
107
- - Button content: `display: flex; flex-direction: column; align-items: center; gap: 0.5rem`.
108
- - Icon: `width: 3rem; height: 3rem; object-fit: contain; flex-shrink: 0`.
109
-
110
- ## Edge Cases & Special Logic
111
-
112
- - If `actions` is `undefined` or empty, render the heading and empty `<ul>` without errors.
113
- - If `action.icon` is `undefined` or an empty string, render only the label span (no `<img>` element).
114
- - Labels are displayed as-is (no truncation); the grid layout handles responsive sizing naturally.
115
-
116
- ## Dependencies
117
-
118
- - No Pega SDK imports required (no `getPConnect`)
119
- - No helper utilities required
120
- - Icon images are passed as URLs (strings) via `action.icon` — no internal icon system used
121
-
122
- ## Design System Mapping
123
-
124
- **UI control type:** Responsive grid of action cards / quick-launch buttons.
125
-
126
- Listed design systems are examples only.
127
-
128
- | Design System | Recommended Component |
129
- |---|---|
130
- | Default (CSS only) | CSS grid `<ul>` + `<button>` cards with flex icon/label layout |
131
- | MUI | `<Button>` inside Grid items; use `makeStyles` or `sx` for card styling |
132
- | Ant Design | `<List>` with `<Card>` items or `<Button>` blocks inside a CSS grid |
133
- | Chakra UI | `<SimpleGrid>` with `<Button>` children; `flexDir='column'` |
134
- | Shadcn/ui | Grid of custom `<Button variant='outline'>` cards |
135
-
136
- When implementing in a specific design system, map the following:
137
- - Card border/background → design system's card or outlined button variant
138
- - Button `onClick` → standard click handler prop
139
- - Icon + label stacked layout → `flexDirection: 'column'` button content
140
- - Responsive grid → design system's grid or `SimpleGrid` equivalent