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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["createGroupTag","ensurePairGroups","ensurePairLinks","ensurePairSourceRequests","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","pairs","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","writeGroup","group","activeId","initialId","previousInitialId","groups","writeDestination","existingLink","initialDestination","setSource","tag","modify","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","get","hasSourceLink","getResolvedLink","initialLink"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;AACA,SACCA,cAAc,EACdC,gBAAgB,EAChBC,eAAe,EACfC,wBAAwB,EACxBC,kBAAkB,EAClBC,iBAAiB,EACjBC,gBAAgB,IAAIC,oBAAoB,EACxCC,cAAc,IAAIC,kBAAkB,EACpCC,OAAO,IAAIC,WAAW,EACtBC,SAAS,IAAIC,aAAa,QACpB,+BAA+B;AAYtC,SAASC,KAAK,QAAQ,SAAS;AAE/B,MAAMC,cAAc,GAAIC,IAAa,IAAK;EACzC,SAAS;;EACTA,IAAI,CAACC,MAAM,GAAGD,IAAI,CAACE,MAAM,GACtBF,IAAI,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EACT,OAAOhD,aAAa,CAACC,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE5C,iBAAiB,CAACwD,GAAG,CAAC,CAAC;AACnE;AAEA,SAASrD,cAAcA,CACtByC,OAAsB,EACtBY,GAAU,EACsB;EAChC,SAAS;;EACT,OAAOpD,kBAAkB,CAACK,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE5C,iBAAiB,CAACwD,GAAG,CAAC,CAAC;AACxE;AAEA,SACCvD,gBAAgB,EAChBE,cAAc,EACdE,OAAO,EACP6D,eAAe,EACf3D,SAAS,EACTwD,oBAAoB,EACpBD,gBAAgB,EAChBD,cAAc,EACdN,SAAS","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["createGroupTag","ensurePairGroups","ensurePairLinks","ensurePairSourceRequests","getDestinationScreenKeyFromPairKey","getGroupKeyFromTag","getLinkKeyFromTag","getActiveGroupId","getPairActiveGroupId","getDestination","getPairDestination","getLink","getPairLink","getSource","getPairSource","getSourceScreenKeyFromPairKey","pairs","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","writeGroup","group","activeId","initialId","previousInitialId","groups","writeDestination","existingLink","initialDestination","setSource","tag","modify","pairLinks","initialSource","sourceRequests","setDestination","setActiveGroupId","requestSourceMeasure","get","hasSourceLink","getResolvedLink","initialLink","getPairKeyForSource","getPairKeyForDestination"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/links.ts"],"mappings":";;AACA,SACCA,cAAc,EACdC,gBAAgB,EAChBC,eAAe,EACfC,wBAAwB,EACxBC,kCAAkC,EAClCC,kBAAkB,EAClBC,iBAAiB,EACjBC,gB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CAAC,CAAC;AACnE;AAEA,SAAStD,cAAcA,CACtB0C,OAAsB,EACtBY,GAAU,EACsB;EAChC,SAAS;;EACT,OAAOrD,kBAAkB,CAACM,KAAK,CAACuD,GAAG,CAAC,CAAC,EAAEpB,OAAO,EAAE7C,iBAAiB,CAACyD,GAAG,CAAC,CAAC;AACxE;AAEA,SACCxD,gBAAgB,EAChBE,cAAc,EACdE,OAAO,EACPiE,wBAAwB,EACxBD,mBAAmB,EACnBF,eAAe,EACf5D,SAAS,EACTyD,oBAAoB,EACpBD,gBAAgB,EAChBD,cAAc,EACdN,SAAS","ignoreList":[]}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { getResolvedLink } from "./links";
|
|
5
|
-
function resolvePairKey(context) {
|
|
6
|
-
"worklet";
|
|
7
|
-
|
|
8
|
-
if (context.entering) {
|
|
9
|
-
if (!context.previousScreenKey || !context.currentScreenKey) return null;
|
|
10
|
-
return createScreenPairKey(context.previousScreenKey, context.currentScreenKey);
|
|
11
|
-
}
|
|
12
|
-
if (!context.currentScreenKey || !context.nextScreenKey) return null;
|
|
13
|
-
return createScreenPairKey(context.currentScreenKey, context.nextScreenKey);
|
|
14
|
-
}
|
|
3
|
+
import { getPairKeyForDestination, getResolvedLink } from "./links";
|
|
15
4
|
function resolveTransitionPair(tag, context) {
|
|
16
5
|
"worklet";
|
|
17
6
|
|
|
18
|
-
const
|
|
7
|
+
const destinationScreenKey = context.entering ? context.currentScreenKey : context.nextScreenKey;
|
|
8
|
+
const pairKey = destinationScreenKey ? getPairKeyForDestination(tag, destinationScreenKey) : null;
|
|
19
9
|
const matchedLink = pairKey ? getResolvedLink(pairKey, tag).link : null;
|
|
20
10
|
return {
|
|
21
11
|
sourceBounds: matchedLink?.source?.bounds ?? null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getPairKeyForDestination","getResolvedLink","resolveTransitionPair","tag","context","destinationScreenKey","entering","currentScreenKey","nextScreenKey","pairKey","matchedLink","link","sourceBounds","source","bounds","destinationBounds","destination","sourceStyles","styles","destinationStyles","sourceScreenKey","screenKey"],"sourceRoot":"../../../../../src","sources":["stores/bounds/internals/resolver.ts"],"mappings":";;AAKA,SAASA,wBAAwB,EAAEC,eAAe,QAAQ,SAAS;AAEnE,SAASC,qBAAqBA,CAC7BC,GAAU,EACVC,OAAiC,EACR;EACzB,SAAS;;EACT,MAAMC,oBAAoB,GAAGD,OAAO,CAACE,QAAQ,GAC1CF,OAAO,CAACG,gBAAgB,GACxBH,OAAO,CAACI,aAAa;EACxB,MAAMC,OAAO,GAAGJ,oBAAoB,GACjCL,wBAAwB,CAACG,GAAG,EAAEE,oBAAoB,CAAC,GACnD,IAAI;EACP,MAAMK,WAAW,GAAGD,OAAO,GAAGR,eAAe,CAACQ,OAAO,EAAEN,GAAG,CAAC,CAACQ,IAAI,GAAG,IAAI;EAEvE,OAAO;IACNC,YAAY,EAAEF,WAAW,EAAEG,MAAM,EAAEC,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAEL,WAAW,EAAEM,WAAW,EAAEF,MAAM,IAAI,IAAI;IAC3DG,YAAY,EAAEP,WAAW,EAAEG,MAAM,EAAEK,MAAM,IAAI,IAAI;IACjDC,iBAAiB,EAAET,WAAW,EAAEM,WAAW,EAAEE,MAAM,IAAI,IAAI;IAC3DE,eAAe,EAAEV,WAAW,EAAEG,MAAM,EAAEQ,SAAS,IAAI,IAAI;IACvDhB,oBAAoB,EAAEK,WAAW,EAAEM,WAAW,EAAEK,SAAS,IAAI;EAC9D,CAAC;AACF;AAEA,SAASnB,qBAAqB","ignoreList":[]}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { getResolvedLink } from "../../../stores/bounds/internals/links";
|
|
4
|
-
import { resolveBoundsPairKey } from "./resolve-bounds-pair-key";
|
|
3
|
+
import { getPairKeyForDestination, getResolvedLink } from "../../../stores/bounds/internals/links";
|
|
5
4
|
export const createLinkAccessor = getProps => {
|
|
6
5
|
"worklet";
|
|
7
6
|
|
|
@@ -10,7 +9,8 @@ export const createLinkAccessor = getProps => {
|
|
|
10
9
|
|
|
11
10
|
const props = getProps();
|
|
12
11
|
const stringTag = String(tag);
|
|
13
|
-
const
|
|
12
|
+
const destinationScreenKey = props.next?.route.key ?? props.current?.route.key;
|
|
13
|
+
const pairKey = destinationScreenKey ? getPairKeyForDestination(stringTag, destinationScreenKey) : null;
|
|
14
14
|
if (!pairKey) return null;
|
|
15
15
|
const resolved = getResolvedLink(pairKey, stringTag);
|
|
16
16
|
return resolved.link ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["getPairKeyForDestination","getResolvedLink","createLinkAccessor","getProps","getLink","tag","props","stringTag","String","destinationScreenKey","next","route","key","current","pairKey","resolved","link","id"],"sourceRoot":"../../../../../src","sources":["utils/bounds/helpers/create-link-accessor.ts"],"mappings":";;AAAA,SACCA,wBAAwB,EACxBC,eAAe,QACT,wCAAwC;AAa/C,OAAO,MAAMC,kBAAkB,GAAIC,QAAkB,IAAmB;EACvE,SAAS;;EAET,MAAMC,OAAO,GAAIC,GAAY,IAAwB;IACpD,SAAS;;IACT,MAAMC,KAAK,GAAGH,QAAQ,CAAC,CAAC;IACxB,MAAMI,SAAS,GAAGC,MAAM,CAACH,GAAG,CAAC;IAC7B,MAAMI,oBAAoB,GACzBH,KAAK,CAACI,IAAI,EAAEC,KAAK,CAACC,GAAG,IAAIN,KAAK,CAACO,OAAO,EAAEF,KAAK,CAACC,GAAG;IAClD,MAAME,OAAO,GAAGL,oBAAoB,GACjCT,wBAAwB,CAACO,SAAS,EAAEE,oBAAoB,CAAC,GACzD,IAAI;IACP,IAAI,CAACK,OAAO,EAAE,OAAO,IAAI;IAEzB,MAAMC,QAAQ,GAAGd,eAAe,CAACa,OAAO,EAAEP,SAAS,CAAC;IACpD,OAAOQ,QAAQ,CAACC,IAAI,GACjB;MACAC,EAAE,EAAEF,QAAQ,CAACV,GAAG;MAChB,GAAGU,QAAQ,CAACC;IACb,CAAC,GACA,IAAI;EACR,CAAC;EAED,OAAO;IACNZ;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-initial-destination-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-initial-destination-measurement.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAGhE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAanD,UAAU,sCAAsC;IAC/C,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,gCAAgC,GAAI,yDAK9C,sCAAsC,SAkNxC,CAAC"}
|
package/lib/typescript/components/boundary/hooks/lifecycles/use-initial-source-measurement.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-initial-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-initial-source-measurement.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-initial-source-measurement.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,eAAO,MAAM,2BAA2B,GAAI,QAAQ;IACnD,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,eAAe,CAAC;IACjC,QAAQ,EAAE,QAAQ,CAAC;CACnB,SAsCA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-refresh-boundary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/boundary/hooks/lifecycles/use-refresh-boundary.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,UAAU,wBAAwB;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,QAAQ,CAAC;IACnB,eAAe,EAAE,eAAe,CAAC;CACjC;AAED,eAAO,MAAM,kBAAkB,GAAI,yCAIhC,wBAAwB,SAwD1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAOpD,UAAU,4BAA4B;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,+GAUpC,4BAA4B,
|
|
1
|
+
{"version":3,"file":"use-boundary-measurement.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/hooks/use-boundary-measurement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAOpD,UAAU,4BAA4B;IACrC,QAAQ,EAAE,QAAQ,CAAC;IACnB,4EAA4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,2EAA2E;IAC3E,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,wEAAwE;IACxE,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,2DAA2D;IAC3D,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,GAAI,+GAUpC,4BAA4B,SAiD9B,CAAC"}
|
|
@@ -6,8 +6,7 @@ export type InitialDestinationMeasurementSignal = {
|
|
|
6
6
|
};
|
|
7
7
|
export declare const getInitialDestinationMeasurementSignal: (params: {
|
|
8
8
|
enabled: boolean;
|
|
9
|
-
|
|
10
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
9
|
+
pairKey?: ScreenPairKey;
|
|
11
10
|
linkId: string;
|
|
12
11
|
group?: string;
|
|
13
12
|
destinationPresent: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"destination-signals.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/utils/destination-signals.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,mCAAmC,GAC5C,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,CAAC;AAEd,MAAM,MAAM,mCAAmC,GAAG;IACjD,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,mCAAmC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAAI,QAAQ;IAC9D,OAAO,EAAE,OAAO,CAAC;IACjB,
|
|
1
|
+
{"version":3,"file":"destination-signals.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/utils/destination-signals.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,mCAAmC,GAC5C,MAAM,GACN,SAAS,GACT,SAAS,GACT,UAAU,CAAC;AAEd,MAAM,MAAM,mCAAmC,GAAG;IACjD,OAAO,EAAE,aAAa,CAAC;IACvB,MAAM,EAAE,mCAAmC,CAAC;CAC5C,CAAC;AAEF,eAAO,MAAM,sCAAsC,GAAI,QAAQ;IAC9D,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,EAAE,OAAO,CAAC;IAC5B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,mCAAmC,GAAG,IA0CzC,CAAC"}
|
|
@@ -8,8 +8,6 @@ export declare const getRefreshBoundarySignal: (params: {
|
|
|
8
8
|
currentScreenKey: string;
|
|
9
9
|
sourcePairKey?: ScreenPairKey;
|
|
10
10
|
destinationPairKey?: ScreenPairKey;
|
|
11
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
12
|
-
nextScreenKey?: string;
|
|
13
11
|
linkId: string;
|
|
14
12
|
group?: string;
|
|
15
13
|
shouldRefresh: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refresh-signals.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/utils/refresh-signals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,KAAK,qBAAqB,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAiBF,eAAO,MAAM,wBAAwB,GAAI,QAAQ;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,
|
|
1
|
+
{"version":3,"file":"refresh-signals.d.ts","sourceRoot":"","sources":["../../../../../src/components/boundary/utils/refresh-signals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,cAAc,EACd,aAAa,EACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK9C,KAAK,qBAAqB,GAAG,aAAa,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAiBF,eAAO,MAAM,wBAAwB,GAAI,QAAQ;IAChD,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,cAAc,CAAC;CAC3B,KAAG,qBAAqB,GAAG,IA4F3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"descriptors.provider.d.ts","sourceRoot":"","sources":["../../../../../src/providers/screen/descriptors/descriptors.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,MAAM,WAAW,uBAAuB,CACvC,WAAW,SAAS,cAAc,GAAG,cAAc;IAEnD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AAEtE,UAAU,oBAAoB,CAC7B,WAAW,SAAS,cAAc,GAAG,cAAc,CAClD,SAAQ,uBAAuB,CAAC,WAAW,CAAC;IAC7C,WAAW,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAClD,WAAW,EAAE,iCAAiC,CAAC;IAC/C,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,KAAK,wBAAwB,GAAG;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAQ,mBAAmB,gDAAE,mBAAmB;;;
|
|
1
|
+
{"version":3,"file":"descriptors.provider.d.ts","sourceRoot":"","sources":["../../../../../src/providers/screen/descriptors/descriptors.provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIrF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,mBAAmB,CAAC;AAEjD,MAAM,WAAW,uBAAuB,CACvC,WAAW,SAAS,cAAc,GAAG,cAAc;IAEnD,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,MAAM,iCAAiC,GAAG,qBAAqB,CAAC;AAEtE,UAAU,oBAAoB,CAC7B,WAAW,SAAS,cAAc,GAAG,cAAc,CAClD,SAAQ,uBAAuB,CAAC,WAAW,CAAC;IAC7C,WAAW,EAAE,uBAAuB,CAAC,WAAW,CAAC,CAAC;IAClD,WAAW,EAAE,iCAAiC,CAAC;IAC/C,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,KAAK,wBAAwB,GAAG;IAC/B,QAAQ,EAAE,SAAS,CAAC;IACpB,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAQ,mBAAmB,gDAAE,mBAAmB;;;CAuEtD,CAAC"}
|
package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export interface DescriptorDerivations {
|
|
|
6
6
|
nextScreenKey?: string;
|
|
7
7
|
sourcePairKey?: ScreenPairKey;
|
|
8
8
|
destinationPairKey?: ScreenPairKey;
|
|
9
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
10
9
|
parentScreenKey?: string;
|
|
11
10
|
isFirstKey: boolean;
|
|
12
11
|
isTopMostScreen: boolean;
|
|
@@ -18,8 +17,7 @@ interface Params {
|
|
|
18
17
|
current: BaseStackDescriptor;
|
|
19
18
|
next?: BaseStackDescriptor;
|
|
20
19
|
ancestorKeys: string[];
|
|
21
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
22
20
|
}
|
|
23
|
-
export declare function deriveDescriptorDerivations({ previous, current, next, ancestorKeys,
|
|
21
|
+
export declare function deriveDescriptorDerivations({ previous, current, next, ancestorKeys, }: Params): DescriptorDerivations;
|
|
24
22
|
export {};
|
|
25
23
|
//# sourceMappingURL=derive-descriptor-derivations.d.ts.map
|
package/lib/typescript/providers/screen/descriptors/helpers/derive-descriptor-derivations.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive-descriptor-derivations.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,WAAW,qBAAqB;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,
|
|
1
|
+
{"version":3,"file":"derive-descriptor-derivations.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/screen/descriptors/helpers/derive-descriptor-derivations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,MAAM,WAAW,qBAAqB;IACrC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,eAAe,EAAE,OAAO,CAAC;IACzB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,yBAAyB,EAAE,OAAO,CAAC;CACnC;AAED,UAAU,MAAM;IACf,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,wBAAgB,2BAA2B,CAAC,EAC3C,QAAQ,EACR,OAAO,EACP,IAAI,EACJ,YAAY,GACZ,EAAE,MAAM,GAAG,qBAAqB,CAgChC"}
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
import type { ScreenPairKey } from "../../../../stores/bounds/types";
|
|
2
1
|
import type { BaseStackDescriptor } from "../../../../types/stack.types";
|
|
3
|
-
export interface AncestorKeyState {
|
|
4
|
-
ancestorKeys: string[];
|
|
5
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
6
|
-
}
|
|
7
2
|
/**
|
|
8
3
|
* Builds nested navigator ancestor keys from immediate parent to root.
|
|
9
|
-
* The nearest ancestor destination pair lets child routes attach measurements
|
|
10
|
-
* to the transition owned by the parent stack.
|
|
11
4
|
*/
|
|
12
|
-
export declare function getAncestorKeyState(current: BaseStackDescriptor): AncestorKeyState;
|
|
13
5
|
export declare function getAncestorKeys(current: BaseStackDescriptor): string[];
|
|
14
6
|
//# sourceMappingURL=get-ancestor-keys.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-ancestor-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-ancestor-keys.d.ts","sourceRoot":"","sources":["../../../../../../src/providers/screen/descriptors/helpers/get-ancestor-keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAsBtE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Entry, EntryPatch, ScreenKey, TagID } from "../types";
|
|
2
2
|
declare function getEntry(tag: TagID, key: ScreenKey): Entry | null;
|
|
3
|
+
declare function getMatchingSourceScreenKey(tag: TagID, destinationScreenKey: ScreenKey, preferredScreenKey?: ScreenKey): ScreenKey | null;
|
|
3
4
|
declare function setEntry(tag: TagID, screenKey: ScreenKey, patch: EntryPatch): void;
|
|
4
5
|
declare function removeEntry(tag: TagID, screenKey: ScreenKey): void;
|
|
5
|
-
export { getEntry, removeEntry, setEntry };
|
|
6
|
+
export { getEntry, getMatchingSourceScreenKey, removeEntry, setEntry };
|
|
6
7
|
//# sourceMappingURL=entries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/stores/bounds/internals/entries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA0DpE,iBAAS,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAG1D;AAED,iBAAS,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,QAQpE;AAED,iBAAS,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QAgBpD;AAED,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"entries.d.ts","sourceRoot":"","sources":["../../../../../src/stores/bounds/internals/entries.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AA0DpE,iBAAS,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAG1D;AAED,iBAAS,0BAA0B,CAClC,GAAG,EAAE,KAAK,EACV,oBAAoB,EAAE,SAAS,EAC/B,kBAAkB,CAAC,EAAE,SAAS,GAC5B,SAAS,GAAG,IAAI,CAoBlB;AAED,iBAAS,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,QAQpE;AAED,iBAAS,WAAW,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,QAgBpD;AAED,OAAO,EAAE,QAAQ,EAAE,0BAA0B,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -10,7 +10,9 @@ declare function getResolvedLink(pairKey: ScreenPairKey, tag: TagID): {
|
|
|
10
10
|
tag: TagID;
|
|
11
11
|
link: TagLink | null;
|
|
12
12
|
};
|
|
13
|
+
declare function getPairKeyForSource(tag: TagID, screenKey: ScreenKey): ScreenPairKey | null;
|
|
14
|
+
declare function getPairKeyForDestination(tag: TagID, screenKey: ScreenKey): ScreenPairKey | null;
|
|
13
15
|
declare function getSource(pairKey: ScreenPairKey, tag: TagID): TagLink["source"] | null;
|
|
14
16
|
declare function getDestination(pairKey: ScreenPairKey, tag: TagID): TagLink["destination"] | null;
|
|
15
|
-
export { getActiveGroupId, getDestination, getLink, getResolvedLink, getSource, requestSourceMeasure, setActiveGroupId, setDestination, setSource, };
|
|
17
|
+
export { getActiveGroupId, getDestination, getLink, getPairKeyForDestination, getPairKeyForSource, getResolvedLink, getSource, requestSourceMeasure, setActiveGroupId, setDestination, setSource, };
|
|
16
18
|
//# sourceMappingURL=links.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../../src/stores/bounds/internals/links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../../../../src/stores/bounds/internals/links.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAe9E,OAAO,KAAK,EACX,oBAAoB,EACpB,QAAQ,EACR,OAAO,EAEP,SAAS,EACT,aAAa,EAEb,KAAK,EACL,OAAO,EACP,MAAM,UAAU,CAAC;AAgOlB,iBAAS,SAAS,CACjB,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,GAAE,UAAe,EACvB,KAAK,CAAC,EAAE,QAAQ,EAChB,YAAY,GAAE,oBAAyB,QAoCvC;AAED,iBAAS,cAAc,CACtB,OAAO,EAAE,aAAa,EACtB,GAAG,EAAE,KAAK,EACV,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,kBAAkB,EAC1B,MAAM,GAAE,UAAe,EACvB,KAAK,CAAC,EAAE,QAAQ,EAChB,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bounds/internals/resolver.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"resolver.d.ts","sourceRoot":"","sources":["../../../../../src/stores/bounds/internals/resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,sBAAsB,EACtB,wBAAwB,EACxB,KAAK,EACL,MAAM,UAAU,CAAC;AAGlB,iBAAS,qBAAqB,CAC7B,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,wBAAwB,GAC/B,sBAAsB,CAkBxB;AAED,OAAO,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-link-accessor.d.ts","sourceRoot":"","sources":["../../../../../src/utils/bounds/helpers/create-link-accessor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACX,wBAAwB,EACxB,UAAU,EACV,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,KAAK,QAAQ,GAAG,MAAM,wBAAwB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG;IAC1B,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,UAAU,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,UAAU,QAAQ,KAAG,YA0BvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,8 +9,14 @@ import {
|
|
|
9
9
|
import { scheduleOnUI } from "react-native-worklets";
|
|
10
10
|
import { useDescriptorsStore } from "../../../../providers/screen/descriptors";
|
|
11
11
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
12
|
-
import {
|
|
13
|
-
|
|
12
|
+
import {
|
|
13
|
+
createScreenPairKey,
|
|
14
|
+
getSourceScreenKeyFromPairKey,
|
|
15
|
+
} from "../../../../stores/bounds/helpers/link-pairs.helpers";
|
|
16
|
+
import {
|
|
17
|
+
getEntry,
|
|
18
|
+
getMatchingSourceScreenKey,
|
|
19
|
+
} from "../../../../stores/bounds/internals/entries";
|
|
14
20
|
import { getLink } from "../../../../stores/bounds/internals/links";
|
|
15
21
|
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
16
22
|
import type { BoundTag } from "../../../../stores/bounds/types";
|
|
@@ -50,12 +56,11 @@ export const useInitialDestinationMeasurement = ({
|
|
|
50
56
|
const destinationPairKey = useDescriptorsStore(
|
|
51
57
|
(s) => s.derivations.destinationPairKey,
|
|
52
58
|
);
|
|
53
|
-
const ancestorDestinationPairKey = useDescriptorsStore(
|
|
54
|
-
(s) => s.derivations.ancestorDestinationPairKey,
|
|
55
|
-
);
|
|
56
59
|
const destinationEnabled = enabled && !nextScreenKey;
|
|
57
|
-
const
|
|
58
|
-
|
|
60
|
+
const canReceiveDestination = destinationEnabled && !!destinationPairKey;
|
|
61
|
+
const preferredSourceScreenKey = destinationPairKey
|
|
62
|
+
? getSourceScreenKeyFromPairKey(destinationPairKey)
|
|
63
|
+
: undefined;
|
|
59
64
|
const progress = AnimationStore.getValue(
|
|
60
65
|
currentScreenKey,
|
|
61
66
|
"transitionProgress",
|
|
@@ -84,6 +89,16 @@ export const useInitialDestinationMeasurement = ({
|
|
|
84
89
|
|
|
85
90
|
const claimLifecycleStartBlock = useCallback(() => {
|
|
86
91
|
"worklet";
|
|
92
|
+
if (
|
|
93
|
+
!canReceiveDestination ||
|
|
94
|
+
!getMatchingSourceScreenKey(
|
|
95
|
+
tag,
|
|
96
|
+
currentScreenKey,
|
|
97
|
+
preferredSourceScreenKey,
|
|
98
|
+
)
|
|
99
|
+
) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
87
102
|
|
|
88
103
|
// The progress check and block claim must share one UI-thread operation.
|
|
89
104
|
// Otherwise a JS-thread layout effect can observe zero, enqueue the block,
|
|
@@ -94,10 +109,18 @@ export const useInitialDestinationMeasurement = ({
|
|
|
94
109
|
|
|
95
110
|
blockLifecycleStart();
|
|
96
111
|
isBlockingLifecycleStart.set(1);
|
|
97
|
-
}, [
|
|
112
|
+
}, [
|
|
113
|
+
blockLifecycleStart,
|
|
114
|
+
canReceiveDestination,
|
|
115
|
+
currentScreenKey,
|
|
116
|
+
isBlockingLifecycleStart,
|
|
117
|
+
progress,
|
|
118
|
+
preferredSourceScreenKey,
|
|
119
|
+
tag,
|
|
120
|
+
]);
|
|
98
121
|
|
|
99
122
|
useLayoutEffect(() => {
|
|
100
|
-
if (!
|
|
123
|
+
if (!canReceiveDestination) {
|
|
101
124
|
return;
|
|
102
125
|
}
|
|
103
126
|
|
|
@@ -115,9 +138,8 @@ export const useInitialDestinationMeasurement = ({
|
|
|
115
138
|
};
|
|
116
139
|
}, [
|
|
117
140
|
claimLifecycleStartBlock,
|
|
118
|
-
destinationEnabled,
|
|
119
141
|
escapeClipping,
|
|
120
|
-
|
|
142
|
+
canReceiveDestination,
|
|
121
143
|
releaseLifecycleStartBlock,
|
|
122
144
|
]);
|
|
123
145
|
|
|
@@ -125,11 +147,7 @@ export const useInitialDestinationMeasurement = ({
|
|
|
125
147
|
() => {
|
|
126
148
|
"worklet";
|
|
127
149
|
|
|
128
|
-
if (
|
|
129
|
-
!destinationEnabled ||
|
|
130
|
-
!initialDestinationPairKey ||
|
|
131
|
-
isBlockingLifecycleStart.get() <= 0
|
|
132
|
-
) {
|
|
150
|
+
if (!canReceiveDestination || isBlockingLifecycleStart.get() <= 0) {
|
|
133
151
|
return null;
|
|
134
152
|
}
|
|
135
153
|
|
|
@@ -138,17 +156,21 @@ export const useInitialDestinationMeasurement = ({
|
|
|
138
156
|
}
|
|
139
157
|
|
|
140
158
|
const retryTick = retryToken.get();
|
|
141
|
-
const sourceScreenKey =
|
|
142
|
-
|
|
159
|
+
const sourceScreenKey = getMatchingSourceScreenKey(
|
|
160
|
+
tag,
|
|
161
|
+
currentScreenKey,
|
|
162
|
+
preferredSourceScreenKey,
|
|
143
163
|
);
|
|
164
|
+
const pairKey = sourceScreenKey
|
|
165
|
+
? createScreenPairKey(sourceScreenKey, currentScreenKey)
|
|
166
|
+
: undefined;
|
|
144
167
|
const signal = getInitialDestinationMeasurementSignal({
|
|
145
168
|
enabled: destinationEnabled,
|
|
146
|
-
|
|
147
|
-
ancestorDestinationPairKey,
|
|
169
|
+
pairKey,
|
|
148
170
|
linkId: linkKey,
|
|
149
171
|
group,
|
|
150
172
|
destinationPresent: getEntry(tag, currentScreenKey) !== null,
|
|
151
|
-
sourcePresent:
|
|
173
|
+
sourcePresent: sourceScreenKey !== null,
|
|
152
174
|
linkState: pairs.get(),
|
|
153
175
|
});
|
|
154
176
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useAnimatedReaction, useSharedValue } from "react-native-reanimated";
|
|
2
2
|
import { useDescriptorsStore } from "../../../../providers/screen/descriptors";
|
|
3
|
+
import { getPairKeyForSource } from "../../../../stores/bounds/internals/links";
|
|
3
4
|
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
4
5
|
import type { BoundTag } from "../../../../stores/bounds/types";
|
|
5
6
|
import type { MeasureBoundary } from "../../types";
|
|
@@ -11,12 +12,16 @@ export const useInitialSourceMeasurement = (params: {
|
|
|
11
12
|
boundTag: BoundTag;
|
|
12
13
|
}) => {
|
|
13
14
|
const { enabled, measureBoundary, boundTag } = params;
|
|
14
|
-
const
|
|
15
|
+
const currentScreenKey = useDescriptorsStore(
|
|
16
|
+
(s) => s.derivations.currentScreenKey,
|
|
17
|
+
);
|
|
15
18
|
const lastSourceCaptureSignal = useSharedValue<string | null>(null);
|
|
16
19
|
|
|
17
20
|
useAnimatedReaction(
|
|
18
21
|
() => {
|
|
19
22
|
"worklet";
|
|
23
|
+
const sourcePairKey =
|
|
24
|
+
getPairKeyForSource(boundTag.tag, currentScreenKey) ?? undefined;
|
|
20
25
|
return getInitialSourceCaptureSignal({
|
|
21
26
|
enabled,
|
|
22
27
|
sourcePairKey,
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { useAnimatedReaction } from "react-native-reanimated";
|
|
2
2
|
import { useDescriptorsStore } from "../../../../providers/screen/descriptors";
|
|
3
3
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
4
|
+
import {
|
|
5
|
+
getPairKeyForDestination,
|
|
6
|
+
getPairKeyForSource,
|
|
7
|
+
} from "../../../../stores/bounds/internals/links";
|
|
4
8
|
import { pairs } from "../../../../stores/bounds/internals/state";
|
|
5
9
|
import type { BoundTag } from "../../../../stores/bounds/types";
|
|
6
10
|
import type { MeasureBoundary } from "../../types";
|
|
@@ -22,13 +26,6 @@ export const useRefreshBoundary = ({
|
|
|
22
26
|
(s) => s.derivations.currentScreenKey,
|
|
23
27
|
);
|
|
24
28
|
const nextScreenKey = useDescriptorsStore((s) => s.derivations.nextScreenKey);
|
|
25
|
-
const sourcePairKey = useDescriptorsStore((s) => s.derivations.sourcePairKey);
|
|
26
|
-
const destinationPairKey = useDescriptorsStore(
|
|
27
|
-
(s) => s.derivations.destinationPairKey,
|
|
28
|
-
);
|
|
29
|
-
const ancestorDestinationPairKey = useDescriptorsStore(
|
|
30
|
-
(s) => s.derivations.ancestorDestinationPairKey,
|
|
31
|
-
);
|
|
32
29
|
// Source-side boundaries refresh from the next screen's lifecycle pulse.
|
|
33
30
|
// Destination-side boundaries have no next screen, so they refresh from self.
|
|
34
31
|
const refreshScreenKey = nextScreenKey ?? currentScreenKey;
|
|
@@ -46,14 +43,16 @@ export const useRefreshBoundary = ({
|
|
|
46
43
|
if (!shouldRefresh) {
|
|
47
44
|
return null;
|
|
48
45
|
}
|
|
46
|
+
const sourcePairKey =
|
|
47
|
+
getPairKeyForSource(boundTag.tag, currentScreenKey) ?? undefined;
|
|
48
|
+
const destinationPairKey =
|
|
49
|
+
getPairKeyForDestination(boundTag.tag, currentScreenKey) ?? undefined;
|
|
49
50
|
|
|
50
51
|
return getRefreshBoundarySignal({
|
|
51
52
|
enabled,
|
|
52
53
|
currentScreenKey,
|
|
53
54
|
sourcePairKey,
|
|
54
55
|
destinationPairKey,
|
|
55
|
-
ancestorDestinationPairKey,
|
|
56
|
-
nextScreenKey,
|
|
57
56
|
linkId: linkKey,
|
|
58
57
|
group,
|
|
59
58
|
shouldRefresh,
|
|
@@ -60,10 +60,11 @@ export const useBoundaryMeasurement = ({
|
|
|
60
60
|
escapeClipping,
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
-
//
|
|
64
|
-
//
|
|
63
|
+
// Presence and source capture must not depend on this screen owning an
|
|
64
|
+
// interpolator: a nested source can participate in a transition owned by a
|
|
65
|
+
// different navigator.
|
|
65
66
|
useBoundaryPresence({
|
|
66
|
-
enabled
|
|
67
|
+
enabled,
|
|
67
68
|
boundTag,
|
|
68
69
|
currentScreenKey,
|
|
69
70
|
boundaryConfig,
|
|
@@ -72,7 +73,7 @@ export const useBoundaryMeasurement = ({
|
|
|
72
73
|
});
|
|
73
74
|
|
|
74
75
|
useInitialSourceMeasurement({
|
|
75
|
-
enabled
|
|
76
|
+
enabled,
|
|
76
77
|
measureBoundary,
|
|
77
78
|
boundTag,
|
|
78
79
|
});
|
|
@@ -20,8 +20,7 @@ export type InitialDestinationMeasurementSignal = {
|
|
|
20
20
|
|
|
21
21
|
export const getInitialDestinationMeasurementSignal = (params: {
|
|
22
22
|
enabled: boolean;
|
|
23
|
-
|
|
24
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
23
|
+
pairKey?: ScreenPairKey;
|
|
25
24
|
linkId: string;
|
|
26
25
|
group?: string;
|
|
27
26
|
destinationPresent: boolean;
|
|
@@ -31,16 +30,13 @@ export const getInitialDestinationMeasurementSignal = (params: {
|
|
|
31
30
|
"worklet";
|
|
32
31
|
const {
|
|
33
32
|
enabled,
|
|
34
|
-
|
|
35
|
-
ancestorDestinationPairKey,
|
|
33
|
+
pairKey,
|
|
36
34
|
linkId,
|
|
37
35
|
group,
|
|
38
36
|
destinationPresent,
|
|
39
37
|
sourcePresent,
|
|
40
38
|
linkState,
|
|
41
39
|
} = params;
|
|
42
|
-
const pairKey = destinationPairKey ?? ancestorDestinationPairKey;
|
|
43
|
-
|
|
44
40
|
if (!enabled || !pairKey) {
|
|
45
41
|
return null;
|
|
46
42
|
}
|
|
@@ -31,8 +31,6 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
31
31
|
currentScreenKey: string;
|
|
32
32
|
sourcePairKey?: ScreenPairKey;
|
|
33
33
|
destinationPairKey?: ScreenPairKey;
|
|
34
|
-
ancestorDestinationPairKey?: ScreenPairKey;
|
|
35
|
-
nextScreenKey?: string;
|
|
36
34
|
linkId: string;
|
|
37
35
|
group?: string;
|
|
38
36
|
shouldRefresh: boolean;
|
|
@@ -45,8 +43,6 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
45
43
|
currentScreenKey,
|
|
46
44
|
sourcePairKey,
|
|
47
45
|
destinationPairKey,
|
|
48
|
-
ancestorDestinationPairKey,
|
|
49
|
-
nextScreenKey,
|
|
50
46
|
linkId,
|
|
51
47
|
group,
|
|
52
48
|
shouldRefresh,
|
|
@@ -79,9 +75,7 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
79
75
|
);
|
|
80
76
|
}
|
|
81
77
|
|
|
82
|
-
const refreshDestinationPairKey =
|
|
83
|
-
destinationPairKey ??
|
|
84
|
-
(nextScreenKey ? undefined : ancestorDestinationPairKey);
|
|
78
|
+
const refreshDestinationPairKey = destinationPairKey;
|
|
85
79
|
|
|
86
80
|
if (!refreshDestinationPairKey) {
|
|
87
81
|
return null;
|
|
@@ -114,9 +108,7 @@ export const getRefreshBoundarySignal = (params: {
|
|
|
114
108
|
);
|
|
115
109
|
}
|
|
116
110
|
|
|
117
|
-
const refreshDestinationPairKey =
|
|
118
|
-
destinationPairKey ??
|
|
119
|
-
(nextScreenKey ? undefined : ancestorDestinationPairKey);
|
|
111
|
+
const refreshDestinationPairKey = destinationPairKey;
|
|
120
112
|
|
|
121
113
|
if (!refreshDestinationPairKey) return null;
|
|
122
114
|
|
|
@@ -6,7 +6,7 @@ import type { BaseStackDescriptor } from "../../../types/stack.types";
|
|
|
6
6
|
import createProvider from "../../../utils/create-provider";
|
|
7
7
|
import type { DescriptorDerivations } from "./helpers/derive-descriptor-derivations";
|
|
8
8
|
import { deriveDescriptorDerivations } from "./helpers/derive-descriptor-derivations";
|
|
9
|
-
import {
|
|
9
|
+
import { getAncestorKeys } from "./helpers/get-ancestor-keys";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Base descriptor interface - minimal contract for all stack types.
|
|
@@ -84,8 +84,8 @@ export const { DescriptorsProvider, useDescriptorsStore } = createProvider(
|
|
|
84
84
|
[resolvedPrevious, resolvedCurrent, resolvedNext],
|
|
85
85
|
);
|
|
86
86
|
|
|
87
|
-
const
|
|
88
|
-
() =>
|
|
87
|
+
const ancestorKeys = useMemo(
|
|
88
|
+
() => getAncestorKeys(resolvedCurrent),
|
|
89
89
|
[resolvedCurrent],
|
|
90
90
|
);
|
|
91
91
|
|
|
@@ -96,15 +96,8 @@ export const { DescriptorsProvider, useDescriptorsStore } = createProvider(
|
|
|
96
96
|
current: resolvedCurrent,
|
|
97
97
|
next: resolvedNext,
|
|
98
98
|
ancestorKeys,
|
|
99
|
-
ancestorDestinationPairKey,
|
|
100
99
|
}),
|
|
101
|
-
[
|
|
102
|
-
resolvedPrevious,
|
|
103
|
-
resolvedCurrent,
|
|
104
|
-
resolvedNext,
|
|
105
|
-
ancestorKeys,
|
|
106
|
-
ancestorDestinationPairKey,
|
|
107
|
-
],
|
|
100
|
+
[resolvedPrevious, resolvedCurrent, resolvedNext, ancestorKeys],
|
|
108
101
|
);
|
|
109
102
|
|
|
110
103
|
return {
|