@goodhood-web/nebenan-base 3.4.0-development.18 → 3.4.0-development.19
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/index.js +101 -106
- package/index.mjs +15464 -13777
- package/lib/Gallery/Gallery.d.ts +1 -1
- package/lib/Gallery/Gallery.types.d.ts +3 -0
- package/lib/ImageAttachment/ImageAttachment.d.ts +1 -1
- package/lib/ImageAttachment/ImageAttachment.types.d.ts +5 -1
- package/lib/ImageAttachment/components/CollageImageAttachment/CollageImageAttachment.d.ts +2 -0
- package/lib/ImageAttachment/components/PlaceholderImageAttachment/PlaceholderImageAttachment.d.ts +7 -0
- package/lib/ImageAttachment/components/SwiperImageAttachment/SwiperImageAttachment.d.ts +2 -0
- package/lib/ImageCropper/ImageCropper.d.ts +1 -1
- package/lib/ImageCropper/ImageCropper.types.d.ts +1 -2
- package/lib/ImageCropper/util.d.ts +6 -2
- package/package.json +1 -1
- package/style.css +1 -9
- package/assets/cropper.css +0 -309
- package/lib/ImageCropper/hooks/useCropper.d.ts +0 -5
package/lib/Gallery/Gallery.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GalleryProps } from './Gallery.types';
|
|
2
|
-
export declare const Gallery: ({ ads, footerAd, images, reserved }: GalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Gallery: ({ ads, ctaSlot, footerAd, images, reserved, stickerSlot, type, }: GalleryProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default Gallery;
|
|
@@ -9,7 +9,10 @@ export type GalleryAdType = {
|
|
|
9
9
|
};
|
|
10
10
|
export type GalleryProps = {
|
|
11
11
|
ads?: GalleryAdType[];
|
|
12
|
+
ctaSlot?: ImageAttachmentProps['ctaSlot'];
|
|
12
13
|
footerAd?: GalleryAdType;
|
|
13
14
|
images: ImageAttachmentProps['images'];
|
|
14
15
|
reserved?: ImageAttachmentProps['reserved'];
|
|
16
|
+
stickerSlot?: ImageAttachmentProps['stickerSlot'];
|
|
17
|
+
type: ImageAttachmentProps['type'];
|
|
15
18
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageAttachmentProps } from './ImageAttachment.types';
|
|
2
|
-
export declare const ImageAttachment: ({ activeIndex, images, onImageClick, reserved, }: ImageAttachmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const ImageAttachment: ({ activeIndex, ctaSlot, images, onImageClick, reserved, stickerSlot, type, }: ImageAttachmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ImageAttachment;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
1
2
|
export type ImageAttachmentProps = {
|
|
2
|
-
activeIndex
|
|
3
|
+
activeIndex?: number;
|
|
4
|
+
ctaSlot?: ReactElement;
|
|
3
5
|
images: string[];
|
|
4
6
|
onImageClick: (index: number) => void;
|
|
5
7
|
reserved?: boolean;
|
|
8
|
+
stickerSlot?: ReactElement;
|
|
9
|
+
type?: 'slideshow' | 'collage';
|
|
6
10
|
};
|
package/lib/ImageAttachment/components/PlaceholderImageAttachment/PlaceholderImageAttachment.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ImageAttachmentProps } from '../../ImageAttachment.types';
|
|
2
|
+
type PlaceholderImageAttachmentProps = {
|
|
3
|
+
ctaSlot?: ImageAttachmentProps['ctaSlot'];
|
|
4
|
+
type: ImageAttachmentProps['type'];
|
|
5
|
+
};
|
|
6
|
+
export declare const PlaceholderImageAttachment: ({ ctaSlot, type, }: PlaceholderImageAttachmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageCropperProps } from './ImageCropper.types';
|
|
2
|
-
declare const ImageCropper: ({ aspectRatio, imageFile,
|
|
2
|
+
declare const ImageCropper: ({ aspectRatio, imageFile, onClose, onCrop, translations: t, }: ImageCropperProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ImageCropper;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
export type ImageCropperProps = {
|
|
2
2
|
aspectRatio?: number;
|
|
3
3
|
imageFile?: File;
|
|
4
|
-
minCropHeight?: number;
|
|
5
|
-
minCropWidth?: number;
|
|
6
4
|
onClose: () => void;
|
|
7
5
|
onCrop: (image: File) => void;
|
|
8
6
|
translations?: {
|
|
9
7
|
close: string;
|
|
10
8
|
crop: string;
|
|
9
|
+
mobileTitle: string;
|
|
11
10
|
rotate: string;
|
|
12
11
|
title: string;
|
|
13
12
|
};
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
1
|
+
import { CropperRef, CropperState } from 'react-advanced-cropper';
|
|
2
|
+
export declare const cropImage: (cropperRef: React.RefObject<CropperRef>, imgType: string, onCrop: (file: File) => void) => void;
|
|
3
|
+
export declare const getDefaultSize: (state: CropperState) => {
|
|
4
|
+
height: number;
|
|
5
|
+
width: number;
|
|
6
|
+
};
|