@citolab/qti-components 7.3.22 → 7.4.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 (346) hide show
  1. package/cdn/index.global.js +1 -1
  2. package/cdn/index.js +5485 -1
  3. package/custom-elements.json +29837 -0
  4. package/dist/chunks/chunk-6K4ROGDD.js +364 -0
  5. package/dist/chunks/chunk-6K4ROGDD.js.map +1 -0
  6. package/dist/chunks/chunk-GUDRSXIP.js +189 -0
  7. package/dist/chunks/chunk-GUDRSXIP.js.map +1 -0
  8. package/dist/chunks/{chunk-WFUXZ4UT.js → chunk-JDY5GL7E.js} +13 -1
  9. package/dist/chunks/{chunk-WFUXZ4UT.js.map → chunk-JDY5GL7E.js.map} +1 -1
  10. package/dist/chunks/{chunk-LF6SO3JU.js → chunk-LN74Z5QM.js} +653 -450
  11. package/dist/chunks/chunk-LN74Z5QM.js.map +1 -0
  12. package/dist/chunks/{chunk-ELDMXTUQ.js → chunk-O5N4DCU6.js} +7 -2
  13. package/dist/chunks/chunk-O5N4DCU6.js.map +1 -0
  14. package/dist/chunks/chunk-TJ6ZOT7A.js +2235 -0
  15. package/dist/chunks/chunk-TJ6ZOT7A.js.map +1 -0
  16. package/dist/computed-item.context-DpK-sS0T.d.ts +19 -0
  17. package/dist/{exports/config.context.d.ts → config.context-CmQ9L62n.d.ts} +1 -4
  18. package/dist/custom-elements.json +29837 -0
  19. package/dist/index.d.ts +8 -39
  20. package/dist/index.js +34 -104
  21. package/{cdn/chunks/chunk-5TDBMEY5.js → dist/item.css} +7 -24
  22. package/dist/qti-assessment-item-D77dJ1Ot.d.ts +104 -0
  23. package/dist/qti-components/index.d.ts +1238 -19
  24. package/dist/qti-components/index.js +6 -14
  25. package/dist/qti-components-jsx.d.ts +4463 -0
  26. package/dist/qti-item/index.d.ts +113 -0
  27. package/dist/qti-item/index.js +16 -0
  28. package/dist/qti-loader/index.d.ts +2 -6
  29. package/dist/qti-loader/index.js +24 -5
  30. package/dist/qti-loader/index.js.map +1 -1
  31. package/dist/qti-test/index.d.ts +593 -0
  32. package/dist/qti-test/index.js +62 -0
  33. package/dist/qti-transformers/index.d.ts +38 -2
  34. package/dist/qti-transformers/index.js +1 -2
  35. package/dist/test.context-L609DNAz.d.ts +58 -0
  36. package/dist/variables-Vgyr6yyW.d.ts +58 -0
  37. package/dist/vscode.css-custom-data.json +11 -0
  38. package/dist/vscode.html-custom-data.json +1135 -0
  39. package/package.json +74 -113
  40. package/cdn/chunks/chunk-2BSPQRNR.js +0 -6
  41. package/cdn/chunks/chunk-3CVBBZDT.js +0 -17
  42. package/cdn/chunks/chunk-3IBGLVHA.js +0 -1
  43. package/cdn/chunks/chunk-3YQMAZEO.js +0 -29
  44. package/cdn/chunks/chunk-5UQLGV7F.js +0 -5
  45. package/cdn/chunks/chunk-5WLHU3FH.js +0 -8
  46. package/cdn/chunks/chunk-6SGFGN34.js +0 -8
  47. package/cdn/chunks/chunk-6XVY32RS.js +0 -1
  48. package/cdn/chunks/chunk-7ME56ODO.js +0 -1
  49. package/cdn/chunks/chunk-CZDMOYYF.js +0 -1
  50. package/cdn/chunks/chunk-DNBBQ7LY.js +0 -1
  51. package/cdn/chunks/chunk-DP5FVJRS.js +0 -21
  52. package/cdn/chunks/chunk-E6IOJ4MV.js +0 -23
  53. package/cdn/chunks/chunk-G76Y52EL.js +0 -1471
  54. package/cdn/chunks/chunk-HCXHHI6V.js +0 -18
  55. package/cdn/chunks/chunk-HDMF4QZO.js +0 -48
  56. package/cdn/chunks/chunk-HKWYQB5Z.js +0 -37
  57. package/cdn/chunks/chunk-J5P2GBPV.js +0 -1
  58. package/cdn/chunks/chunk-KWPDTFYH.js +0 -1
  59. package/cdn/chunks/chunk-LIUOA3YV.js +0 -1
  60. package/cdn/chunks/chunk-LO2NM3CE.js +0 -1
  61. package/cdn/chunks/chunk-MD33BNWM.js +0 -1
  62. package/cdn/chunks/chunk-MRQ46JRY.js +0 -8
  63. package/cdn/chunks/chunk-NJP4VZB3.js +0 -8
  64. package/cdn/chunks/chunk-O4RAJ3LM.js +0 -25
  65. package/cdn/chunks/chunk-OSLUHYFD.js +0 -8
  66. package/cdn/chunks/chunk-P6SSTAJ2.js +0 -1
  67. package/cdn/chunks/chunk-PP62N3C4.js +0 -8
  68. package/cdn/chunks/chunk-PU7OABT3.js +0 -1
  69. package/cdn/chunks/chunk-PUI3LIFH.js +0 -0
  70. package/cdn/chunks/chunk-QBAXWCYQ.js +0 -5
  71. package/cdn/chunks/chunk-QEFO63QX.js +0 -8
  72. package/cdn/chunks/chunk-QQCGUVEV.js +0 -1
  73. package/cdn/chunks/chunk-QQR6POPY.js +0 -1
  74. package/cdn/chunks/chunk-RGNFAPWY.js +0 -2
  75. package/cdn/chunks/chunk-S5QDLZ6J.js +0 -1
  76. package/cdn/chunks/chunk-SEM2PEP6.js +0 -5
  77. package/cdn/chunks/chunk-SVVO2SFS.js +0 -1
  78. package/cdn/chunks/chunk-TCHROQU3.js +0 -1
  79. package/cdn/chunks/chunk-UMDZKG6K.js +0 -1
  80. package/cdn/chunks/chunk-VEG7LKS3.js +0 -48
  81. package/cdn/chunks/chunk-WCCTDLQ4.js +0 -8
  82. package/cdn/chunks/chunk-X4FA36TC.js +0 -1
  83. package/cdn/chunks/chunk-XJ2CFTZP.js +0 -1
  84. package/cdn/chunks/chunk-XUJ7TXHW.js +0 -1
  85. package/cdn/chunks/chunk-YCBNF5QU.js +0 -17
  86. package/cdn/chunks/chunk-YHLQ2JQ2.js +0 -1
  87. package/cdn/chunks/chunk-ZPCQH3EY.js +0 -10
  88. package/cdn/exports/computed-item.context.js +0 -1
  89. package/cdn/exports/computed.context.js +0 -1
  90. package/cdn/exports/config.context.js +0 -1
  91. package/cdn/exports/expression-result.js +0 -0
  92. package/cdn/exports/interaction.interface.js +0 -0
  93. package/cdn/exports/interaction.js +0 -1
  94. package/cdn/exports/item.context.js +0 -1
  95. package/cdn/exports/qti-assessment-item.context.js +0 -1
  96. package/cdn/exports/qti-condition-expression.js +0 -1
  97. package/cdn/exports/qti-expression.js +0 -1
  98. package/cdn/exports/qti-test.js +0 -0
  99. package/cdn/exports/qti.context.js +0 -1
  100. package/cdn/exports/session.context.js +0 -1
  101. package/cdn/exports/test.context.js +0 -1
  102. package/cdn/exports/variables.js +0 -0
  103. package/cdn/qti-components/index.js +0 -1
  104. package/cdn/qti-item/components/item-container.js +0 -1
  105. package/cdn/qti-item/components/item-correct-response-mode.js +0 -10
  106. package/cdn/qti-item/components/item-show-candidate-correction.js +0 -8
  107. package/cdn/qti-item/components/item-show-correct-response.js +0 -1
  108. package/cdn/qti-item/components/print-item-variables.js +0 -1
  109. package/cdn/qti-item/components/styles.js +0 -1
  110. package/cdn/qti-item/core/index.js +0 -1
  111. package/cdn/qti-loader/index.js +0 -1
  112. package/cdn/qti-test/components/index.js +0 -1
  113. package/cdn/qti-test/components/styles.js +0 -1
  114. package/cdn/qti-test/components/test-check-item.js +0 -1
  115. package/cdn/qti-test/components/test-container.js +0 -1
  116. package/cdn/qti-test/components/test-end-attempt.js +0 -1
  117. package/cdn/qti-test/components/test-item-link.js +0 -1
  118. package/cdn/qti-test/components/test-navigation.js +0 -1
  119. package/cdn/qti-test/components/test-next.js +0 -1
  120. package/cdn/qti-test/components/test-paging-buttons-stamp.js +0 -1
  121. package/cdn/qti-test/components/test-prev.js +0 -1
  122. package/cdn/qti-test/components/test-print-context.js +0 -1
  123. package/cdn/qti-test/components/test-print-item-variables.js +0 -1
  124. package/cdn/qti-test/components/test-scoring-buttons.js +0 -1
  125. package/cdn/qti-test/components/test-scoring-feedback.js +0 -1
  126. package/cdn/qti-test/components/test-section-buttons-stamp.js +0 -1
  127. package/cdn/qti-test/components/test-section-link.js +0 -1
  128. package/cdn/qti-test/components/test-show-correct-response.js +0 -1
  129. package/cdn/qti-test/components/test-stamp.js +0 -1
  130. package/cdn/qti-test/components/test-view-toggle.js +0 -1
  131. package/cdn/qti-test/components/test-view.js +0 -1
  132. package/cdn/qti-test/core/index.js +0 -1
  133. package/cdn/qti-transformers/index.js +0 -1
  134. package/dist/chunks/chunk-22IRJWWY.js +0 -10
  135. package/dist/chunks/chunk-22IRJWWY.js.map +0 -1
  136. package/dist/chunks/chunk-36G5MQKR.js +0 -85
  137. package/dist/chunks/chunk-36G5MQKR.js.map +0 -1
  138. package/dist/chunks/chunk-4OGJBG35.js +0 -8
  139. package/dist/chunks/chunk-4OGJBG35.js.map +0 -1
  140. package/dist/chunks/chunk-5KCXO2RP.js +0 -36
  141. package/dist/chunks/chunk-5KCXO2RP.js.map +0 -1
  142. package/dist/chunks/chunk-5ZHHNEDA.js +0 -30
  143. package/dist/chunks/chunk-5ZHHNEDA.js.map +0 -1
  144. package/dist/chunks/chunk-7K44TDQO.js +0 -91
  145. package/dist/chunks/chunk-7K44TDQO.js.map +0 -1
  146. package/dist/chunks/chunk-7OMJMXHK.js +0 -50
  147. package/dist/chunks/chunk-7OMJMXHK.js.map +0 -1
  148. package/dist/chunks/chunk-AZIKAG7K.js +0 -8
  149. package/dist/chunks/chunk-AZIKAG7K.js.map +0 -1
  150. package/dist/chunks/chunk-BLBSZDQ4.js +0 -52
  151. package/dist/chunks/chunk-BLBSZDQ4.js.map +0 -1
  152. package/dist/chunks/chunk-CJADUWEC.js +0 -10
  153. package/dist/chunks/chunk-CJADUWEC.js.map +0 -1
  154. package/dist/chunks/chunk-CP34TICQ.js +0 -45
  155. package/dist/chunks/chunk-CP34TICQ.js.map +0 -1
  156. package/dist/chunks/chunk-CTESMSQO.js +0 -56
  157. package/dist/chunks/chunk-CTESMSQO.js.map +0 -1
  158. package/dist/chunks/chunk-DZAMXOSC.js +0 -30
  159. package/dist/chunks/chunk-DZAMXOSC.js.map +0 -1
  160. package/dist/chunks/chunk-E6V3JHVT.js +0 -31
  161. package/dist/chunks/chunk-E6V3JHVT.js.map +0 -1
  162. package/dist/chunks/chunk-EJZQSOHU.js +0 -85
  163. package/dist/chunks/chunk-EJZQSOHU.js.map +0 -1
  164. package/dist/chunks/chunk-ELDMXTUQ.js.map +0 -1
  165. package/dist/chunks/chunk-EMVOKXSA.js +0 -84
  166. package/dist/chunks/chunk-EMVOKXSA.js.map +0 -1
  167. package/dist/chunks/chunk-ERYHQVOT.js +0 -8
  168. package/dist/chunks/chunk-ERYHQVOT.js.map +0 -1
  169. package/dist/chunks/chunk-ETLOKJAG.js +0 -94
  170. package/dist/chunks/chunk-ETLOKJAG.js.map +0 -1
  171. package/dist/chunks/chunk-FL72PF4D.js +0 -19
  172. package/dist/chunks/chunk-FL72PF4D.js.map +0 -1
  173. package/dist/chunks/chunk-GAHXUFMQ.js +0 -93
  174. package/dist/chunks/chunk-GAHXUFMQ.js.map +0 -1
  175. package/dist/chunks/chunk-H2JE6IVU.js +0 -15
  176. package/dist/chunks/chunk-H2JE6IVU.js.map +0 -1
  177. package/dist/chunks/chunk-H6KHXSIO.js +0 -8
  178. package/dist/chunks/chunk-H6KHXSIO.js.map +0 -1
  179. package/dist/chunks/chunk-HFAUM56X.js +0 -208
  180. package/dist/chunks/chunk-HFAUM56X.js.map +0 -1
  181. package/dist/chunks/chunk-JQ6HWGRY.js +0 -22
  182. package/dist/chunks/chunk-JQ6HWGRY.js.map +0 -1
  183. package/dist/chunks/chunk-KG5Z2CKO.js +0 -86
  184. package/dist/chunks/chunk-KG5Z2CKO.js.map +0 -1
  185. package/dist/chunks/chunk-KSXNC564.js +0 -43
  186. package/dist/chunks/chunk-KSXNC564.js.map +0 -1
  187. package/dist/chunks/chunk-LF6SO3JU.js.map +0 -1
  188. package/dist/chunks/chunk-NJNQOQUU.js +0 -8
  189. package/dist/chunks/chunk-NJNQOQUU.js.map +0 -1
  190. package/dist/chunks/chunk-ODHS7HDB.js +0 -94
  191. package/dist/chunks/chunk-ODHS7HDB.js.map +0 -1
  192. package/dist/chunks/chunk-QCB6P7DH.js +0 -146
  193. package/dist/chunks/chunk-QCB6P7DH.js.map +0 -1
  194. package/dist/chunks/chunk-QU7KR7VX.js +0 -367
  195. package/dist/chunks/chunk-QU7KR7VX.js.map +0 -1
  196. package/dist/chunks/chunk-TU6COU44.js +0 -82
  197. package/dist/chunks/chunk-TU6COU44.js.map +0 -1
  198. package/dist/chunks/chunk-TUKEQ36K.js +0 -60
  199. package/dist/chunks/chunk-TUKEQ36K.js.map +0 -1
  200. package/dist/chunks/chunk-TWYN56XO.js +0 -92
  201. package/dist/chunks/chunk-TWYN56XO.js.map +0 -1
  202. package/dist/chunks/chunk-UHQVQBCL.js +0 -89
  203. package/dist/chunks/chunk-UHQVQBCL.js.map +0 -1
  204. package/dist/chunks/chunk-WFFIUFJJ.js +0 -28
  205. package/dist/chunks/chunk-WFFIUFJJ.js.map +0 -1
  206. package/dist/chunks/chunk-WN6TJQI2.js +0 -103
  207. package/dist/chunks/chunk-WN6TJQI2.js.map +0 -1
  208. package/dist/chunks/chunk-WPEFNKMC.js +0 -923
  209. package/dist/chunks/chunk-WPEFNKMC.js.map +0 -1
  210. package/dist/chunks/chunk-YPMZLHGG.js +0 -52
  211. package/dist/chunks/chunk-YPMZLHGG.js.map +0 -1
  212. package/dist/chunks/chunk-YWEWSQJR.js +0 -40
  213. package/dist/chunks/chunk-YWEWSQJR.js.map +0 -1
  214. package/dist/chunks/chunk-ZGSNDSK3.js +0 -1
  215. package/dist/chunks/chunk-ZGSNDSK3.js.map +0 -1
  216. package/dist/exports/computed-item.context.d.ts +0 -29
  217. package/dist/exports/computed-item.context.js +0 -8
  218. package/dist/exports/computed-item.context.js.map +0 -1
  219. package/dist/exports/computed.context.d.ts +0 -42
  220. package/dist/exports/computed.context.js +0 -8
  221. package/dist/exports/computed.context.js.map +0 -1
  222. package/dist/exports/config.context.js +0 -8
  223. package/dist/exports/config.context.js.map +0 -1
  224. package/dist/exports/expression-result.d.ts +0 -19
  225. package/dist/exports/expression-result.js +0 -1
  226. package/dist/exports/expression-result.js.map +0 -1
  227. package/dist/exports/interaction.d.ts +0 -8
  228. package/dist/exports/interaction.interface.d.ts +0 -13
  229. package/dist/exports/interaction.interface.js +0 -1
  230. package/dist/exports/interaction.interface.js.map +0 -1
  231. package/dist/exports/interaction.js +0 -12
  232. package/dist/exports/interaction.js.map +0 -1
  233. package/dist/exports/item.context.d.ts +0 -8
  234. package/dist/exports/item.context.js +0 -8
  235. package/dist/exports/item.context.js.map +0 -1
  236. package/dist/exports/qti-assessment-item.context.d.ts +0 -14
  237. package/dist/exports/qti-assessment-item.context.js +0 -8
  238. package/dist/exports/qti-assessment-item.context.js.map +0 -1
  239. package/dist/exports/qti-condition-expression.d.ts +0 -15
  240. package/dist/exports/qti-condition-expression.js +0 -11
  241. package/dist/exports/qti-condition-expression.js.map +0 -1
  242. package/dist/exports/qti-expression.d.ts +0 -8
  243. package/dist/exports/qti-expression.js +0 -10
  244. package/dist/exports/qti-expression.js.map +0 -1
  245. package/dist/exports/qti-test.d.ts +0 -40
  246. package/dist/exports/qti-test.js +0 -1
  247. package/dist/exports/qti-test.js.map +0 -1
  248. package/dist/exports/qti.context.d.ts +0 -14
  249. package/dist/exports/qti.context.js +0 -8
  250. package/dist/exports/qti.context.js.map +0 -1
  251. package/dist/exports/session.context.d.ts +0 -26
  252. package/dist/exports/session.context.js +0 -10
  253. package/dist/exports/session.context.js.map +0 -1
  254. package/dist/exports/test.context.d.ts +0 -21
  255. package/dist/exports/test.context.js +0 -10
  256. package/dist/exports/test.context.js.map +0 -1
  257. package/dist/exports/variables.d.ts +0 -8
  258. package/dist/exports/variables.js +0 -1
  259. package/dist/exports/variables.js.map +0 -1
  260. package/dist/qti-item/components/item-container.d.ts +0 -40
  261. package/dist/qti-item/components/item-container.js +0 -11
  262. package/dist/qti-item/components/item-container.js.map +0 -1
  263. package/dist/qti-item/components/item-correct-response-mode.d.ts +0 -17
  264. package/dist/qti-item/components/item-correct-response-mode.js +0 -62
  265. package/dist/qti-item/components/item-correct-response-mode.js.map +0 -1
  266. package/dist/qti-item/components/item-show-candidate-correction.d.ts +0 -34
  267. package/dist/qti-item/components/item-show-candidate-correction.js +0 -88
  268. package/dist/qti-item/components/item-show-candidate-correction.js.map +0 -1
  269. package/dist/qti-item/components/item-show-correct-response.d.ts +0 -33
  270. package/dist/qti-item/components/item-show-correct-response.js +0 -10
  271. package/dist/qti-item/components/item-show-correct-response.js.map +0 -1
  272. package/dist/qti-item/components/print-item-variables.d.ts +0 -23
  273. package/dist/qti-item/components/print-item-variables.js +0 -9
  274. package/dist/qti-item/components/print-item-variables.js.map +0 -1
  275. package/dist/qti-item/components/styles.d.ts +0 -8
  276. package/dist/qti-item/components/styles.js +0 -14
  277. package/dist/qti-item/components/styles.js.map +0 -1
  278. package/dist/qti-item/core/index.d.ts +0 -51
  279. package/dist/qti-item/core/index.js +0 -26
  280. package/dist/qti-response-declaration-DKr08ANy.d.ts +0 -1397
  281. package/dist/qti-test/components/index.d.ts +0 -33
  282. package/dist/qti-test/components/index.js +0 -87
  283. package/dist/qti-test/components/styles.d.ts +0 -8
  284. package/dist/qti-test/components/styles.js +0 -14
  285. package/dist/qti-test/components/styles.js.map +0 -1
  286. package/dist/qti-test/components/test-check-item.d.ts +0 -16
  287. package/dist/qti-test/components/test-check-item.js +0 -9
  288. package/dist/qti-test/components/test-check-item.js.map +0 -1
  289. package/dist/qti-test/components/test-container.d.ts +0 -39
  290. package/dist/qti-test/components/test-container.js +0 -11
  291. package/dist/qti-test/components/test-container.js.map +0 -1
  292. package/dist/qti-test/components/test-end-attempt.d.ts +0 -16
  293. package/dist/qti-test/components/test-end-attempt.js +0 -9
  294. package/dist/qti-test/components/test-end-attempt.js.map +0 -1
  295. package/dist/qti-test/components/test-item-link.d.ts +0 -18
  296. package/dist/qti-test/components/test-item-link.js +0 -9
  297. package/dist/qti-test/components/test-item-link.js.map +0 -1
  298. package/dist/qti-test/components/test-navigation.d.ts +0 -73
  299. package/dist/qti-test/components/test-navigation.js +0 -13
  300. package/dist/qti-test/components/test-navigation.js.map +0 -1
  301. package/dist/qti-test/components/test-next.d.ts +0 -48
  302. package/dist/qti-test/components/test-next.js +0 -12
  303. package/dist/qti-test/components/test-next.js.map +0 -1
  304. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +0 -23
  305. package/dist/qti-test/components/test-paging-buttons-stamp.js +0 -9
  306. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +0 -1
  307. package/dist/qti-test/components/test-prev.d.ts +0 -46
  308. package/dist/qti-test/components/test-prev.js +0 -12
  309. package/dist/qti-test/components/test-prev.js.map +0 -1
  310. package/dist/qti-test/components/test-print-context.d.ts +0 -25
  311. package/dist/qti-test/components/test-print-context.js +0 -9
  312. package/dist/qti-test/components/test-print-context.js.map +0 -1
  313. package/dist/qti-test/components/test-print-item-variables.d.ts +0 -27
  314. package/dist/qti-test/components/test-print-item-variables.js +0 -9
  315. package/dist/qti-test/components/test-print-item-variables.js.map +0 -1
  316. package/dist/qti-test/components/test-scoring-buttons.d.ts +0 -32
  317. package/dist/qti-test/components/test-scoring-buttons.js +0 -9
  318. package/dist/qti-test/components/test-scoring-buttons.js.map +0 -1
  319. package/dist/qti-test/components/test-scoring-feedback.d.ts +0 -27
  320. package/dist/qti-test/components/test-scoring-feedback.js +0 -9
  321. package/dist/qti-test/components/test-scoring-feedback.js.map +0 -1
  322. package/dist/qti-test/components/test-section-buttons-stamp.d.ts +0 -23
  323. package/dist/qti-test/components/test-section-buttons-stamp.js +0 -9
  324. package/dist/qti-test/components/test-section-buttons-stamp.js.map +0 -1
  325. package/dist/qti-test/components/test-section-link.d.ts +0 -18
  326. package/dist/qti-test/components/test-section-link.js +0 -9
  327. package/dist/qti-test/components/test-section-link.js.map +0 -1
  328. package/dist/qti-test/components/test-show-correct-response.d.ts +0 -39
  329. package/dist/qti-test/components/test-show-correct-response.js +0 -10
  330. package/dist/qti-test/components/test-show-correct-response.js.map +0 -1
  331. package/dist/qti-test/components/test-stamp.d.ts +0 -31
  332. package/dist/qti-test/components/test-stamp.js +0 -9
  333. package/dist/qti-test/components/test-stamp.js.map +0 -1
  334. package/dist/qti-test/components/test-view-toggle.d.ts +0 -19
  335. package/dist/qti-test/components/test-view-toggle.js +0 -9
  336. package/dist/qti-test/components/test-view-toggle.js.map +0 -1
  337. package/dist/qti-test/components/test-view.d.ts +0 -24
  338. package/dist/qti-test/components/test-view.js +0 -10
  339. package/dist/qti-test/components/test-view.js.map +0 -1
  340. package/dist/qti-test/core/index.d.ts +0 -105
  341. package/dist/qti-test/core/index.js +0 -36
  342. package/dist/qti-test/core/index.js.map +0 -1
  343. package/dist/qti-test-feedback-CZsbp6z4.d.ts +0 -91
  344. package/dist/qti-transform-item-C9WtMeDR.d.ts +0 -39
  345. /package/dist/qti-item/{core/index.js.map → index.js.map} +0 -0
  346. /package/dist/qti-test/{components/index.js.map → index.js.map} +0 -0
@@ -0,0 +1,593 @@
1
+ import * as lit_html from 'lit-html';
2
+ import { e as VariableValue, O as OutcomeVariable, V as VariableDeclaration } from '../variables-Vgyr6yyW.js';
3
+ import * as lit from 'lit';
4
+ import { LitElement, PropertyValues, nothing } from 'lit';
5
+ import { T as TestContext, Q as QtiModalFeedback, c as QtiContext } from '../test.context-L609DNAz.js';
6
+ export { I as INITIAL_TEST_CONTEXT, t as testContext } from '../test.context-L609DNAz.js';
7
+ import { Q as QtiAssessmentItem } from '../qti-assessment-item-D77dJ1Ot.js';
8
+ import { TemplateFunction } from '@heximal/templates';
9
+ import { C as ComputedItemContext } from '../computed-item.context-DpK-sS0T.js';
10
+ import { C as ConfigContext } from '../config.context-CmQ9L62n.js';
11
+ import { ViewMode } from 'storybook/internal/types';
12
+
13
+ type View = 'author' | 'candidate' | 'proctor' | 'scorer' | 'testConstructor' | 'tutor' | '';
14
+ interface SessionContext {
15
+ navPartId?: string | null;
16
+ navSectionId?: string | null;
17
+ navItemRefId?: string | null;
18
+ navItemLoading?: boolean;
19
+ navTestLoading?: boolean;
20
+ view?: View;
21
+ }
22
+
23
+ declare class QtiAssessmentTest extends LitElement {
24
+ identifier: string;
25
+ get title(): string;
26
+ set title(value: string);
27
+ _testContext?: TestContext;
28
+ private _title;
29
+ connectedCallback(): Promise<void>;
30
+ render(): lit_html.TemplateResult<1>;
31
+ }
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ 'qti-assessment-test': QtiAssessmentTest;
35
+ }
36
+ }
37
+
38
+ declare abstract class TestBase extends LitElement {
39
+ testContext: Readonly<TestContext>;
40
+ sessionContext: Readonly<SessionContext>;
41
+ protected _testElement: QtiAssessmentTest;
42
+ updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void;
43
+ constructor();
44
+ private _updateItemVariablesInTestContext;
45
+ /**
46
+ * Updates the variables of an assessment item in the test context.
47
+ * - Matches the assessment item with the corresponding test context item.
48
+ * - If the item is not found, logs a warning.
49
+ * - Updates variables in the test context if exactly one variable exists.
50
+ * - Otherwise, syncs the assessment item's variables with the test context.
51
+ *
52
+ * @param assessmentItem - The assessment item to update.
53
+ */
54
+ private _updateItemInTestContext;
55
+ }
56
+
57
+ declare class QtiAssessmentItemRef extends LitElement {
58
+ category?: string;
59
+ identifier?: string;
60
+ required?: boolean;
61
+ fixed?: boolean;
62
+ href?: string;
63
+ weigths: Map<string, number>;
64
+ xmlDoc: DocumentFragment;
65
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
66
+ get assessmentItem(): QtiAssessmentItem | null;
67
+ myTemplate: TemplateFunction;
68
+ connectedCallback(): Promise<void>;
69
+ render(): unknown;
70
+ }
71
+ declare global {
72
+ interface HTMLElementTagNameMap {
73
+ 'qti-assessment-item-ref': QtiAssessmentItemRef;
74
+ }
75
+ }
76
+
77
+ declare class QtiAssessmentSection extends LitElement {
78
+ identifier: string;
79
+ required: string;
80
+ fixed: boolean;
81
+ get title(): string;
82
+ set title(value: string);
83
+ visible: boolean;
84
+ keepTogether: boolean;
85
+ _testContext?: TestContext;
86
+ private _title;
87
+ connectedCallback(): Promise<void>;
88
+ render(): lit_html.TemplateResult<1>;
89
+ }
90
+ declare global {
91
+ interface HTMLElementTagNameMap {
92
+ 'qti-assessment-section': QtiAssessmentSection;
93
+ }
94
+ }
95
+
96
+ declare class QtiTestPart extends LitElement {
97
+ identifier: string;
98
+ get title(): string;
99
+ set title(value: string);
100
+ class: string;
101
+ navigationMode: 'linear' | 'nonlinear';
102
+ submissionMode: 'individual' | 'simultaneous';
103
+ private _title;
104
+ connectedCallback(): Promise<void>;
105
+ render(): lit_html.TemplateResult<1>;
106
+ }
107
+ declare global {
108
+ interface HTMLElementTagNameMap {
109
+ 'qti-test-part': QtiTestPart;
110
+ }
111
+ }
112
+
113
+ declare class QtiTestFeedback extends QtiModalFeedback {
114
+ static styles: lit.CSSResult;
115
+ render(): lit_html.TemplateResult<1>;
116
+ }
117
+ declare global {
118
+ interface HTMLElementTagNameMap {
119
+ 'qti-test-feedback': QtiTestFeedback;
120
+ }
121
+ }
122
+
123
+ interface IQtiTest {
124
+ testContext: Readonly<TestContext>;
125
+ sessionContext: Readonly<SessionContext>;
126
+ updateItemVariables(itemRefID: string, variables: VariableValue<string | string[] | null>[]): void;
127
+ }
128
+
129
+ declare const QtiTest_base: (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {}) & (abstract new (...args: any[]) => {
130
+ updateOutcomeVariable(identifier: string, value: string | string[] | undefined): void;
131
+ getOutcome(identifier: string): Readonly<OutcomeVariable>;
132
+ getVariable(identifier: string): Readonly<VariableDeclaration<string | string[] | null>>;
133
+ outcomeProcessing(): boolean;
134
+ }) & typeof TestBase;
135
+ /**
136
+ * `<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.
137
+ *
138
+ * This component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.
139
+ *
140
+ * ### Example Usage
141
+ *
142
+ * Minimal example including navigation:
143
+ *
144
+ * ```html
145
+ * <qti-test>
146
+ * <test-navigation>
147
+ * <test-container test-url="./path/to/assessment.xml"></test-container>
148
+ * <nav class="flex">
149
+ * <test-prev></test-prev>
150
+ * <test-next></test-next>
151
+ * </nav>
152
+ * </test-navigation>
153
+ * </qti-test>
154
+ * ```
155
+ *
156
+ * Use the following file structure
157
+ * A qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.
158
+ *
159
+ * ```plaintext
160
+ * Root/
161
+ * ├── index.html
162
+ * └── /assets/api/examples/
163
+ * ├── assessmenttest.xml
164
+ * └── imsmanifest.xml
165
+ *
166
+ * ```
167
+ *
168
+ * ### Test components
169
+ *
170
+ * Use test components inside the qti-test component for added functionality.
171
+ * ### Test next
172
+ * `<test-next> | TestNext`
173
+ *
174
+ * ### Test prev
175
+ *
176
+ * `<test-prev> | TestPrev`
177
+ * ### Test components
178
+ *
179
+ * You can use normal class names to style the elements.
180
+ * And you can use the `test-prev` and `test-next` elements to navigate through the test.
181
+ *
182
+ */
183
+ declare class QtiTest extends QtiTest_base implements IQtiTest {
184
+ /**
185
+ * Renders the component's template.
186
+ * Provides a default `<slot>` for content projection.
187
+ */
188
+ connectedCallback(): Promise<void>;
189
+ render(): lit_html.TemplateResult<1>;
190
+ }
191
+ declare global {
192
+ interface HTMLElementTagNameMap {
193
+ 'qti-test': QtiTest;
194
+ }
195
+ }
196
+
197
+ type ComputedItem = ComputedItemContext & {
198
+ categories?: string[];
199
+ type?: 'info' | 'regular';
200
+ index?: number;
201
+ active?: boolean;
202
+ };
203
+ type ComputedContext = {
204
+ view: View;
205
+ identifier: string;
206
+ title: string;
207
+ testParts: {
208
+ active?: boolean;
209
+ identifier: string;
210
+ navigationMode: 'linear' | 'nonlinear';
211
+ submissionMode: 'individual' | 'simultaneous';
212
+ sections: {
213
+ active?: boolean;
214
+ identifier: string;
215
+ title: string;
216
+ completed?: boolean;
217
+ items: ComputedItem[];
218
+ }[];
219
+ }[];
220
+ };
221
+
222
+ type CustomEventMap = {
223
+ 'test-end-attempt': CustomEvent;
224
+ 'test-show-correct-response': CustomEvent<{
225
+ value: boolean;
226
+ }>;
227
+ };
228
+ declare global {
229
+ interface GlobalEventHandlersEventMap extends CustomEventMap {
230
+ }
231
+ }
232
+ declare class TestNavigation extends LitElement {
233
+ identifier: any;
234
+ initContext: {
235
+ identifier: string;
236
+ [key: string]: any;
237
+ }[];
238
+ qtiContext: QtiContext;
239
+ configContext: ConfigContext;
240
+ protected _testContext?: TestContext;
241
+ protected _sessionContext?: SessionContext;
242
+ protected computedContext: ComputedContext;
243
+ autoScoreItems: boolean;
244
+ private _testElement;
245
+ constructor();
246
+ /**
247
+ * Handles the 'test-end-attempt' event.
248
+ * @private
249
+ * @listens TestNavigation#test-end-attempt
250
+ * @param {CustomEvent} event - The custom event object.
251
+ */
252
+ private _handleTestEndAttempt;
253
+ /**
254
+ * Handles the 'test-show-correct-response' event.
255
+ * @private
256
+ * @listens TestNavigation#test-show-correct-response
257
+ * @param {CustomEvent} event - The custom event object.
258
+ */
259
+ private _handleTestShowCorrectResponse;
260
+ /**
261
+ * Handles the 'test-show-candidate-correction' event.
262
+ * @private
263
+ * @listens TestNavigation#test-show-candidate-correction
264
+ * @param {CustomEvent} event - The custom event object.
265
+ */
266
+ private _handleTestShowCandidateCorrection;
267
+ private _handleTestUpdateOutcomeVariable;
268
+ private _handleInteractionChanged;
269
+ render(): lit_html.TemplateResult<1>;
270
+ private _handleTestConnected;
271
+ /**
272
+ * Extract default values from a qti-context-declaration element
273
+ */
274
+ private _extractDefaultValues;
275
+ private _handleItemConnected;
276
+ protected willUpdate(_changedProperties: PropertyValues): void;
277
+ }
278
+
279
+ /**
280
+ * Represents a custom element for navigating to the next test item.
281
+ *
282
+ * @remarks
283
+ * This element provides functionality for navigating to the next test item.
284
+ *
285
+ * @example
286
+ * ```html
287
+ * <test-next></test-next>
288
+ * ```
289
+ */
290
+ declare class TestNext extends LitElement {
291
+ _internalDisabled: boolean;
292
+ protected computedContext: ComputedContext;
293
+ sectionItems: ComputedItem[];
294
+ itemIndex: number;
295
+ _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
296
+ static styles: lit.CSSResult;
297
+ private _internals;
298
+ constructor();
299
+ connectedCallback(): void;
300
+ willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
301
+ checkDisabled(): void;
302
+ protected _requestItem(identifier: string): void;
303
+ render(): lit_html.TemplateResult<1>;
304
+ }
305
+ declare global {
306
+ interface HTMLElementTagNameMap {
307
+ 'test-next': TestNext;
308
+ }
309
+ }
310
+
311
+ /**
312
+ * Represents a custom element for navigating to the previous test item.
313
+ *
314
+ * @remarks
315
+ * This element provides functionality for navigating to the previous test item.
316
+ *
317
+ * @example
318
+ * ```html
319
+ * <test-prev></test-prev>
320
+ * ```
321
+ */
322
+ declare class TestPrev extends LitElement {
323
+ _internalDisabled: boolean;
324
+ private computedContext;
325
+ sectionItems: ComputedItem[];
326
+ itemIndex: number;
327
+ _handleTestElementChange(_oldValue: ComputedContext, newValue: ComputedContext): void;
328
+ static styles: lit.CSSResult;
329
+ constructor();
330
+ willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
331
+ checkDisabled(): void;
332
+ protected _requestItem(identifier: string): void;
333
+ render(): lit_html.TemplateResult<1>;
334
+ }
335
+ declare global {
336
+ interface HTMLElementTagNameMap {
337
+ 'test-previous': TestPrev;
338
+ }
339
+ }
340
+
341
+ declare class TestView extends LitElement {
342
+ static DEFAULT_VIEW_OPTIONS: string[];
343
+ private sessionContext;
344
+ /** label accompanying the select view dropdown */
345
+ label: string;
346
+ /** The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor'] */
347
+ viewOptions: any;
348
+ protected _handleViewOptionsChange: () => void;
349
+ connectedCallback(): void;
350
+ private _viewOptions;
351
+ private updateViewOptions;
352
+ protected _switchView(view: string): void;
353
+ render(): lit_html.TemplateResult<1>;
354
+ }
355
+ declare global {
356
+ interface HTMLElementTagNameMap {
357
+ 'test-view': TestView;
358
+ }
359
+ }
360
+
361
+ declare class TestItemLink extends LitElement {
362
+ static styles: lit.CSSResult;
363
+ private itemId;
364
+ constructor();
365
+ protected _requestItem(identifier: string): void;
366
+ render(): lit_html.TemplateResult<1>;
367
+ }
368
+ declare global {
369
+ interface HTMLElementTagNameMap {
370
+ 'test-item-link': TestItemLink;
371
+ }
372
+ }
373
+
374
+ declare class TestEndAttempt extends LitElement {
375
+ static styles: lit.CSSResult;
376
+ constructor();
377
+ render(): lit_html.TemplateResult<1>;
378
+ }
379
+ declare global {
380
+ interface HTMLElementTagNameMap {
381
+ 'test-end-attempt': TestEndAttempt;
382
+ }
383
+ }
384
+
385
+ /**
386
+ * @deprecated test-show-correct-response is deprecated and will be removed in the future.
387
+ */
388
+ declare class TestShowCorrectResponse extends LitElement {
389
+ computedContext?: ComputedContext;
390
+ static styles: lit.CSSResult;
391
+ shown: boolean;
392
+ disabled: boolean;
393
+ showCorrectText: string;
394
+ hideCorrectText: string;
395
+ noCorrectResponseText: string;
396
+ private _previousActiveItem?;
397
+ willUpdate(_changedProperties: Map<string | number | symbol, unknown>): void;
398
+ private _toggleState;
399
+ private _getDisplayedText;
400
+ render(): lit_html.TemplateResult<1>;
401
+ }
402
+ declare global {
403
+ interface HTMLElementTagNameMap {
404
+ 'test-show-correct-response': TestShowCorrectResponse;
405
+ }
406
+ }
407
+
408
+ /**
409
+ * @deprecated test-paging-buttons-stamp is deprecated and will be removed in the future.
410
+ */
411
+ declare class TestPagingButtonsStamp extends LitElement {
412
+ private computedContext;
413
+ myTemplate: TemplateFunction;
414
+ private _internals;
415
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
416
+ constructor();
417
+ connectedCallback(): void;
418
+ render(): lit_html.TemplateResult<1>;
419
+ }
420
+ declare global {
421
+ interface HTMLElementTagNameMap {
422
+ 'test-paging-buttons-stamp': TestPagingButtonsStamp;
423
+ }
424
+ }
425
+
426
+ /**
427
+ * `<test-container>` is a custom element designed for hosting the qti-assessment-item.
428
+ * The `qti-assessment-test` will be placed inside the shadow DOM of this element.
429
+ * The element loads the test from the provided URL and renders it inside the shadow DOM.
430
+ *
431
+ * ```html
432
+ * <qti-test>
433
+ * <test-navigation>
434
+ * <test-container class="m-4 bg-white" test-url="./path/to/assessmenttest.xml"></test-container>
435
+ * </test-navigation>
436
+ * </qti-test>
437
+ * ```
438
+ */
439
+ declare class TestContainer extends LitElement {
440
+ /** URL of the item to load */
441
+ testURL: string;
442
+ /** A parsed HTML document */
443
+ testDoc: DocumentFragment;
444
+ /** The raw XML string */
445
+ testXML: string;
446
+ /** Template content if provided */
447
+ private templateContent;
448
+ protected handleTestURLChange(): Promise<void>;
449
+ protected handleTestXMLChange(): void;
450
+ connectedCallback(): Promise<void>;
451
+ private initializeTemplateContent;
452
+ private applyStyles;
453
+ render(): lit_html.TemplateResult<1>;
454
+ }
455
+ declare global {
456
+ interface HTMLElementTagNameMap {
457
+ 'test-container': TestContainer;
458
+ }
459
+ }
460
+
461
+ declare class TestPrintVariables extends LitElement {
462
+ computedContext?: ComputedContext;
463
+ static styles: lit.CSSResult;
464
+ render(): lit_html.TemplateResult<1>;
465
+ }
466
+ declare global {
467
+ interface HTMLElementTagNameMap {
468
+ 'test-print-item-variables': TestPrintVariables;
469
+ }
470
+ }
471
+
472
+ /**
473
+ * @deprecated test-section-buttons-stamp is deprecated and will be removed in the future.
474
+ */
475
+ declare class TestSectionButtonsStamp extends LitElement {
476
+ private computedContext;
477
+ myTemplate: TemplateFunction;
478
+ private _internals;
479
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
480
+ constructor();
481
+ connectedCallback(): void;
482
+ render(): lit_html.TemplateResult<1>;
483
+ }
484
+ declare global {
485
+ interface HTMLElementTagNameMap {
486
+ 'test-section-buttons-stamp': TestSectionButtonsStamp;
487
+ }
488
+ }
489
+
490
+ declare class TestSectionLink extends LitElement {
491
+ static styles: lit.CSSResult;
492
+ private sectionId;
493
+ private _requestItem;
494
+ constructor();
495
+ render(): lit_html.TemplateResult<1>;
496
+ }
497
+ declare global {
498
+ interface HTMLElementTagNameMap {
499
+ 'test-section-link': TestSectionLink;
500
+ }
501
+ }
502
+
503
+ declare class TestPrintContext extends LitElement {
504
+ computedContext?: ComputedContext;
505
+ render(): lit_html.TemplateResult<1>;
506
+ }
507
+ declare global {
508
+ interface HTMLElementTagNameMap {
509
+ 'test-print-context': TestPrintContext;
510
+ }
511
+ }
512
+
513
+ /**
514
+ * A custom web component that renders a test stamp using the Lit framework.
515
+ * This component is deprecated and will be removed in the future.
516
+ * @customElement
517
+ * @extends {LitElement}
518
+ */
519
+ declare class TestStamp extends LitElement {
520
+ /**
521
+ * Indicates whether the component is in debug mode.
522
+ * When set to `true`, the available objects and properties (i.e.: stampContext) is displayed.
523
+ */
524
+ debug: boolean;
525
+ private computedContext;
526
+ private stampContext;
527
+ myTemplate: TemplateFunction;
528
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
529
+ connectedCallback(): void;
530
+ protected willUpdate(_changedProperties: PropertyValues): void;
531
+ render(): lit_html.TemplateResult<1>;
532
+ }
533
+ declare global {
534
+ interface HTMLElementTagNameMap {
535
+ 'test-stamp': TestStamp;
536
+ }
537
+ }
538
+
539
+ declare class TestScoringButtons extends LitElement {
540
+ view: string;
541
+ disabled: boolean;
542
+ myTemplate: TemplateFunction | null;
543
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
544
+ connectedCallback(): void;
545
+ protected computedContext?: ComputedContext;
546
+ private _changeOutcomeScore;
547
+ render(): lit_html.TemplateResult<1> | typeof nothing;
548
+ constructor();
549
+ }
550
+ declare global {
551
+ interface HTMLElementTagNameMap {
552
+ 'test-scoring-buttons': TestScoringButtons;
553
+ }
554
+ }
555
+
556
+ declare class TestViewToggle extends LitElement {
557
+ myTemplate: any;
558
+ protected createRenderRoot(): HTMLElement | DocumentFragment;
559
+ private sessionContext;
560
+ connectedCallback(): void;
561
+ _switchView(view: string): void;
562
+ protected firstUpdated(_changedProperties: PropertyValues): void;
563
+ render(): lit_html.TemplateResult<1>;
564
+ }
565
+ declare global {
566
+ interface HTMLElementTagNameMap {
567
+ 'test-view-toggle': TestViewToggle;
568
+ }
569
+ }
570
+
571
+ declare class TestScoringFeedback extends LitElement {
572
+ protected computedContext?: ComputedContext;
573
+ view: ViewMode;
574
+ render(): lit_html.TemplateResult<1>;
575
+ }
576
+ declare global {
577
+ interface HTMLElementTagNameMap {
578
+ 'test-scoring-feedback': TestScoringFeedback;
579
+ }
580
+ }
581
+
582
+ declare class TestCheckItem extends LitElement {
583
+ static styles: lit.CSSResult;
584
+ constructor();
585
+ render(): lit_html.TemplateResult<1>;
586
+ }
587
+ declare global {
588
+ interface HTMLElementTagNameMap {
589
+ 'test-check-item': TestCheckItem;
590
+ }
591
+ }
592
+
593
+ export { QtiAssessmentItemRef, QtiAssessmentSection, QtiAssessmentTest, QtiTest, QtiTestFeedback, QtiTestPart, TestCheckItem, TestContainer, TestContext, TestEndAttempt, TestItemLink, TestNavigation, TestNext, TestPagingButtonsStamp, TestPrev, TestPrintContext, TestPrintVariables, TestScoringButtons, TestScoringFeedback, TestSectionButtonsStamp, TestSectionLink, TestShowCorrectResponse, TestStamp, TestView, TestViewToggle };
@@ -0,0 +1,62 @@
1
+ import {
2
+ QtiAssessmentItemRef,
3
+ QtiAssessmentSection,
4
+ QtiAssessmentTest,
5
+ QtiTest,
6
+ QtiTestFeedback,
7
+ QtiTestPart,
8
+ TestCheckItem,
9
+ TestContainer,
10
+ TestEndAttempt,
11
+ TestItemLink,
12
+ TestNavigation,
13
+ TestNext,
14
+ TestPagingButtonsStamp,
15
+ TestPrev,
16
+ TestPrintContext,
17
+ TestPrintVariables,
18
+ TestScoringButtons,
19
+ TestScoringFeedback,
20
+ TestSectionButtonsStamp,
21
+ TestSectionLink,
22
+ TestShowCorrectResponse,
23
+ TestStamp,
24
+ TestView,
25
+ TestViewToggle
26
+ } from "../chunks/chunk-TJ6ZOT7A.js";
27
+ import "../chunks/chunk-LSEB52SP.js";
28
+ import {
29
+ INITIAL_TEST_CONTEXT,
30
+ testContext
31
+ } from "../chunks/chunk-GUDRSXIP.js";
32
+ import "../chunks/chunk-O5N4DCU6.js";
33
+ import "../chunks/chunk-JDY5GL7E.js";
34
+ export {
35
+ INITIAL_TEST_CONTEXT,
36
+ QtiAssessmentItemRef,
37
+ QtiAssessmentSection,
38
+ QtiAssessmentTest,
39
+ QtiTest,
40
+ QtiTestFeedback,
41
+ QtiTestPart,
42
+ TestCheckItem,
43
+ TestContainer,
44
+ TestEndAttempt,
45
+ TestItemLink,
46
+ TestNavigation,
47
+ TestNext,
48
+ TestPagingButtonsStamp,
49
+ TestPrev,
50
+ TestPrintContext,
51
+ TestPrintVariables,
52
+ TestScoringButtons,
53
+ TestScoringFeedback,
54
+ TestSectionButtonsStamp,
55
+ TestSectionLink,
56
+ TestShowCorrectResponse,
57
+ TestStamp,
58
+ TestView,
59
+ TestViewToggle,
60
+ testContext
61
+ };
62
+ //# sourceMappingURL=index.js.map
@@ -1,4 +1,40 @@
1
- export { M as ModuleResolutionConfig, q as qtiTransformItem, t as transformItemApi } from '../qti-transform-item-C9WtMeDR.js';
1
+ interface ModuleResolutionConfig {
2
+ waitSeconds?: number;
3
+ context?: string;
4
+ catchError?: boolean;
5
+ urlArgs?: string;
6
+ paths: {
7
+ [key: string]: string | string[];
8
+ };
9
+ shim?: {
10
+ [key: string]: {
11
+ deps?: string[];
12
+ exports?: string;
13
+ };
14
+ };
15
+ }
16
+ type transformItemApi = {
17
+ load: (uri: string) => {
18
+ promise: Promise<transformItemApi>;
19
+ request: XMLHttpRequest | null;
20
+ };
21
+ parse: (xmlString: string) => transformItemApi;
22
+ path: (location: string) => transformItemApi;
23
+ fn: (fn: (xmlFragment: XMLDocument) => void) => transformItemApi;
24
+ pciHooks: (uri: string) => transformItemApi;
25
+ configurePci: (baseUrl: string, getModuleResolutionConfig: (baseUrl: string, fileUrl: string) => Promise<ModuleResolutionConfig>, selector?: string) => Promise<transformItemApi>;
26
+ extendElementName: (elementName: string, extend: string) => transformItemApi;
27
+ extendElementsWithClass: (param?: string) => transformItemApi;
28
+ customInteraction: (baseRef: string, baseItem: string) => transformItemApi;
29
+ convertCDATAtoComment: () => transformItemApi;
30
+ shuffleInteractions: () => transformItemApi;
31
+ stripStyleSheets: () => transformItemApi;
32
+ html: () => string;
33
+ xml: () => string;
34
+ htmlDoc: () => DocumentFragment;
35
+ xmlDoc: () => XMLDocument;
36
+ };
37
+ declare const qtiTransformItem: (cache?: boolean) => transformItemApi;
2
38
 
3
39
  declare const qtiTransformManifest: () => {
4
40
  load: (uri: string) => Promise<{
@@ -42,4 +78,4 @@ type transformTestApi = {
42
78
  };
43
79
  declare const qtiTransformTest: () => transformTestApi;
44
80
 
45
- export { qtiTransformManifest, qtiTransformTest, type transformTestApi };
81
+ export { type ModuleResolutionConfig, qtiTransformItem, qtiTransformManifest, qtiTransformTest, type transformItemApi, type transformTestApi };
@@ -2,8 +2,7 @@ import {
2
2
  qtiTransformItem,
3
3
  qtiTransformManifest,
4
4
  qtiTransformTest
5
- } from "../chunks/chunk-WFUXZ4UT.js";
6
- import "../chunks/chunk-H2JE6IVU.js";
5
+ } from "../chunks/chunk-JDY5GL7E.js";
7
6
  export {
8
7
  qtiTransformItem,
9
8
  qtiTransformManifest,