satori 0.33.4 → 0.34.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/README.md +49 -0
- package/dist/canvas-afafb49b.d.ts +16 -0
- package/dist/experimental.cjs +8 -0
- package/dist/experimental.cjs.LEGAL.txt +4 -0
- package/dist/experimental.cjs.map +1 -0
- package/dist/experimental.d.cts +29 -0
- package/dist/experimental.d.ts +29 -0
- package/dist/experimental.js +8 -0
- package/dist/experimental.js.LEGAL.txt +4 -0
- package/dist/experimental.js.map +1 -0
- package/dist/index.cjs +7 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -175
- package/dist/index.d.ts +2 -175
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/jsx/index.d.cts +2 -2
- package/dist/jsx/index.d.ts +2 -2
- package/dist/jsx/jsx-runtime.d.cts +1 -1
- package/dist/jsx/jsx-runtime.d.ts +1 -1
- package/dist/jsx-runtime-28d3932e.d.ts +1324 -0
- package/dist/{jsx-runtime-d92ed26c.d.ts → jsx-runtime-9a51f310.d.ts} +7 -0
- package/dist/satori-dd73c891.d.ts +175 -0
- package/dist/standalone.cjs +7 -7
- package/dist/standalone.cjs.map +1 -1
- package/dist/standalone.d.cts +1 -1
- package/dist/standalone.d.ts +1 -1
- package/dist/standalone.js +7 -7
- package/dist/standalone.js.map +1 -1
- package/package.json +12 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { S as SatoriOptions$1 } from './satori-dd73c891.js';
|
|
3
|
+
export { F as Font, a as FontStyle, W as FontWeight, L as Locale, b as SatoriNode, i as init } from './satori-dd73c891.js';
|
|
4
|
+
import { C as CreateWebGLContext } from './canvas-afafb49b.js';
|
|
5
|
+
export { W as WebGLCanvasInfo, a as WebGLCanvasRenderer } from './canvas-afafb49b.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `satori/experimental`: Satori with experimental features that may change or
|
|
9
|
+
* be removed in any release. They're kept out of the root `satori` entry, so
|
|
10
|
+
* they don't add to its size.
|
|
11
|
+
*
|
|
12
|
+
* - `<canvas webgl={(gl, { width, height }) => ...}>`, drawn with WebGL2.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
type SatoriOptions = SatoriOptions$1 & {
|
|
16
|
+
/**
|
|
17
|
+
* Creates the WebGL2 context used to render `<canvas webgl={...}>` elements,
|
|
18
|
+
* sized to the canvas `width` and `height` attributes. The caller owns the
|
|
19
|
+
* returned contexts.
|
|
20
|
+
*
|
|
21
|
+
* By default, each canvas gets a fresh context that's destroyed afterwards:
|
|
22
|
+
* from OffscreenCanvas in browsers and Web Workers, or from the app's `gl`
|
|
23
|
+
* package (a WebGL2 build of headless-gl) in Node.js 20.16+.
|
|
24
|
+
*/
|
|
25
|
+
createWebGLContext?: CreateWebGLContext;
|
|
26
|
+
};
|
|
27
|
+
declare function satori(element: ReactNode, options: SatoriOptions): Promise<string>;
|
|
28
|
+
|
|
29
|
+
export { CreateWebGLContext, SatoriOptions, satori as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { S as SatoriOptions$1 } from './satori-dd73c891.js';
|
|
3
|
+
export { F as Font, a as FontStyle, W as FontWeight, L as Locale, b as SatoriNode, i as init } from './satori-dd73c891.js';
|
|
4
|
+
import { C as CreateWebGLContext } from './canvas-afafb49b.js';
|
|
5
|
+
export { W as WebGLCanvasInfo, a as WebGLCanvasRenderer } from './canvas-afafb49b.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* `satori/experimental`: Satori with experimental features that may change or
|
|
9
|
+
* be removed in any release. They're kept out of the root `satori` entry, so
|
|
10
|
+
* they don't add to its size.
|
|
11
|
+
*
|
|
12
|
+
* - `<canvas webgl={(gl, { width, height }) => ...}>`, drawn with WebGL2.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
type SatoriOptions = SatoriOptions$1 & {
|
|
16
|
+
/**
|
|
17
|
+
* Creates the WebGL2 context used to render `<canvas webgl={...}>` elements,
|
|
18
|
+
* sized to the canvas `width` and `height` attributes. The caller owns the
|
|
19
|
+
* returned contexts.
|
|
20
|
+
*
|
|
21
|
+
* By default, each canvas gets a fresh context that's destroyed afterwards:
|
|
22
|
+
* from OffscreenCanvas in browsers and Web Workers, or from the app's `gl`
|
|
23
|
+
* package (a WebGL2 build of headless-gl) in Node.js 20.16+.
|
|
24
|
+
*/
|
|
25
|
+
createWebGLContext?: CreateWebGLContext;
|
|
26
|
+
};
|
|
27
|
+
declare function satori(element: ReactNode, options: SatoriOptions): Promise<string>;
|
|
28
|
+
|
|
29
|
+
export { CreateWebGLContext, SatoriOptions, satori as default };
|