🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@turbo-player/integration-web-component

Package Overview
Dependencies
Maintainers
4
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@turbo-player/integration-web-component - npm Package Compare versions

Comparing version
1.1581.5
to
1.1583.0
dist/index.d.ts

Sorry, the diff of this file is too big to display

+1
var e,t,a,o,E=((e={}).CLICK_TO_PLAY="click-to-play",e.SCROLL_TO_PLAY="scroll-to-play",e.SCROLL_TO_PLAY_WHEN_AD="scroll-to-play-when-ad",e.SCROLL_TO_PLAY_WITH_OUT_TO_PLAY_FALLBACK="scroll-to-play-with-out-to-play-fallback",e.SCROLL_TO_PLAY_WITH_SILENT_FALLBACK="scroll-to-play-with-silent-fallback",e.SILENT_SCROLL_TO_PLAY="silent-scroll-to-play",e.SILENT_SCROLL_TO_PLAY_WHEN_AD="silent-scroll-to-play-when-ad",e.SCROLL_OUT_TO_PLAY="scroll-out-to-play",e.SCROLL_OUT_TO_PLAY_WHEN_AD="scroll-out-to-play-when-ad",e),i=((t={}).LOOP="loop",t.STOP="stop",t),n=((a={}).CONTINUE="continue",a.NONE="none",a),r=((o={}).TOP="top",o.BOTTOM="bottom",o.LEFT="left",o.RIGHT="right",o.BOTTOM_LEFT="bottomLeft",o.BOTTOM_RIGHT="bottomRight",o.TOP_LEFT="topLeft",o.TOP_RIGHT="topRight",o.STICKY_TOP="stickyTop",o.STICKY_TOP_EXPANDED="stickyTopExpanded",o);function l(e){if("provider"in e)return e;let t=e.sources?.some(e=>"application/x-joyn-source"===e.mimetype);return{id:e.id||"",provider:t?"joyn":"external",item:e}}var T,I,_,A,d,s,N,R,O,c,p,L,D,C,m,P,S,u,U,y,g,M=((T={}).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",T),f=((I={}).PLAYER_CONFIG="application/player-config+json",I.PLAYER_CONFIG_LEGACY_V2="application/integration-configs+json",I.PLAYER_CONFIG_LEGACY_V1="application/glomex-integration-configs+json",I.EXTERNAL_MEDIA_ITEM="application/external-media-item+json",I.EXTERNAL_MEDIA_ITEM_LEGACY="application/glomex-external-media-item+json",I);let G='script[type="application/player-config+json"], script[type="application/integration-configs+json"], script[type="application/glomex-integration-configs+json"]',Y="inline-player-config",b="turbo",h=`${b}-player`;var v=((_={}).NET_ID="netId",_.PPID="ppid",_.UTIQ_ID="utiqId",_.LIVERAMP_ID="liverampId",_.PAIR_ID="pairId",_.ATS_DIRECT="atsDirect",_.SHARED_ID="sharedId",_.THE_ADEX_ID="theAdexId",_.ID5_ID="id5Id",_.CRITEO_ID="criteoId",_.LOTAME_PANORAMA_ID="lotamePanoramaId",_.UNIFIED_ID2="unifiedId2Id",_.EU_ID="euId",_.YIELDLAB_ID="yieldlabId",_),F=((A={}).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",A),B=((d={}).HIDDEN="hidden",d.INLINE="inline",d.DOCK="dock",d.LIGHTBOX="lightbox",d.LIGHTBOX_EXTERNAL="lightbox-external",d.FULLSCREEN="fullscreen",d.AMP_DOCK="amp-dock",d),H=((s={}).READY="ready",s.INTEGRATION_CREATE="integrationcreate",s.INTEGRATION_ABORT="integrationabort",s.INTEGRATION_AD_AVAILABLE="integrationadavailable",s.INTEGRATION_PASSBACK="integrationpassback",s.INTEGRATION_IMPRESSION="integrationimpression",s.USER_UPDATE_CONSENT="userupdateconsent",s.PLAYLIST_UPDATE="playlistupdate",s.PLAYER_SET_PRESENTATION_MODE="playersetpresentationmode",s.CONTENT_SELECT="contentselect",s.CONTENT_PROGRAM_CHANGED="contentprogramchanged",s.CONTENT_START="contentstart",s.CONTENT_IMPRESSION="contentimpression",s.CONTENT_BUFFERING_START="contentbufferingstart",s.CONTENT_BUFFERING_END="contentbufferingend",s.CONTENT_STOP="contentstop",s.CONTENT_SUSPEND="contentsuspend",s.CONTENT_ERROR="contenterror",s.CONTENT_API_SCRIPT_WARN="contentapiscriptwarn",s.CONTENT_MARKER_REACHED="contentmarkerreached",s.TEASER_IMPRESSION="teaserimpression",s.TEASER_CLICK="teaserclick",s.CONTENT_TIME_UPDATE="timeupdate",s.CONTENT_SEEKING="seeking",s.CONTENT_SEEKED="seeked",s.CONTENT_PLAY="play",s.CONTENT_PAUSE="pause",s.CONTENT_VOLUME_CHANGE="volumechange",s.CONTENT_RATECHANGE="ratechange",s.CONTENT_ENDED="ended",s.AD_BREAK_REQUEST="adbreakrequest",s.AD_BREAK_REQUEST_ERROR="adbreakrequesterror",s.AD_LOADED="adloaded",s.AD_IMPRESSION="adimpression",s.AD_BUFFERING_START="adbufferingstart",s.AD_BUFFERING_END="adbufferingend",s.AD_TIME_UPDATE="adtimeupdate",s.AD_VOLUME_CHANGE="advolumechange",s.AD_PAUSED="adpaused",s.AD_RESUMED="adresumed",s.AD_CLICK="adclick",s.AD_SKIPPED="adskipped",s.AD_COMPLETE="adcomplete",s.AD_VIEWABLE_50_BY_2="adviewable50by2",s.AD_VIEWABLE_100_BY_15="adviewable100by15",s.AD_ERROR="aderror",s.UI_INTERACTION="uiinteraction",s),k=((N={}).TIME_IN_SECONDS="time",N.PERCENT="percent",N.TIME_IN_SECONDS_RECURRING="timeRecurring",N),V=((R={}).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",R),w=((O={}).NOT_FOUND="NotFound",O.FORBIDDEN="Forbidden",O.HIDDEN="Hidden",O.NO_CONTENT="NoContent",O.GENERIC="Generic",O),x=((c={}).NOT_FOUND="NotFound",c.NOT_AVAILABLE="NotAvailable",c.GEOBLOCKED="Geoblocked",c.YOUTH_PROTECTED="YouthProtected",c.TERMINATED="Terminated",c.EXPIRED="Expired",c.LOGIN_REQUIRED="LoginRequired",c.HIGHER_TIER_ACCOUNT_REQUIRED="HigherTierAccountRequired",c.VPN_DETECTED="VpnDetected",c.AGE_VERIFICATION_REQUIRED="AgeVerificationRequired",c.PIN_REQUIRED="PinRequired",c.INVALID_PIN="InvalidPin",c.GENERIC="Generic",c),K=((p={}).HLS="application/vnd.apple.mpegurl",p.HLS_LEGACY="application/x-mpegURL",p.DASH="application/dash+xml",p.MP4="video/mp4",p.OGG="video/ogg",p.WEBM="video/webm",p.MP3="audio/mp3",p.AAC="audio/aac",p.WAV="audio/wav",p.OGG_AUDIO="audio/ogg",p.MPEG_AUDIO="audio/mpeg",p.DYNAMIC_CONTENT="application/x-turbo-dynamic-content",p.JOYN="application/x-joyn-source",p),Q=((L={}).LIVE="live",L.VOD="vod",L.INTERACTIVE="interactive",L.EMBED="embed",L),W=((D={}).COMPILATION="compilation",D.CLIP="clip",D.INTERACTIVE="interactive",D.LIVE_ON_DEMAND="live-on-demand",D.LIVE="live",D.MOVIE="movie",D.SERIES="series",D.SPORTS_MATCH="sports-match",D.TRAILER="trailer",D),X=((C={}).ANONYMOUS="anonymous",C.REGISTERED="registered",C.PAID="paid",C),j=((m={}).FAIRPLAY="com.apple.fps",m.WIDEVINE="com.widevine.alpha",m.PLAYREADY="com.microsoft.playready",m),q=((P={}).PREROLL="preroll",P.MIDROLL="midroll",P.POSTROLL="postroll",P.OVERLAY="overlay",P),$=((S={}).LINEAR="linear",S.OVERLAY="overlay",S.CUTIN="cutin",S.PAUSE="pause",S),z=((u={}).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",u),J=((U={}).CLEAR_PLAYLIST="clearPlaylist",U.SELECT_PLAYLIST_ITEM="selectPlaylistItem",U.ENDED="ended",U.CONTENT_ERROR="contentError",U.API_STOP="apiStop",U.LIVESTREAM_STOP="livestreamStop",U.LIVESTREAM_NOT_STARTED="livestreamNotStarted",U.PAGE_HIDE="pageHide",U.BEFORE_UNLOAD="beforeUnload",U),Z=((y={}).UNKNOWN="unknown",y.DISABLED="disabled",y.ABORTED="aborted",y.AD_LOAD_ERROR="ad-load-error",y.MISCONFIGURED="misconfigured",y.AUTOPLAY_BLOCKED="autoplay-blocked",y),ee=((g={}).TEASER="teaser",g.ENDSCREEN_RECOMMENDATION="endscreen-recommendation",g.ENDSCREEN_REPLAY="endscreen-replay",g.CAROUSEL="carousel",g.GRID="grid",g);function et(e,t,a=document){if(!t)return;let o=t.replace("{id}",e);if(a.querySelector(`link[href="${o}"]`))return;let E=(a instanceof ShadowRoot?a.ownerDocument:a).createElement("link");E.rel="stylesheet",E.href=o,a instanceof ShadowRoot?a.appendChild(E):(a.head||a.body||a).appendChild(E)}function ea(e,t){if(window.customElements.get(e))return;let a=document.createElement("script");a.innerText=`import('${t}');`,a.type="module",(document.head||document.body||document).appendChild(a)}function eo(e){let t=t=>{if(!1===e.stylesUrl)return"";if(null!=e.stylesUrl)return e.stylesUrl.replace("{id}",t);if(!e.moduleUrl)return"";try{let a=new URL(e.moduleUrl,window.location.href).origin;return`${a}/config/${t}/styles.css`}catch{throw Error(`Unable to resolve origin from moduleUrl "${e.moduleUrl}". Provide an absolute moduleUrl or set stylesUrl explicitly.`)}};return{getComponentName:()=>e.tagName,getCssUrl:t,loadComponent:()=>{e.moduleUrl&&ea(e.tagName,e.moduleUrl)},loadStyles:(e,a)=>{let o=t(e);o&&et(e,o,a)},getHostContext:async()=>{await customElements.whenDefined(e.tagName);let t=customElements.get(e.tagName);if(!t?.hostContext)throw Error(`hostContext not available on ${e.tagName} element`);return t.hostContext}}}export{j as DrmSystem,M as Origin,x as MediaItemErrorCode,H as IntegrationEvent,q as AdBreakName,z as StartMethod,i as PlaylistEndBehavior,h as EXTERNAL_PLAYER_NAME,n as Endscreen,Y as INLINE_PLAYER_CONFIG_SLOT_NAME,ee as TeaserEnvironment,G as PLAYER_CONFIG_SCRIPT_SELECTOR,B as PresentationMode,W as ProgramType,et as loadStyles,K as Mimetype,w as MediaProviderErrorCode,r as DockPosition,l as normalizeMediaItem,eo as createIntegrationClient,k as MarkerType,v as UserIdName,X as UserTier,Z as PassbackReason,Q as PlaybackMode,E as StartBehavior,f as ScriptType,ea as loadComponent,b as INTERNAL_PREFIX,V as KnownMarkerName,J as ContentStopReason,$ as AdFormat,F as DeviceIdName};
+5
-7
{
"name": "@turbo-player/integration-web-component",
"version": "1.1581.5",
"version": "1.1583.0",
"description": "Web component and types to integrate the turbo player",

@@ -25,7 +25,5 @@ "keywords": [

"postpublish": "pnpm publish --registry=https://npm.pkg.github.com --no-git-checks --ignore-scripts",
"build": "rm -rf dist && npm-run-all --sequential build:ts build:rslib",
"build:ts": "tsc --build --force",
"build:rslib": "rslib build",
"build": "rm -rf dist && rslib build",
"lint": "tsc --noEmit && biome ci",
"watch": "npm-run-all --parallel \"build:* --watch\""
"watch": "rslib build --watch"
},

@@ -36,3 +34,3 @@ "devDependencies": {

"@rslib/core": "catalog:",
"@turbo-player/core": "1.1581.5",
"@turbo-player/core": "1.1583.0",
"npm-run-all": "catalog:",

@@ -45,3 +43,3 @@ "typescript": "catalog:"

"license": "MIT",
"gitHead": "2568a38afffc541e7d208559aa9c2ad8b8690856"
"gitHead": "eb72a890701ad27eba03a424799949fc764b81d4"
}