@pie-element/ebsr 6.6.3-next.1085 → 6.6.3-next.1092

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 (491) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/configure/CHANGELOG.md +77 -0
  3. package/configure/package.json +3 -3
  4. package/controller/CHANGELOG.md +8 -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 -1826
  9. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
  10. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +0 -35
  11. package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
  12. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -1367
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -116
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -198
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -615
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
  21. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +0 -18
  22. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +0 -1
  23. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -20
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -768
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -18
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -305
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
  30. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -36
  31. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
  32. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -431
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -337
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -52
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
  38. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
  39. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -364
  40. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -294
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -298
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +0 -157
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +0 -1
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -174
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -151
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -97
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -254
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +0 -129
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +0 -1
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -35
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
  57. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
  58. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1695
  59. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
  60. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
  61. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -44
  62. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
  63. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
  64. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  65. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
  66. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  67. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -398
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -185
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -178
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -145
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -131
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -101
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -105
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -87
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -364
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -265
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -130
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -412
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -106
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -43
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -319
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -58
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -96
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  140. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
  142. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  143. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -276
  144. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
  145. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
  146. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  147. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
  148. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
  149. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
  150. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
  151. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
  152. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
  153. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  154. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  155. package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -34
  156. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
  157. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -524
  158. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
  159. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
  160. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -86
  161. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
  162. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -155
  163. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
  164. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
  165. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
  166. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
  167. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  168. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -65
  169. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -75
  170. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
  171. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3327
  172. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1676
  173. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
  174. package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
  175. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
  176. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -837
  177. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  178. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -224
  179. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  180. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  181. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  182. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js +0 -70
  183. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js.map +0 -1
  184. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -261
  185. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
  186. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -362
  187. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
  188. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -393
  189. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  190. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -78
  191. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  192. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -221
  193. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  194. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -135
  195. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  196. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -141
  197. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  198. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -204
  199. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  200. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -347
  201. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  202. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -339
  203. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  204. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -434
  205. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  206. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -99
  207. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  208. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
  209. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  210. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -251
  211. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  212. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  213. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  214. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -54
  215. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  216. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
  217. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  218. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -288
  219. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  220. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
  221. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  222. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
  223. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  224. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  225. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  226. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -497
  227. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  228. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -158
  229. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  230. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -132
  231. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  232. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
  233. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  234. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -263
  235. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  236. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
  237. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  238. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -161
  239. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  240. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -346
  241. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  242. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  243. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  244. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -428
  245. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  246. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  247. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  248. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -51
  249. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
  250. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
  251. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
  252. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
  253. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
  254. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
  255. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
  256. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
  257. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
  258. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
  259. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
  260. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
  261. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
  262. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
  263. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
  264. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
  265. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
  266. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
  267. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
  268. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
  269. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -724
  270. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -145
  271. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  272. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  273. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popover.js +0 -45
  274. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -237
  275. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -444
  276. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -318
  277. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -32
  278. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -182
  279. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
  280. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -115
  281. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -175
  282. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -283
  283. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -284
  284. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
  285. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
  286. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  287. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -187
  288. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
  289. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
  290. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
  291. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -259
  292. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
  293. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
  294. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
  295. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -437
  296. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
  297. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -111
  298. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
  299. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -225
  300. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
  301. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -97
  302. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -323
  303. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
  304. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -385
  305. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  306. package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
  307. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1547
  308. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -765
  309. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
  310. package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
  311. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -129
  312. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
  313. package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -80
  314. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
  315. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -440
  316. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
  317. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
  318. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
  319. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
  320. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
  321. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
  322. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
  323. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -46
  324. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
  325. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
  326. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
  327. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
  328. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
  329. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -16
  330. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
  331. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -35
  332. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
  333. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -31
  334. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
  335. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -165
  336. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
  337. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
  338. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
  339. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
  340. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
  341. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
  342. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
  343. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
  344. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
  345. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
  346. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
  347. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -69
  348. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
  349. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -23
  350. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
  351. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -17
  352. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
  353. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -45
  354. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
  355. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
  356. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
  357. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
  358. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
  359. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -130
  360. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
  361. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
  362. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
  363. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -206
  364. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
  365. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
  366. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
  367. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -24
  368. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
  369. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -257
  370. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
  371. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -224
  372. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
  373. package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
  374. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -56
  375. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
  376. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -367
  377. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
  378. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
  379. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
  380. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -27
  381. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
  382. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
  383. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
  384. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -27
  385. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
  386. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -140
  387. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -379
  388. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
  389. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
  390. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
  391. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
  392. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -60
  393. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
  394. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -9
  395. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -36
  396. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
  397. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
  398. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
  399. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
  400. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
  401. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
  402. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
  403. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
  404. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -145
  405. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  406. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -457
  407. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  408. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  409. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  410. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  411. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  412. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  413. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  414. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  415. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  416. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  417. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  418. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -281
  419. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  420. package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
  421. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  422. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  423. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  424. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  425. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  426. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  427. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  428. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  429. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  430. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  431. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -235
  432. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -862
  433. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -639
  434. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
  435. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
  436. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
  437. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -483
  438. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
  439. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -280
  440. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
  441. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -173
  442. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
  443. package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -37
  444. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
  445. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -388
  446. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -202
  447. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -107
  448. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  449. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -626
  450. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  451. package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
  452. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  453. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  454. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  455. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  456. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  457. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  458. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  459. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  460. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  461. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  462. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  463. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  464. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  465. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  466. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  467. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  468. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  469. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  470. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  471. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  472. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  473. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  474. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  475. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  476. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  477. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  478. package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
  479. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  480. package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  481. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  482. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  483. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  484. package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  485. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  486. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  487. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  488. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  489. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  490. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  491. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
@@ -1,497 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.serialization = exports.reactAttributes = exports.parseStyleString = exports.moveFocusToBeginningOfTable = exports["default"] = void 0;
9
-
10
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
-
14
- var _react = _interopRequireDefault(require("react"));
15
-
16
- var _slateEditTable = _interopRequireDefault(require("slate-edit-table"));
17
-
18
- var _slate = require("slate");
19
-
20
- var _debug = _interopRequireDefault(require("debug"));
21
-
22
- var _GridOn = _interopRequireDefault(require("@material-ui/icons/GridOn"));
23
-
24
- var _tableToolbar = _interopRequireDefault(require("./table-toolbar"));
25
-
26
- var _propTypes = _interopRequireDefault(require("prop-types"));
27
-
28
- var _slatePropTypes = _interopRequireDefault(require("slate-prop-types"));
29
-
30
- var _styles = require("@material-ui/core/styles");
31
-
32
- var _reactAttrConverter = _interopRequireDefault(require("react-attr-converter"));
33
-
34
- var _toStyle = require("to-style");
35
-
36
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
-
38
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
39
-
40
- var log = (0, _debug["default"])('@pie-lib:editable-html:plugins:table');
41
- var Table = (0, _styles.withStyles)(function () {
42
- return {
43
- table: {}
44
- };
45
- })(function (props) {
46
- var nodeAttributes = dataToAttributes(props.node.data);
47
- return /*#__PURE__*/_react["default"].createElement("table", (0, _extends2["default"])({
48
- className: props.classes.table
49
- }, props.attributes, nodeAttributes, {
50
- onFocus: props.onFocus,
51
- onBlur: props.onBlur
52
- }), /*#__PURE__*/_react["default"].createElement("tbody", null, props.children));
53
- });
54
- Table.propTypes = {
55
- attributes: _propTypes["default"].object,
56
- onFocus: _propTypes["default"].func,
57
- onBlur: _propTypes["default"].func,
58
- node: _slatePropTypes["default"].node,
59
- children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
60
- };
61
-
62
- var TableRow = function TableRow(props) {
63
- return /*#__PURE__*/_react["default"].createElement("tr", props.attributes, props.children);
64
- };
65
-
66
- TableRow.propTypes = {
67
- attributes: _propTypes["default"].object,
68
- onFocus: _propTypes["default"].func,
69
- onBlur: _propTypes["default"].func,
70
- children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
71
- };
72
- var TableCell = (0, _styles.withStyles)(function () {
73
- return {
74
- td: {
75
- minWidth: '25px'
76
- }
77
- };
78
- })(function (props) {
79
- var Tag = props.node.data.get('header') ? 'th' : 'td';
80
- var nodeAttributes = dataToAttributes(props.node.data);
81
- delete nodeAttributes.header;
82
- return /*#__PURE__*/_react["default"].createElement(Tag, (0, _extends2["default"])({}, props.attributes, nodeAttributes, {
83
- colSpan: props.node.data.get('colspan'),
84
- className: props.classes[Tag],
85
- onFocus: props.onFocus,
86
- onBlur: props.onBlur
87
- }), props.children);
88
- });
89
- TableCell.propTypes = {
90
- attributes: _propTypes["default"].object,
91
- onFocus: _propTypes["default"].func,
92
- onBlur: _propTypes["default"].func,
93
- children: _propTypes["default"].oneOfType([_propTypes["default"].arrayOf(_propTypes["default"].node), _propTypes["default"].node]).isRequired
94
- };
95
-
96
- var moveFocusToBeginningOfTable = function moveFocusToBeginningOfTable(change) {
97
- var addedTable = change.value.document.findDescendant(function (d) {
98
- return !!d.data && !!d.data.get('newTable');
99
- });
100
-
101
- if (!addedTable) {
102
- return;
103
- }
104
-
105
- change.collapseToStartOf(addedTable);
106
- var update = addedTable.data.remove('newTable');
107
- change.setNodeByKey(addedTable.key, {
108
- data: update
109
- });
110
- };
111
-
112
- exports.moveFocusToBeginningOfTable = moveFocusToBeginningOfTable;
113
-
114
- var _default = function _default(opts, toolbarPlugins
115
- /* : {toolbar: {}}[] */
116
- ) {
117
- var core = (0, _slateEditTable["default"])({
118
- typeContent: 'div'
119
- }); // fix outdated schema
120
-
121
- if (core.schema && core.schema.blocks) {
122
- Object.keys(core.schema.blocks).forEach(function (key) {
123
- var block = core.schema.blocks[key];
124
-
125
- if (block.parent) {
126
- if (block.nodes[0].types) {
127
- block.nodes[0] = {
128
- type: block.nodes[0].types[0]
129
- };
130
- }
131
-
132
- if (block.nodes[0].objects) {
133
- block.nodes[0] = {
134
- object: block.nodes[0].objects[0]
135
- };
136
- }
137
-
138
- block.parent = {
139
- type: block.parent.types[0]
140
- };
141
- } else {
142
- block.nodes[0] = {
143
- type: block.nodes[0].types[0]
144
- };
145
- }
146
- });
147
- }
148
-
149
- core.utils.getTableBlock = function (containerNode, key) {
150
- var node = containerNode.getDescendant(key);
151
- var ancestors = containerNode.getAncestors(key).push(node);
152
- return ancestors.findLast(function (p) {
153
- return p.type === 'table';
154
- });
155
- };
156
-
157
- core.utils.createTableWithOptions = function (row, columns, extra) {
158
- var createdTable = core.utils.createTable(row, columns);
159
-
160
- var newTable = _slate.Block.create(_objectSpread(_objectSpread({}, createdTable.toJSON()), extra));
161
-
162
- return newTable;
163
- };
164
-
165
- core.toolbar = {
166
- icon: /*#__PURE__*/_react["default"].createElement(_GridOn["default"], null),
167
- onClick: function onClick(value, onChange) {
168
- log('insert table');
169
- var change = value.change();
170
- var newTable = core.utils.createTableWithOptions(2, 2, {
171
- data: {
172
- border: '1',
173
- newTable: true
174
- }
175
- });
176
- change.insertBlock(newTable);
177
- moveFocusToBeginningOfTable(change);
178
- onChange(change);
179
- },
180
- supports: function supports(node, value) {
181
- return node && node.object === 'block' && core.utils.isSelectionInTable(value);
182
- },
183
-
184
- /**
185
- * Note - the node may not be a table node - it may be a node inside a table.
186
- */
187
- customToolbar: function customToolbar(node, value, onToolbarDone) {
188
- log('[customToolbar] node.data: ', node.data);
189
- var tableBlock = core.utils.getTableBlock(value.document, node.key);
190
- log('[customToolbar] tableBlock: ', tableBlock);
191
-
192
- var hasBorder = function hasBorder() {
193
- return tableBlock.data.get('border') && tableBlock.data.get('border') !== '0';
194
- };
195
-
196
- var addRow = function addRow() {
197
- var change = core.changes.insertRow(value.change());
198
- onToolbarDone(change, false);
199
- };
200
-
201
- var addColumn = function addColumn() {
202
- var change = core.changes.insertColumn(value.change());
203
- onToolbarDone(change, false);
204
- };
205
-
206
- var removeRow = function removeRow() {
207
- var change = core.changes.removeRow(value.change());
208
- onToolbarDone(change, false);
209
- };
210
-
211
- var removeColumn = function removeColumn() {
212
- var change = core.changes.removeColumn(value.change());
213
- onToolbarDone(change, false);
214
- };
215
-
216
- var removeTable = function removeTable() {
217
- var change = core.changes.removeTable(value.change());
218
- onToolbarDone(change, false);
219
- };
220
-
221
- var toggleBorder = function toggleBorder() {
222
- var data = tableBlock.data;
223
- var update = data.set('border', hasBorder() ? '0' : '1');
224
- log('[toggleBorder] update: ', update);
225
- var change = value.change().setNodeByKey(tableBlock.key, {
226
- data: update
227
- });
228
- onToolbarDone(change, false);
229
- };
230
-
231
- var onDone = function onDone() {
232
- log('[onDone] call onToolbarDone...');
233
- onToolbarDone(null, true);
234
- };
235
-
236
- var Tb = function Tb() {
237
- return /*#__PURE__*/_react["default"].createElement(_tableToolbar["default"], {
238
- plugins: toolbarPlugins,
239
- onChange: function onChange(c) {
240
- return onToolbarDone(c, false);
241
- },
242
- value: value,
243
- onAddRow: addRow,
244
- onRemoveRow: removeRow,
245
- onAddColumn: addColumn,
246
- onRemoveColumn: removeColumn,
247
- onRemoveTable: removeTable,
248
- hasBorder: hasBorder(),
249
- onToggleBorder: toggleBorder,
250
- onDone: onDone
251
- });
252
- };
253
-
254
- return Tb;
255
- }
256
- };
257
-
258
- var Node = function Node(props) {
259
- switch (props.node.type) {
260
- case 'table':
261
- return /*#__PURE__*/_react["default"].createElement(Table, (0, _extends2["default"])({}, props, {
262
- onFocus: opts.onFocus,
263
- onBlur: opts.onBlur
264
- }));
265
-
266
- case 'table_row':
267
- return /*#__PURE__*/_react["default"].createElement(TableRow, props);
268
-
269
- case 'table_cell':
270
- return /*#__PURE__*/_react["default"].createElement(TableCell, (0, _extends2["default"])({}, props, {
271
- onFocus: opts.onFocus,
272
- onBlur: opts.onBlur
273
- }));
274
-
275
- default:
276
- return null;
277
- }
278
- };
279
-
280
- Node.propTypes = {
281
- node: _propTypes["default"].object
282
- };
283
-
284
- core.normalizeNode = function (node) {
285
- if (node.object !== 'document') {
286
- return;
287
- }
288
-
289
- var tableAdded = node.findDescendant(function (d) {
290
- return d.data && d.data.get('newTable');
291
- });
292
-
293
- if (!tableAdded) {
294
- return;
295
- }
296
-
297
- var nodeToSearch = node.getParent(tableAdded.key) || node;
298
- var shouldAddTextAfterNode = false;
299
- var indexToNotHaveTableOn = nodeToSearch.nodes.size - 1;
300
- var indexOfLastTable = nodeToSearch.nodes.findLastIndex(function (d) {
301
- return d.type === 'table';
302
- }); // if the last table in the document is of type table, we need to do the change
303
-
304
- if (indexOfLastTable === indexToNotHaveTableOn) {
305
- shouldAddTextAfterNode = true;
306
- }
307
-
308
- if (!shouldAddTextAfterNode) {
309
- return;
310
- }
311
-
312
- return function (change) {
313
- if (shouldAddTextAfterNode) {
314
- var tableJSON = tableAdded.toJSON(); // we remove the table node because otherwise we can't add the empty block after it
315
- // we need a block that contains text in order to do it
316
-
317
- change.removeNodeByKey(tableAdded.key);
318
-
319
- var newBlock = _slate.Block.create({
320
- object: 'block',
321
- type: 'div'
322
- }); // we add an empty block but that it's going to be normalized
323
- // because it will add the empty text to it like it should
324
-
325
-
326
- change.insertBlock(newBlock);
327
- change.withoutNormalization(function () {
328
- // we do these changes without normalization
329
- // we get the text previous to the new block added
330
- var prevText = change.value.document.getPreviousText(newBlock.key);
331
-
332
- if (prevText) {
333
- // we move focus to the previous text
334
- change.moveFocusTo(prevText.key, prevText.text.length).moveAnchorTo(prevText.key, prevText.text.length);
335
- } // we insert the table block between the first block with text and the last block with text
336
-
337
-
338
- change.insertBlock(_objectSpread(_objectSpread({}, tableJSON), {}, {
339
- data: _objectSpread(_objectSpread({}, tableJSON.data), {}, {
340
- newTable: true
341
- })
342
- }));
343
- moveFocusToBeginningOfTable(change);
344
- });
345
- }
346
- };
347
- };
348
-
349
- core.renderNode = Node;
350
- return core;
351
- };
352
-
353
- exports["default"] = _default;
354
-
355
- var parseStyleString = function parseStyleString(s) {
356
- var regex = /([\w-]*)\s*:\s*([^;]*)/g;
357
- var match;
358
- var result = {};
359
-
360
- while (match = regex.exec(s)) {
361
- result[match[1]] = match[2].trim();
362
- }
363
-
364
- return result;
365
- };
366
-
367
- exports.parseStyleString = parseStyleString;
368
-
369
- var reactAttributes = function reactAttributes(o) {
370
- return (0, _toStyle.object)(o, {
371
- camelize: true,
372
- addUnits: false
373
- });
374
- };
375
-
376
- exports.reactAttributes = reactAttributes;
377
-
378
- var attributesToMap = function attributesToMap(el) {
379
- return function (acc, attribute) {
380
- var value = el.getAttribute(attribute);
381
-
382
- if (value) {
383
- if (attribute === 'style') {
384
- var styleString = el.getAttribute(attribute);
385
- var reactStyleObject = reactAttributes(parseStyleString(styleString));
386
- acc['style'] = reactStyleObject;
387
- } else {
388
- acc[attribute] = el.getAttribute(attribute);
389
- }
390
- }
391
-
392
- return acc;
393
- };
394
- };
395
-
396
- var dataToAttributes = function dataToAttributes(data) {
397
- if (!data || !data.get) {
398
- return {};
399
- }
400
-
401
- return data.reduce(function (acc, v, name) {
402
- if (v) {
403
- acc[(0, _reactAttrConverter["default"])(name)] = v;
404
- }
405
-
406
- return acc;
407
- }, {});
408
- };
409
-
410
- var attributes = ['border', 'cellpadding', 'cellspacing', 'class', 'style'];
411
- var cellAttributes = ['colspan', 'rowspan', 'class', 'style'];
412
- var serialization = {
413
- deserialize: function deserialize(el, next) {
414
- var tag = el.tagName.toLowerCase();
415
-
416
- switch (tag) {
417
- case 'table':
418
- {
419
- var children = el.children.length === 1 && el.children[0].tagName.toLowerCase() === 'tbody' ? el.children[0].children : el.children;
420
- var c = Array.from(children);
421
- return {
422
- object: 'block',
423
- type: 'table',
424
- nodes: next(c),
425
- data: attributes.reduce(attributesToMap(el), {})
426
- };
427
- }
428
-
429
- case 'th':
430
- {
431
- return {
432
- object: 'block',
433
- type: 'table_cell',
434
- nodes: next(el.childNodes),
435
- data: cellAttributes.reduce(attributesToMap(el), {
436
- header: true
437
- })
438
- };
439
- }
440
-
441
- case 'tr':
442
- {
443
- return {
444
- object: 'block',
445
- type: 'table_row',
446
- nodes: next(Array.from(el.children))
447
- };
448
- }
449
-
450
- case 'td':
451
- {
452
- return {
453
- object: 'block',
454
- type: 'table_cell',
455
- nodes: next(Array.from(el.childNodes)),
456
- data: cellAttributes.reduce(attributesToMap(el), {
457
- header: false
458
- })
459
- };
460
- }
461
- }
462
- },
463
- serialize: function serialize(object, children) {
464
- if (object.object !== 'block') {
465
- return;
466
- }
467
-
468
- switch (object.type) {
469
- case 'table':
470
- {
471
- var _attributes = dataToAttributes(object.data);
472
-
473
- return /*#__PURE__*/_react["default"].createElement("table", _attributes, /*#__PURE__*/_react["default"].createElement("tbody", null, children));
474
- }
475
-
476
- case 'table_row':
477
- {
478
- return /*#__PURE__*/_react["default"].createElement("tr", null, children);
479
- }
480
-
481
- case 'table_cell':
482
- {
483
- var _attributes2 = dataToAttributes(object.data);
484
-
485
- delete _attributes2.header;
486
-
487
- if (object.data.get('header')) {
488
- return /*#__PURE__*/_react["default"].createElement("th", _attributes2, children);
489
- } else {
490
- return /*#__PURE__*/_react["default"].createElement("td", _attributes2, children);
491
- }
492
- }
493
- }
494
- }
495
- };
496
- exports.serialization = serialization;
497
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/table/index.jsx"],"names":["log","Table","table","props","nodeAttributes","dataToAttributes","node","data","classes","attributes","onFocus","onBlur","children","propTypes","PropTypes","object","func","SlatePropTypes","oneOfType","arrayOf","isRequired","TableRow","TableCell","td","minWidth","Tag","get","header","moveFocusToBeginningOfTable","change","addedTable","value","document","findDescendant","d","collapseToStartOf","update","remove","setNodeByKey","key","opts","toolbarPlugins","core","typeContent","schema","blocks","Object","keys","forEach","block","parent","nodes","types","type","objects","utils","getTableBlock","containerNode","getDescendant","ancestors","getAncestors","push","findLast","p","createTableWithOptions","row","columns","extra","createdTable","createTable","newTable","Block","create","toJSON","toolbar","icon","onClick","onChange","border","insertBlock","supports","isSelectionInTable","customToolbar","onToolbarDone","tableBlock","hasBorder","addRow","changes","insertRow","addColumn","insertColumn","removeRow","removeColumn","removeTable","toggleBorder","set","onDone","Tb","c","Node","normalizeNode","tableAdded","nodeToSearch","getParent","shouldAddTextAfterNode","indexToNotHaveTableOn","size","indexOfLastTable","findLastIndex","tableJSON","removeNodeByKey","newBlock","withoutNormalization","prevText","getPreviousText","moveFocusTo","text","length","moveAnchorTo","renderNode","parseStyleString","s","regex","match","result","exec","trim","reactAttributes","o","camelize","addUnits","attributesToMap","el","acc","attribute","getAttribute","styleString","reactStyleObject","reduce","v","name","cellAttributes","serialization","deserialize","next","tag","tagName","toLowerCase","Array","from","childNodes","serialize"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAC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CADF,CADF;AAKD;;AACD,WAAK,WAAL;AAAkB;AAChB,8BAAO,4CAAKA,QAAL,CAAP;AACD;;AACD,WAAK,YAAL;AAAmB;AACjB,cAAMH,YAAU,GAAGJ,gBAAgB,CAACU,MAAM,CAACR,IAAR,CAAnC;;AACA,iBAAOE,YAAU,CAACkB,MAAlB;;AACA,cAAIZ,MAAM,CAACR,IAAP,CAAYmB,GAAZ,CAAgB,QAAhB,CAAJ,EAA+B;AAC7B,gCAAO,sCAAQjB,YAAR,EAAqBG,QAArB,CAAP;AACD,WAFD,MAEO;AACL,gCAAO,sCAAQH,YAAR,EAAqBG,QAArB,CAAP;AACD;AACF;AApBH;AAsBD;AAvE0B,CAAtB","sourcesContent":["import React from 'react';\nimport EditTable from 'slate-edit-table';\nimport { Block } from 'slate';\nimport debug from 'debug';\nimport GridOn from '@material-ui/icons/GridOn';\nimport TableToolbar from './table-toolbar';\nimport PropTypes from 'prop-types';\nimport SlatePropTypes from 'slate-prop-types';\nimport { withStyles } from '@material-ui/core/styles';\nimport convert from 'react-attr-converter';\nimport { object as toStyleObject } from 'to-style';\n\nconst log = debug('@pie-lib:editable-html:plugins:table');\n\nconst Table = withStyles(() => ({\n table: {}\n}))(props => {\n const nodeAttributes = dataToAttributes(props.node.data);\n\n return (\n <table\n className={props.classes.table}\n {...props.attributes}\n {...nodeAttributes}\n onFocus={props.onFocus}\n onBlur={props.onBlur}\n >\n <tbody>{props.children}</tbody>\n </table>\n );\n});\n\nTable.propTypes = {\n attributes: PropTypes.object,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n node: SlatePropTypes.node,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nconst TableRow = props => <tr {...props.attributes}>{props.children}</tr>;\n\nTableRow.propTypes = {\n attributes: PropTypes.object,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nconst TableCell = withStyles(() => ({\n td: {\n minWidth: '25px'\n }\n}))(props => {\n const Tag = props.node.data.get('header') ? 'th' : 'td';\n\n const nodeAttributes = dataToAttributes(props.node.data);\n delete nodeAttributes.header;\n\n return (\n <Tag\n {...props.attributes}\n {...nodeAttributes}\n colSpan={props.node.data.get('colspan')}\n className={props.classes[Tag]}\n onFocus={props.onFocus}\n onBlur={props.onBlur}\n >\n {props.children}\n </Tag>\n );\n});\n\nTableCell.propTypes = {\n attributes: PropTypes.object,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired\n};\n\nexport const moveFocusToBeginningOfTable = change => {\n const addedTable = change.value.document.findDescendant(d => !!d.data && !!d.data.get('newTable'));\n\n if (!addedTable) {\n return;\n }\n\n change.collapseToStartOf(addedTable);\n\n const update = addedTable.data.remove('newTable');\n\n change.setNodeByKey(addedTable.key, { data: update });\n};\n\nexport default (opts, toolbarPlugins /* : {toolbar: {}}[] */) => {\n const core = EditTable({\n typeContent: 'div'\n });\n\n // fix outdated schema\n\n if (core.schema && core.schema.blocks) {\n Object.keys(core.schema.blocks).forEach(key => {\n const block = core.schema.blocks[key];\n\n if (block.parent) {\n if (block.nodes[0].types) {\n block.nodes[0] = {\n type: block.nodes[0].types[0]\n };\n }\n\n if (block.nodes[0].objects) {\n block.nodes[0] = {\n object: block.nodes[0].objects[0]\n };\n }\n\n block.parent = {\n type: block.parent.types[0]\n };\n } else {\n block.nodes[0] = { type: block.nodes[0].types[0] };\n }\n });\n }\n\n core.utils.getTableBlock = (containerNode, key) => {\n const node = containerNode.getDescendant(key);\n const ancestors = containerNode.getAncestors(key).push(node);\n return ancestors.findLast(p => p.type === 'table');\n };\n\n core.utils.createTableWithOptions = (row, columns, extra) => {\n const createdTable = core.utils.createTable(row, columns);\n const newTable = Block.create({\n ...createdTable.toJSON(),\n ...extra\n });\n\n return newTable;\n };\n\n core.toolbar = {\n icon: <GridOn />,\n onClick: (value, onChange) => {\n log('insert table');\n const change = value.change();\n const newTable = core.utils.createTableWithOptions(2, 2, {\n data: {\n border: '1',\n newTable: true\n }\n });\n\n change.insertBlock(newTable);\n\n moveFocusToBeginningOfTable(change);\n onChange(change);\n },\n supports: (node, value) =>\n node && node.object === 'block' && core.utils.isSelectionInTable(value),\n /**\n * Note - the node may not be a table node - it may be a node inside a table.\n */\n customToolbar: (node, value, onToolbarDone) => {\n log('[customToolbar] node.data: ', node.data);\n\n const tableBlock = core.utils.getTableBlock(value.document, node.key);\n log('[customToolbar] tableBlock: ', tableBlock);\n\n const hasBorder = () =>\n tableBlock.data.get('border') && tableBlock.data.get('border') !== '0';\n const addRow = () => {\n const change = core.changes.insertRow(value.change());\n onToolbarDone(change, false);\n };\n\n const addColumn = () => {\n const change = core.changes.insertColumn(value.change());\n onToolbarDone(change, false);\n };\n\n const removeRow = () => {\n const change = core.changes.removeRow(value.change());\n onToolbarDone(change, false);\n };\n\n const removeColumn = () => {\n const change = core.changes.removeColumn(value.change());\n onToolbarDone(change, false);\n };\n\n const removeTable = () => {\n const change = core.changes.removeTable(value.change());\n onToolbarDone(change, false);\n };\n\n const toggleBorder = () => {\n const { data } = tableBlock;\n const update = data.set('border', hasBorder() ? '0' : '1');\n log('[toggleBorder] update: ', update);\n const change = value.change().setNodeByKey(tableBlock.key, { data: update });\n onToolbarDone(change, false);\n };\n\n const onDone = () => {\n log('[onDone] call onToolbarDone...');\n onToolbarDone(null, true);\n };\n\n const Tb = () => (\n <TableToolbar\n plugins={toolbarPlugins}\n onChange={c => onToolbarDone(c, false)}\n value={value}\n onAddRow={addRow}\n onRemoveRow={removeRow}\n onAddColumn={addColumn}\n onRemoveColumn={removeColumn}\n onRemoveTable={removeTable}\n hasBorder={hasBorder()}\n onToggleBorder={toggleBorder}\n onDone={onDone}\n />\n );\n return Tb;\n }\n };\n\n const Node = props => {\n switch (props.node.type) {\n case 'table':\n return <Table {...props} onFocus={opts.onFocus} onBlur={opts.onBlur} />;\n case 'table_row':\n return <TableRow {...props} />;\n case 'table_cell':\n return <TableCell {...props} onFocus={opts.onFocus} onBlur={opts.onBlur} />;\n default:\n return null;\n }\n };\n Node.propTypes = {\n node: PropTypes.object\n };\n\n core.normalizeNode = node => {\n if (node.object !== 'document') {\n return;\n }\n\n const tableAdded = node.findDescendant(d => d.data && d.data.get('newTable'));\n\n if (!tableAdded) {\n return;\n }\n\n const nodeToSearch = node.getParent(tableAdded.key) || node;\n let shouldAddTextAfterNode = false;\n const indexToNotHaveTableOn = nodeToSearch.nodes.size - 1;\n const indexOfLastTable = nodeToSearch.nodes.findLastIndex(d => d.type === 'table');\n\n // if the last table in the document is of type table, we need to do the change\n if (indexOfLastTable === indexToNotHaveTableOn) {\n shouldAddTextAfterNode = true;\n }\n\n if (!shouldAddTextAfterNode) {\n return;\n }\n\n return change => {\n if (shouldAddTextAfterNode) {\n const tableJSON = tableAdded.toJSON();\n\n // we remove the table node because otherwise we can't add the empty block after it\n // we need a block that contains text in order to do it\n change.removeNodeByKey(tableAdded.key);\n\n const newBlock = Block.create({\n object: 'block',\n type: 'div'\n });\n\n // we add an empty block but that it's going to be normalized\n // because it will add the empty text to it like it should\n change.insertBlock(newBlock);\n\n change.withoutNormalization(() => {\n // we do these changes without normalization\n\n // we get the text previous to the new block added\n const prevText = change.value.document.getPreviousText(newBlock.key);\n\n if (prevText) {\n // we move focus to the previous text\n change\n .moveFocusTo(prevText.key, prevText.text.length)\n .moveAnchorTo(prevText.key, prevText.text.length);\n }\n\n // we insert the table block between the first block with text and the last block with text\n change.insertBlock({\n ...tableJSON,\n data: {\n ...tableJSON.data,\n newTable: true\n }\n });\n\n moveFocusToBeginningOfTable(change);\n });\n }\n };\n };\n\n core.renderNode = Node;\n\n return core;\n};\n\nexport const parseStyleString = s => {\n const regex = /([\\w-]*)\\s*:\\s*([^;]*)/g;\n let match;\n const result = {};\n while ((match = regex.exec(s))) {\n result[match[1]] = match[2].trim();\n }\n return result;\n};\n\nexport const reactAttributes = o => toStyleObject(o, { camelize: true, addUnits: false });\n\nconst attributesToMap = el => (acc, attribute) => {\n const value = el.getAttribute(attribute);\n if (value) {\n if (attribute === 'style') {\n const styleString = el.getAttribute(attribute);\n const reactStyleObject = reactAttributes(parseStyleString(styleString));\n acc['style'] = reactStyleObject;\n } else {\n acc[attribute] = el.getAttribute(attribute);\n }\n }\n return acc;\n};\n\nconst dataToAttributes = data => {\n if (!data || !data.get) {\n return {};\n }\n\n return data.reduce((acc, v, name) => {\n if (v) {\n acc[convert(name)] = v;\n }\n return acc;\n }, {});\n};\n\nconst attributes = ['border', 'cellpadding', 'cellspacing', 'class', 'style'];\n\nconst cellAttributes = ['colspan', 'rowspan', 'class', 'style'];\n\nexport const serialization = {\n deserialize(el, next) {\n const tag = el.tagName.toLowerCase();\n\n switch (tag) {\n case 'table': {\n const children =\n el.children.length === 1 && el.children[0].tagName.toLowerCase() === 'tbody'\n ? el.children[0].children\n : el.children;\n const c = Array.from(children);\n\n return {\n object: 'block',\n type: 'table',\n nodes: next(c),\n data: attributes.reduce(attributesToMap(el), {})\n };\n }\n case 'th': {\n return {\n object: 'block',\n type: 'table_cell',\n nodes: next(el.childNodes),\n data: cellAttributes.reduce(attributesToMap(el), { header: true })\n };\n }\n case 'tr': {\n return {\n object: 'block',\n type: 'table_row',\n nodes: next(Array.from(el.children))\n };\n }\n case 'td': {\n return {\n object: 'block',\n type: 'table_cell',\n nodes: next(Array.from(el.childNodes)),\n data: cellAttributes.reduce(attributesToMap(el), { header: false })\n };\n }\n }\n },\n serialize(object, children) {\n if (object.object !== 'block') {\n return;\n }\n\n switch (object.type) {\n case 'table': {\n const attributes = dataToAttributes(object.data);\n return (\n <table {...attributes}>\n <tbody>{children}</tbody>\n </table>\n );\n }\n case 'table_row': {\n return <tr>{children}</tr>;\n }\n case 'table_cell': {\n const attributes = dataToAttributes(object.data);\n delete attributes.header;\n if (object.data.get('header')) {\n return <th {...attributes}>{children}</th>;\n } else {\n return <td {...attributes}>{children}</td>;\n }\n }\n }\n }\n};\n"],"file":"index.js"}