@learnpack/learnpack 5.0.286 → 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.
@@ -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-CQMtxRqZ.js"></script>
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.286",
4
+ "version": "5.0.288",
5
5
  "author": "Alejandro Sanchez @alesanchezr",
6
6
  "contributors": [
7
7
  {
@@ -6,7 +6,7 @@ import { useNavigate } from "react-router"
6
6
  import { useShallow } from "zustand/react/shallow"
7
7
  import useStore, { TDifficulty } from "./utils/store"
8
8
 
9
- import { publicInteractiveCreation, isHuman } from "./utils/rigo"
9
+ import { publicInteractiveCreation } from "./utils/rigo"
10
10
  import {
11
11
  checkParams,
12
12
  isValidRigoToken,
@@ -21,8 +21,8 @@ import {
21
21
  import { Uploader } from "./components/Uploader"
22
22
  import toast from "react-hot-toast"
23
23
  import { ParamsChecker } from "./components/ParamsChecker"
24
- import { DEV_MODE, RIGO_FLOAT_GIF } from "./utils/constants"
25
- import TurnstileChallenge from "./components/TurnstileChallenge"
24
+ import { RIGO_FLOAT_GIF } from "./utils/constants"
25
+ // import TurnstileChallenge from "./components/TurnstileChallenge"
26
26
  // import TurnstileChallenge from "./components/TurnstileChallenge"
27
27
  import ResumeCourseModal from "./components/ResumeCourseModal"
28
28
  import { possiblePurposes, PurposeSelector } from "./components/PurposeSelector"
@@ -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: getGenerationMode() as "next-three" | "continue-with-all",
469
+ generationMode: "continue-with-all",
493
470
  courseInfo: {
494
471
  ...formState,
495
472
  title: res.parsed.title,