@useparagon/connect
Advanced tools
Comparing version 1.0.26-experimental.7 to 1.0.26-experimental.8
@@ -45,2 +45,3 @@ import { SDKIntegrationConfig } from '../types/connect'; | ||
sdkIntegrationConfig?: SDKIntegrationConfig | null; | ||
providerData?: Record<string, any>; | ||
} |
import { GoogleDriveFilePicker } from './googledrive'; | ||
import { OneDriveFilePicker } from './onedrive'; | ||
import { SharepointFilePicker } from './sharepoint'; | ||
declare const _default: { | ||
GoogleDriveFilePicker: typeof GoogleDriveFilePicker; | ||
OneDriveFilePicker: typeof OneDriveFilePicker; | ||
SharepointFilePicker: typeof SharepointFilePicker; | ||
}; | ||
export default _default; |
@@ -1,35 +0,35 @@ | ||
import ConnectSDK from '../../ConnectSDK'; | ||
import { FilePickerInitOptions, FilePickerOptions } from '../../types'; | ||
import { BaseFilePicker } from '../types/baseFilePicker'; | ||
export declare class OneDriveFilePicker extends BaseFilePicker { | ||
readonly options: FilePickerOptions; | ||
readonly connectSDKInstance: ConnectSDK; | ||
private dependencyStatus; | ||
private accessToken; | ||
private domain; | ||
constructor(options: FilePickerOptions, connectSDKInstance: ConnectSDK); | ||
getInstance(): null; | ||
open(): boolean; | ||
import { IConnectIntegrationWithCredentialInfo } from '../../entities/integration.interface'; | ||
import { FilePickerInitOptions } from '../../types/sdk'; | ||
import { LaunchPickersOptions, MicrosoftPicker } from '../helpers/microsoftPicker'; | ||
/** | ||
* Class responsible for integrating with OneDrive's file picker functionality. | ||
* It extends the MicrosoftPicker class and facilitates interaction with OneDrive | ||
* to allow users to select and manage files from their OneDrive accounts. | ||
*/ | ||
export declare class OneDriveFilePicker extends MicrosoftPicker { | ||
integrationName: string; | ||
/** | ||
* Initializes the OneDrive file picker with provided options. | ||
* It calls the parent method to set up the picker integration. | ||
* | ||
* @param options - Configuration options for initializing the file picker. | ||
* @returns A promise that resolves to a boolean indicating if the initialization was successful. | ||
*/ | ||
init(options: FilePickerInitOptions): Promise<boolean>; | ||
protected onScriptLoaded(): void; | ||
protected onScriptError(): void; | ||
/** | ||
* Combines multiple path segments into a single normalized path. | ||
* Retrieves the URL associated with the OneDrive integration. | ||
* The URL is fetched from the integration's account authentication token data. | ||
* | ||
* - Removes any leading or trailing slashes from each segment. | ||
* - Ensures the resulting path uses forward slashes (`/`) as the separator. | ||
* - Does not add a leading or trailing slash to the final combined path. | ||
* @param response - The integration response containing account authentication information. | ||
* @param integrationName - The name of the integration (e.g., 'onedrive') to fetch the URL for. | ||
* @returns A string representing the URL associated with the OneDrive integration. | ||
*/ | ||
getUrl(response: IConnectIntegrationWithCredentialInfo, integrationName: string): string; | ||
/** | ||
* Generates the picker options to customize the file picker for OneDrive. | ||
* The options define the file picker settings for OneDrive resources and files. | ||
* | ||
* @param paths - An array of path segments to combine. | ||
* @returns The combined and normalized path as a string. | ||
* | ||
* @example | ||
* const combinedPath = combinePaths('folder1/', '/folder2/', '/file.txt'); | ||
* // Result: 'folder1/folder2/file.txt' | ||
* @returns A partial LaunchPickersOptions object containing picker settings. | ||
*/ | ||
private combinePaths; | ||
private launchPicker; | ||
private setupMessageListener; | ||
private initializePort; | ||
private handlePickerCommand; | ||
getPickerOptions(): Partial<LaunchPickersOptions>; | ||
} |
{ | ||
"name": "@useparagon/connect", | ||
"version": "1.0.26-experimental.7", | ||
"version": "1.0.26-experimental.8", | ||
"description": "Embed integrations into your app with the Paragon SDK", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
Sorry, the diff of this file is too big to display
206696
51
2574