@doenet/v06-to-v07 0.7.0-beta4 → 0.7.0-beta5

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 +71 -4
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -100352,6 +100352,8 @@ class Input extends InlineComponent {
100352
100352
  "justSubmitted",
100353
100353
  "creditAchieved",
100354
100354
  "showCorrectness",
100355
+ "submitLabel",
100356
+ "submitLabelNoCorrectness",
100355
100357
  "numAttemptsLeft",
100356
100358
  "creditIsReducedByAttempt",
100357
100359
  "numIncorrectSubmissions",
@@ -100482,6 +100484,42 @@ class Input extends InlineComponent {
100482
100484
  return { setValue: { showCorrectness } };
100483
100485
  }
100484
100486
  };
100487
+ stateVariableDefinitions.submitLabel = {
100488
+ forRenderer: true,
100489
+ returnDependencies: () => ({
100490
+ answerAncestor: {
100491
+ dependencyType: "stateVariable",
100492
+ variableName: "answerAncestor"
100493
+ }
100494
+ }),
100495
+ definition({ dependencyValues }) {
100496
+ let submitLabel;
100497
+ if (dependencyValues.answerAncestor) {
100498
+ submitLabel = dependencyValues.answerAncestor.stateValues.submitLabel;
100499
+ } else {
100500
+ submitLabel = "";
100501
+ }
100502
+ return { setValue: { submitLabel } };
100503
+ }
100504
+ };
100505
+ stateVariableDefinitions.submitLabelNoCorrectness = {
100506
+ forRenderer: true,
100507
+ returnDependencies: () => ({
100508
+ answerAncestor: {
100509
+ dependencyType: "stateVariable",
100510
+ variableName: "answerAncestor"
100511
+ }
100512
+ }),
100513
+ definition({ dependencyValues }) {
100514
+ let submitLabelNoCorrectness;
100515
+ if (dependencyValues.answerAncestor) {
100516
+ submitLabelNoCorrectness = dependencyValues.answerAncestor.stateValues.submitLabelNoCorrectness;
100517
+ } else {
100518
+ submitLabelNoCorrectness = "";
100519
+ }
100520
+ return { setValue: { submitLabelNoCorrectness } };
100521
+ }
100522
+ };
100485
100523
  stateVariableDefinitions.numAttemptsLeft = {
100486
100524
  forRenderer: true,
100487
100525
  returnDependencies: () => ({
@@ -130669,10 +130707,8 @@ let Graph$1 = class Graph extends BlockComponent {
130669
130707
  };
130670
130708
  attributes.fixAxes = {
130671
130709
  createComponentOfType: "boolean",
130672
- createStateVariable: "fixAxes",
130673
- defaultValue: false,
130674
- public: true,
130675
- forRenderer: true
130710
+ createStateVariable: "fixAxesPreliminary",
130711
+ defaultValue: false
130676
130712
  };
130677
130713
  attributes.grid = {
130678
130714
  createComponentOfType: "text",
@@ -130692,6 +130728,13 @@ let Graph$1 = class Graph extends BlockComponent {
130692
130728
  defaultValue: false,
130693
130729
  public: true
130694
130730
  };
130731
+ attributes.description = {
130732
+ createComponentOfType: "text",
130733
+ createStateVariable: "description",
130734
+ defaultValue: "",
130735
+ public: true,
130736
+ forRenderer: true
130737
+ };
130695
130738
  return attributes;
130696
130739
  }
130697
130740
  static returnChildGroups() {
@@ -130740,6 +130783,30 @@ let Graph$1 = class Graph extends BlockComponent {
130740
130783
  stateVariableDefinitions,
130741
130784
  returnRoundingStateVariableDefinitions()
130742
130785
  );
130786
+ stateVariableDefinitions.fixAxes = {
130787
+ forRenderer: true,
130788
+ public: true,
130789
+ shadowingInstructions: {
130790
+ createComponentOfType: "boolean"
130791
+ },
130792
+ returnDependencies: () => ({
130793
+ fixAxesPreliminary: {
130794
+ dependencyType: "stateVariable",
130795
+ variableName: "fixAxesPreliminary"
130796
+ },
130797
+ fixed: {
130798
+ dependencyType: "stateVariable",
130799
+ variableName: "fixed"
130800
+ }
130801
+ }),
130802
+ definition({ dependencyValues }) {
130803
+ return {
130804
+ setValue: {
130805
+ fixAxes: dependencyValues.fixAxesPreliminary || dependencyValues.fixed
130806
+ }
130807
+ };
130808
+ }
130809
+ };
130743
130810
  stateVariableDefinitions.xLabel = {
130744
130811
  forRenderer: true,
130745
130812
  public: true,