Skip to content

Code Connect 0.1.2

Latest
Compare
Choose a tag to compare
@ptomas-figma ptomas-figma released this 15 May 16:22

Fixed

  • SwiftUI: Fix validation for boolean variants.
  • React: Support for different types for each boolean value (Fixes #32).
  • React: Allow props to be used as object values (Fixes #40).
  • Storybook: Allow the Storybook meta default export to be a reference to another variable (Fixes #34).
  • Documentation: Update README files to fix typos.

Added

  • Storybook: Add source link to code snippets.
  • React: Add a signature to figma.connect that excludes the component argument. This allows supporting code snippets that don't use React components, but rather native tags.
  • React: Support numbers in enums.
  • SwiftUI: Implement figmaApply: a helper function that allows for selective showing & hiding of code based on whether a boolean mapping.
  • SwiftUI: Implement hideDefault: allows a user to specify properties in which the default values should be hidden. This can be seen as being used to represent a subset of what's provided by figmaApply.

Changed

  • React: Update the folder structure in preparation for some future changes.