@basis-theory/react-elements 2.7.0 → 2.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/package.json +2 -2
- package/types/index.d.ts +13 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/basis-theory/react-elements.git"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"tag": "latest"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@basis-theory/web-elements": "2.
|
|
36
|
+
"@basis-theory/web-elements": "2.8.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
|
package/types/index.d.ts
CHANGED
|
@@ -221,7 +221,7 @@ export interface ElementInternalOptions {
|
|
|
221
221
|
disableTelemetry: boolean | undefined;
|
|
222
222
|
useNgApi: boolean | undefined;
|
|
223
223
|
useSameOriginApi: boolean | undefined;
|
|
224
|
-
|
|
224
|
+
environment: string | undefined;
|
|
225
225
|
useNetworkCheck: boolean | undefined;
|
|
226
226
|
}
|
|
227
227
|
export enum InputMode {
|
|
@@ -490,17 +490,23 @@ interface CardIssuerDetails {
|
|
|
490
490
|
country: string;
|
|
491
491
|
name: string;
|
|
492
492
|
}
|
|
493
|
+
export interface BinRange {
|
|
494
|
+
binMin: string;
|
|
495
|
+
binMax: string;
|
|
496
|
+
}
|
|
493
497
|
interface CardInfo {
|
|
494
498
|
brand: string;
|
|
495
499
|
funding: string;
|
|
496
500
|
issuer: CardIssuerDetails;
|
|
501
|
+
binRange?: BinRange[];
|
|
497
502
|
}
|
|
498
503
|
export interface BinInfo {
|
|
499
|
-
brand
|
|
500
|
-
funding
|
|
501
|
-
issuer
|
|
502
|
-
segment
|
|
504
|
+
brand?: string;
|
|
505
|
+
funding?: string;
|
|
506
|
+
issuer?: CardIssuerDetails;
|
|
507
|
+
segment?: string;
|
|
503
508
|
additional?: CardInfo[];
|
|
509
|
+
binRange?: BinRange[];
|
|
504
510
|
}
|
|
505
511
|
/**
|
|
506
512
|
* Make all properties in T nullable
|
|
@@ -673,7 +679,7 @@ export interface BasisTheoryElements {
|
|
|
673
679
|
createElement(type: 'copyButton', options: CreateCopyButtonElementOptions): ICopyButtonElement;
|
|
674
680
|
}
|
|
675
681
|
export interface BasisTheoryElementsInternal extends BasisTheoryElements {
|
|
676
|
-
init: (apiKey: string | undefined, elementsBaseUrl: string, elementsUseNgApi: boolean | undefined, elementsUseSameOriginApi: boolean | undefined, disableTelemetry: boolean | undefined, debug: boolean | undefined,
|
|
682
|
+
init: (apiKey: string | undefined, elementsBaseUrl: string, elementsUseNgApi: boolean | undefined, elementsUseSameOriginApi: boolean | undefined, disableTelemetry: boolean | undefined, debug: boolean | undefined, environment: string | undefined, useNetworkCheck: boolean | undefined, customDomain: string | undefined) => Promise<BasisTheoryElements>;
|
|
677
683
|
hasElement: (payload: unknown) => boolean;
|
|
678
684
|
}
|
|
679
685
|
declare global {
|
|
@@ -697,7 +703,7 @@ export interface BasisTheoryInitOptions {
|
|
|
697
703
|
_devMode?: boolean;
|
|
698
704
|
disableTelemetry?: boolean;
|
|
699
705
|
useSameOriginApi?: boolean;
|
|
700
|
-
|
|
706
|
+
environment?: string;
|
|
701
707
|
debug?: boolean;
|
|
702
708
|
useNetworkCheck?: boolean;
|
|
703
709
|
customDomain?: string;
|