@speakableio/core 1.0.39 → 1.0.41
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.
- package/dist/index.native.d.mts +14 -34
- package/dist/index.native.d.ts +14 -34
- package/dist/index.native.js +13 -14
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +13 -14
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +14 -34
- package/dist/index.web.js +13 -14
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1258,8 +1258,7 @@ async function handleAssessment(assignment, userId, cardIds, weights, fieldsUpda
|
|
|
1258
1258
|
if (!response.data) {
|
|
1259
1259
|
throw new Error("Score not found");
|
|
1260
1260
|
}
|
|
1261
|
-
|
|
1262
|
-
await api.updateDoc(path, { score: scoreCalculated, status: "PENDING_REVIEW" });
|
|
1261
|
+
await api.updateDoc(path, { status: "PENDING_REVIEW" });
|
|
1263
1262
|
await ((_c = (_b = (_a = api).httpsCallable) == null ? void 0 : _b.call(_a, "submitAssessment")) == null ? void 0 : _c({
|
|
1264
1263
|
assignmentId: assignment.id,
|
|
1265
1264
|
assignmentTitle: assignment.name,
|
|
@@ -2112,24 +2111,24 @@ function getPageMediaData(page) {
|
|
|
2112
2111
|
var _a, _b, _c, _d;
|
|
2113
2112
|
const direction = (_a = page.media_area_layout) != null ? _a : "left";
|
|
2114
2113
|
const { isMediaPage } = checkTypePageActivity(page.type);
|
|
2115
|
-
const mode = (_b = page.media_mode) != null ? _b : page.media_area_id ? "media_area" : null;
|
|
2116
2114
|
const singleMedia = getSingleMediaPageData(page);
|
|
2117
|
-
const
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2115
|
+
const resource = {
|
|
2116
|
+
id: (_c = (_b = page.media_area_id) != null ? _b : page.media_area_context_ref) != null ? _c : void 0,
|
|
2117
|
+
shouldRender: ((_d = page.media_area_id) != null ? _d : page.media_area_context_ref) != null ? true : false
|
|
2118
|
+
};
|
|
2119
|
+
const promptMedia = {
|
|
2121
2120
|
direction,
|
|
2122
|
-
|
|
2123
|
-
singleMedia
|
|
2121
|
+
content: singleMedia,
|
|
2122
|
+
shouldRender: singleMedia !== void 0
|
|
2123
|
+
};
|
|
2124
|
+
return {
|
|
2124
2125
|
isMediaPage,
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
shouldRenderMediaArea
|
|
2126
|
+
resource,
|
|
2127
|
+
promptMedia
|
|
2128
2128
|
};
|
|
2129
2129
|
}
|
|
2130
2130
|
function getSingleMediaPageData(page) {
|
|
2131
|
-
|
|
2132
|
-
if (!isSingleMode || !page.media) return void 0;
|
|
2131
|
+
if (!page.media) return void 0;
|
|
2133
2132
|
const media = {
|
|
2134
2133
|
type: page.media.type,
|
|
2135
2134
|
content: page.media.url
|