Conversation
This adds the Figma scope for an array of tokens by it's type
🦋 Changeset detectedLatest commit: 13ce480 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
| } | ||
|
|
||
| // Reuse the same scopes mapping as the single token version | ||
| getScopesByType = token => { |
There was a problem hiding this comment.
if it's reusing this large switch, would it not make sense to put it in a separate function?
User description
This adds the Figma scope for an array of tokens by it's type
PR Type
Description
Added a new node for array token scoping.
Integrated Figma scope mapping by token type.
Included tests covering various token scenarios.
Updated changeset for release.
Changes walkthrough 📝
index.ts
Integrate token array node in main index.packages/nodes-figma/src/nodes/index.ts
scopeTokenArrayByType.ts
Add new token array by type node implementation.packages/nodes-figma/src/nodes/scopeTokenArrayByType.ts
scopeTokenArrayByType.test.ts
Add tests for new token array node.packages/nodes-figma/tests/scopeTokenArrayByType.test.ts
tidy-kids-raise.md
Update changeset for token array node..changeset/tidy-kids-raise.md