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.6.0 to 4.7.0-alpha.0

12

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

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

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

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

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

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

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

@@ -21,11 +21,11 @@ dirname: string;

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

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

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

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

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

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

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

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

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

} & (PaintStyle.StyleTypeFill | EffectStyle.StyleTypeEffect | TextStyle.StyleTypeText | GridStyle.StyleTypeGrid);
export type StyleOutputter = (styles: Style[]) => Promise<void>;
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>;
//# sourceMappingURL=index.d.ts.map
import * as Figma from 'figma-js';
/** Minimum necessary information for extracting a color */
export type ExtractableColor = {
export declare type ExtractableColor = {
color?: Figma.Color;

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

/** An RGBA color */
export type Color = {
export declare 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 type LinearColorStop = {
export declare type LinearColorStop = {
/** Color stop */

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

*/
export type LinearGradient = {
export declare 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 type FillStyleSolid = {
export declare type FillStyleSolid = {
type: 'SOLID';
color: Color;
};
export type FillStyleGradientLinear = {
export declare type FillStyleGradientLinear = {
type: 'GRADIENT_LINEAR';
} & LinearGradient;
export type FillStyle = {
export declare type FillStyle = {
visible: boolean;
value: string;
} & (FillStyleSolid | FillStyleGradientLinear);
export type StyleTypeFill = {
export declare type StyleTypeFill = {
styleType: 'FILL';

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

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

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 = {
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 = {
/** Font family of text (standard name) */

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

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

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

{
"name": "@figma-export/types",
"version": "4.6.0",
"version": "4.7.0-alpha.0",
"description": "Type definition for @figma-export",

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

},
"gitHead": "11dff46301480f142a0c65737c805440d80ca02c"
"gitHead": "78573fc33ee965ad7388f7b5404879b33409d7a7"
}

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