@rankingcoach/vanguard 1.8.0 → 1.9.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-CardMotion.config.js +159 -0
- package/dist/index-CardMotion.constants.js +23 -0
- package/dist/index-CardMotion.js +93 -0
- package/dist/index-CardMotion.module.scss.js +9 -0
- package/dist/index-ModalContext.js +37 -36
- package/dist/index-ModalTransition.js +9 -7
- package/dist/index-react-spring_animated.modern.js +6 -6
- package/dist/index-react-spring_core.modern.js +56 -54
- package/dist/index-react-spring_web.modern.js +9 -8
- package/dist/index.js +298 -296
- package/dist/types/core/CardMotion/CardMotion.config.d.ts +855 -0
- package/dist/types/core/CardMotion/CardMotion.constants.d.ts +20 -0
- package/dist/types/core/CardMotion/CardMotion.d.ts +3 -0
- package/dist/types/core/CardMotion/CardMotion.types.d.ts +60 -0
- package/dist/types/core/CardMotion/index.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/CustomMotion.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/Default.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/GlowIn.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/GlowPreset.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/Hoverable.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/StaggeredGlowGroup.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/VisibilityToggle.story.d.ts +2 -0
- package/dist/types/core/CardMotion/stories/_CardMotion.default.d.ts +3 -0
- package/dist/types/core/Modal/ModalContext.d.ts +1 -0
- package/dist/types/core/Modal/stories/StackingPermutations.story.d.ts +71 -0
- package/dist/types/core/Modal/stories/TwoModalsOverlapping.story.d.ts +2 -0
- package/dist/types/core/Modal/stories/TwoModalsOverlappingDifferentAnimations.story.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/vanguard-asset-analysis.json +1 -1
- package/dist/vanguard.css +1 -1
- package/dist-wordpress/index.js +779 -773
- package/dist-wordpress/types/core/PageSection/GradientPrimaryMeshBackground.d.ts +1 -0
- package/dist-wordpress/types/core/PageSection/PageSection.d.ts +43 -0
- package/dist-wordpress/types/core/PageSection/index.d.ts +2 -0
- package/dist-wordpress/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { CARD_MOTION_SIZES as o } from "./index-CardMotion.constants.js";
|
|
2
|
+
const d = "linear(0, 0.024, 0.087, 0.194, 0.352, 0.604, 0.789, 0.923, 1.012, 1.04, 1.027, 1.008, 1)", l = {
|
|
3
|
+
opacity: 0,
|
|
4
|
+
y: o.genericEntryOffsetY,
|
|
5
|
+
scale: 1,
|
|
6
|
+
blur: 0,
|
|
7
|
+
duration: 0.32,
|
|
8
|
+
delay: 0
|
|
9
|
+
}, m = {
|
|
10
|
+
opacity: 0,
|
|
11
|
+
y: o.genericLeaveOffsetY,
|
|
12
|
+
scale: 0.985,
|
|
13
|
+
blur: o.genericLeaveBlur,
|
|
14
|
+
duration: 0.2,
|
|
15
|
+
delay: 0
|
|
16
|
+
}, s = {
|
|
17
|
+
y: o.glowEntryOffsetY,
|
|
18
|
+
scale: o.glowEntryScale,
|
|
19
|
+
skewX: o.glowEntrySkewX,
|
|
20
|
+
skewY: o.glowEntrySkewY,
|
|
21
|
+
brightness: 1.08,
|
|
22
|
+
glowAlpha: 1,
|
|
23
|
+
radiusFrom: o.glowEntryRadiusFrom,
|
|
24
|
+
radiusTo: o.glowEntryRadiusTo,
|
|
25
|
+
duration: 1,
|
|
26
|
+
delay: 0,
|
|
27
|
+
contentDelay: 0.25,
|
|
28
|
+
contentDuration: 0.35
|
|
29
|
+
}, f = {
|
|
30
|
+
y: o.hoverLiftY,
|
|
31
|
+
scale: 1,
|
|
32
|
+
tension: 400,
|
|
33
|
+
friction: 40
|
|
34
|
+
}, u = (r) => {
|
|
35
|
+
if (!r)
|
|
36
|
+
return r;
|
|
37
|
+
const {
|
|
38
|
+
background: n,
|
|
39
|
+
backgroundColor: i,
|
|
40
|
+
...c
|
|
41
|
+
} = r;
|
|
42
|
+
return c;
|
|
43
|
+
}, w = (r) => {
|
|
44
|
+
if (r === void 0)
|
|
45
|
+
return {
|
|
46
|
+
skewX: s.skewX,
|
|
47
|
+
skewY: s.skewY
|
|
48
|
+
};
|
|
49
|
+
const n = 1 / Math.max(1, r);
|
|
50
|
+
return {
|
|
51
|
+
skewX: o.glowMaxSkewX * n,
|
|
52
|
+
skewY: o.glowMaxSkewY * n
|
|
53
|
+
};
|
|
54
|
+
}, g = (r, n, i, c, a) => {
|
|
55
|
+
if (r === "glow-in") {
|
|
56
|
+
const t = {
|
|
57
|
+
...s,
|
|
58
|
+
...w(c),
|
|
59
|
+
...a === !1 ? {
|
|
60
|
+
...s,
|
|
61
|
+
y: 0,
|
|
62
|
+
scale: 1,
|
|
63
|
+
skewX: 0,
|
|
64
|
+
skewY: 0,
|
|
65
|
+
brightness: 1,
|
|
66
|
+
glowAlpha: 0,
|
|
67
|
+
radiusFrom: 12,
|
|
68
|
+
radiusTo: 12,
|
|
69
|
+
duration: 0,
|
|
70
|
+
delay: 0,
|
|
71
|
+
contentDelay: 0,
|
|
72
|
+
contentDuration: 0
|
|
73
|
+
} : a
|
|
74
|
+
};
|
|
75
|
+
return {
|
|
76
|
+
kind: "glow-shell",
|
|
77
|
+
transitionFrom: {
|
|
78
|
+
opacity: 1,
|
|
79
|
+
y: 0,
|
|
80
|
+
scale: 1,
|
|
81
|
+
blur: 0
|
|
82
|
+
},
|
|
83
|
+
transitionEnter: {
|
|
84
|
+
opacity: 1,
|
|
85
|
+
y: 0,
|
|
86
|
+
scale: 1,
|
|
87
|
+
blur: 0
|
|
88
|
+
},
|
|
89
|
+
delayOffset: 0,
|
|
90
|
+
duration: 0,
|
|
91
|
+
shellStyle: {
|
|
92
|
+
...u(i),
|
|
93
|
+
"--card-motion-delay": `${n + t.delay}s`,
|
|
94
|
+
"--card-motion-duration": `${t.duration}s`,
|
|
95
|
+
"--card-motion-content-delay": `${n + t.contentDelay}s`,
|
|
96
|
+
"--card-motion-content-duration": `${t.contentDuration}s`,
|
|
97
|
+
"--card-motion-ease": d,
|
|
98
|
+
"--card-motion-y-from": `${t.y}px`,
|
|
99
|
+
"--card-motion-scale-from": t.scale,
|
|
100
|
+
"--card-motion-skew-x-from": `${t.skewX}deg`,
|
|
101
|
+
"--card-motion-skew-y-from": `${t.skewY}deg`,
|
|
102
|
+
"--card-motion-radius-from": `${t.radiusFrom}px`,
|
|
103
|
+
"--card-motion-radius-to": `${t.radiusTo}px`,
|
|
104
|
+
"--card-motion-brightness-from": t.brightness,
|
|
105
|
+
"--card-motion-glow-alpha-from": t.glowAlpha,
|
|
106
|
+
"--card-motion-shadow-inset-width": `${o.glowShadowInsetWidth}px`,
|
|
107
|
+
"--card-motion-shadow-offset-y": `${o.glowShadowOffsetY}px`,
|
|
108
|
+
"--card-motion-shadow-blur": `${o.glowShadowBlur}px`,
|
|
109
|
+
"--card-motion-perspective": `${o.transformPerspective}px`,
|
|
110
|
+
"--card-motion-content-blur-from": `${o.contentBlurFrom}px`,
|
|
111
|
+
"--card-motion-content-y-from": `${o.contentOffsetY}px`
|
|
112
|
+
},
|
|
113
|
+
contentStyle: {
|
|
114
|
+
animationDelay: `${n + t.contentDelay}s`,
|
|
115
|
+
animationDuration: `${t.contentDuration}s`
|
|
116
|
+
}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
const e = {
|
|
120
|
+
...l,
|
|
121
|
+
...a === !1 ? {
|
|
122
|
+
...l,
|
|
123
|
+
opacity: 1,
|
|
124
|
+
y: 0,
|
|
125
|
+
scale: 1,
|
|
126
|
+
blur: 0,
|
|
127
|
+
duration: 0,
|
|
128
|
+
delay: 0
|
|
129
|
+
} : a
|
|
130
|
+
};
|
|
131
|
+
return {
|
|
132
|
+
kind: "spring",
|
|
133
|
+
baseStyle: i,
|
|
134
|
+
transitionFrom: {
|
|
135
|
+
opacity: e.opacity,
|
|
136
|
+
y: e.y,
|
|
137
|
+
scale: e.scale,
|
|
138
|
+
blur: e.blur
|
|
139
|
+
},
|
|
140
|
+
transitionEnter: {
|
|
141
|
+
opacity: 1,
|
|
142
|
+
y: 0,
|
|
143
|
+
scale: 1,
|
|
144
|
+
blur: 0
|
|
145
|
+
},
|
|
146
|
+
delayOffset: e.delay,
|
|
147
|
+
duration: e.duration
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export {
|
|
151
|
+
l as GENERIC_ENTRY,
|
|
152
|
+
m as GENERIC_LEAVE,
|
|
153
|
+
s as GLOW_ENTRY_DEFAULTS,
|
|
154
|
+
f as HOVER_DEFAULTS,
|
|
155
|
+
d as SPRING_EASE_CSS,
|
|
156
|
+
g as getEntryPresetConfig,
|
|
157
|
+
w as getGlowSkewValues,
|
|
158
|
+
u as stripGlowBackground
|
|
159
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
genericEntryOffsetY: 20,
|
|
3
|
+
genericLeaveOffsetY: 12,
|
|
4
|
+
genericLeaveBlur: 2,
|
|
5
|
+
glowEntryOffsetY: -8,
|
|
6
|
+
glowEntryScale: 0.7,
|
|
7
|
+
glowEntrySkewX: 4,
|
|
8
|
+
glowEntrySkewY: 8,
|
|
9
|
+
glowEntryRadiusFrom: 24,
|
|
10
|
+
glowEntryRadiusTo: 12,
|
|
11
|
+
glowMaxSkewX: 8,
|
|
12
|
+
glowMaxSkewY: 12,
|
|
13
|
+
hoverLiftY: -4,
|
|
14
|
+
glowShadowInsetWidth: 1,
|
|
15
|
+
glowShadowOffsetY: 14,
|
|
16
|
+
glowShadowBlur: 40,
|
|
17
|
+
transformPerspective: 1e3,
|
|
18
|
+
contentBlurFrom: 8,
|
|
19
|
+
contentOffsetY: 8
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
e as CARD_MOTION_SIZES
|
|
23
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F, useMemo as y } from "react";
|
|
3
|
+
import { a as N } from "./index-react-spring_web.modern.js";
|
|
4
|
+
import { HOVER_DEFAULTS as x, getEntryPresetConfig as O, GENERIC_LEAVE as C } from "./index-CardMotion.config.js";
|
|
5
|
+
import p from "./index-CardMotion.module.scss.js";
|
|
6
|
+
import { useSpring as P, useTransition as R, to as T } from "./index-react-spring_core.modern.js";
|
|
7
|
+
function U({
|
|
8
|
+
delay: f,
|
|
9
|
+
className: a,
|
|
10
|
+
style: g,
|
|
11
|
+
children: E,
|
|
12
|
+
hoverable: o = !1,
|
|
13
|
+
glowIn: H = !1,
|
|
14
|
+
index: d,
|
|
15
|
+
isVisible: n = !0,
|
|
16
|
+
entryPreset: L,
|
|
17
|
+
entryAnimation: m,
|
|
18
|
+
leaveAnimation: l,
|
|
19
|
+
hoverAnimation: r
|
|
20
|
+
}) {
|
|
21
|
+
const [S, $] = F(!1), v = L ?? (H ? "glow-in" : "fade-up"), c = y(() => r === !1 || !o && r === void 0 ? {
|
|
22
|
+
...x,
|
|
23
|
+
y: 0
|
|
24
|
+
} : {
|
|
25
|
+
...x,
|
|
26
|
+
...o ? {} : {
|
|
27
|
+
y: 0
|
|
28
|
+
},
|
|
29
|
+
...r
|
|
30
|
+
}, [r, o]), w = P({
|
|
31
|
+
hoverY: S ? c.y : 0,
|
|
32
|
+
hoverScale: S ? c.scale : 1,
|
|
33
|
+
config: {
|
|
34
|
+
tension: c.tension,
|
|
35
|
+
friction: c.friction
|
|
36
|
+
}
|
|
37
|
+
}), e = y(() => O(v, f, g, d, m), [v, f, g, d, m]), t = y(() => ({
|
|
38
|
+
...C,
|
|
39
|
+
...l === !1 ? {
|
|
40
|
+
...C,
|
|
41
|
+
opacity: 1,
|
|
42
|
+
y: 0,
|
|
43
|
+
scale: 1,
|
|
44
|
+
blur: 0,
|
|
45
|
+
duration: 0,
|
|
46
|
+
delay: 0
|
|
47
|
+
} : l
|
|
48
|
+
}), [l]), M = R(n ? ["visible"] : [], {
|
|
49
|
+
keys: (s) => s,
|
|
50
|
+
from: e.transitionFrom,
|
|
51
|
+
enter: e.transitionEnter,
|
|
52
|
+
leave: l === !1 ? {
|
|
53
|
+
opacity: 1,
|
|
54
|
+
y: 0,
|
|
55
|
+
scale: 1,
|
|
56
|
+
blur: 0
|
|
57
|
+
} : {
|
|
58
|
+
opacity: t.opacity,
|
|
59
|
+
y: t.y,
|
|
60
|
+
scale: t.scale,
|
|
61
|
+
blur: t.blur
|
|
62
|
+
},
|
|
63
|
+
delay: n ? (f + e.delayOffset) * 1e3 : t.delay * 1e3,
|
|
64
|
+
config: {
|
|
65
|
+
duration: (n ? e.duration : t.duration) * 1e3
|
|
66
|
+
},
|
|
67
|
+
expires: !0
|
|
68
|
+
});
|
|
69
|
+
return !n && l === !1 ? null : M((s) => i(N.div, {
|
|
70
|
+
className: e.kind === "spring" ? a : void 0,
|
|
71
|
+
onMouseEnter: o || r ? () => $(!0) : void 0,
|
|
72
|
+
onMouseLeave: o || r ? () => $(!1) : void 0,
|
|
73
|
+
style: {
|
|
74
|
+
...e.baseStyle ?? {},
|
|
75
|
+
opacity: s.opacity,
|
|
76
|
+
filter: s.blur.to((u) => `blur(${u}px)`),
|
|
77
|
+
transform: T([s.y, s.scale, w.hoverY, w.hoverScale], (u, k, I, h) => `translate3d(0, ${u + I}px, 0) scale(${k * h})`)
|
|
78
|
+
},
|
|
79
|
+
children: e.kind === "glow-shell" ? i("div", {
|
|
80
|
+
className: a ? `${p.glowShell} ${a}` : p.glowShell,
|
|
81
|
+
style: e.shellStyle,
|
|
82
|
+
"data-card-motion-index": d,
|
|
83
|
+
children: i("div", {
|
|
84
|
+
className: p.contentIn,
|
|
85
|
+
style: e.contentStyle,
|
|
86
|
+
children: E
|
|
87
|
+
})
|
|
88
|
+
}) : E
|
|
89
|
+
}));
|
|
90
|
+
}
|
|
91
|
+
export {
|
|
92
|
+
U as CardMotion
|
|
93
|
+
};
|
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
if (!
|
|
1
|
+
import { jsx as k } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as l, useState as v, useCallback as d, createContext as S, useContext as P } from "react";
|
|
3
|
+
const p = S(void 0), j = () => {
|
|
4
|
+
const s = P(p);
|
|
5
|
+
if (!s)
|
|
6
6
|
throw new Error("useModalContext must be used within a ModalProvider");
|
|
7
|
-
return
|
|
8
|
-
},
|
|
9
|
-
children:
|
|
7
|
+
return s;
|
|
8
|
+
}, A = ({
|
|
9
|
+
children: s
|
|
10
10
|
}) => {
|
|
11
|
-
const n =
|
|
11
|
+
const c = l(/* @__PURE__ */ new Map()), n = l(/* @__PURE__ */ new Map()), i = l(0), [f, u] = v({
|
|
12
12
|
growModals: [],
|
|
13
13
|
slideModals: [],
|
|
14
14
|
popModals: []
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
}, a = (
|
|
20
|
-
|
|
15
|
+
}), g = d((e) => c.current.get(e), []), h = d((e) => n.current.get(e) ?? 0, []), x = d((e, o, t) => {
|
|
16
|
+
c.current.set(e, t), n.current.has(e) || (i.current += 1, n.current.set(e, i.current)), u((R) => {
|
|
17
|
+
const r = {
|
|
18
|
+
...R
|
|
19
|
+
}, a = (M, w) => {
|
|
20
|
+
M.indexOf(w) >= 0 || M.push(w);
|
|
21
21
|
};
|
|
22
|
-
switch (
|
|
22
|
+
switch (o) {
|
|
23
23
|
case "grow":
|
|
24
|
-
a(
|
|
24
|
+
a(r.growModals, e);
|
|
25
25
|
break;
|
|
26
26
|
case "slide":
|
|
27
|
-
a(
|
|
27
|
+
a(r.slideModals, e);
|
|
28
28
|
break;
|
|
29
29
|
case "pop":
|
|
30
|
-
a(
|
|
30
|
+
a(r.popModals, e);
|
|
31
31
|
break;
|
|
32
32
|
default:
|
|
33
|
-
a(
|
|
33
|
+
a(r.growModals, e);
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return r;
|
|
36
36
|
});
|
|
37
|
-
}, []),
|
|
38
|
-
n.current.delete(
|
|
39
|
-
growModals:
|
|
40
|
-
slideModals:
|
|
41
|
-
popModals:
|
|
37
|
+
}, []), C = d((e) => {
|
|
38
|
+
c.current.delete(e), n.current.delete(e), u((o) => ({
|
|
39
|
+
growModals: o.growModals.filter((t) => t !== e),
|
|
40
|
+
slideModals: o.slideModals.filter((t) => t !== e),
|
|
41
|
+
popModals: o.popModals.filter((t) => t !== e)
|
|
42
42
|
}));
|
|
43
|
-
}, []),
|
|
44
|
-
getModal:
|
|
45
|
-
modalRootState:
|
|
46
|
-
addModal:
|
|
47
|
-
removeModal:
|
|
43
|
+
}, []), b = {
|
|
44
|
+
getModal: g,
|
|
45
|
+
modalRootState: f,
|
|
46
|
+
addModal: x,
|
|
47
|
+
removeModal: C,
|
|
48
|
+
getModalOrder: h
|
|
48
49
|
};
|
|
49
|
-
return
|
|
50
|
-
value:
|
|
51
|
-
children:
|
|
50
|
+
return k(p.Provider, {
|
|
51
|
+
value: b,
|
|
52
|
+
children: s
|
|
52
53
|
});
|
|
53
54
|
};
|
|
54
55
|
export {
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
A as ModalProvider,
|
|
57
|
+
j as useModalContext
|
|
57
58
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { a as m } from "./index-react-spring_web.modern.js";
|
|
4
|
-
import { useModalContext as
|
|
4
|
+
import { useModalContext as y } from "./index-ModalContext.js";
|
|
5
5
|
import { useTransition as n } from "./index-react-spring_core.modern.js";
|
|
6
|
-
const
|
|
6
|
+
const O = (c) => {
|
|
7
7
|
const {
|
|
8
8
|
modalsList: r,
|
|
9
9
|
animation: d
|
|
10
10
|
} = c, {
|
|
11
|
-
getModal: p
|
|
12
|
-
|
|
11
|
+
getModal: p,
|
|
12
|
+
getModalOrder: f
|
|
13
|
+
} = y();
|
|
13
14
|
let a, t;
|
|
14
15
|
switch (d) {
|
|
15
16
|
case "slide":
|
|
@@ -110,10 +111,11 @@ const b = (c) => {
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
return a((o, e) => {
|
|
113
|
-
const i = p(e);
|
|
114
|
+
const i = p(e), l = f(e);
|
|
114
115
|
return e && i && s(m.div, {
|
|
115
116
|
style: {
|
|
116
|
-
opacity: o.bgOpacity
|
|
117
|
+
opacity: o.bgOpacity,
|
|
118
|
+
zIndex: 1100 + l
|
|
117
119
|
},
|
|
118
120
|
className: "modalRoot",
|
|
119
121
|
children: s(m.div, {
|
|
@@ -128,5 +130,5 @@ const b = (c) => {
|
|
|
128
130
|
});
|
|
129
131
|
};
|
|
130
132
|
export {
|
|
131
|
-
|
|
133
|
+
O as ModalTransition
|
|
132
134
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { eachProp as m, is as i, hasFluidValue as v, getFluidValue as
|
|
1
|
+
import { eachProp as m, defineHidden as $, is as i, hasFluidValue as v, getFluidValue as j, each as o, isAnimatedString as N, useForceUpdate as B, useIsomorphicLayoutEffect as D, addFluidObserver as K, removeFluidObserver as P, useOnce as L, createInterpolator as b } from "./index-react-spring_shared.modern.js";
|
|
2
2
|
import * as M from "react";
|
|
3
3
|
import { forwardRef as q, useRef as S, useCallback as z, useEffect as G } from "react";
|
|
4
4
|
import { raf as O } from "./index-react-spring_rafz.modern.js";
|
|
5
|
-
var h = Symbol.for("Animated:node"), J = (e) => !!e && e[h] === e, Q = (e) => e && e[h], W = (e, t) =>
|
|
5
|
+
var h = Symbol.for("Animated:node"), J = (e) => !!e && e[h] === e, Q = (e) => e && e[h], W = (e, t) => $(e, h, t), X = (e) => e && e[h] && e[h].getPayload(), R = class {
|
|
6
6
|
constructor() {
|
|
7
7
|
W(this, this);
|
|
8
8
|
}
|
|
@@ -68,7 +68,7 @@ var h = Symbol.for("Animated:node"), J = (e) => !!e && e[h] === e, Q = (e) => e
|
|
|
68
68
|
getValue(e) {
|
|
69
69
|
const t = {};
|
|
70
70
|
return m(this.source, (s, u) => {
|
|
71
|
-
J(s) ? t[u] = s.getValue(e) : v(s) ? t[u] =
|
|
71
|
+
J(s) ? t[u] = s.getValue(e) : v(s) ? t[u] = j(s) : e || (t[u] = s);
|
|
72
72
|
}), t;
|
|
73
73
|
}
|
|
74
74
|
/** Replace the raw object data */
|
|
@@ -127,18 +127,18 @@ var w = (e, t) => {
|
|
|
127
127
|
d.current = te(n, a);
|
|
128
128
|
},
|
|
129
129
|
[n]
|
|
130
|
-
), [l, g] = ee(u, t), k =
|
|
130
|
+
), [l, g] = ee(u, t), k = B(), A = () => {
|
|
131
131
|
const a = d.current;
|
|
132
132
|
if (s && !a)
|
|
133
133
|
return;
|
|
134
134
|
(a ? t.applyAnimatedValues(a, l.getValue(!0)) : !1) === !1 && k();
|
|
135
135
|
}, _ = new C(A, g), c = S(void 0);
|
|
136
|
-
|
|
136
|
+
D(() => (c.current = _, o(g, (a) => K(a, _)), () => {
|
|
137
137
|
c.current && (o(
|
|
138
138
|
c.current.deps,
|
|
139
139
|
(a) => P(a, c.current)
|
|
140
140
|
), O.cancel(c.current.update));
|
|
141
|
-
})), G(A, []),
|
|
141
|
+
})), G(A, []), L(() => () => {
|
|
142
142
|
const a = c.current;
|
|
143
143
|
o(a.deps, (V) => P(V, a));
|
|
144
144
|
});
|