Skip to content

Conversation

@MattiasBuelens
Copy link
Collaborator

@MattiasBuelens MattiasBuelens commented Apr 28, 2025

Refactor all components to extend LitElement from Lit. This makes it much easier to change the rendered shadow DOM (using a render() method instead of manually manipulating DOM notes) and to link attributes to properties. It also opens up the way for features like localization.

The public API of all components remains identical, so customers shouldn't notice if they're just using the default UI or building a custom UI using our built-in components. I've also taken care to preserve the ability to pass a <template> element to the Button and Menu constructors for custom components that want to subclass those classes, however that ability is now deprecated.

For UMD and ES5 builds, the Lit library is bundled together with Open Video UI. For modern ESM builds, we don't bundle Lit, instead relying on the end user's bundler to do so. This is a potentially breaking change, so we should release this as 2.0.0.

We now also ship our own polyfill bundle (@theoplayer/web-ui/polyfills), to make it easier for customers to install the right set of polyfills on older browsers. This should also make it easier to add extra polyfills in the future, should the need arise.

To do:

  • Test on smart TVs. In particular, do we need extra polyfills on smart TVs running older browser engines?

@MattiasBuelens MattiasBuelens added the enhancement New feature or request label Apr 28, 2025
@MattiasBuelens MattiasBuelens force-pushed the lit branch 2 times, most recently from fcdae9d to 09cd407 Compare May 7, 2025 15:17
@GillesMoris-Dolby
Copy link
Contributor

Can we also include adding the settings menu to the default ui? 😄

@MattiasBuelens
Copy link
Collaborator Author

@GillesMoris-Dolby That's in 8a4ac0f. But yes, I still need to write up the changelog...

@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2025

🦋 Changeset detected

Latest commit: b129307

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MattiasBuelens MattiasBuelens force-pushed the lit branch 11 times, most recently from b3414e0 to 780dcb9 Compare September 24, 2025 16:25
@MattiasBuelens MattiasBuelens marked this pull request as ready for review September 24, 2025 16:28
@MattiasBuelens MattiasBuelens force-pushed the lit branch 3 times, most recently from 547fc6e to 743b504 Compare September 26, 2025 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants