@intellectif/lk-react 23.1.0 → 23.1.2

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 (360) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/README.md +9 -5
  3. package/dist/ActivityErrorBoundary-B379hvtL.cjs +39 -0
  4. package/dist/ActivityErrorBoundary-B379hvtL.cjs.map +1 -0
  5. package/dist/ActivityErrorBoundary-Dw6SbWv3.js +34 -0
  6. package/dist/ActivityErrorBoundary-Dw6SbWv3.js.map +1 -0
  7. package/dist/ActivityMedia-CQQTRNl7.cjs +641 -0
  8. package/dist/ActivityMedia-CQQTRNl7.cjs.map +1 -0
  9. package/dist/ActivityMedia-vDiP-Psa.js +636 -0
  10. package/dist/ActivityMedia-vDiP-Psa.js.map +1 -0
  11. package/dist/ActivityPreview-1hhTkYuj.js +240 -0
  12. package/dist/ActivityPreview-1hhTkYuj.js.map +1 -0
  13. package/dist/ActivityPreview-BKr34exz.cjs +245 -0
  14. package/dist/ActivityPreview-BKr34exz.cjs.map +1 -0
  15. package/dist/ActivitySequence-CkX87pfB.js +839 -0
  16. package/dist/ActivitySequence-CkX87pfB.js.map +1 -0
  17. package/dist/ActivitySequence-CmoSyDnp.cjs +844 -0
  18. package/dist/ActivitySequence-CmoSyDnp.cjs.map +1 -0
  19. package/dist/Dictation-BlxRp-3k.js +926 -0
  20. package/dist/Dictation-BlxRp-3k.js.map +1 -0
  21. package/dist/Dictation-jECzL88E.cjs +931 -0
  22. package/dist/Dictation-jECzL88E.cjs.map +1 -0
  23. package/dist/FeedbackRegion-BNNMtTY-.cjs +108 -0
  24. package/dist/FeedbackRegion-BNNMtTY-.cjs.map +1 -0
  25. package/dist/FeedbackRegion-CyPSp8bA.js +85 -0
  26. package/dist/FeedbackRegion-CyPSp8bA.js.map +1 -0
  27. package/dist/FillInTheBlanks-B6xzqYXx.js +474 -0
  28. package/dist/FillInTheBlanks-B6xzqYXx.js.map +1 -0
  29. package/dist/FillInTheBlanks-BpKhdHg2.cjs +479 -0
  30. package/dist/FillInTheBlanks-BpKhdHg2.cjs.map +1 -0
  31. package/dist/GapSelect-DUSiaEQH.js +441 -0
  32. package/dist/GapSelect-DUSiaEQH.js.map +1 -0
  33. package/dist/GapSelect-payTq_Zn.cjs +446 -0
  34. package/dist/GapSelect-payTq_Zn.cjs.map +1 -0
  35. package/dist/InteractiveVideo-BguGv-HA.cjs +2955 -0
  36. package/dist/InteractiveVideo-BguGv-HA.cjs.map +1 -0
  37. package/dist/InteractiveVideo-Cg2jbU3j.js +2944 -0
  38. package/dist/InteractiveVideo-Cg2jbU3j.js.map +1 -0
  39. package/dist/LkAiProvider-DAPpA3PQ.d.cts +84 -0
  40. package/dist/LkAiProvider-DAPpA3PQ.d.cts.map +1 -0
  41. package/dist/LkAiProvider-QdEcIhoo.d.ts +84 -0
  42. package/dist/LkAiProvider-QdEcIhoo.d.ts.map +1 -0
  43. package/dist/LkIntlProvider-D_FdYXjQ.js +375 -0
  44. package/dist/LkIntlProvider-D_FdYXjQ.js.map +1 -0
  45. package/dist/LkIntlProvider-oi57lYB0.cjs +410 -0
  46. package/dist/LkIntlProvider-oi57lYB0.cjs.map +1 -0
  47. package/dist/MultipleChoice-COn5MtKY.cjs +433 -0
  48. package/dist/MultipleChoice-COn5MtKY.cjs.map +1 -0
  49. package/dist/MultipleChoice-Dra0_KYD.js +428 -0
  50. package/dist/MultipleChoice-Dra0_KYD.js.map +1 -0
  51. package/dist/PronunciationFeedback-DlMPGjkR.cjs +831 -0
  52. package/dist/PronunciationFeedback-DlMPGjkR.cjs.map +1 -0
  53. package/dist/PronunciationFeedback-Dxd6XPkO.js +772 -0
  54. package/dist/PronunciationFeedback-Dxd6XPkO.js.map +1 -0
  55. package/dist/ReadAloud-C8RhaUqV.js +1092 -0
  56. package/dist/{chunk-DC4CQCK5.js.map → ReadAloud-C8RhaUqV.js.map} +1 -1
  57. package/dist/ReadAloud-akDehitT.cjs +1103 -0
  58. package/dist/ReadAloud-akDehitT.cjs.map +1 -0
  59. package/dist/StimulusPanel-BgzByfkb.js +74 -0
  60. package/dist/StimulusPanel-BgzByfkb.js.map +1 -0
  61. package/dist/StimulusPanel-b66gaN3i.cjs +79 -0
  62. package/dist/StimulusPanel-b66gaN3i.cjs.map +1 -0
  63. package/dist/ThemeProvider-B6DyGqzh.d.cts +62 -0
  64. package/dist/ThemeProvider-B6DyGqzh.d.cts.map +1 -0
  65. package/dist/ThemeProvider-BCrxBaY-.d.ts +62 -0
  66. package/dist/ThemeProvider-BCrxBaY-.d.ts.map +1 -0
  67. package/dist/ThemeProvider-BRN1tj4n.cjs +187 -0
  68. package/dist/ThemeProvider-BRN1tj4n.cjs.map +1 -0
  69. package/dist/ThemeProvider-C7K9iMLX.js +158 -0
  70. package/dist/ThemeProvider-C7K9iMLX.js.map +1 -0
  71. package/dist/WrittenResponse-Bj3eFmGl.cjs +491 -0
  72. package/dist/WrittenResponse-Bj3eFmGl.cjs.map +1 -0
  73. package/dist/WrittenResponse-Cl8G6nO_.js +486 -0
  74. package/dist/WrittenResponse-Cl8G6nO_.js.map +1 -0
  75. package/dist/ai/LkAiProvider.cjs +34 -14
  76. package/dist/ai/LkAiProvider.cjs.map +1 -1
  77. package/dist/ai/LkAiProvider.d.cts +2 -83
  78. package/dist/ai/LkAiProvider.d.ts +2 -83
  79. package/dist/ai/LkAiProvider.js +33 -2
  80. package/dist/ai/LkAiProvider.js.map +1 -1
  81. package/dist/ai/useAiHelp.cjs +7 -25
  82. package/dist/ai/useAiHelp.d.cts +175 -177
  83. package/dist/ai/useAiHelp.d.cts.map +1 -0
  84. package/dist/ai/useAiHelp.d.ts +175 -177
  85. package/dist/ai/useAiHelp.d.ts.map +1 -0
  86. package/dist/ai/useAiHelp.js +3 -4
  87. package/dist/components/ActivityPreview.cjs +3 -29
  88. package/dist/components/ActivityPreview.d.cts +2 -81
  89. package/dist/components/ActivityPreview.d.ts +2 -81
  90. package/dist/components/ActivityPreview.js +2 -20
  91. package/dist/components/ActivitySequence.cjs +3 -30
  92. package/dist/components/ActivitySequence.d.cts +2 -432
  93. package/dist/components/ActivitySequence.d.ts +2 -432
  94. package/dist/components/ActivitySequence.js +2 -21
  95. package/dist/components/Dictation.cjs +4 -21
  96. package/dist/components/Dictation.d.cts +2 -19
  97. package/dist/components/Dictation.d.ts +2 -19
  98. package/dist/components/Dictation.js +3 -12
  99. package/dist/components/FillInTheBlanks.cjs +4 -20
  100. package/dist/components/FillInTheBlanks.d.cts +2 -30
  101. package/dist/components/FillInTheBlanks.d.ts +2 -30
  102. package/dist/components/FillInTheBlanks.js +3 -11
  103. package/dist/components/GapSelect.cjs +4 -20
  104. package/dist/components/GapSelect.d.cts +2 -27
  105. package/dist/components/GapSelect.d.ts +2 -27
  106. package/dist/components/GapSelect.js +3 -11
  107. package/dist/components/InteractiveVideo.cjs +5 -32
  108. package/dist/components/InteractiveVideo.d.cts +3 -291
  109. package/dist/components/InteractiveVideo.d.ts +3 -291
  110. package/dist/components/InteractiveVideo.js +3 -19
  111. package/dist/components/MultipleChoice.cjs +4 -20
  112. package/dist/components/MultipleChoice.d.cts +2 -26
  113. package/dist/components/MultipleChoice.d.ts +2 -26
  114. package/dist/components/MultipleChoice.js +3 -11
  115. package/dist/components/PronunciationFeedback.cjs +4 -17
  116. package/dist/components/PronunciationFeedback.d.cts +2 -90
  117. package/dist/components/PronunciationFeedback.d.ts +2 -90
  118. package/dist/components/PronunciationFeedback.js +3 -8
  119. package/dist/components/ReadAloud.cjs +4 -22
  120. package/dist/components/ReadAloud.d.cts +7 -11
  121. package/dist/components/ReadAloud.d.cts.map +1 -0
  122. package/dist/components/ReadAloud.d.ts +7 -11
  123. package/dist/components/ReadAloud.d.ts.map +1 -0
  124. package/dist/components/ReadAloud.js +3 -13
  125. package/dist/components/StimulusPanel.cjs +3 -14
  126. package/dist/components/StimulusPanel.d.cts +2 -51
  127. package/dist/components/StimulusPanel.d.ts +2 -51
  128. package/dist/components/StimulusPanel.js +2 -5
  129. package/dist/components/WrittenResponse.cjs +4 -19
  130. package/dist/components/WrittenResponse.d.cts +3 -18
  131. package/dist/components/WrittenResponse.d.ts +3 -18
  132. package/dist/components/WrittenResponse.js +3 -10
  133. package/dist/direction-Dq0_HtA5.js +183 -0
  134. package/dist/direction-Dq0_HtA5.js.map +1 -0
  135. package/dist/direction-K1pj0HCA.cjs +200 -0
  136. package/dist/direction-K1pj0HCA.cjs.map +1 -0
  137. package/dist/hooks/useActivityState.cjs +28 -10
  138. package/dist/hooks/useActivityState.cjs.map +1 -1
  139. package/dist/hooks/useActivityState.d.cts +25 -24
  140. package/dist/hooks/useActivityState.d.cts.map +1 -0
  141. package/dist/hooks/useActivityState.d.ts +25 -24
  142. package/dist/hooks/useActivityState.d.ts.map +1 -0
  143. package/dist/hooks/useActivityState.js +28 -2
  144. package/dist/hooks/useActivityState.js.map +1 -1
  145. package/dist/hooks/useSpeechRecorder.cjs +5 -16
  146. package/dist/hooks/useSpeechRecorder.d.cts +2 -127
  147. package/dist/hooks/useSpeechRecorder.d.ts +2 -127
  148. package/dist/hooks/useSpeechRecorder.js +3 -3
  149. package/dist/hooks/useXAPI.cjs +126 -10
  150. package/dist/hooks/useXAPI.cjs.map +1 -1
  151. package/dist/hooks/useXAPI.d.cts +14 -14
  152. package/dist/hooks/useXAPI.d.cts.map +1 -0
  153. package/dist/hooks/useXAPI.d.ts +14 -14
  154. package/dist/hooks/useXAPI.d.ts.map +1 -0
  155. package/dist/hooks/useXAPI.js +126 -2
  156. package/dist/hooks/useXAPI.js.map +1 -1
  157. package/dist/i18n/LkIntlProvider.cjs +9 -32
  158. package/dist/i18n/LkIntlProvider.d.cts +34 -38
  159. package/dist/i18n/LkIntlProvider.d.cts.map +1 -0
  160. package/dist/i18n/LkIntlProvider.d.ts +34 -38
  161. package/dist/i18n/LkIntlProvider.d.ts.map +1 -0
  162. package/dist/i18n/LkIntlProvider.js +3 -3
  163. package/dist/index-6P4rJHrJ.d.cts +432 -0
  164. package/dist/index-6P4rJHrJ.d.cts.map +1 -0
  165. package/dist/index-90CX504k.d.ts +90 -0
  166. package/dist/index-90CX504k.d.ts.map +1 -0
  167. package/dist/index-B_SgnjsC.d.cts +291 -0
  168. package/dist/index-B_SgnjsC.d.cts.map +1 -0
  169. package/dist/index-BavVW5z5.d.cts +25 -0
  170. package/dist/index-BavVW5z5.d.cts.map +1 -0
  171. package/dist/index-BhHv6Fiu.d.cts +28 -0
  172. package/dist/index-BhHv6Fiu.d.cts.map +1 -0
  173. package/dist/index-Bsu8VciA.d.ts +432 -0
  174. package/dist/index-Bsu8VciA.d.ts.map +1 -0
  175. package/dist/index-C1KGpD1k.d.ts +49 -0
  176. package/dist/index-C1KGpD1k.d.ts.map +1 -0
  177. package/dist/index-CKTpYTCC.d.cts +49 -0
  178. package/dist/index-CKTpYTCC.d.cts.map +1 -0
  179. package/dist/index-CO_SRFJj.d.ts +16 -0
  180. package/dist/index-CO_SRFJj.d.ts.map +1 -0
  181. package/dist/index-CSsuUsP7.d.cts +124 -0
  182. package/dist/index-CSsuUsP7.d.cts.map +1 -0
  183. package/dist/index-CunUyeuN.d.cts +78 -0
  184. package/dist/index-CunUyeuN.d.cts.map +1 -0
  185. package/dist/index-CzfRzks6.d.cts +90 -0
  186. package/dist/index-CzfRzks6.d.cts.map +1 -0
  187. package/dist/index-D14xtpBS.d.cts +24 -0
  188. package/dist/index-D14xtpBS.d.cts.map +1 -0
  189. package/dist/index-DHRPAPZf.d.ts +291 -0
  190. package/dist/index-DHRPAPZf.d.ts.map +1 -0
  191. package/dist/index-DLV6cK26.d.cts +16 -0
  192. package/dist/index-DLV6cK26.d.cts.map +1 -0
  193. package/dist/index-DbCCQ9cP.d.ts +124 -0
  194. package/dist/index-DbCCQ9cP.d.ts.map +1 -0
  195. package/dist/index-DeV5B2m5.d.ts +24 -0
  196. package/dist/index-DeV5B2m5.d.ts.map +1 -0
  197. package/dist/index-TZCJVSge.d.ts +28 -0
  198. package/dist/index-TZCJVSge.d.ts.map +1 -0
  199. package/dist/index-ZVvLHsd3.d.ts +25 -0
  200. package/dist/index-ZVvLHsd3.d.ts.map +1 -0
  201. package/dist/index-eQwBgpSw.d.ts +78 -0
  202. package/dist/index-eQwBgpSw.d.ts.map +1 -0
  203. package/dist/index.cjs +118 -163
  204. package/dist/index.cjs.map +1 -1
  205. package/dist/index.d.cts +20 -24
  206. package/dist/index.d.ts +20 -24
  207. package/dist/index.js +84 -29
  208. package/dist/index.js.map +1 -1
  209. package/dist/theme/ThemeProvider.cjs +8 -28
  210. package/dist/theme/ThemeProvider.d.cts +2 -59
  211. package/dist/theme/ThemeProvider.d.ts +2 -59
  212. package/dist/theme/ThemeProvider.js +3 -3
  213. package/dist/tries-CbbtZkdG.cjs +363 -0
  214. package/dist/tries-CbbtZkdG.cjs.map +1 -0
  215. package/dist/tries-DTHSrLCm.js +310 -0
  216. package/dist/tries-DTHSrLCm.js.map +1 -0
  217. package/dist/types-BOQd93x3.d.cts +994 -0
  218. package/dist/types-BOQd93x3.d.cts.map +1 -0
  219. package/dist/types-HIrgF_mS.d.ts +994 -0
  220. package/dist/types-HIrgF_mS.d.ts.map +1 -0
  221. package/dist/useAiHelp-B-ccDL5Q.js +906 -0
  222. package/dist/useAiHelp-B-ccDL5Q.js.map +1 -0
  223. package/dist/useAiHelp-h9yOLFqt.cjs +995 -0
  224. package/dist/useAiHelp-h9yOLFqt.cjs.map +1 -0
  225. package/dist/useSpeechRecorder--O_f-xvt.cjs +720 -0
  226. package/dist/useSpeechRecorder--O_f-xvt.cjs.map +1 -0
  227. package/dist/useSpeechRecorder-DtAYvl02.d.cts +154 -0
  228. package/dist/useSpeechRecorder-DtAYvl02.d.cts.map +1 -0
  229. package/dist/useSpeechRecorder-DtAYvl02.d.ts +154 -0
  230. package/dist/useSpeechRecorder-DtAYvl02.d.ts.map +1 -0
  231. package/dist/useSpeechRecorder-zIi9Dlw8.js +709 -0
  232. package/dist/useSpeechRecorder-zIi9Dlw8.js.map +1 -0
  233. package/package.json +10 -11
  234. package/dist/WrittenResponse-B7A5gHMj.d.ts +0 -115
  235. package/dist/WrittenResponse-BpL9p2Hn.d.cts +0 -115
  236. package/dist/ai/useAiHelp.cjs.map +0 -1
  237. package/dist/ai/useAiHelp.js.map +0 -1
  238. package/dist/chunk-2PNSVBLQ.cjs +0 -54
  239. package/dist/chunk-2PNSVBLQ.cjs.map +0 -1
  240. package/dist/chunk-2TW6WLBC.js +0 -80
  241. package/dist/chunk-2TW6WLBC.js.map +0 -1
  242. package/dist/chunk-4ZZWZSWI.js +0 -61
  243. package/dist/chunk-4ZZWZSWI.js.map +0 -1
  244. package/dist/chunk-6N43WDVG.js +0 -29
  245. package/dist/chunk-6N43WDVG.js.map +0 -1
  246. package/dist/chunk-7ALBSPYR.cjs +0 -436
  247. package/dist/chunk-7ALBSPYR.cjs.map +0 -1
  248. package/dist/chunk-7NFY3M3W.js +0 -234
  249. package/dist/chunk-7NFY3M3W.js.map +0 -1
  250. package/dist/chunk-7SB2MJA4.js +0 -29
  251. package/dist/chunk-7SB2MJA4.js.map +0 -1
  252. package/dist/chunk-ABJJ3LII.js +0 -434
  253. package/dist/chunk-ABJJ3LII.js.map +0 -1
  254. package/dist/chunk-BIGGXHAW.cjs +0 -342
  255. package/dist/chunk-BIGGXHAW.cjs.map +0 -1
  256. package/dist/chunk-C7QZE5BI.js +0 -430
  257. package/dist/chunk-C7QZE5BI.js.map +0 -1
  258. package/dist/chunk-CWTUWNV3.cjs +0 -2937
  259. package/dist/chunk-CWTUWNV3.cjs.map +0 -1
  260. package/dist/chunk-DC4CQCK5.js +0 -915
  261. package/dist/chunk-DS6HN3YR.cjs +0 -496
  262. package/dist/chunk-DS6HN3YR.cjs.map +0 -1
  263. package/dist/chunk-FDQR4GAZ.js +0 -240
  264. package/dist/chunk-FDQR4GAZ.js.map +0 -1
  265. package/dist/chunk-FKGMSOJF.js +0 -394
  266. package/dist/chunk-FKGMSOJF.js.map +0 -1
  267. package/dist/chunk-G6PXJ2SA.js +0 -823
  268. package/dist/chunk-G6PXJ2SA.js.map +0 -1
  269. package/dist/chunk-HNLRVRQR.js +0 -335
  270. package/dist/chunk-HNLRVRQR.js.map +0 -1
  271. package/dist/chunk-J3C72RPK.cjs +0 -31
  272. package/dist/chunk-J3C72RPK.cjs.map +0 -1
  273. package/dist/chunk-K63VPFOV.cjs +0 -134
  274. package/dist/chunk-K63VPFOV.cjs.map +0 -1
  275. package/dist/chunk-KFLIDTDU.cjs +0 -825
  276. package/dist/chunk-KFLIDTDU.cjs.map +0 -1
  277. package/dist/chunk-KHKH5LCT.cjs +0 -250
  278. package/dist/chunk-KHKH5LCT.cjs.map +0 -1
  279. package/dist/chunk-LBEKRN6Y.cjs +0 -664
  280. package/dist/chunk-LBEKRN6Y.cjs.map +0 -1
  281. package/dist/chunk-LPUWXIPR.cjs +0 -578
  282. package/dist/chunk-LPUWXIPR.cjs.map +0 -1
  283. package/dist/chunk-MCO52PV5.js +0 -520
  284. package/dist/chunk-MCO52PV5.js.map +0 -1
  285. package/dist/chunk-MKXEM2C5.cjs +0 -396
  286. package/dist/chunk-MKXEM2C5.cjs.map +0 -1
  287. package/dist/chunk-MXNC5UNO.js +0 -563
  288. package/dist/chunk-MXNC5UNO.js.map +0 -1
  289. package/dist/chunk-NAK55BYU.cjs +0 -859
  290. package/dist/chunk-NAK55BYU.cjs.map +0 -1
  291. package/dist/chunk-NDBMKGQ5.cjs +0 -599
  292. package/dist/chunk-NDBMKGQ5.cjs.map +0 -1
  293. package/dist/chunk-OD65OZIW.cjs +0 -159
  294. package/dist/chunk-OD65OZIW.cjs.map +0 -1
  295. package/dist/chunk-ORT3KLGI.js +0 -50
  296. package/dist/chunk-ORT3KLGI.js.map +0 -1
  297. package/dist/chunk-PNNUPUH4.cjs +0 -82
  298. package/dist/chunk-PNNUPUH4.cjs.map +0 -1
  299. package/dist/chunk-PWHECW6N.js +0 -2934
  300. package/dist/chunk-PWHECW6N.js.map +0 -1
  301. package/dist/chunk-RBS5A2DF.js +0 -857
  302. package/dist/chunk-RBS5A2DF.js.map +0 -1
  303. package/dist/chunk-RPWUDXG5.cjs +0 -63
  304. package/dist/chunk-RPWUDXG5.cjs.map +0 -1
  305. package/dist/chunk-TCDJY3H6.js +0 -494
  306. package/dist/chunk-TCDJY3H6.js.map +0 -1
  307. package/dist/chunk-TP5UMRAU.cjs +0 -918
  308. package/dist/chunk-TP5UMRAU.cjs.map +0 -1
  309. package/dist/chunk-TS7J6DTY.js +0 -597
  310. package/dist/chunk-TS7J6DTY.js.map +0 -1
  311. package/dist/chunk-TUVENMXB.cjs +0 -20
  312. package/dist/chunk-TUVENMXB.cjs.map +0 -1
  313. package/dist/chunk-UDCQTOVU.cjs +0 -523
  314. package/dist/chunk-UDCQTOVU.cjs.map +0 -1
  315. package/dist/chunk-UHKZXOXD.js +0 -128
  316. package/dist/chunk-UHKZXOXD.js.map +0 -1
  317. package/dist/chunk-V6BA44DS.cjs +0 -236
  318. package/dist/chunk-V6BA44DS.cjs.map +0 -1
  319. package/dist/chunk-XO5R73Y4.js +0 -653
  320. package/dist/chunk-XO5R73Y4.js.map +0 -1
  321. package/dist/chunk-XOR4MPEN.cjs +0 -31
  322. package/dist/chunk-XOR4MPEN.cjs.map +0 -1
  323. package/dist/chunk-YORQQXGO.js +0 -155
  324. package/dist/chunk-YORQQXGO.js.map +0 -1
  325. package/dist/chunk-YY4PFR3Z.cjs +0 -432
  326. package/dist/chunk-YY4PFR3Z.cjs.map +0 -1
  327. package/dist/chunk-ZPI6Q42R.js +0 -17
  328. package/dist/chunk-ZPI6Q42R.js.map +0 -1
  329. package/dist/components/ActivityPreview.cjs.map +0 -1
  330. package/dist/components/ActivityPreview.js.map +0 -1
  331. package/dist/components/ActivitySequence.cjs.map +0 -1
  332. package/dist/components/ActivitySequence.js.map +0 -1
  333. package/dist/components/Dictation.cjs.map +0 -1
  334. package/dist/components/Dictation.js.map +0 -1
  335. package/dist/components/FillInTheBlanks.cjs.map +0 -1
  336. package/dist/components/FillInTheBlanks.js.map +0 -1
  337. package/dist/components/GapSelect.cjs.map +0 -1
  338. package/dist/components/GapSelect.js.map +0 -1
  339. package/dist/components/InteractiveVideo.cjs.map +0 -1
  340. package/dist/components/InteractiveVideo.js.map +0 -1
  341. package/dist/components/MultipleChoice.cjs.map +0 -1
  342. package/dist/components/MultipleChoice.js.map +0 -1
  343. package/dist/components/PronunciationFeedback.cjs.map +0 -1
  344. package/dist/components/PronunciationFeedback.js.map +0 -1
  345. package/dist/components/ReadAloud.cjs.map +0 -1
  346. package/dist/components/ReadAloud.js.map +0 -1
  347. package/dist/components/StimulusPanel.cjs.map +0 -1
  348. package/dist/components/StimulusPanel.js.map +0 -1
  349. package/dist/components/WrittenResponse.cjs.map +0 -1
  350. package/dist/components/WrittenResponse.js.map +0 -1
  351. package/dist/hooks/useSpeechRecorder.cjs.map +0 -1
  352. package/dist/hooks/useSpeechRecorder.js.map +0 -1
  353. package/dist/i18n/LkIntlProvider.cjs.map +0 -1
  354. package/dist/i18n/LkIntlProvider.js.map +0 -1
  355. package/dist/machine-CuwKqWXC.d.cts +0 -26
  356. package/dist/machine-CuwKqWXC.d.ts +0 -26
  357. package/dist/theme/ThemeProvider.cjs.map +0 -1
  358. package/dist/theme/ThemeProvider.js.map +0 -1
  359. package/dist/types-C4IsUQsK.d.ts +0 -989
  360. package/dist/types-CJgZWtl4.d.cts +0 -989
@@ -1,21 +1,5 @@
1
1
  'use client';
2
- 'use strict';
3
-
4
- var chunk7ALBSPYR_cjs = require('../chunk-7ALBSPYR.cjs');
5
- require('../chunk-KHKH5LCT.cjs');
6
- require('../chunk-2PNSVBLQ.cjs');
7
- require('../chunk-J3C72RPK.cjs');
8
- require('../chunk-LPUWXIPR.cjs');
9
- require('../chunk-NDBMKGQ5.cjs');
10
- require('../chunk-XOR4MPEN.cjs');
11
- require('../chunk-BIGGXHAW.cjs');
12
- require('../chunk-TUVENMXB.cjs');
13
-
14
-
15
-
16
- Object.defineProperty(exports, "GapSelect", {
17
- enumerable: true,
18
- get: function () { return chunk7ALBSPYR_cjs.GapSelect; }
19
- });
20
- //# sourceMappingURL=GapSelect.cjs.map
21
- //# sourceMappingURL=GapSelect.cjs.map
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_GapSelect = require("../GapSelect-payTq_Zn.cjs");
5
+ exports.GapSelect = require_GapSelect.GapSelect;
@@ -1,27 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { GapSelectData } from '@intellectif/lk-core';
3
- import { A as ActivityProps } from '../types-CJgZWtl4.cjs';
4
- import '../ai/LkAiProvider.cjs';
5
- import 'react';
6
- import '../machine-CuwKqWXC.cjs';
7
-
8
- interface GapSelectProps extends ActivityProps<GapSelectData> {
9
- /**
10
- * Seeds the per-gap choice shuffle when `data.shuffleChoices` is set. Pass
11
- * the attempt id, exactly as on `<MultipleChoice>`: an order nobody can
12
- * reproduce cannot be reconciled with the attempt a server recorded. Without
13
- * one, a random per-mount seed is used — stable within the mount, and
14
- * deliberately not reproducible.
15
- */
16
- shuffleSeed?: string;
17
- }
18
-
19
- /**
20
- * Public Gap Select activity: the core wrapped in `ActivityErrorBoundary` so a
21
- * render failure (including the dev schema-validation throw and the
22
- * redacted-in-`practice` guard) degrades to an accessible fallback instead of
23
- * crashing the host.
24
- */
25
- declare function GapSelect(props: GapSelectProps): react_jsx_runtime.JSX.Element;
26
-
27
- export { GapSelect, type GapSelectProps };
1
+ import { n as GapSelectProps, t as GapSelect } from "../index-BavVW5z5.cjs";
2
+ export { GapSelect, type GapSelectProps };
@@ -1,27 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { GapSelectData } from '@intellectif/lk-core';
3
- import { A as ActivityProps } from '../types-C4IsUQsK.js';
4
- import '../ai/LkAiProvider.js';
5
- import 'react';
6
- import '../machine-CuwKqWXC.js';
7
-
8
- interface GapSelectProps extends ActivityProps<GapSelectData> {
9
- /**
10
- * Seeds the per-gap choice shuffle when `data.shuffleChoices` is set. Pass
11
- * the attempt id, exactly as on `<MultipleChoice>`: an order nobody can
12
- * reproduce cannot be reconciled with the attempt a server recorded. Without
13
- * one, a random per-mount seed is used — stable within the mount, and
14
- * deliberately not reproducible.
15
- */
16
- shuffleSeed?: string;
17
- }
18
-
19
- /**
20
- * Public Gap Select activity: the core wrapped in `ActivityErrorBoundary` so a
21
- * render failure (including the dev schema-validation throw and the
22
- * redacted-in-`practice` guard) degrades to an accessible fallback instead of
23
- * crashing the host.
24
- */
25
- declare function GapSelect(props: GapSelectProps): react_jsx_runtime.JSX.Element;
26
-
27
- export { GapSelect, type GapSelectProps };
1
+ import { n as GapSelectProps, t as GapSelect } from "../index-ZVvLHsd3.js";
2
+ export { GapSelect, type GapSelectProps };
@@ -1,12 +1,4 @@
1
1
  'use client';
2
- export { GapSelect } from '../chunk-ABJJ3LII.js';
3
- import '../chunk-FDQR4GAZ.js';
4
- import '../chunk-ORT3KLGI.js';
5
- import '../chunk-7SB2MJA4.js';
6
- import '../chunk-MXNC5UNO.js';
7
- import '../chunk-TS7J6DTY.js';
8
- import '../chunk-6N43WDVG.js';
9
- import '../chunk-HNLRVRQR.js';
10
- import '../chunk-ZPI6Q42R.js';
11
- //# sourceMappingURL=GapSelect.js.map
12
- //# sourceMappingURL=GapSelect.js.map
2
+ "use client";
3
+ import { t as GapSelect } from "../GapSelect-DUSiaEQH.js";
4
+ export { GapSelect };
@@ -1,33 +1,6 @@
1
1
  'use client';
2
- 'use strict';
3
-
4
- var chunkCWTUWNV3_cjs = require('../chunk-CWTUWNV3.cjs');
5
- require('../chunk-YY4PFR3Z.cjs');
6
- require('../chunk-DS6HN3YR.cjs');
7
- require('../chunk-7ALBSPYR.cjs');
8
- require('../chunk-NAK55BYU.cjs');
9
- require('../chunk-KHKH5LCT.cjs');
10
- require('../chunk-TP5UMRAU.cjs');
11
- require('../chunk-LBEKRN6Y.cjs');
12
- require('../chunk-UDCQTOVU.cjs');
13
- require('../chunk-OD65OZIW.cjs');
14
- require('../chunk-2PNSVBLQ.cjs');
15
- require('../chunk-J3C72RPK.cjs');
16
- require('../chunk-LPUWXIPR.cjs');
17
- require('../chunk-NDBMKGQ5.cjs');
18
- require('../chunk-XOR4MPEN.cjs');
19
- require('../chunk-BIGGXHAW.cjs');
20
- require('../chunk-TUVENMXB.cjs');
21
-
22
-
23
-
24
- Object.defineProperty(exports, "InteractiveVideo", {
25
- enumerable: true,
26
- get: function () { return chunkCWTUWNV3_cjs.InteractiveVideo; }
27
- });
28
- Object.defineProperty(exports, "resolveCaptionTracks", {
29
- enumerable: true,
30
- get: function () { return chunkCWTUWNV3_cjs.resolveCaptionTracks; }
31
- });
32
- //# sourceMappingURL=InteractiveVideo.cjs.map
33
- //# sourceMappingURL=InteractiveVideo.cjs.map
2
+ "use client";
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
+ const require_InteractiveVideo = require("../InteractiveVideo-BguGv-HA.cjs");
5
+ exports.InteractiveVideo = require_InteractiveVideo.InteractiveVideo;
6
+ exports.resolveCaptionTracks = require_InteractiveVideo.resolveCaptionTracks;
@@ -1,291 +1,3 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ItemGroup, MediaProgress, LearnerResponse, ItemOutcome, ActivityResult, InteractionEvent, ResolvedDeliveryPolicy, ResolvedItemScoringPolicy, InteractionKind, SpeechAssessment, MediaTrack, DeliveryPolicy, ItemScoringPolicy, ThemeTokens } from '@intellectif/lk-core';
3
- import { ReactNode } from 'react';
4
- import { LearnerAi } from '../ai/LkAiProvider.cjs';
5
- import { g as RenderableActivity, e as RenderMode, i as SequenceRecordingSlot, h as SequenceRecordingBinding, V as VideoPreferences, a as LkStringsOverride, H as HtmlSanitizer } from '../types-CJgZWtl4.cjs';
6
- export { C as CaptionSize } from '../types-CJgZWtl4.cjs';
7
- import '../machine-CuwKqWXC.cjs';
8
-
9
- /** An item group whose items may be `redact()` projections: the client's view of an interactive video. */
10
- type RenderableItemGroup = ItemGroup<RenderableActivity>;
11
- /** A question's place: its slot, as `<ActivitySequence>` reports it, plus the quiz it sits in. */
12
- interface InteractiveVideoSlot extends SequenceRecordingSlot {
13
- cueId: string;
14
- }
15
- /** What `onFinished` reports: every question, and how the learner left it. */
16
- interface InteractiveVideoSummary {
17
- slots: {
18
- slotId: string;
19
- activityId: string;
20
- cueId: string;
21
- status: 'answered' | 'skipped' | 'unreached';
22
- }[];
23
- }
24
- /**
25
- * One question, as `renderQuestion` is handed it: what to draw, and the six
26
- * calls through which the video learns what the learner did.
27
- *
28
- * The calls are the ones the SDK's own components make, so a question the host
29
- * draws counts exactly as one the SDK draws — in the step dots, in whether a
30
- * required quiz lets the learner go on, on the end card and in `onFinished`.
31
- * Each keeps ONE identity per question for the life of the player, so it is
32
- * safe in an effect's dependencies, and each does nothing once the player has
33
- * unmounted.
34
- */
35
- interface InteractiveVideoQuestion {
36
- /** The question, as the SDK would have rendered it: full data, or a `redact()` projection. */
37
- activity: RenderableActivity;
38
- /** Where it sits: the same object `onSubmit` and `onActivityComplete` are handed, for the life of the player. */
39
- slot: InteractiveVideoSlot;
40
- /**
41
- * Passed through untouched. The SDK cannot enforce a mode for pixels it does
42
- * not draw: in `exam` the host must not reveal correctness, and in `review`
43
- * nothing is submittable — `submit`, `complete` and `clear` are ignored there.
44
- */
45
- renderMode: RenderMode;
46
- /**
47
- * `true` while this question is the one on screen: its quiz is open and it is
48
- * the current step. `false` from the moment it leaves the screen — another
49
- * step, the quiz closing, another quiz opening — and `true` again when the
50
- * learner comes back.
51
- *
52
- * WHEN IT TURNS `false`, STOP THE MICROPHONE, ANY TIMER AND ANY SPEECH. The
53
- * video pauses the `<audio>` and `<video>` elements inside the question and
54
- * stops the recorders the SDK started, but it cannot reach a recorder it did
55
- * not create.
56
- */
57
- active: boolean;
58
- locale?: string;
59
- /** The answer restored from `responses`. A starting value: read it once, as the SDK's components do. */
60
- defaultValue?: LearnerResponse;
61
- /** Whether `submittedSlotIds` names this question: it was handed in before this attempt resumed. */
62
- defaultSubmitted: boolean;
63
- /** Its stored outcome from `outcomes`: review, or the grade of a question graded later. Read live. */
64
- outcome?: ItemOutcome;
65
- /**
66
- * An element inside the player, for popovers and tooltips. Portal into it
67
- * rather than into `document.body`: in fullscreen only the player is painted,
68
- * and anything outside it silently vanishes. It is drawn above the quiz, is
69
- * the same element for the life of the player — one for every question, so
70
- * key what you put in it — and is `null` only before the player's first
71
- * commit.
72
- */
73
- portalContainer: HTMLElement | null;
74
- /**
75
- * The AI ports in force for this video — its `ai` prop, else an
76
- * `LkAiProvider` above it — for a host that offers its own explanations or
77
- * hints. Absent in `exam`: no question gives AI help there, and the SDK
78
- * hands its ports to none.
79
- */
80
- ai?: LearnerAi;
81
- /**
82
- * The video's delivery policy, every setting spelled out: what this question
83
- * may show. The SDK cannot keep a policy in pixels it does not draw — where
84
- * `feedback` or `solutions` is `false`, show no mark and no answer.
85
- */
86
- delivery: ResolvedDeliveryPolicy;
87
- /**
88
- * The video's scoring policy, every setting spelled out: how many tries a
89
- * question gives, which counts, and what tries and hints cost. The SDK's own
90
- * questions apply it; a question you draw scores by it with lk-core's
91
- * `scoreTries`, or not at all.
92
- */
93
- scoring: ResolvedItemScoringPolicy;
94
- /**
95
- * The learner committed an answer: marks the question answered and forwards
96
- * to `onSubmit(response, slot)`. Latest wins: call it again for a new take or
97
- * a corrected answer.
98
- */
99
- submit(response: LearnerResponse): void;
100
- /**
101
- * The answer has a result: marks the question answered, keeps `score / maxScore`
102
- * for the end card when `maxScore > 0`, and forwards to
103
- * `onActivityComplete(result, slot)`. Latest wins. Counts as answered on its
104
- * own, without a `submit`, and forwards exactly what was called — no
105
- * `onSubmit` is invented for it.
106
- */
107
- complete(result: ActivityResult): void;
108
- /**
109
- * The learner withdrew the answer — a "Try again". The question is unanswered
110
- * again and its score forgotten: its step dot empties, a required quiz holds
111
- * the learner again, and `onFinished` would report it `skipped`. Calls no
112
- * host callback: the host already knows.
113
- */
114
- clear(): void;
115
- /**
116
- * Work is on its way for this question — an upload, an assessment. While any
117
- * question is pending, Finish on the end card waits, and a video that ends
118
- * does not finish by itself; closing the quiz, paging and seeking do not wait.
119
- * Call `setPending(false)` however the work ends, a failure included.
120
- */
121
- setPending(pending: boolean): void;
122
- /** Forwards to `onInteraction`, with this question's `activityId` and the time filled in. */
123
- emit(type: InteractionKind, payload?: Record<string, unknown>): void;
124
- }
125
- interface InteractiveVideoProps {
126
- /** An item group with a video stimulus and a timeline. Redacted projections in exam and review. */
127
- group: RenderableItemGroup;
128
- /**
129
- * `practice` (the default) grades each question and shows its feedback;
130
- * `exam` submits without showing correctness — a check-in marked later;
131
- * `review` shows how each question was marked.
132
- *
133
- * `exam` does NOT make the video fit for an official summative exam. The
134
- * learner controls the recording — rewinds it, slows it, reads its
135
- * transcript — while the questions are open, and nothing here times a
136
- * question or holds a single pass. Deliver a paper of record with
137
- * `<ActivitySequence>`.
138
- */
139
- renderMode?: RenderMode;
140
- /** Where to resume. Read through `readMediaProgress` and clamped; a required quiz is never skipped by a resume. */
141
- progress?: MediaProgress;
142
- /** At most every 5 s while playing, and on pause, seek, a quiz opening and the end. */
143
- onProgress?: (progress: MediaProgress) => void;
144
- /** Answers restored from the host, by slot id: `AttemptState.responses`. Read once, at mount. */
145
- responses?: Readonly<Record<string, LearnerResponse>>;
146
- /**
147
- * Questions the learner had already submitted, from
148
- * `AttemptState.submittedSlotIds`: mounted submitted, and counted as
149
- * answered, so a resumed video neither reopens a committed answer nor stops
150
- * again at a quiz already done. Read once, at mount.
151
- */
152
- submittedSlotIds?: readonly string[];
153
- /** Stored outcomes, by slot id: review, and the grades of questions graded later. */
154
- outcomes?: Readonly<Record<string, ItemOutcome>>;
155
- onSubmit?: (response: LearnerResponse, slot: InteractiveVideoSlot) => void;
156
- onActivityComplete?: (result: ActivityResult, slot: InteractiveVideoSlot) => void;
157
- /**
158
- * Once per mount: when the learner presses Finish, or the video ends with every
159
- * question answered — either way, only once no answer is still on its way.
160
- */
161
- onFinished?: (summary: InteractiveVideoSummary) => void;
162
- onInteraction?: (event: InteractionEvent) => void;
163
- /**
164
- * Draws a question yourself. Called for each question once its quiz has
165
- * opened, and on every render after;
166
- * return `undefined` for the SDK's own component, so a host can take over one
167
- * activity type and leave the rest. `null` draws nothing, and is kept.
168
- *
169
- * The video still owns everything around the question: when it opens,
170
- * whether it counts as answered, whether a required quiz lets the learner go
171
- * on, pausing, resume and the end summary — all through the calls on
172
- * {@link InteractiveVideoQuestion}. A question the host draws is never
173
- * treated differently from one the SDK draws.
174
- *
175
- * THE HOST MUST STOP ITS MICROPHONE WHEN `active` TURNS `false`: the SDK stops
176
- * only the recorders it created. And the SDK cannot keep a mode for pixels it
177
- * does not draw: in `exam` reveal no correctness, and in `review` accept no
178
- * answer.
179
- *
180
- * What you return is keyed by the question's slot and stays mounted for the
181
- * life of the player, like the SDK's own questions, and sits inside the same
182
- * error boundary: a throw degrades that one question, never the video.
183
- */
184
- renderQuestion?: (question: InteractiveVideoQuestion) => ReactNode | undefined;
185
- /**
186
- * Where read-aloud takes are stored and judged. Required for every read-aloud
187
- * the SDK draws itself, outside review; a video whose read-alouds are all
188
- * drawn by `renderQuestion` needs none.
189
- */
190
- recordingBinding?: SequenceRecordingBinding;
191
- /** Speech assessments by slot id, so `review` shows the marks behind a read-aloud's grade. Read live. */
192
- assessments?: Readonly<Record<string, SpeechAssessment>>;
193
- /** A self-hosted copy of the read-aloud capture processor, for a strict Content-Security-Policy. */
194
- workletUrl?: string;
195
- /**
196
- * Fetches a caption file with the host's credentials and returns its WebVTT
197
- * text. Without it, the player fetches `src` itself — which a `<track>`
198
- * could not do for a URL that needs an Authorization header.
199
- */
200
- captionsLoader?: (track: MediaTrack) => Promise<string>;
201
- /**
202
- * FORCES preferences: each field given here overrides what the learner chose,
203
- * every time the video opens. For a starting point the learner can still
204
- * change — a language pair, say — pass `defaultPreferences` instead. Read when
205
- * the video opens; the learner's own changes after that hold.
206
- */
207
- preferences?: Partial<VideoPreferences>;
208
- /**
209
- * Preferences to start from, below what the learner chose in this browser:
210
- * each field applies until the learner changes it. A host that keeps the
211
- * learner's choice on their account passes it back here — on a new device
212
- * nothing is stored, so the account's choice applies; on the same device the
213
- * stored choice is that same choice. Read live: a value that arrives after
214
- * the video opens still fills every field nobody chose.
215
- */
216
- defaultPreferences?: Partial<VideoPreferences>;
217
- /**
218
- * After each change the learner makes — a menu, a shortcut, the volume, the
219
- * speed — with the preferences now in force and the fields that changed.
220
- * Never when the video opens, and never for `preferences`. The player still
221
- * remembers the change in this browser; this is for a host that keeps it on
222
- * the learner's account as well.
223
- */
224
- onPreferencesChange?: (next: VideoPreferences, change: Partial<VideoPreferences>) => void;
225
- /** A short label in the corner, such as a lesson code. */
226
- label?: string;
227
- /** Seed for the option order of multiple-choice and gap-select questions: the attempt id. */
228
- shuffleSeed?: string;
229
- locale?: string;
230
- strings?: LkStringsOverride;
231
- /**
232
- * The host's AI ports, for every question the SDK draws: explanations after
233
- * grading, hints before submit. The same as `LkAiProvider`, for this one
234
- * video. Nothing AI appears in `exam`. See {@link LearnerAi}.
235
- */
236
- ai?: LearnerAi;
237
- /**
238
- * What a learner may see around the video's questions — feedback,
239
- * solutions, hints, AI help — for every question in it, and on the end card:
240
- * with `feedback: false` it counts answers and shows no score. Each setting
241
- * only takes away. See `DeliveryPolicy` in lk-core.
242
- */
243
- delivery?: DeliveryPolicy | null;
244
- /**
245
- * How the video's questions are scored when a learner can try again or ask
246
- * for hints — for every question in it. A later try replaces a question's
247
- * grade, as any answer given again does, until the learner finishes: then
248
- * every question's tries close. See `ItemScoringPolicy` in lk-core.
249
- *
250
- * A policy `validateItemScoringPolicy` refuses throws at render.
251
- */
252
- scoring?: ItemScoringPolicy | null;
253
- theme?: Partial<ThemeTokens>;
254
- sanitizeHtml?: HtmlSanitizer;
255
- }
256
-
257
- /** The two lines a learner can have: which track each shows, if any. */
258
- interface CaptionTracks {
259
- primary?: MediaTrack;
260
- secondary?: MediaTrack;
261
- }
262
- /**
263
- * Which track each caption line shows, from the learner's two choices.
264
- *
265
- * The primary line always shows something while there are tracks:
266
- * 1. the track in `captionLanguage` (case-insensitive);
267
- * 2. else one of the same primary language — `pt` finds `pt-BR`, `es` finds
268
- * `es-419`;
269
- * 3. else the `default` track;
270
- * 4. else the first.
271
- *
272
- * Where two tracks share a language, the `captions` one wins.
273
- *
274
- * The secondary line is stricter: it appears only when `secondaryCaptionLanguage`
275
- * is set and matches a track in another language, by steps 1 and 2 alone —
276
- * never the default, never the first. A second line the learner did not choose
277
- * must never appear.
278
- */
279
- declare function resolveCaptionTracks(tracks: readonly MediaTrack[], preferences: Pick<VideoPreferences, 'captionLanguage' | 'secondaryCaptionLanguage'>): CaptionTracks;
280
-
281
- /**
282
- * Public interactive video: the player wrapped in `ActivityErrorBoundary`, so a
283
- * render failure — the development-time schema check among them — degrades to
284
- * an accessible fallback instead of taking the host page down.
285
- *
286
- * A formative tool, for lessons and practice — not for official summative
287
- * exams, which `<ActivitySequence>` delivers.
288
- */
289
- declare function InteractiveVideo(props: InteractiveVideoProps): react_jsx_runtime.JSX.Element;
290
-
291
- export { type CaptionTracks, InteractiveVideo, type InteractiveVideoProps, type InteractiveVideoQuestion, type InteractiveVideoSlot, type InteractiveVideoSummary, type RenderableItemGroup, VideoPreferences, resolveCaptionTracks };
1
+ import { b as CaptionSize, x as VideoPreferences } from "../types-BOQd93x3.cjs";
2
+ import { a as InteractiveVideoQuestion, c as RenderableItemGroup, i as InteractiveVideoProps, n as CaptionTracks, o as InteractiveVideoSlot, r as resolveCaptionTracks, s as InteractiveVideoSummary, t as InteractiveVideo } from "../index-B_SgnjsC.cjs";
3
+ export { type CaptionSize, type CaptionTracks, InteractiveVideo, type InteractiveVideoProps, type InteractiveVideoQuestion, type InteractiveVideoSlot, type InteractiveVideoSummary, type RenderableItemGroup, type VideoPreferences, resolveCaptionTracks };