@pie-element/ebsr 6.6.2 → 6.6.3-next.1016

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 (735) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/configure/CHANGELOG.md +169 -0
  3. package/configure/lib/defaults.js +29 -12
  4. package/configure/lib/defaults.js.map +1 -1
  5. package/configure/lib/index.js +30 -23
  6. package/configure/lib/index.js.map +1 -1
  7. package/configure/lib/main.js +70 -43
  8. package/configure/lib/main.js.map +1 -1
  9. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +1972 -0
  10. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +1793 -0
  11. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +5 -0
  12. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +35 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/README.md +56 -0
  14. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +1387 -0
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +1334 -0
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +104 -0
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +1 -0
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +198 -0
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +1 -0
  21. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +599 -0
  22. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +1 -0
  23. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +18 -0
  24. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +1 -0
  25. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +20 -0
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +527 -0
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +768 -0
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +18 -0
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +1 -0
  30. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +305 -0
  31. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +1 -0
  32. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +36 -0
  33. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +1 -0
  34. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +15 -0
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +353 -0
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +277 -0
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +8 -0
  38. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +52 -0
  39. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +1 -0
  40. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +7 -0
  41. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +338 -0
  42. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +274 -0
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +298 -0
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +1 -0
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +157 -0
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +1 -0
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +174 -0
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +1 -0
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +151 -0
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +1 -0
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +97 -0
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +1 -0
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +254 -0
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +1 -0
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +129 -0
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +1 -0
  57. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +35 -0
  58. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +1 -0
  59. package/configure/node_modules/@pie-element/multiple-choice/module/configure.js +843 -0
  60. package/{module → configure/node_modules/@pie-element/multiple-choice/module}/controller.js +17399 -17113
  61. package/configure/node_modules/@pie-element/multiple-choice/module/demo.js +77 -0
  62. package/configure/node_modules/@pie-element/multiple-choice/module/element.js +2019 -0
  63. package/configure/node_modules/@pie-element/multiple-choice/module/index.html +21 -0
  64. package/configure/node_modules/@pie-element/multiple-choice/module/manifest.json +14 -0
  65. package/configure/node_modules/@pie-element/multiple-choice/module/print-demo.js +115 -0
  66. package/configure/node_modules/@pie-element/multiple-choice/module/print.html +18 -0
  67. package/configure/node_modules/@pie-element/multiple-choice/module/print.js +1983 -0
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +1677 -0
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +1645 -0
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +5 -0
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +12 -0
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +44 -0
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +1 -0
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +86 -0
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +1 -0
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +180 -0
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +1 -0
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +409 -0
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +1 -0
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +54 -0
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +1 -0
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +196 -0
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +1 -0
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +75 -0
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +1 -0
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +189 -0
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +1 -0
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +46 -0
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +1 -0
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +156 -0
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +1 -0
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +216 -0
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +1 -0
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +152 -0
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +1 -0
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +131 -0
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +1 -0
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +191 -0
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +1 -0
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +113 -0
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +1 -0
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +24 -0
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +1 -0
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +115 -0
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +1 -0
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +99 -0
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +1 -0
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +79 -0
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +1 -0
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +370 -0
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +1 -0
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +278 -0
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +1 -0
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +41 -0
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +1 -0
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +77 -0
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +1 -0
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +140 -0
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +1 -0
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +426 -0
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +1 -0
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +43 -0
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +1 -0
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +56 -0
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +1 -0
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +117 -0
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +1 -0
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +210 -0
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +1 -0
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +192 -0
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +1 -0
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +95 -0
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +1 -0
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  140. 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 +1 -0
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  142. 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 +1 -0
  143. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  144. 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 +1 -0
  145. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  146. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  147. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  148. 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 +1 -0
  149. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/package.json +19 -0
  150. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  151. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  152. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  153. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  154. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  155. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  156. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  157. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  158. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  159. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  160. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  161. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  162. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  163. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  164. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/README.md +33 -0
  165. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  166. 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 +1 -0
  167. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  168. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  169. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  170. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  171. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  172. 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 +1 -0
  173. 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 +102 -0
  174. 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 +1 -0
  175. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  176. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  177. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  178. 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 +1 -0
  179. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  180. 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 +1 -0
  181. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  182. 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 +1 -0
  183. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  184. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  185. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  186. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  187. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  188. 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 +1 -0
  189. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  190. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  191. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/package.json +30 -0
  192. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  193. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  194. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  195. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  196. 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 +40 -0
  197. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  198. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  199. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  200. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  201. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  202. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  203. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  204. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  205. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +30 -0
  206. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +43 -0
  207. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +63 -0
  208. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +103 -0
  209. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +315 -0
  210. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +30 -0
  211. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +116 -0
  212. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +54 -0
  213. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +98 -0
  214. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +23 -0
  215. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +88 -0
  216. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +58 -0
  217. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +72 -0
  218. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +96 -0
  219. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +122 -0
  220. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +64 -0
  221. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +4 -0
  222. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +60 -0
  223. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +31 -0
  224. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +64 -0
  225. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +279 -0
  226. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +196 -0
  227. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +18 -0
  228. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +52 -0
  229. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +75 -0
  230. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +297 -0
  231. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +20 -0
  232. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +31 -0
  233. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +51 -0
  234. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +121 -0
  235. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +94 -0
  236. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +36 -0
  237. package/configure/node_modules/@pie-element/multiple-choice/package.json +34 -0
  238. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +547 -0
  239. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +516 -0
  240. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +5 -0
  241. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +64 -0
  242. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +86 -0
  243. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +1 -0
  244. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +155 -0
  245. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +1 -0
  246. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +65 -0
  247. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +1 -0
  248. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  249. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  250. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  251. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  252. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  253. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  254. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  255. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  256. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  257. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  258. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  259. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  260. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  261. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  262. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  263. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/package.json +19 -0
  264. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  265. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  266. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  267. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  268. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  269. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  270. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  271. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  272. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  273. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  274. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  275. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  276. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  277. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  278. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/README.md +33 -0
  279. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  280. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  281. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  282. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  283. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  284. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  285. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  286. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  287. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  288. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  289. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  290. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  291. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  292. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  293. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  294. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  295. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  296. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  297. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  298. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  299. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  300. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  301. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  302. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  303. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  304. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  305. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/package.json +30 -0
  306. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  307. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  308. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  309. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  310. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  311. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  312. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  313. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  314. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  315. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  316. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  317. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  318. package/configure/node_modules/@pie-lib/correct-answer-toggle/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  319. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +36 -0
  320. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  321. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +65 -0
  322. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +75 -0
  323. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +60 -0
  324. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +3327 -0
  325. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +1616 -0
  326. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +5 -0
  327. package/configure/node_modules/@pie-lib/editable-html/README.md +45 -0
  328. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +16 -0
  329. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +752 -0
  330. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +1 -0
  331. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +236 -0
  332. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +1 -0
  333. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +16 -0
  334. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +1 -0
  335. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +250 -0
  336. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +1 -0
  337. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +143 -0
  338. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +1 -0
  339. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +219 -0
  340. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +1 -0
  341. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +139 -0
  342. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +1 -0
  343. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +135 -0
  344. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +1 -0
  345. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +204 -0
  346. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +1 -0
  347. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +347 -0
  348. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +1 -0
  349. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +344 -0
  350. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +1 -0
  351. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +449 -0
  352. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +1 -0
  353. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +109 -0
  354. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +1 -0
  355. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +106 -0
  356. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +1 -0
  357. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +264 -0
  358. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +1 -0
  359. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +97 -0
  360. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +1 -0
  361. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +54 -0
  362. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +1 -0
  363. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +93 -0
  364. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +1 -0
  365. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +288 -0
  366. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +1 -0
  367. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +70 -0
  368. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +1 -0
  369. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +110 -0
  370. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +1 -0
  371. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +69 -0
  372. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +1 -0
  373. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +497 -0
  374. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +1 -0
  375. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +169 -0
  376. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +1 -0
  377. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +132 -0
  378. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +1 -0
  379. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +50 -0
  380. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +1 -0
  381. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +275 -0
  382. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +1 -0
  383. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +32 -0
  384. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +1 -0
  385. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +179 -0
  386. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +1 -0
  387. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +358 -0
  388. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +1 -0
  389. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +62 -0
  390. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +1 -0
  391. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +411 -0
  392. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +1 -0
  393. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +9 -0
  394. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +1 -0
  395. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  396. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/CHANGELOG.md +449 -0
  397. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  398. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  399. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  400. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  401. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  402. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  403. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  404. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  405. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  406. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  407. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  408. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js +276 -0
  409. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  410. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/package.json +19 -0
  411. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  412. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  413. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  414. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  415. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  416. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  417. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  418. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  419. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  420. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  421. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/math-rendering/src/render-math.js +230 -0
  422. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  423. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/CHANGELOG.md +618 -0
  424. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  425. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/README.md +33 -0
  426. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  427. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  428. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  429. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  430. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  431. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  432. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  433. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  434. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  435. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  436. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  437. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  438. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  439. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  440. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  441. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  442. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  443. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  444. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  445. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  446. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  447. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  448. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  449. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  450. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  451. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  452. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/package.json +30 -0
  453. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  454. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  455. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  456. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  457. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  458. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  459. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  460. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  461. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  462. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  463. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  464. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  465. package/configure/node_modules/@pie-lib/editable-html/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  466. package/configure/node_modules/@pie-lib/editable-html/package.json +51 -0
  467. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +59 -0
  468. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +24 -0
  469. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +83 -0
  470. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +27 -0
  471. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +25 -0
  472. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +151 -0
  473. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +15 -0
  474. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +26 -0
  475. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +30 -0
  476. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +29 -0
  477. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +40 -0
  478. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +23 -0
  479. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +96 -0
  480. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +29 -0
  481. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +40 -0
  482. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +24 -0
  483. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +12 -0
  484. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +3 -0
  485. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +67 -0
  486. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +42 -0
  487. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +641 -0
  488. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +145 -0
  489. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +8 -0
  490. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +27 -0
  491. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +166 -0
  492. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +62 -0
  493. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +180 -0
  494. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +93 -0
  495. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +112 -0
  496. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +175 -0
  497. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +283 -0
  498. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +284 -0
  499. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +372 -0
  500. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +53 -0
  501. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +43 -0
  502. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +187 -0
  503. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +78 -0
  504. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +45 -0
  505. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +68 -0
  506. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +259 -0
  507. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +63 -0
  508. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +77 -0
  509. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +59 -0
  510. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +437 -0
  511. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +104 -0
  512. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +111 -0
  513. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +36 -0
  514. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +225 -0
  515. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +21 -0
  516. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +97 -0
  517. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +316 -0
  518. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +32 -0
  519. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +376 -0
  520. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +1 -0
  521. package/configure/node_modules/@pie-lib/editable-html/static.json +1 -0
  522. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +1547 -0
  523. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +757 -0
  524. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +5 -0
  525. package/configure/node_modules/@pie-lib/math-input/README.md +27 -0
  526. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +126 -0
  527. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +1 -0
  528. package/configure/node_modules/@pie-lib/math-input/lib/index.js +80 -0
  529. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +1 -0
  530. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +417 -0
  531. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +1 -0
  532. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +34 -0
  533. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +1 -0
  534. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +41 -0
  535. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +1 -0
  536. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +17 -0
  537. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +1 -0
  538. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +46 -0
  539. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +1 -0
  540. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +43 -0
  541. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +1 -0
  542. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +53 -0
  543. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +1 -0
  544. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +16 -0
  545. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +1 -0
  546. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +35 -0
  547. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +1 -0
  548. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +31 -0
  549. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +1 -0
  550. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +165 -0
  551. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +1 -0
  552. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +295 -0
  553. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +1 -0
  554. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +54 -0
  555. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +1 -0
  556. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +32 -0
  557. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +1 -0
  558. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +23 -0
  559. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +1 -0
  560. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +23 -0
  561. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +1 -0
  562. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +69 -0
  563. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +1 -0
  564. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +23 -0
  565. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +1 -0
  566. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +17 -0
  567. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +1 -0
  568. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +45 -0
  569. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +1 -0
  570. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +23 -0
  571. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +1 -0
  572. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +53 -0
  573. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +1 -0
  574. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +130 -0
  575. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +1 -0
  576. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +29 -0
  577. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +1 -0
  578. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +206 -0
  579. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +1 -0
  580. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +23 -0
  581. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +1 -0
  582. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +24 -0
  583. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +1 -0
  584. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +257 -0
  585. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +1 -0
  586. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +224 -0
  587. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +1 -0
  588. package/configure/node_modules/@pie-lib/math-input/package.json +26 -0
  589. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +54 -0
  590. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +27 -0
  591. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +335 -0
  592. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +17 -0
  593. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +32 -0
  594. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +5 -0
  595. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +27 -0
  596. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +35 -0
  597. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +40 -0
  598. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +3 -0
  599. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +27 -0
  600. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +23 -0
  601. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +140 -0
  602. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +379 -0
  603. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +21 -0
  604. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +22 -0
  605. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +15 -0
  606. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +15 -0
  607. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +60 -0
  608. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +8 -0
  609. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +9 -0
  610. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +36 -0
  611. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +15 -0
  612. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +15 -0
  613. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +71 -0
  614. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +19 -0
  615. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +128 -0
  616. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +11 -0
  617. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +4 -0
  618. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +163 -0
  619. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +145 -0
  620. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +672 -0
  621. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +427 -0
  622. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +5 -0
  623. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +30 -0
  624. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +1 -0
  625. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +316 -0
  626. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +1 -0
  627. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +23 -0
  628. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +1 -0
  629. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +123 -0
  630. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +1 -0
  631. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +103 -0
  632. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +1 -0
  633. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +275 -0
  634. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +1 -0
  635. package/configure/node_modules/@pie-lib/math-rendering/package.json +19 -0
  636. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +872 -0
  637. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +108 -0
  638. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +156 -0
  639. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +16 -0
  640. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +29 -0
  641. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +4 -0
  642. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +215 -0
  643. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +13 -0
  644. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +24 -0
  645. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +69 -0
  646. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +234 -0
  647. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +862 -0
  648. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +631 -0
  649. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +5 -0
  650. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +53 -0
  651. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +1 -0
  652. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +463 -0
  653. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +1 -0
  654. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +271 -0
  655. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +1 -0
  656. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +173 -0
  657. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +1 -0
  658. package/configure/node_modules/@pie-lib/math-toolbar/package.json +37 -0
  659. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +39 -0
  660. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +373 -0
  661. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +193 -0
  662. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +107 -0
  663. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +937 -0
  664. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +602 -0
  665. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +5 -0
  666. package/configure/node_modules/@pie-lib/render-ui/README.md +33 -0
  667. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +146 -0
  668. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +1 -0
  669. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +134 -0
  670. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +1 -0
  671. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +160 -0
  672. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +1 -0
  673. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +24 -0
  674. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +1 -0
  675. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +102 -0
  676. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +1 -0
  677. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +104 -0
  678. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +1 -0
  679. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +60 -0
  680. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +1 -0
  681. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +133 -0
  682. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +1 -0
  683. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +162 -0
  684. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +1 -0
  685. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +28 -0
  686. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +1 -0
  687. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +28 -0
  688. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +1 -0
  689. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +160 -0
  690. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +1 -0
  691. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +206 -0
  692. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +1 -0
  693. package/configure/node_modules/@pie-lib/render-ui/package.json +30 -0
  694. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +68 -0
  695. package/configure/node_modules/@pie-lib/render-ui/src/color.js +48 -0
  696. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +100 -0
  697. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +14 -0
  698. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +40 -0
  699. package/configure/node_modules/@pie-lib/render-ui/src/index.js +27 -0
  700. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +41 -0
  701. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +77 -0
  702. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +90 -0
  703. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +19 -0
  704. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +19 -0
  705. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +89 -0
  706. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +118 -0
  707. package/configure/package.json +3 -3
  708. package/configure/src/__tests__/__snapshots__/index.test.js.snap +12 -4
  709. package/configure/src/__tests__/index.test.js +4 -2
  710. package/configure/src/defaults.js +27 -11
  711. package/configure/src/index.js +14 -35
  712. package/configure/src/main.jsx +69 -35
  713. package/controller/CHANGELOG.md +25 -0
  714. package/controller/lib/index.js +113 -23
  715. package/controller/lib/index.js.map +1 -1
  716. package/controller/package.json +1 -1
  717. package/controller/src/index.js +62 -5
  718. package/docs/config-schema.json +311 -3
  719. package/docs/config-schema.json.md +243 -7
  720. package/docs/demo/config.js +1 -1
  721. package/docs/pie-schema.json +139 -1
  722. package/docs/pie-schema.json.md +106 -2
  723. package/lib/index.js +10 -7
  724. package/lib/index.js.map +1 -1
  725. package/lib/print.js +243 -0
  726. package/lib/print.js.map +1 -0
  727. package/package.json +8 -4
  728. package/src/index.js +4 -0
  729. package/src/print.js +181 -0
  730. package/docs/demo/pie.manifest.json +0 -11
  731. package/module/configure.js +0 -1546
  732. package/module/demo.js +0 -79
  733. package/module/element.js +0 -1326
  734. package/module/index.html +0 -16
  735. package/module/manifest.json +0 -10
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/editor.jsx"],"names":["log","defaultToolbarOpts","position","alignment","alwaysVisible","showDone","doneOn","defaultResponseAreaProps","options","respAreaToolbar","onHandleAreaChange","createToolbarOpts","toolbarOpts","Editor","props","e","relatedTarget","target","node","state","value","setState","focusedNode","resetValue","stashedValue","stashValue","editor","change","c","collapseToStartOf","selectedNode","onChange","resolve","nonEmpty","toolbarInFocus","blur","startText","text","length","then","onEditingDone","event","Promise","handleBlur","bind","onBlur","editorDOM","document","querySelector","key","setTimeout","wrapperRef","editorElement","activeElement","closest","className","toolbarElement","toolbarRef","isInCurrentComponent","contains","removeEventListener","handleDomBlur","__TEMPORARY_CHANGE_DATA","data","domEl","setNodeByKey","addEventListener","onFocus","force","stopReset","plugins","reduce","s","p","isFocused","toObject","newValue","Value","fromJSON","toJSON","done","v","endsWith","undefined","parseInt","isNaN","object","last","nodes","type","parent","getParent","Block","pos","focus","normalizedResponseAreaProps","responseAreaProps","onResize","activePlugins","math","onClick","onMathClick","onPluginFocus","onPluginBlur","image","onDelete","imageSupport","src","insertImageRequested","getHandler","handler","add","toolbar","disableUnderline","autoWidth","autoWidthToolbar","onDone","table","responseArea","maxResponseAreas","error","media","createChange","onRef","window","autoFocus","nextProps","newToolbarOpts","zeroWidthEls","querySelectorAll","Array","from","forEach","el","style","minWidth","display","equals","width","minHeight","height","maxHeight","valueToSize","disabled","spellCheck","highlightShape","classes","placeholder","pluginProps","onKeyDown","sizeStyle","buildSizeStyle","names","withBg","toolbarOnTop","ref","r","slateEditor","editorRef","normalize","changeData","React","Component","PropTypes","bool","func","isRequired","SlateTypes","oneOfType","string","number","any","shape","oneOf","arrayOf","values","allValid","every","ALL_PLUGINS","includes","Error","join","styles","backgroundColor","fontFamily","tableLayout","borderCollapse","color","background","borderTop","padding","textAlign","border","marginTop"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAMA,GAAG,GAAG,uBAAM,sBAAN,CAAZ;AAEA,IAAMC,kBAAkB,GAAG;AACzBC,EAAAA,QAAQ,EAAE,QADe;AAEzBC,EAAAA,SAAS,EAAE,MAFc;AAGzBC,EAAAA,aAAa,EAAE,KAHU;AAIzBC,EAAAA,QAAQ,EAAE,IAJe;AAKzBC,EAAAA,MAAM,EAAE;AALiB,CAA3B;AAQA,IAAMC,wBAAwB,GAAG;AAC/BC,EAAAA,OAAO,EAAE,EADsB;AAE/BC,EAAAA,eAAe,EAAE,2BAAM,CAAE,CAFM;AAG/BC,EAAAA,kBAAkB,EAAE,8BAAM,CAAE;AAHG,CAAjC;;AAMA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,CAAAC,WAAW,EAAI;AACvC,yCACKX,kBADL,GAEKW,WAFL;AAID,CALD;;IAOaC,M;;;;;AA8DX,kBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,8BAAMA,KAAN;;AADiB,mEAkJJ,UAAAC,CAAC,EAAI;AAClBf,MAAAA,GAAG,CAAC,gBAAD,EAAmBe,CAAC,IAAIA,CAAC,CAACC,aAA1B,CAAH;AACA,UAAMC,MAAM,GAAGF,CAAC,IAAIA,CAAC,CAACC,aAAtB;AAEA,UAAME,IAAI,GAAGD,MAAM,GAAG,0BAASA,MAAT,EAAiB,MAAKE,KAAL,CAAWC,KAA5B,CAAH,GAAwC,IAA3D;AACApB,MAAAA,GAAG,CAAC,uBAAD,EAA0BkB,IAA1B,CAAH;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GAAG;AACb7B,EAAAA,MAAM,EAAE;AACN8B,IAAAA,eAAe,EAAE;AADX,GADK;AAIb1B,EAAAA,WAAW,EAAE;AACX2B,IAAAA,UAAU,EAAE,oBADD;AAGX,eAAW;AACTC,MAAAA,WAAW,EAAE,OADJ;AAET/C,MAAAA,KAAK,EAAE,MAFE;AAGTgD,MAAAA,cAAc,EAAE,UAHP;AAITC,MAAAA,KAAK,EAAEA,gBAAMtJ,IAAN,EAJE;AAKTkJ,MAAAA,eAAe,EAAEI,gBAAMC,UAAN;AALR,KAHA;AAUX,oCAAgC;AAC9BC,MAAAA,SAAS,EAAE,mBADmB,CAE9B;AACA;AACA;AACA;;AAL8B,KAVrB;AAiBX,gBAAY;AACVC,MAAAA,OAAO,EAAE,UADC;AAEVC,MAAAA,SAAS,EAAE;AAFD,KAjBD;AAqBX,wCAAoC;AAClCC,MAAAA,MAAM,EAAE;AAD0B;AArBzB,GAJA;AA6BbtC,EAAAA,YAAY,EAAE;AACZuC,IAAAA,SAAS,EAAE;AADC;AA7BD,CAAf;;eAkCe,wBAAWX,MAAX,EAAmBzK,MAAnB,C","sourcesContent":["import { Editor as SlateEditor, findNode } from 'slate-react';\nimport SlateTypes from 'slate-prop-types';\n\nimport isEqual from 'lodash/isEqual';\nimport * as serialization from './serialization';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport { Value, Block } from 'slate';\nimport { buildPlugins, ALL_PLUGINS, DEFAULT_PLUGINS } from './plugins';\nimport debug from 'debug';\nimport { withStyles } from '@material-ui/core/styles';\nimport classNames from 'classnames';\nimport { color } from '@pie-lib/render-ui';\n\nexport { ALL_PLUGINS, DEFAULT_PLUGINS, serialization };\n\nconst log = debug('editable-html:editor');\n\nconst defaultToolbarOpts = {\n position: 'bottom',\n alignment: 'left',\n alwaysVisible: false,\n showDone: true,\n doneOn: 'blur'\n};\n\nconst defaultResponseAreaProps = {\n options: {},\n respAreaToolbar: () => {},\n onHandleAreaChange: () => {}\n};\n\nconst createToolbarOpts = toolbarOpts => {\n return {\n ...defaultToolbarOpts,\n ...toolbarOpts\n };\n};\n\nexport class Editor extends React.Component {\n static propTypes = {\n autoFocus: PropTypes.bool,\n editorRef: PropTypes.func.isRequired,\n onRef: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n onBlur: PropTypes.func,\n onKeyDown: PropTypes.func,\n focus: PropTypes.func.isRequired,\n value: SlateTypes.value.isRequired,\n imageSupport: PropTypes.object,\n width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n minHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n maxHeight: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n classes: PropTypes.object.isRequired,\n highlightShape: PropTypes.bool,\n disabled: PropTypes.bool,\n spellCheck: PropTypes.bool,\n nonEmpty: PropTypes.bool,\n disableUnderline: PropTypes.bool,\n autoWidthToolbar: PropTypes.bool,\n pluginProps: PropTypes.any,\n placeholder: PropTypes.string,\n responseAreaProps: PropTypes.shape({\n type: PropTypes.oneOf([\n 'explicit-constructed-response',\n 'inline-dropdown',\n 'drag-in-the-blank'\n ]),\n options: PropTypes.object,\n respAreaToolbar: PropTypes.func,\n onHandleAreaChange: PropTypes.func\n }),\n toolbarOpts: PropTypes.shape({\n position: PropTypes.oneOf(['bottom', 'top']),\n alignment: PropTypes.oneOf(['left', 'right']),\n alwaysVisible: PropTypes.bool,\n showDone: PropTypes.bool,\n doneOn: PropTypes.string\n }),\n activePlugins: PropTypes.arrayOf(values => {\n const allValid = values.every(v => ALL_PLUGINS.includes(v));\n\n return (\n !allValid &&\n new Error(`Invalid values: ${values}, values must be one of [${ALL_PLUGINS.join(',')}]`)\n );\n }),\n className: PropTypes.string\n };\n\n static defaultProps = {\n disableUnderline: true,\n onFocus: () => {},\n onBlur: () => {},\n onKeyDown: () => {},\n toolbarOpts: defaultToolbarOpts,\n responseAreaProps: defaultResponseAreaProps\n };\n\n constructor(props) {\n super(props);\n this.state = {\n value: props.value,\n toolbarOpts: createToolbarOpts(props.toolbarOpts)\n };\n\n const normalizedResponseAreaProps = {\n ...defaultResponseAreaProps,\n ...props.responseAreaProps\n };\n\n this.onResize = () => {\n props.onChange(this.state.value, true);\n };\n\n this.plugins = buildPlugins(props.activePlugins, {\n math: {\n onClick: this.onMathClick,\n onFocus: this.onPluginFocus,\n onBlur: this.onPluginBlur\n },\n image: {\n onDelete:\n this.props.imageSupport &&\n this.props.imageSupport.delete &&\n ((src, done) => {\n this.props.imageSupport.delete(src, e => {\n done(e, this.state.value);\n });\n }),\n insertImageRequested:\n this.props.imageSupport &&\n (getHandler => {\n /**\n * The handler is the object through which the outer context\n * communicates file upload events like: fileChosen, cancel, progress\n */\n const handler = getHandler(() => this.state.value);\n this.props.imageSupport.add(handler);\n }),\n onFocus: this.onPluginFocus,\n onBlur: this.onPluginBlur\n },\n toolbar: {\n /**\n * To minimize converting html -> state -> html\n * We only emit markup once 'done' is clicked.\n */\n disableUnderline: props.disableUnderline,\n autoWidth: props.autoWidthToolbar,\n onDone: () => {\n const { nonEmpty } = this.props;\n\n log('[onDone]');\n this.setState({ toolbarInFocus: false, focusedNode: null });\n this.editor.blur();\n\n if (nonEmpty && this.state.value.startText.text.length === 0) {\n this.resetValue(true).then(() => {\n this.onEditingDone();\n });\n } else {\n this.onEditingDone();\n }\n }\n },\n table: {\n onFocus: () => {\n log('[table:onFocus]...');\n this.onPluginFocus();\n },\n onBlur: () => {\n log('[table:onBlur]...');\n this.onPluginBlur();\n }\n },\n responseArea: {\n type: normalizedResponseAreaProps.type,\n options: normalizedResponseAreaProps.options,\n maxResponseAreas: normalizedResponseAreaProps.maxResponseAreas,\n respAreaToolbar: normalizedResponseAreaProps.respAreaToolbar,\n onHandleAreaChange: normalizedResponseAreaProps.onHandleAreaChange,\n error: normalizedResponseAreaProps.error,\n onFocus: () => {\n log('[table:onFocus]...');\n this.onPluginFocus();\n },\n onBlur: () => {\n log('[table:onBlur]...');\n this.onPluginBlur();\n }\n },\n media: {\n focus: this.focus,\n createChange: () => this.state.value.change(),\n onChange: this.onChange\n }\n });\n }\n\n componentDidMount() {\n // onRef is needed to get the ref of the component because we export it using withStyles\n this.props.onRef(this);\n\n window.addEventListener('resize', this.onResize);\n\n if (this.editor && this.props.autoFocus) {\n Promise.resolve().then(() => {\n if (this.editor) {\n const editorDOM = document.querySelector(\n `[data-key=\"${this.editor.value.document.key}\"]`\n );\n\n this.editor.focus();\n\n if (editorDOM) {\n editorDOM.focus();\n }\n }\n });\n }\n }\n\n componentWillReceiveProps(nextProps) {\n const { toolbarOpts } = this.state;\n const newToolbarOpts = createToolbarOpts(nextProps.toolbarOpts);\n\n if (!isEqual(newToolbarOpts, toolbarOpts)) {\n this.setState({\n toolbarOpts: newToolbarOpts\n });\n }\n }\n\n componentDidUpdate() {\n // The cursor is on a zero width element and when that is placed near void elements, it is not visible\n // so we increase the width to at least 2px in order for the user to see it\n const zeroWidthEls = document.querySelectorAll('[data-slate-zero-width=\"z\"]');\n\n Array.from(zeroWidthEls).forEach(el => {\n el.style.minWidth = '2px';\n el.style.display = 'inline-block';\n });\n }\n\n onPluginBlur = e => {\n log('[onPluginBlur]', e && e.relatedTarget);\n const target = e && e.relatedTarget;\n\n const node = target ? findNode(target, this.state.value) : null;\n log('[onPluginBlur] node: ', node);\n this.setState({ focusedNode: node }, () => {\n this.resetValue();\n });\n };\n\n onPluginFocus = e => {\n log('[onPluginFocus]', e && e.target);\n const target = e && e.target;\n if (target) {\n const node = findNode(target, this.state.value);\n log('[onPluginFocus] node: ', node);\n\n const stashedValue = this.state.stashedValue || this.state.value;\n this.setState({ focusedNode: node, stashedValue });\n } else {\n this.setState({ focusedNode: null });\n }\n this.stashValue();\n };\n\n onMathClick = node => {\n this.editor.change(c => c.collapseToStartOf(node));\n this.setState({ selectedNode: node });\n };\n\n onEditingDone = () => {\n log('[onEditingDone]');\n this.setState({ stashedValue: null, focusedNode: null });\n log('[onEditingDone] value: ', this.state.value);\n this.props.onChange(this.state.value, true);\n };\n\n /**\n * Remove onResize event listener\n */\n componentWillUnmount() {\n window.removeEventListener('resize', this.onResize);\n }\n\n // Allowing time for onChange to take effect if it is called\n handleBlur = resolve => {\n const { nonEmpty } = this.props;\n const {\n toolbarOpts: { doneOn }\n } = this.state;\n\n this.setState({ toolbarInFocus: false, focusedNode: null });\n\n if (this.editor) {\n this.editor.blur();\n }\n\n if (doneOn === 'blur') {\n if (nonEmpty && this.state.value.startText.text.length === 0) {\n this.resetValue(true).then(() => {\n this.onEditingDone();\n resolve();\n });\n } else {\n this.onEditingDone();\n resolve();\n }\n }\n };\n\n onBlur = event => {\n log('[onBlur]');\n const target = event.relatedTarget;\n\n const node = target ? findNode(target, this.state.value) : null;\n\n log('[onBlur] node: ', node);\n\n return new Promise(resolve => {\n this.setState({ focusedNode: node }, this.handleBlur.bind(this, resolve));\n this.props.onBlur(event);\n });\n };\n\n handleDomBlur = e => {\n const editorDOM = document.querySelector(`[data-key=\"${this.state.value.document.key}\"]`);\n\n setTimeout(() => {\n if (!this.wrapperRef) {\n return;\n }\n\n const editorElement =\n !editorDOM || document.activeElement.closest(`[class*=\"${editorDOM.className}\"]`);\n const toolbarElement =\n !this.toolbarRef ||\n document.activeElement.closest(`[class*=\"${this.toolbarRef.className}\"]`);\n const isInCurrentComponent =\n this.wrapperRef.contains(editorElement) || this.wrapperRef.contains(toolbarElement);\n\n if (!isInCurrentComponent) {\n editorDOM.removeEventListener('blur', this.handleDomBlur);\n this.onBlur(e);\n }\n }, 50);\n };\n\n /*\n * Needs to be wrapped otherwise it causes issues because of race conditions\n * Known issue for slatejs. See: https://github.com/ianstormtaylor/slate/issues/2097\n * Using timeout I wasn't able to test this\n *\n * Note: The use of promises has been causing issues with MathQuill\n * */\n onFocus = () =>\n new Promise(resolve => {\n const editorDOM = document.querySelector(`[data-key=\"${this.state.value.document.key}\"]`);\n\n log('[onFocus]', document.activeElement);\n\n /**\n * This is a temporary hack - @see changeData below for some more information.\n */\n if (this.__TEMPORARY_CHANGE_DATA) {\n const { key, data } = this.__TEMPORARY_CHANGE_DATA;\n const domEl = document.querySelector(`[data-key=\"${key}\"]`);\n\n if (domEl) {\n let change = this.state.value.change().setNodeByKey(key, { data });\n\n this.setState({ value: change.value }, () => {\n this.__TEMPORARY_CHANGE_DATA = null;\n });\n }\n }\n\n /**\n * This is needed just in case the browser decides to make the editor\n * lose focus without triggering the onBlur event (can happen in a few cases).\n * This will also trigger onBlur if the user clicks outside of the page when the editor\n * is focused.\n */\n if (editorDOM === document.activeElement) {\n editorDOM.removeEventListener('blur', this.handleDomBlur);\n editorDOM.addEventListener('blur', this.handleDomBlur);\n }\n\n this.stashValue();\n this.props.onFocus();\n\n resolve();\n });\n\n stashValue = () => {\n log('[stashValue]');\n if (!this.state.stashedValue) {\n this.setState({ stashedValue: this.state.value });\n }\n };\n\n /**\n * Reset the value if the user didn't click done.\n */\n resetValue = force => {\n const { value, focusedNode } = this.state;\n\n const stopReset = this.plugins.reduce((s, p) => {\n return s || (p.stopReset && p.stopReset(this.state.value));\n }, false);\n\n log('[resetValue]', value.isFocused, focusedNode, 'stopReset: ', stopReset);\n if ((this.state.stashedValue && !value.isFocused && !focusedNode && !stopReset) || force) {\n log('[resetValue] resetting...');\n log('stashed', this.state.stashedValue.document.toObject());\n log('current', this.state.value.document.toObject());\n\n const newValue = Value.fromJSON(this.state.stashedValue.toJSON());\n\n log('newValue: ', newValue.document);\n return new Promise(resolve => {\n setTimeout(() => {\n this.setState({ value: newValue, stashedValue: null }, () => {\n log('value now: ', this.state.value.document.toJSON());\n resolve();\n });\n }, 50);\n });\n } else {\n return Promise.resolve({});\n }\n };\n\n onChange = (change, done) => {\n log('[onChange]');\n this.setState({ value: change.value }, () => {\n log('[onChange], call done()');\n\n if (done) {\n done();\n }\n });\n };\n\n UNSAFE_componentWillReceiveProps(props) {\n if (!props.value.document.equals(this.props.value.document)) {\n this.setState({\n focus: false,\n value: props.value\n });\n }\n }\n\n valueToSize = v => {\n if (!v) {\n return;\n }\n\n if (typeof v === 'string') {\n if (v.endsWith('%')) {\n return undefined;\n } else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw')) {\n return v;\n } else {\n const value = parseInt(v, 10);\n return isNaN(value) ? value : `${value}px`;\n }\n }\n if (typeof v === 'number') {\n return `${v}px`;\n }\n\n return;\n };\n\n buildSizeStyle() {\n const { width, minHeight, height, maxHeight } = this.props;\n\n return {\n width: this.valueToSize(width),\n height: this.valueToSize(height),\n minHeight: this.valueToSize(minHeight),\n maxHeight: this.valueToSize(maxHeight)\n };\n }\n\n validateNode = node => {\n if (node.object !== 'block') return;\n\n const last = node.nodes.last();\n if (!last) return;\n\n if (last.type !== 'image') return;\n\n log('[validateNode] last is image..');\n\n const parent = last.getParent(last.key);\n const p = Block.getParent(last.key);\n log('[validateNode] parent:', parent, p);\n\n return undefined;\n };\n\n changeData = (key, data) => {\n log('[changeData]. .. ', key, data);\n\n /**\n * HACK ALERT: We should be calling setState here and storing the change data:\n *\n * <code>this.setState({changeData: { key, data}})</code>\n * However this is causing issues with the Mathquill instance. The 'input' event stops firing on the element and no\n * more changes get through. The issues seem to be related to the promises in onBlur/onFocus. But removing these\n * brings it's own problems. A major clean up is planned for this component so I've decided to temporarily settle\n * on this hack rather than spend more time on this.\n */\n\n // Uncomment this line to see the bug described above.\n // this.setState({changeData: {key, data}})\n\n this.__TEMPORARY_CHANGE_DATA = { key, data };\n };\n\n focus = (pos, node) => {\n const position = pos || 'end';\n\n this.props.focus(position, node);\n };\n\n render() {\n const {\n disabled,\n spellCheck,\n highlightShape,\n classes,\n className,\n placeholder,\n pluginProps,\n onKeyDown\n } = this.props;\n\n const { value, focusedNode, toolbarOpts } = this.state;\n\n log('[render] value: ', value);\n const sizeStyle = this.buildSizeStyle();\n const names = classNames(\n {\n [classes.withBg]: highlightShape,\n [classes.toolbarOnTop]: toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'\n },\n className\n );\n\n return (\n <div\n ref={ref => (this.wrapperRef = ref)}\n style={{ width: sizeStyle.width }}\n className={names}\n >\n <SlateEditor\n plugins={this.plugins}\n innerRef={r => {\n if (r) {\n this.slateEditor = r;\n }\n }}\n ref={r => (this.editor = r && this.props.editorRef(r))}\n toolbarRef={r => {\n if (r) {\n this.toolbarRef = r;\n }\n }}\n value={value}\n focus={this.focus}\n onKeyDown={onKeyDown}\n onChange={this.onChange}\n onBlur={this.onBlur}\n onFocus={this.onFocus}\n onEditingDone={this.onEditingDone}\n focusedNode={focusedNode}\n normalize={this.normalize}\n readOnly={disabled}\n spellCheck={spellCheck}\n className={classes.slateEditor}\n style={{\n minHeight: sizeStyle.minHeight,\n height: sizeStyle.height,\n maxHeight: sizeStyle.maxHeight\n }}\n pluginProps={pluginProps}\n toolbarOpts={toolbarOpts}\n placeholder={placeholder}\n onDataChange={this.changeData}\n />\n </div>\n );\n }\n}\n\n// TODO color - hardcoded gray background and keypad colors will need to change too\nconst styles = {\n withBg: {\n backgroundColor: 'rgba(0,0,0,0.06)'\n },\n slateEditor: {\n fontFamily: 'Roboto, sans-serif',\n\n '& table': {\n tableLayout: 'fixed',\n width: '100%',\n borderCollapse: 'collapse',\n color: color.text(),\n backgroundColor: color.background()\n },\n '& table:not([border=\"1\"]) tr': {\n borderTop: '1px solid #dfe2e5'\n // TODO perhaps secondary color for background, for now disable\n // '&:nth-child(2n)': {\n // backgroundColor: '#f6f8fa'\n // }\n },\n '& td, th': {\n padding: '.6em 1em',\n textAlign: 'center'\n },\n '& table:not([border=\"1\"]) td, th': {\n border: '1px solid #dfe2e5'\n }\n },\n toolbarOnTop: {\n marginTop: '45px'\n }\n};\n\nexport default withStyles(styles)(Editor);\n"],"file":"editor.js"}
@@ -0,0 +1,236 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ Object.defineProperty(exports, "ALL_PLUGINS", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _editor.ALL_PLUGINS;
12
+ }
13
+ });
14
+ Object.defineProperty(exports, "DEFAULT_PLUGINS", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _editor.DEFAULT_PLUGINS;
18
+ }
19
+ });
20
+ Object.defineProperty(exports, "Editor", {
21
+ enumerable: true,
22
+ get: function get() {
23
+ return _editor["default"];
24
+ }
25
+ });
26
+ exports["default"] = void 0;
27
+ Object.defineProperty(exports, "htmlToValue", {
28
+ enumerable: true,
29
+ get: function get() {
30
+ return _serialization.htmlToValue;
31
+ }
32
+ });
33
+ Object.defineProperty(exports, "valueToHtml", {
34
+ enumerable: true,
35
+ get: function get() {
36
+ return _serialization.valueToHtml;
37
+ }
38
+ });
39
+
40
+ var _react = _interopRequireDefault(require("react"));
41
+
42
+ var _propTypes = _interopRequireDefault(require("prop-types"));
43
+
44
+ var _editor = _interopRequireWildcard(require("./editor"));
45
+
46
+ var _serialization = require("./serialization");
47
+
48
+ var _parseHtml = require("./parse-html");
49
+
50
+ var _debug = _interopRequireDefault(require("debug"));
51
+
52
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
53
+
54
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
55
+
56
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
57
+
58
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
59
+
60
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
61
+
62
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
63
+
64
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
65
+
66
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
67
+
68
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
69
+
70
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
71
+
72
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
73
+
74
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
75
+
76
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
77
+
78
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
79
+
80
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
81
+
82
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
83
+
84
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
85
+
86
+ var log = (0, _debug["default"])('@pie-lib:editable-html');
87
+ /**
88
+ * Export lower level Editor and serialization functions.
89
+ */
90
+
91
+ /**
92
+ * Wrapper around the editor that exposes a `markup` and `onChange(markup:string)` api.
93
+ * Because of the mismatch between the markup and the `Value` we need to convert the incoming markup to a value and
94
+ * compare it. TODO: This is an interim fix, we'll need to strip back `Editor` and look how best to maintain the
95
+ * `markup` api whilst avoiding the serialization mismatch. We should be making better use of schemas w/ normalize.
96
+ */
97
+ var reduceMultipleBrs = function reduceMultipleBrs(markup) {
98
+ try {
99
+ return markup.replace(/(<br\s*\/?>){3,}/gi, '<br>');
100
+ } catch (e) {
101
+ console.log("Couldn't remove <br/> tags: ", e);
102
+ }
103
+
104
+ return markup;
105
+ };
106
+
107
+ var EditableHtml = /*#__PURE__*/function (_React$Component) {
108
+ _inherits(EditableHtml, _React$Component);
109
+
110
+ var _super = _createSuper(EditableHtml);
111
+
112
+ function EditableHtml(props) {
113
+ var _this;
114
+
115
+ _classCallCheck(this, EditableHtml);
116
+
117
+ _this = _super.call(this, props);
118
+
119
+ _defineProperty(_assertThisInitialized(_this), "onChange", function (value, done) {
120
+ var html = (0, _serialization.valueToHtml)(value);
121
+ var htmlParsed = (0, _parseHtml.parseDegrees)(html);
122
+ log('value as html: ', html);
123
+
124
+ if (html !== _this.props.markup) {
125
+ _this.props.onChange(htmlParsed);
126
+ }
127
+
128
+ if (done) {
129
+ _this.props.onDone(htmlParsed);
130
+ }
131
+ });
132
+
133
+ _defineProperty(_assertThisInitialized(_this), "focus", function (position, node) {
134
+ if (_this.editorRef) {
135
+ _this.editorRef.change(function (c) {
136
+ var lastText = node ? c.value.document.getNextText(node.key) : c.value.document.getLastText();
137
+ var editorDOM = document.querySelector("[data-key=\"".concat(_this.editorRef.value.document.key, "\"]"));
138
+
139
+ if (editorDOM !== document.activeElement) {
140
+ document.activeElement.blur();
141
+ }
142
+
143
+ c.focus();
144
+
145
+ if (position === 'end' && lastText) {
146
+ c.moveFocusTo(lastText.key, lastText.text.length).moveAnchorTo(lastText.key, lastText.text.length);
147
+ }
148
+
149
+ if (position === 'beginning' && lastText) {
150
+ c.moveFocusTo(lastText.key, 0).moveAnchorTo(lastText.key, 0);
151
+ }
152
+ });
153
+ }
154
+ });
155
+
156
+ _defineProperty(_assertThisInitialized(_this), "finishEditing", function () {
157
+ if (_this.editorRef) {
158
+ _this.editorRef.props.onEditingDone();
159
+ }
160
+ });
161
+
162
+ var v = (0, _serialization.htmlToValue)(props.markup);
163
+ _this.state = {
164
+ value: v
165
+ };
166
+ return _this;
167
+ } // eslint-disable-next-line react/no-deprecated
168
+
169
+
170
+ _createClass(EditableHtml, [{
171
+ key: "componentWillReceiveProps",
172
+ value: function componentWillReceiveProps(props) {
173
+ if (!props.allowValidation && props.markup === this.props.markup) {
174
+ return;
175
+ }
176
+
177
+ var v = (0, _serialization.htmlToValue)(reduceMultipleBrs(props.markup));
178
+ var current = (0, _serialization.htmlToValue)(reduceMultipleBrs(this.props.markup));
179
+
180
+ if (v.equals && !v.equals(current)) {
181
+ this.setState({
182
+ value: v
183
+ });
184
+ }
185
+ }
186
+ }, {
187
+ key: "render",
188
+ value: function render() {
189
+ var _this2 = this;
190
+
191
+ var value = this.state.value;
192
+ var _this$props = this.props,
193
+ toolbarOpts = _this$props.toolbarOpts,
194
+ error = _this$props.error;
195
+
196
+ if (toolbarOpts) {
197
+ toolbarOpts.error = error;
198
+ }
199
+
200
+ var props = _objectSpread(_objectSpread({}, this.props), {}, {
201
+ markup: null,
202
+ value: value,
203
+ onChange: this.onChange,
204
+ focus: this.focus
205
+ });
206
+
207
+ return /*#__PURE__*/_react["default"].createElement(_editor["default"], _extends({
208
+ onRef: function onRef(ref) {
209
+ if (ref) {
210
+ _this2.rootRef = ref;
211
+ }
212
+ },
213
+ editorRef: function editorRef(ref) {
214
+ return ref && (_this2.editorRef = ref);
215
+ }
216
+ }, props));
217
+ }
218
+ }]);
219
+
220
+ return EditableHtml;
221
+ }(_react["default"].Component);
222
+
223
+ exports["default"] = EditableHtml;
224
+
225
+ _defineProperty(EditableHtml, "propTypes", {
226
+ onChange: _propTypes["default"].func.isRequired,
227
+ onDone: _propTypes["default"].func,
228
+ markup: _propTypes["default"].string.isRequired,
229
+ allowValidation: _propTypes["default"].bool
230
+ });
231
+
232
+ _defineProperty(EditableHtml, "defaultProps", {
233
+ onDone: function onDone() {},
234
+ allowValidation: false
235
+ });
236
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.jsx"],"names":["log","reduceMultipleBrs","markup","replace","e","console","EditableHtml","props","value","done","html","htmlParsed","onChange","onDone","position","node","editorRef","change","c","lastText","document","getNextText","key","getLastText","editorDOM","querySelector","activeElement","blur","focus","moveFocusTo","text","length","moveAnchorTo","onEditingDone","v","state","allowValidation","current","equals","setState","toolbarOpts","error","ref","rootRef","React","Component","PropTypes","func","isRequired","string","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,wBAAN,CAAZ;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA;AACA;AAEA,IAAMC,iBAAiB,GAAG,SAApBA,iBAAoB,CAAAC,MAAM,EAAI;AAClC,MAAI;AACF,WAAOA,MAAM,CAACC,OAAP,CAAe,oBAAf,EAAqC,MAArC,CAAP;AACD,GAFD,CAEE,OAAOC,CAAP,EAAU;AACVC,IAAAA,OAAO,CAACL,GAAR,CAAY,8BAAZ,EAA4CI,CAA5C;AACD;;AAED,SAAOF,MAAP;AACD,CARD;;IAUqBI,Y;;;;;AAanB,wBAAYC,KAAZ,EAAmB;AAAA;;AAAA;;AACjB,8BAAMA,KAAN;;AADiB,+DAsBR,UAACC,KAAD,EAAQC,IAAR,EAAiB;AAC1B,UAAMC,IAAI,GAAG,gCAAYF,KAAZ,CAAb;AACA,UAAMG,UAAU,GAAG,6BA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AITI,QAAAA,QAAQ,EAAE,KAAKA,QAJN;AAKTgB,QAAAA,KAAK,EAAE,KAAKA;AALH,QAAX;;AAQA,0BACE,gCAAC,kBAAD;AACE,QAAA,KAAK,EAAE,eAAAc,GAAG,EAAI;AACZ,cAAIA,GAAJ,EAAS;AACP,YAAA,MAAI,CAACC,OAAL,GAAeD,GAAf;AACD;AACF,SALH;AAME,QAAA,SAAS,EAAE,mBAAAA,GAAG;AAAA,iBAAIA,GAAG,KAAK,MAAI,CAAC1B,SAAL,GAAiB0B,GAAtB,CAAP;AAAA;AANhB,SAOMnC,KAPN,EADF;AAWD;;;;EAjHuCqC,kBAAMC,S;;;;gBAA3BvC,Y,eACA;AACjBM,EAAAA,QAAQ,EAAEkC,sBAAUC,IAAV,CAAeC,UADR;AAEjBnC,EAAAA,MAAM,EAAEiC,sBAAUC,IAFD;AAGjB7C,EAAAA,MAAM,EAAE4C,sBAAUG,MAAV,CAAiBD,UAHR;AAIjBZ,EAAAA,eAAe,EAAEU,sBAAUI;AAJV,C;;gBADA5C,Y,kBAQG;AACpBO,EAAAA,MAAM,EAAE,kBAAM,CAAE,CADI;AAEpBuB,EAAAA,eAAe,EAAE;AAFG,C","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Editor, { DEFAULT_PLUGINS, ALL_PLUGINS } from './editor';\nimport { htmlToValue, valueToHtml } from './serialization';\nimport { parseDegrees } from './parse-html';\nimport debug from 'debug';\n\nconst log = debug('@pie-lib:editable-html');\n/**\n * Export lower level Editor and serialization functions.\n */\nexport { htmlToValue, valueToHtml, Editor, DEFAULT_PLUGINS, ALL_PLUGINS };\n\n/**\n * Wrapper around the editor that exposes a `markup` and `onChange(markup:string)` api.\n * Because of the mismatch between the markup and the `Value` we need to convert the incoming markup to a value and\n * compare it. TODO: This is an interim fix, we'll need to strip back `Editor` and look how best to maintain the\n * `markup` api whilst avoiding the serialization mismatch. We should be making better use of schemas w/ normalize.\n */\n\nconst reduceMultipleBrs = markup => {\n try {\n return markup.replace(/(<br\\s*\\/?>){3,}/gi, '<br>');\n } catch (e) {\n console.log(\"Couldn't remove <br/> tags: \", e);\n }\n\n return markup;\n};\n\nexport default class EditableHtml extends React.Component {\n static propTypes = {\n onChange: PropTypes.func.isRequired,\n onDone: PropTypes.func,\n markup: PropTypes.string.isRequired,\n allowValidation: PropTypes.bool\n };\n\n static defaultProps = {\n onDone: () => {},\n allowValidation: false\n };\n\n constructor(props) {\n super(props);\n const v = htmlToValue(props.markup);\n this.state = {\n value: v\n };\n }\n\n // eslint-disable-next-line react/no-deprecated\n componentWillReceiveProps(props) {\n if (!props.allowValidation && props.markup === this.props.markup) {\n return;\n }\n\n const v = htmlToValue(reduceMultipleBrs(props.markup));\n const current = htmlToValue(reduceMultipleBrs(this.props.markup));\n\n if (v.equals && !v.equals(current)) {\n this.setState({ value: v });\n }\n }\n\n onChange = (value, done) => {\n const html = valueToHtml(value);\n const htmlParsed = parseDegrees(html);\n\n log('value as html: ', html);\n\n if (html !== this.props.markup) {\n this.props.onChange(htmlParsed);\n }\n\n if (done) {\n this.props.onDone(htmlParsed);\n }\n };\n\n focus = (position, node) => {\n if (this.editorRef) {\n this.editorRef.change(c => {\n const lastText = node\n ? c.value.document.getNextText(node.key)\n : c.value.document.getLastText();\n const editorDOM = document.querySelector(\n `[data-key=\"${this.editorRef.value.document.key}\"]`\n );\n\n if (editorDOM !== document.activeElement) {\n document.activeElement.blur();\n }\n\n c.focus();\n\n if (position === 'end' && lastText) {\n c.moveFocusTo(lastText.key, lastText.text.length).moveAnchorTo(\n lastText.key,\n lastText.text.length\n );\n }\n\n if (position === 'beginning' && lastText) {\n c.moveFocusTo(lastText.key, 0).moveAnchorTo(lastText.key, 0);\n }\n });\n }\n };\n\n finishEditing = () => {\n if (this.editorRef) {\n this.editorRef.props.onEditingDone();\n }\n };\n\n render() {\n const { value } = this.state;\n const { toolbarOpts, error } = this.props;\n\n if (toolbarOpts) {\n toolbarOpts.error = error;\n }\n\n const props = {\n ...this.props,\n markup: null,\n value,\n onChange: this.onChange,\n focus: this.focus\n };\n\n return (\n <Editor\n onRef={ref => {\n if (ref) {\n this.rootRef = ref;\n }\n }}\n editorRef={ref => ref && (this.editorRef = ref)}\n {...props}\n />\n );\n }\n}\n"],"file":"index.js"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.parseDegrees = void 0;
7
+
8
+ var parseDegrees = function parseDegrees(html) {
9
+ return html // removes \( use case: 50°
10
+ .replace(/\\[(]/g, '') // removes \) use case: 50°+m<1
11
+ .replace(/\\[)]/g, '') // removes \degree use case: 50°
12
+ .replace(/\\degree/g, '&deg;');
13
+ };
14
+
15
+ exports.parseDegrees = parseDegrees;
16
+ //# sourceMappingURL=parse-html.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/parse-html.js"],"names":["parseDegrees","html","replace"],"mappings":";;;;;;;AAAO,IAAMA,YAAY,GAAG,SAAfA,YAAe,CAAAC,IAAI;AAAA,SAC9BA,IAAI,CACF;AADE,GAEDC,OAFH,CAEW,QAFX,EAEqB,EAFrB,EAGE;AAHF,GAIGA,OAJH,CAIW,QAJX,EAIqB,EAJrB,EAKE;AALF,GAMGA,OANH,CAMW,WANX,EAMwB,OANxB,CAD8B;AAAA,CAAzB","sourcesContent":["export const parseDegrees = html =>\n html\n // removes \\( use case: 50°\n .replace(/\\\\[(]/g, '')\n // removes \\) use case: 50°+m<1\n .replace(/\\\\[)]/g, '')\n // removes \\degree use case: 50°\n .replace(/\\\\degree/g, '&deg;');\n"],"file":"parse-html.js"}
@@ -0,0 +1,250 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = exports.Component = void 0;
9
+
10
+ var _LinearProgress = _interopRequireDefault(require("@material-ui/core/LinearProgress"));
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ var _react = _interopRequireDefault(require("react"));
15
+
16
+ var _classnames = _interopRequireDefault(require("classnames"));
17
+
18
+ var _debug = _interopRequireDefault(require("debug"));
19
+
20
+ var _styles = require("@material-ui/core/styles");
21
+
22
+ var _slatePropTypes = _interopRequireDefault(require("slate-prop-types"));
23
+
24
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
25
+
26
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
27
+
28
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
29
+
30
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
31
+
32
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
33
+
34
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
35
+
36
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
37
+
38
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
39
+
40
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
41
+
42
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
43
+
44
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
45
+
46
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
47
+
48
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
49
+
50
+ var log = (0, _debug["default"])('@pie-lib:editable-html:plugins:image:component');
51
+
52
+ var size = function size(s) {
53
+ return s ? "".concat(s, "px") : 'auto';
54
+ };
55
+
56
+ var Component = /*#__PURE__*/function (_React$Component) {
57
+ _inherits(Component, _React$Component);
58
+
59
+ var _super = _createSuper(Component);
60
+
61
+ function Component() {
62
+ var _this;
63
+
64
+ _classCallCheck(this, Component);
65
+
66
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
67
+ args[_key] = arguments[_key];
68
+ }
69
+
70
+ _this = _super.call.apply(_super, [this].concat(args));
71
+
72
+ _defineProperty(_assertThisInitialized(_this), "getWidth", function (percent) {
73
+ var multiplier = percent / 100;
74
+ return _this.img.naturalWidth * multiplier;
75
+ });
76
+
77
+ _defineProperty(_assertThisInitialized(_this), "getHeight", function (percent) {
78
+ var multiplier = percent / 100;
79
+ return _this.img.naturalHeight * multiplier;
80
+ });
81
+
82
+ _defineProperty(_assertThisInitialized(_this), "getPercentFromWidth", function (width) {
83
+ var floored = width / _this.img.naturalWidth * 4;
84
+ return parseInt(floored.toFixed(0) * 25, 10);
85
+ });
86
+
87
+ _defineProperty(_assertThisInitialized(_this), "applySizeData", function () {
88
+ var _this$props = _this.props,
89
+ node = _this$props.node,
90
+ editor = _this$props.editor;
91
+ var resizePercent = node.data.get('resizePercent');
92
+ log('[applySizeData]: resizePercent: ', resizePercent);
93
+ var update = node.data;
94
+
95
+ if (resizePercent) {
96
+ update = update.set('width', _this.getWidth(resizePercent));
97
+ update = update.set('height', _this.getHeight(resizePercent));
98
+ } else {
99
+ var w = update.get('width');
100
+
101
+ if (w) {
102
+ update = update.set('resizePercent', _this.getPercentFromWidth(w));
103
+ }
104
+ }
105
+
106
+ log('[applySizeData] update: ', update);
107
+
108
+ if (!update.equals(node.data)) {
109
+ editor.change(function (c) {
110
+ return c.setNodeByKey(node.key, {
111
+ data: update
112
+ });
113
+ });
114
+ }
115
+ });
116
+
117
+ return _this;
118
+ }
119
+
120
+ _createClass(Component, [{
121
+ key: "componentDidMount",
122
+ value: function componentDidMount() {
123
+ this.applySizeData();
124
+ }
125
+ }, {
126
+ key: "componentDidUpdate",
127
+ value: function componentDidUpdate() {
128
+ this.applySizeData();
129
+ }
130
+ }, {
131
+ key: "getSize",
132
+ value: function getSize(data) {
133
+ return {
134
+ width: size(data.get('width')),
135
+ height: size(data.get('height')),
136
+ objectFit: 'contain'
137
+ };
138
+ }
139
+ }, {
140
+ key: "render",
141
+ value: function render() {
142
+ var _this2 = this;
143
+
144
+ var _this$props2 = this.props,
145
+ node = _this$props2.node,
146
+ editor = _this$props2.editor,
147
+ classes = _this$props2.classes,
148
+ attributes = _this$props2.attributes,
149
+ onFocus = _this$props2.onFocus;
150
+ var active = editor.value.isFocused && editor.value.selection.hasEdgeIn(node);
151
+ var src = node.data.get('src');
152
+ var percent = node.data.get('percent');
153
+ var loaded = node.data.get('loaded') !== false;
154
+ var deleteStatus = node.data.get('deleteStatus');
155
+ log('[render] node.data:', node.data);
156
+ var size = this.getSize(node.data);
157
+ log('[render] style:', size);
158
+ var className = (0, _classnames["default"])(classes.root, active && classes.active, !loaded && classes.loading, deleteStatus === 'pending' && classes.pendingDelete);
159
+ var progressClasses = (0, _classnames["default"])(classes.progress, loaded && classes.hideProgress);
160
+ return [/*#__PURE__*/_react["default"].createElement("span", {
161
+ key: 'sp1'
162
+ }, "\xA0"), /*#__PURE__*/_react["default"].createElement("div", {
163
+ key: 'comp',
164
+ onFocus: onFocus,
165
+ className: className
166
+ }, /*#__PURE__*/_react["default"].createElement(_LinearProgress["default"], {
167
+ mode: "determinate",
168
+ value: percent > 0 ? percent : 0,
169
+ className: progressClasses
170
+ }), /*#__PURE__*/_react["default"].createElement("img", _extends({
171
+ src: src
172
+ }, attributes, {
173
+ ref: function ref(r) {
174
+ return _this2.img = r;
175
+ },
176
+ style: size
177
+ }))), /*#__PURE__*/_react["default"].createElement("span", {
178
+ key: 'sp2'
179
+ }, "\xA0")];
180
+ }
181
+ }]);
182
+
183
+ return Component;
184
+ }(_react["default"].Component);
185
+
186
+ exports.Component = Component;
187
+
188
+ _defineProperty(Component, "propTypes", {
189
+ node: _slatePropTypes["default"].node.isRequired,
190
+ editor: _propTypes["default"].shape({
191
+ change: _propTypes["default"].func.isRequired,
192
+ value: _propTypes["default"].object
193
+ }).isRequired,
194
+ classes: _propTypes["default"].object.isRequired,
195
+ attributes: _propTypes["default"].object,
196
+ onFocus: _propTypes["default"].func,
197
+ onBlur: _propTypes["default"].func
198
+ });
199
+
200
+ var styles = function styles(theme) {
201
+ return {
202
+ portal: {
203
+ position: 'absolute',
204
+ opacity: 0,
205
+ transition: 'opacity 200ms linear'
206
+ },
207
+ floatingButtonRow: {
208
+ backgroundColor: 'white',
209
+ borderRadius: '1px',
210
+ display: 'flex',
211
+ padding: '10px',
212
+ border: 'solid 1px #eeeeee',
213
+ boxShadow: '0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)'
214
+ },
215
+ progress: {
216
+ position: 'absolute',
217
+ left: '0',
218
+ width: '100%',
219
+ top: '0%',
220
+ transition: 'opacity 200ms linear'
221
+ },
222
+ hideProgress: {
223
+ opacity: 0
224
+ },
225
+ loading: {
226
+ opacity: 0.3
227
+ },
228
+ pendingDelete: {
229
+ opacity: 0.3
230
+ },
231
+ root: {
232
+ position: 'relative',
233
+ border: 'solid 1px white',
234
+ display: 'inline-block',
235
+ transition: 'opacity 200ms linear'
236
+ },
237
+ active: {
238
+ border: "solid 1px ".concat(theme.palette.primary.main)
239
+ },
240
+ "delete": {
241
+ position: 'absolute',
242
+ right: 0
243
+ }
244
+ };
245
+ };
246
+
247
+ var _default = (0, _styles.withStyles)(styles)(Component);
248
+
249
+ exports["default"] = _default;
250
+ //# sourceMappingURL=component.js.map