sloncek-blockly 1.0.23 → 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 +21 -6
- package/dist/index.d.ts +11 -3
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/dist/output.css +21 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -499,15 +499,18 @@
|
|
|
499
499
|
.max-h-0 {
|
|
500
500
|
max-height: 0px;
|
|
501
501
|
}
|
|
502
|
-
.max-h-50 {
|
|
503
|
-
max-height: calc(var(--spacing) * 50);
|
|
504
|
-
}
|
|
505
502
|
.max-h-56 {
|
|
506
503
|
max-height: calc(var(--spacing) * 56);
|
|
507
504
|
}
|
|
508
505
|
.max-h-64 {
|
|
509
506
|
max-height: calc(var(--spacing) * 64);
|
|
510
507
|
}
|
|
508
|
+
.max-h-\[6\.25rem\] {
|
|
509
|
+
max-height: 6.25rem;
|
|
510
|
+
}
|
|
511
|
+
.min-h-0 {
|
|
512
|
+
min-height: 0px;
|
|
513
|
+
}
|
|
511
514
|
.\!w-5 {
|
|
512
515
|
width: calc(var(--spacing) * 5) !important;
|
|
513
516
|
}
|
|
@@ -685,12 +688,12 @@
|
|
|
685
688
|
.overflow-hidden {
|
|
686
689
|
overflow: hidden;
|
|
687
690
|
}
|
|
688
|
-
.overflow-scroll {
|
|
689
|
-
overflow: scroll;
|
|
690
|
-
}
|
|
691
691
|
.overflow-x-auto {
|
|
692
692
|
overflow-x: auto;
|
|
693
693
|
}
|
|
694
|
+
.overflow-x-hidden {
|
|
695
|
+
overflow-x: hidden;
|
|
696
|
+
}
|
|
694
697
|
.overflow-y-auto {
|
|
695
698
|
overflow-y: auto;
|
|
696
699
|
}
|
|
@@ -898,6 +901,10 @@
|
|
|
898
901
|
font-size: var(--text-xs);
|
|
899
902
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
900
903
|
}
|
|
904
|
+
.leading-5 {
|
|
905
|
+
--tw-leading: calc(var(--spacing) * 5);
|
|
906
|
+
line-height: calc(var(--spacing) * 5);
|
|
907
|
+
}
|
|
901
908
|
.font-bold {
|
|
902
909
|
--tw-font-weight: var(--font-weight-bold);
|
|
903
910
|
font-weight: var(--font-weight-bold);
|
|
@@ -906,6 +913,9 @@
|
|
|
906
913
|
--tw-font-weight: var(--font-weight-semibold);
|
|
907
914
|
font-weight: var(--font-weight-semibold);
|
|
908
915
|
}
|
|
916
|
+
.break-words {
|
|
917
|
+
overflow-wrap: break-word;
|
|
918
|
+
}
|
|
909
919
|
.whitespace-nowrap {
|
|
910
920
|
white-space: nowrap;
|
|
911
921
|
}
|
|
@@ -1271,6 +1281,10 @@
|
|
|
1271
1281
|
inherits: false;
|
|
1272
1282
|
initial-value: solid;
|
|
1273
1283
|
}
|
|
1284
|
+
@property --tw-leading {
|
|
1285
|
+
syntax: "*";
|
|
1286
|
+
inherits: false;
|
|
1287
|
+
}
|
|
1274
1288
|
@property --tw-font-weight {
|
|
1275
1289
|
syntax: "*";
|
|
1276
1290
|
inherits: false;
|
|
@@ -1430,6 +1444,7 @@
|
|
|
1430
1444
|
--tw-space-y-reverse: 0;
|
|
1431
1445
|
--tw-space-x-reverse: 0;
|
|
1432
1446
|
--tw-border-style: solid;
|
|
1447
|
+
--tw-leading: initial;
|
|
1433
1448
|
--tw-font-weight: initial;
|
|
1434
1449
|
--tw-shadow: 0 0 #0000;
|
|
1435
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 };
|