@sentry/types 8.0.0-rc.2 → 8.0.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/config.d.ts +15 -3
- package/types/feedback/config.d.ts.map +1 -1
- package/types/feedback/index.d.ts +1 -1
- package/types/feedback/index.d.ts.map +1 -1
- package/types/feedback/theme.d.ts +15 -114
- package/types/feedback/theme.d.ts.map +1 -1
- package/types-ts3.8/feedback/config.d.ts +15 -3
- package/types-ts3.8/feedback/index.d.ts +1 -1
- package/types-ts3.8/feedback/theme.d.ts +15 -114
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",
|
|
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",
|
|
@@ -37,7 +37,7 @@ export interface FeedbackGeneralConfiguration {
|
|
|
37
37
|
* Should the screen shots field be included?
|
|
38
38
|
* Screen shots cannot be marked as required
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
enableScreenshot: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Fill in email/name input fields with Sentry user context if it exists.
|
|
43
43
|
* The value of the email/name keys represent the properties of your user context.
|
|
@@ -71,7 +71,7 @@ export interface FeedbackTextConfiguration {
|
|
|
71
71
|
/**
|
|
72
72
|
* The label for the Feedback widget button that opens the dialog
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
triggerLabel: string;
|
|
75
75
|
/**
|
|
76
76
|
* The label for the Feedback form cancel button that closes dialog
|
|
77
77
|
*/
|
|
@@ -80,6 +80,10 @@ export interface FeedbackTextConfiguration {
|
|
|
80
80
|
* The label for the Feedback form submit button that sends feedback
|
|
81
81
|
*/
|
|
82
82
|
submitButtonLabel: string;
|
|
83
|
+
/**
|
|
84
|
+
* The label for the Screenshot editor cancel buttons
|
|
85
|
+
*/
|
|
86
|
+
confirmButtonLabel: string;
|
|
83
87
|
/**
|
|
84
88
|
* The title of the Feedback form
|
|
85
89
|
*/
|
|
@@ -115,7 +119,15 @@ export interface FeedbackTextConfiguration {
|
|
|
115
119
|
/**
|
|
116
120
|
* Text which indicates that a field is required
|
|
117
121
|
*/
|
|
118
|
-
|
|
122
|
+
isRequiredLabel: string;
|
|
123
|
+
/**
|
|
124
|
+
* The label for the button that adds a screeshot and renders the image editor
|
|
125
|
+
*/
|
|
126
|
+
addScreenshotButtonLabel: string;
|
|
127
|
+
/**
|
|
128
|
+
* The label for the button that removes a screenshot and hides the image editor
|
|
129
|
+
*/
|
|
130
|
+
removeScreenshotButtonLabel: string;
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* The public callbacks available for the feedback integration
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/feedback/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,YAAY,EAAE,OAAO,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IAEzB;;OAEG;IACH,cAAc,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/feedback/config.ts"],"names":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EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;IAEjC;;OAEG;IACH,2BAA2B,EAAE,MAAM,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;;;OAIG;IACH,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEvC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;CAC9B"}
|
|
@@ -47,7 +47,7 @@ export interface FeedbackModalIntegration extends Integration {
|
|
|
47
47
|
type HType = unknown;
|
|
48
48
|
type VNode = unknown;
|
|
49
49
|
export interface FeedbackScreenshotIntegration extends Integration {
|
|
50
|
-
createInput: (h: HType, dialog: FeedbackDialog) => {
|
|
50
|
+
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => {
|
|
51
51
|
/**
|
|
52
52
|
* The preact component
|
|
53
53
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/feedback/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,KAAK,EACV,iBAAiB,EACjB,4BAA4B,EAC5B,yBAAyB,EACz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GAAG,OAAO,CAAC;AACrB,MAAM,WAAW,6BAA8B,SAAQ,WAAW;IAChE,WAAW,EAAE,CACX,CAAC,EAAE,KAAK,EACR,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,uBAAuB,KAC7B;QACH;;WAEG;QACH,KAAK,EAAE,CAAC,KAAK,EAAE;YAAE,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;SAAE,KAAK,KAAK,CAAC;QAE7D;;WAEG;QACH,KAAK,EAAE,MAAM,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;KAC9C,CAAC;CACH"}
|
|
@@ -1,134 +1,35 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface FeedbackTheme {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Foreground color (i.e. text color)
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
foreground?: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Background color for surfaces
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
background?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Foreground color
|
|
11
|
+
* Foreground color for accented elements
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
accentForeground?: string;
|
|
14
14
|
/**
|
|
15
|
-
* Background color for
|
|
15
|
+
* Background color for accented elements
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
accentBackground?: string;
|
|
18
18
|
/**
|
|
19
19
|
* Success color
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
successColor?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Error color
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
interface ActorAndModal {
|
|
28
|
-
/**
|
|
29
|
-
* z-index of the floating Actor or Modal
|
|
30
|
-
*/
|
|
31
|
-
zIndex: number;
|
|
32
|
-
/**
|
|
33
|
-
* Border styling for actor and dialog
|
|
34
|
-
*/
|
|
35
|
-
border: string;
|
|
36
|
-
/**
|
|
37
|
-
* Box shadow for actor and dialog
|
|
38
|
-
*/
|
|
39
|
-
boxShadow: string;
|
|
40
|
-
}
|
|
41
|
-
interface ActorButton {
|
|
42
|
-
/**
|
|
43
|
-
* Background color on hover
|
|
44
|
-
*/
|
|
45
|
-
backgroundHover: string;
|
|
46
|
-
/**
|
|
47
|
-
* Border radius styling for actor
|
|
48
|
-
*/
|
|
49
|
-
borderRadius: string;
|
|
50
|
-
}
|
|
51
|
-
interface Modal {
|
|
52
|
-
/**
|
|
53
|
-
* Border radius for dialog
|
|
54
|
-
*/
|
|
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;
|
|
66
|
-
/**
|
|
67
|
-
* Background color for the submit button
|
|
68
|
-
*/
|
|
69
|
-
submitBackground: string;
|
|
70
|
-
/**
|
|
71
|
-
* Foreground color for the submit button, in the hover state
|
|
72
|
-
*/
|
|
73
|
-
submitForegroundHover: string;
|
|
25
|
+
errorColor?: string;
|
|
74
26
|
/**
|
|
75
|
-
*
|
|
27
|
+
* Box shadow for floating elements
|
|
76
28
|
*/
|
|
77
|
-
|
|
29
|
+
boxShadow?: string;
|
|
78
30
|
/**
|
|
79
|
-
*
|
|
31
|
+
* Styles for focused interactive components
|
|
80
32
|
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Border style for the submit button, in the focued state
|
|
84
|
-
*/
|
|
85
|
-
submitOutlineFocus: string;
|
|
86
|
-
}
|
|
87
|
-
interface CancelButton {
|
|
88
|
-
/**
|
|
89
|
-
* Foreground color for the cancel button
|
|
90
|
-
*/
|
|
91
|
-
cancelForeground: string;
|
|
92
|
-
/**
|
|
93
|
-
* Background color for the cancel button
|
|
94
|
-
*/
|
|
95
|
-
cancelBackground: string;
|
|
96
|
-
/**
|
|
97
|
-
* Foreground color for the cancel button, in the hover state
|
|
98
|
-
*/
|
|
99
|
-
cancelForegroundHover: string;
|
|
100
|
-
/**
|
|
101
|
-
* Background color when hovering over the cancel button
|
|
102
|
-
*/
|
|
103
|
-
cancelBackgroundHover: string;
|
|
104
|
-
/**
|
|
105
|
-
* Border style for the cancel button
|
|
106
|
-
*/
|
|
107
|
-
cancelBorder: string;
|
|
108
|
-
/**
|
|
109
|
-
* Border style for the cancel button, in the focued state
|
|
110
|
-
*/
|
|
111
|
-
cancelOutlineFocus: string;
|
|
112
|
-
}
|
|
113
|
-
interface Input {
|
|
114
|
-
/**
|
|
115
|
-
* Background color for form inputs
|
|
116
|
-
*/
|
|
117
|
-
inputBackground: string;
|
|
118
|
-
/**
|
|
119
|
-
* Foreground color for form inputs
|
|
120
|
-
*/
|
|
121
|
-
inputForeground: string;
|
|
122
|
-
/**
|
|
123
|
-
* Border styles for form inputs
|
|
124
|
-
*/
|
|
125
|
-
inputBorder: string;
|
|
126
|
-
/**
|
|
127
|
-
* Border styles for form inputs when focused
|
|
128
|
-
*/
|
|
129
|
-
inputOutlineFocus: string;
|
|
130
|
-
}
|
|
131
|
-
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input {
|
|
33
|
+
outline?: string;
|
|
132
34
|
}
|
|
133
|
-
export {};
|
|
134
35
|
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/feedback/theme.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
|
|
@@ -37,7 +37,7 @@ export interface FeedbackGeneralConfiguration {
|
|
|
37
37
|
* Should the screen shots field be included?
|
|
38
38
|
* Screen shots cannot be marked as required
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
enableScreenshot: boolean;
|
|
41
41
|
/**
|
|
42
42
|
* Fill in email/name input fields with Sentry user context if it exists.
|
|
43
43
|
* The value of the email/name keys represent the properties of your user context.
|
|
@@ -71,7 +71,7 @@ export interface FeedbackTextConfiguration {
|
|
|
71
71
|
/**
|
|
72
72
|
* The label for the Feedback widget button that opens the dialog
|
|
73
73
|
*/
|
|
74
|
-
|
|
74
|
+
triggerLabel: string;
|
|
75
75
|
/**
|
|
76
76
|
* The label for the Feedback form cancel button that closes dialog
|
|
77
77
|
*/
|
|
@@ -80,6 +80,10 @@ export interface FeedbackTextConfiguration {
|
|
|
80
80
|
* The label for the Feedback form submit button that sends feedback
|
|
81
81
|
*/
|
|
82
82
|
submitButtonLabel: string;
|
|
83
|
+
/**
|
|
84
|
+
* The label for the Screenshot editor cancel buttons
|
|
85
|
+
*/
|
|
86
|
+
confirmButtonLabel: string;
|
|
83
87
|
/**
|
|
84
88
|
* The title of the Feedback form
|
|
85
89
|
*/
|
|
@@ -115,7 +119,15 @@ export interface FeedbackTextConfiguration {
|
|
|
115
119
|
/**
|
|
116
120
|
* Text which indicates that a field is required
|
|
117
121
|
*/
|
|
118
|
-
|
|
122
|
+
isRequiredLabel: string;
|
|
123
|
+
/**
|
|
124
|
+
* The label for the button that adds a screeshot and renders the image editor
|
|
125
|
+
*/
|
|
126
|
+
addScreenshotButtonLabel: string;
|
|
127
|
+
/**
|
|
128
|
+
* The label for the button that removes a screenshot and hides the image editor
|
|
129
|
+
*/
|
|
130
|
+
removeScreenshotButtonLabel: string;
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* The public callbacks available for the feedback integration
|
|
@@ -47,7 +47,7 @@ export interface FeedbackModalIntegration extends Integration {
|
|
|
47
47
|
type HType = unknown;
|
|
48
48
|
type VNode = unknown;
|
|
49
49
|
export interface FeedbackScreenshotIntegration extends Integration {
|
|
50
|
-
createInput: (h: HType, dialog: FeedbackDialog) => {
|
|
50
|
+
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => {
|
|
51
51
|
/**
|
|
52
52
|
* The preact component
|
|
53
53
|
*/
|
|
@@ -1,134 +1,35 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface FeedbackTheme {
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Foreground color (i.e. text color)
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
foreground?: string;
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Background color for surfaces
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
background?: string;
|
|
10
10
|
/**
|
|
11
|
-
* Foreground color
|
|
11
|
+
* Foreground color for accented elements
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
accentForeground?: string;
|
|
14
14
|
/**
|
|
15
|
-
* Background color for
|
|
15
|
+
* Background color for accented elements
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
accentBackground?: string;
|
|
18
18
|
/**
|
|
19
19
|
* Success color
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
successColor?: string;
|
|
22
22
|
/**
|
|
23
23
|
* Error color
|
|
24
24
|
*/
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
interface ActorAndModal {
|
|
28
|
-
/**
|
|
29
|
-
* z-index of the floating Actor or Modal
|
|
30
|
-
*/
|
|
31
|
-
zIndex: number;
|
|
32
|
-
/**
|
|
33
|
-
* Border styling for actor and dialog
|
|
34
|
-
*/
|
|
35
|
-
border: string;
|
|
36
|
-
/**
|
|
37
|
-
* Box shadow for actor and dialog
|
|
38
|
-
*/
|
|
39
|
-
boxShadow: string;
|
|
40
|
-
}
|
|
41
|
-
interface ActorButton {
|
|
42
|
-
/**
|
|
43
|
-
* Background color on hover
|
|
44
|
-
*/
|
|
45
|
-
backgroundHover: string;
|
|
46
|
-
/**
|
|
47
|
-
* Border radius styling for actor
|
|
48
|
-
*/
|
|
49
|
-
borderRadius: string;
|
|
50
|
-
}
|
|
51
|
-
interface Modal {
|
|
52
|
-
/**
|
|
53
|
-
* Border radius for dialog
|
|
54
|
-
*/
|
|
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;
|
|
66
|
-
/**
|
|
67
|
-
* Background color for the submit button
|
|
68
|
-
*/
|
|
69
|
-
submitBackground: string;
|
|
70
|
-
/**
|
|
71
|
-
* Foreground color for the submit button, in the hover state
|
|
72
|
-
*/
|
|
73
|
-
submitForegroundHover: string;
|
|
25
|
+
errorColor?: string;
|
|
74
26
|
/**
|
|
75
|
-
*
|
|
27
|
+
* Box shadow for floating elements
|
|
76
28
|
*/
|
|
77
|
-
|
|
29
|
+
boxShadow?: string;
|
|
78
30
|
/**
|
|
79
|
-
*
|
|
31
|
+
* Styles for focused interactive components
|
|
80
32
|
*/
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Border style for the submit button, in the focued state
|
|
84
|
-
*/
|
|
85
|
-
submitOutlineFocus: string;
|
|
86
|
-
}
|
|
87
|
-
interface CancelButton {
|
|
88
|
-
/**
|
|
89
|
-
* Foreground color for the cancel button
|
|
90
|
-
*/
|
|
91
|
-
cancelForeground: string;
|
|
92
|
-
/**
|
|
93
|
-
* Background color for the cancel button
|
|
94
|
-
*/
|
|
95
|
-
cancelBackground: string;
|
|
96
|
-
/**
|
|
97
|
-
* Foreground color for the cancel button, in the hover state
|
|
98
|
-
*/
|
|
99
|
-
cancelForegroundHover: string;
|
|
100
|
-
/**
|
|
101
|
-
* Background color when hovering over the cancel button
|
|
102
|
-
*/
|
|
103
|
-
cancelBackgroundHover: string;
|
|
104
|
-
/**
|
|
105
|
-
* Border style for the cancel button
|
|
106
|
-
*/
|
|
107
|
-
cancelBorder: string;
|
|
108
|
-
/**
|
|
109
|
-
* Border style for the cancel button, in the focued state
|
|
110
|
-
*/
|
|
111
|
-
cancelOutlineFocus: string;
|
|
112
|
-
}
|
|
113
|
-
interface Input {
|
|
114
|
-
/**
|
|
115
|
-
* Background color for form inputs
|
|
116
|
-
*/
|
|
117
|
-
inputBackground: string;
|
|
118
|
-
/**
|
|
119
|
-
* Foreground color for form inputs
|
|
120
|
-
*/
|
|
121
|
-
inputForeground: string;
|
|
122
|
-
/**
|
|
123
|
-
* Border styles for form inputs
|
|
124
|
-
*/
|
|
125
|
-
inputBorder: string;
|
|
126
|
-
/**
|
|
127
|
-
* Border styles for form inputs when focused
|
|
128
|
-
*/
|
|
129
|
-
inputOutlineFocus: string;
|
|
130
|
-
}
|
|
131
|
-
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input {
|
|
33
|
+
outline?: string;
|
|
132
34
|
}
|
|
133
|
-
export {};
|
|
134
35
|
//# sourceMappingURL=theme.d.ts.map
|