1.1.7 • Published 1 year ago
@userledio/components v1.1.7
Components Library
The components
package defines our prompt components. These components are used by both the sdk
and the frontend
packages.
Our prompt components are implemented using Web Components and powered by Lit.
//TODO: link to prompt documentation here
Prerequisites
- Ensure you have at least node 18 and npm 8 installed.
To test components locally
- Navigate to the components package e.g.
cd components
- Run
npm install
to install dependencies - Run
npm run build:watch
from the rootcomponents
directory.watch
enables you to apply changes without needing to rebuild when testing locally. - Edit the root
index.html
file to create and edit prompts - If you are using VS Code you can use Live Server to serve the root
index.html
file and visualise your prompt components
To publish a new version of the package
- Make the changes you require
- Test those changes locally (see section above)
- Manually upgrade the
version
of the package inpackage.json
- Run
npm run build
to build and package your latest changes - Run
npm publish
(validate the changes were deployed successful based on the message in the terminal) - To use your new changes in any package that uses the
Components
package you need to upgrade the version to the one you just published
Adding new components
- Create the new components in the
src/components
folder. - Export your component in
src/index.ts
1.1.1
1 year ago
1.1.0
1 year ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.0.14
1 year ago
1.0.13
1 year ago
1.0.12
1 year ago
1.0.11
1 year ago
1.0.10
1 year ago
1.0.9
1 year ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago