@pie-element/math-templated 3.2.1-next.0 → 3.2.1-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/configure/package.json +1 -1
- package/controller/package.json +1 -1
- package/module/configure.js +1 -1
- package/module/element.js +4 -5
- package/module/manifest.json +1 -1
- package/module/print.js +4 -5
- package/package.json +3 -3
package/configure/package.json
CHANGED
package/controller/package.json
CHANGED
package/module/configure.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.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_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.0
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.1.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;
|
package/module/element.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.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.0
|
|
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.1.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) {
|
|
@@ -105003,7 +105003,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
105003
105003
|
}
|
|
105004
105004
|
builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
105005
105005
|
});
|
|
105006
|
-
return (0, _compact["default"])([
|
|
105006
|
+
return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
|
|
105007
105007
|
key: 'b',
|
|
105008
105008
|
type: 'bold',
|
|
105009
105009
|
icon: _react$1a["default"].createElement(_FormatBold["default"], null),
|
|
@@ -105053,7 +105053,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
105053
105053
|
icon: _react$1a["default"].createElement(_FormatListNumbered["default"], null)
|
|
105054
105054
|
})), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
105055
105055
|
shift: true
|
|
105056
|
-
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), cssPlugin, addIf('html', (0, _html["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
105056
|
+
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), cssPlugin, addIf('html', (0, _html["default"])(opts.html)), EnterHandlingPlugin(), (0, _rendering["default"])()]));
|
|
105057
105057
|
};
|
|
105058
105058
|
plugins.buildPlugins = buildPlugins;
|
|
105059
105059
|
var require$$26 = getAugmentedNamespace(slatePlainSerializer_es);
|
|
@@ -113738,8 +113738,7 @@ const require$$24 = _dll_classnames;
|
|
|
113738
113738
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderPlaceholder", function (props) {
|
|
113739
113739
|
var editor = props.editor;
|
|
113740
113740
|
var document = editor.value.document;
|
|
113741
|
-
|
|
113742
|
-
if (!editor.props.placeholder || document.text !== '' || document.nodes.size !== 1 || !document.isEmpty || stateValue.isFocused) {
|
|
113741
|
+
if (!editor.props.placeholder || document.text !== '' || document.nodes.size !== 1 || !document.isEmpty) {
|
|
113743
113742
|
return false;
|
|
113744
113743
|
}
|
|
113745
113744
|
return _react["default"].createElement("span", {
|
package/module/manifest.json
CHANGED
package/module/print.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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, _dll_pie_lib__pie_toolbox_math_rendering_accessible} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.1.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.0
|
|
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.1.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) {
|
|
@@ -104966,7 +104966,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
104966
104966
|
}
|
|
104967
104967
|
builtCustomPlugins.push((0, _customPlugin["default"])('custom-plugin', customPlugin));
|
|
104968
104968
|
});
|
|
104969
|
-
return (0, _compact["default"])([
|
|
104969
|
+
return (0, _compact["default"])([addIf('table', (0, _table["default"])(opts.table, (0, _compact["default"])(tablePlugins))), addIf('bold', MarkHotkey({
|
|
104970
104970
|
key: 'b',
|
|
104971
104971
|
type: 'bold',
|
|
104972
104972
|
icon: _react$1a["default"].createElement(_FormatBold["default"], null),
|
|
@@ -105016,7 +105016,7 @@ var buildPlugins = function buildPlugins(activePlugins, customPlugins, opts) {
|
|
|
105016
105016
|
icon: _react$1a["default"].createElement(_FormatListNumbered["default"], null)
|
|
105017
105017
|
})), addIf('undo', UndoRedo('undo')), addIf('redo', UndoRedo('redo')), (0, _toolbar["default"])(opts.toolbar), (0, _slateSoftBreak["default"])({
|
|
105018
105018
|
shift: true
|
|
105019
|
-
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), cssPlugin, addIf('html', (0, _html["default"])(opts.html)), EnterHandlingPlugin()]));
|
|
105019
|
+
})], builtCustomPlugins, [addIf('responseArea', respAreaPlugin), cssPlugin, addIf('html', (0, _html["default"])(opts.html)), EnterHandlingPlugin(), (0, _rendering["default"])()]));
|
|
105020
105020
|
};
|
|
105021
105021
|
plugins.buildPlugins = buildPlugins;
|
|
105022
105022
|
var require$$26 = getAugmentedNamespace(slatePlainSerializer_es);
|
|
@@ -113701,8 +113701,7 @@ const require$$24 = _dll_classnames;
|
|
|
113701
113701
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "renderPlaceholder", function (props) {
|
|
113702
113702
|
var editor = props.editor;
|
|
113703
113703
|
var document = editor.value.document;
|
|
113704
|
-
|
|
113705
|
-
if (!editor.props.placeholder || document.text !== '' || document.nodes.size !== 1 || !document.isEmpty || stateValue.isFocused) {
|
|
113704
|
+
if (!editor.props.placeholder || document.text !== '' || document.nodes.size !== 1 || !document.isEmpty) {
|
|
113706
113705
|
return false;
|
|
113707
113706
|
}
|
|
113708
113707
|
return _react["default"].createElement("span", {
|
package/package.json
CHANGED
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"repository": "pie-framework/pie-elements",
|
|
7
|
-
"version": "3.2.1-next.
|
|
7
|
+
"version": "3.2.1-next.3+db03ac747",
|
|
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.1.
|
|
12
|
+
"@pie-lib/pie-toolbox": "2.1.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": "
|
|
19
|
+
"gitHead": "db03ac7473960cedef2c83c79920e77db06f605d",
|
|
20
20
|
"scripts": {
|
|
21
21
|
"postpublish": "../../scripts/postpublish"
|
|
22
22
|
},
|