@citolab/qti-components 10.0.0-next.1 → 10.0.0-next.10
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 +1970 -364
- package/dist/base.d.ts +10 -10
- package/dist/base.js +7 -1
- package/dist/{chunk-RU6332MD.js → chunk-3TUGZHKB.js} +3 -3
- package/dist/{chunk-RSMYGGQK.js → chunk-AHULN3UB.js} +390 -243
- package/dist/chunk-AHULN3UB.js.map +1 -0
- package/dist/{chunk-35WWWFS6.js → chunk-CQ3WU35R.js} +2 -2
- package/dist/{chunk-6K3QWJHH.js → chunk-LCGPLQLE.js} +40 -4
- package/dist/chunk-LCGPLQLE.js.map +1 -0
- package/dist/{chunk-MI7774NV.js → chunk-M7X6TWSX.js} +2 -2
- package/dist/{chunk-FD4AB6TM.js → chunk-Q3C7XFVS.js} +2 -2
- package/dist/chunk-QVZLJY75.js +7 -0
- package/dist/chunk-QVZLJY75.js.map +1 -0
- package/dist/{chunk-CKJ7M7JQ.js → chunk-RRMCWCSA.js} +2287 -2061
- package/dist/chunk-RRMCWCSA.js.map +1 -0
- package/dist/{chunk-GBZNFSFY.js → chunk-RWMY7KRT.js} +2 -2
- package/dist/{chunk-TDWJ6WZA.js → chunk-T7YSBBAA.js} +37 -1
- package/dist/chunk-T7YSBBAA.js.map +1 -0
- package/dist/{chunk-YYIS6FDP.js → chunk-WPILS3CW.js} +2 -2
- package/dist/{chunk-6U3YPHXU.js → chunk-YOCOLMGB.js} +40 -5
- package/dist/{chunk-6U3YPHXU.js.map → chunk-YOCOLMGB.js.map} +1 -1
- package/dist/{chunk-FWR6HZQS.js → chunk-YYZCTIZY.js} +6 -6
- package/dist/{computed.types.d-gJrBeUMG.d.ts → computed.types.d-IXACuBr7.d.ts} +10 -1
- package/dist/corrections.d.ts +9 -9
- package/dist/corrections.js +8 -8
- package/dist/elements.d.ts +2 -2
- package/dist/elements.js +3 -3
- package/dist/index.d.ts +11 -11
- package/dist/index.js +37 -19
- package/dist/interactions.d.ts +4 -4
- package/dist/interactions.js +7 -3
- package/dist/item.css +2 -1
- package/dist/item.d.ts +4 -4
- package/dist/item.js +4 -4
- package/dist/{item.types.d-B55QkJ92.d.ts → item.types.d-DuVR0ZVK.d.ts} +7 -1
- package/dist/loader.d.ts +2 -2
- package/dist/processing.d.ts +10 -3
- package/dist/processing.js +3 -3
- package/dist/qti-components-jsx.d.ts +928 -757
- package/dist/{qti-condition-expression.d-VJH6cWxf.d.ts → qti-condition-expression.d-B-T1NNl0.d.ts} +1 -1
- package/dist/{qti-expression.d-BPxEp8HU.d.ts → qti-expression.d-B-Cfbqlb.d.ts} +1 -1
- package/dist/{qti-feedback.d-wMYNVkkj.d.ts → qti-feedback.d-DbzPSJuK.d.ts} +1 -1
- package/dist/{qti-item.d-DgC1AQbY.d.ts → qti-item.d-B1gffYCL.d.ts} +1 -1
- package/dist/{qti-test.d-DkpBNcsv.d.ts → qti-test.d-D-RYWphm.d.ts} +182 -99
- package/dist/{qti-text-entry-interaction.d-q8u5BiVK.d.ts → qti-text-entry-interaction.d-utFyp1DH.d.ts} +28 -18
- package/dist/{interaction.d-g6XG0T0Z.d.ts → record.d-wB9uYs-j.d.ts} +34 -2
- package/dist/{session.context.d-D5080LVx.d.ts → session.context.d-DW09Lrie.d.ts} +7 -1
- package/dist/test.d.ts +117 -9
- package/dist/test.js +19 -11
- package/package.json +9 -9
- package/dist/chunk-6K3QWJHH.js.map +0 -1
- package/dist/chunk-CKJ7M7JQ.js.map +0 -1
- package/dist/chunk-RSMYGGQK.js.map +0 -1
- package/dist/chunk-TDWJ6WZA.js.map +0 -1
- package/dist/chunk-ZP6QQYSU.js +0 -7
- package/dist/chunk-ZP6QQYSU.js.map +0 -1
- /package/dist/{chunk-RU6332MD.js.map → chunk-3TUGZHKB.js.map} +0 -0
- /package/dist/{chunk-35WWWFS6.js.map → chunk-CQ3WU35R.js.map} +0 -0
- /package/dist/{chunk-MI7774NV.js.map → chunk-M7X6TWSX.js.map} +0 -0
- /package/dist/{chunk-FD4AB6TM.js.map → chunk-Q3C7XFVS.js.map} +0 -0
- /package/dist/{chunk-GBZNFSFY.js.map → chunk-RWMY7KRT.js.map} +0 -0
- /package/dist/{chunk-YYIS6FDP.js.map → chunk-WPILS3CW.js.map} +0 -0
- /package/dist/{chunk-FWR6HZQS.js.map → chunk-YYZCTIZY.js.map} +0 -0
package/dist/test.d.ts
CHANGED
|
@@ -1,19 +1,116 @@
|
|
|
1
|
-
import { R as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-
|
|
2
|
-
export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as
|
|
1
|
+
import { u as TestItemToSpeech, F as TestTtsNext, G as TestTtsPause, H as TestTtsPick, J as TestTtsPlay, K as TestTtsPrev, L as TestTtsResume, M as TestTtsStop, q as TestCheckItem, T as TestBookmark, y as TestPrintContext, z as TestPrintVariables, A as TestScoringButtons, B as TestScoringFeedback, D as TestStamp, E as TestSubmit, N as TestView, O as TestViewToggle, R as QtiTestPluginState$1, S as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-D-RYWphm.js';
|
|
2
|
+
export { b as ItemRefTemplateModel, Q as QtiAssessmentItemRef, c as QtiAssessmentSection, d as QtiAssessmentTest, e as QtiBranchRule, f as QtiItemSessionControl, g as QtiNumberPresented, h as QtiNumberSelected, i as QtiOutcomeProcessing, j as QtiOutcomeProcessingProcessor, k as QtiPreCondition, l as QtiTest, m as QtiTestFeedback, n as QtiTestPart, o as QtiTestVariables, p as QtiTestVariablesExpression, r as TestContainer, s as TestEndAttempt, t as TestItemLink, v as TestNavigation, w as TestNext, x as TestPrev, C as TestSectionLink, P as bookmarkedItems } from './qti-test.d-D-RYWphm.js';
|
|
3
|
+
import { C as ComputedContext } from './computed.types.d-IXACuBr7.js';
|
|
3
4
|
import { LitElement } from 'lit';
|
|
4
|
-
import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-
|
|
5
|
-
import { S as SessionContext } from './session.context.d-
|
|
5
|
+
import { b as ItemContext, c as OutcomeVariable, V as VariableDeclaration } from './item.types.d-DuVR0ZVK.js';
|
|
6
|
+
import { S as SessionContext } from './session.context.d-DW09Lrie.js';
|
|
6
7
|
import { C as ConfigContext } from './config.context.d-BvU9r-Mg.js';
|
|
7
|
-
import { T as TestContext } from './qti-expression.d-
|
|
8
|
+
import { T as TestContext } from './qti-expression.d-B-Cfbqlb.js';
|
|
8
9
|
import './qti-transform-test.d-BL7GGFJj.js';
|
|
9
|
-
import './computed.types.d-gJrBeUMG.js';
|
|
10
10
|
import './elements.js';
|
|
11
11
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
12
|
-
import './qti-feedback.d-
|
|
12
|
+
import './qti-feedback.d-DbzPSJuK.js';
|
|
13
13
|
import './qti-rule-base.d-Bdzg8eGH.js';
|
|
14
14
|
import './qti.context.d-CejJMlfZ.js';
|
|
15
15
|
import '@heximal/templates';
|
|
16
16
|
|
|
17
|
+
/** The text-to-speech elements, for registering them yourself (e.g. in a scoped registry). Defines nothing. */
|
|
18
|
+
declare const ttsElements: readonly [{
|
|
19
|
+
readonly tag: "test-item-to-speech";
|
|
20
|
+
readonly ctor: typeof TestItemToSpeech;
|
|
21
|
+
}, {
|
|
22
|
+
readonly tag: "test-tts-next";
|
|
23
|
+
readonly ctor: typeof TestTtsNext;
|
|
24
|
+
}, {
|
|
25
|
+
readonly tag: "test-tts-pause";
|
|
26
|
+
readonly ctor: typeof TestTtsPause;
|
|
27
|
+
}, {
|
|
28
|
+
readonly tag: "test-tts-pick";
|
|
29
|
+
readonly ctor: typeof TestTtsPick;
|
|
30
|
+
}, {
|
|
31
|
+
readonly tag: "test-tts-play";
|
|
32
|
+
readonly ctor: typeof TestTtsPlay;
|
|
33
|
+
}, {
|
|
34
|
+
readonly tag: "test-tts-prev";
|
|
35
|
+
readonly ctor: typeof TestTtsPrev;
|
|
36
|
+
}, {
|
|
37
|
+
readonly tag: "test-tts-resume";
|
|
38
|
+
readonly ctor: typeof TestTtsResume;
|
|
39
|
+
}, {
|
|
40
|
+
readonly tag: "test-tts-stop";
|
|
41
|
+
readonly ctor: typeof TestTtsStop;
|
|
42
|
+
}];
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Every test plugin's elements in one list. `qti-test` registers them with the rest of its
|
|
46
|
+
* elements, and a scoped registry can use the list directly. Defines nothing.
|
|
47
|
+
*
|
|
48
|
+
* A plugin is the set of files listed for it in `plugin-boundary.spec.ts` (`PLUGINS`); this file is
|
|
49
|
+
* the one place that names them all.
|
|
50
|
+
*/
|
|
51
|
+
declare const pluginElements: readonly [{
|
|
52
|
+
readonly tag: "test-check-item";
|
|
53
|
+
readonly ctor: typeof TestCheckItem;
|
|
54
|
+
}, {
|
|
55
|
+
readonly tag: "test-bookmark";
|
|
56
|
+
readonly ctor: typeof TestBookmark;
|
|
57
|
+
}, {
|
|
58
|
+
readonly tag: "test-print-context";
|
|
59
|
+
readonly ctor: typeof TestPrintContext;
|
|
60
|
+
}, {
|
|
61
|
+
readonly tag: "test-print-item-variables";
|
|
62
|
+
readonly ctor: typeof TestPrintVariables;
|
|
63
|
+
}, {
|
|
64
|
+
readonly tag: "test-scoring-buttons";
|
|
65
|
+
readonly ctor: typeof TestScoringButtons;
|
|
66
|
+
}, {
|
|
67
|
+
readonly tag: "test-scoring-feedback";
|
|
68
|
+
readonly ctor: typeof TestScoringFeedback;
|
|
69
|
+
}, {
|
|
70
|
+
readonly tag: "test-stamp";
|
|
71
|
+
readonly ctor: typeof TestStamp;
|
|
72
|
+
}, {
|
|
73
|
+
readonly tag: "test-submit";
|
|
74
|
+
readonly ctor: typeof TestSubmit;
|
|
75
|
+
}, {
|
|
76
|
+
readonly tag: "test-view";
|
|
77
|
+
readonly ctor: typeof TestView;
|
|
78
|
+
}, {
|
|
79
|
+
readonly tag: "test-view-toggle";
|
|
80
|
+
readonly ctor: typeof TestViewToggle;
|
|
81
|
+
}, {
|
|
82
|
+
readonly tag: "test-item-to-speech";
|
|
83
|
+
readonly ctor: typeof TestItemToSpeech;
|
|
84
|
+
}, {
|
|
85
|
+
readonly tag: "test-tts-next";
|
|
86
|
+
readonly ctor: typeof TestTtsNext;
|
|
87
|
+
}, {
|
|
88
|
+
readonly tag: "test-tts-pause";
|
|
89
|
+
readonly ctor: typeof TestTtsPause;
|
|
90
|
+
}, {
|
|
91
|
+
readonly tag: "test-tts-pick";
|
|
92
|
+
readonly ctor: typeof TestTtsPick;
|
|
93
|
+
}, {
|
|
94
|
+
readonly tag: "test-tts-play";
|
|
95
|
+
readonly ctor: typeof TestTtsPlay;
|
|
96
|
+
}, {
|
|
97
|
+
readonly tag: "test-tts-prev";
|
|
98
|
+
readonly ctor: typeof TestTtsPrev;
|
|
99
|
+
}, {
|
|
100
|
+
readonly tag: "test-tts-resume";
|
|
101
|
+
readonly ctor: typeof TestTtsResume;
|
|
102
|
+
}, {
|
|
103
|
+
readonly tag: "test-tts-stop";
|
|
104
|
+
readonly ctor: typeof TestTtsStop;
|
|
105
|
+
}];
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* A plugin's entry in the state, typed through `QtiTestPluginState`, or `undefined` before the
|
|
109
|
+
* plugin has stored anything. Read it from `computedContext`; write it by dispatching
|
|
110
|
+
* `cito-test-update-plugin-state` (`dispatchPublic`).
|
|
111
|
+
*/
|
|
112
|
+
declare const pluginState: <K extends keyof QtiTestPluginState$1 & string>(context: Pick<ComputedContext, "plugins"> | undefined, plugin: K) => QtiTestPluginState$1[K] | undefined;
|
|
113
|
+
|
|
17
114
|
interface IQtiTest extends LitElement, ITestNavigationMixin, ITestProcessingMixin, ITestStateMixin, IMyQtiTest {
|
|
18
115
|
}
|
|
19
116
|
interface IMyQtiTest {
|
|
@@ -68,12 +165,23 @@ interface QtiTestStateValue {
|
|
|
68
165
|
identifier: string;
|
|
69
166
|
value: string | string[] | null;
|
|
70
167
|
}
|
|
71
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* What each plugin keeps in the state, by plugin name. Empty here: a plugin adds its own entry by
|
|
170
|
+
* augmenting this interface (`declare module` on the module that declares it, with
|
|
171
|
+
* `interface QtiTestPluginState { bookmarks: string[] }`), and reads it with
|
|
172
|
+
* `pluginState(computedContext, 'bookmarks')`. The test never reads an entry; it
|
|
173
|
+
* stores and restores it, so a value must survive `JSON.stringify`.
|
|
174
|
+
*/
|
|
175
|
+
interface QtiTestPluginState {
|
|
176
|
+
}
|
|
177
|
+
/** Where the candidate is, and what plugins keep. */
|
|
72
178
|
interface QtiTestStateSession {
|
|
179
|
+
/** Plugin entries by plugin name. Entries of plugins that are not loaded are kept as they are. */
|
|
180
|
+
plugins?: Partial<QtiTestPluginState> & Record<string, unknown>;
|
|
73
181
|
navPartId?: string | null;
|
|
74
182
|
navSectionId?: string | null;
|
|
75
183
|
navItemRefId?: string | null;
|
|
76
184
|
}
|
|
77
185
|
declare const QTI_TEST_STATE_VERSION = 1;
|
|
78
186
|
|
|
79
|
-
export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue };
|
|
187
|
+
export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, QTI_TEST_STATE_VERSION, type QtiTestPluginState, type QtiTestState, type QtiTestStateItem, type QtiTestStateSession, type QtiTestStateValue, TestBookmark, TestCheckItem, TestItemToSpeech, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
|
package/dist/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-WPILS3CW.js";
|
|
2
2
|
import {
|
|
3
3
|
QTI_TEST_STATE_VERSION,
|
|
4
4
|
QtiAssessmentItemRef,
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
QtiAssessmentTest,
|
|
7
7
|
QtiBranchRule,
|
|
8
8
|
QtiItemSessionControl,
|
|
9
|
+
QtiNumberPresented,
|
|
9
10
|
QtiNumberSelected,
|
|
10
11
|
QtiOutcomeProcessing,
|
|
11
12
|
QtiOutcomeProcessingProcessor,
|
|
@@ -15,6 +16,7 @@ import {
|
|
|
15
16
|
QtiTestPart,
|
|
16
17
|
QtiTestVariables,
|
|
17
18
|
QtiTestVariablesExpression,
|
|
19
|
+
TestBookmark,
|
|
18
20
|
TestCheckItem,
|
|
19
21
|
TestContainer,
|
|
20
22
|
TestEndAttempt,
|
|
@@ -22,15 +24,14 @@ import {
|
|
|
22
24
|
TestItemToSpeech,
|
|
23
25
|
TestNavigation,
|
|
24
26
|
TestNext,
|
|
25
|
-
TestPagingButtonsStamp,
|
|
26
27
|
TestPrev,
|
|
27
28
|
TestPrintContext,
|
|
28
29
|
TestPrintVariables,
|
|
29
30
|
TestScoringButtons,
|
|
30
31
|
TestScoringFeedback,
|
|
31
|
-
TestSectionButtonsStamp,
|
|
32
32
|
TestSectionLink,
|
|
33
33
|
TestStamp,
|
|
34
|
+
TestSubmit,
|
|
34
35
|
TestTtsNext,
|
|
35
36
|
TestTtsPause,
|
|
36
37
|
TestTtsPick,
|
|
@@ -40,13 +41,16 @@ import {
|
|
|
40
41
|
TestTtsStop,
|
|
41
42
|
TestView,
|
|
42
43
|
TestViewToggle,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
bookmarkedItems,
|
|
45
|
+
pluginElements,
|
|
46
|
+
pluginState,
|
|
47
|
+
ttsElements
|
|
48
|
+
} from "./chunk-RRMCWCSA.js";
|
|
49
|
+
import "./chunk-YOCOLMGB.js";
|
|
50
|
+
import "./chunk-QVZLJY75.js";
|
|
47
51
|
import "./chunk-4DB4SC5K.js";
|
|
48
52
|
import "./chunk-TLAVOBEM.js";
|
|
49
|
-
import "./chunk-
|
|
53
|
+
import "./chunk-T7YSBBAA.js";
|
|
50
54
|
export {
|
|
51
55
|
QTI_TEST_STATE_VERSION,
|
|
52
56
|
QtiAssessmentItemRef,
|
|
@@ -54,6 +58,7 @@ export {
|
|
|
54
58
|
QtiAssessmentTest,
|
|
55
59
|
QtiBranchRule,
|
|
56
60
|
QtiItemSessionControl,
|
|
61
|
+
QtiNumberPresented,
|
|
57
62
|
QtiNumberSelected,
|
|
58
63
|
QtiOutcomeProcessing,
|
|
59
64
|
QtiOutcomeProcessingProcessor,
|
|
@@ -63,6 +68,7 @@ export {
|
|
|
63
68
|
QtiTestPart,
|
|
64
69
|
QtiTestVariables,
|
|
65
70
|
QtiTestVariablesExpression,
|
|
71
|
+
TestBookmark,
|
|
66
72
|
TestCheckItem,
|
|
67
73
|
TestContainer,
|
|
68
74
|
TestEndAttempt,
|
|
@@ -70,15 +76,14 @@ export {
|
|
|
70
76
|
TestItemToSpeech,
|
|
71
77
|
TestNavigation,
|
|
72
78
|
TestNext,
|
|
73
|
-
TestPagingButtonsStamp,
|
|
74
79
|
TestPrev,
|
|
75
80
|
TestPrintContext,
|
|
76
81
|
TestPrintVariables,
|
|
77
82
|
TestScoringButtons,
|
|
78
83
|
TestScoringFeedback,
|
|
79
|
-
TestSectionButtonsStamp,
|
|
80
84
|
TestSectionLink,
|
|
81
85
|
TestStamp,
|
|
86
|
+
TestSubmit,
|
|
82
87
|
TestTtsNext,
|
|
83
88
|
TestTtsPause,
|
|
84
89
|
TestTtsPick,
|
|
@@ -88,6 +93,9 @@ export {
|
|
|
88
93
|
TestTtsStop,
|
|
89
94
|
TestView,
|
|
90
95
|
TestViewToggle,
|
|
91
|
-
|
|
96
|
+
bookmarkedItems,
|
|
97
|
+
pluginElements,
|
|
98
|
+
pluginState,
|
|
99
|
+
ttsElements
|
|
92
100
|
};
|
|
93
101
|
//# sourceMappingURL=test.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/qti-components",
|
|
3
3
|
"description": "QTI component utilities",
|
|
4
|
-
"version": "10.0.0-next.
|
|
4
|
+
"version": "10.0.0-next.10",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@heximal/templates": "^0.1.5",
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
"lit-html": "^3.3.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@qti-components/base": "^2.
|
|
14
|
-
"@qti-components/corrections": "^0.4.1-next.
|
|
15
|
-
"@qti-components/elements": "^1.10.0-next.
|
|
16
|
-
"@qti-components/interactions": "^1.10.5-next.
|
|
17
|
-
"@qti-components/item": "^1.5.1-next.
|
|
13
|
+
"@qti-components/base": "^2.5.0-next.2",
|
|
14
|
+
"@qti-components/corrections": "^0.4.1-next.4",
|
|
15
|
+
"@qti-components/elements": "^1.10.0-next.3",
|
|
16
|
+
"@qti-components/interactions": "^1.10.5-next.3",
|
|
17
|
+
"@qti-components/item": "^1.5.1-next.3",
|
|
18
18
|
"@qti-components/loader": "^1.3.4-next.0",
|
|
19
|
-
"@qti-components/processing": "^1.6.1-next.
|
|
20
|
-
"@qti-components/test": "^
|
|
21
|
-
"@qti-components/theme": "^2.
|
|
19
|
+
"@qti-components/processing": "^1.6.1-next.2",
|
|
20
|
+
"@qti-components/test": "^2.0.0-next.8",
|
|
21
|
+
"@qti-components/theme": "^2.3.0-next.1",
|
|
22
22
|
"@qti-components/transformers": "^1.7.3"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|