Skip to content

Commit d919752

Browse files
authored
Merge pull request #1972 from microsoftgraph/merge/main-to-fluentui
chore: merge main to next/fluentui
2 parents 80593ea + ee7595e commit d919752

File tree

74 files changed

+975
-800
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+975
-800
lines changed

.github/workflows/pr-storybook.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,11 @@ jobs:
3333
yarn storybook:build
3434
3535
- name: Deploy mgt.dev/next/pr/${{ github.event.number }} 🚀
36-
uses: JamesIves/github-pages-deploy-action@4.1.1
36+
uses: JamesIves/github-pages-deploy-action@v4.4.1
3737
with:
3838
branch: gh-pages
3939
folder: storybook-static
4040
target-folder: next/pr/${{ github.event.number }}
41-
token: ${{ secrets.ACCESS_TOKEN }}
4241

4342
- name: Comment PR
4443
uses: thollander/actions-comment-pull-request@v1

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- run: npm install -g yarn
2525
- run: yarn
2626
- run: node scripts/setVersion.js --next
27+
- run: yarn run tsc -v
2728
- run: yarn build
2829
- run: yarn run pack
2930

.github/workflows/push-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
yarn storybook:build
9999
100100
- name: Deploy mgt.dev 🚀
101-
uses: JamesIves/github-pages-deploy-action@4.1.1
101+
uses: JamesIves/github-pages-deploy-action@v4.4.1
102102
with:
103103
branch: gh-pages
104104
folder: storybook-static

.github/workflows/storybook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
yarn storybook:build
3333
3434
- name: Deploy mgt.dev/next 🚀
35-
uses: JamesIves/github-pages-deploy-action@4.1.1
35+
uses: JamesIves/github-pages-deploy-action@v4.4.1
3636
with:
3737
branch: gh-pages
3838
folder: storybook-static
3939
target-folder: next
4040
clean-exclude: |
4141
pr
42-
fluentui
42+
v3
4343
token: ${{ secrets.GITHUB_TOKEN }}

.storybook/manager-head.html

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -93,53 +93,6 @@
9393

9494
sidebarNode.insertBefore(usefulLinksContainer, sidebarNode.childNodes[1]);
9595

96-
const searchBox = document.querySelector(".search-field");
97-
if (searchBox) {
98-
searchBox.setAttribute("name", "Find Components");
99-
searchBox.setAttribute("aria-expanded", "false");
100-
101-
const searchInput = searchBox.querySelector("input");
102-
if (searchInput) {
103-
searchInput.addEventListener("mouseleave", addAriaExpanded("false"));
104-
searchInput.addEventListener("mouseout", addAriaExpanded("false"));
105-
searchInput.addEventListener("pointerleave", addAriaExpanded("false"));
106-
searchInput.addEventListener("pointerout", addAriaExpanded("false"));
107-
searchInput.addEventListener("click", addAriaExpanded("true"));
108-
searchInput.addEventListener("focusout", addAriaExpanded("false"));
109-
searchInput.addEventListener("focus", setListItemsAc11y);
110-
}
111-
}
112-
113-
function setListItemsAc11y() {
114-
const recentMenu = document.querySelector("#storybook-explorer-menu");
115-
if (recentMenu) {
116-
const firstLi = recentMenu.querySelector("li");
117-
if (firstLi) {
118-
firstLi.setAttribute("role", "heading");
119-
firstLi.setAttribute("aria-level", "2");
120-
}
121-
122-
const otherLis = recentMenu.querySelectorAll("li:not(:first-child)");
123-
if (otherLis && otherLis.length > 0) {
124-
for (let i = 0; i < otherLis.length; i++) {
125-
const li = otherLis[i];
126-
const liText = li.innerText;
127-
if (liText) {
128-
li.setAttribute("aria-label", liText.trim());
129-
}
130-
li.setAttribute("aria-hidden", "true");
131-
}
132-
}
133-
}
134-
}
135-
136-
function addAriaExpanded(value) {
137-
const searchBox = document.querySelector(".search-field");
138-
if (searchBox) {
139-
searchBox.setAttribute("aria-expanded", value);
140-
}
141-
}
142-
14396
const sidebarSubheading = document.getElementsByClassName("sidebar-subheading");
14497
if (sidebarSubheading) {
14598
for (let i = 0; i < sidebarSubheading.length; i++) {
@@ -157,6 +110,7 @@
157110
}
158111
}
159112
}
113+
160114
function setArialLabelForExpandCollapseBtn() {
161115
const expandCollapseBtns = document.getElementsByClassName("css-rl1ij0");
162116
if (expandCollapseBtns) {
@@ -180,7 +134,6 @@
180134
}
181135

182136
setEventOnMenuClick();
183-
setListItemsAc11y();
184137
}
185138

186139
function createSvg(svgPath) {
@@ -426,4 +379,15 @@
426379
.css-8ktt77 {
427380
display: none;
428381
}
429-
</style>
382+
383+
.css-14o7vtb {
384+
border: 2px solid transparent;
385+
}
386+
387+
.css-14o7vtb:focus-visible {
388+
outline: auto;
389+
}
390+
.search-field {
391+
display: none !important;
392+
}
393+
</style>

.storybook/preview-body.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@
8484
color: #e50000 !important;
8585
}
8686

87+
.css-3ltsna:focus-visible {
88+
outline: auto;
89+
}
90+
8791
@media (max-width: 768px) {
8892
.story-mgt-root {
8993
flex-direction: column;

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"editor.defaultFormatter": "esbenp.prettier-vscode",
44
"editor.codeActionsOnSave": {
55
"source.fixAll.tslint": true
6-
}
6+
},
7+
"typescript.tsdk": "node_modules/typescript/lib"
78
}

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
66

7-
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://docs.microsoft.com/en-us/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
7+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://learn.microsoft.com/previous-versions/tn-archive/cc751383(v=technet.10)), please report it to us as described below.
88

99
## Reporting Security Issues
1010

auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<html>
22
<head>
3-
<script src="https://unpkg.com/@microsoft/teams-js/dist/MicrosoftTeams.min.js" crossorigin="anonymous"></script>
3+
<script src="https://unpkg.com/@microsoft/teams-js@2/dist/MicrosoftTeams.min.js" crossorigin="anonymous"></script>
44
<!-- <script src="./packages/mgt/dist/bundle/mgt-loader.js"></script>
55
<script>
66
mgt.TeamsProvider.handleAuth();

index.html

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,56 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
6+
<title>Microsoft Graph Toolkit Test</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1" />
38

4-
<head>
5-
<meta charset="utf-8" />
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
7-
<title>Microsoft Graph Toolkit Test</title>
8-
<meta name="viewport" content="width=device-width, initial-scale=1" />
9+
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet" />
10+
<!-- <script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> -->
911

10-
<link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css" rel="stylesheet" />
11-
<!-- <script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script> -->
12+
<script src="https://unpkg.com/@microsoft/teams-js@2/dist/MicrosoftTeams.min.js" crossorigin="anonymous"></script>
1213

13-
<script src="https://unpkg.com/@microsoft/teams-js/dist/MicrosoftTeams.min.js" crossorigin="anonymous"></script>
14+
<!-- <script src="./packages/mgt/dist/bundle/mgt-loader.js"></script> -->
1415

15-
<!-- <script src="./packages/mgt/dist/bundle/mgt-loader.js"></script> -->
16+
<script type="module" src="./packages/mgt/dist/es6/index.js"></script>
17+
</head>
1618

17-
<script type="module" src="./packages/mgt/dist/es6/index.js"></script>
18-
</head>
19-
20-
<body>
21-
<!-- <mgt-teams-provider
19+
<body>
20+
<!-- <mgt-teams-provider
2221
client-id="a974dfa0-9f57-49b9-95db-90f04ce2111a"
2322
auth-popup-url="auth.html"
2423
></mgt-teams-provider> -->
2524

26-
<!-- <mgt-teams-msal2-provider
25+
<!-- <mgt-teams-msal2-provider
2726
client-id="72482bff-ecae-44f5-8fdc-513b7f5602e7"
2827
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all"
2928
auth-popup-url="auth.html"
3029
></mgt-teams-msal2-provider> -->
3130

32-
<!-- Teams Msal2 provider in SSO mode (see "teams-sso-node" sample) -->
33-
<!-- <mgt-teams-msal2-provider
31+
<!-- Teams Msal2 provider in SSO mode (see "teams-sso-node" sample) -->
32+
<!-- <mgt-teams-msal2-provider
3433
client-id="72482bff-ecae-44f5-8fdc-513b7f5602e7"
3534
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all"
3635
auth-popup-url="auth.html"
3736
sso-url="http://localhost:5000/api/token"
3837
http-method="POST"
3938
></mgt-teams-msal2-provider> -->
4039

41-
<!-- <mgt-msal-provider
40+
<!-- <mgt-msal-provider
4241
client-id="a974dfa0-9f57-49b9-95db-90f04ce2111a"
4342
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all"
4443
redirect-uri="http://localhost:3000"
4544
depends-on="mgt-teams-provider"
4645
></mgt-msal-provider> -->
4746

48-
<!-- <mgt-msal2-provider
47+
<!-- <mgt-msal2-provider
4948
client-id="2dfea037-938a-4ed8-9b35-c05708a1b241"
5049
redirect-uri="http://localhost:3000"
5150
scopes="user.read,user.read.all,mail.readBasic,people.read,people.read.all,sites.read.all,user.readbasic.all,contacts.read,presence.read,presence.read.all,tasks.readwrite,tasks.read,calendars.read,group.read.all,files.read,files.read.all,files.readwrite,files.readwrite.all"
5251
></mgt-msal2-provider> -->
5352

54-
<mgt-mock-provider></mgt-mock-provider>
53+
<mgt-mock-provider></mgt-mock-provider>
5554

5655
<h1>Developer test page</h1>
5756
<main>

0 commit comments

Comments
 (0)