@examplary/ui 1.67.2 → 1.68.0
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.
|
@@ -129,6 +129,9 @@ export declare const formatQuestionType: (type: QuestionType, i18n: i18n) => {
|
|
|
129
129
|
} | undefined;
|
|
130
130
|
} | undefined;
|
|
131
131
|
metadata?: Record<string, string | number | boolean | null> | undefined;
|
|
132
|
+
readme?: string | undefined;
|
|
133
|
+
previewImage?: string | undefined;
|
|
134
|
+
previewData?: string | undefined;
|
|
132
135
|
stylesheet?: string | undefined;
|
|
133
136
|
index?: number | undefined;
|
|
134
137
|
isDefault?: boolean | undefined;
|
|
@@ -7,7 +7,6 @@ export const processFilesAsString = (uploadFile, files) => new Promise((resolve)
|
|
|
7
7
|
const items = await Promise.all(Array.from(files).map(async (file) => {
|
|
8
8
|
try {
|
|
9
9
|
const { url, name } = await uploadFile(file);
|
|
10
|
-
console.log({ url, name });
|
|
11
10
|
const isImage = file.type.startsWith("image/");
|
|
12
11
|
const attrs = {
|
|
13
12
|
src: url,
|
|
@@ -32,14 +31,14 @@ export const processFilesAsString = (uploadFile, files) => new Promise((resolve)
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
catch (e) {
|
|
35
|
-
console.
|
|
34
|
+
console.error("File upload failed", e);
|
|
36
35
|
throw e;
|
|
37
36
|
}
|
|
38
37
|
}));
|
|
39
38
|
resolve(items.join(""));
|
|
40
39
|
}
|
|
41
40
|
catch (e) {
|
|
42
|
-
console.
|
|
41
|
+
console.error("File upload failed", e);
|
|
43
42
|
throw e;
|
|
44
43
|
}
|
|
45
44
|
}, {
|
|
@@ -87,7 +86,7 @@ export const processFiles = (uploadFile, currentEditor, files, pos) => {
|
|
|
87
86
|
currentEditor.chain().insertContentAt(pos, content).focus().run();
|
|
88
87
|
}
|
|
89
88
|
catch (e) {
|
|
90
|
-
console.
|
|
89
|
+
console.error("File upload failed", e);
|
|
91
90
|
throw e;
|
|
92
91
|
}
|
|
93
92
|
})), {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@examplary/ui",
|
|
3
3
|
"description": "UI components for the Examplary testing platform.",
|
|
4
4
|
"packageManager": "yarn@4.5.3",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.68.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"files": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"katex": "^0.16.44",
|
|
70
70
|
"lucide-react": "^0.575.0",
|
|
71
71
|
"lucide-static": "^0.575.0",
|
|
72
|
-
"mathlive": "0.
|
|
72
|
+
"mathlive": "0.110.0",
|
|
73
73
|
"motion": "^12.35.0",
|
|
74
74
|
"nanoid": "^5.1.16",
|
|
75
75
|
"radix-ui": "^1.4.3",
|