@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,266 +0,0 @@
1
- Model for the Choice Interaction
2
-
3
- The schema defines the following properties:
4
-
5
- # `choiceMode` (string, enum)
6
-
7
- Indicates the choices are single or multiple selection
8
-
9
- This element must be one of the following enum values:
10
-
11
- * `checkbox`
12
- * `radio`
13
-
14
- # `choicePrefix` (string, enum)
15
-
16
- What key should be displayed before choices. If undefined no key will be displayed.
17
-
18
- This element must be one of the following enum values:
19
-
20
- * `letters`
21
- * `numbers`
22
-
23
- Default: `": 'letters'"`
24
-
25
- # `choices` (array, required)
26
-
27
- The choice options for the question
28
-
29
- The object is an array with all elements of the type `object`.
30
-
31
- The array object has the following properties:
32
-
33
- ## `correct` (boolean)
34
-
35
- Indicates if the choice is correct
36
-
37
- ## `value` (string, required)
38
-
39
- the value that will be stored if this choice is selected
40
-
41
- ## `label` (string, required)
42
-
43
- the text label that will be presented to the user for this choice
44
-
45
- ## `feedback` (object)
46
-
47
- The type of feedback to use:
48
- `default` = a standard feedback message
49
- `custom` = a customized feedback message
50
-
51
- Properties of the `feedback` object:
52
-
53
- ### `type` (string, enum, required)
54
-
55
- This element must be one of the following enum values:
56
-
57
- * `custom`
58
- * `default`
59
- * `none`
60
-
61
- Default: `"default"`
62
-
63
- ### `value` (string)
64
-
65
- Value for feedback
66
-
67
- ### `custom` (string)
68
-
69
- Custom value for feedback
70
-
71
- ## `rationale` (string)
72
-
73
- Rationale for the Choice
74
-
75
- # `prompt` (string)
76
-
77
- The question prompt or item stem
78
-
79
- # `promptEnabled` (boolean)
80
-
81
- Determines if prompt should show
82
-
83
- # `choicesLayout` (string, enum)
84
-
85
- Indicates the layout of choices for player
86
-
87
- This element must be one of the following enum values:
88
-
89
- * `grid`
90
- * `horizontal`
91
- * `vertical`
92
-
93
- Default: `": 'vertical'"`
94
-
95
- # `gridColumns` (number)
96
-
97
- Indicates the number of columns for the grid layout
98
-
99
- Default: `": 2"`
100
-
101
- # `toolbarEditorPosition` (string, enum)
102
-
103
- Indicates the editor's toolbar position which can be 'bottom' or 'top'
104
-
105
- This element must be one of the following enum values:
106
-
107
- * `bottom`
108
- * `top`
109
-
110
- Default: `": 'bottom'"`
111
-
112
- # `lockChoiceOrder` (boolean)
113
-
114
- Indicates the order of choices should be randomly ordered when presented to user
115
-
116
- # `partialScoring` (boolean)
117
-
118
- Indicates that the item should use partial scoring
119
-
120
- # `scoringType` (string, enum)
121
-
122
- Indicates scoring type
123
-
124
- This element must be one of the following enum values:
125
-
126
- * `auto`
127
- * `rubric`
128
-
129
- # `studentInstructions` (string)
130
-
131
- Indicates student instructions
132
-
133
- # `teacherInstructions` (string)
134
-
135
- Indicates teacher instructions
136
-
137
- # `feedbackEnabled` (boolean, required)
138
-
139
- Indicates if feedback is enabled
140
-
141
- # `rationaleEnabled` (boolean, required)
142
-
143
- Indicates if Rationale are enabled
144
-
145
- # `studentInstructionsEnabled` (boolean, required)
146
-
147
- Indicates if Student Instructions are enabled
148
-
149
- # `teacherInstructionsEnabled` (boolean, required)
150
-
151
- Indicates if Teacher Instructions are enabled
152
-
153
- # `id` (string, required)
154
-
155
- Identifier to identify the Pie Element in html markup, Must be unique within a pie item config.
156
-
157
- # `element` (string, required)
158
-
159
- The html Element tag name
160
-
161
- ---
162
-
163
- # Sub Schemas
164
-
165
- The schema defines the following additional types:
166
-
167
- ## `ConfigureProp` (object)
168
-
169
- Properties of the `ConfigureProp` object:
170
-
171
- ### `settings` (boolean)
172
-
173
- Indicates if the item has to be displayed in the Settings Panel
174
-
175
- ### `label` (string)
176
-
177
- Indicates the label for the item that has to be displayed in the Settings Panel
178
-
179
- ## `ConfigurePropWithEnabled` (object)
180
-
181
- Properties of the `ConfigurePropWithEnabled` object:
182
-
183
- ### `settings` (boolean)
184
-
185
- Indicates if the item has to be displayed in the Settings Panel
186
-
187
- ### `label` (string)
188
-
189
- Indicates the label for the item that has to be displayed in the Settings Panel
190
-
191
- ### `enabled` (boolean)
192
-
193
- Indicates the value of the item if it affects config-ui
194
- (eg.: if item is a switch and displaying an input on the config-ui depends on the switch value: on/off)
195
-
196
- ## `Choice` (object)
197
-
198
- Properties of the `Choice` object:
199
-
200
- ### `correct` (boolean)
201
-
202
- Indicates if the choice is correct
203
-
204
- ### `value` (string, required)
205
-
206
- the value that will be stored if this choice is selected
207
-
208
- ### `label` (string, required)
209
-
210
- the text label that will be presented to the user for this choice
211
-
212
- ### `feedback` (object)
213
-
214
- The type of feedback to use:
215
- `default` = a standard feedback message
216
- `custom` = a customized feedback message
217
-
218
- Properties of the `feedback` object:
219
-
220
- #### `type` (string, enum, required)
221
-
222
- This element must be one of the following enum values:
223
-
224
- * `custom`
225
- * `default`
226
- * `none`
227
-
228
- Default: `"default"`
229
-
230
- #### `value` (string)
231
-
232
- Value for feedback
233
-
234
- #### `custom` (string)
235
-
236
- Custom value for feedback
237
-
238
- ### `rationale` (string)
239
-
240
- Rationale for the Choice
241
-
242
- ## `Feedback` (object)
243
-
244
- The type of feedback to use:
245
- `default` = a standard feedback message
246
- `custom` = a customized feedback message
247
-
248
- Properties of the `Feedback` object:
249
-
250
- ### `type` (string, enum, required)
251
-
252
- This element must be one of the following enum values:
253
-
254
- * `custom`
255
- * `default`
256
- * `none`
257
-
258
- Default: `"default"`
259
-
260
- ### `value` (string)
261
-
262
- Value for feedback
263
-
264
- ### `custom` (string)
265
-
266
- Custom value for feedback
@@ -1,284 +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.ChoiceInput = exports.StyledRadio = exports.StyledCheckbox = exports.StyledFormControlLabel = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
15
-
16
- var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
17
-
18
- var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
19
-
20
- var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
21
-
22
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
23
-
24
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
25
-
26
- var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));
27
-
28
- var _react = _interopRequireDefault(require("react"));
29
-
30
- var _propTypes = _interopRequireDefault(require("prop-types"));
31
-
32
- var _styles = require("@material-ui/core/styles");
33
-
34
- var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));
35
-
36
- var _renderUi = require("@pie-lib/render-ui");
37
-
38
- var _feedbackTick = _interopRequireDefault(require("./feedback-tick"));
39
-
40
- var _Radio = _interopRequireDefault(require("@material-ui/core/Radio"));
41
-
42
- var _classnames = _interopRequireDefault(require("classnames"));
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 styleSheet = function styleSheet() {
53
- return {
54
- row: {
55
- display: 'flex',
56
- alignItems: 'center',
57
- backgroundColor: _renderUi.color.background()
58
- },
59
- checkboxHolder: {
60
- display: 'flex',
61
- alignItems: 'center',
62
- backgroundColor: _renderUi.color.background(),
63
- flex: 1,
64
- '& label': {
65
- color: _renderUi.color.text()
66
- }
67
- }
68
- };
69
- };
70
-
71
- var formStyleSheet = {
72
- label: {
73
- color: "".concat(_renderUi.color.text(), " !important"),
74
- //'var(--choice-input-color, black)'
75
- backgroundColor: _renderUi.color.background()
76
- }
77
- };
78
- var StyledFormControlLabel = (0, _styles.withStyles)(formStyleSheet, {
79
- name: 'FormControlLabel'
80
- })(function (props) {
81
- return /*#__PURE__*/_react["default"].createElement(_FormControlLabel["default"], (0, _extends2["default"])({}, props, {
82
- classes: {
83
- label: props.classes.label
84
- }
85
- }));
86
- });
87
- exports.StyledFormControlLabel = StyledFormControlLabel;
88
- var CLASS_NAME = 'multiple-choice-component';
89
-
90
- var colorStyle = function colorStyle(varName, fallback) {
91
- return (0, _defineProperty2["default"])({}, "&.".concat(CLASS_NAME), {
92
- color: "var(--choice-input-".concat(varName, ", ").concat(fallback, ") !important")
93
- });
94
- };
95
-
96
- var inputStyles = {
97
- 'correct-root': colorStyle('correct-color', _renderUi.color.text()),
98
- 'correct-checked': colorStyle('correct-selected-color', _renderUi.color.correct()),
99
- //green[500]),
100
- 'correct-disabled': colorStyle('correct-disabled-color', _renderUi.color.disabled()),
101
- //'grey'),
102
- 'incorrect-root': colorStyle('incorrect-color', _renderUi.color.incorrect()),
103
- 'incorrect-checked': colorStyle('incorrect-checked', _renderUi.color.incorrect()),
104
- //orange[500]),
105
- 'incorrect-disabled': colorStyle('incorrect-disabled-color', _renderUi.color.disabled()),
106
- root: _objectSpread(_objectSpread({}, colorStyle('color', _renderUi.color.text())), {}, {
107
- '&:hover': {
108
- color: "".concat(_renderUi.color.primaryLight(), " !important")
109
- }
110
- }),
111
- checked: colorStyle('selected-color', _renderUi.color.primary()),
112
- disabled: _objectSpread(_objectSpread({}, colorStyle('disabled-color', _renderUi.color.text())), {}, {
113
- opacity: 0.6,
114
- cursor: 'not-allowed !important',
115
- pointerEvents: 'initial !important'
116
- })
117
- };
118
- var StyledCheckbox = (0, _styles.withStyles)(inputStyles)(function (props) {
119
- var correctness = props.correctness,
120
- classes = props.classes,
121
- checked = props.checked,
122
- onChange = props.onChange,
123
- disabled = props.disabled,
124
- accessibility = props.accessibility;
125
-
126
- var key = function key(k) {
127
- return correctness ? "".concat(correctness, "-").concat(k) : k;
128
- };
129
-
130
- var resolved = {
131
- root: classes[key('root')],
132
- checked: classes[key('checked')],
133
- disabled: classes[key('disabled')]
134
- };
135
- var miniProps = {
136
- checked: checked,
137
- onChange: onChange,
138
- disabled: disabled
139
- };
140
- return /*#__PURE__*/_react["default"].createElement(_Checkbox["default"], (0, _extends2["default"])({
141
- "aria-label": accessibility
142
- }, miniProps, {
143
- className: CLASS_NAME,
144
- classes: {
145
- root: resolved.root,
146
- checked: resolved.checked,
147
- disabled: resolved.disabled
148
- }
149
- }));
150
- });
151
- exports.StyledCheckbox = StyledCheckbox;
152
- var StyledRadio = (0, _styles.withStyles)(inputStyles)(function (props) {
153
- var correctness = props.correctness,
154
- classes = props.classes,
155
- checked = props.checked,
156
- onChange = props.onChange,
157
- disabled = props.disabled,
158
- accessibility = props.accessibility;
159
-
160
- var key = function key(k) {
161
- return correctness ? "".concat(correctness, "-").concat(k) : k;
162
- };
163
-
164
- var resolved = {
165
- root: classes[key('root')],
166
- checked: classes[key('checked')],
167
- disabled: classes[key('disabled')]
168
- };
169
- var miniProps = {
170
- checked: checked,
171
- onChange: onChange,
172
- disabled: disabled
173
- };
174
- return /*#__PURE__*/_react["default"].createElement(_Radio["default"], (0, _extends2["default"])({
175
- "aria-label": accessibility
176
- }, miniProps, {
177
- className: CLASS_NAME,
178
- classes: {
179
- root: resolved.root,
180
- checked: resolved.checked
181
- }
182
- }));
183
- });
184
- exports.StyledRadio = StyledRadio;
185
-
186
- var ChoiceInput = /*#__PURE__*/function (_React$Component) {
187
- (0, _inherits2["default"])(ChoiceInput, _React$Component);
188
-
189
- var _super = _createSuper(ChoiceInput);
190
-
191
- function ChoiceInput(props) {
192
- var _this;
193
-
194
- (0, _classCallCheck2["default"])(this, ChoiceInput);
195
- _this = _super.call(this, props);
196
- _this.onToggleChoice = _this.onToggleChoice.bind((0, _assertThisInitialized2["default"])(_this));
197
- return _this;
198
- }
199
-
200
- (0, _createClass2["default"])(ChoiceInput, [{
201
- key: "onToggleChoice",
202
- value: function onToggleChoice() {
203
- this.props.onChange({
204
- value: this.props.value,
205
- selected: !this.props.checked
206
- });
207
- }
208
- }, {
209
- key: "render",
210
- value: function render() {
211
- var _this$props = this.props,
212
- choiceMode = _this$props.choiceMode,
213
- disabled = _this$props.disabled,
214
- displayKey = _this$props.displayKey,
215
- feedback = _this$props.feedback,
216
- label = _this$props.label,
217
- checked = _this$props.checked,
218
- correctness = _this$props.correctness,
219
- classes = _this$props.classes,
220
- className = _this$props.className,
221
- rationale = _this$props.rationale,
222
- accessibility = _this$props.accessibility;
223
- var Tag = choiceMode === 'checkbox' ? StyledCheckbox : StyledRadio;
224
- var classSuffix = choiceMode === 'checkbox' ? 'checkbox' : 'radio-button';
225
- return /*#__PURE__*/_react["default"].createElement("div", {
226
- className: (0, _classnames["default"])(className, 'corespring-' + classSuffix)
227
- }, /*#__PURE__*/_react["default"].createElement("div", {
228
- className: classes.row
229
- }, /*#__PURE__*/_react["default"].createElement(_feedbackTick["default"], {
230
- correctness: correctness
231
- }), /*#__PURE__*/_react["default"].createElement("div", {
232
- className: classes.checkboxHolder
233
- }, /*#__PURE__*/_react["default"].createElement(StyledFormControlLabel, {
234
- disabled: disabled,
235
- label: displayKey ? displayKey + '. ' : '',
236
- control: /*#__PURE__*/_react["default"].createElement(Tag, {
237
- accessibility: accessibility,
238
- checked: checked,
239
- correctness: correctness,
240
- onChange: this.onToggleChoice
241
- })
242
- }), /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
243
- className: "label",
244
- onClick: this.onToggleChoice,
245
- prompt: label,
246
- tagName: "span"
247
- }))), rationale && /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
248
- className: "rationale",
249
- prompt: rationale
250
- }), /*#__PURE__*/_react["default"].createElement(_renderUi.Feedback, {
251
- feedback: feedback,
252
- correctness: correctness
253
- }));
254
- }
255
- }]);
256
- return ChoiceInput;
257
- }(_react["default"].Component);
258
-
259
- exports.ChoiceInput = ChoiceInput;
260
- (0, _defineProperty2["default"])(ChoiceInput, "propTypes", {
261
- choiceMode: _propTypes["default"].oneOf(['radio', 'checkbox']),
262
- displayKey: _propTypes["default"].string.isRequired,
263
- checked: _propTypes["default"].bool.isRequired,
264
- correctness: _propTypes["default"].string,
265
- disabled: _propTypes["default"].bool.isRequired,
266
- feedback: _propTypes["default"].string,
267
- label: _propTypes["default"].string.isRequired,
268
- rationale: _propTypes["default"].string,
269
- accessibility: _propTypes["default"].string,
270
- onChange: _propTypes["default"].func.isRequired,
271
- value: _propTypes["default"].string.isRequired,
272
- classes: _propTypes["default"].object,
273
- className: _propTypes["default"].string
274
- });
275
- (0, _defineProperty2["default"])(ChoiceInput, "defaultProps", {
276
- rationale: null,
277
- accessibility: null,
278
- checked: false
279
- });
280
-
281
- var _default = (0, _styles.withStyles)(styleSheet)(ChoiceInput);
282
-
283
- exports["default"] = _default;
284
- //# sourceMappingURL=choice-input.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/choice-input.jsx"],"names":["styleSheet","row","display","alignItems","backgroundColor","color","background","checkboxHolder","flex","text","formStyleSheet","label","StyledFormControlLabel","name","props","classes","CLASS_NAME","colorStyle","varName","fallback","inputStyles","correct","disabled","incorrect","root","primaryLight","checked","primary","opacity","cursor","pointerEvents","StyledCheckbox","correctness","onChange","accessibility","key","k","resolved","miniProps","StyledRadio","ChoiceInput","onToggleChoice","bind","value","selected","choiceMode","displayKey","feedback","className","rationale","Tag","classSuffix","React","Component","PropTypes","oneOf","string","isRequired","bool","func","object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa;AAAA,SAAO;AACxBC,IAAAA,GAAG,EAAE;AACHC,MAAAA,OAAO,EAAE,MADN;AAEHC,MAAAA,UAAU,EAAE,QAFT;AAGHC,MAAAA,eAAe,EAAEC,gBAAMC,UAAN;AAHd,KADmB;AAMxBC,IAAAA,cAAc,EAAE;AACdL,MAAAA,OAAO,EAAE,MADK;AAEdC,MAAAA,UAAU,EAAE,QAFE;AAGdC,MAAAA,eAAe,EAAEC,gBAAMC,UAAN,EAHH;AAIdE,MAAAA,IAAI,EAAE,CAJQ;AAKd,iBAAW;AACTH,QAAAA,KAAK,EAAEA,gBAAMI,IAAN;AADE;AALG;AANQ,GAAP;AAAA,CAAnB;;AAiBA,IAAMC,cAAc,GAAG;AACrBC,EAAAA,KAAK,EAAE;AACLN,IAAAA,KAAK,YAAKA,gBAAMI,IAAN,EAAL,gBADA;AACgC;AACrCL,IAAAA,eAAe,EAAEC,gBAAMC,UAAN;AAFZ;AADc,CAAvB;AAOO,IAAMM,sBAAsB,GAAG,wBAAWF,cAAX,EAA2B;AAC/DG,EAAAA,IAAI,EAAE;AADyD,CAA3B,EAEnC,UAACC,KAAD;AAAA,sBACD,gCAAC,4BAAD,gCAAsBA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AAAA,OAAO,EAAE;AAHW,C;;eAsET,wBAAW1B,UAAX,EAAuBwC,WAAvB,C","sourcesContent":["import FormControlLabel from '@material-ui/core/FormControlLabel';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { withStyles } from '@material-ui/core/styles';\n\nimport Checkbox from '@material-ui/core/Checkbox';\nimport { Feedback, color, PreviewPrompt } from '@pie-lib/render-ui';\nimport FeedbackTick from './feedback-tick';\nimport Radio from '@material-ui/core/Radio';\nimport classNames from 'classnames';\n\nconst styleSheet = () => ({\n row: {\n display: 'flex',\n alignItems: 'center',\n backgroundColor: color.background(),\n },\n checkboxHolder: {\n display: 'flex',\n alignItems: 'center',\n backgroundColor: color.background(),\n flex: 1,\n '& label': {\n color: color.text(),\n },\n },\n});\n\nconst formStyleSheet = {\n label: {\n color: `${color.text()} !important`, //'var(--choice-input-color, black)'\n backgroundColor: color.background(),\n },\n};\n\nexport const StyledFormControlLabel = withStyles(formStyleSheet, {\n name: 'FormControlLabel',\n})((props) => (\n <FormControlLabel {...props} classes={{ label: props.classes.label }} />\n));\n\nconst CLASS_NAME = 'multiple-choice-component';\n\nconst colorStyle = (varName, fallback) => ({\n [`&.${CLASS_NAME}`]: {\n color: `var(--choice-input-${varName}, ${fallback}) !important`,\n },\n});\n\nconst inputStyles = {\n 'correct-root': colorStyle('correct-color', color.text()),\n 'correct-checked': colorStyle('correct-selected-color', color.correct()), //green[500]),\n 'correct-disabled': colorStyle('correct-disabled-color', color.disabled()), //'grey'),\n 'incorrect-root': colorStyle('incorrect-color', color.incorrect()),\n 'incorrect-checked': colorStyle('incorrect-checked', color.incorrect()), //orange[500]),\n 'incorrect-disabled': colorStyle(\n 'incorrect-disabled-color',\n color.disabled()\n ),\n root: {\n ...colorStyle('color', color.text()),\n '&:hover': { color: `${color.primaryLight()} !important` },\n },\n checked: colorStyle('selected-color', color.primary()),\n disabled: {\n ...colorStyle('disabled-color', color.text()),\n opacity: 0.6,\n cursor: 'not-allowed !important',\n pointerEvents: 'initial !important',\n },\n};\n\nexport const StyledCheckbox = withStyles(inputStyles)((props) => {\n const { correctness, classes, checked, onChange, disabled, accessibility } = props;\n const key = (k) => (correctness ? `${correctness}-${k}` : k);\n\n const resolved = {\n root: classes[key('root')],\n checked: classes[key('checked')],\n disabled: classes[key('disabled')],\n };\n\n const miniProps = { checked, onChange, disabled };\n return (\n <Checkbox\n aria-label={accessibility}\n {...miniProps}\n className={CLASS_NAME}\n classes={{\n root: resolved.root,\n checked: resolved.checked,\n disabled: resolved.disabled,\n }}\n />\n );\n});\n\nexport const StyledRadio = withStyles(inputStyles)((props) => {\n const { correctness, classes, checked, onChange, disabled, accessibility } = props;\n const key = (k) => (correctness ? `${correctness}-${k}` : k);\n\n const resolved = {\n root: classes[key('root')],\n checked: classes[key('checked')],\n disabled: classes[key('disabled')],\n };\n\n const miniProps = { checked, onChange, disabled };\n\n return (\n <Radio\n aria-label={accessibility}\n {...miniProps}\n className={CLASS_NAME}\n classes={{\n root: resolved.root,\n checked: resolved.checked,\n }}\n />\n );\n});\n\nexport class ChoiceInput extends React.Component {\n static propTypes = {\n choiceMode: PropTypes.oneOf(['radio', 'checkbox']),\n displayKey: PropTypes.string.isRequired,\n checked: PropTypes.bool.isRequired,\n correctness: PropTypes.string,\n disabled: PropTypes.bool.isRequired,\n feedback: PropTypes.string,\n label: PropTypes.string.isRequired,\n rationale: PropTypes.string,\n accessibility: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n value: PropTypes.string.isRequired,\n classes: PropTypes.object,\n className: PropTypes.string,\n };\n\n static defaultProps = {\n rationale: null,\n accessibility: null,\n checked: false,\n };\n\n constructor(props) {\n super(props);\n this.onToggleChoice = this.onToggleChoice.bind(this);\n }\n\n onToggleChoice() {\n this.props.onChange({\n value: this.props.value,\n selected: !this.props.checked,\n });\n }\n\n render() {\n const {\n choiceMode,\n disabled,\n displayKey,\n feedback,\n label,\n checked,\n correctness,\n classes,\n className,\n rationale,\n accessibility,\n } = this.props;\n\n const Tag = choiceMode === 'checkbox' ? StyledCheckbox : StyledRadio;\n const classSuffix = choiceMode === 'checkbox' ? 'checkbox' : 'radio-button';\n\n return (\n <div className={classNames(className, 'corespring-' + classSuffix)}>\n <div className={classes.row}>\n <FeedbackTick correctness={correctness} />\n <div className={classes.checkboxHolder}>\n <StyledFormControlLabel\n disabled={disabled}\n label={displayKey ? displayKey + '. ' : ''}\n control={\n <Tag\n accessibility={accessibility}\n checked={checked}\n correctness={correctness}\n onChange={this.onToggleChoice}\n />\n }\n />\n <PreviewPrompt\n className=\"label\"\n onClick={this.onToggleChoice}\n prompt={label}\n tagName=\"span\"\n />\n </div>\n </div>\n {rationale && (\n <PreviewPrompt className=\"rationale\" prompt={rationale} />\n )}\n <Feedback feedback={feedback} correctness={correctness} />\n </div>\n );\n }\n}\n\nexport default withStyles(styleSheet)(ChoiceInput);\n"],"file":"choice-input.js"}