react-native-screen-transitions 2.3.2 → 2.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +73 -19
  2. package/lib/commonjs/__configs__/presets.js +7 -3
  3. package/lib/commonjs/__configs__/presets.js.map +1 -1
  4. package/lib/commonjs/__configs__/specs.js +1 -0
  5. package/lib/commonjs/__configs__/specs.js.map +1 -1
  6. package/lib/commonjs/components/controllers/screen-lifecycle.js +5 -8
  7. package/lib/commonjs/components/controllers/screen-lifecycle.js.map +1 -1
  8. package/lib/commonjs/components/create-transition-aware-component.js +2 -2
  9. package/lib/commonjs/components/create-transition-aware-component.js.map +1 -1
  10. package/lib/commonjs/hooks/bounds/use-bound-registry.js +11 -10
  11. package/lib/commonjs/hooks/bounds/use-bound-registry.js.map +1 -1
  12. package/lib/commonjs/hooks/gestures/use-build-gestures.js +18 -28
  13. package/lib/commonjs/hooks/gestures/use-build-gestures.js.map +1 -1
  14. package/lib/commonjs/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  15. package/lib/commonjs/utils/animation/start-screen-transition.js +8 -6
  16. package/lib/commonjs/utils/animation/start-screen-transition.js.map +1 -1
  17. package/lib/commonjs/utils/gesture/determine-dismissal.js +7 -55
  18. package/lib/commonjs/utils/gesture/determine-dismissal.js.map +1 -1
  19. package/lib/commonjs/utils/gesture/reset-gesture-values.js +46 -0
  20. package/lib/commonjs/utils/gesture/reset-gesture-values.js.map +1 -0
  21. package/lib/commonjs/utils/gesture/velocity.js +89 -0
  22. package/lib/commonjs/utils/gesture/velocity.js.map +1 -0
  23. package/lib/commonjs/utils/reanimated/version.js +12 -0
  24. package/lib/commonjs/utils/reanimated/version.js.map +1 -0
  25. package/lib/module/__configs__/presets.js +7 -3
  26. package/lib/module/__configs__/presets.js.map +1 -1
  27. package/lib/module/__configs__/specs.js +1 -0
  28. package/lib/module/__configs__/specs.js.map +1 -1
  29. package/lib/module/components/controllers/screen-lifecycle.js +5 -8
  30. package/lib/module/components/controllers/screen-lifecycle.js.map +1 -1
  31. package/lib/module/components/create-transition-aware-component.js +2 -2
  32. package/lib/module/components/create-transition-aware-component.js.map +1 -1
  33. package/lib/module/hooks/bounds/use-bound-registry.js +11 -10
  34. package/lib/module/hooks/bounds/use-bound-registry.js.map +1 -1
  35. package/lib/module/hooks/gestures/use-build-gestures.js +18 -28
  36. package/lib/module/hooks/gestures/use-build-gestures.js.map +1 -1
  37. package/lib/module/integrations/native-stack/views/NativeStackView.native.js.map +1 -1
  38. package/lib/module/utils/animation/start-screen-transition.js +8 -6
  39. package/lib/module/utils/animation/start-screen-transition.js.map +1 -1
  40. package/lib/module/utils/gesture/determine-dismissal.js +7 -55
  41. package/lib/module/utils/gesture/determine-dismissal.js.map +1 -1
  42. package/lib/module/utils/gesture/reset-gesture-values.js +41 -0
  43. package/lib/module/utils/gesture/reset-gesture-values.js.map +1 -0
  44. package/lib/module/utils/gesture/velocity.js +85 -0
  45. package/lib/module/utils/gesture/velocity.js.map +1 -0
  46. package/lib/module/utils/reanimated/version.js +7 -0
  47. package/lib/module/utils/reanimated/version.js.map +1 -0
  48. package/lib/typescript/__configs__/index.d.ts +1 -1
  49. package/lib/typescript/__configs__/presets.d.ts.map +1 -1
  50. package/lib/typescript/__configs__/specs.d.ts.map +1 -1
  51. package/lib/typescript/components/controllers/screen-lifecycle.d.ts.map +1 -1
  52. package/lib/typescript/components/create-transition-aware-component.d.ts +6 -12
  53. package/lib/typescript/components/create-transition-aware-component.d.ts.map +1 -1
  54. package/lib/typescript/hooks/bounds/use-bound-registry.d.ts +1 -5
  55. package/lib/typescript/hooks/bounds/use-bound-registry.d.ts.map +1 -1
  56. package/lib/typescript/hooks/gestures/use-build-gestures.d.ts.map +1 -1
  57. package/lib/typescript/index.d.ts +98 -62
  58. package/lib/typescript/index.d.ts.map +1 -1
  59. package/lib/typescript/utils/animation/start-screen-transition.d.ts +3 -2
  60. package/lib/typescript/utils/animation/start-screen-transition.d.ts.map +1 -1
  61. package/lib/typescript/utils/gesture/determine-dismissal.d.ts +0 -1
  62. package/lib/typescript/utils/gesture/determine-dismissal.d.ts.map +1 -1
  63. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts +16 -0
  64. package/lib/typescript/utils/gesture/reset-gesture-values.d.ts.map +1 -0
  65. package/lib/typescript/utils/gesture/velocity.d.ts +25 -0
  66. package/lib/typescript/utils/gesture/velocity.d.ts.map +1 -0
  67. package/lib/typescript/utils/reanimated/version.d.ts +2 -0
  68. package/lib/typescript/utils/reanimated/version.d.ts.map +1 -0
  69. package/package.json +3 -3
  70. package/src/__configs__/presets.ts +7 -1
  71. package/src/__configs__/specs.ts +1 -0
  72. package/src/components/controllers/screen-lifecycle.tsx +5 -7
  73. package/src/components/create-transition-aware-component.tsx +2 -2
  74. package/src/hooks/bounds/use-bound-registry.tsx +21 -18
  75. package/src/hooks/gestures/use-build-gestures.tsx +20 -15
  76. package/src/integrations/native-stack/views/NativeStackView.native.tsx +1 -1
  77. package/src/utils/animation/start-screen-transition.ts +13 -4
  78. package/src/utils/gesture/determine-dismissal.ts +18 -69
  79. package/src/utils/gesture/reset-gesture-values.ts +48 -0
  80. package/src/utils/gesture/velocity.ts +144 -0
  81. package/src/utils/reanimated/version.ts +5 -0
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+
3
+ import { clamp } from "react-native-reanimated";
4
+ const MAX_VELOCITY_MAGNITUDE = 3.2;
5
+ const NEAR_ZERO_THRESHOLD = 0.01;
6
+
7
+ /**
8
+ * Converts velocity from pixels/second to normalized units/second (0-1 range)
9
+ * and caps the result for stability
10
+ */
11
+ const normalize = (velocityPixelsPerSecond, screenSize) => {
12
+ "worklet";
13
+
14
+ return clamp(velocityPixelsPerSecond / Math.max(1, screenSize), -MAX_VELOCITY_MAGNITUDE, MAX_VELOCITY_MAGNITUDE);
15
+ };
16
+
17
+ /**
18
+ * Calculates a normalized velocity that moves the current value toward zero.
19
+ * Used for spring-back animations when dismissing gestures.
20
+ */
21
+ const calculateRestoreVelocity = (currentValueNormalized, baseVelocityNormalized, threshold = NEAR_ZERO_THRESHOLD) => {
22
+ "worklet";
23
+
24
+ if (Math.abs(currentValueNormalized) < threshold) return 0;
25
+ const directionTowardZero = Math.sign(currentValueNormalized) || 1;
26
+ const clampedVelocity = Math.min(Math.abs(baseVelocityNormalized), 1);
27
+ return -directionTowardZero * clampedVelocity;
28
+ };
29
+ const calculateProgressVelocity = ({
30
+ animations,
31
+ shouldDismiss,
32
+ event,
33
+ dimensions,
34
+ directions
35
+ }) => {
36
+ "worklet";
37
+
38
+ const currentProgress = animations.progress.value;
39
+ const targetProgress = shouldDismiss ? 0 : 1;
40
+ const progressDelta = targetProgress - currentProgress;
41
+ const progressDirection = progressDelta === 0 ? 0 : Math.sign(progressDelta);
42
+ const normalizedVelocityX = normalize(event.velocityX, dimensions.width);
43
+ const normalizedVelocityY = normalize(event.velocityY, dimensions.height);
44
+ const normalizedTranslationX = Math.abs(event.translationX / dimensions.width);
45
+ const normalizedTranslationY = Math.abs(event.translationY / dimensions.height);
46
+ const supportsHorizontalGestures = directions.horizontal || directions.horizontalInverted;
47
+ const supportsVerticalGestures = directions.vertical || directions.verticalInverted;
48
+ let progressVelocityMagnitude = 0;
49
+
50
+ // Determine which axis should drive the progress velocity
51
+ if (supportsHorizontalGestures && (!supportsVerticalGestures || normalizedTranslationX >= normalizedTranslationY)) {
52
+ progressVelocityMagnitude = Math.abs(normalizedVelocityX);
53
+ } else if (supportsVerticalGestures) {
54
+ progressVelocityMagnitude = Math.abs(normalizedVelocityY);
55
+ } else {
56
+ progressVelocityMagnitude = Math.max(Math.abs(normalizedVelocityX), Math.abs(normalizedVelocityY));
57
+ }
58
+
59
+ // Apply direction and clamp to prevent overly energetic springs
60
+ return progressDirection * clamp(progressVelocityMagnitude, 0, MAX_VELOCITY_MAGNITUDE);
61
+ };
62
+
63
+ /**
64
+ * Determines if a gesture should trigger dismissal based on combined
65
+ * translation and velocity in normalized screen units (0-1 range).
66
+ *
67
+ * Formula: |translation/screen + clamp(velocity/screen, ±1) * velocityWeight| > 0.5
68
+ */
69
+ const shouldPassDismissalThreshold = (translationPixels, velocityPixelsPerSecond, screenSize, velocityWeight) => {
70
+ "worklet";
71
+
72
+ const normalizedTranslation = translationPixels / Math.max(1, screenSize);
73
+ const normalizedVelocity = normalize(velocityPixelsPerSecond, screenSize);
74
+ const projectedNormalizedPosition = normalizedTranslation + normalizedVelocity * velocityWeight;
75
+ const exceedsThreshold = Math.abs(projectedNormalizedPosition) > 0.5;
76
+ const hasMovement = translationPixels !== 0 || velocityPixelsPerSecond !== 0;
77
+ return exceedsThreshold && hasMovement;
78
+ };
79
+ export const velocity = {
80
+ normalize,
81
+ calculateRestoreVelocity,
82
+ calculateProgressVelocity,
83
+ shouldPassDismissalThreshold
84
+ };
85
+ //# sourceMappingURL=velocity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["clamp","MAX_VELOCITY_MAGNITUDE","NEAR_ZERO_THRESHOLD","normalize","velocityPixelsPerSecond","screenSize","Math","max","calculateRestoreVelocity","currentValueNormalized","baseVelocityNormalized","threshold","abs","directionTowardZero","sign","clampedVelocity","min","calculateProgressVelocity","animations","shouldDismiss","event","dimensions","directions","currentProgress","progress","value","targetProgress","progressDelta","progressDirection","normalizedVelocityX","velocityX","width","normalizedVelocityY","velocityY","height","normalizedTranslationX","translationX","normalizedTranslationY","translationY","supportsHorizontalGestures","horizontal","horizontalInverted","supportsVerticalGestures","vertical","verticalInverted","progressVelocityMagnitude","shouldPassDismissalThreshold","translationPixels","velocityWeight","normalizedTranslation","normalizedVelocity","projectedNormalizedPosition","exceedsThreshold","hasMovement","velocity"],"sourceRoot":"../../../../src","sources":["utils/gesture/velocity.ts"],"mappings":";;AAIA,SAASA,KAAK,QAAQ,yBAAyB;AAgB/C,MAAMC,sBAAsB,GAAG,GAAG;AAClC,MAAMC,mBAAmB,GAAG,IAAI;;AAEhC;AACA;AACA;AACA;AACA,MA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AuB,EAAEC,UAAU,CAAC;EAEzE,MAAM8C,2BAA2B,GAChCF,qBAAqB,GAAGC,kBAAkB,GAAGF,cAAc;EAE5D,MAAMI,gBAAgB,GAAG9C,IAAI,CAACM,GAAG,CAACuC,2BAA2B,CAAC,GAAG,GAAG;EAEpE,MAAME,WAAW,GAAGN,iBAAiB,KAAK,CAAC,IAAI3C,uBAAuB,KAAK,CAAC;EAE5E,OAAOgD,gBAAgB,IAAIC,WAAW;AACvC,CAAC;AAED,OAAO,MAAMC,QAAQ,GAAG;EACvBnD,SAAS;EACTK,wBAAwB;EACxBS,yBAAyB;EACzB6B;AACD,CAAC","ignoreList":[]}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+
3
+ import { reanimatedVersion } from "react-native-reanimated";
4
+ export const isReanimated4 = () => {
5
+ return reanimatedVersion.split(".")[0] === "4";
6
+ };
7
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["reanimatedVersion","isReanimated4","split"],"sourceRoot":"../../../../src","sources":["utils/reanimated/version.ts"],"mappings":";;AAAA,SAASA,iBAAiB,QAAQ,yBAAyB;AAE3D,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EAClC,OAAOD,iBAAiB,CAACE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG;AAC/C,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  export declare const specs: {
2
- DefaultSpec: import("react-native-reanimated/lib/typescript/animation/springUtils").SpringConfig;
2
+ DefaultSpec: import("react-native-reanimated/lib/typescript/animation/spring").SpringConfig;
3
3
  };
4
4
  export declare const presets: {
5
5
  SlideFromTop: (config?: Partial<import("../types/navigator").ScreenTransitionConfig>) => import("../types/navigator").ScreenTransitionConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../../src/__configs__/presets.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,sBAAsB,EAAE,M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AC;AAEF,eAAO,MAAM,WAAW,GACvB,SAAQ,OAAO,CAAC,sBAAsB,CAAC,GAAG;IACzC,aAAa,CAAC,EAAE,MAAM,CAAC;CACE,KACxB,sBA0DF,CAAC;AAEF,eAAO,MAAM,aAAa,GACzB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA6HF,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC5B,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBAkLF,CAAC;AAEF,eAAO,MAAM,YAAY,GACxB,SAAQ,OAAO,CAAC,sBAAsB,CAAM,KAC1C,sBA+EF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../src/__configs__/specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,eAAO,MAAM,WAAW,EAAE,gBAMzB,CAAC"}
1
+ {"version":3,"file":"specs.d.ts","sourceRoot":"","sources":["../../../src/__configs__/specs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,eAAO,MAAM,WAAW,EAAE,gBAOzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"screen-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/components/controllers/screen-lifecycle.tsx"],"names":[],"mappings":"AASA,UAAU,oBAAoB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,yBAAyB,GAAI,eAEvC,oBAAoB,8BAgEtB,CAAC"}
1
+ {"version":3,"file":"screen-lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/components/controllers/screen-lifecycle.tsx"],"names":[],"mappings":"AASA,UAAU,oBAAoB;IAC7B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC1B;AAED,eAAO,MAAM,yBAAyB,GAAI,eAEvC,oBAAoB,8BA8DtB,CAAC"}
@@ -5,20 +5,14 @@ interface CreateTransitionAwareComponentOptions {
5
5
  }
6
6
  export declare function createTransitionAwareComponent<P extends object>(Wrapped: ComponentType<P>, options?: CreateTransitionAwareComponentOptions): React.MemoExoticComponent<React.ForwardRefExoticComponent<{ [K in keyof Omit<P, "style" | { [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P]>]: P[K] | import("react-native-reanimated").SharedValue<P[K]>; } & { [Key_1 in keyof ({ [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P] extends infer T extends keyof P ? { [P_1 in T]: P[P_1]; } : never)]: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<P[Key_1]>>; } & {
7
7
  layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder;
8
- entering?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe;
9
- exiting?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe;
8
+ entering?: import("react-native-reanimated").EntryOrExitLayoutType;
9
+ exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
10
10
  } & {
11
- sharedTransitionTag?: string;
12
- sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
13
- } & {
14
- animatedProps?: Partial<{ [K in keyof Omit<P, "style" | { [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P]>]: P[K] | import("react-native-reanimated").SharedValue<P[K]>; } & { [Key_1 in keyof ({ [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P] extends infer T_1 extends keyof P ? { [P_1 in T_1]: P[P_1]; } : never)]: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<P[Key_1]>>; } & {
11
+ animatedProps?: import("react-native-reanimated/lib/typescript/css/types").AddArrayPropertyType<Partial<{ [K in keyof Omit<P, "style" | { [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P]>]: P[K] | import("react-native-reanimated").SharedValue<P[K]>; } & { [Key_1 in keyof ({ [Key in keyof P]-?: Key extends `${string}Style` | "style" ? Key : never; }[keyof P] extends infer T_1 extends keyof P ? { [P_1 in T_1]: P[P_1]; } : never)]: import("react-native").StyleProp<import("react-native-reanimated").AnimatedStyle<P[Key_1]>>; } & {
15
12
  layout?: import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").LayoutAnimationFunction | typeof import("react-native-reanimated").BaseAnimationBuilder;
16
- entering?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe;
17
- exiting?: import("react-native-reanimated").BaseAnimationBuilder | typeof import("react-native-reanimated").BaseAnimationBuilder | import("react-native-reanimated").EntryExitAnimationFunction | import("react-native-reanimated/lib/typescript/layoutReanimation/animationBuilder/Keyframe").ReanimatedKeyframe;
18
- } & {
19
- sharedTransitionTag?: string;
20
- sharedTransitionStyle?: import("react-native-reanimated").SharedTransition;
21
- }> | undefined;
13
+ entering?: import("react-native-reanimated").EntryOrExitLayoutType;
14
+ exiting?: import("react-native-reanimated").EntryOrExitLayoutType;
15
+ }> | import("react-native-reanimated").CSSStyle<P>> | undefined;
22
16
  } & {
23
17
  styleId?: string;
24
18
  sharedBoundTag?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"create-transition-aware-component.d.ts","sourceRoot":"","sources":["../../../src/components/create-transition-aware-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,OAAO,CAAC;AAW7D,UAAU,qCAAqC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC9D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,qCAA0C;;;;;;;;;;;;;;;;;;;sEAuFnD"}
1
+ {"version":3,"file":"create-transition-aware-component.d.ts","sourceRoot":"","sources":["../../../src/components/create-transition-aware-component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,aAAa,EAAoB,MAAM,OAAO,CAAC;AAW7D,UAAU,qCAAqC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,wBAAgB,8BAA8B,CAAC,CAAC,SAAS,MAAM,EAC9D,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EACzB,OAAO,GAAE,qCAA0C;;;;;;;;;;;;;sEAuFnD"}
@@ -7,11 +7,7 @@ interface BoundMeasurerHookProps {
7
7
  onPress?: ((...args: unknown[]) => void) | undefined;
8
8
  }
9
9
  export declare const useBoundsRegistry: ({ sharedBoundTag, animatedRef, style, onPress, }: BoundMeasurerHookProps) => {
10
- maybeMeasureAndStore: ({ onPress, skipMarkingActive, }: {
11
- onPress?: () => void;
12
- skipMarkingActive?: boolean;
13
- }) => void;
14
- handleTransitionLayout: () => void;
10
+ handleInitialLayout: () => void;
15
11
  captureActiveOnPress: () => void;
16
12
  MeasurementSyncProvider: import("react").ExoticComponent<import("react").FragmentProps> | (({ children }: {
17
13
  children: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"use-bound-registry.d.ts","sourceRoot":"","sources":["../../../../src/hooks/bounds/use-bound-registry.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAIhB,KAAK,UAAU,EAGf,MAAM,yBAAyB,CAAC;AAQjC,UAAU,sBAAsB;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAE/B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACrD;AASD,eAAO,MAAM,iBAAiB,GAAI,kDAK/B,sBAAsB;4DAiBpB;QACF,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;KAC5B;;;8GAqEqB;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;CA0BpD,CAAC"}
1
+ {"version":3,"file":"use-bound-registry.d.ts","sourceRoot":"","sources":["../../../../src/hooks/bounds/use-bound-registry.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EACN,KAAK,WAAW,EAIhB,KAAK,UAAU,EAGf,MAAM,yBAAyB,CAAC;AAQjC,UAAU,sBAAsB;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAC/B,KAAK,EAAE,UAAU,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;CACrD;AAcD,eAAO,MAAM,iBAAiB,GAAI,kDAK/B,sBAAsB;;;8GAyFD;QAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;CAyBpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../src/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAEN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAa7D,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,gBAAgB,GAAI,mBAE9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;CAkS3B,CAAC"}
1
+ {"version":3,"file":"use-build-gestures.d.ts","sourceRoot":"","sources":["../../../../src/hooks/gestures/use-build-gestures.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIN,KAAK,WAAW,EAGhB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAEN,KAAK,WAAW,EAEhB,MAAM,yBAAyB,CAAC;AAQjC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAc7D,UAAU,sBAAsB;IAC/B,YAAY,EAAE,WAAW,CAAC,YAAY,GAAG,IAAI,CAAC,CAAC;CAC/C;AAED,eAAO,MAAM,gBAAgB,GAAI,mBAE9B,sBAAsB,KAAG;IAC3B,UAAU,EAAE,WAAW,CAAC;IACxB,aAAa,EAAE,WAAW,CAAC;CAsS3B,CAAC"}