@basis-theory/react-elements 1.13.1 → 1.14.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 +2 -2
- package/types/index.d.ts +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"repository": "https://github.com/basis-theory/react-elements",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tag": "latest"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@basis-theory/web-elements": "1.
|
|
33
|
+
"@basis-theory/web-elements": "1.14.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
package/types/index.d.ts
CHANGED
|
@@ -187,6 +187,7 @@ export interface SanitizedElementOptions {
|
|
|
187
187
|
skipLuhnValidation?: boolean;
|
|
188
188
|
style?: ElementStyle;
|
|
189
189
|
targetId?: string;
|
|
190
|
+
title?: string;
|
|
190
191
|
transform?: [RegExp, string] | null;
|
|
191
192
|
validateOnChange?: boolean;
|
|
192
193
|
validation?: RegExp;
|
|
@@ -217,7 +218,13 @@ export interface CardExpirationDateValue<T extends ElementValueType> {
|
|
|
217
218
|
month: T extends 'reference' ? DataElementReference : number;
|
|
218
219
|
year: T extends 'reference' ? DataElementReference : number;
|
|
219
220
|
}
|
|
220
|
-
export
|
|
221
|
+
export interface CardElementAutoComplete {
|
|
222
|
+
number: AutoCompleteValue;
|
|
223
|
+
expirationDate: AutoCompleteValue;
|
|
224
|
+
csc: AutoCompleteValue;
|
|
225
|
+
}
|
|
226
|
+
export type CreateCardElementOptions = Omit<CustomizableElementOptions, 'autoComplete'> & Pick<ElementOptions, 'cardTypes' | 'skipLuhnValidation'> & {
|
|
227
|
+
autoComplete?: CardElementAutoComplete;
|
|
221
228
|
placeholder?: CardElementPlaceholder;
|
|
222
229
|
value?: CardElementValue<'static'>;
|
|
223
230
|
};
|