@basis-theory/react-elements 1.7.2 → 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 CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.7.3] - 2025-03-07
2
+
3
+ ### Bug Fixes
4
+
5
+ - ccf800e 2025-03-05 fix: revert createServiceRequestPayload by kevin@basistheory.com
6
+
7
+ ## [1.7.2] - 2025-02-20
8
+
9
+ ### Bug Fixes
10
+
11
+ - 992b619 2025-02-20 fix(react-elements): sync version upon release (#394) by kevin@basistheory.com
12
+
1
13
  ## [1.7.1] - 2025-02-20
2
14
 
3
15
  ### Bug Fixes
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/react-elements",
3
- "version": "1.7.2",
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.7.2"
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",
@@ -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'>;
@@ -4,4 +4,9 @@ interface Card {
4
4
  expirationYear?: number;
5
5
  cvc?: string;
6
6
  }
7
- export type { Card };
7
+ interface IssuerCountry {
8
+ alpha2: string;
9
+ name: string;
10
+ numeric: string;
11
+ }
12
+ export type { Card, IssuerCountry };
@@ -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.7.2";
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.7.2",
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.7.2"
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",