@sylergydigital/issue-pin-sdk 0.6.6 → 0.6.8
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/CHANGELOG.md +5 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -446,7 +446,8 @@ function FeedbackProvider({
|
|
|
446
446
|
method: "POST",
|
|
447
447
|
headers: {
|
|
448
448
|
"Content-Type": "application/json",
|
|
449
|
-
Authorization: `Bearer ${autoIdentity.accessToken}
|
|
449
|
+
Authorization: `Bearer ${autoIdentity.accessToken}`,
|
|
450
|
+
apikey: resolved.supabaseAnonKey
|
|
450
451
|
},
|
|
451
452
|
body: JSON.stringify({
|
|
452
453
|
apiKey: config.apiKey,
|
|
@@ -464,7 +465,7 @@ function FeedbackProvider({
|
|
|
464
465
|
return;
|
|
465
466
|
}
|
|
466
467
|
window.open(`${baseUrl}${threadPath}`, "_blank", "noopener,noreferrer");
|
|
467
|
-
}, [resolved.supabaseUrl, resolved.siteUrl, config.apiKey, autoIdentity.accessToken]);
|
|
468
|
+
}, [resolved.supabaseUrl, resolved.supabaseAnonKey, resolved.siteUrl, config.apiKey, autoIdentity.accessToken]);
|
|
468
469
|
return /* @__PURE__ */ jsx(
|
|
469
470
|
FeedbackProviderInner,
|
|
470
471
|
{
|
|
@@ -632,6 +633,7 @@ function FeedbackProviderInner({
|
|
|
632
633
|
const target = event.target;
|
|
633
634
|
if (!(target instanceof Element)) return;
|
|
634
635
|
if (!target.closest('[data-ew-feedback-interactive="true"]')) return;
|
|
636
|
+
if (target.closest("[data-ew-launcher]")) return;
|
|
635
637
|
event.stopPropagation();
|
|
636
638
|
};
|
|
637
639
|
window.addEventListener("pointerdown", handleSdkPointerDownCapture, true);
|
|
@@ -2360,6 +2362,7 @@ function FeedbackButton({ position = "bottom-right" }) {
|
|
|
2360
2362
|
{
|
|
2361
2363
|
ref: menuRef,
|
|
2362
2364
|
"data-ew-feedback-interactive": "true",
|
|
2365
|
+
"data-ew-launcher": true,
|
|
2363
2366
|
style: { ...wrapperStyle, touchAction: "none" },
|
|
2364
2367
|
onPointerDown: handlePointerDown,
|
|
2365
2368
|
onPointerMove: handlePointerMove,
|