@glomex/integration-web-component 1.1405.0 → 1.1405.1
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/dist/index.d.ts +20 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare interface Ad {
|
|
|
14
14
|
nonLinearHeight?: number;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg"];
|
|
17
|
+
export declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg"];
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* An additional API script definition that should be executed for this media-item.
|
|
@@ -122,7 +122,7 @@ export declare interface Consent {
|
|
|
122
122
|
/**
|
|
123
123
|
* Selected source of the given content.
|
|
124
124
|
*/
|
|
125
|
-
declare interface ContentSource {
|
|
125
|
+
export declare interface ContentSource {
|
|
126
126
|
id: string;
|
|
127
127
|
mimetype: Mimetype;
|
|
128
128
|
src: string;
|
|
@@ -159,6 +159,8 @@ declare interface ExperimentVariant {
|
|
|
159
159
|
contentOverride: Record<string, unknown>;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
+
export declare const EXTERNAL_PLAYER_NAME = "turbo-player";
|
|
163
|
+
|
|
162
164
|
/**
|
|
163
165
|
* A media item web component that allows to define an external media item. It can be placed
|
|
164
166
|
* inside the integration element. For more complex use cases, see {@link MediaItemElement}.
|
|
@@ -1060,6 +1062,8 @@ export declare interface IntegrationProperties {
|
|
|
1060
1062
|
extraContext?: ExtraContext;
|
|
1061
1063
|
}
|
|
1062
1064
|
|
|
1065
|
+
export declare const INTERNAL_PREFIX = "turbo";
|
|
1066
|
+
|
|
1063
1067
|
export declare enum KnownMarkerName {
|
|
1064
1068
|
PREROLL = "preroll",
|
|
1065
1069
|
MIDROLL = "midroll",
|
|
@@ -1505,6 +1509,15 @@ export declare enum Mimetype {
|
|
|
1505
1509
|
JOYN = "application/x-joyn-source"
|
|
1506
1510
|
}
|
|
1507
1511
|
|
|
1512
|
+
export declare enum Origin {
|
|
1513
|
+
DEFAULT = "turbo-integration",
|
|
1514
|
+
SCRIPT = "turbo-script",
|
|
1515
|
+
IFRAME = "turbo-iframe",
|
|
1516
|
+
FULLPAGE = "turbo-fullpage",
|
|
1517
|
+
AMP_VIDEO_IFRAME = "turbo-amp-video-iframe",
|
|
1518
|
+
AMP_IFRAME = "turbo-amp-iframe"
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1508
1521
|
export declare interface Page {
|
|
1509
1522
|
url: string;
|
|
1510
1523
|
searchParams: Record<string, string>;
|
|
@@ -1530,14 +1543,16 @@ export declare enum PresentationMode {
|
|
|
1530
1543
|
AMP_DOCK = "amp-dock"
|
|
1531
1544
|
}
|
|
1532
1545
|
|
|
1533
|
-
declare type PresentationModeString = `${PresentationMode}`;
|
|
1546
|
+
export declare type PresentationModeString = `${PresentationMode}`;
|
|
1547
|
+
|
|
1548
|
+
export declare const PUBLIC_PREFIX = "glomex";
|
|
1534
1549
|
|
|
1535
1550
|
export declare enum ScriptType {
|
|
1536
1551
|
INTEGRATION_CONFIGS = "application/glomex-integration-configs+json",
|
|
1537
1552
|
EXTERNAL_MEDIA_ITEM = "application/glomex-external-media-item+json"
|
|
1538
1553
|
}
|
|
1539
1554
|
|
|
1540
|
-
declare enum StartMethod {
|
|
1555
|
+
export declare enum StartMethod {
|
|
1541
1556
|
/** Autoplay occured for above the fold content */
|
|
1542
1557
|
PRE_CLICK = "pre-click-to-play",
|
|
1543
1558
|
/** Playback started with click */
|
|
@@ -1584,6 +1599,7 @@ declare interface TextTrack_2 {
|
|
|
1584
1599
|
*/
|
|
1585
1600
|
default?: boolean;
|
|
1586
1601
|
}
|
|
1602
|
+
export { TextTrack_2 as TextTrack }
|
|
1587
1603
|
|
|
1588
1604
|
export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
|
|
1589
1605
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(r=R||(R={})).DEFAULT="turbo-integration",r.SCRIPT="turbo-script",r.IFRAME="turbo-iframe",r.FULLPAGE="turbo-fullpage",r.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",r.AMP_IFRAME="turbo-amp-iframe",(T=m||(m={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",(_=C||(C={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo-player";(N=L||(L={})).HIDDEN="hidden",N.INLINE="inline",N.DOCK="dock",N.LIGHTBOX="lightbox",N.LIGHTBOX_EXTERNAL="lightbox-external",N.FULLSCREEN="fullscreen",N.AMP_DOCK="amp-dock",(I=u||(u={})).READY="ready",I.INTEGRATION_ABORT="integrationabort",I.INTEGRATION_AD_AVAILABLE="integrationadavailable",I.INTEGRATION_PASSBACK="integrationpassback",I.USER_UPDATE_CONSENT="userupdateconsent",I.PLAYLIST_UPDATE="playlistupdate",I.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",I.CONTENT_SELECT="contentselect",I.CONTENT_START="contentstart",I.CONTENT_IMPRESSION="contentimpression",I.CONTENT_BUFFERING_START="contentbufferingstart",I.CONTENT_BUFFERING_END="contentbufferingend",I.CONTENT_STOP="contentstop",I.CONTENT_ERROR="contenterror",I.CONTENT_MARKER_REACHED="contentmarkerreached",I.CONTENT_TIME_UPDATE="timeupdate",I.CONTENT_SEEKING="seeking",I.CONTENT_SEEKED="seeked",I.CONTENT_PLAY="play",I.CONTENT_PAUSE="pause",I.CONTENT_VOLUME_CHANGE="volumechange",I.CONTENT_ENDED="ended",I.AD_IMPRESSION="adimpression",I.AD_BUFFERING_START="adbufferingstart",I.AD_BUFFERING_END="adbufferingend",I.AD_TIME_UPDATE="adtimeupdate",I.AD_VOLUME_CHANGE="advolumechange",I.AD_PAUSED="adpaused",I.AD_RESUMED="adresumed",I.AD_CLICK="adclick",I.AD_SKIPPED="adskipped",I.AD_COMPLETE="adcomplete",I.UI_INTERACTION="uiinteraction",(l=S||(S={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(s=P||(P={})).PREROLL="preroll",s.MIDROLL="midroll",s.POSTROLL="postroll",s.FIRST_QUARTILE="contentFirstQuartile",s.MIDPOINT="contentMidpoint",s.THIRD_QUARTILE="contentThirdQuartile",s.COMPLETE="contentComplete",s.STILL_INTERESTING="stillInteresting",s.REQUEST_RECOMMENDATIONS="requestRecommendations",(p=D||(D={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.GENERIC="Generic",(c=M||(M={})).HLS="application/vnd.apple.mpegurl",c.HLS_LEGACY="application/x-mpegURL",c.DASH="application/dash+xml",c.MP4="video/mp4",c.OGG="video/ogg",c.WEBM="video/webm",c.MP3="audio/mp3",c.AAC="audio/aac",c.WAV="audio/wav",c.OGG_AUDIO="audio/ogg",c.MPEG_AUDIO="audio/mpeg",c.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",c.JOYN="application/x-joyn-source",(A=g||(g={})).LIVE="live",A.VOD="vod",A.INTERACTIVE="interactive",A.EMBED="embed",(d=U||(U={})).PRE_CLICK="pre-click-to-play",d.CLICK="click-to-play",d.AUTOPLAY_SCROLL="autoplay-scroll",d.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",d.CLICK_NEXT="click-to-play-next",d.CLICK_REPLAY="click-to-play-replay",d.AUTOPLAY_NEXT="autoplay-next",(O=y||(y={})).CLEAR_PLAYLIST="clearPlaylist",O.SELECT_PLAYLIST_ITEM="selectPlaylistItem",O.ENDED="ended",O.CONTENT_ERROR="contentError",O.API_STOP="apiStop",O.LIVESTREAM_STOP="livestreamStop",O.PAGE_HIDE="pageHide";let t=["play","pause","openEpg"],n="player.glomex.com",a=`https://${n}/integration/1/integration.js`;function o(e){return`https://${n}/variant/${e}/variant.css`}function E(){if(window.customElements.get(m.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${a}');`,e.type="module",(document.head||document.body).appendChild(e)}function i(e){if(document.querySelector(`link[href="${o(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=o(e),(document.head||document.body).appendChild(t)}var r,T,_,N,I,l,s,p,c,A,d,O,R,m,C,L,u,S,P,D,M,g,U,y,G="turbo",b="glomex";export{t as ALLOWED_UI_ACTIONS,m as ComponentName,y as ContentStopReason,e as EXTERNAL_PLAYER_NAME,u as IntegrationEvent,P as KnownMarkerName,S as MarkerType,D as MediaItemErrorCode,M as Mimetype,R as Origin,g as PlaybackMode,L as PresentationMode,C as ScriptType,U as StartMethod,o as getIntegrationCssUrl,E as loadIntegrationComponent,i as loadIntegrationStyles,G as INTERNAL_PREFIX,b as PUBLIC_PREFIX};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.1405.
|
|
3
|
+
"version": "1.1405.1",
|
|
4
4
|
"description": "Web component and types to integrate the glomex player",
|
|
5
5
|
"documentation": "https://docs.glomex.com",
|
|
6
6
|
"homepage": "https://glomex.com",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "92b168ac5939d11ac6f8d17e0fc78163b82caf57"
|
|
43
43
|
}
|