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

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 +17 -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 +16 -12
  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 +99 -3
  719. package/docs/config-schema.json.md +78 -6
  720. package/docs/demo/config.js +1 -1
  721. package/docs/pie-schema.json +51 -1
  722. package/docs/pie-schema.json.md +38 -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,316 @@
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.getStackData = exports.Row = exports.Line = exports.CHTMLmstack = void 0;
9
+
10
+ var _Wrapper = require("mathjax-full/js/output/chtml/Wrapper");
11
+
12
+ var _lodash = _interopRequireDefault(require("lodash"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
15
+
16
+ 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); }
17
+
18
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
19
+
20
+ 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); }; }
21
+
22
+ 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); }
23
+
24
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
25
+
26
+ 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; } }
27
+
28
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
29
+
30
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
+
32
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
33
+
34
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
35
+
36
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
37
+
38
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
39
+
40
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
41
+
42
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
43
+
44
+ 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); } }
45
+
46
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
47
+
48
+ var reduceText = function reduceText(acc, n) {
49
+ if (n.node && n.node.kind === 'text') {
50
+ acc += n.node.text;
51
+ }
52
+
53
+ return acc;
54
+ };
55
+
56
+ var Line = /*#__PURE__*/function () {
57
+ function Line() {
58
+ _classCallCheck(this, Line);
59
+
60
+ this.kind = 'line';
61
+ }
62
+
63
+ _createClass(Line, [{
64
+ key: "columns",
65
+ get: function get() {
66
+ return [];
67
+ }
68
+ }]);
69
+
70
+ return Line;
71
+ }();
72
+
73
+ exports.Line = Line;
74
+
75
+ var Row = /*#__PURE__*/function () {
76
+ function Row(columns, operator) {
77
+ _classCallCheck(this, Row);
78
+
79
+ this.kind = 'row';
80
+ this.operator = operator;
81
+ this.columns = columns;
82
+ }
83
+
84
+ _createClass(Row, [{
85
+ key: "pad",
86
+ value: function pad(count) {
87
+ var direction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'right';
88
+
89
+ if (count < this.columns.length) {
90
+ throw new Error('no');
91
+ }
92
+
93
+ var diff = count - this.columns.length;
94
+
95
+ var padding = _lodash["default"].times(diff).map(function (n) {
96
+ return '__pad__';
97
+ });
98
+
99
+ return direction === 'right' ? [].concat(_toConsumableArray(padding), _toConsumableArray(this.columns)) : [].concat(_toConsumableArray(this.columns), _toConsumableArray(padding));
100
+ }
101
+ }]);
102
+
103
+ return Row;
104
+ }();
105
+
106
+ exports.Row = Row;
107
+
108
+ var mathNodeToCharArray = function mathNodeToCharArray(mn) {
109
+ var text = mn.childNodes.reduce(reduceText, '');
110
+ return text.split('');
111
+ };
112
+ /**
113
+ * Convert child a column entry
114
+ * @param {*} child
115
+ * @return an array of column content
116
+ */
117
+
118
+
119
+ var toColumnArray = function toColumnArray(child) {
120
+ if (!child || !child.kind) {
121
+ return [];
122
+ }
123
+
124
+ if (child.kind === 'msrow') {
125
+ throw new Error('msrow in msrow?');
126
+ }
127
+
128
+ if (child.kind === 'mo') {
129
+ // We are going to treat this operator as a text array.
130
+ // It's probably going to be a decimal point
131
+ console.warn('mo that is not 1st node in msrow?');
132
+ return mathNodeToCharArray(child); // throw new Error('mo must be first child of msrow');
133
+ }
134
+
135
+ if (child.kind === 'mn') {
136
+ return mathNodeToCharArray(child);
137
+ }
138
+
139
+ if (child.toCHTML) {
140
+ return child;
141
+ }
142
+ };
143
+ /**
144
+ * convert mstack chtml childNodes into a Row
145
+ * @param child chtml child node of mstack
146
+ * @return Row | Line
147
+ */
148
+
149
+
150
+ var rowStack = function rowStack(child) {
151
+ if (!child || !child.kind) {
152
+ return;
153
+ }
154
+
155
+ if (child.kind === 'msrow') {
156
+ if (!child.childNodes || child.childNodes.length === 0) {
157
+ return new Row([]);
158
+ }
159
+
160
+ var f = _lodash["default"].first(child.childNodes);
161
+
162
+ var nodes = f && f.kind === 'mo' ? _lodash["default"].tail(child.childNodes) : child.childNodes;
163
+
164
+ var columns = _lodash["default"].flatten(nodes.map(toColumnArray));
165
+
166
+ return new Row(columns, f.kind === 'mo' ? f : undefined);
167
+ }
168
+
169
+ if (child.kind === 'mn') {
170
+ var _columns = mathNodeToCharArray(child);
171
+
172
+ return new Row(_columns, undefined);
173
+ }
174
+
175
+ if (child.kind === 'mo') {
176
+ console.warn('mo on its own row?');
177
+ return new Row([], child);
178
+ }
179
+
180
+ if (child.kind === 'msline') {
181
+ return new Line();
182
+ }
183
+
184
+ if (child.toCHTML) {
185
+ return new Row([child]);
186
+ }
187
+ };
188
+ /** convert MathJax chtml tree to Row[]
189
+ * @param mstack the root of the mathjax chtml tree
190
+ * @return Row[]
191
+ */
192
+
193
+
194
+ var getStackData = function getStackData(mstack) {
195
+ if (!mstack || !mstack.childNodes) {
196
+ return [];
197
+ }
198
+
199
+ return _lodash["default"].compact(mstack.childNodes.map(rowStack));
200
+ };
201
+
202
+ exports.getStackData = getStackData;
203
+
204
+ var CHTMLmstack = /*#__PURE__*/function (_CHTMLWrapper) {
205
+ _inherits(CHTMLmstack, _CHTMLWrapper);
206
+
207
+ var _super = _createSuper(CHTMLmstack);
208
+
209
+ function CHTMLmstack(factory, node) {
210
+ var _this;
211
+
212
+ var parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
213
+
214
+ _classCallCheck(this, CHTMLmstack);
215
+
216
+ _this = _super.call(this, factory, node, parent);
217
+ _this.ce = _this.adaptor.document.createElement.bind(_this.adaptor.document);
218
+ return _this;
219
+ }
220
+
221
+ _createClass(CHTMLmstack, [{
222
+ key: "toCHTML",
223
+ value: function toCHTML(parent) {
224
+ var _this2 = this;
225
+
226
+ var chtml = this.standardCHTMLnode(parent);
227
+ var stackData = getStackData(this); // console.log('stackData', stackData);
228
+
229
+ var maxCols = stackData.reduce(function (acc, r) {
230
+ if (r && r.columns.length > acc) {
231
+ acc = r.columns.length;
232
+ }
233
+
234
+ return acc;
235
+ }, 0);
236
+ var table = this.ce('table');
237
+ chtml.appendChild(table);
238
+ stackData.forEach(function (row) {
239
+ var tr = _this2.ce('tr');
240
+
241
+ table.appendChild(tr);
242
+
243
+ if (row.kind === 'row') {
244
+ var td = _this2.ce('td');
245
+
246
+ tr.appendChild(td);
247
+
248
+ if (row.operator && row.operator.toCHTML) {
249
+ td.setAttribute('class', 'inner');
250
+ row.operator.toCHTML(td);
251
+ } else {
252
+ td.textContent = '';
253
+ } // align right for now:
254
+
255
+
256
+ var cols = row.pad(maxCols, 'right');
257
+ cols.forEach(function (c) {
258
+ var t = _this2.ce('td');
259
+
260
+ tr.appendChild(t);
261
+
262
+ if (c === '__pad__') {
263
+ t.textContent = '';
264
+ } else if (typeof c === 'string') {
265
+ t.textContent = c;
266
+ } else if (c.kind === 'none') {
267
+ t.textContent = '';
268
+ } else if (c.toCHTML) {
269
+ t.setAttribute('class', 'inner');
270
+ c.toCHTML(t);
271
+ }
272
+ });
273
+ } else if (row.kind === 'line') {
274
+ var _td = _this2.ce('td');
275
+
276
+ tr.appendChild(_td);
277
+
278
+ _td.setAttribute('colspan', maxCols + 1);
279
+
280
+ _td.setAttribute('class', 'mjx-line');
281
+
282
+ _td.textContent = '';
283
+ }
284
+ });
285
+ }
286
+ }]);
287
+
288
+ return CHTMLmstack;
289
+ }(_Wrapper.CHTMLWrapper);
290
+
291
+ exports.CHTMLmstack = CHTMLmstack;
292
+ CHTMLmstack.styles = {
293
+ 'mjx-mstack > table': {
294
+ 'line-height': 'initial',
295
+ border: 'solid 0px red',
296
+ 'border-spacing': '0em',
297
+ 'border-collapse': 'separate'
298
+ },
299
+ 'mjx-mstack > table > tr': {
300
+ 'line-height': 'initial'
301
+ },
302
+ 'mjx-mstack > table > tr > td': {
303
+ // padding: '1.2rem',
304
+ border: 'solid 0px blue',
305
+ 'font-family': 'sans-serif',
306
+ 'line-height': 'initial'
307
+ },
308
+ 'mjx-mstack > table > tr > td.inner': {
309
+ 'font-family': 'inherit'
310
+ },
311
+ 'mjx-mstack > table > tr > .mjx-line': {
312
+ padding: 0,
313
+ 'border-top': 'solid 1px black'
314
+ }
315
+ };
316
+ //# sourceMappingURL=chtml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/mstack/chtml.js"],"names":["reduceText","acc","n","node","kind","text","Line","Row","columns","operator","count","direction","length","Error","diff","padding","_","times","map","mathNodeToCharArray","mn","childNodes","reduce","split","toColumnArray","child","console","warn","toCHTML","rowStack","f","first","nodes","tail","flatten","undefined","getStackData","mstack","compact","CHTMLmstack","factory","parent","ce","adaptor","document","createElement","bind","chtml","standardCHTMLnode","stackData","maxCols","r","table","appendChild","forEach","row","tr","td","setAttribute","textContent","cols","pad","c","t","CHTMLWrapper","styles","border"],"mappings":"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","sourcesContent":["import { CHTMLWrapper } from 'mathjax-full/js/output/chtml/Wrapper';\nimport _ from 'lodash';\n\nconst reduceText = (acc, n) => {\n if (n.node && n.node.kind === 'text') {\n acc += n.node.text;\n }\n return acc;\n};\n\nexport class Line {\n constructor() {\n this.kind = 'line';\n }\n\n get columns() {\n return [];\n }\n}\n\nexport class Row {\n constructor(columns, operator) {\n this.kind = 'row';\n this.operator = operator;\n this.columns = columns;\n }\n\n pad(count, direction = 'right') {\n if (count < this.columns.length) {\n throw new Error('no');\n }\n\n const diff = count - this.columns.length;\n\n const padding = _.times(diff).map(n => '__pad__');\n return direction === 'right' ? [...padding, ...this.columns] : [...this.columns, ...padding];\n }\n}\n\nconst mathNodeToCharArray = mn => {\n const text = mn.childNodes.reduce(reduceText, '');\n return text.split('');\n};\n\n/**\n * Convert child a column entry\n * @param {*} child\n * @return an array of column content\n */\nconst toColumnArray = child => {\n if (!child || !child.kind) {\n return [];\n }\n\n if (child.kind === 'msrow') {\n throw new Error('msrow in msrow?');\n }\n\n if (child.kind === 'mo') {\n // We are going to treat this operator as a text array.\n // It's probably going to be a decimal point\n console.warn('mo that is not 1st node in msrow?');\n return mathNodeToCharArray(child);\n // throw new Error('mo must be first child of msrow');\n }\n\n if (child.kind === 'mn') {\n return mathNodeToCharArray(child);\n }\n\n if (child.toCHTML) {\n return child;\n }\n};\n\n/**\n * convert mstack chtml childNodes into a Row\n * @param child chtml child node of mstack\n * @return Row | Line\n */\nconst rowStack = child => {\n if (!child || !child.kind) {\n return;\n }\n\n if (child.kind === 'msrow') {\n if (!child.childNodes || child.childNodes.length === 0) {\n return new Row([]);\n }\n const f = _.first(child.childNodes);\n const nodes = f && f.kind === 'mo' ? _.tail(child.childNodes) : child.childNodes;\n\n const columns = _.flatten(nodes.map(toColumnArray));\n\n return new Row(columns, f.kind === 'mo' ? f : undefined);\n }\n\n if (child.kind === 'mn') {\n const columns = mathNodeToCharArray(child);\n return new Row(columns, undefined);\n }\n\n if (child.kind === 'mo') {\n console.warn('mo on its own row?');\n return new Row([], child);\n }\n\n if (child.kind === 'msline') {\n return new Line();\n }\n\n if (child.toCHTML) {\n return new Row([child]);\n }\n};\n\n/** convert MathJax chtml tree to Row[]\n * @param mstack the root of the mathjax chtml tree\n * @return Row[]\n */\n\nexport const getStackData = mstack => {\n if (!mstack || !mstack.childNodes) {\n return [];\n }\n return _.compact(mstack.childNodes.map(rowStack));\n};\n\nexport class CHTMLmstack extends CHTMLWrapper {\n constructor(factory, node, parent = null) {\n super(factory, node, parent);\n\n this.ce = this.adaptor.document.createElement.bind(this.adaptor.document);\n }\n\n toCHTML(parent) {\n const chtml = this.standardCHTMLnode(parent);\n\n const stackData = getStackData(this);\n\n // console.log('stackData', stackData);\n const maxCols = stackData.reduce((acc, r) => {\n if (r && r.columns.length > acc) {\n acc = r.columns.length;\n }\n return acc;\n }, 0);\n\n const table = this.ce('table');\n chtml.appendChild(table);\n\n stackData.forEach(row => {\n const tr = this.ce('tr');\n table.appendChild(tr);\n\n if (row.kind === 'row') {\n const td = this.ce('td');\n tr.appendChild(td);\n if (row.operator && row.operator.toCHTML) {\n td.setAttribute('class', 'inner');\n row.operator.toCHTML(td);\n } else {\n td.textContent = '';\n }\n\n // align right for now:\n const cols = row.pad(maxCols, 'right');\n cols.forEach(c => {\n const t = this.ce('td');\n tr.appendChild(t);\n if (c === '__pad__') {\n t.textContent = '';\n } else if (typeof c === 'string') {\n t.textContent = c;\n } else if (c.kind === 'none') {\n t.textContent = '';\n } else if (c.toCHTML) {\n t.setAttribute('class', 'inner');\n c.toCHTML(t);\n }\n });\n } else if (row.kind === 'line') {\n const td = this.ce('td');\n tr.appendChild(td);\n td.setAttribute('colspan', maxCols + 1);\n td.setAttribute('class', 'mjx-line');\n td.textContent = '';\n }\n });\n }\n}\nCHTMLmstack.styles = {\n 'mjx-mstack > table': {\n 'line-height': 'initial',\n border: 'solid 0px red',\n 'border-spacing': '0em',\n 'border-collapse': 'separate'\n },\n 'mjx-mstack > table > tr': {\n 'line-height': 'initial'\n },\n 'mjx-mstack > table > tr > td': {\n // padding: '1.2rem',\n border: 'solid 0px blue',\n 'font-family': 'sans-serif',\n 'line-height': 'initial'\n },\n 'mjx-mstack > table > tr > td.inner': {\n 'font-family': 'inherit'\n },\n 'mjx-mstack > table > tr > .mjx-line': {\n padding: 0,\n 'border-top': 'solid 1px black'\n }\n};\n"],"file":"chtml.js"}
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.mmlNodes = exports.chtmlNodes = void 0;
7
+
8
+ var _chtml = require("./chtml");
9
+
10
+ var _mml = require("./mml");
11
+
12
+ var chtmlNodes = {
13
+ mstack: _chtml.CHTMLmstack
14
+ };
15
+ exports.chtmlNodes = chtmlNodes;
16
+ var mmlNodes = {
17
+ mstack: _mml.MmlMstack,
18
+ msline: _mml.MmlMsline,
19
+ msrow: _mml.MmlMsrow,
20
+ none: _mml.MmlNone
21
+ };
22
+ exports.mmlNodes = mmlNodes;
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/mstack/index.js"],"names":["chtmlNodes","mstack","CHTMLmstack","mmlNodes","MmlMstack","msline","MmlMsline","msrow","MmlMsrow","none","MmlNone"],"mappings":";;;;;;;AAAA;;AACA;;AAEO,IAAMA,UAAU,GAAG;AACxBC,EAAAA,MAAM,EAAEC;AADgB,CAAnB;;AAIA,IAAMC,QAAQ,GAAG;AACtBF,EAAAA,MAAM,EAAEG,cADc;AAEtBC,EAAAA,MAAM,EAAEC,cAFc;AAGtBC,EAAAA,KAAK,EAAEC,aAHe;AAItBC,EAAAA,IAAI,EAAEC;AAJgB,CAAjB","sourcesContent":["import { CHTMLmstack } from './chtml';\nimport { MmlNone, MmlMsline, MmlMstack, MmlMsrow } from './mml';\n\nexport const chtmlNodes = {\n mstack: CHTMLmstack\n};\n\nexport const mmlNodes = {\n mstack: MmlMstack,\n msline: MmlMsline,\n msrow: MmlMsrow,\n none: MmlNone\n};\n"],"file":"index.js"}
@@ -0,0 +1,123 @@
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.MmlNone = exports.MmlMstack = exports.MmlMsrow = exports.MmlMsline = void 0;
9
+
10
+ var _MmlNode = require("mathjax-full/js/core/MmlTree/MmlNode");
11
+
12
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
13
+
14
+ 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); } }
15
+
16
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
17
+
18
+ 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); }
19
+
20
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
21
+
22
+ 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); }; }
23
+
24
+ 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); }
25
+
26
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
27
+
28
+ 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; } }
29
+
30
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
31
+
32
+ var MmlNone = /*#__PURE__*/function (_AbstractMmlNode) {
33
+ _inherits(MmlNone, _AbstractMmlNode);
34
+
35
+ var _super = _createSuper(MmlNone);
36
+
37
+ function MmlNone() {
38
+ _classCallCheck(this, MmlNone);
39
+
40
+ return _super.apply(this, arguments);
41
+ }
42
+
43
+ _createClass(MmlNone, [{
44
+ key: "kind",
45
+ get: function get() {
46
+ return 'none';
47
+ }
48
+ }]);
49
+
50
+ return MmlNone;
51
+ }(_MmlNode.AbstractMmlNode);
52
+
53
+ exports.MmlNone = MmlNone;
54
+
55
+ var MmlMstack = /*#__PURE__*/function (_AbstractMmlNode2) {
56
+ _inherits(MmlMstack, _AbstractMmlNode2);
57
+
58
+ var _super2 = _createSuper(MmlMstack);
59
+
60
+ function MmlMstack() {
61
+ _classCallCheck(this, MmlMstack);
62
+
63
+ return _super2.apply(this, arguments);
64
+ }
65
+
66
+ _createClass(MmlMstack, [{
67
+ key: "kind",
68
+ get: function get() {
69
+ return 'mstack';
70
+ }
71
+ }]);
72
+
73
+ return MmlMstack;
74
+ }(_MmlNode.AbstractMmlNode);
75
+
76
+ exports.MmlMstack = MmlMstack;
77
+
78
+ var MmlMsrow = /*#__PURE__*/function (_AbstractMmlNode3) {
79
+ _inherits(MmlMsrow, _AbstractMmlNode3);
80
+
81
+ var _super3 = _createSuper(MmlMsrow);
82
+
83
+ function MmlMsrow() {
84
+ _classCallCheck(this, MmlMsrow);
85
+
86
+ return _super3.apply(this, arguments);
87
+ }
88
+
89
+ _createClass(MmlMsrow, [{
90
+ key: "kind",
91
+ get: function get() {
92
+ return 'msrow';
93
+ }
94
+ }]);
95
+
96
+ return MmlMsrow;
97
+ }(_MmlNode.AbstractMmlNode);
98
+
99
+ exports.MmlMsrow = MmlMsrow;
100
+
101
+ var MmlMsline = /*#__PURE__*/function (_AbstractMmlNode4) {
102
+ _inherits(MmlMsline, _AbstractMmlNode4);
103
+
104
+ var _super4 = _createSuper(MmlMsline);
105
+
106
+ function MmlMsline() {
107
+ _classCallCheck(this, MmlMsline);
108
+
109
+ return _super4.apply(this, arguments);
110
+ }
111
+
112
+ _createClass(MmlMsline, [{
113
+ key: "kind",
114
+ get: function get() {
115
+ return 'msline';
116
+ }
117
+ }]);
118
+
119
+ return MmlMsline;
120
+ }(_MmlNode.AbstractMmlNode);
121
+
122
+ exports.MmlMsline = MmlMsline;
123
+ //# sourceMappingURL=mml.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/mstack/mml.js"],"names":["MmlNone","AbstractMmlNode","MmlMstack","MmlMsrow","MmlMsline"],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;IAEaA,O;;;;;;;;;;;;;SACX,eAAW;AACT,aAAO,MAAP;AACD;;;;EAH0BC,wB;;;;IAMhBC,S;;;;;;;;;;;;;SACX,eAAW;AACT,aAAO,QAAP;AACD;;;;EAH4BD,wB;;;;IAMlBE,Q;;;;;;;;;;;;;SACX,eAAW;AACT,aAAO,OAAP;AACD;;;;EAH2BF,wB;;;;IAKjBG,S;;;;;;;;;;;;;SACX,eAAW;AACT,aAAO,QAAP;AACD;;;;EAH4BH,wB","sourcesContent":["import { AbstractMmlNode } from 'mathjax-full/js/core/MmlTree/MmlNode';\n\nexport class MmlNone extends AbstractMmlNode {\n get kind() {\n return 'none';\n }\n}\n\nexport class MmlMstack extends AbstractMmlNode {\n get kind() {\n return 'mstack';\n }\n}\n\nexport class MmlMsrow extends AbstractMmlNode {\n get kind() {\n return 'msrow';\n }\n}\nexport class MmlMsline extends AbstractMmlNode {\n get kind() {\n return 'msline';\n }\n}\n"],"file":"mml.js"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.wrapMath = exports.unWrapMath = exports.BracketTypes = void 0;
7
+
8
+ var _PAIRS;
9
+
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+
12
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
13
+
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+
16
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
17
+
18
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
19
+
20
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21
+
22
+ 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; }
23
+
24
+ var BracketTypes = {};
25
+ exports.BracketTypes = BracketTypes;
26
+ BracketTypes.ROUND_BRACKETS = 'round_brackets';
27
+ BracketTypes.SQUARE_BRACKETS = 'square_brackets';
28
+ BracketTypes.DOLLAR = 'dollar';
29
+ BracketTypes.DOUBLE_DOLLAR = 'double_dollar';
30
+ var PAIRS = (_PAIRS = {}, _defineProperty(_PAIRS, BracketTypes.ROUND_BRACKETS, ['\\(', '\\)']), _defineProperty(_PAIRS, BracketTypes.SQUARE_BRACKETS, ['\\[', '\\]']), _defineProperty(_PAIRS, BracketTypes.DOLLAR, ['$', '$']), _defineProperty(_PAIRS, BracketTypes.DOUBLE_DOLLAR, ['$$', '$$']), _PAIRS);
31
+
32
+ var wrapMath = function wrapMath(content, wrapType) {
33
+ if (wrapType === BracketTypes.SQUARE_BRACKETS) {
34
+ console.warn('\\[...\\] is not supported yet'); // eslint-disable-line
35
+
36
+ wrapType = BracketTypes.ROUND_BRACKETS;
37
+ }
38
+
39
+ if (wrapType === BracketTypes.DOUBLE_DOLLAR) {
40
+ console.warn('$$...$$ is not supported yet'); // eslint-disable-line
41
+
42
+ wrapType = BracketTypes.DOLLAR;
43
+ }
44
+
45
+ var _ref = PAIRS[wrapType] || PAIRS[BracketTypes.ROUND_BRACKETS],
46
+ _ref2 = _slicedToArray(_ref, 2),
47
+ start = _ref2[0],
48
+ end = _ref2[1];
49
+
50
+ return "".concat(start).concat(content).concat(end);
51
+ };
52
+
53
+ exports.wrapMath = wrapMath;
54
+
55
+ var unWrapMath = function unWrapMath(content) {
56
+ var displayStyleIndex = content.indexOf('\\displaystyle');
57
+
58
+ if (displayStyleIndex !== -1) {
59
+ console.warn('\\displaystyle is not supported - removing'); // eslint-disable-line
60
+
61
+ content = content.replace('\\displaystyle', '').trim();
62
+ }
63
+
64
+ if (content.startsWith('$$') && content.endsWith('$$')) {
65
+ console.warn('$$ syntax is not yet supported'); // eslint-disable-line
66
+
67
+ return {
68
+ unwrapped: content.substring(2, content.length - 2),
69
+ wrapType: BracketTypes.DOLLAR
70
+ };
71
+ }
72
+
73
+ if (content.startsWith('$') && content.endsWith('$')) {
74
+ return {
75
+ unwrapped: content.substring(1, content.length - 1),
76
+ wrapType: BracketTypes.DOLLAR
77
+ };
78
+ }
79
+
80
+ if (content.startsWith('\\[') && content.endsWith('\\]')) {
81
+ console.warn('\\[..\\] syntax is not yet supported'); // eslint-disable-line
82
+
83
+ return {
84
+ unwrapped: content.substring(2, content.length - 2),
85
+ wrapType: BracketTypes.ROUND_BRACKETS
86
+ };
87
+ }
88
+
89
+ if (content.startsWith('\\(') && content.endsWith('\\)')) {
90
+ return {
91
+ unwrapped: content.substring(2, content.length - 2),
92
+ wrapType: BracketTypes.ROUND_BRACKETS
93
+ };
94
+ }
95
+
96
+ return {
97
+ unwrapped: content,
98
+ wrapType: BracketTypes.ROUND_BRACKETS
99
+ };
100
+ };
101
+
102
+ exports.unWrapMath = unWrapMath;
103
+ //# sourceMappingURL=normalization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/normalization.js"],"names":["BracketTypes","ROUND_BRACKETS","SQUARE_BRACKETS","DOLLAR","DOUBLE_DOLLAR","PAIRS","wrapMath","content","wrapType","console","warn","start","end","unWrapMath","displayStyleIndex","indexOf","replace","trim","startsWith","endsWith","unwrapped","substring","length"],"mappings":"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","sourcesContent":["export const BracketTypes = {};\n\nBracketTypes.ROUND_BRACKETS = 'round_brackets';\nBracketTypes.SQUARE_BRACKETS = 'square_brackets';\nBracketTypes.DOLLAR = 'dollar';\nBracketTypes.DOUBLE_DOLLAR = 'double_dollar';\n\nconst PAIRS = {\n [BracketTypes.ROUND_BRACKETS]: ['\\\\(', '\\\\)'],\n [BracketTypes.SQUARE_BRACKETS]: ['\\\\[', '\\\\]'],\n [BracketTypes.DOLLAR]: ['$', '$'],\n [BracketTypes.DOUBLE_DOLLAR]: ['$$', '$$']\n};\n\nexport const wrapMath = (content, wrapType) => {\n if (wrapType === BracketTypes.SQUARE_BRACKETS) {\n console.warn('\\\\[...\\\\] is not supported yet'); // eslint-disable-line\n wrapType = BracketTypes.ROUND_BRACKETS;\n }\n if (wrapType === BracketTypes.DOUBLE_DOLLAR) {\n console.warn('$$...$$ is not supported yet'); // eslint-disable-line\n wrapType = BracketTypes.DOLLAR;\n }\n\n const [start, end] = PAIRS[wrapType] || PAIRS[BracketTypes.ROUND_BRACKETS];\n return `${start}${content}${end}`;\n};\n\nexport const unWrapMath = content => {\n const displayStyleIndex = content.indexOf('\\\\displaystyle');\n if (displayStyleIndex !== -1) {\n console.warn('\\\\displaystyle is not supported - removing'); // eslint-disable-line\n content = content.replace('\\\\displaystyle', '').trim();\n }\n\n if (content.startsWith('$$') && content.endsWith('$$')) {\n console.warn('$$ syntax is not yet supported'); // eslint-disable-line\n return {\n unwrapped: content.substring(2, content.length - 2),\n wrapType: BracketTypes.DOLLAR\n };\n }\n if (content.startsWith('$') && content.endsWith('$')) {\n return {\n unwrapped: content.substring(1, content.length - 1),\n wrapType: BracketTypes.DOLLAR\n };\n }\n\n if (content.startsWith('\\\\[') && content.endsWith('\\\\]')) {\n console.warn('\\\\[..\\\\] syntax is not yet supported'); // eslint-disable-line\n return {\n unwrapped: content.substring(2, content.length - 2),\n wrapType: BracketTypes.ROUND_BRACKETS\n };\n }\n\n if (content.startsWith('\\\\(') && content.endsWith('\\\\)')) {\n return {\n unwrapped: content.substring(2, content.length - 2),\n wrapType: BracketTypes.ROUND_BRACKETS\n };\n }\n\n return {\n unwrapped: content,\n wrapType: BracketTypes.ROUND_BRACKETS\n };\n};\n"],"file":"normalization.js"}