taleem-player 1.0.2 → 1.0.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.
- package/README.md +26 -23
- package/dist/math/assets/KaTeX_AMS-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_AMS-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_AMS-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Bold.ttf +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Bold.woff +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Bold.ttf +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Bold.woff +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Main-Bold.ttf +0 -0
- package/dist/math/assets/KaTeX_Main-Bold.woff +0 -0
- package/dist/math/assets/KaTeX_Main-Bold.woff2 +0 -0
- package/dist/math/assets/KaTeX_Main-BoldItalic.ttf +0 -0
- package/dist/math/assets/KaTeX_Main-BoldItalic.woff +0 -0
- package/dist/math/assets/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/dist/math/assets/KaTeX_Main-Italic.ttf +0 -0
- package/dist/math/assets/KaTeX_Main-Italic.woff +0 -0
- package/dist/math/assets/KaTeX_Main-Italic.woff2 +0 -0
- package/dist/math/assets/KaTeX_Main-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Main-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Main-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Math-BoldItalic.ttf +0 -0
- package/dist/math/assets/KaTeX_Math-BoldItalic.woff +0 -0
- package/dist/math/assets/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/dist/math/assets/KaTeX_Math-Italic.ttf +0 -0
- package/dist/math/assets/KaTeX_Math-Italic.woff +0 -0
- package/dist/math/assets/KaTeX_Math-Italic.woff2 +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Bold.ttf +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Bold.woff +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Italic.ttf +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Italic.woff +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Script-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Script-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Script-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Size1-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Size1-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Size1-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Size2-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Size2-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Size2-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Size3-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Size3-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Size3-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Size4-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Size4-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Size4-Regular.woff2 +0 -0
- package/dist/math/assets/KaTeX_Typewriter-Regular.ttf +0 -0
- package/dist/math/assets/KaTeX_Typewriter-Regular.woff +0 -0
- package/dist/math/assets/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/dist/math/useMath.css +1155 -0
- package/dist/math/useMath.js +14725 -0
- package/dist/taleem-player.esm.js +35 -12
- package/dist/taleem-player.umd.js +35 -12
- package/package.json +9 -4
package/README.md
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
# Taleem Player
|
|
3
2
|
|
|
4
3
|
<img src="./docs/images/taleem.webp"
|
|
@@ -7,7 +6,7 @@
|
|
|
7
6
|
|
|
8
7
|
**Taleem Player** converts **Taleem JSON slide data** into **web-based presentations**.
|
|
9
8
|
|
|
10
|
-
It renders the
|
|
9
|
+
It renders the _same taleem JSON_ in multiple ways using different display modes.
|
|
11
10
|
|
|
12
11
|
> **Stable 1.0 — API frozen.**
|
|
13
12
|
> Internal improvements may continue without breaking public contracts.
|
|
@@ -19,6 +18,7 @@ It renders the *same taleem JSON* in multiple ways using different display modes
|
|
|
19
18
|
👉 https://bilza2023.github.io/taleem/
|
|
20
19
|
|
|
21
20
|
The live demo shows:
|
|
21
|
+
|
|
22
22
|
- Browser Mode (index-based rendering)
|
|
23
23
|
- Player Mode (time-based rendering)
|
|
24
24
|
- Real production Taleem JSON
|
|
@@ -33,7 +33,7 @@ What you see is the real engine running in the browser.**
|
|
|
33
33
|
|
|
34
34
|
```bash
|
|
35
35
|
npm install taleem-player
|
|
36
|
-
|
|
36
|
+
```
|
|
37
37
|
|
|
38
38
|
---
|
|
39
39
|
|
|
@@ -48,7 +48,7 @@ import { createTaleemBrowser } from "taleem-player";
|
|
|
48
48
|
|
|
49
49
|
const browser = createTaleemBrowser({
|
|
50
50
|
mount: "#app",
|
|
51
|
-
deck
|
|
51
|
+
deck,
|
|
52
52
|
});
|
|
53
53
|
|
|
54
54
|
browser.render(0);
|
|
@@ -57,10 +57,10 @@ browser.getTotal();
|
|
|
57
57
|
|
|
58
58
|
**Ideal for**
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
- previews
|
|
61
|
+
- galleries
|
|
62
|
+
- editors
|
|
63
|
+
- syllabus pages
|
|
64
64
|
|
|
65
65
|
---
|
|
66
66
|
|
|
@@ -77,9 +77,9 @@ player.renderAt(12.5);
|
|
|
77
77
|
|
|
78
78
|
**Ideal for**
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
- narrated lessons
|
|
81
|
+
- video / audio sync
|
|
82
|
+
- recorded presentations
|
|
83
83
|
|
|
84
84
|
---
|
|
85
85
|
|
|
@@ -100,7 +100,6 @@ player.renderAt(12.5);
|
|
|
100
100
|
|
|
101
101
|
## Utilities (Runtime-safe)
|
|
102
102
|
|
|
103
|
-
|
|
104
103
|
These **Utilities (Runtime-safe)** are exported :
|
|
105
104
|
|
|
106
105
|
```js
|
|
@@ -108,14 +107,14 @@ import {
|
|
|
108
107
|
assignMockTimings,
|
|
109
108
|
resolveAssetPaths,
|
|
110
109
|
resolveBackground,
|
|
111
|
-
getDeckEndTime
|
|
110
|
+
getDeckEndTime,
|
|
112
111
|
} from "taleem-player";
|
|
113
112
|
```
|
|
114
113
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
114
|
+
- `assignMockTimings(deck, seconds)`
|
|
115
|
+
- `resolveAssetPaths(deck, basePath)`
|
|
116
|
+
- `resolveBackground(deck, basePath)`
|
|
117
|
+
- `getDeckEndTime(deck)`
|
|
119
118
|
|
|
120
119
|
These helpers prepare decks for real usage and runtime playback.
|
|
121
120
|
|
|
@@ -137,11 +136,11 @@ All modes share the same styling system.
|
|
|
137
136
|
|
|
138
137
|
## What Taleem Player does NOT do
|
|
139
138
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
139
|
+
- create slides
|
|
140
|
+
- edit JSON
|
|
141
|
+
- manage clocks or media playback
|
|
142
|
+
- handle audio or narration
|
|
143
|
+
- auto-validate or repair data
|
|
145
144
|
|
|
146
145
|
Those responsibilities belong to the **application layer**.
|
|
147
146
|
|
|
@@ -151,9 +150,13 @@ Those responsibilities belong to the **application layer**.
|
|
|
151
150
|
|
|
152
151
|
**Stable — Version 1.0**
|
|
153
152
|
|
|
153
|
+
The `eq` slide type is **experimental**:
|
|
154
|
+
- it is implemented but intentionally limited
|
|
155
|
+
- it should not be relied on for production math rendering
|
|
156
|
+
- its behavior may evolve without breaking the core player API
|
|
157
|
+
|
|
154
158
|
---
|
|
155
159
|
|
|
156
160
|
## License
|
|
157
161
|
|
|
158
162
|
MIT
|
|
159
|
-
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|