Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-background-image-es5-preact

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-background-image-es5-preact - npm Package Compare versions

Comparing version 1.1.2-alpha.0 to 1.1.2-alpha.1

84

index.d.ts

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc