@pie-element/multiple-choice 13.1.1-next.0 → 13.2.0-next.1

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 (271) hide show
  1. package/CHANGELOG.json +1972 -0
  2. package/CHANGELOG.md +2704 -0
  3. package/LICENSE.md +5 -0
  4. package/PRINT.md +35 -0
  5. package/README.md +56 -0
  6. package/choice.png +0 -0
  7. package/configure/CHANGELOG.json +1387 -0
  8. package/configure/CHANGELOG.md +2054 -0
  9. package/{src/author/defaults.ts → configure/lib/defaults.js} +90 -55
  10. package/configure/lib/defaults.js.map +1 -0
  11. package/{src/author/index.ts → configure/lib/index.js} +55 -99
  12. package/configure/lib/index.js.map +1 -0
  13. package/configure/lib/main.js +483 -0
  14. package/configure/lib/main.js.map +1 -0
  15. package/configure/lib/utils.js +18 -0
  16. package/configure/lib/utils.js.map +1 -0
  17. package/configure/package.json +22 -0
  18. package/controller/CHANGELOG.json +527 -0
  19. package/controller/CHANGELOG.md +1394 -0
  20. package/{src/controller/defaults.ts → controller/lib/defaults.js} +8 -11
  21. package/controller/lib/defaults.js.map +1 -0
  22. package/{src/controller/index.ts → controller/lib/index.js} +109 -123
  23. package/controller/lib/index.js.map +1 -0
  24. package/controller/lib/utils.js +15 -0
  25. package/controller/lib/utils.js.map +1 -0
  26. package/controller/package.json +15 -0
  27. package/docs/config-schema.json +2993 -0
  28. package/docs/config-schema.json.md +2217 -0
  29. package/docs/demo/config.js +8 -0
  30. package/docs/demo/generate.js +61 -0
  31. package/docs/demo/index.html +1 -0
  32. package/docs/demo/session.js +7 -0
  33. package/docs/pie-schema.json +1332 -0
  34. package/docs/pie-schema.json.md +1015 -0
  35. package/lib/choice-input.js +380 -0
  36. package/lib/choice-input.js.map +1 -0
  37. package/lib/choice.js +197 -0
  38. package/lib/choice.js.map +1 -0
  39. package/lib/feedback-tick.js +134 -0
  40. package/lib/feedback-tick.js.map +1 -0
  41. package/{src/delivery/index.ts → lib/index.js} +129 -211
  42. package/lib/index.js.map +1 -0
  43. package/lib/main.js +63 -0
  44. package/lib/main.js.map +1 -0
  45. package/lib/multiple-choice.js +412 -0
  46. package/lib/multiple-choice.js.map +1 -0
  47. package/lib/print.js +94 -0
  48. package/lib/print.js.map +1 -0
  49. package/{src/delivery/session-updater.ts → lib/session-updater.js} +13 -17
  50. package/lib/session-updater.js.map +1 -0
  51. package/module/configure.js +1 -0
  52. package/module/controller.js +3045 -0
  53. package/module/demo.js +86 -0
  54. package/module/element.js +1 -0
  55. package/module/index.html +21 -0
  56. package/module/manifest.json +14 -0
  57. package/module/print-demo.js +124 -0
  58. package/module/print.html +18 -0
  59. package/module/print.js +1 -0
  60. package/package.json +26 -58
  61. package/dist/author/defaults.d.ts +0 -206
  62. package/dist/author/defaults.d.ts.map +0 -1
  63. package/dist/author/defaults.js +0 -151
  64. package/dist/author/index.d.ts +0 -27
  65. package/dist/author/index.d.ts.map +0 -1
  66. package/dist/author/index.js +0 -116
  67. package/dist/author/main.d.ts +0 -35
  68. package/dist/author/main.d.ts.map +0 -1
  69. package/dist/author/main.js +0 -290
  70. package/dist/author/utils.d.ts +0 -10
  71. package/dist/author/utils.d.ts.map +0 -1
  72. package/dist/author/utils.js +0 -7
  73. package/dist/controller/defaults.d.ts +0 -36
  74. package/dist/controller/defaults.d.ts.map +0 -1
  75. package/dist/controller/defaults.js +0 -29
  76. package/dist/controller/index.d.ts +0 -66
  77. package/dist/controller/index.d.ts.map +0 -1
  78. package/dist/controller/index.js +0 -124
  79. package/dist/controller/utils.d.ts +0 -11
  80. package/dist/controller/utils.d.ts.map +0 -1
  81. package/dist/controller/utils.js +0 -8
  82. package/dist/delivery/choice-input.d.ts +0 -45
  83. package/dist/delivery/choice-input.d.ts.map +0 -1
  84. package/dist/delivery/choice-input.js +0 -274
  85. package/dist/delivery/choice.d.ts +0 -21
  86. package/dist/delivery/choice.d.ts.map +0 -1
  87. package/dist/delivery/choice.js +0 -109
  88. package/dist/delivery/feedback-tick.d.ts +0 -21
  89. package/dist/delivery/feedback-tick.d.ts.map +0 -1
  90. package/dist/delivery/feedback-tick.js +0 -104
  91. package/dist/delivery/index.d.ts +0 -38
  92. package/dist/delivery/index.d.ts.map +0 -1
  93. package/dist/delivery/index.js +0 -217
  94. package/dist/delivery/main.d.ts +0 -32
  95. package/dist/delivery/main.d.ts.map +0 -1
  96. package/dist/delivery/main.js +0 -51
  97. package/dist/delivery/multiple-choice.d.ts +0 -63
  98. package/dist/delivery/multiple-choice.d.ts.map +0 -1
  99. package/dist/delivery/multiple-choice.js +0 -252
  100. package/dist/delivery/session-updater.d.ts +0 -11
  101. package/dist/delivery/session-updater.d.ts.map +0 -1
  102. package/dist/delivery/session-updater.js +0 -9
  103. package/dist/index.d.ts +0 -2
  104. package/dist/index.d.ts.map +0 -1
  105. package/dist/index.iife.d.ts +0 -9
  106. package/dist/index.iife.d.ts.map +0 -1
  107. package/dist/index.iife.js +0 -148
  108. package/dist/index.js +0 -2
  109. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +0 -6
  110. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +0 -16
  111. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +0 -16
  112. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +0 -6
  113. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +0 -16
  114. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +0 -6
  115. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +0 -6
  116. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +0 -11
  117. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +0 -13
  118. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +0 -5
  119. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +0 -5
  120. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +0 -6
  121. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +0 -12
  122. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +0 -7
  123. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +0 -10
  124. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
  125. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +0 -7
  126. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +0 -7
  127. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignMergeValue.js +0 -8
  128. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +0 -10
  129. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +0 -8
  130. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +0 -8
  131. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +0 -8
  132. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +0 -12
  133. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +0 -57
  134. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +0 -14
  135. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFor.js +0 -5
  136. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
  137. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +0 -10
  138. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +0 -9
  139. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +0 -8
  140. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
  141. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +0 -9
  142. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +0 -11
  143. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +0 -9
  144. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
  145. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +0 -12
  146. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +0 -13
  147. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMerge.js +0 -19
  148. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseMergeDeep.js +0 -31
  149. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +0 -9
  150. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +0 -14
  151. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +0 -7
  152. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +0 -8
  153. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +0 -8
  154. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +0 -6
  155. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
  156. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +0 -10
  157. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +0 -8
  158. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +0 -8
  159. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +0 -8
  160. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +0 -8
  161. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +0 -8
  162. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +0 -14
  163. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +0 -8
  164. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +0 -8
  165. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +0 -5
  166. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createAssigner.js +0 -15
  167. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_createBaseFor.js +0 -12
  168. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +0 -10
  169. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +0 -35
  170. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +0 -35
  171. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +0 -32
  172. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +0 -4
  173. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +0 -9
  174. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +0 -9
  175. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +0 -8
  176. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +0 -9
  177. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +0 -5
  178. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +0 -14
  179. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +0 -10
  180. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +0 -11
  181. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +0 -23
  182. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +0 -6
  183. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +0 -7
  184. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +0 -7
  185. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +0 -13
  186. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +0 -9
  187. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +0 -9
  188. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +0 -8
  189. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +0 -33
  190. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +0 -9
  191. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +0 -8
  192. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +0 -12
  193. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +0 -7
  194. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +0 -11
  195. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +0 -8
  196. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +0 -6
  197. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +0 -9
  198. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +0 -8
  199. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +0 -7
  200. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +0 -8
  201. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +0 -13
  202. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  203. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +0 -7
  204. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +0 -7
  205. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +0 -8
  206. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +0 -9
  207. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +0 -5
  208. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +0 -5
  209. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +0 -8
  210. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +0 -9
  211. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +0 -7
  212. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +0 -8
  213. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +0 -13
  214. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +0 -5
  215. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_safeGet.js +0 -6
  216. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +0 -7
  217. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +0 -6
  218. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +0 -9
  219. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +0 -6
  220. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +0 -14
  221. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +0 -7
  222. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +0 -7
  223. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +0 -6
  224. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +0 -6
  225. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +0 -16
  226. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +0 -15
  227. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +0 -8
  228. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +0 -8
  229. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +0 -8
  230. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/debounce.js +0 -50
  231. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +0 -16
  232. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +0 -6
  233. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +0 -6
  234. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +0 -10
  235. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +0 -4
  236. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +0 -8
  237. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLikeObject.js +0 -8
  238. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +0 -6
  239. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +0 -21
  240. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +0 -7
  241. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +0 -11
  242. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +0 -7
  243. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +0 -7
  244. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +0 -7
  245. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +0 -6
  246. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isPlainObject.js +0 -14
  247. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +0 -7
  248. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +0 -9
  249. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +0 -7
  250. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +0 -9
  251. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +0 -9
  252. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/merge.js +0 -8
  253. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/now.js +0 -7
  254. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +0 -6
  255. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +0 -6
  256. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +0 -19
  257. package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toPlainObject.js +0 -8
  258. package/dist/print/index.d.ts +0 -16
  259. package/dist/print/index.d.ts.map +0 -1
  260. package/dist/print/index.js +0 -44
  261. package/src/author/main.tsx +0 -509
  262. package/src/author/utils.ts +0 -25
  263. package/src/controller/utils.ts +0 -22
  264. package/src/delivery/choice-input.tsx +0 -413
  265. package/src/delivery/choice.tsx +0 -203
  266. package/src/delivery/feedback-tick.tsx +0 -156
  267. package/src/delivery/main.tsx +0 -85
  268. package/src/delivery/multiple-choice.tsx +0 -485
  269. package/src/index.iife.ts +0 -16
  270. package/src/index.ts +0 -1
  271. package/src/print/index.tsx +0 -112
@@ -1,274 +0,0 @@
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.focusUncheckedBorder()}`,
77
- backgroundColor: o.focusUnchecked()
78
- },
79
- focusVisibleChecked: {
80
- outline: `2px solid ${o.focusCheckedBorder()}`,
81
- backgroundColor: o.focusChecked()
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
- "&:not(.Mui-checked)": t.focusVisibleUnchecked,
121
- "&.Mui-checked": t.focusVisibleChecked
122
- }
123
- };
124
- }), P = (e) => {
125
- let { correctness: t, checked: n, onChange: r, disabled: i, value: a, id: o, tagName: s, inputRef: l } = e;
126
- return /* @__PURE__ */ c(N, {
127
- id: o,
128
- slotProps: { input: { ref: l } },
129
- disableRipple: !0,
130
- checked: n,
131
- onChange: r,
132
- disabled: i,
133
- value: a,
134
- correctness: t,
135
- className: C,
136
- name: s
137
- });
138
- }, F = class extends t.Component {
139
- static propTypes = {
140
- choiceMode: n.oneOf(["radio", "checkbox"]),
141
- displayKey: n.string,
142
- checked: n.bool.isRequired,
143
- correctness: n.string,
144
- disabled: n.bool.isRequired,
145
- feedback: n.string,
146
- label: n.string.isRequired,
147
- rationale: n.string,
148
- onChange: n.func.isRequired,
149
- value: n.string.isRequired,
150
- className: n.string,
151
- tagName: n.string,
152
- hideTick: n.bool,
153
- isEvaluateMode: n.bool,
154
- choicesLayout: n.oneOf([
155
- "vertical",
156
- "grid",
157
- "horizontal"
158
- ]),
159
- isSelectionButtonBelow: n.bool
160
- };
161
- static defaultProps = {
162
- rationale: null,
163
- checked: !1,
164
- isEvaluateMode: !1
165
- };
166
- constructor(e) {
167
- super(e), this.onToggleChoice = this.onToggleChoice.bind(this), this.choiceId = this.generateChoiceId(), this.descId = `${this.choiceId}-desc`;
168
- }
169
- onToggleChoice(e) {
170
- this.props.onChange(e);
171
- }
172
- generateChoiceId() {
173
- return "choice-" + (Math.random() * 1e4).toFixed();
174
- }
175
- handleKeyDown = (e) => {
176
- let { choiceMode: t } = this.props;
177
- if (t !== "checkbox") return;
178
- let n = e.key === "ArrowDown", r = e.key === "ArrowUp";
179
- if (!n && !r) return;
180
- e.preventDefault();
181
- let i = document.getElementById(this.choiceId);
182
- if (!i) return;
183
- let a = i.closest("fieldset");
184
- if (!a) return;
185
- let o = Array.from(a.querySelectorAll("input[type=\"checkbox\"]")), s = o.findIndex((e) => e === i);
186
- if (s === -1) return;
187
- let c = o[n ? s + 1 : s - 1];
188
- c && c.focus();
189
- };
190
- render() {
191
- 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 = {
192
- ...h === "horizontal" && { [`& .${C}`]: {
193
- padding: "8px",
194
- margin: "4px 0 4px 4px"
195
- } },
196
- ...x && h !== "grid" && { "& > label": { alignItems: "flex-start" } },
197
- ...x && h === "grid" && {
198
- justifyContent: "center",
199
- "& > label": { alignItems: "center" }
200
- }
201
- }, 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, {
202
- id: this.descId,
203
- children: j ? `Pick the answer below, ${r}` : r
204
- }) : null, F = /* @__PURE__ */ c(s, { children: r && !x ? /* @__PURE__ */ l(w, {
205
- component: "span",
206
- children: [/* @__PURE__ */ l("span", {
207
- "aria-hidden": "true",
208
- children: [
209
- r,
210
- ".",
211
- "\xA0"
212
- ]
213
- }), /* @__PURE__ */ c(v, {
214
- className: "prompt-label",
215
- prompt: a,
216
- tagName: "span"
217
- })]
218
- }) : /* @__PURE__ */ c(v, {
219
- className: "prompt-label",
220
- prompt: a,
221
- tagName: "span"
222
- }) }), I = {
223
- disabled: n,
224
- checked: _,
225
- correctness: o,
226
- tagName: b,
227
- value: g,
228
- id: this.choiceId,
229
- onChange: this.onToggleChoice,
230
- onKeyDown: this.handleKeyDown,
231
- ...N ? { "aria-describedby": this.descId } : {}
232
- }, L = x ? /* @__PURE__ */ l(E, { children: [
233
- N,
234
- /* @__PURE__ */ c(S, {
235
- ...I,
236
- style: { padding: 0 }
237
- }),
238
- /* @__PURE__ */ c("span", {
239
- "aria-hidden": "true",
240
- children: r ? `${r}.` : ""
241
- })
242
- ] }) : /* @__PURE__ */ l(s, { children: [N, /* @__PURE__ */ c(S, {
243
- ...I,
244
- slotProps: { input: { ref: this.props.autoFocusRef } }
245
- })] });
246
- return /* @__PURE__ */ l("div", {
247
- className: u(d, "corespring-" + k, "choice-input"),
248
- children: [
249
- /* @__PURE__ */ l(w, { children: [!p && m && /* @__PURE__ */ c(e, { correctness: o }), /* @__PURE__ */ c(T, {
250
- className: "checkbox-holder",
251
- sx: A,
252
- children: /* @__PURE__ */ c(O, {
253
- label: F,
254
- value: g,
255
- htmlFor: this.choiceId,
256
- labelPlacement: x ? "top" : void 0,
257
- control: L
258
- })
259
- })] }),
260
- f && /* @__PURE__ */ c(v, {
261
- className: "rationale",
262
- defaultClassName: "rationale",
263
- prompt: f
264
- }),
265
- /* @__PURE__ */ c(y, {
266
- feedback: i,
267
- correctness: o
268
- })
269
- ]
270
- });
271
- }
272
- };
273
- //#endregion
274
- export { F as default };
@@ -1,21 +0,0 @@
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;
21
- //# sourceMappingURL=choice.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"choice.d.ts","sourceRoot":"","sources":["../../src/delivery/choice.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAuB1B,qBAAa,MAAO,SAAQ,KAAK,CAAC,SAAS;IACzC,MAAM,CAAC,SAAS,KAAM;IAEtB,KAAK;;MAEH;IAEF,gBAAgB,EAAE,GAAG,CAMnB;IAEF,gBAAgB,EAAE,GAAG,CAEnB;IAEF,QAAQ,EAAE,GAAG,CAMX;IAEF,MAAM;CAmHP;AA2BD,eAAe,MAAM,CAAC"}
@@ -1,109 +0,0 @@
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, autoFocusRef: S, tagName: C } = this.props, { isHovered: w } = this.state, T = "choice" + (n === i - 1 ? " last" : ""), E = !s || a ? "" : t.feedback, D = {
34
- ...t,
35
- checked: u,
36
- choiceMode: c,
37
- disabled: l,
38
- feedback: E,
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: C
50
- }, O = (e) => {
51
- if (!e) return "2px";
52
- let t = String(e).trim();
53
- return /^\d+(\.\d+)?$/.test(t) ? `${t}px` : t;
54
- }, k = _ && _ !== "initial", A = b && b !== "initial", j = "transparent", M = "2px", N = "initial";
55
- (k || A) && (u && k ? (j = _, M = v) : w && !l && A && (j = b, M = x)), u && g && g !== "initial" ? N = g : w && !l && y && y !== "initial" && (N = y);
56
- let P = k || A, F = P ? {
57
- border: `${O(M)} solid ${j}`,
58
- borderRadius: "8px"
59
- } : {}, I = n === i - 1 || p !== "vertical" || P, L = p === "horizontal";
60
- return /* @__PURE__ */ r("div", {
61
- className: T,
62
- style: {
63
- backgroundColor: N === "initial" ? "initial" : N,
64
- ...F
65
- },
66
- onMouseEnter: this.handleMouseEnter,
67
- onMouseLeave: this.handleMouseLeave,
68
- children: /* @__PURE__ */ r(o, {
69
- component: "div",
70
- noBorder: I,
71
- horizontalLayout: L,
72
- children: /* @__PURE__ */ r(e, {
73
- ...D,
74
- autoFocusRef: S
75
- })
76
- })
77
- }, n);
78
- }
79
- };
80
- s.propTypes = {
81
- choiceMode: n.oneOf(["radio", "checkbox"]),
82
- choice: n.object,
83
- disabled: n.bool.isRequired,
84
- onChoiceChanged: n.func,
85
- index: n.number,
86
- choicesLength: n.number,
87
- showCorrect: n.bool,
88
- isEvaluateMode: n.bool,
89
- checked: n.bool,
90
- correctness: n.string,
91
- displayKey: n.string,
92
- choicesLayout: n.oneOf([
93
- "vertical",
94
- "grid",
95
- "horizontal"
96
- ]),
97
- gridColumns: n.string,
98
- selectedAnswerBackgroundColor: n.string,
99
- selectedAnswerStrokeColor: n.string,
100
- selectedAnswerStrokeWidth: n.string,
101
- hoverAnswerBackgroundColor: n.string,
102
- hoverAnswerStrokeColor: n.string,
103
- hoverAnswerStrokeWidth: n.string,
104
- tagName: n.string,
105
- isSelectionButtonBelow: n.bool,
106
- autoFocusRef: n.object
107
- };
108
- //#endregion
109
- export { s as default };
@@ -1,21 +0,0 @@
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;
21
- //# sourceMappingURL=feedback-tick.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feedback-tick.d.ts","sourceRoot":"","sources":["../../src/delivery/feedback-tick.tsx"],"names":[],"mappings":"AACA;;;;;;;GAOG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,SAAS,MAAM,YAAY,CAAC;AAiDnC,cAAM,YAAa,SAAQ,KAAK,CAAC,SAAS;IACxC,MAAM,CAAC,SAAS;;MAEd;gBAEU,KAAK,KAAA;IAKjB,gBAAgB,0BA4Bd;IAEF,cAAc,0BAeZ;IAEF,MAAM;CAiCP;AAED,eAAe,YAAY,CAAC"}
@@ -1,104 +0,0 @@
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 };
@@ -1,38 +0,0 @@
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
- }
38
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/delivery/index.ts"],"names":[],"mappings":"AACA;;;;;;;GAOG;AA0CH,eAAO,MAAM,UAAU,GAAI,YAAO,EAAE,UAAK,EAAE,kBAAa,EAAE,mBAAc,YAgCvE,CAAC;AA+CF,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;;IA4ErD,mBAAmB,EAAE,GAAG,CAiBtB;IAEF,iBAAiB;IAMjB,uBAAuB;IAOvB,mBAAmB;IAInB,gBAAgB;IAMhB,IAAI,KAAK,CAAC,CAAC,KAAA,EAMV;IAED,IAAI,OAAO,QAEV;IAED,IAAI,OAAO,QAEV;IAED,IAAI,OAAO,CAAC,CAAC,KAAA,EAGZ;IAED,IAAI,gBAAgB,CAAC,KAAK,KAAA,EAGzB;IAED,IAAI,gBAAgB,CAAC,KAAK,KAAA,EAGzB;IAED,IAAI,OAAO,CAAC,CAAC,KAAA,EAKZ;IAED,SAAS,CAAC,IAAI,KAAA;IAMd,qBAAqB;IA2BrB,iBAAiB;IAoFjB,oBAAoB;IAOpB,mBAAmB;IAanB,yBAAyB;IAOzB,oBAAoB;IAqBpB;;;;OAIG;IACH,aAAa,CAAC,KAAK,KAAA;CAiCpB"}