Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-figma

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-figma - npm Package Compare versions

Comparing version 0.19.0 to 0.20.0

4

localStyles/useTextStyle.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc