Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tokens-studio/sd-transforms

Package Overview
Dependencies
Maintainers
5
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokens-studio/sd-transforms - npm Package Versions

23
9

1.2.8

Diff

jorenbroekema
published 1.2.7 •

Changelog

Source

1.2.7

Patch Changes

  • fb3c7d3: Export TransformOption type to be publicly available (#319)
  • 26cf7f9: -Made the font weight case insensitive; Extra checks for style and weight values, confusions cleared up in the code; Font style and value are not both mandatory, it is fine if only one is specified; If font style is not provided, the style field will take the weight value; The bug from issue #267 is fixed.
jorenbroekema
published 1.2.6 •

Changelog

Source

1.2.6

Patch Changes

  • b4461f4: Ensure that shadow value is still of type object (either Object or Array) before attempting to resolve math for each property/item.
jorenbroekema
published 1.2.5 •

Changelog

Source

1.2.5

Patch Changes

  • 61af02f: Check for color transforms that the value is of type string, since other color object types could occur from previously ran transforms.
jorenbroekema
published 1.2.4 •

Changelog

Source

1.2.4

Patch Changes

  • b9aee1e: Fix lineHeight transform to keep numbers as numbers, and not stringify them.
jorenbroekema
published 1.2.3 •

Changelog

Source

1.2.3

Patch Changes

  • 1085fe8: Improve math compute utility to better deal with mixed units computations. Expand on tests.
jorenbroekema
published 1.2.2 •

Changelog

Source

1.2.2

Patch Changes

  • 0dea2af: fix: evaluate math expressions with units
  • 4fe336f: Override lineHeight expandTypesMap from SD. Add letterSpacing override. This is needed for our lineHeight and letterSpacing transforms to apply.
jorenbroekema
published 1.2.1 •

Changelog

Source

1.2.1

Patch Changes

  • c6c9223: Add composition to expandTypesMap.
  • 19f4530: Fix alwaysAddFontStyle option to not apply to tokens of type fontWeight(s), only meant for typography tokens.
  • 32c2d13: textCase and textDecoration types should be kept, instead of changing to "other". This should help with transforms targeting those tokens, whereas "other" is not a useful type conversion whatsoever.
  • 3a044ed: Remove the boxShadow expandTypesMap, this is no longer needed since SD 4.0.1 as it runs user defined preprocessors before expanding tokens.
jorenbroekema
published 1.2.0 •

Changelog

Source

1.2.0

Minor Changes

  • ff31df8: Add lineHeight and fontWeight types to the expandTypesMap. Even though DTCG spec does not yet recognize them, they really are special types and marking them as such enables transforms to target them specifically.
  • ff31df8: Properly split fontWeight tokens that contain fontStyle into the parent group. For typography tokens this was correct but for fontWeight tokens, collision could occur between the token and its sibling tokens.
jorenbroekema
published 1.1.0 •

Changelog

Source

1.1.0

Minor Changes

  • c687817: Add the originalType property to $extensions.['studio.tokens'] to store the original Tokens Studio token type, when the type is aligned to DTCG types. LetterSpacing transform is the transform in this package that actually needs to use this, because it doesn't want to match all dimension tokens, but it does want to match letterSpacing tokens.
  • ed10715: Allow changing the resolve math transform amount of decimals to round for using platform options mathFractionDigits, change default value from 3 to 4.

Patch Changes

  • c687817: Fix alignTypes to also include borderWidth, letterSpacing, paragraphSpacing and paragraphIndent and align them to dimension.
  • 9c02741: Fix bug where usesDtcg flag was not passed to resolveReference utility.
23
9
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc