@glomex/integration-web-component 1.1362.1 → 1.1363.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
@@ -384,7 +384,9 @@ export declare class IntegrationElement extends HTMLElement implements Integrati
384
384
  /**
385
385
  * Initiates playback of the media content.
386
386
  */
387
- play(): void;
387
+ play({ startMethod }?: {
388
+ startMethod: Exclude<StartMethod, StartMethod.PRE_CLICK>;
389
+ }): void;
388
390
  /**
389
391
  * Pauses the current media playback.
390
392
  */
@@ -592,7 +594,9 @@ export declare interface IntegrationElementEventMap {
592
594
  * @inheritdoc IntegrationEvent.CONTENT_START
593
595
  * @eventProperty
594
596
  */
595
- [IntegrationEvent.CONTENT_START]: CustomEvent<void>;
597
+ [IntegrationEvent.CONTENT_START]: CustomEvent<{
598
+ startMethod: StartMethod;
599
+ }>;
596
600
  /**
597
601
  * @inheritdoc IntegrationEvent.CONTENT_IMPRESSION
598
602
  * @eventProperty
@@ -1414,6 +1418,16 @@ export declare enum ScriptType {
1414
1418
  EXTERNAL_MEDIA_ITEM = "application/glomex-external-media-item+json"
1415
1419
  }
1416
1420
 
1421
+ declare enum StartMethod {
1422
+ PRE_CLICK = "pre-click-to-play",
1423
+ CLICK = "click-to-play",
1424
+ AUTOPLAY_SCROLL = "autoplay-scroll",
1425
+ AUTOPLAY_SCROLL_OUT = "autoplay-scroll-out",
1426
+ CLICK_NEXT = "click-to-play-next",
1427
+ CLICK_REPLAY = "click-to-play-replay",
1428
+ AUTOPLAY_NEXT = "autoplay-next"
1429
+ }
1430
+
1417
1431
  declare interface TextTrack_2 {
1418
1432
  /**
1419
1433
  * Unique identifier for the track.
package/build/index.js CHANGED
@@ -1 +1 @@
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};
1
+ var e,t,n,o,a,E,i,T,r,N,_,l,s,c,I,p,d,A,O,m,C,R,L,u;(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",(c=t||(t={})).INTEGRATION="glomex-integration",c.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",c.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",(p=o||(o={})).HIDDEN="hidden",p.INLINE="inline",p.DOCK="dock",p.LIGHTBOX="lightbox",p.FULLSCREEN="fullscreen",p.AMP_DOCK="amp-dock",(d=a||(a={})).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",(A=E||(E={})).TIME_IN_SECONDS="time",A.PERCENT="percent",A.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",(C=r||(r={})).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",(R=N||(N={})).LIVE="live",R.VOD="vod",R.INTERACTIVE="interactive",R.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 S="player.glomex.com",D=`https://${S}/integration/1/integration.js`;function M(e){return`https://${S}/variant/${e}/variant.css`}function P(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${D}');`,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,a as IntegrationEvent,i as KnownMarkerName,E as MarkerType,T as MediaItemErrorCode,r as Mimetype,N as PlaybackMode,o 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.1362.1",
3
+ "version": "1.1363.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",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@biomejs/biome": "^1.9.4",
33
- "@glomex/integration": "^1.1362.1",
33
+ "@glomex/integration": "^1.1363.0",
34
34
  "@microsoft/api-extractor": "^7.52.8",
35
35
  "@rslib/core": "^0.8.0",
36
36
  "typescript": "^5.8.3"
@@ -39,5 +39,5 @@
39
39
  "access": "public"
40
40
  },
41
41
  "license": "MIT",
42
- "gitHead": "d457c794096d887976155d23e367f702ad0c30b4"
42
+ "gitHead": "0a66a8f4d917279d87790a9355a058efa626269d"
43
43
  }