react-native-screen-transitions 4.0.0-alpha.3 → 4.0.0-alpha.4
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/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +14 -10
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +3 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js +3 -5
- package/lib/commonjs/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js +5 -4
- package/lib/commonjs/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/destination-signals.js +1 -3
- package/lib/commonjs/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/commonjs/components/boundary/utils/refresh-signals.js +2 -4
- package/lib/commonjs/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js +3 -7
- package/lib/commonjs/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -3
- package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/commonjs/providers/screen/descriptors/helpers/get-ancestor-keys.js +3 -20
- package/lib/commonjs/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/entries.js +17 -0
- package/lib/commonjs/stores/bounds/internals/entries.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/links.js +25 -0
- package/lib/commonjs/stores/bounds/internals/links.js.map +1 -1
- package/lib/commonjs/stores/bounds/internals/resolver.js +2 -12
- package/lib/commonjs/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/utils/bounds/helpers/create-link-accessor.js +2 -2
- package/lib/commonjs/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js +16 -12
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-source-measurement.js +3 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map +1 -1
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js +3 -5
- package/lib/module/components/boundary/hooks/lifecycles/use-refresh-boundary.js.map +1 -1
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js +5 -4
- package/lib/module/components/boundary/hooks/use-boundary-measurement.js.map +1 -1
- package/lib/module/components/boundary/utils/destination-signals.js +1 -3
- package/lib/module/components/boundary/utils/destination-signals.js.map +1 -1
- package/lib/module/components/boundary/utils/refresh-signals.js +2 -4
- package/lib/module/components/boundary/utils/refresh-signals.js.map +1 -1
- package/lib/module/providers/screen/descriptors/descriptors.provider.js +4 -8
- package/lib/module/providers/screen/descriptors/descriptors.provider.js.map +1 -1
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js +1 -3
- package/lib/module/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map +1 -1
- package/lib/module/providers/screen/descriptors/helpers/get-ancestor-keys.js +3 -19
- package/lib/module/providers/screen/descriptors/helpers/get-ancestor-keys.js.map +1 -1
- package/lib/module/stores/bounds/internals/entries.js +17 -1
- package/lib/module/stores/bounds/internals/entries.js.map +1 -1
- package/lib/module/stores/bounds/internals/links.js +25 -2
- package/lib/module/stores/bounds/internals/links.js.map +1 -1
- package/lib/module/stores/bounds/internals/resolver.js +3 -13
- package/lib/module/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/module/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-destination-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/lifecycles/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/components/boundary/hooks/use-boundary-measurement.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/destination-signals.d.ts +1 -2
- package/lib/typescript/components/boundary/utils/destination-signals.d.ts.map +1 -1
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts +0 -2
- package/lib/typescript/components/boundary/utils/refresh-signals.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/descriptors.provider.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts +1 -3
- package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map +1 -1
- package/lib/typescript/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts +0 -8
- package/lib/typescript/providers/screen/descriptors/helpers/get-ancestor-keys.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/entries.d.ts +2 -1
- package/lib/typescript/stores/bounds/internals/entries.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/links.d.ts +3 -1
- package/lib/typescript/stores/bounds/internals/links.d.ts.map +1 -1
- package/lib/typescript/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts +43 -21
- package/src/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts +6 -1
- package/src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts +8 -9
- package/src/components/boundary/hooks/use-boundary-measurement.ts +5 -4
- package/src/components/boundary/utils/destination-signals.ts +2 -6
- package/src/components/boundary/utils/refresh-signals.ts +2 -10
- package/src/providers/screen/descriptors/descriptors.provider.tsx +4 -11
- package/src/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts +0 -4
- package/src/providers/screen/descriptors/helpers/get-ancestor-keys.ts +3 -30
- package/src/stores/bounds/internals/entries.ts +27 -1
- package/src/stores/bounds/internals/links.ts +36 -0
- package/src/stores/bounds/internals/resolver.ts +7 -21
- package/src/utils/bounds/helpers/create-link-accessor.ts +9 -3
package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js
CHANGED
|
@@ -39,9 +39,9 @@ const useInitialDestinationMeasurement = ({
|
|
|
39
39
|
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
40
40
|
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
41
41
|
const destinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.destinationPairKey);
|
|
42
|
-
const ancestorDestinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.ancestorDestinationPairKey);
|
|
43
42
|
const destinationEnabled = enabled && !nextScreenKey;
|
|
44
|
-
const
|
|
43
|
+
const canReceiveDestination = destinationEnabled && !!destinationPairKey;
|
|
44
|
+
const preferredSourceScreenKey = destinationPairKey ? (0, _linkPairs.getSourceScreenKeyFromPairKey)(destinationPairKey) : undefined;
|
|
45
45
|
const progress = _animation.AnimationStore.getValue(currentScreenKey, "transitionProgress");
|
|
46
46
|
const {
|
|
47
47
|
actions: {
|
|
@@ -66,6 +66,10 @@ const useInitialDestinationMeasurement = ({
|
|
|
66
66
|
const claimLifecycleStartBlock = (0, _react.useCallback)(() => {
|
|
67
67
|
"worklet";
|
|
68
68
|
|
|
69
|
+
if (!canReceiveDestination || !(0, _entries.getMatchingSourceScreenKey)(tag, currentScreenKey, preferredSourceScreenKey)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
69
73
|
// The progress check and block claim must share one UI-thread operation.
|
|
70
74
|
// Otherwise a JS-thread layout effect can observe zero, enqueue the block,
|
|
71
75
|
// and let the opening animation start before that block reaches the UI thread.
|
|
@@ -74,9 +78,9 @@ const useInitialDestinationMeasurement = ({
|
|
|
74
78
|
}
|
|
75
79
|
blockLifecycleStart();
|
|
76
80
|
isBlockingLifecycleStart.set(1);
|
|
77
|
-
}, [blockLifecycleStart, isBlockingLifecycleStart, progress]);
|
|
81
|
+
}, [blockLifecycleStart, canReceiveDestination, currentScreenKey, isBlockingLifecycleStart, progress, preferredSourceScreenKey, tag]);
|
|
78
82
|
(0, _react.useLayoutEffect)(() => {
|
|
79
|
-
if (!
|
|
83
|
+
if (!canReceiveDestination) {
|
|
80
84
|
return;
|
|
81
85
|
}
|
|
82
86
|
(0, _reactNativeWorklets.scheduleOnUI)(claimLifecycleStartBlock);
|
|
@@ -90,26 +94,26 @@ const useInitialDestinationMeasurement = ({
|
|
|
90
94
|
// runtime so it serializes with the handshake's guarded release.
|
|
91
95
|
(0, _reactNativeWorklets.scheduleOnUI)(releaseLifecycleStartBlock);
|
|
92
96
|
};
|
|
93
|
-
}, [claimLifecycleStartBlock,
|
|
97
|
+
}, [claimLifecycleStartBlock, escapeClipping, canReceiveDestination, releaseLifecycleStartBlock]);
|
|
94
98
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
95
99
|
"worklet";
|
|
96
100
|
|
|
97
|
-
if (!
|
|
101
|
+
if (!canReceiveDestination || isBlockingLifecycleStart.get() <= 0) {
|
|
98
102
|
return null;
|
|
99
103
|
}
|
|
100
104
|
if (progress.get() > 0) {
|
|
101
105
|
return null;
|
|
102
106
|
}
|
|
103
107
|
const retryTick = retryToken.get();
|
|
104
|
-
const sourceScreenKey = (0,
|
|
108
|
+
const sourceScreenKey = (0, _entries.getMatchingSourceScreenKey)(tag, currentScreenKey, preferredSourceScreenKey);
|
|
109
|
+
const pairKey = sourceScreenKey ? (0, _linkPairs.createScreenPairKey)(sourceScreenKey, currentScreenKey) : undefined;
|
|
105
110
|
const signal = (0, _destinationSignals.getInitialDestinationMeasurementSignal)({
|
|
106
111
|
enabled: destinationEnabled,
|
|
107
|
-
|
|
108
|
-
ancestorDestinationPairKey,
|
|
112
|
+
pairKey,
|
|
109
113
|
linkId: linkKey,
|
|
110
114
|
group,
|
|
111
115
|
destinationPresent: (0, _entries.getEntry)(tag, currentScreenKey) !== null,
|
|
112
|
-
sourcePresent:
|
|
116
|
+
sourcePresent: sourceScreenKey !== null,
|
|
113
117
|
linkState: _state.pairs.get()
|
|
114
118
|
});
|
|
115
119
|
return [signal?.pairKey ?? null, signal?.action ?? null, retryTick];
|
package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-destination-measurement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_reactNativeWorklets","_descriptors","_animation","_linkPairs","_entries","_links","_state","_system","_logger","_destinationSignals","HANDSHAKE_RETRY_DELAY_MS","MAX_HANDSHAKE_RETRIES","useInitialDestinationMeasurement","boundTag","enabled","escapeClipping","measureBoundary","tag","linkKey","group","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","destinationPairKey","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_reactNativeWorklets","_descriptors","_animation","_linkPairs","_entries","_links","_state","_system","_logger","_destinationSignals","HANDSHAKE_RETRY_DELAY_MS","MAX_HANDSHAKE_RETRIES","useInitialDestinationMeasurement","boundTag","enabled","escapeClipping","measureBoundary","tag","linkKey","group","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","destinationPairKey","destinationEnabled","canReceiveDestination","preferredSourceScreenKey","getSourceScreenKeyFromPairKey","undefined","progress","AnimationStore","getValue","actions","blockLifecycleStart","unblockLifecycleStart","SystemStore","getBag","isBlockingLifecycleStart","useSharedValue","retryToken","handshakeRetries","hasGivenUp","releaseLifecycleStartBlock","useCallback","cancelAnimation","get","set","claimLifecycleStartBlock","getMatchingSourceScreenKey","useLayoutEffect","scheduleOnUI","useAnimatedReaction","retryTick","sourceScreenKey","pairKey","createScreenPairKey","signal","getInitialDestinationMeasurementSignal","linkId","destinationPresent","getEntry","sourcePresent","linkState","pairs","action","next","previous","measurePairKey","previousMeasurePairKey","previousAction","previousRetryTick","shouldHandleSignal","type","link","getLink","linkComplete","source","destination","logger","warn","withDelay","withTiming","duration","exports"],"sourceRoot":"../../../../../../src","sources":["components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAOA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAIA,IAAAM,QAAA,GAAAN,OAAA;AAIA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AAEA,IAAAW,mBAAA,GAAAX,OAAA;AAEA;AACA;AACA,MAAMY,wBAAwB,GAAG,EAAE;AACnC;AACA;AACA;AACA;AACA;AACA,MAAMC,qBAAqB,GAAG,EAAE;AASzB,MAAMC,gCAAgC,GAAGA,CAAC;EAChDC,QAAQ;EACRC,OAAO;EACPC,cAAc;EACdC;AACuC,CAAC,KAAK;EAC7C,MAAM;IAAEC,GAAG;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGN,QAAQ;EACxC,MAAMO,gBAAgB,GAAG,IAAAC,gCAAmB,EAC1CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,gBACtB,CAAC;EACD,MAAMI,aAAa,GAAG,IAAAH,gCAAmB,EAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACC,aAAa,CAAC;EAC7E,MAAMC,kBAAkB,GAAG,IAAAJ,gCAAmB,EAC5CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACE,k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D,OAAO,CAAC;IAC7C,MAAM2D,YAAY,GAAG,CAAC,CAACF,IAAI,EAAEG,MAAM,IAAI,CAAC,CAACH,IAAI,CAACI,WAAW;IAEzD,IAAIF,YAAY,IAAIX,MAAM,KAAK,UAAU,EAAE;MAC1C,IAAApB,sCAAe,EAACL,UAAU,CAAC;MAC3BC,gBAAgB,CAACM,GAAG,CAAC,CAAC,CAAC;MACvB,IAAIjC,cAAc,EAAE;QACnB;QACA;QACA;QACA;MACD;MACA6B,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEA,IAAIF,gBAAgB,CAACK,GAAG,CAAC,CAAC,IAAIpC,qBAAqB,EAAE;MACpDgC,UAAU,CAACK,GAAG,CAAC,CAAC,CAAC;MACjBJ,0BAA0B,CAAC,CAAC;MAC5BoC,cAAM,CAACC,IAAI,CACV,aAAa/D,OAAO,2DAA2DP,qBAAqB,oGACrG,CAAC;MACD;IACD;;IAEA;IACA;IACA+B,gBAAgB,CAACM,GAAG,CAACN,gBAAgB,CAACK,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAChD,IAAAD,sCAAe,EAACL,UAAU,CAAC;IAC3BA,UAAU,CAACO,GAAG,CACb,IAAAkC,gCAAS,EACRxE,wBAAwB,EACxB,IAAAyE,iCAAU,EAAC1C,UAAU,CAACM,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE;MAAEqC,QAAQ,EAAE;IAAE,CAAC,CACjD,CACD,CAAC;EACF,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAzE,gCAAA,GAAAA,gCAAA","ignoreList":[]}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useInitialSourceMeasurement = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _descriptors = require("../../../../providers/screen/descriptors");
|
|
9
|
+
var _links = require("../../../../stores/bounds/internals/links");
|
|
9
10
|
var _state = require("../../../../stores/bounds/internals/state");
|
|
10
11
|
var _sourceSignals = require("../../utils/source-signals");
|
|
11
12
|
const useInitialSourceMeasurement = params => {
|
|
@@ -14,11 +15,12 @@ const useInitialSourceMeasurement = params => {
|
|
|
14
15
|
measureBoundary,
|
|
15
16
|
boundTag
|
|
16
17
|
} = params;
|
|
17
|
-
const
|
|
18
|
+
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
18
19
|
const lastSourceCaptureSignal = (0, _reactNativeReanimated.useSharedValue)(null);
|
|
19
20
|
(0, _reactNativeReanimated.useAnimatedReaction)(() => {
|
|
20
21
|
"worklet";
|
|
21
22
|
|
|
23
|
+
const sourcePairKey = (0, _links.getPairKeyForSource)(boundTag.tag, currentScreenKey) ?? undefined;
|
|
22
24
|
return (0, _sourceSignals.getInitialSourceCaptureSignal)({
|
|
23
25
|
enabled,
|
|
24
26
|
sourcePairKey,
|
package/lib/commonjs/components/boundary/hooks/lifecycles/use-initial-source-measurement.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_state","_sourceSignals","useInitialSourceMeasurement","params","enabled","measureBoundary","boundTag","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_links","_state","_sourceSignals","useInitialSourceMeasurement","params","enabled","measureBoundary","boundTag","currentScreenKey","useDescriptorsStore","s","derivations","lastSourceCaptureSignal","useSharedValue","useAnimatedReaction","sourcePairKey","getPairKeyForSource","tag","undefined","getInitialSourceCaptureSignal","linkId","linkKey","group","linkState","pairs","get","captureSignal","set","signal","type","pairKey","exports"],"sourceRoot":"../../../../../../src","sources":["components/boundary/hooks/lifecycles/use-initial-source-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAGA,IAAAI,cAAA,GAAAJ,OAAA;AAEO,MAAMK,2BAA2B,GAAIC,MAI3C,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,eAAe;IAAEC;EAAS,CAAC,GAAGH,MAAM;EACrD,MAAMI,gBAAgB,GAAG,IAAAC,gCAAmB,EAC1CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,gBACtB,CAAC;EACD,MAAMI,uBAAuB,GAAG,IAAAC,qCAAc,EAAgB,IAAI,CAAC;EAEnE,IAAAC,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,MAAMC,aAAa,GAClB,IAAAC,0BAAmB,EAACT,QAAQ,CAACU,GAAG,EAAET,gBAAgB,CAAC,IAAIU,SAAS;IACjE,OAAO,IAAAC,4CAA6B,EAAC;MACpCd,OAAO;MACPU,aAAa;MACbK,MAAM,EAAEb,QAAQ,CAACc,OAAO;MACxBC,KAAK,EAAEf,QAAQ,CAACe,KAAK;MACrBC,SAAS,EAAER,aAAa,GAAGS,YAAK,CAACC,GAAG,CAAC,CAAC,GAAGP;IAC1C,CAAC,CAAC;EACH,CAAC,EACAQ,aAAa,IAAK;IAClB,SAAS;;IACT,IAAI,CAACrB,OAAO,IAAI,CAACqB,aAAa,EAAE;MAC/Bd,uBAAuB,CAACe,GAAG,CAAC,IAAI,CAAC;MACjC;IACD;IAEA,IAAIf,uBAAuB,CAACa,GAAG,CAAC,CAAC,KAAKC,aAAa,CAACE,MAAM,EAAE;MAC3D;IACD;IAEAhB,uBAAuB,CAACe,GAAG,CAACD,aAAa,CAACE,MAAM,CAAC;IACjDtB,eAAe,CAAC;MACfuB,IAAI,EAAE,QAAQ;MACdC,OAAO,EAAEJ,aAAa,CAACI;IACxB,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAA5B,2BAAA,GAAAA,2BAAA","ignoreList":[]}
|
|
@@ -7,6 +7,7 @@ exports.useRefreshBoundary = void 0;
|
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _descriptors = require("../../../../providers/screen/descriptors");
|
|
9
9
|
var _animation = require("../../../../stores/animation.store");
|
|
10
|
+
var _links = require("../../../../stores/bounds/internals/links");
|
|
10
11
|
var _state = require("../../../../stores/bounds/internals/state");
|
|
11
12
|
var _refreshSignals = require("../../utils/refresh-signals");
|
|
12
13
|
const useRefreshBoundary = ({
|
|
@@ -20,9 +21,6 @@ const useRefreshBoundary = ({
|
|
|
20
21
|
} = boundTag;
|
|
21
22
|
const currentScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.currentScreenKey);
|
|
22
23
|
const nextScreenKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.nextScreenKey);
|
|
23
|
-
const sourcePairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.sourcePairKey);
|
|
24
|
-
const destinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.destinationPairKey);
|
|
25
|
-
const ancestorDestinationPairKey = (0, _descriptors.useDescriptorsStore)(s => s.derivations.ancestorDestinationPairKey);
|
|
26
24
|
// Source-side boundaries refresh from the next screen's lifecycle pulse.
|
|
27
25
|
// Destination-side boundaries have no next screen, so they refresh from self.
|
|
28
26
|
const refreshScreenKey = nextScreenKey ?? currentScreenKey;
|
|
@@ -35,13 +33,13 @@ const useRefreshBoundary = ({
|
|
|
35
33
|
if (!shouldRefresh) {
|
|
36
34
|
return null;
|
|
37
35
|
}
|
|
36
|
+
const sourcePairKey = (0, _links.getPairKeyForSource)(boundTag.tag, currentScreenKey) ?? undefined;
|
|
37
|
+
const destinationPairKey = (0, _links.getPairKeyForDestination)(boundTag.tag, currentScreenKey) ?? undefined;
|
|
38
38
|
return (0, _refreshSignals.getRefreshBoundarySignal)({
|
|
39
39
|
enabled,
|
|
40
40
|
currentScreenKey,
|
|
41
41
|
sourcePairKey,
|
|
42
42
|
destinationPairKey,
|
|
43
|
-
ancestorDestinationPairKey,
|
|
44
|
-
nextScreenKey,
|
|
45
43
|
linkId: linkKey,
|
|
46
44
|
group,
|
|
47
45
|
shouldRefresh,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_animation","_state","_refreshSignals","useRefreshBoundary","enabled","boundTag","measureBoundary","linkKey","group","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_descriptors","_animation","_links","_state","_refreshSignals","useRefreshBoundary","enabled","boundTag","measureBoundary","linkKey","group","currentScreenKey","useDescriptorsStore","s","derivations","nextScreenKey","refreshScreenKey","refreshWillAnimate","AnimationStore","getValue","refreshClosing","useAnimatedReaction","shouldRefresh","get","sourcePairKey","getPairKeyForSource","tag","undefined","destinationPairKey","getPairKeyForDestination","getRefreshBoundarySignal","linkId","closing","linkState","pairs","refreshSignal","prevRefreshSignal","signal","type","pairKey","exports"],"sourceRoot":"../../../../../../src","sources":["components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAIA,IAAAI,MAAA,GAAAJ,OAAA;AAGA,IAAAK,eAAA,GAAAL,OAAA;AAQO,MAAMM,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,QAAQ;EACRC;AACyB,CAAC,KAAK;EAC/B,MAAM;IAAEC,OAAO;IAAEC;EAAM,CAAC,GAAGH,QAAQ;EACnC,MAAMI,gBAAgB,GAAG,IAAAC,gCAAmB,EAC1CC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACH,gBACtB,CAAC;EACD,MAAMI,aAAa,GAAG,IAAAH,gCAAmB,EAAEC,CAAC,IAAKA,CAAC,CAACC,WAAW,CAACC,aAAa,CAAC;EAC7E;EACA;EACA,MAAMC,gBAAgB,GAAGD,aAAa,IAAIJ,gBAAgB;EAC1D,MAAMM,kBAAkB,GAAGC,yBAA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53
|
-
//
|
|
54
|
-
//
|
|
53
|
+
// Presence and source capture must not depend on this screen owning an
|
|
54
|
+
// interpolator: a nested source can participate in a transition owned by a
|
|
55
|
+
// different navigator.
|
|
55
56
|
(0, _useBoundaryPresence.useBoundaryPresence)({
|
|
56
|
-
enabled
|
|
57
|
+
enabled,
|
|
57
58
|
boundTag,
|
|
58
59
|
currentScreenKey,
|
|
59
60
|
boundaryConfig,
|
|
@@ -61,7 +62,7 @@ const useBoundaryMeasurement = ({
|
|
|
61
62
|
escapeClipping
|
|
62
63
|
});
|
|
63
64
|
(0, _useInitialSourceMeasurement.useInitialSourceMeasurement)({
|
|
64
|
-
enabled
|
|
65
|
+
enabled,
|
|
65
66
|
measureBoundary,
|
|
66
67
|
boundTag
|
|
67
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_styles","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useRefreshBoundary","_useMeasurer","useBoundaryMeasurement","boundTag","enabled","runtimeEnabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","config","anchor","scaleMode","target","method","boundaryConfig","useMemo","preparedStyles","prepareStyleForBounds","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AACA,IAAAI,4BAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AAkBA;AACA;AACA;AACA;AACA;AACO,MAAMO,sBAAsB,GAAGA,CAAC;EACtCC,QAAQ;EACRC,OAAO;EACPC,cAAc;EACdC,gBAAgB;EAChBC,WAAW;EACXC,KAAK;EACLC,OAAO;EACPC,cAAc;EACdC;AAC6B,CAAC,KAAK;EACnC,MAAM;IAAEC,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAGJ,MAAM;EACpD,MAAMK,cAAc,GAAG,IAAAC,cAAO,EAC7B,OAAO;IAAEL,MAAM;IAAEC,SAAS;IAAEC,MAAM;IAAEC;EAAO,CAAC,CAAC,EAC7C,CAACH,MAAM,EAAEC,SAAS,EAAEC,MAAM,EAAEC,MAAM,CACnC,CAAC;EAED,MAAMG,cAAc,GAAG,IAAAD,cAAO,EAAC,MAAM,IAAAE,6BAAqB,EAACX,KAAK,CAAC,EAAE,CAACA,KAAK,CAAC,CAAC;EAE3E,MAAMY,eAAe,GAAG,IAAAC,wBAAW,EAAC;IACnCjB,OAAO;IACPD,QAAQ;IACRG,gBAAgB;IAChBY,cAAc;IACdI,mBAAmB,EAAEf,WAAW;IAChCE,OAAO;IACPC;EACD,CAAC,CAAC;;EAEF;EACA;EACA,IAAAa,wCAAmB,EAAC;IACnBnB,OAAO
|
|
1
|
+
{"version":3,"names":["_react","require","_styles","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useRefreshBoundary","_useMeasurer","useBoundaryMeasurement","boundTag","enabled","runtimeEnabled","currentScreenKey","measuredRef","style","handoff","escapeClipping","config","anchor","scaleMode","target","method","boundaryConfig","useMemo","preparedStyles","prepareStyleForBounds","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/hooks/use-boundary-measurement.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AACA,IAAAI,4BAAA,GAAAJ,OA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AAACO,OAAA,CAAAzB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -10,15 +10,13 @@ const getInitialDestinationMeasurementSignal = params => {
|
|
|
10
10
|
|
|
11
11
|
const {
|
|
12
12
|
enabled,
|
|
13
|
-
|
|
14
|
-
ancestorDestinationPairKey,
|
|
13
|
+
pairKey,
|
|
15
14
|
linkId,
|
|
16
15
|
group,
|
|
17
16
|
destinationPresent,
|
|
18
17
|
sourcePresent,
|
|
19
18
|
linkState
|
|
20
19
|
} = params;
|
|
21
|
-
const pairKey = destinationPairKey ?? ancestorDestinationPairKey;
|
|
22
20
|
if (!enabled || !pairKey) {
|
|
23
21
|
return null;
|
|
24
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","getInitialDestinationMeasurementSignal","params","enabled","
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","getInitialDestinationMeasurementSignal","params","enabled","pairKey","linkId","group","destinationPresent","sourcePresent","linkState","action","linkKey","getLinkKeyFromTag","activeGroupId","getActiveGroupId","link","links","destination","source","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/destination-signals.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAoBO,MAAMC,sCAAsC,GAAIC,MAQtD,IAAiD;EACjD,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,OAAO;IACPC,MAAM;IACNC,KAAK;IACLC,kBAAkB;IAClBC,aAAa;IACbC;EACD,CAAC,GAAGP,MAAM;EACV,IAAI,CAACC,OAAO,IAAI,CAACC,OAAO,EAAE;IACzB,OAAO,IAAI;EACZ;EAEA,IAAI,CAACG,kBAAkB,EAAE;IACxB,OAAO;MAAEH,OAAO;MAAEM,MAAM,EAAE;IAAO,CAAC;EACnC;EAEA,IAAI,CAACF,aAAa,EAAE;IACnB,OAAO;MAAEJ,OAAO;MAAEM,MAAM,EAAE;IAAU,CAAC;EACtC;EAEA,MAAMC,OAAO,GAAG,IAAAC,4BAAiB,EAACP,MAAM,CAAC;EACzC,MAAMQ,aAAa,GAClBP,KAAK,IAAIG,SAAS,GAAG,IAAAK,2BAAgB,EAACL,SAAS,EAAEL,OAAO,EAAEE,KAAK,CAAC,GAAG,IAAI;EAExE,IAAIO,aAAa,IAAIA,aAAa,KAAKF,OAAO,EAAE;IAC/C,OAAO;MAAEP,OAAO;MAAEM,MAAM,EAAE;IAAU,CAAC;EACtC;EAEA,MAAMK,IAAI,GAAGN,SAAS,GAAGL,OAAO,CAAC,EAAEY,KAAK,GAAGL,OAAO,CAAC;EAEnD,IAAI,CAACI,IAAI,EAAEE,WAAW,EAAE;IACvB,OAAO;MAAEb,OAAO;MAAEM,MAAM,EAAE;IAAU,CAAC;EACtC;EAEA,IAAI,CAACK,IAAI,CAACG,MAAM,EAAE;IACjB,OAAO;MAAEd,OAAO;MAAEM,MAAM,EAAE;IAAO,CAAC;EACnC;EAEA,OAAO;IAAEN,OAAO;IAAEM,MAAM,EAAE;EAAW,CAAC;AACvC,CAAC;AAACS,OAAA,CAAAlB,sCAAA,GAAAA,sCAAA","ignoreList":[]}
|
|
@@ -24,8 +24,6 @@ const getRefreshBoundarySignal = params => {
|
|
|
24
24
|
currentScreenKey,
|
|
25
25
|
sourcePairKey,
|
|
26
26
|
destinationPairKey,
|
|
27
|
-
ancestorDestinationPairKey,
|
|
28
|
-
nextScreenKey,
|
|
29
27
|
linkId,
|
|
30
28
|
group,
|
|
31
29
|
shouldRefresh,
|
|
@@ -48,7 +46,7 @@ const getRefreshBoundarySignal = params => {
|
|
|
48
46
|
}
|
|
49
47
|
return buildRefreshSignal("source", sourcePairKey, [currentScreenKey, closing ? "closing" : "settled"].join("|"));
|
|
50
48
|
}
|
|
51
|
-
const refreshDestinationPairKey = destinationPairKey
|
|
49
|
+
const refreshDestinationPairKey = destinationPairKey;
|
|
52
50
|
if (!refreshDestinationPairKey) {
|
|
53
51
|
return null;
|
|
54
52
|
}
|
|
@@ -67,7 +65,7 @@ const getRefreshBoundarySignal = params => {
|
|
|
67
65
|
}
|
|
68
66
|
return buildRefreshSignal("source", sourcePairKey, [group, linkId, closing ? "closing" : "settled"].join("|"));
|
|
69
67
|
}
|
|
70
|
-
const refreshDestinationPairKey = destinationPairKey
|
|
68
|
+
const refreshDestinationPairKey = destinationPairKey;
|
|
71
69
|
if (!refreshDestinationPairKey) return null;
|
|
72
70
|
|
|
73
71
|
// Destination side:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","type","pairKey","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","
|
|
1
|
+
{"version":3,"names":["SOURCE_SIGNAL_PREFIX","DESTINATION_SIGNAL_PREFIX","buildRefreshSignal","type","pairKey","key","prefix","signal","getRefreshBoundarySignal","params","enabled","currentScreenKey","sourcePairKey","destinationPairKey","linkId","group","shouldRefresh","closing","linkState","sourcePair","participates","links","sourceRequests","join","refreshDestinationPairKey","activeId","groups","exports"],"sourceRoot":"../../../../../src","sources":["components/boundary/utils/refresh-signals.ts"],"mappings":";;;;;;AAMA,MAAMA,oBAAoB,GAAG,SAAS;AACtC,MAAMC,yBAAyB,GAAG,cAAc;AAMhD,MAAMC,kBAAkB,GAAGA,CAC1BC,IAA2B,EAC3BC,OAAsB,EACtBC,GAAW,KACgB;EAC3B,SAAS;;EACT,MAAMC,MAAM,GACXH,IAAI,KAAK,QAAQ,GAAGH,oBAAoB,GAAGC,yBAAyB;EACrE,OAAO;IACNE,IAAI;IACJC,OAAO;IACPG,MAAM,EAAE,GAAGD,MAAM,GAAGF,OAAO,IAAIC,GAAG;EACnC,CAAC;AACF,CAAC;AAEM,MAAMG,wBAAwB,GAAIC,MAUxC,IAAmC;EACnC,SAAS;;EACT,MAAM;IACLC,OAAO;IACPC,gBAAgB;IAChBC,aAAa;IACbC,kBAAkB;IAClBC,MAAM;IACNC,KAAK;IAC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AK,EAAED,MAAM,EAAEG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC,CAACM,IAAI,CAAC,GAAG,CAC1D,CAAC;EACF;EAEA,MAAMC,yBAAyB,GAAGX,kBAAkB;EAEpD,IAAI,CAACW,yBAAyB,EAAE,OAAO,IAAI;;EAE3C;EACA;EACA,MAAMC,QAAQ,GACbP,SAAS,GAAGM,yBAAyB,CAAC,EAAEE,MAAM,GAAGX,KAAK,CAAC,EAAEU,QAAQ;;EAElE;EACA;EACA,IAAIA,QAAQ,KAAKX,MAAM,EAAE;IACxB,OAAO,IAAI;EACZ;EAEA,OAAOZ,kBAAkB,CACxB,aAAa,EACbsB,yBAAyB,EACzB,CAACT,KAAK,EAAED,MAAM,EAAEG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC,CAACM,IAAI,CAAC,GAAG,CAC1D,CAAC;AACF,CAAC;AAACI,OAAA,CAAAnB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -45,17 +45,13 @@ const {
|
|
|
45
45
|
current: resolvedCurrent,
|
|
46
46
|
next: resolvedNext
|
|
47
47
|
}), [resolvedPrevious, resolvedCurrent, resolvedNext]);
|
|
48
|
-
const
|
|
49
|
-
ancestorKeys,
|
|
50
|
-
ancestorDestinationPairKey
|
|
51
|
-
} = (0, _react.useMemo)(() => (0, _getAncestorKeys.getAncestorKeyState)(resolvedCurrent), [resolvedCurrent]);
|
|
48
|
+
const ancestorKeys = (0, _react.useMemo)(() => (0, _getAncestorKeys.getAncestorKeys)(resolvedCurrent), [resolvedCurrent]);
|
|
52
49
|
const derivations = (0, _react.useMemo)(() => (0, _deriveDescriptorDerivations.deriveDescriptorDerivations)({
|
|
53
50
|
previous: resolvedPrevious,
|
|
54
51
|
current: resolvedCurrent,
|
|
55
52
|
next: resolvedNext,
|
|
56
|
-
ancestorKeys
|
|
57
|
-
|
|
58
|
-
}), [resolvedPrevious, resolvedCurrent, resolvedNext, ancestorKeys, ancestorDestinationPairKey]);
|
|
53
|
+
ancestorKeys
|
|
54
|
+
}), [resolvedPrevious, resolvedCurrent, resolvedNext, ancestorKeys]);
|
|
59
55
|
return {
|
|
60
56
|
value: {
|
|
61
57
|
previous: resolvedPrevious,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_context","_blankStack","_createProvider","_interopRequireDefault","_deriveDescriptorDerivations","_getAncestorKeys","e","__esModule","default","DescriptorsProvider","useDescriptorsStore","createProvider","guarded","previous","current","next","routeKey","children","blankStackCurrent","useBlankStackStore","store","scenesByKey","descriptor","undefined","blankStackPrevious","previousDescriptor","blankStackNext","nextDescriptor","adapterContext","useScreenTransitionsAdapterOptionalContext","adapterScene","scenes","routeIndexByKey","get","resolvedCurrent","resolvedPrevious","resolvedNext","Error","descriptors","useMemo","ancestorKeys","
|
|
1
|
+
{"version":3,"names":["_react","require","_context","_blankStack","_createProvider","_interopRequireDefault","_deriveDescriptorDerivations","_getAncestorKeys","e","__esModule","default","DescriptorsProvider","useDescriptorsStore","createProvider","guarded","previous","current","next","routeKey","children","blankStackCurrent","useBlankStackStore","store","scenesByKey","descriptor","undefined","blankStackPrevious","previousDescriptor","blankStackNext","nextDescriptor","adapterContext","useScreenTransitionsAdapterOptionalContext","adapterScene","scenes","routeIndexByKey","get","resolvedCurrent","resolvedPrevious","resolvedNext","Error","descriptors","useMemo","ancestorKeys","getAncestorKeys","derivations","deriveDescriptorDerivations","value","options","exports"],"sourceRoot":"../../../../../src","sources":["providers/screen/descriptors/descriptors.provider.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AAEA,IAAAK,4BAAA,GAAAL,OAAA;AACA,IAAAM,gBAAA,GAAAN,OAAA;AAA8D,SAAAI,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,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ACO,eAAe,EAAE;IACrB,MAAM,IAAIG,KAAK,CACd,sBAAsBrB,QAAQ,IAAI,SAAS,kBAC5C,CAAC;EACF;EAEA,MAAMsB,WAAW,GAAG,IAAAC,cAAO,EAC1B,OAAO;IACN1B,QAAQ,EAAEsB,gBAAgB;IAC1BrB,OAAO,EAAEoB,eAAe;IACxBnB,IAAI,EAAEqB;EACP,CAAC,CAAC,EACF,CAACD,gBAAgB,EAAED,eAAe,EAAEE,YAAY,CACjD,CAAC;EAED,MAAMI,YAAY,GAAG,IAAAD,cAAO,EAC3B,MAAM,IAAAE,gCAAe,EAACP,eAAe,CAAC,EACtC,CAACA,eAAe,CACjB,CAAC;EAED,MAAMQ,WAAW,GAAG,IAAAH,cAAO,EAC1B,MACC,IAAAI,wDAA2B,EAAC;IAC3B9B,QAAQ,EAAEsB,gBAAgB;IAC1BrB,OAAO,EAAEoB,eAAe;IACxBnB,IAAI,EAAEqB,YAAY;IAClBI;EACD,CAAC,CAAC,EACH,CAACL,gBAAgB,EAAED,eAAe,EAAEE,YAAY,EAAEI,YAAY,CAC/D,CAAC;EAED,OAAO;IACNI,KAAK,EAAE;MACN/B,QAAQ,EAAEsB,gBAAgB;MAC1BrB,OAAO,EAAEoB,eAAe;MACxBnB,IAAI,EAAEqB,YAAY;MAClBE,WAAW;MACXI,WAAW;MACXG,OAAO,EAAEX,eAAe,CAACW;IAC1B,CAAC;IACD5B;EACD,CAAC;AACF,CACD,CAAC;AAAC6B,OAAA,CAAApC,mBAAA,GAAAA,mBAAA;AAAAoC,OAAA,CAAArC,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -9,8 +9,7 @@ function deriveDescriptorDerivations({
|
|
|
9
9
|
previous,
|
|
10
10
|
current,
|
|
11
11
|
next,
|
|
12
|
-
ancestorKeys
|
|
13
|
-
ancestorDestinationPairKey
|
|
12
|
+
ancestorKeys
|
|
14
13
|
}) {
|
|
15
14
|
const previousScreenKey = previous?.route.key;
|
|
16
15
|
const currentScreenKey = current.route.key;
|
|
@@ -28,7 +27,6 @@ function deriveDescriptorDerivations({
|
|
|
28
27
|
nextScreenKey,
|
|
29
28
|
sourcePairKey,
|
|
30
29
|
destinationPairKey,
|
|
31
|
-
ancestorDestinationPairKey,
|
|
32
30
|
parentScreenKey: ancestorKeys[0],
|
|
33
31
|
isFirstKey,
|
|
34
32
|
isTopMostScreen,
|
package/lib/commonjs/providers/screen/descriptors/helpers/derive-descriptor-derivations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","deriveDescriptorDerivations","previous","current","next","ancestorKeys","
|
|
1
|
+
{"version":3,"names":["_linkPairs","require","deriveDescriptorDerivations","previous","current","next","ancestorKeys","previousScreenKey","route","key","currentScreenKey","nextScreenKey","sourcePairKey","createScreenPairKey","undefined","destinationPairKey","navigationState","navigation","getState","routes","isFirstKey","findIndex","isTopMostScreen","hasConfiguredInterpolator","options","screenStyleInterpolator","parentScreenKey"],"sourceRoot":"../../../../../../src","sources":["providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAwBO,SAASC,2BAA2BA,CAAC;EAC3CC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC;AACO,CAAC,EAAyB;EACjC,MAAMC,iBAAiB,GAAGJ,QAAQ,EAAEK,KAAK,CAACC,GAAG;EAC7C,MAAMC,gBAAgB,GAAGN,OAAO,CAACI,KAAK,CAACC,GAAG;EAC1C,MAAME,aAAa,GAAGN,IAAI,EAAEG,KAAK,CAACC,GAAG;EACrC,MAAMG,aAAa,GAAGD,aAAa,GAChC,IAAAE,8BAAmB,EAACH,gBAAgB,EAAEC,aAAa,CAAC,GACpDG,SAAS;EACZ,MAAMC,kBAAkB,GAAGR,iBAAiB,GACzC,IAAAM,8BAAmB,EAACN,iBAAiB,EAAEG,gBAAgB,CAAC,GACxDI,SAAS;EAEZ,MAAME,eAAe,GAAGZ,OAAO,CAACa,UAAU,CAACC,QAAQ,CAAC,CAAC;EACrD,MAAMC,MAAM,GAAGH,eAAe,EAAEG,MAAM,IAAI,EAAE;EAC5C,MAAMC,UAAU,GACfD,MAAM,CAACE,SAAS,CAAEb,KAAK,IAAKA,KAAK,CAACC,GAAG,KAAKL,OAAO,CAACI,KAAK,CAACC,GAAG,CAAC,KAAK,CAAC;EACnE,MAAMa,eAAe,GAAG,CAACjB,IAAI;EAC7B,MAAMkB,yBAAyB,GAC9B,CAAC,CAACnB,OAAO,CAACoB,OAAO,CAACC,uBAAuB,IACzC,CAAC,CAACpB,IAAI,EAAEmB,OAAO,EAAEC,uBAAuB;EAEzC,OAAO;IACNlB,iBAAiB;IACjBG,gBAAgB;IAChBC,aAAa;IACbC,aAAa;IACbG,kBAAkB;IAClBW,eAAe,EAAEpB,YAAY,CAAC,CAAC,CAAC;IAChCc,UAAU;IACVE,eAAe;IACfhB,YAAY;IACZiB;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -3,22 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getAncestorKeyState = getAncestorKeyState;
|
|
7
6
|
exports.getAncestorKeys = getAncestorKeys;
|
|
8
|
-
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
9
7
|
/**
|
|
10
8
|
* Builds nested navigator ancestor keys from immediate parent to root.
|
|
11
|
-
* The nearest ancestor destination pair lets child routes attach measurements
|
|
12
|
-
* to the transition owned by the parent stack.
|
|
13
9
|
*/
|
|
14
|
-
function
|
|
10
|
+
function getAncestorKeys(current) {
|
|
15
11
|
const ancestors = [];
|
|
16
|
-
let ancestorDestinationPairKey;
|
|
17
12
|
const nav = current.navigation;
|
|
18
13
|
if (typeof nav?.getParent !== "function") {
|
|
19
|
-
return
|
|
20
|
-
ancestorKeys: ancestors
|
|
21
|
-
};
|
|
14
|
+
return ancestors;
|
|
22
15
|
}
|
|
23
16
|
let parent = nav.getParent();
|
|
24
17
|
while (parent) {
|
|
@@ -27,20 +20,10 @@ function getAncestorKeyState(current) {
|
|
|
27
20
|
const focusedRoute = state.routes[state.index];
|
|
28
21
|
if (focusedRoute?.key) {
|
|
29
22
|
ancestors.push(focusedRoute.key);
|
|
30
|
-
const previousRoute = state.routes[state.index - 1];
|
|
31
|
-
if (!ancestorDestinationPairKey && previousRoute?.key) {
|
|
32
|
-
ancestorDestinationPairKey = (0, _linkPairs.createScreenPairKey)(previousRoute.key, focusedRoute.key);
|
|
33
|
-
}
|
|
34
23
|
}
|
|
35
24
|
}
|
|
36
25
|
parent = parent.getParent();
|
|
37
26
|
}
|
|
38
|
-
return
|
|
39
|
-
ancestorKeys: ancestors,
|
|
40
|
-
ancestorDestinationPairKey
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
function getAncestorKeys(current) {
|
|
44
|
-
return getAncestorKeyState(current).ancestorKeys;
|
|
27
|
+
return ancestors;
|
|
45
28
|
}
|
|
46
29
|
//# sourceMappingURL=get-ancestor-keys.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getAncestorKeys","current","ancestors","nav","navigation","getParent","parent","state","getState","routes","index","undefined","focusedRoute","key","push"],"sourceRoot":"../../../../../../src","sources":["providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACO,SAASA,eAAeA,CAACC,OAA4B,EAAY;EACvE,MAAMC,SAAmB,GAAG,EAAE;EAC9B,MAAMC,GAAG,GAAGF,OAAO,CAACG,UAAiB;EAErC,IAAI,OAAOD,GAAG,EAAEE,SAAS,KAAK,UAAU,EAAE;IACzC,OAAOH,SAAS;EACjB;EAEA,IAAII,MAAM,GAAGH,GAAG,CAACE,SAAS,CAAC,CAAC;EAE5B,OAAOC,MAAM,EAAE;IACd,MAAMC,KAAK,GAAGD,MAAM,CAACE,QAAQ,CAAC,CAAC;IAC/B,IAAID,KAAK,EAAEE,MAAM,IAAIF,KAAK,CAACG,KAAK,KAAKC,SAAS,EAAE;MAC/C,MAAMC,YAAY,GAAGL,KAAK,CAACE,MAAM,CAACF,KAAK,CAACG,KAAK,CAAC;MAC9C,IAAIE,YAAY,EAAEC,GAAG,EAAE;QACtBX,SAAS,CAACY,IAAI,CAACF,YAAY,CAACC,GAAG,CAAC;MACjC;IACD;IACAP,MAAM,GAAGA,MAAM,CAACD,SAAS,CAAC,CAAC;EAC5B;EAEA,OAAOH,SAAS;AACjB","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getEntry = getEntry;
|
|
7
|
+
exports.getMatchingSourceScreenKey = getMatchingSourceScreenKey;
|
|
7
8
|
exports.removeEntry = removeEntry;
|
|
8
9
|
exports.setEntry = setEntry;
|
|
9
10
|
var _keys = require("../helpers/keys");
|
|
@@ -60,6 +61,22 @@ function getEntry(tag, key) {
|
|
|
60
61
|
|
|
61
62
|
return _state.boundaryRegistry.get()[tag]?.screens[key] ?? null;
|
|
62
63
|
}
|
|
64
|
+
function getMatchingSourceScreenKey(tag, destinationScreenKey, preferredScreenKey) {
|
|
65
|
+
"worklet";
|
|
66
|
+
|
|
67
|
+
const screens = _state.boundaryRegistry.get()[tag]?.screens;
|
|
68
|
+
if (!screens) return null;
|
|
69
|
+
if (preferredScreenKey && preferredScreenKey !== destinationScreenKey && screens[preferredScreenKey]) {
|
|
70
|
+
return preferredScreenKey;
|
|
71
|
+
}
|
|
72
|
+
let latestScreenKey = null;
|
|
73
|
+
for (const screenKey in screens) {
|
|
74
|
+
if (screenKey !== destinationScreenKey) {
|
|
75
|
+
latestScreenKey = screenKey;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return latestScreenKey;
|
|
79
|
+
}
|
|
63
80
|
function setEntry(tag, screenKey, patch) {
|
|
64
81
|
"worklet";
|
|
65
82
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","handoff","escapeClipping","getEntry","key","boundaryRegistry","get","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/entries.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_keys","require","_state","ensureBoundaryState","state","tag","screens","ensureScreenEntry","screenKey","tagState","bounds","styles","applyEntryPatch","entry","patch","undefined","boundaryConfig","handoff","escapeClipping","getEntry","key","boundaryRegistry","get","getMatchingSourceScreenKey","destinationScreenKey","preferredScreenKey","latestScreenKey","setEntry","modify","removeEntry","hasAnyKeys"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/entries.ts"],"mappings":";;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,mBAAmB,GAAGA,CAACC,KAA2B,EAAEC,GAAU,KAAK;EACxE,SAAS;;EACT,IAAI,CAACD,KAAK,CAACC,GAAG,CAAC,EAAE;IAChBD,KAAK,CAACC,GAAG,CAAC,GAAG;MACZC,OAAO,EAAE,CAAC;IACX,CAAC;EACF;EACA,OAAOF,KAAK,CAACC,GAAG,CAAC;AAClB,CAAC;AAED,MAAME,iBAAiB,GAAGA,CACzBH,KAA2B,EAC3BC,GAAU,EACVG,SAAoB,KACT;EACX,SAAS;;EACT,MAAMC,QAAQ,GAAGN,mBAAmB,CAACC,KAAK,EAAEC,GAAG,CAAC;EAChD,IAAI,CAACI,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,EAAE;IACjCC,QAAQ,CAACH,OAAO,CAACE,SAAS,CAAC,GAAG;MAC7BE,MAAM,EAAE,IAAI;MACZC,MAAM,EAAE,CAAC;IACV,CAAC;EACF;EACA,OAAOF,QAAQ,CAACH,OAAO,CAAC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}
|
|
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getActiveGroupId = getActiveGroupId;
|
|
7
7
|
exports.getDestination = getDestination;
|
|
8
8
|
exports.getLink = getLink;
|
|
9
|
+
exports.getPairKeyForDestination = getPairKeyForDestination;
|
|
10
|
+
exports.getPairKeyForSource = getPairKeyForSource;
|
|
9
11
|
exports.getResolvedLink = getResolvedLink;
|
|
10
12
|
exports.getSource = getSource;
|
|
11
13
|
exports.requestSourceMeasure = requestSourceMeasure;
|
|
@@ -283,6 +285,29 @@ function getResolvedLink(pairKey, tag) {
|
|
|
283
285
|
link
|
|
284
286
|
};
|
|
285
287
|
}
|
|
288
|
+
function getPairKeyForSource(tag, screenKey) {
|
|
289
|
+
"worklet";
|
|
290
|
+
|
|
291
|
+
const state = _state.pairs.get();
|
|
292
|
+
const linkKey = (0, _linkPairs.getLinkKeyFromTag)(tag);
|
|
293
|
+
for (const pairKey in state) {
|
|
294
|
+
if ((0, _linkPairs.getSourceScreenKeyFromPairKey)(pairKey) !== screenKey) continue;
|
|
295
|
+
if (getResolvedLink(pairKey, tag).link?.destination || state[pairKey]?.sourceRequests?.[linkKey]) {
|
|
296
|
+
return pairKey;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
function getPairKeyForDestination(tag, screenKey) {
|
|
302
|
+
"worklet";
|
|
303
|
+
|
|
304
|
+
const state = _state.pairs.get();
|
|
305
|
+
for (const pairKey in state) {
|
|
306
|
+
if ((0, _linkPairs.getDestinationScreenKeyFromPairKey)(pairKey) !== screenKey) continue;
|
|
307
|
+
if (getResolvedLink(pairKey, tag).link) return pairKey;
|
|
308
|
+
}
|
|
309
|
+
return null;
|
|
310
|
+
}
|
|
286
311
|
function getSource(pairKey, tag) {
|
|
287
312
|
"worklet";
|
|
288
313
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAuBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGL,KAAK,CAACM,MAAM,EAAED,KAAK,EAAE,EAAE;IAClD,MAAME,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":3,"names":["_linkPairs","require","_state","syncLinkStatus","link","status","source","destination","isSharedValueLike","value","_isReanimatedSharedValue","snapshotSharedValue","snapshotTransformArrayValue","snapshot","index","length","snapshotValue","snapshotTransformEntryValue","undefined","push","Array","isArray","snapshotTransformItem","hasValue","key","snapshotTransform","snapshotStyles","styles","transform","createLinkSide","screenKey","bounds","runtimeFlags","handoff","escapeClipping","writePairLink","state","pairKey","linkKey","ensurePairLinks","writeGroup","group","activeId","initialId","previousInitialId","groups","ensurePairGroups","writeDestination","existingLink","getPairLink","initialDestination","setSource","tag","pairs","modify","getLinkKeyFromTag","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","ensurePairSourceRequests","getActiveGroupId","getPairActiveGroupId","get","getLink","hasSourceLink","getResolvedLink","getGroupKeyFromTag","initialLink","createGroupTag","getPairKeyForSource","getSourceScreenKeyFromPairKey","getPairKeyForDestination","getDestinationScreenKeyFromPairKey","getSource","getPairSource","getDestination","getPairDestination"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,UAAA,GAAAC,OAAA;AAyBA,IAAAC,MAAA,GAAAD,OAAA;AAEA,MAAME,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,CAACG,WAAW,GACf,UAAU,GACV,wBAAwB,GACzB,mBAAmB;AACvB,CAAC;AAQD,MAAMC,iBAAiB,GAAIC,KAAc,IAA+B;EACvE,SAAS;;EACT,OACEA,KAAK,EAAsCC,wBAAwB,KACpE,IAAI;AAEN,CAAC;AAED,MAAMC,mBAAmB,GAAIF,KAAsB,IAAc;EAChE,SAAS;;EACT,OAAOA,KAAK,CAACA,KAAK;AACnB,CAAC;AAED,MAAMG,2BAA2B,GAChCH,KAAgB,IACW;EAC3B,SAAS;;EACT,MAAMI,QAAmB,GAAG,EAAE;EAE9B,KAAK,I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OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAEG,WAAW,IAC/C6B,KAAK,CAACC,OAAO,CAAC,EAAEqB,cAAc,GAAGpB,OAAO,CAAC,EACxC;MACD,OAAOD,OAAO;IACf;EACD;EACA,OAAO,IAAI;AACZ;AAEA,SAASqC,wBAAwBA,CAChCtB,GAAU,EACVtB,SAAoB,EACG;EACvB,SAAS;;EACT,MAAMM,KAAK,GAAGiB,YAAK,CAACY,GAAG,CAAC,CAAC;EACzB,KAAK,MAAM5B,OAAO,IAAID,KAAK,EAAE;IAC5B,IAAI,IAAAuC,6CAAkC,EAACtC,OAAO,CAAC,KAAKP,SAAS,EAAE;IAC/D,IAAIsC,eAAe,CAAC/B,OAAO,EAAEe,GAAG,CAAC,CAAChD,IAAI,EAAE,OAAOiC,OAAO;EACvD;EACA,OAAO,IAAI;AACZ;AAEA,SAASuC,SAASA,CACjBvC,OAAsB,EACtBe,GAAU,EACiB;EAC3B,SAAS;;EACT,OAAO,IAAAyB,oBAAa,EAACxB,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACnE;AAEA,SAAS0B,cAAcA,CACtBzC,OAAsB,EACtBe,GAAU,EACsB;EAChC,SAAS;;EACT,OAAO,IAAA2B,yBAAkB,EAAC1B,YAAK,CAACY,GAAG,CAAC,CAAC,EAAE5B,OAAO,EAAE,IAAAkB,4BAAiB,EAACH,GAAG,CAAC,CAAC;AACxE","ignoreList":[]}
|
|
@@ -4,22 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolveTransitionPair = resolveTransitionPair;
|
|
7
|
-
var _linkPairs = require("../helpers/link-pairs.helpers");
|
|
8
7
|
var _links = require("./links");
|
|
9
|
-
function resolvePairKey(context) {
|
|
10
|
-
"worklet";
|
|
11
|
-
|
|
12
|
-
if (context.entering) {
|
|
13
|
-
if (!context.previousScreenKey || !context.currentScreenKey) return null;
|
|
14
|
-
return (0, _linkPairs.createScreenPairKey)(context.previousScreenKey, context.currentScreenKey);
|
|
15
|
-
}
|
|
16
|
-
if (!context.currentScreenKey || !context.nextScreenKey) return null;
|
|
17
|
-
return (0, _linkPairs.createScreenPairKey)(context.currentScreenKey, context.nextScreenKey);
|
|
18
|
-
}
|
|
19
8
|
function resolveTransitionPair(tag, context) {
|
|
20
9
|
"worklet";
|
|
21
10
|
|
|
22
|
-
const
|
|
11
|
+
const destinationScreenKey = context.entering ? context.currentScreenKey : context.nextScreenKey;
|
|
12
|
+
const pairKey = destinationScreenKey ? (0, _links.getPairKeyForDestination)(tag, destinationScreenKey) : null;
|
|
23
13
|
const matchedLink = pairKey ? (0, _links.getResolvedLink)(pairKey, tag).link : null;
|
|
24
14
|
return {
|
|
25
15
|
sourceBounds: matchedLink?.source?.bounds ?? null,
|