@useparagon/connect
Advanced tools
Comparing version 1.0.26-experimental.5 to 1.0.26-experimental.6
@@ -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,10 @@ | ||
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'; | ||
export declare class OneDriveFilePicker extends MicrosoftPicker { | ||
integrationName: string; | ||
init(options: FilePickerInitOptions): Promise<boolean>; | ||
protected onScriptLoaded(): void; | ||
protected onScriptError(): void; | ||
/** | ||
* Combines multiple path segments into a single normalized path. | ||
* | ||
* - 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 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' | ||
*/ | ||
private combinePaths; | ||
private launchPicker; | ||
private setupMessageListener; | ||
private initializePort; | ||
private handlePickerCommand; | ||
getUrl(response: IConnectIntegrationWithCredentialInfo, integrationName: string): string; | ||
getPickerOptions(): Partial<LaunchPickersOptions>; | ||
invokeLaunchPicker(): Promise<void>; | ||
} |
@@ -5,2 +5,3 @@ import ConnectSDK from '../../ConnectSDK'; | ||
constructor(action: string, options: FilePickerOptions, connectSingleton: ConnectSDK); | ||
createFilePicker(action: string, options: FilePickerOptions, connectSingleton: ConnectSDK): IFilePicker | undefined; | ||
open(): boolean; | ||
@@ -7,0 +8,0 @@ init(options: FilePickerInitOptions): Promise<boolean>; |
@@ -356,3 +356,2 @@ import ConnectSDK from '../ConnectSDK'; | ||
appId?: string; | ||
clientId?: string; | ||
}; | ||
@@ -373,21 +372,2 @@ export declare enum FilePickerStatus { | ||
export declare const supportedModesForDocsViewMode: string[]; | ||
export interface OpenOptions { | ||
clientId: string; | ||
action: 'share' | 'download' | 'upload' | string; | ||
advanced?: { | ||
queryParameters?: string; | ||
accessToken?: string; | ||
}; | ||
multiSelect?: boolean; | ||
openInNewWindow: boolean; | ||
success?: (files: File[]) => void; | ||
cancel?: () => void; | ||
error?: (error: Error) => void; | ||
} | ||
export interface File { | ||
id: string; | ||
name: string; | ||
size: number; | ||
link: string; | ||
} | ||
export {}; |
{ | ||
"name": "@useparagon/connect", | ||
"version": "1.0.26-experimental.5", | ||
"version": "1.0.26-experimental.6", | ||
"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
201536
51
2459