v0.1.1
版本发布时间: 2024-04-24 23:23:04
figma/code-connect最新发布版本:v1.1.3(2024-09-11 20:53:19)
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 tofigma.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
andimportPath
under thereact
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.