@invisionapp/studio-api
Advanced tools
Comparing version 3.5.1 to 3.5.2
import { ReadStream } from 'fs'; | ||
import { RequestInit, Response } from 'node-fetch'; | ||
import { ComponentClass, React, ReactNode } from 'react'; | ||
@@ -822,6 +823,7 @@ export interface UdfColor { | ||
} | ||
export declare type UdfProxiedNode<NodeType = UdfBaseObject> = UdfNodeMethods<NodeType> & { | ||
export declare type UdfProxiedNode<NodeType = UdfPage | UdfPageChild> = UdfNodeMethods<NodeType> & { | ||
[K in keyof NodeType]: Required<NodeType>[K] extends any[] ? UdfProxiedNode<Required<NodeType>[K][0]>[] : NodeType[K]; | ||
}; | ||
export declare type UdfProxiedProject = UdfProxiedNode<UdfProject>; | ||
export declare type UdfProxiedPage = UdfProxiedNode<UdfPage>; | ||
export declare type UdfNodeMethods<NodeType = UdfBaseObject> = { | ||
@@ -840,7 +842,8 @@ append(child: any): NodeType; | ||
export declare type CreateNodeReturnType<T = CreateNodeTypes> = T extends 'page' ? UdfPage : T extends 'artboard' ? UdfArtboard : T extends 'rectangle' ? UdfRectangle : T extends 'oval' ? UdfOval : T extends 'path' ? UdfPath : T extends 'group' ? UdfGroup : T extends 'combined-shape' ? UdfCombinedShape : T extends 'text' ? UdfText : never; | ||
export declare type UdfSelection = UdfProxiedNode<UdfPageChild | UdfComponentState | UdfComponentDefinition>[]; | ||
export interface IUDFServiceFacade { | ||
createNode<T extends string = CreateNodeTypes>(type: T): CreateNodeReturnType<T>; | ||
getCurrentPage(): UdfProxiedNode<UdfPage> | null; | ||
getCurrentPage(): UdfProxiedPage | null; | ||
getEntireDocument(): UdfProxiedProject; | ||
getSelectedObjects(): UdfProxiedNode[]; | ||
getSelectedObjects(): UdfSelection; | ||
getById(id: string): UdfProxiedNode | null; | ||
@@ -901,9 +904,2 @@ importSvg(data: string | Buffer): Promise<void>; | ||
export declare type ToastAction = [string, Function, boolean?]; | ||
export interface IPluginManagerAPIFacade { | ||
reload(): Promise<void>; | ||
list(): Promise<Record<string, any>[]>; | ||
uninstall(name: string, teamId?: string): Promise<void>; | ||
installFromCache(cacheKey: string): Promise<PluginManifest | null>; | ||
loadInstalledPlugin(manifest: PluginManifest): Promise<void>; | ||
} | ||
export declare type WebViewMsg = any; | ||
@@ -919,2 +915,9 @@ export interface IWebViewOptions { | ||
} | ||
export interface IPluginManagerAPIFacade { | ||
reload(): Promise<void>; | ||
list(): Promise<Record<string, any>[]>; | ||
uninstall(name: string, teamId?: string): Promise<void>; | ||
installFromCache(cacheKey: string): Promise<PluginManifest | null>; | ||
loadInstalledPlugin(manifest: PluginManifest): Promise<void>; | ||
} | ||
export interface IComponents { | ||
@@ -1211,2 +1214,3 @@ readonly Box: React.ComponentClass<any>; | ||
export interface IColorPickerServiceAPIFacade { | ||
openColorPicker(args: IOpenColorPickerArgs): Promise<RemoveEventListener>; | ||
} | ||
@@ -1216,3 +1220,2 @@ export interface IColorPickerServiceAPIProposedFacade extends IColorPickerServiceAPIFacade { | ||
export interface IColorPickerServiceAPIInternalFacade extends IColorPickerServiceAPIProposedFacade { | ||
openColorPicker(args: IOpenColorPickerArgs): Promise<RemoveEventListener>; | ||
} | ||
@@ -1219,0 +1222,0 @@ export declare type ColorPickerServiceAPIFacade = IColorPickerServiceAPIFacade | IColorPickerServiceAPIProposedFacade | IColorPickerServiceAPIInternalFacade; |
{ | ||
"name": "@invisionapp/studio-api", | ||
"version": "3.5.1", | ||
"version": "3.5.2", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
62013
1763