react-native-gesture-image-viewer 3.0.0-beta.4 → 3.0.0-beta.5
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/typescript/src/GestureTrigger.d.ts +1 -1
- package/lib/typescript/src/GestureTrigger.d.ts.map +1 -1
- package/lib/typescript/src/GestureViewer.d.ts +2 -2
- package/lib/typescript/src/GestureViewer.d.ts.map +1 -1
- package/lib/typescript/src/GestureViewerManager.d.ts +1 -1
- package/lib/typescript/src/GestureViewerManager.d.ts.map +1 -1
- package/lib/typescript/src/GestureViewerRegistry.d.ts +1 -1
- package/lib/typescript/src/GestureViewerRegistry.d.ts.map +1 -1
- package/lib/typescript/src/gestureViewerRenderWindow.d.ts +1 -1
- package/lib/typescript/src/gestureViewerRenderWindow.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +7 -7
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/itemDimensions.d.ts +1 -1
- package/lib/typescript/src/itemDimensions.d.ts.map +1 -1
- package/lib/typescript/src/useGestureViewer.d.ts +2 -2
- package/lib/typescript/src/useGestureViewer.d.ts.map +1 -1
- package/lib/typescript/src/useGestureViewerController.d.ts +1 -1
- package/lib/typescript/src/useGestureViewerController.d.ts.map +1 -1
- package/lib/typescript/src/useGestureViewerEvent.d.ts +1 -1
- package/lib/typescript/src/useGestureViewerEvent.d.ts.map +1 -1
- package/lib/typescript/src/useGestureViewerManagerBridge.d.ts +2 -2
- package/lib/typescript/src/useGestureViewerManagerBridge.d.ts.map +1 -1
- package/lib/typescript/src/useGestureViewerState.d.ts +1 -1
- package/lib/typescript/src/useGestureViewerState.d.ts.map +1 -1
- package/lib/typescript/src/utils/dismiss.d.ts +1 -1
- package/lib/typescript/src/utils/dismiss.d.ts.map +1 -1
- package/package.json +20 -19
|
@@ -56,6 +56,6 @@ export type GestureTriggerProps<T extends WithOnPress> = {
|
|
|
56
56
|
* </GestureTrigger>
|
|
57
57
|
* ```
|
|
58
58
|
*/
|
|
59
|
-
export declare function GestureTrigger<T extends WithOnPress>({ id, index, children, onPress, }: GestureTriggerProps<T>): import("react
|
|
59
|
+
export declare function GestureTrigger<T extends WithOnPress>({ id, index, children, onPress, }: GestureTriggerProps<T>): import("react").JSX.Element;
|
|
60
60
|
export {};
|
|
61
61
|
//# sourceMappingURL=GestureTrigger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureTrigger.d.ts","sourceRoot":"","sources":["../../../src/GestureTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C;;;GAGG;AACH,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,EACpD,EAAc,EACd,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,mBAAmB,CAAC,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"GestureTrigger.d.ts","sourceRoot":"","sources":["../../../src/GestureTrigger.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAM1C;;;GAGG;AACH,KAAK,WAAW,GAAG;IAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;CAAE,CAAC;AAE9D;;;;;;;;;GASG;AACH,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,WAAW,IAAI;IACvD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,WAAW,EAAE,EACpD,EAAc,EACd,KAAK,EACL,QAAQ,EACR,OAAO,GACR,EAAE,mBAAmB,CAAC,CAAC,CAAC,+BAqDxB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GestureViewerProps } from './types';
|
|
2
|
-
export declare function GestureViewer<ItemT>({ id, data, renderItem, renderContainer, width: customWidth, height: customHeight, backdropStyle: backdropStyleProps, containerStyle, initialIndex, pageSpacing, windowSize, enableLoop, ...props }: GestureViewerProps<ItemT>): import("react
|
|
1
|
+
import type { GestureViewerProps } from './types.js';
|
|
2
|
+
export declare function GestureViewer<ItemT>({ id, data, renderItem, renderContainer, width: customWidth, height: customHeight, backdropStyle: backdropStyleProps, containerStyle, initialIndex, pageSpacing, windowSize, enableLoop, ...props }: GestureViewerProps<ItemT>): import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=GestureViewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureViewer.d.ts","sourceRoot":"","sources":["../../../src/GestureViewer.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,
|
|
1
|
+
{"version":3,"file":"GestureViewer.d.ts","sourceRoot":"","sources":["../../../src/GestureViewer.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,YAAS,CAAC;AAwDjB,wBAAgB,aAAa,CAAC,KAAK,EAAE,EACnC,EAAc,EACd,IAAI,EACJ,UAAU,EACV,eAAe,EACf,KAAK,EAAE,WAAW,EAClB,MAAM,EAAE,YAAY,EACpB,aAAa,EAAE,kBAAkB,EACjC,cAAc,EACd,YAAgB,EAChB,WAAe,EACf,UAAc,EACd,UAAkB,EAClB,GAAG,KAAK,EACT,EAAE,kBAAkB,CAAC,KAAK,CAAC,+BA6E3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SharedValue } from 'react-native-reanimated';
|
|
2
|
-
import type { GestureViewerEventCallback, GestureViewerEventData, GestureViewerEventType, GestureViewerState } from './types';
|
|
2
|
+
import type { GestureViewerEventCallback, GestureViewerEventData, GestureViewerEventType, GestureViewerState } from './types.js';
|
|
3
3
|
export type GestureViewerNavigationOptions = {
|
|
4
4
|
animated?: boolean;
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureViewerManager.d.ts","sourceRoot":"","sources":["../../../src/GestureViewerManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"GestureViewerManager.d.ts","sourceRoot":"","sources":["../../../src/GestureViewerManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAEvE,OAAO,KAAK,EACV,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,YAAS,CAAC;AAGjB,MAAM,MAAM,8BAA8B,GAAG;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM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,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureViewerRegistry.d.ts","sourceRoot":"","sources":["../../../src/GestureViewerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,oBAAoB,MAAM,
|
|
1
|
+
{"version":3,"file":"GestureViewerRegistry.d.ts","sourceRoot":"","sources":["../../../src/GestureViewerRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,oBAAoB,MAAM,2BAAwB,CAAC;AAE1D,cAAM,qBAAqB;IACzB,OAAO,CAAC,QAAQ,CAA2C;IAC3D,OAAO,CAAC,WAAW,CAA0E;IAC7F,OAAO,CAAC,wBAAwB,CAAuD;IACvF,OAAO,CAAC,cAAc,CAAkC;IACxD,OAAO,CAAC,eAAe,CAA+C;IAEtE,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,oBAAoB,GAAG,IAAI,KAAK,IAAI;IAsBvF,wBAAwB,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI;IAoB1E,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAatD,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,GAAG,IAAI;IAInD,aAAa,CAAC,EAAE,EAAE,MAAM;IAcxB,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,oBAAoB,GAAG,IAAI;IAQlE,8BAA8B,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAQ5D,oBAAoB,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAKlD,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAI7C,sBAAsB,CAAC,EAAE,EAAE,MAAM;IAKjC,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI;IAQlE,qBAAqB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAI7D,uBAAuB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM;CAalD;AAED,eAAO,MAAM,QAAQ,uBAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gestureViewerRenderWindow.d.ts","sourceRoot":"","sources":["../../../src/gestureViewerRenderWindow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,
|
|
1
|
+
{"version":3,"file":"gestureViewerRenderWindow.d.ts","sourceRoot":"","sources":["../../../src/gestureViewerRenderWindow.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,gBAAgB,EAKtB,MAAM,mBAAgB,CAAC;AAExB,MAAM,MAAM,8BAA8B,CAAC,KAAK,IAAI;IAClD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;CAClC,CAAC;AAEF,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,EACtD,kBAAkB,EAClB,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,gBAAgB,EAChB,UAAU,GACX,EAAE;IACD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GAAG,8BAA8B,CAAC,KAAK,CAAC,CA2BxC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { GestureTriggerProps } from './GestureTrigger';
|
|
2
|
-
export { GestureTrigger } from './GestureTrigger';
|
|
3
|
-
export { GestureViewer } from './GestureViewer';
|
|
4
|
-
export type { GestureViewerController, GestureViewerEventCallback, GestureViewerEventData, GestureViewerEventType, GestureViewerItemDimensions, GestureViewerItemDimensionsResolver, GestureViewerItemKey, GestureViewerItemKeyResolver, GestureViewerProps, GestureViewerRenderItemInfo, GestureViewerState, GestureViewerSingleTapEvent, } from './types';
|
|
5
|
-
export { useGestureViewerController } from './useGestureViewerController';
|
|
6
|
-
export { useGestureViewerEvent } from './useGestureViewerEvent';
|
|
7
|
-
export { useGestureViewerState } from './useGestureViewerState';
|
|
1
|
+
export type { GestureTriggerProps } from './GestureTrigger.js';
|
|
2
|
+
export { GestureTrigger } from './GestureTrigger.js';
|
|
3
|
+
export { GestureViewer } from './GestureViewer.js';
|
|
4
|
+
export type { GestureViewerController, GestureViewerEventCallback, GestureViewerEventData, GestureViewerEventType, GestureViewerItemDimensions, GestureViewerItemDimensionsResolver, GestureViewerItemKey, GestureViewerItemKeyResolver, GestureViewerProps, GestureViewerRenderItemInfo, GestureViewerState, GestureViewerSingleTapEvent, } from './types.js';
|
|
5
|
+
export { useGestureViewerController } from './useGestureViewerController.js';
|
|
6
|
+
export { useGestureViewerEvent } from './useGestureViewerEvent.js';
|
|
7
|
+
export { useGestureViewerState } from './useGestureViewerState.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,YAAY,EAAE,mBAAmB,EAAE,MAAM,qBAAkB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAiB,CAAC;AAChD,YAAY,EACV,uBAAuB,EACvB,0BAA0B,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,2BAA2B,EAC3B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC5B,kBAAkB,EAClB,2BAA2B,EAC3B,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,YAAS,CAAC;AACjB,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAA8B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAAyB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GestureViewerItemDimensions, GestureViewerItemDimensionsResolver, GestureViewerItemKey, GestureViewerItemKeyResolver } from './types';
|
|
1
|
+
import type { GestureViewerItemDimensions, GestureViewerItemDimensionsResolver, GestureViewerItemKey, GestureViewerItemKeyResolver } from './types.js';
|
|
2
2
|
type ItemDimensionsRegistryEntry<ItemT> = Readonly<{
|
|
3
3
|
item: ItemT;
|
|
4
4
|
itemKey?: GestureViewerItemKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemDimensions.d.ts","sourceRoot":"","sources":["../../../src/itemDimensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,
|
|
1
|
+
{"version":3,"file":"itemDimensions.d.ts","sourceRoot":"","sources":["../../../src/itemDimensions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC7B,MAAM,YAAS,CAAC;AAEjB,KAAK,2BAA2B,CAAC,KAAK,IAAI,QAAQ,CAAC;IACjD,IAAI,EAAE,KAAK,CAAC;IACZ,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,UAAU,EAAE,2BAA2B,CAAC;CACzC,CAAC,CAAC;AAEH,MAAM,MAAM,sBAAsB,CAAC,KAAK,IAAI,GAAG,CAAC,MAAM,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC,CAAC;AAE5F,eAAO,MAAM,qBAAqB,GAChC,YAAY,2BAA2B,GAAG,IAAI,GAAG,SAAS,KACzD,UAAU,IAAI,2BAShB,CAAC;AA4BF,eAAO,MAAM,2BAA2B,GAAI,KAAK,EAC/C,UAAU,sBAAsB,CAAC,KAAK,CAAC,EACvC,YAAY,MAAM,KACjB,IAMF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,KAAK,EAAE,2DAM1C;IACD,QAAQ,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,EAAE,SAAS,KAAK,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,iBAAiB,CAAC,EAAE,mCAAmC,CAAC,KAAK,CAAC,CAAC;IAC/D,UAAU,CAAC,EAAE,4BAA4B,CAAC,KAAK,CAAC,CAAC;CAClD,KAAG,2BAA2B,GAAG,SA0BjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,KAAK,EAAE,0DAO3C;IACD,QAAQ,EAAE,sBAAsB,CAAC,KAAK,CAAC,CAAC;IACxC,IAAI,EAAE,SAAS,KAAK,EAAE,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC;IACZ,UAAU,EAAE,2BAA2B,CAAC;IACxC,UAAU,CAAC,EAAE,4BAA4B,CAAC,KAAK,CAAC,CAAC;CAClD,KAAG,SAAS,GAAG,WAAW,GAAG,SA0C7B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GestureViewerItemDimensions, GestureViewerProps } from './types';
|
|
1
|
+
import type { GestureViewerItemDimensions, GestureViewerProps } from './types.js';
|
|
2
2
|
type UseGestureViewerProps<ItemT> = Omit<GestureViewerProps<ItemT>, 'renderItem' | 'renderContainer' | 'containerStyle' | 'backdropStyle'>;
|
|
3
3
|
export declare const useGestureViewer: <ItemT>({ data, initialIndex, onDismiss, onSingleTap, width: customWidth, dismiss, enableDoubleTapZoom, enablePinchZoom, horizontalSwipe, enablePanWhenZoomed, enableLoop, maxZoomScale, pageSpacing, windowSize, height: customHeight, id, onDismissStart, triggerAnimation, autoPlay, autoPlayInterval, getItemDimensions, getItemKey, }: UseGestureViewerProps<ItemT>) => {
|
|
4
4
|
animatedStyle: import("react-native-reanimated/lib/typescript/hook/commonTypes").AnimatedStyleHandle<{
|
|
@@ -39,7 +39,7 @@ export declare const useGestureViewer: <ItemT>({ data, initialIndex, onDismiss,
|
|
|
39
39
|
isZoomed: boolean;
|
|
40
40
|
onWebClick: import("./useWebClickHandler").WebClickHandler;
|
|
41
41
|
pageStride: number;
|
|
42
|
-
renderWindowSlots: import("./renderWindow").RenderWindowSlot<ItemT>[];
|
|
42
|
+
renderWindowSlots: import("./renderWindow.js").RenderWindowSlot<ItemT>[];
|
|
43
43
|
visualPage: import("react-native-reanimated").SharedValue<number>;
|
|
44
44
|
setItemDimensions: (index: number, item: ItemT, dimensions: GestureViewerItemDimensions) => void;
|
|
45
45
|
zoomGesture: import("react-native-gesture-handler/lib/typescript/handlers/gestures/gestureComposition").ExclusiveGesture;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureViewer.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewer.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,2BAA2B,EAAE,kBAAkB,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureViewer.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewer.ts"],"names":[],"mappings":"AAyCA,OAAO,KAAK,EAAE,2BAA2B,EAAE,kBAAkB,EAAe,MAAM,YAAS,CAAC;AAgB5F,KAAK,qBAAqB,CAAC,KAAK,IAAI,IAAI,CACtC,kBAAkB,CAAC,KAAK,CAAC,EACzB,YAAY,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,eAAe,CACtE,CAAC;AAmBF,eAAO,MAAM,gBAAgB,GAAI,KAAK,EAAE,oUAuBrC,qBAAqB,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BA0MnB,MAAM,QAAQ,KAAK,cAAc,2BAA2B;;;CAonCvE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureViewerController.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerController.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureViewerController.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerController.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAS,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,eAAO,MAAM,0BAA0B,GAAI,WAAc,KAAG,uBAqC3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureViewerEvent.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerEvent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureViewerEvent.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerEvent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,YAAS,CAAC;AAElF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,sBAAsB,EACpE,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,0BAA0B,CAAC,CAAC,CAAC,GACtC,IAAI,CAAC;AAER;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,sBAAsB,EACpE,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,CAAC,EACZ,QAAQ,EAAE,0BAA0B,CAAC,CAAC,CAAC,GACtC,IAAI,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type RefObject } from 'react';
|
|
2
2
|
import type { SharedValue } from 'react-native-reanimated';
|
|
3
|
-
import type GestureViewerManager from './GestureViewerManager';
|
|
4
|
-
import type { GestureViewerNavigationOptions } from './GestureViewerManager';
|
|
3
|
+
import type GestureViewerManager from './GestureViewerManager.js';
|
|
4
|
+
import type { GestureViewerNavigationOptions } from './GestureViewerManager.js';
|
|
5
5
|
type UseGestureViewerManagerBridgeOptions = {
|
|
6
6
|
currentIndexRef: RefObject<number>;
|
|
7
7
|
contentHeight: SharedValue<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGestureViewerManagerBridge.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerManagerBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,oBAAoB,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureViewerManagerBridge.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerManagerBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,KAAK,oBAAoB,MAAM,2BAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,2BAAwB,CAAC;AAG7E,K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../../src/useGestureViewerState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"useGestureViewerState.d.ts","sourceRoot":"","sources":["../../../src/useGestureViewerState.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,qBAAqB,GAAI,WAAc,KAAG,kBAgDtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GestureViewerDismissDirection } from '../types';
|
|
1
|
+
import type { GestureViewerDismissDirection } from '../types.js';
|
|
2
2
|
export declare const shouldDismissByDirection: (translationY: number, threshold: number, direction: GestureViewerDismissDirection) => boolean;
|
|
3
3
|
export declare const getDismissDistance: (translationY: number, direction: GestureViewerDismissDirection) => number;
|
|
4
4
|
//# sourceMappingURL=dismiss.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dismiss.d.ts","sourceRoot":"","sources":["../../../../src/utils/dismiss.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dismiss.d.ts","sourceRoot":"","sources":["../../../../src/utils/dismiss.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,aAAU,CAAC;AAE9D,eAAO,MAAM,wBAAwB,GACnC,cAAc,MAAM,EACpB,WAAW,MAAM,EACjB,WAAW,6BAA6B,KACvC,OAYF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,MAAM,EACpB,WAAW,6BAA6B,KACvC,MAYF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-gesture-image-viewer",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.5",
|
|
4
4
|
"description": "🖼️ React Native Image Viewer - Reanimated-powered image gestures with full control",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"android",
|
|
@@ -80,28 +80,28 @@
|
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@babel/core": "^7.29.7",
|
|
83
|
-
"@changesets/changelog-github": "^0.
|
|
84
|
-
"@changesets/cli": "^
|
|
85
|
-
"@commitlint/config-conventional": "^21.
|
|
86
|
-
"@evilmartians/lefthook": "^2.1.
|
|
87
|
-
"@react-native/babel-preset": "0.
|
|
88
|
-
"@react-native/jest-preset": "0.
|
|
89
|
-
"@react-native/metro-config": "0.
|
|
83
|
+
"@changesets/changelog-github": "^1.0.1",
|
|
84
|
+
"@changesets/cli": "^3.0.2",
|
|
85
|
+
"@commitlint/config-conventional": "^21.2.2",
|
|
86
|
+
"@evilmartians/lefthook": "^2.1.12",
|
|
87
|
+
"@react-native/babel-preset": "0.86.3",
|
|
88
|
+
"@react-native/jest-preset": "0.86.3",
|
|
89
|
+
"@react-native/metro-config": "0.86.3",
|
|
90
90
|
"@testing-library/react-native": "^14.0.1",
|
|
91
91
|
"@types/babel__core": "^7.20.5",
|
|
92
|
-
"@types/jest": "^
|
|
93
|
-
"@types/react": "
|
|
94
|
-
"commitlint": "^21.
|
|
92
|
+
"@types/jest": "^30.0.0",
|
|
93
|
+
"@types/react": "~19.2.18",
|
|
94
|
+
"commitlint": "^21.2.2",
|
|
95
95
|
"del-cli": "^7.0.0",
|
|
96
|
-
"jest": "^
|
|
97
|
-
"oxfmt": "^0.
|
|
98
|
-
"oxlint": "^1.
|
|
96
|
+
"jest": "^30.5.1",
|
|
97
|
+
"oxfmt": "^0.67.0",
|
|
98
|
+
"oxlint": "^1.82.0",
|
|
99
99
|
"react": "19.2.3",
|
|
100
|
-
"react-native": "0.
|
|
101
|
-
"react-native-builder-bob": "^0.
|
|
102
|
-
"react-native-gesture-handler": "
|
|
103
|
-
"react-native-reanimated": "4.
|
|
104
|
-
"react-native-worklets": "0.
|
|
100
|
+
"react-native": "0.86.3",
|
|
101
|
+
"react-native-builder-bob": "^0.43.1",
|
|
102
|
+
"react-native-gesture-handler": "~2.32.0",
|
|
103
|
+
"react-native-reanimated": "4.5.1",
|
|
104
|
+
"react-native-worklets": "0.10.1",
|
|
105
105
|
"test-renderer": "^1.2.0",
|
|
106
106
|
"typescript": "^5.9.3"
|
|
107
107
|
},
|
|
@@ -141,6 +141,7 @@
|
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
143
|
"scripts": {
|
|
144
|
+
"audit:security": "pnpm audit --audit-level high",
|
|
144
145
|
"build": "bob build",
|
|
145
146
|
"changeset": "changeset",
|
|
146
147
|
"clean": "del-cli lib",
|