@theoplayer/web-ui 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +69 -0
- package/LICENSE.md +1 -1
- package/README.md +2 -2
- package/dist/THEOplayerUI.d.ts +311 -3
- package/dist/THEOplayerUI.es5.js +2 -2
- package/dist/THEOplayerUI.es5.mjs +4 -1
- package/dist/THEOplayerUI.js +21 -21
- package/dist/THEOplayerUI.js.map +1 -1
- package/dist/THEOplayerUI.mjs +23 -20
- package/dist/THEOplayerUI.mjs.map +1 -1
- package/dist/THEOplayerUI.node.mjs +32 -0
- package/dist/THEOplayerUI.node.mjs.map +1 -0
- package/package.json +25 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
> **Tags:**
|
|
4
|
+
>
|
|
5
|
+
> - 💥 Breaking Change
|
|
6
|
+
> - 🚀 New Feature
|
|
7
|
+
> - 🐛 Bug Fix
|
|
8
|
+
> - 👎 Deprecation
|
|
9
|
+
> - 📝 Documentation
|
|
10
|
+
> - 🏠 Internal
|
|
11
|
+
> - 💅 Polish
|
|
12
|
+
|
|
13
|
+
## v1.7.0 (2024-02-15)
|
|
14
|
+
|
|
15
|
+
- 🚀 Added support for loading in Node for static site generation (SSG) or server-side rendering (SSR). ([#50](https://github.com/THEOplayer/web-ui/pull/50))
|
|
16
|
+
- ⚠️ Although the Node entry point exports all custom element classes as usual, attempting to actually construct those classes will result in errors. Most dependencies are either replaced with stubs (using [`@lit-labs/ssr-dom-shim`](https://lit.dev/docs/ssr/dom-emulation/)) or removed altogether (such as THEOplayer itself).
|
|
17
|
+
- This should always be used together with an SSG or SSR solution. For example, you can use [Open Video UI for React](https://www.npmjs.com/package/@theoplayer/react-ui) together with [React server rendering](https://react.dev/reference/react-dom/server).
|
|
18
|
+
- 🐛 Fixed an issue where `<theoplayer-ui>` could throw an error when the player changes sources before all custom elements are properly registered. ([#49](https://github.com/THEOplayer/web-ui/pull/49))
|
|
19
|
+
|
|
20
|
+
## v1.6.0 (2024-02-08)
|
|
21
|
+
|
|
22
|
+
- 🚀 Introducing [Open Video UI for React](https://www.npmjs.com/package/@theoplayer/react-ui). ([#48](https://github.com/THEOplayer/web-ui/pull/48))
|
|
23
|
+
- Idiomatic React components make the Open Video UI feel right at home in your existing React web app.
|
|
24
|
+
- 🚀 Added support for advertisements while casting to Chromecast. This requires THEOplayer version 6.8.0 or higher. ([#47](https://github.com/THEOplayer/web-ui/pull/47))
|
|
25
|
+
- 🚀 Added `theoplayerready` event to `<theoplayer-default-ui>` and `<theoplayer-ui>`, which is fired once the backing THEOplayer instance is created. ([#48](https://github.com/THEOplayer/web-ui/pull/48)).
|
|
26
|
+
|
|
27
|
+
## v1.5.0 (2023-11-27)
|
|
28
|
+
|
|
29
|
+
- 🚀 Added support for smart TVs. ([#40](https://github.com/THEOplayer/web-ui/pull/40))
|
|
30
|
+
- Updated `<theoplayer-default-ui>` to automatically switch to an optimized layout when running on a smart TV.
|
|
31
|
+
For custom UIs using `<theoplayer-ui>`, you can use the `tv-only` and `tv-hidden` attributes to show or hide specific UI elements on smart TVs.
|
|
32
|
+
- Added support for navigating the UI using a TV remote control.
|
|
33
|
+
- Added a `tv-focus` attribute to specify which UI element should receive the initial focus when showing the controls on a TV.
|
|
34
|
+
In the default UI, initial focus is on the seek bar.
|
|
35
|
+
- 🚀 Allow overriding more CSS properties of `<theoplayer-default-ui>`. ([#42](https://github.com/THEOplayer/web-ui/pull/42))
|
|
36
|
+
- 💅 Renamed project to "THEOplayer Open Video UI for Web". ([#43](https://github.com/THEOplayer/web-ui/pull/43))
|
|
37
|
+
|
|
38
|
+
## v1.4.0 (2023-10-04)
|
|
39
|
+
|
|
40
|
+
- 💥 **Breaking Change**: This project now requires THEOplayer version 6.0.0 or higher.
|
|
41
|
+
- 🚀 Open Video UI now imports THEOplayer as a JavaScript module using `import from 'theoplayer/chromeless'`.
|
|
42
|
+
See the [README](https://github.com/THEOplayer/web-ui/blob/v1.4.0/README.md#installation) for updated installation instructions.
|
|
43
|
+
- 🐛 When the player's source is empty, the UI will no longer attempt to play when clicked. ([#37](https://github.com/THEOplayer/web-ui/pull/37))
|
|
44
|
+
|
|
45
|
+
## v1.3.0 (2023-05-16)
|
|
46
|
+
|
|
47
|
+
- 💥 **Breaking Change**: This project now requires THEOplayer version 5.1.0 or higher.
|
|
48
|
+
- 🏠 This project now depends on the chromeless version of THEOplayer, rather than the full version which includes the old video.js-based UI. ([#31](https://github.com/THEOplayer/web-ui/pull/31))
|
|
49
|
+
- 🐛 Fix `has-error` attribute not cleared on source change ([#29](https://github.com/THEOplayer/web-ui/pull/29))
|
|
50
|
+
|
|
51
|
+
## v1.2.0 (2023-04-26)
|
|
52
|
+
|
|
53
|
+
- 🚀 Improved support for advertisements ([#28](https://github.com/THEOplayer/web-ui/pull/28))
|
|
54
|
+
- Reworked the ad control bar in `<theoplayer-default-ui>`.
|
|
55
|
+
- Added a `show-ad-markers` attribute to `<theoplayer-time-range>`, to show markers on the progress bar indicating when the content will be interrupted by an advertisement.
|
|
56
|
+
- `<theoplayer-ad-skip-button>` and `<theoplayer-ad-clickthrough-button>` are automatically hidden while playing a Google IMA ad. (This is unfortunately necessary, because Google IMA doesn't provide a way to modify or replace its own buttons.)
|
|
57
|
+
- 🐛 When the player changes sources, any open menu is now automatically closed
|
|
58
|
+
|
|
59
|
+
## v1.1.0 (2023-04-12)
|
|
60
|
+
|
|
61
|
+
- 💥 **Breaking Change**: This project now targets modern browsers, so `dist/THEOplayerUI.js` and `dist/THEOplayerUI.mjs` now use ES2017 syntax (such as `class` and `async`/`await`). See "Legacy browser support" in the [README](https://github.com/THEOplayer/web-ui/blob/v1.1.0/README.md) for more information about targeting older browsers. ([#26](https://github.com/THEOplayer/web-ui/issues/26), [#27](https://github.com/THEOplayer/web-ui/pull/27))
|
|
62
|
+
- 🚀 Added support for THEOplayer 5.0
|
|
63
|
+
- 💅 Improved accessibility ([#21](https://github.com/THEOplayer/web-ui/pull/21))
|
|
64
|
+
- 💅 Make menus fill entire player when player is small ([#22](https://github.com/THEOplayer/web-ui/pull/22))
|
|
65
|
+
- 🐛 Ensure `player` property is initialized immediately when calling `new UIContainer(configuration)` with a valid player configuration ([#24](https://github.com/THEOplayer/web-ui/pull/24))
|
|
66
|
+
|
|
67
|
+
## v1.0.0 (2023-04-05)
|
|
68
|
+
|
|
69
|
+
- 🚀 Initial release
|
package/LICENSE.md
CHANGED
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ the [THEOplayer Web SDK](https://www.theoplayer.com/product/theoplayer).
|
|
|
7
7
|
- Built using [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components), so works great with (or without) any app framework.
|
|
8
8
|
- Easy to customize: use HTML to lay out your controls, and CSS to style them.
|
|
9
9
|
|
|
10
|
-
>
|
|
10
|
+
> [!NOTE]
|
|
11
11
|
> This project is under active development. While we believe it's ready for use in production, not all features are available in this first release. If you find a problem or have an idea for a new feature, don't hesitate to [open an issue](https://github.com/THEOplayer/web-ui/issues)!
|
|
12
12
|
|
|
13
13
|
|  |  |
|
|
@@ -22,7 +22,7 @@ The current THEOplayer Web SDK comes with a built-in UI based on [video.js](http
|
|
|
22
22
|
- Built for the modern web. The old UI was built at a time when Internet Explorer was still a major browser, so it couldn't use newer web technologies. The new UI breaks with the past and takes full advantage of Web Components, so it works well in modern web apps.
|
|
23
23
|
- Developed in the open. Although the old UI is based on the open-source video.js library, any custom components bundled with THEOplayer remained closed-source. With the new UI, the source code of all components is publicly available. Advanced users can learn about the inner workings of each component, modify them, and even contribute their changes back to Open Video UI.
|
|
24
24
|
|
|
25
|
-
>
|
|
25
|
+
> [!NOTE]
|
|
26
26
|
> THEOplayer Open Video UI for Web currently exists separately from the old THEOplayer UI. In the future, we hope to deprecate and remove the old UI, and ship this new UI as default UI for the THEOplayer Web SDK.
|
|
27
27
|
|
|
28
28
|
## Installation
|