@conform-ed/qti-react 0.0.17 → 0.0.19
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/headless.d.ts +25 -0
- package/dist/headless.js +4804 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +160 -96
- package/dist/item-capability.d.ts +43 -0
- package/dist/item-score.d.ts +17 -0
- package/package.json +10 -5
- package/src/headless.ts +58 -0
- package/src/index.ts +4 -0
- package/src/item-capability.ts +211 -0
- package/src/item-score.ts +40 -0
- package/src/runtime.ts +17 -123
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Headless (React-free) surface of @conform-ed/qti-react: the normalize → view adapters,
|
|
3
|
+
* the capability gate, and the **scoring engine** (Response Processing interpreter, the
|
|
4
|
+
* standard per-response scoring templates, the item-score aggregator, and the test-level
|
|
5
|
+
* outcome-processing controller). Importable on a server (e.g. a QTI ingest pipeline or an
|
|
6
|
+
* authoritative grade finalize) without pulling React. Exposed at
|
|
7
|
+
* `@conform-ed/qti-react/headless`; everything here is also re-exported from the package
|
|
8
|
+
* root for React consumers.
|
|
9
|
+
*
|
|
10
|
+
* Keep this entry free of React-coupled imports — every module re-exported here
|
|
11
|
+
* (./normalized-item, ./item-capability, ./response-processing, ./rp, ./item-score,
|
|
12
|
+
* ./store, ./test, ./response-validity) is verified framework-light.
|
|
13
|
+
*/
|
|
14
|
+
export { assessmentItemViewFromNormalized, assessmentTestViewFromNormalized, stimulusContentFromNormalized, } from "./normalized-item";
|
|
15
|
+
export { referenceInteractionKinds, reportItemCapability, type ItemCapabilityOptions } from "./item-capability";
|
|
16
|
+
export { foldString, mapResponse, matchCorrect, mapResponsePoint, scoreResponse } from "./response-processing";
|
|
17
|
+
export { effectiveItemScore, type EffectiveItemScore } from "./item-score";
|
|
18
|
+
export { applyCorrectResponseOverrides, collectRpIssues, collectTemplateIssues, executeResponseProcessing, executeTemplateProcessing, mulberry32, resolveTemplate, } from "./rp";
|
|
19
|
+
export type { CustomOperatorImplementation, OutcomeDeclarationView, OutcomeValue, ResponseNormalization, ResponseProcessingContext, ResponseProcessingResult, ResponseProcessingView, TemplateDeclarationView, } from "./rp";
|
|
20
|
+
export { createAttemptStore, type AttemptSnapshot, type AttemptStore, type AttemptStoreOptions } from "./store";
|
|
21
|
+
export { createTestController, type TestController, type TestSessionState } from "./test";
|
|
22
|
+
export type { CapabilityIssue, CapabilityIssueType, CapabilityReport } from "./capability";
|
|
23
|
+
export type { AssessmentItemView, AssessmentStimulusRefView, BodyNode, InteractionNode, StimulusContentView, XmlContentNode, } from "./runtime";
|
|
24
|
+
export type { AssessmentTestView } from "./test";
|
|
25
|
+
export type { Cardinality, ResponseDeclarationView, ResponseValue, ScoreResult } from "./types";
|