1.1.7 • Published 3 years 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 installto install dependencies - Run
npm run build:watchfrom the rootcomponentsdirectory.watchenables you to apply changes without needing to rebuild when testing locally. - Edit the root
index.htmlfile to create and edit prompts - If you are using VS Code you can use Live Server to serve the root
index.htmlfile 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
versionof the package inpackage.json - Run
npm run buildto 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
Componentspackage you need to upgrade the version to the one you just published
Adding new components
- Create the new components in the
src/componentsfolder. - Export your component in
src/index.ts
1.1.1
3 years ago
1.1.0
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
1.0.14
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago