@citolab/qti-components 7.0.3 → 7.0.5

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 (283) hide show
  1. package/cdn/chunks/chunk-4UJBK6JO.js +1 -0
  2. package/cdn/chunks/chunk-5FCXUJAG.js +23 -0
  3. package/cdn/chunks/chunk-5O3Z7TDV.js +1 -0
  4. package/cdn/chunks/chunk-65LFT33L.js +8 -0
  5. package/cdn/chunks/chunk-6D25UFJR.js +8 -0
  6. package/cdn/chunks/chunk-6DMSHH5X.js +0 -0
  7. package/cdn/chunks/chunk-6UGPNL7M.js +1 -0
  8. package/cdn/chunks/chunk-CFXQCNG6.js +3523 -0
  9. package/cdn/chunks/chunk-CSUKVUZF.js +3 -0
  10. package/cdn/chunks/chunk-CSY3WI5A.js +1 -0
  11. package/cdn/chunks/chunk-DAZR7RUI.js +0 -0
  12. package/cdn/chunks/chunk-EHK76KRT.js +1 -0
  13. package/cdn/chunks/chunk-EOPEMJS3.js +0 -0
  14. package/cdn/chunks/chunk-G5O7EN45.js +5 -0
  15. package/cdn/chunks/chunk-GEFUIFM7.js +0 -0
  16. package/cdn/chunks/chunk-JLNHEMQG.js +1 -0
  17. package/cdn/chunks/chunk-LPWIM7QJ.js +902 -0
  18. package/cdn/chunks/chunk-M3YRM3AV.js +1 -0
  19. package/cdn/chunks/chunk-M6BOWL2U.js +1 -0
  20. package/cdn/chunks/chunk-P5IE36FO.js +8 -0
  21. package/cdn/chunks/chunk-PXH5KN5O.js +1 -0
  22. package/cdn/chunks/chunk-RBEI6NIF.js +1 -0
  23. package/cdn/chunks/chunk-SMKIYFFI.js +1 -0
  24. package/cdn/chunks/chunk-SRLMW23F.js +0 -0
  25. package/cdn/chunks/chunk-T3YDLD2H.js +11 -0
  26. package/cdn/chunks/chunk-T4HD2C4F.js +1 -0
  27. package/cdn/chunks/chunk-T6IXJ4W4.js +1 -0
  28. package/cdn/chunks/chunk-TFAUBGP2.js +0 -0
  29. package/cdn/chunks/chunk-UIEC4LXR.js +17 -0
  30. package/cdn/chunks/chunk-V44O3GTW.js +0 -0
  31. package/cdn/chunks/chunk-V6B54FQW.js +5 -0
  32. package/cdn/chunks/chunk-V6KX6BQN.js +1 -0
  33. package/cdn/chunks/chunk-VYANBI35.js +1 -0
  34. package/cdn/chunks/chunk-XUJ7TXHW.js +1 -0
  35. package/cdn/chunks/chunk-ZIZLFFSG.js +0 -0
  36. package/cdn/index.css +1 -0
  37. package/cdn/index.global.js +45 -45
  38. package/cdn/index.js +354 -4148
  39. package/cdn/qti-components/index.global.js +226 -0
  40. package/cdn/qti-components/index.js +924 -0
  41. package/cdn/qti-item/components/index.css +1 -0
  42. package/cdn/qti-item/components/index.global.js +149 -0
  43. package/cdn/qti-item/components/index.js +3549 -0
  44. package/cdn/qti-item/components/item-container.css +1 -0
  45. package/cdn/qti-item/components/item-container.global.js +149 -0
  46. package/cdn/qti-item/components/item-container.js +3549 -0
  47. package/cdn/qti-item/index.css +1 -0
  48. package/cdn/qti-item/index.global.js +149 -0
  49. package/cdn/qti-item/index.js +3549 -0
  50. package/cdn/qti-item/qti-item.global.js +114 -0
  51. package/cdn/qti-item/qti-item.js +1 -0
  52. package/cdn/qti-loader/index.global.js +1 -0
  53. package/cdn/qti-loader/index.js +23 -0
  54. package/cdn/qti-test/components/index.css +1 -0
  55. package/cdn/qti-test/components/index.global.js +242 -0
  56. package/cdn/qti-test/components/index.js +3598 -0
  57. package/cdn/qti-test/components/styles.global.js +44 -0
  58. package/cdn/qti-test/components/styles.js +17 -0
  59. package/cdn/qti-test/components/test-component.abstract.global.js +170 -0
  60. package/cdn/qti-test/components/test-component.abstract.js +1 -0
  61. package/cdn/qti-test/components/test-container.css +1 -0
  62. package/cdn/qti-test/components/test-container.global.js +149 -0
  63. package/cdn/qti-test/components/test-container.js +3549 -0
  64. package/cdn/qti-test/components/test-item-link.global.js +170 -0
  65. package/cdn/qti-test/components/test-item-link.js +24 -0
  66. package/cdn/qti-test/components/test-next.global.js +170 -0
  67. package/cdn/qti-test/components/test-next.js +24 -0
  68. package/cdn/qti-test/components/test-next.spec.css +1 -0
  69. package/cdn/qti-test/components/test-next.spec.global.js +297 -0
  70. package/cdn/qti-test/components/test-next.spec.js +5215 -0
  71. package/cdn/qti-test/components/test-paging-buttons-stamp.global.js +207 -0
  72. package/cdn/qti-test/components/test-paging-buttons-stamp.js +3 -0
  73. package/cdn/qti-test/components/test-prev.global.js +170 -0
  74. package/cdn/qti-test/components/test-prev.js +24 -0
  75. package/cdn/qti-test/components/test-view.global.js +170 -0
  76. package/cdn/qti-test/components/test-view.js +11 -0
  77. package/cdn/qti-test/context/index.global.js +58 -0
  78. package/cdn/qti-test/context/index.js +1 -0
  79. package/cdn/qti-test/context/test.context.global.js +58 -0
  80. package/cdn/qti-test/context/test.context.js +1 -0
  81. package/cdn/qti-test/index.css +1 -0
  82. package/cdn/qti-test/index.global.js +242 -0
  83. package/cdn/qti-test/index.js +3598 -0
  84. package/cdn/qti-test/mixins/index.global.js +1 -0
  85. package/cdn/qti-test/mixins/index.js +23 -0
  86. package/cdn/qti-test/mixins/test-loader.mixin.global.js +1 -0
  87. package/cdn/qti-test/mixins/test-loader.mixin.js +23 -0
  88. package/cdn/qti-test/mixins/test-navigation.mixin.global.js +1 -0
  89. package/cdn/qti-test/mixins/test-navigation.mixin.js +1 -0
  90. package/cdn/qti-test/mixins/test-view.mixin.global.js +1 -0
  91. package/cdn/qti-test/mixins/test-view.mixin.js +1 -0
  92. package/cdn/qti-test/qti-assessment-test/index.global.js +170 -0
  93. package/cdn/qti-test/qti-assessment-test/index.js +1 -0
  94. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.global.js +170 -0
  95. package/cdn/qti-test/qti-assessment-test/qti-assessment-item-ref.js +1 -0
  96. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.global.js +170 -0
  97. package/cdn/qti-test/qti-assessment-test/qti-assessment-section.js +1 -0
  98. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.global.js +170 -0
  99. package/cdn/qti-test/qti-assessment-test/qti-assessment-test.js +1 -0
  100. package/cdn/qti-test/qti-assessment-test/qti-test-part.global.js +114 -0
  101. package/cdn/qti-test/qti-assessment-test/qti-test-part.js +1 -0
  102. package/cdn/qti-test/qti-test.global.js +170 -0
  103. package/cdn/qti-test/qti-test.js +23 -0
  104. package/cdn/qti-test/test-base.global.js +170 -0
  105. package/cdn/qti-test/test-base.js +1 -0
  106. package/cdn/qti-transformers/index.global.js +1 -0
  107. package/cdn/qti-transformers/index.js +23 -0
  108. package/dist/chunks/chunk-3G2DDBJW.js +44 -0
  109. package/dist/chunks/chunk-3G2DDBJW.js.map +1 -0
  110. package/dist/chunks/chunk-3NLCJYSX.js +1 -0
  111. package/dist/chunks/chunk-3NLCJYSX.js.map +1 -0
  112. package/dist/chunks/chunk-3OXGDCSU.js +6253 -0
  113. package/dist/chunks/chunk-3OXGDCSU.js.map +1 -0
  114. package/dist/chunks/chunk-3ROZMGAN.js +43 -0
  115. package/dist/chunks/chunk-3ROZMGAN.js.map +1 -0
  116. package/dist/chunks/chunk-4O5F7WV7.js +30 -0
  117. package/dist/chunks/chunk-4O5F7WV7.js.map +1 -0
  118. package/dist/chunks/chunk-6YE2KJ4C.js +55 -0
  119. package/dist/chunks/chunk-6YE2KJ4C.js.map +1 -0
  120. package/dist/chunks/chunk-AAQCM2FP.js +56 -0
  121. package/dist/chunks/chunk-AAQCM2FP.js.map +1 -0
  122. package/dist/chunks/chunk-D3RGDWKP.js +37 -0
  123. package/dist/chunks/chunk-D3RGDWKP.js.map +1 -0
  124. package/dist/chunks/chunk-DJLE6EV2.js +36 -0
  125. package/dist/chunks/chunk-DJLE6EV2.js.map +1 -0
  126. package/dist/chunks/chunk-ELDMXTUQ.js +31 -0
  127. package/dist/chunks/chunk-ELDMXTUQ.js.map +1 -0
  128. package/dist/chunks/chunk-EW5CTHAD.js +1 -0
  129. package/dist/chunks/chunk-EW5CTHAD.js.map +1 -0
  130. package/dist/chunks/chunk-HWA4A3SR.js +50 -0
  131. package/dist/chunks/chunk-HWA4A3SR.js.map +1 -0
  132. package/dist/chunks/chunk-IKZWK2C5.js +1 -0
  133. package/dist/chunks/chunk-IKZWK2C5.js.map +1 -0
  134. package/dist/chunks/chunk-IP7JSYO6.js +1 -0
  135. package/dist/chunks/chunk-IP7JSYO6.js.map +1 -0
  136. package/dist/chunks/chunk-JE6BMXZU.js +94 -0
  137. package/dist/chunks/chunk-JE6BMXZU.js.map +1 -0
  138. package/dist/chunks/chunk-JSPJGWGT.js +20 -0
  139. package/dist/chunks/chunk-JSPJGWGT.js.map +1 -0
  140. package/dist/chunks/chunk-LKINC6JO.js +118 -0
  141. package/dist/chunks/chunk-LKINC6JO.js.map +1 -0
  142. package/dist/chunks/chunk-LROTNPC2.js +94 -0
  143. package/dist/chunks/chunk-LROTNPC2.js.map +1 -0
  144. package/dist/chunks/chunk-MTMT2RMF.js +63 -0
  145. package/dist/chunks/chunk-MTMT2RMF.js.map +1 -0
  146. package/dist/chunks/chunk-NDJZGJUR.js +65 -0
  147. package/dist/chunks/chunk-NDJZGJUR.js.map +1 -0
  148. package/dist/chunks/chunk-OE2LFIH2.js +1 -0
  149. package/dist/chunks/chunk-OE2LFIH2.js.map +1 -0
  150. package/dist/chunks/chunk-OJ2XGDWK.js +1 -0
  151. package/dist/chunks/chunk-OJ2XGDWK.js.map +1 -0
  152. package/dist/chunks/chunk-PUBGXXTM.js +50 -0
  153. package/dist/chunks/chunk-PUBGXXTM.js.map +1 -0
  154. package/dist/chunks/chunk-QRCUNRP5.js +75 -0
  155. package/dist/chunks/chunk-QRCUNRP5.js.map +1 -0
  156. package/dist/chunks/chunk-S6JJYCO7.js +51 -0
  157. package/dist/chunks/chunk-S6JJYCO7.js.map +1 -0
  158. package/dist/chunks/chunk-U3AALKEP.js +1 -0
  159. package/dist/chunks/chunk-U3AALKEP.js.map +1 -0
  160. package/dist/chunks/chunk-UCQFSRYF.js +34 -0
  161. package/dist/chunks/chunk-UCQFSRYF.js.map +1 -0
  162. package/dist/chunks/chunk-URGVQ64M.js +1 -0
  163. package/dist/chunks/chunk-URGVQ64M.js.map +1 -0
  164. package/dist/chunks/chunk-V4FXK4TP.js +128 -0
  165. package/dist/chunks/chunk-V4FXK4TP.js.map +1 -0
  166. package/dist/chunks/chunk-W4B23OIP.js +72 -0
  167. package/dist/chunks/chunk-W4B23OIP.js.map +1 -0
  168. package/dist/chunks/chunk-XDFXD3BI.js +10 -0
  169. package/dist/chunks/chunk-XDFXD3BI.js.map +1 -0
  170. package/dist/chunks/chunk-XDMSEAYC.js +294 -0
  171. package/dist/chunks/chunk-XDMSEAYC.js.map +1 -0
  172. package/dist/chunks/chunk-XPDS72XY.js +29 -0
  173. package/dist/chunks/chunk-XPDS72XY.js.map +1 -0
  174. package/dist/chunks/chunk-Y6UWSECL.js +3529 -0
  175. package/dist/chunks/chunk-Y6UWSECL.js.map +1 -0
  176. package/dist/chunks/chunk-ZEFOMZNY.js +78 -0
  177. package/dist/chunks/chunk-ZEFOMZNY.js.map +1 -0
  178. package/dist/index-Cvrd4KQA.d.ts +109 -0
  179. package/dist/index.d.ts +18 -469
  180. package/dist/index.js +2717 -8728
  181. package/dist/index.js.map +1 -1
  182. package/dist/item.css +10 -78
  183. package/dist/qti-components/index.d.ts +150 -0
  184. package/dist/qti-components/index.js +6525 -0
  185. package/dist/qti-components/index.js.map +1 -0
  186. package/dist/qti-components-jsx.d.ts +159 -184
  187. package/dist/qti-item/components/index.d.ts +3 -0
  188. package/dist/qti-item/components/index.js +3856 -0
  189. package/dist/qti-item/components/index.js.map +1 -0
  190. package/dist/qti-item/components/item-container.d.ts +40 -0
  191. package/dist/qti-item/components/item-container.js +3856 -0
  192. package/dist/qti-item/components/item-container.js.map +1 -0
  193. package/dist/qti-item/index.d.ts +4 -0
  194. package/dist/qti-item/index.js +3869 -0
  195. package/dist/qti-item/index.js.map +1 -0
  196. package/dist/qti-item/qti-item.d.ts +25 -0
  197. package/dist/qti-item/qti-item.js +26 -0
  198. package/dist/qti-item/qti-item.js.map +1 -0
  199. package/dist/{loader → qti-loader}/index.d.ts +1 -1
  200. package/dist/{loader → qti-loader}/index.js +5 -0
  201. package/dist/{loader → qti-loader}/index.js.map +1 -1
  202. package/dist/{qti-simple-choice-UTrFa_RQ.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +71 -90
  203. package/dist/qti-test/components/index.d.ts +13 -0
  204. package/dist/qti-test/components/index.js +4144 -0
  205. package/dist/qti-test/components/index.js.map +1 -0
  206. package/dist/qti-test/components/styles.d.ts +8 -0
  207. package/dist/qti-test/components/styles.js +29 -0
  208. package/dist/qti-test/components/styles.js.map +1 -0
  209. package/dist/qti-test/components/test-component.abstract.d.ts +23 -0
  210. package/dist/qti-test/components/test-component.abstract.js +149 -0
  211. package/dist/qti-test/components/test-component.abstract.js.map +1 -0
  212. package/dist/qti-test/components/test-container.d.ts +37 -0
  213. package/dist/qti-test/components/test-container.js +3782 -0
  214. package/dist/qti-test/components/test-container.js.map +1 -0
  215. package/dist/qti-test/components/test-item-link.d.ts +21 -0
  216. package/dist/qti-test/components/test-item-link.js +202 -0
  217. package/dist/qti-test/components/test-item-link.js.map +1 -0
  218. package/dist/qti-test/components/test-next.d.ts +32 -0
  219. package/dist/qti-test/components/test-next.js +209 -0
  220. package/dist/qti-test/components/test-next.js.map +1 -0
  221. package/dist/qti-test/components/test-next.spec.d.ts +16 -0
  222. package/dist/qti-test/components/test-next.spec.js +56915 -0
  223. package/dist/qti-test/components/test-next.spec.js.map +1 -0
  224. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +22 -0
  225. package/dist/qti-test/components/test-paging-buttons-stamp.js +218 -0
  226. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
  227. package/dist/qti-test/components/test-prev.d.ts +32 -0
  228. package/dist/qti-test/components/test-prev.js +209 -0
  229. package/dist/qti-test/components/test-prev.js.map +1 -0
  230. package/dist/qti-test/components/test-view.d.ts +27 -0
  231. package/dist/qti-test/components/test-view.js +209 -0
  232. package/dist/qti-test/components/test-view.js.map +1 -0
  233. package/dist/qti-test/context/index.d.ts +6 -0
  234. package/dist/qti-test/context/index.js +9 -0
  235. package/dist/qti-test/context/index.js.map +1 -0
  236. package/dist/qti-test/context/test.context.d.ts +6 -0
  237. package/dist/qti-test/context/test.context.js +9 -0
  238. package/dist/qti-test/context/test.context.js.map +1 -0
  239. package/dist/qti-test/index.d.ts +14 -0
  240. package/dist/qti-test/index.js +4746 -0
  241. package/dist/qti-test/index.js.map +1 -0
  242. package/dist/qti-test/mixins/index.d.ts +8 -0
  243. package/dist/qti-test/mixins/index.js +350 -0
  244. package/dist/qti-test/mixins/index.js.map +1 -0
  245. package/dist/qti-test/mixins/test-loader.mixin.d.ts +8 -0
  246. package/dist/qti-test/mixins/test-loader.mixin.js +240 -0
  247. package/dist/qti-test/mixins/test-loader.mixin.js.map +1 -0
  248. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +22 -0
  249. package/dist/qti-test/mixins/test-navigation.mixin.js +64 -0
  250. package/dist/qti-test/mixins/test-navigation.mixin.js.map +1 -0
  251. package/dist/qti-test/mixins/test-view.mixin.d.ts +6 -0
  252. package/dist/qti-test/mixins/test-view.mixin.js +50 -0
  253. package/dist/qti-test/mixins/test-view.mixin.js.map +1 -0
  254. package/dist/qti-test/qti-assessment-test/index.d.ts +6 -0
  255. package/dist/qti-test/qti-assessment-test/index.js +221 -0
  256. package/dist/qti-test/qti-assessment-test/index.js.map +1 -0
  257. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +6 -0
  258. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +85 -0
  259. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +1 -0
  260. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +6 -0
  261. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +73 -0
  262. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +1 -0
  263. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +6 -0
  264. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +54 -0
  265. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +1 -0
  266. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +19 -0
  267. package/dist/qti-test/qti-assessment-test/qti-test-part.js +62 -0
  268. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +1 -0
  269. package/dist/qti-test/qti-test.d.ts +68 -0
  270. package/dist/qti-test/qti-test.js +500 -0
  271. package/dist/qti-test/qti-test.js.map +1 -0
  272. package/dist/qti-test/test-base.d.ts +6 -0
  273. package/dist/qti-test/test-base.js +137 -0
  274. package/dist/qti-test/test-base.js.map +1 -0
  275. package/dist/{transformers → qti-transformers}/index.d.ts +1 -0
  276. package/dist/{transformers → qti-transformers}/index.js +5 -0
  277. package/dist/{transformers → qti-transformers}/index.js.map +1 -1
  278. package/dist/test-base-BJwG9Ie8.d.ts +109 -0
  279. package/dist/vscode.css-custom-data.json +1 -37
  280. package/dist/vscode.html-custom-data.json +70 -45
  281. package/package.json +29 -51
  282. package/dist/custom-element-eslint-rules.js +0 -337
  283. package/dist/custom-elements.json +0 -27271
@@ -416,7 +416,7 @@
416
416
  },
417
417
  {
418
418
  "name": "qti-hottext-interaction",
419
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
419
+ "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**\n\n### **Methods:**\n ",
420
420
  "attributes": [
421
421
  { "name": "min-choices", "values": [] },
422
422
  { "name": "max-choices", "values": [] },
@@ -450,7 +450,7 @@
450
450
  },
451
451
  {
452
452
  "name": "qti-choice-interaction",
453
- "description": "An sample element.\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**\n\n### **Slots:**\n - _default_ - default slot of the choices\n- **prompt** - slot of the prompt\n\n### **CSS Properties:**\n - **--qti-bg-active** - The active background color _(default: #ffecec)_\n- **--qti-border-active** - The active border color _(default: #f86d70)_\n- **--qti-padding-horizontal** - The option horizontal padding _(default: 1px)_\n- **--qti-padding-vertical** - The option vertical padding _(default: solid)_\n- **--qti-border-radius** - The option border radius _(default: 8px)_\n\n### **CSS Parts:**\n - **slot** - The choice elements\n- **prompt** - The prompt\n- **message** - The validation message",
453
+ "description": "An sample element.\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**\n\n### **Methods:**\n \n\n### **Slots:**\n - _default_ - default slot of the choices\n- **prompt** - slot of the prompt\n\n### **CSS Properties:**\n - **--qti-bg-active** - The active background color _(default: #ffecec)_\n- **--qti-border-active** - The active border color _(default: #f86d70)_\n- **--qti-padding-horizontal** - The option horizontal padding _(default: 1px)_\n- **--qti-padding-vertical** - The option vertical padding _(default: solid)_\n- **--qti-border-radius** - The option border radius _(default: 8px)_\n\n### **CSS Parts:**\n - **slot** - The choice elements\n- **prompt** - The prompt\n- **message** - The validation message",
454
454
  "attributes": [
455
455
  { "name": "orientation", "values": [{ "name": "Orientation" }] },
456
456
  { "name": "class", "values": [] },
@@ -467,6 +467,16 @@
467
467
  ],
468
468
  "references": []
469
469
  },
470
+ {
471
+ "name": "qti-upload-interaction",
472
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
473
+ "attributes": [
474
+ { "name": "response-identifier", "values": [] },
475
+ { "name": "disabled", "values": [] },
476
+ { "name": "readonly", "values": [] }
477
+ ],
478
+ "references": []
479
+ },
470
480
  {
471
481
  "name": "qti-outcome-processing",
472
482
  "description": "\n---\n",
@@ -509,12 +519,12 @@
509
519
  },
510
520
  {
511
521
  "name": "qti-associate-interaction",
512
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
522
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
513
523
  "attributes": [
514
524
  { "name": "min-associations", "values": [] },
515
525
  { "name": "max-associations", "values": [] },
516
- { "name": "disabled", "values": [] },
517
526
  { "name": "response-identifier", "values": [] },
527
+ { "name": "disabled", "values": [] },
518
528
  { "name": "readonly", "values": [] }
519
529
  ],
520
530
  "references": []
@@ -535,24 +545,27 @@
535
545
  },
536
546
  {
537
547
  "name": "qti-end-attempt-interaction",
538
- "description": "\n---\n\n\n### **Events:**\n - **end-attempt**\n- **qti-register-interaction**\n- **qti-interaction-response**",
548
+ "description": "\n---\n\n\n### **Events:**\n - **end-attempt**",
539
549
  "attributes": [
540
- { "name": "count-attempt", "values": [] },
541
- { "name": "title", "values": [{ "name": "end attempt" }] },
542
550
  { "name": "response-identifier", "values": [] },
543
551
  { "name": "disabled", "values": [] },
544
- { "name": "readonly", "values": [] }
552
+ {
553
+ "name": "count-attempt",
554
+ "description": "Defines the number of attempts that a user can make using the 'endAttemptInteraction' mechanism (this can be used to limit the number of hints, etc.). [More information](https://www.imsglobal.org/sites/default/files/spec/qti/v3/info/index.html#DataCharacteristic_EndAttemptInteraction.Attr_count-attempt)",
555
+ "values": [{ "name": "true" }, { "name": "false" }]
556
+ },
557
+ { "name": "title", "values": [] }
545
558
  ],
546
559
  "references": []
547
560
  },
548
561
  {
549
562
  "name": "qti-gap-match-interaction",
550
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
563
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
551
564
  "attributes": [
552
565
  { "name": "min-associations", "values": [] },
553
566
  { "name": "max-associations", "values": [] },
554
- { "name": "disabled", "values": [] },
555
567
  { "name": "response-identifier", "values": [] },
568
+ { "name": "disabled", "values": [] },
556
569
  { "name": "readonly", "values": [] }
557
570
  ],
558
571
  "references": []
@@ -581,19 +594,19 @@
581
594
  },
582
595
  {
583
596
  "name": "qti-graphic-gap-match-interaction",
584
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
597
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
585
598
  "attributes": [
586
599
  { "name": "min-associations", "values": [] },
587
600
  { "name": "max-associations", "values": [] },
588
- { "name": "disabled", "values": [] },
589
601
  { "name": "response-identifier", "values": [] },
602
+ { "name": "disabled", "values": [] },
590
603
  { "name": "readonly", "values": [] }
591
604
  ],
592
605
  "references": []
593
606
  },
594
607
  {
595
608
  "name": "qti-graphic-order-interaction",
596
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
609
+ "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**\n\n### **Methods:**\n ",
597
610
  "attributes": [
598
611
  { "name": "min-choices", "values": [] },
599
612
  { "name": "max-choices", "values": [] },
@@ -605,7 +618,7 @@
605
618
  },
606
619
  {
607
620
  "name": "qti-hotspot-interaction",
608
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
621
+ "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**\n\n### **Methods:**\n ",
609
622
  "attributes": [
610
623
  { "name": "min-choices", "values": [] },
611
624
  { "name": "max-choices", "values": [] },
@@ -617,7 +630,7 @@
617
630
  },
618
631
  {
619
632
  "name": "qti-match-interaction",
620
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
633
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
621
634
  "attributes": [
622
635
  { "name": "class", "values": [] },
623
636
  { "name": "response-identifier", "values": [] },
@@ -640,7 +653,7 @@
640
653
  },
641
654
  {
642
655
  "name": "qti-order-interaction",
643
- "description": "\n---\n\n\n### **Events:**\n - **qti-register-interaction**\n- **qti-interaction-response**",
656
+ "description": "\n---\n\n\n### **Events:**\n - **qti-interaction-response**\n- **qti-register-interaction**",
644
657
  "attributes": [
645
658
  {
646
659
  "name": "orientation",
@@ -654,8 +667,8 @@
654
667
  },
655
668
  { "name": "min-associations", "values": [] },
656
669
  { "name": "max-associations", "values": [] },
657
- { "name": "disabled", "values": [] },
658
670
  { "name": "response-identifier", "values": [] },
671
+ { "name": "disabled", "values": [] },
659
672
  { "name": "readonly", "values": [] }
660
673
  ],
661
674
  "references": []
@@ -686,16 +699,11 @@
686
699
  },
687
700
  {
688
701
  "name": "qti-slider-interaction",
689
- "description": "The SliderInteraction.Type (qti-slider-interaction) presents the candidate with a control for selecting a numerical value between a lower and upper bound.\n---\n\n\n### **Events:**\n - **qti-register-interaction** - emitted when the interaction wants to register itself\n- **qti-interaction-response** - emitted when the interaction changes\n\n### **Slots:**\n - _default_ - The default slot where <qti-simple-choice> must be placed.\n- **prompt** - slot where the prompt is placed.\n\n### **CSS Properties:**\n - **--show-value** - shows the current value while sliding _(default: undefined)_\n- **--show-ticks** - shows the ticks according to steps _(default: undefined)_\n- **--show-bounds** - shows value for lower and upper boundary _(default: undefined)_\n\n### **CSS Parts:**\n - **slider** - -- slider inluding, bounds and ticks and value, use it for paddings and margins\n- **bounds** - -- div for bounds, containing two divs for with min, and max bounds value\n- **ticks** - -- div for ticks, use lineair gradient and exposed css variables for styling\n- **rail** - -- div for rail, style according to needs\n- **knob** - -- div, should be relative or absolute\n- **value** - -- div, containing value",
702
+ "description": "\n---\n\n\n### **Events:**\n - **change**",
690
703
  "attributes": [
691
- { "name": "step-label", "values": [] },
692
- { "name": "reverse", "values": [] },
693
704
  { "name": "lower-bound", "values": [] },
694
705
  { "name": "upper-bound", "values": [] },
695
- { "name": "step", "values": [] },
696
- { "name": "response-identifier", "values": [] },
697
- { "name": "disabled", "values": [] },
698
- { "name": "readonly", "values": [] }
706
+ { "name": "step", "values": [] }
699
707
  ],
700
708
  "references": []
701
709
  },
@@ -799,6 +807,24 @@
799
807
  ],
800
808
  "references": []
801
809
  },
810
+ {
811
+ "name": "qti-item",
812
+ "description": "`<qti-item>` is a custom element designed for rendering a single `qti-assessment-item`.\nIt can also host some functionalities to interact with the item like scoring, showing feedback, etc.\nPlacing a mandatory `<item-container>` inside '<qti-item>' will load or parse the item and render it.\nSee `<item-container>` for more details.\n\n```html\n<qti-item>\n <item-container class=\"m-4 bg-white\" item-url=\"./path/to/item.xml\"></item-container>\n</qti-item>\n```\n---\n",
813
+ "attributes": [],
814
+ "references": []
815
+ },
816
+ {
817
+ "name": "item-container",
818
+ "description": "`<item-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-item` will be placed inside the shadow DOM of this element.\nThe element loads the item from the provided URL and renders it inside the shadow DOM.\n\n### Styling\nAdd a class to the element for styling.\n\n```html\n<qti-item>\n <item-container class=\"m-4 bg-white\" item-url=\"./path/to/item.xml\"></item-container>\n</qti-item>\n```\n---\n",
819
+ "attributes": [
820
+ {
821
+ "name": "item-url",
822
+ "description": "URL of the item to load",
823
+ "values": []
824
+ }
825
+ ],
826
+ "references": []
827
+ },
802
828
  {
803
829
  "name": "qti-assessment-item-ref",
804
830
  "description": "\n---\n\n\n### **Events:**\n - **qti-assessment-item-ref-connected**",
@@ -853,14 +879,8 @@
853
879
  },
854
880
  {
855
881
  "name": "qti-test",
856
- "description": "`<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n\nThis component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n\n### Example Usage\n\nMinimal markup:\n```html\n<qti-test test=\"./path/to/assessment.xml\">\n <test-container></test-container>\n</qti-test>\n```\n\nWith navigation buttons:\n```html\n<qti-test >\n <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n <div class=\"flex\">\n <test-prev></test-prev>\n <test-next></test-next>\n </div>\n</qti-test>\n```\n\nYou can use normal class names to style the elements.\nAnd you can use the `test-prev` and `test-next` elements to navigate through the test.\n---\n",
857
- "attributes": [
858
- {
859
- "name": "testURL",
860
- "description": "the relative location to the QTI assessment.xml file ### Features - **Dynamic Template Loading**: If a `<template>` element is included as a child of `<qti-test>`, its content is dynamically appended to the shadow DOM.",
861
- "values": []
862
- }
863
- ],
882
+ "description": "`<qti-test>` is a custom element designed for rendering and interacting with QTI (Question and Test Interoperability) tests.\n\nThis component leverages several mixins to provide functionality for loading, navigating, processing, and displaying QTI test assessments.\n\n### Example Usage\n\nMinimal example including navigation:\n\n```html\n<qti-test>\n <test-container test-url=\"./path/to/assessment.xml\"></test-container>\n <nav class=\"flex\">\n <test-prev></test-prev>\n <test-next></test-next>\n </nav>\n</qti-test>\n```\n\nUse the following file structure\nA qti-test loads a QTI3.0 assessmenttest.xml file from a package folder.\n\n```plaintext\nRoot/\n├── index.html\n└── /assets/api/examples/\n ├── assessmenttest.xml\n └── imsmanifest.xml\n\n```\n\n### Test components\n\nUse test components inside the qti-test component for added functionality.\n### Test next\n`<test-next> | TestNext`\n\n### Test prev\n\n`<test-prev> | TestPrev`\n### Test components\n\nYou can use normal class names to style the elements.\nAnd you can use the `test-prev` and `test-next` elements to navigate through the test.\n---\n",
883
+ "attributes": [],
864
884
  "references": []
865
885
  },
866
886
  {
@@ -879,8 +899,16 @@
879
899
  "name": "test-view",
880
900
  "description": "\n---\n\n\n### **Events:**\n - **on-test-switch-view**\n- **qti-request-test-item**",
881
901
  "attributes": [
882
- { "name": "label", "values": [] },
883
- { "name": "view-options", "values": [] }
902
+ {
903
+ "name": "label",
904
+ "description": "label accompanying the select view dropdown",
905
+ "values": []
906
+ },
907
+ {
908
+ "name": "view-options",
909
+ "description": "The options to display in the dropdown, default: ['author', 'candidate', 'proctor', 'scorer', 'testConstructor', 'tutor']",
910
+ "values": []
911
+ }
884
912
  ],
885
913
  "references": []
886
914
  },
@@ -892,8 +920,14 @@
892
920
  },
893
921
  {
894
922
  "name": "test-container",
895
- "description": "`<test-container>` is a custom element designed for hosting the qti-assessment-test.\nThe `qti-assessment-test` will be placed inside the shadow DOM of this element.\n\n### Example Usage\nThe `test-container` element to hosts the visual representation of the items.\nYou can style the container by adding a class to the element.\n\n```html\n<qti-test testurl=\"./path/to/assessment.xml\">\n <test-container class=\"container bg-white m-2\"></test-container>\n</qti-test>\n```\n---\n",
896
- "attributes": [{ "name": "test-url", "values": [] }],
923
+ "description": "`<test-container>` is a custom element designed for hosting the qti-assessment-item.\nThe `qti-assessment-test` will be placed inside the shadow DOM of this element.\nThe element loads the test from the provided URL and renders it inside the shadow DOM.\n\n```html\n<qti-test>\n <test-container class=\"m-4 bg-white\" test-url=\"./path/to/assessmenttest.xml\"></test-container>\n</qti-test>\n```\n---\n",
924
+ "attributes": [
925
+ {
926
+ "name": "test-url",
927
+ "description": "URL of the item to load",
928
+ "values": []
929
+ }
930
+ ],
897
931
  "references": []
898
932
  },
899
933
  {
@@ -904,15 +938,6 @@
904
938
  { "name": "skip-on-category", "values": [] }
905
939
  ],
906
940
  "references": []
907
- },
908
- {
909
- "name": "qti-item",
910
- "description": "\n---\n\n\n### **Events:**\n - **qti-item-connected**",
911
- "attributes": [
912
- { "name": "identifier", "values": [] },
913
- { "name": "href", "values": [] }
914
- ],
915
- "references": []
916
941
  }
917
942
  ]
918
943
  }
package/package.json CHANGED
@@ -21,37 +21,23 @@
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
23
23
  },
24
- "version": "7.0.3",
25
- "main": "dist/index.js",
24
+ "version": "7.0.5",
26
25
  "type": "module",
27
26
  "exports": {
28
27
  ".": {
28
+ "types": "./dist/index.d.ts",
29
29
  "import": "./dist/index.js"
30
30
  },
31
- "./transformers": {
32
- "import": "./dist/transformers/index.js"
33
- },
34
- "./loader": {
35
- "import": "./dist/loader/index.js"
36
- },
37
- "./item.css": "./dist/item.css",
38
- "./cdn/index.js": "./cdn/index.js",
39
- "./cdn/index.global.js": "./cdn/index.global.js",
40
- "./react": "./dist//qti-components-jsx.d.ts"
41
- },
42
- "types": "./dist/qti-components/index.d.ts",
43
- "typesVersions": {
44
- "*": {
45
- ".": [
46
- "./dist/index.d.ts"
47
- ],
48
- "transformers": [
49
- "./dist/transformers/index.d.ts"
50
- ],
51
- "loader": [
52
- "./dist/loader/index.d.ts"
53
- ]
54
- }
31
+ "./qti-components": "./dist/qti-components/index.js",
32
+ "./qti-components/*": "./dist/qti-components/*",
33
+ "./qti-test": "./dist/qti-test/index.js",
34
+ "./qti-test/*": "./dist/qti-test/*",
35
+ "./qti-item": "./dist/qti-test/index.js",
36
+ "./qti-item/*": "./dist/qti-item/*",
37
+ "./loader": "./dist/qti-loader/index.js",
38
+ "./transformers": "./dist/qti-transformers/index.js",
39
+ "./react": "./dist/qti-components-jsx.d.ts",
40
+ "./item.css": "./dist/item.css"
55
41
  },
56
42
  "files": [
57
43
  "dist",
@@ -73,7 +59,7 @@
73
59
  "vite": "vite",
74
60
  "stylelint": "stylelint \"src/**/*.css\"",
75
61
  "build-storybook": "storybook build",
76
- "storybook:test": "test-storybook",
62
+ "test-storybook": "wireit",
77
63
  "storybook:docs:build": "wireit",
78
64
  "chromatic": "node chromatic-runner.cjs",
79
65
  "----hooks----": "-",
@@ -88,33 +74,26 @@
88
74
  ]
89
75
  },
90
76
  "build": {
91
- "env": {
92
- "NODE_ENV": "production"
93
- },
94
77
  "command": "tsup",
95
78
  "dependencies": [
96
79
  "cem",
97
80
  "css"
98
81
  ],
99
82
  "files": [
100
- "src/**/*.{ts}",
83
+ "src/**/*.ts",
101
84
  "tsconfig.json",
102
- "!src/**/*.{test,spec,stories}.ts",
103
- "package.json"
85
+ "package.json",
86
+ "tsup.config.ts"
104
87
  ]
105
88
  },
106
89
  "cem": {
107
- "command": "cem analyze",
108
- "files": [
109
- "src/**/*.ts",
110
- "!src/**/*.{test,spec,stories}.ts"
111
- ]
90
+ "command": "cem analyze"
91
+ },
92
+ "test-storybook": {
93
+ "command": "test-storybook --excludeTags no-tests"
112
94
  },
113
95
  "css": {
114
- "command": "postcss src/item.css -d dist -m",
115
- "files": [
116
- "src/**/*.css"
117
- ]
96
+ "command": "postcss src/item.css -d dist -m"
118
97
  },
119
98
  "test": {
120
99
  "command": "vitest run",
@@ -143,23 +122,21 @@
143
122
  }
144
123
  },
145
124
  "attw": {
146
- "command": "attw --profile esm-only --pack --exclude-entrypoints ./item.css ./cdn/index.js ./cdn/index.global.js ./cdn/index.min.js",
125
+ "command": "attw --profile esm-only --pack --exclude-entrypoints ./item.css",
147
126
  "dependencies": [
148
127
  "build"
149
128
  ]
150
129
  }
151
130
  },
131
+ "dependencies": {},
152
132
  "peerDependencies": {
153
- "@lit/context": "^1.1.2",
154
- "lit": "^3.2.1",
155
- "stampino": "^0.8.3"
156
- },
157
- "dependencies": {
158
- "@lit/context": "^1.1.2",
133
+ "@lit/context": "^1.1.3",
159
134
  "lit": "^3.2.1",
160
135
  "stampino": "^0.8.3"
161
136
  },
162
137
  "devDependencies": {
138
+ "lit": "^3.2.1",
139
+ "stampino": "^0.8.3",
163
140
  "@arethetypeswrong/cli": "^0.17.1",
164
141
  "@chromatic-com/storybook": "^3.2.2",
165
142
  "@commitlint/cli": "^19.6.0",
@@ -175,7 +152,7 @@
175
152
  "@storybook/blocks": "^8.4.7",
176
153
  "@storybook/preview-api": "^8.4.7",
177
154
  "@storybook/test": "^8.4.7",
178
- "@storybook/test-runner": "^0.20.1",
155
+ "@storybook/test-runner": "^0.21.0",
179
156
  "@storybook/web-components": "^8.4.7",
180
157
  "@storybook/web-components-vite": "^8.4.7",
181
158
  "@swc/core": "^1.10.1",
@@ -186,6 +163,7 @@
186
163
  "@typescript-eslint/parser": "^8.17.0",
187
164
  "@vitest/browser": "^2.1.8",
188
165
  "autoprefixer": "^10.4.20",
166
+ "globby": "^14.0.2",
189
167
  "cem-plugin-expanded-types": "^1.3.3",
190
168
  "chromatic": "^11.20.0",
191
169
  "custom-element-eslint-rule-generator": "^1.0.1",
@@ -206,7 +184,6 @@
206
184
  "globals": "^15.13.0",
207
185
  "husky": "^9.1.7",
208
186
  "np": "^10.1.0",
209
- "npm": "^10.9.2",
210
187
  "path-browserify": "^1.0.1",
211
188
  "pkg-pr-new": "^0.0.37",
212
189
  "playwright": "^1.49.0",
@@ -219,6 +196,7 @@
219
196
  "remark-gfm": "^4.0.0",
220
197
  "shadow-dom-testing-library": "^1.11.3",
221
198
  "storybook": "^8.4.7",
199
+ "storybook-addon-tag-badges": "^1.3.2",
222
200
  "stylelint": "^16.11.0",
223
201
  "stylelint-config-standard": "^36.0.1",
224
202
  "stylelint-prettier": "^5.0.2",