react-figma 0.29.0 → 0.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -229,6 +229,15 @@
229
229
  "contributions": [
230
230
  "code"
231
231
  ]
232
+ },
233
+ {
234
+ "login": "carlostpg",
235
+ "name": "Carlos",
236
+ "avatar_url": "https://avatars.githubusercontent.com/u/124635572?v=4",
237
+ "profile": "https://github.com/carlostpg",
238
+ "contributions": [
239
+ "doc"
240
+ ]
232
241
  }
233
242
  ],
234
243
  "contributorsPerLine": 7,
package/README.md CHANGED
@@ -203,6 +203,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
203
203
  <td align="center" valign="top" width="14.28%"><a href="https://jv-la.com"><img src="https://avatars.githubusercontent.com/u/1788455?v=4?s=100" width="100px;" alt="Jack Oliver"/><br /><sub><b>Jack Oliver</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=jackoliver" title="Documentation">📖</a></td>
204
204
  <td align="center" valign="top" width="14.28%"><a href="http://marc-abramowitz.com"><img src="https://avatars.githubusercontent.com/u/305268?v=4?s=100" width="100px;" alt="Marc Abramowitz"/><br /><sub><b>Marc Abramowitz</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=msabramo" title="Documentation">📖</a></td>
205
205
  <td align="center" valign="top" width="14.28%"><a href="https://github.com/fishtriangle"><img src="https://avatars.githubusercontent.com/u/66234622?v=4?s=100" width="100px;" alt="fishtriangle"/><br /><sub><b>fishtriangle</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=fishtriangle" title="Code">💻</a></td>
206
+ <td align="center" valign="top" width="14.28%"><a href="https://github.com/carlostpg"><img src="https://avatars.githubusercontent.com/u/124635572?v=4?s=100" width="100px;" alt="Carlos"/><br /><sub><b>Carlos</b></sub></a><br /><a href="https://github.com/react-figma/react-figma/commits?author=carlostpg" title="Documentation">📖</a></td>
206
207
  </tr>
207
208
  </tbody>
208
209
  </table>
@@ -1,5 +1,5 @@
1
1
  /// <reference types="plugin-typings" />
2
2
  import { LayoutProps } from '../types';
3
- export declare const layoutMixin: (node: (LayoutMixin & DocumentNode) | (LayoutMixin & PageNode) | (LayoutMixin & SliceNode) | (LayoutMixin & FrameNode) | (LayoutMixin & GroupNode) | (LayoutMixin & ComponentSetNode) | (LayoutMixin & ComponentNode) | (LayoutMixin & InstanceNode) | (LayoutMixin & BooleanOperationNode) | (LayoutMixin & VectorNode) | (LayoutMixin & StarNode) | (LayoutMixin & LineNode) | (LayoutMixin & EllipseNode) | (LayoutMixin & PolygonNode) | (LayoutMixin & RectangleNode) | (LayoutMixin & TextNode)) => (props: LayoutProps & {
3
+ export declare const layoutMixin: (node: (LayoutMixin & DocumentNode) | (LayoutMixin & PageNode) | (LayoutMixin & SliceNode) | (LayoutMixin & FrameNode) | (LayoutMixin & GroupNode) | (LayoutMixin & ComponentSetNode) | (LayoutMixin & ComponentNode) | (LayoutMixin & InstanceNode) | (LayoutMixin & BooleanOperationNode) | (LayoutMixin & VectorNode) | (LayoutMixin & StarNode) | (LayoutMixin & LineNode) | (LayoutMixin & EllipseNode) | (LayoutMixin & PolygonNode) | (LayoutMixin & RectangleNode) | (LayoutMixin & TextNode) | (LayoutMixin & StickyNode) | (LayoutMixin & ConnectorNode) | (LayoutMixin & ShapeWithTextNode) | (LayoutMixin & CodeBlockNode) | (LayoutMixin & StampNode) | (LayoutMixin & WidgetNode) | (LayoutMixin & EmbedNode) | (LayoutMixin & LinkUnfurlNode) | (LayoutMixin & MediaNode) | (LayoutMixin & SectionNode) | (LayoutMixin & HighlightNode) | (LayoutMixin & WashiTapeNode) | (LayoutMixin & TableNode)) => (props: LayoutProps & {
4
4
  preventResizing?: boolean;
5
5
  }) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-figma",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Render React components to Figma",
5
5
  "scripts": {
6
6
  "tsc": "tsc -p tsconfig.json --noEmit",
@@ -37,7 +37,7 @@
37
37
  "node": ">=10.0.0 <17.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@figma/plugin-typings": "1.24",
40
+ "@figma/plugin-typings": "1.64.0",
41
41
  "@types/jest": "^24.0.18",
42
42
  "@types/node": "^12.7.8",
43
43
  "@types/react": "^16.9.4",
@@ -1,3 +1,3 @@
1
1
  /// <reference types="plugin-typings" />
2
2
  import { BlendStyleProperties } from './transformBlendProperties';
3
- export declare const transformShadowToEffect: (styles: Partial<BlendStyleProperties>) => ShadowEffect[];
3
+ export declare const transformShadowToEffect: (styles: Partial<BlendStyleProperties>) => Effect[];
package/types.d.ts CHANGED
@@ -37,7 +37,7 @@ export interface ChildrenProps {
37
37
  export interface GeometryProps {
38
38
  fills?: ReadonlyArray<Paint> | symbol;
39
39
  strokes?: ReadonlyArray<Paint>;
40
- strokeWeight?: number;
40
+ strokeWeight?: number | PluginAPI['mixed'];
41
41
  strokeAlign?: 'CENTER' | 'INSIDE' | 'OUTSIDE';
42
42
  strokeCap?: StrokeCap | symbol;
43
43
  strokeJoin?: StrokeJoin | symbol;