sloncek-blockly 1.0.22 → 1.0.24
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/dist/index.css +40 -16
- package/dist/index.d.ts +11 -3
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +40 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
display: none;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
/*! tailwindcss v4.3.
|
|
97
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
98
98
|
@layer properties;
|
|
99
99
|
@layer theme, base, components, utilities;
|
|
100
100
|
@layer theme {
|
|
@@ -418,6 +418,9 @@
|
|
|
418
418
|
.ml-6 {
|
|
419
419
|
margin-left: calc(var(--spacing) * 6);
|
|
420
420
|
}
|
|
421
|
+
.box-border {
|
|
422
|
+
box-sizing: border-box;
|
|
423
|
+
}
|
|
421
424
|
.block {
|
|
422
425
|
display: block;
|
|
423
426
|
}
|
|
@@ -487,21 +490,27 @@
|
|
|
487
490
|
.h-40 {
|
|
488
491
|
height: calc(var(--spacing) * 40);
|
|
489
492
|
}
|
|
493
|
+
.h-\[38px\] {
|
|
494
|
+
height: 38px;
|
|
495
|
+
}
|
|
490
496
|
.h-full {
|
|
491
497
|
height: 100%;
|
|
492
498
|
}
|
|
493
499
|
.max-h-0 {
|
|
494
500
|
max-height: 0px;
|
|
495
501
|
}
|
|
496
|
-
.max-h-50 {
|
|
497
|
-
max-height: calc(var(--spacing) * 50);
|
|
498
|
-
}
|
|
499
502
|
.max-h-56 {
|
|
500
503
|
max-height: calc(var(--spacing) * 56);
|
|
501
504
|
}
|
|
502
505
|
.max-h-64 {
|
|
503
506
|
max-height: calc(var(--spacing) * 64);
|
|
504
507
|
}
|
|
508
|
+
.max-h-\[6\.25rem\] {
|
|
509
|
+
max-height: 6.25rem;
|
|
510
|
+
}
|
|
511
|
+
.min-h-0 {
|
|
512
|
+
min-height: 0px;
|
|
513
|
+
}
|
|
505
514
|
.\!w-5 {
|
|
506
515
|
width: calc(var(--spacing) * 5) !important;
|
|
507
516
|
}
|
|
@@ -585,7 +594,7 @@
|
|
|
585
594
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
586
595
|
}
|
|
587
596
|
.transform {
|
|
588
|
-
transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
|
|
597
|
+
transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
|
|
589
598
|
}
|
|
590
599
|
.cursor-not-allowed {
|
|
591
600
|
cursor: not-allowed;
|
|
@@ -679,17 +688,17 @@
|
|
|
679
688
|
.overflow-hidden {
|
|
680
689
|
overflow: hidden;
|
|
681
690
|
}
|
|
682
|
-
.overflow-scroll {
|
|
683
|
-
overflow: scroll;
|
|
684
|
-
}
|
|
685
691
|
.overflow-x-auto {
|
|
686
692
|
overflow-x: auto;
|
|
687
693
|
}
|
|
694
|
+
.overflow-x-hidden {
|
|
695
|
+
overflow-x: hidden;
|
|
696
|
+
}
|
|
688
697
|
.overflow-y-auto {
|
|
689
698
|
overflow-y: auto;
|
|
690
699
|
}
|
|
691
|
-
.overflow-y-
|
|
692
|
-
overflow-y:
|
|
700
|
+
.overflow-y-hidden {
|
|
701
|
+
overflow-y: hidden;
|
|
693
702
|
}
|
|
694
703
|
.overflow-y-scroll {
|
|
695
704
|
overflow-y: scroll;
|
|
@@ -892,6 +901,10 @@
|
|
|
892
901
|
font-size: var(--text-xs);
|
|
893
902
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
894
903
|
}
|
|
904
|
+
.leading-5 {
|
|
905
|
+
--tw-leading: calc(var(--spacing) * 5);
|
|
906
|
+
line-height: calc(var(--spacing) * 5);
|
|
907
|
+
}
|
|
895
908
|
.font-bold {
|
|
896
909
|
--tw-font-weight: var(--font-weight-bold);
|
|
897
910
|
font-weight: var(--font-weight-bold);
|
|
@@ -900,6 +913,12 @@
|
|
|
900
913
|
--tw-font-weight: var(--font-weight-semibold);
|
|
901
914
|
font-weight: var(--font-weight-semibold);
|
|
902
915
|
}
|
|
916
|
+
.break-words {
|
|
917
|
+
overflow-wrap: break-word;
|
|
918
|
+
}
|
|
919
|
+
.whitespace-nowrap {
|
|
920
|
+
white-space: nowrap;
|
|
921
|
+
}
|
|
903
922
|
.text-black {
|
|
904
923
|
color: var(--color-black);
|
|
905
924
|
}
|
|
@@ -952,7 +971,7 @@
|
|
|
952
971
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
953
972
|
}
|
|
954
973
|
.filter {
|
|
955
|
-
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
974
|
+
filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
|
|
956
975
|
}
|
|
957
976
|
.transition {
|
|
958
977
|
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
|
|
@@ -1004,17 +1023,17 @@
|
|
|
1004
1023
|
user-select: none;
|
|
1005
1024
|
}
|
|
1006
1025
|
@media (hover: hover) {
|
|
1007
|
-
|
|
1026
|
+
:is(:where(.group):hover .group-hover\:mt-2) {
|
|
1008
1027
|
margin-top: calc(var(--spacing) * 2);
|
|
1009
1028
|
}
|
|
1010
|
-
|
|
1029
|
+
:is(:where(.group):hover .group-hover\:max-h-16) {
|
|
1011
1030
|
max-height: calc(var(--spacing) * 16);
|
|
1012
1031
|
}
|
|
1013
|
-
|
|
1032
|
+
:is(:where(.group):hover .group-hover\:opacity-100) {
|
|
1014
1033
|
opacity: 100%;
|
|
1015
1034
|
}
|
|
1016
1035
|
}
|
|
1017
|
-
|
|
1036
|
+
:is(:where(.peer):checked ~ .peer-checked\:bg-accent) {
|
|
1018
1037
|
background-color: var(--color-accent);
|
|
1019
1038
|
}
|
|
1020
1039
|
@media (hover: hover) {
|
|
@@ -1262,6 +1281,10 @@
|
|
|
1262
1281
|
inherits: false;
|
|
1263
1282
|
initial-value: solid;
|
|
1264
1283
|
}
|
|
1284
|
+
@property --tw-leading {
|
|
1285
|
+
syntax: "*";
|
|
1286
|
+
inherits: false;
|
|
1287
|
+
}
|
|
1265
1288
|
@property --tw-font-weight {
|
|
1266
1289
|
syntax: "*";
|
|
1267
1290
|
inherits: false;
|
|
@@ -1408,7 +1431,7 @@
|
|
|
1408
1431
|
initial-value: 1;
|
|
1409
1432
|
}
|
|
1410
1433
|
@layer properties {
|
|
1411
|
-
@supports ((-webkit-hyphens: none) and (not (margin-trim:
|
|
1434
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
1412
1435
|
*, ::before, ::after, ::backdrop {
|
|
1413
1436
|
--tw-translate-x: 0;
|
|
1414
1437
|
--tw-translate-y: 0;
|
|
@@ -1421,6 +1444,7 @@
|
|
|
1421
1444
|
--tw-space-y-reverse: 0;
|
|
1422
1445
|
--tw-space-x-reverse: 0;
|
|
1423
1446
|
--tw-border-style: solid;
|
|
1447
|
+
--tw-leading: initial;
|
|
1424
1448
|
--tw-font-weight: initial;
|
|
1425
1449
|
--tw-shadow: 0 0 #0000;
|
|
1426
1450
|
--tw-shadow-color: initial;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
+
declare const LANGUAGES: readonly ["sl", "en", "it", "hu"];
|
|
4
|
+
type Lang = typeof LANGUAGES[number];
|
|
5
|
+
declare const LANGUAGE_LABELS: Record<Lang, string>;
|
|
6
|
+
type Localized = string | Partial<Record<Lang, string>>;
|
|
7
|
+
declare function pickLocalized(value: Localized | undefined, lang: Lang): string;
|
|
8
|
+
|
|
3
9
|
interface APIPaginatedResponse<T> {
|
|
4
10
|
count: number;
|
|
5
11
|
next: string | null;
|
|
@@ -27,7 +33,9 @@ interface GeneratorProps {
|
|
|
27
33
|
answer?: string;
|
|
28
34
|
initial?: string;
|
|
29
35
|
canRun?: boolean;
|
|
30
|
-
|
|
36
|
+
lang?: Lang;
|
|
37
|
+
displayTitle?: boolean;
|
|
38
|
+
displayDescription?: boolean;
|
|
31
39
|
fastForward?: boolean;
|
|
32
40
|
admin: boolean;
|
|
33
41
|
assetBaseUrl: string;
|
|
@@ -45,5 +53,5 @@ type GeneratorHandle = {
|
|
|
45
53
|
declare const Generator: React.ForwardRefExoticComponent<GeneratorProps & React.RefAttributes<GeneratorHandle>>;
|
|
46
54
|
declare function validate(problem: JSON, answer: JSON, initial?: JSON | null): Promise<number>;
|
|
47
55
|
|
|
48
|
-
export { Generator as default, validate };
|
|
49
|
-
export type { GeneratorHandle };
|
|
56
|
+
export { LANGUAGES, LANGUAGE_LABELS, Generator as default, pickLocalized, validate };
|
|
57
|
+
export type { GeneratorHandle, Lang, Localized };
|