starti.app 2.0.115 → 2.0.121
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.
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { BiometricsAuthenticationType, PopulatedSaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordI18n } from "./BiometricsIntegration";
|
|
2
2
|
export declare class BiometricService {
|
|
3
|
-
static
|
|
3
|
+
static saveTranslations(request: SaveUsernameAndPasswordI18n & {
|
|
4
|
+
key?: string;
|
|
5
|
+
}): void;
|
|
6
|
+
static getTranslations(configurationKey?: string): SaveUsernameAndPasswordI18n | null;
|
|
7
|
+
static addMiddlewareToSubmitButton(credentialsKey: string, request: SaveUsernameAndPasswordConfiguration): void;
|
|
4
8
|
static getCredentials(credentialsKey: string): {
|
|
5
9
|
username: string;
|
|
6
10
|
password: string;
|
|
@@ -13,4 +17,8 @@ export declare class BiometricService {
|
|
|
13
17
|
static getPopulatedConfiguration(request: SaveUsernameAndPasswordConfiguration): PopulatedSaveUsernameAndPasswordConfiguration;
|
|
14
18
|
static tryLoginAsync(request: SaveUsernameAndPasswordConfiguration): Promise<boolean>;
|
|
15
19
|
private static setInputValue;
|
|
20
|
+
private static getConfigurationKey;
|
|
21
|
+
private static upsertConfigurationKey;
|
|
22
|
+
static removeConfigurationKeys: () => void;
|
|
23
|
+
private static clearTranslationsIfNeeded;
|
|
16
24
|
}
|
|
@@ -4,7 +4,6 @@ export declare class Biometrics extends EventTarget {
|
|
|
4
4
|
private biometricsIntegration;
|
|
5
5
|
private SECURED_CONTENT_KEY;
|
|
6
6
|
private SECURED_LOGIN_KEY;
|
|
7
|
-
private BiometricsConfigurationKey;
|
|
8
7
|
private BiometricsCredentialsKey;
|
|
9
8
|
private defaultScanTitle;
|
|
10
9
|
private defaultScanReason;
|
|
@@ -75,7 +74,7 @@ export declare class Biometrics extends EventTarget {
|
|
|
75
74
|
*
|
|
76
75
|
* @returns A promise that resolves when the username and password are successfully saved.
|
|
77
76
|
*/
|
|
78
|
-
endSaveUsernameAndPassword(): Promise<void>;
|
|
77
|
+
endSaveUsernameAndPassword(config?: EndSaveUsernameAndPasswordConfiguration): Promise<void>;
|
|
79
78
|
/**
|
|
80
79
|
* Checks the current access status for biometrics.
|
|
81
80
|
*
|
|
@@ -89,14 +88,13 @@ export type BiometricsResultReponse<T> = {
|
|
|
89
88
|
result: T;
|
|
90
89
|
};
|
|
91
90
|
/**
|
|
92
|
-
* Configuration
|
|
91
|
+
* Configuration options for ending the save username and password operation.
|
|
93
92
|
*
|
|
94
|
-
* @
|
|
95
|
-
* @property {string} usernameInputFieldSelector - CSS selector for the username/email input field
|
|
96
|
-
* @property {string} passwordInputFieldSelector - CSS selector for the password input field
|
|
97
|
-
* @property {string} submitButtonSelector - CSS selector for the form submission button
|
|
98
|
-
* @property {string} [executingButtonSelector] - Optional CSS selector for the button shown during form submission/processing
|
|
93
|
+
* @param key - An optional key to identify the configuration.
|
|
99
94
|
*/
|
|
95
|
+
export type EndSaveUsernameAndPasswordConfiguration = {
|
|
96
|
+
key?: string;
|
|
97
|
+
};
|
|
100
98
|
export type SaveUsernameAndPasswordConfigurationSelectors = {
|
|
101
99
|
usernameInputFieldSelector: string;
|
|
102
100
|
passwordInputFieldSelector: string;
|
|
@@ -139,7 +137,9 @@ export type SaveUsernameAndPasswordI18n = {
|
|
|
139
137
|
* DOM element selection and `SaveUsernameAndPasswordI18n` for localization
|
|
140
138
|
* to provide a complete configuration interface.
|
|
141
139
|
*/
|
|
142
|
-
export type SaveUsernameAndPasswordConfiguration =
|
|
140
|
+
export type SaveUsernameAndPasswordConfiguration = {
|
|
141
|
+
key?: string;
|
|
142
|
+
} & SaveUsernameAndPasswordConfigurationSelectors & SaveUsernameAndPasswordI18n;
|
|
143
143
|
export type PopulatedSaveUsernameAndPasswordConfiguration = (SaveUsernameAndPasswordConfiguration & {
|
|
144
144
|
usernameInputField: HTMLInputElement;
|
|
145
145
|
passwordInputField: HTMLInputElement;
|
package/package.json
CHANGED