Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
import type { FeedbackInternalOptions, FeedbackModalIntegration } from '@sentry/core';
|
|
import type { ComponentType, h as hType } from 'preact';
|
|
import type * as Hooks from 'preact/hooks';
|
|
interface FactoryParams {
|
|
h: typeof hType;
|
|
hooks: typeof Hooks;
|
|
/**
|
|
* A ref to a Canvas Element that serves as our "value" or image output.
|
|
*/
|
|
outputBuffer: HTMLCanvasElement;
|
|
/**
|
|
* A reference to the whole dialog (the parent of this component) so that we
|
|
* can show/hide it and take a clean screenshot of the webpage.
|
|
*/
|
|
dialog: ReturnType<FeedbackModalIntegration['createDialog']>;
|
|
/**
|
|
* The whole options object.
|
|
*
|
|
* Needed to set nonce and id values for editor specific styles
|
|
*/
|
|
options: FeedbackInternalOptions;
|
|
}
|
|
interface Props {
|
|
onError: (error: Error) => void;
|
|
}
|
|
export declare function ScreenshotEditorFactory({ h, hooks, outputBuffer, dialog, options, }: FactoryParams): ComponentType<Props>;
|
|
export {};
|
|
//# sourceMappingURL=ScreenshotEditor.d.ts.map |