@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 +0,0 @@
1
- {"version":3,"sources":["../src/editor.jsx"],"names":["log","defaultToolbarOpts","position","alignment","alwaysVisible","showDone","doneOn","createToolbarOpts","toolbarOpts","Editor","props","e","relatedTarget","target","node","state","value","setState","focusedNode","resetValue","stashedValue","stashValue","editor","change","c","collapseToStartOf","selectedNode","onChange","resolve","nonEmpty","toolbarInFocus","blur","startText","text","length","then","onEditingDone","event","Promise","handleBlur","bind","onBlur","editorDOM","document","querySelector","key","activeElement","__TEMPORARY_CHANGE_DATA","data","domEl","setNodeByKey","handleDomBlur","removeEventListener","addEventListener","onFocus","force","stopReset","plugins","reduce","s","p","isFocused","toObject","newValue","Value","fromJSON","toJSON","setTimeout","done","v","endsWith","undefined","parseInt","isNaN","object","last","nodes","type","parent","getParent","Block","pos","focus","onResize","activePlugins","math","onClick","onMathClick","onPluginFocus","onPluginBlur","image","onDelete","imageSupport","src","insertImageRequested","getHandler","handler","add","toolbar","disableUnderline","autoWidth","autoWidthToolbar","onDone","table","responseArea","responseAreaProps","options","respAreaToolbar","media","createChange","onRef","window","autoFocus","nextProps","newToolbarOpts","equals","width","minHeight","height","maxHeight","valueToSize","disabled","highlightShape","classes","className","placeholder","pluginProps","onKeyDown","sizeStyle","buildSizeStyle","names","withBg","toolbarOnTop","ref","wrapperRef","r","slateEditor","editorRef","normalize","changeData","React","Component","PropTypes","bool","func","isRequired","SlateTypes","oneOfType","string","number","any","shape","oneOf","arrayOf","values","allValid","every","ALL_PLUGINS","includes","Error","join","styles","backgroundColor","fontFamily","tableLayout","borderCollapse","color","background","borderTop","border","padding","textAlign","marginTop"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,GAAG,GAAG,uBAAM,sBAAN,CAAZ;AAEA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,QAA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AS,EAAEkB,sBAAUM;AAhDJ,C;;gBADR3I,M,kBAoDW;AACpB0F,EAAAA,gBAAgB,EAAE,IADE;AAEpB7C,EAAAA,OAAO,EAAE,mBAAM,CAAE,CAFG;AAGpBb,EAAAA,MAAM,EAAE,kBAAM,CAAE,CAHI;AAIpBjC,EAAAA,WAAW,EAAEP,kBAJO;AAKpB8H,EAAAA,SAAS,EAAE,qBAAM,CAAE;AALC,C;;AAkdxB,IAAMkC,MAAM,GAAG;AACb9B,EAAAA,MAAM,EAAE;AACN+B,IAAAA,eAAe,EAAE;AADX,GADK;AAIb1B,EAAAA,WAAW,EAAE;AACX2B,IAAAA,UAAU,EAAE,oBADD;AAGX,eAAW;AACTC,MAAAA,WAAW,EAAE,OADJ;AAEThD,MAAAA,KAAK,EAAE,MAFE;AAGTiD,MAAAA,cAAc,EAAE,UAHP;AAITC,MAAAA,KAAK,EAAEA,gBAAMrI,IAAN,EAJE;AAKTiI,MAAAA,eAAe,EAAEI,gBAAMC,UAAN;AALR,KAHA;AAUX,YAAQ;AACNC,MAAAA,SAAS,EAAE,mBADL,CAEN;AACA;AACA;AACA;;AALM,KAVG;AAiBX,gBAAY;AACVC,MAAAA,MAAM,EAAE,mBADE;AAEVC,MAAAA,OAAO,EAAE,UAFC;AAGVC,MAAAA,SAAS,EAAE;AAHD;AAjBD,GAJA;AA2BbvC,EAAAA,YAAY,EAAE;AACZwC,IAAAA,SAAS,EAAE;AADC;AA3BD,CAAf;;eAgCe,wBAAWX,MAAX,EAAmBxJ,MAAnB,C","sourcesContent":["import { Editor as SlateEditor, findNode } from 'slate-react';\nimport SlateTypes from 'slate-prop-types';\n\nimport isEqual from 'lodash/isEqual';\nimport * as serialization from './serialization';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Value, Block } from 'slate';\nimport { buildPlugins, ALL_PLUGINS, DEFAULT_PLUGINS } from './plugins';\nimport debug from 'debug';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { color } from '@pie-lib/render-ui';\n\nexport { ALL_PLUGINS, DEFAULT_PLUGINS, serialization };\n\nconst log = debug('editable-html:editor');\n\nconst defaultToolbarOpts = {\n position: 'bottom',\n alignment: 'left',\n alwaysVisible: false,\n showDone: true,\n doneOn: 'blur'\n};\n\nconst createToolbarOpts = toolbarOpts => {\n return {\n ...defaultToolbarOpts,\n ...toolbarOpts\n };\n};\n\nexport class Editor extends React.Component {\n static propTypes = {\n autoFocus: PropTypes.bool,\n editorRef: PropTypes.func.isRequired,\n onRef: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onKeyDown: PropTypes.func,\n focus: PropTypes.func.isRequired,\n value: SlateTypes.value.isRequired,\n imageSupport: PropTypes.object,\n width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n minHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n classes: PropTypes.object.isRequired,\n highlightShape: PropTypes.bool,\n disabled: PropTypes.bool,\n nonEmpty: PropTypes.bool,\n disableUnderline: PropTypes.bool,\n autoWidthToolbar: PropTypes.bool,\n pluginProps: PropTypes.any,\n placeholder: PropTypes.string,\n responseAreaProps: PropTypes.shape({\n type: PropTypes.oneOf([\n 'explicit-constructed-response',\n 'inline-dropdown',\n 'drag-in-the-blank'\n ]),\n options: PropTypes.object,\n respAreaToolbar: PropTypes.func,\n onDelete: PropTypes.func\n }),\n toolbarOpts: PropTypes.shape({\n position: PropTypes.oneOf(['bottom', 'top']),\n alignment: PropTypes.oneOf(['left', 'right']),\n alwaysVisible: PropTypes.bool,\n showDone: PropTypes.bool,\n doneOn: PropTypes.string\n }),\n activePlugins: PropTypes.arrayOf(values => {\n const allValid = values.every(v => ALL_PLUGINS.includes(v));\n\n return (\n !allValid &&\n new Error(`Invalid values: ${values}, values must be one of [${ALL_PLUGINS.join(',')}]`)\n );\n }),\n className: PropTypes.string\n };\n\n static defaultProps = {\n disableUnderline: true,\n onFocus: () => {},\n onBlur: () => {},\n toolbarOpts: defaultToolbarOpts,\n onKeyDown: () => {}\n };\n\n constructor(props) {\n super(props);\n this.state = {\n value: props.value,\n toolbarOpts: createToolbarOpts(props.toolbarOpts)\n };\n\n this.onResize = () => {\n props.onChange(this.state.value, true);\n };\n\n this.plugins = buildPlugins(props.activePlugins, {\n math: {\n onClick: this.onMathClick,\n onFocus: this.onPluginFocus,\n onBlur: this.onPluginBlur\n },\n image: {\n onDelete:\n this.props.imageSupport &&\n this.props.imageSupport.delete &&\n ((src, done) => {\n this.props.imageSupport.delete(src, e => {\n done(e, this.state.value);\n });\n }),\n insertImageRequested:\n this.props.imageSupport &&\n (getHandler => {\n /**\n * The handler is the object through which the outer context\n * communicates file upload events like: fileChosen, cancel, progress\n */\n const handler = getHandler(() => this.state.value);\n this.props.imageSupport.add(handler);\n }),\n onFocus: this.onPluginFocus,\n onBlur: this.onPluginBlur\n },\n toolbar: {\n /**\n * To minimize converting html -> state -> html\n * We only emit markup once 'done' is clicked.\n */\n disableUnderline: props.disableUnderline,\n autoWidth: props.autoWidthToolbar,\n onDone: () => {\n const { nonEmpty } = this.props;\n\n log('[onDone]');\n this.setState({ toolbarInFocus: false, focusedNode: null });\n this.editor.blur();\n\n if (nonEmpty && this.state.value.startText.text.length === 0) {\n this.resetValue(true).then(() => {\n this.onEditingDone();\n });\n } else {\n this.onEditingDone();\n }\n }\n },\n table: {\n onFocus: () => {\n log('[table:onFocus]...');\n this.onPluginFocus();\n },\n onBlur: () => {\n log('[table:onBlur]...');\n this.onPluginBlur();\n }\n },\n responseArea: {\n type: props.responseAreaProps && props.responseAreaProps.type,\n options: props.responseAreaProps && props.responseAreaProps.options,\n respAreaToolbar: props.responseAreaProps && props.responseAreaProps.respAreaToolbar,\n onFocus: () => {\n log('[table:onFocus]...');\n this.onPluginFocus();\n },\n onBlur: () => {\n log('[table:onBlur]...');\n this.onPluginBlur();\n }\n },\n media: {\n focus: this.focus,\n createChange: () => this.state.value.change(),\n onChange: this.onChange\n }\n });\n }\n\n componentDidMount() {\n // onRef is needed to get the ref of the component because we export it using withStyles\n this.props.onRef(this);\n\n window.addEventListener('resize', this.onResize);\n\n if (this.editor && this.props.autoFocus) {\n Promise.resolve().then(() => {\n if (this.editor) {\n const editorDOM = document.querySelector(\n `[data-key=\"${this.editor.value.document.key}\"]`\n );\n\n this.editor.focus();\n\n if (editorDOM) {\n editorDOM.focus();\n }\n }\n });\n }\n }\n\n componentWillReceiveProps(nextProps) {\n const { toolbarOpts } = this.state;\n const newToolbarOpts = createToolbarOpts(nextProps.toolbarOpts);\n\n if (!isEqual(newToolbarOpts, toolbarOpts)) {\n this.setState({\n toolbarOpts: newToolbarOpts\n });\n }\n }\n\n onPluginBlur = e => {\n log('[onPluginBlur]', e && e.relatedTarget);\n const target = e && e.relatedTarget;\n\n const node = target ? findNode(target, this.state.value) : null;\n log('[onPluginBlur] node: ', node);\n this.setState({ focusedNode: node }, () => {\n this.resetValue();\n });\n };\n\n onPluginFocus = e => {\n log('[onPluginFocus]', e && e.target);\n const target = e && e.target;\n if (target) {\n const node = findNode(target, this.state.value);\n log('[onPluginFocus] node: ', node);\n\n const stashedValue = this.state.stashedValue || this.state.value;\n this.setState({ focusedNode: node, stashedValue });\n } else {\n this.setState({ focusedNode: null });\n }\n this.stashValue();\n };\n\n onMathClick = node => {\n this.editor.change(c => c.collapseToStartOf(node));\n this.setState({ selectedNode: node });\n };\n\n onEditingDone = () => {\n log('[onEditingDone]');\n this.setState({ stashedValue: null, focusedNode: null });\n log('[onEditingDone] value: ', this.state.value);\n this.props.onChange(this.state.value, true);\n };\n\n /**\n * Remove onResize event listener\n */\n componentWillUnmount() {\n window.removeEventListener('resize', this.onResize);\n }\n\n // Allowing time for onChange to take effect if it is called\n handleBlur = resolve => {\n const { nonEmpty } = this.props;\n const {\n toolbarOpts: { doneOn }\n } = this.state;\n\n this.setState({ toolbarInFocus: false, focusedNode: null });\n\n if (this.editor) {\n this.editor.blur();\n }\n\n if (doneOn === 'blur') {\n if (nonEmpty && this.state.value.startText.text.length === 0) {\n this.resetValue(true).then(() => {\n this.onEditingDone();\n resolve();\n });\n } else {\n this.onEditingDone();\n resolve();\n }\n }\n };\n\n onBlur = event => {\n log('[onBlur]');\n const target = event.relatedTarget;\n\n const node = target ? findNode(target, this.state.value) : null;\n\n log('[onBlur] node: ', node);\n\n return new Promise(resolve => {\n this.setState({ focusedNode: node }, this.handleBlur.bind(this, resolve));\n this.props.onBlur(event);\n });\n };\n\n /*\n * Needs to be wrapped otherwise it causes issues because of race conditions\n * Known issue for slatejs. See: https://github.com/ianstormtaylor/slate/issues/2097\n * Using timeout I wasn't able to test this\n *\n * Note: The use of promises has been causing issues with MathQuill\n * */\n onFocus = () =>\n new Promise(resolve => {\n const editorDOM = document.querySelector(`[data-key=\"${this.state.value.document.key}\"]`);\n\n log('[onFocus]', document.activeElement);\n\n /**\n * This is a temporary hack - @see changeData below for some more information.\n */\n if (this.__TEMPORARY_CHANGE_DATA) {\n const { key, data } = this.__TEMPORARY_CHANGE_DATA;\n const domEl = document.querySelector(`[data-key=\"${key}\"]`);\n\n if (domEl) {\n let change = this.state.value.change().setNodeByKey(key, { data });\n\n this.setState({ value: change.value }, () => {\n this.__TEMPORARY_CHANGE_DATA = null;\n });\n }\n }\n\n /**\n * This is needed just in case the browser decides to make the editor\n * lose focus without triggering the onBlur event (can happen in a few cases).\n * This will also trigger onBlur if the user clicks outside of the page when the editor\n * is focused.\n */\n if (editorDOM === document.activeElement) {\n const handleDomBlur = e => {\n editorDOM.removeEventListener('blur', handleDomBlur);\n this.onBlur(e);\n };\n\n editorDOM.addEventListener('blur', handleDomBlur);\n }\n\n this.stashValue();\n this.props.onFocus();\n\n resolve();\n });\n\n stashValue = () => {\n log('[stashValue]');\n if (!this.state.stashedValue) {\n this.setState({ stashedValue: this.state.value });\n }\n };\n\n /**\n * Reset the value if the user didn't click done.\n */\n resetValue = force => {\n const { value, focusedNode } = this.state;\n\n const stopReset = this.plugins.reduce((s, p) => {\n return s || (p.stopReset && p.stopReset(this.state.value));\n }, false);\n\n log('[resetValue]', value.isFocused, focusedNode, 'stopReset: ', stopReset);\n if ((this.state.stashedValue && !value.isFocused && !focusedNode && !stopReset) || force) {\n log('[resetValue] resetting...');\n log('stashed', this.state.stashedValue.document.toObject());\n log('current', this.state.value.document.toObject());\n\n const newValue = Value.fromJSON(this.state.stashedValue.toJSON());\n\n log('newValue: ', newValue.document);\n return new Promise(resolve => {\n setTimeout(() => {\n this.setState({ value: newValue, stashedValue: null }, () => {\n log('value now: ', this.state.value.document.toJSON());\n resolve();\n });\n }, 50);\n });\n } else {\n return Promise.resolve({});\n }\n };\n\n onChange = (change, done) => {\n log('[onChange]');\n this.setState({ value: change.value }, () => {\n log('[onChange], call done()');\n\n if (done) {\n done();\n }\n });\n };\n\n UNSAFE_componentWillReceiveProps(props) {\n if (!props.value.document.equals(this.props.value.document)) {\n this.setState({\n focus: false,\n value: props.value\n });\n }\n }\n\n valueToSize = v => {\n if (!v) {\n return;\n }\n\n if (typeof v === 'string') {\n if (v.endsWith('%')) {\n return undefined;\n } else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw')) {\n return v;\n } else {\n const value = parseInt(v, 10);\n return isNaN(value) ? value : `${value}px`;\n }\n }\n if (typeof v === 'number') {\n return `${v}px`;\n }\n\n return;\n };\n\n buildSizeStyle() {\n const { width, minHeight, height, maxHeight } = this.props;\n\n return {\n width: this.valueToSize(width),\n height: this.valueToSize(height),\n minHeight: this.valueToSize(minHeight),\n maxHeight: this.valueToSize(maxHeight)\n };\n }\n\n validateNode = node => {\n if (node.object !== 'block') return;\n\n const last = node.nodes.last();\n if (!last) return;\n\n if (last.type !== 'image') return;\n\n log('[validateNode] last is image..');\n\n const parent = last.getParent(last.key);\n const p = Block.getParent(last.key);\n log('[validateNode] parent:', parent, p);\n\n return undefined;\n };\n\n changeData = (key, data) => {\n log('[changeData]. .. ', key, data);\n\n /**\n * HACK ALERT: We should be calling setState here and storing the change data:\n *\n * <code>this.setState({changeData: { key, data}})</code>\n * However this is causing issues with the Mathquill instance. The 'input' event stops firing on the element and no more changes get through.\n * The issues seem to be related to the promises in onBlur/onFocus. But removing these brings it's own problems.\n * A major clean up is planned for this component so I've decided to temporarily settle on this hack rather than spend more time on this.\n */\n\n // Uncomment this line to see the bug described above.\n // this.setState({changeData: {key, data}})\n\n this.__TEMPORARY_CHANGE_DATA = { key, data };\n };\n\n focus = (pos, node) => {\n const position = pos || 'end';\n\n this.props.focus(position, node);\n };\n\n render() {\n const {\n disabled,\n highlightShape,\n classes,\n className,\n placeholder,\n pluginProps,\n onKeyDown\n } = this.props;\n const { value, focusedNode, toolbarOpts } = this.state;\n\n log('[render] value: ', value);\n const sizeStyle = this.buildSizeStyle();\n const names = classNames(\n {\n [classes.withBg]: highlightShape,\n [classes.toolbarOnTop]: toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'\n },\n className\n );\n\n return (\n <div\n ref={ref => (this.wrapperRef = ref)}\n style={{ width: sizeStyle.width }}\n className={names}\n >\n <SlateEditor\n plugins={this.plugins}\n innerRef={r => {\n if (r) {\n this.slateEditor = r;\n }\n }}\n ref={r => (this.editor = r && this.props.editorRef(r))}\n value={value}\n focus={this.focus}\n onKeyDown={onKeyDown}\n onChange={this.onChange}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n onEditingDone={this.onEditingDone}\n focusedNode={focusedNode}\n normalize={this.normalize}\n readOnly={disabled}\n className={classes.slateEditor}\n style={{\n minHeight: sizeStyle.minHeight,\n height: sizeStyle.height,\n maxHeight: sizeStyle.maxHeight\n }}\n pluginProps={pluginProps}\n toolbarOpts={toolbarOpts}\n placeholder={placeholder}\n onDataChange={this.changeData}\n />\n </div>\n );\n }\n}\n\n// TODO color - hardcoded gray background and keypad colors will need to change too\nconst styles = {\n withBg: {\n backgroundColor: 'rgba(0,0,0,0.06)'\n },\n slateEditor: {\n fontFamily: 'Roboto, sans-serif',\n\n '& table': {\n tableLayout: 'fixed',\n width: '100%',\n borderCollapse: 'collapse',\n color: color.text(),\n backgroundColor: color.background()\n },\n '& tr': {\n borderTop: '1px solid #dfe2e5'\n // TODO perhaps secondary color for background, for now disable\n // '&:nth-child(2n)': {\n // backgroundColor: '#f6f8fa'\n // }\n },\n '& td, th': {\n border: '1px solid #dfe2e5',\n padding: '.6em 1em',\n textAlign: 'center'\n }\n },\n toolbarOnTop: {\n marginTop: '45px'\n }\n};\n\nexport default withStyles(styles)(Editor);\n"],"file":"editor.js"}
@@ -1,213 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "Editor", {
7
- enumerable: true,
8
- get: function get() {
9
- return _editor["default"];
10
- }
11
- });
12
- Object.defineProperty(exports, "DEFAULT_PLUGINS", {
13
- enumerable: true,
14
- get: function get() {
15
- return _editor.DEFAULT_PLUGINS;
16
- }
17
- });
18
- Object.defineProperty(exports, "ALL_PLUGINS", {
19
- enumerable: true,
20
- get: function get() {
21
- return _editor.ALL_PLUGINS;
22
- }
23
- });
24
- Object.defineProperty(exports, "htmlToValue", {
25
- enumerable: true,
26
- get: function get() {
27
- return _serialization.htmlToValue;
28
- }
29
- });
30
- Object.defineProperty(exports, "valueToHtml", {
31
- enumerable: true,
32
- get: function get() {
33
- return _serialization.valueToHtml;
34
- }
35
- });
36
- exports["default"] = void 0;
37
-
38
- var _react = _interopRequireDefault(require("react"));
39
-
40
- var _propTypes = _interopRequireDefault(require("prop-types"));
41
-
42
- var _editor = _interopRequireWildcard(require("./editor"));
43
-
44
- var _serialization = require("./serialization");
45
-
46
- var _parseHtml = require("./parse-html");
47
-
48
- var _debug = _interopRequireDefault(require("debug"));
49
-
50
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj["default"] = obj; return newObj; } }
51
-
52
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
53
-
54
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
55
-
56
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
57
-
58
- 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; }
59
-
60
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
61
-
62
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
63
-
64
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
65
-
66
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
67
-
68
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
69
-
70
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
71
-
72
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
73
-
74
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
75
-
76
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
77
-
78
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
79
-
80
- var log = (0, _debug["default"])('@pie-lib:editable-html');
81
- /**
82
- * Export lower level Editor and serialization functions.
83
- */
84
-
85
- /**
86
- * Wrapper around the editor that exposes a `markup` and `onChange(markup:string)` api.
87
- * Because of the mismatch between the markup and the `Value` we need to convert the incoming markup to a value and
88
- * compare it. TODO: This is an interim fix, we'll need to strip back `Editor` and look how best to maintain the
89
- * `markup` api whilst avoiding the serialization mismatch. We should be making better use of schemas w/ normalize.
90
- */
91
- var EditableHtml =
92
- /*#__PURE__*/
93
- function (_React$Component) {
94
- _inherits(EditableHtml, _React$Component);
95
-
96
- function EditableHtml(props) {
97
- var _this;
98
-
99
- _classCallCheck(this, EditableHtml);
100
-
101
- _this = _possibleConstructorReturn(this, _getPrototypeOf(EditableHtml).call(this, props));
102
-
103
- _defineProperty(_assertThisInitialized(_this), "onChange", function (value, done) {
104
- var html = (0, _serialization.valueToHtml)(value);
105
- var htmlParsed = (0, _parseHtml.parseDegrees)(html);
106
- log('value as html: ', html);
107
-
108
- if (html !== _this.props.markup) {
109
- _this.props.onChange(htmlParsed);
110
- }
111
-
112
- if (done) {
113
- _this.props.onDone(htmlParsed);
114
- }
115
- });
116
-
117
- _defineProperty(_assertThisInitialized(_this), "focus", function (position, node) {
118
- if (_this.editorRef) {
119
- _this.editorRef.change(function (c) {
120
- var lastText = node ? c.value.document.getNextText(node.key) : c.value.document.getLastText();
121
- var editorDOM = document.querySelector("[data-key=\"".concat(_this.editorRef.value.document.key, "\"]"));
122
-
123
- if (editorDOM !== document.activeElement) {
124
- document.activeElement.blur();
125
- }
126
-
127
- c.focus();
128
-
129
- if (position === 'end' && lastText) {
130
- c.moveFocusTo(lastText.key, lastText.text.length).moveAnchorTo(lastText.key, lastText.text.length);
131
- }
132
-
133
- if (position === 'beginning' && lastText) {
134
- c.moveFocusTo(lastText.key, 0).moveAnchorTo(lastText.key, 0);
135
- }
136
- });
137
- }
138
- });
139
-
140
- _defineProperty(_assertThisInitialized(_this), "finishEditing", function () {
141
- if (_this.editorRef) {
142
- _this.editorRef.props.onEditingDone();
143
- }
144
- });
145
-
146
- var v = (0, _serialization.htmlToValue)(props.markup);
147
- _this.state = {
148
- value: v
149
- };
150
- return _this;
151
- } // eslint-disable-next-line react/no-deprecated
152
-
153
-
154
- _createClass(EditableHtml, [{
155
- key: "componentWillReceiveProps",
156
- value: function componentWillReceiveProps(props) {
157
- if (!props.allowValidation && props.markup === this.props.markup) {
158
- return;
159
- }
160
-
161
- var v = (0, _serialization.htmlToValue)(props.markup);
162
- var current = (0, _serialization.htmlToValue)(this.props.markup);
163
-
164
- if (!v.equals(current)) {
165
- this.setState({
166
- value: v
167
- });
168
- }
169
- }
170
- }, {
171
- key: "render",
172
- value: function render() {
173
- var _this2 = this;
174
-
175
- var value = this.state.value;
176
-
177
- var props = _objectSpread({}, this.props, {
178
- markup: null,
179
- value: value,
180
- onChange: this.onChange,
181
- focus: this.focus
182
- });
183
-
184
- return _react["default"].createElement(_editor["default"], _extends({
185
- onRef: function onRef(ref) {
186
- if (ref) {
187
- _this2.rootRef = ref;
188
- }
189
- },
190
- editorRef: function editorRef(ref) {
191
- return ref && (_this2.editorRef = ref);
192
- }
193
- }, props));
194
- }
195
- }]);
196
-
197
- return EditableHtml;
198
- }(_react["default"].Component);
199
-
200
- exports["default"] = EditableHtml;
201
-
202
- _defineProperty(EditableHtml, "propTypes", {
203
- onChange: _propTypes["default"].func.isRequired,
204
- onDone: _propTypes["default"].func,
205
- markup: _propTypes["default"].string.isRequired,
206
- allowValidation: _propTypes["default"].bool
207
- });
208
-
209
- _defineProperty(EditableHtml, "defaultProps", {
210
- onDone: function onDone() {},
211
- allowValidation: false
212
- });
213
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.jsx"],"names":["log","EditableHtml","props","value","done","html","htmlParsed","markup","onChange","onDone","position","node","editorRef","change","c","lastText","document","getNextText","key","getLastText","editorDOM","querySelector","activeElement","blur","focus","moveFocusTo","text","length","moveAnchorTo","onEditingDone","v","state","allowValidation","current","equals","setState","ref","rootRef","React","Component","PropTypes","func","isRequired","string","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,wBAAN,CAAZ;AACA;;;;AAKA;;;;;;IAMqBC,Y;;;;;AAanB,wBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,sFAAMA,KAAN;;AADiB,+DAsBR,UAACC,KAAD,EAAQC,IAAR,EAAiB;AAC1B,UAAMC,IAAI,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,GAAf;AACD;AACF,SALH;AAME,QAAA,SAAS,EAAE,mBAAAA,GAAG;AAAA,iBAAIA,GAAG,KAAK,MAAI,CAACxB,SAAL,GAAiBwB,GAAtB,CAAP;AAAA;AANhB,SAOMlC,KAPN,EADF;AAWD;;;;EA3GuCoC,kBAAMC,S;;;;gBAA3BtC,Y,eACA;AACjBO,EAAAA,QAAQ,EAAEgC,sBAAUC,IAAV,CAAeC,UADR;AAEjBjC,EAAAA,MAAM,EAAE+B,sBAAUC,IAFD;AAGjBlC,EAAAA,MAAM,EAAEiC,sBAAUG,MAAV,CAAiBD,UAHR;AAIjBV,EAAAA,eAAe,EAAEQ,sBAAUI;AAJV,C;;gBADA3C,Y,kBAQG;AACpBQ,EAAAA,MAAM,EAAE,kBAAM,CAAE,CADI;AAEpBuB,EAAAA,eAAe,EAAE;AAFG,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Editor, { DEFAULT_PLUGINS, ALL_PLUGINS } from './editor';\nimport { htmlToValue, valueToHtml } from './serialization';\nimport { parseDegrees } from './parse-html';\nimport debug from 'debug';\n\nconst log = debug('@pie-lib:editable-html');\n/**\n * Export lower level Editor and serialization functions.\n */\nexport { htmlToValue, valueToHtml, Editor, DEFAULT_PLUGINS, ALL_PLUGINS };\n\n/**\n * Wrapper around the editor that exposes a `markup` and `onChange(markup:string)` api.\n * Because of the mismatch between the markup and the `Value` we need to convert the incoming markup to a value and\n * compare it. TODO: This is an interim fix, we'll need to strip back `Editor` and look how best to maintain the\n * `markup` api whilst avoiding the serialization mismatch. We should be making better use of schemas w/ normalize.\n */\nexport default class EditableHtml extends React.Component {\n static propTypes = {\n onChange: PropTypes.func.isRequired,\n onDone: PropTypes.func,\n markup: PropTypes.string.isRequired,\n allowValidation: PropTypes.bool\n };\n\n static defaultProps = {\n onDone: () => {},\n allowValidation: false\n };\n\n constructor(props) {\n super(props);\n const v = htmlToValue(props.markup);\n this.state = {\n value: v\n };\n }\n\n // eslint-disable-next-line react/no-deprecated\n componentWillReceiveProps(props) {\n if (!props.allowValidation && props.markup === this.props.markup) {\n return;\n }\n\n const v = htmlToValue(props.markup);\n const current = htmlToValue(this.props.markup);\n\n if (!v.equals(current)) {\n this.setState({ value: v });\n }\n }\n\n onChange = (value, done) => {\n const html = valueToHtml(value);\n const htmlParsed = parseDegrees(html);\n\n log('value as html: ', html);\n\n if (html !== this.props.markup) {\n this.props.onChange(htmlParsed);\n }\n\n if (done) {\n this.props.onDone(htmlParsed);\n }\n };\n\n focus = (position, node) => {\n if (this.editorRef) {\n this.editorRef.change(c => {\n const lastText = node\n ? c.value.document.getNextText(node.key)\n : c.value.document.getLastText();\n const editorDOM = document.querySelector(\n `[data-key=\"${this.editorRef.value.document.key}\"]`\n );\n\n if (editorDOM !== document.activeElement) {\n document.activeElement.blur();\n }\n\n c.focus();\n\n if (position === 'end' && lastText) {\n c.moveFocusTo(lastText.key, lastText.text.length).moveAnchorTo(\n lastText.key,\n lastText.text.length\n );\n }\n\n if (position === 'beginning' && lastText) {\n c.moveFocusTo(lastText.key, 0).moveAnchorTo(lastText.key, 0);\n }\n });\n }\n };\n\n finishEditing = () => {\n if (this.editorRef) {\n this.editorRef.props.onEditingDone();\n }\n };\n\n render() {\n const { value } = this.state;\n const props = {\n ...this.props,\n markup: null,\n value,\n onChange: this.onChange,\n focus: this.focus\n };\n\n return (\n <Editor\n onRef={ref => {\n if (ref) {\n this.rootRef = ref;\n }\n }}\n editorRef={ref => ref && (this.editorRef = ref)}\n {...props}\n />\n );\n }\n}\n"],"file":"index.js"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.parseDegrees = void 0;
7
-
8
- var parseDegrees = function parseDegrees(html) {
9
- return html // removes \( use case: 50°
10
- .replace(/\\[(]/g, '') // removes \) use case: 50°+m<1
11
- .replace(/\\[)]/g, '') // removes \degree use case: 50°
12
- .replace(/\\degree/g, '&deg;');
13
- };
14
-
15
- exports.parseDegrees = parseDegrees;
16
- //# sourceMappingURL=parse-html.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/parse-html.js"],"names":["parseDegrees","html","replace"],"mappings":";;;;;;;AAAO,IAAMA,YAAY,GAAG,SAAfA,YAAe,CAAAC,IAAI;AAAA,SAC9BA,IAAI,CACF;AADE,GAEDC,OAFH,CAEW,QAFX,EAEqB,EAFrB,EAGE;AAHF,GAIGA,OAJH,CAIW,QAJX,EAIqB,EAJrB,EAKE;AALF,GAMGA,OANH,CAMW,WANX,EAMwB,OANxB,CAD8B;AAAA,CAAzB","sourcesContent":["export const parseDegrees = html =>\n html\n // removes \\( use case: 50°\n .replace(/\\\\[(]/g, '')\n // removes \\) use case: 50°+m<1\n .replace(/\\\\[)]/g, '')\n // removes \\degree use case: 50°\n .replace(/\\\\degree/g, '&deg;');\n"],"file":"parse-html.js"}
@@ -1,248 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports["default"] = exports.Component = void 0;
7
-
8
- var _LinearProgress = _interopRequireDefault(require("@material-ui/core/LinearProgress"));
9
-
10
- var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
- var _react = _interopRequireDefault(require("react"));
13
-
14
- var _classnames = _interopRequireDefault(require("classnames"));
15
-
16
- var _debug = _interopRequireDefault(require("debug"));
17
-
18
- var _styles = require("@material-ui/core/styles");
19
-
20
- var _slatePropTypes = _interopRequireDefault(require("slate-prop-types"));
21
-
22
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
-
24
- function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
25
-
26
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
-
28
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
-
30
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
-
32
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
33
-
34
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
35
-
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
39
-
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
-
44
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
45
-
46
- var log = (0, _debug["default"])('@pie-lib:editable-html:plugins:image:component');
47
-
48
- var size = function size(s) {
49
- return s ? "".concat(s, "px") : 'auto';
50
- };
51
-
52
- var Component =
53
- /*#__PURE__*/
54
- function (_React$Component) {
55
- _inherits(Component, _React$Component);
56
-
57
- function Component() {
58
- var _getPrototypeOf2;
59
-
60
- var _this;
61
-
62
- _classCallCheck(this, Component);
63
-
64
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
65
- args[_key] = arguments[_key];
66
- }
67
-
68
- _this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(Component)).call.apply(_getPrototypeOf2, [this].concat(args)));
69
-
70
- _defineProperty(_assertThisInitialized(_this), "getWidth", function (percent) {
71
- var multiplier = percent / 100;
72
- return _this.img.naturalWidth * multiplier;
73
- });
74
-
75
- _defineProperty(_assertThisInitialized(_this), "getHeight", function (percent) {
76
- var multiplier = percent / 100;
77
- return _this.img.naturalHeight * multiplier;
78
- });
79
-
80
- _defineProperty(_assertThisInitialized(_this), "getPercentFromWidth", function (width) {
81
- var floored = width / _this.img.naturalWidth * 4;
82
- return parseInt(floored.toFixed(0) * 25, 10);
83
- });
84
-
85
- _defineProperty(_assertThisInitialized(_this), "applySizeData", function () {
86
- var _this$props = _this.props,
87
- node = _this$props.node,
88
- editor = _this$props.editor;
89
- var resizePercent = node.data.get('resizePercent');
90
- log('[applySizeData]: resizePercent: ', resizePercent);
91
- var update = node.data;
92
-
93
- if (resizePercent) {
94
- update = update.set('width', _this.getWidth(resizePercent));
95
- update = update.set('height', _this.getHeight(resizePercent));
96
- } else {
97
- var w = update.get('width');
98
-
99
- if (w) {
100
- update = update.set('resizePercent', _this.getPercentFromWidth(w));
101
- }
102
- }
103
-
104
- log('[applySizeData] update: ', update);
105
-
106
- if (!update.equals(node.data)) {
107
- editor.change(function (c) {
108
- return c.setNodeByKey(node.key, {
109
- data: update
110
- });
111
- });
112
- }
113
- });
114
-
115
- return _this;
116
- }
117
-
118
- _createClass(Component, [{
119
- key: "componentDidMount",
120
- value: function componentDidMount() {
121
- this.applySizeData();
122
- }
123
- }, {
124
- key: "componentDidUpdate",
125
- value: function componentDidUpdate() {
126
- this.applySizeData();
127
- }
128
- }, {
129
- key: "getSize",
130
- value: function getSize(data) {
131
- return {
132
- width: size(data.get('width')),
133
- height: size(data.get('height')),
134
- objectFit: 'contain'
135
- };
136
- }
137
- }, {
138
- key: "render",
139
- value: function render() {
140
- var _this2 = this;
141
-
142
- var _this$props2 = this.props,
143
- node = _this$props2.node,
144
- editor = _this$props2.editor,
145
- classes = _this$props2.classes,
146
- attributes = _this$props2.attributes,
147
- onFocus = _this$props2.onFocus;
148
- var active = editor.value.isFocused && editor.value.selection.hasEdgeIn(node);
149
- var src = node.data.get('src');
150
- var percent = node.data.get('percent');
151
- var loaded = node.data.get('loaded') !== false;
152
- var deleteStatus = node.data.get('deleteStatus');
153
- log('[render] node.data:', node.data);
154
- var size = this.getSize(node.data);
155
- log('[render] style:', size);
156
- var className = (0, _classnames["default"])(classes.root, active && classes.active, !loaded && classes.loading, deleteStatus === 'pending' && classes.pendingDelete);
157
- var progressClasses = (0, _classnames["default"])(classes.progress, loaded && classes.hideProgress);
158
- return [_react["default"].createElement("span", {
159
- key: 'sp1'
160
- }, "\xA0"), _react["default"].createElement("div", {
161
- key: 'comp',
162
- onFocus: onFocus,
163
- className: className
164
- }, _react["default"].createElement(_LinearProgress["default"], {
165
- mode: "determinate",
166
- value: percent > 0 ? percent : 0,
167
- className: progressClasses
168
- }), _react["default"].createElement("img", _extends({
169
- src: src
170
- }, attributes, {
171
- ref: function ref(r) {
172
- return _this2.img = r;
173
- },
174
- style: size
175
- }))), _react["default"].createElement("span", {
176
- key: 'sp2'
177
- }, "\xA0")];
178
- }
179
- }]);
180
-
181
- return Component;
182
- }(_react["default"].Component);
183
-
184
- exports.Component = Component;
185
-
186
- _defineProperty(Component, "propTypes", {
187
- node: _slatePropTypes["default"].node.isRequired,
188
- editor: _propTypes["default"].shape({
189
- change: _propTypes["default"].func.isRequired,
190
- value: _propTypes["default"].object
191
- }).isRequired,
192
- classes: _propTypes["default"].object.isRequired,
193
- attributes: _propTypes["default"].object,
194
- onFocus: _propTypes["default"].func,
195
- onBlur: _propTypes["default"].func
196
- });
197
-
198
- var styles = function styles(theme) {
199
- return {
200
- portal: {
201
- position: 'absolute',
202
- opacity: 0,
203
- transition: 'opacity 200ms linear'
204
- },
205
- floatingButtonRow: {
206
- backgroundColor: 'white',
207
- borderRadius: '1px',
208
- display: 'flex',
209
- padding: '10px',
210
- border: 'solid 1px #eeeeee',
211
- boxShadow: '0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)'
212
- },
213
- progress: {
214
- position: 'absolute',
215
- left: '0',
216
- width: '100%',
217
- top: '0%',
218
- transition: 'opacity 200ms linear'
219
- },
220
- hideProgress: {
221
- opacity: 0
222
- },
223
- loading: {
224
- opacity: 0.3
225
- },
226
- pendingDelete: {
227
- opacity: 0.3
228
- },
229
- root: {
230
- position: 'relative',
231
- border: 'solid 1px white',
232
- display: 'inline-block',
233
- transition: 'opacity 200ms linear'
234
- },
235
- active: {
236
- border: "solid 1px ".concat(theme.palette.primary.main)
237
- },
238
- "delete": {
239
- position: 'absolute',
240
- right: 0
241
- }
242
- };
243
- };
244
-
245
- var _default = (0, _styles.withStyles)(styles)(Component);
246
-
247
- exports["default"] = _default;
248
- //# sourceMappingURL=component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/image/component.jsx"],"names":["log","size","s","Component","percent","multiplier","img","naturalWidth","naturalHeight","width","floored","parseInt","toFixed","props","node","editor","resizePercent","data","get","update","set","getWidth","getHeight","w","getPercentFromWidth","equals","change","c","setNodeByKey","key","applySizeData","height","objectFit","classes","attributes","onFocus","active","value","isFocused","selection","hasEdgeIn","src","loaded","deleteStatus","getSize","className","root","loading","pendingDelete","progressClasses","progress","hideProgress","r","React","SlatePropTypes","isRequired","PropTypes","shape","func","object","onBlur","styles","theme","portal","position","opacity","transition","floatingButtonRow","backgroundColor","borderRadius","display","padding","border","boxShadow","left","top","palette","primary","main","right"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,gDAAN,CAAZ;;AAEA,IAAMC,IAAI,GAAG,SAAPA,IAAO,CAAAC,CAAC;AAAA,SAAKA,CAAC,aAAMA,CAAN,UAAc,MAApB;AAAA,CAAd;;IAEaC,S;;;;;;;;;;;;;;;;;;+DAaA,UAAAC,OAAO,EAAI;AACpB,UAAMC,UAAU,GAAGD,OAAO,GAAG,GAA7B;AACA,aAAO,MAAKE,GAAL,CAASC,YAAT,GAAwBF,UAA/B;AACD,K;;gEAEW,UAAAD,OAAO,EAAI;AACrB,UAAMC,UAAU,GAAGD,OAAO,GAAG,GAA7B;AACA,aAAO,MAAKE,GAAL,CAASE,aAAT,GAAyBH,UAAhC;AACD,K;;0EAEqB,UAAAI,KAAK,EAAI;AAC7B,UAAIC,OAAO,GAAID,KAAK,GAAG,MAAKH,GAAL,CAASC,YAAlB,GAAkC,CAAhD;AACA,aAAOI,QAAQ,CAACD,OAAO,CAACE,OAAR,CAAgB,CAAhB,IAAqB,EAAtB,EAA0B,EAA1B,CAAf;AACD,K;;oEAEe,YAAM;AAAA,wBACK,MAAKC,KADV;AAAA,UACZC,IADY,eACZA,IADY;AAAA,UACNC,MADM,eACNA,MADM;AAGpB,UAAMC,aAAa,GAAGF,IAAI,CAACG,IAAL,CAAUC,GAAV,CAAc,eAAd,CAAtB;AACAlB,MAAAA,GAAG,CAAC,kCAAD,EAAqCgB,aAArC,CAAH;AAEA,UAAIG,MAAM,GAAGL,IAAI,CAACG,IAAlB;;AAEA,UAAID,aAAJ,EAAmB;AACjBG,QAAAA,MAAM,GAAGA,MAAM,CAACC,GAAP,CAAW,OAAX,EAAoB,MAAKC,QAAL,CAAcL,aAAd,CAApB,CAAT;AACAG,QAAAA,MAAM,GAAGA,MAAM,CAACC,G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AAA,GAAG,EAAE,IAJG;AAKRT,MAAAA,UAAU,EAAE;AALJ,KAfa;AAsBvBf,IAAAA,YAAY,EAAE;AACZc,MAAAA,OAAO,EAAE;AADG,KAtBS;AAyBvBlB,IAAAA,OAAO,EAAE;AACPkB,MAAAA,OAAO,EAAE;AADF,KAzBc;AA4BvBjB,IAAAA,aAAa,EAAE;AACbiB,MAAAA,OAAO,EAAE;AADI,KA5BQ;AA+BvBnB,IAAAA,IAAI,EAAE;AACJkB,MAAAA,QAAQ,EAAE,UADN;AAEJQ,MAAAA,MAAM,EAAE,iBAFJ;AAGJF,MAAAA,OAAO,EAAE,cAHL;AAIJJ,MAAAA,UAAU,EAAE;AAJR,KA/BiB;AAqCvB9B,IAAAA,MAAM,EAAE;AACNoC,MAAAA,MAAM,sBAAeV,KAAK,CAACc,OAAN,CAAcC,OAAd,CAAsBC,IAArC;AADA,KArCe;AAwCvB,cAAQ;AACNd,MAAAA,QAAQ,EAAE,UADJ;AAENe,MAAAA,KAAK,EAAE;AAFD;AAxCe,GAAL;AAAA,CAApB;;eA8Ce,wBAAWlB,MAAX,EAAmB1D,SAAnB,C","sourcesContent":["import LinearProgress from '@material-ui/core/LinearProgress';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nimport debug from 'debug';\nimport { withStyles } from '@material-ui/core/styles';\nimport SlatePropTypes from 'slate-prop-types';\n\nconst log = debug('@pie-lib:editable-html:plugins:image:component');\n\nconst size = s => (s ? `${s}px` : 'auto');\n\nexport class Component extends React.Component {\n static propTypes = {\n node: SlatePropTypes.node.isRequired,\n editor: PropTypes.shape({\n change: PropTypes.func.isRequired,\n value: PropTypes.object\n }).isRequired,\n classes: PropTypes.object.isRequired,\n attributes: PropTypes.object,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func\n };\n\n getWidth = percent => {\n const multiplier = percent / 100;\n return this.img.naturalWidth * multiplier;\n };\n\n getHeight = percent => {\n const multiplier = percent / 100;\n return this.img.naturalHeight * multiplier;\n };\n\n getPercentFromWidth = width => {\n var floored = (width / this.img.naturalWidth) * 4;\n return parseInt(floored.toFixed(0) * 25, 10);\n };\n\n applySizeData = () => {\n const { node, editor } = this.props;\n\n const resizePercent = node.data.get('resizePercent');\n log('[applySizeData]: resizePercent: ', resizePercent);\n\n let update = node.data;\n\n if (resizePercent) {\n update = update.set('width', this.getWidth(resizePercent));\n update = update.set('height', this.getHeight(resizePercent));\n } else {\n const w = update.get('width');\n if (w) {\n update = update.set('resizePercent', this.getPercentFromWidth(w));\n }\n }\n\n log('[applySizeData] update: ', update);\n\n if (!update.equals(node.data)) {\n editor.change(c => c.setNodeByKey(node.key, { data: update }));\n }\n };\n\n componentDidMount() {\n this.applySizeData();\n }\n\n componentDidUpdate() {\n this.applySizeData();\n }\n\n getSize(data) {\n return {\n width: size(data.get('width')),\n height: size(data.get('height')),\n objectFit: 'contain'\n };\n }\n\n render() {\n const { node, editor, classes, attributes, onFocus } = this.props;\n const active = editor.value.isFocused && editor.value.selection.hasEdgeIn(node);\n const src = node.data.get('src');\n const percent = node.data.get('percent');\n const loaded = node.data.get('loaded') !== false;\n const deleteStatus = node.data.get('deleteStatus');\n\n log('[render] node.data:', node.data);\n\n const size = this.getSize(node.data);\n\n log('[render] style:', size);\n\n const className = classNames(\n classes.root,\n active && classes.active,\n !loaded && classes.loading,\n deleteStatus === 'pending' && classes.pendingDelete\n );\n\n const progressClasses = classNames(classes.progress, loaded && classes.hideProgress);\n\n return [\n <span key={'sp1'}>&nbsp;</span>,\n <div key={'comp'} onFocus={onFocus} className={className}>\n <LinearProgress\n mode=\"determinate\"\n value={percent > 0 ? percent : 0}\n className={progressClasses}\n />\n <img src={src} {...attributes} ref={r => (this.img = r)} style={size} />\n </div>,\n <span key={'sp2'}>&nbsp;</span>\n ];\n }\n}\n\nconst styles = theme => ({\n portal: {\n position: 'absolute',\n opacity: 0,\n transition: 'opacity 200ms linear'\n },\n floatingButtonRow: {\n backgroundColor: 'white',\n borderRadius: '1px',\n display: 'flex',\n padding: '10px',\n border: 'solid 1px #eeeeee',\n boxShadow:\n '0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)'\n },\n progress: {\n position: 'absolute',\n left: '0',\n width: '100%',\n top: '0%',\n transition: 'opacity 200ms linear'\n },\n hideProgress: {\n opacity: 0\n },\n loading: {\n opacity: 0.3\n },\n pendingDelete: {\n opacity: 0.3\n },\n root: {\n position: 'relative',\n border: 'solid 1px white',\n display: 'inline-block',\n transition: 'opacity 200ms linear'\n },\n active: {\n border: `solid 1px ${theme.palette.primary.main}`\n },\n delete: {\n position: 'absolute',\n right: 0\n }\n});\n\nexport default withStyles(styles)(Component);\n"],"file":"component.js"}