@sentry/types
Advanced tools
Comparing version 8.12.0-beta.0 to 8.12.0
{ | ||
"name": "@sentry/types", | ||
"version": "8.12.0-beta.0", | ||
"version": "8.12.0", | ||
"description": "Types for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
@@ -12,4 +12,8 @@ import { Attachment } from '../attachment'; | ||
} | ||
type Hooks = unknown; | ||
type HTMLElement = unknown; | ||
export interface FeedbackDialog { | ||
type HType = unknown; | ||
type ShadowRoot = unknown; | ||
type VNode = unknown; | ||
type FeedbackDialog = { | ||
/** | ||
@@ -37,5 +41,16 @@ * The HTMLElement that is containing all the form content | ||
close: () => void; | ||
}; | ||
interface FeedbackScreenshotInput { | ||
/** | ||
* The preact component | ||
*/ | ||
input: (props: { | ||
onError: (error: Error) => void; | ||
}) => VNode; | ||
/** | ||
* The image/screenshot bytes | ||
*/ | ||
value: () => Promise<Attachment | undefined>; | ||
} | ||
type ShadowRoot = unknown; | ||
export interface CreateDialogProps { | ||
interface CreateDialogProps { | ||
options: FeedbackInternalOptions; | ||
@@ -49,18 +64,11 @@ screenshotIntegration: FeedbackScreenshotIntegration | undefined; | ||
} | ||
type HType = unknown; | ||
type VNode = unknown; | ||
interface CreateInputProps { | ||
h: HType; | ||
hooks: Hooks; | ||
dialog: FeedbackDialog; | ||
options: FeedbackInternalOptions; | ||
} | ||
export interface FeedbackScreenshotIntegration extends Integration { | ||
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => { | ||
/** | ||
* The preact component | ||
*/ | ||
input: (props: { | ||
onError: (error: Error) => void; | ||
}) => VNode; | ||
/** | ||
* The image/screenshot bytes | ||
*/ | ||
value: () => Promise<Attachment | undefined>; | ||
}; | ||
createInput: (props: CreateInputProps) => FeedbackScreenshotInput; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,3 +24,3 @@ export { Attachment } from './attachment'; | ||
export { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay'; | ||
export { FeedbackDialog, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, CreateDialogProps, UserFeedback, } from './feedback'; | ||
export { FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, UserFeedback, } from './feedback'; | ||
export { QueryParams, Request, SanitizedRequestData } from './request'; | ||
@@ -27,0 +27,0 @@ export { Runtime } from './runtime'; |
@@ -12,4 +12,8 @@ import type { Attachment } from '../attachment'; | ||
} | ||
type Hooks = unknown; | ||
type HTMLElement = unknown; | ||
export interface FeedbackDialog { | ||
type HType = unknown; | ||
type ShadowRoot = unknown; | ||
type VNode = unknown; | ||
type FeedbackDialog = { | ||
/** | ||
@@ -37,5 +41,16 @@ * The HTMLElement that is containing all the form content | ||
close: () => void; | ||
}; | ||
interface FeedbackScreenshotInput { | ||
/** | ||
* The preact component | ||
*/ | ||
input: (props: { | ||
onError: (error: Error) => void; | ||
}) => VNode; | ||
/** | ||
* The image/screenshot bytes | ||
*/ | ||
value: () => Promise<Attachment | undefined>; | ||
} | ||
type ShadowRoot = unknown; | ||
export interface CreateDialogProps { | ||
interface CreateDialogProps { | ||
options: FeedbackInternalOptions; | ||
@@ -49,18 +64,11 @@ screenshotIntegration: FeedbackScreenshotIntegration | undefined; | ||
} | ||
type HType = unknown; | ||
type VNode = unknown; | ||
interface CreateInputProps { | ||
h: HType; | ||
hooks: Hooks; | ||
dialog: FeedbackDialog; | ||
options: FeedbackInternalOptions; | ||
} | ||
export interface FeedbackScreenshotIntegration extends Integration { | ||
createInput: (h: HType, dialog: FeedbackDialog, options: FeedbackInternalOptions) => { | ||
/** | ||
* The preact component | ||
*/ | ||
input: (props: { | ||
onError: (error: Error) => void; | ||
}) => VNode; | ||
/** | ||
* The image/screenshot bytes | ||
*/ | ||
value: () => Promise<Attachment | undefined>; | ||
}; | ||
createInput: (props: CreateInputProps) => FeedbackScreenshotInput; | ||
} | ||
//# sourceMappingURL=index.d.ts.map |
@@ -24,3 +24,3 @@ export type { Attachment } from './attachment'; | ||
export type { ReplayEvent, ReplayRecordingData, ReplayRecordingMode } from './replay'; | ||
export type { FeedbackDialog, FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, CreateDialogProps, UserFeedback, } from './feedback'; | ||
export type { FeedbackEvent, FeedbackFormData, FeedbackInternalOptions, FeedbackModalIntegration, FeedbackScreenshotIntegration, SendFeedback, SendFeedbackParams, UserFeedback, } from './feedback'; | ||
export type { QueryParams, Request, SanitizedRequestData } from './request'; | ||
@@ -27,0 +27,0 @@ export type { Runtime } from './runtime'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
322118
6669
0