@citolab/qti-components 7.16.0 → 7.17.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/dist/base.d.ts +48 -8
- package/dist/base.js +49 -2
- package/dist/base.js.map +1 -1
- package/dist/chunk-2DOYPVF5.js +481 -0
- package/dist/chunk-2DOYPVF5.js.map +1 -0
- package/dist/chunk-2ZEJ3RR5.js +89 -0
- package/dist/chunk-2ZEJ3RR5.js.map +1 -0
- package/dist/chunk-352OTVTY.js +3330 -0
- package/dist/chunk-352OTVTY.js.map +1 -0
- package/dist/chunk-C2HQFI2C.js +5927 -0
- package/dist/chunk-C2HQFI2C.js.map +1 -0
- package/dist/chunk-DWIRLYDS.js +20 -0
- package/dist/chunk-DWIRLYDS.js.map +1 -0
- package/dist/chunk-EUXUH3YW.js +15 -0
- package/dist/chunk-EUXUH3YW.js.map +1 -0
- package/dist/chunk-F44CI35W.js +145 -0
- package/dist/chunk-F44CI35W.js.map +1 -0
- package/dist/chunk-INKI27D5.js +493 -0
- package/dist/chunk-INKI27D5.js.map +1 -0
- package/dist/chunk-JEUY3MYB.js +2010 -0
- package/dist/chunk-JEUY3MYB.js.map +1 -0
- package/dist/chunk-O4XIWHTF.js +1139 -0
- package/dist/chunk-O4XIWHTF.js.map +1 -0
- package/dist/chunk-RI47B4ZT.js +1753 -0
- package/dist/chunk-RI47B4ZT.js.map +1 -0
- package/dist/chunk-VEV4DGPH.js +31 -0
- package/dist/chunk-VEV4DGPH.js.map +1 -0
- package/dist/chunk-W4SQRNWO.js +3844 -0
- package/dist/chunk-W4SQRNWO.js.map +1 -0
- package/dist/computed-item.context-CiddHLPz.d.ts +22 -0
- package/dist/computed.context-CH09_LCR.d.ts +45 -0
- package/dist/config.context-DAdkDDf5.d.ts +14 -0
- package/dist/elements.d.ts +318 -1
- package/dist/elements.js +41 -2
- package/dist/elements.js.map +1 -1
- package/dist/index.d.ts +21 -8
- package/dist/index.js +327 -9
- package/dist/index.js.map +1 -1
- package/dist/interaction-C5Up6-68.d.ts +56 -0
- package/dist/interactions.d.ts +913 -1
- package/dist/interactions.js +71 -2
- package/dist/interactions.js.map +1 -1
- package/dist/item.context-BRKXBC3m.d.ts +10 -0
- package/dist/item.d.ts +147 -1
- package/dist/item.js +22 -2
- package/dist/item.js.map +1 -1
- package/dist/loader.d.ts +21 -1
- package/dist/loader.js +10 -2
- package/dist/loader.js.map +1 -1
- package/dist/processing.d.ts +393 -1
- package/dist/processing.js +102 -2
- package/dist/processing.js.map +1 -1
- package/dist/qti-feedback-B4cMzOcq.d.ts +21 -0
- package/dist/qti-rule-base-dL4opfvi.d.ts +39 -0
- package/dist/qti-transform-test-Bz9A3hmD.d.ts +63 -0
- package/dist/test.context-Bpw1HNAZ.d.ts +28 -0
- package/dist/test.d.ts +569 -1
- package/dist/test.js +60 -2
- package/dist/test.js.map +1 -1
- package/dist/transformers.d.ts +18 -1
- package/dist/transformers.js +11 -2
- package/dist/transformers.js.map +1 -1
- package/dist/variables-CusMRnyJ.d.ts +69 -0
- package/package.json +8 -14
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
interface directedPair {
|
|
2
|
+
destination: string;
|
|
3
|
+
source: string;
|
|
4
|
+
}
|
|
5
|
+
interface ResponseInteraction {
|
|
6
|
+
responseIdentifier: string;
|
|
7
|
+
response: string | string[];
|
|
8
|
+
}
|
|
9
|
+
interface Calculate {
|
|
10
|
+
calculate: () => string | string[];
|
|
11
|
+
}
|
|
12
|
+
type float = number;
|
|
13
|
+
type integer = number;
|
|
14
|
+
type BaseType = 'boolean' | 'directedPair' | 'duration' | 'float' | 'integer' | 'string' | 'identifier' | 'pair' | 'record';
|
|
15
|
+
type Multiple = string | string[][];
|
|
16
|
+
type Ordered = string | string[][];
|
|
17
|
+
type Cardinality = 'multiple' | 'ordered' | 'single' | 'record';
|
|
18
|
+
|
|
19
|
+
type QtiAreaMapping = {
|
|
20
|
+
defaultValue: number;
|
|
21
|
+
lowerBound?: number;
|
|
22
|
+
upperBound?: number;
|
|
23
|
+
areaMapEntries: QtiAreaMapEntry[];
|
|
24
|
+
};
|
|
25
|
+
type QtiAreaMapEntry = {
|
|
26
|
+
shape: areaShape;
|
|
27
|
+
coords: string;
|
|
28
|
+
mappedValue: number;
|
|
29
|
+
defaultValue: number;
|
|
30
|
+
};
|
|
31
|
+
type QtiMapping = {
|
|
32
|
+
defaultValue: number;
|
|
33
|
+
lowerBound?: number;
|
|
34
|
+
upperBound?: number;
|
|
35
|
+
mapEntries: QtiMapEntry[];
|
|
36
|
+
};
|
|
37
|
+
type QtiMapEntry = {
|
|
38
|
+
mapKey: string;
|
|
39
|
+
mappedValue: number;
|
|
40
|
+
caseSensitive: boolean;
|
|
41
|
+
};
|
|
42
|
+
type areaShape = 'default' | 'circle' | 'rect' | 'ellipse' | 'poly';
|
|
43
|
+
interface VariableValue<T> {
|
|
44
|
+
identifier: string;
|
|
45
|
+
value: Readonly<T>;
|
|
46
|
+
defaultValue?: T | null;
|
|
47
|
+
type: 'outcome' | 'response' | 'context' | 'template';
|
|
48
|
+
}
|
|
49
|
+
interface VariableDeclaration<T> extends VariableValue<T> {
|
|
50
|
+
cardinality?: Cardinality;
|
|
51
|
+
baseType?: BaseType;
|
|
52
|
+
}
|
|
53
|
+
interface OutcomeVariable extends VariableDeclaration<string | string[] | null> {
|
|
54
|
+
interpolationTable?: Map<number, number>;
|
|
55
|
+
externalScored?: 'human' | 'externalMachine' | null;
|
|
56
|
+
}
|
|
57
|
+
interface ResponseVariable extends VariableDeclaration<string | string[] | null> {
|
|
58
|
+
candidateResponse?: string | string[] | null;
|
|
59
|
+
mapping?: QtiMapping;
|
|
60
|
+
areaMapping?: QtiAreaMapping;
|
|
61
|
+
correctResponse?: string | string[] | null;
|
|
62
|
+
}
|
|
63
|
+
interface TemplateVariable extends VariableDeclaration<string | string[] | number | boolean | null> {
|
|
64
|
+
type: 'template';
|
|
65
|
+
mathVariable?: boolean;
|
|
66
|
+
paramVariable?: boolean;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type { BaseType as B, Calculate as C, Multiple as M, Ordered as O, QtiAreaMapping as Q, ResponseInteraction as R, TemplateVariable as T, VariableValue as V, Cardinality as a, QtiAreaMapEntry as b, QtiMapping as c, directedPair as d, QtiMapEntry as e, float as f, areaShape as g, VariableDeclaration as h, integer as i, OutcomeVariable as j, ResponseVariable as k };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.17.0",
|
|
4
4
|
"description": "QTI component utilities",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"keywords": [
|
|
@@ -9,13 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"author": "",
|
|
11
11
|
"type": "module",
|
|
12
|
-
"sideEffects":
|
|
13
|
-
"./dist/elements.js",
|
|
14
|
-
"./dist/interactions.js",
|
|
15
|
-
"./dist/processing.js",
|
|
16
|
-
"./dist/test.js",
|
|
17
|
-
"./dist/item.js"
|
|
18
|
-
],
|
|
12
|
+
"sideEffects": true,
|
|
19
13
|
"license": "GPL-3.0-only",
|
|
20
14
|
"repository": {
|
|
21
15
|
"type": "git",
|
|
@@ -78,16 +72,16 @@
|
|
|
78
72
|
"@lit/context": "^1.1.6",
|
|
79
73
|
"@heximal/templates": "^0.1.5"
|
|
80
74
|
},
|
|
81
|
-
"
|
|
75
|
+
"devDependencies": {
|
|
76
|
+
"@qti-components/test": "1.0.0",
|
|
82
77
|
"@qti-components/item": "1.0.0",
|
|
83
78
|
"@qti-components/elements": "1.0.0",
|
|
84
|
-
"@qti-components/transformers": "1.0.0",
|
|
85
|
-
"@qti-components/test": "1.0.0",
|
|
86
79
|
"@qti-components/interactions": "1.0.0",
|
|
87
|
-
"@qti-components/
|
|
80
|
+
"@qti-components/transformers": "1.0.0",
|
|
88
81
|
"@qti-components/processing": "1.0.0",
|
|
89
|
-
"@qti-components/
|
|
90
|
-
"@qti-components/base": "1.0.0"
|
|
82
|
+
"@qti-components/loader": "1.0.0",
|
|
83
|
+
"@qti-components/base": "1.0.0",
|
|
84
|
+
"@qti-components/theme": "1.0.0"
|
|
91
85
|
},
|
|
92
86
|
"customElements": "dist/custom-elements.json",
|
|
93
87
|
"scripts": {
|