@glomex/integration-web-component 1.1536.0 → 1.1537.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/dist/index.d.ts +14 -14
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import type { SerializedError } from '@reduxjs/toolkit';
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Classification of the user's access level for a source.
|
|
6
|
-
*/
|
|
7
|
-
export declare enum AccessTier {
|
|
8
|
-
FREE = "free",
|
|
9
|
-
REGISTERED = "registered",
|
|
10
|
-
PREMIUM = "premium"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
4
|
export declare interface Ad {
|
|
14
5
|
sessionId: string;
|
|
15
6
|
id: string;
|
|
@@ -2494,9 +2485,9 @@ export declare interface SourceMediaItemBase {
|
|
|
2494
2485
|
/**
|
|
2495
2486
|
* Classification of the user's access level for this source.
|
|
2496
2487
|
*
|
|
2497
|
-
* @defaultValue `undefined` (
|
|
2488
|
+
* @defaultValue `undefined` (user tier is unknown or not applicable)
|
|
2498
2489
|
*/
|
|
2499
|
-
|
|
2490
|
+
userTier?: UserTier;
|
|
2500
2491
|
/**
|
|
2501
2492
|
* Duration in seconds. Only relevant for dynamic content.
|
|
2502
2493
|
*/
|
|
@@ -2577,11 +2568,11 @@ export declare interface SourceSelected {
|
|
|
2577
2568
|
*/
|
|
2578
2569
|
liveEdgeOnly?: boolean;
|
|
2579
2570
|
/**
|
|
2580
|
-
* Classification of the user's
|
|
2571
|
+
* Classification of the user's tier for this source.
|
|
2581
2572
|
*
|
|
2582
|
-
* `undefined` means the
|
|
2573
|
+
* `undefined` means the user tier is unknown or not applicable.
|
|
2583
2574
|
*/
|
|
2584
|
-
|
|
2575
|
+
userTier?: UserTier;
|
|
2585
2576
|
/** Provider-generated metadata for this source. */
|
|
2586
2577
|
metadata?: SourceMetadata;
|
|
2587
2578
|
}
|
|
@@ -2713,6 +2704,15 @@ export declare enum UserIdName {
|
|
|
2713
2704
|
ATS_DIRECT = "atsDirect"
|
|
2714
2705
|
}
|
|
2715
2706
|
|
|
2707
|
+
/**
|
|
2708
|
+
* Classification of the user's tier.
|
|
2709
|
+
*/
|
|
2710
|
+
export declare enum UserTier {
|
|
2711
|
+
ANONYMOUS = "anonymous",
|
|
2712
|
+
REGISTERED = "registered",
|
|
2713
|
+
PAID = "paid"
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
2716
|
/**
|
|
2717
2717
|
* Represents a video track (quality variant).
|
|
2718
2718
|
*/
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===j.JOYN);return{id:e.id||"",provider:t?K.JOYN:K.EXTERNAL,item:e}}(T=x||(x={})).DEFAULT="turbo-integration",T.SCRIPT="turbo-script",T.IFRAME="turbo-iframe",T.FULLPAGE="turbo-fullpage",T.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",T.AMP_IFRAME="turbo-amp-iframe",(
|
|
1
|
+
function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===j.JOYN);return{id:e.id||"",provider:t?K.JOYN:K.EXTERNAL,item:e}}(T=x||(x={})).DEFAULT="turbo-integration",T.SCRIPT="turbo-script",T.IFRAME="turbo-iframe",T.FULLPAGE="turbo-fullpage",T.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",T.AMP_IFRAME="turbo-amp-iframe",(N=G||(G={})).INTEGRATION="glomex-integration",N.TURBO_INTEGRATION="turbo-integration",N.EXTERNAL_MEDIA_ITEM="external-media-item",N.GLOMEX_MEDIA_ITEM="glomex-media-item",N.JOYN_MEDIA_ITEM="joyn-media-item",(_=F||(F={})).INTEGRATION_CONFIGS="application/integration-configs+json",_.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",_.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",_.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(m=b||(b={})).NET_ID="netId",m.PPID="ppid",m.UTIQ_ID="utiqId",m.LIVERAMP_ID="liverampId",m.PAIR_ID="pairId",m.ATS_DIRECT="atsDirect",(A=k||(k={})).AAID="aaid",A.AFAI="afai",A.ASIA="asia",A.ASID="asid",A.TIFA="tifa",A.VAID="vaid",A.IDFA="idfa",A.IDFV="idfv",A.LGUDID="lgudid",A.MSAI="msai",A.OAID="oaid",A.PSNAI="psnai",A.RIDA="rida",A.VIDA="vida",A.WAID="waid",(p=V||(V={})).HIDDEN="hidden",p.INLINE="inline",p.DOCK="dock",p.LIGHTBOX="lightbox",p.LIGHTBOX_EXTERNAL="lightbox-external",p.FULLSCREEN="fullscreen",p.AMP_DOCK="amp-dock",(R=Y||(Y={})).READY="ready",R.INTEGRATION_ABORT="integrationabort",R.INTEGRATION_AD_AVAILABLE="integrationadavailable",R.INTEGRATION_PASSBACK="integrationpassback",R.USER_UPDATE_CONSENT="userupdateconsent",R.PLAYLIST_UPDATE="playlistupdate",R.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",R.CONTENT_SELECT="contentselect",R.CONTENT_START="contentstart",R.CONTENT_IMPRESSION="contentimpression",R.CONTENT_BUFFERING_START="contentbufferingstart",R.CONTENT_BUFFERING_END="contentbufferingend",R.CONTENT_STOP="contentstop",R.CONTENT_SUSPEND="contentsuspend",R.CONTENT_ERROR="contenterror",R.CONTENT_MARKER_REACHED="contentmarkerreached",R.CONTENT_TIME_UPDATE="timeupdate",R.CONTENT_SEEKING="seeking",R.CONTENT_SEEKED="seeked",R.CONTENT_PLAY="play",R.CONTENT_PAUSE="pause",R.CONTENT_VOLUME_CHANGE="volumechange",R.CONTENT_RATECHANGE="ratechange",R.CONTENT_ENDED="ended",R.AD_BREAK_REQUEST="adbreakrequest",R.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",R.AD_LOADED="adloaded",R.AD_IMPRESSION="adimpression",R.AD_BUFFERING_START="adbufferingstart",R.AD_BUFFERING_END="adbufferingend",R.AD_TIME_UPDATE="adtimeupdate",R.AD_VOLUME_CHANGE="advolumechange",R.AD_PAUSED="adpaused",R.AD_RESUMED="adresumed",R.AD_CLICK="adclick",R.AD_SKIPPED="adskipped",R.AD_COMPLETE="adcomplete",R.AD_ERROR="aderror",R.UI_INTERACTION="uiinteraction",(u=B||(B={})).TIME_IN_SECONDS="time",u.PERCENT="percent",u.TIME_IN_SECONDS_RECURRING="timeRecurring",(g=H||(H={})).PREROLL="preroll",g.MIDROLL="midroll",g.POSTROLL="postroll",g.FIRST_QUARTILE="contentFirstQuartile",g.MIDPOINT="contentMidpoint",g.THIRD_QUARTILE="contentThirdQuartile",g.COMPLETE="contentComplete",g.STILL_INTERESTING="stillInteresting",g.REQUEST_RECOMMENDATIONS="requestRecommendations",(O=X||(X={})).NOT_FOUND="NotFound",O.FORBIDDEN="Forbidden",O.HIDDEN="Hidden",O.NO_CONTENT="NoContent",O.GENERIC="Generic",(D=w||(w={})).NOT_FOUND="NotFound",D.NOT_AVAILABLE="NotAvailable",D.GEOBLOCKED="Geoblocked",D.YOUTH_PROTECTED="YouthProtected",D.TERMINATED="Terminated",D.EXPIRED="Expired",D.LOGIN_REQUIRED="LoginRequired",D.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",D.VPN_DETECTED="VpnDetected",D.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",D.PIN_REQUIRED="PinRequired",D.INVALID_PIN="InvalidPin",D.GENERIC="Generic",(L=K||(K={})).GLOMEX="glomex",L.JOYN="joyn",L.EXTERNAL="external",(C=j||(j={})).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",(S=Q||(Q={})).LIVE="live",S.VOD="vod",S.INTERACTIVE="interactive",S.EMBED="embed",(P=q||(q={})).COMPILATION="compilation",P.CLIP="clip",P.INTERACTIVE="interactive",P.LIVE_ON_DEMAND="live-on-demand",P.LIVE="live",P.MOVIE="movie",P.SERIES="series",P.SPORTS_MATCH="sports-match",P.TRAILER="trailer",(M=$||($={})).ANONYMOUS="anonymous",M.REGISTERED="registered",M.PAID="paid",(y=J||(J={})).FAIRPLAY="com.apple.fps",y.WIDEVINE="com.widevine.alpha",y.PLAYREADY="com.microsoft.playready",(f=W||(W={})).PREROLL="preroll",f.MIDROLL="midroll",f.POSTROLL="postroll",f.OVERLAY="overlay",(v=z||(z={})).LINEAR="linear",v.OVERLAY="overlay",v.CUTIN="cutin",v.PAUSE="pause",(U=Z||(Z={})).PRE_CLICK="pre-click-to-play",U.CLICK="click-to-play",U.AUTOPLAY_SCROLL="autoplay-scroll",U.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",U.CLICK_NEXT="click-to-play-next",U.CLICK_REPLAY="click-to-play-replay",U.AUTOPLAY_NEXT="autoplay-next",(h=ee||(ee={})).CLEAR_PLAYLIST="clearPlaylist",h.SELECT_PLAYLIST_ITEM="selectPlaylistItem",h.ENDED="ended",h.CONTENT_ERROR="contentError",h.API_STOP="apiStop",h.LIVESTREAM_STOP="livestreamStop",h.LIVESTREAM_NOT_STARTED="livestreamNotStarted",h.PAGE_HIDE="pageHide",h.BEFORE_UNLOAD="beforeUnload";let o=["glomex","joyn"],a={glomex:{name:"glomex",domains:["player.glomex.com","player.mes.glomex.cloud","player.stage.mes.glomex.cloud"],configVersion:1,skipLegacyAuth:!1,configService:{prod:"https://config-vvs.glomex.com",stage:"https://vvs-config.stage.mes.glomex.cloud"},integrationService:{prod:"https://integration-cloudfront-eu-west-1.mes.glomex.cloud",stage:"https://integration-cloudfront-eu-west-1.stage.mes.glomex.cloud"},salesHouseService:{prod:"https://sales-house-configuration.mes.glomex.cloud/v2/config/",stage:"https://sales-house-configuration.stage.mes.glomex.cloud/v2/config/"},variantService:{prod:"https://player.glomex.com",stage:"https://player.stage.mes.glomex.cloud"},integrationLoader:{scriptBase:{prod:"https://player.glomex.com",stage:"https://player.stage.mes.glomex.cloud"},cssPath:"/variant/{id}/variant.css",componentName:"glomex-integration"}},joyn:{name:"joyn",domains:["player.joyn.de","player.stg.joyn.de","dg62ywrecl0tk.cloudfront.net","d15my2nums9uz9.cloudfront.net"],configVersion:2,skipLegacyAuth:!0,configService:{prod:"https://d15my2nums9uz9.cloudfront.net",stage:"https://dg62ywrecl0tk.cloudfront.net",local:"https://localhost:5174"},integrationService:void 0,salesHouseService:void 0,integrationLoader:{cssPath:"/config/{id}/styles.css",componentName:"turbo-integration"}}};function n(e){var t;return e&&"string"==typeof(t=e)&&o.includes(t)?a[e]:a.glomex}function i(e,t){let o=n(e);var a=o.integrationLoader.scriptBase??o.configService,i=t||"prod";if(a)return"local"===i&&a.local?a.local:"stage"===i||"local"===i?a.stage:a.prod}function r(e,t,o){let a=n(t),r=i(t,o);return`${r}${a.integrationLoader.cssPath.replace("{id}",e)}`}function E(e){return n(e).integrationLoader.componentName}function s(e,t,o){return r(e,t,o)}function d(e){return E(e)}function l(e,t){let o=E(e);if(window.customElements.get(o))return;let a=`${i(e,t)}/integration/1/integration.js`,n=document.createElement("script");n.innerText=`import('${a}');`,n.type="module",(document.head||document.body).appendChild(n)}function c(e,t,o){let a=r(e,t,o);if(document.querySelector(`link[href="${a}"]`))return;let n=document.createElement("link");n.rel="stylesheet",n.href=a,(document.head||document.body).appendChild(n)}async function I(e){let t=E(e);await customElements.whenDefined(t);let o=customElements.get(t);if(!o?.sharedContext)throw Error(`sharedContext not available on ${t} element`);return o.sharedContext}var T,N,_,m,A,p,R,u,g,O,D,L,C,S,P,M,y,f,v,U,h,x,G,F,b,k,V,Y,B,H,X,w,K,j,Q,q,$,J,W,z,Z,ee,et="turbo",eo="glomex";export{W as AdBreakName,z as AdFormat,G as ComponentName,ee as ContentStopReason,k as DeviceIdName,J as DrmSystem,t as EXTERNAL_PLAYER_NAME,Y as IntegrationEvent,H as KnownMarkerName,B as MarkerType,w as MediaItemErrorCode,K as MediaItemProvider,X as MediaProviderErrorCode,j as Mimetype,x as Origin,Q as PlaybackMode,V as PresentationMode,q as ProgramType,F as ScriptType,Z as StartMethod,b as UserIdName,$ as UserTier,d as getIntegrationComponentName,s as getIntegrationCssUrl,I as getSharedContext,l as loadIntegrationComponent,c as loadIntegrationStyles,e as normalizeMediaItem,et as INTERNAL_PREFIX,eo 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.1537.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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "catalog:",
|
|
35
|
-
"@glomex/integration": "1.
|
|
35
|
+
"@glomex/integration": "1.1537.1",
|
|
36
36
|
"@glomex/turbo-shared-types": "1.1536.0",
|
|
37
37
|
"@microsoft/api-extractor": "catalog:",
|
|
38
38
|
"@rslib/core": "catalog:",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"license": "MIT",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "63491eb9a2e62a8402aa59141262c8d2e4ea0c29"
|
|
47
47
|
}
|