@diegotsi/flint-core 1.3.2 → 1.4.0
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.cts +4 -1
- package/dist/index.d.ts +4 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -88,6 +88,8 @@ interface FlintWidgetProps {
|
|
|
88
88
|
statusPageUrl?: string;
|
|
89
89
|
enableScreenshot?: boolean;
|
|
90
90
|
enableTextIssues?: boolean;
|
|
91
|
+
/** Enable Feature Request mode tab. Default: false */
|
|
92
|
+
enableFeatureRequests?: boolean;
|
|
91
93
|
onBeforeSubmit?: (payload: ReportPayload) => boolean | Promise<boolean>;
|
|
92
94
|
onSuccess?: (result: ReportResult) => void;
|
|
93
95
|
onError?: (error: Error) => void;
|
|
@@ -150,7 +152,8 @@ interface ReportPayload {
|
|
|
150
152
|
url?: string;
|
|
151
153
|
meta?: Record<string, unknown>;
|
|
152
154
|
label?: string;
|
|
153
|
-
source?: "widget" | "auto_capture" | "text_issue";
|
|
155
|
+
source?: "widget" | "auto_capture" | "text_issue" | "feature_request";
|
|
156
|
+
type?: "BUG" | "FEATURE_REQUEST";
|
|
154
157
|
}
|
|
155
158
|
interface ReportResult {
|
|
156
159
|
id: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,8 @@ interface FlintWidgetProps {
|
|
|
88
88
|
statusPageUrl?: string;
|
|
89
89
|
enableScreenshot?: boolean;
|
|
90
90
|
enableTextIssues?: boolean;
|
|
91
|
+
/** Enable Feature Request mode tab. Default: false */
|
|
92
|
+
enableFeatureRequests?: boolean;
|
|
91
93
|
onBeforeSubmit?: (payload: ReportPayload) => boolean | Promise<boolean>;
|
|
92
94
|
onSuccess?: (result: ReportResult) => void;
|
|
93
95
|
onError?: (error: Error) => void;
|
|
@@ -150,7 +152,8 @@ interface ReportPayload {
|
|
|
150
152
|
url?: string;
|
|
151
153
|
meta?: Record<string, unknown>;
|
|
152
154
|
label?: string;
|
|
153
|
-
source?: "widget" | "auto_capture" | "text_issue";
|
|
155
|
+
source?: "widget" | "auto_capture" | "text_issue" | "feature_request";
|
|
156
|
+
type?: "BUG" | "FEATURE_REQUEST";
|
|
154
157
|
}
|
|
155
158
|
interface ReportResult {
|
|
156
159
|
id: string;
|