@speakableio/core 0.1.56 → 0.1.57

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.
@@ -121,14 +121,6 @@ var FirebaseAPI = class _FirebaseAPI {
121
121
  const { getDoc: getDoc2, doc: doc2 } = this.helpers;
122
122
  const docRef = doc2(this.db, path);
123
123
  const docSnap = await getDoc2(docRef);
124
- console.log("debug get doc api", {
125
- path,
126
- db: this.db,
127
- doc: doc2,
128
- getDoc: getDoc2,
129
- docRef,
130
- docSnap
131
- });
132
124
  const data = docSnap.exists() ? {
133
125
  ...docSnap.data(),
134
126
  id: docSnap.id
@@ -147,15 +139,6 @@ var FirebaseAPI = class _FirebaseAPI {
147
139
  data: doc2.data(),
148
140
  id: doc2.id
149
141
  }));
150
- console.log("debug get docs api", {
151
- path,
152
- db: this.db,
153
- query: query2,
154
- collection: collection2,
155
- collectionRef,
156
- q,
157
- querySnapshot
158
- });
159
142
  return {
160
143
  data,
161
144
  querySnapshot,
@@ -2323,7 +2306,7 @@ function useActivity({
2323
2306
  gradingStandard,
2324
2307
  type
2325
2308
  }) => {
2326
- var _a2, _b2, _c, _d, _e, _f, _g, _h;
2309
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i;
2327
2310
  const card = cardsObject == null ? void 0 : cardsObject[cardId];
2328
2311
  const scoresObject = queryClient.getQueryData(scoreQueryKeys.byId(activityId));
2329
2312
  const cardScore = (_a2 = scoresObject == null ? void 0 : scoresObject.cards) == null ? void 0 : _a2[cardId];
@@ -2342,7 +2325,8 @@ function useActivity({
2342
2325
  prompt: (_h = card == null ? void 0 : card.prompt) != null ? _h : "",
2343
2326
  responseType: (card == null ? void 0 : card.type) === "RESPOND_WRITE" /* RESPOND_WRITE */ ? "written" : "spoken",
2344
2327
  type,
2345
- dateMade: serverTimestamp2()
2328
+ dateMade: serverTimestamp2(),
2329
+ language: (_i = card == null ? void 0 : card.language) != null ? _i : ""
2346
2330
  },
2347
2331
  userId
2348
2332
  );