@learnpack/learnpack 5.0.98 → 5.0.106
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.js +81 -7
- package/lib/creatorDist/assets/{index-ldEC0yWM.css → index-Cvdi97GX.css} +119 -6
- package/lib/creatorDist/assets/{index-DayC-cyC.js → index-Sn-039yT.js} +45271 -37550
- package/lib/creatorDist/index.html +2 -2
- package/oclif.manifest.json +1 -1
- package/package.json +6 -2
- package/src/commands/serve.ts +126 -29
- package/src/creator/package-lock.json +60 -0
- package/src/creator/package.json +2 -0
- package/src/creator/src/App.tsx +32 -45
- package/src/creator/src/assets/svgs.tsx +14 -0
- package/src/creator/src/components/LinkUploader.tsx +109 -0
- package/src/creator/src/components/PreviewGenerator.tsx +95 -0
- package/src/creator/src/components/Source.tsx +68 -0
- package/src/creator/src/components/syllabus/Sidebar.tsx +35 -10
- package/src/creator/src/components/syllabus/SyllabusEditor.tsx +17 -7
- package/src/creator/src/index.css +4 -0
- package/src/creator/src/main.tsx +2 -0
- package/src/creator/src/utils/creatorUtils.ts +1 -0
- package/src/creator/src/utils/store.ts +4 -1
- package/src/creatorDist/assets/{index-ldEC0yWM.css → index-Cvdi97GX.css} +119 -6
- package/src/creatorDist/assets/{index-DayC-cyC.js → index-Sn-039yT.js} +45271 -37550
- package/src/creatorDist/index.html +2 -2
- package/src/utils/convertCreds.js +4 -0
- package/src/utils/creds.json +0 -13
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
--tw-gradient-from-position: 0%;
|
|
27
27
|
--tw-gradient-via-position: 50%;
|
|
28
28
|
--tw-gradient-to-position: 100%;
|
|
29
|
+
--tw-leading: initial;
|
|
29
30
|
--tw-font-weight: initial;
|
|
30
31
|
--tw-shadow: 0 0 #0000;
|
|
31
32
|
--tw-shadow-color: initial;
|
|
@@ -53,7 +54,9 @@
|
|
|
53
54
|
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
54
55
|
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
|
|
55
56
|
"Liberation Mono", "Courier New", monospace;
|
|
57
|
+
--color-red-50: oklch(97.1% 0.013 17.38);
|
|
56
58
|
--color-red-500: oklch(63.7% 0.237 25.331);
|
|
59
|
+
--color-red-600: oklch(57.7% 0.245 27.325);
|
|
57
60
|
--color-red-700: oklch(50.5% 0.213 27.518);
|
|
58
61
|
--color-sky-500: oklch(68.5% 0.169 237.323);
|
|
59
62
|
--color-sky-600: oklch(58.8% 0.158 241.966);
|
|
@@ -67,6 +70,7 @@
|
|
|
67
70
|
--color-blue-800: oklch(42.4% 0.199 265.638);
|
|
68
71
|
--color-blue-900: oklch(37.9% 0.146 265.522);
|
|
69
72
|
--color-gray-50: oklch(98.5% 0.002 247.839);
|
|
73
|
+
--color-gray-100: oklch(96.7% 0.003 264.542);
|
|
70
74
|
--color-gray-200: oklch(92.8% 0.006 264.531);
|
|
71
75
|
--color-gray-300: oklch(87.2% 0.01 258.338);
|
|
72
76
|
--color-gray-400: oklch(70.7% 0.022 261.325);
|
|
@@ -78,7 +82,9 @@
|
|
|
78
82
|
--color-black: #000;
|
|
79
83
|
--color-white: #fff;
|
|
80
84
|
--spacing: 0.25rem;
|
|
85
|
+
--container-xs: 20rem;
|
|
81
86
|
--container-sm: 24rem;
|
|
87
|
+
--container-md: 28rem;
|
|
82
88
|
--container-xl: 36rem;
|
|
83
89
|
--text-xs: 0.75rem;
|
|
84
90
|
--text-xs--line-height: calc(1 / 0.75);
|
|
@@ -88,6 +94,8 @@
|
|
|
88
94
|
--text-base--line-height: 1.5;
|
|
89
95
|
--text-lg: 1.125rem;
|
|
90
96
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
97
|
+
--text-2xl: 1.5rem;
|
|
98
|
+
--text-2xl--line-height: calc(2 / 1.5);
|
|
91
99
|
--text-4xl: 2.25rem;
|
|
92
100
|
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
93
101
|
--font-weight-medium: 500;
|
|
@@ -97,6 +105,7 @@
|
|
|
97
105
|
--radius-lg: 0.5rem;
|
|
98
106
|
--radius-xl: 0.75rem;
|
|
99
107
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
108
|
+
--animate-spin: spin 1s linear infinite;
|
|
100
109
|
--animate-ping: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
101
110
|
--animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
|
|
102
111
|
--default-transition-duration: 0.15s;
|
|
@@ -460,15 +469,27 @@
|
|
|
460
469
|
.mx-2 {
|
|
461
470
|
margin-inline: calc(var(--spacing) * 2);
|
|
462
471
|
}
|
|
472
|
+
.mx-auto {
|
|
473
|
+
margin-inline: auto;
|
|
474
|
+
}
|
|
475
|
+
.-mt-5 {
|
|
476
|
+
margin-top: calc(var(--spacing) * -5);
|
|
477
|
+
}
|
|
463
478
|
.mt-1 {
|
|
464
479
|
margin-top: calc(var(--spacing) * 1);
|
|
465
480
|
}
|
|
466
481
|
.mt-2 {
|
|
467
482
|
margin-top: calc(var(--spacing) * 2);
|
|
468
483
|
}
|
|
484
|
+
.mt-3 {
|
|
485
|
+
margin-top: calc(var(--spacing) * 3);
|
|
486
|
+
}
|
|
469
487
|
.mt-4 {
|
|
470
488
|
margin-top: calc(var(--spacing) * 4);
|
|
471
489
|
}
|
|
490
|
+
.mt-5 {
|
|
491
|
+
margin-top: calc(var(--spacing) * 5);
|
|
492
|
+
}
|
|
472
493
|
.mt-6 {
|
|
473
494
|
margin-top: calc(var(--spacing) * 6);
|
|
474
495
|
}
|
|
@@ -487,6 +508,9 @@
|
|
|
487
508
|
.mb-6 {
|
|
488
509
|
margin-bottom: calc(var(--spacing) * 6);
|
|
489
510
|
}
|
|
511
|
+
.ml-auto {
|
|
512
|
+
margin-left: auto;
|
|
513
|
+
}
|
|
490
514
|
.block {
|
|
491
515
|
display: block;
|
|
492
516
|
}
|
|
@@ -505,9 +529,18 @@
|
|
|
505
529
|
.h-2 {
|
|
506
530
|
height: calc(var(--spacing) * 2);
|
|
507
531
|
}
|
|
532
|
+
.h-5 {
|
|
533
|
+
height: calc(var(--spacing) * 5);
|
|
534
|
+
}
|
|
508
535
|
.h-6 {
|
|
509
536
|
height: calc(var(--spacing) * 6);
|
|
510
537
|
}
|
|
538
|
+
.h-10 {
|
|
539
|
+
height: calc(var(--spacing) * 10);
|
|
540
|
+
}
|
|
541
|
+
.h-12 {
|
|
542
|
+
height: calc(var(--spacing) * 12);
|
|
543
|
+
}
|
|
511
544
|
.h-15 {
|
|
512
545
|
height: calc(var(--spacing) * 15);
|
|
513
546
|
}
|
|
@@ -550,9 +583,18 @@
|
|
|
550
583
|
.w-4\/5 {
|
|
551
584
|
width: 80%;
|
|
552
585
|
}
|
|
586
|
+
.w-5 {
|
|
587
|
+
width: calc(var(--spacing) * 5);
|
|
588
|
+
}
|
|
553
589
|
.w-6 {
|
|
554
590
|
width: calc(var(--spacing) * 6);
|
|
555
591
|
}
|
|
592
|
+
.w-10 {
|
|
593
|
+
width: calc(var(--spacing) * 10);
|
|
594
|
+
}
|
|
595
|
+
.w-12 {
|
|
596
|
+
width: calc(var(--spacing) * 12);
|
|
597
|
+
}
|
|
556
598
|
.w-15 {
|
|
557
599
|
width: calc(var(--spacing) * 15);
|
|
558
600
|
}
|
|
@@ -568,12 +610,18 @@
|
|
|
568
610
|
.max-w-\[700px\] {
|
|
569
611
|
max-width: 700px;
|
|
570
612
|
}
|
|
613
|
+
.max-w-md {
|
|
614
|
+
max-width: var(--container-md);
|
|
615
|
+
}
|
|
571
616
|
.max-w-sm {
|
|
572
617
|
max-width: var(--container-sm);
|
|
573
618
|
}
|
|
574
619
|
.max-w-xl {
|
|
575
620
|
max-width: var(--container-xl);
|
|
576
621
|
}
|
|
622
|
+
.max-w-xs {
|
|
623
|
+
max-width: var(--container-xs);
|
|
624
|
+
}
|
|
577
625
|
.flex-1 {
|
|
578
626
|
flex: 1;
|
|
579
627
|
}
|
|
@@ -602,6 +650,12 @@
|
|
|
602
650
|
.animate-pulse {
|
|
603
651
|
animation: var(--animate-pulse);
|
|
604
652
|
}
|
|
653
|
+
.animate-spin {
|
|
654
|
+
animation: var(--animate-spin);
|
|
655
|
+
}
|
|
656
|
+
.cursor-not-allowed {
|
|
657
|
+
cursor: not-allowed;
|
|
658
|
+
}
|
|
605
659
|
.cursor-pointer {
|
|
606
660
|
cursor: pointer;
|
|
607
661
|
}
|
|
@@ -611,9 +665,6 @@
|
|
|
611
665
|
.flex-col {
|
|
612
666
|
flex-direction: column;
|
|
613
667
|
}
|
|
614
|
-
.flex-row {
|
|
615
|
-
flex-direction: row;
|
|
616
|
-
}
|
|
617
668
|
.items-center {
|
|
618
669
|
align-items: center;
|
|
619
670
|
}
|
|
@@ -629,6 +680,9 @@
|
|
|
629
680
|
.justify-end {
|
|
630
681
|
justify-content: flex-end;
|
|
631
682
|
}
|
|
683
|
+
.justify-start {
|
|
684
|
+
justify-content: flex-start;
|
|
685
|
+
}
|
|
632
686
|
.gap-1 {
|
|
633
687
|
gap: calc(var(--spacing) * 1);
|
|
634
688
|
}
|
|
@@ -769,6 +823,12 @@
|
|
|
769
823
|
.bg-gray-300 {
|
|
770
824
|
background-color: var(--color-gray-300);
|
|
771
825
|
}
|
|
826
|
+
.bg-gray-400 {
|
|
827
|
+
background-color: var(--color-gray-400);
|
|
828
|
+
}
|
|
829
|
+
.bg-red-50 {
|
|
830
|
+
background-color: var(--color-red-50);
|
|
831
|
+
}
|
|
772
832
|
.bg-sky-500 {
|
|
773
833
|
background-color: var(--color-sky-500);
|
|
774
834
|
}
|
|
@@ -797,6 +857,9 @@
|
|
|
797
857
|
var(--tw-gradient-to) var(--tw-gradient-to-position)
|
|
798
858
|
);
|
|
799
859
|
}
|
|
860
|
+
.object-cover {
|
|
861
|
+
object-fit: cover;
|
|
862
|
+
}
|
|
800
863
|
.p-1 {
|
|
801
864
|
padding: calc(var(--spacing) * 1);
|
|
802
865
|
}
|
|
@@ -806,6 +869,9 @@
|
|
|
806
869
|
.p-3 {
|
|
807
870
|
padding: calc(var(--spacing) * 3);
|
|
808
871
|
}
|
|
872
|
+
.p-4 {
|
|
873
|
+
padding: calc(var(--spacing) * 4);
|
|
874
|
+
}
|
|
809
875
|
.p-6 {
|
|
810
876
|
padding: calc(var(--spacing) * 6);
|
|
811
877
|
}
|
|
@@ -848,6 +914,10 @@
|
|
|
848
914
|
.font-sans {
|
|
849
915
|
font-family: var(--font-sans);
|
|
850
916
|
}
|
|
917
|
+
.text-2xl {
|
|
918
|
+
font-size: var(--text-2xl);
|
|
919
|
+
line-height: var(--tw-leading, var(--text-2xl--line-height));
|
|
920
|
+
}
|
|
851
921
|
.text-4xl {
|
|
852
922
|
font-size: var(--text-4xl);
|
|
853
923
|
line-height: var(--tw-leading, var(--text-4xl--line-height));
|
|
@@ -864,6 +934,10 @@
|
|
|
864
934
|
font-size: var(--text-xs);
|
|
865
935
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
866
936
|
}
|
|
937
|
+
.leading-none {
|
|
938
|
+
--tw-leading: 1;
|
|
939
|
+
line-height: 1;
|
|
940
|
+
}
|
|
867
941
|
.font-bold {
|
|
868
942
|
--tw-font-weight: var(--font-weight-bold);
|
|
869
943
|
font-weight: var(--font-weight-bold);
|
|
@@ -912,6 +986,9 @@
|
|
|
912
986
|
.text-red-500 {
|
|
913
987
|
color: var(--color-red-500);
|
|
914
988
|
}
|
|
989
|
+
.text-red-600 {
|
|
990
|
+
color: var(--color-red-600);
|
|
991
|
+
}
|
|
915
992
|
.text-sky-600 {
|
|
916
993
|
color: var(--color-sky-600);
|
|
917
994
|
}
|
|
@@ -921,9 +998,21 @@
|
|
|
921
998
|
.uppercase {
|
|
922
999
|
text-transform: uppercase;
|
|
923
1000
|
}
|
|
1001
|
+
.opacity-25 {
|
|
1002
|
+
opacity: 0.25;
|
|
1003
|
+
}
|
|
924
1004
|
.opacity-30 {
|
|
925
1005
|
opacity: 0.3;
|
|
926
1006
|
}
|
|
1007
|
+
.opacity-75 {
|
|
1008
|
+
opacity: 0.75;
|
|
1009
|
+
}
|
|
1010
|
+
.shadow-lg {
|
|
1011
|
+
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, #0000001a),
|
|
1012
|
+
0 4px 6px -4px var(--tw-shadow-color, #0000001a);
|
|
1013
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
|
|
1014
|
+
var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1015
|
+
}
|
|
927
1016
|
.shadow-md {
|
|
928
1017
|
--tw-shadow: 0 4px 6px -1px var(--tw-shadow-color, #0000001a),
|
|
929
1018
|
0 2px 4px -2px var(--tw-shadow-color, #0000001a);
|
|
@@ -965,6 +1054,14 @@
|
|
|
965
1054
|
);
|
|
966
1055
|
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
967
1056
|
}
|
|
1057
|
+
.transition-shadow {
|
|
1058
|
+
transition-property: box-shadow;
|
|
1059
|
+
transition-timing-function: var(
|
|
1060
|
+
--tw-ease,
|
|
1061
|
+
var(--default-transition-timing-function)
|
|
1062
|
+
);
|
|
1063
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
1064
|
+
}
|
|
968
1065
|
.transition-transform {
|
|
969
1066
|
transition-property: transform, translate, scale, rotate;
|
|
970
1067
|
transition-timing-function: var(
|
|
@@ -1013,6 +1110,18 @@
|
|
|
1013
1110
|
var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1014
1111
|
}
|
|
1015
1112
|
}
|
|
1113
|
+
.focus\:ring-2:focus {
|
|
1114
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0
|
|
1115
|
+
calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
|
|
1116
|
+
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
|
|
1117
|
+
var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
1118
|
+
}
|
|
1119
|
+
.focus\:ring-blue-200:focus {
|
|
1120
|
+
--tw-ring-color: var(--color-blue-200);
|
|
1121
|
+
}
|
|
1122
|
+
.disabled\:bg-gray-100:disabled {
|
|
1123
|
+
background-color: var(--color-gray-100);
|
|
1124
|
+
}
|
|
1016
1125
|
.disabled\:opacity-40:disabled {
|
|
1017
1126
|
opacity: 0.4;
|
|
1018
1127
|
}
|
|
@@ -1124,6 +1233,9 @@ h1 {
|
|
|
1124
1233
|
.bg-learnpack-blue {
|
|
1125
1234
|
background-color: var(--soft-blue);
|
|
1126
1235
|
}
|
|
1236
|
+
.bg-learnpack {
|
|
1237
|
+
background-color: var(--learnpack-blue);
|
|
1238
|
+
}
|
|
1127
1239
|
.bg-gray-blue {
|
|
1128
1240
|
background-color: #e7f1ff;
|
|
1129
1241
|
}
|
|
@@ -1153,9 +1265,6 @@ h1 {
|
|
|
1153
1265
|
display: flex;
|
|
1154
1266
|
}
|
|
1155
1267
|
@keyframes spin {
|
|
1156
|
-
0% {
|
|
1157
|
-
transform: rotate(0);
|
|
1158
|
-
}
|
|
1159
1268
|
to {
|
|
1160
1269
|
transform: rotate(360deg);
|
|
1161
1270
|
}
|
|
@@ -1326,6 +1435,10 @@ h1 {
|
|
|
1326
1435
|
inherits: false;
|
|
1327
1436
|
initial-value: 100%;
|
|
1328
1437
|
}
|
|
1438
|
+
@property --tw-leading {
|
|
1439
|
+
syntax: "*";
|
|
1440
|
+
inherits: false;
|
|
1441
|
+
}
|
|
1329
1442
|
@property --tw-font-weight {
|
|
1330
1443
|
syntax: "*";
|
|
1331
1444
|
inherits: false;
|