@theoplayer/web-ui 1.7.0 → 1.7.2
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 +9 -0
- package/README.md +5 -3
- package/dist/THEOplayerUI.d.ts +37 -8
- package/dist/THEOplayerUI.es5.js +2 -2
- package/dist/THEOplayerUI.es5.mjs +2 -2
- package/dist/THEOplayerUI.js +20 -20
- package/dist/THEOplayerUI.js.map +1 -1
- package/dist/THEOplayerUI.mjs +20 -20
- package/dist/THEOplayerUI.mjs.map +1 -1
- package/dist/THEOplayerUI.node.mjs +16 -16
- package/dist/THEOplayerUI.node.mjs.map +1 -1
- package/package.json +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,15 @@
|
|
|
10
10
|
> - 🏠 Internal
|
|
11
11
|
> - 💅 Polish
|
|
12
12
|
|
|
13
|
+
## v1.7.2 (2024-03-18)
|
|
14
|
+
|
|
15
|
+
- 🚀 Added `<theoplayer-slot-container>`. ([#55](https://github.com/THEOplayer/web-ui/pull/55))
|
|
16
|
+
|
|
17
|
+
## v1.7.1 (2024-02-15)
|
|
18
|
+
|
|
19
|
+
- 💅 Export `version` in public API. ([#53](https://github.com/THEOplayer/web-ui/pull/53))
|
|
20
|
+
- 💅 Allow importing `@theoplayer/web-ui/package.json`. ([#53](https://github.com/THEOplayer/web-ui/pull/53))
|
|
21
|
+
|
|
13
22
|
## v1.7.0 (2024-02-15)
|
|
14
23
|
|
|
15
24
|
- 🚀 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))
|
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# THEOplayer Open Video UI for Web
|
|
2
2
|
|
|
3
|
+
[](https://www.npmjs.com/package/@theoplayer/web-ui)
|
|
4
|
+
[](https://github.com/THEOplayer/web-ui/actions/workflows/ci.yml)
|
|
5
|
+
[](https://theoplayer.github.io/web-ui/api/)
|
|
6
|
+
[](https://github.com/THEOplayer/web-ui/issues)
|
|
7
|
+
|
|
3
8
|
A component library for building a world-class video player experience powered by
|
|
4
9
|
the [THEOplayer Web SDK](https://www.theoplayer.com/product/theoplayer).
|
|
5
10
|
|
|
@@ -7,9 +12,6 @@ the [THEOplayer Web SDK](https://www.theoplayer.com/product/theoplayer).
|
|
|
7
12
|
- Built using [Web Components](https://developer.mozilla.org/en-US/docs/Web/Web_Components), so works great with (or without) any app framework.
|
|
8
13
|
- Easy to customize: use HTML to lay out your controls, and CSS to style them.
|
|
9
14
|
|
|
10
|
-
> [!NOTE]
|
|
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
|
-
|
|
13
15
|
|  |  |
|
|
14
16
|
| :---------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------: |
|
|
15
17
|
| Desktop | Mobile |
|
package/dist/THEOplayerUI.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* THEOplayer Open Video UI for Web (v1.7.
|
|
2
|
+
* THEOplayer Open Video UI for Web (v1.7.2)
|
|
3
3
|
* License: MIT
|
|
4
4
|
*/
|
|
5
5
|
import { ChromelessPlayer, VideoQuality, THEOplayerError, MediaTrack, TextTrack, TextTracksList, EdgeStyle, VendorCast, CastState, PlayerConfiguration, SourceDescription } from 'theoplayer/chromeless';
|
|
@@ -1623,6 +1623,30 @@ declare global {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
}
|
|
1625
1625
|
|
|
1626
|
+
/**
|
|
1627
|
+
* `<theoplayer-slot-container>` - A container that can be assigned to a slot,
|
|
1628
|
+
* and behaves as if all its children are directly assigned to that slot.
|
|
1629
|
+
*
|
|
1630
|
+
* This behaves approximately like a regular `<div>` with style `display: contents`,
|
|
1631
|
+
* but receives some special treatment from e.g. {@link MenuGroup | `<theoplayer-menu-group>`}
|
|
1632
|
+
* which normally expects its {@link Menu | menu}s to be slotted in as direct children.
|
|
1633
|
+
* Those menus can also be children of a `<theoplayer-slot-container>` instead.
|
|
1634
|
+
*
|
|
1635
|
+
* This is an internal component, used mainly by Open Video UI for React.
|
|
1636
|
+
* You shouldn't need this under normal circumstances.
|
|
1637
|
+
*
|
|
1638
|
+
* @group Components
|
|
1639
|
+
* @internal
|
|
1640
|
+
*/
|
|
1641
|
+
declare class SlotContainer extends HTMLElement {
|
|
1642
|
+
constructor();
|
|
1643
|
+
}
|
|
1644
|
+
declare global {
|
|
1645
|
+
interface HTMLElementTagNameMap {
|
|
1646
|
+
'theoplayer-slot-container': SlotContainer;
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
|
|
1626
1650
|
declare const AdDisplay_base: {
|
|
1627
1651
|
new (): HTMLElement;
|
|
1628
1652
|
prototype: HTMLElement;
|
|
@@ -1745,9 +1769,9 @@ declare const READY_EVENT: "theoplayerready";
|
|
|
1745
1769
|
* ## Usage
|
|
1746
1770
|
*
|
|
1747
1771
|
* 1. Create a `<theoplayer-default-ui>` element.
|
|
1748
|
-
*
|
|
1749
|
-
*
|
|
1750
|
-
*
|
|
1772
|
+
* 2. Set its `configuration` attribute or property to a valid player configuration.
|
|
1773
|
+
* 3. Set its `source` attribute or property to a valid stream source.
|
|
1774
|
+
* 4. Optionally, customize the player using CSS custom properties and/or extra controls.
|
|
1751
1775
|
*
|
|
1752
1776
|
* ## Customization
|
|
1753
1777
|
*
|
|
@@ -1911,10 +1935,10 @@ declare function registerExtension(extension: Extension): void;
|
|
|
1911
1935
|
* ## Usage
|
|
1912
1936
|
*
|
|
1913
1937
|
* 1. Create a `<theoplayer-ui>` element.
|
|
1914
|
-
*
|
|
1938
|
+
* 2. Place your UI elements as children of the `<theoplayer-ui>`.
|
|
1915
1939
|
* Set their `slot` attribute to one of the defined slots (see below) to place them in the layout.
|
|
1916
|
-
*
|
|
1917
|
-
*
|
|
1940
|
+
* 3. Set its `configuration` attribute or property to a valid player configuration.
|
|
1941
|
+
* 4. Set its `source` attribute or property to a valid stream source.
|
|
1918
1942
|
*
|
|
1919
1943
|
* ## Customization
|
|
1920
1944
|
*
|
|
@@ -2135,5 +2159,10 @@ declare global {
|
|
|
2135
2159
|
}
|
|
2136
2160
|
}
|
|
2137
2161
|
|
|
2138
|
-
|
|
2162
|
+
/**
|
|
2163
|
+
* The version of Open Video UI for Web.
|
|
2164
|
+
*/
|
|
2165
|
+
declare const version: string;
|
|
2166
|
+
|
|
2167
|
+
export { ActiveQualityDisplay, AdClickThroughButton, AdCountdown, AdDisplay, AdSkipButton, AirPlayButton, Attribute, Button, ButtonOptions, CastButton, ChromecastButton, ChromecastDisplay, CloseMenuButton, ColorStops, Constructor, ControlBar, DefaultUI, DeviceType, DurationDisplay, ErrorDisplay, Extension, ExtensionSlot, FullscreenButton, GestureReceiver, LanguageMenu, LanguageMenuButton, LinkButton, LiveButton, LoadingIndicator, MediaTrackRadioButton, Menu, MenuButton, MenuGroup, MenuGroupOptions, MenuOptions, MuteButton, PlayButton, PlaybackRateDisplay, PlaybackRateMenu, PlaybackRateMenuButton, PlaybackRateRadioGroup, PreviewThumbnail, PreviewTimeDisplay, QualityRadioButton, QualityRadioGroup, RadioButton, RadioGroup, Range, RangeOptions, SeekButton, SettingsMenu, SettingsMenuButton, SlotContainer, StateReceiverElement, StateReceiverMixin, StateReceiverPropertyMap, StreamType, TextTrackOffRadioButton, TextTrackRadioButton, TextTrackStyleDisplay, TextTrackStyleMap, TextTrackStyleMenu, TextTrackStyleOption, TextTrackStyleRadioGroup, TextTrackStyleResetButton, TimeDisplay, TimeRange, TrackRadioGroup, TrackType, UIContainer, VolumeLevel, VolumeRange, buttonTemplate, linkButtonTemplate, menuGroupTemplate, menuTemplate, rangeTemplate, registerExtension, version };
|
|
2139
2168
|
export as namespace THEOplayerUI;
|