@adstore/templates 2.14.30 → 2.14.31

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.
@@ -3682,9 +3682,11 @@ const Df = (t) => {
3682
3682
  const o = et(0), e = t.length, [n, r] = yt(0), s = (i = t[n || 0]) == null ? void 0 : i.animationDuration;
3683
3683
  return Q(() => {
3684
3684
  const _ = setTimeout(() => {
3685
- o.current += 1, r((d) => d + 1 < e ? d + 1 : 0);
3685
+ r((d) => d + 1 < e ? d + 1 : 0), o.current += 1;
3686
3686
  }, s);
3687
- return () => clearTimeout(_);
3687
+ return () => {
3688
+ clearTimeout(_), o.current = 0;
3689
+ };
3688
3690
  }, [r, e, s, n]), {
3689
3691
  animatedIdx: n,
3690
3692
  countOfTick: o.current
@@ -3823,10 +3825,12 @@ const Df = (t) => {
3823
3825
  var y, T;
3824
3826
  return a("div", {
3825
3827
  className: q.slide,
3826
- style: O ? {
3828
+ style: O && m ? {
3827
3829
  animationName: M === b ? q[((y = v.root) == null ? void 0 : y.animationName) || "fade-in-out"] : "none",
3828
3830
  animationDuration: `${(T = v.root) == null ? void 0 : T.animationDuration}ms`
3829
- } : {},
3831
+ } : {
3832
+ opacity: b === 0 ? 1 : 0
3833
+ },
3830
3834
  children: a(Ot, {
3831
3835
  value: L($({}, v), {
3832
3836
  device: _
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@adstore/templates",
3
3
  "private": false,
4
- "version": "2.14.30",
4
+ "version": "2.14.31",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"