@teleporthq/teleport-plugin-react-styled-components
Advanced tools
Comparing version 0.43.0-alpha.0 to 0.44.0-alpha.0
@@ -75,5 +75,4 @@ "use strict"; | ||
_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) { | ||
@@ -113,4 +112,2 @@ var style = tokens[key]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
return [2 /*return*/, structure]; | ||
@@ -117,0 +114,0 @@ }); |
@@ -49,5 +49,4 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
_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) { | ||
@@ -87,4 +86,2 @@ var style = tokens[key]; | ||
} | ||
uidl.outputOptions = uidl.outputOptions || {}; | ||
uidl.outputOptions.fileName = fileName; | ||
return [2 /*return*/, structure]; | ||
@@ -91,0 +88,0 @@ }); |
{ | ||
"name": "@teleporthq/teleport-plugin-react-styled-components", | ||
"version": "0.43.0-alpha.0", | ||
"version": "0.44.0-alpha.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.43.0-alpha.0", | ||
"@teleporthq/teleport-shared": "^0.43.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.43.0-alpha.0" | ||
"@teleporthq/teleport-plugin-common": "^0.44.0-alpha.0", | ||
"@teleporthq/teleport-shared": "^0.44.0-alpha.0", | ||
"@teleporthq/teleport-types": "^0.44.0-alpha.0" | ||
}, | ||
"gitHead": "b3c9ae8e66be2e9621e83706b15305be9d51dd01" | ||
"gitHead": "45837677d7dc78f2557c5af83deb519bd33b36c6" | ||
} |
@@ -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
186229
2051
+ Added@teleporthq/teleport-plugin-common@0.44.0-alpha.0(transitive)
+ Added@teleporthq/teleport-shared@0.44.0-alpha.0(transitive)
+ Added@teleporthq/teleport-types@0.44.0-alpha.0(transitive)
- Removed@teleporthq/teleport-plugin-common@0.43.0-alpha.0(transitive)
- Removed@teleporthq/teleport-shared@0.43.0-alpha.0(transitive)
- Removed@teleporthq/teleport-types@0.43.0-alpha.0(transitive)