@checkflow/sdk 1.1.1 → 1.1.3

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.
Files changed (46) hide show
  1. package/README.md +63 -219
  2. package/dist/chunk-6EVTRC5X.mjs +59 -0
  3. package/dist/chunk-CD33QAA6.mjs +131 -0
  4. package/dist/highlighter-Dx2zURb6.d.mts +73 -0
  5. package/dist/highlighter-Dx2zURb6.d.ts +73 -0
  6. package/dist/highlighter-W4XDALRE.mjs +8 -0
  7. package/dist/index.d.mts +46 -0
  8. package/dist/index.d.ts +43 -20
  9. package/dist/index.js +974 -17219
  10. package/dist/index.mjs +802 -0
  11. package/dist/react.d.mts +28 -0
  12. package/dist/react.d.ts +28 -0
  13. package/dist/react.js +1118 -0
  14. package/dist/react.mjs +51 -0
  15. package/dist/screenshot-HXKGZNCZ.mjs +10 -0
  16. package/dist/vue.d.mts +26 -0
  17. package/dist/vue.d.ts +26 -0
  18. package/dist/vue.js +1119 -0
  19. package/dist/vue.mjs +53 -0
  20. package/package.json +38 -53
  21. package/dist/analytics-tracker.d.ts +0 -112
  22. package/dist/annotation/editor.d.ts +0 -72
  23. package/dist/annotation/index.d.ts +0 -9
  24. package/dist/annotation/styles.d.ts +0 -6
  25. package/dist/annotation/toolbar.d.ts +0 -32
  26. package/dist/annotation/types.d.ts +0 -85
  27. package/dist/api-client.d.ts +0 -76
  28. package/dist/checkflow.css +0 -1
  29. package/dist/checkflow.d.ts +0 -112
  30. package/dist/context-capture.d.ts +0 -42
  31. package/dist/error-capture.d.ts +0 -60
  32. package/dist/index.esm.js +0 -17210
  33. package/dist/index.esm.js.map +0 -1
  34. package/dist/index.js.map +0 -1
  35. package/dist/optimized-recorder.d.ts +0 -94
  36. package/dist/privacy/detector.d.ts +0 -56
  37. package/dist/privacy/index.d.ts +0 -8
  38. package/dist/privacy/masker.d.ts +0 -43
  39. package/dist/privacy/types.d.ts +0 -54
  40. package/dist/react/index.d.ts +0 -77
  41. package/dist/session-recording-rrweb.d.ts +0 -100
  42. package/dist/session-recording.d.ts +0 -74
  43. package/dist/types.d.ts +0 -299
  44. package/dist/vue/index.d.ts +0 -55
  45. package/dist/widget/Widget.d.ts +0 -98
  46. package/dist/widget/index.d.ts +0 -2
@@ -0,0 +1,28 @@
1
+ import { a as FeedbackResponse, H as HighlightAnnotation, C as CheckflowConfig } from './highlighter-Dx2zURb6.mjs';
2
+
3
+ /**
4
+ * Initialize Checkflow in a React/Next.js app.
5
+ * Call this in your root layout or _app file.
6
+ */
7
+ declare function useCheckflowInit(config: CheckflowConfig): void;
8
+ /**
9
+ * Hook to send feedback programmatically from React components.
10
+ */
11
+ declare function useCheckflowFeedback(): {
12
+ send: (data: {
13
+ title: string;
14
+ description?: string;
15
+ type?: string;
16
+ priority?: string;
17
+ }) => Promise<FeedbackResponse>;
18
+ screenshot: () => Promise<string | null>;
19
+ highlight: () => Promise<HighlightAnnotation[]>;
20
+ show: () => Promise<void>;
21
+ hide: () => Promise<void>;
22
+ };
23
+ /**
24
+ * Cleanup function for React useEffect.
25
+ */
26
+ declare function destroyCheckflow(): void;
27
+
28
+ export { destroyCheckflow, useCheckflowFeedback, useCheckflowInit };
@@ -0,0 +1,28 @@
1
+ import { a as FeedbackResponse, H as HighlightAnnotation, C as CheckflowConfig } from './highlighter-Dx2zURb6.js';
2
+
3
+ /**
4
+ * Initialize Checkflow in a React/Next.js app.
5
+ * Call this in your root layout or _app file.
6
+ */
7
+ declare function useCheckflowInit(config: CheckflowConfig): void;
8
+ /**
9
+ * Hook to send feedback programmatically from React components.
10
+ */
11
+ declare function useCheckflowFeedback(): {
12
+ send: (data: {
13
+ title: string;
14
+ description?: string;
15
+ type?: string;
16
+ priority?: string;
17
+ }) => Promise<FeedbackResponse>;
18
+ screenshot: () => Promise<string | null>;
19
+ highlight: () => Promise<HighlightAnnotation[]>;
20
+ show: () => Promise<void>;
21
+ hide: () => Promise<void>;
22
+ };
23
+ /**
24
+ * Cleanup function for React useEffect.
25
+ */
26
+ declare function destroyCheckflow(): void;
27
+
28
+ export { destroyCheckflow, useCheckflowFeedback, useCheckflowInit };