@mundogamernetwork/shared-ui 1.17.13 → 1.17.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mundogamernetwork/shared-ui",
3
- "version": "1.17.13",
3
+ "version": "1.17.14",
4
4
  "description": "Mundo Gamer Network - Shared UI Layer (Nuxt 3)",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
@@ -407,6 +407,12 @@ const requestUrl = useRequestURL();
407
407
  const seoTitle = computed(() => kit.value ? `${kit.value.name} — Mundo Gamer Press Kit` : 'Mundo Gamer Press Kit');
408
408
  const seoDescription = computed(() => kit.value?.tagline || kit.value?.description?.replace(/<[^>]*>/g, '').slice(0, 160) || '');
409
409
  const seoImage = computed(() => kit.value?.hero_image_url || kit.value?.cover_image_url || kit.value?.logo_url || '');
410
+ const seoImageType = computed(() => {
411
+ const image = seoImage.value.toLowerCase();
412
+ if (image.includes('.png')) return 'image/png';
413
+ if (image.includes('.webp')) return 'image/webp';
414
+ return 'image/jpeg';
415
+ });
410
416
 
411
417
  // Raw useHead meta-array form, not useSeoMeta — see the matching comment in
412
418
  // shared-ui/pages/mural/[slug]/index.vue for why (useSeoMeta's og:*/twitter:*/
@@ -426,6 +432,10 @@ useHead(() => ({
426
432
  // Only override the image when the kit actually has one — an empty
427
433
  // string would replace (not fall back to) the site default image.
428
434
  ...(seoImage.value ? [{ property: 'og:image', content: seoImage.value }] : []),
435
+ ...(seoImage.value ? [
436
+ { property: 'og:image:secure_url', content: seoImage.value },
437
+ { property: 'og:image:type', content: seoImageType.value },
438
+ ] : []),
429
439
  { property: 'og:type', content: 'article' },
430
440
  { property: 'og:url', content: requestUrl.href },
431
441
  { property: 'og:site_name', content: 'Mundo Gamer Press Kit' },