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

@invisionapp/studio-api

Package Overview
Dependencies
Maintainers
30
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@invisionapp/studio-api - npm Package Compare versions

Comparing version 3.5.1 to 3.5.2

25

index.d.ts
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",

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