@doenet/v06-to-v07 0.7.26-dev.544 → 0.7.26-dev.545

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.
@@ -47282,7 +47282,7 @@ async function cidFromArrayBuffer(data) {
47282
47282
  await crypto.subtle.digest("SHA-256", new Uint8Array());
47283
47283
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
47284
47284
  } catch (e22) {
47285
- const sha256 = (await import("./sha256-DT5xJ2Hv-BO_KGE4o-BxxNaVm3.js").then((n2) => n2.s)).default;
47285
+ const sha256 = (await import("./sha256-DT5xJ2Hv-CgHLfxWZ-kZCUXDZV.js").then((n2) => n2.s)).default;
47286
47286
  digest = (data2) => sha256(data2, {
47287
47287
  asBytes: true
47288
47288
  });
@@ -56696,7 +56696,7 @@ async function replaceCompositeChildren({
56696
56696
  if (otherCompositeObject.lastInd >= childInd) {
56697
56697
  otherCompositeObject.lastInd += replacements.length - 1;
56698
56698
  otherCompositeObject.potentialListComponents.splice(
56699
- childInd,
56699
+ childInd - otherCompositeObject.firstInd,
56700
56700
  1,
56701
56701
  ...replacementsCanBeInList
56702
56702
  );
@@ -79422,46 +79422,42 @@ function createInputStringFromChildrenSub({
79422
79422
  (v2, i2, a2) => i2 === a2.length - 1 ? v2 : v2.trimEnd()
79423
79423
  ).join(", ");
79424
79424
  let wrap2 = false;
79425
- if (rangeFirstInd > 0) {
79426
- let prevInd = rangeFirstInd - 1;
79427
- while (prevInd >= 0) {
79428
- let prevChild = children[prevInd];
79429
- if (typeof prevChild === "string") {
79430
- prevChild = prevChild.trim();
79431
- if (prevChild.length > 0) {
79432
- if (!leftDelimiters.includes(
79433
- prevChild[prevChild.length - 1]
79434
- )) {
79435
- wrap2 = true;
79436
- }
79437
- break;
79438
- }
79439
- } else {
79440
- wrap2 = true;
79441
- }
79425
+ for (let prevInd = rangeFirstInd - 1; prevInd >= 0; prevInd--) {
79426
+ let prevChild = children[prevInd];
79427
+ if (typeof prevChild !== "string") {
79428
+ wrap2 = true;
79429
+ break;
79430
+ }
79431
+ prevChild = prevChild.trim();
79432
+ if (prevChild.length === 0) {
79433
+ continue;
79442
79434
  }
79435
+ if (!leftDelimiters.includes(
79436
+ prevChild[prevChild.length - 1]
79437
+ )) {
79438
+ wrap2 = true;
79439
+ }
79440
+ break;
79443
79441
  }
79444
79442
  if (!wrap2) {
79445
- if (rangeLastInd < children.length - 1) {
79446
- let nextInd = rangeLastInd + 1;
79447
- while (nextInd <= children.length - 1) {
79448
- let nextChild = children[nextInd];
79449
- if (typeof nextChild === "string") {
79450
- nextChild = nextChild.trim();
79451
- if (nextChild.length > 0) {
79452
- let nextChar = nextChild[0];
79453
- if (format2 === "latex" && nextChar === "\\" && nextChild.length > 1) {
79454
- nextChar = nextChild[1];
79455
- }
79456
- if (!rightDelimiters.includes(nextChar)) {
79457
- wrap2 = true;
79458
- }
79459
- break;
79460
- }
79461
- } else {
79462
- wrap2 = true;
79463
- }
79443
+ for (let nextInd = rangeLastInd + 1; nextInd < children.length; nextInd++) {
79444
+ let nextChild = children[nextInd];
79445
+ if (typeof nextChild !== "string") {
79446
+ wrap2 = true;
79447
+ break;
79448
+ }
79449
+ nextChild = nextChild.trim();
79450
+ if (nextChild.length === 0) {
79451
+ continue;
79452
+ }
79453
+ let nextChar = nextChild[0];
79454
+ if (format2 === "latex" && nextChar === "\\" && nextChild.length > 1) {
79455
+ nextChar = nextChild[1];
79464
79456
  }
79457
+ if (!rightDelimiters.includes(nextChar)) {
79458
+ wrap2 = true;
79459
+ }
79460
+ break;
79465
79461
  }
79466
79462
  }
79467
79463
  if (wrap2) {
@@ -241111,4 +241107,4 @@ export {
241111
241107
  getDefaultExportFromCjs$1 as g,
241112
241108
  updateSyntaxFromV06toV07 as u
241113
241109
  };
241114
- //# sourceMappingURL=index-D4toul2l.js.map
241110
+ //# sourceMappingURL=index-BsToiKop.js.map