@glomex/integration-web-component 1.1403.0 → 1.1404.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 +17 -1
- package/dist/index.js +1 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export declare interface Ad {
|
|
|
14
14
|
nonLinearHeight?: number;
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg"];
|
|
18
|
+
|
|
17
19
|
/**
|
|
18
20
|
* An additional API script definition that should be executed for this media-item.
|
|
19
21
|
*
|
|
@@ -818,6 +820,13 @@ export declare interface IntegrationElementEventMap {
|
|
|
818
820
|
* @eventProperty
|
|
819
821
|
*/
|
|
820
822
|
[IntegrationEvent.AD_COMPLETE]: CustomEvent<void>;
|
|
823
|
+
/**
|
|
824
|
+
* @inheritdoc IntegrationEvent.UI_INTERACTION
|
|
825
|
+
* @eventProperty
|
|
826
|
+
*/
|
|
827
|
+
[IntegrationEvent.UI_INTERACTION]: CustomEvent<{
|
|
828
|
+
action: UiAction;
|
|
829
|
+
}>;
|
|
821
830
|
}
|
|
822
831
|
|
|
823
832
|
/**
|
|
@@ -994,7 +1003,12 @@ export declare enum IntegrationEvent {
|
|
|
994
1003
|
* When the ad completed.
|
|
995
1004
|
* @eventProperty
|
|
996
1005
|
*/
|
|
997
|
-
AD_COMPLETE = "adcomplete"
|
|
1006
|
+
AD_COMPLETE = "adcomplete",
|
|
1007
|
+
/**
|
|
1008
|
+
* When the user interacted with the UI (e.g. play, pause, seek, etc.). The specific action is provided in the payload.
|
|
1009
|
+
* @eventProperty
|
|
1010
|
+
*/
|
|
1011
|
+
UI_INTERACTION = "uiinteraction"
|
|
998
1012
|
}
|
|
999
1013
|
|
|
1000
1014
|
/**
|
|
@@ -1571,6 +1585,8 @@ declare interface TextTrack_2 {
|
|
|
1571
1585
|
default?: boolean;
|
|
1572
1586
|
}
|
|
1573
1587
|
|
|
1588
|
+
export declare type UiAction = (typeof ALLOWED_UI_ACTIONS)[number];
|
|
1589
|
+
|
|
1574
1590
|
export { }
|
|
1575
1591
|
|
|
1576
1592
|
declare global {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e,t,n,a,o,E,i,T,r,N,l,
|
|
1
|
+
var e,t,n,a,o,E,i,T,r,N,_,l,I,c,s,A,d,p,O,m,R,C,L,u;(I=e||(e={})).DEFAULT="turbo-integration",I.SCRIPT="turbo-script",I.IFRAME="turbo-iframe",I.FULLPAGE="turbo-fullpage",I.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",I.AMP_IFRAME="turbo-amp-iframe",(c=t||(t={})).INTEGRATION="glomex-integration",c.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",c.GLOMEX_MEDIA_ITEM="glomex-media-item",(s=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",s.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(A=a||(a={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(d=o||(o={})).READY="ready",d.INTEGRATION_ABORT="integrationabort",d.INTEGRATION_AD_AVAILABLE="integrationadavailable",d.INTEGRATION_PASSBACK="integrationpassback",d.USER_UPDATE_CONSENT="userupdateconsent",d.PLAYLIST_UPDATE="playlistupdate",d.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",d.CONTENT_SELECT="contentselect",d.CONTENT_START="contentstart",d.CONTENT_IMPRESSION="contentimpression",d.CONTENT_BUFFERING_START="contentbufferingstart",d.CONTENT_BUFFERING_END="contentbufferingend",d.CONTENT_STOP="contentstop",d.CONTENT_ERROR="contenterror",d.CONTENT_MARKER_REACHED="contentmarkerreached",d.CONTENT_TIME_UPDATE="timeupdate",d.CONTENT_SEEKING="seeking",d.CONTENT_SEEKED="seeked",d.CONTENT_PLAY="play",d.CONTENT_PAUSE="pause",d.CONTENT_VOLUME_CHANGE="volumechange",d.CONTENT_ENDED="ended",d.AD_IMPRESSION="adimpression",d.AD_BUFFERING_START="adbufferingstart",d.AD_BUFFERING_END="adbufferingend",d.AD_TIME_UPDATE="adtimeupdate",d.AD_VOLUME_CHANGE="advolumechange",d.AD_PAUSED="adpaused",d.AD_RESUMED="adresumed",d.AD_CLICK="adclick",d.AD_SKIPPED="adskipped",d.AD_COMPLETE="adcomplete",d.UI_INTERACTION="uiinteraction",(p=E||(E={})).TIME_IN_SECONDS="time",p.PERCENT="percent",p.TIME_IN_SECONDS_RECURRING="timeRecurring",(O=i||(i={})).PREROLL="preroll",O.MIDROLL="midroll",O.POSTROLL="postroll",O.FIRST_QUARTILE="contentFirstQuartile",O.MIDPOINT="contentMidpoint",O.THIRD_QUARTILE="contentThirdQuartile",O.COMPLETE="contentComplete",O.STILL_INTERESTING="stillInteresting",O.REQUEST_RECOMMENDATIONS="requestRecommendations",(m=T||(T={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",m.TERMINATED="Terminated",m.GENERIC="Generic",(R=r||(r={})).HLS="application/vnd.apple.mpegurl",R.HLS_LEGACY="application/x-mpegURL",R.DASH="application/dash+xml",R.MP4="video/mp4",R.OGG="video/ogg",R.WEBM="video/webm",R.MP3="audio/mp3",R.AAC="audio/aac",R.WAV="audio/wav",R.OGG_AUDIO="audio/ogg",R.MPEG_AUDIO="audio/mpeg",R.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",R.JOYN="application/x-joyn-source",(C=N||(N={})).LIVE="live",C.VOD="vod",C.INTERACTIVE="interactive",C.EMBED="embed",(L=_||(_={})).PRE_CLICK="pre-click-to-play",L.CLICK="click-to-play",L.AUTOPLAY_SCROLL="autoplay-scroll",L.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",L.CLICK_NEXT="click-to-play-next",L.CLICK_REPLAY="click-to-play-replay",L.AUTOPLAY_NEXT="autoplay-next",(u=l||(l={})).CLEAR_PLAYLIST="clearPlaylist",u.SELECT_PLAYLIST_ITEM="selectPlaylistItem",u.ENDED="ended",u.CONTENT_ERROR="contentError",u.API_STOP="apiStop",u.LIVESTREAM_STOP="livestreamStop",u.PAGE_HIDE="pageHide";let D="player.glomex.com",S=`https://${D}/integration/1/integration.js`;function M(e){return`https://${D}/variant/${e}/variant.css`}function P(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${S}');`,e.type="module",(document.head||document.body).appendChild(e)}function g(e){if(document.querySelector(`link[href="${M(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=M(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,l as ContentStopReason,o as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,N as PlaybackMode,a as PresentationMode,n as ScriptType,M as getIntegrationCssUrl,P as loadIntegrationComponent,g as loadIntegrationStyles};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1404.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",
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@biomejs/biome": "^1.9.4",
|
|
33
|
-
"@glomex/integration": "^1.
|
|
34
|
-
"@microsoft/api-extractor": "^7.52.
|
|
35
|
-
"@rslib/core": "^0.
|
|
33
|
+
"@glomex/integration": "^1.1404.1",
|
|
34
|
+
"@microsoft/api-extractor": "^7.52.13",
|
|
35
|
+
"@rslib/core": "^0.13.3",
|
|
36
36
|
"typescript": "^5.8.3"
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"license": "MIT",
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "734e764284a7d976fadfc5f33433552fff71721f"
|
|
43
43
|
}
|