@ethercorps/sveltekit-og 4.3.0-next.15 → 4.3.0-next.16
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/helpers/create.d.ts +3 -3
- package/dist/helpers/toJSX.d.ts +1 -1
- package/dist/takumi/render.d.ts +1 -1
- package/package.json +130 -129
package/dist/helpers/create.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Component } from "svelte";
|
|
2
2
|
import type { ComponentOptions, ImageOptions } from "../types.js";
|
|
3
3
|
/** Single entry for the Satori and ReSVG engine */
|
|
4
|
-
export declare function createImage(element: string | Component
|
|
4
|
+
export declare function createImage(element: string | Component<any>, imageOptions: ImageOptions, componentOptions?: ComponentOptions): Promise<Uint8Array | string>;
|
|
5
5
|
/** Create an SVG string from a Svelte component or HTML string using Satori */
|
|
6
|
-
export declare function createSvg(element: string | Component
|
|
7
|
-
export declare function createPng(element: string | Component
|
|
6
|
+
export declare function createSvg(element: string | Component<any>, imageOptions: ImageOptions, componentOptions?: ComponentOptions): Promise<string>;
|
|
7
|
+
export declare function createPng(element: string | Component<any>, imageOptions: ImageOptions, componentOptions?: ComponentOptions): Promise<Uint8Array<ArrayBufferLike>>;
|
package/dist/helpers/toJSX.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { Component } from "svelte";
|
|
2
2
|
import type { ComponentOptions, VNode } from "../types.js";
|
|
3
|
-
export declare function createVNode(element: string | Component
|
|
3
|
+
export declare function createVNode(element: string | Component<any>, componentOptions?: ComponentOptions): VNode;
|
package/dist/takumi/render.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Component } from "svelte";
|
|
2
2
|
import type { TakumiImageOptions } from "./types.js";
|
|
3
3
|
/** Render an HTML string or Svelte component to image bytes (or an svg string). */
|
|
4
|
-
export declare function createTakumiImage(element: string | Component
|
|
4
|
+
export declare function createTakumiImage(element: string | Component<any>, options: TakumiImageOptions, props?: Record<string, unknown>): Promise<Uint8Array | string>;
|
package/package.json
CHANGED
|
@@ -1,130 +1,131 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
2
|
+
"name": "@ethercorps/sveltekit-og",
|
|
3
|
+
"version": "4.3.0-next.16",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://sveltekit-og.dev",
|
|
6
|
+
"repository": "github:ethercorps/sveltekit-og",
|
|
7
|
+
"funding": "https://github.com/sponsors/ethercorps",
|
|
8
|
+
"author": "Shivam Meena <https://github.com/theetherGit>",
|
|
9
|
+
"description": "Dynamically generate Open Graph images from an HTML, CSS template or Svelte component using fast and efficient conversion from HTML > SVG > PNG",
|
|
10
|
+
"contributors": [
|
|
11
|
+
{
|
|
12
|
+
"name": "Shivam Meena",
|
|
13
|
+
"github": "https://github.com/theetherGit"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "Jason",
|
|
17
|
+
"github": "https://github.com/jasongitmail"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "Mihkel Martin Kasterpalu",
|
|
21
|
+
"github": "https://github.com/MihkelMK"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Luke Parke",
|
|
25
|
+
"github": "https://github.com/LukasParke"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Willow (GHOST)",
|
|
29
|
+
"github": "https://github.com/ghostdevv"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "Minseo Lee",
|
|
33
|
+
"github": "https://github.com/quiple"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"dev": "vite dev",
|
|
38
|
+
"build": "vite build && npm run package",
|
|
39
|
+
"preview": "vite preview",
|
|
40
|
+
"package": "svelte-kit sync && svelte-package && publint",
|
|
41
|
+
"prepare": "svelte-kit sync && svelte-package",
|
|
42
|
+
"prepublishOnly": "pnpm run package",
|
|
43
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
44
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
45
|
+
"test": "vitest",
|
|
46
|
+
"bench": "vitest bench --run",
|
|
47
|
+
"bench:save": "vitest bench --run --outputJson benchmarks/baseline.json",
|
|
48
|
+
"bench:compare": "vitest bench --run --compare benchmarks/baseline.json",
|
|
49
|
+
"bench:snapshot": "node scripts/bench-snapshot.mjs",
|
|
50
|
+
"lint": "oxlint . && eslint .",
|
|
51
|
+
"format": "prettier --plugin-search-dir . --write .",
|
|
52
|
+
"publishBeta": "npm publish --tag beta"
|
|
53
|
+
},
|
|
54
|
+
"exports": {
|
|
55
|
+
".": {
|
|
56
|
+
"types": "./dist/index.d.ts",
|
|
57
|
+
"svelte": "./dist/index.js",
|
|
58
|
+
"import": "./dist/index.js"
|
|
59
|
+
},
|
|
60
|
+
"./fonts": {
|
|
61
|
+
"types": "./dist/fonts.d.ts",
|
|
62
|
+
"import": "./dist/fonts.js"
|
|
63
|
+
},
|
|
64
|
+
"./takumi": {
|
|
65
|
+
"types": "./dist/takumi/index.d.ts",
|
|
66
|
+
"svelte": "./dist/takumi/index.js",
|
|
67
|
+
"import": "./dist/takumi/index.js"
|
|
68
|
+
},
|
|
69
|
+
"./plugin": {
|
|
70
|
+
"types": "./dist/plugin.d.ts",
|
|
71
|
+
"import": "./dist/plugin.js"
|
|
72
|
+
},
|
|
73
|
+
"./package.json": "./package.json"
|
|
74
|
+
},
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"!dist/**/*.test.*",
|
|
78
|
+
"!dist/**/*.spec.*"
|
|
79
|
+
],
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@eslint/compat": "^2.0.3",
|
|
82
|
+
"@eslint/js": "^9.39.3",
|
|
83
|
+
"@sveltejs/adapter-auto": "^3.3.1",
|
|
84
|
+
"@sveltejs/kit": "^2.53.4",
|
|
85
|
+
"@sveltejs/package": "^2.5.7",
|
|
86
|
+
"@sveltejs/vite-plugin-svelte": "^4.0.4",
|
|
87
|
+
"@types/node": "^24.11.0",
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
89
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
90
|
+
"css-tree": "^2.3.1",
|
|
91
|
+
"eslint": "^8.57.1",
|
|
92
|
+
"eslint-config-prettier": "^8.10.2",
|
|
93
|
+
"eslint-plugin-oxlint": "^1.55.0",
|
|
94
|
+
"eslint-plugin-svelte": "^2.46.1",
|
|
95
|
+
"globals": "^16.5.0",
|
|
96
|
+
"oxlint": "^1.55.0",
|
|
97
|
+
"prettier": "^3.8.1",
|
|
98
|
+
"prettier-plugin-svelte": "^3.5.1",
|
|
99
|
+
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
100
|
+
"publint": "^0.1.16",
|
|
101
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
102
|
+
"svelte": "^5.53.10",
|
|
103
|
+
"svelte-check": "^4.4.5",
|
|
104
|
+
"tslib": "^2.8.1",
|
|
105
|
+
"typescript": "^5.9.3",
|
|
106
|
+
"typescript-eslint": "^8.57.0",
|
|
107
|
+
"vite": "^5.4.21",
|
|
108
|
+
"takumi-js": "2.0.1",
|
|
109
|
+
"vitest": "^1.6.1"
|
|
110
|
+
},
|
|
111
|
+
"main": "./dist/index.js",
|
|
112
|
+
"svelte": "./dist/index.js",
|
|
113
|
+
"types": "./dist/index.d.ts",
|
|
114
|
+
"type": "module",
|
|
115
|
+
"dependencies": {
|
|
116
|
+
"@resvg/resvg-wasm": "^2.6.2",
|
|
117
|
+
"satori": "^0.25.0",
|
|
118
|
+
"satori-html": "0.3.2",
|
|
119
|
+
"std-env": "^4.1.0",
|
|
120
|
+
"unwasm": "^0.5.3"
|
|
121
|
+
},
|
|
122
|
+
"peerDependencies": {
|
|
123
|
+
"@sveltejs/kit": ">=2.0.0",
|
|
124
|
+
"takumi-js": "^2.0.1"
|
|
125
|
+
},
|
|
126
|
+
"peerDependenciesMeta": {
|
|
127
|
+
"takumi-js": {
|
|
128
|
+
"optional": true
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|