@sparkvault/sdk-js 8.0.0 → 8.1.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/README.md +8 -8
- package/dist/index.d.ts +17 -32
- package/dist/products/identity/api.d.ts +7 -7
- package/dist/products/identity/dialog-launcher.d.ts +73 -0
- package/dist/products/identity/handlers/index.d.ts +1 -1
- package/dist/products/identity/handlers/{totp-handler.d.ts → otp-handler.d.ts} +15 -15
- package/dist/products/identity/handlers/passkey-handler.d.ts +3 -8
- package/dist/products/identity/index.d.ts +10 -11
- package/dist/products/identity/popup-launcher.d.ts +46 -0
- package/dist/products/identity/renderer.d.ts +5 -5
- package/dist/products/identity/state.d.ts +8 -8
- package/dist/products/identity/types.d.ts +11 -32
- package/dist/products/identity/views/base.d.ts +2 -2
- package/dist/products/identity/views/index.d.ts +1 -1
- package/dist/products/identity/views/{totp-verify.d.ts → otp-verify.d.ts} +5 -5
- package/dist/products/index.d.ts +1 -1
- package/dist/sparkvault.cjs.js +438 -513
- package/dist/sparkvault.cjs.js.map +1 -1
- package/dist/sparkvault.esm.js +438 -513
- package/dist/sparkvault.esm.js.map +1 -1
- package/dist/sparkvault.js +1 -1
- package/dist/sparkvault.js.map +1 -1
- package/package.json +2 -2
- package/dist/products/identity/embedder.d.ts +0 -83
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* OTP Verification View
|
|
3
3
|
*
|
|
4
|
-
* Collects and validates the 6-digit
|
|
4
|
+
* Collects and validates the 6-digit OTP code sent via email, SMS, or voice.
|
|
5
5
|
*/
|
|
6
6
|
import type { View } from './base';
|
|
7
|
-
export interface
|
|
7
|
+
export interface OtpVerifyViewProps {
|
|
8
8
|
email: string;
|
|
9
9
|
method: 'email' | 'sms' | 'voice';
|
|
10
10
|
error?: string;
|
|
@@ -14,7 +14,7 @@ export interface TotpVerifyViewProps {
|
|
|
14
14
|
onResend: () => void;
|
|
15
15
|
onBack: () => void;
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class OtpVerifyView implements View {
|
|
18
18
|
private readonly props;
|
|
19
19
|
private inputElements;
|
|
20
20
|
private submitButton;
|
|
@@ -31,7 +31,7 @@ export declare class TotpVerifyView implements View {
|
|
|
31
31
|
private readonly boundHandleResend;
|
|
32
32
|
private readonly boundHandleSubmit;
|
|
33
33
|
private readonly inputHandlers;
|
|
34
|
-
constructor(props:
|
|
34
|
+
constructor(props: OtpVerifyViewProps);
|
|
35
35
|
render(): HTMLElement;
|
|
36
36
|
private createBackLink;
|
|
37
37
|
private createInputGroup;
|
package/dist/products/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { ResolvedConfig } from '../config';
|
|
9
9
|
import { IdentityModule } from './identity';
|
|
10
10
|
export declare class ProductsModule {
|
|
11
|
-
/** Identity verification product (passkey,
|
|
11
|
+
/** Identity verification product (passkey, OTP, SparkLink, social). */
|
|
12
12
|
readonly identity: IdentityModule;
|
|
13
13
|
constructor(config: ResolvedConfig);
|
|
14
14
|
}
|