@glomex/integration-web-component 1.1320.0 → 1.1321.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/build/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import type { ContentStopReason as ContentStopReason_2 } from 'src/constants';
1
2
 
2
3
 
3
4
  export declare interface Ad {
@@ -96,6 +97,16 @@ declare interface ContentSource {
96
97
  drm: boolean;
97
98
  }
98
99
 
100
+ export declare enum ContentStopReason {
101
+ CLEAR_PLAYLIST = "clearPlaylist",
102
+ SELECT_PLAYLIST_ITEM = "selectPlaylistItem",
103
+ ENDED = "ended",
104
+ CONTENT_ERROR = "contentError",
105
+ API_STOP = "apiStop",
106
+ LIVESTREAM_STOP = "livestreamStop",
107
+ PAGE_HIDE = "pageHide"
108
+ }
109
+
99
110
  export declare interface CustomMarker {
100
111
  /** {@inheritDoc Marker.name} */
101
112
  name: string;
@@ -555,7 +566,9 @@ export declare interface IntegrationElementEventMap {
555
566
  /** @eventProperty */
556
567
  contentbufferingend: CustomEvent<unknown>;
557
568
  /** @eventProperty */
558
- contentstop: CustomEvent<unknown>;
569
+ contentstop: CustomEvent<unknown & {
570
+ reason: ContentStopReason_2;
571
+ }>;
559
572
  /** @eventProperty */
560
573
  contenterror: CustomEvent<unknown & {
561
574
  error: MediaError_2 | MediaItemError;
package/build/index.js CHANGED
@@ -1 +1 @@
1
- var e,t,n,o,a,E,i,r,T,N,d,_,s,I,c,l,p,A,m,O;(d=e||(e={})).DEFAULT="turbo-integration",d.SCRIPT="turbo-script",d.IFRAME="turbo-iframe",d.FULLPAGE="turbo-fullpage",d.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",d.AMP_IFRAME="turbo-amp-iframe",(_=t||(t={})).INTEGRATION="glomex-integration",_.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",_.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",(I=o||(o={})).HIDDEN="hidden",I.INLINE="inline",I.DOCK="dock",I.LIGHTBOX="lightbox",I.FULLSCREEN="fullscreen",I.AMP_DOCK="amp-dock",(c=a||(a={})).READY="ready",c.INTEGRATION_ABORT="integrationabort",c.INTEGRATION_AD_AVAILABLE="integrationadavailable",c.INTEGRATION_PASSBACK="integrationpassback",c.USER_UPDATE_CONSENT="userupdateconsent",c.PLAYLIST_UPDATE="playlistupdate",c.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",c.CONTENT_SELECT="contentselect",c.CONTENT_START="contentstart",c.CONTENT_IMPRESSION="contentimpression",c.CONTENT_BUFFERING_START="contentbufferingstart",c.CONTENT_BUFFERING_END="contentbufferingend",c.CONTENT_STOP="contentstop",c.CONTENT_ERROR="contenterror",c.CONTENT_MARKER_REACHED="contentmarkerreached",c.CONTENT_TIME_UPDATE="timeupdate",c.CONTENT_SEEKING="seeking",c.CONTENT_SEEKED="seeked",c.CONTENT_PLAY="play",c.CONTENT_PAUSE="pause",c.CONTENT_VOLUME_CHANGE="volumechange",c.CONTENT_ENDED="ended",c.AD_IMPRESSION="adimpression",c.AD_BUFFERING_START="adbufferingstart",c.AD_BUFFERING_END="adbufferingend",c.AD_TIME_UPDATE="adtimeupdate",c.AD_VOLUME_CHANGE="advolumechange",c.AD_PAUSED="adpaused",c.AD_RESUMED="adresumed",c.AD_CLICK="adclick",c.AD_SKIPPED="adskipped",c.AD_COMPLETE="adcomplete",(l=E||(E={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(p=i||(i={})).PREROLL="preroll",p.MIDROLL="midroll",p.POSTROLL="postroll",p.FIRST_QUARTILE="contentFirstQuartile",p.MIDPOINT="contentMidpoint",p.THIRD_QUARTILE="contentThirdQuartile",p.COMPLETE="contentComplete",p.STILL_INTERESTING="stillInteresting",p.REQUEST_RECOMMENDATIONS="requestRecommendations",(A=r||(r={})).NOT_FOUND="NotFound",A.NOT_AVAILABLE="NotAvailable",A.GEOBLOCKED="Geoblocked",A.YOUTH_PROTECTED="YouthProtected",(m=T||(T={})).HLS="application/vnd.apple.mpegurl",m.HLS_LEGACY="application/x-mpegURL",m.DASH="application/dash+xml",m.MP4="video/mp4",m.OGG="video/ogg",m.WEBM="video/webm",m.MP3="audio/mp3",m.AAC="audio/aac",m.WAV="audio/wav",m.OGG_AUDIO="audio/ogg",m.MPEG_AUDIO="audio/mpeg",m.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",m.JOYN="application/x-joyn-source",(O=N||(N={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed";let R="player.glomex.com",u=`https://${R}/integration/1/integration.js`;function C(e){return`https://${R}/variant/${e}/variant.css`}function D(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${u}');`,e.type="module",(document.head||document.body).appendChild(e)}function M(e){if(document.querySelector(`link[href="${C(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=C(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,r as MediaItemErrorCode,T as Mimetype,N as PlaybackMode,o as PresentationMode,n as ScriptType,C as getIntegrationCssUrl,D as loadIntegrationComponent,M as loadIntegrationStyles};
1
+ var e,t,n,o,a,E,i,r,T,N,_,s,d,I,l,c,p,A,m,O,R,C;(s=e||(e={})).DEFAULT="turbo-integration",s.SCRIPT="turbo-script",s.IFRAME="turbo-iframe",s.FULLPAGE="turbo-fullpage",s.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",s.AMP_IFRAME="turbo-amp-iframe",(d=t||(t={})).INTEGRATION="glomex-integration",d.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",d.GLOMEX_MEDIA_ITEM="glomex-media-item",(I=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json",(l=o||(o={})).HIDDEN="hidden",l.INLINE="inline",l.DOCK="dock",l.LIGHTBOX="lightbox",l.FULLSCREEN="fullscreen",l.AMP_DOCK="amp-dock",(c=a||(a={})).READY="ready",c.INTEGRATION_ABORT="integrationabort",c.INTEGRATION_AD_AVAILABLE="integrationadavailable",c.INTEGRATION_PASSBACK="integrationpassback",c.USER_UPDATE_CONSENT="userupdateconsent",c.PLAYLIST_UPDATE="playlistupdate",c.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",c.CONTENT_SELECT="contentselect",c.CONTENT_START="contentstart",c.CONTENT_IMPRESSION="contentimpression",c.CONTENT_BUFFERING_START="contentbufferingstart",c.CONTENT_BUFFERING_END="contentbufferingend",c.CONTENT_STOP="contentstop",c.CONTENT_ERROR="contenterror",c.CONTENT_MARKER_REACHED="contentmarkerreached",c.CONTENT_TIME_UPDATE="timeupdate",c.CONTENT_SEEKING="seeking",c.CONTENT_SEEKED="seeked",c.CONTENT_PLAY="play",c.CONTENT_PAUSE="pause",c.CONTENT_VOLUME_CHANGE="volumechange",c.CONTENT_ENDED="ended",c.AD_IMPRESSION="adimpression",c.AD_BUFFERING_START="adbufferingstart",c.AD_BUFFERING_END="adbufferingend",c.AD_TIME_UPDATE="adtimeupdate",c.AD_VOLUME_CHANGE="advolumechange",c.AD_PAUSED="adpaused",c.AD_RESUMED="adresumed",c.AD_CLICK="adclick",c.AD_SKIPPED="adskipped",c.AD_COMPLETE="adcomplete",(p=E||(E={})).TIME_IN_SECONDS="time",p.PERCENT="percent",p.TIME_IN_SECONDS_RECURRING="timeRecurring",(A=i||(i={})).PREROLL="preroll",A.MIDROLL="midroll",A.POSTROLL="postroll",A.FIRST_QUARTILE="contentFirstQuartile",A.MIDPOINT="contentMidpoint",A.THIRD_QUARTILE="contentThirdQuartile",A.COMPLETE="contentComplete",A.STILL_INTERESTING="stillInteresting",A.REQUEST_RECOMMENDATIONS="requestRecommendations",(m=r||(r={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",(O=T||(T={})).HLS="application/vnd.apple.mpegurl",O.HLS_LEGACY="application/x-mpegURL",O.DASH="application/dash+xml",O.MP4="video/mp4",O.OGG="video/ogg",O.WEBM="video/webm",O.MP3="audio/mp3",O.AAC="audio/aac",O.WAV="audio/wav",O.OGG_AUDIO="audio/ogg",O.MPEG_AUDIO="audio/mpeg",O.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",O.JOYN="application/x-joyn-source",(R=N||(N={})).LIVE="live",R.VOD="vod",R.INTERACTIVE="interactive",R.EMBED="embed",(C=_||(_={})).CLEAR_PLAYLIST="clearPlaylist",C.SELECT_PLAYLIST_ITEM="selectPlaylistItem",C.ENDED="ended",C.CONTENT_ERROR="contentError",C.API_STOP="apiStop",C.LIVESTREAM_STOP="livestreamStop",C.PAGE_HIDE="pageHide";let D="player.glomex.com",u=`https://${D}/integration/1/integration.js`;function S(e){return`https://${D}/variant/${e}/variant.css`}function M(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${u}');`,e.type="module",(document.head||document.body).appendChild(e)}function L(e){if(document.querySelector(`link[href="${S(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=S(e),(document.head||document.body).appendChild(t)}export{t as ComponentName,_ as ContentStopReason,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,r as MediaItemErrorCode,T as Mimetype,N as PlaybackMode,o as PresentationMode,n as ScriptType,S as getIntegrationCssUrl,M as loadIntegrationComponent,L as loadIntegrationStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1320.0",
3
+ "version": "1.1321.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",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@biomejs/biome": "^1.9.4",
32
- "@glomex/integration": "^1.1320.0",
32
+ "@glomex/integration": "^1.1321.0",
33
33
  "@microsoft/api-extractor": "^7.52.1",
34
34
  "@rslib/core": "^0.5.4",
35
35
  "typescript": "^5.8.2"
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "119e2147448b00576bbd3c0bf288a7ceff68a008"
40
+ "gitHead": "ea599e0a4b5cbf460f4985c48eed1fb86572e013"
41
41
  }