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
25 lines
1.2 KiB
Plaintext
25 lines
1.2 KiB
Plaintext
import { FeedbackModalIntegration, Integration, IntegrationFn } from '@sentry/core';
|
|
import { ActorComponent } from './components/Actor';
|
|
import { OverrideFeedbackConfiguration } from './types';
|
|
type Unsubscribe = () => void;
|
|
/**
|
|
* Allow users to capture user feedback and send it to Sentry.
|
|
*/
|
|
type BuilderOptions = {
|
|
lazyLoadIntegration?: never;
|
|
getModalIntegration: () => IntegrationFn;
|
|
getScreenshotIntegration: () => IntegrationFn;
|
|
} | {
|
|
lazyLoadIntegration: (name: 'feedbackModalIntegration' | 'feedbackScreenshotIntegration', scriptNonce?: string) => Promise<IntegrationFn>;
|
|
getModalIntegration?: never;
|
|
getScreenshotIntegration?: never;
|
|
};
|
|
export declare const buildFeedbackIntegration: ({ lazyLoadIntegration, getModalIntegration, getScreenshotIntegration, }: BuilderOptions) => IntegrationFn<Integration & {
|
|
attachTo(el: Element | string, optionOverrides?: OverrideFeedbackConfiguration): Unsubscribe;
|
|
createForm(optionOverrides?: OverrideFeedbackConfiguration): Promise<ReturnType<FeedbackModalIntegration["createDialog"]>>;
|
|
createWidget(optionOverrides?: OverrideFeedbackConfiguration): ActorComponent;
|
|
remove(): void;
|
|
}>;
|
|
export {};
|
|
//# sourceMappingURL=integration.d.ts.map
|