@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.
- package/README.md +63 -219
- package/dist/chunk-6EVTRC5X.mjs +59 -0
- package/dist/chunk-CD33QAA6.mjs +131 -0
- package/dist/highlighter-Dx2zURb6.d.mts +73 -0
- package/dist/highlighter-Dx2zURb6.d.ts +73 -0
- package/dist/highlighter-W4XDALRE.mjs +8 -0
- package/dist/index.d.mts +46 -0
- package/dist/index.d.ts +43 -20
- package/dist/index.js +974 -17219
- package/dist/index.mjs +802 -0
- package/dist/react.d.mts +28 -0
- package/dist/react.d.ts +28 -0
- package/dist/react.js +1118 -0
- package/dist/react.mjs +51 -0
- package/dist/screenshot-HXKGZNCZ.mjs +10 -0
- package/dist/vue.d.mts +26 -0
- package/dist/vue.d.ts +26 -0
- package/dist/vue.js +1119 -0
- package/dist/vue.mjs +53 -0
- package/package.json +38 -53
- package/dist/analytics-tracker.d.ts +0 -112
- package/dist/annotation/editor.d.ts +0 -72
- package/dist/annotation/index.d.ts +0 -9
- package/dist/annotation/styles.d.ts +0 -6
- package/dist/annotation/toolbar.d.ts +0 -32
- package/dist/annotation/types.d.ts +0 -85
- package/dist/api-client.d.ts +0 -76
- package/dist/checkflow.css +0 -1
- package/dist/checkflow.d.ts +0 -112
- package/dist/context-capture.d.ts +0 -42
- package/dist/error-capture.d.ts +0 -60
- package/dist/index.esm.js +0 -17210
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/optimized-recorder.d.ts +0 -94
- package/dist/privacy/detector.d.ts +0 -56
- package/dist/privacy/index.d.ts +0 -8
- package/dist/privacy/masker.d.ts +0 -43
- package/dist/privacy/types.d.ts +0 -54
- package/dist/react/index.d.ts +0 -77
- package/dist/session-recording-rrweb.d.ts +0 -100
- package/dist/session-recording.d.ts +0 -74
- package/dist/types.d.ts +0 -299
- package/dist/vue/index.d.ts +0 -55
- package/dist/widget/Widget.d.ts +0 -98
- package/dist/widget/index.d.ts +0 -2
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { C as CheckflowConfig, F as FeedbackPayload, H as HighlightAnnotation, a as FeedbackResponse } from './highlighter-Dx2zURb6.mjs';
|
|
2
|
+
export { W as WidgetConfig, s as startHighlighting } from './highlighter-Dx2zURb6.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Screenshot capture using the browser's native getDisplayMedia API.
|
|
6
|
+
* This prompts the user for permission to capture their tab/screen,
|
|
7
|
+
* producing a real screenshot of the visible page.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Capture a screenshot using getDisplayMedia (browser permission dialog).
|
|
11
|
+
* Returns a base64 data URL of the captured image, or null on failure/cancel.
|
|
12
|
+
*/
|
|
13
|
+
declare function captureScreenshot(): Promise<string | null>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the Checkflow SDK.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```js
|
|
20
|
+
* import { init } from '@checkflow/sdk';
|
|
21
|
+
* init({ apiKey: 'ck_live_...', widget: { position: 'bottom-right' } });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function init(cfg: CheckflowConfig): void;
|
|
25
|
+
/**
|
|
26
|
+
* Send feedback programmatically.
|
|
27
|
+
*/
|
|
28
|
+
declare function sendFeedback(data: Pick<FeedbackPayload, 'title' | 'description' | 'type' | 'priority' | 'screenshot_url' | 'reporter_name' | 'reporter_email'> & {
|
|
29
|
+
screenshot_data?: string;
|
|
30
|
+
annotations?: HighlightAnnotation[];
|
|
31
|
+
}): Promise<FeedbackResponse>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Show the feedback widget.
|
|
35
|
+
*/
|
|
36
|
+
declare function showWidget(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Hide and remove the feedback widget.
|
|
39
|
+
*/
|
|
40
|
+
declare function hideWidget(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Destroy the SDK instance.
|
|
43
|
+
*/
|
|
44
|
+
declare function destroy(): void;
|
|
45
|
+
|
|
46
|
+
export { CheckflowConfig, FeedbackPayload, FeedbackResponse, HighlightAnnotation, captureScreenshot, destroy, hideWidget, init, sendFeedback, showWidget };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,23 +1,46 @@
|
|
|
1
|
+
import { C as CheckflowConfig, F as FeedbackPayload, H as HighlightAnnotation, a as FeedbackResponse } from './highlighter-Dx2zURb6.js';
|
|
2
|
+
export { W as WidgetConfig, s as startHighlighting } from './highlighter-Dx2zURb6.js';
|
|
3
|
+
|
|
1
4
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
5
|
+
* Screenshot capture using the browser's native getDisplayMedia API.
|
|
6
|
+
* This prompts the user for permission to capture their tab/screen,
|
|
7
|
+
* producing a real screenshot of the visible page.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Capture a screenshot using getDisplayMedia (browser permission dialog).
|
|
11
|
+
* Returns a base64 data URL of the captured image, or null on failure/cancel.
|
|
12
|
+
*/
|
|
13
|
+
declare function captureScreenshot(): Promise<string | null>;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Initialize the Checkflow SDK.
|
|
4
17
|
*
|
|
5
|
-
* @
|
|
18
|
+
* @example
|
|
19
|
+
* ```js
|
|
20
|
+
* import { init } from '@checkflow/sdk';
|
|
21
|
+
* init({ apiKey: 'ck_live_...', widget: { position: 'bottom-right' } });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
declare function init(cfg: CheckflowConfig): void;
|
|
25
|
+
/**
|
|
26
|
+
* Send feedback programmatically.
|
|
27
|
+
*/
|
|
28
|
+
declare function sendFeedback(data: Pick<FeedbackPayload, 'title' | 'description' | 'type' | 'priority' | 'screenshot_url' | 'reporter_name' | 'reporter_email'> & {
|
|
29
|
+
screenshot_data?: string;
|
|
30
|
+
annotations?: HighlightAnnotation[];
|
|
31
|
+
}): Promise<FeedbackResponse>;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Show the feedback widget.
|
|
35
|
+
*/
|
|
36
|
+
declare function showWidget(): void;
|
|
37
|
+
/**
|
|
38
|
+
* Hide and remove the feedback widget.
|
|
39
|
+
*/
|
|
40
|
+
declare function hideWidget(): void;
|
|
41
|
+
/**
|
|
42
|
+
* Destroy the SDK instance.
|
|
6
43
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export {
|
|
10
|
-
export { ErrorCapture } from './error-capture';
|
|
11
|
-
export { FeedbackWidget } from './widget';
|
|
12
|
-
export { SessionRecording } from './session-recording';
|
|
13
|
-
export { AnnotationEditor, AnnotationToolbar, injectAnnotationStyles, removeAnnotationStyles, } from './annotation';
|
|
14
|
-
export { PrivacyMasker, PrivacyDetector, PATTERNS as PRIVACY_PATTERNS, DEFAULT_PRIVACY_CONFIG, } from './privacy';
|
|
15
|
-
export type { PrivacyConfig, AutoMaskConfig, CustomPattern, MaskResult, Detection as PrivacyDetection, DetectionType, DOMPrivacyResult, DOMDetection, } from './privacy';
|
|
16
|
-
export type { AnnotationToolType, Point, Bounds, AnnotationStyle, Annotation as AnnotationData, RectangleAnnotation, EllipseAnnotation, ArrowAnnotation, LineAnnotation, HighlightAnnotation, BlurAnnotation, TextAnnotation, FreehandAnnotation, AnnotationEditorConfig, } from './annotation';
|
|
17
|
-
export { DEFAULT_STYLE, HIGHLIGHT_STYLE, BLUR_STYLE, COLOR_PALETTE, STROKE_WIDTHS, } from './annotation';
|
|
18
|
-
export type { CheckFlowOptions, UserInfo, FeedbackData, FeedbackType, FeedbackPriority, Annotation, CaptureOptions, CaptureResult, ConsoleEntry, NetworkEntry, PerformanceMetrics, PageContext, ErrorInfo, SubmitResult, APIResponse, WidgetConfig, WidgetState, Translations, } from './types';
|
|
19
|
-
export { DEFAULT_TRANSLATIONS, TRANSLATIONS } from './types';
|
|
20
|
-
export { CheckFlowProvider, useCheckFlow, useFeedbackForm, CheckFlowErrorBoundary, withCheckFlow, withErrorBoundary, FeedbackButton, } from './react';
|
|
21
|
-
export declare const VERSION = "1.0.0";
|
|
22
|
-
import { CheckFlow } from './checkflow';
|
|
23
|
-
export default CheckFlow;
|
|
44
|
+
declare function destroy(): void;
|
|
45
|
+
|
|
46
|
+
export { CheckflowConfig, FeedbackPayload, FeedbackResponse, HighlightAnnotation, captureScreenshot, destroy, hideWidget, init, sendFeedback, showWidget };
|