powerbi-client-react 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -7
- package/dist/PowerBIEmbed.d.ts +1 -17
- package/dist/powerbi-client-react.js +2 -342
- package/dist/powerbi-client-react.js.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +19 -16
package/README.md
CHANGED
|
@@ -188,19 +188,23 @@ async getReportPages(): Page[] {
|
|
|
188
188
|
```
|
|
189
189
|
|
|
190
190
|
|
|
191
|
-
|
|
191
|
+
## Note
|
|
192
|
+
|
|
193
|
+
The library supports React applications having version **>= 18**.
|
|
194
|
+
|
|
195
|
+
## Dependencies
|
|
192
196
|
|
|
193
197
|
[powerbi-client](https://www.npmjs.com/package/powerbi-client)
|
|
194
198
|
|
|
195
|
-
|
|
199
|
+
## Peer dependencies
|
|
196
200
|
|
|
197
201
|
[react](https://www.npmjs.com/package/react)
|
|
198
202
|
|
|
199
|
-
|
|
203
|
+
## Trademarks
|
|
200
204
|
|
|
201
205
|
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies.
|
|
202
206
|
|
|
203
|
-
|
|
207
|
+
## Contributing
|
|
204
208
|
|
|
205
209
|
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit <https://cla.opensource.microsoft.com>.
|
|
206
210
|
|
|
@@ -208,12 +212,15 @@ When you submit a pull request, a CLA bot will automatically determine whether y
|
|
|
208
212
|
|
|
209
213
|
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments
|
|
210
214
|
|
|
211
|
-
|
|
215
|
+
## Data Collection.
|
|
212
216
|
|
|
213
217
|
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications.
|
|
214
218
|
|
|
215
219
|
If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft’s privacy statement.
|
|
216
220
|
Our privacy statement is located at [Microsoft Privacy Statement](https://privacy.microsoft.com/privacystatement). You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
|
|
217
221
|
|
|
218
|
-
|
|
219
|
-
|
|
222
|
+
## Support
|
|
223
|
+
|
|
224
|
+
- **Feature Requests:** Submit your ideas and suggestions to the [Fabric Ideas Portal](https://ideas.fabric.microsoft.com/), where you can also vote on ideas from other developers.
|
|
225
|
+
- **Bug Reports and Technical Assistance:** Visit the [Fabric Developer Community Forum](https://community.fabric.microsoft.com/t5/Developer/bd-p/Developer). Our team and community experts are ready to assist you.
|
|
226
|
+
- **Additional Support:** Contact your account manager or reach out to the [Fabric Support Team](https://support.fabric.microsoft.com/en-us/support/).
|
package/dist/PowerBIEmbed.d.ts
CHANGED
|
@@ -4,9 +4,7 @@ import { IReportCreateConfiguration, IPaginatedReportLoadConfiguration } from 'p
|
|
|
4
4
|
/**
|
|
5
5
|
* Type for event handler function of embedded entity
|
|
6
6
|
*/
|
|
7
|
-
export type EventHandler =
|
|
8
|
-
(event?: service.ICustomEvent<any>, embeddedEntity?: Embed): void | null;
|
|
9
|
-
};
|
|
7
|
+
export type EventHandler = ((event?: service.ICustomEvent<any>, embeddedEntity?: Embed) => void) | null;
|
|
10
8
|
/**
|
|
11
9
|
* Props interface for PowerBIEmbed component
|
|
12
10
|
*/
|
|
@@ -47,14 +45,6 @@ export declare class PowerBIEmbed extends React.Component<EmbedProps> {
|
|
|
47
45
|
* Embed the powerbi entity (Load for phased embedding)
|
|
48
46
|
*/
|
|
49
47
|
private embedEntity;
|
|
50
|
-
/**
|
|
51
|
-
* When component updates, choose to _embed_ the powerbi entity or _update the accessToken_ in the embedded entity
|
|
52
|
-
* or do nothing if the embedUrl and accessToken did not update in the new props
|
|
53
|
-
*
|
|
54
|
-
* @param prevProps EmbedProps
|
|
55
|
-
* @returns void
|
|
56
|
-
*/
|
|
57
|
-
private embedOrUpdateAccessToken;
|
|
58
48
|
/**
|
|
59
49
|
* Sets all event handlers from the props on the embedded entity
|
|
60
50
|
*
|
|
@@ -69,10 +59,4 @@ export declare class PowerBIEmbed extends React.Component<EmbedProps> {
|
|
|
69
59
|
* @returns void
|
|
70
60
|
*/
|
|
71
61
|
private invokeGetEmbedCallback;
|
|
72
|
-
/**
|
|
73
|
-
* Update settings from props of the embedded artifact
|
|
74
|
-
*
|
|
75
|
-
* @returns void
|
|
76
|
-
*/
|
|
77
|
-
private updateSettings;
|
|
78
62
|
}
|