react-figma 0.29.0 → 0.31.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
@@ -113,6 +113,7 @@ export const App = () => {
113
113
  + [Basic + HMR](examples/basic-hmr)
114
114
  * [Design system](examples/design-system)
115
115
  * [Interactive](examples/interactive)
116
+ * [UI](examples/ui) - Interact with a Plugin UI
116
117
  * [Data fetching](examples/fetching)
117
118
  * [💅 styled-components](examples/styled-components)
118
119
  * [PrimerDemo](https://github.com/react-figma/PrimerDemo) - Example of multiplatform UI-kit
@@ -203,6 +204,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
203
204
  <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
205
  <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
206
  <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>
207
+ <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
208
  </tr>
207
209
  </tbody>
208
210
  </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.31.0",
4
4
  "description": "Render React components to Figma",
5
5
  "scripts": {
6
6
  "tsc": "tsc -p tsconfig.json --noEmit",
@@ -34,10 +34,10 @@
34
34
  "figma-plugins"
35
35
  ],
36
36
  "engines": {
37
- "node": ">=10.0.0 <17.0.0"
37
+ "node": ">=10.0.0 <22.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;