@teleporthq/teleport-plugin-react-base-component
Advanced tools
Comparing version 0.32.3 to 0.32.4
@@ -72,6 +72,5 @@ "use strict"; | ||
var reactComponentPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () { | ||
var uidl, dependencies, options, projectResources, _a, stateDefinitions, _b, propDefinitions, nodesLookup, windowImports, jsxParams, jsxOptions, jsxTagStructure, componentName, pureComponent, routerAST, componentBody; | ||
var uidl, dependencies, _a, stateDefinitions, _b, propDefinitions, nodesLookup, windowImports, jsxParams, jsxOptions, jsxTagStructure, componentName, pureComponent, routerAST, componentBody; | ||
return __generator(this, function (_c) { | ||
uidl = structure.uidl, dependencies = structure.dependencies, options = structure.options; | ||
projectResources = options.projectResources; | ||
uidl = structure.uidl, dependencies = structure.dependencies; | ||
_a = uidl.stateDefinitions, stateDefinitions = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b; | ||
@@ -89,3 +88,2 @@ dependencies.React = constants_1.REACT_LIBRARY_DEPENDENCY; | ||
dependencies: dependencies, | ||
projectResources: projectResources, | ||
windowImports: windowImports, | ||
@@ -92,0 +90,0 @@ }; |
@@ -46,6 +46,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
var reactComponentPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () { | ||
var uidl, dependencies, options, projectResources, _a, stateDefinitions, _b, propDefinitions, nodesLookup, windowImports, jsxParams, jsxOptions, jsxTagStructure, componentName, pureComponent, routerAST, componentBody; | ||
var uidl, dependencies, _a, stateDefinitions, _b, propDefinitions, nodesLookup, windowImports, jsxParams, jsxOptions, jsxTagStructure, componentName, pureComponent, routerAST, componentBody; | ||
return __generator(this, function (_c) { | ||
uidl = structure.uidl, dependencies = structure.dependencies, options = structure.options; | ||
projectResources = options.projectResources; | ||
uidl = structure.uidl, dependencies = structure.dependencies; | ||
_a = uidl.stateDefinitions, stateDefinitions = _a === void 0 ? {} : _a, _b = uidl.propDefinitions, propDefinitions = _b === void 0 ? {} : _b; | ||
@@ -63,3 +62,2 @@ dependencies.React = REACT_LIBRARY_DEPENDENCY; | ||
dependencies: dependencies, | ||
projectResources: projectResources, | ||
windowImports: windowImports, | ||
@@ -66,0 +64,0 @@ }; |
{ | ||
"name": "@teleporthq/teleport-plugin-react-base-component", | ||
"version": "0.32.3", | ||
"version": "0.32.4", | ||
"description": "A plugin for handling the skeleton/baseline of a React component", | ||
@@ -28,7 +28,7 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-plugin-common": "^0.32.3", | ||
"@teleporthq/teleport-shared": "^0.32.3", | ||
"@teleporthq/teleport-types": "^0.32.3" | ||
"@teleporthq/teleport-plugin-common": "^0.32.4", | ||
"@teleporthq/teleport-shared": "^0.32.4", | ||
"@teleporthq/teleport-types": "^0.32.4" | ||
}, | ||
"gitHead": "891708b576d816bfd3d47c8d894f64f654ccc903" | ||
"gitHead": "3cd81f19b5358e1b5f71e7c9ef610258fc3f0210" | ||
} |
@@ -39,4 +39,3 @@ import { createDOMInjectionNode } from './utils' | ||
const reactComponentPlugin: ComponentPlugin = async (structure) => { | ||
const { uidl, dependencies, options } = structure | ||
const { projectResources } = options | ||
const { uidl, dependencies } = structure | ||
const { stateDefinitions = {}, propDefinitions = {} } = uidl | ||
@@ -60,3 +59,2 @@ | ||
dependencies, | ||
projectResources, | ||
windowImports, | ||
@@ -63,0 +61,0 @@ } |
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
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
93835
594