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

@figma-export/types

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@figma-export/types - npm Package Compare versions

Comparing version 4.8.0 to 5.0.0

12

dist/commands.d.ts
import type * as Figma from 'figma-js';
import { StringTransformer, ComponentOutputter, PageNode, ComponentFilter } from './global';
import { StyleOutputter, Style } from './styles';
export declare type BaseCommandOptions = {
export type BaseCommandOptions = {
/**

@@ -12,3 +12,3 @@ * Personal access token.

};
export declare type ComponentsCommandOptions = {
export type ComponentsCommandOptions = {
/**

@@ -44,3 +44,3 @@ * File to export Components from.

};
export declare type StylesCommandOptions = {
export type StylesCommandOptions = {
/**

@@ -66,7 +66,7 @@ * File to export Styles from.

};
export declare type FigmaExportRC = {
export type FigmaExportRC = {
commands: (['styles', StylesCommandOptions] | ['components', ComponentsCommandOptions])[];
};
export declare type ComponentsCommand = (options: BaseCommandOptions & ComponentsCommandOptions) => Promise<PageNode[]>;
export declare type StylesCommand = (options: BaseCommandOptions & StylesCommandOptions) => Promise<Style[]>;
export type ComponentsCommand = (options: BaseCommandOptions & ComponentsCommandOptions) => Promise<PageNode[]>;
export type StylesCommand = (options: BaseCommandOptions & StylesCommandOptions) => Promise<Style[]>;
//# sourceMappingURL=commands.d.ts.map
import * as Figma from 'figma-js';
declare type NodeWithChildren = Extract<Figma.Node, {
type NodeWithChildren = Extract<Figma.Node, {
children: ReadonlyArray<Figma.Node>;
}>;
export declare type ComponentExtras = {
export type ComponentExtras = {
id: string;

@@ -14,3 +14,3 @@ dirname: string;

};
export declare type ComponentNode = (Figma.Component | Figma.Instance) & {
export type ComponentNode = (Figma.Component | Figma.Instance) & {
figmaExport: ComponentExtras;

@@ -22,11 +22,11 @@ svg: string;

}
export declare type StringTransformer = (str: string) => Promise<string | undefined>;
export declare type ComponentOutputter = (pages: PageNode[]) => Promise<void>;
export declare type ComponentOutputterParamOption = {
export type StringTransformer = (str: string) => Promise<string | undefined>;
export type ComponentOutputter = (pages: PageNode[]) => Promise<void>;
export type ComponentOutputterParamOption = {
componentName: string;
pageName: string;
} & ComponentExtras;
export declare type StyleNode = Figma.Style & Figma.Node;
export declare type ComponentFilter = (component: Figma.Component | Figma.Instance) => boolean;
export type StyleNode = Figma.Style & Figma.Node;
export type ComponentFilter = (component: Figma.Component | Figma.Instance) => boolean;
export {};
//# sourceMappingURL=global.d.ts.map
import * as Figma from 'figma-js';
import { Color } from './PaintStyle';
export declare type EffectStyleShadow = {
export type EffectStyleShadow = {
type: 'DROP_SHADOW' | 'INNER_SHADOW';

@@ -11,11 +11,11 @@ color: Color;

};
export declare type EffectStyleLayerBlur = {
export type EffectStyleLayerBlur = {
type: 'LAYER_BLUR';
blurRadius: number;
};
export declare type EffectStyle = {
export type EffectStyle = {
visible: boolean;
value: string;
} & (EffectStyleShadow | EffectStyleLayerBlur);
export declare type StyleTypeEffect = {
export type StyleTypeEffect = {
styleType: 'EFFECT';

@@ -22,0 +22,0 @@ effects: EffectStyle[];

@@ -1,4 +0,4 @@

export declare type StyleTypeGrid = {
export type StyleTypeGrid = {
styleType: 'GRID';
};
//# sourceMappingURL=GridStyle.d.ts.map

@@ -10,3 +10,3 @@ import { StyleNode } from '../global';

export * from './GridStyle';
export declare type Style = {
export type Style = {
name: string;

@@ -17,4 +17,4 @@ comment: string;

} & (PaintStyle.StyleTypeFill | EffectStyle.StyleTypeEffect | TextStyle.StyleTypeText | GridStyle.StyleTypeGrid);
export declare type GetVariableName = (style: Style, descriptor?: 'font-family' | 'font-size' | 'font-style' | 'font-variant' | 'font-weight' | 'letter-spacing' | 'line-height' | 'text-align' | 'text-decoration' | 'text-transform' | 'vertical-align') => string;
export declare type StyleOutputter = (styles: Style[]) => Promise<void>;
export type GetVariableName = (style: Style, descriptor?: 'font-family' | 'font-size' | 'font-style' | 'font-variant' | 'font-weight' | 'letter-spacing' | 'line-height' | 'text-align' | 'text-decoration' | 'text-transform' | 'vertical-align') => string;
export type StyleOutputter = (styles: Style[]) => Promise<void>;
//# sourceMappingURL=index.d.ts.map
import * as Figma from 'figma-js';
/** Minimum necessary information for extracting a color */
export declare type ExtractableColor = {
export type ExtractableColor = {
color?: Figma.Color;

@@ -8,3 +8,3 @@ opacity?: number;

/** An RGBA color */
export declare type Color = {
export type Color = {
/** Red channel value, between 0 and 255 */

@@ -22,3 +22,3 @@ readonly r: number;

/** A color-stop's <color> value, followed by a stop position */
export declare type LinearColorStop = {
export type LinearColorStop = {
/** Color stop */

@@ -35,3 +35,3 @@ color: Color;

*/
export declare type LinearGradient = {
export type LinearGradient = {
/** The gradient line's angle of direction. A value of 0deg is equivalent to to top; increasing values rotate clockwise from there */

@@ -42,14 +42,14 @@ angle: string;

};
export declare type FillStyleSolid = {
export type FillStyleSolid = {
type: 'SOLID';
color: Color;
};
export declare type FillStyleGradientLinear = {
export type FillStyleGradientLinear = {
type: 'GRADIENT_LINEAR';
} & LinearGradient;
export declare type FillStyle = {
export type FillStyle = {
visible: boolean;
value: string;
} & (FillStyleSolid | FillStyleGradientLinear);
export declare type StyleTypeFill = {
export type StyleTypeFill = {
styleType: 'FILL';

@@ -56,0 +56,0 @@ fills: FillStyle[];

@@ -1,8 +0,8 @@

export declare type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
export declare type TextDecoration = 'none' | 'line-through' | 'underline';
export declare type FontVariant = 'normal' | 'small-caps' | 'all-small-caps';
export declare type FontStyle = 'normal' | 'italic';
export declare type TextAlign = 'left' | 'right' | 'center' | 'justify';
export declare type VerticalAlign = 'top' | 'middle' | 'bottom';
export declare type TextStyle = {
export type TextTransform = 'none' | 'uppercase' | 'lowercase' | 'capitalize';
export type TextDecoration = 'none' | 'line-through' | 'underline';
export type FontVariant = 'normal' | 'small-caps' | 'all-small-caps';
export type FontStyle = 'normal' | 'italic';
export type TextAlign = 'left' | 'right' | 'center' | 'justify';
export type VerticalAlign = 'top' | 'middle' | 'bottom';
export type TextStyle = {
/** Font family of text (standard name) */

@@ -38,3 +38,3 @@ fontFamily: string;

};
export declare type StyleTypeText = {
export type StyleTypeText = {
styleType: 'TEXT';

@@ -41,0 +41,0 @@ style: TextStyle;

{
"name": "@figma-export/types",
"version": "4.8.0",
"version": "5.0.0",
"description": "Type definition for @figma-export",

@@ -27,3 +27,3 @@ "main": "dist/index.js",

"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
"node": ">= 16.14"
},

@@ -36,3 +36,3 @@ "dependencies": {

},
"gitHead": "a35d7d156bd0816312d6dba39d33ec3d42b14777"
"gitHead": "710491acee80e899e280680fb12a412da5283af4"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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