@pie-element/ebsr 11.0.0 → 12.0.1-esmbeta.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 (284) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/configure/CHANGELOG.md +8 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  4. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +4186 -0
  5. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  6. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  7. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  8. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +3332 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +202 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +248 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +597 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +2297 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +34 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +346 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +28 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +2993 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +2217 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +61 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +1332 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +1015 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.css +847 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js +1218 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/esm/configure.js.map +1 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.css +847 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js +324 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/esm/controller.js.map +1 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/esm/element.css +847 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/esm/element.js +3287 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/esm/element.js.map +1 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/esm/print.css +847 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/esm/print.js +3017 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/esm/print.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +427 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +252 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +388 -0
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +108 -0
  58. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  59. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +469 -0
  60. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  61. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  62. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  63. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +48 -0
  64. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  65. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +1 -0
  66. package/configure/node_modules/@pie-element/multiple-choice/module/controller.js +3472 -0
  67. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +86 -0
  68. package/configure/node_modules/@pie-element/multiple-choice/module/element.js +1 -0
  69. package/configure/node_modules/@pie-element/multiple-choice/module/index.html +21 -0
  70. package/configure/node_modules/@pie-element/multiple-choice/module/index.js +2 -0
  71. package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +10 -0
  72. package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +124 -0
  73. package/configure/node_modules/@pie-element/multiple-choice/module/print.html +18 -0
  74. package/configure/node_modules/@pie-element/multiple-choice/module/print.js +1 -0
  75. package/configure/node_modules/@pie-element/multiple-choice/package.json +53 -0
  76. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +1 -0
  77. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +898 -0
  78. package/configure/node_modules/@pie-lib/correct-answer-toggle/NEXT.CHANGELOG.json +1 -0
  79. package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js +262 -0
  80. package/configure/node_modules/@pie-lib/correct-answer-toggle/esm/index.js.map +1 -0
  81. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +88 -0
  82. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
  83. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +181 -0
  84. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
  85. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +66 -0
  86. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
  87. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +44 -0
  88. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/__tests__/index.test.jsx +99 -0
  89. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +61 -0
  90. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +98 -0
  91. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +61 -0
  92. package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +1 -0
  93. package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +539 -0
  94. package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +1 -0
  95. package/configure/node_modules/@pie-lib/icons/esm/index.js +1153 -0
  96. package/configure/node_modules/@pie-lib/icons/esm/index.js.map +1 -0
  97. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +89 -0
  98. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +1 -0
  99. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +153 -0
  100. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +1 -0
  101. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +206 -0
  102. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +1 -0
  103. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +130 -0
  104. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +1 -0
  105. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +92 -0
  106. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +1 -0
  107. package/configure/node_modules/@pie-lib/icons/lib/index.js +72 -0
  108. package/configure/node_modules/@pie-lib/icons/lib/index.js.map +1 -0
  109. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +229 -0
  110. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +1 -0
  111. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +145 -0
  112. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +1 -0
  113. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +183 -0
  114. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +1 -0
  115. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +82 -0
  116. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +1 -0
  117. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +206 -0
  118. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +1 -0
  119. package/configure/node_modules/@pie-lib/icons/lib/sized.js +41 -0
  120. package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +1 -0
  121. package/configure/node_modules/@pie-lib/icons/package.json +35 -0
  122. package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +3 -0
  123. package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +64 -0
  124. package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +121 -0
  125. package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +158 -0
  126. package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +76 -0
  127. package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +61 -0
  128. package/configure/node_modules/@pie-lib/icons/src/index.js +19 -0
  129. package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +189 -0
  130. package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +107 -0
  131. package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +130 -0
  132. package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +49 -0
  133. package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +152 -0
  134. package/configure/node_modules/@pie-lib/icons/src/sized.jsx +25 -0
  135. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +1 -0
  136. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +775 -0
  137. package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +1 -0
  138. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +690 -0
  139. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +1 -0
  140. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +38 -0
  141. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  142. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +15 -0
  143. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +1 -0
  144. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +296 -0
  145. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  146. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  147. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  148. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +109 -0
  149. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  150. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +95 -0
  151. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  152. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +438 -0
  153. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  154. package/configure/node_modules/@pie-lib/math-rendering/package.json +28 -0
  155. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +14 -0
  156. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +50 -0
  157. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +155 -0
  158. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +5 -0
  159. package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +2 -0
  160. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +9 -0
  161. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +104 -0
  162. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +220 -0
  163. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  164. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  165. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  166. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +387 -0
  167. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +1 -0
  168. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +1026 -0
  169. package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +1 -0
  170. package/configure/node_modules/@pie-lib/render-ui/esm/index.js +1616 -0
  171. package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +1 -0
  172. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +88 -0
  173. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +1 -0
  174. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +9 -0
  175. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +1 -0
  176. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +135 -0
  177. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  178. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +344 -0
  179. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  180. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +150 -0
  181. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  182. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +27 -0
  183. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +1 -0
  184. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +28 -0
  185. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  186. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +74 -0
  187. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  188. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +136 -0
  189. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  190. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  191. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  192. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +145 -0
  193. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  194. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +321 -0
  195. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  196. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  197. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  198. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  199. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  200. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +151 -0
  201. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  202. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +122 -0
  203. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +1 -0
  204. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +181 -0
  205. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  206. package/configure/node_modules/@pie-lib/render-ui/package.json +40 -0
  207. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +11 -0
  208. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +37 -0
  209. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +42 -0
  210. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +64 -0
  211. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +27 -0
  212. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +12 -0
  213. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +20 -0
  214. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +21 -0
  215. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +24 -0
  216. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +56 -0
  217. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +47 -0
  218. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +64 -0
  219. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +16 -0
  220. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +34 -0
  221. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +254 -0
  222. package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +51 -0
  223. package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +1 -0
  224. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +18 -0
  225. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +13 -0
  226. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +64 -0
  227. package/configure/node_modules/@pie-lib/render-ui/src/color.js +121 -0
  228. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +99 -0
  229. package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +16 -0
  230. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +18 -0
  231. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +21 -0
  232. package/configure/node_modules/@pie-lib/render-ui/src/index.js +35 -0
  233. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  234. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +95 -0
  235. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +254 -0
  236. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +17 -0
  237. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  238. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  239. package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +66 -0
  240. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +116 -0
  241. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +1 -0
  242. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +410 -0
  243. package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +1 -0
  244. package/configure/node_modules/@pie-lib/test-utils/esm/index.js +39 -0
  245. package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +1 -0
  246. package/configure/node_modules/@pie-lib/test-utils/lib/index.js +40 -0
  247. package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +1 -0
  248. package/configure/node_modules/@pie-lib/test-utils/package.json +25 -0
  249. package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +45 -0
  250. package/configure/node_modules/@pie-lib/test-utils/src/index.js +18 -0
  251. package/configure/node_modules/@pie-lib/translator/CHANGELOG.json +1 -0
  252. package/configure/node_modules/@pie-lib/translator/CHANGELOG.md +282 -0
  253. package/configure/node_modules/@pie-lib/translator/NEXT.CHANGELOG.json +1 -0
  254. package/configure/node_modules/@pie-lib/translator/esm/index.js +257 -0
  255. package/configure/node_modules/@pie-lib/translator/esm/index.js.map +1 -0
  256. package/configure/node_modules/@pie-lib/translator/lib/en.js +102 -0
  257. package/configure/node_modules/@pie-lib/translator/lib/en.js.map +1 -0
  258. package/configure/node_modules/@pie-lib/translator/lib/es.js +102 -0
  259. package/configure/node_modules/@pie-lib/translator/lib/es.js.map +1 -0
  260. package/configure/node_modules/@pie-lib/translator/lib/index.js +69 -0
  261. package/configure/node_modules/@pie-lib/translator/lib/index.js.map +1 -0
  262. package/configure/node_modules/@pie-lib/translator/package.json +25 -0
  263. package/configure/node_modules/@pie-lib/translator/src/en.js +99 -0
  264. package/configure/node_modules/@pie-lib/translator/src/es.js +99 -0
  265. package/configure/node_modules/@pie-lib/translator/src/index.js +43 -0
  266. package/configure/package.json +3 -3
  267. package/controller/CHANGELOG.md +8 -0
  268. package/controller/package.json +3 -3
  269. package/esm/configure.js +40550 -0
  270. package/esm/configure.js.map +1 -0
  271. package/esm/controller.js +3358 -0
  272. package/esm/controller.js.map +1 -0
  273. package/esm/element.js +2203 -0
  274. package/esm/element.js.map +1 -0
  275. package/esm/package.json +4 -0
  276. package/esm/print.js +4090 -0
  277. package/esm/print.js.map +1 -0
  278. package/module/controller.js +4973 -2252
  279. package/module/element.js +1 -1
  280. package/module/index.html +1 -1
  281. package/module/manifest.json +1 -1
  282. package/module/print.html +1 -1
  283. package/module/print.js +1 -1
  284. package/package.json +24 -6
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","dropdown","MAX_CHOICES","styles","theme","promptHolder","width","paddingTop","spacing","unit","marginBottom","rationaleHolder","flex","marginTop","marginLeft","choiceConfigurationHolder","display","flexDirection","choiceConfiguration","switchElement","justifyContent","margin","addButton","disableButton","cursor","pointerEvents","backgroundColor","color","disabled","flexContainer","alignItems","titleText","fontSize","typography","marginRight","tooltip","whiteSpace","maxWidth","errorText","palette","error","main","Design","props","classes","model","configuration","onPromptChanged","onChoiceChanged","onRemoveChoice","onAddChoice","imageSupport","uploadSoundSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","addChoiceButton","contentDimensions","feedback","deleteChoice","choiceMode","choicePrefix","partialScoring","lockChoiceOrder","teacherInstructions","studentInstructions","rationale","scoringType","sequentialChoiceLabels","settingsPanelDisabled","choicesLayout","spellCheck","gridColumns","maxImageWidth","maxImageHeight","prompt","withRubric","mathMlOptions","language","languageChoices","maxAnswerChoices","limitChoicesNumber","teacherInstructionsEnabled","rationaleEnabled","feedbackEnabled","promptEnabled","spellCheckEnabled","choices","errors","toolbarEditorPosition","extraCSSRules","answerChoicesError","answerChoices","choicesErrors","correctResponseError","correctResponse","promptError","rationaleErrors","teacherInstructionsError","nrOfColumnsAvailable","length","Array","from","_","i","baseInputConfiguration","toolbarOpts","position","getPluginProps","validationMessage","defaultImageMaxWidth","defaultImageMaxHeight","addChoiceButtonTooltip","panelSettings","label","enabled","options","panelProperties","studentInstructionsEnabled","rubricEnabled","Settings","Properties","inputConfiguration","map","choice","index","c","value","root","Main","showWarning","onModelChanged","minAnswerChoices","setState","splice","push","utils","firstAvailableIndex","type","correct","key","correctFound","state","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAQA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAA2CC,kBAA3C,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAA2CD,kBAA3C,CAAeC,MAAf;AAAA,IAAuBC,KAAvB,GAA2CF,kBAA3C,CAAuBE,KAAvB;AAAA,IAA8BC,QAA9B,GAA2CH,kBAA3C,CAA8BG,QAA9B;AAEA,IAAMC,WAAW,GAAG,CAApB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFrB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAHvB,KADW;AAMzBE,IAAAA,eAAe,EAAE;AACfC,MAAAA,IAAI,EAAE,CADS;AAEfC,MAAAA,SAAS,EAAET,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,GAFjB;AAGfF,MAAAA,UAAU,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAHlB;AAIfK,MAAAA,UAAU,EAAEV,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB;AAJlB,KANQ;AAYzBM,IAAAA,yBAAyB,EAAE;AACzBC,MAAAA,OAAO,EAAE,MADgB;AAEzBC,MAAAA,aAAa,EAAE,QAFU;AAGzBP,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,CAAcC;AAHH,KAZF;AAiBzBS,IAAAA,mBAAmB,EAAE;AACnBZ,MAAAA,KAAK,EAAE;AADY,KAjBI;AAoBzBa,IA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AKE,QAAA,WAAW,EAAE,KAAKE,WALpB;AAME,QAAA,eAAe,EAAE,KAAKH,eANxB;AAOE,QAAA,4BAA4B,EAAE,KAAKQ;AAPrC,SAPF,CADF;AAmBD;;;EA3IuBwF,kBAAMC,S;;;iCAAnBf,I,eACQ;AACjBpF,EAAAA,KAAK,EAAEoG,sBAAUC,MAAV,CAAiBC,UADP;AAEjBrG,EAAAA,aAAa,EAAEmG,sBAAUC,MAAV,CAAiBC,UAFf;AAGjBC,EAAAA,gBAAgB,EAAEH,sBAAUI,IAHX;AAIjBlB,EAAAA,cAAc,EAAEc,sBAAUK,IAAV,CAAeH,UAJd;AAKjB7F,EAAAA,sBAAsB,EAAE2F,sBAAUK,IAAV,CAAeH,UALtB;AAMjBvG,EAAAA,OAAO,EAAEqG,sBAAUC,MAAV,CAAiBC,UANT;AAOjBhG,EAAAA,YAAY,EAAE8F,sBAAUM,KAAV,CAAgB;AAC5BC,IAAAA,GAAG,EAAEP,sBAAUK,IAAV,CAAeH,UADQ;AAE5B,cAAQF,sBAAUK,IAAV,CAAeH;AAFK,GAAhB;AAPG,C;AA6IrB,IAAMM,MAAM,GAAG,wBAAWtJ,MAAX,EAAmB8H,IAAnB,CAAf;eAEewB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html';\nimport {\n AlertDialog,\n InputContainer,\n ChoiceConfiguration,\n settings,\n layout,\n choiceUtils as utils,\n} from '@pie-lib/config-ui';\nimport { color } from '@pie-lib/render-ui';\nimport { withStyles } from '@material-ui/core/styles';\nimport Button from '@material-ui/core/Button';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport Typography from '@material-ui/core/Typography';\nimport Info from '@material-ui/icons/Info';\nimport merge from 'lodash/merge';\nimport { generateValidationMessage } from './utils';\n\nconst { Panel, toggle, radio, dropdown } = settings;\n\nconst MAX_CHOICES = 9;\n\nconst styles = (theme) => ({\n promptHolder: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n },\n rationaleHolder: {\n flex: 1,\n marginTop: theme.spacing.unit * 1.5,\n paddingTop: theme.spacing.unit * 2,\n marginLeft: theme.spacing.unit * 3.5,\n },\n choiceConfigurationHolder: {\n display: 'flex',\n flexDirection: 'column',\n marginBottom: theme.spacing.unit,\n },\n choiceConfiguration: {\n width: '100%',\n },\n switchElement: {\n justifyContent: 'space-between',\n margin: 0,\n },\n addButton: {\n marginTop: theme.spacing.unit,\n float: 'right',\n },\n disableButton: {\n cursor: 'not-allowed',\n pointerEvents: 'all',\n backgroundColor: color.disabled(),\n '&:hover': {\n backgroundColor: color.disabled(),\n },\n '&:focus': {\n backgroundColor: color.disabled(),\n },\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n titleText: {\n fontSize: theme.typography.fontSize + 2,\n marginRight: theme.spacing.unit,\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n});\n\nconst Design = withStyles(styles)((props) => {\n const {\n classes,\n model,\n configuration,\n onPromptChanged,\n onChoiceChanged,\n onRemoveChoice,\n onAddChoice,\n imageSupport,\n uploadSoundSupport,\n onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged,\n } = props;\n\n const {\n addChoiceButton = {},\n contentDimensions = {},\n feedback = {},\n deleteChoice = {},\n choiceMode = {},\n choicePrefix = {},\n partialScoring = {},\n lockChoiceOrder = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n scoringType = {},\n sequentialChoiceLabels = {},\n settingsPanelDisabled,\n choicesLayout,\n spellCheck = {},\n gridColumns,\n maxImageWidth = {},\n maxImageHeight = {},\n prompt = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n let { maxAnswerChoices } = configuration || {};\n const {\n limitChoicesNumber,\n teacherInstructionsEnabled,\n rationaleEnabled,\n feedbackEnabled,\n promptEnabled,\n spellCheckEnabled,\n choices,\n errors,\n toolbarEditorPosition,\n extraCSSRules,\n } = model || {};\n\n const {\n answerChoices: answerChoicesError,\n choices: choicesErrors,\n correctResponse: correctResponseError,\n prompt: promptError,\n rationale: rationaleErrors,\n teacherInstructions: teacherInstructionsError,\n } = errors || {};\n const nrOfColumnsAvailable = choices?.length ? Array.from({ length: choices.length }, (_, i) => `${i + 1}`) : [];\n\n const { baseInputConfiguration = {} } = configuration;\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n const getPluginProps = (props = {}) => ({\n ...baseInputConfiguration,\n ...props,\n });\n\n const validationMessage = generateValidationMessage(configuration);\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n const addChoiceButtonTooltip =\n maxAnswerChoices && choices?.length >= maxAnswerChoices ? `Only ${maxAnswerChoices} allowed maximum` : '';\n\n const panelSettings = {\n choiceMode: choiceMode.settings && radio(choiceMode.label, ['checkbox', 'radio']),\n 'sequentialChoiceLabels.enabled': sequentialChoiceLabels.settings && toggle(sequentialChoiceLabels.label, true),\n choicePrefix: choicePrefix.settings && radio(choicePrefix.label, ['numbers', 'letters']),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n lockChoiceOrder: lockChoiceOrder.settings && toggle(lockChoiceOrder.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal']),\n gridColumns:\n choicesLayout.settings &&\n model.choicesLayout === 'grid' &&\n nrOfColumnsAvailable.length > 0 &&\n dropdown(gridColumns.label, nrOfColumnsAvailable),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric']),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n return (\n <layout.ConfigLayout\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n extraCSSRules={extraCSSRules}\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.teacherInstructions?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {teacherInstructionsError && <div className={classes.errorText}>{teacherInstructionsError}</div>}\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptHolder}>\n <EditableHtml\n className={classes.prompt}\n markup={model.prompt}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n disableUnderline\n error={promptError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.prompt?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={maxImageWidth && maxImageWidth.prompt}\n maxImageHeight={maxImageHeight && maxImageHeight.prompt}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {promptError && <div className={classes.errorText}>{promptError}</div>}\n </InputContainer>\n )}\n\n <div className={classes.flexContainer}>\n <Typography className={classes.titleText} component={'div'}>\n Choices\n </Typography>\n <Tooltip\n classes={{ tooltip: classes.tooltip }}\n disableFocusListener\n disableTouchListener\n placement={'right'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} />\n </Tooltip>\n </div>\n\n {choices.map((choice, index) => (\n <div key={`choice-${index}`} className={classes.choiceConfigurationHolder}>\n <ChoiceConfiguration\n key={index}\n index={index + 1}\n useLetterOrdering={model.choicePrefix === 'letters'}\n className={classes.choiceConfiguration}\n mode={model.choiceMode}\n data={choice}\n defaultFeedback={{}}\n imageSupport={imageSupport}\n disableImageAlignmentButtons={true}\n onDelete={() => onRemoveChoice(index)}\n onChange={(c) => onChoiceChanged(index, c)}\n allowFeedBack={feedbackEnabled}\n allowDelete={deleteChoice.settings}\n noLabels\n pluginOpts={getPluginProps(configuration?.choices?.inputConfiguration)}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheckEnabled}\n error={choicesErrors?.[choice.value] || null}\n noCorrectAnswerError={correctResponseError}\n maxImageWidth={(maxImageWidth && maxImageWidth.choices) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.choices) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n mathMlOptions={mathMlOptions}\n />\n\n {rationaleEnabled && (\n <InputContainer key={`rationale-${index}`} label={rationale.label} className={classes.rationaleHolder}>\n <EditableHtml\n className={classes.rationale}\n markup={choice.rationale || ''}\n onChange={(c) => onChoiceChanged(index, { ...choice, rationale: c })}\n imageSupport={imageSupport}\n error={rationaleErrors?.[choice.value] || null}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(configuration?.rationale?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {rationaleErrors?.[choice.value] && (\n <div className={classes.errorText}>{rationaleErrors?.[choice.value]}</div>\n )}\n </InputContainer>\n )}\n </div>\n ))}\n\n {correctResponseError && <div className={classes.errorText}>{correctResponseError}</div>}\n {answerChoicesError && <div className={classes.errorText}>{answerChoicesError}</div>}\n\n {addChoiceButton.settings && (\n <Tooltip title={addChoiceButtonTooltip} classes={{ tooltip: classes.tooltip }}>\n <Button\n classes={{ root: maxAnswerChoices && choices?.length >= maxAnswerChoices && classes.disableButton }}\n className={classes.addButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={onAddChoice}\n >\n {addChoiceButton.label}\n </Button>\n </Tooltip>\n )}\n </layout.ConfigLayout>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: PropTypes.object.isRequired,\n configuration: PropTypes.object.isRequired,\n disableSidePanel: PropTypes.bool,\n onModelChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n };\n\n state = { showWarning: false };\n\n onRemoveChoice = (index) => {\n const { model, configuration, onModelChanged } = this.props;\n const { minAnswerChoices } = configuration || {};\n\n if (minAnswerChoices && model.choices.length === minAnswerChoices) {\n this.setState({ showWarning: true });\n\n return;\n }\n\n model.choices.splice(index, 1);\n onModelChanged(model);\n };\n\n onAddChoice = () => {\n const { model, configuration, onModelChanged } = this.props;\n let { maxAnswerChoices } = configuration || {};\n const { limitChoicesNumber } = model || {};\n\n // if old property is used, set maxAnswerChoices to 9\n if (limitChoicesNumber) {\n maxAnswerChoices = MAX_CHOICES;\n }\n\n if (maxAnswerChoices && model.choices.length >= maxAnswerChoices) {\n return;\n }\n\n model.choices.push({\n label: '',\n value: utils.firstAvailableIndex(\n model.choices.map((c) => c.value),\n 0,\n ),\n feedback: { type: 'none' },\n });\n\n onModelChanged(model);\n };\n\n onChoiceChanged = (index, choice) => {\n const { model, onModelChanged } = this.props;\n\n if (choice.correct && model.choiceMode === 'radio') {\n model.choices = model.choices.map((c) => merge({}, c, { correct: false }));\n }\n\n model.choices.splice(index, 1, choice);\n onModelChanged(model);\n };\n\n onPromptChanged = (prompt) => {\n this.props.onModelChanged({\n ...this.props.model,\n prompt,\n });\n };\n\n onTeacherInstructionsChanged = (teacherInstructions) => {\n this.props.onModelChanged({\n ...this.props.model,\n teacherInstructions,\n });\n };\n\n onModelChanged = (model, key) => {\n const { onModelChanged } = this.props;\n\n switch (key) {\n case 'choiceMode': {\n let value = model.choiceMode;\n\n if (value === 'radio') {\n let correctFound = false;\n\n model.choices = model.choices.map((c) => {\n if (correctFound) {\n c.correct = false;\n\n return c;\n }\n\n if (c.correct) {\n correctFound = true;\n }\n\n return c;\n });\n }\n\n onModelChanged(model, true);\n break;\n }\n\n default:\n onModelChanged(model);\n break;\n }\n };\n\n render() {\n const { configuration: { minAnswerChoices } = {} } = this.props;\n const { showWarning } = this.state;\n\n return (\n <React.Fragment>\n <AlertDialog\n open={showWarning}\n title=\"Warning\"\n text={`There can't be less than ${minAnswerChoices || 0} choices.`}\n onConfirm={() => this.setState({ showWarning: false })}\n />\n <Design\n {...this.props}\n onChangeModel={this.onModelChanged}\n onRemoveChoice={this.onRemoveChoice}\n onChoiceChanged={this.onChoiceChanged}\n onAddChoice={this.onAddChoice}\n onPromptChanged={this.onPromptChanged}\n onTeacherInstructionsChanged={this.onTeacherInstructionsChanged}\n />\n </React.Fragment>\n );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.generateValidationMessage = void 0;
7
+
8
+ var generateValidationMessage = function generateValidationMessage(config) {
9
+ var minAnswerChoices = config.minAnswerChoices,
10
+ maxAnswerChoices = config.maxAnswerChoices;
11
+ var answerChoicesMessage = "\nThere should be at least ".concat(minAnswerChoices, " ") + (maxAnswerChoices ? "and at most ".concat(maxAnswerChoices, " ") : '') + 'answer choices defined.' + '\nEvery answer choice should be non-blank and unique.';
12
+ var correctAnswerMessage = '\nA correct answer must be defined.';
13
+ var message = 'Validation requirements:' + answerChoicesMessage + correctAnswerMessage;
14
+ return message;
15
+ };
16
+
17
+ exports.generateValidationMessage = generateValidationMessage;
18
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/utils.js"],"names":["generateValidationMessage","config","minAnswerChoices","maxAnswerChoices","answerChoicesMessage","correctAnswerMessage","message"],"mappings":";;;;;;;AAAO,IAAMA,yBAAyB,GAAG,SAA5BA,yBAA4B,CAACC,MAAD,EAAY;AACnD,MAAQC,gBAAR,GAA+CD,MAA/C,CAAQC,gBAAR;AAAA,MAA0BC,gBAA1B,GAA+CF,MAA/C,CAA0BE,gBAA1B;AAEA,MAAMC,oBAAoB,GACxB,qCAA8BF,gBAA9B,UACCC,gBAAgB,yBAAkBA,gBAAlB,SAAwC,EADzD,IAEA,yBAFA,GAGA,uDAJF;AAMA,MAAME,oBAAoB,GAAG,qCAA7B;AAEA,MAAMC,OAAO,GAAG,6BAA6BF,oBAA7B,GAAoDC,oBAApE;AAEA,SAAOC,OAAP;AACD,CAdM","sourcesContent":["export const generateValidationMessage = (config) => {\n const { minAnswerChoices, maxAnswerChoices } = config;\n\n const answerChoicesMessage =\n `\\nThere should be at least ${minAnswerChoices} ` +\n (maxAnswerChoices ? `and at most ${maxAnswerChoices} ` : '') +\n 'answer choices defined.' +\n '\\nEvery answer choice should be non-blank and unique.';\n\n const correctAnswerMessage = '\\nA correct answer must be defined.';\n\n const message = 'Validation requirements:' + answerChoicesMessage + correctAnswerMessage;\n\n return message;\n};\n"],"file":"utils.js"}
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@pie-element/multiple-choice-configure",
3
+ "version": "11.0.5-esm.1",
4
+ "private": true,
5
+ "main": "lib/index.js",
6
+ "module": "src/index.js",
7
+ "dependencies": {
8
+ "@material-ui/core": "^3.9.2",
9
+ "@material-ui/icons": "^3.0.1",
10
+ "@pie-framework/pie-configure-events": "^1.3.0",
11
+ "@pie-lib/config-ui": "^11.26.3",
12
+ "@pie-lib/editable-html": "^11.18.3",
13
+ "@pie-lib/render-ui": "^4.32.3",
14
+ "debug": "^3.1.0",
15
+ "lodash": "^4.17.15",
16
+ "prop-types": "^15.6.2",
17
+ "react": "^16.8.1",
18
+ "react-dom": "^16.8.1"
19
+ }
20
+ }
@@ -0,0 +1,527 @@
1
+ [
2
+ {
3
+ "type": "feat",
4
+ "scope": "general",
5
+ "subject": "initialize default model (#129)",
6
+ "merge": null,
7
+ "header": "feat(general): initialize default model (#129)",
8
+ "body": "* feat: initialize empty README\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* feat: implement default-model-initialization method\n\n* fix: add babel-transform-runtime in order to support async/await\n\n* bump yarn lock\n\n* update snapshots",
9
+ "footer": null,
10
+ "notes": [],
11
+ "hash": "b62d0585a86c8e2fbe5a6181b869a28c1131756b",
12
+ "gitTags": "",
13
+ "committerDate": "2019-03-12 15:47:20 -0400",
14
+ "isTagged": true,
15
+ "tag": "@pie-element/multiple-choice-controller@1.4.0"
16
+ },
17
+ {
18
+ "type": "feat",
19
+ "scope": "multiple-choice",
20
+ "subject": "refactored the code of the multiple-choice package in order to use the new layout",
21
+ "merge": null,
22
+ "header": "feat(multiple-choice): refactored the code of the multiple-choice package in order to use the new layout",
23
+ "body": null,
24
+ "footer": null,
25
+ "notes": [],
26
+ "hash": "b16b654ae8881e0af9d271c533a27510d751f54f",
27
+ "gitTags": "",
28
+ "committerDate": "2018-12-17 19:40:38 +0200",
29
+ "isTagged": true,
30
+ "tag": "@pie-element/multiple-choice-controller@1.3.0"
31
+ },
32
+ {
33
+ "type": "fix",
34
+ "scope": null,
35
+ "subject": "conflict",
36
+ "merge": null,
37
+ "header": "fix: conflict",
38
+ "body": null,
39
+ "footer": null,
40
+ "notes": [],
41
+ "hash": "b854c6bf9d8139161ae34c16556edf48eb7ba942",
42
+ "gitTags": "",
43
+ "committerDate": "2018-11-12 12:28:04 +0000",
44
+ "isTagged": true,
45
+ "tag": "@pie-element/multiple-choice-controller@1.2.2"
46
+ },
47
+ {
48
+ "type": "fix",
49
+ "scope": "dependencies-add",
50
+ "subject": "added dependencies where needed",
51
+ "merge": null,
52
+ "header": "fix(dependencies-add): added dependencies where needed",
53
+ "body": null,
54
+ "footer": null,
55
+ "notes": [],
56
+ "hash": "23df697120b76a227930c00a7976e79c33ccdcd7",
57
+ "gitTags": " (origin/fix/added-dependencies-where-needed)",
58
+ "committerDate": "2018-11-09 11:31:39 +0200",
59
+ "isTagged": true,
60
+ "tag": "@pie-element/multiple-choice-controller@1.2.2"
61
+ },
62
+ {
63
+ "type": "feat",
64
+ "scope": "choice-interaction-update",
65
+ "subject": "made the requested changes for the multiple-choice package",
66
+ "merge": null,
67
+ "header": "feat(choice-interaction-update): made the requested changes for the multiple-choice package",
68
+ "body": null,
69
+ "footer": null,
70
+ "notes": [],
71
+ "hash": "d03dc1a5b60c00d4c135e6ade1fce26c3612ff69",
72
+ "gitTags": "",
73
+ "committerDate": "2018-10-31 10:13:38 +0200",
74
+ "isTagged": true,
75
+ "tag": "@pie-element/multiple-choice-controller@1.2.0"
76
+ },
77
+ {
78
+ "type": "feat",
79
+ "scope": "ch497",
80
+ "subject": "updated the partial scoring for 3 packages: match, select-text and multiple-choice",
81
+ "merge": null,
82
+ "header": "feat(ch497): updated the partial scoring for 3 packages: match, select-text and multiple-choice",
83
+ "body": null,
84
+ "footer": null,
85
+ "notes": [],
86
+ "hash": "5a46b061aec68b46cd34f358d6bc239fa96df6fd",
87
+ "gitTags": "",
88
+ "committerDate": "2018-10-29 14:27:25 +0200",
89
+ "isTagged": true,
90
+ "tag": "@pie-element/multiple-choice-controller@1.2.0"
91
+ },
92
+ {
93
+ "type": "fix",
94
+ "scope": null,
95
+ "subject": "build fixes",
96
+ "merge": null,
97
+ "header": "fix: build fixes",
98
+ "body": null,
99
+ "footer": null,
100
+ "notes": [],
101
+ "hash": "3c3a7f20ff7805fa1265eb7b187b80d77e1820ac",
102
+ "gitTags": "",
103
+ "committerDate": "2018-09-20 09:49:51 +0100",
104
+ "isTagged": true,
105
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
106
+ },
107
+ {
108
+ "type": "feat",
109
+ "scope": null,
110
+ "subject": "add outcome method to controller",
111
+ "merge": null,
112
+ "header": "feat: add outcome method to controller",
113
+ "body": null,
114
+ "footer": null,
115
+ "notes": [],
116
+ "hash": "ec2853ed83ff977e55155dcd8aa3301f97bfcc67",
117
+ "gitTags": "",
118
+ "committerDate": "2018-08-15 21:36:45 -0400",
119
+ "isTagged": true,
120
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
121
+ },
122
+ {
123
+ "type": "feat",
124
+ "scope": "root",
125
+ "subject": "use @pie-lib/config-ui choiceUtils",
126
+ "merge": null,
127
+ "header": "feat(root): use @pie-lib/config-ui choiceUtils",
128
+ "body": null,
129
+ "footer": null,
130
+ "notes": [],
131
+ "hash": "2a3f180b41e7e9a36a0758dcbe4fdb86f253a50c",
132
+ "gitTags": "",
133
+ "committerDate": "2018-04-24 21:28:59 -0400",
134
+ "isTagged": true,
135
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
136
+ },
137
+ {
138
+ "type": "fix",
139
+ "scope": "dependencies",
140
+ "subject": "version bump",
141
+ "merge": null,
142
+ "header": "fix(dependencies): version bump",
143
+ "body": null,
144
+ "footer": null,
145
+ "notes": [],
146
+ "hash": "ee6d3d0cd4b0a1d87fd4ab4e161c3b686d7b05bb",
147
+ "gitTags": "",
148
+ "committerDate": "2018-04-24 11:34:37 -0400",
149
+ "isTagged": true,
150
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
151
+ },
152
+ {
153
+ "type": "chore",
154
+ "scope": "test",
155
+ "subject": "set up some tests",
156
+ "merge": null,
157
+ "header": "chore(test): set up some tests",
158
+ "body": null,
159
+ "footer": null,
160
+ "notes": [],
161
+ "hash": "37936ae5e2ad4427159cecb53e460f77a98a46bc",
162
+ "gitTags": "",
163
+ "committerDate": "2018-04-17 15:03:45 -0400",
164
+ "isTagged": true,
165
+ "tag": "@pie-element/multiple-choice-controller@1.1.0"
166
+ },
167
+ {
168
+ "type": "feat",
169
+ "scope": null,
170
+ "subject": "partial scoring",
171
+ "merge": null,
172
+ "header": "feat: partial scoring",
173
+ "body": null,
174
+ "footer": null,
175
+ "notes": [],
176
+ "hash": "928bcc3169dee6de905118acf53573a794611873",
177
+ "gitTags": "",
178
+ "committerDate": "2019-04-02 17:11:17 +0100",
179
+ "isTagged": true,
180
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
181
+ },
182
+ {
183
+ "type": "feat",
184
+ "scope": null,
185
+ "subject": "support env.partialScoring, disable for radio",
186
+ "merge": null,
187
+ "header": "feat: support env.partialScoring, disable for radio",
188
+ "body": null,
189
+ "footer": null,
190
+ "notes": [],
191
+ "hash": "40862cb9e50eac0d055c31c1349b7a94aa06475b",
192
+ "gitTags": "",
193
+ "committerDate": "2019-04-02 11:20:20 +0100",
194
+ "isTagged": true,
195
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
196
+ },
197
+ {
198
+ "type": "feat",
199
+ "scope": null,
200
+ "subject": "allow config to control the UI",
201
+ "merge": null,
202
+ "header": "feat: allow config to control the UI",
203
+ "body": null,
204
+ "footer": null,
205
+ "notes": [],
206
+ "hash": "70551b83c6ad216661e8699f944dd0fcfa630f07",
207
+ "gitTags": "",
208
+ "committerDate": "2019-03-19 12:46:28 +0200",
209
+ "isTagged": true,
210
+ "tag": "@pie-element/multiple-choice-controller@1.5.0"
211
+ },
212
+ {
213
+ "type": "fix",
214
+ "scope": "multiple-choice",
215
+ "subject": "Refactored using new established naming convention and updated tests.",
216
+ "merge": null,
217
+ "header": "fix(multiple-choice): Refactored using new established naming convention and updated tests.",
218
+ "body": null,
219
+ "footer": null,
220
+ "notes": [],
221
+ "hash": "78ffbaeb9cf4bbd4ef88a57addb9a1221089903c",
222
+ "gitTags": "",
223
+ "committerDate": "2019-04-17 06:50:02 +0300",
224
+ "isTagged": true,
225
+ "tag": "@pie-element/multiple-choice-controller@1.5.2"
226
+ },
227
+ {
228
+ "type": "feat",
229
+ "scope": null,
230
+ "subject": "added rationale support",
231
+ "merge": null,
232
+ "header": "feat: added rationale support",
233
+ "body": null,
234
+ "footer": null,
235
+ "notes": [],
236
+ "hash": "3c1edf3da6101d62f3cd4d06dc22c64ca2560205",
237
+ "gitTags": "",
238
+ "committerDate": "2019-05-14 16:45:35 +0300",
239
+ "isTagged": true,
240
+ "tag": "@pie-element/multiple-choice-controller@1.6.0"
241
+ },
242
+ {
243
+ "type": "feat",
244
+ "scope": null,
245
+ "subject": "added rationale support.",
246
+ "merge": null,
247
+ "header": "feat: added rationale support.",
248
+ "body": null,
249
+ "footer": null,
250
+ "notes": [],
251
+ "hash": "1ddc13742d8a585befca50702889c8c8fa47ad6c",
252
+ "gitTags": "",
253
+ "committerDate": "2019-05-09 16:57:00 +0300",
254
+ "isTagged": true,
255
+ "tag": "@pie-element/multiple-choice-controller@1.6.0"
256
+ },
257
+ {
258
+ "type": "chore",
259
+ "scope": null,
260
+ "subject": "downgrade console.error calls to TODO (#261)",
261
+ "merge": null,
262
+ "header": "chore: downgrade console.error calls to TODO (#261)",
263
+ "body": null,
264
+ "footer": null,
265
+ "notes": [],
266
+ "hash": "623e43fb29db0f2dc3c88a8711476689ea8e3969",
267
+ "gitTags": "",
268
+ "committerDate": "2019-07-01 18:02:20 -0400",
269
+ "isTagged": true,
270
+ "tag": "@pie-element/multiple-choice-controller@1.6.3"
271
+ },
272
+ {
273
+ "type": "fix",
274
+ "scope": "editable-html",
275
+ "subject": "fixed lots of stuff regarding the editable-html",
276
+ "merge": null,
277
+ "header": "fix(editable-html): fixed lots of stuff regarding the editable-html",
278
+ "body": null,
279
+ "footer": null,
280
+ "notes": [],
281
+ "hash": "12c112917e0b5065ec35efdbdc276703602a6c68",
282
+ "gitTags": " (origin/andrei/fixes)",
283
+ "committerDate": "2019-07-07 14:16:34 -0400",
284
+ "isTagged": true,
285
+ "tag": "@pie-element/multiple-choice-controller@1.6.7"
286
+ },
287
+ {
288
+ "type": "fix",
289
+ "scope": null,
290
+ "subject": "null choices were throwing 'choices.map is not a function' error.",
291
+ "merge": null,
292
+ "header": "fix: null choices were throwing 'choices.map is not a function' error.",
293
+ "body": null,
294
+ "footer": null,
295
+ "notes": [],
296
+ "hash": "54d0c8ccc7594665b7a8736d2497119f5d8c2533",
297
+ "gitTags": "",
298
+ "committerDate": "2019-08-21 13:55:48 +0300",
299
+ "isTagged": true,
300
+ "tag": "@pie-element/multiple-choice-controller@1.6.12"
301
+ },
302
+ {
303
+ "type": "feat",
304
+ "scope": null,
305
+ "subject": "Session null/empty check.",
306
+ "merge": null,
307
+ "header": "feat: Session null/empty check.",
308
+ "body": "Check for each interaction if: has outcome function, outcome function returns { score: 0, empty: true } if session null/empty/undefined, everywhere where session is used we handle if session is null/empty/undefined and test each function that uses session. [match-list, match, math-inline, multiple-choice, number-line, placement-ordering, point-intercept, select-text, text-entry]",
309
+ "footer": null,
310
+ "notes": [],
311
+ "hash": "f24dc8bfe6761d0c7bacf674f5ec30068bfd03d8",
312
+ "gitTags": "",
313
+ "committerDate": "2019-08-27 09:02:11 +0300",
314
+ "isTagged": true,
315
+ "tag": "@pie-element/multiple-choice-controller@1.7.0"
316
+ },
317
+ {
318
+ "type": "fix",
319
+ "scope": null,
320
+ "subject": "bump pie-lib/controller-utils",
321
+ "merge": null,
322
+ "header": "fix: bump pie-lib/controller-utils",
323
+ "body": null,
324
+ "footer": null,
325
+ "notes": [],
326
+ "hash": "ba3de006afa1ddaa582a531779be766c9715f64c",
327
+ "gitTags": "",
328
+ "committerDate": "2019-08-30 23:15:07 +0300",
329
+ "isTagged": true,
330
+ "tag": "@pie-element/multiple-choice-controller@1.8.0"
331
+ },
332
+ {
333
+ "type": "feat",
334
+ "scope": null,
335
+ "subject": "make use of updateSession callback",
336
+ "merge": null,
337
+ "header": "feat: make use of updateSession callback",
338
+ "body": null,
339
+ "footer": null,
340
+ "notes": [],
341
+ "hash": "c82de8804012bf1755430187426685d6c3eda329",
342
+ "gitTags": "",
343
+ "committerDate": "2019-08-22 15:54:34 +0100",
344
+ "isTagged": true,
345
+ "tag": "@pie-element/multiple-choice-controller@1.8.0"
346
+ },
347
+ {
348
+ "type": "fix",
349
+ "scope": null,
350
+ "subject": "Show Correct Answer was not working properly: replaced allowFeedback (used to send data to pie-ui) with feedbackEnabled (can be changed in settings panel).",
351
+ "merge": null,
352
+ "header": "fix: Show Correct Answer was not working properly: replaced allowFeedback (used to send data to pie-ui) with feedbackEnabled (can be changed in settings panel).",
353
+ "body": null,
354
+ "footer": null,
355
+ "notes": [],
356
+ "hash": "494bf3a471a90e704cbb5ffdb9f44a198646f276",
357
+ "gitTags": "",
358
+ "committerDate": "2019-09-27 09:22:59 +0300",
359
+ "isTagged": true,
360
+ "tag": "@pie-element/multiple-choice-controller@2.1.0"
361
+ },
362
+ {
363
+ "type": "feat",
364
+ "scope": "multiple-choice",
365
+ "subject": "model based prompt",
366
+ "merge": null,
367
+ "header": "feat(multiple-choice): model based prompt",
368
+ "body": null,
369
+ "footer": null,
370
+ "notes": [],
371
+ "hash": "d90c1a1c83f1efb2c941016812f7296f90ba1e57",
372
+ "gitTags": "",
373
+ "committerDate": "2019-09-25 18:24:54 +0300",
374
+ "isTagged": true,
375
+ "tag": "@pie-element/multiple-choice-controller@2.1.0"
376
+ },
377
+ {
378
+ "type": "fix",
379
+ "scope": null,
380
+ "subject": "bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
381
+ "merge": null,
382
+ "header": "fix: bump @pie-lib/controller-utils@^0.2.1 [ch4723]",
383
+ "body": null,
384
+ "footer": null,
385
+ "notes": [],
386
+ "hash": "0a33d688d6d9e5f239daba982bfbdeebb10ba4ab",
387
+ "gitTags": "",
388
+ "committerDate": "2019-10-11 12:38:26 +0100",
389
+ "isTagged": true,
390
+ "tag": "@pie-element/multiple-choice-controller@3.0.1"
391
+ },
392
+ {
393
+ "type": "fix",
394
+ "scope": null,
395
+ "subject": "bump @pie-lib/controller-utils@^0.2.2",
396
+ "merge": null,
397
+ "header": "fix: bump @pie-lib/controller-utils@^0.2.2",
398
+ "body": null,
399
+ "footer": null,
400
+ "notes": [],
401
+ "hash": "edae61cd4f686b2e1611cf0cad710112177fff2e",
402
+ "gitTags": "",
403
+ "committerDate": "2019-10-15 12:11:16 +0100",
404
+ "isTagged": true,
405
+ "tag": "@pie-element/multiple-choice-controller@3.0.2"
406
+ },
407
+ {
408
+ "type": "fix",
409
+ "scope": null,
410
+ "subject": "ch2766 fix unresolved promise (#366)",
411
+ "merge": null,
412
+ "header": "fix: ch2766 fix unresolved promise (#366)",
413
+ "body": "* fix: resolve null when instructor is not role\n\n* chore: typo\n\n* chore: correct response resolve, match interaction\n\n* chore: correct response unresolved\n\n* chore: categorize resolve correct response\n\n* fix: createCorrectResponseSession unresolved promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: createCorrectResponseSession resolve promise\n\n* fix: ch2776 resolve createCorrectResponse promise",
414
+ "footer": "* fix: Fixed createCorrectResponseSession and added tests for it. (#365)",
415
+ "notes": [],
416
+ "hash": "9057b7fd08e4f5b07e953a5acd053e1945df57f2",
417
+ "gitTags": " (origin/develop, origin/HEAD)",
418
+ "committerDate": "2019-10-16 15:50:55 -0400",
419
+ "isTagged": true,
420
+ "tag": "@pie-element/multiple-choice-controller@3.0.4"
421
+ },
422
+ {
423
+ "type": "fix",
424
+ "scope": null,
425
+ "subject": "feedbackEnabled should not be the property that decides whether the choice correctness is displayed or not.",
426
+ "merge": null,
427
+ "header": "fix: feedbackEnabled should not be the property that decides whether the choice correctness is displayed or not.",
428
+ "body": null,
429
+ "footer": null,
430
+ "notes": [],
431
+ "hash": "b69adfd687b185b39f030e5e5060d2219c8491d6",
432
+ "gitTags": "",
433
+ "committerDate": "2019-11-04 17:50:07 +0200",
434
+ "isTagged": true,
435
+ "tag": "@pie-element/multiple-choice-controller@3.0.6"
436
+ },
437
+ {
438
+ "type": "fix",
439
+ "scope": null,
440
+ "subject": "PIE-201 - store prompts and answers in session, fix",
441
+ "merge": null,
442
+ "header": "fix: PIE-201 - store prompts and answers in session, fix",
443
+ "body": "controller-utils to use 0 as key",
444
+ "footer": null,
445
+ "notes": [],
446
+ "hash": "23802242e0bc647f929f6db4dfd4b03f0112f2fb",
447
+ "gitTags": "",
448
+ "committerDate": "2019-11-18 20:35:06 +0000",
449
+ "isTagged": true,
450
+ "tag": "@pie-element/multiple-choice-controller@3.0.7"
451
+ },
452
+ {
453
+ "type": "feat",
454
+ "scope": "normalization",
455
+ "subject": "added a choicePrefix default value in case one is not given [ch6650]",
456
+ "merge": null,
457
+ "header": "feat(normalization): added a choicePrefix default value in case one is not given [ch6650]",
458
+ "body": null,
459
+ "footer": null,
460
+ "notes": [],
461
+ "hash": "955ff4040a4d5acc24fd8d8335b3557226a22396",
462
+ "gitTags": " (origin/ch6650/multiple-choice-no-prefix)",
463
+ "committerDate": "2019-12-24 13:43:07 +0200",
464
+ "isTagged": true,
465
+ "tag": "@pie-element/multiple-choice-controller@3.1.0"
466
+ },
467
+ {
468
+ "type": "fix",
469
+ "scope": null,
470
+ "subject": "bump ui versions",
471
+ "merge": null,
472
+ "header": "fix: bump ui versions",
473
+ "body": null,
474
+ "footer": null,
475
+ "notes": [],
476
+ "hash": "5b9d99fe59c304bdd173c9336503eb558900d2a2",
477
+ "gitTags": "",
478
+ "committerDate": "2020-03-31 19:25:13 +0100",
479
+ "isTagged": true,
480
+ "tag": "@pie-element/multiple-choice-controller@3.2.0"
481
+ },
482
+ {
483
+ "type": "fix",
484
+ "scope": null,
485
+ "subject": "bump all packages to avoid tag conflict",
486
+ "merge": null,
487
+ "header": "fix: bump all packages to avoid tag conflict",
488
+ "body": null,
489
+ "footer": null,
490
+ "notes": [],
491
+ "hash": "d9ec9a8689f0a391594b5e2f4ea958c6dc9f6d7b",
492
+ "gitTags": " (develop)",
493
+ "committerDate": "2020-04-10 20:01:37 +0100",
494
+ "isTagged": true,
495
+ "tag": "@pie-element/multiple-choice-controller@3.2.1"
496
+ },
497
+ {
498
+ "type": "fix",
499
+ "scope": null,
500
+ "subject": "PD-127: MC Choice Prefix Issue (Set 'letters' as default choicePrefix)",
501
+ "merge": null,
502
+ "header": "fix: PD-127: MC Choice Prefix Issue (Set 'letters' as default choicePrefix)",
503
+ "body": null,
504
+ "footer": null,
505
+ "notes": [],
506
+ "hash": "27cd7adf01276ecd09094c4d7808807590a8c00a",
507
+ "gitTags": "",
508
+ "committerDate": "2020-04-13 09:47:09 +0300",
509
+ "isTagged": true,
510
+ "tag": "@pie-element/multiple-choice-controller@3.2.2"
511
+ },
512
+ {
513
+ "type": "fix",
514
+ "scope": null,
515
+ "subject": "bump ui/lib versions",
516
+ "merge": null,
517
+ "header": "fix: bump ui/lib versions",
518
+ "body": null,
519
+ "footer": null,
520
+ "notes": [],
521
+ "hash": "3edb2321ebaefcaee70c3642aa6da8a50e8a99e5",
522
+ "gitTags": "",
523
+ "committerDate": "2020-04-14 15:36:44 +0100",
524
+ "isTagged": true,
525
+ "tag": "@pie-element/multiple-choice-controller@3.2.3"
526
+ }
527
+ ]