@pie-element/hotspot 11.0.5-esm.0 → 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 +1 @@
1
- {"version":3,"sources":["../src/root.jsx"],"names":["Panel","settings","toggle","dropdown","Root","fieldType","color","onColorChanged","props","cType","value","resizeType","model","dimensions","shapes","configuration","preserveAspectRatio","onUpdateImageDimension","onUpdateShapes","nextImageDimensions","updatedDimensions","enabled","shapesArray","updatedShapes","classes","imageSupport","uploadSoundSupport","onConfigurationChanged","onImageUpload","onModelChangedByConfig","onPromptChanged","onRationaleChanged","onTeacherInstructionsChanged","baseInputConfiguration","contentDimensions","maxImageWidth","maxImageHeight","multipleCorrect","partialScoring","prompt","rationale","settingsPanelDisabled","spellCheck","teacherInstructions","withRubric","mathMlOptions","language","languageChoices","errors","extraCSSRules","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","promptError","rationaleError","shapesError","selectionsError","selections","teacherInstructionsError","validationMessage","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","options","panelProperties","rubricEnabled","getPluginProps","Settings","Properties","promptContainer","inputConfiguration","errorText","flexContainer","subheading","tooltip","hotspotColor","hotspotList","outlineColor","outlineList","handleColorChange","imageUrl","selectedHotspotColor","hoverOutlineColor","strokeWidth","add","width","e","handleOnUpdateImageDimensions","field","height","React","Component","styles","theme","display","marginBottom","spacing","unit","flex","paddingTop","marginRight","alignItems","fontSize","typography","whiteSpace","maxWidth","palette","error","main","propTypes","PropTypes","object","isRequired","shape","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,IAAQA,KAAR,GAAoCC,kBAApC,CAAQD,KAAR;AAAA,IAAeE,MAAf,GAAoCD,kBAApC,CAAeC,MAAf;AAAA,IAAuBC,QAAvB,GAAoCF,kBAApC,CAAuBE,QAAvB;;IAEaC,I;;;;;;;;;;;;;;;0GACS,UAACC,SAAD,EAAYC,KAAZ,EAAsB;AACxC,UAAQC,cAAR,GAA2B,MAAKC,KAAhC,CAAQD,cAAR;AACA,UAAME,KAAK,aAAMJ,SAAN,UAAX;AAEAE,MAAAA,cAAc,CAACE,KAAD,EAAQH,KAAR,CAAd;AACD,K;sHAE+B,UAACI,KAAD,EAAQC,UAAR,EAAuB;AACrD,wBAKI,MAAKH,KALT;AAAA,0CACEI,KADF;AAAA,UACWC,UADX,qBACWA,UADX;AAAA,UACuBC,MADvB,qBACuBA,MADvB;AAAA,8CAEEC,aAFF,CAEmBC,mBAFnB;AAAA,UAEmBA,mBAFnB,sCAEyC,EAFzC;AAAA,UAGEC,sBAHF,eAGEA,sBAHF;AAAA,UAIEC,cAJF,eAIEA,cAJF;;AAOA,UAAMC,mBAAmB,mCAAQN,UAAR,4CAAqBF,UAArB,EAAkCD,KAAlC,EAAzB,CARqD,CAUrD;;;AACA,UAAMU,iBAAiB,GAAG,kCACxBP,UADwB,EAExBM,mBAFwB,EAGxBH,mBAAmB,CAACK,OAHI,EAIxBV,UAJwB,CAA1B,CAXqD,CAiBrD;;AACA,UAAMW,WAAW,GAAG,yBAAaR,MAAb,CAApB,CAlBqD,CAmBrD;;AACA,UAAMS,aAAa,GAAG,6BAAiBV,UAAjB,EAA6BO,iBAA7B,EAAgDE,WAAhD,CAAtB,CApBqD,CAqBrD;;AAEAJ,M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,EAAE0B,sBAAUI,IADmB;AAElC,cAAQJ,sBAAUI;AAFgB,GAAhB,CARL;AAYf3F,EAAAA,aAAa,EAAEuF,sBAAUI,IAAV,CAAeF,UAZf;AAaf9G,EAAAA,cAAc,EAAE4G,sBAAUI,IAAV,CAAeF,UAbhB;AAcfvF,EAAAA,eAAe,EAAEqF,sBAAUI,IAAV,CAAeF,UAdjB;AAefpG,EAAAA,sBAAsB,EAAEkG,sBAAUI,IAAV,CAAeF,UAfxB;AAgBfnG,EAAAA,cAAc,EAAEiG,sBAAUI,IAAV,CAAeF,UAhBhB;AAiBfxF,EAAAA,sBAAsB,EAAEsF,sBAAUI,IAAV,CAAeF,UAjBxB;AAkBftF,EAAAA,kBAAkB,EAAEoF,sBAAUI,IAAV,CAAeF,UAlBpB;AAmBf1F,EAAAA,sBAAsB,EAAEwF,sBAAUI,IAAV,CAAeF,UAnBxB;AAoBfrF,EAAAA,4BAA4B,EAAEmF,sBAAUI,IAAV,CAAeF;AApB9B,CAAjB;;eAuBe,wBAAWpB,MAAX,EAAmB7F,IAAnB,C","sourcesContent":["import React from 'react';\nimport { settings, layout, InputContainer, NumberTextField } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html';\nimport { withStyles } from '@material-ui/core/styles';\nimport Typography from '@material-ui/core/Typography';\nimport Info from '@material-ui/icons/Info';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport HotspotPalette from './hotspot-palette';\nimport HotspotContainer from './hotspot-container';\nimport { updateImageDimensions, generateValidationMessage, getUpdatedShapes, getAllShapes, groupShapes } from './utils';\n\nconst { Panel, toggle, dropdown } = settings;\n\nexport class Root extends React.Component {\n handleColorChange = (fieldType, color) => {\n const { onColorChanged } = this.props;\n const cType = `${fieldType}Color`;\n\n onColorChanged(cType, color);\n };\n\n handleOnUpdateImageDimensions = (value, resizeType) => {\n const {\n model: { dimensions, shapes },\n configuration: { preserveAspectRatio = {} },\n onUpdateImageDimension,\n onUpdateShapes,\n } = this.props;\n\n const nextImageDimensions = { ...dimensions, [resizeType]: value };\n\n // if preserveAspectRatio.enabled, updateImageDimensions function makes sure aspect ratio is kept\n const updatedDimensions = updateImageDimensions(\n dimensions,\n nextImageDimensions,\n preserveAspectRatio.enabled,\n resizeType,\n );\n // transform shapes map into shapes array\n const shapesArray = getAllShapes(shapes);\n // transform all the shapes to fit the re-sized image\n const updatedShapes = getUpdatedShapes(dimensions, updatedDimensions, shapesArray);\n // transform shapes array back into shapes map\n\n onUpdateShapes(groupShapes(updatedShapes));\n onUpdateImageDimension(updatedDimensions);\n };\n\n render() {\n const {\n classes,\n configuration,\n model,\n imageSupport,\n uploadSoundSupport,\n onConfigurationChanged,\n onImageUpload,\n onModelChangedByConfig,\n onPromptChanged,\n onRationaleChanged,\n onUpdateImageDimension,\n onTeacherInstructionsChanged,\n onUpdateShapes,\n } = this.props;\n const {\n baseInputConfiguration = {},\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n multipleCorrect = {},\n partialScoring = {},\n preserveAspectRatio = {},\n prompt = {},\n rationale = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n const {\n errors,\n extraCSSRules,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n toolbarEditorPosition,\n } = model || {};\n const {\n prompt: promptError,\n rationale: rationaleError,\n shapes: shapesError,\n selections: selectionsError,\n teacherInstructions: teacherInstructionsError,\n } = errors || {};\n const validationMessage = generateValidationMessage(configuration);\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n const panelSettings = {\n multipleCorrect: multipleCorrect.settings && toggle(multipleCorrect.label),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n const getPluginProps = (props = {}) => ({\n ...baseInputConfiguration,\n ...props,\n });\n\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onModelChangedByConfig}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <InputContainer label={teacherInstructions.label} className={classes.promptContainer}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {teacherInstructionsError && <div className={classes.errorText}>{teacherInstructionsError}</div>}\n </InputContainer>\n )}\n\n {promptEnabled && (\n <InputContainer label={prompt.label} className={classes.promptContainer}>\n <EditableHtml\n markup={model.prompt || ''}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {promptError && <div className={classes.errorText}>{promptError}</div>}\n </InputContainer>\n )}\n\n <div className={classes.flexContainer}>\n <Typography className={classes.subheading} variant=\"subheading\">\n Define Hotspot\n </Typography>\n <Tooltip\n classes={{ tooltip: classes.tooltip }}\n disableFocusListener\n disableTouchListener\n placement={'left'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} style={{ float: 'right' }} />\n </Tooltip>\n </div>\n\n <HotspotPalette\n hotspotColor={model.hotspotColor}\n hotspotList={model.hotspotList}\n outlineColor={model.outlineColor}\n outlineList={model.outlineList}\n onHotspotColorChange={(color) => this.handleColorChange('hotspot', color)}\n onOutlineColorChange={(color) => this.handleColorChange('outline', color)}\n />\n\n <HotspotContainer\n dimensions={model.dimensions}\n imageUrl={model.imageUrl}\n multipleCorrect={model.multipleCorrect}\n hasErrors={!!shapesError || !!selectionsError}\n hotspotColor={model.hotspotColor}\n outlineColor={model.outlineColor}\n selectedHotspotColor={model.selectedHotspotColor}\n hoverOutlineColor={model.hoverOutlineColor}\n onUpdateImageDimension={onUpdateImageDimension}\n onUpdateShapes={onUpdateShapes}\n onImageUpload={onImageUpload}\n shapes={model.shapes}\n strokeWidth={model.strokeWidth}\n preserveAspectRatioEnabled={preserveAspectRatio.enabled}\n insertImage={imageSupport && imageSupport.add}\n />\n {shapesError && <div className={classes.errorText}>{shapesError}</div>}\n {selectionsError && <div className={classes.errorText}>{selectionsError}</div>}\n\n {model.imageUrl && (\n <React.Fragment>\n <Typography variant=\"subheading\">Image Dimensions</Typography>\n\n <div className={classes.dimensions}>\n <NumberTextField\n key=\"hotspot-manual-width\"\n label=\"Width\"\n value={model.dimensions.width}\n min={0}\n onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'width')}\n showErrorWhenOutsideRange\n className={classes.field}\n />\n\n <NumberTextField\n key=\"hotspot-manual-height\"\n label=\"Height\"\n value={model.dimensions.height}\n min={0}\n onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'height')}\n showErrorWhenOutsideRange\n className={classes.field}\n />\n </div>\n </React.Fragment>\n )}\n\n {rationaleEnabled && (\n <InputContainer label={rationale.label} className={classes.promptContainer}>\n <EditableHtml\n markup={model.rationale || ''}\n onChange={onRationaleChanged}\n imageSupport={imageSupport}\n error={rationaleError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(rationale?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {rationaleError && <div className={classes.errorText}>{rationaleError}</div>}\n </InputContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nconst styles = (theme) => ({\n dimensions: {\n display: 'flex',\n marginBottom: theme.spacing.unit * 1.5,\n },\n field: {\n flex: 1,\n width: '90%',\n },\n promptContainer: {\n paddingTop: theme.spacing.unit * 2,\n marginBottom: theme.spacing.unit * 2,\n width: '100%',\n },\n subheading: {\n marginRight: theme.spacing.unit,\n },\n flexContainer: {\n display: 'flex',\n alignItems: 'center',\n },\n tooltip: {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n errorText: {\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing.unit,\n },\n});\n\nRoot.propTypes = {\n classes: PropTypes.object.isRequired,\n configuration: PropTypes.object,\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n onImageUpload: PropTypes.func.isRequired,\n onColorChanged: PropTypes.func.isRequired,\n onPromptChanged: PropTypes.func.isRequired,\n onUpdateImageDimension: PropTypes.func.isRequired,\n onUpdateShapes: PropTypes.func.isRequired,\n onModelChangedByConfig: PropTypes.func.isRequired,\n onRationaleChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n onTeacherInstructionsChanged: PropTypes.func.isRequired,\n};\n\nexport default withStyles(styles)(Root);\n"],"file":"root.js"}
1
+ {"version":3,"file":"root.js","names":["_react","_interopRequireDefault","require","_configUi","_propTypes","_editableHtmlTipTap","_styles","_Typography","_Info","_Tooltip","_hotspotPalette","_hotspotContainer","_utils","Panel","toggle","dropdown","settings","DimensionsContainer","styled","theme","display","marginBottom","spacing","FieldContainer","flex","width","PromptContainer","InputContainer","paddingTop","marginTop","SubHeading","Typography","marginRight","FlexContainer","alignItems","StyledTooltip","Tooltip","fontSize","typography","whiteSpace","maxWidth","ErrorText","color","palette","error","main","Root","React","Component","constructor","args","_defineProperty2","default","fieldType","onColorChanged","props","cType","value","resizeType","model","dimensions","shapes","configuration","preserveAspectRatio","onUpdateImageDimension","onUpdateShapes","nextImageDimensions","updatedDimensions","updateImageDimensions","enabled","shapesArray","getAllShapes","updatedShapes","getUpdatedShapes","groupShapes","render","imageSupport","uploadSoundSupport","onConfigurationChanged","onImageUpload","onModelChangedByConfig","onPromptChanged","onRationaleChanged","onTeacherInstructionsChanged","baseInputConfiguration","contentDimensions","maxImageWidth","maxImageHeight","multipleCorrect","partialScoring","prompt","rationale","settingsPanelDisabled","spellCheck","teacherInstructions","withRubric","mathMlOptions","language","languageChoices","errors","extraCSSRules","promptEnabled","rationaleEnabled","spellCheckEnabled","teacherInstructionsEnabled","toolbarEditorPosition","promptError","rationaleError","shapesError","selections","selectionsError","teacherInstructionsError","validationMessage","generateValidationMessage","defaultImageMaxWidth","defaultImageMaxHeight","toolbarOpts","position","panelSettings","label","options","panelProperties","rubricEnabled","getPluginProps","createElement","layout","ConfigLayout","hideSettings","onChangeModel","onChangeConfiguration","groups","Settings","Properties","markup","onChange","nonEmpty","pluginProps","inputConfiguration","languageCharactersProps","variant","disableFocusListener","disableTouchListener","placement","title","style","float","hotspotColor","hotspotList","outlineColor","outlineList","onHotspotColorChange","handleColorChange","onOutlineColorChange","imageUrl","hasErrors","selectedHotspotColor","hoverOutlineColor","strokeWidth","preserveAspectRatioEnabled","insertImage","add","Fragment","NumberTextField","key","min","e","handleOnUpdateImageDimensions","showErrorWhenOutsideRange","height","exports","propTypes","PropTypes","object","isRequired","shape","func","delete","_default"],"sources":["../src/root.jsx"],"sourcesContent":["import React from 'react';\nimport { settings, layout, InputContainer, NumberTextField } from '@pie-lib/config-ui';\nimport PropTypes from 'prop-types';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\nimport { styled } from '@mui/material/styles';\nimport Typography from '@mui/material/Typography';\nimport Info from '@mui/icons-material/Info';\nimport Tooltip from '@mui/material/Tooltip';\nimport HotspotPalette from './hotspot-palette';\nimport HotspotContainer from './hotspot-container';\nimport { updateImageDimensions, generateValidationMessage, getUpdatedShapes, getAllShapes, groupShapes } from './utils';\n\nconst { Panel, toggle, dropdown } = settings;\n\nconst DimensionsContainer = styled('div')(({ theme }) => ({\n display: 'flex',\n marginBottom: theme.spacing(1.5),\n}));\n\nconst FieldContainer = styled('div')({\n flex: 1,\n width: '90%',\n});\n\nconst PromptContainer = styled(InputContainer)(({ theme }) => ({\n paddingTop: theme.spacing(1),\n marginTop: theme.spacing(2),\n marginBottom: theme.spacing(2),\n width: '100%',\n}));\n\nconst SubHeading = styled(Typography)(({ theme }) => ({\n marginRight: theme.spacing(1),\n}));\n\nconst FlexContainer = styled('div')({\n display: 'flex',\n alignItems: 'center',\n});\n\nconst StyledTooltip = styled(Tooltip)(({ theme }) => ({\n '& .MuiTooltip-tooltip': {\n fontSize: theme.typography.fontSize - 2,\n whiteSpace: 'pre',\n maxWidth: '500px',\n },\n}));\n\nconst ErrorText = styled('div')(({ theme }) => ({\n fontSize: theme.typography.fontSize - 2,\n color: theme.palette.error.main,\n paddingTop: theme.spacing(1),\n}));\n\nexport class Root extends React.Component {\n handleColorChange = (fieldType, color) => {\n const { onColorChanged } = this.props;\n const cType = `${fieldType}Color`;\n\n onColorChanged(cType, color);\n };\n\n handleOnUpdateImageDimensions = (value, resizeType) => {\n const {\n model: { dimensions, shapes },\n configuration: { preserveAspectRatio = {} },\n onUpdateImageDimension,\n onUpdateShapes,\n } = this.props;\n\n const nextImageDimensions = { ...dimensions, [resizeType]: value };\n\n // if preserveAspectRatio.enabled, updateImageDimensions function makes sure aspect ratio is kept\n const updatedDimensions = updateImageDimensions(\n dimensions,\n nextImageDimensions,\n preserveAspectRatio.enabled,\n resizeType,\n );\n // transform shapes map into shapes array\n const shapesArray = getAllShapes(shapes);\n // transform all the shapes to fit the re-sized image\n const updatedShapes = getUpdatedShapes(dimensions, updatedDimensions, shapesArray);\n // transform shapes array back into shapes map\n\n onUpdateShapes(groupShapes(updatedShapes));\n onUpdateImageDimension(updatedDimensions);\n };\n\n render() {\n const {\n configuration,\n model,\n imageSupport,\n uploadSoundSupport,\n onConfigurationChanged,\n onImageUpload,\n onModelChangedByConfig,\n onPromptChanged,\n onRationaleChanged,\n onUpdateImageDimension,\n onTeacherInstructionsChanged,\n onUpdateShapes,\n } = this.props;\n const {\n baseInputConfiguration = {},\n contentDimensions = {},\n maxImageWidth = {},\n maxImageHeight = {},\n multipleCorrect = {},\n partialScoring = {},\n preserveAspectRatio = {},\n prompt = {},\n rationale = {},\n settingsPanelDisabled,\n spellCheck = {},\n teacherInstructions = {},\n withRubric = {},\n mathMlOptions = {},\n language = {},\n languageChoices = {},\n } = configuration || {};\n const {\n errors,\n extraCSSRules,\n promptEnabled,\n rationaleEnabled,\n spellCheckEnabled,\n teacherInstructionsEnabled,\n toolbarEditorPosition,\n } = model || {};\n const {\n prompt: promptError,\n rationale: rationaleError,\n shapes: shapesError,\n selections: selectionsError,\n teacherInstructions: teacherInstructionsError,\n } = errors || {};\n const validationMessage = generateValidationMessage(configuration);\n\n const defaultImageMaxWidth = maxImageWidth && maxImageWidth.prompt;\n const defaultImageMaxHeight = maxImageHeight && maxImageHeight.prompt;\n\n const toolbarOpts = {\n position: toolbarEditorPosition === 'top' ? 'top' : 'bottom',\n };\n\n const panelSettings = {\n multipleCorrect: multipleCorrect.settings && toggle(multipleCorrect.label),\n partialScoring: partialScoring.settings && toggle(partialScoring.label),\n promptEnabled: prompt.settings && toggle(prompt.label),\n 'language.enabled': language.settings && toggle(language.label, true),\n language: language.settings && language.enabled && dropdown(languageChoices.label, languageChoices.options),\n };\n const panelProperties = {\n teacherInstructionsEnabled: teacherInstructions.settings && toggle(teacherInstructions.label),\n rationaleEnabled: rationale.settings && toggle(rationale.label),\n spellCheckEnabled: spellCheck.settings && toggle(spellCheck.label),\n rubricEnabled: withRubric?.settings && toggle(withRubric?.label),\n };\n\n const getPluginProps = (props = {}) => ({\n ...baseInputConfiguration,\n ...props,\n });\n\n return (\n <layout.ConfigLayout\n extraCSSRules={extraCSSRules}\n dimensions={contentDimensions}\n hideSettings={settingsPanelDisabled}\n settings={\n <Panel\n model={model}\n onChangeModel={onModelChangedByConfig}\n configuration={configuration}\n onChangeConfiguration={onConfigurationChanged}\n groups={{\n Settings: panelSettings,\n Properties: panelProperties,\n }}\n />\n }\n >\n {teacherInstructionsEnabled && (\n <PromptContainer label={teacherInstructions.label}>\n <EditableHtml\n markup={model.teacherInstructions || ''}\n onChange={onTeacherInstructionsChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={teacherInstructionsError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(teacherInstructions?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.teacherInstructions) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.teacherInstructions) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {teacherInstructionsError && <ErrorText>{teacherInstructionsError}</ErrorText>}\n </PromptContainer>\n )}\n\n {promptEnabled && (\n <PromptContainer label={prompt.label}>\n <EditableHtml\n markup={model.prompt || ''}\n onChange={onPromptChanged}\n imageSupport={imageSupport}\n nonEmpty={false}\n error={promptError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(prompt?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={defaultImageMaxWidth}\n maxImageHeight={defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {promptError && <ErrorText>{promptError}</ErrorText>}\n </PromptContainer>\n )}\n\n <FlexContainer>\n <SubHeading variant=\"h6\">\n Define Hotspot\n </SubHeading>\n <StyledTooltip\n disableFocusListener\n disableTouchListener\n placement={'left'}\n title={validationMessage}\n >\n <Info fontSize={'small'} color={'primary'} style={{ float: 'right' }} />\n </StyledTooltip>\n </FlexContainer>\n\n <HotspotPalette\n hotspotColor={model.hotspotColor}\n hotspotList={model.hotspotList}\n outlineColor={model.outlineColor}\n outlineList={model.outlineList}\n onHotspotColorChange={(color) => this.handleColorChange('hotspot', color)}\n onOutlineColorChange={(color) => this.handleColorChange('outline', color)}\n />\n\n <HotspotContainer\n dimensions={model.dimensions}\n imageUrl={model.imageUrl}\n multipleCorrect={model.multipleCorrect}\n hasErrors={!!shapesError || !!selectionsError}\n hotspotColor={model.hotspotColor}\n outlineColor={model.outlineColor}\n selectedHotspotColor={model.selectedHotspotColor}\n hoverOutlineColor={model.hoverOutlineColor}\n onUpdateImageDimension={onUpdateImageDimension}\n onUpdateShapes={onUpdateShapes}\n onImageUpload={onImageUpload}\n shapes={model.shapes}\n strokeWidth={model.strokeWidth}\n preserveAspectRatioEnabled={preserveAspectRatio.enabled}\n insertImage={imageSupport && imageSupport.add}\n />\n {shapesError && <ErrorText>{shapesError}</ErrorText>}\n {selectionsError && <ErrorText>{selectionsError}</ErrorText>}\n\n {model.imageUrl && (\n <React.Fragment>\n <Typography variant=\"h6\">Image Dimensions</Typography>\n\n <DimensionsContainer>\n <FieldContainer>\n <NumberTextField\n key=\"hotspot-manual-width\"\n label=\"Width\"\n value={model.dimensions.width}\n min={0}\n onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'width')}\n showErrorWhenOutsideRange\n />\n </FieldContainer>\n\n <FieldContainer>\n <NumberTextField\n key=\"hotspot-manual-height\"\n label=\"Height\"\n value={model.dimensions.height}\n min={0}\n onChange={(e, value) => this.handleOnUpdateImageDimensions(value, 'height')}\n showErrorWhenOutsideRange\n />\n </FieldContainer>\n </DimensionsContainer>\n </React.Fragment>\n )}\n\n {rationaleEnabled && (\n <PromptContainer label={rationale.label}>\n <EditableHtml\n markup={model.rationale || ''}\n onChange={onRationaleChanged}\n imageSupport={imageSupport}\n error={rationaleError}\n toolbarOpts={toolbarOpts}\n pluginProps={getPluginProps(rationale?.inputConfiguration)}\n spellCheck={spellCheckEnabled}\n maxImageWidth={(maxImageWidth && maxImageWidth.rationale) || defaultImageMaxWidth}\n maxImageHeight={(maxImageHeight && maxImageHeight.rationale) || defaultImageMaxHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n mathMlOptions={mathMlOptions}\n />\n {rationaleError && <ErrorText>{rationaleError}</ErrorText>}\n </PromptContainer>\n )}\n </layout.ConfigLayout>\n );\n }\n}\n\nRoot.propTypes = {\n configuration: PropTypes.object,\n model: PropTypes.object.isRequired,\n imageSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func,\n delete: PropTypes.func,\n }),\n onImageUpload: PropTypes.func.isRequired,\n onColorChanged: PropTypes.func.isRequired,\n onPromptChanged: PropTypes.func.isRequired,\n onUpdateImageDimension: PropTypes.func.isRequired,\n onUpdateShapes: PropTypes.func.isRequired,\n onModelChangedByConfig: PropTypes.func.isRequired,\n onRationaleChanged: PropTypes.func.isRequired,\n onConfigurationChanged: PropTypes.func.isRequired,\n onTeacherInstructionsChanged: PropTypes.func.isRequired,\n};\n\nexport default Root;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,mBAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,WAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,KAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,QAAA,GAAAR,sBAAA,CAAAC,OAAA;AACA,IAAAQ,eAAA,GAAAT,sBAAA,CAAAC,OAAA;AACA,IAAAS,iBAAA,GAAAV,sBAAA,CAAAC,OAAA;AACA,IAAAU,MAAA,GAAAV,OAAA;AAEA,MAAM;EAAEW,KAAK;EAAEC,MAAM;EAAEC;AAAS,CAAC,GAAGC,kBAAQ;AAE5C,MAAMC,mBAAmB,GAAG,IAAAC,cAAM,EAAC,KAAK,CAAC,CAAC,CAAC;EAAEC;AAAM,CAAC,MAAM;EACxDC,OAAO,EAAE,MAAM;EACfC,YAAY,EAAEF,KAAK,CAACG,OAAO,CAAC,GAAG;AACjC,CAAC,CAAC,CAAC;AAEH,MAAMC,cAAc,GAAG,IAAAL,cAAM,EAAC,KAAK,CAAC,CAAC;EACnCM,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE;AACT,CAAC,CAAC;AAEF,MAAMC,eAAe,GAAG,IAAAR,cAAM,EAACS,wBAAc,CAAC,CAAC,CAAC;EA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kBAAS,CAACG,KAAK,CAAC;IAClCd,GAAG,EAAEW,kBAAS,CAACI,IAAI;IACnBC,MAAM,EAAEL,kBAAS,CAACI;EACpB,CAAC,CAAC;EACFhG,aAAa,EAAE4F,kBAAS,CAACI,IAAI,CAACF,UAAU;EACxCvH,cAAc,EAAEqH,kBAAS,CAACI,IAAI,CAACF,UAAU;EACzC5F,eAAe,EAAE0F,kBAAS,CAACI,IAAI,CAACF,UAAU;EAC1C7G,sBAAsB,EAAE2G,kBAAS,CAACI,IAAI,CAACF,UAAU;EACjD5G,cAAc,EAAE0G,kBAAS,CAACI,IAAI,CAACF,UAAU;EACzC7F,sBAAsB,EAAE2F,kBAAS,CAACI,IAAI,CAACF,UAAU;EACjD3F,kBAAkB,EAAEyF,kBAAS,CAACI,IAAI,CAACF,UAAU;EAC7C/F,sBAAsB,EAAE6F,kBAAS,CAACI,IAAI,CAACF,UAAU;EACjD1F,4BAA4B,EAAEwF,kBAAS,CAACI,IAAI,CAACF;AAC/C,CAAC;AAAC,IAAAI,QAAA,GAAAR,OAAA,CAAArH,OAAA,GAEaN,IAAI","ignoreList":[]}
@@ -1,116 +1,84 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.CircleShape = void 0;
9
-
10
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
-
12
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
-
18
- 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; }
19
-
20
- 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; }
21
-
22
- var CircleShape = /*#__PURE__*/function () {
23
- function CircleShape() {
24
- (0, _classCallCheck2["default"])(this, CircleShape);
9
+ class CircleShape {
10
+ static create(shapes, e) {
11
+ const newShapes = [...shapes];
12
+ const highestId = Math.max(...newShapes.map(shape => parseInt(shape.id)), 0);
13
+ const newCircle = {
14
+ id: `${highestId + 1}`,
15
+ radius: 0,
16
+ x: e.evt.layerX,
17
+ y: e.evt.layerY,
18
+ group: 'circles',
19
+ index: newShapes.length
20
+ };
21
+ newShapes.push(newCircle);
22
+ return {
23
+ shapes: newShapes,
24
+ isDrawing: true,
25
+ isDrawingShapeId: newCircle.id
26
+ };
25
27
  }
26
-
27
- (0, _createClass2["default"])(CircleShape, null, [{
28
- key: "create",
29
- value: function create(shapes, e) {
30
- var newShapes = (0, _toConsumableArray2["default"])(shapes);
31
- var highestId = Math.max.apply(Math, (0, _toConsumableArray2["default"])(newShapes.map(function (shape) {
32
- return parseInt(shape.id);
33
- })).concat([0]));
34
- var newCircle = {
35
- id: "".concat(highestId + 1),
36
- radius: 0,
37
- x: e.evt.layerX,
38
- y: e.evt.layerY,
39
- group: 'circles',
40
- index: newShapes.length
41
- };
42
- newShapes.push(newCircle);
43
- return {
44
- shapes: newShapes,
45
- isDrawing: true,
46
- isDrawingShapeId: newCircle.id
47
- };
48
- }
49
- }, {
50
- key: "finalizeCreation",
51
- value: function finalizeCreation(state, props) {
52
- var currentShapeIndex = state.shapes.findIndex(function (shape) {
53
- return shape.id === state.isDrawingShapeId;
54
- });
55
-
56
- if (currentShapeIndex !== -1) {
57
- var currentShape = state.shapes[currentShapeIndex]; // Check if the shape is a valid circle (has more than 0 radius) before finalizing
58
-
59
- if (currentShape.radius > 0) {
60
- return _objectSpread(_objectSpread({}, state), {}, {
61
- isDrawing: false,
62
- stateShapes: false,
63
- isDrawingShapeId: undefined
64
- });
65
- } else {
66
- return _objectSpread(_objectSpread({}, state), {}, {
67
- isDrawing: false,
68
- stateShapes: false,
69
- isDrawingShapeId: undefined,
70
- shapes: state.shapes.filter(function (shape) {
71
- return shape.id !== state.isDrawingShapeId;
72
- })
73
- });
74
- }
28
+ static finalizeCreation(state, props) {
29
+ const currentShapeIndex = state.shapes.findIndex(shape => shape.id === state.isDrawingShapeId);
30
+ if (currentShapeIndex !== -1) {
31
+ const currentShape = state.shapes[currentShapeIndex];
32
+
33
+ // Check if the shape is a valid circle (has more than 0 radius) before finalizing
34
+ if (currentShape.radius > 0) {
35
+ return {
36
+ ...state,
37
+ isDrawing: false,
38
+ stateShapes: false,
39
+ isDrawingShapeId: undefined
40
+ };
41
+ } else {
42
+ return {
43
+ ...state,
44
+ isDrawing: false,
45
+ stateShapes: false,
46
+ isDrawingShapeId: undefined,
47
+ shapes: state.shapes.filter(shape => shape.id !== state.isDrawingShapeId)
48
+ };
75
49
  }
76
-
77
- return _objectSpread(_objectSpread({}, state), {}, {
78
- isDrawing: false,
79
- stateShapes: false,
80
- isDrawingShapeId: undefined
81
- });
82
50
  }
83
- }, {
84
- key: "handleMouseMove",
85
- value: function handleMouseMove(state, e) {
86
- var isDrawing = state.isDrawing,
87
- isDrawingShapeId = state.isDrawingShapeId,
88
- shapes = state.shapes;
89
-
90
- if (isDrawing) {
91
- var tempShapes = (0, _toConsumableArray2["default"])(shapes);
92
- var resizingShapeIndex = tempShapes.findIndex(function (shape) {
93
- return shape.id === isDrawingShapeId;
94
- });
95
-
96
- if (resizingShapeIndex !== -1) {
97
- var resizingShape = tempShapes[resizingShapeIndex]; // Calculate radius based on mouse position
98
-
99
- var dx = e.evt.layerX - resizingShape.x;
100
- var dy = e.evt.layerY - resizingShape.y;
101
- resizingShape.radius = Math.sqrt(dx * dx + dy * dy);
102
- return {
103
- shapes: tempShapes
104
- };
105
- }
51
+ return {
52
+ ...state,
53
+ isDrawing: false,
54
+ stateShapes: false,
55
+ isDrawingShapeId: undefined
56
+ };
57
+ }
58
+ static handleMouseMove(state, e) {
59
+ const {
60
+ isDrawing,
61
+ isDrawingShapeId,
62
+ shapes
63
+ } = state;
64
+ if (isDrawing) {
65
+ const tempShapes = [...shapes];
66
+ const resizingShapeIndex = tempShapes.findIndex(shape => shape.id === isDrawingShapeId);
67
+ if (resizingShapeIndex !== -1) {
68
+ const resizingShape = tempShapes[resizingShapeIndex];
69
+
70
+ // Calculate radius based on mouse position
71
+ const dx = e.evt.layerX - resizingShape.x;
72
+ const dy = e.evt.layerY - resizingShape.y;
73
+ resizingShape.radius = Math.sqrt(dx * dx + dy * dy);
74
+ return {
75
+ shapes: tempShapes
76
+ };
106
77
  }
107
-
108
- return state;
109
78
  }
110
- }]);
111
- return CircleShape;
112
- }();
113
-
79
+ return state;
80
+ }
81
+ }
114
82
  exports.CircleShape = CircleShape;
115
- (0, _defineProperty2["default"])(CircleShape, "name", 'circle');
83
+ (0, _defineProperty2.default)(CircleShape, "name", 'circle');
116
84
  //# sourceMappingURL=circle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shapes/circle.js"],"names":["CircleShape","shapes","e","newShapes","highestId","Math","max","map","shape","parseInt","id","newCircle","radius","x","evt","layerX","y","layerY","group","index","length","push","isDrawing","isDrawingShapeId","state","props","currentShapeIndex","findIndex","currentShape","stateShapes","undefined","filter","tempShapes","resizingShapeIndex","resizingShape","dx","dy","sqrt"],"mappings":";;;;;;;;;;;;;;;;;;;;;IAAaA,W;;;;;;;WAGX,gBAAcC,MAAd,EAAsBC,CAAtB,EAAyB;AACvB,UAAMC,SAAS,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C,EAAE,GAAGA,EAAzB,CAAvB;AAEA,iBAAO;AACLnC,YAAAA,MAAM,EAAE+B;AADH,WAAP;AAGD;AACF;;AAED,aAAOR,KAAP;AACD;;;;;;iCA/EUxB,W,UACG,Q","sourcesContent":["export class CircleShape {\n static name = 'circle'\n\n static create(shapes, e) {\n const newShapes = [...shapes];\n const highestId = Math.max(...newShapes.map((shape) => parseInt(shape.id)), 0);\n const newCircle = {\n id: `${highestId + 1}`,\n radius: 0,\n x: e.evt.layerX,\n y: e.evt.layerY,\n group: 'circles',\n index: newShapes.length,\n };\n\n newShapes.push(newCircle);\n\n return {\n shapes: newShapes,\n isDrawing: true,\n isDrawingShapeId: newCircle.id,\n };\n }\n\n static finalizeCreation(state, props) {\n const currentShapeIndex = state.shapes.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (currentShapeIndex !== -1) {\n const currentShape = state.shapes[currentShapeIndex];\n\n // Check if the shape is a valid circle (has more than 0 radius) before finalizing\n if (currentShape.radius > 0) {\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n };\n } else {\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n shapes: state.shapes.filter((shape) => shape.id !== state.isDrawingShapeId),\n };\n }\n }\n\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n };\n }\n\n static handleMouseMove(state, e) {\n const { isDrawing, isDrawingShapeId, shapes } = state;\n\n if (isDrawing) {\n const tempShapes = [...shapes];\n const resizingShapeIndex = tempShapes.findIndex((shape) => shape.id === isDrawingShapeId);\n\n if (resizingShapeIndex !== -1) {\n const resizingShape = tempShapes[resizingShapeIndex];\n\n // Calculate radius based on mouse position\n const dx = e.evt.layerX - resizingShape.x;\n const dy = e.evt.layerY - resizingShape.y;\n resizingShape.radius = Math.sqrt(dx * dx + dy * dy);\n\n return {\n shapes: tempShapes,\n };\n }\n }\n\n return state;\n }\n}\n"],"file":"circle.js"}
1
+ {"version":3,"file":"circle.js","names":["CircleShape","create","shapes","e","newShapes","highestId","Math","max","map","shape","parseInt","id","newCircle","radius","x","evt","layerX","y","layerY","group","index","length","push","isDrawing","isDrawingShapeId","finalizeCreation","state","props","currentShapeIndex","findIndex","currentShape","stateShapes","undefined","filter","handleMouseMove","tempShapes","resizingShapeIndex","resizingShape","dx","dy","sqrt","exports","_defineProperty2","default"],"sources":["../../src/shapes/circle.js"],"sourcesContent":["export class CircleShape {\n static name = 'circle'\n\n static create(shapes, e) {\n const newShapes = [...shapes];\n const highestId = Math.max(...newShapes.map((shape) => parseInt(shape.id)), 0);\n const newCircle = {\n id: `${highestId + 1}`,\n radius: 0,\n x: e.evt.layerX,\n y: e.evt.layerY,\n group: 'circles',\n index: newShapes.length,\n };\n\n newShapes.push(newCircle);\n\n return {\n shapes: newShapes,\n isDrawing: true,\n isDrawingShapeId: newCircle.id,\n };\n }\n\n static finalizeCreation(state, props) {\n const currentShapeIndex = state.shapes.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (currentShapeIndex !== -1) {\n const currentShape = state.shapes[currentShapeIndex];\n\n // Check if the shape is a valid circle (has more than 0 radius) before finalizing\n if (currentShape.radius > 0) {\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n };\n } else {\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n shapes: state.shapes.filter((shape) => shape.id !== state.isDrawingShapeId),\n };\n }\n }\n\n return {\n ...state,\n isDrawing: false,\n stateShapes: false,\n isDrawingShapeId: undefined,\n };\n }\n\n static handleMouseMove(state, e) {\n const { isDrawing, isDrawingShapeId, shapes } = state;\n\n if (isDrawing) {\n const tempShapes = [...shapes];\n const resizingShapeIndex = tempShapes.findIndex((shape) => shape.id === isDrawingShapeId);\n\n if (resizingShapeIndex !== -1) {\n const resizingShape = tempShapes[resizingShapeIndex];\n\n // Calculate radius based on mouse position\n const dx = e.evt.layerX - resizingShape.x;\n const dy = e.evt.layerY - resizingShape.y;\n resizingShape.radius = Math.sqrt(dx * dx + dy * dy);\n\n return {\n shapes: tempShapes,\n };\n }\n }\n\n return state;\n }\n}\n"],"mappings":";;;;;;;;AAAO,MAAMA,WAAW,CAAC;EAGvB,OAAOC,MAAMA,CAACC,MAAM,EAAEC,CAAC,EAAE;IACvB,MAAMC,SAAS,GAAG,CAAC,GAAGF,MAAM,CAAC;IAC7B,MAAMG,SAAS,GAAGC,IAAI,CAACC,GAAG,CAAC,GAAGH,SAAS,CAACI,GAAG,CAAEC,KAAK,IAAKC,QAAQ,CAACD,KAAK,CAACE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;IAC9E,MAAMC,SAAS,GAAG;MAChBD,EAAE,EAAE,GAAGN,SAAS,GAAG,CAAC,EAAE;MACtBQ,MAAM,EAAE,CAAC;MACTC,CAAC,EAAEX,CAAC,CAACY,GAAG,CAACC,MAAM;MACfC,CAAC,EAAEd,CAAC,CAACY,GAAG,CAACG,MAAM;MACfC,KAAK,EAAE,SAAS;MAChBC,KAAK,EAAEhB,SAAS,CAACiB;IACnB,CAAC;IAEDjB,SAAS,CAACkB,IAAI,CAACV,SAAS,CAAC;IAEzB,OAAO;MACLV,MAAM,EAAEE,SAAS;MACjBmB,SAAS,EAAE,IAAI;MACfC,gBAAgB,EAAEZ,SAAS,CAACD;IAC9B,CAAC;EACH;EAEA,OAAOc,gBAAgBA,CAACC,KAAK,EAAEC,KAAK,EAAE;IACpC,MAAMC,iBAAiB,GAAGF,KAAK,CAACxB,MAAM,CAAC2B,SAAS,CAAEpB,KAAK,IAAKA,KAAK,CAACE,EAAE,KAAKe,KAAK,CAACF,gBAAgB,CAAC;IAEhG,IAAII,iBAAiB,KAAK,CAAC,CAAC,EAAE;MAC5B,MAAME,YAAY,GAAGJ,KAAK,CAACxB,MAAM,CAAC0B,iBAAiB,CAAC;;MAEpD;MACA,IAAIE,YAAY,CAACjB,MAAM,GAAG,CAAC,EAAE;QAC3B,O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,MAAM,EAAEiC;QACV,CAAC;MACH;IACF;IAEA,OAAOT,KAAK;EACd;AACF;AAACe,OAAA,CAAAzC,WAAA,GAAAA,WAAA;AAAA,IAAA0C,gBAAA,CAAAC,OAAA,EAhFY3C,WAAW,UACR,QAAQ","ignoreList":[]}
@@ -3,54 +3,46 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _circle = require("./circle");
8
-
9
7
  Object.keys(_circle).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _circle[key]) return;
12
10
  Object.defineProperty(exports, key, {
13
11
  enumerable: true,
14
- get: function get() {
12
+ get: function () {
15
13
  return _circle[key];
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _rectagle = require("./rectagle");
21
-
22
18
  Object.keys(_rectagle).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _rectagle[key]) return;
25
21
  Object.defineProperty(exports, key, {
26
22
  enumerable: true,
27
- get: function get() {
23
+ get: function () {
28
24
  return _rectagle[key];
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _polygon = require("./polygon");
34
-
35
29
  Object.keys(_polygon).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _polygon[key]) return;
38
32
  Object.defineProperty(exports, key, {
39
33
  enumerable: true,
40
- get: function get() {
34
+ get: function () {
41
35
  return _polygon[key];
42
36
  }
43
37
  });
44
38
  });
45
-
46
39
  var _utils = require("./utils");
47
-
48
40
  Object.keys(_utils).forEach(function (key) {
49
41
  if (key === "default" || key === "__esModule") return;
50
42
  if (key in exports && exports[key] === _utils[key]) return;
51
43
  Object.defineProperty(exports, key, {
52
44
  enumerable: true,
53
- get: function get() {
45
+ get: function () {
54
46
  return _utils[key];
55
47
  }
56
48
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shapes/index.js"],"names":[],"mappings":";;;;;;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export * from './circle';\nexport * from './rectagle';\nexport * from './polygon';\nexport * from './utils';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["_circle","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_rectagle","_polygon","_utils"],"sources":["../../src/shapes/index.js"],"sourcesContent":["export * from './circle';\nexport * from './rectagle';\nexport * from './polygon';\nexport * from './utils';\n"],"mappings":";;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAK,SAAA,GAAAT,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAO,SAAA,EAAAN,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAK,SAAA,CAAAL,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,SAAA,CAAAL,GAAA;IAAA;EAAA;AAAA;AACA,IAAAM,QAAA,GAAAV,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAQ,QAAA,EAAAP,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAM,QAAA,CAAAN,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAE,QAAA,CAAAN,GAAA;IAAA;EAAA;AAAA;AACA,IAAAO,MAAA,GAAAX,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAS,MAAA,EAAAR,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAO,MAAA,CAAAP,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAG,MAAA,CAAAP,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -1,114 +1,82 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.PolygonShape = void 0;
9
-
10
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
11
-
12
- var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
13
-
14
- var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
15
-
16
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
17
-
18
- var PolygonShape = /*#__PURE__*/function () {
19
- function PolygonShape() {
20
- (0, _classCallCheck2["default"])(this, PolygonShape);
9
+ class PolygonShape {
10
+ static create(shapes, e) {
11
+ const newShapes = [...shapes];
12
+ const newPolygon = {
13
+ id: 'newPolygon',
14
+ points: [{
15
+ x: e.evt.layerX,
16
+ y: e.evt.layerY
17
+ }],
18
+ group: 'polygons',
19
+ index: newShapes.length
20
+ };
21
+ newShapes.push(newPolygon);
22
+ return {
23
+ shapes: newShapes,
24
+ isDrawing: true,
25
+ isDrawingShapeId: newPolygon.id
26
+ };
21
27
  }
22
-
23
- (0, _createClass2["default"])(PolygonShape, null, [{
24
- key: "create",
25
- value: function create(shapes, e) {
26
- var newShapes = (0, _toConsumableArray2["default"])(shapes);
27
- var newPolygon = {
28
- id: 'newPolygon',
29
- points: [{
28
+ static addPoint(state, e, onPolygonComplete) {
29
+ // Number of pixels allowed to determine if the first point was clicked
30
+ const clickDelta = 5;
31
+ const shapesCopy = JSON.parse(JSON.stringify(state.shapes));
32
+ const currentShapeIndex = shapesCopy.findIndex(shape => shape.id === state.isDrawingShapeId);
33
+ if (currentShapeIndex !== -1) {
34
+ const currentShape = shapesCopy[currentShapeIndex];
35
+ if (currentShape.points && Array.isArray(currentShape.points)) {
36
+ const firstPoint = currentShape.points[0];
37
+
38
+ // If click is close enough to the first point (within clickDelta pixels), close the polygon
39
+ if (Math.abs(firstPoint.x - e.evt.layerX) <= clickDelta && Math.abs(firstPoint.y - e.evt.layerY) <= clickDelta) {
40
+ return PolygonShape.finalizeCreation(state, onPolygonComplete);
41
+ }
42
+ currentShape.points.push({
30
43
  x: e.evt.layerX,
31
44
  y: e.evt.layerY
32
- }],
33
- group: 'polygons',
34
- index: newShapes.length
35
- };
36
- newShapes.push(newPolygon);
37
- return {
38
- shapes: newShapes,
39
- isDrawing: true,
40
- isDrawingShapeId: newPolygon.id
41
- };
42
- }
43
- }, {
44
- key: "addPoint",
45
- value: function addPoint(state, e, onPolygonComplete) {
46
- // Number of pixels allowed to determine if the first point was clicked
47
- var clickDelta = 5;
48
- var shapesCopy = JSON.parse(JSON.stringify(state.shapes));
49
- var currentShapeIndex = shapesCopy.findIndex(function (shape) {
50
- return shape.id === state.isDrawingShapeId;
51
- });
52
-
53
- if (currentShapeIndex !== -1) {
54
- var currentShape = shapesCopy[currentShapeIndex];
55
-
56
- if (currentShape.points && Array.isArray(currentShape.points)) {
57
- var firstPoint = currentShape.points[0]; // If click is close enough to the first point (within clickDelta pixels), close the polygon
58
-
59
- if (Math.abs(firstPoint.x - e.evt.layerX) <= clickDelta && Math.abs(firstPoint.y - e.evt.layerY) <= clickDelta) {
60
- return PolygonShape.finalizeCreation(state, onPolygonComplete);
61
- }
62
-
63
- currentShape.points.push({
64
- x: e.evt.layerX,
65
- y: e.evt.layerY
66
- });
67
- shapesCopy[currentShapeIndex] = currentShape;
68
- return {
69
- shapes: shapesCopy
70
- };
71
- }
72
- }
73
-
74
- return state;
75
- }
76
- }, {
77
- key: "finalizeCreation",
78
- value: function finalizeCreation(state, onPolygonComplete) {
79
- var shapes = state.shapes;
80
- var tempShapes = (0, _toConsumableArray2["default"])(shapes);
81
- var highestId = Math.max.apply(Math, (0, _toConsumableArray2["default"])(state.shapes.map(function (shape) {
82
- return parseInt(shape.id) || 0;
83
- })).concat([0]));
84
- var polygonIndex = tempShapes.findIndex(function (shape) {
85
- return shape.id === state.isDrawingShapeId;
86
- });
87
-
88
- if (polygonIndex !== -1 && tempShapes[polygonIndex].points.length > 2) {
89
- var completedPolygon = tempShapes[polygonIndex];
90
- completedPolygon.id = "".concat(highestId + 1);
91
- onPolygonComplete(tempShapes);
45
+ });
46
+ shapesCopy[currentShapeIndex] = currentShape;
92
47
  return {
93
- isDrawing: false,
94
- shapes: tempShapes,
95
- isDrawingShapeId: undefined
48
+ shapes: shapesCopy
96
49
  };
97
50
  }
98
-
99
- return state;
100
- } // No need to update anything on mouse move,
101
- // but it's here if we need to add any logic later.
102
-
103
- }, {
104
- key: "handleMouseMove",
105
- value: function handleMouseMove(state, e) {
106
- return state;
107
51
  }
108
- }]);
109
- return PolygonShape;
110
- }();
52
+ return state;
53
+ }
54
+ static finalizeCreation(state, onPolygonComplete) {
55
+ const {
56
+ shapes
57
+ } = state;
58
+ const tempShapes = [...shapes];
59
+ const highestId = Math.max(...state.shapes.map(shape => parseInt(shape.id) || 0), 0);
60
+ const polygonIndex = tempShapes.findIndex(shape => shape.id === state.isDrawingShapeId);
61
+ if (polygonIndex !== -1 && tempShapes[polygonIndex].points.length > 2) {
62
+ const completedPolygon = tempShapes[polygonIndex];
63
+ completedPolygon.id = `${highestId + 1}`;
64
+ onPolygonComplete(tempShapes);
65
+ return {
66
+ isDrawing: false,
67
+ shapes: tempShapes,
68
+ isDrawingShapeId: undefined
69
+ };
70
+ }
71
+ return state;
72
+ }
111
73
 
74
+ // No need to update anything on mouse move,
75
+ // but it's here if we need to add any logic later.
76
+ static handleMouseMove(state, e) {
77
+ return state;
78
+ }
79
+ }
112
80
  exports.PolygonShape = PolygonShape;
113
- (0, _defineProperty2["default"])(PolygonShape, "name", 'polygon');
81
+ (0, _defineProperty2.default)(PolygonShape, "name", 'polygon');
114
82
  //# sourceMappingURL=polygon.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shapes/polygon.js"],"names":["PolygonShape","shapes","e","newShapes","newPolygon","id","points","x","evt","layerX","y","layerY","group","index","length","push","isDrawing","isDrawingShapeId","state","onPolygonComplete","clickDelta","shapesCopy","JSON","parse","stringify","currentShapeIndex","findIndex","shape","currentShape","Array","isArray","firstPoint","Math","abs","finalizeCreation","tempShapes","highestId","max","map","parseInt","polygonIndex","completedPolygon","undefined"],"mappings":";;;;;;;;;;;;;;;;;IAAaA,Y;;;;;;;WAGX,gBAAcC,MAAd,EAAsBC,CAAtB,EAAyB;AACvB,UAAMC,SAAS,uCAAOF,MAAP,CAAf;AACA,UAAMG,UAAU,GAAG;AACjBC,QAAAA,EAAE,EAAE,YADa;AAEjBC,QAAAA,MAAM,EAAE,CAAC;AAAEC,UAAAA,CAAC,EAAEL,CAAC,CAACM,GAAF,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AS,EAAE,KADN;AAELf,UAAAA,MAAM,EAAEkC,UAFH;AAGLlB,UAAAA,gBAAgB,EAAEyB;AAHb,SAAP;AAKD;;AAED,aAAOxB,KAAP;AACD,K,CAED;AACA;;;;WACA,yBAAuBA,KAAvB,EAA8BhB,CAA9B,EAAiC;AAC/B,aAAOgB,KAAP;AACD;;;;;;iCA/EUlB,Y,UACG,S","sourcesContent":["export class PolygonShape {\n static name = 'polygon'\n\n static create(shapes, e) {\n const newShapes = [...shapes];\n const newPolygon = {\n id: 'newPolygon',\n points: [{ x: e.evt.layerX, y: e.evt.layerY }],\n group: 'polygons',\n index: newShapes.length,\n };\n\n newShapes.push(newPolygon);\n\n return {\n shapes: newShapes,\n isDrawing: true,\n isDrawingShapeId: newPolygon.id,\n };\n }\n\n static addPoint(state, e, onPolygonComplete) {\n // Number of pixels allowed to determine if the first point was clicked\n const clickDelta = 5;\n\n const shapesCopy = JSON.parse(JSON.stringify(state.shapes));\n const currentShapeIndex = shapesCopy.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (currentShapeIndex !== -1) {\n const currentShape = shapesCopy[currentShapeIndex];\n if (currentShape.points && Array.isArray(currentShape.points)) {\n const firstPoint = currentShape.points[0];\n\n // If click is close enough to the first point (within clickDelta pixels), close the polygon\n if (\n Math.abs(firstPoint.x - e.evt.layerX) <= clickDelta &&\n Math.abs(firstPoint.y - e.evt.layerY) <= clickDelta\n ) {\n return PolygonShape.finalizeCreation(state, onPolygonComplete);\n }\n\n currentShape.points.push({ x: e.evt.layerX, y: e.evt.layerY });\n shapesCopy[currentShapeIndex] = currentShape;\n\n return {\n shapes: shapesCopy,\n };\n }\n }\n return state;\n }\n\n static finalizeCreation(state, onPolygonComplete) {\n const { shapes } = state;\n const tempShapes = [...shapes];\n const highestId = Math.max(...state.shapes.map((shape) => parseInt(shape.id) || 0), 0);\n\n const polygonIndex = tempShapes.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (polygonIndex !== -1 && tempShapes[polygonIndex].points.length > 2) {\n const completedPolygon = tempShapes[polygonIndex];\n\n completedPolygon.id = `${highestId + 1}`;\n onPolygonComplete(tempShapes);\n\n return {\n isDrawing: false,\n shapes: tempShapes,\n isDrawingShapeId: undefined,\n };\n }\n\n return state;\n }\n\n // No need to update anything on mouse move,\n // but it's here if we need to add any logic later.\n static handleMouseMove(state, e) {\n return state;\n }\n}\n"],"file":"polygon.js"}
1
+ {"version":3,"file":"polygon.js","names":["PolygonShape","create","shapes","e","newShapes","newPolygon","id","points","x","evt","layerX","y","layerY","group","index","length","push","isDrawing","isDrawingShapeId","addPoint","state","onPolygonComplete","clickDelta","shapesCopy","JSON","parse","stringify","currentShapeIndex","findIndex","shape","currentShape","Array","isArray","firstPoint","Math","abs","finalizeCreation","tempShapes","highestId","max","map","parseInt","polygonIndex","completedPolygon","undefined","handleMouseMove","exports","_defineProperty2","default"],"sources":["../../src/shapes/polygon.js"],"sourcesContent":["export class PolygonShape {\n static name = 'polygon'\n\n static create(shapes, e) {\n const newShapes = [...shapes];\n const newPolygon = {\n id: 'newPolygon',\n points: [{ x: e.evt.layerX, y: e.evt.layerY }],\n group: 'polygons',\n index: newShapes.length,\n };\n\n newShapes.push(newPolygon);\n\n return {\n shapes: newShapes,\n isDrawing: true,\n isDrawingShapeId: newPolygon.id,\n };\n }\n\n static addPoint(state, e, onPolygonComplete) {\n // Number of pixels allowed to determine if the first point was clicked\n const clickDelta = 5;\n\n const shapesCopy = JSON.parse(JSON.stringify(state.shapes));\n const currentShapeIndex = shapesCopy.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (currentShapeIndex !== -1) {\n const currentShape = shapesCopy[currentShapeIndex];\n if (currentShape.points && Array.isArray(currentShape.points)) {\n const firstPoint = currentShape.points[0];\n\n // If click is close enough to the first point (within clickDelta pixels), close the polygon\n if (\n Math.abs(firstPoint.x - e.evt.layerX) <= clickDelta &&\n Math.abs(firstPoint.y - e.evt.layerY) <= clickDelta\n ) {\n return PolygonShape.finalizeCreation(state, onPolygonComplete);\n }\n\n currentShape.points.push({ x: e.evt.layerX, y: e.evt.layerY });\n shapesCopy[currentShapeIndex] = currentShape;\n\n return {\n shapes: shapesCopy,\n };\n }\n }\n return state;\n }\n\n static finalizeCreation(state, onPolygonComplete) {\n const { shapes } = state;\n const tempShapes = [...shapes];\n const highestId = Math.max(...state.shapes.map((shape) => parseInt(shape.id) || 0), 0);\n\n const polygonIndex = tempShapes.findIndex((shape) => shape.id === state.isDrawingShapeId);\n\n if (polygonIndex !== -1 && tempShapes[polygonIndex].points.length > 2) {\n const completedPolygon = tempShapes[polygonIndex];\n\n completedPolygon.id = `${highestId + 1}`;\n onPolygonComplete(tempShapes);\n\n return {\n isDrawing: false,\n shapes: tempShapes,\n isDrawingShapeId: undefined,\n };\n }\n\n return state;\n }\n\n // No need to update anything on mouse move,\n // but it's here if we need to add any logic later.\n static handleMouseMove(state, e) {\n return state;\n }\n}\n"],"mappings":";;;;;;;;AAAO,MAAMA,YAAY,CAAC;EAGxB,OAAOC,MAAMA,CAACC,MAAM,EAAEC,CAAC,EAAE;IACvB,MAAMC,SAAS,GAAG,CAAC,GAAGF,MAAM,CAAC;IAC7B,MAAMG,UAAU,GAAG;MACjBC,EAAE,EAAE,YAAY;MAChBC,MAAM,EAAE,CAAC;QAAEC,CAAC,EAAEL,CAAC,CAACM,GAAG,CAACC,MAAM;QAAEC,CAAC,EAAER,CAAC,CAACM,GAAG,CAACG;MAAO,CAAC,CAAC;MAC9CC,KAAK,EAAE,UAAU;MACjBC,KAAK,EAAEV,SAAS,CAACW;IACnB,CAAC;IAEDX,SAAS,CAACY,IAAI,CAACX,UAAU,CAAC;IAE1B,OAAO;MACLH,MAAM,EAAEE,SAAS;MACjBa,SAAS,EAAE,IAAI;MACfC,gBAAgB,EAAEb,UAAU,CAACC;IAC/B,CAAC;EACH;EAEA,OAAOa,QAAQA,CAACC,KAAK,EAAEjB,CAAC,EAAEkB,iBAAiB,EAAE;IAC3C;IACA,MAAMC,UAAU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