@streamlayer/react 0.41.1 → 0.41.3

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./masters2.js");require("react/jsx-runtime");require("@nanostores/react");require("@streamlayer/sdk-web-types");require("react");require("react-countup");require("react-countdown-circle-timer");require("./index2.js");require("lodash.throttle");require("@streamlayer/sdk-web-interfaces");require("react-infinite-scroller");require("./index3.js");require("@streamlayer/sdk-web-notifications");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");exports.default=e.so;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./masters2.js");require("react/jsx-runtime");require("@nanostores/react");require("@streamlayer/sdk-web-types");require("react");require("./index2.js");require("react-countup");require("react-countdown-circle-timer");require("lodash.throttle");require("@streamlayer/sdk-web-interfaces");require("react-infinite-scroller");require("./index3.js");require("@streamlayer/sdk-web-notifications");require("./useStreamLayerApp.js");require("@streamlayer/sdk-web");exports.default=e.eo;
package/lib/cjs/index2.js CHANGED
@@ -1,16 +1,17 @@
1
- "use strict";const T=require("react/jsx-runtime"),N=require("react"),O=require("./useStreamLayerApp.js");var S=(R=>(R[R.UNSET=0]="UNSET",R[R.CONNECTED=1]="CONNECTED",R[R.READY=2]="READY",R))(S||{});const G=N.createContext({status:0,sdk:null}),B=({sdkKey:R,plugins:E,children:t,production:a=!0,autoEnable:c=!0,onDeepLinkHandled:r,videoPlayerController:A})=>{const e=O.useStreamLayerApp({sdkKey:R,plugins:E,production:a,autoEnable:c,onDeepLinkHandled:r,videoPlayerController:A}),d=N.useMemo(()=>e?{sdk:e,status:2}:{status:1,sdk:null},[e]);return N.useEffect(()=>()=>{r&&(e==null||e.removeDeepLinkHandler(r)),A&&(e==null||e.removeVideoPlayerController(A))},[e]),N.useEffect(()=>{console.log("StreamLayerProvider mounted with props:",{sdkKey:!!R,onDeepLinkHandled:!!r,videoPlayerController:!!A})},[R,r,A]),T.jsx(G.Provider,{value:d,children:t})},Y={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",LEADERBOARD_UNIT:"rgba(255, 255, 255, 0.5)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"},D={PRIMARY_GREEN1:"#107D57",PRIMARY_GREEN2:"#006747",PRIMARY_GREEN3:"#1C4932",PRIMARY_GREEN4:"#193526",SECONDARY_RED1:"#DF2F3B",SECONDARY_RED2:"#BA0C2F",SECONDARY_RED3:"#f9d6d8",SECONDARY_YELLOW:"#fce300",SECONDARY_GREEN5:"#C0DC8F",SECONDARY_GREEN6:"#cee5de",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY8:"#53565A",NEUTRALS_GRAY9:"#25282A",NEUTRALS_BLACK:"#000000"},o=Object.assign({},Y,D),_={REGULAR:"'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",SERIF:"'Tiempos', 'Tiempos Text', Times New Roman, serif",COLOR:"#fff",WEIGHT_DEFAULT:"500"},n={xs:324,sm:576,md:768,lg:992,xl:1215,xxl:1440},f={landscape:"landscape",portrait:"portrait"},u=Object.keys(o).reduce((R,E)=>{const t=o[E];return`
1
+ "use strict";const i=require("react/jsx-runtime"),a=require("react"),O=require("./useStreamLayerApp.js");var S=(R=>(R[R.UNSET=0]="UNSET",R[R.CONNECTED=1]="CONNECTED",R[R.READY=2]="READY",R))(S||{});const c=a.createContext({status:0,sdk:null}),B=({sdkKey:R,plugins:e,children:t,production:N=!0,autoEnable:G=!0,onDeepLinkHandled:r,videoPlayerController:A})=>{const E=O.useStreamLayerApp({sdkKey:R,plugins:e,production:N,autoEnable:G,onDeepLinkHandled:r,videoPlayerController:A}),d=a.useMemo(()=>E?{sdk:E,status:2}:{status:1,sdk:null},[E]);return a.useEffect(()=>()=>{r&&(E==null||E.removeDeepLinkHandler(r)),A&&(E==null||E.removeVideoPlayerController(A))},[E]),a.useEffect(()=>{localStorage.getItem("SL_DEBUG")&&console.log("StreamLayerProvider mounted with props:",{sdkKey:!!R,onDeepLinkHandled:!!r,videoPlayerController:!!A})},[R,r,A]),i.jsx(c.Provider,{value:d,children:t})},D={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",LEADERBOARD_UNIT:"rgba(255, 255, 255, 0.5)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"},Y={PRIMARY_GREEN1:"#107D57",PRIMARY_GREEN2:"#006747",PRIMARY_GREEN3:"#1C4932",PRIMARY_GREEN4:"#193526",SECONDARY_RED1:"#DF2F3B",SECONDARY_RED2:"#BA0C2F",SECONDARY_RED3:"#f9d6d8",SECONDARY_YELLOW:"#fce300",SECONDARY_GREEN5:"#C0DC8F",SECONDARY_GREEN6:"#cee5de",NEUTRALS_WHITE:"#FFFFFF",NEUTRALS_GRAY1:"#F7F7F7",NEUTRALS_GRAY2:"#F2F2F1",NEUTRALS_GRAY3:"#E8E8E8",NEUTRALS_GRAY4:"#D9D9D6",NEUTRALS_GRAY5:"#B1B3B3",NEUTRALS_GRAY6:"#888B8D",NEUTRALS_GRAY7:"#6B6F73",NEUTRALS_GRAY8:"#53565A",NEUTRALS_GRAY9:"#25282A",NEUTRALS_BLACK:"#000000"},o=Object.assign({},D,Y),_={REGULAR:"'Benton Sans', BentonSans, Arial, Helvetica, sans-serif",SERIF:"'Tiempos', 'Tiempos Text', Times New Roman, serif",COLOR:"#fff",WEIGHT_DEFAULT:"500"},n={xs:324,sm:576,md:768,lg:992,xl:1200,xxl:1440},f={landscape:"landscape",portrait:"portrait"},p=Object.keys(o).reduce((R,e)=>{const t=o[e];return`
2
2
  ${R}
3
- --color-${E.toLowerCase().replaceAll("_","-")}: ${t};
4
- `},""),s=R=>E=>`
3
+ --color-${e.toLowerCase().replaceAll("_","-")}: ${t};
4
+ `},""),s=R=>e=>`
5
5
  @media only screen and (${R}) {
6
- ${E}
6
+ ${e}
7
7
  }
8
- `,m=(R,E)=>t=>`
9
- @media only screen and (${R}) and (${E}) {
8
+ `,x=(R,e)=>t=>`
9
+ @media only screen and (${R}) and (${e}) {
10
10
  ${t}
11
11
  }
12
- `,i={up:R=>{const E=n[R];return s(`min-width: ${E}px`)},down:R=>{const E=n[R]-1;return s(`max-width: ${E}px`)},intermediate:(R,E)=>{const t=n[R]-1,a=n[E];return m(`max-width: ${t}px`,`min-width: ${a}px`)},orientation:R=>{const E=f[R];return s(`orientation: ${E}`)}};`${u}${_.REGULAR}${_.REGULAR}${_.COLOR}${_.SERIF}${_.WEIGHT_DEFAULT}${i.down("xl")`
12
+ `,T={up:R=>{const e=n[R];return s(`min-width: ${e}px`)},down:R=>{const e=n[R]-1;return s(`max-width: ${e}px`)},intermediate:(R,e)=>{const t=n[R]-1,N=n[e];return x(`max-width: ${t}px`,`min-width: ${N}px`)},orientation:R=>{const e=f[R];return s(`orientation: ${e}`)}};`${p}${_.REGULAR}${_.REGULAR}${_.COLOR}${_.SERIF}${_.WEIGHT_DEFAULT}${T.down("xl")`
13
13
  --header-offset: 56px;
14
- `}${i.intermediate("xl","lg")`
14
+ --watch-live-header: 46px;
15
+ `}${T.intermediate("xl","lg")`
15
16
  --header-offset: 76px;
16
- `}`;const x="StreamLayerCSSReset",C="ttkj0ah",p=({children:R,style:E})=>T.jsx("div",{className:"StreamLayerSDKTheme",children:T.jsx("div",{className:C,style:E,children:R})});exports.E=o;exports.O=n;exports.StreamLayerContext=G;exports.StreamLayerProvider=B;exports.StreamLayerStatus=S;exports.m=x;exports.p=p;
17
+ `}`;const l="StreamLayerCSSReset",u="ttkj0ah",m=({children:R,style:e})=>i.jsx("div",{className:"StreamLayerSDKTheme",children:i.jsx("div",{className:u,style:e,children:R})});exports.E=o;exports.O=n;exports.StreamLayerContext=c;exports.StreamLayerProvider=B;exports.StreamLayerStatus=S;exports.p=m;exports.p$1=l;