@sentry/types
Advanced tools
Comparing version 8.0.0-rc.2 to 8.0.0-rc.3
{ | ||
"name": "@sentry/types", | ||
"version": "8.0.0-rc.2", | ||
"version": "8.0.0-rc.3", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -40,3 +40,3 @@ import { FeedbackFormData } from './form'; | ||
*/ | ||
showScreenshot: boolean; | ||
enableScreenshot: boolean; | ||
/** | ||
@@ -75,3 +75,3 @@ * Fill in email/name input fields with Sentry user context if it exists. | ||
*/ | ||
buttonLabel: string; | ||
triggerLabel: string; | ||
/** | ||
@@ -86,2 +86,6 @@ * The label for the Feedback form cancel button that closes dialog | ||
/** | ||
* The label for the Screenshot editor cancel buttons | ||
*/ | ||
confirmButtonLabel: string; | ||
/** | ||
* The title of the Feedback form | ||
@@ -121,3 +125,11 @@ */ | ||
*/ | ||
isRequiredText: string; | ||
isRequiredLabel: string; | ||
/** | ||
* The label for the button that adds a screeshot and renders the image editor | ||
*/ | ||
addScreenshotButtonLabel: string; | ||
/** | ||
* The label for the button that removes a screenshot and hides the image editor | ||
*/ | ||
removeScreenshotButtonLabel: string; | ||
} | ||
@@ -124,0 +136,0 @@ /** |
@@ -50,3 +50,3 @@ import { Attachment } from '../attachment'; | ||
export interface FeedbackScreenshotIntegration extends Integration { | ||
createInput: (h: HType, dialog: FeedbackDialog) => { | ||
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => { | ||
/** | ||
@@ -53,0 +53,0 @@ * The preact component |
interface BaseStyles { | ||
/** | ||
* Font family for widget | ||
*/ | ||
fontFamily: string; | ||
/** | ||
* Font size for widget | ||
*/ | ||
fontSize: string; | ||
/** | ||
* Foreground color (i.e. text color) | ||
@@ -15,19 +7,13 @@ */ | ||
/** | ||
* Background color for actor and dialog | ||
*/ | ||
background: string; | ||
/** | ||
* Success color | ||
*/ | ||
success: string; | ||
successForeground: string; | ||
/** | ||
* Error color | ||
*/ | ||
error: string; | ||
} | ||
interface ActorAndModal { | ||
errorForeground: string; | ||
/** | ||
* z-index of the floating Actor or Modal | ||
* Background color for actor and dialog | ||
*/ | ||
zIndex: number; | ||
background: string; | ||
/** | ||
@@ -42,95 +28,111 @@ * Border styling for actor and dialog | ||
} | ||
interface ActorButton { | ||
interface Input { | ||
/** | ||
* Background color on hover | ||
* Foreground color for form inputs | ||
*/ | ||
backgroundHover: string; | ||
inputForeground: string; | ||
/** | ||
* Border radius styling for actor | ||
* Background color for form inputs | ||
*/ | ||
borderRadius: string; | ||
} | ||
interface Modal { | ||
inputBackground: string; | ||
/** | ||
* Border radius for dialog | ||
* Background color for form inputs, in the hover state | ||
*/ | ||
formBorderRadius: string; | ||
inputBackgroundHover: string; | ||
/** | ||
* Background color for form inputs, in the focus state | ||
*/ | ||
inputBackgroundFocus: string; | ||
/** | ||
* Border styles for form inputs | ||
*/ | ||
inputBorder: string; | ||
/** | ||
* Border radius for form inputs | ||
*/ | ||
formContentBorderRadius: string; | ||
inputBorderRadius: string; | ||
/** | ||
* Border styles for form inputs when focused | ||
*/ | ||
inputOutlineFocus: string; | ||
} | ||
interface SubmitButton { | ||
interface Button { | ||
/** | ||
* Foreground color for the submit button | ||
* Foreground color for buttons | ||
*/ | ||
submitForeground: string; | ||
buttonForeground: string; | ||
/** | ||
* Background color for the submit button | ||
* Foreground color for buttons, in the hover state | ||
*/ | ||
submitBackground: string; | ||
buttonForegroundHover: string; | ||
/** | ||
* Foreground color for the submit button, in the hover state | ||
* Background color for buttons | ||
*/ | ||
submitForegroundHover: string; | ||
buttonBackground: string; | ||
/** | ||
* Background color when hovering over the submit button | ||
* Background color when hovering over buttons | ||
*/ | ||
submitBackgroundHover: string; | ||
buttonBackgroundHover: string; | ||
/** | ||
* Border style for the submit button | ||
* Border style for buttons | ||
*/ | ||
submitBorder: string; | ||
buttonBorder: string; | ||
/** | ||
* Border style for the submit button, in the focued state | ||
* Border style for buttons, in the focued state | ||
*/ | ||
submitOutlineFocus: string; | ||
buttonOutlineFocus: string; | ||
} | ||
interface CancelButton { | ||
interface SubmitButton { | ||
/** | ||
* Foreground color for the cancel button | ||
* Foreground color for submit buttons | ||
*/ | ||
cancelForeground: string; | ||
submitForeground: string; | ||
/** | ||
* Background color for the cancel button | ||
* Foreground color for submit buttons, in the hover state | ||
*/ | ||
cancelBackground: string; | ||
submitForegroundHover: string; | ||
/** | ||
* Foreground color for the cancel button, in the hover state | ||
* Background color for submit buttons | ||
*/ | ||
cancelForegroundHover: string; | ||
submitBackground: string; | ||
/** | ||
* Background color when hovering over the cancel button | ||
* Background color when hovering over submit buttons | ||
*/ | ||
cancelBackgroundHover: string; | ||
submitBackgroundHover: string; | ||
/** | ||
* Border style for the cancel button | ||
* Border style for submit buttons | ||
*/ | ||
cancelBorder: string; | ||
submitBorder: string; | ||
/** | ||
* Border style for the cancel button, in the focued state | ||
* Border style for submit buttons, in the focued state | ||
*/ | ||
cancelOutlineFocus: string; | ||
submitOutlineFocus: string; | ||
} | ||
interface Input { | ||
interface Trigger { | ||
/** | ||
* Background color for form inputs | ||
* Background color of the actor button | ||
*/ | ||
inputBackground: string; | ||
triggerBackground: string; | ||
/** | ||
* Foreground color for form inputs | ||
* Background color on hover | ||
*/ | ||
inputForeground: string; | ||
triggerBackgroundHover: string; | ||
/** | ||
* Border styles for form inputs | ||
* Border radius styling for actor | ||
*/ | ||
inputBorder: string; | ||
triggerBorderRadius: string; | ||
} | ||
interface Dialog { | ||
/** | ||
* Border styles for form inputs when focused | ||
* Background color of the open dialog | ||
*/ | ||
inputOutlineFocus: string; | ||
dialogBackground: string; | ||
/** | ||
* Border radius for dialog | ||
*/ | ||
dialogBorderRadius: string; | ||
} | ||
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input { | ||
export interface FeedbackTheme extends BaseStyles, Input, Button, SubmitButton, Trigger, Dialog { | ||
} | ||
export {}; | ||
//# sourceMappingURL=theme.d.ts.map |
@@ -40,3 +40,3 @@ import type { FeedbackFormData } from './form'; | ||
*/ | ||
showScreenshot: boolean; | ||
enableScreenshot: boolean; | ||
/** | ||
@@ -75,3 +75,3 @@ * Fill in email/name input fields with Sentry user context if it exists. | ||
*/ | ||
buttonLabel: string; | ||
triggerLabel: string; | ||
/** | ||
@@ -86,2 +86,6 @@ * The label for the Feedback form cancel button that closes dialog | ||
/** | ||
* The label for the Screenshot editor cancel buttons | ||
*/ | ||
confirmButtonLabel: string; | ||
/** | ||
* The title of the Feedback form | ||
@@ -121,3 +125,11 @@ */ | ||
*/ | ||
isRequiredText: string; | ||
isRequiredLabel: string; | ||
/** | ||
* The label for the button that adds a screeshot and renders the image editor | ||
*/ | ||
addScreenshotButtonLabel: string; | ||
/** | ||
* The label for the button that removes a screenshot and hides the image editor | ||
*/ | ||
removeScreenshotButtonLabel: string; | ||
} | ||
@@ -124,0 +136,0 @@ /** |
@@ -50,3 +50,3 @@ import type { Attachment } from '../attachment'; | ||
export interface FeedbackScreenshotIntegration extends Integration { | ||
createInput: (h: HType, dialog: FeedbackDialog) => { | ||
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => { | ||
/** | ||
@@ -53,0 +53,0 @@ * The preact component |
interface BaseStyles { | ||
/** | ||
* Font family for widget | ||
*/ | ||
fontFamily: string; | ||
/** | ||
* Font size for widget | ||
*/ | ||
fontSize: string; | ||
/** | ||
* Foreground color (i.e. text color) | ||
@@ -15,19 +7,13 @@ */ | ||
/** | ||
* Background color for actor and dialog | ||
*/ | ||
background: string; | ||
/** | ||
* Success color | ||
*/ | ||
success: string; | ||
successForeground: string; | ||
/** | ||
* Error color | ||
*/ | ||
error: string; | ||
} | ||
interface ActorAndModal { | ||
errorForeground: string; | ||
/** | ||
* z-index of the floating Actor or Modal | ||
* Background color for actor and dialog | ||
*/ | ||
zIndex: number; | ||
background: string; | ||
/** | ||
@@ -42,95 +28,111 @@ * Border styling for actor and dialog | ||
} | ||
interface ActorButton { | ||
interface Input { | ||
/** | ||
* Background color on hover | ||
* Foreground color for form inputs | ||
*/ | ||
backgroundHover: string; | ||
inputForeground: string; | ||
/** | ||
* Border radius styling for actor | ||
* Background color for form inputs | ||
*/ | ||
borderRadius: string; | ||
} | ||
interface Modal { | ||
inputBackground: string; | ||
/** | ||
* Border radius for dialog | ||
* Background color for form inputs, in the hover state | ||
*/ | ||
formBorderRadius: string; | ||
inputBackgroundHover: string; | ||
/** | ||
* Background color for form inputs, in the focus state | ||
*/ | ||
inputBackgroundFocus: string; | ||
/** | ||
* Border styles for form inputs | ||
*/ | ||
inputBorder: string; | ||
/** | ||
* Border radius for form inputs | ||
*/ | ||
formContentBorderRadius: string; | ||
inputBorderRadius: string; | ||
/** | ||
* Border styles for form inputs when focused | ||
*/ | ||
inputOutlineFocus: string; | ||
} | ||
interface SubmitButton { | ||
interface Button { | ||
/** | ||
* Foreground color for the submit button | ||
* Foreground color for buttons | ||
*/ | ||
submitForeground: string; | ||
buttonForeground: string; | ||
/** | ||
* Background color for the submit button | ||
* Foreground color for buttons, in the hover state | ||
*/ | ||
submitBackground: string; | ||
buttonForegroundHover: string; | ||
/** | ||
* Foreground color for the submit button, in the hover state | ||
* Background color for buttons | ||
*/ | ||
submitForegroundHover: string; | ||
buttonBackground: string; | ||
/** | ||
* Background color when hovering over the submit button | ||
* Background color when hovering over buttons | ||
*/ | ||
submitBackgroundHover: string; | ||
buttonBackgroundHover: string; | ||
/** | ||
* Border style for the submit button | ||
* Border style for buttons | ||
*/ | ||
submitBorder: string; | ||
buttonBorder: string; | ||
/** | ||
* Border style for the submit button, in the focued state | ||
* Border style for buttons, in the focued state | ||
*/ | ||
submitOutlineFocus: string; | ||
buttonOutlineFocus: string; | ||
} | ||
interface CancelButton { | ||
interface SubmitButton { | ||
/** | ||
* Foreground color for the cancel button | ||
* Foreground color for submit buttons | ||
*/ | ||
cancelForeground: string; | ||
submitForeground: string; | ||
/** | ||
* Background color for the cancel button | ||
* Foreground color for submit buttons, in the hover state | ||
*/ | ||
cancelBackground: string; | ||
submitForegroundHover: string; | ||
/** | ||
* Foreground color for the cancel button, in the hover state | ||
* Background color for submit buttons | ||
*/ | ||
cancelForegroundHover: string; | ||
submitBackground: string; | ||
/** | ||
* Background color when hovering over the cancel button | ||
* Background color when hovering over submit buttons | ||
*/ | ||
cancelBackgroundHover: string; | ||
submitBackgroundHover: string; | ||
/** | ||
* Border style for the cancel button | ||
* Border style for submit buttons | ||
*/ | ||
cancelBorder: string; | ||
submitBorder: string; | ||
/** | ||
* Border style for the cancel button, in the focued state | ||
* Border style for submit buttons, in the focued state | ||
*/ | ||
cancelOutlineFocus: string; | ||
submitOutlineFocus: string; | ||
} | ||
interface Input { | ||
interface Trigger { | ||
/** | ||
* Background color for form inputs | ||
* Background color of the actor button | ||
*/ | ||
inputBackground: string; | ||
triggerBackground: string; | ||
/** | ||
* Foreground color for form inputs | ||
* Background color on hover | ||
*/ | ||
inputForeground: string; | ||
triggerBackgroundHover: string; | ||
/** | ||
* Border styles for form inputs | ||
* Border radius styling for actor | ||
*/ | ||
inputBorder: string; | ||
triggerBorderRadius: string; | ||
} | ||
interface Dialog { | ||
/** | ||
* Border styles for form inputs when focused | ||
* Background color of the open dialog | ||
*/ | ||
inputOutlineFocus: string; | ||
dialogBackground: string; | ||
/** | ||
* Border radius for dialog | ||
*/ | ||
dialogBorderRadius: string; | ||
} | ||
export interface FeedbackTheme extends BaseStyles, ActorAndModal, ActorButton, Modal, SubmitButton, CancelButton, Input { | ||
export interface FeedbackTheme extends BaseStyles, Input, Button, SubmitButton, Trigger, Dialog { | ||
} | ||
export {}; | ||
//# sourceMappingURL=theme.d.ts.map |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
314498
6592
28