@qaiddev/thumbs-embed 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -264,9 +264,23 @@ export declare class QaidFeedback {
264
264
  private boundMouseMove;
265
265
  private boundClick;
266
266
  private boundResize;
267
+ private destroyed;
268
+ private domObserver;
269
+ private boundBeforeSwap;
267
270
  constructor(config: FeedbackConfig);
268
271
  private applyVars;
269
272
  private init;
273
+ /**
274
+ * Watch for the shadow hosts being removed from the DOM by framework
275
+ * client-side navigation (e.g. Astro View Transitions swapping <body>
276
+ * contents, or any SPA router that replaces DOM subtrees). If the host
277
+ * is disconnected and destroy() wasn't called, re-append it.
278
+ *
279
+ * Also hooks into Astro's `astro:before-swap` when available, which
280
+ * lets us carry elements into the new document before the swap happens
281
+ * (avoids a flash of the widget disappearing and reappearing).
282
+ */
283
+ private observeDom;
270
284
  private checkMobile;
271
285
  private handleResize;
272
286
  private createEmbed;
@@ -409,11 +423,3 @@ export declare interface VideoRecorderOptions {
409
423
  }
410
424
 
411
425
  export { }
412
-
413
-
414
- declare global {
415
- interface Window {
416
- html2canvas?: (element: HTMLElement, options?: Record<string, unknown>) => Promise<HTMLCanvasElement>;
417
- }
418
- }
419
-