@glomex/integration-web-component 1.1530.1 → 1.1531.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 +29 -0
- package/dist/index.js +1 -1
- package/package.json +15 -17
package/dist/index.d.ts
CHANGED
|
@@ -1434,6 +1434,10 @@ export declare interface JoynSourceMetadata extends SourceMetadataBase {
|
|
|
1434
1434
|
anonymousId?: string;
|
|
1435
1435
|
/** Authenticated user identifier. May be absent when the entitlement token cannot be decoded. */
|
|
1436
1436
|
userId?: string;
|
|
1437
|
+
/** Entitlement identifier from the entitlement token. May be absent when the entitlement token cannot be decoded. */
|
|
1438
|
+
entitlementId?: string;
|
|
1439
|
+
/** Business model for this entitlement (e.g. `"RVOD"`, `"SVOD"`). May be absent when the entitlement token cannot be decoded. */
|
|
1440
|
+
businessModel?: string;
|
|
1437
1441
|
/** CDN delivery network identifier returned by the playlist service (e.g. `"akamai"`, `"amazon"`, `"fastly"`). */
|
|
1438
1442
|
deliveryNetwork: string;
|
|
1439
1443
|
/** DRM protection system used for the source (e.g. `"fairplay"`, `"widevine"`, `"playready"`). */
|
|
@@ -1713,6 +1717,13 @@ export declare interface MediaItem {
|
|
|
1713
1717
|
}[];
|
|
1714
1718
|
/** Genre of the media item (e.g. `Documentary`) */
|
|
1715
1719
|
genre?: string;
|
|
1720
|
+
/**
|
|
1721
|
+
* Editorial program type of the media item describing what kind of content it is.
|
|
1722
|
+
*
|
|
1723
|
+
* @example ProgramType.MOVIE
|
|
1724
|
+
* @example ProgramType.SERIES
|
|
1725
|
+
*/
|
|
1726
|
+
programType?: ProgramType | `${ProgramType}`;
|
|
1716
1727
|
/** Content owner id and name of the media item */
|
|
1717
1728
|
contentOwner?: {
|
|
1718
1729
|
id?: string;
|
|
@@ -2183,6 +2194,9 @@ export declare interface Page {
|
|
|
2183
2194
|
};
|
|
2184
2195
|
apexDomain: string;
|
|
2185
2196
|
hostname: string;
|
|
2197
|
+
pathSegment1?: string;
|
|
2198
|
+
pathSegment2?: string;
|
|
2199
|
+
pathSegment3?: string;
|
|
2186
2200
|
referrer: string;
|
|
2187
2201
|
}
|
|
2188
2202
|
|
|
@@ -2203,6 +2217,21 @@ export declare enum PresentationMode {
|
|
|
2203
2217
|
AMP_DOCK = "amp-dock"
|
|
2204
2218
|
}
|
|
2205
2219
|
|
|
2220
|
+
/**
|
|
2221
|
+
* Editorial classification of the media item describing what type of program it is.
|
|
2222
|
+
*/
|
|
2223
|
+
export declare enum ProgramType {
|
|
2224
|
+
COMPILATION = "compilation",
|
|
2225
|
+
CLIP = "clip",
|
|
2226
|
+
INTERACTIVE = "interactive",
|
|
2227
|
+
LIVE_ON_DEMAND = "live-on-demand",
|
|
2228
|
+
LIVE = "live",
|
|
2229
|
+
MOVIE = "movie",
|
|
2230
|
+
SERIES = "series",
|
|
2231
|
+
SPORTS_MATCH = "sports-match",
|
|
2232
|
+
TRAILER = "trailer"
|
|
2233
|
+
}
|
|
2234
|
+
|
|
2206
2235
|
export declare enum ScriptType {
|
|
2207
2236
|
INTEGRATION_CONFIGS = "application/integration-configs+json",
|
|
2208
2237
|
/** @deprecated Use {@link ScriptType.INTEGRATION_CONFIGS} instead. */
|
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===Y.JOYN);return{id:e.id||"",provider:t?
|
|
1
|
+
function e(e){if("provider"in e)return e;let t=e.sources?.some(e=>e.mimetype===Y.JOYN);return{id:e.id||"",provider:t?V.JOYN:V.EXTERNAL,item:e}}(I=g||(g={})).DEFAULT="turbo-integration",I.SCRIPT="turbo-script",I.IFRAME="turbo-iframe",I.FULLPAGE="turbo-fullpage",I.AMP_VIDEO_IFRAME="turbo-amp-video-iframe",I.AMP_IFRAME="turbo-amp-iframe",(T=U||(U={})).INTEGRATION="glomex-integration",T.EXTERNAL_MEDIA_ITEM="external-media-item",T.GLOMEX_MEDIA_ITEM="glomex-media-item",T.JOYN_MEDIA_ITEM="joyn-media-item",(N=G||(G={})).INTEGRATION_CONFIGS="application/integration-configs+json",N.INTEGRATION_CONFIGS_LEGACY="application/glomex-integration-configs+json",N.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",N.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json";let t="turbo-player";(_=y||(y={})).NET_ID="netId",_.PPID="ppid",_.UTIQ_ID="utiqId",_.LIVERAMP_ID="liverampId",_.PAIR_ID="pairId",_.ATS_DIRECT="atsDirect",(d=v||(v={})).AAID="aaid",d.AFAI="afai",d.ASIA="asia",d.ASID="asid",d.TIFA="tifa",d.VAID="vaid",d.IDFA="idfa",d.IDFV="idfv",d.LGUDID="lgudid",d.MSAI="msai",d.OAID="oaid",d.PSNAI="psnai",d.RIDA="rida",d.VIDA="vida",d.WAID="waid",(s=F||(F={})).HIDDEN="hidden",s.INLINE="inline",s.DOCK="dock",s.LIGHTBOX="lightbox",s.LIGHTBOX_EXTERNAL="lightbox-external",s.FULLSCREEN="fullscreen",s.AMP_DOCK="amp-dock",(A=f||(f={})).READY="ready",A.INTEGRATION_ABORT="integrationabort",A.INTEGRATION_AD_AVAILABLE="integrationadavailable",A.INTEGRATION_PASSBACK="integrationpassback",A.USER_UPDATE_CONSENT="userupdateconsent",A.PLAYLIST_UPDATE="playlistupdate",A.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",A.CONTENT_SELECT="contentselect",A.CONTENT_START="contentstart",A.CONTENT_IMPRESSION="contentimpression",A.CONTENT_BUFFERING_START="contentbufferingstart",A.CONTENT_BUFFERING_END="contentbufferingend",A.CONTENT_STOP="contentstop",A.CONTENT_SUSPEND="contentsuspend",A.CONTENT_ERROR="contenterror",A.CONTENT_MARKER_REACHED="contentmarkerreached",A.CONTENT_TIME_UPDATE="timeupdate",A.CONTENT_SEEKING="seeking",A.CONTENT_SEEKED="seeked",A.CONTENT_PLAY="play",A.CONTENT_PAUSE="pause",A.CONTENT_VOLUME_CHANGE="volumechange",A.CONTENT_RATECHANGE="ratechange",A.CONTENT_ENDED="ended",A.AD_BREAK_REQUEST="adbreakrequest",A.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",A.AD_LOADED="adloaded",A.AD_IMPRESSION="adimpression",A.AD_BUFFERING_START="adbufferingstart",A.AD_BUFFERING_END="adbufferingend",A.AD_TIME_UPDATE="adtimeupdate",A.AD_VOLUME_CHANGE="advolumechange",A.AD_PAUSED="adpaused",A.AD_RESUMED="adresumed",A.AD_CLICK="adclick",A.AD_SKIPPED="adskipped",A.AD_COMPLETE="adcomplete",A.AD_ERROR="aderror",A.UI_INTERACTION="uiinteraction",(l=b||(b={})).TIME_IN_SECONDS="time",l.PERCENT="percent",l.TIME_IN_SECONDS_RECURRING="timeRecurring",(R=h||(h={})).PREROLL="preroll",R.MIDROLL="midroll",R.POSTROLL="postroll",R.FIRST_QUARTILE="contentFirstQuartile",R.MIDPOINT="contentMidpoint",R.THIRD_QUARTILE="contentThirdQuartile",R.COMPLETE="contentComplete",R.STILL_INTERESTING="stillInteresting",R.REQUEST_RECOMMENDATIONS="requestRecommendations",(c=x||(x={})).NOT_FOUND="NotFound",c.FORBIDDEN="Forbidden",c.HIDDEN="Hidden",c.NO_CONTENT="NoContent",c.GENERIC="Generic",(p=k||(k={})).NOT_FOUND="NotFound",p.NOT_AVAILABLE="NotAvailable",p.GEOBLOCKED="Geoblocked",p.YOUTH_PROTECTED="YouthProtected",p.TERMINATED="Terminated",p.EXPIRED="Expired",p.LOGIN_REQUIRED="LoginRequired",p.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",p.VPN_DETECTED="VpnDetected",p.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",p.PIN_REQUIRED="PinRequired",p.INVALID_PIN="InvalidPin",p.GENERIC="Generic",(m=V||(V={})).GLOMEX="glomex",m.JOYN="joyn",m.EXTERNAL="external",(O=Y||(Y={})).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",(D=B||(B={})).LIVE="live",D.VOD="vod",D.INTERACTIVE="interactive",D.EMBED="embed",(L=H||(H={})).COMPILATION="compilation",L.CLIP="clip",L.INTERACTIVE="interactive",L.LIVE_ON_DEMAND="live-on-demand",L.LIVE="live",L.MOVIE="movie",L.SERIES="series",L.SPORTS_MATCH="sports-match",L.TRAILER="trailer",(C=X||(X={})).FAIRPLAY="com.apple.fps",C.WIDEVINE="com.widevine.alpha",C.PLAYREADY="com.microsoft.playready",(P=K||(K={})).PREROLL="preroll",P.MIDROLL="midroll",P.POSTROLL="postroll",P.OVERLAY="overlay",(u=w||(w={})).LINEAR="linear",u.OVERLAY="overlay",u.CUTIN="cutin",u.PAUSE="pause",(S=Q||(Q={})).PRE_CLICK="pre-click-to-play",S.CLICK="click-to-play",S.AUTOPLAY_SCROLL="autoplay-scroll",S.AUTOPLAY_SCROLL_OUT="autoplay-scroll-out",S.CLICK_NEXT="click-to-play-next",S.CLICK_REPLAY="click-to-play-replay",S.AUTOPLAY_NEXT="autoplay-next",(M=q||(q={})).CLEAR_PLAYLIST="clearPlaylist",M.SELECT_PLAYLIST_ITEM="selectPlaylistItem",M.ENDED="ended",M.CONTENT_ERROR="contentError",M.API_STOP="apiStop",M.LIVESTREAM_STOP="livestreamStop",M.LIVESTREAM_NOT_STARTED="livestreamNotStarted",M.PAGE_HIDE="pageHide",M.BEFORE_UNLOAD="beforeUnload";let a="player.glomex.com",n=`https://${a}/integration/1/integration.js`;function o(e){return`https://${a}/variant/${e}/variant.css`}function E(){if(window.customElements.get(U.INTEGRATION))return;let e=document.createElement("script");e.innerText=`import('${n}');`,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)}async function r(){await customElements.whenDefined(U.INTEGRATION);let e=customElements.get(U.INTEGRATION);if(!e?.sharedContext)throw Error("sharedContext not available on glomex-integration element");return e.sharedContext}var I,T,N,_,d,s,A,l,R,c,p,m,O,D,L,C,P,u,S,M,g,U,G,y,v,F,f,b,h,x,k,V,Y,B,H,X,K,w,Q,q,j="turbo",J="glomex";export{K as AdBreakName,w as AdFormat,U as ComponentName,q as ContentStopReason,v as DeviceIdName,X as DrmSystem,t as EXTERNAL_PLAYER_NAME,f as IntegrationEvent,h as KnownMarkerName,b as MarkerType,k as MediaItemErrorCode,V as MediaItemProvider,x as MediaProviderErrorCode,Y as Mimetype,g as Origin,B as PlaybackMode,F as PresentationMode,H as ProgramType,G as ScriptType,Q as StartMethod,y as UserIdName,o as getIntegrationCssUrl,r as getSharedContext,E as loadIntegrationComponent,i as loadIntegrationStyles,e as normalizeMediaItem,j as INTERNAL_PREFIX,J 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.1531.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",
|
|
@@ -22,25 +22,23 @@
|
|
|
22
22
|
"dist/**/*.js",
|
|
23
23
|
"dist/**/*.d.ts"
|
|
24
24
|
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"prepack": "npm run build",
|
|
27
|
-
"build": "rm -rf dist && npm-run-all --sequential \"build:ts --force\" build:rslib",
|
|
28
|
-
"build:ts": "tsc --build",
|
|
29
|
-
"build:rslib": "rslib build",
|
|
30
|
-
"lint": "tsc --noEmit && biome ci",
|
|
31
|
-
"watch": "npm-run-all --parallel \"build:* --watch\""
|
|
32
|
-
},
|
|
33
25
|
"devDependencies": {
|
|
34
|
-
"@biomejs/biome": "
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
26
|
+
"@biomejs/biome": "^2.3.11",
|
|
27
|
+
"@microsoft/api-extractor": "^7.55.2",
|
|
28
|
+
"@rslib/core": "^0.19.1",
|
|
29
|
+
"npm-run-all": "^4.1.5",
|
|
30
|
+
"typescript": "^5.9.3",
|
|
31
|
+
"@glomex/integration": "1.1531.0"
|
|
40
32
|
},
|
|
41
33
|
"publishConfig": {
|
|
42
34
|
"access": "public"
|
|
43
35
|
},
|
|
44
36
|
"license": "MIT",
|
|
45
|
-
"
|
|
46
|
-
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "rm -rf dist && npm-run-all --sequential build:ts build:rslib",
|
|
39
|
+
"build:ts": "tsc --build --force",
|
|
40
|
+
"build:rslib": "rslib build",
|
|
41
|
+
"lint": "tsc --noEmit && biome ci",
|
|
42
|
+
"watch": "npm-run-all --parallel \"build:* --watch\""
|
|
43
|
+
}
|
|
44
|
+
}
|