@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.
Files changed (159) hide show
  1. package/lib/app/masters.d.ts +0 -1
  2. package/lib/cjs/Question.js +1 -1
  3. package/lib/cjs/advertisement.js +33 -53
  4. package/lib/cjs/analytics.js +1 -1
  5. package/lib/cjs/auth.js +1 -1
  6. package/lib/cjs/bet-pack.js +1 -1
  7. package/lib/cjs/feature.js +1 -1
  8. package/lib/cjs/hooks-n9ax4LRT.js +1 -0
  9. package/lib/cjs/index-ByUNFvMk.js +5 -0
  10. package/lib/cjs/index.js +1 -1
  11. package/lib/cjs/index10.js +1 -1
  12. package/lib/cjs/index11.js +1 -4
  13. package/lib/cjs/index12.js +1 -1
  14. package/lib/cjs/index13.js +1 -1
  15. package/lib/cjs/index14.js +4 -1
  16. package/lib/cjs/index15.js +1 -1
  17. package/lib/cjs/index16.js +2 -2
  18. package/lib/cjs/index2.js +1 -1
  19. package/lib/cjs/index4.js +3 -3
  20. package/lib/cjs/index5.js +1 -1
  21. package/lib/cjs/index6.js +1 -1
  22. package/lib/cjs/index7.js +1 -1
  23. package/lib/cjs/index8.js +1 -1
  24. package/lib/cjs/index9.js +7 -1
  25. package/lib/cjs/insight.js +1 -1
  26. package/lib/cjs/masters.js +1 -1
  27. package/lib/cjs/masters2.js +5 -10
  28. package/lib/cjs/notification.js +1 -1
  29. package/lib/cjs/pause-ad.js +1 -1
  30. package/lib/cjs/points.js +1 -1
  31. package/lib/cjs/polymarket.js +4 -9
  32. package/lib/cjs/sl-types.js +1 -15
  33. package/lib/cjs/storage.js +1 -1
  34. package/lib/cjs/theme.js +1 -17
  35. package/lib/cjs/useStreamLayerApp.js +1 -1
  36. package/lib/cjs/useStreamLayerApp2.js +15 -15
  37. package/lib/cjs/utils.js +8 -8
  38. package/lib/classic/app/masters.d.ts +0 -1
  39. package/lib/classic/cjs/Question.js +1 -1
  40. package/lib/classic/cjs/advertisement.js +33 -53
  41. package/lib/classic/cjs/analytics.js +1 -1
  42. package/lib/classic/cjs/auth.js +1 -1
  43. package/lib/classic/cjs/bet-pack.js +3 -3
  44. package/lib/classic/cjs/feature.js +1 -1
  45. package/lib/classic/cjs/hooks-n9ax4LRT.js +1 -0
  46. package/lib/classic/cjs/index-ByUNFvMk.js +5 -0
  47. package/lib/classic/cjs/index.js +1 -1
  48. package/lib/classic/cjs/index10.js +1 -1
  49. package/lib/classic/cjs/index11.js +1 -1
  50. package/lib/classic/cjs/index12.js +1 -1
  51. package/lib/classic/cjs/index13.js +3 -3
  52. package/lib/classic/cjs/index2.js +2 -2
  53. package/lib/classic/cjs/index3.js +1 -1
  54. package/lib/classic/cjs/index4.js +1 -1
  55. package/lib/classic/cjs/index5.js +1 -1
  56. package/lib/classic/cjs/index6.js +1 -1
  57. package/lib/classic/cjs/index7.js +7 -1
  58. package/lib/classic/cjs/index8.js +1 -1
  59. package/lib/classic/cjs/index9.js +1 -1
  60. package/lib/classic/cjs/insight.js +1 -1
  61. package/lib/classic/cjs/notification.js +1 -1
  62. package/lib/classic/cjs/notification2.js +1 -1
  63. package/lib/classic/cjs/pause-ad.js +1 -1
  64. package/lib/classic/cjs/points.js +1 -1
  65. package/lib/classic/cjs/polymarket.js +4 -9
  66. package/lib/classic/cjs/sl-types.js +1 -15
  67. package/lib/classic/cjs/useStreamLayerApp.js +1 -1
  68. package/lib/classic/cjs/useStreamLayerApp2.js +15 -15
  69. package/lib/classic/cjs/utils.js +8 -8
  70. package/lib/classic/es/Question.js +216 -220
  71. package/lib/classic/es/advertisement.js +14665 -15122
  72. package/lib/classic/es/analytics.js +9 -9
  73. package/lib/classic/es/auth.js +1 -1
  74. package/lib/classic/es/bet-pack.js +637 -650
  75. package/lib/classic/es/feature.js +29 -33
  76. package/lib/classic/es/hooks-n9ax4LRT.js +97 -0
  77. package/lib/classic/es/index-ByUNFvMk.js +3775 -0
  78. package/lib/classic/es/index.js +13 -16
  79. package/lib/classic/es/index10.js +2587 -82
  80. package/lib/classic/es/index11.js +306 -2344
  81. package/lib/classic/es/index12.js +103 -101
  82. package/lib/classic/es/index13.js +449 -464
  83. package/lib/classic/es/index2.js +1244 -1268
  84. package/lib/classic/es/index3.js +10 -10
  85. package/lib/classic/es/index4.js +4 -283
  86. package/lib/classic/es/index5.js +4 -5
  87. package/lib/classic/es/index6.js +285 -5
  88. package/lib/classic/es/index7.js +179 -5
  89. package/lib/classic/es/index8.js +5 -9
  90. package/lib/classic/es/index9.js +7 -315
  91. package/lib/classic/es/insight.js +39 -41
  92. package/lib/classic/es/notification.js +3 -3
  93. package/lib/classic/es/notification2.js +513 -528
  94. package/lib/classic/es/pause-ad.js +116 -116
  95. package/lib/classic/es/points.js +33 -34
  96. package/lib/classic/es/polymarket.js +1049 -1102
  97. package/lib/classic/es/sl-types.js +115 -217
  98. package/lib/classic/es/useStreamLayerApp.js +1 -1
  99. package/lib/classic/es/useStreamLayerApp2.js +6485 -6405
  100. package/lib/classic/es/utils.js +6 -6
  101. package/lib/classic/source.css +110 -0
  102. package/lib/dist/cjs/index-ByUNFvMk.js +5 -0
  103. package/lib/dist/cjs/index.js +1 -1
  104. package/lib/dist/cjs/masters.js +34 -42
  105. package/lib/dist/es/index-ByUNFvMk.js +3775 -0
  106. package/lib/dist/es/index.js +7 -11
  107. package/lib/dist/es/masters.js +13506 -12760
  108. package/lib/dist/index.d.ts +5 -5
  109. package/lib/dist/source.css +64 -0
  110. package/lib/es/Question.js +99 -101
  111. package/lib/es/advertisement.js +14665 -15122
  112. package/lib/es/analytics.js +29 -29
  113. package/lib/es/auth.js +1 -1
  114. package/lib/es/bet-pack.js +12 -11
  115. package/lib/es/feature.js +29 -33
  116. package/lib/es/hooks-n9ax4LRT.js +97 -0
  117. package/lib/es/index-ByUNFvMk.js +3775 -0
  118. package/lib/es/index.js +13 -16
  119. package/lib/es/index10.js +7 -263
  120. package/lib/es/index11.js +172 -822
  121. package/lib/es/index12.js +2587 -178
  122. package/lib/es/index13.js +248 -302
  123. package/lib/es/index14.js +815 -82
  124. package/lib/es/index15.js +306 -2344
  125. package/lib/es/index16.js +451 -454
  126. package/lib/es/index2.js +737 -757
  127. package/lib/es/index4.js +626 -639
  128. package/lib/es/index5.js +10 -10
  129. package/lib/es/index6.js +5 -285
  130. package/lib/es/index7.js +7 -5
  131. package/lib/es/index8.js +283 -5
  132. package/lib/es/index9.js +179 -8
  133. package/lib/es/insight.js +39 -41
  134. package/lib/es/masters.js +4 -5
  135. package/lib/es/masters2.js +408 -441
  136. package/lib/es/notification.js +469 -484
  137. package/lib/es/pause-ad.js +116 -116
  138. package/lib/es/points.js +42 -43
  139. package/lib/es/polymarket.js +1049 -1102
  140. package/lib/es/sl-types.js +114 -235
  141. package/lib/es/storage.js +22 -22
  142. package/lib/es/theme.js +3 -44
  143. package/lib/es/useStreamLayerApp.js +1 -1
  144. package/lib/es/useStreamLayerApp2.js +6485 -6405
  145. package/lib/es/utils.js +6 -6
  146. package/lib/source.css +120 -0
  147. package/lib/style.css +1 -1
  148. package/package.json +15 -15
  149. package/lib/cjs/hooks-WfHlJH12.js +0 -1
  150. package/lib/cjs/index-eShKGO10.js +0 -5
  151. package/lib/classic/cjs/hooks-WfHlJH12.js +0 -1
  152. package/lib/classic/cjs/index-eShKGO10.js +0 -5
  153. package/lib/classic/es/hooks-WfHlJH12.js +0 -98
  154. package/lib/classic/es/index-eShKGO10.js +0 -3757
  155. package/lib/dist/cjs/index-eShKGO10.js +0 -5
  156. package/lib/dist/es/index-eShKGO10.js +0 -3757
  157. package/lib/dist/style.css +0 -1
  158. package/lib/es/hooks-WfHlJH12.js +0 -98
  159. package/lib/es/index-eShKGO10.js +0 -3757
@@ -1,277 +1,156 @@
1
- import o from "react";
2
- import { listenKeys as y } from "nanostores";
1
+ import y, { forwardRef as w, createElement as O } from "react";
2
+ import { listenKeys as U } from "nanostores";
3
3
  var L = function() {
4
- const t = Array.prototype.slice.call(arguments).filter(Boolean), r = {}, a = [];
5
- t.forEach((n) => {
6
- (n ? n.split(" ") : []).forEach((s) => {
7
- if (s.startsWith("atm_")) {
8
- const [, _] = s.split("_");
9
- r[_] = s;
4
+ const r = Array.prototype.slice.call(arguments).filter(Boolean), t = {}, a = [];
5
+ r.forEach((n) => {
6
+ (n ? n.split(" ") : []).forEach((c) => {
7
+ if (c.startsWith("atm_")) {
8
+ const [, p] = c.split("_");
9
+ t[p] = c;
10
10
  } else
11
- a.push(s);
11
+ a.push(c);
12
12
  });
13
13
  });
14
- const i = [];
15
- for (const n in r)
16
- Object.prototype.hasOwnProperty.call(r, n) && i.push(r[n]);
17
- return i.push(...a), i.join(" ");
18
- }, I = L;
19
- const v = {
20
- BLUE_QUESTION_ACTION_BTN: "#1589ee",
21
- WHITE: "#FFFFFF",
22
- BLUE: "#2d6ffd",
23
- GREY_PRIMARY: "#909395",
24
- GREY_PRIMARY_ONBOARDING_INAPP: "#B5B7B8",
25
- PRIMARY_1: "#1D7BFF",
26
- // main
27
- PRIMARY_2: "#095CD1",
28
- // hover, active, ...etc (darken 10%)
29
- PRIMARY_TEXT: "#090E13",
30
- SECONDARY_TEXT: "rgba(10, 14, 19, 0.70)",
31
- QUESTION_TYPE_ICON: "#1D7BFF",
32
- QUESTION_BODY_TEXT: "#090E13",
33
- PRESENTED_BY_TEXT: "#090E13",
34
- SUCCESS: "#107D57",
35
- UNSUCCESS: "#DF2F3B",
36
- SECONDARY_RED1: "#DF2F3B",
37
- NEUTRALS_WHITE: "#FFFFFF",
38
- NEUTRALS_WHITE1: "#FFFFFF",
39
- NEUTRALS_GRAY1: "#F7F7F7",
40
- NEUTRALS_GRAY2: "#F2F2F1",
41
- NEUTRALS_GRAY3: "#E8E8E8",
42
- NEUTRALS_GRAY4: "#D9D9D6",
43
- NEUTRALS_GRAY5: "#B1B3B3",
44
- NEUTRALS_GRAY6: "#888B8D",
45
- NEUTRALS_GRAY7: "#6B6F73",
46
- NEUTRALS_GRAY9: "#25282A",
47
- SDK_CONTAINER_BG: "#F7F7F7",
48
- SDK_WHITE_CONTAINER_BG: "#fff",
49
- SDK_DARK_CONTAINER_BG: "#fff",
50
- SDK_PREDICTION_RESULT_SUCCESS_BG: "#fff",
51
- SDK_PREDICTION_RESULT_INCORRECT_BG: "#fff",
52
- SDK_PREDICTION_RESULT_SUCCESS_TEXT: "#107D57",
53
- SDK_PREDICTION_RESULT_ERROR_TITLE: "#090E13",
54
- SDK_PREDICTION_RESULT_ERROR_SUBTITLE: "#DF2F3B",
55
- SDK_PREDICTION_RESULT_CLOSE_ICON: "#6B6F73",
56
- SDK_PREDICTION_FEEDBACK_SUCCESS_ICON: "#107D57",
57
- SDK_PREDICTION_FEEDBACK_INCORRECT_RECT1: "#CD2525",
58
- SDK_PREDICTION_FEEDBACK_INCORRECT_RECT2: "#fff",
59
- PREDICTION_BG_LINES_CORRECT: "#01AB58",
60
- PREDICTION_BG_LINES_INCORRECT: "#888B8D",
61
- SKELETON_COLOR_1: "#f1efef",
62
- SKELETON_COLOR_2: "#f9f8f8",
63
- TABS_CONTAINER_BG: "#F2F2F1",
64
- TABS_ACTIVE_BG: "#FFFFFF",
65
- TABS_COLOR: "#6B6F73",
66
- TABS_ACTIVE_COLOR: "#1D7BFF",
67
- CARD_BG: "#FFFFFF",
68
- CARD_BORDER: "#fff",
69
- BORDER: "#E8E8E8",
70
- VOTE_BTN_BG: "#F7F7F7",
71
- VOTE_BTN_BORDER: "rgb(232, 232, 232)",
72
- VOTE_BTN_DISABLED_BORDER: "#B1B3B3",
73
- VOTE_BTN_SELECTED_BORDER: "#25282A",
74
- VOTE_BTN_NOT_SELECTED_BORDER: "#E8E8E8",
75
- VOTE_BTN_SELECTED_BG: "#FFFFFF",
76
- VOTE_BTN_SELECTED_BG_AD_UNIT: "#FFFFFF",
77
- VOTE_BTN_NOT_SELECTED_BG: "#FFFFFF",
78
- VOTE_BTN_NOT_SELECTED_BG_UNSET: "rgb(196, 196, 196)",
79
- VOTED_ANSWER_BG: "#FFFFFF",
80
- VOTED_BTN_RCT_BG: "#2d5694",
81
- IN_APP_BG: "rgba(255, 255, 255, 0.90)",
82
- IN_APP_QUESTION_TYPE_ICON: "#1D7BFF",
83
- IN_APP_QUESTION_TYPE_LABEL: "#82899E",
84
- IN_APP_QUESTION_QUOTE: "rgba(10, 14, 19, 0.70)",
85
- IN_APP_QUESTION_RESULT_SUBTITLE_BG: "#1D7BFF",
86
- IN_APP_QUESTION_RESULT_LINE: "#babfc5",
87
- QUOTE_BORDER: "#E8E8E8",
88
- QUOTE_TEXT: "rgba(10, 14, 19, 0.70)"
89
- }, x = {
90
- BG_PRIMARY: "#13212b",
91
- BG_SECONDARY: "#152430",
92
- BG_SECONDARY1: "#435059",
93
- BORDER_PRIMARY: "rgba(255, 255, 255, 0.1)",
94
- TEXT_PRIMARY: "#f9f9f9",
95
- TEXT_PRIMARY1: "#f9f9f9",
96
- TEXT_SECONDARY: "rgba(255, 255, 255, 0.8)",
97
- TEXT_SECONDARY1: "#878787",
98
- WHITE: "#fff"
99
- }, te = ["#107D57", "#DF2F3B", "#DF2F3B", "#E8E8E8"], re = "#cee5de", ne = "#f9d6d8", ae = "#E8E8E8", ie = {
100
- REGULAR: "'SF Pro Text', Arial, Helvetica, sans-serif",
101
- SERIF: "'SF Pro Display', Arial, Helvetica, sans-serif",
102
- COLOR: "#fff",
103
- WEIGHT_DEFAULT: "500",
104
- WEIGHT_DEFAULT1: "500",
105
- WEIGHT_DEFAULT2: "400",
106
- WEIGHT_DEFAULT3: "500",
107
- SIZE_DEFAULT: "16px",
108
- SIZE_DEFAULT1: "14px",
109
- SIZE_DEFAULT2: "12px",
110
- LINE_HEIGHT: "24px",
111
- MARGIN_TITLE_DEFAULT: "0px 0px 12px"
112
- }, se = {
113
- xs: 324,
114
- sm: 576,
115
- md: 768,
116
- lg: 992,
117
- xl: 1200,
118
- xxl: 1440
119
- }, oe = {
120
- landscape: "landscape",
121
- portrait: "portrait"
122
- }, le = Object.entries(v).reduce((e, [t, r]) => `
123
- ${e}
124
- --color-${t.toLowerCase().replaceAll("_", "-")}: ${r};
125
- `, ""), ce = Object.entries(x).reduce((e, [t, r]) => `
126
- ${e}
127
- --color-adv-${t.toLowerCase().replaceAll("_", "-")}: ${r};
128
- `, "");
129
- function U(e) {
130
- var t = /* @__PURE__ */ Object.create(null);
131
- return function(r) {
132
- return t[r] === void 0 && (t[r] = e(r)), t[r];
14
+ const s = [];
15
+ for (const n in t)
16
+ Object.prototype.hasOwnProperty.call(t, n) && s.push(t[n]);
17
+ return s.push(...a), s.join(" ");
18
+ }, R = L;
19
+ function _(e) {
20
+ var r = /* @__PURE__ */ Object.create(null);
21
+ return function(t) {
22
+ return r[t] === void 0 && (r[t] = e(t)), r[t];
133
23
  };
134
24
  }
135
- var P = /^((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 = /* @__PURE__ */ U(
25
+ var N = /^((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 = /* @__PURE__ */ _(
136
26
  function(e) {
137
- return P.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
27
+ return N.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
138
28
  }
139
29
  /* Z+1 */
140
- ), b = (e) => e.toUpperCase() === e, k = (e) => (t) => e.indexOf(t) === -1, N = (e, t) => {
141
- const r = {};
142
- return Object.keys(e).filter(k(t)).forEach((a) => {
143
- r[a] = e[a];
144
- }), r;
30
+ ), D = (e) => e.toUpperCase() === e, M = (e) => (r) => e.indexOf(r) === -1, P = (e, r) => {
31
+ const t = {};
32
+ return Object.keys(e).filter(M(r)).forEach((a) => {
33
+ t[a] = e[a];
34
+ }), t;
145
35
  };
146
- function G(e, t, r) {
147
- const a = N(t, r);
36
+ function H(e, r, t) {
37
+ const a = P(r, t);
148
38
  if (!e) {
149
- const i = typeof R == "function" ? { default: R } : R;
39
+ const s = typeof S == "function" ? { default: S } : S;
150
40
  Object.keys(a).forEach((n) => {
151
- i.default(n) || delete a[n];
41
+ s.default(n) || delete a[n];
152
42
  });
153
43
  }
154
44
  return a;
155
45
  }
156
- var w = (e, t) => {
46
+ var q = (e, r) => {
157
47
  };
158
- function Y(e) {
159
- let t = "";
160
- return (r) => {
161
- const a = (n, c) => {
162
- const { as: s = e, class: _ = t } = n, B = r.propsAsIs === void 0 ? !(typeof s == "string" && s.indexOf("-") === -1 && !b(s[0])) : r.propsAsIs, l = G(B, n, [
48
+ function z(e) {
49
+ let r = "";
50
+ return (t) => {
51
+ const a = (n, d) => {
52
+ const { as: c = e, class: p = r } = n, g = t.propsAsIs === void 0 ? !(typeof c == "string" && c.indexOf("-") === -1 && !D(c[0])) : t.propsAsIs, u = H(g, n, [
163
53
  "as",
164
54
  "class"
165
55
  ]);
166
- l.ref = c, l.className = r.atomic ? I(r.class, l.className || _) : I(l.className || _, r.class);
167
- const { vars: f } = r;
168
- if (f) {
169
- const d = {};
170
- for (const u in f) {
171
- const F = f[u], T = F[0], g = F[1] || "", A = typeof T == "function" ? T(n) : T;
172
- w(A, r.name), d[`--${u}`] = `${A}${g}`;
56
+ u.ref = d, u.className = t.atomic ? R(t.class, u.className || p) : R(u.className || p, t.class);
57
+ const { vars: i } = t;
58
+ if (i) {
59
+ const o = {};
60
+ for (const l in i) {
61
+ const h = i[l], v = h[0], I = h[1] || "", E = typeof v == "function" ? v(n) : v;
62
+ q(E, t.name), o[`--${l}`] = `${E}${I}`;
173
63
  }
174
- const m = l.style || {}, O = Object.keys(m);
175
- O.length > 0 && O.forEach((u) => {
176
- d[u] = m[u];
177
- }), l.style = d;
64
+ const f = u.style || {}, m = Object.keys(f);
65
+ m.length > 0 && m.forEach((l) => {
66
+ o[l] = f[l];
67
+ }), u.style = o;
178
68
  }
179
- return e.__wyw_meta && e !== s ? (l.as = s, o.createElement(e, l)) : o.createElement(s, l);
180
- }, i = o.forwardRef ? o.forwardRef(a) : (
69
+ return e.__wyw_meta && e !== c ? (u.as = c, O(e, u)) : O(c, u);
70
+ }, s = w ? w(a) : (
181
71
  // React.forwardRef won't available on older React versions and in Preact
182
72
  // Fallback to a innerRef prop in that case
183
- (n) => {
184
- const c = N(n, ["innerRef"]);
185
- return a(c, n.innerRef);
186
- }
73
+ ((n) => {
74
+ const d = P(n, ["innerRef"]);
75
+ return a(d, n.innerRef);
76
+ })
187
77
  );
188
- return i.displayName = r.name, i.__wyw_meta = {
189
- className: r.class || t,
78
+ return s.displayName = t.name, s.__wyw_meta = {
79
+ className: t.class || r,
190
80
  extends: e
191
- }, i;
81
+ }, s;
192
82
  };
193
83
  }
194
- var Ee = Y, C = { exports: {} }, h = {};
195
- /**
196
- * @license React
197
- * use-sync-external-store-shim.production.js
198
- *
199
- * Copyright (c) Meta Platforms, Inc. and affiliates.
200
- *
201
- * This source code is licensed under the MIT license found in the
202
- * LICENSE file in the root directory of this source tree.
203
- */
204
- var E = o;
205
- function H(e, t) {
206
- return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
207
- }
208
- var M = typeof Object.is == "function" ? Object.is : H, V = E.useState, K = E.useEffect, W = E.useLayoutEffect, X = E.useDebugValue;
209
- function Q(e, t) {
210
- var r = t(), a = V({ inst: { value: r, getSnapshot: t } }), i = a[0].inst, n = a[1];
211
- return W(
212
- function() {
213
- i.value = r, i.getSnapshot = t, p(i) && n({ inst: i });
214
- },
215
- [e, r, t]
216
- ), K(
217
- function() {
218
- return p(i) && n({ inst: i }), e(function() {
219
- p(i) && n({ inst: i });
220
- });
221
- },
222
- [e]
223
- ), X(r), r;
224
- }
225
- function p(e) {
226
- var t = e.getSnapshot;
227
- e = e.value;
228
- try {
229
- var r = t();
230
- return !M(e, r);
231
- } catch {
232
- return !0;
84
+ var G = z, x = { exports: {} }, k = {};
85
+ var A;
86
+ function V() {
87
+ if (A) return k;
88
+ A = 1;
89
+ var e = y;
90
+ function r(i, o) {
91
+ return i === o && (i !== 0 || 1 / i === 1 / o) || i !== i && o !== o;
92
+ }
93
+ var t = typeof Object.is == "function" ? Object.is : r, a = e.useState, s = e.useEffect, n = e.useLayoutEffect, d = e.useDebugValue;
94
+ function c(i, o) {
95
+ var f = o(), m = a({ inst: { value: f, getSnapshot: o } }), l = m[0].inst, h = m[1];
96
+ return n(
97
+ function() {
98
+ l.value = f, l.getSnapshot = o, p(l) && h({ inst: l });
99
+ },
100
+ [i, f, o]
101
+ ), s(
102
+ function() {
103
+ return p(l) && h({ inst: l }), i(function() {
104
+ p(l) && h({ inst: l });
105
+ });
106
+ },
107
+ [i]
108
+ ), d(f), f;
109
+ }
110
+ function p(i) {
111
+ var o = i.getSnapshot;
112
+ i = i.value;
113
+ try {
114
+ var f = o();
115
+ return !t(i, f);
116
+ } catch {
117
+ return !0;
118
+ }
119
+ }
120
+ function g(i, o) {
121
+ return o();
233
122
  }
123
+ var u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? g : c;
124
+ return k.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : u, k;
234
125
  }
235
- function $(e, t) {
236
- return t();
126
+ var C;
127
+ function j() {
128
+ return C || (C = 1, x.exports = V()), x.exports;
237
129
  }
238
- var j = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? $ : Q;
239
- h.useSyncExternalStore = E.useSyncExternalStore !== void 0 ? E.useSyncExternalStore : j;
240
- C.exports = h;
241
- var z = C.exports;
242
- const S = (e, t) => (r) => {
243
- e.current !== r && (e.current = r, t());
130
+ var B = j();
131
+ const b = (e, r) => (t) => {
132
+ e.current !== t && (e.current = t, r());
244
133
  };
245
- function q(e, { keys: t, deps: r = [e, t] } = {}) {
246
- const a = o.useRef();
134
+ function F(e, { keys: r, deps: t = [e, r] } = {}) {
135
+ const a = y.useRef();
247
136
  a.current = e.get();
248
- const i = o.useCallback((c) => (S(a, c)(e.value), (t == null ? void 0 : t.length) > 0 ? y(e, t, S(a, c)) : e.listen(S(a, c))), r), n = () => a.current;
249
- return o.useSyncExternalStore ? o.useSyncExternalStore(i, n, n) : z.useSyncExternalStore(i, n, n);
137
+ const s = y.useCallback((d) => (b(a, d)(e.value), r?.length > 0 ? U(e, r, b(a, d)) : e.listen(b(a, d))), t), n = () => a.current;
138
+ return y.useSyncExternalStore ? y.useSyncExternalStore(s, n, n) : B.useSyncExternalStore(s, n, n);
250
139
  }
251
- const ue = q, Z = () => [
140
+ const K = F, W = () => [
252
141
  !1,
253
142
  (e) => {
254
143
  window.requestAnimationFrame(() => e());
255
144
  }
256
- ], _e = o.useTransition || Z;
257
- var D;
145
+ ], Y = y.useTransition || W;
146
+ var T;
258
147
  (function(e) {
259
148
  e[e.ONBOARDING = 1] = "ONBOARDING", e[e.QUESTION = 2] = "QUESTION", e[e.QUESTION_RESOLVED = 3] = "QUESTION_RESOLVED";
260
- })(D || (D = {}));
149
+ })(T || (T = {}));
261
150
  export {
262
- se as A,
263
- oe as B,
264
- le as C,
265
- ie as D,
266
- te as I,
267
- ce as L,
268
- ne as N,
269
- re as O,
270
- v as R,
271
- ae as S,
272
- D as a,
273
- _e as b,
274
- I as c,
275
- Ee as s,
276
- ue as u
151
+ T as N,
152
+ Y as a,
153
+ R as c,
154
+ G as s,
155
+ K as u
277
156
  };
package/lib/es/storage.js CHANGED
@@ -1,18 +1,18 @@
1
- import { jsx as s, jsxs as o } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as s } from "react/jsx-runtime";
2
2
  import { s as e } from "./sl-types.js";
3
- import { e as A } from "./index12.js";
4
- import { e as Q, i as l } from "./index9.js";
5
- import { B as m } from "./index6.js";
6
- import { P as n, Q as r, a as h } from "./useStreamLayerApp2.js";
7
- const S = /* @__PURE__ */ e("div")({
3
+ import { e as f } from "./index11.js";
4
+ import { e as A, i as c } from "./index10.js";
5
+ import { B as m } from "./index8.js";
6
+ import { Q as l, a as Q, P as n } from "./useStreamLayerApp2.js";
7
+ const h = /* @__PURE__ */ e("div")({
8
8
  name: "QuestionItem",
9
9
  class: "q1w97g3p",
10
10
  propsAsIs: !1
11
- }), T = /* @__PURE__ */ e("div")({
11
+ }), S = /* @__PURE__ */ e("div")({
12
12
  name: "QuestionCaption",
13
13
  class: "q2sl39u",
14
14
  propsAsIs: !1
15
- }), f = /* @__PURE__ */ e("div")({
15
+ }), T = /* @__PURE__ */ e("div")({
16
16
  name: "QuestionBody",
17
17
  class: "qd5h0uc",
18
18
  propsAsIs: !1
@@ -48,7 +48,7 @@ const S = /* @__PURE__ */ e("div")({
48
48
  name: "SkeletonContainer",
49
49
  class: "s1f43z3r",
50
50
  propsAsIs: !1
51
- }), D = () => Q, B = /* @__PURE__ */ e(D())({
51
+ }), D = () => A, B = /* @__PURE__ */ e(D())({
52
52
  name: "SkeletonButton",
53
53
  class: "s16k8geu",
54
54
  propsAsIs: !0
@@ -58,44 +58,44 @@ const S = /* @__PURE__ */ e("div")({
58
58
  [n.UNSET]: /* @__PURE__ */ s(i, { name: "icon-arrow" }),
59
59
  [n.DNP]: /* @__PURE__ */ s(i, { name: "icon-arrow" })
60
60
  }, F = () => /* @__PURE__ */ o(x, { children: [
61
- /* @__PURE__ */ s(l, { loading: !0, style: { width: "35%" } }),
62
- /* @__PURE__ */ s(l, { loading: !0, style: { width: "70%" } }),
61
+ /* @__PURE__ */ s(c, { loading: !0, style: { width: "35%" } }),
62
+ /* @__PURE__ */ s(c, { loading: !0, style: { width: "70%" } }),
63
63
  /* @__PURE__ */ s(B, {})
64
- ] }), O = ({ questionTypeData: t, questionType: a, questionStatus: p }) => /* @__PURE__ */ o(T, { className: "SL_QuestionCaption", children: [
64
+ ] }), O = ({ questionTypeData: t, questionType: a, questionStatus: r }) => /* @__PURE__ */ o(S, { className: "SL_QuestionCaption", children: [
65
65
  /* @__PURE__ */ s(
66
66
  P,
67
67
  {
68
68
  className: "SL_QuestionTypeIcon",
69
69
  "data-testid": "question-type-icon",
70
- "data-type-trivia": a === r.TRIVIA,
71
- "data-type-poll": a === r.POLL,
70
+ "data-type-trivia": a === l.TRIVIA,
71
+ "data-type-poll": a === l.POLL,
72
72
  name: t.iconName
73
73
  }
74
74
  ),
75
75
  /* @__PURE__ */ o(b, { className: "SL_QuestionTypeLabel", children: [
76
76
  t.label,
77
- a === r.TRIVIA && p === h.RESOLVED && " • Expired"
77
+ a === l.TRIVIA && r === Q.RESOLVED && " • Expired"
78
78
  ] })
79
79
  ] }), H = ({
80
80
  questionId: t,
81
81
  questionType: a,
82
- questionStatus: p,
82
+ questionStatus: r,
83
83
  subject: d,
84
84
  openForVoting: I,
85
85
  status: y
86
86
  }) => {
87
- const c = A[a], q = C[y];
88
- return c ? /* @__PURE__ */ o(S, { "data-a": "intr", "data-name": t, children: [
87
+ const p = f[a], q = C[y];
88
+ return p ? /* @__PURE__ */ o(h, { "data-a": "intr", "data-name": t, children: [
89
89
  /* @__PURE__ */ o(g, { children: [
90
90
  /* @__PURE__ */ s(
91
91
  O,
92
92
  {
93
- questionTypeData: c,
93
+ questionTypeData: p,
94
94
  questionType: a,
95
- questionStatus: p
95
+ questionStatus: r
96
96
  }
97
97
  ),
98
- /* @__PURE__ */ s(f, { children: d || "" })
98
+ /* @__PURE__ */ s(T, { children: d || "" })
99
99
  ] }),
100
100
  /* @__PURE__ */ s(v, { children: I ? /* @__PURE__ */ s(w, { "data-a": "intr", "data-name": t, children: "Play" }) : q })
101
101
  ] }) : null;
@@ -108,6 +108,6 @@ export {
108
108
  F as D,
109
109
  H as R,
110
110
  w as S,
111
- S as r,
111
+ h as r,
112
112
  O as x
113
113
  };
package/lib/es/theme.js CHANGED
@@ -1,47 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import { A as a, B as r, C as s, L as x, D as n } from "./sl-types.js";
3
- const d = (e) => (t) => `
4
- @media only screen and (${e}) {
5
- ${t}
6
- }
7
- `, c = (e, t) => (i) => `
8
- @media only screen and (${e}) and (${t}) {
9
- ${i}
10
- }
11
- `, l = (e, t) => (i) => `
12
- @media only screen and (${e}) and (${t}) {
13
- ${i}
14
- }
15
- `, p = {
16
- up: (e) => {
17
- const t = a[e];
18
- return d(`min-width: ${t}px`);
19
- },
20
- down: (e) => {
21
- const t = a[e] - 1;
22
- return d(`max-width: ${t}px`);
23
- },
24
- intermediate: (e, t) => {
25
- const i = a[e] - 1, o = a[t];
26
- return c(`max-width: ${i}px`, `min-width: ${o}px`);
27
- },
28
- composite: (e, t) => {
29
- const i = a[e] - 1, o = r[t];
30
- return l(`max-width: ${i}px`, `orientation: ${o}`);
31
- },
32
- orientation: (e) => {
33
- const t = r[e];
34
- return d(`orientation: ${t}`);
35
- }
36
- };
37
- `${s}${x}${n.REGULAR}${n.REGULAR}${n.COLOR}${n.SERIF}${n.WEIGHT_DEFAULT}${n.WEIGHT_DEFAULT1}${n.WEIGHT_DEFAULT2}${n.WEIGHT_DEFAULT3}${n.SIZE_DEFAULT}${n.SIZE_DEFAULT1}${n.SIZE_DEFAULT2}${n.LINE_HEIGHT}${n.MARGIN_TITLE_DEFAULT}${p.down("xl")`
38
- --header-offset: 0px;
39
- `}${p.intermediate("xl", "lg")`
40
- --header-offset: 0px;
41
- `}`;
42
- const g = "StreamLayerCSSReset", h = "ttkj0ah";
2
+ const e = "StreamLayerCSSReset", r = "ttkj0ah";
43
3
  export {
44
- p as c,
45
- h,
46
- g as m
4
+ r as h,
5
+ e as m
47
6
  };
@@ -1,4 +1,4 @@
1
- import { $ as a } from "./useStreamLayerApp2.js";
1
+ import { z as a } from "./useStreamLayerApp2.js";
2
2
  export {
3
3
  a as useStreamLayerApp
4
4
  };