starti.app 2.0.105 → 2.0.110
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 { PopulatedSaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordConfiguration } from "./BiometricsIntegration";
|
|
1
|
+
import { BiometricsAuthenticationType, PopulatedSaveUsernameAndPasswordConfiguration, SaveUsernameAndPasswordConfiguration } 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,6 +9,7 @@ export declare class BiometricService {
|
|
|
9
9
|
private static getTranslatedAuthenticationType;
|
|
10
10
|
private static getConfirmMessage;
|
|
11
11
|
static promptForBiometrics(populatedConfiguration: PopulatedSaveUsernameAndPasswordConfiguration): Promise<boolean>;
|
|
12
|
+
static presentPrompt(populatedConfiguration: SaveUsernameAndPasswordConfiguration, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
|
|
12
13
|
static getPopulatedConfiguration(configurationKey: string): PopulatedSaveUsernameAndPasswordConfiguration;
|
|
13
14
|
static tryLoginAsync(configurationKey: string): Promise<boolean>;
|
|
14
15
|
private static setInputValue;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BiometricsAuthenticationType, SaveUsernameAndPasswordConfiguration } from "./BiometricsIntegration";
|
|
2
|
+
export declare class BiometricsDrawer {
|
|
3
|
+
private static vaulDrawerService;
|
|
4
|
+
static get isAvailable(): boolean;
|
|
5
|
+
private static getTranslatedAuthenticationType;
|
|
6
|
+
private static getTitle;
|
|
7
|
+
private static getSubtitle;
|
|
8
|
+
private static getAcceptButtonText;
|
|
9
|
+
private static getDeclineButtonText;
|
|
10
|
+
static presentBiometricDrawer(populatedConfiguration: SaveUsernameAndPasswordConfiguration, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
|
|
11
|
+
static createDrawerContent(title: string, subtitle: string, acceptButtonText: string, declineButtonText: string): HTMLElement;
|
|
12
|
+
}
|
|
@@ -116,12 +116,25 @@ export type SaveUsernameAndPasswordConfiguration = {
|
|
|
116
116
|
face: string;
|
|
117
117
|
fingerprint: string;
|
|
118
118
|
};
|
|
119
|
+
} | {
|
|
120
|
+
translations: {
|
|
121
|
+
nextTime: {
|
|
122
|
+
title: string;
|
|
123
|
+
subtitle: string;
|
|
124
|
+
acceptedButtonText: string;
|
|
125
|
+
declinedButtonText: string;
|
|
126
|
+
};
|
|
127
|
+
biometricsType: {
|
|
128
|
+
face: string;
|
|
129
|
+
fingerprint: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
119
132
|
});
|
|
120
|
-
export type PopulatedSaveUsernameAndPasswordConfiguration = SaveUsernameAndPasswordConfiguration & {
|
|
133
|
+
export type PopulatedSaveUsernameAndPasswordConfiguration = (SaveUsernameAndPasswordConfiguration & {
|
|
121
134
|
usernameInputField: HTMLInputElement;
|
|
122
135
|
passwordInputField: HTMLInputElement;
|
|
123
136
|
submitButton: HTMLButtonElement;
|
|
124
137
|
executingButton?: HTMLButtonElement;
|
|
125
|
-
} | {
|
|
138
|
+
}) | {
|
|
126
139
|
error: string;
|
|
127
140
|
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare class VaulDrawerService {
|
|
2
|
+
private get vaulDrawerLibrary();
|
|
3
|
+
get isAvailable(): boolean;
|
|
4
|
+
createDrawer(selector: string, options: VaulDrawerOptions): VaulDrawer | null;
|
|
5
|
+
}
|
|
6
|
+
type VaulDrawerOptions = {
|
|
7
|
+
direction?: "top" | "bottom" | "left" | "right";
|
|
8
|
+
closeThreshold?: number;
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
modal?: boolean;
|
|
11
|
+
handleOnly?: boolean;
|
|
12
|
+
snapPoints?: number[] | null;
|
|
13
|
+
activeSnapPoint?: number | null;
|
|
14
|
+
fadeFromIndex?: number | null;
|
|
15
|
+
scrollLockTimeout?: number;
|
|
16
|
+
shouldScaleBackground?: boolean;
|
|
17
|
+
setBackgroundColorOnScale?: boolean;
|
|
18
|
+
fixed?: boolean;
|
|
19
|
+
disablePreventScroll?: boolean;
|
|
20
|
+
repositionInputs?: boolean;
|
|
21
|
+
snapToSequentialPoint?: boolean;
|
|
22
|
+
defaultOpen?: boolean;
|
|
23
|
+
onOpenChange?: ((open: boolean) => void) | null;
|
|
24
|
+
onDrag?: ((event: unknown, percentageDragged: number) => void) | null;
|
|
25
|
+
onRelease?: ((event: unknown, open: boolean) => void) | null;
|
|
26
|
+
onClose?: ((state: unknown) => void) | null;
|
|
27
|
+
onAnimationEnd?: ((open: boolean) => void) | null;
|
|
28
|
+
onSnapPointChange?: ((activeSnapPointIndex: number) => void) | null;
|
|
29
|
+
};
|
|
30
|
+
type VaulDrawer = {
|
|
31
|
+
open: () => void;
|
|
32
|
+
close: (state?: unknown) => void;
|
|
33
|
+
toggle: () => void;
|
|
34
|
+
destroy: () => void;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
package/package.json
CHANGED