@enplug/sdk-dashboard
Advanced tools
Comparing version 5.1.14 to 5.1.15-ls-1
{ | ||
"name": "@enplug/sdk-dashboard", | ||
"version": "5.1.14", | ||
"version": "5.1.15-ls-1", | ||
"description": "Enplug Dashboard SDK", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.ts", |
@@ -256,2 +256,15 @@ import { | ||
/** | ||
* Marks asset as recently viewed | ||
*/ | ||
getAssetNeedsApproval(id: string) { | ||
validateString(id, 'You must provide an id string to getAssetNeedsApproval call'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.GetAssetNeedsApproval, | ||
params: { id }, | ||
}); | ||
} | ||
/** | ||
* Loads an array of default assets for the current instance's app definition. | ||
@@ -409,2 +422,16 @@ * Data is passed as the first param to the success callback. | ||
} | ||
/** | ||
* Updates dashboard window url without reloading the page | ||
*/ | ||
appUrlChanged(appPath: string): Promise<any> { | ||
validateString(appPath, 'You must provide the appPath (string).'); | ||
return this.bridge.sendMessage({ | ||
namespace: MessageNamespaces.App, | ||
name: MessageNames.AppUrlChanged, | ||
params: { | ||
appPath, | ||
}, | ||
}); | ||
} | ||
} |
@@ -105,4 +105,5 @@ /** | ||
UpdateAssetOrder = 'app.updateAssetOrder', | ||
DeleteAsset = 'app.deleteAsset', | ||
TouchAsset = 'app.touchAsset', | ||
DeleteAsset = 'app.deleteAsset', | ||
TouchAsset = 'app.touchAsset', | ||
GetAssetNeedsApproval = 'app.getAssetNeedsApproval', | ||
GetDefaultAssets = 'app.getDefaultAssets', | ||
@@ -116,5 +117,6 @@ GetFonts = 'app.getFonts', | ||
HasFeatureFlag = 'app.hasFeatureFlag', | ||
AppUrlChanged = 'app.appUrlChanged', | ||
Click = 'dashboard.click', | ||
ConfirmUnsavedChanges = 'dashboard.unsavedChanges', | ||
ErrorIndicator = 'dashboard.indicator.error', | ||
ErrorIndicator = 'dashboard.indicator.error', | ||
LoadingIndicator = 'dashboard.indicator.loading', | ||
@@ -153,3 +155,3 @@ Navigate = 'dashboard.navigate', | ||
SaveFeed = 'social.saveFeed', | ||
DeleteFeed = 'social.deleteFeed', | ||
DeleteFeed = 'social.deleteFeed', | ||
OpenPreapprovalDialog = 'social.openPreapprovalDialog', | ||
@@ -156,0 +158,0 @@ LoadAllItems = 'social.loadAllItems', |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
203678
3234
2