gantri-components 2.190.0 → 2.192.0

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.
@@ -2,8 +2,14 @@ import { IGravity } from '@cloudinary/url-gen/qualifiers/gravity/GravityQualifie
2
2
  import { AspectRatio, Dpr, ImageDimension, ImageProps, ImageSource, ImageTransformationsVariant, TransformationMode, TransformationQuality, Transformations, TransformationType } from './image.types';
3
3
  import { ResolutionAwarePropBase } from '../../types/resolution-aware-prop.type';
4
4
  import { Optional } from '../../types/common';
5
+ /**
6
+ * Detects the source type of an image URL
7
+ * @param url The image URL to analyze
8
+ * @returns The detected source type
9
+ */
10
+ export declare const detectImageSource: (url: string | undefined) => ImageSource;
5
11
  export declare const extractSizePropertyValue: (prop: Optional<ImageDimension>) => Optional<ImageDimension>;
6
- export declare const generateCloudinaryUrl: (source: ImageSource, imageName?: string, aspectRatio?: AspectRatio, width?: Optional<ImageDimension>, height?: Optional<ImageDimension>, mode?: Optional<TransformationMode>, quality?: Optional<TransformationQuality>, dpr?: Optional<Dpr>, type?: Optional<TransformationType>, gravity?: Optional<IGravity>, sharpen?: Optional<number | boolean>) => string;
12
+ export declare const generateCloudinaryUrl: (source: ImageSource, imageName?: string, aspectRatio?: AspectRatio, width?: Optional<ImageDimension>, height?: Optional<ImageDimension>, mode?: Optional<TransformationMode>, quality?: Optional<TransformationQuality>, dpr?: Optional<Dpr>, type?: Optional<TransformationType>, gravity?: Optional<IGravity>, sharpen?: Optional<number | boolean>, hasExplicitTransformations?: boolean) => string;
7
13
  export declare const generateImages: (params: Partial<ImageProps>, type?: TransformationType) => string | ResolutionAwarePropBase<string>;
8
14
  /** Converts transformation variant shorthand to full transformations. */
9
15
  export declare const getVariantTransformation: (transformationsVariant: Optional<ImageTransformationsVariant>) => ResolutionAwarePropBase<Transformations> | null;