sloncek-blockly 1.0.1 → 1.0.3
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 +0 -22
- package/dist/index.d.ts +7 -28
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -117,7 +117,6 @@
|
|
|
117
117
|
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
118
118
|
--font-weight-semibold: 600;
|
|
119
119
|
--font-weight-bold: 700;
|
|
120
|
-
--leading-tight: 1.25;
|
|
121
120
|
--radius-md: 0.375rem;
|
|
122
121
|
--radius-lg: 0.5rem;
|
|
123
122
|
--radius-xl: 0.75rem;
|
|
@@ -352,9 +351,6 @@
|
|
|
352
351
|
.m-4 {
|
|
353
352
|
margin: calc(var(--spacing) * 4);
|
|
354
353
|
}
|
|
355
|
-
.mx-4 {
|
|
356
|
-
margin-inline: calc(var(--spacing) * 4);
|
|
357
|
-
}
|
|
358
354
|
.mx-auto {
|
|
359
355
|
margin-inline: auto;
|
|
360
356
|
}
|
|
@@ -439,9 +435,6 @@
|
|
|
439
435
|
.h-full {
|
|
440
436
|
height: 100%;
|
|
441
437
|
}
|
|
442
|
-
.max-h-24 {
|
|
443
|
-
max-height: calc(var(--spacing) * 24);
|
|
444
|
-
}
|
|
445
438
|
.max-h-56 {
|
|
446
439
|
max-height: calc(var(--spacing) * 56);
|
|
447
440
|
}
|
|
@@ -535,9 +528,6 @@
|
|
|
535
528
|
.items-center {
|
|
536
529
|
align-items: center;
|
|
537
530
|
}
|
|
538
|
-
.items-start {
|
|
539
|
-
align-items: flex-start;
|
|
540
|
-
}
|
|
541
531
|
.justify-between {
|
|
542
532
|
justify-content: space-between;
|
|
543
533
|
}
|
|
@@ -791,10 +781,6 @@
|
|
|
791
781
|
font-size: var(--text-xs);
|
|
792
782
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
793
783
|
}
|
|
794
|
-
.leading-tight {
|
|
795
|
-
--tw-leading: var(--leading-tight);
|
|
796
|
-
line-height: var(--leading-tight);
|
|
797
|
-
}
|
|
798
784
|
.font-bold {
|
|
799
785
|
--tw-font-weight: var(--font-weight-bold);
|
|
800
786
|
font-weight: var(--font-weight-bold);
|
|
@@ -803,9 +789,6 @@
|
|
|
803
789
|
--tw-font-weight: var(--font-weight-semibold);
|
|
804
790
|
font-weight: var(--font-weight-semibold);
|
|
805
791
|
}
|
|
806
|
-
.break-words {
|
|
807
|
-
overflow-wrap: break-word;
|
|
808
|
-
}
|
|
809
792
|
.text-black {
|
|
810
793
|
color: var(--color-black);
|
|
811
794
|
}
|
|
@@ -1093,10 +1076,6 @@
|
|
|
1093
1076
|
inherits: false;
|
|
1094
1077
|
initial-value: solid;
|
|
1095
1078
|
}
|
|
1096
|
-
@property --tw-leading {
|
|
1097
|
-
syntax: "*";
|
|
1098
|
-
inherits: false;
|
|
1099
|
-
}
|
|
1100
1079
|
@property --tw-font-weight {
|
|
1101
1080
|
syntax: "*";
|
|
1102
1081
|
inherits: false;
|
|
@@ -1240,7 +1219,6 @@
|
|
|
1240
1219
|
--tw-skew-y: initial;
|
|
1241
1220
|
--tw-space-y-reverse: 0;
|
|
1242
1221
|
--tw-border-style: solid;
|
|
1243
|
-
--tw-leading: initial;
|
|
1244
1222
|
--tw-font-weight: initial;
|
|
1245
1223
|
--tw-shadow: 0 0 #0000;
|
|
1246
1224
|
--tw-shadow-color: initial;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,31 +21,8 @@ interface AssetModel {
|
|
|
21
21
|
updated_at: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
declare enum ProblemDifficulty {
|
|
25
|
-
Easy = "EA",
|
|
26
|
-
Medium = "ME",
|
|
27
|
-
Hard = "HA"
|
|
28
|
-
}
|
|
29
|
-
declare enum ProblemEvaluationType {
|
|
30
|
-
Automatic = "AU",
|
|
31
|
-
Manual = "MA"
|
|
32
|
-
}
|
|
33
|
-
interface ProblemModel {
|
|
34
|
-
id: number;
|
|
35
|
-
name: string;
|
|
36
|
-
description: string;
|
|
37
|
-
difficulty: ProblemDifficulty;
|
|
38
|
-
problem: Record<string, never>;
|
|
39
|
-
solution: Record<string, never>;
|
|
40
|
-
evaluation_type: ProblemEvaluationType;
|
|
41
|
-
user: InlineUserModel;
|
|
42
|
-
created_at: string;
|
|
43
|
-
updated_at: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
24
|
interface GeneratorProps {
|
|
47
25
|
modeProp?: "board" | "console" | "drawing";
|
|
48
|
-
problemId?: number;
|
|
49
26
|
problem?: string;
|
|
50
27
|
answer?: string;
|
|
51
28
|
canRun?: boolean;
|
|
@@ -54,11 +31,13 @@ interface GeneratorProps {
|
|
|
54
31
|
assetBaseUrl: string;
|
|
55
32
|
getAssetList(params?: Record<string, string>): Promise<APIPaginatedResponse<AssetModel>>;
|
|
56
33
|
createAsset(data: FormData | Partial<AssetModel>): Promise<AssetModel>;
|
|
57
|
-
updateProblem?(data: Partial<ProblemModel>): Promise<ProblemModel>;
|
|
58
|
-
answerProblem?(answer: JSON): Promise<ProblemModel>;
|
|
59
|
-
parentAnswerState?: any;
|
|
60
|
-
setParentAnswerState?: (a: any) => void;
|
|
61
34
|
}
|
|
62
|
-
|
|
35
|
+
type GeneratorHandle = {
|
|
36
|
+
getData: () => {
|
|
37
|
+
problem: JSON | null;
|
|
38
|
+
answer: JSON | null;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
declare const Generator: React.ForwardRefExoticComponent<GeneratorProps & React.RefAttributes<GeneratorHandle>>;
|
|
63
42
|
|
|
64
43
|
export { Generator as default };
|