@superbuilders/incept-renderer 0.1.0 → 0.1.2
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/README.md +632 -88
- package/dist/actions/index.d.ts +1 -1
- package/dist/actions/index.js +362 -552
- package/dist/actions/index.js.map +1 -1
- package/dist/components/index.d.ts +3 -3
- package/dist/components/index.js +71 -115
- package/dist/components/index.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.js +415 -461
- package/dist/index.js.map +1 -1
- package/dist/{schema-DxNEXGoq.d.ts → schema-CkAPLwco.d.ts} +5 -5
- package/dist/{types-MOyn9ktl.d.ts → types-DIDj-78l.d.ts} +1 -1
- package/package.json +16 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { D as
|
|
2
|
+
import { D as DisplayBlock, c as DisplayItem } from './types-DIDj-78l.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/** Theme options for the QTI renderer */
|
|
@@ -231,10 +231,10 @@ declare const ResponseDeclarationSchema: z.ZodObject<{
|
|
|
231
231
|
baseType: z.ZodEnum<{
|
|
232
232
|
string: "string";
|
|
233
233
|
boolean: "boolean";
|
|
234
|
-
directedPair: "directedPair";
|
|
235
234
|
identifier: "identifier";
|
|
236
235
|
float: "float";
|
|
237
236
|
integer: "integer";
|
|
237
|
+
directedPair: "directedPair";
|
|
238
238
|
pair: "pair";
|
|
239
239
|
}>;
|
|
240
240
|
correctResponse: z.ZodObject<{
|
|
@@ -347,10 +347,10 @@ declare const AssessmentItemSchema: z.ZodObject<{
|
|
|
347
347
|
baseType: z.ZodEnum<{
|
|
348
348
|
string: "string";
|
|
349
349
|
boolean: "boolean";
|
|
350
|
-
directedPair: "directedPair";
|
|
351
350
|
identifier: "identifier";
|
|
352
351
|
float: "float";
|
|
353
352
|
integer: "integer";
|
|
353
|
+
directedPair: "directedPair";
|
|
354
354
|
pair: "pair";
|
|
355
355
|
}>;
|
|
356
356
|
correctResponse: z.ZodObject<{
|
|
@@ -376,10 +376,10 @@ declare const AssessmentItemSchema: z.ZodObject<{
|
|
|
376
376
|
baseType: z.ZodEnum<{
|
|
377
377
|
string: "string";
|
|
378
378
|
boolean: "boolean";
|
|
379
|
-
directedPair: "directedPair";
|
|
380
379
|
identifier: "identifier";
|
|
381
380
|
float: "float";
|
|
382
381
|
integer: "integer";
|
|
382
|
+
directedPair: "directedPair";
|
|
383
383
|
pair: "pair";
|
|
384
384
|
}>;
|
|
385
385
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
@@ -505,4 +505,4 @@ declare const AssessmentItemSchema: z.ZodObject<{
|
|
|
505
505
|
}, z.core.$strip>;
|
|
506
506
|
type AssessmentItem = z.infer<typeof AssessmentItemSchema>;
|
|
507
507
|
|
|
508
|
-
export { type AssessmentItem as A,
|
|
508
|
+
export { type AssessmentItem as A, type ChoiceCorrectness as C, type FeedbackBlock as F, type QTIRendererProps as Q, type ResponseFeedback as R, type ContentBlockRendererProps as a, type QTITheme as b, ContentBlockRenderer as c, QTIRenderer as d, type AnyInteraction as e, type ChoiceInteraction as f, type ResponseDeclaration as g, type ResponseProcessing as h, AssessmentItemSchema as i };
|
|
@@ -99,4 +99,4 @@ type ValidateResult = {
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
export type {
|
|
102
|
+
export type { DisplayBlock as D, FormShape as F, ValidateResult as V, DisplayChoice as a, DisplayChoiceInteraction as b, DisplayItem as c, DisplayInlineEmbed as d, DisplayTextEmbed as e, DisplayGap as f };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@superbuilders/incept-renderer",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "QTI 3.0 Assessment Renderer - Parse, validate, and render QTI XML with customizable themes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,10 @@
|
|
|
20
20
|
"import": "./dist/components/index.js"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
|
-
"files": [
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
24
27
|
"scripts": {
|
|
25
28
|
"build": "tsup",
|
|
26
29
|
"dev": "tsup --watch",
|
|
@@ -31,6 +34,8 @@
|
|
|
31
34
|
"react-dom": "^18 || ^19"
|
|
32
35
|
},
|
|
33
36
|
"dependencies": {
|
|
37
|
+
"@superbuilders/errors": "^3.0.2",
|
|
38
|
+
"@superbuilders/slog": "^4.0.0",
|
|
34
39
|
"@dnd-kit/core": "^6.3.1",
|
|
35
40
|
"@dnd-kit/sortable": "^10.0.0",
|
|
36
41
|
"@dnd-kit/utilities": "^3.2.2",
|
|
@@ -52,7 +57,15 @@
|
|
|
52
57
|
"tsup": "^8.0.0",
|
|
53
58
|
"typescript": "^5.8.3"
|
|
54
59
|
},
|
|
55
|
-
"keywords": [
|
|
60
|
+
"keywords": [
|
|
61
|
+
"qti",
|
|
62
|
+
"assessment",
|
|
63
|
+
"quiz",
|
|
64
|
+
"testing",
|
|
65
|
+
"education",
|
|
66
|
+
"renderer",
|
|
67
|
+
"react"
|
|
68
|
+
],
|
|
56
69
|
"license": "MIT",
|
|
57
70
|
"repository": {
|
|
58
71
|
"type": "git",
|