@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["log","normalize","question","defaults","model","session","env","normalizedQuestion","imageUrl","dimensions","hotspotColor","hoverOutlineColor","selectedHotspotColor","multipleCorrect","outlineColor","partialScoring","prompt","shapes","language","fontSizeFactor","autoplayAudioEnabled","completeAudioEnabled","customAudioButton","rectangles","polygons","circles","shouldIncludeCorrectResponse","mode","role","Promise","resolve","out","disabled","map","index","correct","rectProps","polyProps","circleProps","responseCorrect","undefined","extraCSSRules","rationale","rationaleEnabled","teacherInstructions","teacherInstructionsEnabled","promptEnabled","strokeWidth","createDefaultModel","getScore","config","answers","partialScoringEnabled","enabled","correctAnswers","selectedChoices","choices","correctChoices","filter","choice","forEach","shape","selected","answer","id","correctlySelected","extraAnswers","length","total","str","toFixed","parseFloat","outcome","score","empty","returnShapesCorrect","i","push","createCorrectResponseSession","rectangleCorrect","polygonsCorrect","circlesCorrect","getInnerText","html","replaceAll","getContent","replace","validate","minShapes","maxShapes","maxSelections","errors","field","required","allShapes","Object","values","reduce","acc","nbOfSelections","nbOfShapes","selections"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AAEA;;;;;;;;;;AAEA,IAAMA,GAAG,GAAG,uBAAM,iCAAN,CAAZ;;AAEO,IAAMC,SAAS,GAAG,SAAZA,SAAY,CAACC,QAAD;AAAA,yCACpBC,oBADoB,GAEpBD,QAFoB;AAAA,CAAlB;;;;AAKA,SAASE,KAAT,CAAeF,QAAf,EAAyBG,OAAzB,EAAkCC,GAAlC,EAAuC;AAC5C,MAAMC,kBAAkB,GAAGN,SAAS,CAACC,QAAD,CAApC;AACA,MACEM,QADF,GAgBID,kBAhBJ,CACEC,QADF;AAAA,MAEEC,UAFF,GAgBIF,kBAhBJ,CAEEE,UAFF;AAAA,MAGEC,YAHF,GAgBIH,kBAhBJ,CAGEG,YAHF;AAAA,MAIEC,iBAJF,GAgBIJ,kBAhBJ,CAIEI,iBAJF;AAAA,MAKEC,oBALF,GAgBIL,kBAhBJ,CAKEK,oBALF;AAAA,MAMEC,eANF,GAgBIN,kBAhBJ,CAMEM,eANF;AAAA,MAOEC,YAPF,GAgBIP,kBAhBJ,CAOEO,YAPF;AAAA,MAQEC,cARF,GAgBIR,kBAhBJ,CAQEQ,cARF;AAAA,MASEC,MATF,GAgBIT,kBAhBJ,CASES,MATF;AAAA,MAUEC,MAVF,GAgBIV,kBAhBJ,CAUEU,MAVF;AAAA,MAWEC,QAXF,GAgBIX,kBAhBJ,CAWEW,QAXF;AAAA,MAYEC,cAZF,GAgBIZ,kBAhBJ,CAYEY,cAZF;AAAA,MAaEC,oBAbF,GAgBIb,kBAhBJ,CAaEa,oBAbF;AAAA,MAcEC,oBAdF,GAg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AgCwE,SAAhC;AACD;;AAED,MAAIU,cAAc,GAAG,CAArB,EAAwB;AACtBR,IAAAA,MAAM,CAACU,UAAP,GAAoB,4CAApB;AACD,GAFD,MAEO,IAAIF,cAAc,GAAGT,aAArB,EAAoC;AACzCC,IAAAA,MAAM,CAACU,UAAP,0BAAoCX,aAApC;AACD;;AAED,SAAOC,MAAP;AACD,CA9BM","sourcesContent":["import debug from 'debug';\nimport isEmpty from 'lodash/isEmpty';\nimport { partialScoring } from '@pie-lib/controller-utils';\n\nimport { isResponseCorrect } from './utils';\n\nimport defaults from './defaults';\n\nconst log = debug('pie-elements:hotspot:controller');\n\nexport const normalize = (question) => ({\n ...defaults,\n ...question,\n});\n\nexport function model(question, session, env) {\n const normalizedQuestion = normalize(question);\n const {\n imageUrl,\n dimensions,\n hotspotColor,\n hoverOutlineColor,\n selectedHotspotColor,\n multipleCorrect,\n outlineColor,\n partialScoring,\n prompt,\n shapes,\n language,\n fontSizeFactor,\n autoplayAudioEnabled,\n completeAudioEnabled,\n customAudioButton,\n } = normalizedQuestion;\n const { rectangles, polygons, circles } = shapes || {};\n\n const shouldIncludeCorrectResponse = env.mode === 'evaluate' || (env.role === 'instructor' && env.mode === 'view');\n\n return new Promise((resolve) => {\n const out = {\n disabled: env.mode !== 'gather',\n mode: env.mode,\n dimensions,\n imageUrl,\n outlineColor,\n hotspotColor,\n hoverOutlineColor,\n selectedHotspotColor,\n multipleCorrect,\n partialScoring,\n language,\n fontSizeFactor,\n autoplayAudioEnabled,\n completeAudioEnabled,\n customAudioButton,\n shapes: {\n ...shapes,\n // eslint-disable-next-line no-unused-vars\n rectangles: (rectangles || []).map(({ index, correct, ...rectProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...rectProps } : { ...rectProps },\n ),\n // eslint-disable-next-line no-unused-vars\n polygons: (polygons || []).map(({ index, correct, ...polyProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...polyProps } : { ...polyProps },\n ),\n // eslint-disable-next-line no-unused-vars\n circles: (circles || []).map(({ index, correct, ...circleProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...circleProps } : { ...circleProps },\n ),\n },\n responseCorrect: env.mode === 'evaluate' ? isResponseCorrect(normalizedQuestion, session) : undefined,\n extraCSSRules: normalizedQuestion.extraCSSRules,\n };\n\n if (env.role === 'instructor' && (env.mode === 'view' || env.mode === 'evaluate')) {\n out.rationale = normalizedQuestion.rationaleEnabled ? normalizedQuestion.rationale : null;\n out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled\n ? normalizedQuestion.teacherInstructions\n : null;\n } else {\n out.rationale = null;\n out.teacherInstructions = null;\n }\n\n out.prompt = normalizedQuestion.promptEnabled ? prompt : null;\n out.strokeWidth = normalizedQuestion.strokeWidth;\n\n resolve(out);\n });\n}\n\nexport const createDefaultModel = (model = {}) =>\n new Promise((resolve) => {\n resolve({\n ...defaults,\n ...model,\n });\n });\n\nconst getScore = (config, session, env = {}) => {\n const { answers } = session || {};\n\n if (!config.shapes || (!config.shapes.rectangles && !config.shapes.polygons && !config.shapes.circles)) {\n return 0;\n }\n\n const { shapes: { rectangles = [], polygons = [], circles = [] } = {} } = config;\n const partialScoringEnabled = partialScoring.enabled(config, env);\n\n if (!partialScoringEnabled) {\n return isResponseCorrect(config, session) ? 1 : 0;\n }\n\n let correctAnswers = 0;\n let selectedChoices = 0;\n\n const choices = [...rectangles, ...polygons, ...circles];\n\n const correctChoices = choices.filter((choice) => choice.correct);\n\n choices.forEach((shape) => {\n const selected = answers && answers.filter((answer) => answer.id === shape.id)[0];\n const correctlySelected = shape.correct && selected;\n\n if (selected) {\n selectedChoices += 1;\n }\n\n if (correctlySelected) {\n correctAnswers += 1;\n }\n });\n\n const extraAnswers = selectedChoices > correctChoices.length ? selectedChoices - correctChoices.length : 0;\n\n const total = correctChoices.length === 0 ? 1 : correctChoices.length;\n const str = ((correctAnswers - extraAnswers) / total).toFixed(2);\n\n return str < 0 ? 0 : parseFloat(str);\n};\n\nexport function outcome(config, session, env = {}) {\n return new Promise((resolve) => {\n log('outcome...');\n\n if (!session || isEmpty(session)) {\n resolve({ score: 0, empty: true });\n }\n\n if (session.answers) {\n const score = getScore(config, session, env);\n resolve({ score });\n } else {\n resolve({ score: 0, empty: true });\n }\n });\n}\n\nconst returnShapesCorrect = (shapes) => {\n let answers = [];\n\n shapes.forEach((i) => {\n const { correct, id } = i;\n if (correct) {\n answers.push({ id });\n }\n });\n return answers;\n};\n\nexport const createCorrectResponseSession = (question, env) => {\n return new Promise((resolve) => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n const { shapes: { rectangles = [], circles = [], polygons = {} } = {} } = question;\n\n const rectangleCorrect = returnShapesCorrect(rectangles);\n const polygonsCorrect = returnShapesCorrect(polygons);\n const circlesCorrect = returnShapesCorrect(circles);\n\n resolve({\n answers: [...rectangleCorrect, ...polygonsCorrect, ...circlesCorrect],\n id: '1',\n });\n } else {\n resolve(null);\n }\n });\n};\n\n// remove all html tags\nconst getInnerText = (html) => (html || '').replaceAll(/<[^>]*>/g, '');\n\n// remove all html tags except img, iframe and source tag for audio\nconst getContent = (html) => (html || '').replace(/(<(?!img|iframe|source)([^>]+)>)/gi, '');\n\nexport const validate = (model = {}, config = {}) => {\n const { shapes } = model;\n const { minShapes = 2, maxShapes, maxSelections } = config;\n const errors = {};\n\n ['teacherInstructions', 'prompt', 'rationale'].forEach((field) => {\n if (config[field]?.required && !getContent(model[field])) {\n errors[field] = 'This field is required.';\n }\n });\n\n const allShapes = Object.values(shapes || {}).reduce((acc, shape) => [...acc, ...shape], []);\n\n const nbOfSelections = (allShapes || []).reduce((acc, shape) => (shape.correct ? acc + 1 : acc), 0);\n\n const nbOfShapes = (allShapes || []).length;\n\n if (nbOfShapes < minShapes) {\n errors.shapes = `There should be at least ${minShapes} shapes defined.`;\n } else if (nbOfShapes > maxShapes) {\n errors.shapes = `No more than ${maxShapes} shapes should be defined.`;\n }\n\n if (nbOfSelections < 1) {\n errors.selections = 'There should be at least 1 shape selected.';\n } else if (nbOfSelections > maxSelections) {\n errors.selections = `No more than ${maxSelections} shapes should be selected.`;\n }\n\n return errors;\n};\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_debug","_interopRequireDefault","require","_lodashEs","_controllerUtils","_utils","_defaults","log","debug","normalize","question","defaults","exports","model","session","env","normalizedQuestion","imageUrl","dimensions","hotspotColor","hoverOutlineColor","selectedHotspotColor","multipleCorrect","outlineColor","partialScoring","prompt","shapes","language","fontSizeFactor","autoplayAudioEnabled","completeAudioEnabled","customAudioButton","rectangles","polygons","circles","shouldIncludeCorrectResponse","mode","role","Promise","resolve","out","disabled","map","index","correct","rectProps","polyProps","circleProps","responseCorrect","isResponseCorrect","undefined","extraCSSRules","rationale","rationaleEnabled","teacherInstructions","teacherInstructionsEnabled","promptEnabled","strokeWidth","createDefaultModel","getScore","config","answers","partialScoringEnabled","enabled","correctAnswers","selectedChoices","choices","correctChoices","filter","choice","forEach","shape","selected","answer","id","correctlySelected","extraAnswers","length","total","str","toFixed","parseFloat","getLogTrace","traceLog","allShapes","push","correctShapes","totalShapes","correctSelections","incorrectSelections","find","s","missedCorrect","correctShape","some","totalCorrectAvailable","extraSelections","score","outcome","isEmpty","empty","returnShapesCorrect","i","createCorrectResponseSession","rectangleCorrect","polygonsCorrect","circlesCorrect","getInnerText","html","replaceAll","getContent","replace","validate","minShapes","maxShapes","maxSelections","errors","field","required","Object","values","reduce","acc","nbOfSelections","nbOfShapes","selections"],"sources":["../src/index.js"],"sourcesContent":["import debug from 'debug';\nimport { isEmpty } from 'lodash-es';\nimport { partialScoring } from '@pie-lib/controller-utils';\n\nimport { isResponseCorrect } from './utils';\n\nimport defaults from './defaults';\n\nconst log = debug('pie-elements:hotspot:controller');\n\nexport const normalize = (question) => ({\n ...defaults,\n ...question,\n});\n\nexport function model(question, session, env) {\n const normalizedQuestion = normalize(question);\n const {\n imageUrl,\n dimensions,\n hotspotColor,\n hoverOutlineColor,\n selectedHotspotColor,\n multipleCorrect,\n outlineColor,\n partialScoring,\n prompt,\n shapes,\n language,\n fontSizeFactor,\n autoplayAudioEnabled,\n completeAudioEnabled,\n customAudioButton,\n } = normalizedQuestion;\n const { rectangles, polygons, circles } = shapes || {};\n\n const shouldIncludeCorrectResponse = env.mode === 'evaluate' || (env.role === 'instructor' && env.mode === 'view');\n\n return new Promise((resolve) => {\n const out = {\n disabled: env.mode !== 'gather',\n mode: env.mode,\n dimensions,\n imageUrl,\n outlineColor,\n hotspotColor,\n hoverOutlineColor,\n selectedHotspotColor,\n multipleCorrect,\n partialScoring,\n language,\n fontSizeFactor,\n autoplayAudioEnabled,\n completeAudioEnabled,\n customAudioButton,\n shapes: {\n ...shapes,\n // eslint-disable-next-line no-unused-vars\n rectangles: (rectangles || []).map(({ index, correct, ...rectProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...rectProps } : { ...rectProps },\n ),\n // eslint-disable-next-line no-unused-vars\n polygons: (polygons || []).map(({ index, correct, ...polyProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...polyProps } : { ...polyProps },\n ),\n // eslint-disable-next-line no-unused-vars\n circles: (circles || []).map(({ index, correct, ...circleProps }) =>\n shouldIncludeCorrectResponse ? { correct, ...circleProps } : { ...circleProps },\n ),\n },\n responseCorrect: env.mode === 'evaluate' ? isResponseCorrect(normalizedQuestion, session) : undefined,\n extraCSSRules: normalizedQuestion.extraCSSRules,\n };\n\n if (env.role === 'instructor' && (env.mode === 'view' || env.mode === 'evaluate')) {\n out.rationale = normalizedQuestion.rationaleEnabled ? normalizedQuestion.rationale : null;\n out.teacherInstructions = normalizedQuestion.teacherInstructionsEnabled\n ? normalizedQuestion.teacherInstructions\n : null;\n } else {\n out.rationale = null;\n out.teacherInstructions = null;\n }\n\n out.prompt = normalizedQuestion.promptEnabled ? prompt : null;\n out.strokeWidth = normalizedQuestion.strokeWidth;\n\n resolve(out);\n });\n}\n\nexport const createDefaultModel = (model = {}) =>\n new Promise((resolve) => {\n resolve({\n ...defaults,\n ...model,\n });\n });\n\nconst getScore = (config, session, env = {}) => {\n const { answers } = session || {};\n\n if (!config.shapes || (!config.shapes.rectangles && !config.shapes.polygons && !config.shapes.circles)) {\n return 0;\n }\n\n const { shapes: { rectangles = [], polygons = [], circles = [] } = {} } = config;\n const partialScoringEnabled = partialScoring.enabled(config, env);\n\n if (!partialScoringEnabled) {\n return isResponseCorrect(config, session) ? 1 : 0;\n }\n\n let correctAnswers = 0;\n let selectedChoices = 0;\n\n const choices = [...rectangles, ...polygons, ...circles];\n\n const correctChoices = choices.filter((choice) => choice.correct);\n\n choices.forEach((shape) => {\n const selected = answers && answers.filter((answer) => answer.id === shape.id)[0];\n const correctlySelected = shape.correct && selected;\n\n if (selected) {\n selectedChoices += 1;\n }\n\n if (correctlySelected) {\n correctAnswers += 1;\n }\n });\n\n const extraAnswers = selectedChoices > correctChoices.length ? selectedChoices - correctChoices.length : 0;\n\n const total = correctChoices.length === 0 ? 1 : correctChoices.length;\n const str = ((correctAnswers - extraAnswers) / total).toFixed(2);\n\n return str < 0 ? 0 : parseFloat(str);\n};\n\n /**\n * Generates detailed trace log for scoring evaluation\n * @param {Object} model - the question model\n * @param {Object} session - the student session\n * @param {Object} env - the environment\n * @returns {Array} traceLog - array of trace messages\n */\nexport const getLogTrace = (model, session, env) => {\n const traceLog = [];\n const { answers } = session || {};\n const { shapes } = model || {};\n \n const allShapes = [];\n if (shapes) {\n if (shapes.rectangles) allShapes.push(...shapes.rectangles);\n if (shapes.polygons) allShapes.push(...shapes.polygons);\n if (shapes.circles) allShapes.push(...shapes.circles);\n }\n \n const correctShapes = allShapes.filter(shape => shape.correct);\n const totalShapes = allShapes.length;\n \n traceLog.push(`Total of ${totalShapes} hotspot(s) defined, ${correctShapes.length} correct.`);\n \n if (answers && answers.length > 0) {\n traceLog.push(`Student selected ${answers.length} hotspot(s).`);\n \n let correctSelections = 0;\n let incorrectSelections = 0;\n \n answers.forEach(answer => {\n const shape = allShapes.find(s => s.id === answer.id);\n if (shape && shape.correct) {\n correctSelections++;\n } else {\n incorrectSelections++;\n }\n });\n \n const missedCorrect = correctShapes.filter(correctShape => \n !answers.some(answer => answer.id === correctShape.id)\n ).length;\n \n if (correctSelections > 0) {\n traceLog.push(`${correctSelections} correct hotspot(s) selected.`);\n }\n if (incorrectSelections > 0) {\n traceLog.push(`${incorrectSelections} incorrect hotspot(s) selected.`);\n }\n if (missedCorrect > 0) {\n traceLog.push(`${missedCorrect} correct hotspot(s) missed.`);\n }\n } else {\n traceLog.push('No hotspots selected.');\n }\n\n const partialScoringEnabled = partialScoring.enabled(model, env);\n \n if (partialScoringEnabled) {\n traceLog.push(`Score calculated using partial scoring.`);\n \n if (answers && answers.length > 0) {\n let correctSelections = 0;\n let incorrectSelections = 0;\n \n answers.forEach(answer => {\n const shape = allShapes.find(s => s.id === answer.id);\n if (shape && shape.correct) {\n correctSelections++;\n } else {\n incorrectSelections++;\n }\n });\n \n const totalCorrectAvailable = correctShapes.length;\n traceLog.push(`Partial scoring calculation: ${correctSelections} correct selections out of ${totalCorrectAvailable} available.`);\n \n if (incorrectSelections > totalCorrectAvailable) {\n const extraSelections = incorrectSelections - (totalCorrectAvailable - correctSelections);\n traceLog.push(`${extraSelections} extra incorrect selection(s) beyond required amount are deducted from score.`);\n }\n }\n } else {\n traceLog.push(`Score calculated using all-or-nothing scoring.`);\n }\n\n const score = getScore(model, session, env);\n traceLog.push(`Score: ${score}.`);\n\n return traceLog;\n}\n\nexport function outcome(config, session, env = {}) {\n return new Promise((resolve) => {\n log('outcome...');\n\n if (!session || isEmpty(session)) {\n resolve({ \n score: 0, \n empty: true, \n traceLog: ['No hotspots selected. Score: 0.'] \n });\n } \n\n if (session.answers) {\n const traceLog = getLogTrace(config, session, env);\n const score = getScore(config, session, env);\n\n resolve({ score, empty: false, traceLog });\n } else {\n resolve({ \n score: 0, \n empty: true, \n traceLog: ['No hotspots selected. Score: 0.'] \n });\n }\n });\n}\n\nconst returnShapesCorrect = (shapes) => {\n let answers = [];\n\n shapes.forEach((i) => {\n const { correct, id } = i;\n if (correct) {\n answers.push({ id });\n }\n });\n return answers;\n};\n\nexport const createCorrectResponseSession = (question, env) => {\n return new Promise((resolve) => {\n if (env.mode !== 'evaluate' && env.role === 'instructor') {\n const { shapes: { rectangles = [], circles = [], polygons = {} } = {} } = question;\n\n const rectangleCorrect = returnShapesCorrect(rectangles);\n const polygonsCorrect = returnShapesCorrect(polygons);\n const circlesCorrect = returnShapesCorrect(circles);\n\n resolve({\n answers: [...rectangleCorrect, ...polygonsCorrect, ...circlesCorrect],\n id: '1',\n });\n } else {\n resolve(null);\n }\n });\n};\n\n// remove all html tags\nconst getInnerText = (html) => (html || '').replaceAll(/<[^>]*>/g, '');\n\n// remove all html tags except img, iframe and source tag for audio\nconst getContent = (html) => (html || '').replace(/(<(?!img|iframe|source)([^>]+)>)/gi, '');\n\nexport const validate = (model = {}, config = {}) => {\n const { shapes } = model;\n const { minShapes = 2, maxShapes, maxSelections } = config;\n const errors = {};\n\n ['teacherInstructions', 'prompt', 'rationale'].forEach((field) => {\n if (config[field]?.required && !getContent(model[field])) {\n errors[field] = 'This field is required.';\n }\n });\n\n const allShapes = Object.values(shapes || {}).reduce((acc, shape) => [...acc, ...shape], []);\n\n const nbOfSelections = (allShapes || []).reduce((acc, shape) => (shape.correct ? acc + 1 : acc), 0);\n\n const nbOfShapes = (allShapes || []).length;\n\n if (nbOfShapes < minShapes) {\n errors.shapes = `There should be at least ${minShapes} shapes defined.`;\n } else if (nbOfShapes > maxShapes) {\n errors.shapes = `No more than ${maxShapes} shapes should be defined.`;\n }\n\n if (nbOfSelections < 1) {\n errors.selections = 'There should be at least 1 shape selected.';\n } else if (nbOfSelections > maxSelections) {\n errors.selections = `No more than ${maxSelections} shapes should be selected.`;\n }\n\n return errors;\n};\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OA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F,MAAM,GAAG,4BAA4BuF,SAAS,kBAAkB;EACzE,CAAC,MAAM,IAAIW,UAAU,GAAGV,SAAS,EAAE;IACjCE,MAAM,CAAC1F,MAAM,GAAG,gBAAgBwF,SAAS,4BAA4B;EACvE;EAEA,IAAIS,cAAc,GAAG,CAAC,EAAE;IACtBP,MAAM,CAACS,UAAU,GAAG,4CAA4C;EAClE,CAAC,MAAM,IAAIF,cAAc,GAAGR,aAAa,EAAE;IACzCC,MAAM,CAACS,UAAU,GAAG,gBAAgBV,aAAa,6BAA6B;EAChF;EAEA,OAAOC,MAAM;AACf,CAAC;AAACxG,OAAA,CAAAoG,QAAA,GAAAA,QAAA","ignoreList":[]}
|
package/controller/lib/utils.js
CHANGED
|
@@ -1,54 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.isResponseCorrect = exports.getCorrectResponse = void 0;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
13
|
-
|
|
14
|
-
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
15
|
-
|
|
16
|
-
var getCorrectResponse = function getCorrectResponse(choices) {
|
|
17
|
-
return choices.filter(function (c) {
|
|
18
|
-
return c.correct;
|
|
19
|
-
}).map(function (c) {
|
|
20
|
-
return c.id;
|
|
21
|
-
}).sort();
|
|
22
|
-
};
|
|
23
|
-
|
|
7
|
+
var _lodashEs = require("lodash-es");
|
|
8
|
+
const getCorrectResponse = choices => choices.filter(c => c.correct).map(c => c.id).sort();
|
|
24
9
|
exports.getCorrectResponse = getCorrectResponse;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (!session || (0, _isEmpty["default"])(session)) {
|
|
10
|
+
const isResponseCorrect = (question, session) => {
|
|
11
|
+
const {
|
|
12
|
+
shapes: {
|
|
13
|
+
rectangles = [],
|
|
14
|
+
polygons = [],
|
|
15
|
+
circles = []
|
|
16
|
+
}
|
|
17
|
+
} = question;
|
|
18
|
+
const choices = [...rectangles, ...polygons, ...circles];
|
|
19
|
+
let correctResponseIds = getCorrectResponse(choices);
|
|
20
|
+
if (!session || (0, _lodashEs.isEmpty)(session)) {
|
|
38
21
|
return false;
|
|
39
22
|
}
|
|
40
|
-
|
|
41
23
|
if (session.answers && session.answers.length) {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
});
|
|
45
|
-
return (0, _isEqual["default"])(answerIds.sort(), correctResponseIds);
|
|
24
|
+
let answerIds = (session.answers || []).map(a => a.id);
|
|
25
|
+
return (0, _lodashEs.isEqual)(answerIds.sort(), correctResponseIds);
|
|
46
26
|
} else if (!(correctResponseIds && correctResponseIds.length)) {
|
|
47
27
|
return true;
|
|
48
28
|
}
|
|
49
|
-
|
|
50
29
|
return false;
|
|
51
30
|
};
|
|
52
|
-
|
|
53
31
|
exports.isResponseCorrect = isResponseCorrect;
|
|
54
32
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"utils.js","names":["_lodashEs","require","getCorrectResponse","choices","filter","c","correct","map","id","sort","exports","isResponseCorrect","question","session","shapes","rectangles","polygons","circles","correctResponseIds","isEmpty","answers","length","answerIds","a","isEqual"],"sources":["../src/utils.js"],"sourcesContent":["import { isEmpty, isEqual } from 'lodash-es';\n\nexport const getCorrectResponse = (choices) =>\n choices\n .filter((c) => c.correct)\n .map((c) => c.id)\n .sort();\n\nexport const isResponseCorrect = (question, session) => {\n const {\n shapes: { rectangles = [], polygons = [], circles = [] },\n } = question;\n const choices = [...rectangles, ...polygons, ...circles];\n let correctResponseIds = getCorrectResponse(choices);\n\n if (!session || isEmpty(session)) {\n return false;\n }\n\n if (session.answers && session.answers.length) {\n let answerIds = (session.answers || []).map((a) => a.id);\n\n return isEqual(answerIds.sort(), correctResponseIds);\n } else if (!(correctResponseIds && correctResponseIds.length)) {\n return true;\n }\n\n return false;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEO,MAAMC,kBAAkB,GAAIC,OAAO,IACxCA,OAAO,CACJC,MAAM,CAAEC,CAAC,IAAKA,CAAC,CAACC,OAAO,CAAC,CACxBC,GAAG,CAAEF,CAAC,IAAKA,CAAC,CAACG,EAAE,CAAC,CAChBC,IAAI,CAAC,CAAC;AAACC,OAAA,CAAAR,kBAAA,GAAAA,kBAAA;AAEL,MAAMS,iBAAiB,GAAGA,CAACC,QAAQ,EAAEC,OAAO,KAAK;EACtD,MAAM;IACJC,MAAM,EAAE;MAAEC,UAAU,GAAG,EAAE;MAAEC,QAAQ,GAAG,EAAE;MAAEC,OAAO,GAAG;IAAG;EACzD,CAAC,GAAGL,QAAQ;EACZ,MAAMT,OAAO,GAAG,CAAC,GAAGY,UAAU,EAAE,GAAGC,QAAQ,EAAE,GAAGC,OAAO,CAAC;EACxD,IAAIC,kBAAkB,GAAGhB,kBAAkB,CAACC,OAAO,CAAC;EAEpD,IAAI,CAACU,OAAO,IAAI,IAAAM,iBAAO,EAACN,OAAO,CAAC,EAAE;IAChC,OAAO,KAAK;EACd;EAEA,IAAIA,OAAO,CAACO,OAAO,IAAIP,OAAO,CAACO,OAAO,CAACC,MAAM,EAAE;IAC7C,IAAIC,SAAS,GAAG,CAACT,OAAO,CAACO,OAAO,IAAI,EAAE,EAAEb,GAAG,CAAEgB,CAAC,IAAKA,CAAC,CAACf,EAAE,CAAC;IAExD,OAAO,IAAAgB,iBAAO,EAACF,SAAS,CAACb,IAAI,CAAC,CAAC,EAAES,kBAAkB,CAAC;EACtD,CAAC,MAAM,IAAI,EAAEA,kBAAkB,IAAIA,kBAAkB,CAACG,MAAM,CAAC,EAAE;IAC7D,OAAO,IAAI;EACb;EAEA,OAAO,KAAK;AACd,CAAC;AAACX,OAAA,CAAAC,iBAAA,GAAAA,iBAAA","ignoreList":[]}
|
package/controller/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/hotspot-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "8.1.0-next.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"main": "lib/index.js",
|
|
12
12
|
"module": "src/index.js",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@pie-lib/controller-utils": "
|
|
14
|
+
"@pie-lib/controller-utils": "2.0.0",
|
|
15
15
|
"debug": "^4.1.1",
|
|
16
|
-
"lodash": "^4.17.
|
|
16
|
+
"lodash-es": "^4.17.23"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -50,12 +50,13 @@ describe('controller', () => {
|
|
|
50
50
|
describe('hanging controller', () => {
|
|
51
51
|
it('doesnt hang if answers is missing', async () => {
|
|
52
52
|
const response = await outcome({}, { id: '1' }, {});
|
|
53
|
-
expect(response).toEqual({ score: 0, empty: true });
|
|
53
|
+
expect(response).toEqual({ score: 0, empty: true, traceLog: ['No hotspots selected. Score: 0.'] });
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
it('doesnt hang if the rest is missing', async () => {
|
|
57
57
|
const response = await outcome({}, { id: '1', answers: {} }, {});
|
|
58
|
-
|
|
58
|
+
const score = response.score;
|
|
59
|
+
expect(score).toEqual(0);
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
|
|
@@ -250,7 +251,7 @@ describe('controller', () => {
|
|
|
250
251
|
const returnOutcome = (session) => {
|
|
251
252
|
it(`returns empty: true when session is ${JSON.stringify(session)}`, async () => {
|
|
252
253
|
const result = await outcome(question, session);
|
|
253
|
-
expect(result).toEqual({ score: 0, empty: true });
|
|
254
|
+
expect(result).toEqual({ score: 0, empty: true, traceLog: ['No hotspots selected. Score: 0.'] });
|
|
254
255
|
});
|
|
255
256
|
};
|
|
256
257
|
|
package/controller/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import debug from 'debug';
|
|
2
|
-
import isEmpty from 'lodash
|
|
2
|
+
import { isEmpty } from 'lodash-es';
|
|
3
3
|
import { partialScoring } from '@pie-lib/controller-utils';
|
|
4
4
|
|
|
5
5
|
import { isResponseCorrect } from './utils';
|
|
@@ -139,19 +139,121 @@ const getScore = (config, session, env = {}) => {
|
|
|
139
139
|
return str < 0 ? 0 : parseFloat(str);
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
+
/**
|
|
143
|
+
* Generates detailed trace log for scoring evaluation
|
|
144
|
+
* @param {Object} model - the question model
|
|
145
|
+
* @param {Object} session - the student session
|
|
146
|
+
* @param {Object} env - the environment
|
|
147
|
+
* @returns {Array} traceLog - array of trace messages
|
|
148
|
+
*/
|
|
149
|
+
export const getLogTrace = (model, session, env) => {
|
|
150
|
+
const traceLog = [];
|
|
151
|
+
const { answers } = session || {};
|
|
152
|
+
const { shapes } = model || {};
|
|
153
|
+
|
|
154
|
+
const allShapes = [];
|
|
155
|
+
if (shapes) {
|
|
156
|
+
if (shapes.rectangles) allShapes.push(...shapes.rectangles);
|
|
157
|
+
if (shapes.polygons) allShapes.push(...shapes.polygons);
|
|
158
|
+
if (shapes.circles) allShapes.push(...shapes.circles);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const correctShapes = allShapes.filter(shape => shape.correct);
|
|
162
|
+
const totalShapes = allShapes.length;
|
|
163
|
+
|
|
164
|
+
traceLog.push(`Total of ${totalShapes} hotspot(s) defined, ${correctShapes.length} correct.`);
|
|
165
|
+
|
|
166
|
+
if (answers && answers.length > 0) {
|
|
167
|
+
traceLog.push(`Student selected ${answers.length} hotspot(s).`);
|
|
168
|
+
|
|
169
|
+
let correctSelections = 0;
|
|
170
|
+
let incorrectSelections = 0;
|
|
171
|
+
|
|
172
|
+
answers.forEach(answer => {
|
|
173
|
+
const shape = allShapes.find(s => s.id === answer.id);
|
|
174
|
+
if (shape && shape.correct) {
|
|
175
|
+
correctSelections++;
|
|
176
|
+
} else {
|
|
177
|
+
incorrectSelections++;
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
const missedCorrect = correctShapes.filter(correctShape =>
|
|
182
|
+
!answers.some(answer => answer.id === correctShape.id)
|
|
183
|
+
).length;
|
|
184
|
+
|
|
185
|
+
if (correctSelections > 0) {
|
|
186
|
+
traceLog.push(`${correctSelections} correct hotspot(s) selected.`);
|
|
187
|
+
}
|
|
188
|
+
if (incorrectSelections > 0) {
|
|
189
|
+
traceLog.push(`${incorrectSelections} incorrect hotspot(s) selected.`);
|
|
190
|
+
}
|
|
191
|
+
if (missedCorrect > 0) {
|
|
192
|
+
traceLog.push(`${missedCorrect} correct hotspot(s) missed.`);
|
|
193
|
+
}
|
|
194
|
+
} else {
|
|
195
|
+
traceLog.push('No hotspots selected.');
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const partialScoringEnabled = partialScoring.enabled(model, env);
|
|
199
|
+
|
|
200
|
+
if (partialScoringEnabled) {
|
|
201
|
+
traceLog.push(`Score calculated using partial scoring.`);
|
|
202
|
+
|
|
203
|
+
if (answers && answers.length > 0) {
|
|
204
|
+
let correctSelections = 0;
|
|
205
|
+
let incorrectSelections = 0;
|
|
206
|
+
|
|
207
|
+
answers.forEach(answer => {
|
|
208
|
+
const shape = allShapes.find(s => s.id === answer.id);
|
|
209
|
+
if (shape && shape.correct) {
|
|
210
|
+
correctSelections++;
|
|
211
|
+
} else {
|
|
212
|
+
incorrectSelections++;
|
|
213
|
+
}
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
const totalCorrectAvailable = correctShapes.length;
|
|
217
|
+
traceLog.push(`Partial scoring calculation: ${correctSelections} correct selections out of ${totalCorrectAvailable} available.`);
|
|
218
|
+
|
|
219
|
+
if (incorrectSelections > totalCorrectAvailable) {
|
|
220
|
+
const extraSelections = incorrectSelections - (totalCorrectAvailable - correctSelections);
|
|
221
|
+
traceLog.push(`${extraSelections} extra incorrect selection(s) beyond required amount are deducted from score.`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
} else {
|
|
225
|
+
traceLog.push(`Score calculated using all-or-nothing scoring.`);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
const score = getScore(model, session, env);
|
|
229
|
+
traceLog.push(`Score: ${score}.`);
|
|
230
|
+
|
|
231
|
+
return traceLog;
|
|
232
|
+
}
|
|
233
|
+
|
|
142
234
|
export function outcome(config, session, env = {}) {
|
|
143
235
|
return new Promise((resolve) => {
|
|
144
236
|
log('outcome...');
|
|
145
237
|
|
|
146
238
|
if (!session || isEmpty(session)) {
|
|
147
|
-
resolve({
|
|
148
|
-
|
|
239
|
+
resolve({
|
|
240
|
+
score: 0,
|
|
241
|
+
empty: true,
|
|
242
|
+
traceLog: ['No hotspots selected. Score: 0.']
|
|
243
|
+
});
|
|
244
|
+
}
|
|
149
245
|
|
|
150
246
|
if (session.answers) {
|
|
247
|
+
const traceLog = getLogTrace(config, session, env);
|
|
151
248
|
const score = getScore(config, session, env);
|
|
152
|
-
|
|
249
|
+
|
|
250
|
+
resolve({ score, empty: false, traceLog });
|
|
153
251
|
} else {
|
|
154
|
-
resolve({
|
|
252
|
+
resolve({
|
|
253
|
+
score: 0,
|
|
254
|
+
empty: true,
|
|
255
|
+
traceLog: ['No hotspots selected. Score: 0.']
|
|
256
|
+
});
|
|
155
257
|
}
|
|
156
258
|
});
|
|
157
259
|
}
|
package/controller/src/utils.js
CHANGED