@glomex/integration-web-component 1.1443.0 → 1.1444.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 +17 -4
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -328,8 +328,7 @@ export declare class ExternalMediaItemElement extends HTMLElement implements Med
|
|
|
328
328
|
}
|
|
329
329
|
|
|
330
330
|
/**
|
|
331
|
-
*
|
|
332
|
-
* Intended to improve monetization.
|
|
331
|
+
* An optional context object that can be used to pass additional application, device and user information to the integration. Updates must be performed immutably: always provide a new object to the {@link IntegrationElement#extraContext} property when modifying any property or nested field.
|
|
333
332
|
*/
|
|
334
333
|
export declare interface ExtraContext {
|
|
335
334
|
/**
|
|
@@ -344,6 +343,9 @@ export declare interface ExtraContext {
|
|
|
344
343
|
* The name of the app. When it is a website, fill in the name of the project.
|
|
345
344
|
*/
|
|
346
345
|
appName?: string;
|
|
346
|
+
/**
|
|
347
|
+
* User ids of the user. User ids are only used when the user has given consent for the assigned vendor.
|
|
348
|
+
*/
|
|
347
349
|
userIds?: ExtraContextUserId[];
|
|
348
350
|
/**
|
|
349
351
|
* The bundle id of the app. Only required for iOS apps.
|
|
@@ -372,7 +374,8 @@ export declare interface ExtraContextDeviceId {
|
|
|
372
374
|
}
|
|
373
375
|
|
|
374
376
|
/**
|
|
375
|
-
* User id of the user that can be passed additionally to the integration. It improves the monetization.
|
|
377
|
+
* User id of the user that can be passed additionally to the integration. It improves the monetization. User ids
|
|
378
|
+
* can be updated dynamically by assigning a new object to the {@link IntegrationElement#extraContext} property.
|
|
376
379
|
*
|
|
377
380
|
* @example When you want to forward envelopes for liveramp, you can pass them within ext
|
|
378
381
|
* ```ts
|
|
@@ -854,6 +857,11 @@ export declare interface IntegrationElementEventMap {
|
|
|
854
857
|
markerName: string;
|
|
855
858
|
markerData: unknown;
|
|
856
859
|
}>;
|
|
860
|
+
/**
|
|
861
|
+
* @inheritdoc IntegrationEvent.CONTENT_QUALITY_CHANGED
|
|
862
|
+
* @eventProperty
|
|
863
|
+
*/
|
|
864
|
+
[IntegrationEvent.CONTENT_QUALITY_CHANGED]: CustomEvent<void>;
|
|
857
865
|
/**
|
|
858
866
|
* @inheritdoc IntegrationEvent.CONTENT_TIME_UPDATE
|
|
859
867
|
* @eventProperty
|
|
@@ -1058,6 +1066,11 @@ export declare enum IntegrationEvent {
|
|
|
1058
1066
|
* @eventProperty
|
|
1059
1067
|
*/
|
|
1060
1068
|
CONTENT_MARKER_REACHED = "contentmarkerreached",
|
|
1069
|
+
/**
|
|
1070
|
+
* When the content's quality changes.
|
|
1071
|
+
* @eventProperty
|
|
1072
|
+
*/
|
|
1073
|
+
CONTENT_QUALITY_CHANGED = "contentqualitychanged",
|
|
1061
1074
|
/**
|
|
1062
1075
|
* When the content's time updates. This is equal to {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/timeupdate_event HTMLMediaElement.timeupdate}.
|
|
1063
1076
|
* See {@link IntegrationElement#currentTime} to get the current time.
|
|
@@ -1211,7 +1224,7 @@ export declare interface IntegrationProperties {
|
|
|
1211
1224
|
*/
|
|
1212
1225
|
crossorigin?: '' | 'anonymous' | 'use-credentials' | 'none';
|
|
1213
1226
|
/**
|
|
1214
|
-
*
|
|
1227
|
+
* {@inheritDoc ExtraContext}
|
|
1215
1228
|
*/
|
|
1216
1229
|
extraContext?: ExtraContext;
|
|
1217
1230
|
}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(r=O||(O={})).DEFAULT="turbo-integration",r.SCRIPT="turbo-script",r.IFRAME="turbo-iframe",r.FULLPAGE="turbo-fullpage",r.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",r.AMP_IFRAME="turbo-amp-iframe",(T=
|
|
1
|
+
(r=O||(O={})).DEFAULT="turbo-integration",r.SCRIPT="turbo-script",r.IFRAME="turbo-iframe",r.FULLPAGE="turbo-fullpage",r.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",r.AMP_IFRAME="turbo-amp-iframe",(T=C||(C={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="glomex-external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",(_=m||(m={})).INTEGRATION_CONFIGS="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/glomex-external-media-item+json";let e="turbo-player";(N=L||(L={})).HIDDEN="hidden",N.INLINE="inline",N.DOCK="dock",N.LIGHTBOX="lightbox",N.LIGHTBOX_EXTERNAL="lightbox-external",N.FULLSCREEN="fullscreen",N.AMP_DOCK="amp-dock",(l=u||(u={})).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",(I=D||(D={})).TIME_IN_SECONDS="time",I.PERCENT="percent",I.TIME_IN_SECONDS_RECURRING="timeRecurring",(A=S||(S={})).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",(s=P||(P={})).NOT_FOUND="NotFound",s.NOT_AVAILABLE="NotAvailable",s.GEOBLOCKED="Geoblocked",s.YOUTH_PROTECTED="YouthProtected",s.TERMINATED="Terminated",s.GENERIC="Generic",(c=M||(M={})).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",(d=g||(g={})).LIVE="live",d.VOD="vod",d.INTERACTIVE="interactive",d.EMBED="embed",(p=U||(U={})).PRE_CLICK="pre-click-to-play",p.CLICK="click-to-play",p.AUTOPLAY_SCROLL="autoplay-scroll",p.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",p.CLICK_NEXT="click-to-play-next",p.CLICK_REPLAY="click-to-play-replay",p.AUTOPLAY_NEXT="autoplay-next",(R=y||(y={})).CLEAR_PLAYLIST="clearPlaylist",R.SELECT_PLAYLIST_ITEM="selectPlaylistItem",R.ENDED="ended",R.CONTENT_ERROR="contentError",R.API_STOP="apiStop",R.LIVESTREAM_STOP="livestreamStop",R.PAGE_HIDE="pageHide",R.BEFORE_UNLOAD="beforeUnload";let t=["play","pause","openEpg"],n="player.glomex.com",a=`https://${n}/integration/1/integration.js`;function o(e){return`https://${n}/variant/${e}/variant.css`}function E(){if(window.customElements.get(C.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${a}');`,e.type="module",(document.head||document.body).appendChild(e)}function i(e){if(document.querySelector(`link[href="${o(e)}"]`))return;let t=document.createElement("link");t.rel="stylesheet",t.href=o(e),(document.head||document.body).appendChild(t)}var r,T,_,N,l,I,A,s,c,d,p,R,O,C,m,L,u,D,S,P,M,g,U,y,G="turbo",b="glomex";export{t as ALLOWED_UI_ACTIONS,C as ComponentName,y as ContentStopReason,e as EXTERNAL_PLAYER_NAME,u as IntegrationEvent,S as KnownMarkerName,D as MarkerType,P as MediaItemErrorCode,M as Mimetype,O as Origin,g as PlaybackMode,L as PresentationMode,m as ScriptType,U as StartMethod,o as getIntegrationCssUrl,E as loadIntegrationComponent,i as loadIntegrationStyles,G as INTERNAL_PREFIX,b as PUBLIC_PREFIX};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glomex/integration-web-component",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1444.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.
|
|
35
|
+
"@glomex/integration": "1.1444.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": "
|
|
45
|
+
"gitHead": "b69a31661a7c2e502e68c43ce079861f59262a11"
|
|
46
46
|
}
|