@glomex/integration-web-component 1.1320.1 → 1.1321.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/build/index.d.ts +14 -1
- package/build/index.js +1 -1
- package/package.json +3 -3
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,
|
|
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.
|
|
3
|
+
"version": "1.1321.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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "^1.9.4",
|
|
32
|
-
"@glomex/integration": "^1.
|
|
32
|
+
"@glomex/integration": "^1.1321.1",
|
|
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": "
|
|
40
|
+
"gitHead": "0df37a0bb0ccb47570a7d7d5939f2e735f444fcf"
|
|
41
41
|
}
|