Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@cpelements/cp-documentation
Advanced tools
Encapsulate customer portal documentation content, styles it in a way that doesn't get contaminated from the parent DOM styles, and the content may be loaded dynamically from an API (this feature is in alpha, waiting for the FCC project to make assemblies API).
Intended use is to wrap the body of documentation content that should be styled by rhdocs.css.
<cp-documentation>
<!-- Default slot -->
<h2>Documentation content compiled from AsciiDoc.</h2>
</cp-documentation>
cpDocumentation.loadData()
Tells component to load data from the pfe-endpoint URL.
cpDocumentation.getData()
Returns the module data from the endpoint.
This element takes all content inside of it, does NOT put it into a slot, and copies it into the shadow DOM to protect it from outside styles.
pfe-loaded
: @todo ALPHA Used to indicate that the correct content has already been loaded (dynamically from an endpoint, or server side)pfe-endpoint
: @todo ALPHA The URL to get the content from, the component makes assumptions about how the response is structured.pfe-css
: The URL of CSS that should be inserted into the shadow DOM.Events have not been implemented yet.
@todo
@todo
This wraps content, it doesn't do anything that enhances or gets in the way of accessibility.
None
`npm start`
`npm run test`
`npm run build`
From the PFElements root directory, run:
`npm run demo`
Documentation (and all PFElements) use Prettier to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can integrate your editor with Prettier to have the style rules applied on every save.
FAQs
Documentation element for PatternFly Elements
The npm package @cpelements/cp-documentation receives a total of 61 weekly downloads. As such, @cpelements/cp-documentation popularity was classified as not popular.
We found that @cpelements/cp-documentation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.