@floe-ai/sdk 0.1.0-dev.14 → 0.1.0-dev.16
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-sdk/floe-sdk.es.js +3547 -3318
- package/dist-sdk/floe-sdk.es.js.map +1 -1
- package/dist-sdk/floe-sdk.iife.js +137 -110
- package/dist-sdk/floe-sdk.iife.js.map +1 -1
- package/dist-sdk/floe-sdk.umd.js +137 -110
- package/dist-sdk/floe-sdk.umd.js.map +1 -1
- package/dist-sdk/index.d.ts +20 -0
- package/package.json +1 -1
package/dist-sdk/index.d.ts
CHANGED
|
@@ -72,6 +72,20 @@ export declare interface FloeConfig {
|
|
|
72
72
|
userInfo?: FloeUserInfo;
|
|
73
73
|
/** Skip the welcome modal for returning users */
|
|
74
74
|
skipOnboardingModal?: boolean;
|
|
75
|
+
/** Nudge configuration - Intercom Fin-style sliding notification */
|
|
76
|
+
nudge?: FloeNudgeConfig;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Nudge configuration for Intercom Fin-style sliding notification
|
|
81
|
+
*/
|
|
82
|
+
export declare interface FloeNudgeConfig {
|
|
83
|
+
/** Main nudge message (default: "Hi 👋 How can I help you today?") */
|
|
84
|
+
text?: string;
|
|
85
|
+
/** Auto-show nudge when minimized (default: true) */
|
|
86
|
+
autoShow?: boolean;
|
|
87
|
+
/** Auto-hide after ms, 0 = never (default: 0) */
|
|
88
|
+
autoHideDelay?: number;
|
|
75
89
|
}
|
|
76
90
|
|
|
77
91
|
/**
|
|
@@ -139,6 +153,7 @@ declare class OnboardingSDK extends EventEmitter {
|
|
|
139
153
|
private endUserStatus;
|
|
140
154
|
private connectionProgress;
|
|
141
155
|
private isReturningUser;
|
|
156
|
+
private hasSkippedOnboarding;
|
|
142
157
|
private _isMinimized;
|
|
143
158
|
constructor(config: SDKConfig);
|
|
144
159
|
/**
|
|
@@ -537,6 +552,11 @@ declare interface SDKConfig {
|
|
|
537
552
|
userInfo?: UserInfo;
|
|
538
553
|
skipOnboardingModal?: boolean;
|
|
539
554
|
enableDiscoveryPopup?: boolean;
|
|
555
|
+
nudge?: {
|
|
556
|
+
text?: string;
|
|
557
|
+
autoShow?: boolean;
|
|
558
|
+
autoHideDelay?: number;
|
|
559
|
+
};
|
|
540
560
|
}
|
|
541
561
|
|
|
542
562
|
declare interface UIAction {
|