@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.
- package/CHANGELOG.md +1083 -2394
- package/configure/CHANGELOG.md +894 -2092
- package/configure/lib/DeleteWidget.js +30 -43
- package/configure/lib/DeleteWidget.js.map +1 -1
- package/configure/lib/button.js +26 -45
- package/configure/lib/button.js.map +1 -1
- package/configure/lib/buttons/circle.js +20 -27
- package/configure/lib/buttons/circle.js.map +1 -1
- package/configure/lib/buttons/polygon.js +26 -33
- package/configure/lib/buttons/polygon.js.map +1 -1
- package/configure/lib/buttons/rectangle.js +26 -33
- package/configure/lib/buttons/rectangle.js.map +1 -1
- package/configure/lib/defaults.js +5 -3
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/hotspot-circle.js +136 -200
- package/configure/lib/hotspot-circle.js.map +1 -1
- package/configure/lib/hotspot-container.js +250 -355
- package/configure/lib/hotspot-container.js.map +1 -1
- package/configure/lib/hotspot-drawable.js +361 -473
- package/configure/lib/hotspot-drawable.js.map +1 -1
- package/configure/lib/hotspot-palette.js +92 -139
- package/configure/lib/hotspot-palette.js.map +1 -1
- package/configure/lib/hotspot-polygon.js +212 -318
- package/configure/lib/hotspot-polygon.js.map +1 -1
- package/configure/lib/hotspot-rectangle.js +132 -195
- package/configure/lib/hotspot-rectangle.js.map +1 -1
- package/configure/lib/icons.js +3 -7
- package/configure/lib/icons.js.map +1 -1
- package/configure/lib/image-konva.js +46 -86
- package/configure/lib/image-konva.js.map +1 -1
- package/configure/lib/index.js +162 -222
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/root.js +302 -394
- package/configure/lib/root.js.map +1 -1
- package/configure/lib/shapes/circle.js +69 -101
- package/configure/lib/shapes/circle.js.map +1 -1
- package/configure/lib/shapes/index.js +4 -12
- package/configure/lib/shapes/index.js.map +1 -1
- package/configure/lib/shapes/polygon.js +64 -96
- package/configure/lib/shapes/polygon.js.map +1 -1
- package/configure/lib/shapes/rectagle.js +69 -101
- package/configure/lib/shapes/rectagle.js.map +1 -1
- package/configure/lib/shapes/utils.js +2 -8
- package/configure/lib/shapes/utils.js.map +1 -1
- package/configure/lib/upload-control.js +25 -52
- package/configure/lib/upload-control.js.map +1 -1
- package/configure/lib/utils.js +85 -139
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +13 -12
- package/configure/src/__tests__/DeleteWidget.test.jsx +366 -0
- package/configure/src/__tests__/button.test.jsx +198 -0
- package/configure/src/__tests__/hotspot-circle.test.jsx +259 -0
- package/configure/src/__tests__/hotspot-container.test.js +50 -19
- package/configure/src/__tests__/hotspot-drawable.test.js +55 -34
- package/configure/src/__tests__/hotspot-palette.test.jsx +71 -0
- package/configure/src/__tests__/image-konva.test.jsx +226 -0
- package/configure/src/__tests__/index.test.js +167 -5
- package/configure/src/__tests__/root.test.js +89 -63
- package/configure/src/button.jsx +12 -20
- package/configure/src/defaults.js +1 -0
- package/configure/src/hotspot-circle.jsx +8 -19
- package/configure/src/hotspot-container.jsx +82 -98
- package/configure/src/hotspot-drawable.jsx +44 -46
- package/configure/src/hotspot-palette.jsx +45 -37
- package/configure/src/hotspot-polygon.jsx +3 -20
- package/configure/src/hotspot-rectangle.jsx +7 -19
- package/configure/src/icons.js +4 -2
- package/configure/src/index.js +12 -2
- package/configure/src/root.jsx +86 -80
- package/configure/src/upload-control.jsx +6 -16
- package/configure/src/utils.js +1 -1
- package/controller/CHANGELOG.md +569 -1432
- package/controller/lib/defaults.js +2 -3
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +238 -208
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +15 -37
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +3 -3
- package/controller/src/__tests__/index.test.js +4 -3
- package/controller/src/index.js +107 -5
- package/controller/src/utils.js +1 -2
- package/lib/hotspot/circle.js +109 -169
- package/lib/hotspot/circle.js.map +1 -1
- package/lib/hotspot/container.js +174 -260
- package/lib/hotspot/container.js.map +1 -1
- package/lib/hotspot/icons.js +4 -9
- package/lib/hotspot/icons.js.map +1 -1
- package/lib/hotspot/image-konva-tooltip.js +65 -112
- package/lib/hotspot/image-konva-tooltip.js.map +1 -1
- package/lib/hotspot/index.js +135 -198
- package/lib/hotspot/index.js.map +1 -1
- package/lib/hotspot/polygon.js +150 -215
- package/lib/hotspot/polygon.js.map +1 -1
- package/lib/hotspot/rectangle.js +128 -186
- package/lib/hotspot/rectangle.js.map +1 -1
- package/lib/index.js +187 -256
- package/lib/index.js.map +1 -1
- package/lib/session-updater.js +12 -18
- package/lib/session-updater.js.map +1 -1
- package/package.json +17 -31
- package/src/__tests__/container.test.jsx +27 -175
- package/src/__tests__/index.test.js +70 -30
- package/src/hotspot/__tests__/circle.test.jsx +464 -0
- package/src/hotspot/__tests__/container.test.jsx +546 -0
- package/src/hotspot/__tests__/image-konva-tooltip.test.jsx +510 -0
- package/src/hotspot/__tests__/polygon.test.jsx +502 -0
- package/src/hotspot/__tests__/rectangle.test.jsx +418 -0
- package/src/hotspot/circle.jsx +1 -13
- package/src/hotspot/container.jsx +35 -50
- package/src/hotspot/icons.js +6 -5
- package/src/hotspot/index.jsx +16 -28
- package/src/hotspot/polygon.jsx +3 -13
- package/src/hotspot/rectangle.jsx +4 -15
- package/src/index.js +21 -12
- package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -32
- package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -2198
- package/configure/node_modules/@pie-lib/config-ui/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/config-ui/esm/index.js +0 -3808
- package/configure/node_modules/@pie-lib/config-ui/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -75
- package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -99
- package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -445
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -195
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -189
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
- package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/help.js +0 -147
- package/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
- package/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
- package/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -139
- package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
- package/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -143
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -191
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -86
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
- package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -458
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -267
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -49
- package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -143
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -463
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -53
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -74
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -110
- package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
- package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
- package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
- package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/config-ui/package.json +0 -40
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/langs.test.jsx.snap +0 -32
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/settings-panel.test.js.snap +0 -115
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/two-choice.test.js.snap +0 -171
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/choice-utils.test.js +0 -12
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/langs.test.jsx +0 -37
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/number-text-field.test.jsx +0 -148
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/settings-panel.test.js +0 -204
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/two-choice.test.js +0 -24
- package/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -56
- package/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -73
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/feedback-menu.test.jsx.snap +0 -51
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/index.test.jsx.snap +0 -519
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/feedback-menu.test.jsx +0 -10
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/index.test.jsx +0 -92
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -90
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -365
- package/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-config.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-selector.test.jsx.snap +0 -38
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-config.test.jsx +0 -71
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-selector.test.jsx +0 -60
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -122
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -52
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -112
- package/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
- package/configure/node_modules/@pie-lib/config-ui/src/help.jsx +0 -87
- package/configure/node_modules/@pie-lib/config-ui/src/index.js +0 -55
- package/configure/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
- package/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -98
- package/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -111
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/__snapshots__/config.layout.test.jsx.snap +0 -59
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/config.layout.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/layout-content.test.jsx +0 -3
- package/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -75
- package/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
- package/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -118
- package/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -35
- package/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
- package/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -337
- package/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -202
- package/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -22
- package/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
- package/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -83
- package/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -328
- package/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -24
- package/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -49
- package/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -47
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/__snapshots__/index.test.jsx.snap +0 -170
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/index.test.jsx +0 -62
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -119
- package/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
- package/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
- package/configure/node_modules/@pie-lib/drag/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/drag/CHANGELOG.md +0 -709
- package/configure/node_modules/@pie-lib/drag/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/drag/esm/index.js +0 -525
- package/configure/node_modules/@pie-lib/drag/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/choice.js +0 -129
- package/configure/node_modules/@pie-lib/drag/lib/choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js +0 -35
- package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/drag-type.js +0 -15
- package/configure/node_modules/@pie-lib/drag/lib/drag-type.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js +0 -82
- package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js +0 -37
- package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/index.js +0 -89
- package/configure/node_modules/@pie-lib/drag/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js +0 -37
- package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/placeholder.js +0 -153
- package/configure/node_modules/@pie-lib/drag/lib/placeholder.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/preview-component.js +0 -194
- package/configure/node_modules/@pie-lib/drag/lib/preview-component.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/swap.js +0 -25
- package/configure/node_modules/@pie-lib/drag/lib/swap.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/uid-context.js +0 -40
- package/configure/node_modules/@pie-lib/drag/lib/uid-context.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js +0 -59
- package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/package.json +0 -34
- package/configure/node_modules/@pie-lib/drag/src/__tests__/__snapshots__/placeholder.test.jsx.snap +0 -68
- package/configure/node_modules/@pie-lib/drag/src/__tests__/placeholder.test.jsx +0 -48
- package/configure/node_modules/@pie-lib/drag/src/__tests__/uid-context.test.jsx +0 -21
- package/configure/node_modules/@pie-lib/drag/src/choice.jsx +0 -76
- package/configure/node_modules/@pie-lib/drag/src/drag-in-the-blank-dp.jsx +0 -19
- package/configure/node_modules/@pie-lib/drag/src/drag-type.js +0 -7
- package/configure/node_modules/@pie-lib/drag/src/droppable-placeholder.jsx +0 -38
- package/configure/node_modules/@pie-lib/drag/src/ica-dp.jsx +0 -23
- package/configure/node_modules/@pie-lib/drag/src/index.js +0 -23
- package/configure/node_modules/@pie-lib/drag/src/match-list-dp.jsx +0 -23
- package/configure/node_modules/@pie-lib/drag/src/placeholder.jsx +0 -145
- package/configure/node_modules/@pie-lib/drag/src/preview-component.jsx +0 -153
- package/configure/node_modules/@pie-lib/drag/src/swap.js +0 -14
- package/configure/node_modules/@pie-lib/drag/src/uid-context.js +0 -13
- package/configure/node_modules/@pie-lib/drag/src/with-drag-context.js +0 -32
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -32
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -2224
- package/configure/node_modules/@pie-lib/editable-html/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/editable-html/esm/index.js +0 -9998
- package/configure/node_modules/@pie-lib/editable-html/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js +0 -25
- package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/constants.js +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/constants.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -1356
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -269
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js +0 -73
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -305
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -381
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js +0 -37
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js +0 -397
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js +0 -114
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js +0 -38
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js +0 -80
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +0 -129
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -419
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -177
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -263
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -161
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -402
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -334
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -454
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -387
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -709
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -101
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js +0 -46
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -289
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -57
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -95
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -341
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js +0 -130
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -125
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js +0 -133
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -483
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -187
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js +0 -226
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js +0 -34
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -229
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -53
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -286
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -34
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -194
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -376
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -677
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/shared/alert-dialog.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/editable-html/package.json +0 -60
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/editor.test.jsx +0 -363
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/serialization.test.js +0 -291
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/utils.js +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/block-tags.js +0 -17
- package/configure/node_modules/@pie-lib/editable-html/src/constants.js +0 -7
- package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -1197
- package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -162
- package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popper.js +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -284
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -447
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/icons/index.jsx +0 -17
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/index.jsx +0 -346
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/customPlugin/index.jsx +0 -85
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/icons/index.jsx +0 -19
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/index.jsx +0 -72
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +0 -51
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +0 -44
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/component.test.jsx +0 -41
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar.test.jsx +0 -11
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/index.test.js +0 -95
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/insert-image-handler.test.js +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/mock-change.js +0 -15
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +0 -82
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -343
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -100
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -227
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -117
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -360
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/__tests__/index.test.js +0 -54
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -305
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/index.test.jsx +0 -245
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -379
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/__tests__/index.test.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -325
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -624
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -56
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/rendering/index.js +0 -31
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -215
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -76
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -71
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -299
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -70
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/math-templated/index.jsx +0 -104
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -90
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/CustomTablePlugin.js +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +0 -44
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/index.test.jsx +0 -401
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/table-toolbar.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -53
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -427
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -136
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/icons/index.jsx +0 -139
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/index.jsx +0 -23
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +0 -923
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +0 -20
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +0 -46
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +0 -94
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +0 -37
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +0 -51
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar.test.jsx +0 -106
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -206
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -38
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -257
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -23
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -138
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -338
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -31
- package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -621
- package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +0 -539
- package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/icons/esm/index.js +0 -1153
- package/configure/node_modules/@pie-lib/icons/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +0 -89
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +0 -153
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +0 -206
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +0 -130
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +0 -92
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/index.js +0 -72
- package/configure/node_modules/@pie-lib/icons/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +0 -229
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +0 -145
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +0 -183
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +0 -82
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +0 -206
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/sized.js +0 -41
- package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/package.json +0 -35
- package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +0 -3
- package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +0 -64
- package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +0 -121
- package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +0 -158
- package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +0 -76
- package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +0 -61
- package/configure/node_modules/@pie-lib/icons/src/index.js +0 -19
- package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +0 -189
- package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +0 -107
- package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +0 -130
- package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +0 -49
- package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +0 -152
- package/configure/node_modules/@pie-lib/icons/src/sized.jsx +0 -25
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -1077
- package/configure/node_modules/@pie-lib/math-input/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-input/esm/index.js +0 -2134
- package/configure/node_modules/@pie-lib/math-input/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -124
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -76
- package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -512
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -49
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -36
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -34
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -169
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -74
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -25
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -18
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -47
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -120
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -192
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js +0 -110
- package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -247
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -356
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/shared/constants.js +0 -16
- package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-input/package.json +0 -35
- package/configure/node_modules/@pie-lib/math-input/src/__tests__/__snapshots__/math-input-test.jsx.snap +0 -152
- package/configure/node_modules/@pie-lib/math-input/src/__tests__/math-input-test.jsx +0 -85
- package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -69
- package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -18
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +0 -193
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/index.test.jsx +0 -24
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/keys-layout.test.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -450
- package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/src/keys/__tests__/utils.test.js +0 -57
- package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
- package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -28
- package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
- package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
- package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
- package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -28
- package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -26
- package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -144
- package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -367
- package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
- package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
- package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -65
- package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
- package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -10
- package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -38
- package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
- package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
- package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/__snapshots__/input.test.jsx.snap +0 -9
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/input.test.jsx +0 -92
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/static.test.jsx +0 -57
- package/configure/node_modules/@pie-lib/math-input/src/mq/common-mq-styles.js +0 -105
- package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
- package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -5
- package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -176
- package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -285
- package/configure/node_modules/@pie-lib/math-input/src/updateSpans.js +0 -15
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -775
- package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +0 -690
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -38
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +0 -15
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -296
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -109
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -95
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -438
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -28
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +0 -14
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +0 -50
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +0 -155
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -5
- package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +0 -2
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +0 -9
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +0 -104
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -220
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -387
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -940
- package/configure/node_modules/@pie-lib/math-toolbar/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js +0 -1410
- package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -68
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -575
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -287
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -240
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js +0 -21
- package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -46
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +0 -31
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/index.test.js.snap +0 -30
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/math-preview.test.js.snap +0 -23
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/editor-and-pad.test.js +0 -25
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/index.test.js +0 -28
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/math-preview.test.js +0 -31
- package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -47
- package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -499
- package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -224
- package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -179
- package/configure/node_modules/@pie-lib/math-toolbar/src/utils.js +0 -11
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -1026
- package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js +0 -1616
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +0 -88
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +0 -9
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -135
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -344
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -150
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +0 -27
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -74
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -136
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -145
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -321
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -151
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +0 -122
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -181
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/render-ui/package.json +0 -40
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +0 -11
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +0 -37
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +0 -42
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +0 -12
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +0 -20
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +0 -21
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +0 -24
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +0 -56
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +0 -47
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +0 -16
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +0 -34
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +0 -254
- package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +0 -51
- package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +0 -1
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +0 -18
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +0 -13
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -121
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -99
- package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +0 -16
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -18
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -21
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -35
- package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
- package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -95
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -254
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -17
- package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
- package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
- package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +0 -66
- package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -116
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +0 -410
- package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js +0 -39
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js +0 -40
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/test-utils/package.json +0 -25
- package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +0 -45
- package/configure/node_modules/@pie-lib/test-utils/src/index.js +0 -18
- package/configure/node_modules/debug/CHANGELOG.md +0 -395
- package/configure/node_modules/debug/LICENSE +0 -19
- package/configure/node_modules/debug/README.md +0 -437
- package/configure/node_modules/debug/node.js +0 -1
- package/configure/node_modules/debug/package.json +0 -51
- package/configure/node_modules/debug/src/browser.js +0 -180
- package/configure/node_modules/debug/src/common.js +0 -249
- package/configure/node_modules/debug/src/index.js +0 -12
- package/configure/node_modules/debug/src/node.js +0 -177
- package/configure/node_modules/slate-dev-environment/Readme.md +0 -1
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +0 -287
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +0 -264
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +0 -282
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/package.json +0 -21
- package/configure/src/__tests__/DeleteWidget.test.js +0 -64
- package/configure/src/__tests__/__snapshots__/hotspot-container.test.js.snap +0 -192
- package/configure/src/__tests__/__snapshots__/hotspot-drawable.test.js.snap +0 -562
- package/configure/src/__tests__/__snapshots__/root.test.js.snap +0 -469
- package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.json +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.md +0 -410
- package/controller/node_modules/@pie-lib/controller-utils/NEXT.CHANGELOG.json +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/esm/index.js +0 -129
- package/controller/node_modules/@pie-lib/controller-utils/esm/index.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/index.js +0 -31
- package/controller/node_modules/@pie-lib/controller-utils/lib/index.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js +0 -29
- package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js +0 -140
- package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/package.json +0 -25
- package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/partial-scoring.test.js +0 -25
- package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/persistence.test.js +0 -151
- package/controller/node_modules/@pie-lib/controller-utils/src/index.js +0 -4
- package/controller/node_modules/@pie-lib/controller-utils/src/partial-scoring.js +0 -19
- package/controller/node_modules/@pie-lib/controller-utils/src/persistence.js +0 -103
- package/esm/configure.js +0 -31136
- package/esm/configure.js.map +0 -1
- package/esm/controller.js +0 -344
- package/esm/controller.js.map +0 -1
- package/esm/element.js +0 -28985
- package/esm/element.js.map +0 -1
- package/src/__tests__/__snapshots__/container.test.jsx.snap +0 -264
- package/src/__tests__/__snapshots__/index.test.js.snap +0 -81
- package/src/__tests__/__snapshots__/polygon.test.jsx.snap +0 -192
- package/src/__tests__/__snapshots__/rectangle.test.jsx.snap +0 -127
- package/src/__tests__/polygon.test.jsx +0 -230
- package/src/__tests__/rectangle.test.jsx +0 -232
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { render, waitFor } from '@testing-library/react';
|
|
3
|
+
import Konva from 'konva';
|
|
4
|
+
import ImageComponent from '../image-konva';
|
|
5
|
+
|
|
6
|
+
Konva.isBrowser = false;
|
|
7
|
+
|
|
8
|
+
jest.mock('react-konva', () => {
|
|
9
|
+
const React = require('react');
|
|
10
|
+
return {
|
|
11
|
+
Image: (props) => React.createElement('div', { 'data-testid': 'image', ...props }),
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
describe('ImageComponent', () => {
|
|
16
|
+
let defaultProps;
|
|
17
|
+
|
|
18
|
+
beforeEach(() => {
|
|
19
|
+
defaultProps = {
|
|
20
|
+
src: 'test-image.png',
|
|
21
|
+
x: 100,
|
|
22
|
+
y: 150,
|
|
23
|
+
};
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe('rendering', () => {
|
|
27
|
+
it('should render without crashing', () => {
|
|
28
|
+
const { container } = render(<ImageComponent {...defaultProps} />);
|
|
29
|
+
expect(container).toBeTruthy();
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
it('should render Image component', () => {
|
|
33
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} />);
|
|
34
|
+
expect(getByTestId('image')).toBeInTheDocument();
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
it('should render with correct position', () => {
|
|
38
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} x={200} y={250} />);
|
|
39
|
+
const image = getByTestId('image');
|
|
40
|
+
expect(image).toHaveAttribute('x', '200');
|
|
41
|
+
expect(image).toHaveAttribute('y', '250');
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
it('should render with fixed dimensions', () => {
|
|
45
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} />);
|
|
46
|
+
const image = getByTestId('image');
|
|
47
|
+
expect(image).toHaveAttribute('width', '20');
|
|
48
|
+
expect(image).toHaveAttribute('height', '20');
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it('should render at origin (0, 0)', () => {
|
|
52
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} x={0} y={0} />);
|
|
53
|
+
const image = getByTestId('image');
|
|
54
|
+
expect(image).toHaveAttribute('x', '0');
|
|
55
|
+
expect(image).toHaveAttribute('y', '0');
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
describe('image loading', () => {
|
|
60
|
+
it('should load image on mount', async () => {
|
|
61
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} />);
|
|
62
|
+
|
|
63
|
+
const image = getByTestId('image');
|
|
64
|
+
expect(image).toBeInTheDocument();
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('should call loadImage on mount', () => {
|
|
68
|
+
const { container } = render(<ImageComponent {...defaultProps} src="custom-image.jpg" />);
|
|
69
|
+
|
|
70
|
+
expect(container).toBeTruthy();
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
describe('component lifecycle', () => {
|
|
75
|
+
it('should reload image when src changes', async () => {
|
|
76
|
+
const { rerender, container } = render(<ImageComponent {...defaultProps} src="image1.png" />);
|
|
77
|
+
|
|
78
|
+
expect(container).toBeTruthy();
|
|
79
|
+
|
|
80
|
+
rerender(<ImageComponent {...defaultProps} src="image2.png" />);
|
|
81
|
+
|
|
82
|
+
expect(container).toBeTruthy();
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it('should not reload image when src stays the same', async () => {
|
|
86
|
+
const { rerender, getByTestId } = render(<ImageComponent {...defaultProps} src="same-image.png" />);
|
|
87
|
+
|
|
88
|
+
const image = getByTestId('image');
|
|
89
|
+
expect(image).toBeInTheDocument();
|
|
90
|
+
|
|
91
|
+
rerender(<ImageComponent {...defaultProps} src="same-image.png" x={200} y={250} />);
|
|
92
|
+
|
|
93
|
+
const updatedImage = getByTestId('image');
|
|
94
|
+
expect(updatedImage).toHaveAttribute('x', '200');
|
|
95
|
+
expect(updatedImage).toHaveAttribute('y', '250');
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
it('should clean up event listener on unmount', () => {
|
|
99
|
+
const { unmount } = render(<ImageComponent {...defaultProps} />);
|
|
100
|
+
|
|
101
|
+
expect(() => {
|
|
102
|
+
unmount();
|
|
103
|
+
}).not.toThrow();
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
it('should handle multiple mount/unmount cycles', () => {
|
|
107
|
+
const { unmount } = render(<ImageComponent {...defaultProps} />);
|
|
108
|
+
unmount();
|
|
109
|
+
|
|
110
|
+
expect(() => {
|
|
111
|
+
render(<ImageComponent {...defaultProps} />);
|
|
112
|
+
}).not.toThrow();
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
describe('position updates', () => {
|
|
117
|
+
it('should update x position', () => {
|
|
118
|
+
const { getByTestId, rerender } = render(<ImageComponent {...defaultProps} x={100} />);
|
|
119
|
+
let image = getByTestId('image');
|
|
120
|
+
expect(image).toHaveAttribute('x', '100');
|
|
121
|
+
|
|
122
|
+
rerender(<ImageComponent {...defaultProps} x={200} />);
|
|
123
|
+
image = getByTestId('image');
|
|
124
|
+
expect(image).toHaveAttribute('x', '200');
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
it('should update y position', () => {
|
|
128
|
+
const { getByTestId, rerender } = render(<ImageComponent {...defaultProps} y={150} />);
|
|
129
|
+
let image = getByTestId('image');
|
|
130
|
+
expect(image).toHaveAttribute('y', '150');
|
|
131
|
+
|
|
132
|
+
rerender(<ImageComponent {...defaultProps} y={250} />);
|
|
133
|
+
image = getByTestId('image');
|
|
134
|
+
expect(image).toHaveAttribute('y', '250');
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
it('should update both x and y positions', () => {
|
|
138
|
+
const { getByTestId, rerender } = render(<ImageComponent {...defaultProps} x={100} y={150} />);
|
|
139
|
+
let image = getByTestId('image');
|
|
140
|
+
expect(image).toHaveAttribute('x', '100');
|
|
141
|
+
expect(image).toHaveAttribute('y', '150');
|
|
142
|
+
|
|
143
|
+
rerender(<ImageComponent {...defaultProps} x={300} y={400} />);
|
|
144
|
+
image = getByTestId('image');
|
|
145
|
+
expect(image).toHaveAttribute('x', '300');
|
|
146
|
+
expect(image).toHaveAttribute('y', '400');
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
describe('edge cases', () => {
|
|
151
|
+
it('should handle negative positions', () => {
|
|
152
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} x={-50} y={-75} />);
|
|
153
|
+
const image = getByTestId('image');
|
|
154
|
+
expect(image).toHaveAttribute('x', '-50');
|
|
155
|
+
expect(image).toHaveAttribute('y', '-75');
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
it('should handle very large positions', () => {
|
|
159
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} x={10000} y={20000} />);
|
|
160
|
+
const image = getByTestId('image');
|
|
161
|
+
expect(image).toHaveAttribute('x', '10000');
|
|
162
|
+
expect(image).toHaveAttribute('y', '20000');
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
it('should handle data URI as src', () => {
|
|
166
|
+
const dataUri = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==';
|
|
167
|
+
const { container } = render(<ImageComponent {...defaultProps} src={dataUri} />);
|
|
168
|
+
|
|
169
|
+
expect(container).toBeTruthy();
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
it('should handle SVG as src', () => {
|
|
173
|
+
const { container } = render(<ImageComponent {...defaultProps} src="icon.svg" />);
|
|
174
|
+
expect(container).toBeTruthy();
|
|
175
|
+
});
|
|
176
|
+
|
|
177
|
+
it('should handle empty src', () => {
|
|
178
|
+
const { container } = render(<ImageComponent {...defaultProps} src="" />);
|
|
179
|
+
expect(container).toBeTruthy();
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
it('should handle URL with query parameters', () => {
|
|
183
|
+
const srcWithParams = 'image.png?width=100&height=100';
|
|
184
|
+
const { container } = render(<ImageComponent {...defaultProps} src={srcWithParams} />);
|
|
185
|
+
|
|
186
|
+
expect(container).toBeTruthy();
|
|
187
|
+
});
|
|
188
|
+
|
|
189
|
+
it('should handle relative paths', () => {
|
|
190
|
+
const { container } = render(<ImageComponent {...defaultProps} src="./images/icon.png" />);
|
|
191
|
+
expect(container).toBeTruthy();
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
it('should handle absolute paths', () => {
|
|
195
|
+
const { container } = render(<ImageComponent {...defaultProps} src="/assets/icon.png" />);
|
|
196
|
+
expect(container).toBeTruthy();
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
describe('image state', () => {
|
|
201
|
+
it('should initially render without image loaded', () => {
|
|
202
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} />);
|
|
203
|
+
const image = getByTestId('image');
|
|
204
|
+
expect(image).toBeInTheDocument();
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
it('should render component regardless of image load state', () => {
|
|
208
|
+
const { getByTestId } = render(<ImageComponent {...defaultProps} />);
|
|
209
|
+
const image = getByTestId('image');
|
|
210
|
+
expect(image).toBeInTheDocument();
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
describe('error handling', () => {
|
|
215
|
+
it('should handle image load error gracefully', () => {
|
|
216
|
+
const { container } = render(<ImageComponent {...defaultProps} src="nonexistent.png" />);
|
|
217
|
+
|
|
218
|
+
const imgElements = document.querySelectorAll('img[src="nonexistent.png"]');
|
|
219
|
+
imgElements.forEach(img => {
|
|
220
|
+
img.dispatchEvent(new Event('error'));
|
|
221
|
+
});
|
|
222
|
+
|
|
223
|
+
expect(container).toBeTruthy();
|
|
224
|
+
});
|
|
225
|
+
});
|
|
226
|
+
});
|
|
@@ -1,10 +1,29 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { createRoot } from 'react-dom/client';
|
|
3
|
+
|
|
4
|
+
jest.mock('react-konva', () => {
|
|
5
|
+
const React = require('react');
|
|
6
|
+
return {
|
|
7
|
+
Stage: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'stage', ...props }, children),
|
|
8
|
+
Layer: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'layer', ...props }, children),
|
|
9
|
+
Rect: (props) => React.createElement('div', { 'data-testid': 'rect', ...props }),
|
|
10
|
+
Circle: (props) => React.createElement('div', { 'data-testid': 'circle', ...props }),
|
|
11
|
+
Line: (props) => React.createElement('div', { 'data-testid': 'line', ...props }),
|
|
12
|
+
Group: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'group', ...props }, children),
|
|
13
|
+
Image: (props) => React.createElement('div', { 'data-testid': 'image', ...props }),
|
|
14
|
+
};
|
|
15
|
+
});
|
|
3
16
|
|
|
4
17
|
jest.mock('@pie-lib/config-ui', () => ({
|
|
18
|
+
InputContainer: (props) => <div {...props}>{props.children}</div>,
|
|
19
|
+
InputCheckbox: (props) => <div {...props}>{props.children}</div>,
|
|
20
|
+
FeedbackConfig: (props) => <div {...props}>{props.children}</div>,
|
|
5
21
|
choiceUtils: {
|
|
6
22
|
firstAvailableIndex: jest.fn(),
|
|
7
23
|
},
|
|
24
|
+
layout: {
|
|
25
|
+
ConfigLayout: (props) => <div {...props}>{props.children}</div>,
|
|
26
|
+
},
|
|
8
27
|
settings: {
|
|
9
28
|
Panel: (props) => <div {...props} />,
|
|
10
29
|
toggle: jest.fn(),
|
|
@@ -12,10 +31,148 @@ jest.mock('@pie-lib/config-ui', () => ({
|
|
|
12
31
|
},
|
|
13
32
|
}));
|
|
14
33
|
|
|
15
|
-
jest.
|
|
16
|
-
|
|
34
|
+
const mockRender = jest.fn();
|
|
35
|
+
const mockUnmount = jest.fn();
|
|
36
|
+
const mockCreateRoot = jest.fn(() => ({
|
|
37
|
+
render: mockRender,
|
|
38
|
+
unmount: mockUnmount,
|
|
17
39
|
}));
|
|
18
40
|
|
|
41
|
+
jest.mock('react-dom/client', () => ({
|
|
42
|
+
createRoot: jest.fn(() => ({
|
|
43
|
+
render: jest.fn(),
|
|
44
|
+
unmount: jest.fn(),
|
|
45
|
+
})),
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
jest.mock('../index', () => {
|
|
49
|
+
const sensibleDefaults = require('../defaults').default;
|
|
50
|
+
const { ModelUpdatedEvent } = require('@pie-framework/pie-configure-events');
|
|
51
|
+
const { createRoot } = require('react-dom/client');
|
|
52
|
+
|
|
53
|
+
class MockHTMLElement {
|
|
54
|
+
constructor() {
|
|
55
|
+
this._root = null;
|
|
56
|
+
this._model = null;
|
|
57
|
+
this._configuration = sensibleDefaults.configuration;
|
|
58
|
+
this.dispatchEvent = jest.fn();
|
|
59
|
+
this.onModelChanged = this.onModelChanged.bind(this);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
__esModule: true,
|
|
65
|
+
default: class HotspotConfigure extends MockHTMLElement {
|
|
66
|
+
static createDefaultModel = (model = {}) => ({
|
|
67
|
+
...sensibleDefaults.model,
|
|
68
|
+
...model,
|
|
69
|
+
hotspotList: model.hotspotList || [model.hotspotColor] || sensibleDefaults.model.hotspotList,
|
|
70
|
+
outlineList: model.outlineList || [model.outlineColor] || sensibleDefaults.model.outlineList,
|
|
71
|
+
shapes: model.shapes || sensibleDefaults.model.shapes || {},
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
constructor() {
|
|
75
|
+
super();
|
|
76
|
+
this._model = HotspotConfigure.createDefaultModel();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
set model(s) {
|
|
80
|
+
this._model = HotspotConfigure.createDefaultModel(s);
|
|
81
|
+
this._render();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
set configuration(c) {
|
|
85
|
+
this._configuration = {
|
|
86
|
+
...sensibleDefaults.configuration,
|
|
87
|
+
...c,
|
|
88
|
+
};
|
|
89
|
+
this._render();
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
_render() {
|
|
93
|
+
if (!this._root) {
|
|
94
|
+
this._root = createRoot(global.document.createElement('div'));
|
|
95
|
+
}
|
|
96
|
+
this._root.render(null);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
dispatchModelUpdated(reset) {
|
|
100
|
+
const resetValue = !!reset;
|
|
101
|
+
this.dispatchEvent(new ModelUpdatedEvent(this._model, resetValue));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
onModelChanged(m, reset) {
|
|
105
|
+
this._model = m;
|
|
106
|
+
this.dispatchModelUpdated(reset);
|
|
107
|
+
this._render();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
onModelChangedByConfig = (m, propertyType) => {
|
|
111
|
+
const _model = m;
|
|
112
|
+
|
|
113
|
+
if (propertyType === 'multipleCorrect') {
|
|
114
|
+
const { rectangles = [], polygons = [], circles = [] } = _model.shapes || {};
|
|
115
|
+
|
|
116
|
+
_model.shapes.rectangles = rectangles.map((shape) => ({ ...shape, correct: false }));
|
|
117
|
+
_model.shapes.polygons = polygons.map((shape) => ({ ...shape, correct: false }));
|
|
118
|
+
_model.shapes.circles = circles.map((shape) => ({ ...shape, correct: false }));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
this.onModelChanged(_model);
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
onColorChanged = (colorType, color) => {
|
|
125
|
+
this.onModelChanged({
|
|
126
|
+
...this._model,
|
|
127
|
+
[colorType]: color,
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
onPromptChanged = (prompt) => {
|
|
132
|
+
this.onModelChanged({
|
|
133
|
+
...this._model,
|
|
134
|
+
prompt,
|
|
135
|
+
});
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
onRationaleChanged = (rationale) => {
|
|
139
|
+
this.onModelChanged({
|
|
140
|
+
...this._model,
|
|
141
|
+
rationale,
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
onTeacherInstructionsChanged = (teacherInstructions) => {
|
|
146
|
+
this.onModelChanged({
|
|
147
|
+
...this._model,
|
|
148
|
+
teacherInstructions,
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
onUpdateImageDimension = (dimensions) => {
|
|
153
|
+
this.onModelChanged({
|
|
154
|
+
...this._model,
|
|
155
|
+
dimensions,
|
|
156
|
+
});
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
onUpdateShapes = (shapes) => {
|
|
160
|
+
this.onModelChanged({
|
|
161
|
+
...this._model,
|
|
162
|
+
shapes,
|
|
163
|
+
});
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
onImageUpload = (imageUrl) => {
|
|
167
|
+
this.onModelChanged({
|
|
168
|
+
...this._model,
|
|
169
|
+
imageUrl,
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
};
|
|
174
|
+
});
|
|
175
|
+
|
|
19
176
|
const model = () => ({
|
|
20
177
|
prompt: 'This is the question prompt',
|
|
21
178
|
imageUrl: '',
|
|
@@ -49,9 +206,11 @@ describe('index', () => {
|
|
|
49
206
|
let el;
|
|
50
207
|
let onModelChanged = jest.fn();
|
|
51
208
|
let initialModel = model();
|
|
209
|
+
let createRoot;
|
|
52
210
|
|
|
53
211
|
beforeAll(() => {
|
|
54
212
|
Def = require('../index').default;
|
|
213
|
+
createRoot = require('react-dom/client').createRoot;
|
|
55
214
|
});
|
|
56
215
|
|
|
57
216
|
beforeEach(() => {
|
|
@@ -61,8 +220,11 @@ describe('index', () => {
|
|
|
61
220
|
});
|
|
62
221
|
|
|
63
222
|
describe('set model', () => {
|
|
64
|
-
it('calls
|
|
65
|
-
expect(
|
|
223
|
+
it('calls createRoot and render', () => {
|
|
224
|
+
expect(createRoot).toHaveBeenCalled();
|
|
225
|
+
// The render method is called on the root instance
|
|
226
|
+
const rootInstance = createRoot.mock.results[0].value;
|
|
227
|
+
expect(rootInstance.render).toHaveBeenCalled();
|
|
66
228
|
});
|
|
67
229
|
});
|
|
68
230
|
|
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { render } from '@testing-library/react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Root } from '../root';
|
|
4
4
|
import defaultValues from '../defaults';
|
|
5
5
|
|
|
6
|
+
jest.mock('react-konva', () => {
|
|
7
|
+
const React = require('react');
|
|
8
|
+
return {
|
|
9
|
+
Stage: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'stage', ...props }, children),
|
|
10
|
+
Layer: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'layer', ...props }, children),
|
|
11
|
+
Rect: (props) => React.createElement('div', { 'data-testid': 'rect', ...props }),
|
|
12
|
+
Circle: (props) => React.createElement('div', { 'data-testid': 'circle', ...props }),
|
|
13
|
+
Line: (props) => React.createElement('div', { 'data-testid': 'line', ...props }),
|
|
14
|
+
Group: ({ children, ...props }) => React.createElement('div', { 'data-testid': 'group', ...props }, children),
|
|
15
|
+
Image: (props) => React.createElement('div', { 'data-testid': 'image', ...props }),
|
|
16
|
+
};
|
|
17
|
+
});
|
|
18
|
+
|
|
6
19
|
jest.mock('@pie-lib/config-ui', () => ({
|
|
20
|
+
InputContainer: (props) => <div {...props}>{props.children}</div>,
|
|
21
|
+
NumberTextField: (props) => <input type="number" {...props} />,
|
|
7
22
|
choiceUtils: {
|
|
8
23
|
firstAvailableIndex: jest.fn(),
|
|
9
24
|
},
|
|
@@ -11,6 +26,7 @@ jest.mock('@pie-lib/config-ui', () => ({
|
|
|
11
26
|
Panel: (props) => <div {...props} />,
|
|
12
27
|
toggle: jest.fn(),
|
|
13
28
|
radio: jest.fn(),
|
|
29
|
+
dropdown: jest.fn(),
|
|
14
30
|
},
|
|
15
31
|
layout: {
|
|
16
32
|
ConfigLayout: ({ children }) => <div>{children}</div>,
|
|
@@ -103,72 +119,53 @@ const model = () => ({
|
|
|
103
119
|
describe('Root', () => {
|
|
104
120
|
let initialModel = model();
|
|
105
121
|
|
|
106
|
-
describe('render', () => {
|
|
107
|
-
it('renders', () => {
|
|
108
|
-
const props = {
|
|
109
|
-
classes: {},
|
|
110
|
-
configuration: defaultValues.configuration,
|
|
111
|
-
model: initialModel,
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
expect(shallow(<Root {...props} />)).toMatchSnapshot();
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
|
|
118
122
|
describe('logic', () => {
|
|
119
|
-
let
|
|
120
|
-
onColorChanged = jest.fn();
|
|
123
|
+
let onColorChanged = jest.fn();
|
|
121
124
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
],
|
|
141
|
-
},
|
|
125
|
+
const createInstance = (config, onUpdateImageDimension, onUpdateShapes) => {
|
|
126
|
+
const props = {
|
|
127
|
+
classes: {},
|
|
128
|
+
configuration: config || defaultValues.configuration,
|
|
129
|
+
model: {
|
|
130
|
+
...initialModel,
|
|
131
|
+
dimensions: { width: 200, height: 300 },
|
|
132
|
+
shapes: {
|
|
133
|
+
rectangles: [{ x: 10, y: 10, height: 100, width: 100 }],
|
|
134
|
+
polygons: [
|
|
135
|
+
{
|
|
136
|
+
points: [
|
|
137
|
+
{ x: 0, y: 200 },
|
|
138
|
+
{ x: 200, y: 200 },
|
|
139
|
+
{ x: 100, y: 300 },
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
],
|
|
142
143
|
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
return shallow(<Root {...props} />);
|
|
144
|
+
},
|
|
145
|
+
onColorChanged,
|
|
146
|
+
onUpdateImageDimension,
|
|
147
|
+
onUpdateShapes,
|
|
149
148
|
};
|
|
150
|
-
|
|
149
|
+
|
|
150
|
+
return new Root(props);
|
|
151
|
+
};
|
|
151
152
|
|
|
152
153
|
describe('handleColorChange', () => {
|
|
153
154
|
it('calls onColorChanged', () => {
|
|
154
|
-
|
|
155
|
-
|
|
155
|
+
const instance = createInstance();
|
|
156
|
+
instance.handleColorChange('type', 'color');
|
|
156
157
|
|
|
157
158
|
expect(onColorChanged).toHaveBeenLastCalledWith('typeColor', 'color');
|
|
158
159
|
});
|
|
159
160
|
});
|
|
160
161
|
|
|
161
162
|
describe('KEEP IMAGE ASPECT RATIO: handleOnUpdateImageDimensions: calls onUpdateImageDimension & onUpdateShapes', () => {
|
|
162
|
-
let wrapper;
|
|
163
163
|
let onUpdateImageDimension = jest.fn();
|
|
164
164
|
let onUpdateShapes = jest.fn();
|
|
165
165
|
|
|
166
|
-
beforeEach(() => {
|
|
167
|
-
wrapper = w(undefined, onUpdateImageDimension, onUpdateShapes);
|
|
168
|
-
});
|
|
169
|
-
|
|
170
166
|
it('increase width with 100%:', () => {
|
|
171
|
-
|
|
167
|
+
const instance = createInstance(undefined, onUpdateImageDimension, onUpdateShapes);
|
|
168
|
+
instance.handleOnUpdateImageDimensions(400, 'width');
|
|
172
169
|
|
|
173
170
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
174
171
|
width: 400,
|
|
@@ -191,7 +188,8 @@ describe('Root', () => {
|
|
|
191
188
|
});
|
|
192
189
|
|
|
193
190
|
it('decrease width with 50%', () => {
|
|
194
|
-
|
|
191
|
+
const instance = createInstance(undefined, onUpdateImageDimension, onUpdateShapes);
|
|
192
|
+
instance.handleOnUpdateImageDimensions(100, 'width');
|
|
195
193
|
|
|
196
194
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
197
195
|
width: 100,
|
|
@@ -214,7 +212,8 @@ describe('Root', () => {
|
|
|
214
212
|
});
|
|
215
213
|
|
|
216
214
|
it('increase height with 50%:', () => {
|
|
217
|
-
|
|
215
|
+
const instance = createInstance(undefined, onUpdateImageDimension, onUpdateShapes);
|
|
216
|
+
instance.handleOnUpdateImageDimensions(450, 'height');
|
|
218
217
|
|
|
219
218
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
220
219
|
width: 300,
|
|
@@ -237,7 +236,8 @@ describe('Root', () => {
|
|
|
237
236
|
});
|
|
238
237
|
|
|
239
238
|
it('decrease height with 10%', () => {
|
|
240
|
-
|
|
239
|
+
const instance = createInstance(undefined, onUpdateImageDimension, onUpdateShapes);
|
|
240
|
+
instance.handleOnUpdateImageDimensions(270, 'height');
|
|
241
241
|
|
|
242
242
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
243
243
|
width: 180,
|
|
@@ -261,12 +261,11 @@ describe('Root', () => {
|
|
|
261
261
|
});
|
|
262
262
|
|
|
263
263
|
describe('DO NOT KEEP IMAGE ASPECT RATIO: handleOnUpdateImageDimensions: calls onUpdateImageDimension & onUpdateShapes', () => {
|
|
264
|
-
let wrapper;
|
|
265
264
|
let onUpdateImageDimension = jest.fn();
|
|
266
265
|
let onUpdateShapes = jest.fn();
|
|
267
266
|
|
|
268
|
-
|
|
269
|
-
|
|
267
|
+
it('increase width with 100%:', () => {
|
|
268
|
+
const instance = createInstance(
|
|
270
269
|
{
|
|
271
270
|
...defaultValues.configuration,
|
|
272
271
|
preserveAspectRatio: {
|
|
@@ -276,10 +275,7 @@ describe('Root', () => {
|
|
|
276
275
|
onUpdateImageDimension,
|
|
277
276
|
onUpdateShapes,
|
|
278
277
|
);
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
it('increase width with 100%:', () => {
|
|
282
|
-
wrapper.instance().handleOnUpdateImageDimensions(400, 'width');
|
|
278
|
+
instance.handleOnUpdateImageDimensions(400, 'width');
|
|
283
279
|
|
|
284
280
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
285
281
|
width: 400,
|
|
@@ -302,7 +298,17 @@ describe('Root', () => {
|
|
|
302
298
|
});
|
|
303
299
|
|
|
304
300
|
it('decrease width with 50%', () => {
|
|
305
|
-
|
|
301
|
+
const instance = createInstance(
|
|
302
|
+
{
|
|
303
|
+
...defaultValues.configuration,
|
|
304
|
+
preserveAspectRatio: {
|
|
305
|
+
enabled: false,
|
|
306
|
+
},
|
|
307
|
+
},
|
|
308
|
+
onUpdateImageDimension,
|
|
309
|
+
onUpdateShapes,
|
|
310
|
+
);
|
|
311
|
+
instance.handleOnUpdateImageDimensions(100, 'width');
|
|
306
312
|
|
|
307
313
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
308
314
|
width: 100,
|
|
@@ -325,7 +331,17 @@ describe('Root', () => {
|
|
|
325
331
|
});
|
|
326
332
|
|
|
327
333
|
it('increase height with 50%:', () => {
|
|
328
|
-
|
|
334
|
+
const instance = createInstance(
|
|
335
|
+
{
|
|
336
|
+
...defaultValues.configuration,
|
|
337
|
+
preserveAspectRatio: {
|
|
338
|
+
enabled: false,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
onUpdateImageDimension,
|
|
342
|
+
onUpdateShapes,
|
|
343
|
+
);
|
|
344
|
+
instance.handleOnUpdateImageDimensions(450, 'height');
|
|
329
345
|
|
|
330
346
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
331
347
|
width: 200,
|
|
@@ -348,7 +364,17 @@ describe('Root', () => {
|
|
|
348
364
|
});
|
|
349
365
|
|
|
350
366
|
it('decrease height with 10%', () => {
|
|
351
|
-
|
|
367
|
+
const instance = createInstance(
|
|
368
|
+
{
|
|
369
|
+
...defaultValues.configuration,
|
|
370
|
+
preserveAspectRatio: {
|
|
371
|
+
enabled: false,
|
|
372
|
+
},
|
|
373
|
+
},
|
|
374
|
+
onUpdateImageDimension,
|
|
375
|
+
onUpdateShapes,
|
|
376
|
+
);
|
|
377
|
+
instance.handleOnUpdateImageDimensions(270, 'height');
|
|
352
378
|
|
|
353
379
|
expect(onUpdateImageDimension).toBeCalledWith({
|
|
354
380
|
width: 200,
|