@basis-theory/react-elements 1.7.3 → 1.8.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/CHANGELOG.md +6 -0
- package/dist/package.json +2 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types/web-elements/src/types/models/cards.d.ts +6 -1
- package/dist/types/web-elements/src/types/models/token-intents.d.ts +2 -1
- package/dist/types/web-elements/src/version.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"repository": "https://github.com/basis-theory/react-elements",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@basis-theory/basis-theory-js": "^4.27.0",
|
|
35
|
-
"@basis-theory/web-elements": "1.
|
|
35
|
+
"@basis-theory/web-elements": "1.8.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
package/dist/types/index.d.ts
CHANGED
|
@@ -323,6 +323,11 @@ type TokenizeObject<DataType = Primitive> = {
|
|
|
323
323
|
};
|
|
324
324
|
type TokenizeArray<DataType = Primitive> = Array<Primitive | TokenizeObject<DataType> | TokenizeArray<DataType> | DataType>;
|
|
325
325
|
type TokenizeData<DataType = Primitive> = TokenizeArray<DataType> | TokenizeObject<DataType>;
|
|
326
|
+
interface IssuerCountry {
|
|
327
|
+
alpha2: string;
|
|
328
|
+
name: string;
|
|
329
|
+
numeric: string;
|
|
330
|
+
}
|
|
326
331
|
interface TokenIntentCardDetails {
|
|
327
332
|
type: 'card';
|
|
328
333
|
card: {
|
|
@@ -332,6 +337,7 @@ interface TokenIntentCardDetails {
|
|
|
332
337
|
funding: string;
|
|
333
338
|
expirationMonth: number;
|
|
334
339
|
expirationYear: number;
|
|
340
|
+
issuerCountry?: IssuerCountry;
|
|
335
341
|
};
|
|
336
342
|
}
|
|
337
343
|
type TokenTypesForTokenIntents = Exclude<TokenType, 'token' | 'card'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TokenBase, DataObject, Auditable, TokenType } from '../../types/models';
|
|
1
|
+
import type { TokenBase, DataObject, Auditable, TokenType, IssuerCountry } from '../../types/models';
|
|
2
2
|
interface TokenIntentCardDetails {
|
|
3
3
|
type: 'card';
|
|
4
4
|
card: {
|
|
@@ -8,6 +8,7 @@ interface TokenIntentCardDetails {
|
|
|
8
8
|
funding: string;
|
|
9
9
|
expirationMonth: number;
|
|
10
10
|
expirationYear: number;
|
|
11
|
+
issuerCountry?: IssuerCountry;
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
14
|
type TokenTypesForTokenIntents = Exclude<TokenType, 'token' | 'card'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version: "1.
|
|
1
|
+
export const version: "1.8.0";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"repository": "https://github.com/basis-theory/react-elements",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
],
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@basis-theory/basis-theory-js": "^4.27.0",
|
|
60
|
-
"@basis-theory/web-elements": "1.
|
|
60
|
+
"@basis-theory/web-elements": "1.8.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|