@teleporthq/teleport-plugin-jsx-inline-styles
Advanced tools
Comparing version 0.11.1 to 0.12.0
@@ -62,4 +62,3 @@ "use strict"; | ||
// Nested styles are ignored | ||
var rootStyles = teleport_shared_1.UIDLUtils.cleanupNestedStyles(style); | ||
var inlineStyles = teleport_shared_1.UIDLUtils.transformDynamicStyles(rootStyles, function (styleValue) { | ||
var inlineStyles = teleport_shared_1.UIDLUtils.transformDynamicStyles(style, function (styleValue) { | ||
return teleport_plugin_common_1.StyleBuilders.createDynamicStyleExpression(styleValue, propsPrefix_1); | ||
@@ -66,0 +65,0 @@ }); |
@@ -22,4 +22,3 @@ import { UIDLUtils } from '@teleporthq/teleport-shared'; | ||
// Nested styles are ignored | ||
const rootStyles = UIDLUtils.cleanupNestedStyles(style); | ||
const inlineStyles = UIDLUtils.transformDynamicStyles(rootStyles, (styleValue) => StyleBuilders.createDynamicStyleExpression(styleValue, propsPrefix)); | ||
const inlineStyles = UIDLUtils.transformDynamicStyles(style, (styleValue) => StyleBuilders.createDynamicStyleExpression(styleValue, propsPrefix)); | ||
ASTUtils.addAttributeToJSXTag(jsxASTTag, 'style', inlineStyles); | ||
@@ -26,0 +25,0 @@ } |
{ | ||
"name": "@teleporthq/teleport-plugin-jsx-inline-styles", | ||
"version": "0.11.1", | ||
"version": "0.12.0", | ||
"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.11.1", | ||
"@teleporthq/teleport-shared": "^0.11.1", | ||
"@teleporthq/teleport-types": "^0.11.0" | ||
"@teleporthq/teleport-plugin-common": "^0.12.0", | ||
"@teleporthq/teleport-shared": "^0.12.0", | ||
"@teleporthq/teleport-types": "^0.12.0" | ||
}, | ||
"gitHead": "f6ed005a4cdb5b1b8050f9368ff436b9c48a4fde" | ||
"gitHead": "f5ef80f8d15eb5da2bce57dee16ded1513d051b9" | ||
} |
@@ -32,4 +32,3 @@ import { UIDLUtils } from '@teleporthq/teleport-shared' | ||
// Nested styles are ignored | ||
const rootStyles = UIDLUtils.cleanupNestedStyles(style) | ||
const inlineStyles = UIDLUtils.transformDynamicStyles(rootStyles, (styleValue) => | ||
const inlineStyles = UIDLUtils.transformDynamicStyles(style, (styleValue) => | ||
StyleBuilders.createDynamicStyleExpression(styleValue, propsPrefix) | ||
@@ -36,0 +35,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
253019
241
+ Added@teleporthq/teleport-plugin-common@0.12.4(transitive)
+ Added@teleporthq/teleport-shared@0.12.4(transitive)
+ Added@teleporthq/teleport-types@0.12.4(transitive)
- Removed@teleporthq/teleport-plugin-common@0.11.1(transitive)
- Removed@teleporthq/teleport-shared@0.11.1(transitive)
- Removed@teleporthq/teleport-types@0.11.0(transitive)