@polyglot-bundles/content-shared 0.1.3 → 0.1.4
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.
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Base types for polyglot-bundles content packages.
|
|
3
|
+
*
|
|
4
|
+
* These types are extended by language-specific content packages.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Content type for MDX-based lessons
|
|
8
|
+
*/
|
|
9
|
+
export type LessonContent = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
content: string;
|
|
13
|
+
metadata?: Record<string, unknown>;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Audio content reference
|
|
17
|
+
*/
|
|
18
|
+
export type AudioContent = {
|
|
19
|
+
id: string;
|
|
20
|
+
url: string;
|
|
21
|
+
type: "pronunciation" | "sentence" | "dialogue" | "instruction";
|
|
22
|
+
language: string;
|
|
23
|
+
duration?: number;
|
|
24
|
+
speaker?: string;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Phrase with multiple language representations
|
|
28
|
+
*/
|
|
29
|
+
export type BilingualPhrase = {
|
|
30
|
+
id: string;
|
|
31
|
+
source: string;
|
|
32
|
+
target: string;
|
|
33
|
+
sourceLanguage: string;
|
|
34
|
+
targetLanguage: string;
|
|
35
|
+
notes?: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Flashcard for practice activities
|
|
39
|
+
*/
|
|
40
|
+
export type Flashcard = {
|
|
41
|
+
id: string;
|
|
42
|
+
front: string;
|
|
43
|
+
back: string;
|
|
44
|
+
example?: string;
|
|
45
|
+
category?: string;
|
|
46
|
+
};
|
|
47
|
+
//# sourceMappingURL=content-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content-types.d.ts","sourceRoot":"","sources":["../src/content-types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,eAAe,GAAG,UAAU,GAAG,UAAU,GAAG,aAAa,CAAC;IAChE,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC"}
|