@gondel/plugin-react
Advanced tools
Comparing version 0.0.8 to 0.1.0
@@ -6,2 +6,10 @@ # Change Log | ||
# [0.1.0](https://github.com/namics/gondel/compare/v0.0.8...v0.1.0) (2019-04-08) | ||
**Note:** Version bump only for package @gondel/plugin-react | ||
## [0.0.8](https://github.com/namics/gondel/compare/v0.0.7...v0.0.8) (2018-11-19) | ||
@@ -8,0 +16,0 @@ |
@@ -9,4 +9,4 @@ import React, { Component } from "react"; | ||
constructor(props: Props<TConfig>); | ||
render(): JSX.Element | (string & ((props: TConfig) => JSX.Element)) | (number & ((props: TConfig) => JSX.Element)) | (false & ((props: TConfig) => JSX.Element)) | (true & ((props: TConfig) => JSX.Element)) | (React.ReactNodeArray & ((props: TConfig) => JSX.Element)) | undefined; | ||
render(): JSX.Element | (((props: TConfig) => JSX.Element) & string) | (((props: TConfig) => JSX.Element) & number) | (((props: TConfig) => JSX.Element) & false) | (((props: TConfig) => JSX.Element) & true) | (((props: TConfig) => JSX.Element) & React.ReactNodeArray) | undefined; | ||
} | ||
export declare function createRenderAbleAppWrapper<TConfig>(props: Props<TConfig>): JSX.Element; |
@@ -7,3 +7,3 @@ var __extends = (this && this.__extends) || (function () { | ||
return extendStatics(d, b); | ||
} | ||
}; | ||
return function (d, b) { | ||
@@ -10,0 +10,0 @@ extendStatics(d, b); |
@@ -7,3 +7,3 @@ var __extends = (this && this.__extends) || (function () { | ||
return extendStatics(d, b); | ||
} | ||
}; | ||
return function (d, b) { | ||
@@ -50,3 +50,5 @@ extendStatics(d, b); | ||
// Render the app | ||
var renderAppPromise = originalStartPromise.then(function () { return ReactDOMPromise; }).then(function (ReactDOM) { | ||
var renderAppPromise = originalStartPromise | ||
.then(function () { return ReactDOMPromise; }) | ||
.then(function (ReactDOM) { | ||
// Render only if the app was not stopped | ||
@@ -53,0 +55,0 @@ _this._stopped || |
{ | ||
"name": "@gondel/plugin-react", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"description": "Gondel Plugin to boot react widgets and apps", | ||
@@ -28,9 +28,10 @@ "bugs": "https://github.com/namics/gondel/issues", | ||
"devDependencies": { | ||
"@gondel/core": "^0.0.8", | ||
"npm-run-all": "4.1.3", | ||
"react": "16.6.0", | ||
"react-dom": "16.6.0", | ||
"rimraf": "2.6.2", | ||
"typescript": "3.0.3" | ||
} | ||
"@gondel/core": "^0.1.0", | ||
"npm-run-all": "4.1.5", | ||
"react": "16.8.3", | ||
"react-dom": "16.8.3", | ||
"rimraf": "2.6.3", | ||
"typescript": "3.3.3333" | ||
}, | ||
"gitHead": "4de956b8fcd3b5fa1fc039c682bf41e2d05c4f7a" | ||
} |
@@ -53,28 +53,31 @@ /** | ||
// Render the app | ||
const renderAppPromise = originalStartPromise.then(() => ReactDOMPromise).then(ReactDOM => { | ||
// Render only if the app was not stopped | ||
this._stopped || | ||
ReactDOM.render( | ||
createRenderAbleAppWrapper({ | ||
children: this.render.bind(this), | ||
onHasState: setInternalState => { | ||
this._setInternalState = setInternalState; | ||
}, | ||
componentWillUnmount: () => { | ||
delete this._setInternalState; | ||
this.componentWillUnmount && this.componentWillUnmount(); | ||
}, | ||
componentDidMount: this.componentDidMount && this.componentDidMount.bind(this), | ||
componentWillReceiveProps: | ||
this.componentWillReceiveProps && this.componentWillReceiveProps.bind(this), | ||
shouldComponentUpdate: | ||
this.shouldComponentUpdate && this.shouldComponentUpdate.bind(this), | ||
componentWillUpdate: this.componentWillUpdate && this.componentWillUpdate.bind(this), | ||
componentDidUpdate: this.componentDidUpdate && this.componentDidUpdate.bind(this), | ||
componentDidCatch: this.componentDidCatch && this.componentDidCatch.bind(this), | ||
config: this.state | ||
}), | ||
this._ctx | ||
); | ||
}); | ||
const renderAppPromise = originalStartPromise | ||
.then(() => ReactDOMPromise) | ||
.then(ReactDOM => { | ||
// Render only if the app was not stopped | ||
this._stopped || | ||
ReactDOM.render( | ||
createRenderAbleAppWrapper({ | ||
children: this.render.bind(this), | ||
onHasState: setInternalState => { | ||
this._setInternalState = setInternalState; | ||
}, | ||
componentWillUnmount: () => { | ||
delete this._setInternalState; | ||
this.componentWillUnmount && this.componentWillUnmount(); | ||
}, | ||
componentDidMount: this.componentDidMount && this.componentDidMount.bind(this), | ||
componentWillReceiveProps: | ||
this.componentWillReceiveProps && this.componentWillReceiveProps.bind(this), | ||
shouldComponentUpdate: | ||
this.shouldComponentUpdate && this.shouldComponentUpdate.bind(this), | ||
componentWillUpdate: | ||
this.componentWillUpdate && this.componentWillUpdate.bind(this), | ||
componentDidUpdate: this.componentDidUpdate && this.componentDidUpdate.bind(this), | ||
componentDidCatch: this.componentDidCatch && this.componentDidCatch.bind(this), | ||
config: this.state | ||
}), | ||
this._ctx | ||
); | ||
}); | ||
return renderAppPromise; | ||
@@ -81,0 +84,0 @@ }; |
Sorry, the diff of this file is not supported yet
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
28984
411