@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.
Files changed (41) hide show
  1. package/dist/components/contact.js +20 -3
  2. package/dist/components/contact.js.map +1 -1
  3. package/dist/components/contact.mjs +20 -3
  4. package/dist/components/contact.mjs.map +1 -1
  5. package/dist/components/newsletter.js +20 -3
  6. package/dist/components/newsletter.js.map +1 -1
  7. package/dist/components/newsletter.mjs +20 -3
  8. package/dist/components/newsletter.mjs.map +1 -1
  9. package/dist/components/partners.js +20 -3
  10. package/dist/components/partners.js.map +1 -1
  11. package/dist/components/partners.mjs +20 -3
  12. package/dist/components/partners.mjs.map +1 -1
  13. package/dist/components/pricing.js +20 -3
  14. package/dist/components/pricing.js.map +1 -1
  15. package/dist/components/pricing.mjs +20 -3
  16. package/dist/components/pricing.mjs.map +1 -1
  17. package/dist/components/unsubscribe.js +20 -3
  18. package/dist/components/unsubscribe.js.map +1 -1
  19. package/dist/components/unsubscribe.mjs +20 -3
  20. package/dist/components/unsubscribe.mjs.map +1 -1
  21. package/dist/components/waitlist.js +20 -3
  22. package/dist/components/waitlist.js.map +1 -1
  23. package/dist/components/waitlist.mjs +20 -3
  24. package/dist/components/waitlist.mjs.map +1 -1
  25. package/dist/content/index.js +20 -3
  26. package/dist/content/index.js.map +1 -1
  27. package/dist/content/index.mjs +20 -3
  28. package/dist/content/index.mjs.map +1 -1
  29. package/dist/index.js +20 -3
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +20 -3
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/seo/index.js +20 -3
  34. package/dist/seo/index.js.map +1 -1
  35. package/dist/seo/index.mjs +20 -3
  36. package/dist/seo/index.mjs.map +1 -1
  37. package/dist/store/index.js +20 -3
  38. package/dist/store/index.js.map +1 -1
  39. package/dist/store/index.mjs +20 -3
  40. package/dist/store/index.mjs.map +1 -1
  41. 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 fullImageUrl = image && !image.startsWith("http") && url ? `${url.replace(/\/$/, "")}${image}` : image;
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
- url && /* @__PURE__ */ jsx("link", { rel: "canonical", href: url }),
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
- url && /* @__PURE__ */ jsx("meta", { property: "og:url", content: url }),
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" }),