@studio-fes/layer-strapi 0.4.9 → 0.5.1

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 CHANGED
@@ -1,5 +1,27 @@
1
1
  # @studio-fes/layer-strapi
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: image default sizes and removed automatic twitter option
8
+
9
+ ## 0.5.0
10
+
11
+ No changes in this release.
12
+
13
+ ## 0.4.11
14
+
15
+ ### Patch Changes
16
+
17
+ - 0.4.10 minor fix
18
+
19
+ ## 0.4.10
20
+
21
+ ### Patch Changes
22
+
23
+ - fix: useCraftEntry ts fix
24
+
3
25
  ## 0.4.9
4
26
 
5
27
  ### Patch Changes
@@ -4,7 +4,7 @@ function getFallbackImage(): string | null {
4
4
  const runtimeConfig = useRuntimeConfig()
5
5
  const nuxtImage = useImage()
6
6
  const baseUrl = (runtimeConfig.public.baseUrl as string).replace(/\/$/, '')
7
- return nuxtImage(`${baseUrl}/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, quality: 80 })
7
+ return nuxtImage(`${baseUrl}/${runtimeConfig.public.ogImageFallback}`, { width: 1200, height: 630, fit: 'cover', quality: 80 })
8
8
  }
9
9
 
10
10
  export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
@@ -19,7 +19,7 @@ export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
19
19
 
20
20
  const ogImageData = openGraph?.ogImage || metaImage
21
21
  const ogImage = ogImageData?.url
22
- ? nuxtImage(runtimeConfig.public.backendUrl + ogImageData.url, { width: 1200, height: 630, quality: 80 })
22
+ ? nuxtImage(runtimeConfig.public.backendUrl + ogImageData.url, { width: 1200, height: 630, fit: 'cover', quality: 80 })
23
23
  : getFallbackImage()
24
24
 
25
25
  useSeoMeta({
@@ -29,7 +29,8 @@ export function useStrapiSEO(seoData?: MaybeRefOrGetter<SeoMetaFragment>) {
29
29
  ogTitle: openGraph?.ogTitle || metaTitle,
30
30
  ogDescription: openGraph?.ogDescription || metaDescription,
31
31
  ogImageAlt: ogImageData?.alternativeText || metaTitle,
32
- twitterCard: 'summary_large_image',
32
+ ogImageWidth: ogImage ? 1200 : undefined,
33
+ ogImageHeight: ogImage ? 630 : undefined,
33
34
  robots: metaRobots,
34
35
  })
35
36
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@studio-fes/layer-strapi",
3
3
  "type": "module",
4
- "version": "0.4.9",
4
+ "version": "0.5.1",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev",
@@ -22,12 +22,12 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@studio-fes/layer-base": "workspace:*",
25
- "@types/node": "^26.6.1",
26
- "eslint": "^10.10.0",
27
- "nuxt": "^4.5.2",
28
- "typescript": "^5.9.3",
25
+ "@types/node": "^26.6.4",
26
+ "eslint": "^10.12.0",
27
+ "nuxt": "^4.6.0",
28
+ "typescript": "^7.0.2",
29
29
  "vue": "latest",
30
- "vue-tsc": "^3.0.0"
30
+ "vue-tsc": "^3.3.12"
31
31
  },
32
32
  "description": "Create Nuxt extendable layer with this GitHub template.",
33
33
  "repository": {