@speakableio/core 0.1.81 → 0.1.82
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 +3 -1
- package/dist/index.native.d.ts +3 -1
- package/dist/index.native.js +12 -0
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +12 -0
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +3 -1
- package/dist/index.web.js +12 -0
- package/dist/index.web.js.map +1 -1
- package/package.json +1 -1
package/dist/index.native.mjs
CHANGED
|
@@ -1919,6 +1919,17 @@ function getPagePrompt(card) {
|
|
|
1919
1919
|
};
|
|
1920
1920
|
}
|
|
1921
1921
|
|
|
1922
|
+
// src/domains/cards/utils/get-completed-pages.ts
|
|
1923
|
+
var getTotalCompletedCards = (pageScores) => {
|
|
1924
|
+
return Object.values(pageScores != null ? pageScores : {}).reduce((acc, cardScore) => {
|
|
1925
|
+
var _a, _b;
|
|
1926
|
+
if (((_b = (_a = cardScore.completed) != null ? _a : cardScore.score) != null ? _b : cardScore.score === 0) && !cardScore.media_area_opened) {
|
|
1927
|
+
acc++;
|
|
1928
|
+
}
|
|
1929
|
+
return acc;
|
|
1930
|
+
}, 0);
|
|
1931
|
+
};
|
|
1932
|
+
|
|
1922
1933
|
// src/domains/sets/set.hooks.ts
|
|
1923
1934
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
|
1924
1935
|
|
|
@@ -3207,6 +3218,7 @@ export {
|
|
|
3207
3218
|
getPhraseLength,
|
|
3208
3219
|
getRespondCardTool,
|
|
3209
3220
|
getSetFromCache,
|
|
3221
|
+
getTotalCompletedCards,
|
|
3210
3222
|
getWordHash,
|
|
3211
3223
|
purify,
|
|
3212
3224
|
refsCardsFiresotre,
|