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

@pinwheel/react-modal

Package Overview
Dependencies
Maintainers
47
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.3.7 to 2.3.8

22

dist/index.d.ts

@@ -30,3 +30,21 @@ /// <reference types="react" />

export type EmptyPayloadObject = Record<string, never>;
export type EventPayload = {
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 EventPayload = InputAllocation | {
selectedEmployerId: string;

@@ -51,3 +69,3 @@ selectedEmployerName: string;

};
declare const EVENT_NAMES: readonly ["open", "select_employer", "select_platform", "incorrect_platform_given", "login_attempt", "login", "input_amount", "exit", "success", "error"];
declare const EVENT_NAMES: readonly ["open", "select_employer", "select_platform", "incorrect_platform_given", "login_attempt", "login", "input_amount", "exit", "success", "error", "input_allocation"];
export type EventName = typeof EVENT_NAMES[number];

@@ -54,0 +72,0 @@ interface PinwheelPublicOpenOptions {

4

dist/index.js

@@ -64,4 +64,4 @@ 'use strict';

// import pck from '../package.json'
var _a = [2, 3, 6], major = _a[0], minor = _a[1], patch = _a[2]; // (pck.version as string).split('.').map(Number)
// TODO: Import package json version after rollup tweaks
var _a = [2, 3, 8], major = _a[0], minor = _a[1], patch = _a[2];
var SDK_VERSION = { major: major, minor: minor, patch: patch };

@@ -68,0 +68,0 @@ // eslint-disable-next-line @typescript-eslint/ban-types

@@ -41,4 +41,4 @@ import * as React from 'react';

// import pck from '../package.json'
var _a = [2, 3, 6], major = _a[0], minor = _a[1], patch = _a[2]; // (pck.version as string).split('.').map(Number)
// TODO: Import package json version after rollup tweaks
var _a = [2, 3, 8], major = _a[0], minor = _a[1], patch = _a[2];
var SDK_VERSION = { major: major, minor: minor, patch: patch };

@@ -45,0 +45,0 @@ // eslint-disable-next-line @typescript-eslint/ban-types

{
"name": "@pinwheel/react-modal",
"version": "2.3.7",
"version": "2.3.8",
"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