@tamagui/animate-presence 1.135.4 → 1.135.5
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/cjs/AnimatePresence.native.js +94 -71
- package/dist/cjs/AnimatePresence.native.js.map +1 -6
- package/dist/cjs/LayoutGroupContext.cjs +1 -1
- package/dist/cjs/LayoutGroupContext.js +1 -1
- package/dist/cjs/LayoutGroupContext.native.js +25 -18
- package/dist/cjs/LayoutGroupContext.native.js.map +1 -6
- package/dist/cjs/PresenceChild.cjs +1 -1
- package/dist/cjs/PresenceChild.js +1 -1
- package/dist/cjs/PresenceChild.js.map +1 -1
- package/dist/cjs/PresenceChild.native.js +87 -73
- package/dist/cjs/PresenceChild.native.js.map +1 -6
- package/dist/cjs/index.native.js +15 -17
- package/dist/cjs/index.native.js.map +1 -6
- package/dist/cjs/types.native.js +9 -5
- package/dist/cjs/types.native.js.map +1 -6
- package/package.json +9 -8
|
@@ -1,95 +1,123 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __export = (target, all) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
16
23
|
var AnimatePresence_exports = {};
|
|
17
24
|
__export(AnimatePresence_exports, {
|
|
18
25
|
AnimatePresence: () => AnimatePresence
|
|
19
26
|
});
|
|
20
27
|
module.exports = __toCommonJS(AnimatePresence_exports);
|
|
21
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
22
|
-
|
|
23
|
-
|
|
28
|
+
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
29
|
+
import_constants = require("@tamagui/constants"),
|
|
30
|
+
import_use_force_update = require("@tamagui/use-force-update"),
|
|
31
|
+
import_react = require("react"),
|
|
32
|
+
import_LayoutGroupContext = require("./LayoutGroupContext.native.js"),
|
|
33
|
+
import_PresenceChild = require("./PresenceChild.native.js"),
|
|
34
|
+
getChildKey = function (child) {
|
|
35
|
+
return child.key || "";
|
|
36
|
+
};
|
|
24
37
|
function updateChildLookup(children, allChildren) {
|
|
25
|
-
children.forEach(function(child) {
|
|
38
|
+
children.forEach(function (child) {
|
|
26
39
|
var key = getChildKey(child);
|
|
27
40
|
allChildren.set(key, child);
|
|
28
41
|
});
|
|
29
42
|
}
|
|
30
43
|
function onlyElements(children) {
|
|
31
44
|
var filtered = [];
|
|
32
|
-
return import_react.Children.forEach(children, function(child) {
|
|
33
|
-
/* @__PURE__ */
|
|
45
|
+
return import_react.Children.forEach(children, function (child) {
|
|
46
|
+
/* @__PURE__ */(0, import_react.isValidElement)(child) && filtered.push(child);
|
|
34
47
|
}), filtered;
|
|
35
48
|
}
|
|
36
|
-
var AnimatePresence = function(param) {
|
|
37
|
-
var {
|
|
49
|
+
var AnimatePresence = function (param) {
|
|
50
|
+
var {
|
|
51
|
+
children,
|
|
52
|
+
enterVariant,
|
|
53
|
+
exitVariant,
|
|
54
|
+
enterExitVariant,
|
|
55
|
+
initial = !0,
|
|
56
|
+
onExitComplete,
|
|
57
|
+
exitBeforeEnter,
|
|
58
|
+
presenceAffectsLayout = !0,
|
|
59
|
+
custom,
|
|
60
|
+
passThrough
|
|
61
|
+
} = param,
|
|
62
|
+
_useContext_forceRender,
|
|
63
|
+
forceRender = (_useContext_forceRender = (0, import_react.useContext)(import_LayoutGroupContext.LayoutGroupContext).forceRender) !== null && _useContext_forceRender !== void 0 ? _useContext_forceRender : (0, import_use_force_update.useForceUpdate)(),
|
|
64
|
+
filteredChildren = onlyElements(children),
|
|
65
|
+
presentChildren = (0, import_react.useRef)(filteredChildren),
|
|
66
|
+
allChildren = (0, import_react.useRef)(/* @__PURE__ */new Map()).current,
|
|
67
|
+
exiting = (0, import_react.useRef)(/* @__PURE__ */new Set()).current;
|
|
38
68
|
updateChildLookup(filteredChildren, allChildren);
|
|
39
69
|
var isInitialRender = (0, import_react.useRef)(!0);
|
|
40
|
-
if (passThrough)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
if ((0, import_constants.useIsomorphicLayoutEffect)(function() {
|
|
70
|
+
if (passThrough) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
71
|
+
children
|
|
72
|
+
});
|
|
73
|
+
if ((0, import_constants.useIsomorphicLayoutEffect)(function () {
|
|
45
74
|
isInitialRender.current = !1;
|
|
46
|
-
}, []), isInitialRender.current)
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
for (var childrenToRender = [
|
|
62
|
-
...filteredChildren
|
|
63
|
-
], presentKeys = presentChildren.current.map(getChildKey), targetKeys = filteredChildren.map(getChildKey), numPresent = presentKeys.length, i = 0; i < numPresent; i++) {
|
|
75
|
+
}, []), isInitialRender.current) return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
76
|
+
children: filteredChildren.map(function (child) {
|
|
77
|
+
return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_PresenceChild.PresenceChild, {
|
|
78
|
+
isPresent: !0,
|
|
79
|
+
enterExitVariant,
|
|
80
|
+
exitVariant,
|
|
81
|
+
enterVariant,
|
|
82
|
+
initial: initial ? void 0 : !1,
|
|
83
|
+
presenceAffectsLayout,
|
|
84
|
+
custom,
|
|
85
|
+
children: child
|
|
86
|
+
}, getChildKey(child));
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
for (var childrenToRender = [...filteredChildren], presentKeys = presentChildren.current.map(getChildKey), targetKeys = filteredChildren.map(getChildKey), numPresent = presentKeys.length, i = 0; i < numPresent; i++) {
|
|
64
90
|
var key = presentKeys[i];
|
|
65
91
|
targetKeys.indexOf(key) === -1 ? exiting.add(key) : exiting.delete(key);
|
|
66
92
|
}
|
|
67
|
-
return exitBeforeEnter && exiting.size && (childrenToRender = []), exiting.forEach(function(key2) {
|
|
93
|
+
return exitBeforeEnter && exiting.size && (childrenToRender = []), exiting.forEach(function (key2) {
|
|
68
94
|
if (targetKeys.indexOf(key2) === -1) {
|
|
69
95
|
var child = allChildren.get(key2);
|
|
70
96
|
if (child) {
|
|
71
|
-
var insertionIndex = presentKeys.indexOf(key2),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
97
|
+
var insertionIndex = presentKeys.indexOf(key2),
|
|
98
|
+
onExit = function () {
|
|
99
|
+
allChildren.delete(key2), exiting.delete(key2);
|
|
100
|
+
var removeIndex = presentChildren.current.findIndex(function (presentChild) {
|
|
101
|
+
return presentChild.key === key2;
|
|
102
|
+
});
|
|
103
|
+
presentChildren.current.splice(removeIndex, 1), exiting.size || (presentChildren.current = filteredChildren, forceRender(), onExitComplete?.());
|
|
104
|
+
},
|
|
105
|
+
exitingComponent = /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_PresenceChild.PresenceChild, {
|
|
106
|
+
isPresent: !1,
|
|
107
|
+
onExitComplete: onExit,
|
|
108
|
+
presenceAffectsLayout,
|
|
109
|
+
enterExitVariant,
|
|
110
|
+
enterVariant,
|
|
111
|
+
exitVariant,
|
|
112
|
+
custom,
|
|
113
|
+
children: child
|
|
114
|
+
}, getChildKey(child));
|
|
87
115
|
childrenToRender.splice(insertionIndex, 0, exitingComponent);
|
|
88
116
|
}
|
|
89
117
|
}
|
|
90
|
-
}), childrenToRender = childrenToRender.map(function(child) {
|
|
118
|
+
}), childrenToRender = childrenToRender.map(function (child) {
|
|
91
119
|
var key2 = child.key;
|
|
92
|
-
return exiting.has(key2) ? child : /* @__PURE__ */
|
|
120
|
+
return exiting.has(key2) ? child : /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_PresenceChild.PresenceChild, {
|
|
93
121
|
isPresent: !0,
|
|
94
122
|
exitVariant,
|
|
95
123
|
enterVariant,
|
|
@@ -98,18 +126,13 @@ var AnimatePresence = function(param) {
|
|
|
98
126
|
custom,
|
|
99
127
|
children: child
|
|
100
128
|
}, getChildKey(child));
|
|
101
|
-
}), presentChildren.current = childrenToRender, /* @__PURE__ */
|
|
102
|
-
children: exiting.size ? childrenToRender :
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
)
|
|
129
|
+
}), presentChildren.current = childrenToRender, /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
130
|
+
children: exiting.size ? childrenToRender :
|
|
131
|
+
// biome-ignore lint/correctness/useJsxKeyInIterable: <explanation>
|
|
132
|
+
childrenToRender.map(function (child) {
|
|
133
|
+
return /* @__PURE__ */(0, import_react.cloneElement)(child);
|
|
134
|
+
})
|
|
108
135
|
});
|
|
109
136
|
};
|
|
110
137
|
AnimatePresence.displayName = "AnimatePresence";
|
|
111
|
-
|
|
112
|
-
0 && (module.exports = {
|
|
113
|
-
AnimatePresence
|
|
114
|
-
});
|
|
115
|
-
//# sourceMappingURL=AnimatePresence.js.map
|
|
138
|
+
//# sourceMappingURL=AnimatePresence.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/AnimatePresence.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAmD,8BACnD,mBAA0C,+BAC1C,0BAA+B,sCAC/B,eAA2E,kBAC3E,4BAAmC,iCACnC,uBAA8B,4BAC1B,cAAc,SAAS,OAAO;AAC9B,SAAO,MAAM,OAAO;AACxB;AACA,SAAS,kBAAkB,UAAU,aAAa;AAC9C,WAAS,QAAQ,SAAS,OAAO;AAC7B,QAAI,MAAM,YAAY,KAAK;AAC3B,gBAAY,IAAI,KAAK,KAAK;AAAA,EAC9B,CAAC;AACL;AACA,SAAS,aAAa,UAAU;AAC5B,MAAI,WAAW,CAAC;AAEhB,+BAAS,QAAQ,UAAU,SAAS,OAAO;AACvC,IAAkB,iDAAe,KAAK,KAAG,SAAS,KAAK,KAAK;AAAA,EAChE,CAAC,GACM;AACX;AACO,IAAI,kBAAkB,SAAS,OAAO;AACzC,MAAI,EAAE,UAAU,cAAc,aAAa,kBAAkB,UAAU,IAAM,gBAAgB,iBAAiB,wBAAwB,IAAM,QAAQ,YAAY,IAAI,OAChK,yBAGA,eAAe,8BAA0B,yBAAW,4CAAkB,EAAE,iBAAiB,QAAQ,4BAA4B,SAAS,8BAA0B,wCAAe,GAE/K,mBAAmB,aAAa,QAAQ,GAGxC,sBAAkB,qBAAO,gBAAgB,GAEzC,kBAAc,qBAAO,oBAAI,IAAI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gBAAgB,QAAQ,UAAU,SAAS,cAAc;AACvE,mBAAO,aAAa,QAAQA;AAAA,UAChC,CAAC;AACD,0BAAgB,QAAQ,OAAO,aAAa,CAAC,GACxC,QAAQ,SACT,gBAAgB,UAAU,kBAC1B,YAAY,GACZ,kBAAmB,QAA6C,eAAe;AAAA,QAEvF,GACI,mBAAiC,uCAAAF,KAAK,oCAAe;AAAA,UACrD,WAAW;AAAA,UACX,gBAAgB;AAAA,UAChB;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAU;AAAA,QACd,GAAG,YAAY,KAAK,CAAC;AACrB,yBAAiB,OAAO,gBAAgB,GAAG,gBAAgB;AAAA;AAAA;AAAA,EAC/D,CAAC,GAGD,mBAAmB,iBAAiB,IAAI,SAAS,OAAO;AACpD,QAAIE,OAAM,MAAM;AAChB,WAAO,QAAQ,IAAIA,IAAG,IAAI,QAAsB,uCAAAF,KAAK,oCAAe;AAAA,MAChE,WAAW;AAAA,MACX;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,UAAU;AAAA,IACd,GAAG,YAAY,KAAK,CAAC;AAAA,EACzB,CAAC,GACD,gBAAgB,UAAU,kBACL,uCAAAA,KAAK,mBAAAC,UAAW;AAAA,IACjC,UAAU,QAAQ,OAAO;AAAA;AAAA,MACzB,iBAAiB,IAAI,SAAS,OAAO;AACjC,eAAqB,+CAAa,KAAK;AAAA,MAC3C,CAAC;AAAA;AAAA,EACL,CAAC;AACL;AACA,gBAAgB,cAAc;",
|
|
5
|
-
"names": ["_jsx", "_Fragment", "key"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","AnimatePresence_exports","__export","AnimatePresence","module","exports","import_jsx_runtime","require","import_constants","import_use_force_update","import_react","import_LayoutGroupContext","import_PresenceChild","getChildKey","child","key","updateChildLookup","children","allChildren","forEach","set","onlyElements","filtered","Children","isValidElement","push","param","enterVariant","exitVariant","enterExitVariant","initial","onExitComplete","exitBeforeEnter","presenceAffectsLayout","custom","passThrough","_useContext_forceRender","forceRender","useContext","LayoutGroupContext","useForceUpdate","filteredChildren","presentChildren","useRef","Map","current","exiting","Set","isInitialRender","jsx","Fragment","useIsomorphicLayoutEffect","map","PresenceChild","isPresent","childrenToRender","presentKeys","targetKeys","numPresent","length","i","indexOf","add","delete","size","key2","get","insertionIndex","onExit","removeIndex","findIndex","presentChild","splice","exitingComponent","has","cloneElement","displayName"],"sources":["../../src/AnimatePresence.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,uBAAA;AAAAC,QAAA,CAAAD,uBAAA;EAAAE,eAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA0C,CAAAK,uBAAA,CAC1C;AASA,IAAAK,kBAAqB,GAAAC,OAA2C,oBAAa;EAAAC,gBAAA,GAAAD,OAAA;EAAAE,uBAAA,GAAAF,OAAA;EAAAG,YAAA,GAAAH,OAAA;EAAAI,yBAAA,GAAAJ,OAAA;EAAAK,oBAAA,GAAAL,OAAA;EAAAM,WAAA,YAAAA,CAAAC,KAAA;IAE7E,OAASA,KAAA,CAAAC,GAAA;EAIP;AACE,SAAAC,iBAAYA,CAAAC,QAAiB,EAAAC,WAAA;EAC7BD,QAAA,CAAAE,OAAY,WAASL,KAAK;IAC3B,IAAAC,GAAA,GAAAF,WAAA,CAAAC,KAAA;IACHI,WAAA,CAAAE,GAAA,CAAAL,GAAA,EAAAD,KAAA;EAEA;AACE;AAEA,SAAAO,aAAAJ,QAAA,EAAS;EACP,IAAAK,QAAI;EACN,OACOZ,YAAA,CAAAa,QAAA,CAAAJ,OAAA,CAAAF,QAAA,YAAAH,KAAA;IACT,mBAAAJ,YAAA,CAAAc,cAAA,EAAA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A,EAAAJ,WAAA,IAAAN,cAAA;UAEpC;UAAM0C,gBAAQ,GAAY,eAAO,IAAAnE,kBAAA,CAAA2C,GAAA,EAAArC,oBAAA,CAAAyC,aAAA;YAC5BC,SAAO;YAENvB,cAAA,EAAAqC,MAAiB;YAkBpBnC,qBAAA;YAAAJ,gBAAA;YAECF,YAAW;YACXC,WAAA;YAlBFM,MAAA;YAEAjB,QAAM,EAAAH;UAAsC,GAAAD,WACzC,CAAAC,KAAA,EAAiB;QAAqByC,gBACzC,CAAAiB,MAAA,CAAAL,cAAA,KAAAM,gBAAA;MACA;IAKmB;EAErB,IAAAlB,gBAOI,GAAAA,gBAAA,CAAAH,GAAA,WAAAtC,KAAA;IAAA,IACAmD,IAAA,GAAAnD,KAAA,CAAAC,GAAA;IAAA,OACA+B,OAAA,CAAA4B,GAAA,CAAAT,IAAA,IAAAnD,KAAA,sBAAAR,kBAAA,CAAA2C,GAAA,EAAArC,oBAAA,CAAAyC,aAAA;MAAAC,SACA;MAAA1B,WACA;MAAAD,YAEC;MAAAE,gBAAA;MATII,qBAAiB;MAUxBC,MAAA;MAGFjB,QAAA,EAAAH;IACD,GAIDD,WAAA,CAAAC,KAAA,CAAmB;EACjB,IAAA4B,eAAY,CAAMG,OAAA,GAAAU,gBAAA,qBAAAjD,kBAAA,CAAA2C,GAAA,EAAA3C,kBAAA,CAAA4C,QAAA;IAClBjC,QAAO,EAAA6B,OAAQ,CAAAkB,IAAO,GAAAT,gBAGpB;IAAC;IAAAA,gBAAA,CAAAH,GAAA,WAAAtC,KAAA;MAEC,sBAAS,IAAAJ,YAAA,CAAAiE,YAAA,EAAA7D,KAAA;IAAA;EAET;AACA;AACAX,eACA,CAAAyE,WAAA","ignoreList":[]}
|
|
@@ -34,5 +34,5 @@ __export(LayoutGroupContext_exports, {
|
|
|
34
34
|
LayoutGroupContext: () => LayoutGroupContext
|
|
35
35
|
});
|
|
36
36
|
module.exports = __toCommonJS(LayoutGroupContext_exports);
|
|
37
|
-
var import_react = __toESM(require("react"));
|
|
37
|
+
var import_react = __toESM(require("react"), 1);
|
|
38
38
|
const LayoutGroupContext = import_react.default.createContext({});
|
|
@@ -25,6 +25,6 @@ __export(LayoutGroupContext_exports, {
|
|
|
25
25
|
LayoutGroupContext: () => LayoutGroupContext
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(LayoutGroupContext_exports);
|
|
28
|
-
var import_react = __toESM(require("react"));
|
|
28
|
+
var import_react = __toESM(require("react"), 1);
|
|
29
29
|
const LayoutGroupContext = import_react.default.createContext({});
|
|
30
30
|
//# sourceMappingURL=LayoutGroupContext.js.map
|
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var LayoutGroupContext_exports = {};
|
|
25
35
|
__export(LayoutGroupContext_exports, {
|
|
26
36
|
LayoutGroupContext: () => LayoutGroupContext
|
|
27
37
|
});
|
|
28
38
|
module.exports = __toCommonJS(LayoutGroupContext_exports);
|
|
29
|
-
var import_react = __toESM(require("react")
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
LayoutGroupContext
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=LayoutGroupContext.js.map
|
|
39
|
+
var import_react = __toESM(require("react"), 1),
|
|
40
|
+
LayoutGroupContext = /* @__PURE__ */import_react.default.createContext({});
|
|
41
|
+
//# sourceMappingURL=LayoutGroupContext.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/LayoutGroupContext.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB,2BACP,qBAAmC,6BAAAA,QAAM,cAAc,CAAC,CAAC;",
|
|
5
|
-
"names": ["React"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","LayoutGroupContext_exports","__export","LayoutGroupContext","module","exports","import_react","__toESM","require","default","createContext"],"sources":["../../src/LayoutGroupContext.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,0BAAA;AAAAC,QAAA,CAAAD,0BAAA;EAAAE,kBAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAAkB,CAAAK,0BAAA;AAOX,IAAAK,YAAM,GAAAC,OAAA,CAAqBC,OAAA;EAAML,kBAAyC,kBAAAG,YAAA,CAAAG,OAAA,CAAAC,aAAA","ignoreList":[]}
|
|
@@ -36,7 +36,7 @@ __export(PresenceChild_exports, {
|
|
|
36
36
|
module.exports = __toCommonJS(PresenceChild_exports);
|
|
37
37
|
var import_use_constant = require("@tamagui/use-constant"),
|
|
38
38
|
import_use_presence = require("@tamagui/use-presence"),
|
|
39
|
-
React = __toESM(require("react")),
|
|
39
|
+
React = __toESM(require("react"), 1),
|
|
40
40
|
import_react = require("react"),
|
|
41
41
|
import_jsx_runtime = require("react/jsx-runtime");
|
|
42
42
|
const PresenceChild = React.memo(({
|
|
@@ -25,7 +25,7 @@ __export(PresenceChild_exports, {
|
|
|
25
25
|
PresenceChild: () => PresenceChild
|
|
26
26
|
});
|
|
27
27
|
module.exports = __toCommonJS(PresenceChild_exports);
|
|
28
|
-
var import_use_constant = require("@tamagui/use-constant"), import_use_presence = require("@tamagui/use-presence"), React = __toESM(require("react")), import_react = require("react"), import_jsx_runtime = require("react/jsx-runtime");
|
|
28
|
+
var import_use_constant = require("@tamagui/use-constant"), import_use_presence = require("@tamagui/use-presence"), React = __toESM(require("react"), 1), import_react = require("react"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
29
|
const PresenceChild = React.memo(
|
|
30
30
|
({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aAAa,CAAC,iBAAiB,QAAQ,iBAAiB;AAAA,IAC3D,GAAG,CAAC,SAAS,CAAC,GAEP,4CAAC,oCAAgB,UAAhB,EAAyB,OAAO,SAAU,UAAS;AAAA,EAC7D;AACF;AAEA,SAAS,iBAAuC;AAC9C,SAAO,oBAAI,IAAI;AACjB;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -1,102 +1,116 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __create = Object.create;
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf,
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf,
|
|
8
|
+
__hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
9
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
for (var name in all) __defProp(target, name, {
|
|
11
|
+
get: all[name],
|
|
12
|
+
enumerable: !0
|
|
13
|
+
});
|
|
14
|
+
},
|
|
15
|
+
__copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
16
22
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
17
23
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
18
24
|
// file that has been converted to a CommonJS file using a Babel-
|
|
19
25
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
20
26
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
21
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
-
|
|
23
|
-
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
28
|
+
value: mod,
|
|
29
|
+
enumerable: !0
|
|
30
|
+
}) : target, mod)),
|
|
31
|
+
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
32
|
+
value: !0
|
|
33
|
+
}), mod);
|
|
24
34
|
var PresenceChild_exports = {};
|
|
25
35
|
__export(PresenceChild_exports, {
|
|
26
36
|
PresenceChild: () => PresenceChild
|
|
27
37
|
});
|
|
28
38
|
module.exports = __toCommonJS(PresenceChild_exports);
|
|
29
|
-
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime"),
|
|
40
|
+
import_use_constant = require("@tamagui/use-constant"),
|
|
41
|
+
import_use_presence = require("@tamagui/use-presence"),
|
|
42
|
+
React = __toESM(require("react"), 1),
|
|
43
|
+
import_react = require("react"),
|
|
44
|
+
PresenceChild = /* @__PURE__ */React.memo(function (param) {
|
|
45
|
+
var {
|
|
46
|
+
children,
|
|
34
47
|
initial,
|
|
35
48
|
isPresent,
|
|
36
|
-
|
|
49
|
+
onExitComplete,
|
|
37
50
|
exitVariant,
|
|
38
51
|
enterVariant,
|
|
39
52
|
enterExitVariant,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
presenceAffectsLayout,
|
|
54
|
+
custom
|
|
55
|
+
} = param,
|
|
56
|
+
presenceChildren = (0, import_use_constant.useConstant)(newChildrenMap),
|
|
57
|
+
id = (0, import_react.useId)() || "",
|
|
58
|
+
context = React.useMemo(function () {
|
|
59
|
+
return {
|
|
60
|
+
id,
|
|
61
|
+
initial,
|
|
62
|
+
isPresent,
|
|
63
|
+
custom,
|
|
64
|
+
exitVariant,
|
|
65
|
+
enterVariant,
|
|
66
|
+
enterExitVariant,
|
|
67
|
+
onExitComplete: function () {
|
|
68
|
+
presenceChildren.set(id, !0);
|
|
69
|
+
var _iteratorNormalCompletion = !0,
|
|
70
|
+
_didIteratorError = !1,
|
|
71
|
+
_iteratorError = void 0;
|
|
52
72
|
try {
|
|
53
|
-
|
|
73
|
+
for (var _iterator = presenceChildren.values()[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
|
|
74
|
+
var isComplete = _step.value;
|
|
75
|
+
if (!isComplete) return;
|
|
76
|
+
}
|
|
77
|
+
} catch (err) {
|
|
78
|
+
_didIteratorError = !0, _iteratorError = err;
|
|
54
79
|
} finally {
|
|
55
|
-
|
|
56
|
-
|
|
80
|
+
try {
|
|
81
|
+
!_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
|
|
82
|
+
} finally {
|
|
83
|
+
if (_didIteratorError) throw _iteratorError;
|
|
84
|
+
}
|
|
57
85
|
}
|
|
86
|
+
onExitComplete?.();
|
|
87
|
+
},
|
|
88
|
+
register: function () {
|
|
89
|
+
return presenceChildren.set(id, !1), function () {
|
|
90
|
+
return presenceChildren.delete(id);
|
|
91
|
+
};
|
|
58
92
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
enterVariant
|
|
78
|
-
]
|
|
79
|
-
);
|
|
80
|
-
return React.useMemo(function() {
|
|
81
|
-
presenceChildren.forEach(function(_, key) {
|
|
82
|
-
return presenceChildren.set(key, !1);
|
|
93
|
+
};
|
|
94
|
+
},
|
|
95
|
+
/**
|
|
96
|
+
* If the presence of a child affects the layout of the components around it,
|
|
97
|
+
* we want to make a new context value to ensure they get re-rendered
|
|
98
|
+
* so they can detect that layout change.
|
|
99
|
+
*/
|
|
100
|
+
// @ts-expect-error its ok
|
|
101
|
+
presenceAffectsLayout ? void 0 : [isPresent, exitVariant, enterVariant]);
|
|
102
|
+
return React.useMemo(function () {
|
|
103
|
+
presenceChildren.forEach(function (_, key) {
|
|
104
|
+
return presenceChildren.set(key, !1);
|
|
105
|
+
});
|
|
106
|
+
}, [isPresent]), React.useEffect(function () {
|
|
107
|
+
!isPresent && !presenceChildren.size && onExitComplete?.();
|
|
108
|
+
}, [isPresent]), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_use_presence.PresenceContext.Provider, {
|
|
109
|
+
value: context,
|
|
110
|
+
children
|
|
83
111
|
});
|
|
84
|
-
}, [
|
|
85
|
-
isPresent
|
|
86
|
-
]), React.useEffect(function() {
|
|
87
|
-
!isPresent && !presenceChildren.size && (onExitComplete == null || onExitComplete());
|
|
88
|
-
}, [
|
|
89
|
-
isPresent
|
|
90
|
-
]), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_use_presence.PresenceContext.Provider, {
|
|
91
|
-
value: context,
|
|
92
|
-
children
|
|
93
112
|
});
|
|
94
|
-
});
|
|
95
113
|
function newChildrenMap() {
|
|
96
|
-
return /* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */new Map();
|
|
97
115
|
}
|
|
98
|
-
|
|
99
|
-
0 && (module.exports = {
|
|
100
|
-
PresenceChild
|
|
101
|
-
});
|
|
102
|
-
//# sourceMappingURL=PresenceChild.js.map
|
|
116
|
+
//# sourceMappingURL=PresenceChild.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/PresenceChild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AY;AAAA,MAChC;AAAA,MACA;AAAA,MACA;AAAA,IACJ;AAAA,EAAC;AACD,eAAM,QAAQ,WAAW;AACrB,qBAAiB,QAAQ,SAAS,GAAG,KAAK;AACtC,aAAO,iBAAiB,IAAI,KAAK,EAAK;AAAA,IAC1C,CAAC;AAAA,EACL,GAAG;AAAA,IACC;AAAA,EACJ,CAAC,GAIG,MAAM,UAAU,WAAW;AAC3B,KAAC,aAAa,CAAC,iBAAiB,SAAS,kBAAmB,QAA6C,eAAe;AAAA,EAC5H,GAAG;AAAA,IACC;AAAA,EACJ,CAAC,GACoB,uCAAAA,KAAK,oCAAgB,UAAU;AAAA,IAChD,OAAO;AAAA,IACP;AAAA,EACJ,CAAC;AACL,CAAC;AACD,SAAS,iBAAiB;AACtB,SAAO,oBAAI,IAAI;AACnB;",
|
|
5
|
-
"names": ["_jsx"]
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","PresenceChild_exports","__export","PresenceChild","module","exports","import_jsx_runtime","require","import_use_constant","import_use_presence","React","__toESM","import_react","memo","param","children","initial","isPresent","onExitComplete","exitVariant","enterVariant","enterExitVariant","presenceAffectsLayout","custom","presenceChildren","useConstant","newChildrenMap","id","useId","context","useMemo","set","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","values","Symbol","iterator","_step","next","done","isComplete","err","return","register","delete"],"sources":["../../src/PresenceChild.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAAA;EAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;IAAAC,KAAA;EAAA,IAAAH,GAAA;AAAA,IAAAI,qBAAA;AAAAC,QAAA,CAAAD,qBAAA;EAAAE,aAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAT,YAA4B,CAAAK,qBAAA;AAqBrB,IAAAK,kBAAsB,GAAAC,OAAM;EAAAC,mBAAA,G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gBAAA,CAAAsB,MAAA,CAAAnB,EAAA;YAAA;UASF;QACF;MAEA;MACE;AAAqE;AAQrE;AAAyD;AAGA;MAE/D;MAEAL,qBAAS,GAAuC,UAC9CL,SAAO,EACTE,WAAA,E","ignoreList":[]}
|
package/dist/cjs/index.native.js
CHANGED
|
@@ -1,26 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
12
|
+
return to;
|
|
13
|
+
},
|
|
14
|
+
__reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
16
|
+
value: !0
|
|
17
|
+
}), mod);
|
|
13
18
|
var index_exports = {};
|
|
14
19
|
module.exports = __toCommonJS(index_exports);
|
|
15
|
-
__reExport(index_exports, require("./AnimatePresence"), module.exports);
|
|
20
|
+
__reExport(index_exports, require("./AnimatePresence.native.js"), module.exports);
|
|
16
21
|
__reExport(index_exports, require("@tamagui/use-presence"), module.exports);
|
|
17
|
-
__reExport(index_exports, require("./types"), module.exports);
|
|
18
|
-
__reExport(index_exports, require("./PresenceChild"), module.exports);
|
|
19
|
-
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./AnimatePresence"),
|
|
22
|
-
...require("@tamagui/use-presence"),
|
|
23
|
-
...require("./types"),
|
|
24
|
-
...require("./PresenceChild")
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
22
|
+
__reExport(index_exports, require("./types.native.js"), module.exports);
|
|
23
|
+
__reExport(index_exports, require("./PresenceChild.native.js"), module.exports);
|
|
24
|
+
//# sourceMappingURL=index.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,8BAAd;AACA,0BAAc,kCADd;AAEA,0BAAc,oBAFd;AAGA,0BAAc,4BAHd;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports","__reExport","require"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA;AACdG,UAAA,CAAAH,aAAA,EAAcI,OAAA,iCAAAH,MADd,CAAAC,OAAA;AAEAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,wBAFd,GAAAH,MAAA,CAAAC,OAAA;AAGAC,UAAA,CAAAH,aAAA,EAAcI,OAAA,uBAAAH,MAAA,CAAAC,OAHd","ignoreList":[]}
|
package/dist/cjs/types.native.js
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
7
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
9
|
+
get: () => from[key],
|
|
10
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
11
|
+
});
|
|
10
12
|
return to;
|
|
11
13
|
};
|
|
12
|
-
var __toCommonJS =
|
|
14
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
15
|
+
value: !0
|
|
16
|
+
}), mod);
|
|
13
17
|
var types_exports = {};
|
|
14
18
|
module.exports = __toCommonJS(types_exports);
|
|
15
|
-
//# sourceMappingURL=types.js.map
|
|
19
|
+
//# sourceMappingURL=types.native.js.map
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/types.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;AAAA;AAAA;",
|
|
5
|
-
"names": []
|
|
6
|
-
}
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","types_exports"],"sources":["../../src/types.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/animate-presence",
|
|
3
|
-
"version": "1.135.
|
|
3
|
+
"version": "1.135.5",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"source": "src/index.ts",
|
|
5
6
|
"sideEffects": false,
|
|
6
7
|
"license": "MIT",
|
|
@@ -13,15 +14,15 @@
|
|
|
13
14
|
"dist"
|
|
14
15
|
],
|
|
15
16
|
"dependencies": {
|
|
16
|
-
"@tamagui/constants": "1.135.
|
|
17
|
-
"@tamagui/helpers": "1.135.
|
|
18
|
-
"@tamagui/use-constant": "1.135.
|
|
19
|
-
"@tamagui/use-force-update": "1.135.
|
|
20
|
-
"@tamagui/use-presence": "1.135.
|
|
21
|
-
"@tamagui/web": "1.135.
|
|
17
|
+
"@tamagui/constants": "1.135.5",
|
|
18
|
+
"@tamagui/helpers": "1.135.5",
|
|
19
|
+
"@tamagui/use-constant": "1.135.5",
|
|
20
|
+
"@tamagui/use-force-update": "1.135.5",
|
|
21
|
+
"@tamagui/use-presence": "1.135.5",
|
|
22
|
+
"@tamagui/web": "1.135.5"
|
|
22
23
|
},
|
|
23
24
|
"devDependencies": {
|
|
24
|
-
"@tamagui/build": "1.135.
|
|
25
|
+
"@tamagui/build": "1.135.5",
|
|
25
26
|
"react": "*"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|