frint-react
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -1,4 +0,4 @@ | ||
import { App } from 'frint'; | ||
import React, { PropTypes } from 'react'; | ||
import { BehaviorSubject, Observable } from 'rxjs'; | ||
import { App } from "frint"; | ||
import * as React from "react"; | ||
import { BehaviorSubject, Observable } from "rxjs"; | ||
@@ -16,3 +16,3 @@ export class Streamer { | ||
setDispatch(actions: {[name: string]: (...args:any[]) => void}): Streamer; | ||
setDispatch(actions: {[name: string]: (...args: any[]) => any}, dispatcher: any): Streamer; | ||
@@ -32,16 +32,16 @@ get$(): Observable<any>; | ||
export class Provider extends React.Component<any, any> { | ||
propTypes: PropTypes = { | ||
app: PropTypes.object.isRequired, | ||
children: PropTypes.element.isRequired, | ||
}; | ||
export interface ProviderProps { | ||
app: App; | ||
children: any; | ||
} | ||
childContextTypes: PropTypes = { | ||
app: PropTypes.object.isRequired, | ||
}; | ||
export interface ProviderChildContextTypes { | ||
app: App; | ||
} | ||
export class Provider extends React.Component<ProviderProps, any> { | ||
static childContextTypes: ProviderChildContextTypes; | ||
getChildContext(): { app: App }; | ||
constructor(props: PropTypes, context: any); | ||
render(): React.ReactElement<any>; | ||
@@ -53,3 +53,4 @@ } | ||
export function render(app: App, node: Element): void | Element | React.Component<any, React.ComponentState>; | ||
export function getMountableComponent(app: App): () => React.Component | Element; | ||
export function observe(fn: (app: App) => Observable<any>): () => React.Component | Element; | ||
export function getMountableComponent(app: App): () => React.Component<ProviderProps, undefined> | Element; | ||
type Constructor<T extends React.Component<any, any>> = new(...args: any[]) => T; | ||
export function observe<T extends Constructor<React.Component<any, any>>>(fn: (app: App) => Observable<any>): (comp: T) => any; |
{ | ||
"name": "frint-react", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "React package for Frint", | ||
@@ -35,3 +35,3 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"frint": "^1.3.0", | ||
"frint": "^1.3.1", | ||
"frint-test-utils": "^1.3.0", | ||
@@ -38,0 +38,0 @@ "react": "^0.14.8", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
100464
1920
0