@sentry/types 8.0.0-beta.5 → 8.0.0-rc.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/package.json +1 -1
- package/types/feedback/sendFeedback.d.ts +5 -6
- package/types/feedback/sendFeedback.d.ts.map +1 -1
- package/types/feedback/theme.d.ts +54 -35
- package/types/feedback/theme.d.ts.map +1 -1
- package/types/transport.d.ts +6 -0
- package/types/transport.d.ts.map +1 -1
- package/types/user.d.ts +6 -0
- package/types/user.d.ts.map +1 -1
- package/types-ts3.8/feedback/sendFeedback.d.ts +5 -6
- package/types-ts3.8/feedback/theme.d.ts +54 -35
- package/types-ts3.8/transport.d.ts +6 -0
- package/types-ts3.8/user.d.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/types",
|
|
3
|
-
"version": "8.0.0-
|
|
3
|
+
"version": "8.0.0-rc.0",
|
|
4
4
|
"description": "Types for all Sentry JavaScript SDKs",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/types",
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { Event } from '../event';
|
|
3
|
-
import type { TransportMakeRequestResponse } from '../transport';
|
|
1
|
+
import type { Event, EventHint } from '../event';
|
|
4
2
|
import type { User } from '../user';
|
|
5
3
|
/**
|
|
6
4
|
* Crash report feedback object
|
|
@@ -17,6 +15,7 @@ interface FeedbackContext extends Record<string, unknown> {
|
|
|
17
15
|
name?: string;
|
|
18
16
|
replay_id?: string;
|
|
19
17
|
url?: string;
|
|
18
|
+
associated_event_id?: string;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
* NOTE: These types are still considered Alpha and subject to change.
|
|
@@ -32,16 +31,16 @@ export interface SendFeedbackParams {
|
|
|
32
31
|
message: string;
|
|
33
32
|
name?: string;
|
|
34
33
|
email?: string;
|
|
35
|
-
attachments?: Attachment[];
|
|
36
34
|
url?: string;
|
|
37
35
|
source?: string;
|
|
36
|
+
associatedEventId?: string;
|
|
38
37
|
}
|
|
39
|
-
interface SendFeedbackOptions {
|
|
38
|
+
interface SendFeedbackOptions extends EventHint {
|
|
40
39
|
/**
|
|
41
40
|
* Should include replay with the feedback?
|
|
42
41
|
*/
|
|
43
42
|
includeReplay?: boolean;
|
|
44
43
|
}
|
|
45
|
-
export type SendFeedback = (params: SendFeedbackParams, options?: SendFeedbackOptions) => Promise<
|
|
44
|
+
export type SendFeedback = (params: SendFeedbackParams, options?: SendFeedbackOptions) => Promise<string>;
|
|
46
45
|
export {};
|
|
47
46
|
//# sourceMappingURL=sendFeedback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendFeedback.d.ts","sourceRoot":"","sources":["../../../src/feedback/sendFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"sendFeedback.d.ts","sourceRoot":"","sources":["../../../src/feedback/sendFeedback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,eAAgB,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG;QAC5B,QAAQ,EAAE,eAAe,CAAC;KAC3B,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,mBAAoB,SAAQ,SAAS;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface BaseStyles {
|
|
2
2
|
/**
|
|
3
3
|
* Font family for widget
|
|
4
4
|
*/
|
|
@@ -7,42 +7,70 @@ export interface FeedbackTheme {
|
|
|
7
7
|
* Font size for widget
|
|
8
8
|
*/
|
|
9
9
|
fontSize: string;
|
|
10
|
+
/**
|
|
11
|
+
* Foreground color (i.e. text color)
|
|
12
|
+
*/
|
|
13
|
+
foreground: string;
|
|
10
14
|
/**
|
|
11
15
|
* Background color for actor and dialog
|
|
12
16
|
*/
|
|
13
17
|
background: string;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Success color
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
success: string;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Error color
|
|
20
24
|
*/
|
|
21
|
-
|
|
25
|
+
error: string;
|
|
26
|
+
}
|
|
27
|
+
interface ActorAndModal {
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
29
|
+
* z-index of the floating Actor or Modal
|
|
24
30
|
*/
|
|
25
|
-
|
|
31
|
+
zIndex: number;
|
|
32
|
+
/**
|
|
33
|
+
* Border styling for actor and dialog
|
|
34
|
+
*/
|
|
35
|
+
border: string;
|
|
26
36
|
/**
|
|
27
37
|
* Box shadow for actor and dialog
|
|
28
38
|
*/
|
|
29
39
|
boxShadow: string;
|
|
40
|
+
}
|
|
41
|
+
interface ActorButton {
|
|
30
42
|
/**
|
|
31
|
-
*
|
|
43
|
+
* Background color on hover
|
|
32
44
|
*/
|
|
33
|
-
|
|
45
|
+
backgroundHover: string;
|
|
34
46
|
/**
|
|
35
|
-
*
|
|
47
|
+
* Border radius styling for actor
|
|
36
48
|
*/
|
|
37
|
-
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
}
|
|
51
|
+
interface Modal {
|
|
38
52
|
/**
|
|
39
|
-
*
|
|
53
|
+
* Border radius for dialog
|
|
40
54
|
*/
|
|
41
|
-
|
|
55
|
+
formBorderRadius: string;
|
|
56
|
+
/**
|
|
57
|
+
* Border radius for form inputs
|
|
58
|
+
*/
|
|
59
|
+
formContentBorderRadius: string;
|
|
60
|
+
}
|
|
61
|
+
interface SubmitButton {
|
|
62
|
+
/**
|
|
63
|
+
* Foreground color for the submit button
|
|
64
|
+
*/
|
|
65
|
+
submitForeground: string;
|
|
42
66
|
/**
|
|
43
67
|
* Background color for the submit button
|
|
44
68
|
*/
|
|
45
69
|
submitBackground: string;
|
|
70
|
+
/**
|
|
71
|
+
* Foreground color for the submit button, in the hover state
|
|
72
|
+
*/
|
|
73
|
+
submitForegroundHover: string;
|
|
46
74
|
/**
|
|
47
75
|
* Background color when hovering over the submit button
|
|
48
76
|
*/
|
|
@@ -55,18 +83,20 @@ export interface FeedbackTheme {
|
|
|
55
83
|
* Border style for the submit button, in the focued state
|
|
56
84
|
*/
|
|
57
85
|
submitOutlineFocus: string;
|
|
86
|
+
}
|
|
87
|
+
interface CancelButton {
|
|
58
88
|
/**
|
|
59
|
-
* Foreground color for the
|
|
60
|
-
*/
|
|
61
|
-
submitForeground: string;
|
|
62
|
-
/**
|
|
63
|
-
* Foreground color for the submit button, in the hover state
|
|
89
|
+
* Foreground color for the cancel button
|
|
64
90
|
*/
|
|
65
|
-
|
|
91
|
+
cancelForeground: string;
|
|
66
92
|
/**
|
|
67
93
|
* Background color for the cancel button
|
|
68
94
|
*/
|
|
69
95
|
cancelBackground: string;
|
|
96
|
+
/**
|
|
97
|
+
* Foreground color for the cancel button, in the hover state
|
|
98
|
+
*/
|
|
99
|
+
cancelForegroundHover: string;
|
|
70
100
|
/**
|
|
71
101
|
* Background color when hovering over the cancel button
|
|
72
102
|
*/
|
|
@@ -79,14 +109,8 @@ export interface FeedbackTheme {
|
|
|
79
109
|
* Border style for the cancel button, in the focued state
|
|
80
110
|
*/
|
|
81
111
|
cancelOutlineFocus: string;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*/
|
|
85
|
-
cancelForeground: string;
|
|
86
|
-
/**
|
|
87
|
-
* Foreground color for the cancel button, in the hover state
|
|
88
|
-
*/
|
|
89
|
-
cancelForegroundHover: string;
|
|
112
|
+
}
|
|
113
|
+
interface Input {
|
|
90
114
|
/**
|
|
91
115
|
* Background color for form inputs
|
|
92
116
|
*/
|
|
@@ -103,13 +127,8 @@ export interface FeedbackTheme {
|
|
|
103
127
|
* Border styles for form inputs when focused
|
|
104
128
|
*/
|
|
105
129
|
inputOutlineFocus: string;
|
|
106
|
-
/**
|
|
107
|
-
* Border radius for dialog
|
|
108
|
-
*/
|
|
109
|
-
formBorderRadius: string;
|
|
110
|
-
/**
|
|
111
|
-
* Border radius for form inputs
|
|
112
|
-
*/
|
|
113
|
-
formContentBorderRadius: string;
|
|
114
130
|
}
|
|
131
|
+
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input {
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
115
134
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AAAA,UAAU,UAAU;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,aAAa;IACrB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,UAAU,WAAW;IACnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,UAAU,KAAK;IACb;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAC;CACjC;AAED,UAAU,YAAY;IACpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,YAAY;IACpB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,KAAK;IACb;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,aACf,SAAQ,UAAU,EAChB,aAAa,EACb,WAAW,EACX,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,KAAK;CAAG"}
|
package/types/transport.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ export type TransportMakeRequestResponse = {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export interface InternalBaseTransportOptions {
|
|
15
|
+
/**
|
|
16
|
+
* @ignore
|
|
17
|
+
* Users should pass the tunnel property via the init/client options.
|
|
18
|
+
* This is only used by the SDK to pass the tunnel to the transport.
|
|
19
|
+
*/
|
|
20
|
+
tunnel?: string;
|
|
15
21
|
bufferSize?: number;
|
|
16
22
|
recordDroppedEvent: Client['recordDroppedEvent'];
|
|
17
23
|
}
|
package/types/transport.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;QAC7B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;QACtC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,oBAAqB,SAAQ,4BAA4B;IAIxE,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,WAAW,CAAC,4BAA4B,CAAC,CAAC;IACnE,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,WAAW,CAAC,4BAA4B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"transport.d.ts","sourceRoot":"","sources":["../../src/transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE;QACR,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;QAC7B,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;QACtC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,4BAA4B;IAC3C;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,oBAAqB,SAAQ,4BAA4B;IAIxE,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,WAAW,CAAC,4BAA4B,CAAC,CAAC;IACnE,KAAK,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;CAC/C;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,WAAW,CAAC,4BAA4B,CAAC,CAAC"}
|
package/types/user.d.ts
CHANGED
package/types/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB;AAED,MAAM,WAAW,WAAW;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Event } from '../event';
|
|
3
|
-
import { TransportMakeRequestResponse } from '../transport';
|
|
1
|
+
import { Event, EventHint } from '../event';
|
|
4
2
|
import { User } from '../user';
|
|
5
3
|
/**
|
|
6
4
|
* Crash report feedback object
|
|
@@ -17,6 +15,7 @@ interface FeedbackContext extends Record<string, unknown> {
|
|
|
17
15
|
name?: string;
|
|
18
16
|
replay_id?: string;
|
|
19
17
|
url?: string;
|
|
18
|
+
associated_event_id?: string;
|
|
20
19
|
}
|
|
21
20
|
/**
|
|
22
21
|
* NOTE: These types are still considered Alpha and subject to change.
|
|
@@ -32,16 +31,16 @@ export interface SendFeedbackParams {
|
|
|
32
31
|
message: string;
|
|
33
32
|
name?: string;
|
|
34
33
|
email?: string;
|
|
35
|
-
attachments?: Attachment[];
|
|
36
34
|
url?: string;
|
|
37
35
|
source?: string;
|
|
36
|
+
associatedEventId?: string;
|
|
38
37
|
}
|
|
39
|
-
interface SendFeedbackOptions {
|
|
38
|
+
interface SendFeedbackOptions extends EventHint {
|
|
40
39
|
/**
|
|
41
40
|
* Should include replay with the feedback?
|
|
42
41
|
*/
|
|
43
42
|
includeReplay?: boolean;
|
|
44
43
|
}
|
|
45
|
-
export type SendFeedback = (params: SendFeedbackParams, options?: SendFeedbackOptions) => Promise<
|
|
44
|
+
export type SendFeedback = (params: SendFeedbackParams, options?: SendFeedbackOptions) => Promise<string>;
|
|
46
45
|
export {};
|
|
47
46
|
//# sourceMappingURL=sendFeedback.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface BaseStyles {
|
|
2
2
|
/**
|
|
3
3
|
* Font family for widget
|
|
4
4
|
*/
|
|
@@ -7,42 +7,70 @@ export interface FeedbackTheme {
|
|
|
7
7
|
* Font size for widget
|
|
8
8
|
*/
|
|
9
9
|
fontSize: string;
|
|
10
|
+
/**
|
|
11
|
+
* Foreground color (i.e. text color)
|
|
12
|
+
*/
|
|
13
|
+
foreground: string;
|
|
10
14
|
/**
|
|
11
15
|
* Background color for actor and dialog
|
|
12
16
|
*/
|
|
13
17
|
background: string;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Success color
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
success: string;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Error color
|
|
20
24
|
*/
|
|
21
|
-
|
|
25
|
+
error: string;
|
|
26
|
+
}
|
|
27
|
+
interface ActorAndModal {
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
29
|
+
* z-index of the floating Actor or Modal
|
|
24
30
|
*/
|
|
25
|
-
|
|
31
|
+
zIndex: number;
|
|
32
|
+
/**
|
|
33
|
+
* Border styling for actor and dialog
|
|
34
|
+
*/
|
|
35
|
+
border: string;
|
|
26
36
|
/**
|
|
27
37
|
* Box shadow for actor and dialog
|
|
28
38
|
*/
|
|
29
39
|
boxShadow: string;
|
|
40
|
+
}
|
|
41
|
+
interface ActorButton {
|
|
30
42
|
/**
|
|
31
|
-
*
|
|
43
|
+
* Background color on hover
|
|
32
44
|
*/
|
|
33
|
-
|
|
45
|
+
backgroundHover: string;
|
|
34
46
|
/**
|
|
35
|
-
*
|
|
47
|
+
* Border radius styling for actor
|
|
36
48
|
*/
|
|
37
|
-
|
|
49
|
+
borderRadius: string;
|
|
50
|
+
}
|
|
51
|
+
interface Modal {
|
|
38
52
|
/**
|
|
39
|
-
*
|
|
53
|
+
* Border radius for dialog
|
|
40
54
|
*/
|
|
41
|
-
|
|
55
|
+
formBorderRadius: string;
|
|
56
|
+
/**
|
|
57
|
+
* Border radius for form inputs
|
|
58
|
+
*/
|
|
59
|
+
formContentBorderRadius: string;
|
|
60
|
+
}
|
|
61
|
+
interface SubmitButton {
|
|
62
|
+
/**
|
|
63
|
+
* Foreground color for the submit button
|
|
64
|
+
*/
|
|
65
|
+
submitForeground: string;
|
|
42
66
|
/**
|
|
43
67
|
* Background color for the submit button
|
|
44
68
|
*/
|
|
45
69
|
submitBackground: string;
|
|
70
|
+
/**
|
|
71
|
+
* Foreground color for the submit button, in the hover state
|
|
72
|
+
*/
|
|
73
|
+
submitForegroundHover: string;
|
|
46
74
|
/**
|
|
47
75
|
* Background color when hovering over the submit button
|
|
48
76
|
*/
|
|
@@ -55,18 +83,20 @@ export interface FeedbackTheme {
|
|
|
55
83
|
* Border style for the submit button, in the focued state
|
|
56
84
|
*/
|
|
57
85
|
submitOutlineFocus: string;
|
|
86
|
+
}
|
|
87
|
+
interface CancelButton {
|
|
58
88
|
/**
|
|
59
|
-
* Foreground color for the
|
|
60
|
-
*/
|
|
61
|
-
submitForeground: string;
|
|
62
|
-
/**
|
|
63
|
-
* Foreground color for the submit button, in the hover state
|
|
89
|
+
* Foreground color for the cancel button
|
|
64
90
|
*/
|
|
65
|
-
|
|
91
|
+
cancelForeground: string;
|
|
66
92
|
/**
|
|
67
93
|
* Background color for the cancel button
|
|
68
94
|
*/
|
|
69
95
|
cancelBackground: string;
|
|
96
|
+
/**
|
|
97
|
+
* Foreground color for the cancel button, in the hover state
|
|
98
|
+
*/
|
|
99
|
+
cancelForegroundHover: string;
|
|
70
100
|
/**
|
|
71
101
|
* Background color when hovering over the cancel button
|
|
72
102
|
*/
|
|
@@ -79,14 +109,8 @@ export interface FeedbackTheme {
|
|
|
79
109
|
* Border style for the cancel button, in the focued state
|
|
80
110
|
*/
|
|
81
111
|
cancelOutlineFocus: string;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
*/
|
|
85
|
-
cancelForeground: string;
|
|
86
|
-
/**
|
|
87
|
-
* Foreground color for the cancel button, in the hover state
|
|
88
|
-
*/
|
|
89
|
-
cancelForegroundHover: string;
|
|
112
|
+
}
|
|
113
|
+
interface Input {
|
|
90
114
|
/**
|
|
91
115
|
* Background color for form inputs
|
|
92
116
|
*/
|
|
@@ -103,13 +127,8 @@ export interface FeedbackTheme {
|
|
|
103
127
|
* Border styles for form inputs when focused
|
|
104
128
|
*/
|
|
105
129
|
inputOutlineFocus: string;
|
|
106
|
-
/**
|
|
107
|
-
* Border radius for dialog
|
|
108
|
-
*/
|
|
109
|
-
formBorderRadius: string;
|
|
110
|
-
/**
|
|
111
|
-
* Border radius for form inputs
|
|
112
|
-
*/
|
|
113
|
-
formContentBorderRadius: string;
|
|
114
130
|
}
|
|
131
|
+
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input {
|
|
132
|
+
}
|
|
133
|
+
export {};
|
|
115
134
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -12,6 +12,12 @@ export type TransportMakeRequestResponse = {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
export interface InternalBaseTransportOptions {
|
|
15
|
+
/**
|
|
16
|
+
* @ignore
|
|
17
|
+
* Users should pass the tunnel property via the init/client options.
|
|
18
|
+
* This is only used by the SDK to pass the tunnel to the transport.
|
|
19
|
+
*/
|
|
20
|
+
tunnel?: string;
|
|
15
21
|
bufferSize?: number;
|
|
16
22
|
recordDroppedEvent: Client['recordDroppedEvent'];
|
|
17
23
|
}
|
package/types-ts3.8/user.d.ts
CHANGED