Skip to content

Commit d8d788e

Browse files
authored
Merge pull request #86 from pnp/proxy-extended
Proxy extended
2 parents 46e1efa + 607e996 commit d8d788e

Some content is hidden

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

42 files changed

+1839
-695
lines changed

package-lock.json

Lines changed: 178 additions & 174 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,29 +1,29 @@
11
{
22
"name": "sp-editor",
3-
"version": "7.4.1",
3+
"version": "7.5.0",
44
"private": true,
55
"homepage": ".",
66
"dependencies": {
7-
"@azure/msal-browser": "^4.2.0",
8-
"@azure/msal-react": "^3.0.4",
7+
"@azure/msal-browser": "^4.4.0",
8+
"@azure/msal-react": "^3.0.5",
99
"@craco/craco": "^7.1.0",
10-
"@fluentui/react": "^8.122.9",
11-
"@fluentui/react-hooks": "^8.8.16",
12-
"@fluentui/date-time-utilities": "^8.6.9",
13-
"@fluentui/theme-samples": "^8.7.198",
10+
"@fluentui/react": "^8.122.11",
11+
"@fluentui/react-hooks": "^8.8.17",
12+
"@fluentui/date-time-utilities": "^8.6.10",
13+
"@fluentui/theme-samples": "^8.7.200",
1414
"@ionic/react": "^8.4.3",
1515
"@ionic/core": "^8.4.3",
1616
"@microsoft/mgt": "^4.4.0",
1717
"@microsoft/mgt-element": "^4.4.0",
1818
"@microsoft/mgt-react": "^4.4.0",
1919
"@microsoft/microsoft-graph-client": "^3.0.7",
2020
"@minoru/react-dnd-treeview": "^3.5.0",
21-
"@pnp/graph": "^4.9.0",
22-
"@pnp/logging": "^4.9.0",
23-
"@pnp/msaljsclient": "^4.9.0",
24-
"@pnp/sp": "^4.9.0",
25-
"@pnp/sp-admin": "^4.9.0",
26-
"@reduxjs/toolkit": "^2.5.1",
21+
"@pnp/graph": "^4.10.0",
22+
"@pnp/logging": "^4.10.0",
23+
"@pnp/msaljsclient": "^4.10.0",
24+
"@pnp/sp": "^4.10.0",
25+
"@pnp/sp-admin": "^4.10.0",
26+
"@reduxjs/toolkit": "^2.6.0",
2727
"@testing-library/jest-dom": "^6.6.3",
2828
"@testing-library/react": "^16.2.0",
2929
"@testing-library/user-event": "^14.6.1",
@@ -49,9 +49,9 @@
4949
},
5050
"devDependencies": {
5151
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
52-
"@types/chrome": "^0.0.304",
52+
"@types/chrome": "^0.0.306",
5353
"@types/jest": "^29.5.14",
54-
"@types/node": "^22.9.0",
54+
"@types/node": "^22.13.5",
5555
"@types/react": "^18.3.12",
5656
"@types/react-dom": "^18.3.1",
5757
"cross-env": "^7.0.3",

public/@azure/msal-browser/controllers/StandardController.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export declare class StandardController implements IController {
4848
private activeIframeRequest;
4949
private ssoSilentMeasurement?;
5050
private acquireTokenByCodeAsyncMeasurement?;
51+
private pkceCode;
5152
/**
5253
* @constructor
5354
* Constructor for the PublicClientApplication used to instantiate the PublicClientApplication object
@@ -401,5 +402,15 @@ export declare class StandardController implements IController {
401402
* @returns
402403
*/
403404
private acquireTokenSilentNoIframe;
405+
/**
406+
* Pre-generates PKCE codes and stores it in local variable
407+
* @param correlationId
408+
*/
409+
private preGeneratePkceCodes;
410+
/**
411+
* Provides pre-generated PKCE codes, if any
412+
* @param correlationId
413+
*/
414+
private getPreGeneratedPkceCodes;
404415
}
405416
//# sourceMappingURL=StandardController.d.ts.map

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonEndSessionRequest, IPerformanceClient, Logger, ICrypto } from "@azure/msal-common/browser";
1+
import { CommonEndSessionRequest, IPerformanceClient, Logger, ICrypto, PkceCodes } from "@azure/msal-common/browser";
22
import { StandardInteractionClient } from "./StandardInteractionClient.js";
33
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
44
import { PopupRequest } from "../request/PopupRequest.js";
@@ -22,23 +22,23 @@ export declare class PopupClient extends StandardInteractionClient {
2222
/**
2323
* Acquires tokens by opening a popup window to the /authorize endpoint of the authority
2424
* @param request
25+
* @param pkceCodes
2526
*/
26-
acquireToken(request: PopupRequest): Promise<AuthenticationResult>;
27+
acquireToken(request: PopupRequest, pkceCodes?: PkceCodes): Promise<AuthenticationResult>;
2728
/**
2829
* Clears local cache for the current user then opens a popup window prompting the user to sign-out of the server
2930
* @param logoutRequest
3031
*/
3132
logout(logoutRequest?: EndSessionPopupRequest): Promise<void>;
3233
/**
3334
* Helper which obtains an access_token for your API via opening a popup window in the user's browser
34-
* @param validRequest
35-
* @param popupName
36-
* @param popup
37-
* @param popupWindowAttributes
35+
* @param request
36+
* @param popupParams
37+
* @param pkceCodes
3838
*
3939
* @returns A promise that is fulfilled when this function has completed, or rejected if an error was raised.
4040
*/
41-
protected acquireTokenPopupAsync(request: PopupRequest, popupParams: PopupParams): Promise<AuthenticationResult>;
41+
protected acquireTokenPopupAsync(request: PopupRequest, popupParams: PopupParams, pkceCodes?: PkceCodes): Promise<AuthenticationResult>;
4242
/**
4343
*
4444
* @param validRequest

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ServerTelemetryManager, CommonAuthorizationCodeRequest, AuthorizationCodeClient, ClientConfiguration, CommonEndSessionRequest, AccountInfo, AzureCloudOptions, StringDict } from "@azure/msal-common/browser";
1+
import { ServerTelemetryManager, CommonAuthorizationCodeRequest, AuthorizationCodeClient, ClientConfiguration, CommonEndSessionRequest, AccountInfo, AzureCloudOptions, StringDict, PkceCodes } from "@azure/msal-common/browser";
22
import { BaseInteractionClient } from "./BaseInteractionClient.js";
33
import { AuthorizationUrlRequest } from "../request/AuthorizationUrlRequest.js";
44
import { InteractionType } from "../utils/BrowserConstants.js";
@@ -13,8 +13,9 @@ export declare abstract class StandardInteractionClient extends BaseInteractionC
1313
/**
1414
* Generates an auth code request tied to the url request.
1515
* @param request
16+
* @param pkceCodes
1617
*/
17-
protected initializeAuthorizationCodeRequest(request: AuthorizationUrlRequest): Promise<CommonAuthorizationCodeRequest>;
18+
protected initializeAuthorizationCodeRequest(request: AuthorizationUrlRequest, pkceCodes?: PkceCodes): Promise<CommonAuthorizationCodeRequest>;
1819
/**
1920
* Initializer for the logout request.
2021
* @param logoutRequest
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export declare const name = "@azure/msal-browser";
2-
export declare const version = "4.2.0";
2+
export declare const version = "4.4.0";
33
//# sourceMappingURL=packageMetadata.d.ts.map
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { TimelinePipe } from "@pnp/core";
2+
export declare function PreferAsync(pollIntervalMs?: number, maxPolls?: number): TimelinePipe;
3+
//# sourceMappingURL=prefer-async.d.ts.map
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { _DriveItem } from "../files/types.js";
2+
import { IWorkbook, IWorkbookWithSession } from "./types.js";
3+
declare module "../files/types.js" {
4+
interface _DriveItem {
5+
readonly workbook: IWorkbook;
6+
getWorkbookSession(persistChanges: boolean): Promise<IWorkbookWithSession>;
7+
}
8+
interface DriveItem {
9+
readonly workbook: IWorkbook;
10+
getWorkbookSession(persistChanges: boolean): Promise<IWorkbookWithSession>;
11+
}
12+
}
13+
export declare function getWorkbookSession(this: _DriveItem, persistChanges: boolean): Promise<IWorkbookWithSession>;
14+
//# sourceMappingURL=driveitem.d.ts.map
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import "./driveitem.js";
2+
export { IWorkbook, IWorksheet, IWorksheets, IRange, ITable, ITables, ITableRow, ITableRows, ITableColumn, ITableColumns, IRangeFormat, IRangeBorder, IRangeBorders, IRangeFill, IRangeFont, IRangeFormatProtection, } from "./types.js";
3+
//# sourceMappingURL=index.d.ts.map

0 commit comments

Comments
 (0)