@figma-export/core
Advanced tools
Comparing version 3.3.0 to 3.3.1
import * as Figma from 'figma-js'; | ||
import * as FigmaExport from '@figma-export/types'; | ||
declare type NodeWithChildren = FigmaExport.ComponentNode | Figma.Group | Figma.Frame | Figma.Instance | Figma.BooleanGroup; | ||
declare const getComponents: (children?: readonly NodeWithChildren[]) => FigmaExport.ComponentNode[]; | ||
declare const getComponents: (children?: readonly Figma.Node[]) => FigmaExport.ComponentNode[]; | ||
declare type GetPagesOptions = { | ||
@@ -6,0 +5,0 @@ only?: string | string[]; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (component.type === 'COMPONENT') { | ||
components.push(Object.assign(Object.assign({}, component), { figmaExport: { | ||
components.push(Object.assign(Object.assign({}, component), { svg: '', figmaExport: { | ||
dirname: path_1.dirname(component.name), | ||
@@ -50,6 +50,8 @@ basename: path_1.basename(component.name), | ||
} | ||
components = [ | ||
...components, | ||
...getComponents(component.children), | ||
]; | ||
if ('children' in component) { | ||
components = [ | ||
...components, | ||
...getComponents((component.children)), | ||
]; | ||
} | ||
}); | ||
@@ -56,0 +58,0 @@ return components; |
{ | ||
"name": "@figma-export/core", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "@figma-export core functionalities", | ||
@@ -26,5 +26,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@figma-export/types": "^3.3.0", | ||
"@figma-export/types": "^3.3.1", | ||
"axios": "~0.21.1", | ||
"figma-js": "~1.13.0", | ||
"figma-js": "~1.14.0", | ||
"p-limit": "^3.1.0" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "5796178b445cd651d0d252117e6e2ce3f9dbbb18" | ||
"gitHead": "5bb0277dea6b39f517734d3fe5538c4abde4e278" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
619
52074
- Removedaxios@0.19.2(transitive)
- Removedfigma-js@1.13.0(transitive)
- Removedfollow-redirects@1.5.10(transitive)
Updated@figma-export/types@^3.3.1
Updatedfigma-js@~1.14.0