@riebeckite/plugin-flashcards 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-flashcards
2
2
 
3
+ <!-- Generated from docs/docs/plugins/flashcards.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  Turn a `flashcards` code block into a study island: a small deck of cards that
4
6
  shows a question, reveals the answer, and can be navigated and shuffled in the
5
7
  browser. The build emits an accessible static list first, so the deck stays
@@ -117,5 +119,4 @@ untouched. No options are passed from the build to the client; the deck reads
117
119
 
118
120
  ## See also
119
121
 
120
- - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
121
-
122
+ - [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-flashcards
2
2
 
3
+ <!-- Generated from docs/docs/plugins/flashcards.ja.md. Edit the canonical documentation in docs/docs/plugins and run `pnpm docs:sync`. -->
4
+
3
5
  `flashcards` コードブロックを学習用のカードデッキに変えるプラグインです。質問を表示して答えをめくり、前後の移動とシャッフルができます。ビルド時には静的なリストを先に出力するため、JavaScript がなくても内容を読めます。
4
6
 
5
7
  [English](./README.md)
@@ -90,5 +92,4 @@ payload は実行されない JSON で、`<` `>` `&` はエスケープ済みで
90
92
 
91
93
  ## 関連資料
92
94
 
93
- - [プラグインシステム](../../../docs/docs/reference/plugin-api.ja.md)
94
-
95
+ - [プラグインシステム](https://github.com/Rerurate514/riebeckite/blob/main/docs/docs/reference/plugin-api.ja.md)
package/dist/index.js CHANGED
@@ -406,8 +406,16 @@ function flashcards(options = {}) {
406
406
  onManifestCreated: (context) => {
407
407
  runtime.resolve(context.manifest, context.diagnostics);
408
408
  },
409
- assets: [createStyleAsset("flashcards")],
410
- clientEntries: [createClientEntry("flashcards", "initFlashcards")]
409
+ assets: [
410
+ createStyleAsset("flashcards", "@riebeckite/plugin-flashcards/style.css")
411
+ ],
412
+ clientEntries: [
413
+ createClientEntry(
414
+ "flashcards",
415
+ "@riebeckite/plugin-flashcards/client",
416
+ "initFlashcards"
417
+ )
418
+ ]
411
419
  });
412
420
  }
413
421
  var flashcardsPlugin = flashcards;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-flashcards",
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",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@types/mdast": "^4.0.4",
25
25
  "unist-util-visit": "^5.1.0",
26
- "@riebeckite/core": "0.0.21"
26
+ "@riebeckite/core": "0.0.23"
27
27
  },
28
28
  "publishConfig": {
29
29
  "access": "public"
package/style.css CHANGED
@@ -1,6 +1,5 @@
1
1
  .rb-flashcards {
2
2
  --rb-flashcards-ink: var(--rb-color-ink, #000000);
3
- --rb-flashcards-paper: var(--rb-color-paper, #ffffff);
4
3
  --rb-flashcards-muted: var(--rb-color-muted, #69645c);
5
4
  --rb-flashcards-accent: var(--rb-color-accent, #686868);
6
5
  --rb-flashcards-rule: var(
@@ -108,15 +107,3 @@
108
107
  border: 1px solid var(--rb-flashcards-ink);
109
108
  font-size: 0.875rem;
110
109
  }
111
-
112
- :is(:root, .rb-theme-root)[data-theme="dark"] .rb-flashcards {
113
- --rb-flashcards-ink: var(--rb-color-paper, #ffffff);
114
- --rb-flashcards-paper: var(--rb-color-ink, #000000);
115
- }
116
-
117
- @media (prefers-color-scheme: dark) {
118
- :is(:root, .rb-theme-root):not([data-theme]) .rb-flashcards {
119
- --rb-flashcards-ink: var(--rb-color-paper, #ffffff);
120
- --rb-flashcards-paper: var(--rb-color-ink, #000000);
121
- }
122
- }