@learnpack/learnpack 5.0.318 → 5.0.320
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 +166 -18
- package/lib/creatorDist/assets/{index-XZDcEWl9.js → index-BhqDgBS9.js} +588 -585
- package/lib/creatorDist/index.html +1 -1
- package/lib/utils/rigoActions.d.ts +1 -1
- package/lib/utils/rigoActions.js +2 -2
- package/package.json +1 -1
- package/src/commands/serve.ts +3462 -3267
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +20 -9
- package/src/creatorDist/assets/{index-XZDcEWl9.js → index-BhqDgBS9.js} +588 -585
- package/src/creatorDist/index.html +1 -1
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +2271 -2276
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/rigoActions.ts +639 -638
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
/>
|
|
11
11
|
|
|
12
12
|
<title>Learnpack Creator: Craft tutorials in seconds!</title>
|
|
13
|
-
<script type="module" crossorigin src="/creator/assets/index-
|
|
13
|
+
<script type="module" crossorigin src="/creator/assets/index-BhqDgBS9.js"></script>
|
|
14
14
|
<link rel="stylesheet" crossorigin href="/creator/assets/index-CjddKHB_.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
@@ -96,7 +96,7 @@ type TInitialContentGeneratorInputs = {
|
|
|
96
96
|
current_syllabus: string;
|
|
97
97
|
lesson_description: string;
|
|
98
98
|
};
|
|
99
|
-
export declare const initialContentGenerator: (token: string, inputs: TInitialContentGeneratorInputs, webhookUrl?: string) => Promise<any>;
|
|
99
|
+
export declare const initialContentGenerator: (token: string, inputs: TInitialContentGeneratorInputs, webhookUrl?: string, endpointSlug?: string) => Promise<any>;
|
|
100
100
|
type TAddInteractivityInputs = {
|
|
101
101
|
components: string;
|
|
102
102
|
prev_lesson: string;
|
package/lib/utils/rigoActions.js
CHANGED
|
@@ -283,9 +283,9 @@ const getLanguageCodes = async (token, inputs) => {
|
|
|
283
283
|
return response.data;
|
|
284
284
|
};
|
|
285
285
|
exports.getLanguageCodes = getLanguageCodes;
|
|
286
|
-
const initialContentGenerator = async (token, inputs, webhookUrl) => {
|
|
286
|
+
const initialContentGenerator = async (token, inputs, webhookUrl, endpointSlug = "initial-step-content-generator") => {
|
|
287
287
|
try {
|
|
288
|
-
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion
|
|
288
|
+
const response = await axios_1.default.post(`${api_1.RIGOBOT_HOST}/v1/prompting/completion/${endpointSlug}/`, {
|
|
289
289
|
inputs,
|
|
290
290
|
include_purpose_objective: false,
|
|
291
291
|
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.320",
|
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
|
6
6
|
"contributors": [
|
|
7
7
|
{
|