react-figma
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import * as React from 'react'; | ||
@@ -2,0 +3,0 @@ import { AutoLayoutProps, DefaultContainerProps, SelectionEventProps, StyleOf } from '../../types'; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import * as React from 'react'; | ||
@@ -2,0 +3,0 @@ import { DefaultShapeProps, CornerProps, StyleOf, InstanceItemProps, SelectionEventProps } from '../../types'; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const fillsPreprocessor: (props: any) => Promise<Paint[]>; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const isReactFigmaNode: (node: BaseNodeMixin) => string | void; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const safeGetPluginData: (key: string) => (node: BaseNodeMixin) => string | void; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare function searchFor(root: any, predicat: (node: BaseNodeMixin) => boolean, handler: (results: Array<BaseNodeMixin>) => any): void; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const useFontName: (fontName: FontName) => any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { BaseNodeProps } from '../types'; | ||
export declare const baseNodeMixin: (node: BaseNodeMixin) => (props: BaseNodeProps) => void; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { ExportProps } from '../types'; | ||
export declare const exportMixin: (node: ExportMixin) => (props: ExportProps) => void; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { LayoutProps } from '../types'; | ||
@@ -2,0 +3,0 @@ export declare const layoutMixin: (node: (LayoutMixin & DocumentNode) | (LayoutMixin & PageNode) | (LayoutMixin & SliceNode) | (LayoutMixin & FrameNode) | (LayoutMixin & GroupNode) | (LayoutMixin & ComponentNode) | (LayoutMixin & InstanceNode) | (LayoutMixin & BooleanOperationNode) | (LayoutMixin & VectorNode) | (LayoutMixin & StarNode) | (LayoutMixin & LineNode) | (LayoutMixin & EllipseNode) | (LayoutMixin & PolygonNode) | (LayoutMixin & RectangleNode) | (LayoutMixin & TextNode)) => (props: LayoutProps & { |
{ | ||
"name": "react-figma", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "Render React components to Figma", | ||
@@ -40,2 +40,3 @@ "scripts": { | ||
"devDependencies": { | ||
"@figma/plugin-typings": "^1.15.0", | ||
"@types/jest": "^24.0.18", | ||
@@ -42,0 +43,0 @@ "@types/node": "^12.7.8", |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { ComponentProps } from '../components/component/Component'; | ||
export declare const component: (node: ComponentNode) => (props: ComponentProps) => ComponentNode; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { EllipseProps } from '../components/ellipse/Ellipse'; | ||
export declare const ellipse: (node: EllipseNode) => (props: EllipseProps) => any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { FrameNodeProps } from '../components/frame/Frame'; | ||
export declare const frame: (node: FrameNode) => (props: FrameNodeProps) => any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { InstanceProps } from '../components/component/Instance'; | ||
export declare const instance: (node: InstanceNode) => (props: InstanceProps) => InstanceNode; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { LineProps } from '../components/line/Line'; | ||
export declare const line: (node: RectangleNode) => (props: LineProps) => any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { PageProps } from '../components/page/Page'; | ||
export declare const page: (node: PageNode) => (props: PageProps) => PageNode; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { RectangleProps } from '../components/rectangle/Rectangle'; | ||
export declare const rectangle: (node: RectangleNode) => (props: RectangleProps) => any; |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { StarProps } from '../components/star/Star'; | ||
export declare const star: (node: StarNode) => (props: StarProps) => any; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { TextProps } from '../components/text/Text'; | ||
@@ -2,0 +3,0 @@ export declare const text: (node: TextNode) => (props: TextProps & { |
@@ -0,2 +1,3 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { VectorProps } from '../components/vector/Vector'; | ||
export declare const vector: (node: VectorNode) => (props: VectorProps) => any; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import { Subject } from 'rxjs'; | ||
@@ -2,0 +3,0 @@ export declare const api: Readonly<{ |
@@ -0,3 +1,4 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const colorToRGB: (color: string) => RGB; | ||
export declare const colorToRGBA: (color: string, opacity?: number) => RGBA; | ||
export declare const colorToPaint: (color: string) => Paint; |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
export declare const transformShadowToEffect: (styles: { | ||
@@ -2,0 +3,0 @@ shadowOffset?: { |
@@ -14,6 +14,10 @@ { | ||
"skipLibCheck": true, | ||
"declaration": true | ||
"declaration": true, | ||
"typeRoots": [ | ||
"./node_modules/@types", | ||
"./node_modules/@figma" | ||
] | ||
}, | ||
"include": ["src/**/*", "figma.d.ts", "jsx-interfaces.d.ts", "images.d.ts"], | ||
"include": ["src/**/*", "jsx-interfaces.d.ts", "images.d.ts"], | ||
"exclude": ["node_modules", "**/__tests__/**"] | ||
} |
@@ -0,1 +1,2 @@ | ||
/// <reference types="plugin-typings" /> | ||
import * as React from 'react'; | ||
@@ -2,0 +3,0 @@ import { LayoutStyleProperties } from './styleTransformers/transformLayoutStyleProperties'; |
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
331498
28
272
4724