@riebeckite/plugin-map 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 CHANGED
@@ -1,5 +1,7 @@
1
1
  # @riebeckite/plugin-map
2
2
 
3
+ <!-- Generated from docs/docs/plugins/map.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  Turns a ` ```map ` fenced code block and/or frontmatter coordinates into an
4
6
  embedded map. The page is rendered with a static fallback first (coordinates,
5
7
  place name, OpenStreetMap links, and an optional static image), and upgraded to
@@ -173,5 +175,4 @@ to inject a fake Leaflet).
173
175
 
174
176
  ## See also
175
177
 
176
- - [Plugin system](../../../docs/docs/reference/plugin-api.md)
177
-
178
+ - [Plugin system](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-map
2
2
 
3
+ <!-- Generated from docs/docs/plugins/map.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  ` ```map ` コードブロックや frontmatter の座標を、埋め込み地図に変換するプラグインです。まず静的フォールバック(座標・場所名・OpenStreetMap リンク・任意の静的画像)を描画し、地図があるページだけブラウザ側で Leaflet によるインタラクティブ地図に拡張します。
4
6
 
5
7
  [English](./README.md)
@@ -139,5 +141,4 @@ Leaflet(`leaflet.js` と `leaflet.css`)は、`[data-rr-map="pending"]` の f
139
141
 
140
142
  ## 関連資料
141
143
 
142
- - [プラグインシステム](../../../docs/docs/reference/plugin-api.ja.md)
143
-
144
+ - [プラグインシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
package/dist/index.js CHANGED
@@ -565,14 +565,21 @@ function map(options = {}) {
565
565
  extendHtmlPipeline: (pipeline) => {
566
566
  pipeline.use(rehypeMap, options);
567
567
  },
568
- assets: [createStyleAsset(MAP_PLUGIN_NAME)],
568
+ assets: [
569
+ createStyleAsset(MAP_PLUGIN_NAME, "@riebeckite/plugin-map/style.css")
570
+ ],
569
571
  clientEntries: [
570
- createClientEntry(MAP_PLUGIN_NAME, "initMap", {
571
- tileUrl: resolved.tileUrl,
572
- attribution: resolved.attribution,
573
- minZoom: resolved.minZoom,
574
- maxZoom: resolved.maxZoom
575
- })
572
+ createClientEntry(
573
+ MAP_PLUGIN_NAME,
574
+ "@riebeckite/plugin-map/client",
575
+ "initMap",
576
+ {
577
+ tileUrl: resolved.tileUrl,
578
+ attribution: resolved.attribution,
579
+ minZoom: resolved.minZoom,
580
+ maxZoom: resolved.maxZoom
581
+ }
582
+ )
576
583
  ]
577
584
  });
578
585
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-map",
3
- "version": "0.0.21",
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.21"
24
+ "@riebeckite/core": "0.0.23"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"