Skip to content

Commit

Permalink
chore: allow component set as parent node in figma import, update dep…
Browse files Browse the repository at this point in the history
…endencies
  • Loading branch information
cyberalien committed Apr 4, 2024
1 parent 02060e8 commit ca305ec
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 123 deletions.
14 changes: 7 additions & 7 deletions @iconify/tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"description": "Collection of functions for cleaning up and parsing SVG for Iconify project",
"author": "Vjacheslav Trushkin",
"version": "4.0.2",
"version": "4.0.4",
"license": "MIT",
"bugs": "https://github.com/iconify/tools/issues",
"homepage": "https://github.com/iconify/tools",
Expand All @@ -27,29 +27,29 @@
"dependencies": {
"@iconify/types": "^2.0.0",
"@iconify/utils": "^2.1.22",
"@types/tar": "^6.1.11",
"axios": "^1.6.7",
"@types/tar": "^6.1.12",
"axios": "^1.6.8",
"cheerio": "1.0.0-rc.12",
"extract-zip": "^2.0.1",
"local-pkg": "^0.5.0",
"pathe": "^1.1.2",
"svgo": "^3.2.0",
"tar": "^6.2.0"
"tar": "^6.2.1"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.11.17",
"@types/node": "^20.12.4",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3",
"typescript": "^5.4.3",
"unbuild": "^2.0.0"
},
"exports": {
Expand Down
3 changes: 2 additions & 1 deletion @iconify/tools/src/import/figma/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ export function getFigmaIconNodes(
case 'CANVAS':
case 'FRAME':
case 'GROUP':
case 'SECTION': {
case 'SECTION':
case 'COMPONENT_SET': {
const parentItem: FigmaParentNodeData = {
...node,
type: parentNodeType,
Expand Down
3 changes: 2 additions & 1 deletion @iconify/tools/src/import/figma/types/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ export type FigmaImportParentNodeType =
| 'CANVAS'
| 'FRAME'
| 'GROUP'
| 'SECTION';
| 'SECTION'
| 'COMPONENT_SET';

// Node types that can be icons
export type FigmaImportIconNodeType = IconFigmaNode['type'];
Expand Down
Loading

0 comments on commit ca305ec

Please sign in to comment.