@pie-element/ebsr 6.6.3-next.1086 → 6.6.3-next.1097

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (491) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/configure/CHANGELOG.md +77 -0
  3. package/configure/package.json +3 -3
  4. package/controller/CHANGELOG.md +8 -0
  5. package/controller/package.json +1 -1
  6. package/package.json +3 -3
  7. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +0 -1972
  8. package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +0 -1826
  9. package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
  10. package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +0 -35
  11. package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
  12. package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
  13. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
  14. package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -1367
  15. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -116
  16. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
  17. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -198
  18. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
  19. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -615
  20. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
  21. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +0 -18
  22. package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +0 -1
  23. package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -20
  24. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
  25. package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -768
  26. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -18
  27. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
  28. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -305
  29. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
  30. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -36
  31. package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
  32. package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
  33. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -431
  34. package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -337
  35. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
  36. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -52
  37. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
  38. package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
  39. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -364
  40. package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -294
  41. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -298
  42. package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
  43. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +0 -157
  44. package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +0 -1
  45. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -174
  46. package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
  47. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -151
  48. package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
  49. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -97
  50. package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
  51. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -254
  52. package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
  53. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +0 -129
  54. package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +0 -1
  55. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -35
  56. package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
  57. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
  58. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1695
  59. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
  60. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
  61. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -44
  62. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
  63. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
  64. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  65. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
  66. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  67. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -398
  68. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  69. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  70. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  71. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -185
  72. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  73. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  74. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  75. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -178
  76. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  77. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
  78. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  79. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -145
  80. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  81. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
  82. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  83. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
  84. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  85. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -131
  86. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  87. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
  88. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  89. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -101
  90. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  91. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  92. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  93. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -105
  94. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  95. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -87
  96. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  97. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  98. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  99. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -364
  100. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
  101. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -265
  102. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  103. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
  104. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  105. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  106. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  107. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -130
  108. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  109. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -412
  110. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  111. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
  112. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  113. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
  114. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  115. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -106
  116. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  117. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
  118. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  119. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
  120. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  121. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
  122. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  123. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
  124. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -43
  125. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
  126. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
  127. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -319
  128. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  129. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
  130. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
  131. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
  132. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  133. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
  134. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -58
  135. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  136. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -96
  137. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
  138. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
  139. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  140. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
  141. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
  142. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  143. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -276
  144. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
  145. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
  146. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  147. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
  148. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
  149. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
  150. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
  151. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
  152. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
  153. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  154. package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  155. package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -34
  156. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
  157. package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -524
  158. package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
  159. package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
  160. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -86
  161. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
  162. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -155
  163. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
  164. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
  165. package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
  166. package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
  167. package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
  168. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -65
  169. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -75
  170. package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
  171. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3327
  172. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1676
  173. package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
  174. package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
  175. package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
  176. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -837
  177. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  178. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -224
  179. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  180. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  181. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  182. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js +0 -70
  183. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js.map +0 -1
  184. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -261
  185. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
  186. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -362
  187. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
  188. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -393
  189. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  190. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -78
  191. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  192. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -221
  193. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  194. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -135
  195. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  196. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -141
  197. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  198. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -204
  199. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  200. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -347
  201. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  202. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -339
  203. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  204. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -434
  205. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  206. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -99
  207. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  208. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
  209. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  210. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -251
  211. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  212. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  213. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  214. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -54
  215. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  216. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -93
  217. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  218. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -288
  219. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  220. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -70
  221. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  222. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -110
  223. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  224. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  225. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  226. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -497
  227. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  228. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -158
  229. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  230. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -132
  231. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  232. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -50
  233. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  234. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -263
  235. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  236. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -32
  237. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  238. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -161
  239. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  240. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -346
  241. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  242. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  243. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  244. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -428
  245. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  246. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  247. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  248. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -51
  249. package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
  250. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
  251. package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
  252. package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
  253. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
  254. package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
  255. package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
  256. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
  257. package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
  258. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
  259. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
  260. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
  261. package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
  262. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
  263. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
  264. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
  265. package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
  266. package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
  267. package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
  268. package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
  269. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -724
  270. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -145
  271. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  272. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  273. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popover.js +0 -45
  274. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -237
  275. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -444
  276. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -318
  277. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -32
  278. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -182
  279. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
  280. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -115
  281. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -175
  282. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -283
  283. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -284
  284. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
  285. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
  286. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  287. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -187
  288. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
  289. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
  290. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
  291. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -259
  292. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
  293. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
  294. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
  295. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -437
  296. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
  297. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -111
  298. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
  299. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -225
  300. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
  301. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -97
  302. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -323
  303. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
  304. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -385
  305. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  306. package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
  307. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1547
  308. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -765
  309. package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
  310. package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
  311. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -129
  312. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
  313. package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -80
  314. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
  315. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -440
  316. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
  317. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
  318. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
  319. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
  320. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
  321. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
  322. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
  323. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -46
  324. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
  325. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
  326. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
  327. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
  328. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
  329. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -16
  330. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
  331. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -35
  332. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
  333. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -31
  334. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
  335. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -165
  336. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
  337. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
  338. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
  339. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
  340. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
  341. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
  342. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
  343. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
  344. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
  345. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
  346. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
  347. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -69
  348. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
  349. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -23
  350. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
  351. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -17
  352. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
  353. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -45
  354. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
  355. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
  356. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
  357. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
  358. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
  359. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -130
  360. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
  361. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
  362. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
  363. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -206
  364. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
  365. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
  366. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
  367. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -24
  368. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
  369. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -257
  370. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
  371. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -224
  372. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
  373. package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
  374. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -56
  375. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
  376. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -367
  377. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
  378. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
  379. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
  380. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -27
  381. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
  382. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
  383. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
  384. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -27
  385. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
  386. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -140
  387. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -379
  388. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
  389. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
  390. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
  391. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
  392. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -60
  393. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
  394. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -9
  395. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -36
  396. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
  397. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
  398. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
  399. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
  400. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
  401. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
  402. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
  403. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
  404. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -145
  405. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
  406. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -457
  407. package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
  408. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
  409. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  410. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
  411. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  412. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  413. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  414. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -123
  415. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  416. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -103
  417. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  418. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -281
  419. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  420. package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
  421. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
  422. package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
  423. package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
  424. package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
  425. package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
  426. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
  427. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
  428. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  429. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  430. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  431. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -235
  432. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -862
  433. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -639
  434. package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
  435. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
  436. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
  437. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -483
  438. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
  439. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -280
  440. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
  441. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -173
  442. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
  443. package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -37
  444. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
  445. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -388
  446. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -202
  447. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -107
  448. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
  449. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -626
  450. package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
  451. package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
  452. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
  453. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  454. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -134
  455. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  456. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -160
  457. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  458. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
  459. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  460. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -102
  461. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  462. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -104
  463. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  464. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  465. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  466. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -133
  467. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  468. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -162
  469. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  470. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  471. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  472. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  473. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  474. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -160
  475. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  476. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
  477. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  478. package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
  479. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
  480. package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
  481. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
  482. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
  483. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
  484. package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
  485. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  486. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -77
  487. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
  488. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
  489. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  490. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  491. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -118
@@ -1,316 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;;;;;;;AAAA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMA,UAAU,GAAG,SAAbA,UAAa,CAACC,GAAD,EAAMC,CAAN,EAAY;AAC7B,MAAIA,CAAC,CAACC,IAAF,IAAUD,CAAC,CAACC,IAAF,CAAOC,IAAP,KAAgB,MAA9B,EAAsC;AACpCH,IAAAA,GAAG,IAAIC,CAAC,CAACC,IAAF,CAAOE,IAAd;A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AFsB;AAG9B,mBAAe,YAHe;AAI9B,mBAAe;AAJe,GAVb;AAgBnB,wCAAsC;AACpC,mBAAe;AADqB,GAhBnB;AAmBnB,yCAAuC;AACrCnD,IAAAA,OAAO,EAAE,CAD4B;AAErC,kBAAc;AAFuB;AAnBpB,CAArB","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"}
@@ -1,23 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,123 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,103 +0,0 @@
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
@@ -1 +0,0 @@
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":";;;;;;;;;;;;;;;;;;;;;;;AAAO,IAAMA,YAAY,GAAG,EAArB;;AAEPA,YAAY,CAACC,cAAb,GAA8B,gBAA9B;AACAD,YAAY,CA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AiB,CAAtC,CADN;AAELd,MAAAA,QAAQ,EAAER,YAAY,CAACC;AAFlB,KAAP;AAID;;AAED,SAAO;AACLmB,IAAAA,SAAS,EAAEb,OADN;AAELC,IAAAA,QAAQ,EAAER,YAAY,CAACC;AAFlB,GAAP;AAID,CAxCM","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"}