react-native-screen-transitions 3.9.0-alpha.3 → 3.9.0-beta.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/portal/components/portal-boundary-host.js +31 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js +7 -43
- package/lib/commonjs/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js +57 -0
- package/lib/commonjs/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js +4 -3
- package/lib/commonjs/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/commonjs/shared/components/masked-view.js +5 -0
- package/lib/commonjs/shared/components/masked-view.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js +18 -8
- package/lib/commonjs/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/content.js +34 -16
- package/lib/commonjs/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/commonjs/shared/components/screen-container/layers/render-component.js +10 -0
- package/lib/commonjs/shared/components/screen-container/layers/render-component.js.map +1 -0
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js +5 -3
- package/lib/commonjs/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/commonjs/shared/index.js +4 -0
- package/lib/commonjs/shared/index.js.map +1 -1
- package/lib/commonjs/shared/providers/register-bounds.provider.js +6 -0
- package/lib/commonjs/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js +6 -1
- package/lib/commonjs/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/commonjs/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js +50 -0
- package/lib/commonjs/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js.map +1 -0
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +7 -1
- package/lib/commonjs/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js +31 -1
- package/lib/module/shared/components/boundary/portal/components/portal-boundary-host.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/components/portal.js +8 -44
- package/lib/module/shared/components/boundary/portal/components/portal.js.map +1 -1
- package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js +52 -0
- package/lib/module/shared/components/boundary/portal/hooks/use-placeholder-styles.js.map +1 -0
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js +4 -3
- package/lib/module/shared/components/boundary/portal/utils/offset-style.js.map +1 -1
- package/lib/module/shared/components/masked-view.js +5 -0
- package/lib/module/shared/components/masked-view.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/backdrop.js +19 -9
- package/lib/module/shared/components/screen-container/layers/backdrop.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/content.js +35 -17
- package/lib/module/shared/components/screen-container/layers/content.js.map +1 -1
- package/lib/module/shared/components/screen-container/layers/render-component.js +6 -0
- package/lib/module/shared/components/screen-container/layers/render-component.js.map +1 -0
- package/lib/module/shared/components/screen-container/layers/surface-container.js +5 -3
- package/lib/module/shared/components/screen-container/layers/surface-container.js.map +1 -1
- package/lib/module/shared/index.js +4 -0
- package/lib/module/shared/index.js.map +1 -1
- package/lib/module/shared/providers/register-bounds.provider.js +6 -0
- package/lib/module/shared/providers/register-bounds.provider.js.map +1 -1
- package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js +6 -1
- package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js.map +1 -1
- package/lib/module/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js +45 -0
- package/lib/module/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js.map +1 -0
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js +7 -1
- package/lib/module/shared/providers/screen/styles/hooks/use-interpolated-style-maps.js.map +1 -1
- package/lib/typescript/component-stack/types.d.ts +26 -0
- package/lib/typescript/component-stack/types.d.ts.map +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.d.ts.map +1 -1
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts +17 -0
- package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map +1 -0
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts +10 -1
- package/lib/typescript/shared/components/boundary/portal/utils/offset-style.d.ts.map +1 -1
- package/lib/typescript/shared/components/masked-view.d.ts +4 -0
- package/lib/typescript/shared/components/masked-view.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/backdrop.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/content.d.ts.map +1 -1
- package/lib/typescript/shared/components/screen-container/layers/render-component.d.ts +3 -0
- package/lib/typescript/shared/components/screen-container/layers/render-component.d.ts.map +1 -0
- package/lib/typescript/shared/components/screen-container/layers/surface-container.d.ts.map +1 -1
- package/lib/typescript/shared/index.d.ts +37 -33
- 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/animation/helpers/read-screen-animation-revisions.d.ts +4 -1
- package/lib/typescript/shared/providers/screen/animation/helpers/read-screen-animation-revisions.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.d.ts +4 -0
- package/lib/typescript/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.d.ts.map +1 -0
- package/lib/typescript/shared/providers/screen/styles/hooks/use-interpolated-style-maps.d.ts.map +1 -1
- package/lib/typescript/shared/providers/screen/styles/hooks/use-maybe-block-visibility.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts +1 -1
- package/lib/typescript/shared/types/index.d.ts.map +1 -1
- package/lib/typescript/shared/types/screen.types.d.ts +99 -4
- package/lib/typescript/shared/types/screen.types.d.ts.map +1 -1
- package/lib/typescript/shared/utils/bounds/types/options.d.ts +2 -0
- package/lib/typescript/shared/utils/bounds/types/options.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/component-stack/types.ts +26 -0
- package/src/shared/components/boundary/portal/components/portal-boundary-host.tsx +51 -0
- package/src/shared/components/boundary/portal/components/portal.tsx +7 -39
- package/src/shared/components/boundary/portal/hooks/use-placeholder-styles.ts +55 -0
- package/src/shared/components/boundary/portal/utils/offset-style.ts +9 -2
- package/src/shared/components/masked-view.tsx +4 -0
- package/src/shared/components/screen-container/layers/backdrop.tsx +31 -10
- package/src/shared/components/screen-container/layers/content.tsx +61 -22
- package/src/shared/components/screen-container/layers/render-component.ts +9 -0
- package/src/shared/components/screen-container/layers/surface-container.tsx +5 -4
- package/src/shared/index.ts +9 -0
- package/src/shared/providers/register-bounds.provider.tsx +5 -0
- package/src/shared/providers/screen/animation/helpers/read-screen-animation-revisions.ts +14 -0
- package/src/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.ts +75 -0
- package/src/shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx +11 -0
- package/src/shared/types/index.ts +5 -0
- package/src/shared/types/screen.types.ts +111 -4
- package/src/shared/utils/bounds/types/options.ts +2 -0
|
@@ -12,7 +12,8 @@ import { GestureStore } from "../../../stores/gesture.store";
|
|
|
12
12
|
import { SystemStore } from "../../../stores/system.store";
|
|
13
13
|
import { animateToProgress } from "../../../utils/animation/animate-to-progress";
|
|
14
14
|
import { findCollapseTarget } from "../helpers/find-collapse-target";
|
|
15
|
-
import {
|
|
15
|
+
import { usesLayerRenderProps } from "./render-component";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
17
|
export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
17
18
|
backdropBehavior,
|
|
18
19
|
isBackdropActive
|
|
@@ -30,7 +31,7 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
|
30
31
|
targetProgress,
|
|
31
32
|
resolvedAutoSnapPoint
|
|
32
33
|
} = SystemStore.getBag(routeKey);
|
|
33
|
-
const AnimatedBackdropComponent = useMemo(() => BackdropComponent ? Animated.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
|
|
34
|
+
const AnimatedBackdropComponent = useMemo(() => BackdropComponent && !usesLayerRenderProps(BackdropComponent) ? Animated.createAnimatedComponent(BackdropComponent) : null, [BackdropComponent]);
|
|
34
35
|
const handleBackdropPress = useCallback(() => {
|
|
35
36
|
if (backdropBehavior === "dismiss") {
|
|
36
37
|
dismissScreen();
|
|
@@ -82,16 +83,25 @@ export const BackdropLayer = /*#__PURE__*/memo(function BackdropLayer({
|
|
|
82
83
|
}, [animations, targetProgress, resolvedAutoSnapPoint, backdropBehavior, current, dismissScreen, routeKey]);
|
|
83
84
|
const animatedBackdropStyle = useSlotStyles("backdrop");
|
|
84
85
|
const animatedBackdropProps = useSlotProps("backdrop");
|
|
85
|
-
|
|
86
|
+
const backdropPointerEvents = isBackdropActive ? "auto" : "none";
|
|
87
|
+
const backdropStyles = [StyleSheet.absoluteFill, animatedBackdropStyle];
|
|
88
|
+
const backdropProps = animatedBackdropProps;
|
|
89
|
+
return /*#__PURE__*/_jsx(Pressable, {
|
|
86
90
|
style: StyleSheet.absoluteFill,
|
|
87
91
|
pointerEvents: isBackdropActive ? "auto" : "none",
|
|
88
92
|
onPress: isBackdropActive ? handleBackdropPress : undefined,
|
|
89
|
-
children:
|
|
90
|
-
style:
|
|
91
|
-
animatedProps: animatedBackdropProps
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
children: AnimatedBackdropComponent ? /*#__PURE__*/_jsx(AnimatedBackdropComponent, {
|
|
94
|
+
style: backdropStyles,
|
|
95
|
+
animatedProps: animatedBackdropProps,
|
|
96
|
+
pointerEvents: backdropPointerEvents
|
|
97
|
+
}) : BackdropComponent ? /*#__PURE__*/_jsx(BackdropComponent, {
|
|
98
|
+
styles: backdropStyles,
|
|
99
|
+
props: backdropProps,
|
|
100
|
+
pointerEvents: backdropPointerEvents
|
|
101
|
+
}) : /*#__PURE__*/_jsx(Animated.View, {
|
|
102
|
+
style: backdropStyles,
|
|
103
|
+
pointerEvents: backdropPointerEvents
|
|
104
|
+
})
|
|
95
105
|
});
|
|
96
106
|
});
|
|
97
107
|
//# sourceMappingURL=backdrop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","DefaultSnapSpec","useNavigationHelpers","useDescriptors","useSlotProps","useSlotStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","
|
|
1
|
+
{"version":3,"names":["memo","useCallback","useMemo","Pressable","StyleSheet","Animated","runOnUI","DefaultSnapSpec","useNavigationHelpers","useDescriptors","useSlotProps","useSlotStyles","AnimationStore","GestureStore","SystemStore","animateToProgress","findCollapseTarget","usesLayerRenderProps","jsx","_jsx","BackdropLayer","backdropBehavior","isBackdropActive","current","dismissScreen","BackdropComponent","options","backdropComponent","routeKey","route","key","animations","getBag","targetProgress","resolvedAutoSnapPoint","AnimatedBackdropComponent","createAnimatedComponent","handleBackdropPress","rawSnapPoints","snapPoints","canDismiss","gestureEnabled","length","gestures","transitionSpec","resolvedSnaps","i","point","resolvedPoint","get","push","target","shouldDismiss","transitionProgress","dismissing","set","spec","open","expand","close","collapse","onAnimationFinish","undefined","animatedBackdropStyle","animatedBackdropProps","backdropPointerEvents","backdropStyles","absoluteFill","backdropProps","style","pointerEvents","onPress","children","animatedProps","styles","props","View"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/backdrop.tsx"],"mappings":";;AAAA,SAA6BA,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AAc;MACrBE,aAAa,EAAEL;IAAsB,CACrC,CAAC,gBAEF9C,IAAA,CAACd,QAAQ,CAACuE,IAAI;MACbP,KAAK,EAAEH,cAAe;MACtBI,aAAa,EAAEL;IAAsB,CACrC;EACD,CACS,CAAC;AAEd,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
/** biome-ignore-all lint/style/noNonNullAssertion: <Screen gesture is under the gesture context, so this will always exist.> */
|
|
4
|
-
import { memo } from "react";
|
|
4
|
+
import { memo, useMemo } from "react";
|
|
5
5
|
import { StyleSheet, View } from "react-native";
|
|
6
6
|
import { GestureDetector } from "react-native-gesture-handler";
|
|
7
7
|
import Animated from "react-native-reanimated";
|
|
@@ -12,6 +12,7 @@ import { useSlotProps, useSlotStyles } from "../../../providers/screen/styles";
|
|
|
12
12
|
import { ScreenFallbackHost } from "../../boundary/portal/components/host";
|
|
13
13
|
import { useContentLayout } from "../hooks/use-content-layout";
|
|
14
14
|
import { MaybeMaskedNavigationContainer } from "./maybe-masked-navigation-container";
|
|
15
|
+
import { usesLayerRenderProps } from "./render-component";
|
|
15
16
|
import { SurfaceContainer } from "./surface-container";
|
|
16
17
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
18
|
export const ContentLayer = /*#__PURE__*/memo(({
|
|
@@ -23,32 +24,49 @@ export const ContentLayer = /*#__PURE__*/memo(({
|
|
|
23
24
|
current
|
|
24
25
|
} = useDescriptors();
|
|
25
26
|
const gestureContext = useGestureContext();
|
|
27
|
+
const ContentComponent = current.options.contentComponent;
|
|
26
28
|
const isNavigationMaskEnabled = !!current.options.navigationMaskEnabled;
|
|
27
29
|
const contentPointerEvents = isBackdropActive ? "box-none" : pointerEvents;
|
|
30
|
+
const AnimatedContentComponent = useMemo(() => {
|
|
31
|
+
return ContentComponent && !usesLayerRenderProps(ContentComponent) ? Animated.createAnimatedComponent(ContentComponent) : null;
|
|
32
|
+
}, [ContentComponent]);
|
|
28
33
|
const hasAutoSnapPoint = current.options.snapPoints?.includes("auto") ?? false;
|
|
29
34
|
const handleContentLayout = useContentLayout();
|
|
30
35
|
const animatedContentStyle = useSlotStyles("content");
|
|
31
36
|
const animatedContentProps = useSlotProps("content");
|
|
37
|
+
const contentStyles = [styles.content, animatedContentStyle];
|
|
38
|
+
const contentProps = animatedContentProps;
|
|
39
|
+
const contentChildren = /*#__PURE__*/_jsx(MaybeMaskedNavigationContainer, {
|
|
40
|
+
pointerEvents: contentPointerEvents,
|
|
41
|
+
enabled: isNavigationMaskEnabled,
|
|
42
|
+
children: /*#__PURE__*/_jsx(SurfaceContainer, {
|
|
43
|
+
pointerEvents: contentPointerEvents,
|
|
44
|
+
children: /*#__PURE__*/_jsxs(OriginProvider, {
|
|
45
|
+
children: [hasAutoSnapPoint ? /*#__PURE__*/_jsx(View, {
|
|
46
|
+
collapsable: false,
|
|
47
|
+
onLayout: handleContentLayout,
|
|
48
|
+
children: children
|
|
49
|
+
}) : children, /*#__PURE__*/_jsx(ScreenFallbackHost, {})]
|
|
50
|
+
})
|
|
51
|
+
})
|
|
52
|
+
});
|
|
32
53
|
return /*#__PURE__*/_jsx(GestureDetector, {
|
|
33
54
|
gesture: gestureContext.detectorGesture,
|
|
34
|
-
children: /*#__PURE__*/_jsx(
|
|
35
|
-
style:
|
|
55
|
+
children: AnimatedContentComponent ? /*#__PURE__*/_jsx(AnimatedContentComponent, {
|
|
56
|
+
style: contentStyles,
|
|
36
57
|
animatedProps: animatedContentProps,
|
|
37
58
|
pointerEvents: contentPointerEvents,
|
|
38
|
-
children:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
})
|
|
59
|
+
children: contentChildren
|
|
60
|
+
}) : ContentComponent ? /*#__PURE__*/_jsx(ContentComponent, {
|
|
61
|
+
styles: contentStyles,
|
|
62
|
+
props: contentProps,
|
|
63
|
+
pointerEvents: contentPointerEvents,
|
|
64
|
+
children: contentChildren
|
|
65
|
+
}) : /*#__PURE__*/_jsx(Animated.View, {
|
|
66
|
+
style: contentStyles,
|
|
67
|
+
animatedProps: animatedContentProps,
|
|
68
|
+
pointerEvents: contentPointerEvents,
|
|
69
|
+
children: contentChildren
|
|
52
70
|
})
|
|
53
71
|
});
|
|
54
72
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","StyleSheet","View","GestureDetector","Animated","useDescriptors","useGestureContext","OriginProvider","useSlotProps","useSlotStyles","ScreenFallbackHost","useContentLayout","MaybeMaskedNavigationContainer","SurfaceContainer","jsx","_jsx","jsxs","_jsxs","ContentLayer","children","pointerEvents","isBackdropActive","current","gestureContext","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","StyleSheet","View","GestureDetector","Animated","useDescriptors","useGestureContext","OriginProvider","useSlotProps","useSlotStyles","ScreenFallbackHost","useContentLayout","MaybeMaskedNavigationContainer","usesLayerRenderProps","SurfaceContainer","jsx","_jsx","jsxs","_jsxs","ContentLayer","children","pointerEvents","isBackdropActive","current","gestureContext","ContentComponent","options","contentComponent","isNavigationMaskEnabled","navigationMaskEnabled","contentPointerEvents","AnimatedContentComponent","createAnimatedComponent","hasAutoSnapPoint","snapPoints","includes","handleContentLayout","animatedContentStyle","animatedContentProps","contentStyles","styles","content","contentProps","contentChildren","enabled","collapsable","onLayout","gesture","detectorGesture","style","animatedProps","props","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/content.tsx"],"mappings":";;AAAA;AACA,SAA6BA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,SAASC,eAAe,QAAQ,8BAA8B;AAC9D,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,cAAc,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EpB,CACD,CAAC;AAED,MAAMH,MAAM,GAAGvC,UAAU,CAACmD,MAAM,CAAC;EAChCX,OAAO,EAAE;IACRY,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["usesLayerRenderProps","component","prototype","isReactComponent"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/render-component.ts"],"mappings":";;AAEA,OAAO,SAASA,oBAAoBA,CACnCC,SAA6B,EACyB;EACtD,OACC,OAAOA,SAAS,KAAK,UAAU,IAAI,CAACA,SAAS,CAACC,SAAS,EAAEC,gBAAgB;AAE3E","ignoreList":[]}
|
|
@@ -13,10 +13,12 @@ export const SurfaceContainer = /*#__PURE__*/memo(({
|
|
|
13
13
|
const {
|
|
14
14
|
current
|
|
15
15
|
} = useDescriptors();
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
/** @deprecated Use `contentComponent` instead. */
|
|
18
|
+
const DeprecatedSurfaceComponent = current.options.surfaceComponent;
|
|
17
19
|
const AnimatedSurfaceComponent = useMemo(() => {
|
|
18
|
-
return
|
|
19
|
-
}, [
|
|
20
|
+
return DeprecatedSurfaceComponent ? Animated.createAnimatedComponent(DeprecatedSurfaceComponent) : null;
|
|
21
|
+
}, [DeprecatedSurfaceComponent]);
|
|
20
22
|
if (!AnimatedSurfaceComponent) return children;
|
|
21
23
|
return /*#__PURE__*/_jsx(AnimatedSurface, {
|
|
22
24
|
SurfaceComponent: AnimatedSurfaceComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["memo","useMemo","StyleSheet","Animated","useDescriptors","useSlotProps","useSlotStyles","jsx","_jsx","SurfaceContainer","children","pointerEvents","current","
|
|
1
|
+
{"version":3,"names":["memo","useMemo","StyleSheet","Animated","useDescriptors","useSlotProps","useSlotStyles","jsx","_jsx","SurfaceContainer","children","pointerEvents","current","DeprecatedSurfaceComponent","options","surfaceComponent","AnimatedSurfaceComponent","createAnimatedComponent","AnimatedSurface","SurfaceComponent","animatedSurfaceStyle","animatedSurfaceProps","style","styles","surface","animatedProps","create","flex"],"sourceRoot":"../../../../../../src","sources":["shared/components/screen-container/layers/surface-container.tsx"],"mappings":";;AAAA,SAA6BA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AACzD,SAASC,UAAU,QAAwB,cAAc;AACzD,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,SAASC,cAAc,QAAQ,uCAAuC;AACtE,SAASC,YAAY,EAAEC,aAAa,QAAQ,kCAAkC;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAO/E,OAAO,MAAMC,gBAAgB,gBAAGT,IAAI,CAAC,CAAC;EAAEU,QAAQ;EAAEC;AAAqB,CAAC,KAAK;EAC5E,MAAM;IAAEC;EAAQ,CAAC,GAAGR,cAAc,CAAC,CAAC;;EAEpC;EACA,MAAMS,0BAA0B,GAAGD,OAAO,CAACE,OAAO,CAACC,gBAAgB;EAEnE,MAAMC,wBAAwB,GAAGf,OAAO,CAA4B,MAAM;IACzE,OAAOY,0BAA0B,GAC9BV,QAAQ,CAACc,uBAAuB,CAACJ,0BAA0B,CAAC,GAC5D,IAAI;EACR,CAAC,EAAE,CAACA,0BAA0B,CAAC,CAAC;EAEhC,IAAI,CAACG,wBAAwB,EAAE,OAAON,QAAQ;EAE9C,oBACCF,IAAA,CAACU,eAAe;IACfC,gBAAgB,EAAEH,wBAAyB;IAC3CL,aAAa,EAAEA,aAAc;IAAAD,QAAA,EAE5BA;EAAQ,CACO,CAAC;AAEpB,CAAC,CAAC;AAQF,MAAMQ,eAAe,gBAAGlB,IAAI,CAC3B,CAAC;EAAEU,QAAQ;EAAEC,aAAa;EAAEQ;AAAuC,CAAC,KAAK;EACxE,MAAMC,oBAAoB,GAAGd,aAAa,CAAC,SAAS,CAAC;EACrD,MAAMe,oBAAoB,GAAGhB,YAAY,CAAC,SAAS,CAAC;EAEpD,oBACCG,IAAA,CAACW,gBAAgB;IAChBG,KAAK,EAAE,CAACC,MAAM,CAACC,OAAO,EAAEJ,oBAAoB,CAAE;IAC9CK,aAAa,EAAEJ,oBAAqB;IACpCV,aAAa,EAAEA,aAAc;IAAAD,QAAA,EAE5BA;EAAQ,CACQ,CAAC;AAErB,CACD,CAAC;AAED,MAAMa,MAAM,GAAGrB,UAAU,CAACwB,MAAM,CAAC;EAChCF,OAAO,EAAE;IACRG,IAAI,EAAE;EACP;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -19,6 +19,10 @@ export default {
|
|
|
19
19
|
FlatList: createTransitionAwareComponent(FlatList, {
|
|
20
20
|
isScrollable: true
|
|
21
21
|
}),
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use `navigationMaskEnabled` with the navigation mask style IDs
|
|
24
|
+
* instead.
|
|
25
|
+
*/
|
|
22
26
|
MaskedView: MaskedView,
|
|
23
27
|
Presets,
|
|
24
28
|
Specs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["FlatList","Pressable","ScrollView","View","withScreenTransitions","Boundary","createBoundaryComponent","createTransitionAwareComponent","MaskedView","Presets","Specs","isScrollable","snapTo","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","TRANSFORM_RESET","useHistory","useScreenState","useScreenAnimation","useScreenGesture"],"sourceRoot":"../../../src","sources":["shared/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACpE,SAASC,qBAAqB,QAAQ,oCAAoC;AAC1E,SAASC,QAAQ,EAAEC,uBAAuB,QAAQ,uBAAuB;AACzE,SAASC,8BAA8B,QAAQ,gDAAgD;AAC/F,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,OAAO,EAAEC,KAAK,QAAQ,WAAW;AAE1C,eAAe;EACdH,8BAA8B;EAC9BD,uBAAuB;EACvBF,qBAAqB;EACrBC,QAAQ;EACRF,IAAI,EAAEI,8BAA8B,CAACJ,IAAI,CAAC;EAC1CF,SAAS,EAAEM,8BAA8B,CAACN,SAAS,CAAC;EACpDC,UAAU,EAAEK,8BAA8B,CAACL,UAAU,EAAE;IACtDS,YAAY,EAAE;EACf,CAAC,CAAC;EACFX,QAAQ,EAAEO,8BAA8B,CAACP,QAAQ,EAAE;IAClDW,YAAY,EAAE;EACf,CAAC,CAAC;
|
|
1
|
+
{"version":3,"names":["FlatList","Pressable","ScrollView","View","withScreenTransitions","Boundary","createBoundaryComponent","createTransitionAwareComponent","MaskedView","Presets","Specs","isScrollable","snapTo","NAVIGATION_MASK_CONTAINER_STYLE_ID","NAVIGATION_MASK_ELEMENT_STYLE_ID","TRANSFORM_RESET","useHistory","useScreenState","useScreenAnimation","useScreenGesture"],"sourceRoot":"../../../src","sources":["shared/index.ts"],"mappings":";;AAAA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,UAAU,EAAEC,IAAI,QAAQ,cAAc;AACpE,SAASC,qBAAqB,QAAQ,oCAAoC;AAC1E,SAASC,QAAQ,EAAEC,uBAAuB,QAAQ,uBAAuB;AACzE,SAASC,8BAA8B,QAAQ,gDAAgD;AAC/F,OAAOC,UAAU,MAAM,0BAA0B;AACjD,SAASC,OAAO,EAAEC,KAAK,QAAQ,WAAW;AAE1C,eAAe;EACdH,8BAA8B;EAC9BD,uBAAuB;EACvBF,qBAAqB;EACrBC,QAAQ;EACRF,IAAI,EAAEI,8BAA8B,CAACJ,IAAI,CAAC;EAC1CF,SAAS,EAAEM,8BAA8B,CAACN,SAAS,CAAC;EACpDC,UAAU,EAAEK,8BAA8B,CAACL,UAAU,EAAE;IACtDS,YAAY,EAAE;EACf,CAAC,CAAC;EACFX,QAAQ,EAAEO,8BAA8B,CAACP,QAAQ,EAAE;IAClDW,YAAY,EAAE;EACf,CAAC,CAAC;EACF;AACD;AACA;AACA;EACCH,UAAU,EAAEA,UAAU;EACtBC,OAAO;EACPC;AACD,CAAC;AAGD,SAASN,qBAAqB,QAAQ,oCAAoC;AAC1E,SAASQ,MAAM,QAAQ,qBAAqB;AAC5C,SACCC,kCAAkC,EAClCC,gCAAgC,EAChCC,eAAe,QACT,aAAa;AACpB,SAASC,UAAU,QAAQ,gCAAgC;AAC3D,SAECC,cAAc,QACR,qCAAqC;AAC5C,SAECC,kBAAkB,QACZ,8BAA8B;AACrC,SAECC,gBAAgB,QACV,sDAAsD","ignoreList":[]}
|
|
@@ -13,6 +13,12 @@ import { prepareStyleForBounds } from "../utils/bounds/helpers/styles/styles";
|
|
|
13
13
|
import createProvider from "../utils/create-provider";
|
|
14
14
|
import { applyMeasuredBoundsWrites } from "./helpers/measured-bounds-writes";
|
|
15
15
|
import { useDescriptorDerivations, useDescriptors } from "./screen/descriptors";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Internal legacy provider for the old shared-bound-tag registration
|
|
19
|
+
* path. Do not build new boundary behavior here; use the Transition.Boundary
|
|
20
|
+
* measurement pipeline instead.
|
|
21
|
+
*/
|
|
16
22
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
17
23
|
const getRouteParamId = route => {
|
|
18
24
|
const params = route?.params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","useStableCallback","useStableCallbackValue","AnimationStore","createPendingPairKey","createScreenPairKey","getEntry","getDestination","getSource","prepareStyleForBounds","createProvider","applyMeasuredBoundsWrites","useDescriptorDerivations","useDescriptors","Fragment","_Fragment","jsx","_jsx","getRouteParamId","route","params","rawId","id","matchesSelectionTag","tag","selectedId","endsWith","useInitialLayoutHandler","sharedBoundTag","currentScreenKey","ancestorKeys","maybeMeasureAndStore","isAnimating","getValue","ancestorAnimations","map","key","hasMeasuredOnLayout","get","isAnyAnimating","i","length","shouldSetSource","shouldSetDestination","set","useBlurMeasurement","current","enabled","selectedRouteId","hasCapturedSource","ancestorClosing","maybeMeasureOnBlur","closing","markSourceCaptured","useParentSyncReaction","parentContext","updateSignal","value","undefined","useRegisterBoundsContext","registerBoundsBundle","guarded","style","onPress","animatedRef","children","next","previousScreenKey","selectedNextRouteId","ownSignal","preparedStyles","emitUpdate","isRoot","sourcePairKey","destinationPairKey","pendingSourcePairKey","existing","bounds","entryTag","linkId","measured","linkWrite","type","pairKey","hasPendingSource","hasSource","hasDestination","wantsSetSource","wantsSetDestination","wantsSnapshotOnly","canSetSource","canSetDestination","canSnapshotOnly","handleInitialLayout","captureActiveOnPress","RegisterBoundsProvider"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,0BAA0B;AACzD,SAAyBC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAEpE,SAECC,OAAO,EACPC,OAAO,EACPC,OAAO,EAEPC,mBAAmB,EACnBC,cAAc,QACR,yBAAyB;AAEhC,OAAOC,iBAAiB,MAAM,8BAA8B;AAC5D,OAAOC,sBAAsB,MAAM,oCAAoC;AACvE,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SACCC,oBAAoB,EACpBC,mBAAmB,QACb,6CAA6C;AACpD,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,cAAc,EAAEC,SAAS,QAAQ,kCAAkC;AAC5E,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,OAAOC,cAAc,MAAM,0BAA0B;AACrD,SAASC,yBAAyB,QAAQ,kCAAkC;AAC5E,SAASC,wBAAwB,EAAEC,cAAc,QAAQ,sBAAsB;
|
|
1
|
+
{"version":3,"names":["useFocusEffect","useCallback","useMemo","useRef","measure","runOnJS","runOnUI","useAnimatedReaction","useSharedValue","useStableCallback","useStableCallbackValue","AnimationStore","createPendingPairKey","createScreenPairKey","getEntry","getDestination","getSource","prepareStyleForBounds","createProvider","applyMeasuredBoundsWrites","useDescriptorDerivations","useDescriptors","Fragment","_Fragment","jsx","_jsx","getRouteParamId","route","params","rawId","id","matchesSelectionTag","tag","selectedId","endsWith","useInitialLayoutHandler","sharedBoundTag","currentScreenKey","ancestorKeys","maybeMeasureAndStore","isAnimating","getValue","ancestorAnimations","map","key","hasMeasuredOnLayout","get","isAnyAnimating","i","length","shouldSetSource","shouldSetDestination","set","useBlurMeasurement","current","enabled","selectedRouteId","hasCapturedSource","ancestorClosing","maybeMeasureOnBlur","closing","markSourceCaptured","useParentSyncReaction","parentContext","updateSignal","value","undefined","useRegisterBoundsContext","registerBoundsBundle","guarded","style","onPress","animatedRef","children","next","previousScreenKey","selectedNextRouteId","ownSignal","preparedStyles","emitUpdate","isRoot","sourcePairKey","destinationPairKey","pendingSourcePairKey","existing","bounds","entryTag","linkId","measured","linkWrite","type","pairKey","hasPendingSource","hasSource","hasDestination","wantsSetSource","wantsSetDestination","wantsSnapshotOnly","canSetSource","canSetDestination","canSnapshotOnly","handleInitialLayout","captureActiveOnPress","RegisterBoundsProvider"],"sourceRoot":"../../../../src","sources":["shared/providers/register-bounds.provider.tsx"],"mappings":";;AAAA,SAASA,cAAc,QAAQ,0BAA0B;AACzD,SAAyBC,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAEpE,SAECC,OAAO,EACPC,OAAO,EACPC,OAAO,EAEPC,mBAAmB,EACnBC,cAAc,QACR,yBAAyB;AAEhC,OAAOC,iBAAiB,MAAM,8BAA8B;AAC5D,OAAOC,sBAAsB,MAAM,oCAAoC;AACvE,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SACCC,oBAAoB,EACpBC,mBAAmB,QACb,6CAA6C;AACpD,SAASC,QAAQ,QAAQ,oCAAoC;AAC7D,SAASC,cAAc,EAAEC,SAAS,QAAQ,kCAAkC;AAC5E,SAASC,qBAAqB,QAAQ,uCAAuC;AAC7E,OAAOC,cAAc,MAAM,0BAA0B;AACrD,SAASC,yBAAyB,QAAQ,kCAAkC;AAC5E,SAASC,wBAAwB,EAAEC,cAAc,QAAQ,sBAA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gB,OAAO;IACjBnC,cAAc;IACdoB,eAAe,EAAEoB,mBAAmB;IACpCrC,oBAAoB;IACpBD;EACD,CAAC,CAAC;EAEFwB,qBAAqB,CAAC;IAAEC,aAAa;IAAExB;EAAqB,CAAC,CAAC;EAE9D,MAAM+D,oBAAoB,GAAG7F,iBAAiB,CAAC,MAAM;IACpD,IAAI,CAAC2B,cAAc,EAAE;MACpBmC,OAAO,GAAG,CAAC;MACX;IACD;IACAjE,OAAO,CAACiC,oBAAoB,CAAC,CAAC;MAAEgC,OAAO;MAAErB,eAAe,EAAE;IAAK,CAAC,CAAC;IACjEW,kBAAkB,CAAC,CAAC;EACrB,CAAC,CAAC;EAEF,OAAO;IACNI,KAAK,EAAE;MAAED;IAAa,CAAC;IACvBS,QAAQ,eAAEhD,IAAA,CAAAF,SAAA;MAAAkD,QAAA,EAAGA,QAAQ,CAAC;QAAE4B,mBAAmB;QAAEC;MAAqB,CAAC;IAAC,CAAG;EACxE,CAAC;AACF,CACD,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMC,sBAAsB,GAAGnC,oBAAoB,CAACmC,sBAAsB;AAC1EpC,wBAAwB,GAAGC,oBAAoB,CAACD,wBAAwB;AAExE,SAASoC,sBAAsB","ignoreList":[]}
|
package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
export const readScreenAnimationRevisions = (screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources) => {
|
|
3
|
+
export const readScreenAnimationRevisions = (screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources, screenInterpolatorExternalDeps) => {
|
|
4
4
|
"worklet";
|
|
5
5
|
|
|
6
6
|
screenInterpolatorPropsRevision.get();
|
|
@@ -11,5 +11,10 @@ export const readScreenAnimationRevisions = (screenInterpolatorPropsRevision, an
|
|
|
11
11
|
for (let index = 0; index < descendantSources.length; index++) {
|
|
12
12
|
descendantSources[index]?.source.screenInterpolatorPropsRevision.get();
|
|
13
13
|
}
|
|
14
|
+
if (screenInterpolatorExternalDeps) {
|
|
15
|
+
for (let index = 0; index < screenInterpolatorExternalDeps.length; index++) {
|
|
16
|
+
screenInterpolatorExternalDeps[index]?.get();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
14
19
|
};
|
|
15
20
|
//# sourceMappingURL=read-screen-animation-revisions.js.map
|
package/lib/module/shared/providers/screen/animation/helpers/read-screen-animation-revisions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["readScreenAnimationRevisions","screenInterpolatorPropsRevision","ancestorScreenAnimationSources","descendantScreenAnimationSources","get","index","length","descendantSources","source"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/read-screen-animation-revisions.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"names":["readScreenAnimationRevisions","screenInterpolatorPropsRevision","ancestorScreenAnimationSources","descendantScreenAnimationSources","screenInterpolatorExternalDeps","get","index","length","descendantSources","source"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/animation/helpers/read-screen-animation-revisions.ts"],"mappings":";;AASA,OAAO,MAAMA,4BAA4B,GAAGA,CAC3CC,+BAAgE,EAChEC,8BAAuD,EACvDC,gCAAkE,EAClEC,8BAA+D,KAC3D;EACJ,SAAS;;EACTH,+BAA+B,CAACI,GAAG,CAAC,CAAC;EAErC,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGJ,8BAA8B,CAACK,MAAM,EAAED,KAAK,EAAE,EAAE;IAC3EJ,8BAA8B,CAC7BI,KAAK,CACL,EAAEL,+BAA+B,CAACI,GAAG,CAAC,CAAC;EACzC;EAEA,MAAMG,iBAAiB,GAAGL,gCAAgC,CAACE,GAAG,CAAC,CAAC;EAChE,KAAK,IAAIC,KAAK,GAAG,CAAC,EAAEA,KAAK,GAAGE,iBAAiB,CAACD,MAAM,EAAED,KAAK,EAAE,EAAE;IAC9DE,iBAAiB,CAACF,KAAK,CAAC,EAAEG,MAAM,CAACR,+BAA+B,CAACI,GAAG,CAAC,CAAC;EACvE;EAEA,IAAID,8BAA8B,EAAE;IACnC,KACC,IAAIE,KAAK,GAAG,CAAC,EACbA,KAAK,GAAGF,8BAA8B,CAACG,MAAM,EAC7CD,KAAK,EAAE,EACN;MACDF,8BAA8B,CAACE,KAAK,CAAC,EAAED,GAAG,CAAC,CAAC;IAC7C;EACD;AACD,CAAC","ignoreList":[]}
|
package/lib/module/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const isSharedValueLike = value => value?._isReanimatedSharedValue === true;
|
|
4
|
+
const getWorkletClosure = value => {
|
|
5
|
+
if (value === null || typeof value !== "object" && typeof value !== "function") {
|
|
6
|
+
return undefined;
|
|
7
|
+
}
|
|
8
|
+
const closure = value.__closure;
|
|
9
|
+
return closure && typeof closure === "object" ? closure : undefined;
|
|
10
|
+
};
|
|
11
|
+
const isPlainObject = value => value !== null && typeof value === "object" && Object.getPrototypeOf(value) === Object.prototype;
|
|
12
|
+
export const collectInterpolatorSharedValues = interpolators => {
|
|
13
|
+
const sharedValues = [];
|
|
14
|
+
const seen = new Set();
|
|
15
|
+
const visit = value => {
|
|
16
|
+
if (value === null || value === undefined || seen.has(value)) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
seen.add(value);
|
|
20
|
+
if (isSharedValueLike(value)) {
|
|
21
|
+
sharedValues.push(value);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (typeof value === "function") {
|
|
25
|
+
visit(getWorkletClosure(value));
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
for (let index = 0; index < value.length; index++) {
|
|
30
|
+
visit(value[index]);
|
|
31
|
+
}
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (isPlainObject(value)) {
|
|
35
|
+
for (const item of Object.values(value)) {
|
|
36
|
+
visit(item);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
for (let index = 0; index < interpolators.length; index++) {
|
|
41
|
+
visit(getWorkletClosure(interpolators[index]));
|
|
42
|
+
}
|
|
43
|
+
return sharedValues;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=collect-interpolator-shared-values.js.map
|
package/lib/module/shared/providers/screen/styles/helpers/collect-interpolator-shared-values.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isSharedValueLike","value","_isReanimatedSharedValue","getWorkletClosure","undefined","closure","__closure","isPlainObject","Object","getPrototypeOf","prototype","collectInterpolatorSharedValues","interpolators","sharedValues","seen","Set","visit","has","add","push","Array","isArray","index","length","item","values"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/helpers/collect-interpolator-shared-values.ts"],"mappings":";;AAaA,MAAMA,iBAAiB,GAAIC,KAAc,IACvCA,KAAK,EAAsCC,wBAAwB,KAAK,IAAI;AAE9E,MAAMC,iBAAiB,GAAIF,KAAc,IAAiC;EACzE,IACCA,KAAK,KAAK,IAAI,IACb,OAAOA,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,UAAW,EACzD;IACD,OAAOG,SAAS;EACjB;EAEA,MAAMC,OAAO,GAAIJ,KAAK,CAA6BK,SAAS;EAC5D,OAAOD,OAAO,IAAI,OAAOA,OAAO,KAAK,QAAQ,GAAGA,OAAO,GAAGD,SAAS;AACpE,CAAC;AAED,MAAMG,aAAa,GAAIN,KAAc,IACpCA,KAAK,KAAK,IAAI,IACd,OAAOA,KAAK,KAAK,QAAQ,IACzBO,MAAM,CAACC,cAAc,CAACR,KAAK,CAAC,KAAKO,MAAM,CAACE,SAAS;AAElD,OAAO,MAAMC,+BAA+B,GAC3CC,aAAyD,IA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, useSharedValue } from "react-native-reanimated";
|
|
4
5
|
import { NO_STYLES } from "../../../../constants";
|
|
5
6
|
import { AnimationStore } from "../../../../stores/animation.store";
|
|
@@ -12,6 +13,7 @@ import { readScreenAnimationRevisions } from "../../animation/helpers/read-scree
|
|
|
12
13
|
import { syncSelectedInterpolatorOptions } from "../../animation/helpers/selected-interpolator-options";
|
|
13
14
|
import { useDescriptorsStore } from "../../descriptors";
|
|
14
15
|
import { syncScreenOptionsOverrides, useScreenOptionsContext } from "../../options";
|
|
16
|
+
import { collectInterpolatorSharedValues } from "../helpers/collect-interpolator-shared-values";
|
|
15
17
|
import { normalizeSlots } from "../helpers/normalize-slots";
|
|
16
18
|
import { isOpeningBeforeStart } from "../helpers/opening-phase";
|
|
17
19
|
import { stripInterpolatorOptions } from "../helpers/strip-interpolator-options";
|
|
@@ -102,6 +104,10 @@ export const useInterpolatedStylesMap = () => {
|
|
|
102
104
|
const boundsAccessor = useBuildBoundsAccessor();
|
|
103
105
|
const transition = useBuildTransitionAccessor();
|
|
104
106
|
const nextInterpolatorReady = useSharedValue(0);
|
|
107
|
+
|
|
108
|
+
// In some cases, a user may want to use external shared values to drive animations in the interpoaltor.
|
|
109
|
+
// We can now support this by collecting those shared values and reading them here to trigger an update.
|
|
110
|
+
const interpolatorSharedValues = useMemo(() => collectInterpolatorSharedValues([currentInterpolator, nextInterpolator]), [currentInterpolator, nextInterpolator]);
|
|
105
111
|
const activeScreenKey = nextScreenKey ?? currentScreenKey;
|
|
106
112
|
const {
|
|
107
113
|
entering: activeEntering,
|
|
@@ -114,7 +120,7 @@ export const useInterpolatedStylesMap = () => {
|
|
|
114
120
|
const localStylesMaps = useDerivedValue(() => {
|
|
115
121
|
"worklet";
|
|
116
122
|
|
|
117
|
-
readScreenAnimationRevisions(screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources);
|
|
123
|
+
readScreenAnimationRevisions(screenInterpolatorPropsRevision, ancestorScreenAnimationSources, descendantScreenAnimationSources, interpolatorSharedValues);
|
|
118
124
|
const props = screenInterpolatorProps.get();
|
|
119
125
|
const {
|
|
120
126
|
current,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useDerivedValue","useSharedValue","NO_STYLES","AnimationStore","LifecycleTransitionRequestKind","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","useBuildTransitionAccessor","readScreenAnimationRevisions","syncSelectedInterpolatorOptions","useDescriptorsStore","syncScreenOptionsOverrides","useScreenOptionsContext","normalizeSlots","isOpeningBeforeStart","stripInterpolatorOptions","NO_STYLE_LAYERS","normalizeRawStyleMap","rawStyleMap","stylesMap","runInterpolator","interpolator","props","progress","next","bounds","transition","undefined","raw","_","__DEV__","warn","appendLayer","layers","result","push","useInterpolatedStylesMap","currentScreenKey","s","derivations","nextScreenKey","screenOptions","screenInterpolatorProps","screenInterpolatorPropsRevision","selectedInterpolatorOptions","nextInterpolator","currentInterpolator","ancestorScreenAnimationSources","descendantScreenAnimationSources","boundsAccessor","nextInterpolatorReady","activeScreenKey","entering","activeEntering","transitionProgress","activeTransitionProgress","getBag","pendingLifecycleRequestKind","activePendingLifecycleRequestKind","isGesturingDuringCloseAnimation","localStylesMaps","get","current","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","isPendingOpen","Open","activeOpening","currentOwnsInterpolator","interpolatorOptionsOwner","selectedProgress","selectedNext","currentResult","options","nextResult","length"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,8BAA8B,EAC9BC,WAAW,QACL,iCAAiC;AAMxC,SAASC,MAAM,QAAQ,0BAA0B;AACjD,SAASC,yBAAyB,QAAQ,iBAAiB;AAC3D,SAASC,sBAAsB,QAAQ,6DAA6D;AACpG,SAASC,0BAA0B,QAAQ,iEAAiE;AAE5G,SAASC,4BAA4B,QAAQ,yDAAyD;AACtG,SAASC,+BAA+B,QAAQ,uDAAuD;AACvG,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SACCC,0BAA0B,EAC1BC,uBAAuB,QACjB,eAAe;AACtB,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,oBAAoB,QAAQ,0BAA0B;AAE/D,SAASC,wBAAwB,QAAQ,uCAAuC;AAEhF,MAAMC,eAAiC,GAAG,EAAE;AAgB5C,MAAMC,oBAAoB,GACzBC,WAAoD,IAChD;EACJ,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,
|
|
1
|
+
{"version":3,"names":["useMemo","useDerivedValue","useSharedValue","NO_STYLES","AnimationStore","LifecycleTransitionRequestKind","SystemStore","logger","useScreenAnimationContext","useBuildBoundsAccessor","useBuildTransitionAccessor","readScreenAnimationRevisions","syncSelectedInterpolatorOptions","useDescriptorsStore","syncScreenOptionsOverrides","useScreenOptionsContext","collectInterpolatorSharedValues","normalizeSlots","isOpeningBeforeStart","stripInterpolatorOptions","NO_STYLE_LAYERS","normalizeRawStyleMap","rawStyleMap","stylesMap","runInterpolator","interpolator","props","progress","next","bounds","transition","undefined","raw","_","__DEV__","warn","appendLayer","layers","result","push","useInterpolatedStylesMap","currentScreenKey","s","derivations","nextScreenKey","screenOptions","screenInterpolatorProps","screenInterpolatorPropsRevision","selectedInterpolatorOptions","nextInterpolator","currentInterpolator","ancestorScreenAnimationSources","descendantScreenAnimationSources","boundsAccessor","nextInterpolatorReady","interpolatorSharedValues","activeScreenKey","entering","activeEntering","transitionProgress","activeTransitionProgress","getBag","pendingLifecycleRequestKind","activePendingLifecycleRequestKind","isGesturingDuringCloseAnimation","localStylesMaps","get","current","isDragging","gesture","dragging","isNextClosing","closing","set","isInGestureMode","isPendingOpen","Open","activeOpening","currentOwnsInterpolator","interpolatorOptionsOwner","selectedProgress","selectedNext","currentResult","options","nextResult","length"],"sourceRoot":"../../../../../../../src","sources":["shared/providers/screen/styles/hooks/use-interpolated-style-maps.tsx"],"mappings":";;AAAA,SAASA,OAAO,QAAQ,OAAO;AAC/B,SAASC,eAAe,EAAEC,cAAc,QAAQ,yBAAyB;AACzE,SAASC,SAAS,QAAQ,uBAAuB;AACjD,SAASC,cAAc,QAAQ,oCAAoC;AACnE,SACCC,8BAA8B,EAC9BC,WAAW,QACL,iCAAiC;AAMxC,SAASC,MAAM,QAAQ,0BAA0B;AACjD,SAASC,yBAAyB,QAAQ,iBAAiB;AAC3D,SAASC,sBAAsB,QAAQ,6DAA6D;AACpG,SAASC,0BAA0B,QAAQ,iEAAiE;AAE5G,SAASC,4BAA4B,QAAQ,yDAAyD;AACtG,SAASC,+BAA+B,QAAQ,uDAAuD;AACvG,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SACCC,0BAA0B,EAC1BC,uBAAuB,QACjB,eAAe;AACtB,SAASC,+BAA+B,QAAQ,+CAA+C;AAC/F,SAASC,cAAc,QAAQ,4BAA4B;AAC3D,SAASC,oBAAoB,QAAQ,0BAA0B;AAE/D,SAASC,wBAAwB,QAAQ,uCAAuC;AAEhF,MAAMC,eAAiC,GAAG,EAAE;AAgB5C,MAAMC,oBAAoB,GACzBC,WAAoD,IAChD;EACJ,SAAS;;EAET,IAAI,CAACA,WAAW,EAAE;IACjB,OAAOnB,SAAS;EACjB;EAEA,MAAMoB,SAAS,GAAGN,cAAc,CAACE,wBAAwB,CAACG,WAAW,CAAC,CAAC;EAEvE,OAAOC,SAAS;AACjB,CAAC;AAED,MAAMC,eAAe,GAAGA,CAAC;EACxBC,YAAY;EACZC,KAAK;EACLC,QAAQ;EACRC,IAAI;EACJC,MAAM;EACNC;AACsB,CAAC,KAAqC;EAC5D,SAAS;;EAET,IAAI,CAACL,YAAY,EAAE;IAClB,OAAOM,SAAS;EACjB;EAEA,IAAI;IACH,MAAMC,GAAG,GAAGP,YAAY,CAAC;MACxB,GAAGC,KAAK;MACRC,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B;MAC9BvB,KAAK;MACLC,QAAQ,EAAEqD,gBAAgB;MAC1BpD,IAAI,EAAEqD,YAAY;MAClBpD,MAAM,EAAEwB,cAAc;MACtBvB;IACD,CAAC,CAAC;IAEFlB,+BAA+B,CAC9BoC,2BAA2B,EAC3B,MAAM,EACNoC,UAAU,EAAE9D,WAAW,EAAE6D,OAC1B,CAAC;IACDrE,0BAA0B,CAACiB,SAAS,EAAEc,aAAa,CAAC;IAEpD,MAAMR,MAAwB,GAAG,EAAE;IAEnCD,WAAW,CAACC,MAAM,EAAE6C,aAAa,CAAC;IAClC9C,WAAW,CAACC,MAAM,EAAE+C,UAAU,CAAC;IAE/B,IAAI/C,MAAM,CAACgD,MAAM,KAAK,CAAC,EAAE;MACxB,OAAOjE,eAAe;IACvB;IAEA,OAAOiB,MAAM;EACd,CAAC,CAAC;EAEF,OAAO;IACN4B,eAAe;IACfX;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -1,20 +1,37 @@
|
|
|
1
1
|
import type { DefaultNavigatorOptions, Descriptor, NavigationHelpers, NavigationProp, ParamListBase, RouteProp, StackActionHelpers, StackNavigationState, StackRouterOptions, Theme } from "@react-navigation/native";
|
|
2
2
|
import type { ScreenTransitionConfig } from "../shared";
|
|
3
3
|
import type { OverlayProps } from "../shared/types/overlay.types";
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
6
|
+
*/
|
|
4
7
|
export type ComponentStackNavigationEventMap = {};
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
10
|
+
*/
|
|
5
11
|
export type ComponentStackNavigationProp<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = NavigationProp<ParamList, RouteName, NavigatorID, StackNavigationState<ParamList>, ComponentStackNavigationOptions, ComponentStackNavigationEventMap> & StackActionHelpers<ParamList>;
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
14
|
+
*/
|
|
6
15
|
export type ComponentStackScreenProps<ParamList extends ParamListBase, RouteName extends keyof ParamList = string, NavigatorID extends string | undefined = undefined> = {
|
|
7
16
|
navigation: ComponentStackNavigationProp<ParamList, RouteName, NavigatorID>;
|
|
8
17
|
route: RouteProp<ParamList, RouteName>;
|
|
9
18
|
};
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
21
|
+
*/
|
|
10
22
|
export type ComponentStackOptionsArgs<ParamList extends ParamListBase, RouteName extends keyof ParamList = keyof ParamList, NavigatorID extends string | undefined = undefined> = ComponentStackScreenProps<ParamList, RouteName, NavigatorID> & {
|
|
11
23
|
theme: Theme;
|
|
12
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
27
|
+
*/
|
|
13
28
|
export type ComponentStackNavigationHelpers = NavigationHelpers<ParamListBase, ComponentStackNavigationEventMap>;
|
|
14
29
|
type ComponentStackNavigationConfig = {};
|
|
15
30
|
/**
|
|
16
31
|
* Props passed to overlay components in component-stack.
|
|
17
32
|
* Uses the shared OverlayProps type with component-stack's navigation type.
|
|
33
|
+
*
|
|
34
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
18
35
|
*/
|
|
19
36
|
export type ComponentStackOverlayProps = OverlayProps<ComponentStackNavigationProp<ParamListBase>>;
|
|
20
37
|
type ComponentStackScreenTransitionConfig = ScreenTransitionConfig & {
|
|
@@ -25,8 +42,17 @@ type ComponentStackScreenTransitionConfig = ScreenTransitionConfig & {
|
|
|
25
42
|
*/
|
|
26
43
|
detachPreviousScreen?: boolean;
|
|
27
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
47
|
+
*/
|
|
28
48
|
export type ComponentStackNavigationOptions = ComponentStackScreenTransitionConfig & {};
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
51
|
+
*/
|
|
29
52
|
export type ComponentStackNavigatorProps = DefaultNavigatorOptions<ParamListBase, string | undefined, StackNavigationState<ParamListBase>, ComponentStackNavigationOptions, ComponentStackNavigationEventMap, ComponentStackNavigationProp<ParamListBase>> & StackRouterOptions & ComponentStackNavigationConfig;
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Component stack is deprecated. Use blank stack instead.
|
|
55
|
+
*/
|
|
30
56
|
export type ComponentStackDescriptor = Descriptor<ComponentStackNavigationOptions, ComponentStackNavigationProp<ParamListBase>, RouteProp<ParamListBase>>;
|
|
31
57
|
export {};
|
|
32
58
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/component-stack/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,uBAAuB,EACvB,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,SAAS,EACT,kBAAkB,EAClB,oBAAoB,EACpB,kBAAkB,EAClB,KAAK,EACL,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAElE,MAAM,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAElD,MAAM,MAAM,4BAA4B,CACvC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MAAM,SAAS,GAAG,MAAM,EAC1C,WAAW,SAAS,MAAM,GAAG,SAAS,GAAG,SAAS,IAC/C,cAAc,CACjB,SAAS,EACT,SAAS,EACT,WAAW,EACX,oBAAoB,CAAC,SAAS,CAAC,EAC/B,+BAA+B,EAC/B,gCAAgC,CAChC,GACA,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAE/B,MAAM,MAAM,yBAAyB,CACpC,SAAS,SAAS,aAAa,EAC/B,SAAS,SAAS,MA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gC,EAChC,4BAA4B,CAAC,aAAa,CAAC,CAC3C,GACA,kBAAkB,GAClB,8BAA8B,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAChD,+BAA+B,EAC/B,4BAA4B,CAAC,aAAa,CAAC,EAC3C,SAAS,CAAC,aAAa,CAAC,CACxB,CAAC"}
|
package/lib/typescript/shared/components/boundary/portal/components/portal-boundary-host.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/components/portal-boundary-host.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"portal-boundary-host.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/components/portal-boundary-host.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAc,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAY1E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AASrF,KAAK,uBAAuB,GAAG;IAC9B,IAAI,EAAE,wBAAwB,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,yDAG5B,uBAAuB,oDA4HxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/components/portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EAId,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"portal.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/components/portal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIN,KAAK,SAAS,EAId,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAiB,EAChB,KAAK,WAAW,EAMhB,MAAM,yBAAyB,CAAC;AA2CjC,UAAU,WAAW;IACpB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;OAKG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACnC,mBAAmB,CAAC,EAAE,SAAS,CAAC;CAChC;AAED,eAAO,MAAM,MAAM,wHAOhB,WAAW,6UAyUZ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { LayoutRectangle } from "react-native";
|
|
2
|
+
import { type SharedValue } from "react-native-reanimated";
|
|
3
|
+
interface UsePlaceholderProps {
|
|
4
|
+
visiblePortalHostName: SharedValue<string | null>;
|
|
5
|
+
}
|
|
6
|
+
export declare const usePlaceholderStyles: ({ visiblePortalHostName, }: UsePlaceholderProps) => {
|
|
7
|
+
placeholderStyle: {
|
|
8
|
+
readonly width: "auto";
|
|
9
|
+
readonly height: "auto";
|
|
10
|
+
} | {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
handleOnLayout: (layout: LayoutRectangle) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=use-placeholder-styles.d.ts.map
|
package/lib/typescript/shared/components/boundary/portal/hooks/use-placeholder-styles.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-placeholder-styles.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/hooks/use-placeholder-styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACN,KAAK,WAAW,EAGhB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,mBAAmB;IAC5B,qBAAqB,EAAE,WAAW,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAClD;AAED,eAAO,MAAM,oBAAoB,GAAI,4BAElC,mBAAmB;;;;;;;;6BAqBX,eAAe;CAmBzB,CAAC"}
|
|
@@ -15,7 +15,16 @@ type ResolvePortalOffsetStyleParams = {
|
|
|
15
15
|
bounds: ScrollMeasuredDimensions;
|
|
16
16
|
hostKey: string;
|
|
17
17
|
placement: PortalOffsetPlacement;
|
|
18
|
+
/**
|
|
19
|
+
* Live correction applied on top of the stored source placement. Used by
|
|
20
|
+
* cross-screen hosts to keep the landing rect tracking the source screen's
|
|
21
|
+
* scroll while the source is interactive mid-flight.
|
|
22
|
+
*/
|
|
23
|
+
landingShift?: {
|
|
24
|
+
x: number;
|
|
25
|
+
y: number;
|
|
26
|
+
};
|
|
18
27
|
};
|
|
19
|
-
export declare const resolvePortalOffsetStyle: ({ bounds, hostKey, placement, }: ResolvePortalOffsetStyleParams) => StyleProps;
|
|
28
|
+
export declare const resolvePortalOffsetStyle: ({ bounds, hostKey, placement, landingShift, }: ResolvePortalOffsetStyleParams) => StyleProps;
|
|
20
29
|
export {};
|
|
21
30
|
//# sourceMappingURL=offset-style.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"offset-style.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/utils/offset-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAG5E;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,cAAc,CAAC;AAEnE,KAAK,8BAA8B,GAAG;IACrC,uEAAuE;IACvE,MAAM,EAAE,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"offset-style.d.ts","sourceRoot":"","sources":["../../../../../../../src/shared/components/boundary/portal/utils/offset-style.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAG5E;;;;;;;;GAQG;AACH,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,cAAc,CAAC;AAEnE,KAAK,8BAA8B,GAAG;IACrC,uEAAuE;IACvE,MAAM,EAAE,wBAAwB,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,qBAAqB,CAAC;IACjC;;;;OAIG;IACH,YAAY,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,+CAKtC,8BAA8B,KAAG,UAyCnC,CAAC"}
|