@glomex/integration-web-component 1.1535.0 → 1.1537.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 +23 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1456,6 +1456,8 @@ export declare interface JoynSourceMetadata extends SourceMetadataBase {
|
|
|
1456
1456
|
encryptionScheme: string;
|
|
1457
1457
|
/** Entitlement token received from the Joyn entitlement service. */
|
|
1458
1458
|
entitlementToken: string;
|
|
1459
|
+
/** Joyn packages associated with the entitlement token (e.g. `DE_FREE`, `DE_PREMIUM`, `DE_REG`) */
|
|
1460
|
+
joynPackages?: string[];
|
|
1459
1461
|
}
|
|
1460
1462
|
|
|
1461
1463
|
export declare enum KnownMarkerName {
|
|
@@ -2480,6 +2482,12 @@ export declare interface SourceMediaItemBase {
|
|
|
2480
2482
|
* @defaultValue `undefined` (treated as `false` — timeshift / seek-back is allowed)
|
|
2481
2483
|
*/
|
|
2482
2484
|
liveEdgeOnly?: boolean;
|
|
2485
|
+
/**
|
|
2486
|
+
* Classification of the user's access level for this source.
|
|
2487
|
+
*
|
|
2488
|
+
* @defaultValue `undefined` (user tier is unknown or not applicable)
|
|
2489
|
+
*/
|
|
2490
|
+
userTier?: UserTier;
|
|
2483
2491
|
/**
|
|
2484
2492
|
* Duration in seconds. Only relevant for dynamic content.
|
|
2485
2493
|
*/
|
|
@@ -2559,6 +2567,12 @@ export declare interface SourceSelected {
|
|
|
2559
2567
|
* Seeking behind the live edge is not permitted.
|
|
2560
2568
|
*/
|
|
2561
2569
|
liveEdgeOnly?: boolean;
|
|
2570
|
+
/**
|
|
2571
|
+
* Classification of the user's tier for this source.
|
|
2572
|
+
*
|
|
2573
|
+
* `undefined` means the user tier is unknown or not applicable.
|
|
2574
|
+
*/
|
|
2575
|
+
userTier?: UserTier;
|
|
2562
2576
|
/** Provider-generated metadata for this source. */
|
|
2563
2577
|
metadata?: SourceMetadata;
|
|
2564
2578
|
}
|
|
@@ -2690,6 +2704,15 @@ export declare enum UserIdName {
|
|
|
2690
2704
|
ATS_DIRECT = "atsDirect"
|
|
2691
2705
|
}
|
|
2692
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
|
+
|
|
2693
2716
|
/**
|
|
2694
2717
|
* Represents a video track (quality variant).
|
|
2695
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===
|
|
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.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,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@biomejs/biome": "catalog:",
|
|
35
|
-
"@glomex/integration": "1.
|
|
36
|
-
"@glomex/turbo-shared-types": "1.
|
|
35
|
+
"@glomex/integration": "1.1537.0",
|
|
36
|
+
"@glomex/turbo-shared-types": "1.1536.0",
|
|
37
37
|
"@microsoft/api-extractor": "catalog:",
|
|
38
38
|
"@rslib/core": "catalog:",
|
|
39
39
|
"npm-run-all": "catalog:",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
45
|
"license": "MIT",
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "35fa93e5b50a885ce42aeb07dd0dc7aed22c0bac"
|
|
47
47
|
}
|