New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@useparagon/connect

Package Overview
Dependencies
Maintainers
29
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@useparagon/connect - npm Package Compare versions

Comparing version 1.0.26-experimental.7 to 1.0.26-experimental.8

dist/src/file-picker/helpers/microsoftPicker.d.ts

1

dist/src/entities/integration.interface.d.ts

@@ -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;

58

dist/src/file-picker/integrations/onedrive.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc