@riebeckite/plugin-lightbox 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 -2
- package/dist/index.js +12 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# @riebeckite/plugin-lightbox
|
|
2
2
|
|
|
3
|
+
<!-- Generated from docs/docs/plugins/lightbox.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
3
5
|
Click-to-zoom lightbox for images.
|
|
4
6
|
|
|
5
7
|
[日本語](./README_ja.md)
|
|
@@ -75,5 +77,4 @@ the app calls on page initialization.
|
|
|
75
77
|
|
|
76
78
|
## See also
|
|
77
79
|
|
|
78
|
-
- [Plugin guide](
|
|
79
|
-
|
|
80
|
+
- [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-lightbox
|
|
2
2
|
|
|
3
|
+
<!-- Generated from docs/docs/plugins/lightbox.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
|
|
4
|
+
|
|
3
5
|
記事内の画像をクリックすると、拡大表示用のダイアログを開くプラグインです。
|
|
4
6
|
|
|
5
7
|
[English](./README.md)
|
|
@@ -46,5 +48,4 @@ export default defineConfig({
|
|
|
46
48
|
|
|
47
49
|
## 関連資料
|
|
48
50
|
|
|
49
|
-
- [プラグインシステム](
|
|
50
|
-
|
|
51
|
+
- [プラグインシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
|
package/dist/index.js
CHANGED
|
@@ -261,12 +261,19 @@ function lightboxPlugin(options = {}) {
|
|
|
261
261
|
extendHtmlPipeline: (pipeline) => {
|
|
262
262
|
pipeline.use(rehypeLightbox, options);
|
|
263
263
|
},
|
|
264
|
-
assets: [
|
|
264
|
+
assets: [
|
|
265
|
+
createStyleAsset("lightbox", "@riebeckite/plugin-lightbox/style.css")
|
|
266
|
+
],
|
|
265
267
|
clientEntries: [
|
|
266
|
-
createClientEntry(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
268
|
+
createClientEntry(
|
|
269
|
+
"lightbox",
|
|
270
|
+
"@riebeckite/plugin-lightbox/client",
|
|
271
|
+
"initLightboxFromOptions",
|
|
272
|
+
{
|
|
273
|
+
expandLabel: options.expandLabel ?? DEFAULT_EXPAND_LABEL,
|
|
274
|
+
closeLabel: options.closeLabel ?? DEFAULT_CLOSE_LABEL
|
|
275
|
+
}
|
|
276
|
+
)
|
|
270
277
|
]
|
|
271
278
|
});
|
|
272
279
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-lightbox",
|
|
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",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"./style.css": "./style.css"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@riebeckite/core": "0.0.
|
|
24
|
+
"@riebeckite/core": "0.0.23"
|
|
25
25
|
},
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|