@pie-element/ebsr 6.6.3-next.414 → 6.6.3-next.430
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 +25 -0
- package/configure/CHANGELOG.md +25 -0
- package/configure/package.json +2 -2
- package/controller/CHANGELOG.md +17 -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 -1563
- package/configure/node_modules/@pie-element/multiple-choice/LICENSE.md +0 -5
- 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 -1140
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/defaults.js +0 -103
- 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 -193
- 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 -471
- package/configure/node_modules/@pie-element/multiple-choice/configure/lib/main.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 -714
- 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 -242
- 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 -311
- package/configure/node_modules/@pie-element/multiple-choice/docs/config-schema.json.md +0 -245
- 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 -326
- package/configure/node_modules/@pie-element/multiple-choice/docs/pie-schema.json.md +0 -266
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.js +0 -284
- package/configure/node_modules/@pie-element/multiple-choice/lib/choice-input.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 -341
- package/configure/node_modules/@pie-element/multiple-choice/lib/multiple-choice.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 -1498
- 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/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 -176
- 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 -391
- 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 -194
- 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 -184
- 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 -44
- 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 -152
- 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 -195
- 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 -144
- 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 -120
- 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 -187
- 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 -109
- 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 -111
- 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 -95
- 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.js +0 -274
- 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 -136
- 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 -422
- 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 -113
- 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 -206
- 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 -190
- 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 -91
- 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/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 -301
- 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 -54
- 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 -88
- 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.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 -30
- 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 -513
- 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 -81
- 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 -150
- 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 -60
- package/configure/node_modules/@pie-lib/correct-answer-toggle/src/index.jsx +0 -73
- 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 -3162
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -1441
- 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 -698
- 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 -213
- 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/image/component.js +0 -248
- 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 -141
- 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 -219
- 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 -141
- 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 -133
- 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 -136
- 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 -352
- 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 -338
- 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 -445
- 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 -105
- 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 -100
- 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 -229
- 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 -53
- 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 -277
- 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 -443
- 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 -167
- 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 -129
- 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 -164
- 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 -350
- 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 -405
- 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 -584
- package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -128
- 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/image/component.jsx +0 -166
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -62
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -180
- 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 -112
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -289
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -281
- 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 -160
- 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 -244
- 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 -390
- 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 -103
- 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 -217
- 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 -86
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -313
- 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 -369
- 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 -1412
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -874
- 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 -123
- 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 -75
- 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 -367
- 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 -30
- 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 -26
- 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 -139
- 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 -198
- 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 -50
- 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 -38
- 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 -126
- 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 -200
- 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 -255
- 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 -216
- 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 -53
- 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 -279
- 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 -18
- 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 -116
- package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -265
- 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 -29
- 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 -139
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -657
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -412
- 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 -312
- 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 -119
- 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 -99
- 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 -239
- 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 -203
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -847
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -742
- 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 -386
- 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 -259
- 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 -163
- 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 -36
- 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 -311
- package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -185
- package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -101
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -937
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -616
- 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 -144
- 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 -154
- 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 -98
- 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 -99
- 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 -129
- 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 -133
- 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 -154
- 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 -194
- 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 -73
- 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
- package/configure/node_modules/immutable/LICENSE +0 -21
- package/configure/node_modules/immutable/README.md +0 -657
- package/configure/node_modules/immutable/dist/immutable-nonambient.d.ts +0 -5607
- package/configure/node_modules/immutable/dist/immutable.d.ts +0 -5611
- package/configure/node_modules/immutable/dist/immutable.es.js +0 -5893
- package/configure/node_modules/immutable/dist/immutable.js +0 -5948
- package/configure/node_modules/immutable/dist/immutable.js.flow +0 -2340
- package/configure/node_modules/immutable/dist/immutable.min.js +0 -55
- package/configure/node_modules/immutable/package.json +0 -41
- 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/node_modules/slate-edit-list/CHANGELOG.md +0 -124
- package/configure/node_modules/slate-edit-list/LICENSE +0 -201
- package/configure/node_modules/slate-edit-list/README.md +0 -159
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js +0 -73
- package/configure/node_modules/slate-edit-list/dist/changes/decreaseItemDepth.js.flow +0 -88
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js +0 -70
- package/configure/node_modules/slate-edit-list/dist/changes/increaseItemDepth.js.flow +0 -77
- package/configure/node_modules/slate-edit-list/dist/changes/index.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/changes/index.js.flow +0 -13
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js +0 -27
- package/configure/node_modules/slate-edit-list/dist/changes/splitListItem.js.flow +0 -26
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js +0 -52
- package/configure/node_modules/slate-edit-list/dist/changes/unwrapList.js.flow +0 -46
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js +0 -67
- package/configure/node_modules/slate-edit-list/dist/changes/wrapInList.js.flow +0 -67
- package/configure/node_modules/slate-edit-list/dist/core.js +0 -80
- package/configure/node_modules/slate-edit-list/dist/core.js.flow +0 -76
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js +0 -24
- package/configure/node_modules/slate-edit-list/dist/handlers/index.js.flow +0 -5
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js +0 -45
- package/configure/node_modules/slate-edit-list/dist/handlers/onBackspace.js.flow +0 -44
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js +0 -54
- package/configure/node_modules/slate-edit-list/dist/handlers/onEnter.js.flow +0 -54
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js +0 -39
- package/configure/node_modules/slate-edit-list/dist/handlers/onTab.js.flow +0 -34
- package/configure/node_modules/slate-edit-list/dist/index.js +0 -58
- package/configure/node_modules/slate-edit-list/dist/index.js.flow +0 -45
- package/configure/node_modules/slate-edit-list/dist/options.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/options.js.flow +0 -26
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js +0 -24
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentItem.js.flow +0 -20
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js +0 -31
- package/configure/node_modules/slate-edit-list/dist/utils/getCurrentList.js.flow +0 -21
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js +0 -34
- package/configure/node_modules/slate-edit-list/dist/utils/getItemDepth.js.flow +0 -24
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js +0 -60
- package/configure/node_modules/slate-edit-list/dist/utils/getItemsAtRange.js.flow +0 -51
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js +0 -25
- package/configure/node_modules/slate-edit-list/dist/utils/getListForItem.js.flow +0 -16
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js +0 -39
- package/configure/node_modules/slate-edit-list/dist/utils/getPreviousItem.js.flow +0 -29
- package/configure/node_modules/slate-edit-list/dist/utils/index.js +0 -49
- package/configure/node_modules/slate-edit-list/dist/utils/index.js.flow +0 -19
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js +0 -15
- package/configure/node_modules/slate-edit-list/dist/utils/isList.js.flow +0 -13
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js +0 -22
- package/configure/node_modules/slate-edit-list/dist/utils/isSelectionInList.js.flow +0 -14
- package/configure/node_modules/slate-edit-list/dist/validation/index.js +0 -19
- package/configure/node_modules/slate-edit-list/dist/validation/index.js.flow +0 -4
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js +0 -83
- package/configure/node_modules/slate-edit-list/dist/validation/schema.js.flow +0 -81
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js +0 -61
- package/configure/node_modules/slate-edit-list/dist/validation/validateNode.js.flow +0 -61
- package/configure/node_modules/slate-edit-list/package.json +0 -67
- package/configure/node_modules/slate-edit-table/CHANGELOG.md +0 -192
- package/configure/node_modules/slate-edit-table/LICENSE +0 -201
- package/configure/node_modules/slate-edit-table/README.md +0 -269
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js +0 -29
- package/configure/node_modules/slate-edit-table/dist/changes/clearCell.js.flow +0 -26
- package/configure/node_modules/slate-edit-table/dist/changes/index.js +0 -69
- package/configure/node_modules/slate-edit-table/dist/changes/index.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js +0 -43
- package/configure/node_modules/slate-edit-table/dist/changes/insertColumn.js.flow +0 -46
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/insertRow.js.flow +0 -35
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js +0 -29
- package/configure/node_modules/slate-edit-table/dist/changes/insertTable.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js +0 -32
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelection.js.flow +0 -31
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js +0 -84
- package/configure/node_modules/slate-edit-table/dist/changes/moveSelectionBy.js.flow +0 -80
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumn.js.flow +0 -28
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js +0 -52
- package/configure/node_modules/slate-edit-table/dist/changes/removeColumnByKey.js.flow +0 -40
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/changes/removeRow.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js +0 -41
- package/configure/node_modules/slate-edit-table/dist/changes/removeRowByKey.js.flow +0 -30
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js +0 -26
- package/configure/node_modules/slate-edit-table/dist/changes/removeTable.js.flow +0 -17
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/changes/removeTableByKey.js.flow +0 -54
- package/configure/node_modules/slate-edit-table/dist/core.js +0 -88
- package/configure/node_modules/slate-edit-table/dist/core.js.flow +0 -94
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js +0 -39
- package/configure/node_modules/slate-edit-table/dist/handlers/index.js.flow +0 -8
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js +0 -82
- package/configure/node_modules/slate-edit-table/dist/handlers/onBackspace.js.flow +0 -87
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js +0 -34
- package/configure/node_modules/slate-edit-table/dist/handlers/onEnter.js.flow +0 -37
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js +0 -71
- package/configure/node_modules/slate-edit-table/dist/handlers/onKeyDown.js.flow +0 -56
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js +0 -35
- package/configure/node_modules/slate-edit-table/dist/handlers/onModEnter.js.flow +0 -38
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/handlers/onTab.js.flow +0 -51
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js +0 -38
- package/configure/node_modules/slate-edit-table/dist/handlers/onUpDown.js.flow +0 -41
- package/configure/node_modules/slate-edit-table/dist/index.js +0 -36
- package/configure/node_modules/slate-edit-table/dist/index.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/options.js +0 -61
- package/configure/node_modules/slate-edit-table/dist/options.js.flow +0 -42
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js +0 -306
- package/configure/node_modules/slate-edit-table/dist/utils/TablePosition.js.flow +0 -211
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createCell.js.flow +0 -26
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createRow.js.flow +0 -28
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/createTable.js.flow +0 -33
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js +0 -21
- package/configure/node_modules/slate-edit-table/dist/utils/forEachCells.js.flow +0 -22
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js +0 -22
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtColumn.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js +0 -20
- package/configure/node_modules/slate-edit-table/dist/utils/getCellsAtRow.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js +0 -24
- package/configure/node_modules/slate-edit-table/dist/utils/getPosition.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js +0 -26
- package/configure/node_modules/slate-edit-table/dist/utils/getPositionByKey.js.flow +0 -21
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js +0 -24
- package/configure/node_modules/slate-edit-table/dist/utils/getRow.js.flow +0 -19
- package/configure/node_modules/slate-edit-table/dist/utils/index.js +0 -64
- package/configure/node_modules/slate-edit-table/dist/utils/index.js.flow +0 -25
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js +0 -34
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionInTable.js.flow +0 -27
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js +0 -30
- package/configure/node_modules/slate-edit-table/dist/utils/isSelectionOutOfTable.js.flow +0 -23
- package/configure/node_modules/slate-edit-table/dist/validation/index.js +0 -19
- package/configure/node_modules/slate-edit-table/dist/validation/index.js.flow +0 -4
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js +0 -101
- package/configure/node_modules/slate-edit-table/dist/validation/schema.js.flow +0 -98
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js +0 -56
- package/configure/node_modules/slate-edit-table/dist/validation/validateNode.js.flow +0 -49
- package/configure/node_modules/slate-edit-table/package.json +0 -69
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
import { DoneButton } from './done-button';
|
|
2
|
-
import Delete from '@material-ui/icons/Delete';
|
|
3
|
-
import IconButton from '@material-ui/core/IconButton';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import classNames from 'classnames';
|
|
7
|
-
import debug from 'debug';
|
|
8
|
-
import SlatePropTypes from 'slate-prop-types';
|
|
9
|
-
import debounce from 'lodash/debounce';
|
|
10
|
-
|
|
11
|
-
import { findSingleNode, findParentNode } from '../utils';
|
|
12
|
-
import { withStyles } from '@material-ui/core/styles';
|
|
13
|
-
import DefaultToolbar from './default-toolbar';
|
|
14
|
-
|
|
15
|
-
const log = debug('@pie-lib:editable-html:plugins:toolbar');
|
|
16
|
-
|
|
17
|
-
const getCustomToolbar = (plugin, node, value, handleDone, onDataChange) => {
|
|
18
|
-
if (!plugin) {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
if (!plugin.toolbar) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (plugin.toolbar.CustomToolbarComp) {
|
|
25
|
-
/**
|
|
26
|
-
* Using a pre-defined Component should be preferred
|
|
27
|
-
* as the rendering of it (and it's children) can be optimized by React.
|
|
28
|
-
* If you keep re-defining the comp with an inline function
|
|
29
|
-
* then react will have to re-render.
|
|
30
|
-
*/
|
|
31
|
-
return plugin.toolbar.CustomToolbarComp;
|
|
32
|
-
} else if (typeof plugin.toolbar.customToolbar === 'function') {
|
|
33
|
-
log('deprecated - use CustomToolbarComp');
|
|
34
|
-
return plugin.toolbar.customToolbar(node, value, handleDone, onDataChange);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export class Toolbar extends React.Component {
|
|
39
|
-
static propTypes = {
|
|
40
|
-
zIndex: PropTypes.number,
|
|
41
|
-
value: SlatePropTypes.value.isRequired,
|
|
42
|
-
plugins: PropTypes.array,
|
|
43
|
-
plugin: PropTypes.object,
|
|
44
|
-
onImageClick: PropTypes.func,
|
|
45
|
-
onDone: PropTypes.func.isRequired,
|
|
46
|
-
classes: PropTypes.object.isRequired,
|
|
47
|
-
isFocused: PropTypes.bool,
|
|
48
|
-
autoWidth: PropTypes.bool,
|
|
49
|
-
onChange: PropTypes.func.isRequired,
|
|
50
|
-
pluginProps: PropTypes.object,
|
|
51
|
-
toolbarOpts: PropTypes.shape({
|
|
52
|
-
position: PropTypes.oneOf(['bottom', 'top']),
|
|
53
|
-
alignment: PropTypes.oneOf(['left', 'right']),
|
|
54
|
-
alwaysVisible: PropTypes.bool,
|
|
55
|
-
showDone: PropTypes.bool
|
|
56
|
-
}),
|
|
57
|
-
onDataChange: PropTypes.func
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
constructor(props) {
|
|
61
|
-
super(props);
|
|
62
|
-
this.state = {
|
|
63
|
-
change: null
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
hasMark = type => {
|
|
68
|
-
const { value } = this.props;
|
|
69
|
-
return value.marks.some(mark => mark.type == type);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
hasBlock = type => {
|
|
73
|
-
const { value } = this.props;
|
|
74
|
-
return value.blocks.some(node => node.type == type);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
onToggle = plugin => {
|
|
78
|
-
const { value, onChange } = this.props;
|
|
79
|
-
|
|
80
|
-
if (!plugin.onToggle) return;
|
|
81
|
-
|
|
82
|
-
const change = plugin.onToggle(value.change());
|
|
83
|
-
onChange(change);
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
onClick = e => {
|
|
87
|
-
log('[onClick]');
|
|
88
|
-
e.preventDefault();
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
onButtonClick = fn => {
|
|
92
|
-
return e => {
|
|
93
|
-
e.preventDefault();
|
|
94
|
-
fn();
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
|
|
98
|
-
onToolbarDone = (change, finishEditing) => {
|
|
99
|
-
log('[onToolbarDone] change: ', change, 'finishEditing: ', finishEditing);
|
|
100
|
-
const { onChange, onDone } = this.props;
|
|
101
|
-
|
|
102
|
-
if (change) {
|
|
103
|
-
onChange(change, () => {
|
|
104
|
-
if (finishEditing) {
|
|
105
|
-
onDone();
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
} else {
|
|
109
|
-
if (finishEditing) {
|
|
110
|
-
log('[onToolbarChange] call onDone');
|
|
111
|
-
onDone();
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
onDeleteClick = debounce(
|
|
117
|
-
(e, plugin, node, value, onChange) => plugin.deleteNode(e, node, value, onChange),
|
|
118
|
-
500
|
|
119
|
-
);
|
|
120
|
-
|
|
121
|
-
onDeleteMouseDown = (e, plugin, node, value, onChange) => {
|
|
122
|
-
e.persist();
|
|
123
|
-
this.onDeleteClick(e, plugin, node, value, onChange);
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
render() {
|
|
127
|
-
const {
|
|
128
|
-
classes,
|
|
129
|
-
plugins,
|
|
130
|
-
pluginProps,
|
|
131
|
-
toolbarOpts,
|
|
132
|
-
value,
|
|
133
|
-
autoWidth,
|
|
134
|
-
onChange,
|
|
135
|
-
isFocused,
|
|
136
|
-
onDone
|
|
137
|
-
} = this.props;
|
|
138
|
-
|
|
139
|
-
const node = findSingleNode(value);
|
|
140
|
-
const parentNode = findParentNode(value, node);
|
|
141
|
-
|
|
142
|
-
log(' --------------> [render] node: ', node);
|
|
143
|
-
log('[render] node: ', node);
|
|
144
|
-
|
|
145
|
-
const plugin = plugins.find(p => {
|
|
146
|
-
if (!node) {
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (p.toolbar) {
|
|
151
|
-
return p.toolbar.supports && p.toolbar.supports(node, value);
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
const parentPlugin = plugins.find(p => {
|
|
155
|
-
if (!parentNode) {
|
|
156
|
-
return;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
if (p.toolbar) {
|
|
160
|
-
return p.toolbar.supports && p.toolbar.supports(parentNode, value);
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
|
|
164
|
-
log('[render] plugin: ', plugin);
|
|
165
|
-
|
|
166
|
-
const handleDone = (change, done) => {
|
|
167
|
-
let handler = onDone;
|
|
168
|
-
|
|
169
|
-
if (plugin && plugin.toolbar && plugin.toolbar.customToolbar) {
|
|
170
|
-
handler = this.onToolbarDone;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
handler(change, done);
|
|
174
|
-
|
|
175
|
-
if (parentPlugin && parentPlugin.handleDone) {
|
|
176
|
-
parentPlugin.handleDone(value, node, plugin, onChange);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
const handleDataChange = (key, data) => {
|
|
181
|
-
this.props.onDataChange(key, data);
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
const CustomToolbar = getCustomToolbar(
|
|
185
|
-
plugin,
|
|
186
|
-
node,
|
|
187
|
-
value,
|
|
188
|
-
handleDone,
|
|
189
|
-
this.props.onDataChange
|
|
190
|
-
);
|
|
191
|
-
|
|
192
|
-
const filteredPlugins =
|
|
193
|
-
plugin && plugin.filterPlugins ? plugin.filterPlugins(node, plugins) : plugins;
|
|
194
|
-
|
|
195
|
-
log('[render] CustomToolbar: ', CustomToolbar);
|
|
196
|
-
const parentExtraStyles =
|
|
197
|
-
parentPlugin && parentPlugin.pluginStyles
|
|
198
|
-
? parentPlugin.pluginStyles(node, parentNode, plugin)
|
|
199
|
-
: {};
|
|
200
|
-
const pluginExtraStyles =
|
|
201
|
-
plugin && plugin.pluginStyles ? plugin.pluginStyles(node, parentNode, plugin) : {};
|
|
202
|
-
const extraStyles = {
|
|
203
|
-
...pluginExtraStyles,
|
|
204
|
-
...parentExtraStyles
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
const deletable = node && plugin && plugin.deleteNode;
|
|
208
|
-
const customToolbarShowDone =
|
|
209
|
-
node && plugin && plugin.toolbar && plugin.toolbar.showDone && !toolbarOpts.alwaysVisible;
|
|
210
|
-
|
|
211
|
-
// If there is a toolbarOpts we check if the showDone is not equal to false
|
|
212
|
-
const defaultToolbarShowDone = !toolbarOpts || toolbarOpts.showDone !== false;
|
|
213
|
-
|
|
214
|
-
const hasDoneButton = defaultToolbarShowDone || customToolbarShowDone;
|
|
215
|
-
|
|
216
|
-
const names = classNames(classes.toolbar, {
|
|
217
|
-
[classes.toolbarWithNoDone]: !hasDoneButton,
|
|
218
|
-
[classes.toolbarTop]: toolbarOpts.position === 'top',
|
|
219
|
-
[classes.toolbarRight]: toolbarOpts.alignment === 'right',
|
|
220
|
-
[classes.focused]: toolbarOpts.alwaysVisible || isFocused,
|
|
221
|
-
[classes.autoWidth]: autoWidth,
|
|
222
|
-
[classes.fullWidth]: !autoWidth
|
|
223
|
-
});
|
|
224
|
-
|
|
225
|
-
return (
|
|
226
|
-
<div className={names} style={extraStyles} onClick={this.onClick}>
|
|
227
|
-
{CustomToolbar ? (
|
|
228
|
-
<CustomToolbar
|
|
229
|
-
node={node}
|
|
230
|
-
value={value}
|
|
231
|
-
onToolbarDone={this.onToolbarDone}
|
|
232
|
-
onDataChange={handleDataChange}
|
|
233
|
-
pluginProps={pluginProps}
|
|
234
|
-
/>
|
|
235
|
-
) : (
|
|
236
|
-
<DefaultToolbar
|
|
237
|
-
plugins={filteredPlugins}
|
|
238
|
-
pluginProps={pluginProps}
|
|
239
|
-
value={value}
|
|
240
|
-
onChange={onChange}
|
|
241
|
-
showDone={defaultToolbarShowDone}
|
|
242
|
-
onDone={handleDone}
|
|
243
|
-
deletable={deletable}
|
|
244
|
-
/>
|
|
245
|
-
)}
|
|
246
|
-
|
|
247
|
-
<div className={classes.shared}>
|
|
248
|
-
{deletable && (
|
|
249
|
-
<IconButton
|
|
250
|
-
aria-label="Delete"
|
|
251
|
-
className={classes.iconRoot}
|
|
252
|
-
onMouseDown={e => this.onDeleteMouseDown(e, plugin, node, value, onChange)}
|
|
253
|
-
classes={{
|
|
254
|
-
root: classes.iconRoot
|
|
255
|
-
}}
|
|
256
|
-
>
|
|
257
|
-
<Delete />
|
|
258
|
-
</IconButton>
|
|
259
|
-
)}
|
|
260
|
-
{customToolbarShowDone && <DoneButton onClick={handleDone} />}
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
const style = {
|
|
268
|
-
toolbar: {
|
|
269
|
-
position: 'absolute',
|
|
270
|
-
zIndex: 10,
|
|
271
|
-
cursor: 'pointer',
|
|
272
|
-
justifyContent: 'space-between',
|
|
273
|
-
background: 'var(--editable-html-toolbar-bg, #efefef)',
|
|
274
|
-
minWidth: '280px',
|
|
275
|
-
margin: '5px 0 0 0',
|
|
276
|
-
padding: '2px',
|
|
277
|
-
boxShadow:
|
|
278
|
-
'0px 1px 5px 0px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 3px 1px -2px rgba(0, 0, 0, 0.12)',
|
|
279
|
-
boxSizing: 'border-box',
|
|
280
|
-
display: 'none'
|
|
281
|
-
},
|
|
282
|
-
toolbarWithNoDone: {
|
|
283
|
-
minWidth: '265px'
|
|
284
|
-
},
|
|
285
|
-
toolbarTop: {
|
|
286
|
-
top: '-45px'
|
|
287
|
-
},
|
|
288
|
-
toolbarRight: {
|
|
289
|
-
right: 0
|
|
290
|
-
},
|
|
291
|
-
fullWidth: {
|
|
292
|
-
width: '100%'
|
|
293
|
-
},
|
|
294
|
-
autoWidth: {
|
|
295
|
-
width: 'auto'
|
|
296
|
-
},
|
|
297
|
-
focused: {
|
|
298
|
-
display: 'flex'
|
|
299
|
-
},
|
|
300
|
-
iconRoot: {
|
|
301
|
-
width: '28px',
|
|
302
|
-
height: '28px',
|
|
303
|
-
padding: '4px',
|
|
304
|
-
verticalAlign: 'top'
|
|
305
|
-
},
|
|
306
|
-
label: {
|
|
307
|
-
color: 'var(--editable-html-toolbar-check, #00bb00)'
|
|
308
|
-
},
|
|
309
|
-
shared: {
|
|
310
|
-
display: 'flex'
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
export default withStyles(style, { index: 1000 })(Toolbar);
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export const findSingleNode = value => {
|
|
2
|
-
if (!value || !value.isCollapsed || !value.startKey) {
|
|
3
|
-
return;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
const inline = value.document.getClosestInline(value.startKey);
|
|
7
|
-
|
|
8
|
-
if (inline) {
|
|
9
|
-
return inline;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
const block = value.document.getClosestBlock(value.startKey);
|
|
13
|
-
|
|
14
|
-
if (block) {
|
|
15
|
-
return block;
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export const findParentNode = (value, node) => {
|
|
20
|
-
if (!value || !node) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return value.document.getParent(node.key);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const hasMark = (value, type) => value && value.marks.some(mark => mark.type == type);
|
|
28
|
-
|
|
29
|
-
export const hasBlock = (value, type) => value && value.blocks.some(node => node.type == type);
|
|
30
|
-
|
|
31
|
-
export const hasNode = ({ document }, type) =>
|
|
32
|
-
document && document.nodes.some(node => node.type == type);
|
|
@@ -1,369 +0,0 @@
|
|
|
1
|
-
import Html from 'slate-html-serializer';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import debug from 'debug';
|
|
4
|
-
import { object as toStyleObject } from 'to-style';
|
|
5
|
-
|
|
6
|
-
import { serialization as imgSerialization } from './plugins/image';
|
|
7
|
-
import { serialization as mathSerialization } from './plugins/math';
|
|
8
|
-
import { serialization as mediaSerialization } from './plugins/media';
|
|
9
|
-
import { serialization as listSerialization } from './plugins/list';
|
|
10
|
-
import { serialization as tableSerialization } from './plugins/table';
|
|
11
|
-
import { serialization as responseAreaSerialization } from './plugins/respArea';
|
|
12
|
-
import { Mark, Value } from 'slate';
|
|
13
|
-
|
|
14
|
-
const log = debug('@pie-lib:editable-html:serialization');
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Tags to blocks.
|
|
18
|
-
*
|
|
19
|
-
* @type {Object}
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
export const BLOCK_TAGS = {
|
|
23
|
-
div: 'div',
|
|
24
|
-
span: 'span',
|
|
25
|
-
p: 'paragraph',
|
|
26
|
-
blockquote: 'quote',
|
|
27
|
-
pre: 'code',
|
|
28
|
-
h1: 'heading-one',
|
|
29
|
-
h2: 'heading-two',
|
|
30
|
-
h3: 'heading-three',
|
|
31
|
-
h4: 'heading-four',
|
|
32
|
-
h5: 'heading-five',
|
|
33
|
-
h6: 'heading-six'
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Tags to marks.
|
|
38
|
-
*
|
|
39
|
-
* @type {Object}
|
|
40
|
-
*/
|
|
41
|
-
|
|
42
|
-
const MARK_TAGS = {
|
|
43
|
-
b: 'bold',
|
|
44
|
-
em: 'italic',
|
|
45
|
-
u: 'underline',
|
|
46
|
-
s: 'strikethrough',
|
|
47
|
-
code: 'code',
|
|
48
|
-
strong: 'bold'
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export const parseStyleString = s => {
|
|
52
|
-
const regex = /([\w-]*)\s*:\s*([^;]*)/g;
|
|
53
|
-
let match;
|
|
54
|
-
const result = {};
|
|
55
|
-
while ((match = regex.exec(s))) {
|
|
56
|
-
result[match[1]] = match[2].trim();
|
|
57
|
-
}
|
|
58
|
-
return result;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export const reactAttributes = o => toStyleObject(o, { camelize: true });
|
|
62
|
-
|
|
63
|
-
const attributesToMap = el => (acc, attribute) => {
|
|
64
|
-
const value = el.getAttribute(attribute);
|
|
65
|
-
if (value) {
|
|
66
|
-
if (attribute === 'style') {
|
|
67
|
-
const styleString = el.getAttribute(attribute);
|
|
68
|
-
const reactStyleObject = reactAttributes(parseStyleString(styleString));
|
|
69
|
-
acc['style'] = reactStyleObject;
|
|
70
|
-
} else {
|
|
71
|
-
acc[attribute] = el.getAttribute(attribute);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
return acc;
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
const attributes = ['border', 'cellpadding', 'cellspacing', 'class', 'style'];
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Serializer rules.
|
|
81
|
-
*
|
|
82
|
-
* @type {Array}
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
const blocks = {
|
|
86
|
-
deserialize(el, next) {
|
|
87
|
-
log('[blocks:deserialize] block: ', el);
|
|
88
|
-
const block = BLOCK_TAGS[el.tagName.toLowerCase()];
|
|
89
|
-
if (!block) return;
|
|
90
|
-
log('[blocks:deserialize] block: ', block);
|
|
91
|
-
|
|
92
|
-
if (el.childNodes.length === 1) {
|
|
93
|
-
const cn = el.childNodes[0];
|
|
94
|
-
if (cn && cn.tagName && cn.tagName.toLowerCase() === block) {
|
|
95
|
-
log('[we have a child node of the same]...');
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return {
|
|
101
|
-
object: 'block',
|
|
102
|
-
type: block,
|
|
103
|
-
/**
|
|
104
|
-
* Here for rendering styles for all block elements
|
|
105
|
-
*/
|
|
106
|
-
data: { attributes: attributes.reduce(attributesToMap(el), {}) },
|
|
107
|
-
nodes: next(el.childNodes)
|
|
108
|
-
};
|
|
109
|
-
},
|
|
110
|
-
serialize: (object, children) => {
|
|
111
|
-
if (object.object !== 'block') return;
|
|
112
|
-
|
|
113
|
-
const jsonData = object.data.toJSON();
|
|
114
|
-
|
|
115
|
-
log('[blocks:serialize] object: ', object, children);
|
|
116
|
-
let key;
|
|
117
|
-
|
|
118
|
-
for (key in BLOCK_TAGS) {
|
|
119
|
-
if (BLOCK_TAGS[key] === object.type) {
|
|
120
|
-
const Tag = key;
|
|
121
|
-
|
|
122
|
-
return <Tag {...jsonData.attributes}>{children}</Tag>;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
|
|
128
|
-
const marks = {
|
|
129
|
-
deserialize(el, next) {
|
|
130
|
-
const mark = MARK_TAGS[el.tagName.toLowerCase()];
|
|
131
|
-
if (!mark) return;
|
|
132
|
-
log('[deserialize] mark: ', mark);
|
|
133
|
-
return {
|
|
134
|
-
object: 'mark',
|
|
135
|
-
type: mark,
|
|
136
|
-
nodes: next(el.childNodes)
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
serialize(object, children) {
|
|
140
|
-
if (Mark.isMark(object)) {
|
|
141
|
-
for (var key in MARK_TAGS) {
|
|
142
|
-
if (MARK_TAGS[key] === object.type) {
|
|
143
|
-
const Tag = key;
|
|
144
|
-
return <Tag>{children}</Tag>;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
const findPreviousText = el => {
|
|
152
|
-
if (el.nodeName === '#text') {
|
|
153
|
-
return el;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (el.previousSibling) {
|
|
157
|
-
return findPreviousText(el.previousSibling);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
return null;
|
|
161
|
-
};
|
|
162
|
-
|
|
163
|
-
export const TEXT_RULE = {
|
|
164
|
-
deserialize(el) {
|
|
165
|
-
/**
|
|
166
|
-
* This needs to be called on the dom element in order to merge the adjacent text nodes together
|
|
167
|
-
* */
|
|
168
|
-
el.normalize();
|
|
169
|
-
|
|
170
|
-
if (el.tagName && el.tagName.toLowerCase() === 'br') {
|
|
171
|
-
return {
|
|
172
|
-
object: 'text',
|
|
173
|
-
leaves: [
|
|
174
|
-
{
|
|
175
|
-
object: 'leaf',
|
|
176
|
-
text: '\n'
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
if (el.nodeName === '#text') {
|
|
183
|
-
if (el.nodeValue && el.nodeValue.match(/<!--.*?-->/)) return;
|
|
184
|
-
|
|
185
|
-
log('[text:deserialize] return text object..');
|
|
186
|
-
return {
|
|
187
|
-
object: 'text',
|
|
188
|
-
leaves: [
|
|
189
|
-
{
|
|
190
|
-
object: 'leaf',
|
|
191
|
-
text: el.nodeValue
|
|
192
|
-
}
|
|
193
|
-
]
|
|
194
|
-
};
|
|
195
|
-
}
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
serialize(obj, children) {
|
|
199
|
-
if (obj.object === 'string') {
|
|
200
|
-
return children.split('\n').reduce((array, text, i) => {
|
|
201
|
-
if (i !== 0) array.push(<br />);
|
|
202
|
-
array.push(text);
|
|
203
|
-
return array;
|
|
204
|
-
}, []);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
};
|
|
208
|
-
|
|
209
|
-
const RULES = [
|
|
210
|
-
listSerialization,
|
|
211
|
-
mathSerialization,
|
|
212
|
-
mediaSerialization,
|
|
213
|
-
imgSerialization,
|
|
214
|
-
tableSerialization,
|
|
215
|
-
responseAreaSerialization,
|
|
216
|
-
TEXT_RULE,
|
|
217
|
-
blocks,
|
|
218
|
-
marks
|
|
219
|
-
];
|
|
220
|
-
|
|
221
|
-
function allWhitespace(node) {
|
|
222
|
-
// Use ECMA-262 Edition 3 String and RegExp features
|
|
223
|
-
return !/[^\t\n\r ]/.test(node.textContent);
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
function defaultParseHtml(html) {
|
|
227
|
-
if (typeof DOMParser === 'undefined') {
|
|
228
|
-
throw new Error(
|
|
229
|
-
'The native `DOMParser` global which the `Html` serializer uses by default is not present in this environment. You must supply the `options.parseHtml` function instead.'
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
const parsed = new DOMParser().parseFromString(html, 'text/html');
|
|
234
|
-
|
|
235
|
-
const { body } = parsed;
|
|
236
|
-
var textNodes = document.createTreeWalker(body, NodeFilter.SHOW_TEXT, null, null);
|
|
237
|
-
var n = textNodes.nextNode();
|
|
238
|
-
|
|
239
|
-
while (n) {
|
|
240
|
-
if (allWhitespace(n) || n.nodeValue === '\u200B') {
|
|
241
|
-
n.parentNode.removeChild(n);
|
|
242
|
-
}
|
|
243
|
-
n = textNodes.nextNode();
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
return body;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/** If this lib is used on the server side, we need to bypass using the DOMParser - just put in a stub. */
|
|
250
|
-
const parseHtml =
|
|
251
|
-
typeof window === 'undefined'
|
|
252
|
-
? () => ({
|
|
253
|
-
childNodes: []
|
|
254
|
-
})
|
|
255
|
-
: defaultParseHtml;
|
|
256
|
-
|
|
257
|
-
const serializer = new Html({
|
|
258
|
-
defaultBlock: 'div',
|
|
259
|
-
rules: RULES,
|
|
260
|
-
parseHtml
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
const _extends =
|
|
264
|
-
Object.assign ||
|
|
265
|
-
function(target) {
|
|
266
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
267
|
-
var source = arguments[i];
|
|
268
|
-
|
|
269
|
-
for (var key in source) {
|
|
270
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
271
|
-
target[key] = source[key];
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
return target;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* This is needed in order to override the function that eventually leads
|
|
281
|
-
* to the max iteration of 12, which in most cases it's not enough. The newer versions
|
|
282
|
-
* have a different way to calculate this, but updating to a newer version of slate
|
|
283
|
-
* requires a lot of work fixing other issues. So we just increase the rules by 1000,
|
|
284
|
-
* which means a lot of iterations.
|
|
285
|
-
* Below is the code that calculates the max iterations.
|
|
286
|
-
* var max = schema.stack.plugins.length + schema.rules.length + 1;
|
|
287
|
-
*/
|
|
288
|
-
serializer.deserialize = function deserialize(html) {
|
|
289
|
-
const options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
290
|
-
const _options$toJSON = options.toJSON;
|
|
291
|
-
const toJSON = _options$toJSON === undefined ? false : _options$toJSON;
|
|
292
|
-
const defaultBlock = this.defaultBlock;
|
|
293
|
-
const parseHtml = this.parseHtml;
|
|
294
|
-
|
|
295
|
-
const fragment = parseHtml(html);
|
|
296
|
-
const children = Array.from(fragment.childNodes);
|
|
297
|
-
let nodes = this.deserializeElements(children);
|
|
298
|
-
|
|
299
|
-
// COMPAT: ensure that all top-level inline nodes are wrapped into a block.
|
|
300
|
-
nodes = nodes.reduce(function(memo, node, i, original) {
|
|
301
|
-
if (node.object === 'block') {
|
|
302
|
-
memo.push(node);
|
|
303
|
-
return memo;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
if (i > 0 && original[i - 1].object !== 'block') {
|
|
307
|
-
const _block = memo[memo.length - 1];
|
|
308
|
-
|
|
309
|
-
_block.nodes.push(node);
|
|
310
|
-
return memo;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
const block = _extends({ object: 'block', data: {}, isVoid: false }, defaultBlock, {
|
|
314
|
-
nodes: [node]
|
|
315
|
-
});
|
|
316
|
-
|
|
317
|
-
memo.push(block);
|
|
318
|
-
return memo;
|
|
319
|
-
}, []);
|
|
320
|
-
|
|
321
|
-
if (nodes.length === 0) {
|
|
322
|
-
nodes = [
|
|
323
|
-
_extends({ object: 'block', data: {}, isVoid: false }, defaultBlock, {
|
|
324
|
-
nodes: [{ object: 'text', leaves: [{ object: 'leaf', text: '', marks: [] }] }]
|
|
325
|
-
})
|
|
326
|
-
];
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
const json = {
|
|
330
|
-
object: 'value',
|
|
331
|
-
document: {
|
|
332
|
-
object: 'document',
|
|
333
|
-
data: {},
|
|
334
|
-
nodes: nodes
|
|
335
|
-
},
|
|
336
|
-
schema: {
|
|
337
|
-
rules: []
|
|
338
|
-
}
|
|
339
|
-
};
|
|
340
|
-
|
|
341
|
-
let i;
|
|
342
|
-
|
|
343
|
-
for (i = 0; i < 1000; i++) {
|
|
344
|
-
json.schema.rules.push({
|
|
345
|
-
match: { object: 'document' },
|
|
346
|
-
nodes: [{ match: { object: 'block' } }]
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
const ret = toJSON ? json : Value.fromJSON(json);
|
|
351
|
-
|
|
352
|
-
if (ret) {
|
|
353
|
-
return ret;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
return null;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export const htmlToValue = html => serializer.deserialize(html);
|
|
360
|
-
|
|
361
|
-
export const valueToHtml = value => serializer.serialize(value);
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
*
|
|
365
|
-
* <div><div>a</div></div> -> <div>a</div>
|
|
366
|
-
*
|
|
367
|
-
* <div><div>a</div><div>b</div></div> -> <div>a</div><div>b</div>
|
|
368
|
-
* <div><div>a</div>4444<div>b</div></div> -> <div>a</div>4444<div>b</div>
|
|
369
|
-
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const primary = '#304ffe';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|