1 | import type { Attachment } from '../attachment';
|
2 | import type { Integration } from '../integration';
|
3 | import type { FeedbackCallbacks, FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackThemeConfiguration } from './config';
|
4 | export type { FeedbackFormData } from './form';
|
5 | import type { FeedbackEvent, SendFeedback, SendFeedbackParams, UserFeedback } from './sendFeedback';
|
6 | export type { FeedbackEvent, UserFeedback, SendFeedback, SendFeedbackParams };
|
7 |
|
8 |
|
9 |
|
10 | export interface FeedbackInternalOptions extends FeedbackGeneralConfiguration, FeedbackThemeConfiguration, FeedbackTextConfiguration, FeedbackCallbacks {
|
11 | }
|
12 | type Hooks = unknown;
|
13 | type HTMLElement = unknown;
|
14 | type HType = unknown;
|
15 | type ShadowRoot = unknown;
|
16 | type VNode = unknown;
|
17 | type FeedbackDialog = {
|
18 | |
19 |
|
20 |
|
21 | el: HTMLElement;
|
22 | |
23 |
|
24 |
|
25 |
|
26 |
|
27 | appendToDom: () => void;
|
28 | |
29 |
|
30 |
|
31 | removeFromDom: () => void;
|
32 | |
33 |
|
34 |
|
35 | open: () => void;
|
36 | |
37 |
|
38 |
|
39 | close: () => void;
|
40 | };
|
41 | interface FeedbackScreenshotInput {
|
42 | |
43 |
|
44 |
|
45 | input: (props: {
|
46 | onError: (error: Error) => void;
|
47 | }) => VNode;
|
48 | |
49 |
|
50 |
|
51 | value: () => Promise<Attachment | undefined>;
|
52 | }
|
53 | interface CreateDialogProps {
|
54 | options: FeedbackInternalOptions;
|
55 | screenshotIntegration: FeedbackScreenshotIntegration | undefined;
|
56 | sendFeedback: SendFeedback;
|
57 | shadow: ShadowRoot;
|
58 | }
|
59 | export interface FeedbackModalIntegration extends Integration {
|
60 | createDialog: (props: CreateDialogProps) => FeedbackDialog;
|
61 | }
|
62 | interface CreateInputProps {
|
63 | h: HType;
|
64 | hooks: Hooks;
|
65 | dialog: FeedbackDialog;
|
66 | options: FeedbackInternalOptions;
|
67 | }
|
68 | export interface FeedbackScreenshotIntegration extends Integration {
|
69 | createInput: (props: CreateInputProps) => FeedbackScreenshotInput;
|
70 | }
|
71 |
|
\ | No newline at end of file |