@streamlayer/react 0.41.2 → 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.
- package/lib/cjs/gamification-feature.js +1 -1
- package/lib/cjs/index2.js +10 -9
- package/lib/cjs/masters2.js +35 -37
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/dist/cjs/index.js +71 -72
- package/lib/dist/es/index.js +13710 -13613
- package/lib/dist/index.d.ts +28 -10
- package/lib/dist/style.css +1 -1
- package/lib/es/gamification-feature.js +2 -2
- package/lib/es/index2.js +40 -39
- package/lib/es/masters2.js +7619 -7585
- package/lib/es/points.js +5 -5
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +9 -9
|
@@ -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("
|
|
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
|
|
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-${
|
|
4
|
-
`},""),s=R=>
|
|
3
|
+
--color-${e.toLowerCase().replaceAll("_","-")}: ${t};
|
|
4
|
+
`},""),s=R=>e=>`
|
|
5
5
|
@media only screen and (${R}) {
|
|
6
|
-
${
|
|
6
|
+
${e}
|
|
7
7
|
}
|
|
8
|
-
`,
|
|
9
|
-
@media only screen and (${R}) and (${
|
|
8
|
+
`,x=(R,e)=>t=>`
|
|
9
|
+
@media only screen and (${R}) and (${e}) {
|
|
10
10
|
${t}
|
|
11
11
|
}
|
|
12
|
-
`,
|
|
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
|
-
|
|
14
|
+
--watch-live-header: 46px;
|
|
15
|
+
`}${T.intermediate("xl","lg")`
|
|
15
16
|
--header-offset: 76px;
|
|
16
|
-
`}`;const
|
|
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;
|