@doenet/v06-to-v07 0.7.21-dev.351 → 0.7.21-dev.352

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.
@@ -42339,7 +42339,7 @@ async function cidFromArrayBuffer(data) {
42339
42339
  await crypto.subtle.digest("SHA-256", new Uint8Array());
42340
42340
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
42341
42341
  } catch (e22) {
42342
- const sha256 = (await import("./sha256-BbJ5TZns-Cy0oPV4j-D0PQMZYb.js").then((n2) => n2.s)).default;
42342
+ const sha256 = (await import("./sha256-BbJ5TZns-BKjS6wnI-CZfHXdKm.js").then((n2) => n2.s)).default;
42343
42343
  digest = (data2) => sha256(data2, {
42344
42344
  asBytes: true
42345
42345
  });
@@ -65473,7 +65473,17 @@ class RendererInstructionBuilder {
65473
65473
  id: this.getRendererId(component),
65474
65474
  componentType: component.componentType,
65475
65475
  rendererType: component.rendererType,
65476
- actions: requestActions
65476
+ actions: requestActions,
65477
+ // Source range in the original DoenetML, used by hosts (e.g. the
65478
+ // VS Code preview) to sync cursor/click position with the
65479
+ // editor. Absent for components with no direct source origin.
65480
+ // Note: a copy's replacement gets the copy reference's own range
65481
+ // (e.g. `$g`'s), while descendants that already carried a
65482
+ // position keep the original definition's range — see
65483
+ // `assignDoenetMLRange`'s `init` flag. The viewer compensates
65484
+ // when attributing clicks on copied content (`containsRange` in
65485
+ // DocViewer).
65486
+ position: component.position
65477
65487
  };
65478
65488
  this.componentsToRender[componentIdx] = {
65479
65489
  children: childrenToRender
@@ -231920,4 +231930,4 @@ export {
231920
231930
  getDefaultExportFromCjs as g,
231921
231931
  updateSyntaxFromV06toV07 as u
231922
231932
  };
231923
- //# sourceMappingURL=index-B7dZK3j_.js.map
231933
+ //# sourceMappingURL=index-zfb3iUIo.js.map