@burdenoff/website-sdk 2026.813.1 → 2026.813.2
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/components/contact.js +20 -3
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +20 -3
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/newsletter.js +20 -3
- package/dist/components/newsletter.js.map +1 -1
- package/dist/components/newsletter.mjs +20 -3
- package/dist/components/newsletter.mjs.map +1 -1
- package/dist/components/partners.js +20 -3
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +20 -3
- package/dist/components/partners.mjs.map +1 -1
- package/dist/components/pricing.js +20 -3
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +20 -3
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/components/unsubscribe.js +20 -3
- package/dist/components/unsubscribe.js.map +1 -1
- package/dist/components/unsubscribe.mjs +20 -3
- package/dist/components/unsubscribe.mjs.map +1 -1
- package/dist/components/waitlist.js +20 -3
- package/dist/components/waitlist.js.map +1 -1
- package/dist/components/waitlist.mjs +20 -3
- package/dist/components/waitlist.mjs.map +1 -1
- package/dist/content/index.js +20 -3
- package/dist/content/index.js.map +1 -1
- package/dist/content/index.mjs +20 -3
- package/dist/content/index.mjs.map +1 -1
- package/dist/index.js +20 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -3
- package/dist/index.mjs.map +1 -1
- package/dist/seo/index.js +20 -3
- package/dist/seo/index.js.map +1 -1
- package/dist/seo/index.mjs +20 -3
- package/dist/seo/index.mjs.map +1 -1
- package/dist/store/index.js +20 -3
- package/dist/store/index.js.map +1 -1
- package/dist/store/index.mjs +20 -3
- package/dist/store/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -434,6 +434,22 @@ function useProductConfig() {
|
|
|
434
434
|
logoUrl: product?.logoUrl ?? null
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
+
function canonicalFromLocation() {
|
|
438
|
+
if (typeof window === "undefined" || !window.location) return void 0;
|
|
439
|
+
const { origin, pathname } = window.location;
|
|
440
|
+
if (!origin || origin === "null") return void 0;
|
|
441
|
+
const path = pathname === "/" ? "/" : pathname.replace(/\/+$/, "");
|
|
442
|
+
return `${origin}${path}`;
|
|
443
|
+
}
|
|
444
|
+
function resolveImageUrl(image, base) {
|
|
445
|
+
if (!image || /^https?:\/\//i.test(image)) return image;
|
|
446
|
+
if (!base) return image;
|
|
447
|
+
try {
|
|
448
|
+
return new URL(image, base).toString();
|
|
449
|
+
} catch {
|
|
450
|
+
return image;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
437
453
|
function PageHead({
|
|
438
454
|
title,
|
|
439
455
|
description,
|
|
@@ -450,7 +466,8 @@ function PageHead({
|
|
|
450
466
|
additionalMeta
|
|
451
467
|
}) {
|
|
452
468
|
const fullTitle = productName && !title.includes(productName) ? `${title} | ${productName}` : title;
|
|
453
|
-
const
|
|
469
|
+
const resolvedUrl = url ?? canonicalFromLocation();
|
|
470
|
+
const fullImageUrl = resolveImageUrl(image, resolvedUrl);
|
|
454
471
|
const structuredDataItems = structuredData ? Array.isArray(structuredData) ? structuredData : [structuredData] : [];
|
|
455
472
|
return /* @__PURE__ */ jsxs(Helmet, { children: [
|
|
456
473
|
/* @__PURE__ */ jsx("title", { children: fullTitle }),
|
|
@@ -459,13 +476,13 @@ function PageHead({
|
|
|
459
476
|
keywords && /* @__PURE__ */ jsx("meta", { name: "keywords", content: keywords }),
|
|
460
477
|
/* @__PURE__ */ jsx("meta", { name: "author", content: "Burdenoff Consultancy Services Pvt Ltd" }),
|
|
461
478
|
/* @__PURE__ */ jsx("meta", { name: "robots", content: robots }),
|
|
462
|
-
|
|
479
|
+
resolvedUrl && /* @__PURE__ */ jsx("link", { rel: "canonical", href: resolvedUrl }),
|
|
463
480
|
favicon && /* @__PURE__ */ jsx("link", { rel: "icon", href: favicon }),
|
|
464
481
|
/* @__PURE__ */ jsx("meta", { property: "og:type", content: "website" }),
|
|
465
482
|
/* @__PURE__ */ jsx("meta", { property: "og:title", content: fullTitle }),
|
|
466
483
|
description && /* @__PURE__ */ jsx("meta", { property: "og:description", content: description }),
|
|
467
484
|
fullImageUrl && /* @__PURE__ */ jsx("meta", { property: "og:image", content: fullImageUrl }),
|
|
468
|
-
|
|
485
|
+
resolvedUrl && /* @__PURE__ */ jsx("meta", { property: "og:url", content: resolvedUrl }),
|
|
469
486
|
/* @__PURE__ */ jsx("meta", { property: "og:locale", content: locale }),
|
|
470
487
|
productName && /* @__PURE__ */ jsx("meta", { property: "og:site_name", content: productName }),
|
|
471
488
|
/* @__PURE__ */ jsx("meta", { name: "twitter:card", content: "summary_large_image" }),
|