@glomex/integration-web-component 1.1429.1 → 1.1430.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 +29 -0
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -878,6 +878,27 @@ export declare interface IntegrationElementEventMap {
|
|
|
878
878
|
* @eventProperty
|
|
879
879
|
*/
|
|
880
880
|
[IntegrationEvent.CONTENT_ENDED]: CustomEvent<void> | HTMLElementEventMap['ended'];
|
|
881
|
+
/**
|
|
882
|
+
* @inheritdoc IntegrationEvent.AD_BREAK_REQUEST
|
|
883
|
+
* @eventProperty
|
|
884
|
+
*/
|
|
885
|
+
[IntegrationEvent.AD_BREAK_REQUEST]: CustomEvent<{
|
|
886
|
+
name: string;
|
|
887
|
+
index: number;
|
|
888
|
+
plannedSlotCount: number;
|
|
889
|
+
plannedAdRequestCount: number;
|
|
890
|
+
}>;
|
|
891
|
+
/**
|
|
892
|
+
* @inheritdoc IntegrationEvent.AD_BREAK_REQUEST_ERROR
|
|
893
|
+
* @eventProperty
|
|
894
|
+
*/
|
|
895
|
+
[IntegrationEvent.AD_BREAK_REQUEST_ERROR]: CustomEvent<{
|
|
896
|
+
name: string;
|
|
897
|
+
index: number;
|
|
898
|
+
error: Error & {
|
|
899
|
+
code?: string;
|
|
900
|
+
};
|
|
901
|
+
}>;
|
|
881
902
|
/**
|
|
882
903
|
* @inheritdoc IntegrationEvent.AD_LOADED
|
|
883
904
|
* @eventProperty
|
|
@@ -1065,6 +1086,14 @@ export declare enum IntegrationEvent {
|
|
|
1065
1086
|
* @eventProperty
|
|
1066
1087
|
*/
|
|
1067
1088
|
CONTENT_ENDED = "ended",
|
|
1089
|
+
/**
|
|
1090
|
+
* When an ad break gets requested
|
|
1091
|
+
*/
|
|
1092
|
+
AD_BREAK_REQUEST = "adbreakrequest",
|
|
1093
|
+
/**
|
|
1094
|
+
* When an ad break request fails
|
|
1095
|
+
*/
|
|
1096
|
+
AD_BREAK_REQUEST_ERROR = "adbreakrequesterror",
|
|
1068
1097
|
/**
|
|
1069
1098
|
* When an ad is loaded.
|
|
1070
1099
|
* See {@link IntegrationElement#currentAd} to get the loaded ad.
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(r=
|
|
1
|
+
(r=O||(O={})).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_BREAK_REQUEST="adbreakrequest",I.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",I.AD_LOADED="adloaded",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=D||(D={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(s=S||(S={})).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",(A=P||(P={})).NOT_FOUND="NotFound",A.NOT_AVAILABLE="NotAvailable",A.GEOBLOCKED="Geoblocked",A.YOUTH_PROTECTED="YouthProtected",A.TERMINATED="Terminated",A.GENERIC="Generic",(p=M||(M={})).HLS="application/vnd.apple.mpegurl",p.HLS_LEGACY="application/x-mpegURL",p.DASH="application/dash+xml",p.MP4="video/mp4",p.OGG="video/ogg",p.WEBM="video/webm",p.MP3="audio/mp3",p.AAC="audio/aac",p.WAV="audio/wav",p.OGG_AUDIO="audio/ogg",p.MPEG_AUDIO="audio/mpeg",p.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",p.JOYN="application/x-joyn-source",(c=g||(g={})).LIVE="live",c.VOD="vod",c.INTERACTIVE="interactive",c.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",(R=y||(y={})).CLEAR_PLAYLIST="clearPlaylist",R.SELECT_PLAYLIST_ITEM="selectPlaylistItem",R.ENDED="ended",R.CONTENT_ERROR="contentError",R.API_STOP="apiStop",R.LIVESTREAM_STOP="livestreamStop",R.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,A,p,c,d,R,O,m,C,L,u,D,S,P,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,S as KnownMarkerName,D as MarkerType,P as MediaItemErrorCode,M as Mimetype,O 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.
|
|
3
|
+
"version": "1.1430.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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "catalog:",
|
|
35
|
-
"@glomex/integration": "1.
|
|
35
|
+
"@glomex/integration": "1.1430.1",
|
|
36
36
|
"@microsoft/api-extractor": "catalog:",
|
|
37
37
|
"@rslib/core": "catalog:",
|
|
38
38
|
"npm-run-all": "catalog:",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
44
|
"license": "MIT",
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "e92979ed2bd2e5acdb569ce1ebb3f283f45ebff8"
|
|
46
46
|
}
|