@examplary/cli 1.3.0 → 1.5.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.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@examplary/cli",
3
3
  "description": "A bundler for Examplary question types.",
4
4
  "packageManager": "yarn@4.8.1",
5
- "version": "1.3.0",
5
+ "version": "1.5.0",
6
6
  "type": "module",
7
7
  "bin": {
8
8
  "exp": "./bin/index.js"
@@ -16,35 +16,39 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
+ "files": [
20
+ "bin",
21
+ "src"
22
+ ],
19
23
  "dependencies": {
20
24
  "@examplary/schemas": "*",
21
25
  "@examplary/ui": "*",
22
- "@hono/node-server": "^1.19.0",
26
+ "@hono/node-server": "^1.19.11",
23
27
  "@tailwindcss/postcss": "^4.1.14",
24
- "@tailwindcss/vite": "^4.1.16",
25
- "@vitejs/plugin-react": "^5.0.4",
28
+ "@tailwindcss/vite": "^4.2.1",
29
+ "@vitejs/plugin-react": "^6.0.1",
26
30
  "esbuild": "^0.27.1",
27
- "hono": "^4.9.12",
31
+ "hono": "^4.12.8",
28
32
  "i18next": "^25.3.2",
29
33
  "i18next-browser-languagedetector": "^8.2.0",
30
34
  "jsonata": "^2.1.0",
31
35
  "lucide-react": "^0.535.0",
32
- "open": "^10.2.0",
36
+ "open": "^11.0.0",
33
37
  "postcss": "^8.5.6",
34
- "react": "^19.0.0",
35
- "react-dom": "^19.0.0",
36
- "react-error-boundary": "^6.0.0",
38
+ "react": "^19.2.4",
39
+ "react-dom": "^19.2.4",
40
+ "react-error-boundary": "^6.0.3",
37
41
  "react-i18next": "^16.0.0",
38
42
  "swr": "^2.3.6",
39
- "tailwindcss": "^4.1.14",
43
+ "tailwindcss": "^4.2.1",
40
44
  "use-local-storage": "^3.0.0",
41
- "vite": "^7.1.10",
45
+ "vite": "^8.0.0",
42
46
  "ws": "^8.18.3",
43
47
  "yargs": "^18.0.0"
44
48
  },
45
49
  "devDependencies": {
46
50
  "@types/node": "^24.1.0",
47
- "typescript": "^5.9.2"
51
+ "typescript": "^5.9.3"
48
52
  },
49
53
  "homepage": "https://developers.examplary.ai/",
50
54
  "author": {
@@ -28,6 +28,7 @@ export const PreviewAssessment = ({
28
28
  type={questionType}
29
29
  componentName="assessment"
30
30
  props={{
31
+ environment: "exam",
31
32
  api,
32
33
  question,
33
34
  answer,
@@ -22,6 +22,7 @@ export const PreviewPrint = ({ questionType, question }) => {
22
22
  type={questionType}
23
23
  componentName="print"
24
24
  props={{
25
+ environment: "exam",
25
26
  question,
26
27
  answerBoxes: true,
27
28
  }}
@@ -20,6 +20,7 @@ export const PreviewResults = ({ questionType, question, answer }) => {
20
20
  type={questionType}
21
21
  componentName="results"
22
22
  props={{
23
+ environment: "exam",
23
24
  api,
24
25
  question,
25
26
  answer,
@@ -70,6 +70,7 @@ export const PreviewSettingsArea = ({
70
70
  api,
71
71
  question,
72
72
  settings: question.settings,
73
+ environment: "exam",
73
74
  setMultipleSettings: (newSettings) => {
74
75
  setQuestion({
75
76
  ...question,
@@ -2,14 +2,19 @@ import { ComponentType } from "react";
2
2
  import { ErrorBoundary, FallbackProps } from "react-error-boundary";
3
3
  import { useTranslation } from "react-i18next";
4
4
 
5
- import { fetchComponent, FormattedQuestionType } from "@examplary/ui";
5
+ import {
6
+ fetchComponent,
7
+ FormattedQuestionType,
8
+ FrontendBaseComponentProps,
9
+ } from "@examplary/ui";
6
10
  import { Loader2Icon } from "lucide-react";
7
11
  import useSWR from "swr";
8
12
 
9
13
  type QuestionComponentProps = {
10
14
  type: FormattedQuestionType;
11
15
  componentName: "assessment" | "print" | "results" | "settings-area";
12
- props: Record<string, any>;
16
+ props: Omit<FrontendBaseComponentProps, "api" | "t" | "i18n"> &
17
+ Record<string, any>;
13
18
  };
14
19
 
15
20
  export const QuestionComponentContent = ({
@@ -8,7 +8,7 @@
8
8
  <link rel="preconnect" href="https://fonts.googleapis.com" />
9
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
10
10
  <link
11
- href="https://fonts.googleapis.com/css2?family=Epunda+Sans:ital,wght@0,300..900;1,300..900&family=Epunda+Slab:ital,wght@0,300..900;1,300..900&display=swap"
11
+ href="https://fonts.googleapis.com/css2?family=Epunda+Sans:ital,wght@0,300..900;1,300..900&family=Epunda+Slab:ital,wght@0,300..900;1,300..900&family=Inconsolata:wght@200..900&display=swap"
12
12
  rel="stylesheet"
13
13
  />
14
14
  </head>