-
Notifications
You must be signed in to change notification settings - Fork 250
Header - onHeadPress #253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aravi1626
wants to merge
5
commits into
mohitk05:master
Choose a base branch
from
aravi1626:prev-next
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Header - onHeadPress #253
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
dist | ||
example/dist |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
declare module '*.svg'; | ||
declare module "*.svg"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/// <reference types="react" /> | ||
export default function (): JSX.Element; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { HeaderProps } from "./../interfaces"; | ||
declare const Header: ({ profileImage, heading, subheading }: HeaderProps) => JSX.Element; | ||
export default Header; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/// <reference types="react" /> | ||
declare const NavigatePrev: ({ onPrev }: { | ||
onPrev(): void; | ||
}) => JSX.Element; | ||
declare const NavigateNext: ({ onNext }: { | ||
onNext(): void; | ||
}) => JSX.Element; | ||
export { NavigatePrev, NavigateNext }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { ProgressProps } from './../interfaces'; | ||
declare const _default: (props: ProgressProps) => JSX.Element; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare const _default: () => JSX.Element; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { ProgressWrapperProps } from './../interfaces'; | ||
declare const ProgressWrapper: (props: ProgressWrapperProps) => JSX.Element; | ||
export default ProgressWrapper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference types="react" /> | ||
import { SeeMoreProps } from './../interfaces'; | ||
export default function seeMore(props: SeeMoreProps): JSX.Element; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/// <reference types="react" /> | ||
declare const Spinner: () => JSX.Element; | ||
export default Spinner; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/// <reference types="react" /> | ||
import { StoryProps } from "./../interfaces"; | ||
declare const Story: (props: StoryProps) => JSX.Element; | ||
export default Story; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react'; | ||
import { GlobalCtx } from '../interfaces'; | ||
export declare const initialContext: { | ||
defaultInterval: number; | ||
width: number; | ||
height: number; | ||
}; | ||
declare const GlobalContext: React.Context<GlobalCtx>; | ||
export default GlobalContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import React from 'react'; | ||
import { ProgressContext } from './../interfaces'; | ||
declare const _default: React.Context<ProgressContext>; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from 'react'; | ||
import { StoriesContext as StoriesContextInterface, Story } from '../interfaces'; | ||
export declare const initialContext: { | ||
stories: Story[]; | ||
}; | ||
declare const StoriesContext: React.Context<StoriesContextInterface>; | ||
export default StoriesContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from 'react'; | ||
import { ReactInstaStoriesProps, Story } from './interfaces'; | ||
declare const ReactInstaStories: { | ||
(props: ReactInstaStoriesProps): JSX.Element; | ||
defaultProps: { | ||
width: number; | ||
height: number; | ||
defaultInterval: number; | ||
}; | ||
}; | ||
export declare const WithHeader: React.FC<{ | ||
story: Story; | ||
globalHeader: Function; | ||
}>; | ||
export declare const WithSeeMore: React.FC<{ | ||
story: Story; | ||
action: import("./interfaces").Action; | ||
customCollapsed?: React.ComponentType<{ | ||
toggleMore: (show: boolean) => void; | ||
action: import("./interfaces").Action; | ||
}>; | ||
}>; | ||
export default ReactInstaStories; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,143 @@ | ||
import * as React from "react"; | ||
export interface ReactInstaStoriesProps { | ||
stories: Story[]; | ||
width?: NumberOrString; | ||
height?: NumberOrString; | ||
loader?: JSX.Element; | ||
header?: Function; | ||
storyContainerStyles?: Record<string, any>; | ||
storyStyles?: Object; | ||
loop?: boolean; | ||
defaultInterval?: number; | ||
isPaused?: boolean; | ||
currentIndex?: number; | ||
renderers?: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}[]; | ||
onAllStoriesEnd?: Function; | ||
onStoryStart?: Function; | ||
onStoryEnd?: Function; | ||
keyboardNavigation?: boolean; | ||
preventDefault?: boolean; | ||
} | ||
export interface GlobalCtx { | ||
width?: NumberOrString; | ||
height?: NumberOrString; | ||
loader?: JSX.Element; | ||
header?: Function; | ||
storyContainerStyles?: Record<string, any>; | ||
storyStyles?: Object; | ||
loop?: boolean; | ||
defaultInterval?: number; | ||
isPaused?: boolean; | ||
currentIndex?: number; | ||
renderers?: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}[]; | ||
onAllStoriesEnd?: Function; | ||
onStoryStart?: Function; | ||
onStoryEnd?: Function; | ||
keyboardNavigation?: boolean; | ||
preventDefault?: boolean; | ||
} | ||
declare type NumberOrString = number | string; | ||
export interface StoriesContext { | ||
stories: Story[]; | ||
} | ||
export interface ContainerState { | ||
currentId: number; | ||
pause: boolean; | ||
count: number; | ||
storiesDone: number; | ||
} | ||
export declare type Action = (action: string, bufferAction?: boolean) => void; | ||
export interface Renderer extends React.FC<{ | ||
action: Action; | ||
isPaused: boolean; | ||
story: Story; | ||
config: { | ||
width?: NumberOrString; | ||
height?: NumberOrString; | ||
loader?: JSX.Element; | ||
header?: Function; | ||
storyStyles?: Object; | ||
}; | ||
messageHandler: (type: string, data: any) => { | ||
ack: "OK" | "ERROR"; | ||
}; | ||
}> { | ||
} | ||
export declare type Tester = (story: Story) => { | ||
condition: boolean; | ||
priority: number; | ||
}; | ||
export interface StoryProps { | ||
story: Story; | ||
action: Action; | ||
playState: boolean; | ||
getVideoDuration: Function; | ||
bufferAction: boolean; | ||
} | ||
export interface StoryState { | ||
loaded: boolean; | ||
showMore: boolean; | ||
} | ||
export interface Story { | ||
url?: string; | ||
seeMore?: Function; | ||
seeMoreCollapsed?: React.ComponentType<{ | ||
toggleMore: (show: boolean) => void; | ||
action: Action; | ||
}>; | ||
header?: Header; | ||
type?: string; | ||
duration?: number; | ||
styles?: object; | ||
content?: Renderer; | ||
originalContent?: Renderer; | ||
} | ||
export interface Header { | ||
heading: string; | ||
subheading: string; | ||
profileImage: string; | ||
onHeadPress?(): void; | ||
} | ||
export interface SeeMoreProps { | ||
seeMoreContent: Function; | ||
showContent: boolean; | ||
action: Action; | ||
toggleMore: (show: boolean) => void; | ||
customCollapsed: React.ComponentType<{ | ||
toggleMore: (show: boolean) => void; | ||
action: Action; | ||
}>; | ||
} | ||
export interface HeaderProps { | ||
profileImage: string; | ||
heading: string; | ||
subheading: string; | ||
onHeadPress?(): void; | ||
} | ||
export interface ProgressProps { | ||
width: number; | ||
active: number; | ||
count: number; | ||
} | ||
export interface ProgressWrapperProps { | ||
children: any; | ||
width: number; | ||
pause: boolean; | ||
bufferAction: boolean; | ||
} | ||
export interface ProgressArrayProps { | ||
} | ||
export interface ProgressContext { | ||
currentId: number; | ||
videoDuration: number; | ||
bufferAction: boolean; | ||
pause: boolean; | ||
next: Function; | ||
} | ||
export {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
export declare const renderer: Renderer; | ||
export declare const tester: Tester; | ||
declare const _default: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
export declare const renderer: Renderer; | ||
export declare const tester: Tester; | ||
declare const _default: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
export declare const renderer: Renderer; | ||
export declare const tester: Tester; | ||
declare const _default: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { Renderer, Tester } from './../interfaces'; | ||
export declare const renderer: Renderer; | ||
export declare const tester: Tester; | ||
declare const _default: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}; | ||
export default _default; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export declare const renderers: { | ||
renderer: import("../interfaces").Renderer; | ||
tester: import("../interfaces").Tester; | ||
}[]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import React from "react"; | ||
import { Story } from "../../interfaces"; | ||
declare const withHeader: React.FC<{ | ||
story: Story; | ||
globalHeader: Function; | ||
}>; | ||
export default withHeader; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import React from 'react'; | ||
import { Action, SeeMoreProps, Story } from '../../interfaces'; | ||
declare const withSeeMore: React.FC<{ | ||
story: Story; | ||
action: Action; | ||
customCollapsed?: SeeMoreProps["customCollapsed"]; | ||
}>; | ||
export default withSeeMore; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ReactNode } from "react"; | ||
interface Props { | ||
condition: any; | ||
children?: ReactNode; | ||
} | ||
export default function RenderIf({ condition, children }: Props): JSX.Element; | ||
export {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Renderer, Story, Tester } from "../interfaces"; | ||
export declare const getRenderer: (story: Story, renderers: { | ||
renderer: Renderer; | ||
tester: Tester; | ||
}[]) => Renderer; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you uncommit the generated declaration files? They are meant to be generated only in the output directory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aravi1626