@theoplayer/web-ui 1.7.1 → 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 CHANGED
@@ -10,6 +10,10 @@
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
+
13
17
  ## v1.7.1 (2024-02-15)
14
18
 
15
19
  - 💅 Export `version` in public API. ([#53](https://github.com/THEOplayer/web-ui/pull/53))
package/README.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # THEOplayer Open Video UI for Web
2
2
 
3
+ [![NPM version](https://img.shields.io/npm/v/%40theoplayer%2Fweb-ui)](https://www.npmjs.com/package/@theoplayer/web-ui)
4
+ [![Build status](https://github.com/THEOplayer/web-ui/workflows/CI/badge.svg)](https://github.com/THEOplayer/web-ui/actions/workflows/ci.yml)
5
+ [![API docs](https://img.shields.io/badge/api%20docs-orange.svg)](https://theoplayer.github.io/web-ui/api/)
6
+ [![GitHub issues](https://img.shields.io/github/issues/THEOplayer/web-ui)](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
  | ![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) |
14
16
  | :---------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------: |
15
17
  | Desktop | Mobile |
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * THEOplayer Open Video UI for Web (v1.7.1)
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;
@@ -2140,5 +2164,5 @@ declare global {
2140
2164
  */
2141
2165
  declare const version: string;
2142
2166
 
2143
- 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, 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 };
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 };
2144
2168
  export as namespace THEOplayerUI;