@pie-element/math-templated 3.4.7-next.20 → 3.4.7-next.27

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.
@@ -8,7 +8,7 @@
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.10.0",
11
+ "@pie-lib/pie-toolbox": "2.10.1",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -7,7 +7,7 @@
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@pie-framework/math-validation": "^1.2.3",
10
- "@pie-lib/pie-toolbox": "2.10.0",
10
+ "@pie-lib/pie-toolbox": "2.10.1",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.5/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.10.5/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.11.0/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -125523,10 +125523,15 @@ const {omit: require$$13$1} = _dll_lodash;
125523
125523
  (0, _createClass2["default"])(UiLayout, [{
125524
125524
  key: "computeStyle",
125525
125525
  value: function computeStyle(fontSizeFactor) {
125526
- var rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
125527
- return {
125528
- fontSize: ("").concat(rootFontSize * fontSizeFactor, "px")
125526
+ var getFontSize = function getFontSize(element) {
125527
+ return parseFloat(getComputedStyle(element).fontSize);
125529
125528
  };
125529
+ var rootFontSize = getFontSize(document.documentElement);
125530
+ var bodyFontSize = getFontSize(document.body);
125531
+ var effectiveFontSize = Math.max(rootFontSize, bodyFontSize);
125532
+ return fontSizeFactor !== 1 ? {
125533
+ fontSize: ("").concat(effectiveFontSize * fontSizeFactor, "px")
125534
+ } : null;
125530
125535
  }
125531
125536
  }, {
125532
125537
  key: "render",
@@ -125534,11 +125539,12 @@ const {omit: require$$13$1} = _dll_lodash;
125534
125539
  var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, fontSizeFactor = _this$props.fontSizeFactor, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
125535
125540
  var finalClass = (0, _classnames["default"])(className, classes.extraCSSRules, classes.uiLayoutContainer);
125536
125541
  var restProps = (0, _omit["default"])(rest, 'extraCSSRules');
125542
+ var style = this.computeStyle(fontSizeFactor);
125537
125543
  return _react["default"].createElement("div", (0, _extends2["default"])({
125538
125544
  className: finalClass
125539
- }, restProps, {
125540
- style: this.computeStyle(fontSizeFactor)
125541
- }), children);
125545
+ }, restProps, style && ({
125546
+ style: style
125547
+ })), children);
125542
125548
  }
125543
125549
  }]);
125544
125550
  return UiLayout;
package/module/element.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.5/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.5/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.11.0/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) {
@@ -21862,7 +21862,7 @@ const require$$14$5 = _dll_classnames;
21862
21862
  return {
21863
21863
  spacer: {
21864
21864
  display: 'inline-block',
21865
- width: '1.5em'
21865
+ width: '.75em'
21866
21866
  }
21867
21867
  };
21868
21868
  })(function (props) {
@@ -21889,7 +21889,7 @@ const require$$14$5 = _dll_classnames;
21889
21889
  }
21890
21890
  return null;
21891
21891
  };
21892
- var renderChildren = function renderChildren(layout, value, onChange, rootRenderChildren, parentNode) {
21892
+ var renderChildren = function renderChildren(layout, value, onChange, rootRenderChildren, parentNode, elementType) {
21893
21893
  if (!value) {
21894
21894
  return null;
21895
21895
  }
@@ -21908,7 +21908,7 @@ const require$$14$5 = _dll_classnames;
21908
21908
  var c = rootRenderChildren(n, value, onChange);
21909
21909
  if (c) {
21910
21910
  children.push(c);
21911
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
21911
+ if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td' && elementType === 'drag-in-the-blank') {
21912
21912
  children.push(_react["default"].createElement(Spacer, {
21913
21913
  key: ("spacer-").concat(index)
21914
21914
  }));
@@ -21936,9 +21936,14 @@ const require$$14$5 = _dll_classnames;
21936
21936
  }
21937
21937
  } else if (content.length > 0) {
21938
21938
  children.push(content);
21939
+ if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td' && elementType === 'drag-in-the-blank') {
21940
+ children.push(_react["default"].createElement(Spacer, {
21941
+ key: ("spacer-").concat(index)
21942
+ }));
21943
+ }
21939
21944
  }
21940
21945
  } else {
21941
- var subNodes = renderChildren(n, value, onChange, rootRenderChildren, n);
21946
+ var subNodes = renderChildren(n, value, onChange, rootRenderChildren, n, elementType);
21942
21947
  if (n.type === 'p' || n.type === 'paragraph') {
21943
21948
  children.push(_react["default"].createElement(Paragraph, {
21944
21949
  key: key
@@ -21999,8 +22004,8 @@ const require$$14$5 = _dll_classnames;
21999
22004
  (0, _createClass2["default"])(Mask, [{
22000
22005
  key: "render",
22001
22006
  value: function render() {
22002
- var _this$props = this.props, value = _this$props.value, layout = _this$props.layout;
22003
- var children = renderChildren(layout, value, this.handleChange, this.props.renderChildren);
22007
+ var _this$props = this.props, value = _this$props.value, layout = _this$props.layout, elementType = _this$props.elementType;
22008
+ var children = renderChildren(layout, value, this.handleChange, this.props.renderChildren, null, elementType);
22004
22009
  return _react["default"].createElement(MaskContainer, null, children);
22005
22010
  }
22006
22011
  }]);
@@ -22011,7 +22016,8 @@ const require$$14$5 = _dll_classnames;
22011
22016
  renderChildren: _propTypes["default"].func,
22012
22017
  layout: _propTypes["default"].object,
22013
22018
  value: _propTypes["default"].object,
22014
- onChange: _propTypes["default"].func
22019
+ onChange: _propTypes["default"].func,
22020
+ elementType: _propTypes["default"].string
22015
22021
  });
22016
22022
  })(mask);
22017
22023
  getDefaultExportFromCjs(mask);
@@ -22117,9 +22123,10 @@ var withMask = function withMask(type, renderChildren) {
22117
22123
  }, {
22118
22124
  key: "render",
22119
22125
  value: function render() {
22120
- var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange;
22126
+ var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange, elementType = _this$props.elementType;
22121
22127
  var maskLayout = layout ? layout : buildLayoutFromMarkup(markup, type);
22122
22128
  return _react$2F["default"].createElement(_mask["default"], {
22129
+ elementType: elementType,
22123
22130
  layout: maskLayout,
22124
22131
  value: value,
22125
22132
  onChange: onChange,
@@ -141328,10 +141335,15 @@ const {omit: require$$13$7} = _dll_lodash;
141328
141335
  (0, _createClass2["default"])(UiLayout, [{
141329
141336
  key: "computeStyle",
141330
141337
  value: function computeStyle(fontSizeFactor) {
141331
- var rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
141332
- return {
141333
- fontSize: ("").concat(rootFontSize * fontSizeFactor, "px")
141338
+ var getFontSize = function getFontSize(element) {
141339
+ return parseFloat(getComputedStyle(element).fontSize);
141334
141340
  };
141341
+ var rootFontSize = getFontSize(document.documentElement);
141342
+ var bodyFontSize = getFontSize(document.body);
141343
+ var effectiveFontSize = Math.max(rootFontSize, bodyFontSize);
141344
+ return fontSizeFactor !== 1 ? {
141345
+ fontSize: ("").concat(effectiveFontSize * fontSizeFactor, "px")
141346
+ } : null;
141335
141347
  }
141336
141348
  }, {
141337
141349
  key: "render",
@@ -141339,11 +141351,12 @@ const {omit: require$$13$7} = _dll_lodash;
141339
141351
  var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, fontSizeFactor = _this$props.fontSizeFactor, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
141340
141352
  var finalClass = (0, _classnames["default"])(className, classes.extraCSSRules, classes.uiLayoutContainer);
141341
141353
  var restProps = (0, _omit["default"])(rest, 'extraCSSRules');
141354
+ var style = this.computeStyle(fontSizeFactor);
141342
141355
  return _react["default"].createElement("div", (0, _extends2["default"])({
141343
141356
  className: finalClass
141344
- }, restProps, {
141345
- style: this.computeStyle(fontSizeFactor)
141346
- }), children);
141357
+ }, restProps, style && ({
141358
+ style: style
141359
+ })), children);
141347
141360
  }
141348
141361
  }]);
141349
141362
  return UiLayout;
@@ -147149,6 +147162,7 @@ const require$$9$A = _dll_prop_types;
147149
147162
  value: value,
147150
147163
  disabled: disabled
147151
147164
  }), _react["default"].createElement(Masked, {
147165
+ elementType: 'drag-in-the-blank',
147152
147166
  markup: markup,
147153
147167
  layout: layout,
147154
147168
  value: value,
@@ -175509,6 +175523,7 @@ const require$$3$6 = _dll_prop_types;
175509
175523
  return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
175510
175524
  style: {
175511
175525
  display: 'inline-flex',
175526
+ visibility: props.isFocused ? 'hidden' : 'visible',
175512
175527
  minHeight: '55px',
175513
175528
  minWidth: '178px',
175514
175529
  position: 'relative',
@@ -175536,7 +175551,8 @@ const require$$3$6 = _dll_prop_types;
175536
175551
  ExplicitConstructedResponse.propTypes = {
175537
175552
  attributes: _propTypes["default"].object,
175538
175553
  error: _propTypes["default"].any,
175539
- value: _propTypes["default"].string
175554
+ value: _propTypes["default"].string,
175555
+ isFocused: _propTypes["default"].bool
175540
175556
  };
175541
175557
  var _default = ExplicitConstructedResponse;
175542
175558
  exports["default"] = _default;
@@ -175862,7 +175878,7 @@ const {isUndefined: require$$3$4} = _dll_lodash;
175862
175878
  onChange(change);
175863
175879
  },
175864
175880
  renderNode: function renderNode(props) {
175865
- var attributes = props.attributes, n = props.node;
175881
+ var attributes = props.attributes, n = props.node, isFocused = props.isFocused;
175866
175882
  if (n.type === 'explicit_constructed_response') {
175867
175883
  var data = n.data.toJSON();
175868
175884
  var error;
@@ -175871,6 +175887,7 @@ const {isUndefined: require$$3$4} = _dll_lodash;
175871
175887
  }
175872
175888
  return _react["default"].createElement(_explicitConstructedResponse["default"], {
175873
175889
  attributes: attributes,
175890
+ isFocused: isFocused,
175874
175891
  value: data.value,
175875
175892
  error: error && error[data.index] && error[data.index][0]
175876
175893
  });
@@ -180292,6 +180309,11 @@ const require$$21 = _dll_debug;
180292
180309
  },
180293
180310
  '& table:not([border="1"]) td, th': {
180294
180311
  border: '1px solid #dfe2e5'
180312
+ },
180313
+ '& > div::after': {
180314
+ display: 'block',
180315
+ content: '"¶"',
180316
+ color: '#146EB3'
180295
180317
  }
180296
180318
  },
180297
180319
  toolbarOnTop: {
@@ -4,11 +4,11 @@
4
4
  "modules": [
5
5
  {
6
6
  "name": "@pie-lib/pie-toolbox-math-rendering-module",
7
- "version": "3.3.5"
7
+ "version": "3.4.0"
8
8
  },
9
9
  {
10
10
  "name": "@pie-lib/pie-toolbox-module",
11
- "version": "5.10.5"
11
+ "version": "5.11.0"
12
12
  }
13
13
  ]
14
14
  }
package/module/print.js CHANGED
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.5/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.10.5/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill, _dll_pie_lib__pie_toolbox_math_rendering} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.4.0/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_math_input, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_correct_answer_toggle} from "../../../@pie-lib/pie-toolbox-module@5.11.0/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) {
@@ -21825,7 +21825,7 @@ const require$$14$5 = _dll_classnames;
21825
21825
  return {
21826
21826
  spacer: {
21827
21827
  display: 'inline-block',
21828
- width: '1.5em'
21828
+ width: '.75em'
21829
21829
  }
21830
21830
  };
21831
21831
  })(function (props) {
@@ -21852,7 +21852,7 @@ const require$$14$5 = _dll_classnames;
21852
21852
  }
21853
21853
  return null;
21854
21854
  };
21855
- var renderChildren = function renderChildren(layout, value, onChange, rootRenderChildren, parentNode) {
21855
+ var renderChildren = function renderChildren(layout, value, onChange, rootRenderChildren, parentNode, elementType) {
21856
21856
  if (!value) {
21857
21857
  return null;
21858
21858
  }
@@ -21871,7 +21871,7 @@ const require$$14$5 = _dll_classnames;
21871
21871
  var c = rootRenderChildren(n, value, onChange);
21872
21872
  if (c) {
21873
21873
  children.push(c);
21874
- if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td') {
21874
+ if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td' && elementType === 'drag-in-the-blank') {
21875
21875
  children.push(_react["default"].createElement(Spacer, {
21876
21876
  key: ("spacer-").concat(index)
21877
21877
  }));
@@ -21899,9 +21899,14 @@ const require$$14$5 = _dll_classnames;
21899
21899
  }
21900
21900
  } else if (content.length > 0) {
21901
21901
  children.push(content);
21902
+ if ((parentNode === null || parentNode === void 0 ? void 0 : parentNode.type) !== 'td' && elementType === 'drag-in-the-blank') {
21903
+ children.push(_react["default"].createElement(Spacer, {
21904
+ key: ("spacer-").concat(index)
21905
+ }));
21906
+ }
21902
21907
  }
21903
21908
  } else {
21904
- var subNodes = renderChildren(n, value, onChange, rootRenderChildren, n);
21909
+ var subNodes = renderChildren(n, value, onChange, rootRenderChildren, n, elementType);
21905
21910
  if (n.type === 'p' || n.type === 'paragraph') {
21906
21911
  children.push(_react["default"].createElement(Paragraph, {
21907
21912
  key: key
@@ -21962,8 +21967,8 @@ const require$$14$5 = _dll_classnames;
21962
21967
  (0, _createClass2["default"])(Mask, [{
21963
21968
  key: "render",
21964
21969
  value: function render() {
21965
- var _this$props = this.props, value = _this$props.value, layout = _this$props.layout;
21966
- var children = renderChildren(layout, value, this.handleChange, this.props.renderChildren);
21970
+ var _this$props = this.props, value = _this$props.value, layout = _this$props.layout, elementType = _this$props.elementType;
21971
+ var children = renderChildren(layout, value, this.handleChange, this.props.renderChildren, null, elementType);
21967
21972
  return _react["default"].createElement(MaskContainer, null, children);
21968
21973
  }
21969
21974
  }]);
@@ -21974,7 +21979,8 @@ const require$$14$5 = _dll_classnames;
21974
21979
  renderChildren: _propTypes["default"].func,
21975
21980
  layout: _propTypes["default"].object,
21976
21981
  value: _propTypes["default"].object,
21977
- onChange: _propTypes["default"].func
21982
+ onChange: _propTypes["default"].func,
21983
+ elementType: _propTypes["default"].string
21978
21984
  });
21979
21985
  })(mask);
21980
21986
  getDefaultExportFromCjs(mask);
@@ -22080,9 +22086,10 @@ var withMask = function withMask(type, renderChildren) {
22080
22086
  }, {
22081
22087
  key: "render",
22082
22088
  value: function render() {
22083
- var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange;
22089
+ var _this$props = this.props, markup = _this$props.markup, layout = _this$props.layout, value = _this$props.value, onChange = _this$props.onChange, elementType = _this$props.elementType;
22084
22090
  var maskLayout = layout ? layout : buildLayoutFromMarkup(markup, type);
22085
22091
  return _react$2F["default"].createElement(_mask["default"], {
22092
+ elementType: elementType,
22086
22093
  layout: maskLayout,
22087
22094
  value: value,
22088
22095
  onChange: onChange,
@@ -141291,10 +141298,15 @@ const {omit: require$$13$7} = _dll_lodash;
141291
141298
  (0, _createClass2["default"])(UiLayout, [{
141292
141299
  key: "computeStyle",
141293
141300
  value: function computeStyle(fontSizeFactor) {
141294
- var rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
141295
- return {
141296
- fontSize: ("").concat(rootFontSize * fontSizeFactor, "px")
141301
+ var getFontSize = function getFontSize(element) {
141302
+ return parseFloat(getComputedStyle(element).fontSize);
141297
141303
  };
141304
+ var rootFontSize = getFontSize(document.documentElement);
141305
+ var bodyFontSize = getFontSize(document.body);
141306
+ var effectiveFontSize = Math.max(rootFontSize, bodyFontSize);
141307
+ return fontSizeFactor !== 1 ? {
141308
+ fontSize: ("").concat(effectiveFontSize * fontSizeFactor, "px")
141309
+ } : null;
141298
141310
  }
141299
141311
  }, {
141300
141312
  key: "render",
@@ -141302,11 +141314,12 @@ const {omit: require$$13$7} = _dll_lodash;
141302
141314
  var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, fontSizeFactor = _this$props.fontSizeFactor, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
141303
141315
  var finalClass = (0, _classnames["default"])(className, classes.extraCSSRules, classes.uiLayoutContainer);
141304
141316
  var restProps = (0, _omit["default"])(rest, 'extraCSSRules');
141317
+ var style = this.computeStyle(fontSizeFactor);
141305
141318
  return _react["default"].createElement("div", (0, _extends2["default"])({
141306
141319
  className: finalClass
141307
- }, restProps, {
141308
- style: this.computeStyle(fontSizeFactor)
141309
- }), children);
141320
+ }, restProps, style && ({
141321
+ style: style
141322
+ })), children);
141310
141323
  }
141311
141324
  }]);
141312
141325
  return UiLayout;
@@ -147112,6 +147125,7 @@ const require$$9$A = _dll_prop_types;
147112
147125
  value: value,
147113
147126
  disabled: disabled
147114
147127
  }), _react["default"].createElement(Masked, {
147128
+ elementType: 'drag-in-the-blank',
147115
147129
  markup: markup,
147116
147130
  layout: layout,
147117
147131
  value: value,
@@ -175472,6 +175486,7 @@ const require$$3$6 = _dll_prop_types;
175472
175486
  return _react["default"].createElement("span", (0, _extends2["default"])({}, attributes, {
175473
175487
  style: {
175474
175488
  display: 'inline-flex',
175489
+ visibility: props.isFocused ? 'hidden' : 'visible',
175475
175490
  minHeight: '55px',
175476
175491
  minWidth: '178px',
175477
175492
  position: 'relative',
@@ -175499,7 +175514,8 @@ const require$$3$6 = _dll_prop_types;
175499
175514
  ExplicitConstructedResponse.propTypes = {
175500
175515
  attributes: _propTypes["default"].object,
175501
175516
  error: _propTypes["default"].any,
175502
- value: _propTypes["default"].string
175517
+ value: _propTypes["default"].string,
175518
+ isFocused: _propTypes["default"].bool
175503
175519
  };
175504
175520
  var _default = ExplicitConstructedResponse;
175505
175521
  exports["default"] = _default;
@@ -175825,7 +175841,7 @@ const {isUndefined: require$$3$4} = _dll_lodash;
175825
175841
  onChange(change);
175826
175842
  },
175827
175843
  renderNode: function renderNode(props) {
175828
- var attributes = props.attributes, n = props.node;
175844
+ var attributes = props.attributes, n = props.node, isFocused = props.isFocused;
175829
175845
  if (n.type === 'explicit_constructed_response') {
175830
175846
  var data = n.data.toJSON();
175831
175847
  var error;
@@ -175834,6 +175850,7 @@ const {isUndefined: require$$3$4} = _dll_lodash;
175834
175850
  }
175835
175851
  return _react["default"].createElement(_explicitConstructedResponse["default"], {
175836
175852
  attributes: attributes,
175853
+ isFocused: isFocused,
175837
175854
  value: data.value,
175838
175855
  error: error && error[data.index] && error[data.index][0]
175839
175856
  });
@@ -180255,6 +180272,11 @@ const require$$21 = _dll_debug;
180255
180272
  },
180256
180273
  '& table:not([border="1"]) td, th': {
180257
180274
  border: '1px solid #dfe2e5'
180275
+ },
180276
+ '& > div::after': {
180277
+ display: 'block',
180278
+ content: '"¶"',
180279
+ color: '#146EB3'
180258
180280
  }
180259
180281
  },
180260
180282
  toolbarOnTop: {
package/package.json CHANGED
@@ -4,19 +4,19 @@
4
4
  "access": "public"
5
5
  },
6
6
  "repository": "pie-framework/pie-elements",
7
- "version": "3.4.7-next.20+7bbd8efd3",
7
+ "version": "3.4.7-next.27+622eab7fb",
8
8
  "description": "",
9
9
  "dependencies": {
10
10
  "@material-ui/core": "^3.9.2",
11
11
  "@pie-framework/pie-player-events": "^0.1.0",
12
- "@pie-lib/pie-toolbox": "2.10.0",
12
+ "@pie-lib/pie-toolbox": "2.10.1",
13
13
  "prop-types": "^15.6.1",
14
14
  "react": "^16.8.1",
15
15
  "react-dom": "^16.8.1"
16
16
  },
17
17
  "author": "",
18
18
  "license": "ISC",
19
- "gitHead": "7bbd8efd3949373ca6f7e92d8d21bf38f9fe5128",
19
+ "gitHead": "622eab7fb4903086040bebc83387e8628da1846e",
20
20
  "scripts": {
21
21
  "postpublish": "../../scripts/postpublish"
22
22
  },