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

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 +1083 -2394
  2. package/configure/CHANGELOG.md +894 -2092
  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 +569 -1432
  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,397 +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"] = CSSPlugin;
9
- exports.removeDialogs = void 0;
10
-
11
- var _react = _interopRequireDefault(require("react"));
12
-
13
- var _reactDom = _interopRequireDefault(require("react-dom"));
14
-
15
- var _List = _interopRequireDefault(require("@material-ui/core/List"));
16
-
17
- var _slate = require("slate");
18
-
19
- var _immutable = _interopRequireDefault(require("immutable"));
20
-
21
- var _ListItem = _interopRequireDefault(require("@material-ui/core/ListItem"));
22
-
23
- var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
24
-
25
- var _debug = _interopRequireDefault(require("debug"));
26
-
27
- var _icons = _interopRequireDefault(require("./icons"));
28
-
29
- var log = (0, _debug["default"])('@pie-lib:editable-html:plugins:characters');
30
-
31
- var removeDialogs = function removeDialogs() {
32
- var prevDialogs = document.querySelectorAll('.insert-css-dialog');
33
- log('[characters:removeDialogs]');
34
- prevDialogs.forEach(function (s) {
35
- return s.remove();
36
- });
37
- };
38
-
39
- exports.removeDialogs = removeDialogs;
40
-
41
- var insertDialog = function insertDialog(_ref) {
42
- var _parentNode$data, _parentNode$data$get;
43
-
44
- var editorDOM = _ref.editorDOM,
45
- value = _ref.value,
46
- callback = _ref.callback,
47
- opts = _ref.opts,
48
- textNode = _ref.textNode,
49
- parentNode = _ref.parentNode;
50
- var newEl = document.createElement('div');
51
- log('[characters:insertDialog]');
52
- removeDialogs();
53
- newEl.className = 'insert-css-dialog';
54
- var popoverEl;
55
-
56
- var closePopOver = function closePopOver() {
57
- if (popoverEl) {
58
- popoverEl.remove();
59
- }
60
- };
61
-
62
- var firstCallMade = false;
63
-
64
- var listener = function listener(e) {
65
- // this will be triggered right after setting it because
66
- // this toolbar is added on the mousedown event
67
- // so right after mouseup, the click will be triggered
68
- if (firstCallMade) {
69
- var focusIsInModals = newEl.contains(e.target) || popoverEl && popoverEl.contains(e.target);
70
- var focusIsInEditor = editorDOM.contains(e.target);
71
-
72
- if (!(focusIsInModals || focusIsInEditor)) {
73
- handleClose();
74
- }
75
- } else {
76
- firstCallMade = true;
77
- }
78
- };
79
-
80
- var handleClose = function handleClose() {
81
- callback(undefined, true);
82
- newEl.remove();
83
- closePopOver();
84
- document.body.removeEventListener('click', listener);
85
- };
86
-
87
- var handleChange = function handleChange(name) {
88
- callback(name, true);
89
- newEl.remove();
90
- closePopOver();
91
- document.body.removeEventListener('click', listener);
92
- };
93
-
94
- var selectedText = textNode.text.slice(value.selection.anchorOffset, value.selection.focusOffset);
95
- var parentNodeClass = parentNode === null || parentNode === void 0 ? void 0 : (_parentNode$data = parentNode.data) === null || _parentNode$data === void 0 ? void 0 : (_parentNode$data$get = _parentNode$data.get('attributes')) === null || _parentNode$data$get === void 0 ? void 0 : _parentNode$data$get["class"];
96
-
97
- var createHTML = function createHTML(name) {
98
- var html = "<span class=\"".concat(name, "\">").concat(selectedText, "</span>");
99
-
100
- if (parentNode) {
101
- var tag;
102
-
103
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.object) === 'inline') {
104
- tag = 'span';
105
- }
106
-
107
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.object) === 'block') {
108
- tag = 'div';
109
- }
110
-
111
- html = "<".concat(tag, " class=\"").concat(parentNodeClass, "\">").concat(parentNode.text.slice(0, value.selection.anchorOffset)).concat(html).concat(parentNode.text.slice(value.selection.focusOffset), "</").concat(tag, ">");
112
- }
113
-
114
- return html;
115
- };
116
-
117
- var el = /*#__PURE__*/_react["default"].createElement("div", {
118
- style: {
119
- background: 'white',
120
- height: 500,
121
- padding: 20,
122
- overflow: 'hidden',
123
- display: 'flex',
124
- flexFlow: 'column'
125
- }
126
- }, /*#__PURE__*/_react["default"].createElement("h2", null, "Please choose a css class"), parentNodeClass && /*#__PURE__*/_react["default"].createElement("div", null, "The current parent has this class ", parentNodeClass), /*#__PURE__*/_react["default"].createElement(_List["default"], {
127
- component: "nav",
128
- style: {
129
- overflow: 'scroll'
130
- }
131
- }, opts.names.map(function (name, i) {
132
- return /*#__PURE__*/_react["default"].createElement(_ListItem["default"], {
133
- key: "rule-".concat(i),
134
- button: true,
135
- onClick: function onClick() {
136
- return handleChange(name);
137
- }
138
- }, /*#__PURE__*/_react["default"].createElement("div", {
139
- style: {
140
- marginRight: 20
141
- }
142
- }, name), /*#__PURE__*/_react["default"].createElement("div", {
143
- dangerouslySetInnerHTML: {
144
- __html: createHTML(name)
145
- }
146
- }));
147
- })));
148
-
149
- _reactDom["default"].render(el, newEl, function () {
150
- var cursorItem = document.querySelector("[data-key=\"".concat(value.anchorKey, "\"]"));
151
-
152
- if (cursorItem) {
153
- var bodyRect = editorDOM.parentElement.parentElement.parentElement.getBoundingClientRect();
154
- var boundRect = cursorItem.getBoundingClientRect();
155
- editorDOM.parentElement.parentElement.parentElement.appendChild(newEl); // when height of toolbar exceeds screen - can happen in scrollable contexts
156
-
157
- var additionalTopOffset = 0;
158
-
159
- if (boundRect.y < newEl.offsetHeight) {
160
- additionalTopOffset = newEl.offsetHeight - boundRect.y + 10;
161
- }
162
-
163
- newEl.style.maxWidth = '500px';
164
- newEl.style.position = 'absolute';
165
- newEl.style.top = 0;
166
- newEl.style.zIndex = 99999;
167
- var leftValue = "".concat(boundRect.left + Math.abs(bodyRect.left) + cursorItem.offsetWidth + 10, "px");
168
- var rightValue = "".concat(boundRect.x, "px");
169
- newEl.style.left = leftValue;
170
- var leftAlignedWidth = newEl.offsetWidth;
171
- newEl.style.left = 'unset';
172
- newEl.style.right = rightValue;
173
- var rightAlignedWidth = newEl.offsetWidth;
174
- newEl.style.left = 'unset';
175
- newEl.style.right = 'unset';
176
-
177
- if (leftAlignedWidth >= rightAlignedWidth) {
178
- newEl.style.left = leftValue;
179
- } else {
180
- newEl.style.right = rightValue;
181
- }
182
-
183
- document.body.addEventListener('click', listener);
184
- }
185
- });
186
- };
187
-
188
- var findParentNodeInfo = function findParentNodeInfo(value, textNode) {
189
- var _closestInline$nodes, _closestBlock$nodes;
190
-
191
- var closestInline = value.document.getClosestInline(value.selection.endKey);
192
- var closestBlock = value.document.getClosestBlock(value.selection.endKey);
193
- var nodeToUse = null;
194
-
195
- if (closestInline !== null && closestInline !== void 0 && (_closestInline$nodes = closestInline.nodes) !== null && _closestInline$nodes !== void 0 && _closestInline$nodes.find(function (n) {
196
- return n.key === textNode.key;
197
- })) {
198
- nodeToUse = closestInline;
199
- }
200
-
201
- if (closestBlock !== null && closestBlock !== void 0 && (_closestBlock$nodes = closestBlock.nodes) !== null && _closestBlock$nodes !== void 0 && _closestBlock$nodes.find(function (n) {
202
- return n.key === textNode.key;
203
- })) {
204
- nodeToUse = closestBlock;
205
- }
206
-
207
- return nodeToUse;
208
- };
209
- /**
210
- * Find the node that has a class attribute and return it.
211
- * Keeping this in case the implementation of classes needs to be changed
212
- * @param value
213
- * @param opts
214
- * @returns {*}
215
- */
216
-
217
-
218
- var getNodeWithClass = function getNodeWithClass(value, opts) {
219
- var _blocksAtRange$, _inlinesAtRange$, _blockData$attributes, _inlineData$attribute;
220
-
221
- var blocksAtRange = value.document.getBlocksAtRangeAsArray(value.selection);
222
- var inlinesAtRange = value.document.getInlinesAtRangeAsArray(value.selection);
223
- var blockData = ((_blocksAtRange$ = blocksAtRange[0]) === null || _blocksAtRange$ === void 0 ? void 0 : _blocksAtRange$.data.toJSON()) || {};
224
- var inlineData = ((_inlinesAtRange$ = inlinesAtRange[0]) === null || _inlinesAtRange$ === void 0 ? void 0 : _inlinesAtRange$.data.toJSON()) || {};
225
-
226
- if (!((_blockData$attributes = blockData.attributes) !== null && _blockData$attributes !== void 0 && _blockData$attributes["class"]) && !((_inlineData$attribute = inlineData.attributes) !== null && _inlineData$attribute !== void 0 && _inlineData$attribute["class"])) {
227
- return null;
228
- }
229
-
230
- var _ref2 = blockData.attributes || {},
231
- blockClass = _ref2["class"];
232
-
233
- var _ref3 = inlineData.attributes || {},
234
- inlineClass = _ref3["class"];
235
-
236
- var inlineHasClass = opts.names.find(function (name) {
237
- return inlineClass.includes(name);
238
- });
239
-
240
- if (inlineHasClass) {
241
- return inlinesAtRange[0];
242
- }
243
-
244
- var blockHasClass = opts.names.find(function (name) {
245
- return blockClass.includes(name);
246
- });
247
-
248
- if (blockHasClass) {
249
- return blocksAtRange[0];
250
- }
251
-
252
- return null;
253
- };
254
- /**
255
- * Plugin in order to be able to add a css clas that is provided through the model
256
- * on a text element. Works like a mark (bold, italic etc.).
257
- * @param opts
258
- * @constructor
259
- */
260
-
261
-
262
- function CSSPlugin(opts) {
263
- var plugin = {
264
- name: 'extraCSSRules',
265
- toolbar: {
266
- isMark: true,
267
- icon: /*#__PURE__*/_react["default"].createElement(_icons["default"], null),
268
- ariaLabel: 'CSS editor',
269
- type: 'css',
270
- onToggle: function onToggle(change) {
271
- var type = 'css';
272
- var hasMark = change.value.activeMarks.find(function (entry) {
273
- return entry.type === type;
274
- });
275
-
276
- if (hasMark) {
277
- change.removeMark(hasMark);
278
- } else {
279
- var newMark = _slate.Mark.create(type);
280
-
281
- change.addMark(newMark);
282
- }
283
-
284
- return change;
285
- },
286
- onClick: function onClick(value, onChange, getFocusedValue) {
287
- var type = 'css';
288
- var hasMark = value.activeMarks.find(function (entry) {
289
- return entry.type === type;
290
- });
291
- var change = value.change();
292
-
293
- if (hasMark) {
294
- change.removeMark(hasMark);
295
- onChange(change);
296
- return;
297
- } // keeping this if implementation needs to be changed to regular blocks instead of marks
298
- // let nodeWithClass = getNodeWithClass(value, opts);
299
- //
300
- // if (nodeWithClass) {
301
- // const nodeAttributes = nodeWithClass.data.get('attributes');
302
- //
303
- // opts.names.forEach((name) => {
304
- // if (nodeAttributes.class.includes(name)) {
305
- // nodeAttributes.class = nodeAttributes.class.replace(name, '');
306
- // }
307
- // });
308
- //
309
- // // keeping only one space between classes
310
- // nodeAttributes.class = nodeAttributes.class.replace(/ +/g, ' ');
311
- //
312
- // nodeWithClass.data.set('attributes', nodeAttributes);
313
- //
314
- // let change = value.change();
315
- // change.replaceNodeByKey(nodeWithClass.key, nodeWithClass);
316
- //
317
- // onChange(change);
318
- // return;
319
- // }
320
-
321
-
322
- var editorDOM = document.querySelector("[data-key=\"".concat(value.document.key, "\"]"));
323
- var valueToUse = value;
324
-
325
- var callback = function callback(className, focus) {
326
- if (getFocusedValue) {
327
- valueToUse = getFocusedValue() || valueToUse;
328
- }
329
-
330
- if (className) {
331
- var _change = valueToUse.change();
332
-
333
- var newMark = _slate.Mark.create({
334
- object: 'mark',
335
- type: 'css',
336
- data: {
337
- attributes: {
338
- "class": className
339
- }
340
- }
341
- });
342
-
343
- _change.addMark(newMark); // keeping this if implementation needs to be changed to regular blocks instead of marks
344
- // change = change.wrapInline({ type: 'span', data: { attributes: { class: className } } });
345
- //
346
- // // change = change.splitBlockAtRange(adaptedRange);
347
- // //
348
- // // const newBlock = change.value.document.getFurthestBlock(change.value.selection.endKey);
349
- // //
350
- // // change = change.setNodeByKey(newBlock.key, { data: { attributes: { class: className } } });
351
- //
352
- // valueToUse = change.value;
353
- // log('[characters:insert]: ', value);
354
-
355
-
356
- onChange(_change);
357
- }
358
-
359
- log('[characters:click]');
360
-
361
- if (focus) {
362
- setTimeout(function () {
363
- if (editorDOM) {
364
- editorDOM.focus();
365
- }
366
- }, 0);
367
- }
368
- };
369
-
370
- var textNode = value.document.getTextsAtRangeAsArray(value.selection)[0];
371
-
372
- if (textNode) {
373
- var parentNode = findParentNodeInfo(value, textNode, opts);
374
- insertDialog({
375
- editorDOM: editorDOM,
376
- value: valueToUse,
377
- callback: callback,
378
- opts: opts,
379
- textNode: textNode,
380
- parentNode: parentNode
381
- });
382
- }
383
- }
384
- },
385
- renderMark: function renderMark(props) {
386
- if (props.mark.type === 'css') {
387
- var _ref4 = props.mark || {},
388
- data = _ref4.data;
389
-
390
- var jsonData = (data === null || data === void 0 ? void 0 : data.toJSON()) || {};
391
- return /*#__PURE__*/_react["default"].createElement("span", jsonData.attributes, props.children);
392
- }
393
- }
394
- };
395
- return plugin;
396
- }
397
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/css/index.jsx"],"names":["log","removeDialogs","prevDialogs","document","querySelectorAll","forEach","s","remove","insertDialog","editorDOM","value","callback","opts","textNode","parentNode","newEl","createElement","className","popoverEl","closePopOver","firstCallMade","listener","e","focusIsInModals","contains","target","focusIsInEditor","handleClose","undefined","body","removeEventListener","handleChange","name","selectedText","text","slice","selection","anchorOffset","focusOffset","parentNodeClass","data","get","createHTML","html","tag","object","el","background","height","padding","overflow","display","flexFlow","names","map","i","marginRight","__html","ReactDOM","render","cursorItem","querySelector","anchorKey","bodyRect","parentElement","getBoundingClientRect","boundRect","appendChild","additionalTopOffset","y","offsetHeight","style","maxWidth","position","top","zIndex","leftValue","left","Math","abs","offsetWidth","rightValue","x","leftAlignedWidth","right","rightAlignedWidth","addEventListener","findParentNodeInfo","closestInline","getClosestInline","endKey","closestBlock","getClosestBlock","nodeToUse","nodes","find","n","key","getNodeWithClass","blocksAtRange","getBlocksAtRangeAsArray","inlinesAtRange","getInlinesAtRangeAsArray","blockData","toJSON","inlineData","attributes","blockClass","inlineClass","inlineHasClass","includes","blockHasClass","CSSPlugin","plugin","toolbar","isMark","icon","ariaLabel","type","onToggle","change","hasMark","activeMarks","entry","removeMark","newMark","Mark","create","addMark","onClick","onChange","getFocusedValue","valueToUse","focus","setTimeout","getTextsAtRangeAsArray","renderMark","props","mark","jsonData","children"],"mappings":";;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,GAAG,GAAG,uBAAM,2CAAN,CAAZ;;AAEO,IAAMC,aAAa,GAAG,SAAhBA,aAAgB,GAAM;AACjC,MAAMC,WAAW,GAAGC,QAAQ,CAACC,gBAAT,CAA0B,oBAA1B,CAApB;AAEAJ,EAAAA,GAAG,CAAC,4BAAD,CAAH;AACAE,EAAAA,WAAW,CAACG,OAAZ,CAAoB,UAACC,CAAD;AAAA,WAAOA,CAAC,CAACC,MAAF,EAAP;AAAA,GAApB;AACD,CALM;;;;AAOP,IAAMC,YAAY,GAAG,SAAfA,YAAe,OAAgE;AAAA;;AAAA,MAA7DC,SAA6D,QAA7DA,SAA6D;AAAA,MAAlDC,KAAkD,QAAlDA,KAAkD;AAAA,MAA3CC,QAA2C,QAA3CA,QAA2C;AAAA,MAAjCC,IAAiC,QAAjCA,IAAiC;AAAA,MAA3BC,QAA2B,QAA3BA,QAA2B;AAAA,MAAjBC,UAAiB,QAAjBA,UAAiB;AACnF,MAAMC,KAAK,GAAGZ,QAAQ,CAACa,aAAT,CAAuB,KAAvB,CAAd;AAEAhB,EAAAA,GAAG,CAAC,2BAAD,CAAH;AAEAC,EAAAA,aAAa;AAEbc,EAAAA,KAAK,CAACE,SAAN,GAAkB,mBAAlB;AAEA,MAAIC,SAAJ;;AAEA,MAAMC,YAAY,GAAG,SAAfA,YAAe,GAAM;AACzB,QAAID,SAAJ,EAAe;AACbA,MAAAA,SAAS,CAACX,MAAV;AACD;AACF,GAJD;;AAMA,MAAIa,aAAa,GAAG,KAApB;;AAEA,MAAMC,QAAQ,GAAG,SAAXA,QAAW,CAACC,CAAD,EAAO;AACtB;AACA;AACA;AACA,QAAIF,aAAJ,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R;;AACA,YAAMmG,QAAQ,GAAG,CAAAnG,IAAI,SAAJ,IAAAA,IAAI,WAAJ,YAAAA,IAAI,CAAEgE,MAAN,OAAkB,EAAnC;AAEA,4BAAO,wCAAUmC,QAAQ,CAACjC,UAAnB,EAAgC+B,KAAK,CAACG,QAAtC,CAAP;AACD;AACF;AA3HY,GAAf;AA8HA,SAAO3B,MAAP;AACD","sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport List from '@material-ui/core/List';\nimport { Leaf, Mark } from 'slate';\nimport Immutable from 'immutable';\nimport ListItem from '@material-ui/core/ListItem';\nimport isEmpty from 'lodash/isEmpty';\nimport debug from 'debug';\nimport CssIcon from './icons';\n\nconst log = debug('@pie-lib:editable-html:plugins:characters');\n\nexport const removeDialogs = () => {\n const prevDialogs = document.querySelectorAll('.insert-css-dialog');\n\n log('[characters:removeDialogs]');\n prevDialogs.forEach((s) => s.remove());\n};\n\nconst insertDialog = ({ editorDOM, value, callback, opts, textNode, parentNode }) => {\n const newEl = document.createElement('div');\n\n log('[characters:insertDialog]');\n\n removeDialogs();\n\n newEl.className = 'insert-css-dialog';\n\n let popoverEl;\n\n const closePopOver = () => {\n if (popoverEl) {\n popoverEl.remove();\n }\n };\n\n let firstCallMade = false;\n\n const listener = (e) => {\n // this will be triggered right after setting it because\n // this toolbar is added on the mousedown event\n // so right after mouseup, the click will be triggered\n if (firstCallMade) {\n const focusIsInModals = newEl.contains(e.target) || (popoverEl && popoverEl.contains(e.target));\n const focusIsInEditor = editorDOM.contains(e.target);\n\n if (!(focusIsInModals || focusIsInEditor)) {\n handleClose();\n }\n } else {\n firstCallMade = true;\n }\n };\n\n const handleClose = () => {\n callback(undefined, true);\n newEl.remove();\n closePopOver();\n document.body.removeEventListener('click', listener);\n };\n\n const handleChange = (name) => {\n callback(name, true);\n newEl.remove();\n closePopOver();\n document.body.removeEventListener('click', listener);\n };\n\n const selectedText = textNode.text.slice(value.selection.anchorOffset, value.selection.focusOffset);\n const parentNodeClass = parentNode?.data?.get('attributes')?.class;\n const createHTML = (name) => {\n let html = `<span class=\"${name}\">${selectedText}</span>`;\n\n if (parentNode) {\n let tag;\n\n if (parentNode?.object === 'inline') {\n tag = 'span';\n }\n\n if (parentNode?.object === 'block') {\n tag = 'div';\n }\n\n html = `<${tag} class=\"${parentNodeClass}\">${parentNode.text.slice(\n 0,\n value.selection.anchorOffset,\n )}${html}${parentNode.text.slice(value.selection.focusOffset)}</${tag}>`;\n }\n\n return html;\n };\n\n const el = (\n <div\n style={{ background: 'white', height: 500, padding: 20, overflow: 'hidden', display: 'flex', flexFlow: 'column' }}\n >\n <h2>Please choose a css class</h2>\n {parentNodeClass && <div>The current parent has this class {parentNodeClass}</div>}\n <List component=\"nav\" style={{ overflow: 'scroll' }}>\n {opts.names.map((name, i) => (\n <ListItem key={`rule-${i}`} button onClick={() => handleChange(name)}>\n <div style={{ marginRight: 20 }}>{name}</div>\n <div\n dangerouslySetInnerHTML={{\n __html: createHTML(name),\n }}\n />\n </ListItem>\n ))}\n </List>\n </div>\n );\n\n ReactDOM.render(el, newEl, () => {\n const cursorItem = document.querySelector(`[data-key=\"${value.anchorKey}\"]`);\n\n if (cursorItem) {\n const bodyRect = editorDOM.parentElement.parentElement.parentElement.getBoundingClientRect();\n const boundRect = cursorItem.getBoundingClientRect();\n\n editorDOM.parentElement.parentElement.parentElement.appendChild(newEl);\n\n // when height of toolbar exceeds screen - can happen in scrollable contexts\n let additionalTopOffset = 0;\n if (boundRect.y < newEl.offsetHeight) {\n additionalTopOffset = newEl.offsetHeight - boundRect.y + 10;\n }\n\n newEl.style.maxWidth = '500px';\n newEl.style.position = 'absolute';\n newEl.style.top = 0;\n newEl.style.zIndex = 99999;\n\n const leftValue = `${boundRect.left + Math.abs(bodyRect.left) + cursorItem.offsetWidth + 10}px`;\n\n const rightValue = `${boundRect.x}px`;\n\n newEl.style.left = leftValue;\n\n const leftAlignedWidth = newEl.offsetWidth;\n\n newEl.style.left = 'unset';\n newEl.style.right = rightValue;\n\n const rightAlignedWidth = newEl.offsetWidth;\n\n newEl.style.left = 'unset';\n newEl.style.right = 'unset';\n\n if (leftAlignedWidth >= rightAlignedWidth) {\n newEl.style.left = leftValue;\n } else {\n newEl.style.right = rightValue;\n }\n\n document.body.addEventListener('click', listener);\n }\n });\n};\n\nconst findParentNodeInfo = (value, textNode) => {\n const closestInline = value.document.getClosestInline(value.selection.endKey);\n const closestBlock = value.document.getClosestBlock(value.selection.endKey);\n let nodeToUse = null;\n\n if (closestInline?.nodes?.find((n) => n.key === textNode.key)) {\n nodeToUse = closestInline;\n }\n\n if (closestBlock?.nodes?.find((n) => n.key === textNode.key)) {\n nodeToUse = closestBlock;\n }\n\n return nodeToUse;\n};\n\n/**\n * Find the node that has a class attribute and return it.\n * Keeping this in case the implementation of classes needs to be changed\n * @param value\n * @param opts\n * @returns {*}\n */\nconst getNodeWithClass = (value, opts) => {\n const blocksAtRange = value.document.getBlocksAtRangeAsArray(value.selection);\n const inlinesAtRange = value.document.getInlinesAtRangeAsArray(value.selection);\n const blockData = blocksAtRange[0]?.data.toJSON() || {};\n const inlineData = inlinesAtRange[0]?.data.toJSON() || {};\n\n if (!blockData.attributes?.class && !inlineData.attributes?.class) {\n return null;\n }\n\n const { class: blockClass } = blockData.attributes || {};\n const { class: inlineClass } = inlineData.attributes || {};\n const inlineHasClass = opts.names.find((name) => inlineClass.includes(name));\n\n if (inlineHasClass) {\n return inlinesAtRange[0];\n }\n\n const blockHasClass = opts.names.find((name) => blockClass.includes(name));\n\n if (blockHasClass) {\n return blocksAtRange[0];\n }\n\n return null;\n};\n\n/**\n * Plugin in order to be able to add a css clas that is provided through the model\n * on a text element. Works like a mark (bold, italic etc.).\n * @param opts\n * @constructor\n */\nexport default function CSSPlugin(opts) {\n const plugin = {\n name: 'extraCSSRules',\n toolbar: {\n isMark: true,\n icon: <CssIcon />,\n ariaLabel: 'CSS editor',\n type: 'css',\n onToggle: (change) => {\n const type = 'css';\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 return change;\n },\n onClick: (value, onChange, getFocusedValue) => {\n const type = 'css';\n const hasMark = value.activeMarks.find((entry) => {\n return entry.type === type;\n });\n\n let change = value.change();\n\n if (hasMark) {\n change.removeMark(hasMark);\n onChange(change);\n return;\n }\n\n // keeping this if implementation needs to be changed to regular blocks instead of marks\n // let nodeWithClass = getNodeWithClass(value, opts);\n //\n // if (nodeWithClass) {\n // const nodeAttributes = nodeWithClass.data.get('attributes');\n //\n // opts.names.forEach((name) => {\n // if (nodeAttributes.class.includes(name)) {\n // nodeAttributes.class = nodeAttributes.class.replace(name, '');\n // }\n // });\n //\n // // keeping only one space between classes\n // nodeAttributes.class = nodeAttributes.class.replace(/ +/g, ' ');\n //\n // nodeWithClass.data.set('attributes', nodeAttributes);\n //\n // let change = value.change();\n // change.replaceNodeByKey(nodeWithClass.key, nodeWithClass);\n //\n // onChange(change);\n // return;\n // }\n\n const editorDOM = document.querySelector(`[data-key=\"${value.document.key}\"]`);\n let valueToUse = value;\n\n const callback = (className, focus) => {\n if (getFocusedValue) {\n valueToUse = getFocusedValue() || valueToUse;\n }\n\n if (className) {\n let change = valueToUse.change();\n\n const newMark = Mark.create({\n object: 'mark',\n type: 'css',\n data: {\n attributes: {\n class: className,\n },\n },\n });\n\n change.addMark(newMark);\n // keeping this if implementation needs to be changed to regular blocks instead of marks\n // change = change.wrapInline({ type: 'span', data: { attributes: { class: className } } });\n //\n // // change = change.splitBlockAtRange(adaptedRange);\n // //\n // // const newBlock = change.value.document.getFurthestBlock(change.value.selection.endKey);\n // //\n // // change = change.setNodeByKey(newBlock.key, { data: { attributes: { class: className } } });\n //\n // valueToUse = change.value;\n // log('[characters:insert]: ', value);\n onChange(change);\n }\n\n log('[characters:click]');\n\n if (focus) {\n setTimeout(() => {\n if (editorDOM) {\n editorDOM.focus();\n }\n }, 0);\n }\n };\n const textNode = value.document.getTextsAtRangeAsArray(value.selection)[0];\n\n if (textNode) {\n const parentNode = findParentNodeInfo(value, textNode, opts);\n\n insertDialog({ editorDOM, value: valueToUse, callback, opts, textNode, parentNode });\n }\n },\n },\n renderMark(props) {\n if (props.mark.type === 'css') {\n const { data } = props.mark || {};\n const jsonData = data?.toJSON() || {};\n\n return <span {...jsonData.attributes}>{props.children}</span>;\n }\n },\n };\n\n return plugin;\n}\n"],"file":"index.js"}
@@ -1,114 +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.ICON_TYPE = exports.CONTENT_TYPE = void 0;
9
- exports["default"] = CustomPlugin;
10
-
11
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
12
-
13
- var _react = _interopRequireDefault(require("react"));
14
-
15
- var _serialization = require("../../serialization");
16
-
17
- 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; }
18
-
19
- 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; }
20
-
21
- // We're possibly going to have to support content types, so starting it as an enum
22
- var CONTENT_TYPE = {
23
- FRAGMENT: 'FRAGMENT'
24
- }; // We're possibly going to have to support multiple icon types, so starting it as an enum
25
-
26
- exports.CONTENT_TYPE = CONTENT_TYPE;
27
- var ICON_TYPE = {
28
- SVG: 'SVG'
29
- };
30
- exports.ICON_TYPE = ICON_TYPE;
31
-
32
- var getIcon = function getIcon(customPluginProps) {
33
- var svg = customPluginProps.icon;
34
-
35
- switch (customPluginProps.iconType) {
36
- case ICON_TYPE.SVG:
37
- return /*#__PURE__*/_react["default"].createElement("span", {
38
- style: {
39
- width: 28,
40
- height: 28
41
- },
42
- dangerouslySetInnerHTML: {
43
- __html: svg
44
- }
45
- });
46
-
47
- default:
48
- return /*#__PURE__*/_react["default"].createElement("span", null, customPluginProps.iconAlt);
49
- }
50
- };
51
-
52
- function CustomPlugin(type, customPluginProps) {
53
- var toolbar = {
54
- icon: getIcon(customPluginProps),
55
- onClick: function onClick(value, onChange, getFocusedValue) {
56
- var editorDOM = document.querySelector("[data-key=\"".concat(value.document.key, "\"]"));
57
- var valueToUse = value;
58
-
59
- var callback = function callback(_ref, focus) {
60
- var customContent = _ref.customContent,
61
- contentType = _ref.contentType;
62
- valueToUse = getFocusedValue();
63
-
64
- switch (contentType) {
65
- case CONTENT_TYPE.FRAGMENT:
66
- default:
67
- {
68
- var contentValue = (0, _serialization.htmlToValue)(customContent);
69
- var change = valueToUse.change().insertFragment(contentValue.document);
70
- valueToUse = change.value;
71
- onChange(change);
72
- break;
73
- }
74
- }
75
-
76
- if (focus) {
77
- if (editorDOM) {
78
- editorDOM.focus();
79
- }
80
- }
81
- }; // NOTE: the emitted event (custom event named by client) will be suffixed with "PIE-"
82
-
83
-
84
- window.dispatchEvent(new CustomEvent("PIE-".concat(customPluginProps.event), {
85
- detail: _objectSpread(_objectSpread({}, customPluginProps), {}, {
86
- callback: callback
87
- })
88
- }));
89
- },
90
- supports: function supports(node) {
91
- return node.object === 'inline' && node.type === type;
92
- }
93
- };
94
- return {
95
- name: type,
96
- toolbar: toolbar,
97
- renderNode: function renderNode(props) {
98
- if (props.node.type === type) {
99
- var node = props.node;
100
- var data = node.data;
101
- var jsonData = data.toJSON();
102
- var customContent = jsonData.customContent,
103
- contentType = jsonData.contentType;
104
-
105
- switch (contentType) {
106
- case CONTENT_TYPE.FRAGMENT:
107
- default:
108
- return customContent;
109
- }
110
- }
111
- }
112
- };
113
- }
114
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/plugins/customPlugin/index.jsx"],"names":["CONTENT_TYPE","FRAGMENT","ICON_TYPE","SVG","getIcon","customPluginProps","svg","icon","iconType","width","height","__html","iconAlt","CustomPlugin","type","toolbar","onClick","value","onChange","getFocusedValue","editorDOM","document","querySelector","key","valueToUse","callback","focus","customContent","contentType","contentValue","change","insertFragment","window","dispatchEvent","CustomEvent","event","detail","supports","node","object","name","renderNode","props","data","jsonData","toJSON"],"mappings":";;;;;;;;;;;;AAAA;;AACA;;;;;;AAEA;AACO,IAAMA,YAAY,GAAG;AAC1BC,EAAAA,QAAQ,EAAE;AADgB,CAArB,C,CAIP;;;AACO,IAAMC,SAAS,GAAG;AACvBC,EAAAA,GAAG,EAAE;AADkB,CAAlB;;;AAIP,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACC,iBAAD,EAAuB;AACrC,MAAMC,GAAG,GAAGD,iBAAiB,CAACE,IAA9B;;AAEA,UAAQF,iBAAiB,CAACG,QAA1B;AACE,SAAKN,SAAS,CAACC,GAAf;AACE,0BAAO;AAAM,QAAA,KAAK,EAAE;AAAEM,UAAAA,KAAK,EAAE,EAAT;AAAaC,UAAAA,MAAM,EAAE;AAArB,SAAb;AAAwC,QAAA,uBAAuB,EAAE;AAAEC,UAAAA,MAAM,EAAEL;AAAV;AAAjE,QAAP;;AACF;AACE,0BAAO,8CAAOD,iBAAiB,CAACO,OAAzB,CAAP;AAJJ;AAMD,CATD;;AAWe,SAASC,YAAT,CAAsBC,IAAtB,EAA4BT,iBAA5B,EAA+C;AAC5D,MAAMU,OAAO,GAAG;AACdR,IAAAA,IAAI,EAAEH,OAAO,CAACC,iBAAD,CADC;AAEdW,IAAAA,OAAO,EAAE,iBAACC,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,KAHN,EAGa;AAChB,UAAIA,KAAK,CAACJ,IAAN,CAAWxB,IAAX,KAAoBA,IAAxB,EAA8B;AAC5B,YAAQwB,IAAR,GAAiBI,KAAjB,CAAQJ,IAAR;AACA,YAAQK,IAAR,GAAiBL,IAAjB,CAAQK,IAAR;AACA,YAAMC,QAAQ,GAAGD,IAAI,CAACE,MAAL,EAAjB;AACA,YAAQlB,aAAR,GAAuCiB,QAAvC,CAAQjB,aAAR;AAAA,YAAuBC,WAAvB,GAAuCgB,QAAvC,CAAuBhB,WAAvB;;AAEA,gBAAQA,WAAR;AACE,eAAK5B,YAAY,CAACC,QAAlB;AACA;AACE,mBAAO0B,aAAP;AAHJ;AAKD;AACF;AAhBI,GAAP;AAkBD","sourcesContent":["import React from 'react';\nimport { htmlToValue } from '../../serialization';\n\n// We're possibly going to have to support content types, so starting it as an enum\nexport const CONTENT_TYPE = {\n FRAGMENT: 'FRAGMENT',\n};\n\n// We're possibly going to have to support multiple icon types, so starting it as an enum\nexport const ICON_TYPE = {\n SVG: 'SVG',\n};\n\nconst getIcon = (customPluginProps) => {\n const svg = customPluginProps.icon;\n\n switch (customPluginProps.iconType) {\n case ICON_TYPE.SVG:\n return <span style={{ width: 28, height: 28 }} dangerouslySetInnerHTML={{ __html: svg }} />;\n default:\n return <span>{customPluginProps.iconAlt}</span>;\n }\n};\n\nexport default function CustomPlugin(type, customPluginProps) {\n const toolbar = {\n icon: getIcon(customPluginProps),\n onClick: (value, onChange, getFocusedValue) => {\n const editorDOM = document.querySelector(`[data-key=\"${value.document.key}\"]`);\n let valueToUse = value;\n const callback = ({ customContent, contentType }, focus) => {\n valueToUse = getFocusedValue();\n\n switch (contentType) {\n case CONTENT_TYPE.FRAGMENT:\n default: {\n const contentValue = htmlToValue(customContent);\n const change = valueToUse.change().insertFragment(contentValue.document);\n\n valueToUse = change.value;\n onChange(change);\n\n break;\n }\n }\n\n if (focus) {\n if (editorDOM) {\n editorDOM.focus();\n }\n }\n };\n\n // NOTE: the emitted event (custom event named by client) will be suffixed with \"PIE-\"\n window.dispatchEvent(\n new CustomEvent(`PIE-${customPluginProps.event}`, {\n detail: {\n ...customPluginProps,\n callback,\n },\n }),\n );\n },\n supports: (node) => node.object === 'inline' && node.type === type,\n };\n\n return {\n name: type,\n toolbar,\n renderNode(props) {\n if (props.node.type === type) {\n const { node } = props;\n const { data } = node;\n const jsonData = data.toJSON();\n const { customContent, contentType } = jsonData;\n\n switch (contentType) {\n case CONTENT_TYPE.FRAGMENT:\n default:\n return customContent;\n }\n }\n },\n };\n}\n"],"file":"index.js"}
@@ -1,38 +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 _react = _interopRequireDefault(require("react"));
11
-
12
- var _styles = require("@material-ui/core/styles");
13
-
14
- var styles = function styles(theme) {
15
- return {
16
- icon: {
17
- fontFamily: 'Cerebri Sans, Arial, sans-serif',
18
- fontSize: theme.typography.fontSize,
19
- fontWeight: 'bold',
20
- lineHeight: '14px',
21
- position: 'relative',
22
- whiteSpace: 'nowrap'
23
- }
24
- };
25
- };
26
-
27
- var HtmlModeIcon = function HtmlModeIcon(_ref) {
28
- var classes = _ref.classes,
29
- isHtmlMode = _ref.isHtmlMode;
30
- return /*#__PURE__*/_react["default"].createElement("div", {
31
- className: classes.icon
32
- }, isHtmlMode ? 'Exit <HTML> mode' : '<HTML>');
33
- };
34
-
35
- var _default = (0, _styles.withStyles)(styles)(HtmlModeIcon);
36
-
37
- exports["default"] = _default;
38
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/plugins/html/icons/index.jsx"],"names":["styles","theme","icon","fontFamily","fontSize","typography","fontWeight","lineHeight","position","whiteSpace","HtmlModeIcon","classes","isHtmlMode"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,MAAM,GAAG,SAATA,MAAS,CAACC,KAAD;AAAA,SAAY;AACzBC,IAAAA,IAAI,EAAE;AACJC,MAAAA,UAAU,EAAE,iCADR;AAEJC,MAAAA,QAAQ,EAAEH,KAAK,CAACI,UAAN,CAAiBD,QAFvB;AAGJE,MAAAA,UAAU,EAAE,MAHR;AAIJC,MAAAA,UAAU,EAAE,MAJR;AAKJC,MAAAA,QAAQ,EAAE,UALN;AAMJC,MAAAA,UAAU,EAAE;AANR;AADmB,GAAZ;AAAA,CAAf;;AAWA,IAAMC,YAAY,GAAG,SAAfA,YAAe;AAAA,MAAGC,OAAH,QAAGA,OAAH;AAAA,MAAYC,UAAZ,QAAYA,UAAZ;AAAA,sBACnB;AAAK,IAAA,SAAS,EAAED,OAAO,CAACT;AAAxB,KAA+BU,UAAU,GAAG,kBAAH,GAAwB,QAAjE,CADmB;AAAA,CAArB;;eAIe,wBAAWZ,MAAX,EAAmBU,YAAnB,C","sourcesContent":["import React from 'react';\nimport { withStyles } from '@material-ui/core/styles';\n\nconst styles = (theme) => ({\n icon: {\n fontFamily: 'Cerebri Sans, Arial, sans-serif',\n fontSize: theme.typography.fontSize,\n fontWeight: 'bold',\n lineHeight: '14px',\n position: 'relative',\n whiteSpace: 'nowrap',\n },\n});\n\nconst HtmlModeIcon = ({ classes, isHtmlMode }) => (\n <div className={classes.icon}>{isHtmlMode ? 'Exit <HTML> mode' : '<HTML>'}</div>\n);\n\nexport default withStyles(styles)(HtmlModeIcon);\n"],"file":"index.js"}