@basis-theory/basis-theory-js 4.6.1 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/basis-theory-js",
3
- "version": "4.6.1",
3
+ "version": "4.7.0",
4
4
  "repository": "https://github.com/Basis-Theory/basis-theory-js",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -31,6 +31,7 @@ interface SanitizedElementOptions {
31
31
  iconPosition?: string;
32
32
  inputMode?: `${InputMode}`;
33
33
  mask?: (RegExp | string)[];
34
+ maxLength?: HTMLInputElement['maxLength'];
34
35
  password?: boolean;
35
36
  placeholder?: string;
36
37
  readOnly?: boolean;
@@ -66,7 +67,7 @@ type CreateCardElementOptions = CustomizableElementOptions & Pick<ElementOptions
66
67
  value?: CardElementValue<'static'>;
67
68
  };
68
69
  type UpdateCardElementOptions = Omit<CreateCardElementOptions, 'validateOnChange' | 'enableCopy'>;
69
- type CreateTextElementOptions = CustomizableElementOptions & Pick<ElementOptions, 'placeholder' | 'mask' | 'password' | 'validation'> & TransformOption & Required<Pick<ElementOptions, 'targetId'>> & {
70
+ type CreateTextElementOptions = CustomizableElementOptions & Pick<ElementOptions, 'placeholder' | 'mask' | 'maxLength' | 'password' | 'validation'> & TransformOption & Required<Pick<ElementOptions, 'targetId'>> & {
70
71
  'aria-label'?: string;
71
72
  value?: string;
72
73
  };
@@ -19,7 +19,7 @@ type ElementStyle = CardElementStyle;
19
19
  type CopyIconStyles = {
20
20
  size?: string;
21
21
  color?: string;
22
- sucessColor?: string;
22
+ successColor?: string;
23
23
  };
24
24
  export { SAFE_CSS_PROPERTIES, SAFE_CSS_PROPERTIES_ALTERNATES, SAFE_CSS_PROPERTIES_WITH_ALTERNATES, CARD_ELEMENT_STYLE_VARIANT_SELECTORS, CARD_ELEMENT_STYLE_VARIANTS, CARD_ELEMENT_STYLE_FONTS_ATTR, };
25
25
  export type { CardElementStyle, CardElementStyleVariant, CardElementStyleVariantSelector, CardElementStyleVariantStyle, CopyIconStyles, ElementStyle, Fonts, FontSources, SafeCSSProperty, SafeStyle, };