@tamagui/animate-presence 1.113.0 → 1.113.2
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/esm/AnimatePresence.native.js +56 -68
- package/dist/esm/AnimatePresence.native.js.map +6 -1
- package/dist/esm/LayoutGroupContext.native.js +5 -3
- package/dist/esm/LayoutGroupContext.native.js.map +6 -1
- package/dist/esm/PresenceChild.native.js +30 -31
- package/dist/esm/PresenceChild.native.js.map +6 -1
- package/dist/esm/index.native.js +4 -4
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/package.json +7 -7
|
@@ -1,89 +1,74 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useForceUpdate } from "@tamagui/use-force-update";
|
|
3
3
|
import { Children, cloneElement, isValidElement, useContext, useRef } from "react";
|
|
4
|
-
import { LayoutGroupContext } from "./LayoutGroupContext
|
|
5
|
-
import { PresenceChild } from "./PresenceChild
|
|
6
|
-
var getChildKey = function
|
|
4
|
+
import { LayoutGroupContext } from "./LayoutGroupContext";
|
|
5
|
+
import { PresenceChild } from "./PresenceChild";
|
|
6
|
+
var getChildKey = function(child) {
|
|
7
7
|
return child.key || "";
|
|
8
8
|
};
|
|
9
9
|
function updateChildLookup(children, allChildren) {
|
|
10
|
-
children.forEach(function
|
|
10
|
+
children.forEach(function(child) {
|
|
11
11
|
var key = getChildKey(child);
|
|
12
12
|
allChildren.set(key, child);
|
|
13
13
|
});
|
|
14
14
|
}
|
|
15
15
|
function onlyElements(children) {
|
|
16
16
|
var filtered = [];
|
|
17
|
-
return Children.forEach(children, function
|
|
18
|
-
/* @__PURE__ */isValidElement(child) && filtered.push(child);
|
|
17
|
+
return Children.forEach(children, function(child) {
|
|
18
|
+
/* @__PURE__ */ isValidElement(child) && filtered.push(child);
|
|
19
19
|
}), filtered;
|
|
20
20
|
}
|
|
21
|
-
var AnimatePresence = function
|
|
22
|
-
var {
|
|
23
|
-
children,
|
|
24
|
-
enterVariant,
|
|
25
|
-
exitVariant,
|
|
26
|
-
enterExitVariant,
|
|
27
|
-
initial = !0,
|
|
28
|
-
onExitComplete,
|
|
29
|
-
exitBeforeEnter,
|
|
30
|
-
presenceAffectsLayout = !0,
|
|
31
|
-
custom
|
|
32
|
-
} = param,
|
|
33
|
-
_useContext_forceRender,
|
|
34
|
-
forceRender = (_useContext_forceRender = useContext(LayoutGroupContext).forceRender) !== null && _useContext_forceRender !== void 0 ? _useContext_forceRender : useForceUpdate(),
|
|
35
|
-
filteredChildren = onlyElements(children),
|
|
36
|
-
presentChildren = useRef(filteredChildren),
|
|
37
|
-
allChildren = useRef(/* @__PURE__ */new Map()).current,
|
|
38
|
-
exiting = useRef(/* @__PURE__ */new Set()).current;
|
|
21
|
+
var AnimatePresence = function(param) {
|
|
22
|
+
var { children, enterVariant, exitVariant, enterExitVariant, initial = !0, onExitComplete, exitBeforeEnter, presenceAffectsLayout = !0, custom } = param, _useContext_forceRender, forceRender = (_useContext_forceRender = useContext(LayoutGroupContext).forceRender) !== null && _useContext_forceRender !== void 0 ? _useContext_forceRender : useForceUpdate(), filteredChildren = onlyElements(children), presentChildren = useRef(filteredChildren), allChildren = useRef(/* @__PURE__ */ new Map()).current, exiting = useRef(/* @__PURE__ */ new Set()).current;
|
|
39
23
|
updateChildLookup(filteredChildren, allChildren);
|
|
40
24
|
var isInitialRender = useRef(!0);
|
|
41
|
-
if (isInitialRender.current)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
25
|
+
if (isInitialRender.current)
|
|
26
|
+
return isInitialRender.current = !1, /* @__PURE__ */ _jsx(_Fragment, {
|
|
27
|
+
children: filteredChildren.map(function(child) {
|
|
28
|
+
return /* @__PURE__ */ _jsx(PresenceChild, {
|
|
29
|
+
isPresent: !0,
|
|
30
|
+
enterExitVariant,
|
|
31
|
+
exitVariant,
|
|
32
|
+
enterVariant,
|
|
33
|
+
initial: initial ? void 0 : !1,
|
|
34
|
+
presenceAffectsLayout,
|
|
35
|
+
custom,
|
|
36
|
+
children: child
|
|
37
|
+
}, getChildKey(child));
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
for (var childrenToRender = [
|
|
41
|
+
...filteredChildren
|
|
42
|
+
], presentKeys = presentChildren.current.map(getChildKey), targetKeys = filteredChildren.map(getChildKey), numPresent = presentKeys.length, i = 0; i < numPresent; i++) {
|
|
56
43
|
var key = presentKeys[i];
|
|
57
44
|
targetKeys.indexOf(key) === -1 ? exiting.add(key) : exiting.delete(key);
|
|
58
45
|
}
|
|
59
|
-
return exitBeforeEnter && exiting.size && (childrenToRender = []), exiting.forEach(function
|
|
46
|
+
return exitBeforeEnter && exiting.size && (childrenToRender = []), exiting.forEach(function(key2) {
|
|
60
47
|
if (targetKeys.indexOf(key2) === -1) {
|
|
61
48
|
var child = allChildren.get(key2);
|
|
62
49
|
if (child) {
|
|
63
|
-
var insertionIndex = presentKeys.indexOf(key2),
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
children: child
|
|
80
|
-
}, getChildKey(child));
|
|
50
|
+
var insertionIndex = presentKeys.indexOf(key2), onExit = function() {
|
|
51
|
+
allChildren.delete(key2), exiting.delete(key2);
|
|
52
|
+
var removeIndex = presentChildren.current.findIndex(function(presentChild) {
|
|
53
|
+
return presentChild.key === key2;
|
|
54
|
+
});
|
|
55
|
+
presentChildren.current.splice(removeIndex, 1), exiting.size || (presentChildren.current = filteredChildren, forceRender(), onExitComplete?.());
|
|
56
|
+
}, exitingComponent = /* @__PURE__ */ _jsx(PresenceChild, {
|
|
57
|
+
isPresent: !1,
|
|
58
|
+
onExitComplete: onExit,
|
|
59
|
+
presenceAffectsLayout,
|
|
60
|
+
enterExitVariant,
|
|
61
|
+
enterVariant,
|
|
62
|
+
exitVariant,
|
|
63
|
+
custom,
|
|
64
|
+
children: child
|
|
65
|
+
}, getChildKey(child));
|
|
81
66
|
childrenToRender.splice(insertionIndex, 0, exitingComponent);
|
|
82
67
|
}
|
|
83
68
|
}
|
|
84
|
-
}), childrenToRender = childrenToRender.map(function
|
|
69
|
+
}), childrenToRender = childrenToRender.map(function(child) {
|
|
85
70
|
var key2 = child.key;
|
|
86
|
-
return exiting.has(key2) ? child : /* @__PURE__ */_jsx(PresenceChild, {
|
|
71
|
+
return exiting.has(key2) ? child : /* @__PURE__ */ _jsx(PresenceChild, {
|
|
87
72
|
isPresent: !0,
|
|
88
73
|
exitVariant,
|
|
89
74
|
enterVariant,
|
|
@@ -92,14 +77,17 @@ var AnimatePresence = function (param) {
|
|
|
92
77
|
custom,
|
|
93
78
|
children: child
|
|
94
79
|
}, getChildKey(child));
|
|
95
|
-
}), presentChildren.current = childrenToRender, /* @__PURE__ */_jsx(_Fragment, {
|
|
96
|
-
children: exiting.size ? childrenToRender :
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
80
|
+
}), presentChildren.current = childrenToRender, /* @__PURE__ */ _jsx(_Fragment, {
|
|
81
|
+
children: exiting.size ? childrenToRender : (
|
|
82
|
+
// biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
|
|
83
|
+
childrenToRender.map(function(child) {
|
|
84
|
+
return /* @__PURE__ */ cloneElement(child);
|
|
85
|
+
})
|
|
86
|
+
)
|
|
101
87
|
});
|
|
102
88
|
};
|
|
103
89
|
AnimatePresence.displayName = "AnimatePresence";
|
|
104
|
-
export {
|
|
105
|
-
|
|
90
|
+
export {
|
|
91
|
+
AnimatePresence
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=AnimatePresence.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/animate-presence/src/AnimatePresence.tsx"],
|
|
4
|
+
"mappings": "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",
|
|
5
|
+
"names": ["useForceUpdate", "Children", "cloneElement", "isValidElement", "useContext", "useRef", "LayoutGroupContext", "PresenceChild", "getChildKey", "child", "key", "updateChildLookup", "children", "allChildren", "forEach", "set", "onlyElements", "filtered", "push", "AnimatePresence", "enterVariant", "exitVariant", "enterExitVariant", "initial", "onExitComplete", "exitBeforeEnter", "presenceAffectsLayout", "custom", "forceRender", "filteredChildren", "presentChildren", "Map", "current", "exiting", "Set", "isInitialRender", "map", "isPresent", "undefined", "childrenToRender", "presentKeys", "targetKeys", "numPresent", "length", "i", "indexOf", "add", "delete", "size", "get", "insertionIndex", "onExit", "removeIndex", "findIndex", "presentChild", "splice", "exitingComponent", "has", "displayName"]
|
|
6
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
var LayoutGroupContext = /* @__PURE__ */React.createContext({});
|
|
3
|
-
export {
|
|
4
|
-
|
|
2
|
+
var LayoutGroupContext = /* @__PURE__ */ React.createContext({});
|
|
3
|
+
export {
|
|
4
|
+
LayoutGroupContext
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=LayoutGroupContext.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/animate-presence/src/LayoutGroupContext.tsx"],
|
|
4
|
+
"mappings": "AAAA,OAAOA,WAAW;AAOX,IAAMC,qBAAqBD,sBAAME,cAAuC,CAAC,CAAA;",
|
|
5
|
+
"names": ["React", "LayoutGroupContext", "createContext"]
|
|
6
|
+
}
|
|
@@ -3,21 +3,9 @@ import { useConstant } from "@tamagui/use-constant";
|
|
|
3
3
|
import { PresenceContext } from "@tamagui/use-presence";
|
|
4
4
|
import * as React from "react";
|
|
5
5
|
import { useId } from "react";
|
|
6
|
-
var PresenceChild = /* @__PURE__ */React.memo(function
|
|
7
|
-
var {
|
|
8
|
-
|
|
9
|
-
initial,
|
|
10
|
-
isPresent,
|
|
11
|
-
onExitComplete,
|
|
12
|
-
exitVariant,
|
|
13
|
-
enterVariant,
|
|
14
|
-
enterExitVariant,
|
|
15
|
-
presenceAffectsLayout,
|
|
16
|
-
custom
|
|
17
|
-
} = param,
|
|
18
|
-
presenceChildren = useConstant(newChildrenMap),
|
|
19
|
-
id = useId() || "",
|
|
20
|
-
context = React.useMemo(function () {
|
|
6
|
+
var PresenceChild = /* @__PURE__ */ React.memo(function(param) {
|
|
7
|
+
var { children, initial, isPresent, onExitComplete, exitVariant, enterVariant, enterExitVariant, presenceAffectsLayout, custom } = param, presenceChildren = useConstant(newChildrenMap), id = useId() || "", context = React.useMemo(
|
|
8
|
+
function() {
|
|
21
9
|
return {
|
|
22
10
|
id,
|
|
23
11
|
initial,
|
|
@@ -26,15 +14,14 @@ var PresenceChild = /* @__PURE__ */React.memo(function (param) {
|
|
|
26
14
|
exitVariant,
|
|
27
15
|
enterVariant,
|
|
28
16
|
enterExitVariant,
|
|
29
|
-
onExitComplete: function
|
|
17
|
+
onExitComplete: function() {
|
|
30
18
|
presenceChildren.set(id, !0);
|
|
31
|
-
var _iteratorNormalCompletion = !0,
|
|
32
|
-
_didIteratorError = !1,
|
|
33
|
-
_iteratorError = void 0;
|
|
19
|
+
var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
|
|
34
20
|
try {
|
|
35
21
|
for (var _iterator = presenceChildren.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
36
22
|
var isComplete = _step.value;
|
|
37
|
-
if (!isComplete)
|
|
23
|
+
if (!isComplete)
|
|
24
|
+
return;
|
|
38
25
|
}
|
|
39
26
|
} catch (err) {
|
|
40
27
|
_didIteratorError = !0, _iteratorError = err;
|
|
@@ -42,13 +29,14 @@ var PresenceChild = /* @__PURE__ */React.memo(function (param) {
|
|
|
42
29
|
try {
|
|
43
30
|
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
44
31
|
} finally {
|
|
45
|
-
if (_didIteratorError)
|
|
32
|
+
if (_didIteratorError)
|
|
33
|
+
throw _iteratorError;
|
|
46
34
|
}
|
|
47
35
|
}
|
|
48
36
|
onExitComplete?.();
|
|
49
37
|
},
|
|
50
|
-
register: function
|
|
51
|
-
return presenceChildren.set(id, !1), function
|
|
38
|
+
register: function() {
|
|
39
|
+
return presenceChildren.set(id, !1), function() {
|
|
52
40
|
return presenceChildren.delete(id);
|
|
53
41
|
};
|
|
54
42
|
}
|
|
@@ -60,20 +48,31 @@ var PresenceChild = /* @__PURE__ */React.memo(function (param) {
|
|
|
60
48
|
* so they can detect that layout change.
|
|
61
49
|
*/
|
|
62
50
|
// @ts-expect-error its ok
|
|
63
|
-
presenceAffectsLayout ? void 0 : [
|
|
64
|
-
|
|
65
|
-
|
|
51
|
+
presenceAffectsLayout ? void 0 : [
|
|
52
|
+
isPresent,
|
|
53
|
+
exitVariant,
|
|
54
|
+
enterVariant
|
|
55
|
+
]
|
|
56
|
+
);
|
|
57
|
+
return React.useMemo(function() {
|
|
58
|
+
presenceChildren.forEach(function(_, key) {
|
|
66
59
|
return presenceChildren.set(key, !1);
|
|
67
60
|
});
|
|
68
|
-
}, [
|
|
61
|
+
}, [
|
|
62
|
+
isPresent
|
|
63
|
+
]), React.useEffect(function() {
|
|
69
64
|
!isPresent && !presenceChildren.size && onExitComplete?.();
|
|
70
|
-
}, [
|
|
65
|
+
}, [
|
|
66
|
+
isPresent
|
|
67
|
+
]), /* @__PURE__ */ _jsx(PresenceContext.Provider, {
|
|
71
68
|
value: context,
|
|
72
69
|
children
|
|
73
70
|
});
|
|
74
71
|
});
|
|
75
72
|
function newChildrenMap() {
|
|
76
|
-
return /* @__PURE__ */new Map();
|
|
73
|
+
return /* @__PURE__ */ new Map();
|
|
77
74
|
}
|
|
78
|
-
export {
|
|
79
|
-
|
|
75
|
+
export {
|
|
76
|
+
PresenceChild
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=PresenceChild.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/animate-presence/src/PresenceChild.tsx"],
|
|
4
|
+
"mappings": ";AAAA,SAASA,mBAAmB;AAC5B,SAASC,uBAAuB;AAEhC,YAAYC,WAAW;AACvB,SAASC,aAAa;AAiBf,IAAMC,gBAAgBF,sBAAMG,KACjC,SAAA,OAAA;MAAC,EACCC,UACAC,SACAC,WACAC,gBACAC,aACAC,cACAC,kBACAC,uBACAC,OAAM,IACa,OACbC,mBAAmBf,YAAYgB,cAAAA,GAC/BC,KAAKd,MAAAA,KAAW,IAEhBe,UAAUhB,MAAMiB;IACpB,WAAA;AACE,aAAO;QACLF;QACAV;QACAC;QACAM;QACAJ;QACAC;QACAC;QACAH,gBAAgB,WAAA;AACdM,2BAAiBK,IAAIH,IAAI,EAAA;cACpB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,qBAAK,YAAoBF,iBAAiBM,OAAM,EAAA,OAAA,QAAA,EAAA,GAA3C,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAA+C;AAA/C,kBAAMC,aAAN,MAAA;AACH,kBAAI,CAACA;AACH;YAEJ;;AAJK,gCAAA,IAAA,iBAAA;;;eAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;kBAAA;sBAAA;;;AAKLb,UAAAA,iBAAAA;QACF;QACAc,UAAU,WAAA;AACRR,kCAAiBK,IAAIH,IAAI,EAAA,GAClB,WAAA;mBAAMF,iBAAiBS,OAAOP,EAAAA;;QACvC;MACF;IACF;;;;;;;IAQAJ,wBAAwBY,SAAY;MAACjB;MAAWE;MAAaC;;EAAa;AAG5ET,eAAMiB,QAAQ,WAAA;AACZJ,qBAAiBW,QAAQ,SAACC,GAAGC,KAAAA;aAAQb,iBAAiBK,IAAIQ,KAAK,EAAA;;EACjE,GAAG;IAACpB;GAAU,GAMdN,MAAM2B,UAAU,WAAA;AACd,KAACrB,aAAa,CAACO,iBAAiBe,QAAQrB,iBAAAA;EAC1C,GAAG;IAACD;GAAU,GAEP,qBAACP,gBAAgB8B,UAAQ;IAACC,OAAOd;;;AAC1C,CAAA;AAGF,SAASF,iBAAAA;AACP,SAAO,oBAAIiB,IAAAA;AACb;",
|
|
5
|
+
"names": ["useConstant", "PresenceContext", "React", "useId", "PresenceChild", "memo", "children", "initial", "isPresent", "onExitComplete", "exitVariant", "enterVariant", "enterExitVariant", "presenceAffectsLayout", "custom", "presenceChildren", "newChildrenMap", "id", "context", "useMemo", "set", "values", "isComplete", "register", "delete", "undefined", "forEach", "_", "key", "useEffect", "size", "Provider", "value", "Map"]
|
|
6
|
+
}
|
package/dist/esm/index.native.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./AnimatePresence
|
|
1
|
+
export * from "./AnimatePresence";
|
|
2
2
|
export * from "@tamagui/use-presence";
|
|
3
|
-
export * from "./types
|
|
4
|
-
export * from "./PresenceChild
|
|
5
|
-
//# sourceMappingURL=index.
|
|
3
|
+
export * from "./types";
|
|
4
|
+
export * from "./PresenceChild";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/Users/n8/tamagui/code/ui/animate-presence/src/index.ts"],
|
|
4
|
+
"mappings": "AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/esm/types.native.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
//# sourceMappingURL=types.native.js.map
|
|
1
|
+
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animate-presence",
|
|
3
|
-
"version": "1.113.
|
|
3
|
+
"version": "1.113.2",
|
|
4
4
|
"source": "src/index.ts",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@tamagui/helpers": "1.113.
|
|
17
|
-
"@tamagui/use-constant": "1.113.
|
|
18
|
-
"@tamagui/use-force-update": "1.113.
|
|
19
|
-
"@tamagui/use-presence": "1.113.
|
|
20
|
-
"@tamagui/web": "1.113.
|
|
16
|
+
"@tamagui/helpers": "1.113.2",
|
|
17
|
+
"@tamagui/use-constant": "1.113.2",
|
|
18
|
+
"@tamagui/use-force-update": "1.113.2",
|
|
19
|
+
"@tamagui/use-presence": "1.113.2",
|
|
20
|
+
"@tamagui/web": "1.113.2"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@tamagui/build": "1.113.
|
|
23
|
+
"@tamagui/build": "1.113.2"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"build": "tamagui-build",
|