Skip to content

Commit

Permalink
Merge pull request #73 from pnp/file-editor
Browse files Browse the repository at this point in the history
File editor
  • Loading branch information
tavikukko authored Sep 26, 2024
2 parents 9f4b474 + 4492042 commit e5bf59e
Show file tree
Hide file tree
Showing 218 changed files with 8,462 additions and 7,847 deletions.
2,761 changes: 1,131 additions & 1,630 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "sp-editor",
"version": "7.0.4",
"version": "7.1.0",
"private": true,
"homepage": ".",
"dependencies": {
"@azure/msal-browser": "^3.23.0",
"@azure/msal-react": "^2.0.22",
"@azure/msal-browser": "^3.24.0",
"@azure/msal-react": "^2.1.0",
"@craco/craco": "^7.1.0",
"@fluentui/react": "^8.120.9",
"@ionic/react": "^8.3.0",
"@ionic/react": "^8.3.1",
"@microsoft/mgt": "^4.2.5",
"@microsoft/mgt-react": "^4.2.5",
"@microsoft/microsoft-graph-client": "^3.0.7",
Expand All @@ -23,12 +23,13 @@
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
"@types/jest": "^29.5.13",
"@types/node": "^22.5.5",
"@types/react": "^18.3.6",
"@types/node": "^22.6.1",
"@types/react": "^18.3.8",
"@types/react-dom": "^18.3.0",
"@uifabric/theme-samples": "^7.5.33",
"@vscode/codicons": "^0.0.36",
"gsap": "^3.12.5",
"monaco-editor": "^0.51.0",
"monaco-editor": "^0.52.0",
"nth-check": "^2.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand All @@ -49,13 +50,13 @@
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@types/chrome": "^0.0.271",
"react-scripts": "^5.0.1",
"ts-loader": "^9.5.1",
"webpack-cli": "^5.1.4",
"del": "^6.0.0",
"gulp": "^4.0.2",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.4"
"gulp-replace": "^1.1.4",
"react-scripts": "^5.0.1",
"ts-loader": "^9.5.1",
"webpack-cli": "^5.1.4"
},
"scripts": {
"start": "GENERATE_SOURCEMAP=false craco start",
Expand Down
32 changes: 16 additions & 16 deletions public/@azure/msal-browser/app/IPublicClientApplication.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { AccountFilter, AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common";
import { RedirectRequest } from "../request/RedirectRequest";
import { PopupRequest } from "../request/PopupRequest";
import { SilentRequest } from "../request/SilentRequest";
import { SsoSilentRequest } from "../request/SsoSilentRequest";
import { EndSessionRequest } from "../request/EndSessionRequest";
import { WrapperSKU } from "../utils/BrowserConstants";
import { INavigationClient } from "../navigation/INavigationClient";
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
import { ITokenCache } from "../cache/ITokenCache";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
import { BrowserConfiguration } from "../config/Configuration";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { EventCallbackFunction } from "../event/EventMessage";
import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
import { AccountFilter, AccountInfo, Logger, PerformanceCallbackFunction } from "@azure/msal-common/browser";
import { RedirectRequest } from "../request/RedirectRequest.js";
import { PopupRequest } from "../request/PopupRequest.js";
import { SilentRequest } from "../request/SilentRequest.js";
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
import { EndSessionRequest } from "../request/EndSessionRequest.js";
import { WrapperSKU } from "../utils/BrowserConstants.js";
import { INavigationClient } from "../navigation/INavigationClient.js";
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
import { ITokenCache } from "../cache/ITokenCache.js";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
import { BrowserConfiguration } from "../config/Configuration.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
import { EventCallbackFunction } from "../event/EventMessage.js";
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
export interface IPublicClientApplication {
initialize(request?: InitializeApplicationRequest): Promise<void>;
acquireTokenPopup(request: PopupRequest): Promise<AuthenticationResult>;
Expand Down
36 changes: 18 additions & 18 deletions public/@azure/msal-browser/app/PublicClientApplication.d.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { ITokenCache } from "../cache/ITokenCache";
import { INavigationClient } from "../navigation/INavigationClient";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
import { PopupRequest } from "../request/PopupRequest";
import { RedirectRequest } from "../request/RedirectRequest";
import { SilentRequest } from "../request/SilentRequest";
import { WrapperSKU } from "../utils/BrowserConstants";
import { IPublicClientApplication } from "./IPublicClientApplication";
import { IController } from "../controllers/IController";
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common";
import { EndSessionRequest } from "../request/EndSessionRequest";
import { SsoSilentRequest } from "../request/SsoSilentRequest";
import { BrowserConfiguration, Configuration } from "../config/Configuration";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { EventCallbackFunction } from "../event/EventMessage";
import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
import { ITokenCache } from "../cache/ITokenCache.js";
import { INavigationClient } from "../navigation/INavigationClient.js";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
import { PopupRequest } from "../request/PopupRequest.js";
import { RedirectRequest } from "../request/RedirectRequest.js";
import { SilentRequest } from "../request/SilentRequest.js";
import { WrapperSKU } from "../utils/BrowserConstants.js";
import { IPublicClientApplication } from "./IPublicClientApplication.js";
import { IController } from "../controllers/IController.js";
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser";
import { EndSessionRequest } from "../request/EndSessionRequest.js";
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
import { BrowserConfiguration, Configuration } from "../config/Configuration.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
import { EventCallbackFunction } from "../event/EventMessage.js";
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
import { EndSessionPopupRequest } from "../request/EndSessionPopupRequest.js";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
/**
* The PublicClientApplication class is the object exposed by the library to perform authentication and authorization functions in Single Page Applications
* to obtain JWT tokens as described in the OAuth 2.0 Authorization Code Flow with PKCE specification.
Expand Down
32 changes: 16 additions & 16 deletions public/@azure/msal-browser/app/PublicClientNext.d.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { ITokenCache } from "../cache/ITokenCache";
import { INavigationClient } from "../navigation/INavigationClient";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest";
import { PopupRequest } from "../request/PopupRequest";
import { RedirectRequest } from "../request/RedirectRequest";
import { SilentRequest } from "../request/SilentRequest";
import { WrapperSKU } from "../utils/BrowserConstants";
import { IPublicClientApplication } from "./IPublicClientApplication";
import { IController } from "../controllers/IController";
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common";
import { EndSessionRequest } from "../request/EndSessionRequest";
import { SsoSilentRequest } from "../request/SsoSilentRequest";
import { BrowserConfiguration, Configuration } from "../config/Configuration";
import { EventCallbackFunction } from "../event/EventMessage";
import { ClearCacheRequest } from "../request/ClearCacheRequest";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { ITokenCache } from "../cache/ITokenCache.js";
import { INavigationClient } from "../navigation/INavigationClient.js";
import { AuthorizationCodeRequest } from "../request/AuthorizationCodeRequest.js";
import { PopupRequest } from "../request/PopupRequest.js";
import { RedirectRequest } from "../request/RedirectRequest.js";
import { SilentRequest } from "../request/SilentRequest.js";
import { WrapperSKU } from "../utils/BrowserConstants.js";
import { IPublicClientApplication } from "./IPublicClientApplication.js";
import { IController } from "../controllers/IController.js";
import { PerformanceCallbackFunction, AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser";
import { EndSessionRequest } from "../request/EndSessionRequest.js";
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
import { BrowserConfiguration, Configuration } from "../config/Configuration.js";
import { EventCallbackFunction } from "../event/EventMessage.js";
import { ClearCacheRequest } from "../request/ClearCacheRequest.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
/**
* PublicClientNext is an early look at the planned implementation of PublicClientApplication in the next major version of MSAL.js.
* It contains support for multiple API implementations based on the runtime environment that it is running in.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common";
import { NativeExtensionRequestBody } from "./NativeRequest";
import { BrowserConfiguration } from "../../config/Configuration";
import { Logger, AuthenticationScheme, IPerformanceClient } from "@azure/msal-common/browser";
import { NativeExtensionRequestBody } from "./NativeRequest.js";
import { BrowserConfiguration } from "../../config/Configuration.js";
export declare class NativeMessageHandler {
private extensionId;
private extensionVersion;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NativeExtensionMethod } from "../../utils/BrowserConstants";
import { StoreInCache, StringDict } from "@azure/msal-common";
import { NativeExtensionMethod } from "../../utils/BrowserConstants.js";
import { StoreInCache, StringDict } from "@azure/msal-common/browser";
/**
* Token request which native broker will use to acquire tokens
*/
Expand Down
4 changes: 2 additions & 2 deletions public/@azure/msal-browser/cache/AccountManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common";
import { BrowserCacheManager } from "./BrowserCacheManager";
import { AccountInfo, AccountFilter, Logger } from "@azure/msal-common/browser";
import { BrowserCacheManager } from "./BrowserCacheManager.js";
/**
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
* @param accountFilter - (Optional) filter to narrow down the accounts returned
Expand Down
4 changes: 2 additions & 2 deletions public/@azure/msal-browser/cache/AsyncMemoryStorage.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Logger } from "@azure/msal-common";
import { IAsyncStorage } from "./IAsyncStorage";
import { Logger } from "@azure/msal-common/browser";
import { IAsyncStorage } from "./IAsyncStorage.js";
/**
* This class allows MSAL to store artifacts asynchronously using the DatabaseStorage IndexedDB wrapper,
* backed up with the more volatile MemoryStorage object for cases in which IndexedDB may be unavailable.
Expand Down
22 changes: 11 additions & 11 deletions public/@azure/msal-browser/cache/BrowserCacheManager.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, CacheRecord, IPerformanceClient, StaticAuthorityOptions, StoreInCache } from "@azure/msal-common";
import { CacheOptions } from "../config/Configuration";
import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants";
import { MemoryStorage } from "./MemoryStorage";
import { IWindowStorage } from "./IWindowStorage";
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { SilentRequest } from "../request/SilentRequest";
import { SsoSilentRequest } from "../request/SsoSilentRequest";
import { RedirectRequest } from "../request/RedirectRequest";
import { PopupRequest } from "../request/PopupRequest";
import { CommonAuthorizationCodeRequest, ICrypto, AccountEntity, IdTokenEntity, AccessTokenEntity, RefreshTokenEntity, AppMetadataEntity, CacheManager, ServerTelemetryEntity, ThrottlingEntity, Logger, AuthorityMetadataEntity, AccountInfo, ValidCredentialType, TokenKeys, CredentialType, CacheRecord, IPerformanceClient, StaticAuthorityOptions, StoreInCache } from "@azure/msal-common/browser";
import { CacheOptions } from "../config/Configuration.js";
import { BrowserCacheLocation, InteractionType } from "../utils/BrowserConstants.js";
import { MemoryStorage } from "./MemoryStorage.js";
import { IWindowStorage } from "./IWindowStorage.js";
import { NativeTokenRequest } from "../broker/nativeBroker/NativeRequest.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
import { SilentRequest } from "../request/SilentRequest.js";
import { SsoSilentRequest } from "../request/SsoSilentRequest.js";
import { RedirectRequest } from "../request/RedirectRequest.js";
import { PopupRequest } from "../request/PopupRequest.js";
/**
* This class implements the cache storage interface for MSAL through browser local or session storage.
* Cookies are only used if storeAuthStateInCookie is true, and are only used for
Expand Down
2 changes: 1 addition & 1 deletion public/@azure/msal-browser/cache/BrowserStorage.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IWindowStorage } from "./IWindowStorage";
import { IWindowStorage } from "./IWindowStorage.js";
export declare class BrowserStorage implements IWindowStorage<string> {
private windowStorage;
constructor(cacheLocation: string);
Expand Down
2 changes: 1 addition & 1 deletion public/@azure/msal-browser/cache/DatabaseStorage.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IAsyncStorage } from "./IAsyncStorage";
import { IAsyncStorage } from "./IAsyncStorage.js";
/**
* Storage wrapper for IndexedDB storage in browsers: https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
*/
Expand Down
8 changes: 4 additions & 4 deletions public/@azure/msal-browser/cache/ITokenCache.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ExternalTokenResponse } from "@azure/msal-common";
import { SilentRequest } from "../request/SilentRequest";
import { LoadTokenOptions } from "./TokenCache";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { ExternalTokenResponse } from "@azure/msal-common/browser";
import { SilentRequest } from "../request/SilentRequest.js";
import { LoadTokenOptions } from "./TokenCache.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
export interface ITokenCache {
/**
* API to side-load tokens to MSAL cache
Expand Down
2 changes: 1 addition & 1 deletion public/@azure/msal-browser/cache/MemoryStorage.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IWindowStorage } from "./IWindowStorage";
import { IWindowStorage } from "./IWindowStorage.js";
export declare class MemoryStorage<T> implements IWindowStorage<T> {
private cache;
constructor();
Expand Down
12 changes: 6 additions & 6 deletions public/@azure/msal-browser/cache/TokenCache.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common";
import { BrowserConfiguration } from "../config/Configuration";
import { SilentRequest } from "../request/SilentRequest";
import { BrowserCacheManager } from "./BrowserCacheManager";
import { ITokenCache } from "./ITokenCache";
import { AuthenticationResult } from "../response/AuthenticationResult";
import { ICrypto, Logger, ExternalTokenResponse } from "@azure/msal-common/browser";
import { BrowserConfiguration } from "../config/Configuration.js";
import { SilentRequest } from "../request/SilentRequest.js";
import { BrowserCacheManager } from "./BrowserCacheManager.js";
import { ITokenCache } from "./ITokenCache.js";
import { AuthenticationResult } from "../response/AuthenticationResult.js";
export type LoadTokenOptions = {
clientInfo?: string;
expiresOn?: number;
Expand Down
10 changes: 7 additions & 3 deletions public/@azure/msal-browser/config/Configuration.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common";
import { BrowserCacheLocation } from "../utils/BrowserConstants";
import { INavigationClient } from "../navigation/INavigationClient";
import { SystemOptions, LoggerOptions, INetworkModule, ProtocolMode, OIDCOptions, AzureCloudOptions, ApplicationTelemetry, IPerformanceClient } from "@azure/msal-common/browser";
import { BrowserCacheLocation } from "../utils/BrowserConstants.js";
import { INavigationClient } from "../navigation/INavigationClient.js";
export declare const DEFAULT_POPUP_TIMEOUT_MS = 60000;
export declare const DEFAULT_IFRAME_TIMEOUT_MS = 10000;
export declare const DEFAULT_REDIRECT_TIMEOUT_MS = 30000;
Expand Down Expand Up @@ -71,6 +71,10 @@ export type BrowserAuthOptions = {
* Callback that will be passed the url that MSAL will navigate to in redirect flows. Returning false in the callback will stop navigation.
*/
onRedirectNavigate?: (url: string) => boolean | void;
/**
* Flag of whether the STS will send back additional parameters to specify where the tokens should be retrieved from.
*/
instanceAware?: boolean;
};
/** @internal */
export type InternalAuthOptions = Omit<Required<BrowserAuthOptions>, "onRedirectNavigate"> & {
Expand Down
6 changes: 3 additions & 3 deletions public/@azure/msal-browser/controllers/ControllerFactory.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { IController } from "./IController";
import { Configuration } from "../config/Configuration";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest";
import { IController } from "./IController.js";
import { Configuration } from "../config/Configuration.js";
import { InitializeApplicationRequest } from "../request/InitializeApplicationRequest.js";
export declare function createV3Controller(config: Configuration, request?: InitializeApplicationRequest): Promise<IController>;
export declare function createController(config: Configuration): Promise<IController | null>;
//# sourceMappingURL=ControllerFactory.d.ts.map
Loading

0 comments on commit e5bf59e

Please sign in to comment.