@enplug/sdk-dashboard
Advanced tools
Comparing version 5.2.1-zoning-8 to 5.2.1-zoning-9
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.2.1-zoning-8", | ||
"version": "5.2.1-zoning-9", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -230,2 +230,5 @@ import { | ||
/** | ||
* todo | ||
*/ | ||
previewAsset<TAssetValue, TThemeValue, TFeedType>( | ||
@@ -242,2 +245,19 @@ request: AssetPreviewRequest<TAssetValue, TThemeValue, TFeedType>): Promise<any> { | ||
/** | ||
* todo | ||
*/ | ||
getAssetPreviewData(appId: string, asset: Asset<any>) { | ||
validateString(appId, 'appId must be a string.'); | ||
validateObject(asset, 'asset must be an instance of Asset<any>.'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.Dashboard, | ||
name: MessageNames.GetAssetPreviewData, | ||
params: { | ||
appId, | ||
asset, | ||
}, | ||
}); | ||
} | ||
/** | ||
* Sets the current callback for the title bar breadcrumb display selector dropdown. | ||
@@ -244,0 +264,0 @@ * Attaching a callback enables the dropdown, it is disabled by default. |
@@ -134,2 +134,3 @@ /** | ||
Preview = 'dashboard.preview', | ||
GetAssetPreviewData = 'dashboard.getAssetPreviewData', | ||
PreviewAsset = 'dashboard.previewAsset', | ||
@@ -136,0 +137,0 @@ SetDisplaySelectorCallback = 'dashboard.set.selectorCallback', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
218997
3510