Socket
Socket
Sign inDemoInstall

@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.5.0 to 4.6.0

12

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

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

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

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

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

@@ -53,7 +53,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';
export declare type ComponentExtras = {
type NodeWithChildren = Extract<Figma.Node, {
children: ReadonlyArray<Figma.Node>;
}>;
export type ComponentExtras = {
id: string;
dirname: string;
basename: string;
pathToComponent: {
name: string;
type: NodeWithChildren['type'];
}[];
};

@@ -14,10 +21,11 @@ export interface ComponentNode extends Figma.Component {

}
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) => boolean;
export type StyleNode = Figma.Style & Figma.Node;
export type ComponentFilter = (component: Figma.Component) => 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,3 +17,3 @@ comment: string;

} & (PaintStyle.StyleTypeFill | EffectStyle.StyleTypeEffect | TextStyle.StyleTypeText | GridStyle.StyleTypeGrid);
export declare type StyleOutputter = (styles: Style[]) => Promise<void>;
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) */

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

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

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

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

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

},
"gitHead": "a5cf8242a285a9ed1f62c97c72ee8fe00beeeb6b"
"gitHead": "11dff46301480f142a0c65737c805440d80ca02c"
}

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