react-native-screen-transitions 3.5.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
- package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
- package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +8 -8
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js +1 -1
- package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
- package/lib/commonjs/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/index.js +85 -1
- package/lib/commonjs/shared/stores/bounds/index.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/registry.js +7 -0
- package/lib/commonjs/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js +3 -1
- package/lib/commonjs/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js +3 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/commonjs/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
- package/lib/commonjs/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js +2 -2
- package/lib/commonjs/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/commonjs/shared/utils/bounds/zoom/build.js +4 -3
- package/lib/commonjs/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js +2 -2
- package/lib/module/shared/components/create-boundary-component/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js +3 -3
- package/lib/module/shared/components/create-boundary-component/helpers/resolve-pending-source-key.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js +3 -3
- package/lib/module/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js +7 -6
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js +2 -2
- package/lib/module/shared/components/create-boundary-component/hooks/use-capture-source-boundary.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js +8 -8
- package/lib/module/shared/components/create-boundary-component/hooks/use-measurer.js.map +1 -1
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js +6 -5
- package/lib/module/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map +1 -1
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js +4 -4
- package/lib/module/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +8 -8
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js +1 -1
- package/lib/module/shared/providers/screen/styles/components/maybe-floating-container.js.map +1 -1
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js +6 -6
- package/lib/module/shared/stores/bounds/helpers/apply-measured-bounds-writes.js.map +1 -1
- package/lib/module/shared/stores/bounds/index.js +85 -1
- package/lib/module/shared/stores/bounds/index.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/registry.js +7 -0
- package/lib/module/shared/stores/bounds/internals/registry.js.map +1 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js +3 -1
- package/lib/module/shared/stores/bounds/internals/resolver.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-interpolators.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js +3 -3
- package/lib/module/shared/utils/bounds/helpers/create-link-accessor.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js +5 -4
- package/lib/module/shared/utils/bounds/helpers/prepare-bound-styles.js.map +1 -1
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js +2 -2
- package/lib/module/shared/utils/bounds/helpers/styles/compute.js.map +1 -1
- package/lib/module/shared/utils/bounds/zoom/build.js +4 -3
- package/lib/module/shared/utils/bounds/zoom/build.js.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts +207 -4
- package/lib/typescript/shared/components/create-boundary-component/components/boundary-target.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/helpers/resolve-pending-source-key.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-boundary-presence.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-capture-source-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-measurer.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/hooks/use-refresh-boundary.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts +208 -4
- package/lib/typescript/shared/components/create-boundary-component/index.d.ts.map +1 -1
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts +6 -5
- package/lib/typescript/shared/components/create-transition-aware-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts +1 -1
- package/lib/typescript/shared/components/overlay/variations/overlay-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts +1 -1
- package/lib/typescript/shared/components/scene-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts +2 -2
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +918 -656
- package/lib/typescript/shared/index.d.ts.map +1 -1
- package/lib/typescript/shared/providers/register-bounds.provider.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts +1 -1
- package/lib/typescript/shared/providers/screen/styles/components/maybe-floating-container.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +2 -2
- package/lib/typescript/shared/stores/bounds/index.d.ts +25 -0
- package/lib/typescript/shared/stores/bounds/index.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/registry.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/internals/resolver.d.ts.map +1 -1
- package/lib/typescript/shared/stores/bounds/types.d.ts +3 -0
- package/lib/typescript/shared/stores/bounds/types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-interpolators.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/create-link-accessor.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/prepare-bound-styles.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts +1 -1
- package/lib/typescript/shared/utils/bounds/helpers/styles/compute.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/zoom/build.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/shared/components/create-boundary-component/create-boundary-component.tsx +2 -2
- package/src/shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts +7 -4
- package/src/shared/components/create-boundary-component/hooks/use-boundary-presence.ts +6 -3
- package/src/shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts +12 -7
- package/src/shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts +2 -4
- package/src/shared/components/create-boundary-component/hooks/use-measurer.ts +14 -12
- package/src/shared/components/create-boundary-component/hooks/use-refresh-boundary.ts +6 -12
- package/src/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts +8 -4
- package/src/shared/providers/register-bounds.provider.tsx +13 -16
- package/src/shared/providers/screen/styles/components/maybe-floating-container.tsx +1 -1
- package/src/shared/stores/bounds/helpers/apply-measured-bounds-writes.ts +6 -6
- package/src/shared/stores/bounds/index.ts +182 -0
- package/src/shared/stores/bounds/internals/registry.ts +8 -0
- package/src/shared/stores/bounds/internals/resolver.ts +2 -0
- package/src/shared/stores/bounds/types.ts +3 -0
- package/src/shared/utils/bounds/helpers/create-interpolators.ts +3 -6
- package/src/shared/utils/bounds/helpers/create-link-accessor.ts +7 -6
- package/src/shared/utils/bounds/helpers/prepare-bound-styles.ts +8 -8
- package/src/shared/utils/bounds/helpers/styles/compute.ts +3 -5
- package/src/shared/utils/bounds/zoom/build.ts +5 -6
package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js
CHANGED
|
@@ -9,7 +9,7 @@ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reani
|
|
|
9
9
|
var _constants = require("../../constants");
|
|
10
10
|
var _descriptors = require("../../providers/screen/descriptors");
|
|
11
11
|
var _styles = require("../../providers/screen/styles");
|
|
12
|
-
var
|
|
12
|
+
var _groups = require("../../stores/bounds/internals/groups");
|
|
13
13
|
var _styles2 = require("../../utils/bounds/helpers/styles/styles");
|
|
14
14
|
var _useBoundaryPresence = require("./hooks/use-boundary-presence");
|
|
15
15
|
var _useCaptureDestinationBoundary = require("./hooks/use-capture-destination-boundary");
|
|
@@ -156,7 +156,7 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
156
156
|
const handlePress = (0, _react.useCallback)((...args) => {
|
|
157
157
|
// Press path has priority: capture source before user onPress/navigation.
|
|
158
158
|
if (group) {
|
|
159
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
159
|
+
(0, _reactNativeReanimated.runOnUI)(_groups.setGroupActiveId)(group, String(id));
|
|
160
160
|
}
|
|
161
161
|
(0, _reactNativeReanimated.runOnUI)(measureBoundary)({
|
|
162
162
|
intent: "capture-source"
|
package/lib/commonjs/shared/components/create-boundary-component/create-boundary-component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_groups","_styles2","_useBoundaryPresence","_useCaptureDestinationBoundary","_useCaptureSourceBoundary","_useMeasurer","_useRefreshBoundary","_boundaryOwner","_buildBoundaryMatchKey","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createBoundaryComponent","Wrapped","options","alreadyAnimated","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","ownerRef","useAnimatedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","rest","sharedBoundTag","buildBoundaryMatchKey","previousScreenKey","preferredSourceScreenKey","currentScreenKey","nextScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","hasConfiguredInterpolator","useDescriptorDerivations","runtimeEnabled","hasNextScreen","boundaryConfig","useMemo","undefined","preparedStyles","prepareStyleForBounds","stylesMap","useScreenStyles","associatedStyles","useAnimatedStyle","NO_STYLES","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","useBoundaryOwner","associatedTargetStyles","measureBoundary","useMeasurer","measuredAnimatedRef","shouldRunDestinationEffects","useBoundaryPresence","useCaptureSourceBoundary","useCaptureDestinationBoundary","expectedSourceScreenKey","useRefreshBoundary","handlePress","useCallback","args","runOnUI","setGroupActiveId","String","intent","resolvedOnPress","useImperativeHandle","current","jsx","BoundaryOwnerProvider","value","children","ref","collapsable","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/create-boundary-component/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;A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AA,CAAA8F,GAAA,EAAChG,cAAA,CAAAiG,qBAAqB;MAACC,KAAK,EAAE1B,YAAa;MAAA2B,QAAA,eAC1C,IAAAjG,WAAA,CAAA8F,GAAA,EAACtE,iBAAiB;QAAA,GACbkB,IAAI;QACRwD,GAAG,EAAEnE,QAAS;QACdS,KAAK,EAAE,CACNA,KAAK,EACLc,cAAc,GACXkB,eAAe,GACdN,wBAAwB,GACxBH,gBAAgB,GACjBL,SAAS,CACX;QACFjB,OAAO,EAAEkD,eAAgB;QACzBQ,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAO,IAAAC,WAAI,EACV3E,8BAAQ,CAACC,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.resolvePendingSourceKey = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _registry = require("../../../stores/bounds/internals/registry");
|
|
8
8
|
const resolvePendingSourceKey = (sharedBoundTag, expectedSourceScreenKey) => {
|
|
9
9
|
"worklet";
|
|
10
10
|
|
|
11
|
-
if (expectedSourceScreenKey && (
|
|
11
|
+
if (expectedSourceScreenKey && ((0, _registry.getPendingLink)(sharedBoundTag, expectedSourceScreenKey) || (0, _registry.hasSourceLink)(sharedBoundTag, expectedSourceScreenKey))) {
|
|
12
12
|
return expectedSourceScreenKey;
|
|
13
13
|
}
|
|
14
|
-
return
|
|
14
|
+
return (0, _registry.getPendingLink)(sharedBoundTag)?.source.screenKey ?? null;
|
|
15
15
|
};
|
|
16
16
|
exports.resolvePendingSourceKey = resolvePendingSourceKey;
|
|
17
17
|
//# sourceMappingURL=resolve-pending-source-key.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_registry","require","resolvePendingSourceKey","sharedBoundTag","expectedSourceScreenKey","getPendingLink","hasSourceLink","source","screenKey","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/helpers/resolve-pending-source-key.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAKO,MAAMC,uBAAuB,GAAGA,CACtCC,cAAsB,EACtBC,uBAAgC,KACb;EACnB,SAAS;;EACT,IACCA,uBAAuB,KACtB,IAAAC,wBAAc,EAACF,cAAc,EAAEC,uBAAuB,CAAC,IACvD,IAAAE,uBAAa,EAACH,cAAc,EAAEC,uBAAuB,CAAC,CAAC,EACvD;IACD,OAAOA,uBAAuB;EAC/B;EAEA,OAAO,IAAAC,wBAAc,EAACF,cAAc,CAAC,EAAEI,MAAM,CAACC,SAAS,IAAI,IAAI;AAChE,CAAC;AAACC,OAAA,CAAAP,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useBoundaryPresence = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
|
-
var
|
|
9
|
+
var _registry = require("../../../stores/bounds/internals/registry");
|
|
10
10
|
const useBoundaryPresence = params => {
|
|
11
11
|
const {
|
|
12
12
|
enabled,
|
|
@@ -23,14 +23,14 @@ const useBoundaryPresence = params => {
|
|
|
23
23
|
// biome-ignore lint/correctness/useExhaustiveDependencies: <Depend on the ancestory keys signature>
|
|
24
24
|
(0, _react.useLayoutEffect)(() => {
|
|
25
25
|
if (!enabled) return;
|
|
26
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
26
|
+
(0, _reactNativeReanimated.runOnUI)(_registry.setEntry)(sharedBoundTag, currentScreenKey, {
|
|
27
27
|
ancestorKeys,
|
|
28
28
|
boundaryConfig,
|
|
29
29
|
navigatorKey,
|
|
30
30
|
ancestorNavigatorKeys
|
|
31
31
|
});
|
|
32
32
|
return () => {
|
|
33
|
-
(0, _reactNativeReanimated.runOnUI)(
|
|
33
|
+
(0, _reactNativeReanimated.runOnUI)(_registry.removeEntry)(sharedBoundTag, currentScreenKey);
|
|
34
34
|
};
|
|
35
35
|
}, [enabled, sharedBoundTag, currentScreenKey, ancestorKeysSignature, navigatorKey, ancestorNavigatorKeysSignature, boundaryConfig]);
|
|
36
36
|
};
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-boundary-presence.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_registry","useBoundaryPresence","params","enabled","sharedBoundTag","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","boundaryConfig","ancestorKeysSignature","join","ancestorNavigatorKeysSignature","useLayoutEffect","runOnUI","setEntry","removeEntry","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-boundary-presence.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AAMO,MAAMG,mBAAmB,GAAIC,MAQnC,IAAK;EACL,MAAM;IACLC,OAAO;IACPC,cAAc;IACdC,gBAAgB;IAChBC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC;EACD,CAAC,GAAGP,MAAM;EACV,MAAMQ,qBAAqB,GAAGJ,YAAY,CAACK,IAAI,CAAC,GAAG,CAAC;EACpD,MAAMC,8BAA8B,GAAGJ,qBAAqB,EAAEG,IAAI,CAAC,GAAG,CAAC;;EAEvE;EACA,IAAAE,sBAAe,EAAC,MAAM;IACrB,IAAI,CAACV,OAAO,EAAE;IAEd,IAAAW,8BAAO,EAACC,kBAAQ,CAAC,CAACX,cAAc,EAAEC,gBAAgB,EAAE;MACnDC,YAAY;MACZG,cAAc;MACdF,YAAY;MACZC;IACD,CAAC,CAAC;IAEF,OAAO,MAAM;MACZ,IAAAM,8BAAO,EAACE,qBAAW,CAAC,CAACZ,cAAc,EAAEC,gBAAgB,CAAC;IACvD,CAAC;EACF,CAAC,EAAE,CACFF,OAAO,EACPC,cAAc,EACdC,gBAAgB,EAChBK,qBAAqB,EACrBH,YAAY,EACZK,8BAA8B,EAC9BH,cAAc,CACd,CAAC;AACH,CAAC;AAACQ,OAAA,CAAAhB,mBAAA,GAAAA,mBAAA","ignoreList":[]}
|
|
@@ -7,7 +7,8 @@ exports.useCaptureDestinationBoundary = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
9
9
|
var _animation = require("../../../stores/animation.store");
|
|
10
|
-
var
|
|
10
|
+
var _groups = require("../../../stores/bounds/internals/groups");
|
|
11
|
+
var _registry = require("../../../stores/bounds/internals/registry");
|
|
11
12
|
var _system = require("../../../stores/system.store");
|
|
12
13
|
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
13
14
|
const VIEWPORT_RETRY_DELAY_MS = 16;
|
|
@@ -64,13 +65,13 @@ const useCaptureDestinationBoundary = ({
|
|
|
64
65
|
return [0, retryTick];
|
|
65
66
|
}
|
|
66
67
|
const resolvedSourceKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, expectedSourceScreenKey);
|
|
67
|
-
const hasAttachableSourceLink = resolvedSourceKey ?
|
|
68
|
-
const
|
|
69
|
-
const shouldBlock = enabled && !!resolvedSourceKey && hasAttachableSourceLink && !
|
|
68
|
+
const hasAttachableSourceLink = resolvedSourceKey ? (0, _registry.getPendingLink)(sharedBoundTag, resolvedSourceKey) !== null || (0, _registry.hasSourceLink)(sharedBoundTag, resolvedSourceKey) : false;
|
|
69
|
+
const hasDestination = (0, _registry.hasDestinationLink)(sharedBoundTag, currentScreenKey);
|
|
70
|
+
const shouldBlock = enabled && !!resolvedSourceKey && hasAttachableSourceLink && !hasDestination;
|
|
70
71
|
if (!shouldBlock) {
|
|
71
72
|
return [0, retryTick];
|
|
72
73
|
}
|
|
73
|
-
if (group &&
|
|
74
|
+
if (group && (0, _groups.getGroupActiveId)(group) !== String(id)) {
|
|
74
75
|
return [0, retryTick];
|
|
75
76
|
}
|
|
76
77
|
return [1, retryTick];
|
|
@@ -85,7 +86,7 @@ const useCaptureDestinationBoundary = ({
|
|
|
85
86
|
measureBoundary({
|
|
86
87
|
intent: "complete-destination"
|
|
87
88
|
});
|
|
88
|
-
if (
|
|
89
|
+
if ((0, _registry.hasDestinationLink)(sharedBoundTag, currentScreenKey)) {
|
|
89
90
|
releaseLifecycleStartBlock();
|
|
90
91
|
return;
|
|
91
92
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_animation","_groups","_registry","_system","_resolvePendingSourceKey","VIEWPORT_RETRY_DELAY_MS","useCaptureDestinationBoundary","sharedBoundTag","enabled","id","group","currentScreenKey","expectedSourceScreenKey","measureBoundary","animating","AnimationStore","getValue","closing","system","SystemStore","getBag","blockLifecycleStart","unblockLifecycleStart","actions","isBlockingLifecycleStart","useSharedValue","retryToken","ensureLifecycleStartBlocked","get","set","releaseLifecycleStartBlock","cancelAnimation","scheduleViewportRetry","withDelay","withTiming","duration","useAnimatedReaction","retryTick","resolvedSourceKey","resolvePendingSourceKey","hasAttachableSourceLink","getPendingLink","hasSourceLink","hasDestination","hasDestinationLink","shouldBlock","getGroupActiveId","String","intent","useLayoutEffect","runOnUI","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-destination-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAQA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA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AAC;MAC5B;IACD;IAEAH,2BAA2B,CAAC,CAAC;IAC7Bd,eAAe,CAAC;MAAEmC,MAAM,EAAE;IAAuB,CAAC,CAAC;IAEnD,IAAI,IAAAJ,4BAAkB,EAACrC,cAAc,EAAEI,gBAAgB,CAAC,EAAE;MACzDmB,0BAA0B,CAAC,CAAC;MAC5B;IACD;IAEAE,qBAAqB,CAAC,CAAC;EACxB,CACD,CAAC;EAED,IAAAiB,sBAAe,EAAC,MAAM;IACrB,OAAO,MAAM;MACZ,IAAAC,8BAAO,EAAC,MAAM;QACb,SAAS;;QACT,IAAAnB,sCAAe,EAACL,UAAU,CAAC;QAE3B,IAAI,CAACF,wBAAwB,CAACI,GAAG,CAAC,CAAC,EAAE;UACpC;QACD;QAEAN,qBAAqB,CAAC,CAAC;QACvBE,wBAAwB,CAACK,GAAG,CAAC,CAAC,CAAC;MAChC,CAAC,CAAC,CAAC,CAAC;IACL,CAAC;EACF,CAAC,EAAE,CAACL,wBAAwB,EAAEE,UAAU,EAAEJ,qBAAqB,CAAC,CAAC;AAClE,CAAC;AAAC6B,OAAA,CAAA7C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useCaptureSourceBoundary = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
|
-
var
|
|
8
|
+
var _groups = require("../../../stores/bounds/internals/groups");
|
|
9
9
|
const useCaptureSourceBoundary = params => {
|
|
10
10
|
const {
|
|
11
11
|
enabled,
|
|
@@ -27,7 +27,7 @@ const useCaptureSourceBoundary = params => {
|
|
|
27
27
|
if (!enabled) return;
|
|
28
28
|
if (!nextScreenKey) return;
|
|
29
29
|
if (!captureSignal || captureSignal === previousCaptureSignal) return;
|
|
30
|
-
const currentGroupActiveId = group ?
|
|
30
|
+
const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
|
|
31
31
|
if (group && currentGroupActiveId !== String(id)) {
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_groups","useCaptureSourceBoundary","params","enabled","id","group","nextScreenKey","measureBoundary","useAnimatedReaction","captureSignal","previousCaptureSignal","currentGroupActiveId","getGroupActiveId","String","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-capture-source-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAGO,MAAME,wBAAwB,GAAIC,MAOxC,IAAK;EACL,MAAM;IAAEC,OAAO;IAAEC,EAAE;IAAEC,KAAK;IAAEC,aAAa;IAAEC;EAAgB,CAAC,GAAGL,MAAM;EAErE,IAAAM,0CAAmB,EAClB,MAAM;IACL,SAAS;;IACT,IAAI,CAACL,OAAO,IAAI,CAACG,aAAa,EAAE;MAC/B,OAAO,CAAC;IACT;IAEA,OAAOA,aAAa;EACrB,CAAC,EACD,CAACG,aAAa,EAAEC,qBAAqB,KAAK;IACzC,SAAS;;IACT,IAAI,CAACP,OAAO,EAAE;IACd,IAAI,CAACG,aAAa,EAAE;IACpB,IAAI,CAACG,aAAa,IAAIA,aAAa,KAAKC,qBAAqB,EAAE;IAE/D,MAAMC,oBAAoB,GAAGN,KAAK,GAAG,IAAAO,wBAAgB,EAACP,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIM,oBAAoB,KAAKE,MAAM,CAACT,EAAE,CAAC,EAAE;MACjD;IACD;IAEAG,eAAe,CAAC;MAAEO,MAAM,EAAE;IAAiB,CAAC,CAAC;EAC9C,CAAC,EACD,CAACX,OAAO,EAAEC,EAAE,EAAEC,KAAK,EAAEC,aAAa,EAAEC,eAAe,CACpD,CAAC;AACF,CAAC;AAACQ,OAAA,CAAAd,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -7,8 +7,8 @@ exports.useMeasurer = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
-
var _bounds = require("../../../stores/bounds");
|
|
11
10
|
var _applyMeasuredBoundsWrites = require("../../../stores/bounds/helpers/apply-measured-bounds-writes");
|
|
11
|
+
var _registry = require("../../../stores/bounds/internals/registry");
|
|
12
12
|
var _resolvePendingSourceKey = require("../helpers/resolve-pending-source-key");
|
|
13
13
|
var _measurement = require("./helpers/measurement");
|
|
14
14
|
var _measurementRules = require("./helpers/measurement-rules");
|
|
@@ -35,16 +35,16 @@ const useMeasurer = ({
|
|
|
35
35
|
if (!enabled) return;
|
|
36
36
|
const intents = (0, _measurementRules.getMeasureIntentFlags)(intent);
|
|
37
37
|
const expectedSourceScreenKey = (0, _resolvePendingSourceKey.resolvePendingSourceKey)(sharedBoundTag, preferredSourceScreenKey) || undefined;
|
|
38
|
-
const pendingLink = expectedSourceScreenKey ?
|
|
38
|
+
const pendingLink = expectedSourceScreenKey ? (0, _registry.getPendingLink)(sharedBoundTag, expectedSourceScreenKey) : (0, _registry.getPendingLink)(sharedBoundTag);
|
|
39
39
|
const hasPendingLink = pendingLink !== null;
|
|
40
|
-
const hasAttachableSourceLink = expectedSourceScreenKey ?
|
|
41
|
-
const
|
|
42
|
-
const
|
|
40
|
+
const hasAttachableSourceLink = expectedSourceScreenKey ? (0, _registry.hasSourceLink)(sharedBoundTag, expectedSourceScreenKey) : false;
|
|
41
|
+
const hasSource = (0, _registry.hasSourceLink)(sharedBoundTag, currentScreenKey);
|
|
42
|
+
const hasDestination = (0, _registry.hasDestinationLink)(sharedBoundTag, currentScreenKey);
|
|
43
43
|
const writePlan = (0, _measurementRules.resolveMeasureWritePlan)({
|
|
44
44
|
intents,
|
|
45
45
|
hasPendingLink,
|
|
46
|
-
hasSourceLink,
|
|
47
|
-
hasDestinationLink,
|
|
46
|
+
hasSourceLink: hasSource,
|
|
47
|
+
hasDestinationLink: hasDestination,
|
|
48
48
|
hasAttachableSourceLink
|
|
49
49
|
});
|
|
50
50
|
if (!writePlan.writesAny) {
|
|
@@ -56,7 +56,7 @@ const useMeasurer = ({
|
|
|
56
56
|
if (!destinationInViewport && !writePlan.captureSource && !writePlan.refreshSource) {
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
|
-
const existingMeasuredEntry =
|
|
59
|
+
const existingMeasuredEntry = (0, _registry.getMeasuredEntry)(sharedBoundTag, currentScreenKey);
|
|
60
60
|
const hasMeasuredEntryChanged = !existingMeasuredEntry || !(0, _measurement.areMeasurementsEqual)(existingMeasuredEntry.bounds, measured);
|
|
61
61
|
(0, _applyMeasuredBoundsWrites.applyMeasuredBoundsWrites)({
|
|
62
62
|
sharedBoundTag,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_reactNativeReanimated","_applyMeasuredBoundsWrites","_registry","_resolvePendingSourceKey","_measurement","_measurementRules","useMeasurer","enabled","sharedBoundTag","preferredSourceScreenKey","currentScreenKey","ancestorKeys","navigatorKey","ancestorNavigatorKeys","preparedStyles","measuredAnimatedRef","width","viewportWidth","height","viewportHeight","useWindowDimensions","useCallback","intent","intents","getMeasureIntentFlags","expectedSourceScreenKey","resolvePendingSourceKey","undefined","pendingLink","getPendingLink","hasPendingLink","hasAttachableSourceLink","hasSourceLink","hasSource","hasDestination","hasDestinationLink","writePlan","resolveMeasureWritePlan","writesAny","measured","measure","destinationInViewport","wantsDestinationWrite","isMeasurementInViewport","captureSource","refreshSource","existingMeasuredEntry","getMeasuredEntry","hasMeasuredEntryChanged","areMeasurementsEqual","bounds","applyMeasuredBoundsWrites","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldUpdateDestination","refreshDestination","shouldSetDestination","completeDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-measurer.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAKA,IAAAG,0BAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,wBAAA,GAAAL,OAAA;AAEA,IAAAM,YAAA,GAAAN,OAAA;AAIA,IAAAO,iBAAA,GAAAP,OAAA;AAiBO,MAAMQ,WAAW,GAAGA,CAAC;EAC3BC,OAAO;EACPC,cAAc;EACdC,wBAAwB;EACxBC,gBAAgB;EAChBC,YAAY;EACZC,YAAY;EACZC,qBAAqB;EACrBC,cAAc;EACdC;AACkB,CAAC,KAAK;EACxB,MAAM;IAAEC,KAAK,EAAEC,aAAa;IAAEC,MAAM,EAAEC;EAAe,CAAC,GACrD,IAAAC,gCAAmB,EAAC,CAAC;EAEtB,OAAO,IAAAC,kBAAW,EACjB,CAAC;IAAEC;EAAsB,CAAC,GAAG,CAAC,CAAC,KAAK;IACnC,SAAS;;IACT,IAAI,CAACf,OAAO,EAAE;IAEd,MAAMgB,OAAO,GAAG,IAAAC,uCAAqB,EAACF,MAAM,CAAC;IAE7C,MAAMG,uBAA2C,GAChD,IAAAC,gDAAuB,EAAClB,cAAc,EAAEC,wBAAwB,CAAC,IACjEkB,SAAS;IAEV,MAAMC,WAAW,GAAGH,uBAAuB,GACxC,IAAAI,wBAAc,EAACrB,cAAc,EAAEiB,uBAAuB,CAAC,GACvD,IAAAI,wBAAc,EAACrB,cAAc,CAAC;IACjC,MAAMsB,cAAc,GAAGF,WAAW,KAAK,IAAI;IAC3C,MAAMG,uBAAuB,GAAGN,uBAAuB,GACpD,IAAAO,uBAAa,EAACxB,cAAc,EAAEiB,uBAAuB,CAAC,GACtD,KAAK;IACR,MAAMQ,SAAS,GAAG,IAAAD,uBAAa,EAACxB,cAAc,EAAE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AAC;EACH,CAAC,EACD,CACClC,OAAO,EACPC,cAAc,EACdC,wBAAwB,EACxBC,gBAAgB,EAChBC,YAAY,EACZC,YAAY,EACZC,qBAAqB,EACrBC,cAAc,EACdC,mBAAmB,EACnBE,aAAa,EACbE,cAAc,CAEhB,CAAC;AACF,CAAC;AAACwC,OAAA,CAAArD,WAAA,GAAAA,WAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js
CHANGED
|
@@ -6,7 +6,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useRefreshBoundary = void 0;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _animation = require("../../../stores/animation.store");
|
|
9
|
-
var
|
|
9
|
+
var _groups = require("../../../stores/bounds/internals/groups");
|
|
10
|
+
var _registry = require("../../../stores/bounds/internals/registry");
|
|
10
11
|
var _gesture = require("../../../stores/gesture.store");
|
|
11
12
|
const useRefreshBoundary = ({
|
|
12
13
|
enabled,
|
|
@@ -29,7 +30,7 @@ const useRefreshBoundary = ({
|
|
|
29
30
|
|
|
30
31
|
if (!enabled || !hasNextScreen) return;
|
|
31
32
|
if (nextValue === 0 || nextValue === previousValue) return;
|
|
32
|
-
const currentGroupActiveId = group ?
|
|
33
|
+
const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
|
|
33
34
|
if (group && currentGroupActiveId !== String(id)) {
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
@@ -37,8 +38,8 @@ const useRefreshBoundary = ({
|
|
|
37
38
|
if (shouldCancelMeasurement) {
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
|
-
const
|
|
41
|
-
const intent = !
|
|
41
|
+
const hasSource = (0, _registry.hasSourceLink)(sharedBoundTag, currentScreenKey);
|
|
42
|
+
const intent = !hasSource ? "capture-source" : group ? "refresh-source" : null;
|
|
42
43
|
if (!intent) {
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
@@ -51,7 +52,7 @@ const useRefreshBoundary = ({
|
|
|
51
52
|
|
|
52
53
|
if (!enabled || hasNextScreen) return;
|
|
53
54
|
if (nextValue === 0 || nextValue === previousValue) return;
|
|
54
|
-
const currentGroupActiveId = group ?
|
|
55
|
+
const currentGroupActiveId = group ? (0, _groups.getGroupActiveId)(group) : null;
|
|
55
56
|
if (group && currentGroupActiveId !== String(id)) {
|
|
56
57
|
return;
|
|
57
58
|
}
|
package/lib/commonjs/shared/components/create-boundary-component/hooks/use-refresh-boundary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_animation","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_animation","_groups","_registry","_gesture","useRefreshBoundary","enabled","sharedBoundTag","id","group","currentScreenKey","nextScreenKey","hasNextScreen","measureBoundary","currentWillAnimate","AnimationStore","getValue","currentAnimating","currentDragging","GestureStore","nextWillAnimate","nextAnimating","nextDragging","useAnimatedReaction","get","nextValue","previousValue","currentGroupActiveId","getGroupActiveId","String","shouldCancelMeasurement","hasSource","hasSourceLink","intent","exports"],"sourceRoot":"../../../../../../src","sources":["shared/components/create-boundary-component/hooks/use-refresh-boundary.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAcO,MAAMK,kBAAkB,GAAGA,CAAC;EAClCC,OAAO;EACPC,cAAc;EACdC,EAAE;EACFC,KAAK;EACLC,gBAAgB;EAChBC,aAAa;EACbC,aAAa;EACbC;AACyB,CAAC,KAAK;EAC/B,MAAMC,kBAAkB,GAAGC,yBAAc,CAACC,QAAQ,CACjDN,gBAAgB,EAChB,aACD,CAAC;EACD,MAAMO,gBAAgB,GAAGF,yBAAc,CAACC,QAAQ,CAC/CN,gBAAgB,EAChB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,CAAC;MAAEoB;IAAO,CAAC,CAAC;EAC5B,CACD,CAAC;EAED,IAAAV,0CAAmB,EAClB,MAAO,CAACX,aAAa,GAAGE,kBAAkB,CAACU,GAAG,CAAC,CAAC,GAAG,CAAE,EACrD,CAACC,SAAS,EAAEC,aAAa,KAAK;IAC7B,SAAS;;IACT,IAAI,CAACpB,OAAO,IAAIM,aAAa,EAAE;IAC/B,IAAIa,SAAS,KAAK,CAAC,IAAIA,SAAS,KAAKC,aAAa,EAAE;IAEpD,MAAMC,oBAAoB,GAAGlB,KAAK,GAAG,IAAAmB,wBAAgB,EAACnB,KAAK,CAAC,GAAG,IAAI;IAEnE,IAAIA,KAAK,IAAIkB,oBAAoB,KAAKE,MAAM,CAACrB,EAAE,CAAC,EAAE;MACjD;IACD;IAEA,MAAMsB,uBAAuB,GAC5B,CAAC,CAACb,gBAAgB,CAACO,GAAG,CAAC,CAAC,IAAI,CAAC,CAACN,eAAe,CAACM,GAAG,CAAC,CAAC;IAEpD,IAAIM,uBAAuB,EAAE;MAC5B;IACD;IAEAjB,eAAe,CAAC;MACfoB,MAAM,EAAE,CAAC,sBAAsB,EAAE,qBAAqB;IACvD,CAAC,CAAC;EACH,CACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAA7B,kBAAA,GAAAA,kBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.resetStoresForScreen = resetStoresForScreen;
|
|
7
7
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
8
8
|
var _animation = require("../../../../stores/animation.store");
|
|
9
|
-
var
|
|
9
|
+
var _clear = require("../../../../stores/bounds/internals/clear");
|
|
10
10
|
var _gesture = require("../../../../stores/gesture.store");
|
|
11
11
|
var _system = require("../../../../stores/system.store");
|
|
12
12
|
function resetStoresForScreen(routeKey, isBranchScreen, branchNavigatorKey) {
|
|
@@ -17,12 +17,12 @@ function resetStoresForScreen(routeKey, isBranchScreen, branchNavigatorKey) {
|
|
|
17
17
|
"worklet";
|
|
18
18
|
|
|
19
19
|
if (!isBranchScreen) return;
|
|
20
|
-
|
|
20
|
+
(0, _clear.clear)(routeKey);
|
|
21
21
|
if (branchNavigatorKey) {
|
|
22
|
-
|
|
22
|
+
(0, _clear.clearByBranch)(branchNavigatorKey);
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
(0, _clear.clearByAncestor)(routeKey);
|
|
26
26
|
})();
|
|
27
27
|
}
|
|
28
28
|
//# sourceMappingURL=reset-stores-for-screen.js.map
|
package/lib/commonjs/shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_animation","
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_animation","_clear","_gesture","_system","resetStoresForScreen","routeKey","isBranchScreen","branchNavigatorKey","AnimationStore","clearBag","GestureStore","SystemStore","runOnUI","clear","clearByBranch","clearByAncestor"],"sourceRoot":"../../../../../../../src","sources":["shared/components/screen-lifecycle/hooks/helpers/reset-stores-for-screen.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAKA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AAEO,SAASK,oBAAoBA,CACnCC,QAAgB,EAChBC,cAAuB,EACvBC,kBAA2B,EAC1B;EACDC,yBAAc,CAACC,QAAQ,CAACJ,QAAQ,CAAC;EACjCK,qBAAY,CAACD,QAAQ,CAACJ,QAAQ,CAAC;EAC/BM,mBAAW,CAACF,QAAQ,CAACJ,QAAQ,CAAC;EAE9B,IAAAO,8BAAO,EAAC,MAAM;IACb,SAAS;;IACT,IAAI,CAACN,cAAc,EAAE;IAErB,IAAAO,YAAK,EAACR,QAAQ,CAAC;IAEf,IAAIE,kBAAkB,EAAE;MACvB,IAAAO,oBAAa,EAACP,kBAAkB,CAAC;MACjC;IACD;IAEA,IAAAQ,sBAAe,EAACV,QAAQ,CAAC;EAC1B,CAAC,CAAC,CAAC,CAAC;AACL","ignoreList":[]}
|
|
@@ -10,8 +10,8 @@ var _reactNativeReanimated = require("react-native-reanimated");
|
|
|
10
10
|
var _useStableCallback = _interopRequireDefault(require("../hooks/use-stable-callback"));
|
|
11
11
|
var _useStableCallbackValue = _interopRequireDefault(require("../hooks/use-stable-callback-value"));
|
|
12
12
|
var _animation = require("../stores/animation.store");
|
|
13
|
-
var _bounds = require("../stores/bounds");
|
|
14
13
|
var _applyMeasuredBoundsWrites = require("../stores/bounds/helpers/apply-measured-bounds-writes");
|
|
14
|
+
var _registry = require("../stores/bounds/internals/registry");
|
|
15
15
|
var _styles = require("../utils/bounds/helpers/styles/styles");
|
|
16
16
|
var _createProvider = _interopRequireDefault(require("../utils/create-provider"));
|
|
17
17
|
var _descriptors = require("./screen/descriptors");
|
|
@@ -199,7 +199,7 @@ const registerBoundsBundle = (0, _createProvider.default)("RegisterBounds", {
|
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
201
|
if (shouldSetSource && isAnimating.get()) {
|
|
202
|
-
const existing =
|
|
202
|
+
const existing = (0, _registry.getMeasuredEntry)(sharedBoundTag, currentScreenKey);
|
|
203
203
|
if (existing) {
|
|
204
204
|
(0, _applyMeasuredBoundsWrites.applyMeasuredBoundsWrites)({
|
|
205
205
|
sharedBoundTag,
|
|
@@ -215,17 +215,17 @@ const registerBoundsBundle = (0, _createProvider.default)("RegisterBounds", {
|
|
|
215
215
|
if (onPress) (0, _reactNativeReanimated.runOnJS)(onPress)();
|
|
216
216
|
return;
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
const
|
|
218
|
+
const hasPending = (0, _registry.getPendingLink)(sharedBoundTag) !== null;
|
|
219
|
+
const hasSource = (0, _registry.hasSourceLink)(sharedBoundTag, currentScreenKey);
|
|
220
|
+
const hasDestination = (0, _registry.hasDestinationLink)(sharedBoundTag, currentScreenKey);
|
|
221
221
|
const wantsSetSource = !!shouldSetSource;
|
|
222
222
|
const wantsSetDestination = !!shouldSetDestination;
|
|
223
223
|
const wantsUpdateSource = !!shouldUpdateSource;
|
|
224
224
|
const wantsSnapshotOnly = !wantsSetSource && !wantsSetDestination && !wantsUpdateSource;
|
|
225
225
|
const canSetSource = wantsSetSource;
|
|
226
|
-
const canSetDestination = wantsSetDestination &&
|
|
227
|
-
const canUpdateSource = wantsUpdateSource &&
|
|
228
|
-
const canSnapshotOnly = wantsSnapshotOnly && (
|
|
226
|
+
const canSetDestination = wantsSetDestination && hasPending;
|
|
227
|
+
const canUpdateSource = wantsUpdateSource && hasSource;
|
|
228
|
+
const canSnapshotOnly = wantsSnapshotOnly && (hasPending || hasSource || hasDestination);
|
|
229
229
|
if (!canSetSource && !canSetDestination && !canUpdateSource && !canSnapshotOnly) {
|
|
230
230
|
if (onPress) (0, _reactNativeReanimated.runOnJS)(onPress)();
|
|
231
231
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_native","require","_react","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","_useStableCallbackValue","_animation","
|
|
1
|
+
{"version":3,"names":["_native","require","_react","_reactNativeReanimated","_useStableCallback","_interopRequireDefault","_useStableCallbackValue","_animation","_applyMeasuredBoundsWrites","_registry","_styles","_createProvider","_descriptors","_jsxRuntime","e","__esModule","default","getRouteParamId","route","params","rawId","id","matchesSelectionTag","tag","selectedId","endsWith","useInitialLayoutHandler","sharedBoundTag","currentScreenKey","ancestorKeys","maybeMeasureAndStore","isAnimating","AnimationStore","getValue","ancestorAnimations","map","key","hasMeasuredOnLayout","useSharedValue","useCallback","get","isAnyAnimating","i","length","shouldSetSource","shouldSetDestination","set","useBlurMeasurement","current","useDescriptors","enabled","selectedRouteId","hasCapturedSource","useRef","ancestorClosing","maybeMeasureOnBlur","useStableCallbackValue","closing","useFocusEffect","runOnUI","markSourceCaptured","useParentSyncReaction","parentContext","useAnimatedReaction","updateSignal","value","undefined","CloseRemeasureReactionEffect","remeasureOnFocus","nextClosing","prevClosing","shouldUpdateSource","useRegisterBoundsContext","registerBoundsBundle","createProvider","guarded","style","onPress","animatedRef","children","next","navigatorKey","ancestorNavigatorKeys","useDescriptorDerivations","selectedNextRouteId","ownSignal","preparedStyles","useMemo","prepareStyleForBounds","emitUpdate","isRoot","runOnJS","existing","getMeasuredEntry","applyMeasuredBoundsWrites","measured","bounds","hasPending","getPendingLink","hasSource","hasSourceLink","hasDestination","hasDestinationLink","wantsSetSource","wantsSetDestination","wantsUpdateSource","wantsSnapshotOnly","canSetSource","canSetDestination","canUpdateSource","canSnapshotOnly","measure","shouldWriteEntry","handleInitialLayout","nextScreenKey","captureActiveOnPress","useStableCallback","jsxs","Fragment","jsx","RegisterBoundsProvider","exports"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,sBAAA,GAAAF,OAAA;AAUA,IAAAG,kBAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAD,sBAAA,CAAAJ,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,0BAAA,GAAAP,OAAA;AACA,IAAAQ,SAAA,GAAAR,OAAA;AAMA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,eAAA,GAAAN,sBAAA,CAAAJ,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AAAgF,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAI,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA2BhF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
22
22
|
});
|
|
23
23
|
const styles = _reactNative.StyleSheet.create({
|
|
24
24
|
float: {
|
|
25
|
-
..._reactNative.StyleSheet.
|
|
25
|
+
..._reactNative.StyleSheet.absoluteFillObject,
|
|
26
26
|
zIndex: 999
|
|
27
27
|
}
|
|
28
28
|
});
|
package/lib/commonjs/shared/providers/screen/styles/components/maybe-floating-container.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","MaybeFloatingContainer","exports","memo","children","isFloatingOverlay","jsx","View","style","styles","float","pointerEvents","StyleSheet","create","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_jsxRuntime","MaybeFloatingContainer","exports","memo","children","isFloatingOverlay","jsx","View","style","styles","float","pointerEvents","StyleSheet","create","absoluteFillObject","zIndex"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/components/maybe-floating-container.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAgD,IAAAE,WAAA,GAAAF,OAAA;AAOzC,MAAMG,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,sBAAsBA,CAAC;EAC1EG,QAAQ;EACRC;AAC4B,CAAC,EAAE;EAC/B,IAAI,CAACA,iBAAiB,EAAE;IACvB,OAAOD,QAAQ;EAChB;EAEA,oBACC,IAAAJ,WAAA,CAAAM,GAAA,EAACP,YAAA,CAAAQ,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,KAAM;IAACC,aAAa,EAAC,UAAU;IAAAP,QAAA,EACjDA;EAAQ,CACJ,CAAC;AAET,CAAC,CAAC;AAEF,MAAMK,MAAM,GAAGG,uBAAU,CAACC,MAAM,CAAC;EAChCH,KAAK,EAAE;IACN,GAAGE,uBAAU,CAACE,kBAAkB;IAChCC,MAAM,EAAE;EACT;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.applyMeasuredBoundsWrites = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _registry = require("../internals/registry");
|
|
8
8
|
const applyMeasuredBoundsWrites = params => {
|
|
9
9
|
"worklet";
|
|
10
10
|
|
|
@@ -24,7 +24,7 @@ const applyMeasuredBoundsWrites = params => {
|
|
|
24
24
|
expectedSourceScreenKey
|
|
25
25
|
} = params;
|
|
26
26
|
if (shouldWriteEntry) {
|
|
27
|
-
|
|
27
|
+
(0, _registry.setEntry)(sharedBoundTag, currentScreenKey, {
|
|
28
28
|
bounds: measured,
|
|
29
29
|
styles: preparedStyles,
|
|
30
30
|
ancestorKeys,
|
|
@@ -33,16 +33,16 @@ const applyMeasuredBoundsWrites = params => {
|
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
if (shouldSetSource) {
|
|
36
|
-
|
|
36
|
+
(0, _registry.setSource)("capture", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
37
37
|
}
|
|
38
38
|
if (shouldUpdateSource) {
|
|
39
|
-
|
|
39
|
+
(0, _registry.setSource)("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, navigatorKey, ancestorNavigatorKeys);
|
|
40
40
|
}
|
|
41
41
|
if (shouldUpdateDestination) {
|
|
42
|
-
|
|
42
|
+
(0, _registry.setDestination)("refresh", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
43
43
|
}
|
|
44
44
|
if (shouldSetDestination) {
|
|
45
|
-
|
|
45
|
+
(0, _registry.setDestination)("attach", sharedBoundTag, currentScreenKey, measured, preparedStyles, ancestorKeys, expectedSourceScreenKey, navigatorKey, ancestorNavigatorKeys);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
exports.applyMeasuredBoundsWrites = applyMeasuredBoundsWrites;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_registry","require","applyMeasuredBoundsWrites","params","sharedBoundTag","currentScreenKey","measured","preparedStyles","ancestorKeys","navigatorKey","ancestorNavigatorKeys","shouldWriteEntry","shouldSetSource","shouldUpdateSource","shouldSetDestination","shouldUpdateDestination","expectedSourceScreenKey","setEntry","bounds","styles","setSource","setDestination","exports"],"sourceRoot":"../../../../../../src","sources":["shared/stores/bounds/helpers/apply-measured-bounds-writes.ts"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AAkBO,MAAMC,yBAAyB,GACrCC,MAAuC,IACnC;EACJ,SAAS;;EACT,MAAM;IACLC,cAAc;IACdC,gBAAgB;IAChBC,QAAQ;IACRC,cAAc;IACdC,YAAY;IACZC,YAAY;IACZC,qBAAqB;IACrBC,gBAAgB;IAChBC,eAAe;IACfC,kBAAkB;IAClBC,oBAAoB;IACpBC,uBAAuB;IACvBC;EACD,CAAC,GAAGb,MAAM;EAEV,IAAIQ,gBAAgB,EAAE;IACrB,IAAAM,kBAAQ,EAACb,cAAc,EAAEC,gBAAgB,EAAE;MAC1Ca,MAAM,EAAEZ,QAAQ;MAChBa,MAAM,EAAEZ,cAAc;MACtBC,YAAY;MACZC,YAAY;MACZC;IACD,CAAC,CAAC;EACH;EAEA,IAAIE,eAAe,EAAE;IACpB,IAAAQ,mBAAS,EACR,SAAS,EACThB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIG,kBAAkB,EAAE;IACvB,IAAAO,mBAAS,EACR,SAAS,EACThB,cAAc,EACdC,gBAAgB,EAChBC,QAAQ,EACRC,cAAc,EACdC,YAAY,EACZC,YAAY,EACZC,qBACD,CAAC;EACF;EAEA,IAAIK,uBAAuB,EAAE;IAC5B,IA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