react-figma
Advanced tools
Comparing version 0.19.0 to 0.20.0
@@ -24,2 +24,3 @@ import { TextStyleProperties } from '../styleTransformers/transformTextStyleProperties'; | ||
color?: string; | ||
fillStyleId?: string; | ||
fontFamily?: string; | ||
@@ -39,3 +40,2 @@ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"; | ||
textShadowRadius?: number; | ||
fillStyleId?: string; | ||
} | { | ||
@@ -61,2 +61,3 @@ fillStyleId: any; | ||
color?: string; | ||
fillStyleId?: string; | ||
fontFamily?: string; | ||
@@ -77,3 +78,2 @@ fontWeight?: "normal" | "bold" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900"; | ||
textStyleId?: string; | ||
fillStyleId?: string; | ||
}; |
@@ -69,3 +69,3 @@ "use strict"; | ||
var transformedStyles = React.useMemo(function () { return (__assign({}, transformTextStyleProperties_1.transformTextStyleProperties(style), { style: style })); }, [style]); | ||
var _b = useCreateFillStyleId_1.useCreateFillStyleId(transformedStyles.fills, params), createFillsStyle = _b[0], fillStyleId = _b[1]; | ||
var _b = useCreateFillStyleId_1.useCreateFillStyleId(style && style.color ? transformedStyles.fills : null, params), createFillsStyle = _b[0], fillStyleId = _b[1]; | ||
var textProperties = React.useMemo(function () { | ||
@@ -72,0 +72,0 @@ return Object.keys(transformedStyles).reduce(function (prev, current) { |
{ | ||
"name": "react-figma", | ||
"version": "0.19.0", | ||
"version": "0.20.0", | ||
"description": "Render React components to Figma", | ||
@@ -75,3 +75,3 @@ "scripts": { | ||
"figma-jsonrpc": "^0.4.0", | ||
"nanoid": "3.1.20", | ||
"nanoid": "3.1.31", | ||
"react-devtools-core": "^4.7.0", | ||
@@ -78,0 +78,0 @@ "react-fetch-hook": "1.7.2", |
import { Color, GeometryProps, TextNodeProps } from '../types'; | ||
export interface TextStyleProperties { | ||
color: string; | ||
fillStyleId: string; | ||
fontFamily: string; | ||
@@ -19,3 +20,2 @@ fontWeight: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'; | ||
textStyleId: string; | ||
fillStyleId: string; | ||
} | ||
@@ -22,0 +22,0 @@ interface TextProperties extends GeometryProps, TextNodeProps { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
467967
+ Addednanoid@3.1.31(transitive)
- Removednanoid@3.1.20(transitive)
Updatednanoid@3.1.31