turbowrap-issue-widget 1.0.1 → 1.0.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/dist/api/types.d.ts +9 -0
- package/dist/capture/element-picker.d.ts +3 -0
- package/dist/issue-widget.es.js +1735 -1392
- package/dist/issue-widget.es.js.map +1 -1
- package/dist/issue-widget.min.js +272 -26
- package/dist/issue-widget.min.js.map +1 -1
- package/dist/issue-widget.umd.js +272 -26
- package/dist/issue-widget.umd.js.map +1 -1
- package/dist/ui/icons.d.ts +1 -0
- package/dist/ui/styles.d.ts +1 -1
- package/dist/widget.d.ts +6 -0
- package/package.json +1 -1
package/dist/api/types.d.ts
CHANGED
|
@@ -13,12 +13,20 @@ export interface WidgetConfig {
|
|
|
13
13
|
onIssueCreated?: (issue: IssueCreatedResult) => void;
|
|
14
14
|
onError?: (error: Error) => void;
|
|
15
15
|
}
|
|
16
|
+
export interface ElementInfo {
|
|
17
|
+
id: string | null;
|
|
18
|
+
classes: string[];
|
|
19
|
+
dataTestId: string | null;
|
|
20
|
+
tagName: string;
|
|
21
|
+
selector: string;
|
|
22
|
+
}
|
|
16
23
|
export interface AnalyzeRequest {
|
|
17
24
|
title: string;
|
|
18
25
|
description: string;
|
|
19
26
|
screenshots: Blob[];
|
|
20
27
|
figmaLink?: string;
|
|
21
28
|
websiteLink?: string;
|
|
29
|
+
selectedElement?: ElementInfo;
|
|
22
30
|
}
|
|
23
31
|
export interface Question {
|
|
24
32
|
id: number;
|
|
@@ -38,6 +46,7 @@ export interface FinalizeRequest {
|
|
|
38
46
|
teamId: string;
|
|
39
47
|
figmaLink?: string;
|
|
40
48
|
websiteLink?: string;
|
|
49
|
+
selectedElement?: ElementInfo;
|
|
41
50
|
}
|
|
42
51
|
export interface IssueCreatedResult {
|
|
43
52
|
id: string;
|