1.1.7 • Published 1 year ago

@userledio/components v1.1.7

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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

  1. Ensure you have at least node 18 and npm 8 installed.

To test components locally

  1. Navigate to the components package e.g. cd components
  2. Run npm install to install dependencies
  3. Run npm run build:watch from the root components directory. watch enables you to apply changes without needing to rebuild when testing locally.
  4. Edit the root index.html file to create and edit prompts
  5. 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

  1. Make the changes you require
  2. Test those changes locally (see section above)
  3. Manually upgrade the version of the package in package.json
  4. Run npm run build to build and package your latest changes
  5. Run npm publish (validate the changes were deployed successful based on the message in the terminal)
  6. 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

  1. Create the new components in the src/components folder.
  2. 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