react-native-screen-transitions 3.5.0 → 3.5.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/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js +2 -4
- package/lib/commonjs/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js +85 -1
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +7 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +3 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +3 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +4 -3
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +2 -2
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/overlay/variations/overlay-host.js +2 -4
- package/lib/module/shared/components/overlay/variations/overlay-host.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +3 -3
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +8 -8
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -2
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js +85 -1
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +7 -0
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +3 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +4 -3
- 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 +207 -4
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +207 -3
- 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 +6 -5
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +911 -649
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
- package/lib/typescript/shared/stores/bounds/index.d.ts +25 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/package.json +2 -37
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +2 -2
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +7 -4
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +6 -3
- package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +12 -7
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +2 -4
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +14 -12
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +6 -12
- package/src/shared/components/overlay/variations/overlay-host.tsx +5 -4
- package/src/shared/components/screen-container/layers/backdrop.tsx +3 -5
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +8 -4
- package/src/shared/providers/register-bounds.provider.tsx +13 -16
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +4 -2
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +6 -6
- package/src/shared/stores/bounds/index.ts +182 -0
- package/src/shared/stores/bounds/internals/registry.ts +8 -0
- package/src/shared/stores/bounds/internals/resolver.ts +2 -0
- package/src/shared/stores/bounds/types.ts +3 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +3 -6
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +7 -6
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -8
- package/src/shared/utils/bounds/helpers/styles/compute.ts +3 -5
- package/src/shared/utils/bounds/zoom/build.ts +5 -6
|
@@ -5,7 +5,7 @@ import Animated, { runOnUI, useAnimatedRef, useAnimatedStyle } from "react-nativ
|
|
|
5
5
|
import { NO_STYLES } from "../../constants";
|
|
6
6
|
import { useDescriptorDerivations } from "../../providers/screen/descriptors";
|
|
7
7
|
import { useScreenStyles } from "../../providers/screen/styles";
|
|
8
|
-
import {
|
|
8
|
+
import { setGroupActiveId } from "../../stores/bounds/internals/groups";
|
|
9
9
|
import { prepareStyleForBounds } from "../../utils/bounds/helpers/styles/styles";
|
|
10
10
|
import { useBoundaryPresence } from "./hooks/use-boundary-presence";
|
|
11
11
|
import { useCaptureDestinationBoundary } from "./hooks/use-capture-destination-boundary";
|
|
@@ -151,7 +151,7 @@ export function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
151
151
|
const handlePress = useCallback((...args) => {
|
|
152
152
|
// Press path has priority: capture source before user onPress/navigation.
|
|
153
153
|
if (group) {
|
|
154
|
-
runOnUI(
|
|
154
|
+
runOnUI(setGroupActiveId)(group, String(id));
|
|
155
155
|
}
|
|
156
156
|
runOnUI(measureBoundary)({
|
|
157
157
|
intent: "capture-source"
|
package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["forwardRef","memo","useCallback","useImperativeHandle","useMemo","Animated","runOnUI","useAnimatedRef","useAnimatedStyle","NO_STYLES","useDescriptorDerivations","useScreenStyles","
|
|
1
|
+
{"version":3,"names":["forwardRef","memo","useCallback","useImperativeHandle","useMemo","Animated","runOnUI","useAnimatedRef","useAnimatedStyle","NO_STYLES","useDescriptorDerivations","useScreenStyles","setGroupActiveId","prepareStyleForBounds","useBoundaryPresence","useCaptureDestinationBoundary","useCaptureSourceBoundary","useMeasurer","useRefreshBoundary","BoundaryOwnerProvider","useBoundaryOwner","buildBoundaryMatchKey","jsx","_jsx","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","createAnimatedComponent","Inner","props","forwardedRef","ownerRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","runtimeEnabled","hasNextScreen","boundaryConfig","undefined","preparedStyles","stylesMap","associatedStyles","get","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","associatedTargetStyles","measureBoundary","measuredAnimatedRef","shouldRunDestinationEffects","expectedSourceScreenKey","handlePress","args","String","intent","resolvedOnPress","current","value","children","ref","collapsable"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/create-boundary-component.tsx"],"mappings":";;AAAA,SAECA,UAAU,EACVC,IAAI,EAC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A9B,OAAO,CAAC+D,eAAe,CAAC,CAAC;QAAEO,MAAM,EAAE;MAAiB,CAAC,CAAC;MAEtD,IAAI,OAAOlC,OAAO,KAAK,UAAU,EAAE;QAClCA,OAAO,CAAC,GAAGgC,IAAI,CAAC;MACjB;IACD,CAAC,EACD,CAACvC,KAAK,EAAEC,EAAE,EAAEiC,eAAe,EAAE3B,OAAO,CACrC,CAAC;IAED,MAAMmC,eAAe,GACpB,OAAOnC,OAAO,KAAK,UAAU,GAAG+B,WAAW,GAAGjB,SAAS;IAExDrD,mBAAmB,CAAC6B,YAAY,EAAE,MAAMC,QAAQ,CAAC6C,OAAc,EAAE,CAChE7C,QAAQ,CACR,CAAC;IAEF,oBACCV,IAAA,CAACJ,qBAAqB;MAAC4D,KAAK,EAAEd,YAAa;MAAAe,QAAA,eAC1CzD,IAAA,CAACK,iBAAiB;QAAA,GACbe,IAAI;QACRsC,GAAG,EAAEhD,QAAS;QACdQ,KAAK,EAAE,CACNA,KAAK,EACLY,cAAc,GACXc,eAAe,GACdN,wBAAwB,GACxBF,gBAAgB,GACjBH,SAAS,CACX;QACFd,OAAO,EAAEmC,eAAgB;QACzBK,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAOjF,IAAI,CACVI,QAAQ,CAACwB,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { getPendingLink, hasSourceLink } from "../../../stores/bounds/internals/registry";
|
|
4
4
|
export const resolvePendingSourceKey = (sharedBoundTag, expectedSourceScreenKey) => {
|
|
5
5
|
"worklet";
|
|
6
6
|
|
|
7
|
-
if (expectedSourceScreenKey && (
|
|
7
|
+
if (expectedSourceScreenKey && (getPendingLink(sharedBoundTag, expectedSourceScreenKey) || hasSourceLink(sharedBoundTag, expectedSourceScreenKey))) {
|
|
8
8
|
return expectedSourceScreenKey;
|
|
9
9
|
}
|
|
10
|
-
return
|
|
10
|
+
return getPendingLink(sharedBoundTag)?.source.screenKey ?? null;
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=resolve-pending-source-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getPendingLink","hasSourceLink","resolvePendingSourceKey","sharedBoundTag","expectedSourceScreenKey","source","screenKey"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"mappings":";;AAAA,SACCA,cAAc,EACdC,aAAa,QACP,2CAA2C;AAElD,OAAO,MAAMC,uBAAuB,GAAGA,CACtCC,cAAsB,EACtBC,uBAAgC,KACb;EACnB,SAAS;;EACT,IACCA,uBAAuB,KACtBJ,cAAc,CAACG,cAAc,EAAEC,uBAAuB,CAAC,IACvDH,aAAa,CAACE,cAAc,EAAEC,uBAAuB,CAAC,CAAC,EACvD;IACD,OAAOA,uBAAuB;EAC/B;EAEA,OAAOJ,cAAc,CAACG,cAAc,CAAC,EAAEE,MAAM,CAACC,SAAS,IAAI,IAAI;AAChE,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { useLayoutEffect } from "react";
|
|
4
4
|
import { runOnUI } from "react-native-reanimated";
|
|
5
|
-
import {
|
|
5
|
+
import { removeEntry, setEntry } from "../../../stores/bounds/internals/registry";
|
|
6
6
|
export const useBoundaryPresence = params => {
|
|
7
7
|
const {
|
|
8
8
|
enabled,
|
|
@@ -19,14 +19,14 @@ export const useBoundaryPresence = params => {
|
|
|
19
19
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <Depend on the ancestory keys signature>
|
|
20
20
|
useLayoutEffect(() => {
|
|
21
21
|
if (!enabled) return;
|
|
22
|
-
runOnUI(
|
|
22
|
+
runOnUI(setEntry)(sharedBoundTag, currentScreenKey, {
|
|
23
23
|
ancestorKeys,
|
|
24
24
|
boundaryConfig,
|
|
25
25
|
navigatorKey,
|
|
26
26
|
ancestorNavigatorKeys
|
|
27
27
|
});
|
|
28
28
|
return () => {
|
|
29
|
-
runOnUI(
|
|
29
|
+
runOnUI(removeEntry)(sharedBoundTag, currentScreenKey);
|
|
30
30
|
};
|
|
31
31
|
}, [enabled, sharedBoundTag, currentScreenKey, ancestorKeysSignature, navigatorKey, ancestorNavigatorKeysSignature, boundaryConfig]);
|
|
32
32
|
};
|
package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","runOnUI","
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","runOnUI","removeEntry","setEntry","useBoundaryPresence","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","boundaryConfig","ancestorKeysSignature","join","ancestorNavigatorKeysSignature"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AACvC,SAASC,OAAO,QAAQ,yBAAyB;AACjD,SACCC,WAAW,EACXC,QAAQ,QACF,2CAA2C;AAGlD,OAAO,MAAMC,mBAAmB,GAAIC,MAQnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC;EACD,CAAC,GAAGP,MAAM;EACV,MAAMQ,qBAAqB,GAAGJ,YAAY,CAACK,IAAI,CAAC,GAAG,CAAC;EACpD,MAAMC,8BAA8B,GAAGJ,qBAAqB,EAAEG,IAAI,CAAC,GAAG,CAAC;;EAEvE;EACAd,eAAe,CAAC,MAAM;IACrB,IAAI,CAACM,OAAO,EAAE;IAEdL,OAAO,CAACE,QAAQ,CAAC,CAACI,cAAc,EAAEC,gBAAgB,EAAE;MACnDC,YAAY;MACZG,cAAc;MACdF,YAAY;MACZC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZV,OAAO,CAACC,WAAW,CAAC,CAACK,cAAc,EAAEC,gBAAgB,CAAC;IACvD,CAAC;EACF,CAAC,EAAE,CACFF,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBK,qBAAqB,EACrBH,YAAY,EACZK,8BAA8B,EAC9BH,cAAc,CACd,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
import { useLayoutEffect } from "react";
|
|
4
4
|
import { cancelAnimation, runOnUI, useAnimatedReaction, useSharedValue, withDelay, withTiming } from "react-native-reanimated";
|
|
5
5
|
import { AnimationStore } from "../../../stores/animation.store";
|
|
6
|
-
import {
|
|
6
|
+
import { getGroupActiveId } from "../../../stores/bounds/internals/groups";
|
|
7
|
+
import { getPendingLink, hasDestinationLink, hasSourceLink } from "../../../stores/bounds/internals/registry";
|
|
7
8
|
import { SystemStore } from "../../../stores/system.store";
|
|
8
9
|
import { resolvePendingSourceKey } from "../helpers/resolve-pending-source-key";
|
|
9
10
|
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
@@ -60,13 +61,13 @@ export const useCaptureDestinationBoundary = ({
|
|
|
60
61
|
return [0, retryTick];
|
|
61
62
|
}
|
|
62
63
|
const resolvedSourceKey = resolvePendingSourceKey(sharedBoundTag, expectedSourceScreenKey);
|
|
63
|
-
const hasAttachableSourceLink = resolvedSourceKey ?
|
|
64
|
-
const
|
|
65
|
-
const shouldBlock = enabled && !!resolvedSourceKey && hasAttachableSourceLink && !
|
|
64
|
+
const hasAttachableSourceLink = resolvedSourceKey ? getPendingLink(sharedBoundTag, resolvedSourceKey) !== null || hasSourceLink(sharedBoundTag, resolvedSourceKey) : false;
|
|
65
|
+
const hasDestination = hasDestinationLink(sharedBoundTag, currentScreenKey);
|
|
66
|
+
const shouldBlock = enabled && !!resolvedSourceKey && hasAttachableSourceLink && !hasDestination;
|
|
66
67
|
if (!shouldBlock) {
|
|
67
68
|
return [0, retryTick];
|
|
68
69
|
}
|
|
69
|
-
if (group &&
|
|
70
|
+
if (group && getGroupActiveId(group) !== String(id)) {
|
|
70
71
|
return [0, retryTick];
|
|
71
72
|
}
|
|
72
73
|
return [1, retryTick];
|
|
@@ -81,7 +82,7 @@ export const useCaptureDestinationBoundary = ({
|
|
|
81
82
|
measureBoundary({
|
|
82
83
|
intent: "complete-destination"
|
|
83
84
|
});
|
|
84
|
-
if (
|
|
85
|
+
if (hasDestinationLink(sharedBoundTag, currentScreenKey)) {
|
|
85
86
|
releaseLifecycleStartBlock();
|
|
86
87
|
return;
|
|
87
88
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useLayoutEffect","cancelAnimation","runOnUI","useAnimatedReaction","useSharedValue","withDelay","withTiming","AnimationStore","
|
|
1
|
+
{"version":3,"names":["useLayoutEffect","cancelAnimation","runOnUI","useAnimatedReaction","useSharedValue","withDelay","withTiming","AnimationStore","getGroupActiveId","getPendingLink","hasDestinationLink","hasSourceLink","SystemStore","resolvePendingSourceKey","VIEWPORT_RETRY_DELAY_MS","useCaptureDestinationBoundary","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","measureBoundary","animating","getValue","closing","system","getBag","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","retryToken","ensureLifecycleStartBlocked","get","set","releaseLifecycleStartBlock","scheduleViewportRetry","duration","retryTick","resolvedSourceKey","hasAttachableSourceLink","hasDestination","shouldBlock","String","intent"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts"],"mappings":";;AAAA,SAASA,eAAe,QAAQ,OAAO;AACvC,SACCC,eAAe,EACfC,OAAO,EACPC,mBAAmB,EACnBC,cAAc,EACdC,SAAS,E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,CAAC,KAAK;IAClB,SAAS;;IACT,IAAI,CAACA,WAAW,EAAE;MACjBP,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAH,2BAA2B,CAAC,CAAC;IAC7BX,eAAe,CAAC;MAAEuB,MAAM,EAAE;IAAuB,CAAC,CAAC;IAEnD,IAAInC,kBAAkB,CAACM,cAAc,EAAEI,gBAAgB,CAAC,EAAE;MACzDgB,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAC,qBAAqB,CAAC,CAAC;EACxB,CACD,CAAC;EAEDrC,eAAe,CAAC,MAAM;IACrB,OAAO,MAAM;MACZE,OAAO,CAAC,MAAM;QACb,SAAS;;QACTD,eAAe,CAAC+B,UAAU,CAAC;QAE3B,IAAI,CAACD,wBAAwB,CAACG,GAAG,CAAC,CAAC,EAAE;UACpC;QACD;QAEAL,qBAAqB,CAAC,CAAC;QACvBE,wBAAwB,CAACI,GAAG,CAAC,CAAC,CAAC;MAChC,CAAC,CAAC,CAAC,CAAC;IACL,CAAC;EACF,CAAC,EAAE,CAACJ,wBAAwB,EAAEC,UAAU,EAAEH,qBAAqB,CAAC,CAAC;AAClE,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
import { useAnimatedReaction } from "react-native-reanimated";
|
|
4
|
-
import {
|
|
4
|
+
import { getGroupActiveId } from "../../../stores/bounds/internals/groups";
|
|
5
5
|
export const useCaptureSourceBoundary = params => {
|
|
6
6
|
const {
|
|
7
7
|
enabled,
|
|
@@ -23,7 +23,7 @@ export const useCaptureSourceBoundary = params => {
|
|
|
23
23
|
if (!enabled) return;
|
|
24
24
|
if (!nextScreenKey) return;
|
|
25
25
|
if (!captureSignal || captureSignal === previousCaptureSignal) return;
|
|
26
|
-
const currentGroupActiveId = group ?
|
|
26
|
+
const currentGroupActiveId = group ? getGroupActiveId(group) : null;
|
|
27
27
|
if (group && currentGroupActiveId !== String(id)) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedReaction","
|
|
1
|
+
{"version":3,"names":["useAnimatedReaction","getGroupActiveId","useCaptureSourceBoundary","params","enabled","id","group","nextScreenKey","measureBoundary","captureSignal","previousCaptureSignal","currentGroupActiveId","String","intent"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,gBAAgB,QAAQ,yCAAyC;AAG1E,OAAO,MAAMC,wBAAwB,GAAIC,MAOxC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,EAAE;IAAEC,KAAK;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAAGL,MAAM;EAErEH,mBAAmB,CAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACI,OAAO,IAAI,CAACG,aAAa,EAAE;MAC/B,OAAO,CAAC;IACT;IAEA,OAAOA,aAAa;EACrB,CAAC,EACD,CAACE,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACN,OAAO,EAAE;IACd,IAAI,CAACG,aAAa,EAAE;IACpB,IAAI,CAACE,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;IAE/D,MAAMC,oBAAoB,GAAGL,KAAK,GAAGL,gBAAgB,CAACK,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIK,oBAAoB,KAAKC,MAAM,CAACP,EAAE,CAAC,EAAE;MACjD;IACD;IAEAG,eAAe,CAAC;MAAEK,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9C,CAAC,EACD,CAACT,OAAO,EAAEC,EAAE,EAAEC,KAAK,EAAEC,aAAa,EAAEC,eAAe,CACpD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import { useCallback } from "react";
|
|
4
4
|
import { useWindowDimensions } from "react-native";
|
|
5
5
|
import { measure } from "react-native-reanimated";
|
|
6
|
-
import { BoundStore } from "../../../stores/bounds";
|
|
7
6
|
import { applyMeasuredBoundsWrites } from "../../../stores/bounds/helpers/apply-measured-bounds-writes";
|
|
7
|
+
import { getMeasuredEntry, getPendingLink, hasDestinationLink, hasSourceLink } from "../../../stores/bounds/internals/registry";
|
|
8
8
|
import { resolvePendingSourceKey } from "../helpers/resolve-pending-source-key";
|
|
9
9
|
import { areMeasurementsEqual, isMeasurementInViewport } from "./helpers/measurement";
|
|
10
10
|
import { getMeasureIntentFlags, resolveMeasureWritePlan } from "./helpers/measurement-rules";
|
|
@@ -31,16 +31,16 @@ export const useMeasurer = ({
|
|
|
31
31
|
if (!enabled) return;
|
|
32
32
|
const intents = getMeasureIntentFlags(intent);
|
|
33
33
|
const expectedSourceScreenKey = resolvePendingSourceKey(sharedBoundTag, preferredSourceScreenKey) || undefined;
|
|
34
|
-
const pendingLink = expectedSourceScreenKey ?
|
|
34
|
+
const pendingLink = expectedSourceScreenKey ? getPendingLink(sharedBoundTag, expectedSourceScreenKey) : getPendingLink(sharedBoundTag);
|
|
35
35
|
const hasPendingLink = pendingLink !== null;
|
|
36
|
-
const hasAttachableSourceLink = expectedSourceScreenKey ?
|
|
37
|
-
const
|
|
38
|
-
const
|
|
36
|
+
const hasAttachableSourceLink = expectedSourceScreenKey ? hasSourceLink(sharedBoundTag, expectedSourceScreenKey) : false;
|
|
37
|
+
const hasSource = hasSourceLink(sharedBoundTag, currentScreenKey);
|
|
38
|
+
const hasDestination = hasDestinationLink(sharedBoundTag, currentScreenKey);
|
|
39
39
|
const writePlan = resolveMeasureWritePlan({
|
|
40
40
|
intents,
|
|
41
41
|
hasPendingLink,
|
|
42
|
-
hasSourceLink,
|
|
43
|
-
hasDestinationLink,
|
|
42
|
+
hasSourceLink: hasSource,
|
|
43
|
+
hasDestinationLink: hasDestination,
|
|
44
44
|
hasAttachableSourceLink
|
|
45
45
|
});
|
|
46
46
|
if (!writePlan.writesAny) {
|
|
@@ -52,7 +52,7 @@ export const useMeasurer = ({
|
|
|
52
52
|
if (!destinationInViewport && !writePlan.captureSource && !writePlan.refreshSource) {
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const existingMeasuredEntry =
|
|
55
|
+
const existingMeasuredEntry = getMeasuredEntry(sharedBoundTag, currentScreenKey);
|
|
56
56
|
const hasMeasuredEntryChanged = !existingMeasuredEntry || !areMeasurementsEqual(existingMeasuredEntry.bounds, measured);
|
|
57
57
|
applyMeasuredBoundsWrites({
|
|
58
58
|
sharedBoundTag,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useCallback","useWindowDimensions","measure","
|
|
1
|
+
{"version":3,"names":["useCallback","useWindowDimensions","measure","applyMeasuredBoundsWrites","getMeasuredEntry","getPendingLink","hasDestinationLink","hasSourceLink","resolvePendingSourceKey","areMeasurementsEqual","isMeasurementInViewport","getMeasureIntentFlags","resolveMeasureWritePlan","useMeasurer","enabled","sharedBoundTag","preferredSourceScreenKey","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","preparedStyles","measuredAnimatedRef","width","viewportWidth","height","viewportHeight","intent","intents","expectedSourceScreenKey","undefined","pendingLink","hasPendingLink","hasAttachableSourceLink","hasSource","hasDestination","writePlan","writesAny","measured","destinationInViewport","wantsDestinationWrite","captureSource","refreshSource","existingMeasuredEntry","hasMeasuredEntryChanged","bounds","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldUpdateDestination","refreshDestination","shouldSetDestination","completeDestination"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-measurer.ts"],"mappings":";;AAAA,SAASA,WAAW,QAAQ,OAAO;AAEnC,SAASC,mBAAmB,QAAQ,cAAc;AAClD,SAECC,OAAO,QAED,yBAAyB;AAChC,SAASC,yBAAyB,QAAQ,6DAA6D;AACvG,SACCC,gBAA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,kBAAkB,EAAE6B,cAAc;MAClCF;IACD,CAAC,CAAC;IAEF,IAAI,CAACG,SAAS,CAACC,SAAS,EAAE;MACzB;IACD;IAEA,MAAMC,QAAQ,GAAGpC,OAAO,CAACoB,mBAAmB,CAAC;IAC7C,IAAI,CAACgB,QAAQ,EAAE;IAEf,MAAMC,qBAAqB,GAC1B,CAACH,SAAS,CAACI,qBAAqB,IAChC9B,uBAAuB,CAAC4B,QAAQ,EAAEd,aAAa,EAAEE,cAAc,CAAC;IAEjE,IACC,CAACa,qBAAqB,IACtB,CAACH,SAAS,CAACK,aAAa,IACxB,CAACL,SAAS,CAACM,aAAa,EACvB;MACD;IACD;IAEA,MAAMC,qBAAqB,GAAGvC,gBAAgB,CAC7CW,cAAc,EACdE,gBACD,CAAC;IACD,MAAM2B,uBAAuB,GAC5B,CAACD,qBAAqB,IACtB,CAAClC,oBAAoB,CAACkC,qBAAqB,CAACE,MAAM,EAAEP,QAAQ,CAAC;IAE9DnC,yBAAyB,CAAC;MACzBY,cAAc;MACdE,gBAAgB;MAChBqB,QAAQ;MACRjB,cAAc;MACdH,YAAY;MACZC,YAAY;MACZC,qBAAqB;MACrBS,uBAAuB;MACvBiB,gBAAgB,EAAEF,uBAAuB;MACzCG,eAAe,EAAEX,SAAS,CAACK,aAAa;MACxCO,kBAAkB,EAAEZ,SAAS,CAACM,aAAa,IAAIE,uBAAuB;MACtEK,uBAAuB,EACtBb,SAAS,CAACc,kBAAkB,IAC5BX,qBAAqB,IACrBK,uBAAuB;MACxBO,oBAAoB,EACnBf,SAAS,CAACgB,mBAAmB,IAAIb;IACnC,CAAC,CAAC;EACH,CAAC,EACD,CACCzB,OAAO,EACPC,cAAc,EACdC,wBAAwB,EACxBC,gBAAgB,EAChBC,YAAY,EACZC,YAAY,EACZC,qBAAqB,EACrBC,cAAc,EACdC,mBAAmB,EACnBE,aAAa,EACbE,cAAc,CAEhB,CAAC;AACF,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
import { useAnimatedReaction } from "react-native-reanimated";
|
|
4
4
|
import { AnimationStore } from "../../../stores/animation.store";
|
|
5
|
-
import {
|
|
5
|
+
import { getGroupActiveId } from "../../../stores/bounds/internals/groups";
|
|
6
|
+
import { hasSourceLink } from "../../../stores/bounds/internals/registry";
|
|
6
7
|
import { GestureStore } from "../../../stores/gesture.store";
|
|
7
8
|
export const useRefreshBoundary = ({
|
|
8
9
|
enabled,
|
|
@@ -25,7 +26,7 @@ export const useRefreshBoundary = ({
|
|
|
25
26
|
|
|
26
27
|
if (!enabled || !hasNextScreen) return;
|
|
27
28
|
if (nextValue === 0 || nextValue === previousValue) return;
|
|
28
|
-
const currentGroupActiveId = group ?
|
|
29
|
+
const currentGroupActiveId = group ? getGroupActiveId(group) : null;
|
|
29
30
|
if (group && currentGroupActiveId !== String(id)) {
|
|
30
31
|
return;
|
|
31
32
|
}
|
|
@@ -33,8 +34,8 @@ export const useRefreshBoundary = ({
|
|
|
33
34
|
if (shouldCancelMeasurement) {
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
-
const intent = !
|
|
37
|
+
const hasSource = hasSourceLink(sharedBoundTag, currentScreenKey);
|
|
38
|
+
const intent = !hasSource ? "capture-source" : group ? "refresh-source" : null;
|
|
38
39
|
if (!intent) {
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
@@ -47,7 +48,7 @@ export const useRefreshBoundary = ({
|
|
|
47
48
|
|
|
48
49
|
if (!enabled || hasNextScreen) return;
|
|
49
50
|
if (nextValue === 0 || nextValue === previousValue) return;
|
|
50
|
-
const currentGroupActiveId = group ?
|
|
51
|
+
const currentGroupActiveId = group ? getGroupActiveId(group) : null;
|
|
51
52
|
if (group && currentGroupActiveId !== String(id)) {
|
|
52
53
|
return;
|
|
53
54
|
}
|
package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useAnimatedReaction","AnimationStore","
|
|
1
|
+
{"version":3,"names":["useAnimatedReaction","AnimationStore","getGroupActiveId","hasSourceLink","GestureStore","useRefreshBoundary","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","measureBoundary","currentWillAnimate","getValue","currentAnimating","currentDragging","nextWillAnimate","nextAnimating","nextDragging","get","nextValue","previousValue","currentGroupActiveId","String","shouldCancelMeasurement","hasSource","intent"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"mappings":";;AAAA,SAASA,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,gBAAgB,QAAQ,yCAAyC;AAC1E,SAASC,aAAa,QAAQ,2CAA2C;AACzE,SAASC,YAAY,QAAQ,+BAA+B;AAc5D,OAAO,MAAMC,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,cAAc;EACdC,EAAE;EACFC,KAAK;EACLC,gBAAgB;EAChBC,aAAa;EACbC,aAAa;EACbC;AACyB,CAAC,KAAK;EAC/B,MAAMC,kBAAkB,GAAGb,cAAc,CAACc,QAAQ,CACjDL,gBAAgB,EAChB,aACD,CAAC;EACD,MAAMM,gBAAgB,GAAGf,cAAc,CAACc,QAAQ,CAC/CL,gBAAgB,EAChB,WACD,CAAC;EACD,MAAMO,eAAe,GAAGb,YAAY,CAACW,QAAQ,CAACL,gBAAgB,EAAE,UAAU,CAAC;EAC3E,MAAMQ,eAAe,GAAGP,aAAa,GAClCV,cAAc,CAACc,QAAQ,CAACJ,aAAa,EAAE,aAAa,CAAC,GACrD,IAAI;EACP,MAAMQ,aAAa,GAAGR,aAAa,GAChCV,cAAc,CAACc,QAAQ,CAACJ,aAAa,EAAE,WAAW,CAAC,GACnD,IAAI;EACP,MAAMS,YAAY,GAAGT,aAAa,GAC/BP,YAAY,CAACW,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AG,IAAI;IAEnE,IAAIA,KAAK,IAAIe,oBAAoB,KAAKC,MAAM,CAACjB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,MAAMkB,uBAAuB,GAC5B,CAAC,CAACV,gBAAgB,CAACK,GAAG,CAAC,CAAC,IAAI,CAAC,CAACJ,eAAe,CAACI,GAAG,CAAC,CAAC;IAEpD,IAAIK,uBAAuB,EAAE;MAC5B;IACD;IAEAb,eAAe,CAAC;MACfe,MAAM,EAAE,CAAC,sBAAsB,EAAE,qBAAqB;IACvD,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -26,14 +26,14 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
|
|
|
26
26
|
}
|
|
27
27
|
return /*#__PURE__*/_jsx(Animated.View, {
|
|
28
28
|
pointerEvents: "box-none",
|
|
29
|
-
style: [styles.container, styles.floating,
|
|
29
|
+
style: [styles.container, styles.floating, StyleSheet.absoluteFill],
|
|
30
30
|
children: /*#__PURE__*/_jsx(NavigationContext.Provider, {
|
|
31
31
|
value: scene.descriptor.navigation,
|
|
32
32
|
children: /*#__PURE__*/_jsx(NavigationRouteContext.Provider, {
|
|
33
33
|
value: scene.route,
|
|
34
34
|
children: /*#__PURE__*/_jsx(View, {
|
|
35
35
|
pointerEvents: "box-none",
|
|
36
|
-
style: styles.overlay,
|
|
36
|
+
style: [StyleSheet.absoluteFill, styles.overlay],
|
|
37
37
|
children: /*#__PURE__*/_jsx(OverlayComponent, {
|
|
38
38
|
...overlayProps
|
|
39
39
|
})
|
|
@@ -44,13 +44,11 @@ export const OverlayHost = /*#__PURE__*/memo(function OverlayHost({
|
|
|
44
44
|
});
|
|
45
45
|
const styles = StyleSheet.create({
|
|
46
46
|
overlay: {
|
|
47
|
-
...StyleSheet.absoluteFillObject,
|
|
48
47
|
zIndex: 1
|
|
49
48
|
},
|
|
50
49
|
container: {
|
|
51
50
|
flex: 1
|
|
52
51
|
},
|
|
53
|
-
absolute: StyleSheet.absoluteFillObject,
|
|
54
52
|
floating: {
|
|
55
53
|
zIndex: 1000
|
|
56
54
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NavigationContext","NavigationRouteContext","memo","useMemo","Animated","StyleSheet","View","useDerivedValue","useScreenAnimation","jsx","_jsx","OverlayHost","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screenAnimation","relativeProgress","value","stackProgress","overlayProps","progress","pointerEvents","style","styles","container","floating","
|
|
1
|
+
{"version":3,"names":["NavigationContext","NavigationRouteContext","memo","useMemo","Animated","StyleSheet","View","useDerivedValue","useScreenAnimation","jsx","_jsx","OverlayHost","scene","overlayScreenState","OverlayComponent","descriptor","options","overlay","screenAnimation","relativeProgress","value","stackProgress","overlayProps","progress","pointerEvents","style","styles","container","floating","absoluteFill","children","Provider","navigation","route","create","zIndex","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/overlay/variations/overlay-host.tsx"],"mappings":";;AAAA,SACCA,iBAAiB,EACjBC,sBAAsB,QAChB,0BAA0B;AACjC,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACrC,SAASC,QAAQ,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACzD,SAASC,eAAe,QAAQ,yBAAyB;AAEzD,SAASC,kBAAkB,QAAQ,qCAAqC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAYzE,OAAO,MAAMC,WAAW,gBAAGT,IAAI,CAAC,SAASS,WAAWA,CAAC;EACpDC,KAAK;EACLC;AACiB,CAAC,EAAE;EACpB,MAAMC,gBAAgB,GAAGF,KAAK,CAACG,UAAU,CAACC,OAAO,CAACC,OAAO;EAEzD,MAAMC,eAAe,GAAGV,kBAAkB,CAAC,CAAC;EAC5C,MAAMW,gBAAgB,GAAGZ,eAAe,CAAC,MAAM;IAC9C,SAAS;;IACT,OAAOW,eAAe,CAACE,KAAK,CAACC,aAAa;EAC3C,CAAC,CAAC;EAEF,MAAMC,YAAwD,GAAGnB,OAAO,CACvE,OAAO;IACN,GAAGU,kBAAkB;IACrBU,QAAQ,EAAEJ;EACX,CAAC,CAAC,EACF,CAACA,gBAAgB,EAAEN,kBAAkB,CACtC,CAAC;EAED,IAAI,CAACC,gBAAgB,EAAE;IACtB,OAAO,IAAI;EACZ;EAEA,oBACCJ,IAAA,CAACN,QAAQ,CAACE,IAAI;IACbkB,aAAa,EAAC,UAAU;IACxBC,KAAK,EAAE,CAACC,MAAM,CAACC,SAAS,EAAED,MAAM,CAACE,QAAQ,EAAEvB,UAAU,CAACwB,YAAY,CAAE;IAAAC,QAAA,eAEpEpB,IAAA,CAACV,iBAAiB,CAAC+B,QAAQ;MAACX,KAAK,EAAER,KAAK,CAACG,UAAU,CAACiB,UAAkB;MAAAF,QAAA,eACrEpB,IAAA,CAACT,sBAAsB,CAAC8B,QAAQ;QAACX,KAAK,EAAER,KAAK,CAACqB,KAAM;QAAAH,QAAA,eACnDpB,IAAA,CAACJ,IAAI;UACJkB,aAAa,EAAC,UAAU;UACxBC,KAAK,EAAE,CAACpB,UAAU,CAACwB,YAAY,EAAEH,MAAM,CAACT,OAAO,CAAE;UAAAa,QAAA,eAEjDpB,IAAA,CAACI,gBAAgB;YAAA,GAAKQ;UAAY,CAAG;QAAC,CACjC;MAAC,CACyB;IAAC,CACP;EAAC,CACf,CAAC;AAElB,CAAC,CAAC;AAEF,MAAMI,MAAM,GAAGrB,UAAU,CAAC6B,MAAM,CAAC;EAChCjB,OAAO,EAAE;IACRkB,MAAM,EAAE;EACT,CAAC;EACDR,SAAS,EAAE;IACVS,IAAI,EAAE;EACP,CAAC;EACDR,QAAQ,EAAE;IACTO,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -88,14 +88,14 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
|
88
88
|
return stylesMap.get().backdrop?.props ?? NO_PROPS;
|
|
89
89
|
});
|
|
90
90
|
return /*#__PURE__*/_jsxs(Pressable, {
|
|
91
|
-
style: StyleSheet.
|
|
91
|
+
style: StyleSheet.absoluteFill,
|
|
92
92
|
pointerEvents: isBackdropActive ? "auto" : "none",
|
|
93
93
|
onPress: isBackdropActive ? handleBackdropPress : undefined,
|
|
94
94
|
children: [AnimatedBackdropComponent && /*#__PURE__*/_jsx(AnimatedBackdropComponent, {
|
|
95
|
-
style: [StyleSheet.
|
|
95
|
+
style: [StyleSheet.absoluteFill],
|
|
96
96
|
animatedProps: animatedBackdropProps
|
|
97
97
|
}), /*#__PURE__*/_jsx(Animated.View, {
|
|
98
|
-
style: [StyleSheet.
|
|
98
|
+
style: [StyleSheet.absoluteFill, animatedBackdropStyle]
|
|
99
99
|
})]
|
|
100
100
|
});
|
|
101
101
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","useAnimatedProps","useAnimatedStyle","DefaultSnapSpec","NO_PROPS","NO_STYLES","useNavigationHelpers","useDescriptors","useScreenStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","jsx","_jsx","jsxs","_jsxs","BackdropLayer","backdropBehavior","isBackdropActive","stylesMap","current","dismissScreen","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getBag","targetProgress","resolvedAutoSnapPoint","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","transitionSpec","resolvedSnaps","map","point","value","filter","target","shouldDismiss","progress","dismissing","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","get","backdrop","style","animatedBackdropProps","props","
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","useAnimatedProps","useAnimatedStyle","DefaultSnapSpec","NO_PROPS","NO_STYLES","useNavigationHelpers","useDescriptors","useScreenStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","jsx","_jsx","jsxs","_jsxs","BackdropLayer","backdropBehavior","isBackdropActive","stylesMap","current","dismissScreen","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getBag","targetProgress","resolvedAutoSnapPoint","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","transitionSpec","resolvedSnaps","map","point","value","filter","target","shouldDismiss","progress","dismissing","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","get","backdrop","style","animatedBackdropProps","props","absoluteFill","pointerEvents","onPress","children","animatedProps","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAASA,IAAI,EAAEC,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAClD,SAASC,SAAS,EAAEC,UAAU,QAAQ,cAAc;AACpD,OAAOC,QAAQ,IACdC,OAAO,EACPC,gBAAgB,EAChBC,gBAAgB,QACV,yBAAyB;AAChC,SAASC,eAAe,QAAQ,wBAAwB;AACxD,SAASC,QAAQ,EAAEC,SAAS,QAAQ,oBAAoB;AACxD,SAASC,oBAAoB,QAAQ,kDAAkD;AACvF,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,eAAe,QAAQ,kCAAkC;AAClE,SAASC,cAAc,QAAQ,iCAAiC;AAChE,SAASC,YAAY,QAAQ,+BAA+B;AAC5D,SAASC,WAAW,QAAQ,8BAA8B;AAE1D,SAASC,iBAAiB,QAAQ,8CAA8C;AAChF,SAASC,kBAAkB,QAAQ,6CAA6C;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEjF,OAAO,MAAMC,aAAa,gBAAGxB,IAAI,CAAC,SAASwB,aAAaA,CAAC;EACxDC,gBAAgB;EAChBC;AAID,CAAC,EAAE;EACF,MAAM;IAAEC;EAAU,CAAC,GAAGb,eAAe,CAAC,CAAC;EACvC,MAAM;IAAEc;EAAQ,CAAC,GAAGf,cAAc,CAAC,CAAC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AO;IAClDgD,OAAO,EAAEhD,gBAAgB,GAAGgB,mBAAmB,GAAGuB,SAAU;IAAAU,QAAA,GAK3DnC,yBAAyB,iBACzBnB,IAAA,CAACmB,yBAAyB;MACzB6B,KAAK,EAAE,CAACjE,UAAU,CAACoE,YAAY,CAAE;MACjCI,aAAa,EAAEN;IAAsB,CACrC,CACD,eACDjD,IAAA,CAAChB,QAAQ,CAACwE,IAAI;MAACR,KAAK,EAAE,CAACjE,UAAU,CAACoE,YAAY,EAAEN,qBAAqB;IAAE,CAAE,CAAC;EAAA,CAChE,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
|
package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { runOnUI } from "react-native-reanimated";
|
|
4
4
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
5
|
-
import {
|
|
5
|
+
import { clear, clearByAncestor, clearByBranch } from "../../../../stores/bounds/internals/clear";
|
|
6
6
|
import { GestureStore } from "../../../../stores/gesture.store";
|
|
7
7
|
import { SystemStore } from "../../../../stores/system.store";
|
|
8
8
|
export function resetStoresForScreen(routeKey, isBranchScreen, branchNavigatorKey) {
|
|
@@ -13,12 +13,12 @@ export function resetStoresForScreen(routeKey, isBranchScreen, branchNavigatorKe
|
|
|
13
13
|
"worklet";
|
|
14
14
|
|
|
15
15
|
if (!isBranchScreen) return;
|
|
16
|
-
|
|
16
|
+
clear(routeKey);
|
|
17
17
|
if (branchNavigatorKey) {
|
|
18
|
-
|
|
18
|
+
clearByBranch(branchNavigatorKey);
|
|
19
19
|
return;
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
clearByAncestor(routeKey);
|
|
22
22
|
})();
|
|
23
23
|
}
|
|
24
24
|
//# sourceMappingURL=reset-stores-for-screen.js.map
|
package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["runOnUI","AnimationStore","
|
|
1
|
+
{"version":3,"names":["runOnUI","AnimationStore","clear","clearByAncestor","clearByBranch","GestureStore","SystemStore","resetStoresForScreen","routeKey","isBranchScreen","branchNavigatorKey","clearBag"],"sourceRoot":"../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,yBAAyB;AACjD,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,KAAK,EACLC,eAAe,EACfC,aAAa,QACP,2CAA2C;AAClD,SAASC,YAAY,QAAQ,kCAAkC;AAC/D,SAASC,WAAW,QAAQ,iCAAiC;AAE7D,OAAO,SAASC,oBAAoBA,CACnCC,QAAgB,EAChBC,cAAuB,EACvBC,kBAA2B,EAC1B;EACDT,cAAc,CAACU,QAAQ,CAACH,QAAQ,CAAC;EACjCH,YAAY,CAACM,QAAQ,CAACH,QAAQ,CAAC;EAC/BF,WAAW,CAACK,QAAQ,CAACH,QAAQ,CAAC;EAE9BR,OAAO,CAAC,MAAM;IACb,SAAS;;IACT,IAAI,CAACS,cAAc,EAAE;IAErBP,KAAK,CAACM,QAAQ,CAAC;IAEf,IAAIE,kBAAkB,EAAE;MACvBN,aAAa,CAACM,kBAAkB,CAAC;MACjC;IACD;IAEAP,eAAe,CAACK,QAAQ,CAAC;EAC1B,CAAC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
|
|
@@ -6,8 +6,8 @@ import { measure, runOnJS, runOnUI, useAnimatedReaction, useSharedValue } from "
|
|
|
6
6
|
import useStableCallback from "../hooks/use-stable-callback";
|
|
7
7
|
import useStableCallbackValue from "../hooks/use-stable-callback-value";
|
|
8
8
|
import { AnimationStore } from "../stores/animation.store";
|
|
9
|
-
import { BoundStore } from "../stores/bounds";
|
|
10
9
|
import { applyMeasuredBoundsWrites } from "../stores/bounds/helpers/apply-measured-bounds-writes";
|
|
10
|
+
import { getMeasuredEntry, getPendingLink, hasDestinationLink, hasSourceLink } from "../stores/bounds/internals/registry";
|
|
11
11
|
import { prepareStyleForBounds } from "../utils/bounds/helpers/styles/styles";
|
|
12
12
|
import createProvider from "../utils/create-provider";
|
|
13
13
|
import { useDescriptorDerivations, useDescriptors } from "./screen/descriptors";
|
|
@@ -194,7 +194,7 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
196
|
if (shouldSetSource && isAnimating.get()) {
|
|
197
|
-
const existing =
|
|
197
|
+
const existing = getMeasuredEntry(sharedBoundTag, currentScreenKey);
|
|
198
198
|
if (existing) {
|
|
199
199
|
applyMeasuredBoundsWrites({
|
|
200
200
|
sharedBoundTag,
|
|
@@ -210,17 +210,17 @@ const registerBoundsBundle = createProvider("RegisterBounds", {
|
|
|
210
210
|
if (onPress) runOnJS(onPress)();
|
|
211
211
|
return;
|
|
212
212
|
}
|
|
213
|
-
const
|
|
214
|
-
const
|
|
215
|
-
const
|
|
213
|
+
const hasPending = getPendingLink(sharedBoundTag) !== null;
|
|
214
|
+
const hasSource = hasSourceLink(sharedBoundTag, currentScreenKey);
|
|
215
|
+
const hasDestination = hasDestinationLink(sharedBoundTag, currentScreenKey);
|
|
216
216
|
const wantsSetSource = !!shouldSetSource;
|
|
217
217
|
const wantsSetDestination = !!shouldSetDestination;
|
|
218
218
|
const wantsUpdateSource = !!shouldUpdateSource;
|
|
219
219
|
const wantsSnapshotOnly = !wantsSetSource && !wantsSetDestination && !wantsUpdateSource;
|
|
220
220
|
const canSetSource = wantsSetSource;
|
|
221
|
-
const canSetDestination = wantsSetDestination &&
|
|
222
|
-
const canUpdateSource = wantsUpdateSource &&
|
|
223
|
-
const canSnapshotOnly = wantsSnapshotOnly && (
|
|
221
|
+
const canSetDestination = wantsSetDestination && hasPending;
|
|
222
|
+
const canUpdateSource = wantsUpdateSource && hasSource;
|
|
223
|
+
const canSnapshotOnly = wantsSnapshotOnly && (hasPending || hasSource || hasDestination);
|
|
224
224
|
if (!canSetSource && !canSetDestination && !canUpdateSource && !canSnapshotOnly) {
|
|
225
225
|
if (onPress) runOnJS(onPress)();
|
|
226
226
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","useStableCallback","useStableCallbackValue","AnimationStore","
|
|
1
|
+
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","useStableCallback","useStableCallbackValue","AnimationStore","applyMeasuredBoundsWrites","getMeasuredEntry","getPendingLink","hasDestinationLink","hasSourceLink","prepareStyleForBounds","createProvider","useDescriptorDerivations","useDescriptors","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","getRouteParamId","route","params","rawId","id","matchesSelectionTag","tag","selectedId","endsWith","useInitialLayoutHandler","sharedBoundTag","currentScreenKey","ancestorKeys","maybeMeasureAndStore","isAnimating","getValue","ancestorAnimations","map","key","hasMeasuredOnLayout","get","isAnyAnimating","i","length","shouldSetSource","shouldSetDestination","set","useBlurMeasurement","current","enabled","selectedRouteId","hasCapturedSource","ancestorClosing","maybeMeasureOnBlur","closing","markSourceCaptured","useParentSyncReaction","parentContext","updateSignal","value","undefined","CloseRemeasureReactionEffect","remeasureOnFocus","nextClosing","prevClosing","shouldUpdateSource","useRegisterBoundsContext","registerBoundsBundle","guarded","style","onPress","animatedRef","children","next","navigatorKey","ancestorNavigatorKeys","selectedNextRouteId","ownSignal","preparedStyles","emitUpdate","isRoot","existing","measured","bounds","hasPending","hasSource","hasDestination","wantsSetSource","wantsSetDestination","wantsUpdateSource","wantsSnapshotOnly","canSetSource","canSetDestination","canUpdateSource","canSnapshotOnly","shouldWriteEntry","handleInitialLayout","nextScreenKey","captureActiveOnPress","RegisterBoundsProvider"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;AAAA,SAASA,cAA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AQ,CAAC;QAAEwB,mBAAmB;QAAEE;MAAqB,CAAC,CAAC;IAAA,CACvD;EAEJ,CAAC;AACF,CACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGhC,oBAAoB,CAACgC,sBAAsB;AAC1EjC,wBAAwB,GAAGC,oBAAoB,CAACD,wBAAwB;AAExE,SAASiC,sBAAsB","ignoreList":[]}
|
|
@@ -11,14 +11,13 @@ export const MaybeFloatingContainer = /*#__PURE__*/memo(function MaybeFloatingCo
|
|
|
11
11
|
return children;
|
|
12
12
|
}
|
|
13
13
|
return /*#__PURE__*/_jsx(View, {
|
|
14
|
-
style: styles.float,
|
|
14
|
+
style: [StyleSheet.absoluteFill, styles.float],
|
|
15
15
|
pointerEvents: "box-none",
|
|
16
16
|
children: children
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
const styles = StyleSheet.create({
|
|
20
20
|
float: {
|
|
21
|
-
...StyleSheet.absoluteFill,
|
|
22
21
|
zIndex: 999
|
|
23
22
|
}
|
|
24
23
|
});
|
package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","StyleSheet","View","jsx","_jsx","MaybeFloatingContainer","children","isFloatingOverlay","style","styles","float","pointerEvents","create","
|
|
1
|
+
{"version":3,"names":["memo","StyleSheet","View","jsx","_jsx","MaybeFloatingContainer","children","isFloatingOverlay","style","absoluteFill","styles","float","pointerEvents","create","zIndex"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/components/maybe-floating-container.tsx"],"mappings":";;AAAA,SAASA,IAAI,QAAQ,OAAO;AAC5B,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOhD,OAAO,MAAMC,sBAAsB,gBAAGL,IAAI,CAAC,SAASK,sBAAsBA,CAAC;EAC1EC,QAAQ;EACRC;AAC4B,CAAC,EAAE;EAC/B,IAAI,CAACA,iBAAiB,EAAE;IACvB,OAAOD,QAAQ;EAChB;EAEA,oBACCF,IAAA,CAACF,IAAI;IACJM,KAAK,EAAE,CAACP,UAAU,CAACQ,YAAY,EAAEC,MAAM,CAACC,KAAK,CAAE;IAC/CC,aAAa,EAAC,UAAU;IAAAN,QAAA,EAEvBA;EAAQ,CACJ,CAAC;AAET,CAAC,CAAC;AAEF,MAAMI,MAAM,GAAGT,UAAU,CAACY,MAAM,CAAC;EAChCF,KAAK,EAAE;IACNG,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|