@doenet/v06-to-v07 0.7.0-beta12 → 0.7.0-beta14

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.
@@ -1 +1 @@
1
- {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core-info/core.ts"],"names":[],"mappings":"AAAA,OAAa,EACT,kBAAkB,IAAI,sBAAsB,EAO/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAyB,QAAQ,EAAS,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAqCxE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CACtC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CACzC,CAAC,sBAAsB,CAAC,CAAC;AAE1B,wBAAsB,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE;;;iCA8E9B,MAAM;GAS7C"}
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/core-info/core.ts"],"names":[],"mappings":"AAAA,OAAa,EACT,kBAAkB,IAAI,sBAAsB,EAO/C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAyB,QAAQ,EAAS,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAuCxE,MAAM,MAAM,oBAAoB,GAAG,OAAO,CACtC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CACzC,CAAC,sBAAsB,CAAC,CAAC;AAE1B,wBAAsB,mBAAmB,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE;;;iCA8E9B,MAAM;GAS7C"}
package/index.js CHANGED
@@ -60711,10 +60711,13 @@ class Core {
60711
60711
  this.cumulativeStateVariableChanges,
60712
60712
  serializedComponentsReplacer
60713
60713
  );
60714
- let rendererStateString = JSON.stringify(
60715
- this.rendererState,
60716
- serializedComponentsReplacer
60717
- );
60714
+ let rendererStateString = null;
60715
+ if (this.flags.saveRendererState) {
60716
+ rendererStateString = JSON.stringify(
60717
+ this.rendererState,
60718
+ serializedComponentsReplacer
60719
+ );
60720
+ }
60718
60721
  if (this.flags.allowLocalState) {
60719
60722
  await set(
60720
60723
  `${this.activityId}|${this.docId}|${this.attemptNumber}|${this.cid}`,
@@ -207435,8 +207438,9 @@ const defaultFlags = {
207435
207438
  solutionDisplayMode: "button",
207436
207439
  showFeedback: true,
207437
207440
  showHints: true,
207438
- allowLoadState: false,
207441
+ allowLoadState: true,
207439
207442
  allowSaveState: true,
207443
+ saveRendererState: false,
207440
207444
  allowLocalState: false,
207441
207445
  allowSaveEvents: true,
207442
207446
  messageParent: false,