@theoplayer/web-ui 1.4.0 → 1.6.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 ADDED
@@ -0,0 +1,62 @@
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.6.0 (2024-02-08)
14
+
15
+ - 🚀 Introducing [Open Video UI for React](https://www.npmjs.com/package/@theoplayer/react-ui). ([#48](https://github.com/THEOplayer/web-ui/pull/48))
16
+ - Idiomatic React components make the Open Video UI feel right at home in your existing React web app.
17
+ - 🚀 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))
18
+ - 🚀 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)).
19
+
20
+ ## v1.5.0 (2023-11-27)
21
+
22
+ - 🚀 Added support for smart TVs. ([#40](https://github.com/THEOplayer/web-ui/pull/40))
23
+ - Updated `<theoplayer-default-ui>` to automatically switch to an optimized layout when running on a smart TV.
24
+ 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.
25
+ - Added support for navigating the UI using a TV remote control.
26
+ - Added a `tv-focus` attribute to specify which UI element should receive the initial focus when showing the controls on a TV.
27
+ In the default UI, initial focus is on the seek bar.
28
+ - 🚀 Allow overriding more CSS properties of `<theoplayer-default-ui>`. ([#42](https://github.com/THEOplayer/web-ui/pull/42))
29
+ - 💅 Renamed project to "THEOplayer Open Video UI for Web". ([#43](https://github.com/THEOplayer/web-ui/pull/43))
30
+
31
+ ## v1.4.0 (2023-10-04)
32
+
33
+ - 💥 **Breaking Change**: This project now requires THEOplayer version 6.0.0 or higher.
34
+ - 🚀 Open Video UI now imports THEOplayer as a JavaScript module using `import from 'theoplayer/chromeless'`.
35
+ See the [README](./README.md#installation) for updated installation instructions.
36
+ - 🐛 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))
37
+
38
+ ## v1.3.0 (2023-05-16)
39
+
40
+ - 💥 **Breaking Change**: This project now requires THEOplayer version 5.1.0 or higher.
41
+ - 🏠 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))
42
+ - 🐛 Fix `has-error` attribute not cleared on source change ([#29](https://github.com/THEOplayer/web-ui/pull/29))
43
+
44
+ ## v1.2.0 (2023-04-26)
45
+
46
+ - 🚀 Improved support for advertisements ([#28](https://github.com/THEOplayer/web-ui/pull/28))
47
+ - Reworked the ad control bar in `<theoplayer-default-ui>`.
48
+ - 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.
49
+ - `<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.)
50
+ - 🐛 When the player changes sources, any open menu is now automatically closed
51
+
52
+ ## v1.1.0 (2023-04-12)
53
+
54
+ - 💥 **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](./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))
55
+ - 🚀 Added support for THEOplayer 5.0
56
+ - 💅 Improved accessibility ([#21](https://github.com/THEOplayer/web-ui/pull/21))
57
+ - 💅 Make menus fill entire player when player is small ([#22](https://github.com/THEOplayer/web-ui/pull/22))
58
+ - 🐛 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))
59
+
60
+ ## v1.0.0 (2023-04-05)
61
+
62
+ - 🚀 Initial release
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 THEO Technologies
3
+ Copyright (c) 2024 THEO Technologies
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # THEOplayer Web UI
1
+ # THEOplayer Open Video UI for Web
2
2
 
3
3
  A component library for building a world-class video player experience powered by
4
4
  the [THEOplayer Web SDK](https://www.theoplayer.com/product/theoplayer).
@@ -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
- > **Note**
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
  | ![Screenshot on desktop](https://raw.githubusercontent.com/THEOplayer/web-ui/v1.0.0/docs/assets/screenshot-desktop.png) | ![Screenshot on mobile](https://raw.githubusercontent.com/THEOplayer/web-ui/v1.0.0/docs/assets/screenshot-mobile.png) |
@@ -20,10 +20,10 @@ The current THEOplayer Web SDK comes with a built-in UI based on [video.js](http
20
20
 
21
21
  - Designed with customization in mind. With the old UI, customizing anything beyond changing some text and icon colors was difficult, and could break in unpredictable ways when updating to a new THEOplayer version. With the new UI, all components can be customized in a variety of ways with well-documented attributes and CSS custom properties.
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
- - 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 THEOplayer Web UI.
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
- > **Note**
26
- > THEOplayer Web UI 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.
25
+ > [!NOTE]
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
29
29
 
@@ -35,7 +35,7 @@ The current THEOplayer Web SDK comes with a built-in UI based on [video.js](http
35
35
  ```sh
36
36
  npm install theoplayer@npm:@theoplayer/basic-hls
37
37
  ```
38
- 2. Install the THEOplayer Web UI.
38
+ 2. Install the Open Video UI for Web.
39
39
  ```sh
40
40
  npm install @theoplayer/web-ui
41
41
  ```
@@ -49,7 +49,7 @@ The current THEOplayer Web SDK comes with a built-in UI based on [video.js](http
49
49
  ```js
50
50
  import { DefaultUI } from '@theoplayer/web-ui';
51
51
  ```
52
- The Web UI will import THEOplayer from `theoplayer/chromeless`.
52
+ Open Video UI will import THEOplayer from `theoplayer/chromeless`.
53
53
  If you're using a bundler such as Webpack or Rollup, this dependency should automatically get bundled with your web app.
54
54
  Alternatively, you can use an [import map](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap) to let the browser resolve it:
55
55
  ```html
@@ -127,9 +127,9 @@ See [docs/examples/custom-ui.html](https://github.com/THEOplayer/web-ui/blob/mai
127
127
 
128
128
  # Legacy browser support
129
129
 
130
- By default, THEOplayer Web UI targets modern browsers that support modern JavaScript syntax (such as [async/await](https://caniuse.com/async-functions)) and native [Custom Elements](https://caniuse.com/custom-elementsv1). This keeps the download size small, so your viewers can spend less time waiting for your page to load and start watching their video faster.
130
+ By default, Open Video UI for Web targets modern browsers that support modern JavaScript syntax (such as [async/await](https://caniuse.com/async-functions)) and native [Custom Elements](https://caniuse.com/custom-elementsv1). This keeps the download size small, so your viewers can spend less time waiting for your page to load and start watching their video faster.
131
131
 
132
- On older browsers (such as Internet Explorer 11 and older smart TVs), you need to load a different version of the THEOplayer Web UI that uses older JavaScript syntax. You also need to load additional polyfills for missing features such as Promises or Custom Elements. We recommend [Polyfill.io](https://polyfill.io/) and [Web Components Polyfills](https://github.com/webcomponents/polyfills) for these.
132
+ On older browsers (such as Internet Explorer 11 and older smart TVs), you need to load a different version of the Open Video UI that uses older JavaScript syntax. You also need to load additional polyfills for missing features such as Promises or Custom Elements. We recommend [Polyfill.io](https://polyfill.io/) and [Web Components Polyfills](https://github.com/webcomponents/polyfills) for these.
133
133
 
134
134
  - Option 1: in your HTML. This uses [differential serving](https://css-tricks.com/differential-serving/) so modern browsers will load the modern build (with `type="module"`), while legacy browsers will load the legacy build (with `nomodule`).
135
135
 
@@ -153,7 +153,7 @@ On older browsers (such as Internet Explorer 11 and older smart TVs), you need t
153
153
  <script nomodule src="/path/to/node_modules/@theoplayer/web-ui/dist/THEOplayerUI.es5.js"></script>
154
154
  ```
155
155
 
156
- - Option 2: in your JavaScript. This will load the legacy build on both modern and legacy browsers, which is suboptimal. Instead, we recommend configuring your bundler to produce a modern and legacy build of your entire web app, and to import the appropriate version of THEOplayer Web UI for each build flavor.
156
+ - Option 2: in your JavaScript. This will load the legacy build on both modern and legacy browsers, which is suboptimal. Instead, we recommend configuring your bundler to produce a modern and legacy build of your entire web app, and to import the appropriate version of Open Video UI for each build flavor.
157
157
 
158
158
  ```js
159
159
  import '@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js';