@doenet/doenetml-iframe 0.7.0-alpha36 → 0.7.0-alpha37

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.
Files changed (3) hide show
  1. package/index.js +2 -10
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -26867,15 +26867,7 @@ const mathjaxConfig = {
26867
26867
  csch: "\\operatorname{csch}",
26868
26868
  sech: "\\operatorname{sech}"
26869
26869
  },
26870
- displayMath: [["\\[", "\\]"]],
26871
- packages: ["base", "ams", "noerrors", "noundefined", "configmacros"]
26872
- },
26873
- options: {
26874
- ignoreHtmlClass: "tex2jax_ignore",
26875
- processHtmlClass: "tex2jax_process"
26876
- },
26877
- loader: {
26878
- load: ["[tex]/noerrors"]
26870
+ displayMath: [["\\[", "\\]"]]
26879
26871
  }
26880
26872
  };
26881
26873
  const viewerIframeJsSource = '(function() {\n "use strict";\n document.addEventListener("DOMContentLoaded", async () => {\n let pause100 = function() {\n return new Promise((resolve, _reject) => {\n setTimeout(resolve, 100);\n });\n };\n for (let i = 0; i < 10; i++) {\n if (typeof window.renderDoenetViewerToContainer === "function") {\n break;\n }\n await pause100();\n }\n if (typeof window.renderDoenetViewerToContainer !== "function") {\n return messageParentFromViewer({\n error: "Invalid DoenetML version or DoenetML package not found"\n });\n }\n const callbackOverrides = {};\n const callbackNames = [\n "reportScoreAndStateCallback",\n "setIsInErrorState",\n "generatedVariantCallback",\n "documentStructureCallback",\n "initializedCallback",\n "setErrorsAndWarningsCallback"\n ];\n for (const callback of callbackNames) {\n callbackOverrides[callback] = haveViewerCallbacks.includes(callback) ? (args) => {\n messageParentFromViewer({\n callback,\n args\n });\n } : void 0;\n }\n window.renderDoenetViewerToContainer(\n document.getElementById("root"),\n void 0,\n {\n ...doenetViewerProps,\n externalVirtualKeyboardProvided: true,\n ...callbackOverrides\n }\n );\n });\n window.addEventListener("message", (e) => {\n var _a, _b;\n if (e.origin !== window.parent.location.origin) {\n return;\n }\n if (((_a = e.data.subject) == null ? void 0 : _a.startsWith("SPLICE")) && !((_b = e.data.subject) == null ? void 0 : _b.endsWith("response"))) {\n window.parent.postMessage(e.data);\n } else if (e.data.subject === "requestAnswerResponses") {\n window.parent.postMessage(e.data);\n }\n });\n function messageParentFromViewer(data) {\n window.parent.postMessage(\n {\n origin: viewerId,\n data\n },\n window.parent.origin\n );\n }\n})();\n';
@@ -49588,7 +49580,7 @@ function ExternalVirtualKeyboard() {
49588
49580
  }
49589
49581
  );
49590
49582
  }
49591
- const version = "0.7.0-alpha36";
49583
+ const version = "0.7.0-alpha37";
49592
49584
  const latestDoenetmlVersion = version;
49593
49585
  function DoenetViewer({
49594
49586
  doenetML,