@pie-element/ebsr 6.6.3-next.1131 → 6.6.3-next.1199

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 (239) hide show
  1. package/configure/package.json +1 -1
  2. package/package.json +3 -3
  3. package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
  4. package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1743
  5. package/configure/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
  6. package/configure/node_modules/@pie-lib/config-ui/README.md +0 -12
  7. package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -44
  8. package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
  9. package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
  10. package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  11. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
  12. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  13. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -398
  14. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  15. package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  16. package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  17. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -185
  18. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  19. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  20. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  21. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -178
  22. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  23. package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
  24. package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  25. package/configure/node_modules/@pie-lib/config-ui/lib/help.js +0 -145
  26. package/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  27. package/configure/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
  28. package/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  29. package/configure/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
  30. package/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  31. package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -131
  32. package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  33. package/configure/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
  34. package/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  35. package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -101
  36. package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  37. package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  38. package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  39. package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -105
  40. package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  41. package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -87
  42. package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  43. package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  44. package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  45. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -364
  46. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
  47. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -265
  48. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  49. package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
  50. package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  51. package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  52. package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  53. package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -130
  54. package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  55. package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -412
  56. package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  57. package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
  58. package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  59. package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
  60. package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  61. package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -106
  62. package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  63. package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
  64. package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  65. package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
  66. package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  67. package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
  68. package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  69. package/configure/node_modules/@pie-lib/config-ui/package.json +0 -30
  70. package/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -43
  71. package/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
  72. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
  73. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -319
  74. package/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  75. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
  76. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
  77. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
  78. package/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  79. package/configure/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
  80. package/configure/node_modules/@pie-lib/config-ui/src/index.js +0 -58
  81. package/configure/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  82. package/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -96
  83. package/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
  84. package/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
  85. package/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  86. package/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
  87. package/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
  88. package/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  89. package/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -276
  90. package/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
  91. package/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
  92. package/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  93. package/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
  94. package/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
  95. package/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
  96. package/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
  97. package/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
  98. package/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
  99. package/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  100. package/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  101. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3327
  102. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1759
  103. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
  104. package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
  105. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
  106. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -893
  107. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  108. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -226
  109. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  110. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  111. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  112. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js +0 -70
  113. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js.map +0 -1
  114. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -266
  115. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
  116. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -382
  117. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
  118. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +0 -119
  119. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +0 -1
  120. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -424
  121. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  122. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -175
  123. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  124. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -261
  125. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  126. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -135
  127. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  128. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -141
  129. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  130. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -204
  131. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  132. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -347
  133. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  134. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -339
  135. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  136. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -434
  137. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  138. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -99
  139. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  140. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
  141. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  142. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -251
  143. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  144. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  145. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  146. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -54
  147. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  148. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
  149. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  150. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -293
  151. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  152. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
  153. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  154. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
  155. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  156. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  157. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  158. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -499
  159. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  160. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -158
  161. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  162. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -132
  163. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  164. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
  165. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  166. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -263
  167. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  168. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
  169. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  170. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -161
  171. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  172. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -346
  173. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  174. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  175. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  176. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -428
  177. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  178. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  179. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  180. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -52
  181. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
  182. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
  183. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
  184. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
  185. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
  186. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
  187. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
  188. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
  189. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
  190. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
  191. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
  192. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
  193. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
  194. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
  195. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
  196. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
  197. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
  198. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
  199. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
  200. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
  201. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -749
  202. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -145
  203. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  204. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  205. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popover.js +0 -45
  206. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -244
  207. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -448
  208. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +0 -69
  209. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -349
  210. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -108
  211. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -218
  212. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
  213. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -115
  214. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -175
  215. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -283
  216. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -284
  217. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
  218. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
  219. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  220. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -187
  221. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
  222. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
  223. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
  224. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -263
  225. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
  226. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
  227. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
  228. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -439
  229. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
  230. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -111
  231. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
  232. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -225
  233. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
  234. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -97
  235. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -323
  236. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
  237. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -385
  238. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  239. package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import classNames from 'classnames';
4
- import { withStyles } from '@material-ui/core/styles';
5
-
6
- const useStyles = withStyles(() => ({
7
- root: {
8
- position: 'relative'
9
- },
10
- editor: {
11
- display: 'inline-block',
12
- overflow: 'hidden'
13
- }
14
- }));
15
-
16
- class MediaWrapper extends React.Component {
17
- static propTypes = {
18
- classes: PropTypes.object,
19
- children: PropTypes.array,
20
- editor: PropTypes.bool,
21
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
22
- };
23
-
24
- render() {
25
- const { editor, classes, children, width, ...rest } = this.props;
26
-
27
- return (
28
- <span
29
- className={classNames(classes.root, {
30
- [classes.editor]: editor
31
- })}
32
- {...rest}
33
- style={{
34
- width: width || 300
35
- }}
36
- >
37
- {children}
38
- </span>
39
- );
40
- }
41
- }
42
-
43
- export default useStyles(MediaWrapper);
@@ -1,187 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import isUndefined from 'lodash/isUndefined';
4
- import { DragSource, DropTarget } from '@pie-lib/drag';
5
- import { color } from '@pie-lib/render-ui';
6
- import { renderMath } from '@pie-lib/math-rendering';
7
- import { withStyles } from '@material-ui/core/styles';
8
- import classnames from 'classnames';
9
-
10
- import { GripIcon } from '../icons';
11
-
12
- const useStyles = withStyles(theme => ({
13
- content: {
14
- border: `solid 0px ${theme.palette.primary.main}`
15
- },
16
- chip: {
17
- minWidth: '90px'
18
- },
19
- correct: {
20
- border: 'solid 1px green'
21
- },
22
- incorrect: {
23
- border: 'solid 1px red'
24
- },
25
- selected: {
26
- border: `2px solid ${color.primaryDark()} !important`
27
- }
28
- }));
29
-
30
- export class BlankContent extends React.Component {
31
- static propTypes = {
32
- n: PropTypes.object,
33
- children: PropTypes.func,
34
- isDragging: PropTypes.bool,
35
- isOver: PropTypes.bool,
36
- dragItem: PropTypes.object,
37
- value: PropTypes.object,
38
- classes: PropTypes.object
39
- };
40
-
41
- constructor(props) {
42
- super(props);
43
-
44
- this.handleClick = this.handleClick.bind(this);
45
- }
46
-
47
- componentDidMount() {
48
- document.addEventListener('click', this.handleClick);
49
- }
50
-
51
- componentWillUnmount() {
52
- document.removeEventListener('click', this.handleClick);
53
- }
54
-
55
- handleClick(event) {
56
- const { classes } = this.props;
57
-
58
- if (this.elementRef) {
59
- this.elementRef.className = this.elementRef.contains(event.target) ? classes.selected : '';
60
- }
61
- }
62
-
63
- componentDidUpdate() {
64
- if (this.elementRef) {
65
- renderMath(this.elementRef);
66
- }
67
- }
68
-
69
- render() {
70
- const { n, children, isDragging, dragItem, isOver, value } = this.props;
71
-
72
- const label = dragItem && isOver ? dragItem.value.value : value.value || '\u00A0';
73
- const finalLabel = isDragging ? '\u00A0' : label;
74
- const hasGrip = finalLabel !== '\u00A0';
75
-
76
- return (
77
- <div
78
- ref={ref => (this.elementRef = ref)}
79
- style={{
80
- display: 'inline-flex',
81
- minWidth: '178px',
82
- minHeight: '36px',
83
- background: '#FFF',
84
- border: '1px solid #C0C3CF',
85
- boxSizing: 'border-box',
86
- borderRadius: '3px',
87
- overflow: 'hidden',
88
- position: 'relative',
89
- padding: '8px 8px 8px 35px'
90
- }}
91
- data-key={n.key}
92
- contentEditable={false}
93
- >
94
- {hasGrip && (
95
- <GripIcon
96
- style={{
97
- position: 'absolute',
98
- top: '6px',
99
- left: '15px',
100
- color: '#9B9B9B'
101
- }}
102
- contentEditable={false}
103
- />
104
- )}
105
- <span
106
- dangerouslySetInnerHTML={{
107
- __html: finalLabel
108
- }}
109
- />
110
- {children}
111
- </div>
112
- );
113
- }
114
- }
115
-
116
- const StyledBlankContent = useStyles(BlankContent);
117
-
118
- const connectedBlankContent = useStyles(({ connectDropTarget, connectDragSource, ...props }) => {
119
- const { classes, isOver, value } = props;
120
- const dragContent = <StyledBlankContent {...props} />;
121
- const dragEl = !value ? dragContent : connectDragSource(<span>{dragContent}</span>);
122
- const content = (
123
- <span className={classnames(classes.content, isOver && classes.over)}>{dragEl}</span>
124
- );
125
-
126
- return connectDropTarget ? connectDropTarget(content) : content;
127
- });
128
-
129
- export const tileTarget = {
130
- drop(props, monitor) {
131
- const draggedItem = monitor.getItem();
132
- const shouldDrop =
133
- isUndefined(draggedItem.value.index) ||
134
- isUndefined(props.value.index) ||
135
- draggedItem.value.index !== props.value.index;
136
-
137
- if (shouldDrop) {
138
- props.onChange(draggedItem.value);
139
- }
140
-
141
- return {
142
- dropped: shouldDrop
143
- };
144
- },
145
- canDrop(props, monitor) {
146
- const draggedItem = monitor.getItem();
147
-
148
- return draggedItem.instanceId === props.instanceId;
149
- }
150
- };
151
-
152
- const DropTile = DropTarget('drag-in-the-blank-choice', tileTarget, (connect, monitor) => ({
153
- connectDropTarget: connect.dropTarget(),
154
- isOver: monitor.isOver(),
155
- dragItem: monitor.getItem()
156
- }))(connectedBlankContent);
157
-
158
- export const tileSource = {
159
- canDrag(props) {
160
- return !props.disabled && !!props.value;
161
- },
162
- beginDrag(props) {
163
- return {
164
- id: props.targetId,
165
- value: props.value,
166
- instanceId: props.instanceId,
167
- fromChoice: true
168
- };
169
- },
170
- endDrag(props, monitor) {
171
- // this will be null if it did not drop
172
- const dropResult = monitor.getDropResult();
173
-
174
- if (!dropResult || (dropResult.dropped && !props.duplicates)) {
175
- const draggedItem = monitor.getItem();
176
-
177
- if (draggedItem.fromChoice) {
178
- props.removeResponse(draggedItem.value);
179
- }
180
- }
181
- }
182
- };
183
-
184
- export default DragSource('drag-in-the-blank-choice', tileSource, (connect, monitor) => ({
185
- connectDragSource: connect.dragSource(),
186
- isDragging: monitor.isDragging()
187
- }))(DropTile);
@@ -1,78 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import DragDropTile from './choice';
4
-
5
- export const onValueChange = (nodeProps, n, value) => {
6
- const val = nodeProps.editor.value;
7
- const change = val.change();
8
-
9
- change.setNodeByKey(n.key, {
10
- data: {
11
- ...value,
12
- index: n.data.get('index')
13
- }
14
- });
15
-
16
- nodeProps.editor.props.onChange(change, () => {
17
- nodeProps.editor.props.onEditingDone();
18
- });
19
- };
20
-
21
- export const onRemoveResponse = (nodeProps, value) => {
22
- const val = nodeProps.editor.value;
23
- const change = val.change();
24
- const dragInTheBlank = val.document.findDescendant(
25
- n => n.data && n.data.get('index') === value.index
26
- );
27
-
28
- change.setNodeByKey(dragInTheBlank.key, {
29
- data: {
30
- index: dragInTheBlank.data.get('index')
31
- }
32
- });
33
-
34
- nodeProps.editor.props.onChange(change, () => {
35
- nodeProps.editor.props.onEditingDone();
36
- });
37
- };
38
-
39
- const DragDrop = props => {
40
- const { attributes, data, n, nodeProps, opts } = props;
41
- const { inTable } = data;
42
-
43
- return (
44
- <span
45
- {...attributes}
46
- style={{
47
- display: 'inline-flex',
48
- minHeight: '50px',
49
- minWidth: '178px',
50
- position: 'relative',
51
- margin: inTable ? '10px' : '0 10px',
52
- cursor: 'pointer'
53
- }}
54
- >
55
- <DragDropTile
56
- n={n}
57
- dragKey={n.key}
58
- targetId="0"
59
- value={data}
60
- duplicates={opts.options.duplicates}
61
- onChange={value => onValueChange(nodeProps, n, value)}
62
- removeResponse={value => onRemoveResponse(nodeProps, value)}
63
- >
64
- {nodeProps.children}
65
- </DragDropTile>
66
- </span>
67
- );
68
- };
69
-
70
- DragDrop.propTypes = {
71
- attributes: PropTypes.object,
72
- data: PropTypes.object,
73
- n: PropTypes.object,
74
- nodeProps: PropTypes.object,
75
- opts: PropTypes.object
76
- };
77
-
78
- export default DragDrop;
@@ -1,45 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
-
4
- const ExplicitConstructedResponse = props => {
5
- const { attributes, value, error } = props;
6
-
7
- return (
8
- <span
9
- {...attributes}
10
- style={{
11
- display: 'inline-flex',
12
- minHeight: '50px',
13
- minWidth: '178px',
14
- position: 'relative',
15
- margin: '0 5px',
16
- cursor: 'pointer'
17
- }}
18
- >
19
- <div
20
- style={{
21
- display: 'inline-flex',
22
- minWidth: '178px',
23
- minHeight: '36px',
24
- height: '36px',
25
- background: '#FFF',
26
- border: `1px solid ${error ? 'red' : '#C0C3CF'}`,
27
- boxSizing: 'border-box',
28
- borderRadius: '3px',
29
- overflow: 'hidden',
30
- padding: '8px'
31
- }}
32
- dangerouslySetInnerHTML={{
33
- __html: value || '<div>&nbsp;</div>'
34
- }}
35
- />
36
- </span>
37
- );
38
- };
39
-
40
- ExplicitConstructedResponse.propTypes = {
41
- attributes: PropTypes.object,
42
- value: PropTypes.string
43
- };
44
-
45
- export default ExplicitConstructedResponse;
@@ -1,68 +0,0 @@
1
- import React from 'react';
2
- import PropTypes from 'prop-types';
3
- import ChevronRight from '@material-ui/icons/ChevronRight';
4
- import MoreVert from '@material-ui/icons/MoreVert';
5
- import { withStyles } from '@material-ui/core/styles';
6
-
7
- const getRotate = direction => {
8
- switch (direction) {
9
- case 'down':
10
- return 90;
11
- case 'up':
12
- return -90;
13
- case 'left':
14
- return 180;
15
- default:
16
- return 0;
17
- }
18
- };
19
-
20
- export const Chevron = props => {
21
- const { direction, style } = props;
22
- const rotate = getRotate(direction);
23
-
24
- return (
25
- <ChevronRight
26
- style={{
27
- transform: `rotate(${rotate}deg)`,
28
- ...style
29
- }}
30
- />
31
- );
32
- };
33
-
34
- Chevron.propTypes = {
35
- direction: PropTypes.string,
36
- style: PropTypes.object
37
- };
38
-
39
- export const GripIcon = ({ style }) => {
40
- return (
41
- <span style={style}>
42
- <MoreVert
43
- style={{
44
- margin: '0 -16px'
45
- }}
46
- />
47
- <MoreVert />
48
- </span>
49
- );
50
- };
51
-
52
- GripIcon.propTypes = {
53
- style: PropTypes.object
54
- };
55
-
56
- export const ToolbarIcon = withStyles({
57
- icon: {
58
- fontFamily: 'Cerebri Sans !important',
59
- fontSize: '14px',
60
- fontWeight: 'bold',
61
- lineHeight: '14px',
62
- position: 'relative',
63
- top: '7px',
64
- width: '110px',
65
- height: '28px',
66
- whiteSpace: 'nowrap'
67
- }
68
- })(({ classes }) => <div className={classes.icon}>+ Response Area</div>);
@@ -1,263 +0,0 @@
1
- import React from 'react';
2
- import debug from 'debug';
3
- import isUndefined from 'lodash/isUndefined';
4
-
5
- import InlineDropdown from './inline-dropdown';
6
- import DragInTheBlank from './drag-in-the-blank';
7
- import ExplicitConstructedResponse from './explicit-constructed-response';
8
- import { getDefaultElement } from './utils';
9
- import { ToolbarIcon } from './icons';
10
-
11
- const log = debug('@pie-lib:editable-html:plugins:respArea');
12
-
13
- const lastIndexMap = {};
14
- const elTypesMap = {
15
- 'inline-dropdown': 'inline_dropdown',
16
- 'explicit-constructed-response': 'explicit_constructed_response',
17
- 'drag-in-the-blank': 'drag_in_the_blank'
18
- };
19
- const elTypesArray = Object.values(elTypesMap);
20
-
21
- export default function ResponseAreaPlugin(opts) {
22
- const isOfCurrentType = d => d.type === opts.type || d.type === elTypesMap[opts.type];
23
-
24
- const toolbar = {
25
- icon: <ToolbarIcon />,
26
- buttonStyles: {
27
- margin: '0 20px 0 auto'
28
- },
29
- onClick: (value, onChange) => {
30
- log('[toolbar] onClick');
31
- const change = value.change();
32
- const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
33
-
34
- if (currentRespAreaList.size >= opts.maxResponseAreas) {
35
- return;
36
- }
37
-
38
- const type = opts.type.replace(/-/g, '_');
39
- const prevIndex = lastIndexMap[type];
40
- const newIndex = prevIndex === 0 ? prevIndex : prevIndex + 1;
41
- const newInline = getDefaultElement(opts, newIndex);
42
-
43
- lastIndexMap[type] += 1;
44
-
45
- if (newInline) {
46
- if (change.value.selection.startKey || change.value.selection.endKey) {
47
- change.insertInline(newInline);
48
- } else {
49
- // If the markup is empty and there's no focus
50
- const lastText = value.document.getLastText();
51
-
52
- if (!lastText) {
53
- return;
54
- }
55
- const parentNode = value.document.getParent(lastText.key);
56
-
57
- if (parentNode) {
58
- const index = parentNode.nodes.indexOf(lastText.key);
59
-
60
- if (parentNode.isVoid) return;
61
-
62
- change.insertNodeByKey(parentNode.key, index + 1, newInline);
63
- }
64
- }
65
-
66
- if (newInline.type === 'drag_in_the_blank') {
67
- const nextText = change.value.document.getNextText(newInline.key);
68
-
69
- if (nextText) {
70
- change.moveFocusTo(nextText.key, 0).moveAnchorTo(nextText.key, 0);
71
- }
72
- }
73
-
74
- onChange(change);
75
- }
76
- },
77
- customToolbar: opts.respAreaToolbar,
78
- supports: node => node.object === 'inline' && elTypesArray.indexOf(node.type) >= 0,
79
- showDone: false
80
- };
81
-
82
- return {
83
- name: 'response_area',
84
- toolbar,
85
- filterPlugins: (node, plugins) => {
86
- if (node.type === 'explicit_constructed_response' || node.type === 'drag_in_the_blank') {
87
- return [];
88
- }
89
-
90
- return plugins.filter(p => p.name !== 'response_area');
91
- },
92
- deleteNode: (e, node, value, onChange) => {
93
- e.preventDefault();
94
-
95
- const change = value.change().removeNodeByKey(node.key);
96
-
97
- onChange(change);
98
- },
99
- renderNode(props) {
100
- const { attributes, node: n } = props;
101
-
102
- if (n.type === 'explicit_constructed_response') {
103
- const data = n.data.toJSON();
104
- let error;
105
-
106
- if (opts.error) {
107
- error = opts.error();
108
- }
109
-
110
- return (
111
- <ExplicitConstructedResponse
112
- attributes={attributes}
113
- value={data.value}
114
- error={error && error[data.index] && error[data.index][0]}
115
- />
116
- );
117
- }
118
-
119
- if (n.type === 'drag_in_the_blank') {
120
- const data = n.data.toJSON();
121
-
122
- return (
123
- <DragInTheBlank attributes={attributes} data={data} n={n} nodeProps={props} opts={opts} />
124
- );
125
- }
126
-
127
- if (n.type === 'inline_dropdown') {
128
- const data = n.data.toJSON();
129
-
130
- return <InlineDropdown attributes={attributes} selectedItem={data.value} />;
131
- }
132
- },
133
- onChange(change, editor) {
134
- const type = opts.type.replace(/-/g, '_');
135
-
136
- if (isUndefined(lastIndexMap[type])) {
137
- lastIndexMap[type] = 0;
138
-
139
- change.value.document.forEachDescendant(d => {
140
- if (d.type === type) {
141
- const newIndex = parseInt(d.data.get('index'), 10);
142
-
143
- if (newIndex > lastIndexMap[type]) {
144
- lastIndexMap[type] = newIndex;
145
- }
146
- }
147
- });
148
- }
149
-
150
- if (!editor.value) {
151
- return;
152
- }
153
-
154
- const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
155
- const oldRespAreaList = editor.value.document.filterDescendants(isOfCurrentType);
156
-
157
- if (currentRespAreaList.size >= opts.maxResponseAreas) {
158
- toolbar.disabled = true;
159
- } else {
160
- toolbar.disabled = false;
161
- }
162
-
163
- const arrayToFilter =
164
- oldRespAreaList.size > currentRespAreaList.size ? oldRespAreaList : currentRespAreaList;
165
- const arrayToUseForFilter =
166
- arrayToFilter === oldRespAreaList ? currentRespAreaList : oldRespAreaList;
167
-
168
- const elementsWithChangedStatus = arrayToFilter.filter(
169
- d => !arrayToUseForFilter.find(e => e.data.get('index') === d.data.get('index'))
170
- );
171
-
172
- if (elementsWithChangedStatus.size && oldRespAreaList.size > currentRespAreaList.size) {
173
- opts.onHandleAreaChange(elementsWithChangedStatus);
174
- }
175
- },
176
- onDrop(event, change, editor) {
177
- const closestEl = event.target.closest('[data-key]');
178
- const inline = editor.value.document.findDescendant(d => d.key === closestEl.dataset.key);
179
-
180
- if (inline.type === 'drag_in_the_blank') {
181
- return false;
182
- }
183
- }
184
- };
185
- }
186
-
187
- export const serialization = {
188
- deserialize(el) {
189
- const type = el.dataset && el.dataset.type;
190
-
191
- switch (type) {
192
- case 'inline_dropdown':
193
- return {
194
- object: 'inline',
195
- type: 'inline_dropdown',
196
- isVoid: true,
197
- data: {
198
- index: el.dataset.index,
199
- value: el.dataset.value
200
- }
201
- };
202
- case 'explicit_constructed_response':
203
- return {
204
- object: 'inline',
205
- type: 'explicit_constructed_response',
206
- isVoid: true,
207
- data: {
208
- index: el.dataset.index,
209
- value: el.dataset.value
210
- }
211
- };
212
- case 'drag_in_the_blank':
213
- return {
214
- object: 'inline',
215
- type: 'drag_in_the_blank',
216
- isVoid: true,
217
- data: {
218
- index: el.dataset.index,
219
- id: el.dataset.id,
220
- value: el.dataset.value,
221
- inTable: el.dataset.inTable
222
- }
223
- };
224
- }
225
- },
226
- serialize(object) {
227
- if (object.object !== 'inline') {
228
- return;
229
- }
230
-
231
- switch (object.type) {
232
- case 'inline_dropdown': {
233
- const data = object.data.toJSON();
234
-
235
- return <span data-type="inline_dropdown" data-index={data.index} data-value={data.value} />;
236
- }
237
- case 'explicit_constructed_response': {
238
- const data = object.data.toJSON();
239
-
240
- return (
241
- <span
242
- data-type="explicit_constructed_response"
243
- data-index={data.index}
244
- data-value={data.value}
245
- />
246
- );
247
- }
248
- case 'drag_in_the_blank': {
249
- const data = object.data.toJSON();
250
-
251
- return (
252
- <span
253
- data-type="drag_in_the_blank"
254
- data-index={data.index}
255
- data-id={data.id}
256
- data-value={data.value}
257
- data-in-table={data.inTable}
258
- />
259
- );
260
- }
261
- }
262
- }
263
- };