@evervault/js 2.8.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 +19 -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;
|
|
@@ -861,6 +870,7 @@ declare type EncryptedGooglePayData = (
|
|
|
861
870
|
| EncryptedDPAN<"google">
|
|
862
871
|
| EncryptedFPAN
|
|
863
872
|
) & {
|
|
873
|
+
email?: string | null;
|
|
864
874
|
billingAddress?: google.payments.api.Address | null;
|
|
865
875
|
};
|
|
866
876
|
|
|
@@ -1014,6 +1024,7 @@ declare interface FormEvents {
|
|
|
1014
1024
|
}
|
|
1015
1025
|
|
|
1016
1026
|
declare interface FormOptions {
|
|
1027
|
+
colorScheme?: ColorScheme;
|
|
1017
1028
|
theme?: ThemeDefinition;
|
|
1018
1029
|
formUuid?: string;
|
|
1019
1030
|
formSubmissionUrl?: string;
|
|
@@ -1036,6 +1047,7 @@ declare class GooglePay {
|
|
|
1036
1047
|
allowedAuthMethods: google.payments.api.CardAuthMethod[] | undefined;
|
|
1037
1048
|
allowedCardNetworks: google.payments.api.CardNetwork[] | undefined;
|
|
1038
1049
|
billingAddress: GooglePayBillingAddressConfig | undefined;
|
|
1050
|
+
emailRequired: boolean | undefined;
|
|
1039
1051
|
};
|
|
1040
1052
|
};
|
|
1041
1053
|
mount(selector: SelectorType): this;
|
|
@@ -1110,12 +1122,14 @@ declare interface GooglePayEvents {
|
|
|
1110
1122
|
}
|
|
1111
1123
|
|
|
1112
1124
|
declare interface GooglePayOptions {
|
|
1125
|
+
emailRequired?: boolean;
|
|
1113
1126
|
process: (
|
|
1114
1127
|
data: EncryptedGooglePayData,
|
|
1115
1128
|
helpers: {
|
|
1116
1129
|
fail: (error: GooglePayErrorMessage) => void;
|
|
1117
1130
|
}
|
|
1118
1131
|
) => Promise<void>;
|
|
1132
|
+
colorScheme?: ColorScheme;
|
|
1119
1133
|
type?: GooglePayButtonType;
|
|
1120
1134
|
color?: GooglePayButtonColor;
|
|
1121
1135
|
locale?: GooglePayButtonLocale;
|
|
@@ -1124,6 +1138,7 @@ declare interface GooglePayOptions {
|
|
|
1124
1138
|
allowedAuthMethods?: google.payments.api.CardAuthMethod[];
|
|
1125
1139
|
allowedCardNetworks?: google.payments.api.CardNetwork[];
|
|
1126
1140
|
billingAddress?: GooglePayBillingAddressConfig;
|
|
1141
|
+
theme?: ThemeDefinition;
|
|
1127
1142
|
}
|
|
1128
1143
|
|
|
1129
1144
|
declare interface HttpConfig {
|
|
@@ -2570,6 +2585,7 @@ declare interface PinEvents {
|
|
|
2570
2585
|
}
|
|
2571
2586
|
|
|
2572
2587
|
declare interface PinOptions {
|
|
2588
|
+
colorScheme?: ColorScheme;
|
|
2573
2589
|
theme?: ThemeDefinition;
|
|
2574
2590
|
length?: number;
|
|
2575
2591
|
autoFocus?: boolean;
|
|
@@ -4319,6 +4335,7 @@ declare interface RevealCopyButtonEvents {
|
|
|
4319
4335
|
}
|
|
4320
4336
|
|
|
4321
4337
|
declare interface RevealCopyButtonOptions {
|
|
4338
|
+
colorScheme?: ColorScheme;
|
|
4322
4339
|
theme?: ThemeDefinition;
|
|
4323
4340
|
text?: string;
|
|
4324
4341
|
icon?: string;
|
|
@@ -4362,6 +4379,7 @@ declare class RevealText {
|
|
|
4362
4379
|
}
|
|
4363
4380
|
|
|
4364
4381
|
declare interface RevealTextOptions {
|
|
4382
|
+
colorScheme?: ColorScheme;
|
|
4365
4383
|
theme?: ThemeDefinition;
|
|
4366
4384
|
format?: RevealFormat;
|
|
4367
4385
|
}
|
|
@@ -10382,6 +10400,7 @@ declare interface ThreeDSecureEvents {
|
|
|
10382
10400
|
}
|
|
10383
10401
|
|
|
10384
10402
|
declare interface ThreeDSecureOptions {
|
|
10403
|
+
colorScheme?: ColorScheme;
|
|
10385
10404
|
theme?: ThemeDefinition;
|
|
10386
10405
|
size?: { width: string; height: string };
|
|
10387
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.
|
|
23
|
+
"@evervault/browser": "2.51.0",
|
|
24
|
+
"themes": "0.1.22",
|
|
24
25
|
"tsconfig": "0.1.0",
|
|
25
|
-
"
|
|
26
|
-
"types": "0.21.0"
|
|
26
|
+
"types": "0.22.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vite build",
|