@basis-theory/react-elements 1.11.5 → 1.11.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/types/index.d.ts +5 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-theory/react-elements",
3
- "version": "1.11.5",
3
+ "version": "1.11.7",
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.11.5"
33
+ "@basis-theory/web-elements": "1.11.7"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
package/types/index.d.ts CHANGED
@@ -279,6 +279,10 @@ export interface BinDetailsProduct {
279
279
  code?: string;
280
280
  name?: string;
281
281
  }
282
+ interface CardDetails {
283
+ bin?: string;
284
+ last4?: string;
285
+ }
282
286
  export type Primitive = string | number | boolean | null;
283
287
  export type TokenType = 'token' | 'card' | 'bank' | 'card_number' | 'us_bank_routing_number' | 'us_bank_account_number' | 'social_security_number';
284
288
  export interface Auditable {
@@ -326,6 +330,7 @@ interface TokenPrivacy {
326
330
  }
327
331
  export interface TokenEnrichments {
328
332
  binDetails?: BinDetails;
333
+ cardDetails?: CardDetails;
329
334
  }
330
335
  export type Token<DataType = Primitive> = TokenBase<DataType> & {
331
336
  id: string;