@pie-element/hotspot 11.0.5-esm.1 → 11.1.0-next.1

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 (879) hide show
  1. package/CHANGELOG.md +1087 -2392
  2. package/configure/CHANGELOG.md +898 -2090
  3. package/configure/lib/DeleteWidget.js +30 -43
  4. package/configure/lib/DeleteWidget.js.map +1 -1
  5. package/configure/lib/button.js +26 -45
  6. package/configure/lib/button.js.map +1 -1
  7. package/configure/lib/buttons/circle.js +20 -27
  8. package/configure/lib/buttons/circle.js.map +1 -1
  9. package/configure/lib/buttons/polygon.js +26 -33
  10. package/configure/lib/buttons/polygon.js.map +1 -1
  11. package/configure/lib/buttons/rectangle.js +26 -33
  12. package/configure/lib/buttons/rectangle.js.map +1 -1
  13. package/configure/lib/defaults.js +5 -3
  14. package/configure/lib/defaults.js.map +1 -1
  15. package/configure/lib/hotspot-circle.js +136 -200
  16. package/configure/lib/hotspot-circle.js.map +1 -1
  17. package/configure/lib/hotspot-container.js +250 -355
  18. package/configure/lib/hotspot-container.js.map +1 -1
  19. package/configure/lib/hotspot-drawable.js +361 -473
  20. package/configure/lib/hotspot-drawable.js.map +1 -1
  21. package/configure/lib/hotspot-palette.js +92 -139
  22. package/configure/lib/hotspot-palette.js.map +1 -1
  23. package/configure/lib/hotspot-polygon.js +212 -318
  24. package/configure/lib/hotspot-polygon.js.map +1 -1
  25. package/configure/lib/hotspot-rectangle.js +132 -195
  26. package/configure/lib/hotspot-rectangle.js.map +1 -1
  27. package/configure/lib/icons.js +3 -7
  28. package/configure/lib/icons.js.map +1 -1
  29. package/configure/lib/image-konva.js +46 -86
  30. package/configure/lib/image-konva.js.map +1 -1
  31. package/configure/lib/index.js +162 -222
  32. package/configure/lib/index.js.map +1 -1
  33. package/configure/lib/root.js +302 -394
  34. package/configure/lib/root.js.map +1 -1
  35. package/configure/lib/shapes/circle.js +69 -101
  36. package/configure/lib/shapes/circle.js.map +1 -1
  37. package/configure/lib/shapes/index.js +4 -12
  38. package/configure/lib/shapes/index.js.map +1 -1
  39. package/configure/lib/shapes/polygon.js +64 -96
  40. package/configure/lib/shapes/polygon.js.map +1 -1
  41. package/configure/lib/shapes/rectagle.js +69 -101
  42. package/configure/lib/shapes/rectagle.js.map +1 -1
  43. package/configure/lib/shapes/utils.js +2 -8
  44. package/configure/lib/shapes/utils.js.map +1 -1
  45. package/configure/lib/upload-control.js +25 -52
  46. package/configure/lib/upload-control.js.map +1 -1
  47. package/configure/lib/utils.js +85 -139
  48. package/configure/lib/utils.js.map +1 -1
  49. package/configure/package.json +13 -12
  50. package/configure/src/__tests__/DeleteWidget.test.jsx +366 -0
  51. package/configure/src/__tests__/button.test.jsx +198 -0
  52. package/configure/src/__tests__/hotspot-circle.test.jsx +259 -0
  53. package/configure/src/__tests__/hotspot-container.test.js +50 -19
  54. package/configure/src/__tests__/hotspot-drawable.test.js +55 -34
  55. package/configure/src/__tests__/hotspot-palette.test.jsx +71 -0
  56. package/configure/src/__tests__/image-konva.test.jsx +226 -0
  57. package/configure/src/__tests__/index.test.js +167 -5
  58. package/configure/src/__tests__/root.test.js +89 -63
  59. package/configure/src/button.jsx +12 -20
  60. package/configure/src/defaults.js +1 -0
  61. package/configure/src/hotspot-circle.jsx +8 -19
  62. package/configure/src/hotspot-container.jsx +82 -98
  63. package/configure/src/hotspot-drawable.jsx +44 -46
  64. package/configure/src/hotspot-palette.jsx +45 -37
  65. package/configure/src/hotspot-polygon.jsx +3 -20
  66. package/configure/src/hotspot-rectangle.jsx +7 -19
  67. package/configure/src/icons.js +4 -2
  68. package/configure/src/index.js +12 -2
  69. package/configure/src/root.jsx +86 -80
  70. package/configure/src/upload-control.jsx +6 -16
  71. package/configure/src/utils.js +1 -1
  72. package/controller/CHANGELOG.md +574 -1431
  73. package/controller/lib/defaults.js +2 -3
  74. package/controller/lib/defaults.js.map +1 -1
  75. package/controller/lib/index.js +238 -208
  76. package/controller/lib/index.js.map +1 -1
  77. package/controller/lib/utils.js +15 -37
  78. package/controller/lib/utils.js.map +1 -1
  79. package/controller/package.json +3 -3
  80. package/controller/src/__tests__/index.test.js +4 -3
  81. package/controller/src/index.js +107 -5
  82. package/controller/src/utils.js +1 -2
  83. package/lib/hotspot/circle.js +109 -169
  84. package/lib/hotspot/circle.js.map +1 -1
  85. package/lib/hotspot/container.js +174 -260
  86. package/lib/hotspot/container.js.map +1 -1
  87. package/lib/hotspot/icons.js +4 -9
  88. package/lib/hotspot/icons.js.map +1 -1
  89. package/lib/hotspot/image-konva-tooltip.js +65 -112
  90. package/lib/hotspot/image-konva-tooltip.js.map +1 -1
  91. package/lib/hotspot/index.js +135 -198
  92. package/lib/hotspot/index.js.map +1 -1
  93. package/lib/hotspot/polygon.js +150 -215
  94. package/lib/hotspot/polygon.js.map +1 -1
  95. package/lib/hotspot/rectangle.js +128 -186
  96. package/lib/hotspot/rectangle.js.map +1 -1
  97. package/lib/index.js +187 -256
  98. package/lib/index.js.map +1 -1
  99. package/lib/session-updater.js +12 -18
  100. package/lib/session-updater.js.map +1 -1
  101. package/package.json +17 -31
  102. package/src/__tests__/container.test.jsx +27 -175
  103. package/src/__tests__/index.test.js +70 -30
  104. package/src/hotspot/__tests__/circle.test.jsx +464 -0
  105. package/src/hotspot/__tests__/container.test.jsx +546 -0
  106. package/src/hotspot/__tests__/image-konva-tooltip.test.jsx +510 -0
  107. package/src/hotspot/__tests__/polygon.test.jsx +502 -0
  108. package/src/hotspot/__tests__/rectangle.test.jsx +418 -0
  109. package/src/hotspot/circle.jsx +1 -13
  110. package/src/hotspot/container.jsx +35 -50
  111. package/src/hotspot/icons.js +6 -5
  112. package/src/hotspot/index.jsx +16 -28
  113. package/src/hotspot/polygon.jsx +3 -13
  114. package/src/hotspot/rectangle.jsx +4 -15
  115. package/src/index.js +21 -12
  116. package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -32
  117. package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -2198
  118. package/configure/node_modules/@pie-lib/config-ui/NEXT.CHANGELOG.json +0 -1
  119. package/configure/node_modules/@pie-lib/config-ui/esm/index.js +0 -3808
  120. package/configure/node_modules/@pie-lib/config-ui/esm/index.js.map +0 -1
  121. package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -75
  122. package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
  123. package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -99
  124. package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
  125. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
  126. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
  127. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -445
  128. package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
  129. package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
  130. package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
  131. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -195
  132. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
  133. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
  134. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
  135. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -189
  136. package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
  137. package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
  138. package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
  139. package/configure/node_modules/@pie-lib/config-ui/lib/help.js +0 -147
  140. package/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
  141. package/configure/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
  142. package/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
  143. package/configure/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
  144. package/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
  145. package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -139
  146. package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
  147. package/configure/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
  148. package/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
  149. package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -143
  150. package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
  151. package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
  152. package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
  153. package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -191
  154. package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
  155. package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -86
  156. package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
  157. package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
  158. package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
  159. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -458
  160. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
  161. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -267
  162. package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
  163. package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -49
  164. package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
  165. package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
  166. package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
  167. package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -143
  168. package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
  169. package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -463
  170. package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
  171. package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -53
  172. package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
  173. package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -74
  174. package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
  175. package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -110
  176. package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
  177. package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
  178. package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
  179. package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
  180. package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
  181. package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
  182. package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
  183. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/LICENSE +0 -20
  184. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/README.md +0 -481
  185. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/package.json +0 -59
  186. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/browser.js +0 -269
  187. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/common.js +0 -274
  188. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/index.js +0 -10
  189. package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/node.js +0 -263
  190. package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/index.js +0 -162
  191. package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/license.md +0 -21
  192. package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/package.json +0 -37
  193. package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/readme.md +0 -60
  194. package/configure/node_modules/@pie-lib/config-ui/package.json +0 -40
  195. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/langs.test.jsx.snap +0 -32
  196. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/settings-panel.test.js.snap +0 -115
  197. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/two-choice.test.js.snap +0 -171
  198. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/choice-utils.test.js +0 -12
  199. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/langs.test.jsx +0 -37
  200. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/number-text-field.test.jsx +0 -148
  201. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/settings-panel.test.js +0 -204
  202. package/configure/node_modules/@pie-lib/config-ui/src/__tests__/two-choice.test.js +0 -24
  203. package/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -56
  204. package/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -73
  205. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/feedback-menu.test.jsx.snap +0 -51
  206. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/index.test.jsx.snap +0 -519
  207. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/feedback-menu.test.jsx +0 -10
  208. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/index.test.jsx +0 -92
  209. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -90
  210. package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -365
  211. package/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
  212. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-config.test.jsx.snap +0 -27
  213. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-selector.test.jsx.snap +0 -38
  214. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-config.test.jsx +0 -71
  215. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-selector.test.jsx +0 -60
  216. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -122
  217. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -52
  218. package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -112
  219. package/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
  220. package/configure/node_modules/@pie-lib/config-ui/src/help.jsx +0 -87
  221. package/configure/node_modules/@pie-lib/config-ui/src/index.js +0 -55
  222. package/configure/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
  223. package/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -98
  224. package/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -111
  225. package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/__snapshots__/config.layout.test.jsx.snap +0 -59
  226. package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/config.layout.test.jsx +0 -42
  227. package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/layout-content.test.jsx +0 -3
  228. package/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -75
  229. package/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
  230. package/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -118
  231. package/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -35
  232. package/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
  233. package/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -337
  234. package/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -202
  235. package/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -22
  236. package/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
  237. package/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -83
  238. package/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -328
  239. package/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -24
  240. package/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -49
  241. package/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -47
  242. package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/__snapshots__/index.test.jsx.snap +0 -170
  243. package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/index.test.jsx +0 -62
  244. package/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -119
  245. package/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
  246. package/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
  247. package/configure/node_modules/@pie-lib/drag/CHANGELOG.json +0 -1
  248. package/configure/node_modules/@pie-lib/drag/CHANGELOG.md +0 -709
  249. package/configure/node_modules/@pie-lib/drag/NEXT.CHANGELOG.json +0 -1
  250. package/configure/node_modules/@pie-lib/drag/esm/index.js +0 -525
  251. package/configure/node_modules/@pie-lib/drag/esm/index.js.map +0 -1
  252. package/configure/node_modules/@pie-lib/drag/lib/choice.js +0 -129
  253. package/configure/node_modules/@pie-lib/drag/lib/choice.js.map +0 -1
  254. package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js +0 -35
  255. package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js.map +0 -1
  256. package/configure/node_modules/@pie-lib/drag/lib/drag-type.js +0 -15
  257. package/configure/node_modules/@pie-lib/drag/lib/drag-type.js.map +0 -1
  258. package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js +0 -82
  259. package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js.map +0 -1
  260. package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js +0 -37
  261. package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js.map +0 -1
  262. package/configure/node_modules/@pie-lib/drag/lib/index.js +0 -89
  263. package/configure/node_modules/@pie-lib/drag/lib/index.js.map +0 -1
  264. package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js +0 -37
  265. package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js.map +0 -1
  266. package/configure/node_modules/@pie-lib/drag/lib/placeholder.js +0 -153
  267. package/configure/node_modules/@pie-lib/drag/lib/placeholder.js.map +0 -1
  268. package/configure/node_modules/@pie-lib/drag/lib/preview-component.js +0 -194
  269. package/configure/node_modules/@pie-lib/drag/lib/preview-component.js.map +0 -1
  270. package/configure/node_modules/@pie-lib/drag/lib/swap.js +0 -25
  271. package/configure/node_modules/@pie-lib/drag/lib/swap.js.map +0 -1
  272. package/configure/node_modules/@pie-lib/drag/lib/uid-context.js +0 -40
  273. package/configure/node_modules/@pie-lib/drag/lib/uid-context.js.map +0 -1
  274. package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js +0 -59
  275. package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js.map +0 -1
  276. package/configure/node_modules/@pie-lib/drag/package.json +0 -34
  277. package/configure/node_modules/@pie-lib/drag/src/__tests__/__snapshots__/placeholder.test.jsx.snap +0 -68
  278. package/configure/node_modules/@pie-lib/drag/src/__tests__/placeholder.test.jsx +0 -48
  279. package/configure/node_modules/@pie-lib/drag/src/__tests__/uid-context.test.jsx +0 -21
  280. package/configure/node_modules/@pie-lib/drag/src/choice.jsx +0 -76
  281. package/configure/node_modules/@pie-lib/drag/src/drag-in-the-blank-dp.jsx +0 -19
  282. package/configure/node_modules/@pie-lib/drag/src/drag-type.js +0 -7
  283. package/configure/node_modules/@pie-lib/drag/src/droppable-placeholder.jsx +0 -38
  284. package/configure/node_modules/@pie-lib/drag/src/ica-dp.jsx +0 -23
  285. package/configure/node_modules/@pie-lib/drag/src/index.js +0 -23
  286. package/configure/node_modules/@pie-lib/drag/src/match-list-dp.jsx +0 -23
  287. package/configure/node_modules/@pie-lib/drag/src/placeholder.jsx +0 -145
  288. package/configure/node_modules/@pie-lib/drag/src/preview-component.jsx +0 -153
  289. package/configure/node_modules/@pie-lib/drag/src/swap.js +0 -14
  290. package/configure/node_modules/@pie-lib/drag/src/uid-context.js +0 -13
  291. package/configure/node_modules/@pie-lib/drag/src/with-drag-context.js +0 -32
  292. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -32
  293. package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -2224
  294. package/configure/node_modules/@pie-lib/editable-html/NEXT.CHANGELOG.json +0 -1
  295. package/configure/node_modules/@pie-lib/editable-html/esm/index.js +0 -9998
  296. package/configure/node_modules/@pie-lib/editable-html/esm/index.js.map +0 -1
  297. package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js +0 -25
  298. package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js.map +0 -1
  299. package/configure/node_modules/@pie-lib/editable-html/lib/constants.js +0 -16
  300. package/configure/node_modules/@pie-lib/editable-html/lib/constants.js.map +0 -1
  301. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -1356
  302. package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
  303. package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -269
  304. package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
  305. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
  306. package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
  307. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js +0 -73
  308. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js.map +0 -1
  309. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -305
  310. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
  311. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -381
  312. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
  313. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js +0 -37
  314. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js.map +0 -1
  315. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js +0 -397
  316. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js.map +0 -1
  317. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js +0 -114
  318. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js.map +0 -1
  319. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js +0 -38
  320. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js.map +0 -1
  321. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js +0 -80
  322. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js.map +0 -1
  323. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +0 -129
  324. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +0 -1
  325. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -419
  326. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
  327. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -177
  328. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
  329. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -263
  330. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
  331. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -161
  332. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
  333. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -402
  334. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
  335. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -334
  336. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
  337. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -454
  338. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
  339. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -387
  340. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
  341. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -709
  342. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
  343. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -101
  344. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
  345. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
  346. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
  347. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js +0 -46
  348. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js.map +0 -1
  349. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -289
  350. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
  351. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
  352. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
  353. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -57
  354. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
  355. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -95
  356. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
  357. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -341
  358. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
  359. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -75
  360. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
  361. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js +0 -130
  362. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js.map +0 -1
  363. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -125
  364. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
  365. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js +0 -133
  366. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js.map +0 -1
  367. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
  368. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
  369. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -483
  370. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
  371. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -187
  372. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
  373. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js +0 -226
  374. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js.map +0 -1
  375. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js +0 -34
  376. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js.map +0 -1
  377. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -229
  378. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
  379. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -53
  380. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
  381. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -286
  382. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
  383. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -34
  384. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
  385. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -194
  386. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
  387. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -376
  388. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
  389. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
  390. package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
  391. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -677
  392. package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
  393. package/configure/node_modules/@pie-lib/editable-html/lib/shared/alert-dialog.js +0 -75
  394. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
  395. package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
  396. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/LICENSE +0 -20
  397. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/README.md +0 -481
  398. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/package.json +0 -59
  399. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/browser.js +0 -269
  400. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/common.js +0 -274
  401. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/index.js +0 -10
  402. package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/node.js +0 -263
  403. package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/index.js +0 -162
  404. package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/license.md +0 -21
  405. package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/package.json +0 -37
  406. package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/readme.md +0 -60
  407. package/configure/node_modules/@pie-lib/editable-html/package.json +0 -60
  408. package/configure/node_modules/@pie-lib/editable-html/src/__tests__/editor.test.jsx +0 -363
  409. package/configure/node_modules/@pie-lib/editable-html/src/__tests__/serialization.test.js +0 -291
  410. package/configure/node_modules/@pie-lib/editable-html/src/__tests__/utils.js +0 -36
  411. package/configure/node_modules/@pie-lib/editable-html/src/block-tags.js +0 -17
  412. package/configure/node_modules/@pie-lib/editable-html/src/constants.js +0 -7
  413. package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -1197
  414. package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -162
  415. package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
  416. package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
  417. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popper.js +0 -48
  418. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -284
  419. package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -447
  420. package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/icons/index.jsx +0 -17
  421. package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/index.jsx +0 -346
  422. package/configure/node_modules/@pie-lib/editable-html/src/plugins/customPlugin/index.jsx +0 -85
  423. package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/icons/index.jsx +0 -19
  424. package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/index.jsx +0 -72
  425. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +0 -51
  426. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +0 -27
  427. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +0 -44
  428. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/component.test.jsx +0 -41
  429. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +0 -42
  430. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar.test.jsx +0 -11
  431. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/index.test.js +0 -95
  432. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/insert-image-handler.test.js +0 -113
  433. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/mock-change.js +0 -15
  434. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +0 -82
  435. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -343
  436. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -100
  437. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -227
  438. package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -117
  439. package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -360
  440. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/__tests__/index.test.js +0 -54
  441. package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -305
  442. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +0 -48
  443. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/index.test.jsx +0 -245
  444. package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -379
  445. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/__tests__/index.test.js +0 -75
  446. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -325
  447. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -624
  448. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -56
  449. package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
  450. package/configure/node_modules/@pie-lib/editable-html/src/plugins/rendering/index.js +0 -31
  451. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -215
  452. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -76
  453. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -48
  454. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -71
  455. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -299
  456. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -70
  457. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/math-templated/index.jsx +0 -104
  458. package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -90
  459. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/CustomTablePlugin.js +0 -113
  460. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +0 -44
  461. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/index.test.jsx +0 -401
  462. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/table-toolbar.test.jsx +0 -42
  463. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -53
  464. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -427
  465. package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -136
  466. package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/icons/index.jsx +0 -139
  467. package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/index.jsx +0 -23
  468. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +0 -923
  469. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +0 -20
  470. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +0 -36
  471. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +0 -46
  472. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +0 -94
  473. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +0 -37
  474. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +0 -51
  475. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar.test.jsx +0 -106
  476. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -206
  477. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -38
  478. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -257
  479. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -23
  480. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -138
  481. package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -338
  482. package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -31
  483. package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -621
  484. package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
  485. package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +0 -1
  486. package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +0 -539
  487. package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +0 -1
  488. package/configure/node_modules/@pie-lib/icons/esm/index.js +0 -1153
  489. package/configure/node_modules/@pie-lib/icons/esm/index.js.map +0 -1
  490. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +0 -89
  491. package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +0 -1
  492. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +0 -153
  493. package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +0 -1
  494. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +0 -206
  495. package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +0 -1
  496. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +0 -130
  497. package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +0 -1
  498. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +0 -92
  499. package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +0 -1
  500. package/configure/node_modules/@pie-lib/icons/lib/index.js +0 -72
  501. package/configure/node_modules/@pie-lib/icons/lib/index.js.map +0 -1
  502. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +0 -229
  503. package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +0 -1
  504. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +0 -145
  505. package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +0 -1
  506. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +0 -183
  507. package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +0 -1
  508. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +0 -82
  509. package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +0 -1
  510. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +0 -206
  511. package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +0 -1
  512. package/configure/node_modules/@pie-lib/icons/lib/sized.js +0 -41
  513. package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +0 -1
  514. package/configure/node_modules/@pie-lib/icons/package.json +0 -35
  515. package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +0 -3
  516. package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +0 -64
  517. package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +0 -121
  518. package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +0 -158
  519. package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +0 -76
  520. package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +0 -61
  521. package/configure/node_modules/@pie-lib/icons/src/index.js +0 -19
  522. package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +0 -189
  523. package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +0 -107
  524. package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +0 -130
  525. package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +0 -49
  526. package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +0 -152
  527. package/configure/node_modules/@pie-lib/icons/src/sized.jsx +0 -25
  528. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -17
  529. package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -1077
  530. package/configure/node_modules/@pie-lib/math-input/NEXT.CHANGELOG.json +0 -1
  531. package/configure/node_modules/@pie-lib/math-input/esm/index.js +0 -2134
  532. package/configure/node_modules/@pie-lib/math-input/esm/index.js.map +0 -1
  533. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -124
  534. package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
  535. package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -76
  536. package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
  537. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -512
  538. package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
  539. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
  540. package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
  541. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
  542. package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
  543. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
  544. package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
  545. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -49
  546. package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
  547. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
  548. package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
  549. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
  550. package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
  551. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -17
  552. package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
  553. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -36
  554. package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
  555. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -34
  556. package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
  557. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -169
  558. package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
  559. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
  560. package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
  561. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
  562. package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
  563. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
  564. package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
  565. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
  566. package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
  567. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
  568. package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
  569. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -74
  570. package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
  571. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -25
  572. package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
  573. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -18
  574. package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
  575. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -47
  576. package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
  577. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
  578. package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
  579. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
  580. package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
  581. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -120
  582. package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
  583. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
  584. package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
  585. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -192
  586. package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
  587. package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js +0 -110
  588. package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js.map +0 -1
  589. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
  590. package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
  591. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -32
  592. package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
  593. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -247
  594. package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
  595. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -356
  596. package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
  597. package/configure/node_modules/@pie-lib/math-input/lib/shared/constants.js +0 -16
  598. package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js +0 -23
  599. package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js.map +0 -1
  600. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/LICENSE +0 -20
  601. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/README.md +0 -481
  602. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/package.json +0 -59
  603. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/browser.js +0 -269
  604. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/common.js +0 -274
  605. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/index.js +0 -10
  606. package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/node.js +0 -263
  607. package/configure/node_modules/@pie-lib/math-input/node_modules/ms/index.js +0 -162
  608. package/configure/node_modules/@pie-lib/math-input/node_modules/ms/license.md +0 -21
  609. package/configure/node_modules/@pie-lib/math-input/node_modules/ms/package.json +0 -37
  610. package/configure/node_modules/@pie-lib/math-input/node_modules/ms/readme.md +0 -60
  611. package/configure/node_modules/@pie-lib/math-input/package.json +0 -35
  612. package/configure/node_modules/@pie-lib/math-input/src/__tests__/__snapshots__/math-input-test.jsx.snap +0 -152
  613. package/configure/node_modules/@pie-lib/math-input/src/__tests__/math-input-test.jsx +0 -85
  614. package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -69
  615. package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -18
  616. package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +0 -193
  617. package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/index.test.jsx +0 -24
  618. package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/keys-layout.test.js +0 -15
  619. package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -450
  620. package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
  621. package/configure/node_modules/@pie-lib/math-input/src/keys/__tests__/utils.test.js +0 -57
  622. package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
  623. package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
  624. package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -28
  625. package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
  626. package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
  627. package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
  628. package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -28
  629. package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -26
  630. package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -144
  631. package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -367
  632. package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
  633. package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
  634. package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
  635. package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
  636. package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -65
  637. package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
  638. package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -10
  639. package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -38
  640. package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
  641. package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
  642. package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
  643. package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
  644. package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
  645. package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/__snapshots__/input.test.jsx.snap +0 -9
  646. package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/input.test.jsx +0 -92
  647. package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/static.test.jsx +0 -57
  648. package/configure/node_modules/@pie-lib/math-input/src/mq/common-mq-styles.js +0 -105
  649. package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
  650. package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -5
  651. package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -176
  652. package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -285
  653. package/configure/node_modules/@pie-lib/math-input/src/updateSpans.js +0 -15
  654. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -1
  655. package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -775
  656. package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +0 -1
  657. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +0 -690
  658. package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +0 -1
  659. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -38
  660. package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
  661. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +0 -15
  662. package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +0 -1
  663. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -296
  664. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
  665. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
  666. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
  667. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -109
  668. package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
  669. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -95
  670. package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
  671. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -438
  672. package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
  673. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/LICENSE +0 -20
  674. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/README.md +0 -481
  675. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/package.json +0 -59
  676. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/browser.js +0 -269
  677. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/common.js +0 -274
  678. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/index.js +0 -10
  679. package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/node.js +0 -263
  680. package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/index.js +0 -162
  681. package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/license.md +0 -21
  682. package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/package.json +0 -37
  683. package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/readme.md +0 -60
  684. package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -28
  685. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +0 -14
  686. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +0 -50
  687. package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +0 -155
  688. package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -5
  689. package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +0 -2
  690. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +0 -9
  691. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +0 -104
  692. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -220
  693. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
  694. package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
  695. package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
  696. package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -387
  697. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -17
  698. package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -940
  699. package/configure/node_modules/@pie-lib/math-toolbar/NEXT.CHANGELOG.json +0 -1
  700. package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js +0 -1410
  701. package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js.map +0 -1
  702. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -68
  703. package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
  704. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -575
  705. package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
  706. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -287
  707. package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
  708. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -240
  709. package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
  710. package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js +0 -21
  711. package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js.map +0 -1
  712. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/LICENSE +0 -20
  713. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/README.md +0 -481
  714. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/package.json +0 -59
  715. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/browser.js +0 -269
  716. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/common.js +0 -274
  717. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/index.js +0 -10
  718. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/node.js +0 -263
  719. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/index.js +0 -162
  720. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/license.md +0 -21
  721. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/package.json +0 -37
  722. package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/readme.md +0 -60
  723. package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -46
  724. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +0 -31
  725. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/index.test.js.snap +0 -30
  726. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/math-preview.test.js.snap +0 -23
  727. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/editor-and-pad.test.js +0 -25
  728. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/index.test.js +0 -28
  729. package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/math-preview.test.js +0 -31
  730. package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -47
  731. package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -499
  732. package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -224
  733. package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -179
  734. package/configure/node_modules/@pie-lib/math-toolbar/src/utils.js +0 -11
  735. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -1
  736. package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -1026
  737. package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +0 -1
  738. package/configure/node_modules/@pie-lib/render-ui/esm/index.js +0 -1616
  739. package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +0 -1
  740. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +0 -88
  741. package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +0 -1
  742. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +0 -9
  743. package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +0 -1
  744. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -135
  745. package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
  746. package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -344
  747. package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
  748. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -150
  749. package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
  750. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +0 -27
  751. package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +0 -1
  752. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -28
  753. package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
  754. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -74
  755. package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
  756. package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -136
  757. package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
  758. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
  759. package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
  760. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -145
  761. package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
  762. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -321
  763. package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
  764. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
  765. package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
  766. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
  767. package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
  768. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -151
  769. package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
  770. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +0 -122
  771. package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +0 -1
  772. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -181
  773. package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
  774. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/LICENSE +0 -20
  775. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/README.md +0 -481
  776. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/package.json +0 -59
  777. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/browser.js +0 -269
  778. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/common.js +0 -274
  779. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/index.js +0 -10
  780. package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/node.js +0 -263
  781. package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/index.js +0 -162
  782. package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/license.md +0 -21
  783. package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/package.json +0 -37
  784. package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/readme.md +0 -60
  785. package/configure/node_modules/@pie-lib/render-ui/package.json +0 -40
  786. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +0 -11
  787. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +0 -37
  788. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +0 -42
  789. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +0 -64
  790. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +0 -27
  791. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +0 -12
  792. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +0 -20
  793. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +0 -21
  794. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +0 -24
  795. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +0 -56
  796. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +0 -47
  797. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +0 -64
  798. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +0 -16
  799. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +0 -34
  800. package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +0 -254
  801. package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +0 -51
  802. package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +0 -1
  803. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +0 -18
  804. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +0 -13
  805. package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -64
  806. package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -121
  807. package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -99
  808. package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +0 -16
  809. package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -18
  810. package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -21
  811. package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -35
  812. package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
  813. package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -95
  814. package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -254
  815. package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -17
  816. package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
  817. package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
  818. package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +0 -66
  819. package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -116
  820. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +0 -1
  821. package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +0 -410
  822. package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +0 -1
  823. package/configure/node_modules/@pie-lib/test-utils/esm/index.js +0 -39
  824. package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +0 -1
  825. package/configure/node_modules/@pie-lib/test-utils/lib/index.js +0 -40
  826. package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +0 -1
  827. package/configure/node_modules/@pie-lib/test-utils/package.json +0 -25
  828. package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +0 -45
  829. package/configure/node_modules/@pie-lib/test-utils/src/index.js +0 -18
  830. package/configure/node_modules/debug/CHANGELOG.md +0 -395
  831. package/configure/node_modules/debug/LICENSE +0 -19
  832. package/configure/node_modules/debug/README.md +0 -437
  833. package/configure/node_modules/debug/node.js +0 -1
  834. package/configure/node_modules/debug/package.json +0 -51
  835. package/configure/node_modules/debug/src/browser.js +0 -180
  836. package/configure/node_modules/debug/src/common.js +0 -249
  837. package/configure/node_modules/debug/src/index.js +0 -12
  838. package/configure/node_modules/debug/src/node.js +0 -177
  839. package/configure/node_modules/slate-dev-environment/Readme.md +0 -1
  840. package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +0 -287
  841. package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +0 -1
  842. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +0 -264
  843. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +0 -1
  844. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +0 -282
  845. package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +0 -1
  846. package/configure/node_modules/slate-dev-environment/package.json +0 -21
  847. package/configure/src/__tests__/DeleteWidget.test.js +0 -64
  848. package/configure/src/__tests__/__snapshots__/hotspot-container.test.js.snap +0 -192
  849. package/configure/src/__tests__/__snapshots__/hotspot-drawable.test.js.snap +0 -562
  850. package/configure/src/__tests__/__snapshots__/root.test.js.snap +0 -469
  851. package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.json +0 -1
  852. package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.md +0 -410
  853. package/controller/node_modules/@pie-lib/controller-utils/NEXT.CHANGELOG.json +0 -1
  854. package/controller/node_modules/@pie-lib/controller-utils/esm/index.js +0 -129
  855. package/controller/node_modules/@pie-lib/controller-utils/esm/index.js.map +0 -1
  856. package/controller/node_modules/@pie-lib/controller-utils/lib/index.js +0 -31
  857. package/controller/node_modules/@pie-lib/controller-utils/lib/index.js.map +0 -1
  858. package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js +0 -29
  859. package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js.map +0 -1
  860. package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js +0 -140
  861. package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js.map +0 -1
  862. package/controller/node_modules/@pie-lib/controller-utils/package.json +0 -25
  863. package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/partial-scoring.test.js +0 -25
  864. package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/persistence.test.js +0 -151
  865. package/controller/node_modules/@pie-lib/controller-utils/src/index.js +0 -4
  866. package/controller/node_modules/@pie-lib/controller-utils/src/partial-scoring.js +0 -19
  867. package/controller/node_modules/@pie-lib/controller-utils/src/persistence.js +0 -103
  868. package/esm/configure.js +0 -31136
  869. package/esm/configure.js.map +0 -1
  870. package/esm/controller.js +0 -344
  871. package/esm/controller.js.map +0 -1
  872. package/esm/element.js +0 -28985
  873. package/esm/element.js.map +0 -1
  874. package/src/__tests__/__snapshots__/container.test.jsx.snap +0 -264
  875. package/src/__tests__/__snapshots__/index.test.js.snap +0 -81
  876. package/src/__tests__/__snapshots__/polygon.test.jsx.snap +0 -192
  877. package/src/__tests__/__snapshots__/rectangle.test.jsx.snap +0 -127
  878. package/src/__tests__/polygon.test.jsx +0 -230
  879. package/src/__tests__/rectangle.test.jsx +0 -232
@@ -1,161 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports["default"] = void 0;
9
-
10
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
11
-
12
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
13
-
14
- var _slate = require("slate");
15
-
16
- var _debug = _interopRequireDefault(require("debug"));
17
-
18
- var log = (0, _debug["default"])('@pie-lib:editable-html:image:insert-image-handler');
19
- /**
20
- * Handles user selection, insertion (or cancellation) of an image into the editor.
21
- * @param {Block} placeholderBlock - a block that has been added to the editor as a place holder for the image
22
- * @param {Function} onFinish - a function to call if uploading fails or succeeds
23
- * @param {Function} getValue - a function to return the value of the editor
24
- * @param {Function} onChange - callback to notify changes applied by the handler
25
- * @param {Boolean} isPasted - a boolean that keeps track if the file is pasted
26
- */
27
-
28
- var InsertImageHandler = /*#__PURE__*/function () {
29
- function InsertImageHandler(placeholderBlock, onFinish, getValue, onChange) {
30
- var isPasted = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
31
- (0, _classCallCheck2["default"])(this, InsertImageHandler);
32
- this.placeholderBlock = placeholderBlock;
33
- this.getValue = getValue;
34
- this.onFinish = onFinish;
35
- this.onChange = onChange;
36
- this.isPasted = isPasted;
37
- this.chosenFile = null;
38
- }
39
-
40
- (0, _createClass2["default"])(InsertImageHandler, [{
41
- key: "getPlaceholderInDocument",
42
- value: function getPlaceholderInDocument(value) {
43
- var document = value.document;
44
- var directChild = document.getChild(this.placeholderBlock.key);
45
-
46
- if (directChild) {
47
- return directChild;
48
- }
49
-
50
- var child = document.getDescendant(this.placeholderBlock.key);
51
-
52
- if (child) {
53
- return child;
54
- } else {
55
- // eslint-disable-next-line
56
- throw new Error("insert-image: Can't find placeholder!");
57
- }
58
- }
59
- }, {
60
- key: "cancel",
61
- value: function cancel() {
62
- log('insert cancelled');
63
-
64
- try {
65
- var value = this.getValue();
66
- var child = this.getPlaceholderInDocument(value);
67
-
68
- if (child) {
69
- var c = value.change().removeNodeByKey(child.key);
70
- this.onChange(c);
71
- this.onFinish(false);
72
- }
73
- } catch (err) {//
74
- }
75
- }
76
- }, {
77
- key: "done",
78
- value: function done(err, src) {
79
- log('done: err:', err);
80
-
81
- if (err) {
82
- //eslint-disable-next-line
83
- console.log(err);
84
- this.onFinish(false);
85
- } else {
86
- var value = this.getValue();
87
- var child = this.getPlaceholderInDocument(value);
88
- var data = child.data.merge(_slate.Data.create({
89
- loaded: true,
90
- src: src,
91
- percent: 100
92
- }));
93
- var change = value.change().setNodeByKey(this.placeholderBlock.key, {
94
- data: data
95
- });
96
- this.onChange(change);
97
- this.onFinish(true);
98
- }
99
- }
100
- /**
101
- * Notify handler that the user chose a file - will create a change with a preview in the editor.
102
- *
103
- * @param {File} file - the file that the user chose using a file input.
104
- */
105
-
106
- }, {
107
- key: "fileChosen",
108
- value: function fileChosen(file) {
109
- var _this = this;
110
-
111
- if (!file) {
112
- return;
113
- } // Save the chosen file to this.chosenFile
114
-
115
-
116
- this.chosenFile = file;
117
- log('[fileChosen] file: ', file);
118
- var reader = new FileReader();
119
-
120
- reader.onload = function () {
121
- var value = _this.getValue();
122
-
123
- var dataURL = reader.result;
124
-
125
- var child = _this.getPlaceholderInDocument(value);
126
-
127
- var data = child.data.set('src', dataURL);
128
- var change = value.change().setNodeByKey(_this.placeholderBlock.key, {
129
- data: data
130
- });
131
-
132
- _this.onChange(change);
133
- };
134
-
135
- reader.readAsDataURL(file);
136
- }
137
- }, {
138
- key: "progress",
139
- value: function progress(percent, bytes, total) {
140
- log('progress: ', percent, bytes, total);
141
- var value = this.getValue();
142
- var child = this.getPlaceholderInDocument(value);
143
- var data = child.data.set('percent', percent);
144
- var change = value.change().setNodeByKey(this.placeholderBlock.key, {
145
- data: data
146
- });
147
- this.onChange(change);
148
- } // Add a getter method to retrieve the chosen file
149
-
150
- }, {
151
- key: "getChosenFile",
152
- value: function getChosenFile() {
153
- return this.chosenFile;
154
- }
155
- }]);
156
- return InsertImageHandler;
157
- }();
158
-
159
- var _default = InsertImageHandler;
160
- exports["default"] = _default;
161
- //# sourceMappingURL=insert-image-handler.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/image/insert-image-handler.js"],"names":["log","InsertImageHandler","placeholderBlock","onFinish","getValue","onChange","isPasted","chosenFile","value","document","directChild","getChild","key","child","getDescendant","Error","getPlaceholderInDocument","c","change","removeNodeByKey","err","src","console","data","merge","Data","create","loaded","percent","setNodeByKey","file","reader","FileReader","onload","dataURL","result","set","readAsDataURL","bytes","total"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,GAAG,GAAG,uBAAM,mDAAN,CAAZ;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IACMC,kB;AACJ,8BAAYC,gBAAZ,EAA8BC,QAA9B,EAAwCC,QAAxC,EAAkDC,QAAlD,EAA8E;AAAA,QAAlBC,QAAkB,uEAAP,KAAO;AAAA;AAC5E,SAAKJ,gBAAL,GAAwBA,gBAAxB;AACA,SAAKE,QAAL,GAAgBA,QAAhB;AACA,SAAKD,QAAL,GAAgBA,QAAhB;AACA,SAAKE,QAAL,G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AM,CAACM,aAAP,CAAqBP,IAArB;AACD;;;WAED,kBAASF,OAAT,EAAkBU,KAAlB,EAAyBC,KAAzB,EAAgC;AAC9BvC,MAAAA,GAAG,CAAC,YAAD,EAAe4B,OAAf,EAAwBU,KAAxB,EAA+BC,KAA/B,CAAH;AACA,UAAM/B,KAAK,GAAG,KAAKJ,QAAL,EAAd;AACA,UAAMS,KAAK,GAAG,KAAKG,wBAAL,CAA8BR,KAA9B,CAAd;AACA,UAAMe,IAAI,GAAGV,KAAK,CAACU,IAAN,CAAWa,GAAX,CAAe,SAAf,EAA0BR,OAA1B,CAAb;AACA,UAAMV,MAAM,GAAGV,KAAK,CAACU,MAAN,GAAeW,YAAf,CAA4B,KAAK3B,gBAAL,CAAsBU,GAAlD,EAAuD;AAAEW,QAAAA,IAAI,EAAJA;AAAF,OAAvD,CAAf;AACA,WAAKlB,QAAL,CAAca,MAAd;AACD,K,CAED;;;;WACA,yBAAgB;AACd,aAAO,KAAKX,UAAZ;AACD;;;;;eAGYN,kB","sourcesContent":["import { Data } from 'slate';\nimport debug from 'debug';\n\nconst log = debug('@pie-lib:editable-html:image:insert-image-handler');\n\n/**\n * Handles user selection, insertion (or cancellation) of an image into the editor.\n * @param {Block} placeholderBlock - a block that has been added to the editor as a place holder for the image\n * @param {Function} onFinish - a function to call if uploading fails or succeeds\n * @param {Function} getValue - a function to return the value of the editor\n * @param {Function} onChange - callback to notify changes applied by the handler\n * @param {Boolean} isPasted - a boolean that keeps track if the file is pasted\n */\nclass InsertImageHandler {\n constructor(placeholderBlock, onFinish, getValue, onChange, isPasted = false) {\n this.placeholderBlock = placeholderBlock;\n this.getValue = getValue;\n this.onFinish = onFinish;\n this.onChange = onChange;\n this.isPasted = isPasted;\n this.chosenFile = null;\n }\n\n getPlaceholderInDocument(value) {\n const { document } = value;\n const directChild = document.getChild(this.placeholderBlock.key);\n\n if (directChild) {\n return directChild;\n }\n\n const child = document.getDescendant(this.placeholderBlock.key);\n\n if (child) {\n return child;\n } else {\n // eslint-disable-next-line\n throw new Error(\"insert-image: Can't find placeholder!\");\n }\n }\n\n cancel() {\n log('insert cancelled');\n\n try {\n const value = this.getValue();\n const child = this.getPlaceholderInDocument(value);\n\n if (child) {\n const c = value.change().removeNodeByKey(child.key);\n this.onChange(c);\n this.onFinish(false);\n }\n } catch (err) {\n //\n }\n }\n\n done(err, src) {\n log('done: err:', err);\n if (err) {\n //eslint-disable-next-line\n console.log(err);\n this.onFinish(false);\n } else {\n const value = this.getValue();\n const child = this.getPlaceholderInDocument(value);\n const data = child.data.merge(Data.create({ loaded: true, src, percent: 100 }));\n\n const change = value.change().setNodeByKey(this.placeholderBlock.key, { data });\n this.onChange(change);\n this.onFinish(true);\n }\n }\n\n /**\n * Notify handler that the user chose a file - will create a change with a preview in the editor.\n *\n * @param {File} file - the file that the user chose using a file input.\n */\n fileChosen(file) {\n if (!file) {\n return;\n }\n\n // Save the chosen file to this.chosenFile\n this.chosenFile = file;\n\n log('[fileChosen] file: ', file);\n const reader = new FileReader();\n reader.onload = () => {\n const value = this.getValue();\n const dataURL = reader.result;\n const child = this.getPlaceholderInDocument(value);\n const data = child.data.set('src', dataURL);\n const change = value.change().setNodeByKey(this.placeholderBlock.key, { data });\n this.onChange(change);\n };\n reader.readAsDataURL(file);\n }\n\n progress(percent, bytes, total) {\n log('progress: ', percent, bytes, total);\n const value = this.getValue();\n const child = this.getPlaceholderInDocument(value);\n const data = child.data.set('percent', percent);\n const change = value.change().setNodeByKey(this.placeholderBlock.key, { data });\n this.onChange(change);\n }\n\n // Add a getter method to retrieve the chosen file\n getChosenFile() {\n return this.chosenFile;\n }\n}\n\nexport default InsertImageHandler;\n"],"file":"insert-image-handler.js"}
@@ -1,402 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.buildPlugins = exports.DEFAULT_PLUGINS = exports.ALL_PLUGINS = void 0;
9
-
10
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
-
12
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
13
-
14
- var _slateHotkeys = _interopRequireDefault(require("slate-hotkeys"));
15
-
16
- var _slateDevEnvironment = require("slate-dev-environment");
17
-
18
- var _slate = require("slate");
19
-
20
- var _FormatBold = _interopRequireDefault(require("@material-ui/icons/FormatBold"));
21
-
22
- var _FormatQuote = _interopRequireDefault(require("@material-ui/icons/FormatQuote"));
23
-
24
- var _FormatListBulleted = _interopRequireDefault(require("@material-ui/icons/FormatListBulleted"));
25
-
26
- var _FormatListNumbered = _interopRequireDefault(require("@material-ui/icons/FormatListNumbered"));
27
-
28
- var _Redo = _interopRequireDefault(require("@material-ui/icons/Redo"));
29
-
30
- var _Undo = _interopRequireDefault(require("@material-ui/icons/Undo"));
31
-
32
- var _image = _interopRequireDefault(require("./image"));
33
-
34
- var _media = _interopRequireDefault(require("./media"));
35
-
36
- var _characters = _interopRequireDefault(require("./characters"));
37
-
38
- var _FormatItalic = _interopRequireDefault(require("@material-ui/icons/FormatItalic"));
39
-
40
- var _math = _interopRequireDefault(require("./math"));
41
-
42
- var _react = _interopRequireDefault(require("react"));
43
-
44
- var _FormatStrikethrough = _interopRequireDefault(require("@material-ui/icons/FormatStrikethrough"));
45
-
46
- var _toolbar = _interopRequireDefault(require("./toolbar"));
47
-
48
- var _FormatUnderlined = _interopRequireDefault(require("@material-ui/icons/FormatUnderlined"));
49
-
50
- var _compact = _interopRequireDefault(require("lodash/compact"));
51
-
52
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
53
-
54
- var _slateSoftBreak = _interopRequireDefault(require("slate-soft-break"));
55
-
56
- var _debug = _interopRequireDefault(require("debug"));
57
-
58
- var _list = _interopRequireDefault(require("./list"));
59
-
60
- var _table = _interopRequireDefault(require("./table"));
61
-
62
- var _respArea = _interopRequireDefault(require("./respArea"));
63
-
64
- var _html = _interopRequireDefault(require("./html"));
65
-
66
- var _css = _interopRequireDefault(require("./css"));
67
-
68
- var _customPlugin = _interopRequireDefault(require("./customPlugin"));
69
-
70
- var _rendering = _interopRequireDefault(require("./rendering"));
71
-
72
- var _textAlign = _interopRequireDefault(require("./textAlign"));
73
-
74
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
75
-
76
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
77
-
78
- var log = (0, _debug["default"])('@pie-lib:editable-html:plugins');
79
-
80
- var SuperscriptIcon = function SuperscriptIcon() {
81
- return /*#__PURE__*/_react["default"].createElement("svg", {
82
- xmlns: "http://www.w3.org/2000/svg",
83
- height: "24px",
84
- viewBox: "0 0 24 24",
85
- width: "24px",
86
- fill: "none"
87
- }, /*#__PURE__*/_react["default"].createElement("path", {
88
- d: "M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z",
89
- fill: "currentColor"
90
- }));
91
- };
92
-
93
- var SubscriptIcon = function SubscriptIcon() {
94
- return /*#__PURE__*/_react["default"].createElement("svg", {
95
- xmlns: "http://www.w3.org/2000/svg",
96
- height: "24px",
97
- viewBox: "0 0 24 24",
98
- width: "24px",
99
- fill: "none"
100
- }, /*#__PURE__*/_react["default"].createElement("path", {
101
- d: "M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z",
102
- fill: "currentColor"
103
- }));
104
- };
105
-
106
- var HeadingIcon = function HeadingIcon() {
107
- return /*#__PURE__*/_react["default"].createElement("svg", {
108
- width: "30",
109
- height: "28",
110
- viewBox: "0 0 30 28",
111
- fill: "none",
112
- xmlns: "http://www.w3.org/2000/svg",
113
- style: {
114
- width: '20px',
115
- height: '18px'
116
- }
117
- }, /*#__PURE__*/_react["default"].createElement("path", {
118
- d: "M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z",
119
- fill: "currentColor"
120
- }));
121
- };
122
-
123
- var STYLES_MAP = {
124
- h3: {
125
- fontSize: 'inherit',
126
- fontWeight: 'inherit'
127
- },
128
- blockquote: {
129
- background: '#f9f9f9',
130
- borderLeft: '5px solid #ccc',
131
- margin: '1.5em 10px',
132
- padding: '.5em 10px'
133
- }
134
- };
135
-
136
- function MarkHotkey(options) {
137
- var type = options.type,
138
- key = options.key,
139
- icon = options.icon,
140
- tag = options.tag; // Return our "plugin" object, containing the `onKeyDown` handler.
141
-
142
- return {
143
- name: type,
144
- toolbar: {
145
- isMark: true,
146
- type: type,
147
- icon: icon,
148
- onToggle: function onToggle(change) {
149
- log('[onToggleMark] type: ', type);
150
- var selection = change.value.selection;
151
-
152
- if (['blockquote', 'h3'].includes(type)) {
153
- var texts = change.value.document.getTextsAtRangeAsArray(selection);
154
- var onlyOneText = texts.length === 1;
155
- var hasMark = false;
156
- var sameMark = true;
157
- texts.forEach(function (t) {
158
- var marks = t.getMarksAsArray();
159
- var markIsThere = marks.find(function (m) {
160
- return m.type === type;
161
- });
162
-
163
- if (!markIsThere) {
164
- // not all texts have this mark
165
- sameMark = false;
166
- } else {
167
- // at least one mark
168
- hasMark = true;
169
- }
170
- });
171
- var shouldContinue = onlyOneText || sameMark || !hasMark;
172
-
173
- if (!shouldContinue) {
174
- return change;
175
- }
176
-
177
- if (selection.startKey === selection.endKey && selection.anchorOffset === selection.focusOffset) {
178
- var textNode = change.value.document.getNode(selection.startKey); // select the whole line if there is no selection
179
-
180
- change.moveFocusTo(textNode.key, 0).moveAnchorTo(textNode.key, textNode.text.length); // remove toggle
181
-
182
- var _hasMark = change.value.activeMarks.find(function (entry) {
183
- return entry.type === type;
184
- });
185
-
186
- if (_hasMark) {
187
- change.removeMark(_hasMark);
188
- } else {
189
- var newMark = _slate.Mark.create(type);
190
-
191
- change.addMark(newMark);
192
- } // move focus to end of text
193
-
194
-
195
- return change.moveFocusTo(textNode.key, textNode.text.length).moveAnchorTo(textNode.key, textNode.text.length);
196
- }
197
- }
198
-
199
- return change.toggleMark(type);
200
- }
201
- },
202
- renderMark: function renderMark(props) {
203
- if (props.mark.type === type) {
204
- var _ref = props.node || {},
205
- data = _ref.data;
206
-
207
- var jsonData = (data === null || data === void 0 ? void 0 : data.toJSON()) || {};
208
- var K = tag || type;
209
- var additionalStyles = STYLES_MAP[K];
210
-
211
- if (additionalStyles) {
212
- if (!jsonData.attributes) {
213
- jsonData.attributes = {};
214
- }
215
-
216
- jsonData.attributes.style = _objectSpread(_objectSpread({}, jsonData.attributes.style), additionalStyles);
217
- }
218
-
219
- return /*#__PURE__*/_react["default"].createElement(K, jsonData.attributes, props.children);
220
- }
221
- },
222
- onKeyDown: function onKeyDown(event, change) {
223
- // Check that the key pressed matches our `key` option.
224
- if (!event.metaKey || event.key != key) return; // Prevent the default characters from being inserted.
225
-
226
- event.preventDefault(); // Toggle the mark `type`.
227
-
228
- change.toggleMark(type);
229
- return true;
230
- }
231
- };
232
- }
233
-
234
- var ALL_PLUGINS = ['bold', // 'code',
235
- 'html', 'extraCSSRules', 'italic', 'underline', 'strikethrough', 'bulleted-list', 'numbered-list', 'image', 'math', 'languageCharacters', 'text-align', 'blockquote', 'h3', 'table', 'video', 'audio', 'responseArea', 'redo', 'undo', 'superscript', 'subscript'];
236
- exports.ALL_PLUGINS = ALL_PLUGINS;
237
- var DEFAULT_PLUGINS = ALL_PLUGINS.filter(function (plug) {
238
- return !['responseArea', 'h3', 'blockquote'].includes(plug);
239
- });
240
- exports.DEFAULT_PLUGINS = DEFAULT_PLUGINS;
241
- var ICON_MAP = {
242
- undo: _Undo["default"],
243
- redo: _Redo["default"]
244
- };
245
-
246
- function UndoRedo(type) {
247
- var IconToUse = ICON_MAP[type];
248
- return {
249
- name: type,
250
- toolbar: {
251
- type: type,
252
- icon: /*#__PURE__*/_react["default"].createElement(IconToUse, null),
253
- ariaLabel: type === 'undo' ? 'Undo (revert the last action)' : 'Redo (reapply the last undone action)',
254
- onClick: function onClick(value, onChange) {
255
- var change = value.change();
256
- onChange(change[type]());
257
- }
258
- }
259
- };
260
- }
261
-
262
- function EnterHandlingPlugin() {
263
- return {
264
- name: 'enterHandling',
265
- onKeyDown: function onKeyDown(event, change) {
266
- if (_slateHotkeys["default"].isSplitBlock(event) && !_slateDevEnvironment.IS_IOS) {
267
- if (change.value.isInVoid) {
268
- return change.collapseToStartOfNextText();
269
- }
270
-
271
- change.splitBlock();
272
- var range = change.value.selection;
273
- var newBlock = change.value.document.getClosestBlock(range.startKey);
274
-
275
- if (newBlock.type !== 'paragraph') {
276
- change.setNodeByKey(newBlock.key, {
277
- type: 'paragraph'
278
- });
279
- }
280
-
281
- return change;
282
- }
283
-
284
- return undefined;
285
- }
286
- };
287
- }
288
-
289
- var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
290
- log('[buildPlugins] opts: ', opts);
291
- activePlugins = activePlugins || DEFAULT_PLUGINS;
292
-
293
- var addIf = function addIf(key, p) {
294
- return activePlugins.includes(key) && p;
295
- };
296
-
297
- var imagePlugin = opts.image && opts.image.onDelete && (0, _image["default"])(opts.image);
298
- var mathPlugin = (0, _math["default"])(opts.math);
299
- var respAreaPlugin = opts.responseArea && opts.responseArea.type && (0, _respArea["default"])(opts.responseArea, (0, _compact["default"])([mathPlugin]));
300
- var cssPlugin = !(0, _isEmpty["default"])(opts.extraCSSRules) && (0, _css["default"])(opts.extraCSSRules);
301
- var languageCharactersPlugins = ((opts === null || opts === void 0 ? void 0 : opts.languageCharacters) || []).map(function (config) {
302
- return (0, _characters["default"])(_objectSpread(_objectSpread({}, config), {}, {
303
- keyPadCharacterRef: opts.keyPadCharacterRef,
304
- setKeypadInteraction: opts.setKeypadInteraction
305
- }));
306
- });
307
- var tablePlugins = [imagePlugin, mathPlugin, respAreaPlugin].concat((0, _toConsumableArray2["default"])(languageCharactersPlugins));
308
-
309
- if (opts.responseArea && opts.responseArea.type === 'math-templated') {
310
- tablePlugins.push(respAreaPlugin);
311
- }
312
-
313
- var builtCustomPlugins = [];
314
- customPlugins.forEach(function (customPlugin) {
315
- var _ref2 = customPlugin || {},
316
- event = _ref2.event,
317
- icon = _ref2.icon,
318
- iconType = _ref2.iconType,
319
- iconAlt = _ref2.iconAlt;
320
-
321
- function isValidEventName(eventName) {
322
- // Check if eventName is a non-empty string
323
- if (typeof eventName !== 'string' || eventName.length === 0) {
324
- return false;
325
- } // Regular expression to match valid event names (only alphanumeric characters and underscore)
326
-
327
-
328
- var regex = /^[a-zA-Z0-9_]+$/; // Check if the eventName matches the regular expression
329
-
330
- return regex.test(eventName);
331
- }
332
-
333
- if (!isValidEventName(event)) {
334
- console.error("The event name: ".concat(event, " is not a valid event name!"));
335
- return;
336
- }
337
-
338
- if (!icon && !iconType && !iconAlt) {
339
- console.error('Your custom button requires icon, iconType and iconAlt');
340
- return;
341
- }
342
-
343
- builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
344
- });
345
- return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
346
- key: 'b',
347
- type: 'bold',
348
- icon: /*#__PURE__*/_react["default"].createElement(_FormatBold["default"], null),
349
- tag: 'strong'
350
- })), // addIf('code', MarkHotkey({ key: '`', type: 'code', icon: <Code /> })),
351
- addIf('italic', MarkHotkey({
352
- key: 'i',
353
- type: 'italic',
354
- icon: /*#__PURE__*/_react["default"].createElement(_FormatItalic["default"], null),
355
- tag: 'em'
356
- })), addIf('strikethrough', MarkHotkey({
357
- key: '~',
358
- type: 'strikethrough',
359
- icon: /*#__PURE__*/_react["default"].createElement(_FormatStrikethrough["default"], null),
360
- tag: 'del'
361
- })), addIf('underline', MarkHotkey({
362
- key: 'u',
363
- type: 'underline',
364
- icon: /*#__PURE__*/_react["default"].createElement(_FormatUnderlined["default"], null),
365
- tag: 'u'
366
- })), // icon should be modifies accordingly
367
- addIf('superscript', MarkHotkey({
368
- type: 'sup',
369
- icon: /*#__PURE__*/_react["default"].createElement(SuperscriptIcon, null),
370
- tag: 'sup'
371
- })), // icon should be modifies accordingly
372
- addIf('subscript', MarkHotkey({
373
- type: 'sub',
374
- icon: /*#__PURE__*/_react["default"].createElement(SubscriptIcon, null),
375
- tag: 'sub'
376
- })), addIf('image', imagePlugin), addIf('video', (0, _media["default"])('video', opts.media)), addIf('audio', (0, _media["default"])('audio', opts.media)), addIf('math', mathPlugin)].concat((0, _toConsumableArray2["default"])(languageCharactersPlugins.map(function (plugin) {
377
- return addIf('languageCharacters', plugin);
378
- })), [addIf('text-align', (0, _textAlign["default"])(opts.textAlign)), addIf('blockquote', MarkHotkey({
379
- key: 'q',
380
- type: 'blockquote',
381
- icon: /*#__PURE__*/_react["default"].createElement(_FormatQuote["default"], null),
382
- tag: 'blockquote'
383
- })), addIf('h3', MarkHotkey({
384
- key: 'h3',
385
- type: 'h3',
386
- icon: /*#__PURE__*/_react["default"].createElement(HeadingIcon, null),
387
- tag: 'h3'
388
- })), addIf('bulleted-list', (0, _list["default"])({
389
- key: 'l',
390
- type: 'ul_list',
391
- icon: /*#__PURE__*/_react["default"].createElement(_FormatListBulleted["default"], null)
392
- })), addIf('numbered-list', (0, _list["default"])({
393
- key: 'n',
394
- type: 'ol_list',
395
- icon: /*#__PURE__*/_react["default"].createElement(_FormatListNumbered["default"], null)
396
- })), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
397
- shift: true
398
- })], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), cssPlugin, addIf('html', (0, _html["default"])(opts.html)), EnterHandlingPlugin(), (0, _rendering["default"])()]));
399
- };
400
-
401
- exports.buildPlugins = buildPlugins;
402
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/plugins/index.jsx"],"names":["log","SuperscriptIcon","SubscriptIcon","HeadingIcon","width","height","STYLES_MAP","h3","fontSize","fontWeight","blockquote","background","borderLeft","margin","padding","MarkHotkey","options","type","key","icon","tag","name","toolbar","isMark","onToggle","change","selection","value","includes","texts","document","getTextsAtRangeAsArray","onlyOneText","length","hasMark","sameMark","forEach","t","marks","getMarksAsArray","markIsThere","find","m","shouldContinue","startKey","endKey","anchorOffset","focusOffset","textNode","getNode","moveFocusTo","moveAnchorTo","text","activeMarks","entry","removeMark","newMark","Mark","create","addMark","toggleMark","renderMark","props","mark","node","data","jsonData","toJSON","K","additionalStyles","attributes","style","children","onKeyDown","event","metaKey","preventDefault","ALL_PLUGINS","DEFAULT_PLUGINS","filter","plug","ICON_MAP","undo","Undo","redo","Redo","UndoRedo","IconToUse","ariaLabel","onClick","onChange","EnterHandlingPlugin","Hotkeys","isSplitBlock","IS_IOS","isInVoid","collapseToStartOfNextText","splitBlock","range","newBlock","getClosestBlock","setNodeByKey","undefined","buildPlugins","activePlugins","customPlugins","opts","addIf","p","imagePlugin","image","onDelete","mathPlugin","math","respAreaPlugin","responseArea","cssPlugin","extraCSSRules","languageCharactersPlugins","languageCharacters","map","config","keyPadCharacterRef","setKeypadInteraction","tablePlugins","push","builtCustomPlugins","customPlugin","iconType","iconAlt","isValidEventName","eventName","regex","test","console","error","table","media","plugin","textAlign","shift","html"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,gCAAN,CAAZ;;AAEA,IAAMC,eAAe,GAAG,SAAlBA,eAAkB;AAAA,sBACtB;AAAK,IAAA,KAAK,EAAC,4BAAX;AAAwC,IAAA,MAAM,EAAC,MAA/C;AAAsD,IAAA,OAAO,EAAC,WAA9D;AAA0E,IAAA,KAAK,EAAC,MAAhF;AAAuF,IAAA,IAAI,EAAC;AAA5F,kBACE;AACE,IAAA,CAAC,EAAC,gNADJ;AAEE,IAAA,IAAI,EAAC;AAFP,IADF,CADsB;AAAA,CAAxB;;AASA,IAAMC,aAAa,GAAG,SAAhBA,aAAgB;AAAA,sBACpB;AAAK,IAAA,KAAK,EAAC,4BAAX;AAAwC,IAAA,MAAM,EAAC,MAA/C;AAAsD,IAAA,OAAO,EAAC,WAA9D;AAA0E,IAAA,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AK;AAAEzF,IAAAA,GAAG,EAAE,GAAP;AAAYD,IAAAA,IAAI,EAAE,SAAlB;AAA6BE,IAAAA,IAAI,eAAE,gCAAC,8BAAD;AAAnC,GAAL,CAAlB,CA5BA,EA6BLwF,KAAK,CAAC,MAAD,EAASrB,QAAQ,CAAC,MAAD,CAAjB,CA7BA,EA8BLqB,KAAK,CAAC,MAAD,EAASrB,QAAQ,CAAC,MAAD,CAAjB,CA9BA,EA+BL,yBAAcoB,IAAI,CAACpF,OAAnB,CA/BK,EAgCL,gCAAgB;AAAEsH,IAAAA,KAAK,EAAE;AAAT,GAAhB,CAhCK,GAiCFd,kBAjCE,GAkCLnB,KAAK,CAAC,cAAD,EAAiBO,cAAjB,CAlCA,EAmCLE,SAnCK,EAoCLT,KAAK,CAAC,MAAD,EAAS,sBAAWD,IAAI,CAACmC,IAAhB,CAAT,CApCA,EAqCLlD,mBAAmB,EArCd,EAsCL,4BAtCK,GAAP;AAwCD,CAlGM","sourcesContent":["import Hotkeys from 'slate-hotkeys';\nimport { IS_IOS } from 'slate-dev-environment';\nimport { Mark } from 'slate';\nimport Bold from '@material-ui/icons/FormatBold';\nimport FormatQuote from '@material-ui/icons/FormatQuote';\n//import Code from '@material-ui/icons/Code';\nimport BulletedListIcon from '@material-ui/icons/FormatListBulleted';\nimport NumberedListIcon from '@material-ui/icons/FormatListNumbered';\nimport Redo from '@material-ui/icons/Redo';\nimport Undo from '@material-ui/icons/Undo';\nimport ImagePlugin from './image';\nimport MediaPlugin from './media';\nimport CharactersPlugin from './characters';\nimport Italic from '@material-ui/icons/FormatItalic';\nimport MathPlugin from './math';\nimport React from 'react';\nimport Strikethrough from '@material-ui/icons/FormatStrikethrough';\nimport ToolbarPlugin from './toolbar';\nimport Underline from '@material-ui/icons/FormatUnderlined';\nimport compact from 'lodash/compact';\nimport isEmpty from 'lodash/isEmpty';\nimport SoftBreakPlugin from 'slate-soft-break';\nimport debug from 'debug';\nimport List from './list';\nimport TablePlugin from './table';\nimport RespAreaPlugin from './respArea';\nimport HtmlPlugin from './html';\nimport CSSPlugin from './css';\nimport CustomPlugin from './customPlugin';\nimport RenderingPlugin from './rendering';\nimport TextAlign from './textAlign';\n\nconst log = debug('@pie-lib:editable-html:plugins');\n\nconst SuperscriptIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"none\">\n <path\n d=\"M22,7h-2v1h3v1h-4V7c0-0.55,0.45-1,1-1h2V5h-3V4h3c0.55,0,1,0.45,1,1v1C23,6.55,22.55,7,22,7z M5.88,20h2.66l3.4-5.42h0.12 l3.4,5.42h2.66l-4.65-7.27L17.81,6h-2.68l-3.07,4.99h-0.12L8.85,6H6.19l4.32,6.73L5.88,20z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n\nconst SubscriptIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\" fill=\"none\">\n <path\n d=\"M22,18h-2v1h3v1h-4v-2c0-0.55,0.45-1,1-1h2v-1h-3v-1h3c0.55,0,1,0.45,1,1v1C23,17.55,22.55,18,22,18z M5.88,18h2.66 l3.4-5.42h0.12l3.4,5.42h2.66l-4.65-7.27L17.81,4h-2.68l-3.07,4.99h-0.12L8.85,4H6.19l4.32,6.73L5.88,18z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n\nconst HeadingIcon = () => (\n <svg\n width=\"30\"\n height=\"28\"\n viewBox=\"0 0 30 28\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n style={{ width: '20px', height: '18px' }}\n >\n <path\n d=\"M27 4V24H29C29.5 24 30 24.5 30 25V27C30 27.5625 29.5 28 29 28H19C18.4375 28 18 27.5625 18 27V25C18 24.5 18.4375 24 19 24H21V16H9V24H11C11.5 24 12 24.5 12 25V27C12 27.5625 11.5 28 11 28H1C0.4375 28 0 27.5625 0 27V25C0 24.5 0.4375 24 1 24H3V4H1C0.4375 4 0 3.5625 0 3V1C0 0.5 0.4375 0 1 0H11C11.5 0 12 0.5 12 1V3C12 3.5625 11.5 4 11 4H9V12H21V4H19C18.4375 4 18 3.5625 18 3V1C18 0.5 18.4375 0 19 0H29C29.5 0 30 0.5 30 1V3C30 3.5625 29.5 4 29 4H27Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\nconst STYLES_MAP = {\n h3: {\n fontSize: 'inherit',\n fontWeight: 'inherit',\n },\n blockquote: {\n background: '#f9f9f9',\n borderLeft: '5px solid #ccc',\n margin: '1.5em 10px',\n padding: '.5em 10px',\n },\n};\n\nfunction MarkHotkey(options) {\n const { type, key, icon, tag } = options;\n\n // Return our \"plugin\" object, containing the `onKeyDown` handler.\n return {\n name: type,\n toolbar: {\n isMark: true,\n type,\n icon,\n onToggle: (change) => {\n log('[onToggleMark] type: ', type);\n const { selection } = change.value;\n\n if (['blockquote', 'h3'].includes(type)) {\n const texts = change.value.document.getTextsAtRangeAsArray(selection);\n const onlyOneText = texts.length === 1;\n let hasMark = false;\n let sameMark = true;\n\n texts.forEach((t) => {\n const marks = t.getMarksAsArray();\n const markIsThere = marks.find((m) => m.type === type);\n\n if (!markIsThere) {\n // not all texts have this mark\n sameMark = false;\n } else {\n // at least one mark\n hasMark = true;\n }\n });\n\n const shouldContinue = onlyOneText || sameMark || !hasMark;\n\n if (!shouldContinue) {\n return change;\n }\n\n if (selection.startKey === selection.endKey && selection.anchorOffset === selection.focusOffset) {\n const textNode = change.value.document.getNode(selection.startKey);\n\n // select the whole line if there is no selection\n change.moveFocusTo(textNode.key, 0).moveAnchorTo(textNode.key, textNode.text.length);\n\n // remove toggle\n const hasMark = change.value.activeMarks.find((entry) => {\n return entry.type === type;\n });\n\n if (hasMark) {\n change.removeMark(hasMark);\n } else {\n const newMark = Mark.create(type);\n\n change.addMark(newMark);\n }\n\n // move focus to end of text\n return change\n .moveFocusTo(textNode.key, textNode.text.length)\n .moveAnchorTo(textNode.key, textNode.text.length);\n }\n }\n\n return change.toggleMark(type);\n },\n },\n renderMark(props) {\n if (props.mark.type === type) {\n const { data } = props.node || {};\n const jsonData = data?.toJSON() || {};\n const K = tag || type;\n const additionalStyles = STYLES_MAP[K];\n\n if (additionalStyles) {\n if (!jsonData.attributes) {\n jsonData.attributes = {};\n }\n\n jsonData.attributes.style = {\n ...jsonData.attributes.style,\n ...additionalStyles,\n };\n }\n\n return <K {...jsonData.attributes}>{props.children}</K>;\n }\n },\n onKeyDown(event, change) {\n // Check that the key pressed matches our `key` option.\n if (!event.metaKey || event.key != key) return;\n\n // Prevent the default characters from being inserted.\n event.preventDefault();\n\n // Toggle the mark `type`.\n change.toggleMark(type);\n return true;\n },\n };\n}\n\nexport const ALL_PLUGINS = [\n 'bold',\n // 'code',\n 'html',\n 'extraCSSRules',\n 'italic',\n 'underline',\n 'strikethrough',\n 'bulleted-list',\n 'numbered-list',\n 'image',\n 'math',\n 'languageCharacters',\n 'text-align',\n 'blockquote',\n 'h3',\n 'table',\n 'video',\n 'audio',\n 'responseArea',\n 'redo',\n 'undo',\n 'superscript',\n 'subscript',\n];\n\nexport const DEFAULT_PLUGINS = ALL_PLUGINS.filter((plug) => !['responseArea', 'h3', 'blockquote'].includes(plug));\n\nconst ICON_MAP = {\n undo: Undo,\n redo: Redo,\n};\nfunction UndoRedo(type) {\n const IconToUse = ICON_MAP[type];\n\n return {\n name: type,\n toolbar: {\n type,\n icon: <IconToUse />,\n ariaLabel: type === 'undo' ? 'Undo (revert the last action)' : 'Redo (reapply the last undone action)',\n onClick: (value, onChange) => {\n const change = value.change();\n\n onChange(change[type]());\n },\n },\n };\n}\n\nfunction EnterHandlingPlugin() {\n return {\n name: 'enterHandling',\n onKeyDown: (event, change) => {\n if (Hotkeys.isSplitBlock(event) && !IS_IOS) {\n if (change.value.isInVoid) {\n return change.collapseToStartOfNextText();\n }\n\n change.splitBlock();\n\n const range = change.value.selection;\n const newBlock = change.value.document.getClosestBlock(range.startKey);\n\n if (newBlock.type !== 'paragraph') {\n change.setNodeByKey(newBlock.key, {\n type: 'paragraph',\n });\n }\n\n return change;\n }\n\n return undefined;\n },\n };\n}\n\nexport const buildPlugins = (activePlugins, customPlugins, opts) => {\n log('[buildPlugins] opts: ', opts);\n\n activePlugins = activePlugins || DEFAULT_PLUGINS;\n\n const addIf = (key, p) => activePlugins.includes(key) && p;\n\n const imagePlugin = opts.image && opts.image.onDelete && ImagePlugin(opts.image);\n const mathPlugin = MathPlugin(opts.math);\n const respAreaPlugin =\n opts.responseArea && opts.responseArea.type && RespAreaPlugin(opts.responseArea, compact([mathPlugin]));\n const cssPlugin = !isEmpty(opts.extraCSSRules) && CSSPlugin(opts.extraCSSRules);\n\n const languageCharactersPlugins = (opts?.languageCharacters || []).map((config) =>\n CharactersPlugin({\n ...config,\n keyPadCharacterRef: opts.keyPadCharacterRef,\n setKeypadInteraction: opts.setKeypadInteraction,\n }),\n );\n\n const tablePlugins = [imagePlugin, mathPlugin, respAreaPlugin, ...languageCharactersPlugins];\n\n if (opts.responseArea && opts.responseArea.type === 'math-templated') {\n tablePlugins.push(respAreaPlugin);\n }\n\n let builtCustomPlugins = [];\n\n customPlugins.forEach((customPlugin) => {\n const { event, icon, iconType, iconAlt } = customPlugin || {};\n\n function isValidEventName(eventName) {\n // Check if eventName is a non-empty string\n if (typeof eventName !== 'string' || eventName.length === 0) {\n return false;\n }\n\n // Regular expression to match valid event names (only alphanumeric characters and underscore)\n const regex = /^[a-zA-Z0-9_]+$/;\n\n // Check if the eventName matches the regular expression\n return regex.test(eventName);\n }\n\n if (!isValidEventName(event)) {\n console.error(`The event name: ${event} is not a valid event name!`);\n return;\n }\n\n if (!icon && !iconType && !iconAlt) {\n console.error('Your custom button requires icon, iconType and iconAlt');\n return;\n }\n\n builtCustomPlugins.push(CustomPlugin('custom-plugin', customPlugin));\n });\n\n return compact([\n addIf('table', TablePlugin(opts.table, compact(tablePlugins))),\n addIf('bold', MarkHotkey({ key: 'b', type: 'bold', icon: <Bold />, tag: 'strong' })),\n // addIf('code', MarkHotkey({ key: '`', type: 'code', icon: <Code /> })),\n addIf('italic', MarkHotkey({ key: 'i', type: 'italic', icon: <Italic />, tag: 'em' })),\n addIf(\n 'strikethrough',\n MarkHotkey({\n key: '~',\n type: 'strikethrough',\n icon: <Strikethrough />,\n tag: 'del',\n }),\n ),\n addIf('underline', MarkHotkey({ key: 'u', type: 'underline', icon: <Underline />, tag: 'u' })),\n // icon should be modifies accordingly\n addIf('superscript', MarkHotkey({ type: 'sup', icon: <SuperscriptIcon />, tag: 'sup' })),\n // icon should be modifies accordingly\n addIf('subscript', MarkHotkey({ type: 'sub', icon: <SubscriptIcon />, tag: 'sub' })),\n addIf('image', imagePlugin),\n addIf('video', MediaPlugin('video', opts.media)),\n addIf('audio', MediaPlugin('audio', opts.media)),\n addIf('math', mathPlugin),\n ...languageCharactersPlugins.map((plugin) => addIf('languageCharacters', plugin)),\n addIf('text-align', TextAlign(opts.textAlign)),\n addIf('blockquote', MarkHotkey({ key: 'q', type: 'blockquote', icon: <FormatQuote />, tag: 'blockquote' })),\n addIf('h3', MarkHotkey({ key: 'h3', type: 'h3', icon: <HeadingIcon />, tag: 'h3' })),\n addIf('bulleted-list', List({ key: 'l', type: 'ul_list', icon: <BulletedListIcon /> })),\n addIf('numbered-list', List({ key: 'n', type: 'ol_list', icon: <NumberedListIcon /> })),\n addIf('undo', UndoRedo('undo')),\n addIf('redo', UndoRedo('redo')),\n ToolbarPlugin(opts.toolbar),\n SoftBreakPlugin({ shift: true }),\n ...builtCustomPlugins,\n addIf('responseArea', respAreaPlugin),\n cssPlugin,\n addIf('html', HtmlPlugin(opts.html)),\n EnterHandlingPlugin(),\n RenderingPlugin(),\n ]);\n};\n"],"file":"index.js"}