@gamelearn/arcade-components 3.26.0 → 3.27.3

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.
@@ -27949,7 +27949,7 @@ const noop$1 = () => {
27949
27949
  if (T && s)
27950
27950
  if (n === "voice" && (l != null && l.id)) {
27951
27951
  const F = N(l);
27952
- D({ voiceId: F, text: e == null ? void 0 : e.replace("'", "'") });
27952
+ D({ voiceId: F, text: e });
27953
27953
  } else
27954
27954
  (n === "file" || !n) && o ? P(o == null ? void 0 : o.url) : p();
27955
27955
  }, [o, n, N, T, p, D, P, s, e, l]), k;
@@ -57467,20 +57467,19 @@ function DragItemPuzzleComponent({
57467
57467
  targetId: n.uid,
57468
57468
  name: n.name
57469
57469
  }
57470
- }), f({ type: "closeUI", ui: "inventory" });
57470
+ });
57471
57471
  }, [d, f, n.name, n.uid]), se = useCallback(() => {
57472
57472
  T("success"), f({ type: "hidePuzzleButtons", payload: !0 }), D.current = [...D.current, ...E.right.rewards], setTimeout(() => {
57473
57473
  te();
57474
57474
  }, 2e3);
57475
57475
  }, [f, te, E.right.rewards]), ee = useCallback(() => {
57476
- f({ type: "openUI", ui: "inventory", onFinish: () => {
57477
- } }), T(""), f({ type: "hidePuzzleButtons", payload: !1 }), f({ type: "failPuzzle" }), D.current = [...D.current, ...E.wrong.rewards];
57476
+ T(""), f({ type: "hidePuzzleButtons", payload: !1 }), f({ type: "failPuzzle" }), D.current = [...D.current, ...E.wrong.rewards];
57478
57477
  }, [f, E.wrong.rewards]), K = useCallback(
57479
57478
  (J) => {
57480
57479
  const H = J.dataTransfer.getData("item");
57481
57480
  S.current.setPointersPositions(J);
57482
57481
  const W = G(J);
57483
- f({ type: "hidePuzzleButtons", payload: !0 }), W && X(H) ? (T("success"), f({ type: "closeUI", ui: "inventory" }), t.solution.right.desc === "" && se()) : (f({ type: "closeUI", ui: "inventory" }), T("failed"), t.solution.wrong.desc === "" && setTimeout(() => {
57482
+ f({ type: "hidePuzzleButtons", payload: !0 }), W && X(H) ? (T("success"), t.solution.right.desc === "" && se()) : (T("failed"), t.solution.wrong.desc === "" && setTimeout(() => {
57484
57483
  ee();
57485
57484
  }, 2e3));
57486
57485
  },