featurely-site-manager 1.1.10 → 1.1.14
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/index.d.mts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +481 -52
- package/dist/index.mjs +481 -52
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -90,6 +90,8 @@ interface SiteManagerConfig {
|
|
|
90
90
|
onUpdateAvailable?: (versionInfo: VersionCheckResponse) => void;
|
|
91
91
|
onUpdateRequired?: (versionInfo: VersionCheckResponse) => void;
|
|
92
92
|
onError?: (error: Error) => void;
|
|
93
|
+
debugMode?: boolean;
|
|
94
|
+
environment?: string;
|
|
93
95
|
}
|
|
94
96
|
declare class SiteManager {
|
|
95
97
|
private config;
|
|
@@ -105,9 +107,24 @@ declare class SiteManager {
|
|
|
105
107
|
private consecutiveFetchFailures;
|
|
106
108
|
private pageTrackingSetup;
|
|
107
109
|
private currentPagePath;
|
|
110
|
+
private currentPageSearch;
|
|
108
111
|
private pageEntryTime;
|
|
109
112
|
private static readonly MAX_CONSECUTIVE_FAILURES;
|
|
110
113
|
private lastVersionCheck;
|
|
114
|
+
private debugOverlayEl;
|
|
115
|
+
private debugRefreshId;
|
|
116
|
+
private debugLogs;
|
|
117
|
+
private networkLog;
|
|
118
|
+
private analyticsEventsSent;
|
|
119
|
+
private debugMinimized;
|
|
120
|
+
private debugTab;
|
|
121
|
+
private recentAnalyticsEvents;
|
|
122
|
+
private testFlagKey;
|
|
123
|
+
private testFeedback;
|
|
124
|
+
private errorCount;
|
|
125
|
+
private consoleIntercepted;
|
|
126
|
+
private originalConsoleError;
|
|
127
|
+
private originalConsoleWarn;
|
|
111
128
|
constructor(config: SiteManagerConfig);
|
|
112
129
|
init(): Promise<void>;
|
|
113
130
|
destroy(): void;
|
|
@@ -126,8 +143,16 @@ declare class SiteManager {
|
|
|
126
143
|
private startAnalyticsFlushing;
|
|
127
144
|
private stopAnalyticsFlushing;
|
|
128
145
|
private flushAnalytics;
|
|
146
|
+
private debugLog;
|
|
147
|
+
private debugNetwork;
|
|
148
|
+
private stopDebugOverlay;
|
|
149
|
+
private setupGlobalErrorCapture;
|
|
150
|
+
private setupDebugOverlay;
|
|
151
|
+
private renderDebugOverlay;
|
|
152
|
+
private handleTestAction;
|
|
129
153
|
private setupPageTracking;
|
|
130
154
|
private trackPageView;
|
|
155
|
+
private trackPageExit;
|
|
131
156
|
private onNavigate;
|
|
132
157
|
private generateSessionId;
|
|
133
158
|
checkVersion(currentVersion?: string): Promise<VersionCheckResponse | null>;
|
package/dist/index.d.ts
CHANGED
|
@@ -90,6 +90,8 @@ interface SiteManagerConfig {
|
|
|
90
90
|
onUpdateAvailable?: (versionInfo: VersionCheckResponse) => void;
|
|
91
91
|
onUpdateRequired?: (versionInfo: VersionCheckResponse) => void;
|
|
92
92
|
onError?: (error: Error) => void;
|
|
93
|
+
debugMode?: boolean;
|
|
94
|
+
environment?: string;
|
|
93
95
|
}
|
|
94
96
|
declare class SiteManager {
|
|
95
97
|
private config;
|
|
@@ -105,9 +107,24 @@ declare class SiteManager {
|
|
|
105
107
|
private consecutiveFetchFailures;
|
|
106
108
|
private pageTrackingSetup;
|
|
107
109
|
private currentPagePath;
|
|
110
|
+
private currentPageSearch;
|
|
108
111
|
private pageEntryTime;
|
|
109
112
|
private static readonly MAX_CONSECUTIVE_FAILURES;
|
|
110
113
|
private lastVersionCheck;
|
|
114
|
+
private debugOverlayEl;
|
|
115
|
+
private debugRefreshId;
|
|
116
|
+
private debugLogs;
|
|
117
|
+
private networkLog;
|
|
118
|
+
private analyticsEventsSent;
|
|
119
|
+
private debugMinimized;
|
|
120
|
+
private debugTab;
|
|
121
|
+
private recentAnalyticsEvents;
|
|
122
|
+
private testFlagKey;
|
|
123
|
+
private testFeedback;
|
|
124
|
+
private errorCount;
|
|
125
|
+
private consoleIntercepted;
|
|
126
|
+
private originalConsoleError;
|
|
127
|
+
private originalConsoleWarn;
|
|
111
128
|
constructor(config: SiteManagerConfig);
|
|
112
129
|
init(): Promise<void>;
|
|
113
130
|
destroy(): void;
|
|
@@ -126,8 +143,16 @@ declare class SiteManager {
|
|
|
126
143
|
private startAnalyticsFlushing;
|
|
127
144
|
private stopAnalyticsFlushing;
|
|
128
145
|
private flushAnalytics;
|
|
146
|
+
private debugLog;
|
|
147
|
+
private debugNetwork;
|
|
148
|
+
private stopDebugOverlay;
|
|
149
|
+
private setupGlobalErrorCapture;
|
|
150
|
+
private setupDebugOverlay;
|
|
151
|
+
private renderDebugOverlay;
|
|
152
|
+
private handleTestAction;
|
|
129
153
|
private setupPageTracking;
|
|
130
154
|
private trackPageView;
|
|
155
|
+
private trackPageExit;
|
|
131
156
|
private onNavigate;
|
|
132
157
|
private generateSessionId;
|
|
133
158
|
checkVersion(currentVersion?: string): Promise<VersionCheckResponse | null>;
|