react-native-screen-transitions 3.9.0-alpha.0 → 3.9.0-alpha.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/boundary/create-boundary-component.js +10 -2
- package/lib/commonjs/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js +8 -2
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js +5 -2
- package/lib/commonjs/shared/components/boundary/portal/components/portal-provider.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +7 -4
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/teleport.js +23 -0
- package/lib/commonjs/shared/components/boundary/portal/teleport.js.map +1 -0
- package/lib/commonjs/shared/hooks/navigation/use-stack.js +17 -2
- package/lib/commonjs/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js +4 -13
- package/lib/commonjs/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js +23 -12
- package/lib/commonjs/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
- package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/commonjs/shared/stores/animation.store.js +2 -0
- package/lib/commonjs/shared/stores/animation.store.js.map +1 -1
- package/lib/module/shared/components/boundary/create-boundary-component.js +11 -3
- package/lib/module/shared/components/boundary/create-boundary-component.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +8 -2
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal-provider.js +4 -1
- package/lib/module/shared/components/boundary/portal/components/portal-provider.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +7 -4
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/teleport.js +19 -0
- package/lib/module/shared/components/boundary/portal/teleport.js.map +1 -0
- package/lib/module/shared/hooks/navigation/use-stack.js +19 -4
- package/lib/module/shared/hooks/navigation/use-stack.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js +5 -14
- package/lib/module/shared/providers/screen/animation/helpers/pipeline.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js +20 -10
- package/lib/module/shared/providers/screen/animation/helpers/stack-progress.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js +1 -0
- package/lib/module/shared/providers/screen/animation/helpers/use-build-transition-state.js.map +1 -1
- package/lib/module/shared/stores/animation.store.js +2 -0
- package/lib/module/shared/stores/animation.store.js.map +1 -1
- package/lib/typescript/shared/components/boundary/create-boundary-component.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal-provider.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/components/portal.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts +6 -0
- package/lib/typescript/shared/components/boundary/portal/teleport.d.ts.map +1 -0
- package/lib/typescript/shared/hooks/navigation/use-stack.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/hydrate-transition-state/types.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/pipeline.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts +2 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/stack-progress.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts +1 -0
- package/lib/typescript/shared/providers/screen/animation/helpers/use-build-transition-state.d.ts.map +1 -1
- package/lib/typescript/shared/stores/animation.store.d.ts +1 -0
- package/lib/typescript/shared/stores/animation.store.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/shared/components/boundary/create-boundary-component.tsx +17 -4
- package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +10 -3
- package/src/shared/components/boundary/portal/components/portal-provider.tsx +5 -1
- package/src/shared/components/boundary/portal/components/portal.tsx +12 -7
- package/src/shared/components/boundary/portal/teleport.ts +21 -0
- package/src/shared/hooks/navigation/use-stack.tsx +32 -1
- package/src/shared/providers/screen/animation/helpers/hydrate-transition-state/types.ts +1 -0
- package/src/shared/providers/screen/animation/helpers/pipeline.ts +13 -19
- package/src/shared/providers/screen/animation/helpers/stack-progress.ts +31 -16
- package/src/shared/providers/screen/animation/helpers/use-build-transition-state.ts +2 -0
- package/src/shared/stores/animation.store.ts +3 -0
|
@@ -11,11 +11,13 @@ var _descriptors = require("../../providers/screen/descriptors");
|
|
|
11
11
|
var _styles = require("../../providers/screen/styles");
|
|
12
12
|
var _linkPairs = require("../../stores/bounds/helpers/link-pairs.helpers");
|
|
13
13
|
var _styles2 = require("../../utils/bounds/helpers/styles/styles");
|
|
14
|
+
var _logger = require("../../utils/logger");
|
|
14
15
|
var _useBoundaryPresence = require("./hooks/use-boundary-presence");
|
|
15
16
|
var _useInitialDestinationMeasurement = require("./hooks/use-initial-destination-measurement");
|
|
16
17
|
var _useInitialSourceMeasurement = require("./hooks/use-initial-source-measurement");
|
|
17
18
|
var _useMeasurer = require("./hooks/use-measurer");
|
|
18
19
|
var _useRefreshBoundary = require("./hooks/use-refresh-boundary");
|
|
20
|
+
var _teleport = require("./portal/teleport");
|
|
19
21
|
var _boundaryOwner = require("./providers/boundary-owner.provider");
|
|
20
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
@@ -76,6 +78,12 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
76
78
|
elevation
|
|
77
79
|
};
|
|
78
80
|
});
|
|
81
|
+
const hasWarned = (0, _react.useRef)(false);
|
|
82
|
+
const adjustedPortal = _teleport.isTeleportAvailable ? portal : undefined;
|
|
83
|
+
if (!hasWarned.current && !_teleport.isTeleportAvailable && portal) {
|
|
84
|
+
_logger.logger.warn("react-native-teleport is not installed and will fallback to default behavior.");
|
|
85
|
+
hasWarned.current = true;
|
|
86
|
+
}
|
|
79
87
|
const {
|
|
80
88
|
contextValue,
|
|
81
89
|
measuredRef,
|
|
@@ -85,10 +93,10 @@ function createBoundaryComponent(Wrapped, options = {}) {
|
|
|
85
93
|
ownerRef,
|
|
86
94
|
associatedTargetStyles: runtimeEnabled ? associatedStyles : undefined,
|
|
87
95
|
entryTag,
|
|
88
|
-
portal
|
|
96
|
+
portal: adjustedPortal
|
|
89
97
|
});
|
|
90
98
|
const preparedStyles = targetPreparedStyles ?? ownerPreparedStyles;
|
|
91
|
-
const portalHost = typeof
|
|
99
|
+
const portalHost = typeof adjustedPortal === "object" ? adjustedPortal.attachTo ?? "current-screen" : adjustedPortal ? "current-screen" : undefined;
|
|
92
100
|
const measureBoundary = (0, _useMeasurer.useMeasurer)({
|
|
93
101
|
enabled,
|
|
94
102
|
entryTag,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_linkPairs","_styles2","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useMeasurer","_useRefreshBoundary","_boundaryOwner","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createBoundaryComponent","Wrapped","options","alreadyAnimated","shouldAutoMeasure","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","ownerRef","useAnimatedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","portal","rest","linkId","String","entryTag","currentScreenKey","useDescriptorsStore","s","derivations","hasConfiguredInterpolator","runtimeEnabled","boundaryConfig","useMemo","ownerPreparedStyles","prepareStyleForBounds","stylesMap","useScreenStyles","associatedStyles","useAnimatedStyle","NO_STYLES","associatedStackingStyles","baseStyle","zIndex","elevation","contextValue","measuredRef","hasActiveTarget","targetPreparedStyles","useBoundaryOwner","associatedTargetStyles","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_descriptors","_styles","_linkPairs","_styles2","_logger","_useBoundaryPresence","_useInitialDestinationMeasurement","_useInitialSourceMeasurement","_useMeasurer","_useRefreshBoundary","_teleport","_boundaryOwner","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","createBoundaryComponent","Wrapped","options","alreadyAnimated","shouldAutoMeasure","AnimatedComponent","Animated","createAnimatedComponent","Inner","forwardRef","props","forwardedRef","ownerRef","useAnimatedRef","enabled","group","id","anchor","scaleMode","target","method","style","onPress","portal","rest","linkId","String","entryTag","currentScreenKey","useDescriptorsStore","s","derivations","hasConfiguredInterpolator","runtimeEnabled","boundaryConfig","useMemo","ownerPreparedStyles","prepareStyleForBounds","stylesMap","useScreenStyles","associatedStyles","useAnimatedStyle","NO_STYLES","associatedStackingStyles","baseStyle","zIndex","elevation","hasWarned","useRef","adjustedPortal","isTeleportAvailable","undefined","current","logger","warn","contextValue","measuredRef","hasActiveTarget","targetPreparedStyles","useBoundaryOwner","associatedTargetStyles","preparedStyles","portalHost","attachTo","measureBoundary","useMeasurer","measuredAnimatedRef","useBoundaryPresence","shouldPassivelyMeasureSource","useInitialSourceMeasurement","useInitialDestinationMeasurement","useRefreshBoundary","handlePress","useCallback","args","runOnUI","type","pairKey","createPendingPairKey","resolvedOnPress","useImperativeHandle","jsx","BoundaryOwnerProvider","value","children","ref","collapsable","memo"],"sourceRoot":"../../../../../src","sources":["shared/components/boundary/create-boundary-component.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAKA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AACA,IAAAS,oBAAA,GAAAT,OAAA;AACA,IAAAU,iCAAA,GAAAV,OAAA;AACA,IAAAW,4BAAA,GAAAX,OAAA;AACA,IAAAY,YAAA,GAAAZ,OAAA;AACA,IAAAa,mBAAA,GAAAb,OAAA;AACA,IAAAc,SAAA,GAAAd,OAAA;AACA,IAAAe,cAAA,GAAAf,OAAA;AAG6C,IAAAgB,WAAA,GAAAhB,OAAA;AAAA,SAAAE,wBAAAe,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAe,CAAA,EAAAC,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zE,QAAS;QACdS,KAAK,EAAE,CACNA,KAAK,EACLY,cAAc,GACXwB,eAAe,GACdd,wBAAwB,GACxBH,gBAAgB,GACjBW,SAAS,CACX;QACF7B,OAAO,EAAEyD,eAAgB;QACzBO,WAAW,EAAE;MAAM,CACnB;IAAC,CACoB,CAAC;EAE1B,CAAC,CAAC;EAEF,oBAAO,IAAAC,WAAI,EACVjF,8BAAQ,CAACC,uBAAuB,CAACC,KAAK,CACvC,CAAC;AAMF","ignoreList":[]}
|
|
@@ -6,18 +6,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.PortalBoundaryHost = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
|
-
var _reactNativeTeleport = require("react-native-teleport");
|
|
10
9
|
var _constants = require("../../../../constants");
|
|
11
10
|
var _animation = require("../../../../stores/animation.store");
|
|
12
11
|
var _linkPairs = require("../../../../stores/bounds/helpers/link-pairs.helpers");
|
|
13
12
|
var _links = require("../../../../stores/bounds/internals/links");
|
|
14
13
|
var _gesture = require("../../../../stores/gesture.store");
|
|
15
14
|
var _scroll = require("../../../../stores/scroll.store");
|
|
15
|
+
var _teleport = require("../teleport");
|
|
16
16
|
var _naming = require("../utils/naming");
|
|
17
17
|
var _offsetStyle = require("../utils/offset-style");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
20
|
-
const AnimatedPortalBoundaryHost = _reactNativeReanimated.default.createAnimatedComponent(
|
|
20
|
+
const AnimatedPortalBoundaryHost = _teleport.NativePortalHost ? _reactNativeReanimated.default.createAnimatedComponent(_teleport.NativePortalHost) : null;
|
|
21
21
|
const PortalBoundaryHost = exports.PortalBoundaryHost = /*#__PURE__*/(0, _react.memo)(function PortalBoundaryHost({
|
|
22
22
|
host,
|
|
23
23
|
style
|
|
@@ -60,6 +60,12 @@ const PortalBoundaryHost = exports.PortalBoundaryHost = /*#__PURE__*/(0, _react.
|
|
|
60
60
|
trackSourceScroll
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
+
|
|
64
|
+
// Without `react-native-teleport` no portal ever mounts a boundary host, so
|
|
65
|
+
// this never renders — the guard just narrows the nullable animated host.
|
|
66
|
+
if (!AnimatedPortalBoundaryHost) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
63
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedPortalBoundaryHost, {
|
|
64
70
|
name: hostName,
|
|
65
71
|
style: [style, hostStyle]
|
package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_constants","_animation","_linkPairs","_links","_gesture","_scroll","_teleport","_naming","_offsetStyle","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","AnimatedPortalBoundaryHost","NativePortalHost","Animated","createAnimatedComponent","PortalBoundaryHost","exports","memo","host","style","hostName","createPortalBoundaryHostName","hostKey","boundaryId","hostClosing","AnimationStore","getValue","screenKey","hostProgress","hostGestureDismissing","GestureStore","hostScrollMetadata","ScrollStore","sourceScrollMetadata","getSourceScreenKeyFromPairKey","pairKey","hostStyle","useAnimatedStyle","link","getLink","source","destination","NO_STYLES","isCrossScreenPortal","isHostClosing","placement","trackSourceScroll","sourceHost","capturesScroll","resolvePortalOffsetStyle","bounds","hostCurrentScroll","sourceCurrentScroll","jsx","name"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/components/portal-boundary-host.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAR,OAAA;AAEA,IAAAS,SAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,YAAA,GAAAX,OAAA;AAG+B,IAAAY,WAAA,GAAAZ,OAAA;AAAA,SAAAE,wBAAAW,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAb,uBAAA,YAAAA,CAAAW,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,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AAS;IAACD,KAAK,EAAE,CAACA,KAAK,EAAEiB,SAAS;EAAE,CAAE,CAAC;AAE3E,CAAC,CAAC","ignoreList":[]}
|
|
@@ -5,12 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.PortalProvider = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _teleport = require("../teleport");
|
|
9
9
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
10
|
const PortalProvider = exports.PortalProvider = /*#__PURE__*/(0, _react.memo)(function PortalProvider({
|
|
11
11
|
children
|
|
12
12
|
}) {
|
|
13
|
-
|
|
13
|
+
if (!_teleport.NativePortalProvider) {
|
|
14
|
+
return children;
|
|
15
|
+
}
|
|
16
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_teleport.NativePortalProvider, {
|
|
14
17
|
children: children
|
|
15
18
|
});
|
|
16
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","
|
|
1
|
+
{"version":3,"names":["_react","require","_teleport","_jsxRuntime","PortalProvider","exports","memo","children","NativePortalProvider","jsx"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/components/portal-provider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AAAmD,IAAAE,WAAA,GAAAF,OAAA;AAE5C,MAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,gBAAG,IAAAE,WAAI,EAAC,SAASF,cAAcA,CAAC;EAC1DG;AAGD,CAAC,EAAE;EACF,IAAI,CAACC,8BAAoB,EAAE;IAC1B,OAAOD,QAAQ;EAChB;EAEA,oBAAO,IAAAJ,WAAA,CAAAM,GAAA,EAACP,SAAA,CAAAM,oBAAoB;IAAAD,QAAA,EAAEA;EAAQ,CAAuB,CAAC;AAC/D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.Portal = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
9
|
-
var _reactNativeTeleport = require("react-native-teleport");
|
|
10
9
|
var _descriptors = require("../../../../providers/screen/descriptors");
|
|
11
10
|
var _styles = require("../../../../providers/screen/styles");
|
|
12
11
|
var _animation = require("../../../../stores/animation.store");
|
|
@@ -16,19 +15,23 @@ var _state = require("../../../../stores/bounds/internals/state");
|
|
|
16
15
|
var _createTransitionAwareComponent = require("../../../create-transition-aware-component");
|
|
17
16
|
var _hostRegistry = require("../stores/host-registry.store");
|
|
18
17
|
var _portalBoundaryHost = require("../stores/portal-boundary-host.store");
|
|
18
|
+
var _teleport = require("../teleport");
|
|
19
19
|
var _attachment = require("../utils/attachment");
|
|
20
20
|
var _naming = require("../utils/naming");
|
|
21
21
|
var _teleportControl = require("../utils/teleport-control");
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
23
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
24
|
-
const TransitionAwareTeleport = (0, _createTransitionAwareComponent.createTransitionAwareComponent)(
|
|
24
|
+
const TransitionAwareTeleport = _teleport.NativePortal ? (0, _createTransitionAwareComponent.createTransitionAwareComponent)(_teleport.NativePortal) : null;
|
|
25
25
|
const Portal = exports.Portal = /*#__PURE__*/(0, _react.memo)(function Portal({
|
|
26
26
|
id = "my-id",
|
|
27
27
|
children,
|
|
28
28
|
mode = false,
|
|
29
29
|
placeholderRef
|
|
30
30
|
}) {
|
|
31
|
-
|
|
31
|
+
// Teleporting requires the optional `react-native-teleport` peer. Without it,
|
|
32
|
+
// a portal-enabled boundary degrades to inline rendering (the `return
|
|
33
|
+
// children` path below).
|
|
34
|
+
const isPortalEnabled = !!mode && _teleport.isTeleportAvailable;
|
|
32
35
|
const portalAttachTarget = !mode || mode === true ? "current-screen" : mode.attachTo ?? "current-screen";
|
|
33
36
|
const {
|
|
34
37
|
stylesMap
|
|
@@ -171,7 +174,7 @@ const Portal = exports.Portal = /*#__PURE__*/(0, _react.memo)(function Portal({
|
|
|
171
174
|
height
|
|
172
175
|
};
|
|
173
176
|
});
|
|
174
|
-
if (isPortalEnabled) {
|
|
177
|
+
if (isPortalEnabled && TransitionAwareTeleport) {
|
|
175
178
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
176
179
|
ref: placeholderRef,
|
|
177
180
|
onLayout: event => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_interopRequireWildcard","_descriptors","_styles","_animation","_linkPairs","_links","_state","_createTransitionAwareComponent","_hostRegistry","_portalBoundaryHost","_teleport","_attachment","_naming","_teleportControl","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","TransitionAwareTeleport","NativePortal","createTransitionAwareComponent","Portal","exports","memo","id","children","mode","placeholderRef","isPortalEnabled","isTeleportAvailable","portalAttachTarget","attachTo","stylesMap","useScreenStyles","sourcePairKey","useDescriptorsStore","s","derivations","currentScreenKey","nextScreenKey","attachment","setAttachment","useState","PORTAL_HOST_NAME_RESET_VALUE","attachedHostName","useSharedValue","placeholderWidth","placeholderHeight","progressScreenKey","targetScreenKey","resolvePortalAttachmentTargets","activeHostKey","useActiveHostKey","activeHostCapturesScroll","getHostCapturesScroll","progress","AnimationStore","getValue","closing","updatePortalAttachment","useCallback","matchedScreenKey","pairKey","current","useLayoutEffect","mountPortalBoundaryHost","boundaryId","capturesScroll","hostKey","screenKey","createPortalBoundaryHostName","unmountPortalBoundaryHost","useAnimatedReaction","pairs","link","getLink","status","group","activeId","groups","getLinkKeyFromTag","destination","previousMatchedScreenKey","runOnJS","teleportProps","useAnimatedProps","attachThreshold","teleport","slotProps","props","shouldTeleport","isTeleportEnabled","hostName","placeholderStyle","useAnimatedStyle","isAttached","width","height","jsx","View","ref","onLayout","event","nativeEvent","layout","style","collapsable","animatedProps","name"],"sourceRoot":"../../../../../../../src","sources":["shared/components/boundary/portal/components/portal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAUA,IAAAC,sBAAA,GAAAC,uBAAA,CAAAF,OAAA;AAQA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;AACA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,+BAAA,GAAAT,OAAA;AAEA,IAAAU,aAAA,GAAAV,OAAA;AAIA,IAAAW,mBAAA,GAAAX,OAAA;AAIA,IAAAY,SAAA,GAAAZ,OAAA;AACA,IAAAa,WAAA,GAAAb,OAAA;AAIA,IAAAc,OAAA,GAAAd,OAAA;AAIA,IAAAe,gBAAA,GAAAf,OAAA;AAA8D,IAAAgB,WAAA,GAAAhB,OAAA;AAAA,SAAAE,wBAAAe,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAjB,uBAAA,YAAAA,CAAAe,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAA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AAI,EAAEpF,EAAG;QAAAC,QAAA,eAC/D,IAAA3B,WAAA,CAAAoG,GAAA,EAACnH,sBAAA,CAAA0B,OAAQ,CAAC0F,IAAI;UAACM,KAAK,EAAEZ,gBAAiB;UAAApE,QAAA,EAAEA;QAAQ,CAAgB;MAAC,CAC1C;IAAC,CACZ,CAAC;EAElB;EAEA,OAAOA,QAAQ;AAChB,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.isTeleportAvailable = exports.NativePortalProvider = exports.NativePortalHost = exports.NativePortal = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* `react-native-teleport` is an optional peer dependency. The require sits in a
|
|
9
|
+
* try/catch so Metro treats it as an optional dependency — an absent module no
|
|
10
|
+
* longer fails the bundle, it throws at runtime and the catch swallows it.
|
|
11
|
+
*
|
|
12
|
+
* When teleport is missing, `portal`-enabled boundaries degrade to inline
|
|
13
|
+
* rendering; everything else keeps working.
|
|
14
|
+
*/
|
|
15
|
+
let mod = null;
|
|
16
|
+
try {
|
|
17
|
+
mod = require("react-native-teleport");
|
|
18
|
+
} catch {}
|
|
19
|
+
const isTeleportAvailable = exports.isTeleportAvailable = mod !== null;
|
|
20
|
+
const NativePortal = exports.NativePortal = mod?.Portal ?? null;
|
|
21
|
+
const NativePortalProvider = exports.NativePortalProvider = mod?.PortalProvider ?? null;
|
|
22
|
+
const NativePortalHost = exports.NativePortalHost = mod?.PortalHost ?? null;
|
|
23
|
+
//# sourceMappingURL=teleport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["mod","require","isTeleportAvailable","exports","NativePortal","Portal","NativePortalProvider","PortalProvider","NativePortalHost","PortalHost"],"sourceRoot":"../../../../../../src","sources":["shared/components/boundary/portal/teleport.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAIA,GAAQ,GAAG,IAAI;AACnB,IAAI;EACHA,GAAG,GAAGC,OAAO,CAAC,uBAAuB,CAAC;AACvC,CAAC,CAAC,MAAM,CAAC;AAEF,MAAMC,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,GAAGF,GAAG,KAAK,IAAI;AACxC,MAAMI,YAAuC,GAAAD,OAAA,CAAAC,YAAA,GAAGJ,GAAG,EAAEK,MAAM,IAAI,IAAI;AACnE,MAAMC,oBAA+C,GAAAH,OAAA,CAAAG,oBAAA,GAC3DN,GAAG,EAAEO,cAAc,IAAI,IAAI;AACrB,MAAMC,gBAA2C,GAAAL,OAAA,CAAAK,gBAAA,GACvDR,GAAG,EAAES,UAAU,IAAI,IAAI","ignoreList":[]}
|
|
@@ -6,6 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.StackProvider = StackProvider;
|
|
7
7
|
exports.useStack = useStack;
|
|
8
8
|
var _react = require("react");
|
|
9
|
+
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
|
+
var _stackProgress = require("../../providers/screen/animation/helpers/stack-progress");
|
|
11
|
+
var _animation = require("../../stores/animation.store");
|
|
9
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
13
|
const createStackStore = initialSnapshot => {
|
|
11
14
|
let snapshot = initialSnapshot;
|
|
@@ -34,6 +37,16 @@ const createStackStore = initialSnapshot => {
|
|
|
34
37
|
};
|
|
35
38
|
const StackContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
36
39
|
StackContext.displayName = "Stack";
|
|
40
|
+
function StackProgressOwner({
|
|
41
|
+
routeKeys
|
|
42
|
+
}) {
|
|
43
|
+
const visualProgressValues = (0, _react.useMemo)(() => routeKeys.map(routeKey => _animation.AnimationStore.getValue(routeKey, "visualProgress")), [routeKeys]);
|
|
44
|
+
const stackProgressValues = (0, _react.useMemo)(() => routeKeys.map(routeKey => _animation.AnimationStore.getValue(routeKey, "stackProgress")), [routeKeys]);
|
|
45
|
+
(0, _reactNativeReanimated.useDerivedValue)(() => {
|
|
46
|
+
(0, _stackProgress.syncStackProgressValues)(visualProgressValues, stackProgressValues);
|
|
47
|
+
});
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
37
50
|
function StackProvider({
|
|
38
51
|
children,
|
|
39
52
|
value
|
|
@@ -53,9 +66,11 @@ function StackProvider({
|
|
|
53
66
|
pendingNotifyRef.current = false;
|
|
54
67
|
store.notify();
|
|
55
68
|
});
|
|
56
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
69
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(StackContext.Provider, {
|
|
57
70
|
value: store,
|
|
58
|
-
children:
|
|
71
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(StackProgressOwner, {
|
|
72
|
+
routeKeys: value.routeKeys
|
|
73
|
+
}), children]
|
|
59
74
|
});
|
|
60
75
|
}
|
|
61
76
|
function useStackStore() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_jsxRuntime","createStackStore","initialSnapshot","snapshot","listeners","Set","getSnapshot","notify","listener","setSnapshot","nextSnapshot","Object","is","subscribe","add","delete","StackContext","createContext","displayName","StackProvider","children","value","storeRef","useRef","pendingNotifyRef","store","current","useLayoutEffect","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNativeReanimated","_stackProgress","_animation","_jsxRuntime","createStackStore","initialSnapshot","snapshot","listeners","Set","getSnapshot","notify","listener","setSnapshot","nextSnapshot","Object","is","subscribe","add","delete","StackContext","createContext","displayName","StackProgressOwner","routeKeys","visualProgressValues","useMemo","map","routeKey","AnimationStore","getValue","stackProgressValues","useDerivedValue","syncStackProgressValues","StackProvider","children","value","storeRef","useRef","pendingNotifyRef","store","current","useLayoutEffect","jsxs","Provider","jsx","useStackStore","useContext","Error","useStack","selector","selectorRef","stack","getSelectedSnapshot","useCallback","useSyncExternalStore"],"sourceRoot":"../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AAK,GAAG,IAAAO,iBAAU,EAAC3B,YAAY,CAAC;EAEtC,IAAIoB,KAAK,KAAK,IAAI,EAAE;IACnB,MAAM,IAAIQ,KAAK,CAAC,+CAA+C,CAAC;EACjE;EAEA,OAAOR,KAAK;AACb;AAIO,SAASS,QAAQA,CACvBC,QAA2B,EACH;EACxB,MAAMV,KAAK,GAAGM,aAAa,CAAC,CAAC;EAC7B,MAAMK,WAAW,GAAG,IAAAb,aAAM,EACzBY,QAAQ,KAAME,KAAK,IAAKA,KAAK,CAC9B,CAAC;EACDD,WAAW,CAACV,OAAO,GAAGS,QAAQ,KAAME,KAAK,IAAKA,KAAK,CAAC;EAEpD,MAAMC,mBAAmB,GAAG,IAAAC,kBAAW,EACtC,MAAMH,WAAW,CAACV,OAAO,CAACD,KAAK,CAAC9B,WAAW,CAAC,CAAC,CAAC,EAC9C,CAAC8B,KAAK,CACP,CAAC;EAED,OAAO,IAAAe,2BAAoB,EAC1Bf,KAAK,CAACvB,SAAS,EACfoC,mBAAmB,EACnBA,mBACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -4,13 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.useScreenAnimationPipeline = useScreenAnimationPipeline;
|
|
7
|
-
var _react = require("react");
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
8
|
var _reactNativeReanimated = require("react-native-reanimated");
|
|
10
9
|
var _reactNativeSafeAreaContext = require("react-native-safe-area-context");
|
|
11
10
|
var _constants = require("../../../../constants");
|
|
12
11
|
var _useStack = require("../../../../hooks/navigation/use-stack");
|
|
13
|
-
var _animation = require("../../../../stores/animation.store");
|
|
14
12
|
var _descriptors = require("../../descriptors");
|
|
15
13
|
var _derivations = require("./derivations");
|
|
16
14
|
var _hasTransitionsEnabled = require("./has-transitions-enabled");
|
|
@@ -39,13 +37,9 @@ const createInitialBaseInterpolatorProps = (dimensions, insets) => {
|
|
|
39
37
|
};
|
|
40
38
|
};
|
|
41
39
|
function useScreenAnimationPipeline() {
|
|
42
|
-
const
|
|
43
|
-
flags,
|
|
44
|
-
routeKeys
|
|
45
|
-
} = (0, _useStack.useStack)();
|
|
40
|
+
const transitionsAlwaysOn = (0, _useStack.useStack)(stack => stack.flags.TRANSITIONS_ALWAYS_ON);
|
|
46
41
|
const dimensions = (0, _reactNative.useWindowDimensions)();
|
|
47
42
|
const insets = (0, _reactNativeSafeAreaContext.useSafeAreaInsets)();
|
|
48
|
-
const transitionsAlwaysOn = flags.TRANSITIONS_ALWAYS_ON;
|
|
49
43
|
const {
|
|
50
44
|
current: currDescriptor,
|
|
51
45
|
next: nextDescriptor,
|
|
@@ -54,11 +48,6 @@ function useScreenAnimationPipeline() {
|
|
|
54
48
|
const currentAnimation = (0, _useBuildTransitionState.useBuildTransitionState)(currDescriptor);
|
|
55
49
|
const nextAnimation = (0, _useBuildTransitionState.useBuildTransitionState)(nextDescriptor);
|
|
56
50
|
const prevAnimation = (0, _useBuildTransitionState.useBuildTransitionState)(prevDescriptor);
|
|
57
|
-
const currentRouteKey = currDescriptor?.route?.key;
|
|
58
|
-
const currentIndex = routeKeys.indexOf(currentRouteKey);
|
|
59
|
-
const visualProgressValues = (0, _react.useMemo)(() => {
|
|
60
|
-
return routeKeys.map(routeKey => _animation.AnimationStore.getValue(routeKey, "visualProgress"));
|
|
61
|
-
}, [routeKeys]);
|
|
62
51
|
const nextRouteKey = nextDescriptor?.route?.key;
|
|
63
52
|
const nextHasTransitions = !!nextRouteKey && (0, _hasTransitionsEnabled.hasTransitionsEnabled)(nextDescriptor?.options, transitionsAlwaysOn);
|
|
64
53
|
const screenInterpolatorProps = (0, _reactNativeReanimated.useSharedValue)(createInitialBaseInterpolatorProps(dimensions, insets));
|
|
@@ -77,13 +66,15 @@ function useScreenAnimationPipeline() {
|
|
|
77
66
|
const interpolatorOptions = selectedInterpolatorOptions.get();
|
|
78
67
|
const shouldApplyOptionsToCurrent = interpolatorOptions.owner === "current";
|
|
79
68
|
const shouldApplyOptionsToNext = interpolatorOptions.owner === "next" && !!nextAnimation && nextHasTransitions;
|
|
69
|
+
const previousCurrentProgress = currentAnimation?.visualProgress.get();
|
|
70
|
+
const previousNextProgress = nextAnimation && nextHasTransitions ? nextAnimation.visualProgress.get() : undefined;
|
|
80
71
|
frame.previous = prevAnimation ? (0, _hydrateTransitionState.hydrateTransitionState)(prevAnimation, dimensions) : undefined;
|
|
81
72
|
frame.current = currentAnimation ? (0, _hydrateTransitionState.hydrateTransitionState)(currentAnimation, dimensions, shouldApplyOptionsToCurrent ? interpolatorOptions.options : undefined) : _constants.DEFAULT_SCREEN_TRANSITION_STATE;
|
|
82
73
|
frame.next = nextAnimation && nextHasTransitions ? (0, _hydrateTransitionState.hydrateTransitionState)(nextAnimation, dimensions, shouldApplyOptionsToNext ? interpolatorOptions.options : undefined) : undefined;
|
|
83
74
|
frame.layouts = frame.current.layouts;
|
|
84
75
|
frame.insets = insets;
|
|
85
76
|
(0, _derivations.updateDerivations)(frame);
|
|
86
|
-
frame.stackProgress = (0, _stackProgress.
|
|
77
|
+
frame.stackProgress = (0, _stackProgress.resolveStackProgress)(currentAnimation?.stackProgress, frame.progress, frame.current.progress, previousCurrentProgress, frame.next?.progress, previousNextProgress);
|
|
87
78
|
frame.logicallySettled = frame.active.settled;
|
|
88
79
|
return frame;
|
|
89
80
|
}, false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_reactNativeReanimated","_reactNativeSafeAreaContext","_constants","_useStack","_descriptors","_derivations","_hasTransitionsEnabled","_hydrateTransitionState","_stackProgress","_useBuildTransitionState","createInitialBaseInterpolatorProps","dimensions","insets","current","DEFAULT_SCREEN_TRANSITION_STATE","layouts","screen","previous","undefined","next","progress","stackProgress","logicallySettled","focused","active","inactive","useScreenAnimationPipeline","transitionsAlwaysOn","useStack","stack","flags","TRANSITIONS_ALWAYS_ON","useWindowDimensions","useSafeAreaInsets","currDescriptor","nextDescriptor","prevDescriptor","useDescriptors","currentAnimation","useBuildTransitionState","nextAnimation","prevAnimation","nextRouteKey","route","key","nextHasTransitions","hasTransitionsEnabled","options","screenInterpolatorProps","useSharedValue","selectedInterpolatorOptions","owner","propsRevisionState","value","screenInterpolatorPropsRevision","useDerivedValue","modify","frame","interpolatorOptions","get","shouldApplyOptionsToCurrent","shouldApplyOptionsToNext","previousCurrentProgress","visualProgress","previousNextProgress","hydrateTransitionState","updateDerivations","resolveStackProgress","settled","revision","nextInterpolator","screenStyleInterpolator","currentInterpolator"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/pipeline.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAMA,IAAAE,2BAAA,GAAAF,OAAA;AACA,IAAAG,UAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAMA,IAAAK,YAAA,GAAAL,OAAA;AACA,IAAAM,YAAA,GAAAN,OAAA;AACA,IAAAO,sBAAA,GAAAP,OAAA;AACA,IAAAQ,uBAAA,GAAAR,OAAA;AAEA,IAAAS,cAAA,GAAAT,OAAA;AACA,IAAAU,wBAAA,GAAAV,OAAA;AAeA,MAAMW,kCAAkC,GAAGA,CAC1CC,UAAwD,EACxDC,MAAyC,KACZ;EAC7B,MAAMC,OAAO,GAAG;IACf,GAAGC,0CAA+B;IAClCC,OAAO,EAAE;MAAEC,MAAM,EAAEL;IAAW;EAC/B,CAAC;EAED,OAAO;IACNI,OAAO,EAAEF,OAAO,CAACE,OAAO;IACxBH,MAAM;IACNK,QAAQ,EAAEC,SAAS;IACnBL,OAAO;IACPM,IAAI,EAAED,SAAS;IACfE,QAAQ,EAAE,CAAC;IACXC,aAAa,EAAE,CAAC;IAChBC,gBAAgB,EAAE,CAAC;IACnBC,OAAO,EAAE,IAAI;IACbC,MAAM,EAAEX,OAAO;IACfY,QAAQ,EAAEP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,gBAAgB,GAAGmC,KAAK,CAACjC,MAAM,CAAC4C,OAAO;MAE7C,OAAOX,KAAK;IACb,CAAC,EAAE,KAAK,CAAC;;IAET;IACA;IACA;IACA;IACA;IACA;IACAL,kBAAkB,CAACI,MAAM,CAAEa,QAAQ,IAAK;MACvC,SAAS;;MACTA,QAAQ,CAAChB,KAAK,IAAI,CAAC;MACnB,OAAOgB,QAAQ;IAChB,CAAC,EAAE,KAAK,CAAC;IAET,OAAOjB,kBAAkB,CAACO,GAAG,CAAC,CAAC,CAACN,KAAK;EACtC,CAAC,CAAC;EAEF,MAAMiB,gBAAgB,GAAGnC,cAAc,EAAEY,OAAO,CAACwB,uBAAuB;EACxE,MAAMC,mBAAmB,GAAGtC,cAAc,EAAEa,OAAO,CAACwB,uBAAuB;EAE3E,OAAO;IACNvB,uBAAuB;IACvBM,+BAA+B;IAC/BJ,2BAA2B;IAC3BoB,gBAAgB;IAChBE;EACD,CAAC;AACF","ignoreList":[]}
|
|
@@ -3,23 +3,34 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
const
|
|
6
|
+
exports.syncStackProgressValues = exports.resolveStackProgress = void 0;
|
|
7
|
+
const syncStackProgressValues = (visualProgressValues, stackProgressValues) => {
|
|
8
8
|
"worklet";
|
|
9
9
|
|
|
10
|
-
if (currentIndex < 0) return fallbackProgress;
|
|
11
10
|
let total = 0;
|
|
12
|
-
for (let i =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
total += nextProgress;
|
|
18
|
-
} else {
|
|
19
|
-
total += visualProgressValues[i].get();
|
|
11
|
+
for (let i = visualProgressValues.length - 1; i >= 0; i--) {
|
|
12
|
+
total += visualProgressValues[i]?.get() ?? 0;
|
|
13
|
+
const stackProgress = stackProgressValues[i];
|
|
14
|
+
if (stackProgress && stackProgress.get() !== total) {
|
|
15
|
+
stackProgress.set(total);
|
|
20
16
|
}
|
|
21
17
|
}
|
|
18
|
+
};
|
|
19
|
+
exports.syncStackProgressValues = syncStackProgressValues;
|
|
20
|
+
const resolveStackProgress = (stackProgress, fallbackProgress, currentProgress, previousCurrentProgress, nextProgress, previousNextProgress) => {
|
|
21
|
+
"worklet";
|
|
22
|
+
|
|
23
|
+
if (!stackProgress) {
|
|
24
|
+
return fallbackProgress;
|
|
25
|
+
}
|
|
26
|
+
let total = stackProgress.get();
|
|
27
|
+
if (previousCurrentProgress !== undefined) {
|
|
28
|
+
total += currentProgress - previousCurrentProgress;
|
|
29
|
+
}
|
|
30
|
+
if (nextProgress !== undefined && previousNextProgress !== undefined) {
|
|
31
|
+
total += nextProgress - previousNextProgress;
|
|
32
|
+
}
|
|
22
33
|
return total;
|
|
23
34
|
};
|
|
24
|
-
exports.
|
|
35
|
+
exports.resolveStackProgress = resolveStackProgress;
|
|
25
36
|
//# sourceMappingURL=stack-progress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["syncStackProgressValues","visualProgressValues","stackProgressValues","total","i","length","get","stackProgress","set","exports","resolveStackProgress","fallbackProgress","currentProgress","previousCurrentProgress","nextProgress","previousNextProgress","undefined"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/stack-progress.ts"],"mappings":";;;;;;AAEO,MAAMA,uBAAuB,GAAGA,CACtCC,oBAA2C,EAC3CC,mBAA0C,KACtC;EACJ,SAAS;;EACT,IAAIC,KAAK,GAAG,CAAC;EAEb,KAAK,IAAIC,CAAC,GAAGH,oBAAoB,CAACI,MAAM,GAAG,CAAC,EAAED,CAAC,IAAI,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1DD,KAAK,IAAIF,oBAAoB,CAACG,CAAC,CAAC,EAAEE,GAAG,CAAC,CAAC,IAAI,CAAC;IAC5C,MAAMC,aAAa,GAAGL,mBAAmB,CAACE,CAAC,CAAC;IAE5C,IAAIG,aAAa,IAAIA,aAAa,CAACD,GAAG,CAAC,CAAC,KAAKH,KAAK,EAAE;MACnDI,aAAa,CAACC,GAAG,CAACL,KAAK,CAAC;IACzB;EACD;AACD,CAAC;AAACM,OAAA,CAAAT,uBAAA,GAAAA,uBAAA;AAEK,MAAMU,oBAAoB,GAAGA,CACnCH,aAA8C,EAC9CI,gBAAwB,EACxBC,eAAuB,EACvBC,uBAA2C,EAC3CC,YAAgC,EAChCC,oBAAwC,KACpC;EACJ,SAAS;;EACT,IAAI,CAACR,aAAa,EAAE;IACnB,OAAOI,gBAAgB;EACxB;EAEA,IAAIR,KAAK,GAAGI,aAAa,CAACD,GAAG,CAAC,CAAC;EAE/B,IAAIO,uBAAuB,KAAKG,SAAS,EAAE;IAC1Cb,KAAK,IAAIS,eAAe,GAAGC,uBAAuB;EACnD;EAEA,IAAIC,YAAY,KAAKE,SAAS,IAAID,oBAAoB,KAAKC,SAAS,EAAE;IACrEb,KAAK,IAAIW,YAAY,GAAGC,oBAAoB;EAC7C;EAEA,OAAOZ,KAAK;AACb,CAAC;AAACM,OAAA,CAAAC,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js
CHANGED
|
@@ -26,6 +26,7 @@ const useBuildTransitionState = descriptor => {
|
|
|
26
26
|
return {
|
|
27
27
|
transitionProgress: _animation.AnimationStore.getValue(key, "transitionProgress"),
|
|
28
28
|
visualProgress: _animation.AnimationStore.getValue(key, "visualProgress"),
|
|
29
|
+
stackProgress: _animation.AnimationStore.getValue(key, "stackProgress"),
|
|
29
30
|
willAnimate: _animation.AnimationStore.getValue(key, "willAnimate"),
|
|
30
31
|
closing: _animation.AnimationStore.getValue(key, "closing"),
|
|
31
32
|
entering: _animation.AnimationStore.getValue(key, "entering"),
|
package/lib/commonjs/shared/providers/screen/animation/helpers/use-build-transition-state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_constants","_animation","_gesture","_scroll","_system","_buildScreenTransitionOptions","_worklet","useBuildTransitionState","descriptor","key","route","meta","options","snapPoints","useMemo","undefined","plainRoute","toPlainRoute","plainMeta","toPlainValue","sortedNumericSnapPoints","filter","p","sort","a","b","transitionOptions","buildScreenTransitionOptions","transitionProgress","AnimationStore","getValue","visualProgress","willAnimate","closing","entering","progressAnimating","progressSettled","targetProgress","SystemStore","resolvedAutoSnapPoint","measuredContentLayout","scrollMetadata","ScrollStore","contentLayoutSlot","width","height","hasAutoSnapPoint","includes","gesture","GestureStore","getBag","optionsSlot","unwrapped","createScreenTransitionState","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AAIA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,OAAA,GAAAL,OAAA;AASA,IAAAM,6BAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","require","_constants","_animation","_gesture","_scroll","_system","_buildScreenTransitionOptions","_worklet","useBuildTransitionState","descriptor","key","route","meta","options","snapPoints","useMemo","undefined","plainRoute","toPlainRoute","plainMeta","toPlainValue","sortedNumericSnapPoints","filter","p","sort","a","b","transitionOptions","buildScreenTransitionOptions","transitionProgress","AnimationStore","getValue","visualProgress","stackProgress","willAnimate","closing","entering","progressAnimating","progressSettled","targetProgress","SystemStore","resolvedAutoSnapPoint","measuredContentLayout","scrollMetadata","ScrollStore","contentLayoutSlot","width","height","hasAutoSnapPoint","includes","gesture","GestureStore","getBag","optionsSlot","unwrapped","createScreenTransitionState","exports"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/use-build-transition-state.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAA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,CAAC,CAAC;AACxD,CAAC;AAAC2C,OAAA,CAAAhD,uBAAA,GAAAA,uBAAA","ignoreList":[]}
|
|
@@ -10,6 +10,7 @@ function createAnimationBag() {
|
|
|
10
10
|
return {
|
|
11
11
|
transitionProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
12
12
|
visualProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
13
|
+
stackProgress: (0, _reactNativeReanimated.makeMutable)(0),
|
|
13
14
|
willAnimate: (0, _reactNativeReanimated.makeMutable)(0),
|
|
14
15
|
closing: (0, _reactNativeReanimated.makeMutable)(0),
|
|
15
16
|
progressAnimating: (0, _reactNativeReanimated.makeMutable)(0),
|
|
@@ -28,6 +29,7 @@ const AnimationStore = exports.AnimationStore = (0, _createStore.createStore)({
|
|
|
28
29
|
disposeBag: bag => {
|
|
29
30
|
(0, _reactNativeReanimated.cancelAnimation)(bag.transitionProgress);
|
|
30
31
|
(0, _reactNativeReanimated.cancelAnimation)(bag.visualProgress);
|
|
32
|
+
(0, _reactNativeReanimated.cancelAnimation)(bag.stackProgress);
|
|
31
33
|
(0, _reactNativeReanimated.cancelAnimation)(bag.willAnimate);
|
|
32
34
|
(0, _reactNativeReanimated.cancelAnimation)(bag.progressAnimating);
|
|
33
35
|
(0, _reactNativeReanimated.cancelAnimation)(bag.progressSettled);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","transitionProgress","makeMutable","visualProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;
|
|
1
|
+
{"version":3,"names":["_reactNativeReanimated","require","_createStore","createAnimationBag","transitionProgress","makeMutable","visualProgress","stackProgress","willAnimate","closing","progressAnimating","progressSettled","entering","AnimationStore","exports","createStore","createBag","disposeBag","bag","cancelAnimation"],"sourceRoot":"../../../../src","sources":["shared/stores/animation.store.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AAKA,IAAAC,YAAA,GAAAD,OAAA;AAaA,SAASE,kBAAkBA,CAAA,EAAsB;EAChD,OAAO;IACNC,kBAAkB,EAAE,IAAAC,kCAAW,EAAC,CAAC,CAAC;IAClCC,cAAc,EAAE,IAAAD,kCAAW,EAAC,CAAC,CAAC;IAC9BE,aAAa,EAAE,IAAAF,kCAAW,EAAC,CAAC,CAAC;IAC7BG,WAAW,EAAE,IAAAH,kCAAW,EAAC,CAAC,CAAC;IAC3BI,OAAO,EAAE,IAAAJ,kCAAW,EAAC,CAAC,CAAC;IACvBK,iBAAiB,EAAE,IAAAL,kCAAW,EAAC,CAAC,CAAC;IACjCM,eAAe,EAAE,IAAAN,kCAAW,EAAC,CAAC,CAAC;IAC/BO,QAAQ,EAAE,IAAAP,kCAAW,EAAC,CAAC;EACxB,CAAC;AACF;;AAEA;AACA;AACA;AACA;AACA;AACO,MAAMQ,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,IAAAE,wBAAW,EAAoB;EAC5DC,SAAS,EAAEb,kBAAkB;EAC7Bc,UAAU,EAAGC,GAAG,IAAK;IACpB,IAAAC,sCAAe,EAACD,GAAG,CAACd,kBAAkB,CAAC;IACvC,IAAAe,sCAAe,EAACD,GAAG,CAACZ,cAAc,CAAC;IACnC,IAAAa,sCAAe,EAACD,GAAG,CAACX,aAAa,CAAC;IAClC,IAAAY,sCAAe,EAACD,GAAG,CAACV,WAAW,CAAC;IAChC,IAAAW,sCAAe,EAACD,GAAG,CAACR,iBAAiB,CAAC;IACtC,IAAAS,sCAAe,EAACD,GAAG,CAACP,eAAe,CAAC;IACpC,IAAAQ,sCAAe,EAACD,GAAG,CAACT,OAAO,CAAC;IAC5B,IAAAU,sCAAe,EAACD,GAAG,CAACN,QAAQ,CAAC;E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