Skip to content

Commit 7c848eb

Browse files
authored
Merge pull request #128 from microsoft/2.0.0
Release-2.0.0
2 parents b492caf + 96ae2bd commit 7c848eb

File tree

17 files changed

+724
-838
lines changed

17 files changed

+724
-838
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ async getReportPages(): Page[] {
188188
```
189189

190190

191+
## Note
192+
193+
The library supports React applications having version **>= 18**.
194+
191195
## Dependencies
192196

193197
[powerbi-client](https://www.npmjs.com/package/powerbi-client)
@@ -220,6 +224,7 @@ If you use these features, you must comply with applicable law, including provid
220224
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.
221225

222226
## Support
227+
223228
- **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.
224229
- **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.
225-
- **Additional Support:** Contact your account manager or reach out to the [Fabric Support Team](https://support.fabric.microsoft.com/en-us/support/).
230+
- **Additional Support:** Contact your account manager or reach out to the [Fabric Support Team](https://support.fabric.microsoft.com/en-us/support/).

React/demo/package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
{
22
"name": "powerbi-client-react-demo",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "Demo for usage of powerbi-client-react",
55
"scripts": {
66
"demo": "webpack-dev-server --static ./src/ --open"
77
},
88
"license": "MIT",
99
"dependencies": {
10-
"powerbi-client-react": "^1.4.0",
11-
"powerbi-report-authoring": "^1.1",
12-
"react-app-polyfill": "^1.0.6"
10+
"@fluentui/web-components": "^2.6.1",
11+
"@microsoft/fast-react-wrapper": "^0.3.24",
12+
"powerbi-client-react": "^2.0.0",
13+
"powerbi-report-authoring": "^2.0.0",
14+
"react-app-polyfill": "^3.0.0"
1315
},
1416
"peerDependencies": {
15-
"react": ">= 16.8"
17+
"react": ">= 18"
1618
},
1719
"devDependencies": {
18-
"@types/react": "^16.9.35",
19-
"@types/react-dom": "^16.9.8",
20+
"@types/react": "^18.3.10",
21+
"@types/react-dom": "^18.3.0",
2022
"css-loader": "^3.5.3",
21-
"react": "^16.13.1",
22-
"react-dom": "^16.13.1",
23+
"react": "^18.3.1",
24+
"react-dom": "^18.3.1",
2325
"style-loader": "^1.2.1",
2426
"ts-loader": "^9.4.2",
25-
"typescript": "^4.8.4",
27+
"typescript": "^4.9.5",
2628
"webpack": "^5.71.0",
2729
"webpack-cli": "^4.9.2",
2830
"webpack-dev-server": "^4.11.1"

React/demo/src/DemoApp.css

Lines changed: 66 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
11
/* Copyright (c) Microsoft Corporation.
22
Licensed under the MIT License. */
33

4-
.report-container {
5-
height: 75vh;
6-
margin: 8px auto;
7-
width: 90%;
8-
}
9-
104
body {
115
font-family: 'Segoe UI';
126
margin: 0;
137
}
148

9+
button {
10+
background: #117865;
11+
border: 0;
12+
border-radius: 5px;
13+
color: #ffffff;
14+
cursor: pointer;
15+
font-size: 16px;
16+
height: 35px;
17+
margin-bottom: 8px;
18+
margin-right: 15px;
19+
min-width: 270px;
20+
overflow: hidden;
21+
text-overflow: ellipsis;
22+
white-space: nowrap;
23+
width: calc((100% / 3) - 120px);
24+
}
25+
26+
.button-container {
27+
margin-left: auto;
28+
margin-right: auto;
29+
max-width: 1120px;
30+
}
31+
1532
.container {
1633
display: flex;
1734
flex-direction: column;
1835
height: 100vh;
1936
}
2037

21-
.header {
22-
background: #3476ae 0 0 no-repeat padding-box;
23-
border: 1px solid #707070;
24-
color: #ffffff;
25-
font: 700 22px/27px 'Segoe UI';
26-
padding: 13px 13px 13px 36px;
27-
text-align: left;
38+
.controls {
39+
flex: 1;
40+
margin-top: 20px;
41+
text-align: center;
2842
}
2943

3044
.display-message {
@@ -33,24 +47,14 @@ body {
3347
font: 400 18px/27px 'Segoe UI';
3448
height: 30px;
3549
justify-content: center;
36-
margin-top: 8px;
3750
text-align: center;
3851
}
3952

40-
.position {
41-
margin-top: 40vh;
42-
}
43-
4453
.embed-report {
54+
margin-right: 0;
4555
margin-top: 18px;
4656
text-align: center;
47-
margin-right: 0;
48-
}
49-
50-
.controls {
51-
margin-top: 20px;
52-
text-align: center;
53-
flex: 1;
57+
width: 180px;
5458
}
5559

5660
.footer {
@@ -63,6 +67,11 @@ body {
6367
width: 100%;
6468
}
6569

70+
.footer a {
71+
color: #3a3a3a;
72+
text-decoration: underline;
73+
}
74+
6675
.footer * {
6776
padding: 0 3px;
6877
}
@@ -73,26 +82,42 @@ body {
7382
vertical-align: middle;
7483
}
7584

76-
.footer a {
77-
color: #3a3a3a;
78-
text-decoration: underline;
85+
.header {
86+
background: #117865 0 0 no-repeat padding-box;
87+
border: 1px solid #707070;
88+
color: #ffffff;
89+
font: 700 22px/27px 'Segoe UI';
90+
padding: 13px 13px 13px 36px;
91+
text-align: left;
7992
}
8093

81-
button {
82-
background: #337ab7;
83-
border: 0;
84-
border-radius: 5px;
85-
color: #ffffff;
86-
font-size: 16px;
87-
height: 35px;
88-
margin-right: 15px;
89-
width: 160px;
94+
iframe {
95+
border: none;
9096
}
9197

92-
button:hover {
93-
cursor: pointer;
98+
.position {
99+
margin-top: 40vh;
94100
}
95101

96-
iframe {
97-
border: none;
102+
.report-container {
103+
height: 75vh;
104+
margin: 8px auto;
105+
width: 90%;
106+
}
107+
108+
@media screen and (max-width: 980px) {
109+
p {
110+
font-size: 12px;
111+
}
112+
}
113+
114+
@media screen and (max-width: 767px) {
115+
.display-message {
116+
font: 400 14px 'Segoe UI';
117+
}
118+
119+
.footer {
120+
font: 400 8px 'Segoe UI';
121+
height: 64px;
122+
}
98123
}

0 commit comments

Comments
 (0)