react-insta-stories
Advanced tools
Comparing version 2.6.1 to 2.6.2
@@ -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 { |
{ | ||
"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
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
115495
28
2275
409