@pie-element/ebsr 6.6.3-next.1045 → 6.6.3-next.1059

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 (661) hide show
  1. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +33 -0
  2. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +33 -0
  3. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +13 -1
  4. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -1
  5. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +22 -6
  6. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -1
  7. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +4 -4
  8. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +78 -0
  9. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +61 -1
  10. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +26 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +20 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/package.json +6 -6
  13. package/configure/package.json +2 -2
  14. package/package.json +3 -3
  15. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +0 -843
  16. package/configure/node_modules/@pie-element/multiple-choice/module/controller.js +0 -20686
  17. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +0 -77
  18. package/configure/node_modules/@pie-element/multiple-choice/module/element.js +0 -2019
  19. package/configure/node_modules/@pie-element/multiple-choice/module/index.html +0 -21
  20. package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +0 -14
  21. package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +0 -115
  22. package/configure/node_modules/@pie-element/multiple-choice/module/print.html +0 -18
  23. package/configure/node_modules/@pie-element/multiple-choice/module/print.js +0 -1983
  24. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
  25. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1645
  26. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
  27. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
  28. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -44
  29. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
  30. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
  31. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  32. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -180
  33. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  34. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -409
  35. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  36. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  37. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  38. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -196
  39. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  40. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  41. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  42. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -189
  43. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  44. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
  45. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  46. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -156
  47. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  48. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
  49. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  50. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -152
  51. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  52. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -131
  53. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  54. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -191
  55. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  56. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -113
  57. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  58. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  59. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  60. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -115
  61. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  62. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -99
  63. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  64. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  65. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  66. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -370
  67. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -278
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -140
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -426
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -117
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -210
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -192
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -95
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -449
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -276
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/package.json +0 -19
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -230
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -618
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/README.md +0 -33
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  140. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  142. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  143. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  144. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  145. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  146. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  147. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/package.json +0 -30
  148. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  149. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  150. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  151. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  152. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  153. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  154. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  155. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  156. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  157. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  158. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  159. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  160. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
  161. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
  162. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -43
  163. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
  164. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
  165. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -315
  166. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  167. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
  168. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
  169. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
  170. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  171. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
  172. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -58
  173. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  174. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -96
  175. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
  176. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
  177. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  178. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
  179. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
  180. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  181. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -279
  182. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
  183. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
  184. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  185. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
  186. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
  187. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
  188. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
  189. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
  190. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
  191. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  192. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  193. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
  194. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -516
  195. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
  196. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
  197. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -86
  198. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
  199. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -155
  200. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
  201. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
  202. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
  203. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  204. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -449
  205. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  206. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  207. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  208. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  209. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  210. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  211. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  212. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  213. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  214. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  215. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  216. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -276
  217. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  218. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/package.json +0 -19
  219. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  220. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  221. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  222. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  223. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  224. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  225. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  226. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  227. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  228. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  229. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -230
  230. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  231. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -618
  232. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  233. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/README.md +0 -33
  234. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  235. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  236. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  237. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  238. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  239. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  240. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  241. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  242. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  243. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  244. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  245. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  246. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  247. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  248. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  249. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  250. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  251. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  252. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  253. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  254. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  255. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  256. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  257. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  258. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  259. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  260. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/package.json +0 -30
  261. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  262. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  263. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  264. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  265. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  266. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  267. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  268. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  269. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  270. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  271. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  272. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  273. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
  274. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
  275. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  276. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -65
  277. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -75
  278. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
  279. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3327
  280. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1616
  281. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
  282. package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
  283. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
  284. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -752
  285. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  286. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -236
  287. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  288. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  289. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  290. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -250
  291. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  292. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -143
  293. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  294. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -219
  295. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  296. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -139
  297. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  298. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -135
  299. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  300. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -204
  301. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  302. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -347
  303. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  304. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -344
  305. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  306. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -449
  307. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  308. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -109
  309. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  310. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -106
  311. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  312. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -264
  313. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  314. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  315. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  316. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -54
  317. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  318. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
  319. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  320. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -288
  321. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  322. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
  323. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  324. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
  325. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  326. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  327. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  328. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -497
  329. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  330. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -169
  331. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  332. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -132
  333. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  334. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
  335. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  336. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -275
  337. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  338. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
  339. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  340. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -179
  341. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  342. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -358
  343. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  344. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  345. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  346. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -411
  347. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  348. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  349. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  350. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  351. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -449
  352. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  353. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  354. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  355. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  356. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  357. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  358. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  359. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  360. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  361. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  362. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  363. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -276
  364. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  365. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/package.json +0 -19
  366. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  367. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  368. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  369. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  370. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  371. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  372. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  373. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  374. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  375. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  376. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -230
  377. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  378. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -618
  379. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  380. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/README.md +0 -33
  381. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  382. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  383. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  384. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  385. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  386. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  387. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  388. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  389. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  390. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  391. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  392. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  393. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  394. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  395. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  396. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  397. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  398. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  399. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  400. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  401. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  402. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  403. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  404. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  405. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  406. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  407. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/package.json +0 -30
  408. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  409. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  410. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  411. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  412. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  413. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  414. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  415. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  416. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  417. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  418. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  419. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  420. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
  421. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -51
  422. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
  423. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
  424. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
  425. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
  426. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
  427. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
  428. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
  429. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
  430. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
  431. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
  432. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
  433. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
  434. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
  435. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
  436. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
  437. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
  438. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
  439. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
  440. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
  441. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
  442. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -641
  443. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -145
  444. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  445. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  446. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -166
  447. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -62
  448. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -180
  449. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
  450. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -112
  451. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -175
  452. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -283
  453. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -284
  454. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
  455. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
  456. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  457. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -187
  458. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
  459. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
  460. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
  461. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -259
  462. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
  463. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
  464. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
  465. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -437
  466. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
  467. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -111
  468. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
  469. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -225
  470. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
  471. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -97
  472. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -316
  473. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
  474. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -376
  475. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  476. package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
  477. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1547
  478. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -757
  479. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
  480. package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
  481. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -126
  482. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
  483. package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -80
  484. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
  485. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -417
  486. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
  487. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
  488. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
  489. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
  490. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
  491. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
  492. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
  493. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -46
  494. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
  495. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
  496. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
  497. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
  498. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
  499. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -16
  500. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
  501. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -35
  502. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
  503. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -31
  504. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
  505. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -165
  506. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
  507. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
  508. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
  509. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
  510. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
  511. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
  512. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
  513. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
  514. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
  515. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
  516. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
  517. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -69
  518. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
  519. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -23
  520. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
  521. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -17
  522. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
  523. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -45
  524. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
  525. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
  526. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
  527. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
  528. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
  529. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -130
  530. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
  531. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
  532. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
  533. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -206
  534. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
  535. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
  536. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
  537. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -24
  538. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
  539. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -257
  540. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
  541. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -224
  542. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
  543. package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
  544. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -54
  545. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
  546. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -335
  547. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
  548. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
  549. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
  550. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -27
  551. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
  552. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
  553. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
  554. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -27
  555. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
  556. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -140
  557. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -379
  558. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
  559. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
  560. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
  561. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
  562. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -60
  563. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
  564. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -9
  565. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -36
  566. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
  567. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
  568. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
  569. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
  570. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
  571. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
  572. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
  573. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
  574. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -145
  575. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  576. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -427
  577. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  578. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  579. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  580. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  581. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  582. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  583. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  584. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  585. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  586. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  587. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  588. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -275
  589. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  590. package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
  591. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  592. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  593. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  594. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  595. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  596. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  597. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  598. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  599. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  600. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  601. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -234
  602. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -862
  603. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -631
  604. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
  605. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
  606. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
  607. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -463
  608. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
  609. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -271
  610. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
  611. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -173
  612. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
  613. package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -37
  614. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
  615. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -373
  616. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -193
  617. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -107
  618. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  619. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -602
  620. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  621. package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
  622. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  623. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  624. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  625. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  626. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  627. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  628. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  629. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  630. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  631. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  632. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  633. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  634. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  635. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  636. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  637. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  638. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  639. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  640. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  641. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  642. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  643. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  644. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  645. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  646. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  647. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  648. package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
  649. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  650. package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  651. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  652. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  653. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  654. package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  655. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  656. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  657. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  658. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  659. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  660. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  661. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/toolbar/toolbar.jsx"],"names":["log","getCustomToolbar","plugin","node","value","handleDone","onDataChange","toolbar","CustomToolbarComp","customToolbar","Toolbar","props","type","marks","some","mark","blocks","onChange","onToggle","change","e","preventDefault","fn","finishEditing","onDone","deleteNode","persist","onDeleteClick","state","classes","plugins","pluginProps","toolbarOpts","autoWidth","isFocused","toolbarRef","parentNode","find","p","supports","parentPlugin","done","handler","onToolbarDone","handleDataChange","key","data","CustomToolbar","filteredPlugins","filterPlugins","parentExtraStyles","pluginStyles","pluginExtraStyles","extraStyles","deletable","customToolbarShowDone","showDone","alwaysVisible","defaultToolbarShowDone","hasDoneButton","names","toolbarWithNoDone","toolbarTop","position","toolbarRight","alignment","focused","fullWidth","onClick","shared","iconRoot","onDeleteMouseDown","root","React","Component","zIndex","PropTypes","number","SlatePropTypes","isRequired","array","object","onImageClick","func","bool","shape","oneOf","ref","style","cursor","justifyContent","background","minWidth","margin","padding","boxShadow","boxSizing","display","top","right","width","height","verticalAlign","label","color","index"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,wCAAN,CAAZ;;AAEA,IAAMC,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,MAAD,EAASC,IAAT,EAAeC,KAAf,EAAsBC,UAAtB,EAAkCC,YAAlC,EAAmD;AAC1E,MAAI,CAACJ,MAAL,EAAa;AACX;AACD;;AACD,MAAI,CAACA,MAAM,CAACK,OAAZ,EAAqB;AACnB;AACD;;AACD,MAAIL,MAAM,CAACK,OAAP,CAAeC,iBAAnB,EAAsC;AACpC;AACJ;AACA;AACA;AACA;AACA;AACI,WAAON,MAAM,CAACK,OAAP,CAAeC,iBAAtB;AACD,GARD,MAQO,IAAI,OAAON,MAAM,CAACK,OAAP,CAAeE,aAAtB,KAAwC,UAA5C,EAAwD;AAC7DT,IAAAA,GAAG,CAAC,oCAAD,CAAH;AACA,WAAOE,MAAM,CAACK,OAAP,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AACTmE,IAAAA,KAAK,EAAE;AADE,GA3BC;AA8BZlC,EAAAA,OAAO,EAAE;AACP+B,IAAAA,OAAO,EAAE;AADF,GA9BG;AAiCZ3B,EAAAA,QAAQ,EAAE;AACR8B,IAAAA,KAAK,EAAE,MADC;AAERC,IAAAA,MAAM,EAAE,MAFA;AAGRP,IAAAA,OAAO,EAAE,KAHD;AAIRQ,IAAAA,aAAa,EAAE;AAJP,GAjCE;AAuCZC,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,EAAE;AADF,GAvCK;AA0CZnC,EAAAA,MAAM,EAAE;AACN4B,IAAAA,OAAO,EAAE;AADH;AA1CI,CAAd;;eA8Ce,wBAAWT,KAAX,EAAkB;AAAEiB,EAAAA,KAAK,EAAE;AAAT,CAAlB,EAAmC/F,OAAnC,C","sourcesContent":["import { DoneButton } from './done-button';\nimport Delete from '@material-ui/icons/Delete';\nimport IconButton from '@material-ui/core/IconButton';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nimport debug from 'debug';\nimport SlatePropTypes from 'slate-prop-types';\nimport debounce from 'lodash/debounce';\n\nimport { findSingleNode, findParentNode } from '../utils';\nimport { withStyles } from '@material-ui/core/styles';\nimport DefaultToolbar from './default-toolbar';\n\nconst log = debug('@pie-lib:editable-html:plugins:toolbar');\n\nconst getCustomToolbar = (plugin, node, value, handleDone, onDataChange) => {\n if (!plugin) {\n return;\n }\n if (!plugin.toolbar) {\n return;\n }\n if (plugin.toolbar.CustomToolbarComp) {\n /**\n * Using a pre-defined Component should be preferred\n * as the rendering of it (and it's children) can be optimized by React.\n * If you keep re-defining the comp with an inline function\n * then react will have to re-render.\n */\n return plugin.toolbar.CustomToolbarComp;\n } else if (typeof plugin.toolbar.customToolbar === 'function') {\n log('deprecated - use CustomToolbarComp');\n return plugin.toolbar.customToolbar(node, value, handleDone, onDataChange);\n }\n};\n\nexport class Toolbar extends React.Component {\n static propTypes = {\n zIndex: PropTypes.number,\n value: SlatePropTypes.value.isRequired,\n plugins: PropTypes.array,\n plugin: PropTypes.object,\n onImageClick: PropTypes.func,\n onDone: PropTypes.func.isRequired,\n toolbarRef: PropTypes.func.isRequired,\n classes: PropTypes.object.isRequired,\n isFocused: PropTypes.bool,\n autoWidth: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n pluginProps: PropTypes.object,\n toolbarOpts: PropTypes.shape({\n position: PropTypes.oneOf(['bottom', 'top']),\n alignment: PropTypes.oneOf(['left', 'right']),\n alwaysVisible: PropTypes.bool,\n ref: PropTypes.func,\n showDone: PropTypes.bool\n }),\n onDataChange: PropTypes.func\n };\n\n constructor(props) {\n super(props);\n this.state = {\n change: null\n };\n }\n\n hasMark = type => {\n const { value } = this.props;\n return value.marks.some(mark => mark.type == type);\n };\n\n hasBlock = type => {\n const { value } = this.props;\n return value.blocks.some(node => node.type == type);\n };\n\n onToggle = plugin => {\n const { value, onChange } = this.props;\n\n if (!plugin.onToggle) return;\n\n const change = plugin.onToggle(value.change());\n onChange(change);\n };\n\n onClick = e => {\n log('[onClick]');\n e.preventDefault();\n };\n\n onButtonClick = fn => {\n return e => {\n e.preventDefault();\n fn();\n };\n };\n\n onToolbarDone = (change, finishEditing) => {\n log('[onToolbarDone] change: ', change, 'finishEditing: ', finishEditing);\n const { onChange, onDone } = this.props;\n\n if (change) {\n onChange(change, () => {\n if (finishEditing) {\n onDone();\n }\n });\n } else {\n if (finishEditing) {\n log('[onToolbarChange] call onDone');\n onDone();\n }\n }\n };\n\n onDeleteClick = debounce(\n (e, plugin, node, value, onChange) => plugin.deleteNode(e, node, value, onChange),\n 500\n );\n\n onDeleteMouseDown = (e, plugin, node, value, onChange) => {\n e.persist();\n this.onDeleteClick(e, plugin, node, value, onChange);\n };\n\n render() {\n const {\n classes,\n plugins,\n pluginProps,\n toolbarOpts,\n value,\n autoWidth,\n onChange,\n isFocused,\n onDone,\n toolbarRef\n } = this.props;\n\n const node = findSingleNode(value);\n const parentNode = findParentNode(value, node);\n\n log(' --------------> [render] node: ', node);\n log('[render] node: ', node);\n\n const plugin = plugins.find(p => {\n if (!node) {\n return;\n }\n\n if (p.toolbar) {\n return p.toolbar.supports && p.toolbar.supports(node, value);\n }\n });\n const parentPlugin = plugins.find(p => {\n if (!parentNode) {\n return;\n }\n\n if (p.toolbar) {\n return p.toolbar.supports && p.toolbar.supports(parentNode, value);\n }\n });\n\n log('[render] plugin: ', plugin);\n\n const handleDone = (change, done) => {\n let handler = onDone;\n\n if (plugin && plugin.toolbar && plugin.toolbar.customToolbar) {\n handler = this.onToolbarDone;\n }\n\n handler(change, done);\n\n if (parentPlugin && parentPlugin.handleDone) {\n parentPlugin.handleDone(value, node, plugin, onChange);\n }\n };\n\n const handleDataChange = (key, data) => {\n this.props.onDataChange(key, data);\n };\n\n const CustomToolbar = getCustomToolbar(\n plugin,\n node,\n value,\n handleDone,\n this.props.onDataChange\n );\n\n const filteredPlugins =\n plugin && plugin.filterPlugins ? plugin.filterPlugins(node, plugins) : plugins;\n\n log('[render] CustomToolbar: ', CustomToolbar);\n const parentExtraStyles =\n parentPlugin && parentPlugin.pluginStyles\n ? parentPlugin.pluginStyles(node, parentNode, plugin)\n : {};\n const pluginExtraStyles =\n plugin && plugin.pluginStyles ? plugin.pluginStyles(node, parentNode, plugin) : {};\n const extraStyles = {\n ...pluginExtraStyles,\n ...parentExtraStyles\n };\n\n const deletable = node && plugin && plugin.deleteNode;\n const customToolbarShowDone =\n node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;\n\n // If there is a toolbarOpts we check if the showDone is not equal to false\n const defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;\n\n const hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;\n\n const names = classNames(classes.toolbar, {\n [classes.toolbarWithNoDone]: !hasDoneButton,\n [classes.toolbarTop]: toolbarOpts.position === 'top',\n [classes.toolbarRight]: toolbarOpts.alignment === 'right',\n [classes.focused]: toolbarOpts.alwaysVisible || isFocused,\n [classes.autoWidth]: autoWidth,\n [classes.fullWidth]: !autoWidth\n });\n\n return (\n <div className={names} style={extraStyles} onClick={this.onClick} ref={toolbarRef}>\n {CustomToolbar ? (\n <CustomToolbar\n node={node}\n value={value}\n onToolbarDone={this.onToolbarDone}\n onDataChange={handleDataChange}\n pluginProps={pluginProps}\n />\n ) : (\n <DefaultToolbar\n plugins={filteredPlugins}\n pluginProps={pluginProps}\n value={value}\n onChange={onChange}\n showDone={defaultToolbarShowDone}\n onDone={handleDone}\n deletable={deletable}\n />\n )}\n\n <div className={classes.shared}>\n {deletable && (\n <IconButton\n aria-label=\"Delete\"\n className={classes.iconRoot}\n onMouseDown={e => this.onDeleteMouseDown(e, plugin, node, value, onChange)}\n classes={{\n root: classes.iconRoot\n }}\n >\n <Delete />\n </IconButton>\n )}\n {customToolbarShowDone && <DoneButton onClick={handleDone} />}\n </div>\n </div>\n );\n }\n}\n\nconst style = {\n toolbar: {\n position: 'absolute',\n zIndex: 10,\n cursor: 'pointer',\n justifyContent: 'space-between',\n background: 'var(--editable-html-toolbar-bg, #efefef)',\n minWidth: '280px',\n margin: '5px 0 0 0',\n padding: '2px',\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 boxSizing: 'border-box',\n display: 'none'\n },\n toolbarWithNoDone: {\n minWidth: '265px'\n },\n toolbarTop: {\n top: '-45px'\n },\n toolbarRight: {\n right: 0\n },\n fullWidth: {\n width: '100%'\n },\n autoWidth: {\n width: 'auto'\n },\n focused: {\n display: 'flex'\n },\n iconRoot: {\n width: '28px',\n height: '28px',\n padding: '4px',\n verticalAlign: 'top'\n },\n label: {\n color: 'var(--editable-html-toolbar-check, #00bb00)'\n },\n shared: {\n display: 'flex'\n }\n};\nexport default withStyles(style, { index: 1000 })(Toolbar);\n"],"file":"toolbar.js"}
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.hasNode = exports.hasMark = exports.hasBlock = exports.findSingleNode = exports.findParentNode = void 0;
7
-
8
- var findSingleNode = function findSingleNode(value) {
9
- if (!value || !value.isCollapsed || !value.startKey) {
10
- return;
11
- }
12
-
13
- var inline = value.document.getClosestInline(value.startKey);
14
-
15
- if (inline) {
16
- return inline;
17
- }
18
-
19
- var block = value.document.getClosestBlock(value.startKey);
20
-
21
- if (block) {
22
- return block;
23
- }
24
- };
25
-
26
- exports.findSingleNode = findSingleNode;
27
-
28
- var findParentNode = function findParentNode(value, node) {
29
- if (!value || !node) {
30
- return;
31
- }
32
-
33
- return value.document.getParent(node.key);
34
- };
35
-
36
- exports.findParentNode = findParentNode;
37
-
38
- var hasMark = function hasMark(value, type) {
39
- return value && value.marks.some(function (mark) {
40
- return mark.type == type;
41
- });
42
- };
43
-
44
- exports.hasMark = hasMark;
45
-
46
- var hasBlock = function hasBlock(value, type) {
47
- return value && value.blocks.some(function (node) {
48
- return node.type == type;
49
- });
50
- };
51
-
52
- exports.hasBlock = hasBlock;
53
-
54
- var hasNode = function hasNode(_ref, type) {
55
- var document = _ref.document;
56
- return document && document.nodes.some(function (node) {
57
- return node.type == type;
58
- });
59
- };
60
-
61
- exports.hasNode = hasNode;
62
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/plugins/utils.js"],"names":["findSingleNode","value","isCollapsed","startKey","inline","document","getClosestInline","block","getClosestBlock","findParentNode","node","getParent","key","hasMark","type","marks","some","mark","hasBlock","blocks","hasNode","nodes"],"mappings":";;;;;;;AAAO,IAAMA,cAAc,GAAG,SAAjBA,cAAiB,CAAAC,KAAK,EAAI;AACrC,MAAI,CAACA,KAAD,IAAU,CAACA,KAAK,CAACC,WAAjB,IAAgC,CAACD,KAAK,CAACE,QAA3C,EAAqD;AACnD;AACD;;AAED,MAAMC,MAAM,GAAGH,KAAK,CAACI,QAAN,CAAeC,gBAAf,CAAgCL,KAAK,CAACE,QAAtC,CAAf;;AAEA,MAAIC,MAAJ,EAAY;AACV,WAAOA,MAAP;AACD;;AAED,MAAMG,KAAK,GAAGN,KAAK,CAACI,QAAN,CAAeG,eAAf,CAA+BP,KAAK,CAACE,QAArC,CAAd;;AAEA,MAAII,KAAJ,EAAW;AACT,WAAOA,KAAP;AACD;AACF,CAhBM;;;;AAkBA,IAAME,cAAc,GAAG,SAAjBA,cAAiB,CAACR,KAAD,EAAQS,IAAR,EAAiB;AAC7C,MAAI,CAACT,KAAD,IAAU,CAACS,IAAf,EAAqB;AACnB;AACD;;AAED,SAAOT,KAAK,CAACI,QAAN,CAAeM,SAAf,CAAyBD,IAAI,CAACE,GAA9B,CAAP;AACD,CANM;;;;AAQA,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACZ,KAAD,EAAQa,IAAR;AAAA,SAAiBb,KAAK,IAAIA,KAAK,CAACc,KAAN,CAAYC,IAAZ,CAAiB,UAAAC,IAAI;AAAA,WAAIA,IAAI,CAACH,IAAL,IAAaA,IAAjB;AAAA,GAArB,CAA1B;AAAA,CAAhB;;;;AAEA,IAAMI,QAAQ,GAAG,SAAXA,QAAW,CAACjB,KAAD,EAAQa,IAAR;AAAA,SAAiBb,KAAK,IAAIA,KAAK,CAACkB,MAAN,CAAaH,IAAb,CAAkB,UAAAN,IAAI;AAAA,WAAIA,IAAI,CAACI,IAAL,IAAaA,IAAjB;AAAA,GAAtB,CAA1B;AAAA,CAAjB;;;;AAEA,IAAMM,OAAO,GAAG,SAAVA,OAAU,OAAeN,IAAf;AAAA,MAAGT,QAAH,QAAGA,QAAH;AAAA,SACrBA,QAAQ,IAAIA,QAAQ,CAACgB,KAAT,CAAeL,IAAf,CAAoB,UAAAN,IAAI;AAAA,WAAIA,IAAI,CAACI,IAAL,IAAaA,IAAjB;AAAA,GAAxB,CADS;AAAA,CAAhB","sourcesContent":["export const findSingleNode = value => {\n if (!value || !value.isCollapsed || !value.startKey) {\n return;\n }\n\n const inline = value.document.getClosestInline(value.startKey);\n\n if (inline) {\n return inline;\n }\n\n const block = value.document.getClosestBlock(value.startKey);\n\n if (block) {\n return block;\n }\n};\n\nexport const findParentNode = (value, node) => {\n if (!value || !node) {\n return;\n }\n\n return value.document.getParent(node.key);\n};\n\nexport const hasMark = (value, type) => value && value.marks.some(mark => mark.type == type);\n\nexport const hasBlock = (value, type) => value && value.blocks.some(node => node.type == type);\n\nexport const hasNode = ({ document }, type) =>\n document && document.nodes.some(node => node.type == type);\n"],"file":"utils.js"}
@@ -1,411 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.valueToHtml = exports.reactAttributes = exports.parseStyleString = exports.htmlToValue = exports.TEXT_RULE = exports.BLOCK_TAGS = void 0;
7
-
8
- var _slateHtmlSerializer = _interopRequireDefault(require("slate-html-serializer"));
9
-
10
- var _react = _interopRequireDefault(require("react"));
11
-
12
- var _debug = _interopRequireDefault(require("debug"));
13
-
14
- var _toStyle = require("to-style");
15
-
16
- var _image = require("./plugins/image");
17
-
18
- var _math = require("./plugins/math");
19
-
20
- var _media = require("./plugins/media");
21
-
22
- var _list = require("./plugins/list");
23
-
24
- var _table = require("./plugins/table");
25
-
26
- var _respArea = require("./plugins/respArea");
27
-
28
- var _slate = require("slate");
29
-
30
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
31
-
32
- var log = (0, _debug["default"])('@pie-lib:editable-html:serialization');
33
- /**
34
- * Tags to blocks.
35
- *
36
- * @type {Object}
37
- */
38
-
39
- var BLOCK_TAGS = {
40
- div: 'div',
41
- span: 'span',
42
- p: 'paragraph',
43
- blockquote: 'quote',
44
- pre: 'code',
45
- h1: 'heading-one',
46
- h2: 'heading-two',
47
- h3: 'heading-three',
48
- h4: 'heading-four',
49
- h5: 'heading-five',
50
- h6: 'heading-six'
51
- };
52
- /**
53
- * Tags to marks.
54
- *
55
- * @type {Object}
56
- */
57
-
58
- exports.BLOCK_TAGS = BLOCK_TAGS;
59
- var MARK_TAGS = {
60
- b: 'bold',
61
- em: 'italic',
62
- u: 'underline',
63
- s: 'strikethrough',
64
- code: 'code',
65
- strong: 'bold'
66
- };
67
-
68
- var parseStyleString = function parseStyleString(s) {
69
- var regex = /([\w-]*)\s*:\s*([^;]*)/g;
70
- var match;
71
- var result = {};
72
-
73
- while (match = regex.exec(s)) {
74
- result[match[1]] = match[2].trim();
75
- }
76
-
77
- return result;
78
- };
79
-
80
- exports.parseStyleString = parseStyleString;
81
-
82
- var reactAttributes = function reactAttributes(o) {
83
- return (0, _toStyle.object)(o, {
84
- camelize: true,
85
- addUnits: false
86
- });
87
- };
88
-
89
- exports.reactAttributes = reactAttributes;
90
-
91
- var attributesToMap = function attributesToMap(el) {
92
- return function (acc, attribute) {
93
- var value = el.getAttribute(attribute);
94
-
95
- if (value) {
96
- if (attribute === 'style') {
97
- var styleString = el.getAttribute(attribute);
98
- var reactStyleObject = reactAttributes(parseStyleString(styleString));
99
- acc['style'] = reactStyleObject;
100
- } else {
101
- acc[attribute] = el.getAttribute(attribute);
102
- }
103
- }
104
-
105
- return acc;
106
- };
107
- };
108
-
109
- var attributes = ['border', 'cellpadding', 'cellspacing', 'class', 'style'];
110
- /**
111
- * Serializer rules.
112
- *
113
- * @type {Array}
114
- */
115
-
116
- var blocks = {
117
- deserialize: function deserialize(el, next) {
118
- log('[blocks:deserialize] block: ', el);
119
- var block = BLOCK_TAGS[el.tagName.toLowerCase()];
120
- if (!block) return;
121
- log('[blocks:deserialize] block: ', block);
122
-
123
- if (el.childNodes.length === 1) {
124
- var cn = el.childNodes[0];
125
-
126
- if (cn && cn.tagName && cn.tagName.toLowerCase() === block) {
127
- log('[we have a child node of the same]...');
128
- return;
129
- }
130
- }
131
-
132
- return {
133
- object: 'block',
134
- type: block,
135
-
136
- /**
137
- * Here for rendering styles for all block elements
138
- */
139
- data: {
140
- attributes: attributes.reduce(attributesToMap(el), {})
141
- },
142
- nodes: next(el.childNodes)
143
- };
144
- },
145
- serialize: function serialize(object, children) {
146
- if (object.object !== 'block') return;
147
- var jsonData = object.data.toJSON();
148
- log('[blocks:serialize] object: ', object, children);
149
- var key;
150
-
151
- for (key in BLOCK_TAGS) {
152
- if (BLOCK_TAGS[key] === object.type) {
153
- var Tag = key;
154
- return /*#__PURE__*/_react["default"].createElement(Tag, jsonData.attributes, children);
155
- }
156
- }
157
- }
158
- };
159
- var marks = {
160
- deserialize: function deserialize(el, next) {
161
- var mark = MARK_TAGS[el.tagName.toLowerCase()];
162
- if (!mark) return;
163
- log('[deserialize] mark: ', mark);
164
- return {
165
- object: 'mark',
166
- type: mark,
167
- nodes: next(el.childNodes)
168
- };
169
- },
170
- serialize: function serialize(object, children) {
171
- if (_slate.Mark.isMark(object)) {
172
- for (var key in MARK_TAGS) {
173
- if (MARK_TAGS[key] === object.type) {
174
- var Tag = key;
175
- return /*#__PURE__*/_react["default"].createElement(Tag, null, children);
176
- }
177
- }
178
- }
179
- }
180
- };
181
-
182
- var findPreviousText = function findPreviousText(el) {
183
- if (el.nodeName === '#text') {
184
- return el;
185
- }
186
-
187
- if (el.previousSibling) {
188
- return findPreviousText(el.previousSibling);
189
- }
190
-
191
- return null;
192
- };
193
-
194
- var TEXT_RULE = {
195
- deserialize: function deserialize(el) {
196
- /**
197
- * This needs to be called on the dom element in order to merge the adjacent text nodes together
198
- * */
199
- el.normalize();
200
-
201
- if (el.tagName && el.tagName.toLowerCase() === 'br') {
202
- return {
203
- object: 'text',
204
- leaves: [{
205
- object: 'leaf',
206
- text: '\n'
207
- }]
208
- };
209
- }
210
-
211
- if (el.nodeName === '#text') {
212
- if (el.nodeValue && el.nodeValue.match(/<!--.*?-->/)) return;
213
- log('[text:deserialize] return text object..');
214
- return {
215
- object: 'text',
216
- leaves: [{
217
- object: 'leaf',
218
- text: el.nodeValue
219
- }]
220
- };
221
- }
222
- },
223
- serialize: function serialize(obj, children) {
224
- if (obj.object === 'string') {
225
- return children.split('\n').reduce(function (array, text, i) {
226
- if (i !== 0) array.push( /*#__PURE__*/_react["default"].createElement("br", null));
227
- array.push(text);
228
- return array;
229
- }, []);
230
- }
231
- }
232
- };
233
- exports.TEXT_RULE = TEXT_RULE;
234
- var RULES = [_list.serialization, _math.serialization, _media.serialization, _image.serialization, _table.serialization, _respArea.serialization, TEXT_RULE, blocks, marks];
235
-
236
- function allWhitespace(node) {
237
- // Use ECMA-262 Edition 3 String and RegExp features
238
- return !/[^\t\n\r ]/.test(node.textContent);
239
- }
240
-
241
- function defaultParseHtml(html) {
242
- if (typeof DOMParser === 'undefined') {
243
- throw new Error('The native `DOMParser` global which the `Html` serializer uses by default is not present in this environment. You must supply the `options.parseHtml` function instead.');
244
- }
245
-
246
- var parsed = new DOMParser().parseFromString(html, 'text/html');
247
- var body = parsed.body;
248
- var textNodes = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null, null);
249
- var n = textNodes.nextNode();
250
-
251
- while (n) {
252
- if (allWhitespace(n) || n.nodeValue === "\u200B") {
253
- n.parentNode.removeChild(n);
254
- }
255
-
256
- n = textNodes.nextNode();
257
- }
258
-
259
- return body;
260
- }
261
- /** If this lib is used on the server side, we need to bypass using the DOMParser - just put in a stub. */
262
-
263
-
264
- var parseHtml = typeof window === 'undefined' ? function () {
265
- return {
266
- childNodes: []
267
- };
268
- } : defaultParseHtml;
269
- var serializer = new _slateHtmlSerializer["default"]({
270
- defaultBlock: 'div',
271
- rules: RULES,
272
- parseHtml: parseHtml
273
- });
274
-
275
- var _extends = Object.assign || function (target) {
276
- for (var i = 1; i < arguments.length; i++) {
277
- var source = arguments[i];
278
-
279
- for (var key in source) {
280
- if (Object.prototype.hasOwnProperty.call(source, key)) {
281
- target[key] = source[key];
282
- }
283
- }
284
- }
285
-
286
- return target;
287
- };
288
- /**
289
- * This is needed in order to override the function that eventually leads
290
- * to the max iteration of 12, which in most cases it's not enough. The newer versions
291
- * have a different way to calculate this, but updating to a newer version of slate
292
- * requires a lot of work fixing other issues. So we just increase the rules by 1000,
293
- * which means a lot of iterations.
294
- * Below is the code that calculates the max iterations.
295
- * var max = schema.stack.plugins.length + schema.rules.length + 1;
296
- */
297
-
298
-
299
- serializer.deserialize = function deserialize(html) {
300
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
301
- var _options$toJSON = options.toJSON;
302
- var toJSON = _options$toJSON === undefined ? false : _options$toJSON;
303
- var defaultBlock = this.defaultBlock;
304
- var parseHtml = this.parseHtml;
305
- var fragment = parseHtml(html);
306
- var children = Array.from(fragment.childNodes);
307
- var nodes = this.deserializeElements(children); // COMPAT: ensure that all top-level inline nodes are wrapped into a block.
308
-
309
- nodes = nodes.reduce(function (memo, node, i, original) {
310
- if (node.object === 'block') {
311
- memo.push(node);
312
- return memo;
313
- }
314
-
315
- if (i > 0 && original[i - 1].object !== 'block') {
316
- var _block = memo[memo.length - 1];
317
-
318
- _block.nodes.push(node);
319
-
320
- return memo;
321
- }
322
-
323
- var block = _extends({
324
- object: 'block',
325
- data: {},
326
- isVoid: false
327
- }, defaultBlock, {
328
- nodes: [node]
329
- });
330
-
331
- memo.push(block);
332
- return memo;
333
- }, []);
334
-
335
- if (nodes.length === 0) {
336
- nodes = [_extends({
337
- object: 'block',
338
- data: {},
339
- isVoid: false
340
- }, defaultBlock, {
341
- nodes: [{
342
- object: 'text',
343
- leaves: [{
344
- object: 'leaf',
345
- text: '',
346
- marks: []
347
- }]
348
- }]
349
- })];
350
- }
351
-
352
- var json = {
353
- object: 'value',
354
- document: {
355
- object: 'document',
356
- data: {},
357
- nodes: nodes
358
- },
359
- schema: {
360
- rules: []
361
- }
362
- };
363
- var i;
364
-
365
- for (i = 0; i < 3000; i++) {
366
- json.schema.rules.push({
367
- match: {
368
- object: 'document'
369
- },
370
- nodes: [{
371
- match: {
372
- object: 'block'
373
- }
374
- }]
375
- });
376
- }
377
-
378
- var ret = toJSON ? json : _slate.Value.fromJSON(json);
379
-
380
- if (ret) {
381
- return ret;
382
- }
383
-
384
- return null;
385
- };
386
-
387
- var htmlToValue = function htmlToValue(html) {
388
- try {
389
- return serializer.deserialize(html);
390
- } catch (e) {
391
- console.log("Couldn't parse html: ", e);
392
- return {};
393
- }
394
- };
395
-
396
- exports.htmlToValue = htmlToValue;
397
-
398
- var valueToHtml = function valueToHtml(value) {
399
- return serializer.serialize(value);
400
- };
401
- /**
402
- *
403
- * <div><div>a</div></div> -> <div>a</div>
404
- *
405
- * <div><div>a</div><div>b</div></div> -> <div>a</div><div>b</div>
406
- * <div><div>a</div>4444<div>b</div></div> -> <div>a</div>4444<div>b</div>
407
- */
408
-
409
-
410
- exports.valueToHtml = valueToHtml;
411
- //# sourceMappingURL=serialization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/serialization.jsx"],"names":["log","BLOCK_TAGS","div","span","p","blockquote","pre","h1","h2","h3","h4","h5","h6","MARK_TAGS","b","em","u","s","code","strong","parseStyleString","regex","match","result","exec","trim","reactAttributes","o","camelize","addUnits","attributesToMap","el","acc","attribute","value","getAttribute","styleString","reactStyleObject","attributes","blocks","deserialize","next","block","tagName","toLowerCase","childNodes","length","cn","object","type","data","reduce","nodes","serialize","children","jsonData","toJSON","key","Tag","marks","mark","Mark","isMark","findPreviousText","nodeName","previousSibling","TEXT_RULE","normalize","leaves","text","nodeValue","obj","split","array","i","push","RULES","listSerialization","mathSerialization","mediaSerialization","imgSerialization","tableSerialization","responseAreaSerialization","allWhitespace","node","test","textContent","defaultParseHtml","html","DOMParser","Error","parsed","parseFromString","body","textNodes","document","createTreeWalker","NodeFilter","SHOW_TEXT","n","nextNode","parentNode","removeChild","parseHtml","window","serializer","Html","defaultBlock","rules","_extends","Object","assign","target","arguments","source","prototype","hasOwnProperty","call","options","undefined","_options$toJSON","fragment","Array","from","deserializeElements","memo","original","_block","isVoid","json","schema","ret","Value","fromJSON","htmlToValue","e","console","valueToHtml"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;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AAT,EAAYA,CAAC,GAAG,IAAhB,EAAsBA,CAAC,EAAvB,EAA2B;AACzBuD,IAAAA,IAAI,CAACC,MAAL,CAAYtB,KAAZ,CAAkBjC,IAAlB,CAAuB;AACrBrD,MAAAA,KAAK,EAAE;AAAE0B,QAAAA,MAAM,EAAE;AAAV,OADc;AAErBI,MAAAA,KAAK,EAAE,CAAC;AAAE9B,QAAAA,KAAK,EAAE;AAAE0B,UAAAA,MAAM,EAAE;AAAV;AAAT,OAAD;AAFc,KAAvB;AAID;;AAED,MAAMmF,GAAG,GAAG3E,MAAM,GAAGyE,IAAH,GAAUG,aAAMC,QAAN,CAAeJ,IAAf,CAA5B;;AAEA,MAAIE,GAAJ,EAAS;AACP,WAAOA,GAAP;AACD;;AAED,SAAO,IAAP;AACD,CArED;;AAuEO,IAAMG,WAAW,GAAG,SAAdA,WAAc,CAAA9C,IAAI,EAAI;AACjC,MAAI;AACF,WAAOiB,UAAU,CAACjE,WAAX,CAAuBgD,IAAvB,CAAP;AACD,GAFD,CAEE,OAAO+C,CAAP,EAAU;AACVC,IAAAA,OAAO,CAACxI,GAAR,CAAY,uBAAZ,EAAqCuI,CAArC;AACA,WAAO,EAAP;AACD;AACF,CAPM;;;;AASA,IAAME,WAAW,GAAG,SAAdA,WAAc,CAAAvG,KAAK;AAAA,SAAIuE,UAAU,CAACpD,SAAX,CAAqBnB,KAArB,CAAJ;AAAA,CAAzB;AAEP;AACA;AACA;AACA;AACA;AACA;AACA","sourcesContent":["import Html from 'slate-html-serializer';\nimport React from 'react';\nimport debug from 'debug';\nimport { object as toStyleObject } from 'to-style';\n\nimport { serialization as imgSerialization } from './plugins/image';\nimport { serialization as mathSerialization } from './plugins/math';\nimport { serialization as mediaSerialization } from './plugins/media';\nimport { serialization as listSerialization } from './plugins/list';\nimport { serialization as tableSerialization } from './plugins/table';\nimport { serialization as responseAreaSerialization } from './plugins/respArea';\nimport { Mark, Value } from 'slate';\n\nconst log = debug('@pie-lib:editable-html:serialization');\n\n/**\n * Tags to blocks.\n *\n * @type {Object}\n */\n\nexport const BLOCK_TAGS = {\n div: 'div',\n span: 'span',\n p: 'paragraph',\n blockquote: 'quote',\n pre: 'code',\n h1: 'heading-one',\n h2: 'heading-two',\n h3: 'heading-three',\n h4: 'heading-four',\n h5: 'heading-five',\n h6: 'heading-six'\n};\n\n/**\n * Tags to marks.\n *\n * @type {Object}\n */\n\nconst MARK_TAGS = {\n b: 'bold',\n em: 'italic',\n u: 'underline',\n s: 'strikethrough',\n code: 'code',\n strong: 'bold'\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 attributes = ['border', 'cellpadding', 'cellspacing', 'class', 'style'];\n\n/**\n * Serializer rules.\n *\n * @type {Array}\n */\n\nconst blocks = {\n deserialize(el, next) {\n log('[blocks:deserialize] block: ', el);\n const block = BLOCK_TAGS[el.tagName.toLowerCase()];\n if (!block) return;\n log('[blocks:deserialize] block: ', block);\n\n if (el.childNodes.length === 1) {\n const cn = el.childNodes[0];\n if (cn && cn.tagName && cn.tagName.toLowerCase() === block) {\n log('[we have a child node of the same]...');\n return;\n }\n }\n\n return {\n object: 'block',\n type: block,\n /**\n * Here for rendering styles for all block elements\n */\n data: { attributes: attributes.reduce(attributesToMap(el), {}) },\n nodes: next(el.childNodes)\n };\n },\n serialize: (object, children) => {\n if (object.object !== 'block') return;\n\n const jsonData = object.data.toJSON();\n\n log('[blocks:serialize] object: ', object, children);\n let key;\n\n for (key in BLOCK_TAGS) {\n if (BLOCK_TAGS[key] === object.type) {\n const Tag = key;\n\n return <Tag {...jsonData.attributes}>{children}</Tag>;\n }\n }\n }\n};\n\nconst marks = {\n deserialize(el, next) {\n const mark = MARK_TAGS[el.tagName.toLowerCase()];\n if (!mark) return;\n log('[deserialize] mark: ', mark);\n return {\n object: 'mark',\n type: mark,\n nodes: next(el.childNodes)\n };\n },\n serialize(object, children) {\n if (Mark.isMark(object)) {\n for (var key in MARK_TAGS) {\n if (MARK_TAGS[key] === object.type) {\n const Tag = key;\n return <Tag>{children}</Tag>;\n }\n }\n }\n }\n};\n\nconst findPreviousText = el => {\n if (el.nodeName === '#text') {\n return el;\n }\n\n if (el.previousSibling) {\n return findPreviousText(el.previousSibling);\n }\n\n return null;\n};\n\nexport const TEXT_RULE = {\n deserialize(el) {\n /**\n * This needs to be called on the dom element in order to merge the adjacent text nodes together\n * */\n el.normalize();\n\n if (el.tagName && el.tagName.toLowerCase() === 'br') {\n return {\n object: 'text',\n leaves: [\n {\n object: 'leaf',\n text: '\\n'\n }\n ]\n };\n }\n\n if (el.nodeName === '#text') {\n if (el.nodeValue && el.nodeValue.match(/<!--.*?-->/)) return;\n\n log('[text:deserialize] return text object..');\n return {\n object: 'text',\n leaves: [\n {\n object: 'leaf',\n text: el.nodeValue\n }\n ]\n };\n }\n },\n\n serialize(obj, children) {\n if (obj.object === 'string') {\n return children.split('\\n').reduce((array, text, i) => {\n if (i !== 0) array.push(<br />);\n array.push(text);\n return array;\n }, []);\n }\n }\n};\n\nconst RULES = [\n listSerialization,\n mathSerialization,\n mediaSerialization,\n imgSerialization,\n tableSerialization,\n responseAreaSerialization,\n TEXT_RULE,\n blocks,\n marks\n];\n\nfunction allWhitespace(node) {\n // Use ECMA-262 Edition 3 String and RegExp features\n return !/[^\\t\\n\\r ]/.test(node.textContent);\n}\n\nfunction defaultParseHtml(html) {\n if (typeof DOMParser === 'undefined') {\n throw new Error(\n 'The native `DOMParser` global which the `Html` serializer uses by default is not present in this environment. You must supply the `options.parseHtml` function instead.'\n );\n }\n\n const parsed = new DOMParser().parseFromString(html, 'text/html');\n\n const { body } = parsed;\n var textNodes = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null, null);\n var n = textNodes.nextNode();\n\n while (n) {\n if (allWhitespace(n) || n.nodeValue === '\\u200B') {\n n.parentNode.removeChild(n);\n }\n n = textNodes.nextNode();\n }\n\n return body;\n}\n\n/** If this lib is used on the server side, we need to bypass using the DOMParser - just put in a stub. */\nconst parseHtml =\n typeof window === 'undefined'\n ? () => ({\n childNodes: []\n })\n : defaultParseHtml;\n\nconst serializer = new Html({\n defaultBlock: 'div',\n rules: RULES,\n parseHtml\n});\n\nconst _extends =\n Object.assign ||\n function(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n/**\n * This is needed in order to override the function that eventually leads\n * to the max iteration of 12, which in most cases it's not enough. The newer versions\n * have a different way to calculate this, but updating to a newer version of slate\n * requires a lot of work fixing other issues. So we just increase the rules by 1000,\n * which means a lot of iterations.\n * Below is the code that calculates the max iterations.\n * var max = schema.stack.plugins.length + schema.rules.length + 1;\n */\nserializer.deserialize = function deserialize(html) {\n const options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const _options$toJSON = options.toJSON;\n const toJSON = _options$toJSON === undefined ? false : _options$toJSON;\n const defaultBlock = this.defaultBlock;\n const parseHtml = this.parseHtml;\n\n const fragment = parseHtml(html);\n const children = Array.from(fragment.childNodes);\n let nodes = this.deserializeElements(children);\n\n // COMPAT: ensure that all top-level inline nodes are wrapped into a block.\n nodes = nodes.reduce(function(memo, node, i, original) {\n if (node.object === 'block') {\n memo.push(node);\n return memo;\n }\n\n if (i > 0 && original[i - 1].object !== 'block') {\n const _block = memo[memo.length - 1];\n\n _block.nodes.push(node);\n return memo;\n }\n\n const block = _extends({ object: 'block', data: {}, isVoid: false }, defaultBlock, {\n nodes: [node]\n });\n\n memo.push(block);\n return memo;\n }, []);\n\n if (nodes.length === 0) {\n nodes = [\n _extends({ object: 'block', data: {}, isVoid: false }, defaultBlock, {\n nodes: [{ object: 'text', leaves: [{ object: 'leaf', text: '', marks: [] }] }]\n })\n ];\n }\n\n const json = {\n object: 'value',\n document: {\n object: 'document',\n data: {},\n nodes: nodes\n },\n schema: {\n rules: []\n }\n };\n\n let i;\n\n for (i = 0; i < 3000; i++) {\n json.schema.rules.push({\n match: { object: 'document' },\n nodes: [{ match: { object: 'block' } }]\n });\n }\n\n const ret = toJSON ? json : Value.fromJSON(json);\n\n if (ret) {\n return ret;\n }\n\n return null;\n};\n\nexport const htmlToValue = html => {\n try {\n return serializer.deserialize(html);\n } catch (e) {\n console.log(\"Couldn't parse html: \", e);\n return {};\n }\n};\n\nexport const valueToHtml = value => serializer.serialize(value);\n\n/**\n *\n * <div><div>a</div></div> -> <div>a</div>\n *\n * <div><div>a</div><div>b</div></div> -> <div>a</div><div>b</div>\n * <div><div>a</div>4444<div>b</div></div> -> <div>a</div>4444<div>b</div>\n */\n"],"file":"serialization.js"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.primary = void 0;
7
- var primary = '#304ffe';
8
- exports.primary = primary;
9
- //# sourceMappingURL=theme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/theme.js"],"names":["primary"],"mappings":";;;;;;AAAO,IAAMA,OAAO,GAAG,SAAhB","sourcesContent":["export const primary = '#304ffe';\n"],"file":"theme.js"}