@glomex/integration-web-component 1.1306.0 → 1.1308.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,6 +1,7 @@
1
1
 
2
2
 
3
3
  export declare interface Ad {
4
+ sessionId: string;
4
5
  id: string;
5
6
  isLinear: boolean;
6
7
  duration: number;
@@ -239,6 +240,15 @@ export declare class GlomexMediaItemElement extends HTMLElement {
239
240
  title: string;
240
241
  }
241
242
 
243
+ export declare interface GlomexMediaItemWithOverrides {
244
+ id: string;
245
+ overrides: {
246
+ title?: string;
247
+ poster?: string;
248
+ teaserVideo?: string;
249
+ };
250
+ }
251
+
242
252
  /**
243
253
  * Web component to integrate the player.
244
254
  *
@@ -469,10 +479,16 @@ export declare interface IntegrationElementEventMap {
469
479
  mode: PresentationMode;
470
480
  }>;
471
481
  /** @eventProperty */
482
+ contentselect: CustomEvent<unknown>;
483
+ /** @eventProperty */
472
484
  contentstart: CustomEvent<unknown>;
473
485
  /** @eventProperty */
474
486
  contentimpression: CustomEvent<unknown>;
475
487
  /** @eventProperty */
488
+ contentbufferingstart: CustomEvent<unknown>;
489
+ /** @eventProperty */
490
+ contentbufferingend: CustomEvent<unknown>;
491
+ /** @eventProperty */
476
492
  contentstop: CustomEvent<unknown>;
477
493
  /** @eventProperty */
478
494
  contenterror: CustomEvent<unknown & {
@@ -500,6 +516,10 @@ export declare interface IntegrationElementEventMap {
500
516
  /** @eventProperty */
501
517
  adimpression: CustomEvent<unknown>;
502
518
  /** @eventProperty */
519
+ adbufferingstart: CustomEvent<unknown>;
520
+ /** @eventProperty */
521
+ adbufferingend: CustomEvent<unknown>;
522
+ /** @eventProperty */
503
523
  adtimeupdate: CustomEvent<unknown>;
504
524
  /** @eventProperty */
505
525
  advolumechange: CustomEvent<unknown>;
@@ -536,10 +556,16 @@ export declare enum IntegrationEvent {
536
556
  /** @eventProperty */
537
557
  PLAYER_SET_PRESENTATION_MODE = "playersetpresentationmode",
538
558
  /** @eventProperty */
559
+ CONTENT_SELECT = "contentselect",
560
+ /** @eventProperty */
539
561
  CONTENT_START = "contentstart",
540
562
  /** @eventProperty */
541
563
  CONTENT_IMPRESSION = "contentimpression",
542
564
  /** @eventProperty */
565
+ CONTENT_BUFFERING_START = "contentbufferingstart",
566
+ /** @eventProperty */
567
+ CONTENT_BUFFERING_END = "contentbufferingend",
568
+ /** @eventProperty */
543
569
  CONTENT_STOP = "contentstop",
544
570
  /** @eventProperty */
545
571
  CONTENT_ERROR = "contenterror",
@@ -562,6 +588,10 @@ export declare enum IntegrationEvent {
562
588
  /** @eventProperty */
563
589
  AD_IMPRESSION = "adimpression",
564
590
  /** @eventProperty */
591
+ AD_BUFFERING_START = "adbufferingstart",
592
+ /** @eventProperty */
593
+ AD_BUFFERING_END = "adbufferingend",
594
+ /** @eventProperty */
565
595
  AD_TIME_UPDATE = "adtimeupdate",
566
596
  /** @eventProperty */
567
597
  AD_VOLUME_CHANGE = "advolumechange",
package/build/index.js CHANGED
@@ -1 +1 @@
1
- var e,t,n,o,a,E,i,r,T,d,N,s,l,p,I,_,c,m,A,O;(N=e||(e={})).DEFAULT="turbo-integration",N.SCRIPT="turbo-script",N.IFRAME="turbo-iframe",N.FULLPAGE="turbo-fullpage",N.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",N.AMP_IFRAME="turbo-amp-iframe",(s=t||(t={})).INTEGRATION="glomex-integration",s.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",s.GLOMEX_MEDIA_ITEM="glomex-media-item",(l=n||(n={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",l.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",(I=a||(a={})).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_START="contentstart",I.CONTENT_IMPRESSION="contentimpression",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_IMPRESSION="adimpression",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",(_=E||(E={})).TIME_IN_SECONDS="time",_.PERCENT="percent",_.TIME_IN_SECONDS_RECURRING="timeRecurring",(c=i||(i={})).PREROLL="preroll",c.MIDROLL="midroll",c.POSTROLL="postroll",c.FIRST_QUARTILE="contentFirstQuartile",c.MIDPOINT="contentMidpoint",c.THIRD_QUARTILE="contentThirdQuartile",c.COMPLETE="contentComplete",c.STILL_INTERESTING="stillInteresting",(m=r||(r={})).NOT_FOUND="NotFound",m.NOT_AVAILABLE="NotAvailable",m.GEOBLOCKED="Geoblocked",m.YOUTH_PROTECTED="YouthProtected",(A=T||(T={})).HLS="application/vnd.apple.mpegurl",A.HLS_LEGACY="application/x-mpegURL",A.DASH="application/dash+xml",A.MP4="video/mp4",A.OGG="video/ogg",A.WEBM="video/webm",A.MP3="audio/mp3",A.AAC="audio/aac",A.WAV="audio/wav",A.OGG_AUDIO="audio/ogg",A.MPEG_AUDIO="audio/mpeg",A.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",A.JOYN="application/x-joyn-source",(O=d||(d={})).LIVE="live",O.VOD="vod",O.INTERACTIVE="interactive",O.EMBED="embed";let u="player.glomex.com",M=`https://${u}/integration/1/integration.js`;function C(e){return`https://${u}/variant/${e}/variant.css`}function D(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${M}');`,e.type="module",(document.head||document.body).appendChild(e)}function R(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,d as PlaybackMode,o as PresentationMode,n as ScriptType,C as getIntegrationCssUrl,D as loadIntegrationComponent,R as loadIntegrationStyles};
1
+ var e,t,n,a,o,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=a||(a={})).HIDDEN="hidden",I.INLINE="inline",I.DOCK="dock",I.LIGHTBOX="lightbox",I.FULLSCREEN="fullscreen",I.AMP_DOCK="amp-dock",(c=o||(o={})).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",(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 u="player.glomex.com",R=`https://${u}/integration/1/integration.js`;function C(e){return`https://${u}/variant/${e}/variant.css`}function D(){if(window.customElements.get(t.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${R}');`,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,o as IntegrationEvent,i as KnownMarkerName,E as MarkerType,r as MediaItemErrorCode,T as Mimetype,N as PlaybackMode,a as PresentationMode,n as ScriptType,C as getIntegrationCssUrl,D as loadIntegrationComponent,M as loadIntegrationStyles};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glomex/integration-web-component",
3
- "version": "1.1306.0",
3
+ "version": "1.1308.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.1306.0",
32
+ "@glomex/integration": "^1.1308.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": "899ed92cd26a595ef3a97d06e547903253b4e002"
40
+ "gitHead": "012f19d891a51199585ef978d42a3aadb5aa1fc8"
41
41
  }