react-insta-stories
Advanced tools
Comparing version 2.4.2 to 2.5.0
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { HeaderProps } from './../interfaces'; | ||
import { HeaderProps } from "./../interfaces"; | ||
declare const Header: ({ profileImage, heading, subheading }: HeaderProps) => JSX.Element; | ||
export default Header; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { ProgressProps } from './../interfaces'; | ||
declare const _default: (props: ProgressProps) => JSX.Element; | ||
export default _default; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
declare const _default: () => JSX.Element; | ||
export default _default; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { ProgressWrapperProps } from './../interfaces'; | ||
declare const ProgressWrapper: (props: ProgressWrapperProps) => JSX.Element; | ||
export default ProgressWrapper; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="react" /> | ||
declare const Spinner: () => JSX.Element; | ||
export default Spinner; |
@@ -1,4 +0,3 @@ | ||
/// <reference types="react" /> | ||
import { StoryProps } from "./../interfaces"; | ||
declare const Story: (props: StoryProps) => JSX.Element; | ||
export default Story; |
@@ -11,7 +11,7 @@ import React from 'react'; | ||
}; | ||
export declare const WithHeader: React.FC<{ | ||
export declare const WithHeader: React.FC<React.PropsWithChildren<{ | ||
story: Story; | ||
globalHeader: Function; | ||
}>; | ||
export declare const WithSeeMore: React.FC<{ | ||
}>>; | ||
export declare const WithSeeMore: React.FC<React.PropsWithChildren<{ | ||
story: Story; | ||
@@ -23,3 +23,3 @@ action: import("./interfaces").Action; | ||
}>; | ||
}>; | ||
}>>; | ||
export default ReactInstaStories; |
@@ -1,2 +0,2 @@ | ||
import * as React from 'react'; | ||
import * as React from "react"; | ||
export interface ReactInstaStoriesProps { | ||
@@ -45,3 +45,3 @@ stories: Story[]; | ||
} | ||
declare type NumberOrString = number | string; | ||
type NumberOrString = number | string; | ||
export interface StoriesContext { | ||
@@ -56,4 +56,4 @@ stories: Story[]; | ||
} | ||
export declare type Action = (action: string, bufferAction?: boolean) => void; | ||
export interface Renderer extends React.FC<{ | ||
export type Action = (action: string, bufferAction?: boolean) => void; | ||
export type Renderer = React.FC<{ | ||
action: Action; | ||
@@ -69,8 +69,7 @@ isPaused: boolean; | ||
}; | ||
messageHandler: (type: string, data: any) => ({ | ||
ack: 'OK' | 'ERROR'; | ||
}); | ||
}> { | ||
} | ||
export declare type Tester = (story: Story) => { | ||
messageHandler: (type: string, data: any) => { | ||
ack: "OK" | "ERROR"; | ||
}; | ||
}>; | ||
export type Tester = (story: Story) => { | ||
condition: boolean; | ||
@@ -77,0 +76,0 @@ priority: number; |
@@ -1,2 +0,2 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
import { Renderer, Tester } from "./../interfaces"; | ||
export declare const renderer: Renderer; | ||
@@ -3,0 +3,0 @@ export declare const tester: Tester; |
@@ -1,2 +0,2 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
import { Renderer, Tester } from "./../interfaces"; | ||
export declare const renderer: Renderer; | ||
@@ -3,0 +3,0 @@ export declare const tester: Tester; |
@@ -1,2 +0,2 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
import { Renderer, Tester } from "./../interfaces"; | ||
export declare const renderer: Renderer; | ||
@@ -3,0 +3,0 @@ export declare const tester: Tester; |
@@ -1,7 +0,7 @@ | ||
import React from 'react'; | ||
import { Story } from '../../interfaces'; | ||
declare const withHeader: React.FC<{ | ||
import React from "react"; | ||
import { Story } from "../../interfaces"; | ||
declare const withHeader: React.FC<React.PropsWithChildren<{ | ||
story: Story; | ||
globalHeader: Function; | ||
}>; | ||
}>>; | ||
export default withHeader; |
@@ -1,8 +0,8 @@ | ||
import React from 'react'; | ||
import { Action, SeeMoreProps, Story } from '../../interfaces'; | ||
declare const withSeeMore: React.FC<{ | ||
import React from "react"; | ||
import { Action, SeeMoreProps, Story } from "../../interfaces"; | ||
declare const withSeeMore: React.FC<React.PropsWithChildren<{ | ||
story: Story; | ||
action: Action; | ||
customCollapsed?: SeeMoreProps["customCollapsed"]; | ||
}>; | ||
}>>; | ||
export default withSeeMore; |
{ | ||
"name": "react-insta-stories", | ||
"version": "2.4.2", | ||
"version": "2.5.0", | ||
"description": "A React component for Instagram like stories", | ||
@@ -19,2 +19,6 @@ "main": "dist/index.js", | ||
}, | ||
"files": [ | ||
"dist", | ||
"README.md" | ||
], | ||
"repository": { | ||
@@ -40,21 +44,21 @@ "type": "git", | ||
"@teamsupercell/typings-for-css-modules-loader": "^2.0.0", | ||
"@types/react": "^16.9.2", | ||
"@types/react-dom": "^16.8.5", | ||
"@types/react": "^18.0.28", | ||
"@types/react-dom": "^18.0.11", | ||
"babel-loader": "^8.0.6", | ||
"css-loader": "^3.2.0", | ||
"gh-pages": "^3.1.0", | ||
"react": "^16.10.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-svg-loader": "^3.0.3", | ||
"source-map-loader": "^0.2.4", | ||
"style-loader": "^1.0.0", | ||
"ts-loader": "^6.0.4", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.41.0", | ||
"webpack-cli": "^3.3.9", | ||
"webpack-dev-server": "^3.8.1" | ||
"ts-loader": "^9.4.2", | ||
"typescript": "^4.9.5", | ||
"webpack": "^5.76.2", | ||
"webpack-cli": "^5.0.1", | ||
"webpack-dev-server": "^4.12.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.2 || 17.x || 18.x" | ||
}, | ||
"dependencies": {} | ||
"react": ">=16.8.2" | ||
} | ||
} |
@@ -387,2 +387,3 @@ ![Main image](https://i.imgur.com/OAL12S5.jpg) | ||
- [TLDR Stories](https://www.producthunt.com/posts/tldr-stories-a0c16732-ba1e-4a40-b420-8582b9128bac) | ||
- [Dysperse](https://dysperse.com) | ||
@@ -389,0 +390,0 @@ Do you use `react-insta-stories` too? Raise a PR to include your site in this list! |
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
139716
394
420
19
26