![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@pega/custom-ui-components
Advanced tools
This document captures the basic steps of initializing Pega react project and cli commands to create, publish, and list custom components to constellation.
Make sure PRPC Infinity server is available for use.
node version: 12 and above
npm version: 6 and above
If you are not on ssl (https) then make sure to uncheck “Require TLS/SSL for REST services in this package” option from service packages
dev and ui service
$ npx @pega/custom-ui-components init
This will prompt for setting up the project with necessary details/fields
? Enter Project name Rigel
? Enter Organization name Orion
? Version 1.0.0
? Description Basic components for Rigel library in Orion system
? Git repository url (optional)
? Author Team Rigel
$ cd Rigel
$ npm start
Run command
$ npm run create
OR
$ npm run create MySearchbox
Enter component name: Component name to be created eq., MySearchbox
Note: This will skip all prompts and create component with only provided name. Details need to manually entered after component creation.
? Enter component name (required) Searchbox
? Enter module name (required) Herschel
? Enter component version 0.0.1
? Enter type of component Field
? Enter subtype of component DATA_CAPTURE
? Enter description for the component Herschel's search box to find galactic objectsSearchbox component is created in /Users/yourusername/Rigel/src/components/Searchbox
It will create a src/components folder and initializes necessary files required to build the component.
Below are files
```sh
├── src
├── components
├── Searchbox
├── index.js
├── demo.stories.js
├── config.json
```
*index.js* -> Actual component rendering logic here<br>
*demo.stories.js* -> Demo to see in the storybook<br>
*config.json* -> Mapping of properties for auto generated property panel configuration<br>
**NOTE:** Define type under config.json to Widget or Field, if we define type as Widget then component will be visible under Widgets across authoring and you will be able to author this component in landing pages as well.
2. Start storybook to see the demo
```sh
$ npm start
```
3. Do modify the source to build your own component. You can install and import third-party libs if required for your component.
$ npm run publish
options:
? Select component to publish Searchbox
? Enter pega server url https://localhost:8080/prweb
? Enter user id rigel-developer
? Enter password [hidden]
? Enter ruleset name Rigel-Basic
? Enter ruleset version 01-01-01
? Generate source map ? false
Once publish is successful, we can now use the newly published component in view authoring from App Studio.
Re-save ConstellationSvcURL DSS setting (in infinity) to sync components to constellation service.
NOTE:
FAQs
Utility for building custom UI components
The npm package @pega/custom-ui-components receives a total of 8 weekly downloads. As such, @pega/custom-ui-components popularity was classified as not popular.
We found that @pega/custom-ui-components demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.