@streamlayer/react 1.23.1 → 1.24.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/lib/app/masters.d.ts +0 -1
- package/lib/cjs/Question.js +1 -1
- package/lib/cjs/advertisement.js +33 -53
- package/lib/cjs/analytics.js +1 -1
- package/lib/cjs/auth.js +1 -1
- package/lib/cjs/bet-pack.js +1 -1
- package/lib/cjs/feature.js +1 -1
- package/lib/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/cjs/index-ByUNFvMk.js +5 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index10.js +1 -1
- package/lib/cjs/index11.js +1 -4
- package/lib/cjs/index12.js +1 -1
- package/lib/cjs/index13.js +1 -1
- package/lib/cjs/index14.js +4 -1
- package/lib/cjs/index15.js +1 -1
- package/lib/cjs/index16.js +2 -2
- package/lib/cjs/index2.js +1 -1
- package/lib/cjs/index4.js +3 -3
- package/lib/cjs/index5.js +1 -1
- package/lib/cjs/index6.js +1 -1
- package/lib/cjs/index7.js +1 -1
- package/lib/cjs/index8.js +1 -1
- package/lib/cjs/index9.js +7 -1
- package/lib/cjs/insight.js +1 -1
- package/lib/cjs/masters.js +1 -1
- package/lib/cjs/masters2.js +5 -10
- package/lib/cjs/notification.js +1 -1
- package/lib/cjs/pause-ad.js +1 -1
- package/lib/cjs/points.js +1 -1
- package/lib/cjs/polymarket.js +4 -9
- package/lib/cjs/sl-types.js +1 -15
- package/lib/cjs/storage.js +1 -1
- package/lib/cjs/theme.js +1 -17
- package/lib/cjs/useStreamLayerApp.js +1 -1
- package/lib/cjs/useStreamLayerApp2.js +15 -15
- package/lib/cjs/utils.js +8 -8
- package/lib/classic/app/masters.d.ts +0 -1
- package/lib/classic/cjs/Question.js +1 -1
- package/lib/classic/cjs/advertisement.js +33 -53
- package/lib/classic/cjs/analytics.js +1 -1
- package/lib/classic/cjs/auth.js +1 -1
- package/lib/classic/cjs/bet-pack.js +3 -3
- package/lib/classic/cjs/feature.js +1 -1
- package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
- package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
- package/lib/classic/cjs/index.js +1 -1
- package/lib/classic/cjs/index10.js +1 -1
- package/lib/classic/cjs/index11.js +1 -1
- package/lib/classic/cjs/index12.js +1 -1
- package/lib/classic/cjs/index13.js +3 -3
- package/lib/classic/cjs/index2.js +2 -2
- package/lib/classic/cjs/index3.js +1 -1
- package/lib/classic/cjs/index4.js +1 -1
- package/lib/classic/cjs/index5.js +1 -1
- package/lib/classic/cjs/index6.js +1 -1
- package/lib/classic/cjs/index7.js +7 -1
- package/lib/classic/cjs/index8.js +1 -1
- package/lib/classic/cjs/index9.js +1 -1
- package/lib/classic/cjs/insight.js +1 -1
- package/lib/classic/cjs/notification.js +1 -1
- package/lib/classic/cjs/notification2.js +1 -1
- package/lib/classic/cjs/pause-ad.js +1 -1
- package/lib/classic/cjs/points.js +1 -1
- package/lib/classic/cjs/polymarket.js +4 -9
- package/lib/classic/cjs/sl-types.js +1 -15
- package/lib/classic/cjs/useStreamLayerApp.js +1 -1
- package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
- package/lib/classic/cjs/utils.js +8 -8
- package/lib/classic/es/Question.js +216 -220
- package/lib/classic/es/advertisement.js +14665 -15122
- package/lib/classic/es/analytics.js +9 -9
- package/lib/classic/es/auth.js +1 -1
- package/lib/classic/es/bet-pack.js +637 -650
- package/lib/classic/es/feature.js +29 -33
- package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
- package/lib/classic/es/index-ByUNFvMk.js +3775 -0
- package/lib/classic/es/index.js +13 -16
- package/lib/classic/es/index10.js +2587 -82
- package/lib/classic/es/index11.js +306 -2344
- package/lib/classic/es/index12.js +103 -101
- package/lib/classic/es/index13.js +449 -464
- package/lib/classic/es/index2.js +1244 -1268
- package/lib/classic/es/index3.js +10 -10
- package/lib/classic/es/index4.js +4 -283
- package/lib/classic/es/index5.js +4 -5
- package/lib/classic/es/index6.js +285 -5
- package/lib/classic/es/index7.js +179 -5
- package/lib/classic/es/index8.js +5 -9
- package/lib/classic/es/index9.js +7 -315
- package/lib/classic/es/insight.js +39 -41
- package/lib/classic/es/notification.js +3 -3
- package/lib/classic/es/notification2.js +513 -528
- package/lib/classic/es/pause-ad.js +116 -116
- package/lib/classic/es/points.js +33 -34
- package/lib/classic/es/polymarket.js +1049 -1102
- package/lib/classic/es/sl-types.js +115 -217
- package/lib/classic/es/useStreamLayerApp.js +1 -1
- package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
- package/lib/classic/es/utils.js +6 -6
- package/lib/classic/source.css +110 -0
- package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
- package/lib/dist/cjs/index.js +1 -1
- package/lib/dist/cjs/masters.js +34 -42
- package/lib/dist/es/index-ByUNFvMk.js +3775 -0
- package/lib/dist/es/index.js +7 -11
- package/lib/dist/es/masters.js +13506 -12760
- package/lib/dist/index.d.ts +5 -5
- package/lib/dist/source.css +64 -0
- package/lib/es/Question.js +99 -101
- package/lib/es/advertisement.js +14665 -15122
- package/lib/es/analytics.js +29 -29
- package/lib/es/auth.js +1 -1
- package/lib/es/bet-pack.js +12 -11
- package/lib/es/feature.js +29 -33
- package/lib/es/hooks-n9ax4LRT.js +97 -0
- package/lib/es/index-ByUNFvMk.js +3775 -0
- package/lib/es/index.js +13 -16
- package/lib/es/index10.js +7 -263
- package/lib/es/index11.js +172 -822
- package/lib/es/index12.js +2587 -178
- package/lib/es/index13.js +248 -302
- package/lib/es/index14.js +815 -82
- package/lib/es/index15.js +306 -2344
- package/lib/es/index16.js +451 -454
- package/lib/es/index2.js +737 -757
- package/lib/es/index4.js +626 -639
- package/lib/es/index5.js +10 -10
- package/lib/es/index6.js +5 -285
- package/lib/es/index7.js +7 -5
- package/lib/es/index8.js +283 -5
- package/lib/es/index9.js +179 -8
- package/lib/es/insight.js +39 -41
- package/lib/es/masters.js +4 -5
- package/lib/es/masters2.js +408 -441
- package/lib/es/notification.js +469 -484
- package/lib/es/pause-ad.js +116 -116
- package/lib/es/points.js +42 -43
- package/lib/es/polymarket.js +1049 -1102
- package/lib/es/sl-types.js +114 -235
- package/lib/es/storage.js +22 -22
- package/lib/es/theme.js +3 -44
- package/lib/es/useStreamLayerApp.js +1 -1
- package/lib/es/useStreamLayerApp2.js +6485 -6405
- package/lib/es/utils.js +6 -6
- package/lib/source.css +120 -0
- package/lib/style.css +1 -1
- package/package.json +15 -15
- package/lib/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
- package/lib/classic/cjs/index-eShKGO10.js +0 -5
- package/lib/classic/es/hooks-WfHlJH12.js +0 -98
- package/lib/classic/es/index-eShKGO10.js +0 -3757
- package/lib/dist/cjs/index-eShKGO10.js +0 -5
- package/lib/dist/es/index-eShKGO10.js +0 -3757
- package/lib/dist/style.css +0 -1
- package/lib/es/hooks-WfHlJH12.js +0 -98
- package/lib/es/index-eShKGO10.js +0 -3757
package/lib/cjs/sl-types.js
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
${e}
|
|
3
|
-
--color-${t.toLowerCase().replaceAll("_","-")}: ${r};
|
|
4
|
-
`,""),H=Object.entries(v).reduce((e,[t,r])=>`
|
|
5
|
-
${e}
|
|
6
|
-
--color-adv-${t.toLowerCase().replaceAll("_","-")}: ${r};
|
|
7
|
-
`,"");function M(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var V=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,R=M(function(e){return V.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),K=e=>e.toUpperCase()===e,W=e=>t=>e.indexOf(t)===-1,D=(e,t)=>{const r={};return Object.keys(e).filter(W(t)).forEach(a=>{r[a]=e[a]}),r};function X(e,t,r){const a=D(t,r);if(!e){const i=typeof R=="function"?{default:R}:R;Object.keys(a).forEach(n=>{i.default(n)||delete a[n]})}return a}var Q=(e,t)=>{};function $(e){let t="";return r=>{const a=(n,c)=>{const{as:s=e,class:_=t}=n,B=r.propsAsIs===void 0?!(typeof s=="string"&&s.indexOf("-")===-1&&!K(s[0])):r.propsAsIs,l=X(B,n,["as","class"]);l.ref=c,l.className=r.atomic?O(r.class,l.className||_):O(l.className||_,r.class);const{vars:f}=r;if(f){const d={};for(const u in f){const A=f[u],T=A[0],g=A[1]||"",I=typeof T=="function"?T(n):T;Q(I,r.name),d[`--${u}`]=`${I}${g}`}const m=l.style||{},F=Object.keys(m);F.length>0&&F.forEach(u=>{d[u]=m[u]}),l.style=d}return e.__wyw_meta&&e!==s?(l.as=s,o.createElement(e,l)):o.createElement(s,l)},i=o.forwardRef?o.forwardRef(a):n=>{const c=D(n,["innerRef"]);return a(c,n.innerRef)};return i.displayName=r.name,i.__wyw_meta={className:r.class||t,extends:e},i}}var j=$,C={exports:{}},h={};/**
|
|
8
|
-
* @license React
|
|
9
|
-
* use-sync-external-store-shim.production.js
|
|
10
|
-
*
|
|
11
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the MIT license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var E=o;function z(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var q=typeof Object.is=="function"?Object.is:z,Z=E.useState,J=E.useEffect,ee=E.useLayoutEffect,te=E.useDebugValue;function re(e,t){var r=t(),a=Z({inst:{value:r,getSnapshot:t}}),i=a[0].inst,n=a[1];return ee(function(){i.value=r,i.getSnapshot=t,p(i)&&n({inst:i})},[e,r,t]),J(function(){return p(i)&&n({inst:i}),e(function(){p(i)&&n({inst:i})})},[e]),te(r),r}function p(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!q(e,r)}catch{return!0}}function ne(e,t){return t()}var ae=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?ne:re;h.useSyncExternalStore=E.useSyncExternalStore!==void 0?E.useSyncExternalStore:ae;C.exports=h;var ie=C.exports;const S=(e,t)=>r=>{e.current!==r&&(e.current=r,t())};function se(e,{keys:t,deps:r=[e,t]}={}){const a=o.useRef();a.current=e.get();const i=o.useCallback(c=>(S(a,c)(e.value),(t==null?void 0:t.length)>0?y.listenKeys(e,t,S(a,c)):e.listen(S(a,c))),r),n=()=>a.current;return o.useSyncExternalStore?o.useSyncExternalStore(i,n,n):ie.useSyncExternalStore(i,n,n)}const oe=se,le=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],ce=o.useTransition||le;exports.NotificationType=void 0;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(exports.NotificationType||(exports.NotificationType={}));exports.A=G;exports.B=w;exports.C=Y;exports.D=k;exports.I=x;exports.L=H;exports.N=P;exports.O=U;exports.R=N;exports.S=b;exports.cx_default=O;exports.styled_default=j;exports.useStore=oe;exports.useTransition=ce;
|
|
1
|
+
"use strict";const p=require("react"),C=require("nanostores");var P=function(){const r=Array.prototype.slice.call(arguments).filter(Boolean),t={},a=[];r.forEach(n=>{(n?n.split(" "):[]).forEach(c=>{if(c.startsWith("atm_")){const[,m]=c.split("_");t[m]=c}else a.push(c)})});const s=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&s.push(t[n]);return s.push(...a),s.join(" ")},E=P;function I(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,S=I(function(e){return U.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),L=e=>e.toUpperCase()===e,_=e=>r=>e.indexOf(r)===-1,A=(e,r)=>{const t={};return Object.keys(e).filter(_(r)).forEach(a=>{t[a]=e[a]}),t};function N(e,r,t){const a=A(r,t);if(!e){const s=typeof S=="function"?{default:S}:S;Object.keys(a).forEach(n=>{s.default(n)||delete a[n]})}return a}var D=(e,r)=>{};function M(e){let r="";return t=>{const a=(n,d)=>{const{as:c=e,class:m=r}=n,g=t.propsAsIs===void 0?!(typeof c=="string"&&c.indexOf("-")===-1&&!L(c[0])):t.propsAsIs,u=N(g,n,["as","class"]);u.ref=d,u.className=t.atomic?E(t.class,u.className||m):E(u.className||m,t.class);const{vars:i}=t;if(i){const o={};for(const l in i){const y=i[l],v=y[0],T=y[1]||"",w=typeof v=="function"?v(n):v;D(w,t.name),o[`--${l}`]=`${w}${T}`}const f=u.style||{},h=Object.keys(f);h.length>0&&h.forEach(l=>{o[l]=f[l]}),u.style=o}return e.__wyw_meta&&e!==c?(u.as=c,p.createElement(e,u)):p.createElement(c,u)},s=p.forwardRef?p.forwardRef(a):(n=>{const d=A(n,["innerRef"]);return a(d,n.innerRef)});return s.displayName=t.name,s.__wyw_meta={className:t.class||r,extends:e},s}}var q=M,x={exports:{}},k={};var O;function H(){if(O)return k;O=1;var e=p;function r(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var t=typeof Object.is=="function"?Object.is:r,a=e.useState,s=e.useEffect,n=e.useLayoutEffect,d=e.useDebugValue;function c(i,o){var f=o(),h=a({inst:{value:f,getSnapshot:o}}),l=h[0].inst,y=h[1];return n(function(){l.value=f,l.getSnapshot=o,m(l)&&y({inst:l})},[i,f,o]),s(function(){return m(l)&&y({inst:l}),i(function(){m(l)&&y({inst:l})})},[i]),d(f),f}function m(i){var o=i.getSnapshot;i=i.value;try{var f=o();return!t(i,f)}catch{return!0}}function g(i,o){return o()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:c;return k.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,k}var R;function z(){return R||(R=1,x.exports=H()),x.exports}var V=z();const b=(e,r)=>t=>{e.current!==t&&(e.current=t,r())};function j(e,{keys:r,deps:t=[e,r]}={}){const a=p.useRef();a.current=e.get();const s=p.useCallback(d=>(b(a,d)(e.value),r?.length>0?C.listenKeys(e,r,b(a,d)):e.listen(b(a,d))),t),n=()=>a.current;return p.useSyncExternalStore?p.useSyncExternalStore(s,n,n):V.useSyncExternalStore(s,n,n)}const B=j,F=()=>[!1,e=>{window.requestAnimationFrame(()=>e())}],W=p.useTransition||F;exports.NotificationType=void 0;(function(e){e[e.ONBOARDING=1]="ONBOARDING",e[e.QUESTION=2]="QUESTION",e[e.QUESTION_RESOLVED=3]="QUESTION_RESOLVED"})(exports.NotificationType||(exports.NotificationType={}));exports.cx_default=E;exports.styled_default=q;exports.useStore=B;exports.useTransition=W;
|
package/lib/cjs/storage.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),e=require("./sl-types.js"),
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),e=require("./sl-types.js"),I=require("./index11.js"),l=require("./index10.js"),d=require("./index8.js"),t=require("./useStreamLayerApp2.js"),c=e.styled_default("div")({name:"QuestionItem",class:"q1w97g3p",propsAsIs:!1}),j=e.styled_default("div")({name:"QuestionCaption",class:"q2sl39u",propsAsIs:!1}),S=e.styled_default("div")({name:"QuestionBody",class:"qd5h0uc",propsAsIs:!1}),A=e.styled_default("div")({name:"QuestionAction",class:"q105uluy",propsAsIs:!1}),Q=()=>d.B1,i=e.styled_default(Q())({name:"QuestionActionIcon",class:"q1fa0b9h",propsAsIs:!0}),T=()=>i,_=e.styled_default(T())({name:"QuestionCheckIcon",class:"qxlt78s",propsAsIs:!0}),h=()=>d.B1,k=e.styled_default(h())({name:"QuestionTypeIcon",class:"qmg0vkx",propsAsIs:!0}),v=e.styled_default("div")({name:"QuestionTypeLabel",class:"q1uz5j1g",propsAsIs:!1}),L=e.styled_default("div")({name:"QuestionContent",class:"qc3icwa",propsAsIs:!1}),p=e.styled_default("button")({name:"PlayButton",class:"p169lohr",propsAsIs:!1}),P=e.styled_default("div")({name:"SkeletonContainer",class:"s1f43z3r",propsAsIs:!1}),E=()=>l.e,N=e.styled_default(E())({name:"SkeletonButton",class:"s16k8geu",propsAsIs:!0}),b={[t.PickHistoryStatus.LOST]:s.jsx(i,{name:"incorrectVoted"}),[t.PickHistoryStatus.WON]:s.jsx(_,{name:"icon-check"}),[t.PickHistoryStatus.UNSET]:s.jsx(i,{name:"icon-arrow"}),[t.PickHistoryStatus.DNP]:s.jsx(i,{name:"icon-arrow"})},g=()=>s.jsxs(P,{children:[s.jsx(l.i,{loading:!0,style:{width:"35%"}}),s.jsx(l.i,{loading:!0,style:{width:"70%"}}),s.jsx(N,{})]}),y=({questionTypeData:a,questionType:n,questionStatus:o})=>s.jsxs(j,{className:"SL_QuestionCaption",children:[s.jsx(k,{className:"SL_QuestionTypeIcon","data-testid":"question-type-icon","data-type-trivia":n===t.QuestionType.TRIVIA,"data-type-poll":n===t.QuestionType.POLL,name:a.iconName}),s.jsxs(v,{className:"SL_QuestionTypeLabel",children:[a.label,n===t.QuestionType.TRIVIA&&o===t.QuestionStatus.RESOLVED&&" • Expired"]})]}),w=({questionId:a,questionType:n,questionStatus:o,subject:m,openForVoting:q,status:x})=>{const u=I.e[n],f=b[x];return u?s.jsxs(c,{"data-a":"intr","data-name":a,children:[s.jsxs(L,{children:[s.jsx(y,{questionTypeData:u,questionType:n,questionStatus:o}),s.jsx(S,{children:m||""})]}),s.jsx(A,{children:q?s.jsx(p,{"data-a":"intr","data-name":a,children:"Play"}):f})]}):null};var r;(function(a){a.OPENED="opened"})(r||(r={}));exports.D=g;exports.R=w;exports.S=p;exports.r=c;exports.x=y;
|
package/lib/cjs/theme.js
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");const e=
|
|
2
|
-
@media only screen and (${t}) {
|
|
3
|
-
${n}
|
|
4
|
-
}
|
|
5
|
-
`,r=(t,n)=>i=>`
|
|
6
|
-
@media only screen and (${t}) and (${n}) {
|
|
7
|
-
${i}
|
|
8
|
-
}
|
|
9
|
-
`,p=(t,n)=>i=>`
|
|
10
|
-
@media only screen and (${t}) and (${n}) {
|
|
11
|
-
${i}
|
|
12
|
-
}
|
|
13
|
-
`,d={up:t=>{const n=e.A[t];return o(`min-width: ${n}px`)},down:t=>{const n=e.A[t]-1;return o(`max-width: ${n}px`)},intermediate:(t,n)=>{const i=e.A[t]-1,a=e.A[n];return r(`max-width: ${i}px`,`min-width: ${a}px`)},composite:(t,n)=>{const i=e.A[t]-1,a=e.B[n];return p(`max-width: ${i}px`,`orientation: ${a}`)},orientation:t=>{const n=e.B[t];return o(`orientation: ${n}`)}};`${e.C}${e.L}${e.D.REGULAR}${e.D.REGULAR}${e.D.COLOR}${e.D.SERIF}${e.D.WEIGHT_DEFAULT}${e.D.WEIGHT_DEFAULT1}${e.D.WEIGHT_DEFAULT2}${e.D.WEIGHT_DEFAULT3}${e.D.SIZE_DEFAULT}${e.D.SIZE_DEFAULT1}${e.D.SIZE_DEFAULT2}${e.D.LINE_HEIGHT}${e.D.MARGIN_TITLE_DEFAULT}${d.down("xl")`
|
|
14
|
-
--header-offset: 0px;
|
|
15
|
-
`}${d.intermediate("xl","lg")`
|
|
16
|
-
--header-offset: 0px;
|
|
17
|
-
`}`;const s="StreamLayerCSSReset",x="ttkj0ah";exports.c=d;exports.h=x;exports.m=s;
|
|
1
|
+
"use strict";require("react/jsx-runtime");const e="StreamLayerCSSReset",t="ttkj0ah";exports.h=t;exports.m=e;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useStreamLayerApp2.js");exports.useStreamLayerApp=e
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./useStreamLayerApp2.js");exports.useStreamLayerApp=e.z;
|