Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pinwheel/react-modal

Package Overview
Dependencies
Maintainers
38
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pinwheel/react-modal - npm Package Compare versions

Comparing version 2.4.5 to 3.0.0-alpha.1

dist/src/client-events/client.d.ts

6

dist/index.js

@@ -65,3 +65,3 @@ 'use strict';

var name = "@pinwheel/react-modal";
var version = "2.4.5";
var version = "3.0.0-alpha.1";
var description = "React package for Pinwheel modal";

@@ -142,4 +142,4 @@ var author = "roscioli";

var url = "https://cdn.getpinwheel.com/pinwheel-v2.3.11.js?sandbox=true";
var integrity = "sha512-NYgZ1R22gaRTXslvZwwktxkMiQ9WCz+RSCdxiwZdhYhdW7nD1kv0tR99/XXJAheSDgVUAQO1+WWTyIkwfWykMA==";
var url = "https://cdn.getpinwheel.com/pinwheel-v3.0.1.js?sandbox=true";
var integrity = "sha512-1AAb5AH8yLmKoXPSahp/xV37m2+MJ/qEznKdUzad8usAMaH9WU2UJjNaQLqy5nV35mSiBB8mrQP6c/6cMgOOAQ==";
var portalConfig = {

@@ -146,0 +146,0 @@ url: url,

@@ -42,3 +42,3 @@ import * as React from 'react';

var name = "@pinwheel/react-modal";
var version = "2.4.5";
var version = "3.0.0-alpha.1";
var description = "React package for Pinwheel modal";

@@ -119,4 +119,4 @@ var author = "roscioli";

var url = "https://cdn.getpinwheel.com/pinwheel-v2.3.11.js?sandbox=true";
var integrity = "sha512-NYgZ1R22gaRTXslvZwwktxkMiQ9WCz+RSCdxiwZdhYhdW7nD1kv0tR99/XXJAheSDgVUAQO1+WWTyIkwfWykMA==";
var url = "https://cdn.getpinwheel.com/pinwheel-v3.0.1.js?sandbox=true";
var integrity = "sha512-1AAb5AH8yLmKoXPSahp/xV37m2+MJ/qEznKdUzad8usAMaH9WU2UJjNaQLqy5nV35mSiBB8mrQP6c/6cMgOOAQ==";
var portalConfig = {

@@ -123,0 +123,0 @@ url: url,

/// <reference types="react" />
import { LinkOptions } from './client-events/client';
export declare const SDK_VERSION: SemverObject;
export type LinkResult = {
accountId: string;
job: string;
params: {
amount?: {
value: number;
unit: '%' | '$';
};
};
};
/**
* @deprecated You should use `PinwheelErrorType` instead. `ErrorType` will be removed in version 2.4
*/
export type ErrorType = 'clientError' | 'systemError' | 'networkError' | 'userActionRequired' | 'platformError' | 'invalidAccountsConfiguration' | 'invalidUserInput' | 'invalidLinkToken';
/**
* @deprecated The type should not be used as it clashes with the native JS `Error` object.
* You should use `PinwheelError` instead. `Error` will be removed in version 2.4
*/
export type Error = {
type: PinwheelErrorType;
code: string;
message: string;
pendingRetry: boolean;
};
export type PinwheelErrorType = ErrorType;
export type PinwheelError = Error;
export type EmptyPayloadObject = Record<string, never>;
type _PartialSwitch<T> = {
action: 'partial_switch';
allocation: T;
};
type InputAllocationPercentage = _PartialSwitch<{
type: 'percentage';
value: number;
}>;
type InputAllocationAmount = _PartialSwitch<{
type: 'amount';
value: number;
}>;
type InputAllocationRemainder = _PartialSwitch<{
type: 'remainder';
}>;
export type InputAllocation = {
action: 'full_switch';
} | InputAllocationRemainder | InputAllocationAmount | InputAllocationPercentage;
export type ScreenTransition = {
screenName: string;
selectedEmployerId?: string;
selectedEmployerName?: string;
selectedPlatformId?: string;
selectedPlatformName?: string;
};
export type EventPayload = InputAllocation | {
selectedEmployerId: string;
selectedEmployerName: string;
} | {
selectedPlatformId: string;
selectedPlatformName: string;
} | {
value: number;
unit: '%' | '$';
} | LinkResult | {
accountId: string;
platformId: string;
} | {
platformId: string;
} | ScreenTransition | PinwheelError | EmptyPayloadObject | undefined;
export type SemverObject = {

@@ -84,18 +18,6 @@ major: number;

};
interface PinwheelPublicOpenOptions {
linkToken: string;
onLogin?: (result: {
accountId: string;
platformId: string;
}) => void;
onSuccess?: (result: LinkResult) => void;
onError?: (error: PinwheelError) => void;
onExit?: (error: PinwheelError | EmptyPayloadObject) => void;
onEvent?: (eventName: EventName, payload: EventPayload) => void;
/**
* @experimental - Adjust modal height, width, and placement on screen
*/
type PinwheelPublicOpenOptions = {
modalStyling?: ModalStylingParams;
ariaHideDocumentContent?: boolean;
}
} & LinkOptions;
export type PinwheelModalProps = PinwheelPublicOpenOptions & {

@@ -102,0 +24,0 @@ open?: boolean;

{
"name": "@pinwheel/react-modal",
"version": "2.4.5",
"version": "3.0.0-alpha.1",
"description": "React package for Pinwheel modal",

@@ -5,0 +5,0 @@ "author": "roscioli",

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