@examplary/ui 1.67.0 → 1.67.1
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.
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import type { QuestionType } from "@examplary/schemas";
|
|
2
|
-
|
|
2
|
+
import { i18n } from "i18next";
|
|
3
|
+
export declare const formatQuestionType: (type: QuestionType, i18n: i18n) => {
|
|
3
4
|
translationNs: string;
|
|
4
|
-
name:
|
|
5
|
-
description:
|
|
6
|
-
enforceTitle:
|
|
7
|
-
titlePlaceholder:
|
|
8
|
-
descriptionPlaceholder:
|
|
9
|
-
untitledPlaceholder:
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
enforceTitle: string | undefined;
|
|
8
|
+
titlePlaceholder: string | undefined;
|
|
9
|
+
descriptionPlaceholder: string | undefined;
|
|
10
|
+
untitledPlaceholder: string | undefined;
|
|
10
11
|
settings: {
|
|
11
|
-
name:
|
|
12
|
-
helpText:
|
|
13
|
-
placeholder:
|
|
12
|
+
name: string;
|
|
13
|
+
helpText: string | undefined;
|
|
14
|
+
placeholder: string | null | undefined;
|
|
14
15
|
options: {
|
|
15
|
-
label:
|
|
16
|
+
label: string;
|
|
16
17
|
value: string;
|
|
17
18
|
}[] | undefined;
|
|
18
19
|
id: string;
|
|
@@ -76,6 +77,7 @@ export declare const formatQuestionType: (type: QuestionType, i18n: any) => {
|
|
|
76
77
|
guidance?: string | null | undefined;
|
|
77
78
|
modelAnswer?: string | null | undefined;
|
|
78
79
|
templateId?: string | null | undefined;
|
|
80
|
+
excludeFromGrading?: boolean | null | undefined;
|
|
79
81
|
} | null | undefined;
|
|
80
82
|
tags?: string[] | null | undefined;
|
|
81
83
|
externalId?: string | null | undefined;
|
|
@@ -64,7 +64,7 @@ export const DatePicker = ({ value, onChange, placeholderText, allowFuture = fal
|
|
|
64
64
|
e.preventDefault();
|
|
65
65
|
e.target.blur();
|
|
66
66
|
}
|
|
67
|
-
}, type: "text", className: "border-0 bg-transparent focus-visible:ring-0" }), _jsxs(Popover, { open: hasFocus || isOpen, onOpenChange: setIsOpen, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: "secondary", size: "sm", className: "mr-0.5 bg-transparent", children: _jsx(CalendarIcon, { className: "ml-auto h-4 w-4 text-zinc-500" }) }) }), _jsx(PopoverContent, { align: "end", onOpenAutoFocus: (e) => e.preventDefault(), sideOffset: 8, className: "w-auto p-0", children: _jsx(Calendar, { mode: "single", selected: parsedValue, required: false, onSelect: handleDaySelect, className: "w-full", disabled: (date) => {
|
|
67
|
+
}, type: "text", className: "border-0 bg-transparent focus-visible:ring-0" }), _jsxs(Popover, { open: hasFocus || isOpen, onOpenChange: setIsOpen, modal: true, children: [_jsx(PopoverTrigger, { asChild: true, children: _jsx(Button, { type: "button", variant: "secondary", size: "sm", className: "mr-0.5 bg-transparent", children: _jsx(CalendarIcon, { className: "ml-auto h-4 w-4 text-zinc-500" }) }) }), _jsx(PopoverContent, { align: "end", onOpenAutoFocus: (e) => e.preventDefault(), sideOffset: 8, className: "w-auto p-0", children: _jsx(Calendar, { mode: "single", selected: parsedValue, required: false, onSelect: handleDaySelect, className: "w-full", disabled: (date) => {
|
|
68
68
|
// Disable dates after today if future dates are not allowed
|
|
69
69
|
if (!allowFuture) {
|
|
70
70
|
return date > new Date();
|
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.67.
|
|
5
|
+
"version": "1.67.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"files": [
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
"@tiptap/react": "^3.15.3",
|
|
56
56
|
"@tiptap/starter-kit": "^3.11.1",
|
|
57
57
|
"@tiptap/y-tiptap": "^3.0.2",
|
|
58
|
-
"axios": "^1.
|
|
58
|
+
"axios": "^1.18.1",
|
|
59
59
|
"chrono-node": "^2.9.1",
|
|
60
60
|
"class-variance-authority": "^0.7.1",
|
|
61
61
|
"clsx": "^2.1.1",
|
|
62
62
|
"cmdk": "^1.1.1",
|
|
63
63
|
"date-fns": "^4.4.0",
|
|
64
64
|
"fuse.js": "^7.1.0",
|
|
65
|
-
"i18next": "^26.
|
|
65
|
+
"i18next": "^26.3.4",
|
|
66
66
|
"i18next-browser-languagedetector": "^8.2.0",
|
|
67
67
|
"katex": "^0.16.44",
|
|
68
68
|
"lucide-react": "^0.575.0",
|
|
69
69
|
"lucide-static": "^0.575.0",
|
|
70
70
|
"mathlive": "0.108.3",
|
|
71
71
|
"motion": "^12.35.0",
|
|
72
|
-
"nanoid": "^5.1.
|
|
72
|
+
"nanoid": "^5.1.16",
|
|
73
73
|
"radix-ui": "^1.4.3",
|
|
74
74
|
"react-colorful": "^5.6.1",
|
|
75
75
|
"react-day-picker": "^10.0.1",
|