@molecule/app-flashcard-card-react 4.0.0 → 4.0.1

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
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-12T04:40:36.838Z
6
+ Generated: 2026-11-24T08:57:54.531Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-flashcard-card-react
@@ -95,7 +95,7 @@ function FlashcardCard({
95
95
  front,
96
96
  back,
97
97
  onGrade,
98
- progress,
98
+ progress: progressProp,
99
99
  defaultRevealed,
100
100
  className,
101
101
  }: FlashcardCardProps): ReactElement
@@ -109,7 +109,7 @@ function FlashcardCard({
109
109
 
110
110
  Peer dependencies:
111
111
 
112
- - `@molecule/app-react` ^4.0.0
112
+ - `@molecule/app-react` ^4.13.0
113
113
  - `@molecule/app-ui` ^1.0.1
114
114
  - `@molecule/app-ui-react` ^4.0.0
115
115
  - `react` ^18.0.0 || ^19.0.0
@@ -22,5 +22,5 @@ export interface FlashcardCardProps {
22
22
  * spaced-repetition scheduling logic.
23
23
  * @param props - Component props (see {@link FlashcardCardProps}).
24
24
  */
25
- export declare function FlashcardCard({ front, back, onGrade, progress, defaultRevealed, className, }: FlashcardCardProps): ReactElement;
25
+ export declare function FlashcardCard({ front, back, onGrade, progress: progressProp, defaultRevealed, className, }: FlashcardCardProps): ReactElement;
26
26
  //# sourceMappingURL=FlashcardCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FlashcardCard.d.ts","sourceRoot":"","sources":["../src/FlashcardCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAOp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AED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,EAAE,YAAY,EACtB,eAAe,EACf,SAAS,GACV,EAAE,kBAAkB,GAAG,YAAY,CAiDnC"}
@@ -1,6 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import { useTranslation } from '@molecule/app-react';
4
+ import { slot } from '@molecule/app-react/render';
4
5
  import { getClassMap } from '@molecule/app-ui';
5
6
  import { Button, Card } from '@molecule/app-ui-react';
6
7
  /**
@@ -9,7 +10,8 @@ import { Button, Card } from '@molecule/app-ui-react';
9
10
  * spaced-repetition scheduling logic.
10
11
  * @param props - Component props (see {@link FlashcardCardProps}).
11
12
  */
12
- export function FlashcardCard({ front, back, onGrade, progress, defaultRevealed, className, }) {
13
+ export function FlashcardCard({ front, back, onGrade, progress: progressProp, defaultRevealed, className, }) {
14
+ const progress = slot(progressProp);
13
15
  const cm = getClassMap();
14
16
  const { t } = useTranslation();
15
17
  const [revealed, setRevealed] = useState(!!defaultRevealed);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@molecule/app-flashcard-card-react",
3
- "version": "4.0.0",
4
- "description": "Flashcard flip component with front/back + spaced-repetition grade buttons",
3
+ "version": "4.0.1",
4
+ "description": "Flashcard study card — front/back reveal + SM-2 grade buttons (Again/Hard/Good/Easy)",
5
5
  "homepage": "https://www.molecule.dev/packages/app-flashcard-card-react",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
@@ -33,15 +33,15 @@
33
33
  "directory": "packages/app/features/flashcard-card-react"
34
34
  },
35
35
  "peerDependencies": {
36
- "@molecule/app-react": "^4.0.0",
36
+ "@molecule/app-react": "^4.13.0",
37
37
  "@molecule/app-ui": "^1.0.1",
38
38
  "@molecule/app-ui-react": "^4.0.0",
39
39
  "react": "^18.0.0 || ^19.0.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@molecule/app-react": "4.0.0",
43
- "@molecule/app-ui": "1.3.9",
44
- "@molecule/app-ui-react": "4.0.0",
42
+ "@molecule/app-react": "4.13.0",
43
+ "@molecule/app-ui": "1.5.0",
44
+ "@molecule/app-ui-react": "4.3.2",
45
45
  "@types/node": "26.6.5",
46
46
  "@types/react": "19.3.0",
47
47
  "@types/react-dom": "19.3.0",