starti.app 2.0.113 → 2.0.115
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,4 +1,4 @@
|
|
|
1
|
-
import { BiometricsAuthenticationType, PopulatedSaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordConfiguration } from "./BiometricsIntegration";
|
|
1
|
+
import { BiometricsAuthenticationType, PopulatedSaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordI18n } from "./BiometricsIntegration";
|
|
2
2
|
export declare class BiometricService {
|
|
3
3
|
static saveConfigurationAndAddMiddlewareToSubmitButton(configurationKey: string, credentialsKey: string, request: SaveUsernameAndPasswordConfiguration): void;
|
|
4
4
|
static getCredentials(credentialsKey: string): {
|
|
@@ -9,8 +9,8 @@ export declare class BiometricService {
|
|
|
9
9
|
private static getTranslatedAuthenticationType;
|
|
10
10
|
private static getConfirmMessage;
|
|
11
11
|
static promptUseBiometricsNextTime(populatedConfiguration: PopulatedSaveUsernameAndPasswordConfiguration): Promise<boolean>;
|
|
12
|
-
static presentUseBiometricsNextTime(populatedConfiguration:
|
|
13
|
-
static getPopulatedConfiguration(
|
|
14
|
-
static tryLoginAsync(
|
|
12
|
+
static presentUseBiometricsNextTime(populatedConfiguration: SaveUsernameAndPasswordI18n, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
|
|
13
|
+
static getPopulatedConfiguration(request: SaveUsernameAndPasswordConfiguration): PopulatedSaveUsernameAndPasswordConfiguration;
|
|
14
|
+
static tryLoginAsync(request: SaveUsernameAndPasswordConfiguration): Promise<boolean>;
|
|
15
15
|
private static setInputValue;
|
|
16
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BiometricsAuthenticationType,
|
|
1
|
+
import { BiometricsAuthenticationType, SaveUsernameAndPasswordI18n } from "./BiometricsIntegration";
|
|
2
2
|
export declare class BiometricsDrawer {
|
|
3
3
|
private static vaulDrawerService;
|
|
4
4
|
static get isAvailable(): boolean;
|
|
@@ -7,6 +7,6 @@ export declare class BiometricsDrawer {
|
|
|
7
7
|
private static getSubtitle;
|
|
8
8
|
private static getAcceptButtonText;
|
|
9
9
|
private static getDeclineButtonText;
|
|
10
|
-
static presentBiometricDrawer(populatedConfiguration:
|
|
10
|
+
static presentBiometricDrawer(populatedConfiguration: SaveUsernameAndPasswordI18n, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
|
|
11
11
|
static createDrawerContent(title: string, subtitle: string, acceptButtonText: string, declineButtonText: string): HTMLElement;
|
|
12
12
|
}
|
|
@@ -89,23 +89,21 @@ export type BiometricsResultReponse<T> = {
|
|
|
89
89
|
result: T;
|
|
90
90
|
};
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @param usernameInputFieldSelector - The JS selector for the username input field.
|
|
94
|
-
* @param passwordInputFieldSelector - The JS selector for the password input field.
|
|
95
|
-
* @param submitButtonSelector - The JS selector for the submit button.
|
|
96
|
-
* @param title - The title of the biometrics scan.
|
|
97
|
-
* @param reason - The reason for the biometrics scan.
|
|
92
|
+
* Configuration selectors for saving username and password during biometric authentication setup.
|
|
98
93
|
*
|
|
99
|
-
* @
|
|
100
|
-
*
|
|
101
|
-
* @
|
|
102
|
-
* @
|
|
94
|
+
* @interface SaveUsernameAndPasswordConfigurationSelectors
|
|
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
|
|
103
99
|
*/
|
|
104
|
-
export type
|
|
100
|
+
export type SaveUsernameAndPasswordConfigurationSelectors = {
|
|
105
101
|
usernameInputFieldSelector: string;
|
|
106
102
|
passwordInputFieldSelector: string;
|
|
107
103
|
submitButtonSelector: string;
|
|
108
104
|
executingButtonSelector?: string;
|
|
105
|
+
};
|
|
106
|
+
export type SaveUsernameAndPasswordI18n = {
|
|
109
107
|
title: string;
|
|
110
108
|
reason: string;
|
|
111
109
|
} & ({
|
|
@@ -130,6 +128,18 @@ export type SaveUsernameAndPasswordConfiguration = {
|
|
|
130
128
|
};
|
|
131
129
|
};
|
|
132
130
|
});
|
|
131
|
+
/**
|
|
132
|
+
* Configuration type for saving username and password functionality.
|
|
133
|
+
*
|
|
134
|
+
* Combines selector configuration and internationalization settings
|
|
135
|
+
* for the save username and password feature in biometrics integration.
|
|
136
|
+
*
|
|
137
|
+
* @remarks
|
|
138
|
+
* This type merges `SaveUsernameAndPasswordConfigurationSelectors` for
|
|
139
|
+
* DOM element selection and `SaveUsernameAndPasswordI18n` for localization
|
|
140
|
+
* to provide a complete configuration interface.
|
|
141
|
+
*/
|
|
142
|
+
export type SaveUsernameAndPasswordConfiguration = SaveUsernameAndPasswordConfigurationSelectors & SaveUsernameAndPasswordI18n;
|
|
133
143
|
export type PopulatedSaveUsernameAndPasswordConfiguration = (SaveUsernameAndPasswordConfiguration & {
|
|
134
144
|
usernameInputField: HTMLInputElement;
|
|
135
145
|
passwordInputField: HTMLInputElement;
|
package/package.json
CHANGED