react-pic-gallery 1.5.15 → 1.5.16

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/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ### [1.5.16](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.15...v1.5.16) (2022-05-29)
6
+
7
+ ### [1.5.15](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.14...v1.5.15) (2022-03-23)
8
+
9
+ ### [1.5.14](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.13...v1.5.14) (2022-03-23)
10
+
11
+ ### [1.5.13](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.12...v1.5.13) (2022-03-23)
12
+
13
+ ### [1.5.12](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.11...v1.5.12) (2022-03-23)
14
+
15
+ ### [1.5.11](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.10...v1.5.11) (2022-03-23)
16
+
17
+ ### [1.5.10](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.9...v1.5.10) (2021-12-30)
18
+
19
+ ### [1.5.9](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.8...v1.5.9) (2021-12-22)
20
+
21
+ ### [1.5.8](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.5.7...v1.5.8) (2021-12-16)
22
+
23
+ ### [1.5.7](https://github.com/marcelrsoub/react-pic-gallery/compare/v1.3.9...v1.5.7) (2021-12-16)
@@ -0,0 +1 @@
1
+ export default function CircularLoading(): JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ImageObject, Options } from '../models/models';
3
+ declare function ImgGallery(props: {
4
+ options?: Options;
5
+ imgList: ImageObject[];
6
+ onOpen: (index_of_image: number) => void;
7
+ }): JSX.Element;
8
+ declare const _default: React.MemoExoticComponent<typeof ImgGallery>;
9
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { Options } from './models/models';
3
+ declare const ImgLazyLoading: (props: {
4
+ imgSrc: string;
5
+ id?: string;
6
+ style: React.CSSProperties;
7
+ options?: Options;
8
+ onClick?: () => void;
9
+ lightboxMode?: boolean;
10
+ }) => JSX.Element;
11
+ export default ImgLazyLoading;
@@ -0,0 +1,17 @@
1
+ import { ImageObject, Options } from '../models/models';
2
+ declare const ImgLightbox: (props: {
3
+ imgList: ImageObject[];
4
+ open: boolean;
5
+ currentImgIndex: number;
6
+ options?: Options | undefined;
7
+ onClose: () => void;
8
+ topCustomContent?: ((props2: {
9
+ imgObject: ImageObject;
10
+ closeLightbox: () => void;
11
+ }) => JSX.Element) | undefined;
12
+ bottomCustomContent?: ((props2: {
13
+ imgObject: ImageObject;
14
+ closeLightbox: () => void;
15
+ }) => JSX.Element) | undefined;
16
+ }) => JSX.Element;
17
+ export default ImgLightbox;
@@ -0,0 +1,15 @@
1
+ import { ImageObject, Options } from './models/models';
2
+ declare function PicGallery(props: {
3
+ imgList: ImageObject[];
4
+ options?: Options;
5
+ topCustomContent?: (props: {
6
+ imgObject: ImageObject;
7
+ closeLightbox: () => void;
8
+ }) => JSX.Element;
9
+ bottomCustomContent?: (props: {
10
+ imgObject: ImageObject;
11
+ closeLightbox: () => void;
12
+ }) => JSX.Element;
13
+ setExtLightboxChildren?: (imgLightbox: JSX.Element | undefined) => void;
14
+ }): JSX.Element;
15
+ export default PicGallery;
@@ -0,0 +1,18 @@
1
+ export interface ImageObject {
2
+ fullSrc: string;
3
+ thumbnailSrc: string;
4
+ [key: string]: string;
5
+ }
6
+ export interface Options {
7
+ externalLightbox?: boolean;
8
+ customLoadComponent?: () => JSX.Element;
9
+ hidePagination?: boolean;
10
+ rowHeight?: string | number;
11
+ /** Number of Pictures per row. Default: 3 */
12
+ picsPerRow?: number;
13
+ }
14
+ export declare const defaultOptions: {
15
+ downloadBtnDisplay: boolean;
16
+ descriptionBoxDisplay: boolean;
17
+ navigation: boolean;
18
+ };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ declare let styles: {
3
+ [key: string]: React.CSSProperties;
4
+ };
5
+ export default styles;
@@ -0,0 +1 @@
1
+ /// <reference types="vite/client" />
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "react-pic-gallery",
3
- "version": "1.5.15",
3
+ "version": "1.5.16",
4
4
  "author": "marcelrsoub",
5
5
  "license": "MIT",
6
6
  "repository": "marcelrsoub/react-pic-gallery",
7
7
  "main": "./dist/react-pic-gallery.umd.js",
8
8
  "module": "./dist/react-pic-gallery.es.js",
9
+ "types": "./dist/lib/main.d.ts",
9
10
  "files": [
10
11
  "dist"
11
12
  ],
@@ -40,7 +41,8 @@
40
41
  "react-syntax-highlighter": "^15.4.5",
41
42
  "standard-version": "^9.3.2",
42
43
  "typescript": "^4.4.4",
43
- "vite": "^2.7.0"
44
+ "vite": "^2.7.0",
45
+ "vite-plugin-dts": "^1.2.0"
44
46
  },
45
47
  "peerDependencies": {
46
48
  "react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0",