@pie-element/hotspot 11.0.5-esm.1 → 11.1.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1083 -2394
- package/configure/CHANGELOG.md +894 -2092
- package/configure/lib/DeleteWidget.js +30 -43
- package/configure/lib/DeleteWidget.js.map +1 -1
- package/configure/lib/button.js +26 -45
- package/configure/lib/button.js.map +1 -1
- package/configure/lib/buttons/circle.js +20 -27
- package/configure/lib/buttons/circle.js.map +1 -1
- package/configure/lib/buttons/polygon.js +26 -33
- package/configure/lib/buttons/polygon.js.map +1 -1
- package/configure/lib/buttons/rectangle.js +26 -33
- package/configure/lib/buttons/rectangle.js.map +1 -1
- package/configure/lib/defaults.js +5 -3
- package/configure/lib/defaults.js.map +1 -1
- package/configure/lib/hotspot-circle.js +136 -200
- package/configure/lib/hotspot-circle.js.map +1 -1
- package/configure/lib/hotspot-container.js +250 -355
- package/configure/lib/hotspot-container.js.map +1 -1
- package/configure/lib/hotspot-drawable.js +361 -473
- package/configure/lib/hotspot-drawable.js.map +1 -1
- package/configure/lib/hotspot-palette.js +92 -139
- package/configure/lib/hotspot-palette.js.map +1 -1
- package/configure/lib/hotspot-polygon.js +212 -318
- package/configure/lib/hotspot-polygon.js.map +1 -1
- package/configure/lib/hotspot-rectangle.js +132 -195
- package/configure/lib/hotspot-rectangle.js.map +1 -1
- package/configure/lib/icons.js +3 -7
- package/configure/lib/icons.js.map +1 -1
- package/configure/lib/image-konva.js +46 -86
- package/configure/lib/image-konva.js.map +1 -1
- package/configure/lib/index.js +162 -222
- package/configure/lib/index.js.map +1 -1
- package/configure/lib/root.js +302 -394
- package/configure/lib/root.js.map +1 -1
- package/configure/lib/shapes/circle.js +69 -101
- package/configure/lib/shapes/circle.js.map +1 -1
- package/configure/lib/shapes/index.js +4 -12
- package/configure/lib/shapes/index.js.map +1 -1
- package/configure/lib/shapes/polygon.js +64 -96
- package/configure/lib/shapes/polygon.js.map +1 -1
- package/configure/lib/shapes/rectagle.js +69 -101
- package/configure/lib/shapes/rectagle.js.map +1 -1
- package/configure/lib/shapes/utils.js +2 -8
- package/configure/lib/shapes/utils.js.map +1 -1
- package/configure/lib/upload-control.js +25 -52
- package/configure/lib/upload-control.js.map +1 -1
- package/configure/lib/utils.js +85 -139
- package/configure/lib/utils.js.map +1 -1
- package/configure/package.json +13 -12
- package/configure/src/__tests__/DeleteWidget.test.jsx +366 -0
- package/configure/src/__tests__/button.test.jsx +198 -0
- package/configure/src/__tests__/hotspot-circle.test.jsx +259 -0
- package/configure/src/__tests__/hotspot-container.test.js +50 -19
- package/configure/src/__tests__/hotspot-drawable.test.js +55 -34
- package/configure/src/__tests__/hotspot-palette.test.jsx +71 -0
- package/configure/src/__tests__/image-konva.test.jsx +226 -0
- package/configure/src/__tests__/index.test.js +167 -5
- package/configure/src/__tests__/root.test.js +89 -63
- package/configure/src/button.jsx +12 -20
- package/configure/src/defaults.js +1 -0
- package/configure/src/hotspot-circle.jsx +8 -19
- package/configure/src/hotspot-container.jsx +82 -98
- package/configure/src/hotspot-drawable.jsx +44 -46
- package/configure/src/hotspot-palette.jsx +45 -37
- package/configure/src/hotspot-polygon.jsx +3 -20
- package/configure/src/hotspot-rectangle.jsx +7 -19
- package/configure/src/icons.js +4 -2
- package/configure/src/index.js +12 -2
- package/configure/src/root.jsx +86 -80
- package/configure/src/upload-control.jsx +6 -16
- package/configure/src/utils.js +1 -1
- package/controller/CHANGELOG.md +569 -1432
- package/controller/lib/defaults.js +2 -3
- package/controller/lib/defaults.js.map +1 -1
- package/controller/lib/index.js +238 -208
- package/controller/lib/index.js.map +1 -1
- package/controller/lib/utils.js +15 -37
- package/controller/lib/utils.js.map +1 -1
- package/controller/package.json +3 -3
- package/controller/src/__tests__/index.test.js +4 -3
- package/controller/src/index.js +107 -5
- package/controller/src/utils.js +1 -2
- package/lib/hotspot/circle.js +109 -169
- package/lib/hotspot/circle.js.map +1 -1
- package/lib/hotspot/container.js +174 -260
- package/lib/hotspot/container.js.map +1 -1
- package/lib/hotspot/icons.js +4 -9
- package/lib/hotspot/icons.js.map +1 -1
- package/lib/hotspot/image-konva-tooltip.js +65 -112
- package/lib/hotspot/image-konva-tooltip.js.map +1 -1
- package/lib/hotspot/index.js +135 -198
- package/lib/hotspot/index.js.map +1 -1
- package/lib/hotspot/polygon.js +150 -215
- package/lib/hotspot/polygon.js.map +1 -1
- package/lib/hotspot/rectangle.js +128 -186
- package/lib/hotspot/rectangle.js.map +1 -1
- package/lib/index.js +187 -256
- package/lib/index.js.map +1 -1
- package/lib/session-updater.js +12 -18
- package/lib/session-updater.js.map +1 -1
- package/package.json +17 -31
- package/src/__tests__/container.test.jsx +27 -175
- package/src/__tests__/index.test.js +70 -30
- package/src/hotspot/__tests__/circle.test.jsx +464 -0
- package/src/hotspot/__tests__/container.test.jsx +546 -0
- package/src/hotspot/__tests__/image-konva-tooltip.test.jsx +510 -0
- package/src/hotspot/__tests__/polygon.test.jsx +502 -0
- package/src/hotspot/__tests__/rectangle.test.jsx +418 -0
- package/src/hotspot/circle.jsx +1 -13
- package/src/hotspot/container.jsx +35 -50
- package/src/hotspot/icons.js +6 -5
- package/src/hotspot/index.jsx +16 -28
- package/src/hotspot/polygon.jsx +3 -13
- package/src/hotspot/rectangle.jsx +4 -15
- package/src/index.js +21 -12
- package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.json +0 -32
- package/configure/node_modules/@pie-lib/config-ui/CHANGELOG.md +0 -2198
- package/configure/node_modules/@pie-lib/config-ui/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/config-ui/esm/index.js +0 -3808
- package/configure/node_modules/@pie-lib/config-ui/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js +0 -75
- package/configure/node_modules/@pie-lib/config-ui/lib/alert-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js +0 -99
- package/configure/node_modules/@pie-lib/config-ui/lib/checkbox.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js +0 -164
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/feedback-menu.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js +0 -445
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-configuration/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js +0 -54
- package/configure/node_modules/@pie-lib/config-ui/lib/choice-utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js +0 -195
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/feedback-selector.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js +0 -75
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/group.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js +0 -189
- package/configure/node_modules/@pie-lib/config-ui/lib/feedback-config/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js +0 -46
- package/configure/node_modules/@pie-lib/config-ui/lib/form-section.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/help.js +0 -147
- package/configure/node_modules/@pie-lib/config-ui/lib/help.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/index.js +0 -216
- package/configure/node_modules/@pie-lib/config-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/input.js +0 -139
- package/configure/node_modules/@pie-lib/config-ui/lib/input.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js +0 -139
- package/configure/node_modules/@pie-lib/config-ui/lib/inputs.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/langs.js +0 -179
- package/configure/node_modules/@pie-lib/config-ui/lib/langs.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js +0 -143
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/config-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js +0 -24
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js +0 -191
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/layout-contents.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js +0 -86
- package/configure/node_modules/@pie-lib/config-ui/lib/layout/settings-box.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js +0 -79
- package/configure/node_modules/@pie-lib/config-ui/lib/mui-box/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js +0 -458
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field-custom.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js +0 -267
- package/configure/node_modules/@pie-lib/config-ui/lib/number-text-field.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js +0 -49
- package/configure/node_modules/@pie-lib/config-ui/lib/radio-with-label.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js +0 -77
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/display-size.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js +0 -143
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js +0 -463
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/panel.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js +0 -53
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/settings-radio-label.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js +0 -74
- package/configure/node_modules/@pie-lib/config-ui/lib/settings/toggle.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js +0 -110
- package/configure/node_modules/@pie-lib/config-ui/lib/tabs/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js +0 -198
- package/configure/node_modules/@pie-lib/config-ui/lib/tags-input/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js +0 -180
- package/configure/node_modules/@pie-lib/config-ui/lib/two-choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js +0 -84
- package/configure/node_modules/@pie-lib/config-ui/lib/with-stateful-model.js.map +0 -1
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/config-ui/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/config-ui/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/config-ui/package.json +0 -40
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/langs.test.jsx.snap +0 -32
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/settings-panel.test.js.snap +0 -115
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/__snapshots__/two-choice.test.js.snap +0 -171
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/choice-utils.test.js +0 -12
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/langs.test.jsx +0 -37
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/number-text-field.test.jsx +0 -148
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/settings-panel.test.js +0 -204
- package/configure/node_modules/@pie-lib/config-ui/src/__tests__/two-choice.test.js +0 -24
- package/configure/node_modules/@pie-lib/config-ui/src/alert-dialog.jsx +0 -56
- package/configure/node_modules/@pie-lib/config-ui/src/checkbox.jsx +0 -73
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/feedback-menu.test.jsx.snap +0 -51
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/__snapshots__/index.test.jsx.snap +0 -519
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/feedback-menu.test.jsx +0 -10
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/__tests__/index.test.jsx +0 -92
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/feedback-menu.jsx +0 -90
- package/configure/node_modules/@pie-lib/config-ui/src/choice-configuration/index.jsx +0 -365
- package/configure/node_modules/@pie-lib/config-ui/src/choice-utils.js +0 -30
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-config.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/__snapshots__/feedback-selector.test.jsx.snap +0 -38
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-config.test.jsx +0 -71
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/__tests__/feedback-selector.test.jsx +0 -60
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/feedback-selector.jsx +0 -122
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/group.jsx +0 -52
- package/configure/node_modules/@pie-lib/config-ui/src/feedback-config/index.jsx +0 -112
- package/configure/node_modules/@pie-lib/config-ui/src/form-section.jsx +0 -23
- package/configure/node_modules/@pie-lib/config-ui/src/help.jsx +0 -87
- package/configure/node_modules/@pie-lib/config-ui/src/index.js +0 -55
- package/configure/node_modules/@pie-lib/config-ui/src/input.jsx +0 -72
- package/configure/node_modules/@pie-lib/config-ui/src/inputs.jsx +0 -98
- package/configure/node_modules/@pie-lib/config-ui/src/langs.jsx +0 -111
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/__snapshots__/config.layout.test.jsx.snap +0 -59
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/config.layout.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/config-ui/src/layout/__tests__/layout-content.test.jsx +0 -3
- package/configure/node_modules/@pie-lib/config-ui/src/layout/config-layout.jsx +0 -75
- package/configure/node_modules/@pie-lib/config-ui/src/layout/index.js +0 -4
- package/configure/node_modules/@pie-lib/config-ui/src/layout/layout-contents.jsx +0 -118
- package/configure/node_modules/@pie-lib/config-ui/src/layout/settings-box.jsx +0 -35
- package/configure/node_modules/@pie-lib/config-ui/src/mui-box/index.jsx +0 -64
- package/configure/node_modules/@pie-lib/config-ui/src/number-text-field-custom.jsx +0 -337
- package/configure/node_modules/@pie-lib/config-ui/src/number-text-field.jsx +0 -202
- package/configure/node_modules/@pie-lib/config-ui/src/radio-with-label.jsx +0 -22
- package/configure/node_modules/@pie-lib/config-ui/src/settings/display-size.jsx +0 -52
- package/configure/node_modules/@pie-lib/config-ui/src/settings/index.js +0 -83
- package/configure/node_modules/@pie-lib/config-ui/src/settings/panel.jsx +0 -328
- package/configure/node_modules/@pie-lib/config-ui/src/settings/settings-radio-label.jsx +0 -24
- package/configure/node_modules/@pie-lib/config-ui/src/settings/toggle.jsx +0 -49
- package/configure/node_modules/@pie-lib/config-ui/src/tabs/index.jsx +0 -47
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/__snapshots__/index.test.jsx.snap +0 -170
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/__tests__/index.test.jsx +0 -62
- package/configure/node_modules/@pie-lib/config-ui/src/tags-input/index.jsx +0 -119
- package/configure/node_modules/@pie-lib/config-ui/src/two-choice.jsx +0 -94
- package/configure/node_modules/@pie-lib/config-ui/src/with-stateful-model.jsx +0 -36
- package/configure/node_modules/@pie-lib/drag/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/drag/CHANGELOG.md +0 -709
- package/configure/node_modules/@pie-lib/drag/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/drag/esm/index.js +0 -525
- package/configure/node_modules/@pie-lib/drag/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/choice.js +0 -129
- package/configure/node_modules/@pie-lib/drag/lib/choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js +0 -35
- package/configure/node_modules/@pie-lib/drag/lib/drag-in-the-blank-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/drag-type.js +0 -15
- package/configure/node_modules/@pie-lib/drag/lib/drag-type.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js +0 -82
- package/configure/node_modules/@pie-lib/drag/lib/droppable-placeholder.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js +0 -37
- package/configure/node_modules/@pie-lib/drag/lib/ica-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/index.js +0 -89
- package/configure/node_modules/@pie-lib/drag/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js +0 -37
- package/configure/node_modules/@pie-lib/drag/lib/match-list-dp.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/placeholder.js +0 -153
- package/configure/node_modules/@pie-lib/drag/lib/placeholder.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/preview-component.js +0 -194
- package/configure/node_modules/@pie-lib/drag/lib/preview-component.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/swap.js +0 -25
- package/configure/node_modules/@pie-lib/drag/lib/swap.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/uid-context.js +0 -40
- package/configure/node_modules/@pie-lib/drag/lib/uid-context.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js +0 -59
- package/configure/node_modules/@pie-lib/drag/lib/with-drag-context.js.map +0 -1
- package/configure/node_modules/@pie-lib/drag/package.json +0 -34
- package/configure/node_modules/@pie-lib/drag/src/__tests__/__snapshots__/placeholder.test.jsx.snap +0 -68
- package/configure/node_modules/@pie-lib/drag/src/__tests__/placeholder.test.jsx +0 -48
- package/configure/node_modules/@pie-lib/drag/src/__tests__/uid-context.test.jsx +0 -21
- package/configure/node_modules/@pie-lib/drag/src/choice.jsx +0 -76
- package/configure/node_modules/@pie-lib/drag/src/drag-in-the-blank-dp.jsx +0 -19
- package/configure/node_modules/@pie-lib/drag/src/drag-type.js +0 -7
- package/configure/node_modules/@pie-lib/drag/src/droppable-placeholder.jsx +0 -38
- package/configure/node_modules/@pie-lib/drag/src/ica-dp.jsx +0 -23
- package/configure/node_modules/@pie-lib/drag/src/index.js +0 -23
- package/configure/node_modules/@pie-lib/drag/src/match-list-dp.jsx +0 -23
- package/configure/node_modules/@pie-lib/drag/src/placeholder.jsx +0 -145
- package/configure/node_modules/@pie-lib/drag/src/preview-component.jsx +0 -153
- package/configure/node_modules/@pie-lib/drag/src/swap.js +0 -14
- package/configure/node_modules/@pie-lib/drag/src/uid-context.js +0 -13
- package/configure/node_modules/@pie-lib/drag/src/with-drag-context.js +0 -32
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.json +0 -32
- package/configure/node_modules/@pie-lib/editable-html/CHANGELOG.md +0 -2224
- package/configure/node_modules/@pie-lib/editable-html/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/editable-html/esm/index.js +0 -9998
- package/configure/node_modules/@pie-lib/editable-html/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js +0 -25
- package/configure/node_modules/@pie-lib/editable-html/lib/block-tags.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/constants.js +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/constants.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js +0 -1356
- package/configure/node_modules/@pie-lib/editable-html/lib/editor.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js +0 -269
- package/configure/node_modules/@pie-lib/editable-html/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js +0 -16
- package/configure/node_modules/@pie-lib/editable-html/lib/parse-html.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js +0 -73
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/custom-popper.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js +0 -305
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js +0 -381
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/characters/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js +0 -37
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js +0 -397
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/css/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js +0 -114
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/customPlugin/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js +0 -38
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js +0 -80
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/html/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js +0 -129
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/alt-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js +0 -419
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/component.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js +0 -177
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/image-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js +0 -263
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js +0 -161
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/image/insert-image-handler.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js +0 -402
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js +0 -334
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/list/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js +0 -454
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/math/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js +0 -387
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js +0 -709
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-dialog.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js +0 -101
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js +0 -93
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/media/media-wrapper.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js +0 -46
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/rendering/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js +0 -289
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/choice.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js +0 -97
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/drag-in-the-blank/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js +0 -57
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/explicit-constructed-response/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js +0 -95
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js +0 -341
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/inline-dropdown/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js +0 -130
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/math-templated/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js +0 -125
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/respArea/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js +0 -133
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/CustomTablePlugin.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js +0 -69
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js +0 -483
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js +0 -187
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/table/table-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js +0 -226
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/icons/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js +0 -34
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/textAlign/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js +0 -229
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/default-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js +0 -53
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js +0 -286
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/editor-and-toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js +0 -34
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js +0 -194
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar-buttons.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js +0 -376
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/toolbar/toolbar.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js +0 -62
- package/configure/node_modules/@pie-lib/editable-html/lib/plugins/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js +0 -677
- package/configure/node_modules/@pie-lib/editable-html/lib/serialization.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/lib/shared/alert-dialog.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js +0 -9
- package/configure/node_modules/@pie-lib/editable-html/lib/theme.js.map +0 -1
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/editable-html/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/editable-html/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/editable-html/package.json +0 -60
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/editor.test.jsx +0 -363
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/serialization.test.js +0 -291
- package/configure/node_modules/@pie-lib/editable-html/src/__tests__/utils.js +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/block-tags.js +0 -17
- package/configure/node_modules/@pie-lib/editable-html/src/constants.js +0 -7
- package/configure/node_modules/@pie-lib/editable-html/src/editor.jsx +0 -1197
- package/configure/node_modules/@pie-lib/editable-html/src/index.jsx +0 -162
- package/configure/node_modules/@pie-lib/editable-html/src/parse-html.js +0 -8
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/README.md +0 -27
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/custom-popper.js +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/index.jsx +0 -284
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/characters/utils.js +0 -447
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/icons/index.jsx +0 -17
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/css/index.jsx +0 -346
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/customPlugin/index.jsx +0 -85
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/icons/index.jsx +0 -19
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/html/index.jsx +0 -72
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/component.test.jsx.snap +0 -51
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar-logic.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/__snapshots__/image-toolbar.test.jsx.snap +0 -44
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/component.test.jsx +0 -41
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar-logic.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/image-toolbar.test.jsx +0 -11
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/index.test.js +0 -95
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/insert-image-handler.test.js +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/__tests__/mock-change.js +0 -15
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/alt-dialog.jsx +0 -82
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/component.jsx +0 -343
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/image-toolbar.jsx +0 -100
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/index.jsx +0 -227
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/image/insert-image-handler.js +0 -117
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/index.jsx +0 -360
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/__tests__/index.test.js +0 -54
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/list/index.jsx +0 -305
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/__snapshots__/index.test.jsx.snap +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/__tests__/index.test.jsx +0 -245
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/math/index.jsx +0 -379
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/__tests__/index.test.js +0 -75
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/index.jsx +0 -325
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-dialog.js +0 -624
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-toolbar.jsx +0 -56
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/media/media-wrapper.jsx +0 -43
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/rendering/index.js +0 -31
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/choice.jsx +0 -215
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/drag-in-the-blank/index.jsx +0 -76
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/explicit-constructed-response/index.jsx +0 -48
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/icons/index.jsx +0 -71
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/index.jsx +0 -299
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/inline-dropdown/index.jsx +0 -70
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/math-templated/index.jsx +0 -104
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/respArea/utils.jsx +0 -90
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/CustomTablePlugin.js +0 -113
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/__snapshots__/table-toolbar.test.jsx.snap +0 -44
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/index.test.jsx +0 -401
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/__tests__/table-toolbar.test.jsx +0 -42
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/icons/index.jsx +0 -53
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/index.jsx +0 -427
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/table/table-toolbar.jsx +0 -136
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/icons/index.jsx +0 -139
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/textAlign/index.jsx +0 -23
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/default-toolbar.test.jsx.snap +0 -923
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/editor-and-toolbar.test.jsx.snap +0 -20
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar-buttons.test.jsx.snap +0 -36
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/__snapshots__/toolbar.test.jsx.snap +0 -46
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/default-toolbar.test.jsx +0 -94
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/editor-and-toolbar.test.jsx +0 -37
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar-buttons.test.jsx +0 -51
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/__tests__/toolbar.test.jsx +0 -106
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/default-toolbar.jsx +0 -206
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/done-button.jsx +0 -38
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/editor-and-toolbar.jsx +0 -257
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/index.jsx +0 -23
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar-buttons.jsx +0 -138
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/toolbar/toolbar.jsx +0 -338
- package/configure/node_modules/@pie-lib/editable-html/src/plugins/utils.js +0 -31
- package/configure/node_modules/@pie-lib/editable-html/src/serialization.jsx +0 -621
- package/configure/node_modules/@pie-lib/editable-html/src/theme.js +0 -1
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/icons/CHANGELOG.md +0 -539
- package/configure/node_modules/@pie-lib/icons/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/icons/esm/index.js +0 -1153
- package/configure/node_modules/@pie-lib/icons/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js +0 -89
- package/configure/node_modules/@pie-lib/icons/lib/correct-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js +0 -153
- package/configure/node_modules/@pie-lib/icons/lib/correct-response-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js +0 -206
- package/configure/node_modules/@pie-lib/icons/lib/icon-base.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js +0 -130
- package/configure/node_modules/@pie-lib/icons/lib/icon-root.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js +0 -92
- package/configure/node_modules/@pie-lib/icons/lib/incorrect-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/index.js +0 -72
- package/configure/node_modules/@pie-lib/icons/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js +0 -229
- package/configure/node_modules/@pie-lib/icons/lib/instructions-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js +0 -145
- package/configure/node_modules/@pie-lib/icons/lib/learn-more-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js +0 -183
- package/configure/node_modules/@pie-lib/icons/lib/nothing-submitted-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js +0 -82
- package/configure/node_modules/@pie-lib/icons/lib/partially-correct-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js +0 -206
- package/configure/node_modules/@pie-lib/icons/lib/show-rationale-icon.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/lib/sized.js +0 -41
- package/configure/node_modules/@pie-lib/icons/lib/sized.js.map +0 -1
- package/configure/node_modules/@pie-lib/icons/package.json +0 -35
- package/configure/node_modules/@pie-lib/icons/src/__tests__/index.test.js +0 -3
- package/configure/node_modules/@pie-lib/icons/src/correct-icon.jsx +0 -64
- package/configure/node_modules/@pie-lib/icons/src/correct-response-icon.jsx +0 -121
- package/configure/node_modules/@pie-lib/icons/src/icon-base.jsx +0 -158
- package/configure/node_modules/@pie-lib/icons/src/icon-root.jsx +0 -76
- package/configure/node_modules/@pie-lib/icons/src/incorrect-icon.jsx +0 -61
- package/configure/node_modules/@pie-lib/icons/src/index.js +0 -19
- package/configure/node_modules/@pie-lib/icons/src/instructions-icon.jsx +0 -189
- package/configure/node_modules/@pie-lib/icons/src/learn-more-icon.jsx +0 -107
- package/configure/node_modules/@pie-lib/icons/src/nothing-submitted-icon.jsx +0 -130
- package/configure/node_modules/@pie-lib/icons/src/partially-correct-icon.jsx +0 -49
- package/configure/node_modules/@pie-lib/icons/src/show-rationale-icon.jsx +0 -152
- package/configure/node_modules/@pie-lib/icons/src/sized.jsx +0 -25
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-lib/math-input/CHANGELOG.md +0 -1077
- package/configure/node_modules/@pie-lib/math-input/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-input/esm/index.js +0 -2134
- package/configure/node_modules/@pie-lib/math-input/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js +0 -124
- package/configure/node_modules/@pie-lib/math-input/lib/horizontal-keypad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/index.js +0 -76
- package/configure/node_modules/@pie-lib/math-input/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js +0 -512
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js +0 -34
- package/configure/node_modules/@pie-lib/math-input/lib/keypad/keys-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js +0 -41
- package/configure/node_modules/@pie-lib/math-input/lib/keys/basic-operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/chars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js +0 -49
- package/configure/node_modules/@pie-lib/math-input/lib/keys/comparison.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js +0 -43
- package/configure/node_modules/@pie-lib/math-input/lib/keys/constants.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/digits.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/lib/keys/edit.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js +0 -36
- package/configure/node_modules/@pie-lib/math-input/lib/keys/exponent.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js +0 -34
- package/configure/node_modules/@pie-lib/math-input/lib/keys/fractions.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js +0 -169
- package/configure/node_modules/@pie-lib/math-input/lib/keys/geometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js +0 -295
- package/configure/node_modules/@pie-lib/math-input/lib/keys/grades.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js +0 -54
- package/configure/node_modules/@pie-lib/math-input/lib/keys/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/lib/keys/log.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/logic.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/matrices.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js +0 -74
- package/configure/node_modules/@pie-lib/math-input/lib/keys/misc.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js +0 -25
- package/configure/node_modules/@pie-lib/math-input/lib/keys/navigation.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js +0 -18
- package/configure/node_modules/@pie-lib/math-input/lib/keys/operators.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js +0 -47
- package/configure/node_modules/@pie-lib/math-input/lib/keys/statistics.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/keys/sub-sup.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js +0 -53
- package/configure/node_modules/@pie-lib/math-input/lib/keys/trigonometry.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js +0 -120
- package/configure/node_modules/@pie-lib/math-input/lib/keys/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js +0 -29
- package/configure/node_modules/@pie-lib/math-input/lib/keys/vars.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js +0 -192
- package/configure/node_modules/@pie-lib/math-input/lib/math-input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js +0 -110
- package/configure/node_modules/@pie-lib/math-input/lib/mq/common-mq-styles.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/mq/custom-elements.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/lib/mq/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js +0 -247
- package/configure/node_modules/@pie-lib/math-input/lib/mq/input.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js +0 -356
- package/configure/node_modules/@pie-lib/math-input/lib/mq/static.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/lib/shared/constants.js +0 -16
- package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js +0 -23
- package/configure/node_modules/@pie-lib/math-input/lib/updateSpans.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-input/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-input/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-input/package.json +0 -35
- package/configure/node_modules/@pie-lib/math-input/src/__tests__/__snapshots__/math-input-test.jsx.snap +0 -152
- package/configure/node_modules/@pie-lib/math-input/src/__tests__/math-input-test.jsx +0 -85
- package/configure/node_modules/@pie-lib/math-input/src/horizontal-keypad.jsx +0 -69
- package/configure/node_modules/@pie-lib/math-input/src/index.jsx +0 -18
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/__snapshots__/index.test.jsx.snap +0 -193
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/index.test.jsx +0 -24
- package/configure/node_modules/@pie-lib/math-input/src/keypad/__tests__/keys-layout.test.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keypad/index.jsx +0 -450
- package/configure/node_modules/@pie-lib/math-input/src/keypad/keys-layout.js +0 -17
- package/configure/node_modules/@pie-lib/math-input/src/keys/__tests__/utils.test.js +0 -57
- package/configure/node_modules/@pie-lib/math-input/src/keys/basic-operators.js +0 -32
- package/configure/node_modules/@pie-lib/math-input/src/keys/chars.js +0 -5
- package/configure/node_modules/@pie-lib/math-input/src/keys/comparison.js +0 -28
- package/configure/node_modules/@pie-lib/math-input/src/keys/constants.js +0 -35
- package/configure/node_modules/@pie-lib/math-input/src/keys/digits.js +0 -40
- package/configure/node_modules/@pie-lib/math-input/src/keys/edit.js +0 -3
- package/configure/node_modules/@pie-lib/math-input/src/keys/exponent.js +0 -28
- package/configure/node_modules/@pie-lib/math-input/src/keys/fractions.js +0 -26
- package/configure/node_modules/@pie-lib/math-input/src/keys/geometry.js +0 -144
- package/configure/node_modules/@pie-lib/math-input/src/keys/grades.js +0 -367
- package/configure/node_modules/@pie-lib/math-input/src/keys/index.js +0 -21
- package/configure/node_modules/@pie-lib/math-input/src/keys/log.js +0 -22
- package/configure/node_modules/@pie-lib/math-input/src/keys/logic.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/matrices.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/misc.js +0 -65
- package/configure/node_modules/@pie-lib/math-input/src/keys/navigation.js +0 -8
- package/configure/node_modules/@pie-lib/math-input/src/keys/operators.js +0 -10
- package/configure/node_modules/@pie-lib/math-input/src/keys/statistics.js +0 -38
- package/configure/node_modules/@pie-lib/math-input/src/keys/sub-sup.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/trigonometry.js +0 -15
- package/configure/node_modules/@pie-lib/math-input/src/keys/utils.js +0 -71
- package/configure/node_modules/@pie-lib/math-input/src/keys/vars.js +0 -19
- package/configure/node_modules/@pie-lib/math-input/src/math-input.jsx +0 -128
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/__snapshots__/input.test.jsx.snap +0 -9
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/input.test.jsx +0 -92
- package/configure/node_modules/@pie-lib/math-input/src/mq/__tests__/static.test.jsx +0 -57
- package/configure/node_modules/@pie-lib/math-input/src/mq/common-mq-styles.js +0 -105
- package/configure/node_modules/@pie-lib/math-input/src/mq/custom-elements.js +0 -11
- package/configure/node_modules/@pie-lib/math-input/src/mq/index.js +0 -5
- package/configure/node_modules/@pie-lib/math-input/src/mq/input.jsx +0 -176
- package/configure/node_modules/@pie-lib/math-input/src/mq/static.jsx +0 -285
- package/configure/node_modules/@pie-lib/math-input/src/updateSpans.js +0 -15
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/CHANGELOG.md +0 -775
- package/configure/node_modules/@pie-lib/math-rendering/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js +0 -690
- package/configure/node_modules/@pie-lib/math-rendering/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js +0 -38
- package/configure/node_modules/@pie-lib/math-rendering/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js +0 -15
- package/configure/node_modules/@pie-lib/math-rendering/lib/mml-to-latex.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js +0 -296
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/chtml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js +0 -23
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js +0 -109
- package/configure/node_modules/@pie-lib/math-rendering/lib/mstack/mml.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js +0 -95
- package/configure/node_modules/@pie-lib/math-rendering/lib/normalization.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js +0 -438
- package/configure/node_modules/@pie-lib/math-rendering/lib/render-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-rendering/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-rendering/package.json +0 -28
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/mml-to-latex.test.js +0 -14
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/normalization.test.js +0 -50
- package/configure/node_modules/@pie-lib/math-rendering/src/__tests__/render-math.test.js +0 -155
- package/configure/node_modules/@pie-lib/math-rendering/src/index.js +0 -5
- package/configure/node_modules/@pie-lib/math-rendering/src/mml-to-latex.js +0 -2
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/__snapshots__/chtml.test.js.snap +0 -9
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/__tests__/chtml.test.js +0 -104
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/chtml.js +0 -220
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/index.js +0 -13
- package/configure/node_modules/@pie-lib/math-rendering/src/mstack/mml.js +0 -24
- package/configure/node_modules/@pie-lib/math-rendering/src/normalization.js +0 -69
- package/configure/node_modules/@pie-lib/math-rendering/src/render-math.js +0 -387
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.json +0 -17
- package/configure/node_modules/@pie-lib/math-toolbar/CHANGELOG.md +0 -940
- package/configure/node_modules/@pie-lib/math-toolbar/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js +0 -1410
- package/configure/node_modules/@pie-lib/math-toolbar/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js +0 -68
- package/configure/node_modules/@pie-lib/math-toolbar/lib/done-button.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js +0 -575
- package/configure/node_modules/@pie-lib/math-toolbar/lib/editor-and-pad.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js +0 -287
- package/configure/node_modules/@pie-lib/math-toolbar/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js +0 -240
- package/configure/node_modules/@pie-lib/math-toolbar/lib/math-preview.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js +0 -21
- package/configure/node_modules/@pie-lib/math-toolbar/lib/utils.js.map +0 -1
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/math-toolbar/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/math-toolbar/package.json +0 -46
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/editor-and-pad.test.js.snap +0 -31
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/index.test.js.snap +0 -30
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/__snapshots__/math-preview.test.js.snap +0 -23
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/editor-and-pad.test.js +0 -25
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/index.test.js +0 -28
- package/configure/node_modules/@pie-lib/math-toolbar/src/__tests__/math-preview.test.js +0 -31
- package/configure/node_modules/@pie-lib/math-toolbar/src/done-button.jsx +0 -47
- package/configure/node_modules/@pie-lib/math-toolbar/src/editor-and-pad.jsx +0 -499
- package/configure/node_modules/@pie-lib/math-toolbar/src/index.jsx +0 -224
- package/configure/node_modules/@pie-lib/math-toolbar/src/math-preview.jsx +0 -179
- package/configure/node_modules/@pie-lib/math-toolbar/src/utils.js +0 -11
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/render-ui/CHANGELOG.md +0 -1026
- package/configure/node_modules/@pie-lib/render-ui/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js +0 -1616
- package/configure/node_modules/@pie-lib/render-ui/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js +0 -88
- package/configure/node_modules/@pie-lib/render-ui/lib/append-css-rules.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js +0 -9
- package/configure/node_modules/@pie-lib/render-ui/lib/assets/enableAudioAutoplayImage.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js +0 -135
- package/configure/node_modules/@pie-lib/render-ui/lib/collapsible/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js +0 -344
- package/configure/node_modules/@pie-lib/render-ui/lib/color.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js +0 -150
- package/configure/node_modules/@pie-lib/render-ui/lib/feedback.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js +0 -27
- package/configure/node_modules/@pie-lib/render-ui/lib/has-media.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/has-text.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js +0 -74
- package/configure/node_modules/@pie-lib/render-ui/lib/html-and-math.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js +0 -136
- package/configure/node_modules/@pie-lib/render-ui/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js +0 -60
- package/configure/node_modules/@pie-lib/render-ui/lib/input-container.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js +0 -145
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js +0 -321
- package/configure/node_modules/@pie-lib/render-ui/lib/preview-prompt.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/purpose.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js +0 -28
- package/configure/node_modules/@pie-lib/render-ui/lib/readable.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js +0 -151
- package/configure/node_modules/@pie-lib/render-ui/lib/response-indicators.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js +0 -122
- package/configure/node_modules/@pie-lib/render-ui/lib/ui-layout.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js +0 -181
- package/configure/node_modules/@pie-lib/render-ui/lib/withUndoReset.js.map +0 -1
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/LICENSE +0 -20
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/README.md +0 -481
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/package.json +0 -59
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/browser.js +0 -269
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/common.js +0 -274
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/index.js +0 -10
- package/configure/node_modules/@pie-lib/render-ui/node_modules/debug/src/node.js +0 -263
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/index.js +0 -162
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/license.md +0 -21
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/package.json +0 -37
- package/configure/node_modules/@pie-lib/render-ui/node_modules/ms/readme.md +0 -60
- package/configure/node_modules/@pie-lib/render-ui/package.json +0 -40
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/html-and-math.test.js.snap +0 -11
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/preview-prompt.test.jsx.snap +0 -37
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/purpose.test.jsx.snap +0 -42
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/readable.test.jsx.snap +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/__snapshots__/response-indicators.test.jsx.snap +0 -27
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/color.test.js +0 -12
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-media.test.js +0 -20
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/has-text.test.js +0 -21
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/html-and-math.test.js +0 -24
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/preview-prompt.test.jsx +0 -56
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/purpose.test.jsx +0 -47
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/readable.test.jsx +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/response-indicators.test.jsx +0 -16
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/ui-layout.test.jsx +0 -34
- package/configure/node_modules/@pie-lib/render-ui/src/__tests__/withUndoReset.test.jsx +0 -254
- package/configure/node_modules/@pie-lib/render-ui/src/append-css-rules.js +0 -51
- package/configure/node_modules/@pie-lib/render-ui/src/assets/enableAudioAutoplayImage.js +0 -1
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/__snapshots__/index.test.jsx.snap +0 -18
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/__tests__/index.test.jsx +0 -13
- package/configure/node_modules/@pie-lib/render-ui/src/collapsible/index.jsx +0 -64
- package/configure/node_modules/@pie-lib/render-ui/src/color.js +0 -121
- package/configure/node_modules/@pie-lib/render-ui/src/feedback.jsx +0 -99
- package/configure/node_modules/@pie-lib/render-ui/src/has-media.js +0 -16
- package/configure/node_modules/@pie-lib/render-ui/src/has-text.js +0 -18
- package/configure/node_modules/@pie-lib/render-ui/src/html-and-math.js +0 -21
- package/configure/node_modules/@pie-lib/render-ui/src/index.js +0 -35
- package/configure/node_modules/@pie-lib/render-ui/src/input-container.jsx +0 -41
- package/configure/node_modules/@pie-lib/render-ui/src/preview-layout.jsx +0 -95
- package/configure/node_modules/@pie-lib/render-ui/src/preview-prompt.jsx +0 -254
- package/configure/node_modules/@pie-lib/render-ui/src/purpose.jsx +0 -17
- package/configure/node_modules/@pie-lib/render-ui/src/readable.jsx +0 -19
- package/configure/node_modules/@pie-lib/render-ui/src/response-indicators.jsx +0 -89
- package/configure/node_modules/@pie-lib/render-ui/src/ui-layout.jsx +0 -66
- package/configure/node_modules/@pie-lib/render-ui/src/withUndoReset.jsx +0 -116
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/test-utils/CHANGELOG.md +0 -410
- package/configure/node_modules/@pie-lib/test-utils/NEXT.CHANGELOG.json +0 -1
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js +0 -39
- package/configure/node_modules/@pie-lib/test-utils/esm/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js +0 -40
- package/configure/node_modules/@pie-lib/test-utils/lib/index.js.map +0 -1
- package/configure/node_modules/@pie-lib/test-utils/package.json +0 -25
- package/configure/node_modules/@pie-lib/test-utils/src/__tests__/index.test.js +0 -45
- package/configure/node_modules/@pie-lib/test-utils/src/index.js +0 -18
- package/configure/node_modules/debug/CHANGELOG.md +0 -395
- package/configure/node_modules/debug/LICENSE +0 -19
- package/configure/node_modules/debug/README.md +0 -437
- package/configure/node_modules/debug/node.js +0 -1
- package/configure/node_modules/debug/package.json +0 -51
- package/configure/node_modules/debug/src/browser.js +0 -180
- package/configure/node_modules/debug/src/common.js +0 -249
- package/configure/node_modules/debug/src/index.js +0 -12
- package/configure/node_modules/debug/src/node.js +0 -177
- package/configure/node_modules/slate-dev-environment/Readme.md +0 -1
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.js +0 -287
- package/configure/node_modules/slate-dev-environment/dist/slate-dev-environment.min.js +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js +0 -264
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.es.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js +0 -282
- package/configure/node_modules/slate-dev-environment/lib/slate-dev-environment.js.map +0 -1
- package/configure/node_modules/slate-dev-environment/package.json +0 -21
- package/configure/src/__tests__/DeleteWidget.test.js +0 -64
- package/configure/src/__tests__/__snapshots__/hotspot-container.test.js.snap +0 -192
- package/configure/src/__tests__/__snapshots__/hotspot-drawable.test.js.snap +0 -562
- package/configure/src/__tests__/__snapshots__/root.test.js.snap +0 -469
- package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.json +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/CHANGELOG.md +0 -410
- package/controller/node_modules/@pie-lib/controller-utils/NEXT.CHANGELOG.json +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/esm/index.js +0 -129
- package/controller/node_modules/@pie-lib/controller-utils/esm/index.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/index.js +0 -31
- package/controller/node_modules/@pie-lib/controller-utils/lib/index.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js +0 -29
- package/controller/node_modules/@pie-lib/controller-utils/lib/partial-scoring.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js +0 -140
- package/controller/node_modules/@pie-lib/controller-utils/lib/persistence.js.map +0 -1
- package/controller/node_modules/@pie-lib/controller-utils/package.json +0 -25
- package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/partial-scoring.test.js +0 -25
- package/controller/node_modules/@pie-lib/controller-utils/src/__tests__/persistence.test.js +0 -151
- package/controller/node_modules/@pie-lib/controller-utils/src/index.js +0 -4
- package/controller/node_modules/@pie-lib/controller-utils/src/partial-scoring.js +0 -19
- package/controller/node_modules/@pie-lib/controller-utils/src/persistence.js +0 -103
- package/esm/configure.js +0 -31136
- package/esm/configure.js.map +0 -1
- package/esm/controller.js +0 -344
- package/esm/controller.js.map +0 -1
- package/esm/element.js +0 -28985
- package/esm/element.js.map +0 -1
- package/src/__tests__/__snapshots__/container.test.jsx.snap +0 -264
- package/src/__tests__/__snapshots__/index.test.js.snap +0 -81
- package/src/__tests__/__snapshots__/polygon.test.jsx.snap +0 -192
- package/src/__tests__/__snapshots__/rectangle.test.jsx.snap +0 -127
- package/src/__tests__/polygon.test.jsx +0 -230
- package/src/__tests__/rectangle.test.jsx +0 -232
|
@@ -1,1356 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
Object.defineProperty(exports, "ALL_PLUGINS", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function get() {
|
|
13
|
-
return _plugins.ALL_PLUGINS;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "DEFAULT_PLUGINS", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function get() {
|
|
19
|
-
return _plugins.DEFAULT_PLUGINS;
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
exports.serialization = exports["default"] = exports.Editor = void 0;
|
|
23
|
-
|
|
24
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
25
|
-
|
|
26
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
27
|
-
|
|
28
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
29
|
-
|
|
30
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
31
|
-
|
|
32
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
33
|
-
|
|
34
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
35
|
-
|
|
36
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
37
|
-
|
|
38
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
39
|
-
|
|
40
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
41
|
-
|
|
42
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
43
|
-
|
|
44
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
45
|
-
|
|
46
|
-
var _react = _interopRequireDefault(require("react"));
|
|
47
|
-
|
|
48
|
-
var _slateReact = require("slate-react");
|
|
49
|
-
|
|
50
|
-
var _slatePropTypes = _interopRequireDefault(require("slate-prop-types"));
|
|
51
|
-
|
|
52
|
-
var _slate = require("slate");
|
|
53
|
-
|
|
54
|
-
var _slatePlainSerializer = _interopRequireDefault(require("slate-plain-serializer"));
|
|
55
|
-
|
|
56
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
57
|
-
|
|
58
|
-
var _debounce = _interopRequireDefault(require("lodash/debounce"));
|
|
59
|
-
|
|
60
|
-
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
61
|
-
|
|
62
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
63
|
-
|
|
64
|
-
var _debug = _interopRequireDefault(require("debug"));
|
|
65
|
-
|
|
66
|
-
var _styles = require("@material-ui/core/styles");
|
|
67
|
-
|
|
68
|
-
var _renderUi = require("@pie-lib/render-ui");
|
|
69
|
-
|
|
70
|
-
var _alertDialog = _interopRequireDefault(require("./shared/alert-dialog"));
|
|
71
|
-
|
|
72
|
-
var serialization = _interopRequireWildcard(require("./serialization"));
|
|
73
|
-
|
|
74
|
-
exports.serialization = serialization;
|
|
75
|
-
|
|
76
|
-
var _insertImageHandler = _interopRequireDefault(require("./plugins/image/insert-image-handler"));
|
|
77
|
-
|
|
78
|
-
var _plugins = require("./plugins");
|
|
79
|
-
|
|
80
|
-
var _excluded = ["customPlugins", "showParagraphs", "separateParagraphs"];
|
|
81
|
-
|
|
82
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
83
|
-
|
|
84
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
85
|
-
|
|
86
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
87
|
-
|
|
88
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
89
|
-
|
|
90
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
91
|
-
|
|
92
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
93
|
-
|
|
94
|
-
var log = (0, _debug["default"])('editable-html:editor');
|
|
95
|
-
var defaultToolbarOpts = {
|
|
96
|
-
position: 'bottom',
|
|
97
|
-
alignment: 'left',
|
|
98
|
-
alwaysVisible: false,
|
|
99
|
-
showDone: true,
|
|
100
|
-
doneOn: 'blur'
|
|
101
|
-
};
|
|
102
|
-
var defaultResponseAreaProps = {
|
|
103
|
-
options: {},
|
|
104
|
-
respAreaToolbar: function respAreaToolbar() {},
|
|
105
|
-
onHandleAreaChange: function onHandleAreaChange() {}
|
|
106
|
-
};
|
|
107
|
-
var defaultLanguageCharactersProps = [];
|
|
108
|
-
|
|
109
|
-
var createToolbarOpts = function createToolbarOpts(toolbarOpts, error, isHtmlMode) {
|
|
110
|
-
return _objectSpread(_objectSpread(_objectSpread({}, defaultToolbarOpts), toolbarOpts), {}, {
|
|
111
|
-
error: error,
|
|
112
|
-
isHtmlMode: isHtmlMode
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
/**
|
|
116
|
-
* The maximum number of characters the editor can support
|
|
117
|
-
* @type {number}
|
|
118
|
-
*/
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
var MAX_CHARACTERS_LIMIT = 1000000;
|
|
122
|
-
|
|
123
|
-
var Editor = /*#__PURE__*/function (_React$Component) {
|
|
124
|
-
(0, _inherits2["default"])(Editor, _React$Component);
|
|
125
|
-
|
|
126
|
-
var _super = _createSuper(Editor);
|
|
127
|
-
|
|
128
|
-
function Editor(_props) {
|
|
129
|
-
var _this;
|
|
130
|
-
|
|
131
|
-
(0, _classCallCheck2["default"])(this, Editor);
|
|
132
|
-
_this = _super.call(this, _props);
|
|
133
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setKeypadInteraction", function (interacted) {
|
|
134
|
-
_this.keypadInteractionDetected = interacted;
|
|
135
|
-
});
|
|
136
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleDialog", function (open) {
|
|
137
|
-
var extraDialogProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
138
|
-
var callback = arguments.length > 2 ? arguments[2] : undefined;
|
|
139
|
-
|
|
140
|
-
_this.setState({
|
|
141
|
-
dialog: _objectSpread({
|
|
142
|
-
open: open
|
|
143
|
-
}, extraDialogProps)
|
|
144
|
-
}, callback);
|
|
145
|
-
});
|
|
146
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "toggleHtmlMode", function () {
|
|
147
|
-
_this.setState(function (prevState) {
|
|
148
|
-
return {
|
|
149
|
-
isHtmlMode: !prevState.isHtmlMode,
|
|
150
|
-
isEditedInHtmlMode: false
|
|
151
|
-
};
|
|
152
|
-
}, function () {
|
|
153
|
-
var error = _this.props.error;
|
|
154
|
-
var toolbarOpts = _this.state.toolbarOpts;
|
|
155
|
-
var newToolbarOpts = createToolbarOpts(toolbarOpts, error, _this.state.isHtmlMode);
|
|
156
|
-
|
|
157
|
-
_this.setState({
|
|
158
|
-
toolbarOpts: newToolbarOpts
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handlePlugins", function (props) {
|
|
163
|
-
var normalizedResponseAreaProps = _objectSpread(_objectSpread({}, defaultResponseAreaProps), props.responseAreaProps);
|
|
164
|
-
|
|
165
|
-
var htmlPluginOpts = {
|
|
166
|
-
currentValue: _this.props.value,
|
|
167
|
-
isHtmlMode: _this.state.isHtmlMode,
|
|
168
|
-
isEditedInHtmlMode: _this.state.isEditedInHtmlMode,
|
|
169
|
-
toggleHtmlMode: _this.toggleHtmlMode,
|
|
170
|
-
handleAlertDialog: _this.handleDialog
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
var _ref = props.pluginProps || {},
|
|
174
|
-
customPlugins = _ref.customPlugins;
|
|
175
|
-
|
|
176
|
-
customPlugins = customPlugins || [];
|
|
177
|
-
_this.plugins = (0, _plugins.buildPlugins)(props.activePlugins, customPlugins, {
|
|
178
|
-
math: _objectSpread({
|
|
179
|
-
onClick: _this.onMathClick,
|
|
180
|
-
onFocus: _this.onPluginFocus,
|
|
181
|
-
onBlur: _this.onPluginBlur
|
|
182
|
-
}, props.mathMlOptions),
|
|
183
|
-
textAlign: {
|
|
184
|
-
getValue: function getValue() {
|
|
185
|
-
return _this.state.value;
|
|
186
|
-
},
|
|
187
|
-
onChange: _this.onChange
|
|
188
|
-
},
|
|
189
|
-
html: htmlPluginOpts,
|
|
190
|
-
extraCSSRules: props.extraCSSRules || {},
|
|
191
|
-
image: {
|
|
192
|
-
disableImageAlignmentButtons: props.disableImageAlignmentButtons,
|
|
193
|
-
onDelete: props.imageSupport && props.imageSupport["delete"] && function (node, done) {
|
|
194
|
-
var src = node.data.get('src');
|
|
195
|
-
props.imageSupport["delete"](src, function (e) {
|
|
196
|
-
var newPendingImages = _this.state.pendingImages.filter(function (img) {
|
|
197
|
-
return img.key !== node.key;
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
var oldScheduled = _this.state.scheduled;
|
|
201
|
-
var newState = {
|
|
202
|
-
pendingImages: newPendingImages,
|
|
203
|
-
scheduled: oldScheduled && newPendingImages.length === 0 ? false : oldScheduled
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
_this.setState(newState, function () {
|
|
207
|
-
return done(e, _this.state.value);
|
|
208
|
-
});
|
|
209
|
-
});
|
|
210
|
-
},
|
|
211
|
-
insertImageRequested: props.imageSupport && function (addedImage, getHandler) {
|
|
212
|
-
var pendingImages = _this.state.pendingImages;
|
|
213
|
-
|
|
214
|
-
var onFinish = function onFinish(result) {
|
|
215
|
-
var cb;
|
|
216
|
-
|
|
217
|
-
if (_this.state.scheduled && result) {
|
|
218
|
-
// finish editing only on success
|
|
219
|
-
cb = _this.onEditingDone.bind((0, _assertThisInitialized2["default"])(_this));
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
var newPendingImages = _this.state.pendingImages.filter(function (img) {
|
|
223
|
-
return img.key !== addedImage.key;
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
var newState = {
|
|
227
|
-
pendingImages: newPendingImages
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
if (newPendingImages.length === 0) {
|
|
231
|
-
newState.scheduled = false;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
_this.setState(newState, cb);
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
var callback = function callback() {
|
|
238
|
-
/**
|
|
239
|
-
* The handler is the object through which the outer context
|
|
240
|
-
* communicates file upload events like: fileChosen, cancel, progress
|
|
241
|
-
*/
|
|
242
|
-
var handler = getHandler(onFinish, function () {
|
|
243
|
-
return _this.state.value;
|
|
244
|
-
});
|
|
245
|
-
props.imageSupport.add(handler);
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
_this.setState({
|
|
249
|
-
pendingImages: [].concat((0, _toConsumableArray2["default"])(pendingImages), [addedImage])
|
|
250
|
-
}, callback);
|
|
251
|
-
},
|
|
252
|
-
onFocus: _this.onPluginFocus,
|
|
253
|
-
onBlur: _this.onPluginBlur,
|
|
254
|
-
maxImageWidth: props.maxImageWidth,
|
|
255
|
-
maxImageHeight: props.maxImageHeight
|
|
256
|
-
},
|
|
257
|
-
toolbar: {
|
|
258
|
-
/**
|
|
259
|
-
* To minimize converting html -> state -> html
|
|
260
|
-
* We only emit markup once 'done' is clicked.
|
|
261
|
-
*/
|
|
262
|
-
disableScrollbar: !!props.disableScrollbar,
|
|
263
|
-
disableUnderline: props.disableUnderline,
|
|
264
|
-
autoWidth: props.autoWidthToolbar,
|
|
265
|
-
onDone: function onDone() {
|
|
266
|
-
var _this$state$value$sta, _this$state$value$sta2;
|
|
267
|
-
|
|
268
|
-
var nonEmpty = props.nonEmpty;
|
|
269
|
-
log('[onDone]');
|
|
270
|
-
|
|
271
|
-
_this.setState({
|
|
272
|
-
toolbarInFocus: false,
|
|
273
|
-
focusedNode: null,
|
|
274
|
-
focusToolbar: false
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
_this.editor.blur();
|
|
278
|
-
|
|
279
|
-
if (nonEmpty && ((_this$state$value$sta = _this.state.value.startText) === null || _this$state$value$sta === void 0 ? void 0 : (_this$state$value$sta2 = _this$state$value$sta.text) === null || _this$state$value$sta2 === void 0 ? void 0 : _this$state$value$sta2.length) === 0) {
|
|
280
|
-
_this.resetValue(true).then(function () {
|
|
281
|
-
_this.onEditingDone();
|
|
282
|
-
});
|
|
283
|
-
} else {
|
|
284
|
-
_this.onEditingDone();
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
},
|
|
288
|
-
table: {
|
|
289
|
-
onFocus: function onFocus() {
|
|
290
|
-
log('[table:onFocus]...');
|
|
291
|
-
|
|
292
|
-
_this.onPluginFocus();
|
|
293
|
-
},
|
|
294
|
-
onBlur: function onBlur() {
|
|
295
|
-
log('[table:onBlur]...');
|
|
296
|
-
|
|
297
|
-
_this.onPluginBlur();
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
responseArea: {
|
|
301
|
-
type: normalizedResponseAreaProps.type,
|
|
302
|
-
options: normalizedResponseAreaProps.options,
|
|
303
|
-
maxResponseAreas: normalizedResponseAreaProps.maxResponseAreas,
|
|
304
|
-
respAreaToolbar: normalizedResponseAreaProps.respAreaToolbar,
|
|
305
|
-
onHandleAreaChange: normalizedResponseAreaProps.onHandleAreaChange,
|
|
306
|
-
error: normalizedResponseAreaProps.error,
|
|
307
|
-
onFocus: function onFocus() {
|
|
308
|
-
log('[table:onFocus]...');
|
|
309
|
-
|
|
310
|
-
_this.onPluginFocus();
|
|
311
|
-
},
|
|
312
|
-
onBlur: function onBlur() {
|
|
313
|
-
log('[table:onBlur]...');
|
|
314
|
-
|
|
315
|
-
_this.onPluginBlur();
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
languageCharacters: props.languageCharactersProps,
|
|
319
|
-
keyPadCharacterRef: _this.keyPadCharacterRef,
|
|
320
|
-
setKeypadInteraction: _this.setKeypadInteraction,
|
|
321
|
-
media: {
|
|
322
|
-
focus: _this.focus,
|
|
323
|
-
createChange: function createChange() {
|
|
324
|
-
return _this.state.value.change();
|
|
325
|
-
},
|
|
326
|
-
onChange: _this.onChange,
|
|
327
|
-
uploadSoundSupport: props.uploadSoundSupport
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
if (props.mathMlOptions.mmlOutput || props.mathMlOptions.mmlEditing) {
|
|
332
|
-
_this.props.runSerializationOnMarkup();
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPluginBlur", function (e) {
|
|
336
|
-
log('[onPluginBlur]', e && e.relatedTarget);
|
|
337
|
-
var target = e && e.relatedTarget;
|
|
338
|
-
var node = target ? (0, _slateReact.findNode)(target, _this.state.value) : null;
|
|
339
|
-
log('[onPluginBlur] node: ', node);
|
|
340
|
-
|
|
341
|
-
_this.setState({
|
|
342
|
-
focusedNode: node
|
|
343
|
-
}, function () {
|
|
344
|
-
_this.resetValue();
|
|
345
|
-
});
|
|
346
|
-
});
|
|
347
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onPluginFocus", function (e) {
|
|
348
|
-
log('[onPluginFocus]', e && e.target);
|
|
349
|
-
var target = e && e.target;
|
|
350
|
-
|
|
351
|
-
if (target) {
|
|
352
|
-
var node = (0, _slateReact.findNode)(target, _this.state.value);
|
|
353
|
-
log('[onPluginFocus] node: ', node);
|
|
354
|
-
var stashedValue = _this.state.stashedValue || _this.state.value;
|
|
355
|
-
|
|
356
|
-
_this.setState({
|
|
357
|
-
focusedNode: node,
|
|
358
|
-
stashedValue: stashedValue
|
|
359
|
-
});
|
|
360
|
-
} else {
|
|
361
|
-
_this.setState({
|
|
362
|
-
focusedNode: null
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
_this.stashValue();
|
|
367
|
-
});
|
|
368
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onMathClick", function (node) {
|
|
369
|
-
_this.editor.change(function (c) {
|
|
370
|
-
return c.collapseToStartOf(node);
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
_this.setState({
|
|
374
|
-
selectedNode: node
|
|
375
|
-
});
|
|
376
|
-
});
|
|
377
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onEditingDone", function () {
|
|
378
|
-
var _this$state = _this.state,
|
|
379
|
-
isHtmlMode = _this$state.isHtmlMode,
|
|
380
|
-
dialog = _this$state.dialog,
|
|
381
|
-
value = _this$state.value,
|
|
382
|
-
pendingImages = _this$state.pendingImages; // Handling HTML mode and dialog state
|
|
383
|
-
|
|
384
|
-
if (isHtmlMode) {
|
|
385
|
-
// Early return if HTML mode is enabled
|
|
386
|
-
if (dialog !== null && dialog !== void 0 && dialog.open) return;
|
|
387
|
-
var currentValue = (0, serialization.htmlToValue)(value.document.text);
|
|
388
|
-
|
|
389
|
-
var previewText = _this.renderHtmlPreviewContent();
|
|
390
|
-
|
|
391
|
-
_this.openHtmlModeConfirmationDialog(currentValue, previewText);
|
|
392
|
-
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
if (pendingImages.length) {
|
|
397
|
-
// schedule image processing
|
|
398
|
-
_this.setState({
|
|
399
|
-
scheduled: true
|
|
400
|
-
});
|
|
401
|
-
|
|
402
|
-
return;
|
|
403
|
-
} // Finalizing editing
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
log('[onEditingDone]');
|
|
407
|
-
|
|
408
|
-
_this.setState({
|
|
409
|
-
pendingImages: [],
|
|
410
|
-
stashedValue: null,
|
|
411
|
-
focusedNode: null
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
log('[onEditingDone] value: ', _this.state.value);
|
|
415
|
-
|
|
416
|
-
_this.props.onChange(_this.state.value, true);
|
|
417
|
-
});
|
|
418
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderHtmlPreviewContent", function () {
|
|
419
|
-
var classes = _this.props.classes;
|
|
420
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
421
|
-
ref: function ref(_ref2) {
|
|
422
|
-
return _this.elementRef = _ref2;
|
|
423
|
-
}
|
|
424
|
-
}, /*#__PURE__*/_react["default"].createElement("div", null, "Preview of Edited Html:"), /*#__PURE__*/_react["default"].createElement(_renderUi.PreviewPrompt, {
|
|
425
|
-
defaultClassName: classes.previewText,
|
|
426
|
-
prompt: _this.state.value.document.text
|
|
427
|
-
}), /*#__PURE__*/_react["default"].createElement("div", null, "Would you like to save these changes ?"));
|
|
428
|
-
});
|
|
429
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "openHtmlModeConfirmationDialog", function (currentValue, previewText) {
|
|
430
|
-
_this.setState({
|
|
431
|
-
dialog: {
|
|
432
|
-
open: true,
|
|
433
|
-
title: 'Content Preview & Save',
|
|
434
|
-
text: previewText,
|
|
435
|
-
onConfirmText: 'Save changes',
|
|
436
|
-
onCloseText: 'Continue editing',
|
|
437
|
-
onConfirm: function onConfirm() {
|
|
438
|
-
_this.handleHtmlModeSaveConfirmation(currentValue);
|
|
439
|
-
},
|
|
440
|
-
onClose: _this.htmlModeContinueEditing
|
|
441
|
-
}
|
|
442
|
-
});
|
|
443
|
-
});
|
|
444
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleHtmlModeSaveConfirmation", function (currentValue) {
|
|
445
|
-
_this.setState({
|
|
446
|
-
value: currentValue
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
_this.props.onChange(currentValue, true);
|
|
450
|
-
|
|
451
|
-
_this.handleDialog(false);
|
|
452
|
-
|
|
453
|
-
_this.toggleHtmlMode();
|
|
454
|
-
});
|
|
455
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "htmlModeContinueEditing", function () {
|
|
456
|
-
_this.handleDialog(false);
|
|
457
|
-
});
|
|
458
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleBlur", function (resolve) {
|
|
459
|
-
var nonEmpty = _this.props.nonEmpty;
|
|
460
|
-
var doneOn = _this.state.toolbarOpts.doneOn;
|
|
461
|
-
|
|
462
|
-
_this.setState({
|
|
463
|
-
toolbarInFocus: false,
|
|
464
|
-
focusedNode: null
|
|
465
|
-
});
|
|
466
|
-
|
|
467
|
-
if (_this.editor) {
|
|
468
|
-
_this.editor.blur();
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
if (doneOn === 'blur') {
|
|
472
|
-
var _this$state$value$sta3, _this$state$value$sta4;
|
|
473
|
-
|
|
474
|
-
if (nonEmpty && ((_this$state$value$sta3 = _this.state.value.startText) === null || _this$state$value$sta3 === void 0 ? void 0 : (_this$state$value$sta4 = _this$state$value$sta3.text) === null || _this$state$value$sta4 === void 0 ? void 0 : _this$state$value$sta4.length) === 0) {
|
|
475
|
-
_this.resetValue(true).then(function () {
|
|
476
|
-
_this.onEditingDone();
|
|
477
|
-
|
|
478
|
-
resolve();
|
|
479
|
-
});
|
|
480
|
-
} else {
|
|
481
|
-
_this.onEditingDone();
|
|
482
|
-
|
|
483
|
-
resolve();
|
|
484
|
-
}
|
|
485
|
-
}
|
|
486
|
-
});
|
|
487
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onBlur", function (event) {
|
|
488
|
-
var _this$doneButtonRef$c;
|
|
489
|
-
|
|
490
|
-
log('[onBlur]');
|
|
491
|
-
var relatedTarget = event.relatedTarget;
|
|
492
|
-
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest("[class*=\"".concat(_this.toolbarRef.className, "\"]"))); // Check if relatedTarget is a done button
|
|
493
|
-
|
|
494
|
-
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest("[class*=\"".concat((_this$doneButtonRef$c = _this.doneButtonRef.current) === null || _this$doneButtonRef$c === void 0 ? void 0 : _this$doneButtonRef$c.className, "\"]"))); // Skip onBlur handling if relatedTarget is a button from the KeyPad characters
|
|
495
|
-
|
|
496
|
-
_this.skipBlurHandling = _this.keypadInteractionDetected && relatedTarget !== null;
|
|
497
|
-
|
|
498
|
-
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
499
|
-
_this.setState({
|
|
500
|
-
focusToolbar: true
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
var node = relatedTarget ? (0, _slateReact.findNode)(relatedTarget, _this.state.value) : null;
|
|
505
|
-
log('[onBlur] node: ', node);
|
|
506
|
-
return new Promise(function (resolve) {
|
|
507
|
-
if (!_this.skipBlurHandling) {
|
|
508
|
-
_this.setKeypadInteraction(false);
|
|
509
|
-
|
|
510
|
-
_this.setState({
|
|
511
|
-
preBlurValue: _this.state.value,
|
|
512
|
-
focusedNode: !node ? null : node
|
|
513
|
-
}, _this.handleBlur.bind((0, _assertThisInitialized2["default"])(_this), resolve));
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
_this.props.onBlur(event);
|
|
517
|
-
});
|
|
518
|
-
});
|
|
519
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "handleDomBlur", function (e) {
|
|
520
|
-
var editorDOM = document.querySelector("[data-key=\"".concat(_this.state.value.document.key, "\"]"));
|
|
521
|
-
setTimeout(function () {
|
|
522
|
-
var stateValue = _this.state.value;
|
|
523
|
-
|
|
524
|
-
if (!_this.wrapperRef) {
|
|
525
|
-
return;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
var editorElement = !editorDOM || document.activeElement.closest("[class*=\"".concat(editorDOM.className, "\"]"));
|
|
529
|
-
var toolbarElement = !_this.toolbarRef || document.activeElement.closest("[class*=\"".concat(_this.toolbarRef.className, "\"]"));
|
|
530
|
-
|
|
531
|
-
var isInCurrentComponent = _this.wrapperRef.contains(editorElement) || _this.wrapperRef.contains(toolbarElement);
|
|
532
|
-
|
|
533
|
-
if (!isInCurrentComponent) {
|
|
534
|
-
editorDOM.removeEventListener('blur', _this.handleDomBlur);
|
|
535
|
-
|
|
536
|
-
if (stateValue.isFocused) {
|
|
537
|
-
_this.onBlur(e);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}, 50);
|
|
541
|
-
});
|
|
542
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onFocus", function (event, change) {
|
|
543
|
-
return new Promise(function (resolve) {
|
|
544
|
-
var _navigator;
|
|
545
|
-
|
|
546
|
-
var editorDOM = document.querySelector("[data-key=\"".concat(_this.state.value.document.key, "\"]"));
|
|
547
|
-
var isTouchDevice = typeof window !== 'undefined' && ('ontouchstart' in window || ((_navigator = navigator) === null || _navigator === void 0 ? void 0 : _navigator.maxTouchPoints) > 0);
|
|
548
|
-
log('[onFocus]', document.activeElement);
|
|
549
|
-
|
|
550
|
-
if (_this.keypadInteractionDetected && _this.__TEMPORARY_CHANGE_DATA) {
|
|
551
|
-
_this.__TEMPORARY_CHANGE_DATA = null;
|
|
552
|
-
}
|
|
553
|
-
/**
|
|
554
|
-
* This is a temporary hack - @see changeData below for some more information.
|
|
555
|
-
*/
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
if (_this.__TEMPORARY_CHANGE_DATA) {
|
|
559
|
-
var _this$__TEMPORARY_CHA = _this.__TEMPORARY_CHANGE_DATA,
|
|
560
|
-
key = _this$__TEMPORARY_CHA.key,
|
|
561
|
-
data = _this$__TEMPORARY_CHA.data;
|
|
562
|
-
var domEl = document.querySelector("[data-key=\"".concat(key, "\"]"));
|
|
563
|
-
|
|
564
|
-
if (domEl) {
|
|
565
|
-
var _change = _this.state.value.change().setNodeByKey(key, {
|
|
566
|
-
data: data
|
|
567
|
-
});
|
|
568
|
-
|
|
569
|
-
_this.setState({
|
|
570
|
-
value: _change.value
|
|
571
|
-
}, function () {
|
|
572
|
-
_this.__TEMPORARY_CHANGE_DATA = null;
|
|
573
|
-
});
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
/**
|
|
577
|
-
* This is needed just in case the browser decides to make the editor
|
|
578
|
-
* lose focus without triggering the onBlur event (can happen in a few cases).
|
|
579
|
-
* This will also trigger onBlur if the user clicks outside of the page when the editor
|
|
580
|
-
* is focused.
|
|
581
|
-
*/
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
if (editorDOM === document.activeElement) {
|
|
585
|
-
editorDOM.removeEventListener('blur', _this.handleDomBlur);
|
|
586
|
-
editorDOM.addEventListener('blur', _this.handleDomBlur);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
_this.stashValue();
|
|
590
|
-
|
|
591
|
-
_this.props.onFocus(); // Added for accessibility: Ensures the editor gains focus when tabbed to for improved keyboard navigation
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
var shouldFocusEditor = !_this.keypadInteractionDetected && !isTouchDevice;
|
|
595
|
-
|
|
596
|
-
if (shouldFocusEditor) {
|
|
597
|
-
change === null || change === void 0 ? void 0 : change.focus();
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
resolve();
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "stashValue", function () {
|
|
604
|
-
log('[stashValue]');
|
|
605
|
-
|
|
606
|
-
if (!_this.state.stashedValue) {
|
|
607
|
-
_this.setState({
|
|
608
|
-
stashedValue: _this.state.value
|
|
609
|
-
});
|
|
610
|
-
}
|
|
611
|
-
});
|
|
612
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "resetValue", function (force) {
|
|
613
|
-
var _this$state2 = _this.state,
|
|
614
|
-
value = _this$state2.value,
|
|
615
|
-
focusedNode = _this$state2.focusedNode;
|
|
616
|
-
|
|
617
|
-
var stopReset = _this.plugins.reduce(function (s, p) {
|
|
618
|
-
return s || p.stopReset && p.stopReset(_this.state.value);
|
|
619
|
-
}, false);
|
|
620
|
-
|
|
621
|
-
log('[resetValue]', value.isFocused, focusedNode, 'stopReset: ', stopReset);
|
|
622
|
-
|
|
623
|
-
if (_this.state.stashedValue && !value.isFocused && !focusedNode && !stopReset || force) {
|
|
624
|
-
log('[resetValue] resetting...');
|
|
625
|
-
log('stashed', _this.state.stashedValue.document.toObject());
|
|
626
|
-
log('current', _this.state.value.document.toObject());
|
|
627
|
-
|
|
628
|
-
var newValue = _slate.Value.fromJSON(_this.state.stashedValue.toJSON());
|
|
629
|
-
|
|
630
|
-
log('newValue: ', newValue.document);
|
|
631
|
-
return new Promise(function (resolve) {
|
|
632
|
-
setTimeout(function () {
|
|
633
|
-
_this.setState({
|
|
634
|
-
value: newValue,
|
|
635
|
-
stashedValue: null
|
|
636
|
-
}, function () {
|
|
637
|
-
log('value now: ', _this.state.value.document.toJSON());
|
|
638
|
-
resolve();
|
|
639
|
-
});
|
|
640
|
-
}, 50);
|
|
641
|
-
});
|
|
642
|
-
} else {
|
|
643
|
-
return Promise.resolve({});
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (change, done) {
|
|
647
|
-
log('[onChange]');
|
|
648
|
-
window.me = (0, _assertThisInitialized2["default"])(_this);
|
|
649
|
-
var value = change.value;
|
|
650
|
-
var charactersLimit = _this.props.charactersLimit;
|
|
651
|
-
var limit = charactersLimit;
|
|
652
|
-
|
|
653
|
-
if (!limit || limit > MAX_CHARACTERS_LIMIT) {
|
|
654
|
-
limit = MAX_CHARACTERS_LIMIT;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
if (value && value.document && value.document.text && value.document.text.length > limit) {
|
|
658
|
-
return;
|
|
659
|
-
} // Mark the editor as edited when in HTML mode and its content has changed.
|
|
660
|
-
// This status will later be used to decide whether to prompt a warning to the user when exiting HTML mode.
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
var isEditedInHtmlMode = !_this.state.isHtmlMode ? false : _this.state.value.document.text !== value.document.text ? true : _this.state.isEditedInHtmlMode;
|
|
664
|
-
|
|
665
|
-
if (isEditedInHtmlMode != _this.state.isEditedInHtmlMode) {
|
|
666
|
-
_this.handlePlugins(_this.props);
|
|
667
|
-
}
|
|
668
|
-
|
|
669
|
-
_this.setState({
|
|
670
|
-
value: value,
|
|
671
|
-
isEditedInHtmlMode: isEditedInHtmlMode
|
|
672
|
-
}, function () {
|
|
673
|
-
log('[onChange], call done()');
|
|
674
|
-
|
|
675
|
-
if (done) {
|
|
676
|
-
done();
|
|
677
|
-
}
|
|
678
|
-
});
|
|
679
|
-
});
|
|
680
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getFocusedValue", function () {
|
|
681
|
-
if (_this.state.value.isFocused) {
|
|
682
|
-
return _this.state.value;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
return _this.state.preBlurValue;
|
|
686
|
-
});
|
|
687
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "valueToSize", function (v) {
|
|
688
|
-
if (!v) {
|
|
689
|
-
return;
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
var calcRegex = /^calc\((.*)\)$/;
|
|
693
|
-
|
|
694
|
-
if (typeof v === 'string') {
|
|
695
|
-
if (v.endsWith('%')) {
|
|
696
|
-
return undefined;
|
|
697
|
-
} else if (v.endsWith('px') || v.endsWith('vh') || v.endsWith('vw') || v.endsWith('ch') || v.endsWith('em') || v.match(calcRegex)) {
|
|
698
|
-
return v;
|
|
699
|
-
} else {
|
|
700
|
-
var value = parseInt(v, 10);
|
|
701
|
-
return isNaN(value) ? value : "".concat(value, "px");
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
if (typeof v === 'number') {
|
|
706
|
-
return "".concat(v, "px");
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "validateNode", function (node) {
|
|
710
|
-
if (node.object !== 'block') return;
|
|
711
|
-
var last = node.nodes.last();
|
|
712
|
-
if (!last) return;
|
|
713
|
-
if (last.type !== 'image') return;
|
|
714
|
-
log('[validateNode] last is image..');
|
|
715
|
-
var parent = last.getParent(last.key);
|
|
716
|
-
|
|
717
|
-
var p = _slate.Block.getParent(last.key);
|
|
718
|
-
|
|
719
|
-
log('[validateNode] parent:', parent, p);
|
|
720
|
-
return undefined;
|
|
721
|
-
});
|
|
722
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "changeData", function (key, data) {
|
|
723
|
-
log('[changeData]. .. ', key, data);
|
|
724
|
-
/**
|
|
725
|
-
* HACK ALERT: We should be calling setState here and storing the change data:
|
|
726
|
-
*
|
|
727
|
-
* <code>this.setState({changeData: { key, data}})</code>
|
|
728
|
-
* However this is causing issues with the Mathquill instance. The 'input' event stops firing on the element and no
|
|
729
|
-
* more changes get through. The issues seem to be related to the promises in onBlur/onFocus. But removing these
|
|
730
|
-
* brings it's own problems. A major clean up is planned for this component so I've decided to temporarily settle
|
|
731
|
-
* on this hack rather than spend more time on this.
|
|
732
|
-
*/
|
|
733
|
-
// Uncomment this line to see the bug described above.
|
|
734
|
-
// this.setState({changeData: {key, data}})
|
|
735
|
-
|
|
736
|
-
_this.__TEMPORARY_CHANGE_DATA = {
|
|
737
|
-
key: key,
|
|
738
|
-
data: data
|
|
739
|
-
};
|
|
740
|
-
});
|
|
741
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "focus", function (pos, node) {
|
|
742
|
-
var position = pos || 'end';
|
|
743
|
-
|
|
744
|
-
_this.props.focus(position, node);
|
|
745
|
-
});
|
|
746
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onDropPaste", /*#__PURE__*/function () {
|
|
747
|
-
var _ref3 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(event, change, dropContext) {
|
|
748
|
-
var editor, transfer, file, type, fragment, text, src, inline, range, ch, handler, _change$value, _document, selection, startBlock, defaultBlock, defaultMarks, frag;
|
|
749
|
-
|
|
750
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
751
|
-
while (1) {
|
|
752
|
-
switch (_context.prev = _context.next) {
|
|
753
|
-
case 0:
|
|
754
|
-
editor = change.editor;
|
|
755
|
-
transfer = (0, _slateReact.getEventTransfer)(event);
|
|
756
|
-
file = transfer.files && transfer.files[0];
|
|
757
|
-
type = transfer.type;
|
|
758
|
-
fragment = transfer.fragment;
|
|
759
|
-
text = transfer.text;
|
|
760
|
-
|
|
761
|
-
if (!(file && (file.type === 'image/jpeg' || file.type === 'image/jpg' || file.type === 'image/png'))) {
|
|
762
|
-
_context.next = 28;
|
|
763
|
-
break;
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
if (_this.props.imageSupport) {
|
|
767
|
-
_context.next = 9;
|
|
768
|
-
break;
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
return _context.abrupt("return");
|
|
772
|
-
|
|
773
|
-
case 9:
|
|
774
|
-
_context.prev = 9;
|
|
775
|
-
log('[onDropPaste]');
|
|
776
|
-
_context.next = 13;
|
|
777
|
-
return (0, serialization.getBase64)(file);
|
|
778
|
-
|
|
779
|
-
case 13:
|
|
780
|
-
src = _context.sent;
|
|
781
|
-
inline = _slate.Inline.create({
|
|
782
|
-
type: 'image',
|
|
783
|
-
isVoid: true,
|
|
784
|
-
data: {
|
|
785
|
-
loading: false,
|
|
786
|
-
src: src
|
|
787
|
-
}
|
|
788
|
-
});
|
|
789
|
-
|
|
790
|
-
if (dropContext) {
|
|
791
|
-
_this.focus();
|
|
792
|
-
} else {
|
|
793
|
-
range = (0, _slateReact.getEventRange)(event, editor);
|
|
794
|
-
|
|
795
|
-
if (range) {
|
|
796
|
-
change.select(range);
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
ch = change.insertInline(inline);
|
|
801
|
-
|
|
802
|
-
_this.onChange(ch);
|
|
803
|
-
|
|
804
|
-
handler = new _insertImageHandler["default"](inline, function () {}, function () {
|
|
805
|
-
return _this.state.value;
|
|
806
|
-
}, _this.onChange, true);
|
|
807
|
-
handler.fileChosen(file);
|
|
808
|
-
|
|
809
|
-
_this.props.imageSupport.add(handler);
|
|
810
|
-
|
|
811
|
-
_context.next = 26;
|
|
812
|
-
break;
|
|
813
|
-
|
|
814
|
-
case 23:
|
|
815
|
-
_context.prev = 23;
|
|
816
|
-
_context.t0 = _context["catch"](9);
|
|
817
|
-
log('[onDropPaste] error: ', _context.t0);
|
|
818
|
-
|
|
819
|
-
case 26:
|
|
820
|
-
_context.next = 42;
|
|
821
|
-
break;
|
|
822
|
-
|
|
823
|
-
case 28:
|
|
824
|
-
if (!(type === 'fragment')) {
|
|
825
|
-
_context.next = 32;
|
|
826
|
-
break;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
change.insertFragment(fragment);
|
|
830
|
-
_context.next = 42;
|
|
831
|
-
break;
|
|
832
|
-
|
|
833
|
-
case 32:
|
|
834
|
-
if (!(type === 'text' || type === 'html')) {
|
|
835
|
-
_context.next = 42;
|
|
836
|
-
break;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
if (text) {
|
|
840
|
-
_context.next = 35;
|
|
841
|
-
break;
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
return _context.abrupt("return");
|
|
845
|
-
|
|
846
|
-
case 35:
|
|
847
|
-
_change$value = change.value, _document = _change$value.document, selection = _change$value.selection, startBlock = _change$value.startBlock;
|
|
848
|
-
|
|
849
|
-
if (!startBlock.isVoid) {
|
|
850
|
-
_context.next = 38;
|
|
851
|
-
break;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
return _context.abrupt("return");
|
|
855
|
-
|
|
856
|
-
case 38:
|
|
857
|
-
defaultBlock = startBlock;
|
|
858
|
-
defaultMarks = _document.getInsertMarksAtRange(selection);
|
|
859
|
-
frag = _slatePlainSerializer["default"].deserialize(text, {
|
|
860
|
-
defaultBlock: defaultBlock,
|
|
861
|
-
defaultMarks: defaultMarks
|
|
862
|
-
}).document;
|
|
863
|
-
change.insertFragment(frag);
|
|
864
|
-
|
|
865
|
-
case 42:
|
|
866
|
-
case "end":
|
|
867
|
-
return _context.stop();
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
}, _callee, null, [[9, 23]]);
|
|
871
|
-
}));
|
|
872
|
-
|
|
873
|
-
return function (_x, _x2, _x3) {
|
|
874
|
-
return _ref3.apply(this, arguments);
|
|
875
|
-
};
|
|
876
|
-
}());
|
|
877
|
-
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderPlaceholder", function (props) {
|
|
878
|
-
var editor = props.editor;
|
|
879
|
-
var document = editor.value.document;
|
|
880
|
-
|
|
881
|
-
if (!editor.props.placeholder || document.text !== '' || document.nodes.size !== 1 || !document.isEmpty) {
|
|
882
|
-
return false;
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
886
|
-
contentEditable: false,
|
|
887
|
-
style: {
|
|
888
|
-
display: 'inline-block',
|
|
889
|
-
width: 'fit-content',
|
|
890
|
-
// for centering the placeholder if text-align is set to center
|
|
891
|
-
maxWidth: '100%',
|
|
892
|
-
whiteSpace: 'nowrap',
|
|
893
|
-
opacity: '0.33',
|
|
894
|
-
pointerEvents: 'none',
|
|
895
|
-
userSelect: 'none'
|
|
896
|
-
}
|
|
897
|
-
}, editor.props.placeholder);
|
|
898
|
-
});
|
|
899
|
-
_this.state = {
|
|
900
|
-
value: _props.value,
|
|
901
|
-
toolbarOpts: createToolbarOpts(_props.toolbarOpts, _props.error),
|
|
902
|
-
pendingImages: [],
|
|
903
|
-
isHtmlMode: false,
|
|
904
|
-
isEditedInHtmlMode: false,
|
|
905
|
-
focusToolbar: false,
|
|
906
|
-
dialog: {
|
|
907
|
-
open: false
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
|
-
_this.keyPadCharacterRef = /*#__PURE__*/_react["default"].createRef();
|
|
911
|
-
_this.doneButtonRef = /*#__PURE__*/_react["default"].createRef();
|
|
912
|
-
_this.keypadInteractionDetected = false;
|
|
913
|
-
_this.toggleHtmlMode = _this.toggleHtmlMode.bind((0, _assertThisInitialized2["default"])(_this));
|
|
914
|
-
_this.handleToolbarFocus = _this.handleToolbarFocus.bind((0, _assertThisInitialized2["default"])(_this));
|
|
915
|
-
_this.handleToolbarBlur = _this.handleToolbarBlur.bind((0, _assertThisInitialized2["default"])(_this));
|
|
916
|
-
_this.onResize = (0, _debounce["default"])(function () {
|
|
917
|
-
if (!_this.state.isHtmlMode && _props.onChange) {
|
|
918
|
-
_props.onChange(_this.state.value, true);
|
|
919
|
-
}
|
|
920
|
-
}, 50);
|
|
921
|
-
|
|
922
|
-
_this.handlePlugins(_this.props);
|
|
923
|
-
|
|
924
|
-
return _this;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
(0, _createClass2["default"])(Editor, [{
|
|
928
|
-
key: "handleToolbarFocus",
|
|
929
|
-
value: function handleToolbarFocus() {
|
|
930
|
-
if (this.state.focusToolbar) {
|
|
931
|
-
return;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
this.setState({
|
|
935
|
-
focusToolbar: true
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
}, {
|
|
939
|
-
key: "handleToolbarBlur",
|
|
940
|
-
value: function handleToolbarBlur() {
|
|
941
|
-
var _this2 = this;
|
|
942
|
-
|
|
943
|
-
setTimeout(function () {
|
|
944
|
-
if (!_this2.toolbarContainsFocus()) {
|
|
945
|
-
_this2.setState({
|
|
946
|
-
focusToolbar: false
|
|
947
|
-
});
|
|
948
|
-
}
|
|
949
|
-
}, 0);
|
|
950
|
-
}
|
|
951
|
-
}, {
|
|
952
|
-
key: "toolbarContainsFocus",
|
|
953
|
-
value: function toolbarContainsFocus() {
|
|
954
|
-
if (!this.toolbarRef) return false;
|
|
955
|
-
var toolbarElement = this.toolbarRef;
|
|
956
|
-
var activeElement = document.activeElement;
|
|
957
|
-
return toolbarElement && toolbarElement.contains(activeElement);
|
|
958
|
-
}
|
|
959
|
-
}, {
|
|
960
|
-
key: "componentDidMount",
|
|
961
|
-
value: function componentDidMount() {
|
|
962
|
-
var _this$props$className,
|
|
963
|
-
_this3 = this;
|
|
964
|
-
|
|
965
|
-
// onRef is needed to get the ref of the component because we export it using withStyles
|
|
966
|
-
this.props.onRef(this);
|
|
967
|
-
window.addEventListener('resize', this.onResize);
|
|
968
|
-
var isResponseAreaEditor = (_this$props$className = this.props.className) === null || _this$props$className === void 0 ? void 0 : _this$props$className.includes('response-area-editor');
|
|
969
|
-
|
|
970
|
-
if (isResponseAreaEditor && this.editor) {
|
|
971
|
-
var responseAreaEditor = document.querySelector("[data-key=\"".concat(this.editor.value.document.key, "\"]"));
|
|
972
|
-
|
|
973
|
-
if (responseAreaEditor) {
|
|
974
|
-
responseAreaEditor.setAttribute('aria-label', 'Answer');
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
if (this.editor && this.props.autoFocus) {
|
|
979
|
-
Promise.resolve().then(function () {
|
|
980
|
-
if (_this3.editor) {
|
|
981
|
-
var editorDOM = document.querySelector("[data-key=\"".concat(_this3.editor.value.document.key, "\"]"));
|
|
982
|
-
|
|
983
|
-
_this3.editor.focus();
|
|
984
|
-
|
|
985
|
-
if (editorDOM) {
|
|
986
|
-
editorDOM.focus();
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
});
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
}, {
|
|
993
|
-
key: "UNSAFE_componentWillReceiveProps",
|
|
994
|
-
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
995
|
-
var _nextProps$value, _nextProps$value$docu, _this$props$value;
|
|
996
|
-
|
|
997
|
-
var _this$state3 = this.state,
|
|
998
|
-
isHtmlMode = _this$state3.isHtmlMode,
|
|
999
|
-
toolbarOpts = _this$state3.toolbarOpts;
|
|
1000
|
-
var newToolbarOpts = createToolbarOpts(nextProps.toolbarOpts, nextProps.error, isHtmlMode);
|
|
1001
|
-
|
|
1002
|
-
if (!(0, _isEqual["default"])(newToolbarOpts, toolbarOpts)) {
|
|
1003
|
-
this.setState({
|
|
1004
|
-
toolbarOpts: newToolbarOpts
|
|
1005
|
-
});
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
var differentCharacterProps = !(0, _isEqual["default"])(nextProps.languageCharactersProps, this.props.languageCharactersProps);
|
|
1009
|
-
var differentMathMlProps = !(0, _isEqual["default"])(nextProps.mathMlOptions, this.props.mathMlOptions);
|
|
1010
|
-
var differentImageMaxDimensionsProps = !(0, _isEqual["default"])(nextProps.maxImageWidth, this.props.maxImageWidth) || !(0, _isEqual["default"])(nextProps.maxImageHeight, this.props.maxImageHeight);
|
|
1011
|
-
|
|
1012
|
-
if (differentCharacterProps || differentMathMlProps || differentImageMaxDimensionsProps) {
|
|
1013
|
-
this.handlePlugins(nextProps);
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
if (!((_nextProps$value = nextProps.value) !== null && _nextProps$value !== void 0 && (_nextProps$value$docu = _nextProps$value.document) !== null && _nextProps$value$docu !== void 0 && _nextProps$value$docu.equals((_this$props$value = this.props.value) === null || _this$props$value === void 0 ? void 0 : _this$props$value.document))) {
|
|
1017
|
-
this.setState({
|
|
1018
|
-
focus: false,
|
|
1019
|
-
value: nextProps.value
|
|
1020
|
-
});
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
}, {
|
|
1024
|
-
key: "componentDidUpdate",
|
|
1025
|
-
value: function componentDidUpdate(prevProps, prevState) {
|
|
1026
|
-
// The cursor is on a zero width element and when that is placed near void elements, it is not visible
|
|
1027
|
-
// so we increase the width to at least 2px in order for the user to see it
|
|
1028
|
-
// Trigger plugins and finish editing if:
|
|
1029
|
-
// 1. The 'isHtmlMode' state has been toggled.
|
|
1030
|
-
// 2. We're currently in 'isHtmlMode' and the editor value has been modified.
|
|
1031
|
-
if (this.state.isHtmlMode !== prevState.isHtmlMode || this.state.isHtmlMode && !prevState.isEditedInHtmlMode && this.state.isEditedInHtmlMode) {
|
|
1032
|
-
this.handlePlugins(this.props);
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
var zeroWidthEls = document.querySelectorAll('[data-slate-zero-width="z"]');
|
|
1036
|
-
Array.from(zeroWidthEls).forEach(function (el) {
|
|
1037
|
-
el.style.minWidth = '2px';
|
|
1038
|
-
el.style.display = 'inline-block';
|
|
1039
|
-
});
|
|
1040
|
-
}
|
|
1041
|
-
}, {
|
|
1042
|
-
key: "componentWillUnmount",
|
|
1043
|
-
value:
|
|
1044
|
-
/**
|
|
1045
|
-
* Remove onResize event listener
|
|
1046
|
-
*/
|
|
1047
|
-
function componentWillUnmount() {
|
|
1048
|
-
window.removeEventListener('resize', this.onResize);
|
|
1049
|
-
} // Allowing time for onChange to take effect if it is called
|
|
1050
|
-
|
|
1051
|
-
}, {
|
|
1052
|
-
key: "buildSizeStyle",
|
|
1053
|
-
value: function buildSizeStyle() {
|
|
1054
|
-
var _this$props = this.props,
|
|
1055
|
-
minWidth = _this$props.minWidth,
|
|
1056
|
-
width = _this$props.width,
|
|
1057
|
-
maxWidth = _this$props.maxWidth,
|
|
1058
|
-
minHeight = _this$props.minHeight,
|
|
1059
|
-
height = _this$props.height,
|
|
1060
|
-
maxHeight = _this$props.maxHeight;
|
|
1061
|
-
return {
|
|
1062
|
-
width: this.valueToSize(width),
|
|
1063
|
-
minWidth: this.valueToSize(minWidth),
|
|
1064
|
-
maxWidth: this.valueToSize(maxWidth),
|
|
1065
|
-
height: this.valueToSize(height),
|
|
1066
|
-
minHeight: this.valueToSize(minHeight),
|
|
1067
|
-
maxHeight: this.valueToSize(maxHeight)
|
|
1068
|
-
};
|
|
1069
|
-
}
|
|
1070
|
-
}, {
|
|
1071
|
-
key: "render",
|
|
1072
|
-
value: function render() {
|
|
1073
|
-
var _classNames,
|
|
1074
|
-
_this4 = this,
|
|
1075
|
-
_value$document,
|
|
1076
|
-
_classNames2;
|
|
1077
|
-
|
|
1078
|
-
var _this$props2 = this.props,
|
|
1079
|
-
disabled = _this$props2.disabled,
|
|
1080
|
-
spellCheck = _this$props2.spellCheck,
|
|
1081
|
-
highlightShape = _this$props2.highlightShape,
|
|
1082
|
-
classes = _this$props2.classes,
|
|
1083
|
-
className = _this$props2.className,
|
|
1084
|
-
isEditor = _this$props2.isEditor,
|
|
1085
|
-
placeholder = _this$props2.placeholder,
|
|
1086
|
-
pluginProps = _this$props2.pluginProps,
|
|
1087
|
-
onKeyDown = _this$props2.onKeyDown; // We don't want to send customPlugins to slate.
|
|
1088
|
-
// Not sure if they would do any harm, but I think it's better to not send them.
|
|
1089
|
-
// We use custom plugins to be able to add custom buttons
|
|
1090
|
-
// eslint-disable-next-line no-unused-vars
|
|
1091
|
-
|
|
1092
|
-
var _ref4 = pluginProps || {},
|
|
1093
|
-
customPlugins = _ref4.customPlugins,
|
|
1094
|
-
showParagraphs = _ref4.showParagraphs,
|
|
1095
|
-
separateParagraphs = _ref4.separateParagraphs,
|
|
1096
|
-
otherPluginProps = (0, _objectWithoutProperties2["default"])(_ref4, _excluded);
|
|
1097
|
-
|
|
1098
|
-
var _this$state4 = this.state,
|
|
1099
|
-
value = _this$state4.value,
|
|
1100
|
-
focusedNode = _this$state4.focusedNode,
|
|
1101
|
-
toolbarOpts = _this$state4.toolbarOpts,
|
|
1102
|
-
dialog = _this$state4.dialog,
|
|
1103
|
-
scheduled = _this$state4.scheduled;
|
|
1104
|
-
log('[render] value: ', value);
|
|
1105
|
-
var sizeStyle = this.buildSizeStyle();
|
|
1106
|
-
var names = (0, _classnames["default"])((_classNames = {}, (0, _defineProperty2["default"])(_classNames, classes.withBg, highlightShape), (0, _defineProperty2["default"])(_classNames, classes.toolbarOnTop, toolbarOpts.alwaysVisible && toolbarOpts.position === 'top'), (0, _defineProperty2["default"])(_classNames, classes.scheduled, scheduled), _classNames), className);
|
|
1107
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1108
|
-
ref: function ref(_ref5) {
|
|
1109
|
-
return _this4.wrapperRef = _ref5;
|
|
1110
|
-
},
|
|
1111
|
-
style: {
|
|
1112
|
-
width: sizeStyle.width,
|
|
1113
|
-
minWidth: sizeStyle.minWidth,
|
|
1114
|
-
maxWidth: sizeStyle.maxWidth
|
|
1115
|
-
},
|
|
1116
|
-
className: names,
|
|
1117
|
-
id: "editor-".concat(value === null || value === void 0 ? void 0 : (_value$document = value.document) === null || _value$document === void 0 ? void 0 : _value$document.key)
|
|
1118
|
-
}, scheduled && /*#__PURE__*/_react["default"].createElement("div", {
|
|
1119
|
-
className: classes.uploading
|
|
1120
|
-
}, "Uploading image and then saving..."), /*#__PURE__*/_react["default"].createElement(_slateReact.Editor, {
|
|
1121
|
-
plugins: this.plugins,
|
|
1122
|
-
innerRef: function innerRef(r) {
|
|
1123
|
-
if (r) {
|
|
1124
|
-
_this4.slateEditor = r;
|
|
1125
|
-
}
|
|
1126
|
-
},
|
|
1127
|
-
ref: function ref(r) {
|
|
1128
|
-
return _this4.editor = r && _this4.props.editorRef(r);
|
|
1129
|
-
},
|
|
1130
|
-
toolbarRef: function toolbarRef(r) {
|
|
1131
|
-
if (r) {
|
|
1132
|
-
_this4.toolbarRef = r;
|
|
1133
|
-
}
|
|
1134
|
-
},
|
|
1135
|
-
doneButtonRef: this.doneButtonRef,
|
|
1136
|
-
value: value,
|
|
1137
|
-
focusToolbar: this.state.focusToolbar,
|
|
1138
|
-
onToolbarFocus: this.handleToolbarFocus,
|
|
1139
|
-
onToolbarBlur: this.handleToolbarBlur,
|
|
1140
|
-
focus: this.focus,
|
|
1141
|
-
onKeyDown: onKeyDown,
|
|
1142
|
-
onChange: this.onChange,
|
|
1143
|
-
getFocusedValue: this.getFocusedValue,
|
|
1144
|
-
onBlur: this.onBlur,
|
|
1145
|
-
onDrop: function onDrop(event, editor) {
|
|
1146
|
-
return _this4.onDropPaste(event, editor, true);
|
|
1147
|
-
},
|
|
1148
|
-
onPaste: function onPaste(event, editor) {
|
|
1149
|
-
return _this4.onDropPaste(event, editor);
|
|
1150
|
-
},
|
|
1151
|
-
onFocus: this.onFocus,
|
|
1152
|
-
onEditingDone: this.onEditingDone,
|
|
1153
|
-
focusedNode: focusedNode,
|
|
1154
|
-
normalize: this.normalize,
|
|
1155
|
-
readOnly: disabled,
|
|
1156
|
-
spellCheck: spellCheck,
|
|
1157
|
-
autoCorrect: spellCheck,
|
|
1158
|
-
className: (0, _classnames["default"])((_classNames2 = {}, (0, _defineProperty2["default"])(_classNames2, classes.noPadding, toolbarOpts === null || toolbarOpts === void 0 ? void 0 : toolbarOpts.noPadding), (0, _defineProperty2["default"])(_classNames2, classes.showParagraph, showParagraphs && !showParagraphs.disabled), (0, _defineProperty2["default"])(_classNames2, classes.separateParagraph, separateParagraphs && !separateParagraphs.disabled), _classNames2), classes.slateEditor),
|
|
1159
|
-
style: {
|
|
1160
|
-
minHeight: sizeStyle.minHeight,
|
|
1161
|
-
height: sizeStyle.height,
|
|
1162
|
-
maxHeight: sizeStyle.maxHeight
|
|
1163
|
-
},
|
|
1164
|
-
pluginProps: otherPluginProps,
|
|
1165
|
-
toolbarOpts: toolbarOpts,
|
|
1166
|
-
placeholder: placeholder,
|
|
1167
|
-
renderPlaceholder: this.renderPlaceholder,
|
|
1168
|
-
onDataChange: this.changeData
|
|
1169
|
-
}), /*#__PURE__*/_react["default"].createElement(_alertDialog["default"], {
|
|
1170
|
-
open: dialog.open,
|
|
1171
|
-
title: dialog.title,
|
|
1172
|
-
text: dialog.text,
|
|
1173
|
-
onClose: dialog.onClose,
|
|
1174
|
-
onConfirm: dialog.onConfirm,
|
|
1175
|
-
onConfirmText: dialog.onConfirmText,
|
|
1176
|
-
onCloseText: dialog.onCloseText
|
|
1177
|
-
}));
|
|
1178
|
-
}
|
|
1179
|
-
}]);
|
|
1180
|
-
return Editor;
|
|
1181
|
-
}(_react["default"].Component); // TODO color - hardcoded gray background and keypad colors will need to change too
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
exports.Editor = Editor;
|
|
1185
|
-
(0, _defineProperty2["default"])(Editor, "propTypes", {
|
|
1186
|
-
autoFocus: _propTypes["default"].bool,
|
|
1187
|
-
editorRef: _propTypes["default"].func.isRequired,
|
|
1188
|
-
error: _propTypes["default"].any,
|
|
1189
|
-
onRef: _propTypes["default"].func.isRequired,
|
|
1190
|
-
onChange: _propTypes["default"].func.isRequired,
|
|
1191
|
-
onFocus: _propTypes["default"].func,
|
|
1192
|
-
onBlur: _propTypes["default"].func,
|
|
1193
|
-
onKeyDown: _propTypes["default"].func,
|
|
1194
|
-
focus: _propTypes["default"].func.isRequired,
|
|
1195
|
-
value: _slatePropTypes["default"].value.isRequired,
|
|
1196
|
-
imageSupport: _propTypes["default"].object,
|
|
1197
|
-
mathMlOptions: _propTypes["default"].shape({
|
|
1198
|
-
mmlOutput: _propTypes["default"].bool,
|
|
1199
|
-
mmlEditing: _propTypes["default"].bool
|
|
1200
|
-
}),
|
|
1201
|
-
disableImageAlignmentButtons: _propTypes["default"].bool,
|
|
1202
|
-
uploadSoundSupport: _propTypes["default"].shape({
|
|
1203
|
-
add: _propTypes["default"].func,
|
|
1204
|
-
"delete": _propTypes["default"].func
|
|
1205
|
-
}),
|
|
1206
|
-
charactersLimit: _propTypes["default"].number,
|
|
1207
|
-
width: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1208
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1209
|
-
maxWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1210
|
-
height: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1211
|
-
minHeight: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1212
|
-
maxHeight: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
1213
|
-
classes: _propTypes["default"].object.isRequired,
|
|
1214
|
-
highlightShape: _propTypes["default"].bool,
|
|
1215
|
-
disabled: _propTypes["default"].bool,
|
|
1216
|
-
spellCheck: _propTypes["default"].bool,
|
|
1217
|
-
nonEmpty: _propTypes["default"].bool,
|
|
1218
|
-
disableScrollbar: _propTypes["default"].bool,
|
|
1219
|
-
disableUnderline: _propTypes["default"].bool,
|
|
1220
|
-
autoWidthToolbar: _propTypes["default"].bool,
|
|
1221
|
-
pluginProps: _propTypes["default"].any,
|
|
1222
|
-
// customPlugins should be inside pluginProps (a property inside pluginProps)
|
|
1223
|
-
// customPlugins: PropTypes.arrayOf(
|
|
1224
|
-
// PropTypes.shape({
|
|
1225
|
-
// event: PropTypes.string,
|
|
1226
|
-
// icon: PropTypes.string,
|
|
1227
|
-
// iconType: PropTypes.string,
|
|
1228
|
-
// iconAlt: PropTypes.string
|
|
1229
|
-
// }),
|
|
1230
|
-
// ),
|
|
1231
|
-
placeholder: _propTypes["default"].string,
|
|
1232
|
-
isEditor: _propTypes["default"].bool,
|
|
1233
|
-
responseAreaProps: _propTypes["default"].shape({
|
|
1234
|
-
type: _propTypes["default"].oneOf(['explicit-constructed-response', 'inline-dropdown', 'drag-in-the-blank', 'math-templated']),
|
|
1235
|
-
options: _propTypes["default"].object,
|
|
1236
|
-
respAreaToolbar: _propTypes["default"].func,
|
|
1237
|
-
onHandleAreaChange: _propTypes["default"].func,
|
|
1238
|
-
maxResponseAreas: _propTypes["default"].number,
|
|
1239
|
-
error: _propTypes["default"].any
|
|
1240
|
-
}),
|
|
1241
|
-
extraCSSRules: _propTypes["default"].shape({
|
|
1242
|
-
names: _propTypes["default"].arrayOf(_propTypes["default"].string),
|
|
1243
|
-
rules: _propTypes["default"].string
|
|
1244
|
-
}),
|
|
1245
|
-
languageCharactersProps: _propTypes["default"].arrayOf(_propTypes["default"].shape({
|
|
1246
|
-
language: _propTypes["default"].string,
|
|
1247
|
-
characterIcon: _propTypes["default"].string,
|
|
1248
|
-
characters: _propTypes["default"].arrayOf(_propTypes["default"].arrayOf(_propTypes["default"].string))
|
|
1249
|
-
})),
|
|
1250
|
-
runSerializationOnMarkup: _propTypes["default"].func,
|
|
1251
|
-
toolbarOpts: _propTypes["default"].shape({
|
|
1252
|
-
position: _propTypes["default"].oneOf(['bottom', 'top']),
|
|
1253
|
-
alignment: _propTypes["default"].oneOf(['left', 'right']),
|
|
1254
|
-
alwaysVisible: _propTypes["default"].bool,
|
|
1255
|
-
showDone: _propTypes["default"].bool,
|
|
1256
|
-
doneOn: _propTypes["default"].string,
|
|
1257
|
-
minWidth: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
1258
|
-
}),
|
|
1259
|
-
activePlugins: _propTypes["default"].arrayOf(function (values) {
|
|
1260
|
-
var allValid = values.every(function (v) {
|
|
1261
|
-
return _plugins.ALL_PLUGINS.includes(v);
|
|
1262
|
-
});
|
|
1263
|
-
return !allValid && new Error("Invalid values: ".concat(values, ", values must be one of [").concat(_plugins.ALL_PLUGINS.join(','), "]"));
|
|
1264
|
-
}),
|
|
1265
|
-
className: _propTypes["default"].string,
|
|
1266
|
-
maxImageWidth: _propTypes["default"].number,
|
|
1267
|
-
maxImageHeight: _propTypes["default"].number
|
|
1268
|
-
});
|
|
1269
|
-
(0, _defineProperty2["default"])(Editor, "defaultProps", {
|
|
1270
|
-
disableUnderline: true,
|
|
1271
|
-
onFocus: function onFocus() {},
|
|
1272
|
-
onBlur: function onBlur() {},
|
|
1273
|
-
onKeyDown: function onKeyDown() {},
|
|
1274
|
-
runSerializationOnMarkup: function runSerializationOnMarkup() {},
|
|
1275
|
-
mathMlOptions: {
|
|
1276
|
-
mmlOutput: false,
|
|
1277
|
-
mmlEditing: false
|
|
1278
|
-
},
|
|
1279
|
-
toolbarOpts: defaultToolbarOpts,
|
|
1280
|
-
responseAreaProps: defaultResponseAreaProps,
|
|
1281
|
-
languageCharactersProps: defaultLanguageCharactersProps,
|
|
1282
|
-
extraCSSRules: null,
|
|
1283
|
-
isEditor: false
|
|
1284
|
-
});
|
|
1285
|
-
var styles = {
|
|
1286
|
-
withBg: {
|
|
1287
|
-
backgroundColor: 'rgba(0,0,0,0.06)'
|
|
1288
|
-
},
|
|
1289
|
-
scheduled: {
|
|
1290
|
-
opacity: 0.5,
|
|
1291
|
-
pointerEvents: 'none',
|
|
1292
|
-
position: 'relative'
|
|
1293
|
-
},
|
|
1294
|
-
uploading: {
|
|
1295
|
-
position: 'absolute',
|
|
1296
|
-
top: '50%',
|
|
1297
|
-
left: '50%',
|
|
1298
|
-
transform: 'translate(-50%, -50%)'
|
|
1299
|
-
},
|
|
1300
|
-
slateEditor: {
|
|
1301
|
-
fontFamily: 'Roboto, sans-serif',
|
|
1302
|
-
'& table': {
|
|
1303
|
-
tableLayout: 'fixed',
|
|
1304
|
-
width: '100%',
|
|
1305
|
-
borderCollapse: 'collapse',
|
|
1306
|
-
color: _renderUi.color.text(),
|
|
1307
|
-
backgroundColor: _renderUi.color.background()
|
|
1308
|
-
},
|
|
1309
|
-
'& table:not([border="1"]) tr': {
|
|
1310
|
-
borderTop: '1px solid #dfe2e5' // TODO perhaps secondary color for background, for now disable
|
|
1311
|
-
// '&:nth-child(2n)': {
|
|
1312
|
-
// backgroundColor: '#f6f8fa'
|
|
1313
|
-
// }
|
|
1314
|
-
|
|
1315
|
-
},
|
|
1316
|
-
'& td, th': {
|
|
1317
|
-
padding: '.6em 1em',
|
|
1318
|
-
textAlign: 'center'
|
|
1319
|
-
},
|
|
1320
|
-
'& table:not([border="1"]) td, th': {
|
|
1321
|
-
border: '1px solid #dfe2e5'
|
|
1322
|
-
}
|
|
1323
|
-
},
|
|
1324
|
-
showParagraph: {
|
|
1325
|
-
// a div that has a div after it
|
|
1326
|
-
'& > div:has(+ div)::after': {
|
|
1327
|
-
display: 'block',
|
|
1328
|
-
content: '"¶"',
|
|
1329
|
-
fontSize: '1em',
|
|
1330
|
-
color: '#146EB3'
|
|
1331
|
-
}
|
|
1332
|
-
},
|
|
1333
|
-
separateParagraph: {
|
|
1334
|
-
// a div that has a div after it
|
|
1335
|
-
'& > div:has(+ div)': {
|
|
1336
|
-
marginBottom: '1em'
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
toolbarOnTop: {
|
|
1340
|
-
marginTop: '45px'
|
|
1341
|
-
},
|
|
1342
|
-
noPadding: {
|
|
1343
|
-
padding: '0 !important'
|
|
1344
|
-
},
|
|
1345
|
-
previewText: {
|
|
1346
|
-
marginBottom: '36px',
|
|
1347
|
-
marginTop: '6px',
|
|
1348
|
-
padding: '20px',
|
|
1349
|
-
backgroundColor: 'rgba(0,0,0,0.06)'
|
|
1350
|
-
}
|
|
1351
|
-
};
|
|
1352
|
-
|
|
1353
|
-
var _default = (0, _styles.withStyles)(styles)(Editor);
|
|
1354
|
-
|
|
1355
|
-
exports["default"] = _default;
|
|
1356
|
-
//# sourceMappingURL=editor.js.map
|