AlaskaAirlines / auro-hyperlink

Custom hyperlink element to connect webpages or data items to one another
https://auro.alaskaair.com/components/auro/hyperlink
Apache License 2.0
2 stars 2 forks source link

Support custom element unique naming and version control #151

Closed jason-capsule42 closed 1 year ago

jason-capsule42 commented 1 year ago

Is your feature request related to a problem? Please describe.

Refactor the component so the CE define is not part of the default export. This will allow for custom CE definitions that will improve the versioning issues we currently face.

Describe the solution you'd like

Separate the define(name) method out of the default export.

Create a new registerComponent(name) method in index.js for easy registration of uniquely named components.

Cleanup the build commands and tests to account for new usage.

Additional context

This article gives a fantastic explanation of the issue: https://dev.to/florianrappl/versioning-web-components-3bda