@promptbook/wizard 0.100.0-1 → 0.100.0-3
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/esm/index.es.js +96 -74
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/config.d.ts +0 -10
- package/esm/typings/src/version.d.ts +1 -1
- package/esm/typings/src/wizard/wizard.d.ts +14 -4
- package/package.json +2 -2
- package/umd/index.umd.js +96 -74
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/remote-server/connection-improvements.test.d.ts +0 -1
- package/esm/typings/src/remote-server/utils/connectionProgress.d.ts +0 -72
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|
@@ -1,72 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Connection progress utilities for better user experience during authentication
|
3
|
-
*/
|
4
|
-
/**
|
5
|
-
* Connection status types for better progress indication
|
6
|
-
*
|
7
|
-
* @private
|
8
|
-
*/
|
9
|
-
export type ConnectionStatus = 'connecting' | 'authenticating' | 'connected' | 'disconnected' | 'error' | 'timeout';
|
10
|
-
/**
|
11
|
-
* Progress callback function type for connection status updates
|
12
|
-
*
|
13
|
-
* @private
|
14
|
-
*/
|
15
|
-
export type ConnectionProgressCallback = (status: ConnectionStatus, message?: string) => void;
|
16
|
-
/**
|
17
|
-
* Enhanced connection options with progress reporting
|
18
|
-
*
|
19
|
-
* @private
|
20
|
-
*/
|
21
|
-
export interface ConnectionProgressOptions {
|
22
|
-
onProgress?: ConnectionProgressCallback;
|
23
|
-
enableProgressReporting?: boolean;
|
24
|
-
}
|
25
|
-
/**
|
26
|
-
* Default progress messages for different connection states
|
27
|
-
*
|
28
|
-
* @private
|
29
|
-
*/
|
30
|
-
export declare const DEFAULT_PROGRESS_MESSAGES: {
|
31
|
-
readonly connecting: "Connecting to Promptbook server...";
|
32
|
-
readonly authenticating: "Authenticating with social provider (Facebook, Google, etc.)...";
|
33
|
-
readonly connected: "Successfully connected to Promptbook server";
|
34
|
-
readonly disconnected: "Disconnected from Promptbook server";
|
35
|
-
readonly error: "Connection failed";
|
36
|
-
readonly timeout: "Connection timed out - this may happen during social login flows";
|
37
|
-
};
|
38
|
-
/**
|
39
|
-
* Creates a progress reporter for connection status
|
40
|
-
* This can be used by frontend applications to show connection progress
|
41
|
-
*
|
42
|
-
* @private
|
43
|
-
*/
|
44
|
-
export declare function createConnectionProgressReporter(callback?: ConnectionProgressCallback): ConnectionProgressCallback;
|
45
|
-
/**
|
46
|
-
* Timeout constants with descriptions for different connection types
|
47
|
-
*
|
48
|
-
* @private
|
49
|
-
*/
|
50
|
-
export declare const CONNECTION_TIMEOUTS: {
|
51
|
-
/** Standard timeout for regular connections */
|
52
|
-
readonly STANDARD: number;
|
53
|
-
/** Extended timeout for OAuth flows that require user interaction */
|
54
|
-
readonly OAUTH: number;
|
55
|
-
/** Short timeout for quick health checks */
|
56
|
-
readonly HEALTH_CHECK: number;
|
57
|
-
};
|
58
|
-
/**
|
59
|
-
* Helper function to get appropriate timeout based on connection type
|
60
|
-
*
|
61
|
-
* @private
|
62
|
-
*/
|
63
|
-
export declare function getConnectionTimeout(type: 'standard' | 'oauth' | 'health_check'): number;
|
64
|
-
/**
|
65
|
-
* Creates a timeout wrapper with progress reporting
|
66
|
-
*
|
67
|
-
* @private
|
68
|
-
*/
|
69
|
-
export declare function createTimeoutWithProgress(timeoutMs: number, onProgress?: ConnectionProgressCallback): Promise<never>;
|
70
|
-
/**
|
71
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
72
|
-
*/
|