@gondel/plugin-react
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
import React, { Component } from "react"; | ||
@@ -11,4 +10,4 @@ export interface Props<S> extends React.ComponentLifecycle<null, S> { | ||
updateConfig: (config: TConfig) => void; | ||
render(): JSX.Element | (string & ((props: TConfig) => JSX.Element)) | (number & ((props: TConfig) => JSX.Element)) | (true & ((props: TConfig) => JSX.Element)) | (false & ((props: TConfig) => JSX.Element)) | ((string | number | boolean | any[] | React.ReactElement<any>)[] & ((props: TConfig) => JSX.Element)) | (React.ReactPortal & ((props: TConfig) => JSX.Element)) | undefined; | ||
render(): JSX.Element | (string & ((props: TConfig) => JSX.Element)) | (number & ((props: TConfig) => JSX.Element)) | (false & ((props: TConfig) => JSX.Element)) | (true & ((props: TConfig) => JSX.Element)) | ((string | number | boolean | any[] | React.ReactElement<any>)[] & ((props: TConfig) => JSX.Element)) | (React.ReactPortal & ((props: TConfig) => JSX.Element)) | undefined; | ||
} | ||
export declare function createRenderAbleAppWrapper<TConfig>(props: Props<TConfig>): JSX.Element; |
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
return function (d, b) { | ||
@@ -11,9 +14,12 @@ extendStatics(d, b); | ||
})(); | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
@@ -53,3 +59,3 @@ import React, { Component } from "react"; | ||
var children = this.props.children; | ||
return typeof children === 'function' ? children(this.state) : children; | ||
return typeof children === "function" ? children(this.state) : children; | ||
}; | ||
@@ -56,0 +62,0 @@ return AppWrapper; |
@@ -1,2 +0,1 @@ | ||
/// <reference types="react" /> | ||
/** | ||
@@ -3,0 +2,0 @@ * This is a plugin which allows a simplified usage of gondel together with react |
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
var extendStatics = function (d, b) { | ||
extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return extendStatics(d, b); | ||
} | ||
return function (d, b) { | ||
@@ -6,0 +9,0 @@ extendStatics(d, b); |
{ | ||
"name": "@gondel/plugin-react", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "Gondel Plugin to boot react widgets and apps", | ||
@@ -18,2 +18,6 @@ "bugs": "https://github.com/namics/gondel/issues", | ||
}, | ||
"files": [ | ||
"src/", | ||
"dist/" | ||
], | ||
"peerDependencies": { | ||
@@ -25,9 +29,9 @@ "@gondel/core": "*", | ||
"devDependencies": { | ||
"@gondel/core": "*", | ||
"@gondel/core": "^0.0.4", | ||
"npm-run-all": "4.1.3", | ||
"react": "16.3.2", | ||
"react-dom": "16.3.2", | ||
"npm-run-all": "4.1.2", | ||
"react-dom": "16.3.3", | ||
"rimraf": "2.6.2", | ||
"typescript": "2.8.3" | ||
"typescript": "3.0.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
25230
389