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: SaveUsernameAndPasswordConfiguration, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
13
- static getPopulatedConfiguration(configurationKey: string): PopulatedSaveUsernameAndPasswordConfiguration;
14
- static tryLoginAsync(configurationKey: string): Promise<boolean>;
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, SaveUsernameAndPasswordConfiguration } from "./BiometricsIntegration";
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: SaveUsernameAndPasswordConfiguration, biometricsType: BiometricsAuthenticationType): Promise<boolean>;
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
- * The configuration for saving a username and password using biometrics.
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
- * @param language - The language of the biometrics scan.
100
- *
101
- * @param confirmMessageTemplate - The template for the confirm message.
102
- * @param biometricsTypeTranslations - The translations for the biometrics types.
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 SaveUsernameAndPasswordConfiguration = {
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
@@ -2,7 +2,7 @@
2
2
  "name": "starti.app",
3
3
  "author": "starti.app",
4
4
  "license": "MIT",
5
- "version": "2.0.113",
5
+ "version": "2.0.115",
6
6
  "description": "Use this package for easy communication with the starti.app API.",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",