@vetorzero/pts-custom-elements
Custom web components for PTS, built with StencilJS.
Components
Getting Started
bun install
bun run start
Building
bun run build
Testing
bun run test
Publishing
Versions are auto-published to npm via CI when a new Git tag is pushed. To release a new version:
npm version patch
git push --tags
This bumps the version in package.json, creates a Git tag, and pushes it — triggering the automated publish to npm.
Usage
Via unpkg (CDN)
Add the following script tag to your HTML. Components will be lazy-loaded as they are used:
<script type="module" src="https://unpkg.com/@vetorzero/pts-custom-elements"></script>
<pts-remote-picker
name="entity"
endpoint="https://api.example.com/remote-picker/entities"
></pts-remote-picker>
To pin a specific version:
<script type="module" src="https://unpkg.com/@vetorzero/pts-custom-elements@0.1.2/dist/pts-custom-elements/pts-custom-elements.esm.js"></script>
Via npm
bun add @vetorzero/pts-custom-elements
Then import the loader in your application entry point:
import '@vetorzero/pts-custom-elements/loader';