@evervault/js 2.7.0 → 2.9.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/dist/evervault.d.ts +23 -0
- package/package.json +4 -4
package/dist/evervault.d.ts
CHANGED
|
@@ -195,6 +195,7 @@ extends TranslationsObject {
|
|
|
195
195
|
declare type CardIcons = Record<CardBrandName | "default", string>;
|
|
196
196
|
|
|
197
197
|
declare interface CardOptions {
|
|
198
|
+
colorScheme?: ColorScheme;
|
|
198
199
|
icons?: boolean | CardIcons;
|
|
199
200
|
theme?: ThemeDefinition;
|
|
200
201
|
autoFocus?: boolean;
|
|
@@ -357,6 +358,14 @@ declare function clean(extended?: ThemeDefinition): ThemeDefinition {
|
|
|
357
358
|
});
|
|
358
359
|
}
|
|
359
360
|
|
|
361
|
+
declare type ColorScheme =
|
|
362
|
+
| "normal"
|
|
363
|
+
| ColorSchemeValue
|
|
364
|
+
| `only ${ColorSchemeValue}`
|
|
365
|
+
| "light dark";
|
|
366
|
+
|
|
367
|
+
declare type ColorSchemeValue = "light" | "dark";
|
|
368
|
+
|
|
360
369
|
declare interface ComponentError {
|
|
361
370
|
code: string;
|
|
362
371
|
message: string;
|
|
@@ -838,6 +847,8 @@ declare interface EncryptedDPAN<P> {
|
|
|
838
847
|
};
|
|
839
848
|
cryptogram: string;
|
|
840
849
|
eci: string;
|
|
850
|
+
messageId?: string;
|
|
851
|
+
messageExpiration?: string;
|
|
841
852
|
}
|
|
842
853
|
|
|
843
854
|
declare interface EncryptedFPAN {
|
|
@@ -851,12 +862,15 @@ declare interface EncryptedFPAN {
|
|
|
851
862
|
year: string;
|
|
852
863
|
};
|
|
853
864
|
};
|
|
865
|
+
messageId?: string;
|
|
866
|
+
messageExpiration?: string;
|
|
854
867
|
}
|
|
855
868
|
|
|
856
869
|
declare type EncryptedGooglePayData = (
|
|
857
870
|
| EncryptedDPAN<"google">
|
|
858
871
|
| EncryptedFPAN
|
|
859
872
|
) & {
|
|
873
|
+
email?: string | null;
|
|
860
874
|
billingAddress?: google.payments.api.Address | null;
|
|
861
875
|
};
|
|
862
876
|
|
|
@@ -1010,6 +1024,7 @@ declare interface FormEvents {
|
|
|
1010
1024
|
}
|
|
1011
1025
|
|
|
1012
1026
|
declare interface FormOptions {
|
|
1027
|
+
colorScheme?: ColorScheme;
|
|
1013
1028
|
theme?: ThemeDefinition;
|
|
1014
1029
|
formUuid?: string;
|
|
1015
1030
|
formSubmissionUrl?: string;
|
|
@@ -1032,6 +1047,7 @@ declare class GooglePay {
|
|
|
1032
1047
|
allowedAuthMethods: google.payments.api.CardAuthMethod[] | undefined;
|
|
1033
1048
|
allowedCardNetworks: google.payments.api.CardNetwork[] | undefined;
|
|
1034
1049
|
billingAddress: GooglePayBillingAddressConfig | undefined;
|
|
1050
|
+
emailRequired: boolean | undefined;
|
|
1035
1051
|
};
|
|
1036
1052
|
};
|
|
1037
1053
|
mount(selector: SelectorType): this;
|
|
@@ -1106,12 +1122,14 @@ declare interface GooglePayEvents {
|
|
|
1106
1122
|
}
|
|
1107
1123
|
|
|
1108
1124
|
declare interface GooglePayOptions {
|
|
1125
|
+
emailRequired?: boolean;
|
|
1109
1126
|
process: (
|
|
1110
1127
|
data: EncryptedGooglePayData,
|
|
1111
1128
|
helpers: {
|
|
1112
1129
|
fail: (error: GooglePayErrorMessage) => void;
|
|
1113
1130
|
}
|
|
1114
1131
|
) => Promise<void>;
|
|
1132
|
+
colorScheme?: ColorScheme;
|
|
1115
1133
|
type?: GooglePayButtonType;
|
|
1116
1134
|
color?: GooglePayButtonColor;
|
|
1117
1135
|
locale?: GooglePayButtonLocale;
|
|
@@ -1120,6 +1138,7 @@ declare interface GooglePayOptions {
|
|
|
1120
1138
|
allowedAuthMethods?: google.payments.api.CardAuthMethod[];
|
|
1121
1139
|
allowedCardNetworks?: google.payments.api.CardNetwork[];
|
|
1122
1140
|
billingAddress?: GooglePayBillingAddressConfig;
|
|
1141
|
+
theme?: ThemeDefinition;
|
|
1123
1142
|
}
|
|
1124
1143
|
|
|
1125
1144
|
declare interface HttpConfig {
|
|
@@ -2566,6 +2585,7 @@ declare interface PinEvents {
|
|
|
2566
2585
|
}
|
|
2567
2586
|
|
|
2568
2587
|
declare interface PinOptions {
|
|
2588
|
+
colorScheme?: ColorScheme;
|
|
2569
2589
|
theme?: ThemeDefinition;
|
|
2570
2590
|
length?: number;
|
|
2571
2591
|
autoFocus?: boolean;
|
|
@@ -4315,6 +4335,7 @@ declare interface RevealCopyButtonEvents {
|
|
|
4315
4335
|
}
|
|
4316
4336
|
|
|
4317
4337
|
declare interface RevealCopyButtonOptions {
|
|
4338
|
+
colorScheme?: ColorScheme;
|
|
4318
4339
|
theme?: ThemeDefinition;
|
|
4319
4340
|
text?: string;
|
|
4320
4341
|
icon?: string;
|
|
@@ -4358,6 +4379,7 @@ declare class RevealText {
|
|
|
4358
4379
|
}
|
|
4359
4380
|
|
|
4360
4381
|
declare interface RevealTextOptions {
|
|
4382
|
+
colorScheme?: ColorScheme;
|
|
4361
4383
|
theme?: ThemeDefinition;
|
|
4362
4384
|
format?: RevealFormat;
|
|
4363
4385
|
}
|
|
@@ -10378,6 +10400,7 @@ declare interface ThreeDSecureEvents {
|
|
|
10378
10400
|
}
|
|
10379
10401
|
|
|
10380
10402
|
declare interface ThreeDSecureOptions {
|
|
10403
|
+
colorScheme?: ColorScheme;
|
|
10381
10404
|
theme?: ThemeDefinition;
|
|
10382
10405
|
size?: { width: string; height: string };
|
|
10383
10406
|
failOnChallenge?: boolean | (() => boolean) | (() => Promise<boolean>);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": false,
|
|
3
3
|
"name": "@evervault/js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.9.0",
|
|
5
5
|
"description": "Evervault.js loader for client-side browser applications",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
"typescript": "5.5.4",
|
|
21
21
|
"vite": "^5.4.11",
|
|
22
22
|
"vite-plugin-dts": "^4.3.0",
|
|
23
|
-
"@evervault/browser": "2.
|
|
24
|
-
"themes": "0.1.
|
|
23
|
+
"@evervault/browser": "2.51.0",
|
|
24
|
+
"themes": "0.1.22",
|
|
25
25
|
"tsconfig": "0.1.0",
|
|
26
|
-
"types": "0.
|
|
26
|
+
"types": "0.22.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|