@doenet/doenetml-iframe 0.7.0-rc-5 → 0.7.0-rc-7
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/index.js +10 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -27455,9 +27455,13 @@ function attributeValueText(node, source) {
|
|
|
27455
27455
|
}
|
|
27456
27456
|
return removeQuotes(unescapeEntities(node, source));
|
|
27457
27457
|
}
|
|
27458
|
-
function lezerNodeToPosition(node, offsetToPositionMap) {
|
|
27458
|
+
function lezerNodeToPosition(node, offsetToPositionMap, adjustForQuotes = false) {
|
|
27459
27459
|
const { rowMap, columnMap } = offsetToPositionMap;
|
|
27460
|
-
|
|
27460
|
+
let { from, to } = node;
|
|
27461
|
+
if (adjustForQuotes) {
|
|
27462
|
+
from += 1;
|
|
27463
|
+
to -= 1;
|
|
27464
|
+
}
|
|
27461
27465
|
return {
|
|
27462
27466
|
start: {
|
|
27463
27467
|
line: rowMap[from] + 1,
|
|
@@ -29787,7 +29791,8 @@ function _lezerToDast(node, source) {
|
|
|
29787
29791
|
),
|
|
29788
29792
|
position: lezerNodeToPosition(
|
|
29789
29793
|
attrValue,
|
|
29790
|
-
offsetMap
|
|
29794
|
+
offsetMap,
|
|
29795
|
+
true
|
|
29791
29796
|
)
|
|
29792
29797
|
},
|
|
29793
29798
|
offsetMap
|
|
@@ -31727,7 +31732,7 @@ function detectVersionFromDoenetML(doenetML) {
|
|
|
31727
31732
|
version: versionString,
|
|
31728
31733
|
position: {
|
|
31729
31734
|
begin: xmlnsTextNode.position?.start.offset + offsetStart,
|
|
31730
|
-
end: xmlnsTextNode.position?.start.offset + offsetEnd
|
|
31735
|
+
end: xmlnsTextNode.position?.start.offset + offsetEnd
|
|
31731
31736
|
}
|
|
31732
31737
|
};
|
|
31733
31738
|
}
|
|
@@ -70744,7 +70749,7 @@ function ExternalVirtualKeyboard() {
|
|
|
70744
70749
|
}
|
|
70745
70750
|
);
|
|
70746
70751
|
}
|
|
70747
|
-
const version = "0.7.0-rc-
|
|
70752
|
+
const version = "0.7.0-rc-7";
|
|
70748
70753
|
const latestDoenetmlVersion = version;
|
|
70749
70754
|
function DoenetViewer({
|
|
70750
70755
|
doenetML,
|