Skip to content

Code Connect 0.1.1

Compare
Choose a tag to compare
@ptomas-figma ptomas-figma released this 24 Apr 15:23
· 2 commits to main since this release

Fixed

  • SwiftUI: Fixed issue with boolean prop rendering.
  • React: Added React import statements in files generated with figma create. Thanks @chsmc-stripe!

Added

  • React: Added an option to override the imports by passing an imports key in the object argument to figma.connect. This just takes an array of strings, and is intended as an escape hatch for cases where we can’t determine the imports properly yet.
  • React: Added support for “partial” props spreading in the example, like example: ({ variant, ...props }) => <Button variant={variant} {...props} />.
  • SwiftUI: Added new dry-run command to CLI.

Changed

  • React: Moved path and importPath under the react key in the config file.
  • SwiftUI: CLI now use --token instead of --access-token for the authentication token flag.
  • SwiftUI: Updated config file format.
  • Documentation: Updated README files to fix incorrect information and improving readability.
  • Renamed some internal functions for consistency.