@pie-element/complex-rubric 3.1.5-next.2 → 3.1.5-next.3
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/controller/package.json +1 -1
- package/module/configure.js +19 -14
- package/module/element.js +19 -14
- package/module/manifest.json +1 -1
- package/module/print.js +19 -14
- package/package.json +4 -4
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.0.13/module/index.js";
|
|
2
2
|
import RubricConfigure from '@pie-element/rubric/configure/lib';
|
|
3
|
-
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.
|
|
3
|
+
import {_dll_pie_lib__pie_toolbox_editable_html, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_config_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.12/module/index.js";
|
|
4
4
|
function _mergeNamespaces(n, m) {
|
|
5
5
|
m.forEach(function (e) {
|
|
6
6
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -97537,6 +97537,14 @@ const require$$10$q = _dll_debug;
|
|
|
97537
97537
|
}
|
|
97538
97538
|
}, pluginProps);
|
|
97539
97539
|
var filtered;
|
|
97540
|
+
var handleFocus = function handleFocus(event) {
|
|
97541
|
+
var _doneButtonRef$curren, _event$target;
|
|
97542
|
+
var doneButtonClassName = doneButtonRef === null || doneButtonRef === void 0 ? void 0 : (_doneButtonRef$curren = doneButtonRef.current) === null || _doneButtonRef$curren === void 0 ? void 0 : _doneButtonRef$curren.className;
|
|
97543
|
+
var isRawDoneButton = doneButtonClassName && ((_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest(("[class*=\"").concat(doneButtonClassName, "\"]")));
|
|
97544
|
+
if (onFocus && !isRawDoneButton) {
|
|
97545
|
+
onFocus(event);
|
|
97546
|
+
}
|
|
97547
|
+
};
|
|
97540
97548
|
if (isHtmlMode) {
|
|
97541
97549
|
filtered = plugins.filter(function (plugin) {
|
|
97542
97550
|
return isActiveToolbarPlugin(pluginProps)(plugin) && (plugin.name === 'characters' || plugin.name === 'html');
|
|
@@ -97550,7 +97558,7 @@ const require$$10$q = _dll_debug;
|
|
|
97550
97558
|
}
|
|
97551
97559
|
return _react["default"].createElement("div", {
|
|
97552
97560
|
className: classes.defaultToolbar,
|
|
97553
|
-
onFocus:
|
|
97561
|
+
onFocus: handleFocus,
|
|
97554
97562
|
tabIndex: "1",
|
|
97555
97563
|
onBlur: onBlur
|
|
97556
97564
|
}, _react["default"].createElement("div", {
|
|
@@ -105758,7 +105766,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
105758
105766
|
key: 'n',
|
|
105759
105767
|
type: 'ol_list',
|
|
105760
105768
|
icon: _react$1e["default"].createElement(_FormatListNumbered["default"], null)
|
|
105761
|
-
})), addIf('
|
|
105769
|
+
})), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
105762
105770
|
shift: true
|
|
105763
105771
|
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
105764
105772
|
};
|
|
@@ -114408,10 +114416,11 @@ const require$$23 = _dll_classnames;
|
|
|
114408
114416
|
}
|
|
114409
114417
|
});
|
|
114410
114418
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onBlur", function (event) {
|
|
114419
|
+
var _this$doneButtonRef$c;
|
|
114411
114420
|
log('[onBlur]');
|
|
114412
114421
|
var relatedTarget = event.relatedTarget;
|
|
114413
114422
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
114414
|
-
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.doneButtonRef.className, "\"]")));
|
|
114423
|
+
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, "\"]")));
|
|
114415
114424
|
_this.skipBlurHandling = _this.keypadInteractionDetected ? true : false;
|
|
114416
114425
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
114417
114426
|
_this.setState({
|
|
@@ -114732,12 +114741,13 @@ const require$$23 = _dll_classnames;
|
|
|
114732
114741
|
}
|
|
114733
114742
|
};
|
|
114734
114743
|
_this.keyPadCharacterRef = _react["default"].createRef();
|
|
114744
|
+
_this.doneButtonRef = _react["default"].createRef();
|
|
114735
114745
|
_this.keypadInteractionDetected = false;
|
|
114736
114746
|
_this.toggleHtmlMode = _this.toggleHtmlMode.bind((0, _assertThisInitialized2["default"])(_this));
|
|
114737
114747
|
_this.handleToolbarFocus = _this.handleToolbarFocus.bind((0, _assertThisInitialized2["default"])(_this));
|
|
114738
114748
|
_this.handleToolbarBlur = _this.handleToolbarBlur.bind((0, _assertThisInitialized2["default"])(_this));
|
|
114739
114749
|
_this.onResize = function () {
|
|
114740
|
-
if (!_this.state.isHtmlMode) {
|
|
114750
|
+
if (!_this.state.isHtmlMode && _props.onChange) {
|
|
114741
114751
|
_props.onChange(_this.state.value, true);
|
|
114742
114752
|
}
|
|
114743
114753
|
};
|
|
@@ -114889,11 +114899,7 @@ const require$$23 = _dll_classnames;
|
|
|
114889
114899
|
_this4.toolbarRef = r;
|
|
114890
114900
|
}
|
|
114891
114901
|
},
|
|
114892
|
-
doneButtonRef:
|
|
114893
|
-
if (r) {
|
|
114894
|
-
_this4.doneButtonRef = r;
|
|
114895
|
-
}
|
|
114896
|
-
},
|
|
114902
|
+
doneButtonRef: this.doneButtonRef,
|
|
114897
114903
|
value: value,
|
|
114898
114904
|
focusToolbar: this.state.focusToolbar,
|
|
114899
114905
|
onToolbarFocus: this.handleToolbarFocus,
|
|
@@ -115222,7 +115228,7 @@ const require$$15$2 = _dll_debug;
|
|
|
115222
115228
|
return false;
|
|
115223
115229
|
}
|
|
115224
115230
|
}
|
|
115225
|
-
|
|
115231
|
+
(0, _debug["default"])('@pie-lib:editable-html');
|
|
115226
115232
|
var EditableHtml = (function (_React$Component) {
|
|
115227
115233
|
(0, _inherits2["default"])(EditableHtml, _React$Component);
|
|
115228
115234
|
var _super = _createSuper(EditableHtml);
|
|
@@ -115242,11 +115248,10 @@ const require$$15$2 = _dll_debug;
|
|
|
115242
115248
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
|
|
115243
115249
|
var html = (0, _serialization.valueToHtml)(value);
|
|
115244
115250
|
var htmlParsed = (0, _parseHtml.parseDegrees)(html);
|
|
115245
|
-
|
|
115246
|
-
if (html !== _this.props.markup) {
|
|
115251
|
+
if (html !== _this.props.markup && _this.props.onChange) {
|
|
115247
115252
|
_this.props.onChange(htmlParsed);
|
|
115248
115253
|
}
|
|
115249
|
-
if (done) {
|
|
115254
|
+
if (done && _this.props.onDone) {
|
|
115250
115255
|
_this.props.onDone(htmlParsed);
|
|
115251
115256
|
}
|
|
115252
115257
|
});
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.0.13/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.12/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -87720,6 +87720,14 @@ const require$$10$r = _dll_debug;
|
|
|
87720
87720
|
}
|
|
87721
87721
|
}, pluginProps);
|
|
87722
87722
|
var filtered;
|
|
87723
|
+
var handleFocus = function handleFocus(event) {
|
|
87724
|
+
var _doneButtonRef$curren, _event$target;
|
|
87725
|
+
var doneButtonClassName = doneButtonRef === null || doneButtonRef === void 0 ? void 0 : (_doneButtonRef$curren = doneButtonRef.current) === null || _doneButtonRef$curren === void 0 ? void 0 : _doneButtonRef$curren.className;
|
|
87726
|
+
var isRawDoneButton = doneButtonClassName && ((_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest(("[class*=\"").concat(doneButtonClassName, "\"]")));
|
|
87727
|
+
if (onFocus && !isRawDoneButton) {
|
|
87728
|
+
onFocus(event);
|
|
87729
|
+
}
|
|
87730
|
+
};
|
|
87723
87731
|
if (isHtmlMode) {
|
|
87724
87732
|
filtered = plugins.filter(function (plugin) {
|
|
87725
87733
|
return isActiveToolbarPlugin(pluginProps)(plugin) && (plugin.name === 'characters' || plugin.name === 'html');
|
|
@@ -87733,7 +87741,7 @@ const require$$10$r = _dll_debug;
|
|
|
87733
87741
|
}
|
|
87734
87742
|
return _react["default"].createElement("div", {
|
|
87735
87743
|
className: classes.defaultToolbar,
|
|
87736
|
-
onFocus:
|
|
87744
|
+
onFocus: handleFocus,
|
|
87737
87745
|
tabIndex: "1",
|
|
87738
87746
|
onBlur: onBlur
|
|
87739
87747
|
}, _react["default"].createElement("div", {
|
|
@@ -104024,7 +104032,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
104024
104032
|
key: 'n',
|
|
104025
104033
|
type: 'ol_list',
|
|
104026
104034
|
icon: _react$1c["default"].createElement(_FormatListNumbered["default"], null)
|
|
104027
|
-
})), addIf('
|
|
104035
|
+
})), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
104028
104036
|
shift: true
|
|
104029
104037
|
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
104030
104038
|
};
|
|
@@ -112479,10 +112487,11 @@ const require$$23 = _dll_classnames;
|
|
|
112479
112487
|
}
|
|
112480
112488
|
});
|
|
112481
112489
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onBlur", function (event) {
|
|
112490
|
+
var _this$doneButtonRef$c;
|
|
112482
112491
|
log('[onBlur]');
|
|
112483
112492
|
var relatedTarget = event.relatedTarget;
|
|
112484
112493
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
112485
|
-
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.doneButtonRef.className, "\"]")));
|
|
112494
|
+
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, "\"]")));
|
|
112486
112495
|
_this.skipBlurHandling = _this.keypadInteractionDetected ? true : false;
|
|
112487
112496
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
112488
112497
|
_this.setState({
|
|
@@ -112803,12 +112812,13 @@ const require$$23 = _dll_classnames;
|
|
|
112803
112812
|
}
|
|
112804
112813
|
};
|
|
112805
112814
|
_this.keyPadCharacterRef = _react["default"].createRef();
|
|
112815
|
+
_this.doneButtonRef = _react["default"].createRef();
|
|
112806
112816
|
_this.keypadInteractionDetected = false;
|
|
112807
112817
|
_this.toggleHtmlMode = _this.toggleHtmlMode.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112808
112818
|
_this.handleToolbarFocus = _this.handleToolbarFocus.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112809
112819
|
_this.handleToolbarBlur = _this.handleToolbarBlur.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112810
112820
|
_this.onResize = function () {
|
|
112811
|
-
if (!_this.state.isHtmlMode) {
|
|
112821
|
+
if (!_this.state.isHtmlMode && _props.onChange) {
|
|
112812
112822
|
_props.onChange(_this.state.value, true);
|
|
112813
112823
|
}
|
|
112814
112824
|
};
|
|
@@ -112960,11 +112970,7 @@ const require$$23 = _dll_classnames;
|
|
|
112960
112970
|
_this4.toolbarRef = r;
|
|
112961
112971
|
}
|
|
112962
112972
|
},
|
|
112963
|
-
doneButtonRef:
|
|
112964
|
-
if (r) {
|
|
112965
|
-
_this4.doneButtonRef = r;
|
|
112966
|
-
}
|
|
112967
|
-
},
|
|
112973
|
+
doneButtonRef: this.doneButtonRef,
|
|
112968
112974
|
value: value,
|
|
112969
112975
|
focusToolbar: this.state.focusToolbar,
|
|
112970
112976
|
onToolbarFocus: this.handleToolbarFocus,
|
|
@@ -113293,7 +113299,7 @@ const require$$15$2 = _dll_debug;
|
|
|
113293
113299
|
return false;
|
|
113294
113300
|
}
|
|
113295
113301
|
}
|
|
113296
|
-
|
|
113302
|
+
(0, _debug["default"])('@pie-lib:editable-html');
|
|
113297
113303
|
var EditableHtml = (function (_React$Component) {
|
|
113298
113304
|
(0, _inherits2["default"])(EditableHtml, _React$Component);
|
|
113299
113305
|
var _super = _createSuper(EditableHtml);
|
|
@@ -113313,11 +113319,10 @@ const require$$15$2 = _dll_debug;
|
|
|
113313
113319
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
|
|
113314
113320
|
var html = (0, _serialization.valueToHtml)(value);
|
|
113315
113321
|
var htmlParsed = (0, _parseHtml.parseDegrees)(html);
|
|
113316
|
-
|
|
113317
|
-
if (html !== _this.props.markup) {
|
|
113322
|
+
if (html !== _this.props.markup && _this.props.onChange) {
|
|
113318
113323
|
_this.props.onChange(htmlParsed);
|
|
113319
113324
|
}
|
|
113320
|
-
if (done) {
|
|
113325
|
+
if (done && _this.props.onDone) {
|
|
113321
113326
|
_this.props.onDone(htmlParsed);
|
|
113322
113327
|
}
|
|
113323
113328
|
});
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_react_dom, _dll_classnames, _dll_debug, _dll_pie_lib__pie_toolbox_math_rendering_accessible, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.0.13/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.0.12/module/index.js";
|
|
3
3
|
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function (e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
@@ -87720,6 +87720,14 @@ const require$$10$r = _dll_debug;
|
|
|
87720
87720
|
}
|
|
87721
87721
|
}, pluginProps);
|
|
87722
87722
|
var filtered;
|
|
87723
|
+
var handleFocus = function handleFocus(event) {
|
|
87724
|
+
var _doneButtonRef$curren, _event$target;
|
|
87725
|
+
var doneButtonClassName = doneButtonRef === null || doneButtonRef === void 0 ? void 0 : (_doneButtonRef$curren = doneButtonRef.current) === null || _doneButtonRef$curren === void 0 ? void 0 : _doneButtonRef$curren.className;
|
|
87726
|
+
var isRawDoneButton = doneButtonClassName && ((_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.closest(("[class*=\"").concat(doneButtonClassName, "\"]")));
|
|
87727
|
+
if (onFocus && !isRawDoneButton) {
|
|
87728
|
+
onFocus(event);
|
|
87729
|
+
}
|
|
87730
|
+
};
|
|
87723
87731
|
if (isHtmlMode) {
|
|
87724
87732
|
filtered = plugins.filter(function (plugin) {
|
|
87725
87733
|
return isActiveToolbarPlugin(pluginProps)(plugin) && (plugin.name === 'characters' || plugin.name === 'html');
|
|
@@ -87733,7 +87741,7 @@ const require$$10$r = _dll_debug;
|
|
|
87733
87741
|
}
|
|
87734
87742
|
return _react["default"].createElement("div", {
|
|
87735
87743
|
className: classes.defaultToolbar,
|
|
87736
|
-
onFocus:
|
|
87744
|
+
onFocus: handleFocus,
|
|
87737
87745
|
tabIndex: "1",
|
|
87738
87746
|
onBlur: onBlur
|
|
87739
87747
|
}, _react["default"].createElement("div", {
|
|
@@ -104024,7 +104032,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
104024
104032
|
key: 'n',
|
|
104025
104033
|
type: 'ol_list',
|
|
104026
104034
|
icon: _react$1c["default"].createElement(_FormatListNumbered["default"], null)
|
|
104027
|
-
})), addIf('
|
|
104035
|
+
})), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
104028
104036
|
shift: true
|
|
104029
104037
|
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), addIf('html', (0, _html$1["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
104030
104038
|
};
|
|
@@ -112479,10 +112487,11 @@ const require$$23 = _dll_classnames;
|
|
|
112479
112487
|
}
|
|
112480
112488
|
});
|
|
112481
112489
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onBlur", function (event) {
|
|
112490
|
+
var _this$doneButtonRef$c;
|
|
112482
112491
|
log('[onBlur]');
|
|
112483
112492
|
var relatedTarget = event.relatedTarget;
|
|
112484
112493
|
var toolbarElement = _this.toolbarRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.toolbarRef.className, "\"]")));
|
|
112485
|
-
var isRawDoneButton = _this.doneButtonRef && (relatedTarget === null || relatedTarget === void 0 ? void 0 : relatedTarget.closest(("[class*=\"").concat(_this.doneButtonRef.className, "\"]")));
|
|
112494
|
+
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, "\"]")));
|
|
112486
112495
|
_this.skipBlurHandling = _this.keypadInteractionDetected ? true : false;
|
|
112487
112496
|
if (toolbarElement && !isRawDoneButton && !_this.state.focusToolbar) {
|
|
112488
112497
|
_this.setState({
|
|
@@ -112803,12 +112812,13 @@ const require$$23 = _dll_classnames;
|
|
|
112803
112812
|
}
|
|
112804
112813
|
};
|
|
112805
112814
|
_this.keyPadCharacterRef = _react["default"].createRef();
|
|
112815
|
+
_this.doneButtonRef = _react["default"].createRef();
|
|
112806
112816
|
_this.keypadInteractionDetected = false;
|
|
112807
112817
|
_this.toggleHtmlMode = _this.toggleHtmlMode.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112808
112818
|
_this.handleToolbarFocus = _this.handleToolbarFocus.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112809
112819
|
_this.handleToolbarBlur = _this.handleToolbarBlur.bind((0, _assertThisInitialized2["default"])(_this));
|
|
112810
112820
|
_this.onResize = function () {
|
|
112811
|
-
if (!_this.state.isHtmlMode) {
|
|
112821
|
+
if (!_this.state.isHtmlMode && _props.onChange) {
|
|
112812
112822
|
_props.onChange(_this.state.value, true);
|
|
112813
112823
|
}
|
|
112814
112824
|
};
|
|
@@ -112960,11 +112970,7 @@ const require$$23 = _dll_classnames;
|
|
|
112960
112970
|
_this4.toolbarRef = r;
|
|
112961
112971
|
}
|
|
112962
112972
|
},
|
|
112963
|
-
doneButtonRef:
|
|
112964
|
-
if (r) {
|
|
112965
|
-
_this4.doneButtonRef = r;
|
|
112966
|
-
}
|
|
112967
|
-
},
|
|
112973
|
+
doneButtonRef: this.doneButtonRef,
|
|
112968
112974
|
value: value,
|
|
112969
112975
|
focusToolbar: this.state.focusToolbar,
|
|
112970
112976
|
onToolbarFocus: this.handleToolbarFocus,
|
|
@@ -113293,7 +113299,7 @@ const require$$15$2 = _dll_debug;
|
|
|
113293
113299
|
return false;
|
|
113294
113300
|
}
|
|
113295
113301
|
}
|
|
113296
|
-
|
|
113302
|
+
(0, _debug["default"])('@pie-lib:editable-html');
|
|
113297
113303
|
var EditableHtml = (function (_React$Component) {
|
|
113298
113304
|
(0, _inherits2["default"])(EditableHtml, _React$Component);
|
|
113299
113305
|
var _super = _createSuper(EditableHtml);
|
|
@@ -113313,11 +113319,10 @@ const require$$15$2 = _dll_debug;
|
|
|
113313
113319
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onChange", function (value, done) {
|
|
113314
113320
|
var html = (0, _serialization.valueToHtml)(value);
|
|
113315
113321
|
var htmlParsed = (0, _parseHtml.parseDegrees)(html);
|
|
113316
|
-
|
|
113317
|
-
if (html !== _this.props.markup) {
|
|
113322
|
+
if (html !== _this.props.markup && _this.props.onChange) {
|
|
113318
113323
|
_this.props.onChange(htmlParsed);
|
|
113319
113324
|
}
|
|
113320
|
-
if (done) {
|
|
113325
|
+
if (done && _this.props.onDone) {
|
|
113321
113326
|
_this.props.onDone(htmlParsed);
|
|
113322
113327
|
}
|
|
113323
113328
|
});
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric",
|
|
3
3
|
"repository": "pie-framework/pie-elements",
|
|
4
|
-
"version": "3.1.5-next.
|
|
4
|
+
"version": "3.1.5-next.3+08eac95fd",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@material-ui/core": "^3.9.2",
|
|
10
|
-
"@pie-element/multi-trait-rubric": "^4.1.5-next.
|
|
11
|
-
"@pie-element/rubric": "^4.1.5-next.
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.1.5-next.3+08eac95fd",
|
|
11
|
+
"@pie-element/rubric": "^4.1.5-next.3+08eac95fd",
|
|
12
12
|
"@pie-framework/pie-player-events": "^0.1.0",
|
|
13
13
|
"classnames": "^2.2.5",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.11",
|
|
16
16
|
"prop-types": "^15.7.2"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "08eac95fd3e1a79b420fbc88cd0c7436ba284c3c",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|