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.
- package/dist/client/200.html +5 -5
- package/dist/client/404.html +5 -5
- package/dist/client/_nuxt/IconCSS.6eedc0b4.js +1 -0
- package/dist/client/_nuxt/IconCSS.8633f909.css +1 -0
- package/dist/client/_nuxt/{ImageLoader.dc25aae4.js → ImageLoader.6c3db107.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -0
- package/dist/client/_nuxt/builds/meta/15300c75-cff7-4383-aee7-45e80c06223e.json +1 -0
- package/dist/client/_nuxt/{entry.ffee29d2.css → entry.067759ab.css} +1 -1
- package/dist/client/_nuxt/entry.30bfbdb0.js +135 -0
- package/dist/client/_nuxt/{error-404.03584591.js → error-404.f53be311.js} +1 -1
- package/dist/client/_nuxt/{error-500.0269b959.js → error-500.95a4e96b.js} +1 -1
- package/dist/client/_nuxt/{index.6c1db53d.js → index.b84d405c.js} +1 -1
- package/dist/client/_nuxt/{options.0b48d67b.js → options.ba272791.js} +1 -1
- package/dist/client/_nuxt/{png.b1d21a11.js → png.7ba30b3a.js} +1 -1
- package/dist/client/_nuxt/{shiki.70038c40.js → shiki.92298145.js} +1 -1
- package/dist/client/_nuxt/{svg.5a8d996c.js → svg.be478a83.js} +1 -1
- package/dist/client/_nuxt/{vnodes.c7225cfc.js → vnodes.7d9fa602.js} +1 -1
- package/dist/client/index.html +5 -5
- package/dist/client/options/index.html +5 -5
- package/dist/client/png/index.html +5 -5
- package/dist/client/svg/index.html +5 -5
- package/dist/client/vnodes/index.html +5 -5
- package/dist/module.d.mts +4 -0
- package/dist/module.d.ts +4 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/nitro/middleware/og.png.mjs +2 -2
- package/dist/runtime/nitro/renderers/browser.mjs +9 -5
- package/dist/runtime/nitro/renderers/satori/index.mjs +2 -2
- package/dist/runtime/public-assets-optional/resvg/resvg.wasm +0 -0
- package/dist/runtime/types.d.ts +4 -0
- package/package.json +15 -15
- package/dist/client/_nuxt/IconCSS.3e8abf01.js +0 -1
- package/dist/client/_nuxt/IconCSS.940a18a7.css +0 -1
- package/dist/client/_nuxt/entry.e59cdd76.js +0 -135
|
Binary file
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -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.
|
|
5
|
-
"packageManager": "pnpm@8.9.
|
|
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.
|
|
31
|
-
"@resvg/resvg-js": "^2.
|
|
32
|
-
"@resvg/resvg-wasm": "^2.
|
|
33
|
-
"@types/fs-extra": "^11.0.
|
|
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.
|
|
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.
|
|
68
|
-
"@nuxt/devtools": "1.0.0
|
|
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.
|
|
70
|
+
"@nuxt/test-utils": "3.8.0",
|
|
71
71
|
"@nuxtjs/eslint-config-typescript": "^12.1.0",
|
|
72
|
-
"@types/ws": "^8.5.
|
|
72
|
+
"@types/ws": "^8.5.8",
|
|
73
73
|
"bumpp": "^9.2.0",
|
|
74
|
-
"eslint": "8.
|
|
74
|
+
"eslint": "8.52.0",
|
|
75
75
|
"jest-image-snapshot": "^6.2.0",
|
|
76
|
-
"nuxt": "^3.
|
|
77
|
-
"nuxt-icon": "
|
|
76
|
+
"nuxt": "^3.8.0",
|
|
77
|
+
"nuxt-icon": "0.5.0",
|
|
78
78
|
"playwright": "^1.39.0",
|
|
79
|
-
"sass": "^1.69.
|
|
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}
|