nuxt-og-image 2.1.3 → 2.2.0

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 (35) hide show
  1. package/dist/client/200.html +5 -5
  2. package/dist/client/404.html +5 -5
  3. package/dist/client/_nuxt/IconCSS.6eedc0b4.js +1 -0
  4. package/dist/client/_nuxt/IconCSS.8633f909.css +1 -0
  5. package/dist/client/_nuxt/{ImageLoader.dc25aae4.js → ImageLoader.6c3db107.js} +1 -1
  6. package/dist/client/_nuxt/builds/latest.json +1 -0
  7. package/dist/client/_nuxt/builds/meta/15300c75-cff7-4383-aee7-45e80c06223e.json +1 -0
  8. package/dist/client/_nuxt/{entry.ffee29d2.css → entry.067759ab.css} +1 -1
  9. package/dist/client/_nuxt/entry.30bfbdb0.js +135 -0
  10. package/dist/client/_nuxt/{error-404.03584591.js → error-404.f53be311.js} +1 -1
  11. package/dist/client/_nuxt/{error-500.0269b959.js → error-500.95a4e96b.js} +1 -1
  12. package/dist/client/_nuxt/{index.6c1db53d.js → index.b84d405c.js} +1 -1
  13. package/dist/client/_nuxt/{options.0b48d67b.js → options.ba272791.js} +1 -1
  14. package/dist/client/_nuxt/{png.b1d21a11.js → png.7ba30b3a.js} +1 -1
  15. package/dist/client/_nuxt/{shiki.70038c40.js → shiki.92298145.js} +1 -1
  16. package/dist/client/_nuxt/{svg.5a8d996c.js → svg.be478a83.js} +1 -1
  17. package/dist/client/_nuxt/{vnodes.c7225cfc.js → vnodes.7d9fa602.js} +1 -1
  18. package/dist/client/index.html +5 -5
  19. package/dist/client/options/index.html +5 -5
  20. package/dist/client/png/index.html +5 -5
  21. package/dist/client/svg/index.html +5 -5
  22. package/dist/client/vnodes/index.html +5 -5
  23. package/dist/module.d.mts +4 -0
  24. package/dist/module.d.ts +4 -0
  25. package/dist/module.json +1 -1
  26. package/dist/module.mjs +1 -1
  27. package/dist/runtime/nitro/middleware/og.png.mjs +2 -2
  28. package/dist/runtime/nitro/renderers/browser.mjs +9 -5
  29. package/dist/runtime/nitro/renderers/satori/index.mjs +2 -2
  30. package/dist/runtime/public-assets-optional/resvg/resvg.wasm +0 -0
  31. package/dist/runtime/types.d.ts +4 -0
  32. package/package.json +15 -15
  33. package/dist/client/_nuxt/IconCSS.3e8abf01.js +0 -1
  34. package/dist/client/_nuxt/IconCSS.940a18a7.css +0 -1
  35. package/dist/client/_nuxt/entry.e59cdd76.js +0 -135
@@ -25,6 +25,10 @@ export interface ScreenshotOptions {
25
25
  }
26
26
  export interface OgImageOptions extends Partial<ScreenshotOptions> {
27
27
  provider?: 'browser' | 'satori';
28
+ /**
29
+ * Provide a static HTML template to render the OG Image instead of a component.
30
+ */
31
+ html?: string;
28
32
  title?: string;
29
33
  description?: string;
30
34
  component?: string | null;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "2.1.3",
5
- "packageManager": "pnpm@8.9.0",
4
+ "version": "2.2.0",
5
+ "packageManager": "pnpm@8.9.2",
6
6
  "description": "Enlightened OG Image generation for Nuxt.",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -27,15 +27,15 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@nuxt/kit": "^3.7.4",
31
- "@resvg/resvg-js": "^2.4.1",
32
- "@resvg/resvg-wasm": "^2.4.1",
33
- "@types/fs-extra": "^11.0.2",
30
+ "@nuxt/kit": "^3.8.0",
31
+ "@resvg/resvg-js": "^2.6.0",
32
+ "@resvg/resvg-wasm": "^2.6.0",
33
+ "@types/fs-extra": "^11.0.3",
34
34
  "birpc": "0.2.14",
35
35
  "chalk": "^5.3.0",
36
36
  "chrome-launcher": "^1.1.0",
37
37
  "css-inline": "^0.11.0",
38
- "defu": "^6.1.2",
38
+ "defu": "^6.1.3",
39
39
  "execa": "^8.0.1",
40
40
  "fast-glob": "^3.3.1",
41
41
  "flatted": "^3.2.9",
@@ -64,19 +64,19 @@
64
64
  "yoga-wasm-web": "^0.3.3"
65
65
  },
66
66
  "devDependencies": {
67
- "@antfu/eslint-config": "1.0.0-beta.27",
68
- "@nuxt/devtools": "1.0.0-beta.1",
67
+ "@antfu/eslint-config": "1.0.0-beta.29",
68
+ "@nuxt/devtools": "1.0.0",
69
69
  "@nuxt/module-builder": "^0.5.2",
70
- "@nuxt/test-utils": "3.7.4",
70
+ "@nuxt/test-utils": "3.8.0",
71
71
  "@nuxtjs/eslint-config-typescript": "^12.1.0",
72
- "@types/ws": "^8.5.7",
72
+ "@types/ws": "^8.5.8",
73
73
  "bumpp": "^9.2.0",
74
- "eslint": "8.51.0",
74
+ "eslint": "8.52.0",
75
75
  "jest-image-snapshot": "^6.2.0",
76
- "nuxt": "^3.7.4",
77
- "nuxt-icon": "^0.5.0",
76
+ "nuxt": "^3.8.0",
77
+ "nuxt-icon": "0.5.0",
78
78
  "playwright": "^1.39.0",
79
- "sass": "^1.69.3",
79
+ "sass": "^1.69.5",
80
80
  "vitest": "^0.34.6"
81
81
  },
82
82
  "scripts": {
@@ -1 +0,0 @@
1
- import{g as l,H as _,I as d,n as o,o as f,c as m,s as S,_ as g}from"./entry.e59cdd76.js";const x=l({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(r){const n=r;_(e=>({"77a740e2":u.value}));const s=d(),p=o(()=>{var e;return((((e=s.nuxtIcon)==null?void 0:e.aliases)||{})[n.name]||n.name).replace(/^i-/,"")}),u=o(()=>`url('https://api.iconify.design/${p.value.replace(":","/")}.svg')`),a=o(()=>{var t,c,i;if(!n.size&&typeof((t=s.nuxtIcon)==null?void 0:t.size)=="boolean"&&!((c=s.nuxtIcon)!=null&&c.size))return;const e=n.size||((i=s.nuxtIcon)==null?void 0:i.size)||"1em";return String(Number(e))===e?`${e}px`:e});return(e,t)=>(f(),m("span",{style:S({width:a.value,height:a.value})},null,4))}});const z=g(x,[["__scopeId","data-v-d83431fd"]]);export{z as default};
@@ -1 +0,0 @@
1
- span[data-v-d83431fd]{background-color:currentColor;display:inline-block;-webkit-mask-image:var(--77a740e2);mask-image:var(--77a740e2);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle}