@gamelearn/arcade-components 3.31.6 → 3.31.7
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.
|
@@ -27931,7 +27931,7 @@ const noop$1 = () => {
|
|
|
27931
27931
|
B || (B = await h({
|
|
27932
27932
|
type: "getSpeech",
|
|
27933
27933
|
payload: j
|
|
27934
|
-
}), B ?
|
|
27934
|
+
}), B ? ttsCache[`${j.voiceId}_${j.text}`] = B : _()), B && (y.current = k(B));
|
|
27935
27935
|
} catch {
|
|
27936
27936
|
_();
|
|
27937
27937
|
}
|
|
@@ -27957,9 +27957,8 @@ const noop$1 = () => {
|
|
|
27957
27957
|
(n === "file" || !n) && o ? y.current = k(o == null ? void 0 : o.url) : _();
|
|
27958
27958
|
}, [o, n, P, w, _, F, k, s, e, l]), [y, M];
|
|
27959
27959
|
}, cleanTextOfHtmlTags = (l) => {
|
|
27960
|
-
const e =
|
|
27961
|
-
|
|
27962
|
-
return l.replace(e, "").replace(n, "").replace(/(<([^>]+)>)/gi, "");
|
|
27960
|
+
const e = document.createElement("div");
|
|
27961
|
+
return e.innerHTML = l, e.textContent || e.innerText || "";
|
|
27963
27962
|
}, READING_TIME = 0.2;
|
|
27964
27963
|
function LecturesComponent({
|
|
27965
27964
|
emitEvent: l,
|
|
@@ -60802,7 +60801,7 @@ function BubbleWrapper({ currentMessage: l, translate: e }) {
|
|
|
60802
60801
|
}
|
|
60803
60802
|
) });
|
|
60804
60803
|
}
|
|
60805
|
-
const cache = {}, loader = new GLTFLoader(), MIX_TIME = 0.
|
|
60804
|
+
const cache = {}, loader = new GLTFLoader(), MIX_TIME = 0.25;
|
|
60806
60805
|
function useStateMachine(l) {
|
|
60807
60806
|
const e = useThree((p) => p.scene), n = useMemo(() => {
|
|
60808
60807
|
var _;
|