gatsby-background-image-es5-preact
Advanced tools
Comparing version 1.1.2-alpha.0 to 1.1.2-alpha.1
@@ -1,26 +0,26 @@ | ||
import * as React from 'react' | ||
import * as React from 'react'; | ||
declare module 'gatsby-background-image-es5' { | ||
declare module 'gatsby-background-image-es5-preact' { | ||
interface IFixedObject { | ||
width: number | ||
height: number | ||
src: string | ||
srcSet: string | ||
base64?: string | ||
tracedSVG?: string | ||
srcWebp?: string | ||
srcSetWebp?: string | ||
media?: string | ||
width: number; | ||
height: number; | ||
src: string; | ||
srcSet: string; | ||
base64?: string; | ||
tracedSVG?: string; | ||
srcWebp?: string; | ||
srcSetWebp?: string; | ||
media?: string; | ||
} | ||
interface IFluidObject { | ||
aspectRatio: number | ||
src: string | ||
srcSet: string | ||
sizes?: string | ||
base64?: string | ||
tracedSVG?: string | ||
srcWebp?: string | ||
srcSetWebp?: string | ||
media?: string | ||
aspectRatio: number; | ||
src: string; | ||
srcSet: string; | ||
sizes?: string; | ||
base64?: string; | ||
tracedSVG?: string; | ||
srcWebp?: string; | ||
srcSetWebp?: string; | ||
media?: string; | ||
} | ||
@@ -32,28 +32,28 @@ | ||
? U extends IntrinsicTags | ||
? U extends 'div' | ||
? DefaultExtraProps | ||
: { Tag: U } & JSX.IntrinsicElements[U] | ||
: DefaultExtraProps | ||
: DefaultExtraProps | ||
; | ||
? U extends 'div' | ||
? DefaultExtraProps | ||
: { Tag: U } & JSX.IntrinsicElements[U] | ||
: DefaultExtraProps | ||
: DefaultExtraProps; | ||
interface IBackgroundImageProps { | ||
fixed?: IFixedObject | IFixedObject[] | (IFixedObject | string)[], | ||
fluid?: IFluidObject | IFluidObject[] | (IFluidObject | string)[], | ||
fadeIn?: string | boolean, | ||
durationFadeIn?: number, | ||
title?: string, | ||
alt?: string | ||
critical?: boolean, | ||
crossOrigin?: string | boolean, | ||
backgroundColor?: string | boolean, | ||
onLoad?: () => void | ||
onStartLoad?: (param: { wasCached: boolean }) => void | ||
onError?: (event: any) => void | ||
preserveStackingContext?: boolean, | ||
rootMargin?: string, | ||
fixed?: IFixedObject | IFixedObject[] | (IFixedObject | string)[]; | ||
fluid?: IFluidObject | IFluidObject[] | (IFluidObject | string)[]; | ||
fadeIn?: string | boolean; | ||
durationFadeIn?: number; | ||
title?: string; | ||
alt?: string; | ||
critical?: boolean; | ||
crossOrigin?: string | boolean; | ||
backgroundColor?: string | boolean; | ||
onLoad?: () => void; | ||
onStartLoad?: (param: { wasCached: boolean }) => void; | ||
onError?: (event: any) => void; | ||
preserveStackingContext?: boolean; | ||
rootMargin?: string; | ||
} | ||
export default class BackgroundImage<T extends IntrinsicTags> extends React.Component<InferExtraProps<T> & IBackgroundImageProps> { | ||
} | ||
export default class BackgroundImage<T extends IntrinsicTags> extends React.Component< | ||
InferExtraProps<T> & IBackgroundImageProps | ||
> {} | ||
} |
{ | ||
"name": "gatsby-background-image-es5-preact", | ||
"version": "1.1.2-alpha.0", | ||
"version": "1.1.2-alpha.1", | ||
"description": "(preact-fork) Lazy-loading React background-image component with optional support for the blur-up effect. Transpiled to ES5.", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "cc67bfc0276cab7b14643536f4a0640f215f3b8b" | ||
"gitHead": "5da05da74f62f728d7ee31f2fefb1bd392d203eb" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
96243