@glomex/integration-web-component 1.1534.1 → 1.1536.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 +35 -0
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
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
|
+
|
|
4
13
|
export declare interface Ad {
|
|
5
14
|
sessionId: string;
|
|
6
15
|
id: string;
|
|
@@ -1456,6 +1465,8 @@ export declare interface JoynSourceMetadata extends SourceMetadataBase {
|
|
|
1456
1465
|
encryptionScheme: string;
|
|
1457
1466
|
/** Entitlement token received from the Joyn entitlement service. */
|
|
1458
1467
|
entitlementToken: string;
|
|
1468
|
+
/** Joyn packages associated with the entitlement token (e.g. `DE_FREE`, `DE_PREMIUM`, `DE_REG`) */
|
|
1469
|
+
joynPackages?: string[];
|
|
1459
1470
|
}
|
|
1460
1471
|
|
|
1461
1472
|
export declare enum KnownMarkerName {
|
|
@@ -2473,6 +2484,19 @@ export declare interface SourceMediaItemBase {
|
|
|
2473
2484
|
* @defaultValue `PlaybackMode.VOD`
|
|
2474
2485
|
*/
|
|
2475
2486
|
playbackMode?: PlaybackMode;
|
|
2487
|
+
/**
|
|
2488
|
+
* When `true`, playback must always remain at the live edge.
|
|
2489
|
+
* Seeking behind the live edge is not permitted.
|
|
2490
|
+
*
|
|
2491
|
+
* @defaultValue `undefined` (treated as `false` — timeshift / seek-back is allowed)
|
|
2492
|
+
*/
|
|
2493
|
+
liveEdgeOnly?: boolean;
|
|
2494
|
+
/**
|
|
2495
|
+
* Classification of the user's access level for this source.
|
|
2496
|
+
*
|
|
2497
|
+
* @defaultValue `undefined` (access tier is unknown or not applicable)
|
|
2498
|
+
*/
|
|
2499
|
+
accessTier?: AccessTier;
|
|
2476
2500
|
/**
|
|
2477
2501
|
* Duration in seconds. Only relevant for dynamic content.
|
|
2478
2502
|
*/
|
|
@@ -2547,6 +2571,17 @@ export declare interface SourceSelected {
|
|
|
2547
2571
|
playbackMode?: PlaybackMode;
|
|
2548
2572
|
/** DRM system used to protect the source, if any. */
|
|
2549
2573
|
drmSystem?: DrmSystem;
|
|
2574
|
+
/**
|
|
2575
|
+
* When `true`, playback always remains at the live edge.
|
|
2576
|
+
* Seeking behind the live edge is not permitted.
|
|
2577
|
+
*/
|
|
2578
|
+
liveEdgeOnly?: boolean;
|
|
2579
|
+
/**
|
|
2580
|
+
* Classification of the user's access level for this source.
|
|
2581
|
+
*
|
|
2582
|
+
* `undefined` means the access tier is unknown or not applicable.
|
|
2583
|
+
*/
|
|
2584
|
+
accessTier?: AccessTier;
|
|
2550
2585
|
/** Provider-generated metadata for this source. */
|
|
2551
2586
|
metadata?: SourceMetadata;
|
|
2552
2587
|
}
|
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",(_=G||(G={})).INTEGRATION="glomex-integration",_.TURBO_INTEGRATION="turbo-integration",_.EXTERNAL_MEDIA_ITEM="external-media-item",_.GLOMEX_MEDIA_ITEM="glomex-media-item",_.JOYN_MEDIA_ITEM="joyn-media-item",(m=F||(F={})).INTEGRATION_CONFIGS="application/integration-configs+json",m.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",m.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",m.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(N=b||(b={})).NET_ID="netId",N.PPID="ppid",N.UTIQ_ID="utiqId",N.LIVERAMP_ID="liverampId",N.PAIR_ID="pairId",N.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=$||($={})).FREE="free",M.REGISTERED="registered",M.PREMIUM="premium",(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,_,m,N,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{$ as AccessTier,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,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.1536.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.1536.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": "1ab62f972a499ef0c086b462a82ff5390ed53c66"
|
|
47
47
|
}
|