@quartz-community/og-image 0.1.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/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/README.md +50 -0
- package/dist/index.d.ts +57 -0
- package/dist/index.js +24365 -0
- package/dist/index.js.map +1 -0
- package/package.json +137 -0
package/package.json
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quartz-community/og-image",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "OG image emitter plugin for Quartz. Generates social preview images using satori and sharp.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Quartz Community",
|
|
8
|
+
"homepage": "https://quartz.jzhao.xyz",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/quartz-community/og-image"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"quartz",
|
|
15
|
+
"quartz-plugin",
|
|
16
|
+
"og-image",
|
|
17
|
+
"emitter",
|
|
18
|
+
"social-image",
|
|
19
|
+
"satori"
|
|
20
|
+
],
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./package.json": "./package.json"
|
|
33
|
+
},
|
|
34
|
+
"main": "./dist/index.js",
|
|
35
|
+
"types": "./dist/index.d.ts",
|
|
36
|
+
"sideEffects": false,
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsup",
|
|
39
|
+
"dev": "tsup --watch",
|
|
40
|
+
"lint": "eslint . --max-warnings=0",
|
|
41
|
+
"format": "prettier . --check",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"check": "npm run typecheck && npm run lint && npm run format && npm run test",
|
|
45
|
+
"prepublishOnly": "npm run build"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"preact": "^10.0.0",
|
|
49
|
+
"sharp": "^0.33.0",
|
|
50
|
+
"vfile": "^6.0.3"
|
|
51
|
+
},
|
|
52
|
+
"peerDependenciesMeta": {
|
|
53
|
+
"preact": {
|
|
54
|
+
"optional": false
|
|
55
|
+
},
|
|
56
|
+
"sharp": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"vfile": {
|
|
60
|
+
"optional": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@quartz-community/types": "^0.2.1",
|
|
65
|
+
"@quartz-community/utils": "^0.1.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@types/hast": "^3.0.4",
|
|
69
|
+
"@types/mdast": "^4.0.4",
|
|
70
|
+
"@types/node": "^24.10.0",
|
|
71
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
72
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
73
|
+
"eslint": "^8.57.0",
|
|
74
|
+
"eslint-config-prettier": "^9.1.0",
|
|
75
|
+
"github-slugger": "^2.0.0",
|
|
76
|
+
"hast-util-to-jsx-runtime": "^2.3.6",
|
|
77
|
+
"preact": "^10.28.2",
|
|
78
|
+
"prettier": "^3.6.2",
|
|
79
|
+
"reading-time": "^1.5.0",
|
|
80
|
+
"satori": "^0.12.0",
|
|
81
|
+
"sharp": "^0.33.0",
|
|
82
|
+
"tsup": "^8.5.0",
|
|
83
|
+
"typescript": "^5.9.3",
|
|
84
|
+
"vfile": "^6.0.3",
|
|
85
|
+
"vitest": "^2.1.9"
|
|
86
|
+
},
|
|
87
|
+
"quartz": {
|
|
88
|
+
"name": "og-image",
|
|
89
|
+
"displayName": "OG Image",
|
|
90
|
+
"category": "emitter",
|
|
91
|
+
"version": "1.0.0",
|
|
92
|
+
"quartzVersion": ">=5.0.0",
|
|
93
|
+
"requiresInstall": true,
|
|
94
|
+
"dependencies": [],
|
|
95
|
+
"defaultOrder": 50,
|
|
96
|
+
"defaultEnabled": true,
|
|
97
|
+
"defaultOptions": {
|
|
98
|
+
"colorScheme": "lightMode",
|
|
99
|
+
"width": 1200,
|
|
100
|
+
"height": 630,
|
|
101
|
+
"excludeRoot": false,
|
|
102
|
+
"defaultTitle": "Untitled",
|
|
103
|
+
"defaultDescription": "No description provided"
|
|
104
|
+
},
|
|
105
|
+
"optionSchema": {
|
|
106
|
+
"colorScheme": {
|
|
107
|
+
"type": "enum",
|
|
108
|
+
"values": [
|
|
109
|
+
"lightMode",
|
|
110
|
+
"darkMode"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"width": {
|
|
114
|
+
"type": "number"
|
|
115
|
+
},
|
|
116
|
+
"height": {
|
|
117
|
+
"type": "number"
|
|
118
|
+
},
|
|
119
|
+
"excludeRoot": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
},
|
|
122
|
+
"defaultTitle": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"defaultDescription": {
|
|
126
|
+
"type": "string"
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"engines": {
|
|
131
|
+
"node": ">=22",
|
|
132
|
+
"npm": ">=10.9.2"
|
|
133
|
+
},
|
|
134
|
+
"publishConfig": {
|
|
135
|
+
"access": "public"
|
|
136
|
+
}
|
|
137
|
+
}
|