@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/content/index.mjs
CHANGED
|
@@ -598,6 +598,22 @@ var PROSE_CSS = `
|
|
|
598
598
|
function ProseStyles() {
|
|
599
599
|
return /* @__PURE__ */ jsx("style", { dangerouslySetInnerHTML: { __html: PROSE_CSS } });
|
|
600
600
|
}
|
|
601
|
+
function canonicalFromLocation() {
|
|
602
|
+
if (typeof window === "undefined" || !window.location) return void 0;
|
|
603
|
+
const { origin, pathname } = window.location;
|
|
604
|
+
if (!origin || origin === "null") return void 0;
|
|
605
|
+
const path = pathname === "/" ? "/" : pathname.replace(/\/+$/, "");
|
|
606
|
+
return `${origin}${path}`;
|
|
607
|
+
}
|
|
608
|
+
function resolveImageUrl(image, base) {
|
|
609
|
+
if (!image || /^https?:\/\//i.test(image)) return image;
|
|
610
|
+
if (!base) return image;
|
|
611
|
+
try {
|
|
612
|
+
return new URL(image, base).toString();
|
|
613
|
+
} catch {
|
|
614
|
+
return image;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
601
617
|
function PageHead({
|
|
602
618
|
title,
|
|
603
619
|
description,
|
|
@@ -614,7 +630,8 @@ function PageHead({
|
|
|
614
630
|
additionalMeta
|
|
615
631
|
}) {
|
|
616
632
|
const fullTitle = productName && !title.includes(productName) ? `${title} | ${productName}` : title;
|
|
617
|
-
const
|
|
633
|
+
const resolvedUrl = url ?? canonicalFromLocation();
|
|
634
|
+
const fullImageUrl = resolveImageUrl(image, resolvedUrl);
|
|
618
635
|
const structuredDataItems = structuredData ? Array.isArray(structuredData) ? structuredData : [structuredData] : [];
|
|
619
636
|
return /* @__PURE__ */ jsxs(Helmet, { children: [
|
|
620
637
|
/* @__PURE__ */ jsx("title", { children: fullTitle }),
|
|
@@ -623,13 +640,13 @@ function PageHead({
|
|
|
623
640
|
keywords && /* @__PURE__ */ jsx("meta", { name: "keywords", content: keywords }),
|
|
624
641
|
/* @__PURE__ */ jsx("meta", { name: "author", content: "Burdenoff Consultancy Services Pvt Ltd" }),
|
|
625
642
|
/* @__PURE__ */ jsx("meta", { name: "robots", content: robots }),
|
|
626
|
-
|
|
643
|
+
resolvedUrl && /* @__PURE__ */ jsx("link", { rel: "canonical", href: resolvedUrl }),
|
|
627
644
|
favicon && /* @__PURE__ */ jsx("link", { rel: "icon", href: favicon }),
|
|
628
645
|
/* @__PURE__ */ jsx("meta", { property: "og:type", content: "website" }),
|
|
629
646
|
/* @__PURE__ */ jsx("meta", { property: "og:title", content: fullTitle }),
|
|
630
647
|
description && /* @__PURE__ */ jsx("meta", { property: "og:description", content: description }),
|
|
631
648
|
fullImageUrl && /* @__PURE__ */ jsx("meta", { property: "og:image", content: fullImageUrl }),
|
|
632
|
-
|
|
649
|
+
resolvedUrl && /* @__PURE__ */ jsx("meta", { property: "og:url", content: resolvedUrl }),
|
|
633
650
|
/* @__PURE__ */ jsx("meta", { property: "og:locale", content: locale }),
|
|
634
651
|
productName && /* @__PURE__ */ jsx("meta", { property: "og:site_name", content: productName }),
|
|
635
652
|
/* @__PURE__ */ jsx("meta", { name: "twitter:card", content: "summary_large_image" }),
|