yet-another-react-lightbox 3.11.0 → 3.11.2
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/dist/index.js +1 -1
- package/dist/plugins/captions/index.d.ts +1 -1
- package/dist/plugins/download/index.d.ts +1 -1
- package/dist/plugins/fullscreen/index.d.ts +1 -1
- package/dist/plugins/share/index.d.ts +1 -1
- package/dist/plugins/slideshow/index.d.ts +1 -1
- package/dist/plugins/thumbnails/index.d.ts +1 -1
- package/dist/plugins/video/index.d.ts +1 -1
- package/dist/plugins/zoom/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1076,7 +1076,7 @@ function Controller({ children, ...props }) {
|
|
|
1076
1076
|
React.useEffect(onViewCallback, [state.globalIndex, onViewCallback]);
|
|
1077
1077
|
React.useEffect(() => cleanup(subscribe(ACTION_PREV, (action) => swipe({ direction: ACTION_PREV, ...action })), subscribe(ACTION_NEXT, (action) => swipe({ direction: ACTION_NEXT, ...action })), subscribe(ACTION_SWIPE, (action) => dispatch(action))), [subscribe, swipe, dispatch]);
|
|
1078
1078
|
React.useEffect(() => subscribeSensors(EVENT_ON_KEY_UP, (event) => {
|
|
1079
|
-
if (event.
|
|
1079
|
+
if (event.key === VK_ESCAPE) {
|
|
1080
1080
|
close();
|
|
1081
1081
|
}
|
|
1082
1082
|
}), [subscribeSensors, close]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PluginProps, PLUGIN_CAPTIONS } from '../../types.js';
|
|
2
|
+
import { PluginProps, PLUGIN_CAPTIONS, Callback, RenderFunction } from '../../types.js';
|
|
3
3
|
|
|
4
4
|
/** Captions plugin */
|
|
5
5
|
declare function Captions({ augment, addModule }: PluginProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PluginProps, PLUGIN_FULLSCREEN } from '../../types.js';
|
|
2
|
+
import { PluginProps, PLUGIN_FULLSCREEN, Callback, RenderFunction } from '../../types.js';
|
|
3
3
|
|
|
4
4
|
/** Fullscreen plugin */
|
|
5
5
|
declare function Fullscreen({ augment, contains, addParent }: PluginProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PluginProps, PLUGIN_SLIDESHOW } from '../../types.js';
|
|
2
|
+
import { PluginProps, PLUGIN_SLIDESHOW, Callback, RenderFunction } from '../../types.js';
|
|
3
3
|
|
|
4
4
|
/** Slideshow plugin */
|
|
5
5
|
declare function Slideshow({ augment, addModule }: PluginProps): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PluginProps, PLUGIN_THUMBNAILS } from '../../types.js';
|
|
2
|
+
import { PluginProps, PLUGIN_THUMBNAILS, Callback, ContainerRect, ImageFit, RenderFunction, Slide } from '../../types.js';
|
|
3
3
|
|
|
4
4
|
/** Thumbnails plugin */
|
|
5
5
|
declare function Thumbnails({ augment, contains, append, addParent }: PluginProps): void;
|