@learnpack/learnpack 5.0.323 → 5.0.327
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/lib/commands/serve.js +778 -18
- package/lib/models/creator.d.ts +24 -0
- package/lib/utils/rigoActions.d.ts +1 -0
- package/lib/utils/rigoActions.js +1 -1
- package/package.json +4 -1
- package/src/commands/serve.ts +1058 -29
- package/src/models/creator.ts +75 -50
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +2150 -2132
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/rigoActions.ts +2 -1
package/lib/models/creator.d.ts
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
export interface SyncNotification {
|
|
2
|
+
id: string;
|
|
3
|
+
sourceLanguage: string;
|
|
4
|
+
createdAt: number;
|
|
5
|
+
updatedAt: number;
|
|
6
|
+
status: "pending" | "processing" | "completed" | "error";
|
|
7
|
+
processingLastUpdate?: number;
|
|
8
|
+
error?: {
|
|
9
|
+
message: string;
|
|
10
|
+
code: string;
|
|
11
|
+
timestamp: number;
|
|
12
|
+
};
|
|
13
|
+
syncProgress?: {
|
|
14
|
+
totalLanguages: number;
|
|
15
|
+
completedLanguages: string[];
|
|
16
|
+
currentLanguage?: string;
|
|
17
|
+
failedLanguages?: Array<{
|
|
18
|
+
code: string;
|
|
19
|
+
error: string;
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
1
23
|
export interface Lesson {
|
|
2
24
|
id: string;
|
|
3
25
|
uid: string;
|
|
@@ -13,8 +35,10 @@ export interface Lesson {
|
|
|
13
35
|
completionId: number;
|
|
14
36
|
startedAt: number;
|
|
15
37
|
completedAt?: number;
|
|
38
|
+
error?: boolean;
|
|
16
39
|
};
|
|
17
40
|
};
|
|
41
|
+
syncNotifications?: SyncNotification[];
|
|
18
42
|
}
|
|
19
43
|
export interface ParsedLink {
|
|
20
44
|
name: string;
|
|
@@ -104,6 +104,7 @@ type TAddInteractivityInputs = {
|
|
|
104
104
|
prev_lesson: string;
|
|
105
105
|
initial_lesson: string;
|
|
106
106
|
output_language: string;
|
|
107
|
+
lesson_info: string;
|
|
107
108
|
current_syllabus: string;
|
|
108
109
|
};
|
|
109
110
|
export declare const addInteractivity: (token: string, inputs: TAddInteractivityInputs, webhookUrl?: string) => Promise<any>;
|
package/lib/utils/rigoActions.js
CHANGED
|
@@ -306,7 +306,7 @@ const initialContentGenerator = async (token, inputs, webhookUrl, endpointSlug =
|
|
|
306
306
|
exports.initialContentGenerator = initialContentGenerator;
|
|
307
307
|
const addInteractivity = async (token, inputs, webhookUrl) => {
|
|
308
308
|
try {
|
|
309
|
-
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/lesson-
|
|
309
|
+
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/add-lesson-interactivy/`, {
|
|
310
310
|
inputs,
|
|
311
311
|
include_purpose_objective: false,
|
|
312
312
|
execute_async: !!webhookUrl,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@learnpack/learnpack",
|
|
3
3
|
"description": "Seamlessly build, sell and/or take interactive & auto-graded tutorials, start learning now or build a new tutorial to your audience.",
|
|
4
|
-
"version": "5.0.
|
|
4
|
+
"version": "5.0.327",
|
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|
|
@@ -48,7 +48,9 @@
|
|
|
48
48
|
"form-data": "^4.0.2",
|
|
49
49
|
"front-matter": "^4.0.2",
|
|
50
50
|
"html-to-text": "^9.0.5",
|
|
51
|
+
"isomorphic-dompurify": "^2.33.0",
|
|
51
52
|
"js-yaml": "^4.1.0",
|
|
53
|
+
"jsdom": "^27.2.0",
|
|
52
54
|
"jszip": "^3.10.1",
|
|
53
55
|
"markdown-it": "^14.1.0",
|
|
54
56
|
"mkdirp": "^3.0.1",
|
|
@@ -81,6 +83,7 @@
|
|
|
81
83
|
"@types/express": "^4.17.13",
|
|
82
84
|
"@types/fs-extra": "^8.1.0",
|
|
83
85
|
"@types/js-yaml": "^4.0.9",
|
|
86
|
+
"@types/jsdom": "^27.0.0",
|
|
84
87
|
"@types/markdown-it": "^14.1.2",
|
|
85
88
|
"@types/mocha": "^5",
|
|
86
89
|
"@types/mock-fs": "^4.13.1",
|