@doenet/doenetml-iframe 0.7.25-dev.535 → 0.7.25-dev.537

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/README.md +16 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -473,6 +473,22 @@ work rather than that there is no document. If no core could be started
473
473
  either, the viewer says so on its failure pane and adds this message beneath
474
474
  it, so the two are not mutually erasing.
475
475
 
476
+ Two kinds of error reach the student's screen as nothing at all, and both are
477
+ logged to the console instead:
478
+
479
+ - An error carrying no string `message`. The viewer has no text of its own
480
+ worth showing a student here, so send the text you want them to read.
481
+ - An error whose `code` is `unsupported_subject`, `unauthorized`,
482
+ `wrong_origin` or `bad_request`. Those are an LTI platform's postMessage
483
+ vocabulary for a message it will not act on, not a host's load failure:
484
+ Canvas answers *any* message on *any* of its pages, so a Doenet activity
485
+ embedded in one gets `unsupported_subject` back for every `SPLICE` message
486
+ it sends. The other three refuse a subject the platform does recognize,
487
+ and are reserved alongside it. They all mean the page is not a host, which
488
+ is the same to the viewer as no answer at all. Do not report a genuine
489
+ load failure with one of these codes — any other code, or none at all,
490
+ reaches the student as long as it comes with a `message`.
491
+
476
492
  A request has a single answer: the **first** response carrying state for
477
493
  this `cid` is the one the viewer reboots from, and every response after
478
494
  that — errors included — is ignored. A response with no state — or state for a
package/index.js CHANGED
@@ -69390,7 +69390,7 @@ function ExternalVirtualKeyboard({
69390
69390
  }
69391
69391
  );
69392
69392
  }
69393
- const version = "0.7.25-dev.535";
69393
+ const version = "0.7.25-dev.537";
69394
69394
  const latestDoenetmlVersion = version;
69395
69395
  function subscribeToPinnedTheme() {
69396
69396
  return () => {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@doenet/doenetml-iframe",
3
3
  "type": "module",
4
4
  "description": "A renderer for DoenetML contained in an iframe",
5
- "version": "0.7.25-dev.535",
5
+ "version": "0.7.25-dev.537",
6
6
  "license": "AGPL-3.0-or-later",
7
7
  "homepage": "https://github.com/Doenet/DoenetML#readme",
8
8
  "repository": {