@teleporthq/teleport-plugin-jsx-inline-styles
Advanced tools
Comparing version 0.10.2 to 0.10.4
"use strict"; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return new (P || (P = Promise))(function (resolve, reject) { | ||
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } | ||
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } | ||
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } | ||
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } | ||
step((generator = generator.apply(thisArg, _arguments || [])).next()); | ||
@@ -37,3 +38,2 @@ }); | ||
}; | ||
var _this = this; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -44,3 +44,3 @@ var teleport_shared_1 = require("@teleporthq/teleport-shared"); | ||
var _a = (config || {}).componentChunkName, componentChunkName = _a === void 0 ? 'jsx-component' : _a; | ||
var inlineStylesPlugin = function (structure) { return __awaiter(_this, void 0, void 0, function () { | ||
var inlineStylesPlugin = function (structure) { return __awaiter(void 0, void 0, void 0, function () { | ||
var uidl, chunks, componentChunk; | ||
@@ -56,3 +56,5 @@ return __generator(this, function (_a) { | ||
if (style && Object.keys(style).length > 0) { | ||
// @ts-ignore | ||
var jsxASTTag = componentChunk.meta.nodesLookup[key]; | ||
// @ts-ignore | ||
var propsPrefix_1 = componentChunk.meta.dynamicRefPrefix.prop; | ||
@@ -59,0 +61,0 @@ if (!jsxASTTag) { |
@@ -14,3 +14,5 @@ import { UIDLUtils } from '@teleporthq/teleport-shared'; | ||
if (style && Object.keys(style).length > 0) { | ||
// @ts-ignore | ||
const jsxASTTag = componentChunk.meta.nodesLookup[key]; | ||
// @ts-ignore | ||
const propsPrefix = componentChunk.meta.dynamicRefPrefix.prop; | ||
@@ -17,0 +19,0 @@ if (!jsxASTTag) { |
{ | ||
"name": "@teleporthq/teleport-plugin-jsx-inline-styles", | ||
"version": "0.10.2", | ||
"version": "0.10.4", | ||
"description": "A plugin for injecting the styles as inline styles inside JSX-based components", | ||
@@ -29,7 +29,7 @@ "author": "teleportHQ", | ||
"dependencies": { | ||
"@teleporthq/teleport-plugin-common": "^0.10.2", | ||
"@teleporthq/teleport-shared": "^0.10.1", | ||
"@teleporthq/teleport-types": "^0.10.1" | ||
"@teleporthq/teleport-plugin-common": "^0.10.4", | ||
"@teleporthq/teleport-shared": "^0.10.4", | ||
"@teleporthq/teleport-types": "^0.10.4" | ||
}, | ||
"gitHead": "91d75226d1fada0ef0ab2b61a7974475ba214fb1" | ||
"gitHead": "b5f838aac54b6af2c6bed73e4044ead5b747ecf4" | ||
} |
@@ -23,3 +23,5 @@ import { UIDLUtils } from '@teleporthq/teleport-shared' | ||
if (style && Object.keys(style).length > 0) { | ||
// @ts-ignore | ||
const jsxASTTag = componentChunk.meta.nodesLookup[key] | ||
// @ts-ignore | ||
const propsPrefix = componentChunk.meta.dynamicRefPrefix.prop | ||
@@ -26,0 +28,0 @@ if (!jsxASTTag) { |
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
244
253384