nuxt-og-image 6.7.5 → 6.7.7
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/LICENSE.md +6 -0
- package/dist/chunks/decode.mjs +1087 -0
- package/dist/chunks/tw4.mjs +2 -2
- package/dist/chunks/uno.mjs +19 -5
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +2 -2
- package/dist/runtime/app/utils/plugins.js +4 -10
- package/dist/runtime/server/og-image/bindings/browser/chrome-launcher.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/cloudflare.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/on-demand.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/browser/playwright.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/cloudflare.js +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.d.ts +1 -1
- package/dist/runtime/server/og-image/bindings/font-assets/dev-prerender.js +6 -7
- package/dist/runtime/server/og-image/bindings/font-assets/node.d.ts +2 -2
- package/dist/runtime/server/og-image/bindings/font-assets/node.js +2 -3
- package/dist/runtime/server/og-image/bindings/resvg/node-dev.js +18 -64
- package/dist/runtime/server/og-image/bindings/takumi/node-dev.js +26 -83
- package/dist/runtime/server/og-image/bindings/worker-queue.d.ts +34 -0
- package/dist/runtime/server/og-image/bindings/worker-queue.js +150 -0
- package/dist/runtime/server/og-image/browser/renderer.js +1 -1
- package/dist/runtime/server/og-image/browser/screenshot.js +2 -1
- package/dist/runtime/server/og-image/context.d.ts +1 -1
- package/dist/runtime/server/og-image/context.js +2 -3
- package/dist/runtime/server/og-image/core/plugins/imageSrc.js +1 -1
- package/dist/runtime/server/og-image/core/transforms/emojis/local.d.ts +2 -17
- package/dist/runtime/server/og-image/core/transforms/emojis/local.js +1 -1
- package/dist/runtime/server/og-image/devtools.d.ts +1 -1
- package/dist/runtime/server/og-image/devtools.js +1 -1
- package/dist/runtime/server/og-image/font-source.d.ts +3 -12
- package/dist/runtime/server/og-image/font-source.js +1 -4
- package/dist/runtime/server/og-image/fonts.d.ts +1 -8
- package/dist/runtime/server/og-image/fonts.js +1 -1
- package/dist/runtime/server/og-image/takumi/renderer.js +2 -2
- package/dist/runtime/server/og-image/templates/html.js +1 -1
- package/dist/runtime/server/plugins/prerender.d.ts +1 -1
- package/dist/runtime/server/plugins/prerender.js +2 -2
- package/dist/runtime/server/routes/__zero-runtime/image.d.ts +1 -1
- package/dist/runtime/server/routes/__zero-runtime/image.js +1 -1
- package/dist/runtime/server/routes/debug.json.d.ts +1 -10
- package/dist/runtime/server/routes/debug.json.js +1 -1
- package/dist/runtime/server/routes/image.d.ts +1 -1
- package/dist/runtime/server/routes/image.js +1 -1
- package/dist/runtime/server/routes/resolve.d.ts +1 -1
- package/dist/runtime/server/routes/resolve.js +3 -2
- package/dist/runtime/server/util/cache.d.ts +1 -6
- package/dist/runtime/server/util/cache.js +2 -2
- package/dist/runtime/server/util/cloudflare.d.ts +1 -1
- package/dist/runtime/server/util/cloudflareAssets.d.ts +1 -1
- package/dist/runtime/server/util/cloudflareAssets.js +1 -1
- package/dist/runtime/server/util/eventHandlers.d.ts +1 -1
- package/dist/runtime/server/util/eventHandlers.js +1 -1
- package/dist/runtime/server/util/fetchLocalAsset.d.ts +2 -2
- package/dist/runtime/server/util/fetchLocalAsset.js +2 -1
- package/dist/runtime/server/util/kit.d.ts +7 -3
- package/dist/runtime/server/util/kit.js +4 -18
- package/dist/runtime/server/util/options.js +1 -1
- package/dist/runtime/server/util/query.d.ts +1 -1
- package/dist/runtime/server/utils.d.ts +1 -1
- package/dist/runtime/server/utils.js +1 -1
- package/dist/runtime/types.d.ts +12 -10
- package/dist/shared/{nuxt-og-image.D3mV8OQ9.mjs → nuxt-og-image.BMHzg1Vz.mjs} +334 -155
- package/package.json +49 -39
- package/types/virtual.d.ts +15 -0
- package/dist/chunks/tw4.cjs +0 -493
- package/dist/chunks/uno.cjs +0 -234
- package/dist/cli.cjs +0 -1345
- package/dist/cli.d.cts +0 -1
- package/dist/content.cjs +0 -21
- package/dist/content.d.cts +0 -16
- package/dist/module.cjs +0 -39
- package/dist/module.d.cts +0 -219
- package/dist/shared/nuxt-og-image.CMYbz66P.cjs +0 -193
- package/dist/shared/nuxt-og-image.Cctpuv4O.cjs +0 -5867
package/dist/runtime/types.d.ts
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
import type { ResvgRenderOptions } from '@resvg/resvg-js';
|
|
2
2
|
import type { AllowedComponentProps, Component, ComponentCustomProps, VNodeProps } from '@vue/runtime-core';
|
|
3
|
-
import type { H3Error, H3Event } from 'h3';
|
|
4
|
-
import type { Hookable } from 'hookable';
|
|
5
|
-
import type { NitroRuntimeHooks } from 'nitropack/types';
|
|
6
3
|
import type { SatoriOptions } from 'satori';
|
|
7
4
|
import type { JpegOptions, SharpOptions } from 'sharp';
|
|
8
5
|
import type { MaybeRefOrGetter, Ref } from 'vue';
|
|
6
|
+
import type { H3Error, H3Event } from '#nuxtseo/h3';
|
|
9
7
|
import type { Timings } from './server/util/timings.js';
|
|
10
|
-
interface NitroApp {
|
|
11
|
-
hooks: Hookable<NitroRuntimeHooks>;
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
8
|
export interface OgImageRenderEventContext {
|
|
15
9
|
e: H3Event;
|
|
16
10
|
extension: 'png' | 'jpeg' | 'jpg' | 'webp' | 'svg' | 'html' | 'json';
|
|
@@ -22,10 +16,19 @@ export interface OgImageRenderEventContext {
|
|
|
22
16
|
publicStoragePath: string;
|
|
23
17
|
runtimeConfig: OgImageRuntimeConfig;
|
|
24
18
|
timings: Timings;
|
|
25
|
-
_nitro:
|
|
19
|
+
_nitro: ReturnType<typeof import('#nuxtseo/nitro').useNitroApp>;
|
|
26
20
|
}
|
|
27
21
|
export type IconifyEmojiIconSets = 'twemoji' | 'noto' | 'fluent-emoji' | 'fluent-emoji-flat' | 'fluent-emoji-high-contrast' | 'noto-v1' | 'emojione' | 'emojione-monotone' | 'emojione-v1' | 'streamline-emojis' | 'openmoji';
|
|
28
22
|
export type EmojiStrategy = 'auto' | 'local' | 'fetch';
|
|
23
|
+
export interface OgImageIconsData {
|
|
24
|
+
icons: Record<string, {
|
|
25
|
+
body: string;
|
|
26
|
+
width?: number;
|
|
27
|
+
height?: number;
|
|
28
|
+
}>;
|
|
29
|
+
width: number;
|
|
30
|
+
height: number;
|
|
31
|
+
}
|
|
29
32
|
export interface OgImageRuntimeConfig {
|
|
30
33
|
version: string;
|
|
31
34
|
satoriOptions: SatoriOptions;
|
|
@@ -211,7 +214,7 @@ export interface FontConfig {
|
|
|
211
214
|
weight: number;
|
|
212
215
|
style: 'normal' | 'italic';
|
|
213
216
|
src: string;
|
|
214
|
-
/**
|
|
217
|
+
/** Static source for renderers that cannot use the primary font. Falls back to src if not set. */
|
|
215
218
|
satoriSrc?: string;
|
|
216
219
|
localPath: string;
|
|
217
220
|
/** Absolute filesystem path for statically bundled fonts. */
|
|
@@ -298,4 +301,3 @@ export interface SocialPreviewMetaData {
|
|
|
298
301
|
export interface RouteRulesOgImage extends Partial<OgImageOptions> {
|
|
299
302
|
[key: string]: any;
|
|
300
303
|
}
|
|
301
|
-
export {};
|