@superinterface/react 2.4.4 → 2.5.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/dist/index.cjs CHANGED
@@ -1260,6 +1260,14 @@ var Message = function(param) {
1260
1260
  }, [
1261
1261
  message
1262
1262
  ]), 2), olderRunSteps = _ref[0], laterRunSteps = _ref[1];
1263
+ var isInProgress = (0, import_react18.useMemo)(function() {
1264
+ if (message.status === "in_progress") return true;
1265
+ return message.runSteps.some(function(rs) {
1266
+ return rs.status === "in_progress";
1267
+ });
1268
+ }, [
1269
+ message
1270
+ ]);
1263
1271
  return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Provider, {
1264
1272
  value: {
1265
1273
  message: message
@@ -1278,7 +1286,7 @@ var Message = function(param) {
1278
1286
  })
1279
1287
  }, index);
1280
1288
  }),
1281
- message.status === "in_progress" && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StartingContentSkeleton, {})
1289
+ isInProgress && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(StartingContentSkeleton, {})
1282
1290
  ]
1283
1291
  }),
1284
1292
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RunSteps, {
@@ -3084,7 +3092,6 @@ var useMessageAudio = function(param) {
3084
3092
  if (isHtmlAudioSupported) {
3085
3093
  var _import_howler_Howler__howls___sounds_, _import_howler_Howler__howls_, _import_howler_Howler;
3086
3094
  if (!((_import_howler_Howler = import_howler.Howler) === null || _import_howler_Howler === void 0 ? void 0 : (_import_howler_Howler__howls_ = _import_howler_Howler._howls[0]) === null || _import_howler_Howler__howls_ === void 0 ? void 0 : (_import_howler_Howler__howls___sounds_ = _import_howler_Howler__howls_._sounds[0]) === null || _import_howler_Howler__howls___sounds_ === void 0 ? void 0 : _import_howler_Howler__howls___sounds_._node)) return;
3087
- if (!import_howler.Howler._howls[0]._sounds[0]._node.crossOrigin) return;
3088
3095
  import_howler.Howler._howls[0]._sounds[0]._node.crossOrigin = "anonymous";
3089
3096
  }
3090
3097
  }, [