react-native-screen-transitions 3.4.0-rc.1 → 3.4.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/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/commonjs/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +10 -8
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js +0 -1
- package/lib/module/shared/components/screen-container/layers/maybe-masked-navigation-container.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +10 -8
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +3 -206
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +2 -206
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +5 -6
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/maybe-masked-navigation-container.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +647 -909
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/shared/components/screen-container/layers/maybe-masked-navigation-container.tsx +0 -1
- package/src/shared/utils/bounds/zoom/build.ts +11 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAEN,uBAAuB,EACvB,MAAM,wCAAwC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,EAC3B,yBAAyB,EACzB,YAAY,EACZ,wBAAwB,EACxB,uBAAuB,EACvB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,cAAc,GACd,MAAM,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../../../../src/shared/utils/bounds/zoom/build.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAyL5E,wBAAgB,eAAe,CAAC,EAC/B,WAAW,EACX,WAAW,EACX,KAAK,GACL,EAAE,qBAAqB,GAAG,qBAAqB,CAwa/C"}
|
package/package.json
CHANGED
|
@@ -44,6 +44,15 @@ import type { BuildZoomStylesParams, ZoomInterpolatedStyle } from "./types";
|
|
|
44
44
|
const IDENTITY_DRAG_SCALE_OUTPUT = [1, 1] as const;
|
|
45
45
|
const presentedZoomTagByRoute = makeMutable<Record<string, string>>({});
|
|
46
46
|
|
|
47
|
+
function cachePresentedZoomTag(routeKey: string, resolvedTag: string) {
|
|
48
|
+
"worklet";
|
|
49
|
+
|
|
50
|
+
presentedZoomTagByRoute.value = {
|
|
51
|
+
...presentedZoomTagByRoute.value,
|
|
52
|
+
[routeKey]: resolvedTag,
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
|
|
47
56
|
/* -------------------------------------------------------------------------- */
|
|
48
57
|
/* LOCAL HELPERS */
|
|
49
58
|
/* -------------------------------------------------------------------------- */
|
|
@@ -189,10 +198,7 @@ function resolveEffectiveZoomTag(params: {
|
|
|
189
198
|
const shouldFreezeDuringEnter = entering && animating && !isFreshOpenFrame;
|
|
190
199
|
|
|
191
200
|
if (!cachedTag || isFreshOpenFrame) {
|
|
192
|
-
|
|
193
|
-
...state,
|
|
194
|
-
[activeRouteKey]: resolvedTag,
|
|
195
|
-
}));
|
|
201
|
+
cachePresentedZoomTag(activeRouteKey, resolvedTag);
|
|
196
202
|
return resolvedTag;
|
|
197
203
|
}
|
|
198
204
|
|
|
@@ -208,10 +214,7 @@ function resolveEffectiveZoomTag(params: {
|
|
|
208
214
|
}
|
|
209
215
|
|
|
210
216
|
if (cachedTag !== resolvedTag) {
|
|
211
|
-
|
|
212
|
-
...state,
|
|
213
|
-
[activeRouteKey]: resolvedTag,
|
|
214
|
-
}));
|
|
217
|
+
cachePresentedZoomTag(activeRouteKey, resolvedTag);
|
|
215
218
|
}
|
|
216
219
|
|
|
217
220
|
return resolvedTag;
|