@doenet/doenetml-iframe 0.7.10 → 0.7.11-dev.20260327160128.d96f5b7

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 CHANGED
@@ -73545,7 +73545,7 @@ function ExternalVirtualKeyboard() {
73545
73545
  }
73546
73546
  );
73547
73547
  }
73548
- const version = "0.7.10";
73548
+ const version = "0.7.11-dev.20260327160128.d96f5b7";
73549
73549
  const latestDoenetmlVersion = version;
73550
73550
  function DoenetViewer({
73551
73551
  doenetML,
@@ -73705,15 +73705,15 @@ function DoenetEditor({
73705
73705
  const ref = React__default__default.useRef(null);
73706
73706
  const [inErrorState, setInErrorState] = React__default__default.useState(null);
73707
73707
  const [ignoreDetectedVersion, setIgnoreDetectedVersion] = React__default__default.useState(false);
73708
- const [initialErrors, setInitialErrors] = React__default__default.useState([]);
73708
+ const [initialDiagnostics, setInitialDiagnostics] = React__default__default.useState([]);
73709
73709
  const augmentedDoenetEditorProps = { ...doenetEditorProps };
73710
- if (augmentedDoenetEditorProps.initialErrors) {
73711
- augmentedDoenetEditorProps.initialErrors = [
73712
- ...augmentedDoenetEditorProps.initialErrors,
73713
- ...initialErrors
73710
+ if (augmentedDoenetEditorProps.initialDiagnostics) {
73711
+ augmentedDoenetEditorProps.initialDiagnostics = [
73712
+ ...augmentedDoenetEditorProps.initialDiagnostics,
73713
+ ...initialDiagnostics
73714
73714
  ];
73715
73715
  } else {
73716
- augmentedDoenetEditorProps.initialErrors = initialErrors;
73716
+ augmentedDoenetEditorProps.initialDiagnostics = initialDiagnostics;
73717
73717
  }
73718
73718
  let standaloneUrl, cssUrl;
73719
73719
  let foundAutoVersion = false;
@@ -73786,7 +73786,7 @@ function DoenetEditor({
73786
73786
  detectedDoenetMLrange,
73787
73787
  getLineCharRange(detectedDoenetMLrange, allNewlines)
73788
73788
  );
73789
- setInitialErrors([
73789
+ setInitialDiagnostics([
73790
73790
  { position: detectedDoenetMLrange, message, type: "error" }
73791
73791
  ]);
73792
73792
  return null;