Skip to content

Releases: figma/code-connect

Code Connect 1.3.4

27 Jun 10:41
Compare
Choose a tag to compare

Fixed

React

  • Support getProps inside nestedProps

Code Connect 1.3.3

27 May 09:23
Compare
Choose a tag to compare

Features

Compose

  • Enhanced --verbose command to output detailed stacktrace.

Fixed

General

  • Bumped Undici version to address security issue

Code Connect 1.3.2

04 Apr 16:59
Compare
Choose a tag to compare

Fixed

General

  • Added support for GitHub Enterprise source links (fixes #259)

React

  • Fixed incompatibility issue with React 19 (fixes #265)
  • Fixed issue with numeric characters in property names

HTML

  • Allow examples to return strings to support icon IDs (fixes #252)

Code Connect v1.3.1

14 Feb 14:56
Compare
Choose a tag to compare

Fixed

  • Allow .gradle files to be detected as Android/Compose projects. Thanks to @sebastienrouif for the PR
  • Remove prompts patching (fixes #241)

Features

  • Added interactiveSetupFigmaFileUrl to the interactive setup, allowing you to specify the Figma file to use for connecting components in your figma.config.json file.
  • Rename --include-raw-templates flag to --include-template-files. Further details of this feature can be found in the documentation.

SwiftUI

  • Updated swift-syntax to point to the new URL. Thanks to @pontusJPaf for the PR.

Code Connect 1.3.0

28 Jan 18:05
Compare
Choose a tag to compare

Features

  • Add support for JSX Figma connection files.
  • Added an option to automatically create or append the access token to the project's .env file
  • Add better handling of many figma components in the wizard (grouping per page)
  • Allow variant restrictions to use boolean-like properties

General

  • Added support for Bitbucket, Gitlab and Azure DevOps for generated source file URLs

Fixed

  • Don't show a red-cross when the file-matching prompt is finished in the wizard
  • Add default values for @FigmaEnum declarations in SwiftUI

SwiftUI

  • Fixed a formatting error when running the CLI

React

  • Fix nested objects and arrays in props not rendering properly in code snippets
  • Fixed a type issue when passing functions as values to figma.boolean
  • Add support for multiple exports per file in the wizard

Storybook

  • Add support for different props per example (fixes #143)
  • Add support for links and imports (fixes #142)

Code Connect 1.2.4

05 Dec 17:43
Compare
Choose a tag to compare

Fixed

  • (from 1.2.3) In the interactive setup, the automatic file linking now matches components exported from index files
  • Fix issue with CLI not working on some cases in 1.2.3

React

  • (from 1.2.3) Fix issue where React component references in props would serialize to strings when accessed with getProps()
  • (from 1.2.3) Fix issue with nesting figma.boolean and getProps

Code Connect 1.2.3

05 Dec 16:04
Compare
Choose a tag to compare

Features

Fixed

  • In the interactive setup, the automatic file linking now matches components exported from index files

React

  • Fix issue where React component references in props would serialize to strings when accessed with getProps()
  • Fix issue with nesting figma.boolean and getProps

Code Connect v1.2.2

05 Nov 22:09
Compare
Choose a tag to compare

Features

General

  • Added support to create Custom parsers. Those allow users to add support for languages which aren't natively supported by Code Connect. Check the documentation for more details.

Fixed

React

  • Only show AI question for React
  • Fix error in autolinking in reduce function

Code Connect 1.2.1

23 Oct 15:36
Compare
Choose a tag to compare

Fixed

React

  • Fixed a bug introduced in 1.2.0 where nestedProps referencing a hidden layer would result in an error rendering Code Connect

SwiftUI

  • Fixed potential "index is out of bounds" error.

Compose

  • Fixed some parsing errors when running the create and publish commands

General

  • Changed how the extension makes HTTP requests to resolve issues when connecting through a proxy. Please submit a support ticket if you continue to have connection issues after this update.

Code Connect v1.2.0

16 Oct 13:42
Compare
Choose a tag to compare

Features

General

  • The interactive setup now offers AI support for accurate prop mapping between Figma and code components. Users will now be given the option to use AI during the setup process, which if chosen will assist in creating Code Connect files and attempting to accurately map your code to Figma properties.

    Data is used only for mapping and is not stored or used for training. To learn more, visit https://help.figma.com/hc/en-us/articles/23920389749655-Code-Connect

React

  • Added support for returning strings or React components from the example function, in addition to JSX
  • Added getProps on figma.instance() which can be used to access props of a nested connected component
  • Added render on figma.instance() which can be used to render a nested connected component dynamically
  • Added support for including any custom props in the props object, that can be accessed with getProps in a parent component

Fixed

HTML

  • Case of attribute names is now preserved to support Angular (fixes #172)
  • Fixed a bug with nestedProps (fixes #176)