sloncek-blockly 1.0.23 → 1.0.25

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 CHANGED
@@ -499,15 +499,21 @@
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
+ .max-h-full {
512
+ max-height: 100%;
513
+ }
514
+ .min-h-0 {
515
+ min-height: 0px;
516
+ }
511
517
  .\!w-5 {
512
518
  width: calc(var(--spacing) * 5) !important;
513
519
  }
@@ -685,12 +691,12 @@
685
691
  .overflow-hidden {
686
692
  overflow: hidden;
687
693
  }
688
- .overflow-scroll {
689
- overflow: scroll;
690
- }
691
694
  .overflow-x-auto {
692
695
  overflow-x: auto;
693
696
  }
697
+ .overflow-x-hidden {
698
+ overflow-x: hidden;
699
+ }
694
700
  .overflow-y-auto {
695
701
  overflow-y: auto;
696
702
  }
@@ -898,6 +904,10 @@
898
904
  font-size: var(--text-xs);
899
905
  line-height: var(--tw-leading, var(--text-xs--line-height));
900
906
  }
907
+ .leading-5 {
908
+ --tw-leading: calc(var(--spacing) * 5);
909
+ line-height: calc(var(--spacing) * 5);
910
+ }
901
911
  .font-bold {
902
912
  --tw-font-weight: var(--font-weight-bold);
903
913
  font-weight: var(--font-weight-bold);
@@ -906,6 +916,9 @@
906
916
  --tw-font-weight: var(--font-weight-semibold);
907
917
  font-weight: var(--font-weight-semibold);
908
918
  }
919
+ .break-words {
920
+ overflow-wrap: break-word;
921
+ }
909
922
  .whitespace-nowrap {
910
923
  white-space: nowrap;
911
924
  }
@@ -1271,6 +1284,10 @@
1271
1284
  inherits: false;
1272
1285
  initial-value: solid;
1273
1286
  }
1287
+ @property --tw-leading {
1288
+ syntax: "*";
1289
+ inherits: false;
1290
+ }
1274
1291
  @property --tw-font-weight {
1275
1292
  syntax: "*";
1276
1293
  inherits: false;
@@ -1430,6 +1447,7 @@
1430
1447
  --tw-space-y-reverse: 0;
1431
1448
  --tw-space-x-reverse: 0;
1432
1449
  --tw-border-style: solid;
1450
+ --tw-leading: initial;
1433
1451
  --tw-font-weight: initial;
1434
1452
  --tw-shadow: 0 0 #0000;
1435
1453
  --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
- supportInstructions?: boolean;
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 };