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 3.0.0-alpha.1 to 3.0.0-alpha.2

2

dist/index.js

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

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

@@ -68,0 +68,0 @@ var author = "roscioli";

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

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

@@ -45,0 +45,0 @@ var author = "roscioli";

import type { AdditionsType, ModificationsType, RemovalsType } from '../utils';
export type ErrorType = 'sandboxError' | 'clientError' | 'systemError' | 'userActionRequired' | 'platformError' | 'invalidAccountsConfiguration' | 'invalidUserInput' | 'invalidLinkToken' | 'networkError';
export type PinwheelErrorType = 'sandboxError' | 'clientError' | 'systemError' | 'userActionRequired' | 'platformError' | 'invalidAccountsConfiguration' | 'invalidUserInput' | 'invalidLinkToken' | 'networkError';
export type LinkApiJob = 'login' | 'direct_deposit_switch' | 'card_switch';

@@ -25,13 +25,24 @@ export type OpenEventPayload = {};

};
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 InputAllocationEventPayload = {
action: string;
allocation?: {
type: string;
value?: number;
target?: {
accountName: string;
accountType: string;
};
};
};
action: 'full_switch';
} | InputAllocationRemainder | InputAllocationAmount | InputAllocationPercentage;
/**
* @deprecated - Use `InputAllocationEventPayload` instead.
*/
export type InputAllocation = InputAllocationEventPayload;
export type CardSwitchBeginEventPayload = {};

@@ -56,3 +67,7 @@ export type DocUploadsBeginEventPayload = {

};
export type ExitEventPayload = {};
/**
* @deprecated - Use `ScreenTransitionEventPayload` instead.
*/
export type ScreenTransition = ScreenTransitionEventPayload;
export type ExitEventPayload = Record<string, never>;
export type SuccessEventPayload = {

@@ -70,3 +85,3 @@ accountId: string;

export type ErrorEventPayload = {
type: ErrorType;
type: PinwheelErrorType;
code: string;

@@ -76,2 +91,6 @@ message: string;

};
/**
* @deprecated - Use `ErrorEventPayload` instead.
*/
export type PinwheelError = ErrorEventPayload;
type EventPayloadAdditions = {

@@ -93,3 +112,3 @@ open: OpenEventPayload;

screen_transition: ScreenTransitionEventPayload;
exit: ExitEventPayload;
exit: ErrorEventPayload | ExitEventPayload;
success: SuccessEventPayload;

@@ -96,0 +115,0 @@ error: ErrorEventPayload;

import type { AdditionsType, ModificationsType, RemovalsType } from '../utils';
import type { EventPayloadMap as EventPayloadMapV2, LinkApiJob } from './v2.3';
import { InputAllocationEventPayload as InputAllocationEventPayload2_3 } from './v2.3';
export * from './v2.3';

@@ -11,12 +12,9 @@ export type SuccessEventPayload = {

export type InputAllocationEventPayload = {
action: string | null;
allocation?: {
type: string;
value?: number;
target?: {
accountName: string;
accountType: string;
};
};
};
action: null;
allocation: null;
} | InputAllocationEventPayload2_3;
/**
* @deprecated - Use `InputAllocationEventPayload` instead.
*/
export type InputAllocation = InputAllocationEventPayload;
type EventPayloadAdditions = {};

@@ -23,0 +21,0 @@ type EventPayloadModifications = {

/// <reference types="react" />
import { LinkOptions } from './client-events/client';
export * from './client-events/registry/v3';
export declare const SDK_VERSION: SemverObject;

@@ -4,0 +5,0 @@ export type SemverObject = {

{
"name": "@pinwheel/react-modal",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"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