@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,96 +1,94 @@
1
- import { AiCoaching, ReadAloudData, SpeechAssessment, GradeRecord, InteractionEvent, DeliveryPolicy, AiTextResult, LearnerResponse, ItemOutcome, AiWritingFeedback } from '@intellectif/lk-core';
2
- import { e as RenderMode, g as RenderableActivity } from '../types-C4IsUQsK.js';
3
- import { LearnerAi } from './LkAiProvider.js';
4
- import '../machine-CuwKqWXC.js';
5
- import 'react';
6
-
1
+ import { t as LearnerAi } from "../LkAiProvider-QdEcIhoo.js";
2
+ import { a as RenderMode, s as RenderableActivity } from "../types-HIrgF_mS.js";
3
+ import { AiCoaching, AiTextResult, AiWritingFeedback, DeliveryPolicy, GradeRecord, InteractionEvent, ItemOutcome, LearnerResponse, ReadAloudData, SpeechAssessment } from "@intellectif/lk-core";
4
+ //#region src/ai/useAiHelp.d.ts
7
5
  /**
8
6
  * The question AI help is being asked about, as the SDK's own components know
9
7
  * it. A host drawing its own question passes what it has; everything optional
10
8
  * defaults to what the components pass.
11
9
  */
12
- interface AiHelpSituation {
13
- /** The question, as `data` is given to any activity component. */
14
- data: RenderableActivity;
15
- /** The learner's answer as it stands: submitted, restored, or being written. */
16
- response: LearnerResponse;
17
- /** Whether the learner has committed that answer. */
18
- submitted: boolean;
19
- /**
20
- * Pass on the `renderMode` your question was given. Left out, the paper
21
- * around the question answers for it — a question inside `<ActivitySequence>`
22
- * or `<InteractiveVideo>` knows its mode — and `practice` only where there is
23
- * no paper at all. An `exam` around the question wins over anything passed
24
- * here.
25
- */
26
- renderMode?: RenderMode;
27
- /**
28
- * The AI ports to use, overriding {@link LkAiProvider}'s for this question.
29
- * A question inside `<ActivitySequence>` or `<InteractiveVideo>` is handed
30
- * the ports in force as `ai` — pass that straight in.
31
- */
32
- ai?: LearnerAi;
33
- /** The interface language: the default language for what a model writes. */
34
- locale?: string;
35
- /** Where `ai-hint-shown` and `ai-explanation-shown` go. */
36
- onInteraction?: (event: InteractionEvent) => void;
37
- /**
38
- * The delivery policy your question was handed. The paper around the
39
- * question holds as well — a set that switched AI hints off keeps them off
40
- * here, whatever is passed — so leaving it out never turns anything on.
41
- */
42
- delivery?: DeliveryPolicy | null;
10
+ export interface AiHelpSituation {
11
+ /** The question, as `data` is given to any activity component. */
12
+ data: RenderableActivity;
13
+ /** The learner's answer as it stands: submitted, restored, or being written. */
14
+ response: LearnerResponse;
15
+ /** Whether the learner has committed that answer. */
16
+ submitted: boolean;
17
+ /**
18
+ * Pass on the `renderMode` your question was given. Left out, the paper
19
+ * around the question answers for it — a question inside `<ActivitySequence>`
20
+ * or `<InteractiveVideo>` knows its mode — and `practice` only where there is
21
+ * no paper at all. An `exam` around the question wins over anything passed
22
+ * here.
23
+ */
24
+ renderMode?: RenderMode;
25
+ /**
26
+ * The AI ports to use, overriding {@link LkAiProvider}'s for this question.
27
+ * A question inside `<ActivitySequence>` or `<InteractiveVideo>` is handed
28
+ * the ports in force as `ai` — pass that straight in.
29
+ */
30
+ ai?: LearnerAi;
31
+ /** The interface language: the default language for what a model writes. */
32
+ locale?: string;
33
+ /** Where `ai-hint-shown` and `ai-explanation-shown` go. */
34
+ onInteraction?: (event: InteractionEvent) => void;
35
+ /**
36
+ * The delivery policy your question was handed. The paper around the
37
+ * question holds as well — a set that switched AI hints off keeps them off
38
+ * here, whatever is passed — so leaving it out never turns anything on.
39
+ */
40
+ delivery?: DeliveryPolicy | null;
43
41
  }
44
- interface AiExplanationInput extends AiHelpSituation {
45
- /** The grade of record, which `review` explains. */
46
- outcome?: ItemOutcome;
42
+ export interface AiExplanationInput extends AiHelpSituation {
43
+ /** The grade of record, which `review` explains. */
44
+ outcome?: ItemOutcome;
47
45
  }
48
- interface AiExplanationHelp {
49
- /**
50
- * Whether to offer the learner an explanation at all: a port is present, the
51
- * answer is graded, the type is one the SDK explains, and the author left
52
- * explanations on. False in `exam`, always.
53
- */
54
- offered: boolean;
55
- status: 'idle' | 'loading' | 'shown' | 'unavailable';
56
- /** What to show, once it has arrived and been checked. Its `text` is text, never HTML. */
57
- explanation: AiTextResult | null;
58
- /**
59
- * Asks the port, when the learner presses something. Does nothing while a
60
- * call is on its way, and nothing at all where `offered` is false — so an
61
- * exam cannot reach a model through this hook, whatever ports are in scope.
62
- *
63
- * One identity for the life of the question, so it is safe in an effect's
64
- * dependencies.
65
- */
66
- ask: () => void;
46
+ export interface AiExplanationHelp {
47
+ /**
48
+ * Whether to offer the learner an explanation at all: a port is present, the
49
+ * answer is graded, the type is one the SDK explains, and the author left
50
+ * explanations on. False in `exam`, always.
51
+ */
52
+ offered: boolean;
53
+ status: 'idle' | 'loading' | 'shown' | 'unavailable';
54
+ /** What to show, once it has arrived and been checked. Its `text` is text, never HTML. */
55
+ explanation: AiTextResult | null;
56
+ /**
57
+ * Asks the port, when the learner presses something. Does nothing while a
58
+ * call is on its way, and nothing at all where `offered` is false — so an
59
+ * exam cannot reach a model through this hook, whatever ports are in scope.
60
+ *
61
+ * One identity for the life of the question, so it is safe in an effect's
62
+ * dependencies.
63
+ */
64
+ ask: () => void;
67
65
  }
68
- interface AiHintsInput extends AiHelpSituation {
69
- /** A disabled question gives no hints, as it takes no answer. */
70
- disabled?: boolean;
66
+ export interface AiHintsInput extends AiHelpSituation {
67
+ /** A disabled question gives no hints, as it takes no answer. */
68
+ disabled?: boolean;
71
69
  }
72
- interface AiHintsHelp {
73
- /**
74
- * Whether the learner may ask for hints here at all: a port is present, the
75
- * mode is `practice`, the answer is not in, the question is not disabled or
76
- * redacted, the type takes hints and the author left them on. It stays true
77
- * once `used` reaches `limit` — there are no more to give, but the question
78
- * is still one that gives them.
79
- */
80
- offered: boolean;
81
- status: 'idle' | 'loading' | 'unavailable';
82
- /** Every hint shown for this question, in the order they were given. */
83
- hints: readonly AiTextResult[];
84
- /** The host's `maxHints`, as a whole number from 1 to 10 (3 by default). */
85
- limit: number;
86
- /** How many hints have been shown. A refused hint is not counted. */
87
- used: number;
88
- /**
89
- * Asks for the next hint. Does nothing at the limit, while a call is on its
90
- * way, or where `offered` is false. One identity for the life of the
91
- * question.
92
- */
93
- ask: () => void;
70
+ export interface AiHintsHelp {
71
+ /**
72
+ * Whether the learner may ask for hints here at all: a port is present, the
73
+ * mode is `practice`, the answer is not in, the question is not disabled or
74
+ * redacted, the type takes hints and the author left them on. It stays true
75
+ * once `used` reaches `limit` — there are no more to give, but the question
76
+ * is still one that gives them.
77
+ */
78
+ offered: boolean;
79
+ status: 'idle' | 'loading' | 'unavailable';
80
+ /** Every hint shown for this question, in the order they were given. */
81
+ hints: readonly AiTextResult[];
82
+ /** The host's `maxHints`, as a whole number from 1 to 10 (3 by default). */
83
+ limit: number;
84
+ /** How many hints have been shown. A refused hint is not counted. */
85
+ used: number;
86
+ /**
87
+ * Asks for the next hint. Does nothing at the limit, while a call is on its
88
+ * way, or where `offered` is false. One identity for the life of the
89
+ * question.
90
+ */
91
+ ask: () => void;
94
92
  }
95
93
  /**
96
94
  * "Explain my answer", without the SDK's own button and panel: the rules, the
@@ -124,7 +122,7 @@ interface AiHintsHelp {
124
122
  * still on its way is abandoned — a late explanation never lands beside an
125
123
  * answer it was not written for — as it is when the caller unmounts.
126
124
  */
127
- declare function useAiExplanation(input: AiExplanationInput): AiExplanationHelp;
125
+ export declare function useAiExplanation(input: AiExplanationInput): AiExplanationHelp;
128
126
  /**
129
127
  * "Get a hint", without the SDK's own button and list: the rules, the call, the
130
128
  * checks and the record, for a question you draw yourself.
@@ -147,40 +145,40 @@ declare function useAiExplanation(input: AiExplanationInput): AiExplanationHelp;
147
145
  * Keep the hints on screen after submit — the learner can see what they were
148
146
  * given — while `offered` turns false. Another question starts with none.
149
147
  */
150
- declare function useAiHints(input: AiHintsInput): AiHintsHelp;
151
- interface AiWritingFeedbackInput extends AiHelpSituation {
152
- /** A disabled question takes no feedback, as it takes no answer. */
153
- disabled?: boolean;
148
+ export declare function useAiHints(input: AiHintsInput): AiHintsHelp;
149
+ export interface AiWritingFeedbackInput extends AiHelpSituation {
150
+ /** A disabled question takes no feedback, as it takes no answer. */
151
+ disabled?: boolean;
154
152
  }
155
- interface AiWritingFeedbackHelp {
156
- /**
157
- * Whether the learner may ask for feedback here at all: a port is present,
158
- * the mode is `practice`, the answer is not in, the question is a written
159
- * response that is not disabled or redacted, its author left explanations on,
160
- * and the paper shows feedback and solutions and allows AI explanations. It
161
- * stays true once `used` reaches `limit`.
162
- */
163
- offered: boolean;
164
- status: 'idle' | 'loading' | 'unavailable';
165
- /** Every piece of feedback shown for this question, oldest first. */
166
- feedback: readonly AiWritingFeedback[];
167
- /** The latest, or `null` before any. Its `text` is text, never HTML. */
168
- latest: AiWritingFeedback | null;
169
- /**
170
- * Whether `latest` is about the draft as it stands. Once the learner revises,
171
- * its corrections point at words that may no longer be there: say so.
172
- */
173
- current: boolean;
174
- /** The host's `maxWritingFeedback`, as a whole number from 1 to 10 (3 by default). */
175
- limit: number;
176
- /** How many times feedback has been shown. A refused reply is not counted. */
177
- used: number;
178
- /**
179
- * Asks for feedback on the draft as it stands. Does nothing at the limit,
180
- * while a call is on its way, on an empty draft, or where `offered` is false.
181
- * One identity for the life of the question.
182
- */
183
- ask: () => void;
153
+ export interface AiWritingFeedbackHelp {
154
+ /**
155
+ * Whether the learner may ask for feedback here at all: a port is present,
156
+ * the mode is `practice`, the answer is not in, the question is a written
157
+ * response that is not disabled or redacted, its author left explanations on,
158
+ * and the paper shows feedback and solutions and allows AI explanations. It
159
+ * stays true once `used` reaches `limit`.
160
+ */
161
+ offered: boolean;
162
+ status: 'idle' | 'loading' | 'unavailable';
163
+ /** Every piece of feedback shown for this question, oldest first. */
164
+ feedback: readonly AiWritingFeedback[];
165
+ /** The latest, or `null` before any. Its `text` is text, never HTML. */
166
+ latest: AiWritingFeedback | null;
167
+ /**
168
+ * Whether `latest` is about the draft as it stands. Once the learner revises,
169
+ * its corrections point at words that may no longer be there: say so.
170
+ */
171
+ current: boolean;
172
+ /** The host's `maxWritingFeedback`, as a whole number from 1 to 10 (3 by default). */
173
+ limit: number;
174
+ /** How many times feedback has been shown. A refused reply is not counted. */
175
+ used: number;
176
+ /**
177
+ * Asks for feedback on the draft as it stands. Does nothing at the limit,
178
+ * while a call is on its way, on an empty draft, or where `offered` is false.
179
+ * One identity for the life of the question.
180
+ */
181
+ ask: () => void;
184
182
  }
185
183
  /**
186
184
  * "Get feedback on my draft", without the SDK's own button and panel: the
@@ -202,63 +200,63 @@ interface AiWritingFeedbackHelp {
202
200
  * mistakes." And show `indicativeScore` as what it is — an indication, not a
203
201
  * grade.
204
202
  */
205
- declare function useAiWritingFeedback(input: AiWritingFeedbackInput): AiWritingFeedbackHelp;
206
- interface AiCoachingInput {
207
- /**
208
- * The read-aloud item, as `data` is given to `<ReadAloud>` — or as much of
209
- * one as coaching reads: its id, title, text and language, and the author's
210
- * `instructions` and `ai` settings where it has them.
211
- */
212
- data: Pick<ReadAloudData, 'id' | 'title' | 'referenceText' | 'locale'> & Partial<Pick<ReadAloudData, 'instructions' | 'ai'>>;
213
- /**
214
- * The speech engine's assessment of the take, as the learner is shown it.
215
- * When given, it is the marks — each word's, with its sounds and what each
216
- * was heard as — and the only ones: see `aiCoachingRequest` in lk-core.
217
- */
218
- assessment?: SpeechAssessment | null;
219
- /**
220
- * The grade of record. Its score is context for the model; without an
221
- * assessment, its word details are the marks, and they carry no sounds.
222
- */
223
- grade?: GradeRecord | null;
224
- /**
225
- * Pass on the `renderMode` your reading was given. Coaching is never offered
226
- * in `exam`, and an `exam` around the reading wins over anything passed here.
227
- */
228
- renderMode?: RenderMode;
229
- /** The AI ports to use, overriding {@link LkAiProvider}'s for this reading. */
230
- ai?: LearnerAi;
231
- /** The interface language: the default language for what a model writes. */
232
- locale?: string;
233
- /** Where `ai-coaching-shown` and `ai-help-refused` go. */
234
- onInteraction?: (event: InteractionEvent) => void;
235
- /**
236
- * The delivery policy your reading was handed. Coaching needs feedback shown
237
- * and AI explanations allowed; the paper around the reading holds as well.
238
- */
239
- delivery?: DeliveryPolicy | null;
203
+ export declare function useAiWritingFeedback(input: AiWritingFeedbackInput): AiWritingFeedbackHelp;
204
+ export interface AiCoachingInput {
205
+ /**
206
+ * The read-aloud item, as `data` is given to `<ReadAloud>` — or as much of
207
+ * one as coaching reads: its id, title, text and language, and the author's
208
+ * `instructions` and `ai` settings where it has them.
209
+ */
210
+ data: Pick<ReadAloudData, 'id' | 'title' | 'referenceText' | 'locale'> & Partial<Pick<ReadAloudData, 'instructions' | 'ai'>>;
211
+ /**
212
+ * The speech engine's assessment of the take, as the learner is shown it.
213
+ * When given, it is the marks — each word's, with its sounds and what each
214
+ * was heard as — and the only ones: see `aiCoachingRequest` in lk-core.
215
+ */
216
+ assessment?: SpeechAssessment | null;
217
+ /**
218
+ * The grade of record. Its score is context for the model; without an
219
+ * assessment, its word details are the marks, and they carry no sounds.
220
+ */
221
+ grade?: GradeRecord | null;
222
+ /**
223
+ * Pass on the `renderMode` your reading was given. Coaching is never offered
224
+ * in `exam`, and an `exam` around the reading wins over anything passed here.
225
+ */
226
+ renderMode?: RenderMode;
227
+ /** The AI ports to use, overriding {@link LkAiProvider}'s for this reading. */
228
+ ai?: LearnerAi;
229
+ /** The interface language: the default language for what a model writes. */
230
+ locale?: string;
231
+ /** Where `ai-coaching-shown` and `ai-help-refused` go. */
232
+ onInteraction?: (event: InteractionEvent) => void;
233
+ /**
234
+ * The delivery policy your reading was handed. Coaching needs feedback shown
235
+ * and AI explanations allowed; the paper around the reading holds as well.
236
+ */
237
+ delivery?: DeliveryPolicy | null;
240
238
  }
241
- interface AiCoachingHelp {
242
- /**
243
- * Whether to offer coaching at all: a `pronunciationCoaching` port is
244
- * present, there are marks to coach, the mode is not `exam`, the item's
245
- * author left explanations on, and the paper shows feedback and allows AI
246
- * explanations.
247
- */
248
- offered: boolean;
249
- status: 'idle' | 'loading' | 'shown' | 'unavailable';
250
- /**
251
- * What to show, once it has arrived and been checked: the coaching's text,
252
- * and the words it works on in reading order, each with its tip and, where
253
- * the engine reported one, the sound. All of it is text, never HTML.
254
- */
255
- coaching: AiCoaching | null;
256
- /**
257
- * Asks the port, when the learner presses something. Does nothing while a
258
- * call is on its way, once coaching is shown — one per reading — or where
259
- * `offered` is false. One identity for the life of the reading.
260
- */
261
- ask: () => void;
239
+ export interface AiCoachingHelp {
240
+ /**
241
+ * Whether to offer coaching at all: a `pronunciationCoaching` port is
242
+ * present, there are marks to coach, the mode is not `exam`, the item's
243
+ * author left explanations on, and the paper shows feedback and allows AI
244
+ * explanations.
245
+ */
246
+ offered: boolean;
247
+ status: 'idle' | 'loading' | 'shown' | 'unavailable';
248
+ /**
249
+ * What to show, once it has arrived and been checked: the coaching's text,
250
+ * and the words it works on in reading order, each with its tip and, where
251
+ * the engine reported one, the sound. All of it is text, never HTML.
252
+ */
253
+ coaching: AiCoaching | null;
254
+ /**
255
+ * Asks the port, when the learner presses something. Does nothing while a
256
+ * call is on its way, once coaching is shown — one per reading — or where
257
+ * `offered` is false. One identity for the life of the reading.
258
+ */
259
+ ask: () => void;
262
260
  }
263
261
  /**
264
262
  * "Coach me on this reading", without the SDK's own button and panel: the
@@ -281,6 +279,6 @@ interface AiCoachingHelp {
281
279
  * Another reading — other marks, another text — drops the coaching and
282
280
  * abandons a call still on its way, as the caller unmounting does.
283
281
  */
284
- declare function useAiCoaching(input: AiCoachingInput): AiCoachingHelp;
285
-
286
- export { type AiCoachingHelp, type AiCoachingInput, type AiExplanationHelp, type AiExplanationInput, type AiHelpSituation, type AiHintsHelp, type AiHintsInput, type AiWritingFeedbackHelp, type AiWritingFeedbackInput, useAiCoaching, useAiExplanation, useAiHints, useAiWritingFeedback };
282
+ export declare function useAiCoaching(input: AiCoachingInput): AiCoachingHelp;
283
+ //#endregion
284
+ //# sourceMappingURL=useAiHelp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useAiHelp.d.ts","names":[],"sources":["../../src/ai/useAiHelp.ts"],"mappings":";;;;;;;;;iBA6CiB;;EAEf,MAAM;;EAEN,UAAU;;EAEV;;;;;;;;EAQA,aAAa;;;;;;EAMb,KAAK;;EAEL;;EAEA,iBAAiB,OAAO;;;;;;EAMxB,WAAW;;iBAGI,2BAA2B;;EAE1C,UAAU;;iBAGK;;;;;;EAMf;EACA;;EAEA,aAAa;;;;;;;;;EASb;;iBAGe,qBAAqB;;EAEpC;;iBAGe;;;;;;;;EAQf;EACA;;EAEA,gBAAgB;;EAEhB;;EAEA;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwEc,iBAAiB,OAAO,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;wBA8H7C,WAAW,OAAO,eAAe;iBA2HhC,+BAA+B;;EAE9C;;iBAGe;;;;;;;;EAQf;EACA;;EAEA,mBAAmB;;EAEnB,QAAQ;;;;;EAKR;;EAEA;;EAEA;;;;;;EAMA;;;;;;;;;;;;;;;;;;;;;;wBAiCc,qBAAqB,OAAO,yBAAyB;iBA4IpD;;;;;;EAMf,MAAM,KAAK,8DACT,QAAQ,KAAK;;;;;;EAMf,aAAa;;;;;EAKb,QAAQ;;;;;EAKR,aAAa;;EAEb,KAAK;;EAEL;;EAEA,iBAAiB,OAAO;;;;;EAKxB,WAAW;;iBAGI;;;;;;;EAOf;EACA;;;;;;EAMA,UAAU;;;;;;EAMV;;;;;;;;;;;;;;;;;;;;;;;wBA4Bc,cAAc,OAAO,kBAAkB"}
@@ -1,5 +1,4 @@
1
1
  'use client';
2
- export { useAiCoaching, useAiExplanation, useAiHints, useAiWritingFeedback } from '../chunk-MXNC5UNO.js';
3
- import '../chunk-ZPI6Q42R.js';
4
- //# sourceMappingURL=useAiHelp.js.map
5
- //# sourceMappingURL=useAiHelp.js.map
2
+ "use client";
3
+ import { i as useAiWritingFeedback, n as useAiExplanation, r as useAiHints, t as useAiCoaching } from "../useAiHelp-B-ccDL5Q.js";
4
+ export { useAiCoaching, useAiExplanation, useAiHints, useAiWritingFeedback };
@@ -1,30 +1,4 @@
1
1
  'use client';
2
- 'use strict';
3
-
4
- var chunkV6BA44DS_cjs = require('../chunk-V6BA44DS.cjs');
5
- require('../chunk-MKXEM2C5.cjs');
6
- require('../chunk-YY4PFR3Z.cjs');
7
- require('../chunk-DS6HN3YR.cjs');
8
- require('../chunk-7ALBSPYR.cjs');
9
- require('../chunk-NAK55BYU.cjs');
10
- require('../chunk-KHKH5LCT.cjs');
11
- require('../chunk-TP5UMRAU.cjs');
12
- require('../chunk-LBEKRN6Y.cjs');
13
- require('../chunk-UDCQTOVU.cjs');
14
- require('../chunk-OD65OZIW.cjs');
15
- require('../chunk-2PNSVBLQ.cjs');
16
- require('../chunk-J3C72RPK.cjs');
17
- require('../chunk-LPUWXIPR.cjs');
18
- require('../chunk-NDBMKGQ5.cjs');
19
- require('../chunk-XOR4MPEN.cjs');
20
- require('../chunk-BIGGXHAW.cjs');
21
- require('../chunk-TUVENMXB.cjs');
22
-
23
-
24
-
25
- Object.defineProperty(exports, "ActivityPreview", {
26
- enumerable: true,
27
- get: function () { return chunkV6BA44DS_cjs.ActivityPreview; }
28
- });
29
- //# sourceMappingURL=ActivityPreview.cjs.map
30
- //# sourceMappingURL=ActivityPreview.cjs.map
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const require_ActivityPreview = require("../ActivityPreview-BKr34exz.cjs");
4
+ exports.ActivityPreview = require_ActivityPreview.ActivityPreview;
@@ -1,81 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { LearnerResponse, ItemOutcome, DraftNotComplete, ThemeTokens } from '@intellectif/lk-core';
3
- import { ReactNode } from 'react';
4
- import { e as RenderMode, H as HtmlSanitizer, a as LkStringsOverride } from '../types-CJgZWtl4.cjs';
5
- import { ActivityRenderer } from './ActivitySequence.cjs';
6
- import '../ai/LkAiProvider.cjs';
7
- import '../machine-CuwKqWXC.cjs';
8
- import '../WrittenResponse-BpL9p2Hn.cjs';
9
-
10
- interface ActivityPreviewProps {
11
- /**
12
- * The activity as an editor holds it right now, finished or not. It is checked
13
- * with `validateDraft` before anything renders — by content, on every render —
14
- * so a half-written question never reaches a component that assumes a valid
15
- * one.
16
- */
17
- draft: unknown;
18
- /** The mode to preview in. Defaults to `practice`. */
19
- renderMode?: RenderMode;
20
- /**
21
- * A learner response to show as if a learner had given it. In `practice` and
22
- * `exam` it seeds the answer, which stays editable; in `review` it is the
23
- * submitted answer, marked by `evaluate()` unless `outcome` is given.
24
- */
25
- response?: LearnerResponse;
26
- /**
27
- * The outcome `review` marks the response with, instead of the one
28
- * `evaluate()` computes — which is how to preview a returned grade on a written
29
- * response, since the SDK cannot score one. Ignored in other modes.
30
- */
31
- outcome?: ItemOutcome;
32
- /**
33
- * Rendered in place of the activity while the draft is not complete, with the
34
- * issues `validateDraft` found — so an editor can list them in its own words.
35
- * The issue messages are English, and a preview that rendered them would put
36
- * untranslatable text on screen. Without it, the preview shows the
37
- * `previewIncomplete` or `previewInvalid` string.
38
- */
39
- fallback?: (result: DraftNotComplete) => ReactNode;
40
- /**
41
- * Renderers for activity types beyond the built-ins, keyed by `type`, as on
42
- * `<ActivitySequence>`. An entry receives the shared prop contract and
43
- * nothing else, so — like the shuffle seed below — the in-memory recording
44
- * binding a previewed read-aloud is given does not reach one. Nor does the
45
- * `question` a sequence hands a renderer: a preview is one question with no
46
- * set around it, so there is no slot to report to and nothing to page away
47
- * from. A renderer that uses it must treat it as optional, which its type
48
- * already says.
49
- */
50
- renderers?: Readonly<Record<string, ActivityRenderer>>;
51
- /**
52
- * Seeds `<MultipleChoice>`'s option shuffle. Defaults to a fixed seed, so the
53
- * order holds while options are edited; adding or removing one deals them
54
- * again, because the shuffle orders by position. A `renderers` entry is given
55
- * no seed, as on `<ActivitySequence>`.
56
- */
57
- shuffleSeed?: string;
58
- /** Renders author-supplied rich text. See `HtmlSanitizer`. */
59
- sanitizeHtml?: HtmlSanitizer;
60
- /** Overrides the SDK's chrome text, for the preview's notice and the activity alike. */
61
- strings?: LkStringsOverride;
62
- /** Per-instance token overrides, passed to the activity. */
63
- theme?: Partial<ThemeTokens>;
64
- /** BCP 47 tag of the interface language, passed to the activity. */
65
- locale?: string;
66
- }
67
- /**
68
- * Renders an activity from an editor's draft, in any render mode, with a
69
- * simulated learner response — and renders a notice instead while the draft is
70
- * not an activity yet.
71
- *
72
- * Nothing it renders is recorded: no callback is wired, so a practice attempt in
73
- * a preview scores locally and goes nowhere, and a recording's play limit is
74
- * counted in memory only.
75
- *
76
- * A draft with no string `type`, a type nobody registered, and a `response` of a
77
- * different type from the draft are wiring errors, and throw.
78
- */
79
- declare function ActivityPreview({ draft, renderMode, response, outcome, fallback, renderers, shuffleSeed, sanitizeHtml, strings, theme, locale, }: ActivityPreviewProps): react_jsx_runtime.JSX.Element;
80
-
81
- export { ActivityPreview, type ActivityPreviewProps };
1
+ import { n as ActivityPreviewProps, t as ActivityPreview } from "../index-CunUyeuN.cjs";
2
+ export { ActivityPreview, type ActivityPreviewProps };
@@ -1,81 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { LearnerResponse, ItemOutcome, DraftNotComplete, ThemeTokens } from '@intellectif/lk-core';
3
- import { ReactNode } from 'react';
4
- import { e as RenderMode, H as HtmlSanitizer, a as LkStringsOverride } from '../types-C4IsUQsK.js';
5
- import { ActivityRenderer } from './ActivitySequence.js';
6
- import '../ai/LkAiProvider.js';
7
- import '../machine-CuwKqWXC.js';
8
- import '../WrittenResponse-B7A5gHMj.js';
9
-
10
- interface ActivityPreviewProps {
11
- /**
12
- * The activity as an editor holds it right now, finished or not. It is checked
13
- * with `validateDraft` before anything renders — by content, on every render —
14
- * so a half-written question never reaches a component that assumes a valid
15
- * one.
16
- */
17
- draft: unknown;
18
- /** The mode to preview in. Defaults to `practice`. */
19
- renderMode?: RenderMode;
20
- /**
21
- * A learner response to show as if a learner had given it. In `practice` and
22
- * `exam` it seeds the answer, which stays editable; in `review` it is the
23
- * submitted answer, marked by `evaluate()` unless `outcome` is given.
24
- */
25
- response?: LearnerResponse;
26
- /**
27
- * The outcome `review` marks the response with, instead of the one
28
- * `evaluate()` computes — which is how to preview a returned grade on a written
29
- * response, since the SDK cannot score one. Ignored in other modes.
30
- */
31
- outcome?: ItemOutcome;
32
- /**
33
- * Rendered in place of the activity while the draft is not complete, with the
34
- * issues `validateDraft` found — so an editor can list them in its own words.
35
- * The issue messages are English, and a preview that rendered them would put
36
- * untranslatable text on screen. Without it, the preview shows the
37
- * `previewIncomplete` or `previewInvalid` string.
38
- */
39
- fallback?: (result: DraftNotComplete) => ReactNode;
40
- /**
41
- * Renderers for activity types beyond the built-ins, keyed by `type`, as on
42
- * `<ActivitySequence>`. An entry receives the shared prop contract and
43
- * nothing else, so — like the shuffle seed below — the in-memory recording
44
- * binding a previewed read-aloud is given does not reach one. Nor does the
45
- * `question` a sequence hands a renderer: a preview is one question with no
46
- * set around it, so there is no slot to report to and nothing to page away
47
- * from. A renderer that uses it must treat it as optional, which its type
48
- * already says.
49
- */
50
- renderers?: Readonly<Record<string, ActivityRenderer>>;
51
- /**
52
- * Seeds `<MultipleChoice>`'s option shuffle. Defaults to a fixed seed, so the
53
- * order holds while options are edited; adding or removing one deals them
54
- * again, because the shuffle orders by position. A `renderers` entry is given
55
- * no seed, as on `<ActivitySequence>`.
56
- */
57
- shuffleSeed?: string;
58
- /** Renders author-supplied rich text. See `HtmlSanitizer`. */
59
- sanitizeHtml?: HtmlSanitizer;
60
- /** Overrides the SDK's chrome text, for the preview's notice and the activity alike. */
61
- strings?: LkStringsOverride;
62
- /** Per-instance token overrides, passed to the activity. */
63
- theme?: Partial<ThemeTokens>;
64
- /** BCP 47 tag of the interface language, passed to the activity. */
65
- locale?: string;
66
- }
67
- /**
68
- * Renders an activity from an editor's draft, in any render mode, with a
69
- * simulated learner response — and renders a notice instead while the draft is
70
- * not an activity yet.
71
- *
72
- * Nothing it renders is recorded: no callback is wired, so a practice attempt in
73
- * a preview scores locally and goes nowhere, and a recording's play limit is
74
- * counted in memory only.
75
- *
76
- * A draft with no string `type`, a type nobody registered, and a `response` of a
77
- * different type from the draft are wiring errors, and throw.
78
- */
79
- declare function ActivityPreview({ draft, renderMode, response, outcome, fallback, renderers, shuffleSeed, sanitizeHtml, strings, theme, locale, }: ActivityPreviewProps): react_jsx_runtime.JSX.Element;
80
-
81
- export { ActivityPreview, type ActivityPreviewProps };
1
+ import { n as ActivityPreviewProps, t as ActivityPreview } from "../index-eQwBgpSw.js";
2
+ export { ActivityPreview, type ActivityPreviewProps };
@@ -1,21 +1,3 @@
1
1
  'use client';
2
- export { ActivityPreview } from '../chunk-7NFY3M3W.js';
3
- import '../chunk-FKGMSOJF.js';
4
- import '../chunk-C7QZE5BI.js';
5
- import '../chunk-TCDJY3H6.js';
6
- import '../chunk-ABJJ3LII.js';
7
- import '../chunk-RBS5A2DF.js';
8
- import '../chunk-FDQR4GAZ.js';
9
- import '../chunk-DC4CQCK5.js';
10
- import '../chunk-XO5R73Y4.js';
11
- import '../chunk-MCO52PV5.js';
12
- import '../chunk-YORQQXGO.js';
13
- import '../chunk-ORT3KLGI.js';
14
- import '../chunk-7SB2MJA4.js';
15
- import '../chunk-MXNC5UNO.js';
16
- import '../chunk-TS7J6DTY.js';
17
- import '../chunk-6N43WDVG.js';
18
- import '../chunk-HNLRVRQR.js';
19
- import '../chunk-ZPI6Q42R.js';
20
- //# sourceMappingURL=ActivityPreview.js.map
21
- //# sourceMappingURL=ActivityPreview.js.map
2
+ import { t as ActivityPreview } from "../ActivityPreview-1hhTkYuj.js";
3
+ export { ActivityPreview };