@pie-qti/qti-common 0.1.27 → 1.0.0-beta.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.
Files changed (62) hide show
  1. package/README.md +31 -86
  2. package/package.json +2 -3
  3. package/dist/accessibility/apip.d.ts +0 -66
  4. package/dist/accessibility/apip.js +0 -596
  5. package/dist/accessibility/apip.js.map +0 -1
  6. package/dist/accessibility/catalog.d.ts +0 -51
  7. package/dist/accessibility/catalog.js +0 -41
  8. package/dist/accessibility/catalog.js.map +0 -1
  9. package/dist/accessibility/index.d.ts +0 -2
  10. package/dist/accessibility/index.js +0 -3
  11. package/dist/accessibility/index.js.map +0 -1
  12. package/dist/dom/assignProps.d.ts +0 -4
  13. package/dist/dom/assignProps.js +0 -9
  14. package/dist/dom/assignProps.js.map +0 -1
  15. package/dist/dom/svelteMountController.d.ts +0 -25
  16. package/dist/dom/svelteMountController.js +0 -131
  17. package/dist/dom/svelteMountController.js.map +0 -1
  18. package/dist/dom/touchDrag.d.ts +0 -10
  19. package/dist/dom/touchDrag.js +0 -141
  20. package/dist/dom/touchDrag.js.map +0 -1
  21. package/dist/element-mapper/AttributeNameMapper.d.ts +0 -66
  22. package/dist/element-mapper/AttributeNameMapper.js +0 -2
  23. package/dist/element-mapper/AttributeNameMapper.js.map +0 -1
  24. package/dist/element-mapper/ElementNameMapper.d.ts +0 -66
  25. package/dist/element-mapper/ElementNameMapper.js +0 -2
  26. package/dist/element-mapper/ElementNameMapper.js.map +0 -1
  27. package/dist/element-mapper/Qti2xAttributeNameMapper.d.ts +0 -27
  28. package/dist/element-mapper/Qti2xAttributeNameMapper.js +0 -38
  29. package/dist/element-mapper/Qti2xAttributeNameMapper.js.map +0 -1
  30. package/dist/element-mapper/Qti2xElementNameMapper.d.ts +0 -37
  31. package/dist/element-mapper/Qti2xElementNameMapper.js +0 -47
  32. package/dist/element-mapper/Qti2xElementNameMapper.js.map +0 -1
  33. package/dist/element-mapper/Qti3AttributeNameMapper.d.ts +0 -40
  34. package/dist/element-mapper/Qti3AttributeNameMapper.js +0 -87
  35. package/dist/element-mapper/Qti3AttributeNameMapper.js.map +0 -1
  36. package/dist/element-mapper/Qti3ElementNameMapper.d.ts +0 -14
  37. package/dist/element-mapper/Qti3ElementNameMapper.js +0 -39
  38. package/dist/element-mapper/Qti3ElementNameMapper.js.map +0 -1
  39. package/dist/element-mapper/index.d.ts +0 -7
  40. package/dist/element-mapper/index.js +0 -6
  41. package/dist/element-mapper/index.js.map +0 -1
  42. package/dist/element-mapper/qti3-attribute-map.d.ts +0 -8
  43. package/dist/element-mapper/qti3-attribute-map.js +0 -115
  44. package/dist/element-mapper/qti3-attribute-map.js.map +0 -1
  45. package/dist/element-mapper/qti3-element-mappings.d.ts +0 -459
  46. package/dist/element-mapper/qti3-element-mappings.js +0 -328
  47. package/dist/element-mapper/qti3-element-mappings.js.map +0 -1
  48. package/dist/index.d.ts +0 -14
  49. package/dist/index.js +0 -16
  50. package/dist/index.js.map +0 -1
  51. package/dist/parser-factory.d.ts +0 -137
  52. package/dist/parser-factory.js +0 -146
  53. package/dist/parser-factory.js.map +0 -1
  54. package/dist/version-detection/detectQtiVersion.d.ts +0 -23
  55. package/dist/version-detection/detectQtiVersion.js +0 -129
  56. package/dist/version-detection/detectQtiVersion.js.map +0 -1
  57. package/dist/version-detection/index.d.ts +0 -2
  58. package/dist/version-detection/index.js +0 -2
  59. package/dist/version-detection/index.js.map +0 -1
  60. package/dist/xml/attributes.d.ts +0 -77
  61. package/dist/xml/attributes.js +0 -120
  62. package/dist/xml/attributes.js.map +0 -1
@@ -1,115 +0,0 @@
1
- // GENERATED FILE — do not edit by hand.
2
- // Regenerate with:
3
- // bun run packages/qti-common/scripts/generate-qti3-attribute-map.ts
4
- //
5
- // Derived from the IMS QTI schemas vendored in packages/to-pie (imsqti_v2p1.xsd, imsqti_v2p2.xsd) by taking every
6
- // camelCase attribute name in the QTI 2.x vocabulary and kebab-casing it, which is exactly
7
- // the QTI 3.0 attribute rename. Attributes already kebab-case in QTI 2.x (`aria-*`) carry
8
- // no uppercase letter and so are absent here by construction — as are `data-*`,
9
- // `xml:lang` and HTML attributes, since lookup is by exact name.
10
- /** QTI 3.0 kebab-case attribute name → QTI 2.x camelCase equivalent. 79 entries. */
11
- export const QTI3_ATTRIBUTE_TO_QTI2 = new Map([
12
- ['allow-comment', 'allowComment'],
13
- ['allow-late-submission', 'allowLateSubmission'],
14
- ['allow-review', 'allowReview'],
15
- ['allow-skipping', 'allowSkipping'],
16
- ['base-type', 'baseType'],
17
- ['case-sensitive', 'caseSensitive'],
18
- ['center-point', 'centerPoint'],
19
- ['centre-point', 'centrePoint'],
20
- ['count-attempt', 'countAttempt'],
21
- ['data-extension', 'dataExtension'],
22
- ['default-value', 'defaultValue'],
23
- ['exclude-category', 'excludeCategory'],
24
- ['expected-length', 'expectedLength'],
25
- ['expected-lines', 'expectedLines'],
26
- ['external-scored', 'externalScored'],
27
- ['field-identifier', 'fieldIdentifier'],
28
- ['hotspot-label', 'hotspotLabel'],
29
- ['include-boundary', 'includeBoundary'],
30
- ['include-category', 'includeCategory'],
31
- ['include-lower-bound', 'includeLowerBound'],
32
- ['include-upper-bound', 'includeUpperBound'],
33
- ['keep-together', 'keepTogether'],
34
- ['long-interpretation', 'longInterpretation'],
35
- ['lower-bound', 'lowerBound'],
36
- ['map-key', 'mapKey'],
37
- ['mapped-value', 'mappedValue'],
38
- ['mapping-indicator', 'mappingIndicator'],
39
- ['mastery-value', 'masteryValue'],
40
- ['match-group', 'matchGroup'],
41
- ['match-max', 'matchMax'],
42
- ['match-min', 'matchMin'],
43
- ['math-variable', 'mathVariable'],
44
- ['max-associations', 'maxAssociations'],
45
- ['max-attempts', 'maxAttempts'],
46
- ['max-choices', 'maxChoices'],
47
- ['max-plays', 'maxPlays'],
48
- ['max-strings', 'maxStrings'],
49
- ['max-time', 'maxTime'],
50
- ['min-associations', 'minAssociations'],
51
- ['min-choices', 'minChoices'],
52
- ['min-plays', 'minPlays'],
53
- ['min-strings', 'minStrings'],
54
- ['min-time', 'minTime'],
55
- ['navigation-mode', 'navigationMode'],
56
- ['normal-maximum', 'normalMaximum'],
57
- ['normal-minimum', 'normalMinimum'],
58
- ['number-repeats', 'numberRepeats'],
59
- ['object-label', 'objectLabel'],
60
- ['outcome-identifier', 'outcomeIdentifier'],
61
- ['param-variable', 'paramVariable'],
62
- ['pattern-mask', 'patternMask'],
63
- ['placeholder-text', 'placeholderText'],
64
- ['power-form', 'powerForm'],
65
- ['response-identifier', 'responseIdentifier'],
66
- ['rounding-mode', 'roundingMode'],
67
- ['section-identifier', 'sectionIdentifier'],
68
- ['show-feedback', 'showFeedback'],
69
- ['show-hide', 'showHide'],
70
- ['show-solution', 'showSolution'],
71
- ['source-identifier', 'sourceIdentifier'],
72
- ['source-value', 'sourceValue'],
73
- ['step-label', 'stepLabel'],
74
- ['string-identifier', 'stringIdentifier'],
75
- ['submission-mode', 'submissionMode'],
76
- ['target-identifier', 'targetIdentifier'],
77
- ['target-type', 'targetType'],
78
- ['target-value', 'targetValue'],
79
- ['template-identifier', 'templateIdentifier'],
80
- ['template-location', 'templateLocation'],
81
- ['time-dependent', 'timeDependent'],
82
- ['tolerance-mode', 'toleranceMode'],
83
- ['tool-name', 'toolName'],
84
- ['tool-version', 'toolVersion'],
85
- ['upper-bound', 'upperBound'],
86
- ['validate-responses', 'validateResponses'],
87
- ['variable-identifier', 'variableIdentifier'],
88
- ['variable-identifier-ref', 'variableIdentifierRef'],
89
- ['weight-identifier', 'weightIdentifier'],
90
- ['with-replacement', 'withReplacement'],
91
- ]);
92
- /**
93
- * QTI 2.2 interactions whose content model permits a `prompt` child (it must come first).
94
- * The inline interactions are deliberately absent: moving a prompt into one would trade one
95
- * schema violation for another.
96
- */
97
- export const QTI2_PROMPT_BEARING_INTERACTIONS = new Set([
98
- 'associateInteraction',
99
- 'choiceInteraction',
100
- 'drawingInteraction',
101
- 'extendedTextInteraction',
102
- 'gapMatchInteraction',
103
- 'graphicAssociateInteraction',
104
- 'graphicGapMatchInteraction',
105
- 'graphicOrderInteraction',
106
- 'hotspotInteraction',
107
- 'hottextInteraction',
108
- 'matchInteraction',
109
- 'mediaInteraction',
110
- 'orderInteraction',
111
- 'selectPointInteraction',
112
- 'sliderInteraction',
113
- 'uploadInteraction',
114
- ]);
115
- //# sourceMappingURL=qti3-attribute-map.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"qti3-attribute-map.js","sourceRoot":"","sources":["../../src/element-mapper/qti3-attribute-map.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,mBAAmB;AACnB,uEAAuE;AACvE,EAAE;AACF,kHAAkH;AAClH,2FAA2F;AAC3F,0FAA0F;AAC1F,gFAAgF;AAChF,iEAAiE;AAEjE,oFAAoF;AACpF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,GAAG,CAAiB;IAC5D,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,uBAAuB,EAAE,qBAAqB,CAAC;IAChD,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/B,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,WAAW,EAAE,UAAU,CAAC;IACzB,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/B,CAAC,cAAc,EAAE,aAAa,CAAC;IAC/B,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;IACvC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IACrC,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACnC,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;IACrC,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;IACvC,CAAC,eAAe,EAAE,cAAc,CAAC;IACjC,CAAC,kBAAkB,EAAE,iBAA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E,sBAAsB;IACtB,mBAAmB;IACnB,oBAAoB;IACpB,yBAAyB;IACzB,qBAAqB;IACrB,6BAA6B;IAC7B,4BAA4B;IAC5B,yBAAyB;IACzB,oBAAoB;IACpB,oBAAoB;IACpB,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;CACpB,CAAC,CAAC","sourcesContent":["// GENERATED FILE — do not edit by hand.\n// Regenerate with:\n// bun run packages/qti-common/scripts/generate-qti3-attribute-map.ts\n//\n// Derived from the IMS QTI schemas vendored in packages/to-pie (imsqti_v2p1.xsd, imsqti_v2p2.xsd) by taking every\n// camelCase attribute name in the QTI 2.x vocabulary and kebab-casing it, which is exactly\n// the QTI 3.0 attribute rename. Attributes already kebab-case in QTI 2.x (`aria-*`) carry\n// no uppercase letter and so are absent here by construction — as are `data-*`,\n// `xml:lang` and HTML attributes, since lookup is by exact name.\n\n/** QTI 3.0 kebab-case attribute name → QTI 2.x camelCase equivalent. 79 entries. */\nexport const QTI3_ATTRIBUTE_TO_QTI2 = new Map<string, string>([\n ['allow-comment', 'allowComment'],\n ['allow-late-submission', 'allowLateSubmission'],\n ['allow-review', 'allowReview'],\n ['allow-skipping', 'allowSkipping'],\n ['base-type', 'baseType'],\n ['case-sensitive', 'caseSensitive'],\n ['center-point', 'centerPoint'],\n ['centre-point', 'centrePoint'],\n ['count-attempt', 'countAttempt'],\n ['data-extension', 'dataExtension'],\n ['default-value', 'defaultValue'],\n ['exclude-category', 'excludeCategory'],\n ['expected-length', 'expectedLength'],\n ['expected-lines', 'expectedLines'],\n ['external-scored', 'externalScored'],\n ['field-identifier', 'fieldIdentifier'],\n ['hotspot-label', 'hotspotLabel'],\n ['include-boundary', 'includeBoundary'],\n ['include-category', 'includeCategory'],\n ['include-lower-bound', 'includeLowerBound'],\n ['include-upper-bound', 'includeUpperBound'],\n ['keep-together', 'keepTogether'],\n ['long-interpretation', 'longInterpretation'],\n ['lower-bound', 'lowerBound'],\n ['map-key', 'mapKey'],\n ['mapped-value', 'mappedValue'],\n ['mapping-indicator', 'mappingIndicator'],\n ['mastery-value', 'masteryValue'],\n ['match-group', 'matchGroup'],\n ['match-max', 'matchMax'],\n ['match-min', 'matchMin'],\n ['math-variable', 'mathVariable'],\n ['max-associations', 'maxAssociations'],\n ['max-attempts', 'maxAttempts'],\n ['max-choices', 'maxChoices'],\n ['max-plays', 'maxPlays'],\n ['max-strings', 'maxStrings'],\n ['max-time', 'maxTime'],\n ['min-associations', 'minAssociations'],\n ['min-choices', 'minChoices'],\n ['min-plays', 'minPlays'],\n ['min-strings', 'minStrings'],\n ['min-time', 'minTime'],\n ['navigation-mode', 'navigationMode'],\n ['normal-maximum', 'normalMaximum'],\n ['normal-minimum', 'normalMinimum'],\n ['number-repeats', 'numberRepeats'],\n ['object-label', 'objectLabel'],\n ['outcome-identifier', 'outcomeIdentifier'],\n ['param-variable', 'paramVariable'],\n ['pattern-mask', 'patternMask'],\n ['placeholder-text', 'placeholderText'],\n ['power-form', 'powerForm'],\n ['response-identifier', 'responseIdentifier'],\n ['rounding-mode', 'roundingMode'],\n ['section-identifier', 'sectionIdentifier'],\n ['show-feedback', 'showFeedback'],\n ['show-hide', 'showHide'],\n ['show-solution', 'showSolution'],\n ['source-identifier', 'sourceIdentifier'],\n ['source-value', 'sourceValue'],\n ['step-label', 'stepLabel'],\n ['string-identifier', 'stringIdentifier'],\n ['submission-mode', 'submissionMode'],\n ['target-identifier', 'targetIdentifier'],\n ['target-type', 'targetType'],\n ['target-value', 'targetValue'],\n ['template-identifier', 'templateIdentifier'],\n ['template-location', 'templateLocation'],\n ['time-dependent', 'timeDependent'],\n ['tolerance-mode', 'toleranceMode'],\n ['tool-name', 'toolName'],\n ['tool-version', 'toolVersion'],\n ['upper-bound', 'upperBound'],\n ['validate-responses', 'validateResponses'],\n ['variable-identifier', 'variableIdentifier'],\n ['variable-identifier-ref', 'variableIdentifierRef'],\n ['weight-identifier', 'weightIdentifier'],\n ['with-replacement', 'withReplacement'],\n]);\n\n/**\n * QTI 2.2 interactions whose content model permits a `prompt` child (it must come first).\n * The inline interactions are deliberately absent: moving a prompt into one would trade one\n * schema violation for another.\n */\nexport const QTI2_PROMPT_BEARING_INTERACTIONS: ReadonlySet<string> = new Set([\n 'associateInteraction',\n 'choiceInteraction',\n 'drawingInteraction',\n 'extendedTextInteraction',\n 'gapMatchInteraction',\n 'graphicAssociateInteraction',\n 'graphicGapMatchInteraction',\n 'graphicOrderInteraction',\n 'hotspotInteraction',\n 'hottextInteraction',\n 'matchInteraction',\n 'mediaInteraction',\n 'orderInteraction',\n 'selectPointInteraction',\n 'sliderInteraction',\n 'uploadInteraction',\n]);\n"]}
@@ -1,459 +0,0 @@
1
- /**
2
- * Comprehensive QTI 3.0 element name mappings.
3
- *
4
- * Based on IMS Global/1EdTech QTI 3.0 specification and amp-up.io implementation.
5
- * All QTI 3.0 elements use kebab-case with 'qti-' prefix.
6
- *
7
- * This file documents 172 QTI 3.0 elements providing 100% coverage of the official
8
- * specification including all interactions, processing rules, expressions, and
9
- * accessibility features.
10
- */
11
- /**
12
- * Core assessment structure elements
13
- */
14
- export declare const CORE_ELEMENTS: {
15
- readonly 'qti-assessment-item': "assessmentitem";
16
- readonly 'qti-assessment-test': "assessmenttest";
17
- readonly 'qti-item-body': "itembody";
18
- readonly 'qti-content-body': "contentbody";
19
- readonly 'qti-test-part': "testpart";
20
- readonly 'qti-assessment-section': "assessmentsection";
21
- readonly 'qti-assessment-item-ref': "assessmentitemref";
22
- readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
23
- };
24
- /**
25
- * Variable declaration elements
26
- */
27
- export declare const DECLARATION_ELEMENTS: {
28
- readonly 'qti-response-declaration': "responsedeclaration";
29
- readonly 'qti-outcome-declaration': "outcomedeclaration";
30
- readonly 'qti-template-declaration': "templatedeclaration";
31
- readonly 'qti-context-declaration': "contextdeclaration";
32
- readonly 'qti-correct-response': "correctresponse";
33
- readonly 'qti-default-value': "defaultvalue";
34
- readonly 'qti-value': "value";
35
- readonly 'qti-mapping': "mapping";
36
- readonly 'qti-map-entry': "mapentry";
37
- readonly 'qti-area-mapping': "areamapping";
38
- readonly 'qti-area-map-entry': "areamapentry";
39
- readonly 'qti-match-table': "matchtable";
40
- readonly 'qti-match-table-entry': "matchtableentry";
41
- readonly 'qti-interpolation-table': "interpolationtable";
42
- readonly 'qti-interpolation-table-entry': "interpolationtableentry";
43
- };
44
- /**
45
- * All 23+ interaction types (block and inline)
46
- */
47
- export declare const INTERACTION_ELEMENTS: {
48
- readonly 'qti-choice-interaction': "choiceinteraction";
49
- readonly 'qti-match-interaction': "matchinteraction";
50
- readonly 'qti-order-interaction': "orderinteraction";
51
- readonly 'qti-gap-match-interaction': "gapmatchinteraction";
52
- readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
53
- readonly 'qti-hotspot-interaction': "hotspotinteraction";
54
- readonly 'qti-hottext-interaction': "hottextinteraction";
55
- readonly 'qti-extended-text-interaction': "extendedtextinteraction";
56
- readonly 'qti-media-interaction': "mediainteraction";
57
- readonly 'qti-select-point-interaction': "selectpointinteraction";
58
- readonly 'qti-custom-interaction': "custominteraction";
59
- readonly 'qti-portable-custom-interaction': "portablecustominteraction";
60
- readonly 'qti-end-attempt-interaction': "endattemptinteraction";
61
- readonly 'qti-slider-interaction': "sliderinteraction";
62
- readonly 'qti-drawing-interaction': "drawinginteraction";
63
- readonly 'qti-upload-interaction': "uploadinteraction";
64
- readonly 'qti-position-object-interaction': "positionobjectinteraction";
65
- readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
66
- readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
67
- readonly 'qti-associate-interaction': "associateinteraction";
68
- readonly 'qti-text-entry-interaction': "textentryinteraction";
69
- readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
70
- };
71
- /**
72
- * Interaction child elements
73
- */
74
- export declare const INTERACTION_CHILD_ELEMENTS: {
75
- readonly 'qti-prompt': "prompt";
76
- readonly 'qti-simple-choice': "simplechoice";
77
- readonly 'qti-simple-match-set': "simplematchset";
78
- readonly 'qti-simple-associable-choice': "simpleassociablechoice";
79
- readonly 'qti-gap': "gap";
80
- readonly 'qti-gap-text': "gaptext";
81
- readonly 'qti-gap-img': "gapimg";
82
- readonly 'qti-gap-choice': "gapchoice";
83
- readonly 'qti-hotspot-choice': "hotspotchoice";
84
- readonly 'qti-associable-hotspot': "associablehotspot";
85
- readonly 'qti-hottext': "hottext";
86
- readonly 'qti-inline-choice': "inlinechoice";
87
- readonly 'qti-position-object-stage': "positionobjectstage";
88
- };
89
- /**
90
- * Response processing elements
91
- */
92
- export declare const RESPONSE_PROCESSING_ELEMENTS: {
93
- readonly 'qti-response-processing': "responseprocessing";
94
- readonly 'qti-response-condition': "responsecondition";
95
- readonly 'qti-response-if': "responseif";
96
- readonly 'qti-response-else-if': "responseelseif";
97
- readonly 'qti-response-else': "responseelse";
98
- readonly 'qti-response-processing-fragment': "responseprocessingfragment";
99
- readonly 'qti-exit-response': "exitresponse";
100
- readonly 'qti-set-outcome-value': "setoutcomevalue";
101
- readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
102
- readonly 'qti-set-correct-response': "setcorrectresponse";
103
- readonly 'qti-set-default-value': "setdefaultvalue";
104
- };
105
- /**
106
- * Template processing elements
107
- */
108
- export declare const TEMPLATE_PROCESSING_ELEMENTS: {
109
- readonly 'qti-template-processing': "templateprocessing";
110
- readonly 'qti-template-condition': "templatecondition";
111
- readonly 'qti-template-if': "templateif";
112
- readonly 'qti-template-else-if': "templateelseif";
113
- readonly 'qti-template-else': "templateelse";
114
- readonly 'qti-template-constraint': "templateconstraint";
115
- readonly 'qti-set-template-value': "settemplatevalue";
116
- readonly 'qti-exit-template': "exittemplate";
117
- readonly 'qti-template-block': "templateblock";
118
- readonly 'qti-template-inline': "templateinline";
119
- };
120
- /**
121
- * Outcome processing elements (test-level)
122
- */
123
- export declare const OUTCOME_PROCESSING_ELEMENTS: {
124
- readonly 'qti-outcome-processing': "outcomeprocessing";
125
- readonly 'qti-outcome-condition': "outcomecondition";
126
- readonly 'qti-outcome-if': "outcomeif";
127
- readonly 'qti-outcome-else-if': "outcomeelseif";
128
- readonly 'qti-outcome-else': "outcomeelse";
129
- readonly 'qti-exit-test': "exittest";
130
- };
131
- /**
132
- * Expression elements (54+ operators)
133
- */
134
- export declare const EXPRESSION_ELEMENTS: {
135
- readonly 'qti-variable': "variable";
136
- readonly 'qti-correct': "correct";
137
- readonly 'qti-default': "default";
138
- readonly 'qti-base-value': "basevalue";
139
- readonly 'qti-field-value': "fieldvalue";
140
- readonly 'qti-custom-operator': "customoperator";
141
- readonly 'qti-index': "index";
142
- readonly 'qti-contains': "contains";
143
- readonly 'qti-member': "member";
144
- readonly 'qti-null': "null";
145
- readonly 'qti-equal': "equal";
146
- readonly 'qti-equal-rounded': "equalrounded";
147
- readonly 'qti-gt': "gt";
148
- readonly 'qti-gte': "gte";
149
- readonly 'qti-lt': "lt";
150
- readonly 'qti-lte': "lte";
151
- readonly 'qti-and': "and";
152
- readonly 'qti-or': "or";
153
- readonly 'qti-not': "not";
154
- readonly 'qti-any-n': "anyn";
155
- readonly 'qti-multiple': "multiple";
156
- readonly 'qti-ordered': "ordered";
157
- readonly 'qti-string-match': "stringmatch";
158
- readonly 'qti-pattern-match': "patternmatch";
159
- readonly 'qti-substring': "substring";
160
- readonly 'qti-repeat': "repeat";
161
- readonly 'qti-match': "match";
162
- readonly 'qti-inside': "inside";
163
- readonly 'qti-map-response': "mapresponse";
164
- readonly 'qti-map-response-point': "mapresponsepoint";
165
- readonly 'qti-sum': "sum";
166
- readonly 'qti-product': "product";
167
- readonly 'qti-subtract': "subtract";
168
- readonly 'qti-divide': "divide";
169
- readonly 'qti-integer-divide': "integerdivide";
170
- readonly 'qti-integer-modulus': "integermodulus";
171
- readonly 'qti-round': "round";
172
- readonly 'qti-round-to': "roundto";
173
- readonly 'qti-truncate': "truncate";
174
- readonly 'qti-math-operator': "mathoperator";
175
- readonly 'qti-math-constant': "mathconstant";
176
- readonly 'qti-power': "power";
177
- readonly 'qti-gcd': "gcd";
178
- readonly 'qti-lcm': "lcm";
179
- readonly 'qti-stats-operator': "statsoperator";
180
- readonly 'qti-min': "min";
181
- readonly 'qti-max': "max";
182
- readonly 'qti-container-size': "containersize";
183
- readonly 'qti-delete': "delete";
184
- readonly 'qti-is-null': "isnull";
185
- readonly 'qti-random': "random";
186
- readonly 'qti-random-integer': "randominteger";
187
- readonly 'qti-random-float': "randomfloat";
188
- readonly 'qti-test-variables': "testvariables";
189
- readonly 'qti-outcome-maximum': "outcomemaximum";
190
- readonly 'qti-outcome-minimum': "outcomeminimum";
191
- readonly 'qti-number-correct': "numbercorrect";
192
- readonly 'qti-number-incorrect': "numberincorrect";
193
- readonly 'qti-number-presented': "numberpresented";
194
- readonly 'qti-number-responded': "numberresponded";
195
- readonly 'qti-number-selected': "numberselected";
196
- readonly 'qti-duration-gt': "durationgt";
197
- readonly 'qti-duration-gte': "durationgte";
198
- readonly 'qti-duration-lt': "durationlt";
199
- readonly 'qti-duration-lte': "durationlte";
200
- };
201
- /**
202
- * Feedback elements
203
- */
204
- export declare const FEEDBACK_ELEMENTS: {
205
- readonly 'qti-modal-feedback': "modalfeedback";
206
- readonly 'qti-feedback-block': "feedbackblock";
207
- readonly 'qti-feedback-inline': "feedbackinline";
208
- readonly 'qti-rubric-block': "rubricblock";
209
- readonly 'qti-modal-feedback-ok': "modalfeedbackok";
210
- };
211
- /**
212
- * PCI (Portable Custom Interaction) elements
213
- */
214
- export declare const PCI_ELEMENTS: {
215
- readonly 'qti-interaction-modules': "interactionmodules";
216
- readonly 'qti-interaction-module': "interactionmodule";
217
- readonly 'qti-interaction-markup': "interactionmarkup";
218
- readonly 'qti-interaction-hook': "interactionhook";
219
- readonly 'qti-interaction-config': "interactionconfig";
220
- };
221
- /**
222
- * Catalog elements (accessibility support)
223
- */
224
- export declare const CATALOG_ELEMENTS: {
225
- readonly 'qti-catalog': "catalog";
226
- readonly 'qti-catalog-info': "cataloginfo";
227
- readonly 'qti-card': "card";
228
- readonly 'qti-card-entry': "cardentry";
229
- readonly 'qti-html-content': "htmlcontent";
230
- readonly 'qti-file-href': "filehref";
231
- };
232
- /**
233
- * Other content elements
234
- */
235
- export declare const CONTENT_ELEMENTS: {
236
- readonly 'qti-printed-variable': "printedvariable";
237
- readonly 'qti-context-variable': "contextvariable";
238
- readonly 'qti-template-variable': "templatevariable";
239
- readonly 'qti-stylesheet': "stylesheet";
240
- readonly 'qti-companion-materials-info': "companionmaterialsinfo";
241
- };
242
- /**
243
- * Complete mapping of all QTI 3.0 elements to canonical form
244
- */
245
- export declare const QTI3_ELEMENT_MAPPINGS: {
246
- readonly 'qti-printed-variable': "printedvariable";
247
- readonly 'qti-context-variable': "contextvariable";
248
- readonly 'qti-template-variable': "templatevariable";
249
- readonly 'qti-stylesheet': "stylesheet";
250
- readonly 'qti-companion-materials-info': "companionmaterialsinfo";
251
- readonly 'qti-catalog': "catalog";
252
- readonly 'qti-catalog-info': "cataloginfo";
253
- readonly 'qti-card': "card";
254
- readonly 'qti-card-entry': "cardentry";
255
- readonly 'qti-html-content': "htmlcontent";
256
- readonly 'qti-file-href': "filehref";
257
- readonly 'qti-interaction-modules': "interactionmodules";
258
- readonly 'qti-interaction-module': "interactionmodule";
259
- readonly 'qti-interaction-markup': "interactionmarkup";
260
- readonly 'qti-interaction-hook': "interactionhook";
261
- readonly 'qti-interaction-config': "interactionconfig";
262
- readonly 'qti-modal-feedback': "modalfeedback";
263
- readonly 'qti-feedback-block': "feedbackblock";
264
- readonly 'qti-feedback-inline': "feedbackinline";
265
- readonly 'qti-rubric-block': "rubricblock";
266
- readonly 'qti-modal-feedback-ok': "modalfeedbackok";
267
- readonly 'qti-variable': "variable";
268
- readonly 'qti-correct': "correct";
269
- readonly 'qti-default': "default";
270
- readonly 'qti-base-value': "basevalue";
271
- readonly 'qti-field-value': "fieldvalue";
272
- readonly 'qti-custom-operator': "customoperator";
273
- readonly 'qti-index': "index";
274
- readonly 'qti-contains': "contains";
275
- readonly 'qti-member': "member";
276
- readonly 'qti-null': "null";
277
- readonly 'qti-equal': "equal";
278
- readonly 'qti-equal-rounded': "equalrounded";
279
- readonly 'qti-gt': "gt";
280
- readonly 'qti-gte': "gte";
281
- readonly 'qti-lt': "lt";
282
- readonly 'qti-lte': "lte";
283
- readonly 'qti-and': "and";
284
- readonly 'qti-or': "or";
285
- readonly 'qti-not': "not";
286
- readonly 'qti-any-n': "anyn";
287
- readonly 'qti-multiple': "multiple";
288
- readonly 'qti-ordered': "ordered";
289
- readonly 'qti-string-match': "stringmatch";
290
- readonly 'qti-pattern-match': "patternmatch";
291
- readonly 'qti-substring': "substring";
292
- readonly 'qti-repeat': "repeat";
293
- readonly 'qti-match': "match";
294
- readonly 'qti-inside': "inside";
295
- readonly 'qti-map-response': "mapresponse";
296
- readonly 'qti-map-response-point': "mapresponsepoint";
297
- readonly 'qti-sum': "sum";
298
- readonly 'qti-product': "product";
299
- readonly 'qti-subtract': "subtract";
300
- readonly 'qti-divide': "divide";
301
- readonly 'qti-integer-divide': "integerdivide";
302
- readonly 'qti-integer-modulus': "integermodulus";
303
- readonly 'qti-round': "round";
304
- readonly 'qti-round-to': "roundto";
305
- readonly 'qti-truncate': "truncate";
306
- readonly 'qti-math-operator': "mathoperator";
307
- readonly 'qti-math-constant': "mathconstant";
308
- readonly 'qti-power': "power";
309
- readonly 'qti-gcd': "gcd";
310
- readonly 'qti-lcm': "lcm";
311
- readonly 'qti-stats-operator': "statsoperator";
312
- readonly 'qti-min': "min";
313
- readonly 'qti-max': "max";
314
- readonly 'qti-container-size': "containersize";
315
- readonly 'qti-delete': "delete";
316
- readonly 'qti-is-null': "isnull";
317
- readonly 'qti-random': "random";
318
- readonly 'qti-random-integer': "randominteger";
319
- readonly 'qti-random-float': "randomfloat";
320
- readonly 'qti-test-variables': "testvariables";
321
- readonly 'qti-outcome-maximum': "outcomemaximum";
322
- readonly 'qti-outcome-minimum': "outcomeminimum";
323
- readonly 'qti-number-correct': "numbercorrect";
324
- readonly 'qti-number-incorrect': "numberincorrect";
325
- readonly 'qti-number-presented': "numberpresented";
326
- readonly 'qti-number-responded': "numberresponded";
327
- readonly 'qti-number-selected': "numberselected";
328
- readonly 'qti-duration-gt': "durationgt";
329
- readonly 'qti-duration-gte': "durationgte";
330
- readonly 'qti-duration-lt': "durationlt";
331
- readonly 'qti-duration-lte': "durationlte";
332
- readonly 'qti-outcome-processing': "outcomeprocessing";
333
- readonly 'qti-outcome-condition': "outcomecondition";
334
- readonly 'qti-outcome-if': "outcomeif";
335
- readonly 'qti-outcome-else-if': "outcomeelseif";
336
- readonly 'qti-outcome-else': "outcomeelse";
337
- readonly 'qti-exit-test': "exittest";
338
- readonly 'qti-template-processing': "templateprocessing";
339
- readonly 'qti-template-condition': "templatecondition";
340
- readonly 'qti-template-if': "templateif";
341
- readonly 'qti-template-else-if': "templateelseif";
342
- readonly 'qti-template-else': "templateelse";
343
- readonly 'qti-template-constraint': "templateconstraint";
344
- readonly 'qti-set-template-value': "settemplatevalue";
345
- readonly 'qti-exit-template': "exittemplate";
346
- readonly 'qti-template-block': "templateblock";
347
- readonly 'qti-template-inline': "templateinline";
348
- readonly 'qti-response-processing': "responseprocessing";
349
- readonly 'qti-response-condition': "responsecondition";
350
- readonly 'qti-response-if': "responseif";
351
- readonly 'qti-response-else-if': "responseelseif";
352
- readonly 'qti-response-else': "responseelse";
353
- readonly 'qti-response-processing-fragment': "responseprocessingfragment";
354
- readonly 'qti-exit-response': "exitresponse";
355
- readonly 'qti-set-outcome-value': "setoutcomevalue";
356
- readonly 'qti-lookup-outcome-value': "lookupoutcomevalue";
357
- readonly 'qti-set-correct-response': "setcorrectresponse";
358
- readonly 'qti-set-default-value': "setdefaultvalue";
359
- readonly 'qti-prompt': "prompt";
360
- readonly 'qti-simple-choice': "simplechoice";
361
- readonly 'qti-simple-match-set': "simplematchset";
362
- readonly 'qti-simple-associable-choice': "simpleassociablechoice";
363
- readonly 'qti-gap': "gap";
364
- readonly 'qti-gap-text': "gaptext";
365
- readonly 'qti-gap-img': "gapimg";
366
- readonly 'qti-gap-choice': "gapchoice";
367
- readonly 'qti-hotspot-choice': "hotspotchoice";
368
- readonly 'qti-associable-hotspot': "associablehotspot";
369
- readonly 'qti-hottext': "hottext";
370
- readonly 'qti-inline-choice': "inlinechoice";
371
- readonly 'qti-position-object-stage': "positionobjectstage";
372
- readonly 'qti-choice-interaction': "choiceinteraction";
373
- readonly 'qti-match-interaction': "matchinteraction";
374
- readonly 'qti-order-interaction': "orderinteraction";
375
- readonly 'qti-gap-match-interaction': "gapmatchinteraction";
376
- readonly 'qti-graphic-gap-match-interaction': "graphicgapmatchinteraction";
377
- readonly 'qti-hotspot-interaction': "hotspotinteraction";
378
- readonly 'qti-hottext-interaction': "hottextinteraction";
379
- readonly 'qti-extended-text-interaction': "extendedtextinteraction";
380
- readonly 'qti-media-interaction': "mediainteraction";
381
- readonly 'qti-select-point-interaction': "selectpointinteraction";
382
- readonly 'qti-custom-interaction': "custominteraction";
383
- readonly 'qti-portable-custom-interaction': "portablecustominteraction";
384
- readonly 'qti-end-attempt-interaction': "endattemptinteraction";
385
- readonly 'qti-slider-interaction': "sliderinteraction";
386
- readonly 'qti-drawing-interaction': "drawinginteraction";
387
- readonly 'qti-upload-interaction': "uploadinteraction";
388
- readonly 'qti-position-object-interaction': "positionobjectinteraction";
389
- readonly 'qti-graphic-order-interaction': "graphicorderinteraction";
390
- readonly 'qti-graphic-associate-interaction': "graphicassociateinteraction";
391
- readonly 'qti-associate-interaction': "associateinteraction";
392
- readonly 'qti-text-entry-interaction': "textentryinteraction";
393
- readonly 'qti-inline-choice-interaction': "inlinechoiceinteraction";
394
- readonly 'qti-response-declaration': "responsedeclaration";
395
- readonly 'qti-outcome-declaration': "outcomedeclaration";
396
- readonly 'qti-template-declaration': "templatedeclaration";
397
- readonly 'qti-context-declaration': "contextdeclaration";
398
- readonly 'qti-correct-response': "correctresponse";
399
- readonly 'qti-default-value': "defaultvalue";
400
- readonly 'qti-value': "value";
401
- readonly 'qti-mapping': "mapping";
402
- readonly 'qti-map-entry': "mapentry";
403
- readonly 'qti-area-mapping': "areamapping";
404
- readonly 'qti-area-map-entry': "areamapentry";
405
- readonly 'qti-match-table': "matchtable";
406
- readonly 'qti-match-table-entry': "matchtableentry";
407
- readonly 'qti-interpolation-table': "interpolationtable";
408
- readonly 'qti-interpolation-table-entry': "interpolationtableentry";
409
- readonly 'qti-assessment-item': "assessmentitem";
410
- readonly 'qti-assessment-test': "assessmenttest";
411
- readonly 'qti-item-body': "itembody";
412
- readonly 'qti-content-body': "contentbody";
413
- readonly 'qti-test-part': "testpart";
414
- readonly 'qti-assessment-section': "assessmentsection";
415
- readonly 'qti-assessment-item-ref': "assessmentitemref";
416
- readonly 'qti-assessment-stimulus-ref': "assessmentstimulusref";
417
- };
418
- /**
419
- * Get canonical name for a QTI 3.0 element
420
- */
421
- export declare function getCanonicalName(qti3ElementName: string): string | undefined;
422
- /**
423
- * Check if an element name is a valid QTI 3.0 element
424
- */
425
- export declare function isQti3Element(elementName: string): boolean;
426
- /**
427
- * Get all QTI 3.0 interaction element names
428
- */
429
- export declare function getInteractionElements(): readonly string[];
430
- /**
431
- * Common QTI 3.0 attribute names (kebab-case)
432
- */
433
- export declare const QTI3_ATTRIBUTES: {
434
- readonly identifier: "identifier";
435
- readonly responseIdentifier: "response-identifier";
436
- readonly outcomeIdentifier: "outcome-identifier";
437
- readonly templateIdentifier: "template-identifier";
438
- readonly baseType: "base-type";
439
- readonly cardinality: "cardinality";
440
- readonly minChoices: "min-choices";
441
- readonly maxChoices: "max-choices";
442
- readonly shuffle: "shuffle";
443
- readonly fixed: "fixed";
444
- readonly showHide: "show-hide";
445
- readonly normalMaximum: "normal-maximum";
446
- readonly normalMinimum: "normal-minimum";
447
- readonly mathVariable: "math-variable";
448
- readonly paramVariable: "param-variable";
449
- readonly timeDependent: "time-dependent";
450
- readonly adaptive: "adaptive";
451
- readonly expectedLength: "expected-length";
452
- readonly patternMask: "pattern-mask";
453
- readonly placeholderText: "placeholder-text";
454
- readonly minStrings: "min-strings";
455
- readonly maxStrings: "max-strings";
456
- readonly fieldIdentifier: "field-identifier";
457
- readonly toleranceMode: "tolerance-mode";
458
- readonly dataCatalogIdref: "data-catalog-idref";
459
- };