@glomex/integration-web-component 1.1475.1 → 1.1477.0

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 CHANGED
@@ -27,6 +27,12 @@ export declare interface Ad {
27
27
  clickThroughUrl?: string;
28
28
  }
29
29
 
30
+ export declare class AdError extends Error {
31
+ code: string;
32
+ name: string;
33
+ constructor(message: string, code: string);
34
+ }
35
+
30
36
  export declare const ALLOWED_UI_ACTIONS: readonly ["play", "pause", "openEpg", "startAgeSetup", "forgotPin"];
31
37
 
32
38
  /**
@@ -971,6 +977,13 @@ export declare interface IntegrationElementEventMap {
971
977
  * @eventProperty
972
978
  */
973
979
  [IntegrationEvent.AD_COMPLETE]: CustomEvent<void>;
980
+ /**
981
+ * @inheritdoc IntegrationEvent.AD_ERROR
982
+ * @eventProperty
983
+ */
984
+ [IntegrationEvent.AD_ERROR]: CustomEvent<{
985
+ error: AdError;
986
+ }>;
974
987
  /**
975
988
  * @inheritdoc IntegrationEvent.UI_INTERACTION
976
989
  * @eventProperty
@@ -1174,6 +1187,11 @@ export declare enum IntegrationEvent {
1174
1187
  * @eventProperty
1175
1188
  */
1176
1189
  AD_COMPLETE = "adcomplete",
1190
+ /**
1191
+ * When a non-fatal ad error occurs during playback or setup (not triggered when ad loading fails).
1192
+ * @eventProperty
1193
+ */
1194
+ AD_ERROR = "aderror",
1177
1195
  /**
1178
1196
  * When the user interacted with the UI (e.g. play, pause, seek, etc.). The specific action is provided in the payload.
1179
1197
  * @eventProperty
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (_=m||(m={})).DEFAULT="turbo-integration",_.SCRIPT="turbo-script",_.IFRAME="turbo-iframe",_.FULLPAGE="turbo-fullpage",_.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",_.AMP_IFRAME="turbo-amp-iframe",(N=u||(u={})).INTEGRATION="glomex-integration",N.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",N.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=D||(D={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo",t=`${e}-player`,n=`${e}DebugPlayerConfig`;(A=S||(S={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(l=P||(P={})).READY="ready",l.INTEGRATION_ABORT="integrationabort",l.INTEGRATION_AD_AVAILABLE="integrationadavailable",l.INTEGRATION_PASSBACK="integrationpassback",l.USER_UPDATE_CONSENT="userupdateconsent",l.PLAYLIST_UPDATE="playlistupdate",l.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",l.CONTENT_SELECT="contentselect",l.CONTENT_START="contentstart",l.CONTENT_IMPRESSION="contentimpression",l.CONTENT_BUFFERING_START="contentbufferingstart",l.CONTENT_BUFFERING_END="contentbufferingend",l.CONTENT_STOP="contentstop",l.CONTENT_ERROR="contenterror",l.CONTENT_MARKER_REACHED="contentmarkerreached",l.CONTENT_QUALITY_CHANGED="contentqualitychanged",l.CONTENT_TIME_UPDATE="timeupdate",l.CONTENT_SEEKING="seeking",l.CONTENT_SEEKED="seeked",l.CONTENT_PLAY="play",l.CONTENT_PAUSE="pause",l.CONTENT_VOLUME_CHANGE="volumechange",l.CONTENT_ENDED="ended",l.AD_BREAK_REQUEST="adbreakrequest",l.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",l.AD_LOADED="adloaded",l.AD_IMPRESSION="adimpression",l.AD_BUFFERING_START="adbufferingstart",l.AD_BUFFERING_END="adbufferingend",l.AD_TIME_UPDATE="adtimeupdate",l.AD_VOLUME_CHANGE="advolumechange",l.AD_PAUSED="adpaused",l.AD_RESUMED="adresumed",l.AD_CLICK="adclick",l.AD_SKIPPED="adskipped",l.AD_COMPLETE="adcomplete",l.UI_INTERACTION="uiinteraction",(s=M||(M={})).TIME_IN_SECONDS="time",s.PERCENT="percent",s.TIME_IN_SECONDS_RECURRING="timeRecurring",(d=g||(g={})).PREROLL="preroll",d.MIDROLL="midroll",d.POSTROLL="postroll",d.FIRST_QUARTILE="contentFirstQuartile",d.MIDPOINT="contentMidpoint",d.THIRD_QUARTILE="contentThirdQuartile",d.COMPLETE="contentComplete",d.STILL_INTERESTING="stillInteresting",d.REQUEST_RECOMMENDATIONS="requestRecommendations",(c=U||(U={})).NOT_FOUND="NotFound",c.NOT_AVAILABLE="NotAvailable",c.GEOBLOCKED="Geoblocked",c.YOUTH_PROTECTED="YouthProtected",c.TERMINATED="Terminated",c.LOGIN_REQUIRED="LoginRequired",c.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",c.GENERIC="Generic",(p=G||(G={})).GLOMEX="glomex",p.JOYN="joyn",p.EXTERNAL="external",(R=y||(y={})).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",(O=b||(b={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed",(C=k||(k={})).PRE_CLICK="pre-click-to-play",C.CLICK="click-to-play",C.AUTOPLAY_SCROLL="autoplay-scroll",C.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",C.CLICK_NEXT="click-to-play-next",C.CLICK_REPLAY="click-to-play-replay",C.AUTOPLAY_NEXT="autoplay-next",(L=F||(F={})).CLEAR_PLAYLIST="clearPlaylist",L.SELECT_PLAYLIST_ITEM="selectPlaylistItem",L.ENDED="ended",L.CONTENT_ERROR="contentError",L.API_STOP="apiStop",L.LIVESTREAM_STOP="livestreamStop",L.PAGE_HIDE="pageHide",L.BEFORE_UNLOAD="beforeUnload";let a=["play","pause","openEpg","startAgeSetup","forgotPin"],o="player.glomex.com",E=`https://${o}/integration/1/integration.js`;function i(e){return`https://${o}/variant/${e}/variant.css`}function r(){if(window.customElements.get(u.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${E}');`,e.type="module",(document.head||document.body).appendChild(e)}function T(e){if(document.querySelector(`link[href="${i(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=i(e),(document.head||document.body).appendChild(t)}var _,N,I,A,l,s,d,c,p,R,O,C,L,m,u,D,S,P,M,g,U,G,y,b,k,F,f="turbo",x="glomex";export{a as ALLOWED_UI_ACTIONS,u as ComponentName,F as ContentStopReason,n as DEBUG_CONFIG_STORAGE_KEY,t as EXTERNAL_PLAYER_NAME,P as IntegrationEvent,g as KnownMarkerName,M as MarkerType,U as MediaItemErrorCode,G as MediaItemProvider,y as Mimetype,m as Origin,b as PlaybackMode,S as PresentationMode,D as ScriptType,k as StartMethod,i as getIntegrationCssUrl,r as loadIntegrationComponent,T as loadIntegrationStyles,f as INTERNAL_PREFIX,x as PUBLIC_PREFIX};
1
+ (_=m||(m={})).DEFAULT="turbo-integration",_.SCRIPT="turbo-script",_.IFRAME="turbo-iframe",_.FULLPAGE="turbo-fullpage",_.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",_.AMP_IFRAME="turbo-amp-iframe",(N=u||(u={})).INTEGRATION="glomex-integration",N.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",N.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=D||(D={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo",t=`${e}-player`,n=`${e}DebugPlayerConfig`;(A=S||(S={})).HIDDEN="hidden",A.INLINE="inline",A.DOCK="dock",A.LIGHTBOX="lightbox",A.LIGHTBOX_EXTERNAL="lightbox-external",A.FULLSCREEN="fullscreen",A.AMP_DOCK="amp-dock",(l=P||(P={})).READY="ready",l.INTEGRATION_ABORT="integrationabort",l.INTEGRATION_AD_AVAILABLE="integrationadavailable",l.INTEGRATION_PASSBACK="integrationpassback",l.USER_UPDATE_CONSENT="userupdateconsent",l.PLAYLIST_UPDATE="playlistupdate",l.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",l.CONTENT_SELECT="contentselect",l.CONTENT_START="contentstart",l.CONTENT_IMPRESSION="contentimpression",l.CONTENT_BUFFERING_START="contentbufferingstart",l.CONTENT_BUFFERING_END="contentbufferingend",l.CONTENT_STOP="contentstop",l.CONTENT_ERROR="contenterror",l.CONTENT_MARKER_REACHED="contentmarkerreached",l.CONTENT_QUALITY_CHANGED="contentqualitychanged",l.CONTENT_TIME_UPDATE="timeupdate",l.CONTENT_SEEKING="seeking",l.CONTENT_SEEKED="seeked",l.CONTENT_PLAY="play",l.CONTENT_PAUSE="pause",l.CONTENT_VOLUME_CHANGE="volumechange",l.CONTENT_ENDED="ended",l.AD_BREAK_REQUEST="adbreakrequest",l.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",l.AD_LOADED="adloaded",l.AD_IMPRESSION="adimpression",l.AD_BUFFERING_START="adbufferingstart",l.AD_BUFFERING_END="adbufferingend",l.AD_TIME_UPDATE="adtimeupdate",l.AD_VOLUME_CHANGE="advolumechange",l.AD_PAUSED="adpaused",l.AD_RESUMED="adresumed",l.AD_CLICK="adclick",l.AD_SKIPPED="adskipped",l.AD_COMPLETE="adcomplete",l.AD_ERROR="aderror",l.UI_INTERACTION="uiinteraction",(s=M||(M={})).TIME_IN_SECONDS="time",s.PERCENT="percent",s.TIME_IN_SECONDS_RECURRING="timeRecurring",(d=g||(g={})).PREROLL="preroll",d.MIDROLL="midroll",d.POSTROLL="postroll",d.FIRST_QUARTILE="contentFirstQuartile",d.MIDPOINT="contentMidpoint",d.THIRD_QUARTILE="contentThirdQuartile",d.COMPLETE="contentComplete",d.STILL_INTERESTING="stillInteresting",d.REQUEST_RECOMMENDATIONS="requestRecommendations",(c=U||(U={})).NOT_FOUND="NotFound",c.NOT_AVAILABLE="NotAvailable",c.GEOBLOCKED="Geoblocked",c.YOUTH_PROTECTED="YouthProtected",c.TERMINATED="Terminated",c.LOGIN_REQUIRED="LoginRequired",c.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",c.GENERIC="Generic",(R=G||(G={})).GLOMEX="glomex",R.JOYN="joyn",R.EXTERNAL="external",(p=y||(y={})).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",(O=b||(b={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed",(C=F||(F={})).PRE_CLICK="pre-click-to-play",C.CLICK="click-to-play",C.AUTOPLAY_SCROLL="autoplay-scroll",C.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",C.CLICK_NEXT="click-to-play-next",C.CLICK_REPLAY="click-to-play-replay",C.AUTOPLAY_NEXT="autoplay-next",(L=f||(f={})).CLEAR_PLAYLIST="clearPlaylist",L.SELECT_PLAYLIST_ITEM="selectPlaylistItem",L.ENDED="ended",L.CONTENT_ERROR="contentError",L.API_STOP="apiStop",L.LIVESTREAM_STOP="livestreamStop",L.PAGE_HIDE="pageHide",L.BEFORE_UNLOAD="beforeUnload";let a=["play","pause","openEpg","startAgeSetup","forgotPin"],E="player.glomex.com",o=`https://${E}/integration/1/integration.js`;function r(e){return`https://${E}/variant/${e}/variant.css`}function i(){if(window.customElements.get(u.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${o}');`,e.type="module",(document.head||document.body).appendChild(e)}function T(e){if(document.querySelector(`link[href="${r(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=r(e),(document.head||document.body).appendChild(t)}var _,N,I,A,l,s,d,c,R,p,O,C,L,m,u,D,S,P,M,g,U,G,y,b,F,f,k="turbo",h="glomex";export{a as ALLOWED_UI_ACTIONS,n as DEBUG_CONFIG_STORAGE_KEY,t as EXTERNAL_PLAYER_NAME,u as ComponentName,f as ContentStopReason,P as IntegrationEvent,g as KnownMarkerName,M as MarkerType,U as MediaItemErrorCode,G as MediaItemProvider,y as Mimetype,m as Origin,b as PlaybackMode,S as PresentationMode,D as ScriptType,F as StartMethod,r as getIntegrationCssUrl,i as loadIntegrationComponent,T as loadIntegrationStyles,k as INTERNAL_PREFIX,h as PUBLIC_PREFIX};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1475.1",
3
+ "version": "1.1477.0",
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.1475.1",
35
+ "@glomex/integration": "1.1477.0",
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": "9386e21c4405ac79656ed244ab78935d01576336"
45
+ "gitHead": "a44bcafd89f97e5adaefe7a0680b4f256a3e1e95"
46
46
  }