@teleporthq/teleport-plugin-react-styled-components
Advanced tools
Comparing version 0.30.0-alpha.0 to 0.30.0
@@ -40,3 +40,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -43,0 +43,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -40,3 +40,3 @@ "use strict"; | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -76,5 +76,4 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
_a = uidl.styleSetDefinitions, styleSetDefinitions = _a === void 0 ? {} : _a, _b = uidl.designLanguage, _c = _b === void 0 ? {} : _b, _d = _c.tokens, tokens = _d === void 0 ? {} : _d; | ||
if (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0) { | ||
return [2 /*return*/, structure]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
tokensMap = Object.keys(tokens || {}).reduce(function (acc, key) { | ||
@@ -114,4 +113,2 @@ var style = tokens[key]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
return [2 /*return*/, structure]; | ||
@@ -118,0 +115,0 @@ }); |
@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -19,0 +19,0 @@ if (y = 0, t) op = [op[0] & 2, t.value]; |
@@ -16,3 +16,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
if (f) throw new TypeError("Generator is already executing."); | ||
while (_) try { | ||
while (g && (g = 0, op[0] && (_ = 0)), _) try { | ||
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; | ||
@@ -50,5 +50,4 @@ if (y = 0, t) op = [op[0] & 2, t.value]; | ||
_a = uidl.styleSetDefinitions, styleSetDefinitions = _a === void 0 ? {} : _a, _b = uidl.designLanguage, _c = _b === void 0 ? {} : _b, _d = _c.tokens, tokens = _d === void 0 ? {} : _d; | ||
if (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0) { | ||
return [2 /*return*/, structure]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
tokensMap = Object.keys(tokens || {}).reduce(function (acc, key) { | ||
@@ -88,4 +87,2 @@ var style = tokens[key]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
return [2 /*return*/, structure]; | ||
@@ -92,0 +89,0 @@ }); |
{ | ||
"name": "@teleporthq/teleport-plugin-react-styled-components", | ||
"version": "0.30.0-alpha.0", | ||
"version": "0.30.0", | ||
"description": "A plugin for injecting the styles through styled-components inside React components", | ||
@@ -28,7 +28,7 @@ "author": "teleportHQ", | ||
"@babel/types": "^7.5.5", | ||
"@teleporthq/teleport-plugin-common": "^0.30.0-alpha.0", | ||
"@teleporthq/teleport-shared": "^0.30.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.30.0-alpha.0" | ||
"@teleporthq/teleport-plugin-common": "^0.30.0", | ||
"@teleporthq/teleport-shared": "^0.30.0", | ||
"@teleporthq/teleport-types": "^0.30.0" | ||
}, | ||
"gitHead": "08229f97ff3d89df98312d4b340206a108d9f901" | ||
"gitHead": "73a75f8787d660909be6618c509a3973faa69db0" | ||
} |
@@ -22,6 +22,6 @@ import * as types from '@babel/types' | ||
const { styleSetDefinitions = {}, designLanguage: { tokens = {} } = {} } = uidl | ||
if (Object.keys(styleSetDefinitions).length === 0 && Object.keys(tokens).length === 0) { | ||
return structure | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {} | ||
uidl.outputOptions.fileName = fileName | ||
const tokensMap: Record<string, string | number> = Object.keys(tokens || {}).reduce( | ||
@@ -79,5 +79,2 @@ (acc: Record<string, string | number>, key: string) => { | ||
uidl.outputOptions = uidl.outputOptions || {} | ||
uidl.outputOptions.fileName = fileName | ||
return structure | ||
@@ -84,0 +81,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
185611
2051