@doenet/v06-to-v07 0.7.20-dev.314 → 0.7.20-dev.316

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.
@@ -40963,7 +40963,7 @@ async function cidFromArrayBuffer(data) {
40963
40963
  await crypto.subtle.digest("SHA-256", new Uint8Array());
40964
40964
  digest = (data2) => crypto.subtle.digest("SHA-256", data2);
40965
40965
  } catch (e22) {
40966
- const sha256 = (await import("./sha256-C0vj3HDn-NmLt_Hqd-CPz_Y_rr.js").then((n2) => n2.s)).default;
40966
+ const sha256 = (await import("./sha256-C0vj3HDn-CiX8mjgB-LkkwAqwy.js").then((n2) => n2.s)).default;
40967
40967
  digest = (data2) => sha256(data2, {
40968
40968
  asBytes: true
40969
40969
  });
@@ -139288,7 +139288,8 @@ class MathInput extends Input {
139288
139288
  super(args);
139289
139289
  Object.assign(this.actions, {
139290
139290
  updateRawValue: this.updateRawValue.bind(this),
139291
- updateValue: this.updateValue.bind(this)
139291
+ updateValue: this.updateValue.bind(this),
139292
+ moveInput: this.moveInput.bind(this)
139292
139293
  });
139293
139294
  defineSubmitAnswerExternalAction(this);
139294
139295
  }
@@ -139423,6 +139424,15 @@ class MathInput extends Input {
139423
139424
  defaultValue: false,
139424
139425
  description: "Whether to display a preview of the parsed math."
139425
139426
  };
139427
+ attributes.draggable = {
139428
+ description: "Whether the input can be dragged on a graph.",
139429
+ createComponentOfType: "boolean",
139430
+ createStateVariable: "draggable",
139431
+ defaultValue: true,
139432
+ public: true,
139433
+ forRenderer: true
139434
+ };
139435
+ Object.assign(attributes, returnAnchorAttributes());
139426
139436
  return attributes;
139427
139437
  }
139428
139438
  // Include children that can be added due to sugar
@@ -139466,6 +139476,10 @@ class MathInput extends Input {
139466
139476
  displaySmallAsZeroDefault: 0
139467
139477
  })
139468
139478
  );
139479
+ Object.assign(
139480
+ stateVariableDefinitions,
139481
+ returnAnchorStateVariableDefinition()
139482
+ );
139469
139483
  stateVariableDefinitions.effectiveFunctionNames = {
139470
139484
  // Resolved MathQuill `autoOperatorNames` list — defaults
139471
139485
  // merged with `additionalFunctionNames` / `removedFunctionNames`
@@ -140289,6 +140303,28 @@ class MathInput extends Input {
140289
140303
  }
140290
140304
  }
140291
140305
  }
140306
+ async moveInput({
140307
+ x: x2,
140308
+ y: y2,
140309
+ z: z2,
140310
+ transient,
140311
+ actionId,
140312
+ sourceInformation = {},
140313
+ skipRendererUpdate = false
140314
+ }) {
140315
+ return await moveGraphicalObjectWithAnchorAction({
140316
+ x: x2,
140317
+ y: y2,
140318
+ z: z2,
140319
+ transient,
140320
+ actionId,
140321
+ sourceInformation,
140322
+ skipRendererUpdate,
140323
+ componentIdx: this.componentIdx,
140324
+ componentType: this.componentType,
140325
+ coreFunctions: this.coreFunctions
140326
+ });
140327
+ }
140292
140328
  static adapters = [
140293
140329
  {
140294
140330
  stateVariable: "value",
@@ -147797,7 +147833,8 @@ let Graph$1 = class Graph extends BlockComponent {
147797
147833
  "callAction",
147798
147834
  "triggerSet",
147799
147835
  "booleanInput",
147800
- "textInput"
147836
+ "textInput",
147837
+ "mathInput"
147801
147838
  ]
147802
147839
  },
147803
147840
  {
@@ -228870,4 +228907,4 @@ export {
228870
228907
  getDefaultExportFromCjs as g,
228871
228908
  updateSyntaxFromV06toV07 as u
228872
228909
  };
228873
- //# sourceMappingURL=index-DjLkBfnN.js.map
228910
+ //# sourceMappingURL=index-CgX2sNWV.js.map