@riebeckite/plugin-text-fragment 0.0.26 → 0.0.28
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_ja.md +7 -7
- package/package.json +2 -2
package/README_ja.md
CHANGED
|
@@ -47,13 +47,13 @@ export default defineConfig({
|
|
|
47
47
|
|
|
48
48
|
## 公開 API
|
|
49
49
|
|
|
50
|
-
- `textFragmentPlugin(options?)
|
|
51
|
-
- `initTextFragmentShare(labels?)
|
|
52
|
-
- `encodeTextFragment(text)
|
|
53
|
-
- `buildTextFragmentUrl(pageUrl, selection, options?)
|
|
54
|
-
- `buildQuoteMarkdown({ url, title, selection })
|
|
55
|
-
- `DEFAULT_TEXT_FRAGMENT_LABELS
|
|
56
|
-
- `TextFragmentOptions`、`TextFragmentLabels`、`TextFragmentPluginOptions
|
|
50
|
+
- `textFragmentPlugin(options?)`:プラグインファクトリ。`options.labels` で UI ラベルを上書きする
|
|
51
|
+
- `initTextFragmentShare(labels?)`:ブラウザ初期化関数(`@riebeckite/plugin-text-fragment/client` からも読み込める)
|
|
52
|
+
- `encodeTextFragment(text)`:テキスト片をパーセントエンコードする
|
|
53
|
+
- `buildTextFragmentUrl(pageUrl, selection, options?)`:ディープリンクを作る。`options` は `{ prefix?, suffix? }`
|
|
54
|
+
- `buildQuoteMarkdown({ url, title, selection })`:引用ブロックを作る
|
|
55
|
+
- `DEFAULT_TEXT_FRAGMENT_LABELS`:既定の英語 UI ラベル
|
|
56
|
+
- `TextFragmentOptions`、`TextFragmentLabels`、`TextFragmentPluginOptions`:型
|
|
57
57
|
|
|
58
58
|
## 関連資料
|
|
59
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/plugin-text-fragment",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
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.28"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"tsx": "^4.22.4"
|