diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f4e140..768af96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 6.1.1 * powerbi-visuals-api update to 5.9.0 +* Add createOpaqueUtils to IVisualHost mock ## 6.1.0 * Now `createVisualHost` method has only **one parameter** with interface `CreateVisualHostOptions` (includes all previous parameters) diff --git a/src/mocks/mockVisualHost.ts b/src/mocks/mockVisualHost.ts index 44f4ddf..e0420fb 100644 --- a/src/mocks/mockVisualHost.ts +++ b/src/mocks/mockVisualHost.ts @@ -36,6 +36,7 @@ import DrillArgs = powerbi.DrillArgs; // powerbi.visuals import ISelectionIdBuilder = powerbi.visuals.ISelectionIdBuilder; +import CustomVisualOpaqueIdentity = powerbi.visuals.CustomVisualOpaqueIdentity; // powerbi.extensibility import ISelectionManager = powerbi.extensibility.ISelectionManager; @@ -48,6 +49,7 @@ import IWebAccessService = powerbi.extensibility.IWebAccessService; import ILocalVisualStorageService = powerbi.extensibility.ILocalVisualStorageService; import IVisualLocalStorageV2Service = powerbi.extensibility.IVisualLocalStorageV2Service; import IVisualSubSelectionService = powerbi.extensibility.IVisualSubSelectionService; +import ICustomVisualsOpaqueUtils = powerbi.extensibility.ICustomVisualsOpaqueUtils; // powerbi.extensibility.visual import IVisualHost = powerbi.extensibility.visual.IVisualHost; @@ -214,4 +216,10 @@ export class MockIVisualHost implements IVisualHost { resolve(this.modalDialogResult) }) as any; } + + public createOpaqueUtils(): ICustomVisualsOpaqueUtils { + return { + compareCustomVisualOpaqueIdentities: (identity1: CustomVisualOpaqueIdentity, identity2: CustomVisualOpaqueIdentity) => true + }; + } }