@speakableio/core 1.0.56 → 1.0.58

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.
@@ -1130,6 +1130,17 @@ async function getAssignmentScore({
1130
1130
  id: result.id
1131
1131
  };
1132
1132
  }
1133
+ if (response.data.cards == null) {
1134
+ try {
1135
+ await api.updateDoc(path, { cards: {} });
1136
+ } catch (error) {
1137
+ console.error("Error initializing score cards:", error);
1138
+ }
1139
+ return {
1140
+ ...response.data,
1141
+ cards: {}
1142
+ };
1143
+ }
1133
1144
  return response.data;
1134
1145
  }
1135
1146
  async function getPracticeScore({ userId, setId }) {
@@ -1818,7 +1829,7 @@ var BASE_RESPOND_FIELD_VALUES = {
1818
1829
  title: "",
1819
1830
  allowRetries: true,
1820
1831
  respondTime: 180,
1821
- maxCharacters: 1e3
1832
+ maxCharacters: 1e4
1822
1833
  };
1823
1834
  var BASE_REPEAT_FIELD_VALUES = {
1824
1835
  repeat: 1