Files
klz-cables.com/.pnpm-store/v10/files/39/e43066d7cd34e0e40181ba943a1495cd0de0277e6a54bc177e36e33cbc76eba2aa18de2eb7fa2132a0cb18272f359be325bd7f01a6c23c595902291ecb7901
Marc Mintel 5397309103
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
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

72 lines
2.3 KiB
Plaintext

import { Attachment } from '../attachment';
import { Integration } from '../integration';
import { FeedbackCallbacks, FeedbackGeneralConfiguration, FeedbackTextConfiguration, FeedbackThemeConfiguration } from './config';
import { FeedbackEvent, SendFeedback, SendFeedbackParams, UserFeedback } from './sendFeedback';
export { FeedbackFormData } from './form';
export { FeedbackEvent, UserFeedback, SendFeedback, SendFeedbackParams };
/**
* The integration's internal `options` member where every value should be set
*/
export interface FeedbackInternalOptions extends FeedbackGeneralConfiguration, FeedbackThemeConfiguration, FeedbackTextConfiguration, FeedbackCallbacks {
}
type Hooks = unknown;
type HTMLElement = unknown;
type HType = unknown;
type ShadowRoot = unknown;
type VNode = unknown;
type FeedbackDialog = {
/**
* The HTMLElement that is containing all the form content
*/
el: HTMLElement;
/**
* Insert the Dialog into the Shadow DOM.
*
* The Dialog starts in the `closed` state where no inner HTML is rendered.
*/
appendToDom: () => void;
/**
* Remove the dialog from the Shadow DOM
*/
removeFromDom: () => void;
/**
* Open/Show the dialog & form inside it
*/
open: () => void;
/**
* Close/Hide the dialog & form inside it
*/
close: () => void;
};
interface FeedbackScreenshotInput {
/**
* The preact component
*/
input: (props: {
onError: (error: Error) => void;
}) => VNode;
/**
* The image/screenshot bytes
*/
value: () => Promise<Attachment | undefined>;
}
interface CreateDialogProps {
options: FeedbackInternalOptions;
screenshotIntegration: FeedbackScreenshotIntegration | undefined;
sendFeedback: SendFeedback;
shadow: ShadowRoot;
}
export interface FeedbackModalIntegration extends Integration {
createDialog: (props: CreateDialogProps) => FeedbackDialog;
}
interface CreateInputProps {
h: HType;
hooks: Hooks;
dialog: FeedbackDialog;
options: FeedbackInternalOptions;
}
export interface FeedbackScreenshotIntegration extends Integration {
createInput: (props: CreateInputProps) => FeedbackScreenshotInput;
}
//# sourceMappingURL=index.d.ts.map