@pinwheel/react-modal
Advanced tools
Comparing version 2.3.7 to 2.3.8
@@ -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 { |
@@ -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", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
15565
274
0