powerbi-visuals-api
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -1339,2 +1339,57 @@ declare namespace powerbi { | ||
declare module powerbi.extensibility { | ||
/** | ||
* Provides an access to local storage for read / write access | ||
*/ | ||
export interface ILocalVisualStorageService { | ||
/** | ||
* Returns promise that resolves to the data associated with 'key' if it was found or rejects otherwise. | ||
* | ||
* @param key - the name of the payload to retrieve | ||
* @returns the promise that resolves to the data required or rejects if it wasn't found | ||
*/ | ||
get(key: string): IPromise<string>; | ||
/** | ||
* Saves the data to local storage. This data can be later be retrieved using the 'key'. | ||
* Returns a promise that resolves to the amount of free space available to caller after the save if there | ||
* is any or rejects otherwise. | ||
* | ||
* @param key - the name of the payload to store | ||
* @param data - the payload string to store | ||
* @returns the promise resolves to the amount of free space available or rejects if there is no free space to store the data | ||
*/ | ||
set(key: string, data: string): IPromise<number>; | ||
/** | ||
* Deletes data associated with 'key' from local storage. | ||
* | ||
* @param key - the name of the payload to remove | ||
*/ | ||
remove(key: string): void; | ||
} | ||
} | ||
declare module powerbi.extensibility { | ||
/** | ||
* An interface for reporting rendering events | ||
*/ | ||
export interface IVisualEventService { | ||
/** | ||
* Called just before the actual rendering was started. | ||
*/ | ||
renderingStarted(options: VisualUpdateOptions): void; | ||
/** | ||
* Called immediately after finishing rendering successfully | ||
*/ | ||
renderingFinished(options: VisualUpdateOptions): void; | ||
/** | ||
* Called when rendering failed with optional reason string | ||
*/ | ||
renderingFailed(options: VisualUpdateOptions, reason?: string): void; | ||
} | ||
} | ||
declare module powerbi { | ||
@@ -1371,3 +1426,3 @@ export interface IFilter { } | ||
persistProperties: (changes: VisualObjectInstancesToPersist) => void; | ||
applyJsonFilter: (filter: IFilter, objectName: string, propertyName: string, action: FilterAction) => void; | ||
applyJsonFilter: (filter: IFilter[]|IFilter, objectName: string, propertyName: string, action: FilterAction)=> void; | ||
tooltipService: ITooltipService; | ||
@@ -1383,2 +1438,4 @@ telemetry: ITelemetryService; | ||
createLocalizationManager: () => ILocalizationManager; | ||
storageService: ILocalVisualStorageService; | ||
eventService: IVisualEventService; | ||
} | ||
@@ -1385,0 +1442,0 @@ |
@@ -1,3 +0,8 @@ | ||
exports.version = require('./package.json').version; | ||
const semver = require('semver'); | ||
let packageVersion = require('./package.json').version; | ||
let apiVersion = `${semver.major(packageVersion)}.${semver.minor(packageVersion)}.0`; | ||
exports.version = apiVersion; | ||
exports.schemas = { | ||
@@ -4,0 +9,0 @@ capabilities: require(`./schema.capabilities.json`), |
{ | ||
"name": "powerbi-visuals-api", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Power BI Custom Visuals API type definitions for typescript", | ||
@@ -18,3 +18,12 @@ "types": "index", | ||
}, | ||
"homepage": "https://microsoft.github.io/PowerBI-visuals" | ||
"homepage": "https://microsoft.github.io/PowerBI-visuals", | ||
"dependencies": { | ||
"semver": "^5.6.0" | ||
}, | ||
"devDependencies": { | ||
"jasmine": "^3.3.0" | ||
}, | ||
"scripts": { | ||
"test": "jasmine" | ||
} | ||
} |
@@ -1018,2 +1018,6 @@ { | ||
"description": "Displays a slider that allows the user to choose a font size in points" | ||
}, | ||
"fontFamily": { | ||
"type": "boolean", | ||
"description": "Displays a dropdown with font families" | ||
} | ||
@@ -1037,2 +1041,7 @@ }, | ||
] | ||
}, | ||
{ | ||
"required":[ | ||
"fontFamily" | ||
] | ||
} | ||
@@ -1039,0 +1048,0 @@ ] |
111610
12
2641
1
1
+ Addedsemver@^5.6.0
+ Addedsemver@5.7.2(transitive)