@agent-scope/tokens 1.10.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -7683,6 +7683,13 @@ function exportTailwind(tokens, options) {
7683
7683
  module.exports = ${JSON.stringify(output, null, 2)};
7684
7684
  `;
7685
7685
  }
7686
+ function exportFlatJson(tokens, _options) {
7687
+ const result = {};
7688
+ for (const token of tokens) {
7689
+ result[token.path] = token.resolvedValue;
7690
+ }
7691
+ return JSON.stringify(result, null, 2);
7692
+ }
7686
7693
  function exportFigma(tokens, options) {
7687
7694
  const root = {};
7688
7695
  for (const token of tokens) {
@@ -7740,6 +7747,8 @@ function exportTokens(tokens, format, options = {}) {
7740
7747
  return exportScss(tokens, options);
7741
7748
  case "tailwind":
7742
7749
  return exportTailwind(tokens, options);
7750
+ case "flat-json":
7751
+ return exportFlatJson(tokens);
7743
7752
  case "figma":
7744
7753
  return exportFigma(tokens, options);
7745
7754
  default: {