@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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@sylergydigital/issue-pin-sdk` are documented here.
|
|
4
4
|
|
|
5
|
+
## [0.6.8] - 2026-04-15
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- **SSO handoff missing `apikey` header** — the `external-sso-launch` fetch was rejected by the Supabase gateway with "No API key found in request". Now sends the resolved anon key in the `apikey` header.
|
|
9
|
+
|
|
5
10
|
## [0.6.6] - 2026-04-15
|
|
6
11
|
|
|
7
12
|
### Fixed
|
package/dist/index.cjs
CHANGED
|
@@ -496,7 +496,8 @@ function FeedbackProvider({
|
|
|
496
496
|
method: "POST",
|
|
497
497
|
headers: {
|
|
498
498
|
"Content-Type": "application/json",
|
|
499
|
-
Authorization: `Bearer ${autoIdentity.accessToken}
|
|
499
|
+
Authorization: `Bearer ${autoIdentity.accessToken}`,
|
|
500
|
+
apikey: resolved.supabaseAnonKey
|
|
500
501
|
},
|
|
501
502
|
body: JSON.stringify({
|
|
502
503
|
apiKey: config.apiKey,
|
|
@@ -514,7 +515,7 @@ function FeedbackProvider({
|
|
|
514
515
|
return;
|
|
515
516
|
}
|
|
516
517
|
window.open(`${baseUrl}${threadPath}`, "_blank", "noopener,noreferrer");
|
|
517
|
-
}, [resolved.supabaseUrl, resolved.siteUrl, config.apiKey, autoIdentity.accessToken]);
|
|
518
|
+
}, [resolved.supabaseUrl, resolved.supabaseAnonKey, resolved.siteUrl, config.apiKey, autoIdentity.accessToken]);
|
|
518
519
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
519
520
|
FeedbackProviderInner,
|
|
520
521
|
{
|
|
@@ -682,6 +683,7 @@ function FeedbackProviderInner({
|
|
|
682
683
|
const target = event.target;
|
|
683
684
|
if (!(target instanceof Element)) return;
|
|
684
685
|
if (!target.closest('[data-ew-feedback-interactive="true"]')) return;
|
|
686
|
+
if (target.closest("[data-ew-launcher]")) return;
|
|
685
687
|
event.stopPropagation();
|
|
686
688
|
};
|
|
687
689
|
window.addEventListener("pointerdown", handleSdkPointerDownCapture, true);
|
|
@@ -2410,6 +2412,7 @@ function FeedbackButton({ position = "bottom-right" }) {
|
|
|
2410
2412
|
{
|
|
2411
2413
|
ref: menuRef,
|
|
2412
2414
|
"data-ew-feedback-interactive": "true",
|
|
2415
|
+
"data-ew-launcher": true,
|
|
2413
2416
|
style: { ...wrapperStyle, touchAction: "none" },
|
|
2414
2417
|
onPointerDown: handlePointerDown,
|
|
2415
2418
|
onPointerMove: handlePointerMove,
|