@ampless/plugin-og-image 0.2.0-alpha.21 → 0.2.0-alpha.22

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/index.js +2 -0
  2. package/package.json +17 -3
package/dist/index.js CHANGED
@@ -166,8 +166,10 @@ function ogImagePlugin(options) {
166
166
  };
167
167
  return definePlugin({
168
168
  name: "og-image",
169
+ packageName: "@ampless/plugin-og-image",
169
170
  apiVersion: 1,
170
171
  trust_level: "untrusted",
172
+ capabilities: ["metadata"],
171
173
  metadata(post, site) {
172
174
  const baseUrl = site.url.replace(/\/$/, "");
173
175
  const url = `${baseUrl}/og/${post.slug}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/plugin-og-image",
3
- "version": "0.2.0-alpha.21",
3
+ "version": "0.2.0-alpha.22",
4
4
  "description": "Dynamic Open Graph image generation plugin for ampless",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,8 @@
12
12
  "./load-image": {
13
13
  "import": "./dist/load-image.js",
14
14
  "types": "./dist/load-image.d.ts"
15
- }
15
+ },
16
+ "./package.json": "./package.json"
16
17
  },
17
18
  "files": [
18
19
  "dist",
@@ -32,7 +33,7 @@
32
33
  "@jsquash/avif": "^2.1.1",
33
34
  "@jsquash/png": "^3.1.1",
34
35
  "@jsquash/webp": "^1.5.0",
35
- "ampless": "1.0.0-alpha.21"
36
+ "ampless": "1.0.0-alpha.22"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "react": "^18 || ^19"
@@ -43,9 +44,22 @@
43
44
  "keywords": [
44
45
  "ampless",
45
46
  "plugin",
47
+ "ampless-plugin",
46
48
  "og-image",
47
49
  "opengraph"
48
50
  ],
51
+ "amplessPlugin": {
52
+ "apiVersion": 1,
53
+ "name": "og-image",
54
+ "trustLevel": "untrusted",
55
+ "capabilities": [
56
+ "metadata"
57
+ ],
58
+ "displayName": {
59
+ "en": "OG Image",
60
+ "ja": "OG 画像"
61
+ }
62
+ },
49
63
  "scripts": {
50
64
  "build": "tsup",
51
65
  "dev": "tsup --watch",