@pega/sdk 0.0.4 → 0.0.6

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 (548) hide show
  1. package/README.md +10 -3
  2. package/dist/index.js +977 -92
  3. package/package.json +1 -1
  4. package/templates/angular-sdk-reference/package.json +12 -12
  5. package/templates/angular-sdk-reference/tsconfig.json +1 -1
  6. package/templates/react-native-sdk-reference/.claude/settings.json +5 -0
  7. package/templates/react-native-sdk-reference/.prettierignore +17 -0
  8. package/templates/react-native-sdk-reference/.vscode/extensions.json +1 -0
  9. package/templates/react-native-sdk-reference/.vscode/settings.json +7 -0
  10. package/templates/react-native-sdk-reference/AGENTS.md +3 -0
  11. package/templates/react-native-sdk-reference/CLAUDE.md +1 -0
  12. package/templates/react-native-sdk-reference/README.md +56 -0
  13. package/templates/react-native-sdk-reference/app.json +40 -5
  14. package/templates/react-native-sdk-reference/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
  15. package/templates/react-native-sdk-reference/assets/expo.icon/Assets/grid.png +0 -0
  16. package/templates/react-native-sdk-reference/assets/expo.icon/icon.json +35 -0
  17. package/templates/react-native-sdk-reference/assets/icons/bell.png +0 -0
  18. package/templates/react-native-sdk-reference/assets/icons/clock.png +0 -0
  19. package/templates/react-native-sdk-reference/assets/icons/cross.png +0 -0
  20. package/templates/react-native-sdk-reference/assets/icons/donut.png +0 -0
  21. package/templates/react-native-sdk-reference/assets/icons/gear.png +0 -0
  22. package/templates/react-native-sdk-reference/assets/icons/globe.png +0 -0
  23. package/templates/react-native-sdk-reference/assets/icons/internet.png +0 -0
  24. package/templates/react-native-sdk-reference/assets/icons/music.png +0 -0
  25. package/templates/react-native-sdk-reference/assets/icons/right-arrow.png +0 -0
  26. package/templates/react-native-sdk-reference/assets/icons/speed.png +0 -0
  27. package/templates/react-native-sdk-reference/assets/images/MediaCo.png +0 -0
  28. package/templates/react-native-sdk-reference/assets/images/adaptive-icon.png +0 -0
  29. package/templates/react-native-sdk-reference/assets/images/android-icon-background.png +0 -0
  30. package/templates/react-native-sdk-reference/assets/images/android-icon-foreground.png +0 -0
  31. package/templates/react-native-sdk-reference/assets/images/android-icon-monochrome.png +0 -0
  32. package/templates/react-native-sdk-reference/assets/images/expo-badge-white.png +0 -0
  33. package/templates/react-native-sdk-reference/assets/images/expo-badge.png +0 -0
  34. package/templates/react-native-sdk-reference/assets/images/expo-logo.png +0 -0
  35. package/templates/react-native-sdk-reference/assets/images/favicon.png +0 -0
  36. package/templates/react-native-sdk-reference/assets/images/icon.png +0 -0
  37. package/templates/react-native-sdk-reference/assets/images/logo-glow.png +0 -0
  38. package/templates/react-native-sdk-reference/assets/images/partial-react-logo.png +0 -0
  39. package/templates/react-native-sdk-reference/assets/images/react-logo.png +0 -0
  40. package/templates/react-native-sdk-reference/assets/images/react-logo@2x.png +0 -0
  41. package/templates/react-native-sdk-reference/assets/images/react-logo@3x.png +0 -0
  42. package/templates/react-native-sdk-reference/assets/images/splash-icon.png +0 -0
  43. package/templates/react-native-sdk-reference/assets/images/tutorial-web.png +0 -0
  44. package/templates/react-native-sdk-reference/eslint.config.mjs +68 -0
  45. package/templates/react-native-sdk-reference/package.json +59 -14
  46. package/templates/react-native-sdk-reference/pega-constellationjs-0.26.3.tgz +0 -0
  47. package/templates/react-native-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
  48. package/templates/react-native-sdk-reference/pega-sdk-types-0.1.0.tgz +0 -0
  49. package/templates/react-native-sdk-reference/sdk-config.json +31 -9
  50. package/templates/react-native-sdk-reference/src/app/_layout.tsx +38 -0
  51. package/templates/react-native-sdk-reference/src/app/home/_layout.tsx +39 -0
  52. package/templates/react-native-sdk-reference/src/app/home/contact.tsx +11 -0
  53. package/templates/react-native-sdk-reference/src/app/home/index.tsx +36 -0
  54. package/templates/react-native-sdk-reference/src/app/home/shop.tsx +11 -0
  55. package/templates/react-native-sdk-reference/src/app/home/your-services.tsx +11 -0
  56. package/templates/react-native-sdk-reference/src/app/index.tsx +72 -0
  57. package/templates/react-native-sdk-reference/src/app/workarea.tsx +135 -0
  58. package/templates/react-native-sdk-reference/src/bridge/Context/StoreContext.ts +4 -0
  59. package/templates/react-native-sdk-reference/src/bridge/RootComponent.tsx +12 -0
  60. package/templates/react-native-sdk-reference/src/bridge/react_pconnect.jsx +334 -0
  61. package/templates/react-native-sdk-reference/src/components/common/DisplayField.tsx +29 -0
  62. package/templates/react-native-sdk-reference/src/components/common/FormFieldWrapper.tsx +5 -0
  63. package/templates/react-native-sdk-reference/src/components/common/HelperText.tsx +11 -0
  64. package/templates/react-native-sdk-reference/src/components/common/LabelText.tsx +22 -0
  65. package/templates/react-native-sdk-reference/src/components/common/inputTheme.ts +17 -0
  66. package/templates/react-native-sdk-reference/src/components/design-system/AutoComplete.tsx +126 -0
  67. package/templates/react-native-sdk-reference/src/components/design-system/FieldGroup.tsx +72 -0
  68. package/templates/react-native-sdk-reference/src/components/design-system/Radio.tsx +61 -0
  69. package/templates/react-native-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +196 -0
  70. package/templates/react-native-sdk-reference/src/components/field/AutoComplete/index.tsx +1 -0
  71. package/templates/react-native-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +89 -0
  72. package/templates/react-native-sdk-reference/src/components/field/Checkbox/index.tsx +1 -0
  73. package/templates/react-native-sdk-reference/src/components/field/Currency/Currency.tsx +84 -0
  74. package/templates/react-native-sdk-reference/src/components/field/Currency/index.tsx +1 -0
  75. package/templates/react-native-sdk-reference/src/components/field/Date/Date.tsx +94 -0
  76. package/templates/react-native-sdk-reference/src/components/field/Date/index.tsx +1 -0
  77. package/templates/react-native-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +211 -0
  78. package/templates/react-native-sdk-reference/src/components/field/Dropdown/index.tsx +1 -0
  79. package/templates/react-native-sdk-reference/src/components/field/Email/Email.tsx +81 -0
  80. package/templates/react-native-sdk-reference/src/components/field/Email/index.tsx +1 -0
  81. package/templates/react-native-sdk-reference/src/components/field/Group/Group.tsx +47 -0
  82. package/templates/react-native-sdk-reference/src/components/field/Group/index.tsx +1 -0
  83. package/templates/react-native-sdk-reference/src/components/field/Integer/Integer.tsx +84 -0
  84. package/templates/react-native-sdk-reference/src/components/field/Integer/index.tsx +1 -0
  85. package/templates/react-native-sdk-reference/src/components/field/Phone/Phone.tsx +85 -0
  86. package/templates/react-native-sdk-reference/src/components/field/Phone/index.ts +1 -0
  87. package/templates/react-native-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +118 -0
  88. package/templates/react-native-sdk-reference/src/components/field/RadioButtons/index.ts +1 -0
  89. package/templates/react-native-sdk-reference/src/components/field/TextArea/TextArea.tsx +86 -0
  90. package/templates/react-native-sdk-reference/src/components/field/TextArea/index.tsx +1 -0
  91. package/templates/react-native-sdk-reference/src/components/field/TextInput/TextInput.tsx +84 -0
  92. package/templates/react-native-sdk-reference/src/components/field/TextInput/index.tsx +1 -0
  93. package/templates/react-native-sdk-reference/src/components/field/URL/URL.tsx +86 -0
  94. package/templates/react-native-sdk-reference/src/components/field/URL/index.tsx +1 -0
  95. package/templates/react-native-sdk-reference/src/components/helpers/data_page.ts +20 -0
  96. package/templates/react-native-sdk-reference/src/components/helpers/event-utils.ts +20 -0
  97. package/templates/react-native-sdk-reference/src/components/helpers/instructions-utils.ts +57 -0
  98. package/templates/react-native-sdk-reference/src/components/helpers/state-utils.tsx +46 -0
  99. package/templates/react-native-sdk-reference/src/components/helpers/template-utils.ts +75 -0
  100. package/templates/react-native-sdk-reference/src/components/helpers/utils.ts +339 -0
  101. package/templates/react-native-sdk-reference/src/components/infra/ActionButtons/ActionButtons.tsx +63 -0
  102. package/templates/react-native-sdk-reference/src/components/infra/ActionButtons/index.tsx +1 -0
  103. package/templates/react-native-sdk-reference/src/components/infra/Assignment/Assignment.tsx +348 -0
  104. package/templates/react-native-sdk-reference/src/components/infra/Assignment/index.tsx +1 -0
  105. package/templates/react-native-sdk-reference/src/components/infra/AssignmentCard/AssignmentCard.tsx +56 -0
  106. package/templates/react-native-sdk-reference/src/components/infra/AssignmentCard/index.tsx +1 -0
  107. package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/FlowContainer.tsx +57 -0
  108. package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/helpers.ts +137 -0
  109. package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/index.tsx +1 -0
  110. package/templates/react-native-sdk-reference/src/components/infra/Containers/RootContainer/RootContainer.tsx +52 -0
  111. package/templates/react-native-sdk-reference/src/components/infra/Containers/RootContainer/index.tsx +1 -0
  112. package/templates/react-native-sdk-reference/src/components/infra/Containers/SimpleView/helper.ts +128 -0
  113. package/templates/react-native-sdk-reference/src/components/infra/Containers/SimpleView/index.tsx +59 -0
  114. package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/ViewContainer.tsx +31 -0
  115. package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/helper.ts +39 -0
  116. package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/index.ts +1 -0
  117. package/templates/react-native-sdk-reference/src/components/infra/Containers/helper.ts +9 -0
  118. package/templates/react-native-sdk-reference/src/components/infra/ErrorBoundary/ErrorBoundary.tsx +53 -0
  119. package/templates/react-native-sdk-reference/src/components/infra/ErrorBoundary/index.tsx +1 -0
  120. package/templates/react-native-sdk-reference/src/components/infra/MultiStep/MultiStep.tsx +24 -0
  121. package/templates/react-native-sdk-reference/src/components/infra/MultiStep/index.ts +1 -0
  122. package/templates/react-native-sdk-reference/src/components/infra/Reference/Reference.tsx +68 -0
  123. package/templates/react-native-sdk-reference/src/components/infra/Reference/index.tsx +1 -0
  124. package/templates/react-native-sdk-reference/src/components/infra/Reference/utils.ts +16 -0
  125. package/templates/react-native-sdk-reference/src/components/infra/Region/Region.tsx +10 -0
  126. package/templates/react-native-sdk-reference/src/components/infra/Region/index.tsx +1 -0
  127. package/templates/react-native-sdk-reference/src/components/infra/View/View.tsx +49 -0
  128. package/templates/react-native-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +38 -0
  129. package/templates/react-native-sdk-reference/src/components/template/DefaultForm/index.tsx +1 -0
  130. package/templates/react-native-sdk-reference/src/components/template/DefaultForm/utils/index.ts +28 -0
  131. package/templates/react-native-sdk-reference/src/components/template/Details/Details.tsx +82 -0
  132. package/templates/react-native-sdk-reference/src/components/template/Details/index.tsx +1 -0
  133. package/templates/react-native-sdk-reference/src/components/template/OneColumn/OneColumn.tsx +29 -0
  134. package/templates/react-native-sdk-reference/src/components/template/OneColumn/index.tsx +1 -0
  135. package/templates/react-native-sdk-reference/src/context/LoaderContext.tsx +42 -0
  136. package/templates/react-native-sdk-reference/src/mediaco/AdvBanner.tsx +62 -0
  137. package/templates/react-native-sdk-reference/src/mediaco/Header.tsx +60 -0
  138. package/templates/react-native-sdk-reference/src/mediaco/HomeScreen.tsx +78 -0
  139. package/templates/react-native-sdk-reference/src/mediaco/QuickActions.tsx +68 -0
  140. package/templates/react-native-sdk-reference/src/mediaco/ResolutionScreen.tsx +48 -0
  141. package/templates/react-native-sdk-reference/src/mediaco/SafeArea.tsx +11 -0
  142. package/templates/react-native-sdk-reference/src/mediaco/TabBar.tsx +102 -0
  143. package/templates/react-native-sdk-reference/src/mediaco/YourServices.tsx +90 -0
  144. package/templates/react-native-sdk-reference/src/sdk-pega-component-map.ts +64 -0
  145. package/templates/react-native-sdk-reference/src/types/PConnProps.d.ts +41 -0
  146. package/templates/react-native-sdk-reference/src/utils/auth.ts +62 -0
  147. package/templates/react-native-sdk-reference/src/utils/init-pcore.ts +37 -0
  148. package/templates/react-native-sdk-reference/src/utils/pcore-polyfills.ts +66 -0
  149. package/templates/react-native-sdk-reference/tsconfig.json +9 -8
  150. package/templates/react-sdk-reference/.ai-common/agents/embedded-flow-expert.md +171 -0
  151. package/templates/react-sdk-reference/{.github/agents/implementation-expert.agent.md → .ai-common/agents/implementation-expert.md} +44 -48
  152. package/templates/react-sdk-reference/.ai-common/global/ai-agent-instructions-embedded.md +119 -0
  153. package/templates/react-sdk-reference/.ai-common/global/ai-agent-instructions.md +192 -0
  154. package/templates/react-sdk-reference/.ai-common/instructions/component-map.md +35 -0
  155. package/templates/react-sdk-reference/.ai-common/instructions/dse-component.md +47 -0
  156. package/templates/react-sdk-reference/.ai-common/instructions/embedded-component.md +134 -0
  157. package/templates/react-sdk-reference/.ai-common/instructions/field-component.md +50 -0
  158. package/templates/react-sdk-reference/.ai-common/instructions/template-component.md +43 -0
  159. package/templates/react-sdk-reference/.ai-common/instructions/widget-component.md +45 -0
  160. package/templates/react-sdk-reference/.ai-common/prompts/add-component.md +193 -0
  161. package/templates/react-sdk-reference/{.claude → .ai-common}/prompts/component-manifest.json +106 -2
  162. package/templates/react-sdk-reference/.ai-common/prompts/embedded-component-manifest.md +155 -0
  163. package/templates/react-sdk-reference/.ai-common/prompts/generate-all-components.md +358 -0
  164. package/templates/react-sdk-reference/.ai-common/prompts/generate-dse-components.md +165 -0
  165. package/templates/react-sdk-reference/.ai-common/prompts/generate-embedded-components.md +315 -0
  166. package/templates/react-sdk-reference/.ai-common/prompts/generate-field-components.md +190 -0
  167. package/templates/react-sdk-reference/.ai-common/prompts/generate-template-components.md +227 -0
  168. package/templates/react-sdk-reference/.ai-common/prompts/generate-widget-components.md +172 -0
  169. package/templates/react-sdk-reference/{.claude → .ai-common}/prompts/identify-components.md +4 -0
  170. package/templates/react-sdk-reference/{.cursor/rules/prompts/replace-design-system.mdrules → .ai-common/prompts/replace-design-system.md} +2 -3
  171. package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/AlertBanner.md +61 -25
  172. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/Banner.md +176 -0
  173. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/CaseSummaryFields.md +180 -0
  174. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/DetailsFields.md +180 -0
  175. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldGroup.md +153 -0
  176. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldGroupList.md +136 -0
  177. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldValueList.md +140 -0
  178. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/Operator.md +85 -41
  179. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/Pulse.md +97 -0
  180. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/RichTextEditor.md +226 -0
  181. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/WssQuickCreate.md +35 -20
  182. package/templates/react-sdk-reference/.ai-common/skills/design-system-extension.md +169 -0
  183. package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/analyze-customer-repo.md +130 -0
  184. package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/authenticate.md +311 -0
  185. package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/run-and-verify-integration.md +156 -0
  186. package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/wire-integration.md +476 -0
  187. package/templates/react-sdk-reference/.ai-common/skills/field-components.md +190 -0
  188. package/templates/react-sdk-reference/.ai-common/skills/field-skills/AutoComplete.md +157 -0
  189. package/templates/react-sdk-reference/.ai-common/skills/field-skills/CancelAlert.md +178 -0
  190. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Checkbox.md +189 -0
  191. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Currency.md +136 -0
  192. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Date.md +126 -0
  193. package/templates/react-sdk-reference/.ai-common/skills/field-skills/DateTime.md +115 -0
  194. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Decimal.md +119 -0
  195. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Dropdown.md +136 -0
  196. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Email.md +99 -0
  197. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Group.md +88 -0
  198. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Integer.md +102 -0
  199. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Location.md +142 -0
  200. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Multiselect.md +42 -53
  201. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/ObjectReference.md +36 -60
  202. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Percentage.md +113 -0
  203. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Phone.md +100 -0
  204. package/templates/react-sdk-reference/.ai-common/skills/field-skills/RadioButtons.md +153 -0
  205. package/templates/react-sdk-reference/.ai-common/skills/field-skills/RichText.md +117 -0
  206. package/templates/react-sdk-reference/.ai-common/skills/field-skills/ScalarList.md +95 -0
  207. package/templates/react-sdk-reference/.ai-common/skills/field-skills/SelectableCard.md +155 -0
  208. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/SemanticLink.md +35 -57
  209. package/templates/react-sdk-reference/.ai-common/skills/field-skills/TextArea.md +109 -0
  210. package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/TextContent.md +27 -52
  211. package/templates/react-sdk-reference/.ai-common/skills/field-skills/TextInput.md +112 -0
  212. package/templates/react-sdk-reference/.ai-common/skills/field-skills/Time.md +102 -0
  213. package/templates/react-sdk-reference/.ai-common/skills/field-skills/URL.md +96 -0
  214. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/UserReference.md +41 -78
  215. package/templates/react-sdk-reference/.ai-common/skills/infra-components.md +165 -0
  216. package/templates/react-sdk-reference/.ai-common/skills/infra-skills/ActionButtons.md +122 -0
  217. package/templates/react-sdk-reference/.ai-common/skills/infra-skills/MultiStep.md +178 -0
  218. package/templates/react-sdk-reference/.ai-common/skills/infra-skills/Stages.md +140 -0
  219. package/templates/react-sdk-reference/.ai-common/skills/template-components.md +198 -0
  220. package/templates/react-sdk-reference/.ai-common/skills/template-skills/AdvancedSearch.md +126 -0
  221. package/templates/react-sdk-reference/.ai-common/skills/template-skills/AppShell.md +160 -0
  222. package/templates/react-sdk-reference/.ai-common/skills/template-skills/BannerPage.md +90 -0
  223. package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseSummary.md +129 -0
  224. package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseView.md +196 -0
  225. package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseViewActionsMenu.md +157 -0
  226. package/templates/react-sdk-reference/.ai-common/skills/template-skills/Confirmation.md +149 -0
  227. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DataReference.md +46 -31
  228. package/templates/react-sdk-reference/.ai-common/skills/template-skills/DefaultForm.md +141 -0
  229. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/DefaultPage.md +40 -34
  230. package/templates/react-sdk-reference/.ai-common/skills/template-skills/Details.md +96 -0
  231. package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsSubTabs.md +103 -0
  232. package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsThreeColumn.md +85 -0
  233. package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsTwoColumn.md +77 -0
  234. package/templates/react-sdk-reference/.ai-common/skills/template-skills/DynamicTabs.md +103 -0
  235. package/templates/react-sdk-reference/.ai-common/skills/template-skills/FieldGroupTemplate.md +130 -0
  236. package/templates/react-sdk-reference/.ai-common/skills/template-skills/HierarchicalForm.md +200 -0
  237. package/templates/react-sdk-reference/.ai-common/skills/template-skills/InlineDashboard.md +110 -0
  238. package/templates/react-sdk-reference/.ai-common/skills/template-skills/InlineDashboardPage.md +105 -0
  239. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/ListPage.md +21 -16
  240. package/templates/react-sdk-reference/.ai-common/skills/template-skills/ListView.md +234 -0
  241. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/MultiReferenceReadOnly.md +18 -23
  242. package/templates/react-sdk-reference/.ai-common/skills/template-skills/NarrowWide.md +161 -0
  243. package/templates/react-sdk-reference/.ai-common/skills/template-skills/OneColumn.md +114 -0
  244. package/templates/react-sdk-reference/.ai-common/skills/template-skills/PromotedFilters.md +132 -0
  245. package/templates/react-sdk-reference/.ai-common/skills/template-skills/SelfServiceCaseView.md +173 -0
  246. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/SimpleTable.md +44 -24
  247. package/templates/react-sdk-reference/.ai-common/skills/template-skills/SingleReferenceReadOnly.md +103 -0
  248. package/templates/react-sdk-reference/.ai-common/skills/template-skills/SubTabs.md +89 -0
  249. package/templates/react-sdk-reference/.ai-common/skills/template-skills/TwoColumn.md +133 -0
  250. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/WideNarrow.md +36 -43
  251. package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/WssNavBar.md +26 -45
  252. package/templates/react-sdk-reference/.ai-common/skills/widget-components.md +124 -0
  253. package/templates/react-sdk-reference/.ai-common/skills/widget-skills/AppAnnouncement.md +94 -0
  254. package/templates/react-sdk-reference/.ai-common/skills/widget-skills/Attachment.md +163 -0
  255. package/templates/react-sdk-reference/.ai-common/skills/widget-skills/CaseHistory.md +90 -0
  256. package/templates/react-sdk-reference/{.github → .ai-common}/skills/widget-skills/FileUtility.md +68 -62
  257. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/Followers.md +24 -19
  258. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/QuickCreate.md +27 -44
  259. package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/SummaryItem.md +35 -61
  260. package/templates/react-sdk-reference/.ai-common/skills/widget-skills/ToDo.md +261 -0
  261. package/templates/react-sdk-reference/package.json +1 -1
  262. package/templates/react-sdk-reference/package.minimal.json +29 -0
  263. package/templates/react-sdk-reference/pega-auth-0.2.44.tgz +0 -0
  264. package/templates/react-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
  265. package/templates/react-sdk-reference/src/AppProviders.tsx +17 -0
  266. package/templates/react-sdk-reference/src/MashupApp.tsx +8 -19
  267. package/templates/react-sdk-reference/src/PortalApp.tsx +6 -17
  268. package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +13 -3
  269. package/templates/react-native-sdk-reference/.github/AGENTS.md +0 -23
  270. package/templates/react-native-sdk-reference/.github/copilot-instructions.md +0 -40
  271. package/templates/react-native-sdk-reference/.github/skills/pega-sdk-component.md +0 -48
  272. package/templates/react-native-sdk-reference/App.tsx +0 -49
  273. package/templates/react-sdk-reference/.claude/instructions/component-map.md +0 -38
  274. package/templates/react-sdk-reference/.claude/instructions/dse-component.md +0 -75
  275. package/templates/react-sdk-reference/.claude/instructions/field-component.md +0 -75
  276. package/templates/react-sdk-reference/.claude/instructions/template-component.md +0 -93
  277. package/templates/react-sdk-reference/.claude/instructions/widget-component.md +0 -88
  278. package/templates/react-sdk-reference/.claude/prompts/add-component.md +0 -152
  279. package/templates/react-sdk-reference/.claude/prompts/generate-all-components.md +0 -158
  280. package/templates/react-sdk-reference/.claude/prompts/generate-dse-components.md +0 -140
  281. package/templates/react-sdk-reference/.claude/prompts/generate-field-components.md +0 -153
  282. package/templates/react-sdk-reference/.claude/prompts/generate-template-components.md +0 -165
  283. package/templates/react-sdk-reference/.claude/prompts/generate-widget-components.md +0 -138
  284. package/templates/react-sdk-reference/.claude/prompts/replace-design-system.md +0 -519
  285. package/templates/react-sdk-reference/.claude/skills/component-contracts.md +0 -140
  286. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/AlertBanner.md +0 -137
  287. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Banner.md +0 -152
  288. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/CaseSummaryFields.md +0 -159
  289. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/DetailsFields.md +0 -148
  290. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroup.md +0 -134
  291. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroupList.md +0 -113
  292. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldValueList.md +0 -118
  293. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Pulse.md +0 -85
  294. package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/RichTextEditor.md +0 -232
  295. package/templates/react-sdk-reference/.claude/skills/design-system-extension.md +0 -291
  296. package/templates/react-sdk-reference/.claude/skills/field-components.md +0 -295
  297. package/templates/react-sdk-reference/.claude/skills/field-skills/AutoComplete.md +0 -113
  298. package/templates/react-sdk-reference/.claude/skills/field-skills/CancelAlert.md +0 -211
  299. package/templates/react-sdk-reference/.claude/skills/field-skills/Checkbox.md +0 -175
  300. package/templates/react-sdk-reference/.claude/skills/field-skills/Currency.md +0 -109
  301. package/templates/react-sdk-reference/.claude/skills/field-skills/Date.md +0 -101
  302. package/templates/react-sdk-reference/.claude/skills/field-skills/DateTime.md +0 -106
  303. package/templates/react-sdk-reference/.claude/skills/field-skills/Decimal.md +0 -99
  304. package/templates/react-sdk-reference/.claude/skills/field-skills/Dropdown.md +0 -134
  305. package/templates/react-sdk-reference/.claude/skills/field-skills/Email.md +0 -109
  306. package/templates/react-sdk-reference/.claude/skills/field-skills/Group.md +0 -96
  307. package/templates/react-sdk-reference/.claude/skills/field-skills/Integer.md +0 -88
  308. package/templates/react-sdk-reference/.claude/skills/field-skills/Location.md +0 -145
  309. package/templates/react-sdk-reference/.claude/skills/field-skills/Percentage.md +0 -93
  310. package/templates/react-sdk-reference/.claude/skills/field-skills/Phone.md +0 -129
  311. package/templates/react-sdk-reference/.claude/skills/field-skills/RadioButtons.md +0 -167
  312. package/templates/react-sdk-reference/.claude/skills/field-skills/RichText.md +0 -149
  313. package/templates/react-sdk-reference/.claude/skills/field-skills/ScalarList.md +0 -134
  314. package/templates/react-sdk-reference/.claude/skills/field-skills/SelectableCard.md +0 -231
  315. package/templates/react-sdk-reference/.claude/skills/field-skills/TextArea.md +0 -98
  316. package/templates/react-sdk-reference/.claude/skills/field-skills/TextContent.md +0 -117
  317. package/templates/react-sdk-reference/.claude/skills/field-skills/TextInput.md +0 -107
  318. package/templates/react-sdk-reference/.claude/skills/field-skills/Time.md +0 -89
  319. package/templates/react-sdk-reference/.claude/skills/field-skills/URL.md +0 -86
  320. package/templates/react-sdk-reference/.claude/skills/template-components.md +0 -321
  321. package/templates/react-sdk-reference/.claude/skills/template-skills/AdvancedSearch.md +0 -150
  322. package/templates/react-sdk-reference/.claude/skills/template-skills/AppShell.md +0 -124
  323. package/templates/react-sdk-reference/.claude/skills/template-skills/BannerPage.md +0 -86
  324. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseSummary.md +0 -106
  325. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseView.md +0 -137
  326. package/templates/react-sdk-reference/.claude/skills/template-skills/CaseViewActionsMenu.md +0 -131
  327. package/templates/react-sdk-reference/.claude/skills/template-skills/Confirmation.md +0 -109
  328. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultForm.md +0 -104
  329. package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultPage.md +0 -112
  330. package/templates/react-sdk-reference/.claude/skills/template-skills/Details.md +0 -90
  331. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsSubTabs.md +0 -97
  332. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsThreeColumn.md +0 -80
  333. package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsTwoColumn.md +0 -80
  334. package/templates/react-sdk-reference/.claude/skills/template-skills/DynamicTabs.md +0 -106
  335. package/templates/react-sdk-reference/.claude/skills/template-skills/FieldGroupTemplate.md +0 -112
  336. package/templates/react-sdk-reference/.claude/skills/template-skills/HierarchicalForm.md +0 -116
  337. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboard.md +0 -108
  338. package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboardPage.md +0 -82
  339. package/templates/react-sdk-reference/.claude/skills/template-skills/ListView.md +0 -142
  340. package/templates/react-sdk-reference/.claude/skills/template-skills/MultiReferenceReadOnly.md +0 -82
  341. package/templates/react-sdk-reference/.claude/skills/template-skills/NarrowWide.md +0 -143
  342. package/templates/react-sdk-reference/.claude/skills/template-skills/OneColumn.md +0 -114
  343. package/templates/react-sdk-reference/.claude/skills/template-skills/PromotedFilters.md +0 -130
  344. package/templates/react-sdk-reference/.claude/skills/template-skills/SelfServiceCaseView.md +0 -142
  345. package/templates/react-sdk-reference/.claude/skills/template-skills/SingleReferenceReadOnly.md +0 -108
  346. package/templates/react-sdk-reference/.claude/skills/template-skills/SubTabs.md +0 -82
  347. package/templates/react-sdk-reference/.claude/skills/template-skills/TwoColumn.md +0 -133
  348. package/templates/react-sdk-reference/.claude/skills/template-skills/WssNavBar.md +0 -139
  349. package/templates/react-sdk-reference/.claude/skills/widget-components.md +0 -260
  350. package/templates/react-sdk-reference/.claude/skills/widget-skills/AppAnnouncement.md +0 -84
  351. package/templates/react-sdk-reference/.claude/skills/widget-skills/Attachment.md +0 -151
  352. package/templates/react-sdk-reference/.claude/skills/widget-skills/CaseHistory.md +0 -110
  353. package/templates/react-sdk-reference/.claude/skills/widget-skills/FileUtility.md +0 -206
  354. package/templates/react-sdk-reference/.claude/skills/widget-skills/ToDo.md +0 -198
  355. package/templates/react-sdk-reference/.cursor/rules/component-map.mdrules +0 -41
  356. package/templates/react-sdk-reference/.cursor/rules/dse-component.mdrules +0 -78
  357. package/templates/react-sdk-reference/.cursor/rules/field-component.mdrules +0 -74
  358. package/templates/react-sdk-reference/.cursor/rules/pega-sdk.mdrules +0 -247
  359. package/templates/react-sdk-reference/.cursor/rules/prompts/add-component.mdrules +0 -149
  360. package/templates/react-sdk-reference/.cursor/rules/prompts/component-manifest.json +0 -193
  361. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-all-components.mdrules +0 -154
  362. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-dse-components.mdrules +0 -131
  363. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-field-components.mdrules +0 -144
  364. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-template-components.mdrules +0 -156
  365. package/templates/react-sdk-reference/.cursor/rules/prompts/generate-widget-components.mdrules +0 -129
  366. package/templates/react-sdk-reference/.cursor/rules/prompts/identify-components.mdrules +0 -110
  367. package/templates/react-sdk-reference/.cursor/rules/skills/component-contracts.mdrules +0 -145
  368. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/AlertBanner.mdrules +0 -140
  369. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Banner.mdrules +0 -154
  370. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/CaseSummaryFields.mdrules +0 -159
  371. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/DetailsFields.mdrules +0 -149
  372. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroup.mdrules +0 -136
  373. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroupList.mdrules +0 -116
  374. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldValueList.mdrules +0 -120
  375. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Operator.mdrules +0 -154
  376. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Pulse.mdrules +0 -88
  377. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/RichTextEditor.mdrules +0 -211
  378. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/WssQuickCreate.mdrules +0 -140
  379. package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension.mdrules +0 -294
  380. package/templates/react-sdk-reference/.cursor/rules/skills/field-components.mdrules +0 -299
  381. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/AutoComplete.mdrules +0 -117
  382. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/CancelAlert.mdrules +0 -208
  383. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Checkbox.mdrules +0 -163
  384. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Currency.mdrules +0 -111
  385. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Date.mdrules +0 -104
  386. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/DateTime.mdrules +0 -108
  387. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Decimal.mdrules +0 -103
  388. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Dropdown.mdrules +0 -119
  389. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Email.mdrules +0 -112
  390. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Group.mdrules +0 -95
  391. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Integer.mdrules +0 -92
  392. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Location.mdrules +0 -141
  393. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Multiselect.mdrules +0 -169
  394. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ObjectReference.mdrules +0 -169
  395. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Percentage.mdrules +0 -97
  396. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Phone.mdrules +0 -115
  397. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RadioButtons.mdrules +0 -151
  398. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RichText.mdrules +0 -143
  399. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ScalarList.mdrules +0 -129
  400. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SelectableCard.mdrules +0 -221
  401. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SemanticLink.mdrules +0 -153
  402. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextArea.mdrules +0 -101
  403. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextContent.mdrules +0 -106
  404. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextInput.mdrules +0 -109
  405. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Time.mdrules +0 -93
  406. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/URL.mdrules +0 -90
  407. package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/UserReference.mdrules +0 -185
  408. package/templates/react-sdk-reference/.cursor/rules/skills/run-and-verify.mdrules +0 -73
  409. package/templates/react-sdk-reference/.cursor/rules/skills/template-components.mdrules +0 -327
  410. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AdvancedSearch.mdrules +0 -149
  411. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AppShell.mdrules +0 -127
  412. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/BannerPage.mdrules +0 -88
  413. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseSummary.mdrules +0 -105
  414. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseView.mdrules +0 -136
  415. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseViewActionsMenu.mdrules +0 -131
  416. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Confirmation.mdrules +0 -112
  417. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DataReference.mdrules +0 -125
  418. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultForm.mdrules +0 -107
  419. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultPage.mdrules +0 -115
  420. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Details.mdrules +0 -93
  421. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsSubTabs.mdrules +0 -100
  422. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsThreeColumn.mdrules +0 -83
  423. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsTwoColumn.mdrules +0 -83
  424. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DynamicTabs.mdrules +0 -106
  425. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/FieldGroupTemplate.mdrules +0 -114
  426. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/HierarchicalForm.mdrules +0 -118
  427. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboard.mdrules +0 -109
  428. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboardPage.mdrules +0 -90
  429. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListPage.mdrules +0 -73
  430. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListView.mdrules +0 -144
  431. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/MultiReferenceReadOnly.mdrules +0 -85
  432. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/NarrowWide.mdrules +0 -146
  433. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/OneColumn.mdrules +0 -114
  434. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/PromotedFilters.mdrules +0 -129
  435. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SelfServiceCaseView.mdrules +0 -140
  436. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SimpleTable.mdrules +0 -132
  437. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SingleReferenceReadOnly.mdrules +0 -108
  438. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SubTabs.mdrules +0 -84
  439. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/TwoColumn.mdrules +0 -136
  440. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WideNarrow.mdrules +0 -155
  441. package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WssNavBar.mdrules +0 -140
  442. package/templates/react-sdk-reference/.cursor/rules/skills/widget-components.mdrules +0 -276
  443. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/AppAnnouncement.mdrules +0 -87
  444. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Attachment.mdrules +0 -151
  445. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/CaseHistory.mdrules +0 -112
  446. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/FileUtility.mdrules +0 -205
  447. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Followers.mdrules +0 -104
  448. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/QuickCreate.mdrules +0 -119
  449. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/SummaryItem.mdrules +0 -172
  450. package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/ToDo.mdrules +0 -195
  451. package/templates/react-sdk-reference/.cursor/rules/template-component.mdrules +0 -95
  452. package/templates/react-sdk-reference/.cursor/rules/widget-component.mdrules +0 -90
  453. package/templates/react-sdk-reference/.github/copilot-instructions.md +0 -243
  454. package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +0 -40
  455. package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +0 -77
  456. package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +0 -77
  457. package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +0 -95
  458. package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +0 -90
  459. package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +0 -192
  460. package/templates/react-sdk-reference/.github/prompts/component-manifest.json +0 -193
  461. package/templates/react-sdk-reference/.github/prompts/generate-all-components.prompt.md +0 -411
  462. package/templates/react-sdk-reference/.github/prompts/generate-dse-components.prompt.md +0 -205
  463. package/templates/react-sdk-reference/.github/prompts/generate-field-components.prompt.md +0 -223
  464. package/templates/react-sdk-reference/.github/prompts/generate-template-components.prompt.md +0 -229
  465. package/templates/react-sdk-reference/.github/prompts/generate-widget-components.prompt.md +0 -208
  466. package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +0 -110
  467. package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +0 -524
  468. package/templates/react-sdk-reference/.github/skills/component-contracts.md +0 -140
  469. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +0 -152
  470. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +0 -159
  471. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +0 -148
  472. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +0 -134
  473. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +0 -113
  474. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +0 -118
  475. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +0 -155
  476. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +0 -85
  477. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +0 -232
  478. package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +0 -137
  479. package/templates/react-sdk-reference/.github/skills/design-system-extension.md +0 -291
  480. package/templates/react-sdk-reference/.github/skills/field-components.md +0 -295
  481. package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +0 -113
  482. package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +0 -211
  483. package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +0 -175
  484. package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +0 -109
  485. package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +0 -101
  486. package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +0 -106
  487. package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +0 -99
  488. package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +0 -134
  489. package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +0 -109
  490. package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +0 -96
  491. package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +0 -88
  492. package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +0 -145
  493. package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +0 -188
  494. package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +0 -173
  495. package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +0 -93
  496. package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +0 -129
  497. package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +0 -167
  498. package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +0 -149
  499. package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +0 -134
  500. package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +0 -231
  501. package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +0 -155
  502. package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +0 -98
  503. package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +0 -107
  504. package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +0 -89
  505. package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +0 -86
  506. package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +0 -203
  507. package/templates/react-sdk-reference/.github/skills/run-and-verify.md +0 -70
  508. package/templates/react-sdk-reference/.github/skills/template-components.md +0 -321
  509. package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +0 -150
  510. package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +0 -124
  511. package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +0 -86
  512. package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +0 -106
  513. package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +0 -137
  514. package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +0 -131
  515. package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +0 -109
  516. package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +0 -124
  517. package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +0 -104
  518. package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +0 -90
  519. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +0 -97
  520. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +0 -80
  521. package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +0 -80
  522. package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +0 -106
  523. package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +0 -112
  524. package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +0 -116
  525. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +0 -108
  526. package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +0 -82
  527. package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +0 -70
  528. package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +0 -142
  529. package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +0 -143
  530. package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +0 -114
  531. package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +0 -130
  532. package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +0 -142
  533. package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +0 -131
  534. package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +0 -108
  535. package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +0 -82
  536. package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +0 -133
  537. package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +0 -152
  538. package/templates/react-sdk-reference/.github/skills/widget-components.md +0 -260
  539. package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +0 -84
  540. package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +0 -151
  541. package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +0 -110
  542. package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +0 -103
  543. package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +0 -118
  544. package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +0 -169
  545. package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +0 -198
  546. package/templates/react-sdk-reference/AGENTS.md +0 -246
  547. package/templates/react-sdk-reference/pega-auth-0.2.42.tgz +0 -0
  548. /package/templates/react-sdk-reference/{.claude → .ai-common}/skills/run-and-verify.md +0 -0
@@ -0,0 +1,100 @@
1
+ # Skill: Phone
2
+
3
+ Telephone input field with country code selector, binds to a Pega case property.
4
+
5
+ > **Prerequisite skill:** [`field-components.md`](../field-components.md) — covers architecture, input contract, display modes, event handling, and registration patterns common to ALL field components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a telephone number input with an integrated country code selector (flag + dial code). Stores the phone number in E.164 format (e.g., `+15551234567`). Uses a specialized phone input library for the country picker. Separate handling for read-only mode (keeps country picker but sets input as read-only).
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `Phone`
16
+ - **Type / Subtype:** `Field` / `Text-Phone`
17
+ - **Registration key:** `Phone` (in the project's component map)
18
+
19
+ ## Inputs (component-specific)
20
+
21
+ No inputs beyond the project's field input contract (see prerequisite skill).
22
+
23
+ ## Implementation Structure
24
+
25
+ Follow this exact structure. Replace the phone-input widget with an equivalent from your chosen design system / phone library.
26
+
27
+ **Module Setup:** The component depends on the project's component registry (to resolve `FieldValueList`) and the project's event-commit utility (for committing value changes to the store). It also uses a phone-input library that provides a country-code picker with flag display and dial-code formatting. Define the input contract as the project's field input contract with no additional fields.
28
+
29
+ **Main Component Logic** — steps in order:
30
+
31
+ 1. **Registry lookup** — resolve `FieldValueList` via the project's component registry.
32
+ 2. **Receive inputs** — `getPConnect`, `label`, `required`, `disabled`, `value` (default `''`), `validatemessage`, `status`, `onChange` (note: this raw input is used directly in read-only mode), `readOnly`, `testId`, `helperText`, `displayMode`, `hideLabel`, `placeholder`.
33
+ 3. **PConnect setup** — obtain the PConnect instance, its actions API, and the bound property name.
34
+ 4. **Local state and sync** — `inputValue` initialized from `value`; a lifecycle effect watching `value` updates `inputValue` whenever it changes.
35
+ 5. **Derived values** — `helperTextToDisplay = validatemessage || helperText` and a test-id attribute object built from `testId`.
36
+ 6. **Display mode returns** — `DISPLAY_ONLY` and `STACKED_LARGE_VAL` both return `FieldValueList` using the raw `value`, the latter with a stacked variant.
37
+ 7. **Read-only return** — keeps the phone widget visible but disables the country dropdown and sets the input itself to read-only. Notably, this branch uses the raw `onChange` input (not a local handler) and the raw `value` input (not local state). Render the phone widget wrapped in a container element, configured with default country `US`, `value` set to the raw value, `onChange` set to the raw onChange input, country dropdown disabled, and the read-only/test-id attributes merged into the input element, alongside the usual label/helperText/required/disabled/error/size/placeholder configuration.
38
+ 8. **Editable handlers** — the change handler updates local `inputValue` state only. The blur handler extracts the raw phone value from the event, strips the country-code prefix by splitting on spaces and dropping the first segment, then normalizes to E.164 format by stripping all non-digit characters and prefixing with `+` (or produces an empty string if nothing remains); it then commits via the project's event-commit utility with event type `'changeNblur'`, the property name, and the normalized phone number.
39
+ 9. **Render** — a phone input with country selector, configured with: full width, an outlined style, small size, default country `US`, current `inputValue`, the change handler, the blur handler wired only when not read-only, `label`, `helperText: helperTextToDisplay`, `placeholder: placeholder ?? ''`, `required`, `disabled`, an error state when `status === 'error'`, and the test-id attribute applied to the underlying input element.
40
+
41
+ ## Behavioral Contract
42
+
43
+ 1. **Local state:** Maintain `inputValue` (string). Initialize from `value` input. A lifecycle effect watching `value` updates `inputValue`.
44
+ 2. **Default country:** `'US'` — the country code selector defaults to United States.
45
+ 3. **On change (editable):** Update local `inputValue` state with the formatted phone string from the library callback.
46
+ 4. **On blur (editable):** Extract and normalize the phone number to E.164 format: read the raw target value from the event, strip the country-code prefix by splitting the string on spaces and discarding the first segment, then strip all non-digit characters from the original value and prefix the result with `+` (producing an empty string if the stripped-prefix segment was empty). Commit the normalized value via the project's event-commit utility with event type `'changeNblur'`, the property name, and the normalized phone number.
47
+ 5. **Read-only:** Render the phone input with the read-only attribute on the input element and country dropdown disabled. Keep the country flag/code visible but non-interactive. The `onChange` handler used is the raw platform-wired `onChange` input (not the local state updater). Do NOT call the event-commit utility in read-only mode.
48
+ 6. **testId:** Pass as a test-identifier attribute on the input element.
49
+
50
+ ## Display Mode Rendering
51
+
52
+ - **`DISPLAY_ONLY`:** Render `FieldValueList` with `name` set to `label` (or empty when `hideLabel` is true) and `value` set to the raw `value` — raw phone string.
53
+ - **`STACKED_LARGE_VAL`:** Render `FieldValueList` the same way, with a stacked layout variant.
54
+
55
+ ## Read-Only Rendering
56
+
57
+ Render the phone input wrapped in a container element, with a read-only attribute applied to the input element and the country dropdown disabled. The `onChange` handler passed through is the raw `onChange` from the field input contract (not a local handler), and `value` is the raw input value (not local state), with default country `US` still applied.
58
+
59
+ ## Visual Specifications
60
+
61
+ | Property | Editable | Read-only |
62
+ | ---------------- | ------------------------------ | ----------------------------------------- |
63
+ | Width | 100% | 100% |
64
+ | Size | Small | Small |
65
+ | Variant | Outlined | Outlined (same, with readOnly input) |
66
+ | Country selector | Dropdown with flag + dial code | Flag + dial code shown, dropdown disabled |
67
+ | Default country | US (`+1`) | US (`+1`) |
68
+ | Error state | Red border + red helper text | — |
69
+ | Helper text | Below input | Below input |
70
+
71
+ **Visual-only styling notes:** For a CSS-only implementation, build a two-part flex container: an outer wrapper with a 1px solid outlined border, 4px border radius, and hidden overflow so the two inner sections share one visual border; a country-select segment with no border of its own but a right-side divider border, horizontal padding, and a transparent background; and a number-input segment that flexes to fill remaining space, has no border, standard input padding, small font size, and no focus outline (since the outer wrapper conveys the focus/border state).
72
+
73
+ ## Edge Cases & Special Logic
74
+
75
+ - **E.164 normalization on blur:** Strip all non-digit chars from the full value (including country code), then prepend `+`. If the result after stripping the country part is empty, store `''`.
76
+ - **Read-only uses the raw `onChange` input** (not the local change handler) — this is the platform-wired handler, not the local state updater. Do NOT call the event-commit utility in read-only mode.
77
+ - Country dropdown is disabled in read-only — prevents country switching.
78
+ - The library provides the formatted display value (e.g., `+1 (555) 123-4567`) in the callback; we normalize it to E.164 only on blur.
79
+
80
+ ## Dependencies
81
+
82
+ - A phone input library with country code selector and E.164 formatting support.
83
+ - The project's event-commit utility.
84
+ - The project's component registry, resolving `FieldValueList` — for display modes.
85
+
86
+ **For CSS-only / non-library implementations:**
87
+
88
+ - Use a `<select>` for country code + a text `<input type="tel">` for the number.
89
+ - On blur, combine dial code + number and strip non-digits, then format as `+{digits}`.
90
+
91
+ ## Design System Mapping
92
+
93
+ **UI control type:** Telephone input with integrated country code selector.
94
+
95
+ When implementing in a specific design system, map the following:
96
+
97
+ - **Phone input** → use the DS's phone/telephone input or a third-party phone-input library compatible with the project's framework
98
+ - **Country code selector** → a dropdown with flag + dial code as a prefix/adornment on the input
99
+ - **Read-only mode** → keep the country flag visible but disable the dropdown and set the input to read-only
100
+ - **E.164 normalization** → perform on blur before committing to the store
@@ -0,0 +1,153 @@
1
+ # Skill: RadioButtons
2
+
3
+ Radio button group field with optional card-style variant and localized option labels.
4
+
5
+ > **Prerequisite skill:** [`field-components.md`](../field-components.md) — covers architecture, input contract, display modes, event handling, and registration patterns common to ALL field components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a group of radio buttons for single-selection from a list of options. Supports standard radio button layout (inline or stacked) and a card-style visual variant. Option labels are localized. Commits value immediately on selection.
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `RadioButtons`
16
+ - **Type / Subtype:** `Field` / `Picklist-Radio`
17
+ - **Registration key:** `RadioButtons` (in the project's component map)
18
+
19
+ ## Inputs (component-specific)
20
+
21
+ | Name | Type | Description |
22
+ | ---------------------- | -------------------- | ------------------------------------------------------------------------------- |
23
+ | `inline` | `boolean` | If `true`, render radio buttons in a horizontal row; if `false`, vertical stack |
24
+ | `fieldMetadata` | `any` (optional) | For localization context (tableType, datasource name, display text property) |
25
+ | `variant` | `string` (optional) | `'card'` — renders options as selectable cards instead of radio buttons |
26
+ | `hideFieldLabels` | `boolean` (optional) | Hide field labels inside card variant |
27
+ | `additionalProps` | `any` (optional) | Extra inputs passed to `SelectableCard` in card variant |
28
+ | `imagePosition` | `string` (optional) | Card image position: `'inline-start'`, `'inline-end'`, or block |
29
+ | `imageSize` | `string` (optional) | Card image size |
30
+ | `showImageDescription` | `boolean` (optional) | Whether to show image description in cards |
31
+ | `datasource` | `any` (optional) | Datasource for card variant |
32
+
33
+ All other inputs come from the project's field input contract (see prerequisite skill).
34
+
35
+ ## Implementation Structure
36
+
37
+ Follow this exact structure. Includes localization metadata derivation (same pattern as Dropdown).
38
+
39
+ **Module Setup:** The component depends on the project's component registry (to resolve `FieldValueList` and `SelectableCard`), the project's event-commit utility, and the project's utility helpers (for loading option lists). Define the input contract as an extension of the project's field input contract, adding `inline`, and optional `fieldMetadata`, `variant`, `hideFieldLabels`, `additionalProps`, `imagePosition`, `imageSize`, `showImageDescription`, and `datasource` fields.
40
+
41
+ **Main Component Logic** — steps in order:
42
+
43
+ 1. **Registry lookups** — resolve `FieldValueList` and `SelectableCard` via the project's component registry.
44
+ 2. **Receive inputs** — `getPConnect`, `label`, `value` (default `''`), `readOnly`, `validatemessage`, `helperText`, `status`, `required`, `inline`, `displayMode`, `hideLabel`, `fieldMetadata`, `variant`, `hideFieldLabels`, `additionalProps`, `datasource`, `imagePosition`, `imageSize`, `showImageDescription`.
45
+ 3. **Local state** — `theSelectedButton` initialized from `value`.
46
+ 4. **PConnect setup** — obtain the PConnect instance, its config inputs via `thePConn.getConfigProps()`, actions API, bound property name, `helperTextToDisplay = validatemessage || helperText`, and `className` via `thePConn.getCaseInfo().getClassName()`.
47
+ 5. **Localization keys** (same pattern as Dropdown) — derive `configProperty` from the raw metadata config value (default `''`), stripping a leading `@P` prefix and then a leading `.`; derive `metaData`, `displayName`, `localeContext`, `localeClass`, `localeName`, and `localePath` the same way Dropdown does, except `localeName` falls back to `configProperty` (instead of `refName`) for the associated case.
48
+ 6. **Load options synchronously** — load the option list via the project's utility helper using the component's config inputs and the PConnect data object (no async fetching).
49
+ 7. **Sync effect** — a lifecycle effect watching `value` updates `theSelectedButton`.
50
+ 8. **Display mode returns (with localization)** — `DISPLAY_ONLY` and `STACKED_LARGE_VAL` (the latter with a stacked variant) both return `FieldValueList` with `value` set to the localized display label via `thePConn.getLocalizedValue(value, localePath, thePConn.getLocaleRuleNameFromKeys(localeClass, localeContext, localeName))`.
51
+ 9. **Event handlers** — the change handler commits immediately via the project's event-commit utility with event type `'changeNblur'`, the property name, and the selected value; the blur handler calls `thePConn.getValidationApi().validate(event.target.value, '')`.
52
+ 10. **Card variant return** (`variant === 'card'`) — a heading plus a CSS grid wrapper containing a `SelectableCard` configured with `type='radio'`; see the Behavioral Contract "Card" section for the full input wiring.
53
+ 11. **Standard variant return** — a form control containing a group label, a radio group (rendered as a horizontal row when `inline` is true) with one radio option per entry (each labeled with its localized text), and helper text below.
54
+
55
+ ## Behavioral Contract
56
+
57
+ 1. **Local state:** Maintain `theSelectedButton` (string). Initialize from the `value` input. A lifecycle effect watching `value` updates `theSelectedButton`.
58
+ 2. **Options:** Load options via the project's utility helper — returns an array of `{key: string, value: string}` objects.
59
+ 3. **On change:** Commit via the project's event-commit utility with event type `'changeNblur'`, the property name, and the selected value.
60
+ 4. **On blur:** Validate via `pConn.getValidationApi().validate(event.target.value, '')`. Second arg is empty string (optional parameter).
61
+ 5. **Inline layout:** Render the radio group as a horizontal row when `inline` is true.
62
+ 6. **Read-only:** Disable radio inputs (set `disabled` to the `readOnly` value) — do NOT use a separate read-only component.
63
+ 7. **Localization:** Option labels are localized via `pConn.getLocalizedValue(option.value, localePath, localeRuleName)`.
64
+ 8. **Localization keys derivation:**
65
+ - Strip `@P ` prefix and leading `.` from `configProperty` (from the raw metadata).
66
+ - `localeContext`: `'datapage'` if `fieldMetadata.datasource.tableType === 'DataPage'`, else `'associated'`.
67
+ - `localeClass`: `'@baseclass'` for datapage, else `className`.
68
+ - `localeName`: datapage name or property name.
69
+ - `localePath`: display text property or localeName.
70
+
71
+ ### Variant: Standard (default)
72
+
73
+ Render a radio group with a form control, group label, radio group container, and individual radio option labels:
74
+
75
+ - Group label: the `label` input
76
+ - Radio group: value bound to `theSelectedButton`, change handler, blur handler wired only when not read-only, row layout when `inline` is true
77
+ - Each radio option: `value` set to `option.key`, label set to the localized `option.value`, radio control disabled when `readOnly` is true
78
+ - Helper text below for `helperTextToDisplay`
79
+ - Error state on the form control when `status === 'error'`
80
+
81
+ ### Variant: Card (`variant === 'card'`)
82
+
83
+ Render a heading with the `label`, then delegate to `SelectableCard`: a wrapping container with the heading (no top/bottom margin) followed by a CSS grid container (columns `repeat(auto-fit, minmax(min(200px, 100%), 1fr))`, gap `1rem`) holding a single `SelectableCard` configured with `type='radio'`, `dataSource` set to `datasource`, `recordKey` set to the last segment of the state's `value` path, `cardLabel` set to the last segment of the state's `primaryField` path, `radioBtnValue` set to `value`, `onChange` set to the change handler, an `image` config object (`imagePosition`, `imageSize`, `showImageDescription`, `imageField`, `imageDescription` — each derived by taking the last segment of the respective state path), `setIsRadioCardSelected` set to the state updater unless `displayMode === 'DISPLAY_ONLY'` (in which case `undefined`), `hideFieldLabels`, `additionalProps`, and `getPConnect`.
84
+
85
+ **Critical: state prop key mapping for the `image` config object:**
86
+
87
+ | SelectableCard image prop | Derived from state prop key | Transformation |
88
+ | ------------------------- | --------------------------- | ------------------------------- |
89
+ | `imageField` | `image` | Take the last segment after `.` |
90
+ | `imageDescription` | `imageDescription` | Take the last segment after `.` |
91
+
92
+ The state prop key for the image property path is **`image`** (NOT `imageField`). The `imageField` name only refers to the prop passed INTO SelectableCard — it is derived by extracting the last dot-separated segment from the state prop whose key is `image`. For example, if `stateProps.image` is `'.PhoneImage'`, then `imageField` becomes `'PhoneImage'`.
93
+
94
+ Similarly, `recordKey` is derived from `stateProps.value` (last segment), and `cardLabel` from `stateProps.primaryField` (last segment).
95
+
96
+ ## Display Mode Rendering
97
+
98
+ Both modes render the localized display label of the selected option:
99
+
100
+ - **`DISPLAY_ONLY`:** Render `FieldValueList` with `name` set to `label` (or empty when `hideLabel` is true) and `value` set to the localized value.
101
+ - **`STACKED_LARGE_VAL`:** Render `FieldValueList` the same way, with a stacked layout variant.
102
+
103
+ Where the localized value is obtained via `pConn.getLocalizedValue(value, localePath, localeRuleName)`.
104
+
105
+ ## Visual Specifications
106
+
107
+ ### Standard Variant
108
+
109
+ | Property | Value |
110
+ | ------------------- | ----------------------------------------------------------- |
111
+ | Layout | Vertical stack (or horizontal row when `inline=true`) |
112
+ | Radio indicator | Circle button with filled inner circle when selected |
113
+ | Label | Label text to the right of the radio button (end placement) |
114
+ | Group label | Legend/label above the group |
115
+ | Error state | Group border or text in red |
116
+ | Helper text | Below the group |
117
+ | Disabled (readOnly) | Greyed-out radio buttons, not-allowed cursor |
118
+
119
+ **Visual-only styling notes:** The radio group is a flex column with a small gap by default; the inline variant switches to a wrapping flex row with a slightly larger gap. Each radio label row is a flex container with centered items, a small gap, and a pointer cursor. Disabled radio inputs are shown at reduced opacity with a default (not-allowed-style) cursor.
120
+
121
+ ### Card Variant
122
+
123
+ | Property | Value |
124
+ | -------- | ----------------------------------------------------------------------- |
125
+ | Layout | CSS Grid: `repeat(auto-fit, minmax(min(200px, 100%), 1fr))`, gap `1rem` |
126
+ | Card | Elevated card with click handler that activates the radio |
127
+ | Heading | Heading element with no top/bottom margin above grid |
128
+
129
+ ## Edge Cases & Special Logic
130
+
131
+ - Options are loaded synchronously via the project's utility helper on every render — no async fetching.
132
+ - `theSelectedButton` tracks the selected key locally and syncs from the `value` input via a lifecycle effect.
133
+ - Card variant uses a state update callback to inform parent when a radio card is selected.
134
+
135
+ ## Dependencies
136
+
137
+ - The project's utility helpers — for loading option lists.
138
+ - The project's event-commit utility.
139
+ - The project's component registry, resolving `FieldValueList` — for display modes.
140
+ - The project's component registry, resolving `SelectableCard` — for card variant.
141
+
142
+ ## Design System Mapping
143
+
144
+ **UI control type:** Radio button group (single selection).
145
+
146
+ When implementing in a specific design system, map the following:
147
+
148
+ - **Radio group** → use the DS's radio group component with individual radio options
149
+ - **Inline layout** → render as a horizontal row when `inline` is true
150
+ - **Card variant** → delegate to the `SelectableCard` component in a CSS grid
151
+ - **Group wrapper** → use the DS's form control with legend/label, error state, and helper text
152
+ - **Option labels** → localize via `pConn.getLocalizedValue()` before display
153
+ - **Read-only** → disable radio inputs (do NOT use a separate read-only component)
@@ -0,0 +1,117 @@
1
+ # Skill: RichText
2
+
3
+ Rich text editor field with HTML content support, binds to a Pega case property.
4
+
5
+ > **Prerequisite skill:** [`field-components.md`](../field-components.md) — covers architecture, input contract, display modes, event handling, and registration patterns common to ALL field components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a rich text (WYSIWYG) editor for HTML content. Uses a registry-resolved `RichTextEditor` component. Handles both read-only and editable states. Commits HTML content on blur by reading from the editor's internal instance reference.
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `RichText`
16
+ - **Type / Subtype:** `Field` / `Text-RichText`
17
+ - **Registration key:** `RichText` (in the project's component map)
18
+
19
+ ## Inputs (component-specific)
20
+
21
+ | Name | Type | Description |
22
+ | ----------------- | ------------------- | ---------------------------------------------- |
23
+ | `additionalProps` | `object` (optional) | Extra inputs forwarded to the `RichTextEditor` |
24
+
25
+ All other inputs come from the project's field input contract (see prerequisite skill).
26
+
27
+ ## Implementation Structure
28
+
29
+ Follow this exact structure. The `RichTextEditor` is resolved from the registry — it wraps whatever WYSIWYG library you choose.
30
+
31
+ **Module Setup:** The component depends on the project's component registry (to resolve `FieldValueList` and `RichTextEditor`), the project's event-commit utility, and a companion stylesheet for editor theming. Define the input contract as an extension of the project's field input contract, adding an optional `additionalProps` field.
32
+
33
+ **Main Component Logic** — steps in order:
34
+
35
+ 1. **Registry lookups** — resolve `FieldValueList` and `RichTextEditor` via the project's component registry.
36
+ 2. **Receive inputs** — `getPConnect`, `value`, `placeholder`, `validatemessage`, `label`, `hideLabel`, `helperText`, `testId`, `displayMode`, `additionalProps`; also obtain the PConnect instance and create an instance reference for the editor (initialized to `null`).
37
+ 3. **Input coercion** — Pega may pass `readOnly`, `required`, and `disabled` as the strings `'true'`/`'false'` rather than booleans; map each to a real boolean by checking `prop === true || (typeof prop === 'string' && prop === 'true')`.
38
+ 4. **Derived** — `helperTextToDisplay = validatemessage || helperText`.
39
+ 5. **Display mode returns** (note the `isHtml` flag) — `DISPLAY_ONLY` and `STACKED_LARGE_VAL` (the latter with a stacked variant) both return `FieldValueList` with `value` and `isHtml` set.
40
+ 6. **Read-only render** (no change/blur handlers) — render `RichTextEditor` with `additionalProps` spread, plus `label`, `labelHidden` set to `hideLabel`, `defaultValue` set to `value`, `testId`, `info` set to `helperTextToDisplay`, the editor instance reference, and `readOnly`.
41
+ 7. **Editable handlers** — obtain the actions API from PConnect; set a local `status` variable to `'error'` when `validatemessage !== ''`; the change handler clears error messages (via `pConn.clearErrorMessages({ property, category: '', context: '' })`, where `property` is the bound property name) when `status === 'error'`; the blur handler reads the HTML content from the editor instance reference (via its `getContent({ format: 'html' })` method) and commits it via the project's event-commit utility with event type `'changeNblur'`, the property name, and the HTML content.
42
+ 8. **Editable render** — render `RichTextEditor` with `additionalProps` spread, plus `label`, `labelHidden` set to `hideLabel`, `info` set to `helperTextToDisplay`, `defaultValue` set to `value`, `placeholder`, `disabled`, `required`, `testId`, the editor instance reference, `error` set to `status === 'error'`, the blur handler, and the change handler.
43
+
44
+ ## Behavioral Contract
45
+
46
+ 1. **Editor instance reference:** Maintain an instance reference for the editor — the editor exposes its content via the reference's `getContent({ format: 'html' })` method.
47
+ 2. **No local state** — unlike text inputs, value is NOT tracked in local state. The editor manages its own internal content via `defaultValue`.
48
+ 3. **Input coercion:** `readOnly`, `required`, `disabled` must be coerced to booleans by mapping each value to `prop === true || (typeof prop === 'string' && prop === 'true')`.
49
+ 4. **Editable mode:**
50
+ - Track `status` for error state.
51
+ - **On change:** If `status === 'error'`, clear error messages via `pConn.clearErrorMessages({ property, category: '', context: '' })`.
52
+ - **On blur:** Read HTML from the editor instance reference via its `getContent({ format: 'html' })` method and commit it via the project's event-commit utility with event type `'changeNblur'`, the property name, and the HTML content.
53
+ 5. **Read-only mode:** Render `RichTextEditor` with `readOnly` flag only — no change/blur handlers.
54
+ 6. **`RichTextEditor` component:** Resolved via the project's component registry. This is a design-system extension component that wraps the actual WYSIWYG library (e.g., TinyMCE).
55
+
56
+ ### Editable RichTextEditor inputs
57
+
58
+ Spread `additionalProps` first, then pass `label`, `labelHidden` set to `hideLabel`, `info` set to `helperTextToDisplay`, `defaultValue` set to `value`, `placeholder`, `disabled`, `required`, `testId`, the editor instance reference, `error` set to `status === 'error'`, the blur handler, and the change handler.
59
+
60
+ ### Read-only RichTextEditor inputs
61
+
62
+ Spread `additionalProps` first, then pass `label`, `labelHidden` set to `hideLabel`, `defaultValue` set to `value`, `testId`, `info` set to `helperTextToDisplay`, the editor instance reference, and `readOnly`.
63
+
64
+ ## Display Mode Rendering
65
+
66
+ Display modes pass `isHtml` to render HTML content safely:
67
+
68
+ - **`DISPLAY_ONLY`:** Render `FieldValueList` with `name` set to `label` (or empty when `hideLabel` is true), `value`, and `isHtml` set.
69
+ - **`STACKED_LARGE_VAL`:** Render `FieldValueList` the same way, with a stacked layout variant and `isHtml` set.
70
+
71
+ ## Read-Only Rendering
72
+
73
+ Render `RichTextEditor` with `readOnly` flag. Uses the same editor instance reference.
74
+
75
+ ## Visual Specifications
76
+
77
+ The visual appearance of the rich text editor depends on the underlying `RichTextEditor` implementation. The reference implementation uses editor theming via CSS variables, imported from a companion stylesheet: the toolbar and primary toolbar background use `--app-background-color`; toolbar buttons use `--app-text-color` for their icon color, and enabled/active toolbar buttons use `--app-primary-color` as background with white text; dialogs use `--modal-top-color` for background, `--app-text-color` for text, a 1px border in `--modal-border-color`, 20px padding, and a box shadow using `--modal-box-shadow-color`; the dialog header shares the same background/text colors with medium font weight and a bottom border in `--modal-border-color`.
78
+
79
+ **Note:** Import the companion stylesheet in the component file. The CSS variables (`--app-background-color`, `--app-text-color`, etc.) are set by the application theme.
80
+
81
+ When implementing with a different design system:
82
+
83
+ - Custom CSS for toolbar theming may be needed
84
+ - The editor container should be full-width
85
+ - Minimum height: ~200px for a usable editing area
86
+
87
+ ## Edge Cases & Special Logic
88
+
89
+ - **Input coercion to boolean:** Pega may pass these inputs as strings (`'true'`/`'false'`) — always coerce.
90
+ - **On blur, NOT on change:** Content is committed to the store only on blur (when user leaves the editor), not on every keystroke.
91
+ - **Error clearing:** When `status === 'error'`, the change handler clears the error message from Pega so it doesn't persist after the user starts editing.
92
+ - **`editorRef.current.getContent`:** This method is specific to the TinyMCE API. For other rich text libraries, use the equivalent method to get HTML content.
93
+ - **`FieldValueList` with `isHtml`:** The display mode renders HTML — ensure XSS protection in the `FieldValueList` component (use the framework's trusted HTML injection mechanism with proper sanitization).
94
+
95
+ ## Dependencies
96
+
97
+ - The project's component registry, resolving `RichTextEditor` — the actual editor widget (e.g., TinyMCE wrapper).
98
+ - The project's component registry, resolving `FieldValueList` — for display modes.
99
+ - The project's event-commit utility.
100
+ - A companion stylesheet for editor toolbar theming.
101
+
102
+ **For other rich text editors:**
103
+
104
+ - Any WYSIWYG editor that exposes a method to get HTML content from an instance reference.
105
+ - Examples: Quill, Slate.js, CKEditor, Tiptap.
106
+
107
+ ## Design System Mapping
108
+
109
+ **UI control type:** WYSIWYG rich text editor (HTML content).
110
+
111
+ When implementing in a specific design system, map the following:
112
+
113
+ - **Rich text editor** → resolve the `RichTextEditor` component from the project's component registry
114
+ - **Read-only** → pass the `readOnly` flag to the editor, which renders as static HTML display
115
+ - **Display modes** → render `FieldValueList` with `isHtml` set for HTML content
116
+ - **Blur commit** → read HTML from the editor's instance reference on blur and commit to store
117
+ - **Theming** → import a companion stylesheet to theme the editor toolbar using CSS variables
@@ -0,0 +1,95 @@
1
+ # Skill: ScalarList
2
+
3
+ Read-only display component that renders a list of scalar values by creating a child component for each item.
4
+
5
+ > **Prerequisite skill:** [`field-components.md`](../field-components.md) — covers architecture, input contract, display modes, event handling, and registration patterns common to ALL field components.
6
+
7
+ ---
8
+
9
+ ## Component Purpose
10
+
11
+ Renders a list of scalar (primitive) values by dynamically creating a child component of a specified type for each item. Used for read-only display of list-type properties. Not an editable input.
12
+
13
+ ## Pega Metadata
14
+
15
+ - **Pega Name:** `ScalarList`
16
+ - **Type / Subtype:** `Field` / `ScalarList`
17
+ - **Registration key:** `ScalarList` (in the project's component map)
18
+
19
+ ## Inputs (component-specific)
20
+
21
+ > ScalarList uses the project's base component interface (NOT the field input contract) because its `value` is an array, not a string.
22
+
23
+ | Prop | Type | Description |
24
+ | ---------------- | --------- | ---------------------------------------------------------------------------- |
25
+ | `value` | `any[]` | Array of scalar values to display |
26
+ | `componentType` | `string` | The Pega component type to use for each item (e.g., `'TextInput'`, `'Date'`) |
27
+ | `label` | `string` | Field label |
28
+ | `displayMode` | `string` | Display mode |
29
+ | `hideLabel` | `boolean` | Whether to hide the label |
30
+ | `displayInModal` | `boolean` | Whether this is displayed in a modal context |
31
+
32
+ All remaining inputs are forwarded to each child component.
33
+
34
+ ## Implementation Structure
35
+
36
+ Read-only display component — no state, no event handling.
37
+
38
+ **Module Setup:** The component depends on the project's component registry (to resolve `FieldValueList`). Define the input contract as an extension of the project's base component interface (not the field input contract) with `displayInModal`, `hideLabel`, `value` (array), `componentType`, `label`, and `displayMode` fields.
39
+
40
+ **Local sub-component `CommaSeparatedList`:** renders the given items as inline elements inside an unstyled list (no padding, no margin) — despite the name, there is no comma separator; items are simply adjacent inline elements.
41
+
42
+ **Main Component Logic** — steps in order:
43
+
44
+ 1. **Registry lookup** — resolve `FieldValueList` via the project's component registry.
45
+ 2. **Receive inputs** — `label`, `getPConnect`, `componentType`, `value` (aliased to `scalarValues`), `displayMode`, `hideLabel`, and the remaining inputs collected into `restInputs` for forwarding to each child.
46
+ 3. **Create child components for each scalar value** — map each entry in `scalarValues` to a child component created via `getPConnect().createComponent(...)`, passing a config object of `type: componentType` and a `config` object containing `value: scalarValue`, `displayMode: 'DISPLAY_ONLY'`, `label`, the spread remaining inputs, and `readOnly: 'true'`; the second, third, and fourth arguments to `createComponent` are an empty string, empty string, and empty object respectively (per its type signature).
47
+ 4. **Display mode: `STACKED_LARGE_VAL` or `DISPLAY_ONLY`** — return the items wrapped directly in a `<div>` containing `<CommaSeparatedList items={items} />`, with no `FieldValueList` wrapper.
48
+ 5. **Default** — wrap in `FieldValueList` with `name={hideLabel ? '' : label}`, `value={<CommaSeparatedList items={items} />}`, and `variant="stacked"`.
49
+
50
+ ## Behavioral Contract
51
+
52
+ 1. **No state, no event handling** — purely display/read-only.
53
+ 2. **Item rendering:** Map each value in `scalarValues` to a component via `getPConnect().createComponent(...)`, passing `type: componentType` and a `config` object with `value: scalarValue`, `displayMode: 'DISPLAY_ONLY'`, `label`, the spread remaining inputs, and `readOnly: 'true'`; the remaining three call arguments are an empty string, empty string, and empty object.
54
+ 3. **`CommaSeparatedList` sub-component:** A local component that renders items as inline elements inside a list with no list styling (zero padding, zero margin).
55
+
56
+ ## Display Mode Rendering
57
+
58
+ **`STACKED_LARGE_VAL` or `DISPLAY_ONLY`:** the items are rendered directly inside a `<div>` wrapping a `<CommaSeparatedList items={items} />` — no `FieldValueList` wrapper in these modes.
59
+
60
+ **Default (no display mode):** wrap in `FieldValueList` with `name={hideLabel ? '' : label}`, `value={<CommaSeparatedList items={items} />}`, and `variant='stacked'`.
61
+
62
+ ## Visual Specifications
63
+
64
+ | Property | Value |
65
+ | ------------ | ----------------------------------------------------------------- |
66
+ | List style | No bullets, no padding, no margin on `<ul>` |
67
+ | Item display | Each item rendered as `<span>` (inline) |
68
+ | Separator | Items are adjacent spans (no comma separator despite the name) |
69
+ | Layout | Vertical stack when wrapped in `FieldValueList variant='stacked'` |
70
+
71
+ **Visual-only styling notes:** The `<ul>` has no bullet markers and zero padding/margin. Each item span is rendered inline with no additional styling.
72
+
73
+ ## Edge Cases & Special Logic
74
+
75
+ - `scalarValues` may be `undefined` — the `?.map()` safely returns `undefined`; ensure null-check before rendering.
76
+ - Each child component is created with `displayMode: 'DISPLAY_ONLY'` and `readOnly: 'true'` (as string) — the read-only is passed as a string, not boolean.
77
+ - `restInputs` includes all remaining inputs from the parent beyond the destructured ones — these are forwarded to each child component config.
78
+ - `createComponent` takes 4 args — 2nd, 3rd, 4th are empty string/object as the typedef marks them optional.
79
+
80
+ ## Dependencies
81
+
82
+ - The project's component registry, resolving `FieldValueList` — for default display.
83
+ - `getPConnect().createComponent()` — for creating each child component.
84
+ - No event-commit utility — read-only component.
85
+
86
+ ## Design System Mapping
87
+
88
+ **UI control type:** Read-only list of scalar values.
89
+
90
+ When implementing in a specific design system, map the following:
91
+
92
+ - **List container** → an unstyled list element (no bullets, no padding/margin)
93
+ - **List items** → inline elements for each rendered child component
94
+ - **Default display** → wrap in `FieldValueList` with a stacked variant
95
+ - **Display modes** → render the list directly without `FieldValueList` wrapper