@checkflow/sdk 1.1.4 → 1.1.5

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 CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CheckflowConfig, F as FeedbackPayload, a as FeedbackResponse } from './types-CBCRUGst.mjs';
2
- export { W as WidgetConfig } from './types-CBCRUGst.mjs';
1
+ import { C as CheckflowConfig, F as FeedbackPayload, a as FeedbackResponse } from './types-fCeePy5c.mjs';
2
+ export { B as ButtonConfig, U as UserProfile, W as WidgetConfig } from './types-fCeePy5c.mjs';
3
3
 
4
4
  /**
5
5
  * Screenshot capture using the browser's native getDisplayMedia API.
@@ -34,6 +34,19 @@ declare function sendFeedback(data: Pick<FeedbackPayload, 'title' | 'description
34
34
  * Show the feedback widget.
35
35
  */
36
36
  declare function showWidget(): void;
37
+ /**
38
+ * Update the user profile for the SDK.
39
+ * Call this when user logs in/out to update reporter info.
40
+ */
41
+ declare function setUser(user: CheckflowConfig['user']): void;
42
+ /**
43
+ * Clear the user profile.
44
+ */
45
+ declare function clearUser(): void;
46
+ /**
47
+ * Open the feedback modal programmatically (without showing the trigger button).
48
+ */
49
+ declare function openFeedbackModal(): void;
37
50
  /**
38
51
  * Hide and remove the feedback widget.
39
52
  */
@@ -43,4 +56,4 @@ declare function hideWidget(): void;
43
56
  */
44
57
  declare function destroy(): void;
45
58
 
46
- export { CheckflowConfig, FeedbackPayload, FeedbackResponse, captureScreenshot, destroy, hideWidget, init, sendFeedback, showWidget };
59
+ export { CheckflowConfig, FeedbackPayload, FeedbackResponse, captureScreenshot, clearUser, destroy, hideWidget, init, openFeedbackModal, sendFeedback, setUser, showWidget };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CheckflowConfig, F as FeedbackPayload, a as FeedbackResponse } from './types-CBCRUGst.js';
2
- export { W as WidgetConfig } from './types-CBCRUGst.js';
1
+ import { C as CheckflowConfig, F as FeedbackPayload, a as FeedbackResponse } from './types-fCeePy5c.js';
2
+ export { B as ButtonConfig, U as UserProfile, W as WidgetConfig } from './types-fCeePy5c.js';
3
3
 
4
4
  /**
5
5
  * Screenshot capture using the browser's native getDisplayMedia API.
@@ -34,6 +34,19 @@ declare function sendFeedback(data: Pick<FeedbackPayload, 'title' | 'description
34
34
  * Show the feedback widget.
35
35
  */
36
36
  declare function showWidget(): void;
37
+ /**
38
+ * Update the user profile for the SDK.
39
+ * Call this when user logs in/out to update reporter info.
40
+ */
41
+ declare function setUser(user: CheckflowConfig['user']): void;
42
+ /**
43
+ * Clear the user profile.
44
+ */
45
+ declare function clearUser(): void;
46
+ /**
47
+ * Open the feedback modal programmatically (without showing the trigger button).
48
+ */
49
+ declare function openFeedbackModal(): void;
37
50
  /**
38
51
  * Hide and remove the feedback widget.
39
52
  */
@@ -43,4 +56,4 @@ declare function hideWidget(): void;
43
56
  */
44
57
  declare function destroy(): void;
45
58
 
46
- export { CheckflowConfig, FeedbackPayload, FeedbackResponse, captureScreenshot, destroy, hideWidget, init, sendFeedback, showWidget };
59
+ export { CheckflowConfig, FeedbackPayload, FeedbackResponse, captureScreenshot, clearUser, destroy, hideWidget, init, openFeedbackModal, sendFeedback, setUser, showWidget };