Skip to content

Commit fbc40a1

Browse files
authored
Merge pull request #54 from pnp/undocked-spshooter-fix
Undocked spshooter fix
2 parents b9d7921 + 9e42b49 commit fbc40a1

File tree

282 files changed

+10686
-15832
lines changed

Some content is hidden

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

282 files changed

+10686
-15832
lines changed

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ gulp.task('copy:sp-taxonomy', (done) => {
224224
gulp.task('copy:microsoft-graph-types', (done) => {
225225
console.log("Copy @microsoft/microsoft-graph-types");
226226
gulp.src('./node_modules/@microsoft/microsoft-graph-types/microsoft-graph.d.ts')
227+
.pipe(rename('index.d.ts'))
227228
.pipe(gulp.dest('./public/@microsoft/microsoft-graph-types/'));
228229
done();
229230
});
@@ -326,7 +327,7 @@ gulp.task('default',
326327
// 'copy:sp-taxonomy',
327328
'copy:microsoft-graph-types',
328329
'copy:microsoft-graph-client',
329-
'copy:msal',
330+
// 'copy:msal',
330331
'copy:msal-browser',
331332
// 'copy:AuthCodeMSALBrowserAuthenticationProvider',
332333
'copy:react',

iframe-sandbox-app/package-lock.json

Lines changed: 424 additions & 158 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

iframe-sandbox-app/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
"homepage": ".",
66
"dependencies": {
77
"@fluentui/react": "^8.104.1",
8-
"@microsoft/mgt": "^2.9.0",
9-
"@microsoft/mgt-element": "^2.9.0",
10-
"@microsoft/mgt-react": "^2.9.0",
8+
"@microsoft/mgt": "^3.0.1",
9+
"@microsoft/mgt-element": "^3.0.1",
10+
"@microsoft/mgt-react": "^3.0.1",
1111
"@testing-library/jest-dom": "^5.16.5",
1212
"@testing-library/react": "^13.4.0",
1313
"@testing-library/user-event": "^13.5.0",

iframe-sandbox-app/src/mgtiframe/MGTIframe.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,23 @@ const MGTIframe = () => {
3939
// window.removeEventListener("message", onMessageReceivedFromIframe);
4040
}, [onMessageReceivedFromIframe]);
4141

42+
React.useEffect(function setupListener() {
43+
function handleResize(x: any) {
44+
console.log('theme changed', x.detail)
45+
if(x.detail){
46+
document.body.style.backgroundColor = "black";
47+
} else {
48+
document.body.style.backgroundColor = "white";
49+
}
50+
}
51+
window.addEventListener('darkmodechanged', handleResize)
52+
53+
return function cleanupListener() {
54+
console.log('removing listener')
55+
window.removeEventListener('darkmodechanged', handleResize)
56+
}
57+
})
58+
4259
CacheService.config.isEnabled = false;
4360

4461
var getAccessToken = async (scopes: any[]): Promise<string> => {

package-lock.json

Lines changed: 298 additions & 426 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "sp-editor",
3-
"version": "6.6.1",
3+
"version": "6.6.2",
44
"private": true,
55
"homepage": ".",
66
"dependencies": {
7-
"@azure/msal-browser": "^2.37.0",
8-
"@azure/msal-react": "^1.5.7",
9-
"@fluentui/date-time-utilities": "^8.5.10",
10-
"@fluentui/react": "^8.109.2",
7+
"@azure/msal-browser": "^2.38.0",
8+
"@azure/msal-react": "^1.5.9",
9+
"@fluentui/date-time-utilities": "^8.5.13",
10+
"@fluentui/react": "^8.110.10",
1111
"@ionic/react": "^5.8.4",
1212
"@ionic/react-router": "^5.8.4",
13-
"@microsoft/mgt": "^2.10.1",
14-
"@microsoft/mgt-react": "^2.10.1",
13+
"@microsoft/mgt": "^3.0.1",
14+
"@microsoft/mgt-react": "^3.0.1",
1515
"@microsoft/microsoft-graph-client": "^3.0.5",
1616
"@minoru/react-dnd-treeview": "^3.4.0",
1717
"@uifabric/theme-samples": "^7.5.29",
@@ -52,14 +52,14 @@
5252
]
5353
},
5454
"devDependencies": {
55-
"@pnp/core": "^3.14.0",
56-
"@pnp/graph": "^3.14.0",
57-
"@pnp/logging": "^3.14.0",
58-
"@pnp/msaljsclient": "^3.14.0",
59-
"@pnp/nodejs": "^3.14.0",
60-
"@pnp/queryable": "^3.14.0",
61-
"@pnp/sp": "^3.14.0",
62-
"@pnp/sp-admin": "^3.14.0",
55+
"@pnp/core": "^3.16.0",
56+
"@pnp/graph": "^3.16.0",
57+
"@pnp/logging": "^3.16.0",
58+
"@pnp/msaljsclient": "^3.16.0",
59+
"@pnp/nodejs": "^3.16.0",
60+
"@pnp/queryable": "^3.16.0",
61+
"@pnp/sp": "^3.16.0",
62+
"@pnp/sp-admin": "^3.16.0",
6363
"@types/chrome": "0.0.204",
6464
"@types/jest": "29.2.4",
6565
"@types/jscodeshift": "^0.11.6",

public/@azure/msal-browser/config/Configuration.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ export declare type CacheOptions = {
8282
* If set, MSAL will attempt to migrate cache entries from older versions on initialization. By default this flag is set to true if cacheLocation is localStorage, otherwise false.
8383
*/
8484
cacheMigrationEnabled?: boolean;
85+
/**
86+
* Flag that determines whether access tokens are stored based on requested claims
87+
*/
88+
claimsBasedCachingEnabled?: boolean;
8589
};
8690
export declare type BrowserSystemOptions = SystemOptions & {
8791
/**

public/@azure/msal-browser/event/EventType.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export declare enum EventType {
2222
LOGOUT_START = "msal:logoutStart",
2323
LOGOUT_SUCCESS = "msal:logoutSuccess",
2424
LOGOUT_FAILURE = "msal:logoutFailure",
25-
LOGOUT_END = "msal:logoutEnd"
25+
LOGOUT_END = "msal:logoutEnd",
26+
RESTORE_FROM_BFCACHE = "msal:restoreFromBFCache"
2627
}
2728
//# sourceMappingURL=EventType.d.ts.map

public/@azure/msal-browser/interaction_client/BaseInteractionClient.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export declare abstract class BaseInteractionClient {
2727
* Initializer function for all request APIs
2828
* @param request
2929
*/
30-
protected initializeBaseRequest(request: Partial<BaseAuthRequest>): Promise<BaseAuthRequest>;
30+
protected initializeBaseRequest(request: Partial<BaseAuthRequest>, account?: AccountInfo): Promise<BaseAuthRequest>;
3131
/**
3232
*
3333
* Use to get the redirect uri configured in MSAL or null.
@@ -36,6 +36,7 @@ export declare abstract class BaseInteractionClient {
3636
*
3737
*/
3838
getRedirectUri(requestRedirectUri?: string): string;
39+
validateRequestAuthority(authority: string, account: AccountInfo): Promise<void>;
3940
/**
4041
*
4142
* @param apiId

public/@azure/msal-browser/interaction_client/NativeInteractionClient.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export declare class NativeInteractionClient extends BaseInteractionClient {
121121
* @param tenantId
122122
* @param reqTimestamp
123123
*/
124-
cacheNativeTokens(response: NativeResponse, request: NativeTokenRequest, homeAccountIdentifier: string, idTokenObj: AuthToken, responseAccessToken: string, tenantId: string, reqTimestamp: number): void;
124+
cacheNativeTokens(response: NativeResponse, request: NativeTokenRequest, homeAccountIdentifier: string, accountEntity: AccountEntity, idTokenObj: AuthToken, responseAccessToken: string, tenantId: string, reqTimestamp: number): void;
125125
protected addTelemetryFromNativeResponse(response: NativeResponse): MATS | null;
126126
/**
127127
* Validates native platform response before processing

0 commit comments

Comments
 (0)