@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,471 +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["default"] = exports.Main = void 0;
9
-
10
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
17
-
18
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
19
-
20
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
21
-
22
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
23
-
24
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
25
-
26
- var _react = _interopRequireDefault(require("react"));
27
-
28
- var _propTypes = _interopRequireDefault(require("prop-types"));
29
-
30
- var _editableHtml = _interopRequireDefault(require("@pie-lib/editable-html"));
31
-
32
- var _configUi = require("@pie-lib/config-ui");
33
-
34
- var _renderUi = require("@pie-lib/render-ui");
35
-
36
- var _styles = require("@material-ui/core/styles");
37
-
38
- var _Button = _interopRequireDefault(require("@material-ui/core/Button"));
39
-
40
- var _merge = _interopRequireDefault(require("lodash/merge"));
41
-
42
- var _Tooltip = _interopRequireDefault(require("@material-ui/core/Tooltip"));
43
-
44
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
45
-
46
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
47
-
48
- 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; }
49
-
50
- 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; }
51
-
52
- var Panel = _configUi.settings.Panel,
53
- toggle = _configUi.settings.toggle,
54
- radio = _configUi.settings.radio,
55
- dropdown = _configUi.settings.dropdown;
56
- var MAX_CHOICES = 9;
57
-
58
- var styles = function styles(theme) {
59
- return {
60
- promptHolder: {
61
- width: '100%',
62
- paddingBottom: theme.spacing.unit * 2,
63
- marginBottom: theme.spacing.unit * 2
64
- },
65
- prompt: {
66
- paddingTop: theme.spacing.unit * 2,
67
- width: '100%'
68
- },
69
- rationaleHolder: {
70
- width: '70%'
71
- },
72
- accessibilityHolder: {
73
- width: '70%'
74
- },
75
- rationale: {
76
- paddingTop: theme.spacing.unit * 2
77
- },
78
- accessibility: {
79
- paddingTop: theme.spacing.unit * 2
80
- },
81
- design: {
82
- paddingTop: theme.spacing.unit * 3
83
- },
84
- choiceConfigurationHolder: {
85
- display: 'flex',
86
- flexDirection: 'column',
87
- alignItems: 'center'
88
- },
89
- choiceConfiguration: {
90
- width: '100%',
91
- paddingTop: theme.spacing.unit * 2,
92
- paddingBottom: theme.spacing.unit * 2
93
- },
94
- switchElement: {
95
- justifyContent: 'space-between',
96
- margin: 0
97
- },
98
- addButton: {
99
- "float": 'right'
100
- },
101
- disableButton: {
102
- cursor: 'not-allowed',
103
- pointerEvents: 'all',
104
- backgroundColor: _renderUi.color.disabled(),
105
- '&:hover': {
106
- backgroundColor: _renderUi.color.disabled()
107
- },
108
- '&:focus': {
109
- backgroundColor: _renderUi.color.disabled()
110
- }
111
- }
112
- };
113
- };
114
-
115
- var Design = (0, _styles.withStyles)(styles)(function (props) {
116
- var classes = props.classes,
117
- model = props.model,
118
- configuration = props.configuration,
119
- onPromptChanged = props.onPromptChanged,
120
- onChoiceChanged = props.onChoiceChanged,
121
- onRemoveChoice = props.onRemoveChoice,
122
- onAddChoice = props.onAddChoice,
123
- imageSupport = props.imageSupport,
124
- onChangeModel = props.onChangeModel,
125
- onConfigurationChanged = props.onConfigurationChanged,
126
- onTeacherInstructionsChanged = props.onTeacherInstructionsChanged;
127
-
128
- var _ref = configuration || {},
129
- _ref$prompt = _ref.prompt,
130
- prompt = _ref$prompt === void 0 ? {} : _ref$prompt,
131
- _ref$addChoiceButton = _ref.addChoiceButton,
132
- addChoiceButton = _ref$addChoiceButton === void 0 ? {} : _ref$addChoiceButton,
133
- _ref$limitChoicesNumb = _ref.limitChoicesNumber,
134
- limitChoicesNumber = _ref$limitChoicesNumb === void 0 ? {} : _ref$limitChoicesNumb,
135
- _ref$feedback = _ref.feedback,
136
- feedback = _ref$feedback === void 0 ? {} : _ref$feedback,
137
- _ref$deleteChoice = _ref.deleteChoice,
138
- deleteChoice = _ref$deleteChoice === void 0 ? {} : _ref$deleteChoice,
139
- _ref$choiceMode = _ref.choiceMode,
140
- choiceMode = _ref$choiceMode === void 0 ? {} : _ref$choiceMode,
141
- _ref$choicePrefix = _ref.choicePrefix,
142
- choicePrefix = _ref$choicePrefix === void 0 ? {} : _ref$choicePrefix,
143
- _ref$partialScoring = _ref.partialScoring,
144
- partialScoring = _ref$partialScoring === void 0 ? {} : _ref$partialScoring,
145
- _ref$lockChoiceOrder = _ref.lockChoiceOrder,
146
- lockChoiceOrder = _ref$lockChoiceOrder === void 0 ? {} : _ref$lockChoiceOrder,
147
- _ref$teacherInstructi = _ref.teacherInstructions,
148
- teacherInstructions = _ref$teacherInstructi === void 0 ? {} : _ref$teacherInstructi,
149
- _ref$studentInstructi = _ref.studentInstructions,
150
- studentInstructions = _ref$studentInstructi === void 0 ? {} : _ref$studentInstructi,
151
- _ref$rationale = _ref.rationale,
152
- rationale = _ref$rationale === void 0 ? {} : _ref$rationale,
153
- _ref$accessibility = _ref.accessibility,
154
- accessibility = _ref$accessibility === void 0 ? {} : _ref$accessibility,
155
- _ref$scoringType = _ref.scoringType,
156
- scoringType = _ref$scoringType === void 0 ? {} : _ref$scoringType,
157
- _ref$sequentialChoice = _ref.sequentialChoiceLabels,
158
- sequentialChoiceLabels = _ref$sequentialChoice === void 0 ? {} : _ref$sequentialChoice,
159
- settingsPanelDisabled = _ref.settingsPanelDisabled,
160
- choicesLayout = _ref.choicesLayout,
161
- gridColumns = _ref.gridColumns;
162
-
163
- var _ref2 = model || {},
164
- limitChoicesNumberModel = _ref2.limitChoicesNumber,
165
- teacherInstructionsEnabled = _ref2.teacherInstructionsEnabled,
166
- rationaleEnabled = _ref2.rationaleEnabled,
167
- accessibilityLabelsEnabled = _ref2.accessibilityLabelsEnabled,
168
- feedbackEnabled = _ref2.feedbackEnabled,
169
- promptEnabled = _ref2.promptEnabled,
170
- choices = _ref2.choices;
171
-
172
- var nrOfColumnsAvailable = choices && choices.length ? Array.from({
173
- length: choices.length
174
- }, function (_, i) {
175
- return "".concat(i + 1);
176
- }) : [];
177
- var labelPlugins = {
178
- audio: {
179
- disabled: true
180
- },
181
- video: {
182
- disabled: true
183
- }
184
- };
185
- var toolbarOpts = {};
186
-
187
- switch (model.toolbarEditorPosition) {
188
- case 'top':
189
- toolbarOpts.position = 'top';
190
- break;
191
-
192
- default:
193
- toolbarOpts.position = 'bottom';
194
- break;
195
- }
196
-
197
- var Content = /*#__PURE__*/_react["default"].createElement("div", null, teacherInstructionsEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
198
- label: teacherInstructions.label,
199
- className: classes.promptHolder
200
- }, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
201
- className: classes.prompt,
202
- markup: model.teacherInstructions || '',
203
- onChange: onTeacherInstructionsChanged,
204
- imageSupport: imageSupport,
205
- nonEmpty: false,
206
- toolbarOpts: toolbarOpts
207
- })), promptEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
208
- label: prompt.label,
209
- className: classes.promptHolder
210
- }, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
211
- className: classes.prompt,
212
- markup: model.prompt,
213
- onChange: onPromptChanged,
214
- imageSupport: imageSupport,
215
- nonEmpty: false,
216
- disableUnderline: true,
217
- toolbarOpts: toolbarOpts
218
- })), model.choices.map(function (choice, index) {
219
- return /*#__PURE__*/_react["default"].createElement("div", {
220
- key: "choice-".concat(index),
221
- className: classes.choiceConfigurationHolder
222
- }, /*#__PURE__*/_react["default"].createElement(_configUi.ChoiceConfiguration, {
223
- key: index,
224
- index: index + 1,
225
- useLetterOrdering: model.choicePrefix === 'letters',
226
- className: classes.choiceConfiguration,
227
- mode: model.choiceMode,
228
- data: choice,
229
- defaultFeedback: {},
230
- imageSupport: imageSupport,
231
- onDelete: function onDelete() {
232
- return onRemoveChoice(index);
233
- },
234
- onChange: function onChange(c) {
235
- return onChoiceChanged(index, c);
236
- },
237
- allowFeedBack: feedbackEnabled,
238
- allowDelete: deleteChoice.settings,
239
- noLabels: true,
240
- toolbarOpts: toolbarOpts
241
- }), rationaleEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
242
- key: "rationale-".concat(index),
243
- label: rationale.label,
244
- className: classes.rationaleHolder
245
- }, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
246
- className: classes.rationale,
247
- markup: choice.rationale || '',
248
- onChange: function onChange(c) {
249
- return onChoiceChanged(index, _objectSpread(_objectSpread({}, choice), {}, {
250
- rationale: c
251
- }));
252
- },
253
- imageSupport: imageSupport,
254
- toolbarOpts: toolbarOpts,
255
- pluginProps: labelPlugins
256
- })), accessibilityLabelsEnabled && /*#__PURE__*/_react["default"].createElement(_configUi.InputContainer, {
257
- key: "accessibility-".concat(index),
258
- label: accessibility.label,
259
- className: classes.accessibilityHolder
260
- }, /*#__PURE__*/_react["default"].createElement(_editableHtml["default"], {
261
- className: classes.accessibility,
262
- markup: choice.accessibility || '',
263
- onChange: function onChange(c) {
264
- return onChoiceChanged(index, _objectSpread(_objectSpread({}, choice), {}, {
265
- accessibility: c
266
- }));
267
- },
268
- imageSupport: imageSupport,
269
- pluginProps: labelPlugins
270
- })));
271
- }), /*#__PURE__*/_react["default"].createElement("br", null), addChoiceButton.settings && /*#__PURE__*/_react["default"].createElement(_Tooltip["default"], {
272
- title: limitChoicesNumberModel && model.choices.length >= MAX_CHOICES ? "Only ".concat(MAX_CHOICES, " allowed maximum") : '',
273
- classes: {
274
- tooltip: classes.tooltip
275
- }
276
- }, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
277
- classes: {
278
- root: limitChoicesNumberModel && model.choices.length >= MAX_CHOICES ? classes.disableButton : undefined
279
- },
280
- className: classes.addButton,
281
- variant: "contained",
282
- color: "primary",
283
- onClick: onAddChoice
284
- }, addChoiceButton.label)));
285
-
286
- var settingsInPanel = {
287
- choiceMode: choiceMode.settings && radio(choiceMode.label, ['checkbox', 'radio']),
288
- 'sequentialChoiceLabels.enabled': sequentialChoiceLabels.settings && toggle(sequentialChoiceLabels.label, true),
289
- choicePrefix: choicePrefix.settings && radio(choicePrefix.label, ['numbers', 'letters']),
290
- partialScoring: partialScoring.settings && toggle(partialScoring.label),
291
- limitChoicesNumber: limitChoicesNumber.settings && toggle(limitChoicesNumber.label),
292
- lockChoiceOrder: lockChoiceOrder.settings && toggle(lockChoiceOrder.label),
293
- feedbackEnabled: feedback.settings && toggle(feedback.label),
294
- choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal'])
295
- };
296
-
297
- if (model.choicesLayout === 'grid' && nrOfColumnsAvailable.length > 0) {
298
- settingsInPanel.gridColumns = dropdown(gridColumns.label, nrOfColumnsAvailable);
299
- }
300
-
301
- return /*#__PURE__*/_react["default"].createElement("div", {
302
- className: classes.design
303
- }, settingsPanelDisabled ? Content : /*#__PURE__*/_react["default"].createElement(_configUi.layout.ConfigLayout, {
304
- settings: /*#__PURE__*/_react["default"].createElement(Panel, {
305
- model: model,
306
- onChangeModel: onChangeModel,
307
- configuration: configuration,
308
- onChangeConfiguration: onConfigurationChanged,
309
- groups: {
310
- Settings: settingsInPanel,
311
- Properties: {
312
- teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),
313
- studentInstructionsEnabled: studentInstructions.settings && toggle(studentInstructions.label),
314
- promptEnabled: prompt.settings && toggle(prompt.label),
315
- rationaleEnabled: rationale.settings && toggle(rationale.label),
316
- accessibilityLabelsEnabled: accessibility.settings && toggle(accessibility.label),
317
- scoringType: scoringType.settings && radio(scoringType.label, ['auto', 'rubric'])
318
- }
319
- }
320
- })
321
- }, Content));
322
- });
323
-
324
- var Main = /*#__PURE__*/function (_React$Component) {
325
- (0, _inherits2["default"])(Main, _React$Component);
326
-
327
- var _super = _createSuper(Main);
328
-
329
- function Main() {
330
- var _this;
331
-
332
- (0, _classCallCheck2["default"])(this, Main);
333
-
334
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
335
- args[_key] = arguments[_key];
336
- }
337
-
338
- _this = _super.call.apply(_super, [this].concat(args));
339
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onRemoveChoice", function (index) {
340
- var model = _this.props.model;
341
- model.choices.splice(index, 1);
342
-
343
- _this.props.onModelChanged(model);
344
- });
345
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onAddChoice", function () {
346
- var model = _this.props.model;
347
-
348
- if (!model.limitChoicesNumber || model.limitChoicesNumber && model.choices.length < MAX_CHOICES) {
349
- model.choices.push({
350
- label: '',
351
- value: _configUi.choiceUtils.firstAvailableIndex(model.choices.map(function (c) {
352
- return c.value;
353
- }), 0),
354
- feedback: {
355
- type: 'none'
356
- }
357
- });
358
-
359
- _this.props.onModelChanged(model);
360
- }
361
- });
362
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChoiceChanged", function (index, choice) {
363
- var model = _this.props.model;
364
-
365
- if (choice.correct && model.choiceMode === 'radio') {
366
- model.choices = model.choices.map(function (c) {
367
- return (0, _merge["default"])({}, c, {
368
- correct: false
369
- });
370
- });
371
- }
372
-
373
- model.choices.splice(index, 1, choice);
374
-
375
- _this.props.onModelChanged(model);
376
- });
377
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPromptChanged", function (prompt) {
378
- _this.props.onModelChanged(_objectSpread(_objectSpread({}, _this.props.model), {}, {
379
- prompt: prompt
380
- }));
381
- });
382
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onTeacherInstructionsChanged", function (teacherInstructions) {
383
- _this.props.onModelChanged(_objectSpread(_objectSpread({}, _this.props.model), {}, {
384
- teacherInstructions: teacherInstructions
385
- }));
386
- });
387
- (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onModelChanged", function (model, key) {
388
- var onModelChanged = _this.props.onModelChanged;
389
-
390
- switch (key) {
391
- case 'choiceMode':
392
- {
393
- var value = model.choiceMode;
394
-
395
- if (value === 'radio') {
396
- var correctFound = false;
397
- model.choices = model.choices.map(function (c) {
398
- if (correctFound) {
399
- c.correct = false;
400
- return c;
401
- }
402
-
403
- if (c.correct) {
404
- correctFound = true;
405
- }
406
-
407
- return c;
408
- });
409
- }
410
-
411
- onModelChanged(model, true);
412
- break;
413
- }
414
-
415
- default:
416
- onModelChanged(model);
417
- break;
418
- }
419
- });
420
- return _this;
421
- }
422
-
423
- (0, _createClass2["default"])(Main, [{
424
- key: "componentDidMount",
425
- value: function componentDidMount() {
426
- // This is used for offering support for old models which have the property verticalMode
427
- // Same thing is set in the controller: packages/multiple-choice/controller/src/index.js - model
428
- var _this$props = this.props,
429
- model = _this$props.model,
430
- onModelChanged = _this$props.onModelChanged;
431
- var verticalMode = model.verticalMode;
432
-
433
- if (verticalMode !== undefined) {
434
- var choicesLayout = verticalMode === false ? 'horizontal' : 'vertical';
435
- onModelChanged(_objectSpread(_objectSpread({}, model), {}, {
436
- choicesLayout: choicesLayout
437
- }));
438
- }
439
- }
440
- }, {
441
- key: "render",
442
- value: function render() {
443
- return /*#__PURE__*/_react["default"].createElement(Design, (0, _extends2["default"])({}, this.props, {
444
- onChangeModel: this.onModelChanged,
445
- onRemoveChoice: this.onRemoveChoice,
446
- onChoiceChanged: this.onChoiceChanged,
447
- onAddChoice: this.onAddChoice,
448
- onPromptChanged: this.onPromptChanged,
449
- onTeacherInstructionsChanged: this.onTeacherInstructionsChanged
450
- }));
451
- }
452
- }]);
453
- return Main;
454
- }(_react["default"].Component);
455
-
456
- exports.Main = Main;
457
- (0, _defineProperty2["default"])(Main, "propTypes", {
458
- model: _propTypes["default"].object.isRequired,
459
- disableSidePanel: _propTypes["default"].bool,
460
- onModelChanged: _propTypes["default"].func.isRequired,
461
- onConfigurationChanged: _propTypes["default"].func.isRequired,
462
- classes: _propTypes["default"].object.isRequired,
463
- imageSupport: _propTypes["default"].shape({
464
- add: _propTypes["default"].func.isRequired,
465
- "delete": _propTypes["default"].func.isRequired
466
- })
467
- });
468
- var Styled = (0, _styles.withStyles)(styles)(Main);
469
- var _default = Styled;
470
- exports["default"] = _default;
471
- //# sourceMappingURL=main.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/main.jsx"],"names":["Panel","settings","toggle","radio","dropdown","MAX_CHOICES","styles","theme","promptHolder","width","paddingBottom","spacing","unit","marginBottom","prompt","paddingTop","rationaleHolder","accessibilityHolder","rationale","accessibility","design","choiceConfigurationHolder","display","flexDirection","alignItems","choiceConfiguration","switchElement","justifyContent","margin","addButton","disableButton","cursor","pointerEvents","backgroundColor","color","disabled","Design","props","classes","model","configuration","onPromptChanged","onChoiceChanged","onRemoveChoice","onAddChoice","imageSupport","onChangeModel","onConfigurationChanged","onTeacherInstructionsChanged","addChoiceButton","limitChoicesNumber","feedback","deleteChoice","choiceMode","choicePrefix","partialScoring","lockChoiceOrder","teacherInstructions","studentInstructions","scoringType","sequentialChoiceLabels","settingsPanelDisabled","choicesLayout","gridColumns","limitChoicesNumberModel","teacherInstructionsEnabled","rationaleEnabled","accessibilityLabelsEnabled","feedbackEnabled","promptEnabled","choices","nrOfColumnsAvailable","length","Array","from","_","i","labelPlugins","audio","video","toolbarOpts","toolbarEditorPosition","position","Content","label","map","choice","index","c","tooltip","root","undefined","settingsInPanel","Settings","Properties","studentInstructionsEnabled","Main","splice","onModelChanged","push","value","utils","firstAvailableIndex","type","correct","key","correctFound","verticalMode","React","Component","PropTypes","object","isRequired","disableSidePanel","bool","func","shape","add","Styled"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAOA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;IAEQA,K,GAAmCC,kB,CAAnCD,K;IAAOE,M,GAA4BD,kB,CAA5BC,M;IAAQC,K,GAAoBF,kB,CAApBE,K;IAAOC,Q,GAAaH,kB,CAAbG,Q;AAE9B,IAAMC,WAAW,GAAG,CAApB;;AAEA,IAAMC,MAAM,GAAG,SAATA,MAAS,CAAAC,KAAK;AAAA,SAAK;AACvBC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,MADK;AAEZC,MAAAA,aAAa,EAAEH,KAAK,CAACI,OAAN,CAAcC,IAAd,GAAqB,CAFxB;AAGZC,MAAAA,YAAY,EAAEN,KAAK,CAACI,OAAN,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nimport EditableHtml from '@pie-lib/editable-html';\nimport {\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 merge from 'lodash/merge';\nimport Tooltip from '@material-ui/core/Tooltip';\n\nconst { Panel, toggle, radio, dropdown } = settings;\n\nconst MAX_CHOICES = 9;\n\nconst styles = theme => ({\n promptHolder: {\n width: '100%',\n paddingBottom: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2\n },\n prompt: {\n paddingTop: theme.spacing.unit * 2,\n width: '100%'\n },\n rationaleHolder: {\n width: '70%'\n },\n accessibilityHolder: {\n width: '70%'\n },\n rationale: {\n paddingTop: theme.spacing.unit * 2\n },\n accessibility: {\n paddingTop: theme.spacing.unit * 2\n },\n design: {\n paddingTop: theme.spacing.unit * 3\n },\n choiceConfigurationHolder: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center'\n },\n choiceConfiguration: {\n width: '100%',\n paddingTop: theme.spacing.unit * 2,\n paddingBottom: theme.spacing.unit * 2\n },\n switchElement: {\n justifyContent: 'space-between',\n margin: 0\n },\n addButton: {\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});\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 onChangeModel,\n onConfigurationChanged,\n onTeacherInstructionsChanged\n } = props;\n const {\n prompt = {},\n addChoiceButton = {},\n limitChoicesNumber = {},\n feedback = {},\n deleteChoice = {},\n choiceMode = {},\n choicePrefix = {},\n partialScoring = {},\n lockChoiceOrder = {},\n teacherInstructions = {},\n studentInstructions = {},\n rationale = {},\n accessibility = {},\n scoringType = {},\n sequentialChoiceLabels = {},\n settingsPanelDisabled,\n choicesLayout,\n gridColumns,\n } = configuration || {};\n const {\n limitChoicesNumber: limitChoicesNumberModel,\n teacherInstructionsEnabled,\n rationaleEnabled,\n accessibilityLabelsEnabled,\n feedbackEnabled,\n promptEnabled,\n choices\n } = model || {};\n\n const nrOfColumnsAvailable = (choices && choices.length)\n ? Array.from({length: choices.length}, (_, i) => (`${i + 1}`))\n : [];\n\n const labelPlugins = {\n audio: { disabled: true },\n video: { disabled: true }\n };\n\n const toolbarOpts = {};\n\n switch (model.toolbarEditorPosition) {\n case 'top':\n toolbarOpts.position = 'top';\n break;\n default:\n toolbarOpts.position = 'bottom';\n break;\n }\n\n const Content = (\n <div>\n {teacherInstructionsEnabled && (\n <InputContainer\n label={teacherInstructions.label}\n className={classes.promptHolder}\n >\n <EditableHtml\n className={classes.prompt}\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n toolbarOpts={toolbarOpts}\n />\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 toolbarOpts={toolbarOpts}\n />\n </InputContainer>\n )}\n {model.choices.map((choice, index) => (\n <div\n key={`choice-${index}`}\n className={classes.choiceConfigurationHolder}\n >\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 onDelete={() => onRemoveChoice(index)}\n onChange={c => onChoiceChanged(index, c)}\n allowFeedBack={feedbackEnabled}\n allowDelete={deleteChoice.settings}\n noLabels\n toolbarOpts={toolbarOpts}\n />\n {rationaleEnabled && (\n <InputContainer\n key={`rationale-${index}`}\n label={rationale.label}\n className={classes.rationaleHolder}\n >\n <EditableHtml\n className={classes.rationale}\n markup={choice.rationale || ''}\n onChange={c =>\n onChoiceChanged(index, {\n ...choice,\n rationale: c\n })\n }\n imageSupport={imageSupport}\n toolbarOpts={toolbarOpts}\n pluginProps={labelPlugins}\n />\n </InputContainer>\n )}\n {accessibilityLabelsEnabled && (\n <InputContainer\n key={`accessibility-${index}`}\n label={accessibility.label}\n className={classes.accessibilityHolder}\n >\n <EditableHtml\n className={classes.accessibility}\n markup={choice.accessibility || ''}\n onChange={c =>\n onChoiceChanged(index, {\n ...choice,\n accessibility: c\n })\n }\n imageSupport={imageSupport}\n pluginProps={labelPlugins}\n />\n </InputContainer>\n )}\n </div>\n ))}\n <br />\n {addChoiceButton.settings && (\n <Tooltip title={limitChoicesNumberModel && model.choices.length >= MAX_CHOICES ? `Only ${MAX_CHOICES} allowed maximum` : ''} classes={{ tooltip: classes.tooltip }}>\n <Button\n classes={{ root: limitChoicesNumberModel && model.choices.length >= MAX_CHOICES ? classes.disableButton : undefined }}\n className={classes.addButton}\n variant=\"contained\"\n color=\"primary\"\n onClick={onAddChoice}\n >\n {addChoiceButton.label}\n </Button>\n </Tooltip>\n )}\n </div>\n );\n\n const settingsInPanel = {\n choiceMode:\n choiceMode.settings &&\n radio(choiceMode.label, ['checkbox', 'radio']),\n 'sequentialChoiceLabels.enabled':\n sequentialChoiceLabels.settings &&\n toggle(sequentialChoiceLabels.label, true),\n choicePrefix:\n choicePrefix.settings &&\n radio(choicePrefix.label, ['numbers', 'letters']),\n partialScoring:\n partialScoring.settings && toggle(partialScoring.label),\n limitChoicesNumber:\n limitChoicesNumber.settings && toggle(limitChoicesNumber.label),\n lockChoiceOrder:\n lockChoiceOrder.settings && toggle(lockChoiceOrder.label),\n feedbackEnabled: feedback.settings && toggle(feedback.label),\n choicesLayout: choicesLayout.settings && dropdown(choicesLayout.label, ['vertical', 'grid', 'horizontal']),\n };\n\n if (model.choicesLayout === 'grid' && nrOfColumnsAvailable.length > 0) {\n settingsInPanel.gridColumns = dropdown(gridColumns.label, nrOfColumnsAvailable);\n }\n\n return (\n <div className={classes.design}>\n {settingsPanelDisabled ? (\n Content\n ) : (\n <layout.ConfigLayout\n settings={\n <Panel\n model={model}\n onChangeModel={onChangeModel}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: settingsInPanel,\n Properties: {\n teacherInstructionsEnabled:\n teacherInstructions.settings &&\n toggle(teacherInstructions.label),\n studentInstructionsEnabled:\n studentInstructions.settings &&\n toggle(studentInstructions.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n rationaleEnabled:\n rationale.settings && toggle(rationale.label),\n accessibilityLabelsEnabled:\n accessibility.settings && toggle(accessibility.label),\n scoringType:\n scoringType.settings &&\n radio(scoringType.label, ['auto', 'rubric'])\n }\n }}\n />\n }\n >\n {Content}\n </layout.ConfigLayout>\n )}\n </div>\n );\n});\n\nexport class Main extends React.Component {\n static propTypes = {\n model: 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 componentDidMount() {\n // This is used for offering support for old models which have the property verticalMode\n // Same thing is set in the controller: packages/multiple-choice/controller/src/index.js - model\n const { model, onModelChanged } = this.props;\n const { verticalMode } = model;\n\n if (verticalMode !== undefined) {\n const choicesLayout = verticalMode === false ? 'horizontal': 'vertical';\n\n onModelChanged({...model, choicesLayout: choicesLayout});\n }\n }\n\n onRemoveChoice = index => {\n const { model } = this.props;\n\n model.choices.splice(index, 1);\n this.props.onModelChanged(model);\n };\n\n onAddChoice = () => {\n const { model } = this.props;\n\n if (!model.limitChoicesNumber || (model.limitChoicesNumber && model.choices.length < MAX_CHOICES)) {\n model.choices.push({\n label: '',\n value: utils.firstAvailableIndex(model.choices.map(c => c.value), 0),\n feedback: {\n type: 'none'\n }\n });\n\n this.props.onModelChanged(model);\n }\n };\n\n onChoiceChanged = (index, choice) => {\n const { model } = this.props;\n\n if (choice.correct && model.choiceMode === 'radio') {\n model.choices = model.choices.map(c => {\n return merge({}, c, { correct: false });\n });\n }\n\n model.choices.splice(index, 1, choice);\n this.props.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 return c;\n }\n\n if (c.correct) {\n correctFound = true;\n }\n return c;\n });\n }\n onModelChanged(model, true);\n break;\n }\n default:\n onModelChanged(model);\n break;\n }\n };\n\n render() {\n return (\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 );\n }\n}\n\nconst Styled = withStyles(styles)(Main);\n\nexport default Styled;\n"],"file":"main.js"}
@@ -1,20 +0,0 @@
1
- {
2
- "name": "@pie-element/multiple-choice-configure",
3
- "version": "3.5.0",
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.2.0",
11
- "@pie-lib/config-ui": "^10.10.2",
12
- "@pie-lib/editable-html": "^7.17.2",
13
- "@pie-lib/scoring-config": "^3.5.131",
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
- }