@citolab/qti-components 10.0.0-next.15 → 10.0.0-next.17
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 +1503 -2931
- package/dist/base.d.ts +37 -11
- package/dist/base.js +8 -1
- package/dist/{chunk-G2EIC7H2.js → chunk-7MYZHZWV.js} +955 -364
- package/dist/chunk-7MYZHZWV.js.map +1 -0
- package/dist/chunk-DJ7PB252.js +7 -0
- package/dist/chunk-DJ7PB252.js.map +1 -0
- package/dist/{chunk-F553IZPL.js → chunk-J3F3JSCW.js} +2 -2
- package/dist/chunk-J6VX4N7M.js +197 -0
- package/dist/chunk-J6VX4N7M.js.map +1 -0
- package/dist/{chunk-32PI7KWX.js → chunk-L3LBSAGZ.js} +2 -2
- package/dist/{chunk-WIUPAUJV.js → chunk-L7J2ZOJL.js} +2 -2
- package/dist/{chunk-IM5AKPIJ.js → chunk-NZ7ZC4SP.js} +96 -4
- package/dist/chunk-NZ7ZC4SP.js.map +1 -0
- package/dist/{chunk-XY5DHYIH.js → chunk-OG5HIRHE.js} +3 -3
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/{chunk-HT3LSWXL.js → chunk-QLGUI5VG.js} +2 -2
- package/dist/chunk-UCXLDQYA.js +56 -0
- package/dist/chunk-UCXLDQYA.js.map +1 -0
- package/dist/{chunk-5AJZGRWI.js → chunk-UDJ7MHLF.js} +4 -4
- package/dist/chunk-UDJ7MHLF.js.map +1 -0
- package/dist/{chunk-MIQZBDTB.js → chunk-UURHLJVM.js} +107 -1809
- package/dist/chunk-UURHLJVM.js.map +1 -0
- package/dist/{chunk-IWNRQVNW.js → chunk-V5GL7PTC.js} +2 -2
- package/dist/{chunk-QT7WQXCS.js → chunk-WGUQCB2Z.js} +28 -82
- package/dist/chunk-WGUQCB2Z.js.map +1 -0
- package/dist/chunk-WWY2H2YO.js +7 -0
- package/dist/chunk-WWY2H2YO.js.map +1 -0
- package/dist/{chunk-URYYGVTA.js → chunk-ZAHZVBV7.js} +60 -75
- package/dist/chunk-ZAHZVBV7.js.map +1 -0
- package/dist/{computed.types.d-IXACuBr7.d.ts → computed.types.d-D4wskgi0.d.ts} +2 -2
- package/dist/corrections.d.ts +123 -20
- package/dist/corrections.js +11 -11
- package/dist/corrections.js.map +1 -1
- package/dist/elements.d.ts +35 -112
- package/dist/elements.js +8 -5
- package/dist/index.d.ts +18 -14
- package/dist/index.js +29 -63
- package/dist/interactions.d.ts +84 -17
- package/dist/interactions.js +4 -3
- package/dist/item.css +1057 -2383
- package/dist/item.d.ts +6 -4
- package/dist/item.js +5 -4
- package/dist/item.types.d-Zc6ZQDhu.d.ts +25 -0
- package/dist/loader.d.ts +4 -2
- package/dist/loader.js +1 -0
- package/dist/processing.d.ts +4 -3
- package/dist/processing.js +4 -3
- package/dist/public-events.d-3dGip9pd.d.ts +105 -0
- package/dist/qti-components-jsx.d.ts +4058 -4421
- package/dist/{qti-condition-expression.d-B-T1NNl0.d.ts → qti-condition-expression.d-7Kd4LBxn.d.ts} +1 -1
- package/dist/{qti-expression.d-B-Cfbqlb.d.ts → qti-expression.d-iH3w6mqf.d.ts} +2 -1
- package/dist/{qti-feedback.d-GAqMqAt6.d.ts → qti-feedback.d-CT0W-8Gm.d.ts} +2 -2
- package/dist/{qti-item.d-pFcNk0th.d.ts → qti-item.d-CLChmRvB.d.ts} +2 -1
- package/dist/qti-test-state-BAf5AmJ2.d.ts +68 -0
- package/dist/qti-test-state.d-D8Q89RzZ.d.ts +57 -0
- package/dist/{qti-test.d-BjhVQnQy.d.ts → qti-test.d-COzv7YZG.d.ts} +14 -548
- package/dist/{qti-text-entry-interaction.d-DECzpIzi.d.ts → qti-text-entry-interaction.d-DsUyecBC.d.ts} +144 -43
- package/dist/{record.d-CljDLwRz.d.ts → record.d-BfZhFr0L.d.ts} +34 -3
- package/dist/{session.context.d-DW09Lrie.d.ts → session.context.d-9gRdGK4T.d.ts} +2 -2
- package/dist/test-plugin-api.d.ts +134 -0
- package/dist/test-plugin-api.js +19 -0
- package/dist/test-plugin-api.js.map +1 -0
- package/dist/test.d.ts +16 -158
- package/dist/test.js +13 -52
- package/dist/transformers.js +1 -0
- package/dist/{item.types.d-DuVR0ZVK.d.ts → variables.d-DWHlTszN.d.ts} +1 -23
- package/package.json +13 -9
- package/dist/chunk-5AJZGRWI.js.map +0 -1
- package/dist/chunk-G2EIC7H2.js.map +0 -1
- package/dist/chunk-IM5AKPIJ.js.map +0 -1
- package/dist/chunk-MIQZBDTB.js.map +0 -1
- package/dist/chunk-QT7WQXCS.js.map +0 -1
- package/dist/chunk-RNLSNH4N.js +0 -7
- package/dist/chunk-RNLSNH4N.js.map +0 -1
- package/dist/chunk-URYYGVTA.js.map +0 -1
- /package/dist/{chunk-F553IZPL.js.map → chunk-J3F3JSCW.js.map} +0 -0
- /package/dist/{chunk-32PI7KWX.js.map → chunk-L3LBSAGZ.js.map} +0 -0
- /package/dist/{chunk-WIUPAUJV.js.map → chunk-L7J2ZOJL.js.map} +0 -0
- /package/dist/{chunk-XY5DHYIH.js.map → chunk-OG5HIRHE.js.map} +0 -0
- /package/dist/{chunk-HT3LSWXL.js.map → chunk-QLGUI5VG.js.map} +0 -0
- /package/dist/{chunk-IWNRQVNW.js.map → chunk-V5GL7PTC.js.map} +0 -0
package/dist/test.d.ts
CHANGED
|
@@ -1,119 +1,34 @@
|
|
|
1
|
-
import { u as
|
|
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,
|
|
3
|
-
|
|
1
|
+
import { u as TestSubmit, v as ItemVariableValue, I as ITestNavigationMixin, a as ITestStateMixin } from './qti-test.d-COzv7YZG.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, T as TestContainer, q as TestEndAttempt, r as TestNavigation, s as TestNext, t as TestPrev } from './qti-test.d-COzv7YZG.js';
|
|
3
|
+
export { Q as QTI_TEST_STATE_VERSION, a as QtiTestPluginState, b as QtiTestState, c as QtiTestStateItem, d as QtiTestStateSession, e as QtiTestStateValue, p as pluginState } from './qti-test-state-BAf5AmJ2.js';
|
|
4
4
|
import { LitElement } from 'lit';
|
|
5
|
-
import { b as
|
|
6
|
-
import { S as SessionContext } from './session.context.d-
|
|
5
|
+
import { b as OutcomeVariable, V as VariableDeclaration } from './variables.d-DWHlTszN.js';
|
|
6
|
+
import { S as SessionContext } from './session.context.d-9gRdGK4T.js';
|
|
7
7
|
import { C as ConfigContext } from './config.context.d-CCqlJXpE.js';
|
|
8
|
-
import {
|
|
8
|
+
import { I as ItemContext } from './item.types.d-Zc6ZQDhu.js';
|
|
9
|
+
import { T as TestContext } from './qti-expression.d-iH3w6mqf.js';
|
|
9
10
|
import './qti-transform-test.d-Bb9vnLzP.js';
|
|
11
|
+
import './computed.types.d-D4wskgi0.js';
|
|
12
|
+
import './public-events.d-3dGip9pd.js';
|
|
10
13
|
import './elements.js';
|
|
11
14
|
import './interaction.interface.d-CvjHM2bi.js';
|
|
12
|
-
import './qti-feedback.d-
|
|
15
|
+
import './qti-feedback.d-CT0W-8Gm.js';
|
|
13
16
|
import './qti-rule-base.d-CeKP0Ooi.js';
|
|
14
17
|
import './qti.context.d-CejJMlfZ.js';
|
|
15
18
|
import '@heximal/templates';
|
|
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
|
-
}];
|
|
19
|
+
import './qti-test-state.d-D8Q89RzZ.js';
|
|
43
20
|
|
|
44
21
|
/**
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
* the one place that names them all.
|
|
22
|
+
* The plugins' `{ tag, ctor }` pairs, so a scoped registry (an item-ref template is stamped into
|
|
23
|
+
* `test-container`'s shadow root) can define them with the rest. `elements.ts` spreads these into
|
|
24
|
+
* `qtiTestElements`; this is the one place that composes the plugins. The other plugins are in
|
|
25
|
+
* `@qti-components/extended`.
|
|
50
26
|
*/
|
|
51
27
|
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-print-state";
|
|
65
|
-
readonly ctor: typeof TestPrintState;
|
|
66
|
-
}, {
|
|
67
|
-
readonly tag: "test-scoring-buttons";
|
|
68
|
-
readonly ctor: typeof TestScoringButtons;
|
|
69
|
-
}, {
|
|
70
|
-
readonly tag: "test-scoring-feedback";
|
|
71
|
-
readonly ctor: typeof TestScoringFeedback;
|
|
72
|
-
}, {
|
|
73
|
-
readonly tag: "test-stamp";
|
|
74
|
-
readonly ctor: typeof TestStamp;
|
|
75
|
-
}, {
|
|
76
28
|
readonly tag: "test-submit";
|
|
77
29
|
readonly ctor: typeof TestSubmit;
|
|
78
|
-
}, {
|
|
79
|
-
readonly tag: "test-view";
|
|
80
|
-
readonly ctor: typeof TestView;
|
|
81
|
-
}, {
|
|
82
|
-
readonly tag: "test-view-toggle";
|
|
83
|
-
readonly ctor: typeof TestViewToggle;
|
|
84
|
-
}, {
|
|
85
|
-
readonly tag: "test-item-to-speech";
|
|
86
|
-
readonly ctor: typeof TestItemToSpeech;
|
|
87
|
-
}, {
|
|
88
|
-
readonly tag: "test-tts-next";
|
|
89
|
-
readonly ctor: typeof TestTtsNext;
|
|
90
|
-
}, {
|
|
91
|
-
readonly tag: "test-tts-pause";
|
|
92
|
-
readonly ctor: typeof TestTtsPause;
|
|
93
|
-
}, {
|
|
94
|
-
readonly tag: "test-tts-pick";
|
|
95
|
-
readonly ctor: typeof TestTtsPick;
|
|
96
|
-
}, {
|
|
97
|
-
readonly tag: "test-tts-play";
|
|
98
|
-
readonly ctor: typeof TestTtsPlay;
|
|
99
|
-
}, {
|
|
100
|
-
readonly tag: "test-tts-prev";
|
|
101
|
-
readonly ctor: typeof TestTtsPrev;
|
|
102
|
-
}, {
|
|
103
|
-
readonly tag: "test-tts-resume";
|
|
104
|
-
readonly ctor: typeof TestTtsResume;
|
|
105
|
-
}, {
|
|
106
|
-
readonly tag: "test-tts-stop";
|
|
107
|
-
readonly ctor: typeof TestTtsStop;
|
|
108
30
|
}];
|
|
109
31
|
|
|
110
|
-
/**
|
|
111
|
-
* A plugin's entry in the state, typed through `QtiTestPluginState`, or `undefined` before the
|
|
112
|
-
* plugin has stored anything. Read it from `computedContext`; write it by dispatching
|
|
113
|
-
* `cito-test-update-plugin-state` (`dispatchPublic`).
|
|
114
|
-
*/
|
|
115
|
-
declare const pluginState: <K extends keyof QtiTestPluginState$1 & string>(context: Pick<ComputedContext, "plugins"> | undefined, plugin: K) => QtiTestPluginState$1[K] | undefined;
|
|
116
|
-
|
|
117
32
|
interface IQtiTest extends LitElement, ITestNavigationMixin, ITestProcessingMixin, ITestStateMixin, IMyQtiTest {
|
|
118
33
|
}
|
|
119
34
|
interface IMyQtiTest {
|
|
@@ -130,61 +45,4 @@ interface ITestProcessingMixin {
|
|
|
130
45
|
outcomeProcessing(): boolean;
|
|
131
46
|
}
|
|
132
47
|
|
|
133
|
-
|
|
134
|
-
* Everything a host needs to persist to resume a candidate's test session, and nothing else.
|
|
135
|
-
*
|
|
136
|
-
* Read it from `qtiTest.state` or the `qti-state-changed` event, store it wherever you like —
|
|
137
|
-
* a database, `localStorage`, `sessionStorage` — and assign it back to `qtiTest.state` to resume.
|
|
138
|
-
*
|
|
139
|
-
* Deliberately not here:
|
|
140
|
-
* - declaration metadata (`baseType`, `cardinality`, `correctResponse`, `mapping`, …): it comes
|
|
141
|
-
* from the item XML on every load, and persisting the answer key with the candidate's data is
|
|
142
|
-
* both bloat and a leak;
|
|
143
|
-
* - `configContext` and `qtiContext`: inputs the host supplies on every load, not session state.
|
|
144
|
-
* The shuffle `seed` in particular must be passed in again, or the restored order changes;
|
|
145
|
-
* - `view`: a role the host decides, not something the candidate produced;
|
|
146
|
-
* - anything computed — scores per section, `done`, `active` — which is rederived from this.
|
|
147
|
-
*/
|
|
148
|
-
interface QtiTestState {
|
|
149
|
-
/** Bumped on any incompatible change to this shape. A state with another version is ignored. */
|
|
150
|
-
version: 1;
|
|
151
|
-
test: {
|
|
152
|
-
items: QtiTestStateItem[];
|
|
153
|
-
/** Test-level outcome values. Only outcomes the test declares are restored. */
|
|
154
|
-
outcomes: QtiTestStateValue[];
|
|
155
|
-
};
|
|
156
|
-
session: QtiTestStateSession;
|
|
157
|
-
}
|
|
158
|
-
interface QtiTestStateItem {
|
|
159
|
-
/** The `qti-assessment-item-ref` identifier. */
|
|
160
|
-
identifier: string;
|
|
161
|
-
variables: (QtiTestStateValue & {
|
|
162
|
-
type?: 'response' | 'outcome' | 'template' | 'context';
|
|
163
|
-
})[];
|
|
164
|
-
/** Opaque per-interaction state keyed by response identifier, e.g. a PCI's `getState()`. */
|
|
165
|
-
state?: Record<string, string | null>;
|
|
166
|
-
}
|
|
167
|
-
interface QtiTestStateValue {
|
|
168
|
-
identifier: string;
|
|
169
|
-
value: string | string[] | null;
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* What each plugin keeps in the state, by plugin name. Empty here: a plugin adds its own entry by
|
|
173
|
-
* augmenting this interface (`declare module` on the module that declares it, with
|
|
174
|
-
* `interface QtiTestPluginState { bookmarks: string[] }`), and reads it with
|
|
175
|
-
* `pluginState(computedContext, 'bookmarks')`. The test never reads an entry; it
|
|
176
|
-
* stores and restores it, so a value must survive `JSON.stringify`.
|
|
177
|
-
*/
|
|
178
|
-
interface QtiTestPluginState {
|
|
179
|
-
}
|
|
180
|
-
/** Where the candidate is, and what plugins keep. */
|
|
181
|
-
interface QtiTestStateSession {
|
|
182
|
-
/** Plugin entries by plugin name. Entries of plugins that are not loaded are kept as they are. */
|
|
183
|
-
plugins?: Partial<QtiTestPluginState> & Record<string, unknown>;
|
|
184
|
-
navPartId?: string | null;
|
|
185
|
-
navSectionId?: string | null;
|
|
186
|
-
navItemRefId?: string | null;
|
|
187
|
-
}
|
|
188
|
-
declare const QTI_TEST_STATE_VERSION = 1;
|
|
189
|
-
|
|
190
|
-
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, TestPrintState, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestStamp, TestSubmit, TestTtsNext, TestTtsPause, TestTtsPick, TestTtsPlay, TestTtsPrev, TestTtsResume, TestTtsStop, TestView, TestViewToggle, pluginElements, pluginState, ttsElements };
|
|
48
|
+
export { type IMyQtiTest, type IQtiTest, ITestNavigationMixin, type ITestProcessingMixin, ITestStateMixin, TestSubmit, pluginElements };
|
package/dist/test.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-QLGUI5VG.js";
|
|
2
|
+
import {
|
|
3
|
+
pluginState
|
|
4
|
+
} from "./chunk-DJ7PB252.js";
|
|
2
5
|
import {
|
|
3
6
|
QTI_TEST_STATE_VERSION,
|
|
4
7
|
QtiAssessmentItemRef,
|
|
@@ -16,42 +19,22 @@ import {
|
|
|
16
19
|
QtiTestPart,
|
|
17
20
|
QtiTestVariables,
|
|
18
21
|
QtiTestVariablesExpression,
|
|
19
|
-
TestBookmark,
|
|
20
|
-
TestCheckItem,
|
|
21
22
|
TestContainer,
|
|
22
23
|
TestEndAttempt,
|
|
23
|
-
TestItemLink,
|
|
24
|
-
TestItemToSpeech,
|
|
25
24
|
TestNavigation,
|
|
26
25
|
TestNext,
|
|
27
26
|
TestPrev,
|
|
28
|
-
TestPrintContext,
|
|
29
|
-
TestPrintState,
|
|
30
|
-
TestPrintVariables,
|
|
31
|
-
TestScoringButtons,
|
|
32
|
-
TestScoringFeedback,
|
|
33
|
-
TestSectionLink,
|
|
34
|
-
TestStamp,
|
|
35
27
|
TestSubmit,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
TestTtsStop,
|
|
43
|
-
TestView,
|
|
44
|
-
TestViewToggle,
|
|
45
|
-
bookmarkedItems,
|
|
46
|
-
pluginElements,
|
|
47
|
-
pluginState,
|
|
48
|
-
ttsElements
|
|
49
|
-
} from "./chunk-MIQZBDTB.js";
|
|
50
|
-
import "./chunk-QT7WQXCS.js";
|
|
51
|
-
import "./chunk-RNLSNH4N.js";
|
|
28
|
+
pluginElements
|
|
29
|
+
} from "./chunk-UURHLJVM.js";
|
|
30
|
+
import "./chunk-J6VX4N7M.js";
|
|
31
|
+
import "./chunk-WGUQCB2Z.js";
|
|
32
|
+
import "./chunk-UCXLDQYA.js";
|
|
33
|
+
import "./chunk-WWY2H2YO.js";
|
|
52
34
|
import "./chunk-4DB4SC5K.js";
|
|
53
35
|
import "./chunk-LORYM4U2.js";
|
|
54
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-NZ7ZC4SP.js";
|
|
37
|
+
import "./chunk-PZ5AY32C.js";
|
|
55
38
|
export {
|
|
56
39
|
QTI_TEST_STATE_VERSION,
|
|
57
40
|
QtiAssessmentItemRef,
|
|
@@ -69,35 +52,13 @@ export {
|
|
|
69
52
|
QtiTestPart,
|
|
70
53
|
QtiTestVariables,
|
|
71
54
|
QtiTestVariablesExpression,
|
|
72
|
-
TestBookmark,
|
|
73
|
-
TestCheckItem,
|
|
74
55
|
TestContainer,
|
|
75
56
|
TestEndAttempt,
|
|
76
|
-
TestItemLink,
|
|
77
|
-
TestItemToSpeech,
|
|
78
57
|
TestNavigation,
|
|
79
58
|
TestNext,
|
|
80
59
|
TestPrev,
|
|
81
|
-
TestPrintContext,
|
|
82
|
-
TestPrintState,
|
|
83
|
-
TestPrintVariables,
|
|
84
|
-
TestScoringButtons,
|
|
85
|
-
TestScoringFeedback,
|
|
86
|
-
TestSectionLink,
|
|
87
|
-
TestStamp,
|
|
88
60
|
TestSubmit,
|
|
89
|
-
TestTtsNext,
|
|
90
|
-
TestTtsPause,
|
|
91
|
-
TestTtsPick,
|
|
92
|
-
TestTtsPlay,
|
|
93
|
-
TestTtsPrev,
|
|
94
|
-
TestTtsResume,
|
|
95
|
-
TestTtsStop,
|
|
96
|
-
TestView,
|
|
97
|
-
TestViewToggle,
|
|
98
|
-
bookmarkedItems,
|
|
99
61
|
pluginElements,
|
|
100
|
-
pluginState
|
|
101
|
-
ttsElements
|
|
62
|
+
pluginState
|
|
102
63
|
};
|
|
103
64
|
//# sourceMappingURL=test.js.map
|
package/dist/transformers.js
CHANGED
|
@@ -89,26 +89,4 @@ interface TemplateVariable extends VariableDeclaration<string | string[] | numbe
|
|
|
89
89
|
paramVariable?: boolean;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
|
|
93
|
-
identifier?: string;
|
|
94
|
-
href?: string;
|
|
95
|
-
variables?: ReadonlyArray<VariableDeclaration<string | string[] | null>>;
|
|
96
|
-
/**
|
|
97
|
-
* Optional per-interaction opaque state, keyed by responseIdentifier.
|
|
98
|
-
* Used for interactions that support state save/restore (e.g. PCI).
|
|
99
|
-
*/
|
|
100
|
-
state?: Record<string, string | null>;
|
|
101
|
-
/** The item is shown for reading only. Interactions follow it; see `qti-assessment-item`'s `readonly`. */
|
|
102
|
-
readonly?: boolean;
|
|
103
|
-
/** The item is locked, for example after it was submitted. Interactions follow it; see `qti-assessment-item`'s `disabled`. */
|
|
104
|
-
disabled?: boolean;
|
|
105
|
-
/**
|
|
106
|
-
* Whether the interactions in the item are valid right now (a required answer is given, a limit is
|
|
107
|
-
* respected). Published by the item whenever it checks, so a reader never has to ask the item.
|
|
108
|
-
* Unset until the item has checked once.
|
|
109
|
-
*/
|
|
110
|
-
valid?: boolean;
|
|
111
|
-
}
|
|
112
|
-
declare const itemContextVariables: VariableDeclaration<string | string[]>[];
|
|
113
|
-
|
|
114
|
-
export { type BaseType as B, type Calculate as C, type InterpolationTableEntry as I, type Multiple as M, type Ordered as O, type QtiAreaMapEntry as Q, type ResponseInteraction as R, type TemplateVariable as T, type VariableDeclaration as V, type Cardinality as a, type ItemContext as b, type OutcomeVariable as c, type QtiAreaMapping as d, type QtiMapEntry as e, type QtiMapping as f, type ResponseVariable as g, type VariableValue as h, type areaShape as i, type directedPair as j, type float as k, type integer as l, itemContextVariables as m };
|
|
92
|
+
export type { BaseType as B, Calculate as C, InterpolationTableEntry as I, Multiple as M, Ordered as O, QtiAreaMapEntry as Q, ResponseInteraction as R, TemplateVariable as T, VariableDeclaration as V, Cardinality as a, OutcomeVariable as b, QtiAreaMapping as c, QtiMapEntry as d, QtiMapping as e, ResponseVariable as f, VariableValue as g, areaShape as h, directedPair as i, float as j, integer as k };
|
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.17",
|
|
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": "^3.0.0-next.
|
|
14
|
-
"@qti-components/corrections": "^0.
|
|
15
|
-
"@qti-components/elements": "^2.0.0-next.
|
|
16
|
-
"@qti-components/interactions": "^1.10.5-next.
|
|
17
|
-
"@qti-components/item": "^1.5.1-next.
|
|
13
|
+
"@qti-components/base": "^3.0.0-next.6",
|
|
14
|
+
"@qti-components/corrections": "^1.0.0-next.10",
|
|
15
|
+
"@qti-components/elements": "^2.0.0-next.7",
|
|
16
|
+
"@qti-components/interactions": "^1.10.5-next.8",
|
|
17
|
+
"@qti-components/item": "^1.5.1-next.7",
|
|
18
18
|
"@qti-components/loader": "^1.3.4-next.2",
|
|
19
|
-
"@qti-components/processing": "^1.6.1-next.
|
|
20
|
-
"@qti-components/test": "^2.0.0-next.
|
|
21
|
-
"@qti-components/theme": "^
|
|
19
|
+
"@qti-components/processing": "^1.6.1-next.5",
|
|
20
|
+
"@qti-components/test": "^2.0.0-next.15",
|
|
21
|
+
"@qti-components/theme": "^3.0.0-next.6",
|
|
22
22
|
"@qti-components/transformers": "^1.8.0-next.0"
|
|
23
23
|
},
|
|
24
24
|
"exports": {
|
|
@@ -50,6 +50,10 @@
|
|
|
50
50
|
"types": "./dist/test.d.ts",
|
|
51
51
|
"import": "./dist/test.js"
|
|
52
52
|
},
|
|
53
|
+
"./qti-test/plugin-api": {
|
|
54
|
+
"types": "./dist/test-plugin-api.d.ts",
|
|
55
|
+
"import": "./dist/test-plugin-api.js"
|
|
56
|
+
},
|
|
53
57
|
"./qti-loader": {
|
|
54
58
|
"types": "./dist/loader.d.ts",
|
|
55
59
|
"import": "./dist/loader.js"
|