@qaiddev/thumbs-embed 1.0.9 → 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 +14 -0
- package/dist/qaid.js +163 -141
- package/dist/qaid.js.map +1 -1
- package/dist/qaid.umd.cjs +5 -5
- package/dist/qaid.umd.cjs.map +1 -1
- package/package.json +1 -1
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;
|