@pie-element/ebsr 6.6.3-next.414 → 6.6.3-next.430

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 (622) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/configure/CHANGELOG.md +25 -0
  3. package/configure/package.json +2 -2
  4. package/controller/CHANGELOG.md +17 -0
  5. package/controller/package.json +1 -1
  6. package/package.json +3 -3
  7. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +0 -1972
  8. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +0 -1563
  9. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
  10. package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
  11. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -1140
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -103
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -193
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -471
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -20
  21. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
  22. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -714
  23. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -18
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -242
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -36
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
  30. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -311
  31. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -245
  32. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -52
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -326
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -266
  38. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -284
  39. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
  40. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -174
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -151
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -97
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -341
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -35
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
  50. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
  51. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1498
  52. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
  53. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
  54. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
  55. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  56. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -176
  57. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  58. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -391
  59. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  60. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  61. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  62. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -194
  63. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  64. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  65. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  66. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -184
  67. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -44
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -152
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -195
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -144
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -120
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -187
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -109
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -111
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -95
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -274
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -136
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -422
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -113
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -206
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -190
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -91
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -301
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -54
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -88
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
  140. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  142. package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -30
  143. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
  144. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -513
  145. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
  146. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
  147. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -81
  148. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
  149. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -150
  150. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
  151. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
  152. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
  153. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
  154. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  155. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -60
  156. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -73
  157. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
  158. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3162
  159. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1441
  160. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
  161. package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
  162. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
  163. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -698
  164. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  165. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -213
  166. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  167. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  168. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  169. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -248
  170. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  171. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -141
  172. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  173. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -219
  174. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  175. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -141
  176. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  177. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -133
  178. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  179. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -136
  180. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  181. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -352
  182. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  183. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -338
  184. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  185. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -445
  186. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  187. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -105
  188. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  189. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -100
  190. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  191. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -229
  192. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  193. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  194. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  195. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -53
  196. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  197. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
  198. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  199. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -277
  200. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  201. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
  202. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  203. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
  204. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  205. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  206. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  207. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -443
  208. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  209. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -167
  210. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  211. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -129
  212. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  213. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
  214. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  215. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -263
  216. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  217. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
  218. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  219. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -164
  220. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  221. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -350
  222. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  223. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  224. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  225. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -405
  226. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  227. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  228. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  229. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -51
  230. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
  231. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
  232. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
  233. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
  234. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
  235. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
  236. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
  237. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
  238. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
  239. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
  240. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
  241. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
  242. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
  243. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
  244. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
  245. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
  246. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
  247. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
  248. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
  249. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
  250. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -584
  251. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -128
  252. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  253. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  254. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -166
  255. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -62
  256. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -180
  257. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
  258. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -112
  259. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -113
  260. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -289
  261. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -281
  262. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
  263. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
  264. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  265. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -160
  266. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
  267. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
  268. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
  269. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -244
  270. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
  271. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
  272. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
  273. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -390
  274. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
  275. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -103
  276. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
  277. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -217
  278. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
  279. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -86
  280. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -313
  281. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
  282. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -369
  283. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  284. package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
  285. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1412
  286. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -874
  287. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
  288. package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
  289. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -123
  290. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
  291. package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -75
  292. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
  293. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -367
  294. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
  295. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -30
  296. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
  297. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
  298. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
  299. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
  300. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
  301. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -46
  302. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
  303. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -26
  304. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
  305. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
  306. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
  307. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -16
  308. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
  309. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -35
  310. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
  311. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -31
  312. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
  313. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -139
  314. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
  315. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -198
  316. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
  317. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -50
  318. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
  319. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
  320. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
  321. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
  322. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
  323. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
  324. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
  325. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -69
  326. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
  327. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -23
  328. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
  329. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -17
  330. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
  331. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -38
  332. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
  333. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
  334. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
  335. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
  336. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
  337. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -126
  338. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
  339. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
  340. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
  341. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -200
  342. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
  343. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
  344. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
  345. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -24
  346. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
  347. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -255
  348. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
  349. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -216
  350. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
  351. package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
  352. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -53
  353. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
  354. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -279
  355. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
  356. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
  357. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
  358. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -27
  359. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -18
  360. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
  361. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
  362. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -27
  363. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
  364. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -116
  365. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -265
  366. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
  367. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
  368. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
  369. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
  370. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -60
  371. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
  372. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -9
  373. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -29
  374. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
  375. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
  376. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
  377. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
  378. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
  379. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
  380. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
  381. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
  382. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -139
  383. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -657
  384. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -412
  385. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  386. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  387. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  388. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -312
  389. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  390. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  391. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  392. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -119
  393. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  394. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -99
  395. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  396. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -239
  397. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  398. package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
  399. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  400. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  401. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  402. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  403. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  404. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  405. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  406. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  407. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  408. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  409. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -203
  410. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -847
  411. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -742
  412. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
  413. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
  414. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
  415. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -386
  416. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
  417. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -259
  418. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
  419. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -163
  420. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
  421. package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -36
  422. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
  423. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -311
  424. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -185
  425. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -101
  426. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  427. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -616
  428. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  429. package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
  430. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -144
  431. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  432. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  433. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  434. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -154
  435. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  436. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  437. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  438. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -98
  439. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  440. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -99
  441. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  442. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  443. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  444. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -129
  445. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  446. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -133
  447. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  448. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  449. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  450. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  451. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  452. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -154
  453. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  454. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -194
  455. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  456. package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
  457. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  458. package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  459. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  460. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  461. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  462. package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  463. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  464. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  465. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -73
  466. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  467. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  468. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  469. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
  470. package/configure/node_modules/immutable/LICENSE +0 -21
  471. package/configure/node_modules/immutable/README.md +0 -657
  472. package/configure/node_modules/immutable/dist/immutable-nonambient.d.ts +0 -5607
  473. package/configure/node_modules/immutable/dist/immutable.d.ts +0 -5611
  474. package/configure/node_modules/immutable/dist/immutable.es.js +0 -5893
  475. package/configure/node_modules/immutable/dist/immutable.js +0 -5948
  476. package/configure/node_modules/immutable/dist/immutable.js.flow +0 -2340
  477. package/configure/node_modules/immutable/dist/immutable.min.js +0 -55
  478. package/configure/node_modules/immutable/package.json +0 -41
  479. package/configure/node_modules/slate-dev-environment/Readme.md +0 -1
  480. package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +0 -287
  481. package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +0 -1
  482. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +0 -264
  483. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +0 -1
  484. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +0 -282
  485. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +0 -1
  486. package/configure/node_modules/slate-dev-environment/package.json +0 -21
  487. package/configure/node_modules/slate-edit-list/CHANGELOG.md +0 -124
  488. package/configure/node_modules/slate-edit-list/LICENSE +0 -201
  489. package/configure/node_modules/slate-edit-list/README.md +0 -159
  490. package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js +0 -73
  491. package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js.flow +0 -88
  492. package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js +0 -70
  493. package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js.flow +0 -77
  494. package/configure/node_modules/slate-edit-list/dist/changes/index.js +0 -34
  495. package/configure/node_modules/slate-edit-list/dist/changes/index.js.flow +0 -13
  496. package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js +0 -27
  497. package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js.flow +0 -26
  498. package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js +0 -52
  499. package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js.flow +0 -46
  500. package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js +0 -67
  501. package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js.flow +0 -67
  502. package/configure/node_modules/slate-edit-list/dist/core.js +0 -80
  503. package/configure/node_modules/slate-edit-list/dist/core.js.flow +0 -76
  504. package/configure/node_modules/slate-edit-list/dist/handlers/index.js +0 -24
  505. package/configure/node_modules/slate-edit-list/dist/handlers/index.js.flow +0 -5
  506. package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js +0 -45
  507. package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js.flow +0 -44
  508. package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js +0 -54
  509. package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js.flow +0 -54
  510. package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js +0 -39
  511. package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js.flow +0 -34
  512. package/configure/node_modules/slate-edit-list/dist/index.js +0 -58
  513. package/configure/node_modules/slate-edit-list/dist/index.js.flow +0 -45
  514. package/configure/node_modules/slate-edit-list/dist/options.js +0 -34
  515. package/configure/node_modules/slate-edit-list/dist/options.js.flow +0 -26
  516. package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js +0 -24
  517. package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js.flow +0 -20
  518. package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js +0 -31
  519. package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js.flow +0 -21
  520. package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js +0 -34
  521. package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js.flow +0 -24
  522. package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js +0 -60
  523. package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js.flow +0 -51
  524. package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js +0 -25
  525. package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js.flow +0 -16
  526. package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js +0 -39
  527. package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js.flow +0 -29
  528. package/configure/node_modules/slate-edit-list/dist/utils/index.js +0 -49
  529. package/configure/node_modules/slate-edit-list/dist/utils/index.js.flow +0 -19
  530. package/configure/node_modules/slate-edit-list/dist/utils/isList.js +0 -15
  531. package/configure/node_modules/slate-edit-list/dist/utils/isList.js.flow +0 -13
  532. package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js +0 -22
  533. package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js.flow +0 -14
  534. package/configure/node_modules/slate-edit-list/dist/validation/index.js +0 -19
  535. package/configure/node_modules/slate-edit-list/dist/validation/index.js.flow +0 -4
  536. package/configure/node_modules/slate-edit-list/dist/validation/schema.js +0 -83
  537. package/configure/node_modules/slate-edit-list/dist/validation/schema.js.flow +0 -81
  538. package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js +0 -61
  539. package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js.flow +0 -61
  540. package/configure/node_modules/slate-edit-list/package.json +0 -67
  541. package/configure/node_modules/slate-edit-table/CHANGELOG.md +0 -192
  542. package/configure/node_modules/slate-edit-table/LICENSE +0 -201
  543. package/configure/node_modules/slate-edit-table/README.md +0 -269
  544. package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js +0 -29
  545. package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js.flow +0 -26
  546. package/configure/node_modules/slate-edit-table/dist/changes/index.js +0 -69
  547. package/configure/node_modules/slate-edit-table/dist/changes/index.js.flow +0 -27
  548. package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js +0 -43
  549. package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js.flow +0 -46
  550. package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js +0 -36
  551. package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js.flow +0 -35
  552. package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js +0 -29
  553. package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js.flow +0 -27
  554. package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js +0 -32
  555. package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js.flow +0 -31
  556. package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js +0 -84
  557. package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js.flow +0 -80
  558. package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js +0 -36
  559. package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js.flow +0 -28
  560. package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js +0 -52
  561. package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js.flow +0 -40
  562. package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js +0 -36
  563. package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js.flow +0 -27
  564. package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js +0 -41
  565. package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js.flow +0 -30
  566. package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js +0 -26
  567. package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js.flow +0 -17
  568. package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js +0 -56
  569. package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js.flow +0 -54
  570. package/configure/node_modules/slate-edit-table/dist/core.js +0 -88
  571. package/configure/node_modules/slate-edit-table/dist/core.js.flow +0 -94
  572. package/configure/node_modules/slate-edit-table/dist/handlers/index.js +0 -39
  573. package/configure/node_modules/slate-edit-table/dist/handlers/index.js.flow +0 -8
  574. package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js +0 -82
  575. package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js.flow +0 -87
  576. package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js +0 -34
  577. package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js.flow +0 -37
  578. package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js +0 -71
  579. package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js.flow +0 -56
  580. package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js +0 -35
  581. package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js.flow +0 -38
  582. package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js +0 -56
  583. package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js.flow +0 -51
  584. package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js +0 -38
  585. package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js.flow +0 -41
  586. package/configure/node_modules/slate-edit-table/dist/index.js +0 -36
  587. package/configure/node_modules/slate-edit-table/dist/index.js.flow +0 -27
  588. package/configure/node_modules/slate-edit-table/dist/options.js +0 -61
  589. package/configure/node_modules/slate-edit-table/dist/options.js.flow +0 -42
  590. package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js +0 -306
  591. package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js.flow +0 -211
  592. package/configure/node_modules/slate-edit-table/dist/utils/createCell.js +0 -30
  593. package/configure/node_modules/slate-edit-table/dist/utils/createCell.js.flow +0 -26
  594. package/configure/node_modules/slate-edit-table/dist/utils/createRow.js +0 -30
  595. package/configure/node_modules/slate-edit-table/dist/utils/createRow.js.flow +0 -28
  596. package/configure/node_modules/slate-edit-table/dist/utils/createTable.js +0 -30
  597. package/configure/node_modules/slate-edit-table/dist/utils/createTable.js.flow +0 -33
  598. package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js +0 -21
  599. package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js.flow +0 -22
  600. package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js +0 -22
  601. package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js.flow +0 -19
  602. package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js +0 -20
  603. package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js.flow +0 -19
  604. package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js +0 -24
  605. package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js.flow +0 -19
  606. package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js +0 -26
  607. package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js.flow +0 -21
  608. package/configure/node_modules/slate-edit-table/dist/utils/getRow.js +0 -24
  609. package/configure/node_modules/slate-edit-table/dist/utils/getRow.js.flow +0 -19
  610. package/configure/node_modules/slate-edit-table/dist/utils/index.js +0 -64
  611. package/configure/node_modules/slate-edit-table/dist/utils/index.js.flow +0 -25
  612. package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js +0 -34
  613. package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js.flow +0 -27
  614. package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js +0 -30
  615. package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js.flow +0 -23
  616. package/configure/node_modules/slate-edit-table/dist/validation/index.js +0 -19
  617. package/configure/node_modules/slate-edit-table/dist/validation/index.js.flow +0 -4
  618. package/configure/node_modules/slate-edit-table/dist/validation/schema.js +0 -101
  619. package/configure/node_modules/slate-edit-table/dist/validation/schema.js.flow +0 -98
  620. package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js +0 -56
  621. package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js.flow +0 -49
  622. package/configure/node_modules/slate-edit-table/package.json +0 -69
@@ -1,18 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = void 0;
7
- var _default = {
8
- promptEnabled: true,
9
- rationaleEnabled: true,
10
- accessibilityLabelsEnabled: false,
11
- teacherInstructionsEnabled: true,
12
- studentInstructionsEnabled: true,
13
- choicePrefix: 'letters',
14
- choicesLayout: 'vertical',
15
- gridColumns: '2'
16
- };
17
- exports["default"] = _default;
18
- //# sourceMappingURL=defaults.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/defaults.js"],"names":["promptEnabled","rationaleEnabled","accessibilityLabelsEnabled","teacherInstructionsEnabled","studentInstructionsEnabled","choicePrefix","choicesLayout","gridColumns"],"mappings":";;;;;;eAAe;AACbA,EAAAA,aAAa,EAAE,IADF;AAEbC,EAAAA,gBAAgB,EAAE,IAFL;AAGbC,EAAAA,0BAA0B,EAAE,KAHf;AAIbC,EAAAA,0BAA0B,EAAE,IAJf;AAKbC,EAAAA,0BAA0B,EAAE,IALf;AAMbC,EAAAA,YAAY,EAAE,SAND;AAObC,EAAAA,aAAa,EAAE,UAPF;AAQbC,EAAAA,WAAW,EAAE;AARA,C","sourcesContent":["export default {\n promptEnabled: true,\n rationaleEnabled: true,\n accessibilityLabelsEnabled: false,\n teacherInstructionsEnabled: true,\n studentInstructionsEnabled: true,\n choicePrefix: 'letters',\n choicesLayout: 'vertical',\n gridColumns: '2'\n};\n"],"file":"defaults.js"}
@@ -1,242 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.createDefaultModel = createDefaultModel;
9
- exports.model = model;
10
- exports.outcome = outcome;
11
- exports.createCorrectResponseSession = exports.getScore = exports.normalize = void 0;
12
-
13
- var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
14
-
15
- var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
16
-
17
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
-
19
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
20
-
21
- var _utils = require("./utils");
22
-
23
- var _defaults = _interopRequireDefault(require("./defaults"));
24
-
25
- var _controllerUtils = require("@pie-lib/controller-utils");
26
-
27
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
28
-
29
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
30
-
31
- var prepareChoice = function prepareChoice(model, env, defaultFeedback) {
32
- return function (choice) {
33
- var _ref = env || {},
34
- role = _ref.role,
35
- mode = _ref.mode;
36
-
37
- var out = {
38
- label: choice.label,
39
- value: choice.value
40
- };
41
-
42
- if (model.accessibilityLabelsEnabled) {
43
- out.accessibility = (0, _utils.parseHTML)(choice.accessibility).textContent || choice.value;
44
- }
45
-
46
- if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {
47
- out.rationale = model.rationaleEnabled ? choice.rationale : null;
48
- } else {
49
- out.rationale = null;
50
- }
51
-
52
- if (mode === 'evaluate') {
53
- out.correct = !!choice.correct;
54
-
55
- if (model.feedbackEnabled) {
56
- var feedbackType = choice.feedback && choice.feedback.type || 'none';
57
-
58
- if (feedbackType === 'default') {
59
- out.feedback = defaultFeedback[choice.correct ? 'correct' : 'incorrect'];
60
- } else if (feedbackType === 'custom') {
61
- out.feedback = choice.feedback.value;
62
- }
63
- }
64
- }
65
-
66
- return out;
67
- };
68
- };
69
-
70
- function createDefaultModel() {
71
- var model = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
72
- return new Promise(function (resolve) {
73
- return resolve(_objectSpread(_objectSpread({}, _defaults["default"]), model));
74
- });
75
- }
76
-
77
- var normalize = function normalize(question) {
78
- return _objectSpread(_objectSpread({}, _defaults["default"]), question);
79
- };
80
- /**
81
- *
82
- * @param {*} question
83
- * @param {*} session
84
- * @param {*} env
85
- * @param {*} updateSession - optional - a function that will set the properties passed into it on the session.
86
- */
87
-
88
-
89
- exports.normalize = normalize;
90
-
91
- function model(_x, _x2, _x3, _x4) {
92
- return _model.apply(this, arguments);
93
- }
94
-
95
- function _model() {
96
- _model = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(question, session, env, updateSession) {
97
- var normalizedQuestion, defaultFeedback, choices, lockChoiceOrder, layout, out, _ref3, role, mode;
98
-
99
- return _regenerator["default"].wrap(function _callee$(_context) {
100
- while (1) {
101
- switch (_context.prev = _context.next) {
102
- case 0:
103
- normalizedQuestion = normalize(question);
104
- defaultFeedback = Object.assign({
105
- correct: 'Correct',
106
- incorrect: 'Incorrect'
107
- }, normalizedQuestion.defaultFeedback);
108
- choices = normalizedQuestion.choices.map(prepareChoice(normalizedQuestion, env, defaultFeedback));
109
- lockChoiceOrder = (0, _controllerUtils.lockChoices)(normalizedQuestion, session, env);
110
-
111
- if (lockChoiceOrder) {
112
- _context.next = 8;
113
- break;
114
- }
115
-
116
- _context.next = 7;
117
- return (0, _controllerUtils.getShuffledChoices)(choices, session, updateSession, 'value');
118
-
119
- case 7:
120
- choices = _context.sent;
121
-
122
- case 8:
123
- // This is used for offering support for old models which have the property verticalMode
124
- // Same thing is set in authoring : packages/multiple-choice/configure/src/main.jsx - componentDidMount
125
- layout = '';
126
-
127
- if (normalizedQuestion.verticalMode !== undefined) {
128
- layout = normalizedQuestion.verticalMode === false ? 'horizontal' : 'vertical';
129
- }
130
-
131
- out = {
132
- disabled: env.mode !== 'gather',
133
- mode: env.mode,
134
- prompt: normalizedQuestion.promptEnabled ? normalizedQuestion.prompt : null,
135
- choicesLayout: normalizedQuestion.choicesLayout || layout,
136
- gridColumns: normalizedQuestion.gridColumns,
137
- choiceMode: normalizedQuestion.choiceMode,
138
- keyMode: normalizedQuestion.choicePrefix,
139
- choices: choices,
140
- responseCorrect: env.mode === 'evaluate' ? (0, _utils.isResponseCorrect)(normalizedQuestion, session) : undefined
141
- };
142
- _ref3 = env || {}, role = _ref3.role, mode = _ref3.mode;
143
-
144
- if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {
145
- out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled ? normalizedQuestion.teacherInstructions : null;
146
- } else {
147
- out.teacherInstructions = null;
148
- }
149
-
150
- return _context.abrupt("return", out);
151
-
152
- case 14:
153
- case "end":
154
- return _context.stop();
155
- }
156
- }
157
- }, _callee);
158
- }));
159
- return _model.apply(this, arguments);
160
- }
161
-
162
- var getScore = function getScore(config, session) {
163
- if (!session || (0, _isEmpty["default"])(session)) {
164
- return 0;
165
- }
166
-
167
- var selectedChoices = session.value || [];
168
- var correctChoices = (config.choices || []).filter(function (ch) {
169
- return ch.correct;
170
- });
171
- var score = selectedChoices.reduce(function (acc, selectedChoice) {
172
- return acc + (correctChoices.find(function (ch) {
173
- return ch.value === selectedChoice;
174
- }) ? 1 : 0);
175
- }, 0);
176
-
177
- if (correctChoices.length < selectedChoices.length) {
178
- score -= selectedChoices.length - correctChoices.length;
179
-
180
- if (score < 0) {
181
- score = 0;
182
- }
183
- }
184
-
185
- var str = correctChoices.length ? score / correctChoices.length : 0;
186
- return parseFloat(str.toFixed(2));
187
- };
188
- /**
189
- *
190
- * The score is partial by default for checkbox mode, allOrNothing for radio mode.
191
- * To disable partial scoring for checkbox mode you either set model.partialScoring = false or env.partialScoring = false. the value in `env` will
192
- * override the value in `model`.
193
- * @param {Object} model - the main model
194
- * @param {*} session
195
- * @param {Object} env
196
- */
197
-
198
-
199
- exports.getScore = getScore;
200
-
201
- function outcome(model, session, env) {
202
- return new Promise(function (resolve) {
203
- if (!session || (0, _isEmpty["default"])(session)) {
204
- resolve({
205
- score: 0,
206
- empty: true
207
- });
208
- } else {
209
- var partialScoringEnabled = _controllerUtils.partialScoring.enabled(model, env) && model.choiceMode !== 'radio';
210
- var score = getScore(model, session);
211
- resolve({
212
- score: partialScoringEnabled ? score : score === 1 ? 1 : 0,
213
- empty: false
214
- });
215
- }
216
- });
217
- }
218
-
219
- var createCorrectResponseSession = function createCorrectResponseSession(question, env) {
220
- return new Promise(function (resolve) {
221
- if (env.mode !== 'evaluate' && env.role === 'instructor') {
222
- var _ref2 = question || {
223
- choices: []
224
- },
225
- choices = _ref2.choices;
226
-
227
- resolve({
228
- id: '1',
229
- value: choices.filter(function (c) {
230
- return c.correct;
231
- }).map(function (c) {
232
- return c.value;
233
- })
234
- });
235
- } else {
236
- resolve(null);
237
- }
238
- });
239
- };
240
-
241
- exports.createCorrectResponseSession = createCorrectResponseSession;
242
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["prepareChoice","model","env","defaultFeedback","choice","role","mode","out","label","value","accessibilityLabelsEnabled","accessibility","textContent","rationale","rationaleEnabled","correct","feedbackEnabled","feedbackType","feedback","type","createDefaultModel","Promise","resolve","defaults","normalize","question","session","updateSession","normalizedQuestion","Object","assign","incorrect","choices","map","lockChoiceOrder","layout","verticalMode","undefined","disabled","prompt","promptEnabled","choicesLayout","gridColumns","choiceMode","keyMode","choicePrefix","responseCorrect","teacherInstructions","teacherInstructionsEnabled","getScore","config","selectedChoices","correctChoices","filter","ch","score","reduce","acc","selectedChoice","find","length","str","parseFloat","toFixed","outcome","empty","partialScoringEnabled","partialScoring","enabled","createCorrectResponseSession","id","c"],"mappings":";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,KAPD,MAOO;AACLa,MAAAA,OAAO,CAAC,IAAD,CAAP;AACD;AACF,GAXM,CAAP;AAYD,CAbM","sourcesContent":["/* eslint-disable no-console */\nimport isEmpty from 'lodash/isEmpty';\nimport {isResponseCorrect, parseHTML} from './utils';\nimport defaults from './defaults';\nimport { lockChoices, partialScoring, getShuffledChoices } from '@pie-lib/controller-utils';\n\nconst prepareChoice = (model, env, defaultFeedback) => choice => {\n const { role, mode } = env || {};\n const out = {\n label: choice.label,\n value: choice.value,\n };\n\n if(model.accessibilityLabelsEnabled){\n out.accessibility = parseHTML(choice.accessibility).textContent || choice.value;\n }\n\n if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {\n out.rationale = model.rationaleEnabled ? choice.rationale : null;\n } else {\n out.rationale = null;\n }\n\n if (mode === 'evaluate') {\n out.correct = !!choice.correct;\n\n if (model.feedbackEnabled) {\n const feedbackType = (choice.feedback && choice.feedback.type) || 'none';\n\n if (feedbackType === 'default') {\n out.feedback = defaultFeedback[choice.correct ? 'correct' : 'incorrect'];\n } else if (feedbackType === 'custom') {\n out.feedback = choice.feedback.value;\n }\n }\n }\n\n return out;\n};\n\nexport function createDefaultModel(model = {}) {\n return new Promise(resolve => resolve({ ...defaults, ...model }));\n}\n\nexport const normalize = question => ({ ...defaults, ...question });\n\n/**\n *\n * @param {*} question\n * @param {*} session\n * @param {*} env\n * @param {*} updateSession - optional - a function that will set the properties passed into it on the session.\n */\nexport async function model(question, session, env, updateSession) {\n const normalizedQuestion = normalize(question);\n const defaultFeedback = Object.assign(\n { correct: 'Correct', incorrect: 'Incorrect' },\n normalizedQuestion.defaultFeedback\n );\n\n let choices = normalizedQuestion.choices.map(\n prepareChoice(normalizedQuestion, env, defaultFeedback)\n );\n\n const lockChoiceOrder = lockChoices(normalizedQuestion, session, env);\n\n if (!lockChoiceOrder) {\n choices = await getShuffledChoices(\n choices,\n session,\n updateSession,\n 'value'\n );\n }\n\n // This is used for offering support for old models which have the property verticalMode\n // Same thing is set in authoring : packages/multiple-choice/configure/src/main.jsx - componentDidMount\n let layout = '';\n if(normalizedQuestion.verticalMode !== undefined) {\n layout = normalizedQuestion.verticalMode === false ? 'horizontal': 'vertical';\n }\n\n const out = {\n disabled: env.mode !== 'gather',\n mode: env.mode,\n prompt: normalizedQuestion.promptEnabled ? normalizedQuestion.prompt : null,\n choicesLayout: normalizedQuestion.choicesLayout || layout,\n gridColumns: normalizedQuestion.gridColumns,\n choiceMode: normalizedQuestion.choiceMode,\n keyMode: normalizedQuestion.choicePrefix,\n choices,\n responseCorrect:\n env.mode === 'evaluate' ? isResponseCorrect(normalizedQuestion, session) : undefined\n };\n\n const { role, mode } = env || {};\n\n if (role === 'instructor' && (mode === 'view' || mode === 'evaluate')) {\n out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled\n ? normalizedQuestion.teacherInstructions\n : null;\n } else {\n out.teacherInstructions = null;\n }\n\n return out;\n}\n\n\nexport const getScore = (config, session) => {\n if (!session || isEmpty(session)) {\n return 0;\n }\n\n const selectedChoices = session.value || [];\n const correctChoices = (config.choices || []).filter(ch => ch.correct);\n\n let score = selectedChoices.reduce((acc, selectedChoice) =>\n acc + (correctChoices.find(ch => ch.value === selectedChoice) ? 1 : 0), 0);\n\n if (correctChoices.length < selectedChoices.length) {\n score -= selectedChoices.length - correctChoices.length;\n\n if (score < 0) {\n score = 0;\n }\n }\n\n const str = correctChoices.length ? score / correctChoices.length : 0;\n\n return parseFloat(str.toFixed(2));\n};\n\n/**\n *\n * The score is partial by default for checkbox mode, allOrNothing for radio mode.\n * To disable partial scoring for checkbox mode you either set model.partialScoring = false or env.partialScoring = false. the value in `env` will\n * override the value in `model`.\n * @param {Object} model - the main model\n * @param {*} session\n * @param {Object} env\n */\nexport function outcome(model, session, env) {\n return new Promise(resolve => {\n if (!session || isEmpty(session)) {\n resolve({ score: 0, empty: true });\n } else {\n const partialScoringEnabled =\n partialScoring.enabled(model, env) && model.choiceMode !== 'radio';\n const score = getScore(model, session);\n\n resolve({ score: partialScoringEnabled ? score : score === 1 ? 1 : 0, empty: false });\n }\n });\n}\n\nexport const createCorrectResponseSession = (question, env) => {\n return new Promise(resolve => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n const { choices } = question || { choices: [] };\n\n resolve({\n id: '1',\n value: choices.filter(c => c.correct).map(c => c.value)\n });\n } else {\n resolve(null);\n }\n });\n};\n"],"file":"index.js"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.parseHTML = exports.isResponseCorrect = exports.getCorrectResponse = void 0;
9
-
10
- var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
11
-
12
- var getCorrectResponse = function getCorrectResponse(choices) {
13
- return choices.filter(function (c) {
14
- return c.correct;
15
- }).map(function (c) {
16
- return c.value;
17
- }).sort();
18
- };
19
-
20
- exports.getCorrectResponse = getCorrectResponse;
21
-
22
- var isResponseCorrect = function isResponseCorrect(question, session) {
23
- var correctResponse = getCorrectResponse(question.choices);
24
- return session && (0, _isEqual["default"])((session.value || []).sort(), correctResponse);
25
- };
26
-
27
- exports.isResponseCorrect = isResponseCorrect;
28
-
29
- var parseHTML = function parseHTML(html) {
30
- var template = document.createElement('template');
31
- template.innerHTML = html;
32
- return template.content;
33
- };
34
-
35
- exports.parseHTML = parseHTML;
36
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/utils.js"],"names":["getCorrectResponse","choices","filter","c","correct","map","value","sort","isResponseCorrect","question","session","correctResponse","parseHTML","html","template","document","createElement","innerHTML","content"],"mappings":";;;;;;;;;AAAA;;AAEO,IAAMA,kBAAkB,GAAG,SAArBA,kBAAqB,CAACC,OAAD;AAAA,SAAaA,OAAO,CACnDC,MAD4C,CACrC,UAAAC,CAAC;AAAA,WAAIA,CAAC,CAACC,OAAN;AAAA,GADoC,EAE5CC,GAF4C,CAExC,UAAAF,CAAC;AAAA,WAAIA,CAAC,CAACG,KAAN;AAAA,GAFuC,EAG5CC,IAH4C,EAAb;AAAA,CAA3B;;;;AAKA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,CAACC,QAAD,EAAWC,OAAX,EAAuB;AACtD,MAAIC,eAAe,GAAGX,kBAAkB,CAACS,QAAQ,CAACR,OAAV,CAAxC;AACA,SAAOS,OAAO,IAAI,yBAAQ,CAACA,OAAO,CAACJ,KAAR,IAAiB,EAAlB,EAAsBC,IAAtB,EAAR,EAAsCI,eAAtC,CAAlB;AACD,CAHM;;;;AAKA,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACC,IAAD,EAAU;AACjC,MAAMC,QAAQ,GAAGC,QAAQ,CAACC,aAAT,CAAuB,UAAvB,CAAjB;AACAF,EAAAA,QAAQ,CAACG,SAAT,GAAqBJ,IAArB;AACA,SAAOC,QAAQ,CAACI,OAAhB;AACD,CAJM","sourcesContent":["import isEqual from 'lodash/isEqual';\n\nexport const getCorrectResponse = (choices) => choices\n .filter(c => c.correct)\n .map(c => c.value)\n .sort();\n\nexport const isResponseCorrect = (question, session) => {\n let correctResponse = getCorrectResponse(question.choices);\n return session && isEqual((session.value || []).sort(), correctResponse);\n};\n\nexport const parseHTML = (html) => {\n const template = document.createElement('template');\n template.innerHTML = html;\n return template.content;\n};\n"],"file":"utils.js"}
@@ -1,15 +0,0 @@
1
- {
2
- "name": "@pie-element/multiple-choice-controller",
3
- "private": true,
4
- "version": "3.4.0",
5
- "description": "",
6
- "main": "lib/index.js",
7
- "module": "src/index.js",
8
- "author": "",
9
- "license": "ISC",
10
- "dependencies": {
11
- "@pie-lib/controller-utils": "^0.2.26",
12
- "debug": "^3.1.0",
13
- "lodash": "^4.17.15"
14
- }
15
- }
@@ -1,311 +0,0 @@
1
- {
2
- "description": "Config Object for @pie-elements/multiple-choice",
3
- "additionalProperties": false,
4
- "type": "object",
5
- "properties": {
6
- "answerChoiceCount": {
7
- "description": "The number of empty choices to show in config view if no choice model is provided",
8
- "minimum": 1,
9
- "default": 4,
10
- "type": "number",
11
- "title": "answerChoiceCount"
12
- },
13
- "addChoiceButton": {
14
- "title": "ConfigureProp",
15
- "type": "object",
16
- "properties": {
17
- "settings": {
18
- "description": "Indicates if the item has to be displayed in the Settings Panel",
19
- "type": "boolean",
20
- "title": "settings"
21
- },
22
- "label": {
23
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
24
- "type": "string",
25
- "title": "label"
26
- }
27
- }
28
- },
29
- "choiceMode": {
30
- "title": "ConfigureProp",
31
- "type": "object",
32
- "properties": {
33
- "settings": {
34
- "description": "Indicates if the item has to be displayed in the Settings Panel",
35
- "type": "boolean",
36
- "title": "settings"
37
- },
38
- "label": {
39
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
40
- "type": "string",
41
- "title": "label"
42
- }
43
- }
44
- },
45
- "choicePrefix": {
46
- "title": "ConfigureProp",
47
- "type": "object",
48
- "properties": {
49
- "settings": {
50
- "description": "Indicates if the item has to be displayed in the Settings Panel",
51
- "type": "boolean",
52
- "title": "settings"
53
- },
54
- "label": {
55
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
56
- "type": "string",
57
- "title": "label"
58
- }
59
- }
60
- },
61
- "deleteChoice": {
62
- "title": "ConfigureProp",
63
- "type": "object",
64
- "properties": {
65
- "settings": {
66
- "description": "Indicates if the item has to be displayed in the Settings Panel",
67
- "type": "boolean",
68
- "title": "settings"
69
- },
70
- "label": {
71
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
72
- "type": "string",
73
- "title": "label"
74
- }
75
- }
76
- },
77
- "feedback": {
78
- "title": "ConfigureProp",
79
- "type": "object",
80
- "properties": {
81
- "settings": {
82
- "description": "Indicates if the item has to be displayed in the Settings Panel",
83
- "type": "boolean",
84
- "title": "settings"
85
- },
86
- "label": {
87
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
88
- "type": "string",
89
- "title": "label"
90
- }
91
- }
92
- },
93
- "prompt": {
94
- "title": "ConfigureProp",
95
- "type": "object",
96
- "properties": {
97
- "settings": {
98
- "description": "Indicates if the item has to be displayed in the Settings Panel",
99
- "type": "boolean",
100
- "title": "settings"
101
- },
102
- "label": {
103
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
104
- "type": "string",
105
- "title": "label"
106
- }
107
- }
108
- },
109
- "choicesLayout": {
110
- "title": "ConfigureProp",
111
- "type": "object",
112
- "properties": {
113
- "settings": {
114
- "description": "Indicates if the item has to be displayed in the Settings Panel",
115
- "type": "boolean",
116
- "title": "settings"
117
- },
118
- "label": {
119
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
120
- "type": "string",
121
- "title": "label"
122
- }
123
- }
124
- },
125
- "gridColumns": {
126
- "title": "ConfigureProp",
127
- "type": "object",
128
- "properties": {
129
- "settings": {
130
- "description": "Indicates if the item has to be displayed in the Settings Panel",
131
- "type": "boolean",
132
- "title": "settings"
133
- },
134
- "label": {
135
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
136
- "type": "string",
137
- "title": "label"
138
- }
139
- }
140
- },
141
- "lockChoiceOrder": {
142
- "title": "ConfigureProp",
143
- "type": "object",
144
- "properties": {
145
- "settings": {
146
- "description": "Indicates if the item has to be displayed in the Settings Panel",
147
- "type": "boolean",
148
- "title": "settings"
149
- },
150
- "label": {
151
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
152
- "type": "string",
153
- "title": "label"
154
- }
155
- }
156
- },
157
- "partialScoring": {
158
- "title": "ConfigureProp",
159
- "type": "object",
160
- "properties": {
161
- "settings": {
162
- "description": "Indicates if the item has to be displayed in the Settings Panel",
163
- "type": "boolean",
164
- "title": "settings"
165
- },
166
- "label": {
167
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
168
- "type": "string",
169
- "title": "label"
170
- }
171
- }
172
- },
173
- "rationale": {
174
- "title": "ConfigureProp",
175
- "type": "object",
176
- "properties": {
177
- "settings": {
178
- "description": "Indicates if the item has to be displayed in the Settings Panel",
179
- "type": "boolean",
180
- "title": "settings"
181
- },
182
- "label": {
183
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
184
- "type": "string",
185
- "title": "label"
186
- }
187
- }
188
- },
189
- "scoringType": {
190
- "title": "ConfigureProp",
191
- "type": "object",
192
- "properties": {
193
- "settings": {
194
- "description": "Indicates if the item has to be displayed in the Settings Panel",
195
- "type": "boolean",
196
- "title": "settings"
197
- },
198
- "label": {
199
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
200
- "type": "string",
201
- "title": "label"
202
- }
203
- }
204
- },
205
- "studentInstructions": {
206
- "title": "ConfigureProp",
207
- "type": "object",
208
- "properties": {
209
- "settings": {
210
- "description": "Indicates if the item has to be displayed in the Settings Panel",
211
- "type": "boolean",
212
- "title": "settings"
213
- },
214
- "label": {
215
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
216
- "type": "string",
217
- "title": "label"
218
- }
219
- }
220
- },
221
- "teacherInstructions": {
222
- "title": "ConfigureProp",
223
- "type": "object",
224
- "properties": {
225
- "settings": {
226
- "description": "Indicates if the item has to be displayed in the Settings Panel",
227
- "type": "boolean",
228
- "title": "settings"
229
- },
230
- "label": {
231
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
232
- "type": "string",
233
- "title": "label"
234
- }
235
- }
236
- },
237
- "sequentialChoiceLabels": {
238
- "title": "ConfigurePropWithEnabled",
239
- "type": "object",
240
- "properties": {
241
- "settings": {
242
- "description": "Indicates if the item has to be displayed in the Settings Panel",
243
- "type": "boolean",
244
- "title": "settings"
245
- },
246
- "label": {
247
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
248
- "type": "string",
249
- "title": "label"
250
- },
251
- "enabled": {
252
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
253
- "type": "boolean",
254
- "title": "enabled"
255
- }
256
- }
257
- },
258
- "showPrompt": {
259
- "description": "Determines whether prompt field will be displayed or not",
260
- "default": true,
261
- "type": "boolean",
262
- "title": "showPrompt"
263
- },
264
- "promptLabel": {
265
- "description": "The label for the item stem/prompt field",
266
- "default": "Item Stemm",
267
- "type": "string",
268
- "title": "promptLabel"
269
- }
270
- },
271
- "definitions": {
272
- "ConfigureProp": {
273
- "title": "ConfigureProp",
274
- "type": "object",
275
- "properties": {
276
- "settings": {
277
- "description": "Indicates if the item has to be displayed in the Settings Panel",
278
- "type": "boolean",
279
- "title": "settings"
280
- },
281
- "label": {
282
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
283
- "type": "string",
284
- "title": "label"
285
- }
286
- }
287
- },
288
- "ConfigurePropWithEnabled": {
289
- "title": "ConfigurePropWithEnabled",
290
- "type": "object",
291
- "properties": {
292
- "settings": {
293
- "description": "Indicates if the item has to be displayed in the Settings Panel",
294
- "type": "boolean",
295
- "title": "settings"
296
- },
297
- "label": {
298
- "description": "Indicates the label for the item that has to be displayed in the Settings Panel",
299
- "type": "string",
300
- "title": "label"
301
- },
302
- "enabled": {
303
- "description": "Indicates the value of the item if it affects config-ui\n(eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)",
304
- "type": "boolean",
305
- "title": "enabled"
306
- }
307
- }
308
- }
309
- },
310
- "$schema": "http://json-schema.org/draft-07/schema#"
311
- }