Socket
Socket
Sign inDemoInstall

react-insta-stories

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-insta-stories - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

dist/util/usePreLoader.d.ts

1

dist/index.d.ts

@@ -9,2 +9,3 @@ import React from 'react';

defaultInterval: number;
preloadCount: number;
};

@@ -11,0 +12,0 @@ };

@@ -29,2 +29,3 @@ import * as React from "react";

preventDefault?: boolean;
preloadCount?: number;
}

@@ -57,2 +58,3 @@ export interface GlobalCtx {

preventDefault?: boolean;
preloadCount?: number;
}

@@ -113,2 +115,3 @@ type NumberOrString = number | string;

originalContent?: Renderer;
preloadResource?: boolean;
}

@@ -115,0 +118,0 @@ export interface Header {

2

package.json
{
"name": "react-insta-stories",
"version": "2.6.1",
"version": "2.6.2",
"description": "A React component for Instagram like stories",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -73,2 +73,3 @@ ![Main image](https://i.imgur.com/OAL12S5.jpg)

| `preventDefault` | Boolean | false | Disable the default behavior when user click the component |
| `preloadCount` | number | 1 | Determines how many stories should be preloaded ahead of the current story index. |

@@ -80,3 +81,3 @@ ### Story object

| Property | Description |
| ------------------ | --------------------------------------------------------------------------------------------------------------------------------------------- |
|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|
| `url` | The url of the resource, be it image or video. |

@@ -89,2 +90,3 @@ | `type` | Optional. Type of the story. `type: 'video' | 'image'`. Type `video` is necessary for a video story. |

| `styles` | Optional. Override the default story styles mentioned below. |
| `preloadResource` | Optional. Whether to preload the resource or not, defaults to `true` for images and `false` for videos (video preloading is experimental) |

@@ -91,0 +93,0 @@ ### Default story styles

Sorry, the diff of this file is too big to display

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