@citolab/qti-components 7.28.0 → 7.28.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.
- package/cdn/index.global.js +1 -1
- package/cdn/index.js +188 -188
- package/custom-elements.json +91 -1
- package/dist/base.d.ts +2 -2
- package/dist/base.js +5 -1
- package/dist/chunk-3WBG257S.js +697 -0
- package/dist/chunk-3WBG257S.js.map +1 -0
- package/dist/{chunk-Z2SUBRH5.js → chunk-3XV26R5M.js} +6 -1
- package/dist/chunk-3XV26R5M.js.map +1 -0
- package/dist/{chunk-LQZCSHN5.js → chunk-AQ5RJFM6.js} +2 -2
- package/dist/{chunk-N7S3GNUP.js → chunk-FLJAKWXL.js} +2 -2
- package/dist/{chunk-PINGOK2F.js → chunk-HFCZFWSH.js} +27 -48
- package/dist/chunk-HFCZFWSH.js.map +1 -0
- package/dist/{chunk-FK2IVMS3.js → chunk-MPC7LIPC.js} +3 -3
- package/dist/{chunk-YLIYPNMK.js → chunk-REI3AMCZ.js} +2 -2
- package/dist/{chunk-U2FLSHK7.js → chunk-RLTYVS2I.js} +25 -5
- package/dist/chunk-RLTYVS2I.js.map +1 -0
- package/dist/{chunk-F6WP6WEF.js → chunk-SP6S2WMG.js} +2 -2
- package/dist/{chunk-OQ77SE2W.js → chunk-WDO2TRFM.js} +4 -4
- package/dist/elements.js +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +14 -10
- package/dist/interactions.d.ts +1 -1
- package/dist/interactions.js +3 -3
- package/dist/item.d.ts +7 -0
- package/dist/item.js +4 -4
- package/dist/loader.js +2 -2
- package/dist/processing.d.ts +2 -2
- package/dist/processing.js +2 -2
- package/dist/qti-components-jsx.d.ts +178 -151
- package/dist/{qti-condition-expression-B1BYmCcq.d.ts → qti-condition-expression-Dam-RER6.d.ts} +1 -1
- package/dist/{qti-transform-test-DMx816H0.d.ts → qti-transform-test-DoZaWItm.d.ts} +11 -9
- package/dist/qti.context-CejJMlfZ.d.ts +50 -0
- package/dist/test.d.ts +5 -3
- package/dist/test.js +6 -6
- package/dist/transformers.d.ts +1 -1
- package/dist/transformers.js +1 -1
- package/package.json +6 -6
- package/dist/chunk-BPIDAS3T.js +0 -495
- package/dist/chunk-BPIDAS3T.js.map +0 -1
- package/dist/chunk-PINGOK2F.js.map +0 -1
- package/dist/chunk-U2FLSHK7.js.map +0 -1
- package/dist/chunk-Z2SUBRH5.js.map +0 -1
- package/dist/qti.context-B8PSyIWm.d.ts +0 -14
- /package/dist/{chunk-LQZCSHN5.js.map → chunk-AQ5RJFM6.js.map} +0 -0
- /package/dist/{chunk-N7S3GNUP.js.map → chunk-FLJAKWXL.js.map} +0 -0
- /package/dist/{chunk-FK2IVMS3.js.map → chunk-MPC7LIPC.js.map} +0 -0
- /package/dist/{chunk-YLIYPNMK.js.map → chunk-REI3AMCZ.js.map} +0 -0
- /package/dist/{chunk-F6WP6WEF.js.map → chunk-SP6S2WMG.js.map} +0 -0
- /package/dist/{chunk-OQ77SE2W.js.map → chunk-WDO2TRFM.js.map} +0 -0
package/custom-elements.json
CHANGED
|
@@ -27312,12 +27312,64 @@
|
|
|
27312
27312
|
"kind": "javascript-module",
|
|
27313
27313
|
"path": "packages/qti-base/src/context/qti.context.ts",
|
|
27314
27314
|
"declarations": [
|
|
27315
|
+
{
|
|
27316
|
+
"kind": "function",
|
|
27317
|
+
"name": "asSeed",
|
|
27318
|
+
"return": {
|
|
27319
|
+
"type": {
|
|
27320
|
+
"text": "Seed | undefined"
|
|
27321
|
+
}
|
|
27322
|
+
},
|
|
27323
|
+
"parameters": [
|
|
27324
|
+
{
|
|
27325
|
+
"name": "value",
|
|
27326
|
+
"type": {
|
|
27327
|
+
"text": "unknown"
|
|
27328
|
+
}
|
|
27329
|
+
}
|
|
27330
|
+
],
|
|
27331
|
+
"description": "Validates and brands a value as a Seed, returning `undefined` when the\nvalue is missing or not in a usable seed format."
|
|
27332
|
+
},
|
|
27333
|
+
{
|
|
27334
|
+
"kind": "function",
|
|
27335
|
+
"name": "isSeed",
|
|
27336
|
+
"return": {
|
|
27337
|
+
"type": {
|
|
27338
|
+
"text": "value is Seed"
|
|
27339
|
+
}
|
|
27340
|
+
},
|
|
27341
|
+
"parameters": [
|
|
27342
|
+
{
|
|
27343
|
+
"name": "value",
|
|
27344
|
+
"type": {
|
|
27345
|
+
"text": "unknown"
|
|
27346
|
+
}
|
|
27347
|
+
}
|
|
27348
|
+
],
|
|
27349
|
+
"description": "Runtime type guard that narrows an unknown value to a Seed.\nUse this at boundaries (e.g. values coming from XML, a host application or a\nbackend) before treating a string as a seed."
|
|
27350
|
+
},
|
|
27315
27351
|
{
|
|
27316
27352
|
"kind": "variable",
|
|
27317
27353
|
"name": "qtiContext"
|
|
27318
27354
|
}
|
|
27319
27355
|
],
|
|
27320
27356
|
"exports": [
|
|
27357
|
+
{
|
|
27358
|
+
"kind": "js",
|
|
27359
|
+
"name": "asSeed",
|
|
27360
|
+
"declaration": {
|
|
27361
|
+
"name": "asSeed",
|
|
27362
|
+
"module": "packages/qti-base/src/context/qti.context.ts"
|
|
27363
|
+
}
|
|
27364
|
+
},
|
|
27365
|
+
{
|
|
27366
|
+
"kind": "js",
|
|
27367
|
+
"name": "isSeed",
|
|
27368
|
+
"declaration": {
|
|
27369
|
+
"name": "isSeed",
|
|
27370
|
+
"module": "packages/qti-base/src/context/qti.context.ts"
|
|
27371
|
+
}
|
|
27372
|
+
},
|
|
27321
27373
|
{
|
|
27322
27374
|
"kind": "js",
|
|
27323
27375
|
"name": "qtiContext",
|
|
@@ -30457,6 +30509,15 @@
|
|
|
30457
30509
|
},
|
|
30458
30510
|
"default": "null",
|
|
30459
30511
|
"description": "The raw XML string"
|
|
30512
|
+
},
|
|
30513
|
+
{
|
|
30514
|
+
"kind": "field",
|
|
30515
|
+
"name": "qtiContext",
|
|
30516
|
+
"type": {
|
|
30517
|
+
"text": "QtiContext"
|
|
30518
|
+
},
|
|
30519
|
+
"privacy": "protected",
|
|
30520
|
+
"default": "{ QTI_CONTEXT: { testIdentifier: '', candidateIdentifier: '', environmentIdentifier: 'default' } }"
|
|
30460
30521
|
}
|
|
30461
30522
|
],
|
|
30462
30523
|
"attributes": [
|
|
@@ -31155,6 +31216,16 @@
|
|
|
31155
31216
|
},
|
|
31156
31217
|
"privacy": "public",
|
|
31157
31218
|
"default": "{}"
|
|
31219
|
+
},
|
|
31220
|
+
{
|
|
31221
|
+
"kind": "field",
|
|
31222
|
+
"name": "qtiContext",
|
|
31223
|
+
"type": {
|
|
31224
|
+
"text": "QtiContext"
|
|
31225
|
+
},
|
|
31226
|
+
"privacy": "public",
|
|
31227
|
+
"default": "{ QTI_CONTEXT: { testIdentifier: '', candidateIdentifier: '', environmentIdentifier: 'default' } }",
|
|
31228
|
+
"description": "Provided so that descendants (e.g. `<item-container>`) can read the QTI runtime\ncontext for standalone item delivery, including the optional shuffle `seed`."
|
|
31158
31229
|
}
|
|
31159
31230
|
],
|
|
31160
31231
|
"superclass": {
|
|
@@ -41205,7 +41276,17 @@
|
|
|
41205
41276
|
"kind": "class",
|
|
41206
41277
|
"description": "`<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n\nThis component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n\n### Example Usage\n\nMinimal example including navigation:\n\n```html\n<qti-test>\n <test-navigation>\n <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n <nav class=\"flex\">\n <test-prev></test-prev>\n <test-next></test-next>\n </nav>\n </test-navigation>\n</qti-test>\n```\n\nUse the following file structure\nA qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.\n\n```plaintext\nRoot/\n├── index.html\n└── /assets/api/examples/\n ├── assessmenttest.xml\n └── imsmanifest.xml\n\n```\n\n### Test components\n\nUse test components inside the qti-test component for added functionality.\n### Test next\n`<test-next> | TestNext`\n\n### Test prev\n\n`<test-prev> | TestPrev`\n### Test components\n\nYou can use normal class names to style the elements.\nAnd you can use the `test-prev` and `test-next` elements to navigate through the test.",
|
|
41207
41278
|
"name": "QtiTest",
|
|
41208
|
-
"members": [
|
|
41279
|
+
"members": [
|
|
41280
|
+
{
|
|
41281
|
+
"kind": "field",
|
|
41282
|
+
"name": "configContext",
|
|
41283
|
+
"type": {
|
|
41284
|
+
"text": "ConfigContext"
|
|
41285
|
+
},
|
|
41286
|
+
"privacy": "public",
|
|
41287
|
+
"default": "{}"
|
|
41288
|
+
}
|
|
41289
|
+
],
|
|
41209
41290
|
"events": [
|
|
41210
41291
|
{
|
|
41211
41292
|
"name": "qti-test-connected",
|
|
@@ -41399,6 +41480,15 @@
|
|
|
41399
41480
|
"name": "handleTestXMLChange",
|
|
41400
41481
|
"privacy": "protected"
|
|
41401
41482
|
},
|
|
41483
|
+
{
|
|
41484
|
+
"kind": "field",
|
|
41485
|
+
"name": "qtiContext",
|
|
41486
|
+
"type": {
|
|
41487
|
+
"text": "QtiContext"
|
|
41488
|
+
},
|
|
41489
|
+
"privacy": "protected",
|
|
41490
|
+
"default": "{ QTI_CONTEXT: { testIdentifier: '', candidateIdentifier: '', environmentIdentifier: 'default' } }"
|
|
41491
|
+
},
|
|
41402
41492
|
{
|
|
41403
41493
|
"kind": "field",
|
|
41404
41494
|
"name": "testDoc",
|
package/dist/base.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ export { C as ComputedContext, a as ComputedItem, I as INITIAL_SESSION_CONTEXT,
|
|
|
3
3
|
export { C as ConfigContext, a as CorrectResponseMode, c as configContext } from './config.context-BjZ2bZSY.js';
|
|
4
4
|
import { I as ItemContext } from './item.context-CkUeDcaO.js';
|
|
5
5
|
export { i as itemContextVariables } from './item.context-CkUeDcaO.js';
|
|
6
|
-
export { Q as QtiContext, a as QtiContextType, q as qtiContext } from './qti.context-
|
|
6
|
+
export { Q as QtiContext, a as QtiContextType, S as Seed, b as asSeed, i as isSeed, q as qtiContext } from './qti.context-CejJMlfZ.js';
|
|
7
7
|
export { I as INITIAL_TEST_CONTEXT, T as TestContext, t as testContext } from './test.context-CByZZjkR.js';
|
|
8
8
|
export { C as Correctness, I as IInteraction, a as Interaction } from './interaction-Bgzlw7Iu.js';
|
|
9
9
|
export { Q as QtiFeedback, a as QtiVariableDeclaration } from './qti-feedback-ChmXhZuf.js';
|
|
10
|
-
export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-
|
|
10
|
+
export { Q as QtiConditionExpression, a as QtiExpression, b as QtiExpressionBase } from './qti-condition-expression-Dam-RER6.js';
|
|
11
11
|
import { B as BaseType } from './variables-CMYcDbyW.js';
|
|
12
12
|
export { C as Calculate, a as Cardinality, M as Multiple, O as Ordered, b as OutcomeVariable, Q as QtiAreaMapEntry, c as QtiAreaMapping, d as QtiMapEntry, e as QtiMapping, R as ResponseInteraction, f as ResponseVariable, T as TemplateVariable, V as VariableDeclaration, g as VariableValue, h as areaShape, i as directedPair, j as float, k as integer } from './variables-CMYcDbyW.js';
|
|
13
13
|
export { Q as QtiRuleBase, a as QtiRuleElement } from './qti-rule-base-ajOnfGXY.js';
|
package/dist/base.js
CHANGED
|
@@ -10,18 +10,20 @@ import {
|
|
|
10
10
|
QtiRuleElement,
|
|
11
11
|
QtiVariableDeclaration,
|
|
12
12
|
ScoringHelper,
|
|
13
|
+
asSeed,
|
|
13
14
|
computedContext,
|
|
14
15
|
computedItemContext,
|
|
15
16
|
configContext,
|
|
16
17
|
convertNumberToUniversalFormat,
|
|
17
18
|
decimalSeparator,
|
|
19
|
+
isSeed,
|
|
18
20
|
itemContext,
|
|
19
21
|
itemContextVariables,
|
|
20
22
|
qtiContext,
|
|
21
23
|
removeDoubleSlashes,
|
|
22
24
|
sessionContext,
|
|
23
25
|
testContext
|
|
24
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-3XV26R5M.js";
|
|
25
27
|
import "./chunk-QXBXORM3.js";
|
|
26
28
|
export {
|
|
27
29
|
Correctness,
|
|
@@ -35,11 +37,13 @@ export {
|
|
|
35
37
|
QtiRuleElement,
|
|
36
38
|
QtiVariableDeclaration,
|
|
37
39
|
ScoringHelper,
|
|
40
|
+
asSeed,
|
|
38
41
|
computedContext,
|
|
39
42
|
computedItemContext,
|
|
40
43
|
configContext,
|
|
41
44
|
convertNumberToUniversalFormat,
|
|
42
45
|
decimalSeparator,
|
|
46
|
+
isSeed,
|
|
43
47
|
itemContext,
|
|
44
48
|
itemContextVariables,
|
|
45
49
|
qtiContext,
|