@basis-theory/basis-theory-js
Advanced tools
Comparing version 4.13.0 to 4.14.0
{ | ||
"name": "@basis-theory/basis-theory-js", | ||
"version": "4.13.0", | ||
"version": "4.14.0", | ||
"repository": "https://github.com/Basis-Theory/basis-theory-js", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -62,2 +62,7 @@ import { CreditCardType } from './cardTypes'; | ||
} | ||
interface CardElementPlaceholder { | ||
cardNumber?: string; | ||
cardExpirationDate?: string; | ||
cardSecurityCode?: string; | ||
} | ||
interface CardExpirationDateValue<T extends ElementValueType> { | ||
@@ -68,2 +73,3 @@ month: T extends 'reference' ? DataElementReference : number; | ||
type CreateCardElementOptions = CustomizableElementOptions & Pick<ElementOptions, 'cardTypes' | 'skipLuhnValidation'> & { | ||
placeholder?: CardElementPlaceholder; | ||
value?: CardElementValue<'static'>; | ||
@@ -92,3 +98,3 @@ }; | ||
type UpdateCardVerificationCodeElementOptions = Omit<CreateCardVerificationCodeElementOptions, 'targetId' | 'validateOnChange' | 'enableCopy'>; | ||
export type { CardElementValue, CardExpirationDateValue, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, CustomizableElementOptions, ElementInternalOptions, ElementOptions, ElementType, InputMode, SanitizedElementOptions, Transform, UpdateCardElementOptions, UpdateCardExpirationDateElementOptions, UpdateCardNumberElementOptions, UpdateCardVerificationCodeElementOptions, UpdateTextElementOptions, }; | ||
export type { CardElementPlaceholder, CardElementValue, CardExpirationDateValue, CreateCardElementOptions, CreateCardExpirationDateElementOptions, CreateCardNumberElementOptions, CreateCardVerificationCodeElementOptions, CreateTextElementOptions, CustomizableElementOptions, ElementInternalOptions, ElementOptions, ElementType, InputMode, SanitizedElementOptions, Transform, UpdateCardElementOptions, UpdateCardExpirationDateElementOptions, UpdateCardNumberElementOptions, UpdateCardVerificationCodeElementOptions, UpdateTextElementOptions, }; | ||
export { ELEMENTS_TYPES }; |
184766
4153