@vercel/og 0.8.2 → 0.8.3

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 (2) hide show
  1. package/dist/types.d.ts +0 -54
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -1,7 +1,4 @@
1
1
  /// <reference types="node" />
2
- /// <reference types="react" />
3
- /// <reference types="node" />
4
- /// <reference types="node" />
5
2
  import type { SatoriOptions } from 'satori';
6
3
  import type { EmojiType } from './emoji';
7
4
  import type { OutgoingHttpHeader } from 'http';
@@ -48,57 +45,6 @@ export type ImageResponseNodeOptions = ImageOptions & {
48
45
  headers?: OutgoingHttpHeader[];
49
46
  };
50
47
  export type ImageResponseOptions = ImageOptions & ConstructorParameters<typeof Response>[1];
51
- export interface FigmaImageResponseProps {
52
- /**
53
- * Link to the Figma template frame.
54
- *
55
- * You can get the URL in Figma by right-clicking a frame and selecting "Copy link".
56
- * @example https://www.figma.com/file/QjGNQixWnhu300e1Xzdl2y/OG-Images?type=design&node-id=11356-2443&mode=design&t=yLROd7ro8mP1PxMY-4
57
- */
58
- url: string;
59
- /**
60
- * A mapping between Figma layer name and the value you want to replace it with.
61
- *
62
- * @example Sets Figma text layer named "Title" to "How to create OG Images"
63
- * ```js
64
- * { "Title": "How to create OG Images" }
65
- * ```
66
- *
67
- * @example Sets multiple Figma text layers and provides custom styles
68
- * ```js
69
- * {
70
- * "Title": { value: "How to create OG Images", props: { color: "red", centerHorizontally: true } },
71
- * "Description": { value: "A short story", props: { centerHorizontally: true } },
72
- * }
73
- * ```
74
- *
75
- * `centerHorizontally` centers text layer horizontally.
76
- */
77
- template: Record<string, FigmaComplexTemplate | string>;
78
- /**
79
- * The font names must match the font names in Figma.
80
- */
81
- fonts?: FontOptions[];
82
- /**
83
- * The same as {@link ImageResponseOptions} except `width` and `height`. `width` and `height` are automatically set from the Figma frame's size.
84
- */
85
- imageResponseOptions?: Omit<ImageResponseOptions, 'width' | 'height'>;
86
- }
87
- export interface FigmaComplexTemplate {
88
- value: string;
89
- props?: {
90
- centerHorizontally?: boolean;
91
- } & React.CSSProperties;
92
- }
93
- type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
94
- type Style = 'normal' | 'italic';
95
- interface FontOptions {
96
- data: Buffer | ArrayBuffer;
97
- name: string;
98
- weight?: Weight;
99
- style?: Style;
100
- lang?: string;
101
- }
102
48
  declare module 'react' {
103
49
  interface HTMLAttributes<T> {
104
50
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/og",
3
- "version": "0.8.2",
3
+ "version": "0.8.3",
4
4
  "description": "Generate Open Graph Images dynamically from HTML/CSS without a browser",
5
5
  "type": "module",
6
6
  "main": "./dist/index.node.js",