@streamlayer/react 0.31.7 → 0.31.8

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.
@@ -357,11 +357,11 @@ const Ye = /* @__PURE__ */ r("div")({
357
357
  return "correct";
358
358
  if (e === z.PREDICTION) {
359
359
  if (t && o)
360
- return i ? n ? "correct" : "incorrect" : n ? "correct" : "unset";
360
+ return i ? n ? "correct" : "incorrect" : "unset";
361
361
  if (i)
362
362
  return "correct";
363
363
  }
364
- return e === z.TRIVIA && o ? i ? n ? "correct" : "incorrect" : n ? "correct" : "unset" : "unset";
364
+ return e === z.TRIVIA && o && i ? n ? "correct" : "incorrect" : "unset";
365
365
  }, Xt = ({
366
366
  questionType: e,
367
367
  questionVoted: t,
@@ -396,9 +396,10 @@ const Ye = /* @__PURE__ */ r("div")({
396
396
  "data-selected": I,
397
397
  "data-answerState": l,
398
398
  disabled: c || N || y,
399
+ "data-isNotChecked": c && !I && l !== "incorrect",
399
400
  onClick: p,
400
401
  children: [
401
- g && /* @__PURE__ */ s(Ut, { "data-answerState": l, style: { width: `${u}%` } }),
402
+ /* @__PURE__ */ s(Ut, { "data-answerState": l, style: { width: `${g ? u : 0}%` } }),
402
403
  /* @__PURE__ */ m(_t, { children: [
403
404
  i && h && ((t = ce[h]) == null ? void 0 : t.call(ce, i)),
404
405
  /* @__PURE__ */ s(Bt, { children: o }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamlayer/react",
3
- "version": "0.31.7",
3
+ "version": "0.31.8",
4
4
  "type": "module",
5
5
  "author": "StreamLayer, Inc (https://streamlayer.io)",
6
6
  "maintainers": [
@@ -56,9 +56,9 @@
56
56
  "dependencies": {
57
57
  "@streamlayer/feature-gamification": "^0.26.7",
58
58
  "@streamlayer/sdk-web": "^0.28.29",
59
- "@streamlayer/sdk-web-api": "^0.0.1",
60
59
  "@streamlayer/sdk-web-core": "^0.0.4",
61
60
  "@streamlayer/sdk-web-features": "^0.10.32",
61
+ "@streamlayer/sdk-web-api": "^0.0.1",
62
62
  "@streamlayer/sdk-web-interfaces": "^0.0.1",
63
63
  "@streamlayer/sdk-web-logger": "^0.0.1",
64
64
  "@streamlayer/sdk-web-notifications": "^0.13.4",
@@ -115,7 +115,7 @@
115
115
  "size-limit": "^11.0.0",
116
116
  "url-loader": "^4.1.1",
117
117
  "vite-plugin-dts": "^3.6.3",
118
- "@streamlayer/react-ui": "^0.69.3"
118
+ "@streamlayer/react-ui": "^0.70.0"
119
119
  },
120
120
  "scripts": {
121
121
  "size-limit": "size-limit"