@learnpack/learnpack 5.0.287 → 5.0.288
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/creatorDist/assets/{index-CQMtxRqZ.js → index-BjO3hUuz.js} +1346 -1356
- package/lib/creatorDist/index.html +1 -1
- package/package.json +1 -1
- package/src/creator/src/App.tsx +1 -24
- package/src/creatorDist/assets/{index-CQMtxRqZ.js → index-BjO3hUuz.js} +1346 -1356
- package/src/creatorDist/index.html +1 -1
@@ -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-BjO3hUuz.js"></script>
|
14
14
|
<link rel="stylesheet" crossorigin href="/creator/assets/index-C39zeF3W.css">
|
15
15
|
</head>
|
16
16
|
<body>
|
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.288",
|
5
5
|
"author": "Alejandro Sanchez @alesanchezr",
|
6
6
|
"contributors": [
|
7
7
|
{
|
package/src/creator/src/App.tsx
CHANGED
@@ -116,29 +116,6 @@ function App() {
|
|
116
116
|
}
|
117
117
|
}
|
118
118
|
|
119
|
-
const getGenerationMode = (): string => {
|
120
|
-
const urlParams = new URLSearchParams(window.location.search);
|
121
|
-
const configParams = urlParams.get('configParams');
|
122
|
-
|
123
|
-
if (!configParams) {
|
124
|
-
return 'next-three';
|
125
|
-
}
|
126
|
-
|
127
|
-
try {
|
128
|
-
const decodedConfig = decodeURIComponent(configParams);
|
129
|
-
const config = JSON.parse(decodedConfig);
|
130
|
-
|
131
|
-
if (config?.page?.generation === 'auto') {
|
132
|
-
return 'continue-with-all';
|
133
|
-
}
|
134
|
-
|
135
|
-
return 'next-three';
|
136
|
-
} catch (error) {
|
137
|
-
console.error('Error parsing configParams:', error);
|
138
|
-
return 'next-three';
|
139
|
-
}
|
140
|
-
};
|
141
|
-
|
142
119
|
const checkQueryParams = () => {
|
143
120
|
const {
|
144
121
|
description,
|
@@ -489,7 +466,7 @@ function App() {
|
|
489
466
|
|
490
467
|
push({
|
491
468
|
lessons,
|
492
|
-
generationMode:
|
469
|
+
generationMode: "continue-with-all",
|
493
470
|
courseInfo: {
|
494
471
|
...formState,
|
495
472
|
title: res.parsed.title,
|