@citolab/qti-components 7.0.4 → 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 (285) 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 +196 -476
  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-XPDS72XY.js +29 -0
  172. package/dist/chunks/chunk-XPDS72XY.js.map +1 -0
  173. package/dist/chunks/chunk-Y6UWSECL.js +3529 -0
  174. package/dist/chunks/chunk-Y6UWSECL.js.map +1 -0
  175. package/dist/chunks/chunk-ZEFOMZNY.js +78 -0
  176. package/dist/chunks/chunk-ZEFOMZNY.js.map +1 -0
  177. package/dist/index-Cvrd4KQA.d.ts +109 -0
  178. package/dist/index.d.ts +18 -503
  179. package/dist/index.js +1666 -4206
  180. package/dist/index.js.map +1 -1
  181. package/dist/item.css +10 -10
  182. package/dist/qti-components/index.d.ts +150 -0
  183. package/dist/qti-components/index.js +6525 -0
  184. package/dist/qti-components/index.js.map +1 -0
  185. package/dist/qti-components-jsx.d.ts +93 -147
  186. package/dist/qti-item/components/index.d.ts +3 -0
  187. package/dist/qti-item/components/index.js +3856 -0
  188. package/dist/qti-item/components/index.js.map +1 -0
  189. package/dist/qti-item/components/item-container.d.ts +40 -0
  190. package/dist/qti-item/components/item-container.js +3856 -0
  191. package/dist/qti-item/components/item-container.js.map +1 -0
  192. package/dist/qti-item/index.d.ts +4 -0
  193. package/dist/qti-item/index.js +3869 -0
  194. package/dist/qti-item/index.js.map +1 -0
  195. package/dist/qti-item/qti-item.d.ts +25 -0
  196. package/dist/qti-item/qti-item.js +26 -0
  197. package/dist/qti-item/qti-item.js.map +1 -0
  198. package/dist/{loader → qti-loader}/index.d.ts +1 -1
  199. package/dist/{qti-simple-choice-D0GiMrqD.d.ts → qti-simple-choice-DxWcdKHi.d.ts} +30 -40
  200. package/dist/qti-test/components/index.d.ts +13 -0
  201. package/dist/qti-test/components/index.js +4144 -0
  202. package/dist/qti-test/components/index.js.map +1 -0
  203. package/dist/qti-test/components/styles.d.ts +8 -0
  204. package/dist/qti-test/components/styles.js +29 -0
  205. package/dist/qti-test/components/styles.js.map +1 -0
  206. package/dist/qti-test/components/test-component.abstract.d.ts +23 -0
  207. package/dist/qti-test/components/test-component.abstract.js +149 -0
  208. package/dist/qti-test/components/test-component.abstract.js.map +1 -0
  209. package/dist/qti-test/components/test-container.d.ts +37 -0
  210. package/dist/qti-test/components/test-container.js +3782 -0
  211. package/dist/qti-test/components/test-container.js.map +1 -0
  212. package/dist/qti-test/components/test-item-link.d.ts +21 -0
  213. package/dist/qti-test/components/test-item-link.js +202 -0
  214. package/dist/qti-test/components/test-item-link.js.map +1 -0
  215. package/dist/qti-test/components/test-next.d.ts +32 -0
  216. package/dist/qti-test/components/test-next.js +209 -0
  217. package/dist/qti-test/components/test-next.js.map +1 -0
  218. package/dist/qti-test/components/test-next.spec.d.ts +16 -0
  219. package/dist/qti-test/components/test-next.spec.js +56915 -0
  220. package/dist/qti-test/components/test-next.spec.js.map +1 -0
  221. package/dist/qti-test/components/test-paging-buttons-stamp.d.ts +22 -0
  222. package/dist/qti-test/components/test-paging-buttons-stamp.js +218 -0
  223. package/dist/qti-test/components/test-paging-buttons-stamp.js.map +1 -0
  224. package/dist/qti-test/components/test-prev.d.ts +32 -0
  225. package/dist/qti-test/components/test-prev.js +209 -0
  226. package/dist/qti-test/components/test-prev.js.map +1 -0
  227. package/dist/qti-test/components/test-view.d.ts +27 -0
  228. package/dist/qti-test/components/test-view.js +209 -0
  229. package/dist/qti-test/components/test-view.js.map +1 -0
  230. package/dist/qti-test/context/index.d.ts +6 -0
  231. package/dist/qti-test/context/index.js +9 -0
  232. package/dist/qti-test/context/index.js.map +1 -0
  233. package/dist/qti-test/context/test.context.d.ts +6 -0
  234. package/dist/qti-test/context/test.context.js +9 -0
  235. package/dist/qti-test/context/test.context.js.map +1 -0
  236. package/dist/qti-test/index.d.ts +14 -0
  237. package/dist/qti-test/index.js +4746 -0
  238. package/dist/qti-test/index.js.map +1 -0
  239. package/dist/qti-test/mixins/index.d.ts +8 -0
  240. package/dist/qti-test/mixins/index.js +350 -0
  241. package/dist/qti-test/mixins/index.js.map +1 -0
  242. package/dist/qti-test/mixins/test-loader.mixin.d.ts +8 -0
  243. package/dist/qti-test/mixins/test-loader.mixin.js +240 -0
  244. package/dist/qti-test/mixins/test-loader.mixin.js.map +1 -0
  245. package/dist/qti-test/mixins/test-navigation.mixin.d.ts +22 -0
  246. package/dist/qti-test/mixins/test-navigation.mixin.js +64 -0
  247. package/dist/qti-test/mixins/test-navigation.mixin.js.map +1 -0
  248. package/dist/qti-test/mixins/test-view.mixin.d.ts +6 -0
  249. package/dist/qti-test/mixins/test-view.mixin.js +50 -0
  250. package/dist/qti-test/mixins/test-view.mixin.js.map +1 -0
  251. package/dist/qti-test/qti-assessment-test/index.d.ts +6 -0
  252. package/dist/qti-test/qti-assessment-test/index.js +221 -0
  253. package/dist/qti-test/qti-assessment-test/index.js.map +1 -0
  254. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.d.ts +6 -0
  255. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js +85 -0
  256. package/dist/qti-test/qti-assessment-test/qti-assessment-item-ref.js.map +1 -0
  257. package/dist/qti-test/qti-assessment-test/qti-assessment-section.d.ts +6 -0
  258. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js +73 -0
  259. package/dist/qti-test/qti-assessment-test/qti-assessment-section.js.map +1 -0
  260. package/dist/qti-test/qti-assessment-test/qti-assessment-test.d.ts +6 -0
  261. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js +54 -0
  262. package/dist/qti-test/qti-assessment-test/qti-assessment-test.js.map +1 -0
  263. package/dist/qti-test/qti-assessment-test/qti-test-part.d.ts +19 -0
  264. package/dist/qti-test/qti-assessment-test/qti-test-part.js +62 -0
  265. package/dist/qti-test/qti-assessment-test/qti-test-part.js.map +1 -0
  266. package/dist/qti-test/qti-test.d.ts +68 -0
  267. package/dist/qti-test/qti-test.js +500 -0
  268. package/dist/qti-test/qti-test.js.map +1 -0
  269. package/dist/qti-test/test-base.d.ts +6 -0
  270. package/dist/qti-test/test-base.js +137 -0
  271. package/dist/qti-test/test-base.js.map +1 -0
  272. package/dist/qti-transformers/index.js.map +1 -0
  273. package/dist/test-base-BJwG9Ie8.d.ts +109 -0
  274. package/dist/vscode.html-custom-data.json +49 -38
  275. package/package.json +28 -51
  276. package/dist/custom-element-eslint-rules.js +0 -329
  277. package/dist/custom-elements.json +0 -27271
  278. package/dist/qti-simple-choice-CfgBEvdI.d.ts +0 -1143
  279. package/dist/qti-simple-choice-UTrFa_RQ.d.ts +0 -1177
  280. package/dist/qti-simple-choice-zEsDq3c0.d.ts +0 -1147
  281. /package/dist/{transformers/index.js.map → chunks/chunk-XDMSEAYC.js.map} +0 -0
  282. /package/dist/{loader → qti-loader}/index.js +0 -0
  283. /package/dist/{loader → qti-loader}/index.js.map +0 -0
  284. /package/dist/{transformers → qti-transformers}/index.d.ts +0 -0
  285. /package/dist/{transformers → qti-transformers}/index.js +0 -0
package/package.json CHANGED
@@ -21,37 +21,23 @@
21
21
  "engines": {
22
22
  "node": ">=20.0.0"
23
23
  },
24
- "version": "7.0.4",
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",
@@ -1,329 +0,0 @@
1
- import customElement from "eslint-plugin-custom-element";
2
- import html from "@html-eslint/eslint-plugin";
3
- import htmlParser from "@html-eslint/parser";
4
-
5
- export const rules = {
6
- "custom-element/required-attrs": ["error"],
7
-
8
- "custom-element/no-deprecated-attrs": [
9
- "warn",
10
- {
11
- tag: "qti-choice-interaction",
12
- attr: "orientation",
13
- },
14
- ],
15
-
16
- "custom-element/constrained-attrs": ["error"],
17
-
18
- "custom-element/no-deprecated-tags": ["warn"],
19
-
20
- "custom-element/no-boolean-attr-values": [
21
- "error",
22
- {
23
- tag: "undefined",
24
- attr: "disabled",
25
- },
26
- {
27
- tag: "undefined",
28
- attr: "readonly",
29
- },
30
- {
31
- tag: "qti-assessment-item",
32
- attr: "disabled",
33
- },
34
- {
35
- tag: "qti-assessment-item",
36
- attr: "readonly",
37
- },
38
- {
39
- tag: "qti-extended-text-interaction",
40
- attr: "disabled",
41
- },
42
- {
43
- tag: "qti-extended-text-interaction",
44
- attr: "readonly",
45
- },
46
- {
47
- tag: "qti-text-entry-interaction",
48
- attr: "disabled",
49
- },
50
- {
51
- tag: "qti-text-entry-interaction",
52
- attr: "readonly",
53
- },
54
- {
55
- tag: "qti-hottext-interaction",
56
- attr: "disabled",
57
- },
58
- {
59
- tag: "qti-hottext-interaction",
60
- attr: "readonly",
61
- },
62
- {
63
- tag: "qti-inline-choice-interaction",
64
- attr: "disabled",
65
- },
66
- {
67
- tag: "qti-inline-choice-interaction",
68
- attr: "readonly",
69
- },
70
- {
71
- tag: "qti-simple-choice",
72
- attr: "aria-disabled",
73
- },
74
- {
75
- tag: "qti-simple-choice",
76
- attr: "aria-readonly",
77
- },
78
- {
79
- tag: "qti-choice-interaction",
80
- attr: "disabled",
81
- },
82
- {
83
- tag: "qti-choice-interaction",
84
- attr: "readonly",
85
- },
86
- {
87
- tag: "qti-upload-interaction",
88
- attr: "disabled",
89
- },
90
- {
91
- tag: "qti-upload-interaction",
92
- attr: "readonly",
93
- },
94
- {
95
- tag: "qti-portable-custom-interaction",
96
- attr: "disabled",
97
- },
98
- {
99
- tag: "qti-portable-custom-interaction",
100
- attr: "readonly",
101
- },
102
- {
103
- tag: "qti-simple-associable-choice",
104
- attr: "fixed",
105
- },
106
- {
107
- tag: "qti-simple-associable-choice",
108
- attr: "aria-disabled",
109
- },
110
- {
111
- tag: "qti-simple-associable-choice",
112
- attr: "aria-readonly",
113
- },
114
- {
115
- tag: "qti-associate-interaction",
116
- attr: "disabled",
117
- },
118
- {
119
- tag: "qti-associate-interaction",
120
- attr: "readonly",
121
- },
122
- {
123
- tag: "qti-custom-interaction",
124
- attr: "disabled",
125
- },
126
- {
127
- tag: "qti-custom-interaction",
128
- attr: "readonly",
129
- },
130
- {
131
- tag: "qti-end-attempt-interaction",
132
- attr: "disabled",
133
- },
134
- {
135
- tag: "qti-end-attempt-interaction",
136
- attr: "readonly",
137
- },
138
- {
139
- tag: "qti-gap-match-interaction",
140
- attr: "disabled",
141
- },
142
- {
143
- tag: "qti-gap-match-interaction",
144
- attr: "readonly",
145
- },
146
- {
147
- tag: "qti-hotspot-choice",
148
- attr: "aria-disabled",
149
- },
150
- {
151
- tag: "qti-hotspot-choice",
152
- attr: "aria-readonly",
153
- },
154
- {
155
- tag: "qti-graphic-associate-interaction",
156
- attr: "disabled",
157
- },
158
- {
159
- tag: "qti-graphic-associate-interaction",
160
- attr: "readonly",
161
- },
162
- {
163
- tag: "qti-graphic-gap-match-interaction",
164
- attr: "disabled",
165
- },
166
- {
167
- tag: "qti-graphic-gap-match-interaction",
168
- attr: "readonly",
169
- },
170
- {
171
- tag: "qti-graphic-order-interaction",
172
- attr: "disabled",
173
- },
174
- {
175
- tag: "qti-graphic-order-interaction",
176
- attr: "readonly",
177
- },
178
- {
179
- tag: "qti-hotspot-interaction",
180
- attr: "disabled",
181
- },
182
- {
183
- tag: "qti-hotspot-interaction",
184
- attr: "readonly",
185
- },
186
- {
187
- tag: "qti-match-interaction",
188
- attr: "disabled",
189
- },
190
- {
191
- tag: "qti-match-interaction",
192
- attr: "readonly",
193
- },
194
- {
195
- tag: "qti-media-interaction",
196
- attr: "disabled",
197
- },
198
- {
199
- tag: "qti-media-interaction",
200
- attr: "readonly",
201
- },
202
- {
203
- tag: "qti-order-interaction",
204
- attr: "disabled",
205
- },
206
- {
207
- tag: "qti-order-interaction",
208
- attr: "readonly",
209
- },
210
- {
211
- tag: "qti-select-point-interaction",
212
- attr: "disabled",
213
- },
214
- {
215
- tag: "qti-select-point-interaction",
216
- attr: "readonly",
217
- },
218
- {
219
- tag: "qti-gap-text",
220
- attr: "aria-disabled",
221
- },
222
- {
223
- tag: "qti-gap-text",
224
- attr: "aria-readonly",
225
- },
226
- {
227
- tag: "qti-hottext",
228
- attr: "aria-disabled",
229
- },
230
- {
231
- tag: "qti-hottext",
232
- attr: "aria-readonly",
233
- },
234
- {
235
- tag: "test-element",
236
- attr: "disabled",
237
- },
238
- {
239
- tag: "test-element",
240
- attr: "readonly",
241
- },
242
- {
243
- tag: "test-element",
244
- attr: "disabled",
245
- },
246
- {
247
- tag: "test-element",
248
- attr: "readonly",
249
- },
250
- {
251
- tag: "test-element",
252
- attr: "disabled",
253
- },
254
- {
255
- tag: "test-element",
256
- attr: "readonly",
257
- },
258
- {
259
- tag: "qti-assessment-item-ref",
260
- attr: "required",
261
- },
262
- {
263
- tag: "qti-assessment-item-ref",
264
- attr: "fixed",
265
- },
266
- {
267
- tag: "qti-assessment-section",
268
- attr: "fixed",
269
- },
270
- {
271
- tag: "qti-assessment-section",
272
- attr: "visible",
273
- },
274
- {
275
- tag: "qti-assessment-section",
276
- attr: "keep-together",
277
- },
278
- ],
279
-
280
- "@html-eslint/no-duplicate-attrs": "off",
281
- "@html-eslint/no-duplicate-id": "off",
282
- "@html-eslint/no-inline-styles": "off",
283
- "@html-eslint/no-obsolete-tags": "off",
284
- "@html-eslint/no-restricted-attr-values": "off",
285
- "@html-eslint/no-restricted-attrs": "off",
286
- "@html-eslint/no-script-style-type": "off",
287
- "@html-eslint/no-target-blank": "off",
288
- "@html-eslint/require-attrs": "off",
289
- "@html-eslint/require-button-type": "off",
290
- "@html-eslint/require-closing-tags": "off",
291
- "@html-eslint/require-doctype": "off",
292
- "@html-eslint/require-li-container": "off",
293
- "@html-eslint/require-meta-charset": "off",
294
- "@html-eslint/no-multiple-h1": "off",
295
- "@html-eslint/require-lang": "off",
296
- "@html-eslint/require-meta-description": "off",
297
- "@html-eslint/require-open-graph-protocol": "off",
298
- "@html-eslint/require-title": "off",
299
- "@html-eslint/no-abstract-roles": "off",
300
- "@html-eslint/no-accesskey-attrs": "off",
301
- "@html-eslint/no-aria-hidden-body": "off",
302
- "@html-eslint/no-non-scalable-viewport": "off",
303
- "@html-eslint/no-positive-tabindex": "off",
304
- "@html-eslint/no-skip-heading-levels": "off",
305
- "@html-eslint/require-frame-title": "off",
306
- "@html-eslint/require-img-alt": "off",
307
- "@html-eslint/require-meta-viewport": "off",
308
- "@html-eslint/element-newline": "off",
309
- "@html-eslint/id-naming-convention": "off",
310
- "@html-eslint/indent": "off",
311
- "@html-eslint/lowercase": "off",
312
- "@html-eslint/no-extra-spacing-attrs": "off",
313
- "@html-eslint/no-multiple-empty-lines": "off",
314
- "@html-eslint/no-trailing-spaces": "off",
315
- "@html-eslint/quotes": "off",
316
- "@html-eslint/sort-attrs": "off",
317
- };
318
-
319
- export default {
320
- rules,
321
- recommendedConfig: {
322
- files: ["**/*.html"],
323
- languageOptions: {
324
- parser: htmlParser,
325
- },
326
- plugins: { html, "custom-element": customElement },
327
- rules,
328
- },
329
- };