@melio-eng/web-sdk 1.0.35 → 1.0.36
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/dist/flows/Flow.d.ts +2 -0
- package/dist/flows/Flow.js +3 -0
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/flows/Flow.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export declare class Flow implements FlowInstance {
|
|
|
38
38
|
protected emit(event: 'authenticationFailed'): void;
|
|
39
39
|
protected emit(event: 'error', data: ErrorData): void;
|
|
40
40
|
protected emit(event: 'onboardingCompleted'): void;
|
|
41
|
+
protected emit(event: 'onboardingRequired'): void;
|
|
41
42
|
/**
|
|
42
43
|
* Register an event listener
|
|
43
44
|
*/
|
|
@@ -49,6 +50,7 @@ export declare class Flow implements FlowInstance {
|
|
|
49
50
|
on(event: 'error', callback: (data: ErrorData) => void): void;
|
|
50
51
|
on(event: 'loaded', callback: () => void): void;
|
|
51
52
|
on(event: 'onboardingCompleted', callback: () => void): void;
|
|
53
|
+
on(event: 'onboardingRequired', callback: () => void): void;
|
|
52
54
|
/**
|
|
53
55
|
* Remove an event listener
|
|
54
56
|
*/
|
package/dist/flows/Flow.js
CHANGED
package/dist/types.d.ts
CHANGED
|
@@ -101,7 +101,7 @@ export interface ErrorData {
|
|
|
101
101
|
/**
|
|
102
102
|
* Event types that can be listened to
|
|
103
103
|
*/
|
|
104
|
-
export type FlowEventType = 'completed' | 'exit' | 'navigated' | 'authenticationSucceeded' | 'authenticationFailed' | 'error' | 'loaded' | 'onboardingCompleted';
|
|
104
|
+
export type FlowEventType = 'completed' | 'exit' | 'navigated' | 'authenticationSucceeded' | 'authenticationFailed' | 'error' | 'loaded' | 'onboardingCompleted' | 'onboardingRequired';
|
|
105
105
|
/**
|
|
106
106
|
* Event callback function types
|
|
107
107
|
*/
|
|
@@ -123,6 +123,7 @@ export interface FlowInstance {
|
|
|
123
123
|
on(event: 'error', callback: (data: ErrorData) => void): void;
|
|
124
124
|
on(event: 'loaded', callback: () => void): void;
|
|
125
125
|
on(event: 'onboardingCompleted', callback: () => void): void;
|
|
126
|
+
on(event: 'onboardingRequired', callback: () => void): void;
|
|
126
127
|
/**
|
|
127
128
|
* Remove an event listener for this flow
|
|
128
129
|
* @param event - The event type to remove listener for
|
package/package.json
CHANGED