@pie-element/multiple-choice 13.2.0-next.22 → 13.2.1-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/author/defaults.d.ts +205 -0
  2. package/dist/author/defaults.js +151 -0
  3. package/dist/author/index.d.ts +26 -0
  4. package/dist/author/index.js +119 -0
  5. package/dist/author/main.d.ts +34 -0
  6. package/dist/author/main.js +287 -0
  7. package/dist/author/utils.d.ts +9 -0
  8. package/dist/author/utils.js +7 -0
  9. package/dist/controller/defaults.d.ts +35 -0
  10. package/dist/controller/defaults.js +29 -0
  11. package/dist/controller/index.d.ts +65 -0
  12. package/dist/controller/index.js +124 -0
  13. package/dist/controller/utils.d.ts +10 -0
  14. package/dist/controller/utils.js +8 -0
  15. package/dist/delivery/choice-input.d.ts +44 -0
  16. package/dist/delivery/choice-input.js +272 -0
  17. package/dist/delivery/choice.d.ts +20 -0
  18. package/dist/delivery/choice.js +105 -0
  19. package/dist/delivery/feedback-tick.d.ts +20 -0
  20. package/dist/delivery/feedback-tick.js +104 -0
  21. package/dist/delivery/index.d.ts +37 -0
  22. package/dist/delivery/index.js +214 -0
  23. package/dist/delivery/main.d.ts +31 -0
  24. package/dist/delivery/main.js +51 -0
  25. package/dist/delivery/multiple-choice.d.ts +61 -0
  26. package/dist/delivery/multiple-choice.js +244 -0
  27. package/dist/delivery/session-updater.d.ts +10 -0
  28. package/dist/delivery/session-updater.js +9 -0
  29. package/dist/index.d.ts +1 -0
  30. package/dist/index.iife.d.ts +8 -0
  31. package/dist/index.iife.js +148 -0
  32. package/dist/index.js +2 -0
  33. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +6 -0
  34. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +16 -0
  35. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +16 -0
  36. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +6 -0
  37. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +16 -0
  38. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +6 -0
  39. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +6 -0
  40. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +11 -0
  41. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +14 -0
  42. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +5 -0
  43. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +5 -0
  44. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +6 -0
  45. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +12 -0
  46. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +7 -0
  47. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +10 -0
  48. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
  49. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +7 -0
  50. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +7 -0
  51. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js +8 -0
  52. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +10 -0
  53. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +8 -0
  54. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +8 -0
  55. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +8 -0
  56. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +12 -0
  57. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +57 -0
  58. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +14 -0
  59. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseFor.js +5 -0
  60. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  61. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +10 -0
  62. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +9 -0
  63. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +8 -0
  64. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
  65. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +9 -0
  66. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +11 -0
  67. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +9 -0
  68. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
  69. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +12 -0
  70. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +13 -0
  71. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js +19 -0
  72. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  73. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +9 -0
  74. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +14 -0
  75. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +7 -0
  76. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js +8 -0
  77. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +8 -0
  78. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +6 -0
  79. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  80. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +10 -0
  81. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +8 -0
  82. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +8 -0
  83. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +8 -0
  84. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  85. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +8 -0
  86. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +14 -0
  87. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +8 -0
  88. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  89. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +5 -0
  90. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js +15 -0
  91. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_createBaseFor.js +12 -0
  92. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +10 -0
  93. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +35 -0
  94. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +35 -0
  95. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +32 -0
  96. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +4 -0
  97. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +9 -0
  98. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  99. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +8 -0
  100. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +9 -0
  101. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +5 -0
  102. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +14 -0
  103. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +10 -0
  104. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +11 -0
  105. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +23 -0
  106. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +6 -0
  107. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +7 -0
  108. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +7 -0
  109. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +13 -0
  110. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +9 -0
  111. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +9 -0
  112. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +8 -0
  113. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +33 -0
  114. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +9 -0
  115. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +8 -0
  116. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +12 -0
  117. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +7 -0
  118. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +11 -0
  119. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +8 -0
  120. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +6 -0
  121. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +9 -0
  122. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +8 -0
  123. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +7 -0
  124. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +8 -0
  125. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +13 -0
  126. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  127. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +7 -0
  128. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +7 -0
  129. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +8 -0
  130. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +9 -0
  131. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +5 -0
  132. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +5 -0
  133. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +8 -0
  134. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +9 -0
  135. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +7 -0
  136. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +8 -0
  137. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +13 -0
  138. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +5 -0
  139. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js +6 -0
  140. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +7 -0
  141. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +6 -0
  142. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +9 -0
  143. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +6 -0
  144. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +14 -0
  145. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +7 -0
  146. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +7 -0
  147. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +6 -0
  148. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +6 -0
  149. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +16 -0
  150. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +15 -0
  151. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
  152. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +8 -0
  153. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +8 -0
  154. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/debounce.js +50 -0
  155. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +16 -0
  156. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +6 -0
  157. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +6 -0
  158. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +10 -0
  159. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +4 -0
  160. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +8 -0
  161. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  162. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +6 -0
  163. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +21 -0
  164. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +7 -0
  165. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +11 -0
  166. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +7 -0
  167. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +7 -0
  168. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +7 -0
  169. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +6 -0
  170. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js +14 -0
  171. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +7 -0
  172. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +9 -0
  173. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +7 -0
  174. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +9 -0
  175. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +9 -0
  176. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/merge.js +8 -0
  177. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/now.js +7 -0
  178. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +6 -0
  179. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +6 -0
  180. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js +19 -0
  181. package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js +8 -0
  182. package/dist/print/index.d.ts +15 -0
  183. package/dist/print/index.js +44 -0
  184. package/package.json +57 -27
  185. package/CHANGELOG.json +0 -1972
  186. package/CHANGELOG.md +0 -2704
  187. package/LICENSE.md +0 -5
  188. package/PRINT.md +0 -35
  189. package/README.md +0 -56
  190. package/choice.png +0 -0
  191. package/configure/CHANGELOG.json +0 -1387
  192. package/configure/CHANGELOG.md +0 -2054
  193. package/configure/lib/defaults.js +0 -203
  194. package/configure/lib/defaults.js.map +0 -1
  195. package/configure/lib/index.js +0 -202
  196. package/configure/lib/index.js.map +0 -1
  197. package/configure/lib/main.js +0 -484
  198. package/configure/lib/main.js.map +0 -1
  199. package/configure/lib/utils.js +0 -18
  200. package/configure/lib/utils.js.map +0 -1
  201. package/configure/package.json +0 -22
  202. package/controller/CHANGELOG.json +0 -527
  203. package/controller/CHANGELOG.md +0 -1394
  204. package/controller/lib/defaults.js +0 -33
  205. package/controller/lib/defaults.js.map +0 -1
  206. package/controller/lib/index.js +0 -288
  207. package/controller/lib/index.js.map +0 -1
  208. package/controller/lib/utils.js +0 -15
  209. package/controller/lib/utils.js.map +0 -1
  210. package/controller/package.json +0 -15
  211. package/docs/config-schema.json +0 -2993
  212. package/docs/config-schema.json.md +0 -2217
  213. package/docs/demo/config.js +0 -8
  214. package/docs/demo/generate.js +0 -61
  215. package/docs/demo/index.html +0 -1
  216. package/docs/demo/session.js +0 -7
  217. package/docs/pie-schema.json +0 -1332
  218. package/docs/pie-schema.json.md +0 -1015
  219. package/lib/choice-input.js +0 -374
  220. package/lib/choice-input.js.map +0 -1
  221. package/lib/choice.js +0 -192
  222. package/lib/choice.js.map +0 -1
  223. package/lib/feedback-tick.js +0 -134
  224. package/lib/feedback-tick.js.map +0 -1
  225. package/lib/index.js +0 -402
  226. package/lib/index.js.map +0 -1
  227. package/lib/main.js +0 -63
  228. package/lib/main.js.map +0 -1
  229. package/lib/multiple-choice.js +0 -397
  230. package/lib/multiple-choice.js.map +0 -1
  231. package/lib/print.js +0 -94
  232. package/lib/print.js.map +0 -1
  233. package/lib/session-updater.js +0 -37
  234. package/lib/session-updater.js.map +0 -1
  235. package/module/configure.js +0 -1
  236. package/module/controller.js +0 -3045
  237. package/module/demo.js +0 -86
  238. package/module/element.js +0 -1
  239. package/module/index.html +0 -21
  240. package/module/manifest.json +0 -14
  241. package/module/print-demo.js +0 -124
  242. package/module/print.html +0 -18
  243. package/module/print.js +0 -1
@@ -0,0 +1,272 @@
1
+ import e from "./feedback-tick.js";
2
+ import t from "react";
3
+ import n from "prop-types";
4
+ import * as r from "@pie-lib/render-ui";
5
+ import { Feedback as i, PreviewPrompt as a, color as o } from "@pie-lib/render-ui";
6
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import u from "classnames";
8
+ import { styled as d } from "@mui/material/styles";
9
+ import f from "@mui/material/Box";
10
+ import p from "@mui/material/FormControlLabel";
11
+ import m from "@mui/material/Checkbox";
12
+ import h from "@mui/material/Radio";
13
+ //#region src/delivery/choice-input.tsx
14
+ function g(e) {
15
+ return typeof e == "function" || typeof e == "object" && !!e && typeof e.$$typeof == "symbol";
16
+ }
17
+ function _(e, t) {
18
+ return !e || g(e) ? e : g(e.default) ? e.default : t && g(e[t]) ? e[t] : t && g(e[t]?.default) ? e[t].default : e;
19
+ }
20
+ var v = _(a, "PreviewPrompt") || _(S.PreviewPrompt, "PreviewPrompt"), y = _(i, "Feedback") || _(S.Feedback, "Feedback"), b = r, x = b.default, S = x && typeof x == "object" ? x : b, C = "multiple-choice-component", w = d(f)({
21
+ display: "flex",
22
+ alignItems: "center",
23
+ backgroundColor: o.background()
24
+ }), T = d(f)({
25
+ display: "flex",
26
+ alignItems: "center",
27
+ backgroundColor: o.background(),
28
+ flex: 1,
29
+ "& .MuiFormControlLabel-root": { marginLeft: "-14px" },
30
+ "& label": {
31
+ color: o.text(),
32
+ "& > span": { fontSize: "inherit" },
33
+ "& > .MuiButtonBase-root": { padding: "12px" }
34
+ }
35
+ }), E = d("span")(({ theme: e }) => ({
36
+ display: "flex",
37
+ alignItems: "center",
38
+ "& > span": { marginLeft: `-${e.spacing(1)}` }
39
+ })), D = d("span")({
40
+ position: "absolute",
41
+ left: "-10000px",
42
+ top: "auto",
43
+ width: "1px",
44
+ height: "1px",
45
+ overflow: "hidden"
46
+ }), O = d(p)({
47
+ "& .MuiFormControlLabel-label": {
48
+ color: `${o.text()} !important`,
49
+ backgroundColor: o.background(),
50
+ letterSpacing: "normal"
51
+ },
52
+ "&.Mui-disabled *": { cursor: "not-allowed !important" }
53
+ }), k = (e, t) => ({ [`&.${C}`]: { color: `var(--choice-input-${e}, ${t}) !important` } }), A = (e) => {
54
+ let t = (t) => e ? `${e}-${t}` : t;
55
+ return {
56
+ [t("root")]: {
57
+ ...k("color", o.text()),
58
+ ...e ? {} : { "&:hover": { color: `${o.primaryLight()} !important` } },
59
+ ...e === "correct" ? k("correct-color", o.text()) : {},
60
+ ...e === "incorrect" ? k("incorrect-color", o.incorrect()) : {}
61
+ },
62
+ [t("checked")]: {
63
+ ...e === "correct" ? k("correct-selected-color", o.correct()) : {},
64
+ ...e === "incorrect" ? k("incorrect-checked", o.incorrect()) : {},
65
+ ...e ? {} : k("selected-color", o.primary())
66
+ },
67
+ [t("disabled")]: {
68
+ ...k("disabled-color", o.text()),
69
+ ...e === "correct" ? k("correct-disabled-color", o.disabled()) : {},
70
+ ...e === "incorrect" ? k("incorrect-disabled-color", o.disabled()) : {},
71
+ opacity: .6,
72
+ cursor: "not-allowed !important",
73
+ pointerEvents: "initial !important"
74
+ },
75
+ focusVisibleUnchecked: {
76
+ outline: `2px solid ${o.keyBoardFocusIndicator()}`,
77
+ backgroundColor: "transparent"
78
+ },
79
+ focusVisibleChecked: {
80
+ outline: `2px solid ${o.keyBoardFocusIndicator()}`,
81
+ backgroundColor: "transparent"
82
+ }
83
+ };
84
+ }, j = d(m, { shouldForwardProp: (e) => e !== "correctness" })(({ correctness: e }) => {
85
+ let t = A(e), n = (t) => e ? `${e}-${t}` : t;
86
+ return {
87
+ [`&.${C}`]: {
88
+ ...t[n("root")],
89
+ "&.Mui-checked": t[n("checked")],
90
+ "&.Mui-disabled": e ? {} : t[n("disabled")]
91
+ },
92
+ "&.Mui-focusVisible": {
93
+ "&:not(.Mui-checked)": t.focusVisibleUnchecked,
94
+ "&.Mui-checked": t.focusVisibleChecked
95
+ }
96
+ };
97
+ }), M = (e) => {
98
+ let { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, onKeyDown: s, inputRef: l } = e;
99
+ return /* @__PURE__ */ c(j, {
100
+ id: o,
101
+ slotProps: { input: { ref: l } },
102
+ onKeyDown: s,
103
+ disableRipple: !0,
104
+ checked: n,
105
+ onChange: r,
106
+ disabled: i,
107
+ value: a,
108
+ correctness: t,
109
+ className: C
110
+ });
111
+ }, N = d(h, { shouldForwardProp: (e) => e !== "correctness" })(({ correctness: e }) => {
112
+ let t = A(e), n = (t) => e ? `${e}-${t}` : t;
113
+ return {
114
+ [`&.${C}`]: {
115
+ ...t[n("root")],
116
+ "&.Mui-checked": t[n("checked")],
117
+ "&.Mui-disabled": e ? {} : t[n("disabled")]
118
+ },
119
+ "&.Mui-focusVisible": {
120
+ "& input": { outline: 0 },
121
+ "&:not(.Mui-checked)": t.focusVisibleUnchecked,
122
+ "&.Mui-checked": t.focusVisibleChecked
123
+ }
124
+ };
125
+ }), P = (e) => {
126
+ let { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, tagName: s, inputRef: l } = e;
127
+ return /* @__PURE__ */ c(N, {
128
+ id: o,
129
+ slotProps: { input: { ref: l } },
130
+ disableRipple: !0,
131
+ checked: n,
132
+ onChange: r,
133
+ disabled: i,
134
+ value: a,
135
+ correctness: t,
136
+ className: C,
137
+ name: s
138
+ });
139
+ }, F = class extends t.Component {
140
+ static propTypes = {
141
+ choiceMode: n.oneOf(["radio", "checkbox"]),
142
+ displayKey: n.string,
143
+ checked: n.bool.isRequired,
144
+ correctness: n.string,
145
+ disabled: n.bool.isRequired,
146
+ feedback: n.string,
147
+ label: n.string.isRequired,
148
+ rationale: n.string,
149
+ onChange: n.func.isRequired,
150
+ value: n.string.isRequired,
151
+ className: n.string,
152
+ tagName: n.string,
153
+ hideTick: n.bool,
154
+ isEvaluateMode: n.bool,
155
+ choicesLayout: n.oneOf([
156
+ "vertical",
157
+ "grid",
158
+ "horizontal"
159
+ ]),
160
+ isSelectionButtonBelow: n.bool
161
+ };
162
+ static defaultProps = {
163
+ rationale: null,
164
+ checked: !1,
165
+ isEvaluateMode: !1
166
+ };
167
+ constructor(e) {
168
+ super(e), this.onToggleChoice = this.onToggleChoice.bind(this), this.choiceId = this.generateChoiceId(), this.descId = `${this.choiceId}-desc`;
169
+ }
170
+ onToggleChoice(e) {
171
+ this.props.onChange(e);
172
+ }
173
+ generateChoiceId() {
174
+ return "choice-" + (Math.random() * 1e4).toFixed();
175
+ }
176
+ handleKeyDown = (e) => {
177
+ let { choiceMode: t } = this.props;
178
+ if (t !== "checkbox") return;
179
+ let n = e.key === "ArrowDown", r = e.key === "ArrowUp";
180
+ if (!n && !r) return;
181
+ e.preventDefault();
182
+ let i = document.getElementById(this.choiceId);
183
+ if (!i) return;
184
+ let a = i.closest("fieldset");
185
+ if (!a) return;
186
+ let o = Array.from(a.querySelectorAll("input[type=\"checkbox\"]")), s = o.findIndex((e) => e === i);
187
+ if (s === -1) return;
188
+ let c = o[n ? s + 1 : s - 1];
189
+ c && c.focus();
190
+ };
191
+ render() {
192
+ let { choiceMode: t, disabled: n, displayKey: r, feedback: i, label: a, correctness: o, className: d, rationale: f, hideTick: p, isEvaluateMode: m, choicesLayout: h, value: g, checked: _, tagName: b, isSelectionButtonBelow: x } = this.props, S = t === "checkbox" ? M : P, k = t === "checkbox" ? "checkbox" : "radio-button", A = {
193
+ ...h === "horizontal" && { [`& .${C}`]: {
194
+ padding: "8px",
195
+ margin: "4px 0 4px 4px"
196
+ } },
197
+ ...x && h !== "grid" && { "& > label": { alignItems: "flex-start" } },
198
+ ...x && h === "grid" && {
199
+ justifyContent: "center",
200
+ "& > label": { alignItems: "center" }
201
+ }
202
+ }, j = typeof a == "string" && (a.includes("<math") || a.includes("\\(") || a.includes("\\[") || a.includes("<img") || a.includes("data-latex") || a.includes("data-raw") || a.includes("<mjx-container")), N = r ? /* @__PURE__ */ c(D, {
203
+ id: this.descId,
204
+ children: j ? `Pick the answer below, ${r}` : r
205
+ }) : null, F = /* @__PURE__ */ c(s, { children: r && !x ? /* @__PURE__ */ l(w, {
206
+ component: "span",
207
+ children: [/* @__PURE__ */ l("span", {
208
+ "aria-hidden": "true",
209
+ children: [
210
+ r,
211
+ ".",
212
+ "\xA0"
213
+ ]
214
+ }), /* @__PURE__ */ c(v, {
215
+ className: "prompt-label",
216
+ prompt: a,
217
+ tagName: "span"
218
+ })]
219
+ }) : /* @__PURE__ */ c(v, {
220
+ className: "prompt-label",
221
+ prompt: a,
222
+ tagName: "span"
223
+ }) }), I = {
224
+ disabled: n,
225
+ checked: _,
226
+ correctness: o,
227
+ tagName: b,
228
+ value: g,
229
+ id: this.choiceId,
230
+ onChange: this.onToggleChoice,
231
+ onKeyDown: this.handleKeyDown,
232
+ ...N ? { "aria-describedby": this.descId } : {}
233
+ }, L = x ? /* @__PURE__ */ l(E, { children: [
234
+ N,
235
+ /* @__PURE__ */ c(S, {
236
+ ...I,
237
+ style: { padding: 0 }
238
+ }),
239
+ /* @__PURE__ */ c("span", {
240
+ "aria-hidden": "true",
241
+ children: r ? `${r}.` : ""
242
+ })
243
+ ] }) : /* @__PURE__ */ l(s, { children: [N, /* @__PURE__ */ c(S, { ...I })] });
244
+ return /* @__PURE__ */ l("div", {
245
+ className: u(d, "corespring-" + k, "choice-input"),
246
+ children: [
247
+ /* @__PURE__ */ l(w, { children: [!p && m && /* @__PURE__ */ c(e, { correctness: o }), /* @__PURE__ */ c(T, {
248
+ className: "checkbox-holder",
249
+ sx: A,
250
+ children: /* @__PURE__ */ c(O, {
251
+ label: F,
252
+ value: g,
253
+ htmlFor: this.choiceId,
254
+ labelPlacement: x ? "top" : void 0,
255
+ control: L
256
+ })
257
+ })] }),
258
+ f && /* @__PURE__ */ c(v, {
259
+ className: "rationale",
260
+ defaultClassName: "rationale",
261
+ prompt: f
262
+ }),
263
+ /* @__PURE__ */ c(y, {
264
+ feedback: i,
265
+ correctness: o
266
+ })
267
+ ]
268
+ });
269
+ }
270
+ };
271
+ //#endregion
272
+ export { F as default };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/multiple-choice/src/choice.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ export declare class Choice extends React.Component {
11
+ static propTypes: {};
12
+ state: {
13
+ isHovered: boolean;
14
+ };
15
+ handleMouseEnter: any;
16
+ handleMouseLeave: any;
17
+ onChange: any;
18
+ render(): React.JSX.Element;
19
+ }
20
+ export default Choice;
@@ -0,0 +1,105 @@
1
+ import e from "./choice-input.js";
2
+ import t from "react";
3
+ import n from "prop-types";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { styled as i } from "@mui/material/styles";
6
+ import a from "@mui/material/Box";
7
+ //#region src/delivery/choice.tsx
8
+ var o = i(a, { shouldForwardProp: (e) => e !== "noBorder" && e !== "horizontalLayout" })(({ theme: e, noBorder: t, horizontalLayout: n }) => ({
9
+ paddingTop: e.spacing(2.5),
10
+ paddingBottom: `calc(${e.spacing(1)} + 2px)`,
11
+ paddingLeft: `calc(${e.spacing(1)} + 2px)`,
12
+ paddingRight: `calc(${e.spacing(1)} + 2px)`,
13
+ borderBottom: t ? "none" : `1px solid ${e.palette.grey[300]}`,
14
+ ...n && {
15
+ paddingRight: e.spacing(2.5),
16
+ "& label": { marginRight: e.spacing(1) }
17
+ }
18
+ })), s = class extends t.Component {
19
+ static propTypes = {};
20
+ state = { isHovered: !1 };
21
+ handleMouseEnter = () => {
22
+ let { disabled: e, checked: t } = this.props;
23
+ !e && !t && this.setState({ isHovered: !0 });
24
+ };
25
+ handleMouseLeave = () => {
26
+ this.setState({ isHovered: !1 });
27
+ };
28
+ onChange = (e) => {
29
+ let { disabled: t, onChoiceChanged: n } = this.props;
30
+ t || n(e);
31
+ };
32
+ render() {
33
+ let { choice: t, index: n, choicesLength: i, showCorrect: a, isEvaluateMode: s, choiceMode: c, disabled: l, checked: u, correctness: d, displayKey: f, choicesLayout: p, gridColumns: m, isSelectionButtonBelow: h, selectedAnswerBackgroundColor: g, selectedAnswerStrokeColor: _, selectedAnswerStrokeWidth: v, hoverAnswerBackgroundColor: y, hoverAnswerStrokeColor: b, hoverAnswerStrokeWidth: x, tagName: S } = this.props, { isHovered: C } = this.state, w = "choice" + (n === i - 1 ? " last" : ""), T = !s || a ? "" : t.feedback, E = {
34
+ ...t,
35
+ checked: u,
36
+ choiceMode: c,
37
+ disabled: l,
38
+ feedback: T,
39
+ correctness: d,
40
+ displayKey: f,
41
+ index: n,
42
+ choicesLayout: p,
43
+ gridColumns: m,
44
+ onChange: this.onChange,
45
+ isEvaluateMode: s,
46
+ isSelectionButtonBelow: h,
47
+ selectedAnswerStrokeColor: _,
48
+ selectedAnswerStrokeWidth: v,
49
+ tagName: S
50
+ }, D = (e) => {
51
+ if (!e) return "2px";
52
+ let t = String(e).trim();
53
+ return /^\d+(\.\d+)?$/.test(t) ? `${t}px` : t;
54
+ }, O = _ && _ !== "initial", k = b && b !== "initial", A = "transparent", j = "2px", M = "initial";
55
+ (O || k) && (u && O ? (A = _, j = v) : C && !l && k && (A = b, j = x)), u && g && g !== "initial" ? M = g : C && !l && y && y !== "initial" && (M = y);
56
+ let N = O || k, P = N ? {
57
+ border: `${D(j)} solid ${A}`,
58
+ borderRadius: "8px"
59
+ } : {}, F = n === i - 1 || p !== "vertical" || N, I = p === "horizontal";
60
+ return /* @__PURE__ */ r("div", {
61
+ className: w,
62
+ style: {
63
+ backgroundColor: M === "initial" ? "initial" : M,
64
+ ...P
65
+ },
66
+ onMouseEnter: this.handleMouseEnter,
67
+ onMouseLeave: this.handleMouseLeave,
68
+ children: /* @__PURE__ */ r(o, {
69
+ component: "div",
70
+ noBorder: F,
71
+ horizontalLayout: I,
72
+ children: /* @__PURE__ */ r(e, { ...E })
73
+ })
74
+ }, n);
75
+ }
76
+ };
77
+ s.propTypes = {
78
+ choiceMode: n.oneOf(["radio", "checkbox"]),
79
+ choice: n.object,
80
+ disabled: n.bool.isRequired,
81
+ onChoiceChanged: n.func,
82
+ index: n.number,
83
+ choicesLength: n.number,
84
+ showCorrect: n.bool,
85
+ isEvaluateMode: n.bool,
86
+ checked: n.bool,
87
+ correctness: n.string,
88
+ displayKey: n.string,
89
+ choicesLayout: n.oneOf([
90
+ "vertical",
91
+ "grid",
92
+ "horizontal"
93
+ ]),
94
+ gridColumns: n.string,
95
+ selectedAnswerBackgroundColor: n.string,
96
+ selectedAnswerStrokeColor: n.string,
97
+ selectedAnswerStrokeWidth: n.string,
98
+ hoverAnswerBackgroundColor: n.string,
99
+ hoverAnswerStrokeColor: n.string,
100
+ hoverAnswerStrokeWidth: n.string,
101
+ tagName: n.string,
102
+ isSelectionButtonBelow: n.bool
103
+ };
104
+ //#endregion
105
+ export { s as default };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/multiple-choice/src/feedback-tick.jsx
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ import React from 'react';
10
+ import PropTypes from 'prop-types';
11
+ declare class FeedbackTick extends React.Component {
12
+ static propTypes: {
13
+ correctness: PropTypes.Requireable<string>;
14
+ };
15
+ constructor(props: any);
16
+ getIncorrectIcon: () => React.JSX.Element;
17
+ getCorrectIcon: () => React.JSX.Element;
18
+ render(): React.JSX.Element;
19
+ }
20
+ export default FeedbackTick;
@@ -0,0 +1,104 @@
1
+ import e from "react";
2
+ import t from "prop-types";
3
+ import { color as n } from "@pie-lib/render-ui";
4
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
+ import { styled as a } from "@mui/material/styles";
6
+ import o from "@mui/material/Box";
7
+ import { CSSTransition as s, TransitionGroup as c } from "react-transition-group";
8
+ //#region src/delivery/feedback-tick.tsx
9
+ var l = a(o)({
10
+ width: "33px",
11
+ height: "33px",
12
+ "& svg": {
13
+ position: "absolute",
14
+ display: "inline-block",
15
+ width: "33px",
16
+ height: "33px",
17
+ verticalAlign: "middle",
18
+ "& hide": { display: "none" }
19
+ }
20
+ }), u = a("svg")({
21
+ "& .incorrect-fill": { fill: `var(--feedback-incorrect-bg-color, ${n.incorrect()})` },
22
+ "& .correct-fill": { fill: `var(--feedback-correct-bg-color, ${n.correct()})` }
23
+ }), d = a("div")({
24
+ position: "relative",
25
+ "&.feedback-tick-enter": {
26
+ opacity: "0",
27
+ left: "-50px"
28
+ },
29
+ "&.feedback-tick-enter-active": {
30
+ opacity: "1",
31
+ left: "0px",
32
+ transition: "left 500ms ease-in 200ms, opacity 500ms linear 200ms"
33
+ },
34
+ "&.feedback-tick-exit": {
35
+ opacity: "1",
36
+ left: "0px"
37
+ },
38
+ "&.feedback-tick-exit-active": {
39
+ opacity: "0",
40
+ left: "-50px",
41
+ transition: "left 300ms ease-in, opacity 300ms"
42
+ }
43
+ }), f = class extends e.Component {
44
+ static propTypes = { correctness: t.string };
45
+ constructor(t) {
46
+ super(t), this.nodeRef = e.createRef();
47
+ }
48
+ getIncorrectIcon = () => /* @__PURE__ */ r(u, {
49
+ preserveAspectRatio: "xMinYMin meet",
50
+ x: "0px",
51
+ y: "0px",
52
+ viewBox: "0 0 44 40",
53
+ style: { enableBackground: "new 0 0 44 40" },
54
+ children: /* @__PURE__ */ i("g", { children: [/* @__PURE__ */ r("rect", {
55
+ x: "11",
56
+ y: "17.3",
57
+ transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)",
58
+ className: "incorrect-fill",
59
+ width: "16.6",
60
+ height: "3.7"
61
+ }), /* @__PURE__ */ r("rect", {
62
+ x: "17.4",
63
+ y: "10.7",
64
+ transform: "matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)",
65
+ className: "incorrect-fill",
66
+ width: "3.7",
67
+ height: "16.6"
68
+ })] })
69
+ }, "1");
70
+ getCorrectIcon = () => /* @__PURE__ */ r(u, {
71
+ preserveAspectRatio: "xMinYMin meet",
72
+ version: "1.1",
73
+ x: "0px",
74
+ y: "0px",
75
+ viewBox: "0 0 44 40",
76
+ style: { enableBackground: "new 0 0 44 40" },
77
+ children: /* @__PURE__ */ r("polygon", {
78
+ className: "correct-fill",
79
+ points: "19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4"
80
+ })
81
+ }, "2");
82
+ render() {
83
+ let { correctness: e } = this.props, t = e === "incorrect" ? this.getIncorrectIcon() : e === "correct" ? this.getCorrectIcon() : null;
84
+ return /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(c, { children: e && /* @__PURE__ */ r(s, {
85
+ nodeRef: this.nodeRef,
86
+ classNames: {
87
+ enter: "feedback-tick-enter",
88
+ enterActive: "feedback-tick-enter-active",
89
+ exit: "feedback-tick-exit",
90
+ exitActive: "feedback-tick-exit-active"
91
+ },
92
+ timeout: {
93
+ enter: 700,
94
+ exit: 300
95
+ },
96
+ children: /* @__PURE__ */ r(d, {
97
+ ref: this.nodeRef,
98
+ children: t
99
+ })
100
+ }) }) });
101
+ }
102
+ };
103
+ //#endregion
104
+ export { f as default };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @synced-from pie-elements/packages/multiple-choice/src/index.js
3
+ * @auto-generated
4
+ *
5
+ * This file is automatically synced from pie-elements and converted to TypeScript.
6
+ * Manual edits will be overwritten on next sync.
7
+ * To make changes, edit the upstream JavaScript file and run sync again.
8
+ */
9
+ export declare const isComplete: (session: any, model: any, audioComplete: any, elementContext: any) => boolean;
10
+ export default class MultipleChoice extends HTMLElement {
11
+ constructor();
12
+ _scheduleMathRender: any;
13
+ _initMathObserver(): void;
14
+ _disconnectMathObserver(): void;
15
+ onShowCorrectToggle(): void;
16
+ setLangAttribute(): void;
17
+ set model(s: any);
18
+ get session(): any;
19
+ get options(): any;
20
+ set options(o: any);
21
+ set baseHeadingLevel(level: any);
22
+ set includeSrHeading(value: any);
23
+ set session(s: any);
24
+ _onChange(data: any): void;
25
+ _createAudioInfoToast(): HTMLDivElement;
26
+ connectedCallback(): void;
27
+ enableKeyboardEvents(): void;
28
+ _initPlayerObserver(): void;
29
+ _disconnectPlayerObserver(): void;
30
+ disconnectedCallback(): void;
31
+ /**
32
+ * Handles global keyboard events for selecting or toggling multiple-choice answers.
33
+ * Maps keys (1-9, 0, a-j, A-J) to choices and updates the session state accordingly.
34
+ * Ensures valid key presses toggle or select the appropriate choice based on the model.
35
+ */
36
+ handleKeyDown(event: any): void;
37
+ }