@invisionapp/studio-api
Advanced tools
Comparing version 3.4.3 to 3.4.4
108
index.d.ts
@@ -1,6 +0,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="node-fetch" /> | ||
/// <reference types="react" /> | ||
import { ReadStream } from 'fs'; | ||
import { RequestInit, Response } from 'node-fetch'; | ||
@@ -892,2 +889,7 @@ export interface UdfColor { | ||
} | ||
export interface ILoggerAPIProposedFacade extends ILoggerAPIFacade { | ||
} | ||
export interface ILoggerAPIInternalFacade extends ILoggerAPIProposedFacade { | ||
} | ||
export declare type LoggerAPIFacade = ILoggerAPIFacade | ILoggerAPIProposedFacade | ILoggerAPIInternalFacade; | ||
export interface IPluginCacheAPIFacade { | ||
@@ -959,2 +961,7 @@ getCacheData(key: string): Promise<any>; | ||
} | ||
export interface IPluginRendererAPIProposedFacade { | ||
} | ||
export interface IPluginRendererAPIInternalFacade { | ||
} | ||
export declare type PluginRendererAPIFacade = IPluginRendererAPIFacade & IPluginRendererAPIProposedFacade & IPluginRendererAPIInternalFacade; | ||
export interface ISettingsAPIFacade { | ||
@@ -964,2 +971,7 @@ getSettingsData(key: string, plugin?: string): Promise<any>; | ||
} | ||
export interface ISettingsAPIProposedFacade extends ISettingsAPIFacade { | ||
} | ||
export interface ISettingsAPIInternalFacade extends ISettingsAPIProposedFacade { | ||
} | ||
export declare type SettingsAPIFacade = ISettingsAPIFacade | ISettingsAPIProposedFacade | ISettingsAPIInternalFacade; | ||
export interface IAnalyticsService { | ||
@@ -969,5 +981,4 @@ track(event: string, payload: any): Promise<void>; | ||
export declare const IAnalyticsService: unique symbol; | ||
export interface IAnalyticsAPI extends IAnalyticsService, IAPIExtension { | ||
export interface IAnalyticsAPIFacade extends IAnalyticsService { | ||
} | ||
export declare const IAnalyticsAPI: unique symbol; | ||
export declare type ThemeColor = 'white' | 'black' | 'lightInvert' | 'darkInvert' | 'surfaceBase' | 'surfaceMid' | 'surfaceTop' | 'elementDeeper' | 'elementBase' | 'elementMid' | 'elementTop' | 'textDeeper' | 'textBase' | 'textTop' | 'iconDeeper' | 'iconBase' | 'iconTop' | 'highlightDeeper' | 'highlightBase' | 'highlightTop' | 'errorDeeper' | 'errorBase' | 'errorTop' | 'link' | 'linkHovered' | 'highlightDisabled'; | ||
@@ -981,2 +992,7 @@ export declare type ThemeColors = { | ||
} | ||
export interface IThemeServiceAPIProposedFacade extends IThemeServiceAPIFacade { | ||
} | ||
export interface IThemeServiceAPIInternalFacade extends IThemeServiceAPIProposedFacade { | ||
} | ||
export declare type ThemeServiceAPIFacade = IThemeServiceAPIFacade | IThemeServiceAPIProposedFacade | IThemeServiceAPIInternalFacade; | ||
export interface IAppDockOpenAPIFacade { | ||
@@ -994,3 +1010,2 @@ notify(name: string): Promise<void>; | ||
export declare type GetResourceResponse = ImageResource | void; | ||
export declare const IResourceServiceAPI: unique symbol; | ||
export interface IResourceServiceFacade { | ||
@@ -1000,4 +1015,2 @@ createResource(type: string, data: string | Buffer): Promise<UdfImageResource | void>; | ||
} | ||
export interface IResourceServiceAPI extends IAPIExtension, IResourceServiceFacade { | ||
} | ||
export declare type IViewportPoint = { | ||
@@ -1007,2 +1020,6 @@ x: number; | ||
}; | ||
export declare type IViewportDimensions = { | ||
width: number; | ||
height: number; | ||
}; | ||
export interface IViewportServiceAPIFacade { | ||
@@ -1016,2 +1033,9 @@ getViewportCenterCoordinate(): Promise<IViewportPoint>; | ||
} | ||
export interface IViewportServiceAPIProposedFacade extends IViewportServiceAPIFacade { | ||
} | ||
export interface IViewportServiceAPIInternalFacade extends IViewportServiceAPIProposedFacade { | ||
getRenderedLayerDimensions(id: string): Promise<IViewportDimensions>; | ||
getRenderedLayerContainerId(id: string): Promise<string>; | ||
} | ||
export declare type ViewportServiceAPIFacade = IViewportServiceAPIFacade | IViewportServiceAPIProposedFacade | IViewportServiceAPIInternalFacade; | ||
export declare namespace FontManager { | ||
@@ -1132,4 +1156,16 @@ function getAvailableFonts(cb: (fonts: Array<FontDescriptor>) => void): void; | ||
} | ||
export declare const IColorService: unique symbol; | ||
export declare type ISwatchType = 'global' | 'document'; | ||
export interface IColorService { | ||
getColors(swatchType?: ISwatchType): Promise<UdfColor[]>; | ||
addColor(color: UdfColor, swatchType?: ISwatchType): Promise<UdfColor[]>; | ||
removeColor(color: UdfColor, swatchType?: ISwatchType): Promise<UdfColor[]>; | ||
} | ||
export interface IColorServiceAPIFacade { | ||
} | ||
export interface IColorServiceAPIProposedFacade extends IColorServiceAPIFacade { | ||
} | ||
export interface IColorServiceAPIInternalFacade extends IColorServiceAPIProposedFacade, IColorService { | ||
} | ||
export declare type ColorServiceAPIFacade = IColorServiceAPIFacade | IColorServiceAPIProposedFacade | IColorServiceAPIInternalFacade; | ||
export interface IWebViewAPIFacade { | ||
@@ -1147,13 +1183,8 @@ } | ||
} | ||
export interface IAPIExtension { | ||
getAccessibleMethods(options?: GetAPIOptions): any; | ||
export interface IPresentationServiceAPIProposedFacade extends IPresentationServiceAPIFacade { | ||
} | ||
export declare type APIAccessLevel = undefined | 'proposed' | 'internal'; | ||
export interface GetAPIOptions { | ||
manifest: PluginManifest; | ||
name: string; | ||
pluginPath: string; | ||
level?: APIAccessLevel; | ||
[other: string]: any; | ||
export interface IPresentationServiceAPIInternalFacade extends IPresentationServiceAPIProposedFacade { | ||
getSelectedPresentationID(): Promise<string>; | ||
} | ||
export declare type PresentationServiceAPIFacade = IPresentationServiceAPIFacade | IPresentationServiceAPIProposedFacade | IPresentationServiceAPIInternalFacade; | ||
export declare type IFetchResponse = Response; | ||
@@ -1174,5 +1205,3 @@ export interface IFetchOptions extends RequestInit { | ||
} | ||
export declare const IUserServiceAPI: unique symbol; | ||
export interface IUserServiceAPI extends IAPIExtension, IUserServiceAPIInternalFacade { | ||
} | ||
export declare type UserServiceAPIFacade = IUserServiceAPIFacade | IUserServiceAPIProposedFacade | IUserServiceAPIInternalFacade; | ||
export interface IEnvironmentAPIFacade { | ||
@@ -1183,21 +1212,31 @@ readonly customProtocolUrl: string; | ||
} | ||
export declare type IOpenColorPickerArgs = { | ||
initialColor: UdfColor; | ||
enableAlpha: boolean; | ||
onChange(color: UdfColor): void; | ||
onClose?(color: UdfColor): void; | ||
}; | ||
export interface IColorPickerServiceAPIFacade { | ||
} | ||
export interface IGeneratorEnforcer { | ||
export interface IColorPickerServiceAPIProposedFacade extends IColorPickerServiceAPIFacade { | ||
} | ||
export interface IColorPickerServiceAPIInternalFacade extends IColorPickerServiceAPIProposedFacade { | ||
openColorPicker(args: IOpenColorPickerArgs): Promise<RemoveEventListener>; | ||
} | ||
export declare type ColorPickerServiceAPIFacade = IColorPickerServiceAPIFacade | IColorPickerServiceAPIProposedFacade | IColorPickerServiceAPIInternalFacade; | ||
export declare namespace API { | ||
type Analytics = IAnalyticsAPI; | ||
type Auth = IAuthEvents & IUserServiceAPI; | ||
type Analytics = IAnalyticsAPIFacade; | ||
type Auth = IAuthEvents & UserServiceAPIFacade; | ||
type Core = IFetchAPIFacade & IPluginCacheAPIFacade & ICoreEvents; | ||
type Document = IUDFServiceFacade & IDeprecatedUDFEvents & IDocumentEvents; | ||
type Environment = IEnvironmentAPIFacade & IGeneratorEnforcer; | ||
type Files = IFileSystemAPIFacade & IGeneratorEnforcer; | ||
type Logger = ILoggerAPIFacade & IGeneratorEnforcer; | ||
type Plugins = IPluginManagerAPIFacade & IGeneratorEnforcer; | ||
type Renderer = IGenerateImagesFacade & IGeneratorEnforcer; | ||
type Settings = ISettingsAPIFacade & IGeneratorEnforcer; | ||
type Resources = IColorServiceAPIFacade & IFontServiceAPIFacade & IResourceServiceAPI & IGeneratorEnforcer; | ||
type UI = IPluginRendererAPIFacade & IViewportServiceAPIFacade & IColorPickerServiceAPIFacade & IThemeServiceAPIFacade & IUIEvents & IGeneratorEnforcer & IAppDockOpenAPIFacade; | ||
type WebView = WebViewAPIFacade & IGeneratorEnforcer; | ||
type Presentation = IPresentationServiceAPIFacade & IGeneratorEnforcer; | ||
type Environment = IEnvironmentAPIFacade; | ||
type Files = IFileSystemAPIFacade; | ||
type Logger = LoggerAPIFacade; | ||
type Plugins = IPluginManagerAPIFacade; | ||
type Renderer = IGenerateImagesFacade; | ||
type Settings = SettingsAPIFacade; | ||
type Resources = ColorServiceAPIFacade & IFontServiceAPIFacade & IResourceServiceFacade; | ||
type UI = PluginRendererAPIFacade & ViewportServiceAPIFacade & ColorPickerServiceAPIFacade & ThemeServiceAPIFacade & IUIEvents & IAppDockOpenAPIFacade; | ||
type WebView = WebViewAPIFacade; | ||
type Presentation = PresentationServiceAPIFacade; | ||
type __Danger = IAppDockRestrictedAPIFacade; | ||
@@ -1217,4 +1256,5 @@ } | ||
export declare const renderer: API.Renderer; | ||
export declare const resources: API.Resources; | ||
export declare const settings: API.Settings; | ||
export declare const webview: API.WebView; | ||
export declare const ui: API.UI; |
{ | ||
"name": "@invisionapp/studio-api", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48001
1265
0