@learnpack/learnpack 5.0.198 → 5.0.202
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 +13 -13
- package/lib/commands/serve.d.ts +5 -28
- package/lib/commands/serve.js +45 -14
- package/lib/creatorDist/assets/index-C_HbkVCg.js +38491 -0
- package/lib/creatorDist/index.html +1 -1
- package/lib/models/creator.d.ts +30 -0
- package/lib/models/creator.js +2 -0
- package/lib/utils/creatorUtilities.js +3 -2
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/src/commands/serve.ts +58 -49
- package/src/creator/package-lock.json +97 -1
- package/src/creator/package.json +3 -0
- package/src/creator/src/App.tsx +48 -22
- package/src/creator/src/components/FileUploader.tsx +6 -5
- package/src/creator/src/components/LinkUploader.tsx +3 -1
- package/src/creator/src/components/Login.tsx +33 -27
- package/src/creator/src/components/PurposeSelector.tsx +32 -25
- package/src/creator/src/components/StepWizard.tsx +8 -4
- package/src/creator/src/components/Uploader.tsx +8 -5
- package/src/creator/src/components/syllabus/ContentIndex.tsx +17 -11
- package/src/creator/src/components/syllabus/Sidebar.tsx +4 -3
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +18 -2
- package/src/creator/src/i18n.ts +28 -0
- package/src/creator/src/locales/en.json +110 -0
- package/src/creator/src/locales/es.json +110 -0
- package/src/creator/src/main.tsx +1 -0
- package/src/creator/src/utils/creatorUtils.ts +2 -2
- package/src/creator/src/utils/lib.ts +7 -0
- package/src/creator/src/utils/store.ts +8 -5
- package/src/creatorDist/assets/index-C_HbkVCg.js +38491 -0
- package/src/creatorDist/index.html +1 -1
- package/src/models/creator.ts +32 -0
- package/src/ui/_app/app.css +1 -1
- package/src/ui/_app/app.js +55 -55
- package/src/ui/app.tar.gz +0 -0
- package/src/utils/creatorUtilities.ts +4 -4
- package/lib/creatorDist/assets/index-DszesaEz.js +0 -35438
- package/src/creatorDist/assets/index-DszesaEz.js +0 -35438
package/src/ui/app.tar.gz
CHANGED
Binary file
|
@@ -123,11 +123,12 @@ export const slugify = (text: string) => {
|
|
123
123
|
return text
|
124
124
|
.toString()
|
125
125
|
.normalize("NFD")
|
126
|
-
.replace(/[\u0300-\u036F]/g, "")
|
126
|
+
.replace(/[\u0300-\u036F]/g, "") // Elimina acentos
|
127
127
|
.toLowerCase()
|
128
128
|
.trim()
|
129
129
|
.replace(/\s+/g, "-")
|
130
|
-
.replace(/[
|
130
|
+
.replace(/["*/:<>?\\|]/g, "")
|
131
|
+
.replace(/-+/g, "-")
|
131
132
|
}
|
132
133
|
|
133
134
|
export const getExInfo = (title: string) => {
|
@@ -344,8 +345,7 @@ export function splitWordIntoSyllables(word: string): string[] {
|
|
344
345
|
const syllableCount = syllable(word)
|
345
346
|
|
346
347
|
// Simple heuristic: Split word into equal parts (not perfect, better with a dictionary-based approach)
|
347
|
-
if (syllableCount <= 1)
|
348
|
-
return [word]
|
348
|
+
if (syllableCount <= 1) return [word]
|
349
349
|
|
350
350
|
const approxLength = Math.ceil(word.length / syllableCount)
|
351
351
|
const syllables: string[] = []
|