diff --git a/README.md b/README.md
index aad281d..75ab784 100644
--- a/README.md
+++ b/README.md
@@ -190,7 +190,7 @@ const MyReport = ({ accessToken, embedUrl, embedId }) => {
embedUrl: embedUrl,
embedId: embedId,
reportMode: "View", // "Edit"
- permissions: "View", // "All" (when using "Edit" mode)
+ permissions: "Read", // "All" (when using "Edit" mode)
extraSettings: {
filterPaneEnabled: false,
navContentPaneEnabled: false,
@@ -305,7 +305,7 @@ const simulateAjaxCall = new Promise(function(resolve, reject) {
embedUrl: "embedUrl",
embedId: "embedId",
reportMode: "View", // "Edit"
- permissions: "View", // "All" (when using "Edit" mode)
+ permissions: "Read", // "All" (when using "Edit" mode)
});
});
@@ -339,7 +339,7 @@ const MyReport = ({ accessToken, embedUrl, embedId }) => {
return (
-
+
);
};
diff --git a/package.json b/package.json
index 05b698a..d92807e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "powerbi-report-component",
- "version": "2.6.0",
+ "version": "2.6.1",
"description": "It's a minimalistic react component to embed a Microsoft PowerBI report, dashboard or tile into your react application.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
diff --git a/src/lib/hooks/useReport.ts b/src/lib/hooks/useReport.ts
index 8a09e29..f94ea56 100644
--- a/src/lib/hooks/useReport.ts
+++ b/src/lib/hooks/useReport.ts
@@ -5,18 +5,20 @@ import {
createEmbedConfigBasedOnEmbedType,
validateBootrapConfig
} from '../utils/config';
-import { Config } from '../types';
+import { Config, ConfigProps } from '../types';
import { Embed } from 'embed';
-declare type UseReport = [any, (ref: any, config: Config) => void];
+declare type _UseReport = [any, (ref: any, config: Config) => void];
-declare type UseBootstrap = [any, (ref: any, config: Config) => void, (ref: any, config: Config) => void];
+declare type UseReport = [any, (ref: any, config: ConfigProps) => void];
+
+declare type UseBootstrap = [any, (ref: any, config: ConfigProps) => void, (ref: any, config: ConfigProps) => void];
// powerbi object is global
// used inside Embed.jsx has more logic tied to props of Embed.
function _useReport(
performOnEmbed: (report: any, reportRef?: any) => void
-): UseReport {
+): _UseReport {
const [report, _setEmbedInstance] = useState