@doenet/v06-to-v07 0.7.25-dev.509 → 0.7.25-dev.512

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.
@@ -45857,7 +45857,7 @@ async function cidFromArrayBuffer(data) {
45857
45857
  await crypto.subtle.digest("SHA-256", new Uint8Array());
45858
45858
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
45859
45859
  } catch (e22) {
45860
- const sha256 = (await import("./sha256-DT5xJ2Hv-DfRYKmeN-UtPyiAdt.js").then((n2) => n2.s)).default;
45860
+ const sha256 = (await import("./sha256-DT5xJ2Hv-DwX7obK3-eQYIbqFX.js").then((n2) => n2.s)).default;
45861
45861
  digest = (data2) => sha256(data2, {
45862
45862
  asBytes: true
45863
45863
  });
@@ -59997,6 +59997,9 @@ const _Dependency = class _Dependency2 {
59997
59997
  * Add resolve blockers to this dependency due to the component with `componentIdx`
59998
59998
  * not existing as well as update triggers that will attempt to resolve
59999
59999
  * this dependency when the component is created.
60000
+ *
60001
+ * Must be awaited, for the reason given on
60002
+ * {@link Dependency.addBlockerForUnexpandedComposite}.
60000
60003
  */
60001
60004
  async addBlockerUpdateTriggerForMissingComponent(componentIdx) {
60002
60005
  this.addUpdateTriggerForMissingComponent(componentIdx);
@@ -60074,6 +60077,11 @@ const _Dependency = class _Dependency2 {
60074
60077
  /**
60075
60078
  * Add a resolve blocker to this dependency based on `composite`
60076
60079
  * not yet being expanded.
60080
+ *
60081
+ * Must be awaited. `addBlocker` checks the blocker graph for a cycle and
60082
+ * throws when it finds one; left unawaited, that becomes a floating
60083
+ * rejection and resolution goes on around the cycle until the worker runs
60084
+ * out of memory (Doenet/DoenetML#1665).
60077
60085
  */
60078
60086
  async addBlockerForUnexpandedComposite(composite) {
60079
60087
  for (const varName of this.upstreamVariableNames) {
@@ -60161,7 +60169,9 @@ const _StateVariableDependency = class _StateVariableDependency2 extends Depende
60161
60169
  async determineDownstreamComponents() {
60162
60170
  let component = this.dependencyHandler._components[this.componentIdx];
60163
60171
  if (!component) {
60164
- this.addBlockerUpdateTriggerForMissingComponent(this.componentIdx);
60172
+ await this.addBlockerUpdateTriggerForMissingComponent(
60173
+ this.componentIdx
60174
+ );
60165
60175
  return {
60166
60176
  success: false,
60167
60177
  downstreamComponentIndices: [],
@@ -60207,7 +60217,9 @@ const _StateVariableFromUnresolvedPathDependency = class _StateVariableFromUnres
60207
60217
  async determineDownstreamComponents() {
60208
60218
  const component = this.dependencyHandler._components[this.componentIdx];
60209
60219
  if (!component) {
60210
- this.addBlockerUpdateTriggerForMissingComponent(this.componentIdx);
60220
+ await this.addBlockerUpdateTriggerForMissingComponent(
60221
+ this.componentIdx
60222
+ );
60211
60223
  return {
60212
60224
  success: false,
60213
60225
  downstreamComponentIndices: [],
@@ -62427,7 +62439,9 @@ const _RefResolutionIndexDependencies = class _RefResolutionIndexDependencies2 e
62427
62439
  this.compositeReplacementDependencies = [];
62428
62440
  let composite = this.dependencyHandler._components[this.compositeIdx];
62429
62441
  if (!composite) {
62430
- this.addBlockerUpdateTriggerForMissingComponent(this.compositeIdx);
62442
+ await this.addBlockerUpdateTriggerForMissingComponent(
62443
+ this.compositeIdx
62444
+ );
62431
62445
  this.missingComponentBlockers.push(this.compositeIdx);
62432
62446
  return {
62433
62447
  success: false,
@@ -62479,7 +62493,7 @@ const _RefResolutionIndexDependencies = class _RefResolutionIndexDependencies2 e
62479
62493
  );
62480
62494
  if (haveComposite) {
62481
62495
  if (!indexComponent.isExpanded) {
62482
- this.addBlockerForUnexpandedComposite(
62496
+ await this.addBlockerForUnexpandedComposite(
62483
62497
  indexComponent
62484
62498
  );
62485
62499
  foundUnexpanded = true;
@@ -62548,7 +62562,9 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
62548
62562
  this.compositeReplacementDependencies = [];
62549
62563
  let composite = this.dependencyHandler._components[this.compositeIdx];
62550
62564
  if (!composite) {
62551
- this.addBlockerUpdateTriggerForMissingComponent(this.compositeIdx);
62565
+ await this.addBlockerUpdateTriggerForMissingComponent(
62566
+ this.compositeIdx
62567
+ );
62552
62568
  this.missingComponentBlockers.push(this.compositeIdx);
62553
62569
  return {
62554
62570
  success: false,
@@ -62572,7 +62588,7 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
62572
62588
  };
62573
62589
  }
62574
62590
  if (!compositeCreating.isExpanded) {
62575
- this.addBlockerForUnexpandedComposite(compositeCreating);
62591
+ await this.addBlockerForUnexpandedComposite(compositeCreating);
62576
62592
  return {
62577
62593
  success: false,
62578
62594
  downstreamComponentIndices: [],
@@ -62616,7 +62632,7 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
62616
62632
  });
62617
62633
  if (haveComposite) {
62618
62634
  if (!refComponent.isExpanded) {
62619
- this.addBlockerForUnexpandedComposite(refComponent);
62635
+ await this.addBlockerForUnexpandedComposite(refComponent);
62620
62636
  return {
62621
62637
  success: false,
62622
62638
  downstreamComponentIndices: [],
@@ -62708,7 +62724,7 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
62708
62724
  includeNonStandard: true
62709
62725
  })) {
62710
62726
  if (!newRefComponent.isExpanded) {
62711
- this.addBlockerForUnexpandedComposite(newRefComponent);
62727
+ await this.addBlockerForUnexpandedComposite(newRefComponent);
62712
62728
  return {
62713
62729
  success: false,
62714
62730
  downstreamComponentIndices: [],
@@ -62797,7 +62813,7 @@ const _RefResolutionDependency = class _RefResolutionDependency2 extends Depende
62797
62813
  );
62798
62814
  if (haveComposite) {
62799
62815
  if (!indexComponent.isExpanded) {
62800
- this.addBlockerForUnexpandedComposite(
62816
+ await this.addBlockerForUnexpandedComposite(
62801
62817
  indexComponent
62802
62818
  );
62803
62819
  return {
@@ -62883,7 +62899,9 @@ const _AttributeRefResolutions = class _AttributeRefResolutions2 extends Depende
62883
62899
  async determineDownstreamComponents() {
62884
62900
  let parent = this.dependencyHandler._components[this.parentIdx];
62885
62901
  if (!parent) {
62886
- this.addBlockerUpdateTriggerForMissingComponent(this.parentIdx);
62902
+ await this.addBlockerUpdateTriggerForMissingComponent(
62903
+ this.parentIdx
62904
+ );
62887
62905
  this.missingComponentBlockers.push(this.parentIdx);
62888
62906
  return {
62889
62907
  success: false,
@@ -62997,7 +63015,9 @@ const _ComponentsReferencingAttributeDependency = class _ComponentsReferencingAt
62997
63015
  async determineDownstreamComponents() {
62998
63016
  let referencedComponent = this.dependencyHandler._components[this.referencedIdx];
62999
63017
  if (!referencedComponent) {
63000
- this.addBlockerUpdateTriggerForMissingComponent(this.referencedIdx);
63018
+ await this.addBlockerUpdateTriggerForMissingComponent(
63019
+ this.referencedIdx
63020
+ );
63001
63021
  this.missingComponentBlockers.push(this.referencedIdx);
63002
63022
  return {
63003
63023
  success: false,
@@ -63065,7 +63085,9 @@ const _StringsFromReferenceAttribute = class _StringsFromReferenceAttribute2 ext
63065
63085
  async determineDownstreamComponents() {
63066
63086
  let parent = this.dependencyHandler._components[this.parentIdx];
63067
63087
  if (!parent) {
63068
- this.addBlockerUpdateTriggerForMissingComponent(this.parentIdx);
63088
+ await this.addBlockerUpdateTriggerForMissingComponent(
63089
+ this.parentIdx
63090
+ );
63069
63091
  this.missingComponentBlockers.push(this.parentIdx);
63070
63092
  return {
63071
63093
  success: false,
@@ -63108,7 +63130,9 @@ const _RendererId = class _RendererId2 extends Dependency {
63108
63130
  async determineDownstreamComponents() {
63109
63131
  this.component = this.dependencyHandler._components[this.componentIdx];
63110
63132
  if (!this.component) {
63111
- this.addBlockerUpdateTriggerForMissingComponent(this.componentIdx);
63133
+ await this.addBlockerUpdateTriggerForMissingComponent(
63134
+ this.componentIdx
63135
+ );
63112
63136
  this.missingComponentBlockers.push(this.componentIdx);
63113
63137
  return {
63114
63138
  success: false,
@@ -237465,4 +237489,4 @@ export {
237465
237489
  getDefaultExportFromCjs$1 as g,
237466
237490
  updateSyntaxFromV06toV07 as u
237467
237491
  };
237468
- //# sourceMappingURL=index-Ct1MBqIK.js.map
237492
+ //# sourceMappingURL=index-FYSJxKsH.js.map