@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.
- package/README.md +10 -3
- package/dist/index.js +977 -92
- package/package.json +1 -1
- package/templates/angular-sdk-reference/package.json +12 -12
- package/templates/angular-sdk-reference/tsconfig.json +1 -1
- package/templates/react-native-sdk-reference/.claude/settings.json +5 -0
- package/templates/react-native-sdk-reference/.prettierignore +17 -0
- package/templates/react-native-sdk-reference/.vscode/extensions.json +1 -0
- package/templates/react-native-sdk-reference/.vscode/settings.json +7 -0
- package/templates/react-native-sdk-reference/AGENTS.md +3 -0
- package/templates/react-native-sdk-reference/CLAUDE.md +1 -0
- package/templates/react-native-sdk-reference/README.md +56 -0
- package/templates/react-native-sdk-reference/app.json +40 -5
- package/templates/react-native-sdk-reference/assets/expo.icon/Assets/expo-symbol 2.svg +3 -0
- package/templates/react-native-sdk-reference/assets/expo.icon/Assets/grid.png +0 -0
- package/templates/react-native-sdk-reference/assets/expo.icon/icon.json +35 -0
- package/templates/react-native-sdk-reference/assets/icons/bell.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/clock.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/cross.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/donut.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/gear.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/globe.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/internet.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/music.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/right-arrow.png +0 -0
- package/templates/react-native-sdk-reference/assets/icons/speed.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/MediaCo.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/adaptive-icon.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/android-icon-background.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/android-icon-foreground.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/android-icon-monochrome.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/expo-badge-white.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/expo-badge.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/expo-logo.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/favicon.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/icon.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/logo-glow.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/partial-react-logo.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/react-logo.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/react-logo@2x.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/react-logo@3x.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/splash-icon.png +0 -0
- package/templates/react-native-sdk-reference/assets/images/tutorial-web.png +0 -0
- package/templates/react-native-sdk-reference/eslint.config.mjs +68 -0
- package/templates/react-native-sdk-reference/package.json +59 -14
- package/templates/react-native-sdk-reference/pega-constellationjs-0.26.3.tgz +0 -0
- package/templates/react-native-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
- package/templates/react-native-sdk-reference/pega-sdk-types-0.1.0.tgz +0 -0
- package/templates/react-native-sdk-reference/sdk-config.json +31 -9
- package/templates/react-native-sdk-reference/src/app/_layout.tsx +38 -0
- package/templates/react-native-sdk-reference/src/app/home/_layout.tsx +39 -0
- package/templates/react-native-sdk-reference/src/app/home/contact.tsx +11 -0
- package/templates/react-native-sdk-reference/src/app/home/index.tsx +36 -0
- package/templates/react-native-sdk-reference/src/app/home/shop.tsx +11 -0
- package/templates/react-native-sdk-reference/src/app/home/your-services.tsx +11 -0
- package/templates/react-native-sdk-reference/src/app/index.tsx +72 -0
- package/templates/react-native-sdk-reference/src/app/workarea.tsx +135 -0
- package/templates/react-native-sdk-reference/src/bridge/Context/StoreContext.ts +4 -0
- package/templates/react-native-sdk-reference/src/bridge/RootComponent.tsx +12 -0
- package/templates/react-native-sdk-reference/src/bridge/react_pconnect.jsx +334 -0
- package/templates/react-native-sdk-reference/src/components/common/DisplayField.tsx +29 -0
- package/templates/react-native-sdk-reference/src/components/common/FormFieldWrapper.tsx +5 -0
- package/templates/react-native-sdk-reference/src/components/common/HelperText.tsx +11 -0
- package/templates/react-native-sdk-reference/src/components/common/LabelText.tsx +22 -0
- package/templates/react-native-sdk-reference/src/components/common/inputTheme.ts +17 -0
- package/templates/react-native-sdk-reference/src/components/design-system/AutoComplete.tsx +126 -0
- package/templates/react-native-sdk-reference/src/components/design-system/FieldGroup.tsx +72 -0
- package/templates/react-native-sdk-reference/src/components/design-system/Radio.tsx +61 -0
- package/templates/react-native-sdk-reference/src/components/field/AutoComplete/AutoComplete.tsx +196 -0
- package/templates/react-native-sdk-reference/src/components/field/AutoComplete/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Checkbox/Checkbox.tsx +89 -0
- package/templates/react-native-sdk-reference/src/components/field/Checkbox/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Currency/Currency.tsx +84 -0
- package/templates/react-native-sdk-reference/src/components/field/Currency/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Date/Date.tsx +94 -0
- package/templates/react-native-sdk-reference/src/components/field/Date/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Dropdown/Dropdown.tsx +211 -0
- package/templates/react-native-sdk-reference/src/components/field/Dropdown/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Email/Email.tsx +81 -0
- package/templates/react-native-sdk-reference/src/components/field/Email/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Group/Group.tsx +47 -0
- package/templates/react-native-sdk-reference/src/components/field/Group/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Integer/Integer.tsx +84 -0
- package/templates/react-native-sdk-reference/src/components/field/Integer/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/Phone/Phone.tsx +85 -0
- package/templates/react-native-sdk-reference/src/components/field/Phone/index.ts +1 -0
- package/templates/react-native-sdk-reference/src/components/field/RadioButtons/RadioButtons.tsx +118 -0
- package/templates/react-native-sdk-reference/src/components/field/RadioButtons/index.ts +1 -0
- package/templates/react-native-sdk-reference/src/components/field/TextArea/TextArea.tsx +86 -0
- package/templates/react-native-sdk-reference/src/components/field/TextArea/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/TextInput/TextInput.tsx +84 -0
- package/templates/react-native-sdk-reference/src/components/field/TextInput/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/field/URL/URL.tsx +86 -0
- package/templates/react-native-sdk-reference/src/components/field/URL/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/helpers/data_page.ts +20 -0
- package/templates/react-native-sdk-reference/src/components/helpers/event-utils.ts +20 -0
- package/templates/react-native-sdk-reference/src/components/helpers/instructions-utils.ts +57 -0
- package/templates/react-native-sdk-reference/src/components/helpers/state-utils.tsx +46 -0
- package/templates/react-native-sdk-reference/src/components/helpers/template-utils.ts +75 -0
- package/templates/react-native-sdk-reference/src/components/helpers/utils.ts +339 -0
- package/templates/react-native-sdk-reference/src/components/infra/ActionButtons/ActionButtons.tsx +63 -0
- package/templates/react-native-sdk-reference/src/components/infra/ActionButtons/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Assignment/Assignment.tsx +348 -0
- package/templates/react-native-sdk-reference/src/components/infra/Assignment/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/AssignmentCard/AssignmentCard.tsx +56 -0
- package/templates/react-native-sdk-reference/src/components/infra/AssignmentCard/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/FlowContainer.tsx +57 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/helpers.ts +137 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/FlowContainer/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/RootContainer/RootContainer.tsx +52 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/RootContainer/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/SimpleView/helper.ts +128 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/SimpleView/index.tsx +59 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/ViewContainer.tsx +31 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/helper.ts +39 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/ViewContainer/index.ts +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Containers/helper.ts +9 -0
- package/templates/react-native-sdk-reference/src/components/infra/ErrorBoundary/ErrorBoundary.tsx +53 -0
- package/templates/react-native-sdk-reference/src/components/infra/ErrorBoundary/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/MultiStep/MultiStep.tsx +24 -0
- package/templates/react-native-sdk-reference/src/components/infra/MultiStep/index.ts +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Reference/Reference.tsx +68 -0
- package/templates/react-native-sdk-reference/src/components/infra/Reference/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/Reference/utils.ts +16 -0
- package/templates/react-native-sdk-reference/src/components/infra/Region/Region.tsx +10 -0
- package/templates/react-native-sdk-reference/src/components/infra/Region/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/infra/View/View.tsx +49 -0
- package/templates/react-native-sdk-reference/src/components/template/DefaultForm/DefaultForm.tsx +38 -0
- package/templates/react-native-sdk-reference/src/components/template/DefaultForm/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/template/DefaultForm/utils/index.ts +28 -0
- package/templates/react-native-sdk-reference/src/components/template/Details/Details.tsx +82 -0
- package/templates/react-native-sdk-reference/src/components/template/Details/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/components/template/OneColumn/OneColumn.tsx +29 -0
- package/templates/react-native-sdk-reference/src/components/template/OneColumn/index.tsx +1 -0
- package/templates/react-native-sdk-reference/src/context/LoaderContext.tsx +42 -0
- package/templates/react-native-sdk-reference/src/mediaco/AdvBanner.tsx +62 -0
- package/templates/react-native-sdk-reference/src/mediaco/Header.tsx +60 -0
- package/templates/react-native-sdk-reference/src/mediaco/HomeScreen.tsx +78 -0
- package/templates/react-native-sdk-reference/src/mediaco/QuickActions.tsx +68 -0
- package/templates/react-native-sdk-reference/src/mediaco/ResolutionScreen.tsx +48 -0
- package/templates/react-native-sdk-reference/src/mediaco/SafeArea.tsx +11 -0
- package/templates/react-native-sdk-reference/src/mediaco/TabBar.tsx +102 -0
- package/templates/react-native-sdk-reference/src/mediaco/YourServices.tsx +90 -0
- package/templates/react-native-sdk-reference/src/sdk-pega-component-map.ts +64 -0
- package/templates/react-native-sdk-reference/src/types/PConnProps.d.ts +41 -0
- package/templates/react-native-sdk-reference/src/utils/auth.ts +62 -0
- package/templates/react-native-sdk-reference/src/utils/init-pcore.ts +37 -0
- package/templates/react-native-sdk-reference/src/utils/pcore-polyfills.ts +66 -0
- package/templates/react-native-sdk-reference/tsconfig.json +9 -8
- package/templates/react-sdk-reference/.ai-common/agents/embedded-flow-expert.md +171 -0
- package/templates/react-sdk-reference/{.github/agents/implementation-expert.agent.md → .ai-common/agents/implementation-expert.md} +44 -48
- package/templates/react-sdk-reference/.ai-common/global/ai-agent-instructions-embedded.md +119 -0
- package/templates/react-sdk-reference/.ai-common/global/ai-agent-instructions.md +192 -0
- package/templates/react-sdk-reference/.ai-common/instructions/component-map.md +35 -0
- package/templates/react-sdk-reference/.ai-common/instructions/dse-component.md +47 -0
- package/templates/react-sdk-reference/.ai-common/instructions/embedded-component.md +134 -0
- package/templates/react-sdk-reference/.ai-common/instructions/field-component.md +50 -0
- package/templates/react-sdk-reference/.ai-common/instructions/template-component.md +43 -0
- package/templates/react-sdk-reference/.ai-common/instructions/widget-component.md +45 -0
- package/templates/react-sdk-reference/.ai-common/prompts/add-component.md +193 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/prompts/component-manifest.json +106 -2
- package/templates/react-sdk-reference/.ai-common/prompts/embedded-component-manifest.md +155 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-all-components.md +358 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-dse-components.md +165 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-embedded-components.md +315 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-field-components.md +190 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-template-components.md +227 -0
- package/templates/react-sdk-reference/.ai-common/prompts/generate-widget-components.md +172 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/prompts/identify-components.md +4 -0
- package/templates/react-sdk-reference/{.cursor/rules/prompts/replace-design-system.mdrules → .ai-common/prompts/replace-design-system.md} +2 -3
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/design-system-extension-skills/AlertBanner.md +61 -25
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/Banner.md +176 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/CaseSummaryFields.md +180 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/DetailsFields.md +180 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldGroup.md +153 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldGroupList.md +136 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/FieldValueList.md +140 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/Operator.md +85 -41
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/Pulse.md +97 -0
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/RichTextEditor.md +226 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/design-system-extension-skills/WssQuickCreate.md +35 -20
- package/templates/react-sdk-reference/.ai-common/skills/design-system-extension.md +169 -0
- package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/analyze-customer-repo.md +130 -0
- package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/authenticate.md +311 -0
- package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/run-and-verify-integration.md +156 -0
- package/templates/react-sdk-reference/.ai-common/skills/embedded-flow/wire-integration.md +476 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-components.md +190 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/AutoComplete.md +157 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/CancelAlert.md +178 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Checkbox.md +189 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Currency.md +136 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Date.md +126 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/DateTime.md +115 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Decimal.md +119 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Dropdown.md +136 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Email.md +99 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Group.md +88 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Integer.md +102 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Location.md +142 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/Multiselect.md +42 -53
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/ObjectReference.md +36 -60
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Percentage.md +113 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Phone.md +100 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/RadioButtons.md +153 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/RichText.md +117 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/ScalarList.md +95 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/SelectableCard.md +155 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/SemanticLink.md +35 -57
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/TextArea.md +109 -0
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/field-skills/TextContent.md +27 -52
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/TextInput.md +112 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/Time.md +102 -0
- package/templates/react-sdk-reference/.ai-common/skills/field-skills/URL.md +96 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/field-skills/UserReference.md +41 -78
- package/templates/react-sdk-reference/.ai-common/skills/infra-components.md +165 -0
- package/templates/react-sdk-reference/.ai-common/skills/infra-skills/ActionButtons.md +122 -0
- package/templates/react-sdk-reference/.ai-common/skills/infra-skills/MultiStep.md +178 -0
- package/templates/react-sdk-reference/.ai-common/skills/infra-skills/Stages.md +140 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-components.md +198 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/AdvancedSearch.md +126 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/AppShell.md +160 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/BannerPage.md +90 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseSummary.md +129 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseView.md +196 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/CaseViewActionsMenu.md +157 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/Confirmation.md +149 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/DataReference.md +46 -31
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/DefaultForm.md +141 -0
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/DefaultPage.md +40 -34
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/Details.md +96 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsSubTabs.md +103 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsThreeColumn.md +85 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/DetailsTwoColumn.md +77 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/DynamicTabs.md +103 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/FieldGroupTemplate.md +130 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/HierarchicalForm.md +200 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/InlineDashboard.md +110 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/InlineDashboardPage.md +105 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/ListPage.md +21 -16
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/ListView.md +234 -0
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/MultiReferenceReadOnly.md +18 -23
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/NarrowWide.md +161 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/OneColumn.md +114 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/PromotedFilters.md +132 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/SelfServiceCaseView.md +173 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/SimpleTable.md +44 -24
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/SingleReferenceReadOnly.md +103 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/SubTabs.md +89 -0
- package/templates/react-sdk-reference/.ai-common/skills/template-skills/TwoColumn.md +133 -0
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/template-skills/WideNarrow.md +36 -43
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/template-skills/WssNavBar.md +26 -45
- package/templates/react-sdk-reference/.ai-common/skills/widget-components.md +124 -0
- package/templates/react-sdk-reference/.ai-common/skills/widget-skills/AppAnnouncement.md +94 -0
- package/templates/react-sdk-reference/.ai-common/skills/widget-skills/Attachment.md +163 -0
- package/templates/react-sdk-reference/.ai-common/skills/widget-skills/CaseHistory.md +90 -0
- package/templates/react-sdk-reference/{.github → .ai-common}/skills/widget-skills/FileUtility.md +68 -62
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/Followers.md +24 -19
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/QuickCreate.md +27 -44
- package/templates/react-sdk-reference/{.claude → .ai-common}/skills/widget-skills/SummaryItem.md +35 -61
- package/templates/react-sdk-reference/.ai-common/skills/widget-skills/ToDo.md +261 -0
- package/templates/react-sdk-reference/package.json +1 -1
- package/templates/react-sdk-reference/package.minimal.json +29 -0
- package/templates/react-sdk-reference/pega-auth-0.2.44.tgz +0 -0
- package/templates/react-sdk-reference/pega-sdk-react-0.1.0.tgz +0 -0
- package/templates/react-sdk-reference/src/AppProviders.tsx +17 -0
- package/templates/react-sdk-reference/src/MashupApp.tsx +8 -19
- package/templates/react-sdk-reference/src/PortalApp.tsx +6 -17
- package/templates/react-sdk-reference/src/components/helpers/formatters/index.ts +13 -3
- package/templates/react-native-sdk-reference/.github/AGENTS.md +0 -23
- package/templates/react-native-sdk-reference/.github/copilot-instructions.md +0 -40
- package/templates/react-native-sdk-reference/.github/skills/pega-sdk-component.md +0 -48
- package/templates/react-native-sdk-reference/App.tsx +0 -49
- package/templates/react-sdk-reference/.claude/instructions/component-map.md +0 -38
- package/templates/react-sdk-reference/.claude/instructions/dse-component.md +0 -75
- package/templates/react-sdk-reference/.claude/instructions/field-component.md +0 -75
- package/templates/react-sdk-reference/.claude/instructions/template-component.md +0 -93
- package/templates/react-sdk-reference/.claude/instructions/widget-component.md +0 -88
- package/templates/react-sdk-reference/.claude/prompts/add-component.md +0 -152
- package/templates/react-sdk-reference/.claude/prompts/generate-all-components.md +0 -158
- package/templates/react-sdk-reference/.claude/prompts/generate-dse-components.md +0 -140
- package/templates/react-sdk-reference/.claude/prompts/generate-field-components.md +0 -153
- package/templates/react-sdk-reference/.claude/prompts/generate-template-components.md +0 -165
- package/templates/react-sdk-reference/.claude/prompts/generate-widget-components.md +0 -138
- package/templates/react-sdk-reference/.claude/prompts/replace-design-system.md +0 -519
- package/templates/react-sdk-reference/.claude/skills/component-contracts.md +0 -140
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/AlertBanner.md +0 -137
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Banner.md +0 -152
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/CaseSummaryFields.md +0 -159
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/DetailsFields.md +0 -148
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroup.md +0 -134
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldGroupList.md +0 -113
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/FieldValueList.md +0 -118
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/Pulse.md +0 -85
- package/templates/react-sdk-reference/.claude/skills/design-system-extension-skills/RichTextEditor.md +0 -232
- package/templates/react-sdk-reference/.claude/skills/design-system-extension.md +0 -291
- package/templates/react-sdk-reference/.claude/skills/field-components.md +0 -295
- package/templates/react-sdk-reference/.claude/skills/field-skills/AutoComplete.md +0 -113
- package/templates/react-sdk-reference/.claude/skills/field-skills/CancelAlert.md +0 -211
- package/templates/react-sdk-reference/.claude/skills/field-skills/Checkbox.md +0 -175
- package/templates/react-sdk-reference/.claude/skills/field-skills/Currency.md +0 -109
- package/templates/react-sdk-reference/.claude/skills/field-skills/Date.md +0 -101
- package/templates/react-sdk-reference/.claude/skills/field-skills/DateTime.md +0 -106
- package/templates/react-sdk-reference/.claude/skills/field-skills/Decimal.md +0 -99
- package/templates/react-sdk-reference/.claude/skills/field-skills/Dropdown.md +0 -134
- package/templates/react-sdk-reference/.claude/skills/field-skills/Email.md +0 -109
- package/templates/react-sdk-reference/.claude/skills/field-skills/Group.md +0 -96
- package/templates/react-sdk-reference/.claude/skills/field-skills/Integer.md +0 -88
- package/templates/react-sdk-reference/.claude/skills/field-skills/Location.md +0 -145
- package/templates/react-sdk-reference/.claude/skills/field-skills/Percentage.md +0 -93
- package/templates/react-sdk-reference/.claude/skills/field-skills/Phone.md +0 -129
- package/templates/react-sdk-reference/.claude/skills/field-skills/RadioButtons.md +0 -167
- package/templates/react-sdk-reference/.claude/skills/field-skills/RichText.md +0 -149
- package/templates/react-sdk-reference/.claude/skills/field-skills/ScalarList.md +0 -134
- package/templates/react-sdk-reference/.claude/skills/field-skills/SelectableCard.md +0 -231
- package/templates/react-sdk-reference/.claude/skills/field-skills/TextArea.md +0 -98
- package/templates/react-sdk-reference/.claude/skills/field-skills/TextContent.md +0 -117
- package/templates/react-sdk-reference/.claude/skills/field-skills/TextInput.md +0 -107
- package/templates/react-sdk-reference/.claude/skills/field-skills/Time.md +0 -89
- package/templates/react-sdk-reference/.claude/skills/field-skills/URL.md +0 -86
- package/templates/react-sdk-reference/.claude/skills/template-components.md +0 -321
- package/templates/react-sdk-reference/.claude/skills/template-skills/AdvancedSearch.md +0 -150
- package/templates/react-sdk-reference/.claude/skills/template-skills/AppShell.md +0 -124
- package/templates/react-sdk-reference/.claude/skills/template-skills/BannerPage.md +0 -86
- package/templates/react-sdk-reference/.claude/skills/template-skills/CaseSummary.md +0 -106
- package/templates/react-sdk-reference/.claude/skills/template-skills/CaseView.md +0 -137
- package/templates/react-sdk-reference/.claude/skills/template-skills/CaseViewActionsMenu.md +0 -131
- package/templates/react-sdk-reference/.claude/skills/template-skills/Confirmation.md +0 -109
- package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultForm.md +0 -104
- package/templates/react-sdk-reference/.claude/skills/template-skills/DefaultPage.md +0 -112
- package/templates/react-sdk-reference/.claude/skills/template-skills/Details.md +0 -90
- package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsSubTabs.md +0 -97
- package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsThreeColumn.md +0 -80
- package/templates/react-sdk-reference/.claude/skills/template-skills/DetailsTwoColumn.md +0 -80
- package/templates/react-sdk-reference/.claude/skills/template-skills/DynamicTabs.md +0 -106
- package/templates/react-sdk-reference/.claude/skills/template-skills/FieldGroupTemplate.md +0 -112
- package/templates/react-sdk-reference/.claude/skills/template-skills/HierarchicalForm.md +0 -116
- package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboard.md +0 -108
- package/templates/react-sdk-reference/.claude/skills/template-skills/InlineDashboardPage.md +0 -82
- package/templates/react-sdk-reference/.claude/skills/template-skills/ListView.md +0 -142
- package/templates/react-sdk-reference/.claude/skills/template-skills/MultiReferenceReadOnly.md +0 -82
- package/templates/react-sdk-reference/.claude/skills/template-skills/NarrowWide.md +0 -143
- package/templates/react-sdk-reference/.claude/skills/template-skills/OneColumn.md +0 -114
- package/templates/react-sdk-reference/.claude/skills/template-skills/PromotedFilters.md +0 -130
- package/templates/react-sdk-reference/.claude/skills/template-skills/SelfServiceCaseView.md +0 -142
- package/templates/react-sdk-reference/.claude/skills/template-skills/SingleReferenceReadOnly.md +0 -108
- package/templates/react-sdk-reference/.claude/skills/template-skills/SubTabs.md +0 -82
- package/templates/react-sdk-reference/.claude/skills/template-skills/TwoColumn.md +0 -133
- package/templates/react-sdk-reference/.claude/skills/template-skills/WssNavBar.md +0 -139
- package/templates/react-sdk-reference/.claude/skills/widget-components.md +0 -260
- package/templates/react-sdk-reference/.claude/skills/widget-skills/AppAnnouncement.md +0 -84
- package/templates/react-sdk-reference/.claude/skills/widget-skills/Attachment.md +0 -151
- package/templates/react-sdk-reference/.claude/skills/widget-skills/CaseHistory.md +0 -110
- package/templates/react-sdk-reference/.claude/skills/widget-skills/FileUtility.md +0 -206
- package/templates/react-sdk-reference/.claude/skills/widget-skills/ToDo.md +0 -198
- package/templates/react-sdk-reference/.cursor/rules/component-map.mdrules +0 -41
- package/templates/react-sdk-reference/.cursor/rules/dse-component.mdrules +0 -78
- package/templates/react-sdk-reference/.cursor/rules/field-component.mdrules +0 -74
- package/templates/react-sdk-reference/.cursor/rules/pega-sdk.mdrules +0 -247
- package/templates/react-sdk-reference/.cursor/rules/prompts/add-component.mdrules +0 -149
- package/templates/react-sdk-reference/.cursor/rules/prompts/component-manifest.json +0 -193
- package/templates/react-sdk-reference/.cursor/rules/prompts/generate-all-components.mdrules +0 -154
- package/templates/react-sdk-reference/.cursor/rules/prompts/generate-dse-components.mdrules +0 -131
- package/templates/react-sdk-reference/.cursor/rules/prompts/generate-field-components.mdrules +0 -144
- package/templates/react-sdk-reference/.cursor/rules/prompts/generate-template-components.mdrules +0 -156
- package/templates/react-sdk-reference/.cursor/rules/prompts/generate-widget-components.mdrules +0 -129
- package/templates/react-sdk-reference/.cursor/rules/prompts/identify-components.mdrules +0 -110
- package/templates/react-sdk-reference/.cursor/rules/skills/component-contracts.mdrules +0 -145
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/AlertBanner.mdrules +0 -140
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Banner.mdrules +0 -154
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/CaseSummaryFields.mdrules +0 -159
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/DetailsFields.mdrules +0 -149
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroup.mdrules +0 -136
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldGroupList.mdrules +0 -116
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/FieldValueList.mdrules +0 -120
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Operator.mdrules +0 -154
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/Pulse.mdrules +0 -88
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/RichTextEditor.mdrules +0 -211
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension-skills/WssQuickCreate.mdrules +0 -140
- package/templates/react-sdk-reference/.cursor/rules/skills/design-system-extension.mdrules +0 -294
- package/templates/react-sdk-reference/.cursor/rules/skills/field-components.mdrules +0 -299
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/AutoComplete.mdrules +0 -117
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/CancelAlert.mdrules +0 -208
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Checkbox.mdrules +0 -163
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Currency.mdrules +0 -111
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Date.mdrules +0 -104
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/DateTime.mdrules +0 -108
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Decimal.mdrules +0 -103
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Dropdown.mdrules +0 -119
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Email.mdrules +0 -112
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Group.mdrules +0 -95
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Integer.mdrules +0 -92
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Location.mdrules +0 -141
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Multiselect.mdrules +0 -169
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ObjectReference.mdrules +0 -169
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Percentage.mdrules +0 -97
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Phone.mdrules +0 -115
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RadioButtons.mdrules +0 -151
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/RichText.mdrules +0 -143
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/ScalarList.mdrules +0 -129
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SelectableCard.mdrules +0 -221
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/SemanticLink.mdrules +0 -153
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextArea.mdrules +0 -101
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextContent.mdrules +0 -106
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/TextInput.mdrules +0 -109
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/Time.mdrules +0 -93
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/URL.mdrules +0 -90
- package/templates/react-sdk-reference/.cursor/rules/skills/field-skills/UserReference.mdrules +0 -185
- package/templates/react-sdk-reference/.cursor/rules/skills/run-and-verify.mdrules +0 -73
- package/templates/react-sdk-reference/.cursor/rules/skills/template-components.mdrules +0 -327
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AdvancedSearch.mdrules +0 -149
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/AppShell.mdrules +0 -127
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/BannerPage.mdrules +0 -88
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseSummary.mdrules +0 -105
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseView.mdrules +0 -136
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/CaseViewActionsMenu.mdrules +0 -131
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Confirmation.mdrules +0 -112
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DataReference.mdrules +0 -125
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultForm.mdrules +0 -107
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DefaultPage.mdrules +0 -115
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/Details.mdrules +0 -93
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsSubTabs.mdrules +0 -100
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsThreeColumn.mdrules +0 -83
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DetailsTwoColumn.mdrules +0 -83
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/DynamicTabs.mdrules +0 -106
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/FieldGroupTemplate.mdrules +0 -114
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/HierarchicalForm.mdrules +0 -118
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboard.mdrules +0 -109
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/InlineDashboardPage.mdrules +0 -90
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListPage.mdrules +0 -73
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/ListView.mdrules +0 -144
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/MultiReferenceReadOnly.mdrules +0 -85
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/NarrowWide.mdrules +0 -146
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/OneColumn.mdrules +0 -114
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/PromotedFilters.mdrules +0 -129
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SelfServiceCaseView.mdrules +0 -140
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SimpleTable.mdrules +0 -132
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SingleReferenceReadOnly.mdrules +0 -108
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/SubTabs.mdrules +0 -84
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/TwoColumn.mdrules +0 -136
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WideNarrow.mdrules +0 -155
- package/templates/react-sdk-reference/.cursor/rules/skills/template-skills/WssNavBar.mdrules +0 -140
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-components.mdrules +0 -276
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/AppAnnouncement.mdrules +0 -87
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Attachment.mdrules +0 -151
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/CaseHistory.mdrules +0 -112
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/FileUtility.mdrules +0 -205
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/Followers.mdrules +0 -104
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/QuickCreate.mdrules +0 -119
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/SummaryItem.mdrules +0 -172
- package/templates/react-sdk-reference/.cursor/rules/skills/widget-skills/ToDo.mdrules +0 -195
- package/templates/react-sdk-reference/.cursor/rules/template-component.mdrules +0 -95
- package/templates/react-sdk-reference/.cursor/rules/widget-component.mdrules +0 -90
- package/templates/react-sdk-reference/.github/copilot-instructions.md +0 -243
- package/templates/react-sdk-reference/.github/instructions/component-map.instructions.md +0 -40
- package/templates/react-sdk-reference/.github/instructions/dse-component.instructions.md +0 -77
- package/templates/react-sdk-reference/.github/instructions/field-component.instructions.md +0 -77
- package/templates/react-sdk-reference/.github/instructions/template-component.instructions.md +0 -95
- package/templates/react-sdk-reference/.github/instructions/widget-component.instructions.md +0 -90
- package/templates/react-sdk-reference/.github/prompts/add-component.prompt.md +0 -192
- package/templates/react-sdk-reference/.github/prompts/component-manifest.json +0 -193
- package/templates/react-sdk-reference/.github/prompts/generate-all-components.prompt.md +0 -411
- package/templates/react-sdk-reference/.github/prompts/generate-dse-components.prompt.md +0 -205
- package/templates/react-sdk-reference/.github/prompts/generate-field-components.prompt.md +0 -223
- package/templates/react-sdk-reference/.github/prompts/generate-template-components.prompt.md +0 -229
- package/templates/react-sdk-reference/.github/prompts/generate-widget-components.prompt.md +0 -208
- package/templates/react-sdk-reference/.github/prompts/identify-components.prompt.md +0 -110
- package/templates/react-sdk-reference/.github/prompts/replace-design-system.prompt.md +0 -524
- package/templates/react-sdk-reference/.github/skills/component-contracts.md +0 -140
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Banner.md +0 -152
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/CaseSummaryFields.md +0 -159
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/DetailsFields.md +0 -148
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroup.md +0 -134
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldGroupList.md +0 -113
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/FieldValueList.md +0 -118
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Operator.md +0 -155
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/Pulse.md +0 -85
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/RichTextEditor.md +0 -232
- package/templates/react-sdk-reference/.github/skills/design-system-extension-skills/WssQuickCreate.md +0 -137
- package/templates/react-sdk-reference/.github/skills/design-system-extension.md +0 -291
- package/templates/react-sdk-reference/.github/skills/field-components.md +0 -295
- package/templates/react-sdk-reference/.github/skills/field-skills/AutoComplete.md +0 -113
- package/templates/react-sdk-reference/.github/skills/field-skills/CancelAlert.md +0 -211
- package/templates/react-sdk-reference/.github/skills/field-skills/Checkbox.md +0 -175
- package/templates/react-sdk-reference/.github/skills/field-skills/Currency.md +0 -109
- package/templates/react-sdk-reference/.github/skills/field-skills/Date.md +0 -101
- package/templates/react-sdk-reference/.github/skills/field-skills/DateTime.md +0 -106
- package/templates/react-sdk-reference/.github/skills/field-skills/Decimal.md +0 -99
- package/templates/react-sdk-reference/.github/skills/field-skills/Dropdown.md +0 -134
- package/templates/react-sdk-reference/.github/skills/field-skills/Email.md +0 -109
- package/templates/react-sdk-reference/.github/skills/field-skills/Group.md +0 -96
- package/templates/react-sdk-reference/.github/skills/field-skills/Integer.md +0 -88
- package/templates/react-sdk-reference/.github/skills/field-skills/Location.md +0 -145
- package/templates/react-sdk-reference/.github/skills/field-skills/Multiselect.md +0 -188
- package/templates/react-sdk-reference/.github/skills/field-skills/ObjectReference.md +0 -173
- package/templates/react-sdk-reference/.github/skills/field-skills/Percentage.md +0 -93
- package/templates/react-sdk-reference/.github/skills/field-skills/Phone.md +0 -129
- package/templates/react-sdk-reference/.github/skills/field-skills/RadioButtons.md +0 -167
- package/templates/react-sdk-reference/.github/skills/field-skills/RichText.md +0 -149
- package/templates/react-sdk-reference/.github/skills/field-skills/ScalarList.md +0 -134
- package/templates/react-sdk-reference/.github/skills/field-skills/SelectableCard.md +0 -231
- package/templates/react-sdk-reference/.github/skills/field-skills/SemanticLink.md +0 -155
- package/templates/react-sdk-reference/.github/skills/field-skills/TextArea.md +0 -98
- package/templates/react-sdk-reference/.github/skills/field-skills/TextInput.md +0 -107
- package/templates/react-sdk-reference/.github/skills/field-skills/Time.md +0 -89
- package/templates/react-sdk-reference/.github/skills/field-skills/URL.md +0 -86
- package/templates/react-sdk-reference/.github/skills/field-skills/UserReference.md +0 -203
- package/templates/react-sdk-reference/.github/skills/run-and-verify.md +0 -70
- package/templates/react-sdk-reference/.github/skills/template-components.md +0 -321
- package/templates/react-sdk-reference/.github/skills/template-skills/AdvancedSearch.md +0 -150
- package/templates/react-sdk-reference/.github/skills/template-skills/AppShell.md +0 -124
- package/templates/react-sdk-reference/.github/skills/template-skills/BannerPage.md +0 -86
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseSummary.md +0 -106
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseView.md +0 -137
- package/templates/react-sdk-reference/.github/skills/template-skills/CaseViewActionsMenu.md +0 -131
- package/templates/react-sdk-reference/.github/skills/template-skills/Confirmation.md +0 -109
- package/templates/react-sdk-reference/.github/skills/template-skills/DataReference.md +0 -124
- package/templates/react-sdk-reference/.github/skills/template-skills/DefaultForm.md +0 -104
- package/templates/react-sdk-reference/.github/skills/template-skills/Details.md +0 -90
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsSubTabs.md +0 -97
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsThreeColumn.md +0 -80
- package/templates/react-sdk-reference/.github/skills/template-skills/DetailsTwoColumn.md +0 -80
- package/templates/react-sdk-reference/.github/skills/template-skills/DynamicTabs.md +0 -106
- package/templates/react-sdk-reference/.github/skills/template-skills/FieldGroupTemplate.md +0 -112
- package/templates/react-sdk-reference/.github/skills/template-skills/HierarchicalForm.md +0 -116
- package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboard.md +0 -108
- package/templates/react-sdk-reference/.github/skills/template-skills/InlineDashboardPage.md +0 -82
- package/templates/react-sdk-reference/.github/skills/template-skills/ListPage.md +0 -70
- package/templates/react-sdk-reference/.github/skills/template-skills/ListView.md +0 -142
- package/templates/react-sdk-reference/.github/skills/template-skills/NarrowWide.md +0 -143
- package/templates/react-sdk-reference/.github/skills/template-skills/OneColumn.md +0 -114
- package/templates/react-sdk-reference/.github/skills/template-skills/PromotedFilters.md +0 -130
- package/templates/react-sdk-reference/.github/skills/template-skills/SelfServiceCaseView.md +0 -142
- package/templates/react-sdk-reference/.github/skills/template-skills/SimpleTable.md +0 -131
- package/templates/react-sdk-reference/.github/skills/template-skills/SingleReferenceReadOnly.md +0 -108
- package/templates/react-sdk-reference/.github/skills/template-skills/SubTabs.md +0 -82
- package/templates/react-sdk-reference/.github/skills/template-skills/TwoColumn.md +0 -133
- package/templates/react-sdk-reference/.github/skills/template-skills/WideNarrow.md +0 -152
- package/templates/react-sdk-reference/.github/skills/widget-components.md +0 -260
- package/templates/react-sdk-reference/.github/skills/widget-skills/AppAnnouncement.md +0 -84
- package/templates/react-sdk-reference/.github/skills/widget-skills/Attachment.md +0 -151
- package/templates/react-sdk-reference/.github/skills/widget-skills/CaseHistory.md +0 -110
- package/templates/react-sdk-reference/.github/skills/widget-skills/Followers.md +0 -103
- package/templates/react-sdk-reference/.github/skills/widget-skills/QuickCreate.md +0 -118
- package/templates/react-sdk-reference/.github/skills/widget-skills/SummaryItem.md +0 -169
- package/templates/react-sdk-reference/.github/skills/widget-skills/ToDo.md +0 -198
- package/templates/react-sdk-reference/AGENTS.md +0 -246
- package/templates/react-sdk-reference/pega-auth-0.2.42.tgz +0 -0
- /package/templates/react-sdk-reference/{.claude → .ai-common}/skills/run-and-verify.md +0 -0
package/templates/react-sdk-reference/.ai-common/skills/design-system-extension-skills/Pulse.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Skill: Pulse
|
|
2
|
+
|
|
3
|
+
Placeholder activity feed / comments stream card. Currently a stub implementation that renders a card titled "Pulse".
|
|
4
|
+
|
|
5
|
+
> **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, input contracts, styling patterns, and registration patterns common to ALL DSE components.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Component Purpose
|
|
10
|
+
|
|
11
|
+
Renders a card container intended to display an activity feed or comments stream for a Pega case. The current reference implementation is a **stub** — it renders only a Card with the title "Pulse" and placeholder body text. A production implementation would render a real activity feed stream inside the card using the `children` slot.
|
|
12
|
+
|
|
13
|
+
## Pega Metadata
|
|
14
|
+
|
|
15
|
+
- **Pega Name:** `Pulse`
|
|
16
|
+
- **Registration key:** `Pulse` (in the project's component map)
|
|
17
|
+
- **Does NOT use `getPConnect`** — receives children via the framework's content projection mechanism
|
|
18
|
+
|
|
19
|
+
## Component Inputs
|
|
20
|
+
|
|
21
|
+
The component accepts the following inputs. Define the input contract using the project's framework conventions.
|
|
22
|
+
|
|
23
|
+
| Name | Type | Required | Description |
|
|
24
|
+
| ---------- | ------------------ | -------- | ------------------------------------------------------------------------- |
|
|
25
|
+
| `children` | renderable content | No | Child components (activity stream content) — currently unused in the stub |
|
|
26
|
+
|
|
27
|
+
## Implementation Structure
|
|
28
|
+
|
|
29
|
+
Stub implementation — placeholder only.
|
|
30
|
+
|
|
31
|
+
### Module Setup
|
|
32
|
+
|
|
33
|
+
The component accepts children via the framework's content projection mechanism. It does NOT import any Pega SDK modules.
|
|
34
|
+
|
|
35
|
+
The component is named `Pulse` and accepts the inputs listed in the table above. Define the input contract and export the component following the project's framework conventions.
|
|
36
|
+
|
|
37
|
+
### Component Logic
|
|
38
|
+
|
|
39
|
+
The component receives `children` as input (though the current stub does not render them), then:
|
|
40
|
+
|
|
41
|
+
1. **Render a Card container** — a card-style element with a distinct 6px left border accent using the primary light color from the design system's palette (or CSS variable `--app-primary-light-color`). Apply top and bottom margin of 1 spacing unit (≈ 8px).
|
|
42
|
+
2. **Render a CardHeader** — containing a heading (heading-6 text, ≈1.25rem, weight 500) with the text `"Pulse"`.
|
|
43
|
+
3. **Render CardContent** — containing placeholder text `"Pulse"`.
|
|
44
|
+
|
|
45
|
+
> **Note:** The current reference implementation ignores `children` and renders placeholder content. A production implementation would render the children (the activity stream) inside the card body.
|
|
46
|
+
|
|
47
|
+
## Behavioral Contract
|
|
48
|
+
|
|
49
|
+
1. Render a `Card` (or equivalent container) with a distinct left border accent.
|
|
50
|
+
2. Render a card header with the title text `"Pulse"` using a heading style (heading-6, ≈1.25rem, weight 500).
|
|
51
|
+
3. Render card content body with placeholder text `"Pulse"`.
|
|
52
|
+
4. The left border accent uses the **primary light** color from the design system's theme.
|
|
53
|
+
5. The card has top and bottom margin (1 spacing unit each).
|
|
54
|
+
|
|
55
|
+
> **Stub note:** Steps 2–3 are placeholder content. In a real implementation, the card header would show a section label and the card body would render the `children` activity stream.
|
|
56
|
+
|
|
57
|
+
## Visual Specifications
|
|
58
|
+
|
|
59
|
+
Derived from the component's companion styles:
|
|
60
|
+
|
|
61
|
+
### Card Container
|
|
62
|
+
|
|
63
|
+
| Property | Value |
|
|
64
|
+
| ----------------- | ---------------------------------------------------- |
|
|
65
|
+
| Margin top | 1 spacing unit (≈ 8px) |
|
|
66
|
+
| Margin bottom | 1 spacing unit (≈ 8px) |
|
|
67
|
+
| Border left | `6px solid` |
|
|
68
|
+
| Border left color | Primary light color from the design system's palette |
|
|
69
|
+
|
|
70
|
+
**CSS-only implementation notes:**
|
|
71
|
+
|
|
72
|
+
- Card wrapper: `margin-top: 8px; margin-bottom: 8px; border-left: 6px solid var(--app-primary-light-color); border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.12)`.
|
|
73
|
+
- Card header: `padding: 16px; font-size: 1.25rem; font-weight: 500`.
|
|
74
|
+
- Card body: `padding: 0 16px 16px`.
|
|
75
|
+
- Use a CSS variable `--app-primary-light-color` for the accent border color.
|
|
76
|
+
|
|
77
|
+
## Edge Cases & Special Logic
|
|
78
|
+
|
|
79
|
+
- The `children` input is received but not currently rendered — it is intentional in the stub.
|
|
80
|
+
- The component renders unconditionally (no conditional logic based on inputs).
|
|
81
|
+
|
|
82
|
+
## Dependencies
|
|
83
|
+
|
|
84
|
+
- No Pega SDK imports required (no `getPConnect`)
|
|
85
|
+
- No helper utilities required
|
|
86
|
+
|
|
87
|
+
## Design System Mapping
|
|
88
|
+
|
|
89
|
+
**UI control type:** Card with left accent border and header/body sections.
|
|
90
|
+
|
|
91
|
+
When implementing in a specific design system, map the following:
|
|
92
|
+
|
|
93
|
+
- **Card container** → use the DS's card component (or a bordered container element)
|
|
94
|
+
- **Left border accent** → apply `border-left: 6px solid` with the DS's primary-light color
|
|
95
|
+
- **Card header** → use the DS's card header/title slot with heading-6 text
|
|
96
|
+
- **Card body** → use the DS's card content/body slot
|
|
97
|
+
- Card header title typography → design system's heading variant (h6 or equivalent)
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
# Skill: RichTextEditor
|
|
2
|
+
|
|
3
|
+
WYSIWYG rich text editor field backed by TinyMCE. Supports editable and read-only modes, optional label, helper text, error/required states, and a file picker for image uploads.
|
|
4
|
+
|
|
5
|
+
> **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, input contracts, styling patterns, and registration patterns common to ALL DSE components.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Component Purpose
|
|
10
|
+
|
|
11
|
+
Renders a rich text editing area (WYSIWYG) for Pega case properties that store HTML content. In **edit mode**, uses a rich text editor library with a bottom toolbar. In **read-only mode**, renders the HTML content as a read-only `<div>`. Wraps the editor in a form field wrapper with an optional label and helper text, consistent with other field components.
|
|
12
|
+
|
|
13
|
+
The editor supports exposing its instance to parent components — use the framework's standard instance-sharing mechanism.
|
|
14
|
+
|
|
15
|
+
> **Note:** TinyMCE is the reference editor library. In other implementations, this component can be replaced with an alternative rich text library (Quill, ProseMirror, Slate.js, Tiptap, etc.). The behavioral contract below remains the same regardless of library.
|
|
16
|
+
|
|
17
|
+
## Pega Metadata
|
|
18
|
+
|
|
19
|
+
- **Pega Name:** `RichTextEditor`
|
|
20
|
+
- **Registration key:** `RichTextEditor` (in the project's component map)
|
|
21
|
+
- **Does NOT extend the base PConnect interface** — receives all data as explicit field-like inputs
|
|
22
|
+
|
|
23
|
+
## Component Inputs
|
|
24
|
+
|
|
25
|
+
The component accepts the following inputs. Define the input contract using the project's framework conventions.
|
|
26
|
+
|
|
27
|
+
| Name | Type | Required | Description |
|
|
28
|
+
| -------------- | ---------- | -------- | ----------------------------------------------------------------- |
|
|
29
|
+
| `id` | `string` | No | DOM id for the editor element. Defaults to a generated UID |
|
|
30
|
+
| `defaultValue` | `string` | Yes | Initial HTML content of the editor |
|
|
31
|
+
| `label` | `string` | Yes | Field label displayed above the editor |
|
|
32
|
+
| `labelHidden` | `boolean` | Yes | If `true`, hide the label |
|
|
33
|
+
| `info` | `string` | No | Helper text displayed below the editor |
|
|
34
|
+
| `testId` | `string` | No | Value for the test id attribute on the form wrapper |
|
|
35
|
+
| `placeholder` | `string` | No | Placeholder text shown in empty editor |
|
|
36
|
+
| `disabled` | `boolean` | Yes | If `true`, editor is in read-only/disabled mode with no toolbar |
|
|
37
|
+
| `required` | `boolean` | Yes | If `true`, marks the field as required |
|
|
38
|
+
| `readOnly` | `boolean` | Yes | If `true`, render as static HTML display (not interactive editor) |
|
|
39
|
+
| `error` | `boolean` | Yes | If `true`, applies error styling to the form wrapper |
|
|
40
|
+
| `onBlur` | `function` | Yes | Called when the editor loses focus |
|
|
41
|
+
| `onChange` | `function` | Yes | Called when the editor content changes |
|
|
42
|
+
|
|
43
|
+
## Implementation Structure
|
|
44
|
+
|
|
45
|
+
### Module Setup
|
|
46
|
+
|
|
47
|
+
The component imports:
|
|
48
|
+
|
|
49
|
+
- The framework's mechanism for exposing the editor instance to parent components (e.g., ref forwarding in React, `@ViewChild` in Angular)
|
|
50
|
+
- Lifecycle and utility helpers from the SDK bridge package: a post-initial-mount change watcher, a consolidated instance reference utility, and a unique ID generator
|
|
51
|
+
- A rich text editor library (TinyMCE in the reference implementation — can be swapped for Quill, ProseMirror, Tiptap, etc.)
|
|
52
|
+
- Form wrapper components from the design system (form control, helper text, label)
|
|
53
|
+
- Theme/token access from the design system for palette and typography values
|
|
54
|
+
|
|
55
|
+
The component is named `RichTextEditor`, accepts the inputs listed above, and supports exposing the editor instance to parent components. Define the input contract and export the component following the project's framework conventions.
|
|
56
|
+
|
|
57
|
+
### Editor Instance and ID Management
|
|
58
|
+
|
|
59
|
+
- Use the SDK bridge package's consolidated reference utility to create a reference to the editor instance — the rich text editor instance is stored here after initialization via `onInit`.
|
|
60
|
+
- If `id` is not provided in the inputs, generate one using the SDK bridge package's unique ID generator.
|
|
61
|
+
|
|
62
|
+
### Mode Transition Effect
|
|
63
|
+
|
|
64
|
+
After initial mount, use the SDK bridge package's post-initial-mount change watcher, observing `[readOnly, disabled]`. When either changes, switch the editor's mode to read-only if either `readOnly` or `disabled` is true, otherwise switch to edit/design mode. This transitions the editor mode without re-mounting it.
|
|
65
|
+
|
|
66
|
+
### Render Paths
|
|
67
|
+
|
|
68
|
+
The component has two mutually exclusive render paths, both wrapped in a common form wrapper:
|
|
69
|
+
|
|
70
|
+
**Read-only path** (when `readOnly === true`):
|
|
71
|
+
|
|
72
|
+
- Render a `<div>` with the resolved `id`, class `readonly-richtext-editor`, and raw HTML content containing `defaultValue` (or `'--'` if defaultValue is falsy) via the framework's trusted HTML injection mechanism.
|
|
73
|
+
- Skip the TinyMCE Editor entirely.
|
|
74
|
+
|
|
75
|
+
**Edit path** (when `readOnly === false`):
|
|
76
|
+
|
|
77
|
+
- Render the TinyMCE editor instance with the configuration described in the Behavioral Contract sections below.
|
|
78
|
+
- On init, store the editor instance in the component's editor reference.
|
|
79
|
+
|
|
80
|
+
### Wrapper Structure
|
|
81
|
+
|
|
82
|
+
Both paths are wrapped in a form field wrapper (the DS's form control component) with:
|
|
83
|
+
|
|
84
|
+
- The test id attribute set to the `testId` input
|
|
85
|
+
- `error` and `required` states passed through
|
|
86
|
+
- If `labelHidden` is false: render a label element with class `fieldLabel` containing the `label` text (non-floating — positioned relative with no transform)
|
|
87
|
+
- The rich text component (either read-only div or interactive editor)
|
|
88
|
+
- If `info` is provided: render a helper text element containing the info text
|
|
89
|
+
|
|
90
|
+
## Behavioral Contract
|
|
91
|
+
|
|
92
|
+
### 1. Exposing the Editor Instance
|
|
93
|
+
|
|
94
|
+
The component exposes the editor instance to parent components. Internally, use the SDK bridge package's consolidated reference utility to store the editor instance after initialization.
|
|
95
|
+
|
|
96
|
+
### 2. UID for id
|
|
97
|
+
|
|
98
|
+
If `id` is not provided, generate one using the SDK bridge package's unique ID generator.
|
|
99
|
+
|
|
100
|
+
### 3. Read-Only Mode
|
|
101
|
+
|
|
102
|
+
If `readOnly` is `true`, render a `<div>` with `key` and `id` set to the resolved id, class `readonly-richtext-editor`, and the raw HTML content set to `defaultValue` (or `'--'` as fallback if defaultValue is falsy). Skip the interactive editor entirely in this case.
|
|
103
|
+
|
|
104
|
+
### 4. Edit Mode (TinyMCE)
|
|
105
|
+
|
|
106
|
+
When `readOnly` is `false`, render the TinyMCE editor component from the project's framework-specific TinyMCE integration package with:
|
|
107
|
+
|
|
108
|
+
| Config | Value |
|
|
109
|
+
| ------------------ | ------------------------------------------------ |
|
|
110
|
+
| `tinymceScriptSrc` | `'tinymce/tinymce.min.js'` (local script) |
|
|
111
|
+
| `id` | The resolved `id` |
|
|
112
|
+
| `initialValue` | `defaultValue` |
|
|
113
|
+
| `disabled` | `disabled` input |
|
|
114
|
+
| `onBlur` | `onBlur` input |
|
|
115
|
+
| `onEditorChange` | `onChange` input |
|
|
116
|
+
| `onInit` | Store editor in the component's editor reference |
|
|
117
|
+
|
|
118
|
+
### 5. TinyMCE `init` Configuration
|
|
119
|
+
|
|
120
|
+
| Option | Value |
|
|
121
|
+
| -------------------------- | -------------------------------------------------------------------------------------------------------------------- |
|
|
122
|
+
| `skin` | `'oxide-dark'` (dark mode) / `'oxide'` (light mode) — detect from theme |
|
|
123
|
+
| `menubar` | `false` |
|
|
124
|
+
| `statusbar` | `false` |
|
|
125
|
+
| `branding` | `false` |
|
|
126
|
+
| `min_height` | `130` |
|
|
127
|
+
| `toolbar_location` | `'bottom'` |
|
|
128
|
+
| `plugins` | `['lists', 'advlist', 'autolink', 'image', 'link', 'autoresize']` |
|
|
129
|
+
| `autoresize_bottom_margin` | `0` |
|
|
130
|
+
| `toolbar` | `'blocks \| bold italic strikethrough \| bullist numlist outdent indent \| link image'` (or `false` when `disabled`) |
|
|
131
|
+
| `paste_data_images` | `true` |
|
|
132
|
+
| `file_picker_types` | `'image'` |
|
|
133
|
+
| `file_picker_callback` | See file picker section below |
|
|
134
|
+
| `content_style` | Theme-aware CSS string (see below) |
|
|
135
|
+
| `placeholder` | `placeholder` input |
|
|
136
|
+
|
|
137
|
+
### 6. Theme-Aware Content Style
|
|
138
|
+
|
|
139
|
+
Inject a `content_style` string into the TinyMCE init config that uses theme values. The style string should set properties for the following selectors:
|
|
140
|
+
|
|
141
|
+
| CSS Selector | Properties |
|
|
142
|
+
| ------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
143
|
+
| `body` | `font-family` from theme typography; `font-size` from theme typography (in px); `color` from theme's primary text color; `background` from theme's paper/surface background |
|
|
144
|
+
| `a` | `color` from theme's primary/link color |
|
|
145
|
+
| `h1` through `h6` | `color` from theme's primary text color; `font-family` from theme typography |
|
|
146
|
+
| `blockquote` | `color` from theme's secondary text color; `border-left: 4px solid` using theme's primary-light color; `padding-left: 8px` |
|
|
147
|
+
| `ul, ol` | `color` from theme's primary text color |
|
|
148
|
+
| `input, textarea, select` | `background` from theme's paper/surface background; `color` from theme's primary text color; `border: 1px solid` using theme's divider color; `border-radius: 4px`; `padding: 6px 10px`; `font-size: 1em`; `font-family: inherit` |
|
|
149
|
+
| `.mce-content-body[data-mce-placeholder]:not(.mce-visualblocks)::before` | `color` from theme's secondary text color; `opacity: 0.7` |
|
|
150
|
+
|
|
151
|
+
### 7. File Picker Callback
|
|
152
|
+
|
|
153
|
+
When a user clicks the image upload in the toolbar:
|
|
154
|
+
|
|
155
|
+
1. Create a hidden `<input type='file' accept='image/*'>`.
|
|
156
|
+
2. On file selected: read as DataURL using `FileReader`.
|
|
157
|
+
3. On `FileReader.load`: create a blob in TinyMCE's blob cache (accessed via the stored editor instance's `editorUpload.blobCache`), then call `cb(blobInfo.blobUri(), { title: file.name })`.
|
|
158
|
+
4. Programmatically click the input to open the file dialog.
|
|
159
|
+
|
|
160
|
+
### 8. readOnly/disabled Transition (after initial mount)
|
|
161
|
+
|
|
162
|
+
Use the SDK bridge package's post-initial-mount change watcher, observing `[readOnly, disabled]`. When either value changes after the initial render, switch the editor mode to read-only (if readOnly or disabled is true) or to editable/design mode (otherwise). This transitions the editor mode without re-mounting it.
|
|
163
|
+
|
|
164
|
+
### 9. Wrapper Structure
|
|
165
|
+
|
|
166
|
+
The component nests elements in this order:
|
|
167
|
+
|
|
168
|
+
1. **Form field wrapper** (the DS's form control) with the test id attribute, `error`, and `required` states
|
|
169
|
+
2. Inside the wrapper, conditionally: **Label element** with class `fieldLabel` containing `{label}` (only if `labelHidden` is false)
|
|
170
|
+
3. The rich text component — either the read-only div or the interactive editor
|
|
171
|
+
4. Conditionally: **Helper text element** containing `{info}` (only if `info` is provided)
|
|
172
|
+
|
|
173
|
+
## Visual Specifications
|
|
174
|
+
|
|
175
|
+
Derived from the component's companion styles:
|
|
176
|
+
|
|
177
|
+
### Label
|
|
178
|
+
|
|
179
|
+
| Property | Value |
|
|
180
|
+
| ------------- | ---------------------------------------------------------- |
|
|
181
|
+
| Position | relative |
|
|
182
|
+
| Transform | `translate(0, 0px) scale(1)` (non-floating — stays at top) |
|
|
183
|
+
| Margin bottom | 5px |
|
|
184
|
+
| Color | secondary text color |
|
|
185
|
+
|
|
186
|
+
**CSS-only implementation notes:**
|
|
187
|
+
|
|
188
|
+
- Label: `display: block; font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 5px`.
|
|
189
|
+
- Editor container: `min-height: 130px; border: 1px solid var(--divider); border-radius: 4px`.
|
|
190
|
+
- Toolbar (if CSS-only): render buttons at bottom of the editor area.
|
|
191
|
+
- Read-only display: `div.readonly-richtext-editor { padding: 8px; min-height: 130px; background: var(--bg-paper); color: var(--text-primary) }`.
|
|
192
|
+
- Error state: `border-color: var(--error-color)`.
|
|
193
|
+
- Helper text: `font-size: 0.75rem; color: var(--text-secondary); margin-top: 4px`.
|
|
194
|
+
- Error helper text: `color: var(--error-color)`.
|
|
195
|
+
|
|
196
|
+
## Edge Cases & Special Logic
|
|
197
|
+
|
|
198
|
+
- `defaultValue` in read-only mode falls back to `'--'` if empty.
|
|
199
|
+
- `readOnly` and `disabled` are both handled — `readOnly` suppresses the editor entirely; `disabled` keeps the editor mounted but in TinyMCE's `readonly` mode with no toolbar.
|
|
200
|
+
- Mode transitions (readOnly/disabled changing after mount) use the SDK bridge package's post-initial-mount change watcher — it fires on subsequent changes but NOT on the initial mount, preventing a double-set.
|
|
201
|
+
- The file picker creates a transient `<input type='file'>` element that is never appended to the DOM — it is clicked programmatically.
|
|
202
|
+
- `id` must be stable across renders — use the SDK's unique ID generator only as a fallback when `id` input is absent.
|
|
203
|
+
|
|
204
|
+
## Dependencies
|
|
205
|
+
|
|
206
|
+
- A rich text editor library (TinyMCE in the reference — can be swapped for Quill, ProseMirror, Slate.js, Tiptap, etc.)
|
|
207
|
+
- Lifecycle and utility helpers from the SDK bridge package: a post-initial-mount change watcher, a consolidated instance reference utility, and a unique ID generator
|
|
208
|
+
- The design system's theme/token mechanism — for theme-aware content styles
|
|
209
|
+
- The design system's form field wrapper components (form control, helper text, label)
|
|
210
|
+
|
|
211
|
+
## Design System Mapping
|
|
212
|
+
|
|
213
|
+
**UI control type:** Rich text / WYSIWYG editor field with label, helper text, and error state.
|
|
214
|
+
|
|
215
|
+
When implementing in a specific design system, map the following:
|
|
216
|
+
|
|
217
|
+
- **Rich text editor** → use TinyMCE, Quill, ProseMirror, Tiptap, or any WYSIWYG library appropriate for the project
|
|
218
|
+
- **Form wrapper** → use the DS's form field wrapper (form control, form group, or field container) with error/required states
|
|
219
|
+
- **Label** → use the DS's field label component (non-floating, positioned above the editor)
|
|
220
|
+
- **Helper text** → use the DS's helper/description text below the editor, with error color when `error` is true
|
|
221
|
+
- **`defaultValue`** → initial HTML content
|
|
222
|
+
- **`readOnly` = true** → always render as static HTML display (no editor instance)
|
|
223
|
+
- **`disabled` = true** → editor mounted but in read-only mode with toolbar hidden
|
|
224
|
+
- **`onBlur` / `onChange`** → editor's blur and content-change callbacks
|
|
225
|
+
- **File picker** → `<input type='file' accept='image/*'>` triggered programmatically when the image toolbar button is clicked
|
|
226
|
+
- **Theme-aware styles** → inject the DS's typography and palette values into the editor's content styles so content inside the editor matches the app's theme
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Quick-launch action grid that displays a heading and a set of labeled buttons, each optionally with an icon, for creating WSS cases.
|
|
4
4
|
|
|
5
|
-
> **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture,
|
|
5
|
+
> **Prerequisite skill:** [`design-system-extension.md`](../design-system-extension.md) — covers architecture, input contracts, styling patterns, and registration patterns common to ALL DSE components.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -13,16 +13,40 @@ Renders a titled section of clickable action cards arranged in a responsive CSS
|
|
|
13
13
|
## Pega Metadata
|
|
14
14
|
|
|
15
15
|
- **Pega Name:** `WssQuickCreate`
|
|
16
|
-
- **Registration key:** `WssQuickCreate` (in
|
|
17
|
-
- **Does NOT use `getPConnect`** — receives all data as direct
|
|
16
|
+
- **Registration key:** `WssQuickCreate` (in the project's component map)
|
|
17
|
+
- **Does NOT use `getPConnect`** — receives all data as direct inputs
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Component Inputs
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
The component accepts the following inputs. Define the input contract using the project's framework conventions.
|
|
22
|
+
|
|
23
|
+
| Name | Type | Required | Description |
|
|
22
24
|
| --------- | -------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------- |
|
|
23
25
|
| `heading` | `string` | Yes | Section title rendered as an `<h1>` |
|
|
24
26
|
| `actions` | `Array<{ label: string; onClick: () => void; icon?: string }>` | No | List of action items; each has a label, click handler, and optional icon URL |
|
|
25
27
|
|
|
28
|
+
## Implementation Structure
|
|
29
|
+
|
|
30
|
+
### Module Setup
|
|
31
|
+
|
|
32
|
+
The component requires companion styles (for action list and button styling) co-located following the project's styling convention. It does NOT import any Pega SDK modules — all data arrives via direct inputs.
|
|
33
|
+
|
|
34
|
+
The component is named `WssQuickCreate` and accepts the inputs listed in the table above. Define the input contract and export the component following the project's framework conventions.
|
|
35
|
+
|
|
36
|
+
### Component Logic
|
|
37
|
+
|
|
38
|
+
The component receives `heading` and `actions` as inputs, then renders:
|
|
39
|
+
|
|
40
|
+
1. **Heading** — an `<h1>` element with `id="quick-links-heading"` and class `quick-links-heading`, containing the `heading` text.
|
|
41
|
+
2. **Action list** — a `<ul>` with `id="quick-links"` and class `quick-link-ul-list`.
|
|
42
|
+
3. **Action items** — if `actions` is provided, iterate over the array rendering one `<li>` per action:
|
|
43
|
+
- The `<li>` has the `quickLinkList` style class (styled card appearance with border, rounded corners, and themed background color).
|
|
44
|
+
- Inside each `<li>`, render a `<button>` with `type="button"`, class `quick-link-button`, and the action's `onClick` handler.
|
|
45
|
+
- Button content is a `<span>` with class `quick-link-button-span` (flex column layout) containing:
|
|
46
|
+
- If `action.icon` is provided: an `<img>` with class `quick-link-icon` and `src` set to the icon URL.
|
|
47
|
+
- A `<span>` containing `action.label`.
|
|
48
|
+
4. If `actions` is not provided or is empty, render only the heading with an empty list.
|
|
49
|
+
|
|
26
50
|
## Behavioral Contract
|
|
27
51
|
|
|
28
52
|
1. Render the `heading` in an `<h1>` element with `id='quick-links-heading'` and class `quick-links-heading`.
|
|
@@ -37,7 +61,7 @@ Renders a titled section of clickable action cards arranged in a responsive CSS
|
|
|
37
61
|
|
|
38
62
|
## Visual Specifications
|
|
39
63
|
|
|
40
|
-
Derived from
|
|
64
|
+
Derived from the component's companion styles:
|
|
41
65
|
|
|
42
66
|
### Section Heading
|
|
43
67
|
|
|
@@ -119,19 +143,10 @@ Derived from `WssQuickCreate.css` and component makeStyles:
|
|
|
119
143
|
|
|
120
144
|
**UI control type:** Responsive grid of action cards / quick-launch buttons.
|
|
121
145
|
|
|
122
|
-
Listed design systems are examples only.
|
|
123
|
-
|
|
124
|
-
| Design System | Recommended Component |
|
|
125
|
-
| ------------------ | ----------------------------------------------------------------------- |
|
|
126
|
-
| Default (CSS only) | CSS grid `<ul>` + `<button>` cards with flex icon/label layout |
|
|
127
|
-
| MUI | `<Button>` inside Grid items; use `makeStyles` or `sx` for card styling |
|
|
128
|
-
| Ant Design | `<List>` with `<Card>` items or `<Button>` blocks inside a CSS grid |
|
|
129
|
-
| Chakra UI | `<SimpleGrid>` with `<Button>` children; `flexDir='column'` |
|
|
130
|
-
| Shadcn/ui | Grid of custom `<Button variant='outline'>` cards |
|
|
131
|
-
|
|
132
146
|
When implementing in a specific design system, map the following:
|
|
133
147
|
|
|
134
|
-
- Card border/background →
|
|
135
|
-
- Button
|
|
136
|
-
- Icon + label stacked layout →
|
|
137
|
-
- Responsive grid →
|
|
148
|
+
- **Card border/background** → use the DS's card or outlined button variant with the themed background and border colors
|
|
149
|
+
- **Button click** → standard click handler wired to `action.onClick`
|
|
150
|
+
- **Icon + label stacked layout** → use a flex column layout inside the button content area
|
|
151
|
+
- **Responsive grid** → use the DS's responsive grid component or CSS grid with `repeat(auto-fit, minmax(min(20ch, 100%), 1fr))`
|
|
152
|
+
- **Dark/light mode background** → use `var(--app-background-color)` in dark mode or `var(--link-button-color)` in light mode (or detect from the DS's theme mode)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Skill: Design System Extension (DSE) Components
|
|
2
|
+
|
|
3
|
+
Create or replace Design System Extension components in the project. DSE components are display-focused presentational components that render structured data without direct PConnect binding. Some receive `getPConnect`, others receive only display inputs.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Architecture Overview
|
|
8
|
+
|
|
9
|
+
Each DSE component lives in its own folder under the project's design-system-extension components directory, named after the component. The folder contains:
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
| ----------------------------- | ------------------------------------------------------- |
|
|
13
|
+
| Component implementation file | The component's logic and markup |
|
|
14
|
+
| Re-export module (if present) | Re-exports the component as the folder's default export |
|
|
15
|
+
| Companion styles (optional) | Styles scoped to the component |
|
|
16
|
+
| Metadata (optional) | Registration metadata (name, label, description, type) |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Input Contract
|
|
21
|
+
|
|
22
|
+
DSE components have varying input patterns:
|
|
23
|
+
|
|
24
|
+
### Pattern A: With PConnect (data-aware display)
|
|
25
|
+
|
|
26
|
+
The component's input contract extends the project's base component interface, which provides `getPConnect()` — a function returning the PConnect API object — in addition to its own custom inputs. Example: a field-value display component extending the base interface with additional fields like `name`, `value`, and `variant`.
|
|
27
|
+
|
|
28
|
+
### Pattern B: Without PConnect (pure presentation)
|
|
29
|
+
|
|
30
|
+
The component's input contract is standalone — it does NOT extend the base component interface. All rendering data arrives via direct inputs. Example: an alert-banner component with fields like `variant`, `heading`, `messages`, and `onClose`.
|
|
31
|
+
|
|
32
|
+
### Pattern C: Extended field input contract (display-only fields)
|
|
33
|
+
|
|
34
|
+
The component's input contract extends the project's field input contract, which provides standard field-level inputs (`label`, `value`, `displayMode`, `required`, `disabled`, `readOnly`, `status`, `validatemessage`, `helperText`, `hideLabel`, `placeholder`, `testId`) plus `getPConnect()`. The component adds its own domain-specific inputs on top. Example: a rich-text-editor component extending the field input contract with an additional `content` field.
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Implementation Patterns
|
|
39
|
+
|
|
40
|
+
### Pure Display Component (no PConnect)
|
|
41
|
+
|
|
42
|
+
Used for: AlertBanner, Banner, Operator
|
|
43
|
+
|
|
44
|
+
This pattern is design-system agnostic. The variant-mapping logic and message normalisation are always the same — only the final rendered output changes based on the chosen design system (see "Design System Adaptation" below).
|
|
45
|
+
|
|
46
|
+
**Structure:**
|
|
47
|
+
|
|
48
|
+
1. **Use** the design system's alert/notification primitive as the visual foundation.
|
|
49
|
+
2. **Define the input contract** (Pattern B — no PConnect). Include the Pega-facing inputs: `variant`, `heading`/`messages`, and an optional close/dismiss handler.
|
|
50
|
+
3. **Define a variant map** at module level — a plain lookup mapping Pega variant strings (`urgent`, `warning`, `info`, `success`) to the design system's equivalent severity/type value. Unknown variants fall back to `info`.
|
|
51
|
+
4. **Define a message normaliser** — a helper function that accepts either a plain string or an object (`{ label?, description? }`) and returns formatted content. Pega may send either format.
|
|
52
|
+
5. **Render** using the design system's alert primitive. Pass the mapped severity as the type/severity/status input. Wire the dismiss handler to the design system's close input only if provided. Render message content inside the alert body.
|
|
53
|
+
|
|
54
|
+
### Field Value Display Component
|
|
55
|
+
|
|
56
|
+
Used for: FieldValueList, CaseSummaryFields, DetailsFields
|
|
57
|
+
|
|
58
|
+
**Structure:**
|
|
59
|
+
|
|
60
|
+
1. **Define the input contract** (Pattern A — extends the project's base component interface) with fields for `name` (optional string), `value` (any), and `variant` (optional — `'stacked'` or `'inline'`, defaulting to `'inline'`).
|
|
61
|
+
2. **Stacked variant** — when `variant` is `'stacked'`, render the label on its own line above the value. The value should use a larger/emphasized typography style.
|
|
62
|
+
3. **Inline variant** (default) — render the label and value side by side. The label occupies roughly 1/3 width, value occupies 2/3. If `name` is not provided, render only the value at full width.
|
|
63
|
+
4. **Empty value handling** — if `value` is undefined or an empty string, display a placeholder (`'---'`).
|
|
64
|
+
|
|
65
|
+
### Complex Display Component (with PConnect for data)
|
|
66
|
+
|
|
67
|
+
Used for: FieldGroup, FieldGroupList, Pulse
|
|
68
|
+
|
|
69
|
+
**Structure:**
|
|
70
|
+
|
|
71
|
+
1. **Define the input contract** (Pattern A — extends the project's base component interface) with component-specific fields (e.g., `label`, `showLabel`).
|
|
72
|
+
2. **Obtain the PConnect instance** by calling `getPConnect()` from the component's inputs.
|
|
73
|
+
3. **Retrieve children** via `pConn.getChildren()` — this returns an array of child component configurations from the Pega engine.
|
|
74
|
+
4. **Render children dynamically** — iterate over the children array and render each child configuration using the project's PConnect bridge utility, keyed uniquely. This bridges the Pega component tree into the chosen framework's rendering model.
|
|
75
|
+
5. **Wrap in semantic HTML** — use appropriate semantic elements (e.g., `<fieldset>` with `<legend>` for grouped fields). Conditionally show labels based on the `showLabel` input.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Styling Patterns
|
|
80
|
+
|
|
81
|
+
DSE components use one of three approaches depending on the component and design system:
|
|
82
|
+
|
|
83
|
+
### CSS File Pattern (DS-agnostic, preferred for Field Value components)
|
|
84
|
+
|
|
85
|
+
Create a co-located `.css` file named after the component. Typical CSS conventions for DSE components:
|
|
86
|
+
|
|
87
|
+
- **Inline layout** — use `display: flex` with a small gap (`0.5rem`) and `align-items: baseline` for label/value pairs.
|
|
88
|
+
- **Labels** — `font-weight: 600` with a secondary text color (use a CSS custom property like `var(--text-secondary)`).
|
|
89
|
+
- **Large values (stacked variant)** — `font-size: 1.25rem`, `font-weight: 500`.
|
|
90
|
+
- Use CSS custom properties (design tokens) for colors and spacing — never hardcode pixel values for spacing.
|
|
91
|
+
- Class names follow the pattern `.component-name-element` (e.g., `.field-value-inline`, `.field-label`).
|
|
92
|
+
|
|
93
|
+
### Design System Style Inputs (use if your DS provides them)
|
|
94
|
+
|
|
95
|
+
If the chosen design system provides built-in spacing, typography, or layout inputs, prefer them over plain CSS:
|
|
96
|
+
|
|
97
|
+
- Use the DS's layout primitives (e.g., a stack, flex, or grid wrapper component) instead of manual flex CSS
|
|
98
|
+
- Use the DS's typography primitives (e.g., a text or heading component) instead of raw `<span>`/`<div>`
|
|
99
|
+
- Use DS CSS custom properties or tokens for spacing — never hardcode `px` values
|
|
100
|
+
- Discover which style inputs are available from the design system's type declarations before using them
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## Design System Adaptation
|
|
105
|
+
|
|
106
|
+
DSE components fall into three patterns with different DS dependencies:
|
|
107
|
+
|
|
108
|
+
| Pattern | Examples | DS needed? |
|
|
109
|
+
| ----------------------------------------- | ------------------------------------------------ | -------------------------------------------------- |
|
|
110
|
+
| **B — Pure display** (no PConnect) | AlertBanner, Banner, Operator, WssQuickCreate | Yes — DS provides alert/card/avatar primitives |
|
|
111
|
+
| **A — PConnect display** | CaseSummaryFields, DetailsFields, FieldValueList | Minimal — CSS-based layout; DS typography optional |
|
|
112
|
+
| **C — Complex display** (PConnect bridge) | FieldGroup, FieldGroupList, Pulse | No — PConnect bridge is DS-agnostic; semantic HTML |
|
|
113
|
+
|
|
114
|
+
The component-specific skill file specifies which pattern applies.
|
|
115
|
+
|
|
116
|
+
**1. Check the component-specific skill file** — `{{SKILL_DIR}}/design-system-extension-skills/<ComponentName>.md` contains a **Design System Mapping** table where available.
|
|
117
|
+
|
|
118
|
+
**2. If the chosen design system is not listed** — use the component purpose and pattern category above to pick the closest DS primitive.
|
|
119
|
+
|
|
120
|
+
**3. Discover the API from installed packages** — confirm component names and inputs from the design system's type declarations before writing the component's markup. Search the design system package's type declarations for relevant component interfaces (e.g., look for files mentioning `Alert`, `Badge`, or `Avatar` and read the exported input interface to confirm available input names and types).
|
|
121
|
+
|
|
122
|
+
**4. Variant mapping** — always map Pega's variant names to your DS equivalent before passing to DS components:
|
|
123
|
+
|
|
124
|
+
| Pega variant | Meaning | Typical DS equivalent |
|
|
125
|
+
| ------------ | ---------------- | ----------------------------- |
|
|
126
|
+
| `urgent` | Critical / error | `error`, `danger`, `critical` |
|
|
127
|
+
| `warning` | Warning | `warning` |
|
|
128
|
+
| `info` | Informational | `info` |
|
|
129
|
+
| `success` | Success | `success` |
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Registration
|
|
134
|
+
|
|
135
|
+
Register DSE components in the project's component map:
|
|
136
|
+
|
|
137
|
+
1. **Import** the component's default export from its folder under the design-system-extension components directory.
|
|
138
|
+
2. **Add the component** to the object returned by the project's component registration function, using the component name as the key (must match the Pega registration key exactly). The component is spread alongside the base component map.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Existing DSE Components
|
|
143
|
+
|
|
144
|
+
| Component | PConnect? | Description |
|
|
145
|
+
| ----------------- | --------- | --------------------------------------- |
|
|
146
|
+
| AlertBanner | No | Alert/notification banner with variants |
|
|
147
|
+
| Banner | No | Promotional/informational banner |
|
|
148
|
+
| CaseSummaryFields | Yes | Summary fields for case header |
|
|
149
|
+
| DetailsFields | Yes | Key-value fields in a details region |
|
|
150
|
+
| FieldGroup | Yes | Grouped fields with label/legend |
|
|
151
|
+
| FieldGroupList | Yes | List of field groups (repeating) |
|
|
152
|
+
| FieldValueList | Yes | Single field-value pair display |
|
|
153
|
+
| Operator | No | Operator avatar + name display |
|
|
154
|
+
| Pulse | Yes | Activity feed/comments stream |
|
|
155
|
+
| RichTextEditor | Yes | Rich text editor (TinyMCE-based) |
|
|
156
|
+
| WssQuickCreate | No | WSS quick case creation component |
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Key Conventions
|
|
161
|
+
|
|
162
|
+
1. **Default export** — export the component as the module's default export.
|
|
163
|
+
2. **Flexible messages** — Always handle both `string` and `object` formats for text inputs (Pega may send either).
|
|
164
|
+
3. **No side effects** — DSE components should be pure renderers. No data fetching or mutations.
|
|
165
|
+
4. **Variant mapping** — Map Pega variant names (urgent, warning, etc.) to the design system's equivalents.
|
|
166
|
+
5. **Display modes** — If a DSE component is also used as a display mode by field components (e.g., FieldValueList), it should be simple and fast to render.
|
|
167
|
+
6. **Graceful fallbacks** — Handle missing/undefined inputs gracefully with defaults.
|
|
168
|
+
7. **Prefer plain CSS or the design system's built-in styling mechanism** over CSS-in-JS libraries, unless the project's conventions dictate otherwise.
|
|
169
|
+
8. **Accessible markup** — Use semantic HTML (fieldset/legend for groups, proper heading levels, ARIA labels).
|