@pie-element/complex-rubric 3.4.4-next.5 → 3.4.4
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 +11 -0
- package/configure/CHANGELOG.md +8 -0
- package/configure/package.json +3 -3
- package/controller/CHANGELOG.md +11 -0
- package/controller/package.json +2 -2
- package/module/configure.js +53 -15
- package/module/element.js +53 -15
- package/module/manifest.json +1 -1
- package/module/print.js +53 -15
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.4.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.4.3...@pie-element/complex-rubric@3.4.4) (2025-02-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4168, PD-4723 ([921f1bf](https://github.com/pie-framework/pie-elements/commit/921f1bfff211979c859821bb15c369327cfacdf7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.4.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric@3.4.2...@pie-element/complex-rubric@3.4.3) (2025-02-14)
|
|
7
18
|
|
|
8
19
|
|
package/configure/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.5.4](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.5.3...@pie-element/complex-rubric-configure@2.5.4) (2025-02-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.5.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-configure@2.5.2...@pie-element/complex-rubric-configure@2.5.3) (2025-02-14)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @pie-element/complex-rubric-configure
|
package/configure/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-configure",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "2.5.
|
|
4
|
+
"version": "2.5.4",
|
|
5
5
|
"description": "Complex Rubric authoring view",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "src/index.js",
|
|
8
8
|
"author": "Pie Framework Authors",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@material-ui/core": "^3.9.2",
|
|
11
|
-
"@pie-element/multi-trait-rubric": "^4.3.
|
|
12
|
-
"@pie-element/rubric": "^4.4.
|
|
11
|
+
"@pie-element/multi-trait-rubric": "^4.3.4",
|
|
12
|
+
"@pie-element/rubric": "^4.4.4",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
14
|
"debug": "^4.1.1",
|
|
15
15
|
"lodash": "^4.17.15",
|
package/controller/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.0.22](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.21...@pie-element/complex-rubric-controller@3.0.22) (2025-02-19)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update pie-lib/pie-toolbox PD-4168, PD-4723 ([921f1bf](https://github.com/pie-framework/pie-elements/commit/921f1bfff211979c859821bb15c369327cfacdf7))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [3.0.21](https://github.com/pie-framework/pie-elements/compare/@pie-element/complex-rubric-controller@3.0.20...@pie-element/complex-rubric-controller@3.0.21) (2025-02-14)
|
|
7
18
|
|
|
8
19
|
|
package/controller/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-element/complex-rubric-controller",
|
|
3
3
|
"private": true,
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.22",
|
|
5
5
|
"description": "",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@pie-lib/pie-toolbox": "2.9.
|
|
10
|
+
"@pie-lib/pie-toolbox": "2.9.3",
|
|
11
11
|
"lodash": "^4.17.15"
|
|
12
12
|
},
|
|
13
13
|
"author": "",
|
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@3.3.2/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.10.
|
|
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.10.2/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) {
|
|
@@ -126864,7 +126864,7 @@ const require$$11$G = _dll_prop_types;
|
|
|
126864
126864
|
},
|
|
126865
126865
|
label: {
|
|
126866
126866
|
color: ("").concat(color.text(), " !important"),
|
|
126867
|
-
display: '
|
|
126867
|
+
display: 'flex',
|
|
126868
126868
|
verticalAlign: 'middle',
|
|
126869
126869
|
cursor: 'pointer',
|
|
126870
126870
|
'& > p': {
|
|
@@ -177874,36 +177874,74 @@ var reduceRedundantNewLineCharacters = function reduceRedundantNewLineCharacters
|
|
|
177874
177874
|
}
|
|
177875
177875
|
return markup;
|
|
177876
177876
|
};
|
|
177877
|
-
var
|
|
177878
|
-
var
|
|
177879
|
-
|
|
177877
|
+
var fixHtmlCode = function fixHtmlCode(markup) {
|
|
177878
|
+
var wrapperEl = document.createElement('div');
|
|
177879
|
+
wrapperEl.innerHTML = markup;
|
|
177880
|
+
var fixParagraphs = function fixParagraphs(child) {
|
|
177881
|
+
var p = document.createElement('p');
|
|
177882
|
+
p.innerHTML = child.innerHTML;
|
|
177883
|
+
Array.from(child.attributes).forEach(function (attr) {
|
|
177884
|
+
p.setAttribute(attr.name, attr.value);
|
|
177885
|
+
});
|
|
177886
|
+
child.replaceWith(p);
|
|
177887
|
+
};
|
|
177888
|
+
var fixTables = function fixTables(tableArray) {
|
|
177889
|
+
tableArray.forEach(function (el) {
|
|
177890
|
+
var index = el.index, child = el.child, parent = el.parent;
|
|
177891
|
+
var nodesBefore = [];
|
|
177892
|
+
var nodesAfter = [];
|
|
177893
|
+
var allNodes = Array.from(parent.childNodes);
|
|
177894
|
+
var i;
|
|
177895
|
+
for (i = 0; i < allNodes.length; i++) {
|
|
177896
|
+
var node = allNodes[i];
|
|
177897
|
+
if (i < index) {
|
|
177898
|
+
nodesBefore.push(node);
|
|
177899
|
+
} else if (i > index) {
|
|
177900
|
+
nodesAfter.push(node);
|
|
177901
|
+
}
|
|
177902
|
+
}
|
|
177903
|
+
var beforeEl = document.createElement(parent.nodeName);
|
|
177904
|
+
beforeEl.append.apply(beforeEl, nodesBefore);
|
|
177905
|
+
parent.replaceWith(beforeEl);
|
|
177906
|
+
beforeEl.after(child);
|
|
177907
|
+
var afterEl = document.createElement(parent.nodeName);
|
|
177908
|
+
afterEl.append.apply(afterEl, nodesAfter);
|
|
177909
|
+
child.after(afterEl);
|
|
177910
|
+
});
|
|
177911
|
+
};
|
|
177880
177912
|
var parseNode = function parseNode(el) {
|
|
177881
|
-
var childArray = Array.from(el.
|
|
177913
|
+
var childArray = Array.from(el.childNodes);
|
|
177882
177914
|
var hasParagraphs = childArray.find(function (child) {
|
|
177883
177915
|
return child.nodeName === 'P';
|
|
177884
177916
|
});
|
|
177885
|
-
|
|
177917
|
+
var tables = [];
|
|
177918
|
+
childArray.forEach(function (child, index) {
|
|
177886
177919
|
if ((child.nodeName === 'DIV' || child.nodeName === 'P') && child.childNodes.length === 0) {
|
|
177887
177920
|
child.remove();
|
|
177888
177921
|
return;
|
|
177889
177922
|
}
|
|
177890
177923
|
if (hasParagraphs && child.nodeName === 'DIV') {
|
|
177891
|
-
|
|
177892
|
-
|
|
177893
|
-
|
|
177894
|
-
|
|
177924
|
+
fixParagraphs(child);
|
|
177925
|
+
}
|
|
177926
|
+
if (wrapperEl !== el && child.nodeName === 'TABLE') {
|
|
177927
|
+
tables.push({
|
|
177928
|
+
index: index,
|
|
177929
|
+
child: child,
|
|
177930
|
+
parent: el
|
|
177895
177931
|
});
|
|
177896
|
-
child.replaceWith(p);
|
|
177897
177932
|
}
|
|
177898
177933
|
parseNode(child);
|
|
177899
177934
|
});
|
|
177935
|
+
if (tables.length) {
|
|
177936
|
+
fixTables(tables);
|
|
177937
|
+
}
|
|
177900
177938
|
};
|
|
177901
|
-
parseNode(
|
|
177902
|
-
return
|
|
177939
|
+
parseNode(wrapperEl);
|
|
177940
|
+
return wrapperEl.innerHTML;
|
|
177903
177941
|
};
|
|
177904
177942
|
var htmlToValue = function htmlToValue(html) {
|
|
177905
177943
|
try {
|
|
177906
|
-
return serializer.deserialize(
|
|
177944
|
+
return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
|
|
177907
177945
|
} catch (e) {
|
|
177908
177946
|
console.log("Couldn't parse html: ", e);
|
|
177909
177947
|
return {};
|
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, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.2/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.2/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) {
|
|
@@ -142827,7 +142827,7 @@ const require$$11$B = _dll_prop_types;
|
|
|
142827
142827
|
},
|
|
142828
142828
|
label: {
|
|
142829
142829
|
color: ("").concat(color$1.text(), " !important"),
|
|
142830
|
-
display: '
|
|
142830
|
+
display: 'flex',
|
|
142831
142831
|
verticalAlign: 'middle',
|
|
142832
142832
|
cursor: 'pointer',
|
|
142833
142833
|
'& > p': {
|
|
@@ -175948,36 +175948,74 @@ var reduceRedundantNewLineCharacters = function reduceRedundantNewLineCharacters
|
|
|
175948
175948
|
}
|
|
175949
175949
|
return markup;
|
|
175950
175950
|
};
|
|
175951
|
-
var
|
|
175952
|
-
var
|
|
175953
|
-
|
|
175951
|
+
var fixHtmlCode = function fixHtmlCode(markup) {
|
|
175952
|
+
var wrapperEl = document.createElement('div');
|
|
175953
|
+
wrapperEl.innerHTML = markup;
|
|
175954
|
+
var fixParagraphs = function fixParagraphs(child) {
|
|
175955
|
+
var p = document.createElement('p');
|
|
175956
|
+
p.innerHTML = child.innerHTML;
|
|
175957
|
+
Array.from(child.attributes).forEach(function (attr) {
|
|
175958
|
+
p.setAttribute(attr.name, attr.value);
|
|
175959
|
+
});
|
|
175960
|
+
child.replaceWith(p);
|
|
175961
|
+
};
|
|
175962
|
+
var fixTables = function fixTables(tableArray) {
|
|
175963
|
+
tableArray.forEach(function (el) {
|
|
175964
|
+
var index = el.index, child = el.child, parent = el.parent;
|
|
175965
|
+
var nodesBefore = [];
|
|
175966
|
+
var nodesAfter = [];
|
|
175967
|
+
var allNodes = Array.from(parent.childNodes);
|
|
175968
|
+
var i;
|
|
175969
|
+
for (i = 0; i < allNodes.length; i++) {
|
|
175970
|
+
var node = allNodes[i];
|
|
175971
|
+
if (i < index) {
|
|
175972
|
+
nodesBefore.push(node);
|
|
175973
|
+
} else if (i > index) {
|
|
175974
|
+
nodesAfter.push(node);
|
|
175975
|
+
}
|
|
175976
|
+
}
|
|
175977
|
+
var beforeEl = document.createElement(parent.nodeName);
|
|
175978
|
+
beforeEl.append.apply(beforeEl, nodesBefore);
|
|
175979
|
+
parent.replaceWith(beforeEl);
|
|
175980
|
+
beforeEl.after(child);
|
|
175981
|
+
var afterEl = document.createElement(parent.nodeName);
|
|
175982
|
+
afterEl.append.apply(afterEl, nodesAfter);
|
|
175983
|
+
child.after(afterEl);
|
|
175984
|
+
});
|
|
175985
|
+
};
|
|
175954
175986
|
var parseNode = function parseNode(el) {
|
|
175955
|
-
var childArray = Array.from(el.
|
|
175987
|
+
var childArray = Array.from(el.childNodes);
|
|
175956
175988
|
var hasParagraphs = childArray.find(function (child) {
|
|
175957
175989
|
return child.nodeName === 'P';
|
|
175958
175990
|
});
|
|
175959
|
-
|
|
175991
|
+
var tables = [];
|
|
175992
|
+
childArray.forEach(function (child, index) {
|
|
175960
175993
|
if ((child.nodeName === 'DIV' || child.nodeName === 'P') && child.childNodes.length === 0) {
|
|
175961
175994
|
child.remove();
|
|
175962
175995
|
return;
|
|
175963
175996
|
}
|
|
175964
175997
|
if (hasParagraphs && child.nodeName === 'DIV') {
|
|
175965
|
-
|
|
175966
|
-
|
|
175967
|
-
|
|
175968
|
-
|
|
175998
|
+
fixParagraphs(child);
|
|
175999
|
+
}
|
|
176000
|
+
if (wrapperEl !== el && child.nodeName === 'TABLE') {
|
|
176001
|
+
tables.push({
|
|
176002
|
+
index: index,
|
|
176003
|
+
child: child,
|
|
176004
|
+
parent: el
|
|
175969
176005
|
});
|
|
175970
|
-
child.replaceWith(p);
|
|
175971
176006
|
}
|
|
175972
176007
|
parseNode(child);
|
|
175973
176008
|
});
|
|
176009
|
+
if (tables.length) {
|
|
176010
|
+
fixTables(tables);
|
|
176011
|
+
}
|
|
175974
176012
|
};
|
|
175975
|
-
parseNode(
|
|
175976
|
-
return
|
|
176013
|
+
parseNode(wrapperEl);
|
|
176014
|
+
return wrapperEl.innerHTML;
|
|
175977
176015
|
};
|
|
175978
176016
|
var htmlToValue = function htmlToValue(html) {
|
|
175979
176017
|
try {
|
|
175980
|
-
return serializer.deserialize(
|
|
176018
|
+
return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
|
|
175981
176019
|
} catch (e) {
|
|
175982
176020
|
console.log("Couldn't parse html: ", e);
|
|
175983
176021
|
return {};
|
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, _dll_lodash, _dll_react_dom_server, _dll_pie_framework__mathquill} from "../../../@pie-lib/pie-toolbox-math-rendering-module@3.3.2/module/index.js";
|
|
2
|
-
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.
|
|
2
|
+
import {_dll_pie_lib__pie_toolbox_render_ui} from "../../../@pie-lib/pie-toolbox-module@5.10.2/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) {
|
|
@@ -142827,7 +142827,7 @@ const require$$11$B = _dll_prop_types;
|
|
|
142827
142827
|
},
|
|
142828
142828
|
label: {
|
|
142829
142829
|
color: ("").concat(color$1.text(), " !important"),
|
|
142830
|
-
display: '
|
|
142830
|
+
display: 'flex',
|
|
142831
142831
|
verticalAlign: 'middle',
|
|
142832
142832
|
cursor: 'pointer',
|
|
142833
142833
|
'& > p': {
|
|
@@ -175948,36 +175948,74 @@ var reduceRedundantNewLineCharacters = function reduceRedundantNewLineCharacters
|
|
|
175948
175948
|
}
|
|
175949
175949
|
return markup;
|
|
175950
175950
|
};
|
|
175951
|
-
var
|
|
175952
|
-
var
|
|
175953
|
-
|
|
175951
|
+
var fixHtmlCode = function fixHtmlCode(markup) {
|
|
175952
|
+
var wrapperEl = document.createElement('div');
|
|
175953
|
+
wrapperEl.innerHTML = markup;
|
|
175954
|
+
var fixParagraphs = function fixParagraphs(child) {
|
|
175955
|
+
var p = document.createElement('p');
|
|
175956
|
+
p.innerHTML = child.innerHTML;
|
|
175957
|
+
Array.from(child.attributes).forEach(function (attr) {
|
|
175958
|
+
p.setAttribute(attr.name, attr.value);
|
|
175959
|
+
});
|
|
175960
|
+
child.replaceWith(p);
|
|
175961
|
+
};
|
|
175962
|
+
var fixTables = function fixTables(tableArray) {
|
|
175963
|
+
tableArray.forEach(function (el) {
|
|
175964
|
+
var index = el.index, child = el.child, parent = el.parent;
|
|
175965
|
+
var nodesBefore = [];
|
|
175966
|
+
var nodesAfter = [];
|
|
175967
|
+
var allNodes = Array.from(parent.childNodes);
|
|
175968
|
+
var i;
|
|
175969
|
+
for (i = 0; i < allNodes.length; i++) {
|
|
175970
|
+
var node = allNodes[i];
|
|
175971
|
+
if (i < index) {
|
|
175972
|
+
nodesBefore.push(node);
|
|
175973
|
+
} else if (i > index) {
|
|
175974
|
+
nodesAfter.push(node);
|
|
175975
|
+
}
|
|
175976
|
+
}
|
|
175977
|
+
var beforeEl = document.createElement(parent.nodeName);
|
|
175978
|
+
beforeEl.append.apply(beforeEl, nodesBefore);
|
|
175979
|
+
parent.replaceWith(beforeEl);
|
|
175980
|
+
beforeEl.after(child);
|
|
175981
|
+
var afterEl = document.createElement(parent.nodeName);
|
|
175982
|
+
afterEl.append.apply(afterEl, nodesAfter);
|
|
175983
|
+
child.after(afterEl);
|
|
175984
|
+
});
|
|
175985
|
+
};
|
|
175954
175986
|
var parseNode = function parseNode(el) {
|
|
175955
|
-
var childArray = Array.from(el.
|
|
175987
|
+
var childArray = Array.from(el.childNodes);
|
|
175956
175988
|
var hasParagraphs = childArray.find(function (child) {
|
|
175957
175989
|
return child.nodeName === 'P';
|
|
175958
175990
|
});
|
|
175959
|
-
|
|
175991
|
+
var tables = [];
|
|
175992
|
+
childArray.forEach(function (child, index) {
|
|
175960
175993
|
if ((child.nodeName === 'DIV' || child.nodeName === 'P') && child.childNodes.length === 0) {
|
|
175961
175994
|
child.remove();
|
|
175962
175995
|
return;
|
|
175963
175996
|
}
|
|
175964
175997
|
if (hasParagraphs && child.nodeName === 'DIV') {
|
|
175965
|
-
|
|
175966
|
-
|
|
175967
|
-
|
|
175968
|
-
|
|
175998
|
+
fixParagraphs(child);
|
|
175999
|
+
}
|
|
176000
|
+
if (wrapperEl !== el && child.nodeName === 'TABLE') {
|
|
176001
|
+
tables.push({
|
|
176002
|
+
index: index,
|
|
176003
|
+
child: child,
|
|
176004
|
+
parent: el
|
|
175969
176005
|
});
|
|
175970
|
-
child.replaceWith(p);
|
|
175971
176006
|
}
|
|
175972
176007
|
parseNode(child);
|
|
175973
176008
|
});
|
|
176009
|
+
if (tables.length) {
|
|
176010
|
+
fixTables(tables);
|
|
176011
|
+
}
|
|
175974
176012
|
};
|
|
175975
|
-
parseNode(
|
|
175976
|
-
return
|
|
176013
|
+
parseNode(wrapperEl);
|
|
176014
|
+
return wrapperEl.innerHTML;
|
|
175977
176015
|
};
|
|
175978
176016
|
var htmlToValue = function htmlToValue(html) {
|
|
175979
176017
|
try {
|
|
175980
|
-
return serializer.deserialize(
|
|
176018
|
+
return serializer.deserialize(fixHtmlCode(reduceRedundantNewLineCharacters(reduceMultipleBrs(html))));
|
|
175981
176019
|
} catch (e) {
|
|
175982
176020
|
console.log("Couldn't parse html: ", e);
|
|
175983
176021
|
return {};
|
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.4.4
|
|
4
|
+
"version": "3.4.4",
|
|
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.3.4
|
|
11
|
-
"@pie-element/rubric": "^4.4.4
|
|
10
|
+
"@pie-element/multi-trait-rubric": "^4.3.4",
|
|
11
|
+
"@pie-element/rubric": "^4.4.4",
|
|
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": "fe5970fc89907fd6b1b02816ce9286d5798217ef",
|
|
19
19
|
"scripts": {
|
|
20
20
|
"postpublish": "../../scripts/postpublish"
|
|
21
21
|
},
|