@gamelearn/arcade-components 3.8.7 → 3.8.10

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.
@@ -57408,7 +57408,7 @@ function DialogComponent({
57408
57408
  progress: h
57409
57409
  }) {
57410
57410
  var Wr;
57411
- const y = (h == null ? void 0 : h.line) || 0, [E, g] = useState(y), [_, p] = useState(!!u), [x, C] = useState(!1), [T, S] = useState(!1), A = useThree((ze) => ze.scene), R = useThree((ze) => ze.camera), { start: P, stop: w } = useTimeout(), O = useRef([]), k = useMemo(() => R.clone(), []), L = useRef({ pos: [0, 0, 0], child: null }), F = r[E], G = r[E - 1], H = useRef(!1), W = !!n, { voiceOver: ee, decision: q } = F || {}, z = useRef({}), B = (Wr = F == null ? void 0 : F.slots) == null ? void 0 : Wr.find((ze) => ze.talking), I = useRef(!1), { startAnimation: U, startAnimationUrl: V, resetActives: X, preloadTalking: Q, unmountActives: J } = useStateMachine(r), ie = useRef(), ne = Object.keys((F == null ? void 0 : F.audio) || {}).length, Z = Object.keys((F == null ? void 0 : F.voice) || {}).length, se = ee || (F == null ? void 0 : F.type) === "conversationalNarration", oe = q || (F == null ? void 0 : F.type) === "conversationalDecision", de = F.type === "conversationalCamera", fe = _ && !oe && !de, [ce, xe] = useState({
57411
+ const y = (h == null ? void 0 : h.line) || 0, [E, g] = useState(y), [_, p] = useState(!!u), [x, C] = useState(!1), [T, S] = useState(!1), A = useThree((ze) => ze.scene), R = useThree((ze) => ze.camera), { start: P, stop: w } = useTimeout(), O = useRef([]), k = useMemo(() => R.clone(), []), L = useRef({ pos: [0, 0, 0], child: null }), F = r[E], G = r[E - 1], H = useRef(!1), W = !!n, { voiceOver: ee, decision: q } = F || {}, z = useRef({}), B = (Wr = F == null ? void 0 : F.slots) == null ? void 0 : Wr.find((ze) => ze.talking), I = useRef(!1), { startAnimation: U, startAnimationUrl: V, resetActives: X, preloadTalking: Q, unmountActives: J } = useStateMachine(r), ie = useRef(), ne = Object.keys((F == null ? void 0 : F.audio) || {}).length, Z = Object.keys((F == null ? void 0 : F.voice) || {}).length, se = ee || (F == null ? void 0 : F.type) === "conversationalNarration", oe = q || (F == null ? void 0 : F.type) === "conversationalDecision", de = (F == null ? void 0 : F.type) === "conversationalCamera", fe = _ && !oe && !de, [ce, xe] = useState({
57412
57412
  text: "",
57413
57413
  name: "",
57414
57414
  inScene: !1,
@@ -57641,7 +57641,7 @@ function DialogComponent({
57641
57641
  avatar: ht(B),
57642
57642
  show: !0
57643
57643
  });
57644
- else if (!H.current && !oe) {
57644
+ else if (!H.current && !oe && !de) {
57645
57645
  const Me = F == null ? void 0 : F.slots.filter((at) => at.uid && !at.talking), dt = [...Me.map((at) => at.uid) || [], B == null ? void 0 : B.uid];
57646
57646
  if (Oe.filter((at) => !dt.includes(at)).forEach((at) => {
57647
57647
  U(at, "idle");