@pie-element/ebsr 6.6.3-next.1089 → 6.6.3-next.1092
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 +77 -0
- package/configure/CHANGELOG.md +77 -0
- package/configure/package.json +2 -2
- package/controller/CHANGELOG.md +8 -0
- package/controller/package.json +1 -1
- package/package.json +3 -3
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.json +0 -1972
- package/configure/node_modules/@pie-element/multiple-choice/CHANGELOG.md +0 -1826
- package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/multiple-choice/PRINT.md +0 -35
- package/configure/node_modules/@pie-element/multiple-choice/README.md +0 -56
- package/configure/node_modules/@pie-element/multiple-choice/choice.png +0 -0
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.json +0 -1387
- package/configure/node_modules/@pie-element/multiple-choice/configure/CHANGELOG.md +0 -1367
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -116
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js +0 -198
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js +0 -615
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js +0 -18
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/configure/package.json +0 -20
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.json +0 -527
- package/configure/node_modules/@pie-element/multiple-choice/controller/CHANGELOG.md +0 -768
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js +0 -18
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/defaults.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js +0 -305
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js +0 -36
- package/configure/node_modules/@pie-element/multiple-choice/controller/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/controller/package.json +0 -15
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json +0 -431
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -337
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/config.js +0 -8
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/generate.js +0 -52
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/index.html +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/docs/demo/session.js +0 -7
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json +0 -364
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -294
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -298
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js +0 -157
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js +0 -174
- package/configure/node_modules/@pie-element/multiple-choice/lib/feedback-tick.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js +0 -151
- package/configure/node_modules/@pie-element/multiple-choice/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js +0 -97
- package/configure/node_modules/@pie-element/multiple-choice/lib/main.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js +0 -254
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js +0 -129
- package/configure/node_modules/@pie-element/multiple-choice/lib/print.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js +0 -35
- package/configure/node_modules/@pie-element/multiple-choice/lib/session-updater.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -1677
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -1695
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/LICENSE.md +0 -5
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/README.md +0 -12
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -44
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -86
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -398
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -185
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -178
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js +0 -145
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -131
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -101
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -105
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -87
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -364
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -265
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -41
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -130
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -412
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -43
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -56
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -106
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/package.json +0 -30
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -43
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -63
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -103
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -319
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -116
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -54
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -98
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/help.jsx +0 -88
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/index.js +0 -58
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -96
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -122
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -64
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -60
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -31
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -276
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -196
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -18
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -75
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -297
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -20
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -31
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -51
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -121
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
- package/configure/node_modules/@pie-element/multiple-choice/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
- package/configure/node_modules/@pie-element/multiple-choice/package.json +0 -34
- package/configure/node_modules/@pie-framework/mathquill/CHANGELOG.md +0 -218
- package/configure/node_modules/@pie-framework/mathquill/README.md +0 -43
- package/configure/node_modules/@pie-framework/mathquill/build/fonts/Symbola.eot +0 -0
- package/configure/node_modules/@pie-framework/mathquill/build/fonts/Symbola.svg +0 -2025
- package/configure/node_modules/@pie-framework/mathquill/build/fonts/Symbola.ttf +0 -0
- package/configure/node_modules/@pie-framework/mathquill/build/fonts/Symbola.woff +0 -0
- package/configure/node_modules/@pie-framework/mathquill/build/fonts/Symbola.woff2 +0 -0
- package/configure/node_modules/@pie-framework/mathquill/build/index-dev.js +0 -5
- package/configure/node_modules/@pie-framework/mathquill/build/index.js +0 -5
- package/configure/node_modules/@pie-framework/mathquill/build/jquery.global.js +0 -5
- package/configure/node_modules/@pie-framework/mathquill/build/mathquill.css +0 -847
- package/configure/node_modules/@pie-framework/mathquill/build/mathquill.js +0 -6396
- package/configure/node_modules/@pie-framework/mathquill/build/mathquill.min.js +0 -13
- package/configure/node_modules/@pie-framework/mathquill/package.json +0 -34
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.json +0 -547
- package/configure/node_modules/@pie-lib/correct-answer-toggle/CHANGELOG.md +0 -524
- package/configure/node_modules/@pie-lib/correct-answer-toggle/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/correct-answer-toggle/README.md +0 -64
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js +0 -86
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/expander.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js +0 -155
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js +0 -65
- package/configure/node_modules/@pie-lib/correct-answer-toggle/lib/styles.js.map +0 -1
- package/configure/node_modules/@pie-lib/correct-answer-toggle/package.json +0 -36
- package/configure/node_modules/@pie-lib/correct-answer-toggle/preview.png +0 -0
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/expander.jsx +0 -65
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -75
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/styles.js +0 -60
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -3327
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1676
- package/configure/node_modules/@pie-lib/editable-html/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/editable-html/README.md +0 -45
- package/configure/node_modules/@pie-lib/editable-html/deploy.sh +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -837
- 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 -224
- 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-popover.js +0 -70
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popover.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -261
- 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 -362
- 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/image/component.js +0 -393
- 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 -78
- 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 -221
- 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 -135
- 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 -141
- 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 -204
- 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 -347
- 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 -339
- 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 -434
- 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 -99
- 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/respArea/drag-in-the-blank/choice.js +0 -251
- 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 -54
- 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 -93
- 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 -288
- 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 -70
- 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/utils.js +0 -110
- 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/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 -497
- 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 -158
- 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/toolbar/default-toolbar.js +0 -132
- 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 -50
- 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 -263
- 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 -32
- 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 -161
- 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 -346
- 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 -428
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
- 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/package.json +0 -51
- package/configure/node_modules/@pie-lib/editable-html/playground/image/data.js +0 -59
- package/configure/node_modules/@pie-lib/editable-html/playground/image/index.html +0 -24
- package/configure/node_modules/@pie-lib/editable-html/playground/image/index.jsx +0 -83
- package/configure/node_modules/@pie-lib/editable-html/playground/index.html +0 -27
- package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.html +0 -25
- package/configure/node_modules/@pie-lib/editable-html/playground/mathquill/index.jsx +0 -151
- package/configure/node_modules/@pie-lib/editable-html/playground/package.json +0 -15
- package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.html +0 -26
- package/configure/node_modules/@pie-lib/editable-html/playground/prod-test/index.jsx +0 -30
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/data.js +0 -29
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/image-plugin.jsx +0 -40
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.html +0 -23
- package/configure/node_modules/@pie-lib/editable-html/playground/schema-override/index.jsx +0 -96
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/data.js +0 -29
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/image-plugin.jsx +0 -40
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.html +0 -24
- package/configure/node_modules/@pie-lib/editable-html/playground/serialization/index.jsx +0 -12
- package/configure/node_modules/@pie-lib/editable-html/playground/static.json +0 -3
- package/configure/node_modules/@pie-lib/editable-html/playground/table-examples.html +0 -67
- package/configure/node_modules/@pie-lib/editable-html/playground/webpack.config.js +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -724
- package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -145
- 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-popover.js +0 -45
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -237
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -444
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -318
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -32
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -182
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -93
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -115
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -175
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -283
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -284
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -372
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -53
- 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/respArea/drag-in-the-blank/choice.jsx +0 -187
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -78
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -45
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -68
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -259
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -63
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -77
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -59
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -437
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -104
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -111
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -225
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -21
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -97
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -323
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -32
- package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -385
- package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
- package/configure/node_modules/@pie-lib/editable-html/static.json +0 -1
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -1547
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -765
- package/configure/node_modules/@pie-lib/math-input/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-input/README.md +0 -27
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -129
- 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 -80
- 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 -440
- 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 -46
- 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 -16
- 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 -35
- 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 -31
- 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 -165
- 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 -69
- 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 -23
- 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 -17
- 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 -45
- 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 -130
- 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 -206
- 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/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 -24
- 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 -257
- 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 -224
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/package.json +0 -26
- package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -56
- package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -27
- package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -367
- 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/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 -27
- 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 -27
- package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -140
- package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -379
- 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 -60
- 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 -9
- package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -36
- 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/custom-elements.js +0 -11
- package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -4
- package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -163
- package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -145
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -672
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -457
- package/configure/node_modules/@pie-lib/math-rendering/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -30
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -316
- 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 -123
- 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 -103
- 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 -281
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -19
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.html +0 -872
- package/configure/node_modules/@pie-lib/math-rendering/playground/demo.js +0 -108
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.html +0 -156
- package/configure/node_modules/@pie-lib/math-rendering/playground/main.js +0 -16
- package/configure/node_modules/@pie-lib/math-rendering/playground/webpack.config.js +0 -29
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -4
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -215
- 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 -235
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -862
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -639
- package/configure/node_modules/@pie-lib/math-toolbar/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -53
- 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 -483
- 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 -280
- 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 -173
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -39
- package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -388
- package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -202
- package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -107
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -626
- package/configure/node_modules/@pie-lib/render-ui/LICENSE.md +0 -5
- package/configure/node_modules/@pie-lib/render-ui/README.md +0 -33
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -146
- 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 -134
- 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 -160
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -24
- 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 -102
- 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 -104
- 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 -133
- 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 -162
- 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 -160
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -206
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/package.json +0 -30
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -68
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -48
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -100
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -14
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -40
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -27
- 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 -77
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -90
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -19
- 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/withUndoReset.jsx +0 -118
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import classNames from 'classnames';
|
|
4
|
-
import { withStyles } from '@material-ui/core/styles';
|
|
5
|
-
|
|
6
|
-
const useStyles = withStyles(() => ({
|
|
7
|
-
root: {
|
|
8
|
-
position: 'relative'
|
|
9
|
-
},
|
|
10
|
-
editor: {
|
|
11
|
-
display: 'inline-block',
|
|
12
|
-
overflow: 'hidden'
|
|
13
|
-
}
|
|
14
|
-
}));
|
|
15
|
-
|
|
16
|
-
class MediaWrapper extends React.Component {
|
|
17
|
-
static propTypes = {
|
|
18
|
-
classes: PropTypes.object,
|
|
19
|
-
children: PropTypes.array,
|
|
20
|
-
editor: PropTypes.bool,
|
|
21
|
-
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
render() {
|
|
25
|
-
const { editor, classes, children, width, ...rest } = this.props;
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<span
|
|
29
|
-
className={classNames(classes.root, {
|
|
30
|
-
[classes.editor]: editor
|
|
31
|
-
})}
|
|
32
|
-
{...rest}
|
|
33
|
-
style={{
|
|
34
|
-
width: width || 300
|
|
35
|
-
}}
|
|
36
|
-
>
|
|
37
|
-
{children}
|
|
38
|
-
</span>
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export default useStyles(MediaWrapper);
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import isUndefined from 'lodash/isUndefined';
|
|
4
|
-
import { DragSource, DropTarget } from '@pie-lib/drag';
|
|
5
|
-
import { color } from '@pie-lib/render-ui';
|
|
6
|
-
import { renderMath } from '@pie-lib/math-rendering';
|
|
7
|
-
import { withStyles } from '@material-ui/core/styles';
|
|
8
|
-
import classnames from 'classnames';
|
|
9
|
-
|
|
10
|
-
import { GripIcon } from '../icons';
|
|
11
|
-
|
|
12
|
-
const useStyles = withStyles(theme => ({
|
|
13
|
-
content: {
|
|
14
|
-
border: `solid 0px ${theme.palette.primary.main}`
|
|
15
|
-
},
|
|
16
|
-
chip: {
|
|
17
|
-
minWidth: '90px'
|
|
18
|
-
},
|
|
19
|
-
correct: {
|
|
20
|
-
border: 'solid 1px green'
|
|
21
|
-
},
|
|
22
|
-
incorrect: {
|
|
23
|
-
border: 'solid 1px red'
|
|
24
|
-
},
|
|
25
|
-
selected: {
|
|
26
|
-
border: `2px solid ${color.primaryDark()} !important`
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
|
|
30
|
-
export class BlankContent extends React.Component {
|
|
31
|
-
static propTypes = {
|
|
32
|
-
n: PropTypes.object,
|
|
33
|
-
children: PropTypes.func,
|
|
34
|
-
isDragging: PropTypes.bool,
|
|
35
|
-
isOver: PropTypes.bool,
|
|
36
|
-
dragItem: PropTypes.object,
|
|
37
|
-
value: PropTypes.object,
|
|
38
|
-
classes: PropTypes.object
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
constructor(props) {
|
|
42
|
-
super(props);
|
|
43
|
-
|
|
44
|
-
this.handleClick = this.handleClick.bind(this);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
componentDidMount() {
|
|
48
|
-
document.addEventListener('click', this.handleClick);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
componentWillUnmount() {
|
|
52
|
-
document.removeEventListener('click', this.handleClick);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
handleClick(event) {
|
|
56
|
-
const { classes } = this.props;
|
|
57
|
-
|
|
58
|
-
if (this.elementRef) {
|
|
59
|
-
this.elementRef.className = this.elementRef.contains(event.target) ? classes.selected : '';
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
componentDidUpdate() {
|
|
64
|
-
if (this.elementRef) {
|
|
65
|
-
renderMath(this.elementRef);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
render() {
|
|
70
|
-
const { n, children, isDragging, dragItem, isOver, value } = this.props;
|
|
71
|
-
|
|
72
|
-
const label = dragItem && isOver ? dragItem.value.value : value.value || '\u00A0';
|
|
73
|
-
const finalLabel = isDragging ? '\u00A0' : label;
|
|
74
|
-
const hasGrip = finalLabel !== '\u00A0';
|
|
75
|
-
|
|
76
|
-
return (
|
|
77
|
-
<div
|
|
78
|
-
ref={ref => (this.elementRef = ref)}
|
|
79
|
-
style={{
|
|
80
|
-
display: 'inline-flex',
|
|
81
|
-
minWidth: '178px',
|
|
82
|
-
minHeight: '36px',
|
|
83
|
-
background: '#FFF',
|
|
84
|
-
border: '1px solid #C0C3CF',
|
|
85
|
-
boxSizing: 'border-box',
|
|
86
|
-
borderRadius: '3px',
|
|
87
|
-
overflow: 'hidden',
|
|
88
|
-
position: 'relative',
|
|
89
|
-
padding: '8px 8px 8px 35px'
|
|
90
|
-
}}
|
|
91
|
-
data-key={n.key}
|
|
92
|
-
contentEditable={false}
|
|
93
|
-
>
|
|
94
|
-
{hasGrip && (
|
|
95
|
-
<GripIcon
|
|
96
|
-
style={{
|
|
97
|
-
position: 'absolute',
|
|
98
|
-
top: '6px',
|
|
99
|
-
left: '15px',
|
|
100
|
-
color: '#9B9B9B'
|
|
101
|
-
}}
|
|
102
|
-
contentEditable={false}
|
|
103
|
-
/>
|
|
104
|
-
)}
|
|
105
|
-
<span
|
|
106
|
-
dangerouslySetInnerHTML={{
|
|
107
|
-
__html: finalLabel
|
|
108
|
-
}}
|
|
109
|
-
/>
|
|
110
|
-
{children}
|
|
111
|
-
</div>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
const StyledBlankContent = useStyles(BlankContent);
|
|
117
|
-
|
|
118
|
-
const connectedBlankContent = useStyles(({ connectDropTarget, connectDragSource, ...props }) => {
|
|
119
|
-
const { classes, isOver, value } = props;
|
|
120
|
-
const dragContent = <StyledBlankContent {...props} />;
|
|
121
|
-
const dragEl = !value ? dragContent : connectDragSource(<span>{dragContent}</span>);
|
|
122
|
-
const content = (
|
|
123
|
-
<span className={classnames(classes.content, isOver && classes.over)}>{dragEl}</span>
|
|
124
|
-
);
|
|
125
|
-
|
|
126
|
-
return connectDropTarget ? connectDropTarget(content) : content;
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
export const tileTarget = {
|
|
130
|
-
drop(props, monitor) {
|
|
131
|
-
const draggedItem = monitor.getItem();
|
|
132
|
-
const shouldDrop =
|
|
133
|
-
isUndefined(draggedItem.value.index) ||
|
|
134
|
-
isUndefined(props.value.index) ||
|
|
135
|
-
draggedItem.value.index !== props.value.index;
|
|
136
|
-
|
|
137
|
-
if (shouldDrop) {
|
|
138
|
-
props.onChange(draggedItem.value);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return {
|
|
142
|
-
dropped: shouldDrop
|
|
143
|
-
};
|
|
144
|
-
},
|
|
145
|
-
canDrop(props, monitor) {
|
|
146
|
-
const draggedItem = monitor.getItem();
|
|
147
|
-
|
|
148
|
-
return draggedItem.instanceId === props.instanceId;
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const DropTile = DropTarget('drag-in-the-blank-choice', tileTarget, (connect, monitor) => ({
|
|
153
|
-
connectDropTarget: connect.dropTarget(),
|
|
154
|
-
isOver: monitor.isOver(),
|
|
155
|
-
dragItem: monitor.getItem()
|
|
156
|
-
}))(connectedBlankContent);
|
|
157
|
-
|
|
158
|
-
export const tileSource = {
|
|
159
|
-
canDrag(props) {
|
|
160
|
-
return !props.disabled && !!props.value;
|
|
161
|
-
},
|
|
162
|
-
beginDrag(props) {
|
|
163
|
-
return {
|
|
164
|
-
id: props.targetId,
|
|
165
|
-
value: props.value,
|
|
166
|
-
instanceId: props.instanceId,
|
|
167
|
-
fromChoice: true
|
|
168
|
-
};
|
|
169
|
-
},
|
|
170
|
-
endDrag(props, monitor) {
|
|
171
|
-
// this will be null if it did not drop
|
|
172
|
-
const dropResult = monitor.getDropResult();
|
|
173
|
-
|
|
174
|
-
if (!dropResult || (dropResult.dropped && !props.duplicates)) {
|
|
175
|
-
const draggedItem = monitor.getItem();
|
|
176
|
-
|
|
177
|
-
if (draggedItem.fromChoice) {
|
|
178
|
-
props.removeResponse(draggedItem.value);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
export default DragSource('drag-in-the-blank-choice', tileSource, (connect, monitor) => ({
|
|
185
|
-
connectDragSource: connect.dragSource(),
|
|
186
|
-
isDragging: monitor.isDragging()
|
|
187
|
-
}))(DropTile);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import DragDropTile from './choice';
|
|
4
|
-
|
|
5
|
-
export const onValueChange = (nodeProps, n, value) => {
|
|
6
|
-
const val = nodeProps.editor.value;
|
|
7
|
-
const change = val.change();
|
|
8
|
-
|
|
9
|
-
change.setNodeByKey(n.key, {
|
|
10
|
-
data: {
|
|
11
|
-
...value,
|
|
12
|
-
index: n.data.get('index')
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
nodeProps.editor.props.onChange(change, () => {
|
|
17
|
-
nodeProps.editor.props.onEditingDone();
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const onRemoveResponse = (nodeProps, value) => {
|
|
22
|
-
const val = nodeProps.editor.value;
|
|
23
|
-
const change = val.change();
|
|
24
|
-
const dragInTheBlank = val.document.findDescendant(
|
|
25
|
-
n => n.data && n.data.get('index') === value.index
|
|
26
|
-
);
|
|
27
|
-
|
|
28
|
-
change.setNodeByKey(dragInTheBlank.key, {
|
|
29
|
-
data: {
|
|
30
|
-
index: dragInTheBlank.data.get('index')
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
nodeProps.editor.props.onChange(change, () => {
|
|
35
|
-
nodeProps.editor.props.onEditingDone();
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const DragDrop = props => {
|
|
40
|
-
const { attributes, data, n, nodeProps, opts } = props;
|
|
41
|
-
const { inTable } = data;
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<span
|
|
45
|
-
{...attributes}
|
|
46
|
-
style={{
|
|
47
|
-
display: 'inline-flex',
|
|
48
|
-
minHeight: '50px',
|
|
49
|
-
minWidth: '178px',
|
|
50
|
-
position: 'relative',
|
|
51
|
-
margin: inTable ? '10px' : '0 10px',
|
|
52
|
-
cursor: 'pointer'
|
|
53
|
-
}}
|
|
54
|
-
>
|
|
55
|
-
<DragDropTile
|
|
56
|
-
n={n}
|
|
57
|
-
dragKey={n.key}
|
|
58
|
-
targetId="0"
|
|
59
|
-
value={data}
|
|
60
|
-
duplicates={opts.options.duplicates}
|
|
61
|
-
onChange={value => onValueChange(nodeProps, n, value)}
|
|
62
|
-
removeResponse={value => onRemoveResponse(nodeProps, value)}
|
|
63
|
-
>
|
|
64
|
-
{nodeProps.children}
|
|
65
|
-
</DragDropTile>
|
|
66
|
-
</span>
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
DragDrop.propTypes = {
|
|
71
|
-
attributes: PropTypes.object,
|
|
72
|
-
data: PropTypes.object,
|
|
73
|
-
n: PropTypes.object,
|
|
74
|
-
nodeProps: PropTypes.object,
|
|
75
|
-
opts: PropTypes.object
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export default DragDrop;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
|
|
4
|
-
const ExplicitConstructedResponse = props => {
|
|
5
|
-
const { attributes, value, error } = props;
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<span
|
|
9
|
-
{...attributes}
|
|
10
|
-
style={{
|
|
11
|
-
display: 'inline-flex',
|
|
12
|
-
minHeight: '50px',
|
|
13
|
-
minWidth: '178px',
|
|
14
|
-
position: 'relative',
|
|
15
|
-
margin: '0 5px',
|
|
16
|
-
cursor: 'pointer'
|
|
17
|
-
}}
|
|
18
|
-
>
|
|
19
|
-
<div
|
|
20
|
-
style={{
|
|
21
|
-
display: 'inline-flex',
|
|
22
|
-
minWidth: '178px',
|
|
23
|
-
minHeight: '36px',
|
|
24
|
-
height: '36px',
|
|
25
|
-
background: '#FFF',
|
|
26
|
-
border: `1px solid ${error ? 'red' : '#C0C3CF'}`,
|
|
27
|
-
boxSizing: 'border-box',
|
|
28
|
-
borderRadius: '3px',
|
|
29
|
-
overflow: 'hidden',
|
|
30
|
-
padding: '8px'
|
|
31
|
-
}}
|
|
32
|
-
dangerouslySetInnerHTML={{
|
|
33
|
-
__html: value || '<div> </div>'
|
|
34
|
-
}}
|
|
35
|
-
/>
|
|
36
|
-
</span>
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
ExplicitConstructedResponse.propTypes = {
|
|
41
|
-
attributes: PropTypes.object,
|
|
42
|
-
value: PropTypes.string
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export default ExplicitConstructedResponse;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import ChevronRight from '@material-ui/icons/ChevronRight';
|
|
4
|
-
import MoreVert from '@material-ui/icons/MoreVert';
|
|
5
|
-
import { withStyles } from '@material-ui/core/styles';
|
|
6
|
-
|
|
7
|
-
const getRotate = direction => {
|
|
8
|
-
switch (direction) {
|
|
9
|
-
case 'down':
|
|
10
|
-
return 90;
|
|
11
|
-
case 'up':
|
|
12
|
-
return -90;
|
|
13
|
-
case 'left':
|
|
14
|
-
return 180;
|
|
15
|
-
default:
|
|
16
|
-
return 0;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export const Chevron = props => {
|
|
21
|
-
const { direction, style } = props;
|
|
22
|
-
const rotate = getRotate(direction);
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<ChevronRight
|
|
26
|
-
style={{
|
|
27
|
-
transform: `rotate(${rotate}deg)`,
|
|
28
|
-
...style
|
|
29
|
-
}}
|
|
30
|
-
/>
|
|
31
|
-
);
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
Chevron.propTypes = {
|
|
35
|
-
direction: PropTypes.string,
|
|
36
|
-
style: PropTypes.object
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const GripIcon = ({ style }) => {
|
|
40
|
-
return (
|
|
41
|
-
<span style={style}>
|
|
42
|
-
<MoreVert
|
|
43
|
-
style={{
|
|
44
|
-
margin: '0 -16px'
|
|
45
|
-
}}
|
|
46
|
-
/>
|
|
47
|
-
<MoreVert />
|
|
48
|
-
</span>
|
|
49
|
-
);
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
GripIcon.propTypes = {
|
|
53
|
-
style: PropTypes.object
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export const ToolbarIcon = withStyles({
|
|
57
|
-
icon: {
|
|
58
|
-
fontFamily: 'Cerebri Sans !important',
|
|
59
|
-
fontSize: '14px',
|
|
60
|
-
fontWeight: 'bold',
|
|
61
|
-
lineHeight: '14px',
|
|
62
|
-
position: 'relative',
|
|
63
|
-
top: '7px',
|
|
64
|
-
width: '110px',
|
|
65
|
-
height: '28px',
|
|
66
|
-
whiteSpace: 'nowrap'
|
|
67
|
-
}
|
|
68
|
-
})(({ classes }) => <div className={classes.icon}>+ Response Area</div>);
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import debug from 'debug';
|
|
3
|
-
import isUndefined from 'lodash/isUndefined';
|
|
4
|
-
|
|
5
|
-
import InlineDropdown from './inline-dropdown';
|
|
6
|
-
import DragInTheBlank from './drag-in-the-blank';
|
|
7
|
-
import ExplicitConstructedResponse from './explicit-constructed-response';
|
|
8
|
-
import { getDefaultElement } from './utils';
|
|
9
|
-
import { ToolbarIcon } from './icons';
|
|
10
|
-
|
|
11
|
-
const log = debug('@pie-lib:editable-html:plugins:respArea');
|
|
12
|
-
|
|
13
|
-
const lastIndexMap = {};
|
|
14
|
-
const elTypesMap = {
|
|
15
|
-
'inline-dropdown': 'inline_dropdown',
|
|
16
|
-
'explicit-constructed-response': 'explicit_constructed_response',
|
|
17
|
-
'drag-in-the-blank': 'drag_in_the_blank'
|
|
18
|
-
};
|
|
19
|
-
const elTypesArray = Object.values(elTypesMap);
|
|
20
|
-
|
|
21
|
-
export default function ResponseAreaPlugin(opts) {
|
|
22
|
-
const isOfCurrentType = d => d.type === opts.type || d.type === elTypesMap[opts.type];
|
|
23
|
-
|
|
24
|
-
const toolbar = {
|
|
25
|
-
icon: <ToolbarIcon />,
|
|
26
|
-
buttonStyles: {
|
|
27
|
-
margin: '0 20px 0 auto'
|
|
28
|
-
},
|
|
29
|
-
onClick: (value, onChange) => {
|
|
30
|
-
log('[toolbar] onClick');
|
|
31
|
-
const change = value.change();
|
|
32
|
-
const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
|
|
33
|
-
|
|
34
|
-
if (currentRespAreaList.size >= opts.maxResponseAreas) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const type = opts.type.replace(/-/g, '_');
|
|
39
|
-
const prevIndex = lastIndexMap[type];
|
|
40
|
-
const newIndex = prevIndex === 0 ? prevIndex : prevIndex + 1;
|
|
41
|
-
const newInline = getDefaultElement(opts, newIndex);
|
|
42
|
-
|
|
43
|
-
lastIndexMap[type] += 1;
|
|
44
|
-
|
|
45
|
-
if (newInline) {
|
|
46
|
-
if (change.value.selection.startKey || change.value.selection.endKey) {
|
|
47
|
-
change.insertInline(newInline);
|
|
48
|
-
} else {
|
|
49
|
-
// If the markup is empty and there's no focus
|
|
50
|
-
const lastText = value.document.getLastText();
|
|
51
|
-
const parentNode = value.document.getParent(lastText.key);
|
|
52
|
-
|
|
53
|
-
if (parentNode) {
|
|
54
|
-
const index = parentNode.nodes.indexOf(lastText.key);
|
|
55
|
-
|
|
56
|
-
if (parentNode.isVoid) return;
|
|
57
|
-
|
|
58
|
-
change.insertNodeByKey(parentNode.key, index + 1, newInline);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (newInline.type === 'drag_in_the_blank') {
|
|
63
|
-
const nextText = change.value.document.getNextText(newInline.key);
|
|
64
|
-
|
|
65
|
-
if (nextText) {
|
|
66
|
-
change.moveFocusTo(nextText.key, 0).moveAnchorTo(nextText.key, 0);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
onChange(change);
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
customToolbar: opts.respAreaToolbar,
|
|
74
|
-
supports: node => node.object === 'inline' && elTypesArray.indexOf(node.type) >= 0,
|
|
75
|
-
showDone: false
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
name: 'response_area',
|
|
80
|
-
toolbar,
|
|
81
|
-
filterPlugins: (node, plugins) => {
|
|
82
|
-
if (node.type === 'explicit_constructed_response' || node.type === 'drag_in_the_blank') {
|
|
83
|
-
return [];
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return plugins.filter(p => p.name !== 'response_area');
|
|
87
|
-
},
|
|
88
|
-
deleteNode: (e, node, value, onChange) => {
|
|
89
|
-
e.preventDefault();
|
|
90
|
-
|
|
91
|
-
const change = value.change().removeNodeByKey(node.key);
|
|
92
|
-
|
|
93
|
-
onChange(change);
|
|
94
|
-
},
|
|
95
|
-
renderNode(props) {
|
|
96
|
-
const { attributes, node: n } = props;
|
|
97
|
-
|
|
98
|
-
if (n.type === 'explicit_constructed_response') {
|
|
99
|
-
const data = n.data.toJSON();
|
|
100
|
-
let error;
|
|
101
|
-
|
|
102
|
-
if (opts.error) {
|
|
103
|
-
error = opts.error();
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return (
|
|
107
|
-
<ExplicitConstructedResponse
|
|
108
|
-
attributes={attributes}
|
|
109
|
-
value={data.value}
|
|
110
|
-
error={error && error[data.index] && error[data.index][0]}
|
|
111
|
-
/>
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
if (n.type === 'drag_in_the_blank') {
|
|
116
|
-
const data = n.data.toJSON();
|
|
117
|
-
|
|
118
|
-
return (
|
|
119
|
-
<DragInTheBlank attributes={attributes} data={data} n={n} nodeProps={props} opts={opts} />
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
if (n.type === 'inline_dropdown') {
|
|
124
|
-
const data = n.data.toJSON();
|
|
125
|
-
|
|
126
|
-
return <InlineDropdown attributes={attributes} selectedItem={data.value} />;
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
onChange(change, editor) {
|
|
130
|
-
const type = opts.type.replace(/-/g, '_');
|
|
131
|
-
|
|
132
|
-
if (isUndefined(lastIndexMap[type])) {
|
|
133
|
-
lastIndexMap[type] = 0;
|
|
134
|
-
|
|
135
|
-
change.value.document.forEachDescendant(d => {
|
|
136
|
-
if (d.type === type) {
|
|
137
|
-
const newIndex = parseInt(d.data.get('index'), 10);
|
|
138
|
-
|
|
139
|
-
if (newIndex > lastIndexMap[type]) {
|
|
140
|
-
lastIndexMap[type] = newIndex;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (!editor.value) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const currentRespAreaList = change.value.document.filterDescendants(isOfCurrentType);
|
|
151
|
-
const oldRespAreaList = editor.value.document.filterDescendants(isOfCurrentType);
|
|
152
|
-
|
|
153
|
-
if (currentRespAreaList.size >= opts.maxResponseAreas) {
|
|
154
|
-
toolbar.disabled = true;
|
|
155
|
-
} else {
|
|
156
|
-
toolbar.disabled = false;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const arrayToFilter =
|
|
160
|
-
oldRespAreaList.size > currentRespAreaList.size ? oldRespAreaList : currentRespAreaList;
|
|
161
|
-
const arrayToUseForFilter =
|
|
162
|
-
arrayToFilter === oldRespAreaList ? currentRespAreaList : oldRespAreaList;
|
|
163
|
-
|
|
164
|
-
const elementsWithChangedStatus = arrayToFilter.filter(
|
|
165
|
-
d => !arrayToUseForFilter.find(e => e.data.get('index') === d.data.get('index'))
|
|
166
|
-
);
|
|
167
|
-
|
|
168
|
-
if (elementsWithChangedStatus.size && oldRespAreaList.size > currentRespAreaList.size) {
|
|
169
|
-
opts.onHandleAreaChange(elementsWithChangedStatus);
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
onDrop(event, change, editor) {
|
|
173
|
-
const closestEl = event.target.closest('[data-key]');
|
|
174
|
-
const inline = editor.value.document.findDescendant(d => d.key === closestEl.dataset.key);
|
|
175
|
-
|
|
176
|
-
if (inline.type === 'drag_in_the_blank') {
|
|
177
|
-
return false;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export const serialization = {
|
|
184
|
-
deserialize(el) {
|
|
185
|
-
const type = el.dataset && el.dataset.type;
|
|
186
|
-
|
|
187
|
-
switch (type) {
|
|
188
|
-
case 'inline_dropdown':
|
|
189
|
-
return {
|
|
190
|
-
object: 'inline',
|
|
191
|
-
type: 'inline_dropdown',
|
|
192
|
-
isVoid: true,
|
|
193
|
-
data: {
|
|
194
|
-
index: el.dataset.index,
|
|
195
|
-
value: el.dataset.value
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
case 'explicit_constructed_response':
|
|
199
|
-
return {
|
|
200
|
-
object: 'inline',
|
|
201
|
-
type: 'explicit_constructed_response',
|
|
202
|
-
isVoid: true,
|
|
203
|
-
data: {
|
|
204
|
-
index: el.dataset.index,
|
|
205
|
-
value: el.dataset.value
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
case 'drag_in_the_blank':
|
|
209
|
-
return {
|
|
210
|
-
object: 'inline',
|
|
211
|
-
type: 'drag_in_the_blank',
|
|
212
|
-
isVoid: true,
|
|
213
|
-
data: {
|
|
214
|
-
index: el.dataset.index,
|
|
215
|
-
id: el.dataset.id,
|
|
216
|
-
value: el.dataset.value,
|
|
217
|
-
inTable: el.dataset.inTable
|
|
218
|
-
}
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
serialize(object) {
|
|
223
|
-
if (object.object !== 'inline') {
|
|
224
|
-
return;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
switch (object.type) {
|
|
228
|
-
case 'inline_dropdown': {
|
|
229
|
-
const data = object.data.toJSON();
|
|
230
|
-
|
|
231
|
-
return <span data-type="inline_dropdown" data-index={data.index} data-value={data.value} />;
|
|
232
|
-
}
|
|
233
|
-
case 'explicit_constructed_response': {
|
|
234
|
-
const data = object.data.toJSON();
|
|
235
|
-
|
|
236
|
-
return (
|
|
237
|
-
<span
|
|
238
|
-
data-type="explicit_constructed_response"
|
|
239
|
-
data-index={data.index}
|
|
240
|
-
data-value={data.value}
|
|
241
|
-
/>
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
case 'drag_in_the_blank': {
|
|
245
|
-
const data = object.data.toJSON();
|
|
246
|
-
|
|
247
|
-
return (
|
|
248
|
-
<span
|
|
249
|
-
data-type="drag_in_the_blank"
|
|
250
|
-
data-index={data.index}
|
|
251
|
-
data-id={data.id}
|
|
252
|
-
data-value={data.value}
|
|
253
|
-
data-in-table={data.inTable}
|
|
254
|
-
/>
|
|
255
|
-
);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
};
|