@checkflow/sdk 1.1.2 → 1.1.4

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/react.mjs CHANGED
@@ -17,12 +17,12 @@ function useCheckflowFeedback() {
17
17
  },
18
18
  screenshot: async () => {
19
19
  if (typeof window === "undefined") return null;
20
- const { captureScreenshot } = await import("./screenshot-CUMBPE2T.mjs");
20
+ const { captureScreenshot } = await import("./screenshot-HXKGZNCZ.mjs");
21
21
  return captureScreenshot();
22
22
  },
23
23
  highlight: async () => {
24
24
  if (typeof window === "undefined") return [];
25
- const { startHighlighting } = await import("./highlighter-W4XDALRE.mjs");
25
+ const { startHighlighting } = await import("./highlighter-EMSU6IYQ.mjs");
26
26
  return startHighlighting();
27
27
  },
28
28
  show: async () => {
@@ -0,0 +1,10 @@
1
+ import {
2
+ captureScreenshot,
3
+ clearScreenshot,
4
+ getLastScreenshot
5
+ } from "./chunk-6EVTRC5X.mjs";
6
+ export {
7
+ captureScreenshot,
8
+ clearScreenshot,
9
+ getLastScreenshot
10
+ };
@@ -9,7 +9,7 @@ interface CheckflowConfig {
9
9
  enableScreenshots?: boolean;
10
10
  }
11
11
  interface WidgetConfig {
12
- position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
12
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'center';
13
13
  color?: string;
14
14
  text?: string;
15
15
  showOnInit?: boolean;
@@ -37,6 +37,8 @@ interface FeedbackPayload {
37
37
  javascript_errors?: any[];
38
38
  screenshot_url?: string;
39
39
  sdk_version?: string;
40
+ reporter_name?: string;
41
+ reporter_email?: string;
40
42
  }
41
43
  interface FeedbackResponse {
42
44
  success: boolean;
@@ -50,22 +52,4 @@ interface FeedbackResponse {
50
52
  };
51
53
  }
52
54
 
53
- /**
54
- * Element highlighter for visual bug reporting.
55
- * Allows users to click on elements to highlight them and annotate.
56
- */
57
- interface HighlightAnnotation {
58
- selector: string;
59
- tagName: string;
60
- text?: string;
61
- rect: {
62
- x: number;
63
- y: number;
64
- width: number;
65
- height: number;
66
- };
67
- note?: string;
68
- }
69
- declare function startHighlighting(): Promise<HighlightAnnotation[]>;
70
-
71
- export { type CheckflowConfig as C, type FeedbackPayload as F, type HighlightAnnotation as H, type WidgetConfig as W, type FeedbackResponse as a, startHighlighting as s };
55
+ export type { CheckflowConfig as C, FeedbackPayload as F, WidgetConfig as W, FeedbackResponse as a };
@@ -9,7 +9,7 @@ interface CheckflowConfig {
9
9
  enableScreenshots?: boolean;
10
10
  }
11
11
  interface WidgetConfig {
12
- position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
12
+ position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'center';
13
13
  color?: string;
14
14
  text?: string;
15
15
  showOnInit?: boolean;
@@ -37,6 +37,8 @@ interface FeedbackPayload {
37
37
  javascript_errors?: any[];
38
38
  screenshot_url?: string;
39
39
  sdk_version?: string;
40
+ reporter_name?: string;
41
+ reporter_email?: string;
40
42
  }
41
43
  interface FeedbackResponse {
42
44
  success: boolean;
@@ -50,22 +52,4 @@ interface FeedbackResponse {
50
52
  };
51
53
  }
52
54
 
53
- /**
54
- * Element highlighter for visual bug reporting.
55
- * Allows users to click on elements to highlight them and annotate.
56
- */
57
- interface HighlightAnnotation {
58
- selector: string;
59
- tagName: string;
60
- text?: string;
61
- rect: {
62
- x: number;
63
- y: number;
64
- width: number;
65
- height: number;
66
- };
67
- note?: string;
68
- }
69
- declare function startHighlighting(): Promise<HighlightAnnotation[]>;
70
-
71
- export { type CheckflowConfig as C, type FeedbackPayload as F, type HighlightAnnotation as H, type WidgetConfig as W, type FeedbackResponse as a, startHighlighting as s };
55
+ export type { CheckflowConfig as C, FeedbackPayload as F, WidgetConfig as W, FeedbackResponse as a };
package/dist/vue.d.mts CHANGED
@@ -1,4 +1,5 @@
1
- import { C as CheckflowConfig, a as FeedbackResponse, H as HighlightAnnotation } from './highlighter-D_wZWHlS.mjs';
1
+ import { H as HighlightAnnotation } from './highlighter-D0FpwCSU.mjs';
2
+ import { C as CheckflowConfig, a as FeedbackResponse } from './types-CBCRUGst.mjs';
2
3
 
3
4
  /**
4
5
  * Vue 3 plugin factory.
package/dist/vue.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { C as CheckflowConfig, a as FeedbackResponse, H as HighlightAnnotation } from './highlighter-D_wZWHlS.js';
1
+ import { H as HighlightAnnotation } from './highlighter-D0FpwCSU.js';
2
+ import { C as CheckflowConfig, a as FeedbackResponse } from './types-CBCRUGst.js';
2
3
 
3
4
  /**
4
5
  * Vue 3 plugin factory.