@riebeckite/plugin-responsive-image 0.0.21 → 0.0.23
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 +3 -2
- package/README_ja.md +3 -1
- package/dist/index.js +7 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @riebeckite/plugin-responsive-image
|
|
2
2
|
|
|
3
|
+
<!-- Generated from docs/docs/plugins/responsive-image.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
3
5
|
Upgrades existing `<img>` elements with lazy loading and responsive
|
|
4
6
|
`<picture>` / `srcset` markup, using only image variants that are already
|
|
5
7
|
present in the content manifest.
|
|
@@ -90,5 +92,4 @@ commit them next to the original image. Sites copy referenced vault assets into
|
|
|
90
92
|
|
|
91
93
|
## See also
|
|
92
94
|
|
|
93
|
-
- [Plugin guide](
|
|
94
|
-
|
|
95
|
+
- [Plugin guide](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.md)
|
package/README_ja.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @riebeckite/plugin-responsive-image
|
|
2
2
|
|
|
3
|
+
<!-- Generated from docs/docs/plugins/responsive-image.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
3
5
|
既存の `<img>` に遅延読み込みと、レスポンシブな `<picture>` / `srcset` を付与するプラグインです。参照するのは、すでにコンテンツマニフェストに存在する画像バリアントだけです。
|
|
4
6
|
|
|
5
7
|
[English](./README.md)
|
|
@@ -70,4 +72,4 @@ export default defineConfig({
|
|
|
70
72
|
|
|
71
73
|
## 関連リンク
|
|
72
74
|
|
|
73
|
-
- [プラグイン API](
|
|
75
|
+
- [プラグイン API](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
|
package/dist/index.js
CHANGED
|
@@ -389,7 +389,7 @@ function responsiveImage(options = {}) {
|
|
|
389
389
|
version: "responsive-image-v1",
|
|
390
390
|
dependencyMode: "none"
|
|
391
391
|
},
|
|
392
|
-
|
|
392
|
+
contentOutputDependencies: [{ type: "global" }],
|
|
393
393
|
options,
|
|
394
394
|
validateOptions: validateResponsiveImageOptions,
|
|
395
395
|
extendHtmlPipeline: (pipeline) => {
|
|
@@ -409,7 +409,12 @@ function responsiveImage(options = {}) {
|
|
|
409
409
|
);
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
|
-
assets: [
|
|
412
|
+
assets: [
|
|
413
|
+
createStyleAsset(
|
|
414
|
+
PLUGIN_NAME,
|
|
415
|
+
"@riebeckite/plugin-responsive-image/style.css"
|
|
416
|
+
)
|
|
417
|
+
]
|
|
413
418
|
});
|
|
414
419
|
}
|
|
415
420
|
var responsiveImagePlugin = responsiveImage;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-responsive-image",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
"./style.css": "./style.css"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@riebeckite/core": "0.0.
|
|
18
|
+
"@riebeckite/core": "0.0.23"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"tsx": "^4.22.4",
|
|
22
|
-
"@riebeckite/test": "0.0.
|
|
22
|
+
"@riebeckite/test": "0.0.23"
|
|
23
23
|
},
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|