Skip to content

Commit

Permalink
Merge pull request #465 from Vonage/export_refactor
Browse files Browse the repository at this point in the history
feat(infra): renamed export names to adhere to convention
  • Loading branch information
tveinfeld authored Nov 25, 2020
2 parents 75304c4 + b43fe75 commit 5f4adba
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions components/audio/src/vwc-audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const filterByValue = (filterValue: string) => (value: string) =>
* @element vwc-audio
*
*/
class VwcAudio extends HTMLElement {
class VWCAudio extends HTMLElement {
constructor() {
super();

Expand Down Expand Up @@ -175,5 +175,5 @@ class VwcAudio extends HTMLElement {
}
}

export default Audio;
customElements.define('vwc-audio', VwcAudio);
export { VWCAudio };
customElements.define('vwc-audio', VWCAudio);
6 changes: 3 additions & 3 deletions components/icon/src/vwc-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const noop = ()=> {};
* @prop {"small" | "medium" | "large"} [size="medium"] - The icon's size.
*
*/
class IconElement extends HTMLElement {
class VWCIcon extends HTMLElement {

constructor() {
super();
Expand Down Expand Up @@ -129,5 +129,5 @@ class IconElement extends HTMLElement {
}
}

window.customElements.define('vwc-icon', IconElement);
export { IconElement as Icon };
window.customElements.define('vwc-icon', VWCIcon);
export { VWCIcon };
6 changes: 3 additions & 3 deletions components/media-controller/src/vwc-media-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const byType = (typeName) => ({ type }) => type === typeName,
* @fires userScrubRequest - Fires while the user modifies the scrubber's knob location.
* @fires {number} userPlayPauseRequest - Fires when the user clicks the play/pause button, the "detail" event field will contain a number between zero and one describing the user's relative selected position.
*/
class MediaController extends HTMLElement {
class VWCMediaController extends HTMLElement {
constructor() {
super();

Expand Down Expand Up @@ -343,5 +343,5 @@ class MediaController extends HTMLElement {
}
}

export default MediaController;
customElements.define('vwc-media-controller', MediaController);
export { VWCMediaController };
customElements.define('vwc-media-controller', VWCMediaController);

0 comments on commit 5f4adba

Please sign in to comment.