@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.
@@ -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: number;
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
  };
@@ -0,0 +1,2 @@
1
+ import { ImageAttachmentProps } from '../../ImageAttachment.types';
2
+ export declare const CollageImageAttachment: ({ ctaSlot, images, onImageClick, stickerSlot, }: Omit<ImageAttachmentProps, "activeIndex" | "type">) => import("react/jsx-runtime").JSX.Element;
@@ -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 {};
@@ -0,0 +1,2 @@
1
+ import { ImageAttachmentProps } from '../../ImageAttachment.types';
2
+ export declare const SwiperImageAttachment: ({ activeIndex, ctaSlot, images, onImageClick, stickerSlot, }: Omit<ImageAttachmentProps, "type">) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
1
  import { ImageCropperProps } from './ImageCropper.types';
2
- declare const ImageCropper: ({ aspectRatio, imageFile, minCropHeight, minCropWidth, onClose, onCrop, translations: t, }: ImageCropperProps) => import("react/jsx-runtime").JSX.Element;
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
- export declare const cropImage: (cropper: Cropper, imgType: string, onCrop: (file: File) => void) => void;
2
- export declare const rotateImage: (cropper: Cropper, direction: "left" | "right") => void;
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "3.4.0-development.18",
3
+ "version": "3.4.0-development.19",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",