@checkflow/sdk 1.1.3 → 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/vue.mjs CHANGED
@@ -26,7 +26,7 @@ function useCheckflow() {
26
26
  },
27
27
  highlight: async () => {
28
28
  if (typeof window === "undefined") return [];
29
- const { startHighlighting } = await import("./highlighter-W4XDALRE.mjs");
29
+ const { startHighlighting } = await import("./highlighter-EMSU6IYQ.mjs");
30
30
  return startHighlighting();
31
31
  },
32
32
  show: async () => {
@@ -0,0 +1,10 @@
1
+ import {
2
+ mountWidget,
3
+ openFeedbackModal,
4
+ unmountWidget
5
+ } from "./chunk-NRA75GGU.mjs";
6
+ export {
7
+ mountWidget,
8
+ openFeedbackModal,
9
+ unmountWidget
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkflow/sdk",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "Lightweight bug reporter & feedback SDK for Checkflow — with screenshot capture, element highlighting, and framework integrations",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,73 +0,0 @@
1
- interface CheckflowConfig {
2
- apiKey: string;
3
- endpoint?: string;
4
- projectId?: string;
5
- environment?: string;
6
- enabled?: boolean;
7
- widget?: WidgetConfig;
8
- /** Auto-load html2canvas for screenshot support (default: true) */
9
- enableScreenshots?: boolean;
10
- }
11
- interface WidgetConfig {
12
- position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
13
- color?: string;
14
- text?: string;
15
- showOnInit?: boolean;
16
- }
17
- interface FeedbackPayload {
18
- title: string;
19
- description?: string;
20
- type?: 'BUG' | 'FEATURE' | 'IMPROVEMENT' | 'QUESTION';
21
- priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
22
- url?: string;
23
- environment?: string;
24
- viewport?: {
25
- width: number;
26
- height: number;
27
- device: string;
28
- };
29
- user_agent?: string;
30
- browser?: string;
31
- os?: string;
32
- locale?: string;
33
- timezone?: string;
34
- console_logs?: any[];
35
- network_logs?: any[];
36
- performance_metrics?: Record<string, number>;
37
- javascript_errors?: any[];
38
- screenshot_url?: string;
39
- sdk_version?: string;
40
- reporter_name?: string;
41
- reporter_email?: string;
42
- }
43
- interface FeedbackResponse {
44
- success: boolean;
45
- data?: {
46
- id: string;
47
- short_id: string;
48
- };
49
- error?: {
50
- message: string;
51
- code: string;
52
- };
53
- }
54
-
55
- /**
56
- * Element highlighter for visual bug reporting.
57
- * Allows users to click on elements to highlight them and annotate.
58
- */
59
- interface HighlightAnnotation {
60
- selector: string;
61
- tagName: string;
62
- text?: string;
63
- rect: {
64
- x: number;
65
- y: number;
66
- width: number;
67
- height: number;
68
- };
69
- note?: string;
70
- }
71
- declare function startHighlighting(): Promise<HighlightAnnotation[]>;
72
-
73
- export { type CheckflowConfig as C, type FeedbackPayload as F, type HighlightAnnotation as H, type WidgetConfig as W, type FeedbackResponse as a, startHighlighting as s };
@@ -1,73 +0,0 @@
1
- interface CheckflowConfig {
2
- apiKey: string;
3
- endpoint?: string;
4
- projectId?: string;
5
- environment?: string;
6
- enabled?: boolean;
7
- widget?: WidgetConfig;
8
- /** Auto-load html2canvas for screenshot support (default: true) */
9
- enableScreenshots?: boolean;
10
- }
11
- interface WidgetConfig {
12
- position?: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
13
- color?: string;
14
- text?: string;
15
- showOnInit?: boolean;
16
- }
17
- interface FeedbackPayload {
18
- title: string;
19
- description?: string;
20
- type?: 'BUG' | 'FEATURE' | 'IMPROVEMENT' | 'QUESTION';
21
- priority?: 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
22
- url?: string;
23
- environment?: string;
24
- viewport?: {
25
- width: number;
26
- height: number;
27
- device: string;
28
- };
29
- user_agent?: string;
30
- browser?: string;
31
- os?: string;
32
- locale?: string;
33
- timezone?: string;
34
- console_logs?: any[];
35
- network_logs?: any[];
36
- performance_metrics?: Record<string, number>;
37
- javascript_errors?: any[];
38
- screenshot_url?: string;
39
- sdk_version?: string;
40
- reporter_name?: string;
41
- reporter_email?: string;
42
- }
43
- interface FeedbackResponse {
44
- success: boolean;
45
- data?: {
46
- id: string;
47
- short_id: string;
48
- };
49
- error?: {
50
- message: string;
51
- code: string;
52
- };
53
- }
54
-
55
- /**
56
- * Element highlighter for visual bug reporting.
57
- * Allows users to click on elements to highlight them and annotate.
58
- */
59
- interface HighlightAnnotation {
60
- selector: string;
61
- tagName: string;
62
- text?: string;
63
- rect: {
64
- x: number;
65
- y: number;
66
- width: number;
67
- height: number;
68
- };
69
- note?: string;
70
- }
71
- declare function startHighlighting(): Promise<HighlightAnnotation[]>;
72
-
73
- export { type CheckflowConfig as C, type FeedbackPayload as F, type HighlightAnnotation as H, type WidgetConfig as W, type FeedbackResponse as a, startHighlighting as s };
@@ -1,8 +0,0 @@
1
- import {
2
- isHighlighting,
3
- startHighlighting
4
- } from "./chunk-CD33QAA6.mjs";
5
- export {
6
- isHighlighting,
7
- startHighlighting
8
- };